@splunk/dashboard-toolbar 29.5.0 → 29.5.1
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/CollapsibleToolbar.js +9 -0
- package/CollapsibleToolbar.js.map +4 -4
- package/IconButton.js +16 -4
- package/IconButton.js.map +4 -4
- package/buttons/Charts.js +26 -4
- package/buttons/Charts.js.map +4 -4
- package/buttons/Config.js +19 -7
- package/buttons/Config.js.map +4 -4
- package/buttons/ContentExport.js +19 -7
- package/buttons/ContentExport.js.map +4 -4
- package/buttons/Data.js +19 -7
- package/buttons/Data.js.map +4 -4
- package/buttons/EmptyVisualization.js +19 -7
- package/buttons/EmptyVisualization.js.map +4 -4
- package/buttons/Fullscreen.js +19 -7
- package/buttons/Fullscreen.js.map +4 -4
- package/buttons/HelpButton.js +25 -3
- package/buttons/HelpButton.js.map +4 -4
- package/buttons/IconGallery.js +29 -7
- package/buttons/IconGallery.js.map +4 -4
- package/buttons/Image.js +19 -7
- package/buttons/Image.js.map +4 -4
- package/buttons/ImageGallery.js +29 -7
- package/buttons/ImageGallery.js.map +4 -4
- package/buttons/Inputs.js +28 -9
- package/buttons/Inputs.js.map +4 -4
- package/buttons/Markdown.js +19 -7
- package/buttons/Markdown.js.map +4 -4
- package/buttons/Redo.js +19 -7
- package/buttons/Redo.js.map +4 -4
- package/buttons/Shapes.js +31 -9
- package/buttons/Shapes.js.map +4 -4
- package/buttons/Source.js +19 -7
- package/buttons/Source.js.map +4 -4
- package/buttons/Undo.js +19 -7
- package/buttons/Undo.js.map +4 -4
- package/buttons/index.js +66 -61
- package/buttons/index.js.map +2 -2
- package/groups/ControlGroup.js +83 -33
- package/groups/ControlGroup.js.map +3 -3
- package/groups/EditingGroup.js +73 -30
- package/groups/EditingGroup.js.map +3 -3
- package/groups/EditorGroup.js +83 -33
- package/groups/EditorGroup.js.map +3 -3
- package/groups/EditorsControlGroup.js +93 -48
- package/groups/EditorsControlGroup.js.map +3 -3
- package/groups/HistoryGroup.js +85 -34
- package/groups/HistoryGroup.js.map +3 -3
- package/groups/SidebarControlGroup.js +91 -47
- package/groups/SidebarControlGroup.js.map +3 -3
- package/groups/VisualizationGroup.js +68 -45
- package/groups/VisualizationGroup.js.map +3 -3
- package/groups/index.js +86 -64
- package/groups/index.js.map +3 -3
- package/index.js +81 -76
- package/index.js.map +4 -4
- package/module/CollapsibleToolbar.js +2 -2
- package/module/IconButton.js +1 -1
- package/module/buttons/Charts.js +3 -3
- package/module/buttons/Config.js +2 -2
- package/module/buttons/ContentExport.js +2 -2
- package/module/buttons/Data.js +2 -2
- package/module/buttons/EmptyVisualization.js +2 -2
- package/module/buttons/Fullscreen.js +2 -2
- package/module/buttons/HelpButton.js +3 -3
- package/module/buttons/IconGallery.js +3 -3
- package/module/buttons/Image.js +2 -2
- package/module/buttons/ImageGallery.js +3 -3
- package/module/buttons/Inputs.js +3 -3
- package/module/buttons/Markdown.js +2 -2
- package/module/buttons/Redo.js +2 -2
- package/module/buttons/Shapes.js +3 -3
- package/module/buttons/Source.js +2 -2
- package/module/buttons/Undo.js +2 -2
- package/module/buttons/index.js +19 -19
- package/module/chunks/{chunk-PFKZCA73.js → chunk-5IFDFRGD.js} +2 -2
- package/module/chunks/{chunk-LEEGJTZT.js → chunk-6RWX6HA7.js} +5 -5
- package/module/chunks/chunk-6RWX6HA7.js.map +7 -0
- package/module/chunks/chunk-BDFUA6X7.js +44 -0
- package/module/chunks/chunk-BDFUA6X7.js.map +7 -0
- package/module/chunks/{chunk-C7TXRFKI.js → chunk-DM27U6AI.js} +5 -5
- package/module/chunks/chunk-DM27U6AI.js.map +7 -0
- package/module/chunks/{chunk-DQPRUHAE.js → chunk-DQZGTQ2Z.js} +5 -5
- package/module/chunks/chunk-DQZGTQ2Z.js.map +7 -0
- package/module/chunks/{chunk-WLLGLYOO.js → chunk-E3IBH4RN.js} +2 -2
- package/module/chunks/{chunk-COV2OGVE.js → chunk-E7EUH33R.js} +5 -5
- package/module/chunks/{chunk-IWFH2PBS.js → chunk-EUFLSUPO.js} +5 -5
- package/module/chunks/chunk-EUFLSUPO.js.map +7 -0
- package/module/chunks/{chunk-YDVHOHRE.js → chunk-FMSKWHRK.js} +8 -8
- package/module/chunks/{chunk-NNGZB36V.js → chunk-HMQY5XLG.js} +5 -5
- package/module/chunks/chunk-HMQY5XLG.js.map +7 -0
- package/module/chunks/{chunk-PFHSMP6M.js → chunk-KDWTCNVM.js} +5 -5
- package/module/chunks/chunk-KDWTCNVM.js.map +7 -0
- package/module/chunks/{chunk-GD75KGSO.js → chunk-KMWIB6DC.js} +3 -3
- package/module/chunks/{chunk-XIT2UXG2.js → chunk-P5YTSVEV.js} +5 -5
- package/module/chunks/chunk-P5YTSVEV.js.map +7 -0
- package/module/chunks/{chunk-CMTNN2GG.js → chunk-PUNHFOXB.js} +2 -2
- package/module/chunks/{chunk-CS7TUOVQ.js → chunk-QH53L2XQ.js} +4 -4
- package/module/chunks/{chunk-S6LWLEQ4.js → chunk-RS2VRN2X.js} +5 -5
- package/module/chunks/chunk-RS2VRN2X.js.map +7 -0
- package/module/chunks/{chunk-FK3PXQBK.js → chunk-RZRB3MPG.js} +20 -36
- package/module/chunks/chunk-RZRB3MPG.js.map +7 -0
- package/module/chunks/{chunk-OC4QIR2D.js → chunk-RZWTF3BK.js} +18 -3
- package/module/chunks/chunk-RZWTF3BK.js.map +7 -0
- package/module/chunks/{chunk-5DYPICGQ.js → chunk-SJNT4MK5.js} +5 -5
- package/module/chunks/chunk-SJNT4MK5.js.map +7 -0
- package/module/chunks/{chunk-EZS4433X.js → chunk-TQIO5WSS.js} +5 -5
- package/module/chunks/{chunk-EZS4433X.js.map → chunk-TQIO5WSS.js.map} +2 -2
- package/module/chunks/{chunk-JW4TMLMZ.js → chunk-U5YCUIDK.js} +5 -5
- package/module/chunks/chunk-U5YCUIDK.js.map +7 -0
- package/module/chunks/{chunk-NGEW5KQQ.js → chunk-UNYHHA4F.js} +5 -5
- package/module/chunks/{chunk-NGEW5KQQ.js.map → chunk-UNYHHA4F.js.map} +2 -2
- package/module/chunks/{chunk-GPLJNXKE.js → chunk-UUMIWWJE.js} +5 -5
- package/module/chunks/chunk-UUMIWWJE.js.map +7 -0
- package/module/chunks/{chunk-F3BPX66Z.js → chunk-VGHYIDZA.js} +2 -2
- package/module/chunks/{chunk-53UCFOI6.js → chunk-YH3LWJKQ.js} +6 -6
- package/module/chunks/chunk-YH3LWJKQ.js.map +7 -0
- package/module/chunks/{chunk-J7M7QRC7.js → chunk-YMIK47DX.js} +5 -5
- package/module/chunks/chunk-YMIK47DX.js.map +7 -0
- package/module/chunks/{chunk-NSCDFVBR.js → chunk-ZEITW5IL.js} +5 -5
- package/module/chunks/chunk-ZEITW5IL.js.map +7 -0
- package/module/groups/ControlGroup.js +20 -20
- package/module/groups/EditingGroup.js +20 -20
- package/module/groups/EditorGroup.js +20 -20
- package/module/groups/EditorsControlGroup.js +20 -20
- package/module/groups/HistoryGroup.js +20 -20
- package/module/groups/SidebarControlGroup.js +20 -20
- package/module/groups/VisualizationGroup.js +20 -20
- package/module/groups/index.js +26 -26
- package/module/index.js +27 -27
- package/package.json +15 -15
- package/types/IconButton.d.ts +2 -1
- package/types/IconButton.d.ts.map +1 -1
- package/types/buttons/Config.d.ts.map +1 -1
- package/types/buttons/ContentExport.d.ts.map +1 -1
- package/types/buttons/Data.d.ts.map +1 -1
- package/types/buttons/EmptyVisualization.d.ts.map +1 -1
- package/types/buttons/Fullscreen.d.ts.map +1 -1
- package/types/buttons/IconGallery.d.ts.map +1 -1
- package/types/buttons/Image.d.ts.map +1 -1
- package/types/buttons/Markdown.d.ts.map +1 -1
- package/types/buttons/Redo.d.ts.map +1 -1
- package/types/buttons/Source.d.ts.map +1 -1
- package/types/buttons/Undo.d.ts.map +1 -1
- package/types/buttons/tokenManager/TokenManager.d.ts.map +1 -1
- package/types/components/StyledButton.d.ts +10 -1
- package/types/components/StyledButton.d.ts.map +1 -1
- package/module/chunks/chunk-53UCFOI6.js.map +0 -7
- package/module/chunks/chunk-5DYPICGQ.js.map +0 -7
- package/module/chunks/chunk-C7TXRFKI.js.map +0 -7
- package/module/chunks/chunk-DQPRUHAE.js.map +0 -7
- package/module/chunks/chunk-EZJSIK72.js +0 -21
- package/module/chunks/chunk-EZJSIK72.js.map +0 -7
- package/module/chunks/chunk-FK3PXQBK.js.map +0 -7
- package/module/chunks/chunk-GPLJNXKE.js.map +0 -7
- package/module/chunks/chunk-IWFH2PBS.js.map +0 -7
- package/module/chunks/chunk-J7M7QRC7.js.map +0 -7
- package/module/chunks/chunk-JW4TMLMZ.js.map +0 -7
- package/module/chunks/chunk-LEEGJTZT.js.map +0 -7
- package/module/chunks/chunk-NNGZB36V.js.map +0 -7
- package/module/chunks/chunk-NSCDFVBR.js.map +0 -7
- package/module/chunks/chunk-OC4QIR2D.js.map +0 -7
- package/module/chunks/chunk-PFHSMP6M.js.map +0 -7
- package/module/chunks/chunk-S6LWLEQ4.js.map +0 -7
- package/module/chunks/chunk-XIT2UXG2.js.map +0 -7
- /package/module/chunks/{chunk-PFKZCA73.js.map → chunk-5IFDFRGD.js.map} +0 -0
- /package/module/chunks/{chunk-WLLGLYOO.js.map → chunk-E3IBH4RN.js.map} +0 -0
- /package/module/chunks/{chunk-COV2OGVE.js.map → chunk-E7EUH33R.js.map} +0 -0
- /package/module/chunks/{chunk-YDVHOHRE.js.map → chunk-FMSKWHRK.js.map} +0 -0
- /package/module/chunks/{chunk-GD75KGSO.js.map → chunk-KMWIB6DC.js.map} +0 -0
- /package/module/chunks/{chunk-CMTNN2GG.js.map → chunk-PUNHFOXB.js.map} +0 -0
- /package/module/chunks/{chunk-CS7TUOVQ.js.map → chunk-QH53L2XQ.js.map} +0 -0
- /package/module/chunks/{chunk-F3BPX66Z.js.map → chunk-VGHYIDZA.js.map} +0 -0
|
@@ -3,10 +3,10 @@ SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
|
3
3
|
in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
4
4
|
import {
|
|
5
5
|
CollapsibleToolbar_default
|
|
6
|
-
} from "./chunks/chunk-
|
|
6
|
+
} from "./chunks/chunk-E3IBH4RN.js";
|
|
7
7
|
import "./chunks/chunk-VITMNUKV.js";
|
|
8
8
|
import "./chunks/chunk-JIIPUMEA.js";
|
|
9
|
-
import "./chunks/chunk-
|
|
9
|
+
import "./chunks/chunk-RZWTF3BK.js";
|
|
10
10
|
import "./chunks/chunk-RFWUOGJ3.js";
|
|
11
11
|
import "./chunks/chunk-C3GFY32L.js";
|
|
12
12
|
import "./chunks/chunk-ZV4AQ5DL.js";
|
package/module/IconButton.js
CHANGED
package/module/buttons/Charts.js
CHANGED
|
@@ -4,14 +4,14 @@ in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
|
4
4
|
import {
|
|
5
5
|
Charts_default,
|
|
6
6
|
getVisualizationListFromTaxonomy
|
|
7
|
-
} from "../chunks/chunk-
|
|
7
|
+
} from "../chunks/chunk-YH3LWJKQ.js";
|
|
8
8
|
import "../chunks/chunk-6NLVLUCU.js";
|
|
9
9
|
import "../chunks/chunk-GMMN7SOC.js";
|
|
10
|
-
import "../chunks/chunk-
|
|
10
|
+
import "../chunks/chunk-BDFUA6X7.js";
|
|
11
11
|
import "../chunks/chunk-4SWPK2TU.js";
|
|
12
12
|
import "../chunks/chunk-VITMNUKV.js";
|
|
13
13
|
import "../chunks/chunk-JIIPUMEA.js";
|
|
14
|
-
import "../chunks/chunk-
|
|
14
|
+
import "../chunks/chunk-RZWTF3BK.js";
|
|
15
15
|
import "../chunks/chunk-RFWUOGJ3.js";
|
|
16
16
|
import "../chunks/chunk-C3GFY32L.js";
|
|
17
17
|
import "../chunks/chunk-ZV4AQ5DL.js";
|
package/module/buttons/Config.js
CHANGED
|
@@ -3,10 +3,10 @@ SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
|
3
3
|
in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
4
4
|
import {
|
|
5
5
|
Config_default
|
|
6
|
-
} from "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-P5YTSVEV.js";
|
|
7
7
|
import "../chunks/chunk-VITMNUKV.js";
|
|
8
8
|
import "../chunks/chunk-JIIPUMEA.js";
|
|
9
|
-
import "../chunks/chunk-
|
|
9
|
+
import "../chunks/chunk-RZWTF3BK.js";
|
|
10
10
|
import "../chunks/chunk-RFWUOGJ3.js";
|
|
11
11
|
import "../chunks/chunk-C3GFY32L.js";
|
|
12
12
|
import "../chunks/chunk-XWRMHLAP.js";
|
|
@@ -3,10 +3,10 @@ SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
|
3
3
|
in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
4
4
|
import {
|
|
5
5
|
ContentExport_default
|
|
6
|
-
} from "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-TQIO5WSS.js";
|
|
7
7
|
import "../chunks/chunk-KGSEQL62.js";
|
|
8
8
|
import "../chunks/chunk-JIIPUMEA.js";
|
|
9
|
-
import "../chunks/chunk-
|
|
9
|
+
import "../chunks/chunk-RZWTF3BK.js";
|
|
10
10
|
import "../chunks/chunk-RFWUOGJ3.js";
|
|
11
11
|
import "../chunks/chunk-C3GFY32L.js";
|
|
12
12
|
import "../chunks/chunk-XWRMHLAP.js";
|
package/module/buttons/Data.js
CHANGED
|
@@ -3,10 +3,10 @@ SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
|
3
3
|
in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
4
4
|
import {
|
|
5
5
|
Data_default
|
|
6
|
-
} from "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-ZEITW5IL.js";
|
|
7
7
|
import "../chunks/chunk-VITMNUKV.js";
|
|
8
8
|
import "../chunks/chunk-JIIPUMEA.js";
|
|
9
|
-
import "../chunks/chunk-
|
|
9
|
+
import "../chunks/chunk-RZWTF3BK.js";
|
|
10
10
|
import "../chunks/chunk-RFWUOGJ3.js";
|
|
11
11
|
import "../chunks/chunk-C3GFY32L.js";
|
|
12
12
|
import "../chunks/chunk-ZV4AQ5DL.js";
|
|
@@ -3,10 +3,10 @@ SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
|
3
3
|
in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
4
4
|
import {
|
|
5
5
|
EmptyVisualization_default
|
|
6
|
-
} from "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-6RWX6HA7.js";
|
|
7
7
|
import "../chunks/chunk-RKJ7RKNK.js";
|
|
8
8
|
import "../chunks/chunk-JIIPUMEA.js";
|
|
9
|
-
import "../chunks/chunk-
|
|
9
|
+
import "../chunks/chunk-RZWTF3BK.js";
|
|
10
10
|
import "../chunks/chunk-RFWUOGJ3.js";
|
|
11
11
|
import "../chunks/chunk-C3GFY32L.js";
|
|
12
12
|
import "../chunks/chunk-XWRMHLAP.js";
|
|
@@ -3,9 +3,9 @@ SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
|
3
3
|
in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
4
4
|
import {
|
|
5
5
|
Fullscreen_default
|
|
6
|
-
} from "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-UNYHHA4F.js";
|
|
7
7
|
import "../chunks/chunk-JIIPUMEA.js";
|
|
8
|
-
import "../chunks/chunk-
|
|
8
|
+
import "../chunks/chunk-RZWTF3BK.js";
|
|
9
9
|
import "../chunks/chunk-RFWUOGJ3.js";
|
|
10
10
|
import "../chunks/chunk-C3GFY32L.js";
|
|
11
11
|
import "../chunks/chunk-ZV4AQ5DL.js";
|
|
@@ -3,12 +3,12 @@ SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
|
3
3
|
in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
4
4
|
import {
|
|
5
5
|
HelpButton_default
|
|
6
|
-
} from "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-DQZGTQ2Z.js";
|
|
7
7
|
import "../chunks/chunk-GMMN7SOC.js";
|
|
8
|
-
import "../chunks/chunk-
|
|
8
|
+
import "../chunks/chunk-BDFUA6X7.js";
|
|
9
9
|
import "../chunks/chunk-4SWPK2TU.js";
|
|
10
10
|
import "../chunks/chunk-JIIPUMEA.js";
|
|
11
|
-
import "../chunks/chunk-
|
|
11
|
+
import "../chunks/chunk-RZWTF3BK.js";
|
|
12
12
|
import "../chunks/chunk-RFWUOGJ3.js";
|
|
13
13
|
import "../chunks/chunk-C3GFY32L.js";
|
|
14
14
|
import "../chunks/chunk-XWRMHLAP.js";
|
|
@@ -3,12 +3,12 @@ SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
|
3
3
|
in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
4
4
|
import {
|
|
5
5
|
IconGallery_default
|
|
6
|
-
} from "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-YMIK47DX.js";
|
|
7
7
|
import "../chunks/chunk-6NLVLUCU.js";
|
|
8
|
-
import "../chunks/chunk-
|
|
8
|
+
import "../chunks/chunk-BDFUA6X7.js";
|
|
9
9
|
import "../chunks/chunk-4SWPK2TU.js";
|
|
10
10
|
import "../chunks/chunk-JIIPUMEA.js";
|
|
11
|
-
import "../chunks/chunk-
|
|
11
|
+
import "../chunks/chunk-RZWTF3BK.js";
|
|
12
12
|
import "../chunks/chunk-RFWUOGJ3.js";
|
|
13
13
|
import "../chunks/chunk-C3GFY32L.js";
|
|
14
14
|
import "../chunks/chunk-XWRMHLAP.js";
|
package/module/buttons/Image.js
CHANGED
|
@@ -3,10 +3,10 @@ SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
|
3
3
|
in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
4
4
|
import {
|
|
5
5
|
Image_default
|
|
6
|
-
} from "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-U5YCUIDK.js";
|
|
7
7
|
import "../chunks/chunk-I6AJG47U.js";
|
|
8
8
|
import "../chunks/chunk-JIIPUMEA.js";
|
|
9
|
-
import "../chunks/chunk-
|
|
9
|
+
import "../chunks/chunk-RZWTF3BK.js";
|
|
10
10
|
import "../chunks/chunk-RFWUOGJ3.js";
|
|
11
11
|
import "../chunks/chunk-C3GFY32L.js";
|
|
12
12
|
import "../chunks/chunk-XWRMHLAP.js";
|
|
@@ -3,13 +3,13 @@ SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
|
3
3
|
in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
4
4
|
import {
|
|
5
5
|
ImageGallery_default
|
|
6
|
-
} from "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-EUFLSUPO.js";
|
|
7
7
|
import "../chunks/chunk-I6AJG47U.js";
|
|
8
8
|
import "../chunks/chunk-6NLVLUCU.js";
|
|
9
|
-
import "../chunks/chunk-
|
|
9
|
+
import "../chunks/chunk-BDFUA6X7.js";
|
|
10
10
|
import "../chunks/chunk-4SWPK2TU.js";
|
|
11
11
|
import "../chunks/chunk-JIIPUMEA.js";
|
|
12
|
-
import "../chunks/chunk-
|
|
12
|
+
import "../chunks/chunk-RZWTF3BK.js";
|
|
13
13
|
import "../chunks/chunk-RFWUOGJ3.js";
|
|
14
14
|
import "../chunks/chunk-C3GFY32L.js";
|
|
15
15
|
import "../chunks/chunk-XWRMHLAP.js";
|
package/module/buttons/Inputs.js
CHANGED
|
@@ -3,12 +3,12 @@ SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
|
3
3
|
in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
4
4
|
import {
|
|
5
5
|
Inputs_default
|
|
6
|
-
} from "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-DM27U6AI.js";
|
|
7
7
|
import "../chunks/chunk-GMMN7SOC.js";
|
|
8
|
-
import "../chunks/chunk-
|
|
8
|
+
import "../chunks/chunk-BDFUA6X7.js";
|
|
9
9
|
import "../chunks/chunk-4SWPK2TU.js";
|
|
10
10
|
import "../chunks/chunk-JIIPUMEA.js";
|
|
11
|
-
import "../chunks/chunk-
|
|
11
|
+
import "../chunks/chunk-RZWTF3BK.js";
|
|
12
12
|
import "../chunks/chunk-RFWUOGJ3.js";
|
|
13
13
|
import "../chunks/chunk-C3GFY32L.js";
|
|
14
14
|
import "../chunks/chunk-XWRMHLAP.js";
|
|
@@ -3,9 +3,9 @@ SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
|
3
3
|
in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
4
4
|
import {
|
|
5
5
|
Markdown_default
|
|
6
|
-
} from "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-RS2VRN2X.js";
|
|
7
7
|
import "../chunks/chunk-JIIPUMEA.js";
|
|
8
|
-
import "../chunks/chunk-
|
|
8
|
+
import "../chunks/chunk-RZWTF3BK.js";
|
|
9
9
|
import "../chunks/chunk-RFWUOGJ3.js";
|
|
10
10
|
import "../chunks/chunk-C3GFY32L.js";
|
|
11
11
|
import "../chunks/chunk-XWRMHLAP.js";
|
package/module/buttons/Redo.js
CHANGED
|
@@ -3,9 +3,9 @@ SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
|
3
3
|
in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
4
4
|
import {
|
|
5
5
|
Redo_default
|
|
6
|
-
} from "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-HMQY5XLG.js";
|
|
7
7
|
import "../chunks/chunk-JIIPUMEA.js";
|
|
8
|
-
import "../chunks/chunk-
|
|
8
|
+
import "../chunks/chunk-RZWTF3BK.js";
|
|
9
9
|
import "../chunks/chunk-RFWUOGJ3.js";
|
|
10
10
|
import "../chunks/chunk-C3GFY32L.js";
|
|
11
11
|
import "../chunks/chunk-XWRMHLAP.js";
|
package/module/buttons/Shapes.js
CHANGED
|
@@ -3,14 +3,14 @@ SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
|
3
3
|
in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
4
4
|
import {
|
|
5
5
|
Shapes_default
|
|
6
|
-
} from "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-UUMIWWJE.js";
|
|
7
7
|
import "../chunks/chunk-RKJ7RKNK.js";
|
|
8
8
|
import "../chunks/chunk-SFYQQARV.js";
|
|
9
9
|
import "../chunks/chunk-GMMN7SOC.js";
|
|
10
|
-
import "../chunks/chunk-
|
|
10
|
+
import "../chunks/chunk-BDFUA6X7.js";
|
|
11
11
|
import "../chunks/chunk-4SWPK2TU.js";
|
|
12
12
|
import "../chunks/chunk-JIIPUMEA.js";
|
|
13
|
-
import "../chunks/chunk-
|
|
13
|
+
import "../chunks/chunk-RZWTF3BK.js";
|
|
14
14
|
import "../chunks/chunk-RFWUOGJ3.js";
|
|
15
15
|
import "../chunks/chunk-C3GFY32L.js";
|
|
16
16
|
import "../chunks/chunk-XWRMHLAP.js";
|
package/module/buttons/Source.js
CHANGED
|
@@ -3,10 +3,10 @@ SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
|
3
3
|
in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
4
4
|
import {
|
|
5
5
|
Source_default
|
|
6
|
-
} from "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-SJNT4MK5.js";
|
|
7
7
|
import "../chunks/chunk-VITMNUKV.js";
|
|
8
8
|
import "../chunks/chunk-JIIPUMEA.js";
|
|
9
|
-
import "../chunks/chunk-
|
|
9
|
+
import "../chunks/chunk-RZWTF3BK.js";
|
|
10
10
|
import "../chunks/chunk-RFWUOGJ3.js";
|
|
11
11
|
import "../chunks/chunk-C3GFY32L.js";
|
|
12
12
|
import "../chunks/chunk-XWRMHLAP.js";
|
package/module/buttons/Undo.js
CHANGED
|
@@ -3,9 +3,9 @@ SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
|
3
3
|
in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
4
4
|
import {
|
|
5
5
|
Undo_default
|
|
6
|
-
} from "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-KDWTCNVM.js";
|
|
7
7
|
import "../chunks/chunk-JIIPUMEA.js";
|
|
8
|
-
import "../chunks/chunk-
|
|
8
|
+
import "../chunks/chunk-RZWTF3BK.js";
|
|
9
9
|
import "../chunks/chunk-RFWUOGJ3.js";
|
|
10
10
|
import "../chunks/chunk-C3GFY32L.js";
|
|
11
11
|
import "../chunks/chunk-XWRMHLAP.js";
|
package/module/buttons/index.js
CHANGED
|
@@ -6,50 +6,50 @@ import {
|
|
|
6
6
|
Display,
|
|
7
7
|
TokenManager,
|
|
8
8
|
Zoom
|
|
9
|
-
} from "../chunks/chunk-
|
|
9
|
+
} from "../chunks/chunk-RZRB3MPG.js";
|
|
10
10
|
import {
|
|
11
11
|
Source_default
|
|
12
|
-
} from "../chunks/chunk-
|
|
12
|
+
} from "../chunks/chunk-SJNT4MK5.js";
|
|
13
13
|
import {
|
|
14
14
|
Undo_default
|
|
15
|
-
} from "../chunks/chunk-
|
|
15
|
+
} from "../chunks/chunk-KDWTCNVM.js";
|
|
16
16
|
import {
|
|
17
17
|
IconGallery_default
|
|
18
|
-
} from "../chunks/chunk-
|
|
18
|
+
} from "../chunks/chunk-YMIK47DX.js";
|
|
19
19
|
import {
|
|
20
20
|
Image_default
|
|
21
|
-
} from "../chunks/chunk-
|
|
21
|
+
} from "../chunks/chunk-U5YCUIDK.js";
|
|
22
22
|
import {
|
|
23
23
|
ImageGallery_default
|
|
24
|
-
} from "../chunks/chunk-
|
|
24
|
+
} from "../chunks/chunk-EUFLSUPO.js";
|
|
25
25
|
import "../chunks/chunk-I6AJG47U.js";
|
|
26
26
|
import {
|
|
27
27
|
Inputs_default
|
|
28
|
-
} from "../chunks/chunk-
|
|
28
|
+
} from "../chunks/chunk-DM27U6AI.js";
|
|
29
29
|
import {
|
|
30
30
|
Markdown_default
|
|
31
|
-
} from "../chunks/chunk-
|
|
31
|
+
} from "../chunks/chunk-RS2VRN2X.js";
|
|
32
32
|
import {
|
|
33
33
|
ModeSwitch_default
|
|
34
34
|
} from "../chunks/chunk-NTQBWCZU.js";
|
|
35
35
|
import {
|
|
36
36
|
Redo_default
|
|
37
|
-
} from "../chunks/chunk-
|
|
37
|
+
} from "../chunks/chunk-HMQY5XLG.js";
|
|
38
38
|
import {
|
|
39
39
|
Shapes_default
|
|
40
|
-
} from "../chunks/chunk-
|
|
40
|
+
} from "../chunks/chunk-UUMIWWJE.js";
|
|
41
41
|
import {
|
|
42
42
|
Config_default
|
|
43
|
-
} from "../chunks/chunk-
|
|
43
|
+
} from "../chunks/chunk-P5YTSVEV.js";
|
|
44
44
|
import {
|
|
45
45
|
ContentExport_default
|
|
46
|
-
} from "../chunks/chunk-
|
|
46
|
+
} from "../chunks/chunk-TQIO5WSS.js";
|
|
47
47
|
import {
|
|
48
48
|
Data_default
|
|
49
|
-
} from "../chunks/chunk-
|
|
49
|
+
} from "../chunks/chunk-ZEITW5IL.js";
|
|
50
50
|
import {
|
|
51
51
|
EmptyVisualization_default
|
|
52
|
-
} from "../chunks/chunk-
|
|
52
|
+
} from "../chunks/chunk-6RWX6HA7.js";
|
|
53
53
|
import "../chunks/chunk-RKJ7RKNK.js";
|
|
54
54
|
import {
|
|
55
55
|
ExportDashboardButton_default
|
|
@@ -57,26 +57,26 @@ import {
|
|
|
57
57
|
import "../chunks/chunk-KGSEQL62.js";
|
|
58
58
|
import {
|
|
59
59
|
Fullscreen_default
|
|
60
|
-
} from "../chunks/chunk-
|
|
60
|
+
} from "../chunks/chunk-UNYHHA4F.js";
|
|
61
61
|
import {
|
|
62
62
|
GridLineSwitch_default
|
|
63
63
|
} from "../chunks/chunk-MUXHFVOC.js";
|
|
64
64
|
import {
|
|
65
65
|
HelpButton_default
|
|
66
|
-
} from "../chunks/chunk-
|
|
66
|
+
} from "../chunks/chunk-DQZGTQ2Z.js";
|
|
67
67
|
import "../chunks/chunk-IHFVJPGQ.js";
|
|
68
68
|
import "../chunks/chunk-WSTQTULM.js";
|
|
69
69
|
import "../chunks/chunk-SFYQQARV.js";
|
|
70
70
|
import {
|
|
71
71
|
Charts_default
|
|
72
|
-
} from "../chunks/chunk-
|
|
72
|
+
} from "../chunks/chunk-YH3LWJKQ.js";
|
|
73
73
|
import "../chunks/chunk-6NLVLUCU.js";
|
|
74
74
|
import "../chunks/chunk-GMMN7SOC.js";
|
|
75
|
-
import "../chunks/chunk-
|
|
75
|
+
import "../chunks/chunk-BDFUA6X7.js";
|
|
76
76
|
import "../chunks/chunk-4SWPK2TU.js";
|
|
77
77
|
import "../chunks/chunk-VITMNUKV.js";
|
|
78
78
|
import "../chunks/chunk-JIIPUMEA.js";
|
|
79
|
-
import "../chunks/chunk-
|
|
79
|
+
import "../chunks/chunk-RZWTF3BK.js";
|
|
80
80
|
import "../chunks/chunk-RFWUOGJ3.js";
|
|
81
81
|
import "../chunks/chunk-C3GFY32L.js";
|
|
82
82
|
import "../chunks/chunk-ZV4AQ5DL.js";
|
|
@@ -3,7 +3,7 @@ SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
|
3
3
|
in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
4
4
|
import {
|
|
5
5
|
Zoom
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RZRB3MPG.js";
|
|
7
7
|
import {
|
|
8
8
|
ModeSwitch_default
|
|
9
9
|
} from "./chunk-NTQBWCZU.js";
|
|
@@ -45,4 +45,4 @@ var EditingGroup_default = EditingGroup;
|
|
|
45
45
|
export {
|
|
46
46
|
EditingGroup_default
|
|
47
47
|
};
|
|
48
|
-
//# sourceMappingURL=chunk-
|
|
48
|
+
//# sourceMappingURL=chunk-5IFDFRGD.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
IconButton_default,
|
|
13
13
|
prepareIcon
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RZWTF3BK.js";
|
|
15
15
|
import {
|
|
16
16
|
react_default,
|
|
17
17
|
react_exports
|
|
@@ -22,8 +22,7 @@ import {
|
|
|
22
22
|
|
|
23
23
|
// src/buttons/EmptyVisualization.tsx
|
|
24
24
|
var icon = prepareIcon({
|
|
25
|
-
Icon: Square_default
|
|
26
|
-
screenReaderContent: (0, i18n_exports._)("Add rectangle")
|
|
25
|
+
Icon: Square_default
|
|
27
26
|
});
|
|
28
27
|
var EmptyVisualization = ({ dashboardApi }) => {
|
|
29
28
|
const handleClick = (0, react_exports.useCallback)(() => __async(null, null, function* () {
|
|
@@ -45,7 +44,8 @@ var EmptyVisualization = ({ dashboardApi }) => {
|
|
|
45
44
|
{
|
|
46
45
|
testLabel: "empty-viz-button",
|
|
47
46
|
onClick: handleClick,
|
|
48
|
-
icon
|
|
47
|
+
icon,
|
|
48
|
+
tooltipContent: (0, i18n_exports._)("Add rectangle")
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
51
|
};
|
|
@@ -54,4 +54,4 @@ var EmptyVisualization_default = EmptyVisualization;
|
|
|
54
54
|
export {
|
|
55
55
|
EmptyVisualization_default
|
|
56
56
|
};
|
|
57
|
-
//# sourceMappingURL=chunk-
|
|
57
|
+
//# sourceMappingURL=chunk-6RWX6HA7.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/buttons/EmptyVisualization.tsx"],
|
|
4
|
+
"sourcesContent": ["import React, { useCallback } from 'react';\n\nimport { _ } from '@splunk/ui-utils/i18n';\nimport BoxUnchecked from '@splunk/react-icons/Square';\n\nimport IconButton, { prepareIcon } from '../IconButton';\nimport type { ToolbarButtonProps } from '../types/common';\n\nconst icon = prepareIcon({\n Icon: BoxUnchecked,\n});\n\n/**\n * Button that creates a empty viz\n */\nconst EmptyVisualization = ({ dashboardApi }: ToolbarButtonProps) => {\n const handleClick = useCallback(async () => {\n dashboardApi?.createVisualization({\n visualizationDefinition: {\n type: 'splunk.rectangle',\n options: {\n fillColor: 'transparent',\n strokeColor: 'transparent',\n },\n },\n });\n\n dashboardApi?.openPanel({\n activePanel: 'config',\n });\n }, [dashboardApi]);\n\n return (\n <IconButton\n testLabel=\"empty-viz-button\"\n onClick={handleClick}\n icon={icon}\n tooltipContent={_('Add rectangle')}\n />\n );\n};\n\nexport default EmptyVisualization;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAM,OAAO,YAAY;AAAA,EACrB,MAAM;AACV,CAAC;AAKD,IAAM,qBAAqB,CAAC,EAAE,aAAa,MAA0B;AACjE,QAAM,kBAAc,2BAAY,MAAY;AACxC,iDAAc,oBAAoB;AAAA,MAC9B,yBAAyB;AAAA,QACrB,MAAM;AAAA,QACN,SAAS;AAAA,UACL,WAAW;AAAA,UACX,aAAa;AAAA,QACjB;AAAA,MACJ;AAAA,IACJ;AAEA,iDAAc,UAAU;AAAA,MACpB,aAAa;AAAA,IACjB;AAAA,EACJ,IAAG,CAAC,YAAY,CAAC;AAEjB,SACI;AAAA,IAAC;AAAA;AAAA,MACG,WAAU;AAAA,MACV,SAAS;AAAA,MACT;AAAA,MACA,oBAAgB,gBAAE,eAAe;AAAA;AAAA,EACrC;AAER;AAEA,IAAO,6BAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* Copyright © 2020 Splunk Inc.
|
|
2
|
+
SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
3
|
+
in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
4
|
+
import {
|
|
5
|
+
Tooltip_default,
|
|
6
|
+
Tooltip_exports
|
|
7
|
+
} from "./chunk-RZWTF3BK.js";
|
|
8
|
+
import {
|
|
9
|
+
Button_default,
|
|
10
|
+
Button_exports
|
|
11
|
+
} from "./chunk-RFWUOGJ3.js";
|
|
12
|
+
import {
|
|
13
|
+
react_default,
|
|
14
|
+
react_exports
|
|
15
|
+
} from "./chunk-XWRMHLAP.js";
|
|
16
|
+
import {
|
|
17
|
+
styled_components_default,
|
|
18
|
+
styled_components_exports
|
|
19
|
+
} from "./chunk-V3YGNO27.js";
|
|
20
|
+
import {
|
|
21
|
+
__objRest,
|
|
22
|
+
__spreadProps,
|
|
23
|
+
__spreadValues
|
|
24
|
+
} from "./chunk-VQIRZ53C.js";
|
|
25
|
+
|
|
26
|
+
// src/components/StyledButton.tsx
|
|
27
|
+
var BaseDropdownButton = styled_components_default(Button_default)`
|
|
28
|
+
max-width: '50px';
|
|
29
|
+
`;
|
|
30
|
+
var StyledDropdownButton = react_default.forwardRef((_a, ref) => {
|
|
31
|
+
var _b = _a, { tooltipContent } = _b, props = __objRest(_b, ["tooltipContent"]);
|
|
32
|
+
const button = /* @__PURE__ */ react_default.createElement(
|
|
33
|
+
BaseDropdownButton,
|
|
34
|
+
__spreadProps(__spreadValues({}, props), {
|
|
35
|
+
elementRef: ref
|
|
36
|
+
})
|
|
37
|
+
);
|
|
38
|
+
return tooltipContent ? /* @__PURE__ */ react_default.createElement(Tooltip_default, { contentRelationship: "label", content: tooltipContent }, button) : button;
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export {
|
|
42
|
+
StyledDropdownButton
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=chunk-BDFUA6X7.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/StyledButton.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport Button, { type ButtonPropsBase } from '@splunk/react-ui/Button';\nimport Tooltip from '@splunk/react-ui/Tooltip';\nimport styled from 'styled-components';\n\nconst BaseDropdownButton = styled(Button)`\n max-width: '50px';\n`;\n\nexport interface StyledDropdownButtonProps\n extends Pick<ButtonPropsBase, 'appearance' | 'icon' | 'disabled'> {\n children?: React.ReactNode;\n className?: string;\n 'data-clickable'?: boolean;\n 'data-test'?: string;\n tooltipContent?: string;\n}\n\nexport const StyledDropdownButton = React.forwardRef<\n HTMLButtonElement,\n StyledDropdownButtonProps\n>(({ tooltipContent, ...props }, ref): JSX.Element => {\n const button = (\n <BaseDropdownButton\n {...props}\n elementRef={ref as React.RefObject<HTMLButtonElement>}\n />\n );\n\n return tooltipContent ? (\n <Tooltip contentRelationship=\"label\" content={tooltipContent}>\n {button}\n </Tooltip>\n ) : (\n button\n );\n});\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAM,qBAAqB,0BAAO,cAAM;AAAA;AAAA;AAajC,IAAM,uBAAuB,cAAM,WAGxC,CAAC,IAA8B,QAAqB;AAAnD,eAAE,iBArBL,IAqBG,IAAqB,kBAArB,IAAqB,CAAnB;AACD,QAAM,SACF;AAAA,IAAC;AAAA,qCACO,QADP;AAAA,MAEG,YAAY;AAAA;AAAA,EAChB;AAGJ,SAAO,iBACH,4CAAC,mBAAQ,qBAAoB,SAAQ,SAAS,kBACzC,MACL,IAEA;AAER,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-GMMN7SOC.js";
|
|
8
8
|
import {
|
|
9
9
|
StyledDropdownButton
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BDFUA6X7.js";
|
|
11
11
|
import {
|
|
12
12
|
Dropdown_default,
|
|
13
13
|
Dropdown_exports,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-JIIPUMEA.js";
|
|
19
19
|
import {
|
|
20
20
|
prepareIcon
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-RZWTF3BK.js";
|
|
22
22
|
import {
|
|
23
23
|
Item_default
|
|
24
24
|
} from "./chunk-C3GFY32L.js";
|
|
@@ -71,7 +71,6 @@ var focusToggleReasons = [
|
|
|
71
71
|
var DEFAULT_PRESET_MAP = Object.freeze({});
|
|
72
72
|
var addInputIcon = prepareIcon({
|
|
73
73
|
Icon: SlidersTripleHorizontal_default,
|
|
74
|
-
screenReaderContent: (0, i18n_exports._)("Add input"),
|
|
75
74
|
isMenu: true
|
|
76
75
|
});
|
|
77
76
|
var ButtonToggle = /* @__PURE__ */ react_default.createElement(
|
|
@@ -80,7 +79,8 @@ var ButtonToggle = /* @__PURE__ */ react_default.createElement(
|
|
|
80
79
|
appearance: "subtle",
|
|
81
80
|
"data-clickable": true,
|
|
82
81
|
"data-test": "inputs-button",
|
|
83
|
-
icon: addInputIcon
|
|
82
|
+
icon: addInputIcon,
|
|
83
|
+
tooltipContent: (0, i18n_exports._)("Add input")
|
|
84
84
|
}
|
|
85
85
|
);
|
|
86
86
|
var onCreateInputClickFactory = ({
|
|
@@ -185,4 +185,4 @@ export {
|
|
|
185
185
|
lodash_exports,
|
|
186
186
|
Inputs_default
|
|
187
187
|
};
|
|
188
|
-
//# sourceMappingURL=chunk-
|
|
188
|
+
//# sourceMappingURL=chunk-DM27U6AI.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["esm-externals:lodash", "esm-externals:@splunk/react-icons/SlidersTripleHorizontal", "esm-externals:@splunk/dashboard-definition", "../../src/buttons/Inputs.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as defaultImport from \"lodash\";\nexport * from \"lodash\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n", "import * as defaultImport from \"@splunk/react-icons/SlidersTripleHorizontal\";\nexport * from \"@splunk/react-icons/SlidersTripleHorizontal\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n", "import * as defaultImport from \"@splunk/dashboard-definition\";\nexport * from \"@splunk/dashboard-definition\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n", "import React, { useMemo } from 'react';\nimport { each } from 'lodash';\nimport { _ } from '@splunk/ui-utils/i18n';\nimport Dropdown, {\n type DropdownPossibleCloseReason,\n} from '@splunk/react-ui/Dropdown';\nimport Menu from '@splunk/react-ui/Menu';\nimport Input from '@splunk/react-icons/SlidersTripleHorizontal';\nimport { DashboardDefinition } from '@splunk/dashboard-definition';\nimport type {\n PresetMap,\n InputConfig,\n DashboardApi,\n} from '@splunk/dashboard-types';\n\nimport { StyledDropdownButton } from '../components/StyledButton';\nimport useDropdown from '../hooks/useDropdown';\nimport ToolbarItem from '../Item';\nimport { prepareIcon } from '../IconButton';\nimport type { ToolbarButtonProps } from '../types/common';\n\nconst focusToggleReasons: DropdownPossibleCloseReason[] = [\n 'escapeKey',\n 'tabKey',\n];\n\nconst DEFAULT_PRESET_MAP = Object.freeze({} as PresetMap);\nconst addInputIcon = prepareIcon({\n Icon: Input,\n isMenu: true,\n});\n\nconst ButtonToggle = (\n <StyledDropdownButton\n appearance=\"subtle\"\n data-clickable\n data-test=\"inputs-button\"\n icon={addInputIcon}\n tooltipContent={_('Add input')}\n />\n);\n\ninterface AddInputFactoryArgs {\n type: string;\n defaultConfig: {\n options?: Record<string, unknown>;\n [x: string]: unknown;\n };\n tokenPrefix: string;\n showToken: boolean;\n dashboardApi?: DashboardApi;\n}\n\n// click handler factory\nconst onCreateInputClickFactory =\n ({\n type,\n defaultConfig,\n tokenPrefix,\n showToken,\n dashboardApi,\n }: AddInputFactoryArgs) =>\n () => {\n if (!dashboardApi) {\n return;\n }\n\n const newConfig = {\n ...defaultConfig,\n type,\n options: {\n ...defaultConfig.options,\n },\n };\n // showToken flags whether or not the input has a token assigned on creation\n if (showToken) {\n newConfig.options.token = DashboardDefinition.fromJSON(\n dashboardApi?.getDefinition()\n ).nextTokenId(tokenPrefix);\n }\n dashboardApi.addInput(newConfig);\n dashboardApi.openPanel({ activePanel: 'config' });\n };\n\n/**\n * Add Input button that has a dropdown menu.\n */\nconst Inputs = ({\n dashboardApi,\n preset = DEFAULT_PRESET_MAP,\n}: ToolbarButtonProps) => {\n const { handleRequestClose, handleRequestOpen, isOpen } = useDropdown({\n isContentClickClose: true,\n });\n\n const InputTypeButtons = useMemo(() => {\n const buttons = [];\n\n const inputs = preset?.inputs as Record<\n string,\n {\n config: InputConfig;\n }\n >;\n\n each(inputs, (InputImpl, type) => {\n const {\n baseShape = {},\n label = _(`${type} Input`),\n description = '',\n tokenPrefix = 'token',\n includeInToolbar = true,\n icon: Icon = Input,\n // showToken flags whether or not the input has a token assigned on creation\n showToken = true,\n } = InputImpl.config || {};\n\n if (!includeInToolbar) {\n return;\n }\n\n const handleClick = onCreateInputClickFactory({\n type,\n defaultConfig: baseShape,\n tokenPrefix,\n showToken,\n dashboardApi,\n });\n\n const inputIcon = <Icon width=\"24px\" height=\"24px\" />;\n\n buttons.push(\n <Menu.Item\n data-test={`add-${type}-button`}\n data-test-clickable\n onClick={handleClick}\n startAdornment={inputIcon}\n description={description}\n key={`add-${type}-button`}\n >\n {label}\n </Menu.Item>\n );\n });\n\n if (buttons.length === 0) {\n buttons.push(\n <Menu.Item\n data-test=\"no-inputs-in-preset\"\n key=\"no-inputs-in-preset\"\n disabled\n >\n {_('No Inputs')}\n </Menu.Item>\n );\n }\n\n return buttons;\n }, [preset, dashboardApi]);\n\n return (\n <ToolbarItem>\n <Dropdown\n focusToggleReasons={focusToggleReasons}\n onRequestClose={handleRequestClose}\n onRequestOpen={handleRequestOpen}\n open={isOpen}\n toggle={ButtonToggle}\n >\n <Menu>{InputTypeButtons}</Menu>\n </Dropdown>\n </ToolbarItem>\n );\n};\n\nexport default Inputs;\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["defaultImport", "defaultImport"]
|
|
7
|
+
}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-GMMN7SOC.js";
|
|
8
8
|
import {
|
|
9
9
|
StyledDropdownButton
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BDFUA6X7.js";
|
|
11
11
|
import {
|
|
12
12
|
Dropdown_default,
|
|
13
13
|
Dropdown_exports,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-JIIPUMEA.js";
|
|
19
19
|
import {
|
|
20
20
|
prepareIcon
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-RZWTF3BK.js";
|
|
22
22
|
import {
|
|
23
23
|
Item_default
|
|
24
24
|
} from "./chunk-C3GFY32L.js";
|
|
@@ -44,7 +44,6 @@ var QuestionCircle_default = "default" in defaultImport ? defaultImport.default
|
|
|
44
44
|
// src/buttons/HelpButton.tsx
|
|
45
45
|
var HelpIcon = prepareIcon({
|
|
46
46
|
Icon: QuestionCircle_default,
|
|
47
|
-
screenReaderContent: (0, i18n_exports._)("Help links"),
|
|
48
47
|
isMenu: true
|
|
49
48
|
});
|
|
50
49
|
var ButtonToggle = /* @__PURE__ */ react_default.createElement(
|
|
@@ -53,7 +52,8 @@ var ButtonToggle = /* @__PURE__ */ react_default.createElement(
|
|
|
53
52
|
appearance: "subtle",
|
|
54
53
|
"data-clickable": true,
|
|
55
54
|
"data-test": "help-button",
|
|
56
|
-
icon: HelpIcon
|
|
55
|
+
icon: HelpIcon,
|
|
56
|
+
tooltipContent: (0, i18n_exports._)("Help links")
|
|
57
57
|
}
|
|
58
58
|
);
|
|
59
59
|
var HelpButton = ({ helpLinks = [] }) => {
|
|
@@ -107,4 +107,4 @@ var HelpButton_default = HelpButton;
|
|
|
107
107
|
export {
|
|
108
108
|
HelpButton_default
|
|
109
109
|
};
|
|
110
|
-
//# sourceMappingURL=chunk-
|
|
110
|
+
//# sourceMappingURL=chunk-DQZGTQ2Z.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["esm-externals:@splunk/react-icons/QuestionCircle", "../../src/buttons/HelpButton.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as defaultImport from \"@splunk/react-icons/QuestionCircle\";\nexport * from \"@splunk/react-icons/QuestionCircle\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n", "import React, { useMemo } from 'react';\nimport Help from '@splunk/react-icons/QuestionCircle';\nimport Dropdown from '@splunk/react-ui/Dropdown';\nimport Menu from '@splunk/react-ui/Menu';\nimport { _ } from '@splunk/ui-utils/i18n';\nimport ToolbarItem from '../Item';\nimport useDropdown from '../hooks/useDropdown';\nimport type { ToolbarButtonProps } from '../types/common';\nimport { prepareIcon } from '../IconButton';\nimport { StyledDropdownButton } from '../components/StyledButton';\n\nexport interface ToolbarHelpLink {\n label: string;\n description?: string;\n url: string;\n}\n\ninterface HelpProps extends ToolbarButtonProps {\n helpLinks?: ToolbarHelpLink[];\n}\n\nconst HelpIcon = prepareIcon({\n Icon: Help,\n isMenu: true,\n});\n\nconst ButtonToggle = (\n <StyledDropdownButton\n appearance=\"subtle\"\n data-clickable\n data-test=\"help-button\"\n icon={HelpIcon}\n tooltipContent={_('Help links')}\n />\n);\n\n/**\n * Help button which expands dropdown full of links\n */\nconst HelpButton = ({ helpLinks = [] }: HelpProps) => {\n const { handleRequestClose, handleRequestOpen, isOpen } = useDropdown({\n isContentClickClose: true,\n });\n\n const HelpLinks = useMemo(() => {\n if (helpLinks.length === 0) {\n return [\n <Menu.Item\n data-test=\"no-links-provided\"\n key=\"no-links-provided\"\n disabled\n >\n {_('No Links')}\n </Menu.Item>,\n ];\n }\n\n return helpLinks.map((link: ToolbarHelpLink) => {\n const { label = '', description = '', url } = link;\n const key = label.replaceAll(/\\s/g, '');\n\n return (\n <Menu.Item\n data-test=\"help-link\"\n data-test-clickable\n to={url}\n description={description}\n key={`help-link-${key}`}\n openInNewContext\n >\n {label}\n </Menu.Item>\n );\n });\n }, [helpLinks]);\n\n return (\n <ToolbarItem>\n <Dropdown\n onRequestClose={handleRequestClose}\n onRequestOpen={handleRequestOpen}\n open={isOpen}\n toggle={ButtonToggle}\n >\n <Menu>{HelpLinks}</Menu>\n </Dropdown>\n </ToolbarItem>\n );\n};\n\nexport default HelpButton;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AACA;AADA,YAAY,mBAAmB;AAC/B,qCAAc;AACd,IAAO,yBAAS,aAAa,gBAA8B,wBAAU;;;ACmBrE,IAAM,WAAW,YAAY;AAAA,EACzB,MAAM;AAAA,EACN,QAAQ;AACZ,CAAC;AAED,IAAM,eACF;AAAA,EAAC;AAAA;AAAA,IACG,YAAW;AAAA,IACX,kBAAc;AAAA,IACd,aAAU;AAAA,IACV,MAAM;AAAA,IACN,oBAAgB,gBAAE,YAAY;AAAA;AAClC;AAMJ,IAAM,aAAa,CAAC,EAAE,YAAY,CAAC,EAAE,MAAiB;AAClD,QAAM,EAAE,oBAAoB,mBAAmB,OAAO,IAAI,oBAAY;AAAA,IAClE,qBAAqB;AAAA,EACzB,CAAC;AAED,QAAM,gBAAY,uBAAQ,MAAM;AAC5B,QAAI,UAAU,WAAW,GAAG;AACxB,aAAO;AAAA,QACH;AAAA,UAAC,aAAK;AAAA,UAAL;AAAA,YACG,aAAU;AAAA,YACV,KAAI;AAAA,YACJ,UAAQ;AAAA;AAAA,cAEP,gBAAE,UAAU;AAAA,QACjB;AAAA,MACJ;AAAA,IACJ;AAEA,WAAO,UAAU,IAAI,CAAC,SAA0B;AAC5C,YAAM,EAAE,QAAQ,IAAI,cAAc,IAAI,IAAI,IAAI;AAC9C,YAAM,MAAM,MAAM,WAAW,OAAO,EAAE;AAEtC,aACI;AAAA,QAAC,aAAK;AAAA,QAAL;AAAA,UACG,aAAU;AAAA,UACV,uBAAmB;AAAA,UACnB,IAAI;AAAA,UACJ;AAAA,UACA,KAAK,aAAa,GAAG;AAAA,UACrB,kBAAgB;AAAA;AAAA,QAEf;AAAA,MACL;AAAA,IAER,CAAC;AAAA,EACL,GAAG,CAAC,SAAS,CAAC;AAEd,SACI,4CAAC,oBACG;AAAA,IAAC;AAAA;AAAA,MACG,gBAAgB;AAAA,MAChB,eAAe;AAAA,MACf,MAAM;AAAA,MACN,QAAQ;AAAA;AAAA,IAER,4CAAC,oBAAM,SAAU;AAAA,EACrB,CACJ;AAER;AAEA,IAAO,qBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
ScreenReaderContent_default,
|
|
12
12
|
ScreenReaderContent_exports,
|
|
13
13
|
iconSize
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RZWTF3BK.js";
|
|
15
15
|
import {
|
|
16
16
|
Button_default,
|
|
17
17
|
Button_exports
|
|
@@ -183,4 +183,4 @@ var CollapsibleToolbar_default = CollapsibleToolbar;
|
|
|
183
183
|
export {
|
|
184
184
|
CollapsibleToolbar_default
|
|
185
185
|
};
|
|
186
|
-
//# sourceMappingURL=chunk-
|
|
186
|
+
//# sourceMappingURL=chunk-E3IBH4RN.js.map
|