cnhis-design-vue 3.1.56-release.0 → 3.1.56
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/es/components/annotation-edit/index.d.ts +18 -0
- package/es/components/annotation-edit/src/AnnotationEdit.d.ts +18 -0
- package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
- package/es/components/annotation-edit/src/type.d.ts +4 -0
- package/es/components/audio-sdk/src/audioSDK.d.ts +20 -6
- package/es/components/audio-sdk/src/audioSDK.js +1 -1
- package/es/components/audio-sdk/src/components/recordingDialog.vue.d.ts +14 -0
- package/es/components/audio-sdk/src/components/recordingDialog.vue2.js +1 -1
- package/es/components/audio-sdk/src/utils/recordingDialog.d.ts +5 -2
- package/es/components/audio-sdk/src/utils/recordingDialog.js +1 -1
- package/es/components/audio-sdk/style/index.css +1 -1
- package/es/components/base-search/index.d.ts +14 -0
- package/es/components/base-search/src/index.vue.d.ts +14 -0
- package/es/components/base-search/src/index.vue2.js +1 -1
- package/es/components/base-search/style/index.css +1 -1
- package/es/components/big-table/index.js +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +26 -4
- package/es/components/classification/index.d.ts +20 -7
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +14 -0
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +20 -7
- package/es/components/classification/src/components/set-classification/index.vue2.js +1 -1
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +6 -5
- package/es/components/classification/src/components/table-modal/index.vue2.js +1 -1
- package/es/components/classification/src/index.vue.d.ts +20 -7
- package/es/components/classification/src/index.vue2.js +1 -1
- package/es/components/fabric-chart/index.d.ts +4 -2
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +4 -2
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.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/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
- package/es/components/form-config/index.d.ts +82 -14
- package/es/components/form-config/src/FormConfig.vue.d.ts +82 -14
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +26 -4
- package/es/components/form-config/src/components/FormConfigCreator.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +41 -7
- package/es/components/form-config/src/components/FormConfigEdit.vue2.js +1 -1
- package/es/components/form-render/index.d.ts +26 -4
- package/es/components/form-render/src/FormRender.vue.d.ts +27 -4
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +26 -4
- 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/constants/index.d.ts +1 -0
- package/es/components/form-render/src/constants/index.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +10 -2
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
- package/es/components/form-render/src/hooks/useFormContext.js +1 -1
- package/es/components/form-render/src/types/index.d.ts +3 -1
- package/es/components/iho-table/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -1
- package/es/components/iho-table/src/plugins/defaultValuePlugin.js +1 -1
- package/es/components/iho-table/src/plugins/headerPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +77 -13
- package/es/components/info-header/src/InfoHeader.vue.d.ts +77 -13
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +5 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +5 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +31 -5
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +26 -4
- package/es/components/recommend-search/index.d.ts +8 -8
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +8 -8
- package/es/components/recommend-search/src/components/BaseSearch.d.ts +1 -1
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +3 -3
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +3 -3
- package/es/components/shortcut-setter/index.d.ts +26 -4
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +26 -4
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +14 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +14 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +14 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +14 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +15 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +14 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +15 -0
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +15 -0
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/index.js +1 -1
- package/es/shared/components/CancelRadio/index.js +1 -1
- package/es/shared/components/InputNumberSlash/index.js +1 -1
- package/es/shared/components/SelectPage/index.js +1 -1
- package/es/shared/components/SlotRender/index.js +1 -1
- package/es/shared/components/SvgIcon/index.js +1 -1
- package/es/shared/components/TextOverTooltip/index.js +1 -1
- package/es/shared/components/VueDraggable/index.js +1 -1
- package/es/shared/components/no-data/index.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/business.js +1 -1
- package/es/shared/utils/tapable/AsyncParallelBailHook.js +1 -0
- package/es/shared/utils/tapable/AsyncSeriesBailHook.js +1 -0
- package/es/shared/utils/tapable/AsyncSeriesLoopHook.js +1 -0
- package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.js +1 -0
- package/es/shared/utils/tapable/SyncBailHook.js +1 -0
- package/es/shared/utils/tapable/SyncLoopHook.js +1 -0
- package/es/shared/utils/vexutils.js +1 -1
- package/package.json +2 -2
|
@@ -29,6 +29,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
29
|
type: BooleanConstructor;
|
|
30
30
|
default: boolean;
|
|
31
31
|
};
|
|
32
|
+
loading: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
32
36
|
}, {
|
|
33
37
|
selectMinWidth: number;
|
|
34
38
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -60,6 +64,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
60
64
|
type: BooleanConstructor;
|
|
61
65
|
default: boolean;
|
|
62
66
|
};
|
|
67
|
+
loading: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
63
71
|
}>> & {
|
|
64
72
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
65
73
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
@@ -68,6 +76,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
68
76
|
dragEndWidth: import("vue").Ref<number>;
|
|
69
77
|
showKeys: import("vue").ComputedRef<any>;
|
|
70
78
|
titleList: import("vue").ComputedRef<string[]>;
|
|
79
|
+
isOptionsNull: import("vue").ComputedRef<boolean>;
|
|
71
80
|
handleSelect: (option: any) => void;
|
|
72
81
|
searchByPage: (onePage: number) => void;
|
|
73
82
|
changeWidth: ({ distance }: any) => void;
|
|
@@ -143,10 +152,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
143
152
|
type: BooleanConstructor;
|
|
144
153
|
default: boolean;
|
|
145
154
|
};
|
|
155
|
+
loading: {
|
|
156
|
+
type: BooleanConstructor;
|
|
157
|
+
default: boolean;
|
|
158
|
+
};
|
|
146
159
|
}>> & {
|
|
147
160
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
148
161
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
149
162
|
}, {
|
|
163
|
+
loading: boolean;
|
|
150
164
|
dynamicOptionInfo: AnyObject;
|
|
151
165
|
fieldTitleList: AnyObject[];
|
|
152
166
|
optionList: AnyObject[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,computed as i,withDirectives as a,openBlock as
|
|
1
|
+
import{defineComponent as e,ref as t,computed as i,withDirectives as a,openBlock as l,createElementBlock as n,normalizeStyle as o,createBlock as s,unref as c,Fragment as d,renderList as u,toDisplayString as r,createCommentVNode as p,createElementVNode as v,normalizeClass as m,withCtx as f,createTextVNode as y,createVNode as h}from"vue";import{NEmpty as g,NPopover as k,NButtonGroup as L,NButton as b,NIcon as E}from"naive-ui";import{vFlexibleResize as P}from"../../../../../../../shared/directive/flexibleResize.js";import{WidgetValEnums as x}from"../../../../types/enums.js";import{ArrowBack as M,ArrowForward as O}from"@vicons/ionicons5";import{WholeSelectObj as W}from"../../helpers/selectExtraMap.js";const _={key:0,class:"dynamic-header"},S={class:"dynamic-content"},j=["onClick"],w={key:0,class:"content"},B={class:"content"},C={class:"dynamic-pagination"};var z=e({__name:"index",props:{dynamicOptionInfo:{type:Object,default:()=>({})},fieldTitleList:{type:Array,default:()=>[]},optionList:{type:Array,default:()=>[]},isMultiple:{type:Boolean,default:!1},curPage:{type:Number,default:1},isLastPage:{type:Boolean,default:!1},isShowWhole:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["updateSelect","updatePage"],setup(e,{emit:z}){const H=e,A=t(200),I=i((()=>{var e,t;return null!=(t=null==(e=H.dynamicOptionInfo)?void 0:e.showKeys)?t:[]})),N=i((()=>I.value&&I.value.length>0?I.value.map((e=>{let t="";return H.fieldTitleList.forEach((i=>{i.columnName===e&&(t=i.title)})),t})):[])),R=i((()=>!H.optionList.filter((e=>e.label!=W.label)).length));function T(e){const t=H.curPage+e;z("updatePage",t)}function K({distance:e}){const t=A.value+e;A.value=Math.min(Math.max(t,200),1e3)}function V(){}return(t,i)=>a((l(),n("div",{class:"select-dynamic-options",style:o({minWidth:A.value+"px",position:"relative"})},[e.loading?(l(),s(c(g),{key:0,"show-icon":!1,description:"加载中..."})):(l(),n(d,{key:1},[c(R)?(l(),s(c(g),{key:0,description:"无数据"})):(l(),n(d,{key:1},[c(N)&&c(N).length>1?(l(),n("div",_,[(l(!0),n(d,null,u(c(N),(e=>(l(),n("span",{key:e,class:"name"},r(e),1)))),128))])):p("v-if",!0),v("ul",S,[(l(!0),n(d,null,u(e.optionList,(t=>(l(),n("li",{class:m(t.actived?"actived":""),key:t.value,onClick:e=>function(e){var t,i,a;if(!H.isMultiple||e.value===x.WHOLE)return null==(t=H.optionList)||t.forEach((e=>{e.actived=!1})),e.actived=!0,void z("updateSelect",[e.value]);null==(i=H.optionList)||i.forEach((e=>{e.value===x.WHOLE&&(e.actived=!1)})),e.actived?e.actived=!1:e.actived=!0;const l=null==(a=H.optionList)?void 0:a.filter((e=>e.actived)).map((e=>e.value));z("updateSelect",l)}(t)},[e.isShowWhole&&t.value===c(x).WHOLE?(l(),n("span",w,r(t.label),1)):(l(!0),n(d,{key:1},u(c(I),(e=>(l(),s(c(k),{key:e,trigger:"hover",duration:0},{trigger:f((()=>[v("span",B,r(t[e]),1)])),default:f((()=>[y(" "+r(t[e]),1)])),_:2},1024)))),128))],10,j)))),128))]),v("div",C,[h(c(L),null,{default:f((()=>[h(c(b),{onClick:i[0]||(i[0]=e=>T(-1)),disabled:e.curPage<=1},{icon:f((()=>[h(c(E),{component:c(M),size:"16"},null,8,["component"])])),default:f((()=>[y(" 上一页 ")])),_:1},8,["disabled"]),h(c(b),{"icon-placement":"right",onClick:i[1]||(i[1]=e=>T(1)),disabled:e.isLastPage},{icon:f((()=>[h(c(E),{component:c(O),size:"16"},null,8,["component"])])),default:f((()=>[y(" 下一页 ")])),_:1},8,["disabled"])])),_:1})])],64))],64))],4)),[[c(P),{mode:"VR",onMove:K,onEnd:V}]])}});export{z as default};
|
|
@@ -1235,6 +1235,7 @@ declare const SelectDynamic: import("vue").DefineComponent<{
|
|
|
1235
1235
|
[x: string]: unknown;
|
|
1236
1236
|
};
|
|
1237
1237
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
1238
|
+
selectDynamicRef: any;
|
|
1238
1239
|
isLoading: import("vue").Ref<boolean>;
|
|
1239
1240
|
filterApiConfig: import("../../../../..").AnyObject;
|
|
1240
1241
|
searchFilterList: import("vue").Ref<import("../../../../..").AnyObject[]>;
|
|
@@ -1300,6 +1301,10 @@ declare const SelectDynamic: import("vue").DefineComponent<{
|
|
|
1300
1301
|
type: BooleanConstructor;
|
|
1301
1302
|
default: boolean;
|
|
1302
1303
|
};
|
|
1304
|
+
loading: {
|
|
1305
|
+
type: BooleanConstructor;
|
|
1306
|
+
default: boolean;
|
|
1307
|
+
};
|
|
1303
1308
|
}, {
|
|
1304
1309
|
selectMinWidth: number;
|
|
1305
1310
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1331,6 +1336,10 @@ declare const SelectDynamic: import("vue").DefineComponent<{
|
|
|
1331
1336
|
type: BooleanConstructor;
|
|
1332
1337
|
default: boolean;
|
|
1333
1338
|
};
|
|
1339
|
+
loading: {
|
|
1340
|
+
type: BooleanConstructor;
|
|
1341
|
+
default: boolean;
|
|
1342
|
+
};
|
|
1334
1343
|
}>> & {
|
|
1335
1344
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
1336
1345
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
@@ -1339,6 +1348,7 @@ declare const SelectDynamic: import("vue").DefineComponent<{
|
|
|
1339
1348
|
dragEndWidth: import("vue").Ref<number>;
|
|
1340
1349
|
showKeys: import("vue").ComputedRef<any>;
|
|
1341
1350
|
titleList: import("vue").ComputedRef<string[]>;
|
|
1351
|
+
isOptionsNull: import("vue").ComputedRef<boolean>;
|
|
1342
1352
|
handleSelect: (option: any) => void;
|
|
1343
1353
|
searchByPage: (onePage: number) => void;
|
|
1344
1354
|
changeWidth: ({ distance }: any) => void;
|
|
@@ -1414,10 +1424,15 @@ declare const SelectDynamic: import("vue").DefineComponent<{
|
|
|
1414
1424
|
type: BooleanConstructor;
|
|
1415
1425
|
default: boolean;
|
|
1416
1426
|
};
|
|
1427
|
+
loading: {
|
|
1428
|
+
type: BooleanConstructor;
|
|
1429
|
+
default: boolean;
|
|
1430
|
+
};
|
|
1417
1431
|
}>> & {
|
|
1418
1432
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
1419
1433
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
1420
1434
|
}, {
|
|
1435
|
+
loading: boolean;
|
|
1421
1436
|
dynamicOptionInfo: import("../../../../..").AnyObject;
|
|
1422
1437
|
fieldTitleList: import("../../../../..").AnyObject[];
|
|
1423
1438
|
optionList: import("../../../../..").AnyObject[];
|
|
@@ -173,6 +173,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
173
173
|
[x: string]: unknown;
|
|
174
174
|
};
|
|
175
175
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
176
|
+
selectDynamicRef: any;
|
|
176
177
|
isLoading: import("vue").Ref<boolean>;
|
|
177
178
|
filterApiConfig: import("../../../..").AnyObject;
|
|
178
179
|
searchFilterList: import("vue").Ref<import("../../../..").AnyObject[]>;
|
|
@@ -238,6 +239,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
238
239
|
type: BooleanConstructor;
|
|
239
240
|
default: boolean;
|
|
240
241
|
};
|
|
242
|
+
loading: {
|
|
243
|
+
type: BooleanConstructor;
|
|
244
|
+
default: boolean;
|
|
245
|
+
};
|
|
241
246
|
}, {
|
|
242
247
|
selectMinWidth: number;
|
|
243
248
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -269,6 +274,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
269
274
|
type: BooleanConstructor;
|
|
270
275
|
default: boolean;
|
|
271
276
|
};
|
|
277
|
+
loading: {
|
|
278
|
+
type: BooleanConstructor;
|
|
279
|
+
default: boolean;
|
|
280
|
+
};
|
|
272
281
|
}>> & {
|
|
273
282
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
274
283
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
@@ -277,6 +286,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
277
286
|
dragEndWidth: import("vue").Ref<number>;
|
|
278
287
|
showKeys: import("vue").ComputedRef<any>;
|
|
279
288
|
titleList: import("vue").ComputedRef<string[]>;
|
|
289
|
+
isOptionsNull: import("vue").ComputedRef<boolean>;
|
|
280
290
|
handleSelect: (option: any) => void;
|
|
281
291
|
searchByPage: (onePage: number) => void;
|
|
282
292
|
changeWidth: ({ distance }: any) => void;
|
|
@@ -352,10 +362,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
352
362
|
type: BooleanConstructor;
|
|
353
363
|
default: boolean;
|
|
354
364
|
};
|
|
365
|
+
loading: {
|
|
366
|
+
type: BooleanConstructor;
|
|
367
|
+
default: boolean;
|
|
368
|
+
};
|
|
355
369
|
}>> & {
|
|
356
370
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
357
371
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
358
372
|
}, {
|
|
373
|
+
loading: boolean;
|
|
359
374
|
dynamicOptionInfo: import("../../../..").AnyObject;
|
|
360
375
|
fieldTitleList: import("../../../..").AnyObject[];
|
|
361
376
|
optionList: import("../../../..").AnyObject[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"./vod-chunk-upload.vue.js";export{
|
|
1
|
+
import o from"./vod-chunk-upload.vue.js";export{default}from"./vod-chunk-upload.vue.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from"./CancelRadio.js";export{default}from"./CancelRadio.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"./InputNumberSlash.js";export{
|
|
1
|
+
import r from"./InputNumberSlash.js";export{default}from"./InputNumberSlash.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"./SelectPage.vue.js";export{
|
|
1
|
+
import e from"./SelectPage.vue.js";export{default}from"./SelectPage.vue.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"./SlotRender.js";export{
|
|
1
|
+
import e from"./SlotRender.js";export{default}from"./SlotRender.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"./SvgIcon.vue.js";export{
|
|
1
|
+
import o from"./SvgIcon.vue.js";export{default}from"./SvgIcon.vue.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"./TextOverTooltip.vue.js";export{
|
|
1
|
+
import e from"./TextOverTooltip.vue.js";export{default}from"./TextOverTooltip.vue.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"./src/vuedraggable.js";export{
|
|
1
|
+
import r from"./src/vuedraggable.js";export{default}from"./src/vuedraggable.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from"./NoData.vue.js";export{default}from"./NoData.vue.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="@cnhis-design-vue/shared",
|
|
1
|
+
var e="@cnhis-design-vue/shared",i="3.1.56",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},d={"@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"},o={name:e,version:"3.1.56",private:!0,main:"index.ts",peerDependencies:n,dependencies:d};export{o as default,d 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 t,isString as n,includes as r,negate as a,
|
|
1
|
+
import{Path as e}from"@formily/path";import{isArray as t,isString as n,includes as r,negate as a,isNumber as i,gt as o,gte as l,lt as c,lte as u,identity as f,noop as s,isObject as d}from"lodash-es";import{unref as p}from"vue";import{add as m,differenceInMilliseconds as F}from"date-fns";function D(e){return null==e||""==e}function N(e){return(t,r)=>(n(t)&&(t=+t),n(r)&&(r=+r),!(!i(t)||Number.isNaN(t)||!i(r)||Number.isNaN(r))&&e(t,r))}const h={EQ:(e,t)=>`${e}`===t,NEQ:(e,t)=>`${e}`!==t,CL:(e,a)=>!(!t(e)&&!n(e))&&r(e,a),NC:(e,a)=>!t(e)&&!n(e)||!r(e,a),NULL:D,NOT_NULL:a(D),BIG:N(o),BIGEQ:N(l),LESS:N(c),LESSEQ:N(u)};function E(e,t,n={}){return(n[t.con]||h[t.con]||(()=>!1))(e,`${t.value}`)}function g(e,t){if(!t||!n(t))return e.every(f);try{return new Function("return "+t.replace(/OR/g,"||").replace(/AND/g,"&&").replace(/[a-zA-Z]/g,"").replace(/\d+/g,(t=>e[+t-1]?"true":"false")))()}catch(e){return console.error("表达式错误=>",t),!1}}function A(n,r){if(!t(r.conObj))return!1;return g(r.conObj.map((t=>E(e.getIn(n,t.field_key),t,r.compareMap))),r.sqlExpression)}const b=Object.freeze({SET_VALUE:function(e,{getter:t,setter:r}){if(!d(e))return;const{results:a=[],params:i=[],compareMap:o={}}=e;if(!a.length)return;function l(e){var r;if(!n(e))return e;const a=e.trim().match(/^\$\{([a-zA-Z\d\s]+)}$/);return a?t(null==(r=a[1])?void 0:r.trim()):e}i.every((e=>e&&e.p_name&&E(t(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 L(e){return b[e]||s}function V(e,r,a){function o(e){return t(e)&&!!e.length}function l(e,t=!0){e.forEach((e=>{if(!e.operationalResult||!t&&null!=r(e.operationalResult))return;const o=e.operationFormParam.reduce(((e,t)=>(e[t=t.replace(/^table\./,"")]=+r(t),e)),{}),l=e.operationalRule.replace(/\${(.+?)}/g,"$1");let c=new Function("table",`return ${l}`)(o);n(c)&&(c=+c),c=i(c)?isNaN(c)?"":c.toFixed(+e.operationalPrecision):"",a(e.operationalResult,c)}))}return{operationalFormHandler:function(t){if(!o(p(e)))return;const n=p(e).filter((e=>e.operationFormParam.includes(`table.${t}`)));n.length&&l(n)},triggerAllOperationalFormHandler:function(){o(p(e))&&l(p(e),!1)}}}function $(e,n,r){function a(e){return t(e)&&!!e.length}function o(e,t=!0){e.forEach((e=>{e.diffValField&&e.diffValUnit&&e.scene&&(t||null==n(e.diffValField))&&("DIFF"===e.scene?function({startDateField:e,endDateField:t,diffValField:a,diffValUnit:i,precision:o="0"}){const l=n(e),c=n(t);if(l&&c){const e=F(new Date(c),new Date(l))/1e3/60,t=e/60,n=t/24;let u="";switch(i){case"DAY":u=n.toFixed(+o);break;case"HOUR":u=t.toFixed(+o);break;case"MIN":u=e.toFixed(+o);break;case"DHM":u=`${Math.floor(n)}天${Math.floor(t%24)}小时${Math.floor(e%60)}分钟`;break}r(a,u)}else r(a,null)}(e):"CALC"===e.scene&&function(e){const t=+e.diffValField;if(!i(t)||Number.isNaN(t))return;const a=n(e.endDateField);if(a){const n=m(new Date(a),{days:"DAY"===e.diffValUnit?t:0,hours:"HOUR"===e.diffValUnit?t:0,minutes:"MIN"===e.diffValUnit?t:0});r(e.startDateField,n)}else r(e.startDateField,null)}(e))}))}return{dateOperationalFormHandler:function(t){if(!a(p(e)))return;const n=p(e).filter((e=>"DIFF"===e.scene&&e.startDateField===t||e.endDateField===t));n.length&&o(n)},triggerAllDateOperationalFormHandler:function(){a(p(e))&&o(p(e),!1)}}}export{L as getBindEventSettingTrigger,$ as getDateOperationalFormHandler,V as getOperationalFormHandler,g as isConditionsMatchSqlExpression,E as isMatchLowCodeCondition,A as isMatchLowCodeConditionsWithSqlExpression};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./Hook.js";import e from"./HookCodeFactory.js";new class extends e{content({onError:e,onResult:n,onDone:r}){let t="";return t+=`var _results = new Array(${this.options.taps.length});\n`,t+="var _checkDone = function() {\n",t+="for(var i = 0; i < _results.length; i++) {\n",t+="var item = _results[i];\n",t+="if(item === undefined) return false;\n",t+="if(item.result !== undefined) {\n",t+=n("item.result"),t+="return true;\n",t+="}\n",t+="if(item.error) {\n",t+=e("item.error"),t+="return true;\n",t+="}\n",t+="}\n",t+="return false;\n",t+="}\n",t+=this.callTapsParallel({onError:(e,n,r,t)=>{let s="";return s+=`if(${e} < _results.length && ((_results.length = ${e+1}), (_results[${e}] = { error: ${n} }), _checkDone())) {\n`,s+=t(!0),s+="} else {\n",s+=r(),s+="}\n",s},onResult:(e,n,r,t)=>{let s="";return s+=`if(${e} < _results.length && (${n} !== undefined && (_results.length = ${e+1}), (_results[${e}] = { result: ${n} }), _checkDone())) {\n`,s+=t(!0),s+="} else {\n",s+=r(),s+="}\n",s},onTap:(e,n,r)=>{let t="";return e>0&&(t+=`if(${e} >= _results.length) {\n`,t+=r(),t+="} else {\n"),t+=n(),e>0&&(t+="}\n"),t},onDone:r}),t}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./Hook.js";import n from"./HookCodeFactory.js";new class extends n{content({onError:n,onResult:e,resultReturns:o,onDone:r}){return this.callTapsSeries({onError:(e,o,r,s)=>n(o)+s(!0),onResult:(n,o,r)=>`if(${o} !== undefined) {\n${e(o)}\n} else {\n${r()}}\n`,resultReturns:o,onDone:r})}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./Hook.js";import o from"./HookCodeFactory.js";new class extends o{content({onError:o,onDone:n}){return this.callTapsLooping({onError:(n,r,e,t)=>o(r)+t(!0),onDone:n})}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./Hook.js";import o from"./HookCodeFactory.js";new class extends o{content({onError:o,onResult:n}){return this.callTapsSeries({onError:(n,r,e,s)=>o(r)+s(!0),onResult:(o,n,r)=>{let e="";return e+=`if(${n} !== undefined) {\n`,e+=`${this._args[0]} = ${n};\n`,e+="}\n",e+=r(),e},onDone:()=>n(this._args[0])})}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./Hook.js";import e from"./HookCodeFactory.js";new class extends e{content({onError:e,onResult:o,resultReturns:n,onDone:r,rethrowIfPossible:s}){return this.callTapsSeries({onError:(o,n)=>e(n),onResult:(e,n,r)=>`if(${n} !== undefined) {\n${o(n)};\n} else {\n${r()}}\n`,resultReturns:n,onDone:r,rethrowIfPossible:s})}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./Hook.js";import o from"./HookCodeFactory.js";new class extends o{content({onError:o,onDone:r,rethrowIfPossible:e}){return this.callTapsLooping({onError:(r,e)=>o(e),onDone:r,rethrowIfPossible:e})}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"xe-utils";export{default as moment}from"moment";import o from"./vexutilsExpand.js";function f(o,f){var e;let l="#5585f5",a={blue:"#0000ff",sky:"#87ceeb",azure:"#f0ffff",palegreen:"#98fb98",yellow:"#ffff00",darkorange:"#ff8c00",magenta:"#ff00ff",purple:"#800080",maroon:"#800000",orange:"#ffa500",green:"#008000",red:"#ff0000",grey:"#808080"};if(null==(e=null==o?void 0:o.color)?void 0:e.includes("-")){l=a[o.color.split("-")[1]]||"#5585f5"}else l=o.color||"#5585f5";const b=r.hexToRGBA(l)||{r:85,g:133,b:245,a:1};if(f)return{color:"#fff",background:`rgba(${b.r}, ${b.g}, ${b.b})`,borderColor:`rgba(${b.r}, ${b.g}, ${b.b})`};if(o.isSelect)return{color:"#fff",background:`rgba(${b.r}, ${b.g}, ${b.b})`,borderColor:`rgba(${b.r}, ${b.g}, ${b.b})`};return{color:!(o.isPublic&&1==o.isPublic)?"rgba(28, 28, 28, 1)":"rgba(33, 33, 33, 0.6)",background:"rgba(250, 250, 250, 1)",borderColor:"rgba(213, 213, 213, 0.8)"}}export{
|
|
1
|
+
import r from"xe-utils";export{default as moment}from"moment";import o from"./vexutilsExpand.js";export{default}from"./vexutilsExpand.js";function f(o,f){var e;let l="#5585f5",a={blue:"#0000ff",sky:"#87ceeb",azure:"#f0ffff",palegreen:"#98fb98",yellow:"#ffff00",darkorange:"#ff8c00",magenta:"#ff00ff",purple:"#800080",maroon:"#800000",orange:"#ffa500",green:"#008000",red:"#ff0000",grey:"#808080"};if(null==(e=null==o?void 0:o.color)?void 0:e.includes("-")){l=a[o.color.split("-")[1]]||"#5585f5"}else l=o.color||"#5585f5";const b=r.hexToRGBA(l)||{r:85,g:133,b:245,a:1};if(f)return{color:"#fff",background:`rgba(${b.r}, ${b.g}, ${b.b})`,borderColor:`rgba(${b.r}, ${b.g}, ${b.b})`};if(o.isSelect)return{color:"#fff",background:`rgba(${b.r}, ${b.g}, ${b.b})`,borderColor:`rgba(${b.r}, ${b.g}, ${b.b})`};return{color:!(o.isPublic&&1==o.isPublic)?"rgba(28, 28, 28, 1)":"rgba(33, 33, 33, 0.6)",background:"rgba(250, 250, 250, 1)",borderColor:"rgba(213, 213, 213, 0.8)"}}export{f as handleLabelColor};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.56
|
|
3
|
+
"version": "3.1.56",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"iOS 7",
|
|
65
65
|
"last 3 iOS versions"
|
|
66
66
|
],
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "d6d38dd6f2fb51895f6ccfdb5470577c36ed45bc"
|
|
68
68
|
}
|