@perses-dev/dashboards 0.0.0-snapshot-time-range-height-80d08fc → 0.0.0-snapshot-embed-import-errors-8906900

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.
Files changed (108) hide show
  1. package/dist/cjs/components/DashboardToolbar/DashboardToolbar.js +19 -5
  2. package/dist/cjs/components/DeletePanelDialog/DeletePanelDialog.js +2 -0
  3. package/dist/cjs/components/DeletePanelGroupDialog/DeletePanelGroupDialog.js +2 -0
  4. package/dist/cjs/components/DiscardChangesConfirmationDialog/DiscardChangesConfirmationDialog.js +74 -0
  5. package/dist/cjs/components/{UnsavedChangesConfirmationDialog → DiscardChangesConfirmationDialog}/index.js +1 -1
  6. package/dist/cjs/components/DownloadButton/DownloadButton.js +2 -8
  7. package/dist/cjs/components/GridLayout/GridTitle.js +38 -22
  8. package/dist/cjs/components/Panel/PanelHeader.js +59 -26
  9. package/dist/cjs/components/PanelDrawer/PanelDrawer.js +29 -8
  10. package/dist/cjs/components/PanelDrawer/PanelEditorForm.js +11 -6
  11. package/dist/cjs/components/TimeRangeControls/TimeRangeControls.js +2 -8
  12. package/dist/cjs/components/ToolbarIconButton/ToolbarIconButton.js +35 -0
  13. package/dist/cjs/components/ToolbarIconButton/index.js +28 -0
  14. package/dist/cjs/components/Variables/VariableEditor.js +19 -3
  15. package/dist/cjs/components/Variables/VariableList.js +1 -1
  16. package/dist/cjs/components/index.js +2 -1
  17. package/dist/cjs/context/DashboardProvider/DashboardProvider.js +2 -0
  18. package/dist/cjs/context/DashboardProvider/dashboard-provider-api.js +10 -1
  19. package/dist/cjs/context/DashboardProvider/discard-changes-dialog-slice.js +33 -0
  20. package/dist/cjs/context/TemplateVariableProvider/TemplateVariableProvider.js +7 -7
  21. package/dist/cjs/views/ViewDashboard/DashboardApp.js +14 -14
  22. package/dist/cjs/views/ViewDashboard/ViewDashboard.js +2 -1
  23. package/dist/components/DashboardToolbar/DashboardToolbar.d.ts +2 -0
  24. package/dist/components/DashboardToolbar/DashboardToolbar.d.ts.map +1 -1
  25. package/dist/components/DashboardToolbar/DashboardToolbar.js +20 -6
  26. package/dist/components/DashboardToolbar/DashboardToolbar.js.map +1 -1
  27. package/dist/components/DeletePanelDialog/DeletePanelDialog.js +2 -0
  28. package/dist/components/DeletePanelDialog/DeletePanelDialog.js.map +1 -1
  29. package/dist/components/DeletePanelGroupDialog/DeletePanelGroupDialog.d.ts.map +1 -1
  30. package/dist/components/DeletePanelGroupDialog/DeletePanelGroupDialog.js +2 -0
  31. package/dist/components/DeletePanelGroupDialog/DeletePanelGroupDialog.js.map +1 -1
  32. package/dist/components/DiscardChangesConfirmationDialog/DiscardChangesConfirmationDialog.d.ts +3 -0
  33. package/dist/components/DiscardChangesConfirmationDialog/DiscardChangesConfirmationDialog.d.ts.map +1 -0
  34. package/dist/components/DiscardChangesConfirmationDialog/DiscardChangesConfirmationDialog.js +63 -0
  35. package/dist/components/DiscardChangesConfirmationDialog/DiscardChangesConfirmationDialog.js.map +1 -0
  36. package/dist/components/DiscardChangesConfirmationDialog/index.d.ts +2 -0
  37. package/dist/components/DiscardChangesConfirmationDialog/index.d.ts.map +1 -0
  38. package/dist/components/{UnsavedChangesConfirmationDialog → DiscardChangesConfirmationDialog}/index.js +1 -1
  39. package/dist/components/{UnsavedChangesConfirmationDialog → DiscardChangesConfirmationDialog}/index.js.map +1 -1
  40. package/dist/components/DownloadButton/DownloadButton.js +2 -8
  41. package/dist/components/DownloadButton/DownloadButton.js.map +1 -1
  42. package/dist/components/GridLayout/GridTitle.d.ts.map +1 -1
  43. package/dist/components/GridLayout/GridTitle.js +38 -22
  44. package/dist/components/GridLayout/GridTitle.js.map +1 -1
  45. package/dist/components/Panel/PanelHeader.d.ts.map +1 -1
  46. package/dist/components/Panel/PanelHeader.js +61 -28
  47. package/dist/components/Panel/PanelHeader.js.map +1 -1
  48. package/dist/components/PanelDrawer/PanelDrawer.d.ts.map +1 -1
  49. package/dist/components/PanelDrawer/PanelDrawer.js +32 -11
  50. package/dist/components/PanelDrawer/PanelDrawer.js.map +1 -1
  51. package/dist/components/PanelDrawer/PanelEditorForm.d.ts +1 -1
  52. package/dist/components/PanelDrawer/PanelEditorForm.d.ts.map +1 -1
  53. package/dist/components/PanelDrawer/PanelEditorForm.js +12 -7
  54. package/dist/components/PanelDrawer/PanelEditorForm.js.map +1 -1
  55. package/dist/components/TimeRangeControls/TimeRangeControls.d.ts.map +1 -1
  56. package/dist/components/TimeRangeControls/TimeRangeControls.js +2 -8
  57. package/dist/components/TimeRangeControls/TimeRangeControls.js.map +1 -1
  58. package/dist/components/ToolbarIconButton/ToolbarIconButton.d.ts +6 -0
  59. package/dist/components/ToolbarIconButton/ToolbarIconButton.d.ts.map +1 -0
  60. package/dist/components/ToolbarIconButton/ToolbarIconButton.js +29 -0
  61. package/dist/components/ToolbarIconButton/ToolbarIconButton.js.map +1 -0
  62. package/dist/components/ToolbarIconButton/index.d.ts +2 -0
  63. package/dist/components/ToolbarIconButton/index.d.ts.map +1 -0
  64. package/dist/components/ToolbarIconButton/index.js +15 -0
  65. package/dist/components/ToolbarIconButton/index.js.map +1 -0
  66. package/dist/components/Variables/VariableEditor.d.ts.map +1 -1
  67. package/dist/components/Variables/VariableEditor.js +19 -3
  68. package/dist/components/Variables/VariableEditor.js.map +1 -1
  69. package/dist/components/Variables/VariableList.d.ts.map +1 -1
  70. package/dist/components/Variables/VariableList.js +1 -1
  71. package/dist/components/Variables/VariableList.js.map +1 -1
  72. package/dist/components/index.d.ts +2 -1
  73. package/dist/components/index.d.ts.map +1 -1
  74. package/dist/components/index.js +2 -1
  75. package/dist/components/index.js.map +1 -1
  76. package/dist/context/DashboardProvider/DashboardProvider.d.ts +2 -1
  77. package/dist/context/DashboardProvider/DashboardProvider.d.ts.map +1 -1
  78. package/dist/context/DashboardProvider/DashboardProvider.js +2 -0
  79. package/dist/context/DashboardProvider/DashboardProvider.js.map +1 -1
  80. package/dist/context/DashboardProvider/dashboard-provider-api.d.ts +5 -0
  81. package/dist/context/DashboardProvider/dashboard-provider-api.d.ts.map +1 -1
  82. package/dist/context/DashboardProvider/dashboard-provider-api.js +8 -0
  83. package/dist/context/DashboardProvider/dashboard-provider-api.js.map +1 -1
  84. package/dist/context/DashboardProvider/discard-changes-dialog-slice.d.ts +15 -0
  85. package/dist/context/DashboardProvider/discard-changes-dialog-slice.d.ts.map +1 -0
  86. package/dist/context/DashboardProvider/discard-changes-dialog-slice.js +27 -0
  87. package/dist/context/DashboardProvider/discard-changes-dialog-slice.js.map +1 -0
  88. package/dist/context/DashboardProvider/index.d.ts +1 -0
  89. package/dist/context/DashboardProvider/index.d.ts.map +1 -1
  90. package/dist/context/DashboardProvider/index.js.map +1 -1
  91. package/dist/context/TemplateVariableProvider/TemplateVariableProvider.js +7 -7
  92. package/dist/context/TemplateVariableProvider/TemplateVariableProvider.js.map +1 -1
  93. package/dist/views/ViewDashboard/DashboardApp.d.ts +1 -0
  94. package/dist/views/ViewDashboard/DashboardApp.d.ts.map +1 -1
  95. package/dist/views/ViewDashboard/DashboardApp.js +16 -16
  96. package/dist/views/ViewDashboard/DashboardApp.js.map +1 -1
  97. package/dist/views/ViewDashboard/ViewDashboard.d.ts +1 -0
  98. package/dist/views/ViewDashboard/ViewDashboard.d.ts.map +1 -1
  99. package/dist/views/ViewDashboard/ViewDashboard.js +2 -1
  100. package/dist/views/ViewDashboard/ViewDashboard.js.map +1 -1
  101. package/package.json +4 -4
  102. package/dist/cjs/components/UnsavedChangesConfirmationDialog/UnsavedChangesConfirmationDialog.js +0 -67
  103. package/dist/components/UnsavedChangesConfirmationDialog/UnsavedChangesConfirmationDialog.d.ts +0 -8
  104. package/dist/components/UnsavedChangesConfirmationDialog/UnsavedChangesConfirmationDialog.d.ts.map +0 -1
  105. package/dist/components/UnsavedChangesConfirmationDialog/UnsavedChangesConfirmationDialog.js +0 -56
  106. package/dist/components/UnsavedChangesConfirmationDialog/UnsavedChangesConfirmationDialog.js.map +0 -1
  107. package/dist/components/UnsavedChangesConfirmationDialog/index.d.ts +0 -2
  108. package/dist/components/UnsavedChangesConfirmationDialog/index.d.ts.map +0 -1
