@trops/dash-core 0.1.278 → 0.1.280
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 +229 -118
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +163 -70
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2757,9 +2757,9 @@ var LayoutContainer = function LayoutContainer(_ref) {
|
|
|
2757
2757
|
|
|
2758
2758
|
function ownKeys$H(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; }
|
|
2759
2759
|
function _objectSpread$H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$H(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2760
|
-
function _createForOfIteratorHelper$
|
|
2761
|
-
function _unsupportedIterableToArray$
|
|
2762
|
-
function _arrayLikeToArray$
|
|
2760
|
+
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; } } }; }
|
|
2761
|
+
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; } }
|
|
2762
|
+
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; }
|
|
2763
2763
|
/**
|
|
2764
2764
|
* Layout template definitions for the dashboard template picker.
|
|
2765
2765
|
*
|
|
@@ -3033,7 +3033,7 @@ function createLayoutFromTemplate(template) {
|
|
|
3033
3033
|
cols: template.cols,
|
|
3034
3034
|
gap: "gap-2"
|
|
3035
3035
|
};
|
|
3036
|
-
var _iterator = _createForOfIteratorHelper$
|
|
3036
|
+
var _iterator = _createForOfIteratorHelper$j(template.cells),
|
|
3037
3037
|
_step;
|
|
3038
3038
|
try {
|
|
3039
3039
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -3964,9 +3964,9 @@ var RegistryAuthModal = function RegistryAuthModal(_ref) {
|
|
|
3964
3964
|
});
|
|
3965
3965
|
};
|
|
3966
3966
|
|
|
3967
|
-
function _createForOfIteratorHelper$
|
|
3968
|
-
function _unsupportedIterableToArray$
|
|
3969
|
-
function _arrayLikeToArray$
|
|
3967
|
+
function _createForOfIteratorHelper$i(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$i(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; } } }; }
|
|
3968
|
+
function _unsupportedIterableToArray$i(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$i(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$i(r, a) : void 0; } }
|
|
3969
|
+
function _arrayLikeToArray$i(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; }
|
|
3970
3970
|
function ownKeys$G(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; }
|
|
3971
3971
|
function _objectSpread$G(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$G(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$G(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3972
3972
|
var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
@@ -4207,7 +4207,7 @@ var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
|
4207
4207
|
toInstall = 0,
|
|
4208
4208
|
unavailable = 0,
|
|
4209
4209
|
hasUnavailableRequired = false;
|
|
4210
|
-
var _iterator = _createForOfIteratorHelper$
|
|
4210
|
+
var _iterator = _createForOfIteratorHelper$i(widgetDeps),
|
|
4211
4211
|
_step;
|
|
4212
4212
|
try {
|
|
4213
4213
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -5875,9 +5875,9 @@ function cleanIpcError(message) {
|
|
|
5875
5875
|
return match ? match[1] : message;
|
|
5876
5876
|
}
|
|
5877
5877
|
|
|
5878
|
-
function _createForOfIteratorHelper$
|
|
5879
|
-
function _unsupportedIterableToArray$
|
|
5880
|
-
function _arrayLikeToArray$
|
|
5878
|
+
function _createForOfIteratorHelper$h(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$h(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; } } }; }
|
|
5879
|
+
function _unsupportedIterableToArray$h(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$h(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$h(r, a) : void 0; } }
|
|
5880
|
+
function _arrayLikeToArray$h(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; }
|
|
5881
5881
|
|
|
5882
5882
|
/**
|
|
5883
5883
|
* useRegistrySearch — shared hook for browsing and installing registry packages.
|
|
@@ -5988,13 +5988,13 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
5988
5988
|
return c.toLowerCase();
|
|
5989
5989
|
}));
|
|
5990
5990
|
widgets = [];
|
|
5991
|
-
_iterator = _createForOfIteratorHelper$
|
|
5991
|
+
_iterator = _createForOfIteratorHelper$h(pkgs);
|
|
5992
5992
|
try {
|
|
5993
5993
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5994
5994
|
pkg = _step.value;
|
|
5995
5995
|
// Compute missing APIs for the entire package
|
|
5996
5996
|
allApiProviders = [];
|
|
5997
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
5997
|
+
_iterator2 = _createForOfIteratorHelper$h(pkg.providers || []);
|
|
5998
5998
|
try {
|
|
5999
5999
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
6000
6000
|
p = _step2.value;
|
|
@@ -6007,11 +6007,11 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
6007
6007
|
} finally {
|
|
6008
6008
|
_iterator2.f();
|
|
6009
6009
|
}
|
|
6010
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
6010
|
+
_iterator3 = _createForOfIteratorHelper$h(pkg.widgets || []);
|
|
6011
6011
|
try {
|
|
6012
6012
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
6013
6013
|
w = _step3.value;
|
|
6014
|
-
_iterator5 = _createForOfIteratorHelper$
|
|
6014
|
+
_iterator5 = _createForOfIteratorHelper$h(w.providers || []);
|
|
6015
6015
|
try {
|
|
6016
6016
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
6017
6017
|
_p = _step5.value;
|
|
@@ -6033,7 +6033,7 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
6033
6033
|
missingApis = _toConsumableArray(new Set(allApiProviders)).filter(function (api) {
|
|
6034
6034
|
return !capSet.has(api.toLowerCase());
|
|
6035
6035
|
});
|
|
6036
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
6036
|
+
_iterator4 = _createForOfIteratorHelper$h(pkg.widgets || []);
|
|
6037
6037
|
try {
|
|
6038
6038
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
6039
6039
|
widget = _step4.value;
|
|
@@ -6654,9 +6654,9 @@ function applyFilters(items, filters, mode) {
|
|
|
6654
6654
|
});
|
|
6655
6655
|
}
|
|
6656
6656
|
|
|
6657
|
-
function _createForOfIteratorHelper$
|
|
6658
|
-
function _unsupportedIterableToArray$
|
|
6659
|
-
function _arrayLikeToArray$
|
|
6657
|
+
function _createForOfIteratorHelper$g(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$g(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; } } }; }
|
|
6658
|
+
function _unsupportedIterableToArray$g(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$g(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$g(r, a) : void 0; } }
|
|
6659
|
+
function _arrayLikeToArray$g(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; }
|
|
6660
6660
|
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; }
|
|
6661
6661
|
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; }
|
|
6662
6662
|
var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
@@ -6880,7 +6880,7 @@ var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
|
6880
6880
|
installedNames = new Set(installedList.map(function (w) {
|
|
6881
6881
|
return w.name;
|
|
6882
6882
|
}));
|
|
6883
|
-
_iterator = _createForOfIteratorHelper$
|
|
6883
|
+
_iterator = _createForOfIteratorHelper$g(state.selectedWidgets);
|
|
6884
6884
|
_context2.prev = 13;
|
|
6885
6885
|
_iterator.s();
|
|
6886
6886
|
case 14:
|
|
@@ -8464,10 +8464,10 @@ var syntax = SyntaxError;
|
|
|
8464
8464
|
var type = TypeError;
|
|
8465
8465
|
|
|
8466
8466
|
/** @type {import('./gOPD')} */
|
|
8467
|
-
var gOPD$
|
|
8467
|
+
var gOPD$5 = Object.getOwnPropertyDescriptor;
|
|
8468
8468
|
|
|
8469
8469
|
/** @type {import('.')} */
|
|
8470
|
-
var $gOPD$2 = gOPD$
|
|
8470
|
+
var $gOPD$2 = gOPD$5;
|
|
8471
8471
|
|
|
8472
8472
|
if ($gOPD$2) {
|
|
8473
8473
|
try {
|
|
@@ -8602,7 +8602,7 @@ defineProperties$1.supportsDescriptors = !!supportsDescriptors$2;
|
|
|
8602
8602
|
|
|
8603
8603
|
var defineProperties_1 = defineProperties$1;
|
|
8604
8604
|
|
|
8605
|
-
var callBind$
|
|
8605
|
+
var callBind$6 = {exports: {}};
|
|
8606
8606
|
|
|
8607
8607
|
/** @type {import('.')} */
|
|
8608
8608
|
var esObjectAtoms = Object;
|
|
@@ -8902,60 +8902,78 @@ var callBindApplyHelpers = function callBindBasic(args) {
|
|
|
8902
8902
|
return $actualApply(bind$3, $call$1, args);
|
|
8903
8903
|
};
|
|
8904
8904
|
|
|
8905
|
-
var
|
|
8906
|
-
var
|
|
8905
|
+
var get;
|
|
8906
|
+
var hasRequiredGet;
|
|
8907
8907
|
|
|
8908
|
-
|
|
8909
|
-
|
|
8910
|
-
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8908
|
+
function requireGet () {
|
|
8909
|
+
if (hasRequiredGet) return get;
|
|
8910
|
+
hasRequiredGet = 1;
|
|
8911
|
+
|
|
8912
|
+
var callBind = callBindApplyHelpers;
|
|
8913
|
+
var gOPD = gopd$1;
|
|
8914
|
+
|
|
8915
|
+
var hasProtoAccessor;
|
|
8916
|
+
try {
|
|
8917
|
+
// eslint-disable-next-line no-extra-parens, no-proto
|
|
8918
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
|
8919
|
+
} catch (e) {
|
|
8920
|
+
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
|
8921
|
+
throw e;
|
|
8922
|
+
}
|
|
8915
8923
|
}
|
|
8916
|
-
}
|
|
8917
8924
|
|
|
8918
|
-
// eslint-disable-next-line no-extra-parens
|
|
8919
|
-
var desc = !!hasProtoAccessor && gOPD
|
|
8925
|
+
// eslint-disable-next-line no-extra-parens
|
|
8926
|
+
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
8920
8927
|
|
|
8921
|
-
var $Object
|
|
8922
|
-
var $getPrototypeOf = $Object
|
|
8928
|
+
var $Object = Object;
|
|
8929
|
+
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
8923
8930
|
|
|
8924
|
-
/** @type {import('./get')} */
|
|
8925
|
-
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
|
|
8929
|
-
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
|
|
8931
|
+
/** @type {import('./get')} */
|
|
8932
|
+
get = desc && typeof desc.get === 'function'
|
|
8933
|
+
? callBind([desc.get])
|
|
8934
|
+
: typeof $getPrototypeOf === 'function'
|
|
8935
|
+
? /** @type {import('./get')} */ function getDunder(value) {
|
|
8936
|
+
// eslint-disable-next-line eqeqeq
|
|
8937
|
+
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
8938
|
+
}
|
|
8939
|
+
: false;
|
|
8940
|
+
return get;
|
|
8941
|
+
}
|
|
8933
8942
|
|
|
8934
|
-
var
|
|
8935
|
-
var
|
|
8943
|
+
var getProto$3;
|
|
8944
|
+
var hasRequiredGetProto;
|
|
8936
8945
|
|
|
8937
|
-
|
|
8946
|
+
function requireGetProto () {
|
|
8947
|
+
if (hasRequiredGetProto) return getProto$3;
|
|
8948
|
+
hasRequiredGetProto = 1;
|
|
8938
8949
|
|
|
8939
|
-
|
|
8940
|
-
var
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
}
|
|
8945
|
-
|
|
8950
|
+
var reflectGetProto = requireReflect_getPrototypeOf();
|
|
8951
|
+
var originalGetProto = requireObject_getPrototypeOf();
|
|
8952
|
+
|
|
8953
|
+
var getDunderProto = requireGet();
|
|
8954
|
+
|
|
8955
|
+
/** @type {import('.')} */
|
|
8956
|
+
getProto$3 = reflectGetProto
|
|
8946
8957
|
? function getProto(O) {
|
|
8947
|
-
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
8948
|
-
throw new TypeError('getProto: not an object');
|
|
8949
|
-
}
|
|
8950
8958
|
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
8951
|
-
return
|
|
8959
|
+
return reflectGetProto(O);
|
|
8952
8960
|
}
|
|
8953
|
-
:
|
|
8961
|
+
: originalGetProto
|
|
8954
8962
|
? function getProto(O) {
|
|
8963
|
+
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
8964
|
+
throw new TypeError('getProto: not an object');
|
|
8965
|
+
}
|
|
8955
8966
|
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
8956
|
-
return
|
|
8967
|
+
return originalGetProto(O);
|
|
8957
8968
|
}
|
|
8958
|
-
:
|
|
8969
|
+
: getDunderProto
|
|
8970
|
+
? function getProto(O) {
|
|
8971
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
8972
|
+
return getDunderProto(O);
|
|
8973
|
+
}
|
|
8974
|
+
: null;
|
|
8975
|
+
return getProto$3;
|
|
8976
|
+
}
|
|
8959
8977
|
|
|
8960
8978
|
var call = Function.prototype.call;
|
|
8961
8979
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
@@ -9018,7 +9036,7 @@ var ThrowTypeError = $gOPD$1
|
|
|
9018
9036
|
|
|
9019
9037
|
var hasSymbols$3 = hasSymbols$4();
|
|
9020
9038
|
|
|
9021
|
-
var getProto$2 =
|
|
9039
|
+
var getProto$2 = requireGetProto();
|
|
9022
9040
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
9023
9041
|
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
9024
9042
|
|
|
@@ -9415,9 +9433,9 @@ var applyBind = function applyBind() {
|
|
|
9415
9433
|
} else {
|
|
9416
9434
|
module.exports.apply = applyBind$1;
|
|
9417
9435
|
}
|
|
9418
|
-
} (callBind$
|
|
9436
|
+
} (callBind$6));
|
|
9419
9437
|
|
|
9420
|
-
var callBindExports = callBind$
|
|
9438
|
+
var callBindExports = callBind$6.exports;
|
|
9421
9439
|
|
|
9422
9440
|
var GetIntrinsic$7 = getIntrinsic;
|
|
9423
9441
|
|
|
@@ -9716,7 +9734,7 @@ var getPolyfill$3 = polyfill$2;
|
|
|
9716
9734
|
var gOPD$2 = gopd$1;
|
|
9717
9735
|
var defineProperty = Object.defineProperty;
|
|
9718
9736
|
var $TypeError$5 = esErrors;
|
|
9719
|
-
var getProto$1 =
|
|
9737
|
+
var getProto$1 = requireGetProto();
|
|
9720
9738
|
var regex = /a/;
|
|
9721
9739
|
|
|
9722
9740
|
var shim$3 = function shimFlags() {
|
|
@@ -11832,7 +11850,7 @@ var availableTypedArrays = availableTypedArrays$1;
|
|
|
11832
11850
|
var callBind = callBindExports;
|
|
11833
11851
|
var callBound$2 = callBound$i;
|
|
11834
11852
|
var gOPD = gopd$1;
|
|
11835
|
-
var getProto =
|
|
11853
|
+
var getProto = requireGetProto();
|
|
11836
11854
|
|
|
11837
11855
|
var $toString = callBound$2('Object.prototype.toString');
|
|
11838
11856
|
var hasToStringTag = shams();
|
|
@@ -12586,9 +12604,9 @@ var PanelEditItem = function PanelEditItem(_ref) {
|
|
|
12586
12604
|
};
|
|
12587
12605
|
|
|
12588
12606
|
var _excluded$5 = ["rows", "cols"];
|
|
12589
|
-
function _createForOfIteratorHelper$
|
|
12590
|
-
function _unsupportedIterableToArray$
|
|
12591
|
-
function _arrayLikeToArray$
|
|
12607
|
+
function _createForOfIteratorHelper$f(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$f(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; } } }; }
|
|
12608
|
+
function _unsupportedIterableToArray$f(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$f(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$f(r, a) : void 0; } }
|
|
12609
|
+
function _arrayLikeToArray$f(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; }
|
|
12592
12610
|
function ownKeys$B(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; }
|
|
12593
12611
|
function _objectSpread$B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$B(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12594
12612
|
var defaultGrid = {
|
|
@@ -12741,7 +12759,7 @@ function GridEditor(_ref) {
|
|
|
12741
12759
|
function sortObjectByKeys(obj) {
|
|
12742
12760
|
var sortedKeys = Object.keys(obj).sort();
|
|
12743
12761
|
var sortedObj = {};
|
|
12744
|
-
var _iterator = _createForOfIteratorHelper$
|
|
12762
|
+
var _iterator = _createForOfIteratorHelper$f(sortedKeys),
|
|
12745
12763
|
_step;
|
|
12746
12764
|
try {
|
|
12747
12765
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -13214,9 +13232,9 @@ var PanelEditItemNotifications = function PanelEditItemNotifications(_ref) {
|
|
|
13214
13232
|
});
|
|
13215
13233
|
};
|
|
13216
13234
|
|
|
13217
|
-
function _createForOfIteratorHelper$
|
|
13218
|
-
function _unsupportedIterableToArray$
|
|
13219
|
-
function _arrayLikeToArray$
|
|
13235
|
+
function _createForOfIteratorHelper$e(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$e(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; } } }; }
|
|
13236
|
+
function _unsupportedIterableToArray$e(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$e(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$e(r, a) : void 0; } }
|
|
13237
|
+
function _arrayLikeToArray$e(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; }
|
|
13220
13238
|
function ownKeys$z(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; }
|
|
13221
13239
|
function _objectSpread$z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13222
13240
|
var DAYS = [{
|
|
@@ -13545,7 +13563,7 @@ var PanelEditItemSchedule = function PanelEditItemSchedule(_ref2) {
|
|
|
13545
13563
|
setIsLoading(true);
|
|
13546
13564
|
window.mainApi.scheduler.getTasks(widgetUuid).then(function (tasks) {
|
|
13547
13565
|
var stateMap = {};
|
|
13548
|
-
var _iterator = _createForOfIteratorHelper$
|
|
13566
|
+
var _iterator = _createForOfIteratorHelper$e(tasks || []),
|
|
13549
13567
|
_step;
|
|
13550
13568
|
try {
|
|
13551
13569
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -16395,9 +16413,9 @@ var getUserConfigurableProviders = function getUserConfigurableProviders(provide
|
|
|
16395
16413
|
});
|
|
16396
16414
|
};
|
|
16397
16415
|
|
|
16398
|
-
function _createForOfIteratorHelper$
|
|
16399
|
-
function _unsupportedIterableToArray$
|
|
16400
|
-
function _arrayLikeToArray$
|
|
16416
|
+
function _createForOfIteratorHelper$d(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$d(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; } } }; }
|
|
16417
|
+
function _unsupportedIterableToArray$d(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$d(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$d(r, a) : void 0; } }
|
|
16418
|
+
function _arrayLikeToArray$d(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; }
|
|
16401
16419
|
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; }
|
|
16402
16420
|
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; }
|
|
16403
16421
|
var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
@@ -16682,11 +16700,11 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
16682
16700
|
|
|
16683
16701
|
// Flatten all widgets from all packages for the widget list
|
|
16684
16702
|
flatWidgets = [];
|
|
16685
|
-
_iterator = _createForOfIteratorHelper$
|
|
16703
|
+
_iterator = _createForOfIteratorHelper$d(result.packages || []);
|
|
16686
16704
|
try {
|
|
16687
16705
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
16688
16706
|
pkg = _step.value;
|
|
16689
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
16707
|
+
_iterator2 = _createForOfIteratorHelper$d(pkg.widgets || []);
|
|
16690
16708
|
try {
|
|
16691
16709
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
16692
16710
|
widget = _step2.value;
|
|
@@ -18332,9 +18350,9 @@ var ProviderBadge = function ProviderBadge(_ref) {
|
|
|
18332
18350
|
});
|
|
18333
18351
|
};
|
|
18334
18352
|
|
|
18335
|
-
function _createForOfIteratorHelper$
|
|
18336
|
-
function _unsupportedIterableToArray$
|
|
18337
|
-
function _arrayLikeToArray$
|
|
18353
|
+
function _createForOfIteratorHelper$c(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$c(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; } } }; }
|
|
18354
|
+
function _unsupportedIterableToArray$c(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$c(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$c(r, a) : void 0; } }
|
|
18355
|
+
function _arrayLikeToArray$c(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; }
|
|
18338
18356
|
var WidgetCardHeader = function WidgetCardHeader(_ref) {
|
|
18339
18357
|
var item = _ref.item,
|
|
18340
18358
|
widget = _ref.widget,
|
|
@@ -18378,7 +18396,7 @@ var WidgetCardHeader = function WidgetCardHeader(_ref) {
|
|
|
18378
18396
|
var el = headerRef.current;
|
|
18379
18397
|
if (!el) return;
|
|
18380
18398
|
var observer = new ResizeObserver(function (entries) {
|
|
18381
|
-
var _iterator = _createForOfIteratorHelper$
|
|
18399
|
+
var _iterator = _createForOfIteratorHelper$c(entries),
|
|
18382
18400
|
_step;
|
|
18383
18401
|
try {
|
|
18384
18402
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -18735,9 +18753,9 @@ var useWidgetSchedulerStatus = function useWidgetSchedulerStatus(widgetId) {
|
|
|
18735
18753
|
};
|
|
18736
18754
|
};
|
|
18737
18755
|
|
|
18738
|
-
function _createForOfIteratorHelper$
|
|
18739
|
-
function _unsupportedIterableToArray$
|
|
18740
|
-
function _arrayLikeToArray$
|
|
18756
|
+
function _createForOfIteratorHelper$b(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$b(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; } } }; }
|
|
18757
|
+
function _unsupportedIterableToArray$b(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$b(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$b(r, a) : void 0; } }
|
|
18758
|
+
function _arrayLikeToArray$b(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; }
|
|
18741
18759
|
function formatCountdown(ms) {
|
|
18742
18760
|
if (ms == null || ms < 0) return "--";
|
|
18743
18761
|
if (ms < 1000) return "< 1s";
|
|
@@ -18854,7 +18872,7 @@ var WidgetCardStatusBar = function WidgetCardStatusBar(_ref) {
|
|
|
18854
18872
|
|
|
18855
18873
|
// Find soonest countdown among enabled tasks
|
|
18856
18874
|
var soonestMs = null;
|
|
18857
|
-
var _iterator = _createForOfIteratorHelper$
|
|
18875
|
+
var _iterator = _createForOfIteratorHelper$b(enabledTasks),
|
|
18858
18876
|
_step;
|
|
18859
18877
|
try {
|
|
18860
18878
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -20879,13 +20897,28 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
20879
20897
|
}
|
|
20880
20898
|
function handleDropWidgetFromSidebar(gridContainerId, cellNumber, widgetKey) {
|
|
20881
20899
|
try {
|
|
20900
|
+
var _gridContainer$grid;
|
|
20882
20901
|
var config = ComponentManager.config(widgetKey);
|
|
20883
20902
|
if (!config) return;
|
|
20884
20903
|
var widgetItem = _objectSpread$t(_objectSpread$t({}, config), {}, {
|
|
20885
20904
|
component: widgetKey,
|
|
20886
20905
|
key: widgetKey
|
|
20887
20906
|
});
|
|
20888
|
-
|
|
20907
|
+
|
|
20908
|
+
// Remove old widget from layout if the target cell is already occupied
|
|
20909
|
+
var _workspace = currentWorkspace;
|
|
20910
|
+
var gridContainer = _workspace["layout"].find(function (item) {
|
|
20911
|
+
return item.id === gridContainerId;
|
|
20912
|
+
});
|
|
20913
|
+
if (gridContainer !== null && gridContainer !== void 0 && (_gridContainer$grid = gridContainer.grid) !== null && _gridContainer$grid !== void 0 && (_gridContainer$grid = _gridContainer$grid[cellNumber]) !== null && _gridContainer$grid !== void 0 && _gridContainer$grid.component) {
|
|
20914
|
+
var oldWidgetId = gridContainer.grid[cellNumber].component;
|
|
20915
|
+
var dashboard = new DashboardModel(_workspace);
|
|
20916
|
+
dashboard.removeItemFromLayout(oldWidgetId);
|
|
20917
|
+
// Clear the grid cell reference before adding the new widget
|
|
20918
|
+
gridContainer.grid[cellNumber].component = null;
|
|
20919
|
+
_workspace = dashboard.workspace();
|
|
20920
|
+
}
|
|
20921
|
+
var layout = _workspace["layout"];
|
|
20889
20922
|
var hasChildren = widgetItem["type"] === "workspace";
|
|
20890
20923
|
var newLayout = addItemToItemLayout(layout, gridContainerId, widgetItem, hasChildren);
|
|
20891
20924
|
var newWidgetId = newLayout[newLayout.length - 1].id;
|
|
@@ -20898,7 +20931,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
20898
20931
|
hide: false
|
|
20899
20932
|
};
|
|
20900
20933
|
}
|
|
20901
|
-
var newWorkspace = JSON.parse(JSON.stringify(
|
|
20934
|
+
var newWorkspace = JSON.parse(JSON.stringify(_workspace));
|
|
20902
20935
|
newWorkspace["layout"] = newLayout;
|
|
20903
20936
|
setCurrentWorkspace(newWorkspace);
|
|
20904
20937
|
} catch (e) {
|
|
@@ -23936,9 +23969,9 @@ var ExternalWidget = function ExternalWidget(_ref) {
|
|
|
23936
23969
|
var GRID_CELL_WIDGET_TYPE = "grid-cell-widget";
|
|
23937
23970
|
var SIDEBAR_WIDGET_TYPE = "sidebar-widget";
|
|
23938
23971
|
|
|
23939
|
-
function _createForOfIteratorHelper$
|
|
23940
|
-
function _unsupportedIterableToArray$
|
|
23941
|
-
function _arrayLikeToArray$
|
|
23972
|
+
function _createForOfIteratorHelper$a(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$a(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; } } }; }
|
|
23973
|
+
function _unsupportedIterableToArray$a(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$a(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$a(r, a) : void 0; } }
|
|
23974
|
+
function _arrayLikeToArray$a(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; }
|
|
23942
23975
|
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; }
|
|
23943
23976
|
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; }
|
|
23944
23977
|
var DraggableDroppableCellBody = function DraggableDroppableCellBody(_ref) {
|
|
@@ -24513,7 +24546,7 @@ var LayoutGridContainer = /*#__PURE__*/memo(function (_ref3) {
|
|
|
24513
24546
|
return selectable["delete"](cn);
|
|
24514
24547
|
});
|
|
24515
24548
|
var resolved = new Set();
|
|
24516
|
-
var _iterator = _createForOfIteratorHelper$
|
|
24549
|
+
var _iterator = _createForOfIteratorHelper$a(selectable),
|
|
24517
24550
|
_step;
|
|
24518
24551
|
try {
|
|
24519
24552
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -26651,9 +26684,9 @@ function isWidgetResolvable(componentKey) {
|
|
|
26651
26684
|
|
|
26652
26685
|
function ownKeys$o(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; }
|
|
26653
26686
|
function _objectSpread$o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$o(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$o(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
26654
|
-
function _createForOfIteratorHelper$
|
|
26655
|
-
function _unsupportedIterableToArray$
|
|
26656
|
-
function _arrayLikeToArray$
|
|
26687
|
+
function _createForOfIteratorHelper$9(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$9(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; } } }; }
|
|
26688
|
+
function _unsupportedIterableToArray$9(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$9(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$9(r, a) : void 0; } }
|
|
26689
|
+
function _arrayLikeToArray$9(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; }
|
|
26657
26690
|
/**
|
|
26658
26691
|
* The model for all layout components used primarily in the renderLayout method
|
|
26659
26692
|
* @param {Object} layoutItem an object containing various attributes of the layout item
|
|
@@ -26665,7 +26698,7 @@ function _arrayLikeToArray$8(r, a) { (null == a || a > r.length) && (a = r.lengt
|
|
|
26665
26698
|
function sortObjectByKeys(obj) {
|
|
26666
26699
|
var sortedKeys = Object.keys(obj).sort();
|
|
26667
26700
|
var sortedObj = {};
|
|
26668
|
-
var _iterator = _createForOfIteratorHelper$
|
|
26701
|
+
var _iterator = _createForOfIteratorHelper$9(sortedKeys),
|
|
26669
26702
|
_step;
|
|
26670
26703
|
try {
|
|
26671
26704
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -27334,6 +27367,9 @@ var MenuItemModel = function MenuItemModel() {
|
|
|
27334
27367
|
return m;
|
|
27335
27368
|
};
|
|
27336
27369
|
|
|
27370
|
+
function _createForOfIteratorHelper$8(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$8(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; } } }; }
|
|
27371
|
+
function _unsupportedIterableToArray$8(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$8(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$8(r, a) : void 0; } }
|
|
27372
|
+
function _arrayLikeToArray$8(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; }
|
|
27337
27373
|
function ownKeys$n(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; }
|
|
27338
27374
|
function _objectSpread$n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$n(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27339
27375
|
/**
|
|
@@ -29304,6 +29340,54 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
29304
29340
|
return color;
|
|
29305
29341
|
}
|
|
29306
29342
|
}
|
|
29343
|
+
|
|
29344
|
+
/**
|
|
29345
|
+
* Remove orphaned layout items that are not referenced by any grid cell.
|
|
29346
|
+
* Call this during save to keep the workspace data clean.
|
|
29347
|
+
*/
|
|
29348
|
+
}, {
|
|
29349
|
+
key: "cleanOrphanedItems",
|
|
29350
|
+
value: function cleanOrphanedItems() {
|
|
29351
|
+
try {
|
|
29352
|
+
// Collect all item IDs actively referenced by grid cells
|
|
29353
|
+
var activeItemIds = new Set();
|
|
29354
|
+
var _iterator = _createForOfIteratorHelper$8(this.layout),
|
|
29355
|
+
_step;
|
|
29356
|
+
try {
|
|
29357
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
29358
|
+
var item = _step.value;
|
|
29359
|
+
if (item.grid && _typeof(item.grid) === "object") {
|
|
29360
|
+
for (var _i15 = 0, _Object$keys5 = Object.keys(item.grid); _i15 < _Object$keys5.length; _i15++) {
|
|
29361
|
+
var key = _Object$keys5[_i15];
|
|
29362
|
+
var cell = item.grid[key];
|
|
29363
|
+
if (cell && _typeof(cell) === "object" && cell.component) {
|
|
29364
|
+
activeItemIds.add(cell.component);
|
|
29365
|
+
}
|
|
29366
|
+
}
|
|
29367
|
+
// The grid container itself is active
|
|
29368
|
+
activeItemIds.add(item.id);
|
|
29369
|
+
}
|
|
29370
|
+
}
|
|
29371
|
+
|
|
29372
|
+
// If no grid containers exist, nothing to clean
|
|
29373
|
+
} catch (err) {
|
|
29374
|
+
_iterator.e(err);
|
|
29375
|
+
} finally {
|
|
29376
|
+
_iterator.f();
|
|
29377
|
+
}
|
|
29378
|
+
if (activeItemIds.size === 0) return;
|
|
29379
|
+
|
|
29380
|
+
// Keep root items (parent: 0) and items referenced by grid cells
|
|
29381
|
+
var before = this.layout.length;
|
|
29382
|
+
this.layout = this.layout.filter(function (item) {
|
|
29383
|
+
return item.parent === 0 || activeItemIds.has(item.id);
|
|
29384
|
+
});
|
|
29385
|
+
var removed = before - this.layout.length;
|
|
29386
|
+
if (removed > 0) {
|
|
29387
|
+
}
|
|
29388
|
+
} catch (e) {
|
|
29389
|
+
}
|
|
29390
|
+
}
|
|
29307
29391
|
}]);
|
|
29308
29392
|
}();
|
|
29309
29393
|
|
|
@@ -29428,15 +29512,10 @@ var ComponentManager = {
|
|
|
29428
29512
|
var tempComponentMap = this.componentMap();
|
|
29429
29513
|
// Handle both module exports (widgetConfig.default) and direct config objects
|
|
29430
29514
|
var config = widgetConfig["default"] || widgetConfig;
|
|
29431
|
-
//
|
|
29432
|
-
// otherwise
|
|
29515
|
+
// Register under a single canonical key: config.id (scoped widget ID) if
|
|
29516
|
+
// available, otherwise the provided widgetKey. No aliases — one widget, one key.
|
|
29433
29517
|
var registrationKey = config.id || widgetKey;
|
|
29434
29518
|
tempComponentMap[registrationKey] = ComponentConfigModel(config);
|
|
29435
|
-
// Also register under plain component name for backward compat
|
|
29436
|
-
// (dashboards may reference "SlackWidget" instead of "trops.slack.SlackWidget")
|
|
29437
|
-
if (config.id && config.id !== widgetKey && !tempComponentMap[widgetKey]) {
|
|
29438
|
-
tempComponentMap[widgetKey] = tempComponentMap[registrationKey];
|
|
29439
|
-
}
|
|
29440
29519
|
this.setComponentMap(tempComponentMap);
|
|
29441
29520
|
},
|
|
29442
29521
|
/**
|
|
@@ -33771,8 +33850,10 @@ function extractWidgetConfigs(bundleExports) {
|
|
|
33771
33850
|
|
|
33772
33851
|
// Must have a component function and a recognized type
|
|
33773
33852
|
if (typeof entry.component === "function" && (entry.type === "widget" || entry.type === "workspace")) {
|
|
33853
|
+
// Use the canonical widget ID from config if available,
|
|
33854
|
+
// otherwise fall back to the CJS export key
|
|
33774
33855
|
configs.push({
|
|
33775
|
-
key: key,
|
|
33856
|
+
key: entry.id || key,
|
|
33776
33857
|
config: entry
|
|
33777
33858
|
});
|
|
33778
33859
|
}
|
|
@@ -45061,20 +45142,30 @@ function _unsupportedIterableToArray$2(r, a) { if (r) { if ("string" == typeof r
|
|
|
45061
45142
|
function _arrayLikeToArray$2(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; }
|
|
45062
45143
|
|
|
45063
45144
|
/**
|
|
45064
|
-
* Walk a workspace layout
|
|
45065
|
-
*
|
|
45145
|
+
* Walk a workspace layout and collect widget component keys that are
|
|
45146
|
+
* actively referenced by grid cells. Ignores orphaned layout items
|
|
45147
|
+
* (items not referenced by any grid cell) so they don't trigger false
|
|
45148
|
+
* "missing widget" warnings.
|
|
45066
45149
|
*/
|
|
45067
45150
|
function collectComponentsFromLayout(layout) {
|
|
45068
45151
|
var components = [];
|
|
45069
45152
|
if (!Array.isArray(layout)) return components;
|
|
45153
|
+
|
|
45154
|
+
// Collect IDs of layout items that are actively referenced by grid cells
|
|
45155
|
+
var activeItemIds = new Set();
|
|
45070
45156
|
var _iterator = _createForOfIteratorHelper$2(layout),
|
|
45071
45157
|
_step;
|
|
45072
45158
|
try {
|
|
45073
45159
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
45074
45160
|
var item = _step.value;
|
|
45075
|
-
if (item.
|
|
45076
|
-
|
|
45077
|
-
|
|
45161
|
+
if (item.grid && _typeof(item.grid) === "object") {
|
|
45162
|
+
for (var _i = 0, _Object$keys = Object.keys(item.grid); _i < _Object$keys.length; _i++) {
|
|
45163
|
+
var key = _Object$keys[_i];
|
|
45164
|
+
var cell = item.grid[key];
|
|
45165
|
+
if (cell && _typeof(cell) === "object" && cell.component) {
|
|
45166
|
+
activeItemIds.add(cell.component);
|
|
45167
|
+
}
|
|
45168
|
+
}
|
|
45078
45169
|
}
|
|
45079
45170
|
}
|
|
45080
45171
|
} catch (err) {
|
|
@@ -45082,6 +45173,26 @@ function collectComponentsFromLayout(layout) {
|
|
|
45082
45173
|
} finally {
|
|
45083
45174
|
_iterator.f();
|
|
45084
45175
|
}
|
|
45176
|
+
var _iterator2 = _createForOfIteratorHelper$2(layout),
|
|
45177
|
+
_step2;
|
|
45178
|
+
try {
|
|
45179
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
45180
|
+
var _item = _step2.value;
|
|
45181
|
+
if (!_item.component) continue;
|
|
45182
|
+
// Skip layout containers — they are always resolvable
|
|
45183
|
+
if (_item.component === "LayoutGridContainer" || _item.component === "Container" || _item.component === "LayoutContainer") continue;
|
|
45184
|
+
// When grid containers exist, only collect items referenced by a grid cell
|
|
45185
|
+
if (activeItemIds.size > 0 && !activeItemIds.has(_item.id)) continue;
|
|
45186
|
+
components.push(_item.component);
|
|
45187
|
+
if (Array.isArray(_item.children)) {
|
|
45188
|
+
components.push.apply(components, _toConsumableArray(collectComponentsFromLayout(_item.children)));
|
|
45189
|
+
}
|
|
45190
|
+
}
|
|
45191
|
+
} catch (err) {
|
|
45192
|
+
_iterator2.e(err);
|
|
45193
|
+
} finally {
|
|
45194
|
+
_iterator2.f();
|
|
45195
|
+
}
|
|
45085
45196
|
return components;
|
|
45086
45197
|
}
|
|
45087
45198
|
|
|
@@ -45096,11 +45207,11 @@ function findWidgetUsage(componentNames, workspaces) {
|
|
|
45096
45207
|
if (!(componentNames !== null && componentNames !== void 0 && componentNames.length) || !(workspaces !== null && workspaces !== void 0 && workspaces.length)) return [];
|
|
45097
45208
|
var nameSet = new Set(componentNames);
|
|
45098
45209
|
var results = [];
|
|
45099
|
-
var
|
|
45100
|
-
|
|
45210
|
+
var _iterator3 = _createForOfIteratorHelper$2(workspaces),
|
|
45211
|
+
_step3;
|
|
45101
45212
|
try {
|
|
45102
|
-
for (
|
|
45103
|
-
var ws =
|
|
45213
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
45214
|
+
var ws = _step3.value;
|
|
45104
45215
|
var comps = collectComponentsFromLayout(ws.layout);
|
|
45105
45216
|
var count = comps.filter(function (c) {
|
|
45106
45217
|
return nameSet.has(c);
|
|
@@ -45114,9 +45225,9 @@ function findWidgetUsage(componentNames, workspaces) {
|
|
|
45114
45225
|
}
|
|
45115
45226
|
}
|
|
45116
45227
|
} catch (err) {
|
|
45117
|
-
|
|
45228
|
+
_iterator3.e(err);
|
|
45118
45229
|
} finally {
|
|
45119
|
-
|
|
45230
|
+
_iterator3.f();
|
|
45120
45231
|
}
|
|
45121
45232
|
return results;
|
|
45122
45233
|
}
|