Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@akylas/nativescript

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@akylas/nativescript - npm Package Compare versions

Comparing version 8.1.3 to 8.1.4

116

accessibility/accessibility-types.d.ts

@@ -6,3 +6,3 @@ import type { EventData } from '../data/observable';

*/
AllowsDirectInteraction = "allowsDirectInteraction",
AllowsDirectInteraction = 0,
/**

@@ -12,15 +12,15 @@ * The element should cause an automatic page turn when VoiceOver finishes reading the text within it.

*/
CausesPageTurn = "pageTurn",
CausesPageTurn = 1,
/**
* The element is not enabled and does not respond to user interaction.
*/
NotEnabled = "disabled",
NotEnabled = 2,
/**
* The element is currently selected.
*/
Selected = "selected",
Selected = 3,
/**
* The element frequently updates its label or value.
*/
UpdatesFrequently = "frequentUpdates"
UpdatesFrequently = 4
}

@@ -31,87 +31,87 @@ export declare enum AccessibilityRole {

*/
Adjustable = "adjustable",
Adjustable = 0,
/**
* The element should be treated as a button.
*/
Button = "button",
Button = 1,
/**
* The element behaves like a Checkbox
*/
Checkbox = "checkbox",
Checkbox = 2,
/**
* The element is a header that divides content into sections, such as the title of a navigation bar.
*/
Header = "header",
Header = 3,
/**
* The element should be treated as an image.
*/
Image = "image",
Image = 4,
/**
* The element should be treated as a image button.
*/
ImageButton = "imageButton",
ImageButton = 5,
/**
* The element behaves as a keyboard key.
*/
KeyboardKey = "keyboardKey",
KeyboardKey = 6,
/**
* The element should be treated as a link.
*/
Link = "link",
Link = 7,
/**
* The element has no traits.
*/
None = "none",
None = 8,
/**
* The element plays its own sound when activated.
*/
PlaysSound = "plays",
PlaysSound = 9,
/**
* The element behaves like a ProgressBar
*/
ProgressBar = "progressBar",
ProgressBar = 10,
/**
* The element behaves like a RadioButton
*/
RadioButton = "radioButton",
RadioButton = 11,
/**
* The element should be treated as a search field.
*/
Search = "search",
Search = 12,
/**
* The element behaves like a SpinButton
*/
SpinButton = "spinButton",
SpinButton = 13,
/**
* The element starts a media session when it is activated.
*/
StartsMediaSession = "startsMedia",
StartsMediaSession = 14,
/**
* The element should be treated as static text that cannot change.
*/
StaticText = "text",
StaticText = 15,
/**
* The element provides summary information when the application starts.
*/
Summary = "summary",
Summary = 16,
/**
* The element behaves like a switch
*/
Switch = "switch"
Switch = 17
}
export declare enum AccessibilityState {
Selected = "selected",
Checked = "checked",
Unchecked = "unchecked",
Disabled = "disabled"
Selected = 0,
Checked = 1,
Unchecked = 2,
Disabled = 3
}
export declare enum AccessibilityLiveRegion {
None = "none",
Polite = "polite",
Assertive = "assertive"
None = 0,
Polite = 1,
Assertive = 2
}
export declare enum IOSPostAccessibilityNotificationType {
Announcement = "announcement",
Screen = "screen",
Layout = "layout"
Announcement = 0,
Screen = 1,
Layout = 2
}

@@ -122,99 +122,99 @@ export declare enum AndroidAccessibilityEvent {

*/
INVALID_POSITION = "invalid_position",
INVALID_POSITION = 0,
/**
* Maximum length of the text fields.
*/
MAX_TEXT_LENGTH = "max_text_length",
MAX_TEXT_LENGTH = 1,
/**
* Represents the event of clicking on a android.view.View like android.widget.Button, android.widget.CompoundButton, etc.
*/
VIEW_CLICKED = "view_clicked",
VIEW_CLICKED = 2,
/**
* Represents the event of long clicking on a android.view.View like android.widget.Button, android.widget.CompoundButton, etc.
*/
VIEW_LONG_CLICKED = "view_long_clicked",
VIEW_LONG_CLICKED = 3,
/**
* Represents the event of selecting an item usually in the context of an android.widget.AdapterView.
*/
VIEW_SELECTED = "view_selected",
VIEW_SELECTED = 4,
/**
* Represents the event of setting input focus of a android.view.View.
*/
VIEW_FOCUSED = "view_focused",
VIEW_FOCUSED = 5,
/**
* Represents the event of changing the text of an android.widget.EditText.
*/
VIEW_TEXT_CHANGED = "view_text_changed",
VIEW_TEXT_CHANGED = 6,
/**
* Represents the event of opening a android.widget.PopupWindow, android.view.Menu, android.app.Dialog, etc.
*/
WINDOW_STATE_CHANGED = "window_state_changed",
WINDOW_STATE_CHANGED = 7,
/**
* Represents the event showing a android.app.Notification.
*/
NOTIFICATION_STATE_CHANGED = "notification_state_changed",
NOTIFICATION_STATE_CHANGED = 8,
/**
* Represents the event of a hover enter over a android.view.View.
*/
VIEW_HOVER_ENTER = "view_hover_enter",
VIEW_HOVER_ENTER = 9,
/**
* Represents the event of a hover exit over a android.view.View.
*/
VIEW_HOVER_EXIT = "view_hover_exit",
VIEW_HOVER_EXIT = 10,
/**
* Represents the event of starting a touch exploration gesture.
*/
TOUCH_EXPLORATION_GESTURE_START = "touch_exploration_gesture_start",
TOUCH_EXPLORATION_GESTURE_START = 11,
/**
* Represents the event of ending a touch exploration gesture.
*/
TOUCH_EXPLORATION_GESTURE_END = "touch_exploration_gesture_end",
TOUCH_EXPLORATION_GESTURE_END = 12,
/**
* Represents the event of changing the content of a window and more specifically the sub-tree rooted at the event's source.
*/
WINDOW_CONTENT_CHANGED = "window_content_changed",
WINDOW_CONTENT_CHANGED = 13,
/**
* Represents the event of scrolling a view.
*/
VIEW_SCROLLED = "view_scrolled",
VIEW_SCROLLED = 14,
/**
* Represents the event of changing the selection in an android.widget.EditText.
*/
VIEW_TEXT_SELECTION_CHANGED = "view_text_selection_changed",
VIEW_TEXT_SELECTION_CHANGED = 15,
/**
* Represents the event of an application making an announcement.
*/
ANNOUNCEMENT = "announcement",
ANNOUNCEMENT = 16,
/**
* Represents the event of gaining accessibility focus.
*/
VIEW_ACCESSIBILITY_FOCUSED = "view_accessibility_focused",
VIEW_ACCESSIBILITY_FOCUSED = 17,
/**
* Represents the event of clearing accessibility focus.
*/
VIEW_ACCESSIBILITY_FOCUS_CLEARED = "view_accessibility_focus_cleared",
VIEW_ACCESSIBILITY_FOCUS_CLEARED = 18,
/**
* Represents the event of traversing the text of a view at a given movement granularity.
*/
VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY = "view_text_traversed_at_movement_granularity",
VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY = 19,
/**
* Represents the event of beginning gesture detection.
*/
GESTURE_DETECTION_START = "gesture_detection_start",
GESTURE_DETECTION_START = 20,
/**
* Represents the event of ending gesture detection.
*/
GESTURE_DETECTION_END = "gesture_detection_end",
GESTURE_DETECTION_END = 21,
/**
* Represents the event of the user starting to touch the screen.
*/
TOUCH_INTERACTION_START = "touch_interaction_start",
TOUCH_INTERACTION_START = 22,
/**
* Represents the event of the user ending to touch the screen.
*/
TOUCH_INTERACTION_END = "touch_interaction_end",
TOUCH_INTERACTION_END = 23,
/**
* Mask for AccessibilityEvent all types.
*/
ALL_MASK = "all"
ALL_MASK = 24
}

@@ -221,0 +221,0 @@ export interface AccessibilityEventPerformEscape extends EventData {

@@ -6,3 +6,3 @@ export var AccessibilityTrait;

*/
AccessibilityTrait["AllowsDirectInteraction"] = "allowsDirectInteraction";
AccessibilityTrait[AccessibilityTrait["AllowsDirectInteraction"] = 0] = "AllowsDirectInteraction";
/**

@@ -12,15 +12,15 @@ * The element should cause an automatic page turn when VoiceOver finishes reading the text within it.

*/
AccessibilityTrait["CausesPageTurn"] = "pageTurn";
AccessibilityTrait[AccessibilityTrait["CausesPageTurn"] = 1] = "CausesPageTurn";
/**
* The element is not enabled and does not respond to user interaction.
*/
AccessibilityTrait["NotEnabled"] = "disabled";
AccessibilityTrait[AccessibilityTrait["NotEnabled"] = 2] = "NotEnabled";
/**
* The element is currently selected.
*/
AccessibilityTrait["Selected"] = "selected";
AccessibilityTrait[AccessibilityTrait["Selected"] = 3] = "Selected";
/**
* The element frequently updates its label or value.
*/
AccessibilityTrait["UpdatesFrequently"] = "frequentUpdates";
AccessibilityTrait[AccessibilityTrait["UpdatesFrequently"] = 4] = "UpdatesFrequently";
})(AccessibilityTrait || (AccessibilityTrait = {}));

@@ -32,90 +32,90 @@ export var AccessibilityRole;

