@banyan_cloud/roots 2.0.39 → 2.0.40

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/esm/index.js CHANGED
@@ -3659,37 +3659,41 @@ var doubleDigitted = function doubleDigitted(number) {
3659
3659
 
3660
3660
  var getJSDateFromEpoch = function getJSDateFromEpoch(epoch) {
3661
3661
  var date = new Date(0);
3662
- date.setUTCSeconds(epoch);
3662
+ date.setSeconds(epoch);
3663
3663
  return date;
3664
3664
  };
3665
3665
  var getDateFromEpoch = function getDateFromEpoch(epoch) {
3666
- var _MONTHS$date$getUTCMo;
3666
+ var _MONTHS$date$getMonth;
3667
3667
  var date = new Date(0);
3668
- date.setUTCSeconds(epoch);
3669
- var paddedDate = date.getUTCDate().toString().padStart(2, '0');
3670
- var month = (_MONTHS$date$getUTCMo = MONTHS[date.getUTCMonth()]) !== null && _MONTHS$date$getUTCMo !== void 0 ? _MONTHS$date$getUTCMo : 'Jan';
3671
- var year = date.getUTCFullYear();
3668
+ date.setSeconds(epoch);
3669
+ var paddedDate = date.getDate().toString().padStart(2, '0');
3670
+ var month = (_MONTHS$date$getMonth = MONTHS[date.getMonth()]) !== null && _MONTHS$date$getMonth !== void 0 ? _MONTHS$date$getMonth : 'Jan';
3671
+ var year = date.getFullYear();
3672
3672
  return "".concat(month, " ").concat(paddedDate, ", ").concat(year.toString());
3673
3673
  };
3674
3674
  var getTimeFromEpoch = function getTimeFromEpoch(epoch) {
3675
3675
  var date = new Date(0);
3676
- date.setUTCSeconds(epoch);
3677
- var hours = doubleDigitted(date.getUTCHours());
3678
- var minutes = doubleDigitted(date.getUTCMinutes());
3679
- var seconds = doubleDigitted(date.getUTCSeconds());
3676
+ date.setSeconds(epoch);
3677
+ var hours = doubleDigitted(date.getHours());
3678
+ var minutes = doubleDigitted(date.getMinutes());
3679
+ var seconds = doubleDigitted(date.getSeconds());
3680
3680
  return "".concat(hours, ":").concat(minutes, ":").concat(seconds);
3681
3681
  };
3682
3682
  var epochToFormattedDate = function epochToFormattedDate(epoch, type) {
3683
- var _MONTHS$date$getUTCMo2;
3683
+ var _MONTHS;
3684
3684
  var format$1 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 12;
3685
+ var universal = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
3685
3686
  var date = new Date(0);
3686
3687
  date.setUTCSeconds(epoch);
3687
3688
  if (type === 'time') {
3688
- var hours = doubleDigitted(date.getUTCHours());
3689
- var minutes = doubleDigitted(date.getUTCMinutes());
3690
- var seconds = doubleDigitted(date.getUTCSeconds());
3691
- var hours12 = (date.getUTCHours() + 11) % 12 + 1;
3689
+ var hours = doubleDigitted(universal ? date.getUTCHours() : date.getHours());
3690
+ var minutes = doubleDigitted(universal ? date.getUTCMinutes() : date.getMinutes());
3691
+ var seconds = doubleDigitted(universal ? date.getUTCSeconds() : date.getSeconds());
3692
+ var hours12 = universal ? (date.getUTCHours() + 11) % 12 + 1 : (date.getHours() + 11) % 12 + 1;
3692
3693
  var meridian = date.getUTCHours() >= 12 ? 'PM' : 'AM';
3694
+ if (universal) {
3695
+ meridian = date.getHours() >= 12 ? 'PM' : 'AM';
3696
+ }
3693
3697
  var timeFormat = {
3694
3698
  24: "".concat(hours, ":").concat(minutes, ":").concat(seconds, " Hrs"),
3695
3699
  12: "".concat(hours12.toString(), ":").concat(minutes, ":").concat(seconds, " ").concat(meridian)
@@ -3699,9 +3703,9 @@ var epochToFormattedDate = function epochToFormattedDate(epoch, type) {
3699
3703
  if (format$1 && typeof format$1 === 'string' && format$1 !== '12' && format$1 !== '24') {
3700
3704
  return format(date, format$1);
3701
3705
  }
3702
- var paddedDate = date.getUTCDate().toString().padStart(2, '0');
3703
- var month = (_MONTHS$date$getUTCMo2 = MONTHS[date.getUTCMonth()]) !== null && _MONTHS$date$getUTCMo2 !== void 0 ? _MONTHS$date$getUTCMo2 : 'Jan';
3704
- var year = date.getUTCFullYear();
3706
+ var paddedDate = universal ? date.getUTCDate().toString().padStart(2, '0') : date.getDate().toString().padStart(2, '0');
3707
+ var month = (_MONTHS = MONTHS[universal ? date.getUTCMonth() : date.getMonth()]) !== null && _MONTHS !== void 0 ? _MONTHS : 'Jan';
3708
+ var year = universal ? date.getUTCFullYear() : date.getFullYear();
3705
3709
  return "".concat(month, " ").concat(paddedDate, ", ").concat(year.toString());
3706
3710
  };
3707
3711
  var getDayInfo = function getDayInfo(date) {
@@ -3735,9 +3739,9 @@ var getDatesInStringFormat = function getDatesInStringFormat(_ref) {
3735
3739
  var startingDate = _ref.startingDate,
3736
3740
  endingDate = _ref.endingDate;
3737
3741
  var format = function format(date) {
3738
- var _MONTHS$date$getMonth;
3742
+ var _MONTHS$date$getMonth2;
3739
3743
  var day = date.getDate();
3740
- var month = (_MONTHS$date$getMonth = MONTHS[date.getMonth()]) !== null && _MONTHS$date$getMonth !== void 0 ? _MONTHS$date$getMonth : 'Jan';
3744
+ var month = (_MONTHS$date$getMonth2 = MONTHS[date.getMonth()]) !== null && _MONTHS$date$getMonth2 !== void 0 ? _MONTHS$date$getMonth2 : 'Jan';
3741
3745
  var year = date.getFullYear();
3742
3746
  return "".concat(day.toString(), " ").concat(month, " ").concat(year.toString());
3743
3747
  };
@@ -21965,8 +21969,8 @@ var TableHeader = function TableHeader(_ref) {
21965
21969
  });
21966
21970
  };
21967
21971
 
21968
- var css$8 = ".General_module_root__0d606c73 {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n margin: auto;\n}";
21969
- var modules_4c78d049 = {"root":"General_module_root__0d606c73"};
21972
+ var css$8 = ".General_module_root__8491b5f0 {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n margin: auto;\n position: relative;\n}";
21973
+ var modules_4c78d049 = {"root":"General_module_root__8491b5f0"};
21970
21974
  n(css$8,{});
21971
21975
 
21972
21976
  var General = function General(_ref) {
@@ -22348,7 +22352,9 @@ var Table = function Table(_ref) {
22348
22352
  setHiddenColumns = _useState4[1];
22349
22353
  var _useState5 = useState({
22350
22354
  open: false,
22351
- data: {}
22355
+ data: {
22356
+ datum: {}
22357
+ }
22352
22358
  }),
22353
22359
  _useState6 = _slicedToArray(_useState5, 2),
22354
22360
  toggleTableDrawer = _useState6[0],