@trops/dash-core 0.1.325 → 0.1.327
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 +496 -507
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +528 -548
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -32,8 +32,8 @@ import { InstantSearch, Hits } from 'react-instantsearch-hooks-web';
|
|
|
32
32
|
import { Link } from 'react-router-dom';
|
|
33
33
|
import { marked } from 'marked';
|
|
34
34
|
|
|
35
|
-
function ownKeys$
|
|
36
|
-
function _objectSpread$
|
|
35
|
+
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; }
|
|
36
|
+
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; }
|
|
37
37
|
var event = {
|
|
38
38
|
list: new Map(),
|
|
39
39
|
// Map(1) { '<widget-UUID>' => { 'CustomSearchbar[10].searchQueryChanged': [] } }
|
|
@@ -95,7 +95,7 @@ var event = {
|
|
|
95
95
|
uuid: subscriber["uuid"]
|
|
96
96
|
};
|
|
97
97
|
if ("action" in subscriber && subscriber.action !== undefined) {
|
|
98
|
-
subscriber["action"](_objectSpread$
|
|
98
|
+
subscriber["action"](_objectSpread$R({}, objectToSend));
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
}
|
|
@@ -2629,8 +2629,8 @@ var DashboardWrapper = function DashboardWrapper(_ref) {
|
|
|
2629
2629
|
});
|
|
2630
2630
|
};
|
|
2631
2631
|
|
|
2632
|
-
function ownKeys$
|
|
2633
|
-
function _objectSpread$
|
|
2632
|
+
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; }
|
|
2633
|
+
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; }
|
|
2634
2634
|
var DashboardThemeProvider = function DashboardThemeProvider(_ref) {
|
|
2635
2635
|
var themeKey = _ref.themeKey,
|
|
2636
2636
|
children = _ref.children;
|
|
@@ -2642,7 +2642,7 @@ var DashboardThemeProvider = function DashboardThemeProvider(_ref) {
|
|
|
2642
2642
|
var dashboardTheme = themes[themeKey];
|
|
2643
2643
|
var themeValue = dashboardTheme ? dashboardTheme[themeVariant] || null : null;
|
|
2644
2644
|
if (!themeValue) return null;
|
|
2645
|
-
return _objectSpread$
|
|
2645
|
+
return _objectSpread$Q(_objectSpread$Q({}, parentContext), {}, {
|
|
2646
2646
|
currentTheme: themeValue,
|
|
2647
2647
|
currentThemeKey: themeKey,
|
|
2648
2648
|
theme: themeValue,
|
|
@@ -2660,8 +2660,8 @@ var DashboardThemeProvider = function DashboardThemeProvider(_ref) {
|
|
|
2660
2660
|
});
|
|
2661
2661
|
};
|
|
2662
2662
|
|
|
2663
|
-
function ownKeys$
|
|
2664
|
-
function _objectSpread$
|
|
2663
|
+
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; }
|
|
2664
|
+
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; }
|
|
2665
2665
|
var AppThemeScope = function AppThemeScope(_ref) {
|
|
2666
2666
|
var children = _ref.children;
|
|
2667
2667
|
var ctx = useContext(ThemeContext);
|
|
@@ -2669,7 +2669,7 @@ var AppThemeScope = function AppThemeScope(_ref) {
|
|
|
2669
2669
|
children: children
|
|
2670
2670
|
});
|
|
2671
2671
|
return /*#__PURE__*/jsx(ThemeContext.Provider, {
|
|
2672
|
-
value: _objectSpread$
|
|
2672
|
+
value: _objectSpread$P(_objectSpread$P({}, ctx), {}, {
|
|
2673
2673
|
currentTheme: ctx.appTheme,
|
|
2674
2674
|
currentThemeKey: ctx.appThemeKey,
|
|
2675
2675
|
theme: ctx.appTheme,
|
|
@@ -2781,8 +2781,8 @@ var LayoutContainer = function LayoutContainer(_ref) {
|
|
|
2781
2781
|
});
|
|
2782
2782
|
};
|
|
2783
2783
|
|
|
2784
|
-
function ownKeys$
|
|
2785
|
-
function _objectSpread$
|
|
2784
|
+
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; }
|
|
2785
|
+
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; }
|
|
2786
2786
|
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; } } }; }
|
|
2787
2787
|
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; } }
|
|
2788
2788
|
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; }
|
|
@@ -3064,7 +3064,7 @@ function createLayoutFromTemplate(template) {
|
|
|
3064
3064
|
try {
|
|
3065
3065
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3066
3066
|
var cell = _step.value;
|
|
3067
|
-
grid[cell.key] = _objectSpread$
|
|
3067
|
+
grid[cell.key] = _objectSpread$O({
|
|
3068
3068
|
component: null,
|
|
3069
3069
|
hide: cell.hide || false
|
|
3070
3070
|
}, cell.span ? {
|
|
@@ -3993,8 +3993,8 @@ var RegistryAuthModal = function RegistryAuthModal(_ref) {
|
|
|
3993
3993
|
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; } } }; }
|
|
3994
3994
|
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; } }
|
|
3995
3995
|
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; }
|
|
3996
|
-
function ownKeys$
|
|
3997
|
-
function _objectSpread$
|
|
3996
|
+
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; }
|
|
3997
|
+
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; }
|
|
3998
3998
|
var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
3999
3999
|
var dashboardPackage = _ref.dashboardPackage,
|
|
4000
4000
|
appId = _ref.appId,
|
|
@@ -4110,7 +4110,7 @@ var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
|
4110
4110
|
setProgressWidgets(function (prev) {
|
|
4111
4111
|
var next = _toConsumableArray(prev);
|
|
4112
4112
|
if (data.index >= 0 && data.index < next.length) {
|
|
4113
|
-
next[data.index] = _objectSpread$
|
|
4113
|
+
next[data.index] = _objectSpread$N(_objectSpread$N({}, next[data.index]), {}, {
|
|
4114
4114
|
status: data.status,
|
|
4115
4115
|
error: data.error || null
|
|
4116
4116
|
});
|
|
@@ -4206,7 +4206,7 @@ var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
|
4206
4206
|
var raw = preview === null || preview === void 0 ? void 0 : preview.compatibility;
|
|
4207
4207
|
if (!raw) return raw;
|
|
4208
4208
|
var cMap = ComponentManager.componentMap();
|
|
4209
|
-
var augWidgets = _objectSpread$
|
|
4209
|
+
var augWidgets = _objectSpread$N({}, raw.widgets);
|
|
4210
4210
|
var fixedCount = 0;
|
|
4211
4211
|
var _loop = function _loop() {
|
|
4212
4212
|
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
|
@@ -4682,8 +4682,8 @@ var DiscoverDashboardsDetail = function DiscoverDashboardsDetail(_ref) {
|
|
|
4682
4682
|
});
|
|
4683
4683
|
};
|
|
4684
4684
|
|
|
4685
|
-
function ownKeys$
|
|
4686
|
-
function _objectSpread$
|
|
4685
|
+
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; }
|
|
4686
|
+
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; }
|
|
4687
4687
|
var LayoutManagerModal = function LayoutManagerModal(_ref) {
|
|
4688
4688
|
var open = _ref.open,
|
|
4689
4689
|
setIsOpen = _ref.setIsOpen,
|
|
@@ -4928,7 +4928,7 @@ var LayoutManagerModal = function LayoutManagerModal(_ref) {
|
|
|
4928
4928
|
}
|
|
4929
4929
|
return _context2.abrupt("return");
|
|
4930
4930
|
case 6:
|
|
4931
|
-
updatedWorkspace = _objectSpread$
|
|
4931
|
+
updatedWorkspace = _objectSpread$M(_objectSpread$M({}, importedWorkspace), {}, {
|
|
4932
4932
|
name: dashboardName.trim(),
|
|
4933
4933
|
menuId: menuId,
|
|
4934
4934
|
themeKey: selectedThemeKey
|
|
@@ -6683,8 +6683,8 @@ function applyFilters(items, filters, mode) {
|
|
|
6683
6683
|
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; } } }; }
|
|
6684
6684
|
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; } }
|
|
6685
6685
|
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; }
|
|
6686
|
-
function ownKeys$
|
|
6687
|
-
function _objectSpread$
|
|
6686
|
+
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; }
|
|
6687
|
+
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; }
|
|
6688
6688
|
var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
6689
6689
|
var _state$selectedDashbo, _state$selectedDashbo2;
|
|
6690
6690
|
var state = _ref.state,
|
|
@@ -6854,7 +6854,7 @@ var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
|
6854
6854
|
_context2.next = 7;
|
|
6855
6855
|
break;
|
|
6856
6856
|
}
|
|
6857
|
-
updatedWorkspace = _objectSpread$
|
|
6857
|
+
updatedWorkspace = _objectSpread$L(_objectSpread$L({}, installResult.workspace), {}, {
|
|
6858
6858
|
name: name.trim(),
|
|
6859
6859
|
menuId: menuId || 1,
|
|
6860
6860
|
themeKey: theme
|
|
@@ -7609,8 +7609,8 @@ var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
|
7609
7609
|
});
|
|
7610
7610
|
};
|
|
7611
7611
|
|
|
7612
|
-
function ownKeys$
|
|
7613
|
-
function _objectSpread$
|
|
7612
|
+
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; }
|
|
7613
|
+
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; }
|
|
7614
7614
|
var TOTAL_STEPS = 2; // Steps 0-1: Discover, Customize
|
|
7615
7615
|
|
|
7616
7616
|
var initialState = {
|
|
@@ -7636,20 +7636,20 @@ var initialState = {
|
|
|
7636
7636
|
function wizardReducer(state, action) {
|
|
7637
7637
|
switch (action.type) {
|
|
7638
7638
|
case "SET_STEP":
|
|
7639
|
-
return _objectSpread$
|
|
7639
|
+
return _objectSpread$K(_objectSpread$K({}, state), {}, {
|
|
7640
7640
|
step: action.payload
|
|
7641
7641
|
});
|
|
7642
7642
|
case "SET_FILTERS":
|
|
7643
|
-
return _objectSpread$
|
|
7644
|
-
filters: _objectSpread$
|
|
7643
|
+
return _objectSpread$K(_objectSpread$K({}, state), {}, {
|
|
7644
|
+
filters: _objectSpread$K(_objectSpread$K({}, state.filters), action.payload)
|
|
7645
7645
|
});
|
|
7646
7646
|
case "TOGGLE_FILTER_CATEGORY":
|
|
7647
7647
|
{
|
|
7648
7648
|
var categories = state.filters.categories.includes(action.payload) ? state.filters.categories.filter(function (c) {
|
|
7649
7649
|
return c !== action.payload;
|
|
7650
7650
|
}) : [].concat(_toConsumableArray(state.filters.categories), [action.payload]);
|
|
7651
|
-
return _objectSpread$
|
|
7652
|
-
filters: _objectSpread$
|
|
7651
|
+
return _objectSpread$K(_objectSpread$K({}, state), {}, {
|
|
7652
|
+
filters: _objectSpread$K(_objectSpread$K({}, state.filters), {}, {
|
|
7653
7653
|
categories: categories
|
|
7654
7654
|
})
|
|
7655
7655
|
});
|
|
@@ -7659,15 +7659,15 @@ function wizardReducer(state, action) {
|
|
|
7659
7659
|
var providers = state.filters.providers.includes(action.payload) ? state.filters.providers.filter(function (p) {
|
|
7660
7660
|
return p !== action.payload;
|
|
7661
7661
|
}) : [].concat(_toConsumableArray(state.filters.providers), [action.payload]);
|
|
7662
|
-
return _objectSpread$
|
|
7663
|
-
filters: _objectSpread$
|
|
7662
|
+
return _objectSpread$K(_objectSpread$K({}, state), {}, {
|
|
7663
|
+
filters: _objectSpread$K(_objectSpread$K({}, state.filters), {}, {
|
|
7664
7664
|
providers: providers
|
|
7665
7665
|
})
|
|
7666
7666
|
});
|
|
7667
7667
|
}
|
|
7668
7668
|
case "SET_SEARCH_QUERY":
|
|
7669
|
-
return _objectSpread$
|
|
7670
|
-
filters: _objectSpread$
|
|
7669
|
+
return _objectSpread$K(_objectSpread$K({}, state), {}, {
|
|
7670
|
+
filters: _objectSpread$K(_objectSpread$K({}, state.filters), {}, {
|
|
7671
7671
|
query: action.payload
|
|
7672
7672
|
})
|
|
7673
7673
|
});
|
|
@@ -7677,7 +7677,7 @@ function wizardReducer(state, action) {
|
|
|
7677
7677
|
var widgetOrder = action.payload.map(function (w) {
|
|
7678
7678
|
return w.name || w.key;
|
|
7679
7679
|
});
|
|
7680
|
-
return _objectSpread$
|
|
7680
|
+
return _objectSpread$K(_objectSpread$K({}, state), {}, {
|
|
7681
7681
|
selectedWidgets: action.payload,
|
|
7682
7682
|
layout: {
|
|
7683
7683
|
templateKey: templateKey,
|
|
@@ -7697,7 +7697,7 @@ function wizardReducer(state, action) {
|
|
|
7697
7697
|
var toggleWidgetOrder = selectedWidgets.map(function (w) {
|
|
7698
7698
|
return w.name || w.key;
|
|
7699
7699
|
});
|
|
7700
|
-
return _objectSpread$
|
|
7700
|
+
return _objectSpread$K(_objectSpread$K({}, state), {}, {
|
|
7701
7701
|
selectedWidgets: selectedWidgets,
|
|
7702
7702
|
layout: {
|
|
7703
7703
|
templateKey: toggleTemplateKey,
|
|
@@ -7706,29 +7706,29 @@ function wizardReducer(state, action) {
|
|
|
7706
7706
|
});
|
|
7707
7707
|
}
|
|
7708
7708
|
case "SET_SELECTED_DASHBOARD":
|
|
7709
|
-
return _objectSpread$
|
|
7709
|
+
return _objectSpread$K(_objectSpread$K({}, state), {}, {
|
|
7710
7710
|
selectedDashboard: action.payload
|
|
7711
7711
|
});
|
|
7712
7712
|
case "SET_PATH":
|
|
7713
|
-
return _objectSpread$
|
|
7713
|
+
return _objectSpread$K(_objectSpread$K({}, state), {}, {
|
|
7714
7714
|
path: action.payload
|
|
7715
7715
|
});
|
|
7716
7716
|
case "SET_LAYOUT":
|
|
7717
|
-
return _objectSpread$
|
|
7717
|
+
return _objectSpread$K(_objectSpread$K({}, state), {}, {
|
|
7718
7718
|
layout: action.payload
|
|
7719
7719
|
});
|
|
7720
7720
|
case "REORDER_WIDGETS":
|
|
7721
|
-
return _objectSpread$
|
|
7722
|
-
layout: _objectSpread$
|
|
7721
|
+
return _objectSpread$K(_objectSpread$K({}, state), {}, {
|
|
7722
|
+
layout: _objectSpread$K(_objectSpread$K({}, state.layout), {}, {
|
|
7723
7723
|
widgetOrder: action.payload
|
|
7724
7724
|
})
|
|
7725
7725
|
});
|
|
7726
7726
|
case "SET_CUSTOMIZATION":
|
|
7727
|
-
return _objectSpread$
|
|
7728
|
-
customization: _objectSpread$
|
|
7727
|
+
return _objectSpread$K(_objectSpread$K({}, state), {}, {
|
|
7728
|
+
customization: _objectSpread$K(_objectSpread$K({}, state.customization), action.payload)
|
|
7729
7729
|
});
|
|
7730
7730
|
case "RESET":
|
|
7731
|
-
return _objectSpread$
|
|
7731
|
+
return _objectSpread$K({}, initialState);
|
|
7732
7732
|
default:
|
|
7733
7733
|
return state;
|
|
7734
7734
|
}
|
|
@@ -12380,8 +12380,8 @@ var deepEqual = function deepEqual(a, b, opts) {
|
|
|
12380
12380
|
|
|
12381
12381
|
var deepEqual$1 = /*@__PURE__*/getDefaultExportFromCjs(deepEqual);
|
|
12382
12382
|
|
|
12383
|
-
function ownKeys$
|
|
12384
|
-
function _objectSpread$
|
|
12383
|
+
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; }
|
|
12384
|
+
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; }
|
|
12385
12385
|
var PanelEditItem = function PanelEditItem(_ref) {
|
|
12386
12386
|
var _ComponentManager$get;
|
|
12387
12387
|
var workspace = _ref.workspace,
|
|
@@ -12441,7 +12441,7 @@ var PanelEditItem = function PanelEditItem(_ref) {
|
|
|
12441
12441
|
var uuid = newItem.uuid || newItem.uuidString;
|
|
12442
12442
|
if (uuid) {
|
|
12443
12443
|
workspaceTemp.selectedProviders = workspaceTemp.selectedProviders || {};
|
|
12444
|
-
workspaceTemp.selectedProviders[uuid] = _objectSpread$
|
|
12444
|
+
workspaceTemp.selectedProviders[uuid] = _objectSpread$J(_objectSpread$J({}, workspaceTemp.selectedProviders[uuid] || {}), {}, _defineProperty({}, providerType, providerId));
|
|
12445
12445
|
}
|
|
12446
12446
|
onUpdate(newItem, workspaceTemp);
|
|
12447
12447
|
forceUpdate();
|
|
@@ -12570,7 +12570,7 @@ var PanelEditItem = function PanelEditItem(_ref) {
|
|
|
12570
12570
|
var _ref5 = _slicedToArray(_ref4, 2),
|
|
12571
12571
|
name = _ref5[0],
|
|
12572
12572
|
p = _ref5[1];
|
|
12573
|
-
return _objectSpread$
|
|
12573
|
+
return _objectSpread$J({
|
|
12574
12574
|
name: name
|
|
12575
12575
|
}, p);
|
|
12576
12576
|
});
|
|
@@ -12615,8 +12615,8 @@ var _excluded$5 = ["rows", "cols"];
|
|
|
12615
12615
|
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; } } }; }
|
|
12616
12616
|
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; } }
|
|
12617
12617
|
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; }
|
|
12618
|
-
function ownKeys$
|
|
12619
|
-
function _objectSpread$
|
|
12618
|
+
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; }
|
|
12619
|
+
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; }
|
|
12620
12620
|
var defaultGrid = {
|
|
12621
12621
|
rows: 1,
|
|
12622
12622
|
cols: 1,
|
|
@@ -12637,7 +12637,7 @@ function GridEditor(_ref) {
|
|
|
12637
12637
|
setGrid = _useState2[1];
|
|
12638
12638
|
var addRow = function addRow() {
|
|
12639
12639
|
var newRow = grid.rows;
|
|
12640
|
-
var newGrid = _objectSpread$
|
|
12640
|
+
var newGrid = _objectSpread$I(_objectSpread$I({}, grid), {}, {
|
|
12641
12641
|
rows: grid.rows + 1
|
|
12642
12642
|
});
|
|
12643
12643
|
for (var col = 0; col < grid.cols; col++) {
|
|
@@ -12652,7 +12652,7 @@ function GridEditor(_ref) {
|
|
|
12652
12652
|
};
|
|
12653
12653
|
var addColumn = function addColumn() {
|
|
12654
12654
|
var newCol = grid.cols;
|
|
12655
|
-
var newGrid = _objectSpread$
|
|
12655
|
+
var newGrid = _objectSpread$I(_objectSpread$I({}, grid), {}, {
|
|
12656
12656
|
cols: grid.cols + 1
|
|
12657
12657
|
});
|
|
12658
12658
|
for (var row = 0; row < grid.rows; row++) {
|
|
@@ -12685,8 +12685,8 @@ function GridEditor(_ref) {
|
|
|
12685
12685
|
});
|
|
12686
12686
|
}
|
|
12687
12687
|
if (grid[nextKey]) {
|
|
12688
|
-
var newGrid = _objectSpread$
|
|
12689
|
-
newGrid[currentKey] = _objectSpread$
|
|
12688
|
+
var newGrid = _objectSpread$I({}, grid);
|
|
12689
|
+
newGrid[currentKey] = _objectSpread$I(_objectSpread$I({}, newGrid[currentKey]), {}, {
|
|
12690
12690
|
colSpan: newGrid[currentKey].colSpan + 1
|
|
12691
12691
|
});
|
|
12692
12692
|
delete newGrid[nextKey];
|
|
@@ -12699,8 +12699,8 @@ function GridEditor(_ref) {
|
|
|
12699
12699
|
var currentKey = "".concat(row, ".").concat(col);
|
|
12700
12700
|
var belowKey = "".concat(row + 1, ".").concat(col);
|
|
12701
12701
|
if (grid[belowKey]) {
|
|
12702
|
-
var newGrid = _objectSpread$
|
|
12703
|
-
newGrid[currentKey] = _objectSpread$
|
|
12702
|
+
var newGrid = _objectSpread$I({}, grid);
|
|
12703
|
+
newGrid[currentKey] = _objectSpread$I(_objectSpread$I({}, newGrid[currentKey]), {}, {
|
|
12704
12704
|
rowSpan: newGrid[currentKey].rowSpan + 1
|
|
12705
12705
|
});
|
|
12706
12706
|
delete newGrid[belowKey];
|
|
@@ -12717,7 +12717,7 @@ function GridEditor(_ref) {
|
|
|
12717
12717
|
var splitCell = function splitCell(row, col) {
|
|
12718
12718
|
var key = "".concat(row, ".").concat(col);
|
|
12719
12719
|
var cell = grid[key];
|
|
12720
|
-
var newGrid = _objectSpread$
|
|
12720
|
+
var newGrid = _objectSpread$I({}, grid);
|
|
12721
12721
|
|
|
12722
12722
|
// we have to check the colspan, and since the colspan is greater than 1
|
|
12723
12723
|
// Only handle horizontal split if colSpan > 1
|
|
@@ -12733,13 +12733,13 @@ function GridEditor(_ref) {
|
|
|
12733
12733
|
var oldKey = "".concat(row, ".").concat(c);
|
|
12734
12734
|
var newKey = "".concat(row, ".").concat(c + 1);
|
|
12735
12735
|
if (newGrid[oldKey]) {
|
|
12736
|
-
newGrid[newKey] = _objectSpread$
|
|
12736
|
+
newGrid[newKey] = _objectSpread$I({}, newGrid[oldKey]);
|
|
12737
12737
|
delete newGrid[oldKey];
|
|
12738
12738
|
}
|
|
12739
12739
|
}
|
|
12740
12740
|
|
|
12741
12741
|
// Update the original cell's colSpan
|
|
12742
|
-
newGrid[key] = _objectSpread$
|
|
12742
|
+
newGrid[key] = _objectSpread$I(_objectSpread$I({}, cell), {}, {
|
|
12743
12743
|
colSpan: cell.colSpan - 1
|
|
12744
12744
|
});
|
|
12745
12745
|
|
|
@@ -12751,7 +12751,7 @@ function GridEditor(_ref) {
|
|
|
12751
12751
|
};
|
|
12752
12752
|
}
|
|
12753
12753
|
if (cell.rowSpan > 1) {
|
|
12754
|
-
newGrid[key] = _objectSpread$
|
|
12754
|
+
newGrid[key] = _objectSpread$I(_objectSpread$I({}, newGrid[key]), {}, {
|
|
12755
12755
|
rowSpan: cell.rowSpan - 1
|
|
12756
12756
|
});
|
|
12757
12757
|
newGrid["".concat(row + 1, ".").concat(col)] = {
|
|
@@ -12870,7 +12870,7 @@ function GridEditor(_ref) {
|
|
|
12870
12870
|
var fromKey = "".concat(from.row, ".").concat(from.col);
|
|
12871
12871
|
var toKey = "".concat(to.row, ".").concat(to.col);
|
|
12872
12872
|
if (fromKey === toKey) return;
|
|
12873
|
-
var newGrid = _objectSpread$
|
|
12873
|
+
var newGrid = _objectSpread$I({}, grid);
|
|
12874
12874
|
|
|
12875
12875
|
// Swap the cells
|
|
12876
12876
|
var temp = newGrid[fromKey];
|
|
@@ -12896,7 +12896,7 @@ function GridEditor(_ref) {
|
|
|
12896
12896
|
// console.log("Grid updated:", sequencedGrid);
|
|
12897
12897
|
}
|
|
12898
12898
|
function resetGridLayout() {
|
|
12899
|
-
var newGrid = _objectSpread$
|
|
12899
|
+
var newGrid = _objectSpread$I({}, defaultGrid);
|
|
12900
12900
|
setGrid(newGrid);
|
|
12901
12901
|
onUpdate(newGrid);
|
|
12902
12902
|
}
|
|
@@ -13174,8 +13174,8 @@ var PanelEditItemGrid = function PanelEditItemGrid(_ref) {
|
|
|
13174
13174
|
});
|
|
13175
13175
|
};
|
|
13176
13176
|
|
|
13177
|
-
function ownKeys$
|
|
13178
|
-
function _objectSpread$
|
|
13177
|
+
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; }
|
|
13178
|
+
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; }
|
|
13179
13179
|
var PanelEditItemNotifications = function PanelEditItemNotifications(_ref) {
|
|
13180
13180
|
var item = _ref.item;
|
|
13181
13181
|
_ref.workspace;
|
|
@@ -13198,7 +13198,7 @@ var PanelEditItemNotifications = function PanelEditItemNotifications(_ref) {
|
|
|
13198
13198
|
}, [widgetUuid, notificationDefs.length]);
|
|
13199
13199
|
function handleNotifToggle(typeKey, value) {
|
|
13200
13200
|
var _window$mainApi2;
|
|
13201
|
-
var updated = _objectSpread$
|
|
13201
|
+
var updated = _objectSpread$H(_objectSpread$H({}, notifPrefs), {}, _defineProperty({}, typeKey, value));
|
|
13202
13202
|
setNotifPrefs(updated);
|
|
13203
13203
|
if ((_window$mainApi2 = window.mainApi) !== null && _window$mainApi2 !== void 0 && (_window$mainApi2 = _window$mainApi2.notifications) !== null && _window$mainApi2 !== void 0 && _window$mainApi2.setPreferences && widgetUuid) {
|
|
13204
13204
|
window.mainApi.notifications.setPreferences(widgetUuid, _defineProperty({}, typeKey, value));
|
|
@@ -13243,8 +13243,8 @@ var PanelEditItemNotifications = function PanelEditItemNotifications(_ref) {
|
|
|
13243
13243
|
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; } } }; }
|
|
13244
13244
|
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; } }
|
|
13245
13245
|
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; }
|
|
13246
|
-
function ownKeys$
|
|
13247
|
-
function _objectSpread$
|
|
13246
|
+
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; }
|
|
13247
|
+
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; }
|
|
13248
13248
|
var DAYS = [{
|
|
13249
13249
|
key: "mon",
|
|
13250
13250
|
label: "Mon"
|
|
@@ -13345,7 +13345,7 @@ function TaskScheduleEditor(_ref) {
|
|
|
13345
13345
|
var _window$mainApi;
|
|
13346
13346
|
var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
13347
13347
|
if (!((_window$mainApi = window.mainApi) !== null && _window$mainApi !== void 0 && (_window$mainApi = _window$mainApi.scheduler) !== null && _window$mainApi !== void 0 && _window$mainApi.registerTask)) return;
|
|
13348
|
-
var payload = _objectSpread$
|
|
13348
|
+
var payload = _objectSpread$G({
|
|
13349
13349
|
widgetId: widgetId,
|
|
13350
13350
|
widgetName: widgetName,
|
|
13351
13351
|
workspaceId: workspaceId || "",
|
|
@@ -15630,8 +15630,8 @@ var WidgetIcon = function WidgetIcon(_ref) {
|
|
|
15630
15630
|
});
|
|
15631
15631
|
};
|
|
15632
15632
|
|
|
15633
|
-
function ownKeys$
|
|
15634
|
-
function _objectSpread$
|
|
15633
|
+
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; }
|
|
15634
|
+
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; }
|
|
15635
15635
|
var ProviderForm = function ProviderForm(_ref) {
|
|
15636
15636
|
var credentialSchema = _ref.credentialSchema,
|
|
15637
15637
|
_ref$initialValues = _ref.initialValues,
|
|
@@ -15676,14 +15676,14 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
15676
15676
|
var oldKey = f.key;
|
|
15677
15677
|
if (oldKey && formData[oldKey] !== undefined) {
|
|
15678
15678
|
setFormData(function (fd) {
|
|
15679
|
-
var updated = _objectSpread$
|
|
15679
|
+
var updated = _objectSpread$F({}, fd);
|
|
15680
15680
|
var val = updated[oldKey];
|
|
15681
15681
|
delete updated[oldKey];
|
|
15682
15682
|
if (newKey.trim()) updated[newKey] = val;
|
|
15683
15683
|
return updated;
|
|
15684
15684
|
});
|
|
15685
15685
|
}
|
|
15686
|
-
return _objectSpread$
|
|
15686
|
+
return _objectSpread$F(_objectSpread$F({}, f), {}, {
|
|
15687
15687
|
key: newKey
|
|
15688
15688
|
});
|
|
15689
15689
|
});
|
|
@@ -15695,14 +15695,14 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
15695
15695
|
});
|
|
15696
15696
|
if (field !== null && field !== void 0 && field.key) {
|
|
15697
15697
|
setFormData(function (prev) {
|
|
15698
|
-
return _objectSpread$
|
|
15698
|
+
return _objectSpread$F(_objectSpread$F({}, prev), {}, _defineProperty({}, field.key, value));
|
|
15699
15699
|
});
|
|
15700
15700
|
}
|
|
15701
15701
|
};
|
|
15702
15702
|
var handleDynamicSecretToggle = function handleDynamicSecretToggle(id) {
|
|
15703
15703
|
setDynamicFields(function (prev) {
|
|
15704
15704
|
return prev.map(function (f) {
|
|
15705
|
-
return f.id === id ? _objectSpread$
|
|
15705
|
+
return f.id === id ? _objectSpread$F(_objectSpread$F({}, f), {}, {
|
|
15706
15706
|
secret: !f.secret
|
|
15707
15707
|
}) : f;
|
|
15708
15708
|
});
|
|
@@ -15724,7 +15724,7 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
15724
15724
|
});
|
|
15725
15725
|
if (field !== null && field !== void 0 && field.key) {
|
|
15726
15726
|
setFormData(function (prev) {
|
|
15727
|
-
var updated = _objectSpread$
|
|
15727
|
+
var updated = _objectSpread$F({}, prev);
|
|
15728
15728
|
delete updated[field.key];
|
|
15729
15729
|
return updated;
|
|
15730
15730
|
});
|
|
@@ -15766,13 +15766,13 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
15766
15766
|
*/
|
|
15767
15767
|
var handleInputChange = function handleInputChange(fieldName, value) {
|
|
15768
15768
|
setFormData(function (prev) {
|
|
15769
|
-
return _objectSpread$
|
|
15769
|
+
return _objectSpread$F(_objectSpread$F({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
15770
15770
|
});
|
|
15771
15771
|
|
|
15772
15772
|
// Clear error for this field if it was filled
|
|
15773
15773
|
if (errors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
15774
15774
|
setErrors(function (prev) {
|
|
15775
|
-
var newErrors = _objectSpread$
|
|
15775
|
+
var newErrors = _objectSpread$F({}, prev);
|
|
15776
15776
|
delete newErrors[fieldName];
|
|
15777
15777
|
return newErrors;
|
|
15778
15778
|
});
|
|
@@ -15810,7 +15810,7 @@ var ProviderForm = function ProviderForm(_ref) {
|
|
|
15810
15810
|
// Clear error if filled
|
|
15811
15811
|
if (errors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
15812
15812
|
setErrors(function (prev) {
|
|
15813
|
-
var newErrors = _objectSpread$
|
|
15813
|
+
var newErrors = _objectSpread$F({}, prev);
|
|
15814
15814
|
delete newErrors.providerName;
|
|
15815
15815
|
return newErrors;
|
|
15816
15816
|
});
|
|
@@ -16047,8 +16047,8 @@ var ToolSelector$1 = function ToolSelector(_ref) {
|
|
|
16047
16047
|
});
|
|
16048
16048
|
};
|
|
16049
16049
|
|
|
16050
|
-
function ownKeys$
|
|
16051
|
-
function _objectSpread$
|
|
16050
|
+
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; }
|
|
16051
|
+
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; }
|
|
16052
16052
|
/**
|
|
16053
16053
|
* Shared MCP utility functions.
|
|
16054
16054
|
*
|
|
@@ -16176,7 +16176,7 @@ function buildMcpConfigFromOverrides(baseMcpConfig, envMappingRows, headerRows)
|
|
|
16176
16176
|
headerTemplate[name] = value;
|
|
16177
16177
|
}
|
|
16178
16178
|
});
|
|
16179
|
-
var config = _objectSpread$
|
|
16179
|
+
var config = _objectSpread$E({}, baseMcpConfig);
|
|
16180
16180
|
if (Object.keys(headerTemplate).length > 0) {
|
|
16181
16181
|
config.headerTemplate = headerTemplate;
|
|
16182
16182
|
} else {
|
|
@@ -16194,7 +16194,7 @@ function buildMcpConfigFromOverrides(baseMcpConfig, envMappingRows, headerRows)
|
|
|
16194
16194
|
envMapping[env] = cred;
|
|
16195
16195
|
}
|
|
16196
16196
|
});
|
|
16197
|
-
return _objectSpread$
|
|
16197
|
+
return _objectSpread$E(_objectSpread$E({}, baseMcpConfig), {}, {
|
|
16198
16198
|
envMapping: envMapping
|
|
16199
16199
|
});
|
|
16200
16200
|
}
|
|
@@ -16438,8 +16438,8 @@ var getUserConfigurableProviders = function getUserConfigurableProviders(provide
|
|
|
16438
16438
|
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; } } }; }
|
|
16439
16439
|
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; } }
|
|
16440
16440
|
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; }
|
|
16441
|
-
function ownKeys$
|
|
16442
|
-
function _objectSpread$
|
|
16441
|
+
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; }
|
|
16442
|
+
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; }
|
|
16443
16443
|
var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
16444
16444
|
var isOpen = _ref.isOpen,
|
|
16445
16445
|
onClose = _ref.onClose,
|
|
@@ -16634,7 +16634,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
16634
16634
|
.map(function (entry) {
|
|
16635
16635
|
var widget = allWidgets[entry.widgetKey];
|
|
16636
16636
|
if (!widget) return null; // Widget no longer exists
|
|
16637
|
-
return _objectSpread$
|
|
16637
|
+
return _objectSpread$D(_objectSpread$D({
|
|
16638
16638
|
key: entry.widgetKey
|
|
16639
16639
|
}, widget), {}, {
|
|
16640
16640
|
savedProviders: entry.providers || {},
|
|
@@ -16785,7 +16785,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
16785
16785
|
// Get widgets from ComponentManager
|
|
16786
16786
|
var allWidgets = ComponentManager.map();
|
|
16787
16787
|
var widgetList = Object.keys(allWidgets).map(function (key) {
|
|
16788
|
-
return _objectSpread$
|
|
16788
|
+
return _objectSpread$D({
|
|
16789
16789
|
key: key
|
|
16790
16790
|
}, allWidgets[key]);
|
|
16791
16791
|
}).filter(function (widget) {
|
|
@@ -17016,7 +17016,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17016
17016
|
setInlineCreateType(null);
|
|
17017
17017
|
setInlineCreateSchema({});
|
|
17018
17018
|
setInlineCreateError(null);
|
|
17019
|
-
setSelectedProviders(_objectSpread$
|
|
17019
|
+
setSelectedProviders(_objectSpread$D(_objectSpread$D({}, selectedProviders), {}, _defineProperty({}, providerType, providerName)));
|
|
17020
17020
|
}
|
|
17021
17021
|
};
|
|
17022
17022
|
var handleInlineProviderSubmit = function handleInlineProviderSubmit(formData) {
|
|
@@ -17037,7 +17037,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17037
17037
|
|
|
17038
17038
|
// Auto-select the newly created provider
|
|
17039
17039
|
setSelectedProviders(function (prev) {
|
|
17040
|
-
return _objectSpread$
|
|
17040
|
+
return _objectSpread$D(_objectSpread$D({}, prev), {}, _defineProperty({}, providerType, providerName));
|
|
17041
17041
|
});
|
|
17042
17042
|
|
|
17043
17043
|
// Collapse the inline form
|
|
@@ -17091,11 +17091,11 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17091
17091
|
};
|
|
17092
17092
|
var inlineHandleCredentialChange = function inlineHandleCredentialChange(fieldName, value) {
|
|
17093
17093
|
setInlineCredentialData(function (prev) {
|
|
17094
|
-
return _objectSpread$
|
|
17094
|
+
return _objectSpread$D(_objectSpread$D({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
17095
17095
|
});
|
|
17096
17096
|
if (inlineFormErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
17097
17097
|
setInlineFormErrors(function (prev) {
|
|
17098
|
-
var next = _objectSpread$
|
|
17098
|
+
var next = _objectSpread$D({}, prev);
|
|
17099
17099
|
delete next[fieldName];
|
|
17100
17100
|
return next;
|
|
17101
17101
|
});
|
|
@@ -17188,7 +17188,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17188
17188
|
refreshProviders();
|
|
17189
17189
|
}
|
|
17190
17190
|
setSelectedProviders(function (prev) {
|
|
17191
|
-
return _objectSpread$
|
|
17191
|
+
return _objectSpread$D(_objectSpread$D({}, prev), {}, _defineProperty({}, providerType, providerName));
|
|
17192
17192
|
});
|
|
17193
17193
|
|
|
17194
17194
|
// Reset stepper state
|
|
@@ -17209,7 +17209,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17209
17209
|
});
|
|
17210
17210
|
};
|
|
17211
17211
|
var handleConfigChange = function handleConfigChange(key, value) {
|
|
17212
|
-
setUserConfigValues(_objectSpread$
|
|
17212
|
+
setUserConfigValues(_objectSpread$D(_objectSpread$D({}, userConfigValues), {}, _defineProperty({}, key, value)));
|
|
17213
17213
|
};
|
|
17214
17214
|
|
|
17215
17215
|
// Install a package from the registry
|
|
@@ -17275,7 +17275,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17275
17275
|
// Mark items as installed
|
|
17276
17276
|
setProgressWidgets(function (prev) {
|
|
17277
17277
|
return prev.map(function (w) {
|
|
17278
|
-
return _objectSpread$
|
|
17278
|
+
return _objectSpread$D(_objectSpread$D({}, w), {}, {
|
|
17279
17279
|
status: "installed"
|
|
17280
17280
|
});
|
|
17281
17281
|
});
|
|
@@ -17294,7 +17294,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17294
17294
|
setInstallError(msg);
|
|
17295
17295
|
setProgressWidgets(function (prev) {
|
|
17296
17296
|
return prev.map(function (w) {
|
|
17297
|
-
return _objectSpread$
|
|
17297
|
+
return _objectSpread$D(_objectSpread$D({}, w), {}, {
|
|
17298
17298
|
status: "failed",
|
|
17299
17299
|
error: msg
|
|
17300
17300
|
});
|
|
@@ -17368,7 +17368,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
17368
17368
|
|
|
17369
17369
|
// Phase 3: Save to recent widgets
|
|
17370
17370
|
saveToRecent(selectedWidget, selectedProviders, userConfigValues);
|
|
17371
|
-
onSelectWidget(_objectSpread$
|
|
17371
|
+
onSelectWidget(_objectSpread$D(_objectSpread$D({}, selectedWidget), {}, {
|
|
17372
17372
|
selectedProviders: selectedProviders,
|
|
17373
17373
|
// Pass to parent
|
|
17374
17374
|
userConfigValues: userConfigValues // Pass to parent
|
|
@@ -18005,7 +18005,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
18005
18005
|
setInlineProviderName(value);
|
|
18006
18006
|
if (inlineFormErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
18007
18007
|
setInlineFormErrors(function (prev) {
|
|
18008
|
-
var next = _objectSpread$
|
|
18008
|
+
var next = _objectSpread$D({}, prev);
|
|
18009
18009
|
delete next.providerName;
|
|
18010
18010
|
return next;
|
|
18011
18011
|
});
|
|
@@ -19365,8 +19365,8 @@ var ProviderSelector = function ProviderSelector(_ref) {
|
|
|
19365
19365
|
});
|
|
19366
19366
|
};
|
|
19367
19367
|
|
|
19368
|
-
function ownKeys$
|
|
19369
|
-
function _objectSpread$
|
|
19368
|
+
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; }
|
|
19369
|
+
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; }
|
|
19370
19370
|
var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
19371
19371
|
var transport = _ref.transport,
|
|
19372
19372
|
envMappingRows = _ref.envMappingRows,
|
|
@@ -19395,7 +19395,7 @@ var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
|
19395
19395
|
var updateEnvRow = function updateEnvRow(id, field, value) {
|
|
19396
19396
|
onEnvMappingRowsChange(function (prev) {
|
|
19397
19397
|
return prev.map(function (row) {
|
|
19398
|
-
return row.id === id ? _objectSpread$
|
|
19398
|
+
return row.id === id ? _objectSpread$C(_objectSpread$C({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
19399
19399
|
});
|
|
19400
19400
|
});
|
|
19401
19401
|
};
|
|
@@ -19420,7 +19420,7 @@ var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
|
19420
19420
|
var updateHeaderRow = function updateHeaderRow(id, field, value) {
|
|
19421
19421
|
onHeaderRowsChange(function (prev) {
|
|
19422
19422
|
return prev.map(function (row) {
|
|
19423
|
-
return row.id === id ? _objectSpread$
|
|
19423
|
+
return row.id === id ? _objectSpread$C(_objectSpread$C({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
19424
19424
|
});
|
|
19425
19425
|
});
|
|
19426
19426
|
};
|
|
@@ -19569,8 +19569,8 @@ var AdvancedMcpConfig = function AdvancedMcpConfig(_ref) {
|
|
|
19569
19569
|
});
|
|
19570
19570
|
};
|
|
19571
19571
|
|
|
19572
|
-
function ownKeys$
|
|
19573
|
-
function _objectSpread$
|
|
19572
|
+
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; }
|
|
19573
|
+
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; }
|
|
19574
19574
|
var McpServerPicker = function McpServerPicker(_ref) {
|
|
19575
19575
|
var _testResult$tools;
|
|
19576
19576
|
var isOpen = _ref.isOpen,
|
|
@@ -19749,11 +19749,11 @@ var McpServerPicker = function McpServerPicker(_ref) {
|
|
|
19749
19749
|
// Handle credential field changes
|
|
19750
19750
|
var handleCredentialChange = function handleCredentialChange(fieldName, value) {
|
|
19751
19751
|
setCredentialData(function (prev) {
|
|
19752
|
-
return _objectSpread$
|
|
19752
|
+
return _objectSpread$B(_objectSpread$B({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
19753
19753
|
});
|
|
19754
19754
|
if (formErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
19755
19755
|
setFormErrors(function (prev) {
|
|
19756
|
-
var next = _objectSpread$
|
|
19756
|
+
var next = _objectSpread$B({}, prev);
|
|
19757
19757
|
delete next[fieldName];
|
|
19758
19758
|
return next;
|
|
19759
19759
|
});
|
|
@@ -20091,7 +20091,7 @@ var McpServerPicker = function McpServerPicker(_ref) {
|
|
|
20091
20091
|
setProviderName(value);
|
|
20092
20092
|
if (formErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
20093
20093
|
setFormErrors(function (prev) {
|
|
20094
|
-
var next = _objectSpread$
|
|
20094
|
+
var next = _objectSpread$B({}, prev);
|
|
20095
20095
|
delete next.providerName;
|
|
20096
20096
|
return next;
|
|
20097
20097
|
});
|
|
@@ -20281,8 +20281,8 @@ var McpServerPicker = function McpServerPicker(_ref) {
|
|
|
20281
20281
|
});
|
|
20282
20282
|
};
|
|
20283
20283
|
|
|
20284
|
-
function ownKeys$
|
|
20285
|
-
function _objectSpread$
|
|
20284
|
+
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; }
|
|
20285
|
+
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; }
|
|
20286
20286
|
var USE_ENHANCED_WIDGET_SELECTOR = true; // Set to false to use original modal
|
|
20287
20287
|
|
|
20288
20288
|
/**
|
|
@@ -20328,7 +20328,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
20328
20328
|
var _ref3 = _slicedToArray(_ref2, 2),
|
|
20329
20329
|
id = _ref3[0],
|
|
20330
20330
|
p = _ref3[1];
|
|
20331
|
-
return _objectSpread$
|
|
20331
|
+
return _objectSpread$A(_objectSpread$A({}, p), {}, {
|
|
20332
20332
|
id: id,
|
|
20333
20333
|
name: p.name || id
|
|
20334
20334
|
});
|
|
@@ -20415,7 +20415,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
20415
20415
|
// so we use its layout to replace any corrupted grid data.
|
|
20416
20416
|
if (workspace && workspace["layout"]) {
|
|
20417
20417
|
var model = new DashboardModel(workspace);
|
|
20418
|
-
setCurrentWorkspace(_objectSpread$
|
|
20418
|
+
setCurrentWorkspace(_objectSpread$A(_objectSpread$A({}, workspace), {}, {
|
|
20419
20419
|
layout: model.layout
|
|
20420
20420
|
}));
|
|
20421
20421
|
} else {
|
|
@@ -20464,7 +20464,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
20464
20464
|
}
|
|
20465
20465
|
try {
|
|
20466
20466
|
var hasChildren = config.type === "workspace";
|
|
20467
|
-
var newLayout = addItemToItemLayout(ws.layout, gridItem.id, _objectSpread$
|
|
20467
|
+
var newLayout = addItemToItemLayout(ws.layout, gridItem.id, _objectSpread$A(_objectSpread$A({}, config), {}, {
|
|
20468
20468
|
component: widgetComponentName
|
|
20469
20469
|
}), hasChildren);
|
|
20470
20470
|
var newWidgetId = newLayout[newLayout.length - 1].id;
|
|
@@ -20892,7 +20892,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
20892
20892
|
var uuid = widget.uuid || widget.uuidString;
|
|
20893
20893
|
if (uuid) {
|
|
20894
20894
|
newWorkspace.selectedProviders = newWorkspace.selectedProviders || {};
|
|
20895
|
-
newWorkspace.selectedProviders[uuid] = _objectSpread$
|
|
20895
|
+
newWorkspace.selectedProviders[uuid] = _objectSpread$A(_objectSpread$A({}, newWorkspace.selectedProviders[uuid] || {}), {}, _defineProperty({}, providerType, providerId));
|
|
20896
20896
|
}
|
|
20897
20897
|
setCurrentWorkspace(newWorkspace);
|
|
20898
20898
|
}
|
|
@@ -21028,7 +21028,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
21028
21028
|
var _gridContainer$grid;
|
|
21029
21029
|
var config = ComponentManager.config(widgetKey);
|
|
21030
21030
|
if (!config) return;
|
|
21031
|
-
var widgetItem = _objectSpread$
|
|
21031
|
+
var widgetItem = _objectSpread$A(_objectSpread$A({}, config), {}, {
|
|
21032
21032
|
component: widgetKey,
|
|
21033
21033
|
key: widgetKey
|
|
21034
21034
|
});
|
|
@@ -21282,7 +21282,7 @@ var LayoutBuilder = function LayoutBuilder(_ref) {
|
|
|
21282
21282
|
onSelectWidget: function onSelectWidget(widget) {
|
|
21283
21283
|
|
|
21284
21284
|
// Add component property from widget.key
|
|
21285
|
-
var widgetWithComponent = _objectSpread$
|
|
21285
|
+
var widgetWithComponent = _objectSpread$A(_objectSpread$A({}, widget), {}, {
|
|
21286
21286
|
component: widget.key
|
|
21287
21287
|
});
|
|
21288
21288
|
handleClickConfirmAdd(widgetWithComponent, dropdownTarget);
|
|
@@ -22911,8 +22911,8 @@ var MissingProviderPrompt = function MissingProviderPrompt(_ref) {
|
|
|
22911
22911
|
});
|
|
22912
22912
|
};
|
|
22913
22913
|
|
|
22914
|
-
function ownKeys$
|
|
22915
|
-
function _objectSpread$
|
|
22914
|
+
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; }
|
|
22915
|
+
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; }
|
|
22916
22916
|
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)); }
|
|
22917
22917
|
function _isNativeReflectConstruct$4() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$4 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
22918
22918
|
var ProviderErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
@@ -22967,7 +22967,7 @@ var ProviderErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
22967
22967
|
_defineProperty(_this, "handleProviderSelect", function (providerType, providerName, credentials) {
|
|
22968
22968
|
|
|
22969
22969
|
// Update local selected providers state
|
|
22970
|
-
var updatedSelected = _objectSpread$
|
|
22970
|
+
var updatedSelected = _objectSpread$z(_objectSpread$z({}, _this.state.selectedProviders), {}, _defineProperty({}, providerType, providerName));
|
|
22971
22971
|
_this.setState({
|
|
22972
22972
|
selectedProviders: updatedSelected
|
|
22973
22973
|
}, function () {
|
|
@@ -23041,8 +23041,8 @@ var ProviderErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
23041
23041
|
}(Component);
|
|
23042
23042
|
_defineProperty(ProviderErrorBoundary, "contextType", ProviderContext);
|
|
23043
23043
|
|
|
23044
|
-
function ownKeys$
|
|
23045
|
-
function _objectSpread$
|
|
23044
|
+
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; }
|
|
23045
|
+
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; }
|
|
23046
23046
|
var withProviderDetection = function withProviderDetection(Component) {
|
|
23047
23047
|
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
23048
23048
|
_ref$requiredProvider = _ref.requiredProviders,
|
|
@@ -23067,7 +23067,7 @@ var withProviderDetection = function withProviderDetection(Component) {
|
|
|
23067
23067
|
onProviderSelect: onProviderSelect
|
|
23068
23068
|
});
|
|
23069
23069
|
}
|
|
23070
|
-
return /*#__PURE__*/jsx(Component, _objectSpread$
|
|
23070
|
+
return /*#__PURE__*/jsx(Component, _objectSpread$y({}, props));
|
|
23071
23071
|
};
|
|
23072
23072
|
};
|
|
23073
23073
|
|
|
@@ -23743,8 +23743,8 @@ var WidgetNotFound = function WidgetNotFound(_ref) {
|
|
|
23743
23743
|
});
|
|
23744
23744
|
};
|
|
23745
23745
|
|
|
23746
|
-
function ownKeys$
|
|
23747
|
-
function _objectSpread$
|
|
23746
|
+
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; }
|
|
23747
|
+
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; }
|
|
23748
23748
|
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)); }
|
|
23749
23749
|
function _isNativeReflectConstruct$2() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$2 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
23750
23750
|
var WidgetErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
@@ -23875,7 +23875,7 @@ var WidgetRenderer = function WidgetRenderer(_ref) {
|
|
|
23875
23875
|
|
|
23876
23876
|
// Build widgetData for WidgetContext — hooks read from this
|
|
23877
23877
|
var uuidString = getUUID(params.uuid);
|
|
23878
|
-
var widgetData = _objectSpread$
|
|
23878
|
+
var widgetData = _objectSpread$x(_objectSpread$x({}, params), {}, {
|
|
23879
23879
|
uuidString: uuidString,
|
|
23880
23880
|
providers: (config === null || config === void 0 ? void 0 : config.providers) || [],
|
|
23881
23881
|
notifications: (config === null || config === void 0 ? void 0 : config.notifications) || []
|
|
@@ -23899,7 +23899,7 @@ var WidgetRenderer = function WidgetRenderer(_ref) {
|
|
|
23899
23899
|
widgetData: widgetData
|
|
23900
23900
|
};
|
|
23901
23901
|
var hasScheduledTasks = ((config === null || config === void 0 ? void 0 : config.scheduledTasks) || []).length > 0;
|
|
23902
|
-
var widgetElement = children === null ? /*#__PURE__*/jsx(WidgetComponent, _objectSpread$
|
|
23902
|
+
var widgetElement = children === null ? /*#__PURE__*/jsx(WidgetComponent, _objectSpread$x(_objectSpread$x(_objectSpread$x({
|
|
23903
23903
|
id: "widget-nokids-".concat(widgetKey),
|
|
23904
23904
|
listen: function listen(listeners, handlers) {
|
|
23905
23905
|
return helpers.listen(listeners, handlers);
|
|
@@ -23912,7 +23912,7 @@ var WidgetRenderer = function WidgetRenderer(_ref) {
|
|
|
23912
23912
|
backgroundColor: bgColor,
|
|
23913
23913
|
widgetConfig: helpers.config(),
|
|
23914
23914
|
widgetEventNames: helpers.events()
|
|
23915
|
-
}), "widget-nokids-".concat(widgetKey)) : /*#__PURE__*/jsx(WidgetComponent, _objectSpread$
|
|
23915
|
+
}), "widget-nokids-".concat(widgetKey)) : /*#__PURE__*/jsx(WidgetComponent, _objectSpread$x(_objectSpread$x(_objectSpread$x({
|
|
23916
23916
|
listen: function listen(listeners, handlers) {
|
|
23917
23917
|
return helpers.listen(listeners, handlers);
|
|
23918
23918
|
},
|
|
@@ -24114,8 +24114,8 @@ var SIDEBAR_WIDGET_TYPE = "sidebar-widget";
|
|
|
24114
24114
|
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; } } }; }
|
|
24115
24115
|
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; } }
|
|
24116
24116
|
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; }
|
|
24117
|
-
function ownKeys$
|
|
24118
|
-
function _objectSpread$
|
|
24117
|
+
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; }
|
|
24118
|
+
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; }
|
|
24119
24119
|
var DraggableDroppableCellBody = function DraggableDroppableCellBody(_ref) {
|
|
24120
24120
|
var cellNumber = _ref.cellNumber,
|
|
24121
24121
|
gridContainerId = _ref.gridContainerId,
|
|
@@ -24313,7 +24313,7 @@ var LayoutGridContainer = /*#__PURE__*/memo(function (_ref3) {
|
|
|
24313
24313
|
var _ref5 = _slicedToArray(_ref4, 2),
|
|
24314
24314
|
id = _ref5[0],
|
|
24315
24315
|
provider = _ref5[1];
|
|
24316
|
-
return _objectSpread$
|
|
24316
|
+
return _objectSpread$w({
|
|
24317
24317
|
id: id
|
|
24318
24318
|
}, provider);
|
|
24319
24319
|
}) : [];
|
|
@@ -25350,7 +25350,7 @@ var LayoutGridContainer = /*#__PURE__*/memo(function (_ref3) {
|
|
|
25350
25350
|
var widgetSpecificSelections = (workspace === null || workspace === void 0 || (_workspace$selectedPr = workspace.selectedProviders) === null || _workspace$selectedPr === void 0 ? void 0 : _workspace$selectedPr[id]) || {};
|
|
25351
25351
|
|
|
25352
25352
|
// Add provider-related props from workspace
|
|
25353
|
-
var itemWithProviders = _objectSpread$
|
|
25353
|
+
var itemWithProviders = _objectSpread$w(_objectSpread$w({}, item), {}, {
|
|
25354
25354
|
selectedProviders: widgetSpecificSelections,
|
|
25355
25355
|
onProviderSelect: onProviderSelect
|
|
25356
25356
|
});
|
|
@@ -26855,8 +26855,8 @@ function isWidgetResolvable(componentKey) {
|
|
|
26855
26855
|
// isMinOrderForItem
|
|
26856
26856
|
// }
|
|
26857
26857
|
|
|
26858
|
-
function ownKeys$
|
|
26859
|
-
function _objectSpread$
|
|
26858
|
+
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; }
|
|
26859
|
+
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; }
|
|
26860
26860
|
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; } } }; }
|
|
26861
26861
|
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; } }
|
|
26862
26862
|
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; }
|
|
@@ -27012,7 +27012,7 @@ var LayoutModel = function LayoutModel(layoutItem, workspaceLayout, dashboardId)
|
|
|
27012
27012
|
|
|
27013
27013
|
// Merge user-entered config values (from EnhancedWidgetDropdown) into userPrefs
|
|
27014
27014
|
if ("userConfigValues" in obj && obj.userConfigValues) {
|
|
27015
|
-
layout.userPrefs = _objectSpread$
|
|
27015
|
+
layout.userPrefs = _objectSpread$v(_objectSpread$v({}, layout.userPrefs), obj.userConfigValues);
|
|
27016
27016
|
}
|
|
27017
27017
|
|
|
27018
27018
|
// Preserve provider selections for this widget
|
|
@@ -27545,8 +27545,8 @@ var MenuItemModel = function MenuItemModel() {
|
|
|
27545
27545
|
return m;
|
|
27546
27546
|
};
|
|
27547
27547
|
|
|
27548
|
-
function ownKeys$
|
|
27549
|
-
function _objectSpread$
|
|
27548
|
+
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; }
|
|
27549
|
+
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; }
|
|
27550
27550
|
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; } } }; }
|
|
27551
27551
|
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; } }
|
|
27552
27552
|
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; }
|
|
@@ -27583,21 +27583,30 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
27583
27583
|
this.version = "version" in obj ? obj["version"] : 1;
|
|
27584
27584
|
this.layout = "layout" in obj ? obj["layout"] : this._initializeLayout();
|
|
27585
27585
|
this.menuId = "menuId" in obj ? obj["menuId"] : 1;
|
|
27586
|
+
this.themeKey = "themeKey" in obj ? obj["themeKey"] : null;
|
|
27587
|
+
this.selectedProviders = "selectedProviders" in obj ? obj["selectedProviders"] : {};
|
|
27586
27588
|
|
|
27587
27589
|
// Sidebar support
|
|
27588
27590
|
this.sidebarEnabled = "sidebarEnabled" in obj ? obj.sidebarEnabled : false;
|
|
27589
27591
|
this.sidebarLayout = "sidebarLayout" in obj ? obj.sidebarLayout : [];
|
|
27590
27592
|
this.sidebarWidth = "sidebarWidth" in obj ? obj.sidebarWidth : 280;
|
|
27591
27593
|
|
|
27592
|
-
// Multi-page support:
|
|
27594
|
+
// Multi-page support: every workspace always has at least one page.
|
|
27595
|
+
// Existing multi-page workspaces load as-is; single-page workspaces
|
|
27596
|
+
// are auto-migrated by wrapping their layout into a page.
|
|
27593
27597
|
if ("pages" in obj && Array.isArray(obj.pages) && obj.pages.length > 0) {
|
|
27594
27598
|
this.pages = obj.pages;
|
|
27595
27599
|
this.activePageId = obj.activePageId || obj.pages[0].id;
|
|
27596
27600
|
} else {
|
|
27597
|
-
//
|
|
27598
|
-
|
|
27599
|
-
|
|
27600
|
-
|
|
27601
|
+
// Auto-migrate: wrap existing layout into a single page
|
|
27602
|
+
var page = {
|
|
27603
|
+
id: "page-".concat(this.id || Date.now()),
|
|
27604
|
+
name: this.name || "Page 1",
|
|
27605
|
+
order: 0,
|
|
27606
|
+
layout: this.layout
|
|
27607
|
+
};
|
|
27608
|
+
this.pages = [page];
|
|
27609
|
+
this.activePageId = page.id;
|
|
27601
27610
|
}
|
|
27602
27611
|
obj = null;
|
|
27603
27612
|
|
|
@@ -27610,12 +27619,12 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
27610
27619
|
_step;
|
|
27611
27620
|
try {
|
|
27612
27621
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
27613
|
-
var
|
|
27614
|
-
if (
|
|
27622
|
+
var _page = _step.value;
|
|
27623
|
+
if (_page.layout) {
|
|
27615
27624
|
var saved = this.layout;
|
|
27616
|
-
this.layout =
|
|
27625
|
+
this.layout = _page.layout;
|
|
27617
27626
|
this._normalizeAllGrids();
|
|
27618
|
-
|
|
27627
|
+
_page.layout = this.layout;
|
|
27619
27628
|
this.layout = saved;
|
|
27620
27629
|
}
|
|
27621
27630
|
}
|
|
@@ -27685,12 +27694,12 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
27685
27694
|
label: this.label,
|
|
27686
27695
|
version: this.version,
|
|
27687
27696
|
layout: this.layout,
|
|
27688
|
-
menuId: this.menuId
|
|
27697
|
+
menuId: this.menuId,
|
|
27698
|
+
themeKey: this.themeKey,
|
|
27699
|
+
selectedProviders: this.selectedProviders
|
|
27689
27700
|
};
|
|
27690
|
-
|
|
27691
|
-
|
|
27692
|
-
ws.activePageId = this.activePageId;
|
|
27693
|
-
}
|
|
27701
|
+
ws.pages = this.pages;
|
|
27702
|
+
ws.activePageId = this.activePageId;
|
|
27694
27703
|
if (this.sidebarEnabled || ((_this$sidebarLayout = this.sidebarLayout) === null || _this$sidebarLayout === void 0 ? void 0 : _this$sidebarLayout.length) > 0) {
|
|
27695
27704
|
ws.sidebarEnabled = this.sidebarEnabled;
|
|
27696
27705
|
ws.sidebarLayout = this.sidebarLayout;
|
|
@@ -28866,7 +28875,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
28866
28875
|
visibleCells.push({
|
|
28867
28876
|
row: r,
|
|
28868
28877
|
col: c,
|
|
28869
|
-
data: _objectSpread$
|
|
28878
|
+
data: _objectSpread$u({}, cell),
|
|
28870
28879
|
spanCol: ((_cell$span = cell.span) === null || _cell$span === void 0 ? void 0 : _cell$span.col) || 1,
|
|
28871
28880
|
spanRow: ((_cell$span2 = cell.span) === null || _cell$span2 === void 0 ? void 0 : _cell$span2.row) || 1
|
|
28872
28881
|
});
|
|
@@ -28888,7 +28897,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
28888
28897
|
var vc = _visibleCells[_i5];
|
|
28889
28898
|
var newCol = (vc.col - 1) * count + 1;
|
|
28890
28899
|
var _key7 = "".concat(vc.row, ".").concat(newCol);
|
|
28891
|
-
grid[_key7] = _objectSpread$
|
|
28900
|
+
grid[_key7] = _objectSpread$u(_objectSpread$u({}, vc.data), {}, {
|
|
28892
28901
|
hide: false,
|
|
28893
28902
|
span: {
|
|
28894
28903
|
row: vc.spanRow,
|
|
@@ -28963,7 +28972,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
28963
28972
|
_visibleCells2.push({
|
|
28964
28973
|
row: _r1,
|
|
28965
28974
|
col: _c10,
|
|
28966
|
-
data: _objectSpread$
|
|
28975
|
+
data: _objectSpread$u({}, _cell6),
|
|
28967
28976
|
spanRow: ((_cell6$span = _cell6.span) === null || _cell6$span === void 0 ? void 0 : _cell6$span.row) || 1,
|
|
28968
28977
|
spanCol: ((_cell6$span2 = _cell6.span) === null || _cell6$span2 === void 0 ? void 0 : _cell6$span2.col) || 1
|
|
28969
28978
|
});
|
|
@@ -28985,7 +28994,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
28985
28994
|
var _vc = _visibleCells3[_i9];
|
|
28986
28995
|
var newRow = (_vc.row - 1) * count + 1;
|
|
28987
28996
|
var _key10 = "".concat(newRow, ".").concat(_vc.col);
|
|
28988
|
-
grid[_key10] = _objectSpread$
|
|
28997
|
+
grid[_key10] = _objectSpread$u(_objectSpread$u({}, _vc.data), {}, {
|
|
28989
28998
|
hide: false,
|
|
28990
28999
|
span: {
|
|
28991
29000
|
row: _vc.spanRow * count,
|
|
@@ -30215,8 +30224,8 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
30215
30224
|
}]);
|
|
30216
30225
|
}(React__default.Component);
|
|
30217
30226
|
|
|
30218
|
-
function ownKeys$
|
|
30219
|
-
function _objectSpread$
|
|
30227
|
+
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; }
|
|
30228
|
+
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; }
|
|
30220
30229
|
|
|
30221
30230
|
/**
|
|
30222
30231
|
* useDashboard Hook
|
|
@@ -30272,7 +30281,7 @@ var useDashboard = function useDashboard() {
|
|
|
30272
30281
|
}
|
|
30273
30282
|
});
|
|
30274
30283
|
}
|
|
30275
|
-
return _objectSpread$
|
|
30284
|
+
return _objectSpread$t({
|
|
30276
30285
|
app: app,
|
|
30277
30286
|
dashboard: dashboard,
|
|
30278
30287
|
theme: theme
|
|
@@ -31985,8 +31994,8 @@ function useMcpDashServer() {
|
|
|
31985
31994
|
};
|
|
31986
31995
|
}
|
|
31987
31996
|
|
|
31988
|
-
function ownKeys$
|
|
31989
|
-
function _objectSpread$
|
|
31997
|
+
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; }
|
|
31998
|
+
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; }
|
|
31990
31999
|
var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
31991
32000
|
var theme = _ref.theme,
|
|
31992
32001
|
themeVariant = _ref.themeVariant,
|
|
@@ -32035,13 +32044,13 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32035
32044
|
className: "flex flex-col space-y-4 p-4",
|
|
32036
32045
|
children: [/*#__PURE__*/jsxs("div", {
|
|
32037
32046
|
className: "flex flex-row bg-gray-900 p-4 space-x-4 rounded justify-between",
|
|
32038
|
-
children: [/*#__PURE__*/jsxs(Panel, _objectSpread$
|
|
32047
|
+
children: [/*#__PURE__*/jsxs(Panel, _objectSpread$s(_objectSpread$s({}, styles), {}, {
|
|
32039
32048
|
scrollable: false,
|
|
32040
32049
|
className: "rounded",
|
|
32041
32050
|
children: [/*#__PURE__*/jsx(Panel.Header, {
|
|
32042
32051
|
className: "text-xs uppercase font-bold",
|
|
32043
32052
|
children: "Panel"
|
|
32044
|
-
}), /*#__PURE__*/jsx(Panel.Body, _objectSpread$
|
|
32053
|
+
}), /*#__PURE__*/jsx(Panel.Body, _objectSpread$s(_objectSpread$s({}, styles), {}, {
|
|
32045
32054
|
onClick: function onClick() {
|
|
32046
32055
|
handleClickItem(themeObjects.PANEL, styles);
|
|
32047
32056
|
}
|
|
@@ -32049,14 +32058,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32049
32058
|
className: "text-xs uppercase font-light",
|
|
32050
32059
|
children: getCSSStyleForClassname("backgroundColor", themeObjects.PANEL)
|
|
32051
32060
|
})]
|
|
32052
|
-
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$
|
|
32061
|
+
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$s(_objectSpread$s({
|
|
32053
32062
|
className: "rounded"
|
|
32054
32063
|
}, styles2), {}, {
|
|
32055
32064
|
scrollable: false,
|
|
32056
32065
|
children: [/*#__PURE__*/jsx(Panel2.Header, {
|
|
32057
32066
|
className: "text-xs uppercase font-bold",
|
|
32058
32067
|
children: "Panel 2"
|
|
32059
|
-
}), /*#__PURE__*/jsx(Panel2.Body, _objectSpread$
|
|
32068
|
+
}), /*#__PURE__*/jsx(Panel2.Body, _objectSpread$s(_objectSpread$s({}, styles2), {}, {
|
|
32060
32069
|
onClick: function onClick() {
|
|
32061
32070
|
handleClickItem(themeObjects.PANEL_2, styles2);
|
|
32062
32071
|
}
|
|
@@ -32064,14 +32073,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32064
32073
|
className: "text-xs uppercase font-light",
|
|
32065
32074
|
children: getCSSStyleForClassname("backgroundColor", themeObjects.PANEL_2)
|
|
32066
32075
|
})]
|
|
32067
|
-
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$
|
|
32076
|
+
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$s(_objectSpread$s({
|
|
32068
32077
|
className: "rounded"
|
|
32069
32078
|
}, styles3), {}, {
|
|
32070
32079
|
scrollable: false,
|
|
32071
32080
|
children: [/*#__PURE__*/jsx(Panel3.Header, {
|
|
32072
32081
|
className: "text-xs uppercase font-bold",
|
|
32073
32082
|
children: "Panel 3"
|
|
32074
|
-
}), /*#__PURE__*/jsx(Panel3.Body, _objectSpread$
|
|
32083
|
+
}), /*#__PURE__*/jsx(Panel3.Body, _objectSpread$s(_objectSpread$s({}, styles3), {}, {
|
|
32075
32084
|
onClick: function onClick() {
|
|
32076
32085
|
handleClickItem(themeObjects.PANEL_3, styles3);
|
|
32077
32086
|
}
|
|
@@ -32080,68 +32089,68 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32080
32089
|
children: getCSSStyleForClassname("backgroundColor", themeObjects.PANEL_3)
|
|
32081
32090
|
})]
|
|
32082
32091
|
}))]
|
|
32083
|
-
}), /*#__PURE__*/jsxs(Panel, _objectSpread$
|
|
32092
|
+
}), /*#__PURE__*/jsxs(Panel, _objectSpread$s(_objectSpread$s({
|
|
32084
32093
|
className: "p-6 rounded border-4 space-y-4",
|
|
32085
32094
|
scrollable: false,
|
|
32086
32095
|
height: "h-fit"
|
|
32087
32096
|
}, styles), {}, {
|
|
32088
|
-
children: [/*#__PURE__*/jsx(Heading, _objectSpread$
|
|
32097
|
+
children: [/*#__PURE__*/jsx(Heading, _objectSpread$s(_objectSpread$s({
|
|
32089
32098
|
title: "Heading"
|
|
32090
32099
|
}, headingStyles), {}, {
|
|
32091
32100
|
padding: false,
|
|
32092
32101
|
onClick: function onClick() {
|
|
32093
32102
|
return handleClickItem(themeObjects.HEADING, headingStyles);
|
|
32094
32103
|
}
|
|
32095
|
-
})), /*#__PURE__*/jsx(Heading2, _objectSpread$
|
|
32104
|
+
})), /*#__PURE__*/jsx(Heading2, _objectSpread$s(_objectSpread$s({
|
|
32096
32105
|
title: "Heading 2"
|
|
32097
32106
|
}, heading2Styles), {}, {
|
|
32098
32107
|
padding: false,
|
|
32099
32108
|
onClick: function onClick() {
|
|
32100
32109
|
return handleClickItem(themeObjects.HEADING_2, heading2Styles);
|
|
32101
32110
|
}
|
|
32102
|
-
})), /*#__PURE__*/jsx(Heading3, _objectSpread$
|
|
32111
|
+
})), /*#__PURE__*/jsx(Heading3, _objectSpread$s(_objectSpread$s({
|
|
32103
32112
|
title: "Heading 3"
|
|
32104
32113
|
}, heading3Styles), {}, {
|
|
32105
32114
|
padding: false,
|
|
32106
32115
|
onClick: function onClick() {
|
|
32107
32116
|
return handleClickItem(themeObjects.HEADING_3, heading3Styles);
|
|
32108
32117
|
}
|
|
32109
|
-
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$
|
|
32118
|
+
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$s(_objectSpread$s({
|
|
32110
32119
|
title: "Subheading"
|
|
32111
32120
|
}, subHeadingStyles), {}, {
|
|
32112
32121
|
padding: false,
|
|
32113
32122
|
onClick: function onClick() {
|
|
32114
32123
|
return handleClickItem(themeObjects.SUBHEADING, subHeadingStyles);
|
|
32115
32124
|
}
|
|
32116
|
-
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$
|
|
32125
|
+
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$s(_objectSpread$s({
|
|
32117
32126
|
title: "Subheading 2"
|
|
32118
32127
|
}, subHeading2Styles), {}, {
|
|
32119
32128
|
padding: false,
|
|
32120
32129
|
onClick: function onClick() {
|
|
32121
32130
|
return handleClickItem(themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
32122
32131
|
}
|
|
32123
|
-
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$
|
|
32132
|
+
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$s(_objectSpread$s({
|
|
32124
32133
|
title: "Subheading"
|
|
32125
32134
|
}, subHeading3Styles), {}, {
|
|
32126
32135
|
padding: false,
|
|
32127
32136
|
onClick: function onClick() {
|
|
32128
32137
|
return handleClickItem(themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
32129
32138
|
}
|
|
32130
|
-
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$
|
|
32139
|
+
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$s(_objectSpread$s({
|
|
32131
32140
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32132
32141
|
}, paragraphStyles), {}, {
|
|
32133
32142
|
padding: false,
|
|
32134
32143
|
onClick: function onClick() {
|
|
32135
32144
|
return handleClickItem(themeObjects.PARAGRAPH, paragraphStyles);
|
|
32136
32145
|
}
|
|
32137
|
-
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$
|
|
32146
|
+
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$s(_objectSpread$s({
|
|
32138
32147
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32139
32148
|
}, paragraph2Styles), {}, {
|
|
32140
32149
|
padding: false,
|
|
32141
32150
|
onClick: function onClick() {
|
|
32142
32151
|
return handleClickItem(themeObjects.PARAGRAPH_2, paragraph2Styles);
|
|
32143
32152
|
}
|
|
32144
|
-
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$
|
|
32153
|
+
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$s(_objectSpread$s({
|
|
32145
32154
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32146
32155
|
}, paragraph3Styles), {}, {
|
|
32147
32156
|
padding: false,
|
|
@@ -32150,19 +32159,19 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32150
32159
|
}
|
|
32151
32160
|
})), /*#__PURE__*/jsxs("div", {
|
|
32152
32161
|
className: "flex flex-row space-x-2 w-full",
|
|
32153
|
-
children: [/*#__PURE__*/jsx(Button, _objectSpread$
|
|
32162
|
+
children: [/*#__PURE__*/jsx(Button, _objectSpread$s(_objectSpread$s({
|
|
32154
32163
|
title: "Button"
|
|
32155
32164
|
}, buttonStyles), {}, {
|
|
32156
32165
|
onClick: function onClick() {
|
|
32157
32166
|
return handleClickItem(themeObjects.BUTTON, buttonStyles);
|
|
32158
32167
|
}
|
|
32159
|
-
})), /*#__PURE__*/jsx(Button2, _objectSpread$
|
|
32168
|
+
})), /*#__PURE__*/jsx(Button2, _objectSpread$s(_objectSpread$s({
|
|
32160
32169
|
title: "Button 2"
|
|
32161
32170
|
}, button2Styles), {}, {
|
|
32162
32171
|
onClick: function onClick() {
|
|
32163
32172
|
return handleClickItem(themeObjects.BUTTON_2, button2Styles);
|
|
32164
32173
|
}
|
|
32165
|
-
})), /*#__PURE__*/jsx(Button3, _objectSpread$
|
|
32174
|
+
})), /*#__PURE__*/jsx(Button3, _objectSpread$s(_objectSpread$s({
|
|
32166
32175
|
title: "Button 3"
|
|
32167
32176
|
}, button3Styles), {}, {
|
|
32168
32177
|
onClick: function onClick() {
|
|
@@ -32173,14 +32182,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32173
32182
|
className: "flex flex-row space-x-4 w-full h-fit",
|
|
32174
32183
|
children: [/*#__PURE__*/jsxs("div", {
|
|
32175
32184
|
className: "flex flex-row space-x-2",
|
|
32176
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32185
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$s(_objectSpread$s({
|
|
32177
32186
|
text: "Button Icon",
|
|
32178
32187
|
icon: "pencil"
|
|
32179
32188
|
}, buttonIconStyles), {}, {
|
|
32180
32189
|
onClick: function onClick() {
|
|
32181
32190
|
return handleClickItem(themeObjects.BUTTON_ICON, buttonIconStyles);
|
|
32182
32191
|
}
|
|
32183
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32192
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$s(_objectSpread$s({
|
|
32184
32193
|
icon: "pencil"
|
|
32185
32194
|
}, buttonIconStyles), {}, {
|
|
32186
32195
|
onClick: function onClick() {
|
|
@@ -32189,14 +32198,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32189
32198
|
}))]
|
|
32190
32199
|
}), /*#__PURE__*/jsxs("div", {
|
|
32191
32200
|
className: "flex flex-row space-x-2",
|
|
32192
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32201
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$s(_objectSpread$s({
|
|
32193
32202
|
text: "Button Icon 2",
|
|
32194
32203
|
icon: "pencil"
|
|
32195
32204
|
}, buttonIconStyles), {}, {
|
|
32196
32205
|
onClick: function onClick() {
|
|
32197
32206
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
32198
32207
|
}
|
|
32199
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32208
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$s(_objectSpread$s({
|
|
32200
32209
|
icon: "pencil"
|
|
32201
32210
|
}, buttonIconStyles), {}, {
|
|
32202
32211
|
onClick: function onClick() {
|
|
@@ -32205,14 +32214,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32205
32214
|
}))]
|
|
32206
32215
|
}), /*#__PURE__*/jsxs("div", {
|
|
32207
32216
|
className: "flex flex-row space-x-2",
|
|
32208
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32217
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$s(_objectSpread$s({
|
|
32209
32218
|
text: "Button Icon 3",
|
|
32210
32219
|
icon: "pencil"
|
|
32211
32220
|
}, buttonIcon3Styles), {}, {
|
|
32212
32221
|
onClick: function onClick() {
|
|
32213
32222
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
32214
32223
|
}
|
|
32215
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32224
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$s(_objectSpread$s({
|
|
32216
32225
|
icon: "pencil"
|
|
32217
32226
|
}, buttonIcon3Styles), {}, {
|
|
32218
32227
|
onClick: function onClick() {
|
|
@@ -32222,17 +32231,17 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32222
32231
|
})]
|
|
32223
32232
|
}), /*#__PURE__*/jsxs("div", {
|
|
32224
32233
|
className: "flex flex-col space-y-2 w-full",
|
|
32225
|
-
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$
|
|
32234
|
+
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$s(_objectSpread$s({}, menuItemStyles), {}, {
|
|
32226
32235
|
onClick: function onClick() {
|
|
32227
32236
|
return handleClickItem(themeObjects.MENU_ITEM, menuItemStyles);
|
|
32228
32237
|
},
|
|
32229
32238
|
children: "Menu Item"
|
|
32230
|
-
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$
|
|
32239
|
+
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$s(_objectSpread$s({}, menuItem2Styles), {}, {
|
|
32231
32240
|
onClick: function onClick() {
|
|
32232
32241
|
return handleClickItem(themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
32233
32242
|
},
|
|
32234
32243
|
children: "Menu Item 2"
|
|
32235
|
-
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$
|
|
32244
|
+
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$s(_objectSpread$s({}, menuItem3Styles), {}, {
|
|
32236
32245
|
onClick: function onClick() {
|
|
32237
32246
|
return handleClickItem(themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
32238
32247
|
},
|
|
@@ -32240,21 +32249,21 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32240
32249
|
}))]
|
|
32241
32250
|
}), /*#__PURE__*/jsxs("div", {
|
|
32242
32251
|
className: "flex flex-row space-x-2 w-full",
|
|
32243
|
-
children: [/*#__PURE__*/jsx(Tag, _objectSpread$
|
|
32252
|
+
children: [/*#__PURE__*/jsx(Tag, _objectSpread$s(_objectSpread$s({
|
|
32244
32253
|
text: "Tag",
|
|
32245
32254
|
icon: "pencil"
|
|
32246
32255
|
}, tagStyles), {}, {
|
|
32247
32256
|
onClick: function onClick() {
|
|
32248
32257
|
return handleClickItem(themeObjects.TAG, tagStyles);
|
|
32249
32258
|
}
|
|
32250
|
-
})), /*#__PURE__*/jsx(Tag2, _objectSpread$
|
|
32259
|
+
})), /*#__PURE__*/jsx(Tag2, _objectSpread$s(_objectSpread$s({
|
|
32251
32260
|
text: "Tag 2",
|
|
32252
32261
|
icon: "pencil"
|
|
32253
32262
|
}, tag2Styles), {}, {
|
|
32254
32263
|
onClick: function onClick() {
|
|
32255
32264
|
return handleClickItem(themeObjects.TAG_2, tag2Styles);
|
|
32256
32265
|
}
|
|
32257
|
-
})), /*#__PURE__*/jsx(Tag3, _objectSpread$
|
|
32266
|
+
})), /*#__PURE__*/jsx(Tag3, _objectSpread$s(_objectSpread$s({
|
|
32258
32267
|
text: "Tag 3",
|
|
32259
32268
|
icon: "pencil"
|
|
32260
32269
|
}, tag3Styles), {}, {
|
|
@@ -32263,67 +32272,67 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32263
32272
|
}
|
|
32264
32273
|
}))]
|
|
32265
32274
|
})]
|
|
32266
|
-
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$
|
|
32275
|
+
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$s(_objectSpread$s({
|
|
32267
32276
|
className: "p-6 rounded border-4 space-y-4",
|
|
32268
32277
|
height: "h-fit"
|
|
32269
32278
|
}, styles2), {}, {
|
|
32270
|
-
children: [/*#__PURE__*/jsx(Heading, _objectSpread$
|
|
32279
|
+
children: [/*#__PURE__*/jsx(Heading, _objectSpread$s(_objectSpread$s({
|
|
32271
32280
|
title: "Heading"
|
|
32272
32281
|
}, headingStyles), {}, {
|
|
32273
32282
|
padding: false,
|
|
32274
32283
|
onClick: function onClick() {
|
|
32275
32284
|
return handleClickItem(themeObjects.HEADING, headingStyles);
|
|
32276
32285
|
}
|
|
32277
|
-
})), /*#__PURE__*/jsx(Heading2, _objectSpread$
|
|
32286
|
+
})), /*#__PURE__*/jsx(Heading2, _objectSpread$s(_objectSpread$s({
|
|
32278
32287
|
title: "Heading 2"
|
|
32279
32288
|
}, heading2Styles), {}, {
|
|
32280
32289
|
padding: false,
|
|
32281
32290
|
onClick: function onClick() {
|
|
32282
32291
|
return handleClickItem(themeObjects.HEADING_2, heading2Styles);
|
|
32283
32292
|
}
|
|
32284
|
-
})), /*#__PURE__*/jsx(Heading3, _objectSpread$
|
|
32293
|
+
})), /*#__PURE__*/jsx(Heading3, _objectSpread$s(_objectSpread$s({
|
|
32285
32294
|
title: "Heading 3"
|
|
32286
32295
|
}, heading3Styles), {}, {
|
|
32287
32296
|
padding: false,
|
|
32288
32297
|
onClick: function onClick() {
|
|
32289
32298
|
return handleClickItem(themeObjects.HEADING_3, heading3Styles);
|
|
32290
32299
|
}
|
|
32291
|
-
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$
|
|
32300
|
+
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$s(_objectSpread$s({
|
|
32292
32301
|
title: "Subheading"
|
|
32293
32302
|
}, subHeadingStyles), {}, {
|
|
32294
32303
|
padding: false,
|
|
32295
32304
|
onClick: function onClick() {
|
|
32296
32305
|
return handleClickItem(themeObjects.SUBHEADING, subHeadingStyles);
|
|
32297
32306
|
}
|
|
32298
|
-
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$
|
|
32307
|
+
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$s(_objectSpread$s({
|
|
32299
32308
|
title: "Subheading 2"
|
|
32300
32309
|
}, subHeading2Styles), {}, {
|
|
32301
32310
|
padding: false,
|
|
32302
32311
|
onClick: function onClick() {
|
|
32303
32312
|
return handleClickItem(themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
32304
32313
|
}
|
|
32305
|
-
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$
|
|
32314
|
+
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$s(_objectSpread$s({
|
|
32306
32315
|
title: "Subheading"
|
|
32307
32316
|
}, subHeading3Styles), {}, {
|
|
32308
32317
|
padding: false,
|
|
32309
32318
|
onClick: function onClick() {
|
|
32310
32319
|
return handleClickItem(themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
32311
32320
|
}
|
|
32312
|
-
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$
|
|
32321
|
+
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$s(_objectSpread$s({
|
|
32313
32322
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32314
32323
|
}, paragraphStyles), {}, {
|
|
32315
32324
|
padding: false,
|
|
32316
32325
|
onClick: function onClick() {
|
|
32317
32326
|
return handleClickItem(themeObjects.PARAGRAPH, paragraphStyles);
|
|
32318
32327
|
}
|
|
32319
|
-
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$
|
|
32328
|
+
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$s(_objectSpread$s({
|
|
32320
32329
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32321
32330
|
}, paragraph2Styles), {}, {
|
|
32322
32331
|
padding: false,
|
|
32323
32332
|
onClick: function onClick() {
|
|
32324
32333
|
return handleClickItem(themeObjects.PARAGRAPH_2, paragraph2Styles);
|
|
32325
32334
|
}
|
|
32326
|
-
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$
|
|
32335
|
+
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$s(_objectSpread$s({
|
|
32327
32336
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32328
32337
|
}, paragraph3Styles), {}, {
|
|
32329
32338
|
padding: false,
|
|
@@ -32332,19 +32341,19 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32332
32341
|
}
|
|
32333
32342
|
})), /*#__PURE__*/jsxs("div", {
|
|
32334
32343
|
className: "flex flex-row space-x-2 w-full",
|
|
32335
|
-
children: [/*#__PURE__*/jsx(Button, _objectSpread$
|
|
32344
|
+
children: [/*#__PURE__*/jsx(Button, _objectSpread$s(_objectSpread$s({
|
|
32336
32345
|
title: "Button"
|
|
32337
32346
|
}, buttonStyles), {}, {
|
|
32338
32347
|
onClick: function onClick() {
|
|
32339
32348
|
return handleClickItem(themeObjects.BUTTON, buttonStyles);
|
|
32340
32349
|
}
|
|
32341
|
-
})), /*#__PURE__*/jsx(Button2, _objectSpread$
|
|
32350
|
+
})), /*#__PURE__*/jsx(Button2, _objectSpread$s(_objectSpread$s({
|
|
32342
32351
|
title: "Button 2"
|
|
32343
32352
|
}, button2Styles), {}, {
|
|
32344
32353
|
onClick: function onClick() {
|
|
32345
32354
|
return handleClickItem(themeObjects.BUTTON_2, button2Styles);
|
|
32346
32355
|
}
|
|
32347
|
-
})), /*#__PURE__*/jsx(Button3, _objectSpread$
|
|
32356
|
+
})), /*#__PURE__*/jsx(Button3, _objectSpread$s(_objectSpread$s({
|
|
32348
32357
|
title: "Button 3"
|
|
32349
32358
|
}, button3Styles), {}, {
|
|
32350
32359
|
onClick: function onClick() {
|
|
@@ -32355,14 +32364,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32355
32364
|
className: "flex flex-row space-x-4 w-full",
|
|
32356
32365
|
children: [/*#__PURE__*/jsxs("div", {
|
|
32357
32366
|
className: "flex flex-row space-x-2",
|
|
32358
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32367
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$s(_objectSpread$s({
|
|
32359
32368
|
text: "Button Icon",
|
|
32360
32369
|
icon: "pencil"
|
|
32361
32370
|
}, buttonIconStyles), {}, {
|
|
32362
32371
|
onClick: function onClick() {
|
|
32363
32372
|
return handleClickItem(themeObjects.BUTTON_ICON, buttonIconStyles);
|
|
32364
32373
|
}
|
|
32365
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32374
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$s(_objectSpread$s({
|
|
32366
32375
|
icon: "pencil"
|
|
32367
32376
|
}, buttonIconStyles), {}, {
|
|
32368
32377
|
onClick: function onClick() {
|
|
@@ -32371,14 +32380,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32371
32380
|
}))]
|
|
32372
32381
|
}), /*#__PURE__*/jsxs("div", {
|
|
32373
32382
|
className: "flex flex-row space-x-2",
|
|
32374
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32383
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$s(_objectSpread$s({
|
|
32375
32384
|
text: "Button Icon 2",
|
|
32376
32385
|
icon: "pencil"
|
|
32377
32386
|
}, buttonIconStyles), {}, {
|
|
32378
32387
|
onClick: function onClick() {
|
|
32379
32388
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
32380
32389
|
}
|
|
32381
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32390
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$s(_objectSpread$s({
|
|
32382
32391
|
icon: "pencil"
|
|
32383
32392
|
}, buttonIconStyles), {}, {
|
|
32384
32393
|
onClick: function onClick() {
|
|
@@ -32387,14 +32396,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32387
32396
|
}))]
|
|
32388
32397
|
}), /*#__PURE__*/jsxs("div", {
|
|
32389
32398
|
className: "flex flex-row space-x-2",
|
|
32390
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32399
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$s(_objectSpread$s({
|
|
32391
32400
|
text: "Button Icon 3",
|
|
32392
32401
|
icon: "pencil"
|
|
32393
32402
|
}, buttonIcon3Styles), {}, {
|
|
32394
32403
|
onClick: function onClick() {
|
|
32395
32404
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
32396
32405
|
}
|
|
32397
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32406
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$s(_objectSpread$s({
|
|
32398
32407
|
icon: "pencil"
|
|
32399
32408
|
}, buttonIcon3Styles), {}, {
|
|
32400
32409
|
onClick: function onClick() {
|
|
@@ -32404,17 +32413,17 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32404
32413
|
})]
|
|
32405
32414
|
}), /*#__PURE__*/jsxs("div", {
|
|
32406
32415
|
className: "flex flex-col space-y-2 w-full",
|
|
32407
|
-
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$
|
|
32416
|
+
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$s(_objectSpread$s({}, menuItemStyles), {}, {
|
|
32408
32417
|
onClick: function onClick() {
|
|
32409
32418
|
return handleClickItem(themeObjects.MENU_ITEM, menuItemStyles);
|
|
32410
32419
|
},
|
|
32411
32420
|
children: "Menu Item"
|
|
32412
|
-
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$
|
|
32421
|
+
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$s(_objectSpread$s({}, menuItem2Styles), {}, {
|
|
32413
32422
|
onClick: function onClick() {
|
|
32414
32423
|
return handleClickItem(themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
32415
32424
|
},
|
|
32416
32425
|
children: "Menu Item 2"
|
|
32417
|
-
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$
|
|
32426
|
+
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$s(_objectSpread$s({}, menuItem3Styles), {}, {
|
|
32418
32427
|
onClick: function onClick() {
|
|
32419
32428
|
return handleClickItem(themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
32420
32429
|
},
|
|
@@ -32422,21 +32431,21 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32422
32431
|
}))]
|
|
32423
32432
|
}), /*#__PURE__*/jsxs("div", {
|
|
32424
32433
|
className: "flex flex-row space-x-2 w-full",
|
|
32425
|
-
children: [/*#__PURE__*/jsx(Tag, _objectSpread$
|
|
32434
|
+
children: [/*#__PURE__*/jsx(Tag, _objectSpread$s(_objectSpread$s({
|
|
32426
32435
|
text: "Tag",
|
|
32427
32436
|
icon: "pencil"
|
|
32428
32437
|
}, tagStyles), {}, {
|
|
32429
32438
|
onClick: function onClick() {
|
|
32430
32439
|
return handleClickItem(themeObjects.TAG, tagStyles);
|
|
32431
32440
|
}
|
|
32432
|
-
})), /*#__PURE__*/jsx(Tag2, _objectSpread$
|
|
32441
|
+
})), /*#__PURE__*/jsx(Tag2, _objectSpread$s(_objectSpread$s({
|
|
32433
32442
|
text: "Tag 2",
|
|
32434
32443
|
icon: "pencil"
|
|
32435
32444
|
}, tag2Styles), {}, {
|
|
32436
32445
|
onClick: function onClick() {
|
|
32437
32446
|
return handleClickItem(themeObjects.TAG_2, tag2Styles);
|
|
32438
32447
|
}
|
|
32439
|
-
})), /*#__PURE__*/jsx(Tag3, _objectSpread$
|
|
32448
|
+
})), /*#__PURE__*/jsx(Tag3, _objectSpread$s(_objectSpread$s({
|
|
32440
32449
|
text: "Tag 3",
|
|
32441
32450
|
icon: "pencil"
|
|
32442
32451
|
}, tag3Styles), {}, {
|
|
@@ -32445,68 +32454,68 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32445
32454
|
}
|
|
32446
32455
|
}))]
|
|
32447
32456
|
})]
|
|
32448
|
-
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$
|
|
32457
|
+
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$s(_objectSpread$s({
|
|
32449
32458
|
className: "p-6 rounded border-4 space-y-4"
|
|
32450
32459
|
}, styles3), {}, {
|
|
32451
32460
|
padding: false,
|
|
32452
32461
|
height: "h-fit",
|
|
32453
|
-
children: [/*#__PURE__*/jsx(Heading, _objectSpread$
|
|
32462
|
+
children: [/*#__PURE__*/jsx(Heading, _objectSpread$s(_objectSpread$s({
|
|
32454
32463
|
title: "Heading"
|
|
32455
32464
|
}, headingStyles), {}, {
|
|
32456
32465
|
padding: false,
|
|
32457
32466
|
onClick: function onClick() {
|
|
32458
32467
|
return handleClickItem(themeObjects.HEADING, headingStyles);
|
|
32459
32468
|
}
|
|
32460
|
-
})), /*#__PURE__*/jsx(Heading2, _objectSpread$
|
|
32469
|
+
})), /*#__PURE__*/jsx(Heading2, _objectSpread$s(_objectSpread$s({
|
|
32461
32470
|
title: "Heading 2"
|
|
32462
32471
|
}, heading2Styles), {}, {
|
|
32463
32472
|
padding: false,
|
|
32464
32473
|
onClick: function onClick() {
|
|
32465
32474
|
return handleClickItem(themeObjects.HEADING_2, heading2Styles);
|
|
32466
32475
|
}
|
|
32467
|
-
})), /*#__PURE__*/jsx(Heading3, _objectSpread$
|
|
32476
|
+
})), /*#__PURE__*/jsx(Heading3, _objectSpread$s(_objectSpread$s({
|
|
32468
32477
|
title: "Heading 3"
|
|
32469
32478
|
}, heading3Styles), {}, {
|
|
32470
32479
|
padding: false,
|
|
32471
32480
|
onClick: function onClick() {
|
|
32472
32481
|
return handleClickItem(themeObjects.HEADING_3, heading3Styles);
|
|
32473
32482
|
}
|
|
32474
|
-
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$
|
|
32483
|
+
})), /*#__PURE__*/jsx(SubHeading, _objectSpread$s(_objectSpread$s({
|
|
32475
32484
|
title: "Subheading"
|
|
32476
32485
|
}, subHeadingStyles), {}, {
|
|
32477
32486
|
padding: false,
|
|
32478
32487
|
onClick: function onClick() {
|
|
32479
32488
|
return handleClickItem(themeObjects.SUBHEADING, subHeadingStyles);
|
|
32480
32489
|
}
|
|
32481
|
-
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$
|
|
32490
|
+
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$s(_objectSpread$s({
|
|
32482
32491
|
title: "Subheading 2"
|
|
32483
32492
|
}, subHeading2Styles), {}, {
|
|
32484
32493
|
padding: false,
|
|
32485
32494
|
onClick: function onClick() {
|
|
32486
32495
|
return handleClickItem(themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
32487
32496
|
}
|
|
32488
|
-
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$
|
|
32497
|
+
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$s(_objectSpread$s({
|
|
32489
32498
|
title: "Subheading"
|
|
32490
32499
|
}, subHeading3Styles), {}, {
|
|
32491
32500
|
padding: false,
|
|
32492
32501
|
onClick: function onClick() {
|
|
32493
32502
|
return handleClickItem(themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
32494
32503
|
}
|
|
32495
|
-
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$
|
|
32504
|
+
})), /*#__PURE__*/jsx(Paragraph, _objectSpread$s(_objectSpread$s({
|
|
32496
32505
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32497
32506
|
}, paragraphStyles), {}, {
|
|
32498
32507
|
padding: false,
|
|
32499
32508
|
onClick: function onClick() {
|
|
32500
32509
|
return handleClickItem(themeObjects.PARAGRAPH, paragraphStyles);
|
|
32501
32510
|
}
|
|
32502
|
-
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$
|
|
32511
|
+
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$s(_objectSpread$s({
|
|
32503
32512
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32504
32513
|
}, paragraph2Styles), {}, {
|
|
32505
32514
|
padding: false,
|
|
32506
32515
|
onClick: function onClick() {
|
|
32507
32516
|
return handleClickItem(themeObjects.PARAGRAPH, paragraph2Styles);
|
|
32508
32517
|
}
|
|
32509
|
-
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$
|
|
32518
|
+
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$s(_objectSpread$s({
|
|
32510
32519
|
text: "The quick brown fox jumps over the lazy dog."
|
|
32511
32520
|
}, paragraph3Styles), {}, {
|
|
32512
32521
|
padding: false,
|
|
@@ -32515,19 +32524,19 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32515
32524
|
}
|
|
32516
32525
|
})), /*#__PURE__*/jsxs("div", {
|
|
32517
32526
|
className: "flex flex-row space-x-2 w-full",
|
|
32518
|
-
children: [/*#__PURE__*/jsx(Button, _objectSpread$
|
|
32527
|
+
children: [/*#__PURE__*/jsx(Button, _objectSpread$s(_objectSpread$s({
|
|
32519
32528
|
title: "Button"
|
|
32520
32529
|
}, buttonStyles), {}, {
|
|
32521
32530
|
onClick: function onClick() {
|
|
32522
32531
|
return handleClickItem(themeObjects.BUTTON, buttonStyles);
|
|
32523
32532
|
}
|
|
32524
|
-
})), /*#__PURE__*/jsx(Button2, _objectSpread$
|
|
32533
|
+
})), /*#__PURE__*/jsx(Button2, _objectSpread$s(_objectSpread$s({
|
|
32525
32534
|
title: "Button 2"
|
|
32526
32535
|
}, button2Styles), {}, {
|
|
32527
32536
|
onClick: function onClick() {
|
|
32528
32537
|
return handleClickItem(themeObjects.BUTTON_2, button2Styles);
|
|
32529
32538
|
}
|
|
32530
|
-
})), /*#__PURE__*/jsx(Button3, _objectSpread$
|
|
32539
|
+
})), /*#__PURE__*/jsx(Button3, _objectSpread$s(_objectSpread$s({
|
|
32531
32540
|
title: "Button 3"
|
|
32532
32541
|
}, button3Styles), {}, {
|
|
32533
32542
|
onClick: function onClick() {
|
|
@@ -32538,14 +32547,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32538
32547
|
className: "flex flex-row space-x-4 w-full",
|
|
32539
32548
|
children: [/*#__PURE__*/jsxs("div", {
|
|
32540
32549
|
className: "flex flex-row space-x-2",
|
|
32541
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32550
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$s(_objectSpread$s({
|
|
32542
32551
|
text: "Button Icon",
|
|
32543
32552
|
icon: "pencil"
|
|
32544
32553
|
}, buttonIconStyles), {}, {
|
|
32545
32554
|
onClick: function onClick() {
|
|
32546
32555
|
return handleClickItem(themeObjects.BUTTON_ICON, buttonIconStyles);
|
|
32547
32556
|
}
|
|
32548
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32557
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$s(_objectSpread$s({
|
|
32549
32558
|
icon: "pencil"
|
|
32550
32559
|
}, buttonIconStyles), {}, {
|
|
32551
32560
|
onClick: function onClick() {
|
|
@@ -32554,14 +32563,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32554
32563
|
}))]
|
|
32555
32564
|
}), /*#__PURE__*/jsxs("div", {
|
|
32556
32565
|
className: "flex flex-row space-x-2",
|
|
32557
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32566
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$s(_objectSpread$s({
|
|
32558
32567
|
text: "Button Icon 2",
|
|
32559
32568
|
icon: "pencil"
|
|
32560
32569
|
}, buttonIconStyles), {}, {
|
|
32561
32570
|
onClick: function onClick() {
|
|
32562
32571
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
32563
32572
|
}
|
|
32564
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32573
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$s(_objectSpread$s({
|
|
32565
32574
|
icon: "pencil"
|
|
32566
32575
|
}, buttonIconStyles), {}, {
|
|
32567
32576
|
onClick: function onClick() {
|
|
@@ -32570,14 +32579,14 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32570
32579
|
}))]
|
|
32571
32580
|
}), /*#__PURE__*/jsxs("div", {
|
|
32572
32581
|
className: "flex flex-row space-x-2",
|
|
32573
|
-
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32582
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, _objectSpread$s(_objectSpread$s({
|
|
32574
32583
|
text: "Button Icon 3",
|
|
32575
32584
|
icon: "pencil"
|
|
32576
32585
|
}, buttonIcon3Styles), {}, {
|
|
32577
32586
|
onClick: function onClick() {
|
|
32578
32587
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
32579
32588
|
}
|
|
32580
|
-
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
32589
|
+
})), /*#__PURE__*/jsx(ButtonIcon, _objectSpread$s(_objectSpread$s({
|
|
32581
32590
|
icon: "pencil"
|
|
32582
32591
|
}, buttonIcon3Styles), {}, {
|
|
32583
32592
|
onClick: function onClick() {
|
|
@@ -32587,17 +32596,17 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32587
32596
|
})]
|
|
32588
32597
|
}), /*#__PURE__*/jsxs("div", {
|
|
32589
32598
|
className: "flex flex-col space-y-2 w-full",
|
|
32590
|
-
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$
|
|
32599
|
+
children: [/*#__PURE__*/jsx(MenuItem, _objectSpread$s(_objectSpread$s({}, menuItemStyles), {}, {
|
|
32591
32600
|
onClick: function onClick() {
|
|
32592
32601
|
return handleClickItem(themeObjects.MENU_ITEM, menuItemStyles);
|
|
32593
32602
|
},
|
|
32594
32603
|
children: "Menu Item"
|
|
32595
|
-
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$
|
|
32604
|
+
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$s(_objectSpread$s({}, menuItem2Styles), {}, {
|
|
32596
32605
|
onClick: function onClick() {
|
|
32597
32606
|
return handleClickItem(themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
32598
32607
|
},
|
|
32599
32608
|
children: "Menu Item 2"
|
|
32600
|
-
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$
|
|
32609
|
+
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$s(_objectSpread$s({}, menuItem3Styles), {}, {
|
|
32601
32610
|
onClick: function onClick() {
|
|
32602
32611
|
return handleClickItem(themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
32603
32612
|
},
|
|
@@ -32605,21 +32614,21 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32605
32614
|
}))]
|
|
32606
32615
|
}), /*#__PURE__*/jsxs("div", {
|
|
32607
32616
|
className: "flex flex-row space-x-2 w-full",
|
|
32608
|
-
children: [/*#__PURE__*/jsx(Tag, _objectSpread$
|
|
32617
|
+
children: [/*#__PURE__*/jsx(Tag, _objectSpread$s(_objectSpread$s({
|
|
32609
32618
|
text: "Tag",
|
|
32610
32619
|
icon: "pencil"
|
|
32611
32620
|
}, tagStyles), {}, {
|
|
32612
32621
|
onClick: function onClick() {
|
|
32613
32622
|
return handleClickItem(themeObjects.TAG, tagStyles);
|
|
32614
32623
|
}
|
|
32615
|
-
})), /*#__PURE__*/jsx(Tag2, _objectSpread$
|
|
32624
|
+
})), /*#__PURE__*/jsx(Tag2, _objectSpread$s(_objectSpread$s({
|
|
32616
32625
|
text: "Tag 2",
|
|
32617
32626
|
icon: "pencil"
|
|
32618
32627
|
}, tag2Styles), {}, {
|
|
32619
32628
|
onClick: function onClick() {
|
|
32620
32629
|
return handleClickItem(themeObjects.TAG_2, tag2Styles);
|
|
32621
32630
|
}
|
|
32622
|
-
})), /*#__PURE__*/jsx(Tag3, _objectSpread$
|
|
32631
|
+
})), /*#__PURE__*/jsx(Tag3, _objectSpread$s(_objectSpread$s({
|
|
32623
32632
|
text: "Tag 3",
|
|
32624
32633
|
icon: "pencil"
|
|
32625
32634
|
}, tag3Styles), {}, {
|
|
@@ -32628,57 +32637,57 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32628
32637
|
}
|
|
32629
32638
|
}))]
|
|
32630
32639
|
})]
|
|
32631
|
-
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$
|
|
32640
|
+
})), /*#__PURE__*/jsxs(Panel2, _objectSpread$s(_objectSpread$s({
|
|
32632
32641
|
className: "p-6 rounded border-4 space-y-4"
|
|
32633
32642
|
}, styles2), {}, {
|
|
32634
32643
|
height: "h-fit",
|
|
32635
32644
|
padding: false,
|
|
32636
|
-
children: [/*#__PURE__*/jsx(Heading2, _objectSpread$
|
|
32645
|
+
children: [/*#__PURE__*/jsx(Heading2, _objectSpread$s(_objectSpread$s({
|
|
32637
32646
|
title: "Heading 2"
|
|
32638
32647
|
}, heading2Styles), {}, {
|
|
32639
32648
|
padding: false,
|
|
32640
32649
|
onClick: function onClick() {
|
|
32641
32650
|
return handleClickItem(themeObjects.HEADING_2, heading2Styles);
|
|
32642
32651
|
}
|
|
32643
|
-
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$
|
|
32652
|
+
})), /*#__PURE__*/jsx(SubHeading2, _objectSpread$s(_objectSpread$s({
|
|
32644
32653
|
title: "Subheading 2"
|
|
32645
32654
|
}, subHeading2Styles), {}, {
|
|
32646
32655
|
padding: false,
|
|
32647
32656
|
onClick: function onClick() {
|
|
32648
32657
|
return handleClickItem(themeObjects.SUBHEADING_2, subHeading2Styles);
|
|
32649
32658
|
}
|
|
32650
|
-
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$
|
|
32659
|
+
})), /*#__PURE__*/jsx(Paragraph2, _objectSpread$s(_objectSpread$s({
|
|
32651
32660
|
text: "Paragraph 2 - The quick brown fox jumps over the lazy dog."
|
|
32652
32661
|
}, paragraph2Styles), {}, {
|
|
32653
32662
|
padding: false,
|
|
32654
32663
|
onClick: function onClick() {
|
|
32655
32664
|
return handleClickItem(themeObjects.PARAGRAPH_2, paragraph2Styles);
|
|
32656
32665
|
}
|
|
32657
|
-
})), /*#__PURE__*/jsx(Button2, _objectSpread$
|
|
32666
|
+
})), /*#__PURE__*/jsx(Button2, _objectSpread$s(_objectSpread$s({
|
|
32658
32667
|
title: "Button"
|
|
32659
32668
|
}, button2Styles), {}, {
|
|
32660
32669
|
onClick: function onClick() {
|
|
32661
32670
|
return handleClickItem(themeObjects.BUTTON_2, button2Styles);
|
|
32662
32671
|
}
|
|
32663
|
-
})), /*#__PURE__*/jsx(ButtonIcon2, _objectSpread$
|
|
32672
|
+
})), /*#__PURE__*/jsx(ButtonIcon2, _objectSpread$s(_objectSpread$s({
|
|
32664
32673
|
text: "Button Icon",
|
|
32665
32674
|
icon: "pencil"
|
|
32666
32675
|
}, buttonIcon2Styles), {}, {
|
|
32667
32676
|
onClick: function onClick() {
|
|
32668
32677
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIcon2Styles);
|
|
32669
32678
|
}
|
|
32670
|
-
})), /*#__PURE__*/jsx(ButtonIcon2, _objectSpread$
|
|
32679
|
+
})), /*#__PURE__*/jsx(ButtonIcon2, _objectSpread$s(_objectSpread$s({
|
|
32671
32680
|
icon: "pencil"
|
|
32672
32681
|
}, buttonIcon2Styles), {}, {
|
|
32673
32682
|
onClick: function onClick() {
|
|
32674
32683
|
return handleClickItem(themeObjects.BUTTON_ICON_2, buttonIconStyles);
|
|
32675
32684
|
}
|
|
32676
|
-
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$
|
|
32685
|
+
})), /*#__PURE__*/jsx(MenuItem2, _objectSpread$s(_objectSpread$s({}, menuItem2Styles), {}, {
|
|
32677
32686
|
onClick: function onClick() {
|
|
32678
32687
|
return handleClickItem(themeObjects.MENU_ITEM_2, menuItem2Styles);
|
|
32679
32688
|
},
|
|
32680
32689
|
children: "Menu Item"
|
|
32681
|
-
})), /*#__PURE__*/jsx(Tag2, _objectSpread$
|
|
32690
|
+
})), /*#__PURE__*/jsx(Tag2, _objectSpread$s(_objectSpread$s({
|
|
32682
32691
|
text: "Tag 2",
|
|
32683
32692
|
icon: "pencil"
|
|
32684
32693
|
}, tag2Styles), {}, {
|
|
@@ -32686,57 +32695,57 @@ var PreviewComponentsPane = function PreviewComponentsPane(_ref) {
|
|
|
32686
32695
|
return handleClickItem(themeObjects.TAG_2, tag2Styles);
|
|
32687
32696
|
}
|
|
32688
32697
|
}))]
|
|
32689
|
-
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$
|
|
32698
|
+
})), /*#__PURE__*/jsxs(Panel3, _objectSpread$s(_objectSpread$s({
|
|
32690
32699
|
className: "p-6 rounded border-4 space-y-4"
|
|
32691
32700
|
}, styles3), {}, {
|
|
32692
32701
|
height: "h-fit",
|
|
32693
32702
|
padding: false,
|
|
32694
|
-
children: [/*#__PURE__*/jsx(Heading3, _objectSpread$
|
|
32703
|
+
children: [/*#__PURE__*/jsx(Heading3, _objectSpread$s(_objectSpread$s({
|
|
32695
32704
|
title: "Heading 3"
|
|
32696
32705
|
}, heading3Styles), {}, {
|
|
32697
32706
|
padding: false,
|
|
32698
32707
|
onClick: function onClick() {
|
|
32699
32708
|
return handleClickItem(themeObjects.HEADING_3, heading3Styles);
|
|
32700
32709
|
}
|
|
32701
|
-
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$
|
|
32710
|
+
})), /*#__PURE__*/jsx(SubHeading3, _objectSpread$s(_objectSpread$s({
|
|
32702
32711
|
title: "Subheading"
|
|
32703
32712
|
}, subHeading3Styles), {}, {
|
|
32704
32713
|
padding: false,
|
|
32705
32714
|
onClick: function onClick() {
|
|
32706
32715
|
return handleClickItem(themeObjects.SUBHEADING_3, subHeading3Styles);
|
|
32707
32716
|
}
|
|
32708
|
-
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$
|
|
32717
|
+
})), /*#__PURE__*/jsx(Paragraph3, _objectSpread$s(_objectSpread$s({
|
|
32709
32718
|
text: "Paragraph 3 - The quick brown fox jumps over the lazy dog."
|
|
32710
32719
|
}, paragraph3Styles), {}, {
|
|
32711
32720
|
padding: false,
|
|
32712
32721
|
onClick: function onClick() {
|
|
32713
32722
|
return handleClickItem(themeObjects.PARAGRAPH_3, paragraph3Styles);
|
|
32714
32723
|
}
|
|
32715
|
-
})), /*#__PURE__*/jsx(Button3, _objectSpread$
|
|
32724
|
+
})), /*#__PURE__*/jsx(Button3, _objectSpread$s(_objectSpread$s({
|
|
32716
32725
|
title: "Button"
|
|
32717
32726
|
}, button3Styles), {}, {
|
|
32718
32727
|
onClick: function onClick() {
|
|
32719
32728
|
return handleClickItem(themeObjects.BUTTON_3, button3Styles);
|
|
32720
32729
|
}
|
|
32721
|
-
})), /*#__PURE__*/jsx(ButtonIcon3, _objectSpread$
|
|
32730
|
+
})), /*#__PURE__*/jsx(ButtonIcon3, _objectSpread$s(_objectSpread$s({
|
|
32722
32731
|
text: "Button Icon 3",
|
|
32723
32732
|
icon: "pencil"
|
|
32724
32733
|
}, buttonIcon3Styles), {}, {
|
|
32725
32734
|
onClick: function onClick() {
|
|
32726
32735
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
32727
32736
|
}
|
|
32728
|
-
})), /*#__PURE__*/jsx(ButtonIcon3, _objectSpread$
|
|
32737
|
+
})), /*#__PURE__*/jsx(ButtonIcon3, _objectSpread$s(_objectSpread$s({
|
|
32729
32738
|
icon: "pencil"
|
|
32730
32739
|
}, buttonIcon3Styles), {}, {
|
|
32731
32740
|
onClick: function onClick() {
|
|
32732
32741
|
return handleClickItem(themeObjects.BUTTON_ICON_3, buttonIcon3Styles);
|
|
32733
32742
|
}
|
|
32734
|
-
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$
|
|
32743
|
+
})), /*#__PURE__*/jsx(MenuItem3, _objectSpread$s(_objectSpread$s({}, menuItem3Styles), {}, {
|
|
32735
32744
|
onClick: function onClick() {
|
|
32736
32745
|
return handleClickItem(themeObjects.MENU_ITEM_3, menuItem3Styles);
|
|
32737
32746
|
},
|
|
32738
32747
|
children: "Menu Item"
|
|
32739
|
-
})), /*#__PURE__*/jsx(Tag3, _objectSpread$
|
|
32748
|
+
})), /*#__PURE__*/jsx(Tag3, _objectSpread$s(_objectSpread$s({
|
|
32740
32749
|
text: "Tag",
|
|
32741
32750
|
icon: "pencil"
|
|
32742
32751
|
}, tag3Styles), {}, {
|
|
@@ -32785,8 +32794,8 @@ var ThemePane = function ThemePane(_ref) {
|
|
|
32785
32794
|
};
|
|
32786
32795
|
|
|
32787
32796
|
var _excluded$2 = ["colorFromTheme", "colorName", "shade", "variant", "colorType", "colorLevelName", "selected", "onClick", "onMouseOver", "width", "height"];
|
|
32788
|
-
function ownKeys$
|
|
32789
|
-
function _objectSpread$
|
|
32797
|
+
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; }
|
|
32798
|
+
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; }
|
|
32790
32799
|
var ColorTile = function ColorTile(_ref) {
|
|
32791
32800
|
var _ref$colorFromTheme = _ref.colorFromTheme,
|
|
32792
32801
|
colorFromTheme = _ref$colorFromTheme === void 0 ? null : _ref$colorFromTheme,
|
|
@@ -32811,7 +32820,7 @@ var ColorTile = function ColorTile(_ref) {
|
|
|
32811
32820
|
_ref$height = _ref.height,
|
|
32812
32821
|
height = _ref$height === void 0 ? "h-10" : _ref$height,
|
|
32813
32822
|
rest = _objectWithoutProperties(_ref, _excluded$2);
|
|
32814
|
-
var c = ColorModel(_objectSpread$
|
|
32823
|
+
var c = ColorModel(_objectSpread$r({
|
|
32815
32824
|
colorFromTheme: colorFromTheme,
|
|
32816
32825
|
colorName: colorName,
|
|
32817
32826
|
colorType: colorType,
|
|
@@ -32839,10 +32848,10 @@ var ColorTile = function ColorTile(_ref) {
|
|
|
32839
32848
|
return /*#__PURE__*/jsx("div", {
|
|
32840
32849
|
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),
|
|
32841
32850
|
onClick: function onClick() {
|
|
32842
|
-
return _onClick !== null ? _onClick(_objectSpread$
|
|
32851
|
+
return _onClick !== null ? _onClick(_objectSpread$r(_objectSpread$r({}, c), rest)) : null;
|
|
32843
32852
|
},
|
|
32844
32853
|
onMouseOver: function onMouseOver() {
|
|
32845
|
-
return _onMouseOver !== null ? _onMouseOver(_objectSpread$
|
|
32854
|
+
return _onMouseOver !== null ? _onMouseOver(_objectSpread$r(_objectSpread$r({}, c), rest)) : null;
|
|
32846
32855
|
},
|
|
32847
32856
|
children: "\xA0"
|
|
32848
32857
|
});
|
|
@@ -34025,8 +34034,8 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
34025
34034
|
var propTypesExports = propTypes.exports;
|
|
34026
34035
|
var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
|
34027
34036
|
|
|
34028
|
-
function ownKeys$
|
|
34029
|
-
function _objectSpread$
|
|
34037
|
+
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; }
|
|
34038
|
+
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; }
|
|
34030
34039
|
|
|
34031
34040
|
// Host-injected module references (e.g., "@trops/dash-core").
|
|
34032
34041
|
// Set by the host app via setHostModules() after all modules are fully loaded,
|
|
@@ -34062,7 +34071,7 @@ var BASE_MODULE_MAP = {
|
|
|
34062
34071
|
function evaluateBundle(source, widgetName) {
|
|
34063
34072
|
// Merge base modules with host-provided modules (e.g., "@trops/dash-core")
|
|
34064
34073
|
// at call time so _hostModules is populated by the time widgets load.
|
|
34065
|
-
var moduleMap = _objectSpread$
|
|
34074
|
+
var moduleMap = _objectSpread$q(_objectSpread$q({}, BASE_MODULE_MAP), _hostModules);
|
|
34066
34075
|
var module = {
|
|
34067
34076
|
exports: {}
|
|
34068
34077
|
};
|
|
@@ -34075,7 +34084,7 @@ function evaluateBundle(source, widgetName) {
|
|
|
34075
34084
|
// CJS bundles expect `require("pkg").Widget` to work, so merge
|
|
34076
34085
|
// `.default` properties onto the returned object.
|
|
34077
34086
|
if (mod["default"] && _typeof(mod["default"]) === "object") {
|
|
34078
|
-
return _objectSpread$
|
|
34087
|
+
return _objectSpread$q(_objectSpread$q(_objectSpread$q({}, mod["default"]), mod), {}, {
|
|
34079
34088
|
"default": mod["default"]
|
|
34080
34089
|
});
|
|
34081
34090
|
}
|
|
@@ -34746,8 +34755,8 @@ var HARMONY_STRATEGIES = [{
|
|
|
34746
34755
|
label: "Custom"
|
|
34747
34756
|
}];
|
|
34748
34757
|
|
|
34749
|
-
function ownKeys$
|
|
34750
|
-
function _objectSpread$
|
|
34758
|
+
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; }
|
|
34759
|
+
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; }
|
|
34751
34760
|
var COLOR_PROPERTIES$1 = new Set(["backgroundColor", "textColor", "borderColor", "hoverBackgroundColor", "hoverTextColor", "hoverBorderColor", "focusRingColor", "focusBorderColor", "activeBackgroundColor", "activeTextColor", "placeholderTextColor"]);
|
|
34752
34761
|
var PreviewColorsPane = function PreviewColorsPane(_ref) {
|
|
34753
34762
|
var _ref$styles = _ref.styles,
|
|
@@ -34764,7 +34773,7 @@ var PreviewColorsPane = function PreviewColorsPane(_ref) {
|
|
|
34764
34773
|
function handleClickItem(data, styleNameCss, itemType, objectType) {
|
|
34765
34774
|
// override the object type
|
|
34766
34775
|
data["objectType"] = objectType;
|
|
34767
|
-
onClickItem(_objectSpread$
|
|
34776
|
+
onClickItem(_objectSpread$p(_objectSpread$p({}, data), {}, {
|
|
34768
34777
|
itemType: itemType,
|
|
34769
34778
|
styleName: styleNameCss
|
|
34770
34779
|
}));
|
|
@@ -35174,8 +35183,8 @@ var ThemeMenuPane = function ThemeMenuPane(_ref) {
|
|
|
35174
35183
|
});
|
|
35175
35184
|
};
|
|
35176
35185
|
|
|
35177
|
-
function ownKeys$
|
|
35178
|
-
function _objectSpread$
|
|
35186
|
+
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; }
|
|
35187
|
+
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; }
|
|
35179
35188
|
var COMPONENT_GROUPS$1 = {
|
|
35180
35189
|
Typography: [themeObjects.HEADING, themeObjects.HEADING_2, themeObjects.HEADING_3, themeObjects.SUBHEADING, themeObjects.SUBHEADING_2, themeObjects.SUBHEADING_3, themeObjects.PARAGRAPH, themeObjects.PARAGRAPH_2, themeObjects.PARAGRAPH_3],
|
|
35181
35190
|
Buttons: [themeObjects.BUTTON, themeObjects.BUTTON_2, themeObjects.BUTTON_3, themeObjects.BUTTON_ICON, themeObjects.BUTTON_ICON_2, themeObjects.BUTTON_ICON_3],
|
|
@@ -35206,7 +35215,7 @@ var ComponentSelectorPane = function ComponentSelectorPane(_ref) {
|
|
|
35206
35215
|
setCollapsedGroups = _useState2[1];
|
|
35207
35216
|
function toggleGroup(groupName) {
|
|
35208
35217
|
setCollapsedGroups(function (prev) {
|
|
35209
|
-
return _objectSpread$
|
|
35218
|
+
return _objectSpread$o(_objectSpread$o({}, prev), {}, _defineProperty({}, groupName, !prev[groupName]));
|
|
35210
35219
|
});
|
|
35211
35220
|
}
|
|
35212
35221
|
function hasOverrides(itemKey) {
|
|
@@ -35443,8 +35452,8 @@ var NonColorPickerPane = function NonColorPickerPane(_ref) {
|
|
|
35443
35452
|
};
|
|
35444
35453
|
|
|
35445
35454
|
var _excluded$1 = ["children"];
|
|
35446
|
-
function ownKeys$
|
|
35447
|
-
function _objectSpread$
|
|
35455
|
+
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; }
|
|
35456
|
+
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; }
|
|
35448
35457
|
var COLOR_PROPERTIES = new Set(["backgroundColor", "textColor", "borderColor", "hoverBackgroundColor", "hoverTextColor", "hoverBorderColor", "focusRingColor", "focusBorderColor", "activeBackgroundColor", "activeTextColor", "placeholderTextColor"]);
|
|
35449
35458
|
var isColorProperty = function isColorProperty(name) {
|
|
35450
35459
|
return COLOR_PROPERTIES.has(name);
|
|
@@ -36004,7 +36013,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
36004
36013
|
if (itemSelected && themeSelected && themeVariant) {
|
|
36005
36014
|
var updatedStyles = getStylesForItem(itemSelected.item, themeSelected[themeVariant]);
|
|
36006
36015
|
setItemSelected(function (prev) {
|
|
36007
|
-
return _objectSpread$
|
|
36016
|
+
return _objectSpread$n(_objectSpread$n({}, prev), {}, {
|
|
36008
36017
|
styles: updatedStyles
|
|
36009
36018
|
});
|
|
36010
36019
|
});
|
|
@@ -36175,7 +36184,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
36175
36184
|
styles: clickStyles
|
|
36176
36185
|
});
|
|
36177
36186
|
},
|
|
36178
|
-
children: /*#__PURE__*/jsx(PanelComponent, _objectSpread$
|
|
36187
|
+
children: /*#__PURE__*/jsx(PanelComponent, _objectSpread$n(_objectSpread$n({}, panelStyles), {}, {
|
|
36179
36188
|
scrollable: false,
|
|
36180
36189
|
className: "rounded",
|
|
36181
36190
|
height: "",
|
|
@@ -36189,9 +36198,9 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
36189
36198
|
var _comp$props = comp.props,
|
|
36190
36199
|
childContent = _comp$props.children,
|
|
36191
36200
|
restProps = _objectWithoutProperties(_comp$props, _excluded$1);
|
|
36192
|
-
var renderedComponent = childContent !== undefined ? /*#__PURE__*/jsx(comp.Component, _objectSpread$
|
|
36201
|
+
var renderedComponent = childContent !== undefined ? /*#__PURE__*/jsx(comp.Component, _objectSpread$n(_objectSpread$n({}, restProps), {}, {
|
|
36193
36202
|
children: childContent
|
|
36194
|
-
})) : /*#__PURE__*/jsx(comp.Component, _objectSpread$
|
|
36203
|
+
})) : /*#__PURE__*/jsx(comp.Component, _objectSpread$n({}, restProps));
|
|
36195
36204
|
return renderComponentRow(comp.key, renderedComponent);
|
|
36196
36205
|
})
|
|
36197
36206
|
})
|
|
@@ -36207,7 +36216,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
36207
36216
|
children: [/*#__PURE__*/jsx("div", {
|
|
36208
36217
|
className: "text-xs uppercase font-bold text-gray-500 tracking-wider",
|
|
36209
36218
|
children: "Forms & Inputs"
|
|
36210
|
-
}), /*#__PURE__*/jsx(Panel, _objectSpread$
|
|
36219
|
+
}), /*#__PURE__*/jsx(Panel, _objectSpread$n(_objectSpread$n({}, getStylesForItem("panel", themeData)), {}, {
|
|
36211
36220
|
scrollable: false,
|
|
36212
36221
|
className: "rounded",
|
|
36213
36222
|
height: "",
|
|
@@ -36235,7 +36244,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
36235
36244
|
children: [/*#__PURE__*/jsx("div", {
|
|
36236
36245
|
className: "text-xs uppercase font-bold text-gray-500 tracking-wider",
|
|
36237
36246
|
children: "Data & Stats"
|
|
36238
|
-
}), /*#__PURE__*/jsx(Panel, _objectSpread$
|
|
36247
|
+
}), /*#__PURE__*/jsx(Panel, _objectSpread$n(_objectSpread$n({}, getStylesForItem("panel", themeData)), {}, {
|
|
36239
36248
|
scrollable: false,
|
|
36240
36249
|
className: "rounded",
|
|
36241
36250
|
height: "",
|
|
@@ -36340,7 +36349,7 @@ var PanelTheme = function PanelTheme(_ref) {
|
|
|
36340
36349
|
}), themeSelected && /*#__PURE__*/jsx("div", {
|
|
36341
36350
|
className: "flex flex-col flex-1 min-w-0",
|
|
36342
36351
|
children: /*#__PURE__*/jsx(ThemeContext.Provider, {
|
|
36343
|
-
value: _objectSpread$
|
|
36352
|
+
value: _objectSpread$n(_objectSpread$n({}, themeContextValue), {}, {
|
|
36344
36353
|
currentTheme: (themeSelected === null || themeSelected === void 0 ? void 0 : themeSelected[themeVariant]) || themeContextValue.currentTheme
|
|
36345
36354
|
}),
|
|
36346
36355
|
children: showPreview ? /*#__PURE__*/jsx(PreviewComponentsPane, {
|
|
@@ -37744,8 +37753,8 @@ var DiscoverThemesDetail = function DiscoverThemesDetail(_ref) {
|
|
|
37744
37753
|
});
|
|
37745
37754
|
};
|
|
37746
37755
|
|
|
37747
|
-
function ownKeys$
|
|
37748
|
-
function _objectSpread$
|
|
37756
|
+
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; }
|
|
37757
|
+
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; }
|
|
37749
37758
|
var ThemeManagerModal = function ThemeManagerModal(_ref) {
|
|
37750
37759
|
var open = _ref.open,
|
|
37751
37760
|
setIsOpen = _ref.setIsOpen;
|
|
@@ -37937,7 +37946,7 @@ var ThemeManagerModal = function ThemeManagerModal(_ref) {
|
|
|
37937
37946
|
function handleWizardComplete() {
|
|
37938
37947
|
if (!wizardTheme || !wizardName.trim()) return;
|
|
37939
37948
|
var key = wizardTheme.id || "theme-".concat(Date.now());
|
|
37940
|
-
var finalTheme = _objectSpread$
|
|
37949
|
+
var finalTheme = _objectSpread$m(_objectSpread$m({}, wizardTheme), {}, {
|
|
37941
37950
|
id: key,
|
|
37942
37951
|
name: wizardName.trim()
|
|
37943
37952
|
});
|
|
@@ -38900,8 +38909,8 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
|
|
|
38900
38909
|
});
|
|
38901
38910
|
};
|
|
38902
38911
|
|
|
38903
|
-
function ownKeys$
|
|
38904
|
-
function _objectSpread$
|
|
38912
|
+
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; }
|
|
38913
|
+
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; }
|
|
38905
38914
|
var LayoutPreview = function LayoutPreview(_ref) {
|
|
38906
38915
|
var layout = _ref.layout;
|
|
38907
38916
|
var gridRoot = (layout || []).find(function (item) {
|
|
@@ -39083,7 +39092,7 @@ var DashboardDetail = function DashboardDetail(_ref2) {
|
|
|
39083
39092
|
updated.menuId = val ? Number(val) : null;
|
|
39084
39093
|
// Strip widgetConfig from layout before saving
|
|
39085
39094
|
updated.layout = (updated.layout || []).map(function (layoutItem) {
|
|
39086
|
-
var cleaned = _objectSpread$
|
|
39095
|
+
var cleaned = _objectSpread$l({}, layoutItem);
|
|
39087
39096
|
delete cleaned.widgetConfig;
|
|
39088
39097
|
return cleaned;
|
|
39089
39098
|
});
|
|
@@ -39098,7 +39107,7 @@ var DashboardDetail = function DashboardDetail(_ref2) {
|
|
|
39098
39107
|
var updated = deepCopy(ws);
|
|
39099
39108
|
updated.themeKey = val || null;
|
|
39100
39109
|
updated.layout = (updated.layout || []).map(function (layoutItem) {
|
|
39101
|
-
var cleaned = _objectSpread$
|
|
39110
|
+
var cleaned = _objectSpread$l({}, layoutItem);
|
|
39102
39111
|
delete cleaned.widgetConfig;
|
|
39103
39112
|
return cleaned;
|
|
39104
39113
|
});
|
|
@@ -39251,8 +39260,8 @@ var DashboardDetail = function DashboardDetail(_ref2) {
|
|
|
39251
39260
|
});
|
|
39252
39261
|
};
|
|
39253
39262
|
|
|
39254
|
-
function ownKeys$
|
|
39255
|
-
function _objectSpread$
|
|
39263
|
+
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; }
|
|
39264
|
+
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; }
|
|
39256
39265
|
var DashboardsSection = function DashboardsSection(_ref) {
|
|
39257
39266
|
var _ref$workspaces = _ref.workspaces,
|
|
39258
39267
|
workspaces = _ref$workspaces === void 0 ? [] : _ref$workspaces,
|
|
@@ -39341,7 +39350,7 @@ var DashboardsSection = function DashboardsSection(_ref) {
|
|
|
39341
39350
|
updated.name = editName.trim();
|
|
39342
39351
|
// Strip widgetConfig from layout before saving
|
|
39343
39352
|
updated.layout = (updated.layout || []).map(function (layoutItem) {
|
|
39344
|
-
var cleaned = _objectSpread$
|
|
39353
|
+
var cleaned = _objectSpread$k({}, layoutItem);
|
|
39345
39354
|
delete cleaned.widgetConfig;
|
|
39346
39355
|
return cleaned;
|
|
39347
39356
|
});
|
|
@@ -39361,7 +39370,7 @@ var DashboardsSection = function DashboardsSection(_ref) {
|
|
|
39361
39370
|
copy.version = Date.now();
|
|
39362
39371
|
// Strip widgetConfig from layout before saving
|
|
39363
39372
|
copy.layout = (copy.layout || []).map(function (layoutItem) {
|
|
39364
|
-
var cleaned = _objectSpread$
|
|
39373
|
+
var cleaned = _objectSpread$k({}, layoutItem);
|
|
39365
39374
|
delete cleaned.widgetConfig;
|
|
39366
39375
|
return cleaned;
|
|
39367
39376
|
});
|
|
@@ -39761,8 +39770,8 @@ var FoldersSection = function FoldersSection(_ref) {
|
|
|
39761
39770
|
});
|
|
39762
39771
|
};
|
|
39763
39772
|
|
|
39764
|
-
function ownKeys$
|
|
39765
|
-
function _objectSpread$
|
|
39773
|
+
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; }
|
|
39774
|
+
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; }
|
|
39766
39775
|
var ProviderDetail = function ProviderDetail(_ref) {
|
|
39767
39776
|
var _provider$mcpConfig, _testResult$tools;
|
|
39768
39777
|
var _ref$providerName = _ref.providerName,
|
|
@@ -39853,14 +39862,14 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
39853
39862
|
var oldKey = f.key;
|
|
39854
39863
|
if (oldKey && formCredentials[oldKey] !== undefined) {
|
|
39855
39864
|
setFormCredentials(function (creds) {
|
|
39856
|
-
var updated = _objectSpread$
|
|
39865
|
+
var updated = _objectSpread$j({}, creds);
|
|
39857
39866
|
var val = updated[oldKey];
|
|
39858
39867
|
delete updated[oldKey];
|
|
39859
39868
|
if (newKey.trim()) updated[newKey] = val;
|
|
39860
39869
|
return updated;
|
|
39861
39870
|
});
|
|
39862
39871
|
}
|
|
39863
|
-
return _objectSpread$
|
|
39872
|
+
return _objectSpread$j(_objectSpread$j({}, f), {}, {
|
|
39864
39873
|
key: newKey
|
|
39865
39874
|
});
|
|
39866
39875
|
});
|
|
@@ -39872,14 +39881,14 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
39872
39881
|
});
|
|
39873
39882
|
if (field !== null && field !== void 0 && field.key) {
|
|
39874
39883
|
setFormCredentials(function (prev) {
|
|
39875
|
-
return _objectSpread$
|
|
39884
|
+
return _objectSpread$j(_objectSpread$j({}, prev), {}, _defineProperty({}, field.key, value));
|
|
39876
39885
|
});
|
|
39877
39886
|
}
|
|
39878
39887
|
};
|
|
39879
39888
|
var handleFieldSecretToggle = function handleFieldSecretToggle(id) {
|
|
39880
39889
|
setCredentialFields(function (prev) {
|
|
39881
39890
|
return prev.map(function (f) {
|
|
39882
|
-
return f.id === id ? _objectSpread$
|
|
39891
|
+
return f.id === id ? _objectSpread$j(_objectSpread$j({}, f), {}, {
|
|
39883
39892
|
secret: !f.secret
|
|
39884
39893
|
}) : f;
|
|
39885
39894
|
});
|
|
@@ -39901,7 +39910,7 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
39901
39910
|
});
|
|
39902
39911
|
if (field !== null && field !== void 0 && field.key) {
|
|
39903
39912
|
setFormCredentials(function (prev) {
|
|
39904
|
-
var updated = _objectSpread$
|
|
39913
|
+
var updated = _objectSpread$j({}, prev);
|
|
39905
39914
|
delete updated[field.key];
|
|
39906
39915
|
return updated;
|
|
39907
39916
|
});
|
|
@@ -39914,7 +39923,7 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
39914
39923
|
};
|
|
39915
39924
|
var handleCredentialChange = function handleCredentialChange(key, value) {
|
|
39916
39925
|
setFormCredentials(function (prev) {
|
|
39917
|
-
return _objectSpread$
|
|
39926
|
+
return _objectSpread$j(_objectSpread$j({}, prev), {}, _defineProperty({}, key, value));
|
|
39918
39927
|
});
|
|
39919
39928
|
};
|
|
39920
39929
|
var handleTestConnection = function handleTestConnection() {
|
|
@@ -40516,8 +40525,8 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
40516
40525
|
});
|
|
40517
40526
|
};
|
|
40518
40527
|
|
|
40519
|
-
function ownKeys$
|
|
40520
|
-
function _objectSpread$
|
|
40528
|
+
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; }
|
|
40529
|
+
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; }
|
|
40521
40530
|
var rowIdCounter = 0;
|
|
40522
40531
|
var nextRowId = function nextRowId() {
|
|
40523
40532
|
return "row_".concat(++rowIdCounter);
|
|
@@ -40778,7 +40787,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
40778
40787
|
var updateEnvRow = function updateEnvRow(id, field, value) {
|
|
40779
40788
|
setEnvMappingRows(function (prev) {
|
|
40780
40789
|
return prev.map(function (row) {
|
|
40781
|
-
return row.id === id ? _objectSpread$
|
|
40790
|
+
return row.id === id ? _objectSpread$i(_objectSpread$i({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
40782
40791
|
});
|
|
40783
40792
|
});
|
|
40784
40793
|
};
|
|
@@ -40803,7 +40812,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
40803
40812
|
var updateHeaderRow = function updateHeaderRow(id, field, value) {
|
|
40804
40813
|
setHeaderRows(function (prev) {
|
|
40805
40814
|
return prev.map(function (row) {
|
|
40806
|
-
return row.id === id ? _objectSpread$
|
|
40815
|
+
return row.id === id ? _objectSpread$i(_objectSpread$i({}, row), {}, _defineProperty({}, field, value)) : row;
|
|
40807
40816
|
});
|
|
40808
40817
|
});
|
|
40809
40818
|
};
|
|
@@ -40818,11 +40827,11 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
40818
40827
|
// --- credential field change ---
|
|
40819
40828
|
var handleCredentialChange = function handleCredentialChange(fieldName, value) {
|
|
40820
40829
|
setCredentialData(function (prev) {
|
|
40821
|
-
return _objectSpread$
|
|
40830
|
+
return _objectSpread$i(_objectSpread$i({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
40822
40831
|
});
|
|
40823
40832
|
if (formErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
40824
40833
|
setFormErrors(function (prev) {
|
|
40825
|
-
var next = _objectSpread$
|
|
40834
|
+
var next = _objectSpread$i({}, prev);
|
|
40826
40835
|
delete next[fieldName];
|
|
40827
40836
|
return next;
|
|
40828
40837
|
});
|
|
@@ -41030,7 +41039,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
41030
41039
|
setProviderName(value);
|
|
41031
41040
|
if (formErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
41032
41041
|
setFormErrors(function (prev) {
|
|
41033
|
-
var next = _objectSpread$
|
|
41042
|
+
var next = _objectSpread$i({}, prev);
|
|
41034
41043
|
delete next.providerName;
|
|
41035
41044
|
return next;
|
|
41036
41045
|
});
|
|
@@ -41146,7 +41155,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
41146
41155
|
setCommand(value);
|
|
41147
41156
|
if (formErrors.command && value !== null && value !== void 0 && value.trim()) {
|
|
41148
41157
|
setFormErrors(function (prev) {
|
|
41149
|
-
var next = _objectSpread$
|
|
41158
|
+
var next = _objectSpread$i({}, prev);
|
|
41150
41159
|
delete next.command;
|
|
41151
41160
|
return next;
|
|
41152
41161
|
});
|
|
@@ -41252,7 +41261,7 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
41252
41261
|
setUrl(value);
|
|
41253
41262
|
if (formErrors.url && value !== null && value !== void 0 && value.trim()) {
|
|
41254
41263
|
setFormErrors(function (prev) {
|
|
41255
|
-
var next = _objectSpread$
|
|
41264
|
+
var next = _objectSpread$i({}, prev);
|
|
41256
41265
|
delete next.url;
|
|
41257
41266
|
return next;
|
|
41258
41267
|
});
|
|
@@ -41497,8 +41506,8 @@ var CustomMcpServerForm = function CustomMcpServerForm(_ref2) {
|
|
|
41497
41506
|
});
|
|
41498
41507
|
};
|
|
41499
41508
|
|
|
41500
|
-
function ownKeys$
|
|
41501
|
-
function _objectSpread$
|
|
41509
|
+
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; }
|
|
41510
|
+
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; }
|
|
41502
41511
|
var getIconForServer = function getIconForServer(server) {
|
|
41503
41512
|
var iconMap = {
|
|
41504
41513
|
github: "code-branch",
|
|
@@ -41685,11 +41694,11 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
41685
41694
|
// Handle credential field changes
|
|
41686
41695
|
var handleCredentialChange = function handleCredentialChange(fieldName, value) {
|
|
41687
41696
|
setCredentialData(function (prev) {
|
|
41688
|
-
return _objectSpread$
|
|
41697
|
+
return _objectSpread$h(_objectSpread$h({}, prev), {}, _defineProperty({}, fieldName, value));
|
|
41689
41698
|
});
|
|
41690
41699
|
if (formErrors[fieldName] && value !== null && value !== void 0 && value.trim()) {
|
|
41691
41700
|
setFormErrors(function (prev) {
|
|
41692
|
-
var next = _objectSpread$
|
|
41701
|
+
var next = _objectSpread$h({}, prev);
|
|
41693
41702
|
delete next[fieldName];
|
|
41694
41703
|
return next;
|
|
41695
41704
|
});
|
|
@@ -41937,7 +41946,7 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
41937
41946
|
setProviderName(value);
|
|
41938
41947
|
if (formErrors.providerName && value !== null && value !== void 0 && value.trim()) {
|
|
41939
41948
|
setFormErrors(function (prev) {
|
|
41940
|
-
var next = _objectSpread$
|
|
41949
|
+
var next = _objectSpread$h({}, prev);
|
|
41941
41950
|
delete next.providerName;
|
|
41942
41951
|
return next;
|
|
41943
41952
|
});
|
|
@@ -42199,8 +42208,8 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
42199
42208
|
});
|
|
42200
42209
|
};
|
|
42201
42210
|
|
|
42202
|
-
function ownKeys$
|
|
42203
|
-
function _objectSpread$
|
|
42211
|
+
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; }
|
|
42212
|
+
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; }
|
|
42204
42213
|
function _createForOfIteratorHelper$8(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$8(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
42205
42214
|
function _unsupportedIterableToArray$8(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$8(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$8(r, a) : void 0; } }
|
|
42206
42215
|
function _arrayLikeToArray$8(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -42421,7 +42430,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
|
|
|
42421
42430
|
function handleHeaderChange(id, field, value) {
|
|
42422
42431
|
setHeaderRows(function (prev) {
|
|
42423
42432
|
return prev.map(function (r) {
|
|
42424
|
-
return r.id === id ? _objectSpread$
|
|
42433
|
+
return r.id === id ? _objectSpread$g(_objectSpread$g({}, r), {}, _defineProperty({}, field, value)) : r;
|
|
42425
42434
|
});
|
|
42426
42435
|
});
|
|
42427
42436
|
}
|
|
@@ -42649,7 +42658,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
|
|
|
42649
42658
|
value: credentials[field] || "",
|
|
42650
42659
|
onChange: function onChange(value) {
|
|
42651
42660
|
return setCredentials(function (prev) {
|
|
42652
|
-
return _objectSpread$
|
|
42661
|
+
return _objectSpread$g(_objectSpread$g({}, prev), {}, _defineProperty({}, field, value));
|
|
42653
42662
|
});
|
|
42654
42663
|
},
|
|
42655
42664
|
placeholder: "Enter ".concat(field),
|
|
@@ -44229,8 +44238,8 @@ var ThemeDetail = function ThemeDetail(_ref6) {
|
|
|
44229
44238
|
});
|
|
44230
44239
|
};
|
|
44231
44240
|
|
|
44232
|
-
function ownKeys$
|
|
44233
|
-
function _objectSpread$
|
|
44241
|
+
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; }
|
|
44242
|
+
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; }
|
|
44234
44243
|
var BackToChooser = function BackToChooser(_ref) {
|
|
44235
44244
|
var onClick = _ref.onClick,
|
|
44236
44245
|
children = _ref.children;
|
|
@@ -44350,7 +44359,7 @@ var ThemesSection = function ThemesSection(_ref2) {
|
|
|
44350
44359
|
if (!wizardTheme || !wizardName.trim()) return;
|
|
44351
44360
|
if (!dashApi || !appId) return;
|
|
44352
44361
|
var key = wizardTheme.id || "theme-".concat(Date.now());
|
|
44353
|
-
var finalTheme = _objectSpread$
|
|
44362
|
+
var finalTheme = _objectSpread$f(_objectSpread$f({}, wizardTheme), {}, {
|
|
44354
44363
|
id: key,
|
|
44355
44364
|
name: wizardName.trim()
|
|
44356
44365
|
});
|
|
@@ -44457,7 +44466,7 @@ var ThemesSection = function ThemesSection(_ref2) {
|
|
|
44457
44466
|
function handleUrlThemeGenerated(theme) {
|
|
44458
44467
|
if (!dashApi || !appId) return;
|
|
44459
44468
|
var key = theme.id || "theme-".concat(Date.now());
|
|
44460
|
-
var finalTheme = _objectSpread$
|
|
44469
|
+
var finalTheme = _objectSpread$f(_objectSpread$f({}, theme), {}, {
|
|
44461
44470
|
id: key
|
|
44462
44471
|
});
|
|
44463
44472
|
saveAndSelectTheme(key, finalTheme);
|
|
@@ -44962,8 +44971,8 @@ var InstallWidgetPicker = function InstallWidgetPicker(_ref2) {
|
|
|
44962
44971
|
});
|
|
44963
44972
|
};
|
|
44964
44973
|
|
|
44965
|
-
function ownKeys$
|
|
44966
|
-
function _objectSpread$
|
|
44974
|
+
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; }
|
|
44975
|
+
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; }
|
|
44967
44976
|
function _createForOfIteratorHelper$7(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$7(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; } } }; }
|
|
44968
44977
|
function _unsupportedIterableToArray$7(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$7(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$7(r, a) : void 0; } }
|
|
44969
44978
|
function _arrayLikeToArray$7(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; }
|
|
@@ -45091,7 +45100,7 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
|
45091
45100
|
if (installError) {
|
|
45092
45101
|
setProgressWidgets(function (prev) {
|
|
45093
45102
|
return prev.map(function (w) {
|
|
45094
|
-
return _objectSpread$
|
|
45103
|
+
return _objectSpread$e(_objectSpread$e({}, w), {}, {
|
|
45095
45104
|
status: "failed",
|
|
45096
45105
|
error: installError
|
|
45097
45106
|
});
|
|
@@ -45100,7 +45109,7 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
|
45100
45109
|
} else {
|
|
45101
45110
|
setProgressWidgets(function (prev) {
|
|
45102
45111
|
return prev.map(function (w) {
|
|
45103
|
-
return _objectSpread$
|
|
45112
|
+
return _objectSpread$e(_objectSpread$e({}, w), {}, {
|
|
45104
45113
|
status: "installed"
|
|
45105
45114
|
});
|
|
45106
45115
|
});
|
|
@@ -45227,7 +45236,7 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
|
|
|
45227
45236
|
// Transition to downloading
|
|
45228
45237
|
setProgressWidgets(function (prev) {
|
|
45229
45238
|
return prev.map(function (w) {
|
|
45230
|
-
return _objectSpread$
|
|
45239
|
+
return _objectSpread$e(_objectSpread$e({}, w), {}, {
|
|
45231
45240
|
status: "downloading"
|
|
45232
45241
|
});
|
|
45233
45242
|
});
|
|
@@ -45913,8 +45922,8 @@ function useWidgetUpdates() {
|
|
|
45913
45922
|
};
|
|
45914
45923
|
}
|
|
45915
45924
|
|
|
45916
|
-
function ownKeys$
|
|
45917
|
-
function _objectSpread$
|
|
45925
|
+
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; }
|
|
45926
|
+
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; }
|
|
45918
45927
|
var WidgetsSection = function WidgetsSection(_ref) {
|
|
45919
45928
|
var _ref$workspaces = _ref.workspaces,
|
|
45920
45929
|
workspaces = _ref$workspaces === void 0 ? [] : _ref$workspaces;
|
|
@@ -46092,7 +46101,7 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
46092
46101
|
})));
|
|
46093
46102
|
var usage = findWidgetUsage(allComponentNames, workspaces);
|
|
46094
46103
|
setDeleteUsage(usage);
|
|
46095
|
-
setDeleteTarget(_objectSpread$
|
|
46104
|
+
setDeleteTarget(_objectSpread$d(_objectSpread$d({}, widget), {}, {
|
|
46096
46105
|
_siblings: siblings
|
|
46097
46106
|
}));
|
|
46098
46107
|
}
|
|
@@ -46201,7 +46210,7 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
46201
46210
|
_t2 = _context2["catch"](1);
|
|
46202
46211
|
setProgressWidgets(function (prev) {
|
|
46203
46212
|
return prev.map(function (w) {
|
|
46204
|
-
return _objectSpread$
|
|
46213
|
+
return _objectSpread$d(_objectSpread$d({}, w), {}, {
|
|
46205
46214
|
status: "failed",
|
|
46206
46215
|
error: _t2.message
|
|
46207
46216
|
});
|
|
@@ -46306,7 +46315,7 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
46306
46315
|
_t3 = _context3["catch"](1);
|
|
46307
46316
|
setProgressWidgets(function (prev) {
|
|
46308
46317
|
return prev.map(function (w) {
|
|
46309
|
-
return _objectSpread$
|
|
46318
|
+
return _objectSpread$d(_objectSpread$d({}, w), {}, {
|
|
46310
46319
|
status: "failed",
|
|
46311
46320
|
error: _t3.message
|
|
46312
46321
|
});
|
|
@@ -46612,7 +46621,7 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
46612
46621
|
widgets: progressWidgets,
|
|
46613
46622
|
isComplete: progressComplete,
|
|
46614
46623
|
onDone: handleProgressDone
|
|
46615
|
-
}), /*#__PURE__*/jsx(ConfirmationModal, _objectSpread$
|
|
46624
|
+
}), /*#__PURE__*/jsx(ConfirmationModal, _objectSpread$d(_objectSpread$d({
|
|
46616
46625
|
isOpen: !!deleteTarget,
|
|
46617
46626
|
setIsOpen: function setIsOpen() {
|
|
46618
46627
|
setDeleteTarget(null);
|
|
@@ -46687,8 +46696,8 @@ var WidgetsSection = function WidgetsSection(_ref) {
|
|
|
46687
46696
|
});
|
|
46688
46697
|
};
|
|
46689
46698
|
|
|
46690
|
-
function ownKeys$
|
|
46691
|
-
function _objectSpread$
|
|
46699
|
+
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; }
|
|
46700
|
+
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; }
|
|
46692
46701
|
var AccountSection = function AccountSection(_ref) {
|
|
46693
46702
|
var authStatus = _ref.authStatus,
|
|
46694
46703
|
authProfile = _ref.authProfile,
|
|
@@ -46793,7 +46802,7 @@ var AuthenticatedView = function AuthenticatedView(_ref3) {
|
|
|
46793
46802
|
onPackageUpdated: function onPackageUpdated(updatedPkg) {
|
|
46794
46803
|
setPackages(function (prev) {
|
|
46795
46804
|
return prev.map(function (p) {
|
|
46796
|
-
return p.name === updatedPkg.name && p.scope === updatedPkg.scope ? _objectSpread$
|
|
46805
|
+
return p.name === updatedPkg.name && p.scope === updatedPkg.scope ? _objectSpread$c(_objectSpread$c({}, p), updatedPkg) : p;
|
|
46797
46806
|
});
|
|
46798
46807
|
});
|
|
46799
46808
|
},
|
|
@@ -47048,7 +47057,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
47048
47057
|
case 2:
|
|
47049
47058
|
result = _context3.sent;
|
|
47050
47059
|
if (result) {
|
|
47051
|
-
onSaved(_objectSpread$
|
|
47060
|
+
onSaved(_objectSpread$c(_objectSpread$c({}, pkg), updates));
|
|
47052
47061
|
}
|
|
47053
47062
|
_context3.next = 4;
|
|
47054
47063
|
break;
|
|
@@ -47113,7 +47122,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
47113
47122
|
label: "Display Name",
|
|
47114
47123
|
value: form.displayName,
|
|
47115
47124
|
onChange: function onChange(v) {
|
|
47116
|
-
return setForm(_objectSpread$
|
|
47125
|
+
return setForm(_objectSpread$c(_objectSpread$c({}, form), {}, {
|
|
47117
47126
|
displayName: v
|
|
47118
47127
|
}));
|
|
47119
47128
|
}
|
|
@@ -47121,7 +47130,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
47121
47130
|
label: "Description",
|
|
47122
47131
|
value: form.description,
|
|
47123
47132
|
onChange: function onChange(v) {
|
|
47124
|
-
return setForm(_objectSpread$
|
|
47133
|
+
return setForm(_objectSpread$c(_objectSpread$c({}, form), {}, {
|
|
47125
47134
|
description: v
|
|
47126
47135
|
}));
|
|
47127
47136
|
}
|
|
@@ -47129,7 +47138,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
47129
47138
|
label: "Category",
|
|
47130
47139
|
value: form.category,
|
|
47131
47140
|
onChange: function onChange(v) {
|
|
47132
|
-
return setForm(_objectSpread$
|
|
47141
|
+
return setForm(_objectSpread$c(_objectSpread$c({}, form), {}, {
|
|
47133
47142
|
category: v
|
|
47134
47143
|
}));
|
|
47135
47144
|
}
|
|
@@ -47137,7 +47146,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
47137
47146
|
label: "Tags (comma-separated)",
|
|
47138
47147
|
value: form.tags,
|
|
47139
47148
|
onChange: function onChange(v) {
|
|
47140
|
-
return setForm(_objectSpread$
|
|
47149
|
+
return setForm(_objectSpread$c(_objectSpread$c({}, form), {}, {
|
|
47141
47150
|
tags: v
|
|
47142
47151
|
}));
|
|
47143
47152
|
}
|
|
@@ -47149,7 +47158,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
47149
47158
|
}), /*#__PURE__*/jsxs("select", {
|
|
47150
47159
|
value: form.visibility,
|
|
47151
47160
|
onChange: function onChange(e) {
|
|
47152
|
-
return setForm(_objectSpread$
|
|
47161
|
+
return setForm(_objectSpread$c(_objectSpread$c({}, form), {}, {
|
|
47153
47162
|
visibility: e.target.value
|
|
47154
47163
|
}));
|
|
47155
47164
|
},
|
|
@@ -47253,8 +47262,8 @@ var EditField = function EditField(_ref7) {
|
|
|
47253
47262
|
});
|
|
47254
47263
|
};
|
|
47255
47264
|
|
|
47256
|
-
function ownKeys$
|
|
47257
|
-
function _objectSpread$
|
|
47265
|
+
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; }
|
|
47266
|
+
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; }
|
|
47258
47267
|
var NotificationsSection = function NotificationsSection(_ref) {
|
|
47259
47268
|
var _ref$workspaces = _ref.workspaces,
|
|
47260
47269
|
workspaces = _ref$workspaces === void 0 ? [] : _ref$workspaces;
|
|
@@ -47337,7 +47346,7 @@ var NotificationsSection = function NotificationsSection(_ref) {
|
|
|
47337
47346
|
}
|
|
47338
47347
|
function handleTypeToggle(widgetUuid, typeKey, value) {
|
|
47339
47348
|
var _window$mainApi4;
|
|
47340
|
-
var updated = _objectSpread$
|
|
47349
|
+
var updated = _objectSpread$b(_objectSpread$b({}, instances), {}, _defineProperty({}, widgetUuid, _objectSpread$b(_objectSpread$b({}, instances[widgetUuid] || {}), {}, _defineProperty({}, typeKey, value))));
|
|
47341
47350
|
setInstances(updated);
|
|
47342
47351
|
(_window$mainApi4 = window.mainApi) === null || _window$mainApi4 === void 0 || (_window$mainApi4 = _window$mainApi4.notifications) === null || _window$mainApi4 === void 0 || _window$mainApi4.setPreferences(widgetUuid, _defineProperty({}, typeKey, value));
|
|
47343
47352
|
}
|
|
@@ -47733,8 +47742,8 @@ var McpServerSection = function McpServerSection() {
|
|
|
47733
47742
|
});
|
|
47734
47743
|
};
|
|
47735
47744
|
|
|
47736
|
-
function ownKeys$
|
|
47737
|
-
function _objectSpread$
|
|
47745
|
+
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; }
|
|
47746
|
+
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; }
|
|
47738
47747
|
var MODELS = [{
|
|
47739
47748
|
value: "claude-sonnet-4-20250514",
|
|
47740
47749
|
label: "Claude Sonnet 4"
|
|
@@ -47820,8 +47829,8 @@ var AiAssistantSection = function AiAssistantSection() {
|
|
|
47820
47829
|
var saveAiSettings = useCallback(function (updates) {
|
|
47821
47830
|
if (appContext !== null && appContext !== void 0 && appContext.changeSettings) {
|
|
47822
47831
|
var current = appContext.settings || {};
|
|
47823
|
-
var newAiSettings = _objectSpread$
|
|
47824
|
-
appContext.changeSettings(_objectSpread$
|
|
47832
|
+
var newAiSettings = _objectSpread$a(_objectSpread$a({}, current.aiAssistant || {}), updates);
|
|
47833
|
+
appContext.changeSettings(_objectSpread$a(_objectSpread$a({}, current), {}, {
|
|
47825
47834
|
aiAssistant: newAiSettings
|
|
47826
47835
|
}));
|
|
47827
47836
|
}
|
|
@@ -48764,8 +48773,8 @@ var DashTabBar = function DashTabBar(_ref) {
|
|
|
48764
48773
|
});
|
|
48765
48774
|
};
|
|
48766
48775
|
|
|
48767
|
-
function ownKeys$
|
|
48768
|
-
function _objectSpread$
|
|
48776
|
+
function ownKeys$9(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; }
|
|
48777
|
+
function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
48769
48778
|
var PageTabBar = function PageTabBar(_ref) {
|
|
48770
48779
|
var _ref$pages = _ref.pages,
|
|
48771
48780
|
pages = _ref$pages === void 0 ? [] : _ref$pages,
|
|
@@ -48782,7 +48791,11 @@ var PageTabBar = function PageTabBar(_ref) {
|
|
|
48782
48791
|
_ref$onReorderPages = _ref.onReorderPages,
|
|
48783
48792
|
onReorderPages = _ref$onReorderPages === void 0 ? null : _ref$onReorderPages,
|
|
48784
48793
|
_ref$editMode = _ref.editMode,
|
|
48785
|
-
editMode = _ref$editMode === void 0 ? false : _ref$editMode
|
|
48794
|
+
editMode = _ref$editMode === void 0 ? false : _ref$editMode,
|
|
48795
|
+
_ref$scrollableEnable = _ref.scrollableEnabled,
|
|
48796
|
+
scrollableEnabled = _ref$scrollableEnable === void 0 ? false : _ref$scrollableEnable,
|
|
48797
|
+
_ref$onScrollableChan = _ref.onScrollableChange,
|
|
48798
|
+
onScrollableChange = _ref$onScrollableChan === void 0 ? null : _ref$onScrollableChan;
|
|
48786
48799
|
var _useContext = useContext(ThemeContext),
|
|
48787
48800
|
currentTheme = _useContext.currentTheme;
|
|
48788
48801
|
var _useState = useState(null),
|
|
@@ -48849,7 +48862,7 @@ var PageTabBar = function PageTabBar(_ref) {
|
|
|
48849
48862
|
|
|
48850
48863
|
// Update order values
|
|
48851
48864
|
var updated = reordered.map(function (p, i) {
|
|
48852
|
-
return _objectSpread$
|
|
48865
|
+
return _objectSpread$9(_objectSpread$9({}, p), {}, {
|
|
48853
48866
|
order: i
|
|
48854
48867
|
});
|
|
48855
48868
|
});
|
|
@@ -48935,12 +48948,19 @@ var PageTabBar = function PageTabBar(_ref) {
|
|
|
48935
48948
|
}), /*#__PURE__*/jsx("span", {
|
|
48936
48949
|
children: "Add Page"
|
|
48937
48950
|
})]
|
|
48951
|
+
}), editMode && onScrollableChange && /*#__PURE__*/jsx("div", {
|
|
48952
|
+
className: "ml-auto flex items-center shrink-0",
|
|
48953
|
+
children: /*#__PURE__*/jsx(Toggle, {
|
|
48954
|
+
text: "Scrollable",
|
|
48955
|
+
enabled: scrollableEnabled,
|
|
48956
|
+
setEnabled: onScrollableChange
|
|
48957
|
+
})
|
|
48938
48958
|
})]
|
|
48939
48959
|
});
|
|
48940
48960
|
};
|
|
48941
48961
|
|
|
48942
|
-
function ownKeys$
|
|
48943
|
-
function _objectSpread$
|
|
48962
|
+
function ownKeys$8(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; }
|
|
48963
|
+
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
48944
48964
|
function createEmptySidebarLayout() {
|
|
48945
48965
|
return [LayoutModel({
|
|
48946
48966
|
id: 90001,
|
|
@@ -49032,11 +49052,11 @@ var PinnedSidebar = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
49032
49052
|
// Ensure sidebar grid uses grow mode for full-height rendering
|
|
49033
49053
|
layout = layout.map(function (item) {
|
|
49034
49054
|
if (item.grid && item.parent === 0) {
|
|
49035
|
-
return _objectSpread$
|
|
49055
|
+
return _objectSpread$8(_objectSpread$8({}, item), {}, {
|
|
49036
49056
|
scrollable: false,
|
|
49037
49057
|
height: "h-full",
|
|
49038
|
-
grid: _objectSpread$
|
|
49039
|
-
rowModes: _objectSpread$
|
|
49058
|
+
grid: _objectSpread$8(_objectSpread$8({}, item.grid), {}, {
|
|
49059
|
+
rowModes: _objectSpread$8(_objectSpread$8({}, item.grid.rowModes), {}, {
|
|
49040
49060
|
1: "grow"
|
|
49041
49061
|
})
|
|
49042
49062
|
})
|
|
@@ -49044,14 +49064,14 @@ var PinnedSidebar = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
49044
49064
|
}
|
|
49045
49065
|
return item;
|
|
49046
49066
|
});
|
|
49047
|
-
return _objectSpread$
|
|
49067
|
+
return _objectSpread$8(_objectSpread$8({}, workspaceRefInternal.current), {}, {
|
|
49048
49068
|
layout: layout
|
|
49049
49069
|
});
|
|
49050
49070
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
49051
49071
|
}, [workspace === null || workspace === void 0 ? void 0 : workspace.id, sidebarLayout, hasWidget]);
|
|
49052
49072
|
var handleSidebarChange = useCallback(function (updatedWs) {
|
|
49053
49073
|
if (onWorkspaceChange && workspaceRefInternal.current) {
|
|
49054
|
-
onWorkspaceChange(_objectSpread$
|
|
49074
|
+
onWorkspaceChange(_objectSpread$8(_objectSpread$8({}, workspaceRefInternal.current), {}, {
|
|
49055
49075
|
sidebarLayout: updatedWs.layout || []
|
|
49056
49076
|
}));
|
|
49057
49077
|
}
|
|
@@ -49475,8 +49495,8 @@ var PopoverItem = function PopoverItem(_ref5) {
|
|
|
49475
49495
|
function _createForOfIteratorHelper$4(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$4(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; } } }; }
|
|
49476
49496
|
function _unsupportedIterableToArray$4(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$4(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$4(r, a) : void 0; } }
|
|
49477
49497
|
function _arrayLikeToArray$4(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; }
|
|
49478
|
-
function ownKeys$
|
|
49479
|
-
function _objectSpread$
|
|
49498
|
+
function ownKeys$7(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; }
|
|
49499
|
+
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$7(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
49480
49500
|
var DraggableWidgetItem = function DraggableWidgetItem(_ref) {
|
|
49481
49501
|
var widgetKey = _ref.widgetKey,
|
|
49482
49502
|
widget = _ref.widget;
|
|
@@ -49602,7 +49622,7 @@ var SidebarDiscoverContent = function SidebarDiscoverContent(_ref2) {
|
|
|
49602
49622
|
if (registry.installError) {
|
|
49603
49623
|
setProgressWidgets(function (prev) {
|
|
49604
49624
|
return prev.map(function (w) {
|
|
49605
|
-
return _objectSpread$
|
|
49625
|
+
return _objectSpread$7(_objectSpread$7({}, w), {}, {
|
|
49606
49626
|
status: "failed",
|
|
49607
49627
|
error: registry.installError
|
|
49608
49628
|
});
|
|
@@ -49611,7 +49631,7 @@ var SidebarDiscoverContent = function SidebarDiscoverContent(_ref2) {
|
|
|
49611
49631
|
} else {
|
|
49612
49632
|
setProgressWidgets(function (prev) {
|
|
49613
49633
|
return prev.map(function (w) {
|
|
49614
|
-
return _objectSpread$
|
|
49634
|
+
return _objectSpread$7(_objectSpread$7({}, w), {}, {
|
|
49615
49635
|
status: "installed"
|
|
49616
49636
|
});
|
|
49617
49637
|
});
|
|
@@ -49656,7 +49676,7 @@ var SidebarDiscoverContent = function SidebarDiscoverContent(_ref2) {
|
|
|
49656
49676
|
// Transition to downloading
|
|
49657
49677
|
setProgressWidgets(function (prev) {
|
|
49658
49678
|
return prev.map(function (w) {
|
|
49659
|
-
return _objectSpread$
|
|
49679
|
+
return _objectSpread$7(_objectSpread$7({}, w), {}, {
|
|
49660
49680
|
status: "downloading"
|
|
49661
49681
|
});
|
|
49662
49682
|
});
|
|
@@ -50402,8 +50422,8 @@ var useMissingWidgets = function useMissingWidgets(workspace) {
|
|
|
50402
50422
|
};
|
|
50403
50423
|
};
|
|
50404
50424
|
|
|
50405
|
-
function ownKeys$
|
|
50406
|
-
function _objectSpread$
|
|
50425
|
+
function ownKeys$6(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; }
|
|
50426
|
+
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
50407
50427
|
function _createForOfIteratorHelper$3(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$3(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; } } }; }
|
|
50408
50428
|
function _unsupportedIterableToArray$3(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$3(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$3(r, a) : void 0; } }
|
|
50409
50429
|
function _arrayLikeToArray$3(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; }
|
|
@@ -50628,7 +50648,7 @@ var MissingWidgetsModal = function MissingWidgetsModal(_ref) {
|
|
|
50628
50648
|
case 2:
|
|
50629
50649
|
setProgressWidgets(function (prev) {
|
|
50630
50650
|
var next = _toConsumableArray(prev);
|
|
50631
|
-
next[i] = _objectSpread$
|
|
50651
|
+
next[i] = _objectSpread$6(_objectSpread$6({}, next[i]), {}, {
|
|
50632
50652
|
status: "installed"
|
|
50633
50653
|
});
|
|
50634
50654
|
return next;
|
|
@@ -50640,7 +50660,7 @@ var MissingWidgetsModal = function MissingWidgetsModal(_ref) {
|
|
|
50640
50660
|
_t3 = _context3["catch"](1);
|
|
50641
50661
|
setProgressWidgets(function (prev) {
|
|
50642
50662
|
var next = _toConsumableArray(prev);
|
|
50643
|
-
next[i] = _objectSpread$
|
|
50663
|
+
next[i] = _objectSpread$6(_objectSpread$6({}, next[i]), {}, {
|
|
50644
50664
|
status: "failed",
|
|
50645
50665
|
error: _t3.message || "Install failed"
|
|
50646
50666
|
});
|
|
@@ -50778,8 +50798,8 @@ var MissingWidgetsModal = function MissingWidgetsModal(_ref) {
|
|
|
50778
50798
|
});
|
|
50779
50799
|
};
|
|
50780
50800
|
|
|
50781
|
-
function ownKeys$
|
|
50782
|
-
function _objectSpread$
|
|
50801
|
+
function ownKeys$5(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; }
|
|
50802
|
+
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
50783
50803
|
var DashboardStage = function DashboardStage(_ref) {
|
|
50784
50804
|
var dashApi = _ref.dashApi,
|
|
50785
50805
|
credentials = _ref.credentials,
|
|
@@ -50835,7 +50855,7 @@ var PageLayoutBuilder = /*#__PURE__*/React__default.memo(function PageLayoutBuil
|
|
|
50835
50855
|
workspaceRef = _ref2.workspaceRef,
|
|
50836
50856
|
onWidgetPopout = _ref2.onWidgetPopout;
|
|
50837
50857
|
var pageWorkspace = useMemo(function () {
|
|
50838
|
-
return _objectSpread$
|
|
50858
|
+
return _objectSpread$5(_objectSpread$5({}, workspaceItem), {}, {
|
|
50839
50859
|
layout: page.layout || []
|
|
50840
50860
|
});
|
|
50841
50861
|
},
|
|
@@ -51239,7 +51259,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51239
51259
|
// Sync fresh workspace data to existing tab
|
|
51240
51260
|
setOpenTabs(function (prev) {
|
|
51241
51261
|
return prev.map(function (tab) {
|
|
51242
|
-
return tab.id === existingTab.id ? _objectSpread$
|
|
51262
|
+
return tab.id === existingTab.id ? _objectSpread$5(_objectSpread$5({}, tab), {}, {
|
|
51243
51263
|
name: workspaceItem.name || "Untitled",
|
|
51244
51264
|
workspace: workspaceItem
|
|
51245
51265
|
}) : tab;
|
|
@@ -51292,7 +51312,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51292
51312
|
if (!ws) return;
|
|
51293
51313
|
setOpenTabs(function (prev) {
|
|
51294
51314
|
return prev.map(function (tab) {
|
|
51295
|
-
return tab.id === ws.id ? _objectSpread$
|
|
51315
|
+
return tab.id === ws.id ? _objectSpread$5(_objectSpread$5({}, tab), {}, {
|
|
51296
51316
|
name: ws.name || "Untitled",
|
|
51297
51317
|
workspace: ws
|
|
51298
51318
|
}) : tab;
|
|
@@ -51389,7 +51409,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51389
51409
|
if (activeTabId) {
|
|
51390
51410
|
setOpenTabs(function (prev) {
|
|
51391
51411
|
return prev.map(function (tab) {
|
|
51392
|
-
return tab.id === activeTabId ? _objectSpread$
|
|
51412
|
+
return tab.id === activeTabId ? _objectSpread$5(_objectSpread$5({}, tab), {}, {
|
|
51393
51413
|
name: wsModel.name || "Untitled",
|
|
51394
51414
|
workspace: wsModel
|
|
51395
51415
|
}) : tab;
|
|
@@ -51414,8 +51434,8 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51414
51434
|
if (workspaceSelected && widgetId) {
|
|
51415
51435
|
// Build widget-specific provider selections
|
|
51416
51436
|
var currentSelections = workspaceSelected.selectedProviders || {};
|
|
51417
|
-
var updatedWorkspace = _objectSpread$
|
|
51418
|
-
selectedProviders: _objectSpread$
|
|
51437
|
+
var updatedWorkspace = _objectSpread$5(_objectSpread$5({}, workspaceSelected), {}, {
|
|
51438
|
+
selectedProviders: _objectSpread$5(_objectSpread$5({}, currentSelections), {}, _defineProperty({}, widgetId, updatedProviders))
|
|
51419
51439
|
});
|
|
51420
51440
|
|
|
51421
51441
|
// Update the tab's workspace reference
|
|
@@ -51438,7 +51458,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51438
51458
|
var sidebarWorkspaceRef = useRef(null);
|
|
51439
51459
|
function handleSidebarToggle(enabled) {
|
|
51440
51460
|
if (!workspaceSelected) return;
|
|
51441
|
-
handleWorkspaceChange(_objectSpread$
|
|
51461
|
+
handleWorkspaceChange(_objectSpread$5(_objectSpread$5({}, workspaceSelected), {}, {
|
|
51442
51462
|
sidebarEnabled: enabled
|
|
51443
51463
|
}));
|
|
51444
51464
|
}
|
|
@@ -51449,40 +51469,26 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51449
51469
|
activePageId = _useState48[0],
|
|
51450
51470
|
setActivePageId = _useState48[1];
|
|
51451
51471
|
var workspacePages = (workspaceSelected === null || workspaceSelected === void 0 ? void 0 : workspaceSelected.pages) || [];
|
|
51452
|
-
var hasPages = workspacePages.length > 0;
|
|
51453
51472
|
|
|
51454
51473
|
// Memoize sorted pages so page object references stay stable across re-renders
|
|
51455
51474
|
var sortedPagesForRender = useMemo(function () {
|
|
51456
|
-
return
|
|
51475
|
+
return _toConsumableArray(workspacePages).sort(function (a, b) {
|
|
51457
51476
|
return (a.order || 0) - (b.order || 0);
|
|
51458
|
-
})
|
|
51477
|
+
});
|
|
51459
51478
|
},
|
|
51460
51479
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
51461
|
-
[
|
|
51480
|
+
[workspacePages.length,
|
|
51462
51481
|
// Re-sort when page names/order change but not on every parent render
|
|
51463
51482
|
workspacePages.map(function (p) {
|
|
51464
51483
|
return "".concat(p.id, ":").concat(p.order, ":").concat(p.name);
|
|
51465
51484
|
}).join(",")]);
|
|
51466
51485
|
var currentActivePageId = activePageId || (workspaceSelected === null || workspaceSelected === void 0 ? void 0 : workspaceSelected.activePageId) || ((_workspacePages$0$id = (_workspacePages$ = workspacePages[0]) === null || _workspacePages$ === void 0 ? void 0 : _workspacePages$.id) !== null && _workspacePages$0$id !== void 0 ? _workspacePages$0$id : null);
|
|
51467
51486
|
function handleAddPage() {
|
|
51468
|
-
var _workspaceSelected$la;
|
|
51469
51487
|
if (!workspaceSelected) return;
|
|
51470
51488
|
var existingPages = _toConsumableArray(workspacePages);
|
|
51471
|
-
|
|
51472
|
-
// If this is the first time adding a page to a single-page dashboard,
|
|
51473
|
-
// migrate the existing layout into page 1 first.
|
|
51474
|
-
if (existingPages.length === 0 && ((_workspaceSelected$la = workspaceSelected.layout) === null || _workspaceSelected$la === void 0 ? void 0 : _workspaceSelected$la.length) > 0) {
|
|
51475
|
-
var page1 = {
|
|
51476
|
-
id: "page-".concat(Date.now() - 1),
|
|
51477
|
-
name: workspaceSelected.name || "Page 1",
|
|
51478
|
-
order: 0,
|
|
51479
|
-
layout: workspaceSelected.layout
|
|
51480
|
-
};
|
|
51481
|
-
existingPages = [page1];
|
|
51482
|
-
}
|
|
51483
51489
|
var newPage = DashboardModel.createPage("Page ".concat(existingPages.length + 1));
|
|
51484
51490
|
newPage.order = existingPages.length;
|
|
51485
|
-
var updatedWorkspace = _objectSpread$
|
|
51491
|
+
var updatedWorkspace = _objectSpread$5(_objectSpread$5({}, workspaceSelected), {}, {
|
|
51486
51492
|
pages: [].concat(_toConsumableArray(existingPages), [newPage]),
|
|
51487
51493
|
activePageId: newPage.id
|
|
51488
51494
|
});
|
|
@@ -51495,11 +51501,11 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51495
51501
|
function handleRenamePage(pageId, newName) {
|
|
51496
51502
|
if (!workspaceSelected) return;
|
|
51497
51503
|
var updatedPages = workspacePages.map(function (p) {
|
|
51498
|
-
return p.id === pageId ? _objectSpread$
|
|
51504
|
+
return p.id === pageId ? _objectSpread$5(_objectSpread$5({}, p), {}, {
|
|
51499
51505
|
name: newName
|
|
51500
51506
|
}) : p;
|
|
51501
51507
|
});
|
|
51502
|
-
handleWorkspaceChange(_objectSpread$
|
|
51508
|
+
handleWorkspaceChange(_objectSpread$5(_objectSpread$5({}, workspaceSelected), {}, {
|
|
51503
51509
|
pages: updatedPages
|
|
51504
51510
|
}));
|
|
51505
51511
|
}
|
|
@@ -51511,25 +51517,14 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51511
51517
|
});
|
|
51512
51518
|
var newActiveId = currentActivePageId === pageId ? (_updatedPages$ = updatedPages[0]) === null || _updatedPages$ === void 0 ? void 0 : _updatedPages$.id : currentActivePageId;
|
|
51513
51519
|
setActivePageId(newActiveId);
|
|
51514
|
-
|
|
51515
|
-
// If only one page remains, convert back to single-page mode
|
|
51516
|
-
if (updatedPages.length === 1) {
|
|
51517
|
-
handleWorkspaceChange(_objectSpread$4(_objectSpread$4({}, workspaceSelected), {}, {
|
|
51518
|
-
layout: updatedPages[0].layout,
|
|
51519
|
-
pages: [],
|
|
51520
|
-
activePageId: null
|
|
51521
|
-
}));
|
|
51522
|
-
setActivePageId(null);
|
|
51523
|
-
return;
|
|
51524
|
-
}
|
|
51525
|
-
handleWorkspaceChange(_objectSpread$4(_objectSpread$4({}, workspaceSelected), {}, {
|
|
51520
|
+
handleWorkspaceChange(_objectSpread$5(_objectSpread$5({}, workspaceSelected), {}, {
|
|
51526
51521
|
pages: updatedPages,
|
|
51527
51522
|
activePageId: newActiveId
|
|
51528
51523
|
}));
|
|
51529
51524
|
}
|
|
51530
51525
|
function handleReorderPages(reorderedPages) {
|
|
51531
51526
|
if (!workspaceSelected) return;
|
|
51532
|
-
handleWorkspaceChange(_objectSpread$
|
|
51527
|
+
handleWorkspaceChange(_objectSpread$5(_objectSpread$5({}, workspaceSelected), {}, {
|
|
51533
51528
|
pages: reorderedPages
|
|
51534
51529
|
}));
|
|
51535
51530
|
}
|
|
@@ -51580,45 +51575,28 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51580
51575
|
function renderComponent(workspaceItem) {
|
|
51581
51576
|
try {
|
|
51582
51577
|
if (workspaceItem === undefined) return null;
|
|
51583
|
-
|
|
51584
|
-
|
|
51585
|
-
|
|
51586
|
-
|
|
51587
|
-
|
|
51588
|
-
|
|
51589
|
-
|
|
51590
|
-
|
|
51591
|
-
|
|
51592
|
-
|
|
51593
|
-
|
|
51594
|
-
|
|
51595
|
-
|
|
51596
|
-
|
|
51597
|
-
|
|
51598
|
-
|
|
51599
|
-
|
|
51600
|
-
|
|
51601
|
-
|
|
51602
|
-
|
|
51603
|
-
|
|
51604
|
-
|
|
51605
|
-
}, page.id);
|
|
51606
|
-
})
|
|
51607
|
-
});
|
|
51608
|
-
}
|
|
51609
|
-
|
|
51610
|
-
// Single-page mode (backward compatible)
|
|
51611
|
-
return /*#__PURE__*/jsx(LayoutBuilder, {
|
|
51612
|
-
dashboardId: workspaceItem["id"],
|
|
51613
|
-
preview: previewMode,
|
|
51614
|
-
workspace: workspaceItem,
|
|
51615
|
-
onWorkspaceChange: handleWorkspaceChange,
|
|
51616
|
-
onProviderSelect: handleProviderSelect,
|
|
51617
|
-
onTogglePreview: handleToggleEditMode,
|
|
51618
|
-
editMode: editMode,
|
|
51619
|
-
workspaceRef: currentWorkspaceRef,
|
|
51620
|
-
onWidgetPopout: popout ? null : handleWidgetPopout
|
|
51621
|
-
}, "LayoutBuilder-".concat(workspaceItem["id"]));
|
|
51578
|
+
return /*#__PURE__*/jsx(Fragment, {
|
|
51579
|
+
children: sortedPagesForRender.map(function (page) {
|
|
51580
|
+
var isActive = page.id === currentActivePageId;
|
|
51581
|
+
return /*#__PURE__*/jsx("div", {
|
|
51582
|
+
style: {
|
|
51583
|
+
display: isActive ? "flex" : "none"
|
|
51584
|
+
},
|
|
51585
|
+
className: "flex-col w-full flex-1",
|
|
51586
|
+
children: /*#__PURE__*/jsx(PageLayoutBuilder, {
|
|
51587
|
+
page: page,
|
|
51588
|
+
workspaceItem: workspaceItem,
|
|
51589
|
+
previewMode: previewMode,
|
|
51590
|
+
editMode: editMode,
|
|
51591
|
+
onPageWorkspaceChange: handlePageWorkspaceChange,
|
|
51592
|
+
onProviderSelect: stableProviderSelect,
|
|
51593
|
+
onTogglePreview: stableTogglePreview,
|
|
51594
|
+
workspaceRef: getPageRef(page.id),
|
|
51595
|
+
onWidgetPopout: stableWidgetPopout
|
|
51596
|
+
})
|
|
51597
|
+
}, page.id);
|
|
51598
|
+
})
|
|
51599
|
+
});
|
|
51622
51600
|
} catch (e) {
|
|
51623
51601
|
return null;
|
|
51624
51602
|
}
|
|
@@ -51712,27 +51690,43 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51712
51690
|
updateTabWorkspace(tempWorkspace);
|
|
51713
51691
|
}
|
|
51714
51692
|
function handleScrollableChange(enabled) {
|
|
51715
|
-
var _tempWorkspace$layout;
|
|
51716
51693
|
if (!workspaceSelected) return;
|
|
51717
51694
|
var tempWorkspace = deepCopy(currentWorkspaceRef.current || workspaceSelected);
|
|
51718
|
-
//
|
|
51719
|
-
|
|
51720
|
-
|
|
51695
|
+
// Update the active page's root layout item
|
|
51696
|
+
tempWorkspace.pages = (tempWorkspace.pages || []).map(function (page) {
|
|
51697
|
+
if (page.id !== currentActivePageId) return page;
|
|
51698
|
+
return _objectSpread$5(_objectSpread$5({}, page), {}, {
|
|
51699
|
+
layout: (page.layout || []).map(function (item) {
|
|
51700
|
+
return item.parent === 0 ? _objectSpread$5(_objectSpread$5({}, item), {}, {
|
|
51701
|
+
scrollable: enabled
|
|
51702
|
+
}) : item;
|
|
51703
|
+
})
|
|
51704
|
+
});
|
|
51721
51705
|
});
|
|
51722
|
-
|
|
51723
|
-
|
|
51706
|
+
// Update page ref immediately so getRootScrollable() reads the new value
|
|
51707
|
+
var pageRef = pageRefsMap.current[currentActivePageId];
|
|
51708
|
+
if (pageRef !== null && pageRef !== void 0 && pageRef.current) {
|
|
51709
|
+
pageRef.current.layout = (pageRef.current.layout || []).map(function (item) {
|
|
51710
|
+
return item.parent === 0 ? _objectSpread$5(_objectSpread$5({}, item), {}, {
|
|
51711
|
+
scrollable: enabled
|
|
51712
|
+
}) : item;
|
|
51713
|
+
});
|
|
51724
51714
|
}
|
|
51725
|
-
// Update ref immediately so getRootScrollable() reads the new value
|
|
51726
|
-
// before LayoutBuilder's async useEffect syncs it
|
|
51727
51715
|
currentWorkspaceRef.current = tempWorkspace;
|
|
51728
51716
|
updateTabWorkspace(tempWorkspace);
|
|
51729
51717
|
}
|
|
51730
51718
|
|
|
51731
|
-
// Derive scrollable state from root layout item
|
|
51719
|
+
// Derive scrollable state from the active page's root layout item
|
|
51732
51720
|
function getRootScrollable() {
|
|
51721
|
+
var _pageRef$current, _ws$pages;
|
|
51733
51722
|
var ws = currentWorkspaceRef.current || workspaceSelected;
|
|
51734
|
-
if (!
|
|
51735
|
-
var
|
|
51723
|
+
if (!ws) return false;
|
|
51724
|
+
var pageRef = pageRefsMap.current[currentActivePageId];
|
|
51725
|
+
var layout = (pageRef === null || pageRef === void 0 || (_pageRef$current = pageRef.current) === null || _pageRef$current === void 0 ? void 0 : _pageRef$current.layout) || ((_ws$pages = ws.pages) === null || _ws$pages === void 0 || (_ws$pages = _ws$pages.find(function (p) {
|
|
51726
|
+
return p.id === currentActivePageId;
|
|
51727
|
+
})) === null || _ws$pages === void 0 ? void 0 : _ws$pages.layout);
|
|
51728
|
+
if (!layout) return false;
|
|
51729
|
+
var rootItem = layout.find(function (item) {
|
|
51736
51730
|
return item.parent === 0;
|
|
51737
51731
|
});
|
|
51738
51732
|
return (rootItem === null || rootItem === void 0 ? void 0 : rootItem.scrollable) || false;
|
|
@@ -51742,54 +51736,33 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51742
51736
|
var _sidebarWorkspaceRef$;
|
|
51743
51737
|
// we have to remove the widgetConfig which contains the component
|
|
51744
51738
|
// sanitize the workspace layout remove widgetConfig items
|
|
51745
|
-
|
|
51746
|
-
|
|
51747
|
-
|
|
51748
|
-
|
|
51749
|
-
|
|
51750
|
-
|
|
51751
|
-
|
|
51752
|
-
|
|
51753
|
-
|
|
51754
|
-
|
|
51755
|
-
|
|
51756
|
-
|
|
51757
|
-
return copy;
|
|
51758
|
-
})
|
|
51759
|
-
});
|
|
51760
|
-
});
|
|
51761
|
-
workspaceToSave.activePageId = currentActivePageId;
|
|
51762
|
-
// Also sanitize the root layout (may be stale from pre-pages era)
|
|
51763
|
-
workspaceToSave.layout = (workspaceToSave.layout || []).map(function (item) {
|
|
51764
|
-
var copy = _objectSpread$4({}, item);
|
|
51765
|
-
delete copy.widgetConfig;
|
|
51766
|
-
return copy;
|
|
51739
|
+
// Gather latest layout from each page's LayoutBuilder ref
|
|
51740
|
+
var workspaceToSave = deepCopy(workspaceSelected);
|
|
51741
|
+
workspaceToSave.pages = (workspaceToSave.pages || []).map(function (page) {
|
|
51742
|
+
var _pageRef$current2;
|
|
51743
|
+
var pageRef = pageRefsMap.current[page.id];
|
|
51744
|
+
var latestLayout = (pageRef === null || pageRef === void 0 || (_pageRef$current2 = pageRef.current) === null || _pageRef$current2 === void 0 ? void 0 : _pageRef$current2.layout) || page.layout || [];
|
|
51745
|
+
return _objectSpread$5(_objectSpread$5({}, page), {}, {
|
|
51746
|
+
layout: latestLayout.map(function (item) {
|
|
51747
|
+
var copy = _objectSpread$5({}, item);
|
|
51748
|
+
delete copy.widgetConfig;
|
|
51749
|
+
return copy;
|
|
51750
|
+
})
|
|
51767
51751
|
});
|
|
51768
|
-
}
|
|
51769
|
-
|
|
51770
|
-
|
|
51771
|
-
|
|
51772
|
-
|
|
51773
|
-
|
|
51774
|
-
|
|
51775
|
-
|
|
51776
|
-
if (refLayout) {
|
|
51777
|
-
workspaceToSave["layout"] = refLayout.map(function (layoutItem) {
|
|
51778
|
-
delete layoutItem["widgetConfig"];
|
|
51779
|
-
return layoutItem;
|
|
51780
|
-
});
|
|
51781
|
-
} else {
|
|
51782
|
-
workspaceToSave["layout"] = (workspaceToSave["layout"] || []).map(function (layoutItem) {
|
|
51783
|
-
delete layoutItem["widgetConfig"];
|
|
51784
|
-
return layoutItem;
|
|
51785
|
-
});
|
|
51786
|
-
}
|
|
51752
|
+
});
|
|
51753
|
+
workspaceToSave.activePageId = currentActivePageId;
|
|
51754
|
+
// Sync root layout from active page for backward compat
|
|
51755
|
+
var activePage = workspaceToSave.pages.find(function (p) {
|
|
51756
|
+
return p.id === currentActivePageId;
|
|
51757
|
+
});
|
|
51758
|
+
if (activePage) {
|
|
51759
|
+
workspaceToSave.layout = activePage.layout;
|
|
51787
51760
|
}
|
|
51788
51761
|
|
|
51789
51762
|
// Gather sidebar layout from its LayoutBuilder ref
|
|
51790
51763
|
if ((_sidebarWorkspaceRef$ = sidebarWorkspaceRef.current) !== null && _sidebarWorkspaceRef$ !== void 0 && _sidebarWorkspaceRef$.layout) {
|
|
51791
51764
|
workspaceToSave.sidebarLayout = sidebarWorkspaceRef.current.layout.map(function (item) {
|
|
51792
|
-
var copy = _objectSpread$
|
|
51765
|
+
var copy = _objectSpread$5({}, item);
|
|
51793
51766
|
delete copy.widgetConfig;
|
|
51794
51767
|
return copy;
|
|
51795
51768
|
});
|
|
@@ -51835,7 +51808,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51835
51808
|
if (savedWs) {
|
|
51836
51809
|
setOpenTabs(function (prev) {
|
|
51837
51810
|
return prev.map(function (tab) {
|
|
51838
|
-
return tab.id === activeTabId ? _objectSpread$
|
|
51811
|
+
return tab.id === activeTabId ? _objectSpread$5(_objectSpread$5({}, tab), {}, {
|
|
51839
51812
|
name: savedWs.name || "Untitled",
|
|
51840
51813
|
workspace: savedWs
|
|
51841
51814
|
}) : tab;
|
|
@@ -52033,8 +52006,6 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
52033
52006
|
themes: themes || {},
|
|
52034
52007
|
onFolderChange: popout ? null : handleWorkspaceFolderChange,
|
|
52035
52008
|
onThemeChange: popout ? null : handleWorkspaceThemeChange,
|
|
52036
|
-
scrollableEnabled: getRootScrollable(),
|
|
52037
|
-
onScrollableChange: popout ? null : handleScrollableChange,
|
|
52038
52009
|
sidebarEnabled: sidebarEnabled,
|
|
52039
52010
|
onSidebarChange: popout ? null : handleSidebarToggle
|
|
52040
52011
|
}), /*#__PURE__*/jsxs(DashboardThemeProvider, {
|
|
@@ -52067,7 +52038,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
52067
52038
|
className: "h-3 w-3"
|
|
52068
52039
|
})
|
|
52069
52040
|
})]
|
|
52070
|
-
}),
|
|
52041
|
+
}), /*#__PURE__*/jsx(PageTabBar, {
|
|
52071
52042
|
pages: workspacePages,
|
|
52072
52043
|
activePageId: currentActivePageId,
|
|
52073
52044
|
onSwitchPage: handleSwitchPage,
|
|
@@ -52075,7 +52046,9 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
52075
52046
|
onRenamePage: handleRenamePage,
|
|
52076
52047
|
onDeletePage: handleDeletePage,
|
|
52077
52048
|
onReorderPages: handleReorderPages,
|
|
52078
|
-
editMode: !previewMode
|
|
52049
|
+
editMode: !previewMode,
|
|
52050
|
+
scrollableEnabled: getRootScrollable(),
|
|
52051
|
+
onScrollableChange: popout ? null : handleScrollableChange
|
|
52079
52052
|
}), /*#__PURE__*/jsxs("div", {
|
|
52080
52053
|
className: "flex flex-row flex-1 min-h-0 overflow-hidden",
|
|
52081
52054
|
children: [sidebarEnabled && !popout && /*#__PURE__*/jsx(PinnedSidebar, {
|
|
@@ -52408,6 +52381,8 @@ var DashboardFooter = function DashboardFooter(_ref) {
|
|
|
52408
52381
|
});
|
|
52409
52382
|
};
|
|
52410
52383
|
|
|
52384
|
+
function ownKeys$4(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; }
|
|
52385
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
52411
52386
|
var DashboardHeader = function DashboardHeader(_ref) {
|
|
52412
52387
|
var _workspaceSelected$me;
|
|
52413
52388
|
var workspace = _ref.workspace,
|
|
@@ -52495,7 +52470,14 @@ var DashboardHeader = function DashboardHeader(_ref) {
|
|
|
52495
52470
|
}).sort(function (a, b) {
|
|
52496
52471
|
return (a.label || "").localeCompare(b.label || "");
|
|
52497
52472
|
}),
|
|
52498
|
-
onChange:
|
|
52473
|
+
onChange: function onChange(menuId) {
|
|
52474
|
+
setWorkspaceSelected(function (prev) {
|
|
52475
|
+
return _objectSpread$4(_objectSpread$4({}, prev), {}, {
|
|
52476
|
+
menuId: menuId
|
|
52477
|
+
});
|
|
52478
|
+
});
|
|
52479
|
+
onFolderChange(menuId);
|
|
52480
|
+
},
|
|
52499
52481
|
placeholder: "Folder",
|
|
52500
52482
|
backgroundColor: currentTheme["bg-primary-very-dark"],
|
|
52501
52483
|
textColor: currentTheme["text-primary-medium"],
|
|
@@ -52523,7 +52505,14 @@ var DashboardHeader = function DashboardHeader(_ref) {
|
|
|
52523
52505
|
})
|
|
52524
52506
|
};
|
|
52525
52507
|
}),
|
|
52526
|
-
onChange:
|
|
52508
|
+
onChange: function onChange(themeKey) {
|
|
52509
|
+
setWorkspaceSelected(function (prev) {
|
|
52510
|
+
return _objectSpread$4(_objectSpread$4({}, prev), {}, {
|
|
52511
|
+
themeKey: themeKey
|
|
52512
|
+
});
|
|
52513
|
+
});
|
|
52514
|
+
onThemeChange(themeKey);
|
|
52515
|
+
},
|
|
52527
52516
|
placeholder: "Select a theme",
|
|
52528
52517
|
backgroundColor: currentTheme["bg-primary-very-dark"],
|
|
52529
52518
|
textColor: currentTheme["text-primary-medium"],
|