*/
AccessibilityRole["Adjustable"] = "adjustable";
AccessibilityRole[AccessibilityRole["Adjustable"] = 0] = "Adjustable";
/**
* The element should be treated as a button.
*/
AccessibilityRole["Button"] = "button";
AccessibilityRole[AccessibilityRole["Button"] = 1] = "Button";
/**
* The element behaves like a Checkbox
*/
AccessibilityRole["Checkbox"] = "checkbox";
AccessibilityRole[AccessibilityRole["Checkbox"] = 2] = "Checkbox";
/**
* The element is a header that divides content into sections, such as the title of a navigation bar.
*/
AccessibilityRole["Header"] = "header";
AccessibilityRole[AccessibilityRole["Header"] = 3] = "Header";
/**
* The element should be treated as an image.
*/
AccessibilityRole["Image"] = "image";
AccessibilityRole[AccessibilityRole["Image"] = 4] = "Image";
/**
* The element should be treated as a image button.
*/
AccessibilityRole["ImageButton"] = "imageButton";
AccessibilityRole[AccessibilityRole["ImageButton"] = 5] = "ImageButton";
/**
* The element behaves as a keyboard key.
*/
AccessibilityRole["KeyboardKey"] = "keyboardKey";
AccessibilityRole[AccessibilityRole["KeyboardKey"] = 6] = "KeyboardKey";
/**
* The element should be treated as a link.
*/
AccessibilityRole["Link"] = "link";
AccessibilityRole[AccessibilityRole["Link"] = 7] = "Link";
/**
* The element has no traits.
*/
AccessibilityRole["None"] = "none";
AccessibilityRole[AccessibilityRole["None"] = 8] = "None";
/**
* The element plays its own sound when activated.
*/
AccessibilityRole["PlaysSound"] = "plays";
AccessibilityRole[AccessibilityRole["PlaysSound"] = 9] = "PlaysSound";
/**
* The element behaves like a ProgressBar
*/
AccessibilityRole["ProgressBar"] = "progressBar";
AccessibilityRole[AccessibilityRole["ProgressBar"] = 10] = "ProgressBar";
/**
* The element behaves like a RadioButton
*/
AccessibilityRole["RadioButton"] = "radioButton";
AccessibilityRole[AccessibilityRole["RadioButton"] = 11] = "RadioButton";
/**
* The element should be treated as a search field.
*/
AccessibilityRole["Search"] = "search";
AccessibilityRole[AccessibilityRole["Search"] = 12] = "Search";
/**
* The element behaves like a SpinButton
*/
AccessibilityRole["SpinButton"] = "spinButton";
AccessibilityRole[AccessibilityRole["SpinButton"] = 13] = "SpinButton";
/**
* The element starts a media session when it is activated.
*/
AccessibilityRole["StartsMediaSession"] = "startsMedia";
AccessibilityRole[AccessibilityRole["StartsMediaSession"] = 14] = "StartsMediaSession";
/**
* The element should be treated as static text that cannot change.
*/
AccessibilityRole["StaticText"] = "text";
AccessibilityRole[AccessibilityRole["StaticText"] = 15] = "StaticText";
/**
* The element provides summary information when the application starts.
*/
AccessibilityRole["Summary"] = "summary";
AccessibilityRole[AccessibilityRole["Summary"] = 16] = "Summary";
/**
* The element behaves like a switch
*/
AccessibilityRole["Switch"] = "switch";
AccessibilityRole[AccessibilityRole["Switch"] = 17] = "Switch";
})(AccessibilityRole || (AccessibilityRole = {}));
export var AccessibilityState;
(function (AccessibilityState) {
AccessibilityState["Selected"] = "selected";
AccessibilityState["Checked"] = "checked";
AccessibilityState["Unchecked"] = "unchecked";
AccessibilityState["Disabled"] = "disabled";
AccessibilityState[AccessibilityState["Selected"] = 0] = "Selected";
AccessibilityState[AccessibilityState["Checked"] = 1] = "Checked";
AccessibilityState[AccessibilityState["Unchecked"] = 2] = "Unchecked";
AccessibilityState[AccessibilityState["Disabled"] = 3] = "Disabled";
})(AccessibilityState || (AccessibilityState = {}));
export var AccessibilityLiveRegion;
(function (AccessibilityLiveRegion) {
AccessibilityLiveRegion["None"] = "none";
AccessibilityLiveRegion["Polite"] = "polite";
AccessibilityLiveRegion["Assertive"] = "assertive";
AccessibilityLiveRegion[AccessibilityLiveRegion["None"] = 0] = "None";
AccessibilityLiveRegion[AccessibilityLiveRegion["Polite"] = 1] = "Polite";
AccessibilityLiveRegion[AccessibilityLiveRegion["Assertive"] = 2] = "Assertive";
})(AccessibilityLiveRegion || (AccessibilityLiveRegion = {}));
export var IOSPostAccessibilityNotificationType;
(function (IOSPostAccessibilityNotificationType) {
IOSPostAccessibilityNotificationType["Announcement"] = "announcement";
IOSPostAccessibilityNotificationType["Screen"] = "screen";
IOSPostAccessibilityNotificationType["Layout"] = "layout";
IOSPostAccessibilityNotificationType[IOSPostAccessibilityNotificationType["Announcement"] = 0] = "Announcement";
IOSPostAccessibilityNotificationType[IOSPostAccessibilityNotificationType["Screen"] = 1] = "Screen";
IOSPostAccessibilityNotificationType[IOSPostAccessibilityNotificationType["Layout"] = 2] = "Layout";
})(IOSPostAccessibilityNotificationType || (IOSPostAccessibilityNotificationType = {}));

@@ -127,100 +127,100 @@ export var AndroidAccessibilityEvent;

