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

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,10 @@ 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.
1910
+ * @typeParam TRootGroup - The type of action group that the area supports.
1912
1911
  * @i2since 1.0
1913
1912
  */
1914
- export interface IActionArea<TSystemGroups, TGroupInfo, TChildGroupInfo = TGroupInfo> {
1913
+ export interface IActionArea<TSystemGroups, TRootGroup> {
1915
1914
  /**
1916
1915
  * Locates the area of the user interface that appears immediately before a particular action or group of actions.
1917
1916
  *
@@ -1920,7 +1919,7 @@ export declare namespace commands {
1920
1919
  * @throws `Error` if the `id` was not a valid {@link commands.CommandId | CommandId} or {@link commands.GroupId | GroupId}.
1921
1920
  * @i2since 1.0
1922
1921
  */
1923
- before(id: CommandId | GroupId): IActionArea<undefined, TGroupInfo, TChildGroupInfo>;
1922
+ before(id: CommandId | GroupId): IActionArea<undefined, TRootGroup>;
1924
1923
  /**
1925
1924
  * Locates the area of the user interface that appears immediately before the action that represents the specified command.
1926
1925
  *
@@ -1929,7 +1928,7 @@ export declare namespace commands {
1929
1928
  * @throws `Error` if `command.id` is not a valid {@link commands.CommandId | CommandId}.
1930
1929
  * @i2since 1.1
1931
1930
  */
1932
- before(command: ICommand): IActionArea<undefined, TGroupInfo, TChildGroupInfo>;
1931
+ before(command: ICommand): IActionArea<undefined, TRootGroup>;
1933
1932
  /**
1934
1933
  * Locates the area of the user interface that appears immediately after a particular action or group of actions.
1935
1934
  *
@@ -1938,7 +1937,7 @@ export declare namespace commands {
1938
1937
  * @throws `Error` if the `id` was not a valid {@link commands.CommandId | CommandId} or {@link commands.GroupId | GroupId}.
1939
1938
  * @i2since 1.0
1940
1939
  */
1941
- after(id: CommandId | GroupId): IActionArea<undefined, TGroupInfo, TChildGroupInfo>;
1940
+ after(id: CommandId | GroupId): IActionArea<undefined, TRootGroup>;
1942
1941
  /**
1943
1942
  * Locates the area of the user interface that appears immediately after the action that represents the specified command.
1944
1943
  *
@@ -1947,7 +1946,7 @@ export declare namespace commands {
1947
1946
  * @throws `Error` if `command.id` is not a valid {@link commands.CommandId | CommandId}.
1948
1947
  * @i2since 1.1
1949
1948
  */
1950
- after(command: ICommand): IActionArea<undefined, TGroupInfo, TChildGroupInfo>;
1949
+ after(command: ICommand): IActionArea<undefined, TRootGroup>;
1951
1950
  /**
1952
1951
  * Locates the area of the user interface that is occupied by a particular group of actions.
1953
1952
  *
@@ -1956,7 +1955,7 @@ export declare namespace commands {
1956
1955
  * @throws `Error` if the `id` was not a valid {@link commands.CommandId | CommandId} or {@link commands.GroupId | GroupId}.
1957
1956
  * @i2since 1.0
1958
1957
  */
1959
- getGroup(id: GroupId): IActionArea<undefined, TChildGroupInfo, TChildGroupInfo>;
1958
+ getGroup(id: GroupId): IActionArea<undefined, IGroup>;
1960
1959
  /**
1961
1960
  * Removes an action or group of actions from the user interface.
1962
1961
  *
@@ -1986,7 +1985,7 @@ export declare namespace commands {
1986
1985
  * @throws `Error` if the `group` was not valid, or if a group with the same {@link commands.GroupId} was already present.
1987
1986
  * @i2since 1.0
1988
1987
  */
1989
- addGroup(group: TGroupInfo): IActionArea<undefined, TChildGroupInfo, TChildGroupInfo>;
1988
+ addGroup(group: TRootGroup): IActionArea<undefined, IGroup>;
1990
1989
  /**
1991
1990
  * Adds the specified group of actions to the user interface, or gets an existing group with the same identifier.
1992
1991
  *
@@ -2000,7 +1999,7 @@ export declare namespace commands {
2000
1999
  * @throws `Error` if the `group` was not valid, or if it was added before by the same plug-in.
2001
2000
  * @i2since 1.0
2002
2001
  */
2003
- addOrGetGroup(group: TGroupInfo): IActionArea<undefined, TChildGroupInfo, TChildGroupInfo>;
2002
+ addOrGetGroup(group: TRootGroup): IActionArea<undefined, IGroup>;
2004
2003
  /**
2005
2004
  * Gets the system groups for the action area, which you can use to specify relative locations for your actions and groups.
2006
2005
  * @i2since 1.0
@@ -2096,6 +2095,11 @@ export declare namespace commands {
2096
2095
  * @i2since 1.0
2097
2096
  */
2098
2097
  readonly id: GroupId;
2098
+ /**
2099
+ * Gets the type of the group, whether the group is initially expanded or collapsed.
2100
+ * @i2since 1.5
2101
+ */
2102
+ readonly type?: 'expanded' | 'collapsed';
2099
2103
  }
2100
2104
  /**
2101
2105
  * A group of actions in a tab, in the i2 Notebook application ribbon.
@@ -2106,16 +2110,34 @@ export declare namespace commands {
2106
2110
  * Gets the label of the group, which is displayed to users.
2107
2111
  * @i2since 1.0
2108
2112
  */
2109
- readonly label: string;
2113
+ readonly label?: string;
2110
2114
  /**
2111
2115
  * Gets the icon of the group, which is displayed when the group contents are not displayed.
2112
2116
  * @i2since 1.0
2113
2117
  */
2118
+ readonly icon?: IIcon;
2119
+ }
2120
+ /**
2121
+ * A group of actions in i2 Notebook application ribbon.
2122
+ * @i2since 1.5
2123
+ *
2124
+ */
2125
+ export interface IRibbonGroup extends IGroupBase {
2126
+ /**
2127
+ * Gets the label of the group, which is displayed to users.
2128
+ * @i2since 1.5
2129
+ */
2130
+ readonly label: string;
2131
+ /**
2132
+ * Gets the icon of the group, which is displayed when the group contents are not displayed.
2133
+ * @i2since 1.5
2134
+ */
2114
2135
  readonly icon: IIcon;
2115
2136
  }
