cnhis-design-vue 3.1.44-release.0 → 3.1.44-release.3
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/base-search/style/index.css +1 -1
- package/es/components/classification/index.d.ts +4 -2
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +4 -2
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +4 -2
- package/es/components/classification/src/index.vue.d.ts +4 -2
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useBottom.js +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
- package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
- package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/useRight.js +1 -1
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useTop.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useTop.js +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
- package/es/components/search-cascader/style/index.css +1 -1
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +4 -2
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +4 -2
- package/es/components/table-filter/src/components/render-widget/basicData.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/{DateRange.vue.d.ts → DateRangeInner.vue.d.ts} +1 -14
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +141 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +3 -2
- package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
- package/es/components/table-filter/src/components/render-widget/enums.d.ts +28 -7
- package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +1 -0
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +152 -14
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
- package/es/components/table-filter/src/types/enums.d.ts +4 -2
- package/es/components/table-filter/src/types/enums.js +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/package.json.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/utils/index.d.ts +0 -6823
- package/es/components/table-filter/src/components/render-widget/components/DateRange.vue.js +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -221,10 +221,6 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
221
221
|
type: import("vue").PropType<"date" | "datetime">;
|
|
222
222
|
default: string;
|
|
223
223
|
};
|
|
224
|
-
filterExplicit: {
|
|
225
|
-
type: NumberConstructor;
|
|
226
|
-
default: number;
|
|
227
|
-
};
|
|
228
224
|
clearable: {
|
|
229
225
|
type: BooleanConstructor;
|
|
230
226
|
default: boolean;
|
|
@@ -251,10 +247,6 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
251
247
|
type: import("vue").PropType<"date" | "datetime">;
|
|
252
248
|
default: string;
|
|
253
249
|
};
|
|
254
|
-
filterExplicit: {
|
|
255
|
-
type: NumberConstructor;
|
|
256
|
-
default: number;
|
|
257
|
-
};
|
|
258
250
|
clearable: {
|
|
259
251
|
type: BooleanConstructor;
|
|
260
252
|
default: boolean;
|
|
@@ -280,7 +272,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
280
272
|
}>>;
|
|
281
273
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
282
274
|
dateList: import("vue").Ref<any[]>;
|
|
283
|
-
|
|
275
|
+
isShowDateRange: import("vue").Ref<boolean>;
|
|
284
276
|
radioValue: import("vue").Ref<string>;
|
|
285
277
|
startDate: import("vue").Ref<any>;
|
|
286
278
|
endDate: import("vue").Ref<any>;
|
|
@@ -336,10 +328,6 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
336
328
|
type: import("vue").PropType<"date" | "datetime">;
|
|
337
329
|
default: string;
|
|
338
330
|
};
|
|
339
|
-
filterExplicit: {
|
|
340
|
-
type: NumberConstructor;
|
|
341
|
-
default: number;
|
|
342
|
-
};
|
|
343
331
|
clearable: {
|
|
344
332
|
type: BooleanConstructor;
|
|
345
333
|
default: boolean;
|
|
@@ -365,7 +353,6 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
365
353
|
}, {
|
|
366
354
|
type: "date" | "datetime";
|
|
367
355
|
value: string;
|
|
368
|
-
filterExplicit: number;
|
|
369
356
|
clearable: boolean;
|
|
370
357
|
startPlaceholder: string;
|
|
371
358
|
endPlaceholder: string;
|
|
@@ -383,6 +370,157 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
383
370
|
setDefaultValue: (defaultValue: any) => any;
|
|
384
371
|
eventsBySearch?: undefined;
|
|
385
372
|
style?: undefined;
|
|
373
|
+
} | {
|
|
374
|
+
component: import("vue").DefineComponent<{
|
|
375
|
+
type: {
|
|
376
|
+
type: import("vue").PropType<"datetimerange" | "daterange">;
|
|
377
|
+
default: string;
|
|
378
|
+
};
|
|
379
|
+
clearable: {
|
|
380
|
+
type: BooleanConstructor;
|
|
381
|
+
default: boolean;
|
|
382
|
+
};
|
|
383
|
+
startPlaceholder: {
|
|
384
|
+
type: StringConstructor;
|
|
385
|
+
default: string;
|
|
386
|
+
};
|
|
387
|
+
endPlaceholder: {
|
|
388
|
+
type: StringConstructor;
|
|
389
|
+
default: string;
|
|
390
|
+
};
|
|
391
|
+
componentCfg: {
|
|
392
|
+
type: ObjectConstructor;
|
|
393
|
+
default: () => {};
|
|
394
|
+
};
|
|
395
|
+
value: {
|
|
396
|
+
type: StringConstructor;
|
|
397
|
+
default: string;
|
|
398
|
+
};
|
|
399
|
+
}, {
|
|
400
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
401
|
+
type: {
|
|
402
|
+
type: import("vue").PropType<"datetimerange" | "daterange">;
|
|
403
|
+
default: string;
|
|
404
|
+
};
|
|
405
|
+
clearable: {
|
|
406
|
+
type: BooleanConstructor;
|
|
407
|
+
default: boolean;
|
|
408
|
+
};
|
|
409
|
+
startPlaceholder: {
|
|
410
|
+
type: StringConstructor;
|
|
411
|
+
default: string;
|
|
412
|
+
};
|
|
413
|
+
endPlaceholder: {
|
|
414
|
+
type: StringConstructor;
|
|
415
|
+
default: string;
|
|
416
|
+
};
|
|
417
|
+
componentCfg: {
|
|
418
|
+
type: ObjectConstructor;
|
|
419
|
+
default: () => {};
|
|
420
|
+
};
|
|
421
|
+
value: {
|
|
422
|
+
type: StringConstructor;
|
|
423
|
+
default: string;
|
|
424
|
+
};
|
|
425
|
+
}>> & {
|
|
426
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
427
|
+
}>>;
|
|
428
|
+
emit: (event: "update:value", ...args: any[]) => void;
|
|
429
|
+
valueCp: import("vue").Ref<any>;
|
|
430
|
+
dateFormat: import("vue").ComputedRef<string>;
|
|
431
|
+
rangeShortcuts: {
|
|
432
|
+
今天: number[];
|
|
433
|
+
昨天: number[];
|
|
434
|
+
近一周: number[];
|
|
435
|
+
近一月: number[];
|
|
436
|
+
};
|
|
437
|
+
handleChange: (val: any) => void;
|
|
438
|
+
CDatePicker: import("../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
439
|
+
updateUnchangedValue: {
|
|
440
|
+
type: BooleanConstructor;
|
|
441
|
+
};
|
|
442
|
+
onConfirm: {
|
|
443
|
+
type: FunctionConstructor;
|
|
444
|
+
};
|
|
445
|
+
}, {
|
|
446
|
+
attrs: {
|
|
447
|
+
[x: string]: unknown;
|
|
448
|
+
};
|
|
449
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
450
|
+
updateUnchangedValue: {
|
|
451
|
+
type: BooleanConstructor;
|
|
452
|
+
};
|
|
453
|
+
onConfirm: {
|
|
454
|
+
type: FunctionConstructor;
|
|
455
|
+
};
|
|
456
|
+
}>> & {}>>;
|
|
457
|
+
datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
|
|
458
|
+
panelInstRef: import("vue").Ref<null>;
|
|
459
|
+
isDateTime: import("vue").ComputedRef<boolean>;
|
|
460
|
+
formatRef: import("vue").ComputedRef<string>;
|
|
461
|
+
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
462
|
+
focus: () => any;
|
|
463
|
+
blur: () => any;
|
|
464
|
+
onUpdateShow: (show: boolean) => void;
|
|
465
|
+
onConfirm: (...args: any[]) => void;
|
|
466
|
+
NDatePicker: any;
|
|
467
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
468
|
+
updateUnchangedValue: {
|
|
469
|
+
type: BooleanConstructor;
|
|
470
|
+
};
|
|
471
|
+
onConfirm: {
|
|
472
|
+
type: FunctionConstructor;
|
|
473
|
+
};
|
|
474
|
+
}>>, {
|
|
475
|
+
updateUnchangedValue: boolean;
|
|
476
|
+
}>>;
|
|
477
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
478
|
+
type: {
|
|
479
|
+
type: import("vue").PropType<"datetimerange" | "daterange">;
|
|
480
|
+
default: string;
|
|
481
|
+
};
|
|
482
|
+
clearable: {
|
|
483
|
+
type: BooleanConstructor;
|
|
484
|
+
default: boolean;
|
|
485
|
+
};
|
|
486
|
+
startPlaceholder: {
|
|
487
|
+
type: StringConstructor;
|
|
488
|
+
default: string;
|
|
489
|
+
};
|
|
490
|
+
endPlaceholder: {
|
|
491
|
+
type: StringConstructor;
|
|
492
|
+
default: string;
|
|
493
|
+
};
|
|
494
|
+
componentCfg: {
|
|
495
|
+
type: ObjectConstructor;
|
|
496
|
+
default: () => {};
|
|
497
|
+
};
|
|
498
|
+
value: {
|
|
499
|
+
type: StringConstructor;
|
|
500
|
+
default: string;
|
|
501
|
+
};
|
|
502
|
+
}>> & {
|
|
503
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
504
|
+
}, {
|
|
505
|
+
type: "datetimerange" | "daterange";
|
|
506
|
+
value: string;
|
|
507
|
+
clearable: boolean;
|
|
508
|
+
startPlaceholder: string;
|
|
509
|
+
endPlaceholder: string;
|
|
510
|
+
componentCfg: Record<string, any>;
|
|
511
|
+
}>;
|
|
512
|
+
props: {
|
|
513
|
+
type: string;
|
|
514
|
+
clearable: boolean;
|
|
515
|
+
valueFormat: string;
|
|
516
|
+
filterable?: undefined;
|
|
517
|
+
multiple?: undefined;
|
|
518
|
+
maxTagCount?: undefined;
|
|
519
|
+
};
|
|
520
|
+
handlerProps(props: any, data?: any): any;
|
|
521
|
+
setDefaultValue(defaultValue: any, defValueUnit: any): any;
|
|
522
|
+
eventsBySearch?: undefined;
|
|
523
|
+
style?: undefined;
|
|
386
524
|
} | {
|
|
387
525
|
component: import("vue").DefineComponent<{
|
|
388
526
|
options: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{WidgetTypeEnums as e}from"../../types/enums.js";import{DatePresetValEnums as t}from"./enums.js";import{NInputNumber as
|
|
1
|
+
import{WidgetTypeEnums as e}from"../../types/enums.js";import{DatePresetValEnums as t,DateRangeOutDefEnums as l}from"./enums.js";import{NInputNumber as r,NInput as a}from"naive-ui";import o from"./components/CheckboxGroup.vue.js";import n from"./components/InputNumberGroup.vue.js";import p from"./components/Date.vue.js";import s from"./components/DateRangeInner.vue.js";import i from"./components/DateRangeOut.vue.js";import m from"./components/Select.vue.js";import{presetValToTimestamp as u,presetValToDateRangestr as c}from"./helpers/presetValToTimestamp.js";const d=e=>null==e?null:e,y=new Map([[e.INPUT_NUMBER,{component:r,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,t){"Enter"===e.key&&t()}}],handlerProps:(e,{title:t}={})=>({...e,placeholder:`输入${t}`}),setDefaultValue:d}],[e.INPUTNUMBER_RANGE,{component:n,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,t){"Enter"===e.key&&t()}}],handlerProps:(e,{title:t,filterExplicit:l}={})=>({...e,startPlaceholder:1===l?`起始${t}`:"最小值",endPlaceholder:1===l?`截止${t}`:"最大值"}),setDefaultValue:d}],[e.INPUT,{component:a,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,t){"Enter"===e.key&&t()}}],handlerProps:(e,{title:t}={})=>({...e,placeholder:`搜索${t}`}),setDefaultValue:d}],[e.SELECT,{component:m,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},eventsBySearch:[{name:"change",handler(e,t,l){const{multiple:r}=l;r&&t()}}],handlerProps(e,t={}){const{valueList:l,multiple:r,title:a,manualMapping:o,dynamicOptionInfo:n,defaultValue:p,defValueUnit:s,_frontId:i,isInit:m}=t,u={...e,placeholder:`请选择${a}`,manualMapping:o,dynamicOptionInfo:n,valueList:l,defValue:p,defValueUnit:s,_frontId:i,isInit:m};return r&&(u.multiple=!0),u},setDefaultValue:d}],[e.DATE,{component:p,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,t={}){const{title:l}=t;return{...e,placeholder:`请选择${l}`}},setDefaultValue:(e,l)=>l&&l!==t.CUSTOM?u(l,"YYYY-MM-DD"):e}],[e.DATE_RANGE_INNER,{component:s,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,t={}){const{title:l,filterExplicit:r}=t;return{...e,filterExplicit:r,startPlaceholder:`起始${l}`,endPlaceholder:`截止${l}`}},setDefaultValue:d}],[e.DATE_RANGE_OUT,{component:i,props:{type:"daterange",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,t={}){const{title:l,filterExplicit:r}=t;return{...e,filterExplicit:r,startPlaceholder:`起始${l}`,endPlaceholder:`截止${l}`}},setDefaultValue:(e,t)=>t&&t!==l.CUSTOM?c(t,"YYYY-MM-DD"):e}],[e.DATE_TIME,{component:p,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,t={}){const{title:l}=t;return{...e,placeholder:`请选择${l}`}},setDefaultValue:(e,l)=>l&&l!==t.CUSTOM?u(l,"YYYY-MM-DD HH:mm:ss"):e}],[e.DATETIME_RANGE_INNER,{component:s,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,t={}){const{title:l,filterExplicit:r}=t;return{...e,filterExplicit:r,startPlaceholder:`起始${l}`,endPlaceholder:`截止${l}`}},setDefaultValue:d}],[e.DATETIME_RANGE_OUT,{component:i,props:{type:"datetimerange",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,t={}){const{title:l,filterExplicit:r}=t;return{...e,filterExplicit:r,startPlaceholder:`起始${l}`,endPlaceholder:`截止${l}`}},setDefaultValue:(e,l)=>l&&l!==t.CUSTOM?c(l,"YYYY-MM-DD HH:mm:ss"):e}],[e.CHECKBOX_GROUP,{component:o,props:{},style:{"line-height":"32px"},handlerProps(e,{valueList:t,multiple:l}={}){const r={...e,multiple:l};return Array.isArray(t)&&(r.options=t.map((({value:e,label:t})=>({value:e,label:t})))),r},setDefaultValue:d}]]);export{y as WidgetCfgMaps};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{WidgetOptionEnums as e,WidgetTypeEnums as t}from"../types/enums.js";import{presetValToTimestamp as i}from"../components/render-widget/helpers/presetValToTimestamp.js";import{DatePresetValEnums as n}from"../components/render-widget/enums.js";const l={[e.RADIO]:"0",[e.MULTIPLE]:"1",[e.ALL]:"0",[e.SELECT_TIME]:"1",[e.PAST_TIME]:"2",[e.FUTURE_TIME]:"3"};function a(){return{transformData:function(i){return i.map((i=>{var n,a;const{optionInfo:o={list:[],manualMapping:!0,dynamicOptionInfo:{}},type:u,defaultValue:r,optionType:s,filterExplicit:p,rangeFilter:
|
|
1
|
+
import{WidgetOptionEnums as e,WidgetTypeEnums as t}from"../types/enums.js";import{presetValToTimestamp as i}from"../components/render-widget/helpers/presetValToTimestamp.js";import{DatePresetValEnums as n}from"../components/render-widget/enums.js";const l={[e.RADIO]:"0",[e.MULTIPLE]:"1",[e.ALL]:"0",[e.SELECT_TIME]:"1",[e.PAST_TIME]:"2",[e.FUTURE_TIME]:"3"};function a(){return{transformData:function(i){return i.map((i=>{var n,a;const{optionInfo:o={list:[],manualMapping:!0,dynamicOptionInfo:{}},type:u,defaultValue:r,optionType:s,filterExplicit:p,rangeFilter:E}=i,d={},T={title:(c=i).title,alias:c.customTitle,isShowSearch:c.isShowSearch?1:0,filterExplicit:c.filterExplicit?1:0,explicitRequired:c.explicitRequired?1:0,advanceOptionSetting:c.optionType?l[c.optionType]:"",placeholder:c.remark,advanceColWidth:c.width};var c;let m,f,v=u;p?(m=u===t.SELECT&&s===e.MULTIPLE?null==r?void 0:r.valueList:null==(n=null==r?void 0:r.valueList)?void 0:n[0],f=null==r?void 0:r.unit):u===t.SELECT&&(null==o?void 0:o.list)&&(null==o?void 0:o.list.length)<10&&(v="CHECKBOX_GROUP"),E&&(u===t.INPUT_NUMBER&&(v="INPUTNUMBER_RANGE"),u===t.DATE&&(v=p?"DATE_RANGE_OUT":"DATE_RANGE_INNER"),u===t.DATE_TIME&&(v=p?"DATETIME_RANGE_OUT":"DATETIME_RANGE_INNER"));const g={isRender:!0,isInit:!1,widgetType:v,valueList:null==(a=null==o?void 0:o.list)?void 0:a.map((({name:e,value:t})=>({value:t,label:e}))),defaultValue:m,defValueUnit:f,multiple:s===e.MULTIPLE,manualMapping:null==o?void 0:o.manualMapping,dynamicOptionInfo:null==o?void 0:o.dynamicOptionInfo};return{...T,fieldType:i.dataType,columnName:i.name,settingObj:d,setting:JSON.stringify(d),widgetCfg:g,rangeFilter:E}}))},getCacheDef:function(e,i){const{widgetType:n,widgetCfg:l}=e;return n!==t.SELECT&&n!==t.CHECKBOX_GROUP||!l.multiple?i[0]:i},transformClassifyChild:function(e){const t={};return e&&e.length>0&&e.forEach((e=>{const l=e.field_key,a=e.value&&e.value.length>1?e.value:e.value.toString();if(t[l]=a,e.unit&&e.unit!==n.CUSTOM){const n=i(e.unit,"YYYY-MM-DD HH:mm:ss");t[l]=n}})),t},transformParams:function(e){const i={},n=[t.SELECT];return e&&e.length>0&&e.forEach((e=>{const t=e.field_key,l=n.includes(e.widgetType)||e.value&&e.value.length>1?e.value:e.value.toString();i[t]=l})),i}}}export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{WidgetCfgMaps as e}from"../components/render-widget/widgetCfgMaps.js";import{DatePresetValEnums as t}from"../components/render-widget/enums.js";import{WidgetTypeEnums as
|
|
1
|
+
import{WidgetCfgMaps as e}from"../components/render-widget/widgetCfgMaps.js";import{DatePresetValEnums as n,DateRangeOutDefEnums as t}from"../components/render-widget/enums.js";import{WidgetTypeEnums as r}from"../types/enums.js";const i=[r.CHECKBOX_GROUP,r.DATE_RANGE_INNER,r.DATETIME_RANGE_INNER];function u(){function u(e){var n;return null==(n=e.widgetCfg)?void 0:n.isRender}function o(n){const{widgetType:t,defaultValue:r,defValueUnit:i}=n.widgetCfg||{},u=e.get(t);let o;if(u){const{setDefaultValue:e}=u;e&&(o=e(r,i))}return o}return{isRender:u,getDefValByRenderWidget:o,initRenderWidgetCfg:function(e){const n=u(e);if(!n)return n;const{widgetType:t}=e.widgetCfg||{};return e._frontId||(e._frontId="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const n=16*Math.random()|0;return("x"===e?n:3&n|8).toString(16)}))),e.isRender=n,e.widgetType=t,e.con="EQ",i.includes(t)&&(e._isBlock=!0),e.value=o(e),n},getRenderSearchConObj:function(e){if(!u(e))return null;const{columnName:i,con:o,value:d,widgetType:l}=e;let s=null;const f=[r.DATE,r.DATE_TIME],x=[r.DATE_RANGE_OUT,r.DATE_RANGE_INNER,r.DATETIME_RANGE_OUT,r.DATETIME_RANGE_INNER];f.includes(l)&&(s=n.CUSTOM),x.includes(l)&&(s=t.CUSTOM);const a=Array.isArray(d)?d:d?[d]:[];return{widgetType:l,field_key:i,con:o,value:a.length>0?a:null,unit:s}},getDefValByRenderConObj:function(e,n){if(!u(n))return null;const{widgetType:t,multiple:i}=n.widgetCfg||{},{value:o}=e;return t!==r.SELECT&&t!==r.CHECKBOX_GROUP||!i?Array.isArray(o)?o[0]:o:Array.isArray(o)?o:o?[o]:[]},isExistDefValByRenderWidget:function(e){const{defaultValue:n,defValueUnit:t}=e.widgetCfg||{};return!(!n&&!t)},resetRenderWidgetValue:function(e){const n=u(e);return n?(e.value=null,n):n}}}export{u as default};
|
|
@@ -22,8 +22,10 @@ export declare const WidgetTypeEnums: {
|
|
|
22
22
|
DATE_TIME: string;
|
|
23
23
|
CHECKBOX_GROUP: string;
|
|
24
24
|
INPUTNUMBER_RANGE: string;
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
DATE_RANGE_OUT: string;
|
|
26
|
+
DATE_RANGE_INNER: string;
|
|
27
|
+
DATETIME_RANGE_OUT: string;
|
|
28
|
+
DATETIME_RANGE_INNER: string;
|
|
27
29
|
};
|
|
28
30
|
export declare const WidgetOptionEnums: {
|
|
29
31
|
RADIO: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const T={TEXT:"TEXT",NUMBER:"NUMBER",DATE:"DATE",DATE_TIME:"DATETIME",TIME:"TIME",BOOLEAN:"BOOLEAN"},E={SQL:"SQL",API:"API"},A={MANUAL:"manual",DICT:"dict"},_={INPUT_NUMBER:"NUMBER",INPUT:"TEXT",SELECT:"SELECT",DATE:"DATE",DATE_TIME:"DATETIME",CHECKBOX_GROUP:"CHECKBOX_GROUP",INPUTNUMBER_RANGE:"INPUTNUMBER_RANGE",
|
|
1
|
+
const T={TEXT:"TEXT",NUMBER:"NUMBER",DATE:"DATE",DATE_TIME:"DATETIME",TIME:"TIME",BOOLEAN:"BOOLEAN"},E={SQL:"SQL",API:"API"},A={MANUAL:"manual",DICT:"dict"},_={INPUT_NUMBER:"NUMBER",INPUT:"TEXT",SELECT:"SELECT",DATE:"DATE",DATE_TIME:"DATETIME",CHECKBOX_GROUP:"CHECKBOX_GROUP",INPUTNUMBER_RANGE:"INPUTNUMBER_RANGE",DATE_RANGE_OUT:"DATE_RANGE_OUT",DATE_RANGE_INNER:"DATE_RANGE_INNER",DATETIME_RANGE_OUT:"DATETIME_RANGE_OUT",DATETIME_RANGE_INNER:"DATETIME_RANGE_INNER"},R={RADIO:"SELECT_SINGLE",MULTIPLE:"SELECT_MULTIPLE",ALL:"DATETIME_WHOLE",SELECT_TIME:"DATETIME_SELECT",PAST_TIME:"DATETIME_PAST",FUTURE_TIME:"DATETIME_FUTURE"},N={CUSTOM:"CUSTOM",FIRST_VAL:"FIRST",NOW:"NOW",TODAY:"TODAY",TODAY_START:"TODAY_START",TODAY_END:"TODAY_END",TOMORROW:"TOMORROW",TOMORROW_START:"TOMORROW_START",TOMORROW_END:"TOMORROW_END",YESTERDAY:"YESTERDAY",YESTERDAY_START:"YESTERDAY_START",YESTERDAY_END:"YESTERDAY_END",THIS_WEEK:"THIS_WEEK",WEEK_START:"THIS_WEEK_START",WEEK_END:"THIS_WEEK_END",NEXT_WEEK:"NEXT_WEEK",LAST_WEEK:"LAST_WEEK",THIS_MONTH:"THIS_MONTH",MONTH_START:"THIS_MONTH_START",MONTH_END:"THIS_MONTH_END",NEXT_MONTH:"NEXT_MONTH",LAST_MONTH:"LAST_MONTH",THIS_QUARTER:"THIS_QUARTER",NEXT_QUARTER:"NEXT_QUARTER",LAST_QUARTER:"LAST_QUARTER",THIS_YEAR:"THIS_YEAR",NEXT_YEAR:"NEXT_YEAR",LAST_YEAR:"LAST_YEAR"},O={NULL:"NULL",EQUAL:"EQ"};export{O as ConditionEnums,E as DataTypeEnums,T as FieldTypeEnums,A as MappingMethodEnums,R as WidgetOptionEnums,_ as WidgetTypeEnums,N as WidgetValEnums};
|
package/es/env.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
2
|
-
|
|
3
|
-
interface ImportMetaEnv {
|
|
4
|
-
readonly VITE_APP_TYPE: string;
|
|
5
|
-
// 更多环境变量...
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
interface ImportMeta {
|
|
9
|
-
readonly env: ImportMetaEnv;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
declare module '*.vue' {
|
|
13
|
-
// @ts-ignore
|
|
14
|
-
import type { App, defineComponent } from 'vue';
|
|
15
|
-
// // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
|
16
|
-
// // const component: DefineComponent<{}, {}, any>
|
|
17
|
-
const component: ReturnType<typeof defineComponent> & {
|
|
18
|
-
install(app: App): void;
|
|
19
|
-
};
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
export default component;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
declare module '*.js';
|
|
25
|
-
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
|
|
3
|
+
interface ImportMetaEnv {
|
|
4
|
+
readonly VITE_APP_TYPE: string;
|
|
5
|
+
// 更多环境变量...
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface ImportMeta {
|
|
9
|
+
readonly env: ImportMetaEnv;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare module '*.vue' {
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
import type { App, defineComponent } from 'vue';
|
|
15
|
+
// // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
|
16
|
+
// // const component: DefineComponent<{}, {}, any>
|
|
17
|
+
const component: ReturnType<typeof defineComponent> & {
|
|
18
|
+
install(app: App): void;
|
|
19
|
+
};
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
export default component;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare module '*.js';
|
|
25
|
+
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="@cnhis-design-vue/shared",s="3.1.44-release.
|
|
1
|
+
var e="@cnhis-design-vue/shared",s="3.1.44-release.3",i="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.1.44-release.3",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,i as main,e as name,n as peerDependencies,s as version};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.44-release.
|
|
3
|
+
"version": "3.1.44-release.3",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"iOS 7",
|
|
62
62
|
"last 3 iOS versions"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "5a4f47c67aa2605421419ccc34fe3ee602bd29ee"
|
|
65
65
|
}
|
|
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';
|