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
@@ -1,6 +1,6 @@
|
|
1
|
-
import { WidgetOptionEnums, WidgetTypeEnums, selectModeEnums, WidgetValEnums } from '../types/enums.js';
|
1
|
+
import { WidgetOptionEnums, ConditionEnums, WidgetTypeEnums, selectModeEnums, WidgetValEnums } from '../types/enums.js';
|
2
2
|
import { isString } from 'lodash-es';
|
3
|
-
import { formatDateRangeInfo, presetValToTimestamp } from '../components/render-widget/helpers/presetValToTimestamp.js';
|
3
|
+
import { formatSpecialDateRange, formatDateRangeInfo, presetValToTimestamp } from '../components/render-widget/helpers/presetValToTimestamp.js';
|
4
4
|
import { DatePresetValEnums } from '../components/render-widget/enums.js';
|
5
5
|
import { parseDateShortcuts } from '../tool/date.js';
|
6
6
|
import moment from 'moment';
|
@@ -13,6 +13,7 @@ const advanceOptionSettingMap = {
|
|
13
13
|
[WidgetOptionEnums.PAST_TIME]: "2",
|
14
14
|
[WidgetOptionEnums.FUTURE_TIME]: "3"
|
15
15
|
};
|
16
|
+
const specialDateRange = [ConditionEnums.CUSTOM_RANGE, ConditionEnums.IN_THE_PAST, ConditionEnums.IN_THE_FUTURE, ConditionEnums.IN_THE_PAST_DI, ConditionEnums.IN_THE_FUTURE_DI];
|
16
17
|
const limitValue = 10;
|
17
18
|
function useAdvanced() {
|
18
19
|
function transformDataToFieldCfg(advancedFilterCfg) {
|
@@ -153,10 +154,10 @@ function useAdvanced() {
|
|
153
154
|
}
|
154
155
|
if (conObj.unit && conObj.unit !== DatePresetValEnums.CUSTOM) {
|
155
156
|
if (curQuickSearchObj.type === WidgetTypeEnums.DATE) {
|
156
|
-
curValue = curQuickSearchObj.rangeFilter ? formatDateRangeInfo(conObj.unit, "YYYY-MM-DD", curQuickSearchObj.optionType) : presetValToTimestamp(conObj.unit, "YYYY-MM-DD");
|
157
|
+
curValue = curQuickSearchObj.rangeFilter ? specialDateRange.includes(conObj.con) ? formatSpecialDateRange(conObj, "YYYY-MM-DD") : formatDateRangeInfo(conObj.unit, "YYYY-MM-DD", curQuickSearchObj.optionType) : presetValToTimestamp(conObj.unit, "YYYY-MM-DD");
|
157
158
|
}
|
158
159
|
if (curQuickSearchObj.type === WidgetTypeEnums.DATE_TIME) {
|
159
|
-
curValue = curQuickSearchObj.rangeFilter ? formatDateRangeInfo(conObj.unit, "YYYY-MM-DD HH:mm:ss", curQuickSearchObj.optionType) : presetValToTimestamp(conObj.unit, "YYYY-MM-DD HH:mm:ss");
|
160
|
+
curValue = curQuickSearchObj.rangeFilter ? specialDateRange.includes(conObj.con) ? formatSpecialDateRange(conObj, "YYYY-MM-DD HH:mm:ss") : formatDateRangeInfo(conObj.unit, "YYYY-MM-DD HH:mm:ss", curQuickSearchObj.optionType) : presetValToTimestamp(conObj.unit, "YYYY-MM-DD HH:mm:ss");
|
160
161
|
}
|
161
162
|
}
|
162
163
|
if (conObj.customDate && conObj.unit === DatePresetValEnums.CUSTOM) {
|
@@ -181,7 +181,14 @@ const widgetDateRangeOptions = [{
|
|
181
181
|
}(),
|
182
182
|
value: DateRangeOutDefEnums.PAST_HALF_YEAR
|
183
183
|
}, {
|
184
|
-
label:
|
184
|
+
label: function() {
|
185
|
+
var _a, _b, _c;
|
186
|
+
try {
|
187
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.667")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.667")) || "\u8FD1\u4E00\u5E74";
|
188
|
+
} catch (e) {
|
189
|
+
return "\u8FD1\u4E00\u5E74";
|
190
|
+
}
|
191
|
+
}(),
|
185
192
|
value: DateRangeOutDefEnums.PAST_YEAR
|
186
193
|
}];
|
187
194
|
|
@@ -80,7 +80,12 @@ const WidgetValEnums = {
|
|
80
80
|
};
|
81
81
|
const ConditionEnums = {
|
82
82
|
NULL: "NULL",
|
83
|
-
EQUAL: "EQ"
|
83
|
+
EQUAL: "EQ",
|
84
|
+
CUSTOM_RANGE: "CUSTOM_RANGE",
|
85
|
+
IN_THE_PAST: "IN_THE_PAST",
|
86
|
+
IN_THE_FUTURE: "IN_THE_FUTURE",
|
87
|
+
IN_THE_PAST_DI: "IN_THE_PAST_DI",
|
88
|
+
IN_THE_FUTURE_DI: "IN_THE_FUTURE_DI"
|
84
89
|
};
|
85
90
|
|
86
91
|
export { ConditionEnums, DataTypeEnums, FieldTypeEnums, MappingMethodEnums, WidgetOptionEnums, WidgetTypeEnums, WidgetValEnums, selectModeEnums };
|
@@ -4,27 +4,59 @@ declare const TimePicker: SFCWithInstall<import("vue").DefineComponent<{
|
|
4
4
|
type: import("vue").PropType<string | false | HTMLElement>;
|
5
5
|
default: string;
|
6
6
|
};
|
7
|
+
shortcuts: {
|
8
|
+
type: import("vue").PropType<string[]>;
|
9
|
+
default: () => never[];
|
10
|
+
};
|
7
11
|
}, {
|
8
12
|
attrs: {
|
9
13
|
[x: string]: unknown;
|
10
14
|
};
|
15
|
+
emit: (event: "update:formatted-value" | "update:show", ...args: any[]) => void;
|
11
16
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
12
17
|
to: {
|
13
18
|
type: import("vue").PropType<string | false | HTMLElement>;
|
14
19
|
default: string;
|
15
20
|
};
|
16
|
-
|
17
|
-
|
21
|
+
shortcuts: {
|
22
|
+
type: import("vue").PropType<string[]>;
|
23
|
+
default: () => never[];
|
24
|
+
};
|
25
|
+
}>> & {
|
26
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
27
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
28
|
+
}>>;
|
29
|
+
timePickerRef: import("vue").Ref<import("../../shared/types").AnyObject | null | undefined>;
|
30
|
+
isTimePickerOpen: import("vue").Ref<boolean>;
|
31
|
+
panelContainer: import("vue").Ref<HTMLElement | null | undefined>;
|
32
|
+
timePickerAttrs: import("vue").ComputedRef<{
|
33
|
+
[x: string]: unknown;
|
34
|
+
}>;
|
18
35
|
formatRef: import("vue").ComputedRef<string>;
|
36
|
+
handleFormattedTimeUpdate: (value: string) => void;
|
37
|
+
handleShortcutClick: (shortcut: string) => void;
|
38
|
+
isDisabled: (value: string) => any;
|
39
|
+
onUpdateShow: (show: boolean) => void;
|
19
40
|
focus: () => any;
|
20
41
|
blur: () => any;
|
21
42
|
NTimePicker: any;
|
22
|
-
|
43
|
+
NScrollbar: any;
|
44
|
+
NButton: any;
|
45
|
+
NSpace: any;
|
46
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:formatted-value" | "update:show")[], "update:formatted-value" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
23
47
|
to: {
|
24
48
|
type: import("vue").PropType<string | false | HTMLElement>;
|
25
49
|
default: string;
|
26
50
|
};
|
27
|
-
|
51
|
+
shortcuts: {
|
52
|
+
type: import("vue").PropType<string[]>;
|
53
|
+
default: () => never[];
|
54
|
+
};
|
55
|
+
}>> & {
|
56
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
57
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
58
|
+
}, {
|
59
|
+
shortcuts: string[];
|
28
60
|
to: string | false | HTMLElement;
|
29
61
|
}>>;
|
30
62
|
export default TimePicker;
|
@@ -5,27 +5,59 @@ declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
type: PropType<string | false | HTMLElement>;
|
6
6
|
default: string;
|
7
7
|
};
|
8
|
+
shortcuts: {
|
9
|
+
type: PropType<string[]>;
|
10
|
+
default: () => never[];
|
11
|
+
};
|
8
12
|
}, {
|
9
13
|
attrs: {
|
10
14
|
[x: string]: unknown;
|
11
15
|
};
|
16
|
+
emit: (event: "update:formatted-value" | "update:show", ...args: any[]) => void;
|
12
17
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
13
18
|
to: {
|
14
19
|
type: PropType<string | false | HTMLElement>;
|
15
20
|
default: string;
|
16
21
|
};
|
17
|
-
|
18
|
-
|
22
|
+
shortcuts: {
|
23
|
+
type: PropType<string[]>;
|
24
|
+
default: () => never[];
|
25
|
+
};
|
26
|
+
}>> & {
|
27
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
28
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
29
|
+
}>>;
|
30
|
+
timePickerRef: import("vue").Ref<AnyObject | null | undefined>;
|
31
|
+
isTimePickerOpen: import("vue").Ref<boolean>;
|
32
|
+
panelContainer: import("vue").Ref<HTMLElement | null | undefined>;
|
33
|
+
timePickerAttrs: import("vue").ComputedRef<{
|
34
|
+
[x: string]: unknown;
|
35
|
+
}>;
|
19
36
|
formatRef: import("vue").ComputedRef<string>;
|
37
|
+
handleFormattedTimeUpdate: (value: string) => void;
|
38
|
+
handleShortcutClick: (shortcut: string) => void;
|
39
|
+
isDisabled: (value: string) => any;
|
40
|
+
onUpdateShow: (show: boolean) => void;
|
20
41
|
focus: () => any;
|
21
42
|
blur: () => any;
|
22
43
|
NTimePicker: any;
|
23
|
-
|
44
|
+
NScrollbar: any;
|
45
|
+
NButton: any;
|
46
|
+
NSpace: any;
|
47
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:formatted-value" | "update:show")[], "update:formatted-value" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
24
48
|
to: {
|
25
49
|
type: PropType<string | false | HTMLElement>;
|
26
50
|
default: string;
|
27
51
|
};
|
28
|
-
|
52
|
+
shortcuts: {
|
53
|
+
type: PropType<string[]>;
|
54
|
+
default: () => never[];
|
55
|
+
};
|
56
|
+
}>> & {
|
57
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
58
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
59
|
+
}, {
|
60
|
+
shortcuts: string[];
|
29
61
|
to: string | false | HTMLElement;
|
30
62
|
}>;
|
31
63
|
export default _default;
|
@@ -1,13 +1,14 @@
|
|
1
|
-
import { defineComponent, useAttrs, ref, computed, openBlock,
|
2
|
-
import { NTimePicker } from 'naive-ui';
|
1
|
+
import { defineComponent, useAttrs, ref, computed, openBlock, createElementBlock, createVNode, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, createCommentVNode, createBlock, Teleport, Fragment, createTextVNode, toDisplayString, nextTick } from 'vue';
|
2
|
+
import { NTimePicker, NScrollbar, NSpace, NButton } from 'naive-ui';
|
3
3
|
import '../../../shared/utils/index.js';
|
4
4
|
import { useDateTime } from '../../../shared/hooks/useDateTime.js';
|
5
|
-
import 'lodash-es';
|
5
|
+
import { isFunction } from 'lodash-es';
|
6
6
|
import '@vue/shared';
|
7
7
|
import '@vueuse/shared';
|
8
8
|
import '../../../shared/hooks/selectHooks/useSearchContent.js';
|
9
9
|
import '@vicons/ionicons5';
|
10
10
|
import '../../../shared/hooks/useScrollLoading.js';
|
11
|
+
import { parse, isValid, getHours, getMinutes, getSeconds } from 'date-fns';
|
11
12
|
|
12
13
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
13
14
|
__name: "TimePicker",
|
@@ -15,24 +16,78 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
16
|
to: {
|
16
17
|
type: [Object, String, Boolean],
|
17
18
|
default: "body"
|
19
|
+
},
|
20
|
+
shortcuts: {
|
21
|
+
type: Array,
|
22
|
+
default: () => []
|
18
23
|
}
|
19
24
|
},
|
25
|
+
emits: ["update:formatted-value", "update:show"],
|
20
26
|
setup(__props, {
|
21
|
-
expose
|
27
|
+
expose,
|
28
|
+
emit
|
22
29
|
}) {
|
30
|
+
const props = __props;
|
23
31
|
const attrs = useAttrs();
|
24
|
-
const timePickerRef = ref(
|
32
|
+
const timePickerRef = ref();
|
33
|
+
const isTimePickerOpen = ref(false);
|
34
|
+
const panelContainer = ref();
|
35
|
+
const timePickerAttrs = computed(() => {
|
36
|
+
const {
|
37
|
+
shortcuts,
|
38
|
+
...restAttrs
|
39
|
+
} = attrs;
|
40
|
+
return restAttrs;
|
41
|
+
});
|
25
42
|
const formatRef = computed(() => {
|
26
43
|
if (Reflect.get(attrs, "format"))
|
27
44
|
return attrs["format"];
|
28
45
|
return "HH:mm:ss";
|
29
46
|
});
|
47
|
+
const handleFormattedTimeUpdate = (value) => {
|
48
|
+
emit("update:formatted-value", value);
|
49
|
+
};
|
50
|
+
const handleShortcutClick = (shortcut) => {
|
51
|
+
const timeValue = shortcut;
|
52
|
+
emit("update:formatted-value", timeValue);
|
53
|
+
emit("update:show", false);
|
54
|
+
isTimePickerOpen.value = false;
|
55
|
+
};
|
56
|
+
const isDisabled = (value) => {
|
57
|
+
const parsedTime = parse(value, formatRef.value, new Date());
|
58
|
+
if (!isValid(parsedTime))
|
59
|
+
return false;
|
60
|
+
const hours = getHours(parsedTime);
|
61
|
+
const minutes = getMinutes(parsedTime);
|
62
|
+
const seconds = getSeconds(parsedTime);
|
63
|
+
const attrs2 = timePickerAttrs.value;
|
64
|
+
const isHourDisabled = isFunction(attrs2.isHourDisabled) ? attrs2.isHourDisabled(hours) : false;
|
65
|
+
const isMinuteDisabled = isFunction(attrs2.isMinuteDisabled) ? attrs2.isMinuteDisabled(minutes, hours) : false;
|
66
|
+
const isSecondDisabled = isFunction(attrs2.isSecondDisabled) ? attrs2.isSecondDisabled(seconds, minutes, hours) : false;
|
67
|
+
return isHourDisabled || isMinuteDisabled || isSecondDisabled;
|
68
|
+
};
|
69
|
+
const onUpdateShow = (show) => {
|
70
|
+
emit("update:show", show);
|
71
|
+
isTimePickerOpen.value = show;
|
72
|
+
if (show && props.shortcuts && props.shortcuts.length > 0) {
|
73
|
+
nextTick(() => {
|
74
|
+
var _a, _b;
|
75
|
+
const panel = (_b = (_a = timePickerRef.value) == null ? void 0 : _a.panelInstRef) == null ? void 0 : _b.$el;
|
76
|
+
const teleportTo = panel == null ? void 0 : panel.querySelector(".n-time-picker-cols");
|
77
|
+
if (teleportTo) {
|
78
|
+
panelContainer.value = teleportTo;
|
79
|
+
}
|
80
|
+
});
|
81
|
+
} else {
|
82
|
+
panelContainer.value = null;
|
83
|
+
}
|
84
|
+
};
|
30
85
|
const {
|
31
86
|
focus,
|
32
87
|
blur
|
33
88
|
} = useDateTime(timePickerRef, {
|
34
89
|
formatRef,
|
35
|
-
attrs
|
90
|
+
attrs: timePickerAttrs
|
36
91
|
});
|
37
92
|
expose({
|
38
93
|
$timePicker: timePickerRef,
|
@@ -40,18 +95,48 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
40
95
|
blur
|
41
96
|
});
|
42
97
|
return (_ctx, _cache) => {
|
43
|
-
return openBlock(),
|
98
|
+
return openBlock(), createElementBlock("div", null, [createVNode(unref(NTimePicker), mergeProps({
|
44
99
|
ref_key: "timePickerRef",
|
45
|
-
ref: timePickerRef
|
46
|
-
|
47
|
-
|
100
|
+
ref: timePickerRef
|
101
|
+
}, unref(timePickerAttrs), {
|
102
|
+
to: __props.to,
|
103
|
+
"onUpdate:formattedValue": handleFormattedTimeUpdate,
|
104
|
+
"onUpdate:show": onUpdateShow
|
105
|
+
}), createSlots({
|
48
106
|
_: 2
|
49
|
-
}, [renderList(_ctx.$slots, (
|
107
|
+
}, [renderList(_ctx.$slots, (_, k) => {
|
50
108
|
return {
|
51
109
|
name: k,
|
52
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, k)])
|
110
|
+
fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(slotProps || {})))])
|
53
111
|
};
|
54
|
-
})]),
|
112
|
+
})]), 1040, ["to"]), createCommentVNode(" \u5FEB\u6377\u9009\u9879 - \u901A\u8FC7CSS\u63D2\u5165\u5230\u9762\u677F\u5185\u90E8 "), __props.shortcuts && __props.shortcuts.length > 0 && isTimePickerOpen.value && panelContainer.value ? (openBlock(), createBlock(Teleport, {
|
113
|
+
key: 0,
|
114
|
+
to: panelContainer.value
|
115
|
+
}, [createVNode(unref(NScrollbar), {
|
116
|
+
style: {
|
117
|
+
"max-height": "255px",
|
118
|
+
"margin": "8px"
|
119
|
+
}
|
120
|
+
}, {
|
121
|
+
default: withCtx(() => [createVNode(unref(NSpace), {
|
122
|
+
vertical: "",
|
123
|
+
wrap: false
|
124
|
+
}, {
|
125
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.shortcuts, (shortcut) => {
|
126
|
+
return openBlock(), createBlock(unref(NButton), {
|
127
|
+
size: "tiny",
|
128
|
+
disabled: isDisabled(shortcut),
|
129
|
+
key: shortcut,
|
130
|
+
onClick: ($event) => handleShortcutClick(shortcut)
|
131
|
+
}, {
|
132
|
+
default: withCtx(() => [createTextVNode(toDisplayString(shortcut), 1)]),
|
133
|
+
_: 2
|
134
|
+
}, 1032, ["disabled", "onClick"]);
|
135
|
+
}), 128))]),
|
136
|
+
_: 1
|
137
|
+
})]),
|
138
|
+
_: 1
|
139
|
+
})], 8, ["to"])) : createCommentVNode("v-if", true)]);
|
55
140
|
};
|
56
141
|
}
|
57
142
|
});
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './src/utils';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { vertify } from './src/utils/index.js';
|
@@ -0,0 +1,89 @@
|
|
1
|
+
import { FormRules } from 'naive-ui';
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
3
|
+
verifyUser: {
|
4
|
+
type: FunctionConstructor;
|
5
|
+
required: false;
|
6
|
+
default: () => Promise<void>;
|
7
|
+
};
|
8
|
+
identityVerificationTitle: {
|
9
|
+
type: StringConstructor;
|
10
|
+
required: false;
|
11
|
+
default: string;
|
12
|
+
};
|
13
|
+
token: {
|
14
|
+
type: StringConstructor;
|
15
|
+
required: true;
|
16
|
+
default: string;
|
17
|
+
};
|
18
|
+
modelValue: {
|
19
|
+
type: BooleanConstructor;
|
20
|
+
required: true;
|
21
|
+
};
|
22
|
+
}, {
|
23
|
+
loginCheckUrl: string;
|
24
|
+
DEFAULT_FORM: {
|
25
|
+
account: string;
|
26
|
+
password: string;
|
27
|
+
};
|
28
|
+
message: import("naive-ui").MessageApi;
|
29
|
+
props: {
|
30
|
+
verifyUser: Function;
|
31
|
+
identityVerificationTitle: string;
|
32
|
+
token: string;
|
33
|
+
modelValue: boolean;
|
34
|
+
};
|
35
|
+
emit: (event: "close" | "success" | "update:modelValue" | "afterLeaveComponent", ...args: any[]) => void;
|
36
|
+
form: {
|
37
|
+
account: string;
|
38
|
+
password: string;
|
39
|
+
};
|
40
|
+
rules: FormRules;
|
41
|
+
style: {
|
42
|
+
width: string;
|
43
|
+
};
|
44
|
+
formRef: import("vue").Ref<{
|
45
|
+
validate: import("naive-ui/es/form/src/interface").FormValidate;
|
46
|
+
restoreValidation: () => void;
|
47
|
+
} | null>;
|
48
|
+
loading: import("vue").Ref<boolean>;
|
49
|
+
handleClickClose: () => void;
|
50
|
+
handleAfterLeave: () => void;
|
51
|
+
submitLoginData: () => Promise<false | undefined>;
|
52
|
+
handleValidate: () => void;
|
53
|
+
NSpace: any;
|
54
|
+
NButton: any;
|
55
|
+
NModal: any;
|
56
|
+
NForm: any;
|
57
|
+
NFormItem: any;
|
58
|
+
NInput: any;
|
59
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "success" | "update:modelValue" | "afterLeaveComponent")[], "close" | "success" | "update:modelValue" | "afterLeaveComponent", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
60
|
+
verifyUser: {
|
61
|
+
type: FunctionConstructor;
|
62
|
+
required: false;
|
63
|
+
default: () => Promise<void>;
|
64
|
+
};
|
65
|
+
identityVerificationTitle: {
|
66
|
+
type: StringConstructor;
|
67
|
+
required: false;
|
68
|
+
default: string;
|
69
|
+
};
|
70
|
+
token: {
|
71
|
+
type: StringConstructor;
|
72
|
+
required: true;
|
73
|
+
default: string;
|
74
|
+
};
|
75
|
+
modelValue: {
|
76
|
+
type: BooleanConstructor;
|
77
|
+
required: true;
|
78
|
+
};
|
79
|
+
}>> & {
|
80
|
+
onSuccess?: ((...args: any[]) => any) | undefined;
|
81
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
82
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
83
|
+
onAfterLeaveComponent?: ((...args: any[]) => any) | undefined;
|
84
|
+
}, {
|
85
|
+
token: string;
|
86
|
+
verifyUser: Function;
|
87
|
+
identityVerificationTitle: string;
|
88
|
+
}>;
|
89
|
+
export default _default;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _sfc_main from './IdentityVerification.vue2.js';
|
2
|
+
import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.js';
|
3
|
+
|
4
|
+
var IdentityVerification = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "IdentityVerification.vue"]]);
|
5
|
+
|
6
|
+
export { IdentityVerification as default };
|