@titaui/pc 1.6.78 → 1.6.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/avatar/index.js +1 -1
- package/lib/components/button/index.js +1 -1
- package/lib/components/change-okr/Filter.js +4 -4
- package/lib/components/change-okr/Item.js +6 -23
- package/lib/components/change-okr/index.js +3 -2
- package/lib/components/change-okr/styledComponents.js +3 -5
- package/lib/components/communication/style.js +1 -1
- package/lib/components/create-okr/constant.js +1 -1
- package/lib/components/create-okr/fields/index.js +1 -1
- package/lib/components/create-okr/fields/okr-parent.js +2 -2
- package/lib/components/create-okr/request-api.js +1 -1
- package/lib/components/create-okr/style.js +1 -1
- package/lib/components/create-okr/utils/helper.js +1 -1
- package/lib/components/delete-confirm-pop/style.js +1 -1
- package/lib/components/drawer/manager/drawerWrapper.js +1 -1
- package/lib/components/drawer/manager/index.js +3 -3
- package/lib/components/dropdown-layer/index.js +1 -1
- package/lib/components/dynamic/constant.js +1 -1
- package/lib/components/dynamic/dynamic-topping/request-api.js +1 -1
- package/lib/components/dynamic/export-module/index.js +1 -1
- package/lib/components/dynamic/index.js +1 -1
- package/lib/components/dynamic/my-team/request-api.js +1 -1
- package/lib/components/dynamic/request-api.js +1 -1
- package/lib/components/dynamic/util.js +1 -1
- package/lib/components/eReport/eReportLists/style.js +1 -1
- package/lib/components/eReport/eReportShare/style.js +1 -1
- package/lib/components/eReport/eReportShare/toast/style.js +1 -1
- package/lib/components/edit-kr-wight/style/index.js +1 -1
- package/lib/components/emotionsSelector/style.js +1 -1
- package/lib/components/file-list/index.js +1 -1
- package/lib/components/form/index.js +1 -1
- package/lib/components/grid-page/commen-components/index.js +4 -4
- package/lib/components/grid-page/commen-components/scroll-tips.js +1 -1
- package/lib/components/grid-page/util/network.js +1 -1
- package/lib/components/mblog/common/index.js +3 -3
- package/lib/components/mblog/style.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/index.js +1 -1
- package/lib/components/menus/context.js +1 -1
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +1 -1
- package/lib/components/menus/export-modules/okr-menus/menus.js +5 -2
- package/lib/components/menus/request-apis.js +1 -1
- package/lib/components/nav-top/components/user-message/constant.js +1 -1
- package/lib/components/nav-top/components/user-message/utils.js +1 -1
- package/lib/components/nav-top/constant.js +1 -1
- package/lib/components/nav-top/index.css +8 -0
- package/lib/components/nav-top/index.js +23 -3
- package/lib/components/nav-top/request.apis.js +1 -1
- package/lib/components/okr-detail/auth.js +1 -1
- package/lib/components/okr-detail/base-info/util.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/constant.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +1 -1
- package/lib/components/okr-detail/context.js +1 -1
- package/lib/components/okr-detail/detail-header/delete-confirm/style.js +1 -1
- package/lib/components/okr-detail/detail-header/enums.js +1 -1
- package/lib/components/okr-detail/e-list/constant.js +1 -1
- package/lib/components/okr-detail/e-list/util.js +1 -1
- package/lib/components/okr-detail/okr-list/create-kr-item/style.js +1 -1
- package/lib/components/okr-detail/okr-list/drag-order-kr.js +1 -1
- package/lib/components/okr-detail/okr-list/index.js +2 -1
- package/lib/components/okr-detail/request-apis.js +1 -1
- package/lib/components/okr-detail/schedule/util.js +1 -1
- package/lib/components/okr-flow/index.js +1 -1
- package/lib/components/okr-flow/mini-map/utils.js +1 -1
- package/lib/components/okr-flow/open-data/index.js +1 -1
- package/lib/components/okr-flow/request-apis.js +1 -1
- package/lib/components/okr-flow/utils/config.js +1 -1
- package/lib/components/okr-flow/utils/index.js +1 -1
- package/lib/components/okr-flow/utils/tree-handler.js +1 -1
- package/lib/components/okr-progress/request-apis.js +1 -1
- package/lib/components/okr-progress/util.js +1 -1
- package/lib/components/okr-progress-detail/utils.js +1 -1
- package/lib/components/okr-progress-modal/helper.js +1 -1
- package/lib/components/okr-progress-modal/style.js +1 -1
- package/lib/components/okr-progress-modal/textarea/style.js +1 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/style.js +1 -1
- package/lib/components/okr-review/ReviewPop/style.js +1 -1
- package/lib/components/okr-review/components/ReviewItem/style.js +1 -1
- package/lib/components/okr-review/components/confirm-pop/style.js +1 -1
- package/lib/components/okr-review/style.js +1 -1
- package/lib/components/okr-share/common-painter/utils.js +1 -1
- package/lib/components/okr-share/pink-card/images.js +1 -1
- package/lib/components/okr-share/request-apis.js +1 -1
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +1 -1
- package/lib/components/okrcase-library/server/network.js +1 -1
- package/lib/components/open-data-painter/index.js +1 -1
- package/lib/components/operation-records/style.js +1 -1
- package/lib/components/period-selector/common.js +2 -2
- package/lib/components/period-selector/components/button/style.js +1 -1
- package/lib/components/period-selector/components/selector/style.js +1 -1
- package/lib/components/period-selector/helper/index.js +1 -1
- package/lib/components/period-selector/mockData.js +1 -1
- package/lib/components/period-selector/style.js +1 -1
- package/lib/components/photo-card/request.apis.js +1 -1
- package/lib/components/pop-down-notification/components/SuccessRender.js +1 -1
- package/lib/components/pop-down-notification/style/index.js +1 -1
- package/lib/components/praise-record/style.js +1 -1
- package/lib/components/progress/index.js +1 -1
- package/lib/components/publish-dynamic-modal/requist-api.js +1 -1
- package/lib/components/radio/radio.js +1 -1
- package/lib/components/scrollbar/simplebar/helpers.js +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/task-relation/helper.js +1 -1
- package/lib/components/task-relation/request-api.js +1 -1
- package/lib/components/tita-chart/index.js +4 -4
- package/lib/components/tita-chart/util/index.js +12 -12
- package/lib/components/tita-chart/util/utils.js +1 -1
- package/lib/components/tooltip/index.js +1 -1
- package/lib/components/tree/index.js +1 -1
- package/lib/components/upload/style.js +1 -1
- package/lib/components/upload/util.js +1 -1
- package/lib/components/upvote/request-apis.js +1 -1
- package/lib/components/user-selector/index.js +1 -1
- package/lib/components/user-selector/request-apis.js +1 -1
- package/lib/components/user-selector/utils.js +1 -1
- package/lib/components/version-change-modal/request-api.js +1 -1
- package/lib/components/viewer/index.js +1 -1
- package/lib/components-v1/avatar/styles.js +1 -1
- package/lib/components-v1/buttonv2/style/style.js +1 -1
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +2 -0
- package/lib/components-v1/input/Input.js +1 -1
- package/lib/components-v1/input/InputNumber.js +1 -1
- package/lib/components-v1/input/style/index.js +1 -1
- package/lib/components-v1/popConfirm/style.js +1 -1
- package/lib/components-v1/tabs/style.js +1 -1
- package/lib/components-v1/textarea/style.js +1 -1
- package/lib/components-v1/userSelector/UserSelectorPop.js +1 -1
- package/lib/components-v1/userSelector/style.js +1 -1
- package/lib/index.js +1 -1
- package/lib/pages/group-management/components/PopDownNotification/components/SuccessRender.js +1 -1
- package/lib/pages/group-management/components/PopDownNotification/style/index.js +1 -1
- package/lib/pages/group-management/components/openData/index.js +1 -1
- package/lib/pages/group-management/groupInterface.js +10 -10
- package/lib/pages/home-page/components/data-list/table/columns/createDate.js +1 -1
- package/lib/pages/home-page/components/data-list/table/columns/index.js +1 -1
- package/lib/pages/home-page/components/data-list/table/index.js +1 -0
- package/lib/pages/new-okr-list/request-api.js +1 -1
- package/lib/pages/okr-map/hooks/useStorage.js +1 -1
- package/lib/pages/okr-map/open-data/index.js +1 -1
- package/lib/pages/okr-map/request-apis.js +1 -1
- package/lib/pages/okr-map/utils.js +2 -1
- package/lib/utils/auth.js +1 -1
- package/lib/utils/bs-global.js +1 -1
- package/lib/utils/date-test-change.js +5 -5
- package/lib/utils/format-time.js +1 -1
- package/lib/utils/helpers.js +2 -2
- package/lib/utils/mblog.js +1 -1
- package/lib/utils/open-data.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/request-v1.js +2 -2
- package/lib/utils/request.js +1 -1
- package/lib/utils/roundWeight.js +2 -2
- package/lib/utils/tools.js +4 -3
- package/package.json +1 -1
- package/yarn-error.log +0 -15894
|
@@ -5,11 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.testDayChange = exports.testDateDiff = void 0;
|
|
7
7
|
|
|
8
|
-
// import moment from "moment"
|
|
9
8
|
//精确到日期的检测 date为2021/8/26这样的类型,返回距现在几天
|
|
10
9
|
var testDateDiff = function testDateDiff(date) {
|
|
11
|
-
var
|
|
12
|
-
var testTime = Date.parse(
|
|
10
|
+
var handleDate = date.length == 5 ? "".concat(new Date().getFullYear(), "/").concat(date) : date;
|
|
11
|
+
var testTime = Date.parse(handleDate.replace(/-/g, '/').split('T').join(' '));
|
|
13
12
|
var now = Date.now();
|
|
14
13
|
var diffDay = Math.floor((now - testTime) / (1000 * 60 * 60 * 24));
|
|
15
14
|
return diffDay;
|
|
@@ -62,8 +61,9 @@ var testDateDiff = function testDateDiff(date) {
|
|
|
62
61
|
exports.testDateDiff = testDateDiff;
|
|
63
62
|
|
|
64
63
|
var testDayChange = function testDayChange(date) {
|
|
65
|
-
if (!date) return '暂未';
|
|
66
|
-
|
|
64
|
+
if (!date) return '暂未'; // 兼容safari,safari不支持yy-mm-dd格式,支持yy/mm/dd格式
|
|
65
|
+
|
|
66
|
+
var timeDateObj = new Date(date.replace(/-/g, '/'));
|
|
67
67
|
var timeMilliSecond = timeDateObj.getTime();
|
|
68
68
|
var timeYear = timeDateObj.getFullYear();
|
|
69
69
|
var timeMonth = timeDateObj.getMonth() + 1;
|
package/lib/utils/format-time.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.timeFormat = exports.showWeekLastDay = exports.showWeekFirstDay = exports.showNextWeekFirstDay = exports.showNextMonthFirstDay = exports.showMonthLastDay = exports.showMonthFirstDay = exports.getTimeString = exports.getNextDayOfYear = exports.getFirstDayOfYear = void 0;
|
|
7
7
|
|
|
8
8
|
var getTimeString = function getTimeString(time, nowTime) {
|
|
9
9
|
if (!time) {
|
package/lib/utils/helpers.js
CHANGED
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.cssSupport = cssSupport;
|
|
7
|
-
exports.getUploadMaxSize = getUploadMaxSize;
|
|
8
|
-
exports.getTenantInfo = getTenantInfo;
|
|
9
7
|
exports.escapeHtml = escapeHtml;
|
|
8
|
+
exports.getTenantInfo = getTenantInfo;
|
|
9
|
+
exports.getUploadMaxSize = getUploadMaxSize;
|
|
10
10
|
exports.isLocal = exports.isDingDing = void 0;
|
|
11
11
|
|
|
12
12
|
var _bsGlobal = require("./bs-global");
|
package/lib/utils/mblog.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.htmlEncodeByRegExp = htmlEncodeByRegExp;
|
|
7
6
|
exports.htmlDecodeByRegExp = htmlDecodeByRegExp;
|
|
7
|
+
exports.htmlEncodeByRegExp = htmlEncodeByRegExp;
|
|
8
8
|
|
|
9
9
|
// html标签转义
|
|
10
10
|
function htmlEncodeByRegExp(str) {
|
package/lib/utils/open-data.js
CHANGED
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.parseTag = exports.parseString = exports.isWxTrial = exports.isWechat = exports.isPlatform = exports.getSource = exports.getOpenId = exports.OpenUserName = exports.OpenDepartmentName = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
package/lib/utils/platform.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.isPlatform = exports.isOfficialSite = exports.isFeishu = exports.isDD = exports.getPlatformConfig = exports.PlatformItem = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
package/lib/utils/request-v1.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.taker = taker;
|
|
7
6
|
exports.getApiUrl = getApiUrl;
|
|
8
|
-
exports.getApiUrl3 = getApiUrl3;
|
|
9
7
|
exports.getApiUrl2 = getApiUrl2;
|
|
8
|
+
exports.getApiUrl3 = getApiUrl3;
|
|
9
|
+
exports.taker = taker;
|
|
10
10
|
|
|
11
11
|
var _bsGlobal = require("./bs-global");
|
|
12
12
|
|
package/lib/utils/request.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.rput = exports.rpost = exports.rget = exports.rdelete = exports.postForTableList = void 0;
|
|
7
7
|
|
|
8
8
|
var _axios = _interopRequireDefault(require("axios"));
|
|
9
9
|
|
package/lib/utils/roundWeight.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.RoundWeight = RoundWeight;
|
|
7
|
-
exports.ReCalibratePrecision = ReCalibratePrecision;
|
|
8
6
|
exports.AccAdd = AccAdd;
|
|
9
7
|
exports.AccMul = AccMul;
|
|
8
|
+
exports.ReCalibratePrecision = ReCalibratePrecision;
|
|
9
|
+
exports.RoundWeight = RoundWeight;
|
|
10
10
|
|
|
11
11
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
12
12
|
|
package/lib/utils/tools.js
CHANGED
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.htmlEncodeByRegExp = htmlEncodeByRegExp;
|
|
7
|
-
exports.htmlDecodeByRegExp = htmlDecodeByRegExp;
|
|
8
6
|
exports.changeQueryString = changeQueryString;
|
|
9
7
|
exports.getQueryString = getQueryString;
|
|
10
|
-
exports.
|
|
8
|
+
exports.highLightWord = exports.hexToRgba = exports.getUrlForUserPage = void 0;
|
|
9
|
+
exports.htmlDecodeByRegExp = htmlDecodeByRegExp;
|
|
10
|
+
exports.htmlEncodeByRegExp = htmlEncodeByRegExp;
|
|
11
|
+
exports.unHighLight = void 0;
|
|
11
12
|
|
|
12
13
|
var _platform = require("./platform");
|
|
13
14
|
|