@titaui/pc 1.15.69-beta.3 → 1.15.71
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/lib/components/avatar/icon-avatar/index.js +1 -1
- package/lib/components/avatar/name-avatar/index.css +2 -3
- package/lib/components/avatar/name-avatar/index.js +14 -24
- package/lib/components/avatar/num-avatar/index.js +1 -1
- package/lib/components/book-demo/components/pc/components/content/index.js +1 -1
- package/lib/components/book-demo/constant.js +118 -0
- package/lib/components/book-demo/interface.js +1 -0
- package/lib/components/button/default-button/index.js +1 -1
- package/lib/components/button/icon-btn/index.css +19 -1
- package/lib/components/button/icon-btn/index.js +5 -3
- package/lib/components/button/text-btn/index.css +2 -2
- package/lib/components/cascader/index.js +1 -1
- package/lib/components/cascader/time.js +1 -1
- package/lib/components/change-okr-modal/Filter.js +3 -3
- package/lib/components/change-okr-modal/Item.js +3 -3
- package/lib/components/change-okr-modal/filterTab.js +3 -3
- package/lib/components/change-okr-modal/index.js +5 -7
- package/lib/components/checkbox/index.css +1 -0
- package/lib/components/common-share/publishMblog.js +2 -4
- package/lib/components/communication/CommunicationAttachments.js +3 -3
- package/lib/components/communication/ConvertUserName.js +3 -3
- package/lib/components/communication/index.js +3 -3
- package/lib/components/create-okr-modal/fields/okr-type-detail.js +2 -4
- package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +2 -4
- package/lib/components/create-okr-modal/index.js +2 -4
- package/lib/components/create-okr-modal/objectType.js +3 -3
- package/lib/components/create-okr-modal/request-api.js +12 -16
- package/lib/components/create-okr-modal/utils/helper.js +2 -6
- package/lib/components/date-picker/BodyItem.js +7 -7
- package/lib/components/date-picker/CalendarBody.js +4 -4
- package/lib/components/date-picker/CalendarHeader.js +7 -7
- package/lib/components/date-picker/index.js +3 -3
- package/lib/components/date-range-picker/index.js +3 -3
- package/lib/components/delete-confirm-pop/ConfirmPop.js +6 -6
- package/lib/components/dialog/index.js +1 -1
- package/lib/components/dialog-confirm/index.css +8 -2
- package/lib/components/dialog-confirm/index.js +27 -17
- package/lib/components/dialog-qq-docs/index.js +9 -11
- package/lib/components/dialog-qq-docs/utils.js +2 -6
- package/lib/components/dialog-select/index.js +1 -1
- package/lib/components/dialog-upload/index.js +2 -4
- package/lib/components/dialog-upload-type/components/upload-type-item/index.js +1 -1
- package/lib/components/dialog-upload-type/index.js +1 -1
- package/lib/components/drawer/headerDrop.js +1 -1
- package/lib/components/drawer/index.css +4 -0
- package/lib/components/drawer/index.js +1 -1
- package/lib/components/drawer-manager/drawerWrapper.js +3 -5
- package/lib/components/drawer-manager/index.js +1 -1
- package/lib/components/drop-selector/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +4 -6
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.js +2 -4
- package/lib/components/dynamic/dynamic-item/components/schedule/index.css +0 -1
- package/lib/components/dynamic/dynamic-item/components/schedule/index.js +8 -21
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +5 -6
- package/lib/components/dynamic/dynamic-item/components/task-progress/render-row.js +4 -23
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-discovery/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-learning/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/index.js +1 -1
- package/lib/components/dynamic/dynamic-list/index.js +1 -1
- package/lib/components/eReport/eReportListEmpty.js +3 -3
- package/lib/components/eReport/eReportLists/reportList.js +6 -6
- package/lib/components/eReport/eReportShare/index.js +3 -3
- package/lib/components/eReport/eReportShare/toast/index.js +3 -3
- package/lib/components/edit-kr-wight/EditKrWightModal.js +3 -3
- package/lib/components/edit-kr-wight/FormItemV2.js +3 -3
- package/lib/components/emotions-selector/selector-content.js +3 -3
- package/lib/components/emotions-selector/selector-pop.js +6 -6
- package/lib/components/ereport-list/index.js +6 -6
- package/lib/components/error-boundary/index.js +3 -3
- package/lib/{pages/like-ranking → components}/filter-buttons/department.js +20 -6
- package/lib/{pages/like-ranking → components}/filter-buttons/group.js +2 -2
- package/lib/{pages/like-ranking → components}/filter-buttons/index.css +4 -0
- package/lib/components/filter-buttons/index.js +85 -0
- package/lib/{pages/like-ranking → components}/filter-buttons/modular.js +3 -3
- package/lib/components/filter-buttons/name.js +86 -0
- package/lib/{pages/like-ranking → components}/filter-buttons/search-dropdown/index.css +5 -0
- package/lib/{pages/like-ranking → components}/filter-buttons/search-dropdown/index.js +1 -1
- package/lib/{pages/like-ranking → components}/filter-buttons/timer.js +3 -3
- package/lib/components/firework/index.js +2 -6
- package/lib/components/form/form-fields/cycle/index.css +135 -0
- package/lib/components/form/form-fields/cycle/index.js +190 -0
- package/lib/components/form/form-fields/cycle/interface.js +5 -0
- package/lib/components/form/form-fields/cycle/utils.js +47 -0
- package/lib/components/form/form-fields/date/index.js +1 -1
- package/lib/components/form/form-fields/dropdown/index.css +9 -0
- package/lib/components/form/form-fields/dropdown/index.js +9 -4
- package/lib/components/form/form-fields/input/index.js +22 -11
- package/lib/components/form/form-fields/input-verification-code/index.js +2 -4
- package/lib/components/form/form-fields/user/index.js +1 -1
- package/lib/components/form/index.js +4 -1
- package/lib/components/grid-layout/util/network.js +6 -10
- package/lib/components/guide-order/index.css +228 -0
- package/lib/components/guide-order/index.js +295 -0
- package/lib/components/guide-tip/index.js +1 -1
- package/lib/components/help-card/index.js +1 -1
- package/lib/components/import-modal/import-task-modal/index.js +1 -1
- package/lib/components/import-modal/tree/okr-tree/index.js +2 -4
- package/lib/components/import-modal/tree-node/index.js +1 -1
- package/lib/components/mblog/components/ConfirmPop.js +3 -3
- package/lib/components/mblog/components/MblogAction.js +6 -6
- package/lib/components/mblog/components/MblogContent.js +3 -3
- package/lib/components/mblog/index.js +3 -3
- package/lib/components/menus/components/menu-tree/images/survey-menu/involved.svg +8 -0
- package/lib/components/menus/components/menu-tree/images/survey-menu/manage.svg +11 -0
- package/lib/components/menus/components/menu-tree/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/index.css +56 -0
- package/lib/components/menus/components/menu-tree/tree-node/index.js +1 -1
- package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +1 -1
- package/lib/components/menus/export-modules/summary-menus/menus.js +1 -10
- package/lib/components/menus/export-modules/summary-menus/request-api.js +2 -8
- package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +7 -26
- package/lib/components/menus/export-modules/survey-menu/index.css +9 -0
- package/lib/components/menus/export-modules/survey-menu/index.js +120 -0
- package/lib/components/menus/export-modules/survey-menu/menu-highlight.js +52 -0
- package/lib/components/menus/export-modules/survey-menu/menus.js +87 -0
- package/lib/components/menus/export-modules/survey-menu/request-api.js +5 -0
- package/lib/components/menus/export-modules/survey-menu/survey-front-menus.js +178 -0
- package/lib/components/menus/i18n.js +0 -1
- package/lib/components/menus/index.js +6 -0
- package/lib/components/nav-top/components/app-center/images/survey.svg +20 -0
- package/lib/components/nav-top/components/app-center/index.css +8 -0
- package/lib/components/nav-top/components/menu/index.js +2 -1
- package/lib/components/nav-top/components/user-message/index.js +12 -9
- package/lib/components/nav-top/useGlobalValue.js +4 -1
- package/lib/components/okr-detail/auth.js +3 -3
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +2 -4
- package/lib/components/okr-detail/components/ao-nice/index.js +4 -6
- package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +3 -3
- package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +3 -3
- package/lib/components/okr-detail/components/base-okr-type/object-type.js +3 -3
- package/lib/components/okr-detail/components/header/edit-name.js +2 -4
- package/lib/components/okr-detail/components/header/o-avatar.js +2 -4
- package/lib/components/okr-detail/components/header/o-classify.js +2 -4
- package/lib/components/okr-detail/components/header/o-score.js +1 -1
- package/lib/components/okr-detail/components/icon-text/index.js +1 -1
- package/lib/components/okr-detail/components/o-classify.js +2 -4
- package/lib/components/okr-detail/components/o-progress-update/index.js +2 -4
- package/lib/components/okr-detail/components/okr-tree/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +2 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +2 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +2 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +2 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +6 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +4 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +2 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +6 -8
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +2 -4
- package/lib/components/okr-detail/detail-footer/index.js +2 -4
- package/lib/components/okr-detail/detail-header/index.js +10 -12
- package/lib/components/okr-detail/okr-list/index.js +2 -4
- package/lib/components/okr-detail/request-apis.js +2 -6
- package/lib/components/okr-excel/renders.js +4 -8
- package/lib/components/okr-flow/child-node/fields/creator.js +2 -4
- package/lib/components/okr-flow/child-node/work-node.js +2 -4
- package/lib/components/okr-flow/export-modal/index.js +43 -6
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +8 -10
- package/lib/components/okr-flow/request-apis.js +2 -6
- package/lib/components/okr-flow/root-node/index.js +2 -4
- package/lib/components/okr-progress/components/o-progress-update/index.js +2 -4
- package/lib/components/okr-progress-modal/index.js +2 -4
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +5 -7
- package/lib/components/okr-review/ReviewPop/components/Toast/index.js +3 -3
- package/lib/components/okr-review/ReviewPop/index.js +3 -3
- package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +6 -6
- package/lib/components/okr-review/index.js +3 -3
- package/lib/components/okr-share/common-painter/darwAvatar.js +4 -8
- package/lib/components/okr-share/common-painter/openDataPainter.js +2 -6
- package/lib/components/okr-share/common-painter/utils.js +4 -8
- package/lib/components/okr-share/pink-card/drawDepartmentName.js +2 -6
- package/lib/components/okr-share/pink-card/drawKrs.js +2 -6
- package/lib/components/okr-share/pink-card/drawQuote.js +2 -6
- package/lib/components/okr-share/pink-card/drawUserName.js +2 -6
- package/lib/components/okr-share/pink-card/index.js +2 -6
- package/lib/components/okr-share/publishMblog.js +2 -4
- package/lib/components/okr-share/shareCardSelector.js +4 -6
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +4 -4
- package/lib/components/okrcase-library/server/network.js +20 -24
- package/lib/components/open-data-painter/index.js +2 -6
- package/lib/components/operation-records/OperationRecordItem.js +3 -3
- package/lib/components/operation-records/index.js +11 -59
- package/lib/components/pagination/index.css +5 -0
- package/lib/components/pagination/pagination.js +9 -9
- package/lib/components/pagination/select.css +0 -1
- package/lib/components/period-selector/components/button/index.js +1 -1
- package/lib/components/period-selector/helper/index.js +2 -6
- package/lib/components/picker/components/panels/date-panel/index.js +1 -1
- package/lib/components/picker/components/panels/month-panel/index.js +1 -1
- package/lib/components/picker/components/panels/month-panel/month-head.js +1 -1
- package/lib/components/picker/components/panels/week-panel/index.js +1 -1
- package/lib/components/picker/components/panels/year-panel/index.js +1 -1
- package/lib/components/picker/components/panels/year-panel/year-head.js +1 -1
- package/lib/components/picker/picker.js +1 -1
- package/lib/components/picker/range-picker/index.js +1 -1
- package/lib/components/point-demo/drop-down-box/index.js +1 -1
- package/lib/components/point-demo/input/index.js +4 -4
- package/lib/components/point-demo/popup/index.js +1 -1
- package/lib/components/popup/index.js +1 -1
- package/lib/components/popup-select/index.js +1 -1
- package/lib/components/praise-record/PraiseRecordItem.js +3 -3
- package/lib/components/praise-record/index.js +3 -3
- package/lib/components/promise-confirm/index.js +2 -5
- package/lib/components/radio/index.css +4 -0
- package/lib/components/radio/radio.js +11 -4
- package/lib/components/range-picker-pop/index.js +4 -4
- package/lib/components/range-selector-pop/RangeList.js +3 -3
- package/lib/components/range-selector-pop/RangeSelectorPop.js +6 -6
- package/lib/components/rate/index.js +1 -1
- package/lib/components/rich-editor/models/schema.js +9 -9
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +11 -11
- package/lib/components/rich-editor/plugins/block/heading/index.js +11 -11
- package/lib/components/rich-editor/plugins/block/lists/index.js +17 -17
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +8 -8
- package/lib/components/rich-editor/plugins/core/index.js +7 -7
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +8 -8
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +7 -7
- package/lib/components/rich-editor/plugins/inline/color/commond.js +3 -3
- package/lib/components/rich-editor/plugins/inline/color/index.js +14 -14
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +11 -11
- package/lib/components/rich-editor/plugins/inline/em/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/link/index.js +11 -11
- package/lib/components/rich-editor/plugins/inline/strong/index.js +11 -11
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +11 -11
- package/lib/components/rich-editor/react/reactNodeView.js +5 -5
- package/lib/components/rich-editor/react/uiProvider.js +6 -6
- package/lib/components/rich-editor/ui/Popup/index.js +6 -6
- package/lib/components/scroll-container/index.js +3 -3
- package/lib/components/scrollbar/index.js +1 -1
- package/lib/components/scrollbar/scroll-mask/index.js +1 -1
- package/lib/components/scrollbar/simplebar-react.js +1 -1
- package/lib/components/search-dropdown/index.js +1 -1
- package/lib/components/select/Option.js +7 -7
- package/lib/components/select/index.js +4 -4
- package/lib/components/select-layer/index.js +1 -1
- package/lib/components/select-tags/index.js +1 -1
- package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +2 -6
- package/lib/components/superset-charts/fetch-assets-and-append/index.js +4 -8
- package/lib/components/survey-model/request-api.js +2 -6
- package/lib/components/switch/index.js +1 -1
- package/lib/components/table/index.css +5 -10
- package/lib/components/table/index.js +55 -19
- package/lib/components/tabs/index.css +20 -0
- package/lib/components/tabs/index.js +5 -2
- package/lib/{pages/like-ranking/filter-buttons/name.js → components/tabs/tabBtns.js} +30 -36
- package/lib/components/tag/index.js +1 -1
- package/lib/components/task-relation-modal/index.js +5 -7
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +1 -1
- package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +1 -1
- package/lib/components/task-relation-modal/tree/category-tree/index.js +2 -4
- package/lib/components/task-relation-modal/tree/okr-tree/index.js +2 -4
- package/lib/components/task-relation-modal/tree/work-tree/index.js +2 -4
- package/lib/components/task-relation-modal/tree-node/index.js +1 -1
- package/lib/components/task-relation-modal/work-relation/index.js +5 -7
- package/lib/components/task-tree/task-item-node/e-project.js +2 -4
- package/lib/components/task-tree/task-item-node/e-task.js +2 -4
- package/lib/components/task-tree/task-item-node/task-node-render.js +1 -1
- package/lib/components/task-tree/task-tree.js +1 -1
- package/lib/components/textarea/index.js +1 -1
- package/lib/components/time-picker/time-picker-selector.js +1 -1
- package/lib/components/time-picker/time-picker.js +1 -1
- package/lib/components/time-picker/timer-picker-input.js +1 -1
- package/lib/components/tita-chart/charts/liquid-ball.js +1 -1
- package/lib/components/tita-chart/charts/pie.js +1 -1
- package/lib/components/tita-chart/errorBoundary/index.js +6 -6
- package/lib/components/toast/index.js +8 -12
- package/lib/components/tooltip/error-tip.js +1 -1
- package/lib/components/tooltip/tooltip-text/index.js +2 -1
- package/lib/components/tooltip/tooltip.js +1 -1
- package/lib/components/tree/index.js +1 -1
- package/lib/components/upload/components/uploadedPreview.js +3 -3
- package/lib/components/upload/index.js +5 -7
- package/lib/components/upload/index2.js +2 -4
- package/lib/components/upvote/index.js +5 -7
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +1 -1
- package/lib/components/user-selector/request-apis.js +8 -3
- package/lib/components/user-selector/select-tree/choose-tree/index.js +1 -1
- package/lib/components/user-selector/select-tree/selected-tree/index.js +1 -1
- package/lib/components/version-change-modal/index.js +4 -6
- package/lib/components/version-change-modal/request-api.js +2 -6
- package/lib/components/viewer/ImageListRender.js +3 -3
- package/lib/components/viewer/index.js +3 -3
- package/lib/components/weekly-report/card.js +12 -4
- package/lib/components/weekly-report/common-painter/darwAvatar.js +6 -10
- package/lib/components/weekly-report/common-painter/drawName.js +2 -6
- package/lib/components/weekly-report/common-painter/openDataPainter.js +2 -6
- package/lib/components/weekly-report/index.js +4 -6
- package/lib/components-v1/animate/AnimateChild.js +6 -6
- package/lib/components-v1/animate/animate.js +3 -3
- package/lib/components-v1/avatar/index.js +6 -6
- package/lib/components-v1/buttonv2/ButtonOutlined.js +3 -3
- package/lib/components-v1/buttonv2/ButtonRounded.js +3 -3
- package/lib/components-v1/buttonv2/DefaultButton.js +3 -3
- package/lib/components-v1/confirm/index.js +3 -3
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +6 -6
- package/lib/components-v1/dropDownSelector/dropDownSelector.js +3 -3
- package/lib/components-v1/input/Input.js +4 -4
- package/lib/components-v1/input/InputNumber.js +3 -3
- package/lib/components-v1/placement/placement.js +3 -3
- package/lib/components-v1/placement/placementInner.js +3 -3
- package/lib/components-v1/pop/Pop.js +3 -3
- package/lib/components-v1/pop/PopInner.js +3 -3
- package/lib/components-v1/portals/Portals.js +3 -3
- package/lib/components-v1/progress/CircleProgress.js +6 -6
- package/lib/components-v1/progress/LineProgress.js +3 -3
- package/lib/components-v1/progress/index.js +3 -3
- package/lib/components-v1/radio/radio.js +3 -3
- package/lib/components-v1/radio/radioGroup.js +3 -3
- package/lib/components-v1/search/index.js +3 -3
- package/lib/components-v1/select/Option.js +7 -7
- package/lib/components-v1/select/index.js +4 -4
- package/lib/components-v1/tabs/index.js +3 -3
- package/lib/components-v1/textarea/index.js +3 -3
- package/lib/components-v1/transition/index.js +3 -3
- package/lib/components-v1/userSelector/UserSelectorPop.js +6 -6
- package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/index.js +6 -6
- package/lib/components-v1/userSelector/components/SearchBar.js +3 -3
- package/lib/components-v1/userSelector/components/SingleMode.js +3 -3
- package/lib/components-v1/userSelector/components/UserItem.js +6 -6
- package/lib/components-v1/userSelector/index.js +3 -3
- package/lib/index.js +32 -0
- package/lib/pages/appointment-demo/drop-down-box/index.js +1 -1
- package/lib/pages/appointment-demo/input/index.js +4 -4
- package/lib/pages/appointment-demo/popup/index.js +1 -1
- package/lib/pages/group-management/components/input-form/index.js +4 -4
- package/lib/pages/group-management/components/radio/index.js +1 -1
- package/lib/pages/group-management/components/table/index.js +2 -2
- package/lib/pages/group-management/groupInterface.js +2 -6
- package/lib/pages/group-management/page-view/importGroupStaff/index.js +1 -1
- package/lib/pages/group-management/tree/index.js +1 -1
- package/lib/pages/like-ranking/index.js +1 -1
- package/lib/pages/new-okr-list/request-api.js +14 -18
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +3 -5
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +1 -1
- package/lib/pages/okr-map/request-apis.js +2 -6
- package/lib/pages/okr-map/share-dialog/index.js +1 -1
- package/lib/utils/auth.js +8 -3
- package/lib/utils/helpers.js +2 -6
- package/lib/utils/open-data.js +4 -6
- package/lib/utils/request-v1.js +2 -6
- package/lib/utils/request.js +2 -6
- package/package.json +4 -4
- package/lib/pages/like-ranking/filter-buttons/index.js +0 -36
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
.form-fields-cycle__label {
|
|
2
|
+
height: 22px;
|
|
3
|
+
font-size: 14px;
|
|
4
|
+
margin-bottom: 5px;
|
|
5
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
6
|
+
font-weight: 400;
|
|
7
|
+
line-height: 22px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.form-fields-cycle__label-text {
|
|
11
|
+
color: #3f4755;
|
|
12
|
+
font-weight: 500;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.form-fields-cycle__label-require {
|
|
16
|
+
color: #F05E5E;
|
|
17
|
+
margin-left: 2px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.form-fields-cycle__wrapper {
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
padding: 15px 20px 20px;
|
|
23
|
+
width: 262px;
|
|
24
|
+
font-size: 12px;
|
|
25
|
+
border-radius: 8px;
|
|
26
|
+
box-shadow: 0px 8px 24px 0px rgba(127, 145, 180, 0.2);
|
|
27
|
+
background-color: #ffffff;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.form-fields-cycle__wrapper__select-btn {
|
|
31
|
+
height: 36px;
|
|
32
|
+
width: 100%;
|
|
33
|
+
border: 1px solid #e6eaef;
|
|
34
|
+
border-radius: 8px;
|
|
35
|
+
display: flex;
|
|
36
|
+
padding: 0 12px;
|
|
37
|
+
align-items: center;
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
transition: border 0.2s ease;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.form-fields-cycle__wrapper__select-btn > .tu-icon-cross {
|
|
44
|
+
color: #BFC7D5;
|
|
45
|
+
margin: 0 20px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.form-fields-cycle__wrapper__select-btn:hover {
|
|
49
|
+
border: 1px solid #2879ff;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.form-fields-cycle__wrapper__select-btn > i {
|
|
53
|
+
font-size: 12px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.form-fields-cycle__wrapper__select-btn > span {
|
|
57
|
+
flex: 1;
|
|
58
|
+
width: 0;
|
|
59
|
+
text-align: left;
|
|
60
|
+
text-overflow: ellipsis;
|
|
61
|
+
white-space: nowrap;
|
|
62
|
+
word-break: break-all;
|
|
63
|
+
overflow: hidden;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.form-fields-cycle__wrapper__dateline {
|
|
67
|
+
padding: 12px 0;
|
|
68
|
+
font-size: 12px;
|
|
69
|
+
color: #89919F;
|
|
70
|
+
line-height: 17px;
|
|
71
|
+
text-align: left;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.form-fields-cycle__wrapper__dateline span {
|
|
75
|
+
color: #3F4755;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.form-fields-cycle__wrapper__time-span {
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
display: inline-flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
transition: color .3s ease;
|
|
83
|
+
color: #3F4755;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.form-fields-cycle__wrapper__time-span:hover {
|
|
87
|
+
color: #2879ff;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.form-fields-cycle__wrapper__time-span:hover > i {
|
|
91
|
+
color: #2879ff;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.form-fields-cycle__wrapper__time-span > i {
|
|
95
|
+
margin-left: 12px;
|
|
96
|
+
color: #BFC7D5;
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
transition: color .3s ease;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.form-fields-cycle__select-button {
|
|
102
|
+
height: 36px;
|
|
103
|
+
width: 100%;
|
|
104
|
+
border: 1px solid #e6eaef;
|
|
105
|
+
border-radius: 8px;
|
|
106
|
+
display: flex;
|
|
107
|
+
padding: 0 12px;
|
|
108
|
+
align-items: center;
|
|
109
|
+
box-sizing: border-box;
|
|
110
|
+
cursor: pointer;
|
|
111
|
+
transition: border 0.2s ease;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.form-fields-cycle__select-button > .tu-icon-cross {
|
|
115
|
+
color: #BFC7D5;
|
|
116
|
+
margin: 0 20px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.form-fields-cycle__select-button:hover {
|
|
120
|
+
border: 1px solid #2879ff;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.form-fields-cycle__select-button > i {
|
|
124
|
+
font-size: 12px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.form-fields-cycle__select-button > span {
|
|
128
|
+
flex: 1;
|
|
129
|
+
width: 0;
|
|
130
|
+
text-align: left;
|
|
131
|
+
text-overflow: ellipsis;
|
|
132
|
+
white-space: nowrap;
|
|
133
|
+
word-break: break-all;
|
|
134
|
+
overflow: hidden;
|
|
135
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _moment = _interopRequireDefault(require("moment"));
|
|
15
|
+
|
|
16
|
+
var _periodSelector = _interopRequireDefault(require("../../../../components/period-selector"));
|
|
17
|
+
|
|
18
|
+
var _defaultButton = _interopRequireDefault(require("../../../../components/button/default-button"));
|
|
19
|
+
|
|
20
|
+
var _rangePickerPop = _interopRequireDefault(require("../../../../components/range-picker-pop"));
|
|
21
|
+
|
|
22
|
+
var _popup = _interopRequireDefault(require("../../../../components/popup"));
|
|
23
|
+
|
|
24
|
+
var _getLocale = require("../../../../utils/getLocale");
|
|
25
|
+
|
|
26
|
+
var _utils = require("./utils");
|
|
27
|
+
|
|
28
|
+
require("./index.css");
|
|
29
|
+
|
|
30
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
31
|
+
|
|
32
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
33
|
+
|
|
34
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
35
|
+
|
|
36
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
37
|
+
|
|
38
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
39
|
+
|
|
40
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
41
|
+
|
|
42
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
43
|
+
|
|
44
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
45
|
+
|
|
46
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
47
|
+
|
|
48
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
49
|
+
|
|
50
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
51
|
+
|
|
52
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
53
|
+
|
|
54
|
+
var preCls = 'form-fields-cycle';
|
|
55
|
+
|
|
56
|
+
function CreateCycle(_ref) {
|
|
57
|
+
var _ref$align = _ref.align,
|
|
58
|
+
align = _ref$align === void 0 ? "bottom left" : _ref$align,
|
|
59
|
+
cycle = _ref.cycle,
|
|
60
|
+
container = _ref.container,
|
|
61
|
+
onChange = _ref.onChange,
|
|
62
|
+
_ref$require = _ref.require,
|
|
63
|
+
require = _ref$require === void 0 ? true : _ref$require,
|
|
64
|
+
label = _ref.label;
|
|
65
|
+
|
|
66
|
+
var popRef = (0, _react.useRef)();
|
|
67
|
+
var btnRef = (0, _react.useRef)();
|
|
68
|
+
|
|
69
|
+
if (cycle.cycleType.toString() == '-1') {
|
|
70
|
+
cycle = _objectSpread({
|
|
71
|
+
cycleType: '2',
|
|
72
|
+
annualNum: (0, _moment["default"])().get('y'),
|
|
73
|
+
yqmNum: (0, _moment["default"])().quarter()
|
|
74
|
+
}, (0, _utils.getDefaultDateOfCycle)({
|
|
75
|
+
cycleType: '2',
|
|
76
|
+
annualNum: (0, _moment["default"])().get('y'),
|
|
77
|
+
yqmNum: (0, _moment["default"])().quarter()
|
|
78
|
+
}));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
var _useState = (0, _react.useState)(cycle),
|
|
82
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
83
|
+
selfCycle = _useState2[0],
|
|
84
|
+
setSelfCycle = _useState2[1];
|
|
85
|
+
|
|
86
|
+
var renderPopup = function renderPopup() {
|
|
87
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
88
|
+
className: "".concat(preCls, "__wrapper")
|
|
89
|
+
}, /*#__PURE__*/_react["default"].createElement(_periodSelector["default"], {
|
|
90
|
+
selected: selfCycle,
|
|
91
|
+
showFullCycle: false,
|
|
92
|
+
onChange: function onChange(c) {
|
|
93
|
+
setSelfCycle(_objectSpread(_objectSpread({}, selfCycle), c));
|
|
94
|
+
},
|
|
95
|
+
container: document.body,
|
|
96
|
+
isFetch: false,
|
|
97
|
+
yearsRange: [2018, new Date().getFullYear() + 1],
|
|
98
|
+
style: {
|
|
99
|
+
width: '100%'
|
|
100
|
+
}
|
|
101
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
102
|
+
className: "".concat(preCls, "__wrapper__select-btn")
|
|
103
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, _periodSelector["default"].formatPeriod(selfCycle)), /*#__PURE__*/_react["default"].createElement("i", {
|
|
104
|
+
className: "tu-icon-sort-down"
|
|
105
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
106
|
+
className: "".concat(preCls, "__wrapper__dateline"),
|
|
107
|
+
style: {
|
|
108
|
+
borderBottom: '1px solid #F0F2F5'
|
|
109
|
+
}
|
|
110
|
+
}, (0, _getLocale.getLocale)('Mod_StartDates'), /*#__PURE__*/_react["default"].createElement(_rangePickerPop["default"], {
|
|
111
|
+
format: "YYYY/MM/DD",
|
|
112
|
+
controlled: true,
|
|
113
|
+
onConfirm: function onConfirm(d) {
|
|
114
|
+
setSelfCycle(_objectSpread(_objectSpread({}, selfCycle), d));
|
|
115
|
+
},
|
|
116
|
+
defaultRange: {
|
|
117
|
+
startDate: selfCycle.startDate,
|
|
118
|
+
endDate: selfCycle.endDate
|
|
119
|
+
},
|
|
120
|
+
container: document.body
|
|
121
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
122
|
+
className: "".concat(preCls, "__wrapper__time-span")
|
|
123
|
+
}, selfCycle.startDate, /*#__PURE__*/_react["default"].createElement("i", {
|
|
124
|
+
className: "tu-icon-arrow-down"
|
|
125
|
+
})))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
126
|
+
className: "".concat(preCls, "__wrapper__dateline")
|
|
127
|
+
}, (0, _getLocale.getLocale)('Mod_EndDates'), /*#__PURE__*/_react["default"].createElement(_rangePickerPop["default"], {
|
|
128
|
+
format: "YYYY/MM/DD",
|
|
129
|
+
controlled: true,
|
|
130
|
+
onConfirm: function onConfirm(d) {
|
|
131
|
+
setSelfCycle(_objectSpread(_objectSpread({}, selfCycle), d));
|
|
132
|
+
},
|
|
133
|
+
defaultRange: {
|
|
134
|
+
startDate: selfCycle.startDate,
|
|
135
|
+
endDate: selfCycle.endDate
|
|
136
|
+
},
|
|
137
|
+
container: document.body
|
|
138
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
139
|
+
className: "".concat(preCls, "__wrapper__time-span")
|
|
140
|
+
}, selfCycle.endDate, /*#__PURE__*/_react["default"].createElement("i", {
|
|
141
|
+
className: "tu-icon-arrow-down"
|
|
142
|
+
})))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
143
|
+
style: {
|
|
144
|
+
display: 'flex',
|
|
145
|
+
justifyContent: 'flex-end'
|
|
146
|
+
}
|
|
147
|
+
}, /*#__PURE__*/_react["default"].createElement(_defaultButton["default"].Rect, {
|
|
148
|
+
size: "small",
|
|
149
|
+
style: {
|
|
150
|
+
marginRight: 12
|
|
151
|
+
},
|
|
152
|
+
onClick: function onClick() {
|
|
153
|
+
return popRef.current && popRef.current.close();
|
|
154
|
+
}
|
|
155
|
+
}, (0, _getLocale.getLocale)('Mod_Cancel')), /*#__PURE__*/_react["default"].createElement(_defaultButton["default"].Rect, {
|
|
156
|
+
size: "small",
|
|
157
|
+
type: "primary",
|
|
158
|
+
onClick: function onClick() {
|
|
159
|
+
onChange(selfCycle);
|
|
160
|
+
popRef.current && popRef.current.close();
|
|
161
|
+
}
|
|
162
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Butt_Determine'))));
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
166
|
+
className: "".concat(preCls)
|
|
167
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
168
|
+
className: (0, _classnames["default"])("".concat(preCls, "__label"))
|
|
169
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
170
|
+
className: (0, _classnames["default"])("".concat(preCls, "__label-text"))
|
|
171
|
+
}, label), require && /*#__PURE__*/_react["default"].createElement("span", {
|
|
172
|
+
className: (0, _classnames["default"])("".concat(preCls, "__label-require"))
|
|
173
|
+
}, "*")), /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
174
|
+
ref: popRef,
|
|
175
|
+
popup: renderPopup(),
|
|
176
|
+
popupPlacement: "bottomLeft"
|
|
177
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
178
|
+
className: "".concat(preCls, "__select-button"),
|
|
179
|
+
ref: btnRef,
|
|
180
|
+
onClick: function onClick() {
|
|
181
|
+
setSelfCycle(cycle);
|
|
182
|
+
popRef.current && popRef.current.open();
|
|
183
|
+
}
|
|
184
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, _periodSelector["default"].formatPeriod(cycle)), /*#__PURE__*/_react["default"].createElement("i", {
|
|
185
|
+
className: "tu-icon-sort-down"
|
|
186
|
+
})))));
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
var _default = CreateCycle;
|
|
190
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getDefaultDateOfCycle = getDefaultDateOfCycle;
|
|
7
|
+
|
|
8
|
+
var _moment = _interopRequireDefault(require("moment"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
function getDefaultDateOfCycle(cycle) {
|
|
13
|
+
switch (cycle.cycleType) {
|
|
14
|
+
case '1':
|
|
15
|
+
{
|
|
16
|
+
return {
|
|
17
|
+
startDate: "".concat(cycle.annualNum, "/01/01"),
|
|
18
|
+
endDate: "".concat(cycle.annualNum, "/12/31")
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
case '2':
|
|
23
|
+
{
|
|
24
|
+
var quarter = (0, _moment["default"])().set('year', Number(cycle.annualNum)).set('quarter', Number(cycle.yqmNum));
|
|
25
|
+
return {
|
|
26
|
+
startDate: quarter.startOf('quarter').format('YYYY/MM/DD'),
|
|
27
|
+
endDate: quarter.endOf('quarter').format('YYYY/MM/DD')
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
case '3':
|
|
32
|
+
{
|
|
33
|
+
return {
|
|
34
|
+
startDate: "".concat(cycle.annualNum, "/").concat(cycle.yqmNum < 10 ? '0' + cycle.yqmNum : cycle.yqmNum, "/01"),
|
|
35
|
+
endDate: (0, _moment["default"])(cycle.annualNum + '/' + cycle.yqmNum + '/' + 1).add(1, 'month').set('date', 0).format('YYYY/MM/DD')
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
default:
|
|
40
|
+
{
|
|
41
|
+
return {
|
|
42
|
+
startDate: (0, _moment["default"])().format('YYYY/MM/DD'),
|
|
43
|
+
endDate: (0, _moment["default"])().add(30, 'day').format('YYYY/MM/DD')
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -21,7 +21,7 @@ var _excluded = ["label", "layout", "require", "value", "onChange", "datePopupAl
|
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
23
|
|
|
24
|
-
function _extends() { _extends = Object.assign
|
|
24
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
25
|
|
|
26
26
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
27
27
|
|
|
@@ -9,11 +9,20 @@
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.form-field-dropdown__label {
|
|
12
|
+
display: flex;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.form-field-dropdown__label-text {
|
|
12
16
|
color: #89919f;
|
|
13
17
|
font-size: 14px;
|
|
14
18
|
line-height: 22px;
|
|
15
19
|
}
|
|
16
20
|
|
|
21
|
+
.form-field-dropdown__label-require {
|
|
22
|
+
color: red;
|
|
23
|
+
margin-left: 2px;
|
|
24
|
+
}
|
|
25
|
+
|
|
17
26
|
.form-field-dropdown--vertical {
|
|
18
27
|
flex-direction: row;
|
|
19
28
|
}
|
|
@@ -15,7 +15,7 @@ var _selectTags = _interopRequireDefault(require("../../../select-tags"));
|
|
|
15
15
|
|
|
16
16
|
require("./index.css");
|
|
17
17
|
|
|
18
|
-
var _excluded = ["label", "width", "dropList", "value", "onChange", "direction"];
|
|
18
|
+
var _excluded = ["label", "width", "dropList", "value", "require", "onChange", "direction"];
|
|
19
19
|
|
|
20
20
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
21
|
|
|
@@ -23,7 +23,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
25
|
|
|
26
|
-
function _extends() { _extends = Object.assign
|
|
26
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
27
|
|
|
28
28
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
29
29
|
|
|
@@ -50,6 +50,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
50
50
|
width = _props$width === void 0 ? 100 : _props$width,
|
|
51
51
|
dropList = props.dropList,
|
|
52
52
|
value = props.value,
|
|
53
|
+
require = props.require,
|
|
53
54
|
onChange = props.onChange,
|
|
54
55
|
_props$direction = props.direction,
|
|
55
56
|
direction = _props$direction === void 0 ? "vertical" : _props$direction,
|
|
@@ -74,9 +75,13 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
74
75
|
});
|
|
75
76
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
76
77
|
className: (0, _classnames["default"])(precls, "".concat(precls, "--").concat(direction))
|
|
77
|
-
},
|
|
78
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
78
79
|
className: "".concat(precls, "__label")
|
|
79
|
-
}, label
|
|
80
|
+
}, label.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
81
|
+
className: "".concat(precls, "__label-text")
|
|
82
|
+
}, label), require && /*#__PURE__*/_react["default"].createElement("span", {
|
|
83
|
+
className: (0, _classnames["default"])("".concat(precls, "__label-require"))
|
|
84
|
+
}, "*")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
80
85
|
className: "".concat(precls, "__content")
|
|
81
86
|
}, /*#__PURE__*/_react["default"].createElement(_selectTags["default"], _extends({
|
|
82
87
|
data: dropList,
|
|
@@ -15,7 +15,7 @@ var _errorTip = _interopRequireDefault(require("../../../tooltip/error-tip"));
|
|
|
15
15
|
|
|
16
16
|
require("./index.css");
|
|
17
17
|
|
|
18
|
-
var _excluded = ["label", "verifies", "placeholder", "onChange", "require", "type", "tips", "name", "disabled", "getContainer", "layout", "onCheckSuccess", "className", "tail"
|
|
18
|
+
var _excluded = ["label", "verifies", "placeholder", "onChange", "onBlur", "require", "type", "tips", "name", "disabled", "getContainer", "layout", "onCheckSuccess", "className", "tail"];
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
21
|
|
|
@@ -23,7 +23,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
23
23
|
|
|
24
24
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
25
|
|
|
26
|
-
function _extends() { _extends = Object.assign
|
|
26
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
27
|
|
|
28
28
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
29
29
|
|
|
@@ -70,6 +70,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
70
70
|
verifies = props.verifies,
|
|
71
71
|
placeholder = props.placeholder,
|
|
72
72
|
onChange = props.onChange,
|
|
73
|
+
onBlur = props.onBlur,
|
|
73
74
|
require = props.require,
|
|
74
75
|
type = props.type,
|
|
75
76
|
tips = props.tips,
|
|
@@ -81,7 +82,6 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
81
82
|
_props$className = props.className,
|
|
82
83
|
className = _props$className === void 0 ? '' : _props$className,
|
|
83
84
|
tail = props.tail,
|
|
84
|
-
onBlur = props.onBlur,
|
|
85
85
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
86
86
|
|
|
87
87
|
var inputRef = (0, _react.useRef)();
|
|
@@ -107,6 +107,17 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
107
107
|
setValue = _useState8[1];
|
|
108
108
|
|
|
109
109
|
(0, _react.useEffect)(function () {
|
|
110
|
+
var errors = _verifing();
|
|
111
|
+
|
|
112
|
+
if (errors.length) {
|
|
113
|
+
setHasError(true);
|
|
114
|
+
setTip(errors[0].tip);
|
|
115
|
+
inputRef.current.focus();
|
|
116
|
+
} else {
|
|
117
|
+
setHasError(false);
|
|
118
|
+
setTip('');
|
|
119
|
+
}
|
|
120
|
+
|
|
110
121
|
setValue(props.value);
|
|
111
122
|
}, [props.value]);
|
|
112
123
|
|
|
@@ -139,14 +150,12 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
139
150
|
};
|
|
140
151
|
|
|
141
152
|
var onBlurHandler = function onBlurHandler() {
|
|
153
|
+
var value = inputRef.current && inputRef.current.value;
|
|
154
|
+
onBlur && onBlur(value);
|
|
142
155
|
setHasActive(false);
|
|
143
156
|
|
|
144
157
|
var errors = _verifing();
|
|
145
158
|
|
|
146
|
-
if (onBlur) {
|
|
147
|
-
onBlur();
|
|
148
|
-
}
|
|
149
|
-
|
|
150
159
|
if (errors.length) {
|
|
151
160
|
setHasError(true);
|
|
152
161
|
setTip(errors[0].tip);
|
|
@@ -175,13 +184,15 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
175
184
|
|
|
176
185
|
var errors = _verifing();
|
|
177
186
|
|
|
187
|
+
setHasActive(false);
|
|
188
|
+
|
|
178
189
|
if (errors.length) {
|
|
179
|
-
|
|
180
|
-
|
|
190
|
+
setHasError(true);
|
|
191
|
+
setTip(errors[0].tip);
|
|
181
192
|
onCheckSuccess && onCheckSuccess(false);
|
|
182
193
|
} else {
|
|
183
|
-
|
|
184
|
-
|
|
194
|
+
setHasError(false);
|
|
195
|
+
setTip('');
|
|
185
196
|
onCheckSuccess && onCheckSuccess(true);
|
|
186
197
|
}
|
|
187
198
|
};
|
|
@@ -23,8 +23,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
23
23
|
|
|
24
24
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
25
|
|
|
26
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
27
|
-
|
|
28
26
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
29
27
|
|
|
30
28
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
@@ -173,9 +171,9 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
173
171
|
};
|
|
174
172
|
|
|
175
173
|
var HandlerCode = /*#__PURE__*/function () {
|
|
176
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
|
174
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
177
175
|
var isSuccess, time, timer;
|
|
178
|
-
return
|
|
176
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
179
177
|
while (1) {
|
|
180
178
|
switch (_context.prev = _context.next) {
|
|
181
179
|
case 0:
|
|
@@ -27,7 +27,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
27
27
|
|
|
28
28
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
29
|
|
|
30
|
-
function _extends() { _extends = Object.assign
|
|
30
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
31
31
|
|
|
32
32
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
33
33
|
|
|
@@ -33,6 +33,8 @@ var _password = _interopRequireDefault(require("./form-fields/password"));
|
|
|
33
33
|
|
|
34
34
|
var _date = _interopRequireDefault(require("./form-fields/date"));
|
|
35
35
|
|
|
36
|
+
var _cycle = _interopRequireDefault(require("./form-fields/cycle"));
|
|
37
|
+
|
|
36
38
|
var _layout = require("./layout");
|
|
37
39
|
|
|
38
40
|
require("./index.css");
|
|
@@ -136,7 +138,8 @@ var FormFields = {
|
|
|
136
138
|
GroupFields: _group["default"],
|
|
137
139
|
VerificationInput: _inputVerificationCode["default"],
|
|
138
140
|
Password: _password["default"],
|
|
139
|
-
Date: _date["default"]
|
|
141
|
+
Date: _date["default"],
|
|
142
|
+
Cycle: _cycle["default"]
|
|
140
143
|
}; // @ts-ignore
|
|
141
144
|
|
|
142
145
|
Form.Fields = FormFields;
|