*/
AndroidAccessibilityEvent["INVALID_POSITION"] = "invalid_position";
AndroidAccessibilityEvent[AndroidAccessibilityEvent["INVALID_POSITION"] = 0] = "INVALID_POSITION";
/**
* Maximum length of the text fields.
*/
AndroidAccessibilityEvent["MAX_TEXT_LENGTH"] = "max_text_length";
AndroidAccessibilityEvent[AndroidAccessibilityEvent["MAX_TEXT_LENGTH"] = 1] = "MAX_TEXT_LENGTH";
/**
* Represents the event of clicking on a android.view.View like android.widget.Button, android.widget.CompoundButton, etc.
*/
AndroidAccessibilityEvent["VIEW_CLICKED"] = "view_clicked";
AndroidAccessibilityEvent[AndroidAccessibilityEvent["VIEW_CLICKED"] = 2] = "VIEW_CLICKED";
/**
* Represents the event of long clicking on a android.view.View like android.widget.Button, android.widget.CompoundButton, etc.
*/
AndroidAccessibilityEvent["VIEW_LONG_CLICKED"] = "view_long_clicked";
AndroidAccessibilityEvent[AndroidAccessibilityEvent["VIEW_LONG_CLICKED"] = 3] = "VIEW_LONG_CLICKED";
/**
* Represents the event of selecting an item usually in the context of an android.widget.AdapterView.
*/
AndroidAccessibilityEvent["VIEW_SELECTED"] = "view_selected";
AndroidAccessibilityEvent[AndroidAccessibilityEvent["VIEW_SELECTED"] = 4] = "VIEW_SELECTED";
/**
* Represents the event of setting input focus of a android.view.View.
*/
AndroidAccessibilityEvent["VIEW_FOCUSED"] = "view_focused";
AndroidAccessibilityEvent[AndroidAccessibilityEvent["VIEW_FOCUSED"] = 5] = "VIEW_FOCUSED";
/**
* Represents the event of changing the text of an android.widget.EditText.
*/
AndroidAccessibilityEvent["VIEW_TEXT_CHANGED"] = "view_text_changed";
AndroidAccessibilityEvent[AndroidAccessibilityEvent["VIEW_TEXT_CHANGED"] = 6] = "VIEW_TEXT_CHANGED";
/**
* Represents the event of opening a android.widget.PopupWindow, android.view.Menu, android.app.Dialog, etc.
*/
AndroidAccessibilityEvent["WINDOW_STATE_CHANGED"] = "window_state_changed";
AndroidAccessibilityEvent[AndroidAccessibilityEvent["WINDOW_STATE_CHANGED"] = 7] = "WINDOW_STATE_CHANGED";
/**
* Represents the event showing a android.app.Notification.
*/
AndroidAccessibilityEvent["NOTIFICATION_STATE_CHANGED"] = "notification_state_changed";
AndroidAccessibilityEvent[AndroidAccessibilityEvent["NOTIFICATION_STATE_CHANGED"] = 8] = "NOTIFICATION_STATE_CHANGED";
/**
* Represents the event of a hover enter over a android.view.View.
*/
AndroidAccessibilityEvent["VIEW_HOVER_ENTER"] = "view_hover_enter";
AndroidAccessibilityEvent[AndroidAccessibilityEvent["VIEW_HOVER_ENTER"] = 9] = "VIEW_HOVER_ENTER";
/**
* Represents the event of a hover exit over a android.view.View.
*/
AndroidAccessibilityEvent["VIEW_HOVER_EXIT"] = "view_hover_exit";
AndroidAccessibilityEvent[AndroidAccessibilityEvent["VIEW_HOVER_EXIT"] = 10] = "VIEW_HOVER_EXIT";
/**
* Represents the event of starting a touch exploration gesture.
*/
AndroidAccessibilityEvent["TOUCH_EXPLORATION_GESTURE_START"] = "touch_exploration_gesture_start";
AndroidAccessibilityEvent[AndroidAccessibilityEvent["TOUCH_EXPLORATION_GESTURE_START"] = 11] = "TOUCH_EXPLORATION_GESTURE_START";
/**
* Represents the event of ending a touch exploration gesture.
*/
AndroidAccessibilityEvent["TOUCH_EXPLORATION_GESTURE_END"] = "touch_exploration_gesture_end";
AndroidAccessibilityEvent[AndroidAccessibilityEvent["TOUCH_EXPLORATION_GESTURE_END"] = 12] = "TOUCH_EXPLORATION_GESTURE_END";
/**
* Represents the event of changing the content of a window and more specifically the sub-tree rooted at the event's source.
*/
AndroidAccessibilityEvent["WINDOW_CONTENT_CHANGED"] = "window_content_changed";
AndroidAccessibilityEvent[AndroidAccessibilityEvent["WINDOW_CONTENT_CHANGED"] = 13] = "WINDOW_CONTENT_CHANGED";
/**
* Represents the event of scrolling a view.
*/
AndroidAccessibilityEvent["VIEW_SCROLLED"] = "view_scrolled";
AndroidAccessibilityEvent[AndroidAccessibilityEvent["VIEW_SCROLLED"] = 14] = "VIEW_SCROLLED";
/**
* Represents the event of changing the selection in an android.widget.EditText.
*/
AndroidAccessibilityEvent["VIEW_TEXT_SELECTION_CHANGED"] = "view_text_selection_changed";
AndroidAccessibilityEvent[AndroidAccessibilityEvent["VIEW_TEXT_SELECTION_CHANGED"] = 15] = "VIEW_TEXT_SELECTION_CHANGED";
/**
* Represents the event of an application making an announcement.
*/
AndroidAccessibilityEvent["ANNOUNCEMENT"] = "announcement";
AndroidAccessibilityEvent[AndroidAccessibilityEvent["ANNOUNCEMENT"] = 16] = "ANNOUNCEMENT";
/**
* Represents the event of gaining accessibility focus.
*/
AndroidAccessibilityEvent["VIEW_ACCESSIBILITY_FOCUSED"] = "view_accessibility_focused";
AndroidAccessibilityEvent[AndroidAccessibilityEvent["VIEW_ACCESSIBILITY_FOCUSED"] = 17] = "VIEW_ACCESSIBILITY_FOCUSED";
/**
* Represents the event of clearing accessibility focus.
*/
AndroidAccessibilityEvent["VIEW_ACCESSIBILITY_FOCUS_CLEARED"] = "view_accessibility_focus_cleared";
AndroidAccessibilityEvent[AndroidAccessibilityEvent["VIEW_ACCESSIBILITY_FOCUS_CLEARED"] = 18] = "VIEW_ACCESSIBILITY_FOCUS_CLEARED";
/**
* Represents the event of traversing the text of a view at a given movement granularity.
*/
AndroidAccessibilityEvent["VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY"] = "view_text_traversed_at_movement_granularity";
AndroidAccessibilityEvent[AndroidAccessibilityEvent["VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY"] = 19] = "VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY";
/**
* Represents the event of beginning gesture detection.
*/
AndroidAccessibilityEvent["GESTURE_DETECTION_START"] = "gesture_detection_start";
AndroidAccessibilityEvent[AndroidAccessibilityEvent["GESTURE_DETECTION_START"] = 20] = "GESTURE_DETECTION_START";
/**
* Represents the event of ending gesture detection.
*/
AndroidAccessibilityEvent["GESTURE_DETECTION_END"] = "gesture_detection_end";
AndroidAccessibilityEvent[AndroidAccessibilityEvent["GESTURE_DETECTION_END"] = 21] = "GESTURE_DETECTION_END";
/**
* Represents the event of the user starting to touch the screen.
*/
AndroidAccessibilityEvent["TOUCH_INTERACTION_START"] = "touch_interaction_start";
AndroidAccessibilityEvent[AndroidAccessibilityEvent["TOUCH_INTERACTION_START"] = 22] = "TOUCH_INTERACTION_START";
/**
* Represents the event of the user ending to touch the screen.
*/
AndroidAccessibilityEvent["TOUCH_INTERACTION_END"] = "touch_interaction_end";
AndroidAccessibilityEvent[AndroidAccessibilityEvent["TOUCH_INTERACTION_END"] = 23] = "TOUCH_INTERACTION_END";
/**
* Mask for AccessibilityEvent all types.
*/
AndroidAccessibilityEvent["ALL_MASK"] = "all";
AndroidAccessibilityEvent[AndroidAccessibilityEvent["ALL_MASK"] = 24] = "ALL_MASK";
})(AndroidAccessibilityEvent || (AndroidAccessibilityEvent = {}));
//# sourceMappingURL=accessibility-types.js.map

@@ -7,5 +7,4 @@ import type { View } from '../ui/core/view';

export declare function isAccessibilityServiceEnabled(): boolean;
export declare function setupAccessibleView(view: Partial<View>): void;
export declare function updateAccessibilityProperties(view: Partial<View>): void;
export declare function sendAccessibilityEvent(view: View, eventType: AndroidAccessibilityEvent, text?: string): void;
export declare function updateContentDescription(view: View, forceUpdate?: boolean): string | null;

@@ -0,1 +1,2 @@

import { initAccessibilityFontScale } from 'accessibility';
import * as Application from '../application';

@@ -5,2 +6,3 @@ import { Trace } from '../trace';

import { notifyAccessibilityFocusState } from './accessibility-common';
import { initAccessibilityCssHelper } from './accessibility-css-helper';
import { getAndroidAccessibilityManager } from './accessibility-service';

@@ -377,5 +379,5 @@ import { AccessibilityRole, AccessibilityState, AndroidAccessibilityEvent } from './accessibility-types';

}
export function setupAccessibleView(view) {
updateAccessibilityProperties(view);
}
// export function setupAccessibleView(view: Partial<View>): void {
// updateAccessibilityProperties(view);
// }
export function updateAccessibilityProperties(view) {

@@ -453,2 +455,3 @@ if (!view.nativeViewProtected) {

}
let started = false;
function setAccessibilityDelegate(view) {

@@ -458,2 +461,7 @@ if (!view.nativeViewProtected) {

}
if (!started) {
started = true;
initAccessibilityCssHelper();
initAccessibilityFontScale();
}
ensureNativeClasses();

@@ -460,0 +468,0 @@ const androidView = view.nativeViewProtected;

@@ -5,3 +5,2 @@ import type { View } from '../ui/core/view';

export * from './font-scale';
export declare function setupAccessibleView(view: View): void;
export declare function updateAccessibilityProperties(view: View): void;

@@ -8,0 +7,0 @@ export declare const sendAccessibilityEvent: () => void;

@@ -0,3 +1,5 @@

import { initAccessibilityFontScale } from 'accessibility';
import * as Application from '../application';
import { notifyAccessibilityFocusState } from './accessibility-common';
import { initAccessibilityCssHelper } from './accessibility-css-helper';
import { AccessibilityLiveRegion, AccessibilityRole, AccessibilityState, AccessibilityTrait } from './accessibility-types';

@@ -101,15 +103,16 @@ export * from './accessibility-common';

}
export function setupAccessibleView(view) {
const uiView = view.nativeViewProtected;
if (!uiView) {
return;
}
/**
* We need to map back from the UIView to the NativeScript View.
*
* We do that by setting the uiView's tag to the View's domId.
* This way we can do reverse lookup.
*/
uiView.tag = view._domId;
}
// export function setupAccessibleView(view: View): void {
// const uiView = view.nativeViewProtected as UIView;
// if (!uiView) {
// return;
// }
// /**
// * We need to map back from the UIView to the NativeScript View.
// *
// * We do that by setting the uiView's tag to the View's domId.
// * This way we can do reverse lookup.
// */
// uiView.tag = view._domId;
// }
let started = false;
export function updateAccessibilityProperties(view) {

@@ -120,2 +123,7 @@ const uiView = view.nativeViewProtected;

}
if (!started) {
started = true;
initAccessibilityCssHelper();
initAccessibilityFontScale();
}
ensureNativeClasses();

@@ -122,0 +130,0 @@ const accessibilityRole = view.accessibilityRole;

@@ -8,4 +8,2 @@ // TODO: explain why we need to this or remov it

import { profile } from '../profiling';
import { initAccessibilityCssHelper } from '../accessibility/accessibility-css-helper';
import { initAccessibilityFontScale } from '../accessibility/font-scale';
const ActivityCreated = 'activityCreated';

@@ -125,4 +123,2 @@ const ActivityDestroyed = 'activityDestroyed';

}
initAccessibilityCssHelper();
initAccessibilityFontScale();
}

