@elyra/canvas 13.45.0 → 13.45.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.
@@ -2185,6 +2185,11 @@ export declare class CanvasController {
2185
2185
  * https://elyra-ai.github.io/canvas/03.04-canvas-controller/#palette-methods_1
2186
2186
  */
2187
2187
 
2188
+ /**
2189
+ * Toggles the palette between open and closed
2190
+ */
2191
+ togglePalette(): void;
2192
+
2188
2193
  /**
2189
2194
  * Opens the palette
2190
2195
  */
@@ -2203,55 +2208,24 @@ export declare class CanvasController {
2203
2208
  isPaletteOpen(): boolean;
2204
2209
 
2205
2210
  /**
2206
- * ## Context menu methods
2207
- * https://elyra-ai.github.io/canvas/03.04-canvas-controller/#context-menu-methods
2208
- */
2209
-
2210
- /**
2211
- * Opens the context menu or the context toolbar if config property
2212
- * enableContextToolbar is set to true.
2213
- * @param menuDef - the definition of the context menu or context toolbar
2214
- * @param source - additional information about the menu
2215
- */
2216
- openContextMenu(
2217
- menuDef: ContextMenuEntry[],
2218
- source?: {
2219
- cmPos?: {
2220
- x: ViewportCoordVal;
2221
- y: ViewportCoordVal;
2222
- }
2223
- }
2224
- ): void;
2225
-
2226
- /**
2227
- * Closes the context menu
2228
- */
2229
- closeContextMenu(): void;
2230
-
2231
- /**
2232
- * ## Notification panel methods
2233
- * https://elyra-ai.github.io/canvas/03.04-canvas-controller/#notification-panel-methods
2234
- */
2235
-
2236
- /**
2237
- * Opens the notification panel
2211
+ * Left-flyout methods
2212
+ * https://elyra-ai.github.io/canvas/03.04-canvas-controller/#left-flyout-methods
2238
2213
  */
2239
- openNotificationPanel(): void;
2240
2214
 
2241
2215
  /**
2242
- * Closes the notification panel
2216
+ * @returns a boolean to indicate if the left-flyout is open or not
2243
2217
  */
2244
- closeNotificationPanel(): void;
2218
+ isLeftFlyoutOpen(): boolean;
2245
2219
 
2246
2220
  /**
2247
- * Either opens or closes the notification panel based on its current status
2221
+ * Right-flyout methods
2222
+ * https://elyra-ai.github.io/canvas/03.04-canvas-controller/#right-flyout-methods
2248
2223
  */
2249
- toggleNotificationPanel(): void;
2250
2224
 
2251
2225
  /**
2252
- * Right flyout methods
2253
- * https://elyra-ai.github.io/canvas/03.04-canvas-controller/#right-flyout-methods
2226
+ * @returns a boolean to indicate if the right flyout is open or not
2254
2227
  */
2228
+ isRightFlyoutOpen(): boolean;
2255
2229
 
2256
2230
  /**
2257
2231
  * Sets the width for the right flyout
@@ -2267,11 +2241,6 @@ export declare class CanvasController {
2267
2241
  width: number
2268
2242
  ): void;
2269
2243
 
2270
- /**
2271
- * @returns a boolean to indicate if the right flyout is open or not
2272
- */
2273
- isRightFlyoutOpen(): boolean;
2274
-
2275
2244
  /**
2276
2245
  * Top panel methods
2277
2246
  * https://elyra-ai.github.io/canvas/03.04-canvas-controller/#top-panel-methods
@@ -2302,6 +2271,53 @@ export declare class CanvasController {
2302
2271
  height: number
2303
2272
  ): void;
2304
2273
 
2274
+ /**
2275
+ * ## Context menu methods
2276
+ * https://elyra-ai.github.io/canvas/03.04-canvas-controller/#context-menu-methods
2277
+ */
2278
+
2279
+ /**
2280
+ * Opens the context menu or the context toolbar if config property
2281
+ * enableContextToolbar is set to true.
2282
+ * @param menuDef - the definition of the context menu or context toolbar
2283
+ * @param source - additional information about the menu
2284
+ */
2285
+ openContextMenu(
2286
+ menuDef: ContextMenuEntry[],
2287
+ source?: {
2288
+ cmPos?: {
2289
+ x: ViewportCoordVal;
2290
+ y: ViewportCoordVal;
2291
+ }
2292
+ }
2293
+ ): void;
2294
+
2295
+ /**
2296
+ * Closes the context menu
2297
+ */
2298
+ closeContextMenu(): void;
2299
+
2300
+ /**
2301
+ * ## Notification panel methods
2302
+ * https://elyra-ai.github.io/canvas/03.04-canvas-controller/#notification-panel-methods
2303
+ */
2304
+
2305
+ /**
2306
+ * Opens the notification panel
2307
+ */
2308
+ openNotificationPanel(): void;
2309
+
2310
+ /**
2311
+ * Closes the notification panel
2312
+ */
2313
+ closeNotificationPanel(): void;
2314
+
2315
+ /**
2316
+ * Either opens or closes the notification panel based on its current status
2317
+ */
2318
+ toggleNotificationPanel(): void;
2319
+
2320
+
2305
2321
  /**
2306
2322
  * ## Canvas/pipeline navigation methods
2307
2323
  * https://elyra-ai.github.io/canvas/03.04-canvas-controller/#canvaspipeline-navigation-methods