cnhis-design-vue 3.4.0-release.3 → 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 +73 -48
- 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 +1 -1
- package/es/components/button-print/src/utils/print.js +4 -2
- package/es/components/callback/src/components/render/popupMaps.d.ts +38 -24
- package/es/components/classification/index.d.ts +84 -0
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +84 -0
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +84 -0
- package/es/components/classification/src/index.vue.d.ts +84 -0
- package/es/components/classification/src/index.vue2.js +7 -0
- package/es/components/date-picker/index.d.ts +28 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +28 -0
- package/es/components/date-picker/src/DatePicker.vue2.js +26 -1
- 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 +15 -11
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +39 -27
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +86 -122
- 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 +6 -7
- 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 +5 -2
- 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 +14 -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 +57 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue2.js +3 -1
- package/es/components/field-set/src/components/condition.vue.d.ts +28 -0
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +56 -0
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +28 -0
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- 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/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 +2757 -300
- package/es/components/iho-chat/src/Index.vue.d.ts +2757 -300
- 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 +783 -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 +204 -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 +121 -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 +37 -24
- package/es/components/iho-table/src/IhoTable.vue.d.ts +37 -24
- package/es/components/iho-table/src/IhoTable.vue2.js +7 -2
- package/es/components/iho-table/src/constants/index.d.ts +2 -2
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +3 -3
- 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 +30 -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 +28 -0
- 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/separateRendererPlugin/editSeparate.vue.d.ts +2 -2
- 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 +36 -8
- 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/shortcut-setter/index.d.ts +1 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -0
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +2 -2
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +28 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +56 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +56 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +56 -0
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +30 -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 +28 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +30 -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 +116 -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 +116 -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/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/package.json +3 -3
|
@@ -223,6 +223,15 @@ declare const DateInner: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
223
223
|
isDateDisabled: {
|
|
224
224
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
225
225
|
};
|
|
226
|
+
propKey: {
|
|
227
|
+
type: StringConstructor;
|
|
228
|
+
};
|
|
229
|
+
shortcutListenerConfig: {
|
|
230
|
+
type: import("vue").PropType<{
|
|
231
|
+
enable: boolean;
|
|
232
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
233
|
+
}>;
|
|
234
|
+
};
|
|
226
235
|
}>, {
|
|
227
236
|
attrs: {
|
|
228
237
|
[x: string]: unknown;
|
|
@@ -262,6 +271,15 @@ declare const DateInner: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
262
271
|
isDateDisabled: {
|
|
263
272
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
264
273
|
};
|
|
274
|
+
propKey: {
|
|
275
|
+
type: StringConstructor;
|
|
276
|
+
};
|
|
277
|
+
shortcutListenerConfig: {
|
|
278
|
+
type: import("vue").PropType<{
|
|
279
|
+
enable: boolean;
|
|
280
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
281
|
+
}>;
|
|
282
|
+
};
|
|
265
283
|
}>> & Readonly<{
|
|
266
284
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
267
285
|
}> & {}>;
|
|
@@ -278,6 +296,7 @@ declare const DateInner: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
278
296
|
focus: () => any;
|
|
279
297
|
blur: () => any;
|
|
280
298
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
299
|
+
handleShortcutClick: (event: MouseEvent) => void;
|
|
281
300
|
onUpdateShow: (show: boolean) => Promise<void>;
|
|
282
301
|
watchers: import("../../../../../../shared/types").AnyFn[];
|
|
283
302
|
stopWatcher: () => void;
|
|
@@ -321,6 +340,15 @@ declare const DateInner: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
321
340
|
isDateDisabled: {
|
|
322
341
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
323
342
|
};
|
|
343
|
+
propKey: {
|
|
344
|
+
type: StringConstructor;
|
|
345
|
+
};
|
|
346
|
+
shortcutListenerConfig: {
|
|
347
|
+
type: import("vue").PropType<{
|
|
348
|
+
enable: boolean;
|
|
349
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
350
|
+
}>;
|
|
351
|
+
};
|
|
324
352
|
}>> & Readonly<{
|
|
325
353
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
326
354
|
}>, {
|
|
@@ -491,8 +519,10 @@ declare const DateOut: import("vue").DefineComponent<import("vue").ExtractPropTy
|
|
|
491
519
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
492
520
|
valueCp: import("vue").Ref<any, any>;
|
|
493
521
|
rangeShortcuts: import("vue").Ref<any, any>;
|
|
522
|
+
shortcutListenerConfig: import("../../../../../../shared/types").AnyObject;
|
|
494
523
|
dateFormat: import("vue").ComputedRef<string>;
|
|
495
524
|
optionSetting: import("vue").ComputedRef<any>;
|
|
525
|
+
compName: import("vue").ComputedRef<any>;
|
|
496
526
|
handleChange: (val: any) => void;
|
|
497
527
|
isDateDisabled: (ts: number) => boolean;
|
|
498
528
|
timeDisabled: (ts: number) => {
|
|
@@ -536,6 +566,15 @@ declare const DateOut: import("vue").DefineComponent<import("vue").ExtractPropTy
|
|
|
536
566
|
isDateDisabled: {
|
|
537
567
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
538
568
|
};
|
|
569
|
+
propKey: {
|
|
570
|
+
type: StringConstructor;
|
|
571
|
+
};
|
|
572
|
+
shortcutListenerConfig: {
|
|
573
|
+
type: import("vue").PropType<{
|
|
574
|
+
enable: boolean;
|
|
575
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
576
|
+
}>;
|
|
577
|
+
};
|
|
539
578
|
}>, {
|
|
540
579
|
attrs: {
|
|
541
580
|
[x: string]: unknown;
|
|
@@ -575,6 +614,15 @@ declare const DateOut: import("vue").DefineComponent<import("vue").ExtractPropTy
|
|
|
575
614
|
isDateDisabled: {
|
|
576
615
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
577
616
|
};
|
|
617
|
+
propKey: {
|
|
618
|
+
type: StringConstructor;
|
|
619
|
+
};
|
|
620
|
+
shortcutListenerConfig: {
|
|
621
|
+
type: import("vue").PropType<{
|
|
622
|
+
enable: boolean;
|
|
623
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
624
|
+
}>;
|
|
625
|
+
};
|
|
578
626
|
}>> & Readonly<{
|
|
579
627
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
580
628
|
}> & {}>;
|
|
@@ -591,6 +639,7 @@ declare const DateOut: import("vue").DefineComponent<import("vue").ExtractPropTy
|
|
|
591
639
|
focus: () => any;
|
|
592
640
|
blur: () => any;
|
|
593
641
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
642
|
+
handleShortcutClick: (event: MouseEvent) => void;
|
|
594
643
|
onUpdateShow: (show: boolean) => Promise<void>;
|
|
595
644
|
watchers: import("../../../../../../shared/types").AnyFn[];
|
|
596
645
|
stopWatcher: () => void;
|
|
@@ -634,6 +683,15 @@ declare const DateOut: import("vue").DefineComponent<import("vue").ExtractPropTy
|
|
|
634
683
|
isDateDisabled: {
|
|
635
684
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
636
685
|
};
|
|
686
|
+
propKey: {
|
|
687
|
+
type: StringConstructor;
|
|
688
|
+
};
|
|
689
|
+
shortcutListenerConfig: {
|
|
690
|
+
type: import("vue").PropType<{
|
|
691
|
+
enable: boolean;
|
|
692
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
693
|
+
}>;
|
|
694
|
+
};
|
|
637
695
|
}>> & Readonly<{
|
|
638
696
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
639
697
|
}>, {
|
|
@@ -811,6 +869,15 @@ declare const DateRangeInner: import("vue").DefineComponent<import("vue").Extrac
|
|
|
811
869
|
isDateDisabled: {
|
|
812
870
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
813
871
|
};
|
|
872
|
+
propKey: {
|
|
873
|
+
type: StringConstructor;
|
|
874
|
+
};
|
|
875
|
+
shortcutListenerConfig: {
|
|
876
|
+
type: import("vue").PropType<{
|
|
877
|
+
enable: boolean;
|
|
878
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
879
|
+
}>;
|
|
880
|
+
};
|
|
814
881
|
}>, {
|
|
815
882
|
attrs: {
|
|
816
883
|
[x: string]: unknown;
|
|
@@ -850,6 +917,15 @@ declare const DateRangeInner: import("vue").DefineComponent<import("vue").Extrac
|
|
|
850
917
|
isDateDisabled: {
|
|
851
918
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
852
919
|
};
|
|
920
|
+
propKey: {
|
|
921
|
+
type: StringConstructor;
|
|
922
|
+
};
|
|
923
|
+
shortcutListenerConfig: {
|
|
924
|
+
type: import("vue").PropType<{
|
|
925
|
+
enable: boolean;
|
|
926
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
927
|
+
}>;
|
|
928
|
+
};
|
|
853
929
|
}>> & Readonly<{
|
|
854
930
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
855
931
|
}> & {}>;
|
|
@@ -866,6 +942,7 @@ declare const DateRangeInner: import("vue").DefineComponent<import("vue").Extrac
|
|
|
866
942
|
focus: () => any;
|
|
867
943
|
blur: () => any;
|
|
868
944
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
945
|
+
handleShortcutClick: (event: MouseEvent) => void;
|
|
869
946
|
onUpdateShow: (show: boolean) => Promise<void>;
|
|
870
947
|
watchers: import("../../../../../../shared/types").AnyFn[];
|
|
871
948
|
stopWatcher: () => void;
|
|
@@ -909,6 +986,15 @@ declare const DateRangeInner: import("vue").DefineComponent<import("vue").Extrac
|
|
|
909
986
|
isDateDisabled: {
|
|
910
987
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
911
988
|
};
|
|
989
|
+
propKey: {
|
|
990
|
+
type: StringConstructor;
|
|
991
|
+
};
|
|
992
|
+
shortcutListenerConfig: {
|
|
993
|
+
type: import("vue").PropType<{
|
|
994
|
+
enable: boolean;
|
|
995
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
996
|
+
}>;
|
|
997
|
+
};
|
|
912
998
|
}>> & Readonly<{
|
|
913
999
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
914
1000
|
}>, {
|
|
@@ -1086,8 +1172,10 @@ declare const DateRangeOut: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1086
1172
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
1087
1173
|
valueCp: import("vue").Ref<any, any>;
|
|
1088
1174
|
rangeShortcuts: import("vue").Ref<any, any>;
|
|
1175
|
+
shortcutListenerConfig: import("../../../../../../shared/types").AnyObject;
|
|
1089
1176
|
dateFormat: import("vue").ComputedRef<string>;
|
|
1090
1177
|
optionSetting: import("vue").ComputedRef<any>;
|
|
1178
|
+
compName: import("vue").ComputedRef<any>;
|
|
1091
1179
|
handleChange: (val: any) => void;
|
|
1092
1180
|
isDateDisabled: (ts: number) => boolean;
|
|
1093
1181
|
timeDisabled: (ts: number) => {
|
|
@@ -1131,6 +1219,15 @@ declare const DateRangeOut: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1131
1219
|
isDateDisabled: {
|
|
1132
1220
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1133
1221
|
};
|
|
1222
|
+
propKey: {
|
|
1223
|
+
type: StringConstructor;
|
|
1224
|
+
};
|
|
1225
|
+
shortcutListenerConfig: {
|
|
1226
|
+
type: import("vue").PropType<{
|
|
1227
|
+
enable: boolean;
|
|
1228
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1229
|
+
}>;
|
|
1230
|
+
};
|
|
1134
1231
|
}>, {
|
|
1135
1232
|
attrs: {
|
|
1136
1233
|
[x: string]: unknown;
|
|
@@ -1170,6 +1267,15 @@ declare const DateRangeOut: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1170
1267
|
isDateDisabled: {
|
|
1171
1268
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1172
1269
|
};
|
|
1270
|
+
propKey: {
|
|
1271
|
+
type: StringConstructor;
|
|
1272
|
+
};
|
|
1273
|
+
shortcutListenerConfig: {
|
|
1274
|
+
type: import("vue").PropType<{
|
|
1275
|
+
enable: boolean;
|
|
1276
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1277
|
+
}>;
|
|
1278
|
+
};
|
|
1173
1279
|
}>> & Readonly<{
|
|
1174
1280
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
1175
1281
|
}> & {}>;
|
|
@@ -1186,6 +1292,7 @@ declare const DateRangeOut: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1186
1292
|
focus: () => any;
|
|
1187
1293
|
blur: () => any;
|
|
1188
1294
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
1295
|
+
handleShortcutClick: (event: MouseEvent) => void;
|
|
1189
1296
|
onUpdateShow: (show: boolean) => Promise<void>;
|
|
1190
1297
|
watchers: import("../../../../../../shared/types").AnyFn[];
|
|
1191
1298
|
stopWatcher: () => void;
|
|
@@ -1229,6 +1336,15 @@ declare const DateRangeOut: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1229
1336
|
isDateDisabled: {
|
|
1230
1337
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1231
1338
|
};
|
|
1339
|
+
propKey: {
|
|
1340
|
+
type: StringConstructor;
|
|
1341
|
+
};
|
|
1342
|
+
shortcutListenerConfig: {
|
|
1343
|
+
type: import("vue").PropType<{
|
|
1344
|
+
enable: boolean;
|
|
1345
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1346
|
+
}>;
|
|
1347
|
+
};
|
|
1232
1348
|
}>> & Readonly<{
|
|
1233
1349
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
1234
1350
|
}>, {
|
package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js
CHANGED
|
@@ -46,11 +46,11 @@ const Maps = /* @__PURE__ */ new Map([
|
|
|
46
46
|
],
|
|
47
47
|
[
|
|
48
48
|
DatePresetValEnums.WEEK_START,
|
|
49
|
-
() => moment().
|
|
49
|
+
() => moment().startOf("isoWeek")
|
|
50
50
|
],
|
|
51
51
|
[
|
|
52
52
|
DatePresetValEnums.WEEK_END,
|
|
53
|
-
() => moment().
|
|
53
|
+
() => moment().endOf("isoWeek")
|
|
54
54
|
],
|
|
55
55
|
[
|
|
56
56
|
DatePresetValEnums.MONTH_START,
|
|
@@ -101,15 +101,15 @@ const dateRangeMapInner = /* @__PURE__ */ new Map([
|
|
|
101
101
|
],
|
|
102
102
|
[
|
|
103
103
|
DateRangeInnerValEnums.THIS_WEEK,
|
|
104
|
-
() => [moment().
|
|
104
|
+
() => [moment().startOf("isoWeek"), moment().endOf("isoWeek")]
|
|
105
105
|
],
|
|
106
106
|
[
|
|
107
107
|
DateRangeInnerValEnums.NEXT_WEEK,
|
|
108
|
-
() => [moment().add(1, "w").
|
|
108
|
+
() => [moment().add(1, "w").startOf("isoWeek"), moment().add(1, "w").endOf("isoWeek")]
|
|
109
109
|
],
|
|
110
110
|
[
|
|
111
111
|
DateRangeInnerValEnums.LAST_WEEK,
|
|
112
|
-
() => [moment().subtract(1, "w").
|
|
112
|
+
() => [moment().subtract(1, "w").startOf("isoWeek"), moment().subtract(1, "w").endOf("isoWeek")]
|
|
113
113
|
],
|
|
114
114
|
[
|
|
115
115
|
DateRangeInnerValEnums.PAST_WEEK,
|
|
@@ -187,17 +187,17 @@ const formatDateRangeInfo = (key, format = "x", optionSetting = WidgetOptionEnum
|
|
|
187
187
|
[
|
|
188
188
|
DateRangeInnerValEnums.THIS_WEEK,
|
|
189
189
|
() => [
|
|
190
|
-
isFutureTime ? currentTime : moment().
|
|
191
|
-
isPastTime ? currentTime : moment().
|
|
190
|
+
isFutureTime ? currentTime : moment().startOf("isoWeek"),
|
|
191
|
+
isPastTime ? currentTime : moment().endOf("isoWeek")
|
|
192
192
|
]
|
|
193
193
|
],
|
|
194
194
|
[
|
|
195
195
|
DateRangeInnerValEnums.NEXT_WEEK,
|
|
196
|
-
() => [moment().add(1, "w").
|
|
196
|
+
() => [moment().add(1, "w").startOf("isoWeek"), moment().add(1, "w").endOf("isoWeek")]
|
|
197
197
|
],
|
|
198
198
|
[
|
|
199
199
|
DateRangeInnerValEnums.LAST_WEEK,
|
|
200
|
-
() => [moment().subtract(1, "w").
|
|
200
|
+
() => [moment().subtract(1, "w").startOf("isoWeek"), moment().subtract(1, "w").endOf("isoWeek")]
|
|
201
201
|
],
|
|
202
202
|
[
|
|
203
203
|
DateRangeInnerValEnums.PAST_WEEK,
|
|
@@ -544,6 +544,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
544
544
|
isDateDisabled: {
|
|
545
545
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
546
546
|
};
|
|
547
|
+
propKey: {
|
|
548
|
+
type: StringConstructor;
|
|
549
|
+
};
|
|
550
|
+
shortcutListenerConfig: {
|
|
551
|
+
type: import("vue").PropType<{
|
|
552
|
+
enable: boolean;
|
|
553
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
554
|
+
}>;
|
|
555
|
+
};
|
|
547
556
|
}>, {
|
|
548
557
|
attrs: {
|
|
549
558
|
[x: string]: unknown;
|
|
@@ -583,6 +592,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
583
592
|
isDateDisabled: {
|
|
584
593
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
585
594
|
};
|
|
595
|
+
propKey: {
|
|
596
|
+
type: StringConstructor;
|
|
597
|
+
};
|
|
598
|
+
shortcutListenerConfig: {
|
|
599
|
+
type: import("vue").PropType<{
|
|
600
|
+
enable: boolean;
|
|
601
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
602
|
+
}>;
|
|
603
|
+
};
|
|
586
604
|
}>> & Readonly<{
|
|
587
605
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
588
606
|
}> & {}>;
|
|
@@ -599,6 +617,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
599
617
|
focus: () => any;
|
|
600
618
|
blur: () => any;
|
|
601
619
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
620
|
+
handleShortcutClick: (event: MouseEvent) => void;
|
|
602
621
|
onUpdateShow: (show: boolean) => Promise<void>;
|
|
603
622
|
watchers: import("../../../../../shared/types").AnyFn[];
|
|
604
623
|
stopWatcher: () => void;
|
|
@@ -642,6 +661,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
642
661
|
isDateDisabled: {
|
|
643
662
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
644
663
|
};
|
|
664
|
+
propKey: {
|
|
665
|
+
type: StringConstructor;
|
|
666
|
+
};
|
|
667
|
+
shortcutListenerConfig: {
|
|
668
|
+
type: import("vue").PropType<{
|
|
669
|
+
enable: boolean;
|
|
670
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
671
|
+
}>;
|
|
672
|
+
};
|
|
645
673
|
}>> & Readonly<{
|
|
646
674
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
647
675
|
}>, {
|
|
@@ -826,8 +854,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
826
854
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
827
855
|
valueCp: import("vue").Ref<any, any>;
|
|
828
856
|
rangeShortcuts: import("vue").Ref<any, any>;
|
|
857
|
+
shortcutListenerConfig: import("../../../../../shared/types").AnyObject;
|
|
829
858
|
dateFormat: import("vue").ComputedRef<string>;
|
|
830
859
|
optionSetting: import("vue").ComputedRef<any>;
|
|
860
|
+
compName: import("vue").ComputedRef<any>;
|
|
831
861
|
handleChange: (val: any) => void;
|
|
832
862
|
isDateDisabled: (ts: number) => boolean;
|
|
833
863
|
timeDisabled: (ts: number) => {
|
|
@@ -871,6 +901,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
871
901
|
isDateDisabled: {
|
|
872
902
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
873
903
|
};
|
|
904
|
+
propKey: {
|
|
905
|
+
type: StringConstructor;
|
|
906
|
+
};
|
|
907
|
+
shortcutListenerConfig: {
|
|
908
|
+
type: import("vue").PropType<{
|
|
909
|
+
enable: boolean;
|
|
910
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
911
|
+
}>;
|
|
912
|
+
};
|
|
874
913
|
}>, {
|
|
875
914
|
attrs: {
|
|
876
915
|
[x: string]: unknown;
|
|
@@ -910,6 +949,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
910
949
|
isDateDisabled: {
|
|
911
950
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
912
951
|
};
|
|
952
|
+
propKey: {
|
|
953
|
+
type: StringConstructor;
|
|
954
|
+
};
|
|
955
|
+
shortcutListenerConfig: {
|
|
956
|
+
type: import("vue").PropType<{
|
|
957
|
+
enable: boolean;
|
|
958
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
959
|
+
}>;
|
|
960
|
+
};
|
|
913
961
|
}>> & Readonly<{
|
|
914
962
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
915
963
|
}> & {}>;
|
|
@@ -926,6 +974,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
926
974
|
focus: () => any;
|
|
927
975
|
blur: () => any;
|
|
928
976
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
977
|
+
handleShortcutClick: (event: MouseEvent) => void;
|
|
929
978
|
onUpdateShow: (show: boolean) => Promise<void>;
|
|
930
979
|
watchers: import("../../../../../shared/types").AnyFn[];
|
|
931
980
|
stopWatcher: () => void;
|
|
@@ -969,6 +1018,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
969
1018
|
isDateDisabled: {
|
|
970
1019
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
971
1020
|
};
|
|
1021
|
+
propKey: {
|
|
1022
|
+
type: StringConstructor;
|
|
1023
|
+
};
|
|
1024
|
+
shortcutListenerConfig: {
|
|
1025
|
+
type: import("vue").PropType<{
|
|
1026
|
+
enable: boolean;
|
|
1027
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1028
|
+
}>;
|
|
1029
|
+
};
|
|
972
1030
|
}>> & Readonly<{
|
|
973
1031
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
974
1032
|
}>, {
|
|
@@ -1160,6 +1218,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1160
1218
|
isDateDisabled: {
|
|
1161
1219
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1162
1220
|
};
|
|
1221
|
+
propKey: {
|
|
1222
|
+
type: StringConstructor;
|
|
1223
|
+
};
|
|
1224
|
+
shortcutListenerConfig: {
|
|
1225
|
+
type: import("vue").PropType<{
|
|
1226
|
+
enable: boolean;
|
|
1227
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1228
|
+
}>;
|
|
1229
|
+
};
|
|
1163
1230
|
}>, {
|
|
1164
1231
|
attrs: {
|
|
1165
1232
|
[x: string]: unknown;
|
|
@@ -1199,6 +1266,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1199
1266
|
isDateDisabled: {
|
|
1200
1267
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1201
1268
|
};
|
|
1269
|
+
propKey: {
|
|
1270
|
+
type: StringConstructor;
|
|
1271
|
+
};
|
|
1272
|
+
shortcutListenerConfig: {
|
|
1273
|
+
type: import("vue").PropType<{
|
|
1274
|
+
enable: boolean;
|
|
1275
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1276
|
+
}>;
|
|
1277
|
+
};
|
|
1202
1278
|
}>> & Readonly<{
|
|
1203
1279
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
1204
1280
|
}> & {}>;
|
|
@@ -1215,6 +1291,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1215
1291
|
focus: () => any;
|
|
1216
1292
|
blur: () => any;
|
|
1217
1293
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
1294
|
+
handleShortcutClick: (event: MouseEvent) => void;
|
|
1218
1295
|
onUpdateShow: (show: boolean) => Promise<void>;
|
|
1219
1296
|
watchers: import("../../../../../shared/types").AnyFn[];
|
|
1220
1297
|
stopWatcher: () => void;
|
|
@@ -1258,6 +1335,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1258
1335
|
isDateDisabled: {
|
|
1259
1336
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1260
1337
|
};
|
|
1338
|
+
propKey: {
|
|
1339
|
+
type: StringConstructor;
|
|
1340
|
+
};
|
|
1341
|
+
shortcutListenerConfig: {
|
|
1342
|
+
type: import("vue").PropType<{
|
|
1343
|
+
enable: boolean;
|
|
1344
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1345
|
+
}>;
|
|
1346
|
+
};
|
|
1261
1347
|
}>> & Readonly<{
|
|
1262
1348
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
1263
1349
|
}>, {
|
|
@@ -1449,8 +1535,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1449
1535
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
1450
1536
|
valueCp: import("vue").Ref<any, any>;
|
|
1451
1537
|
rangeShortcuts: import("vue").Ref<any, any>;
|
|
1538
|
+
shortcutListenerConfig: import("../../../../../shared/types").AnyObject;
|
|
1452
1539
|
dateFormat: import("vue").ComputedRef<string>;
|
|
1453
1540
|
optionSetting: import("vue").ComputedRef<any>;
|
|
1541
|
+
compName: import("vue").ComputedRef<any>;
|
|
1454
1542
|
handleChange: (val: any) => void;
|
|
1455
1543
|
isDateDisabled: (ts: number) => boolean;
|
|
1456
1544
|
timeDisabled: (ts: number) => {
|
|
@@ -1494,6 +1582,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1494
1582
|
isDateDisabled: {
|
|
1495
1583
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1496
1584
|
};
|
|
1585
|
+
propKey: {
|
|
1586
|
+
type: StringConstructor;
|
|
1587
|
+
};
|
|
1588
|
+
shortcutListenerConfig: {
|
|
1589
|
+
type: import("vue").PropType<{
|
|
1590
|
+
enable: boolean;
|
|
1591
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1592
|
+
}>;
|
|
1593
|
+
};
|
|
1497
1594
|
}>, {
|
|
1498
1595
|
attrs: {
|
|
1499
1596
|
[x: string]: unknown;
|
|
@@ -1533,6 +1630,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1533
1630
|
isDateDisabled: {
|
|
1534
1631
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1535
1632
|
};
|
|
1633
|
+
propKey: {
|
|
1634
|
+
type: StringConstructor;
|
|
1635
|
+
};
|
|
1636
|
+
shortcutListenerConfig: {
|
|
1637
|
+
type: import("vue").PropType<{
|
|
1638
|
+
enable: boolean;
|
|
1639
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1640
|
+
}>;
|
|
1641
|
+
};
|
|
1536
1642
|
}>> & Readonly<{
|
|
1537
1643
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
1538
1644
|
}> & {}>;
|
|
@@ -1549,6 +1655,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1549
1655
|
focus: () => any;
|
|
1550
1656
|
blur: () => any;
|
|
1551
1657
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
1658
|
+
handleShortcutClick: (event: MouseEvent) => void;
|
|
1552
1659
|
onUpdateShow: (show: boolean) => Promise<void>;
|
|
1553
1660
|
watchers: import("../../../../../shared/types").AnyFn[];
|
|
1554
1661
|
stopWatcher: () => void;
|
|
@@ -1592,6 +1699,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
1592
1699
|
isDateDisabled: {
|
|
1593
1700
|
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
|
1594
1701
|
};
|
|
1702
|
+
propKey: {
|
|
1703
|
+
type: StringConstructor;
|
|
1704
|
+
};
|
|
1705
|
+
shortcutListenerConfig: {
|
|
1706
|
+
type: import("vue").PropType<{
|
|
1707
|
+
enable: boolean;
|
|
1708
|
+
callback: (value: string, propKey?: string | undefined) => void;
|
|
1709
|
+
}>;
|
|
1710
|
+
};
|
|
1595
1711
|
}>> & Readonly<{
|
|
1596
1712
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
1597
1713
|
}>, {
|
|
@@ -2,5 +2,6 @@ import { AnyObject } from '../../../../shared/types';
|
|
|
2
2
|
import { InjectionKey, Ref } from 'vue';
|
|
3
3
|
export declare const InjectionFilterApiConfig: InjectionKey<AnyObject>;
|
|
4
4
|
export declare const InjectionFilterSearchConfig: InjectionKey<Ref<AnyObject[]>>;
|
|
5
|
+
export declare const InjectionShortcutListenerConfig: InjectionKey<AnyObject | undefined>;
|
|
5
6
|
export declare const InjectionClassifyFilterList: InjectionKey<Ref<AnyObject[]>>;
|
|
6
7
|
export declare const InjectionClassifyfilterType: InjectionKey<String>;
|
|
@@ -4,6 +4,9 @@ const InjectionFilterApiConfig = Symbol(
|
|
|
4
4
|
const InjectionFilterSearchConfig = Symbol(
|
|
5
5
|
"InjectionFilterSearchConfig"
|
|
6
6
|
);
|
|
7
|
+
const InjectionShortcutListenerConfig = Symbol(
|
|
8
|
+
"InjectionShortcutListenerConfig"
|
|
9
|
+
);
|
|
7
10
|
const InjectionClassifyFilterList = Symbol(
|
|
8
11
|
"InjectionClassifyFilterList"
|
|
9
12
|
);
|
|
@@ -11,4 +14,4 @@ const InjectionClassifyfilterType = Symbol(
|
|
|
11
14
|
"InjectionClassifyfilterType"
|
|
12
15
|
);
|
|
13
16
|
|
|
14
|
-
export { InjectionClassifyFilterList, InjectionClassifyfilterType, InjectionFilterApiConfig, InjectionFilterSearchConfig };
|
|
17
|
+
export { InjectionClassifyFilterList, InjectionClassifyfilterType, InjectionFilterApiConfig, InjectionFilterSearchConfig, InjectionShortcutListenerConfig };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
style: ObjectConstructor;
|
|
3
|
+
tooltip: ObjectConstructor;
|
|
4
|
+
keepShow: BooleanConstructor;
|
|
5
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6
|
+
style: ObjectConstructor;
|
|
7
|
+
tooltip: ObjectConstructor;
|
|
8
|
+
keepShow: BooleanConstructor;
|
|
9
|
+
}>> & Readonly<{}>, {
|
|
10
|
+
keepShow: boolean;
|
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, createVNode, mergeProps } from 'vue';
|
|
2
|
+
import { CloseCircle } from '@vicons/ionicons5';
|
|
3
|
+
import { useElementSize } from '@vueuse/core';
|
|
4
|
+
import { NTooltip } from 'naive-ui';
|
|
5
|
+
|
|
6
|
+
var script = /* @__PURE__ */ defineComponent({
|
|
7
|
+
props: {
|
|
8
|
+
style: Object,
|
|
9
|
+
tooltip: Object,
|
|
10
|
+
keepShow: Boolean
|
|
11
|
+
},
|
|
12
|
+
setup(props, {
|
|
13
|
+
slots
|
|
14
|
+
}) {
|
|
15
|
+
const ellipsisRef = ref();
|
|
16
|
+
const ellipsisStyle = computed(() => ({
|
|
17
|
+
overflow: "hidden",
|
|
18
|
+
textOverflow: "ellipsis",
|
|
19
|
+
whiteSpace: "nowrap",
|
|
20
|
+
...props.style
|
|
21
|
+
}));
|
|
22
|
+
const {
|
|
23
|
+
width: ellipsisWidth
|
|
24
|
+
} = useElementSize(ellipsisRef);
|
|
25
|
+
const innerRef = ref();
|
|
26
|
+
const innerStyle = {
|
|
27
|
+
position: "absolute",
|
|
28
|
+
opacity: 0,
|
|
29
|
+
visibility: "hidden"
|
|
30
|
+
};
|
|
31
|
+
const {
|
|
32
|
+
width: innerWidth
|
|
33
|
+
} = useElementSize(innerRef);
|
|
34
|
+
const disabled = computed(() => {
|
|
35
|
+
return innerWidth.value <= ellipsisWidth.value;
|
|
36
|
+
});
|
|
37
|
+
const show = ref(!!props.keepShow);
|
|
38
|
+
function onUpdateShow(v) {
|
|
39
|
+
if (!props.keepShow)
|
|
40
|
+
return;
|
|
41
|
+
show.value = v;
|
|
42
|
+
}
|
|
43
|
+
const operationStyle = {
|
|
44
|
+
position: "absolute",
|
|
45
|
+
right: "-4px",
|
|
46
|
+
top: "-4px",
|
|
47
|
+
cursor: "pointer",
|
|
48
|
+
width: "16px",
|
|
49
|
+
borderRadius: "50%",
|
|
50
|
+
boxShadow: "0 0 4px 0 rgba(0, 0, 0, 0.4)"
|
|
51
|
+
};
|
|
52
|
+
return () => {
|
|
53
|
+
return createVNode(NTooltip, mergeProps(props.tooltip, {
|
|
54
|
+
"disabled": disabled.value,
|
|
55
|
+
"trigger": props.keepShow ? "manual" : "hover",
|
|
56
|
+
"show": props.keepShow ? show.value : void 0
|
|
57
|
+
}), {
|
|
58
|
+
trigger: () => {
|
|
59
|
+
var _a, _b;
|
|
60
|
+
return createVNode("div", {
|
|
61
|
+
"onClick": () => onUpdateShow(true)
|
|
62
|
+
}, [createVNode("div", {
|
|
63
|
+
"style": ellipsisStyle.value,
|
|
64
|
+
"ref": ellipsisRef
|
|
65
|
+
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), createVNode("div", {
|
|
66
|
+
"style": innerStyle,
|
|
67
|
+
"ref": innerRef
|
|
68
|
+
}, [(_b = slots.default) == null ? void 0 : _b.call(slots)])]);
|
|
69
|
+
},
|
|
70
|
+
default: () => {
|
|
71
|
+
var _a;
|
|
72
|
+
return createVNode("div", {
|
|
73
|
+
"style": {
|
|
74
|
+
maxWidth: "300px"
|
|
75
|
+
}
|
|
76
|
+
}, [(_a = slots.default) == null ? void 0 : _a.call(slots), props.keepShow ? createVNode(CloseCircle, {
|
|
77
|
+
"style": operationStyle,
|
|
78
|
+
"onClick": () => onUpdateShow(false)
|
|
79
|
+
}, null) : null]);
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
export { script as default };
|