@@ -129,0 +125,0 @@ export function addCss(cssText, attributeScoped) {

@@ -13,4 +13,2 @@ // TODO: explain why we need to this or remov it

import { iOSNativeHelper } from '../utils';
import { initAccessibilityCssHelper } from '../accessibility/accessibility-css-helper';
import { initAccessibilityFontScale } from '../accessibility/font-scale';
const IOS_PLATFORM = 'ios';

@@ -373,4 +371,2 @@ const getVisibleViewController = iOSNativeHelper.getVisibleViewController;

}
initAccessibilityCssHelper();
initAccessibilityFontScale();
}

@@ -377,0 +373,0 @@ export function addCss(cssText, attributeScoped) {

**Esprima** ([esprima.org](http://esprima.org), BSD license) is a high performance,
standard-compliant [ECMAScript](http://www.ecma-international.org/publications/standards/Ecma-262.htm)
parser written in ECMAScript (also popularly known as
[JavaScript](http://en.wikipedia.org/wiki/JavaScript>JavaScript)).
[JavaScript](http://en.wikipedia.org/wiki/JavaScript).
Esprima is created and maintained by [Ariya Hidayat](http://twitter.com/ariyahidayat),

@@ -12,3 +12,3 @@ with the help of [many contributors](https://github.com/ariya/esprima/contributors).

- Sensible [syntax tree format](http://esprima.org/doc/index.html#ast) compatible with Mozilla
[Parser AST](https://developer.mozilla.org/en/SpiderMonkey/Parser_API)
[Parser AST](https://web.archive.org/web/20201119095346/https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Parser_API)
- Optional tracking of syntax node location (index-based and line-column)

@@ -23,4 +23,4 @@ - Heavily tested (> 700 [unit tests](http://esprima.org/test/) with [full code coverage](http://esprima.org/test/coverage.html))

Esprima runs on many popular web browsers, as well as other ECMAScript platforms such as
[Rhino](http://www.mozilla.org/rhino), [Nashorn](http://openjdk.java.net/projects/nashorn/), and [Node.js](https://npmjs.org/package/esprima).
[Rhino](https://github.com/mozilla/rhino), [Nashorn](http://openjdk.java.net/projects/nashorn/), and [Node.js](https://npmjs.org/package/esprima).
For more information, check the web site [esprima.org](http://esprima.org).

@@ -6,3 +6,3 @@ {

"description": "A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.",
"version": "8.1.3",
"version": "8.1.4",
"homepage": "https://nativescript.org",

@@ -9,0 +9,0 @@ "repository": {

@@ -179,2 +179,3 @@ {

"android.animation:StateListAnimator*",
"android.animation:TimeInterpolator*",
"android.animation.Animator:AnimatorListener*",

@@ -181,0 +182,0 @@ "android.provider:Settings*",

@@ -32,2 +32,4 @@ import { IOSActionItemSettings } from '.';

private updateFlatness;
private _getAppearance;
private _updateAppearance;
onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void;

@@ -34,0 +36,0 @@ onLayout(left: number, top: number, right: number, bottom: number): void;

@@ -310,3 +310,2 @@ import { ActionItemBase, ActionBarBase, isVisible, flatProperty, iosIconRenderingModeProperty, traceMissingIcon } from './action-bar-common';

setColor(navBar, color) {
var _a;
if (!navBar) {

@@ -318,3 +317,3 @@ return;

if (majorVersion >= 15) {
const appearance = (_a = navBar.standardAppearance) !== null && _a !== void 0 ? _a : UINavigationBarAppearance.new();
const appearance = this._getAppearance(navBar);
appearance.titleTextAttributes = titleTextColor;

@@ -333,3 +332,2 @@ }

setBackgroundColor(navBar, color) {
var _a;
if (!navBar) {

@@ -340,8 +338,6 @@ return;

if (majorVersion >= 15) {
const appearance = (_a = navBar.standardAppearance) !== null && _a !== void 0 ? _a : UINavigationBarAppearance.new();
const appearance = this._getAppearance(navBar);
// appearance.configureWithOpaqueBackground();
appearance.backgroundColor = color_;
navBar.standardAppearance = appearance;
navBar.compactAppearance = appearance;
navBar.scrollEdgeAppearance = appearance;
this._updateAppearance(navBar, appearance);
}

@@ -365,10 +361,7 @@ else {

updateFlatness(navBar) {
var _a;
if (this.flat) {
if (majorVersion >= 15) {
const appearance = (_a = navBar.standardAppearance) !== null && _a !== void 0 ? _a : UINavigationBarAppearance.new();
const appearance = this._getAppearance(navBar);
appearance.shadowColor = UIColor.clearColor;
navBar.standardAppearance = appearance;
navBar.compactAppearance = appearance;
navBar.scrollEdgeAppearance = appearance;
this._updateAppearance(navBar, appearance);
}

@@ -383,8 +376,7 @@ else {

if (majorVersion >= 15) {
if (navBar.standardAppearance) { // Not flat and never been set do nothing.
if (navBar.standardAppearance) {
// Not flat and never been set do nothing.
const appearance = navBar.standardAppearance;
appearance.shadowColor = UINavigationBarAppearance.new().shadowColor;
navBar.standardAppearance = appearance;
navBar.compactAppearance = appearance;
navBar.scrollEdgeAppearance = appearance;
this._updateAppearance(navBar, appearance);
}

@@ -399,2 +391,11 @@ }

}
_getAppearance(navBar) {
var _a;
return (_a = navBar.standardAppearance) !== null && _a !== void 0 ? _a : UINavigationBarAppearance.new();
}
_updateAppearance(navBar, appearance) {
navBar.standardAppearance = appearance;
navBar.compactAppearance = appearance;
navBar.scrollEdgeAppearance = appearance;
}
onMeasure(widthMeasureSpec, heightMeasureSpec) {

@@ -401,0 +402,0 @@ const width = layout.getMeasureSpecSize(widthMeasureSpec);

@@ -8,3 +8,3 @@ // Types.

import { resolveModuleName } from '../../../module-name-resolver';
const legacyShortBarrels = [
const legacyShortBarrels = __UI_USE_EXTERNAL_RENDERER__ ? [] : [
'text/formatted-string',

@@ -11,0 +11,0 @@ 'text/span',

@@ -23,3 +23,2 @@ import type { Point, CustomLayoutView as CustomLayoutViewDefinition } from '.';

nativeViewProtected: android.view.View;
constructor();
_observe(type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void;

@@ -26,0 +25,0 @@ on(eventNames: string, callback: (data: EventData) => void, thisArg?: any): void;

@@ -17,3 +17,3 @@ // Types.

import { accessibilityEnabledProperty, accessibilityHiddenProperty, accessibilityHintProperty, accessibilityIdentifierProperty, accessibilityLabelProperty, accessibilityLiveRegionProperty, accessibilityMediaSessionProperty, accessibilityRoleProperty, accessibilityStateProperty, accessibilityValueProperty } from '../../../accessibility/accessibility-properties';
import { AccessibilityLiveRegion, AccessibilityRole, AndroidAccessibilityEvent, setupAccessibleView, updateAccessibilityProperties, updateContentDescription } from '../../../accessibility';
import { AccessibilityLiveRegion, AccessibilityRole, AndroidAccessibilityEvent, updateAccessibilityProperties, updateContentDescription } from '../../../accessibility';
import * as Utils from '../../../utils';

@@ -236,6 +236,2 @@ export * from './view-common';

export class View extends ViewCommon {
constructor() {
super();
this.on(View.loadedEvent, () => setupAccessibleView(this));
}
// TODO: Implement unobserve that detach the touchListener.

@@ -242,0 +238,0 @@ _observe(type, callback, thisArg) {

@@ -32,3 +32,3 @@ import { Point, View as ViewDefinition } from '.';

get isLayoutRequested(): boolean;
constructor();
initNativeView(): void;
requestlayoutIfNeeded(): void;

@@ -35,0 +35,0 @@ requestLayout(): void;

@@ -11,3 +11,3 @@ // Requires

import { accessibilityEnabledProperty, accessibilityHiddenProperty, accessibilityHintProperty, accessibilityIdentifierProperty, accessibilityLabelProperty, accessibilityLanguageProperty, accessibilityLiveRegionProperty, accessibilityMediaSessionProperty, accessibilityRoleProperty, accessibilityStateProperty, accessibilityValueProperty, accessibilityIgnoresInvertColorsProperty } from '../../../accessibility/accessibility-properties';
import { setupAccessibleView, IOSPostAccessibilityNotificationType, isAccessibilityServiceEnabled, updateAccessibilityProperties } from '../../../accessibility';
import { IOSPostAccessibilityNotificationType, isAccessibilityServiceEnabled, updateAccessibilityProperties } from '../../../accessibility';
import { CoreTypes } from '../../../core-types';

@@ -25,3 +25,3 @@ export * from './view-common';

constructor() {
super();
super(...arguments);
this._isLaidOut = false;

@@ -31,3 +31,2 @@ this._hasTransfrom = false;

this._suspendCATransaction = false;
this.once(View.loadedEvent, () => setupAccessibleView(this));
}

@@ -40,2 +39,13 @@ get isLayoutRequired() {

}
initNativeView() {
super.initNativeView();
const nativeView = this.nativeViewProtected;
/**
* We need to map back from the UIView to the NativeScript View for accessibility.
*
* We do that by setting the uiView's tag to the View's domId.
* This way we can do reverse lookup.
*/
nativeView.tag = this._domId;
}
requestlayoutIfNeeded() {

@@ -42,0 +52,0 @@ if (this.isLayoutRequired) {

@@ -22,6 +22,2 @@ import { View as ViewDefinition, Point, Size } from '.';

static closingModallyEvent: string;
static accessibilityBlurEvent: string;
static accessibilityFocusEvent: string;
static accessibilityFocusChangedEvent: string;
static accessibilityPerformEscapeEvent: string;
accessibilityIdentifier: string;

@@ -28,0 +24,0 @@ accessibilityLabel: string;

@@ -14,3 +14,3 @@ import { booleanConverter, ViewBase } from '../view-base';

import { accessibilityHintProperty, accessibilityIdentifierProperty, accessibilityLabelProperty, accessibilityValueProperty, accessibilityIgnoresInvertColorsProperty } from '../../../accessibility/accessibility-properties';
import { accessibilityBlurEvent, accessibilityFocusChangedEvent, accessibilityFocusEvent, accessibilityPerformEscapeEvent, getCurrentFontScale } from '../../../accessibility';
import { getCurrentFontScale } from '../../../accessibility';
// helpers (these are okay re-exported here)

@@ -897,6 +897,2 @@ export * from './view-helper';

ViewCommon.closingModallyEvent = 'closingModally';
ViewCommon.accessibilityBlurEvent = accessibilityBlurEvent;
ViewCommon.accessibilityFocusEvent = accessibilityFocusEvent;
ViewCommon.accessibilityFocusChangedEvent = accessibilityFocusChangedEvent;
ViewCommon.accessibilityPerformEscapeEvent = accessibilityPerformEscapeEvent;
export const originXProperty = new Property({

@@ -903,0 +899,0 @@ name: 'originX',

@@ -123,3 +123,2 @@ import { EditableTextBase as EditableTextBaseCommon, autofillTypeProperty, keyboardTypeProperty, returnKeyTypeProperty, editableProperty, autocapitalizationTypeProperty, autocorrectProperty, hintProperty, placeholderColorProperty, maxLengthProperty } from './editable-text-base-common';

}
let apiLevel;
export class EditableTextBase extends EditableTextBaseCommon {

@@ -130,5 +129,2 @@ _onReturnPress() {

createNativeView() {
if (!apiLevel) {
apiLevel = sdkVersion();
}
return new android.widget.EditText(this._context);

@@ -254,3 +250,3 @@ }

[autofillTypeProperty.setNative](value) {
if (apiLevel < 26) {
if (sdkVersion() < 26) {
return;

@@ -257,0 +253,0 @@ }

@@ -126,3 +126,5 @@ import { PageBase, actionBarHiddenProperty, statusBarStyleProperty, androidStatusBarBackgroundProperty } from './page-common';

}
this.actionBar.accessibilityScreenChanged();
if (this.hasActionBar) {
this.actionBar.accessibilityScreenChanged();
}
}

@@ -129,0 +131,0 @@ }

import '../../../globals';
import { isCssVariable } from '../../core/properties';
import { isNullOrUndefined } from '../../../utils/types';

@@ -418,3 +419,3 @@ import * as parser from '../../../css/parser';

function createDeclaration(decl) {
return { property: decl.property.toLowerCase(), value: decl.value };
return { property: isCssVariable(decl.property) ? decl.property : decl.property.toLowerCase(), value: decl.value };
}

@@ -421,0 +422,0 @@ function createSimpleSelectorFromAst(ast) {

@@ -112,3 +112,3 @@ var TextView_1;

}
return true;
return this.editable;
}

@@ -115,0 +115,0 @@ textViewDidBeginEditing(textView) {

@@ -13,4 +13,4 @@ export { ad, iOSNativeHelper } from './native-helper';

*/
export declare function openFile(filePath: string): boolean;
export declare function openFile(filePath: string, title?: string): boolean;
export declare function isRealDevice(): boolean;
export declare function dismissSoftInput(nativeView?: any): void;

@@ -70,3 +70,3 @@ import { ad } from './native-helper';

*/
export function openFile(filePath) {
export function openFile(filePath, title = 'Open File...') {
const context = ad.getApplicationContext();

@@ -90,3 +90,3 @@ try {

const intent = new android.content.Intent(android.content.Intent.ACTION_VIEW);
const chooserIntent = android.content.Intent.createChooser(intent, 'Open File...');
const chooserIntent = android.content.Intent.createChooser(intent, title);
intent.addFlags(android.content.Intent.FLAG_ACTIVITY_NEW_TASK);

@@ -93,0 +93,0 @@ chooserIntent.addFlags(android.content.Intent.FLAG_ACTIVITY_NEW_TASK);

@@ -245,4 +245,5 @@ import { CoreTypes } from '../core-types';

* @param filePath The file.
* @param title Optional title for Android. Default is: 'Open File...'
*/
export function openFile(filePath: string): boolean;
export function openFile(filePath: string, title?: string): boolean;

@@ -249,0 +250,0 @@ /**

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc