@trops/dash-core 0.1.148 → 0.1.150

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/index.esm.js CHANGED
@@ -2325,6 +2325,13 @@ var AppWrapper = function AppWrapper(_ref) {
2325
2325
  saveSettings(s);
2326
2326
  return s;
2327
2327
  });
2328
+ if (to) {
2329
+ var _window$mainApi;
2330
+ (_window$mainApi = window.mainApi) === null || _window$mainApi === void 0 || (_window$mainApi = _window$mainApi.debug) === null || _window$mainApi === void 0 || _window$mainApi.open();
2331
+ } else {
2332
+ var _window$mainApi2;
2333
+ (_window$mainApi2 = window.mainApi) === null || _window$mainApi2 === void 0 || (_window$mainApi2 = _window$mainApi2.debug) === null || _window$mainApi2 === void 0 || _window$mainApi2.close();
2334
+ }
2328
2335
  }, [dashApi, credentials]);
2329
2336
  var changeApplicationTheme = useCallback(function (themeKey) {
2330
2337
  try {
@@ -10426,13 +10433,13 @@ var DAYS = [{
10426
10433
  }];
10427
10434
  var INTERVAL_UNITS = [{
10428
10435
  value: "seconds",
10429
- displayName: "Seconds"
10436
+ label: "Seconds"
10430
10437
  }, {
10431
10438
  value: "minutes",
10432
- displayName: "Minutes"
10439
+ label: "Minutes"
10433
10440
  }, {
10434
10441
  value: "hours",
10435
- displayName: "Hours"
10442
+ label: "Hours"
10436
10443
  }];
10437
10444
  function intervalToMs(value, unit) {
10438
10445
  var num = parseInt(value, 10);
@@ -10647,8 +10654,8 @@ function TaskScheduleEditor(_ref) {
10647
10654
  label: "Every",
10648
10655
  type: "number",
10649
10656
  value: String(intervalValue),
10650
- onChange: function onChange(e) {
10651
- return handleIntervalChange(e.target.value, intervalUnit);
10657
+ onChange: function onChange(val) {
10658
+ return handleIntervalChange(val, intervalUnit);
10652
10659
  },
10653
10660
  className: "w-24",
10654
10661
  min: "1"
@@ -10690,8 +10697,8 @@ function TaskScheduleEditor(_ref) {
10690
10697
  label: "Time",
10691
10698
  type: "time",
10692
10699
  value: time,
10693
- onChange: function onChange(e) {
10694
- return handleTimeChange(e.target.value);
10700
+ onChange: function onChange(val) {
10701
+ return handleTimeChange(val);
10695
10702
  },
10696
10703
  className: "w-36"
10697
10704
  })]
@@ -26014,6 +26021,7 @@ var ComponentManager = {
26014
26021
  eventHandlers: "eventHandlers" in c ? c["eventHandlers"] : [],
26015
26022
  providers: "providers" in c ? c["providers"] : [],
26016
26023
  notifications: "notifications" in c ? c["notifications"] : [],
26024
+ scheduledTasks: "scheduledTasks" in c ? c["scheduledTasks"] : [],
26017
26025
  icon: "icon" in c ? c["icon"] : null
26018
26026
  };
26019
26027
  }