@i2analyze/notebook-sdk 1.8.0-dev.2 → 1.8.0-dev.21

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.
@@ -648,7 +648,16 @@ export declare namespace app {
648
648
  * A set of methods for modifying the appearance of a node.
649
649
  * @i2since 1.2
650
650
  */
651
- export interface INodeEditor extends IElementEditorBase {
651
+ export interface INodeEditor extends Omit<IElementEditorBase, 'setColor'> {
652
+ /**
653
+ * Sets or resets the color of the element.
654
+ *
655
+ * @param color - The color to set, or `undefined` to reset the color to the theme default, or 'null' to remove the color.
656
+ * @returns The element, with its color set to the specified value.
657
+ * @throws `Error` if the specified value is not in a form that CSS supports, such as a hexadecimal number, an `rgb()` value, or a color name.
658
+ * @i2since 1.2
659
+ */
660
+ setColor(color: string | undefined | null): this;
652
661
  /**
653
662
  * Sets or resets the size of the node.
654
663
  *
@@ -688,12 +697,74 @@ export declare namespace app {
688
697
  * @i2since 1.2
689
698
  */
690
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;
691
708
  }
692
709
  /**
693
710
  * A set of methods for modifying the contents and position of a node group.
694
711
  * @i2since 1.8
695
712
  */
696
713
  export interface INodeGroupEditor {
714
+ /**
715
+ * Sets or resets the label of the node group.
716
+ *
717
+ * @param label - The label to set, or `undefined` to indicate there is no label.
718
+ * @returns The node group, with its label set to the specified value.
719
+ * @i2since 1.8
720
+ */
721
+ setLabel(label: string | undefined): this;
722
+ /**
723
+ * Sets or resets the color of the node group.
724
+ *
725
+ * @param color - The color to set, or `null` to remove the border, or `undefined` to reset the border color to the theme default.
726
+ * @returns The node group, with its border color set to the specified value.
727
+ * @throws `Error` if the specified value is not in a form that CSS supports, such as a hexadecimal number, an `rgb()` value, or a color name, or `null` or `undefined`.
728
+ * @i2since 1.8
729
+ */
730
+ setBorderColor(color: string | undefined | null): this;
731
+ /**
732
+ * Sets or resets the border width of the node group.
733
+ *
734
+ * @param width - The width to set, or `undefined` to reset the width to the theme default.
735
+ * @returns The node group, with its border width set to the specified value.
736
+ * @throws `Error` if the specified value is not either a positive number or `undefined`.
737
+ * @remarks A size of 0 is valid, and indicates that the node group has no border - equivalent to `setBorderColor(null)`.
738
+ * @i2since 1.8
739
+ */
740
+ setBorderWidth(width: number | undefined): this;
741
+ /**
742
+ * Sets or resets the background color of the node group.
743
+ *
744
+ * @param color - The color to set, or `null` to remove the background, or `undefined` to reset the background color to the theme default.
745
+ * @returns The node group, with its background color set to the specified value.
746
+ * @throws `Error` if the specified value is not in a form that CSS supports, such as a hexadecimal number, an `rgb()` value, or a color name, or `null` or `undefined`.
747
+ * @i2since 1.8
748
+ */
749
+ setColor(color: string | undefined | null): this;
750
+ /**
751
+ * Sets or resets the image for the node group.
752
+ *
753
+ * @param href - The URL of the image to use, or 'undefined' to indicate there is no image.
754
+ * @param description - A description of the image.
755
+ * @returns The node group, with its image set to the specified URL and description.
756
+ * @remarks If an image is not set, then a default image will be used when a label is also set.
757
+ * @i2since 1.8
758
+ */
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;
697
768
  /**
698
769
  * Adds nodes to the group.
699
770
  * @param nodes - The nodes to add to the group.
@@ -2413,13 +2484,31 @@ export declare namespace commands {
2413
2484
  * A common specifier for a tab in the application ribbon.
2414
2485
  * @i2since 1.7
2415
2486
  */
2416
- export type TabSpecifier = RibbonTabId | IRibbonTabActionArea | IHomeTabActionArea;
2487
+ export type TabSpecifier = RibbonTabId | IRibbonTabActionArea | IHomeTabActionArea | ICollectTabActionArea | IAnalyzeTabActionArea | IDisseminateTabActionArea;
2417
2488
  /**
2418
2489
  * An area that represents the **Home** tab in the application ribbon, which contains system groups.
2419
2490
  * @i2since 1.6
2420
2491
  */
2421
2492
  export interface IHomeTabActionArea extends IActionArea<IHomeTabSystemGroups> {
2422
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
+ }
2423
2512
  /**
2424
2513
  * An area that represents a custom tab in the application ribbon.
2425
2514
  * @i2since 1.6
@@ -2436,6 +2525,21 @@ export declare namespace commands {
2436
2525
  * @i2since 1.0
2437
2526
  */
2438
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;
2439
2543
  /**
2440
2544
  * Adds a new tab to the application ribbon.
2441
2545
  * @param config - The information necessary for creating the tab.
@@ -2502,7 +2606,7 @@ export declare namespace commands {
2502
2606
  */
2503
2607
  readonly addToMap: CommandId;
2504
2608
  /**
2505
- * Gets the identifier of the system command opens the chart settings dialog.
2609
+ * Gets the identifier of the system command that opens the chart settings dialog.
2506
2610
  * @i2since 1.5
2507
2611
  */
2508
2612
  readonly chartSettings: CommandId;
@@ -2521,6 +2625,21 @@ export declare namespace commands {
2521
2625
  * @i2since 1.0
2522
2626
  */
2523
2627
  readonly deleteSelected: CommandId;
2628
+ /**
2629
+ * Gets the identifier of the system command that allows users to download records in Excel format.
2630
+ * @i2since 1.6
2631
+ */
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;
2524
2643
  /**
2525
2644
  * Gets the identifier of the system command that performs a one-level expand operation on the current selection.
2526
2645
  * @i2since 1.1
@@ -2536,6 +2655,11 @@ export declare namespace commands {
2536
2655
  * @i2since 1.0
2537
2656
  */
2538
2657
  readonly getPaths: CommandId;
2658
+ /**
2659
+ * Gets the identifier of the system command that adds selected nodes to a group.
2660
+ * @i2since 1.8
2661
+ */
2662
+ readonly groupNodes: CommandId;
2539
2663
  /**
2540
2664
  * Gets the identifier of the system command that performs a grouped layout.
2541
2665
  * @i2since 1.0
@@ -2551,6 +2675,33 @@ export declare namespace commands {
2551
2675
  * @i2since 1.0
2552
2676
  */
2553
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;
2554
2705
  /**
2555
2706
  * Gets the identifier of the system command that opens the i2 Notebook importer.
2556
2707
  * @i2since 1.5
@@ -2571,6 +2722,16 @@ export declare namespace commands {
2571
2722
  * @i2since 1.0
2572
2723
  */
2573
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;
2574
2735
  /**
2575
2736
  * Gets the identifier of the system command that saves the current chart.
2576
2737
  * @i2since 1.1
@@ -2591,6 +2752,13 @@ export declare namespace commands {
2591
2752
  * @i2since 1.2
2592
2753
  */
2593
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;
2594
2762
  /**
2595
2763
  * Gets the identifier of the system command that allows users to share records with each other.
2596
2764
  * @i2since 1.3
@@ -2621,6 +2789,11 @@ export declare namespace commands {
2621
2789
  * @i2since 1.3
2622
2790
  */
2623
2791
  readonly toggleLists: CommandId;
2792
+ /**
2793
+ * Gets the identifier of the system command that toggles the list most connected UI.
2794
+ * @i2since 1.8
2795
+ */
2796
+ readonly toggleListMostConnected: CommandId;
2624
2797
  /**
2625
2798
  * Gets the identifier of the system command that toggles the map UI.
2626
2799
  * @i2since 1.1
@@ -2657,10 +2830,15 @@ export declare namespace commands {
2657
2830
  */
2658
2831
  readonly undo: CommandId;
2659
2832
  /**
2660
- * Gets the identifier of the system command that allows users to download records in Excel format.
2661
- * @i2since 1.6
2833
+ * Gets the identifier of the system command that removes selected nodes from their group.
2834
+ * @i2since 1.8
2662
2835
  */
2663
- readonly downloadRecords: CommandId;
2836
+ readonly ungroupNodes: CommandId;
2837
+ /**
2838
+ * Gets the identifier of the system command that toggles the Time Wheel UI.
2839
+ * @i2since 1.8
2840
+ */
2841
+ readonly toggleTimeWheel: CommandId;
2664
2842
  }
2665
2843
  /**
2666
2844
  * A lookup table for the identifiers of the system action groups in the Home tab.
@@ -2670,8 +2848,14 @@ export declare namespace commands {
2670
2848
  /**
2671
2849
  * Gets the identifier of the system action group named "Arrange".
2672
2850
  * @i2since 1.0
2851
+ * @deprecated The "arrange" property has been renamed to "layouts". Use {@link commands.IHomeTabSystemGroups.layouts} instead.
2673
2852
  */
2674
2853
  readonly arrange: GroupId;
2854
+ /**
2855
+ * Gets the identifier of the system action group named "Layouts".
2856
+ * @i2since 1.8
2857
+ */
2858
+ readonly layouts: GroupId;
2675
2859
  /**
2676
2860
  * Gets the identifier of the system action group named "Manage".
2677
2861
  * @i2since 1.1
@@ -2687,9 +2871,15 @@ export declare namespace commands {
2687
2871
  * @i2since 1.0
2688
2872
  */
2689
2873
  readonly history: GroupId;
2874
+ /**
2875
+ * Gets the identifier of the system action group named "Groups".
2876
+ * @i2since 1.8
2877
+ */
2878
+ readonly groups: GroupId;
2690
2879
  /**
2691
2880
  * Gets the identifier of the system action group named "Search Information Store".
2692
2881
  * @i2since 1.0
2882
+ * @deprecated The Search Information Store group has moved to the Collect tab {@link commands.ICollectTabSystemGroups.searchInfoStore}.
2693
2883
  */
2694
2884
  readonly searchInfoStore: GroupId;
2695
2885
  /**
@@ -2698,6 +2888,64 @@ export declare namespace commands {
2698
2888
  */
2699
2889
  readonly select: GroupId;
2700
2890
  }
2891
+ /**
2892
+ * A lookup table for the identifiers of the system action groups in the Collect tab.
2893
+ * @i2since 1.8
2894
+ */
2895
+ export interface ICollectTabSystemGroups {
2896
+ /**
2897
+ * Gets the identifier of the system action group named "Search Information Store".
2898
+ * @i2since 1.8
2899
+ */
2900
+ readonly searchInfoStore: GroupId;
2901
+ /**
2902
+ * Gets the identifier of the system action group named "Groups".
2903
+ * @i2since 1.8
2904
+ */
2905
+ readonly groups: GroupId;
2906
+ /**
2907
+ * Gets the identifier of the system action group named "Select".
2908
+ * @i2since 1.8
2909
+ */
2910
+ readonly select: GroupId;
2911
+ }
2912
+ /**
2913
+ * A lookup table for the identifiers of the system action groups in the Analyze tab.
2914
+ * @i2since 1.8
2915
+ */
2916
+ export interface IAnalyzeTabSystemGroups {
2917
+ /**
2918
+ * Gets the identifier of the system action group named "Discover".
2919
+ * @i2since 1.8
2920
+ */
2921
+ readonly discover: GroupId;
2922
+ /**
2923
+ * Gets the identifier of the system action group named "Layouts".
2924
+ * @i2since 1.8
2925
+ */
2926
+ readonly layouts: GroupId;
2927
+ /**
2928
+ * Gets the identifier of the system action group named "Groups".
2929
+ * @i2since 1.8
2930
+ */
2931
+ readonly groups: GroupId;
2932
+ /**
2933
+ * Gets the identifier of the system action group named "Select".
2934
+ * @i2since 1.8
2935
+ */
2936
+ readonly select: GroupId;
2937
+ }
2938
+ /**
2939
+ * A lookup table for the identifiers of the system action groups in the Disseminate tab.
2940
+ * @i2since 1.8
2941
+ */
2942
+ export interface IDisseminateTabSystemGroups {
2943
+ /**
2944
+ * Gets the identifier of the system action group named "Export".
2945
+ * @i2since 1.8
2946
+ */
2947
+ readonly export: GroupId;
2948
+ }
2701
2949
  /**
2702
2950
  * A lookup table for the identifiers of the system action groups in the chart item pop-up menu.
2703
2951
  * @i2since 1.4
@@ -2713,6 +2961,11 @@ export declare namespace commands {
2713
2961
  * @i2since 1.0
2714
2962
  */
2715
2963
  readonly discover: GroupId;
2964
+ /**
2965
+ * Gets the identifier of the system action group related to element label operations.
2966
+ * @i2since 1.8
2967
+ */
2968
+ readonly label: GroupId;
2716
2969
  /**
2717
2970
  * Gets the identifier of the system action group related to link direction.
2718
2971
  * @i2since 1.5
@@ -3230,6 +3483,14 @@ export declare namespace data {
3230
3483
  * @i2since 1.0
3231
3484
  */
3232
3485
  readonly size: number;
3486
+ /**
3487
+ * Executes firstOrDefault to see if the collection has any elements. If the collection has elements, returns false.
3488
+ * Otherwise, returns true.
3489
+ *
3490
+ * @returns A boolean indicating whether the collection is empty.
3491
+ * @i2since 1.8
3492
+ */
3493
+ isEmpty(): boolean;
3233
3494
  }
3234
3495
  /**
3235
3496
  * A non-modifiable collection of objects, with efficient lookup by key.
@@ -5100,7 +5361,7 @@ export declare namespace toolview {
5100
5361
  * The size of the tool view.
5101
5362
  * @i2since 1.3
5102
5363
  */
5103
- export type ToolViewSize = 'small' | 'medium' | 'large';
5364
+ export type ToolViewSize = 'small' | 'medium' | 'large' | 'x-large';
5104
5365
  /**
5105
5366
  * A set of information for creating a tool view.
5106
5367
  * @i2since 1.3
@@ -5601,7 +5862,12 @@ export declare namespace visual {
5601
5862
  * A style for a node, which affects its appearance.
5602
5863
  * @i2since 1.0
5603
5864
  */
5604
- export interface INodeStyle extends IElementStyleBase {
5865
+ export interface INodeStyle extends Omit<IElementStyleBase, 'color'> {
5866
+ /**
5867
+ * Gets the color of the node, or null if there is no color and the node background is transparent.
5868
+ * @i2since 1.2
5869
+ */
5870
+ readonly color: IElementSetting<string | null>;
5605
5871
  /**
5606
5872
  * Gets the image to display for the node.
5607
5873
  * @i2since 1.0
@@ -5618,6 +5884,11 @@ export declare namespace visual {
5618
5884
  * @i2since 1.2
5619
5885
  */
5620
5886
  export interface IEdgeStyle extends IElementStyleBase {
5887
+ /**
5888
+ * Gets the width of the edge.
5889
+ * @i2since 1.8
5890
+ */
5891
+ readonly width: IElementSetting<number>;
5621
5892
  }
5622
5893
  /**
5623
5894
  * A rectangular area, such as the boundary of the chart view.
@@ -5681,12 +5952,57 @@ export declare namespace visual {
5681
5952
  * @i2since 1.8
5682
5953
  */
5683
5954
  readonly id: ElementId;
5955
+ /**
5956
+ * Gets the label of the node group, or undefined if there is no explicit label.
5957
+ * @i2since 1.8
5958
+ */
5959
+ readonly label: string | undefined;
5960
+ /**
5961
+ * Gets the style of the node group.
5962
+ * @i2since 1.8
5963
+ */
5964
+ readonly style: INodeGroupStyle;
5965
+ /**
5966
+ * Indicates the minimized state of the node group.
5967
+ * @remarks
5968
+ * A minimized node group is represented by a single node that contains the label and
5969
+ * image of the group, and can be maximized to show the individual nodes in the group.
5970
+ * @returns `true` if the node group is minimized; `false` if it is maximized.
5971
+ * @i2since 1.8
5972
+ */
5973
+ readonly isMinimized: boolean;
5684
5974
  /**
5685
5975
  * Gets the nodes in the node group.
5686
5976
  * @i2since 1.8
5687
5977
  */
5688
5978
  readonly nodes: data.IKeyedReadOnlyCollection<ElementId, INode>;
5689
5979
  }
5980
+ /**
5981
+ * A style for a node group, which affects its appearance.
5982
+ * @i2since 1.8
5983
+ */
5984
+ export interface INodeGroupStyle {
5985
+ /**
5986
+ * Gets the image to display for the node group.
5987
+ * @i2since 1.8
5988
+ */
5989
+ readonly image: IImageSetting;
5990
+ /**
5991
+ * Gets the color of the node group, or null if there is no background.
5992
+ * @i2since 1.8
5993
+ */
5994
+ readonly color: IElementSetting<string | null>;
5995
+ /**
5996
+ * Gets the border color of the node group, or null if there is no border.
5997
+ * @i2since 1.8
5998
+ */
5999
+ readonly borderColor: IElementSetting<string | null>;
6000
+ /**
6001
+ * Gets the border width of the node group.
6002
+ * @i2since 1.8
6003
+ */
6004
+ readonly borderWidth: IElementSetting<number>;
6005
+ }
5690
6006
  }
5691
6007
 
5692
6008
  export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.8.0-dev.2",
3
+ "version": "1.8.0-dev.21",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {