@i2analyze/notebook-sdk 1.2.0-dev.6 → 1.2.0-dev.8
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/lib/gen/notebook-sdk-public.d.ts +51 -12
- package/package.json +1 -1
|
@@ -1817,9 +1817,10 @@ export declare namespace commands {
|
|
|
1817
1817
|
* To retrieve areas that represent the entire application ribbon or pop-up menu, use the properties of {@link commands.ICommandApi}.
|
|
1818
1818
|
*
|
|
1819
1819
|
* @typeParam TSystemGroups - The type of the system groups in the area.
|
|
1820
|
+
* @typeParam TGroupInfo - The type of the group of actions in i2 Notebook.
|
|
1820
1821
|
* @i2since 1.0
|
|
1821
1822
|
*/
|
|
1822
|
-
export interface IActionArea<TSystemGroups> {
|
|
1823
|
+
export interface IActionArea<TSystemGroups, TGroupInfo = IGroupBase> {
|
|
1823
1824
|
/**
|
|
1824
1825
|
* Locates the area of the user interface that appears immediately before a particular action or group of actions.
|
|
1825
1826
|
*
|
|
@@ -1828,7 +1829,7 @@ export declare namespace commands {
|
|
|
1828
1829
|
* @throws `Error` if the `id` was not a valid {@link commands.CommandId | CommandId} or {@link commands.GroupId | GroupId}.
|
|
1829
1830
|
* @i2since 1.0
|
|
1830
1831
|
*/
|
|
1831
|
-
before(id: CommandId | GroupId): IActionArea<undefined>;
|
|
1832
|
+
before(id: CommandId | GroupId): IActionArea<undefined, TGroupInfo>;
|
|
1832
1833
|
/**
|
|
1833
1834
|
* Locates the area of the user interface that appears immediately before the action that represents the specified command.
|
|
1834
1835
|
*
|
|
@@ -1837,7 +1838,7 @@ export declare namespace commands {
|
|
|
1837
1838
|
* @throws `Error` if `command.id` is not a valid {@link commands.CommandId | CommandId}.
|
|
1838
1839
|
* @i2since 1.1
|
|
1839
1840
|
*/
|
|
1840
|
-
before(command: ICommand): IActionArea<undefined>;
|
|
1841
|
+
before(command: ICommand): IActionArea<undefined, TGroupInfo>;
|
|
1841
1842
|
/**
|
|
1842
1843
|
* Locates the area of the user interface that appears immediately after a particular action or group of actions.
|
|
1843
1844
|
*
|
|
@@ -1846,7 +1847,7 @@ export declare namespace commands {
|
|
|
1846
1847
|
* @throws `Error` if the `id` was not a valid {@link commands.CommandId | CommandId} or {@link commands.GroupId | GroupId}.
|
|
1847
1848
|
* @i2since 1.0
|
|
1848
1849
|
*/
|
|
1849
|
-
after(id: CommandId | GroupId): IActionArea<undefined>;
|
|
1850
|
+
after(id: CommandId | GroupId): IActionArea<undefined, TGroupInfo>;
|
|
1850
1851
|
/**
|
|
1851
1852
|
* Locates the area of the user interface that appears immediately after the action that represents the specified command.
|
|
1852
1853
|
*
|
|
@@ -1855,7 +1856,7 @@ export declare namespace commands {
|
|
|
1855
1856
|
* @throws `Error` if `command.id` is not a valid {@link commands.CommandId | CommandId}.
|
|
1856
1857
|
* @i2since 1.1
|
|
1857
1858
|
*/
|
|
1858
|
-
after(command: ICommand): IActionArea<undefined>;
|
|
1859
|
+
after(command: ICommand): IActionArea<undefined, TGroupInfo>;
|
|
1859
1860
|
/**
|
|
1860
1861
|
* Locates the area of the user interface that is occupied by a particular group of actions.
|
|
1861
1862
|
*
|
|
@@ -1864,7 +1865,7 @@ export declare namespace commands {
|
|
|
1864
1865
|
* @throws `Error` if the `id` was not a valid {@link commands.CommandId | CommandId} or {@link commands.GroupId | GroupId}.
|
|
1865
1866
|
* @i2since 1.0
|
|
1866
1867
|
*/
|
|
1867
|
-
getGroup(id: GroupId): IActionArea<undefined>;
|
|
1868
|
+
getGroup(id: GroupId): IActionArea<undefined, TGroupInfo>;
|
|
1868
1869
|
/**
|
|
1869
1870
|
* Removes an action or group of actions from the user interface.
|
|
1870
1871
|
*
|
|
@@ -1894,7 +1895,7 @@ export declare namespace commands {
|
|
|
1894
1895
|
* @throws `Error` if the `group` was not valid, or if a group with the same {@link commands.GroupId} was already present.
|
|
1895
1896
|
* @i2since 1.0
|
|
1896
1897
|
*/
|
|
1897
|
-
addGroup(group:
|
|
1898
|
+
addGroup(group: TGroupInfo): IActionArea<undefined, TGroupInfo>;
|
|
1898
1899
|
/**
|
|
1899
1900
|
* Adds the specified group of actions to the user interface, or gets an existing group with the same identifier.
|
|
1900
1901
|
*
|
|
@@ -1908,7 +1909,7 @@ export declare namespace commands {
|
|
|
1908
1909
|
* @throws `Error` if the `group` was not valid, or if it was added before by the same plug-in.
|
|
1909
1910
|
* @i2since 1.0
|
|
1910
1911
|
*/
|
|
1911
|
-
addOrGetGroup(group:
|
|
1912
|
+
addOrGetGroup(group: TGroupInfo): IActionArea<undefined, TGroupInfo>;
|
|
1912
1913
|
/**
|
|
1913
1914
|
* Gets the system groups for the action area, which you can use to specify relative locations for your actions and groups.
|
|
1914
1915
|
* @i2since 1.0
|
|
@@ -1996,14 +1997,30 @@ export declare namespace commands {
|
|
|
1996
1997
|
export type GroupId = string;
|
|
1997
1998
|
/**
|
|
1998
1999
|
* A group of actions in i2 Notebook.
|
|
1999
|
-
* @i2since 1.
|
|
2000
|
+
* @i2since 1.2
|
|
2000
2001
|
*/
|
|
2001
|
-
export interface
|
|
2002
|
+
export interface IGroupBase {
|
|
2002
2003
|
/**
|
|
2003
2004
|
* Gets the identifier of the group, which should be a GUID.
|
|
2004
2005
|
* @i2since 1.0
|
|
2005
2006
|
*/
|
|
2006
2007
|
readonly id: GroupId;
|
|
2008
|
+
/**
|
|
2009
|
+
* Gets the name of the group.
|
|
2010
|
+
* @i2since 1.2
|
|
2011
|
+
*/
|
|
2012
|
+
readonly label?: string;
|
|
2013
|
+
/**
|
|
2014
|
+
* Gets the icon of the group, which is displayed when the group contents are not displayed.
|
|
2015
|
+
* @i2since 1.2
|
|
2016
|
+
*/
|
|
2017
|
+
readonly icon?: IIcon;
|
|
2018
|
+
}
|
|
2019
|
+
/**
|
|
2020
|
+
* A group of actions in i2 Notebook.
|
|
2021
|
+
* @i2since 1.0
|
|
2022
|
+
*/
|
|
2023
|
+
export interface IGroup extends IGroupBase {
|
|
2007
2024
|
/**
|
|
2008
2025
|
* Gets the name of the group.
|
|
2009
2026
|
* @i2since 1.0
|
|
@@ -2015,6 +2032,12 @@ export declare namespace commands {
|
|
|
2015
2032
|
*/
|
|
2016
2033
|
readonly icon: IIcon;
|
|
2017
2034
|
}
|
|
2035
|
+
/**
|
|
2036
|
+
* A group of actions that doesn't require label and id in i2 Notebook.
|
|
2037
|
+
* @i2since 1.2
|
|
2038
|
+
*/
|
|
2039
|
+
export interface IChartPopupMenuGroup extends Omit<IGroupBase, 'icon' | 'label'> {
|
|
2040
|
+
}
|
|
2018
2041
|
/**
|
|
2019
2042
|
* A representation of a command in the user interface. An action is created when a command is surfaced.
|
|
2020
2043
|
* @i2since 1.0
|
|
@@ -2089,7 +2112,7 @@ export declare namespace commands {
|
|
|
2089
2112
|
* The `homeTab` area supports top-level and second-level groups, which correspond to labeled groups and drop-down menus in the ribbon.
|
|
2090
2113
|
* @i2since 1.0
|
|
2091
2114
|
*/
|
|
2092
|
-
readonly homeTab: IActionArea<IHomeTabSystemGroups>;
|
|
2115
|
+
readonly homeTab: IActionArea<IHomeTabSystemGroups, IGroup>;
|
|
2093
2116
|
};
|
|
2094
2117
|
/**
|
|
2095
2118
|
* Gets the area that represents the chart's pop-up menu.
|
|
@@ -2098,7 +2121,7 @@ export declare namespace commands {
|
|
|
2098
2121
|
* The `chartPopupMenu` area supports only top-level groups, which correspond to one level of pop-up menu flyout.
|
|
2099
2122
|
* @i2since 1.0
|
|
2100
2123
|
*/
|
|
2101
|
-
readonly chartPopupMenu: IActionArea<
|
|
2124
|
+
readonly chartPopupMenu: IActionArea<IChartPopupMenuSystemGroups, IChartPopupMenuGroup>;
|
|
2102
2125
|
/**
|
|
2103
2126
|
* Unregisters and removes a command and all its actions from the application.
|
|
2104
2127
|
*
|
|
@@ -2250,6 +2273,22 @@ export declare namespace commands {
|
|
|
2250
2273
|
*/
|
|
2251
2274
|
readonly select: GroupId;
|
|
2252
2275
|
}
|
|
2276
|
+
/**
|
|
2277
|
+
* A lookup table for the group identifiers of the default context menu action groups.
|
|
2278
|
+
* @i2since 1.2
|
|
2279
|
+
*/
|
|
2280
|
+
export interface IChartPopupMenuSystemGroups {
|
|
2281
|
+
/**
|
|
2282
|
+
* Gets the identifier of the system action group related to selection.
|
|
2283
|
+
* @i2since 1.2
|
|
2284
|
+
*/
|
|
2285
|
+
readonly select: GroupId;
|
|
2286
|
+
/**
|
|
2287
|
+
* Gets the identifier of the system action group reated to discover.
|
|
2288
|
+
* @i2since 1.0
|
|
2289
|
+
*/
|
|
2290
|
+
readonly discover: GroupId;
|
|
2291
|
+
}
|
|
2253
2292
|
}
|
|
2254
2293
|
|
|
2255
2294
|
/**
|