@openui5/types 1.134.0 → 1.135.0

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.
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.134.0
1
+ // For Library Version: 1.135.0
2
2
 
3
3
  declare module "sap/ui/mdc/AggregationBaseDelegate" {
4
4
  import BaseDelegate from "sap/ui/mdc/BaseDelegate";
@@ -3313,7 +3313,7 @@ declare module "sap/ui/mdc/library" {
3313
3313
  /**
3314
3314
  * Describes the filter conditions
3315
3315
  */
3316
- filter?: State.XCondition;
3316
+ filter?: Record<string, State.XCondition[]>;
3317
3317
  /**
3318
3318
  * Describes the filter fields
3319
3319
  */
@@ -3468,7 +3468,12 @@ declare module "sap/ui/mdc/library" {
3468
3468
  /**
3469
3469
  * Closes the container
3470
3470
  */
3471
- close(): void;
3471
+ close(
3472
+ /**
3473
+ * If set, closing must not restore the focus on the field
3474
+ */
3475
+ bDoNotRestoreFocus: boolean
3476
+ ): void;
3472
3477
  /**
3473
3478
  * Opens the container
3474
3479
  *
@@ -3541,7 +3546,12 @@ declare module "sap/ui/mdc/library" {
3541
3546
  /**
3542
3547
  * Closes the container
3543
3548
  */
3544
- close(): void;
3549
+ close(
3550
+ /**
3551
+ * If set, closing must not restore the focus on the field
3552
+ */
3553
+ bDoNotRestoreFocus: boolean
3554
+ ): void;
3545
3555
  /**
3546
3556
  * Determines the item (key and description) for a given value.
3547
3557
  *
@@ -21683,13 +21693,23 @@ declare module "sap/ui/mdc/valuehelp/base/Container" {
21683
21693
  /**
21684
21694
  * Closes the container
21685
21695
  */
21686
- close(): void;
21696
+ close(
21697
+ /**
21698
+ * If set, closing must not restore the focus on the field
21699
+ */
21700
+ bDoNotRestoreFocus: boolean
21701
+ ): void;
21687
21702
  /**
21688
21703
  * Closes the container control or element.
21689
21704
  *
21690
21705
  * @ui5-protected Do not call from applications (only from related classes in the framework)
21691
21706
  */
21692
- closeContainer(): void;
21707
+ closeContainer(
21708
+ /**
21709
+ * If set, closing must not restore the focus on the field
21710
+ */
21711
+ bDoNotRestoreFocus: boolean
21712
+ ): void;
21693
21713
  /**
21694
21714
  * Destroys all the content in the aggregation {@link #getContent content}.
21695
21715
  *
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.134.0
1
+ // For Library Version: 1.135.0
2
2
 
3
3
  declare module "sap/ui/rta/api/startAdaptation" {
4
4
  import Control from "sap/ui/core/Control";
@@ -105,6 +105,10 @@ declare module "sap/ui/rta/plugin/annotations/AnnotationChangeDialog" {
105
105
  * Change type
106
106
  */
107
107
  annotationChangeType: string;
108
+ /**
109
+ * Url of the OData service
110
+ */
111
+ serviceUrl: string;
108
112
  /**
109
113
  * Change content
110
114
  */
@@ -117,11 +121,25 @@ declare module "sap/ui/rta/plugin/annotations/AnnotationChangeDialog" {
117
121
  * New value
118
122
  */
119
123
  value: string;
124
+ /**
125
+ * New value as translatable text. If given, the value is ignored
126
+ */
127
+ text: string;
128
+ /**
129
+ * Object template to construct a return object. If given the applyChange function will return an object
130
+ * as value, which is parsed from the template string.
131
+ */
132
+ objectTemplateInfo?: {
133
+ /**
134
+ * Stringified template to be used for constructing the return object
135
+ */
136
+ templateAsString?: string;
137
+ /**
138
+ * Placeholder in the template string. Will be replaced by the new value
139
+ */
140
+ placeholder?: string;
141
+ };
120
142
  };
121
- /**
122
- * Url of the OData service
123
- */
124
- serviceUrl: string;
125
143
  };
126
144
 
127
145
  /**
@@ -148,6 +166,14 @@ declare module "sap/ui/rta/plugin/annotations/AnnotationChangeDialog" {
148
166
  * Current value of the property
149
167
  */
150
168
  currentValue: string;
169
+ /**
170
+ * Label of the property. If not given, the property name is used
171
+ */
172
+ label?: string;
173
+ /**
174
+ * Tooltip of the property
175
+ */
176
+ tooltip?: string;
151
177
  }>;
152
178
  /**
153
179
  * Array of possible values for value list type properties
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.134.0
1
+ // For Library Version: 1.135.0
2
2
 
3
3
  declare module "sap/ui/suite/library" {
4
4
  /**
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.134.0
1
+ // For Library Version: 1.135.0
2
2
 
3
3
  declare module "sap/ui/support/library" {
4
4
  /**
@@ -413,12 +413,6 @@ declare namespace sap {
413
413
  * @since 1.50
414
414
  */
415
415
  namespace support {
416
- /**
417
- * The CoreFacade interface allows rule developers to access the metadata, models, UI areas and components
418
- * of the Core.
419
- *
420
- * Usage: The CoreFacade is passed as second argument to all rule check functions.
421
- */
422
416
  class CoreFacade {
423
417
  /**
424
418
  * @ui5-protected Do not call from applications (only from related classes in the framework)
@@ -427,26 +421,46 @@ declare namespace sap {
427
421
 
428
422
  /**
429
423
  * Gets the Components from the Core object.
424
+ *
425
+ *
426
+ * @returns Object with all components, keyed by their ID
430
427
  */
431
- getComponents(): void;
428
+ getComponents(): Record<
429
+ import("sap/ui/core/library").ID,
430
+ import("sap/ui/core/Component").default
431
+ >;
432
432
  /**
433
433
  * Gets the Metadata from the Core object.
434
+ *
435
+ * @deprecated As of version 1.119. without replacement. In future major versions, the Core no longer has
436
+ * a class nature and no longer inherits from sap.ui.base.Object and therefore no longer has metadata.
437
+ *
438
+ * @returns Metadata object describing the Core object
434
439
  */
435
- getMetadata(): void;
440
+ getMetadata(): import("sap/ui/base/Metadata").default;
436
441
  /**
437
442
  * Gets the Models from the Core object.
443
+ *
444
+ * @deprecated As of version 1.118.0. without replacement. In future major versions, the Core no longer
445
+ * has global models.
446
+ *
447
+ * @returns Object with all models, keyed by their name
438
448
  */
439
- getModels(): void;
449
+ getModels():
450
+ | Record<string, import("sap/ui/model/Model").default>
451
+ | undefined;
440
452
  /**
441
453
  * Gets the UI areas from the Core object.
454
+ *
455
+ *
456
+ * @returns Object with all UIAreas, keyed by their ID
442
457
  */
443
- getUIAreas(): void;
458
+ getUIAreas(): Record<
459
+ import("sap/ui/core/library").ID,
460
+ import("sap/ui/core/UIArea").default
461
+ >;
444
462
  }
445
- /**
446
- * The IssueManagerFacade allows rule developers to add new issues.
447
- *
448
- * Usage: The IssueManagerFacade is passed as first argument to all rule check functions.
449
- */
463
+
450
464
  class IssueManagerFacade {
451
465
  /**
452
466
  * @ui5-protected Do not call from applications (only from related classes in the framework)
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.134.0
1
+ // For Library Version: 1.135.0
2
2
 
3
3
  declare module "sap/ui/table/library" {
4
4
  import TreeAutoExpandMode1 from "sap/ui/model/TreeAutoExpandMode";
@@ -619,9 +619,9 @@ declare module "sap/ui/table/AnalyticalTable" {
619
619
  import Event from "sap/ui/base/Event";
620
620
 
621
621
  /**
622
- * Table which handles analytical OData backends. The AnalyticalTable only works with an AnalyticalBinding
623
- * and correctly annotated OData services. Please check on the SAP Annotations for OData Version 2.0 documentation
624
- * for further details.
622
+ * Table that handles analytical OData back-end scenarios. The `AnalyticalTable` only works with {@link sap.ui.model.analytics.AnalyticalBinding AnalyticalBinding }
623
+ * and correctly annotated OData services. Please check out the functionality of analytical binding and
624
+ * the SAP Annotations for OData Version 2.0 documentation for further details.
625
625
  */
626
626
  export default class AnalyticalTable extends Table {
627
627
  /**
@@ -3071,7 +3071,7 @@ declare module "sap/ui/table/plugins/MultiSelectionPlugin" {
3071
3071
  */
3072
3072
  export default class MultiSelectionPlugin extends SelectionPlugin {
3073
3073
  /**
3074
- * Constructs an instance of sap.ui.table.plugins.MultiSelectionPlugin
3074
+ * Constructs an instance of sap.ui.table.plugins.MultiSelectionPlugin.
3075
3075
  *
3076
3076
  * Accepts an object literal `mSettings` that defines initial property values, aggregated and associated
3077
3077
  * objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description
@@ -3570,20 +3570,16 @@ declare module "sap/ui/table/plugins/SelectionPlugin" {
3570
3570
  import { PropertyBindingInfo } from "sap/ui/base/ManagedObject";
3571
3571
 
3572
3572
  /**
3573
- * Implements the selection methods for a table.
3573
+ * Base class for the selection plugins. A selection plugin is responsible for the selection behavior of
3574
+ * the table. It handles the selection state and provides information about the selection state to the table.
3575
+ * The subclass is also responsible for firing the `selectionChange` event when the selection is changed.
3576
+ *
3577
+ * Do not add more than one selection plugin to a table.
3574
3578
  *
3575
3579
  * @since 1.64
3576
- * @experimental As of version 1.64.
3577
3580
  */
3578
3581
  export default abstract class SelectionPlugin extends UI5Element {
3579
3582
  /**
3580
- * Constructs an instance of sap.ui.table.plugins.SelectionPlugin
3581
- *
3582
- * The following restrictions apply:
3583
- * - Do not create subclasses of the `SelectionPlugin`. The API is subject to change. **Note:** Subclasses
3584
- * provided by the UI5 framework that are not explicitly marked as experimental or restricted in any other
3585
- * way can be used on a regular basis.
3586
- *
3587
3583
  * Accepts an object literal `mSettings` that defines initial property values, aggregated and associated
3588
3584
  * objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description
3589
3585
  * of the syntax of the settings object.
@@ -3749,8 +3745,6 @@ declare module "sap/ui/table/plugins/SelectionPlugin" {
3749
3745
  }
3750
3746
  /**
3751
3747
  * Describes the settings that can be provided to the SelectionPlugin constructor.
3752
- *
3753
- * @experimental As of version 1.64.
3754
3748
  */
3755
3749
  export interface $SelectionPluginSettings extends $ElementSettings {
3756
3750
  /**
@@ -11437,8 +11431,6 @@ declare namespace sap {
11437
11431
 
11438
11432
  "sap/ui/table/plugins/SelectionPlugin": undefined;
11439
11433
 
11440
- "sap/ui/table/plugins/V4Aggregation": undefined;
11441
-
11442
11434
  "sap/ui/table/Row": undefined;
11443
11435
 
11444
11436
  "sap/ui/table/RowAction": undefined;
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.134.0
1
+ // For Library Version: 1.135.0
2
2
 
3
3
  declare module "sap/ui/testrecorder/library" {}
4
4
 
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.134.0
1
+ // For Library Version: 1.135.0
2
2
 
3
3
  declare module "sap/ui/unified/library" {
4
4
  /**
@@ -1375,6 +1375,21 @@ declare module "sap/ui/unified/Calendar" {
1375
1375
  */
1376
1376
  oInitialFocusedDate?: object
1377
1377
  ): this;
1378
+ /**
1379
+ * Setter for the property `intervalSelection`. If set to `true`, an interval of dates can be selected.
1380
+ *
1381
+ * **Note:** This property should be set to `false` if `singleSelection` is set to `false`, as selecting
1382
+ * multiple intervals is not supported.
1383
+ *
1384
+ *
1385
+ * @returns Reference to `this` for method chaining
1386
+ */
1387
+ setIntervalSelection(
1388
+ /**
1389
+ * Indicates if `intervalSelection` should be enabled
1390
+ */
1391
+ bEnabled: boolean
1392
+ ): this;
1378
1393
  /**
1379
1394
  * Sets the associated {@link #getLegend legend}.
1380
1395
  *
@@ -1534,6 +1549,22 @@ declare module "sap/ui/unified/Calendar" {
1534
1549
  */
1535
1550
  bShowWeekNumbers?: boolean
1536
1551
  ): this;
1552
+ /**
1553
+ * Setter for the property `singleSelection`. If set to `true` only a single date or single interval, when
1554
+ * `intervalSelection` is set to `true`, can be selected.
1555
+ *
1556
+ * **Note:** This property should be set to `true` if `intervalSelection` is set to `true`, as selecting
1557
+ * multiple intervals is not supported.
1558
+ *
1559
+ *
1560
+ * @returns Reference to `this` for method chaining
1561
+ */
1562
+ setSingleSelection(
1563
+ /**
1564
+ * Indicates if `singleSelection` should be enabled
1565
+ */
1566
+ bEnabled: boolean
1567
+ ): this;
1537
1568
  /**
1538
1569
  * Sets a new value for property {@link #getWidth width}.
1539
1570
  *
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.134.0
1
+ // For Library Version: 1.135.0
2
2
 
3
3
  declare module "sap/ui/ux3/library" {
4
4
  /**
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.134.0
1
+ // For Library Version: 1.135.0
2
2
 
3
3
  declare module "sap/ui/webc/common/library" {}
4
4
 
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.134.0
1
+ // For Library Version: 1.135.0
2
2
 
3
3
  declare module "sap/ui/webc/fiori/library" {
4
4
  /**
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.134.0
1
+ // For Library Version: 1.135.0
2
2
 
3
3
  declare module "sap/ui/webc/main/library" {
4
4
  /**
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.134.0
1
+ // For Library Version: 1.135.0
2
2
 
3
3
  declare module "sap/uxap/library" {
4
4
  /**
@@ -7487,6 +7487,15 @@ declare module "sap/uxap/ObjectPageSectionBase" {
7487
7487
  * If you want to change some of the button properties, you would need to bind them to a model.
7488
7488
  */
7489
7489
  getCustomAnchorBarButton(): Button;
7490
+ /**
7491
+ * Returns the effectively applied title level. Could be different than "titleLevel" property, according
7492
+ * to internal UX rules.
7493
+ *
7494
+ * @ui5-protected Do not call from applications (only from related classes in the framework)
7495
+ *
7496
+ * @returns the effective title level
7497
+ */
7498
+ getEffectiveTitleLevel(): string;
7490
7499
  /**
7491
7500
  * Gets current value of property {@link #getImportance importance}.
7492
7501
  *