@trops/dash-core 0.1.360 → 0.1.361
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 +928 -390
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +960 -431
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -50,8 +50,8 @@ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
|
50
50
|
var jsxRuntime__namespace = /*#__PURE__*/_interopNamespaceDefault(jsxRuntime);
|
|
51
51
|
var ReactDOM__namespace = /*#__PURE__*/_interopNamespaceDefault(ReactDOM);
|
|
52
52
|
|
|
53
|
-
function ownKeys$
|
|
54
|
-
function _objectSpread$
|
|
53
|
+
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; }
|
|
54
|
+
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; }
|
|
55
55
|
var event = {
|
|
56
56
|
list: new Map(),
|
|
57
57
|
// Map(1) { '<widget-UUID>' => { 'CustomSearchbar[10].searchQueryChanged': [] } }
|
|
@@ -113,7 +113,7 @@ var event = {
|
|
|
113
113
|
uuid: subscriber["uuid"]
|
|
114
114
|
};
|
|
115
115
|
if ("action" in subscriber && subscriber.action !== undefined) {
|
|
116
|
-
subscriber["action"](_objectSpread$
|
|
116
|
+
subscriber["action"](_objectSpread$T({}, objectToSend));
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
119
|
}
|
|
@@ -2874,8 +2874,8 @@ var DashboardWrapper = function DashboardWrapper(_ref) {
|
|
|
2874
2874
|
});
|
|
2875
2875
|
};
|
|
2876
2876
|
|
|
2877
|
-
function ownKeys$
|
|
2878
|
-
function _objectSpread$
|
|
2877
|
+
function ownKeys$S(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; }
|
|
2878
|
+
function _objectSpread$S(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$S(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$S(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2879
2879
|
var DashboardThemeProvider = function DashboardThemeProvider(_ref) {
|
|
2880
2880
|
var themeKey = _ref.themeKey,
|
|
2881
2881
|
children = _ref.children;
|
|
@@ -2887,7 +2887,7 @@ var DashboardThemeProvider = function DashboardThemeProvider(_ref) {
|
|
|
2887
2887
|
var dashboardTheme = themes[themeKey];
|
|
2888
2888
|
var themeValue = dashboardTheme ? dashboardTheme[themeVariant] || null : null;
|
|
2889
2889
|
if (!themeValue) return null;
|
|
2890
|
-
return _objectSpread$
|
|
2890
|
+
return _objectSpread$S(_objectSpread$S({}, parentContext), {}, {
|
|
2891
2891
|
currentTheme: themeValue,
|
|
2892
2892
|
currentThemeKey: themeKey,
|
|
2893
2893
|
theme: themeValue,
|
|
@@ -2905,8 +2905,8 @@ var DashboardThemeProvider = function DashboardThemeProvider(_ref) {
|
|
|
2905
2905
|
});
|
|
2906
2906
|
};
|
|
2907
2907
|
|
|
2908
|
-
function ownKeys$
|
|
2909
|
-
function _objectSpread$
|
|
2908
|
+
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; }
|
|
2909
|
+
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; }
|
|
2910
2910
|
var AppThemeScope = function AppThemeScope(_ref) {
|
|
2911
2911
|
var children = _ref.children;
|
|
2912
2912
|
var ctx = React.useContext(DashReact.ThemeContext);
|
|
@@ -2914,7 +2914,7 @@ var AppThemeScope = function AppThemeScope(_ref) {
|
|
|
2914
2914
|
children: children
|
|
2915
2915
|
});
|
|
2916
2916
|
return /*#__PURE__*/jsxRuntime.jsx(DashReact.ThemeContext.Provider, {
|
|
2917
|
-
value: _objectSpread$
|
|
2917
|
+
value: _objectSpread$R(_objectSpread$R({}, ctx), {}, {
|
|
2918
2918
|
currentTheme: ctx.appTheme,
|
|
2919
2919
|
currentThemeKey: ctx.appThemeKey,
|
|
2920
2920
|
theme: ctx.appTheme,
|
|
@@ -3026,11 +3026,11 @@ var LayoutContainer = function LayoutContainer(_ref) {
|
|
|
3026
3026
|
});
|
|
3027
3027
|
};
|
|
3028
3028
|
|
|
3029
|
-
function ownKeys$
|
|
3030
|
-
function _objectSpread$
|
|
3031
|
-
function _createForOfIteratorHelper$
|
|
3032
|
-
function _unsupportedIterableToArray$
|
|
3033
|
-
function _arrayLikeToArray$
|
|
3029
|
+
function ownKeys$Q(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; }
|
|
3030
|
+
function _objectSpread$Q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$Q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$Q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3031
|
+
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; } } }; }
|
|
3032
|
+
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; } }
|
|
3033
|
+
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; }
|
|
3034
3034
|
/**
|
|
3035
3035
|
* Layout template definitions for the dashboard template picker.
|
|
3036
3036
|
*
|
|
@@ -3304,12 +3304,12 @@ function createLayoutFromTemplate(template) {
|
|
|
3304
3304
|
cols: template.cols,
|
|
3305
3305
|
gap: "gap-2"
|
|
3306
3306
|
};
|
|
3307
|
-
var _iterator = _createForOfIteratorHelper$
|
|
3307
|
+
var _iterator = _createForOfIteratorHelper$p(template.cells),
|
|
3308
3308
|
_step;
|
|
3309
3309
|
try {
|
|
3310
3310
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3311
3311
|
var cell = _step.value;
|
|
3312
|
-
grid[cell.key] = _objectSpread$
|
|
3312
|
+
grid[cell.key] = _objectSpread$Q({
|
|
3313
3313
|
component: null,
|
|
3314
3314
|
hide: cell.hide || false
|
|
3315
3315
|
}, cell.span ? {
|
|
@@ -4235,11 +4235,11 @@ var RegistryAuthModal = function RegistryAuthModal(_ref) {
|
|
|
4235
4235
|
});
|
|
4236
4236
|
};
|
|
4237
4237
|
|
|
4238
|
-
function _createForOfIteratorHelper$
|
|
4239
|
-
function _unsupportedIterableToArray$
|
|
4240
|
-
function _arrayLikeToArray$
|
|
4241
|
-
function ownKeys$
|
|
4242
|
-
function _objectSpread$
|
|
4238
|
+
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; } } }; }
|
|
4239
|
+
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; } }
|
|
4240
|
+
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; }
|
|
4241
|
+
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; }
|
|
4242
|
+
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; }
|
|
4243
4243
|
var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
4244
4244
|
var dashboardPackage = _ref.dashboardPackage,
|
|
4245
4245
|
appId = _ref.appId,
|
|
@@ -4355,7 +4355,7 @@ var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
|
4355
4355
|
setProgressWidgets(function (prev) {
|
|
4356
4356
|
var next = _toConsumableArray(prev);
|
|
4357
4357
|
if (data.index >= 0 && data.index < next.length) {
|
|
4358
|
-
next[data.index] = _objectSpread$
|
|
4358
|
+
next[data.index] = _objectSpread$P(_objectSpread$P({}, next[data.index]), {}, {
|
|
4359
4359
|
status: data.status,
|
|
4360
4360
|
error: data.error || null
|
|
4361
4361
|
});
|
|
@@ -4451,7 +4451,7 @@ var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
|
4451
4451
|
var raw = preview === null || preview === void 0 ? void 0 : preview.compatibility;
|
|
4452
4452
|
if (!raw) return raw;
|
|
4453
4453
|
var cMap = ComponentManager.componentMap();
|
|
4454
|
-
var augWidgets = _objectSpread$
|
|
4454
|
+
var augWidgets = _objectSpread$P({}, raw.widgets);
|
|
4455
4455
|
var fixedCount = 0;
|
|
4456
4456
|
var _loop = function _loop() {
|
|
4457
4457
|
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
|
@@ -4478,7 +4478,7 @@ var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
|
4478
4478
|
toInstall = 0,
|
|
4479
4479
|
unavailable = 0,
|
|
4480
4480
|
hasUnavailableRequired = false;
|
|
4481
|
-
var _iterator = _createForOfIteratorHelper$
|
|
4481
|
+
var _iterator = _createForOfIteratorHelper$o(widgetDeps),
|
|
4482
4482
|
_step;
|
|
4483
4483
|
try {
|
|
4484
4484
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -4927,8 +4927,8 @@ var DiscoverDashboardsDetail = function DiscoverDashboardsDetail(_ref) {
|
|
|
4927
4927
|
});
|
|
4928
4928
|
};
|
|
4929
4929
|
|
|
4930
|
-
function ownKeys$
|
|
4931
|
-
function _objectSpread$
|
|
4930
|
+
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; }
|
|
4931
|
+
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; }
|
|
4932
4932
|
var LayoutManagerModal = function LayoutManagerModal(_ref) {
|
|
4933
4933
|
var open = _ref.open,
|
|
4934
4934
|
setIsOpen = _ref.setIsOpen,
|
|
@@ -5173,7 +5173,7 @@ var LayoutManagerModal = function LayoutManagerModal(_ref) {
|
|
|
5173
5173
|
}
|
|
5174
5174
|
return _context2.abrupt("return");
|
|
5175
5175
|
case 6:
|
|
5176
|
-
updatedWorkspace = _objectSpread$
|
|
5176
|
+
updatedWorkspace = _objectSpread$O(_objectSpread$O({}, importedWorkspace), {}, {
|
|
5177
5177
|
name: dashboardName.trim(),
|
|
5178
5178
|
menuId: menuId,
|
|
5179
5179
|
themeKey: selectedThemeKey
|
|
@@ -6146,9 +6146,9 @@ function cleanIpcError(message) {
|
|
|
6146
6146
|
return match ? match[1] : message;
|
|
6147
6147
|
}
|
|
6148
6148
|
|
|
6149
|
-
function _createForOfIteratorHelper$
|
|
6150
|
-
function _unsupportedIterableToArray$
|
|
6151
|
-
function _arrayLikeToArray$
|
|
6149
|
+
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; } } }; }
|
|
6150
|
+
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; } }
|
|
6151
|
+
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; }
|
|
6152
6152
|
|
|
6153
6153
|
/**
|
|
6154
6154
|
* useRegistrySearch — shared hook for browsing and installing registry packages.
|
|
@@ -6259,13 +6259,13 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
6259
6259
|
return c.toLowerCase();
|
|
6260
6260
|
}));
|
|
6261
6261
|
widgets = [];
|
|
6262
|
-
_iterator = _createForOfIteratorHelper$
|
|
6262
|
+
_iterator = _createForOfIteratorHelper$n(pkgs);
|
|
6263
6263
|
try {
|
|
6264
6264
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6265
6265
|
pkg = _step.value;
|
|
6266
6266
|
// Compute missing APIs for the entire package
|
|
6267
6267
|
allApiProviders = [];
|
|
6268
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
6268
|
+
_iterator2 = _createForOfIteratorHelper$n(pkg.providers || []);
|
|
6269
6269
|
try {
|
|
6270
6270
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
6271
6271
|
p = _step2.value;
|
|
@@ -6278,11 +6278,11 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
6278
6278
|
} finally {
|
|
6279
6279
|
_iterator2.f();
|
|
6280
6280
|
}
|
|
6281
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
6281
|
+
_iterator3 = _createForOfIteratorHelper$n(pkg.widgets || []);
|
|
6282
6282
|
try {
|
|
6283
6283
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
6284
6284
|
w = _step3.value;
|
|
6285
|
-
_iterator5 = _createForOfIteratorHelper$
|
|
6285
|
+
_iterator5 = _createForOfIteratorHelper$n(w.providers || []);
|
|
6286
6286
|
try {
|
|
6287
6287
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
6288
6288
|
_p = _step5.value;
|
|
@@ -6304,7 +6304,7 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
6304
6304
|
missingApis = _toConsumableArray(new Set(allApiProviders)).filter(function (api) {
|
|
6305
6305
|
return !capSet.has(api.toLowerCase());
|
|
6306
6306
|
});
|
|
6307
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
6307
|
+
_iterator4 = _createForOfIteratorHelper$n(pkg.widgets || []);
|
|
6308
6308
|
try {
|
|
6309
6309
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
6310
6310
|
widget = _step4.value;
|
|
@@ -6925,11 +6925,11 @@ function applyFilters(items, filters, mode) {
|
|
|
6925
6925
|
});
|
|
6926
6926
|
}
|
|
6927
6927
|
|
|
6928
|
-
function _createForOfIteratorHelper$
|
|
6929
|
-
function _unsupportedIterableToArray$
|
|
6930
|
-
function _arrayLikeToArray$
|
|
6931
|
-
function ownKeys$
|
|
6932
|
-
function _objectSpread$
|
|
6928
|
+
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; } } }; }
|
|
6929
|
+
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; } }
|
|
6930
|
+
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; }
|
|
6931
|
+
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; }
|
|
6932
|
+
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; }
|
|
6933
6933
|
var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
6934
6934
|
var _state$selectedDashbo, _state$selectedDashbo2;
|
|
6935
6935
|
var state = _ref.state,
|
|
@@ -7099,7 +7099,7 @@ var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
|
7099
7099
|
_context2.next = 7;
|
|
7100
7100
|
break;
|
|
7101
7101
|
}
|
|
7102
|
-
updatedWorkspace = _objectSpread$
|
|
7102
|
+
updatedWorkspace = _objectSpread$N(_objectSpread$N({}, installResult.workspace), {}, {
|
|
7103
7103
|
name: name.trim(),
|
|
7104
7104
|
menuId: menuId || 1,
|
|
7105
7105
|
themeKey: theme
|
|
@@ -7151,7 +7151,7 @@ var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
|
7151
7151
|
installedNames = new Set(installedList.map(function (w) {
|
|
7152
7152
|
return w.name;
|
|
7153
7153
|
}));
|
|
7154
|
-
_iterator = _createForOfIteratorHelper$
|
|
7154
|
+
_iterator = _createForOfIteratorHelper$m(state.selectedWidgets);
|
|
7155
7155
|
_context2.prev = 13;
|
|
7156
7156
|
_iterator.s();
|
|
7157
7157
|
case 14:
|
|
@@ -7854,8 +7854,8 @@ var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
|
7854
7854
|
});
|
|
7855
7855
|
};
|
|
7856
7856
|
|
|
7857
|
-
function ownKeys$
|
|
7858
|
-
function _objectSpread$
|
|
7857
|
+
function ownKeys$M(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; }
|
|
7858
|
+
function _objectSpread$M(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$M(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$M(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7859
7859
|
var TOTAL_STEPS = 2; // Steps 0-1: Discover, Customize
|
|
7860
7860
|
|
|
7861
7861
|
var initialState = {
|
|
@@ -7881,20 +7881,20 @@ var initialState = {
|
|
|
7881
7881
|
function wizardReducer(state, action) {
|
|
7882
7882
|
switch (action.type) {
|
|
7883
7883
|
case "SET_STEP":
|
|
7884
|
-
return _objectSpread$
|
|
7884
|
+
return _objectSpread$M(_objectSpread$M({}, state), {}, {
|
|
7885
7885
|
step: action.payload
|
|
7886
7886
|
});
|
|
7887
7887
|
case "SET_FILTERS":
|
|
7888
|
-
return _objectSpread$
|
|
7889
|
-
filters: _objectSpread$
|
|
7888
|
+
return _objectSpread$M(_objectSpread$M({}, state), {}, {
|
|
7889
|
+
filters: _objectSpread$M(_objectSpread$M({}, state.filters), action.payload)
|
|
7890
7890
|
});
|
|
7891
7891
|
case "TOGGLE_FILTER_CATEGORY":
|
|
7892
7892
|
{
|
|
7893
7893
|
var categories = state.filters.categories.includes(action.payload) ? state.filters.categories.filter(function (c) {
|
|
7894
7894
|
return c !== action.payload;
|
|
7895
7895
|
}) : [].concat(_toConsumableArray(state.filters.categories), [action.payload]);
|
|
7896
|
-
return _objectSpread$
|
|
7897
|
-
filters: _objectSpread$
|
|
7896
|
+
return _objectSpread$M(_objectSpread$M({}, state), {}, {
|
|
7897
|
+
filters: _objectSpread$M(_objectSpread$M({}, state.filters), {}, {
|
|
7898
7898
|
categories: categories
|
|
7899
7899
|
})
|
|
7900
7900
|
});
|
|
@@ -7904,15 +7904,15 @@ function wizardReducer(state, action) {
|
|
|
7904
7904
|
var providers = state.filters.providers.includes(action.payload) ? state.filters.providers.filter(function (p) {
|
|
7905
7905
|
return p !== action.payload;
|
|
7906
7906
|
}) : [].concat(_toConsumableArray(state.filters.providers), [action.payload]);
|
|
7907
|
-
return _objectSpread$
|
|
7908
|
-
filters: _objectSpread$
|
|
7907
|
+
return _objectSpread$M(_objectSpread$M({}, state), {}, {
|
|
7908
|
+
filters: _objectSpread$M(_objectSpread$M({}, state.filters), {}, {
|
|
7909
7909
|
providers: providers
|
|
7910
7910
|
})
|
|
7911
7911
|
});
|
|
7912
7912
|
}
|
|
7913
7913
|
case "SET_SEARCH_QUERY":
|
|
7914
|
-
return _objectSpread$
|
|
7915
|
-
filters: _objectSpread$
|
|
7914
|
+
return _objectSpread$M(_objectSpread$M({}, state), {}, {
|
|
7915
|
+
filters: _objectSpread$M(_objectSpread$M({}, state.filters), {}, {
|
|
7916
7916
|
query: action.payload
|
|
7917
7917
|
})
|
|
7918
7918
|
});
|
|
@@ -7922,7 +7922,7 @@ function wizardReducer(state, action) {
|
|
|
7922
7922
|
var widgetOrder = action.payload.map(function (w) {
|
|
7923
7923
|
return w.name || w.key;
|
|
7924
7924
|
});
|
|
7925
|
-
return _objectSpread$
|
|
7925
|
+
return _objectSpread$M(_objectSpread$M({}, state), {}, {
|
|
7926
7926
|
selectedWidgets: action.payload,
|
|
7927
7927
|
layout: {
|
|
7928
7928
|
templateKey: templateKey,
|
|
@@ -7942,7 +7942,7 @@ function wizardReducer(state, action) {
|
|
|
7942
7942
|
var toggleWidgetOrder = selectedWidgets.map(function (w) {
|
|
7943
7943
|
return w.name || w.key;
|
|
7944
7944
|
});
|
|
7945
|
-
return _objectSpread$
|
|
7945
|
+
return _objectSpread$M(_objectSpread$M({}, state), {}, {
|
|
7946
7946
|
selectedWidgets: selectedWidgets,
|
|
7947
7947
|
layout: {
|
|
7948
7948
|
templateKey: toggleTemplateKey,
|
|
@@ -7951,29 +7951,29 @@ function wizardReducer(state, action) {
|
|
|
7951
7951
|
});
|
|
7952
7952
|
}
|
|
7953
7953
|
case "SET_SELECTED_DASHBOARD":
|
|
7954
|
-
return _objectSpread$
|
|
7954
|
+
return _objectSpread$M(_objectSpread$M({}, state), {}, {
|
|
7955
7955
|
selectedDashboard: action.payload
|
|
7956
7956
|
});
|
|
7957
7957
|
case "SET_PATH":
|
|
7958
|
-
return _objectSpread$
|
|
7958
|
+
return _objectSpread$M(_objectSpread$M({}, state), {}, {
|
|
7959
7959
|
path: action.payload
|
|
7960
7960
|
});
|
|
7961
7961
|
case "SET_LAYOUT":
|
|
7962
|
-
return _objectSpread$
|
|
7962
|
+
return _objectSpread$M(_objectSpread$M({}, state), {}, {
|
|
7963
7963
|
layout: action.payload
|
|
7964
7964
|
});
|
|
7965
7965
|
case "REORDER_WIDGETS":
|
|
7966
|
-
return _objectSpread$
|
|
7967
|
-
layout: _objectSpread$
|
|
7966
|
+
return _objectSpread$M(_objectSpread$M({}, state), {}, {
|
|
7967
|
+
layout: _objectSpread$M(_objectSpread$M({}, state.layout), {}, {
|
|
7968
7968
|
widgetOrder: action.payload
|
|
7969
7969
|
})
|
|
7970
7970
|
});
|
|
7971
7971
|
case "SET_CUSTOMIZATION":
|
|
7972
|
-
return _objectSpread$
|
|
7973
|
-
customization: _objectSpread$
|
|
7972
|
+
return _objectSpread$M(_objectSpread$M({}, state), {}, {
|
|
7973
|
+
customization: _objectSpread$M(_objectSpread$M({}, state.customization), action.payload)
|
|
7974
7974
|
});
|
|
7975
7975
|
case "RESET":
|
|
7976
|
-
return _objectSpread$
|
|
7976
|
+
return _objectSpread$M({}, initialState);
|
|
7977
7977
|
default:
|
|
7978
7978
|
return state;
|
|
7979
7979
|
}
|
|
@@ -8828,7 +8828,7 @@ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBu
|
|
|
8828
8828
|
var hasPropertyDescriptors_1 = hasPropertyDescriptors;
|
|
8829
8829
|
|
|
8830
8830
|
var keys = objectKeys$2;
|
|
8831
|
-
var hasSymbols$
|
|
8831
|
+
var hasSymbols$5 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
|
|
8832
8832
|
|
|
8833
8833
|
var toStr$4 = Object.prototype.toString;
|
|
8834
8834
|
var concat = Array.prototype.concat;
|
|
@@ -8861,7 +8861,7 @@ var defineProperty$1 = function (object, name, value, predicate) {
|
|
|
8861
8861
|
var defineProperties$1 = function (object, map) {
|
|
8862
8862
|
var predicates = arguments.length > 2 ? arguments[2] : {};
|
|
8863
8863
|
var props = keys(map);
|
|
8864
|
-
if (hasSymbols$
|
|
8864
|
+
if (hasSymbols$5) {
|
|
8865
8865
|
props = concat.call(props, Object.getOwnPropertySymbols(map));
|
|
8866
8866
|
}
|
|
8867
8867
|
for (var i = 0; i < props.length; i += 1) {
|
|
@@ -8927,11 +8927,11 @@ var sign$1 = function sign(number) {
|
|
|
8927
8927
|
};
|
|
8928
8928
|
|
|
8929
8929
|
var shams$1;
|
|
8930
|
-
var hasRequiredShams
|
|
8930
|
+
var hasRequiredShams;
|
|
8931
8931
|
|
|
8932
|
-
function requireShams
|
|
8933
|
-
if (hasRequiredShams
|
|
8934
|
-
hasRequiredShams
|
|
8932
|
+
function requireShams () {
|
|
8933
|
+
if (hasRequiredShams) return shams$1;
|
|
8934
|
+
hasRequiredShams = 1;
|
|
8935
8935
|
|
|
8936
8936
|
/** @type {import('./shams')} */
|
|
8937
8937
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
@@ -8980,10 +8980,10 @@ function requireShams$1 () {
|
|
|
8980
8980
|
}
|
|
8981
8981
|
|
|
8982
8982
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
8983
|
-
var hasSymbolSham = requireShams
|
|
8983
|
+
var hasSymbolSham = requireShams();
|
|
8984
8984
|
|
|
8985
8985
|
/** @type {import('.')} */
|
|
8986
|
-
var hasSymbols$
|
|
8986
|
+
var hasSymbols$4 = function hasNativeSymbols() {
|
|
8987
8987
|
if (typeof origSymbol !== 'function') { return false; }
|
|
8988
8988
|
if (typeof Symbol !== 'function') { return false; }
|
|
8989
8989
|
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
@@ -9287,7 +9287,7 @@ var ThrowTypeError = $gOPD$1
|
|
|
9287
9287
|
}())
|
|
9288
9288
|
: throwTypeError;
|
|
9289
9289
|
|
|
9290
|
-
var hasSymbols$
|
|
9290
|
+
var hasSymbols$3 = hasSymbols$4();
|
|
9291
9291
|
|
|
9292
9292
|
var getProto$2 = getProto$3;
|
|
9293
9293
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
@@ -9305,7 +9305,7 @@ var INTRINSICS = {
|
|
|
9305
9305
|
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
|
|
9306
9306
|
'%Array%': Array,
|
|
9307
9307
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
|
|
9308
|
-
'%ArrayIteratorPrototype%': hasSymbols$
|
|
9308
|
+
'%ArrayIteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2([][Symbol.iterator]()) : undefined$1,
|
|
9309
9309
|
'%AsyncFromSyncIteratorPrototype%': undefined$1,
|
|
9310
9310
|
'%AsyncFunction%': needsEval,
|
|
9311
9311
|
'%AsyncGenerator%': needsEval,
|
|
@@ -9336,10 +9336,10 @@ var INTRINSICS = {
|
|
|
9336
9336
|
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
|
|
9337
9337
|
'%isFinite%': isFinite,
|
|
9338
9338
|
'%isNaN%': isNaN,
|
|
9339
|
-
'%IteratorPrototype%': hasSymbols$
|
|
9339
|
+
'%IteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2(getProto$2([][Symbol.iterator]())) : undefined$1,
|
|
9340
9340
|
'%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
|
|
9341
9341
|
'%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
|
|
9342
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$
|
|
9342
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 || !getProto$2 ? undefined$1 : getProto$2(new Map()[Symbol.iterator]()),
|
|
9343
9343
|
'%Math%': Math,
|
|
9344
9344
|
'%Number%': Number,
|
|
9345
9345
|
'%Object%': $Object$2,
|
|
@@ -9353,11 +9353,11 @@ var INTRINSICS = {
|
|
|
9353
9353
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
|
|
9354
9354
|
'%RegExp%': RegExp,
|
|
9355
9355
|
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
|
|
9356
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$
|
|
9356
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 || !getProto$2 ? undefined$1 : getProto$2(new Set()[Symbol.iterator]()),
|
|
9357
9357
|
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
|
|
9358
9358
|
'%String%': String,
|
|
9359
|
-
'%StringIteratorPrototype%': hasSymbols$
|
|
9360
|
-
'%Symbol%': hasSymbols$
|
|
9359
|
+
'%StringIteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2(''[Symbol.iterator]()) : undefined$1,
|
|
9360
|
+
'%Symbol%': hasSymbols$3 ? Symbol : undefined$1,
|
|
9361
9361
|
'%SyntaxError%': $SyntaxError$1,
|
|
9362
9362
|
'%ThrowTypeError%': ThrowTypeError,
|
|
9363
9363
|
'%TypedArray%': TypedArray,
|
|
@@ -9710,12 +9710,12 @@ var callBound$i = function callBoundIntrinsic(name, allowMissing) {
|
|
|
9710
9710
|
|
|
9711
9711
|
// modified from https://github.com/es-shims/es6-shim
|
|
9712
9712
|
var objectKeys$1 = objectKeys$2;
|
|
9713
|
-
var hasSymbols$
|
|
9713
|
+
var hasSymbols$2 = requireShams()();
|
|
9714
9714
|
var callBound$h = callBound$i;
|
|
9715
9715
|
var $Object$1 = esObjectAtoms;
|
|
9716
9716
|
var $push = callBound$h('Array.prototype.push');
|
|
9717
9717
|
var $propIsEnumerable = callBound$h('Object.prototype.propertyIsEnumerable');
|
|
9718
|
-
var originalGetSymbols = hasSymbols$
|
|
9718
|
+
var originalGetSymbols = hasSymbols$2 ? $Object$1.getOwnPropertySymbols : null;
|
|
9719
9719
|
|
|
9720
9720
|
// eslint-disable-next-line no-unused-vars
|
|
9721
9721
|
var implementation$8 = function assign(target, source1) {
|
|
@@ -9729,7 +9729,7 @@ var implementation$8 = function assign(target, source1) {
|
|
|
9729
9729
|
|
|
9730
9730
|
// step 3.a.ii:
|
|
9731
9731
|
var keys = objectKeys$1(from);
|
|
9732
|
-
var getSymbols = hasSymbols$
|
|
9732
|
+
var getSymbols = hasSymbols$2 && ($Object$1.getOwnPropertySymbols || originalGetSymbols);
|
|
9733
9733
|
if (getSymbols) {
|
|
9734
9734
|
var syms = getSymbols(from);
|
|
9735
9735
|
for (var j = 0; j < syms.length; ++j) {
|
|
@@ -10026,23 +10026,14 @@ var regexp_prototype_flags = flagsBound;
|
|
|
10026
10026
|
|
|
10027
10027
|
var esGetIterator = {exports: {}};
|
|
10028
10028
|
|
|
10029
|
-
var
|
|
10030
|
-
var hasRequiredShams;
|
|
10029
|
+
var hasSymbols$1 = requireShams();
|
|
10031
10030
|
|
|
10032
|
-
|
|
10033
|
-
|
|
10034
|
-
|
|
10035
|
-
|
|
10036
|
-
var hasSymbols = requireShams$1();
|
|
10037
|
-
|
|
10038
|
-
/** @type {import('.')} */
|
|
10039
|
-
shams = function hasToStringTagShams() {
|
|
10040
|
-
return hasSymbols() && !!Symbol.toStringTag;
|
|
10041
|
-
};
|
|
10042
|
-
return shams;
|
|
10043
|
-
}
|
|
10031
|
+
/** @type {import('.')} */
|
|
10032
|
+
var shams = function hasToStringTagShams() {
|
|
10033
|
+
return hasSymbols$1() && !!Symbol.toStringTag;
|
|
10034
|
+
};
|
|
10044
10035
|
|
|
10045
|
-
var hasToStringTag$7 =
|
|
10036
|
+
var hasToStringTag$7 = shams();
|
|
10046
10037
|
var callBound$f = callBound$i;
|
|
10047
10038
|
|
|
10048
10039
|
var $toString$7 = callBound$f('Object.prototype.toString');
|
|
@@ -11079,7 +11070,7 @@ var tryStringObject = function tryStringObject(value) {
|
|
|
11079
11070
|
/** @type {(receiver: ThisParameterType<typeof Object.prototype.toString>, ...args: Parameters<typeof Object.prototype.toString>) => ReturnType<typeof Object.prototype.toString>} */
|
|
11080
11071
|
var $toString$6 = callBound$c('Object.prototype.toString');
|
|
11081
11072
|
var strClass = '[object String]';
|
|
11082
|
-
var hasToStringTag$6 =
|
|
11073
|
+
var hasToStringTag$6 = shams();
|
|
11083
11074
|
|
|
11084
11075
|
/** @type {import('.')} */
|
|
11085
11076
|
var isString$2 = function isString(value) {
|
|
@@ -11195,7 +11186,7 @@ var isSet$2 = exported$1 || function isSet(x) {
|
|
|
11195
11186
|
var isArguments$1 = isArguments$2;
|
|
11196
11187
|
var getStopIterationIterator = stopIterationIterator;
|
|
11197
11188
|
|
|
11198
|
-
if (hasSymbols$
|
|
11189
|
+
if (hasSymbols$4() || requireShams()()) {
|
|
11199
11190
|
var $iterator = Symbol.iterator;
|
|
11200
11191
|
// Symbol is available natively or shammed
|
|
11201
11192
|
// natively:
|
|
@@ -11484,7 +11475,7 @@ var tryDateObject = function tryDateGetDayCall(value) {
|
|
|
11484
11475
|
/** @type {(value: unknown) => string} */
|
|
11485
11476
|
var toStr$2 = callBound$9('Object.prototype.toString');
|
|
11486
11477
|
var dateClass = '[object Date]';
|
|
11487
|
-
var hasToStringTag$5 =
|
|
11478
|
+
var hasToStringTag$5 = shams();
|
|
11488
11479
|
|
|
11489
11480
|
/** @type {import('.')} */
|
|
11490
11481
|
var isDateObject = function isDateObject(value) {
|
|
@@ -11495,7 +11486,7 @@ var isDateObject = function isDateObject(value) {
|
|
|
11495
11486
|
};
|
|
11496
11487
|
|
|
11497
11488
|
var callBound$8 = callBound$i;
|
|
11498
|
-
var hasToStringTag$4 =
|
|
11489
|
+
var hasToStringTag$4 = shams();
|
|
11499
11490
|
var hasOwn = hasown;
|
|
11500
11491
|
var gOPD$1 = gopd$1;
|
|
11501
11492
|
|
|
@@ -11600,7 +11591,7 @@ var tryNumberObject = function tryNumberObject(value) {
|
|
|
11600
11591
|
};
|
|
11601
11592
|
var $toString$3 = callBound$6('Object.prototype.toString');
|
|
11602
11593
|
var numClass = '[object Number]';
|
|
11603
|
-
var hasToStringTag$3 =
|
|
11594
|
+
var hasToStringTag$3 = shams();
|
|
11604
11595
|
|
|
11605
11596
|
/** @type {import('.')} */
|
|
11606
11597
|
var isNumberObject = function isNumberObject(value) {
|
|
@@ -11627,7 +11618,7 @@ var tryBooleanObject = function booleanBrandCheck(value) {
|
|
|
11627
11618
|
}
|
|
11628
11619
|
};
|
|
11629
11620
|
var boolClass = '[object Boolean]';
|
|
11630
|
-
var hasToStringTag$2 =
|
|
11621
|
+
var hasToStringTag$2 = shams();
|
|
11631
11622
|
|
|
11632
11623
|
/** @type {import('.')} */
|
|
11633
11624
|
var isBooleanObject = function isBoolean(value) {
|
|
@@ -11669,7 +11660,7 @@ function requireSafeRegexTest () {
|
|
|
11669
11660
|
|
|
11670
11661
|
var callBound$4 = callBound$i;
|
|
11671
11662
|
var $toString$1 = callBound$4('Object.prototype.toString');
|
|
11672
|
-
var hasSymbols = hasSymbols$
|
|
11663
|
+
var hasSymbols = hasSymbols$4();
|
|
11673
11664
|
var safeRegexTest = requireSafeRegexTest();
|
|
11674
11665
|
|
|
11675
11666
|
if (hasSymbols) {
|
|
@@ -12115,7 +12106,7 @@ var gOPD = gopd$1;
|
|
|
12115
12106
|
var getProto = getProto$3;
|
|
12116
12107
|
|
|
12117
12108
|
var $toString = callBound$2('Object.prototype.toString');
|
|
12118
|
-
var hasToStringTag =
|
|
12109
|
+
var hasToStringTag = shams();
|
|
12119
12110
|
|
|
12120
12111
|
var g = typeof globalThis === 'undefined' ? commonjsGlobal : globalThis;
|
|
12121
12112
|
var typedArrays = availableTypedArrays();
|
|
@@ -12634,8 +12625,8 @@ var deepEqual = function deepEqual(a, b, opts) {
|
|
|
12634
12625
|
|
|
12635
12626
|
var deepEqual$1 = /*@__PURE__*/getDefaultExportFromCjs(deepEqual);
|
|
12636
12627
|
|
|
12637
|
-
function ownKeys$
|
|
12638
|
-
function _objectSpread$
|
|
12628
|
+
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; }
|
|
12629
|
+
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; }
|
|
12639
12630
|
var PanelEditItem = function PanelEditItem(_ref) {
|
|
12640
12631
|
var _ComponentManager$get;
|
|
12641
12632
|
var workspace = _ref.workspace,
|
|
@@ -12695,7 +12686,7 @@ var PanelEditItem = function PanelEditItem(_ref) {
|
|
|
12695
12686
|
var uuid = newItem.uuid || newItem.uuidString;
|
|
12696
12687
|
if (uuid) {
|
|
12697
12688
|
workspaceTemp.selectedProviders = workspaceTemp.selectedProviders || {};
|
|
12698
|
-
workspaceTemp.selectedProviders[uuid] = _objectSpread$
|
|
12689
|
+
workspaceTemp.selectedProviders[uuid] = _objectSpread$L(_objectSpread$L({}, workspaceTemp.selectedProviders[uuid] || {}), {}, _defineProperty({}, providerType, providerId));
|
|
12699
12690
|
}
|
|
12700
12691
|
onUpdate(newItem, workspaceTemp);
|
|
12701
12692
|
forceUpdate();
|
|
@@ -12824,7 +12815,7 @@ var PanelEditItem = function PanelEditItem(_ref) {
|
|
|
12824
12815
|
var _ref5 = _slicedToArray(_ref4, 2),
|
|
12825
12816
|
name = _ref5[0],
|
|
12826
12817
|
p = _ref5[1];
|
|
12827
|
-
return _objectSpread$
|
|
12818
|
+
return _objectSpread$L({
|
|
12828
12819
|
name: name
|
|
12829
12820
|
}, p);
|
|
12830
12821
|
});
|
|
@@ -12866,11 +12857,11 @@ var PanelEditItem = function PanelEditItem(_ref) {
|
|
|
12866
12857
|
};
|
|
12867
12858
|
|
|
12868
12859
|
var _excluded$5 = ["rows", "cols"];
|
|
12869
|
-
function _createForOfIteratorHelper$
|
|
12870
|
-
function _unsupportedIterableToArray$
|
|
12871
|
-
function _arrayLikeToArray$
|
|
12872
|
-
function ownKeys$
|
|
12873
|
-
function _objectSpread$
|
|
12860
|
+
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; } } }; }
|
|
12861
|
+
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; } }
|
|
12862
|
+
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; }
|
|
12863
|
+
function ownKeys$K(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; }
|
|
12864
|
+
function _objectSpread$K(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$K(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$K(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12874
12865
|
var defaultGrid = {
|
|
12875
12866
|
rows: 1,
|
|
12876
12867
|
cols: 1,
|
|
@@ -12891,7 +12882,7 @@ function GridEditor(_ref) {
|
|
|
12891
12882
|
setGrid = _useState2[1];
|
|
12892
12883
|
var addRow = function addRow() {
|
|
12893
12884
|
var newRow = grid.rows;
|
|
12894
|
-
var newGrid = _objectSpread$
|
|
12885
|
+
var newGrid = _objectSpread$K(_objectSpread$K({}, grid), {}, {
|
|
12895
12886
|
rows: grid.rows + 1
|
|
12896
12887
|
});
|
|
12897
12888
|
for (var col = 0; col < grid.cols; col++) {
|
|
@@ -12906,7 +12897,7 @@ function GridEditor(_ref) {
|
|
|
12906
12897
|
};
|
|
12907
12898
|
var addColumn = function addColumn() {
|
|
12908
12899
|
var newCol = grid.cols;
|
|
12909
|
-
var newGrid = _objectSpread$
|
|
12900
|
+
var newGrid = _objectSpread$K(_objectSpread$K({}, grid), {}, {
|
|
12910
12901
|
cols: grid.cols + 1
|
|
12911
12902
|
});
|
|
12912
12903
|
for (var row = 0; row < grid.rows; row++) {
|
|
@@ -12939,8 +12930,8 @@ function GridEditor(_ref) {
|
|
|
12939
12930
|
});
|
|
12940
12931
|
}
|
|
12941
12932
|
if (grid[nextKey]) {
|
|
12942
|
-
var newGrid = _objectSpread$
|
|
12943
|
-
newGrid[currentKey] = _objectSpread$
|
|
12933
|
+
var newGrid = _objectSpread$K({}, grid);
|
|
12934
|
+
newGrid[currentKey] = _objectSpread$K(_objectSpread$K({}, newGrid[currentKey]), {}, {
|
|
12944
12935
|
colSpan: newGrid[currentKey].colSpan + 1
|
|
12945
12936
|
});
|
|
12946
12937
|
delete newGrid[nextKey];
|
|
@@ -12953,8 +12944,8 @@ function GridEditor(_ref) {
|
|
|
12953
12944
|
var currentKey = "".concat(row, ".").concat(col);
|
|
12954
12945
|
var belowKey = "".concat(row + 1, ".").concat(col);
|
|
12955
12946
|
if (grid[belowKey]) {
|
|
12956
|
-
var newGrid = _objectSpread$
|
|
12957
|
-
newGrid[currentKey] = _objectSpread$
|
|
12947
|
+
var newGrid = _objectSpread$K({}, grid);
|
|
12948
|
+
newGrid[currentKey] = _objectSpread$K(_objectSpread$K({}, newGrid[currentKey]), {}, {
|
|
12958
12949
|
rowSpan: newGrid[currentKey].rowSpan + 1
|
|
12959
12950
|
});
|
|
12960
12951
|
delete newGrid[belowKey];
|
|
@@ -12971,7 +12962,7 @@ function GridEditor(_ref) {
|
|
|
12971
12962
|
var splitCell = function splitCell(row, col) {
|
|
12972
12963
|
var key = "".concat(row, ".").concat(col);
|
|
12973
12964
|
var cell = grid[key];
|
|
12974
|
-
var newGrid = _objectSpread$
|
|
12965
|
+
var newGrid = _objectSpread$K({}, grid);
|
|
12975
12966
|
|
|
12976
12967
|
// we have to check the colspan, and since the colspan is greater than 1
|
|
12977
12968
|
// Only handle horizontal split if colSpan > 1
|
|
@@ -12987,13 +12978,13 @@ function GridEditor(_ref) {
|
|
|
12987
12978
|
var oldKey = "".concat(row, ".").concat(c);
|
|
12988
12979
|
var newKey = "".concat(row, ".").concat(c + 1);
|
|
12989
12980
|
if (newGrid[oldKey]) {
|
|
12990
|
-
newGrid[newKey] = _objectSpread$
|
|
12981
|
+
newGrid[newKey] = _objectSpread$K({}, newGrid[oldKey]);
|
|
12991
12982
|
delete newGrid[oldKey];
|
|
12992
12983
|
}
|
|
12993
12984
|
}
|
|
12994
12985
|
|
|
12995
12986
|
// Update the original cell's colSpan
|
|
12996
|
-
newGrid[key] = _objectSpread$
|
|
12987
|
+
newGrid[key] = _objectSpread$K(_objectSpread$K({}, cell), {}, {
|
|
12997
12988
|
colSpan: cell.colSpan - 1
|
|
12998
12989
|
});
|
|
12999
12990
|
|
|
@@ -13005,7 +12996,7 @@ function GridEditor(_ref) {
|
|
|
13005
12996
|
};
|
|
13006
12997
|
}
|
|
13007
12998
|
if (cell.rowSpan > 1) {
|
|
13008
|
-
newGrid[key] = _objectSpread$
|
|
12999
|
+
newGrid[key] = _objectSpread$K(_objectSpread$K({}, newGrid[key]), {}, {
|
|
13009
13000
|
rowSpan: cell.rowSpan - 1
|
|
13010
13001
|
});
|
|
13011
13002
|
newGrid["".concat(row + 1, ".").concat(col)] = {
|
|
@@ -13021,7 +13012,7 @@ function GridEditor(_ref) {
|
|
|
13021
13012
|
function sortObjectByKeys(obj) {
|
|
13022
13013
|
var sortedKeys = Object.keys(obj).sort();
|
|
13023
13014
|
var sortedObj = {};
|
|
13024
|
-
var _iterator = _createForOfIteratorHelper$
|
|
13015
|
+
var _iterator = _createForOfIteratorHelper$l(sortedKeys),
|
|
13025
13016
|
_step;
|
|
13026
13017
|
try {
|
|
13027
13018
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -13124,7 +13115,7 @@ function GridEditor(_ref) {
|
|
|
13124
13115
|
var fromKey = "".concat(from.row, ".").concat(from.col);
|
|
13125
13116
|
var toKey = "".concat(to.row, ".").concat(to.col);
|
|
13126
13117
|
if (fromKey === toKey) return;
|
|
13127
|
-
var newGrid = _objectSpread$
|
|
13118
|
+
var newGrid = _objectSpread$K({}, grid);
|
|
13128
13119
|
|
|
13129
13120
|
// Swap the cells
|
|
13130
13121
|
var temp = newGrid[fromKey];
|
|
@@ -13150,7 +13141,7 @@ function GridEditor(_ref) {
|
|
|
13150
13141
|
// console.log("Grid updated:", sequencedGrid);
|
|
13151
13142
|
}
|
|
13152
13143
|
function resetGridLayout() {
|
|
13153
|
-
var newGrid = _objectSpread$
|
|
13144
|
+
var newGrid = _objectSpread$K({}, defaultGrid);
|
|
13154
13145
|
setGrid(newGrid);
|
|
13155
13146
|
onUpdate(newGrid);
|
|
13156
13147
|
}
|
|
@@ -13428,8 +13419,8 @@ var PanelEditItemGrid = function PanelEditItemGrid(_ref) {
|
|
|
13428
13419
|
});
|
|
13429
13420
|
};
|
|
13430
13421
|
|
|
13431
|
-
function ownKeys$
|
|
13432
|
-
function _objectSpread$
|
|
13422
|
+
function ownKeys$J(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; }
|
|
13423
|
+
function _objectSpread$J(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$J(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$J(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13433
13424
|
var PanelEditItemNotifications = function PanelEditItemNotifications(_ref) {
|
|
13434
13425
|
var item = _ref.item;
|
|
13435
13426
|
_ref.workspace;
|
|
@@ -13452,7 +13443,7 @@ var PanelEditItemNotifications = function PanelEditItemNotifications(_ref) {
|
|
|
13452
13443
|
}, [widgetUuid, notificationDefs.length]);
|
|
13453
13444
|
function handleNotifToggle(typeKey, value) {
|
|
13454
13445
|
var _window$mainApi2;
|
|
13455
|
-
var updated = _objectSpread$
|
|
13446
|
+
var updated = _objectSpread$J(_objectSpread$J({}, notifPrefs), {}, _defineProperty({}, typeKey, value));
|
|
13456
13447
|
setNotifPrefs(updated);
|
|
13457
13448
|
if ((_window$mainApi2 = window.mainApi) !== null && _window$mainApi2 !== void 0 && (_window$mainApi2 = _window$mainApi2.notifications) !== null && _window$mainApi2 !== void 0 && _window$mainApi2.setPreferences && widgetUuid) {
|
|
13458
13449
|
window.mainApi.notifications.setPreferences(widgetUuid, _defineProperty({}, typeKey, value));
|
|
@@ -13494,11 +13485,11 @@ var PanelEditItemNotifications = function PanelEditItemNotifications(_ref) {
|
|
|
13494
13485
|
});
|
|
13495
13486
|
};
|
|
13496
13487
|
|
|
13497
|
-
function _createForOfIteratorHelper$
|
|
13498
|
-
function _unsupportedIterableToArray$
|
|
13499
|
-
function _arrayLikeToArray$
|
|
13500
|
-
function ownKeys$
|
|
13501
|
-
function _objectSpread$
|
|
13488
|
+
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; } } }; }
|
|
13489
|
+
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; } }
|
|
13490
|
+
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; }
|
|
13491
|
+
function ownKeys$I(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; }
|
|
13492
|
+
function _objectSpread$I(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$I(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$I(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13502
13493
|
var DAYS = [{
|
|
13503
13494
|
key: "mon",
|
|
13504
13495
|
label: "Mon"
|
|
@@ -13599,7 +13590,7 @@ function TaskScheduleEditor(_ref) {
|
|
|
13599
13590
|
var _window$mainApi;
|
|
13600
13591
|
var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
13601
13592
|
if (!((_window$mainApi = window.mainApi) !== null && _window$mainApi !== void 0 && (_window$mainApi = _window$mainApi.scheduler) !== null && _window$mainApi !== void 0 && _window$mainApi.registerTask)) return;
|
|
13602
|
-
var payload = _objectSpread$
|
|
13593
|
+
var payload = _objectSpread$I({
|
|
13603
13594
|
widgetId: widgetId,
|
|
13604
13595
|
widgetName: widgetName,
|
|
13605
13596
|
workspaceId: workspaceId || "",
|
|
@@ -13825,7 +13816,7 @@ var PanelEditItemSchedule = function PanelEditItemSchedule(_ref2) {
|
|
|
13825
13816
|
setIsLoading(true);
|
|
13826
13817
|
window.mainApi.scheduler.getTasks(widgetUuid).then(function (tasks) {
|
|
13827
13818
|
var stateMap = {};
|
|
13828
|
-
var _iterator = _createForOfIteratorHelper$
|
|
13819
|
+
var _iterator = _createForOfIteratorHelper$k(tasks || []),
|
|
13829
13820
|
_step;
|
|
13830
13821
|
try {
|
|
13831
13822
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -15884,8 +15875,8 @@ var WidgetIcon = function WidgetIcon(_ref) {
|
|
|
15884
15875
|
});
|
|
15885
15876
|
};
|
|
15886
15877
|
|
|
15887
|
-
function ownKeys$
|
|
15888
|
-
function _objectSpread$
|
|
15878
|
+
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; }
|
|
15879
|
+
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; }
|
|
15889
15880
|
var ProviderForm = function ProviderForm(_ref) {
|
|
15890
15881
|
var credentialSchema = _ref.credentialSchema,
|
|
15891
15882
|
_ref$initialValues = _ref.initialValues,
|
|
@@ -15930,14 +15921,14 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
15930
15921
|
var oldKey = f.key;
|
|
15931
15922
|
if (oldKey && formData[oldKey] !== undefined) {
|
|
15932
15923
|
setFormData(function (fd) {
|
|
15933
|
-
var updated = _objectSpread$
|
|
15924
|
+
var updated = _objectSpread$H({}, fd);
|
|
15934
15925
|
var val = updated[oldKey];
|
|
15935
15926
|
delete updated[oldKey];
|
|
15936
15927
|
if (newKey.trim()) updated[newKey] = val;
|
|
15937
15928
|
return updated;
|
|
15938
15929
|
});
|
|
15939
15930
|
}
|
|
15940
|
-
return _objectSpread$
|
|
15931
|
+
return _objectSpread$H(_objectSpread$H({}, f), {}, {
|
|
15941
15932
|
key: newKey
|
|
15942
15933
|
});
|
|
15943
15934
|
});
|
|
@@ -15949,14 +15940,14 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
15949
15940
|
});
|
|
15950
15941
|
if (field !== null && field !== void 0 && field.key) {
|
|
15951
15942
|
setFormData(function (prev) {
|
|
15952
|
-
return _objectSpread$
|
|
15943
|
+
return _objectSpread$H(_objectSpread$H({}, prev), {}, _defineProperty({}, field.key, value));
|
|
15953
15944
|
});
|
|
15954
15945
|
}
|
|
15955
15946
|
};
|
|
15956
15947
|
var handleDynamicSecretToggle = function handleDynamicSecretToggle(id) {
|
|
15957
15948
|
setDynamicFields(function (prev) {
|
|
15958
15949
|
return prev.map(function (f) {
|
|
15959
|
-
return f.id === id ? _objectSpread$
|
|
15950
|
+
return f.id === id ? _objectSpread$H(_objectSpread$H({}, f), {}, {
|
|
15960
15951
|
secret: !f.secret
|
|
15961
15952
|
}) : f;
|
|
15962
15953
|
});
|
|
@@ -15978,7 +15969,7 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
15978
15969
|
});
|
|
15979
15970
|
if (field !== null && field !== void 0 && field.key) {
|
|
15980
15971
|
setFormData(function (prev) {
|
|
15981
|
-
var updated = _objectSpread$
|
|
15972
|
+
var updated = _objectSpread$H({}, prev);
|
|
15982
15973
|
delete updated[field.key];
|
|
15983
15974
|
return updated;
|
|
15984
15975
|
});
|
|
@@ -16020,13 +16011,13 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
16020
16011
|
*/
|
|
16021
16012
|
var handleInputChange = function handleInputChange(fieldName, value) {
|
|
16022
16013
|
setFormData(function (prev) {
|
|
16023
|
-
return _objectSpread$
|
|
16014
|
+
return _objectSpread$H(_objectSpread$H({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
16024
16015
|
});
|
|
16025
16016
|
|
|
16026
16017
|
// Clear error for this field if it was filled
|
|
16027
16018
|
if (errors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
16028
16019
|
setErrors(function (prev) {
|
|
16029
|
-
var newErrors = _objectSpread$
|
|
16020
|
+
var newErrors = _objectSpread$H({}, prev);
|
|
16030
16021
|
delete newErrors[fieldName];
|
|
16031
16022
|
return newErrors;
|
|
16032
16023
|
});
|
|
@@ -16064,7 +16055,7 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
16064
16055
|
// Clear error if filled
|
|
16065
16056
|
if (errors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
16066
16057
|
setErrors(function (prev) {
|
|
16067
|
-
var newErrors = _objectSpread$
|
|
16058
|
+
var newErrors = _objectSpread$H({}, prev);
|
|
16068
16059
|
delete newErrors.providerName;
|
|
16069
16060
|
return newErrors;
|
|
16070
16061
|
});
|
|
@@ -16301,8 +16292,8 @@ var ToolSelector$1 = function ToolSelector(_ref) {
|
|
|
16301
16292
|
});
|
|
16302
16293
|
};
|
|
16303
16294
|
|
|
16304
|
-
function ownKeys$
|
|
16305
|
-
function _objectSpread$
|
|
16295
|
+
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; }
|
|
16296
|
+
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; }
|
|
16306
16297
|
/**
|
|
16307
16298
|
* Shared MCP utility functions.
|
|
16308
16299
|
*
|
|
@@ -16430,7 +16421,7 @@ function buildMcpConfigFromOverrides(baseMcpConfig, envMappingRows, headerRows)
|
|
|
16430
16421
|
headerTemplate[name] = value;
|
|
16431
16422
|
}
|
|
16432
16423
|
});
|
|
16433
|
-
var config = _objectSpread$
|
|
16424
|
+
var config = _objectSpread$G({}, baseMcpConfig);
|
|
16434
16425
|
if (Object.keys(headerTemplate).length > 0) {
|
|
16435
16426
|
config.headerTemplate = headerTemplate;
|
|
16436
16427
|
} else {
|
|
@@ -16448,7 +16439,7 @@ function buildMcpConfigFromOverrides(baseMcpConfig, envMappingRows, headerRows)
|
|
|
16448
16439
|
envMapping[env] = cred;
|
|
16449
16440
|
}
|
|
16450
16441
|
});
|
|
16451
|
-
return _objectSpread$
|
|
16442
|
+
return _objectSpread$G(_objectSpread$G({}, baseMcpConfig), {}, {
|
|
16452
16443
|
envMapping: envMapping
|
|
16453
16444
|
});
|
|
16454
16445
|
}
|
|
@@ -16689,11 +16680,11 @@ var getUserConfigurableProviders = function getUserConfigurableProviders(provide
|
|
|
16689
16680
|
});
|
|
16690
16681
|
};
|
|
16691
16682
|
|
|
16692
|
-
function _createForOfIteratorHelper$
|
|
16693
|
-
function _unsupportedIterableToArray$
|
|
16694
|
-
function _arrayLikeToArray$
|
|
16695
|
-
function ownKeys$
|
|
16696
|
-
function _objectSpread$
|
|
16683
|
+
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; } } }; }
|
|
16684
|
+
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; } }
|
|
16685
|
+
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; }
|
|
16686
|
+
function ownKeys$F(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; }
|
|
16687
|
+
function _objectSpread$F(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$F(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$F(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16697
16688
|
var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
16698
16689
|
var isOpen = _ref.isOpen,
|
|
16699
16690
|
onClose = _ref.onClose,
|
|
@@ -16888,7 +16879,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
16888
16879
|
.map(function (entry) {
|
|
16889
16880
|
var widget = allWidgets[entry.widgetKey];
|
|
16890
16881
|
if (!widget) return null; // Widget no longer exists
|
|
16891
|
-
return _objectSpread$
|
|
16882
|
+
return _objectSpread$F(_objectSpread$F({
|
|
16892
16883
|
key: entry.widgetKey
|
|
16893
16884
|
}, widget), {}, {
|
|
16894
16885
|
savedProviders: entry.providers || {},
|
|
@@ -16976,11 +16967,11 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
16976
16967
|
|
|
16977
16968
|
// Flatten all widgets from all packages for the widget list
|
|
16978
16969
|
flatWidgets = [];
|
|
16979
|
-
_iterator = _createForOfIteratorHelper$
|
|
16970
|
+
_iterator = _createForOfIteratorHelper$j(result.packages || []);
|
|
16980
16971
|
try {
|
|
16981
16972
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
16982
16973
|
pkg = _step.value;
|
|
16983
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
16974
|
+
_iterator2 = _createForOfIteratorHelper$j(pkg.widgets || []);
|
|
16984
16975
|
try {
|
|
16985
16976
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
16986
16977
|
widget = _step2.value;
|
|
@@ -17039,7 +17030,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17039
17030
|
// Get widgets from ComponentManager
|
|
17040
17031
|
var allWidgets = ComponentManager.map();
|
|
17041
17032
|
var widgetList = Object.keys(allWidgets).map(function (key) {
|
|
17042
|
-
return _objectSpread$
|
|
17033
|
+
return _objectSpread$F({
|
|
17043
17034
|
key: key
|
|
17044
17035
|
}, allWidgets[key]);
|
|
17045
17036
|
}).filter(function (widget) {
|
|
@@ -17270,7 +17261,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17270
17261
|
setInlineCreateType(null);
|
|
17271
17262
|
setInlineCreateSchema({});
|
|
17272
17263
|
setInlineCreateError(null);
|
|
17273
|
-
setSelectedProviders(_objectSpread$
|
|
17264
|
+
setSelectedProviders(_objectSpread$F(_objectSpread$F({}, selectedProviders), {}, _defineProperty({}, providerType, providerName)));
|
|
17274
17265
|
}
|
|
17275
17266
|
};
|
|
17276
17267
|
var handleInlineProviderSubmit = function handleInlineProviderSubmit(formData) {
|
|
@@ -17291,7 +17282,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17291
17282
|
|
|
17292
17283
|
// Auto-select the newly created provider
|
|
17293
17284
|
setSelectedProviders(function (prev) {
|
|
17294
|
-
return _objectSpread$
|
|
17285
|
+
return _objectSpread$F(_objectSpread$F({}, prev), {}, _defineProperty({}, providerType, providerName));
|
|
17295
17286
|
});
|
|
17296
17287
|
|
|
17297
17288
|
// Collapse the inline form
|
|
@@ -17345,11 +17336,11 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17345
17336
|
};
|
|
17346
17337
|
var inlineHandleCredentialChange = function inlineHandleCredentialChange(fieldName, value) {
|
|
17347
17338
|
setInlineCredentialData(function (prev) {
|
|
17348
|
-
return _objectSpread$
|
|
17339
|
+
return _objectSpread$F(_objectSpread$F({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
17349
17340
|
});
|
|
17350
17341
|
if (inlineFormErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
17351
17342
|
setInlineFormErrors(function (prev) {
|
|
17352
|
-
var next = _objectSpread$
|
|
17343
|
+
var next = _objectSpread$F({}, prev);
|
|
17353
17344
|
delete next[fieldName];
|
|
17354
17345
|
return next;
|
|
17355
17346
|
});
|
|
@@ -17442,7 +17433,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17442
17433
|
refreshProviders();
|
|
17443
17434
|
}
|
|
17444
17435
|
setSelectedProviders(function (prev) {
|
|
17445
|
-
return _objectSpread$
|
|
17436
|
+
return _objectSpread$F(_objectSpread$F({}, prev), {}, _defineProperty({}, providerType, providerName));
|
|
17446
17437
|
});
|
|
17447
17438
|
|
|
17448
17439
|
// Reset stepper state
|
|
@@ -17463,7 +17454,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17463
17454
|
});
|
|
17464
17455
|
};
|
|
17465
17456
|
var handleConfigChange = function handleConfigChange(key, value) {
|
|
17466
|
-
setUserConfigValues(_objectSpread$
|
|
17457
|
+
setUserConfigValues(_objectSpread$F(_objectSpread$F({}, userConfigValues), {}, _defineProperty({}, key, value)));
|
|
17467
17458
|
};
|
|
17468
17459
|
|
|
17469
17460
|
// Install a package from the registry
|
|
@@ -17529,7 +17520,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17529
17520
|
// Mark items as installed
|
|
17530
17521
|
setProgressWidgets(function (prev) {
|
|
17531
17522
|
return prev.map(function (w) {
|
|
17532
|
-
return _objectSpread$
|
|
17523
|
+
return _objectSpread$F(_objectSpread$F({}, w), {}, {
|
|
17533
17524
|
status: "installed"
|
|
17534
17525
|
});
|
|
17535
17526
|
});
|
|
@@ -17548,7 +17539,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17548
17539
|
setInstallError(msg);
|
|
17549
17540
|
setProgressWidgets(function (prev) {
|
|
17550
17541
|
return prev.map(function (w) {
|
|
17551
|
-
return _objectSpread$
|
|
17542
|
+
return _objectSpread$F(_objectSpread$F({}, w), {}, {
|
|
17552
17543
|
status: "failed",
|
|
17553
17544
|
error: msg
|
|
17554
17545
|
});
|
|
@@ -17622,7 +17613,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17622
17613
|
|
|
17623
17614
|
// Phase 3: Save to recent widgets
|
|
17624
17615
|
saveToRecent(selectedWidget, selectedProviders, userConfigValues);
|
|
17625
|
-
onSelectWidget(_objectSpread$
|
|
17616
|
+
onSelectWidget(_objectSpread$F(_objectSpread$F({}, selectedWidget), {}, {
|
|
17626
17617
|
selectedProviders: selectedProviders,
|
|
17627
17618
|
// Pass to parent
|
|
17628
17619
|
userConfigValues: userConfigValues // Pass to parent
|
|
@@ -18259,7 +18250,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
18259
18250
|
setInlineProviderName(value);
|
|
18260
18251
|
if (inlineFormErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
18261
18252
|
setInlineFormErrors(function (prev) {
|
|
18262
|
-
var next = _objectSpread$
|
|
18253
|
+
var next = _objectSpread$F({}, prev);
|
|
18263
18254
|
delete next.providerName;
|
|
18264
18255
|
return next;
|
|
18265
18256
|
});
|
|
@@ -18618,9 +18609,9 @@ var ProviderBadge = function ProviderBadge(_ref) {
|
|
|
18618
18609
|
});
|
|
18619
18610
|
};
|
|
18620
18611
|
|
|
18621
|
-
function _createForOfIteratorHelper$
|
|
18622
|
-
function _unsupportedIterableToArray$
|
|
18623
|
-
function _arrayLikeToArray$
|
|
18612
|
+
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; } } }; }
|
|
18613
|
+
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; } }
|
|
18614
|
+
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; }
|
|
18624
18615
|
var WidgetCardHeader = function WidgetCardHeader(_ref) {
|
|
18625
18616
|
var item = _ref.item,
|
|
18626
18617
|
widget = _ref.widget,
|
|
@@ -18665,7 +18656,7 @@ var WidgetCardHeader = function WidgetCardHeader(_ref) {
|
|
|
18665
18656
|
var el = headerRef.current;
|
|
18666
18657
|
if (!el) return;
|
|
18667
18658
|
var observer = new ResizeObserver(function (entries) {
|
|
18668
|
-
var _iterator = _createForOfIteratorHelper$
|
|
18659
|
+
var _iterator = _createForOfIteratorHelper$i(entries),
|
|
18669
18660
|
_step;
|
|
18670
18661
|
try {
|
|
18671
18662
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -19057,9 +19048,9 @@ var useWidgetSchedulerStatus = function useWidgetSchedulerStatus(widgetId) {
|
|
|
19057
19048
|
};
|
|
19058
19049
|
};
|
|
19059
19050
|
|
|
19060
|
-
function _createForOfIteratorHelper$
|
|
19061
|
-
function _unsupportedIterableToArray$
|
|
19062
|
-
function _arrayLikeToArray$
|
|
19051
|
+
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; } } }; }
|
|
19052
|
+
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; } }
|
|
19053
|
+
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; }
|
|
19063
19054
|
function formatCountdown(ms) {
|
|
19064
19055
|
if (ms == null || ms < 0) return "--";
|
|
19065
19056
|
if (ms < 1000) return "< 1s";
|
|
@@ -19176,7 +19167,7 @@ var WidgetCardStatusBar = function WidgetCardStatusBar(_ref) {
|
|
|
19176
19167
|
|
|
19177
19168
|
// Find soonest countdown among enabled tasks
|
|
19178
19169
|
var soonestMs = null;
|
|
19179
|
-
var _iterator = _createForOfIteratorHelper$
|
|
19170
|
+
var _iterator = _createForOfIteratorHelper$h(enabledTasks),
|
|
19180
19171
|
_step;
|
|
19181
19172
|
try {
|
|
19182
19173
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -19629,8 +19620,8 @@ var ProviderSelector = function ProviderSelector(_ref) {
|
|
|
19629
19620
|
});
|
|
19630
19621
|
};
|
|
19631
19622
|
|
|
19632
|
-
function ownKeys$
|
|
19633
|
-
function _objectSpread$
|
|
19623
|
+
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; }
|
|
19624
|
+
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; }
|
|
19634
19625
|
var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
19635
19626
|
var transport = _ref.transport,
|
|
19636
19627
|
envMappingRows = _ref.envMappingRows,
|
|
@@ -19659,7 +19650,7 @@ var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
|
19659
19650
|
var updateEnvRow = function updateEnvRow(id, field, value) {
|
|
19660
19651
|
onEnvMappingRowsChange(function (prev) {
|
|
19661
19652
|
return prev.map(function (row) {
|
|
19662
|
-
return row.id === id ? _objectSpread$
|
|
19653
|
+
return row.id === id ? _objectSpread$E(_objectSpread$E({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
19663
19654
|
});
|
|
19664
19655
|
});
|
|
19665
19656
|
};
|
|
@@ -19684,7 +19675,7 @@ var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
|
19684
19675
|
var updateHeaderRow = function updateHeaderRow(id, field, value) {
|
|
19685
19676
|
onHeaderRowsChange(function (prev) {
|
|
19686
19677
|
return prev.map(function (row) {
|
|
19687
|
-
return row.id === id ? _objectSpread$
|
|
19678
|
+
return row.id === id ? _objectSpread$E(_objectSpread$E({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
19688
19679
|
});
|
|
19689
19680
|
});
|
|
19690
19681
|
};
|
|
@@ -19833,8 +19824,8 @@ var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
|
19833
19824
|
});
|
|
19834
19825
|
};
|
|
19835
19826
|
|
|
19836
|
-
function ownKeys$
|
|
19837
|
-
function _objectSpread$
|
|
19827
|
+
function ownKeys$D(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; }
|
|
19828
|
+
function _objectSpread$D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$D(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19838
19829
|
var McpServerPicker = function McpServerPicker(_ref) {
|
|
19839
19830
|
var _testResult$tools;
|
|
19840
19831
|
var isOpen = _ref.isOpen,
|
|
@@ -20013,11 +20004,11 @@ var McpServerPicker = function McpServerPicker(_ref) {
|
|
|
20013
20004
|
// Handle credential field changes
|
|
20014
20005
|
var handleCredentialChange = function handleCredentialChange(fieldName, value) {
|
|
20015
20006
|
setCredentialData(function (prev) {
|
|
20016
|
-
return _objectSpread$
|
|
20007
|
+
return _objectSpread$D(_objectSpread$D({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
20017
20008
|
});
|
|
20018
20009
|
if (formErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
20019
20010
|
setFormErrors(function (prev) {
|
|
20020
|
-
var next = _objectSpread$
|
|
20011
|
+
var next = _objectSpread$D({}, prev);
|
|
20021
20012
|
delete next[fieldName];
|
|
20022
20013
|
return next;
|
|
20023
20014
|
});
|
|
@@ -20355,7 +20346,7 @@ var McpServerPicker = function McpServerPicker(_ref) {
|
|
|
20355
20346
|
setProviderName(value);
|
|
20356
20347
|
if (formErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
20357
20348
|
setFormErrors(function (prev) {
|
|
20358
|
-
var next = _objectSpread$
|
|
20349
|
+
var next = _objectSpread$D({}, prev);
|
|
20359
20350
|
delete next.providerName;
|
|
20360
20351
|
return next;
|
|
20361
20352
|
});
|
|
@@ -20545,8 +20536,8 @@ var McpServerPicker = function McpServerPicker(_ref) {
|
|
|
20545
20536
|
});
|
|
20546
20537
|
};
|
|
20547
20538
|
|
|
20548
|
-
function ownKeys$
|
|
20549
|
-
function _objectSpread$
|
|
20539
|
+
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; }
|
|
20540
|
+
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; }
|
|
20550
20541
|
var USE_ENHANCED_WIDGET_SELECTOR = true; // Set to false to use original modal
|
|
20551
20542
|
|
|
20552
20543
|
/**
|
|
@@ -20592,7 +20583,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
20592
20583
|
var _ref3 = _slicedToArray(_ref2, 2),
|
|
20593
20584
|
id = _ref3[0],
|
|
20594
20585
|
p = _ref3[1];
|
|
20595
|
-
return _objectSpread$
|
|
20586
|
+
return _objectSpread$C(_objectSpread$C({}, p), {}, {
|
|
20596
20587
|
id: id,
|
|
20597
20588
|
name: p.name || id
|
|
20598
20589
|
});
|
|
@@ -20679,7 +20670,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
20679
20670
|
// so we use its layout to replace any corrupted grid data.
|
|
20680
20671
|
if (workspace && workspace["layout"]) {
|
|
20681
20672
|
var model = new DashboardModel(workspace);
|
|
20682
|
-
setCurrentWorkspace(_objectSpread$
|
|
20673
|
+
setCurrentWorkspace(_objectSpread$C(_objectSpread$C({}, workspace), {}, {
|
|
20683
20674
|
layout: model.layout
|
|
20684
20675
|
}));
|
|
20685
20676
|
} else {
|
|
@@ -20728,7 +20719,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
20728
20719
|
}
|
|
20729
20720
|
try {
|
|
20730
20721
|
var hasChildren = config.type === "workspace";
|
|
20731
|
-
var newLayout = addItemToItemLayout(ws.layout, gridItem.id, _objectSpread$
|
|
20722
|
+
var newLayout = addItemToItemLayout(ws.layout, gridItem.id, _objectSpread$C(_objectSpread$C({}, config), {}, {
|
|
20732
20723
|
component: widgetComponentName
|
|
20733
20724
|
}), hasChildren);
|
|
20734
20725
|
var newWidgetId = newLayout[newLayout.length - 1].id;
|
|
@@ -21156,7 +21147,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
21156
21147
|
var uuid = widget.uuid || widget.uuidString;
|
|
21157
21148
|
if (uuid) {
|
|
21158
21149
|
newWorkspace.selectedProviders = newWorkspace.selectedProviders || {};
|
|
21159
|
-
newWorkspace.selectedProviders[uuid] = _objectSpread$
|
|
21150
|
+
newWorkspace.selectedProviders[uuid] = _objectSpread$C(_objectSpread$C({}, newWorkspace.selectedProviders[uuid] || {}), {}, _defineProperty({}, providerType, providerId));
|
|
21160
21151
|
}
|
|
21161
21152
|
setCurrentWorkspace(newWorkspace);
|
|
21162
21153
|
}
|
|
@@ -21292,7 +21283,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
21292
21283
|
var _gridContainer$grid;
|
|
21293
21284
|
var config = ComponentManager.config(widgetKey);
|
|
21294
21285
|
if (!config) return;
|
|
21295
|
-
var widgetItem = _objectSpread$
|
|
21286
|
+
var widgetItem = _objectSpread$C(_objectSpread$C({}, config), {}, {
|
|
21296
21287
|
component: widgetKey,
|
|
21297
21288
|
key: widgetKey
|
|
21298
21289
|
});
|
|
@@ -21546,7 +21537,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
21546
21537
|
onSelectWidget: function onSelectWidget(widget) {
|
|
21547
21538
|
|
|
21548
21539
|
// Add component property from widget.key
|
|
21549
|
-
var widgetWithComponent = _objectSpread$
|
|
21540
|
+
var widgetWithComponent = _objectSpread$C(_objectSpread$C({}, widget), {}, {
|
|
21550
21541
|
component: widget.key
|
|
21551
21542
|
});
|
|
21552
21543
|
handleClickConfirmAdd(widgetWithComponent, dropdownTarget);
|
|
@@ -23175,8 +23166,8 @@ var MissingProviderPrompt = function MissingProviderPrompt(_ref) {
|
|
|
23175
23166
|
});
|
|
23176
23167
|
};
|
|
23177
23168
|
|
|
23178
|
-
function ownKeys$
|
|
23179
|
-
function _objectSpread$
|
|
23169
|
+
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; }
|
|
23170
|
+
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; }
|
|
23180
23171
|
function _callSuper$4(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$4() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
23181
23172
|
function _isNativeReflectConstruct$4() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$4 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
23182
23173
|
var ProviderErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
@@ -23231,7 +23222,7 @@ var ProviderErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
23231
23222
|
_defineProperty(_this, "handleProviderSelect", function (providerType, providerName, credentials) {
|
|
23232
23223
|
|
|
23233
23224
|
// Update local selected providers state
|
|
23234
|
-
var updatedSelected = _objectSpread$
|
|
23225
|
+
var updatedSelected = _objectSpread$B(_objectSpread$B({}, _this.state.selectedProviders), {}, _defineProperty({}, providerType, providerName));
|
|
23235
23226
|
_this.setState({
|
|
23236
23227
|
selectedProviders: updatedSelected
|
|
23237
23228
|
}, function () {
|
|
@@ -23305,8 +23296,8 @@ var ProviderErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
23305
23296
|
}(React.Component);
|
|
23306
23297
|
_defineProperty(ProviderErrorBoundary, "contextType", ProviderContext);
|
|
23307
23298
|
|
|
23308
|
-
function ownKeys$
|
|
23309
|
-
function _objectSpread$
|
|
23299
|
+
function ownKeys$A(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; }
|
|
23300
|
+
function _objectSpread$A(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$A(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$A(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23310
23301
|
var withProviderDetection = function withProviderDetection(Component) {
|
|
23311
23302
|
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
23312
23303
|
_ref$requiredProvider = _ref.requiredProviders,
|
|
@@ -23331,7 +23322,7 @@ var withProviderDetection = function withProviderDetection(Component) {
|
|
|
23331
23322
|
onProviderSelect: onProviderSelect
|
|
23332
23323
|
});
|
|
23333
23324
|
}
|
|
23334
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread$
|
|
23325
|
+
return /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread$A({}, props));
|
|
23335
23326
|
};
|
|
23336
23327
|
};
|
|
23337
23328
|
|
|
@@ -24007,8 +23998,8 @@ var WidgetNotFound = function WidgetNotFound(_ref) {
|
|
|
24007
23998
|
});
|
|
24008
23999
|
};
|
|
24009
24000
|
|
|
24010
|
-
function ownKeys$
|
|
24011
|
-
function _objectSpread$
|
|
24001
|
+
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; }
|
|
24002
|
+
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; }
|
|
24012
24003
|
function _callSuper$2(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$2() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
24013
24004
|
function _isNativeReflectConstruct$2() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$2 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
24014
24005
|
var WidgetErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
@@ -24139,7 +24130,7 @@ var WidgetRenderer = function WidgetRenderer(_ref) {
|
|
|
24139
24130
|
|
|
24140
24131
|
// Build widgetData for WidgetContext — hooks read from this
|
|
24141
24132
|
var uuidString = DashReact.getUUID(params.uuid);
|
|
24142
|
-
var widgetData = _objectSpread$
|
|
24133
|
+
var widgetData = _objectSpread$z(_objectSpread$z({}, params), {}, {
|
|
24143
24134
|
uuidString: uuidString,
|
|
24144
24135
|
providers: (config === null || config === void 0 ? void 0 : config.providers) || [],
|
|
24145
24136
|
notifications: (config === null || config === void 0 ? void 0 : config.notifications) || []
|
|
@@ -24163,7 +24154,7 @@ var WidgetRenderer = function WidgetRenderer(_ref) {
|
|
|
24163
24154
|
widgetData: widgetData
|
|
24164
24155
|
};
|
|
24165
24156
|
var hasScheduledTasks = ((config === null || config === void 0 ? void 0 : config.scheduledTasks) || []).length > 0;
|
|
24166
|
-
var widgetElement = children === null ? /*#__PURE__*/jsxRuntime.jsx(WidgetComponent, _objectSpread$
|
|
24157
|
+
var widgetElement = children === null ? /*#__PURE__*/jsxRuntime.jsx(WidgetComponent, _objectSpread$z(_objectSpread$z(_objectSpread$z({
|
|
24167
24158
|
id: "widget-nokids-".concat(widgetKey),
|
|
24168
24159
|
listen: function listen(listeners, handlers) {
|
|
24169
24160
|
return helpers.listen(listeners, handlers);
|
|
@@ -24177,7 +24168,7 @@ var WidgetRenderer = function WidgetRenderer(_ref) {
|
|
|
24177
24168
|
backgroundColor: bgColor,
|
|
24178
24169
|
widgetConfig: helpers.config(),
|
|
24179
24170
|
widgetEventNames: helpers.events()
|
|
24180
|
-
}), "widget-nokids-".concat(widgetKey)) : /*#__PURE__*/jsxRuntime.jsx(WidgetComponent, _objectSpread$
|
|
24171
|
+
}), "widget-nokids-".concat(widgetKey)) : /*#__PURE__*/jsxRuntime.jsx(WidgetComponent, _objectSpread$z(_objectSpread$z(_objectSpread$z({
|
|
24181
24172
|
listen: function listen(listeners, handlers) {
|
|
24182
24173
|
return helpers.listen(listeners, handlers);
|
|
24183
24174
|
},
|
|
@@ -24377,11 +24368,11 @@ var ExternalWidget = function ExternalWidget(_ref) {
|
|
|
24377
24368
|
var GRID_CELL_WIDGET_TYPE = "grid-cell-widget";
|
|
24378
24369
|
var SIDEBAR_WIDGET_TYPE = "sidebar-widget";
|
|
24379
24370
|
|
|
24380
|
-
function _createForOfIteratorHelper$
|
|
24381
|
-
function _unsupportedIterableToArray$
|
|
24382
|
-
function _arrayLikeToArray$
|
|
24383
|
-
function ownKeys$
|
|
24384
|
-
function _objectSpread$
|
|
24371
|
+
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; } } }; }
|
|
24372
|
+
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; } }
|
|
24373
|
+
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; }
|
|
24374
|
+
function ownKeys$y(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; }
|
|
24375
|
+
function _objectSpread$y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24385
24376
|
var DraggableDroppableCellBody = function DraggableDroppableCellBody(_ref) {
|
|
24386
24377
|
var cellNumber = _ref.cellNumber,
|
|
24387
24378
|
gridContainerId = _ref.gridContainerId,
|
|
@@ -24579,7 +24570,7 @@ var LayoutGridContainer = /*#__PURE__*/React.memo(function (_ref3) {
|
|
|
24579
24570
|
var _ref5 = _slicedToArray(_ref4, 2),
|
|
24580
24571
|
id = _ref5[0],
|
|
24581
24572
|
provider = _ref5[1];
|
|
24582
|
-
return _objectSpread$
|
|
24573
|
+
return _objectSpread$y({
|
|
24583
24574
|
id: id
|
|
24584
24575
|
}, provider);
|
|
24585
24576
|
}) : [];
|
|
@@ -24954,7 +24945,7 @@ var LayoutGridContainer = /*#__PURE__*/React.memo(function (_ref3) {
|
|
|
24954
24945
|
return selectable["delete"](cn);
|
|
24955
24946
|
});
|
|
24956
24947
|
var resolved = new Set();
|
|
24957
|
-
var _iterator = _createForOfIteratorHelper$
|
|
24948
|
+
var _iterator = _createForOfIteratorHelper$g(selectable),
|
|
24958
24949
|
_step;
|
|
24959
24950
|
try {
|
|
24960
24951
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -25622,7 +25613,7 @@ var LayoutGridContainer = /*#__PURE__*/React.memo(function (_ref3) {
|
|
|
25622
25613
|
var widgetSpecificSelections = (workspace === null || workspace === void 0 || (_workspace$selectedPr = workspace.selectedProviders) === null || _workspace$selectedPr === void 0 ? void 0 : _workspace$selectedPr[id]) || {};
|
|
25623
25614
|
|
|
25624
25615
|
// Add provider-related props from workspace
|
|
25625
|
-
var itemWithProviders = _objectSpread$
|
|
25616
|
+
var itemWithProviders = _objectSpread$y(_objectSpread$y({}, item), {}, {
|
|
25626
25617
|
selectedProviders: widgetSpecificSelections,
|
|
25627
25618
|
onProviderSelect: onProviderSelect
|
|
25628
25619
|
});
|
|
@@ -27127,11 +27118,11 @@ function isWidgetResolvable(componentKey) {
|
|
|
27127
27118
|
// isMinOrderForItem
|
|
27128
27119
|
// }
|
|
27129
27120
|
|
|
27130
|
-
function ownKeys$
|
|
27131
|
-
function _objectSpread$
|
|
27132
|
-
function _createForOfIteratorHelper$
|
|
27133
|
-
function _unsupportedIterableToArray$
|
|
27134
|
-
function _arrayLikeToArray$
|
|
27121
|
+
function ownKeys$x(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; }
|
|
27122
|
+
function _objectSpread$x(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$x(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$x(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27123
|
+
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; } } }; }
|
|
27124
|
+
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; } }
|
|
27125
|
+
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; }
|
|
27135
27126
|
/**
|
|
27136
27127
|
* The model for all layout components used primarily in the renderLayout method
|
|
27137
27128
|
* @param {Object} layoutItem an object containing various attributes of the layout item
|
|
@@ -27143,7 +27134,7 @@ function _arrayLikeToArray$e(r, a) { (null == a || a > r.length) && (a = r.lengt
|
|
|
27143
27134
|
function sortObjectByKeys(obj) {
|
|
27144
27135
|
var sortedKeys = Object.keys(obj).sort();
|
|
27145
27136
|
var sortedObj = {};
|
|
27146
|
-
var _iterator = _createForOfIteratorHelper$
|
|
27137
|
+
var _iterator = _createForOfIteratorHelper$f(sortedKeys),
|
|
27147
27138
|
_step;
|
|
27148
27139
|
try {
|
|
27149
27140
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -27284,7 +27275,7 @@ var LayoutModel = function LayoutModel(layoutItem, workspaceLayout, dashboardId)
|
|
|
27284
27275
|
|
|
27285
27276
|
// Merge user-entered config values (from EnhancedWidgetDropdown) into userPrefs
|
|
27286
27277
|
if ("userConfigValues" in obj && obj.userConfigValues) {
|
|
27287
|
-
layout.userPrefs = _objectSpread$
|
|
27278
|
+
layout.userPrefs = _objectSpread$x(_objectSpread$x({}, layout.userPrefs), obj.userConfigValues);
|
|
27288
27279
|
}
|
|
27289
27280
|
|
|
27290
27281
|
// Preserve provider selections for this widget
|
|
@@ -27876,11 +27867,11 @@ var MenuItemModel = function MenuItemModel() {
|
|
|
27876
27867
|
return m;
|
|
27877
27868
|
};
|
|
27878
27869
|
|
|
27879
|
-
function ownKeys$
|
|
27880
|
-
function _objectSpread$
|
|
27881
|
-
function _createForOfIteratorHelper$
|
|
27882
|
-
function _unsupportedIterableToArray$
|
|
27883
|
-
function _arrayLikeToArray$
|
|
27870
|
+
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; }
|
|
27871
|
+
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; }
|
|
27872
|
+
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; } } }; }
|
|
27873
|
+
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; } }
|
|
27874
|
+
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; }
|
|
27884
27875
|
/**
|
|
27885
27876
|
* A Model for a Workspace (Dashboard)
|
|
27886
27877
|
* The Dashboard in this instance is the entire Layout inclusive of the workspaces and widgets
|
|
@@ -27946,7 +27937,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
27946
27937
|
|
|
27947
27938
|
// Also normalize grids within pages
|
|
27948
27939
|
if (this.pages.length > 0) {
|
|
27949
|
-
var _iterator = _createForOfIteratorHelper$
|
|
27940
|
+
var _iterator = _createForOfIteratorHelper$e(this.pages),
|
|
27950
27941
|
_step;
|
|
27951
27942
|
try {
|
|
27952
27943
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -29206,7 +29197,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
29206
29197
|
visibleCells.push({
|
|
29207
29198
|
row: r,
|
|
29208
29199
|
col: c,
|
|
29209
|
-
data: _objectSpread$
|
|
29200
|
+
data: _objectSpread$w({}, cell),
|
|
29210
29201
|
spanCol: ((_cell$span = cell.span) === null || _cell$span === void 0 ? void 0 : _cell$span.col) || 1,
|
|
29211
29202
|
spanRow: ((_cell$span2 = cell.span) === null || _cell$span2 === void 0 ? void 0 : _cell$span2.row) || 1
|
|
29212
29203
|
});
|
|
@@ -29228,7 +29219,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
29228
29219
|
var vc = _visibleCells[_i5];
|
|
29229
29220
|
var newCol = (vc.col - 1) * count + 1;
|
|
29230
29221
|
var _key7 = "".concat(vc.row, ".").concat(newCol);
|
|
29231
|
-
grid[_key7] = _objectSpread$
|
|
29222
|
+
grid[_key7] = _objectSpread$w(_objectSpread$w({}, vc.data), {}, {
|
|
29232
29223
|
hide: false,
|
|
29233
29224
|
span: {
|
|
29234
29225
|
row: vc.spanRow,
|
|
@@ -29303,7 +29294,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
29303
29294
|
_visibleCells2.push({
|
|
29304
29295
|
row: _r1,
|
|
29305
29296
|
col: _c10,
|
|
29306
|
-
data: _objectSpread$
|
|
29297
|
+
data: _objectSpread$w({}, _cell6),
|
|
29307
29298
|
spanRow: ((_cell6$span = _cell6.span) === null || _cell6$span === void 0 ? void 0 : _cell6$span.row) || 1,
|
|
29308
29299
|
spanCol: ((_cell6$span2 = _cell6.span) === null || _cell6$span2 === void 0 ? void 0 : _cell6$span2.col) || 1
|
|
29309
29300
|
});
|
|
@@ -29325,7 +29316,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
29325
29316
|
var _vc = _visibleCells3[_i9];
|
|
29326
29317
|
var newRow = (_vc.row - 1) * count + 1;
|
|
29327
29318
|
var _key10 = "".concat(newRow, ".").concat(_vc.col);
|
|
29328
|
-
grid[_key10] = _objectSpread$
|
|
29319
|
+
grid[_key10] = _objectSpread$w(_objectSpread$w({}, _vc.data), {}, {
|
|
29329
29320
|
hide: false,
|
|
29330
29321
|
span: {
|
|
29331
29322
|
row: _vc.spanRow * count,
|
|
@@ -29922,7 +29913,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
29922
29913
|
try {
|
|
29923
29914
|
// Collect all item IDs actively referenced by grid cells
|
|
29924
29915
|
var activeItemIds = new Set();
|
|
29925
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
29916
|
+
var _iterator2 = _createForOfIteratorHelper$e(this.layout),
|
|
29926
29917
|
_step2;
|
|
29927
29918
|
try {
|
|
29928
29919
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -29962,7 +29953,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
29962
29953
|
});
|
|
29963
29954
|
|
|
29964
29955
|
// Clean listener references on remaining items for each removed orphan
|
|
29965
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
29956
|
+
var _iterator3 = _createForOfIteratorHelper$e(orphanedIds),
|
|
29966
29957
|
_step3;
|
|
29967
29958
|
try {
|
|
29968
29959
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -30555,8 +30546,8 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
30555
30546
|
}]);
|
|
30556
30547
|
}(React.Component);
|
|
30557
30548
|
|
|
30558
|
-
function ownKeys$
|
|
30559
|
-
function _objectSpread$
|
|
30549
|
+
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; }
|
|
30550
|
+
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; }
|
|
30560
30551
|
|
|
30561
30552
|
/**
|
|
30562
30553
|
* useDashboard Hook
|
|
@@ -30612,7 +30603,7 @@ var useDashboard = function useDashboard() {
|
|
|
30612
30603
|
}
|
|
30613
30604
|
});
|
|
30614
30605
|
}
|
|
30615
|
-
return _objectSpread$
|
|
30606
|
+
return _objectSpread$v({
|
|
30616
30607
|
app: app,
|
|
30617
30608
|
dashboard: dashboard,
|
|
30618
30609
|
theme: theme
|
|
@@ -30621,9 +30612,9 @@ var useDashboard = function useDashboard() {
|
|
|
30621
30612
|
});
|
|
30622
30613
|
};
|
|
30623
30614
|
|
|
30624
|
-
function _createForOfIteratorHelper$
|
|
30625
|
-
function _unsupportedIterableToArray$
|
|
30626
|
-
function _arrayLikeToArray$
|
|
30615
|
+
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; } } }; }
|
|
30616
|
+
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; } }
|
|
30617
|
+
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; }
|
|
30627
30618
|
|
|
30628
30619
|
/**
|
|
30629
30620
|
* useWidgetProviders Hook
|
|
@@ -30674,7 +30665,7 @@ var useWidgetProviders = function useWidgetProviders() {
|
|
|
30674
30665
|
// 1. Widget-level: stored directly on the layout item by handleSelectProvider
|
|
30675
30666
|
// 2. Workspace-level: stored as workspace.selectedProviders[widgetId][providerType]
|
|
30676
30667
|
var providers = {};
|
|
30677
|
-
var _iterator = _createForOfIteratorHelper$
|
|
30668
|
+
var _iterator = _createForOfIteratorHelper$d(providerDeclarations),
|
|
30678
30669
|
_step;
|
|
30679
30670
|
try {
|
|
30680
30671
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -31409,9 +31400,9 @@ var useNotifications = function useNotifications() {
|
|
|
31409
31400
|
};
|
|
31410
31401
|
};
|
|
31411
31402
|
|
|
31412
|
-
function _createForOfIteratorHelper$
|
|
31413
|
-
function _unsupportedIterableToArray$
|
|
31414
|
-
function _arrayLikeToArray$
|
|
31403
|
+
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; } } }; }
|
|
31404
|
+
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; } }
|
|
31405
|
+
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; }
|
|
31415
31406
|
|
|
31416
31407
|
/**
|
|
31417
31408
|
* useScheduler Hook
|
|
@@ -31484,7 +31475,7 @@ var useScheduler = function useScheduler() {
|
|
|
31484
31475
|
if (pending && pending.length > 0) {
|
|
31485
31476
|
setPendingResults(pending);
|
|
31486
31477
|
// Call handlers for each pending result
|
|
31487
|
-
var _iterator = _createForOfIteratorHelper$
|
|
31478
|
+
var _iterator = _createForOfIteratorHelper$c(pending),
|
|
31488
31479
|
_step;
|
|
31489
31480
|
try {
|
|
31490
31481
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -32325,8 +32316,8 @@ function useMcpDashServer() {
|
|
|
32325
32316
|
};
|
|
32326
32317
|
}
|
|
32327
32318
|
|
|
32328
|
-
function ownKeys$
|
|
32329
|
-
function _objectSpread$
|
|
32319
|
+
function ownKeys$u(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; }
|
|
32320
|
+
function _objectSpread$u(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$u(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
32330
32321
|
var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
32331
32322
|
var theme = _ref.theme,
|
|
32332
32323
|
themeVariant = _ref.themeVariant,
|
|
@@ -32375,13 +32366,13 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32375
32366
|
className: "flex flex-col space-y-4 p-4",
|
|
32376
32367
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32377
32368
|
className: "flex flex-row bg-gray-900 p-4 space-x-4 rounded justify-between",
|
|
32378
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel, _objectSpread$
|
|
32369
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel, _objectSpread$u(_objectSpread$u({}, styles), {}, {
|
|
32379
32370
|
scrollable: false,
|
|
32380
32371
|
className: "rounded",
|
|
32381
32372
|
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Panel.Header, {
|
|
32382
32373
|
className: "text-xs uppercase font-bold",
|
|
32383
32374
|
children: "Panel"
|
|
32384
|
-
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Panel.Body, _objectSpread$
|
|
32375
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Panel.Body, _objectSpread$u(_objectSpread$u({}, styles), {}, {
|
|
32385
32376
|
onClick: function onClick() {
|
|
32386
32377
|
handleClickItem(DashReact.themeObjects.PANEL, styles);
|
|
32387
32378
|
}
|
|
@@ -32389,14 +32380,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32389
32380
|
className: "text-xs uppercase font-light",
|
|
32390
32381
|
children: DashReact.getCSSStyleForClassname("backgroundColor", DashReact.themeObjects.PANEL)
|
|
32391
32382
|
})]
|
|
32392
|
-
})), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel2, _objectSpread$
|
|
32383
|
+
})), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel2, _objectSpread$u(_objectSpread$u({
|
|
32393
32384
|
className: "rounded"
|
|
32394
32385
|
}, styles2), {}, {
|
|
32395
32386
|
scrollable: false,
|
|
32396
32387
|
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Panel2.Header, {
|
|
32397
32388
|
className: "text-xs uppercase font-bold",
|
|
32398
32389
|
children: "Panel 2"
|
|
32399
|
-
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Panel2.Body, _objectSpread$
|
|
32390
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Panel2.Body, _objectSpread$u(_objectSpread$u({}, styles2), {}, {
|
|
32400
32391
|
onClick: function onClick() {
|
|
32401
32392
|
handleClickItem(DashReact.themeObjects.PANEL_2, styles2);
|
|
32402
32393
|
}
|
|
@@ -32404,14 +32395,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32404
32395
|
className: "text-xs uppercase font-light",
|
|
32405
32396
|
children: DashReact.getCSSStyleForClassname("backgroundColor", DashReact.themeObjects.PANEL_2)
|
|
32406
32397
|
})]
|
|
32407
|
-
})), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel3, _objectSpread$
|
|
32398
|
+
})), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel3, _objectSpread$u(_objectSpread$u({
|
|
32408
32399
|
className: "rounded"
|
|
32409
32400
|
}, styles3), {}, {
|
|
32410
32401
|
scrollable: false,
|
|
32411
32402
|
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Panel3.Header, {
|
|
32412
32403
|
className: "text-xs uppercase font-bold",
|
|
32413
32404
|
children: "Panel 3"
|
|
32414
|
-
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Panel3.Body, _objectSpread$
|
|
32405
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Panel3.Body, _objectSpread$u(_objectSpread$u({}, styles3), {}, {
|
|
32415
32406
|
onClick: function onClick() {
|
|
32416
32407
|
handleClickItem(DashReact.themeObjects.PANEL_3, styles3);
|
|
32417
32408
|
}
|
|
@@ -32420,68 +32411,68 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32420
32411
|
children: DashReact.getCSSStyleForClassname("backgroundColor", DashReact.themeObjects.PANEL_3)
|
|
32421
32412
|
})]
|
|
32422
32413
|
}))]
|
|
32423
|
-
}), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel, _objectSpread$
|
|
32414
|
+
}), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel, _objectSpread$u(_objectSpread$u({
|
|
32424
32415
|
className: "p-6 rounded border-4 space-y-4",
|
|
32425
32416
|
scrollable: false,
|
|
32426
32417
|
height: "h-fit"
|
|
32427
32418
|
}, styles), {}, {
|
|
32428
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Heading, _objectSpread$
|
|
32419
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Heading, _objectSpread$u(_objectSpread$u({
|
|
32429
32420
|
title: "Heading"
|
|
32430
32421
|
}, headingStyles), {}, {
|
|
32431
32422
|
padding: false,
|
|
32432
32423
|
onClick: function onClick() {
|
|
32433
32424
|
return handleClickItem(DashReact.themeObjects.HEADING, headingStyles);
|
|
32434
32425
|
}
|
|
32435
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Heading2, _objectSpread$
|
|
32426
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Heading2, _objectSpread$u(_objectSpread$u({
|
|
32436
32427
|
title: "Heading 2"
|
|
32437
32428
|
}, heading2Styles), {}, {
|
|
32438
32429
|
padding: false,
|
|
32439
32430
|
onClick: function onClick() {
|
|
32440
32431
|
return handleClickItem(DashReact.themeObjects.HEADING_2, heading2Styles);
|
|
32441
32432
|
}
|
|
32442
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Heading3, _objectSpread$
|
|
32433
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Heading3, _objectSpread$u(_objectSpread$u({
|
|
32443
32434
|
title: "Heading 3"
|
|
32444
32435
|
}, heading3Styles), {}, {
|
|
32445
32436
|
padding: false,
|
|
32446
32437
|
onClick: function onClick() {
|
|
32447
32438
|
return handleClickItem(DashReact.themeObjects.HEADING_3, heading3Styles);
|
|
32448
32439
|
}
|
|
32449
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading, _objectSpread$
|
|
32440
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading, _objectSpread$u(_objectSpread$u({
|
|
32450
32441
|
title: "Subheading"
|
|
32451
32442
|
}, subHeadingStyles), {}, {
|
|
32452
32443
|
padding: false,
|
|
32453
32444
|
onClick: function onClick() {
|
|
32454
32445
|
return handleClickItem(DashReact.themeObjects.SUBHEADING, subHeadingStyles);
|
|
32455
32446
|
}
|
|
32456
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading2, _objectSpread$
|
|
32447
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading2, _objectSpread$u(_objectSpread$u({
|
|
32457
32448
|
title: "Subheading 2"
|
|
32458
32449
|
}, subHeading2Styles), {}, {
|
|
32459
32450
|
padding: false,
|
|
32460
32451
|
onClick: function onClick() {
|
|
32461
32452
|
return handleClickItem(DashReact.themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
32462
32453
|
}
|
|
32463
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading3, _objectSpread$
|
|
32454
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading3, _objectSpread$u(_objectSpread$u({
|
|
32464
32455
|
title: "Subheading"
|
|
32465
32456
|
}, subHeading3Styles), {}, {
|
|
32466
32457
|
padding: false,
|
|
32467
32458
|
onClick: function onClick() {
|
|
32468
32459
|
return handleClickItem(DashReact.themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
32469
32460
|
}
|
|
32470
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph, _objectSpread$
|
|
32461
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph, _objectSpread$u(_objectSpread$u({
|
|
32471
32462
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32472
32463
|
}, paragraphStyles), {}, {
|
|
32473
32464
|
padding: false,
|
|
32474
32465
|
onClick: function onClick() {
|
|
32475
32466
|
return handleClickItem(DashReact.themeObjects.PARAGRAPH, paragraphStyles);
|
|
32476
32467
|
}
|
|
32477
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph2, _objectSpread$
|
|
32468
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph2, _objectSpread$u(_objectSpread$u({
|
|
32478
32469
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32479
32470
|
}, paragraph2Styles), {}, {
|
|
32480
32471
|
padding: false,
|
|
32481
32472
|
onClick: function onClick() {
|
|
32482
32473
|
return handleClickItem(DashReact.themeObjects.PARAGRAPH_2, paragraph2Styles);
|
|
32483
32474
|
}
|
|
32484
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph3, _objectSpread$
|
|
32475
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph3, _objectSpread$u(_objectSpread$u({
|
|
32485
32476
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32486
32477
|
}, paragraph3Styles), {}, {
|
|
32487
32478
|
padding: false,
|
|
@@ -32490,19 +32481,19 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32490
32481
|
}
|
|
32491
32482
|
})), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32492
32483
|
className: "flex flex-row space-x-2 w-full",
|
|
32493
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Button, _objectSpread$
|
|
32484
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Button, _objectSpread$u(_objectSpread$u({
|
|
32494
32485
|
title: "Button"
|
|
32495
32486
|
}, buttonStyles), {}, {
|
|
32496
32487
|
onClick: function onClick() {
|
|
32497
32488
|
return handleClickItem(DashReact.themeObjects.BUTTON, buttonStyles);
|
|
32498
32489
|
}
|
|
32499
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button2, _objectSpread$
|
|
32490
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button2, _objectSpread$u(_objectSpread$u({
|
|
32500
32491
|
title: "Button 2"
|
|
32501
32492
|
}, button2Styles), {}, {
|
|
32502
32493
|
onClick: function onClick() {
|
|
32503
32494
|
return handleClickItem(DashReact.themeObjects.BUTTON_2, button2Styles);
|
|
32504
32495
|
}
|
|
32505
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button3, _objectSpread$
|
|
32496
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button3, _objectSpread$u(_objectSpread$u({
|
|
32506
32497
|
title: "Button 3"
|
|
32507
32498
|
}, button3Styles), {}, {
|
|
32508
32499
|
onClick: function onClick() {
|
|
@@ -32513,14 +32504,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32513
32504
|
className: "flex flex-row space-x-4 w-full h-fit",
|
|
32514
32505
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32515
32506
|
className: "flex flex-row space-x-2",
|
|
32516
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32507
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$u(_objectSpread$u({
|
|
32517
32508
|
text: "Button Icon",
|
|
32518
32509
|
icon: "pencil"
|
|
32519
32510
|
}, buttonIconStyles), {}, {
|
|
32520
32511
|
onClick: function onClick() {
|
|
32521
32512
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON, buttonIconStyles);
|
|
32522
32513
|
}
|
|
32523
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32514
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$u(_objectSpread$u({
|
|
32524
32515
|
icon: "pencil"
|
|
32525
32516
|
}, buttonIconStyles), {}, {
|
|
32526
32517
|
onClick: function onClick() {
|
|
@@ -32529,14 +32520,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32529
32520
|
}))]
|
|
32530
32521
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32531
32522
|
className: "flex flex-row space-x-2",
|
|
32532
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32523
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$u(_objectSpread$u({
|
|
32533
32524
|
text: "Button Icon 2",
|
|
32534
32525
|
icon: "pencil"
|
|
32535
32526
|
}, buttonIconStyles), {}, {
|
|
32536
32527
|
onClick: function onClick() {
|
|
32537
32528
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
32538
32529
|
}
|
|
32539
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32530
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$u(_objectSpread$u({
|
|
32540
32531
|
icon: "pencil"
|
|
32541
32532
|
}, buttonIconStyles), {}, {
|
|
32542
32533
|
onClick: function onClick() {
|
|
@@ -32545,14 +32536,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32545
32536
|
}))]
|
|
32546
32537
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32547
32538
|
className: "flex flex-row space-x-2",
|
|
32548
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32539
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$u(_objectSpread$u({
|
|
32549
32540
|
text: "Button Icon 3",
|
|
32550
32541
|
icon: "pencil"
|
|
32551
32542
|
}, buttonIcon3Styles), {}, {
|
|
32552
32543
|
onClick: function onClick() {
|
|
32553
32544
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
32554
32545
|
}
|
|
32555
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32546
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$u(_objectSpread$u({
|
|
32556
32547
|
icon: "pencil"
|
|
32557
32548
|
}, buttonIcon3Styles), {}, {
|
|
32558
32549
|
onClick: function onClick() {
|
|
@@ -32562,17 +32553,17 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32562
32553
|
})]
|
|
32563
32554
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32564
32555
|
className: "flex flex-col space-y-2 w-full",
|
|
32565
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem, _objectSpread$
|
|
32556
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem, _objectSpread$u(_objectSpread$u({}, menuItemStyles), {}, {
|
|
32566
32557
|
onClick: function onClick() {
|
|
32567
32558
|
return handleClickItem(DashReact.themeObjects.MENU_ITEM, menuItemStyles);
|
|
32568
32559
|
},
|
|
32569
32560
|
children: "Menu Item"
|
|
32570
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem2, _objectSpread$
|
|
32561
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem2, _objectSpread$u(_objectSpread$u({}, menuItem2Styles), {}, {
|
|
32571
32562
|
onClick: function onClick() {
|
|
32572
32563
|
return handleClickItem(DashReact.themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
32573
32564
|
},
|
|
32574
32565
|
children: "Menu Item 2"
|
|
32575
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem3, _objectSpread$
|
|
32566
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem3, _objectSpread$u(_objectSpread$u({}, menuItem3Styles), {}, {
|
|
32576
32567
|
onClick: function onClick() {
|
|
32577
32568
|
return handleClickItem(DashReact.themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
32578
32569
|
},
|
|
@@ -32580,21 +32571,21 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32580
32571
|
}))]
|
|
32581
32572
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32582
32573
|
className: "flex flex-row space-x-2 w-full",
|
|
32583
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Tag, _objectSpread$
|
|
32574
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Tag, _objectSpread$u(_objectSpread$u({
|
|
32584
32575
|
text: "Tag",
|
|
32585
32576
|
icon: "pencil"
|
|
32586
32577
|
}, tagStyles), {}, {
|
|
32587
32578
|
onClick: function onClick() {
|
|
32588
32579
|
return handleClickItem(DashReact.themeObjects.TAG, tagStyles);
|
|
32589
32580
|
}
|
|
32590
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag2, _objectSpread$
|
|
32581
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag2, _objectSpread$u(_objectSpread$u({
|
|
32591
32582
|
text: "Tag 2",
|
|
32592
32583
|
icon: "pencil"
|
|
32593
32584
|
}, tag2Styles), {}, {
|
|
32594
32585
|
onClick: function onClick() {
|
|
32595
32586
|
return handleClickItem(DashReact.themeObjects.TAG_2, tag2Styles);
|
|
32596
32587
|
}
|
|
32597
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag3, _objectSpread$
|
|
32588
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag3, _objectSpread$u(_objectSpread$u({
|
|
32598
32589
|
text: "Tag 3",
|
|
32599
32590
|
icon: "pencil"
|
|
32600
32591
|
}, tag3Styles), {}, {
|
|
@@ -32603,67 +32594,67 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32603
32594
|
}
|
|
32604
32595
|
}))]
|
|
32605
32596
|
})]
|
|
32606
|
-
})), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel2, _objectSpread$
|
|
32597
|
+
})), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel2, _objectSpread$u(_objectSpread$u({
|
|
32607
32598
|
className: "p-6 rounded border-4 space-y-4",
|
|
32608
32599
|
height: "h-fit"
|
|
32609
32600
|
}, styles2), {}, {
|
|
32610
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Heading, _objectSpread$
|
|
32601
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Heading, _objectSpread$u(_objectSpread$u({
|
|
32611
32602
|
title: "Heading"
|
|
32612
32603
|
}, headingStyles), {}, {
|
|
32613
32604
|
padding: false,
|
|
32614
32605
|
onClick: function onClick() {
|
|
32615
32606
|
return handleClickItem(DashReact.themeObjects.HEADING, headingStyles);
|
|
32616
32607
|
}
|
|
32617
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Heading2, _objectSpread$
|
|
32608
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Heading2, _objectSpread$u(_objectSpread$u({
|
|
32618
32609
|
title: "Heading 2"
|
|
32619
32610
|
}, heading2Styles), {}, {
|
|
32620
32611
|
padding: false,
|
|
32621
32612
|
onClick: function onClick() {
|
|
32622
32613
|
return handleClickItem(DashReact.themeObjects.HEADING_2, heading2Styles);
|
|
32623
32614
|
}
|
|
32624
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Heading3, _objectSpread$
|
|
32615
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Heading3, _objectSpread$u(_objectSpread$u({
|
|
32625
32616
|
title: "Heading 3"
|
|
32626
32617
|
}, heading3Styles), {}, {
|
|
32627
32618
|
padding: false,
|
|
32628
32619
|
onClick: function onClick() {
|
|
32629
32620
|
return handleClickItem(DashReact.themeObjects.HEADING_3, heading3Styles);
|
|
32630
32621
|
}
|
|
32631
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading, _objectSpread$
|
|
32622
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading, _objectSpread$u(_objectSpread$u({
|
|
32632
32623
|
title: "Subheading"
|
|
32633
32624
|
}, subHeadingStyles), {}, {
|
|
32634
32625
|
padding: false,
|
|
32635
32626
|
onClick: function onClick() {
|
|
32636
32627
|
return handleClickItem(DashReact.themeObjects.SUBHEADING, subHeadingStyles);
|
|
32637
32628
|
}
|
|
32638
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading2, _objectSpread$
|
|
32629
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading2, _objectSpread$u(_objectSpread$u({
|
|
32639
32630
|
title: "Subheading 2"
|
|
32640
32631
|
}, subHeading2Styles), {}, {
|
|
32641
32632
|
padding: false,
|
|
32642
32633
|
onClick: function onClick() {
|
|
32643
32634
|
return handleClickItem(DashReact.themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
32644
32635
|
}
|
|
32645
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading3, _objectSpread$
|
|
32636
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading3, _objectSpread$u(_objectSpread$u({
|
|
32646
32637
|
title: "Subheading"
|
|
32647
32638
|
}, subHeading3Styles), {}, {
|
|
32648
32639
|
padding: false,
|
|
32649
32640
|
onClick: function onClick() {
|
|
32650
32641
|
return handleClickItem(DashReact.themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
32651
32642
|
}
|
|
32652
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph, _objectSpread$
|
|
32643
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph, _objectSpread$u(_objectSpread$u({
|
|
32653
32644
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32654
32645
|
}, paragraphStyles), {}, {
|
|
32655
32646
|
padding: false,
|
|
32656
32647
|
onClick: function onClick() {
|
|
32657
32648
|
return handleClickItem(DashReact.themeObjects.PARAGRAPH, paragraphStyles);
|
|
32658
32649
|
}
|
|
32659
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph2, _objectSpread$
|
|
32650
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph2, _objectSpread$u(_objectSpread$u({
|
|
32660
32651
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32661
32652
|
}, paragraph2Styles), {}, {
|
|
32662
32653
|
padding: false,
|
|
32663
32654
|
onClick: function onClick() {
|
|
32664
32655
|
return handleClickItem(DashReact.themeObjects.PARAGRAPH_2, paragraph2Styles);
|
|
32665
32656
|
}
|
|
32666
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph3, _objectSpread$
|
|
32657
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph3, _objectSpread$u(_objectSpread$u({
|
|
32667
32658
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32668
32659
|
}, paragraph3Styles), {}, {
|
|
32669
32660
|
padding: false,
|
|
@@ -32672,19 +32663,19 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32672
32663
|
}
|
|
32673
32664
|
})), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32674
32665
|
className: "flex flex-row space-x-2 w-full",
|
|
32675
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Button, _objectSpread$
|
|
32666
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Button, _objectSpread$u(_objectSpread$u({
|
|
32676
32667
|
title: "Button"
|
|
32677
32668
|
}, buttonStyles), {}, {
|
|
32678
32669
|
onClick: function onClick() {
|
|
32679
32670
|
return handleClickItem(DashReact.themeObjects.BUTTON, buttonStyles);
|
|
32680
32671
|
}
|
|
32681
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button2, _objectSpread$
|
|
32672
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button2, _objectSpread$u(_objectSpread$u({
|
|
32682
32673
|
title: "Button 2"
|
|
32683
32674
|
}, button2Styles), {}, {
|
|
32684
32675
|
onClick: function onClick() {
|
|
32685
32676
|
return handleClickItem(DashReact.themeObjects.BUTTON_2, button2Styles);
|
|
32686
32677
|
}
|
|
32687
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button3, _objectSpread$
|
|
32678
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button3, _objectSpread$u(_objectSpread$u({
|
|
32688
32679
|
title: "Button 3"
|
|
32689
32680
|
}, button3Styles), {}, {
|
|
32690
32681
|
onClick: function onClick() {
|
|
@@ -32695,14 +32686,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32695
32686
|
className: "flex flex-row space-x-4 w-full",
|
|
32696
32687
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32697
32688
|
className: "flex flex-row space-x-2",
|
|
32698
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32689
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$u(_objectSpread$u({
|
|
32699
32690
|
text: "Button Icon",
|
|
32700
32691
|
icon: "pencil"
|
|
32701
32692
|
}, buttonIconStyles), {}, {
|
|
32702
32693
|
onClick: function onClick() {
|
|
32703
32694
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON, buttonIconStyles);
|
|
32704
32695
|
}
|
|
32705
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32696
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$u(_objectSpread$u({
|
|
32706
32697
|
icon: "pencil"
|
|
32707
32698
|
}, buttonIconStyles), {}, {
|
|
32708
32699
|
onClick: function onClick() {
|
|
@@ -32711,14 +32702,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32711
32702
|
}))]
|
|
32712
32703
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32713
32704
|
className: "flex flex-row space-x-2",
|
|
32714
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32705
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$u(_objectSpread$u({
|
|
32715
32706
|
text: "Button Icon 2",
|
|
32716
32707
|
icon: "pencil"
|
|
32717
32708
|
}, buttonIconStyles), {}, {
|
|
32718
32709
|
onClick: function onClick() {
|
|
32719
32710
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
32720
32711
|
}
|
|
32721
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32712
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$u(_objectSpread$u({
|
|
32722
32713
|
icon: "pencil"
|
|
32723
32714
|
}, buttonIconStyles), {}, {
|
|
32724
32715
|
onClick: function onClick() {
|
|
@@ -32727,14 +32718,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32727
32718
|
}))]
|
|
32728
32719
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32729
32720
|
className: "flex flex-row space-x-2",
|
|
32730
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32721
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$u(_objectSpread$u({
|
|
32731
32722
|
text: "Button Icon 3",
|
|
32732
32723
|
icon: "pencil"
|
|
32733
32724
|
}, buttonIcon3Styles), {}, {
|
|
32734
32725
|
onClick: function onClick() {
|
|
32735
32726
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
32736
32727
|
}
|
|
32737
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32728
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$u(_objectSpread$u({
|
|
32738
32729
|
icon: "pencil"
|
|
32739
32730
|
}, buttonIcon3Styles), {}, {
|
|
32740
32731
|
onClick: function onClick() {
|
|
@@ -32744,17 +32735,17 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32744
32735
|
})]
|
|
32745
32736
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32746
32737
|
className: "flex flex-col space-y-2 w-full",
|
|
32747
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem, _objectSpread$
|
|
32738
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem, _objectSpread$u(_objectSpread$u({}, menuItemStyles), {}, {
|
|
32748
32739
|
onClick: function onClick() {
|
|
32749
32740
|
return handleClickItem(DashReact.themeObjects.MENU_ITEM, menuItemStyles);
|
|
32750
32741
|
},
|
|
32751
32742
|
children: "Menu Item"
|
|
32752
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem2, _objectSpread$
|
|
32743
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem2, _objectSpread$u(_objectSpread$u({}, menuItem2Styles), {}, {
|
|
32753
32744
|
onClick: function onClick() {
|
|
32754
32745
|
return handleClickItem(DashReact.themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
32755
32746
|
},
|
|
32756
32747
|
children: "Menu Item 2"
|
|
32757
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem3, _objectSpread$
|
|
32748
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem3, _objectSpread$u(_objectSpread$u({}, menuItem3Styles), {}, {
|
|
32758
32749
|
onClick: function onClick() {
|
|
32759
32750
|
return handleClickItem(DashReact.themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
32760
32751
|
},
|
|
@@ -32762,21 +32753,21 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32762
32753
|
}))]
|
|
32763
32754
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32764
32755
|
className: "flex flex-row space-x-2 w-full",
|
|
32765
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Tag, _objectSpread$
|
|
32756
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Tag, _objectSpread$u(_objectSpread$u({
|
|
32766
32757
|
text: "Tag",
|
|
32767
32758
|
icon: "pencil"
|
|
32768
32759
|
}, tagStyles), {}, {
|
|
32769
32760
|
onClick: function onClick() {
|
|
32770
32761
|
return handleClickItem(DashReact.themeObjects.TAG, tagStyles);
|
|
32771
32762
|
}
|
|
32772
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag2, _objectSpread$
|
|
32763
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag2, _objectSpread$u(_objectSpread$u({
|
|
32773
32764
|
text: "Tag 2",
|
|
32774
32765
|
icon: "pencil"
|
|
32775
32766
|
}, tag2Styles), {}, {
|
|
32776
32767
|
onClick: function onClick() {
|
|
32777
32768
|
return handleClickItem(DashReact.themeObjects.TAG_2, tag2Styles);
|
|
32778
32769
|
}
|
|
32779
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag3, _objectSpread$
|
|
32770
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag3, _objectSpread$u(_objectSpread$u({
|
|
32780
32771
|
text: "Tag 3",
|
|
32781
32772
|
icon: "pencil"
|
|
32782
32773
|
}, tag3Styles), {}, {
|
|
@@ -32785,68 +32776,68 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32785
32776
|
}
|
|
32786
32777
|
}))]
|
|
32787
32778
|
})]
|
|
32788
|
-
})), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel3, _objectSpread$
|
|
32779
|
+
})), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel3, _objectSpread$u(_objectSpread$u({
|
|
32789
32780
|
className: "p-6 rounded border-4 space-y-4"
|
|
32790
32781
|
}, styles3), {}, {
|
|
32791
32782
|
padding: false,
|
|
32792
32783
|
height: "h-fit",
|
|
32793
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Heading, _objectSpread$
|
|
32784
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Heading, _objectSpread$u(_objectSpread$u({
|
|
32794
32785
|
title: "Heading"
|
|
32795
32786
|
}, headingStyles), {}, {
|
|
32796
32787
|
padding: false,
|
|
32797
32788
|
onClick: function onClick() {
|
|
32798
32789
|
return handleClickItem(DashReact.themeObjects.HEADING, headingStyles);
|
|
32799
32790
|
}
|
|
32800
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Heading2, _objectSpread$
|
|
32791
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Heading2, _objectSpread$u(_objectSpread$u({
|
|
32801
32792
|
title: "Heading 2"
|
|
32802
32793
|
}, heading2Styles), {}, {
|
|
32803
32794
|
padding: false,
|
|
32804
32795
|
onClick: function onClick() {
|
|
32805
32796
|
return handleClickItem(DashReact.themeObjects.HEADING_2, heading2Styles);
|
|
32806
32797
|
}
|
|
32807
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Heading3, _objectSpread$
|
|
32798
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Heading3, _objectSpread$u(_objectSpread$u({
|
|
32808
32799
|
title: "Heading 3"
|
|
32809
32800
|
}, heading3Styles), {}, {
|
|
32810
32801
|
padding: false,
|
|
32811
32802
|
onClick: function onClick() {
|
|
32812
32803
|
return handleClickItem(DashReact.themeObjects.HEADING_3, heading3Styles);
|
|
32813
32804
|
}
|
|
32814
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading, _objectSpread$
|
|
32805
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading, _objectSpread$u(_objectSpread$u({
|
|
32815
32806
|
title: "Subheading"
|
|
32816
32807
|
}, subHeadingStyles), {}, {
|
|
32817
32808
|
padding: false,
|
|
32818
32809
|
onClick: function onClick() {
|
|
32819
32810
|
return handleClickItem(DashReact.themeObjects.SUBHEADING, subHeadingStyles);
|
|
32820
32811
|
}
|
|
32821
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading2, _objectSpread$
|
|
32812
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading2, _objectSpread$u(_objectSpread$u({
|
|
32822
32813
|
title: "Subheading 2"
|
|
32823
32814
|
}, subHeading2Styles), {}, {
|
|
32824
32815
|
padding: false,
|
|
32825
32816
|
onClick: function onClick() {
|
|
32826
32817
|
return handleClickItem(DashReact.themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
32827
32818
|
}
|
|
32828
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading3, _objectSpread$
|
|
32819
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading3, _objectSpread$u(_objectSpread$u({
|
|
32829
32820
|
title: "Subheading"
|
|
32830
32821
|
}, subHeading3Styles), {}, {
|
|
32831
32822
|
padding: false,
|
|
32832
32823
|
onClick: function onClick() {
|
|
32833
32824
|
return handleClickItem(DashReact.themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
32834
32825
|
}
|
|
32835
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph, _objectSpread$
|
|
32826
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph, _objectSpread$u(_objectSpread$u({
|
|
32836
32827
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32837
32828
|
}, paragraphStyles), {}, {
|
|
32838
32829
|
padding: false,
|
|
32839
32830
|
onClick: function onClick() {
|
|
32840
32831
|
return handleClickItem(DashReact.themeObjects.PARAGRAPH, paragraphStyles);
|
|
32841
32832
|
}
|
|
32842
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph2, _objectSpread$
|
|
32833
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph2, _objectSpread$u(_objectSpread$u({
|
|
32843
32834
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32844
32835
|
}, paragraph2Styles), {}, {
|
|
32845
32836
|
padding: false,
|
|
32846
32837
|
onClick: function onClick() {
|
|
32847
32838
|
return handleClickItem(DashReact.themeObjects.PARAGRAPH, paragraph2Styles);
|
|
32848
32839
|
}
|
|
32849
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph3, _objectSpread$
|
|
32840
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph3, _objectSpread$u(_objectSpread$u({
|
|
32850
32841
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32851
32842
|
}, paragraph3Styles), {}, {
|
|
32852
32843
|
padding: false,
|
|
@@ -32855,19 +32846,19 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32855
32846
|
}
|
|
32856
32847
|
})), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32857
32848
|
className: "flex flex-row space-x-2 w-full",
|
|
32858
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Button, _objectSpread$
|
|
32849
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Button, _objectSpread$u(_objectSpread$u({
|
|
32859
32850
|
title: "Button"
|
|
32860
32851
|
}, buttonStyles), {}, {
|
|
32861
32852
|
onClick: function onClick() {
|
|
32862
32853
|
return handleClickItem(DashReact.themeObjects.BUTTON, buttonStyles);
|
|
32863
32854
|
}
|
|
32864
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button2, _objectSpread$
|
|
32855
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button2, _objectSpread$u(_objectSpread$u({
|
|
32865
32856
|
title: "Button 2"
|
|
32866
32857
|
}, button2Styles), {}, {
|
|
32867
32858
|
onClick: function onClick() {
|
|
32868
32859
|
return handleClickItem(DashReact.themeObjects.BUTTON_2, button2Styles);
|
|
32869
32860
|
}
|
|
32870
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button3, _objectSpread$
|
|
32861
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button3, _objectSpread$u(_objectSpread$u({
|
|
32871
32862
|
title: "Button 3"
|
|
32872
32863
|
}, button3Styles), {}, {
|
|
32873
32864
|
onClick: function onClick() {
|
|
@@ -32878,14 +32869,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32878
32869
|
className: "flex flex-row space-x-4 w-full",
|
|
32879
32870
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32880
32871
|
className: "flex flex-row space-x-2",
|
|
32881
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32872
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$u(_objectSpread$u({
|
|
32882
32873
|
text: "Button Icon",
|
|
32883
32874
|
icon: "pencil"
|
|
32884
32875
|
}, buttonIconStyles), {}, {
|
|
32885
32876
|
onClick: function onClick() {
|
|
32886
32877
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON, buttonIconStyles);
|
|
32887
32878
|
}
|
|
32888
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32879
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$u(_objectSpread$u({
|
|
32889
32880
|
icon: "pencil"
|
|
32890
32881
|
}, buttonIconStyles), {}, {
|
|
32891
32882
|
onClick: function onClick() {
|
|
@@ -32894,14 +32885,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32894
32885
|
}))]
|
|
32895
32886
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32896
32887
|
className: "flex flex-row space-x-2",
|
|
32897
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32888
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$u(_objectSpread$u({
|
|
32898
32889
|
text: "Button Icon 2",
|
|
32899
32890
|
icon: "pencil"
|
|
32900
32891
|
}, buttonIconStyles), {}, {
|
|
32901
32892
|
onClick: function onClick() {
|
|
32902
32893
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
32903
32894
|
}
|
|
32904
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32895
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$u(_objectSpread$u({
|
|
32905
32896
|
icon: "pencil"
|
|
32906
32897
|
}, buttonIconStyles), {}, {
|
|
32907
32898
|
onClick: function onClick() {
|
|
@@ -32910,14 +32901,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32910
32901
|
}))]
|
|
32911
32902
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32912
32903
|
className: "flex flex-row space-x-2",
|
|
32913
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32904
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$u(_objectSpread$u({
|
|
32914
32905
|
text: "Button Icon 3",
|
|
32915
32906
|
icon: "pencil"
|
|
32916
32907
|
}, buttonIcon3Styles), {}, {
|
|
32917
32908
|
onClick: function onClick() {
|
|
32918
32909
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
32919
32910
|
}
|
|
32920
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$
|
|
32911
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, _objectSpread$u(_objectSpread$u({
|
|
32921
32912
|
icon: "pencil"
|
|
32922
32913
|
}, buttonIcon3Styles), {}, {
|
|
32923
32914
|
onClick: function onClick() {
|
|
@@ -32927,17 +32918,17 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32927
32918
|
})]
|
|
32928
32919
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32929
32920
|
className: "flex flex-col space-y-2 w-full",
|
|
32930
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem, _objectSpread$
|
|
32921
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem, _objectSpread$u(_objectSpread$u({}, menuItemStyles), {}, {
|
|
32931
32922
|
onClick: function onClick() {
|
|
32932
32923
|
return handleClickItem(DashReact.themeObjects.MENU_ITEM, menuItemStyles);
|
|
32933
32924
|
},
|
|
32934
32925
|
children: "Menu Item"
|
|
32935
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem2, _objectSpread$
|
|
32926
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem2, _objectSpread$u(_objectSpread$u({}, menuItem2Styles), {}, {
|
|
32936
32927
|
onClick: function onClick() {
|
|
32937
32928
|
return handleClickItem(DashReact.themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
32938
32929
|
},
|
|
32939
32930
|
children: "Menu Item 2"
|
|
32940
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem3, _objectSpread$
|
|
32931
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem3, _objectSpread$u(_objectSpread$u({}, menuItem3Styles), {}, {
|
|
32941
32932
|
onClick: function onClick() {
|
|
32942
32933
|
return handleClickItem(DashReact.themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
32943
32934
|
},
|
|
@@ -32945,21 +32936,21 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32945
32936
|
}))]
|
|
32946
32937
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
32947
32938
|
className: "flex flex-row space-x-2 w-full",
|
|
32948
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Tag, _objectSpread$
|
|
32939
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Tag, _objectSpread$u(_objectSpread$u({
|
|
32949
32940
|
text: "Tag",
|
|
32950
32941
|
icon: "pencil"
|
|
32951
32942
|
}, tagStyles), {}, {
|
|
32952
32943
|
onClick: function onClick() {
|
|
32953
32944
|
return handleClickItem(DashReact.themeObjects.TAG, tagStyles);
|
|
32954
32945
|
}
|
|
32955
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag2, _objectSpread$
|
|
32946
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag2, _objectSpread$u(_objectSpread$u({
|
|
32956
32947
|
text: "Tag 2",
|
|
32957
32948
|
icon: "pencil"
|
|
32958
32949
|
}, tag2Styles), {}, {
|
|
32959
32950
|
onClick: function onClick() {
|
|
32960
32951
|
return handleClickItem(DashReact.themeObjects.TAG_2, tag2Styles);
|
|
32961
32952
|
}
|
|
32962
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag3, _objectSpread$
|
|
32953
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag3, _objectSpread$u(_objectSpread$u({
|
|
32963
32954
|
text: "Tag 3",
|
|
32964
32955
|
icon: "pencil"
|
|
32965
32956
|
}, tag3Styles), {}, {
|
|
@@ -32968,57 +32959,57 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32968
32959
|
}
|
|
32969
32960
|
}))]
|
|
32970
32961
|
})]
|
|
32971
|
-
})), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel2, _objectSpread$
|
|
32962
|
+
})), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel2, _objectSpread$u(_objectSpread$u({
|
|
32972
32963
|
className: "p-6 rounded border-4 space-y-4"
|
|
32973
32964
|
}, styles2), {}, {
|
|
32974
32965
|
height: "h-fit",
|
|
32975
32966
|
padding: false,
|
|
32976
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Heading2, _objectSpread$
|
|
32967
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Heading2, _objectSpread$u(_objectSpread$u({
|
|
32977
32968
|
title: "Heading 2"
|
|
32978
32969
|
}, heading2Styles), {}, {
|
|
32979
32970
|
padding: false,
|
|
32980
32971
|
onClick: function onClick() {
|
|
32981
32972
|
return handleClickItem(DashReact.themeObjects.HEADING_2, heading2Styles);
|
|
32982
32973
|
}
|
|
32983
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading2, _objectSpread$
|
|
32974
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading2, _objectSpread$u(_objectSpread$u({
|
|
32984
32975
|
title: "Subheading 2"
|
|
32985
32976
|
}, subHeading2Styles), {}, {
|
|
32986
32977
|
padding: false,
|
|
32987
32978
|
onClick: function onClick() {
|
|
32988
32979
|
return handleClickItem(DashReact.themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
32989
32980
|
}
|
|
32990
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph2, _objectSpread$
|
|
32981
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph2, _objectSpread$u(_objectSpread$u({
|
|
32991
32982
|
text: "Paragraph 2 - The quick brown fox jumps over the lazy dog."
|
|
32992
32983
|
}, paragraph2Styles), {}, {
|
|
32993
32984
|
padding: false,
|
|
32994
32985
|
onClick: function onClick() {
|
|
32995
32986
|
return handleClickItem(DashReact.themeObjects.PARAGRAPH_2, paragraph2Styles);
|
|
32996
32987
|
}
|
|
32997
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button2, _objectSpread$
|
|
32988
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button2, _objectSpread$u(_objectSpread$u({
|
|
32998
32989
|
title: "Button"
|
|
32999
32990
|
}, button2Styles), {}, {
|
|
33000
32991
|
onClick: function onClick() {
|
|
33001
32992
|
return handleClickItem(DashReact.themeObjects.BUTTON_2, button2Styles);
|
|
33002
32993
|
}
|
|
33003
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon2, _objectSpread$
|
|
32994
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon2, _objectSpread$u(_objectSpread$u({
|
|
33004
32995
|
text: "Button Icon",
|
|
33005
32996
|
icon: "pencil"
|
|
33006
32997
|
}, buttonIcon2Styles), {}, {
|
|
33007
32998
|
onClick: function onClick() {
|
|
33008
32999
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
33009
33000
|
}
|
|
33010
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon2, _objectSpread$
|
|
33001
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon2, _objectSpread$u(_objectSpread$u({
|
|
33011
33002
|
icon: "pencil"
|
|
33012
33003
|
}, buttonIcon2Styles), {}, {
|
|
33013
33004
|
onClick: function onClick() {
|
|
33014
33005
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON_2, buttonIconStyles);
|
|
33015
33006
|
}
|
|
33016
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem2, _objectSpread$
|
|
33007
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem2, _objectSpread$u(_objectSpread$u({}, menuItem2Styles), {}, {
|
|
33017
33008
|
onClick: function onClick() {
|
|
33018
33009
|
return handleClickItem(DashReact.themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
33019
33010
|
},
|
|
33020
33011
|
children: "Menu Item"
|
|
33021
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag2, _objectSpread$
|
|
33012
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag2, _objectSpread$u(_objectSpread$u({
|
|
33022
33013
|
text: "Tag 2",
|
|
33023
33014
|
icon: "pencil"
|
|
33024
33015
|
}, tag2Styles), {}, {
|
|
@@ -33026,57 +33017,57 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
33026
33017
|
return handleClickItem(DashReact.themeObjects.TAG_2, tag2Styles);
|
|
33027
33018
|
}
|
|
33028
33019
|
}))]
|
|
33029
|
-
})), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel3, _objectSpread$
|
|
33020
|
+
})), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Panel3, _objectSpread$u(_objectSpread$u({
|
|
33030
33021
|
className: "p-6 rounded border-4 space-y-4"
|
|
33031
33022
|
}, styles3), {}, {
|
|
33032
33023
|
height: "h-fit",
|
|
33033
33024
|
padding: false,
|
|
33034
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Heading3, _objectSpread$
|
|
33025
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Heading3, _objectSpread$u(_objectSpread$u({
|
|
33035
33026
|
title: "Heading 3"
|
|
33036
33027
|
}, heading3Styles), {}, {
|
|
33037
33028
|
padding: false,
|
|
33038
33029
|
onClick: function onClick() {
|
|
33039
33030
|
return handleClickItem(DashReact.themeObjects.HEADING_3, heading3Styles);
|
|
33040
33031
|
}
|
|
33041
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading3, _objectSpread$
|
|
33032
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading3, _objectSpread$u(_objectSpread$u({
|
|
33042
33033
|
title: "Subheading"
|
|
33043
33034
|
}, subHeading3Styles), {}, {
|
|
33044
33035
|
padding: false,
|
|
33045
33036
|
onClick: function onClick() {
|
|
33046
33037
|
return handleClickItem(DashReact.themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
33047
33038
|
}
|
|
33048
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph3, _objectSpread$
|
|
33039
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph3, _objectSpread$u(_objectSpread$u({
|
|
33049
33040
|
text: "Paragraph 3 - The quick brown fox jumps over the lazy dog."
|
|
33050
33041
|
}, paragraph3Styles), {}, {
|
|
33051
33042
|
padding: false,
|
|
33052
33043
|
onClick: function onClick() {
|
|
33053
33044
|
return handleClickItem(DashReact.themeObjects.PARAGRAPH_3, paragraph3Styles);
|
|
33054
33045
|
}
|
|
33055
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button3, _objectSpread$
|
|
33046
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button3, _objectSpread$u(_objectSpread$u({
|
|
33056
33047
|
title: "Button"
|
|
33057
33048
|
}, button3Styles), {}, {
|
|
33058
33049
|
onClick: function onClick() {
|
|
33059
33050
|
return handleClickItem(DashReact.themeObjects.BUTTON_3, button3Styles);
|
|
33060
33051
|
}
|
|
33061
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon3, _objectSpread$
|
|
33052
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon3, _objectSpread$u(_objectSpread$u({
|
|
33062
33053
|
text: "Button Icon 3",
|
|
33063
33054
|
icon: "pencil"
|
|
33064
33055
|
}, buttonIcon3Styles), {}, {
|
|
33065
33056
|
onClick: function onClick() {
|
|
33066
33057
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
33067
33058
|
}
|
|
33068
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon3, _objectSpread$
|
|
33059
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon3, _objectSpread$u(_objectSpread$u({
|
|
33069
33060
|
icon: "pencil"
|
|
33070
33061
|
}, buttonIcon3Styles), {}, {
|
|
33071
33062
|
onClick: function onClick() {
|
|
33072
33063
|
return handleClickItem(DashReact.themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
33073
33064
|
}
|
|
33074
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem3, _objectSpread$
|
|
33065
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem3, _objectSpread$u(_objectSpread$u({}, menuItem3Styles), {}, {
|
|
33075
33066
|
onClick: function onClick() {
|
|
33076
33067
|
return handleClickItem(DashReact.themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
33077
33068
|
},
|
|
33078
33069
|
children: "Menu Item"
|
|
33079
|
-
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag3, _objectSpread$
|
|
33070
|
+
})), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tag3, _objectSpread$u(_objectSpread$u({
|
|
33080
33071
|
text: "Tag",
|
|
33081
33072
|
icon: "pencil"
|
|
33082
33073
|
}, tag3Styles), {}, {
|
|
@@ -33125,8 +33116,8 @@ var ThemePane = function ThemePane(_ref) {
|
|
|
33125
33116
|
};
|
|
33126
33117
|
|
|
33127
33118
|
var _excluded$2 = ["colorFromTheme", "colorName", "shade", "variant", "colorType", "colorLevelName", "selected", "onClick", "onMouseOver", "width", "height"];
|
|
33128
|
-
function ownKeys$
|
|
33129
|
-
function _objectSpread$
|
|
33119
|
+
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; }
|
|
33120
|
+
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; }
|
|
33130
33121
|
var ColorTile = function ColorTile(_ref) {
|
|
33131
33122
|
var _ref$colorFromTheme = _ref.colorFromTheme,
|
|
33132
33123
|
colorFromTheme = _ref$colorFromTheme === void 0 ? null : _ref$colorFromTheme,
|
|
@@ -33151,7 +33142,7 @@ var ColorTile = function ColorTile(_ref) {
|
|
|
33151
33142
|
_ref$height = _ref.height,
|
|
33152
33143
|
height = _ref$height === void 0 ? "h-10" : _ref$height,
|
|
33153
33144
|
rest = _objectWithoutProperties(_ref, _excluded$2);
|
|
33154
|
-
var c = ColorModel(_objectSpread$
|
|
33145
|
+
var c = ColorModel(_objectSpread$t({
|
|
33155
33146
|
colorFromTheme: colorFromTheme,
|
|
33156
33147
|
colorName: colorName,
|
|
33157
33148
|
colorType: colorType,
|
|
@@ -33179,10 +33170,10 @@ var ColorTile = function ColorTile(_ref) {
|
|
|
33179
33170
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
33180
33171
|
className: "flex flex-col rounded-lg cursor-pointer items-center justify-center border-2 text-xs ".concat(selected === true ? "border-yellow-500" : "border-gray-800", " hover:border-yellow-500 border-gray-800 ").concat(c["class"], " ").concat(width, " ").concat(height),
|
|
33181
33172
|
onClick: function onClick() {
|
|
33182
|
-
return _onClick !== null ? _onClick(_objectSpread$
|
|
33173
|
+
return _onClick !== null ? _onClick(_objectSpread$t(_objectSpread$t({}, c), rest)) : null;
|
|
33183
33174
|
},
|
|
33184
33175
|
onMouseOver: function onMouseOver() {
|
|
33185
|
-
return _onMouseOver !== null ? _onMouseOver(_objectSpread$
|
|
33176
|
+
return _onMouseOver !== null ? _onMouseOver(_objectSpread$t(_objectSpread$t({}, c), rest)) : null;
|
|
33186
33177
|
},
|
|
33187
33178
|
children: "\xA0"
|
|
33188
33179
|
});
|
|
@@ -34365,8 +34356,8 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
34365
34356
|
var propTypesExports = propTypes.exports;
|
|
34366
34357
|
var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
|
34367
34358
|
|
|
34368
|
-
function ownKeys$
|
|
34369
|
-
function _objectSpread$
|
|
34359
|
+
function ownKeys$s(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; }
|
|
34360
|
+
function _objectSpread$s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$s(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
34370
34361
|
|
|
34371
34362
|
// Host-injected module references (e.g., "@trops/dash-core").
|
|
34372
34363
|
// Set by the host app via setHostModules() after all modules are fully loaded,
|
|
@@ -34402,7 +34393,7 @@ var BASE_MODULE_MAP = {
|
|
|
34402
34393
|
function evaluateBundle(source, widgetName) {
|
|
34403
34394
|
// Merge base modules with host-provided modules (e.g., "@trops/dash-core")
|
|
34404
34395
|
// at call time so _hostModules is populated by the time widgets load.
|
|
34405
|
-
var moduleMap = _objectSpread$
|
|
34396
|
+
var moduleMap = _objectSpread$s(_objectSpread$s({}, BASE_MODULE_MAP), _hostModules);
|
|
34406
34397
|
var module = {
|
|
34407
34398
|
exports: {}
|
|
34408
34399
|
};
|
|
@@ -34415,7 +34406,7 @@ function evaluateBundle(source, widgetName) {
|
|
|
34415
34406
|
// CJS bundles expect `require("pkg").Widget` to work, so merge
|
|
34416
34407
|
// `.default` properties onto the returned object.
|
|
34417
34408
|
if (mod["default"] && _typeof(mod["default"]) === "object") {
|
|
34418
|
-
return _objectSpread$
|
|
34409
|
+
return _objectSpread$s(_objectSpread$s(_objectSpread$s({}, mod["default"]), mod), {}, {
|
|
34419
34410
|
"default": mod["default"]
|
|
34420
34411
|
});
|
|
34421
34412
|
}
|
|
@@ -34497,9 +34488,9 @@ function loadWidgetBundle(source, widgetName) {
|
|
|
34497
34488
|
};
|
|
34498
34489
|
}
|
|
34499
34490
|
|
|
34500
|
-
function _createForOfIteratorHelper$
|
|
34501
|
-
function _unsupportedIterableToArray$
|
|
34502
|
-
function _arrayLikeToArray$
|
|
34491
|
+
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; } } }; }
|
|
34492
|
+
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; } }
|
|
34493
|
+
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; }
|
|
34503
34494
|
/**
|
|
34504
34495
|
* Validation utilities for grid-first dashboard architecture
|
|
34505
34496
|
*
|
|
@@ -34738,7 +34729,7 @@ var validateCellMerge = function validateCellMerge(cellNumbers, grid) {
|
|
|
34738
34729
|
|
|
34739
34730
|
// Validate each cell
|
|
34740
34731
|
var cells = [];
|
|
34741
|
-
var _iterator = _createForOfIteratorHelper$
|
|
34732
|
+
var _iterator = _createForOfIteratorHelper$b(cellNumbers),
|
|
34742
34733
|
_step;
|
|
34743
34734
|
try {
|
|
34744
34735
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -35086,9 +35077,9 @@ var HARMONY_STRATEGIES = [{
|
|
|
35086
35077
|
label: "Custom"
|
|
35087
35078
|
}];
|
|
35088
35079
|
|
|
35089
|
-
function _createForOfIteratorHelper$
|
|
35090
|
-
function _unsupportedIterableToArray$
|
|
35091
|
-
function _arrayLikeToArray$
|
|
35080
|
+
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; } } }; }
|
|
35081
|
+
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; } }
|
|
35082
|
+
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; }
|
|
35092
35083
|
/**
|
|
35093
35084
|
* markdownFormParser.js
|
|
35094
35085
|
*
|
|
@@ -35135,7 +35126,7 @@ function detectColumnType(header, cellValues) {
|
|
|
35135
35126
|
}
|
|
35136
35127
|
|
|
35137
35128
|
// Check if any cell has an enum pattern (template placeholders)
|
|
35138
|
-
var _iterator = _createForOfIteratorHelper$
|
|
35129
|
+
var _iterator = _createForOfIteratorHelper$a(cellValues),
|
|
35139
35130
|
_step;
|
|
35140
35131
|
try {
|
|
35141
35132
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -35144,7 +35135,7 @@ function detectColumnType(header, cellValues) {
|
|
|
35144
35135
|
if (options) {
|
|
35145
35136
|
// Include all unique existing cell values as valid options
|
|
35146
35137
|
var allOptions = new Set(options);
|
|
35147
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
35138
|
+
var _iterator2 = _createForOfIteratorHelper$a(cellValues),
|
|
35148
35139
|
_step2;
|
|
35149
35140
|
try {
|
|
35150
35141
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -35354,7 +35345,7 @@ function parse(markdown) {
|
|
|
35354
35345
|
*/
|
|
35355
35346
|
function serialize(blocks) {
|
|
35356
35347
|
var parts = [];
|
|
35357
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
35348
|
+
var _iterator3 = _createForOfIteratorHelper$a(blocks),
|
|
35358
35349
|
_step3;
|
|
35359
35350
|
try {
|
|
35360
35351
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -35369,7 +35360,7 @@ function serialize(blocks) {
|
|
|
35369
35360
|
parts.push("| " + block.columns.map(function () {
|
|
35370
35361
|
return "------";
|
|
35371
35362
|
}).join(" | ") + " |");
|
|
35372
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
35363
|
+
var _iterator4 = _createForOfIteratorHelper$a(block.rows),
|
|
35373
35364
|
_step4;
|
|
35374
35365
|
try {
|
|
35375
35366
|
var _loop2 = function _loop2() {
|
|
@@ -35390,7 +35381,7 @@ function serialize(blocks) {
|
|
|
35390
35381
|
break;
|
|
35391
35382
|
}
|
|
35392
35383
|
case "list":
|
|
35393
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
35384
|
+
var _iterator5 = _createForOfIteratorHelper$a(block.items),
|
|
35394
35385
|
_step5;
|
|
35395
35386
|
try {
|
|
35396
35387
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -35404,7 +35395,7 @@ function serialize(blocks) {
|
|
|
35404
35395
|
}
|
|
35405
35396
|
break;
|
|
35406
35397
|
case "blockquote":
|
|
35407
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
35398
|
+
var _iterator6 = _createForOfIteratorHelper$a(block.text.split("\n")),
|
|
35408
35399
|
_step6;
|
|
35409
35400
|
try {
|
|
35410
35401
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -35442,8 +35433,8 @@ function serialize(blocks) {
|
|
|
35442
35433
|
return parts.join("\n");
|
|
35443
35434
|
}
|
|
35444
35435
|
|
|
35445
|
-
function ownKeys$
|
|
35446
|
-
function _objectSpread$
|
|
35436
|
+
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; }
|
|
35437
|
+
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; }
|
|
35447
35438
|
var COLOR_PROPERTIES$1 = new Set(["backgroundColor", "textColor", "borderColor", "hoverBackgroundColor", "hoverTextColor", "hoverBorderColor", "focusRingColor", "focusBorderColor", "activeBackgroundColor", "activeTextColor", "placeholderTextColor"]);
|
|
35448
35439
|
var PreviewColorsPane = function PreviewColorsPane(_ref) {
|
|
35449
35440
|
var _ref$styles = _ref.styles,
|
|
@@ -35460,7 +35451,7 @@ var PreviewColorsPane = function PreviewColorsPane(_ref) {
|
|
|
35460
35451
|
function handleClickItem(data, styleNameCss, itemType, objectType) {
|
|
35461
35452
|
// override the object type
|
|
35462
35453
|
data["objectType"] = objectType;
|
|
35463
|
-
onClickItem(_objectSpread$
|
|
35454
|
+
onClickItem(_objectSpread$r(_objectSpread$r({}, data), {}, {
|
|
35464
35455
|
itemType: itemType,
|
|
35465
35456
|
styleName: styleNameCss
|
|
35466
35457
|
}));
|
|
@@ -35870,8 +35861,8 @@ var ThemeMenuPane = function ThemeMenuPane(_ref) {
|
|
|
35870
35861
|
});
|
|
35871
35862
|
};
|
|
35872
35863
|
|
|
35873
|
-
function ownKeys$
|
|
35874
|
-
function _objectSpread$
|
|
35864
|
+
function ownKeys$q(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; }
|
|
35865
|
+
function _objectSpread$q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
35875
35866
|
var COMPONENT_GROUPS$1 = {
|
|
35876
35867
|
Typography: [DashReact.themeObjects.HEADING, DashReact.themeObjects.HEADING_2, DashReact.themeObjects.HEADING_3, DashReact.themeObjects.SUBHEADING, DashReact.themeObjects.SUBHEADING_2, DashReact.themeObjects.SUBHEADING_3, DashReact.themeObjects.PARAGRAPH, DashReact.themeObjects.PARAGRAPH_2, DashReact.themeObjects.PARAGRAPH_3],
|
|
35877
35868
|
Buttons: [DashReact.themeObjects.BUTTON, DashReact.themeObjects.BUTTON_2, DashReact.themeObjects.BUTTON_3, DashReact.themeObjects.BUTTON_ICON, DashReact.themeObjects.BUTTON_ICON_2, DashReact.themeObjects.BUTTON_ICON_3],
|
|
@@ -35902,7 +35893,7 @@ var ComponentSelectorPane = function ComponentSelectorPane(_ref) {
|
|
|
35902
35893
|
setCollapsedGroups = _useState2[1];
|
|
35903
35894
|
function toggleGroup(groupName) {
|
|
35904
35895
|
setCollapsedGroups(function (prev) {
|
|
35905
|
-
return _objectSpread$
|
|
35896
|
+
return _objectSpread$q(_objectSpread$q({}, prev), {}, _defineProperty({}, groupName, !prev[groupName]));
|
|
35906
35897
|
});
|
|
35907
35898
|
}
|
|
35908
35899
|
function hasOverrides(itemKey) {
|
|
@@ -36139,8 +36130,8 @@ var NonColorPickerPane = function NonColorPickerPane(_ref) {
|
|
|
36139
36130
|
};
|
|
36140
36131
|
|
|
36141
36132
|
var _excluded$1 = ["children"];
|
|
36142
|
-
function ownKeys$
|
|
36143
|
-
function _objectSpread$
|
|
36133
|
+
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; }
|
|
36134
|
+
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; }
|
|
36144
36135
|
var COLOR_PROPERTIES = new Set(["backgroundColor", "textColor", "borderColor", "hoverBackgroundColor", "hoverTextColor", "hoverBorderColor", "focusRingColor", "focusBorderColor", "activeBackgroundColor", "activeTextColor", "placeholderTextColor"]);
|
|
36145
36136
|
var isColorProperty = function isColorProperty(name) {
|
|
36146
36137
|
return COLOR_PROPERTIES.has(name);
|
|
@@ -36700,7 +36691,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
36700
36691
|
if (itemSelected && themeSelected && themeVariant) {
|
|
36701
36692
|
var updatedStyles = DashReact.getStylesForItem(itemSelected.item, themeSelected[themeVariant]);
|
|
36702
36693
|
setItemSelected(function (prev) {
|
|
36703
|
-
return _objectSpread$
|
|
36694
|
+
return _objectSpread$p(_objectSpread$p({}, prev), {}, {
|
|
36704
36695
|
styles: updatedStyles
|
|
36705
36696
|
});
|
|
36706
36697
|
});
|
|
@@ -36871,7 +36862,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
36871
36862
|
styles: clickStyles
|
|
36872
36863
|
});
|
|
36873
36864
|
},
|
|
36874
|
-
children: /*#__PURE__*/jsxRuntime.jsx(PanelComponent, _objectSpread$
|
|
36865
|
+
children: /*#__PURE__*/jsxRuntime.jsx(PanelComponent, _objectSpread$p(_objectSpread$p({}, panelStyles), {}, {
|
|
36875
36866
|
scrollable: false,
|
|
36876
36867
|
className: "rounded",
|
|
36877
36868
|
height: "",
|
|
@@ -36885,9 +36876,9 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
36885
36876
|
var _comp$props = comp.props,
|
|
36886
36877
|
childContent = _comp$props.children,
|
|
36887
36878
|
restProps = _objectWithoutProperties(_comp$props, _excluded$1);
|
|
36888
|
-
var renderedComponent = childContent !== undefined ? /*#__PURE__*/jsxRuntime.jsx(comp.Component, _objectSpread$
|
|
36879
|
+
var renderedComponent = childContent !== undefined ? /*#__PURE__*/jsxRuntime.jsx(comp.Component, _objectSpread$p(_objectSpread$p({}, restProps), {}, {
|
|
36889
36880
|
children: childContent
|
|
36890
|
-
})) : /*#__PURE__*/jsxRuntime.jsx(comp.Component, _objectSpread$
|
|
36881
|
+
})) : /*#__PURE__*/jsxRuntime.jsx(comp.Component, _objectSpread$p({}, restProps));
|
|
36891
36882
|
return renderComponentRow(comp.key, renderedComponent);
|
|
36892
36883
|
})
|
|
36893
36884
|
})
|
|
@@ -36903,7 +36894,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
36903
36894
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
36904
36895
|
className: "text-xs uppercase font-bold text-gray-500 tracking-wider",
|
|
36905
36896
|
children: "Forms & Inputs"
|
|
36906
|
-
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Panel, _objectSpread$
|
|
36897
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Panel, _objectSpread$p(_objectSpread$p({}, DashReact.getStylesForItem("panel", themeData)), {}, {
|
|
36907
36898
|
scrollable: false,
|
|
36908
36899
|
className: "rounded",
|
|
36909
36900
|
height: "",
|
|
@@ -36931,7 +36922,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
36931
36922
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
36932
36923
|
className: "text-xs uppercase font-bold text-gray-500 tracking-wider",
|
|
36933
36924
|
children: "Data & Stats"
|
|
36934
|
-
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Panel, _objectSpread$
|
|
36925
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Panel, _objectSpread$p(_objectSpread$p({}, DashReact.getStylesForItem("panel", themeData)), {}, {
|
|
36935
36926
|
scrollable: false,
|
|
36936
36927
|
className: "rounded",
|
|
36937
36928
|
height: "",
|
|
@@ -37036,7 +37027,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
37036
37027
|
}), themeSelected && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
37037
37028
|
className: "flex flex-col flex-1 min-w-0",
|
|
37038
37029
|
children: /*#__PURE__*/jsxRuntime.jsx(DashReact.ThemeContext.Provider, {
|
|
37039
|
-
value: _objectSpread$
|
|
37030
|
+
value: _objectSpread$p(_objectSpread$p({}, themeContextValue), {}, {
|
|
37040
37031
|
currentTheme: (themeSelected === null || themeSelected === void 0 ? void 0 : themeSelected[themeVariant]) || themeContextValue.currentTheme
|
|
37041
37032
|
}),
|
|
37042
37033
|
children: showPreview ? /*#__PURE__*/jsxRuntime.jsx(PreviewComponentsPane, {
|
|
@@ -38440,8 +38431,8 @@ var DiscoverThemesDetail = function DiscoverThemesDetail(_ref) {
|
|
|
38440
38431
|
});
|
|
38441
38432
|
};
|
|
38442
38433
|
|
|
38443
|
-
function ownKeys$
|
|
38444
|
-
function _objectSpread$
|
|
38434
|
+
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; }
|
|
38435
|
+
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; }
|
|
38445
38436
|
var ThemeManagerModal = function ThemeManagerModal(_ref) {
|
|
38446
38437
|
var open = _ref.open,
|
|
38447
38438
|
setIsOpen = _ref.setIsOpen;
|
|
@@ -38633,7 +38624,7 @@ var ThemeManagerModal = function ThemeManagerModal(_ref) {
|
|
|
38633
38624
|
function handleWizardComplete() {
|
|
38634
38625
|
if (!wizardTheme || !wizardName.trim()) return;
|
|
38635
38626
|
var key = wizardTheme.id || "theme-".concat(Date.now());
|
|
38636
|
-
var finalTheme = _objectSpread$
|
|
38627
|
+
var finalTheme = _objectSpread$o(_objectSpread$o({}, wizardTheme), {}, {
|
|
38637
38628
|
id: key,
|
|
38638
38629
|
name: wizardName.trim()
|
|
38639
38630
|
});
|
|
@@ -38825,7 +38816,92 @@ var ThemeManagerModal = function ThemeManagerModal(_ref) {
|
|
|
38825
38816
|
});
|
|
38826
38817
|
};
|
|
38827
38818
|
|
|
38819
|
+
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; }
|
|
38820
|
+
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; }
|
|
38821
|
+
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; } } }; }
|
|
38822
|
+
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; } }
|
|
38823
|
+
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; }
|
|
38828
38824
|
var DASHBOARD_TAGS = ["productivity", "monitoring", "analytics", "communication", "developer", "sales", "marketing", "finance", "project-management", "social", "news", "utilities"];
|
|
38825
|
+
var BUMP_OPTIONS = [{
|
|
38826
|
+
value: "patch",
|
|
38827
|
+
label: "Patch (bug fix)"
|
|
38828
|
+
}, {
|
|
38829
|
+
value: "minor",
|
|
38830
|
+
label: "Minor (new feature)"
|
|
38831
|
+
}, {
|
|
38832
|
+
value: "major",
|
|
38833
|
+
label: "Major (breaking change)"
|
|
38834
|
+
}, {
|
|
38835
|
+
value: "none",
|
|
38836
|
+
label: "Keep current version"
|
|
38837
|
+
}];
|
|
38838
|
+
|
|
38839
|
+
// Pulled out as a small helper so the Dependencies loader and the
|
|
38840
|
+
// dashboard publish call share the same shape.
|
|
38841
|
+
function collectComponentConfigs() {
|
|
38842
|
+
var configMap = ComponentManager.componentMap();
|
|
38843
|
+
var componentConfigs = {};
|
|
38844
|
+
for (var _i = 0, _Object$entries = Object.entries(configMap); _i < _Object$entries.length; _i++) {
|
|
38845
|
+
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
|
38846
|
+
key = _Object$entries$_i[0],
|
|
38847
|
+
config = _Object$entries$_i[1];
|
|
38848
|
+
if (config && (config.id || config.scope || config.packageName)) {
|
|
38849
|
+
componentConfigs[config.name || key] = {
|
|
38850
|
+
id: config.id || null,
|
|
38851
|
+
scope: config.scope || "",
|
|
38852
|
+
packageName: config.packageName || ""
|
|
38853
|
+
};
|
|
38854
|
+
}
|
|
38855
|
+
}
|
|
38856
|
+
return componentConfigs;
|
|
38857
|
+
}
|
|
38858
|
+
|
|
38859
|
+
// Build default per-dependency selections. Owned dependencies default
|
|
38860
|
+
// to "include + patch bump" unless the local version is newer than what's
|
|
38861
|
+
// in the registry (then "include + use local"). Third-party refs get a
|
|
38862
|
+
// fixed "reference" entry.
|
|
38863
|
+
function seedSelections(plan, dashboardVisibility) {
|
|
38864
|
+
var selections = {};
|
|
38865
|
+
var _iterator = _createForOfIteratorHelper$9(plan.widgets || []),
|
|
38866
|
+
_step;
|
|
38867
|
+
try {
|
|
38868
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
38869
|
+
var w = _step.value;
|
|
38870
|
+
if (!w.scope || !w.packageName) continue;
|
|
38871
|
+
var _key = "".concat(w.scope, "/").concat(w.packageName);
|
|
38872
|
+
var _reg = w.registry;
|
|
38873
|
+
var _owned = (_reg === null || _reg === void 0 ? void 0 : _reg.ownedByMe) || !(_reg !== null && _reg !== void 0 && _reg.exists);
|
|
38874
|
+
selections[_key] = {
|
|
38875
|
+
kind: "widget",
|
|
38876
|
+
owned: _owned,
|
|
38877
|
+
// Default: include owned rows, skip third-party
|
|
38878
|
+
include: !!_owned,
|
|
38879
|
+
// Bump default: none if not yet in registry (publish local version as-is),
|
|
38880
|
+
// patch if already in registry at same version
|
|
38881
|
+
bump: !(_reg !== null && _reg !== void 0 && _reg.exists) || _reg.latestVersion !== w.localVersion ? "none" : "patch",
|
|
38882
|
+
// Per-widget visibility inherits dashboard visibility by default
|
|
38883
|
+
visibility: (_reg === null || _reg === void 0 ? void 0 : _reg.visibility) || dashboardVisibility || "public"
|
|
38884
|
+
};
|
|
38885
|
+
}
|
|
38886
|
+
} catch (err) {
|
|
38887
|
+
_iterator.e(err);
|
|
38888
|
+
} finally {
|
|
38889
|
+
_iterator.f();
|
|
38890
|
+
}
|
|
38891
|
+
if (plan.theme && plan.theme.scope && plan.theme.name) {
|
|
38892
|
+
var key = "".concat(plan.theme.scope, "/").concat(plan.theme.name);
|
|
38893
|
+
var reg = plan.theme.registry;
|
|
38894
|
+
var owned = (reg === null || reg === void 0 ? void 0 : reg.ownedByMe) || !(reg !== null && reg !== void 0 && reg.exists);
|
|
38895
|
+
selections[key] = {
|
|
38896
|
+
kind: "theme",
|
|
38897
|
+
owned: owned,
|
|
38898
|
+
include: !!owned,
|
|
38899
|
+
bump: !(reg !== null && reg !== void 0 && reg.exists) || reg.latestVersion !== plan.theme.localVersion ? "none" : "patch",
|
|
38900
|
+
visibility: (reg === null || reg === void 0 ? void 0 : reg.visibility) || dashboardVisibility || "public"
|
|
38901
|
+
};
|
|
38902
|
+
}
|
|
38903
|
+
return selections;
|
|
38904
|
+
}
|
|
38829
38905
|
|
|
38830
38906
|
/**
|
|
38831
38907
|
* PublishDashboardModal — multi-step stepper for preparing a dashboard
|
|
@@ -38906,21 +38982,45 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
38906
38982
|
preview = _useState20[0],
|
|
38907
38983
|
setPreview = _useState20[1];
|
|
38908
38984
|
|
|
38909
|
-
// Step 4:
|
|
38910
|
-
var _useState21 = React.useState(
|
|
38985
|
+
// Step 4: Dependencies — enriched plan (local + registry state) + per-dep user selections
|
|
38986
|
+
var _useState21 = React.useState(null),
|
|
38911
38987
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
38912
|
-
|
|
38913
|
-
|
|
38914
|
-
var _useState23 = React.useState(
|
|
38988
|
+
plan = _useState22[0],
|
|
38989
|
+
setPlan = _useState22[1];
|
|
38990
|
+
var _useState23 = React.useState(false),
|
|
38915
38991
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
38916
|
-
|
|
38917
|
-
|
|
38992
|
+
planLoading = _useState24[0],
|
|
38993
|
+
setPlanLoading = _useState24[1];
|
|
38994
|
+
var _useState25 = React.useState(null),
|
|
38995
|
+
_useState26 = _slicedToArray(_useState25, 2),
|
|
38996
|
+
planError = _useState26[0],
|
|
38997
|
+
setPlanError = _useState26[1];
|
|
38998
|
+
// selections keyed by `${scope}/${name}`: { include, bump, visibility }
|
|
38999
|
+
var _useState27 = React.useState({}),
|
|
39000
|
+
_useState28 = _slicedToArray(_useState27, 2),
|
|
39001
|
+
depSelections = _useState28[0],
|
|
39002
|
+
setDepSelections = _useState28[1];
|
|
39003
|
+
|
|
39004
|
+
// Step 5: Publish
|
|
39005
|
+
var _useState29 = React.useState(false),
|
|
39006
|
+
_useState30 = _slicedToArray(_useState29, 2),
|
|
39007
|
+
isPublishing = _useState30[0],
|
|
39008
|
+
setIsPublishing = _useState30[1];
|
|
39009
|
+
var _useState31 = React.useState(null),
|
|
39010
|
+
_useState32 = _slicedToArray(_useState31, 2),
|
|
39011
|
+
result = _useState32[0],
|
|
39012
|
+
setResult = _useState32[1];
|
|
39013
|
+
// Per-step progress during batch publish
|
|
39014
|
+
var _useState33 = React.useState([]),
|
|
39015
|
+
_useState34 = _slicedToArray(_useState33, 2),
|
|
39016
|
+
publishSteps = _useState34[0],
|
|
39017
|
+
setPublishSteps = _useState34[1];
|
|
38918
39018
|
|
|
38919
39019
|
// Visibility — chosen on the Details step. Defaults to public.
|
|
38920
|
-
var
|
|
38921
|
-
|
|
38922
|
-
visibility =
|
|
38923
|
-
setVisibility =
|
|
39020
|
+
var _useState35 = React.useState("public"),
|
|
39021
|
+
_useState36 = _slicedToArray(_useState35, 2),
|
|
39022
|
+
visibility = _useState36[0],
|
|
39023
|
+
setVisibility = _useState36[1];
|
|
38924
39024
|
|
|
38925
39025
|
// Fetch publish preview (widget names) on open
|
|
38926
39026
|
React.useEffect(function () {
|
|
@@ -39015,6 +39115,11 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
39015
39115
|
setIsPublishing(false);
|
|
39016
39116
|
setResult(null);
|
|
39017
39117
|
setVisibility("public");
|
|
39118
|
+
setPlan(null);
|
|
39119
|
+
setPlanLoading(false);
|
|
39120
|
+
setPlanError(null);
|
|
39121
|
+
setDepSelections({});
|
|
39122
|
+
setPublishSteps([]);
|
|
39018
39123
|
}
|
|
39019
39124
|
function handleClose() {
|
|
39020
39125
|
setIsOpen(false);
|
|
@@ -39026,6 +39131,36 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
39026
39131
|
if (step === 2 && nextStep > 2 && selectedTags.length === 0) return;
|
|
39027
39132
|
setStep(nextStep);
|
|
39028
39133
|
}
|
|
39134
|
+
|
|
39135
|
+
// Load the enriched dependency plan when user enters the Dependencies
|
|
39136
|
+
// step. Seeds per-dep selections: owned + not published OR owned + upstream
|
|
39137
|
+
// changed → include. Third-party refs stay read-only.
|
|
39138
|
+
React.useEffect(function () {
|
|
39139
|
+
if (!isOpen || step !== 4 || plan || planLoading) return;
|
|
39140
|
+
setPlanLoading(true);
|
|
39141
|
+
setPlanError(null);
|
|
39142
|
+
window.mainApi.dashboardConfig.getDashboardPublishPlan(appId, workspaceId, {
|
|
39143
|
+
componentConfigs: collectComponentConfigs()
|
|
39144
|
+
}).then(function (res) {
|
|
39145
|
+
if (!(res !== null && res !== void 0 && res.success)) {
|
|
39146
|
+
setPlanError((res === null || res === void 0 ? void 0 : res.error) || "Failed to load publish plan");
|
|
39147
|
+
setPlanLoading(false);
|
|
39148
|
+
return;
|
|
39149
|
+
}
|
|
39150
|
+
setPlan(res);
|
|
39151
|
+
setDepSelections(seedSelections(res, visibility));
|
|
39152
|
+
setPlanLoading(false);
|
|
39153
|
+
})["catch"](function (err) {
|
|
39154
|
+
setPlanError(err.message || "Failed to load publish plan");
|
|
39155
|
+
setPlanLoading(false);
|
|
39156
|
+
});
|
|
39157
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
39158
|
+
}, [step, isOpen]);
|
|
39159
|
+
function updateDepSelection(key, patch) {
|
|
39160
|
+
setDepSelections(function (prev) {
|
|
39161
|
+
return _objectSpread$n(_objectSpread$n({}, prev), {}, _defineProperty({}, key, _objectSpread$n(_objectSpread$n({}, prev[key]), patch)));
|
|
39162
|
+
});
|
|
39163
|
+
}
|
|
39029
39164
|
function toggleTag(tag) {
|
|
39030
39165
|
setSelectedTags(function (prev) {
|
|
39031
39166
|
return prev.includes(tag) ? prev.filter(function (t) {
|
|
@@ -39038,7 +39173,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
39038
39173
|
}
|
|
39039
39174
|
function _handlePublish() {
|
|
39040
39175
|
_handlePublish = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
39041
|
-
var
|
|
39176
|
+
var steps, _iterator2, _step2, w, _key2, _sel, key, sel, updateStep, i, _step3, _res$manifest, bump, options, res, _res, _options, _res2, _t2, _t3;
|
|
39042
39177
|
return _regeneratorRuntime.wrap(function (_context2) {
|
|
39043
39178
|
while (1) switch (_context2.prev = _context2.next) {
|
|
39044
39179
|
case 0:
|
|
@@ -39050,51 +39185,231 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
39050
39185
|
case 1:
|
|
39051
39186
|
setIsPublishing(true);
|
|
39052
39187
|
setResult(null);
|
|
39188
|
+
|
|
39189
|
+
// Build the ordered step list: each selected owned widget → theme → dashboard.
|
|
39190
|
+
// Third-party deps aren't published (they're just referenced by the manifest).
|
|
39191
|
+
steps = [];
|
|
39192
|
+
if (!plan) {
|
|
39193
|
+
_context2.next = 11;
|
|
39194
|
+
break;
|
|
39195
|
+
}
|
|
39196
|
+
_iterator2 = _createForOfIteratorHelper$9(plan.widgets || []);
|
|
39053
39197
|
_context2.prev = 2;
|
|
39054
|
-
|
|
39055
|
-
|
|
39056
|
-
|
|
39057
|
-
|
|
39058
|
-
|
|
39059
|
-
|
|
39060
|
-
|
|
39061
|
-
|
|
39062
|
-
|
|
39063
|
-
|
|
39064
|
-
|
|
39198
|
+
_iterator2.s();
|
|
39199
|
+
case 3:
|
|
39200
|
+
if ((_step2 = _iterator2.n()).done) {
|
|
39201
|
+
_context2.next = 7;
|
|
39202
|
+
break;
|
|
39203
|
+
}
|
|
39204
|
+
w = _step2.value;
|
|
39205
|
+
if (!(!w.scope || !w.packageName)) {
|
|
39206
|
+
_context2.next = 4;
|
|
39207
|
+
break;
|
|
39208
|
+
}
|
|
39209
|
+
return _context2.abrupt("continue", 6);
|
|
39210
|
+
case 4:
|
|
39211
|
+
_key2 = "".concat(w.scope, "/").concat(w.packageName);
|
|
39212
|
+
_sel = depSelections[_key2];
|
|
39213
|
+
if (!(!_sel || !_sel.owned || !_sel.include)) {
|
|
39214
|
+
_context2.next = 5;
|
|
39215
|
+
break;
|
|
39216
|
+
}
|
|
39217
|
+
return _context2.abrupt("continue", 6);
|
|
39218
|
+
case 5:
|
|
39219
|
+
steps.push({
|
|
39220
|
+
kind: "widget",
|
|
39221
|
+
key: _key2,
|
|
39222
|
+
label: "Publish widget ".concat(_key2),
|
|
39223
|
+
packageId: w.packageId || "".concat(w.scope, "/").concat(w.packageName),
|
|
39224
|
+
selection: _sel
|
|
39225
|
+
});
|
|
39226
|
+
case 6:
|
|
39227
|
+
_context2.next = 3;
|
|
39228
|
+
break;
|
|
39229
|
+
case 7:
|
|
39230
|
+
_context2.next = 9;
|
|
39231
|
+
break;
|
|
39232
|
+
case 8:
|
|
39233
|
+
_context2.prev = 8;
|
|
39234
|
+
_t2 = _context2["catch"](2);
|
|
39235
|
+
_iterator2.e(_t2);
|
|
39236
|
+
case 9:
|
|
39237
|
+
_context2.prev = 9;
|
|
39238
|
+
_iterator2.f();
|
|
39239
|
+
return _context2.finish(9);
|
|
39240
|
+
case 10:
|
|
39241
|
+
if (plan.theme && plan.theme.scope && plan.theme.name) {
|
|
39242
|
+
key = "".concat(plan.theme.scope, "/").concat(plan.theme.name);
|
|
39243
|
+
sel = depSelections[key];
|
|
39244
|
+
if (sel !== null && sel !== void 0 && sel.owned && sel.include) {
|
|
39245
|
+
steps.push({
|
|
39246
|
+
kind: "theme",
|
|
39247
|
+
key: key,
|
|
39248
|
+
label: "Publish theme ".concat(plan.theme.themeKey || key),
|
|
39249
|
+
themeKey: plan.theme.themeKey,
|
|
39250
|
+
selection: sel
|
|
39251
|
+
});
|
|
39065
39252
|
}
|
|
39066
39253
|
}
|
|
39067
|
-
|
|
39254
|
+
case 11:
|
|
39255
|
+
steps.push({
|
|
39256
|
+
kind: "dashboard",
|
|
39257
|
+
key: "dashboard",
|
|
39258
|
+
label: "Publish dashboard"
|
|
39259
|
+
});
|
|
39260
|
+
|
|
39261
|
+
// Initialize progress state (pending for all)
|
|
39262
|
+
setPublishSteps(steps.map(function (s) {
|
|
39263
|
+
return _objectSpread$n(_objectSpread$n({}, s), {}, {
|
|
39264
|
+
status: "pending",
|
|
39265
|
+
message: null
|
|
39266
|
+
});
|
|
39267
|
+
}));
|
|
39268
|
+
updateStep = function updateStep(idx, patch) {
|
|
39269
|
+
setPublishSteps(function (prev) {
|
|
39270
|
+
var next = _toConsumableArray(prev);
|
|
39271
|
+
next[idx] = _objectSpread$n(_objectSpread$n({}, next[idx]), patch);
|
|
39272
|
+
return next;
|
|
39273
|
+
});
|
|
39274
|
+
};
|
|
39275
|
+
_context2.prev = 12;
|
|
39276
|
+
i = 0;
|
|
39277
|
+
case 13:
|
|
39278
|
+
if (!(i < steps.length)) {
|
|
39279
|
+
_context2.next = 23;
|
|
39280
|
+
break;
|
|
39281
|
+
}
|
|
39282
|
+
_step3 = steps[i];
|
|
39283
|
+
updateStep(i, {
|
|
39284
|
+
status: "running"
|
|
39285
|
+
});
|
|
39286
|
+
if (!(_step3.kind === "widget")) {
|
|
39287
|
+
_context2.next = 16;
|
|
39288
|
+
break;
|
|
39289
|
+
}
|
|
39290
|
+
bump = _step3.selection.bump;
|
|
39291
|
+
options = _objectSpread$n(_objectSpread$n({}, bump && bump !== "none" ? {
|
|
39292
|
+
bump: bump
|
|
39293
|
+
} : {}), {}, {
|
|
39294
|
+
visibility: _step3.selection.visibility
|
|
39295
|
+
});
|
|
39296
|
+
_context2.next = 14;
|
|
39297
|
+
return window.mainApi.registry.publishWidget(appId, _step3.packageId, options);
|
|
39298
|
+
case 14:
|
|
39299
|
+
res = _context2.sent;
|
|
39300
|
+
if (res !== null && res !== void 0 && res.success) {
|
|
39301
|
+
_context2.next = 15;
|
|
39302
|
+
break;
|
|
39303
|
+
}
|
|
39304
|
+
updateStep(i, {
|
|
39305
|
+
status: "error",
|
|
39306
|
+
message: (res === null || res === void 0 ? void 0 : res.error) || "Publish failed"
|
|
39307
|
+
});
|
|
39308
|
+
setResult({
|
|
39309
|
+
success: false,
|
|
39310
|
+
error: "Failed to publish widget ".concat(_step3.key, ": ").concat((res === null || res === void 0 ? void 0 : res.error) || "unknown error")
|
|
39311
|
+
});
|
|
39312
|
+
setIsPublishing(false);
|
|
39313
|
+
return _context2.abrupt("return");
|
|
39314
|
+
case 15:
|
|
39315
|
+
updateStep(i, {
|
|
39316
|
+
status: "complete",
|
|
39317
|
+
message: "v".concat(res.newVersion || ((_res$manifest = res.manifest) === null || _res$manifest === void 0 ? void 0 : _res$manifest.version))
|
|
39318
|
+
});
|
|
39319
|
+
_context2.next = 22;
|
|
39320
|
+
break;
|
|
39321
|
+
case 16:
|
|
39322
|
+
if (!(_step3.kind === "theme")) {
|
|
39323
|
+
_context2.next = 19;
|
|
39324
|
+
break;
|
|
39325
|
+
}
|
|
39326
|
+
_context2.next = 17;
|
|
39327
|
+
return window.mainApi.themes.publishTheme(appId, _step3.themeKey, {
|
|
39328
|
+
visibility: _step3.selection.visibility
|
|
39329
|
+
});
|
|
39330
|
+
case 17:
|
|
39331
|
+
_res = _context2.sent;
|
|
39332
|
+
if (_res !== null && _res !== void 0 && _res.success) {
|
|
39333
|
+
_context2.next = 18;
|
|
39334
|
+
break;
|
|
39335
|
+
}
|
|
39336
|
+
updateStep(i, {
|
|
39337
|
+
status: "error",
|
|
39338
|
+
message: (_res === null || _res === void 0 ? void 0 : _res.error) || "Theme publish failed"
|
|
39339
|
+
});
|
|
39340
|
+
setResult({
|
|
39341
|
+
success: false,
|
|
39342
|
+
error: "Failed to publish theme ".concat(_step3.themeKey, ": ").concat((_res === null || _res === void 0 ? void 0 : _res.error) || "unknown error")
|
|
39343
|
+
});
|
|
39344
|
+
setIsPublishing(false);
|
|
39345
|
+
return _context2.abrupt("return");
|
|
39346
|
+
case 18:
|
|
39347
|
+
updateStep(i, {
|
|
39348
|
+
status: "complete",
|
|
39349
|
+
message: "published"
|
|
39350
|
+
});
|
|
39351
|
+
_context2.next = 22;
|
|
39352
|
+
break;
|
|
39353
|
+
case 19:
|
|
39354
|
+
if (!(_step3.kind === "dashboard")) {
|
|
39355
|
+
_context2.next = 22;
|
|
39356
|
+
break;
|
|
39357
|
+
}
|
|
39358
|
+
_options = {
|
|
39068
39359
|
authorName: authorName.trim(),
|
|
39069
39360
|
description: description.trim() || undefined,
|
|
39070
39361
|
tags: selectedTags,
|
|
39071
39362
|
icon: icon || undefined,
|
|
39072
39363
|
visibility: visibility,
|
|
39073
|
-
componentConfigs:
|
|
39364
|
+
componentConfigs: collectComponentConfigs()
|
|
39074
39365
|
};
|
|
39075
|
-
_context2.next =
|
|
39076
|
-
return window.mainApi.dashboardConfig.prepareDashboardForPublish(appId, workspaceId,
|
|
39077
|
-
case
|
|
39078
|
-
|
|
39079
|
-
|
|
39080
|
-
|
|
39366
|
+
_context2.next = 20;
|
|
39367
|
+
return window.mainApi.dashboardConfig.prepareDashboardForPublish(appId, workspaceId, _options);
|
|
39368
|
+
case 20:
|
|
39369
|
+
_res2 = _context2.sent;
|
|
39370
|
+
if (_res2 !== null && _res2 !== void 0 && _res2.success) {
|
|
39371
|
+
_context2.next = 21;
|
|
39372
|
+
break;
|
|
39373
|
+
}
|
|
39374
|
+
updateStep(i, {
|
|
39375
|
+
status: "error",
|
|
39376
|
+
message: (_res2 === null || _res2 === void 0 ? void 0 : _res2.error) || "Dashboard publish failed"
|
|
39377
|
+
});
|
|
39378
|
+
setResult({
|
|
39379
|
+
success: false,
|
|
39380
|
+
error: (_res2 === null || _res2 === void 0 ? void 0 : _res2.error) || "Failed to publish dashboard"
|
|
39381
|
+
});
|
|
39382
|
+
setIsPublishing(false);
|
|
39383
|
+
return _context2.abrupt("return");
|
|
39384
|
+
case 21:
|
|
39385
|
+
updateStep(i, {
|
|
39386
|
+
status: "complete",
|
|
39387
|
+
message: "published"
|
|
39388
|
+
});
|
|
39389
|
+
setResult(_res2);
|
|
39390
|
+
case 22:
|
|
39391
|
+
i++;
|
|
39392
|
+
_context2.next = 13;
|
|
39081
39393
|
break;
|
|
39082
|
-
case
|
|
39083
|
-
_context2.
|
|
39084
|
-
|
|
39394
|
+
case 23:
|
|
39395
|
+
_context2.next = 25;
|
|
39396
|
+
break;
|
|
39397
|
+
case 24:
|
|
39398
|
+
_context2.prev = 24;
|
|
39399
|
+
_t3 = _context2["catch"](12);
|
|
39085
39400
|
setResult({
|
|
39086
39401
|
success: false,
|
|
39087
|
-
error:
|
|
39402
|
+
error: _t3.message || "Failed to prepare dashboard for publish."
|
|
39088
39403
|
});
|
|
39089
|
-
case
|
|
39090
|
-
_context2.prev =
|
|
39404
|
+
case 25:
|
|
39405
|
+
_context2.prev = 25;
|
|
39091
39406
|
setIsPublishing(false);
|
|
39092
|
-
return _context2.finish(
|
|
39093
|
-
case
|
|
39407
|
+
return _context2.finish(25);
|
|
39408
|
+
case 26:
|
|
39094
39409
|
case "end":
|
|
39095
39410
|
return _context2.stop();
|
|
39096
39411
|
}
|
|
39097
|
-
}, _callee2, null, [[2,
|
|
39412
|
+
}, _callee2, null, [[2, 8, 9, 10], [12, 24, 25, 26]]);
|
|
39098
39413
|
}));
|
|
39099
39414
|
return _handlePublish.apply(this, arguments);
|
|
39100
39415
|
}
|
|
@@ -39188,7 +39503,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
39188
39503
|
}
|
|
39189
39504
|
function handleSignOut() {
|
|
39190
39505
|
return _handleSignOut.apply(this, arguments);
|
|
39191
|
-
}
|
|
39506
|
+
} // Steps: 0=Account, 1=Details, 2=Tags, 3=Icon, 4=Dependencies, 5=Publish
|
|
39192
39507
|
function _handleSignOut() {
|
|
39193
39508
|
_handleSignOut = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
|
|
39194
39509
|
return _regeneratorRuntime.wrap(function (_context5) {
|
|
@@ -39213,8 +39528,8 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
39213
39528
|
}));
|
|
39214
39529
|
return _handleSignOut.apply(this, arguments);
|
|
39215
39530
|
}
|
|
39216
|
-
var isLastStep = step ===
|
|
39217
|
-
var canAdvance = step === 0 ? authStatus === "authenticated" : step === 1 ? !!authorName.trim() : step === 2 ? selectedTags.length > 0 : true;
|
|
39531
|
+
var isLastStep = step === 5;
|
|
39532
|
+
var canAdvance = step === 0 ? authStatus === "authenticated" : step === 1 ? !!authorName.trim() : step === 2 ? selectedTags.length > 0 : step === 4 ? !planLoading : true;
|
|
39218
39533
|
return /*#__PURE__*/jsxRuntime.jsx(DashReact.Modal, {
|
|
39219
39534
|
isOpen: isOpen,
|
|
39220
39535
|
setIsOpen: handleClose,
|
|
@@ -39436,11 +39751,35 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
39436
39751
|
onSelectIcon: setIcon
|
|
39437
39752
|
})
|
|
39438
39753
|
})
|
|
39754
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Stepper.Step, {
|
|
39755
|
+
label: "Dependencies",
|
|
39756
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
39757
|
+
className: "flex-1 min-h-0 overflow-y-auto pb-4 space-y-4",
|
|
39758
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("p", {
|
|
39759
|
+
className: "text-sm opacity-70",
|
|
39760
|
+
children: "Choose which owned widgets + theme to publish alongside this dashboard. Third-party dependencies are referenced only \u2014 users install them separately."
|
|
39761
|
+
}), planLoading && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
39762
|
+
className: "text-sm opacity-60 py-6 text-center",
|
|
39763
|
+
children: "Resolving dependencies\u2026"
|
|
39764
|
+
}), planError && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
39765
|
+
className: "p-3 bg-red-900/20 border border-red-700/40 rounded text-sm text-red-200",
|
|
39766
|
+
children: planError
|
|
39767
|
+
}), (plan === null || plan === void 0 ? void 0 : plan.registryError) && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
39768
|
+
className: "p-2 bg-amber-900/20 border border-amber-700/40 rounded text-xs text-amber-200",
|
|
39769
|
+
children: ["Registry lookup failed: ", plan.registryError, ". Dependencies shown are local-only."]
|
|
39770
|
+
}), plan && !planLoading && /*#__PURE__*/jsxRuntime.jsx(DependencyTable, {
|
|
39771
|
+
plan: plan,
|
|
39772
|
+
selections: depSelections,
|
|
39773
|
+
onChange: updateDepSelection
|
|
39774
|
+
})]
|
|
39775
|
+
})
|
|
39439
39776
|
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Stepper.Step, {
|
|
39440
39777
|
label: "Publish",
|
|
39441
|
-
children: /*#__PURE__*/jsxRuntime.
|
|
39778
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
39442
39779
|
className: "flex-1 min-h-0 overflow-y-auto pb-4 space-y-4",
|
|
39443
|
-
children:
|
|
39780
|
+
children: [(isPublishing || publishSteps.length > 0) && /*#__PURE__*/jsxRuntime.jsx(PublishProgressList, {
|
|
39781
|
+
steps: publishSteps
|
|
39782
|
+
}), !result && !isPublishing && publishSteps.length === 0 ? /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
39444
39783
|
children: [/*#__PURE__*/jsxRuntime.jsx("p", {
|
|
39445
39784
|
className: "text-sm opacity-70",
|
|
39446
39785
|
children: "Review your dashboard details before publishing."
|
|
@@ -39605,7 +39944,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
39605
39944
|
className: "text-sm text-red-400",
|
|
39606
39945
|
children: result.error || "Publish preparation failed."
|
|
39607
39946
|
})]
|
|
39608
|
-
})
|
|
39947
|
+
})]
|
|
39609
39948
|
})
|
|
39610
39949
|
})]
|
|
39611
39950
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
@@ -39623,7 +39962,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
39623
39962
|
className: "flex-1 text-center",
|
|
39624
39963
|
children: /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
39625
39964
|
className: "text-xs opacity-40",
|
|
39626
|
-
children: ["Step ", step + 1, " of
|
|
39965
|
+
children: ["Step ", step + 1, " of 6"]
|
|
39627
39966
|
})
|
|
39628
39967
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
39629
39968
|
className: "flex flex-row gap-2",
|
|
@@ -39647,6 +39986,196 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
39647
39986
|
});
|
|
39648
39987
|
};
|
|
39649
39988
|
|
|
39989
|
+
/**
|
|
39990
|
+
* Compact per-step progress list shown during batch publish.
|
|
39991
|
+
*/
|
|
39992
|
+
function PublishProgressList(_ref3) {
|
|
39993
|
+
var steps = _ref3.steps;
|
|
39994
|
+
if (!steps || steps.length === 0) return null;
|
|
39995
|
+
var iconFor = function iconFor(status) {
|
|
39996
|
+
switch (status) {
|
|
39997
|
+
case "complete":
|
|
39998
|
+
return {
|
|
39999
|
+
icon: "circle-check",
|
|
40000
|
+
color: "text-green-400"
|
|
40001
|
+
};
|
|
40002
|
+
case "running":
|
|
40003
|
+
return {
|
|
40004
|
+
icon: "spinner",
|
|
40005
|
+
color: "text-indigo-400 animate-spin"
|
|
40006
|
+
};
|
|
40007
|
+
case "error":
|
|
40008
|
+
return {
|
|
40009
|
+
icon: "circle-xmark",
|
|
40010
|
+
color: "text-red-400"
|
|
40011
|
+
};
|
|
40012
|
+
default:
|
|
40013
|
+
return {
|
|
40014
|
+
icon: "circle",
|
|
40015
|
+
color: "opacity-30"
|
|
40016
|
+
};
|
|
40017
|
+
}
|
|
40018
|
+
};
|
|
40019
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
40020
|
+
className: "bg-white/5 border border-white/10 rounded-lg p-3 space-y-1.5 text-sm",
|
|
40021
|
+
children: steps.map(function (s, i) {
|
|
40022
|
+
var _iconFor = iconFor(s.status),
|
|
40023
|
+
icon = _iconFor.icon,
|
|
40024
|
+
color = _iconFor.color;
|
|
40025
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
40026
|
+
className: "flex items-center gap-2",
|
|
40027
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
40028
|
+
icon: icon,
|
|
40029
|
+
className: "h-3.5 w-3.5 ".concat(color)
|
|
40030
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
40031
|
+
className: "flex-1 truncate",
|
|
40032
|
+
children: s.label
|
|
40033
|
+
}), s.message && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
40034
|
+
className: "text-xs ".concat(s.status === "error" ? "text-red-300" : "opacity-60"),
|
|
40035
|
+
children: s.message
|
|
40036
|
+
})]
|
|
40037
|
+
}, i);
|
|
40038
|
+
})
|
|
40039
|
+
});
|
|
40040
|
+
}
|
|
40041
|
+
|
|
40042
|
+
/**
|
|
40043
|
+
* Table of widget + theme dependencies. Owned rows are editable (include,
|
|
40044
|
+
* bump, visibility). Third-party rows show as read-only references.
|
|
40045
|
+
*/
|
|
40046
|
+
function DependencyTable(_ref4) {
|
|
40047
|
+
var plan = _ref4.plan,
|
|
40048
|
+
selections = _ref4.selections,
|
|
40049
|
+
_onChange = _ref4.onChange;
|
|
40050
|
+
var rows = [];
|
|
40051
|
+
var _iterator3 = _createForOfIteratorHelper$9(plan.widgets || []),
|
|
40052
|
+
_step4;
|
|
40053
|
+
try {
|
|
40054
|
+
for (_iterator3.s(); !(_step4 = _iterator3.n()).done;) {
|
|
40055
|
+
var w = _step4.value;
|
|
40056
|
+
if (!w.scope || !w.packageName) continue;
|
|
40057
|
+
var _key3 = "".concat(w.scope, "/").concat(w.packageName);
|
|
40058
|
+
rows.push({
|
|
40059
|
+
key: _key3,
|
|
40060
|
+
kind: "widget",
|
|
40061
|
+
data: w
|
|
40062
|
+
});
|
|
40063
|
+
}
|
|
40064
|
+
} catch (err) {
|
|
40065
|
+
_iterator3.e(err);
|
|
40066
|
+
} finally {
|
|
40067
|
+
_iterator3.f();
|
|
40068
|
+
}
|
|
40069
|
+
if (plan.theme && plan.theme.scope && plan.theme.name) {
|
|
40070
|
+
var key = "".concat(plan.theme.scope, "/").concat(plan.theme.name);
|
|
40071
|
+
rows.push({
|
|
40072
|
+
key: key,
|
|
40073
|
+
kind: "theme",
|
|
40074
|
+
data: plan.theme
|
|
40075
|
+
});
|
|
40076
|
+
}
|
|
40077
|
+
if (rows.length === 0) {
|
|
40078
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
40079
|
+
className: "text-sm opacity-60 py-6 text-center",
|
|
40080
|
+
children: "No dependencies detected."
|
|
40081
|
+
});
|
|
40082
|
+
}
|
|
40083
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
40084
|
+
className: "space-y-2",
|
|
40085
|
+
children: rows.map(function (_ref5) {
|
|
40086
|
+
var key = _ref5.key,
|
|
40087
|
+
kind = _ref5.kind,
|
|
40088
|
+
data = _ref5.data;
|
|
40089
|
+
var sel = selections[key];
|
|
40090
|
+
if (!sel) return null;
|
|
40091
|
+
var reg = data.registry;
|
|
40092
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
40093
|
+
className: "bg-white/5 border border-white/10 rounded-lg p-3",
|
|
40094
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
40095
|
+
className: "flex items-start gap-3",
|
|
40096
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
40097
|
+
className: "pt-0.5",
|
|
40098
|
+
children: sel.owned ? /*#__PURE__*/jsxRuntime.jsx("input", {
|
|
40099
|
+
type: "checkbox",
|
|
40100
|
+
checked: sel.include,
|
|
40101
|
+
onChange: function onChange(e) {
|
|
40102
|
+
return _onChange(key, {
|
|
40103
|
+
include: e.target.checked
|
|
40104
|
+
});
|
|
40105
|
+
},
|
|
40106
|
+
className: "h-4 w-4 accent-indigo-500 cursor-pointer"
|
|
40107
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
40108
|
+
icon: "lock",
|
|
40109
|
+
className: "h-3 w-3 opacity-40",
|
|
40110
|
+
title: "Third-party \u2014 referenced only"
|
|
40111
|
+
})
|
|
40112
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
40113
|
+
className: "flex-1 min-w-0",
|
|
40114
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
40115
|
+
className: "flex items-center gap-2 flex-wrap",
|
|
40116
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
40117
|
+
className: "text-sm font-medium truncate",
|
|
40118
|
+
children: [data.scope, "/", data.packageName || data.name]
|
|
40119
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
40120
|
+
className: "text-[10px] px-1.5 py-0.5 rounded ".concat(kind === "theme" ? "bg-purple-900/30 text-purple-200" : "bg-blue-900/30 text-blue-200"),
|
|
40121
|
+
children: kind
|
|
40122
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
40123
|
+
className: "text-[10px] px-1.5 py-0.5 rounded ".concat(sel.owned ? "bg-emerald-900/30 text-emerald-200" : "bg-gray-700/40 text-gray-300"),
|
|
40124
|
+
children: sel.owned ? "owned" : "third-party"
|
|
40125
|
+
})]
|
|
40126
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
40127
|
+
className: "text-xs opacity-60 mt-1",
|
|
40128
|
+
children: ["Local v", data.localVersion || "?", reg !== null && reg !== void 0 && reg.exists ? /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
40129
|
+
children: [" ", "\xB7 Registry v", reg.latestVersion, " (", reg.visibility, ")"]
|
|
40130
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
40131
|
+
children: " \xB7 Not yet in registry"
|
|
40132
|
+
})]
|
|
40133
|
+
}), sel.owned && sel.include && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
40134
|
+
className: "mt-2 flex items-center gap-3 flex-wrap",
|
|
40135
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("label", {
|
|
40136
|
+
className: "text-xs opacity-60 flex items-center gap-2",
|
|
40137
|
+
children: ["Bump", /*#__PURE__*/jsxRuntime.jsx("select", {
|
|
40138
|
+
value: sel.bump,
|
|
40139
|
+
onChange: function onChange(e) {
|
|
40140
|
+
return _onChange(key, {
|
|
40141
|
+
bump: e.target.value
|
|
40142
|
+
});
|
|
40143
|
+
},
|
|
40144
|
+
className: "text-xs bg-gray-800 border border-white/10 rounded px-2 py-1",
|
|
40145
|
+
children: BUMP_OPTIONS.map(function (opt) {
|
|
40146
|
+
return /*#__PURE__*/jsxRuntime.jsx("option", {
|
|
40147
|
+
value: opt.value,
|
|
40148
|
+
children: opt.label
|
|
40149
|
+
}, opt.value);
|
|
40150
|
+
})
|
|
40151
|
+
})]
|
|
40152
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("label", {
|
|
40153
|
+
className: "text-xs opacity-60 flex items-center gap-2",
|
|
40154
|
+
children: ["Visibility", /*#__PURE__*/jsxRuntime.jsxs("select", {
|
|
40155
|
+
value: sel.visibility,
|
|
40156
|
+
onChange: function onChange(e) {
|
|
40157
|
+
return _onChange(key, {
|
|
40158
|
+
visibility: e.target.value
|
|
40159
|
+
});
|
|
40160
|
+
},
|
|
40161
|
+
className: "text-xs bg-gray-800 border border-white/10 rounded px-2 py-1",
|
|
40162
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("option", {
|
|
40163
|
+
value: "public",
|
|
40164
|
+
children: "public"
|
|
40165
|
+
}), /*#__PURE__*/jsxRuntime.jsx("option", {
|
|
40166
|
+
value: "private",
|
|
40167
|
+
children: "private"
|
|
40168
|
+
})]
|
|
40169
|
+
})]
|
|
40170
|
+
})]
|
|
40171
|
+
})]
|
|
40172
|
+
})]
|
|
40173
|
+
})
|
|
40174
|
+
}, key);
|
|
40175
|
+
})
|
|
40176
|
+
});
|
|
40177
|
+
}
|
|
40178
|
+
|
|
39650
40179
|
function ownKeys$m(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; }
|
|
39651
40180
|
function _objectSpread$m(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$m(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$m(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
39652
40181
|
var LayoutPreview = function LayoutPreview(_ref) {
|