@@ -1,56 +0,0 @@
1
- // Copyright 2022 The Perses Authors
2
- // Licensed under the Apache License, Version 2.0 (the "License");
3
- // you may not use this file except in compliance with the License.
4
- // You may obtain a copy of the License at
5
- //
6
- // http://www.apache.org/licenses/LICENSE-2.0
7
- //
8
- // Unless required by applicable law or agreed to in writing, software
9
- // distributed under the License is distributed on an "AS IS" BASIS,
10
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
- // See the License for the specific language governing permissions and
12
- // limitations under the License.
13
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
- import { IconButton, Dialog, DialogTitle, DialogContent, DialogActions, Button } from '@mui/material';
15
- import CloseIcon from 'mdi-material-ui/Close';
16
- export const UnsavedChangesConfirmationDialog = ({ isOpen , onSave , onClose })=>{
17
- return /*#__PURE__*/ _jsxs(Dialog, {
18
- open: isOpen,
19
- children: [
20
- /*#__PURE__*/ _jsx(DialogTitle, {
21
- children: "Unsaved Changes"
22
- }),
23
- /*#__PURE__*/ _jsx(IconButton, {
24
- "aria-label": "Close",
25
- onClick: onClose,
26
- sx: (theme)=>({
27
- position: 'absolute',
28
- top: theme.spacing(0.5),
29
- right: theme.spacing(0.5)
30
- }),
31
- children: /*#__PURE__*/ _jsx(CloseIcon, {})
32
- }),
33
- /*#__PURE__*/ _jsx(DialogContent, {
34
- sx: {
35
- width: '500px'
36
- },
37
- children: "You have unsaved changes in this dashboard. Would you like to save these changes?"
38
- }),
39
- /*#__PURE__*/ _jsxs(DialogActions, {
40
- children: [
41
- /*#__PURE__*/ _jsx(Button, {
42
- variant: "contained",
43
- onClick: onSave,
44
- children: "Save"
45
- }),
46
- /*#__PURE__*/ _jsx(Button, {
47
- onClick: onClose,
48
- children: "Cancel"
49
- })
50
- ]
51
- })
52
- ]
53
- });
54
- };
55
-
56
- //# sourceMappingURL=UnsavedChangesConfirmationDialog.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/UnsavedChangesConfirmationDialog/UnsavedChangesConfirmationDialog.tsx"],"sourcesContent":["// Copyright 2022 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { IconButton, Dialog, DialogTitle, DialogContent, DialogActions, Button } from '@mui/material';\nimport CloseIcon from 'mdi-material-ui/Close';\nexport interface UnsavedChangesConfirmationDialogProps {\n isOpen: boolean;\n onSave: () => void;\n onClose: () => void;\n}\n\nexport const UnsavedChangesConfirmationDialog = ({\n isOpen,\n onSave,\n onClose,\n}: UnsavedChangesConfirmationDialogProps) => {\n return (\n <Dialog open={isOpen}>\n <DialogTitle>Unsaved Changes</DialogTitle>\n <IconButton\n aria-label=\"Close\"\n onClick={onClose}\n sx={(theme) => ({\n position: 'absolute',\n top: theme.spacing(0.5),\n right: theme.spacing(0.5),\n })}\n >\n <CloseIcon />\n </IconButton>\n <DialogContent sx={{ width: '500px' }}>\n You have unsaved changes in this dashboard. Would you like to save these changes?\n </DialogContent>\n <DialogActions>\n <Button variant=\"contained\" onClick={onSave}>\n Save\n </Button>\n <Button onClick={onClose}>Cancel</Button>\n </DialogActions>\n </Dialog>\n );\n};\n"],"names":["IconButton","Dialog","DialogTitle","DialogContent","DialogActions","Button","CloseIcon","UnsavedChangesConfirmationDialog","isOpen","onSave","onClose","open","aria-label","onClick","sx","theme","position","top","spacing","right","width","variant"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC;AAAA,SAASA,UAAU,EAAEC,MAAM,EAAEC,WAAW,EAAEC,aAAa,EAAEC,aAAa,EAAEC,MAAM,QAAQ,eAAe,CAAC;AACtG,OAAOC,SAAS,MAAM,uBAAuB,CAAC;AAO9C,OAAO,MAAMC,gCAAgC,GAAG,CAAC,EAC/CC,MAAM,CAAA,EACNC,MAAM,CAAA,EACNC,OAAO,CAAA,EAC+B,GAAK;IAC3C,qBACE,MAACT,MAAM;QAACU,IAAI,EAAEH,MAAM;;0BAClB,KAACN,WAAW;0BAAC,iBAAe;cAAc;0BAC1C,KAACF,UAAU;gBACTY,YAAU,EAAC,OAAO;gBAClBC,OAAO,EAAEH,OAAO;gBAChBI,EAAE,EAAE,CAACC,KAAK,GAAM,CAAA;wBACdC,QAAQ,EAAE,UAAU;wBACpBC,GAAG,EAAEF,KAAK,CAACG,OAAO,CAAC,GAAG,CAAC;wBACvBC,KAAK,EAAEJ,KAAK,CAACG,OAAO,CAAC,GAAG,CAAC;qBAC1B,CAAA,AAAC;0BAEF,cAAA,KAACZ,SAAS,KAAG;cACF;0BACb,KAACH,aAAa;gBAACW,EAAE,EAAE;oBAAEM,KAAK,EAAE,OAAO;iBAAE;0BAAE,mFAEvC;cAAgB;0BAChB,MAAChB,aAAa;;kCACZ,KAACC,MAAM;wBAACgB,OAAO,EAAC,WAAW;wBAACR,OAAO,EAAEJ,MAAM;kCAAE,MAE7C;sBAAS;kCACT,KAACJ,MAAM;wBAACQ,OAAO,EAAEH,OAAO;kCAAE,QAAM;sBAAS;;cAC3B;;MACT,CACT;AACJ,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './UnsavedChangesConfirmationDialog';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/UnsavedChangesConfirmationDialog/index.ts"],"names":[],"mappings":"AAaA,cAAc,oCAAoC,CAAC"}