@i2analyze/notebook-sdk 1.8.0-dev.9 → 1.8.0

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/README.md CHANGED
@@ -8,6 +8,7 @@ This npm package provides the JavaScript library for developing plug-ins and a t
8
8
 
9
9
  | `@i2analyze/notebook-sdk` version | i2 Analyze version |
10
10
  | --------------------------------- | ------------------ |
11
+ | 1.8.\* | 4.4.6.\* and later |
11
12
  | 1.7.\* | 4.4.5.\* and later |
12
13
  | 1.6.\* | 4.4.4.5 and later |
13
14
  | 1.5.\* | 4.4.4.0 to 4.4.4.4 |
@@ -697,6 +697,14 @@ export declare namespace app {
697
697
  * @i2since 1.2
698
698
  */
699
699
  export interface IEdgeEditor extends IElementEditorBase {
700
+ /**
701
+ * Sets or resets the width of the edge.
702
+ *
703
+ * @param width - The width to set, or undefined to reset the width to 1.
704
+ * @returns The edge, with its width set to the specified value.
705
+ * @i2since 1.8
706
+ */
707
+ setWidth(width: number | undefined): this;
700
708
  }
701
709
  /**
702
710
  * A set of methods for modifying the contents and position of a node group.
@@ -749,6 +757,14 @@ export declare namespace app {
749
757
  * @i2since 1.8
750
758
  */
751
759
  setImage(href: string | undefined, description?: string): this;
760
+ /**
761
+ * Sets whether the node group is minimized, so nodes within the group are hidden, or maximized where they are shown.
762
+ *
763
+ * @param isMinimized - `true` to minimize the group, `false` to maximize it.
764
+ * @returns The node group, with its minimized state set to the specified value.
765
+ * @i2since 1.8
766
+ */
767
+ setIsMinimized(isMinimized: boolean): this;
752
768
  /**
753
769
  * Adds nodes to the group.
754
770
  * @param nodes - The nodes to add to the group.
@@ -2468,13 +2484,31 @@ export declare namespace commands {
2468
2484
  * A common specifier for a tab in the application ribbon.
2469
2485
  * @i2since 1.7
2470
2486
  */
2471
- export type TabSpecifier = RibbonTabId | IRibbonTabActionArea | IHomeTabActionArea;
2487
+ export type TabSpecifier = RibbonTabId | IRibbonTabActionArea | IHomeTabActionArea | ICollectTabActionArea | IAnalyzeTabActionArea | IDisseminateTabActionArea;
2472
2488
  /**
2473
2489
  * An area that represents the **Home** tab in the application ribbon, which contains system groups.
2474
2490
  * @i2since 1.6
2475
2491
  */
2476
2492
  export interface IHomeTabActionArea extends IActionArea<IHomeTabSystemGroups> {
2477
2493
  }
2494
+ /**
2495
+ * An area that represents the **Collect** tab in the application ribbon, which contains system groups.
2496
+ * @i2since 1.8
2497
+ */
2498
+ export interface ICollectTabActionArea extends IActionArea<ICollectTabSystemGroups> {
2499
+ }
2500
+ /**
2501
+ * An area that represents the **Analyze** tab in the application ribbon, which contains system groups.
2502
+ * @i2since 1.8
2503
+ */
2504
+ export interface IAnalyzeTabActionArea extends IActionArea<IAnalyzeTabSystemGroups> {
2505
+ }
2506
+ /**
2507
+ * An area that represents the **Disseminate** tab in the application ribbon, which contains system groups.
2508
+ * @i2since 1.8
2509
+ */
2510
+ export interface IDisseminateTabActionArea extends IActionArea<IDisseminateTabSystemGroups> {
2511
+ }
2478
2512
  /**
2479
2513
  * An area that represents a custom tab in the application ribbon.
2480
2514
  * @i2since 1.6
@@ -2491,6 +2525,21 @@ export declare namespace commands {
2491
2525
  * @i2since 1.0
2492
2526
  */
2493
2527
  readonly homeTab: IHomeTabActionArea;
2528
+ /**
2529
+ * Gets the area that represents the **Collect** tab in the application ribbon.
2530
+ * @i2since 1.8
2531
+ */
2532
+ readonly collectTab: ICollectTabActionArea;
2533
+ /**
2534
+ * Gets the area that represents the **Analyze** tab in the application ribbon.
2535
+ * @i2since 1.8
2536
+ */
2537
+ readonly analyzeTab: IAnalyzeTabActionArea;
2538
+ /**
2539
+ * Gets the area that represents the **Disseminate** tab in the application ribbon.
2540
+ * @i2since 1.8
2541
+ */
2542
+ readonly disseminateTab: IDisseminateTabActionArea;
2494
2543
  /**
2495
2544
  * Adds a new tab to the application ribbon.
2496
2545
  * @param config - The information necessary for creating the tab.
@@ -2581,6 +2630,16 @@ export declare namespace commands {
2581
2630
  * @i2since 1.6
2582
2631
  */
2583
2632
  readonly downloadRecords: CommandId;
2633
+ /**
2634
+ * Gets the identifier of the system command that enables inline editing for the selected element's label.
2635
+ * @i2since 1.8
2636
+ */
2637
+ readonly editElementLabel: CommandId;
2638
+ /**
2639
+ * Gets the identifier of the system command that enables inline editing for the selected group's label.
2640
+ * @i2since 1.8
2641
+ */
2642
+ readonly editGroupLabel: CommandId;
2584
2643
  /**
2585
2644
  * Gets the identifier of the system command that performs a one-level expand operation on the current selection.
2586
2645
  * @i2since 1.1
@@ -2616,6 +2675,33 @@ export declare namespace commands {
2616
2675
  * @i2since 1.0
2617
2676
  */
2618
2677
  readonly layoutPeacock: CommandId;
2678
+ /**
2679
+ * Gets the identifier of the system command that performs a circular layout.
2680
+ * @i2since 1.8
2681
+ */
2682
+ readonly layoutCircular: CommandId;
2683
+ /**
2684
+ * Gets the identifier of the system command that performs an organization layout.
2685
+ * @i2since 1.8
2686
+ */
2687
+ readonly layoutOrganization: CommandId;
2688
+ /**
2689
+ * Gets the identifier of the system command that performs a minimize crossed links layout.
2690
+ * @i2since 1.8
2691
+ */
2692
+ readonly layoutMinimizeCrossedLinks: CommandId;
2693
+ /**
2694
+ * Gets the identifier of the system command that maximizes selected groups in the chart.
2695
+ *
2696
+ * @i2since 1.8
2697
+ */
2698
+ readonly maximizeGroups: CommandId;
2699
+ /**
2700
+ * Gets the identifier of the system command that minimizes selected groups in the chart.
2701
+ *
2702
+ * @i2since 1.8
2703
+ */
2704
+ readonly minimizeGroups: CommandId;
2619
2705
  /**
2620
2706
  * Gets the identifier of the system command that opens the i2 Notebook importer.
2621
2707
  * @i2since 1.5
@@ -2636,6 +2722,16 @@ export declare namespace commands {
2636
2722
  * @i2since 1.0
2637
2723
  */
2638
2724
  readonly redo: CommandId;
2725
+ /**
2726
+ * Gets the identifier of the system command that resets the selected elements' labels to their default values.
2727
+ * @i2since 1.8
2728
+ */
2729
+ readonly resetElementLabel: CommandId;
2730
+ /**
2731
+ * Gets the identifier of the system command that resets the selected groups' labels to their default values.
2732
+ * @i2since 1.8
2733
+ */
2734
+ readonly resetGroupLabel: CommandId;
2639
2735
  /**
2640
2736
  * Gets the identifier of the system command that saves the current chart.
2641
2737
  * @i2since 1.1
@@ -2656,6 +2752,13 @@ export declare namespace commands {
2656
2752
  * @i2since 1.2
2657
2753
  */
2658
2754
  readonly selectInvert: CommandId;
2755
+ /**
2756
+ * Gets the identifier of the system command that selects united items.
2757
+ *
2758
+ * @remarks A united item is a entity or link that contains multiple records.
2759
+ * @i2since 1.8
2760
+ */
2761
+ readonly selectUnitedItems: CommandId;
2659
2762
  /**
2660
2763
  * Gets the identifier of the system command that allows users to share records with each other.
2661
2764
  * @i2since 1.3
@@ -2735,8 +2838,14 @@ export declare namespace commands {
2735
2838
  /**
2736
2839
  * Gets the identifier of the system action group named "Arrange".
2737
2840
  * @i2since 1.0
2841
+ * @deprecated The "arrange" property has been renamed to "layouts". Use {@link commands.IHomeTabSystemGroups.layouts} instead.
2738
2842
  */
2739
2843
  readonly arrange: GroupId;
2844
+ /**
2845
+ * Gets the identifier of the system action group named "Layouts".
2846
+ * @i2since 1.8
2847
+ */
2848
+ readonly layouts: GroupId;
2740
2849
  /**
2741
2850
  * Gets the identifier of the system action group named "Manage".
2742
2851
  * @i2since 1.1
@@ -2752,9 +2861,15 @@ export declare namespace commands {
2752
2861
  * @i2since 1.0
2753
2862
  */
2754
2863
  readonly history: GroupId;
2864
+ /**
2865
+ * Gets the identifier of the system action group named "Groups".
2866
+ * @i2since 1.8
2867
+ */
2868
+ readonly groups: GroupId;
2755
2869
  /**
2756
2870
  * Gets the identifier of the system action group named "Search Information Store".
2757
2871
  * @i2since 1.0
2872
+ * @deprecated The Search Information Store group has moved to the Collect tab {@link commands.ICollectTabSystemGroups.searchInfoStore}.
2758
2873
  */
2759
2874
  readonly searchInfoStore: GroupId;
2760
2875
  /**
@@ -2763,6 +2878,64 @@ export declare namespace commands {
2763
2878
  */
2764
2879
  readonly select: GroupId;
2765
2880
  }
