@dexteel/mesf-core 4.26.0 → 4.26.2

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.
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "4.26.0"
2
+ ".": "4.26.2"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ # Changelog
2
+
3
+ ## [4.26.2](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.26.1...@dexteel/mesf-core-v4.26.2) (2025-03-13)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **TreePickerControlV2:** add ? operator in findNameById function ([4d5baa5](https://github.com/dexteel/mesf-core-frontend/commit/4d5baa5f5822228c579563d926974cc07c5ca54b))
9
+ * **TreePickerControlV2:** add ? operator in findNameById function ([dafa520](https://github.com/dexteel/mesf-core-frontend/commit/dafa520fefbb498bb3f4f2d9761f9df22652afc6))
10
+
11
+ ## [4.26.1] - 2025-03-06
12
+
13
+
14
+
15
+ # Changelog
16
+
17
+ ## [4.26.1](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.26.0...@dexteel/mesf-core-v4.26.1) (2025-03-06)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **Shift Period Navigator:** Use cssGrid instead of Flexbox to improve responsiveness ([f90e120](https://github.com/dexteel/mesf-core-frontend/commit/f90e120c140e15209c976963ae62aa56636fa789))
23
+ * **Shift Period Navigator:** Use cssGrid instead of Flexbox to improve responsiveness ([b645194](https://github.com/dexteel/mesf-core-frontend/commit/b6451942fddeb3f25d4dc01bf48224a3c6ee5c22))
24
+
25
+ ## [4.26.0] - 2025-03-05
26
+
27
+
28
+
1
29
  # Changelog
2
30
 
3
31
  ## [4.26.0](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.25.2...@dexteel/mesf-core-v4.26.0) (2025-03-05)
package/dist/index.esm.js CHANGED
@@ -688,10 +688,10 @@ var useStyles$A = makeStyles(function (theme) { return ({
688
688
  }
689
689
  }); });
690
690
  function findNameById(node, id) {
691
- if (node.id === id) {
691
+ if ((node === null || node === void 0 ? void 0 : node.id) === id) {
692
692
  return node.name;
693
693
  }
694
- if (node.children) {
694
+ if (node === null || node === void 0 ? void 0 : node.children) {
695
695
  for (var _i = 0, _a = node.children; _i < _a.length; _i++) {
696
696
  var child = _a[_i];
697
697
  var result = findNameById(child, id);
@@ -8337,43 +8337,42 @@ var getShiftsRangeByParameters = function (period, Start, End, StartShiftId, End
8337
8337
  });
8338
8338
  };
8339
8339
 
8340
- var useStyles$7 = makeStyles(function (theme) {
8341
- var _a, _b, _c;
8342
- return ({
8343
- container: {
8344
- display: "flex",
8345
- alignItems: "center",
8346
- width: "100%",
8347
- margin: 0,
8348
- padding: "8px 0",
8349
- gap: "8px",
8350
- flexWrap: "wrap"
8340
+ var useStyles$7 = makeStyles(function (theme) { return ({
8341
+ container: {
8342
+ display: "grid",
8343
+ gridTemplateColumns: "auto minmax(100px, 1fr) 80px minmax(100px, 1fr) auto auto",
8344
+ alignItems: "center",
8345
+ width: "100%",
8346
+ margin: 0,
8347
+ padding: "8px 0",
8348
+ gap: "8px"
8349
+ },
8350
+ gridItem: {
8351
+ display: "flex",
8352
+ alignItems: "center"
8353
+ },
8354
+ datePickerWrapper: {
8355
+ minWidth: "100px",
8356
+ fontSize: ".8rem!important",
8357
+ margin: "0!important",
8358
+ "& .MuiInputAdornment-root": {
8359
+ margin: "0!important"
8351
8360
  },
8352
- gridItem: (_a = {
8353
- display: "flex",
8354
- alignItems: "center"
8355
- },
8356
- _a[theme.breakpoints.down("sm")] = {
8357
- width: "100%"
8358
- },
8359
- _a),
8360
- datePickerWrapper: (_b = {
8361
- flex: 1,
8362
- minWidth: "150px"
8363
- },
8364
- _b[theme.breakpoints.down("sm")] = {
8365
- minWidth: "100%"
8366
- },
8367
- _b),
8368
- selectWrapper: (_c = {
8369
- width: "120px"
8370
- },
8371
- _c[theme.breakpoints.down("sm")] = {
8372
- width: "100%"
8373
- },
8374
- _c)
8375
- });
8376
- });
8361
+ "& .MuiInputBase-input": {
8362
+ fontSize: "1rem!important",
8363
+ padding: "4px 8px !important"
8364
+ }
8365
+ },
8366
+ selectWrapper: {
8367
+ width: "80px",
8368
+ "& .MuiInputBase-input": {
8369
+ fontSize: "0.8rem !important",
8370
+ padding: "4px 8px !important",
8371
+ display: "inline-flex",
8372
+ alignItems: "center"
8373
+ }
8374
+ }
8375
+ }); });
8377
8376
  var DEFAULT_PERIOD_OPTIONS = [
8378
8377
  { value: "Shift", label: "Shift" },
8379
8378
  { value: "Day", label: "Day" },
@@ -8561,7 +8560,7 @@ var ShiftPeriodNavigatorControl = function (_a) {
8561
8560
  React__default.createElement(DatePicker$1, { label: "Start", format: dateFormat, value: moment((startShift === null || startShift === void 0 ? void 0 : startShift.Start) || moment().subtract(1, "day")), onChange: function (value) {
8562
8561
  return handleDateChange(value ? moment(value) : null, "start");
8563
8562
  }, disabled: loadingShiftPeriodList, slots: {
8564
- textField: function (props) { return (React__default.createElement(TextField, __assign({}, props, { size: "small", variant: "outlined", fullWidth: true, style: { width: "100%" }, InputProps: __assign(__assign({}, props.InputProps), { style: { height: "50px", paddingTop: "2px" } }) }))); },
8563
+ textField: function (props) { return (React__default.createElement(TextField, __assign({}, props, { size: "small", variant: "outlined", fullWidth: true, style: { width: "100%" }, InputProps: __assign(__assign({}, props.InputProps), { style: { paddingTop: "2px" } }) }))); },
8565
8564
  openPickerIcon: function () { return (React__default.createElement("div", { style: {
8566
8565
  display: "flex",
8567
8566
  alignItems: "center",
@@ -8573,23 +8572,23 @@ var ShiftPeriodNavigatorControl = function (_a) {
8573
8572
  } })),
8574
8573
  React__default.createElement("div", { className: "".concat(classes.gridItem, " ").concat(classes.selectWrapper) },
8575
8574
  React__default.createElement(FormControl, { variant: "outlined", size: "small", fullWidth: true },
8576
- React__default.createElement(Select, { value: period, onChange: handleChangeScope, disabled: loadingShiftPeriodList, style: {
8577
- height: "50px",
8578
- width: "100%",
8579
- paddingBottom: 0
8575
+ React__default.createElement(InputLabel, { id: "period-select-label" }, "Period"),
8576
+ React__default.createElement(Select, { value: period, onChange: handleChangeScope, disabled: loadingShiftPeriodList, label: "Period", labelId: "period-select-label", style: {
8577
+ width: "100%"
8580
8578
  } }, periodOptions.map(function (option) { return (React__default.createElement(MenuItem, { key: option.value, value: option.value }, option.label)); })))),
8581
8579
  React__default.createElement("div", { className: "".concat(classes.gridItem, " ").concat(classes.datePickerWrapper) },
8582
8580
  React__default.createElement(DatePicker$1, { label: "End", format: dateFormat, value: moment((endShift === null || endShift === void 0 ? void 0 : endShift.Start) || moment().subtract(1, "day")), onChange: function (value) {
8583
8581
  return handleDateChange(value ? moment(value) : null, "end");
8584
8582
  }, disabled: loadingShiftPeriodList, slots: {
8585
- textField: function (props) { return (React__default.createElement(TextField, __assign({}, props, { size: "small", variant: "outlined", fullWidth: true, style: { width: "100%" }, InputProps: __assign(__assign({}, props.InputProps), { style: { height: "50px", paddingTop: "2px" } }) }))); },
8583
+ textField: function (props) { return (React__default.createElement(TextField, __assign({}, props, { size: "small", variant: "outlined", fullWidth: true, style: { width: "100%" }, InputProps: __assign(__assign({}, props.InputProps), { style: { paddingTop: "2px" } }) }))); },
8586
8584
  openPickerIcon: function () { return (React__default.createElement("div", { style: {
8587
8585
  display: "flex",
8588
8586
  alignItems: "center",
8587
+ margin: "0 !important",
8589
8588
  width: "100%"
8590
8589
  } },
8591
8590
  renderShiftCrewInfo(endShift),
8592
- React__default.createElement(IconButton$1, { style: { padding: "4px", flexShrink: 0 } },
8591
+ React__default.createElement(IconButton$1, { style: { padding: "0px", flexShrink: 0 } },
8593
8592
  React__default.createElement(CalendarIcon, null)))); }
8594
8593
  } })),
8595
8594
  React__default.createElement("div", { className: classes.gridItem },