@trops/dash-core 0.1.446 → 0.1.447
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/electron/index.js +108 -0
- package/dist/electron/index.js.map +1 -1
- package/dist/index.esm.js +137 -84
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +137 -84
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3057,9 +3057,9 @@ var LayoutContainer = function LayoutContainer(_ref) {
|
|
|
3057
3057
|
|
|
3058
3058
|
function ownKeys$W(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; }
|
|
3059
3059
|
function _objectSpread$W(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$W(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$W(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3060
|
-
function _createForOfIteratorHelper$
|
|
3061
|
-
function _unsupportedIterableToArray$
|
|
3062
|
-
function _arrayLikeToArray$
|
|
3060
|
+
function _createForOfIteratorHelper$y(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$y(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
3061
|
+
function _unsupportedIterableToArray$y(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$y(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$y(r, a) : void 0; } }
|
|
3062
|
+
function _arrayLikeToArray$y(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
3063
3063
|
/**
|
|
3064
3064
|
* Layout template definitions for the dashboard template picker.
|
|
3065
3065
|
*
|
|
@@ -3333,7 +3333,7 @@ function createLayoutFromTemplate(template) {
|
|
|
3333
3333
|
cols: template.cols,
|
|
3334
3334
|
gap: "gap-2"
|
|
3335
3335
|
};
|
|
3336
|
-
var _iterator = _createForOfIteratorHelper$
|
|
3336
|
+
var _iterator = _createForOfIteratorHelper$y(template.cells),
|
|
3337
3337
|
_step;
|
|
3338
3338
|
try {
|
|
3339
3339
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -4514,9 +4514,9 @@ var DashboardInstallOptionsModal = function DashboardInstallOptionsModal(_ref) {
|
|
|
4514
4514
|
});
|
|
4515
4515
|
};
|
|
4516
4516
|
|
|
4517
|
-
function _createForOfIteratorHelper$
|
|
4518
|
-
function _unsupportedIterableToArray$
|
|
4519
|
-
function _arrayLikeToArray$
|
|
4517
|
+
function _createForOfIteratorHelper$x(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$x(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
4518
|
+
function _unsupportedIterableToArray$x(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$x(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$x(r, a) : void 0; } }
|
|
4519
|
+
function _arrayLikeToArray$x(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
4520
4520
|
function ownKeys$V(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; }
|
|
4521
4521
|
function _objectSpread$V(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$V(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$V(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4522
4522
|
var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
@@ -4874,7 +4874,7 @@ var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
|
4874
4874
|
toInstall = 0,
|
|
4875
4875
|
unavailable = 0,
|
|
4876
4876
|
hasUnavailableRequired = false;
|
|
4877
|
-
var _iterator = _createForOfIteratorHelper$
|
|
4877
|
+
var _iterator = _createForOfIteratorHelper$x(widgetDeps),
|
|
4878
4878
|
_step;
|
|
4879
4879
|
try {
|
|
4880
4880
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -6519,9 +6519,9 @@ function cleanIpcError(message) {
|
|
|
6519
6519
|
return match ? match[1] : message;
|
|
6520
6520
|
}
|
|
6521
6521
|
|
|
6522
|
-
function _createForOfIteratorHelper$
|
|
6523
|
-
function _unsupportedIterableToArray$
|
|
6524
|
-
function _arrayLikeToArray$
|
|
6522
|
+
function _createForOfIteratorHelper$w(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$w(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
6523
|
+
function _unsupportedIterableToArray$w(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$w(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$w(r, a) : void 0; } }
|
|
6524
|
+
function _arrayLikeToArray$w(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
6525
6525
|
|
|
6526
6526
|
/**
|
|
6527
6527
|
* useRegistrySearch — shared hook for browsing and installing registry packages.
|
|
@@ -6635,13 +6635,13 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
6635
6635
|
return c.toLowerCase();
|
|
6636
6636
|
}));
|
|
6637
6637
|
widgets = [];
|
|
6638
|
-
_iterator = _createForOfIteratorHelper$
|
|
6638
|
+
_iterator = _createForOfIteratorHelper$w(pkgs);
|
|
6639
6639
|
try {
|
|
6640
6640
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6641
6641
|
pkg = _step.value;
|
|
6642
6642
|
// Compute missing APIs for the entire package
|
|
6643
6643
|
allApiProviders = [];
|
|
6644
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
6644
|
+
_iterator2 = _createForOfIteratorHelper$w(pkg.providers || []);
|
|
6645
6645
|
try {
|
|
6646
6646
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
6647
6647
|
p = _step2.value;
|
|
@@ -6654,11 +6654,11 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
6654
6654
|
} finally {
|
|
6655
6655
|
_iterator2.f();
|
|
6656
6656
|
}
|
|
6657
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
6657
|
+
_iterator3 = _createForOfIteratorHelper$w(pkg.widgets || []);
|
|
6658
6658
|
try {
|
|
6659
6659
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
6660
6660
|
w = _step3.value;
|
|
6661
|
-
_iterator5 = _createForOfIteratorHelper$
|
|
6661
|
+
_iterator5 = _createForOfIteratorHelper$w(w.providers || []);
|
|
6662
6662
|
try {
|
|
6663
6663
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
6664
6664
|
_p = _step5.value;
|
|
@@ -6680,7 +6680,7 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
6680
6680
|
missingApis = _toConsumableArray(new Set(allApiProviders)).filter(function (api) {
|
|
6681
6681
|
return !capSet.has(api.toLowerCase());
|
|
6682
6682
|
});
|
|
6683
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
6683
|
+
_iterator4 = _createForOfIteratorHelper$w(pkg.widgets || []);
|
|
6684
6684
|
try {
|
|
6685
6685
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
6686
6686
|
widget = _step4.value;
|
|
@@ -7301,9 +7301,9 @@ function applyFilters(items, filters, mode) {
|
|
|
7301
7301
|
});
|
|
7302
7302
|
}
|
|
7303
7303
|
|
|
7304
|
-
function _createForOfIteratorHelper$
|
|
7305
|
-
function _unsupportedIterableToArray$
|
|
7306
|
-
function _arrayLikeToArray$
|
|
7304
|
+
function _createForOfIteratorHelper$v(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$v(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
7305
|
+
function _unsupportedIterableToArray$v(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$v(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$v(r, a) : void 0; } }
|
|
7306
|
+
function _arrayLikeToArray$v(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
7307
7307
|
var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
7308
7308
|
var _state$selectedDashbo, _state$selectedDashbo2;
|
|
7309
7309
|
var state = _ref.state,
|
|
@@ -7521,7 +7521,7 @@ var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
|
7521
7521
|
installedNames = new Set(installedList.map(function (w) {
|
|
7522
7522
|
return w.name;
|
|
7523
7523
|
}));
|
|
7524
|
-
_iterator = _createForOfIteratorHelper$
|
|
7524
|
+
_iterator = _createForOfIteratorHelper$v(state.selectedWidgets);
|
|
7525
7525
|
_context2.prev = 12;
|
|
7526
7526
|
_iterator.s();
|
|
7527
7527
|
case 13:
|
|
@@ -13215,9 +13215,9 @@ var PanelEditItem = function PanelEditItem(_ref) {
|
|
|
13215
13215
|
};
|
|
13216
13216
|
|
|
13217
13217
|
var _excluded$6 = ["rows", "cols"];
|
|
13218
|
-
function _createForOfIteratorHelper$
|
|
13219
|
-
function _unsupportedIterableToArray$
|
|
13220
|
-
function _arrayLikeToArray$
|
|
13218
|
+
function _createForOfIteratorHelper$u(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$u(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
13219
|
+
function _unsupportedIterableToArray$u(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$u(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$u(r, a) : void 0; } }
|
|
13220
|
+
function _arrayLikeToArray$u(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13221
13221
|
function ownKeys$T(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; }
|
|
13222
13222
|
function _objectSpread$T(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$T(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$T(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13223
13223
|
var defaultGrid = {
|
|
@@ -13370,7 +13370,7 @@ function GridEditor(_ref) {
|
|
|
13370
13370
|
function sortObjectByKeys(obj) {
|
|
13371
13371
|
var sortedKeys = Object.keys(obj).sort();
|
|
13372
13372
|
var sortedObj = {};
|
|
13373
|
-
var _iterator = _createForOfIteratorHelper$
|
|
13373
|
+
var _iterator = _createForOfIteratorHelper$u(sortedKeys),
|
|
13374
13374
|
_step;
|
|
13375
13375
|
try {
|
|
13376
13376
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -13843,9 +13843,9 @@ var PanelEditItemNotifications = function PanelEditItemNotifications(_ref) {
|
|
|
13843
13843
|
});
|
|
13844
13844
|
};
|
|
13845
13845
|
|
|
13846
|
-
function _createForOfIteratorHelper$
|
|
13847
|
-
function _unsupportedIterableToArray$
|
|
13848
|
-
function _arrayLikeToArray$
|
|
13846
|
+
function _createForOfIteratorHelper$t(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$t(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
13847
|
+
function _unsupportedIterableToArray$t(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$t(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$t(r, a) : void 0; } }
|
|
13848
|
+
function _arrayLikeToArray$t(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13849
13849
|
function ownKeys$R(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; }
|
|
13850
13850
|
function _objectSpread$R(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$R(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$R(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13851
13851
|
var DAYS = [{
|
|
@@ -14174,7 +14174,7 @@ var PanelEditItemSchedule = function PanelEditItemSchedule(_ref2) {
|
|
|
14174
14174
|
setIsLoading(true);
|
|
14175
14175
|
window.mainApi.scheduler.getTasks(widgetUuid).then(function (tasks) {
|
|
14176
14176
|
var stateMap = {};
|
|
14177
|
-
var _iterator = _createForOfIteratorHelper$
|
|
14177
|
+
var _iterator = _createForOfIteratorHelper$t(tasks || []),
|
|
14178
14178
|
_step;
|
|
14179
14179
|
try {
|
|
14180
14180
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -14433,9 +14433,9 @@ function isUserWidget(item) {
|
|
|
14433
14433
|
return true;
|
|
14434
14434
|
}
|
|
14435
14435
|
|
|
14436
|
-
function _createForOfIteratorHelper$
|
|
14437
|
-
function _unsupportedIterableToArray$
|
|
14438
|
-
function _arrayLikeToArray$
|
|
14436
|
+
function _createForOfIteratorHelper$s(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$s(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
14437
|
+
function _unsupportedIterableToArray$s(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$s(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$s(r, a) : void 0; } }
|
|
14438
|
+
function _arrayLikeToArray$s(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14439
14439
|
|
|
14440
14440
|
/**
|
|
14441
14441
|
* Resolve which provider name a given widget instance would bind to for
|
|
@@ -14467,7 +14467,7 @@ function resolveProviderName(_ref) {
|
|
|
14467
14467
|
// array. Support both because different callers shape it either way.
|
|
14468
14468
|
if (appProviders) {
|
|
14469
14469
|
if (Array.isArray(appProviders)) {
|
|
14470
|
-
var _iterator = _createForOfIteratorHelper$
|
|
14470
|
+
var _iterator = _createForOfIteratorHelper$s(appProviders),
|
|
14471
14471
|
_step;
|
|
14472
14472
|
try {
|
|
14473
14473
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -14527,7 +14527,7 @@ function forEachWidget(workspace, visit) {
|
|
|
14527
14527
|
};
|
|
14528
14528
|
var _walk = function walk(items) {
|
|
14529
14529
|
if (!Array.isArray(items)) return;
|
|
14530
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
14530
|
+
var _iterator2 = _createForOfIteratorHelper$s(items),
|
|
14531
14531
|
_step2;
|
|
14532
14532
|
try {
|
|
14533
14533
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -14557,7 +14557,7 @@ function forEachWidget(workspace, visit) {
|
|
|
14557
14557
|
};
|
|
14558
14558
|
_walk(workspace.layout);
|
|
14559
14559
|
if (Array.isArray(workspace.pages)) {
|
|
14560
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
14560
|
+
var _iterator3 = _createForOfIteratorHelper$s(workspace.pages),
|
|
14561
14561
|
_step3;
|
|
14562
14562
|
try {
|
|
14563
14563
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -14601,12 +14601,20 @@ function getUnresolvedProviders(_ref2) {
|
|
|
14601
14601
|
var requirements = getWidgetRequirements(item.component) || [];
|
|
14602
14602
|
if (!Array.isArray(requirements) || requirements.length === 0) return;
|
|
14603
14603
|
var widgetId = item.uuidString || item.uuid || item.id || null;
|
|
14604
|
-
|
|
14604
|
+
|
|
14605
|
+
// Dedup requirements by provider type within a widget. AI-built
|
|
14606
|
+
// widget configs sometimes ship a `providers: [...]` array with
|
|
14607
|
+
// the same `type` listed twice (a Claude code-gen quirk), which
|
|
14608
|
+
// would otherwise produce duplicate rows in the Providers tab.
|
|
14609
|
+
var seenTypes = new Set();
|
|
14610
|
+
var _iterator4 = _createForOfIteratorHelper$s(requirements),
|
|
14605
14611
|
_step4;
|
|
14606
14612
|
try {
|
|
14607
14613
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
14608
14614
|
var req = _step4.value;
|
|
14609
14615
|
if (!req || !req.type) continue;
|
|
14616
|
+
if (seenTypes.has(req.type)) continue;
|
|
14617
|
+
seenTypes.add(req.type);
|
|
14610
14618
|
if (req.required === false) continue; // optional, skip
|
|
14611
14619
|
|
|
14612
14620
|
var name = resolveProviderName({
|
|
@@ -14642,7 +14650,7 @@ function getUnresolvedProviders(_ref2) {
|
|
|
14642
14650
|
*/
|
|
14643
14651
|
function groupByProviderType(unresolved) {
|
|
14644
14652
|
var byType = new Map();
|
|
14645
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
14653
|
+
var _iterator5 = _createForOfIteratorHelper$s(unresolved || []),
|
|
14646
14654
|
_step5;
|
|
14647
14655
|
try {
|
|
14648
14656
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -14678,12 +14686,20 @@ function getAllProviderBindings(_ref3) {
|
|
|
14678
14686
|
var requirements = getWidgetRequirements(item.component) || [];
|
|
14679
14687
|
if (!Array.isArray(requirements) || requirements.length === 0) return;
|
|
14680
14688
|
var widgetId = item.uuidString || item.uuid || item.id || null;
|
|
14681
|
-
|
|
14689
|
+
|
|
14690
|
+
// Dedup requirements by provider type within a widget — AI-built
|
|
14691
|
+
// configs sometimes list the same `type` twice (a Claude code-gen
|
|
14692
|
+
// quirk) which would otherwise duplicate the per-widget row in
|
|
14693
|
+
// the Providers tab.
|
|
14694
|
+
var seenTypes = new Set();
|
|
14695
|
+
var _iterator6 = _createForOfIteratorHelper$s(requirements),
|
|
14682
14696
|
_step6;
|
|
14683
14697
|
try {
|
|
14684
14698
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
14685
14699
|
var req = _step6.value;
|
|
14686
14700
|
if (!req || !req.type) continue;
|
|
14701
|
+
if (seenTypes.has(req.type)) continue;
|
|
14702
|
+
seenTypes.add(req.type);
|
|
14687
14703
|
var name = resolveProviderName({
|
|
14688
14704
|
providerType: req.type,
|
|
14689
14705
|
layoutItem: item,
|
|
@@ -14718,9 +14734,9 @@ function getAllProviderBindings(_ref3) {
|
|
|
14718
14734
|
|
|
14719
14735
|
function ownKeys$P(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; }
|
|
14720
14736
|
function _objectSpread$P(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$P(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$P(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14721
|
-
function _createForOfIteratorHelper$
|
|
14722
|
-
function _unsupportedIterableToArray$
|
|
14723
|
-
function _arrayLikeToArray$
|
|
14737
|
+
function _createForOfIteratorHelper$r(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$r(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
14738
|
+
function _unsupportedIterableToArray$r(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$r(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$r(r, a) : void 0; } }
|
|
14739
|
+
function _arrayLikeToArray$r(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14724
14740
|
var EVENT_STRING_RE = /^([^[]+)\[([^\]]+)\]\.(.+)$/;
|
|
14725
14741
|
|
|
14726
14742
|
/** Parse "Component[itemId].event" → { component, itemId, event }. */
|
|
@@ -14890,7 +14906,7 @@ function getCurrentWiring(workspace) {
|
|
|
14890
14906
|
// Live format is array; defensive guard for legacy object
|
|
14891
14907
|
// form (a single source widget keyed under the handler).
|
|
14892
14908
|
var events = Array.isArray(eventList) ? eventList : typeof eventList === "string" ? [eventList] : [];
|
|
14893
|
-
var _iterator = _createForOfIteratorHelper$
|
|
14909
|
+
var _iterator = _createForOfIteratorHelper$r(events),
|
|
14894
14910
|
_step;
|
|
14895
14911
|
try {
|
|
14896
14912
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -14953,7 +14969,7 @@ function getOrphanedListeners(workspace, getWidgetConfig) {
|
|
|
14953
14969
|
if (!byItemId.has(id)) byItemId.set(id, meta);
|
|
14954
14970
|
});
|
|
14955
14971
|
var orphans = [];
|
|
14956
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
14972
|
+
var _iterator2 = _createForOfIteratorHelper$r(wiring),
|
|
14957
14973
|
_step2;
|
|
14958
14974
|
try {
|
|
14959
14975
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -15019,7 +15035,7 @@ function pruneDeadListenerReferences(workspace) {
|
|
|
15019
15035
|
var liveKeys = new Set();
|
|
15020
15036
|
var _walkForLive = function walkForLive(items) {
|
|
15021
15037
|
if (!Array.isArray(items)) return;
|
|
15022
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
15038
|
+
var _iterator3 = _createForOfIteratorHelper$r(items),
|
|
15023
15039
|
_step3;
|
|
15024
15040
|
try {
|
|
15025
15041
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -15040,7 +15056,7 @@ function pruneDeadListenerReferences(workspace) {
|
|
|
15040
15056
|
};
|
|
15041
15057
|
_walkForLive(workspace.layout);
|
|
15042
15058
|
if (Array.isArray(workspace.pages)) {
|
|
15043
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
15059
|
+
var _iterator4 = _createForOfIteratorHelper$r(workspace.pages),
|
|
15044
15060
|
_step4;
|
|
15045
15061
|
try {
|
|
15046
15062
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -15057,7 +15073,7 @@ function pruneDeadListenerReferences(workspace) {
|
|
|
15057
15073
|
var removed = 0;
|
|
15058
15074
|
var _pruneListeners = function pruneListeners(items) {
|
|
15059
15075
|
if (!Array.isArray(items)) return;
|
|
15060
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
15076
|
+
var _iterator5 = _createForOfIteratorHelper$r(items),
|
|
15061
15077
|
_step5;
|
|
15062
15078
|
try {
|
|
15063
15079
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -15069,7 +15085,7 @@ function pruneDeadListenerReferences(workspace) {
|
|
|
15069
15085
|
var events = item.listeners[handler];
|
|
15070
15086
|
if (!Array.isArray(events)) continue;
|
|
15071
15087
|
var kept = [];
|
|
15072
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
15088
|
+
var _iterator6 = _createForOfIteratorHelper$r(events),
|
|
15073
15089
|
_step6;
|
|
15074
15090
|
try {
|
|
15075
15091
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -15104,7 +15120,7 @@ function pruneDeadListenerReferences(workspace) {
|
|
|
15104
15120
|
};
|
|
15105
15121
|
_pruneListeners(workspace.layout);
|
|
15106
15122
|
if (Array.isArray(workspace.pages)) {
|
|
15107
|
-
var _iterator7 = _createForOfIteratorHelper$
|
|
15123
|
+
var _iterator7 = _createForOfIteratorHelper$r(workspace.pages),
|
|
15108
15124
|
_step7;
|
|
15109
15125
|
try {
|
|
15110
15126
|
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
@@ -15148,7 +15164,7 @@ function applyWiringChanges(workspace, _ref) {
|
|
|
15148
15164
|
});
|
|
15149
15165
|
return byReceiver.get(id);
|
|
15150
15166
|
};
|
|
15151
|
-
var _iterator8 = _createForOfIteratorHelper$
|
|
15167
|
+
var _iterator8 = _createForOfIteratorHelper$r(adds),
|
|
15152
15168
|
_step8;
|
|
15153
15169
|
try {
|
|
15154
15170
|
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
|
|
@@ -15161,7 +15177,7 @@ function applyWiringChanges(workspace, _ref) {
|
|
|
15161
15177
|
} finally {
|
|
15162
15178
|
_iterator8.f();
|
|
15163
15179
|
}
|
|
15164
|
-
var _iterator9 = _createForOfIteratorHelper$
|
|
15180
|
+
var _iterator9 = _createForOfIteratorHelper$r(removes),
|
|
15165
15181
|
_step9;
|
|
15166
15182
|
try {
|
|
15167
15183
|
for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
|
|
@@ -15235,7 +15251,7 @@ function applyToItem(listeners, _ref2) {
|
|
|
15235
15251
|
}
|
|
15236
15252
|
|
|
15237
15253
|
// Removes first so a re-add (rare) lands.
|
|
15238
|
-
var _iterator0 = _createForOfIteratorHelper$
|
|
15254
|
+
var _iterator0 = _createForOfIteratorHelper$r(removes),
|
|
15239
15255
|
_step0;
|
|
15240
15256
|
try {
|
|
15241
15257
|
var _loop = function _loop() {
|
|
@@ -15264,7 +15280,7 @@ function applyToItem(listeners, _ref2) {
|
|
|
15264
15280
|
} finally {
|
|
15265
15281
|
_iterator0.f();
|
|
15266
15282
|
}
|
|
15267
|
-
var _iterator1 = _createForOfIteratorHelper$
|
|
15283
|
+
var _iterator1 = _createForOfIteratorHelper$r(adds),
|
|
15268
15284
|
_step1;
|
|
15269
15285
|
try {
|
|
15270
15286
|
for (_iterator1.s(); !(_step1 = _iterator1.n()).done;) {
|
|
@@ -18211,9 +18227,9 @@ function mcpJsonToFormState(jsonString, nextRowId) {
|
|
|
18211
18227
|
return result;
|
|
18212
18228
|
}
|
|
18213
18229
|
|
|
18214
|
-
function _createForOfIteratorHelper$
|
|
18215
|
-
function _unsupportedIterableToArray$
|
|
18216
|
-
function _arrayLikeToArray$
|
|
18230
|
+
function _createForOfIteratorHelper$q(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$q(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
18231
|
+
function _unsupportedIterableToArray$q(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$q(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$q(r, a) : void 0; } }
|
|
18232
|
+
function _arrayLikeToArray$q(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
18217
18233
|
function ownKeys$L(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; }
|
|
18218
18234
|
function _objectSpread$L(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$L(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$L(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18219
18235
|
var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
@@ -18498,11 +18514,11 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
18498
18514
|
|
|
18499
18515
|
// Flatten all widgets from all packages for the widget list
|
|
18500
18516
|
flatWidgets = [];
|
|
18501
|
-
_iterator = _createForOfIteratorHelper$
|
|
18517
|
+
_iterator = _createForOfIteratorHelper$q(result.packages || []);
|
|
18502
18518
|
try {
|
|
18503
18519
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
18504
18520
|
pkg = _step.value;
|
|
18505
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
18521
|
+
_iterator2 = _createForOfIteratorHelper$q(pkg.widgets || []);
|
|
18506
18522
|
try {
|
|
18507
18523
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
18508
18524
|
widget = _step2.value;
|
|
@@ -20396,9 +20412,9 @@ var useWidgetSchedulerStatus = function useWidgetSchedulerStatus(widgetId) {
|
|
|
20396
20412
|
};
|
|
20397
20413
|
};
|
|
20398
20414
|
|
|
20399
|
-
function _createForOfIteratorHelper$
|
|
20400
|
-
function _unsupportedIterableToArray$
|
|
20401
|
-
function _arrayLikeToArray$
|
|
20415
|
+
function _createForOfIteratorHelper$p(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$p(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
20416
|
+
function _unsupportedIterableToArray$p(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$p(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$p(r, a) : void 0; } }
|
|
20417
|
+
function _arrayLikeToArray$p(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
20402
20418
|
function formatCountdown(ms) {
|
|
20403
20419
|
if (ms == null || ms < 0) return "--";
|
|
20404
20420
|
if (ms < 1000) return "< 1s";
|
|
@@ -20515,7 +20531,7 @@ var WidgetCardStatusBar = function WidgetCardStatusBar(_ref) {
|
|
|
20515
20531
|
|
|
20516
20532
|
// Find soonest countdown among enabled tasks
|
|
20517
20533
|
var soonestMs = null;
|
|
20518
|
-
var _iterator = _createForOfIteratorHelper$
|
|
20534
|
+
var _iterator = _createForOfIteratorHelper$p(enabledTasks),
|
|
20519
20535
|
_step;
|
|
20520
20536
|
try {
|
|
20521
20537
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -25772,9 +25788,9 @@ var ExternalWidget = function ExternalWidget(_ref) {
|
|
|
25772
25788
|
var GRID_CELL_WIDGET_TYPE = "grid-cell-widget";
|
|
25773
25789
|
var SIDEBAR_WIDGET_TYPE = "sidebar-widget";
|
|
25774
25790
|
|
|
25775
|
-
function _createForOfIteratorHelper$
|
|
25776
|
-
function _unsupportedIterableToArray$
|
|
25777
|
-
function _arrayLikeToArray$
|
|
25791
|
+
function _createForOfIteratorHelper$o(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$o(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
25792
|
+
function _unsupportedIterableToArray$o(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$o(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$o(r, a) : void 0; } }
|
|
25793
|
+
function _arrayLikeToArray$o(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
25778
25794
|
function ownKeys$E(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; }
|
|
25779
25795
|
function _objectSpread$E(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$E(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$E(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25780
25796
|
|
|
@@ -26397,7 +26413,7 @@ var LayoutGridContainer = /*#__PURE__*/memo(function (_ref3) {
|
|
|
26397
26413
|
return selectable["delete"](cn);
|
|
26398
26414
|
});
|
|
26399
26415
|
var resolved = new Set();
|
|
26400
|
-
var _iterator = _createForOfIteratorHelper$
|
|
26416
|
+
var _iterator = _createForOfIteratorHelper$o(selectable),
|
|
26401
26417
|
_step;
|
|
26402
26418
|
try {
|
|
26403
26419
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -28806,9 +28822,9 @@ function migrateBareComponentName(componentMap, component) {
|
|
|
28806
28822
|
|
|
28807
28823
|
function ownKeys$C(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; }
|
|
28808
28824
|
function _objectSpread$C(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$C(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$C(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28809
|
-
function _createForOfIteratorHelper$
|
|
28810
|
-
function _unsupportedIterableToArray$
|
|
28811
|
-
function _arrayLikeToArray$
|
|
28825
|
+
function _createForOfIteratorHelper$n(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$n(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
28826
|
+
function _unsupportedIterableToArray$n(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$n(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$n(r, a) : void 0; } }
|
|
28827
|
+
function _arrayLikeToArray$n(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
28812
28828
|
/**
|
|
28813
28829
|
* The model for all layout components used primarily in the renderLayout method
|
|
28814
28830
|
* @param {Object} layoutItem an object containing various attributes of the layout item
|
|
@@ -28820,7 +28836,7 @@ function _arrayLikeToArray$m(r, a) { (null == a || a > r.length) && (a = r.lengt
|
|
|
28820
28836
|
function sortObjectByKeys(obj) {
|
|
28821
28837
|
var sortedKeys = Object.keys(obj).sort();
|
|
28822
28838
|
var sortedObj = {};
|
|
28823
|
-
var _iterator = _createForOfIteratorHelper$
|
|
28839
|
+
var _iterator = _createForOfIteratorHelper$n(sortedKeys),
|
|
28824
28840
|
_step;
|
|
28825
28841
|
try {
|
|
28826
28842
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -29132,9 +29148,9 @@ var SettingsModel = function SettingsModel() {
|
|
|
29132
29148
|
return obj;
|
|
29133
29149
|
};
|
|
29134
29150
|
|
|
29135
|
-
function _createForOfIteratorHelper$
|
|
29136
|
-
function _unsupportedIterableToArray$
|
|
29137
|
-
function _arrayLikeToArray$
|
|
29151
|
+
function _createForOfIteratorHelper$m(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$m(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
29152
|
+
function _unsupportedIterableToArray$m(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$m(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$m(r, a) : void 0; } }
|
|
29153
|
+
function _arrayLikeToArray$m(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
29138
29154
|
|
|
29139
29155
|
/**
|
|
29140
29156
|
* Workspace-level pre-pass that migrates legacy bare component
|
|
@@ -29209,7 +29225,7 @@ function migrateScopedIdsInWorkspace(workspace, componentMap) {
|
|
|
29209
29225
|
};
|
|
29210
29226
|
var _walk = function walk(items) {
|
|
29211
29227
|
if (!Array.isArray(items)) return;
|
|
29212
|
-
var _iterator = _createForOfIteratorHelper$
|
|
29228
|
+
var _iterator = _createForOfIteratorHelper$m(items),
|
|
29213
29229
|
_step;
|
|
29214
29230
|
try {
|
|
29215
29231
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -29231,7 +29247,7 @@ function migrateScopedIdsInWorkspace(workspace, componentMap) {
|
|
|
29231
29247
|
};
|
|
29232
29248
|
_walk(workspace.layout);
|
|
29233
29249
|
if (Array.isArray(workspace.pages)) {
|
|
29234
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
29250
|
+
var _iterator2 = _createForOfIteratorHelper$m(workspace.pages),
|
|
29235
29251
|
_step2;
|
|
29236
29252
|
try {
|
|
29237
29253
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -29248,9 +29264,9 @@ function migrateScopedIdsInWorkspace(workspace, componentMap) {
|
|
|
29248
29264
|
return counts;
|
|
29249
29265
|
}
|
|
29250
29266
|
|
|
29251
|
-
function _createForOfIteratorHelper$
|
|
29252
|
-
function _unsupportedIterableToArray$
|
|
29253
|
-
function _arrayLikeToArray$
|
|
29267
|
+
function _createForOfIteratorHelper$l(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$l(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
29268
|
+
function _unsupportedIterableToArray$l(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$l(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$l(r, a) : void 0; } }
|
|
29269
|
+
function _arrayLikeToArray$l(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
29254
29270
|
/**
|
|
29255
29271
|
* cleanForeignWidgetsFromWorkspace.js
|
|
29256
29272
|
*
|
|
@@ -29291,7 +29307,7 @@ function cleanForeignWidgetsFromWorkspace(workspace) {
|
|
|
29291
29307
|
var _cleanList = function cleanList(items) {
|
|
29292
29308
|
if (!Array.isArray(items)) return items;
|
|
29293
29309
|
var kept = [];
|
|
29294
|
-
var _iterator = _createForOfIteratorHelper$
|
|
29310
|
+
var _iterator = _createForOfIteratorHelper$l(items),
|
|
29295
29311
|
_step;
|
|
29296
29312
|
try {
|
|
29297
29313
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -29328,7 +29344,7 @@ function cleanForeignWidgetsFromWorkspace(workspace) {
|
|
|
29328
29344
|
workspace.sidebarLayout = _cleanList(workspace.sidebarLayout);
|
|
29329
29345
|
}
|
|
29330
29346
|
if (Array.isArray(workspace.pages)) {
|
|
29331
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
29347
|
+
var _iterator2 = _createForOfIteratorHelper$l(workspace.pages),
|
|
29332
29348
|
_step2;
|
|
29333
29349
|
try {
|
|
29334
29350
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -29346,9 +29362,9 @@ function cleanForeignWidgetsFromWorkspace(workspace) {
|
|
|
29346
29362
|
return summary;
|
|
29347
29363
|
}
|
|
29348
29364
|
|
|
29349
|
-
function _createForOfIteratorHelper$
|
|
29350
|
-
function _unsupportedIterableToArray$
|
|
29351
|
-
function _arrayLikeToArray$
|
|
29365
|
+
function _createForOfIteratorHelper$k(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$k(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
29366
|
+
function _unsupportedIterableToArray$k(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$k(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$k(r, a) : void 0; } }
|
|
29367
|
+
function _arrayLikeToArray$k(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
29352
29368
|
/**
|
|
29353
29369
|
* migrateLayoutItemTypes.js
|
|
29354
29370
|
*
|
|
@@ -29410,7 +29426,7 @@ function migrateLayoutItemTypes(workspace) {
|
|
|
29410
29426
|
};
|
|
29411
29427
|
var _walk = function walk(items) {
|
|
29412
29428
|
if (!Array.isArray(items)) return;
|
|
29413
|
-
var _iterator = _createForOfIteratorHelper$
|
|
29429
|
+
var _iterator = _createForOfIteratorHelper$k(items),
|
|
29414
29430
|
_step;
|
|
29415
29431
|
try {
|
|
29416
29432
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -29428,7 +29444,7 @@ function migrateLayoutItemTypes(workspace) {
|
|
|
29428
29444
|
};
|
|
29429
29445
|
_walk(workspace.layout);
|
|
29430
29446
|
if (Array.isArray(workspace.pages)) {
|
|
29431
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
29447
|
+
var _iterator2 = _createForOfIteratorHelper$k(workspace.pages),
|
|
29432
29448
|
_step2;
|
|
29433
29449
|
try {
|
|
29434
29450
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -29809,6 +29825,9 @@ var ThemeModel = function ThemeModel() {
|
|
|
29809
29825
|
}
|
|
29810
29826
|
};
|
|
29811
29827
|
|
|
29828
|
+
function _createForOfIteratorHelper$j(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$j(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
29829
|
+
function _unsupportedIterableToArray$j(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$j(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$j(r, a) : void 0; } }
|
|
29830
|
+
function _arrayLikeToArray$j(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
29812
29831
|
/*
|
|
29813
29832
|
"component": AnalyticsReportsWidget,
|
|
29814
29833
|
"type":"widget",
|
|
@@ -29915,7 +29934,36 @@ var ComponentConfigModel = function ComponentConfigModel() {
|
|
|
29915
29934
|
obj.description = "description" in obj ? obj["description"] : null;
|
|
29916
29935
|
obj.icon = "icon" in obj ? obj["icon"] : null;
|
|
29917
29936
|
obj["package"] = "package" in obj ? obj["package"] : null;
|
|
29918
|
-
|
|
29937
|
+
// Dedup providers by `type`. AI-built widget configs occasionally
|
|
29938
|
+
// ship `providers: [{type:"x"}, {type:"x"}]` — left alone, every
|
|
29939
|
+
// consumer (Providers tab, publish manifest, listener resolution)
|
|
29940
|
+
// doubles its per-widget rows. The Model is the single canonical
|
|
29941
|
+
// entry point for every widget config that gets registered, so
|
|
29942
|
+
// dedup here protects every downstream caller. Source-side fixes
|
|
29943
|
+
// (write-time + publish-time) keep the .dash.js text on disk
|
|
29944
|
+
// clean; this is the runtime-data backstop.
|
|
29945
|
+
if ("providers" in obj && Array.isArray(obj.providers)) {
|
|
29946
|
+
var seen = new Set();
|
|
29947
|
+
var cleaned = [];
|
|
29948
|
+
var _iterator = _createForOfIteratorHelper$j(obj.providers),
|
|
29949
|
+
_step;
|
|
29950
|
+
try {
|
|
29951
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
29952
|
+
var p = _step.value;
|
|
29953
|
+
if (!p || _typeof(p) !== "object" || !p.type) continue;
|
|
29954
|
+
if (seen.has(p.type)) continue;
|
|
29955
|
+
seen.add(p.type);
|
|
29956
|
+
cleaned.push(p);
|
|
29957
|
+
}
|
|
29958
|
+
} catch (err) {
|
|
29959
|
+
_iterator.e(err);
|
|
29960
|
+
} finally {
|
|
29961
|
+
_iterator.f();
|
|
29962
|
+
}
|
|
29963
|
+
obj.providers = cleaned;
|
|
29964
|
+
} else {
|
|
29965
|
+
obj.providers = [];
|
|
29966
|
+
}
|
|
29919
29967
|
|
|
29920
29968
|
/**
|
|
29921
29969
|
* notifications
|
|
@@ -36718,6 +36766,11 @@ function evaluateBundle(source, widgetName) {
|
|
|
36718
36766
|
* a `type` of "widget" or "workspace") or a frozen wrapper around
|
|
36719
36767
|
* a `default` export that is such a config.
|
|
36720
36768
|
*
|
|
36769
|
+
* Note: provider-array dedup is handled centrally in
|
|
36770
|
+
* `Models/ComponentConfigModel` so every widget that gets registered
|
|
36771
|
+
* via `ComponentManager.registerWidget` is normalized in one place.
|
|
36772
|
+
* Don't duplicate the logic here.
|
|
36773
|
+
*
|
|
36721
36774
|
* @param {object} bundleExports - The module.exports from evaluateBundle
|
|
36722
36775
|
* @returns {Array<{key: string, config: object}>} Extracted configs
|
|
36723
36776
|
*/
|