tabris 3.11.0-dev.20250522 → 3.11.0-dev.20250524

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/boot.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Tabris.js 3.11.0-dev.20250522+0310
2
+ * Tabris.js 3.11.0-dev.20250524+0310
3
3
  *
4
4
  * Copyright (c) 2014, 2020 EclipseSource Inc.
5
5
  * All rights reserved.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabris",
3
- "version": "3.11.0-dev.20250522+0310",
3
+ "version": "3.11.0-dev.20250524+0310",
4
4
  "description": "Mobile apps with native UIs in JavaScript",
5
5
  "keywords": [
6
6
  "native",
package/tabris.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for Tabris.js 3.11.0-dev.20250522+0310
1
+ // Type definitions for Tabris.js 3.11.0-dev.20250524+0310
2
2
  /// <reference path="globals.d.ts" />
3
3
 
4
4
  // General helper types
@@ -7263,6 +7263,12 @@ export class Widget<TData extends object = any> extends NativeObject {
7263
7263
  */
7264
7264
  protected _setParent(parent: Composite, index?: number): void;
7265
7265
 
7266
+ /**
7267
+ * Sets focus on the widget when accessibility services are enabled, helping screen readers highlight
7268
+ * the element for improved navigation.
7269
+ */
7270
+ accessibilityFocus(): this;
7271
+
7266
7272
  /**
7267
7273
  * Starts an animation that transforms the given properties from their current values to the given ones.
7268
7274
  * Supported properties are *transform* and *opacity*. Returns a promise that is resolved once the
@@ -7332,6 +7338,18 @@ export class Widget<TData extends object = any> extends NativeObject {
7332
7338
  */
7333
7339
  readonly absoluteBounds: Bounds;
7334
7340
 
7341
+ /**
7342
+ * Hides the widget from accessibility services, preventing screen readers from announcing it when
7343
+ * active.
7344
+ */
7345
+ accessibilityHidden: boolean;
7346
+
7347
+ /**
7348
+ * Provides a textual description of the widget for screen readers, describing its purpose or function
7349
+ * to visually impaired users.
7350
+ */
7351
+ accessibilityLabel: string;
7352
+
7335
7353
  /**
7336
7354
  * The background of the widget. If given a plain string it is interpreted first as a gradient, then as
7337
7355
  * a color, and finally as an image path, whichever passes first. Use object literals or instances of
@@ -7597,6 +7615,16 @@ export class Widget<TData extends object = any> extends NativeObject {
7597
7615
  */
7598
7616
  onTouchStart: Listeners<WidgetTouchEvent<this>>;
7599
7617
 
7618
+ /**
7619
+ * Fired when the [*accessibilityHidden*](#accessibilityHidden) property has changed.
7620
+ */
7621
+ onAccessibilityHiddenChanged: ChangeListeners<this, 'accessibilityHidden'>;
7622
+
7623
+ /**
7624
+ * Fired when the [*accessibilityLabel*](#accessibilityLabel) property has changed.
7625
+ */
7626
+ onAccessibilityLabelChanged: ChangeListeners<this, 'accessibilityLabel'>;
7627
+
7600
7628
  /**
7601
7629
  * Fired when the [*background*](#background) property has changed.
7602
7630
  */
package/tabris.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Tabris.js 3.11.0-dev.20250522+0310
2
+ * Tabris.js 3.11.0-dev.20250524+0310
3
3
  *
4
4
  * Copyright (c) 2014, 2020 EclipseSource Inc.
5
5
  * All rights reserved.
@@ -5034,7 +5034,7 @@ class Tabris extends NativeObject {
5034
5034
  this.$publishProxies();
5035
5035
  }
5036
5036
  get version() {
5037
- return '3.11.0-dev.20250522+0310';
5037
+ return '3.11.0-dev.20250524+0310';
5038
5038
  }
5039
5039
  get started() {
5040
5040
  return !!this._started;
@@ -6158,6 +6158,10 @@ class Widget extends NativeObject {
6158
6158
  }
6159
6159
  return this._parent._children((widget) => widget !== this).filter(selector);
6160
6160
  }
6161
+ accessibilityFocus() {
6162
+ this._nativeCall('accessibilityFocus', {});
6163
+ return this;
6164
+ }
6161
6165
  set class(value) {
6162
6166
  if (this._isDisposed) {
6163
6167
  hint(this, 'Cannot set property "class" on disposed object');
@@ -6434,6 +6438,14 @@ NativeObject.defineProperties(Widget.prototype, {
6434
6438
  padding: {
6435
6439
  type: types.BoxDimensions,
6436
6440
  default: Object.freeze({ left: 0, right: 0, top: 0, bottom: 0 })
6441
+ },
6442
+ accessibilityHidden: {
6443
+ type: types.boolean,
6444
+ default: false
6445
+ },
6446
+ accessibilityLabel: {
6447
+ type: types.string,
6448
+ default: ''
6437
6449
  }
6438
6450
  });
6439
6451
  layoutDataProps.forEach(prop => {