@titaui/pc 1.15.70 → 1.15.74

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.
Files changed (63) hide show
  1. package/lib/components/avatar/name-avatar/index.css +2 -3
  2. package/lib/components/avatar/name-avatar/index.js +14 -24
  3. package/lib/components/book-demo/constant.js +118 -0
  4. package/lib/components/book-demo/interface.js +1 -0
  5. package/lib/components/button/icon-btn/index.css +24 -1
  6. package/lib/components/button/icon-btn/index.js +4 -2
  7. package/lib/components/button/text-btn/index.css +2 -2
  8. package/lib/components/checkbox/index.css +1 -0
  9. package/lib/components/dialog-confirm/index.css +8 -2
  10. package/lib/components/dialog-confirm/index.js +26 -16
  11. package/lib/components/drawer/index.css +4 -0
  12. package/lib/{pages/like-ranking → components}/filter-buttons/department.js +20 -6
  13. package/lib/{pages/like-ranking → components}/filter-buttons/group.js +2 -2
  14. package/lib/{pages/like-ranking → components}/filter-buttons/index.css +4 -0
  15. package/lib/components/filter-buttons/index.js +85 -0
  16. package/lib/{pages/like-ranking → components}/filter-buttons/modular.js +3 -3
  17. package/lib/components/filter-buttons/name.js +86 -0
  18. package/lib/{pages/like-ranking → components}/filter-buttons/search-dropdown/index.css +5 -0
  19. package/lib/{pages/like-ranking → components}/filter-buttons/search-dropdown/index.js +1 -1
  20. package/lib/{pages/like-ranking → components}/filter-buttons/timer.js +3 -3
  21. package/lib/components/form/form-fields/cycle/index.css +135 -0
  22. package/lib/components/form/form-fields/cycle/index.js +190 -0
  23. package/lib/components/form/form-fields/cycle/interface.js +5 -0
  24. package/lib/components/form/form-fields/cycle/utils.js +47 -0
  25. package/lib/components/form/form-fields/dropdown/index.css +9 -0
  26. package/lib/components/form/form-fields/dropdown/index.js +8 -3
  27. package/lib/components/form/form-fields/input/index.js +21 -5
  28. package/lib/components/form/index.js +4 -1
  29. package/lib/components/guide-order/index.css +228 -0
  30. package/lib/components/guide-order/index.js +295 -0
  31. package/lib/components/menus/components/menu-tree/images/survey-menu/involved.svg +8 -0
  32. package/lib/components/menus/components/menu-tree/images/survey-menu/manage.svg +11 -0
  33. package/lib/components/menus/components/menu-tree/tree-node/index.css +56 -0
  34. package/lib/components/menus/export-modules/survey-menu/index.css +9 -0
  35. package/lib/components/menus/export-modules/survey-menu/index.js +120 -0
  36. package/lib/components/menus/export-modules/survey-menu/menu-highlight.js +52 -0
  37. package/lib/components/menus/export-modules/survey-menu/menus.js +87 -0
  38. package/lib/components/menus/export-modules/survey-menu/request-api.js +5 -0
  39. package/lib/components/menus/export-modules/survey-menu/survey-front-menus.js +178 -0
  40. package/lib/components/menus/index.js +6 -0
  41. package/lib/components/nav-top/components/app-center/images/survey.svg +20 -0
  42. package/lib/components/nav-top/components/app-center/index.css +8 -0
  43. package/lib/components/nav-top/components/menu/index.js +2 -1
  44. package/lib/components/nav-top/components/user-message/index.js +12 -9
  45. package/lib/components/nav-top/useGlobalValue.js +4 -1
  46. package/lib/components/pagination/index.css +5 -0
  47. package/lib/components/pagination/pagination.js +20 -10
  48. package/lib/components/pagination/select.css +0 -1
  49. package/lib/components/radio/index.css +4 -0
  50. package/lib/components/radio/radio.js +11 -4
  51. package/lib/components/table/index.css +5 -10
  52. package/lib/components/table/index.js +55 -19
  53. package/lib/components/tabs/index.css +20 -0
  54. package/lib/components/tabs/index.js +4 -1
  55. package/lib/{pages/like-ranking/filter-buttons/name.js → components/tabs/tabBtns.js} +30 -36
  56. package/lib/components/tooltip/tooltip-text/index.js +2 -1
  57. package/lib/components/user-selector/request-apis.js +8 -3
  58. package/lib/index.js +32 -0
  59. package/lib/pages/group-management/components/table/index.js +2 -2
  60. package/lib/pages/like-ranking/index.js +1 -1
  61. package/lib/utils/auth.js +5 -0
  62. package/package.json +4 -4
  63. package/lib/pages/like-ranking/filter-buttons/index.js +0 -36
package/lib/utils/auth.js CHANGED
@@ -77,6 +77,11 @@ var BaseAuth = /*#__PURE__*/function () {
77
77
  value: function isPlanDailyManager() {
78
78
  return this.loginUserInfor.IsPlanDailyManager;
79
79
  }
80
+ }, {
81
+ key: "isSurveyManager",
82
+ value: function isSurveyManager() {
83
+ return this.loginUserInfor.IsSuveryManager;
84
+ }
80
85
  }]);
81
86
 
82
87
  return BaseAuth;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.15.70",
3
+ "version": "1.15.74",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
@@ -78,10 +78,11 @@
78
78
  "@handsontable/react": "^12.1.2",
79
79
  "@juggle/resize-observer": "3.3.1",
80
80
  "@titaui/dagre": "0.8.8-pre",
81
+ "@titaui/rc-pagination2": "^1.0.9",
81
82
  "@titaui/rc-tree2": "4.1.23",
82
83
  "@titaui/rc-trigger": "5.2.5",
83
84
  "@titaui/react-flow-renderer": "9.5.4",
84
- "@titaui/request": "^1.0.1",
85
+ "@titaui/request": "^1.1.5",
85
86
  "@titaui/rich-editor": "0.1.73",
86
87
  "@titaui/toast": "1.0.0",
87
88
  "@types/color": "3.0.3",
@@ -131,7 +132,6 @@
131
132
  "rc-drawer": "4.3.1",
132
133
  "rc-input-number": "5.0.0",
133
134
  "rc-overflow": "1.2.2",
134
- "rc-pagination": "3.1.6",
135
135
  "rc-queue-anim": "1.4.1",
136
136
  "rc-rate": "^2.9.2",
137
137
  "rc-select": "12.1.13",
@@ -155,8 +155,8 @@
155
155
  "react-spring": "9.2.4",
156
156
  "react-transition-group": "4.4.2",
157
157
  "resize-observer-polyfill": "1.5.1",
158
- "sortablejs": "^1.12.0",
159
158
  "slick-carousel": "1.8.1",
159
+ "sortablejs": "^1.12.0",
160
160
  "tita-ui": "1.2.56",
161
161
  "url-parse": "1.5.1",
162
162
  "uuid": "3.1.0",
@@ -1,36 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _department = _interopRequireDefault(require("./department"));
11
-
12
- var _timer = _interopRequireDefault(require("./timer"));
13
-
14
- require("./index.css");
15
-
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
-
18
- var preCls = "filter-buttons";
19
-
20
- var FilterButton = function FilterButton(_ref) {
21
- var parmas = _ref.parmas,
22
- setParma = _ref.setParma,
23
- setType = _ref.setType;
24
- return /*#__PURE__*/_react["default"].createElement("div", {
25
- className: "".concat(preCls)
26
- }, /*#__PURE__*/_react["default"].createElement(_department["default"], {
27
- setParma: setParma
28
- }), /*#__PURE__*/_react["default"].createElement(_timer["default"], {
29
- setParma: setParma,
30
- parmas: parmas,
31
- setType: setType
32
- }));
33
- };
34
-
35
- var _default = FilterButton;
36
- exports["default"] = _default;