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.
Files changed (135) hide show
  1. package/README.md +87 -87
  2. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  3. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  4. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  5. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  6. package/es/components/card-reader-sdk/src/cardReaderSDK.d.ts +1 -0
  7. package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -1
  8. package/es/components/card-reader-sdk/src/insuranceSDK.js +1 -1
  9. package/es/components/card-reader-sdk/src/types/index.d.ts +1 -1
  10. package/es/components/card-reader-sdk/src/utils/index.d.ts +0 -3
  11. package/es/components/card-reader-sdk/src/utils/index.js +1 -1
  12. package/es/components/classification/index.d.ts +3 -1
  13. package/es/components/classification/src/components/search-filter/index.vue.d.ts +3 -1
  14. package/es/components/classification/src/components/set-classification/index.vue.d.ts +3 -1
  15. package/es/components/classification/src/index.vue.d.ts +3 -1
  16. package/es/components/expand-field/src/components/form.vue2.js +1 -1
  17. package/es/components/expand-field/src/index.vue2.js +1 -1
  18. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  19. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  20. package/es/components/fabric-chart/src/hooks/index.js +1 -1
  21. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +3 -0
  22. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  23. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +1 -1
  24. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +1 -1
  25. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
  26. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  27. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
  28. package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -1
  29. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  30. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  31. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
  32. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
  33. package/es/components/fabric-chart/src/hooks/useEvent.d.ts +1 -0
  34. package/es/components/fabric-chart/src/hooks/useEvent.js +1 -1
  35. package/es/components/field-set/src/FieldSet.vue2.js +1 -1
  36. package/es/components/form-config/index.d.ts +265 -58
  37. package/es/components/form-config/src/FormConfig.vue.d.ts +265 -58
  38. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +117 -20
  39. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +132 -29
  40. package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
  41. package/es/components/form-render/index.d.ts +117 -20
  42. package/es/components/form-render/src/FormRender.vue.d.ts +117 -20
  43. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  44. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +117 -20
  45. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
  46. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  47. package/es/components/form-render/src/components/renderer/searchCascade.d.ts +1 -1
  48. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  49. package/es/components/form-render/src/components/renderer/select.d.ts +12 -0
  50. package/es/components/form-render/src/components/renderer/select.js +1 -1
  51. package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +2 -5
  52. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  53. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +173 -4
  54. package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
  55. package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +2 -2
  56. package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -1
  57. package/es/components/form-render/src/hooks/useFormContext.d.ts +15 -2
  58. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  59. package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +6 -6
  60. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  61. package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
  62. package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -1
  63. package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
  64. package/es/components/form-render/src/types/index.d.ts +6 -3
  65. package/es/components/form-render/style/index.css +1 -1
  66. package/es/components/iho-table/index.d.ts +26 -0
  67. package/es/components/iho-table/index.js +1 -1
  68. package/es/components/iho-table/src/IhoTable.vue.d.ts +26 -0
  69. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +3 -1
  70. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +297 -3
  71. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
  72. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  73. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
  74. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  75. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -1
  76. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  77. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
  78. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -1
  79. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
  80. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
  81. package/es/components/iho-table/src/types/index.d.ts +17 -4
  82. package/es/components/iho-table/src/utils/index.d.ts +1 -1
  83. package/es/components/iho-table/src/utils/index.js +1 -1
  84. package/es/components/iho-table/src/utils/separateMap.d.ts +5 -0
  85. package/es/components/iho-table/src/utils/separateMap.js +1 -0
  86. package/es/components/iho-table/style/index.css +1 -1
  87. package/es/components/index.css +1 -1
  88. package/es/components/info-header/index.d.ts +336 -55
  89. package/es/components/info-header/src/InfoHeader.vue.d.ts +336 -55
  90. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +86 -3
  91. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +86 -3
  92. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +203 -23
  93. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +117 -20
  94. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  95. package/es/components/search-cascader/index.d.ts +4 -0
  96. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +4 -0
  97. package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
  98. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  99. package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
  100. package/es/components/shortcut-setter/index.d.ts +118 -20
  101. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +118 -20
  102. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +3 -0
  103. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +2 -0
  104. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +1 -0
  105. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -1
  106. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +1 -0
  107. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -1
  108. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +2 -0
  109. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +3 -1
  110. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
  111. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +28 -0
  112. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  113. package/es/env.d.ts +25 -25
  114. package/es/shared/assets/img/failure.png.js +1 -1
  115. package/es/shared/assets/img/no-permission.png.js +1 -1
  116. package/es/shared/assets/img/nodata.png.js +1 -1
  117. package/es/shared/assets/img/notfound.png.js +1 -1
  118. package/es/shared/assets/img/qr.png.js +1 -1
  119. package/es/shared/assets/img/success.png.js +1 -1
  120. package/es/shared/assets/img/video.png.js +1 -1
  121. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  122. package/es/shared/assets/img/xb_big.png.js +1 -1
  123. package/es/shared/assets/img/xb_small.png.js +1 -1
  124. package/es/shared/components/CancelRadio/CancelRadio.d.ts +10 -0
  125. package/es/shared/components/CancelRadio/CancelRadio.js +1 -0
  126. package/es/shared/components/CancelRadio/index.d.ts +2 -0
  127. package/es/shared/components/CancelRadio/index.js +1 -0
  128. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  129. package/es/shared/package.json.js +1 -1
  130. package/es/shared/utils/business.d.ts +3 -1
  131. package/es/shared/utils/business.js +1 -1
  132. package/es/shared/utils/fabricjs/index.d.ts +6823 -0
  133. package/es/shared/utils/index.js +1 -1
  134. package/es/shared/utils/tapable/index.d.ts +139 -0
  135. 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?: any): import("../../../es/shared/types").AnyObject[];
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?: any): import("../../../es/shared/types").AnyObject[];
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").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
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?: any): import("../../../es/shared/types").AnyObject[];
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?: any): import("../../../es/shared/types").AnyObject[];
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, value: unknown) => void;
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
- outBordered?: boolean | undefined;
2103
- }) => Record<string, import("@formily/json-schema").Stringify<{
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?: any): import("../../../es/shared/types").AnyObject[];
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?: any): import("../../../../es/shared/types").AnyObject[];
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?: any): import("../../../../es/shared/types").AnyObject[];
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: Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
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?: any): import("../../../../es/shared/types").AnyObject[];
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?: any): import("../../../../es/shared/types").AnyObject[];
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, value: unknown) => void;
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
- outBordered?: boolean | undefined;
2105
- }) => Record<string, import("@formily/json-schema").Stringify<{
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?: any): import("../../../../es/shared/types").AnyObject[];
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) => {
@@ -46,6 +46,7 @@ declare const _default: 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;
@@ -1 +1 @@
1
- import{defineComponent as e,computed as t,openBlock as a,createElementBlock as l,createVNode as r,unref as u,isRef as o,createBlock as s,createCommentVNode as p}from"vue";import d from"../../../../../date-picker/index.js";import{NSelect as n}from"naive-ui";import{WidgetTypeEnums as i,WidgetOptionEnums as m,WidgetValEnums as v}from"../../../types/enums.js";import{WidgetDateOptionEnums as f}from"../../render-widget/helpers/enums.js";import{widgetDateValOptions as y}from"../../render-widget/helpers/dateExtraMap.js";import{setDateDisabled as c,setTimeDisabled as b}from"../../render-widget/helpers/dateDisabled.js";const g={style:{display:"flex"}};var w=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:w}){const C=e,M=t({set(e){w("update:modelValue",e)},get:()=>C.modelValue}),V=t({set(e){w("update:presetVal",e)},get:()=>C.presetVal}),j=t((()=>T.value.toLowerCase()||i.DATE.toLowerCase())),D=t((()=>{let e="";switch(T.value){case i.DATE:e="yyyy-MM-dd";break;case i.DATE_TIME:e="yyyy-MM-dd HH:mm:ss"}return e})),T=t((()=>C.paramCfg._rawData.type)),h=t((()=>{var e,t;return null==(t=null==(e=C.paramCfg)?void 0:e._rawData)?void 0:t.optionType})),_=t((()=>{var e;const t=h.value||m.ALL;if(T.value&&t){const a=`${T.value}_${t}`,l=f[a];let r=(null!=(e=y[l])?e:[]).map((e=>({label:e.title,value:e.con})));return r.unshift({label:"自定义输入",value:v.CUSTOM}),r}return[]}));function x(e){return c(e,h.value)}function A(e){return b(e,h.value)}return(e,t)=>(a(),l("div",g,[r(u(n),{style:{width:"120px"},class:"form-item",to:"body",value:u(V),"onUpdate:value":t[0]||(t[0]=e=>o(V)?V.value=e:null),options:u(_)},null,8,["value","options"]),u(V)===u(v).CUSTOM?(a(),s(u(d),{key:0,class:"form-item",type:u(j),clearable:"",to:"body","is-date-disabled":x,"is-time-disabled":A,valueFormat:u(D),"formatted-value":u(M),"onUpdate:formatted-value":t[1]||(t[1]=e=>o(M)?M.value=e:null)},null,8,["type","valueFormat","formatted-value"])):p("v-if",!0)]))}});export{w as default};
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};
@@ -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) => {
@@ -1 +1 @@
1
- import{defineComponent as e,ref as a,computed as l,watch as t,openBlock as u,createElementBlock as r,createVNode as i,unref as d,isRef as o,withCtx as s,toDisplayString as v,createCommentVNode as n}from"vue";import{NSelect as m,NPopover as p}from"naive-ui";import f from"../../../../../date-picker/index.js";import c from"moment";import{isString as y}from"lodash-es";import{WidgetOptionEnums as b,WidgetTypeEnums as g,WidgetValEnums as T}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 M,isStartDateRangeDisabled as E,isTimeStartRangeDisabled as _,isEndDateRangeDisabled as w,isTimeEndRangeDisabled as A}from"../../render-widget/helpers/dateDisabled.js";const V={style:{display:"flex"}},Y={key:0,style:{display:"flex"}},k={key:0},x={key:0};var C=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:C}){const U=e,j=a(),F=a(),O=l((()=>{let e="";switch(H.value){case g.DATE:e="yyyy-MM-dd";break;case g.DATE_TIME:e="yyyy-MM-dd HH:mm:ss"}return e})),S=l((()=>{let e="";switch(H.value){case g.DATE:e="YYYY-MM-DD";break;case g.DATE_TIME:e="YYYY-MM-DD HH:mm:ss"}return e})),H=l((()=>U.paramCfg._rawData.type)),I=l((()=>{var e,a;return null==(a=null==(e=U.paramCfg)?void 0:e._rawData)?void 0:a.optionType})),L=l((()=>I.value===b.PAST_TIME)),$=l((()=>I.value===b.FUTURE_TIME)),R=l((()=>H.value===g.DATE?"初始日期":"初始时间")),N=l((()=>H.value===g.DATE?"截止日期":"截止时间")),G=l((()=>$.value?M.curTime:"00:00:00")),P=l((()=>L.value?M.curTime:"23:59:59")),q=l((()=>j.value?c(j.value).format(S.value):null)),z=l((()=>F.value?c(F.value).format(S.value):null)),B=l((()=>H.value.toLowerCase()||g.DATE.toLowerCase())),J=l((()=>{var e;const a=I.value||b.ALL;if(H.value&&a){const l=`${H.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:T.CUSTOM}),u}return[]})),K=l({set(e){C("update:presetVal",e)},get:()=>U.presetVal});function Q(e,a){var l,t;switch(a){case"start":j.value=e;break;case"end":F.value=e}const u=q.value||z.value?`${null!=(l=q.value)?l:""} ~ ${null!=(t=z.value)?t:""}`:"";C("update:modelValue",u)}function W(e){return E(e,I.value,F.value)}function X(e){return _(e,I.value,F.value)}function Z(e){return w(e,I.value,j.value)}function ee(e){return A(e,I.value,j.value)}return t((()=>U.modelValue),(e=>{if(e&&y(e)&&e.includes("~")){const[a,l]=e.split("~");return a.trim()&&(j.value=c(a.trim()).valueOf()),void(l.trim()&&(F.value=c(l.trim()).valueOf()))}j.value=F.value=null}),{immediate:!0}),(e,a)=>(u(),r("div",V,[i(d(m),{style:{width:"120px"},class:"form-item",to:"body",value:d(K),"onUpdate:value":a[0]||(a[0]=e=>o(K)?K.value=e:null),options:d(J)},null,8,["value","options"]),d(K)===d(T).CUSTOM?(u(),r("div",Y,[i(d(p),{trigger:"hover",disabled:!d(q)},{trigger:s((()=>[i(d(f),{type:d(B),"default-time":d(G),clearable:"",to:"body",valueFormat:d(O),placeholder:d(R),value:j.value,"is-date-disabled":W,"is-time-disabled":X,"onUpdate:value":a[1]||(a[1]=e=>Q(e,"start"))},null,8,["type","default-time","valueFormat","placeholder","value"])])),default:s((()=>[d(q)?(u(),r("span",k,v(d(q)),1)):n("v-if",!0)])),_:1},8,["disabled"]),i(d(p),{trigger:"hover",disabled:!d(z)},{trigger:s((()=>[i(d(f),{style:{"margin-left":"5px"},type:d(B),"default-time":d(P),clearable:"",to:"body",valueFormat:d(O),placeholder:d(N),value:F.value,"is-date-disabled":Z,"is-time-disabled":ee,"onUpdate:value":a[2]||(a[2]=e=>Q(e,"end"))},null,8,["type","default-time","valueFormat","placeholder","value"])])),default:s((()=>[d(z)?(u(),r("span",x,v(d(z)),1)):n("v-if",!0)])),_:1},8,["disabled"])])):n("v-if",!0)]))}});export{C as default};
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: (displayCategory: string) => unknown;
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) => {