2881
+ /**
2882
+ * A lookup table for the identifiers of the system action groups in the Collect tab.
2883
+ * @i2since 1.8
2884
+ */
2885
+ export interface ICollectTabSystemGroups {
2886
+ /**
2887
+ * Gets the identifier of the system action group named "Search Information Store".
2888
+ * @i2since 1.8
2889
+ */
2890
+ readonly searchInfoStore: GroupId;
2891
+ /**
2892
+ * Gets the identifier of the system action group named "Groups".
2893
+ * @i2since 1.8
2894
+ */
2895
+ readonly groups: GroupId;
2896
+ /**
2897
+ * Gets the identifier of the system action group named "Select".
2898
+ * @i2since 1.8
2899
+ */
2900
+ readonly select: GroupId;
2901
+ }
2902
+ /**
2903
+ * A lookup table for the identifiers of the system action groups in the Analyze tab.
2904
+ * @i2since 1.8
2905
+ */
2906
+ export interface IAnalyzeTabSystemGroups {
2907
+ /**
2908
+ * Gets the identifier of the system action group named "Discover".
2909
+ * @i2since 1.8
2910
+ */
2911
+ readonly discover: GroupId;
2912
+ /**
2913
+ * Gets the identifier of the system action group named "Layouts".
2914
+ * @i2since 1.8
2915
+ */
2916
+ readonly layouts: GroupId;
2917
+ /**
2918
+ * Gets the identifier of the system action group named "Groups".
2919
+ * @i2since 1.8
2920
+ */
2921
+ readonly groups: GroupId;
2922
+ /**
2923
+ * Gets the identifier of the system action group named "Select".
2924
+ * @i2since 1.8
2925
+ */
2926
+ readonly select: GroupId;
2927
+ }
2928
+ /**
2929
+ * A lookup table for the identifiers of the system action groups in the Disseminate tab.
2930
+ * @i2since 1.8
2931
+ */
2932
+ export interface IDisseminateTabSystemGroups {
2933
+ /**
2934
+ * Gets the identifier of the system action group named "Export".
2935
+ * @i2since 1.8
2936
+ */
2937
+ readonly export: GroupId;
2938
+ }
2766
2939
  /**
2767
2940
  * A lookup table for the identifiers of the system action groups in the chart item pop-up menu.
2768
2941
  * @i2since 1.4
@@ -2778,6 +2951,11 @@ export declare namespace commands {
2778
2951
  * @i2since 1.0
2779
2952
  */
