cnhis-design-vue 3.4.0-beta.9 → 3.4.0-release.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/_virtual/_virtual_i18n-methods.js +5 -1
- package/es/components/audio-sdk/index.d.ts +4 -4
- package/es/components/audio-sdk/src/Index.vue.d.ts +4 -4
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +4 -4
- package/es/components/audio-sdk/src/components/recording.vue.d.ts +4 -4
- package/es/components/base-search/index.d.ts +34 -0
- package/es/components/base-search/src/index.vue.d.ts +34 -0
- package/es/components/base-search/src/index.vue2.js +9 -1
- package/es/components/button-print/index.d.ts +32 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +32 -0
- package/es/components/button-print/src/ButtonPrint.vue2.js +4 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +4 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +77 -50
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +11 -0
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +35 -0
- package/es/components/button-print/src/utils/print.d.ts +2 -1
- package/es/components/button-print/src/utils/print.js +13 -8
- package/es/components/callback/src/components/render/popupMaps.d.ts +110 -222
- package/es/components/classification/index.d.ts +123 -0
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +123 -0
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +123 -0
- package/es/components/classification/src/index.vue.d.ts +123 -0
- package/es/components/classification/src/index.vue2.js +7 -0
- package/es/components/date-picker/index.d.ts +41 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +41 -0
- package/es/components/date-picker/src/DatePicker.vue2.js +34 -4
- package/es/components/expand-field/index.d.ts +31 -0
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +31 -0
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +31 -0
- package/es/components/expand-field/src/components/form.vue.d.ts +31 -0
- package/es/components/expand-field/src/index.vue.d.ts +31 -0
- package/es/components/fabric-chart/index.d.ts +3 -3
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +3 -3
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -0
- package/es/components/fabric-chart/src/components/PopupMenu.d.ts +4 -4
- package/es/components/fabric-chart/src/components/PopupMenu.js +57 -39
- package/es/components/fabric-chart/src/constants/index.d.ts +19 -5
- package/es/components/fabric-chart/src/constants/index.js +26 -11
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.d.ts +4 -3
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +119 -193
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +69 -117
- package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +18 -12
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +61 -33
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +86 -120
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -0
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +65 -113
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +4 -3
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +63 -37
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +31 -14
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +4 -3
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +21 -14
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +152 -208
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +4 -3
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +8 -9
- package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -0
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +4 -3
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +138 -229
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +16 -14
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +195 -273
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -0
- package/es/components/fabric-chart/src/interface.d.ts +15 -1
- package/es/components/fabric-chart/src/utils/eventBus.d.ts +2 -0
- package/es/components/fabric-chart/src/utils/eventBus.js +5 -0
- package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
- package/es/components/fabric-chart/src/utils/index.js +2 -10
- package/es/components/fabric-chart/style/index.css +1 -1
- package/es/components/field-editor/index.d.ts +1 -0
- package/es/components/field-editor/src/FieldEditor.vue.d.ts +1 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +83 -1
- package/es/components/field-set/src/FieldColor.vue2.js +2 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue2.js +2 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +2 -2
- package/es/components/field-set/src/FieldSet.vue2.js +4 -1
- package/es/components/field-set/src/components/condition.vue.d.ts +41 -0
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +82 -0
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +41 -0
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- package/es/components/field-set/src/components/table-row.vue2.js +1 -0
- package/es/components/form-config/index.d.ts +24 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +24 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +19 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue2.js +48 -24
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +1 -0
- package/es/components/form-config/src/constants/index.d.ts +2 -0
- package/es/components/form-config/src/constants/index.js +2 -0
- package/es/components/form-config/src/hooks/useConfigurationField.js +20 -3
- package/es/components/form-render/index.d.ts +1 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +1 -0
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +1 -1
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +1 -0
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +3 -2
- package/es/components/form-render/src/components/renderer/textarea.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/textarea.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -0
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/hooks/useNewLowCodeReactions.js +8 -0
- package/es/components/form-render/src/types/index.d.ts +1 -0
- package/es/components/form-render/src/utils/index.d.ts +1 -1
- package/es/components/form-render/src/utils/index.js +5 -2
- package/es/components/iho-chat/index.d.ts +2785 -302
- package/es/components/iho-chat/src/Index.vue.d.ts +2785 -302
- package/es/components/iho-chat/src/Index.vue2.js +5 -3
- package/es/components/iho-chat/src/api/index.d.ts +89 -16
- package/es/components/iho-chat/src/api/index.js +8 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +104 -22
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +191 -29
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +191 -29
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +3 -0
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +796 -101
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +611 -51
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +27 -28
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +217 -14
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +175 -10
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +2 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +197 -29
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +48 -11
- package/es/components/iho-chat/src/components/ContextMenu.js +7 -10
- package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +88 -7
- package/es/components/iho-chat/src/components/MessageMarkdown.vue.d.ts +158 -0
- package/es/components/iho-chat/src/components/MessageMarkdown.vue.js +6 -0
- package/es/components/iho-chat/src/components/MessageMarkdown.vue2.js +51 -0
- package/es/components/iho-chat/src/components/MessageMergeForward.vue.d.ts +176 -14
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +192 -29
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +2 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +91 -8
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +134 -11
- package/es/components/iho-chat/src/components/Video.vue.d.ts +89 -8
- package/es/components/iho-chat/src/components/userItemRender.js +2 -1
- package/es/components/iho-chat/src/constants/index.d.ts +2 -1
- package/es/components/iho-chat/src/constants/index.js +1 -0
- package/es/components/iho-chat/src/hooks/useData.d.ts +374 -27
- package/es/components/iho-chat/src/hooks/useData.js +31 -10
- package/es/components/iho-chat/src/hooks/useStreamOutput.d.ts +6 -0
- package/es/components/iho-chat/src/hooks/useStreamOutput.js +100 -0
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +89 -7
- package/es/components/iho-chat/src/hooks/useWebSocket.js +14 -4
- package/es/components/iho-chat/src/types/index.d.ts +39 -7
- package/es/components/iho-chat/src/utils/index.d.ts +2 -1
- package/es/components/iho-chat/src/utils/sseClient.d.ts +22 -0
- package/es/components/iho-chat/src/utils/sseClient.js +97 -0
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/index.d.ts +109 -222
- package/es/components/iho-table/src/IhoTable.vue.d.ts +109 -222
- package/es/components/iho-table/src/IhoTable.vue2.js +23 -14
- package/es/components/iho-table/src/constants/index.d.ts +3 -3
- package/es/components/iho-table/src/constants/index.js +0 -21
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +39 -60
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +1 -1
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +43 -4
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue2.js +22 -8
- package/es/components/iho-table/src/plugins/highLightSetPlugin.js +7 -2
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +41 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +25 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.d.ts +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.d.ts +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.js +8 -2
- package/es/components/iho-table/src/types/index.d.ts +3 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +46 -2
- package/es/components/info-header/src/InfoHeader.vue.d.ts +46 -2
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +41 -2
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +2 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +41 -2
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +20 -1
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +20 -1
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue2.js +9 -6
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +42 -2
- package/es/components/info-header/src/components/infoDescription/index.vue2.js +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +1 -0
- package/es/components/scale-view/index.d.ts +1 -1
- package/es/components/scale-view/src/ScaleView.vue.d.ts +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +9 -3
- package/es/components/scale-view/src/hooks/use-event.js +56 -22
- package/es/components/select-person/index.d.ts +31 -0
- package/es/components/select-person/src/SelectPerson.vue.d.ts +14 -0
- package/es/components/select-person/src/SelectPerson.vue2.js +38 -9
- package/es/components/select-person/src/index.vue.d.ts +31 -0
- package/es/components/select-person/src/index.vue2.js +4 -0
- package/es/components/select-person/src/utils/index.js +11 -9
- package/es/components/shortcut-provider/src/hooks/useShortcuts.d.ts +3 -0
- package/es/components/shortcut-provider/src/hooks/useShortcuts.js +9 -3
- package/es/components/shortcut-setter/index.d.ts +2 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +2 -0
- package/es/components/table-export-field/index.d.ts +6 -0
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -0
- package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +2 -0
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +49 -18
- package/es/components/table-export-field/src/index.vue.d.ts +6 -0
- package/es/components/table-export-field/src/types/index.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +41 -0
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +41 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +41 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +41 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +82 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +41 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +41 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +82 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +82 -0
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +41 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +43 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +10 -2
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +41 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +43 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +10 -2
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +168 -0
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +9 -9
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +168 -0
- package/es/components/table-filter/src/constants/index.d.ts +1 -0
- package/es/components/table-filter/src/constants/index.js +4 -1
- package/es/shared/components/CancelRadio/CancelRadio.js +3 -1
- package/es/shared/components/Ellipsis/Ellipsis.d.ts +12 -0
- package/es/shared/components/Ellipsis/Ellipsis.js +86 -0
- package/es/shared/components/Ellipsis/index.d.ts +2 -0
- package/es/shared/components/Ellipsis/index.js +2 -0
- package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +15 -0
- package/es/shared/components/InputNumberSlash/InputNumberSlash.js +24 -10
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +3 -2
- package/es/shared/utils/business.js +16 -0
- package/es/shared/utils/ho-edge.d.ts +12 -0
- package/es/shared/utils/ho-edge.js +58 -0
- package/package.json +3 -3
|
@@ -291,9 +291,22 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
291
291
|
type: StringConstructor;
|
|
292
292
|
default: string;
|
|
293
293
|
};
|
|
294
|
+
updateValueOnClose: {
|
|
295
|
+
type: BooleanConstructor;
|
|
296
|
+
default: boolean;
|
|
297
|
+
};
|
|
294
298
|
isDateDisabled: {
|
|
295
299
|
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
|
296
300
|
};
|
|
301
|
+
propKey: {
|
|
302
|
+
type: StringConstructor;
|
|
303
|
+
};
|
|
304
|
+
shortcutListenerConfig: {
|
|
305
|
+
type: PropType<{
|
|
306
|
+
enable: boolean;
|
|
307
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
308
|
+
}>;
|
|
309
|
+
};
|
|
297
310
|
}>, {
|
|
298
311
|
attrs: {
|
|
299
312
|
[x: string]: unknown;
|
|
@@ -326,9 +339,22 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
326
339
|
type: StringConstructor;
|
|
327
340
|
default: string;
|
|
328
341
|
};
|
|
342
|
+
updateValueOnClose: {
|
|
343
|
+
type: BooleanConstructor;
|
|
344
|
+
default: boolean;
|
|
345
|
+
};
|
|
329
346
|
isDateDisabled: {
|
|
330
347
|
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
|
331
348
|
};
|
|
349
|
+
propKey: {
|
|
350
|
+
type: StringConstructor;
|
|
351
|
+
};
|
|
352
|
+
shortcutListenerConfig: {
|
|
353
|
+
type: PropType<{
|
|
354
|
+
enable: boolean;
|
|
355
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
356
|
+
}>;
|
|
357
|
+
};
|
|
332
358
|
}>> & Readonly<{
|
|
333
359
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
334
360
|
}> & {}>;
|
|
@@ -345,6 +371,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
345
371
|
focus: () => any;
|
|
346
372
|
blur: () => any;
|
|
347
373
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
374
|
+
handleShortcutClick: (event: MouseEvent) => void;
|
|
348
375
|
onUpdateShow: (show: boolean) => Promise<void>;
|
|
349
376
|
watchers: import("../../../../../shared/types").AnyFn[];
|
|
350
377
|
stopWatcher: () => void;
|
|
@@ -381,9 +408,22 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
381
408
|
type: StringConstructor;
|
|
382
409
|
default: string;
|
|
383
410
|
};
|
|
411
|
+
updateValueOnClose: {
|
|
412
|
+
type: BooleanConstructor;
|
|
413
|
+
default: boolean;
|
|
414
|
+
};
|
|
384
415
|
isDateDisabled: {
|
|
385
416
|
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
|
386
417
|
};
|
|
418
|
+
propKey: {
|
|
419
|
+
type: StringConstructor;
|
|
420
|
+
};
|
|
421
|
+
shortcutListenerConfig: {
|
|
422
|
+
type: PropType<{
|
|
423
|
+
enable: boolean;
|
|
424
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
425
|
+
}>;
|
|
426
|
+
};
|
|
387
427
|
}>> & Readonly<{
|
|
388
428
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
389
429
|
}>, {
|
|
@@ -391,6 +431,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
391
431
|
updateUnchangedValue: boolean;
|
|
392
432
|
to: string | false | HTMLElement;
|
|
393
433
|
holidays: Date[];
|
|
434
|
+
updateValueOnClose: boolean;
|
|
394
435
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
395
436
|
readonly NSelect: any;
|
|
396
437
|
DateOption: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -1131,9 +1172,22 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1131
1172
|
type: StringConstructor;
|
|
1132
1173
|
default: string;
|
|
1133
1174
|
};
|
|
1175
|
+
updateValueOnClose: {
|
|
1176
|
+
type: BooleanConstructor;
|
|
1177
|
+
default: boolean;
|
|
1178
|
+
};
|
|
1134
1179
|
isDateDisabled: {
|
|
1135
1180
|
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1136
1181
|
};
|
|
1182
|
+
propKey: {
|
|
1183
|
+
type: StringConstructor;
|
|
1184
|
+
};
|
|
1185
|
+
shortcutListenerConfig: {
|
|
1186
|
+
type: PropType<{
|
|
1187
|
+
enable: boolean;
|
|
1188
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1189
|
+
}>;
|
|
1190
|
+
};
|
|
1137
1191
|
}>, {
|
|
1138
1192
|
attrs: {
|
|
1139
1193
|
[x: string]: unknown;
|
|
@@ -1166,9 +1220,22 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1166
1220
|
type: StringConstructor;
|
|
1167
1221
|
default: string;
|
|
1168
1222
|
};
|
|
1223
|
+
updateValueOnClose: {
|
|
1224
|
+
type: BooleanConstructor;
|
|
1225
|
+
default: boolean;
|
|
1226
|
+
};
|
|
1169
1227
|
isDateDisabled: {
|
|
1170
1228
|
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1171
1229
|
};
|
|
1230
|
+
propKey: {
|
|
1231
|
+
type: StringConstructor;
|
|
1232
|
+
};
|
|
1233
|
+
shortcutListenerConfig: {
|
|
1234
|
+
type: PropType<{
|
|
1235
|
+
enable: boolean;
|
|
1236
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1237
|
+
}>;
|
|
1238
|
+
};
|
|
1172
1239
|
}>> & Readonly<{
|
|
1173
1240
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
1174
1241
|
}> & {}>;
|
|
@@ -1185,6 +1252,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1185
1252
|
focus: () => any;
|
|
1186
1253
|
blur: () => any;
|
|
1187
1254
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
1255
|
+
handleShortcutClick: (event: MouseEvent) => void;
|
|
1188
1256
|
onUpdateShow: (show: boolean) => Promise<void>;
|
|
1189
1257
|
watchers: import("../../../../../shared/types").AnyFn[];
|
|
1190
1258
|
stopWatcher: () => void;
|
|
@@ -1221,9 +1289,22 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1221
1289
|
type: StringConstructor;
|
|
1222
1290
|
default: string;
|
|
1223
1291
|
};
|
|
1292
|
+
updateValueOnClose: {
|
|
1293
|
+
type: BooleanConstructor;
|
|
1294
|
+
default: boolean;
|
|
1295
|
+
};
|
|
1224
1296
|
isDateDisabled: {
|
|
1225
1297
|
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1226
1298
|
};
|
|
1299
|
+
propKey: {
|
|
1300
|
+
type: StringConstructor;
|
|
1301
|
+
};
|
|
1302
|
+
shortcutListenerConfig: {
|
|
1303
|
+
type: PropType<{
|
|
1304
|
+
enable: boolean;
|
|
1305
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1306
|
+
}>;
|
|
1307
|
+
};
|
|
1227
1308
|
}>> & Readonly<{
|
|
1228
1309
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
1229
1310
|
}>, {
|
|
@@ -1231,6 +1312,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1231
1312
|
updateUnchangedValue: boolean;
|
|
1232
1313
|
to: string | false | HTMLElement;
|
|
1233
1314
|
holidays: Date[];
|
|
1315
|
+
updateValueOnClose: boolean;
|
|
1234
1316
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
1235
1317
|
DateOption: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
1236
1318
|
filterType: {
|
package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts
CHANGED
|
@@ -111,9 +111,22 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
111
111
|
type: StringConstructor;
|
|
112
112
|
default: string;
|
|
113
113
|
};
|
|
114
|
+
updateValueOnClose: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
114
118
|
isDateDisabled: {
|
|
115
119
|
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
|
116
120
|
};
|
|
121
|
+
propKey: {
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
};
|
|
124
|
+
shortcutListenerConfig: {
|
|
125
|
+
type: PropType<{
|
|
126
|
+
enable: boolean;
|
|
127
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
128
|
+
}>;
|
|
129
|
+
};
|
|
117
130
|
}>, {
|
|
118
131
|
attrs: {
|
|
119
132
|
[x: string]: unknown;
|
|
@@ -146,9 +159,22 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
146
159
|
type: StringConstructor;
|
|
147
160
|
default: string;
|
|
148
161
|
};
|
|
162
|
+
updateValueOnClose: {
|
|
163
|
+
type: BooleanConstructor;
|
|
164
|
+
default: boolean;
|
|
165
|
+
};
|
|
149
166
|
isDateDisabled: {
|
|
150
167
|
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
|
151
168
|
};
|
|
169
|
+
propKey: {
|
|
170
|
+
type: StringConstructor;
|
|
171
|
+
};
|
|
172
|
+
shortcutListenerConfig: {
|
|
173
|
+
type: PropType<{
|
|
174
|
+
enable: boolean;
|
|
175
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
176
|
+
}>;
|
|
177
|
+
};
|
|
152
178
|
}>> & Readonly<{
|
|
153
179
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
154
180
|
}> & {}>;
|
|
@@ -165,6 +191,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
165
191
|
focus: () => any;
|
|
166
192
|
blur: () => any;
|
|
167
193
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
194
|
+
handleShortcutClick: (event: MouseEvent) => void;
|
|
168
195
|
onUpdateShow: (show: boolean) => Promise<void>;
|
|
169
196
|
watchers: import("../../../../../../shared/types").AnyFn[];
|
|
170
197
|
stopWatcher: () => void;
|
|
@@ -201,9 +228,22 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
201
228
|
type: StringConstructor;
|
|
202
229
|
default: string;
|
|
203
230
|
};
|
|
231
|
+
updateValueOnClose: {
|
|
232
|
+
type: BooleanConstructor;
|
|
233
|
+
default: boolean;
|
|
234
|
+
};
|
|
204
235
|
isDateDisabled: {
|
|
205
236
|
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
|
206
237
|
};
|
|
238
|
+
propKey: {
|
|
239
|
+
type: StringConstructor;
|
|
240
|
+
};
|
|
241
|
+
shortcutListenerConfig: {
|
|
242
|
+
type: PropType<{
|
|
243
|
+
enable: boolean;
|
|
244
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
245
|
+
}>;
|
|
246
|
+
};
|
|
207
247
|
}>> & Readonly<{
|
|
208
248
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
209
249
|
}>, {
|
|
@@ -211,6 +251,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
211
251
|
updateUnchangedValue: boolean;
|
|
212
252
|
to: string | false | HTMLElement;
|
|
213
253
|
holidays: Date[];
|
|
254
|
+
updateValueOnClose: boolean;
|
|
214
255
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
215
256
|
DateQuickBtn: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
216
257
|
componentCfg: {
|
|
@@ -56,8 +56,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
56
56
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
57
57
|
valueCp: import("vue").Ref<any, any>;
|
|
58
58
|
rangeShortcuts: import("vue").Ref<any, any>;
|
|
59
|
+
shortcutListenerConfig: AnyObject;
|
|
59
60
|
dateFormat: import("vue").ComputedRef<string>;
|
|
60
61
|
optionSetting: import("vue").ComputedRef<any>;
|
|
62
|
+
compName: import("vue").ComputedRef<any>;
|
|
61
63
|
handleChange: (val: any) => void;
|
|
62
64
|
isDateDisabled: (ts: number) => boolean;
|
|
63
65
|
timeDisabled: (ts: number) => {
|
|
@@ -94,9 +96,22 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
94
96
|
type: StringConstructor;
|
|
95
97
|
default: string;
|
|
96
98
|
};
|
|
99
|
+
updateValueOnClose: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
97
103
|
isDateDisabled: {
|
|
98
104
|
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
|
99
105
|
};
|
|
106
|
+
propKey: {
|
|
107
|
+
type: StringConstructor;
|
|
108
|
+
};
|
|
109
|
+
shortcutListenerConfig: {
|
|
110
|
+
type: PropType<{
|
|
111
|
+
enable: boolean;
|
|
112
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
113
|
+
}>;
|
|
114
|
+
};
|
|
100
115
|
}>, {
|
|
101
116
|
attrs: {
|
|
102
117
|
[x: string]: unknown;
|
|
@@ -129,9 +144,22 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
129
144
|
type: StringConstructor;
|
|
130
145
|
default: string;
|
|
131
146
|
};
|
|
147
|
+
updateValueOnClose: {
|
|
148
|
+
type: BooleanConstructor;
|
|
149
|
+
default: boolean;
|
|
150
|
+
};
|
|
132
151
|
isDateDisabled: {
|
|
133
152
|
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
|
134
153
|
};
|
|
154
|
+
propKey: {
|
|
155
|
+
type: StringConstructor;
|
|
156
|
+
};
|
|
157
|
+
shortcutListenerConfig: {
|
|
158
|
+
type: PropType<{
|
|
159
|
+
enable: boolean;
|
|
160
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
161
|
+
}>;
|
|
162
|
+
};
|
|
135
163
|
}>> & Readonly<{
|
|
136
164
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
137
165
|
}> & {}>;
|
|
@@ -148,6 +176,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
148
176
|
focus: () => any;
|
|
149
177
|
blur: () => any;
|
|
150
178
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
179
|
+
handleShortcutClick: (event: MouseEvent) => void;
|
|
151
180
|
onUpdateShow: (show: boolean) => Promise<void>;
|
|
152
181
|
watchers: import("../../../../../../shared/types").AnyFn[];
|
|
153
182
|
stopWatcher: () => void;
|
|
@@ -184,9 +213,22 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
184
213
|
type: StringConstructor;
|
|
185
214
|
default: string;
|
|
186
215
|
};
|
|
216
|
+
updateValueOnClose: {
|
|
217
|
+
type: BooleanConstructor;
|
|
218
|
+
default: boolean;
|
|
219
|
+
};
|
|
187
220
|
isDateDisabled: {
|
|
188
221
|
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
|
189
222
|
};
|
|
223
|
+
propKey: {
|
|
224
|
+
type: StringConstructor;
|
|
225
|
+
};
|
|
226
|
+
shortcutListenerConfig: {
|
|
227
|
+
type: PropType<{
|
|
228
|
+
enable: boolean;
|
|
229
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
230
|
+
}>;
|
|
231
|
+
};
|
|
190
232
|
}>> & Readonly<{
|
|
191
233
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
192
234
|
}>, {
|
|
@@ -194,6 +236,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
194
236
|
updateUnchangedValue: boolean;
|
|
195
237
|
to: string | false | HTMLElement;
|
|
196
238
|
holidays: Date[];
|
|
239
|
+
updateValueOnClose: boolean;
|
|
197
240
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
198
241
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
199
242
|
componentCfg: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i18n } from '../../../../../../_virtual/_virtual_i18n-methods.js';
|
|
2
|
-
import { defineComponent, ref, computed, watch, openBlock, createBlock, unref } from 'vue';
|
|
2
|
+
import { defineComponent, ref, inject, computed, watch, openBlock, createBlock, unref } from 'vue';
|
|
3
3
|
import DatePicker from '../../../../../date-picker/index.js';
|
|
4
4
|
import moment from 'moment';
|
|
5
5
|
import { isString } from 'lodash-es';
|
|
@@ -7,6 +7,7 @@ import { WidgetOptionEnums } from '../../../types/enums.js';
|
|
|
7
7
|
import { DateExtraOptions, DateExtraMap } from '../helpers/dateExtraMap.js';
|
|
8
8
|
import { setDateDisabled, setTimeDisabled } from '../helpers/dateDisabled.js';
|
|
9
9
|
import { presetValToTimestamp } from '../helpers/presetValToTimestamp.js';
|
|
10
|
+
import { InjectionShortcutListenerConfig } from '../../../constants/index.js';
|
|
10
11
|
import { parseDateShortcuts } from '../../../tool/date.js';
|
|
11
12
|
|
|
12
13
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -44,6 +45,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
44
45
|
const emit = __emit;
|
|
45
46
|
const valueCp = ref();
|
|
46
47
|
const rangeShortcuts = ref();
|
|
48
|
+
const shortcutListenerConfig = inject(InjectionShortcutListenerConfig);
|
|
47
49
|
const dateFormat = computed(() => {
|
|
48
50
|
let formateStr = "";
|
|
49
51
|
switch (props.type) {
|
|
@@ -60,6 +62,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
60
62
|
var _a;
|
|
61
63
|
return (_a = props.componentCfg) == null ? void 0 : _a.widgetCfg.optionSetting;
|
|
62
64
|
});
|
|
65
|
+
const compName = computed(() => {
|
|
66
|
+
var _a;
|
|
67
|
+
return ((_a = props.componentCfg) == null ? void 0 : _a.columnName) || "";
|
|
68
|
+
});
|
|
63
69
|
watch(() => props.value, (val) => {
|
|
64
70
|
if (val && isString(val)) {
|
|
65
71
|
valueCp.value = moment(val).valueOf();
|
|
@@ -113,6 +119,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
113
119
|
return (_ctx, _cache) => {
|
|
114
120
|
return openBlock(), createBlock(unref(DatePicker), {
|
|
115
121
|
to: "body",
|
|
122
|
+
propKey: compName.value,
|
|
116
123
|
type: __props.type,
|
|
117
124
|
clearable: __props.clearable,
|
|
118
125
|
valueFormat: __props.valueFormat,
|
|
@@ -122,8 +129,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
122
129
|
"is-date-disabled": isDateDisabled,
|
|
123
130
|
"is-time-disabled": timeDisabled,
|
|
124
131
|
shortcuts: rangeShortcuts.value,
|
|
132
|
+
shortcutListenerConfig: unref(shortcutListenerConfig),
|
|
125
133
|
"onUpdate:value": handleChange
|
|
126
|
-
}, null, 8, ["type", "clearable", "valueFormat", "placeholder", "value", "shortcuts"]);
|
|
134
|
+
}, null, 8, ["propKey", "type", "clearable", "valueFormat", "placeholder", "value", "shortcuts", "shortcutListenerConfig"]);
|
|
127
135
|
};
|
|
128
136
|
}
|
|
129
137
|
});
|
package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts
CHANGED
|
@@ -129,9 +129,22 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
129
129
|
type: StringConstructor;
|
|
130
130
|
default: string;
|
|
131
131
|
};
|
|
132
|
+
updateValueOnClose: {
|
|
133
|
+
type: BooleanConstructor;
|
|
134
|
+
default: boolean;
|
|
135
|
+
};
|
|
132
136
|
isDateDisabled: {
|
|
133
137
|
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
|
134
138
|
};
|
|
139
|
+
propKey: {
|
|
140
|
+
type: StringConstructor;
|
|
141
|
+
};
|
|
142
|
+
shortcutListenerConfig: {
|
|
143
|
+
type: PropType<{
|
|
144
|
+
enable: boolean;
|
|
145
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
146
|
+
}>;
|
|
147
|
+
};
|
|
135
148
|
}>, {
|
|
136
149
|
attrs: {
|
|
137
150
|
[x: string]: unknown;
|
|
@@ -164,9 +177,22 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
164
177
|
type: StringConstructor;
|
|
165
178
|
default: string;
|
|
166
179
|
};
|
|
180
|
+
updateValueOnClose: {
|
|
181
|
+
type: BooleanConstructor;
|
|
182
|
+
default: boolean;
|
|
183
|
+
};
|
|
167
184
|
isDateDisabled: {
|
|
168
185
|
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
|
169
186
|
};
|
|
187
|
+
propKey: {
|
|
188
|
+
type: StringConstructor;
|
|
189
|
+
};
|
|
190
|
+
shortcutListenerConfig: {
|
|
191
|
+
type: PropType<{
|
|
192
|
+
enable: boolean;
|
|
193
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
194
|
+
}>;
|
|
195
|
+
};
|
|
170
196
|
}>> & Readonly<{
|
|
171
197
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
172
198
|
}> & {}>;
|
|
@@ -183,6 +209,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
183
209
|
focus: () => any;
|
|
184
210
|
blur: () => any;
|
|
185
211
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
212
|
+
handleShortcutClick: (event: MouseEvent) => void;
|
|
186
213
|
onUpdateShow: (show: boolean) => Promise<void>;
|
|
187
214
|
watchers: import("../../../../../../shared/types").AnyFn[];
|
|
188
215
|
stopWatcher: () => void;
|
|
@@ -219,9 +246,22 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
219
246
|
type: StringConstructor;
|
|
220
247
|
default: string;
|
|
221
248
|
};
|
|
249
|
+
updateValueOnClose: {
|
|
250
|
+
type: BooleanConstructor;
|
|
251
|
+
default: boolean;
|
|
252
|
+
};
|
|
222
253
|
isDateDisabled: {
|
|
223
254
|
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
|
224
255
|
};
|
|
256
|
+
propKey: {
|
|
257
|
+
type: StringConstructor;
|
|
258
|
+
};
|
|
259
|
+
shortcutListenerConfig: {
|
|
260
|
+
type: PropType<{
|
|
261
|
+
enable: boolean;
|
|
262
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
263
|
+
}>;
|
|
264
|
+
};
|
|
225
265
|
}>> & Readonly<{
|
|
226
266
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
227
267
|
}>, {
|
|
@@ -229,6 +269,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
229
269
|
updateUnchangedValue: boolean;
|
|
230
270
|
to: string | false | HTMLElement;
|
|
231
271
|
holidays: Date[];
|
|
272
|
+
updateValueOnClose: boolean;
|
|
232
273
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
233
274
|
DateQuickBtn: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
234
275
|
componentCfg: {
|
package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts
CHANGED
|
@@ -58,8 +58,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
58
58
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
59
59
|
valueCp: import("vue").Ref<any, any>;
|
|
60
60
|
rangeShortcuts: import("vue").Ref<any, any>;
|
|
61
|
+
shortcutListenerConfig: AnyObject;
|
|
61
62
|
dateFormat: import("vue").ComputedRef<string>;
|
|
62
63
|
optionSetting: import("vue").ComputedRef<any>;
|
|
64
|
+
compName: import("vue").ComputedRef<any>;
|
|
63
65
|
handleChange: (val: any) => void;
|
|
64
66
|
isDateDisabled: (ts: number) => boolean;
|
|
65
67
|
timeDisabled: (ts: number) => {
|
|
@@ -96,9 +98,22 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
96
98
|
type: StringConstructor;
|
|
97
99
|
default: string;
|
|
98
100
|
};
|
|
101
|
+
updateValueOnClose: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
99
105
|
isDateDisabled: {
|
|
100
106
|
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
|
101
107
|
};
|
|
108
|
+
propKey: {
|
|
109
|
+
type: StringConstructor;
|
|
110
|
+
};
|
|
111
|
+
shortcutListenerConfig: {
|
|
112
|
+
type: PropType<{
|
|
113
|
+
enable: boolean;
|
|
114
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
115
|
+
}>;
|
|
116
|
+
};
|
|
102
117
|
}>, {
|
|
103
118
|
attrs: {
|
|
104
119
|
[x: string]: unknown;
|
|
@@ -131,9 +146,22 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
131
146
|
type: StringConstructor;
|
|
132
147
|
default: string;
|
|
133
148
|
};
|
|
149
|
+
updateValueOnClose: {
|
|
150
|
+
type: BooleanConstructor;
|
|
151
|
+
default: boolean;
|
|
152
|
+
};
|
|
134
153
|
isDateDisabled: {
|
|
135
154
|
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
|
136
155
|
};
|
|
156
|
+
propKey: {
|
|
157
|
+
type: StringConstructor;
|
|
158
|
+
};
|
|
159
|
+
shortcutListenerConfig: {
|
|
160
|
+
type: PropType<{
|
|
161
|
+
enable: boolean;
|
|
162
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
163
|
+
}>;
|
|
164
|
+
};
|
|
137
165
|
}>> & Readonly<{
|
|
138
166
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
139
167
|
}> & {}>;
|
|
@@ -150,6 +178,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
150
178
|
focus: () => any;
|
|
151
179
|
blur: () => any;
|
|
152
180
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
181
|
+
handleShortcutClick: (event: MouseEvent) => void;
|
|
153
182
|
onUpdateShow: (show: boolean) => Promise<void>;
|
|
154
183
|
watchers: import("../../../../../../shared/types").AnyFn[];
|
|
155
184
|
stopWatcher: () => void;
|
|
@@ -186,9 +215,22 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
186
215
|
type: StringConstructor;
|
|
187
216
|
default: string;
|
|
188
217
|
};
|
|
218
|
+
updateValueOnClose: {
|
|
219
|
+
type: BooleanConstructor;
|
|
220
|
+
default: boolean;
|
|
221
|
+
};
|
|
189
222
|
isDateDisabled: {
|
|
190
223
|
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
|
191
224
|
};
|
|
225
|
+
propKey: {
|
|
226
|
+
type: StringConstructor;
|
|
227
|
+
};
|
|
228
|
+
shortcutListenerConfig: {
|
|
229
|
+
type: PropType<{
|
|
230
|
+
enable: boolean;
|
|
231
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
232
|
+
}>;
|
|
233
|
+
};
|
|
192
234
|
}>> & Readonly<{
|
|
193
235
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
194
236
|
}>, {
|
|
@@ -196,6 +238,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
196
238
|
updateUnchangedValue: boolean;
|
|
197
239
|
to: string | false | HTMLElement;
|
|
198
240
|
holidays: Date[];
|
|
241
|
+
updateValueOnClose: boolean;
|
|
199
242
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
200
243
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
201
244
|
type: {
|
package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i18n } from '../../../../../../_virtual/_virtual_i18n-methods.js';
|
|
2
|
-
import { defineComponent, ref, computed, watch, openBlock, createBlock, unref } from 'vue';
|
|
2
|
+
import { defineComponent, ref, inject, computed, watch, openBlock, createBlock, unref } from 'vue';
|
|
3
3
|
import DatePicker from '../../../../../date-picker/index.js';
|
|
4
4
|
import moment from 'moment';
|
|
5
5
|
import { isString } from 'lodash-es';
|
|
@@ -7,6 +7,7 @@ import { WidgetOptionEnums } from '../../../types/enums.js';
|
|
|
7
7
|
import { DateExtraOptions, DateExtraMap } from '../helpers/dateExtraMap.js';
|
|
8
8
|
import { formatDateRangeInfo } from '../helpers/presetValToTimestamp.js';
|
|
9
9
|
import { setDateDisabled, setTimeDisabled } from '../helpers/dateDisabled.js';
|
|
10
|
+
import { InjectionShortcutListenerConfig } from '../../../constants/index.js';
|
|
10
11
|
import { parseDateShortcuts } from '../../../tool/date.js';
|
|
11
12
|
|
|
12
13
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -45,6 +46,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
46
|
const emit = __emit;
|
|
46
47
|
const valueCp = ref();
|
|
47
48
|
const rangeShortcuts = ref();
|
|
49
|
+
const shortcutListenerConfig = inject(InjectionShortcutListenerConfig);
|
|
48
50
|
const dateFormat = computed(() => {
|
|
49
51
|
let formateStr = "";
|
|
50
52
|
switch (props.type) {
|
|
@@ -61,6 +63,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
61
63
|
var _a;
|
|
62
64
|
return (_a = props.componentCfg) == null ? void 0 : _a.widgetCfg.optionSetting;
|
|
63
65
|
});
|
|
66
|
+
const compName = computed(() => {
|
|
67
|
+
var _a;
|
|
68
|
+
return ((_a = props.componentCfg) == null ? void 0 : _a.columnName) || "";
|
|
69
|
+
});
|
|
64
70
|
watch(() => props.value, (val) => {
|
|
65
71
|
if (val && isString(val) && val.includes("~")) {
|
|
66
72
|
const [start, end] = val.split("~");
|
|
@@ -120,6 +126,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
120
126
|
return (_ctx, _cache) => {
|
|
121
127
|
return openBlock(), createBlock(unref(DatePicker), {
|
|
122
128
|
to: "body",
|
|
129
|
+
propKey: compName.value,
|
|
123
130
|
type: __props.type,
|
|
124
131
|
clearable: __props.clearable,
|
|
125
132
|
startPlaceholder: __props.startPlaceholder,
|
|
@@ -128,8 +135,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
128
135
|
"is-date-disabled": isDateDisabled,
|
|
129
136
|
"is-time-disabled": timeDisabled,
|
|
130
137
|
shortcuts: rangeShortcuts.value,
|
|
138
|
+
shortcutListenerConfig: unref(shortcutListenerConfig),
|
|
131
139
|
"onUpdate:value": handleChange
|
|
132
|
-
}, null, 8, ["type", "clearable", "startPlaceholder", "endPlaceholder", "value", "shortcuts"]);
|
|
140
|
+
}, null, 8, ["propKey", "type", "clearable", "startPlaceholder", "endPlaceholder", "value", "shortcuts", "shortcutListenerConfig"]);
|
|
133
141
|
};
|
|
134
142
|
}
|
|
135
143
|
});
|