@titaui/pc 1.11.1 → 1.11.4-0
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/button/icon-btn/index.js +17 -8
- 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-manager/index.js +25 -27
- package/lib/components/drop-selector/index.js +25 -10
- package/lib/components/dynamic/online-broadcast/data.js +7 -1
- package/lib/components/eReport/eReportLists/reportList.js +3 -3
- package/lib/components/emotions-selector/selector-pop.js +3 -3
- package/lib/components/ereport-list/index.js +3 -3
- package/lib/components/mblog/components/MblogAction.js +3 -3
- package/lib/components/menus/export-modules/interview-menus/constant.js +24 -0
- package/lib/components/menus/export-modules/interview-menus/handle-highlight.js +63 -0
- package/{es/components/word-cloud → lib/components/menus/export-modules/interview-menus}/index.js +87 -69
- package/lib/components/menus/index.js +11 -5
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
- package/lib/components/okr-progress-modal/index.css +1 -1
- 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/okrcases-components/caseLibrary-main.js +14 -8
- 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/select/Option.js +3 -3
- package/lib/components/time-picker/index.css +99 -0
- package/{es/components-v1/placement → lib/components/time-picker}/index.js +2 -2
- package/lib/components/time-picker/time-picker-selector.js +142 -0
- package/lib/components/time-picker/time-picker.js +307 -0
- package/{es/components/tabs/index.js → lib/components/time-picker/timer-picker-input.js} +69 -38
- package/lib/components/time-picker/utils.js +41 -0
- package/lib/components/tita-chart/errorBoundary/index.js +3 -3
- 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/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 +8 -0
- package/lib/pages/aha2021/index.js +5 -1
- package/lib/utils/hooks.js +72 -0
- package/package.json +1 -1
- package/yarn-error.log +6356 -5424
- 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/e-status-dropdown/index.js +0 -94
- 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/index.js +0 -48
- package/es/components/okr-detail/components/okr-tree/precls.js +0 -8
- package/es/components/okr-detail/components/okr-tree/tree-node/default-node.js +0 -22
- 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-project.js +0 -200
- 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/e-node/e-task-level2.js +0 -412
- package/es/components/okr-detail/components/okr-tree/tree-node/get-process-color.js +0 -62
- 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/precls.js +0 -8
- 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/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/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/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/group-empty.js +0 -66
- 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/page-view/loading/index.js +0 -32
- 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
|
@@ -11,11 +11,19 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
|
|
12
12
|
require("./index.css");
|
|
13
13
|
|
|
14
|
+
var _excluded = ["border", "theme", "onClick", "disabled", "icon"];
|
|
15
|
+
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
17
|
|
|
18
|
+
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); }
|
|
19
|
+
|
|
16
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; }
|
|
17
21
|
|
|
18
|
-
var
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
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; }
|
|
25
|
+
|
|
26
|
+
var precls = 'titaui-icon-btn';
|
|
19
27
|
|
|
20
28
|
function IconBtn(props) {
|
|
21
29
|
var _classNames;
|
|
@@ -24,15 +32,16 @@ function IconBtn(props) {
|
|
|
24
32
|
theme = props.theme,
|
|
25
33
|
onClick = props.onClick,
|
|
26
34
|
disabled = props.disabled,
|
|
27
|
-
icon = props.icon
|
|
35
|
+
icon = props.icon,
|
|
36
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
28
37
|
|
|
29
38
|
var onClickHandler = function onClickHandler() {
|
|
30
39
|
if (disabled) return;
|
|
31
|
-
onClick
|
|
40
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
32
41
|
};
|
|
33
42
|
|
|
34
43
|
var renderIcon = function renderIcon() {
|
|
35
|
-
if (typeof icon ===
|
|
44
|
+
if (typeof icon === 'string') {
|
|
36
45
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
37
46
|
className: "".concat(precls, "__icon")
|
|
38
47
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -45,18 +54,18 @@ function IconBtn(props) {
|
|
|
45
54
|
}, icon);
|
|
46
55
|
};
|
|
47
56
|
|
|
48
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
57
|
+
return /*#__PURE__*/_react["default"].createElement("span", _extends({
|
|
49
58
|
className: (0, _classnames["default"])(precls, "".concat(precls, "--").concat(theme), (_classNames = {}, _defineProperty(_classNames, "".concat(precls, "--border"), border), _defineProperty(_classNames, "".concat(precls, "--disabled"), disabled), _classNames)),
|
|
50
59
|
onClick: onClickHandler
|
|
51
|
-
}, renderIcon());
|
|
60
|
+
}, restProps), renderIcon());
|
|
52
61
|
}
|
|
53
62
|
|
|
54
63
|
IconBtn.defaultProps = {
|
|
55
64
|
border: false,
|
|
56
|
-
theme:
|
|
65
|
+
theme: 'gray',
|
|
57
66
|
onClick: function onClick() {},
|
|
58
67
|
disabled: false,
|
|
59
|
-
icon:
|
|
68
|
+
icon: 'tu-icon-smile'
|
|
60
69
|
};
|
|
61
70
|
var _default = IconBtn;
|
|
62
71
|
exports["default"] = _default;
|
|
@@ -47,7 +47,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
|
|
|
47
47
|
var _super = _createSuper(BodyItem);
|
|
48
48
|
|
|
49
49
|
function BodyItem() {
|
|
50
|
-
var
|
|
50
|
+
var _this;
|
|
51
51
|
|
|
52
52
|
_classCallCheck(this, BodyItem);
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
|
|
|
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.getClass = function () {
|
|
59
59
|
var _this$props = _this.props,
|
|
60
60
|
isAllowSelect = _this$props.isAllowSelect,
|
|
61
61
|
date = _this$props.date,
|
|
@@ -86,7 +86,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
|
|
|
86
86
|
if (_this.disabled) return;
|
|
87
87
|
|
|
88
88
|
_this.props.onSelectDate((0, _moment["default"])(date.format("YYYY/MM/DD")));
|
|
89
|
-
},
|
|
89
|
+
}, _assertThisInitialized(_this)));
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
_createClass(BodyItem, [{
|
|
@@ -87,7 +87,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
|
|
|
87
87
|
var _super = _createSuper(CalendarHeader);
|
|
88
88
|
|
|
89
89
|
function CalendarHeader() {
|
|
90
|
-
var
|
|
90
|
+
var _this;
|
|
91
91
|
|
|
92
92
|
_classCallCheck(this, CalendarHeader);
|
|
93
93
|
|
|
@@ -95,7 +95,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
|
|
|
95
95
|
args[_key] = arguments[_key];
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
return _possibleConstructorReturn(_this, (
|
|
98
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.setDate = function (func) {
|
|
99
99
|
var date = (0, _moment["default"])(_this.props.date);
|
|
100
100
|
|
|
101
101
|
for (var _len2 = arguments.length, rest = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
@@ -113,7 +113,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
return years;
|
|
116
|
-
},
|
|
116
|
+
}, _assertThisInitialized(_this)));
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
_createClass(CalendarHeader, [{
|
|
@@ -49,7 +49,7 @@ var ConfirmPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
49
49
|
var _super = _createSuper(ConfirmPop);
|
|
50
50
|
|
|
51
51
|
function ConfirmPop() {
|
|
52
|
-
var
|
|
52
|
+
var _this;
|
|
53
53
|
|
|
54
54
|
_classCallCheck(this, ConfirmPop);
|
|
55
55
|
|
|
@@ -57,13 +57,13 @@ var ConfirmPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
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.handleShowPop = function () {
|
|
61
61
|
// @ts-ignore
|
|
62
62
|
_this.refs.pop.show(_this.refs.trigger);
|
|
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(ConfirmPop, [{
|
|
@@ -25,45 +25,42 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
25
25
|
|
|
26
26
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
27
27
|
|
|
28
|
-
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure undefined"); }
|
|
29
|
-
|
|
30
28
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
31
29
|
|
|
32
30
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
33
31
|
|
|
34
32
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
35
33
|
|
|
36
|
-
var typeMap = {};
|
|
37
|
-
|
|
38
34
|
var DrawerManager = /*#__PURE__*/function () {
|
|
39
35
|
function DrawerManager() {
|
|
40
36
|
var _this = this;
|
|
41
37
|
|
|
42
|
-
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
43
|
-
|
|
44
|
-
_objectDestructuringEmpty(_ref);
|
|
45
|
-
|
|
46
38
|
_classCallCheck(this, DrawerManager);
|
|
47
39
|
|
|
48
40
|
this.history = [];
|
|
49
41
|
this.uid = 0;
|
|
42
|
+
this.typeMap = {};
|
|
50
43
|
|
|
51
44
|
this.open = function (type) {
|
|
52
45
|
var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
53
46
|
var drawerProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
54
|
-
if (!type) throw "need provide drawer type";
|
|
55
|
-
var Component = typeMap[type];
|
|
56
|
-
if (!Component) throw "the type is not regisited";
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
47
|
+
if (!type) throw new Error("need provide drawer type");
|
|
48
|
+
var Component = typeof type === "string" ? _this.typeMap[type] : type;
|
|
49
|
+
if (!Component) throw new Error("the type is not regisited");
|
|
50
|
+
|
|
51
|
+
if (window.titaTracker) {
|
|
52
|
+
window.titaTracker("action").record({
|
|
53
|
+
actionName: type,
|
|
54
|
+
actionGroup: "打开推屏",
|
|
55
|
+
productName: "OKR"
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
62
59
|
return new Promise(function (resolve) {
|
|
63
60
|
clearTimeout(_this.timer);
|
|
64
61
|
_this.timer = setTimeout(function () {
|
|
65
62
|
var uid = _this.uid;
|
|
66
|
-
_this.uid
|
|
63
|
+
_this.uid += 1;
|
|
67
64
|
var extendedDrawerProps = drawerProps;
|
|
68
65
|
|
|
69
66
|
if (_this.history.length > 0) {
|
|
@@ -82,7 +79,7 @@ var DrawerManager = /*#__PURE__*/function () {
|
|
|
82
79
|
key: uid
|
|
83
80
|
}, props)), extendedDrawerProps);
|
|
84
81
|
|
|
85
|
-
if (_this.history.length
|
|
82
|
+
if (_this.history.length === 1) {
|
|
86
83
|
document.addEventListener("mousedown", _this.autoClose);
|
|
87
84
|
}
|
|
88
85
|
}, 200);
|
|
@@ -109,14 +106,16 @@ var DrawerManager = /*#__PURE__*/function () {
|
|
|
109
106
|
};
|
|
110
107
|
|
|
111
108
|
this.close = function () {
|
|
112
|
-
_this.history.reverse().forEach(function (
|
|
113
|
-
var resolve =
|
|
109
|
+
_this.history.reverse().forEach(function (_ref) {
|
|
110
|
+
var resolve = _ref.resolve;
|
|
114
111
|
return resolve();
|
|
115
112
|
});
|
|
116
113
|
|
|
117
114
|
_this.history = [];
|
|
118
115
|
|
|
119
116
|
_this.drawer.close();
|
|
117
|
+
|
|
118
|
+
document.removeEventListener("mousedown", _this.autoClose);
|
|
120
119
|
};
|
|
121
120
|
|
|
122
121
|
this.autoClose = function (e) {
|
|
@@ -125,20 +124,19 @@ var DrawerManager = /*#__PURE__*/function () {
|
|
|
125
124
|
return;
|
|
126
125
|
}
|
|
127
126
|
|
|
128
|
-
if ((0, _dom.hasAncestorElement)(e.target, "document-mouse-event-ignore,rc-tooltip,titaui-popup,rc-dialog-root,common-modal,in-modal,task-hot-add"))
|
|
127
|
+
if ((0, _dom.hasAncestorElement)(e.target, "document-mouse-event-ignore,rc-tooltip,titaui-popup,rc-dialog-root,common-modal,in-modal,task-hot-add")) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
129
130
|
|
|
130
131
|
_this.close();
|
|
132
|
+
};
|
|
131
133
|
|
|
132
|
-
|
|
134
|
+
this.regist = function (type, component) {
|
|
135
|
+
_this.typeMap[type] = component;
|
|
133
136
|
};
|
|
134
137
|
}
|
|
135
138
|
|
|
136
139
|
_createClass(DrawerManager, [{
|
|
137
|
-
key: "regist",
|
|
138
|
-
value: function regist(type, component) {
|
|
139
|
-
typeMap[type] = component;
|
|
140
|
-
}
|
|
141
|
-
}, {
|
|
142
140
|
key: "drawer",
|
|
143
141
|
get: function get() {
|
|
144
142
|
var _this2 = this;
|
|
@@ -18,14 +18,12 @@ var _popup = _interopRequireDefault(require("../popup"));
|
|
|
18
18
|
|
|
19
19
|
var _checkbox = _interopRequireDefault(require("../checkbox"));
|
|
20
20
|
|
|
21
|
-
var _radio = _interopRequireDefault(require("../radio"));
|
|
22
|
-
|
|
23
21
|
require("./index.css");
|
|
24
22
|
|
|
25
23
|
var _iconItem = _interopRequireDefault(require("./icon-item"));
|
|
26
24
|
|
|
27
25
|
var _excluded = ["name", "multi", "children", "onClick", "className"],
|
|
28
|
-
_excluded2 = ["trigger", "triggerIcon", "destroyPopupOnHide", "popupPlacement", "hideOnChange", "onChange", "canEdit"];
|
|
26
|
+
_excluded2 = ["trigger", "triggerIcon", "destroyPopupOnHide", "popupPlacement", "hideOnChange", "onChange", "canEdit", "popAction", "onPopupVisibleChange"];
|
|
29
27
|
|
|
30
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
31
29
|
|
|
@@ -57,7 +55,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
57
55
|
|
|
58
56
|
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; }
|
|
59
57
|
|
|
60
|
-
var preCls =
|
|
58
|
+
var preCls = 'titaui-drop-selector';
|
|
61
59
|
var IconItem = _iconItem["default"];
|
|
62
60
|
exports.IconItem = IconItem;
|
|
63
61
|
|
|
@@ -98,7 +96,7 @@ function DropSelectorLayer(props) {
|
|
|
98
96
|
var _classNames;
|
|
99
97
|
|
|
100
98
|
var _props$className = props.className,
|
|
101
|
-
className = _props$className === void 0 ?
|
|
99
|
+
className = _props$className === void 0 ? '' : _props$className,
|
|
102
100
|
_props$multi = props.multi,
|
|
103
101
|
multi = _props$multi === void 0 ? false : _props$multi,
|
|
104
102
|
onItemClick = props.onItemClick,
|
|
@@ -135,12 +133,15 @@ function DropSelector(props) {
|
|
|
135
133
|
_props$destroyPopupOn = props.destroyPopupOnHide,
|
|
136
134
|
destroyPopupOnHide = _props$destroyPopupOn === void 0 ? true : _props$destroyPopupOn,
|
|
137
135
|
_props$popupPlacement = props.popupPlacement,
|
|
138
|
-
popupPlacement = _props$popupPlacement === void 0 ?
|
|
136
|
+
popupPlacement = _props$popupPlacement === void 0 ? 'bottom' : _props$popupPlacement,
|
|
139
137
|
_props$hideOnChange = props.hideOnChange,
|
|
140
138
|
hideOnChange = _props$hideOnChange === void 0 ? true : _props$hideOnChange,
|
|
141
139
|
onChange = props.onChange,
|
|
142
140
|
_props$canEdit = props.canEdit,
|
|
143
141
|
canEdit = _props$canEdit === void 0 ? true : _props$canEdit,
|
|
142
|
+
_props$popAction = props.popAction,
|
|
143
|
+
popAction = _props$popAction === void 0 ? ['click'] : _props$popAction,
|
|
144
|
+
onPopupVisibleChange = props.onPopupVisibleChange,
|
|
144
145
|
restProps = _objectWithoutProperties(props, _excluded2);
|
|
145
146
|
|
|
146
147
|
var _useState3 = (0, _react.useState)(false),
|
|
@@ -148,6 +149,21 @@ function DropSelector(props) {
|
|
|
148
149
|
visible = _useState4[0],
|
|
149
150
|
setVisible = _useState4[1];
|
|
150
151
|
|
|
152
|
+
var realVisible = visible;
|
|
153
|
+
|
|
154
|
+
if ('visible' in props) {
|
|
155
|
+
realVisible = props.visible;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
var handlePopVisibleChange = (0, _react.useCallback)(function (visible) {
|
|
159
|
+
console.log('visible' in props);
|
|
160
|
+
|
|
161
|
+
if (!('visible' in props)) {
|
|
162
|
+
setVisible(visible);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
onPopupVisibleChange === null || onPopupVisibleChange === void 0 ? void 0 : onPopupVisibleChange(visible);
|
|
166
|
+
}, [props.visible === undefined]);
|
|
151
167
|
(0, _react.useEffect)(function () {
|
|
152
168
|
setVisible(props.visible);
|
|
153
169
|
}, [props.visible]);
|
|
@@ -161,12 +177,11 @@ function DropSelector(props) {
|
|
|
161
177
|
};
|
|
162
178
|
|
|
163
179
|
return /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
164
|
-
popupVisible: canEdit &&
|
|
180
|
+
popupVisible: canEdit && realVisible,
|
|
165
181
|
popupPlacement: popupPlacement,
|
|
166
|
-
onPopupVisibleChange:
|
|
167
|
-
return setVisible(visible);
|
|
168
|
-
},
|
|
182
|
+
onPopupVisibleChange: handlePopVisibleChange,
|
|
169
183
|
destroyPopupOnHide: destroyPopupOnHide,
|
|
184
|
+
action: popAction,
|
|
170
185
|
popup: /*#__PURE__*/_react["default"].createElement(DropSelectorLayer, _extends({}, restProps, {
|
|
171
186
|
onItemClick: onMenuClickHandler
|
|
172
187
|
}))
|
|
@@ -18,10 +18,16 @@ exports.onlineBroadcastData = exports["default"] = void 0;
|
|
|
18
18
|
// href = "https://wiki.tita.com/pages/viewpage.action?pageId=15697741";
|
|
19
19
|
// }
|
|
20
20
|
var onlineBroadcastData = [{
|
|
21
|
+
hasOnline: true,
|
|
22
|
+
preContent: "「考核」OKR 维度支持按 KR 评分啦",
|
|
23
|
+
preHref: "https://wiki.tita.com/x/JYOeAQ",
|
|
24
|
+
isNew: true,
|
|
25
|
+
date: "4/11"
|
|
26
|
+
}, {
|
|
21
27
|
hasOnline: true,
|
|
22
28
|
preContent: "「OKR 工作法」体验优化 ",
|
|
23
29
|
preHref: "https://wiki.tita.com/x/jIOeAQ",
|
|
24
|
-
isNew:
|
|
30
|
+
isNew: false,
|
|
25
31
|
date: "3/29"
|
|
26
32
|
}, {
|
|
27
33
|
hasOnline: true,
|
|
@@ -55,7 +55,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
55
55
|
var _super = _createSuper(EReportList);
|
|
56
56
|
|
|
57
57
|
function EReportList() {
|
|
58
|
-
var
|
|
58
|
+
var _this;
|
|
59
59
|
|
|
60
60
|
_classCallCheck(this, EReportList);
|
|
61
61
|
|
|
@@ -63,7 +63,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
63
63
|
args[_key] = arguments[_key];
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
return _possibleConstructorReturn(_this, (
|
|
66
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
67
67
|
selectedPeriodValue: "",
|
|
68
68
|
showDatePick: false,
|
|
69
69
|
eReportWeekList: [],
|
|
@@ -176,7 +176,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
176
176
|
return _this.handlerEReportShareSubmit(submitStatus);
|
|
177
177
|
}
|
|
178
178
|
})));
|
|
179
|
-
},
|
|
179
|
+
}, _assertThisInitialized(_this)));
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
_createClass(EReportList, [{
|
|
@@ -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, [{
|
|
@@ -83,7 +83,7 @@ var MblogAction = /*#__PURE__*/function (_PureComponent) {
|
|
|
83
83
|
var _super = _createSuper(MblogAction);
|
|
84
84
|
|
|
85
85
|
function MblogAction() {
|
|
86
|
-
var
|
|
86
|
+
var _this;
|
|
87
87
|
|
|
88
88
|
_classCallCheck(this, MblogAction);
|
|
89
89
|
|
|
@@ -91,7 +91,7 @@ var MblogAction = /*#__PURE__*/function (_PureComponent) {
|
|
|
91
91
|
args[_key] = arguments[_key];
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
return _possibleConstructorReturn(_this, (
|
|
94
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
95
95
|
isSendSms: false,
|
|
96
96
|
// 是否短信通知
|
|
97
97
|
isShowConfirmPop: false
|
|
@@ -121,7 +121,7 @@ var MblogAction = /*#__PURE__*/function (_PureComponent) {
|
|
|
121
121
|
isSendSms: false
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
|
-
},
|
|
124
|
+
}, _assertThisInitialized(_this)));
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
_createClass(MblogAction, [{
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var menus = [{
|
|
8
|
+
icon: "enterprise",
|
|
9
|
+
label: "我的面谈",
|
|
10
|
+
key: "myInterview",
|
|
11
|
+
href: "#/interview?reactRouterName=myInterview"
|
|
12
|
+
}, {
|
|
13
|
+
icon: "enterprise",
|
|
14
|
+
label: "行动计划",
|
|
15
|
+
key: "todos",
|
|
16
|
+
href: "#/interview?reactRouterName=todos"
|
|
17
|
+
}, {
|
|
18
|
+
icon: "enterprise",
|
|
19
|
+
label: "面谈模板",
|
|
20
|
+
key: "template",
|
|
21
|
+
href: "#/interview?reactRouterName=template"
|
|
22
|
+
}];
|
|
23
|
+
var _default = menus;
|
|
24
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9
|
+
|
|
10
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
11
|
+
|
|
12
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
+
|
|
14
|
+
var MY_INTERVIEW = "myInterview";
|
|
15
|
+
var TODOS = "todos";
|
|
16
|
+
var TEMPLATE = "template";
|
|
17
|
+
|
|
18
|
+
var JudgeManageHighLightMenu = /*#__PURE__*/function () {
|
|
19
|
+
function JudgeManageHighLightMenu(hash) {
|
|
20
|
+
_classCallCheck(this, JudgeManageHighLightMenu);
|
|
21
|
+
|
|
22
|
+
this.search = null;
|
|
23
|
+
this.search = hash;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
_createClass(JudgeManageHighLightMenu, [{
|
|
27
|
+
key: "isMyInterview",
|
|
28
|
+
value: function isMyInterview() {
|
|
29
|
+
return !!this.search.match(/\?reactRouterName=myInterview/);
|
|
30
|
+
}
|
|
31
|
+
}, {
|
|
32
|
+
key: "isTodos",
|
|
33
|
+
value: function isTodos() {
|
|
34
|
+
return !!this.search.match(/\?reactRouterName=todos/);
|
|
35
|
+
}
|
|
36
|
+
}, {
|
|
37
|
+
key: "isTemplate",
|
|
38
|
+
value: function isTemplate() {
|
|
39
|
+
return !!this.search.match(/\?reactRouterName=template/);
|
|
40
|
+
}
|
|
41
|
+
}, {
|
|
42
|
+
key: "getHighLightMenu",
|
|
43
|
+
value: function getHighLightMenu() {
|
|
44
|
+
if (this.isMyInterview()) {
|
|
45
|
+
return MY_INTERVIEW;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (this.isTodos()) {
|
|
49
|
+
return TODOS;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
if (this.isTemplate()) {
|
|
53
|
+
return TEMPLATE;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return "";
|
|
57
|
+
}
|
|
58
|
+
}]);
|
|
59
|
+
|
|
60
|
+
return JudgeManageHighLightMenu;
|
|
61
|
+
}();
|
|
62
|
+
|
|
63
|
+
exports["default"] = JudgeManageHighLightMenu;
|