2780
2953
  readonly discover: GroupId;
2954
+ /**
2955
+ * Gets the identifier of the system action group related to element label operations.
2956
+ * @i2since 1.8
2957
+ */
2958
+ readonly label: GroupId;
2781
2959
  /**
2782
2960
  * Gets the identifier of the system action group related to link direction.
2783
2961
  * @i2since 1.5
@@ -3295,6 +3473,14 @@ export declare namespace data {
3295
3473
  * @i2since 1.0
3296
3474
  */
3297
3475
  readonly size: number;
3476
+ /**
3477
+ * Executes firstOrDefault to see if the collection has any elements. If the collection has elements, returns false.
3478
+ * Otherwise, returns true.
3479
+ *
3480
+ * @returns A boolean indicating whether the collection is empty.
3481
+ * @i2since 1.8
3482
+ */
3483
+ isEmpty(): boolean;
3298
3484
  }
3299
3485
  /**
3300
3486
  * A non-modifiable collection of objects, with efficient lookup by key.
@@ -3888,7 +4074,7 @@ export declare interface NotebookStatic {
3888
4074
  * @public
3889
4075
  * @i2since 1.0
3890
4076
  */
3891
- getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5' | '1.6' | '1.7'): Promise<IEntryPointApi>;
4077
+ getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5' | '1.6' | '1.7' | '1.8'): Promise<IEntryPointApi>;
3892
4078
  }
3893
4079
 
3894
4080
  /**
@@ -5165,7 +5351,7 @@ export declare namespace toolview {
5165
5351
  * The size of the tool view.
5166
5352
  * @i2since 1.3
5167
5353
  */
5168
- export type ToolViewSize = 'small' | 'medium' | 'large';
5354
+ export type ToolViewSize = 'small' | 'medium' | 'large' | 'x-large';
5169
5355
  /**
5170
5356
  * A set of information for creating a tool view.
5171
5357
  * @i2since 1.3
@@ -5688,6 +5874,11 @@ export declare namespace visual {
5688
5874
  * @i2since 1.2
5689
5875
  */
5690
5876
  export interface IEdgeStyle extends IElementStyleBase {
5877
+ /**
5878
+ * Gets the width of the edge.
5879
+ * @i2since 1.8
5880
+ */
5881
+ readonly width: IElementSetting<number>;
5691
5882
  }
5692
5883
  /**
5693
5884
  * A rectangular area, such as the boundary of the chart view.
@@ -5761,6 +5952,15 @@ export declare namespace visual {
5761
5952
  * @i2since 1.8
5762
5953
  */
5763
5954
  readonly style: INodeGroupStyle;
5955
+ /**
5956
+ * Indicates the minimized state of the node group.
5957
+ * @remarks
5958
+ * A minimized node group is represented by a single node that contains the label and
5959
+ * image of the group, and can be maximized to show the individual nodes in the group.
5960
+ * @returns `true` if the node group is minimized; `false` if it is maximized.
5961
+ * @i2since 1.8
5962
+ */
5963
+ readonly isMinimized: boolean;
5764
5964
  /**
5765
5965
  * Gets the nodes in the node group.
5766
5966
  * @i2since 1.8
package/lib/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * i2, i2 Group, the i2 Group logo, and i2group.com are trademarks of N.Harris Computer Corporation.
3
3
  * © N.Harris Computer Corporation (2022)
4
4
  */
5
- const apiVersion = '1.7';
5
+ const apiVersion = '1.8';
6
6
  /**
7
7
  * Retrieves the plug-in entry point API.
8
8
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.8.0-dev.9",
3
+ "version": "1.8.0",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {