@i2analyze/notebook-sdk 1.5.0-dev.10 → 1.5.0-dev.12

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.
@@ -1907,11 +1907,9 @@ export declare namespace commands {
1907
1907
  * To retrieve areas that represent the entire application ribbon or pop-up menu, use the properties of {@link commands.ICommandApi}.
1908
1908
  *
1909
1909
  * @typeParam TSystemGroups - The type of the list of system action groups in the area.
1910
- * @typeParam TGroupInfo - The type of action group that the area supports.
1911
- * @typeParam TChildGroupInfo - The type of sub action group that the area supports.
1912
1910
  * @i2since 1.0
1913
1911
  */
1914
- export interface IActionArea<TSystemGroups, TGroupInfo, TChildGroupInfo = TGroupInfo> {
1912
+ export interface IActionArea<TSystemGroups> {
1915
1913
  /**
1916
1914
  * Locates the area of the user interface that appears immediately before a particular action or group of actions.
1917
1915
  *
@@ -1920,7 +1918,7 @@ export declare namespace commands {
1920
1918
  * @throws `Error` if the `id` was not a valid {@link commands.CommandId | CommandId} or {@link commands.GroupId | GroupId}.
1921
1919
  * @i2since 1.0
1922
1920
  */
1923
- before(id: CommandId | GroupId): IActionArea<undefined, TGroupInfo, TChildGroupInfo>;
1921
+ before(id: CommandId | GroupId): IActionArea<undefined>;
1924
1922
  /**
1925
1923
  * Locates the area of the user interface that appears immediately before the action that represents the specified command.
1926
1924
  *
@@ -1929,7 +1927,7 @@ export declare namespace commands {
1929
1927
  * @throws `Error` if `command.id` is not a valid {@link commands.CommandId | CommandId}.
1930
1928
  * @i2since 1.1
1931
1929
  */
1932
- before(command: ICommand): IActionArea<undefined, TGroupInfo, TChildGroupInfo>;
1930
+ before(command: ICommand): IActionArea<undefined>;
1933
1931
  /**
1934
1932
  * Locates the area of the user interface that appears immediately after a particular action or group of actions.
1935
1933
  *
@@ -1938,7 +1936,7 @@ export declare namespace commands {
1938
1936
  * @throws `Error` if the `id` was not a valid {@link commands.CommandId | CommandId} or {@link commands.GroupId | GroupId}.
1939
1937
  * @i2since 1.0
1940
1938
  */
1941
- after(id: CommandId | GroupId): IActionArea<undefined, TGroupInfo, TChildGroupInfo>;
1939
+ after(id: CommandId | GroupId): IActionArea<undefined>;
1942
1940
  /**
1943
1941
  * Locates the area of the user interface that appears immediately after the action that represents the specified command.
1944
1942
  *
@@ -1947,7 +1945,7 @@ export declare namespace commands {
1947
1945
  * @throws `Error` if `command.id` is not a valid {@link commands.CommandId | CommandId}.
1948
1946
  * @i2since 1.1
1949
1947
  */
1950
- after(command: ICommand): IActionArea<undefined, TGroupInfo, TChildGroupInfo>;
1948
+ after(command: ICommand): IActionArea<undefined>;
1951
1949
  /**
1952
1950
  * Locates the area of the user interface that is occupied by a particular group of actions.
1953
1951
  *
@@ -1956,7 +1954,7 @@ export declare namespace commands {
1956
1954
  * @throws `Error` if the `id` was not a valid {@link commands.CommandId | CommandId} or {@link commands.GroupId | GroupId}.
1957
1955
  * @i2since 1.0
1958
1956
  */
1959
- getGroup(id: GroupId): IActionArea<undefined, TChildGroupInfo, TChildGroupInfo>;
1957
+ getGroup(id: GroupId): IActionArea<undefined>;
1960
1958
  /**
1961
1959
  * Removes an action or group of actions from the user interface.
1962
1960
  *
@@ -1986,7 +1984,7 @@ export declare namespace commands {
1986
1984
  * @throws `Error` if the `group` was not valid, or if a group with the same {@link commands.GroupId} was already present.
1987
1985
  * @i2since 1.0
1988
1986
  */
1989
- addGroup(group: TGroupInfo): IActionArea<undefined, TChildGroupInfo, TChildGroupInfo>;
1987
+ addGroup(group: IGroup): IActionArea<undefined>;
1990
1988
  /**
1991
1989
  * Adds the specified group of actions to the user interface, or gets an existing group with the same identifier.
1992
1990
  *
@@ -2000,7 +1998,7 @@ export declare namespace commands {
2000
1998
  * @throws `Error` if the `group` was not valid, or if it was added before by the same plug-in.
2001
1999
  * @i2since 1.0
2002
2000
  */
2003
- addOrGetGroup(group: TGroupInfo): IActionArea<undefined, TChildGroupInfo, TChildGroupInfo>;
2001
+ addOrGetGroup(group: IGroup): IActionArea<undefined>;
2004
2002
  /**
2005
2003
  * Gets the system groups for the action area, which you can use to specify relative locations for your actions and groups.
2006
2004
  * @i2since 1.0
@@ -2096,9 +2094,14 @@ export declare namespace commands {
2096
2094
  * @i2since 1.0
2097
2095
  */
2098
2096
  readonly id: GroupId;
2097
+ /**
2098
+ * Indicates the type of the group, whether the group is initially expanded or collapsed.
2099
+ * @i2since 1.5
2100
+ */
2101
+ readonly isCollapsed?: boolean;
2099
2102
  }
2100
2103
  /**
2101
- * A group of actions in a tab, in the i2 Notebook application ribbon.
2104
+ * A group of actions in the i2 Notebook application ribbon/ popup menu.
2102
2105
  * @i2since 1.0
2103
2106
  */
2104
2107
  export interface IGroup extends IGroupBase {
@@ -2106,16 +2109,17 @@ export declare namespace commands {
2106
2109
  * Gets the label of the group, which is displayed to users.
2107
2110
  * @i2since 1.0
2108
2111
  */
2109
- readonly label: string;
2112
+ readonly label?: string;
2110
2113
  /**
2111
2114
  * Gets the icon of the group, which is displayed when the group contents are not displayed.
2112
2115
  * @i2since 1.0
2113
2116
  */
2114
- readonly icon: IIcon;
2117
+ readonly icon?: IIcon;
2115
2118
  }
2116
2119
  /**
2117
2120
  * A group of actions in a popup menu, which do not have a label or an icon.
2118
2121
  * @i2since 1.2
2122
+ * @deprecated Deprecated since version 1.5. Use {@link commands.IGroup}instead.
2119
2123
  */
2120
2124
  export interface IMenuGroup extends IGroupBase {
2121
2125
  }
@@ -2207,7 +2211,7 @@ export declare namespace commands {
2207
2211
  * The `chartSurfacePopupMenu` area supports only top-level groups, which correspond to sets of related actions that are separated by dividers in the menu.
2208
2212
  * @i2since 1.4
2209
2213
  */
2210
- readonly chartSurfacePopupMenu: IActionArea<IChartSurfacePopupMenuSystemGroups, IMenuGroup, IGroup>;
2214
+ readonly chartSurfacePopupMenu: IActionArea<IChartSurfacePopupMenuSystemGroups>;
2211
2215
  /**
2212
2216
  * Gets the area that represents the pop-up menu for chart items.
2213
2217
  *
@@ -2215,7 +2219,7 @@ export declare namespace commands {
2215
2219
  * The `chartItemPopupMenu` area supports only top-level groups, which correspond to sets of related actions that are separated by dividers in the menu.
2216
2220
  * @i2since 1.4
2217
2221
  */
2218
- readonly chartItemPopupMenu: IActionArea<IChartItemPopupMenuSystemGroups, IMenuGroup, IGroup>;
2222
+ readonly chartItemPopupMenu: IActionArea<IChartItemPopupMenuSystemGroups>;
2219
2223
  /**
2220
2224
  * Gets the area that represents the pop-up menu for chart items.
2221
2225
  *
@@ -2224,7 +2228,7 @@ export declare namespace commands {
2224
2228
  * @i2since 1.0
2225
2229
  * @deprecated Deprecated since version 1.4. `commands.ICommandApi.chartPopupMenu` has been renamed to {@link commands.ICommandApi.chartItemPopupMenu}.
2226
2230
  */
2227
- readonly chartPopupMenu: IActionArea<IChartPopupMenuSystemGroups, IMenuGroup, IGroup>;
2231
+ readonly chartPopupMenu: IActionArea<IChartPopupMenuSystemGroups>;
2228
2232
  /**
2229
2233
  * Unregisters and removes a command and all its actions from the application.
2230
2234
  *
@@ -2245,7 +2249,7 @@ export declare namespace commands {
2245
2249
  * The `homeTab` area supports top-level and second-level groups, which correspond to labeled groups and drop-down menus in the ribbon.
2246
2250
  * @i2since 1.0
2247
2251
  */
2248
- readonly homeTab: IActionArea<IHomeTabSystemGroups, IGroup>;
2252
+ readonly homeTab: IActionArea<IHomeTabSystemGroups>;
2249
2253
  }
2250
2254
  /**
2251
2255
  * A lookup table for the command identifiers of the default system commands.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.5.0-dev.10",
3
+ "version": "1.5.0-dev.12",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {