@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
|
@@ -73,6 +73,8 @@ function PeriodSelector(_ref) {
|
|
|
73
73
|
wrapperStyle = _ref.wrapperStyle,
|
|
74
74
|
popClass = _ref.popClass,
|
|
75
75
|
style = _ref.style,
|
|
76
|
+
_ref$buttonClass = _ref.buttonClass,
|
|
77
|
+
buttonClass = _ref$buttonClass === void 0 ? '' : _ref$buttonClass,
|
|
76
78
|
_ref$noBorder = _ref.noBorder,
|
|
77
79
|
noBorder = _ref$noBorder === void 0 ? false : _ref$noBorder;
|
|
78
80
|
|
|
@@ -92,7 +94,7 @@ function PeriodSelector(_ref) {
|
|
|
92
94
|
|
|
93
95
|
var _useState3 = (0, _react.useState)({
|
|
94
96
|
annualNum: "".concat(new Date().getFullYear()),
|
|
95
|
-
cycleType:
|
|
97
|
+
cycleType: '2',
|
|
96
98
|
yqmNum: "".concat((0, _moment["default"])().quarter())
|
|
97
99
|
}),
|
|
98
100
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
@@ -112,10 +114,10 @@ function PeriodSelector(_ref) {
|
|
|
112
114
|
}, []);
|
|
113
115
|
(0, _react.useEffect)(function () {
|
|
114
116
|
if (!visible && (!isFetch || fetchRef.current)) return;
|
|
115
|
-
var url = (0, _helper.getApiUrl)(
|
|
117
|
+
var url = (0, _helper.getApiUrl)('okr/cycleSetting');
|
|
116
118
|
|
|
117
119
|
if (isFetch) {
|
|
118
|
-
(0, _helper.taker)(url,
|
|
120
|
+
(0, _helper.taker)(url, 'GET').then(function (res) {
|
|
119
121
|
if (res.Code == 1) {
|
|
120
122
|
fetchRef.current = true;
|
|
121
123
|
setCycleSetting(res.Data);
|
|
@@ -159,7 +161,7 @@ function PeriodSelector(_ref) {
|
|
|
159
161
|
});
|
|
160
162
|
|
|
161
163
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
162
|
-
className: (0, _classnames["default"])(
|
|
164
|
+
className: (0, _classnames["default"])('titaui-period-selector'),
|
|
163
165
|
style: style
|
|
164
166
|
}, /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
165
167
|
getPopupContainer: getPopupContainer,
|
|
@@ -174,24 +176,25 @@ function PeriodSelector(_ref) {
|
|
|
174
176
|
className: className
|
|
175
177
|
}, children || /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
|
176
178
|
type: "default",
|
|
179
|
+
className: buttonClass,
|
|
177
180
|
style: noBorder ? {
|
|
178
|
-
padding:
|
|
179
|
-
border:
|
|
181
|
+
padding: '0',
|
|
182
|
+
border: 'none'
|
|
180
183
|
} : {
|
|
181
|
-
padding:
|
|
184
|
+
padding: '6px 12px'
|
|
182
185
|
}
|
|
183
186
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
184
187
|
style: {
|
|
185
|
-
lineHeight:
|
|
186
|
-
whiteSpace:
|
|
188
|
+
lineHeight: '18px',
|
|
189
|
+
whiteSpace: 'nowrap'
|
|
187
190
|
}
|
|
188
191
|
}, (0, _common.formatPeriod)(selectedPeriod)), /*#__PURE__*/_react["default"].createElement("span", {
|
|
189
|
-
className: "titaui-period-selector__down-
|
|
192
|
+
className: "tu-icon-caret-down titaui-period-selector__down-icon"
|
|
190
193
|
})))));
|
|
191
194
|
}
|
|
192
195
|
|
|
193
196
|
PeriodSelector.defaultProps = {
|
|
194
|
-
align:
|
|
197
|
+
align: 'bottomLeft',
|
|
195
198
|
// selected: {
|
|
196
199
|
// annualNum: '2020',
|
|
197
200
|
// cycleType: '1',
|
|
@@ -13,6 +13,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
13
13
|
|
|
14
14
|
var _moment = _interopRequireDefault(require("moment"));
|
|
15
15
|
|
|
16
|
+
var _getLocale = require("../../../../../utils/getLocale");
|
|
17
|
+
|
|
16
18
|
var _utils = require("../../../utils");
|
|
17
19
|
|
|
18
20
|
var _context = _interopRequireDefault(require("../../../context"));
|
|
@@ -33,13 +35,13 @@ var DATE_ROW_NUM = 6;
|
|
|
33
35
|
var DatePanelBody = function DatePanelBody(props) {
|
|
34
36
|
var viewDate = props.viewDate,
|
|
35
37
|
_props$weekStartDay = props.weekStartDay,
|
|
36
|
-
weekStartDay = _props$weekStartDay === void 0 ?
|
|
38
|
+
weekStartDay = _props$weekStartDay === void 0 ? 'SUNDAY' : _props$weekStartDay,
|
|
37
39
|
onSelect = props.onSelect;
|
|
38
40
|
|
|
39
41
|
var _useContext = (0, _react.useContext)(_context["default"]),
|
|
40
42
|
value = _useContext.value;
|
|
41
43
|
|
|
42
|
-
var weekStartDaySun = weekStartDay ===
|
|
44
|
+
var weekStartDaySun = weekStartDay === 'SUNDAY';
|
|
43
45
|
|
|
44
46
|
var getCells = function getCells(sunday, currentMonth) {
|
|
45
47
|
var dates = [];
|
|
@@ -47,16 +49,16 @@ var DatePanelBody = function DatePanelBody(props) {
|
|
|
47
49
|
var _loop = function _loop(day) {
|
|
48
50
|
var _classNames;
|
|
49
51
|
|
|
50
|
-
var date = (0, _moment["default"])(sunday).add(day,
|
|
51
|
-
var classes = (0, _classnames["default"])(_utils.PickerCellClass, (_classNames = {}, _defineProperty(_classNames, "".concat(_utils.PickerCellClass, "--tody"), date.isSame((0, _moment["default"])(),
|
|
52
|
+
var date = (0, _moment["default"])(sunday).add(day, 'd');
|
|
53
|
+
var classes = (0, _classnames["default"])(_utils.PickerCellClass, (_classNames = {}, _defineProperty(_classNames, "".concat(_utils.PickerCellClass, "--tody"), date.isSame((0, _moment["default"])(), 'date')), _defineProperty(_classNames, "".concat(_utils.PickerCellClass, "--in-view"), date.format('YYYYMM') === currentMonth), _defineProperty(_classNames, "".concat(_utils.PickerCellClass, "--selected"), date.isSame(value)), _classNames));
|
|
52
54
|
dates.push( /*#__PURE__*/_react["default"].createElement("td", {
|
|
53
55
|
className: classes,
|
|
54
|
-
key: date.format(
|
|
56
|
+
key: date.format('YYYY/MM/DD')
|
|
55
57
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
56
58
|
className: (0, _classnames["default"])("".concat(_utils.PickerCellClass, "__inner")),
|
|
57
|
-
title: date.format(
|
|
59
|
+
title: date.format('YYYY-MM-DD'),
|
|
58
60
|
onClick: function onClick() {
|
|
59
|
-
return onSelect && onSelect(date,
|
|
61
|
+
return onSelect && onSelect(date, 'date');
|
|
60
62
|
}
|
|
61
63
|
}, date.date())));
|
|
62
64
|
};
|
|
@@ -71,16 +73,16 @@ var DatePanelBody = function DatePanelBody(props) {
|
|
|
71
73
|
var getRows = function getRows(date) {
|
|
72
74
|
var currentDate = (0, _moment["default"])(date);
|
|
73
75
|
var monthFirstDay = currentDate.date(1);
|
|
74
|
-
var currentMonth = monthFirstDay.format(
|
|
76
|
+
var currentMonth = monthFirstDay.format('YYYYMM');
|
|
75
77
|
var daysDiff = weekStartDaySun ? 0 : 1;
|
|
76
|
-
var weekStartDay = monthFirstDay.subtract(monthFirstDay.day() - daysDiff,
|
|
78
|
+
var weekStartDay = monthFirstDay.subtract(monthFirstDay.day() - daysDiff, 'days');
|
|
77
79
|
var rows = [];
|
|
78
80
|
|
|
79
81
|
for (var row = 0; row < DATE_ROW_NUM; row += 1) {
|
|
80
82
|
rows.push( /*#__PURE__*/_react["default"].createElement("tr", {
|
|
81
83
|
key: row
|
|
82
84
|
}, getCells(weekStartDay, currentMonth)));
|
|
83
|
-
weekStartDay = weekStartDay.add(1,
|
|
85
|
+
weekStartDay = weekStartDay.add(1, 'w');
|
|
84
86
|
}
|
|
85
87
|
|
|
86
88
|
return rows;
|
|
@@ -92,25 +94,25 @@ var DatePanelBody = function DatePanelBody(props) {
|
|
|
92
94
|
className: (0, _classnames["default"])("".concat(_utils.PickerClass, "-content"))
|
|
93
95
|
}, /*#__PURE__*/_react["default"].createElement("thead", null, /*#__PURE__*/_react["default"].createElement("tr", null, weekStartDaySun && /*#__PURE__*/_react["default"].createElement("th", {
|
|
94
96
|
className: _utils.PickerCellClass
|
|
95
|
-
},
|
|
97
|
+
}, (0, _getLocale.getLocale)('Mod_Sun')), /*#__PURE__*/_react["default"].createElement("th", {
|
|
96
98
|
className: _utils.PickerCellClass
|
|
97
|
-
},
|
|
99
|
+
}, (0, _getLocale.getLocale)('Mod_Mon')), /*#__PURE__*/_react["default"].createElement("th", {
|
|
98
100
|
className: _utils.PickerCellClass
|
|
99
|
-
},
|
|
101
|
+
}, (0, _getLocale.getLocale)('Mod_Tues')), /*#__PURE__*/_react["default"].createElement("th", {
|
|
100
102
|
className: _utils.PickerCellClass
|
|
101
|
-
},
|
|
103
|
+
}, (0, _getLocale.getLocale)('Mod_Wed')), /*#__PURE__*/_react["default"].createElement("th", {
|
|
102
104
|
className: _utils.PickerCellClass
|
|
103
|
-
},
|
|
105
|
+
}, (0, _getLocale.getLocale)('Mod_Thur')), /*#__PURE__*/_react["default"].createElement("th", {
|
|
104
106
|
className: _utils.PickerCellClass
|
|
105
|
-
},
|
|
107
|
+
}, (0, _getLocale.getLocale)('Mod_Fri')), /*#__PURE__*/_react["default"].createElement("th", {
|
|
106
108
|
className: _utils.PickerCellClass
|
|
107
|
-
},
|
|
109
|
+
}, (0, _getLocale.getLocale)('Mod_Sat')), weekStartDay !== 'SUNDAY' && /*#__PURE__*/_react["default"].createElement("th", {
|
|
108
110
|
className: _utils.PickerCellClass
|
|
109
|
-
},
|
|
111
|
+
}, (0, _getLocale.getLocale)('Mod_Sun')))), /*#__PURE__*/_react["default"].createElement("tbody", null, getRows((0, _moment["default"])(viewDate)))));
|
|
110
112
|
};
|
|
111
113
|
|
|
112
114
|
DatePanelBody.defaultProps = {
|
|
113
|
-
weekStartDay:
|
|
115
|
+
weekStartDay: 'SUNDAY'
|
|
114
116
|
};
|
|
115
117
|
var _default = DatePanelBody;
|
|
116
118
|
exports["default"] = _default;
|
|
@@ -11,6 +11,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
11
11
|
|
|
12
12
|
var _moment = _interopRequireDefault(require("moment"));
|
|
13
13
|
|
|
14
|
+
var _getLocale = require("../../../../../utils/getLocale");
|
|
15
|
+
|
|
14
16
|
var _utils = require("../../../utils");
|
|
15
17
|
|
|
16
18
|
require("./index.css");
|
|
@@ -23,40 +25,59 @@ function DatePanelHead(props) {
|
|
|
23
25
|
onPrev = props.onPrev,
|
|
24
26
|
onNext = props.onNext,
|
|
25
27
|
onPanelChange = props.onPanelChange;
|
|
28
|
+
var yearText = (0, _moment["default"])(viewDate).format('YYYY');
|
|
29
|
+
var monthText = (0, _moment["default"])(viewDate).format('MM');
|
|
26
30
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
27
31
|
className: (0, _classnames["default"])(_utils.PickerHeadClass)
|
|
28
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
32
|
+
}, !_getLocale.isEn && /*#__PURE__*/_react["default"].createElement("div", {
|
|
29
33
|
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "__view"))
|
|
30
34
|
}, /*#__PURE__*/_react["default"].createElement("button", {
|
|
31
35
|
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "-btn__year")),
|
|
32
36
|
onClick: function onClick() {
|
|
33
|
-
return onPanelChange && onPanelChange(viewDate,
|
|
37
|
+
return onPanelChange && onPanelChange(viewDate, 'year');
|
|
34
38
|
},
|
|
35
39
|
type: "button"
|
|
36
|
-
},
|
|
40
|
+
}, yearText), /*#__PURE__*/_react["default"].createElement("span", {
|
|
37
41
|
className: (0, _classnames["default"])("".concat(_utils.PickerClass, "-unit"))
|
|
38
42
|
}, "\xA0\u5E74"), /*#__PURE__*/_react["default"].createElement("button", {
|
|
39
43
|
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "-btn__month")),
|
|
40
44
|
onClick: function onClick() {
|
|
41
|
-
return onPanelChange && onPanelChange(viewDate,
|
|
45
|
+
return onPanelChange && onPanelChange(viewDate, 'month');
|
|
42
46
|
},
|
|
43
47
|
type: "button"
|
|
44
|
-
},
|
|
48
|
+
}, monthText), /*#__PURE__*/_react["default"].createElement("span", {
|
|
45
49
|
className: (0, _classnames["default"])("".concat(_utils.PickerClass, "-unit"))
|
|
46
|
-
}, "\u6708")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
50
|
+
}, "\u6708")), _getLocale.isEn && /*#__PURE__*/_react["default"].createElement("div", {
|
|
51
|
+
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "__view"))
|
|
52
|
+
}, /*#__PURE__*/_react["default"].createElement("button", {
|
|
53
|
+
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "-btn__month")),
|
|
54
|
+
onClick: function onClick() {
|
|
55
|
+
return onPanelChange && onPanelChange(viewDate, 'month');
|
|
56
|
+
},
|
|
57
|
+
style: {
|
|
58
|
+
marginRight: 4
|
|
59
|
+
},
|
|
60
|
+
type: "button"
|
|
61
|
+
}, _utils.MONTHDATAMAPEN[Number(monthText) - 1]), /*#__PURE__*/_react["default"].createElement("button", {
|
|
62
|
+
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "-btn__year")),
|
|
63
|
+
onClick: function onClick() {
|
|
64
|
+
return onPanelChange && onPanelChange(viewDate, 'year');
|
|
65
|
+
},
|
|
66
|
+
type: "button"
|
|
67
|
+
}, yearText)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
47
68
|
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "__operation"))
|
|
48
69
|
},
|
|
49
70
|
/*#__PURE__*/
|
|
50
71
|
// eslint-disable-next-line jsx-a11y/control-has-associated-label
|
|
51
72
|
_react["default"].createElement("button", {
|
|
52
|
-
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "-btn__prev"),
|
|
73
|
+
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "-btn__prev"), 'tu-icon-arrow-up1'),
|
|
53
74
|
onClick: onPrev,
|
|
54
75
|
type: "button"
|
|
55
76
|
}),
|
|
56
77
|
/*#__PURE__*/
|
|
57
78
|
// eslint-disable-next-line jsx-a11y/control-has-associated-label
|
|
58
79
|
_react["default"].createElement("button", {
|
|
59
|
-
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "-btn__next"),
|
|
80
|
+
className: (0, _classnames["default"])("".concat(_utils.PickerHeadClass, "-btn__next"), 'tu-icon-arrow-down1'),
|
|
60
81
|
onClick: onNext,
|
|
61
82
|
type: "button"
|
|
62
83
|
})));
|
|
@@ -13,6 +13,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
13
13
|
|
|
14
14
|
var _moment = _interopRequireDefault(require("moment"));
|
|
15
15
|
|
|
16
|
+
var _getLocale = require("../../../../../utils/getLocale");
|
|
17
|
+
|
|
16
18
|
var _utils = require("../../../utils");
|
|
17
19
|
|
|
18
20
|
var _context = _interopRequireDefault(require("../../../context"));
|
|
@@ -44,15 +46,15 @@ var MonthPanelBody = function MonthPanelBody(props) {
|
|
|
44
46
|
|
|
45
47
|
var month = col + baseMonth;
|
|
46
48
|
cols.push( /*#__PURE__*/_react["default"].createElement("td", {
|
|
47
|
-
className: (0, _classnames["default"])(_utils.PickerCellClass, "".concat(_utils.PickerCellClass, "--in-view"), (_classNames = {}, _defineProperty(_classNames, "".concat(_utils.PickerCellClass, "--this-month"), month === (0, _moment["default"])().month()), _defineProperty(_classNames, "".concat(_utils.PickerCellClass, "--selected"), month === (0, _moment["default"])(value).month() && mode ===
|
|
49
|
+
className: (0, _classnames["default"])(_utils.PickerCellClass, "".concat(_utils.PickerCellClass, "--in-view"), (_classNames = {}, _defineProperty(_classNames, "".concat(_utils.PickerCellClass, "--this-month"), month === (0, _moment["default"])().month()), _defineProperty(_classNames, "".concat(_utils.PickerCellClass, "--selected"), month === (0, _moment["default"])(value).month() && mode === 'month'), _classNames)),
|
|
48
50
|
key: month
|
|
49
51
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
50
52
|
onClick: function onClick() {
|
|
51
|
-
return onSelect && onSelect((0, _moment["default"])(viewDate).month(month),
|
|
53
|
+
return onSelect && onSelect((0, _moment["default"])(viewDate).month(month), 'month');
|
|
52
54
|
},
|
|
53
55
|
className: (0, _classnames["default"])("".concat(_utils.PickerCellClass, "__inner")),
|
|
54
|
-
title: (0, _moment["default"])(viewDate).month(month).format(
|
|
55
|
-
}, _utils.MONTHDATAMAP[month])));
|
|
56
|
+
title: (0, _moment["default"])(viewDate).month(month).format('YYYY-MM')
|
|
57
|
+
}, _getLocale.isEn ? _utils.MONTHDATAMAPEN[month] : _utils.MONTHDATAMAP[month])));
|
|
56
58
|
};
|
|
57
59
|
|
|
58
60
|
for (var col = 0; col < MONTH_COL_NUM; col += 1) {
|
|
@@ -29,6 +29,21 @@
|
|
|
29
29
|
color: #bfc7d5;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
.tita-ui__picker-trigger__operation {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.tita-ui__picker-trigger__operation .tu-icon-caret-down {
|
|
38
|
+
font-size: 16px;
|
|
39
|
+
color: #3f4755;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.tita-ui__picker-trigger__operation .tu-icon-caret-down::before {
|
|
43
|
+
transform: scale(0.5);
|
|
44
|
+
display: inline-block;
|
|
45
|
+
}
|
|
46
|
+
|
|
32
47
|
.tita-ui__picker-trigger--disabled {
|
|
33
48
|
cursor: not-allowed;
|
|
34
49
|
}
|
|
@@ -43,16 +43,16 @@ var PickerTrigger = function PickerTrigger(props) {
|
|
|
43
43
|
var currFormat = format;
|
|
44
44
|
|
|
45
45
|
switch (mode) {
|
|
46
|
-
case
|
|
47
|
-
currFormat =
|
|
46
|
+
case 'date':
|
|
47
|
+
currFormat = 'YYYY/MM/DD';
|
|
48
48
|
break;
|
|
49
49
|
|
|
50
|
-
case
|
|
51
|
-
currFormat =
|
|
50
|
+
case 'month':
|
|
51
|
+
currFormat = 'YYYY/MM';
|
|
52
52
|
break;
|
|
53
53
|
|
|
54
|
-
case
|
|
55
|
-
currFormat =
|
|
54
|
+
case 'year':
|
|
55
|
+
currFormat = 'YYYY';
|
|
56
56
|
break;
|
|
57
57
|
|
|
58
58
|
default:
|
|
@@ -77,7 +77,7 @@ var PickerTrigger = function PickerTrigger(props) {
|
|
|
77
77
|
}, value ? viewDate.format(currFormat) : placeholder), /*#__PURE__*/_react["default"].createElement("div", {
|
|
78
78
|
className: (0, _classnames["default"])("".concat(_utils.PickerTriggerClass, "__operation"))
|
|
79
79
|
}, !disabled && /*#__PURE__*/_react["default"].createElement("span", {
|
|
80
|
-
className: "tu-icon-
|
|
80
|
+
className: "tu-icon-caret-down"
|
|
81
81
|
}), allowClear && !disabled && /*#__PURE__*/_react["default"].createElement("span", {
|
|
82
82
|
className: "tu-icon-circle"
|
|
83
83
|
}))))
|
|
@@ -88,7 +88,7 @@ PickerTrigger.defaultProps = {
|
|
|
88
88
|
children: null,
|
|
89
89
|
disabled: false,
|
|
90
90
|
allowClear: false,
|
|
91
|
-
placeholder:
|
|
91
|
+
placeholder: '请选择'
|
|
92
92
|
};
|
|
93
93
|
var _default = PickerTrigger;
|
|
94
94
|
exports["default"] = _default;
|
|
@@ -43,19 +43,19 @@ 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 = 'titaui-popup';
|
|
47
47
|
|
|
48
48
|
var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
49
49
|
var _props$extraClass = props.extraClass,
|
|
50
|
-
extraClass = _props$extraClass === void 0 ?
|
|
50
|
+
extraClass = _props$extraClass === void 0 ? '' : _props$extraClass,
|
|
51
51
|
_props$mask = props.mask,
|
|
52
52
|
mask = _props$mask === void 0 ? true : _props$mask,
|
|
53
53
|
_props$destroyPopupOn = props.destroyPopupOnHide,
|
|
54
54
|
destroyPopupOnHide = _props$destroyPopupOn === void 0 ? true : _props$destroyPopupOn,
|
|
55
55
|
_props$action = props.action,
|
|
56
|
-
action = _props$action === void 0 ? [
|
|
56
|
+
action = _props$action === void 0 ? ['click'] : _props$action,
|
|
57
57
|
_props$popupPlacement = props.popupPlacement,
|
|
58
|
-
popupPlacement = _props$popupPlacement === void 0 ?
|
|
58
|
+
popupPlacement = _props$popupPlacement === void 0 ? 'bottomRight' : _props$popupPlacement,
|
|
59
59
|
_props$builtinPlaceme = props.builtinPlacements,
|
|
60
60
|
builtinPlacements = _props$builtinPlaceme === void 0 ? _placement["default"] : _props$builtinPlaceme,
|
|
61
61
|
_props$popupVisible = props.popupVisible,
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
.titaui-radio-wrapper .titaui-radio {
|
|
17
17
|
display: inline-block;
|
|
18
18
|
position: relative;
|
|
19
|
-
top:
|
|
19
|
+
top: 1px;
|
|
20
20
|
width: 16px;
|
|
21
21
|
min-width: 16px;
|
|
22
22
|
height: 16px;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
margin-right: 5px;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
.titaui-radio-wrapper .titaui-radio input[type=
|
|
27
|
+
.titaui-radio-wrapper .titaui-radio input[type='radio'] {
|
|
28
28
|
width: 16px;
|
|
29
29
|
height: 16px;
|
|
30
30
|
}
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.titaui-radio-wrapper .titaui-radio .titaui-radio-inner::after {
|
|
53
|
-
content:
|
|
53
|
+
content: '';
|
|
54
54
|
position: absolute;
|
|
55
|
-
top:
|
|
56
|
-
left:
|
|
57
|
-
width:
|
|
58
|
-
min-width:
|
|
59
|
-
height:
|
|
60
|
-
min-height:
|
|
55
|
+
top: 2px;
|
|
56
|
+
left: 2px;
|
|
57
|
+
width: 10px;
|
|
58
|
+
min-width: 10px;
|
|
59
|
+
height: 10px;
|
|
60
|
+
min-height: 10px;
|
|
61
61
|
border-radius: 50%;
|
|
62
62
|
background-color: #1687d9;
|
|
63
63
|
transform: scale(0);
|
|
@@ -45,7 +45,7 @@ var RangeSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
45
45
|
var _super = _createSuper(RangeSelectorPop);
|
|
46
46
|
|
|
47
47
|
function RangeSelectorPop() {
|
|
48
|
-
var
|
|
48
|
+
var _this;
|
|
49
49
|
|
|
50
50
|
_classCallCheck(this, RangeSelectorPop);
|
|
51
51
|
|
|
@@ -53,7 +53,7 @@ var RangeSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
53
53
|
args[_key] = arguments[_key];
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
return _possibleConstructorReturn(_this, (
|
|
56
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
|
|
57
57
|
var isDisabled = _this.props.isDisabled;
|
|
58
58
|
if (isDisabled) return; // @ts-ignore
|
|
59
59
|
|
|
@@ -61,7 +61,7 @@ var RangeSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
61
61
|
}, _this.handleHide = function () {
|
|
62
62
|
// @ts-ignore
|
|
63
63
|
_this.refs.pop.hide();
|
|
64
|
-
},
|
|
64
|
+
}, _assertThisInitialized(_this)));
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
_createClass(RangeSelectorPop, [{
|
|
@@ -46,7 +46,7 @@ var BlockSchema = /*#__PURE__*/function (_BaseSchema) {
|
|
|
46
46
|
var _super = _createSuper(BlockSchema);
|
|
47
47
|
|
|
48
48
|
function BlockSchema() {
|
|
49
|
-
var
|
|
49
|
+
var _this;
|
|
50
50
|
|
|
51
51
|
_classCallCheck(this, BlockSchema);
|
|
52
52
|
|
|
@@ -54,7 +54,7 @@ var BlockSchema = /*#__PURE__*/function (_BaseSchema) {
|
|
|
54
54
|
args[_key] = arguments[_key];
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
return _possibleConstructorReturn(_this, (
|
|
57
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.group = 'block', _this.content = 'inline*', _this.inline = false, _this.defining = true, _this.draggable = false, _this.selectable = false, _assertThisInitialized(_this)));
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
_createClass(BlockSchema, [{
|
|
@@ -75,7 +75,7 @@ var InlineSchema = /*#__PURE__*/function (_BaseSchema2) {
|
|
|
75
75
|
var _super2 = _createSuper(InlineSchema);
|
|
76
76
|
|
|
77
77
|
function InlineSchema() {
|
|
78
|
-
var
|
|
78
|
+
var _this2;
|
|
79
79
|
|
|
80
80
|
_classCallCheck(this, InlineSchema);
|
|
81
81
|
|
|
@@ -83,7 +83,7 @@ var InlineSchema = /*#__PURE__*/function (_BaseSchema2) {
|
|
|
83
83
|
args[_key2] = arguments[_key2];
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
return _possibleConstructorReturn(_this2, (
|
|
86
|
+
return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.group = 'inline', _this2.inclusive = true, _assertThisInitialized(_this2)));
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
_createClass(InlineSchema, [{
|
|
@@ -104,7 +104,7 @@ var AtomSchema = /*#__PURE__*/function (_BaseSchema3) {
|
|
|
104
104
|
var _super3 = _createSuper(AtomSchema);
|
|
105
105
|
|
|
106
106
|
function AtomSchema() {
|
|
107
|
-
var
|
|
107
|
+
var _this3;
|
|
108
108
|
|
|
109
109
|
_classCallCheck(this, AtomSchema);
|
|
110
110
|
|
|
@@ -112,7 +112,7 @@ var AtomSchema = /*#__PURE__*/function (_BaseSchema3) {
|
|
|
112
112
|
args[_key3] = arguments[_key3];
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
return _possibleConstructorReturn(_this3, (
|
|
115
|
+
return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.isLeaf = true, _this3.draggable = true, _assertThisInitialized(_this3)));
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
return _createClass(AtomSchema);
|
|
@@ -49,7 +49,7 @@ var BlockquoteSchema = /*#__PURE__*/function (_BlockSchema) {
|
|
|
49
49
|
var _super = _createSuper(BlockquoteSchema);
|
|
50
50
|
|
|
51
51
|
function BlockquoteSchema() {
|
|
52
|
-
var
|
|
52
|
+
var _this;
|
|
53
53
|
|
|
54
54
|
_classCallCheck(this, BlockquoteSchema);
|
|
55
55
|
|
|
@@ -57,9 +57,9 @@ var BlockquoteSchema = /*#__PURE__*/function (_BlockSchema) {
|
|
|
57
57
|
args[_key] = arguments[_key];
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
return _possibleConstructorReturn(_this, (
|
|
60
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.content = "block+", _this.parseDOM = [{
|
|
61
61
|
tag: "blockquote"
|
|
62
|
-
}],
|
|
62
|
+
}], _assertThisInitialized(_this)));
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
_createClass(BlockquoteSchema, [{
|
|
@@ -80,7 +80,7 @@ var BlockquoteController = /*#__PURE__*/function (_BaseController) {
|
|
|
80
80
|
var _super2 = _createSuper(BlockquoteController);
|
|
81
81
|
|
|
82
82
|
function BlockquoteController() {
|
|
83
|
-
var
|
|
83
|
+
var _this2;
|
|
84
84
|
|
|
85
85
|
_classCallCheck(this, BlockquoteController);
|
|
86
86
|
|
|
@@ -88,7 +88,7 @@ var BlockquoteController = /*#__PURE__*/function (_BaseController) {
|
|
|
88
88
|
args[_key2] = arguments[_key2];
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
return _possibleConstructorReturn(_this2, (
|
|
91
|
+
return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
|
|
92
92
|
title: (0, _getLocale.getLocale)('Tasks_Tab_MyS_Quote'),
|
|
93
93
|
icon: 'tu-icon-text-quotel',
|
|
94
94
|
handler: function handler(editor) {
|
|
@@ -97,7 +97,7 @@ var BlockquoteController = /*#__PURE__*/function (_BaseController) {
|
|
|
97
97
|
active: function active(state) {
|
|
98
98
|
return (0, _util.isBlockActive)(state, PLUGIN_NAME);
|
|
99
99
|
}
|
|
100
|
-
},
|
|
100
|
+
}, _assertThisInitialized(_this2)));
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
return _createClass(BlockquoteController);
|
|
@@ -111,7 +111,7 @@ var BlockquotePlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
111
111
|
var _super3 = _createSuper(BlockquotePlugin);
|
|
112
112
|
|
|
113
113
|
function BlockquotePlugin() {
|
|
114
|
-
var
|
|
114
|
+
var _this3;
|
|
115
115
|
|
|
116
116
|
_classCallCheck(this, BlockquotePlugin);
|
|
117
117
|
|
|
@@ -119,7 +119,7 @@ var BlockquotePlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
119
119
|
args[_key3] = arguments[_key3];
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
return _possibleConstructorReturn(_this3, (
|
|
122
|
+
return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = BlockquoteSchema, _this3.controller = BlockquoteController, _assertThisInitialized(_this3)));
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
return _createClass(BlockquotePlugin);
|
|
@@ -49,7 +49,7 @@ var HeadingSchema = /*#__PURE__*/function (_BlockSchema) {
|
|
|
49
49
|
var _super = _createSuper(HeadingSchema);
|
|
50
50
|
|
|
51
51
|
function HeadingSchema() {
|
|
52
|
-
var
|
|
52
|
+
var _this;
|
|
53
53
|
|
|
54
54
|
_classCallCheck(this, HeadingSchema);
|
|
55
55
|
|
|
@@ -57,7 +57,7 @@ var HeadingSchema = /*#__PURE__*/function (_BlockSchema) {
|
|
|
57
57
|
args[_key] = arguments[_key];
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
return _possibleConstructorReturn(_this, (
|
|
60
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.attrs = {
|
|
61
61
|
level: {
|
|
62
62
|
"default": 1
|
|
63
63
|
},
|
|
@@ -94,7 +94,7 @@ var HeadingSchema = /*#__PURE__*/function (_BlockSchema) {
|
|
|
94
94
|
attrs: {
|
|
95
95
|
level: 6
|
|
96
96
|
}
|
|
97
|
-
}],
|
|
97
|
+
}], _assertThisInitialized(_this)));
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
_createClass(HeadingSchema, [{
|
|
@@ -117,7 +117,7 @@ var HeadingController = /*#__PURE__*/function (_BaseController) {
|
|
|
117
117
|
var _super2 = _createSuper(HeadingController);
|
|
118
118
|
|
|
119
119
|
function HeadingController() {
|
|
120
|
-
var
|
|
120
|
+
var _this2;
|
|
121
121
|
|
|
122
122
|
_classCallCheck(this, HeadingController);
|
|
123
123
|
|
|
@@ -125,7 +125,7 @@ var HeadingController = /*#__PURE__*/function (_BaseController) {
|
|
|
125
125
|
args[_key2] = arguments[_key2];
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
return _possibleConstructorReturn(_this2, (
|
|
128
|
+
return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = [{
|
|
129
129
|
title: (0, _getLocale.getLocale)('Rtx_HeadingONE'),
|
|
130
130
|
icon: 'tu-icon-text-H1',
|
|
131
131
|
handler: function handler(editor) {
|
|
@@ -161,7 +161,7 @@ var HeadingController = /*#__PURE__*/function (_BaseController) {
|
|
|
161
161
|
level: 3
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
|
-
}],
|
|
164
|
+
}], _assertThisInitialized(_this2)));
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
return _createClass(HeadingController);
|
|
@@ -173,7 +173,7 @@ var HeadingPlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
173
173
|
var _super3 = _createSuper(HeadingPlugin);
|
|
174
174
|
|
|
175
175
|
function HeadingPlugin() {
|
|
176
|
-
var
|
|
176
|
+
var _this3;
|
|
177
177
|
|
|
178
178
|
_classCallCheck(this, HeadingPlugin);
|
|
179
179
|
|
|
@@ -181,7 +181,7 @@ var HeadingPlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
181
181
|
args[_key3] = arguments[_key3];
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
return _possibleConstructorReturn(_this3, (
|
|
184
|
+
return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = HeadingSchema, _this3.controller = HeadingController, _assertThisInitialized(_this3)));
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
return _createClass(HeadingPlugin);
|