@trops/dash-core 0.1.191 → 0.1.192
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 +304 -20
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +304 -19
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3466,6 +3466,13 @@ var CreationMethodPicker = function CreationMethodPicker(_ref2) {
|
|
|
3466
3466
|
onClick: function onClick() {
|
|
3467
3467
|
return onSelect("registry");
|
|
3468
3468
|
}
|
|
3469
|
+
}), /*#__PURE__*/jsxRuntime.jsx(OptionCard$1, {
|
|
3470
|
+
icon: "wand-magic-sparkles",
|
|
3471
|
+
title: "Dashboard Wizard",
|
|
3472
|
+
description: "Guided setup \u2014 pick categories, providers, and widgets step by step",
|
|
3473
|
+
onClick: function onClick() {
|
|
3474
|
+
return onSelect("wizard");
|
|
3475
|
+
}
|
|
3469
3476
|
})]
|
|
3470
3477
|
})]
|
|
3471
3478
|
});
|
|
@@ -4081,7 +4088,9 @@ var LayoutManagerModal = function LayoutManagerModal(_ref) {
|
|
|
4081
4088
|
appId = _ref.appId,
|
|
4082
4089
|
onReloadWorkspaces = _ref.onReloadWorkspaces,
|
|
4083
4090
|
_ref$onOpenWorkspace = _ref.onOpenWorkspace,
|
|
4084
|
-
onOpenWorkspace = _ref$onOpenWorkspace === void 0 ? null : _ref$onOpenWorkspace
|
|
4091
|
+
onOpenWorkspace = _ref$onOpenWorkspace === void 0 ? null : _ref$onOpenWorkspace,
|
|
4092
|
+
_ref$onOpenWizard = _ref.onOpenWizard,
|
|
4093
|
+
onOpenWizard = _ref$onOpenWizard === void 0 ? null : _ref$onOpenWizard;
|
|
4085
4094
|
var _useContext = React.useContext(DashReact.ThemeContext),
|
|
4086
4095
|
themes = _useContext.themes,
|
|
4087
4096
|
appThemeKey = _useContext.themeKey;
|
|
@@ -4202,6 +4211,11 @@ var LayoutManagerModal = function LayoutManagerModal(_ref) {
|
|
|
4202
4211
|
setActiveStep(2);
|
|
4203
4212
|
}
|
|
4204
4213
|
function handleMethodSelect(method) {
|
|
4214
|
+
if (method === "wizard" && onOpenWizard) {
|
|
4215
|
+
setIsOpen(false);
|
|
4216
|
+
onOpenWizard();
|
|
4217
|
+
return;
|
|
4218
|
+
}
|
|
4205
4219
|
setCreationMethod(method);
|
|
4206
4220
|
}
|
|
4207
4221
|
function handleImportFromFile() {
|
|
@@ -7139,6 +7153,222 @@ var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
|
7139
7153
|
});
|
|
7140
7154
|
};
|
|
7141
7155
|
|
|
7156
|
+
var STEP_LABELS = [{
|
|
7157
|
+
label: "Intent",
|
|
7158
|
+
description: "Choose categories"
|
|
7159
|
+
}, {
|
|
7160
|
+
label: "Providers",
|
|
7161
|
+
description: "Select data sources"
|
|
7162
|
+
}, {
|
|
7163
|
+
label: "Browse",
|
|
7164
|
+
description: "Pick widgets or dashboards"
|
|
7165
|
+
}, {
|
|
7166
|
+
label: "Layout",
|
|
7167
|
+
description: "Arrange your widgets"
|
|
7168
|
+
}, {
|
|
7169
|
+
label: "Customize",
|
|
7170
|
+
description: "Name, folder & theme"
|
|
7171
|
+
}];
|
|
7172
|
+
|
|
7173
|
+
/**
|
|
7174
|
+
* DashboardWizardModal
|
|
7175
|
+
*
|
|
7176
|
+
* Top-level modal that hosts all wizard steps with a Stepper header.
|
|
7177
|
+
* Provides Back/Next/Create navigation with step-aware validation.
|
|
7178
|
+
* Resets wizard state cleanly on close.
|
|
7179
|
+
*/
|
|
7180
|
+
var DashboardWizardModal = function DashboardWizardModal(_ref) {
|
|
7181
|
+
var open = _ref.open,
|
|
7182
|
+
setIsOpen = _ref.setIsOpen,
|
|
7183
|
+
_ref$menuItems = _ref.menuItems,
|
|
7184
|
+
menuItems = _ref$menuItems === void 0 ? [] : _ref$menuItems,
|
|
7185
|
+
_ref$onSaveMenuItem = _ref.onSaveMenuItem,
|
|
7186
|
+
onSaveMenuItem = _ref$onSaveMenuItem === void 0 ? null : _ref$onSaveMenuItem,
|
|
7187
|
+
_ref$onCreateWorkspac = _ref.onCreateWorkspace,
|
|
7188
|
+
onCreateWorkspace = _ref$onCreateWorkspac === void 0 ? null : _ref$onCreateWorkspac,
|
|
7189
|
+
_ref$onInstallDashboa = _ref.onInstallDashboard,
|
|
7190
|
+
onInstallDashboard = _ref$onInstallDashboa === void 0 ? null : _ref$onInstallDashboa,
|
|
7191
|
+
_ref$onOpenDashboard = _ref.onOpenDashboard,
|
|
7192
|
+
_onOpenDashboard = _ref$onOpenDashboard === void 0 ? null : _ref$onOpenDashboard,
|
|
7193
|
+
_ref$onReloadWorkspac = _ref.onReloadWorkspaces,
|
|
7194
|
+
onReloadWorkspaces = _ref$onReloadWorkspac === void 0 ? null : _ref$onReloadWorkspac,
|
|
7195
|
+
appId = _ref.appId;
|
|
7196
|
+
var _useWizardState = useWizardState(),
|
|
7197
|
+
state = _useWizardState.state,
|
|
7198
|
+
dispatch = _useWizardState.dispatch,
|
|
7199
|
+
nextStep = _useWizardState.nextStep,
|
|
7200
|
+
prevStep = _useWizardState.prevStep,
|
|
7201
|
+
goToStep = _useWizardState.goToStep,
|
|
7202
|
+
canProceed = _useWizardState.canProceed,
|
|
7203
|
+
isPrebuiltPath = _useWizardState.isPrebuiltPath;
|
|
7204
|
+
|
|
7205
|
+
// Reset wizard state when modal opens
|
|
7206
|
+
React.useEffect(function () {
|
|
7207
|
+
if (open) {
|
|
7208
|
+
dispatch({
|
|
7209
|
+
type: "RESET"
|
|
7210
|
+
});
|
|
7211
|
+
}
|
|
7212
|
+
}, [open, dispatch]);
|
|
7213
|
+
function handleClose() {
|
|
7214
|
+
setIsOpen(false);
|
|
7215
|
+
}
|
|
7216
|
+
var handleStepChange = React.useCallback(function (newStep) {
|
|
7217
|
+
// Stepper only allows going backwards; forward is via Next button
|
|
7218
|
+
if (newStep < state.step) {
|
|
7219
|
+
goToStep(newStep);
|
|
7220
|
+
}
|
|
7221
|
+
}, [state.step, goToStep]);
|
|
7222
|
+
|
|
7223
|
+
// Skip layout step for prebuilt path
|
|
7224
|
+
var handleNext = React.useCallback(function () {
|
|
7225
|
+
if (!canProceed) return;
|
|
7226
|
+
if (state.step === 2 && isPrebuiltPath) {
|
|
7227
|
+
// Skip layout step (3), go straight to customize (4)
|
|
7228
|
+
goToStep(4);
|
|
7229
|
+
} else {
|
|
7230
|
+
nextStep();
|
|
7231
|
+
}
|
|
7232
|
+
}, [canProceed, state.step, isPrebuiltPath, goToStep, nextStep]);
|
|
7233
|
+
var handleBack = React.useCallback(function () {
|
|
7234
|
+
if (state.step === 4 && isPrebuiltPath) {
|
|
7235
|
+
// Skip back over layout step (3), go to browse (2)
|
|
7236
|
+
goToStep(2);
|
|
7237
|
+
} else {
|
|
7238
|
+
prevStep();
|
|
7239
|
+
}
|
|
7240
|
+
}, [state.step, isPrebuiltPath, goToStep, prevStep]);
|
|
7241
|
+
var isLastStep = state.step === 4;
|
|
7242
|
+
state.step === 4 && state._created;
|
|
7243
|
+
return /*#__PURE__*/jsxRuntime.jsx(DashReact.Modal, {
|
|
7244
|
+
isOpen: open,
|
|
7245
|
+
setIsOpen: setIsOpen,
|
|
7246
|
+
width: "w-5/6",
|
|
7247
|
+
height: "h-5/6",
|
|
7248
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
7249
|
+
className: "flex flex-col h-full bg-gray-900 rounded-lg overflow-hidden",
|
|
7250
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
7251
|
+
className: "flex items-center justify-between px-6 pt-5 pb-0",
|
|
7252
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("h2", {
|
|
7253
|
+
className: "text-lg font-semibold text-gray-200",
|
|
7254
|
+
children: "Dashboard Wizard"
|
|
7255
|
+
}), /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
7256
|
+
type: "button",
|
|
7257
|
+
onClick: handleClose,
|
|
7258
|
+
className: "text-gray-500 hover:text-gray-300 transition-colors",
|
|
7259
|
+
children: /*#__PURE__*/jsxRuntime.jsx("svg", {
|
|
7260
|
+
className: "h-5 w-5",
|
|
7261
|
+
fill: "none",
|
|
7262
|
+
viewBox: "0 0 24 24",
|
|
7263
|
+
stroke: "currentColor",
|
|
7264
|
+
strokeWidth: 2,
|
|
7265
|
+
children: /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
7266
|
+
strokeLinecap: "round",
|
|
7267
|
+
strokeLinejoin: "round",
|
|
7268
|
+
d: "M6 18L18 6M6 6l12 12"
|
|
7269
|
+
})
|
|
7270
|
+
})
|
|
7271
|
+
})]
|
|
7272
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
7273
|
+
className: "flex flex-col flex-1 min-h-0 px-6 py-4",
|
|
7274
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(DashReact.Stepper, {
|
|
7275
|
+
activeStep: state.step,
|
|
7276
|
+
onStepChange: handleStepChange,
|
|
7277
|
+
showNavigation: false,
|
|
7278
|
+
className: "flex-1 min-h-0",
|
|
7279
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Stepper.Step, {
|
|
7280
|
+
label: STEP_LABELS[0].label,
|
|
7281
|
+
description: STEP_LABELS[0].description,
|
|
7282
|
+
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7283
|
+
className: "flex-1 min-h-0 overflow-y-auto",
|
|
7284
|
+
children: /*#__PURE__*/jsxRuntime.jsx(WizardIntentStep, {
|
|
7285
|
+
state: state,
|
|
7286
|
+
dispatch: dispatch
|
|
7287
|
+
})
|
|
7288
|
+
})
|
|
7289
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Stepper.Step, {
|
|
7290
|
+
label: STEP_LABELS[1].label,
|
|
7291
|
+
description: STEP_LABELS[1].description,
|
|
7292
|
+
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7293
|
+
className: "flex-1 min-h-0 overflow-y-auto",
|
|
7294
|
+
children: /*#__PURE__*/jsxRuntime.jsx(WizardProvidersStep, {
|
|
7295
|
+
state: state,
|
|
7296
|
+
dispatch: dispatch
|
|
7297
|
+
})
|
|
7298
|
+
})
|
|
7299
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Stepper.Step, {
|
|
7300
|
+
label: STEP_LABELS[2].label,
|
|
7301
|
+
description: STEP_LABELS[2].description,
|
|
7302
|
+
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7303
|
+
className: "flex-1 min-h-0 overflow-y-auto",
|
|
7304
|
+
children: /*#__PURE__*/jsxRuntime.jsx(WizardResultsStep, {
|
|
7305
|
+
state: state,
|
|
7306
|
+
dispatch: dispatch
|
|
7307
|
+
})
|
|
7308
|
+
})
|
|
7309
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Stepper.Step, {
|
|
7310
|
+
label: STEP_LABELS[3].label,
|
|
7311
|
+
description: STEP_LABELS[3].description,
|
|
7312
|
+
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7313
|
+
className: "flex-1 min-h-0 overflow-y-auto",
|
|
7314
|
+
children: /*#__PURE__*/jsxRuntime.jsx(WizardLayoutPreviewStep, {
|
|
7315
|
+
state: state,
|
|
7316
|
+
dispatch: dispatch
|
|
7317
|
+
})
|
|
7318
|
+
})
|
|
7319
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Stepper.Step, {
|
|
7320
|
+
label: STEP_LABELS[4].label,
|
|
7321
|
+
description: STEP_LABELS[4].description,
|
|
7322
|
+
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7323
|
+
className: "flex-1 min-h-0 overflow-y-auto",
|
|
7324
|
+
children: /*#__PURE__*/jsxRuntime.jsx(WizardCustomizeStep, {
|
|
7325
|
+
state: state,
|
|
7326
|
+
dispatch: dispatch,
|
|
7327
|
+
menuItems: menuItems,
|
|
7328
|
+
onSaveMenuItem: onSaveMenuItem,
|
|
7329
|
+
onCreateWorkspace: onCreateWorkspace,
|
|
7330
|
+
onInstallDashboard: onInstallDashboard,
|
|
7331
|
+
onOpenDashboard: function onOpenDashboard(ws) {
|
|
7332
|
+
handleClose();
|
|
7333
|
+
if (_onOpenDashboard) _onOpenDashboard(ws);
|
|
7334
|
+
if (onReloadWorkspaces) onReloadWorkspaces();
|
|
7335
|
+
},
|
|
7336
|
+
appId: appId
|
|
7337
|
+
})
|
|
7338
|
+
})
|
|
7339
|
+
})]
|
|
7340
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
7341
|
+
className: "flex flex-row justify-between items-center pt-4 mt-4 border-t border-gray-700/50",
|
|
7342
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Button, {
|
|
7343
|
+
onClick: state.step === 0 ? handleClose : handleBack,
|
|
7344
|
+
title: state.step === 0 ? "Cancel" : "Back",
|
|
7345
|
+
textSize: "text-sm",
|
|
7346
|
+
padding: "py-2 px-4",
|
|
7347
|
+
backgroundColor: "bg-gray-700",
|
|
7348
|
+
textColor: "text-gray-300",
|
|
7349
|
+
hoverTextColor: "hover:text-white",
|
|
7350
|
+
hoverBackgroundColor: "hover:bg-gray-600"
|
|
7351
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
7352
|
+
className: "text-xs text-gray-500",
|
|
7353
|
+
children: ["Step ", state.step + 1, " of ", STEP_LABELS.length]
|
|
7354
|
+
}), !isLastStep ? /*#__PURE__*/jsxRuntime.jsx(DashReact.Button, {
|
|
7355
|
+
onClick: handleNext,
|
|
7356
|
+
title: "Next",
|
|
7357
|
+
textSize: "text-sm",
|
|
7358
|
+
padding: "py-2 px-4",
|
|
7359
|
+
backgroundColor: canProceed ? "bg-blue-600" : "bg-gray-700",
|
|
7360
|
+
textColor: canProceed ? "text-white" : "text-gray-500",
|
|
7361
|
+
hoverTextColor: canProceed ? "hover:text-white" : "hover:text-gray-500",
|
|
7362
|
+
hoverBackgroundColor: canProceed ? "hover:bg-blue-500" : "hover:bg-gray-700",
|
|
7363
|
+
disabled: !canProceed,
|
|
7364
|
+
icon: "arrow-right"
|
|
7365
|
+
}) : /*#__PURE__*/jsxRuntime.jsx("div", {})]
|
|
7366
|
+
})]
|
|
7367
|
+
})]
|
|
7368
|
+
})
|
|
7369
|
+
});
|
|
7370
|
+
};
|
|
7371
|
+
|
|
7142
7372
|
var LayoutBuilderAddItemModal = function LayoutBuilderAddItemModal(_ref) {
|
|
7143
7373
|
var workspace = _ref.workspace,
|
|
7144
7374
|
open = _ref.open,
|
|
@@ -37464,7 +37694,9 @@ var DashboardsSection = function DashboardsSection(_ref) {
|
|
|
37464
37694
|
_ref$createRequested = _ref.createRequested,
|
|
37465
37695
|
createRequested = _ref$createRequested === void 0 ? false : _ref$createRequested,
|
|
37466
37696
|
_ref$onCreateAcknowle = _ref.onCreateAcknowledged,
|
|
37467
|
-
onCreateAcknowledged = _ref$onCreateAcknowle === void 0 ? null : _ref$onCreateAcknowle
|
|
37697
|
+
onCreateAcknowledged = _ref$onCreateAcknowle === void 0 ? null : _ref$onCreateAcknowle,
|
|
37698
|
+
_ref$onOpenWizard = _ref.onOpenWizard,
|
|
37699
|
+
onOpenWizard = _ref$onOpenWizard === void 0 ? null : _ref$onOpenWizard;
|
|
37468
37700
|
var _useState = React.useState(null),
|
|
37469
37701
|
_useState2 = _slicedToArray(_useState, 2),
|
|
37470
37702
|
selectedId = _useState2[0],
|
|
@@ -37676,6 +37908,14 @@ var DashboardsSection = function DashboardsSection(_ref) {
|
|
|
37676
37908
|
value: "marketplace",
|
|
37677
37909
|
className: "flex-1",
|
|
37678
37910
|
children: "Marketplace"
|
|
37911
|
+
}), onOpenWizard && /*#__PURE__*/jsxRuntime.jsx(DashReact.Tabs3.Trigger, {
|
|
37912
|
+
value: "wizard",
|
|
37913
|
+
className: "flex-1",
|
|
37914
|
+
onClick: function onClick(e) {
|
|
37915
|
+
e.preventDefault();
|
|
37916
|
+
onOpenWizard();
|
|
37917
|
+
},
|
|
37918
|
+
children: "Wizard"
|
|
37679
37919
|
})]
|
|
37680
37920
|
})
|
|
37681
37921
|
})]
|
|
@@ -45608,7 +45848,9 @@ var AppSettingsModal = function AppSettingsModal(_ref) {
|
|
|
45608
45848
|
_ref$onSignOut = _ref.onSignOut,
|
|
45609
45849
|
onSignOut = _ref$onSignOut === void 0 ? null : _ref$onSignOut,
|
|
45610
45850
|
_ref$onProfileUpdated = _ref.onProfileUpdated,
|
|
45611
|
-
onProfileUpdated = _ref$onProfileUpdated === void 0 ? null : _ref$onProfileUpdated
|
|
45851
|
+
onProfileUpdated = _ref$onProfileUpdated === void 0 ? null : _ref$onProfileUpdated,
|
|
45852
|
+
_ref$onOpenWizard = _ref.onOpenWizard,
|
|
45853
|
+
onOpenWizard = _ref$onOpenWizard === void 0 ? null : _ref$onOpenWizard;
|
|
45612
45854
|
var _useState = React.useState(initialSection),
|
|
45613
45855
|
_useState2 = _slicedToArray(_useState, 2),
|
|
45614
45856
|
activeSection = _useState2[0],
|
|
@@ -45693,7 +45935,11 @@ var AppSettingsModal = function AppSettingsModal(_ref) {
|
|
|
45693
45935
|
onCreateAcknowledged: function onCreateAcknowledged() {
|
|
45694
45936
|
return setCreateRequested(false);
|
|
45695
45937
|
},
|
|
45696
|
-
onOpenWorkspace: onOpenWorkspace
|
|
45938
|
+
onOpenWorkspace: onOpenWorkspace,
|
|
45939
|
+
onOpenWizard: onOpenWizard ? function () {
|
|
45940
|
+
setIsOpen(false);
|
|
45941
|
+
onOpenWizard();
|
|
45942
|
+
} : null
|
|
45697
45943
|
}), activeSection === "folders" && /*#__PURE__*/jsxRuntime.jsx(FoldersSection, {
|
|
45698
45944
|
menuItems: menuItems,
|
|
45699
45945
|
workspaces: workspaces,
|
|
@@ -45897,6 +46143,8 @@ var DashCommandPalette = function DashCommandPalette(_ref) {
|
|
|
45897
46143
|
onCreateNewFolder = _ref$onCreateNewFolde === void 0 ? null : _ref$onCreateNewFolde,
|
|
45898
46144
|
_ref$onLoadDashboard = _ref.onLoadDashboard,
|
|
45899
46145
|
onLoadDashboard = _ref$onLoadDashboard === void 0 ? null : _ref$onLoadDashboard,
|
|
46146
|
+
_ref$onOpenWizard = _ref.onOpenWizard,
|
|
46147
|
+
onOpenWizard = _ref$onOpenWizard === void 0 ? null : _ref$onOpenWizard,
|
|
45900
46148
|
_ref$onChangeTheme = _ref.onChangeTheme,
|
|
45901
46149
|
onChangeTheme = _ref$onChangeTheme === void 0 ? null : _ref$onChangeTheme,
|
|
45902
46150
|
_ref$onOpenThemeManag = _ref.onOpenThemeManager,
|
|
@@ -45967,6 +46215,13 @@ var DashCommandPalette = function DashCommandPalette(_ref) {
|
|
|
45967
46215
|
action: function action() {
|
|
45968
46216
|
return onCreateNewFolder && onCreateNewFolder();
|
|
45969
46217
|
}
|
|
46218
|
+
}, matchesQuery("Dashboard Wizard") && {
|
|
46219
|
+
key: "dashboard-wizard",
|
|
46220
|
+
label: "Dashboard Wizard",
|
|
46221
|
+
icon: "wand-magic-sparkles",
|
|
46222
|
+
action: function action() {
|
|
46223
|
+
return onOpenWizard && onOpenWizard();
|
|
46224
|
+
}
|
|
45970
46225
|
}].filter(Boolean);
|
|
45971
46226
|
var showDashboards = dashboardItems.length > 0 || dashboardActions.length > 0;
|
|
45972
46227
|
|
|
@@ -47473,24 +47728,28 @@ var DashboardStageInner = function DashboardStageInner(_ref2) {
|
|
|
47473
47728
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
47474
47729
|
isLayoutPickerOpen = _useState32[0],
|
|
47475
47730
|
setIsLayoutPickerOpen = _useState32[1];
|
|
47476
|
-
|
|
47477
|
-
// Unified App Settings Modal
|
|
47478
47731
|
var _useState33 = React.useState(false),
|
|
47479
47732
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
47480
|
-
|
|
47481
|
-
|
|
47482
|
-
|
|
47733
|
+
isWizardOpen = _useState34[0],
|
|
47734
|
+
setIsWizardOpen = _useState34[1];
|
|
47735
|
+
|
|
47736
|
+
// Unified App Settings Modal
|
|
47737
|
+
var _useState35 = React.useState(false),
|
|
47483
47738
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
47484
|
-
|
|
47485
|
-
|
|
47486
|
-
var _useState37 = React.useState(
|
|
47739
|
+
isAppSettingsOpen = _useState36[0],
|
|
47740
|
+
setIsAppSettingsOpen = _useState36[1];
|
|
47741
|
+
var _useState37 = React.useState("dashboards"),
|
|
47487
47742
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
47488
|
-
|
|
47489
|
-
|
|
47490
|
-
var _useState39 = React.useState(
|
|
47743
|
+
appSettingsInitialSection = _useState38[0],
|
|
47744
|
+
setAppSettingsInitialSection = _useState38[1];
|
|
47745
|
+
var _useState39 = React.useState(null),
|
|
47491
47746
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
47492
|
-
|
|
47493
|
-
|
|
47747
|
+
appSettingsInitialProvider = _useState40[0],
|
|
47748
|
+
setAppSettingsInitialProvider = _useState40[1];
|
|
47749
|
+
var _useState41 = React.useState(false),
|
|
47750
|
+
_useState42 = _slicedToArray(_useState41, 2),
|
|
47751
|
+
appSettingsCreateProvider = _useState42[0],
|
|
47752
|
+
setAppSettingsCreateProvider = _useState42[1];
|
|
47494
47753
|
function openAppSettings() {
|
|
47495
47754
|
var section = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "general";
|
|
47496
47755
|
var providerName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
@@ -48267,6 +48526,13 @@ var DashboardStageInner = function DashboardStageInner(_ref2) {
|
|
|
48267
48526
|
text: "New Dashboard",
|
|
48268
48527
|
onClick: handleClickNewFromEmpty,
|
|
48269
48528
|
size: "sm"
|
|
48529
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, {
|
|
48530
|
+
icon: "wand-magic-sparkles",
|
|
48531
|
+
text: "Wizard",
|
|
48532
|
+
onClick: function onClick() {
|
|
48533
|
+
return setIsWizardOpen(true);
|
|
48534
|
+
},
|
|
48535
|
+
size: "sm"
|
|
48270
48536
|
})]
|
|
48271
48537
|
})
|
|
48272
48538
|
})
|
|
@@ -48306,7 +48572,10 @@ var DashboardStageInner = function DashboardStageInner(_ref2) {
|
|
|
48306
48572
|
authProfile: authProfile,
|
|
48307
48573
|
onSignIn: handleSidebarSignIn,
|
|
48308
48574
|
onSignOut: handleSidebarSignOut,
|
|
48309
|
-
onProfileUpdated: handleProfileUpdated
|
|
48575
|
+
onProfileUpdated: handleProfileUpdated,
|
|
48576
|
+
onOpenWizard: function onOpenWizard() {
|
|
48577
|
+
return setIsWizardOpen(true);
|
|
48578
|
+
}
|
|
48310
48579
|
}), /*#__PURE__*/jsxRuntime.jsx(ThemeManagerModal, {
|
|
48311
48580
|
open: isThemeManagerOpen,
|
|
48312
48581
|
setIsOpen: function setIsOpen() {
|
|
@@ -48334,7 +48603,19 @@ var DashboardStageInner = function DashboardStageInner(_ref2) {
|
|
|
48334
48603
|
onSaveMenuItem: handleSaveNewMenuItem,
|
|
48335
48604
|
appId: credentials === null || credentials === void 0 ? void 0 : credentials.appId,
|
|
48336
48605
|
onReloadWorkspaces: loadWorkspaces,
|
|
48337
|
-
onOpenWorkspace: handleOpenTab
|
|
48606
|
+
onOpenWorkspace: handleOpenTab,
|
|
48607
|
+
onOpenWizard: function onOpenWizard() {
|
|
48608
|
+
return setIsWizardOpen(true);
|
|
48609
|
+
}
|
|
48610
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DashboardWizardModal, {
|
|
48611
|
+
open: isWizardOpen,
|
|
48612
|
+
setIsOpen: setIsWizardOpen,
|
|
48613
|
+
menuItems: menuItems,
|
|
48614
|
+
onSaveMenuItem: handleSaveNewMenuItem,
|
|
48615
|
+
onCreateWorkspace: handleCreateFromTemplate,
|
|
48616
|
+
onOpenDashboard: handleOpenTab,
|
|
48617
|
+
onReloadWorkspaces: loadWorkspaces,
|
|
48618
|
+
appId: credentials === null || credentials === void 0 ? void 0 : credentials.appId
|
|
48338
48619
|
})]
|
|
48339
48620
|
})]
|
|
48340
48621
|
}), !popout && /*#__PURE__*/jsxRuntime.jsx(DashCommandPalette, {
|
|
@@ -48373,6 +48654,9 @@ var DashboardStageInner = function DashboardStageInner(_ref2) {
|
|
|
48373
48654
|
},
|
|
48374
48655
|
onOpenDiscover: function onOpenDiscover() {
|
|
48375
48656
|
return openAppSettings("widgets");
|
|
48657
|
+
},
|
|
48658
|
+
onOpenWizard: function onOpenWizard() {
|
|
48659
|
+
return setIsWizardOpen(true);
|
|
48376
48660
|
}
|
|
48377
48661
|
})]
|
|
48378
48662
|
});
|
|
@@ -49809,6 +50093,7 @@ exports.DashboardMonitor = DashboardMonitor;
|
|
|
49809
50093
|
exports.DashboardPublisher = DashboardPublisher;
|
|
49810
50094
|
exports.DashboardStage = DashboardStage;
|
|
49811
50095
|
exports.DashboardThemeProvider = DashboardThemeProvider;
|
|
50096
|
+
exports.DashboardWizardModal = DashboardWizardModal;
|
|
49812
50097
|
exports.DashboardWrapper = DashboardWrapper;
|
|
49813
50098
|
exports.ElectronDashboardApi = ElectronDashboardApi;
|
|
49814
50099
|
exports.ErrorBoundary = ErrorBoundary;
|