@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 +15 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +15 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2343,6 +2343,13 @@ var AppWrapper = function AppWrapper(_ref) {
|
|
|
2343
2343
|
saveSettings(s);
|
|
2344
2344
|
return s;
|
|
2345
2345
|
});
|
|
2346
|
+
if (to) {
|
|
2347
|
+
var _window$mainApi;
|
|
2348
|
+
(_window$mainApi = window.mainApi) === null || _window$mainApi === void 0 || (_window$mainApi = _window$mainApi.debug) === null || _window$mainApi === void 0 || _window$mainApi.open();
|
|
2349
|
+
} else {
|
|
2350
|
+
var _window$mainApi2;
|
|
2351
|
+
(_window$mainApi2 = window.mainApi) === null || _window$mainApi2 === void 0 || (_window$mainApi2 = _window$mainApi2.debug) === null || _window$mainApi2 === void 0 || _window$mainApi2.close();
|
|
2352
|
+
}
|
|
2346
2353
|
}, [dashApi, credentials]);
|
|
2347
2354
|
var changeApplicationTheme = React.useCallback(function (themeKey) {
|
|
2348
2355
|
try {
|
|
@@ -10444,13 +10451,13 @@ var DAYS = [{
|
|
|
10444
10451
|
}];
|
|
10445
10452
|
var INTERVAL_UNITS = [{
|
|
10446
10453
|
value: "seconds",
|
|
10447
|
-
|
|
10454
|
+
label: "Seconds"
|
|
10448
10455
|
}, {
|
|
10449
10456
|
value: "minutes",
|
|
10450
|
-
|
|
10457
|
+
label: "Minutes"
|
|
10451
10458
|
}, {
|
|
10452
10459
|
value: "hours",
|
|
10453
|
-
|
|
10460
|
+
label: "Hours"
|
|
10454
10461
|
}];
|
|
10455
10462
|
function intervalToMs(value, unit) {
|
|
10456
10463
|
var num = parseInt(value, 10);
|
|
@@ -10665,8 +10672,8 @@ function TaskScheduleEditor(_ref) {
|
|
|
10665
10672
|
label: "Every",
|
|
10666
10673
|
type: "number",
|
|
10667
10674
|
value: String(intervalValue),
|
|
10668
|
-
onChange: function onChange(
|
|
10669
|
-
return handleIntervalChange(
|
|
10675
|
+
onChange: function onChange(val) {
|
|
10676
|
+
return handleIntervalChange(val, intervalUnit);
|
|
10670
10677
|
},
|
|
10671
10678
|
className: "w-24",
|
|
10672
10679
|
min: "1"
|
|
@@ -10708,8 +10715,8 @@ function TaskScheduleEditor(_ref) {
|
|
|
10708
10715
|
label: "Time",
|
|
10709
10716
|
type: "time",
|
|
10710
10717
|
value: time,
|
|
10711
|
-
onChange: function onChange(
|
|
10712
|
-
return handleTimeChange(
|
|
10718
|
+
onChange: function onChange(val) {
|
|
10719
|
+
return handleTimeChange(val);
|
|
10713
10720
|
},
|
|
10714
10721
|
className: "w-36"
|
|
10715
10722
|
})]
|
|
@@ -26032,6 +26039,7 @@ var ComponentManager = {
|
|
|
26032
26039
|
eventHandlers: "eventHandlers" in c ? c["eventHandlers"] : [],
|
|
26033
26040
|
providers: "providers" in c ? c["providers"] : [],
|
|
26034
26041
|
notifications: "notifications" in c ? c["notifications"] : [],
|
|
26042
|
+
scheduledTasks: "scheduledTasks" in c ? c["scheduledTasks"] : [],
|
|
26035
26043
|
icon: "icon" in c ? c["icon"] : null
|
|
26036
26044
|
};
|
|
26037
26045
|
}
|