@titaui/pc 1.11.4-1 → 1.11.4-10
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/text-avatar/index.css +7 -0
- package/lib/components/avatar/text-avatar/index.js +32 -7
- package/lib/components/button/rect-btn/index.js +7 -7
- package/lib/components/change-okr-modal/Item.js +15 -15
- package/lib/components/communication/index.js +30 -29
- package/lib/components/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/drawer/index.js +7 -6
- package/lib/components/dynamic/constant.js +13 -6
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +243 -0
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +6 -2
- package/lib/components/dynamic/dynamic-item/dynamic-interview/index.css +22 -7
- package/lib/components/dynamic/dynamic-item/dynamic-interview/index.js +6 -7
- package/lib/components/dynamic/dynamic-item/dynamic-interview/interview-content.js +19 -7
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/img/wifi.svg +24 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/index.css +61 -0
- package/{es/pages/group-management/page-view/loading → lib/components/dynamic/dynamic-item/dynamic-interview-share}/index.js +40 -11
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/interview-content.js +69 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +6 -6
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +7 -7
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +11 -11
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +14 -14
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +10 -10
- package/lib/components/dynamic/dynamic-item/index.js +34 -13
- package/lib/components/dynamic/dynamic-list/index.js +5 -13
- package/lib/components/e-priority/index.js +18 -12
- package/lib/components/eReport/eReportLists/reportList.js +3 -3
- package/lib/components/eReport/eReportShare/index.js +11 -11
- package/lib/components/emotions-selector/selector-pop.js +3 -3
- package/lib/components/ereport-list/index.js +3 -3
- package/lib/components/file-list/components/single-file/index.js +11 -11
- package/lib/components/form/form-fields/date/index.js +15 -11
- package/lib/components/form/form-fields/input/index.js +10 -10
- package/lib/components/form/form-fields/user/index.css +22 -2
- package/lib/components/form/form-fields/user/index.js +18 -8
- package/lib/components/form/form-fields/user/user-input.js +15 -6
- package/lib/components/icon-button-list/index.css +2 -57
- package/lib/components/icon-button-list/index.js +10 -7
- package/lib/components/img-viewer/index.css +10 -3
- package/lib/components/img-viewer/index.js +57 -18
- package/lib/components/mblog/components/MblogAction.js +3 -3
- package/lib/components/mblog/index.js +31 -30
- package/lib/components/menus/components/menu-tree/images/interview-menu/my-interview.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/interview-menu/template.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/interview-menu/todo.svg +16 -0
- package/lib/components/menus/components/menu-tree/index.css +4 -2
- package/lib/components/menus/components/menu-tree/tree-node/index.css +85 -1
- package/lib/components/menus/export-modules/interview-menus/constant.js +12 -12
- package/lib/components/menus/export-modules/interview-menus/index.css +7 -0
- package/lib/components/menus/export-modules/interview-menus/index.js +4 -2
- package/lib/components/nav-top/components/menu/index.js +14 -14
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +25 -19
- package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +48 -10
- package/lib/components/nav-top/components/user-message/constant.js +1 -0
- package/lib/components/nav-top/components/user-message/hrMessage.js +22 -19
- package/lib/components/nav-top/components/user-message/index.js +23 -20
- package/lib/components/nav-top/request.apis.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +7 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
- package/lib/components/okr-detail/detail-header/actions.js +62 -66
- package/lib/components/okr-detail/detail-header/index.css +2 -2
- package/lib/components/okr-detail/detail-header/index.js +205 -194
- package/lib/components/okr-detail/index.js +21 -19
- package/lib/components/okr-flow/child-node/index.css +67 -21
- package/lib/components/okr-flow/child-node/work-node.js +61 -24
- package/lib/components/okr-flow/empty/index.css +8 -1
- package/lib/components/okr-flow/export-modal/index.js +42 -18
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.css +3 -1
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +30 -24
- package/lib/components/okr-flow/images/loading-light.gif +0 -0
- package/lib/components/okr-flow/okr-map/index.js +43 -22
- package/lib/components/okr-flow/request-apis.js +15 -8
- package/lib/components/okr-flow/root-node/index.css +2 -2
- package/lib/components/okr-flow/root-node/index.js +26 -25
- package/lib/components/okr-flow/utils/index.js +45 -29
- package/lib/components/okr-flow/utils/tree-handler.js +29 -18
- package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/okrcase-library/index.css +6 -4
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +36 -30
- package/lib/components/pagination/index.css +3 -3
- package/lib/components/pagination/select.css +58 -23
- package/lib/components/period-selector/index.css +9 -3
- package/lib/components/period-selector/index.js +14 -11
- package/lib/components/picker/components/panels/date-panel/date-body.js +21 -19
- package/lib/components/picker/components/panels/date-panel/date-head.js +29 -8
- package/lib/components/picker/components/panels/month-panel/month-body.js +6 -4
- package/lib/components/picker/components/picker-trigger/index.css +15 -0
- package/lib/components/picker/components/picker-trigger/index.js +8 -8
- package/lib/components/popup/index.js +4 -4
- package/lib/components/radio/index.css +9 -9
- package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
- package/lib/components/rich-editor/models/schema.js +6 -6
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
- package/lib/components/rich-editor/plugins/core/index.js +4 -4
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
- package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
- package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
- package/lib/components/rich-editor/react/uiProvider.js +3 -3
- package/lib/components/rich-editor/ui/Popup/index.js +3 -3
- package/lib/components/scroll-container/index.js +423 -0
- package/lib/components/scroll-container/style.css +35 -0
- package/lib/components/scrollbar/scroll-mask/index.js +1 -1
- package/lib/components/select/Option.js +3 -3
- package/lib/components/superset-charts/components/chart/index.js +1 -1
- package/lib/components/superset-charts/utils/axios.js +5 -13
- package/{es/pages/group-management/page-view/group-empty.js → lib/components/survey-model/contact.js} +54 -27
- package/lib/components/survey-model/index.css +141 -0
- package/lib/components/survey-model/index.js +265 -0
- package/lib/components/survey-model/instance.js +86 -0
- package/lib/components/survey-model/request-api.js +80 -0
- package/lib/components/task-tree/helper.js +61 -0
- package/lib/components/task-tree/images/P1.svg +15 -0
- package/lib/components/task-tree/images/P2.svg +15 -0
- package/lib/components/task-tree/images/P3.svg +15 -0
- package/lib/components/task-tree/images/P4.svg +15 -0
- package/lib/components/task-tree/images/P5.svg +15 -0
- package/lib/components/task-tree/images/arrow.svg +9 -0
- package/lib/components/task-tree/images/empty-131.png +0 -0
- package/lib/components/task-tree/images/followed.svg +33 -0
- package/lib/components/task-tree/images/nice.svg +108 -0
- package/lib/components/task-tree/images/struc12.png +0 -0
- package/lib/components/task-tree/images/struc2.png +0 -0
- package/lib/components/task-tree/images/xialat-s.svg +13 -0
- package/lib/components/task-tree/index.js +22 -0
- package/lib/components/task-tree/mock.js +944 -0
- package/{es/components/okr-detail/e-list → lib/components/task-tree}/precls.js +1 -1
- package/lib/components/task-tree/request-apis.js +88 -0
- package/lib/components/task-tree/task-item-node/constant.js +45 -0
- package/{es/components/okr-detail/components/okr-tree/tree-node/default-node.js → lib/components/task-tree/task-item-node/e-empty.js} +13 -6
- package/{es/components/okr-detail/components/okr-tree/tree-node/e-node → lib/components/task-tree/task-item-node}/e-project.js +63 -51
- package/{es/components/e-status-dropdown/index.js → lib/components/task-tree/task-item-node/e-status-dropdown.js} +13 -13
- package/{es/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js → lib/components/task-tree/task-item-node/e-task.js} +138 -124
- package/{es/components/okr-detail/components/okr-tree/tree-node → lib/components/task-tree/task-item-node}/get-process-color.js +3 -3
- package/lib/components/task-tree/task-item-node/index.css +289 -0
- package/lib/components/task-tree/task-item-node/task-node-render.js +43 -0
- package/lib/components/task-tree/task-tree.css +16 -0
- package/{es/components/okr-detail/components/okr-tree/index.js → lib/components/task-tree/task-tree.js} +17 -16
- package/lib/components/time-picker/index.css +6 -0
- package/lib/components/time-picker/time-picker.js +27 -27
- package/lib/components/tita-chart/errorBoundary/index.js +3 -3
- package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.css +1 -0
- package/lib/components/wechat-btn/index.css +14 -0
- package/lib/components/wechat-btn/index.js +338 -0
- package/lib/components-v1/animate/AnimateChild.js +3 -3
- package/lib/components-v1/avatar/index.js +3 -3
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
- package/lib/components-v1/progress/CircleProgress.js +3 -3
- package/lib/components-v1/radio/radio.js +3 -3
- package/lib/components-v1/radio/style/index.css +8 -8
- package/lib/components-v1/select/Option.js +3 -3
- package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
- package/lib/components-v1/userSelector/components/UserItem.js +3 -3
- package/lib/index.js +99 -91
- package/lib/pages/okr-map/export-modules/okr-map/header/index.css +7 -2
- package/lib/pages/okr-map/export-modules/okr-map/header/index.js +73 -34
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +65 -42
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.css +26 -14
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +58 -13
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +28 -20
- package/lib/pages/okr-map/number-select/index.css +12 -9
- package/lib/pages/okr-map/number-select/index.js +3 -3
- package/lib/utils/auth.js +65 -8
- package/lib/utils/bs-global.js +18 -6
- package/lib/utils/open-data.js +63 -43
- package/package.json +6 -2
- package/.eslintignore +0 -3
- package/.eslintrc.js +0 -223
- package/.husky/pre-commit +0 -4
- package/.prettierignore +0 -31
- package/.prettierrc.js +0 -90
- package/.vscode/settings.json +0 -5
- package/es/components/cascader/time.js +0 -31
- package/es/components/common-share/request-apis.js +0 -56
- package/es/components/confidence/heart.js +0 -66
- package/es/components/create-okr-modal/fields/index.js +0 -17
- package/es/components/create-okr-modal/utils/getCreateOkrSurpassPercent.js +0 -154
- package/es/components/date-picker/BodyItem.js +0 -121
- package/es/components/date-picker/CalendarBody.js +0 -157
- package/es/components/date-picker/CalendarHeader.js +0 -187
- package/es/components/date-picker/index.js +0 -157
- package/es/components/date-range-picker/index.js +0 -210
- package/es/components/dialog/index.js +0 -119
- package/es/components/dialog-confirm/index.js +0 -154
- package/es/components/drop-selector/icon-item.js +0 -40
- package/es/components/drop-selector/index.js +0 -179
- package/es/components/dynamic/dynamic-like-ranking/mock.js +0 -84
- package/es/components/dynamic/dynamic-liking/mock.js +0 -83
- package/es/components/dynamic/dynamic-topping/request-api.js +0 -36
- package/es/components/e-priority/index.js +0 -88
- package/es/components/grid-layout/commen-components/index.js +0 -73
- package/es/components/grid-layout/image/could.js +0 -8
- package/es/components/grid-layout/image/lv.js +0 -8
- package/es/components/grid-layout/image/tita-mask.js +0 -8
- package/es/components/help-card/request-api.js +0 -35
- package/es/components/icon-button-list/index.js +0 -65
- package/es/components/menus/context.js +0 -18
- package/es/components/menus/precls.js +0 -8
- package/es/components/okr-detail/auth.js +0 -197
- package/es/components/okr-detail/components/ao-nice/index.js +0 -245
- package/es/components/okr-detail/components/block-line/index.js +0 -20
- package/es/components/okr-detail/components/header/index.js +0 -211
- package/es/components/okr-detail/components/icon-text/index.js +0 -116
- package/es/components/okr-detail/components/okr-tree/precls.js +0 -8
- package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +0 -88
- package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-status-dropdown.js +0 -98
- package/es/components/okr-detail/components/okr-tree/tree-node/index.js +0 -90
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/get-process-color.js +0 -46
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +0 -421
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/index.js +0 -54
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +0 -62
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +0 -94
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +0 -273
- package/es/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +0 -207
- package/es/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +0 -236
- package/es/components/okr-detail/components/padding-layout.js +0 -22
- package/es/components/okr-detail/components/tab-panel-content/index.js +0 -27
- package/es/components/okr-detail/context.js +0 -30
- package/es/components/okr-detail/e-list/index.js +0 -243
- package/es/components/okr-detail/e-list/search-form/fields/e-order.js +0 -172
- package/es/components/okr-detail/e-list/search-form/fields/e-status.js +0 -99
- package/es/components/okr-detail/e-list/search-form/fields/e-user.js +0 -49
- package/es/components/okr-detail/e-list/search-form/index.js +0 -143
- package/es/components/okr-detail/error-page/index.js +0 -33
- package/es/components/okr-detail/index.js +0 -428
- package/es/components/okr-detail/loading/index.js +0 -28
- package/es/components/okr-detail/okr-list/add-parent-okr.js +0 -37
- package/es/components/okr-detail/okr-list/create-kr-item/heart.js +0 -38
- package/es/components/okr-detail/okr-list/drag-order-kr.js +0 -62
- package/es/components/okr-detail/okr-list/empty/index.js +0 -48
- package/es/components/okr-detail/okr-list/index.js +0 -524
- package/es/components/okr-detail/okr-list/warp-parent-okr.js +0 -21
- package/es/components/okr-detail/store.js +0 -1
- package/es/components/okr-flow/child-node/fields/creator.js +0 -175
- package/es/components/okr-flow/child-node/fields/okrClassify.js +0 -31
- package/es/components/okr-flow/child-node/fields/okrType.js +0 -21
- package/es/components/okr-flow/child-node/helper.js +0 -35
- package/es/components/okr-flow/child-node/index.js +0 -110
- package/es/components/okr-flow/child-node/kr-node.js +0 -75
- package/es/components/okr-flow/child-node/work-node.js +0 -242
- package/es/components/okr-flow/context.js +0 -14
- package/es/components/okr-flow/empty/index.js +0 -29
- package/es/components/okr-flow/export-modules/okr-search-panel/index.js +0 -394
- package/es/components/okr-flow/index.js +0 -24
- package/es/components/okr-flow/mini-map/index.js +0 -112
- package/es/components/okr-flow/mini-map/map.js +0 -145
- package/es/components/okr-flow/mini-map/mini-node.js +0 -57
- package/es/components/okr-flow/mini-map/utils.js +0 -79
- package/es/components/okr-flow/okr-map/index.js +0 -192
- package/es/components/okr-flow/open-data/index.js +0 -115
- package/es/components/okr-flow/precls.js +0 -8
- package/es/components/okr-flow/request-apis.js +0 -118
- package/es/components/okr-flow/root-node/index.js +0 -229
- package/es/components/okr-flow/utils/config.js +0 -18
- package/es/components/okr-flow/utils/helper.js +0 -36
- package/es/components/okr-flow/utils/index.js +0 -66
- package/es/components/okr-flow/utils/tree-handler.js +0 -323
- package/es/components/okr-progress-modal/helper.js +0 -156
- package/es/components/okr-progress-modal/request-apis.js +0 -34
- package/es/components/okr-share/request-apis.js +0 -56
- package/es/components/okrcase-library/server/network.js +0 -407
- package/es/components/pagination/locale/en_US.js +0 -22
- package/es/components/pagination/locale/zh_CN.js +0 -22
- package/es/components/point-demo/drop-down-box/index.js +0 -159
- package/es/components/point-demo/index.js +0 -533
- package/es/components/point-demo/input/index.js +0 -176
- package/es/components/point-demo/point-demo.js +0 -75
- package/es/components/point-demo/popup/index.js +0 -113
- package/es/components/point-demo/popup/placement.js +0 -44
- package/es/components/range-picker-pop/index.js +0 -273
- package/es/components/scrollbar/simplebar/helpers.js +0 -59
- package/es/components/scrollbar/simplebar/index.js +0 -91
- package/es/components/scrollbar/simplebar/scrollbar-width.js +0 -47
- package/es/components/scrollbar/simplebar/simplebar.js +0 -852
- package/es/components/scrollbar/simplebar-react.js +0 -163
- package/es/components/search-dropdown/index.js +0 -40
- package/es/components/search-input/index.js +0 -126
- package/es/components/select/Option.js +0 -94
- package/es/components/select/index.js +0 -330
- package/es/components/selector-input/debounce.js +0 -36
- package/es/components/selector-input/index.js +0 -109
- package/es/components/slider-input/index.js +0 -119
- package/es/components/switch/index.js +0 -39
- package/es/components/table/index.js +0 -275
- package/es/components/tabs/index.js +0 -63
- package/es/components/task-relation-modal/tree-node/index.js +0 -58
- package/es/components/tita-chart/charts/img/could.js +0 -8
- package/es/components/tooltip/error-tip.js +0 -24
- package/es/components/tooltip/index.js +0 -21
- package/es/components/tree/index.js +0 -79
- package/es/components/tree/precls.js +0 -8
- package/es/components/upvote/request-apis.js +0 -45
- package/es/components/user-selector/action-btns/btn-cancel.js +0 -21
- package/es/components/user-selector/action-btns/btn-ok.js +0 -21
- package/es/components/user-selector/action-btns/index.js +0 -27
- package/es/components/user-selector/context.js +0 -18
- package/es/components/user-selector/empty/group.js +0 -55
- package/es/components/user-selector/empty/index.js +0 -28
- package/es/components/user-selector/export-modules/depart-search-selector/result-part.js +0 -41
- package/es/components/user-selector/export-modules/group-selector/index.js +0 -170
- package/es/components/user-selector/export-modules/group-selector/searched-panel.js +0 -68
- package/es/components/user-selector/export-modules/multiple-user-selector--bak/index.js +0 -246
- package/es/components/user-selector/index.js +0 -25
- package/es/components/user-selector/layout/index.js +0 -25
- package/es/components/user-selector/loading/index.js +0 -18
- package/es/components/user-selector/request-apis.js +0 -180
- package/es/components/user-selector/searched-panel/index.js +0 -139
- package/es/components/user-selector/searched-panel/result-part.js +0 -43
- package/es/components/user-selector/select-tree/selected-tree/index.js +0 -91
- package/es/components/user-selector/select-tree/tree-nodes/tree-depart-node/index.js +0 -48
- package/es/components/user-selector/select-tree/tree-nodes/tree-duties-node/index.js +0 -27
- package/es/components/user-selector/select-tree/tree-nodes/tree-group-node/index.js +0 -57
- package/es/components/user-selector/select-tree/tree-nodes/tree-person-node/index.js +0 -93
- package/es/components/user-selector/utils.js +0 -139
- package/es/components/viewer/ImageListRender.js +0 -143
- package/es/components/viewer/index.js +0 -168
- package/es/components/word-cloud/index.js +0 -109
- package/es/components/word-cloud/request-apis.js +0 -26
- package/es/components-v1/animate/AnimateChild.js +0 -76
- package/es/components-v1/animate/animate.js +0 -148
- package/es/components-v1/animate/index.js +0 -13
- package/es/components-v1/dom/index.js +0 -30
- package/es/components-v1/placement/index.js +0 -13
- package/es/components-v1/placement/placement.js +0 -111
- package/es/components-v1/placement/placementInner.js +0 -139
- package/es/components-v1/pop/Pop.js +0 -246
- package/es/components-v1/pop/PopInner.js +0 -163
- package/es/components-v1/pop/index.js +0 -13
- package/es/components-v1/progress/CircleProgress.js +0 -152
- package/es/components-v1/progress/LineProgress.js +0 -83
- package/es/components-v1/progress/index.js +0 -80
- package/es/components-v1/select/Option.js +0 -94
- package/es/components-v1/select/index.js +0 -330
- package/es/components-v1/utils/animate/animate.js +0 -103
- package/es/components-v1/utils/animate/event.js +0 -79
- package/es/components-v1/utils/dom/index.js +0 -30
- package/es/components-v1/utils/placement/autoAdjustPlacement.js +0 -93
- package/es/components-v1/utils/placement/getContainerVisibleArea.js +0 -22
- package/es/components-v1/utils/placement/getExpectPlacement.js +0 -49
- package/es/components-v1/utils/placement/getPlacementInContainer.js +0 -26
- package/es/components-v1/utils/placement/placement.js +0 -76
- package/es/index.js +0 -777
- package/es/pages/appointment-demo/drop-down-box/index.js +0 -159
- package/es/pages/appointment-demo/index.js +0 -649
- package/es/pages/appointment-demo/input/index.js +0 -176
- package/es/pages/appointment-demo/popup/index.js +0 -113
- package/es/pages/appointment-demo/popup/placement.js +0 -44
- package/es/pages/group-management/components/checkbox/index.js +0 -28
- package/es/pages/group-management/components/input-form/index.js +0 -174
- package/es/pages/group-management/components/radio/index.js +0 -21
- package/es/pages/group-management/components/table/index.js +0 -174
- package/es/pages/group-management/groupInterface.js +0 -293
- package/es/pages/group-management/index.js +0 -13
- package/es/pages/group-management/page-view/empty.js +0 -111
- package/es/pages/group-management/page-view/importGroupStaff/index.js +0 -208
- package/es/pages/group-management/page-view/index.js +0 -412
- package/es/pages/group-management/table/index.js +0 -104
- package/es/pages/group-management/tree/add-group-dialog/index.js +0 -153
- package/es/pages/group-management/tree/delete-group-dialog/index.js +0 -82
- package/es/pages/group-management/tree/edit-group-dialog/index.js +0 -155
- package/es/pages/group-management/tree/group-form/index.js +0 -207
- package/es/pages/group-management/tree/index.js +0 -168
- package/es/pages/group-management/tree/operation-panel.js +0 -41
- package/es/pages/group-management/tree/trigger-render.js +0 -99
- package/es/pages/like-ranking/mock.js +0 -366
- package/es/pages/okr-map/export-modules/index.js +0 -1
- package/es/pages/okr-map/export-modules/okr-map/header/index.js +0 -182
- package/es/pages/okr-map/export-modules/okr-map/header/show-kr-confirm.js +0 -47
- package/es/pages/okr-map/export-modules/okr-map/okr-map.js +0 -497
- package/es/pages/okr-map/export-modules/share-okr-page/header/index.js +0 -69
- package/es/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +0 -168
- package/es/pages/okr-map/hooks/useStorage.js +0 -96
- package/es/pages/okr-map/index.js +0 -18
- package/es/pages/okr-map/level2-search/depart.js +0 -53
- package/es/pages/okr-map/level2-search/group.js +0 -69
- package/es/pages/okr-map/level2-search/index.js +0 -51
- package/es/pages/okr-map/level2-search/level2-input.js +0 -46
- package/es/pages/okr-map/level2-search/user.js +0 -54
- package/es/pages/okr-map/no-okr/index.js +0 -24
- package/es/pages/okr-map/number-select/index.js +0 -81
- package/es/pages/okr-map/open-data/index.js +0 -115
- package/es/pages/okr-map/precls.js +0 -8
- package/es/pages/okr-map/request-apis.js +0 -76
- package/es/pages/okr-map/share-dialog/index.js +0 -122
- package/es/pages/okr-map/unsupport-ie/index.js +0 -83
- package/es/pages/okr-map/utils.js +0 -51
- package/es/utils/auth.js +0 -294
- package/es/utils/bs-global.js +0 -114
- package/es/utils/local-storage.js +0 -42
- package/es/utils/mblog.js +0 -33
- package/es/utils/mock-bsglobal.js +0 -1837
- package/es/utils/open-data.js +0 -341
- package/es/utils/request-v1.js +0 -115
- package/es/utils/request.js +0 -183
- package/es/utils/tools.js +0 -286
- package/yarn-error.log +0 -21252
|
@@ -67,25 +67,25 @@ var EReportShare = /*#__PURE__*/function (_PureComponent) {
|
|
|
67
67
|
sentData.ObjType = 4;
|
|
68
68
|
sentData.ObjId = workId;
|
|
69
69
|
|
|
70
|
-
if (submitType ===
|
|
70
|
+
if (submitType === 'submit') {
|
|
71
71
|
_this.setState({
|
|
72
72
|
submitStatus: 2
|
|
73
73
|
});
|
|
74
74
|
|
|
75
|
-
var url = (0, _requestV.getApiUrl2)(
|
|
76
|
-
(0, _requestV.taker)(url,
|
|
75
|
+
var url = (0, _requestV.getApiUrl2)('user/feed/AddShare');
|
|
76
|
+
(0, _requestV.taker)(url, 'POST', sentData).then(function (res) {
|
|
77
77
|
if (res.Code == 1) {
|
|
78
78
|
_this.setState({
|
|
79
79
|
submitStatus: 1
|
|
80
80
|
});
|
|
81
81
|
|
|
82
|
-
onSubmit(
|
|
82
|
+
onSubmit('success');
|
|
83
83
|
} else {
|
|
84
84
|
_this.setState({
|
|
85
85
|
submitStatus: 0
|
|
86
86
|
});
|
|
87
87
|
|
|
88
|
-
onSubmit(
|
|
88
|
+
onSubmit('failed');
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
} else {
|
|
@@ -93,7 +93,7 @@ var EReportShare = /*#__PURE__*/function (_PureComponent) {
|
|
|
93
93
|
submitStatus: 0
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
-
onSubmit(
|
|
96
|
+
onSubmit('cancel');
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
99
|
|
|
@@ -122,12 +122,12 @@ var EReportShare = /*#__PURE__*/function (_PureComponent) {
|
|
|
122
122
|
submitStatus = _this$state.submitStatus,
|
|
123
123
|
popContainer = _this$state.popContainer; // let eReportURL = `${location.origin}${location.pathname}#okr/eReport?okrId=${eReportId}&back=#okr%2Fmanage%3Fwork_id%3D${workId}%26detail_type%3Detask`
|
|
124
124
|
|
|
125
|
-
var eReportURL = "".concat(location.origin).concat(location.pathname, "#okr/eReport?okrId=").concat(eReportId, "&
|
|
126
|
-
var defaultContent = this.isManager ? "@[\u6240\u6709\u540C\u4E8B:all_members] ".concat((0, _getLocale.getLocale)(
|
|
125
|
+
var eReportURL = "".concat(location.origin).concat(location.pathname, "#okr/eReport?okrId=").concat(eReportId, "&work_id=").concat(workId);
|
|
126
|
+
var defaultContent = this.isManager ? "@[\u6240\u6709\u540C\u4E8B:all_members] ".concat((0, _getLocale.getLocale)('Mod_Objective'), "\uFF1A").concat(workName, "\uFF08").concat(eReportDate, "\uFF09E\u5468\u62A5").concat(eReportURL, "\uFF0C\u70B9\u51FB\u94FE\u63A5\u5373\u53EF\u67E5\u770B\uFF5E") : "".concat((0, _getLocale.getLocale)('Mod_Objective'), "\uFF1A").concat(workName, "\uFF08").concat(eReportDate, "\uFF09E\u5468\u62A5").concat(eReportURL, "\uFF0C\u70B9\u51FB\u94FE\u63A5\u5373\u53EF\u67E5\u770B\uFF5E");
|
|
127
127
|
return /*#__PURE__*/_react["default"].createElement(_style.ModalWrapper, {
|
|
128
128
|
className: "".concat(className, " document-mouse-event-ignore"),
|
|
129
129
|
onClick: function onClick() {
|
|
130
|
-
return onSubmit(
|
|
130
|
+
return onSubmit('cancel');
|
|
131
131
|
}
|
|
132
132
|
}, /*#__PURE__*/_react["default"].createElement(_style.ModalContainer, {
|
|
133
133
|
width: "800px",
|
|
@@ -140,7 +140,7 @@ var EReportShare = /*#__PURE__*/function (_PureComponent) {
|
|
|
140
140
|
}, /*#__PURE__*/_react["default"].createElement("span", null, "\u53D1\u5206\u4EAB\uFF08@Ta\uFF09"), /*#__PURE__*/_react["default"].createElement(_style.PraiseRecordClose, {
|
|
141
141
|
className: "tu-icon-close",
|
|
142
142
|
onMouseDown: function onMouseDown() {
|
|
143
|
-
return onSubmit(
|
|
143
|
+
return onSubmit('cancel');
|
|
144
144
|
}
|
|
145
145
|
})), /*#__PURE__*/_react["default"].createElement(_context["default"].Provider, {
|
|
146
146
|
value: {
|
|
@@ -152,7 +152,7 @@ var EReportShare = /*#__PURE__*/function (_PureComponent) {
|
|
|
152
152
|
isShowRangeDropDown: false,
|
|
153
153
|
isShowSendSms: false,
|
|
154
154
|
isShowBtnCancel: false,
|
|
155
|
-
submitText: (0, _getLocale.getLocale)(
|
|
155
|
+
submitText: (0, _getLocale.getLocale)('OKR_MyO_KRP_Butt_Release'),
|
|
156
156
|
initialTextHeight: 96,
|
|
157
157
|
autoResizing: false,
|
|
158
158
|
privateValue: isVisible,
|
|
@@ -47,7 +47,7 @@ var EmotionsSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
47
47
|
var _super = _createSuper(EmotionsSelectorPop);
|
|
48
48
|
|
|
49
49
|
function EmotionsSelectorPop() {
|
|
50
|
-
var
|
|
50
|
+
var _this;
|
|
51
51
|
|
|
52
52
|
_classCallCheck(this, EmotionsSelectorPop);
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ var EmotionsSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
55
55
|
args[_key] = arguments[_key];
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
return _possibleConstructorReturn(_this, (
|
|
58
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
|
|
59
59
|
setTimeout(function () {
|
|
60
60
|
// @ts-ignore
|
|
61
61
|
_this.refs.pop.show(_this.refs.trigger);
|
|
@@ -63,7 +63,7 @@ var EmotionsSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
63
63
|
}, _this.handleHide = function () {
|
|
64
64
|
// @ts-ignore
|
|
65
65
|
_this.refs.pop.hide();
|
|
66
|
-
},
|
|
66
|
+
}, _assertThisInitialized(_this)));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
_createClass(EmotionsSelectorPop, [{
|
|
@@ -57,7 +57,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
57
57
|
var _super = _createSuper(EReportList);
|
|
58
58
|
|
|
59
59
|
function EReportList() {
|
|
60
|
-
var
|
|
60
|
+
var _this;
|
|
61
61
|
|
|
62
62
|
_classCallCheck(this, EReportList);
|
|
63
63
|
|
|
@@ -65,7 +65,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
65
65
|
args[_key] = arguments[_key];
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
return _possibleConstructorReturn(_this, (
|
|
68
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
69
69
|
selectedPeriodValue: "",
|
|
70
70
|
showDatePick: false,
|
|
71
71
|
eReportWeekList: [],
|
|
@@ -178,7 +178,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
178
178
|
return _this.handlerEReportShareSubmit(submitStatus);
|
|
179
179
|
}
|
|
180
180
|
})));
|
|
181
|
-
},
|
|
181
|
+
}, _assertThisInitialized(_this)));
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
_createClass(EReportList, [{
|
|
@@ -39,7 +39,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
39
39
|
|
|
40
40
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
41
41
|
|
|
42
|
-
var prefix =
|
|
42
|
+
var prefix = 'titaui-new-file-list-single-file';
|
|
43
43
|
|
|
44
44
|
var SingleFile = function SingleFile(_ref) {
|
|
45
45
|
var data = _ref.data,
|
|
@@ -75,24 +75,24 @@ var SingleFile = function SingleFile(_ref) {
|
|
|
75
75
|
}, isMouseEnter && /*#__PURE__*/_react["default"].createElement("div", {
|
|
76
76
|
className: "".concat(prefix, "__operate"),
|
|
77
77
|
onMouseLeave: handleMouseLeave
|
|
78
|
-
},
|
|
78
|
+
}, showDownload && /*#__PURE__*/_react["default"].createElement("a", {
|
|
79
|
+
className: (0, _classnames["default"])("".concat(prefix, "__operate-item"), _defineProperty({}, "".concat(prefix, "__not-preview"), !canPreview || !data.previewUrl)),
|
|
80
|
+
href: data.downloadUrl
|
|
81
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
82
|
+
className: (0, _classnames["default"])('tu-icon-APP-xiazai', "".concat(prefix, "__operate-item-icon"))
|
|
83
|
+
}), (0, _getLocale.getLocale)('Mod_Download')), !isImg && canPreview && data.previewUrl && /*#__PURE__*/_react["default"].createElement("a", {
|
|
79
84
|
className: (0, _classnames["default"])("".concat(prefix, "__operate-item"), _defineProperty({}, "".concat(prefix, "__operate-item--only"), !showDownload)),
|
|
80
85
|
href: data.previewUrl,
|
|
81
86
|
target: "_blank",
|
|
82
87
|
rel: "noreferrer"
|
|
83
88
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
84
|
-
className: (0, _classnames["default"])(
|
|
85
|
-
}), (0, _getLocale.getLocale)(
|
|
89
|
+
className: (0, _classnames["default"])('tu-icon-yulan', "".concat(prefix, "__operate-item-icon"))
|
|
90
|
+
}), (0, _getLocale.getLocale)('Mod_Preview')), isImg && data.previewUrl && /*#__PURE__*/_react["default"].createElement("a", {
|
|
86
91
|
className: (0, _classnames["default"])("".concat(prefix, "__operate-item"), _defineProperty({}, "".concat(prefix, "__operate-item--only"), !showDownload)),
|
|
87
92
|
onClick: handlePreviewImg
|
|
88
93
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
89
|
-
className: (0, _classnames["default"])(
|
|
90
|
-
}), (0, _getLocale.getLocale)(
|
|
91
|
-
className: (0, _classnames["default"])("".concat(prefix, "__operate-item"), _defineProperty({}, "".concat(prefix, "__not-preview"), !canPreview || !data.previewUrl)),
|
|
92
|
-
href: data.downloadUrl
|
|
93
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
94
|
-
className: (0, _classnames["default"])("tu-icon-APP-xiazai", "".concat(prefix, "__operate-item-icon"))
|
|
95
|
-
}), (0, _getLocale.getLocale)("Mod_Download"))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
94
|
+
className: (0, _classnames["default"])('tu-icon-yulan', "".concat(prefix, "__operate-item-icon"))
|
|
95
|
+
}), (0, _getLocale.getLocale)('Mod_Preview'))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
96
96
|
className: (0, _classnames["default"])("".concat(prefix, "__file-preview")),
|
|
97
97
|
onMouseEnter: handleMouseEnter,
|
|
98
98
|
style: {
|
|
@@ -17,7 +17,7 @@ var _timePicker = _interopRequireDefault(require("../../../time-picker"));
|
|
|
17
17
|
|
|
18
18
|
require("./index.css");
|
|
19
19
|
|
|
20
|
-
var _excluded = ["label", "layout", "require", "value", "onChange"];
|
|
20
|
+
var _excluded = ["label", "layout", "require", "value", "onChange", "datePopupAlign", "timePopupAlign"];
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
23
|
|
|
@@ -29,7 +29,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
29
29
|
|
|
30
30
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
31
31
|
|
|
32
|
-
var prefixCls =
|
|
32
|
+
var prefixCls = 'form-field-date';
|
|
33
33
|
|
|
34
34
|
var Date = function Date(props) {
|
|
35
35
|
var label = props.label,
|
|
@@ -38,13 +38,15 @@ var Date = function Date(props) {
|
|
|
38
38
|
_props$value = props.value,
|
|
39
39
|
value = _props$value === void 0 ? (0, _moment["default"])() : _props$value,
|
|
40
40
|
onChange = props.onChange,
|
|
41
|
+
datePopupAlign = props.datePopupAlign,
|
|
42
|
+
timePopupAlign = props.timePopupAlign,
|
|
41
43
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
42
44
|
|
|
43
45
|
var onDateChange = function onDateChange(date, type) {
|
|
44
46
|
var newDate;
|
|
45
47
|
|
|
46
48
|
switch (type) {
|
|
47
|
-
case
|
|
49
|
+
case 'date':
|
|
48
50
|
newDate = (0, _moment["default"])(value || (0, _moment["default"])()).set({
|
|
49
51
|
year: (0, _moment["default"])(date).year(),
|
|
50
52
|
month: (0, _moment["default"])(date).month(),
|
|
@@ -52,10 +54,10 @@ var Date = function Date(props) {
|
|
|
52
54
|
});
|
|
53
55
|
break;
|
|
54
56
|
|
|
55
|
-
case
|
|
57
|
+
case 'time':
|
|
56
58
|
newDate = (0, _moment["default"])(value || (0, _moment["default"])()).set({
|
|
57
|
-
hour: (0, _moment["default"])(date,
|
|
58
|
-
minute: (0, _moment["default"])(date,
|
|
59
|
+
hour: (0, _moment["default"])(date, 'HH:mm').hour(),
|
|
60
|
+
minute: (0, _moment["default"])(date, 'HH:mm').minute()
|
|
59
61
|
});
|
|
60
62
|
break;
|
|
61
63
|
|
|
@@ -67,7 +69,7 @@ var Date = function Date(props) {
|
|
|
67
69
|
};
|
|
68
70
|
|
|
69
71
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
70
|
-
className: (0, _classnames["default"])(prefixCls, _defineProperty({}, "".concat(prefixCls, "-row"), layout ===
|
|
72
|
+
className: (0, _classnames["default"])(prefixCls, _defineProperty({}, "".concat(prefixCls, "-row"), layout === 'row'))
|
|
71
73
|
}, !!label && /*#__PURE__*/_react["default"].createElement("div", {
|
|
72
74
|
className: "".concat(prefixCls, "__label")
|
|
73
75
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -79,19 +81,21 @@ var Date = function Date(props) {
|
|
|
79
81
|
}, /*#__PURE__*/_react["default"].createElement(_picker["default"], _extends({
|
|
80
82
|
value: value,
|
|
81
83
|
onChange: function onChange(date) {
|
|
82
|
-
return onDateChange(date,
|
|
83
|
-
}
|
|
84
|
+
return onDateChange(date, 'date');
|
|
85
|
+
},
|
|
86
|
+
popupAlign: datePopupAlign
|
|
84
87
|
}, restProps)), /*#__PURE__*/_react["default"].createElement(_timePicker["default"], _extends({
|
|
85
88
|
value: value,
|
|
89
|
+
popupAlign: timePopupAlign,
|
|
86
90
|
onChange: function onChange(time) {
|
|
87
|
-
return onDateChange(time,
|
|
91
|
+
return onDateChange(time, 'time');
|
|
88
92
|
}
|
|
89
93
|
}, restProps))));
|
|
90
94
|
};
|
|
91
95
|
|
|
92
96
|
Date.defaultProps = {
|
|
93
97
|
disabled: false,
|
|
94
|
-
layout:
|
|
98
|
+
layout: 'column',
|
|
95
99
|
require: false
|
|
96
100
|
};
|
|
97
101
|
var _default = Date;
|
|
@@ -43,7 +43,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
43
43
|
|
|
44
44
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
45
45
|
|
|
46
|
-
var preCls =
|
|
46
|
+
var preCls = 'form-field-input';
|
|
47
47
|
|
|
48
48
|
function OverlayInner(_ref) {
|
|
49
49
|
var hasError = _ref.hasError,
|
|
@@ -52,12 +52,12 @@ function OverlayInner(_ref) {
|
|
|
52
52
|
activeTips = _ref.activeTips;
|
|
53
53
|
if (hasActive) return /*#__PURE__*/_react["default"].createElement("span", {
|
|
54
54
|
style: {
|
|
55
|
-
color:
|
|
55
|
+
color: '#3F4755'
|
|
56
56
|
}
|
|
57
57
|
}, activeTips);
|
|
58
58
|
if (hasError) return /*#__PURE__*/_react["default"].createElement("span", {
|
|
59
59
|
style: {
|
|
60
|
-
color:
|
|
60
|
+
color: '#F05E5E'
|
|
61
61
|
}
|
|
62
62
|
}, tip);
|
|
63
63
|
return /*#__PURE__*/_react["default"].createElement("span", null);
|
|
@@ -79,7 +79,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
79
79
|
layout = props.layout,
|
|
80
80
|
onCheckSuccess = props.onCheckSuccess,
|
|
81
81
|
_props$className = props.className,
|
|
82
|
-
className = _props$className === void 0 ?
|
|
82
|
+
className = _props$className === void 0 ? '' : _props$className,
|
|
83
83
|
tail = props.tail,
|
|
84
84
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
85
85
|
|
|
@@ -95,12 +95,12 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
95
95
|
hasActive = _useState4[0],
|
|
96
96
|
setHasActive = _useState4[1];
|
|
97
97
|
|
|
98
|
-
var _useState5 = (0, _react.useState)(
|
|
98
|
+
var _useState5 = (0, _react.useState)(''),
|
|
99
99
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
100
100
|
tip = _useState6[0],
|
|
101
101
|
setTip = _useState6[1];
|
|
102
102
|
|
|
103
|
-
var _useState7 = (0, _react.useState)(props.value ||
|
|
103
|
+
var _useState7 = (0, _react.useState)(props.value || ''),
|
|
104
104
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
105
105
|
value = _useState8[0],
|
|
106
106
|
setValue = _useState8[1];
|
|
@@ -133,7 +133,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
133
133
|
|
|
134
134
|
var onInputFocusHandler = function onInputFocusHandler() {
|
|
135
135
|
setHasActive(true);
|
|
136
|
-
if (type && type ==
|
|
136
|
+
if (type && type == 'number') return;
|
|
137
137
|
inputRef.current.setSelectionRange(9999999, 9999999);
|
|
138
138
|
};
|
|
139
139
|
|
|
@@ -147,7 +147,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
147
147
|
setTip(errors[0].tip);
|
|
148
148
|
} else {
|
|
149
149
|
setHasError(false);
|
|
150
|
-
setTip(
|
|
150
|
+
setTip('');
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
153
|
|
|
@@ -196,7 +196,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
196
196
|
};
|
|
197
197
|
});
|
|
198
198
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
199
|
-
className: (0, _classnames["default"])(preCls, _defineProperty({}, "".concat(preCls, "-row"), layout ===
|
|
199
|
+
className: (0, _classnames["default"])(preCls, _defineProperty({}, "".concat(preCls, "-row"), layout === 'row'), className)
|
|
200
200
|
}, !!label && /*#__PURE__*/_react["default"].createElement("div", {
|
|
201
201
|
className: (0, _classnames["default"])("".concat(preCls, "__label"))
|
|
202
202
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -227,7 +227,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
227
227
|
onBlur: onBlurHandler,
|
|
228
228
|
onChange: onChangeHandler,
|
|
229
229
|
autoComplete: "off"
|
|
230
|
-
}, restProps))), typeof tail ===
|
|
230
|
+
}, restProps))), typeof tail === 'string' ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
231
231
|
className: (0, _classnames["default"])("".concat(preCls, "__tail"))
|
|
232
232
|
}, tail) : tail));
|
|
233
233
|
});
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
font-weight: 400;
|
|
43
43
|
color: #3f4755;
|
|
44
44
|
cursor: pointer;
|
|
45
|
+
display: flex;
|
|
45
46
|
position: relative;
|
|
46
47
|
}
|
|
47
48
|
|
|
@@ -49,8 +50,21 @@
|
|
|
49
50
|
display: block;
|
|
50
51
|
}
|
|
51
52
|
|
|
52
|
-
.form-field-user__input-
|
|
53
|
+
.form-field-user__input-user-info {
|
|
53
54
|
margin-right: 5px;
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.form-field-user__input-user-info .titaui-pc-avator-container {
|
|
60
|
+
display: flex;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.form-field-user__input-user-info__name {
|
|
64
|
+
margin-left: 4px;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
text-overflow: ellipsis;
|
|
67
|
+
white-space: nowrap;
|
|
54
68
|
}
|
|
55
69
|
|
|
56
70
|
.form-field-user__input--placeholder {
|
|
@@ -72,10 +86,16 @@
|
|
|
72
86
|
}
|
|
73
87
|
|
|
74
88
|
.form-field-user__input--down {
|
|
75
|
-
|
|
89
|
+
font-size: 16px;
|
|
90
|
+
color: #3f4755;
|
|
76
91
|
position: absolute;
|
|
77
92
|
right: -32px;
|
|
78
93
|
top: 50%;
|
|
79
94
|
transform: translate(0, -50%);
|
|
80
95
|
cursor: pointer;
|
|
81
96
|
}
|
|
97
|
+
|
|
98
|
+
.form-field-user__input--down::before {
|
|
99
|
+
transform: scale(0.5);
|
|
100
|
+
display: inline-block;
|
|
101
|
+
}
|
|
@@ -19,12 +19,16 @@ var _userInput = _interopRequireDefault(require("./user-input"));
|
|
|
19
19
|
|
|
20
20
|
require("./index.css");
|
|
21
21
|
|
|
22
|
+
var _excluded = ["name", "label", "placeholder", "value", "onChange", "require", "maxSize", "multiple", "getContainer"];
|
|
23
|
+
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
25
|
|
|
24
26
|
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); }
|
|
25
27
|
|
|
26
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; }
|
|
27
29
|
|
|
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
|
+
|
|
28
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; }
|
|
29
33
|
|
|
30
34
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -39,7 +43,11 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
39
43
|
|
|
40
44
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
41
45
|
|
|
42
|
-
var
|
|
46
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
47
|
+
|
|
48
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
49
|
+
|
|
50
|
+
var preCls = 'form-field-user';
|
|
43
51
|
|
|
44
52
|
function OverlayInner(_ref) {
|
|
45
53
|
var hasError = _ref.hasError,
|
|
@@ -47,12 +55,12 @@ function OverlayInner(_ref) {
|
|
|
47
55
|
tip = _ref.tip;
|
|
48
56
|
if (hasError) return /*#__PURE__*/_react["default"].createElement("span", {
|
|
49
57
|
style: {
|
|
50
|
-
color:
|
|
58
|
+
color: '#F05E5E'
|
|
51
59
|
}
|
|
52
60
|
}, tip);
|
|
53
61
|
if (hasActive) return /*#__PURE__*/_react["default"].createElement("span", {
|
|
54
62
|
style: {
|
|
55
|
-
color:
|
|
63
|
+
color: '#3F4755'
|
|
56
64
|
}
|
|
57
65
|
}, tip);
|
|
58
66
|
return /*#__PURE__*/_react["default"].createElement("span", null);
|
|
@@ -69,9 +77,10 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
69
77
|
require = props.require,
|
|
70
78
|
maxSize = props.maxSize,
|
|
71
79
|
multiple = props.multiple,
|
|
72
|
-
getContainer = props.getContainer
|
|
80
|
+
getContainer = props.getContainer,
|
|
81
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
73
82
|
|
|
74
|
-
var _useState = (0, _react.useState)(
|
|
83
|
+
var _useState = (0, _react.useState)(''),
|
|
75
84
|
_useState2 = _slicedToArray(_useState, 2),
|
|
76
85
|
tip = _useState2[0],
|
|
77
86
|
setTip = _useState2[1];
|
|
@@ -119,7 +128,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
119
128
|
var onUserSelectHandler = function onUserSelectHandler(data) {
|
|
120
129
|
setHasActive(false);
|
|
121
130
|
setHasError(false);
|
|
122
|
-
setTip(
|
|
131
|
+
setTip('');
|
|
123
132
|
var users = [];
|
|
124
133
|
|
|
125
134
|
if (multiple) {
|
|
@@ -211,7 +220,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
211
220
|
tip: tip
|
|
212
221
|
}),
|
|
213
222
|
getTooltipContainer: getContainer
|
|
214
|
-
}, /*#__PURE__*/_react["default"].createElement(_userSelector["default"], {
|
|
223
|
+
}, /*#__PURE__*/_react["default"].createElement(_userSelector["default"], _extends({
|
|
215
224
|
multiple: multiple,
|
|
216
225
|
selectNodes: selectNodes,
|
|
217
226
|
position: "centerRight",
|
|
@@ -229,7 +238,8 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
229
238
|
group: false
|
|
230
239
|
},
|
|
231
240
|
onPopupVisibleChange: onPopupVisibleChangeHandler
|
|
232
|
-
}, /*#__PURE__*/_react["default"].createElement(_userInput["default"], {
|
|
241
|
+
}, restProps), /*#__PURE__*/_react["default"].createElement(_userInput["default"], {
|
|
242
|
+
multiple: multiple,
|
|
233
243
|
users: selectNodes.users,
|
|
234
244
|
onClear: onClearHandler,
|
|
235
245
|
placeholder: placeholder
|
|
@@ -15,21 +15,25 @@ var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
|
15
15
|
|
|
16
16
|
var _getLocale = require("../../../../utils/getLocale");
|
|
17
17
|
|
|
18
|
+
var _openData = require("../../../../utils/open-data");
|
|
19
|
+
|
|
18
20
|
require("./index.css");
|
|
19
21
|
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
23
|
|
|
22
|
-
var preCls =
|
|
24
|
+
var preCls = 'form-field-user';
|
|
23
25
|
|
|
24
26
|
function _default(props) {
|
|
25
|
-
var
|
|
27
|
+
var _props$multiple = props.multiple,
|
|
28
|
+
multiple = _props$multiple === void 0 ? false : _props$multiple,
|
|
29
|
+
users = props.users,
|
|
26
30
|
_props$placeholder = props.placeholder,
|
|
27
|
-
placeholder = _props$placeholder === void 0 ? (0, _getLocale.getLocale)(
|
|
31
|
+
placeholder = _props$placeholder === void 0 ? (0, _getLocale.getLocale)('Mod_Pleaseselect') : _props$placeholder,
|
|
28
32
|
onClear = props.onClear;
|
|
29
33
|
var userNames = [];
|
|
30
34
|
(users || []).forEach(function (user) {
|
|
31
|
-
userNames.push( /*#__PURE__*/_react["default"].createElement("
|
|
32
|
-
className: (0, _classnames["default"])("".concat(preCls, "__input-
|
|
35
|
+
userNames.push( /*#__PURE__*/_react["default"].createElement("div", {
|
|
36
|
+
className: (0, _classnames["default"])("".concat(preCls, "__input-user-info"))
|
|
33
37
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
34
38
|
overlay: user.name,
|
|
35
39
|
placement: "top"
|
|
@@ -38,6 +42,11 @@ function _default(props) {
|
|
|
38
42
|
src: user.avatar.small,
|
|
39
43
|
color: user.avatar.color,
|
|
40
44
|
userId: user.userId
|
|
45
|
+
})), !multiple && /*#__PURE__*/_react["default"].createElement("p", {
|
|
46
|
+
className: (0, _classnames["default"])("".concat(preCls, "__input-user-info__name"))
|
|
47
|
+
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
48
|
+
id: user.userId,
|
|
49
|
+
name: user.name
|
|
41
50
|
}))));
|
|
42
51
|
});
|
|
43
52
|
|
|
@@ -55,6 +64,6 @@ function _default(props) {
|
|
|
55
64
|
className: (0, _classnames["default"])("tu-icon-cross ".concat(preCls, "__input--clear")),
|
|
56
65
|
onClick: onHandleClear
|
|
57
66
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
58
|
-
className: (0, _classnames["default"])("".concat(preCls, "__input--down tu-icon-
|
|
67
|
+
className: (0, _classnames["default"])("".concat(preCls, "__input--down tu-icon-caret-down"))
|
|
59
68
|
}));
|
|
60
69
|
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
height: 30px;
|
|
17
17
|
margin-left: 10px;
|
|
18
18
|
border: 1px solid #e6eaef;
|
|
19
|
-
border-radius:
|
|
19
|
+
border-radius: 50%;
|
|
20
20
|
box-sizing: border-box;
|
|
21
21
|
cursor: pointer;
|
|
22
22
|
}
|
|
@@ -33,63 +33,8 @@
|
|
|
33
33
|
border-color: #2879ff;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.titaui-icon-button-list__btn:hover .titaui-icon-button-list__btn-icon--export {
|
|
37
|
-
background-position: 0 -287px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.titaui-icon-button-list__btn:hover .titaui-icon-button-list__btn-icon--share {
|
|
41
|
-
background-position: 0 -26px;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.titaui-icon-button-list__btn:hover .titaui-icon-button-list__btn-icon--fullscreen {
|
|
45
|
-
background-position: 0 -78px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.titaui-icon-button-list__btn:hover .titaui-icon-button-list__btn-icon--quit-fullscreen {
|
|
49
|
-
background-position: 0 -130px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.titaui-icon-button-list__btn:hover .titaui-icon-button-list__btn-icon--horizontal {
|
|
53
|
-
background-position: 0 -182px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.titaui-icon-button-list__btn:hover .titaui-icon-button-list__btn-icon--vertical {
|
|
57
|
-
background-position: 0 -234px;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
36
|
.titaui-icon-button-list__btn-icon {
|
|
61
37
|
display: inline-block;
|
|
62
38
|
box-sizing: border-box;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
.titaui-icon-button-list__btn-icon--base {
|
|
66
|
-
width: 16px;
|
|
67
|
-
height: 16px;
|
|
68
|
-
background: url("./images/icons-2.png") no-repeat;
|
|
69
|
-
background-size: cover;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.titaui-icon-button-list__btn-icon--export {
|
|
73
|
-
background-position: 0 -261px;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.titaui-icon-button-list__btn-icon--share {
|
|
77
|
-
background-position: 0 0;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.titaui-icon-button-list__btn-icon--fullscreen {
|
|
81
|
-
background-position: 0 -52px;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.titaui-icon-button-list__btn-icon--quit-fullscreen {
|
|
85
|
-
background-position: 0 -104px;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.titaui-icon-button-list__btn-icon--horizontal {
|
|
89
|
-
background-position: 0 -156px;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.titaui-icon-button-list__btn-icon--vertical {
|
|
93
|
-
height: 17px;
|
|
94
|
-
background-position: 0 -208px;
|
|
39
|
+
font-size: 16px;
|
|
95
40
|
}
|
|
@@ -19,7 +19,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
19
19
|
|
|
20
20
|
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; }
|
|
21
21
|
|
|
22
|
-
var preCls =
|
|
22
|
+
var preCls = 'titaui-icon-button-list';
|
|
23
23
|
|
|
24
24
|
function _default(props) {
|
|
25
25
|
var items = props.items,
|
|
@@ -32,22 +32,25 @@ function _default(props) {
|
|
|
32
32
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
33
33
|
className: (0, _classnames["default"])("".concat(preCls, "__inner"))
|
|
34
34
|
}, items.map(function (it) {
|
|
35
|
-
var _classNames;
|
|
36
|
-
|
|
37
35
|
var icon = it.icon,
|
|
36
|
+
type = it.type,
|
|
38
37
|
overlay = it.overlay,
|
|
39
38
|
_it$placement = it.placement,
|
|
40
|
-
placement = _it$placement === void 0 ?
|
|
39
|
+
placement = _it$placement === void 0 ? 'top' : _it$placement,
|
|
41
40
|
_it$trigger = it.trigger,
|
|
42
|
-
trigger = _it$trigger === void 0 ? [
|
|
41
|
+
trigger = _it$trigger === void 0 ? ['hover'] : _it$trigger,
|
|
42
|
+
rotate = it.rotate;
|
|
43
43
|
|
|
44
44
|
var content = /*#__PURE__*/_react["default"].createElement("span", {
|
|
45
45
|
className: (0, _classnames["default"])("".concat(preCls, "__btn")),
|
|
46
46
|
onClick: function onClick(e) {
|
|
47
|
-
return _onClick(e,
|
|
47
|
+
return _onClick(e, type);
|
|
48
48
|
}
|
|
49
49
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
50
|
-
className: (0, _classnames["default"])("".concat(preCls, "__btn-icon"), (
|
|
50
|
+
className: (0, _classnames["default"])("".concat(preCls, "__btn-icon"), _defineProperty({}, "tu-icon-".concat(icon), true)),
|
|
51
|
+
style: rotate ? {
|
|
52
|
+
transform: "rotate(".concat(rotate, "deg)")
|
|
53
|
+
} : {}
|
|
51
54
|
}));
|
|
52
55
|
|
|
53
56
|
if (overlay) {
|