react-big-schedule 4.3.3-beta.0 → 4.3.3
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/dist/components/AgendaResourceEvents.js +1 -1
- package/dist/components/DnDContext.js +2 -3
- package/dist/components/DnDSource.js +2 -2
- package/dist/components/EventItem.js +2 -2
- package/dist/components/ResourceEvents.js +2 -2
- package/dist/components/ResourceView.js +1 -1
- package/dist/components/SchedulerData.js +3 -2
- package/dist/components/Summary.js +2 -2
- package/dist/components/index.js +2 -2
- package/dist/sample-data/sample1.js +2 -0
- package/package.json +8 -8
|
@@ -53,7 +53,7 @@ function AgendaResourceEvents(props) {
|
|
|
53
53
|
style: {
|
|
54
54
|
width: width
|
|
55
55
|
},
|
|
56
|
-
title: resourceEvents.slotTitle,
|
|
56
|
+
title: resourceEvents.slotTitle || resourceEvents.slotName,
|
|
57
57
|
className: "overflow-text header2-text"
|
|
58
58
|
}, slotItemContent);
|
|
59
59
|
if (slotItemTemplateResolver) {
|
|
@@ -18,8 +18,8 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
18
18
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
19
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
20
20
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
|
-
function _toPropertyKey(
|
|
22
|
-
function _toPrimitive(
|
|
21
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
22
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
23
23
|
var DnDContext = exports["default"] = /*#__PURE__*/_createClass(function DnDContext(sources, DecoratedComponent) {
|
|
24
24
|
var _this = this;
|
|
25
25
|
_classCallCheck(this, DnDContext);
|
|
@@ -94,7 +94,6 @@ var DnDContext = exports["default"] = /*#__PURE__*/_createClass(function DnDCont
|
|
|
94
94
|
initialStart = iStart;
|
|
95
95
|
// initialEnd = iEnd;
|
|
96
96
|
}
|
|
97
|
-
|
|
98
97
|
var point = monitor.getClientOffset();
|
|
99
98
|
var leftIndex = Math.floor((point.x - pos.x) / cellWidth);
|
|
100
99
|
if (!resourceEvents.headerItems[leftIndex]) {
|
|
@@ -11,8 +11,8 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11
11
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
12
12
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
13
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
|
-
function _toPropertyKey(
|
|
15
|
-
function _toPrimitive(
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
15
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
16
16
|
var DnDSource = exports["default"] = /*#__PURE__*/_createClass(function DnDSource(resolveDragObjFunc, DecoratedComponent, DnDEnabled) {
|
|
17
17
|
var _this = this;
|
|
18
18
|
var dndType = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : _default.DnDTypes.EVENT;
|
|
@@ -28,8 +28,8 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
28
28
|
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; } }
|
|
29
29
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
30
30
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
31
|
-
function _toPropertyKey(
|
|
32
|
-
function _toPrimitive(
|
|
31
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
32
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /* eslint-disable no-return-assign */
|
|
33
33
|
var stopDragHelper = function stopDragHelper(_ref) {
|
|
34
34
|
var count = _ref.count,
|
|
35
35
|
cellUnit = _ref.cellUnit,
|
|
@@ -33,8 +33,8 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
33
33
|
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; } }
|
|
34
34
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
35
35
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
36
|
-
function _toPropertyKey(
|
|
37
|
-
function _toPrimitive(
|
|
36
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
37
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
38
38
|
var ResourceEvents = /*#__PURE__*/function (_Component) {
|
|
39
39
|
_inherits(ResourceEvents, _Component);
|
|
40
40
|
var _super = _createSuper(ResourceEvents);
|
|
@@ -61,7 +61,7 @@ function ResourceView(_ref) {
|
|
|
61
61
|
}
|
|
62
62
|
}, item.slotName));
|
|
63
63
|
var slotItem = /*#__PURE__*/_react["default"].createElement("div", {
|
|
64
|
-
title: item.slotTitle,
|
|
64
|
+
title: item.slotTitle || item.slotName,
|
|
65
65
|
className: "overflow-text header2-text",
|
|
66
66
|
style: {
|
|
67
67
|
textAlign: 'left'
|
|
@@ -20,8 +20,8 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
20
20
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
21
|
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, _toPropertyKey(descriptor.key), descriptor); } }
|
|
22
22
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
23
|
-
function _toPropertyKey(
|
|
24
|
-
function _toPrimitive(
|
|
23
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
24
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
25
25
|
var SchedulerData = exports["default"] = /*#__PURE__*/function () {
|
|
26
26
|
function SchedulerData() {
|
|
27
27
|
var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (0, _dayjs["default"])();
|
|
@@ -910,6 +910,7 @@ var SchedulerData = exports["default"] = /*#__PURE__*/function () {
|
|
|
910
910
|
var slotRenderData = {
|
|
911
911
|
slotId: slot.id,
|
|
912
912
|
slotName: slot.name,
|
|
913
|
+
slotTitle: slot.title,
|
|
913
914
|
parentId: slot.parentId,
|
|
914
915
|
groupOnly: slot.groupOnly,
|
|
915
916
|
hasSummary: false,
|
|
@@ -12,8 +12,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
12
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
13
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
14
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
|
-
function _toPropertyKey(
|
|
16
|
-
function _toPrimitive(
|
|
15
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
16
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
17
17
|
function Summary(_ref) {
|
|
18
18
|
var schedulerData = _ref.schedulerData,
|
|
19
19
|
summary = _ref.summary,
|
package/dist/components/index.js
CHANGED
|
@@ -110,8 +110,8 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
110
110
|
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; } }
|
|
111
111
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
112
112
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
113
|
-
function _toPropertyKey(
|
|
114
|
-
function _toPrimitive(
|
|
113
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
114
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } // Col, Row and Icon do not have their own less files for styling. They use
|
|
115
115
|
// rules declared in antd's global css. If these styles are imported directly
|
|
116
116
|
// from within antd, they'll include, for instance, reset rules. These will
|
|
117
117
|
// affect everything on the page and in essence would leak antd's global styles
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-big-schedule",
|
|
3
|
-
"version": "4.3.3
|
|
3
|
+
"version": "4.3.3",
|
|
4
4
|
"description": "React Big Schedule is a powerful and intuitive scheduler and resource planning solution built with React. Seamlessly integrate this modern browser-compatible component into your applications to effectively manage time, appointments, and resources. With drag-and-drop functionality, interactive UI, and granular views, react-big-schedule empowers users to effortlessly schedule and allocate resources with precision. Enhance productivity and streamline your workflow with this React-based solution, designed to optimize time management and simplify calendar-based operations. Perfect for applications requiring advanced scheduling capabilities, react-big-schedule offers a seamless and intuitive experience for managing appointments, resource allocation, and time slots. Unlock the potential of your React projects with react-big-schedule and revolutionize the way you handle scheduling and resource planning. It is the updated version of react-big-scheduler",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-big-schedule",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@ant-design/icons": "^5.2.6",
|
|
63
|
-
"antd": "^5.
|
|
63
|
+
"antd": "^5.12.2",
|
|
64
64
|
"dayjs": "^1.11.10",
|
|
65
65
|
"prop-types": "^15.8.1",
|
|
66
66
|
"react": "^18.2.0",
|
|
@@ -71,22 +71,22 @@
|
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@babel/cli": "^7.23.4",
|
|
74
|
-
"@babel/core": "^7.23.
|
|
74
|
+
"@babel/core": "^7.23.6",
|
|
75
75
|
"@babel/eslint-parser": "^7.23.3",
|
|
76
|
-
"@babel/preset-env": "^7.23.
|
|
76
|
+
"@babel/preset-env": "^7.23.6",
|
|
77
77
|
"@babel/preset-react": "^7.23.3",
|
|
78
78
|
"babel-loader": "^9.1.3",
|
|
79
79
|
"copy-webpack-plugin": "^11.0.0",
|
|
80
80
|
"css-loader": "^6.8.1",
|
|
81
|
-
"eslint": "^8.
|
|
81
|
+
"eslint": "^8.56.0",
|
|
82
82
|
"eslint-config-airbnb": "^19.0.4",
|
|
83
|
-
"eslint-plugin-import": "^2.29.
|
|
83
|
+
"eslint-plugin-import": "^2.29.1",
|
|
84
84
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
85
85
|
"eslint-plugin-react": "^7.33.2",
|
|
86
86
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
87
87
|
"eslint-webpack-plugin": "^4.0.1",
|
|
88
|
-
"fs-extra": "^11.
|
|
89
|
-
"html-webpack-plugin": "^5.5.
|
|
88
|
+
"fs-extra": "^11.2.0",
|
|
89
|
+
"html-webpack-plugin": "^5.5.4",
|
|
90
90
|
"style-loader": "^3.3.3",
|
|
91
91
|
"webpack": "^5.89.0",
|
|
92
92
|
"webpack-cli": "^5.1.4",
|