@ibiz-template/vue3-components 0.7.31-alpha.0 → 0.7.37-alpha.5
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/dist/chart-IZpj2cdX.js +1 -0
- package/dist/index-2J-iBLG-.js +1 -0
- package/dist/index-Yhyr5LJS.js +1 -0
- package/dist/index-p59-xI3J.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-OUxT4A8O.js → xlsx-util-rAKH_Qlc.js} +1 -1
- package/es/_virtual/_dayjs.mjs +1 -0
- package/es/_virtual/zh-cn.mjs +3 -0
- package/es/common/action-toolbar/action-toolbar.css +1 -1
- package/es/common/action-toolbar/action-toolbar.mjs +2 -2
- package/es/common/coop-alert/coop-alert.d.ts +3 -3
- package/es/common/custom-filter-condition/custom-filter-condition.css +1 -0
- package/es/common/custom-filter-condition/custom-filter-condition.d.ts +998 -0
- package/es/common/custom-filter-condition/custom-filter-condition.mjs +286 -0
- package/es/common/custom-theme/custom-theme-model.mjs +62 -0
- package/es/common/custom-theme/custom-theme.controller.mjs +6 -5
- package/es/common/custom-theme/custom-theme.css +1 -1
- package/es/common/emoji-select/emoji-select.d.ts +1 -1
- package/es/common/index.mjs +2 -0
- package/es/common/pagination/pagination.css +1 -1
- package/es/common/pagination/pagination.mjs +1 -1
- package/es/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.css +1 -1
- package/es/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.mjs +4 -1
- package/es/common/pql-editor/pql-editor.d.ts +6 -0
- package/es/common/pql-editor/pql-editor.mjs +229 -130
- package/es/common/pql-editor/utils/index.d.ts +8 -4
- package/es/common/pql-editor/utils/index.mjs +193 -69
- package/es/common/rawitem/rawitem.mjs +16 -0
- package/es/common/split/split.d.ts +1 -1
- package/es/control/app-menu/app-menu.css +1 -1
- package/es/control/app-menu/app-menu.mjs +3 -2
- package/es/control/caption-bar/caption-bar.css +1 -1
- package/es/control/caption-bar/caption-bar.d.ts +1 -0
- package/es/control/caption-bar/caption-bar.mjs +12 -3
- package/es/control/caption-bar/index.d.ts +1 -0
- package/es/control/chart/chart.mjs +1 -1
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +21 -3
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +35 -10
- package/es/control/dashboard/dashboard-design/dashboard-design.css +1 -1
- package/es/control/dashboard/dashboard-design/dashboard-design.mjs +2 -2
- package/es/control/dashboard/dashboard.d.ts +2 -2
- package/es/control/dashboard/dashboard.mjs +41 -7
- package/es/control/dashboard/index.d.ts +1 -1
- package/es/control/dashboard/index.mjs +4 -1
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.css +1 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.d.ts +64 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.mjs +341 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/index.d.ts +0 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/index.mjs +1 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-item/filter-portlet-item.css +1 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-item/filter-portlet-item.d.ts +41 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-item/filter-portlet-item.mjs +130 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet.css +1 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet.d.ts +30 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet.mjs +87 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet.provider.d.ts +15 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet.provider.mjs +21 -0
- package/es/control/dashboard/portlet/filter-portlet/index.d.ts +28 -0
- package/es/control/dashboard/portlet/filter-portlet/index.mjs +14 -0
- package/es/control/dashboard/portlet/index.d.ts +1 -0
- package/es/control/dashboard/portlet/index.mjs +2 -0
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +1 -1
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/form/form-detail/form-druipart/form-druipart.css +1 -1
- package/es/control/form/form-detail/form-group-panel/form-group-panel.css +1 -1
- package/es/control/form/form-detail/form-group-panel/form-group-panel.mjs +6 -2
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
- package/es/control/form/form-detail/form-item/form-item.mjs +8 -3
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +6 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +4 -3
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.mjs +6 -12
- package/es/control/form/form-detail/form-rawitem/form-rawitem.css +1 -1
- package/es/control/form/form-detail/form-rawitem/form-rawitem.mjs +8 -1
- package/es/control/grid/grid/grid-control.util.mjs +1 -1
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.mjs +5 -1
- package/es/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.mjs +2 -2
- package/es/control/index.mjs +2 -0
- package/es/control/search-bar/filter-tree/filter-tree.d.ts +16 -1
- package/es/control/search-bar/filter-tree/filter-tree.mjs +12 -4
- package/es/control/search-bar/quick-search-select/quick-search-select.css +1 -1
- package/es/control/search-bar/quick-search-select/quick-search-select.mjs +1 -0
- package/es/control/search-bar/search-bar.css +1 -1
- package/es/control/search-bar/search-bar.mjs +2 -0
- package/es/control/search-bar/search-groups/search-groups.mjs +8 -5
- package/es/control/toolbar/export-excel/export-excel.css +1 -1
- package/es/control/toolbar/toolbar.css +1 -1
- package/es/control/tree/tree.css +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/tree-grid-ex-edit-column.mjs +2 -2
- package/es/control/tree-grid-ex/tree-grid-ex.mjs +1 -1
- package/es/control/wizard-panel/wizard-panel.css +1 -1
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.d.ts +1 -1
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.d.ts +35 -1
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.mjs +26 -55
- package/es/editor/date-range-select/date-range-select-picker/components/quarter-range-select/quarter-range-select.css +1 -0
- package/es/editor/date-range-select/date-range-select-picker/components/quarter-range-select/quarter-range-select.d.ts +51 -0
- package/es/editor/date-range-select/date-range-select-picker/components/quarter-range-select/quarter-range-select.mjs +335 -0
- package/es/editor/date-range-select/date-range-select-picker/components/week-range-select/week-range-select.css +1 -0
- package/es/editor/date-range-select/date-range-select-picker/components/week-range-select/week-range-select.d.ts +65 -0
- package/es/editor/date-range-select/date-range-select-picker/components/week-range-select/week-range-select.mjs +260 -0
- package/es/editor/date-range-select/date-range-select-picker/components/year-range-select/year-range-select.css +1 -0
- package/es/editor/date-range-select/date-range-select-picker/components/year-range-select/year-range-select.d.ts +52 -0
- package/es/editor/date-range-select/date-range-select-picker/components/year-range-select/year-range-select.mjs +258 -0
- package/es/editor/date-range-select/date-range-select-picker/date-range-select.css +1 -0
- package/es/editor/date-range-select/date-range-select-picker/date-range-select.d.ts +64 -0
- package/es/editor/date-range-select/date-range-select-picker/date-range-select.mjs +339 -0
- package/es/editor/date-range-select/date-range-select.controller.d.ts +328 -0
- package/es/editor/date-range-select/date-range-select.controller.mjs +859 -0
- package/es/editor/date-range-select/date-range-select.provider.d.ts +8 -0
- package/es/editor/date-range-select/date-range-select.provider.mjs +25 -0
- package/es/editor/date-range-select/index.d.ts +3 -0
- package/es/editor/date-range-select/index.mjs +5 -0
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.d.ts +3 -0
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +48 -22
- package/es/editor/index.mjs +8 -0
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.mjs +32 -32
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.css +1 -1
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.mjs +17 -2
- package/es/editor/raw/ibiz-raw/ibiz-raw.mjs +6 -7
- package/es/editor/span/span/span.css +1 -1
- package/es/editor/span/span/span.mjs +2 -0
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +1 -0
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +1 -0
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.mjs +4 -2
- package/es/editor/upload/use/use-iview-upload.d.ts +1 -0
- package/es/editor/upload/use/use-iview-upload.mjs +37 -0
- package/es/index.mjs +2 -0
- package/es/interface/i-field.d.ts +66 -0
- package/es/interface/i-field.mjs +1 -0
- package/es/interface/i-filter-condition.d.ts +52 -0
- package/es/interface/i-filter-condition.mjs +1 -0
- package/es/interface/i-pql-item.d.ts +1 -0
- package/es/interface/i-pql-node-item.d.ts +35 -0
- package/es/interface/i-pql-node-item.mjs +1 -0
- package/es/interface/index.d.ts +3 -0
- package/es/interface/index.mjs +3 -0
- package/es/locale/en/index.d.ts +78 -1
- package/es/locale/en/index.mjs +74 -3
- package/es/locale/zh-CN/index.d.ts +78 -1
- package/es/locale/zh-CN/index.mjs +74 -3
- package/es/node_modules/.pnpm/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +15 -0
- package/es/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/es/panel-component/coop-pos/coop-pos.controller.d.ts +17 -4
- package/es/panel-component/coop-pos/coop-pos.controller.mjs +48 -4
- package/es/panel-component/coop-pos/coop-pos.css +1 -1
- package/es/panel-component/coop-pos/coop-pos.d.ts +12 -0
- package/es/panel-component/coop-pos/coop-pos.mjs +20 -4
- package/es/panel-component/coop-pos/coop-pos.state.d.ts +14 -0
- package/es/panel-component/coop-pos/coop-pos.state.mjs +14 -0
- package/es/panel-component/coop-pos/index.d.ts +1 -0
- package/es/panel-component/nav-tabs/nav-tabs.css +1 -1
- package/es/panel-component/panel-app-login-view/panel-app-login-view.css +1 -1
- package/es/panel-component/panel-app-title/panel-app-title.controller.d.ts +18 -3
- package/es/panel-component/panel-app-title/panel-app-title.controller.mjs +28 -0
- package/es/panel-component/panel-app-title/panel-app-title.css +1 -1
- package/es/panel-component/panel-app-title/panel-app-title.mjs +46 -3
- package/es/panel-component/panel-button/index.d.ts +1 -1
- package/es/panel-component/panel-button/panel-button.d.ts +1 -1
- package/es/panel-component/panel-exp-header/panel-exp-header.css +1 -1
- package/es/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
- package/es/panel-component/short-cut/short-cut.css +1 -1
- package/es/util/app-modal/app-modal-component.css +1 -1
- package/es/util/fullscreen/fullscreen-util.d.ts +7 -0
- package/es/util/fullscreen/fullscreen-util.mjs +9 -0
- package/es/util/open-view-util/open-view-util.d.ts +11 -0
- package/es/util/open-view-util/open-view-util.mjs +21 -0
- package/es/util/wang-editor-util/wang-editor-util.d.ts +1 -0
- package/es/util/wang-editor-util/wang-editor-util.mjs +12 -7
- package/es/view/login-view/login-view.css +1 -1
- package/es/view/share-view/share-view.css +1 -1
- package/es/view-engine/edit-view.engine.d.ts +17 -0
- package/es/view-engine/edit-view.engine.mjs +73 -36
- package/es/web-app/components/modal-router-shell/modal-router-shell.mjs +1 -1
- package/es/web-app/create-vue-app.mjs +8 -0
- package/lib/_virtual/_dayjs.cjs +9 -0
- package/lib/_virtual/zh-cn.cjs +5 -0
- package/lib/common/action-toolbar/action-toolbar.cjs +2 -2
- package/lib/common/action-toolbar/action-toolbar.css +1 -1
- package/lib/common/custom-filter-condition/custom-filter-condition.cjs +288 -0
- package/lib/common/custom-filter-condition/custom-filter-condition.css +1 -0
- package/lib/common/custom-theme/custom-theme-model.cjs +62 -0
- package/lib/common/custom-theme/custom-theme.controller.cjs +6 -5
- package/lib/common/custom-theme/custom-theme.css +1 -1
- package/lib/common/index.cjs +2 -0
- package/lib/common/pagination/pagination.cjs +1 -1
- package/lib/common/pagination/pagination.css +1 -1
- package/lib/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.cjs +4 -1
- package/lib/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.css +1 -1
- package/lib/common/pql-editor/pql-editor.cjs +228 -129
- package/lib/common/pql-editor/utils/index.cjs +195 -68
- package/lib/common/rawitem/rawitem.cjs +16 -0
- package/lib/control/app-menu/app-menu.cjs +3 -2
- package/lib/control/app-menu/app-menu.css +1 -1
- package/lib/control/caption-bar/caption-bar.cjs +11 -2
- package/lib/control/caption-bar/caption-bar.css +1 -1
- package/lib/control/chart/chart.cjs +1 -1
- package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +34 -9
- package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +2 -2
- package/lib/control/dashboard/dashboard-design/dashboard-design.css +1 -1
- package/lib/control/dashboard/dashboard.cjs +40 -6
- package/lib/control/dashboard/index.cjs +5 -0
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.cjs +343 -0
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.css +1 -0
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/index.cjs +3 -0
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-item/filter-portlet-item.cjs +132 -0
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-item/filter-portlet-item.css +1 -0
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet.cjs +89 -0
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet.css +1 -0
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet.provider.cjs +23 -0
- package/lib/control/dashboard/portlet/filter-portlet/index.cjs +20 -0
- package/lib/control/dashboard/portlet/index.cjs +4 -0
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +1 -1
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/form/form-detail/form-druipart/form-druipart.css +1 -1
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +6 -2
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.css +1 -1
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
- package/lib/control/form/form-detail/form-item/form-item.cjs +8 -3
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +3 -2
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.cjs +5 -11
- package/lib/control/form/form-detail/form-rawitem/form-rawitem.cjs +8 -1
- package/lib/control/form/form-detail/form-rawitem/form-rawitem.css +1 -1
- package/lib/control/grid/grid/grid-control.util.cjs +1 -1
- package/lib/control/grid/grid/grid.cjs +5 -1
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.cjs +2 -2
- package/lib/control/index.cjs +22 -18
- package/lib/control/search-bar/filter-tree/filter-tree.cjs +12 -4
- package/lib/control/search-bar/quick-search-select/quick-search-select.cjs +1 -0
- package/lib/control/search-bar/quick-search-select/quick-search-select.css +1 -1
- package/lib/control/search-bar/search-bar.cjs +2 -0
- package/lib/control/search-bar/search-bar.css +1 -1
- package/lib/control/search-bar/search-groups/search-groups.cjs +8 -5
- package/lib/control/toolbar/export-excel/export-excel.css +1 -1
- package/lib/control/toolbar/toolbar.css +1 -1
- package/lib/control/tree/tree.css +1 -1
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/tree-grid-ex-edit-column.cjs +2 -2
- package/lib/control/tree-grid-ex/tree-grid-ex.cjs +1 -1
- package/lib/control/wizard-panel/wizard-panel.css +1 -1
- package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.cjs +26 -55
- package/lib/editor/date-range-select/date-range-select-picker/components/quarter-range-select/quarter-range-select.cjs +339 -0
- package/lib/editor/date-range-select/date-range-select-picker/components/quarter-range-select/quarter-range-select.css +1 -0
- package/lib/editor/date-range-select/date-range-select-picker/components/week-range-select/week-range-select.cjs +264 -0
- package/lib/editor/date-range-select/date-range-select-picker/components/week-range-select/week-range-select.css +1 -0
- package/lib/editor/date-range-select/date-range-select-picker/components/year-range-select/year-range-select.cjs +262 -0
- package/lib/editor/date-range-select/date-range-select-picker/components/year-range-select/year-range-select.css +1 -0
- package/lib/editor/date-range-select/date-range-select-picker/date-range-select.cjs +341 -0
- package/lib/editor/date-range-select/date-range-select-picker/date-range-select.css +1 -0
- package/lib/editor/date-range-select/date-range-select.controller.cjs +861 -0
- package/lib/editor/date-range-select/date-range-select.provider.cjs +27 -0
- package/lib/editor/date-range-select/index.cjs +11 -0
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +47 -21
- package/lib/editor/index.cjs +8 -0
- package/lib/editor/list-box/ibiz-list-box/ibiz-list-box.cjs +32 -32
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.cjs +17 -2
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.css +1 -1
- package/lib/editor/raw/ibiz-raw/ibiz-raw.cjs +6 -7
- package/lib/editor/span/span/span.cjs +2 -0
- package/lib/editor/span/span/span.css +1 -1
- package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.cjs +4 -2
- package/lib/editor/upload/use/use-iview-upload.cjs +37 -0
- package/lib/index.cjs +52 -48
- package/lib/interface/i-field.cjs +3 -0
- package/lib/interface/i-filter-condition.cjs +3 -0
- package/lib/interface/i-pql-node-item.cjs +3 -0
- package/lib/interface/index.cjs +3 -0
- package/lib/locale/en/index.cjs +74 -3
- package/lib/locale/zh-CN/index.cjs +74 -3
- package/lib/node_modules/.pnpm/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.cjs +19 -0
- package/lib/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/lib/panel-component/coop-pos/coop-pos.cjs +19 -3
- package/lib/panel-component/coop-pos/coop-pos.controller.cjs +48 -4
- package/lib/panel-component/coop-pos/coop-pos.css +1 -1
- package/lib/panel-component/coop-pos/coop-pos.state.cjs +14 -0
- package/lib/panel-component/nav-tabs/nav-tabs.css +1 -1
- package/lib/panel-component/panel-app-login-view/panel-app-login-view.css +1 -1
- package/lib/panel-component/panel-app-title/panel-app-title.cjs +46 -3
- package/lib/panel-component/panel-app-title/panel-app-title.controller.cjs +28 -0
- package/lib/panel-component/panel-app-title/panel-app-title.css +1 -1
- package/lib/panel-component/panel-exp-header/panel-exp-header.css +1 -1
- package/lib/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
- package/lib/panel-component/short-cut/short-cut.css +1 -1
- package/lib/util/app-modal/app-modal-component.css +1 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +9 -0
- package/lib/util/open-view-util/open-view-util.cjs +21 -0
- package/lib/util/wang-editor-util/wang-editor-util.cjs +12 -7
- package/lib/view/login-view/login-view.css +1 -1
- package/lib/view/share-view/share-view.css +1 -1
- package/lib/view-engine/edit-view.engine.cjs +72 -35
- package/lib/web-app/components/modal-router-shell/modal-router-shell.cjs +1 -1
- package/lib/web-app/create-vue-app.cjs +8 -0
- package/package.json +9 -8
- package/dist/chart-0UV2FAN6.js +0 -1
- package/dist/index-YQyitjSg.js +0 -1
- package/dist/index-maJGu4b8.js +0 -4
- package/dist/index-trS6uS3E.js +0 -1
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.30_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.35-alpha.1_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.30_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.35-alpha.1_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -0,0 +1,861 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
var dayjs = require('dayjs');
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
var __defProp = Object.defineProperty;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __publicField = (obj, key, value) => {
|
|
10
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
11
|
+
return value;
|
|
12
|
+
};
|
|
13
|
+
class DateRangeSelectEditorController extends runtime.EditorController {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
/**
|
|
17
|
+
* 是否显示时间单位选择
|
|
18
|
+
*
|
|
19
|
+
* @type {Boolean}
|
|
20
|
+
* @memberof DateRangeSelectEditorController
|
|
21
|
+
*/
|
|
22
|
+
__publicField(this, "switchUnit", true);
|
|
23
|
+
/**
|
|
24
|
+
* 默认时间单位
|
|
25
|
+
*
|
|
26
|
+
* @type {('DAY' | 'WEEK' | 'MONTH' | 'QUARTER' | 'YEAR')}
|
|
27
|
+
* @memberof DateRangeSelectEditorController
|
|
28
|
+
*/
|
|
29
|
+
__publicField(this, "defaultUnit", "DAY");
|
|
30
|
+
/**
|
|
31
|
+
* 抛出模式
|
|
32
|
+
* TIME模式则是抛出时间字符串 年-月-日 时:分:秒
|
|
33
|
+
* @type {('DEFAULT' | 'TIME')}
|
|
34
|
+
* @memberof DateRangeSelectEditorController
|
|
35
|
+
*/
|
|
36
|
+
__publicField(this, "emitMode", "DEFAULT");
|
|
37
|
+
/**
|
|
38
|
+
* 初始化默认时间
|
|
39
|
+
*
|
|
40
|
+
* @param {('DAY' | 'WEEK' | 'MONTH' | 'QUARTER' | 'YEAR')} unit
|
|
41
|
+
* @memberof DateRangeSelectEditorController
|
|
42
|
+
*/
|
|
43
|
+
__publicField(this, "initDefaultDate", (unit) => {
|
|
44
|
+
const current = new Date((/* @__PURE__ */ new Date()).toLocaleDateString());
|
|
45
|
+
if (unit === "DAY") {
|
|
46
|
+
const start = new Date(current.getTime() - 7 * 24 * 60 * 60 * 1e3);
|
|
47
|
+
const end = current.toLocaleDateString().replaceAll("/", "-");
|
|
48
|
+
return [
|
|
49
|
+
dayjs(start).format("YYYY-MM-DD"),
|
|
50
|
+
dayjs(end).format("YYYY-MM-DD")
|
|
51
|
+
];
|
|
52
|
+
}
|
|
53
|
+
if (unit === "WEEK") {
|
|
54
|
+
const day = current.getDay();
|
|
55
|
+
let weekday = day;
|
|
56
|
+
if (day === 0) {
|
|
57
|
+
weekday = 7;
|
|
58
|
+
}
|
|
59
|
+
const sunday = current.getTime() + (7 - weekday) * 24 * 60 * 60 * 1e3;
|
|
60
|
+
const end = new Date(sunday).toLocaleDateString().replaceAll("/", "-");
|
|
61
|
+
const beforeSix = current.getTime() - 6 * 7 * 24 * 60 * 60 * 1e3;
|
|
62
|
+
const start = new Date(beforeSix).toLocaleDateString().replaceAll("/", "-");
|
|
63
|
+
return [start, end];
|
|
64
|
+
}
|
|
65
|
+
if (unit === "MONTH") {
|
|
66
|
+
const year = current.getFullYear();
|
|
67
|
+
const month = current.getMonth() + 1;
|
|
68
|
+
let startYear = year;
|
|
69
|
+
let startMonth = month - 6;
|
|
70
|
+
if (startMonth < 1) {
|
|
71
|
+
startMonth += 12;
|
|
72
|
+
startYear -= 1;
|
|
73
|
+
}
|
|
74
|
+
let startMonthText = "".concat(startMonth);
|
|
75
|
+
let monthText = "".concat(month);
|
|
76
|
+
if (startMonth < 10) {
|
|
77
|
+
startMonthText = "0".concat(startMonthText);
|
|
78
|
+
}
|
|
79
|
+
if (month < 10) {
|
|
80
|
+
monthText = "0".concat(month);
|
|
81
|
+
}
|
|
82
|
+
return ["".concat(startYear, "-").concat(startMonthText), "".concat(year, "-").concat(monthText)];
|
|
83
|
+
}
|
|
84
|
+
if (unit === "QUARTER") {
|
|
85
|
+
const year = current.getFullYear();
|
|
86
|
+
return ["".concat(year, "-1"), "".concat(year, "-12")];
|
|
87
|
+
}
|
|
88
|
+
if (unit === "YEAR") {
|
|
89
|
+
return [current.getFullYear(), current.getFullYear()];
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
/**
|
|
93
|
+
* 处理时间转文本
|
|
94
|
+
*
|
|
95
|
+
* @param {('DYNAMIC' | 'STATIC')} type
|
|
96
|
+
* @param {('DAY' | 'WEEK' | 'MONTH' | 'QUARTER' | 'YEAR')} unit
|
|
97
|
+
* @param {string[]} value
|
|
98
|
+
* @param {number} start
|
|
99
|
+
* @param {number} end
|
|
100
|
+
* @memberof DateRangeSelectEditorController
|
|
101
|
+
*/
|
|
102
|
+
__publicField(this, "handleTimeToText", (type, unit, value, start, end) => {
|
|
103
|
+
if (!value || Array.isArray(value) && !value.length) {
|
|
104
|
+
return "";
|
|
105
|
+
}
|
|
106
|
+
const tempStart = new Date(value[0]);
|
|
107
|
+
const tempEnd = new Date(value[1]);
|
|
108
|
+
const tempStartYear = tempStart.getFullYear();
|
|
109
|
+
const tempEndYear = tempEnd.getFullYear();
|
|
110
|
+
const tempStartMonth = tempStart.getMonth() + 1;
|
|
111
|
+
const tempEndMonth = tempEnd.getMonth() + 1;
|
|
112
|
+
const startWeek = this.getYearWeek(tempStart);
|
|
113
|
+
const endWeek = this.getYearWeek(tempEnd);
|
|
114
|
+
let timeSpan = value.join("~");
|
|
115
|
+
let timetype = "";
|
|
116
|
+
if (unit === "DAY") {
|
|
117
|
+
timeSpan = value.join("~");
|
|
118
|
+
}
|
|
119
|
+
if (unit === "WEEK") {
|
|
120
|
+
const startText = "".concat(tempStartYear, "-").concat(startWeek).concat(ibiz.i18n.t(
|
|
121
|
+
"editor.dateRangeSelect.week"
|
|
122
|
+
));
|
|
123
|
+
const endText = "".concat(tempEndYear, "-").concat(endWeek).concat(ibiz.i18n.t(
|
|
124
|
+
"editor.dateRangeSelect.week"
|
|
125
|
+
));
|
|
126
|
+
timeSpan = "".concat(startText, "~").concat(endText);
|
|
127
|
+
}
|
|
128
|
+
if (unit === "MONTH") {
|
|
129
|
+
let startMonth = tempStartMonth;
|
|
130
|
+
let endMonth = tempEndMonth;
|
|
131
|
+
if (tempStartMonth < 10) {
|
|
132
|
+
startMonth = "0".concat(tempStartMonth);
|
|
133
|
+
}
|
|
134
|
+
if (tempEndMonth < 10) {
|
|
135
|
+
endMonth = "0".concat(tempEndMonth);
|
|
136
|
+
}
|
|
137
|
+
timeSpan = "".concat(tempStartYear, "-").concat(startMonth, " ~ ").concat(tempEndYear, "-").concat(endMonth);
|
|
138
|
+
}
|
|
139
|
+
if (unit === "QUARTER") {
|
|
140
|
+
const startQuarter = Math.ceil(tempStartMonth / 3);
|
|
141
|
+
const endQuarter = Math.ceil(tempEndMonth / 3);
|
|
142
|
+
timeSpan = "".concat(tempStartYear, "-Q").concat(startQuarter, " ~ ").concat(tempEndYear, "-Q").concat(endQuarter);
|
|
143
|
+
}
|
|
144
|
+
if (unit === "YEAR") {
|
|
145
|
+
timeSpan = "".concat(value[0], " ~ ").concat(value[1]);
|
|
146
|
+
}
|
|
147
|
+
if (type === "STATIC") {
|
|
148
|
+
timetype = ibiz.i18n.t("editor.dateRangeSelect.static");
|
|
149
|
+
} else if (unit === "DAY") {
|
|
150
|
+
timetype = this.computedTextOfDay(start, end);
|
|
151
|
+
} else if (unit === "WEEK") {
|
|
152
|
+
timetype = this.computedTextOfWeek(start, end);
|
|
153
|
+
} else if (unit === "MONTH") {
|
|
154
|
+
timetype = this.computedTextOfMonth(start, end);
|
|
155
|
+
} else if (unit === "QUARTER") {
|
|
156
|
+
timetype = this.computedTextOfQuarter(
|
|
157
|
+
start,
|
|
158
|
+
end,
|
|
159
|
+
tempStartYear,
|
|
160
|
+
tempEndYear,
|
|
161
|
+
tempStartMonth,
|
|
162
|
+
tempEndMonth
|
|
163
|
+
);
|
|
164
|
+
} else if (unit === "YEAR") {
|
|
165
|
+
timetype = this.computedTextOfYear(start, end);
|
|
166
|
+
} else {
|
|
167
|
+
timetype = this.computedTextOfDay(start, end);
|
|
168
|
+
}
|
|
169
|
+
return "".concat(timetype, " | ").concat(timeSpan);
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* 初始化
|
|
174
|
+
*
|
|
175
|
+
* @return {*} {Promise<void>}
|
|
176
|
+
* @memberof DateRangeSelectEditorController
|
|
177
|
+
*/
|
|
178
|
+
async init() {
|
|
179
|
+
await super.onInit();
|
|
180
|
+
if (this.editorParams) {
|
|
181
|
+
if (this.editorParams.switchUnit) {
|
|
182
|
+
this.switchUnit = this.editorParams.switchUnit === "true";
|
|
183
|
+
}
|
|
184
|
+
if (this.editorParams.defaultUnit) {
|
|
185
|
+
this.defaultUnit = this.editorParams.defaultUnit;
|
|
186
|
+
}
|
|
187
|
+
if (this.editorParams.emitMode) {
|
|
188
|
+
this.emitMode = this.editorParams.emitMode;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* 计算动态时间间隔转具体时间
|
|
194
|
+
*
|
|
195
|
+
* @param {('DAY' | 'WEEK' | 'MONTH' | 'QUARTER' | 'YEAR')} dateUnit
|
|
196
|
+
* @param {string} _start
|
|
197
|
+
* @param {string} _end
|
|
198
|
+
* @memberof DateRangeSelectEditorController
|
|
199
|
+
*/
|
|
200
|
+
computedDynamicTimeToDate(dateUnit, dateType, _start, _end) {
|
|
201
|
+
if (dateType === "STATIC") {
|
|
202
|
+
const start2 = new Date(_start * 1e3);
|
|
203
|
+
const end2 = new Date(_end * 1e3);
|
|
204
|
+
if (dateUnit === "YEAR") {
|
|
205
|
+
return [start2.getFullYear(), end2.getFullYear()];
|
|
206
|
+
}
|
|
207
|
+
return [
|
|
208
|
+
dayjs(start2).format("YYYY-MM-DD"),
|
|
209
|
+
dayjs(end2).format("YYYY-MM-DD")
|
|
210
|
+
];
|
|
211
|
+
}
|
|
212
|
+
const current = /* @__PURE__ */ new Date();
|
|
213
|
+
current.setHours(0, 0, 0, 0);
|
|
214
|
+
if (dateUnit === "WEEK") {
|
|
215
|
+
const start2 = this.timeSpanConvertToWeek(current, _start);
|
|
216
|
+
const end2 = this.timeSpanConvertToWeek(current, _end);
|
|
217
|
+
return [start2, end2];
|
|
218
|
+
}
|
|
219
|
+
if (dateUnit === "MONTH") {
|
|
220
|
+
const start2 = this.timeSpanConvertToMonth(current, _start);
|
|
221
|
+
const end2 = this.timeSpanConvertToMonth(current, _end);
|
|
222
|
+
return [start2, end2];
|
|
223
|
+
}
|
|
224
|
+
if (dateUnit === "QUARTER") {
|
|
225
|
+
const start2 = this.timeSpanConvertToQuarter(current, _start);
|
|
226
|
+
const end2 = this.timeSpanConvertToQuarter(current, _end);
|
|
227
|
+
return [start2, end2];
|
|
228
|
+
}
|
|
229
|
+
if (dateUnit === "YEAR") {
|
|
230
|
+
const start2 = current.getFullYear() + _start;
|
|
231
|
+
const end2 = current.getFullYear() + _end;
|
|
232
|
+
return [start2, end2];
|
|
233
|
+
}
|
|
234
|
+
const start = _start * 24 * 60 * 60 * 1e3;
|
|
235
|
+
const end = _end * 24 * 60 * 60 * 1e3;
|
|
236
|
+
const tempStart = new Date(current.getTime() + start);
|
|
237
|
+
const tempEnd = new Date(current.getTime() + end);
|
|
238
|
+
return [
|
|
239
|
+
dayjs(tempStart).format("YYYY-MM-DD"),
|
|
240
|
+
dayjs(tempEnd).format("YYYY-MM-DD")
|
|
241
|
+
];
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* 时间间隔转季度
|
|
245
|
+
*
|
|
246
|
+
* @private
|
|
247
|
+
* @param {Date} current
|
|
248
|
+
* @param {number} timespan
|
|
249
|
+
* @memberof DateRangeSelectEditorController
|
|
250
|
+
*/
|
|
251
|
+
timeSpanConvertToQuarter(current, timespan) {
|
|
252
|
+
const tempYear = Math.floor(Math.abs(timespan) / 4);
|
|
253
|
+
const tempQuarter = timespan % 4;
|
|
254
|
+
let yearSpan = tempYear;
|
|
255
|
+
if (timespan < 0) {
|
|
256
|
+
yearSpan = -yearSpan;
|
|
257
|
+
}
|
|
258
|
+
let year = current.getFullYear() + yearSpan;
|
|
259
|
+
const month = current.getMonth() + 1;
|
|
260
|
+
const curQuarter = Math.ceil(month / 3);
|
|
261
|
+
let quarter = curQuarter + tempQuarter;
|
|
262
|
+
if (quarter < 0) {
|
|
263
|
+
year -= 1;
|
|
264
|
+
quarter += 4;
|
|
265
|
+
}
|
|
266
|
+
if (quarter > 4) {
|
|
267
|
+
year += 1;
|
|
268
|
+
quarter -= 4;
|
|
269
|
+
}
|
|
270
|
+
return "".concat(year, "-").concat(quarter * 3);
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* 时间转年周
|
|
274
|
+
*
|
|
275
|
+
* @private
|
|
276
|
+
* @param {Date} current
|
|
277
|
+
* @param {number} timespan
|
|
278
|
+
* @memberof DateRangeSelectEditorController
|
|
279
|
+
*/
|
|
280
|
+
timeSpanConvertToWeek(current, timespan) {
|
|
281
|
+
const date = current.getTime();
|
|
282
|
+
const time = timespan * 7 * 24 * 60 * 60 * 1e3;
|
|
283
|
+
return new Date(date + time).toLocaleDateString();
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* 时间间隔转月份
|
|
287
|
+
*
|
|
288
|
+
* @private
|
|
289
|
+
* @param {Date} current
|
|
290
|
+
* @param {number} timespan
|
|
291
|
+
* @memberof DateRangeSelectEditorController
|
|
292
|
+
*/
|
|
293
|
+
timeSpanConvertToMonth(current, timespan) {
|
|
294
|
+
const tempYear = Math.floor(Math.abs(timespan) / 12);
|
|
295
|
+
const tempMonth = timespan % 12;
|
|
296
|
+
let yearSpan = tempYear;
|
|
297
|
+
if (timespan < 0) {
|
|
298
|
+
yearSpan = -yearSpan;
|
|
299
|
+
}
|
|
300
|
+
let year = current.getFullYear() + yearSpan;
|
|
301
|
+
let month = current.getMonth() + 1 + tempMonth;
|
|
302
|
+
if (month < 0) {
|
|
303
|
+
year -= 1;
|
|
304
|
+
month += 12;
|
|
305
|
+
}
|
|
306
|
+
if (month > 12) {
|
|
307
|
+
year += 1;
|
|
308
|
+
month -= 12;
|
|
309
|
+
}
|
|
310
|
+
if (month < 10) {
|
|
311
|
+
return "".concat(year, "-0").concat(month);
|
|
312
|
+
}
|
|
313
|
+
return "".concat(year, "-").concat(month);
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
*计算在各个时间类型下的开始结束时间
|
|
317
|
+
*
|
|
318
|
+
* @param {('DAY' | 'WEEK' | 'MONTH' | 'QUARTER' | 'YEAR')} dateUnit
|
|
319
|
+
* @param {('DYNAMIC' | 'STATIC')} dateType
|
|
320
|
+
* @param {string} _start
|
|
321
|
+
* @param {string} _end
|
|
322
|
+
* @return {*} {{ start: number; end: number; }}
|
|
323
|
+
* @memberof DateRangeSelectEditorController
|
|
324
|
+
*/
|
|
325
|
+
computedDateTypesTime(dateUnit, dateType, _start, _end) {
|
|
326
|
+
const tempDate = {
|
|
327
|
+
start: 0,
|
|
328
|
+
end: 0,
|
|
329
|
+
emitStart: 0,
|
|
330
|
+
emitEnd: 0
|
|
331
|
+
};
|
|
332
|
+
if (dateType === "STATIC") {
|
|
333
|
+
const { start, end } = this.computedStaticTime(dateUnit, _start, _end);
|
|
334
|
+
Object.assign(tempDate, {
|
|
335
|
+
start,
|
|
336
|
+
end,
|
|
337
|
+
emitStart: start,
|
|
338
|
+
emitEnd: end
|
|
339
|
+
});
|
|
340
|
+
} else {
|
|
341
|
+
const { start, end } = this.computedDynamicTime(dateUnit, _start, _end);
|
|
342
|
+
Object.assign(tempDate, {
|
|
343
|
+
start,
|
|
344
|
+
end,
|
|
345
|
+
emitStart: start,
|
|
346
|
+
emitEnd: end
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
if (this.emitMode === "TIME") {
|
|
350
|
+
const tempStart = this.computedFullDateFormat(_start, dateUnit, "START");
|
|
351
|
+
const tempEnd = this.computedFullDateFormat(_end, dateUnit, "END");
|
|
352
|
+
Object.assign(tempDate, {
|
|
353
|
+
emitStart: tempStart,
|
|
354
|
+
emitEnd: tempEnd
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
return tempDate;
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* 计算完整时间格式
|
|
361
|
+
*
|
|
362
|
+
* @private
|
|
363
|
+
* @param {(string|number)} date
|
|
364
|
+
* @memberof DateRangeSelectEditorController
|
|
365
|
+
*/
|
|
366
|
+
computedFullDateFormat(date, unit, tag) {
|
|
367
|
+
const tempDate = new Date(String(date));
|
|
368
|
+
const month = tempDate.getMonth() + 1;
|
|
369
|
+
const bigMonth = [1, 3, 5, 7, 8, 10, 12];
|
|
370
|
+
if (tag === "START") {
|
|
371
|
+
tempDate.setHours(0, 0, 0, 0);
|
|
372
|
+
} else {
|
|
373
|
+
tempDate.setHours(23, 59, 59, 0);
|
|
374
|
+
}
|
|
375
|
+
if (unit === "MONTH") {
|
|
376
|
+
if (tag === "START") {
|
|
377
|
+
tempDate.setDate(1);
|
|
378
|
+
} else if (month === 2) {
|
|
379
|
+
tempDate.setDate(29);
|
|
380
|
+
} else if (bigMonth.includes(month)) {
|
|
381
|
+
tempDate.setDate(31);
|
|
382
|
+
} else {
|
|
383
|
+
tempDate.setDate(30);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
if (unit === "QUARTER") {
|
|
387
|
+
if (tag === "START") {
|
|
388
|
+
tempDate.setDate(1);
|
|
389
|
+
} else if (month === 2) {
|
|
390
|
+
tempDate.setDate(29);
|
|
391
|
+
} else if (bigMonth.includes(month)) {
|
|
392
|
+
tempDate.setDate(31);
|
|
393
|
+
} else {
|
|
394
|
+
tempDate.setDate(30);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
if (unit === "YEAR") {
|
|
398
|
+
if (tag === "START") {
|
|
399
|
+
tempDate.setMonth(0);
|
|
400
|
+
tempDate.setDate(1);
|
|
401
|
+
} else {
|
|
402
|
+
tempDate.setMonth(11);
|
|
403
|
+
tempDate.setDate(31);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
return tempDate.toLocaleString();
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* 计算动态类型时间
|
|
410
|
+
*
|
|
411
|
+
* @param {('DAY' | 'WEEK' | 'MONTH' | 'QUARTER' | 'YEAR')} dateUnit
|
|
412
|
+
* @param {string} _start
|
|
413
|
+
* @param {string} _end
|
|
414
|
+
* @return {*} {{ start: number; end: number }}
|
|
415
|
+
* @memberof DateRangeSelectEditorController
|
|
416
|
+
*/
|
|
417
|
+
computedDynamicTime(dateUnit, _start, _end) {
|
|
418
|
+
switch (dateUnit) {
|
|
419
|
+
case "DAY":
|
|
420
|
+
return this.computedDaysSpace(_start, _end);
|
|
421
|
+
case "WEEK":
|
|
422
|
+
return this.computedWeeksSpace(_start, _end);
|
|
423
|
+
case "MONTH":
|
|
424
|
+
return this.computedMonthsSpace(_start, _end);
|
|
425
|
+
case "QUARTER":
|
|
426
|
+
return this.computedQuartersSpace(_start, _end);
|
|
427
|
+
case "YEAR":
|
|
428
|
+
return this.computedYearsSpace(_start, _end);
|
|
429
|
+
default:
|
|
430
|
+
return this.computedDaysSpace(_start, _end);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* 计算天的前后间隔
|
|
435
|
+
*
|
|
436
|
+
* @param {string} _start
|
|
437
|
+
* @param {string} _end
|
|
438
|
+
* @return {*} {{ start: number; end: number }}
|
|
439
|
+
* @memberof DateRangeSelectEditorController
|
|
440
|
+
*/
|
|
441
|
+
computedDaysSpace(_start, _end) {
|
|
442
|
+
const current = /* @__PURE__ */ new Date();
|
|
443
|
+
const tempStart = new Date(_start);
|
|
444
|
+
const tempEnd = new Date(_end);
|
|
445
|
+
current.setHours(0, 0, 0, 0);
|
|
446
|
+
tempStart.setHours(0, 0, 0, 0);
|
|
447
|
+
tempEnd.setHours(0, 0, 0, 0);
|
|
448
|
+
const start = (tempStart.getTime() - current.getTime()) / (24 * 60 * 60 * 1e3);
|
|
449
|
+
const end = (tempEnd.getTime() - current.getTime()) / (24 * 60 * 60 * 1e3);
|
|
450
|
+
return {
|
|
451
|
+
start,
|
|
452
|
+
end
|
|
453
|
+
};
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* 计算周的前后间隔
|
|
457
|
+
*
|
|
458
|
+
* @param {string} _start
|
|
459
|
+
* @param {string} _end
|
|
460
|
+
* @return {*} {{ start: number; end: number }}
|
|
461
|
+
* @memberof DateRangeSelectEditorController
|
|
462
|
+
*/
|
|
463
|
+
computedWeeksSpace(_start, _end) {
|
|
464
|
+
const current = /* @__PURE__ */ new Date();
|
|
465
|
+
const tempStart = new Date(_start);
|
|
466
|
+
const tempEnd = new Date(_end);
|
|
467
|
+
current.setHours(0, 0, 0, 0);
|
|
468
|
+
tempStart.setHours(0, 0, 0, 0);
|
|
469
|
+
tempEnd.setHours(0, 0, 0, 0);
|
|
470
|
+
const computedWeekInterval = (start2, end2) => {
|
|
471
|
+
const startMonday = this.getDateWeekMonday(start2);
|
|
472
|
+
const endMonday = this.getDateWeekMonday(end2);
|
|
473
|
+
const week = (endMonday.getTime() - startMonday.getTime()) / (7 * 24 * 60 * 60 * 1e3);
|
|
474
|
+
return week;
|
|
475
|
+
};
|
|
476
|
+
const start = computedWeekInterval(current, tempStart);
|
|
477
|
+
const end = computedWeekInterval(current, tempEnd);
|
|
478
|
+
return {
|
|
479
|
+
start,
|
|
480
|
+
end
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* 获取指定时间所在周星期一的时间
|
|
485
|
+
*
|
|
486
|
+
* @param {Date} date
|
|
487
|
+
* @return {*}
|
|
488
|
+
* @memberof DateRangeSelectEditorController
|
|
489
|
+
*/
|
|
490
|
+
getDateWeekMonday(date) {
|
|
491
|
+
const day = date.getDay();
|
|
492
|
+
let week = day;
|
|
493
|
+
if (day === 0) {
|
|
494
|
+
week = 7;
|
|
495
|
+
}
|
|
496
|
+
const monday = date.getTime() - (week - 1) * 24 * 60 * 60 * 1e3;
|
|
497
|
+
return new Date(monday);
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* 计算指定时间在年度内的周数
|
|
501
|
+
*
|
|
502
|
+
* @param {(Date | string)} endDate
|
|
503
|
+
* @return {*}
|
|
504
|
+
* @memberof DateRangeSelectEditorController
|
|
505
|
+
*/
|
|
506
|
+
getYearWeek(endDate) {
|
|
507
|
+
const beginDate = new Date(endDate.getFullYear(), 0, 1);
|
|
508
|
+
let endWeek = endDate.getDay();
|
|
509
|
+
if (endWeek === 0)
|
|
510
|
+
endWeek = 7;
|
|
511
|
+
let beginWeek = beginDate.getDay();
|
|
512
|
+
if (beginWeek === 0)
|
|
513
|
+
beginWeek = 7;
|
|
514
|
+
const millisDiff = endDate.getTime() - beginDate.getTime();
|
|
515
|
+
const dayDiff = Math.floor(
|
|
516
|
+
(millisDiff + (beginWeek - endWeek) * (24 * 60 * 60 * 1e3)) / 864e5
|
|
517
|
+
);
|
|
518
|
+
return Math.ceil(dayDiff / 7) + 1;
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* 计算月的前后间隔
|
|
522
|
+
*
|
|
523
|
+
* @param {string} _start
|
|
524
|
+
* @param {string} _end
|
|
525
|
+
* @return {*} {{ start: number; end: number }}
|
|
526
|
+
* @memberof DateRangeSelectEditorController
|
|
527
|
+
*/
|
|
528
|
+
computedMonthsSpace(_start, _end) {
|
|
529
|
+
const current = /* @__PURE__ */ new Date();
|
|
530
|
+
const startDate = new Date(_start);
|
|
531
|
+
const endDate = new Date(_end);
|
|
532
|
+
const computedMonthInterval = (start2, end2) => {
|
|
533
|
+
const startYear = start2.getFullYear();
|
|
534
|
+
const startMonth = start2.getMonth() + 1;
|
|
535
|
+
const endYear = end2.getFullYear();
|
|
536
|
+
const endMonth = end2.getMonth() + 1;
|
|
537
|
+
return (endYear - startYear) * 12 - startMonth + endMonth;
|
|
538
|
+
};
|
|
539
|
+
const start = computedMonthInterval(current, startDate);
|
|
540
|
+
const end = computedMonthInterval(current, endDate);
|
|
541
|
+
return {
|
|
542
|
+
start,
|
|
543
|
+
end
|
|
544
|
+
};
|
|
545
|
+
}
|
|
546
|
+
/**
|
|
547
|
+
*计算季度的前后间隔
|
|
548
|
+
*
|
|
549
|
+
* @param {string} _start
|
|
550
|
+
* @param {string} _end
|
|
551
|
+
* @return {*} {{ start: number; end: number }}
|
|
552
|
+
* @memberof DateRangeSelectEditorController
|
|
553
|
+
*/
|
|
554
|
+
computedQuartersSpace(_start, _end) {
|
|
555
|
+
const current = /* @__PURE__ */ new Date();
|
|
556
|
+
const startDate = new Date(_start);
|
|
557
|
+
const endDate = new Date(_end);
|
|
558
|
+
const computedQuarterInterval = (start2, end2) => {
|
|
559
|
+
const startYear = start2.getFullYear();
|
|
560
|
+
const startMonth = start2.getMonth() + 1;
|
|
561
|
+
const startQuarter = Math.ceil(startMonth / 3);
|
|
562
|
+
const endYear = end2.getFullYear();
|
|
563
|
+
const endMonth = end2.getMonth() + 1;
|
|
564
|
+
const endQuarter = Math.ceil(endMonth / 3);
|
|
565
|
+
return (endYear - startYear) * 4 - startQuarter + endQuarter;
|
|
566
|
+
};
|
|
567
|
+
const start = computedQuarterInterval(current, startDate);
|
|
568
|
+
const end = computedQuarterInterval(current, endDate);
|
|
569
|
+
return {
|
|
570
|
+
start,
|
|
571
|
+
end
|
|
572
|
+
};
|
|
573
|
+
}
|
|
574
|
+
/**
|
|
575
|
+
*计算年的前后间隔
|
|
576
|
+
*
|
|
577
|
+
* @param {string} _start
|
|
578
|
+
* @param {string} _end
|
|
579
|
+
* @return {*} {{ start: number; end: number }}
|
|
580
|
+
* @memberof DateRangeSelectEditorController
|
|
581
|
+
*/
|
|
582
|
+
computedYearsSpace(_start, _end) {
|
|
583
|
+
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
584
|
+
const start = new Date("".concat(_start)).getFullYear() - currentYear;
|
|
585
|
+
const end = new Date("".concat(_end)).getFullYear() - currentYear;
|
|
586
|
+
return {
|
|
587
|
+
start,
|
|
588
|
+
end
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* 计算静态类型时间
|
|
593
|
+
*
|
|
594
|
+
* @param {('DAY' | 'WEEK' | 'MONTH' | 'QUARTER' | 'YEAR')} dateUnit
|
|
595
|
+
* @param {string} _start
|
|
596
|
+
* @param {string} _end
|
|
597
|
+
* @return {*} {{ start: number; end: number }}
|
|
598
|
+
* @memberof DateRangeSelectEditorController
|
|
599
|
+
*/
|
|
600
|
+
computedStaticTime(dateUnit, _start, _end) {
|
|
601
|
+
switch (dateUnit) {
|
|
602
|
+
case "DAY":
|
|
603
|
+
return this.computedDaysTime(_start, _end);
|
|
604
|
+
case "WEEK":
|
|
605
|
+
return this.computedWeeksTime(_start, _end);
|
|
606
|
+
case "MONTH":
|
|
607
|
+
return this.computedMonthsTime(_start, _end);
|
|
608
|
+
case "QUARTER":
|
|
609
|
+
return this.computedQuartersTime(_start, _end);
|
|
610
|
+
case "YEAR":
|
|
611
|
+
return this.computedYearsTime(_start, _end);
|
|
612
|
+
default:
|
|
613
|
+
return this.computedDaysTime(_start, _end);
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
/**
|
|
617
|
+
* 计算 天 的时间范围,返回开始和结束时间的秒数
|
|
618
|
+
*
|
|
619
|
+
* @param {string} _start
|
|
620
|
+
* @param {string} _end
|
|
621
|
+
* @return {*} {{
|
|
622
|
+
* start: number;
|
|
623
|
+
* end: number;
|
|
624
|
+
* }}
|
|
625
|
+
* @memberof DateRangeSelectEditorController
|
|
626
|
+
*/
|
|
627
|
+
computedDaysTime(_start, _end) {
|
|
628
|
+
const startDate = new Date(_start);
|
|
629
|
+
const endDate = new Date(_end);
|
|
630
|
+
startDate.setHours(0, 0, 0, 0);
|
|
631
|
+
endDate.setHours(23, 59, 59, 0);
|
|
632
|
+
const start = startDate.getTime() / 1e3;
|
|
633
|
+
const end = endDate.getTime() / 1e3;
|
|
634
|
+
return {
|
|
635
|
+
start,
|
|
636
|
+
end
|
|
637
|
+
};
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* 计算 周 的时间范围,返回开始和结束时间的秒数
|
|
641
|
+
*
|
|
642
|
+
* @param {string} _start
|
|
643
|
+
* @param {string} _end
|
|
644
|
+
* @return {*} {{ start: number; end: number }}
|
|
645
|
+
* @memberof DateRangeSelectEditorController
|
|
646
|
+
*/
|
|
647
|
+
computedWeeksTime(_start, _end) {
|
|
648
|
+
const startDate = new Date(_start);
|
|
649
|
+
const endDate = new Date(_end);
|
|
650
|
+
startDate.setHours(0, 0, 0, 0);
|
|
651
|
+
endDate.setHours(23, 59, 59, 0);
|
|
652
|
+
const start = startDate.getTime() / 1e3;
|
|
653
|
+
const end = endDate.getTime() / 1e3;
|
|
654
|
+
return {
|
|
655
|
+
start,
|
|
656
|
+
end
|
|
657
|
+
};
|
|
658
|
+
}
|
|
659
|
+
/**
|
|
660
|
+
* 计算 月 的时间范围,返回开始和结束时间的秒数
|
|
661
|
+
*
|
|
662
|
+
* @param {string} _start
|
|
663
|
+
* @param {string} _end
|
|
664
|
+
* @return {*} {{ start: number; end: number }}
|
|
665
|
+
* @memberof DateRangeSelectEditorController
|
|
666
|
+
*/
|
|
667
|
+
computedMonthsTime(_start, _end) {
|
|
668
|
+
const big = [1, 3, 5, 7, 8, 10, 12];
|
|
669
|
+
const startDate = new Date(_start);
|
|
670
|
+
const endDate = new Date(_end);
|
|
671
|
+
startDate.setHours(0, 0, 0, 0);
|
|
672
|
+
if (big.includes(endDate.getMonth() + 1)) {
|
|
673
|
+
endDate.setDate(31);
|
|
674
|
+
} else if (endDate.getMonth() === 1) {
|
|
675
|
+
endDate.setDate(29);
|
|
676
|
+
} else {
|
|
677
|
+
endDate.setDate(30);
|
|
678
|
+
}
|
|
679
|
+
endDate.setHours(23, 59, 59, 0);
|
|
680
|
+
const start = startDate.getTime() / 1e3;
|
|
681
|
+
const end = endDate.getTime() / 1e3;
|
|
682
|
+
return {
|
|
683
|
+
start,
|
|
684
|
+
end
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* 计算 季度 的时间范围,返回开始和结束时间的秒数
|
|
689
|
+
*
|
|
690
|
+
* @param {string} _start
|
|
691
|
+
* @param {string} _end
|
|
692
|
+
* @return {*} {{ start: number; end: number }}
|
|
693
|
+
* @memberof DateRangeSelectEditorController
|
|
694
|
+
*/
|
|
695
|
+
computedQuartersTime(_start, _end) {
|
|
696
|
+
const startDate = new Date(_start);
|
|
697
|
+
const endDate = new Date(_end);
|
|
698
|
+
startDate.setHours(0, 0, 0, 0);
|
|
699
|
+
endDate.setHours(23, 59, 59, 0);
|
|
700
|
+
const start = startDate.getTime() / 1e3;
|
|
701
|
+
const end = endDate.getTime() / 1e3;
|
|
702
|
+
return {
|
|
703
|
+
start,
|
|
704
|
+
end
|
|
705
|
+
};
|
|
706
|
+
}
|
|
707
|
+
/**
|
|
708
|
+
* 计算 年 的时间范围,返回开始和结束时间的秒数
|
|
709
|
+
*
|
|
710
|
+
* @param {string} _start
|
|
711
|
+
* @param {string} _end
|
|
712
|
+
* @return {*} {{ start: number; end: number }}
|
|
713
|
+
* @memberof DateRangeSelectEditorController
|
|
714
|
+
*/
|
|
715
|
+
computedYearsTime(_start, _end) {
|
|
716
|
+
const startDate = new Date(_start);
|
|
717
|
+
const endDate = new Date(_end);
|
|
718
|
+
startDate.setHours(0, 0, 0, 0);
|
|
719
|
+
endDate.setMonth(11);
|
|
720
|
+
endDate.setDate(31);
|
|
721
|
+
endDate.setHours(23, 59, 59, 0);
|
|
722
|
+
const start = startDate.getTime() / 1e3;
|
|
723
|
+
const end = endDate.getTime() / 1e3;
|
|
724
|
+
return {
|
|
725
|
+
start,
|
|
726
|
+
end
|
|
727
|
+
};
|
|
728
|
+
}
|
|
729
|
+
/**
|
|
730
|
+
* 计算天的显示文本
|
|
731
|
+
*
|
|
732
|
+
* @private
|
|
733
|
+
* @param {number} start
|
|
734
|
+
* @param {number} end
|
|
735
|
+
* @return {*}
|
|
736
|
+
* @memberof DateRangeSelectEditorController
|
|
737
|
+
*/
|
|
738
|
+
computedTextOfDay(start, end) {
|
|
739
|
+
let timetype = "";
|
|
740
|
+
if (start === end && start === 0) {
|
|
741
|
+
timetype = ibiz.i18n.t("editor.dateRangeSelect.today");
|
|
742
|
+
} else if (end === 0 && start < 0) {
|
|
743
|
+
timetype = "".concat(ibiz.i18n.t("editor.dateRangeSelect.recently")).concat(Math.abs(
|
|
744
|
+
start
|
|
745
|
+
)).concat(ibiz.i18n.t("editor.dateRangeSelect.day"));
|
|
746
|
+
} else {
|
|
747
|
+
const starTtime = "".concat(start > 0 ? ibiz.i18n.t("editor.dateRangeSelect.future") : ibiz.i18n.t("editor.dateRangeSelect.pastTime")).concat(Math.abs(start)).concat(ibiz.i18n.t("editor.dateRangeSelect.day"));
|
|
748
|
+
const endTime = "".concat(end > 0 ? ibiz.i18n.t("editor.dateRangeSelect.future") : ibiz.i18n.t("editor.dateRangeSelect.pastTime")).concat(Math.abs(end)).concat(ibiz.i18n.t("editor.dateRangeSelect.day"));
|
|
749
|
+
timetype = "".concat(starTtime, " ~ ").concat(endTime);
|
|
750
|
+
}
|
|
751
|
+
return timetype;
|
|
752
|
+
}
|
|
753
|
+
/**
|
|
754
|
+
* 计算周的文本
|
|
755
|
+
*
|
|
756
|
+
* @private
|
|
757
|
+
* @param {number} start
|
|
758
|
+
* @param {number} end
|
|
759
|
+
* @return {*}
|
|
760
|
+
* @memberof DateRangeSelectEditorController
|
|
761
|
+
*/
|
|
762
|
+
computedTextOfWeek(start, end) {
|
|
763
|
+
let timetype = "";
|
|
764
|
+
if (start === end && start === 0) {
|
|
765
|
+
timetype = ibiz.i18n.t("editor.dateRangeSelect.currentWeek");
|
|
766
|
+
} else if (end === 0 && start < 0) {
|
|
767
|
+
timetype = "".concat(ibiz.i18n.t("editor.dateRangeSelect.recently")).concat(Math.abs(
|
|
768
|
+
start
|
|
769
|
+
)).concat(ibiz.i18n.t("editor.dateRangeSelect.week"));
|
|
770
|
+
} else {
|
|
771
|
+
const starTtime = "".concat(start > 0 ? ibiz.i18n.t("editor.dateRangeSelect.future") : ibiz.i18n.t("editor.dateRangeSelect.pastTime")).concat(Math.abs(start)).concat(ibiz.i18n.t("editor.dateRangeSelect.week"));
|
|
772
|
+
const endTime = "".concat(end > 0 ? ibiz.i18n.t("editor.dateRangeSelect.future") : ibiz.i18n.t("editor.dateRangeSelect.pastTime")).concat(Math.abs(end)).concat(ibiz.i18n.t("editor.dateRangeSelect.week"));
|
|
773
|
+
timetype = "".concat(starTtime, " ~ ").concat(endTime);
|
|
774
|
+
}
|
|
775
|
+
return timetype;
|
|
776
|
+
}
|
|
777
|
+
/**
|
|
778
|
+
* 计算月的文本
|
|
779
|
+
*
|
|
780
|
+
* @private
|
|
781
|
+
* @param {number} start
|
|
782
|
+
* @param {number} end
|
|
783
|
+
* @return {*}
|
|
784
|
+
* @memberof DateRangeSelectEditorController
|
|
785
|
+
*/
|
|
786
|
+
computedTextOfMonth(start, end) {
|
|
787
|
+
let timetype = "";
|
|
788
|
+
if (start === end && start === 0) {
|
|
789
|
+
timetype = ibiz.i18n.t("editor.dateRangeSelect.pastTime");
|
|
790
|
+
} else if (end === 0 && start < 0) {
|
|
791
|
+
timetype = "".concat(ibiz.i18n.t("editor.dateRangeSelect.recently")).concat(Math.abs(
|
|
792
|
+
start
|
|
793
|
+
)).concat(ibiz.i18n.t("editor.dateRangeSelect.month"));
|
|
794
|
+
} else {
|
|
795
|
+
const starTtime = "".concat(start > 0 ? ibiz.i18n.t("editor.dateRangeSelect.future") : ibiz.i18n.t("editor.dateRangeSelect.pastTime")).concat(Math.abs(start)).concat(ibiz.i18n.t("editor.dateRangeSelect.month"));
|
|
796
|
+
const endTime = "".concat(end > 0 ? ibiz.i18n.t("editor.dateRangeSelect.future") : ibiz.i18n.t("editor.dateRangeSelect.pastTime")).concat(Math.abs(end)).concat(ibiz.i18n.t("editor.dateRangeSelect.month"));
|
|
797
|
+
timetype = "".concat(starTtime, " ~ ").concat(endTime);
|
|
798
|
+
}
|
|
799
|
+
return timetype;
|
|
800
|
+
}
|
|
801
|
+
/**
|
|
802
|
+
* 计算季度的文本
|
|
803
|
+
*
|
|
804
|
+
* @private
|
|
805
|
+
* @param {number} start
|
|
806
|
+
* @param {number} end
|
|
807
|
+
* @param {number} tempStartYear
|
|
808
|
+
* @param {number} tempEndYear
|
|
809
|
+
* @param {number} tempStartMonth
|
|
810
|
+
* @param {number} tempEndMonth
|
|
811
|
+
* @return {*}
|
|
812
|
+
* @memberof DateRangeSelectEditorController
|
|
813
|
+
*/
|
|
814
|
+
computedTextOfQuarter(start, end, tempStartYear, tempEndYear, tempStartMonth, tempEndMonth) {
|
|
815
|
+
let timetype = "";
|
|
816
|
+
const curDate = /* @__PURE__ */ new Date();
|
|
817
|
+
const curYear = curDate.getFullYear();
|
|
818
|
+
const startQuarter = Math.ceil(tempStartMonth / 3);
|
|
819
|
+
const endQuarter = Math.ceil(tempEndMonth / 3);
|
|
820
|
+
if (tempStartYear === tempEndYear && startQuarter === 1 && endQuarter === 4) {
|
|
821
|
+
timetype = ibiz.i18n.t("editor.dateRangeSelect.currentYear");
|
|
822
|
+
} else if (start === end && start === 0) {
|
|
823
|
+
timetype = ibiz.i18n.t("editor.dateRangeSelect.currentYear");
|
|
824
|
+
} else if (end === 0 && start < 0 && curYear === tempStartYear) {
|
|
825
|
+
timetype = "".concat(ibiz.i18n.t(
|
|
826
|
+
"editor.dateRangeSelect.currentYear"
|
|
827
|
+
)).concat(Math.abs(start)).concat(ibiz.i18n.t("editor.dateRangeSelect.quarter"));
|
|
828
|
+
} else {
|
|
829
|
+
const starTtime = "".concat(start > 0 ? ibiz.i18n.t("editor.dateRangeSelect.future") : ibiz.i18n.t("editor.dateRangeSelect.pastTime")).concat(Math.abs(start)).concat(ibiz.i18n.t("editor.dateRangeSelect.quarter"));
|
|
830
|
+
const endTime = "".concat(end > 0 ? ibiz.i18n.t("editor.dateRangeSelect.future") : ibiz.i18n.t("editor.dateRangeSelect.pastTime")).concat(Math.abs(end)).concat(ibiz.i18n.t("editor.dateRangeSelect.quarter"));
|
|
831
|
+
timetype = "".concat(starTtime, " ~ ").concat(endTime);
|
|
832
|
+
}
|
|
833
|
+
return timetype;
|
|
834
|
+
}
|
|
835
|
+
/**
|
|
836
|
+
* 计算年的文本
|
|
837
|
+
*
|
|
838
|
+
* @private
|
|
839
|
+
* @param {number} start
|
|
840
|
+
* @param {number} end
|
|
841
|
+
* @return {*}
|
|
842
|
+
* @memberof DateRangeSelectEditorController
|
|
843
|
+
*/
|
|
844
|
+
computedTextOfYear(start, end) {
|
|
845
|
+
let timetype = "";
|
|
846
|
+
if (start === end && start === 0) {
|
|
847
|
+
timetype = ibiz.i18n.t("editor.dateRangeSelect.currentYear");
|
|
848
|
+
} else if (end === 0 && start < 0) {
|
|
849
|
+
timetype = "".concat(ibiz.i18n.t("editor.dateRangeSelect.recently")).concat(Math.abs(
|
|
850
|
+
start
|
|
851
|
+
)).concat(ibiz.i18n.t("editor.dateRangeSelect.year"));
|
|
852
|
+
} else {
|
|
853
|
+
const starTtime = "".concat(start > 0 ? ibiz.i18n.t("editor.dateRangeSelect.future") : ibiz.i18n.t("editor.dateRangeSelect.pastTime")).concat(Math.abs(start)).concat(ibiz.i18n.t("editor.dateRangeSelect.year"));
|
|
854
|
+
const endTime = "".concat(end > 0 ? ibiz.i18n.t("editor.dateRangeSelect.future") : ibiz.i18n.t("editor.dateRangeSelect.pastTime")).concat(Math.abs(end)).concat(ibiz.i18n.t("editor.dateRangeSelect.year"));
|
|
855
|
+
timetype = "".concat(starTtime, " ~ ").concat(endTime);
|
|
856
|
+
}
|
|
857
|
+
return timetype;
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
exports.DateRangeSelectEditorController = DateRangeSelectEditorController;
|