2116
2137
  /**
2117
2138
  * A group of actions in a popup menu, which do not have a label or an icon.
2118
2139
  * @i2since 1.2
2140
+ * @deprecated Deprecated since version 1.5. Use {@link commands.IGroup}instead.
2119
2141
  */
2120
2142
  export interface IMenuGroup extends IGroupBase {
2121
2143
  }
@@ -2207,7 +2229,7 @@ export declare namespace commands {
2207
2229
  * The `chartSurfacePopupMenu` area supports only top-level groups, which correspond to sets of related actions that are separated by dividers in the menu.
2208
2230
  * @i2since 1.4
2209
2231
  */
2210
- readonly chartSurfacePopupMenu: IActionArea<IChartSurfacePopupMenuSystemGroups, IMenuGroup, IGroup>;
2232
+ readonly chartSurfacePopupMenu: IActionArea<IChartSurfacePopupMenuSystemGroups, IGroup>;
2211
2233
  /**
2212
2234
  * Gets the area that represents the pop-up menu for chart items.
2213
2235
  *
@@ -2215,7 +2237,7 @@ export declare namespace commands {
2215
2237
  * The `chartItemPopupMenu` area supports only top-level groups, which correspond to sets of related actions that are separated by dividers in the menu.
2216
2238
  * @i2since 1.4
2217
2239
  */
2218
- readonly chartItemPopupMenu: IActionArea<IChartItemPopupMenuSystemGroups, IMenuGroup, IGroup>;
2240
+ readonly chartItemPopupMenu: IActionArea<IChartItemPopupMenuSystemGroups, IGroup>;
2219
2241
  /**
2220
2242
  * Gets the area that represents the pop-up menu for chart items.
2221
2243
  *
@@ -2224,7 +2246,7 @@ export declare namespace commands {
2224
2246
  * @i2since 1.0
2225
2247
  * @deprecated Deprecated since version 1.4. `commands.ICommandApi.chartPopupMenu` has been renamed to {@link commands.ICommandApi.chartItemPopupMenu}.
2226
2248
  */
2227
- readonly chartPopupMenu: IActionArea<IChartPopupMenuSystemGroups, IMenuGroup, IGroup>;
2249
+ readonly chartPopupMenu: IActionArea<IChartPopupMenuSystemGroups, IGroup>;
2228
2250
  /**
2229
2251
  * Unregisters and removes a command and all its actions from the application.
2230
2252
  *
@@ -2245,7 +2267,7 @@ export declare namespace commands {
2245
2267
  * The `homeTab` area supports top-level and second-level groups, which correspond to labeled groups and drop-down menus in the ribbon.
2246
2268
  * @i2since 1.0
2247
2269
  */
2248
- readonly homeTab: IActionArea<IHomeTabSystemGroups, IGroup>;
2270
+ readonly homeTab: IActionArea<IHomeTabSystemGroups, IRibbonGroup>;
2249
2271
  }
2250
2272
  /**
2251
2273
  * 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.11",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {