cnhis-design-vue 3.3.3-release.9 → 3.4.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/big-table/src/hooks/useBatchEditing.js +25 -24
- package/es/components/button-print/index.d.ts +98 -8
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +98 -8
- package/es/components/button-print/src/ButtonPrint.vue2.js +12 -1
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +11 -2
- package/es/components/button-print/src/components/IdentityVerification.vue2.js +3 -2
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +44 -6
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +194 -41
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +29 -2
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +34 -5
- package/es/components/button-print/src/utils/print.d.ts +7 -5
- package/es/components/button-print/src/utils/print.js +183 -7
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/calendar/src/Calendar.vue2.js +15 -5
- package/es/components/callback/src/components/render/popupMaps.d.ts +5 -0
- package/es/components/card-render/src/components/index.d.ts +23 -23
- package/es/components/classification/index.d.ts +258 -5
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +258 -5
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +258 -5
- package/es/components/classification/src/index.vue.d.ts +258 -5
- package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +6 -2
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +3 -2
- package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +58 -15
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +4 -3
- package/es/components/field-editor/index.d.ts +5 -0
- package/es/components/field-editor/src/FieldEditor.vue.d.ts +5 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +4 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +4 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +4 -1
- package/es/components/field-set/src/components/table-row.vue.d.ts +2 -1
- package/es/components/field-set/src/components/table-row.vue2.js +21 -6
- package/es/components/field-set/src/constants/index.js +4 -4
- package/es/components/field-set/src/types/index.d.ts +2 -1
- package/es/components/form-config/index.d.ts +63 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +63 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +5 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +50 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue2.js +4 -4
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +5 -0
- package/es/components/form-config/src/constants/index.d.ts +31 -1
- package/es/components/form-config/src/constants/index.js +150 -1
- package/es/components/form-config/src/hooks/useConfigurationField.d.ts +2 -2
- package/es/components/form-config/src/hooks/useConfigurationField.js +53 -6
- package/es/components/form-config/src/hooks/useLocale.d.ts +6 -0
- package/es/components/form-config/src/hooks/useLocale.js +34 -0
- package/es/components/form-config/src/types/index.d.ts +12 -0
- package/es/components/form-render/index.d.ts +5 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +5 -0
- package/es/components/form-render/src/FormRender.vue2.js +1 -0
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +5 -0
- package/es/components/form-render/src/components/renderer/date.d.ts +3 -1
- package/es/components/form-render/src/components/renderer/date.js +12 -10
- package/es/components/form-render/src/components/renderer/formItem.d.ts +2 -0
- package/es/components/form-render/src/components/renderer/formItem.js +10 -3
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +4 -2
- 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 +9 -3
- package/es/components/form-render/src/constants/index.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +5 -2
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -0
- package/es/components/form-render/src/hooks/useFieldNormalize.js +15 -0
- package/es/components/form-render/src/hooks/useNuiThemeOverrides.d.ts +1 -2
- package/es/components/form-render/src/types/index.d.ts +1 -0
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-chat/index.d.ts +897 -97
- package/es/components/iho-chat/src/Index.vue.d.ts +897 -97
- package/es/components/iho-chat/src/Index.vue2.js +14 -6
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +179 -6
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +48 -28
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +61 -5
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +106 -44
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +327 -13
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +18 -17
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +232 -17
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +299 -272
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +49 -3
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +48 -2
- package/es/components/iho-chat/src/components/ContextMenu.js +33 -18
- package/es/components/iho-chat/src/components/ImageLightbox.vue.d.ts +104 -0
- package/es/components/iho-chat/src/components/ImageLightbox.vue.js +6 -0
- package/es/components/iho-chat/src/components/ImageLightbox.vue2.js +307 -0
- package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/MessageMergeForward.vue.d.ts +51 -4
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +77 -31
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +223 -98
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/SelectLabel.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/Video.vue.d.ts +44 -26
- package/es/components/iho-chat/src/components/Video.vue2.js +56 -49
- package/es/components/iho-chat/src/hooks/useData.d.ts +51 -4
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +83 -16
- package/es/components/iho-chat/src/hooks/useVideo.js +439 -43
- package/es/components/iho-chat/src/types/index.d.ts +37 -1
- package/es/components/iho-chat/src/utils/emoji.d.ts +1 -1
- package/es/components/iho-chat/src/utils/emoji.js +1 -1
- package/es/components/iho-chat/src/utils/index.d.ts +2 -0
- package/es/components/iho-chat/src/utils/index.js +14 -1
- package/es/components/iho-chat/style/index.css +1 -1
- 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 +0 -22
- 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/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/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +36 -4
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -0
- package/es/components/index.js +2 -1
- package/es/components/info-header/index.d.ts +24 -17
- package/es/components/info-header/src/InfoHeader.vue.d.ts +24 -17
- package/es/components/info-header/src/InfoHeader.vue2.js +2 -2
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +56 -22
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +4 -2
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue2.js +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +15 -17
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +5 -0
- package/es/components/info-header/src/constants/index.d.ts +1 -1
- package/es/components/info-header/src/hooks/useThemeOverrides.d.ts +1 -2
- package/es/components/keyboard/index.d.ts +9 -0
- package/es/components/keyboard/src/Keyboard.vue.d.ts +9 -0
- package/es/components/keyboard/src/Keyboard.vue2.js +33 -9
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +4 -0
- package/es/components/keyboard/src/components/NumberPanel.vue2.js +50 -17
- package/es/components/keyboard/src/types.d.ts +17 -0
- package/es/components/keyboard/src/types.js +1 -0
- package/es/components/scale-view/index.d.ts +13 -0
- package/es/components/scale-view/src/ScaleView.vue.d.ts +13 -0
- package/es/components/scale-view/src/hooks/scaleview-computed.js +2 -1
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +4 -0
- package/es/components/scale-view/src/hooks/scaleview-props.js +4 -0
- package/es/components/search-cascader/src/utils/index.d.ts +1 -1
- package/es/components/select-person/src/SelectPerson.vue2.js +8 -1
- package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -1
- package/es/components/shortcut-provider/src/types/index.d.ts +1 -0
- package/es/components/shortcut-provider/src/utils/index.d.ts +1 -1
- package/es/components/shortcut-provider/src/utils/index.js +3 -1
- package/es/components/shortcut-setter/index.d.ts +5 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +5 -0
- package/es/components/table-filter/index.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +246 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +8 -2
- package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.d.ts +104 -0
- package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.js +6 -0
- package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue2.js +250 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +116 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +43 -4
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +117 -1
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +45 -8
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +233 -1
- package/es/components/table-filter/src/components/classify-filter/helpers/options.d.ts +5 -1
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +74 -2
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +258 -5
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +15 -6
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +3 -3
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +32 -4
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +1 -0
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +38 -2
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +3 -3
- package/es/components/table-filter/src/hooks/useAdvanced.js +5 -4
- package/es/components/table-filter/src/tool/baseOptions.js +8 -1
- package/es/components/table-filter/src/types/enums.d.ts +5 -0
- package/es/components/table-filter/src/types/enums.js +6 -1
- package/es/components/time-picker/index.d.ts +36 -4
- package/es/components/time-picker/src/TimePicker.vue.d.ts +36 -4
- package/es/components/time-picker/src/TimePicker.vue2.js +98 -13
- package/es/components/vertify/index.d.ts +1 -0
- package/es/components/vertify/index.js +1 -0
- package/es/components/vertify/src/components/IdentityVerification.vue.d.ts +89 -0
- package/es/components/vertify/src/components/IdentityVerification.vue.js +6 -0
- package/es/components/vertify/src/components/IdentityVerification.vue2.js +256 -0
- package/es/components/vertify/src/utils/dialog.d.ts +7 -0
- package/es/components/vertify/src/utils/dialog.js +73 -0
- package/es/components/vertify/src/utils/index.d.ts +11 -0
- package/es/components/vertify/src/utils/index.js +24 -0
- package/es/components/vod-chunk-upload/index.d.ts +13 -0
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +19 -2
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +104 -75
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.d.ts +1 -0
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +20 -3
- package/es/components/vod-chunk-upload/src/hooks/upload-data.d.ts +4 -0
- package/es/components/vod-chunk-upload/src/hooks/upload-data.js +6 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +13 -0
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +6 -1
- package/es/components/vod-chunk-upload/style/index.css +1 -1
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/table_style_2.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
- package/es/shared/hooks/useDateTime.d.ts +1 -1
- package/es/shared/hooks/useDateTime.js +1 -1
- package/es/shared/hooks/useLevelSearchCascader.js +3 -3
- package/es/shared/package.json.js +2 -2
- package/es/shared/utils/fabricjs/index.js +1 -1
- package/package.json +5 -5
- package/es/components/audio-sdk/src/utils/recorder/fft.d.ts +0 -4
- package/es/components/audio-sdk/src/utils/recorder/mp3-engine.d.ts +0 -4
- package/es/components/audio-sdk/src/utils/recorder/mp3.d.ts +0 -4
- package/es/components/audio-sdk/src/utils/recorder/recorder.d.ts +0 -4
- package/es/components/audio-sdk/src/utils/recorder/wave.d.ts +0 -4
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/fabricjs/index.d.ts +0 -6823
- package/es/shared/utils/tapable/index.d.ts +0 -139
package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
-
import { defineComponent, ref, computed, watch, openBlock, createElementBlock,
|
1
|
+
import { defineComponent, ref, computed, watch, openBlock, createElementBlock, unref, Fragment, createVNode, isRef, withCtx, toDisplayString, createCommentVNode, createBlock } from 'vue';
|
2
2
|
import { NSelect, NPopover } from 'naive-ui';
|
3
3
|
import DatePicker from '../../../../../date-picker/index.js';
|
4
|
+
import DateOption from './Base/DateOption.vue.js';
|
4
5
|
import moment from 'moment';
|
5
6
|
import { isString } from 'lodash-es';
|
6
|
-
import { WidgetOptionEnums, WidgetTypeEnums, WidgetValEnums } from '../../../types/enums.js';
|
7
|
+
import { ConditionEnums, WidgetOptionEnums, WidgetTypeEnums, WidgetValEnums } from '../../../types/enums.js';
|
7
8
|
import { WidgetDateOptionEnums } from '../../render-widget/helpers/enums.js';
|
8
9
|
import { widgetDateValOptions } from '../../render-widget/helpers/dateExtraMap.js';
|
9
10
|
import { dateDisabledCollect, isStartDateRangeDisabled, isTimeStartRangeDisabled, isEndDateRangeDisabled, isTimeEndRangeDisabled } from '../../render-widget/helpers/dateDisabled.js';
|
@@ -29,6 +30,10 @@ const _hoisted_4 = {
|
|
29
30
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
30
31
|
__name: "DateRange",
|
31
32
|
props: {
|
33
|
+
item: {
|
34
|
+
type: Object,
|
35
|
+
required: true
|
36
|
+
},
|
32
37
|
paramCfg: {
|
33
38
|
type: Object,
|
34
39
|
default: null
|
@@ -53,6 +58,21 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
53
58
|
const props = __props;
|
54
59
|
const startDate = ref();
|
55
60
|
const endDate = ref();
|
61
|
+
const filterType = computed(() => {
|
62
|
+
switch (props.item.condition) {
|
63
|
+
case ConditionEnums.EQUAL:
|
64
|
+
return "1";
|
65
|
+
case ConditionEnums.CUSTOM_RANGE:
|
66
|
+
return "2";
|
67
|
+
case ConditionEnums.IN_THE_PAST:
|
68
|
+
case ConditionEnums.IN_THE_FUTURE:
|
69
|
+
case ConditionEnums.IN_THE_PAST_DI:
|
70
|
+
case ConditionEnums.IN_THE_FUTURE_DI:
|
71
|
+
return "3";
|
72
|
+
default:
|
73
|
+
return "1";
|
74
|
+
}
|
75
|
+
});
|
56
76
|
const valueFormat = computed(() => {
|
57
77
|
let formateStr = "";
|
58
78
|
switch (compType.value) {
|
@@ -203,16 +223,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
203
223
|
return props.presetVal;
|
204
224
|
}
|
205
225
|
});
|
206
|
-
computed({
|
226
|
+
const valueDateCp = computed({
|
207
227
|
set(val) {
|
208
|
-
|
228
|
+
if (val && filterType.value !== "1") {
|
229
|
+
const v = typeof val === "number" ? String(val) : val;
|
230
|
+
emit("update:modelValue", v);
|
231
|
+
}
|
209
232
|
},
|
210
233
|
get() {
|
211
|
-
|
234
|
+
if (props.modelValue && filterType.value !== "1") {
|
235
|
+
return props.modelValue;
|
236
|
+
}
|
237
|
+
return null;
|
212
238
|
}
|
213
239
|
});
|
214
240
|
watch(() => props.modelValue, (val) => {
|
215
|
-
if (val && isString(val) && val.includes("~")) {
|
241
|
+
if (val && filterType.value === "1" && isString(val) && val.includes("~")) {
|
216
242
|
const [start, end] = val.split("~");
|
217
243
|
if (start.trim())
|
218
244
|
startDate.value = moment(start.trim()).valueOf();
|
@@ -250,7 +276,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
250
276
|
return isTimeEndRangeDisabled(ts, optionSetting.value, startDate.value);
|
251
277
|
}
|
252
278
|
return (_ctx, _cache) => {
|
253
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
279
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [unref(filterType) === "1" ? (openBlock(), createElementBlock(Fragment, {
|
280
|
+
key: 0
|
281
|
+
}, [createVNode(unref(NSelect), {
|
254
282
|
style: {
|
255
283
|
"width": "120px"
|
256
284
|
},
|
@@ -298,7 +326,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
298
326
|
}, null, 8, ["type", "default-time", "valueFormat", "placeholder", "value"])]),
|
299
327
|
default: withCtx(() => [unref(endDateFormat) ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(unref(endDateFormat)), 1)) : createCommentVNode("v-if", true)]),
|
300
328
|
_: 1
|
301
|
-
}, 8, ["disabled"])])) : createCommentVNode("v-if", true)])
|
329
|
+
}, 8, ["disabled"])])) : createCommentVNode("v-if", true)], 64)) : (openBlock(), createBlock(DateOption, {
|
330
|
+
key: 1,
|
331
|
+
filterType: unref(filterType),
|
332
|
+
dateType: unref(dateType),
|
333
|
+
valueFormat: unref(valueFormat),
|
334
|
+
modelValue: unref(valueDateCp),
|
335
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(valueDateCp) ? valueDateCp.value = $event : null),
|
336
|
+
presetVal: unref(presetValCp),
|
337
|
+
"onUpdate:presetVal": _cache[4] || (_cache[4] = ($event) => isRef(presetValCp) ? presetValCp.value = $event : null)
|
338
|
+
}, null, 8, ["filterType", "dateType", "valueFormat", "modelValue", "presetVal"]))]);
|
302
339
|
};
|
303
340
|
}
|
304
341
|
});
|
@@ -2,6 +2,10 @@ declare const Date: import("vue").DefineComponent<{
|
|
2
2
|
componentCfg: {
|
3
3
|
type: ObjectConstructor;
|
4
4
|
};
|
5
|
+
item: {
|
6
|
+
type: ObjectConstructor;
|
7
|
+
required: true;
|
8
|
+
};
|
5
9
|
paramCfg: {
|
6
10
|
type: ObjectConstructor;
|
7
11
|
default: null;
|
@@ -23,6 +27,10 @@ declare const Date: import("vue").DefineComponent<{
|
|
23
27
|
componentCfg: {
|
24
28
|
type: ObjectConstructor;
|
25
29
|
};
|
30
|
+
item: {
|
31
|
+
type: ObjectConstructor;
|
32
|
+
required: true;
|
33
|
+
};
|
26
34
|
paramCfg: {
|
27
35
|
type: ObjectConstructor;
|
28
36
|
default: null;
|
@@ -45,6 +53,7 @@ declare const Date: import("vue").DefineComponent<{
|
|
45
53
|
"onUpdate:customDate"?: ((...args: any[]) => any) | undefined;
|
46
54
|
}>>;
|
47
55
|
emit: (event: "update:modelValue" | "update:presetVal" | "update:customDate", ...args: any[]) => void;
|
56
|
+
filterType: import("vue").ComputedRef<"1" | "2" | "3">;
|
48
57
|
valueCp: import("vue").WritableComputedRef<any>;
|
49
58
|
presetValCp: import("vue").WritableComputedRef<string>;
|
50
59
|
dateType: any;
|
@@ -191,6 +200,109 @@ declare const Date: import("vue").DefineComponent<{
|
|
191
200
|
holidays: Date[];
|
192
201
|
}>>;
|
193
202
|
NSelect: any;
|
203
|
+
DateOption: import("vue").DefineComponent<{
|
204
|
+
filterType: {
|
205
|
+
type: StringConstructor;
|
206
|
+
required: true;
|
207
|
+
};
|
208
|
+
modelValue: {
|
209
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
210
|
+
default: null;
|
211
|
+
};
|
212
|
+
presetVal: {
|
213
|
+
type: StringConstructor;
|
214
|
+
default: null;
|
215
|
+
};
|
216
|
+
dateType: {
|
217
|
+
type: StringConstructor;
|
218
|
+
};
|
219
|
+
isDateDisabled: {
|
220
|
+
type: FunctionConstructor;
|
221
|
+
};
|
222
|
+
timeDisabled: {
|
223
|
+
type: FunctionConstructor;
|
224
|
+
};
|
225
|
+
valueFormat: {
|
226
|
+
type: StringConstructor;
|
227
|
+
};
|
228
|
+
}, {
|
229
|
+
widgetOptions: {
|
230
|
+
label: string;
|
231
|
+
value: string;
|
232
|
+
}[];
|
233
|
+
widgetRangeOptions: {
|
234
|
+
label: string;
|
235
|
+
value: string;
|
236
|
+
}[];
|
237
|
+
startDateNum: import("vue").Ref<any>;
|
238
|
+
endDateNum: import("vue").Ref<any>;
|
239
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
240
|
+
filterType: {
|
241
|
+
type: StringConstructor;
|
242
|
+
required: true;
|
243
|
+
};
|
244
|
+
modelValue: {
|
245
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
246
|
+
default: null;
|
247
|
+
};
|
248
|
+
presetVal: {
|
249
|
+
type: StringConstructor;
|
250
|
+
default: null;
|
251
|
+
};
|
252
|
+
dateType: {
|
253
|
+
type: StringConstructor;
|
254
|
+
};
|
255
|
+
isDateDisabled: {
|
256
|
+
type: FunctionConstructor;
|
257
|
+
};
|
258
|
+
timeDisabled: {
|
259
|
+
type: FunctionConstructor;
|
260
|
+
};
|
261
|
+
valueFormat: {
|
262
|
+
type: StringConstructor;
|
263
|
+
};
|
264
|
+
}>> & {
|
265
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
266
|
+
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
267
|
+
}>>;
|
268
|
+
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
269
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
270
|
+
presetValCp: import("vue").WritableComputedRef<string>;
|
271
|
+
handleChange: (val: any, type: "start" | "end") => void;
|
272
|
+
NSelect: any;
|
273
|
+
NInputNumber: any;
|
274
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
275
|
+
filterType: {
|
276
|
+
type: StringConstructor;
|
277
|
+
required: true;
|
278
|
+
};
|
279
|
+
modelValue: {
|
280
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
281
|
+
default: null;
|
282
|
+
};
|
283
|
+
presetVal: {
|
284
|
+
type: StringConstructor;
|
285
|
+
default: null;
|
286
|
+
};
|
287
|
+
dateType: {
|
288
|
+
type: StringConstructor;
|
289
|
+
};
|
290
|
+
isDateDisabled: {
|
291
|
+
type: FunctionConstructor;
|
292
|
+
};
|
293
|
+
timeDisabled: {
|
294
|
+
type: FunctionConstructor;
|
295
|
+
};
|
296
|
+
valueFormat: {
|
297
|
+
type: StringConstructor;
|
298
|
+
};
|
299
|
+
}>> & {
|
300
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
301
|
+
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
302
|
+
}, {
|
303
|
+
modelValue: string | number | unknown[];
|
304
|
+
presetVal: string;
|
305
|
+
}>;
|
194
306
|
WidgetValEnums: {
|
195
307
|
CUSTOM: string;
|
196
308
|
FIRST_VAL: string;
|
@@ -226,6 +338,10 @@ declare const Date: import("vue").DefineComponent<{
|
|
226
338
|
componentCfg: {
|
227
339
|
type: ObjectConstructor;
|
228
340
|
};
|
341
|
+
item: {
|
342
|
+
type: ObjectConstructor;
|
343
|
+
required: true;
|
344
|
+
};
|
229
345
|
paramCfg: {
|
230
346
|
type: ObjectConstructor;
|
231
347
|
default: null;
|
@@ -703,6 +819,10 @@ declare const InputNumberGroup: import("vue").DefineComponent<{
|
|
703
819
|
paramCfg: Record<string, any>;
|
704
820
|
}>;
|
705
821
|
declare const DateRange: import("vue").DefineComponent<{
|
822
|
+
item: {
|
823
|
+
type: ObjectConstructor;
|
824
|
+
required: true;
|
825
|
+
};
|
706
826
|
paramCfg: {
|
707
827
|
type: ObjectConstructor;
|
708
828
|
default: null;
|
@@ -721,6 +841,10 @@ declare const DateRange: import("vue").DefineComponent<{
|
|
721
841
|
};
|
722
842
|
}, {
|
723
843
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
844
|
+
item: {
|
845
|
+
type: ObjectConstructor;
|
846
|
+
required: true;
|
847
|
+
};
|
724
848
|
paramCfg: {
|
725
849
|
type: ObjectConstructor;
|
726
850
|
default: null;
|
@@ -745,6 +869,7 @@ declare const DateRange: import("vue").DefineComponent<{
|
|
745
869
|
emit: (event: "update:modelValue" | "update:presetVal" | "update:customDate", ...args: any[]) => void;
|
746
870
|
startDate: import("vue").Ref<any>;
|
747
871
|
endDate: import("vue").Ref<any>;
|
872
|
+
filterType: import("vue").ComputedRef<"1" | "2" | "3">;
|
748
873
|
valueFormat: import("vue").ComputedRef<string>;
|
749
874
|
dateFormat: import("vue").ComputedRef<string>;
|
750
875
|
compType: import("vue").ComputedRef<any>;
|
@@ -763,7 +888,7 @@ declare const DateRange: import("vue").DefineComponent<{
|
|
763
888
|
value: string;
|
764
889
|
}[]>;
|
765
890
|
presetValCp: import("vue").WritableComputedRef<string>;
|
766
|
-
|
891
|
+
valueDateCp: import("vue").WritableComputedRef<unknown>;
|
767
892
|
handleChange: (val: any, type: "start" | "end") => void;
|
768
893
|
isStartDateDisabled: (ts: number) => boolean;
|
769
894
|
timeStartDisabled: (ts: number) => {
|
@@ -908,6 +1033,109 @@ declare const DateRange: import("vue").DefineComponent<{
|
|
908
1033
|
to: string | false | HTMLElement;
|
909
1034
|
holidays: Date[];
|
910
1035
|
}>>;
|
1036
|
+
DateOption: import("vue").DefineComponent<{
|
1037
|
+
filterType: {
|
1038
|
+
type: StringConstructor;
|
1039
|
+
required: true;
|
1040
|
+
};
|
1041
|
+
modelValue: {
|
1042
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
1043
|
+
default: null;
|
1044
|
+
};
|
1045
|
+
presetVal: {
|
1046
|
+
type: StringConstructor;
|
1047
|
+
default: null;
|
1048
|
+
};
|
1049
|
+
dateType: {
|
1050
|
+
type: StringConstructor;
|
1051
|
+
};
|
1052
|
+
isDateDisabled: {
|
1053
|
+
type: FunctionConstructor;
|
1054
|
+
};
|
1055
|
+
timeDisabled: {
|
1056
|
+
type: FunctionConstructor;
|
1057
|
+
};
|
1058
|
+
valueFormat: {
|
1059
|
+
type: StringConstructor;
|
1060
|
+
};
|
1061
|
+
}, {
|
1062
|
+
widgetOptions: {
|
1063
|
+
label: string;
|
1064
|
+
value: string;
|
1065
|
+
}[];
|
1066
|
+
widgetRangeOptions: {
|
1067
|
+
label: string;
|
1068
|
+
value: string;
|
1069
|
+
}[];
|
1070
|
+
startDateNum: import("vue").Ref<any>;
|
1071
|
+
endDateNum: import("vue").Ref<any>;
|
1072
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
1073
|
+
filterType: {
|
1074
|
+
type: StringConstructor;
|
1075
|
+
required: true;
|
1076
|
+
};
|
1077
|
+
modelValue: {
|
1078
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
1079
|
+
default: null;
|
1080
|
+
};
|
1081
|
+
presetVal: {
|
1082
|
+
type: StringConstructor;
|
1083
|
+
default: null;
|
1084
|
+
};
|
1085
|
+
dateType: {
|
1086
|
+
type: StringConstructor;
|
1087
|
+
};
|
1088
|
+
isDateDisabled: {
|
1089
|
+
type: FunctionConstructor;
|
1090
|
+
};
|
1091
|
+
timeDisabled: {
|
1092
|
+
type: FunctionConstructor;
|
1093
|
+
};
|
1094
|
+
valueFormat: {
|
1095
|
+
type: StringConstructor;
|
1096
|
+
};
|
1097
|
+
}>> & {
|
1098
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
1099
|
+
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
1100
|
+
}>>;
|
1101
|
+
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
1102
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
1103
|
+
presetValCp: import("vue").WritableComputedRef<string>;
|
1104
|
+
handleChange: (val: any, type: "start" | "end") => void;
|
1105
|
+
NSelect: any;
|
1106
|
+
NInputNumber: any;
|
1107
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1108
|
+
filterType: {
|
1109
|
+
type: StringConstructor;
|
1110
|
+
required: true;
|
1111
|
+
};
|
1112
|
+
modelValue: {
|
1113
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
1114
|
+
default: null;
|
1115
|
+
};
|
1116
|
+
presetVal: {
|
1117
|
+
type: StringConstructor;
|
1118
|
+
default: null;
|
1119
|
+
};
|
1120
|
+
dateType: {
|
1121
|
+
type: StringConstructor;
|
1122
|
+
};
|
1123
|
+
isDateDisabled: {
|
1124
|
+
type: FunctionConstructor;
|
1125
|
+
};
|
1126
|
+
timeDisabled: {
|
1127
|
+
type: FunctionConstructor;
|
1128
|
+
};
|
1129
|
+
valueFormat: {
|
1130
|
+
type: StringConstructor;
|
1131
|
+
};
|
1132
|
+
}>> & {
|
1133
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
1134
|
+
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
1135
|
+
}, {
|
1136
|
+
modelValue: string | number | unknown[];
|
1137
|
+
presetVal: string;
|
1138
|
+
}>;
|
911
1139
|
WidgetValEnums: {
|
912
1140
|
CUSTOM: string;
|
913
1141
|
FIRST_VAL: string;
|
@@ -940,6 +1168,10 @@ declare const DateRange: import("vue").DefineComponent<{
|
|
940
1168
|
LAST_YEAR: string;
|
941
1169
|
};
|
942
1170
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal" | "update:customDate")[], "update:modelValue" | "update:presetVal" | "update:customDate", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1171
|
+
item: {
|
1172
|
+
type: ObjectConstructor;
|
1173
|
+
required: true;
|
1174
|
+
};
|
943
1175
|
paramCfg: {
|
944
1176
|
type: ObjectConstructor;
|
945
1177
|
default: null;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ConditionEnums } from '../../../types/enums.js';
|
2
2
|
|
3
|
-
const
|
3
|
+
const baseConditionOptions = [{
|
4
4
|
label: function() {
|
5
5
|
var _a, _b, _c;
|
6
6
|
try {
|
@@ -21,5 +21,77 @@ const conditionOptions = [{
|
|
21
21
|
}(),
|
22
22
|
value: ConditionEnums.NULL
|
23
23
|
}];
|
24
|
+
const dateConditionOptions = [
|
25
|
+
{
|
26
|
+
label: function() {
|
27
|
+
var _a, _b, _c;
|
28
|
+
try {
|
29
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.376")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.376")) || "\u81EA\u5B9A\u4E49";
|
30
|
+
} catch (e) {
|
31
|
+
return "\u81EA\u5B9A\u4E49";
|
32
|
+
}
|
33
|
+
}(),
|
34
|
+
value: ConditionEnums.EQUAL
|
35
|
+
},
|
36
|
+
{
|
37
|
+
label: "\u81EA\u5B9A\u4E49\u8303\u56F4",
|
38
|
+
value: ConditionEnums.CUSTOM_RANGE
|
39
|
+
},
|
40
|
+
{
|
41
|
+
label: function() {
|
42
|
+
var _a, _b, _c;
|
43
|
+
try {
|
44
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.338")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.338")) || "\u4E3A\u7A7A";
|
45
|
+
} catch (e) {
|
46
|
+
return "\u4E3A\u7A7A";
|
47
|
+
}
|
48
|
+
}(),
|
49
|
+
value: ConditionEnums.NULL
|
50
|
+
},
|
51
|
+
{
|
52
|
+
label: function() {
|
53
|
+
var _a, _b, _c;
|
54
|
+
try {
|
55
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.672")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.672")) || "\u8FC7\u53BB\u5185";
|
56
|
+
} catch (e) {
|
57
|
+
return "\u8FC7\u53BB\u5185";
|
58
|
+
}
|
59
|
+
}(),
|
60
|
+
value: ConditionEnums.IN_THE_PAST
|
61
|
+
},
|
62
|
+
{
|
63
|
+
label: function() {
|
64
|
+
var _a, _b, _c;
|
65
|
+
try {
|
66
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.673")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.673")) || "\u672A\u6765\u5185";
|
67
|
+
} catch (e) {
|
68
|
+
return "\u672A\u6765\u5185";
|
69
|
+
}
|
70
|
+
}(),
|
71
|
+
value: ConditionEnums.IN_THE_FUTURE
|
72
|
+
},
|
73
|
+
{
|
74
|
+
label: function() {
|
75
|
+
var _a, _b, _c;
|
76
|
+
try {
|
77
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.674")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.674")) || "\u8FC7\u53BB\u7B2C";
|
78
|
+
} catch (e) {
|
79
|
+
return "\u8FC7\u53BB\u7B2C";
|
80
|
+
}
|
81
|
+
}(),
|
82
|
+
value: ConditionEnums.IN_THE_PAST_DI
|
83
|
+
},
|
84
|
+
{
|
85
|
+
label: function() {
|
86
|
+
var _a, _b, _c;
|
87
|
+
try {
|
88
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.675")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.675")) || "\u672A\u6765\u7B2C";
|
89
|
+
} catch (e) {
|
90
|
+
return "\u672A\u6765\u7B2C";
|
91
|
+
}
|
92
|
+
}(),
|
93
|
+
value: ConditionEnums.IN_THE_FUTURE_DI
|
94
|
+
}
|
95
|
+
];
|
24
96
|
|
25
|
-
export {
|
97
|
+
export { baseConditionOptions, dateConditionOptions };
|