@titaui/pc 1.12.7-beta.2 → 1.12.7-beta.20
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/attachments-preview/index.js +4 -4
- package/lib/components/avatar/icon-avatar/index.js +1 -1
- package/lib/components/avatar/num-avatar/index.js +1 -1
- package/lib/components/book-demo/components/pc/components/content/index.js +1 -1
- package/lib/components/button/default-button/index.js +1 -1
- package/lib/components/button/icon-btn/index.js +1 -1
- package/lib/components/cascader/index.js +1 -1
- package/lib/components/cascader/time.js +1 -1
- package/lib/components/change-okr-modal/Filter.js +2 -2
- package/lib/components/change-okr-modal/Item.js +2 -2
- package/lib/components/change-okr-modal/filterTab.js +2 -2
- package/lib/components/change-okr-modal/index.js +2 -2
- package/lib/components/color-date-picker/index.js +4 -4
- package/lib/components/communication/CommunicationAttachments.js +2 -2
- package/lib/components/communication/ConvertUserName.js +2 -2
- package/lib/components/communication/index.js +2 -2
- package/lib/components/create-okr-modal/objectType.js +2 -2
- package/lib/components/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarBody.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/date-picker/index.js +2 -2
- package/lib/components/date-range-picker/index.js +2 -2
- package/lib/components/delete-confirm-pop/ConfirmPop.js +2 -2
- package/lib/components/dialog/index.js +1 -1
- package/lib/components/dialog-confirm/index.css +1 -0
- package/lib/components/dialog-confirm/index.js +6 -4
- package/lib/components/dialog-upload/uploaded-preview.js +4 -4
- package/lib/components/drawer/headerDrop.js +1 -1
- package/lib/components/drawer/index.js +1 -1
- package/lib/components/drawer-manager/drawerWrapper.js +1 -1
- package/lib/components/drawer-manager/index.js +1 -1
- package/lib/components/drop-selector/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/index.js +12 -8
- package/lib/components/dynamic/dynamic-item/components/okr-progress/constant.js +31 -0
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +90 -57
- package/lib/components/dynamic/dynamic-item/components/summary-header/constant.js +45 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.css +30 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +90 -101
- package/lib/components/dynamic/dynamic-item/components/summary-header/operate-record.js +49 -0
- package/lib/components/dynamic/dynamic-item/components/task-progress/constant.js +16 -0
- package/lib/components/dynamic/dynamic-item/components/task-progress/index.js +116 -34
- package/lib/components/dynamic/dynamic-item/components/task-progress/utils.js +20 -3
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +4 -3
- package/lib/components/dynamic/dynamic-item/dynamic-learning/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.js +8 -5
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.css +5 -3
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.js +14 -6
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/constant.js +45 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +87 -23
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/util.js +30 -0
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +4 -3
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/index.css +1 -0
- package/lib/components/dynamic/dynamic-item/index.js +5 -3
- package/lib/components/eReport/eReportListEmpty.js +2 -2
- package/lib/components/eReport/eReportLists/reportList.js +2 -2
- package/lib/components/eReport/eReportShare/index.js +2 -2
- package/lib/components/eReport/eReportShare/toast/index.js +2 -2
- package/lib/components/edit-kr-wight/EditKrWightModal.js +2 -2
- package/lib/components/edit-kr-wight/FormItemV2.js +2 -2
- package/lib/components/emotions-selector/selector-content.js +2 -2
- package/lib/components/emotions-selector/selector-pop.js +2 -2
- package/lib/components/ereport-list/index.js +2 -2
- package/lib/components/error-boundary/index.js +2 -2
- package/lib/components/form/form-fields/date/index.js +1 -1
- package/lib/components/form/form-fields/dropdown/index.js +1 -1
- package/lib/components/form/form-fields/input/index.js +1 -1
- package/lib/components/form/form-fields/user/index.js +1 -1
- package/lib/components/help-card/index.js +1 -1
- package/lib/components/import-modal/import-okr-modal/index.js +4 -1
- package/lib/components/import-modal/import-task-modal/index.js +3 -2
- package/lib/components/import-modal/tree-node/index.js +1 -1
- package/lib/components/mblog/components/ConfirmPop.js +2 -2
- package/lib/components/mblog/components/MblogAction.js +2 -2
- package/lib/components/mblog/components/MblogContent.js +2 -2
- package/lib/components/mblog/index.js +2 -2
- package/lib/components/menus/components/menu-tree/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/subordinates.js +7 -3
- package/lib/components/menus/components/menu-tree/tree-node/summary-share.js +7 -3
- package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +59 -29
- package/lib/components/menus/export-modules/summary-menus/menus.js +42 -51
- package/lib/components/menus/export-modules/summary-menus/request-api.js +17 -0
- package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +50 -7
- package/lib/components/menus/request-apis.js +8 -2
- package/lib/components/new-confidence/index.js +5 -5
- package/lib/components/okr-detail/auth.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/object-type.js +2 -2
- package/lib/components/okr-detail/components/header/o-score.js +1 -1
- package/lib/components/okr-detail/components/icon-text/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +3 -3
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +2 -2
- package/lib/components/okr-review/ReviewPop/components/Toast/index.js +2 -2
- package/lib/components/okr-review/ReviewPop/index.js +2 -2
- package/lib/components/okr-review/components/ReviewItem/index.js +2 -2
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +2 -2
- package/lib/components/okr-review/index.js +2 -2
- package/lib/components/operation-records/OperationRecordItem.js +2 -2
- package/lib/components/operation-records/index.js +2 -2
- package/lib/components/pagination/pagination.js +1 -1
- package/lib/components/period-selector/components/button/index.js +1 -1
- package/lib/components/picker/components/panels/date-panel/index.js +1 -1
- package/lib/components/picker/components/panels/month-panel/index.js +1 -1
- package/lib/components/picker/components/panels/month-panel/month-head.js +1 -1
- package/lib/components/picker/components/panels/week-panel/index.js +1 -1
- package/lib/components/picker/components/panels/week-panel/utils.js +81 -2
- package/lib/components/picker/components/panels/week-panel/week-body.js +29 -31
- package/lib/components/picker/components/panels/year-panel/index.js +1 -1
- package/lib/components/picker/components/panels/year-panel/year-head.js +1 -1
- package/lib/components/picker/components/picker-trigger/index.js +2 -47
- package/lib/components/picker/picker.js +1 -1
- package/lib/components/point-demo/drop-down-box/index.js +1 -1
- package/lib/components/point-demo/input/index.js +3 -3
- package/lib/components/point-demo/popup/index.js +1 -1
- package/lib/components/popup/index.js +1 -1
- package/lib/components/praise-record/PraiseRecordItem.js +2 -2
- package/lib/components/praise-record/index.js +2 -2
- package/lib/components/promise-confirm/index.css +0 -0
- package/lib/components/promise-confirm/index.js +117 -0
- package/lib/components/promise-confirm/interface.js +5 -0
- package/lib/components/range-picker-pop/index.js +3 -3
- package/lib/components/range-selector-pop/RangeList.js +2 -2
- package/lib/components/range-selector-pop/RangeSelectorPop.js +2 -2
- package/lib/components/rate/index.css +111 -0
- package/lib/components/rate/index.js +2 -2
- package/lib/components/rich-editor/models/schema.js +2 -2
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +2 -2
- package/lib/components/rich-editor/plugins/block/heading/index.js +2 -2
- package/lib/components/rich-editor/plugins/block/lists/index.js +2 -2
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +2 -2
- package/lib/components/rich-editor/plugins/core/index.js +2 -2
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +2 -2
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/color/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/em/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/link/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/strong/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +2 -2
- package/lib/components/rich-editor/react/reactNodeView.js +4 -4
- package/lib/components/rich-editor/react/uiProvider.js +2 -2
- package/lib/components/rich-editor/schemas/list.js +0 -1
- package/lib/components/rich-editor/ui/Popup/index.js +2 -2
- package/lib/components/rich-editor-at/index.js +9 -4
- package/lib/components/rich-editor-upload/index.js +3 -0
- package/lib/components/scroll-container/index.js +2 -2
- package/lib/components/scrollbar/index.js +1 -1
- package/lib/components/scrollbar/scroll-mask/index.js +1 -1
- package/lib/components/scrollbar/simplebar-react.js +1 -1
- package/lib/components/search-dropdown/index.js +1 -1
- package/lib/components/select/Option.js +3 -3
- package/lib/components/select/index.js +3 -3
- package/lib/components/select-layer/index.js +1 -1
- package/lib/components/select-tags/index.js +8 -2
- package/lib/components/switch/index.js +1 -1
- package/lib/components/table/index.js +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/task-relation-modal/index.js +1 -1
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +1 -1
- package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +1 -1
- package/lib/components/task-relation-modal/tree-node/index.js +1 -1
- package/lib/components/task-relation-modal/work-relation/index.js +1 -1
- package/lib/components/task-tree/task-item-node/task-node-render.js +1 -1
- package/lib/components/task-tree/task-tree.js +1 -1
- package/lib/components/textarea/index.js +1 -1
- package/lib/components/time-picker/time-picker-selector.js +1 -1
- package/lib/components/time-picker/time-picker.js +1 -1
- package/lib/components/time-picker/timer-picker-input.js +1 -1
- package/lib/components/tita-chart/charts/liquid-ball.js +1 -1
- package/lib/components/tita-chart/charts/pie.js +1 -1
- package/lib/components/tita-chart/errorBoundary/index.js +2 -2
- package/lib/components/tooltip/error-tip.js +1 -1
- package/lib/components/tooltip/tooltip.js +1 -1
- package/lib/components/tree/index.js +1 -1
- package/lib/components/upload/components/uploadedPreview.js +2 -2
- package/lib/components/upload/index.js +2 -2
- package/lib/components/upvote/index.js +1 -1
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +1 -1
- package/lib/components/user-selector/select-tree/choose-tree/index.js +1 -1
- package/lib/components/user-selector/select-tree/selected-tree/index.js +1 -1
- package/lib/components/viewer/ImageListRender.js +2 -2
- package/lib/components/viewer/index.js +2 -2
- package/lib/components/write-summary-modal/index.css +79 -0
- package/lib/components/write-summary-modal/index.js +151 -0
- package/lib/components/write-summary-modal/interface.js +19 -0
- package/lib/components/write-summary-modal/request-api.js +18 -0
- package/lib/components/write-summary-modal/utils.js +31 -0
- package/lib/components-v1/animate/AnimateChild.js +2 -2
- package/lib/components-v1/animate/animate.js +2 -2
- package/lib/components-v1/avatar/index.js +2 -2
- package/lib/components-v1/buttonv2/ButtonOutlined.js +2 -2
- package/lib/components-v1/buttonv2/ButtonRounded.js +2 -2
- package/lib/components-v1/buttonv2/DefaultButton.js +2 -2
- package/lib/components-v1/confirm/index.js +2 -2
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +2 -2
- package/lib/components-v1/dropDownSelector/dropDownSelector.js +2 -2
- package/lib/components-v1/input/Input.js +3 -3
- package/lib/components-v1/input/InputNumber.js +2 -2
- package/lib/components-v1/placement/placement.js +2 -2
- package/lib/components-v1/placement/placementInner.js +2 -2
- package/lib/components-v1/pop/Pop.js +2 -2
- package/lib/components-v1/pop/PopInner.js +2 -2
- package/lib/components-v1/portals/Portals.js +2 -2
- package/lib/components-v1/progress/CircleProgress.js +2 -2
- package/lib/components-v1/progress/LineProgress.js +2 -2
- package/lib/components-v1/progress/index.js +2 -2
- package/lib/components-v1/radio/radio.js +2 -2
- package/lib/components-v1/radio/radioGroup.js +2 -2
- package/lib/components-v1/search/index.js +2 -2
- package/lib/components-v1/select/Option.js +3 -3
- package/lib/components-v1/select/index.js +3 -3
- package/lib/components-v1/tabs/index.js +2 -2
- package/lib/components-v1/textarea/index.js +2 -2
- package/lib/components-v1/transition/index.js +2 -2
- package/lib/components-v1/userSelector/UserSelectorPop.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/index.js +2 -2
- package/lib/components-v1/userSelector/components/SearchBar.js +2 -2
- package/lib/components-v1/userSelector/components/SingleMode.js +2 -2
- package/lib/components-v1/userSelector/components/UserItem.js +2 -2
- package/lib/components-v1/userSelector/index.js +2 -2
- package/lib/index.js +16 -0
- package/lib/pages/appointment-demo/drop-down-box/index.js +1 -1
- package/lib/pages/appointment-demo/input/index.js +3 -3
- package/lib/pages/appointment-demo/popup/index.js +1 -1
- package/lib/pages/group-management/components/input-form/index.js +3 -3
- package/lib/pages/group-management/components/radio/index.js +1 -1
- package/lib/pages/group-management/page-view/importGroupStaff/index.js +1 -1
- package/lib/pages/group-management/tree/index.js +1 -1
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +1 -1
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +1 -1
- package/lib/pages/okr-map/share-dialog/index.js +1 -1
- package/lib/utils/auth.js +2 -2
- package/lib/utils/constant.js +8 -2
- package/package.json +1 -1
|
@@ -23,6 +23,8 @@ var _index = require("../../../components/menu-tree/tree-node/index");
|
|
|
23
23
|
|
|
24
24
|
var _utils = require("../../../utils");
|
|
25
25
|
|
|
26
|
+
var _bsGlobal = require("../../../../../utils/bs-global.js");
|
|
27
|
+
|
|
26
28
|
var _precls = _interopRequireDefault(require("../../../precls"));
|
|
27
29
|
|
|
28
30
|
var _scrollbar = _interopRequireDefault(require("../../../../scrollbar"));
|
|
@@ -72,7 +74,7 @@ function _default() {
|
|
|
72
74
|
rawTreeData = _useState4[0],
|
|
73
75
|
setRawTreeData = _useState4[1];
|
|
74
76
|
|
|
75
|
-
var _useState5 = (0, _react.useState)([
|
|
77
|
+
var _useState5 = (0, _react.useState)(['0']),
|
|
76
78
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
77
79
|
selectedMenuKeys = _useState6[0],
|
|
78
80
|
setSelectedMenuKeys = _useState6[1];
|
|
@@ -92,44 +94,70 @@ function _default() {
|
|
|
92
94
|
_useState12 = _slicedToArray(_useState11, 1),
|
|
93
95
|
itemHeight = _useState12[0];
|
|
94
96
|
|
|
97
|
+
var isBoss = (0, _bsGlobal.getUserInfo)().IsBoss;
|
|
98
|
+
|
|
95
99
|
var _useState13 = (0, _react.useState)(window.BSGlobal.OkrAdvancedSetting.KRSetting.OkrDepsShowUser),
|
|
96
100
|
_useState14 = _slicedToArray(_useState13, 1),
|
|
97
101
|
isGetUser = _useState14[0];
|
|
98
102
|
|
|
99
103
|
(0, _react.useEffect)(function () {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
var
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
104
|
+
if (isBoss) {
|
|
105
|
+
location.href = '#/summary/manage?departmentName=公司全部&departmentId=0';
|
|
106
|
+
|
|
107
|
+
var allDepartmentText = window.getLocale && window.getLocale(_i18n.locale.menu_alldeparment) || _i18n.locale.menu_alldeparment;
|
|
108
|
+
|
|
109
|
+
(0, _requestApis.getDepsAndUsers)(-1, isGetUser).then(function (rawTreeData) {
|
|
110
|
+
var rootNode = {
|
|
111
|
+
async: true,
|
|
112
|
+
data: {
|
|
113
|
+
id: 0,
|
|
114
|
+
name: allDepartmentText
|
|
115
|
+
},
|
|
116
|
+
pid: -1,
|
|
117
|
+
id: '0',
|
|
118
|
+
key: '0',
|
|
119
|
+
isLeaf: true,
|
|
120
|
+
nodeType: _index.DEPART_NODE,
|
|
121
|
+
title: allDepartmentText
|
|
122
|
+
};
|
|
123
|
+
setRawTreeData([rootNode].concat(_toConsumableArray(rawTreeData)));
|
|
124
|
+
setTreeData((0, _utils.toTree)([rootNode].concat(_toConsumableArray(rawTreeData))));
|
|
125
|
+
setLoading(false);
|
|
126
|
+
});
|
|
127
|
+
} else {
|
|
128
|
+
(0, _requestApis.getMyDepartMent)().then(function (res) {
|
|
129
|
+
location.href = "#/summary/manage?departmentName=".concat(res.Data[0].name, "&departmentId=").concat(res.Data[0].id);
|
|
130
|
+
var rawTreeData = res.Data;
|
|
131
|
+
var rootNode = {
|
|
132
|
+
async: true,
|
|
133
|
+
data: {
|
|
134
|
+
id: rawTreeData[0].id,
|
|
135
|
+
name: rawTreeData[0].name,
|
|
136
|
+
isOpen: rawTreeData[0].isOpen,
|
|
137
|
+
hasChild: rawTreeData[0].hasChild
|
|
138
|
+
},
|
|
139
|
+
pid: -1,
|
|
140
|
+
id: '0',
|
|
141
|
+
key: '0',
|
|
142
|
+
isLeaf: true,
|
|
143
|
+
nodeType: _index.DEPART_NODE,
|
|
144
|
+
title: rawTreeData[0].name
|
|
145
|
+
};
|
|
146
|
+
setRawTreeData([rootNode].concat(_toConsumableArray(rawTreeData)));
|
|
147
|
+
setTreeData((0, _utils.toTree)([rootNode].concat(_toConsumableArray(rawTreeData))));
|
|
148
|
+
setLoading(false);
|
|
149
|
+
});
|
|
150
|
+
}
|
|
120
151
|
}, []); // 因为要实现虚拟列表的功能,所有要动态的计算出一个菜单的高度
|
|
121
152
|
|
|
122
153
|
(0, _react.useEffect)(function () {
|
|
123
154
|
setHeight(document.body.offsetHeight - 164);
|
|
124
|
-
}, []); //
|
|
125
|
-
// location.href = "#/okr/manage?departmentName=公司全部&departmentId=0";
|
|
126
|
-
// }, []);
|
|
127
|
-
// 动态加载子节点数据集
|
|
155
|
+
}, []); // 动态加载子节点数据集
|
|
128
156
|
|
|
129
157
|
var onLoadTreeNodeDataHandler = function onLoadTreeNodeDataHandler(treeNode) {
|
|
130
158
|
if (loadedNode.current.includes(treeNode.id)) return null;
|
|
131
159
|
return new Promise(function (resolve) {
|
|
132
|
-
(0, _requestApis.getDepsAndUsers)(treeNode.id,
|
|
160
|
+
(0, _requestApis.getDepsAndUsers)(treeNode.id, false).then(function (nodes) {
|
|
133
161
|
if (!nodes.length) {
|
|
134
162
|
resolve(true);
|
|
135
163
|
return;
|
|
@@ -152,8 +180,10 @@ function _default() {
|
|
|
152
180
|
var nodeType = node.nodeType,
|
|
153
181
|
data = node.data;
|
|
154
182
|
|
|
155
|
-
if (nodeType == _index.USER_NODE) {
|
|
156
|
-
|
|
183
|
+
if (nodeType == _index.USER_NODE) {
|
|
184
|
+
location.href = "#/summary/manage?toUserId=".concat(data.userId);
|
|
185
|
+
} else if (nodeType == _index.DEPART_NODE) {
|
|
186
|
+
location.href = "#/summary/manage?departmentName=".concat(data.name, "&departmentId=").concat(data.id);
|
|
157
187
|
}
|
|
158
188
|
|
|
159
189
|
setSelectedMenuKeys(selectedKyes);
|
|
@@ -194,7 +224,7 @@ function _default() {
|
|
|
194
224
|
itemHeight: itemHeight,
|
|
195
225
|
virtual: true,
|
|
196
226
|
onSelect: onSelectHandler,
|
|
197
|
-
defaultExpandedKeys: [
|
|
227
|
+
defaultExpandedKeys: ['0'],
|
|
198
228
|
selectedKeys: selectedMenuKeys,
|
|
199
229
|
loadData: onLoadTreeNodeDataHandler
|
|
200
230
|
})));
|
|
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.defaultRefObject = exports["default"] = exports.PAGE_SUMMARY_SUBORDINATE = exports.PAGE_SUMMARY_SHARE = exports.PAGE_SUMMARY_ROLE = exports.PAGE_SUMMARY_MY = exports.PAGE_SUMMARY_DEPART = exports.PAGE_SUMMARY_CHART = exports.PAGE_SUMMARY_ALl = void 0;
|
|
7
7
|
|
|
8
|
-
var _auth = require("../../../../utils/auth");
|
|
9
|
-
|
|
10
8
|
var _i18n = require("../../i18n");
|
|
11
9
|
|
|
12
10
|
var _index = require("../../components/menu-tree/tree-node/index");
|
|
@@ -24,90 +22,83 @@ var defaultRefObject = {
|
|
|
24
22
|
insertSubordinates: function insertSubordinates() {},
|
|
25
23
|
getMenus: function getMenus() {},
|
|
26
24
|
setSubordinatesLoading: function setSubordinatesLoading() {},
|
|
27
|
-
SUBORDINATES:
|
|
25
|
+
SUBORDINATES: ''
|
|
28
26
|
};
|
|
29
27
|
exports.defaultRefObject = defaultRefObject;
|
|
30
|
-
var PAGE_SUMMARY_ALl =
|
|
28
|
+
var PAGE_SUMMARY_ALl = 'summaryall';
|
|
31
29
|
exports.PAGE_SUMMARY_ALl = PAGE_SUMMARY_ALl;
|
|
32
|
-
var PAGE_SUMMARY_MY =
|
|
30
|
+
var PAGE_SUMMARY_MY = 'summarymy';
|
|
33
31
|
exports.PAGE_SUMMARY_MY = PAGE_SUMMARY_MY;
|
|
34
|
-
var PAGE_SUMMARY_SUBORDINATE =
|
|
32
|
+
var PAGE_SUMMARY_SUBORDINATE = 'subordinates';
|
|
35
33
|
exports.PAGE_SUMMARY_SUBORDINATE = PAGE_SUMMARY_SUBORDINATE;
|
|
36
|
-
var PAGE_SUMMARY_SHARE =
|
|
34
|
+
var PAGE_SUMMARY_SHARE = 'share';
|
|
37
35
|
exports.PAGE_SUMMARY_SHARE = PAGE_SUMMARY_SHARE;
|
|
38
|
-
var PAGE_SUMMARY_DEPART =
|
|
36
|
+
var PAGE_SUMMARY_DEPART = 'depart';
|
|
39
37
|
exports.PAGE_SUMMARY_DEPART = PAGE_SUMMARY_DEPART;
|
|
40
|
-
var PAGE_SUMMARY_ROLE =
|
|
38
|
+
var PAGE_SUMMARY_ROLE = 'role';
|
|
41
39
|
exports.PAGE_SUMMARY_ROLE = PAGE_SUMMARY_ROLE;
|
|
42
|
-
var PAGE_SUMMARY_CHART =
|
|
40
|
+
var PAGE_SUMMARY_CHART = 'chart';
|
|
43
41
|
exports.PAGE_SUMMARY_CHART = PAGE_SUMMARY_CHART;
|
|
44
42
|
|
|
45
43
|
var summaryMenus = /*#__PURE__*/function () {
|
|
46
|
-
function summaryMenus() {
|
|
44
|
+
function summaryMenus(props) {
|
|
47
45
|
_classCallCheck(this, summaryMenus);
|
|
48
46
|
|
|
49
47
|
this.COMPANYALL = _index.COMPANY_ALL_NODE;
|
|
50
48
|
this.SHARE = _index.SHARE_NODE;
|
|
51
49
|
this.SUBORDINATES = 'subordinates';
|
|
52
|
-
|
|
53
|
-
var baseAuth = new _auth.BaseAuth();
|
|
54
|
-
|
|
55
|
-
if (baseAuth.isBoss() || baseAuth.isManager() || baseAuth.isDepartmentLeader()) {
|
|
56
|
-
hasDashboardAuth = true;
|
|
57
|
-
}
|
|
58
|
-
|
|
50
|
+
console.log('props', props);
|
|
59
51
|
this.menus = [{
|
|
60
|
-
icon:
|
|
52
|
+
icon: 'all-zongjie',
|
|
61
53
|
label: _i18n.locale.menu_all_summary,
|
|
62
54
|
key: PAGE_SUMMARY_ALl,
|
|
63
55
|
type: _index.MENU_ITEM_NOE,
|
|
64
|
-
href:
|
|
56
|
+
href: '#/summary/all',
|
|
57
|
+
isShow: true
|
|
65
58
|
}, {
|
|
66
|
-
icon:
|
|
59
|
+
icon: 'caidan-my',
|
|
67
60
|
label: _i18n.locale.menu_my_summary,
|
|
68
61
|
key: PAGE_SUMMARY_MY,
|
|
69
62
|
type: _index.MENU_ITEM_NOE,
|
|
70
|
-
href:
|
|
63
|
+
href: '#/summary/my',
|
|
64
|
+
isShow: true
|
|
71
65
|
}, {
|
|
72
|
-
icon:
|
|
66
|
+
icon: 'caidan-xiashu',
|
|
73
67
|
label: _i18n.locale.menu_my_subordinates,
|
|
74
68
|
key: this.SUBORDINATES,
|
|
75
69
|
type: _index.SUBORDINATES_NODE,
|
|
76
70
|
isLeaf: false,
|
|
77
71
|
children: [],
|
|
78
|
-
href:
|
|
72
|
+
href: '#/summary/subordinates',
|
|
79
73
|
isShow: window.BSGlobal.loginUserInfo.HasSub
|
|
80
74
|
}, {
|
|
81
|
-
icon:
|
|
75
|
+
icon: 'caidan-enjoy',
|
|
82
76
|
label: _i18n.locale.menu_my_share,
|
|
83
77
|
key: PAGE_SUMMARY_SHARE,
|
|
84
78
|
type: _index.MENU_ITEM_NOE,
|
|
85
|
-
href:
|
|
79
|
+
href: '#/summary/share',
|
|
80
|
+
isShow: props.isShowShare
|
|
86
81
|
}, {
|
|
87
|
-
icon:
|
|
82
|
+
icon: 'bumen',
|
|
88
83
|
label: _i18n.locale.menu_department,
|
|
89
84
|
key: this.COMPANYALL,
|
|
90
85
|
type: this.COMPANYALL,
|
|
91
|
-
href:
|
|
86
|
+
href: '',
|
|
87
|
+
isShow: props.isShowDept
|
|
92
88
|
}, {
|
|
93
|
-
icon:
|
|
89
|
+
icon: '',
|
|
94
90
|
label: _i18n.locale.menu_summary,
|
|
95
|
-
key:
|
|
91
|
+
key: 'other',
|
|
96
92
|
type: _index.GROUP_NAME_NODE,
|
|
97
|
-
href:
|
|
93
|
+
href: '',
|
|
94
|
+
isShow: true
|
|
98
95
|
}, {
|
|
99
|
-
icon:
|
|
96
|
+
icon: 'my-setup',
|
|
100
97
|
label: _i18n.locale.menu_summary_role,
|
|
101
98
|
key: PAGE_SUMMARY_ROLE,
|
|
102
99
|
type: _index.MENU_ITEM_NOE,
|
|
103
|
-
href:
|
|
104
|
-
|
|
105
|
-
icon: "yibiao",
|
|
106
|
-
label: _i18n.locale.menu_summary_count,
|
|
107
|
-
key: PAGE_SUMMARY_CHART,
|
|
108
|
-
type: _index.MENU_ITEM_NOE,
|
|
109
|
-
href: "#/summary/chart",
|
|
110
|
-
isShow: hasDashboardAuth
|
|
100
|
+
href: '#/enterprise/manage?reactRouterName=daily',
|
|
101
|
+
isShow: true
|
|
111
102
|
}];
|
|
112
103
|
}
|
|
113
104
|
|
|
@@ -118,11 +109,11 @@ var summaryMenus = /*#__PURE__*/function () {
|
|
|
118
109
|
|
|
119
110
|
if (loading) {
|
|
120
111
|
this.menus[1].children.push({
|
|
121
|
-
icon:
|
|
122
|
-
label:
|
|
123
|
-
key:
|
|
112
|
+
icon: '',
|
|
113
|
+
label: 'loading',
|
|
114
|
+
key: 'loading-subordinates',
|
|
124
115
|
type: _index.LOADING_NODE,
|
|
125
|
-
href:
|
|
116
|
+
href: '',
|
|
126
117
|
data: {}
|
|
127
118
|
});
|
|
128
119
|
}
|
|
@@ -132,11 +123,11 @@ var summaryMenus = /*#__PURE__*/function () {
|
|
|
132
123
|
value: function insertSubordinates(users) {
|
|
133
124
|
if (!users || !users.length) {
|
|
134
125
|
this.menus[2].children = [{
|
|
135
|
-
icon:
|
|
136
|
-
label:
|
|
137
|
-
key:
|
|
126
|
+
icon: '',
|
|
127
|
+
label: 'empty-subordinates',
|
|
128
|
+
key: 'empty-subordinates',
|
|
138
129
|
type: _index.NO_SUBORDINATES_NODE,
|
|
139
|
-
href:
|
|
130
|
+
href: '',
|
|
140
131
|
data: {}
|
|
141
132
|
}];
|
|
142
133
|
return;
|
|
@@ -147,11 +138,11 @@ var summaryMenus = /*#__PURE__*/function () {
|
|
|
147
138
|
for (var i = 0; i < users.length; i++) {
|
|
148
139
|
var user = users[i];
|
|
149
140
|
treeNodeUsers.push({
|
|
150
|
-
icon:
|
|
141
|
+
icon: '',
|
|
151
142
|
label: user.name,
|
|
152
143
|
key: "".concat(user.userId),
|
|
153
144
|
type: _index.USER_NODE,
|
|
154
|
-
href:
|
|
145
|
+
href: '',
|
|
155
146
|
data: user
|
|
156
147
|
});
|
|
157
148
|
}
|
|
@@ -162,7 +153,7 @@ var summaryMenus = /*#__PURE__*/function () {
|
|
|
162
153
|
key: "getMenus",
|
|
163
154
|
value: function getMenus() {
|
|
164
155
|
var menus = this.formateToTreeNodeData(this.menus.filter(function (it) {
|
|
165
|
-
return it.isShow
|
|
156
|
+
return it.isShow == true;
|
|
166
157
|
}));
|
|
167
158
|
return menus;
|
|
168
159
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getShareStatus = void 0;
|
|
7
|
+
|
|
8
|
+
var _request = require("@titaui/request");
|
|
9
|
+
|
|
10
|
+
var _helpers = require("../../../../utils/helpers");
|
|
11
|
+
|
|
12
|
+
var getShareStatus = function getShareStatus() {
|
|
13
|
+
var loginUser = (0, _helpers.getLoginUserInfo)();
|
|
14
|
+
return (0, _request.rget)('v1')("summary/getShareUsers?toUserId=".concat(loginUser.Id));
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
exports.getShareStatus = getShareStatus;
|
|
@@ -23,6 +23,10 @@ var _menuHighlight = _interopRequireDefault(require("./menu-highlight"));
|
|
|
23
23
|
|
|
24
24
|
var _requestApis = require("../../request-apis");
|
|
25
25
|
|
|
26
|
+
var _requestApi = require("./request-api");
|
|
27
|
+
|
|
28
|
+
var _auth = require("../../../../utils/auth");
|
|
29
|
+
|
|
26
30
|
require("../../index.css");
|
|
27
31
|
|
|
28
32
|
require("./index.css");
|
|
@@ -59,7 +63,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
59
63
|
maxHeight = _useState2[0],
|
|
60
64
|
setMaxHeight = _useState2[1];
|
|
61
65
|
|
|
62
|
-
var _useState3 = (0, _react.useState)([
|
|
66
|
+
var _useState3 = (0, _react.useState)(['myokr']),
|
|
63
67
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
64
68
|
expandedKeys = _useState4[0],
|
|
65
69
|
setExpandedKeys = _useState4[1];
|
|
@@ -69,19 +73,32 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
69
73
|
selectedMenuKeys = _useState6[0],
|
|
70
74
|
setSelectedMenuKeys = _useState6[1];
|
|
71
75
|
|
|
76
|
+
var _useState7 = (0, _react.useState)(false),
|
|
77
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
78
|
+
isShowShare = _useState8[0],
|
|
79
|
+
setIsShowShare = _useState8[1];
|
|
80
|
+
|
|
81
|
+
var _useState9 = (0, _react.useState)(new _auth.BaseAuth().isBoss()),
|
|
82
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
83
|
+
isShowDepartment = _useState10[0],
|
|
84
|
+
setIsShowDepartment = _useState10[1];
|
|
85
|
+
|
|
72
86
|
var flipRef = (0, _react.useRef)({
|
|
73
87
|
next: function next() {},
|
|
74
88
|
goback: function goback() {}
|
|
75
89
|
});
|
|
76
90
|
var summaryMenusData = (0, _react.useRef)(_menus.defaultRefObject);
|
|
77
91
|
|
|
78
|
-
var
|
|
79
|
-
summaryMenusData.current = new _menus["default"](
|
|
92
|
+
var _useState11 = (0, _react.useState)(function () {
|
|
93
|
+
summaryMenusData.current = new _menus["default"]({
|
|
94
|
+
isShowShare: false,
|
|
95
|
+
isShowDept: true
|
|
96
|
+
});
|
|
80
97
|
return summaryMenusData.current.getMenus();
|
|
81
98
|
}),
|
|
82
|
-
|
|
83
|
-
menus =
|
|
84
|
-
setMenus =
|
|
99
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
100
|
+
menus = _useState12[0],
|
|
101
|
+
setMenus = _useState12[1]; // 判断路由高亮菜单
|
|
85
102
|
|
|
86
103
|
|
|
87
104
|
(0, _react.useEffect)(function () {
|
|
@@ -121,7 +138,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
121
138
|
resolve(true); // 获取数据
|
|
122
139
|
|
|
123
140
|
(0, _requestApis.getSubordinates)({
|
|
124
|
-
relationIds:
|
|
141
|
+
relationIds: '1,2'
|
|
125
142
|
}, {
|
|
126
143
|
disabledDottedSubordinatesDig: true
|
|
127
144
|
}).then(function (users) {
|
|
@@ -161,6 +178,32 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
161
178
|
};
|
|
162
179
|
});
|
|
163
180
|
(0, _react.useEffect)(function () {
|
|
181
|
+
var newMenu = new _menus["default"]({
|
|
182
|
+
isShowShare: isShowShare,
|
|
183
|
+
isShowDept: isShowDepartment
|
|
184
|
+
});
|
|
185
|
+
summaryMenusData.current = newMenu;
|
|
186
|
+
setMenus(newMenu.getMenus());
|
|
187
|
+
}, [isShowShare, isShowDepartment]);
|
|
188
|
+
(0, _react.useEffect)(function () {
|
|
189
|
+
(0, _requestApi.getShareStatus)().then(function (resp) {
|
|
190
|
+
if (resp.Code === 1) {
|
|
191
|
+
if (resp.Data.length > 0) {
|
|
192
|
+
setIsShowShare(true);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
if (!isShowDepartment) {
|
|
198
|
+
(0, _requestApis.getMyDepartMent)().then(function (resp) {
|
|
199
|
+
if (resp.Code === 1) {
|
|
200
|
+
if (resp.Data.length > 0) {
|
|
201
|
+
setIsShowDepartment(true);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
|
|
164
207
|
var obs = new _resizeObserverPolyfill["default"](function (entries) {
|
|
165
208
|
var _iterator = _createForOfIteratorHelper(entries),
|
|
166
209
|
_step;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.removeFollower = exports.getSubordinates = exports.getFollowerList = exports.getDepsAndUsers = exports.addFollower = void 0;
|
|
6
|
+
exports.removeFollower = exports.getSubordinates = exports.getMyDepartMent = exports.getFollowerList = exports.getDepsAndUsers = exports.addFollower = void 0;
|
|
7
7
|
|
|
8
8
|
var _axios = _interopRequireDefault(require("axios"));
|
|
9
9
|
|
|
@@ -137,4 +137,10 @@ var getDepsAndUsers = function getDepsAndUsers() {
|
|
|
137
137
|
});
|
|
138
138
|
};
|
|
139
139
|
|
|
140
|
-
exports.getDepsAndUsers = getDepsAndUsers;
|
|
140
|
+
exports.getDepsAndUsers = getDepsAndUsers;
|
|
141
|
+
|
|
142
|
+
var getMyDepartMent = function getMyDepartMent() {
|
|
143
|
+
return (0, _request.rget)('v2')("department/myLead?toUserId=".concat(userId));
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
exports.getMyDepartMent = getMyDepartMent;
|
|
@@ -39,7 +39,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
39
39
|
|
|
40
40
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
41
41
|
|
|
42
|
-
var prefix =
|
|
42
|
+
var prefix = "tita-ui-new-confidence";
|
|
43
43
|
|
|
44
44
|
var NewConfidence = function NewConfidence(_ref) {
|
|
45
45
|
var value = _ref.value,
|
|
@@ -70,7 +70,7 @@ var NewConfidence = function NewConfidence(_ref) {
|
|
|
70
70
|
setConfidence(value);
|
|
71
71
|
}, [value]);
|
|
72
72
|
var renderPopContent = (0, _react.useMemo)(function () {
|
|
73
|
-
if (!editable) return;
|
|
73
|
+
if (!editable) return null;
|
|
74
74
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
75
75
|
className: "".concat(prefix, "__pop-content")
|
|
76
76
|
}, _constant.ConfidencePointArr.map(function (point) {
|
|
@@ -85,12 +85,12 @@ var NewConfidence = function NewConfidence(_ref) {
|
|
|
85
85
|
src: _constant.ConfidenceMapIcon[point]
|
|
86
86
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
87
87
|
className: "".concat(prefix, "__pop-content-item-text")
|
|
88
|
-
}, point, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)(
|
|
88
|
+
}, point, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)("Per_Set_Form_Quantifier_Points"))));
|
|
89
89
|
}));
|
|
90
90
|
}, [editable]);
|
|
91
91
|
return /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
92
92
|
popup: renderPopContent,
|
|
93
|
-
popupPlacement:
|
|
93
|
+
popupPlacement: "bottom",
|
|
94
94
|
ref: popupRef,
|
|
95
95
|
popupAlign: {
|
|
96
96
|
offset: [0, 5],
|
|
@@ -102,7 +102,7 @@ var NewConfidence = function NewConfidence(_ref) {
|
|
|
102
102
|
}
|
|
103
103
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
104
|
className: (0, _classnames["default"])(prefix, _defineProperty({}, "".concat(prefix, "--editable"), editable))
|
|
105
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
105
|
+
}, confidence > 0 && /*#__PURE__*/_react["default"].createElement("img", {
|
|
106
106
|
className: "".concat(prefix, "__icon"),
|
|
107
107
|
alt: "",
|
|
108
108
|
src: _constant.ConfidenceMapIcon[confidence]
|
|
@@ -11,7 +11,7 @@ var _bsGlobal = require("../../utils/bs-global");
|
|
|
11
11
|
|
|
12
12
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
13
13
|
|
|
14
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
14
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
15
15
|
|
|
16
16
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
17
17
|
|
|
@@ -21,7 +21,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
21
21
|
|
|
22
22
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
23
23
|
|
|
24
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
24
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
25
25
|
|
|
26
26
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
27
27
|
|
|
@@ -25,7 +25,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
25
25
|
|
|
26
26
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
27
27
|
|
|
28
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
28
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
29
|
|
|
30
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
31
|
|
|
@@ -35,7 +35,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
35
35
|
|
|
36
36
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
37
37
|
|
|
38
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
38
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
39
39
|
|
|
40
40
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
41
41
|
|
|
@@ -33,7 +33,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
33
33
|
|
|
34
34
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
35
35
|
|
|
36
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
36
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
37
37
|
|
|
38
38
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
39
39
|
|
|
@@ -43,7 +43,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
43
43
|
|
|
44
44
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
45
45
|
|
|
46
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
46
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
47
47
|
|
|
48
48
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
49
49
|
|
|
@@ -51,7 +51,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
51
51
|
|
|
52
52
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
53
53
|
|
|
54
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
54
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
55
55
|
|
|
56
56
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
57
57
|
|
|
@@ -61,7 +61,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
61
61
|
|
|
62
62
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
63
63
|
|
|
64
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
64
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
65
65
|
|
|
66
66
|
var getRadios = function getRadios() {
|
|
67
67
|
return [{
|
|
@@ -33,7 +33,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
33
33
|
|
|
34
34
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
35
35
|
|
|
36
|
-
function _extends() { _extends = Object.assign
|
|
36
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
37
37
|
|
|
38
38
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
39
39
|
|
|
@@ -23,7 +23,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
23
23
|
|
|
24
24
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
25
|
|
|
26
|
-
function _extends() { _extends = Object.assign
|
|
26
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
27
|
|
|
28
28
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
29
29
|
|
|
@@ -21,7 +21,7 @@ var _excluded = ["data", "defaultExpandedKeys", "draggable"];
|
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
23
|
|
|
24
|
-
function _extends() { _extends = Object.assign
|
|
24
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
25
|
|
|
26
26
|
function _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; }
|
|
27
27
|
|
|
@@ -31,7 +31,7 @@ require("./index.css");
|
|
|
31
31
|
|
|
32
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
33
33
|
|
|
34
|
-
function _extends() { _extends = Object.assign
|
|
34
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
35
35
|
|
|
36
36
|
function _default(node, level) {
|
|
37
37
|
switch (node.nodeType) {
|