cnhis-design-vue 3.1.44-beta.1 → 3.1.44-beta.10
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/base-search/index.d.ts +1 -0
- package/es/components/base-search/src/index.vue.d.ts +1 -0
- package/es/components/base-search/src/index.vue.js +1 -1
- package/es/components/base-search/style/index.css +1 -1
- package/es/components/classification/index.d.ts +6 -2
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +6 -2
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +6 -2
- package/es/components/classification/src/index.vue.d.ts +6 -2
- 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.vue.js +1 -1
- package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
- 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/useCenter.d.ts +3 -3
- package/es/components/fabric-chart/src/hooks/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCommon.d.ts +2 -4
- package/es/components/fabric-chart/src/hooks/useCommon.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.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.d.ts +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/fabric-chart/src/utils/utils.d.ts +2 -0
- package/es/components/fabric-chart/src/utils/utils.js +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +1 -1
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-select-label/index.d.ts +15 -4
- package/es/components/iho-select-label/src/LabelFormContent.vue.d.ts +5 -2
- package/es/components/iho-select-label/src/SelectLabel.vue.d.ts +10 -2
- package/es/components/iho-select-label/src/SelectLabel.vue.js +1 -1
- package/es/components/iho-select-label/src/components/label-classify.vue.d.ts +5 -2
- package/es/components/iho-select-label/src/components/label-classify.vue.js +1 -1
- package/es/components/iho-select-label/style/index.css +1 -1
- package/es/components/iho-table/src/IhoTable.vue.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +1 -0
- package/es/components/index.css +1 -1
- package/es/components/quick-search/index.d.ts +1 -0
- package/es/components/quick-search/src/index.vue.d.ts +1 -0
- package/es/components/quick-search/style/index.css +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/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +6 -2
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +6 -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/Label.vue.d.ts +70 -0
- package/es/components/table-filter/src/components/render-widget/components/Label.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectLabel.vue.d.ts +56 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectLabel.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +5 -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 +297 -14
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/directive/resize.d.ts +4 -0
- package/es/components/table-filter/src/directive/resize.js +1 -0
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +1 -0
- 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/tool/resizeSensor.d.ts +16 -0
- package/es/components/table-filter/src/tool/resizeSensor.js +1 -0
- package/es/components/table-filter/src/types/enums.d.ts +6 -2
- package/es/components/table-filter/src/types/enums.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +14 -0
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/table-filter/src/components/render-widget/components/DateRange.vue.js +0 -1
|
@@ -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: {
|
|
@@ -499,4 +637,149 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
499
637
|
handlerProps(props: any, { valueList, multiple }?: any): any;
|
|
500
638
|
setDefaultValue: (defaultValue: any) => any;
|
|
501
639
|
eventsBySearch?: undefined;
|
|
640
|
+
} | {
|
|
641
|
+
component: import("vue").DefineComponent<{
|
|
642
|
+
componentCfg: {
|
|
643
|
+
type: import("vue").PropType<import("../../../../../../es/components/table-filter/src/types").ISearchType>;
|
|
644
|
+
};
|
|
645
|
+
value: {
|
|
646
|
+
type: StringConstructor;
|
|
647
|
+
default: string;
|
|
648
|
+
};
|
|
649
|
+
filterApiConfig: {
|
|
650
|
+
type: ObjectConstructor;
|
|
651
|
+
};
|
|
652
|
+
}, {
|
|
653
|
+
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
654
|
+
baseActiveColor: string;
|
|
655
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
656
|
+
componentCfg: {
|
|
657
|
+
type: import("vue").PropType<import("../../../../../../es/components/table-filter/src/types").ISearchType>;
|
|
658
|
+
};
|
|
659
|
+
value: {
|
|
660
|
+
type: StringConstructor;
|
|
661
|
+
default: string;
|
|
662
|
+
};
|
|
663
|
+
filterApiConfig: {
|
|
664
|
+
type: ObjectConstructor;
|
|
665
|
+
};
|
|
666
|
+
}>> & {
|
|
667
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
668
|
+
}>>;
|
|
669
|
+
emit: (event: "update:value", ...args: any[]) => void;
|
|
670
|
+
selectedList: import("vue").Ref<string[]>;
|
|
671
|
+
tagList: import("vue").Ref<never[]>;
|
|
672
|
+
categoryList: import("vue").ComputedRef<import("../../../../../../es/components/table-filter/src/types").IFilterCategoryLabelItemType[]>;
|
|
673
|
+
onResize: (el: HTMLElement, categoryItem: import("../../../../../../es/components/table-filter/src/types").IFilterCategoryLabelItemType) => void;
|
|
674
|
+
handleLabelUpfold: (categoryItem: import("../../../../../../es/components/table-filter/src/types").IFilterCategoryLabelItemType) => void;
|
|
675
|
+
formatStyle: (item: import("../../../../../../es/components/table-filter/src/types").IhoFilterTabLabelItemType) => {
|
|
676
|
+
background: string;
|
|
677
|
+
borderColor: string;
|
|
678
|
+
} | {
|
|
679
|
+
background?: undefined;
|
|
680
|
+
borderColor?: undefined;
|
|
681
|
+
};
|
|
682
|
+
handleLabelChange: (isSelect: boolean, item: import("../../../../../../es/components/table-filter/src/types").IhoFilterTabLabelItemType) => void;
|
|
683
|
+
initTagList: () => Promise<void>;
|
|
684
|
+
NTag: any;
|
|
685
|
+
NTooltip: any;
|
|
686
|
+
NIcon: any;
|
|
687
|
+
ChevronUpCircleOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
688
|
+
ChevronDownCircleOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
689
|
+
vResize: {
|
|
690
|
+
mounted(el: any, binding: any): void;
|
|
691
|
+
};
|
|
692
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
693
|
+
componentCfg: {
|
|
694
|
+
type: import("vue").PropType<import("../../../../../../es/components/table-filter/src/types").ISearchType>;
|
|
695
|
+
};
|
|
696
|
+
value: {
|
|
697
|
+
type: StringConstructor;
|
|
698
|
+
default: string;
|
|
699
|
+
};
|
|
700
|
+
filterApiConfig: {
|
|
701
|
+
type: ObjectConstructor;
|
|
702
|
+
};
|
|
703
|
+
}>> & {
|
|
704
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
705
|
+
}, {
|
|
706
|
+
value: string;
|
|
707
|
+
}>;
|
|
708
|
+
props: {
|
|
709
|
+
clearable?: undefined;
|
|
710
|
+
filterable?: undefined;
|
|
711
|
+
multiple?: undefined;
|
|
712
|
+
maxTagCount?: undefined;
|
|
713
|
+
type?: undefined;
|
|
714
|
+
valueFormat?: undefined;
|
|
715
|
+
};
|
|
716
|
+
handlerProps(props: any): any;
|
|
717
|
+
setDefaultValue(defaultValue: any): any;
|
|
718
|
+
eventsBySearch?: undefined;
|
|
719
|
+
style?: undefined;
|
|
720
|
+
} | {
|
|
721
|
+
component: import("vue").DefineComponent<{
|
|
722
|
+
componentCfg: {
|
|
723
|
+
type: import("vue").PropType<import("../../../../../../es/components/table-filter/src/types").ISearchType>;
|
|
724
|
+
};
|
|
725
|
+
value: {
|
|
726
|
+
type: StringConstructor;
|
|
727
|
+
default: string;
|
|
728
|
+
};
|
|
729
|
+
filterApiConfig: {
|
|
730
|
+
type: ObjectConstructor;
|
|
731
|
+
};
|
|
732
|
+
}, {
|
|
733
|
+
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
734
|
+
$attrs: {
|
|
735
|
+
[x: string]: unknown;
|
|
736
|
+
};
|
|
737
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
738
|
+
componentCfg: {
|
|
739
|
+
type: import("vue").PropType<import("../../../../../../es/components/table-filter/src/types").ISearchType>;
|
|
740
|
+
};
|
|
741
|
+
value: {
|
|
742
|
+
type: StringConstructor;
|
|
743
|
+
default: string;
|
|
744
|
+
};
|
|
745
|
+
filterApiConfig: {
|
|
746
|
+
type: ObjectConstructor;
|
|
747
|
+
};
|
|
748
|
+
}>> & {
|
|
749
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
750
|
+
}>>;
|
|
751
|
+
emit: (event: "update:value", ...args: any[]) => void;
|
|
752
|
+
tagList: import("vue").Ref<never[]>;
|
|
753
|
+
valueCp: import("vue").WritableComputedRef<string[]>;
|
|
754
|
+
optionList: import("vue").ComputedRef<import("naive-ui").SelectOption[]>;
|
|
755
|
+
initTagList: () => Promise<void>;
|
|
756
|
+
NSelect: any;
|
|
757
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
758
|
+
componentCfg: {
|
|
759
|
+
type: import("vue").PropType<import("../../../../../../es/components/table-filter/src/types").ISearchType>;
|
|
760
|
+
};
|
|
761
|
+
value: {
|
|
762
|
+
type: StringConstructor;
|
|
763
|
+
default: string;
|
|
764
|
+
};
|
|
765
|
+
filterApiConfig: {
|
|
766
|
+
type: ObjectConstructor;
|
|
767
|
+
};
|
|
768
|
+
}>> & {
|
|
769
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
770
|
+
}, {
|
|
771
|
+
value: string;
|
|
772
|
+
}>;
|
|
773
|
+
props: {
|
|
774
|
+
clearable: boolean;
|
|
775
|
+
filterable: boolean;
|
|
776
|
+
multiple: boolean;
|
|
777
|
+
maxTagCount: string;
|
|
778
|
+
type?: undefined;
|
|
779
|
+
valueFormat?: undefined;
|
|
780
|
+
};
|
|
781
|
+
handlerProps(props: any, data?: any): any;
|
|
782
|
+
setDefaultValue(defaultValue: any): any;
|
|
783
|
+
eventsBySearch?: undefined;
|
|
784
|
+
style?: undefined;
|
|
502
785
|
}>;
|
|
@@ -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/Label.vue.js";import u from"./components/SelectLabel.vue.js";import c from"./components/Select.vue.js";import{presetValToTimestamp as d,presetValToDateRangestr as y}from"./helpers/presetValToTimestamp.js";const f=e=>null==e?null:e,h=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:f}],[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:f}],[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:f}],[e.SELECT,{component:c,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:f}],[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?d(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:f}],[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?y(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?d(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:f}],[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?y(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:f}],[e.LABEL,{component:m,props:{},handlerProps:e=>({...e}),setDefaultValue:e=>e&&Array.isArray(e)?e.join("|#|"):e}],[e.SELECTLABEL,{component:u,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},handlerProps(e,t={}){const{multiple:l,title:r}=t,a={...e,placeholder:`请选择${r}`};return l&&(a.multiple=!0),a},setDefaultValue:e=>e&&Array.isArray(e)?e.join("|#|"):e}]]);export{h as WidgetCfgMaps};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import o from"../tool/resizeSensor.js";import{useDebounceFn as e}from"@vueuse/core";const r={mounted(r,t){const s=t.value,m=e(s,10);new o(r,m)}};export{r as default};
|
|
@@ -18,6 +18,7 @@ export default function useAdvanced(): {
|
|
|
18
18
|
multiple: boolean;
|
|
19
19
|
manualMapping: boolean | null | undefined;
|
|
20
20
|
dynamicOptionInfo: import("../../../../../es/components/table-filter/src/types").dynamicOptionInfoType | {} | undefined;
|
|
21
|
+
classifyStr: string | undefined;
|
|
21
22
|
};
|
|
22
23
|
rangeFilter: boolean | undefined;
|
|
23
24
|
title: string;
|
|
@@ -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:
|
|
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:E,rangeFilter:p}=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 f,m,v=u;E?(f=u===t.SELECT&&s===e.MULTIPLE?null==r?void 0:r.valueList:null==(n=null==r?void 0:r.valueList)?void 0:n[0],m=null==r?void 0:r.unit,u===t.LABEL&&(v="SELECTLABEL",f=null==r?void 0:r.valueList)):u===t.SELECT&&(null==o?void 0:o.list)&&(null==o?void 0:o.list.length)<10&&(v="CHECKBOX_GROUP"),p&&(u===t.INPUT_NUMBER&&(v="INPUTNUMBER_RANGE"),u===t.DATE&&(v=E?"DATE_RANGE_OUT":"DATE_RANGE_INNER"),u===t.DATE_TIME&&(v=E?"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:f,defValueUnit:m,multiple:s===e.MULTIPLE||v===t.SELECTLABEL,manualMapping:null==o?void 0:o.manualMapping,dynamicOptionInfo:null==o?void 0:o.dynamicOptionInfo,classifyStr:null==r?void 0:r.classifyStr};return{...T,fieldType:i.dataType,columnName:i.name,settingObj:d,setting:JSON.stringify(d),widgetCfg:g,rangeFilter:p}}))},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,r.LABEL];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};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class for dimension change detection.
|
|
3
|
+
*
|
|
4
|
+
* @param {Element|Element[]} element
|
|
5
|
+
* @param {Function} callback
|
|
6
|
+
*
|
|
7
|
+
* @constructor
|
|
8
|
+
*/
|
|
9
|
+
declare class ResizeSensor {
|
|
10
|
+
_isCollectionTyped: boolean;
|
|
11
|
+
_element: any;
|
|
12
|
+
constructor(element: any, callback: any);
|
|
13
|
+
static detach(element: any): void;
|
|
14
|
+
detach(): void;
|
|
15
|
+
}
|
|
16
|
+
export default ResizeSensor;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=window.requestAnimationFrame||function(e){return window.setTimeout(e,20)};class t{constructor(e){let t;this.q=[],this.add=function(e){this.q.push(e)},this.call=function(){for(t=0;t<this.q.length;t++)this.q[t].call(this,e)}}}function s(s,i){if(s.resizedAttached){if(s.resizedAttached)return void s.resizedAttached.add(i)}else s.resizedAttached=new t(s),s.resizedAttached.add(i);s.resizeSensor=document.createElement("div"),s.resizeSensor.className="resize-sensor";const o="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden; opacity: 0;direction: ltr;",n="position: absolute; left: 0; top: 0; transition: 0s;";s.resizeSensor.style.cssText=o,s.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="'+o+'"><div style="'+n+'"></div></div><div class="resize-sensor-shrink" style="'+o+'"><div style="'+n+' width: 200%; height: 200%"></div></div>',s.appendChild(s.resizeSensor),"static"==function(e,t){return e.currentStyle?e.currentStyle[t]:window.getComputedStyle?window.getComputedStyle(e,null).getPropertyValue(t):e.style[t]}(s,"position")&&(s.style.position="relative");const l=s.resizeSensor.childNodes[0],r=l.childNodes[0],d=s.resizeSensor.childNodes[1],c=function(){r.style.width="100000px",r.style.height="100000px",l.scrollLeft=1e5,l.scrollTop=1e5,d.scrollLeft=1e5,d.scrollTop=1e5};c();let h=!1;const a=function(){s.resizedAttached&&(h&&(s.resizedAttached.call(),h=!1),e(a))};let u,f,p,z;e(a);const y=function(){(p=s.offsetWidth)==u&&(z=s.offsetHeight)==f||(h=!0,u=p,f=z),c()},v=function(e,t,s){e.attachEvent?e.attachEvent("on"+t,s):e.addEventListener(t,s)};v(l,"scroll",y),v(d,"scroll",y)}class i{constructor(e,t){const i=Object.prototype.toString.call(e);if(this._isCollectionTyped="[object Array]"===i||"[object NodeList]"===i||"[object HTMLCollection]"===i,this._element=e,this._isCollectionTyped)for(let i=0;i<e.length;i++)s(e[i],t);else s(e,t)}static detach(e){e.resizeSensor&&(e.removeChild(e.resizeSensor),delete e.resizeSensor,delete e.resizedAttached)}detach(){const e=this._isCollectionTyped,t=this._element;if(e)for(let e=0;e<t.length;e++)i.detach(t[e]);else i.detach(t)}}export{i as default};
|
|
@@ -22,8 +22,12 @@ 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;
|
|
29
|
+
LABEL: string;
|
|
30
|
+
SELECTLABEL: string;
|
|
27
31
|
};
|
|
28
32
|
export declare const WidgetOptionEnums: {
|
|
29
33
|
RADIO: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const E={TEXT:"TEXT",NUMBER:"NUMBER",DATE:"DATE",DATE_TIME:"DATETIME",TIME:"TIME",BOOLEAN:"BOOLEAN"},T={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",LABEL:"LABEL",SELECTLABEL:"SELECTLABEL"},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"},S={NULL:"NULL",EQUAL:"EQ"};export{S as ConditionEnums,T as DataTypeEnums,E as FieldTypeEnums,A as MappingMethodEnums,R as WidgetOptionEnums,_ as WidgetTypeEnums,N as WidgetValEnums};
|
|
@@ -117,6 +117,7 @@ export declare type IApiServerType = {
|
|
|
117
117
|
defaultValue?: {
|
|
118
118
|
valueList?: any[];
|
|
119
119
|
unit?: string | null;
|
|
120
|
+
classifyStr?: string;
|
|
120
121
|
};
|
|
121
122
|
optionInfo?: {
|
|
122
123
|
manualMapping?: boolean | null;
|
|
@@ -190,3 +191,16 @@ export declare type ISearchParamsType = {
|
|
|
190
191
|
value: string[];
|
|
191
192
|
unit: 'custom' | null;
|
|
192
193
|
};
|
|
194
|
+
export declare type IFilterCategoryLabelItemType = {
|
|
195
|
+
classifyId: string;
|
|
196
|
+
classifyName: string;
|
|
197
|
+
isShowBtn: boolean;
|
|
198
|
+
isUnfold: boolean;
|
|
199
|
+
labelList: IhoFilterTabLabelItemType[];
|
|
200
|
+
};
|
|
201
|
+
export declare type IhoFilterTabLabelItemType = {
|
|
202
|
+
labelCode: string;
|
|
203
|
+
labelShowText: string;
|
|
204
|
+
backgroundColor: string;
|
|
205
|
+
isSelect: boolean;
|
|
206
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="@cnhis-design-vue/shared",i="3.1.44-beta.
|
|
1
|
+
var e="@cnhis-design-vue/shared",i="3.1.44-beta.10",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.1.44-beta.10",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};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.44-beta.
|
|
3
|
+
"version": "3.1.44-beta.10",
|
|
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": "6a15c090f58ae9d84af597417e3013a47caa6929"
|
|
65
65
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as a,computed as l,watch as t,openBlock as u,createElementBlock as r,Fragment as i,renderList as v,normalizeClass as d,toDisplayString as o,createCommentVNode as n,createVNode as s,unref as c,withCtx as p,createTextVNode as m,createElementVNode as f}from"vue";import{NButton as y}from"naive-ui";import h from"../../../../../date-picker/index.js";import b from"moment";import{isString as g}from"lodash-es";import{getAllDateRangeInfo as k}from"../helpers/presetValToTimestamp.js";import Y from"../../../../../../_virtual/plugin-vue_export-helper.js";const F={class:"render-widget-date-range"},_={key:0,class:"radio-date-group"},D=["onClick"],M={key:1,class:"date-detail-range"},x=f("span",{class:"divider"},null,-1);var S=Y(e({__name:"DateRange",props:{type:{type:String,default:"date"},filterExplicit:{type:Number,default:1},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},startPlaceholder:{type:String,default:"起始"},endPlaceholder:{type:String,default:"截止"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:f}){const Y=e,S=a([]),w=a(!0),P=a(""),j=a(),C=a(),E=l((()=>{let e="";switch(Y.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e})),H=l((()=>{let e="";switch(Y.type){case"date":e="选择日期";break;case"datetime":e="选择时间"}return e}));function O(e,a){switch(a){case"start":j.value=e;break;case"end":C.value=e}const l=j.value?b(j.value).format(E.value):null,t=C.value?b(C.value).format(E.value):null;f("update:value",l||t?`${null!=l?l:""} ~ ${null!=t?t:""}`:"")}function R(e){return!!C.value&&e>C.value}function T(e){return!!j.value&&e<j.value}return t((()=>Y.value),(e=>{if(e&&g(e)&&e.includes("~")){const[a,l]=e.split("~");return a.trim()&&(j.value=b(a.trim()).valueOf()),void(l.trim()&&(C.value=b(l.trim()).valueOf()))}j.value=C.value=null,P.value=""}),{immediate:!0}),function(){const e=k(E.value);S.value=e}(),(a,l)=>(u(),r("div",F,[0===e.filterExplicit?(u(),r(i,{key:0},[w.value?n("v-if",!0):(u(),r("div",_,[(u(!0),r(i,null,v(S.value,(e=>(u(),r("span",{key:e.value,class:d(["radio-date-item",P.value===e.value?"radio-date-item-active":""]),onClick:a=>{return l=e.value,P.value===l?P.value="":P.value=l,void(P.value&&f("update:value",P.value));var l}},o(e.label),11,D)))),128))])),s(c(y),{secondary:"",class:d(w.value?"select-date-right":"select-date-left"),onClick:l[0]||(l[0]=e=>w.value=!w.value)},{default:p((()=>[m(o(c(H)),1)])),_:1},8,["class"])],64)):n("v-if",!0),w.value?(u(),r("div",M,[s(c(h),{type:e.type,"default-time":"00:00:00",clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.startPlaceholder,value:j.value,"is-date-disabled":R,"onUpdate:value":l[1]||(l[1]=e=>O(e,"start"))},null,8,["type","clearable","valueFormat","placeholder","value"]),x,s(c(h),{type:e.type,"default-time":"23:59:59",clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.endPlaceholder,value:C.value,"is-date-disabled":T,"onUpdate:value":l[2]||(l[2]=e=>O(e,"end"))},null,8,["type","clearable","valueFormat","placeholder","value"])])):n("v-if",!0)]))}}),[["__file","DateRange.vue"]]);export{S as default};
|