@i2analyze/notebook-sdk 1.6.0-dev.20 → 1.6.0-dev.22

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.
@@ -2313,16 +2313,71 @@ export declare namespace commands {
2313
2313
  */
2314
2314
  readonly systemCommands: ISystemCommands;
2315
2315
  }
2316
+ /**
2317
+ * An area that represents the **Home** tab in the application ribbon, which contains system groups.
2318
+ * @i2since 1.6
2319
+ */
2320
+ export interface IHomeTabActionArea extends IActionArea<IHomeTabSystemGroups> {
2321
+ }
2322
+ /**
2323
+ * An area that represents a custom tab in the application ribbon.
2324
+ * @i2since 1.6
2325
+ */
2326
+ export interface IRibbonTabActionArea extends Omit<IActionArea<undefined>, 'systemGroups'> {
2327
+ }
2316
2328
  /**
2317
2329
  * The i2 Notebook application ribbon.
2318
2330
  * @i2since 1.0
2319
2331
  */
2320
2332
  export interface IApplicationRibbon {
2321
2333
  /**
2322
- * Gets the area that represents the "Home" tab in the application ribbon.
2334
+ * Gets the area that represents the **Home** tab in the application ribbon.
2323
2335
  * @i2since 1.0
2324
2336
  */
2325
- readonly homeTab: IActionArea<IHomeTabSystemGroups>;
2337
+ readonly homeTab: IHomeTabActionArea;
2338
+ /**
2339
+ * Adds a new tab to the application ribbon.
2340
+ * @param config - The information necessary for creating the tab.
2341
+ * @param insertBefore - The existing tab to insert the new tab immediately before.
2342
+ * If this is not specified, the new tab is added after all the existing tabs.
2343
+ * @returns The area that represents the new tab in the application ribbon.
2344
+ * @i2since 1.6
2345
+ */
2346
+ addTab(config: IRibbonTabConfig, insertBefore?: RibbonTabId | IRibbonTabActionArea | IHomeTabActionArea): IRibbonTabActionArea;
2347
+ /**
2348
+ * Gets the area that represents the specified tab in the application ribbon.
2349
+ * @param id - The identifier of the tab.
2350
+ * @returns An object that you can use to add actions or a group to the located area.
2351
+ * @throws `Error` if the specified tab does not exist.
2352
+ * @i2since 1.6
2353
+ */
2354
+ getTab(id: RibbonTabId): IRibbonTabActionArea;
2355
+ }
2356
+ /**
2357
+ * An identifier for a tab in the application ribbon.
2358
+ * @i2since 1.6
2359
+ */
2360
+ export type RibbonTabId = string;
2361
+ /**
2362
+ * A set of information for creating a tab in the application ribbon.
2363
+ * @i2since 1.6
2364
+ */
2365
+ export interface IRibbonTabConfig {
2366
+ /**
2367
+ * Gets the identifier of the tab.
2368
+ * @i2since 1.6
2369
+ */
2370
+ readonly id: RibbonTabId;
2371
+ /**
2372
+ * Gets the label for the tab.
2373
+ * @i2since 1.6
2374
+ */
2375
+ readonly label: string;
2376
+ /**
2377
+ * Gets the tooltip for the tab.
2378
+ * @i2since 1.6
2379
+ */
2380
+ readonly tooltip?: string;
2326
2381
  }
2327
2382
  /**
2328
2383
  * A lookup table for the command identifiers of the default system commands.
@@ -4429,11 +4484,6 @@ export declare namespace schema {
4429
4484
  * @i2since 1.6
4430
4485
  */
4431
4486
  readonly propertyTypes?: Iterable<IPropertyTypeData>;
4432
- /**
4433
- * Gets the label definition for the custom item type.
4434
- * @i2since 1.6
4435
- */
4436
- readonly labelDefinition?: Iterable<ILabelPartData>;
4437
4487
  }
4438
4488
  /**
4439
4489
  * A set of data for creating a custom entity type.
@@ -4452,43 +4502,6 @@ export declare namespace schema {
4452
4502
  */
4453
4503
  export interface IChartLinkTypeData extends IChartItemTypeDataBase {
4454
4504
  }
4455
- /**
4456
- * A set of data for creating a part of a label from a property value.
4457
- * @i2since 1.6
4458
- */
4459
- export interface IChartPropertyLabelPartData {
4460
- /**
4461
- * Gets the type of the property whose value is to be used for the label part.
4462
- * @i2since 1.6
4463
- */
4464
- readonly propertyType: IChartPropertyType;
4465
- /**
4466
- * Gets the type of label part.
4467
- * @i2since 1.6
4468
- */
4469
- readonly type: 'chartProperty';
4470
- }
4471
- /**
4472
- * A set of data for creating a label definition.
4473
- * @i2since 1.6
4474
- */
4475
- export type ILabelPartData = ILiteralLabelPart | IChartPropertyLabelPartData | IPendingPropertyLabelPart;
4476
- /**
4477
- * A part of a label that consists of a pending custom property type.
4478
- * @i2since 1.6
4479
- */
4480
- export interface IPendingPropertyLabelPart {
4481
- /**
4482
- * Gets the type of the property whose value is used for the label part.
4483
- * @i2since 1.6
4484
- */
4485
- readonly propertyType: IPendingPropertyType;
4486
- /**
4487
- * Gets the type of label part.
4488
- * @i2since 1.6
4489
- */
4490
- readonly type: 'chartProperty';
4491
- }
4492
4505
  /**
4493
4506
  * A set of data for creating a custom property type.
4494
4507
  * @i2since 1.6
@@ -4504,6 +4517,14 @@ export declare namespace schema {
4504
4517
  * @i2since 1.6
4505
4518
  */
4506
4519
  readonly logicalType: CustomLogicalType;
4520
+ /**
4521
+ * Indicates whether the custom property type forms part of the item type's label definition.
4522
+ *
4523
+ * @remarks
4524
+ * This field is present only when the custom property type has a string-based logical type.
4525
+ * @i2since 1.6
4526
+ */
4527
+ readonly isLabelPart?: boolean;
4507
4528
  }
4508
4529
  /**
4509
4530
  * An item type that has been created in a transaction handler, but has not yet been added to a chart's schema.
@@ -4534,14 +4555,6 @@ export declare namespace schema {
4534
4555
  * @i2since 1.6
4535
4556
  */
4536
4557
  setDisplayName(displayName: string): this;
4537
- /**
4538
- * Sets the label definition of the item type.
4539
- *
4540
- * @param labelDefinition - The label definition to set.
4541
- * @returns This item type, with the new label definition in place.
4542
- * @i2since 1.6
4543
- */
4544
- setLabelDefinition(labelDefinition: Iterable<ILabelPartData>): this;
4545
4558
  }
4546
4559
  /**
4547
4560
  * A set of methods for adding and modifying custom property types on schema and custom item types.
@@ -4597,6 +4610,14 @@ export declare namespace schema {
4597
4610
  * @i2since 1.6
4598
4611
  */
4599
4612
  logicalType: CustomLogicalType;
4613
+ /**
4614
+ * Indicates whether the property type forms part of the item type's label definition.
4615
+ *
4616
+ * @remarks
4617
+ * This field is present only when the property type has a string-based logical type.
4618
+ * @i2since 1.6
4619
+ */
4620
+ readonly isLabelPart?: boolean;
4600
4621
  }
4601
4622
  /**
4602
4623
  * A set of methods for modifying a custom property type.
@@ -4619,6 +4640,14 @@ export declare namespace schema {
4619
4640
  * @i2since 1.6
4620
4641
  */
4621
4642
  moveAfter(propertyType: IChartPropertyType | IPendingPropertyType | null): this;
4643
+ /**
4644
+ * Sets whether the property type forms part of the item type's label definition.
4645
+ *
4646
+ * @param isLabelPart - `true` if the property type is part of the label definition; `false` otherwise.
4647
+ * @returns This property type, with its new setting.
4648
+ * @i2since 1.6
4649
+ */
4650
+ setIsLabelPart(isLabelPart: boolean): this;
4622
4651
  }
4623
4652
  /**
4624
4653
  * The type of a schema.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.6.0-dev.20",
3
+ "version": "1.6.0-dev.22",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {