cnhis-design-vue 3.1.45-beta.7 → 3.1.45-beta.9
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 +2 -0
- package/es/components/base-search/src/index.vue.d.ts +2 -0
- package/es/components/base-search/style/index.css +1 -1
- package/es/components/classification/index.d.ts +165 -11
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +165 -11
- package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +165 -11
- package/es/components/classification/src/index.vue.d.ts +165 -11
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
- package/es/components/fabric-chart/src/hooks/useGrid.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
- package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +77 -0
- package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +93 -0
- package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +3 -0
- package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +3 -0
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +3 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +3 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +3 -0
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/dist/index.d.ts +3 -0
- package/es/components/iho-table/src/utils/dist/index.d.ts +44 -0
- package/es/components/index.css +1 -1
- package/es/components/quick-search/index.d.ts +2 -0
- package/es/components/quick-search/src/index.vue.d.ts +2 -0
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +36 -0
- package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +36 -0
- package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +82 -0
- package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +57 -0
- package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +57 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +165 -10
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +16 -1
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +18 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +128 -10
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic1.vue.d.ts +61 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +163 -10
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +165 -10
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +218 -0
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/{Date.vue.d.ts → DateOut.vue.d.ts} +21 -2
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +71 -0
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +99 -5
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +13 -9
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +7 -5
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +6 -5
- package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +15 -25
- package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/Select1.vue.d.ts +45 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +175 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +114 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +520 -25
- 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 +10 -3
- package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
- package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.d.ts +27 -0
- package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.js +1 -0
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.d.ts +55 -0
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +1 -0
- package/es/components/table-filter/src/components/render-widget/helpers/enums.d.ts +56 -0
- package/es/components/table-filter/src/components/render-widget/helpers/enums.js +1 -0
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +2 -6
- 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 +548 -24
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -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/baseOptions.js +1 -1
- package/es/components/table-filter/src/types/enums.d.ts +2 -0
- package/es/components/table-filter/src/types/enums.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/table-filter/src/components/render-widget/basicData.d.ts +0 -4
- package/es/components/table-filter/src/components/render-widget/basicData.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +0 -1
|
@@ -353,7 +353,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
353
353
|
bodyStyle: import("vue").Ref<{
|
|
354
354
|
maxHeight: string;
|
|
355
355
|
height: string;
|
|
356
|
-
overflowY: string;
|
|
357
356
|
}>;
|
|
358
357
|
conditionApiRef: any;
|
|
359
358
|
filterTimer: any;
|
|
@@ -522,6 +521,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
522
521
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
523
522
|
widgetType: import("vue").ComputedRef<any>;
|
|
524
523
|
Date: import("vue").DefineComponent<{
|
|
524
|
+
componentCfg: {
|
|
525
|
+
type: ObjectConstructor;
|
|
526
|
+
};
|
|
525
527
|
paramCfg: {
|
|
526
528
|
type: ObjectConstructor;
|
|
527
529
|
default: null;
|
|
@@ -536,6 +538,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
536
538
|
};
|
|
537
539
|
}, {
|
|
538
540
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
541
|
+
componentCfg: {
|
|
542
|
+
type: ObjectConstructor;
|
|
543
|
+
};
|
|
539
544
|
paramCfg: {
|
|
540
545
|
type: ObjectConstructor;
|
|
541
546
|
default: null;
|
|
@@ -558,11 +563,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
558
563
|
dateType: any;
|
|
559
564
|
valueFormat: import("vue").ComputedRef<string>;
|
|
560
565
|
compType: import("vue").ComputedRef<any>;
|
|
561
|
-
|
|
566
|
+
optionSetting: import("vue").ComputedRef<any>;
|
|
562
567
|
widgetOptions: import("vue").ComputedRef<{
|
|
563
568
|
label: string;
|
|
564
569
|
value: string;
|
|
565
570
|
}[]>;
|
|
571
|
+
isDateDisabled: (ts: number) => boolean;
|
|
572
|
+
timeDisabled: (ts: number) => {
|
|
573
|
+
isHourDisabled(hour: number): boolean | undefined;
|
|
574
|
+
isMinuteDisabled(minute: number, hour: number | null): boolean | undefined;
|
|
575
|
+
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | undefined;
|
|
576
|
+
};
|
|
566
577
|
CDatePicker: import("../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
567
578
|
updateUnchangedValue: {
|
|
568
579
|
type: BooleanConstructor;
|
|
@@ -634,6 +645,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
634
645
|
LAST_YEAR: string;
|
|
635
646
|
};
|
|
636
647
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
648
|
+
componentCfg: {
|
|
649
|
+
type: ObjectConstructor;
|
|
650
|
+
};
|
|
637
651
|
paramCfg: {
|
|
638
652
|
type: ObjectConstructor;
|
|
639
653
|
default: null;
|
|
@@ -785,6 +799,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
785
799
|
default: null;
|
|
786
800
|
};
|
|
787
801
|
}, {
|
|
802
|
+
message: import("naive-ui").MessageApi;
|
|
788
803
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
789
804
|
paramCfg: {
|
|
790
805
|
type: ObjectConstructor;
|
|
@@ -798,27 +813,145 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
798
813
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
799
814
|
}>>;
|
|
800
815
|
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
801
|
-
$attrs: {
|
|
802
|
-
[x: string]: unknown;
|
|
803
|
-
};
|
|
804
816
|
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
805
|
-
selectOptions: import("vue").Ref<any[]>;
|
|
806
817
|
isLoading: import("vue").Ref<boolean>;
|
|
807
818
|
filterApiConfig: import("../../../..").AnyObject;
|
|
808
|
-
|
|
819
|
+
totalPage: import("vue").Ref<number>;
|
|
820
|
+
menuProps: {
|
|
821
|
+
class: string;
|
|
822
|
+
};
|
|
823
|
+
curPage: import("vue").Ref<number>;
|
|
824
|
+
fieldTitleList: import("vue").Ref<any>;
|
|
825
|
+
selectOptions: import("vue").Ref<any[]>;
|
|
826
|
+
keywordVal: import("vue").Ref<any>;
|
|
809
827
|
optionSetting: import("vue").ComputedRef<any>;
|
|
810
828
|
isMultiple: import("vue").ComputedRef<boolean>;
|
|
811
|
-
|
|
829
|
+
dynamicOptionInfos: import("vue").ComputedRef<any>;
|
|
830
|
+
isLastPage: import("vue").ComputedRef<boolean>;
|
|
831
|
+
valueCp: import("vue").ComputedRef<string | number | any[]>;
|
|
832
|
+
setOptionActive: (selectIds: string[]) => void;
|
|
833
|
+
handleUpdateSelect: (value: string[] | null) => void;
|
|
834
|
+
handleUpdatePage: (page: number) => Promise<void>;
|
|
835
|
+
getOptionsData: (keyword: string, curPage: number) => Promise<any>;
|
|
812
836
|
_handleSearch: (query: string) => Promise<void>;
|
|
813
837
|
handleSearch: (query: string) => Promise<void>;
|
|
814
838
|
handleInitData: () => Promise<void>;
|
|
815
|
-
|
|
816
|
-
[key: string]: any;
|
|
817
|
-
}>;
|
|
839
|
+
handleClear: () => Promise<void>;
|
|
818
840
|
renderTag: ({ option, handleClose }: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
819
841
|
[key: string]: any;
|
|
820
842
|
}>;
|
|
821
843
|
NSelect: any;
|
|
844
|
+
SelectDynamicOption: import("vue").DefineComponent<{
|
|
845
|
+
dynamicOptionInfo: {
|
|
846
|
+
type: import("vue").PropType<import("../../../..").AnyObject>;
|
|
847
|
+
default: () => {};
|
|
848
|
+
};
|
|
849
|
+
fieldTitleList: {
|
|
850
|
+
type: import("vue").PropType<import("../../../..").AnyObject[]>;
|
|
851
|
+
default: () => never[];
|
|
852
|
+
};
|
|
853
|
+
optionList: {
|
|
854
|
+
type: import("vue").PropType<import("../../../..").AnyObject[]>;
|
|
855
|
+
default: () => never[];
|
|
856
|
+
};
|
|
857
|
+
isMultiple: {
|
|
858
|
+
type: BooleanConstructor;
|
|
859
|
+
default: boolean;
|
|
860
|
+
};
|
|
861
|
+
curPage: {
|
|
862
|
+
type: NumberConstructor;
|
|
863
|
+
default: number;
|
|
864
|
+
};
|
|
865
|
+
isLastPage: {
|
|
866
|
+
type: BooleanConstructor;
|
|
867
|
+
default: boolean;
|
|
868
|
+
};
|
|
869
|
+
}, {
|
|
870
|
+
selectMinWidth: number;
|
|
871
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
872
|
+
dynamicOptionInfo: {
|
|
873
|
+
type: import("vue").PropType<import("../../../..").AnyObject>;
|
|
874
|
+
default: () => {};
|
|
875
|
+
};
|
|
876
|
+
fieldTitleList: {
|
|
877
|
+
type: import("vue").PropType<import("../../../..").AnyObject[]>;
|
|
878
|
+
default: () => never[];
|
|
879
|
+
};
|
|
880
|
+
optionList: {
|
|
881
|
+
type: import("vue").PropType<import("../../../..").AnyObject[]>;
|
|
882
|
+
default: () => never[];
|
|
883
|
+
};
|
|
884
|
+
isMultiple: {
|
|
885
|
+
type: BooleanConstructor;
|
|
886
|
+
default: boolean;
|
|
887
|
+
};
|
|
888
|
+
curPage: {
|
|
889
|
+
type: NumberConstructor;
|
|
890
|
+
default: number;
|
|
891
|
+
};
|
|
892
|
+
isLastPage: {
|
|
893
|
+
type: BooleanConstructor;
|
|
894
|
+
default: boolean;
|
|
895
|
+
};
|
|
896
|
+
}>> & {
|
|
897
|
+
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
898
|
+
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
899
|
+
}>>;
|
|
900
|
+
emit: (event: "updateSelect" | "updatePage", ...args: any[]) => void;
|
|
901
|
+
dragEndWidth: import("vue").Ref<number>;
|
|
902
|
+
showKeys: import("vue").ComputedRef<any>;
|
|
903
|
+
titleList: import("vue").ComputedRef<string[]>;
|
|
904
|
+
handleSelect: (option: any) => void;
|
|
905
|
+
searchByPage: (onePage: number) => void;
|
|
906
|
+
changeWidth: ({ distance }: any) => void;
|
|
907
|
+
saveWidth: () => void;
|
|
908
|
+
NEmpty: any;
|
|
909
|
+
NButtonGroup: any;
|
|
910
|
+
NButton: any;
|
|
911
|
+
NIcon: any;
|
|
912
|
+
NPopover: any;
|
|
913
|
+
vFlexibleResize: {
|
|
914
|
+
mounted(el: any, { value }: any): void;
|
|
915
|
+
beforeUnmount(el: any): void;
|
|
916
|
+
};
|
|
917
|
+
ArrowBack: 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<{}>>, {}>;
|
|
918
|
+
ArrowForward: 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<{}>>, {}>;
|
|
919
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
920
|
+
dynamicOptionInfo: {
|
|
921
|
+
type: import("vue").PropType<import("../../../..").AnyObject>;
|
|
922
|
+
default: () => {};
|
|
923
|
+
};
|
|
924
|
+
fieldTitleList: {
|
|
925
|
+
type: import("vue").PropType<import("../../../..").AnyObject[]>;
|
|
926
|
+
default: () => never[];
|
|
927
|
+
};
|
|
928
|
+
optionList: {
|
|
929
|
+
type: import("vue").PropType<import("../../../..").AnyObject[]>;
|
|
930
|
+
default: () => never[];
|
|
931
|
+
};
|
|
932
|
+
isMultiple: {
|
|
933
|
+
type: BooleanConstructor;
|
|
934
|
+
default: boolean;
|
|
935
|
+
};
|
|
936
|
+
curPage: {
|
|
937
|
+
type: NumberConstructor;
|
|
938
|
+
default: number;
|
|
939
|
+
};
|
|
940
|
+
isLastPage: {
|
|
941
|
+
type: BooleanConstructor;
|
|
942
|
+
default: boolean;
|
|
943
|
+
};
|
|
944
|
+
}>> & {
|
|
945
|
+
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
946
|
+
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
947
|
+
}, {
|
|
948
|
+
dynamicOptionInfo: import("../../../..").AnyObject;
|
|
949
|
+
fieldTitleList: import("../../../..").AnyObject[];
|
|
950
|
+
optionList: import("../../../..").AnyObject[];
|
|
951
|
+
isMultiple: boolean;
|
|
952
|
+
curPage: number;
|
|
953
|
+
isLastPage: boolean;
|
|
954
|
+
}>;
|
|
822
955
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
823
956
|
paramCfg: {
|
|
824
957
|
type: ObjectConstructor;
|
|
@@ -924,8 +1057,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
924
1057
|
valueFormat: import("vue").ComputedRef<string>;
|
|
925
1058
|
dateFormat: import("vue").ComputedRef<string>;
|
|
926
1059
|
compType: import("vue").ComputedRef<any>;
|
|
1060
|
+
optionSetting: import("vue").ComputedRef<any>;
|
|
1061
|
+
isPastTime: import("vue").ComputedRef<boolean>;
|
|
1062
|
+
isFutureTime: import("vue").ComputedRef<boolean>;
|
|
927
1063
|
startPlaceholder: import("vue").ComputedRef<"初始日期" | "初始时间">;
|
|
928
1064
|
endPlaceholder: import("vue").ComputedRef<"截止日期" | "截止时间">;
|
|
1065
|
+
startDefault: import("vue").ComputedRef<string>;
|
|
1066
|
+
endDefault: import("vue").ComputedRef<string>;
|
|
1067
|
+
startDateFormat: import("vue").ComputedRef<string | null>;
|
|
1068
|
+
endDateFormat: import("vue").ComputedRef<string | null>;
|
|
929
1069
|
dateType: any;
|
|
930
1070
|
widgetOptions: import("vue").ComputedRef<{
|
|
931
1071
|
label: string;
|
|
@@ -934,8 +1074,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
934
1074
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
935
1075
|
handleChange: (val: any, type: "end" | "start") => void;
|
|
936
1076
|
isStartDateDisabled: (ts: number) => boolean;
|
|
1077
|
+
timeStartDisabled: (ts: number) => {
|
|
1078
|
+
isHourDisabled(hour: number): boolean | 0;
|
|
1079
|
+
isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
|
|
1080
|
+
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
|
|
1081
|
+
};
|
|
937
1082
|
isEndDateDisabled: (ts: number) => boolean;
|
|
1083
|
+
timeEndDisabled: (ts: number) => {
|
|
1084
|
+
isHourDisabled(hour: number): boolean | 0;
|
|
1085
|
+
isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
|
|
1086
|
+
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
|
|
1087
|
+
};
|
|
938
1088
|
NSelect: any;
|
|
1089
|
+
NPopover: any;
|
|
939
1090
|
CDatePicker: import("../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
940
1091
|
updateUnchangedValue: {
|
|
941
1092
|
type: BooleanConstructor;
|
|
@@ -1037,6 +1188,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1037
1188
|
};
|
|
1038
1189
|
}, {
|
|
1039
1190
|
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
1191
|
+
message: import("naive-ui").MessageApi;
|
|
1040
1192
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
1041
1193
|
paramCfg: {
|
|
1042
1194
|
type: ObjectConstructor;
|
|
@@ -1076,7 +1228,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1076
1228
|
INPUT: string;
|
|
1077
1229
|
SELECT: string;
|
|
1078
1230
|
DATE: string;
|
|
1231
|
+
DATE_OUT: string;
|
|
1079
1232
|
DATE_TIME: string;
|
|
1233
|
+
DATETIME_OUT: string;
|
|
1080
1234
|
CHECKBOX_GROUP: string;
|
|
1081
1235
|
INPUTNUMBER_RANGE: string;
|
|
1082
1236
|
DATE_RANGE_OUT: string;
|
|
@@ -567,7 +567,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
567
567
|
bodyStyle: import("vue").Ref<{
|
|
568
568
|
maxHeight: string;
|
|
569
569
|
height: string;
|
|
570
|
-
overflowY: string;
|
|
571
570
|
}>;
|
|
572
571
|
conditionApiRef: any;
|
|
573
572
|
filterTimer: any;
|
|
@@ -736,6 +735,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
736
735
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
737
736
|
widgetType: import("vue").ComputedRef<any>;
|
|
738
737
|
Date: import("vue").DefineComponent<{
|
|
738
|
+
componentCfg: {
|
|
739
|
+
type: ObjectConstructor;
|
|
740
|
+
};
|
|
739
741
|
paramCfg: {
|
|
740
742
|
type: ObjectConstructor;
|
|
741
743
|
default: null;
|
|
@@ -750,6 +752,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
750
752
|
};
|
|
751
753
|
}, {
|
|
752
754
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
755
|
+
componentCfg: {
|
|
756
|
+
type: ObjectConstructor;
|
|
757
|
+
};
|
|
753
758
|
paramCfg: {
|
|
754
759
|
type: ObjectConstructor;
|
|
755
760
|
default: null;
|
|
@@ -772,11 +777,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
772
777
|
dateType: any;
|
|
773
778
|
valueFormat: import("vue").ComputedRef<string>;
|
|
774
779
|
compType: import("vue").ComputedRef<any>;
|
|
775
|
-
|
|
780
|
+
optionSetting: import("vue").ComputedRef<any>;
|
|
776
781
|
widgetOptions: import("vue").ComputedRef<{
|
|
777
782
|
label: string;
|
|
778
783
|
value: string;
|
|
779
784
|
}[]>;
|
|
785
|
+
isDateDisabled: (ts: number) => boolean;
|
|
786
|
+
timeDisabled: (ts: number) => {
|
|
787
|
+
isHourDisabled(hour: number): boolean | undefined;
|
|
788
|
+
isMinuteDisabled(minute: number, hour: number | null): boolean | undefined;
|
|
789
|
+
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | undefined;
|
|
790
|
+
};
|
|
780
791
|
CDatePicker: import("../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
781
792
|
updateUnchangedValue: {
|
|
782
793
|
type: BooleanConstructor;
|
|
@@ -848,6 +859,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
848
859
|
LAST_YEAR: string;
|
|
849
860
|
};
|
|
850
861
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
862
|
+
componentCfg: {
|
|
863
|
+
type: ObjectConstructor;
|
|
864
|
+
};
|
|
851
865
|
paramCfg: {
|
|
852
866
|
type: ObjectConstructor;
|
|
853
867
|
default: null;
|
|
@@ -999,6 +1013,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
999
1013
|
default: null;
|
|
1000
1014
|
};
|
|
1001
1015
|
}, {
|
|
1016
|
+
message: import("naive-ui").MessageApi;
|
|
1002
1017
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
1003
1018
|
paramCfg: {
|
|
1004
1019
|
type: ObjectConstructor;
|
|
@@ -1012,27 +1027,145 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1012
1027
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1013
1028
|
}>>;
|
|
1014
1029
|
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
1015
|
-
$attrs: {
|
|
1016
|
-
[x: string]: unknown;
|
|
1017
|
-
};
|
|
1018
1030
|
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
1019
|
-
selectOptions: import("vue").Ref<any[]>;
|
|
1020
1031
|
isLoading: import("vue").Ref<boolean>;
|
|
1021
1032
|
filterApiConfig: import("../..").AnyObject;
|
|
1022
|
-
|
|
1033
|
+
totalPage: import("vue").Ref<number>;
|
|
1034
|
+
menuProps: {
|
|
1035
|
+
class: string;
|
|
1036
|
+
};
|
|
1037
|
+
curPage: import("vue").Ref<number>;
|
|
1038
|
+
fieldTitleList: import("vue").Ref<any>;
|
|
1039
|
+
selectOptions: import("vue").Ref<any[]>;
|
|
1040
|
+
keywordVal: import("vue").Ref<any>;
|
|
1023
1041
|
optionSetting: import("vue").ComputedRef<any>;
|
|
1024
1042
|
isMultiple: import("vue").ComputedRef<boolean>;
|
|
1025
|
-
|
|
1043
|
+
dynamicOptionInfos: import("vue").ComputedRef<any>;
|
|
1044
|
+
isLastPage: import("vue").ComputedRef<boolean>;
|
|
1045
|
+
valueCp: import("vue").ComputedRef<string | number | any[]>;
|
|
1046
|
+
setOptionActive: (selectIds: string[]) => void;
|
|
1047
|
+
handleUpdateSelect: (value: string[] | null) => void;
|
|
1048
|
+
handleUpdatePage: (page: number) => Promise<void>;
|
|
1049
|
+
getOptionsData: (keyword: string, curPage: number) => Promise<any>;
|
|
1026
1050
|
_handleSearch: (query: string) => Promise<void>;
|
|
1027
1051
|
handleSearch: (query: string) => Promise<void>;
|
|
1028
1052
|
handleInitData: () => Promise<void>;
|
|
1029
|
-
|
|
1030
|
-
[key: string]: any;
|
|
1031
|
-
}>;
|
|
1053
|
+
handleClear: () => Promise<void>;
|
|
1032
1054
|
renderTag: ({ option, handleClose }: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
1033
1055
|
[key: string]: any;
|
|
1034
1056
|
}>;
|
|
1035
1057
|
NSelect: any;
|
|
1058
|
+
SelectDynamicOption: import("vue").DefineComponent<{
|
|
1059
|
+
dynamicOptionInfo: {
|
|
1060
|
+
type: PropType<import("../..").AnyObject>;
|
|
1061
|
+
default: () => {};
|
|
1062
|
+
};
|
|
1063
|
+
fieldTitleList: {
|
|
1064
|
+
type: PropType<import("../..").AnyObject[]>;
|
|
1065
|
+
default: () => never[];
|
|
1066
|
+
};
|
|
1067
|
+
optionList: {
|
|
1068
|
+
type: PropType<import("../..").AnyObject[]>;
|
|
1069
|
+
default: () => never[];
|
|
1070
|
+
};
|
|
1071
|
+
isMultiple: {
|
|
1072
|
+
type: BooleanConstructor;
|
|
1073
|
+
default: boolean;
|
|
1074
|
+
};
|
|
1075
|
+
curPage: {
|
|
1076
|
+
type: NumberConstructor;
|
|
1077
|
+
default: number;
|
|
1078
|
+
};
|
|
1079
|
+
isLastPage: {
|
|
1080
|
+
type: BooleanConstructor;
|
|
1081
|
+
default: boolean;
|
|
1082
|
+
};
|
|
1083
|
+
}, {
|
|
1084
|
+
selectMinWidth: number;
|
|
1085
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
1086
|
+
dynamicOptionInfo: {
|
|
1087
|
+
type: PropType<import("../..").AnyObject>;
|
|
1088
|
+
default: () => {};
|
|
1089
|
+
};
|
|
1090
|
+
fieldTitleList: {
|
|
1091
|
+
type: PropType<import("../..").AnyObject[]>;
|
|
1092
|
+
default: () => never[];
|
|
1093
|
+
};
|
|
1094
|
+
optionList: {
|
|
1095
|
+
type: PropType<import("../..").AnyObject[]>;
|
|
1096
|
+
default: () => never[];
|
|
1097
|
+
};
|
|
1098
|
+
isMultiple: {
|
|
1099
|
+
type: BooleanConstructor;
|
|
1100
|
+
default: boolean;
|
|
1101
|
+
};
|
|
1102
|
+
curPage: {
|
|
1103
|
+
type: NumberConstructor;
|
|
1104
|
+
default: number;
|
|
1105
|
+
};
|
|
1106
|
+
isLastPage: {
|
|
1107
|
+
type: BooleanConstructor;
|
|
1108
|
+
default: boolean;
|
|
1109
|
+
};
|
|
1110
|
+
}>> & {
|
|
1111
|
+
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
1112
|
+
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
1113
|
+
}>>;
|
|
1114
|
+
emit: (event: "updateSelect" | "updatePage", ...args: any[]) => void;
|
|
1115
|
+
dragEndWidth: import("vue").Ref<number>;
|
|
1116
|
+
showKeys: import("vue").ComputedRef<any>;
|
|
1117
|
+
titleList: import("vue").ComputedRef<string[]>;
|
|
1118
|
+
handleSelect: (option: any) => void;
|
|
1119
|
+
searchByPage: (onePage: number) => void;
|
|
1120
|
+
changeWidth: ({ distance }: any) => void;
|
|
1121
|
+
saveWidth: () => void;
|
|
1122
|
+
NEmpty: any;
|
|
1123
|
+
NButtonGroup: any;
|
|
1124
|
+
NButton: any;
|
|
1125
|
+
NIcon: any;
|
|
1126
|
+
NPopover: any;
|
|
1127
|
+
vFlexibleResize: {
|
|
1128
|
+
mounted(el: any, { value }: any): void;
|
|
1129
|
+
beforeUnmount(el: any): void;
|
|
1130
|
+
};
|
|
1131
|
+
ArrowBack: 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<{}>>, {}>;
|
|
1132
|
+
ArrowForward: 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<{}>>, {}>;
|
|
1133
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1134
|
+
dynamicOptionInfo: {
|
|
1135
|
+
type: PropType<import("../..").AnyObject>;
|
|
1136
|
+
default: () => {};
|
|
1137
|
+
};
|
|
1138
|
+
fieldTitleList: {
|
|
1139
|
+
type: PropType<import("../..").AnyObject[]>;
|
|
1140
|
+
default: () => never[];
|
|
1141
|
+
};
|
|
1142
|
+
optionList: {
|
|
1143
|
+
type: PropType<import("../..").AnyObject[]>;
|
|
1144
|
+
default: () => never[];
|
|
1145
|
+
};
|
|
1146
|
+
isMultiple: {
|
|
1147
|
+
type: BooleanConstructor;
|
|
1148
|
+
default: boolean;
|
|
1149
|
+
};
|
|
1150
|
+
curPage: {
|
|
1151
|
+
type: NumberConstructor;
|
|
1152
|
+
default: number;
|
|
1153
|
+
};
|
|
1154
|
+
isLastPage: {
|
|
1155
|
+
type: BooleanConstructor;
|
|
1156
|
+
default: boolean;
|
|
1157
|
+
};
|
|
1158
|
+
}>> & {
|
|
1159
|
+
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
1160
|
+
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
1161
|
+
}, {
|
|
1162
|
+
dynamicOptionInfo: import("../..").AnyObject;
|
|
1163
|
+
fieldTitleList: import("../..").AnyObject[];
|
|
1164
|
+
optionList: import("../..").AnyObject[];
|
|
1165
|
+
isMultiple: boolean;
|
|
1166
|
+
curPage: number;
|
|
1167
|
+
isLastPage: boolean;
|
|
1168
|
+
}>;
|
|
1036
1169
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1037
1170
|
paramCfg: {
|
|
1038
1171
|
type: ObjectConstructor;
|
|
@@ -1138,8 +1271,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1138
1271
|
valueFormat: import("vue").ComputedRef<string>;
|
|
1139
1272
|
dateFormat: import("vue").ComputedRef<string>;
|
|
1140
1273
|
compType: import("vue").ComputedRef<any>;
|
|
1274
|
+
optionSetting: import("vue").ComputedRef<any>;
|
|
1275
|
+
isPastTime: import("vue").ComputedRef<boolean>;
|
|
1276
|
+
isFutureTime: import("vue").ComputedRef<boolean>;
|
|
1141
1277
|
startPlaceholder: import("vue").ComputedRef<"初始日期" | "初始时间">;
|
|
1142
1278
|
endPlaceholder: import("vue").ComputedRef<"截止日期" | "截止时间">;
|
|
1279
|
+
startDefault: import("vue").ComputedRef<string>;
|
|
1280
|
+
endDefault: import("vue").ComputedRef<string>;
|
|
1281
|
+
startDateFormat: import("vue").ComputedRef<string | null>;
|
|
1282
|
+
endDateFormat: import("vue").ComputedRef<string | null>;
|
|
1143
1283
|
dateType: any;
|
|
1144
1284
|
widgetOptions: import("vue").ComputedRef<{
|
|
1145
1285
|
label: string;
|
|
@@ -1148,8 +1288,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1148
1288
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
1149
1289
|
handleChange: (val: any, type: "end" | "start") => void;
|
|
1150
1290
|
isStartDateDisabled: (ts: number) => boolean;
|
|
1291
|
+
timeStartDisabled: (ts: number) => {
|
|
1292
|
+
isHourDisabled(hour: number): boolean | 0;
|
|
1293
|
+
isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
|
|
1294
|
+
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
|
|
1295
|
+
};
|
|
1151
1296
|
isEndDateDisabled: (ts: number) => boolean;
|
|
1297
|
+
timeEndDisabled: (ts: number) => {
|
|
1298
|
+
isHourDisabled(hour: number): boolean | 0;
|
|
1299
|
+
isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
|
|
1300
|
+
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
|
|
1301
|
+
};
|
|
1152
1302
|
NSelect: any;
|
|
1303
|
+
NPopover: any;
|
|
1153
1304
|
CDatePicker: import("../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
1154
1305
|
updateUnchangedValue: {
|
|
1155
1306
|
type: BooleanConstructor;
|
|
@@ -1251,6 +1402,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1251
1402
|
};
|
|
1252
1403
|
}, {
|
|
1253
1404
|
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
1405
|
+
message: import("naive-ui").MessageApi;
|
|
1254
1406
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
1255
1407
|
paramCfg: {
|
|
1256
1408
|
type: ObjectConstructor;
|
|
@@ -1290,7 +1442,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1290
1442
|
INPUT: string;
|
|
1291
1443
|
SELECT: string;
|
|
1292
1444
|
DATE: string;
|
|
1445
|
+
DATE_OUT: string;
|
|
1293
1446
|
DATE_TIME: string;
|
|
1447
|
+
DATETIME_OUT: string;
|
|
1294
1448
|
CHECKBOX_GROUP: string;
|
|
1295
1449
|
INPUTNUMBER_RANGE: string;
|
|
1296
1450
|
DATE_RANGE_OUT: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{drawLine as t,drawArrow as n,drawText as o,defaultTextStyle as i,drawPoint as r,defaultStyle as l,defaultRectStyle as s}from"../useDraw.js";import{useGrid as a}from"../useGrid.js";import{useBirthProcessCumputedPoint as u}from"../useCumputedPoint.js";import"@vueuse/core";import{getScaleInfo as c,drawScaleNumber as f,drawScaleLine as d}from"../useScaleColumn.js";import{useCommon as p}from"../useCommon.js";import"vue";import{getIndex as h,isEffectiveNode as g}from"../../utils/index.js";import"../temperature/useShadow.js";import{cloneDeep as m}from"lodash-es";import{format as v}from"date-fns";function y(y,k,w,x,b){const{cumputedX:T,cumputedY:j,getXValue:S,getYValue:C}=u(k),{getEqualXTypes:
|
|
1
|
+
import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{drawLine as t,drawArrow as n,drawText as o,defaultTextStyle as i,drawPoint as r,defaultStyle as l,defaultRectStyle as s}from"../useDraw.js";import{useGrid as a}from"../useGrid.js";import{useBirthProcessCumputedPoint as u}from"../useCumputedPoint.js";import"@vueuse/core";import{getScaleInfo as c,drawScaleNumber as f,drawScaleLine as d}from"../useScaleColumn.js";import{useCommon as p}from"../useCommon.js";import"vue";import{getIndex as h,isEffectiveNode as g}from"../../utils/index.js";import"../temperature/useShadow.js";import{cloneDeep as m}from"lodash-es";import{format as v}from"date-fns";function y(y,k,w,x,b){const{cumputedX:T,cumputedY:j,getXValue:S,getYValue:C}=u(k),{getEqualXTypes:M,handleAddPrevent:P}=p(y,w),{xAxis:E,grid:G,originX:L,originY:Y,xCellWidth:X,endY:A,startTime:H,leftAddAreaWidth:I,leftScales:D,rightScales:O,yCellHeight:W,endX:V,scaleValues:N,canvasWidth:R,borderStyle:$,rightAddAreaWidth:B,event:F,originYCervix:q,other:z,canvasHeight:J}=k,K=m(N),Q=new Set;function U(){K.filter((e=>e.show)).forEach(((e,l)=>{var s;const a=[],u=[],c=[];null==(s=e.data)||s.forEach(((s,f)=>{!function(s,f,d){let p,h;const{pointAttr:g={},lineAttr:m={},title:v="",key:b,type:T="circle",childbirthStyle:j={}}=e,M=e.data[d+1],P=ne(M,e);if(s&&P&&!f.breakpoint)h=t([...s,...P],{...m});else if(s&&!P&&!f.breakpoint){const n=ne(M,e);h=n?t([...s,...n],{...m}):null}let E,G;if(f.childbirth){const e=s[1]+W;E=n([s[0],s[1],e],j),c.push(E),G=o([s[0]+X/2,e-W/2],{value:String(f.childbirth),...i,originX:"left",originY:"center",...j}),c.push(G)}const L=u[d-1],Y={origin:{data:f,title:v,key:b||"",dataIndex:l,index:d},leftLine:L,rightLine:h,arrowGroup:E,arrowGroupText:G,...g,...k.event.hovered?k.event.evented?{selectable:!0}:{selectable:!0,lockMovementX:!0,lockMovementY:!0}:k.event};L?p=r(T,{left:L.get("x2"),top:L.get("y2"),...Y}):s&&(Y.leftLine=null,p=r(T,{left:s[0],top:s[1],...Y}));u.push(h),p&&(!function(e){F.hovered&&(e.on("mouseover",(()=>{te(e,"hover")})),e.on("mouseout",(()=>{x.show=!1})));if(e.lockMovementX&&e.lockMovementY)return;e.on("moving",(()=>{ee(e),function(e){var t,n,o,i;null==(t=e.leftLine)||t.setCoords().set({x2:e.left,y2:e.top}),null==(n=e.rightLine)||n.setCoords().set({x1:e.left,y1:e.top}),null==(o=e.arrowGroup)||o.setCoords().set({left:e.left,top:e.top}),null==(i=e.arrowGroupText)||i.setCoords().set({left:e.left+X/2,top:e.top+W/2})}(e),F.hovered&&te(e)})),e.on("mouseup",(t=>{if(x.show=!1,1===t.button){const{key:t}=e.origin,n={...e.origin,data:{...e.origin.data,time:S(e.left),value:C(t,e.top)}};y.value.discardActiveObject(),w("change",n),Z(n,"change")}}))}(p),a.push(p),Q.add(p))}(ne(s,e),s,f)})),Promise.all(a).then((e=>{const t=u.filter((e=>e));let n=null;e=e.filter((e=>(e&&n&&(n.nextPoint=e,e.prevPoint=n),n=e||n,e))),Promise.all(c).then((n=>{y.value.add(...t,...e,...n),e.forEach((e=>{null==e||e.bringToFront()}))}))}))}))}function Z(e,t="add"){const{dataIndex:n,data:o,index:i,key:r}=e,l=K.find((e=>e.key===r));switch(t){case"remove":l.data.splice(i,1);break;case"change":l.data[i]=o;break;default:{const e=h(o.time,l.data);l.data.splice(e,0,o);break}}_()}function _(){var e;Q.size&&(null==(e=y.value)||e.remove(...function(e){const t=[];return e.forEach((e=>{e&&t.push(e),(null==e?void 0:e.leftLine)&&t.push(null==e?void 0:e.leftLine),(null==e?void 0:e.rightLine)&&t.push(null==e?void 0:e.rightLine),(null==e?void 0:e.arrowGroup)&&t.push(null==e?void 0:e.arrowGroup),(null==e?void 0:e.arrowGroupText)&&t.push(null==e?void 0:e.arrowGroupText)})),t}([...Q]))),Q.clear(),U()}function ee(e){const t=e.prevPoint?e.prevPoint.left:L,n=e.nextPoint?e.nextPoint.left:V;e.setCoords(),["cervix","fetalPresentation"].includes(e.origin.key)&&e.top<q&&e.set("top",q),e.top<Y&&e.set("top",Y),e.top>A&&e.set("top",A),e.left<t&&e.set("left",t),e.left>n&&e.set("left",n)}function te(e,t="moving"){const{title:n,key:o,data:i}=e.origin;x.point={x:e.left,y:e.top},x.list=[`${n} ${"hover"===t?i.value:C(o,e.top)}`,`时间 ${S(e.left).slice(-5)}`],x.show=!0}function ne(e,t){if(g(e)&&function(e){const t=H+864e5,n=new Date(e).getTime();return n>=H&&n<=t}(e.time)){const n=T(e.time),o=j(t.key,t.range,e.value);return[n,o<Y?Y:o>A?A:o]}}function oe(e,t){return e+1>t[1]?t[0]:e+1}return a(y,k),function(){const t=new e.Rect({...$,width:R-I-B-1,height:A-1,left:I,top:0,fill:"transparent"});y.value.add(t)}(),function(){function t(t,n="left"){let r="left"===n?I:V;t.forEach(((t,n)=>{const{range:a,spaceValue:u,width:p,title:h,titleStyle:g,key:m,position:v="center",spaceGridNumber:k=1,showNumber:w,showMaxMinNumber:x}=t,b=[],T=[],j=r+p/2,S=function(e,t){const n=[],[o,i]=e;for(let e=o;t>0?e<=i:e>=i;e+=t)n.push(e);return n}(a,u),C=S.length;S.forEach(((e,n)=>{const{lineXMain:o,lineXSub:i,textLeft:l}=c(v,r,p),s=A-n*W*k,a=0===n?A-8:n!==S.length-1||Y||q&&"FHR"!==m?s:Y+8;!w||(0===n||n===C-1)&&!x||b.push(f(String(e),t,l,a)),T.push(...d(t,n,o,i,s,W,Y,C))}));const M=new e.Rect({...s,strokeWidth:.5,width:p,height:A,left:j,top:A/2}),P=o([j,Y>0?Y-W/2:W/2],{value:String(h),...i,...g}),E=new e.Group([...T,...b,M,...P?[P]:[]],{objectCaching:!1,...l});y.value.add(E),E.sendToBack(),r+=p}))}t(D),t(O,"right")}(),function(){const{show:t,startTime:n,range:r=[0,23],position:s="top",style:a}=E.time,{show:u,range:c=[0,23],position:f,style:d}=E.processTime;if(t||u){const p=[],h=[],g=[],m=[],v=L+X/2,k=W/2;for(let e=0;e<G.mainXCell;e++){if(t){const t=0===e?+n.slice(11,13):oe(p.at(-1),r);p.push(t);const l="top"===s?Y-k:A+k;g.push(o([v+e*X,l],{value:String(t),...i,...a||{}}))}if(u){const t=0===e?c[0]:h.at(-1)+1;h.push(t);const n="top"===f?k:J-k;m.push(o([v+e*X,n],{value:String(t),...i,...d||{}}))}}const w=new e.Group([...g,...m],{objectCaching:!1,...l});y.value.add(w),y.value.sendToBack(w)}}(),function(){var e;const n=Object.values(z),o=[],i={},r=K.find((e=>"cervix"===e.key&&e.show)),l=null==(e=null==r?void 0:r.data)?void 0:e.find((e=>3==+e.value));function s(e,t){const{key:n,range:o}=r||{},i=j(n,o,10),l=[0,t],s=[-t/e,0],a=[(A-i-t)/e,A-i],u=[V-L,e*(V-L)+t];let c=[],f=[];function d([n,o]){return Math.abs(o-e*n-t)<=1}function p([e,t]){const[n,o]=[...h([e,t])];return n>=L&&n<=V&&o>=i&&o<=A}function h([e,t]){return[L+e,A-t]}return d(l)&&p(l)&&(c=h(l)),d(s)&&p(s)&&(c=h(s)),d(a)&&p(a)&&(f=h(a)),d(u)&&p(u)&&(f=h(u)),[...c,...f]}n.forEach((e=>{if(!e.show)return;const{key:n}=e;switch(n){case"fetalPresentation":{const{range:i,show:r}=K.find((e=>e.key===n));if(r){const r=j(n,i,0);o.push(t([L,r,V,r],{...e}))}break}case"alert":if(l){const{key:n,range:a}=r||{},u=216e5,c={time:v(new Date(new Date(l.time).getTime()+u),"yyyy-MM-dd HH:mm"),value:10},[f,d]=[T(l.time)-L,A-j(n,a,l.value)],[p,h]=[T(c.time)-L,A-j(n,a,c.value)],g=(h-d)/(p-f),m=d-f*g,y=s(g,m);y.length>0&&(o.push(t(y,{...e})),Object.assign(i,{k:g,b:m}))}break;case"handling":if(l){const{k:n,b:r}=i,a=144e5,u=s(n,r-(T(v(new Date(new Date(l.time).getTime()+a),"yyyy-MM-dd HH:mm"))-T(l.time))*n);u.length>0&&o.push(t(u,{...e}))}}})),y.value.add(...o)}(),U(),function(){function e(e,t){const n=K.findIndex((t=>t.key===e.key));return{renderItem:()=>e.title,origin:{title:e.title,unit:e.unit,dataIndex:n,key:e.key},pointer:t}}k.event.evented&&y.value.on("mouse:up",(t=>{if(3===t.button){const{x:n=0,y:o=0}=t.pointer||{};n>=L&&n<=V&&o>=Y&&o<=A&&(b.point={x:n,y:o},b.show=!0,t.target?(b.target=t.target,b.list=["删除节点"],y.value.forEachObject((e=>{e.origin&&e.left===t.target.left&&e.top===t.target.top&&b.list.push({renderItem:()=>e.origin.title,origin:{...e.origin},mode:"remove",pointer:t.pointer})}))):(b.target=null,b.list=["新增节点"],K.filter((e=>e.show)).forEach((i=>{if(!M(n,"key",X).includes(i.key)){if(["cervix","fetalPresentation"].includes(i.key)&&o<q)return;b.list.push(e(i,t.pointer))}})),1===b.list.length&&(b.show=!1,P("repeat"),console.log("当前时间段内无可新增节点"))))}}))}(),function(){const t=R-B/2;function n(t,n){if(!t.length)return;let l=Y;const s=[];t.forEach((t=>{const o=t.title.split("").join("\n"),a=N.findIndex((e=>e.key===t.key)),u=new e.Text(String(o),{...i,...t.titleStyle||{},originY:"top",left:n,top:l,lineHeight:1}),c=r(t.type,{left:n,top:l+u.height+3,...t.pointAttr,originY:"top",origin:{title:t.title,unit:t.unit,type:t.type,dataIndex:a,key:t.key,isMenu:!0},originLeft:n,originTop:l+u.height+3,...k.event});l+=u.height+c.height+15,function(e){function t(e){const{left:t,top:n}=e;return t>=L&&t<=V&&n>=Y&&n<=A}e.on("moving",(()=>{e.set("originY","center"),t(e)?(ee(e),te(e)):x.show=!1})),e.on("mouseup:before",(n=>{if(x.show=!1,0===n.e.button&&t(e))if(M(e.left,"key",X).includes(e.origin.key))P("repeat");else{const t={data:{time:S(e.left),value:C(e.origin.key,e.top)},...e.origin};w("add",t),Z(t)}!function(e){e.setCoords().set({originY:"top",left:e.originLeft,top:e.originTop})}(e)}))}(c),s.push(u,c)})),o(s),y.value.add(...s)}function o(e){const t=e.at(-1),n=(A-Y)/2,o=(t.height+t.top-Y)/2;e.forEach((e=>{const t=e.top+n-o;e.set({top:t,originTop:t})}))}n(D,I/2),n(O,t)}(),{clickMenu:function({item:e,target:t}){const n={...e.origin};"remove"===e.mode?(w("remove",n),Z(n,"remove")):(Object.assign(n,{data:{time:S(e.pointer.x),value:C(e.origin.key,e.pointer.y)}}),w("add",n),Z(n))},redrawPoints:_}}export{y as useBirthProcess};
|
package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ref as t,reactive as e,onMounted as i,nextTick as r}from"vue";import{defaultBorderStyle as o}from"../useDraw.js";import"../../../../../shared/utils/fabricjs/index.js";import{format as n}from"date-fns";import{getChildrenSize as a}from"../../utils/index.js";import"@vueuse/core";import{cloneDeep as s,range as l}from"lodash-es";import"../temperature/useShadow.js";import{
|
|
1
|
+
import{ref as t,reactive as e,onMounted as i,nextTick as r}from"vue";import{defaultBorderStyle as o}from"../useDraw.js";import"../../../../../shared/utils/fabricjs/index.js";import{format as n}from"date-fns";import{getChildrenSize as a}from"../../utils/index.js";import"@vueuse/core";import{cloneDeep as s,range as l}from"lodash-es";import"../temperature/useShadow.js";import{useTop as d}from"./useTop.js";import{useCenter as p}from"./useCenter.js";function u(u,c,h,m){var g;const f=t(),x=t(),w=t(),b=e({show:!1,point:{x:0,y:0},list:[]}),y=e({show:!1,point:{x:0,y:0},list:[],target:null}),v=null!=(g=c.data.left.width)?g:0,Y=a(c.data.top.treeData),j=function(){const{xAxis:t}=c.data;return"top"===t.position?t.height:0}(),C=function(){console.log(v);const t=s(c.data.top.treeData);let e=0;const{cellWidth:i,cellHeight:r}=c.data.top.tree;return function t(o,n=0){o.forEach((o=>{var s;const l={top:e*r+j,left:n*i,width:i,height:r};if(e++,null==(s=o.children)?void 0:s.length){e--;const i=a(o.children);l.height=i*r,t(o.children,n+1)}else l.width=v-l.left;Object.assign(o,l)}))}(t),t}();console.log(C);const H=function(){const{grid:t}=c.data;return t.mainXCell*t.subXCell}(),D=c.data.top.tree.cellHeight,X=j+D*Y,A=function(){const t=s(c.data.xAxis),{position:e,startTime:i,spaceValue:r,spaceTimeStamp:o}=t,a=Date.parse(i),d=l(H/r+1).map((t=>0===t?i:n(new Date(a+t*o),"yyyy-MM-dd HH:mm:ss")));return{...t,list:d,left:v,top:"top"===e?0:X}}(),G=function(){const{grid:t}=c.data;return t.mainYCell*t.subYCell}(),M=function(){var t;const{width:e,right:i}=c.data;if(!i)return e;return e-(null!=(t=i.width)?t:0)}(),S=c.data.xAxis.height+D*Y,T=function(){var t;const{bottom:e=null,height:i}=c.data;if(!e)return i;return i-(null!=(t=e.height)?t:0)}(),N=(M-v)/H,P=(T-S)/G,W=e({canvasWidth:c.data.width,canvasHeight:c.data.height,borderStyle:{...o,...c.data.borderStyle||{}},grid:c.data.grid,top:c.data.top,other:c.data.other,topGridYNumber:Y,topGridYCellHeight:D,topGridOriginY:j,topGridEndY:X,treeData:C,xAxis:A,gridXNumber:H,gridYNumber:G,xCellWidth:N,yCellHeight:P,originX:v,endX:M,originY:S,endY:T});return i((async()=>{await r(),d(u,W),p(u,W)})),{propItems:W,redrawPoints:x,select:f,pointTipProps:b,pointMenuProps:y,clickMenu:w}}export{u as useSurgicalAnesthesiaChart};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
import{fabric as t}from"../../../../../shared/utils/fabricjs/index.js";import{drawText as e,defaultStyle as o}from"../useDraw.js";import"date-fns";import"lodash-es";import"@vueuse/core";import"vue";import"../temperature/useShadow.js";function r(r,i){const{grid:s,originX:a,endX:n,xCellWidth:u,gridXNumber:p,top:c,topList:l,canvasWidth:d,borderStyle:h,treeData:m,xAxis:f}=i;!function(){const{height:i,list:s,left:a,top:n,spaceValue:p}=f,c=[],l=n+i/2;s.forEach(((t,o)=>{const r=a+o*u*p;c.push(e([r,l],{value:t.slice(11,16)}))}));const d=c.length>0?new t.Group([...c],{...o,objectCaching:!1}):null;d&&r.value.add(d)}()}export{r as useTop};
|
|
@@ -42,5 +42,5 @@ export declare const defaultTextStyle: {
|
|
|
42
42
|
export declare function drawLine(points: number[], style: Partial<ILineOptions>): fabric.Line;
|
|
43
43
|
export declare function drawText([x, y]: [x: number, y: number], style: ITextOptions): fabric.Text;
|
|
44
44
|
export declare function drawArrow([x, y1, y2]: [x: number, y1: number, y2: number], style: ITextOptions | any, type?: string): fabric.Group;
|
|
45
|
-
export declare function drawTextGroup(rectStyle: Partial<fabric.IRectOptions>, fontStyle: Partial<ITextOptions>, groupStyle: Partial<fabric.IGroupOptions
|
|
45
|
+
export declare function drawTextGroup(rectStyle: Partial<fabric.IRectOptions>, fontStyle: Partial<ITextOptions>, groupStyle: Partial<fabric.IGroupOptions>, showRect?: boolean): fabric.Group;
|
|
46
46
|
export declare function drawPoint(type: string | undefined, style: any): fabric.Object;
|