cnhis-design-vue 3.1.50-release.0 → 3.1.50-release.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -87
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/card-reader-sdk/src/cardReaderSDK.d.ts +1 -0
- package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -1
- package/es/components/card-reader-sdk/src/insuranceSDK.js +1 -1
- package/es/components/card-reader-sdk/src/types/index.d.ts +1 -1
- package/es/components/card-reader-sdk/src/utils/index.d.ts +0 -3
- package/es/components/card-reader-sdk/src/utils/index.js +1 -1
- package/es/components/classification/index.d.ts +3 -1
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +3 -1
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +3 -1
- package/es/components/classification/src/index.vue.d.ts +3 -1
- package/es/components/expand-field/src/components/form.vue2.js +1 -1
- package/es/components/expand-field/src/index.vue2.js +1 -1
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +3 -0
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/useEvent.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/useEvent.js +1 -1
- package/es/components/field-set/src/FieldSet.vue2.js +1 -1
- package/es/components/form-config/index.d.ts +265 -58
- package/es/components/form-config/src/FormConfig.vue.d.ts +265 -58
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +117 -20
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +132 -29
- package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
- package/es/components/form-render/index.d.ts +117 -20
- package/es/components/form-render/src/FormRender.vue.d.ts +117 -20
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +117 -20
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/form-render/src/components/renderer/searchCascade.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
- package/es/components/form-render/src/components/renderer/select.d.ts +12 -0
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +2 -5
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +173 -4
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
- package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +2 -2
- package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -1
- package/es/components/form-render/src/hooks/useFormContext.d.ts +15 -2
- package/es/components/form-render/src/hooks/useFormContext.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +6 -6
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
- package/es/components/form-render/src/types/index.d.ts +6 -3
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-table/index.d.ts +26 -0
- package/es/components/iho-table/index.js +1 -1
- package/es/components/iho-table/src/IhoTable.vue.d.ts +26 -0
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +3 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +297 -3
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.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/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +17 -4
- package/es/components/iho-table/src/utils/index.d.ts +1 -1
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/src/utils/separateMap.d.ts +5 -0
- package/es/components/iho-table/src/utils/separateMap.js +1 -0
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +336 -55
- package/es/components/info-header/src/InfoHeader.vue.d.ts +336 -55
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +86 -3
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +86 -3
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +203 -23
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +117 -20
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/search-cascader/index.d.ts +4 -0
- package/es/components/search-cascader/src/SearchCascader.vue.d.ts +4 -0
- package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
- package/es/components/shortcut-setter/index.d.ts +118 -20
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +118 -20
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +3 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +2 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +1 -0
- 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 +1 -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/index.d.ts +2 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +3 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +28 -0
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/CancelRadio/CancelRadio.d.ts +10 -0
- package/es/shared/components/CancelRadio/CancelRadio.js +1 -0
- package/es/shared/components/CancelRadio/index.d.ts +2 -0
- package/es/shared/components/CancelRadio/index.js +1 -0
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/business.d.ts +3 -1
- package/es/shared/utils/business.js +1 -1
- package/es/shared/utils/fabricjs/index.d.ts +6823 -0
- package/es/shared/utils/index.js +1 -1
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
|
@@ -130,6 +130,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
130
130
|
date_format?: string | undefined;
|
|
131
131
|
step_length?: string | number | undefined;
|
|
132
132
|
urlConfig?: {
|
|
133
|
+
[x: string]: any;
|
|
133
134
|
url: string;
|
|
134
135
|
method?: import("..").FormRequestType | undefined;
|
|
135
136
|
nameKey?: string | undefined;
|
|
@@ -1871,9 +1872,9 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1871
1872
|
lifeCycle: {
|
|
1872
1873
|
type: import("vue").PropType<Partial<{
|
|
1873
1874
|
onSetup(): void;
|
|
1874
|
-
beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
|
|
1875
|
-
afterRequest(fieldKey: string, payload?:
|
|
1876
|
-
afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[]): void;
|
|
1875
|
+
beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
|
|
1876
|
+
afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
|
|
1877
|
+
afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
|
|
1877
1878
|
}>>;
|
|
1878
1879
|
};
|
|
1879
1880
|
requestInstance: {
|
|
@@ -1904,6 +1905,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1904
1905
|
type: BooleanConstructor;
|
|
1905
1906
|
default: boolean;
|
|
1906
1907
|
};
|
|
1908
|
+
forceClearable: BooleanConstructor;
|
|
1907
1909
|
}, {
|
|
1908
1910
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
1909
1911
|
fieldList: {
|
|
@@ -2015,9 +2017,9 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2015
2017
|
lifeCycle: {
|
|
2016
2018
|
type: import("vue").PropType<Partial<{
|
|
2017
2019
|
onSetup(): void;
|
|
2018
|
-
beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
|
|
2019
|
-
afterRequest(fieldKey: string, payload?:
|
|
2020
|
-
afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[]): void;
|
|
2020
|
+
beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
|
|
2021
|
+
afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
|
|
2022
|
+
afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
|
|
2021
2023
|
}>>;
|
|
2022
2024
|
};
|
|
2023
2025
|
requestInstance: {
|
|
@@ -2048,6 +2050,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2048
2050
|
type: BooleanConstructor;
|
|
2049
2051
|
default: boolean;
|
|
2050
2052
|
};
|
|
2053
|
+
forceClearable: BooleanConstructor;
|
|
2051
2054
|
}>> & {
|
|
2052
2055
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
2053
2056
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -2058,7 +2061,17 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2058
2061
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
2059
2062
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
2060
2063
|
formHeight: import("vue").ComputedRef<string>;
|
|
2061
|
-
SchemaField: import("vue").
|
|
2064
|
+
SchemaField: import("vue").DefineComponent<Record<keyof import("@formily/vue").ISchemaFieldProps, any>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Record<keyof import("@formily/vue").ISchemaFieldProps, any>>>, {
|
|
2065
|
+
name: any;
|
|
2066
|
+
components: any;
|
|
2067
|
+
schema: any;
|
|
2068
|
+
scope: any;
|
|
2069
|
+
basePath: any;
|
|
2070
|
+
onlyRenderProperties: any;
|
|
2071
|
+
onlyRenderSelf: any;
|
|
2072
|
+
mapProperties: any;
|
|
2073
|
+
filterProperties: any;
|
|
2074
|
+
}>;
|
|
2062
2075
|
businessCollector: import("..").BusinessCollector;
|
|
2063
2076
|
formItemDepsCollector: import("..").FormItemDepsCollector;
|
|
2064
2077
|
changeContextCollector: import("..").ContextCollector;
|
|
@@ -2075,14 +2088,14 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2075
2088
|
onScroll: (scrollEvent: Event) => void;
|
|
2076
2089
|
callLifeCycle: <T extends "onSetup" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T, payload?: Parameters<Required<Partial<{
|
|
2077
2090
|
onSetup(): void;
|
|
2078
|
-
beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
|
|
2079
|
-
afterRequest(fieldKey: string, payload?:
|
|
2080
|
-
afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[]): void;
|
|
2091
|
+
beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
|
|
2092
|
+
afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
|
|
2093
|
+
afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
|
|
2081
2094
|
}>>[T]> | undefined) => import("../../../es/shared/types").UndefinedAble<ReturnType<Required<Partial<{
|
|
2082
2095
|
onSetup(): void;
|
|
2083
|
-
beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
|
|
2084
|
-
afterRequest(fieldKey: string, payload?:
|
|
2085
|
-
afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[]): void;
|
|
2096
|
+
beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
|
|
2097
|
+
afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
|
|
2098
|
+
afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
|
|
2086
2099
|
}>>[T]>>;
|
|
2087
2100
|
triggerAutoHidden: (field: import("@formily/core").GeneralField) => Promise<void>;
|
|
2088
2101
|
observeFormGraph: Record<string, import("@formily/core").GeneralField>;
|
|
@@ -2092,15 +2105,98 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2092
2105
|
formModel: import("@formily/core").Form<{
|
|
2093
2106
|
[x: string]: any;
|
|
2094
2107
|
}>;
|
|
2095
|
-
lowCodeReactionsHandler: (field: string
|
|
2108
|
+
lowCodeReactionsHandler: (field: string) => void;
|
|
2096
2109
|
triggerAllReactionsHandler: () => void;
|
|
2097
2110
|
operationalFormHandler: (field: string) => void;
|
|
2098
2111
|
triggerAllOperationalFormHandler: () => void;
|
|
2099
2112
|
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
2100
|
-
schemaAdaptor: (fieldList: import("..").FieldItem[], options?: {
|
|
2113
|
+
schemaAdaptor: (fieldList: import("..").FieldItem[], options?: Partial<{
|
|
2114
|
+
fieldList: import("..").FieldItem[];
|
|
2115
|
+
initialData: import("../../../es/shared/types").AnyObject;
|
|
2116
|
+
fieldVisitor: import("..").FieldVisitor;
|
|
2101
2117
|
column: number;
|
|
2102
|
-
|
|
2103
|
-
|
|
2118
|
+
maxHeight: string | number;
|
|
2119
|
+
anchor: boolean;
|
|
2120
|
+
parallelism: number;
|
|
2121
|
+
schema: import("@formily/json-schema").Stringify<{
|
|
2122
|
+
[key: symbol]: any;
|
|
2123
|
+
[key: `x-${string}`]: any;
|
|
2124
|
+
[key: `x-${number}`]: any;
|
|
2125
|
+
version?: string | undefined;
|
|
2126
|
+
name?: import("@formily/json-schema").SchemaKey | undefined;
|
|
2127
|
+
title?: any;
|
|
2128
|
+
description?: any;
|
|
2129
|
+
default?: any;
|
|
2130
|
+
readOnly?: boolean | undefined;
|
|
2131
|
+
writeOnly?: boolean | undefined;
|
|
2132
|
+
type?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
2133
|
+
enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
|
|
2134
|
+
const?: any;
|
|
2135
|
+
multipleOf?: number | undefined;
|
|
2136
|
+
maximum?: number | undefined;
|
|
2137
|
+
exclusiveMaximum?: number | undefined;
|
|
2138
|
+
minimum?: number | undefined;
|
|
2139
|
+
exclusiveMinimum?: number | undefined;
|
|
2140
|
+
maxLength?: number | undefined;
|
|
2141
|
+
minLength?: number | undefined;
|
|
2142
|
+
pattern?: string | RegExp | undefined;
|
|
2143
|
+
maxItems?: number | undefined;
|
|
2144
|
+
minItems?: number | undefined;
|
|
2145
|
+
uniqueItems?: boolean | undefined;
|
|
2146
|
+
maxProperties?: number | undefined;
|
|
2147
|
+
minProperties?: number | undefined;
|
|
2148
|
+
required?: string | boolean | string[] | undefined;
|
|
2149
|
+
format?: string | undefined;
|
|
2150
|
+
$ref?: string | undefined;
|
|
2151
|
+
$namespace?: string | undefined;
|
|
2152
|
+
definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
2153
|
+
properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
2154
|
+
items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
|
|
2155
|
+
additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
2156
|
+
patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
2157
|
+
additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
2158
|
+
"x-value"?: any;
|
|
2159
|
+
"x-index"?: number | undefined;
|
|
2160
|
+
"x-pattern"?: any;
|
|
2161
|
+
"x-display"?: any;
|
|
2162
|
+
"x-validator"?: any;
|
|
2163
|
+
"x-decorator"?: any;
|
|
2164
|
+
"x-decorator-props"?: any;
|
|
2165
|
+
"x-component"?: any;
|
|
2166
|
+
"x-component-props"?: any;
|
|
2167
|
+
"x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
|
|
2168
|
+
"x-content"?: any;
|
|
2169
|
+
"x-data"?: any;
|
|
2170
|
+
"x-visible"?: boolean | undefined;
|
|
2171
|
+
"x-hidden"?: boolean | undefined;
|
|
2172
|
+
"x-disabled"?: boolean | undefined;
|
|
2173
|
+
"x-editable"?: boolean | undefined;
|
|
2174
|
+
"x-read-only"?: boolean | undefined;
|
|
2175
|
+
"x-read-pretty"?: boolean | undefined;
|
|
2176
|
+
"x-compile-omitted"?: string[] | undefined;
|
|
2177
|
+
}>;
|
|
2178
|
+
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
2179
|
+
scope: import("../../../es/shared/types").AnyObject;
|
|
2180
|
+
annotation: import("../../../es/shared/types").AnyObject;
|
|
2181
|
+
consumer: boolean;
|
|
2182
|
+
uuid: string;
|
|
2183
|
+
lifeCycle: Partial<{
|
|
2184
|
+
onSetup(): void;
|
|
2185
|
+
beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
|
|
2186
|
+
afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
|
|
2187
|
+
afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
|
|
2188
|
+
}>;
|
|
2189
|
+
businessFormatter: import("..").FormBusinessFormatter;
|
|
2190
|
+
requestInstance: import("..").RequestInstance;
|
|
2191
|
+
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
2192
|
+
lowCodeReactions: import("..").FormLowCodeReactions.Config[];
|
|
2193
|
+
linebarAutoHidden: boolean;
|
|
2194
|
+
bordered: string | boolean;
|
|
2195
|
+
uniqueCacheData: boolean;
|
|
2196
|
+
operationalForm: import("../../../es/shared/types").FormOperationalConfig[];
|
|
2197
|
+
outBordered: boolean;
|
|
2198
|
+
forceClearable: boolean;
|
|
2199
|
+
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
|
2104
2200
|
[key: symbol]: any;
|
|
2105
2201
|
[key: `x-${string}`]: any;
|
|
2106
2202
|
[key: `x-${number}`]: any;
|
|
@@ -2491,9 +2587,9 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2491
2587
|
lifeCycle: {
|
|
2492
2588
|
type: import("vue").PropType<Partial<{
|
|
2493
2589
|
onSetup(): void;
|
|
2494
|
-
beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
|
|
2495
|
-
afterRequest(fieldKey: string, payload?:
|
|
2496
|
-
afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[]): void;
|
|
2590
|
+
beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
|
|
2591
|
+
afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
|
|
2592
|
+
afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
|
|
2497
2593
|
}>>;
|
|
2498
2594
|
};
|
|
2499
2595
|
requestInstance: {
|
|
@@ -2524,6 +2620,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2524
2620
|
type: BooleanConstructor;
|
|
2525
2621
|
default: boolean;
|
|
2526
2622
|
};
|
|
2623
|
+
forceClearable: BooleanConstructor;
|
|
2527
2624
|
}>> & {
|
|
2528
2625
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
2529
2626
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -2532,6 +2629,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2532
2629
|
anchor: boolean;
|
|
2533
2630
|
maxHeight: string | number;
|
|
2534
2631
|
column: number;
|
|
2632
|
+
forceClearable: boolean;
|
|
2535
2633
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
2536
2634
|
initialData: import("../../../es/shared/types").AnyObject;
|
|
2537
2635
|
parallelism: number;
|
|
@@ -132,6 +132,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
132
132
|
date_format?: string | undefined;
|
|
133
133
|
step_length?: string | number | undefined;
|
|
134
134
|
urlConfig?: {
|
|
135
|
+
[x: string]: any;
|
|
135
136
|
url: string;
|
|
136
137
|
method?: import("../../../../es/components/form-render").FormRequestType | undefined;
|
|
137
138
|
nameKey?: string | undefined;
|
|
@@ -1873,9 +1874,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1873
1874
|
lifeCycle: {
|
|
1874
1875
|
type: import("vue").PropType<Partial<{
|
|
1875
1876
|
onSetup(): void;
|
|
1876
|
-
beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
|
|
1877
|
-
afterRequest(fieldKey: string, payload?:
|
|
1878
|
-
afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[]): void;
|
|
1877
|
+
beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
|
|
1878
|
+
afterRequest(fieldKey: string, res?: any, payload?: import("../../../../es/shared/types").AnyObject | undefined): import("../../../../es/shared/types").AnyObject[];
|
|
1879
|
+
afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[], payload?: import("../../../../es/shared/types").AnyObject | undefined): void;
|
|
1879
1880
|
}>>;
|
|
1880
1881
|
};
|
|
1881
1882
|
requestInstance: {
|
|
@@ -1906,6 +1907,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1906
1907
|
type: BooleanConstructor;
|
|
1907
1908
|
default: boolean;
|
|
1908
1909
|
};
|
|
1910
|
+
forceClearable: BooleanConstructor;
|
|
1909
1911
|
}, {
|
|
1910
1912
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
1911
1913
|
fieldList: {
|
|
@@ -2017,9 +2019,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2017
2019
|
lifeCycle: {
|
|
2018
2020
|
type: import("vue").PropType<Partial<{
|
|
2019
2021
|
onSetup(): void;
|
|
2020
|
-
beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
|
|
2021
|
-
afterRequest(fieldKey: string, payload?:
|
|
2022
|
-
afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[]): void;
|
|
2022
|
+
beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
|
|
2023
|
+
afterRequest(fieldKey: string, res?: any, payload?: import("../../../../es/shared/types").AnyObject | undefined): import("../../../../es/shared/types").AnyObject[];
|
|
2024
|
+
afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[], payload?: import("../../../../es/shared/types").AnyObject | undefined): void;
|
|
2023
2025
|
}>>;
|
|
2024
2026
|
};
|
|
2025
2027
|
requestInstance: {
|
|
@@ -2050,6 +2052,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2050
2052
|
type: BooleanConstructor;
|
|
2051
2053
|
default: boolean;
|
|
2052
2054
|
};
|
|
2055
|
+
forceClearable: BooleanConstructor;
|
|
2053
2056
|
}>> & {
|
|
2054
2057
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
2055
2058
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -2060,7 +2063,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2060
2063
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
2061
2064
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
2062
2065
|
formHeight: import("vue").ComputedRef<string>;
|
|
2063
|
-
SchemaField:
|
|
2066
|
+
SchemaField: import("vue").DefineComponent<Record<keyof import("@formily/vue").ISchemaFieldProps, any>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Record<keyof import("@formily/vue").ISchemaFieldProps, any>>>, {
|
|
2067
|
+
name: any;
|
|
2068
|
+
components: any;
|
|
2069
|
+
schema: any;
|
|
2070
|
+
scope: any;
|
|
2071
|
+
basePath: any;
|
|
2072
|
+
onlyRenderProperties: any;
|
|
2073
|
+
onlyRenderSelf: any;
|
|
2074
|
+
mapProperties: any;
|
|
2075
|
+
filterProperties: any;
|
|
2076
|
+
}>;
|
|
2064
2077
|
businessCollector: import("../../../../es/components/form-render").BusinessCollector;
|
|
2065
2078
|
formItemDepsCollector: import("../../../../es/components/form-render").FormItemDepsCollector;
|
|
2066
2079
|
changeContextCollector: import("../../../../es/components/form-render").ContextCollector;
|
|
@@ -2077,14 +2090,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2077
2090
|
onScroll: (scrollEvent: Event) => void;
|
|
2078
2091
|
callLifeCycle: <T extends "onSetup" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T, payload?: Parameters<Required<Partial<{
|
|
2079
2092
|
onSetup(): void;
|
|
2080
|
-
beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
|
|
2081
|
-
afterRequest(fieldKey: string, payload?:
|
|
2082
|
-
afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[]): void;
|
|
2093
|
+
beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
|
|
2094
|
+
afterRequest(fieldKey: string, res?: any, payload?: import("../../../../es/shared/types").AnyObject | undefined): import("../../../../es/shared/types").AnyObject[];
|
|
2095
|
+
afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[], payload?: import("../../../../es/shared/types").AnyObject | undefined): void;
|
|
2083
2096
|
}>>[T]> | undefined) => import("../../../../es/shared/types").UndefinedAble<ReturnType<Required<Partial<{
|
|
2084
2097
|
onSetup(): void;
|
|
2085
|
-
beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
|
|
2086
|
-
afterRequest(fieldKey: string, payload?:
|
|
2087
|
-
afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[]): void;
|
|
2098
|
+
beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
|
|
2099
|
+
afterRequest(fieldKey: string, res?: any, payload?: import("../../../../es/shared/types").AnyObject | undefined): import("../../../../es/shared/types").AnyObject[];
|
|
2100
|
+
afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[], payload?: import("../../../../es/shared/types").AnyObject | undefined): void;
|
|
2088
2101
|
}>>[T]>>;
|
|
2089
2102
|
triggerAutoHidden: (field: import("../../../../es/components/form-render").GeneralField) => Promise<void>;
|
|
2090
2103
|
observeFormGraph: Record<string, import("../../../../es/components/form-render").GeneralField>;
|
|
@@ -2094,15 +2107,98 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2094
2107
|
formModel: import("../../../../es/components/form-render").Form<{
|
|
2095
2108
|
[x: string]: any;
|
|
2096
2109
|
}>;
|
|
2097
|
-
lowCodeReactionsHandler: (field: string
|
|
2110
|
+
lowCodeReactionsHandler: (field: string) => void;
|
|
2098
2111
|
triggerAllReactionsHandler: () => void;
|
|
2099
2112
|
operationalFormHandler: (field: string) => void;
|
|
2100
2113
|
triggerAllOperationalFormHandler: () => void;
|
|
2101
2114
|
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
2102
|
-
schemaAdaptor: (fieldList: FieldItem[], options?: {
|
|
2115
|
+
schemaAdaptor: (fieldList: FieldItem[], options?: Partial<{
|
|
2116
|
+
fieldList: FieldItem[];
|
|
2117
|
+
initialData: import("../../../../es/shared/types").AnyObject;
|
|
2118
|
+
fieldVisitor: import("../../../../es/components/form-render").FieldVisitor;
|
|
2103
2119
|
column: number;
|
|
2104
|
-
|
|
2105
|
-
|
|
2120
|
+
maxHeight: string | number;
|
|
2121
|
+
anchor: boolean;
|
|
2122
|
+
parallelism: number;
|
|
2123
|
+
schema: import("@formily/json-schema").Stringify<{
|
|
2124
|
+
[key: symbol]: any;
|
|
2125
|
+
[key: `x-${string}`]: any;
|
|
2126
|
+
[key: `x-${number}`]: any;
|
|
2127
|
+
version?: string | undefined;
|
|
2128
|
+
name?: import("@formily/json-schema").SchemaKey | undefined;
|
|
2129
|
+
title?: any;
|
|
2130
|
+
description?: any;
|
|
2131
|
+
default?: any;
|
|
2132
|
+
readOnly?: boolean | undefined;
|
|
2133
|
+
writeOnly?: boolean | undefined;
|
|
2134
|
+
type?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
2135
|
+
enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
|
|
2136
|
+
const?: any;
|
|
2137
|
+
multipleOf?: number | undefined;
|
|
2138
|
+
maximum?: number | undefined;
|
|
2139
|
+
exclusiveMaximum?: number | undefined;
|
|
2140
|
+
minimum?: number | undefined;
|
|
2141
|
+
exclusiveMinimum?: number | undefined;
|
|
2142
|
+
maxLength?: number | undefined;
|
|
2143
|
+
minLength?: number | undefined;
|
|
2144
|
+
pattern?: string | RegExp | undefined;
|
|
2145
|
+
maxItems?: number | undefined;
|
|
2146
|
+
minItems?: number | undefined;
|
|
2147
|
+
uniqueItems?: boolean | undefined;
|
|
2148
|
+
maxProperties?: number | undefined;
|
|
2149
|
+
minProperties?: number | undefined;
|
|
2150
|
+
required?: string | boolean | string[] | undefined;
|
|
2151
|
+
format?: string | undefined;
|
|
2152
|
+
$ref?: string | undefined;
|
|
2153
|
+
$namespace?: string | undefined;
|
|
2154
|
+
definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
2155
|
+
properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
2156
|
+
items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
|
|
2157
|
+
additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
2158
|
+
patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
2159
|
+
additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
2160
|
+
"x-value"?: any;
|
|
2161
|
+
"x-index"?: number | undefined;
|
|
2162
|
+
"x-pattern"?: any;
|
|
2163
|
+
"x-display"?: any;
|
|
2164
|
+
"x-validator"?: any;
|
|
2165
|
+
"x-decorator"?: any;
|
|
2166
|
+
"x-decorator-props"?: any;
|
|
2167
|
+
"x-component"?: any;
|
|
2168
|
+
"x-component-props"?: any;
|
|
2169
|
+
"x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
|
|
2170
|
+
"x-content"?: any;
|
|
2171
|
+
"x-data"?: any;
|
|
2172
|
+
"x-visible"?: boolean | undefined;
|
|
2173
|
+
"x-hidden"?: boolean | undefined;
|
|
2174
|
+
"x-disabled"?: boolean | undefined;
|
|
2175
|
+
"x-editable"?: boolean | undefined;
|
|
2176
|
+
"x-read-only"?: boolean | undefined;
|
|
2177
|
+
"x-read-pretty"?: boolean | undefined;
|
|
2178
|
+
"x-compile-omitted"?: string[] | undefined;
|
|
2179
|
+
}>;
|
|
2180
|
+
components: Record<string, Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
2181
|
+
scope: import("../../../../es/shared/types").AnyObject;
|
|
2182
|
+
annotation: import("../../../../es/shared/types").AnyObject;
|
|
2183
|
+
consumer: boolean;
|
|
2184
|
+
uuid: string;
|
|
2185
|
+
lifeCycle: Partial<{
|
|
2186
|
+
onSetup(): void;
|
|
2187
|
+
beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
|
|
2188
|
+
afterRequest(fieldKey: string, res?: any, payload?: import("../../../../es/shared/types").AnyObject | undefined): import("../../../../es/shared/types").AnyObject[];
|
|
2189
|
+
afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[], payload?: import("../../../../es/shared/types").AnyObject | undefined): void;
|
|
2190
|
+
}>;
|
|
2191
|
+
businessFormatter: import("../../../../es/components/form-render").FormBusinessFormatter;
|
|
2192
|
+
requestInstance: import("../../../../es/components/form-render").RequestInstance;
|
|
2193
|
+
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
2194
|
+
lowCodeReactions: import("../../../../es/components/form-render").FormLowCodeReactions.Config[];
|
|
2195
|
+
linebarAutoHidden: boolean;
|
|
2196
|
+
bordered: string | boolean;
|
|
2197
|
+
uniqueCacheData: boolean;
|
|
2198
|
+
operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
|
|
2199
|
+
outBordered: boolean;
|
|
2200
|
+
forceClearable: boolean;
|
|
2201
|
+
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
|
2106
2202
|
[key: symbol]: any;
|
|
2107
2203
|
[key: `x-${string}`]: any;
|
|
2108
2204
|
[key: `x-${number}`]: any;
|
|
@@ -2493,9 +2589,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2493
2589
|
lifeCycle: {
|
|
2494
2590
|
type: import("vue").PropType<Partial<{
|
|
2495
2591
|
onSetup(): void;
|
|
2496
|
-
beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
|
|
2497
|
-
afterRequest(fieldKey: string, payload?:
|
|
2498
|
-
afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[]): void;
|
|
2592
|
+
beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
|
|
2593
|
+
afterRequest(fieldKey: string, res?: any, payload?: import("../../../../es/shared/types").AnyObject | undefined): import("../../../../es/shared/types").AnyObject[];
|
|
2594
|
+
afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[], payload?: import("../../../../es/shared/types").AnyObject | undefined): void;
|
|
2499
2595
|
}>>;
|
|
2500
2596
|
};
|
|
2501
2597
|
requestInstance: {
|
|
@@ -2526,6 +2622,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2526
2622
|
type: BooleanConstructor;
|
|
2527
2623
|
default: boolean;
|
|
2528
2624
|
};
|
|
2625
|
+
forceClearable: BooleanConstructor;
|
|
2529
2626
|
}>> & {
|
|
2530
2627
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
2531
2628
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -2534,6 +2631,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2534
2631
|
anchor: boolean;
|
|
2535
2632
|
maxHeight: string | number;
|
|
2536
2633
|
column: number;
|
|
2634
|
+
forceClearable: boolean;
|
|
2537
2635
|
components: Record<string, Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
2538
2636
|
initialData: import("../../../../es/shared/types").AnyObject;
|
|
2539
2637
|
parallelism: number;
|
|
@@ -111,6 +111,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
111
111
|
readonly type: PropType<(string | number)[] | null>;
|
|
112
112
|
readonly default: null;
|
|
113
113
|
};
|
|
114
|
+
/**
|
|
115
|
+
* 拖拽完成
|
|
116
|
+
*/
|
|
114
117
|
readonly disabled: {
|
|
115
118
|
readonly type: PropType<boolean | undefined>;
|
|
116
119
|
readonly default: undefined;
|
|
@@ -81,6 +81,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
81
81
|
label: string;
|
|
82
82
|
value: string;
|
|
83
83
|
}[]>;
|
|
84
|
+
initMounted: () => void;
|
|
84
85
|
isDateDisabled: (ts: number) => boolean;
|
|
85
86
|
timeDisabled: (ts: number) => {
|
|
86
87
|
isHourDisabled(hour: number): boolean | undefined;
|
|
@@ -632,6 +633,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
632
633
|
value: string;
|
|
633
634
|
}[]>;
|
|
634
635
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
636
|
+
initMounted: () => void;
|
|
635
637
|
handleChange: (val: any, type: "end" | "start") => void;
|
|
636
638
|
isStartDateDisabled: (ts: number) => boolean;
|
|
637
639
|
timeStartDisabled: (ts: number) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as t,
|
|
1
|
+
import{defineComponent as e,computed as t,onMounted as a,openBlock as l,createElementBlock as r,createVNode as u,unref as o,isRef as s,createBlock as p,createCommentVNode as m}from"vue";import d from"../../../../../date-picker/index.js";import{NSelect as n}from"naive-ui";import{WidgetValEnums as i,WidgetTypeEnums as f,WidgetOptionEnums as v}from"../../../types/enums.js";import{WidgetDateOptionEnums as y}from"../../render-widget/helpers/enums.js";import{widgetDateValOptions as c}from"../../render-widget/helpers/dateExtraMap.js";import{setDateDisabled as M,setTimeDisabled as D}from"../../render-widget/helpers/dateDisabled.js";import{presetValToTimestamp as Y}from"../../render-widget/helpers/presetValToTimestamp.js";const V={style:{display:"flex"}};var T=e({__name:"Date",props:{componentCfg:{type:Object},paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:T}){const b=e,g=t({set(e){T("update:modelValue",e)},get:()=>b.modelValue}),w=t({set(e){if(T("update:presetVal",e),e&&e!==i.CUSTOM){const t=C.value===f.DATE?"YYYY-MM-DD":"YYYY-MM-DD HH:mm:ss",a=Y(e,t);T("update:modelValue",a)}},get:()=>b.presetVal}),C=t((()=>h.value.toLowerCase()||f.DATE.toLowerCase())),j=t((()=>{let e="";switch(h.value){case f.DATE:e="yyyy-MM-dd";break;case f.DATE_TIME:e="yyyy-MM-dd HH:mm:ss"}return e})),h=t((()=>b.paramCfg._rawData.type)),A=t((()=>{var e,t;return null==(t=null==(e=b.paramCfg)?void 0:e._rawData)?void 0:t.optionType})),E=t((()=>{var e;const t=A.value||v.ALL;if(h.value&&t){const a=`${h.value}_${t}`,l=y[a];let r=(null!=(e=c[l])?e:[]).map((e=>({label:e.title,value:e.con})));return r.unshift({label:"自定义输入",value:i.CUSTOM}),r}return[]}));function H(e){return M(e,A.value)}function O(e){return D(e,A.value)}return a((()=>{!function(){if(b.presetVal&&b.presetVal!==i.CUSTOM&&!b.modelValue){const e=C.value===f.DATE?"YYYY-MM-DD":"YYYY-MM-DD HH:mm:ss",t=Y(b.presetVal,e);T("update:modelValue",t)}}()})),(e,t)=>(l(),r("div",V,[u(o(n),{style:{width:"120px"},class:"form-item",to:"body",value:o(w),"onUpdate:value":t[0]||(t[0]=e=>s(w)?w.value=e:null),options:o(E)},null,8,["value","options"]),o(w)===o(i).CUSTOM?(l(),p(o(d),{key:0,class:"form-item",type:o(C),clearable:"",to:"body","is-date-disabled":H,"is-time-disabled":O,valueFormat:o(j),"formatted-value":o(g),"onUpdate:formatted-value":t[1]||(t[1]=e=>s(g)?g.value=e:null)},null,8,["type","valueFormat","formatted-value"])):m("v-if",!0)]))}});export{T as default};
|
package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
50
50
|
value: string;
|
|
51
51
|
}[]>;
|
|
52
52
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
53
|
+
initMounted: () => void;
|
|
53
54
|
handleChange: (val: any, type: 'start' | 'end') => void;
|
|
54
55
|
isStartDateDisabled: (ts: number) => boolean;
|
|
55
56
|
timeStartDisabled: (ts: number) => {
|
package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as a,computed as l,watch as t,
|
|
1
|
+
import{defineComponent as e,ref as a,computed as l,watch as t,onMounted as u,openBlock as r,createElementBlock as i,createVNode as o,unref as s,isRef as d,withCtx as v,toDisplayString as n,createCommentVNode as m}from"vue";import{NSelect as p,NPopover as f}from"naive-ui";import c from"../../../../../date-picker/index.js";import y from"moment";import{isString as T}from"lodash-es";import{WidgetOptionEnums as b,WidgetTypeEnums as g,WidgetValEnums as M}from"../../../types/enums.js";import{WidgetDateOptionEnums as h}from"../../render-widget/helpers/enums.js";import{widgetDateValOptions as D}from"../../render-widget/helpers/dateExtraMap.js";import{dateDisabledCollect as V,isStartDateRangeDisabled as E,isTimeStartRangeDisabled as A,isEndDateRangeDisabled as w,isTimeEndRangeDisabled as _}from"../../render-widget/helpers/dateDisabled.js";import{formatDateRangeInfo as C}from"../../render-widget/helpers/presetValToTimestamp.js";const U={style:{display:"flex"}},L={key:0,style:{display:"flex"}},Y={key:0},j={key:0};var k=e({__name:"DateRange",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:k}){const x=e,O=a(),S=a(),F=l((()=>{let e="";switch(I.value){case g.DATE:e="yyyy-MM-dd";break;case g.DATE_TIME:e="yyyy-MM-dd HH:mm:ss"}return e})),H=l((()=>{let e="";switch(I.value){case g.DATE:e="YYYY-MM-DD";break;case g.DATE_TIME:e="YYYY-MM-DD HH:mm:ss"}return e})),I=l((()=>x.paramCfg._rawData.type)),$=l((()=>{var e,a;return null==(a=null==(e=x.paramCfg)?void 0:e._rawData)?void 0:a.optionType})),R=l((()=>$.value===b.PAST_TIME)),N=l((()=>$.value===b.FUTURE_TIME)),G=l((()=>I.value===g.DATE?"初始日期":"初始时间")),P=l((()=>I.value===g.DATE?"截止日期":"截止时间")),q=l((()=>N.value?V.curTime:"00:00:00")),z=l((()=>R.value?V.curTime:"23:59:59")),B=l((()=>O.value?y(O.value).format(H.value):null)),J=l((()=>S.value?y(S.value).format(H.value):null)),K=l((()=>I.value.toLowerCase()||g.DATE.toLowerCase())),Q=l((()=>{var e;const a=$.value||b.ALL;if(I.value&&a){const l=`${I.value}_${a}_RANGE`,t=h[l];let u=(null!=(e=D[t])?e:[]).map((e=>({label:e.title,value:e.con})));return u.unshift({label:"自定义输入",value:M.CUSTOM}),u}return[]})),W=l({set(e){if(k("update:presetVal",e),e&&e!==M.CUSTOM){const a=$.value||b.ALL,l=C(e,H.value,a);k("update:modelValue",l)}},get:()=>x.presetVal});function X(e,a){var l,t;switch(a){case"start":O.value=e;break;case"end":S.value=e}const u=B.value||J.value?`${null!=(l=B.value)?l:""} ~ ${null!=(t=J.value)?t:""}`:"";k("update:modelValue",u)}function Z(e){return E(e,$.value,S.value)}function ee(e){return A(e,$.value,S.value)}function ae(e){return w(e,$.value,O.value)}function le(e){return _(e,$.value,O.value)}return t((()=>x.modelValue),(e=>{if(e&&T(e)&&e.includes("~")){const[a,l]=e.split("~");return a.trim()&&(O.value=y(a.trim()).valueOf()),void(l.trim()&&(S.value=y(l.trim()).valueOf()))}O.value=S.value=null}),{immediate:!0}),u((()=>{!function(){if(x.presetVal&&x.presetVal!==M.CUSTOM&&!x.modelValue){const e=$.value||b.ALL,a=C(x.presetVal,H.value,e);k("update:modelValue",a)}}()})),(e,a)=>(r(),i("div",U,[o(s(p),{style:{width:"120px"},class:"form-item",to:"body",value:s(W),"onUpdate:value":a[0]||(a[0]=e=>d(W)?W.value=e:null),options:s(Q)},null,8,["value","options"]),s(W)===s(M).CUSTOM?(r(),i("div",L,[o(s(f),{trigger:"hover",disabled:!s(B)},{trigger:v((()=>[o(s(c),{type:s(K),"default-time":s(q),clearable:"",to:"body",valueFormat:s(F),placeholder:s(G),value:O.value,"is-date-disabled":Z,"is-time-disabled":ee,"onUpdate:value":a[1]||(a[1]=e=>X(e,"start"))},null,8,["type","default-time","valueFormat","placeholder","value"])])),default:v((()=>[s(B)?(r(),i("span",Y,n(s(B)),1)):m("v-if",!0)])),_:1},8,["disabled"]),o(s(f),{trigger:"hover",disabled:!s(J)},{trigger:v((()=>[o(s(c),{style:{"margin-left":"5px"},type:s(K),"default-time":s(z),clearable:"",to:"body",valueFormat:s(F),placeholder:s(P),value:S.value,"is-date-disabled":ae,"is-time-disabled":le,"onUpdate:value":a[2]||(a[2]=e=>X(e,"end"))},null,8,["type","default-time","valueFormat","placeholder","value"])])),default:v((()=>[s(J)?(r(),i("span",j,n(s(J)),1)):m("v-if",!0)])),_:1},8,["disabled"])])):m("v-if",!0)]))}});export{k as default};
|
|
@@ -46,6 +46,7 @@ declare const Date: import("vue").DefineComponent<{
|
|
|
46
46
|
label: string;
|
|
47
47
|
value: string;
|
|
48
48
|
}[]>;
|
|
49
|
+
initMounted: () => void;
|
|
49
50
|
isDateDisabled: (ts: number) => boolean;
|
|
50
51
|
timeDisabled: (ts: number) => {
|
|
51
52
|
isHourDisabled(hour: number): boolean | undefined;
|
|
@@ -597,6 +598,7 @@ declare const DateRange: import("vue").DefineComponent<{
|
|
|
597
598
|
value: string;
|
|
598
599
|
}[]>;
|
|
599
600
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
601
|
+
initMounted: () => void;
|
|
600
602
|
handleChange: (val: any, type: "end" | "start") => void;
|
|
601
603
|
isStartDateDisabled: (ts: number) => boolean;
|
|
602
604
|
timeStartDisabled: (ts: number) => {
|
|
@@ -104,7 +104,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
104
104
|
value: any;
|
|
105
105
|
unit: any;
|
|
106
106
|
}[];
|
|
107
|
-
findConditionByDisplayCategory: (
|
|
107
|
+
findConditionByDisplayCategory: (sid: string) => unknown;
|
|
108
108
|
handleDisplayCategorySelectProxy: (item: ICategoryItemType) => void;
|
|
109
109
|
clearFormData: () => void;
|
|
110
110
|
handleInitConditions: () => Promise<void>;
|
|
@@ -204,6 +204,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
204
204
|
label: string;
|
|
205
205
|
value: string;
|
|
206
206
|
}[]>;
|
|
207
|
+
initMounted: () => void;
|
|
207
208
|
isDateDisabled: (ts: number) => boolean;
|
|
208
209
|
timeDisabled: (ts: number) => {
|
|
209
210
|
isHourDisabled(hour: number): boolean | undefined;
|
|
@@ -755,6 +756,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
755
756
|
value: string;
|
|
756
757
|
}[]>;
|
|
757
758
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
759
|
+
initMounted: () => void;
|
|
758
760
|
handleChange: (val: any, type: "end" | "start") => void;
|
|
759
761
|
isStartDateDisabled: (ts: number) => boolean;
|
|
760
762
|
timeStartDisabled: (ts: number) => {
|