@ng-native/components 0.28.0 → 0.30.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.
- package/README.md +2 -2
- package/android/src/main/java/dev/ngnative/components/ColorSchemeModule.kt +116 -11
- package/dist/activity-indicator.js +3 -3
- package/dist/animated-style.js +3 -3
- package/dist/animations-web.js +3 -3
- package/dist/animations.js +3 -3
- package/dist/content-container.js +3 -3
- package/dist/context-menu.js +3 -3
- package/dist/drag-and-drop.js +6 -6
- package/dist/gestures-web.js +6 -6
- package/dist/gestures.js +6 -6
- package/dist/gradient-text.d.ts +1 -1
- package/dist/gradient-text.js +4 -4
- package/dist/gradient-text.js.map +1 -1
- package/dist/image-background.js +3 -3
- package/dist/image.js +3 -3
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/input-accessory-view.js +3 -3
- package/dist/keyboard-avoiding-view.js +3 -3
- package/dist/keyboard-dock.js +15 -15
- package/dist/markdown-blocks.d.ts +2 -1
- package/dist/markdown-blocks.js +22 -18
- package/dist/markdown-blocks.js.map +1 -1
- package/dist/markdown-columns.js +3 -3
- package/dist/markdown-stream.js +8 -5
- package/dist/markdown-stream.js.map +1 -1
- package/dist/markdown.js +5 -5
- package/dist/markdown.js.map +1 -1
- package/dist/menu.d.ts +11 -5
- package/dist/menu.js +24 -44
- package/dist/menu.js.map +1 -1
- package/dist/modal.js +8 -3
- package/dist/modal.js.map +1 -1
- package/dist/native-button.d.ts +25 -3
- package/dist/native-button.js +102 -8
- package/dist/native-button.js.map +1 -1
- package/dist/native-gesture.js +3 -3
- package/dist/native-ref.js +3 -3
- package/dist/press-menu.d.ts +38 -8
- package/dist/press-menu.js +80 -19
- package/dist/press-menu.js.map +1 -1
- package/dist/pressable.js +14 -13
- package/dist/pressable.js.map +1 -1
- package/dist/reanimated-web.js +6 -6
- package/dist/reanimated.js +6 -6
- package/dist/refresh-control.js +3 -3
- package/dist/safe-area-provider.js +3 -3
- package/dist/safe-area-view.js +3 -3
- package/dist/scroll-view-props.js +3 -3
- package/dist/scroll-view.d.ts +3 -1
- package/dist/scroll-view.js +10 -5
- package/dist/scroll-view.js.map +1 -1
- package/dist/section-list.d.ts +4 -4
- package/dist/section-list.js +37 -34
- package/dist/section-list.js.map +1 -1
- package/dist/shortcut.js +3 -3
- package/dist/sidebar-item.js +3 -3
- package/dist/sidebar-section.d.ts +12 -5
- package/dist/sidebar-section.js +32 -12
- package/dist/sidebar-section.js.map +1 -1
- package/dist/sidebar.d.ts +11 -3
- package/dist/sidebar.js +18 -8
- package/dist/sidebar.js.map +1 -1
- package/dist/split-view.d.ts +23 -2
- package/dist/split-view.js +36 -9
- package/dist/split-view.js.map +1 -1
- package/dist/stand-ins/animations.js +3 -3
- package/dist/sticky-headers.d.ts +19 -0
- package/dist/sticky-headers.js +67 -10
- package/dist/sticky-headers.js.map +1 -1
- package/dist/sticky-rows.d.ts +13 -11
- package/dist/sticky-rows.js +35 -21
- package/dist/sticky-rows.js.map +1 -1
- package/dist/svg-icon.d.ts +16 -2
- package/dist/svg-icon.js +19 -3
- package/dist/svg-icon.js.map +1 -1
- package/dist/switch.js +3 -3
- package/dist/template-slot.js +3 -3
- package/dist/text-input.js +3 -3
- package/dist/text.js +3 -3
- package/dist/touchable-opacity.js +3 -3
- package/dist/tray-icon.d.ts +7 -1
- package/dist/tray-icon.js +17 -5
- package/dist/tray-icon.js.map +1 -1
- package/dist/view-base.d.ts +18 -2
- package/dist/view-base.js +42 -10
- package/dist/view-base.js.map +1 -1
- package/dist/view.js +3 -3
- package/dist/virtual-list-layout.d.ts +5 -0
- package/dist/virtual-list-layout.js.map +1 -1
- package/dist/virtual-list-num-columns.d.ts +8 -4
- package/dist/virtual-list-num-columns.js +13 -5
- package/dist/virtual-list-num-columns.js.map +1 -1
- package/dist/virtual-list-sticky-level.d.ts +0 -6
- package/dist/virtual-list-sticky-level.js +5 -29
- package/dist/virtual-list-sticky-level.js.map +1 -1
- package/dist/virtual-list.d.ts +72 -11
- package/dist/virtual-list.js +285 -74
- package/dist/virtual-list.js.map +1 -1
- package/dist/visual-effect.d.ts +37 -0
- package/dist/visual-effect.js +60 -0
- package/dist/visual-effect.js.map +1 -0
- package/dist/worklet-scroll.js +3 -3
- package/dist/worklet-style.js +3 -3
- package/dist/written-props.js +9 -0
- package/dist/written-props.js.map +1 -1
- package/ios/NgNativeButtonComponentView.mm +8 -4
- package/ios/NgNativeButtonMetrics.h +9 -2
- package/ios/NgNativeButtonMetrics.mm +33 -4
- package/ios/NgNativeButtonShadowNode.h +2 -0
- package/ios/NgNativeButtonShadowNode.mm +5 -1
- package/ios/NgNativeComponents.podspec +2 -2
- package/ios/NgNativeKeyboardFocus.h +21 -0
- package/ios/NgNativeKeyboardFocus.mm +28 -0
- package/ios/NgNativeKeyboardFocusModule.mm +203 -0
- package/ios/NgNativeMenus.mm +62 -2
- package/ios/NgNativePressMenu.h +36 -0
- package/ios/NgNativePressMenu.mm +79 -0
- package/ios/NgNativeViewBinder.h +5 -0
- package/ios/NgNativeViewBinder.mm +31 -4
- package/package.json +6 -6
package/dist/text-input.js
CHANGED
|
@@ -318,10 +318,10 @@ export class TextInput extends ViewBase {
|
|
|
318
318
|
this.lastSelection = { start: selection.start, end: selection.end };
|
|
319
319
|
this.selectionReports.update((n) => n + 1);
|
|
320
320
|
}
|
|
321
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
322
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.
|
|
321
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: TextInput, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
322
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.3.0", type: TextInput, isStandalone: true, selector: "text-input", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, multiline: { classPropertyName: "multiline", publicName: "multiline", isSignal: true, isRequired: false, transformFunction: null }, scrollEnabled: { classPropertyName: "scrollEnabled", publicName: "scrollEnabled", isSignal: true, isRequired: false, transformFunction: null }, editable: { classPropertyName: "editable", publicName: "editable", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, placeholderTextColor: { classPropertyName: "placeholderTextColor", publicName: "placeholderTextColor", isSignal: true, isRequired: false, transformFunction: null }, keyboardType: { classPropertyName: "keyboardType", publicName: "keyboardType", isSignal: true, isRequired: false, transformFunction: null }, returnKeyType: { classPropertyName: "returnKeyType", publicName: "returnKeyType", isSignal: true, isRequired: false, transformFunction: null }, submitBehavior: { classPropertyName: "submitBehavior", publicName: "submitBehavior", isSignal: true, isRequired: false, transformFunction: null }, secureTextEntry: { classPropertyName: "secureTextEntry", publicName: "secureTextEntry", isSignal: true, isRequired: false, transformFunction: null }, autoCapitalize: { classPropertyName: "autoCapitalize", publicName: "autoCapitalize", isSignal: true, isRequired: false, transformFunction: null }, autoCorrect: { classPropertyName: "autoCorrect", publicName: "autoCorrect", isSignal: true, isRequired: false, transformFunction: null }, autoFocus: { classPropertyName: "autoFocus", publicName: "autoFocus", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, numberOfLines: { classPropertyName: "numberOfLines", publicName: "numberOfLines", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, selectionColor: { classPropertyName: "selectionColor", publicName: "selectionColor", isSignal: true, isRequired: false, transformFunction: null }, selectTextOnFocus: { classPropertyName: "selectTextOnFocus", publicName: "selectTextOnFocus", isSignal: true, isRequired: false, transformFunction: null }, caretHidden: { classPropertyName: "caretHidden", publicName: "caretHidden", isSignal: true, isRequired: false, transformFunction: null }, contextMenuHidden: { classPropertyName: "contextMenuHidden", publicName: "contextMenuHidden", isSignal: true, isRequired: false, transformFunction: null }, textAlign: { classPropertyName: "textAlign", publicName: "textAlign", isSignal: true, isRequired: false, transformFunction: null }, allowFontScaling: { classPropertyName: "allowFontScaling", publicName: "allowFontScaling", isSignal: true, isRequired: false, transformFunction: null }, maxFontSizeMultiplier: { classPropertyName: "maxFontSizeMultiplier", publicName: "maxFontSizeMultiplier", isSignal: true, isRequired: false, transformFunction: null }, inputAccessoryViewID: { classPropertyName: "inputAccessoryViewID", publicName: "inputAccessoryViewID", isSignal: true, isRequired: false, transformFunction: null }, clearButtonMode: { classPropertyName: "clearButtonMode", publicName: "clearButtonMode", isSignal: true, isRequired: false, transformFunction: null }, clearTextOnFocus: { classPropertyName: "clearTextOnFocus", publicName: "clearTextOnFocus", isSignal: true, isRequired: false, transformFunction: null }, enablesReturnKeyAutomatically: { classPropertyName: "enablesReturnKeyAutomatically", publicName: "enablesReturnKeyAutomatically", isSignal: true, isRequired: false, transformFunction: null }, keyboardAppearance: { classPropertyName: "keyboardAppearance", publicName: "keyboardAppearance", isSignal: true, isRequired: false, transformFunction: null }, passwordRules: { classPropertyName: "passwordRules", publicName: "passwordRules", isSignal: true, isRequired: false, transformFunction: null }, spellCheck: { classPropertyName: "spellCheck", publicName: "spellCheck", isSignal: true, isRequired: false, transformFunction: null }, smartInsertDelete: { classPropertyName: "smartInsertDelete", publicName: "smartInsertDelete", isSignal: true, isRequired: false, transformFunction: null }, smartQuotes: { classPropertyName: "smartQuotes", publicName: "smartQuotes", isSignal: true, isRequired: false, transformFunction: null }, dataDetectorTypes: { classPropertyName: "dataDetectorTypes", publicName: "dataDetectorTypes", isSignal: true, isRequired: false, transformFunction: null }, textContentType: { classPropertyName: "textContentType", publicName: "textContentType", isSignal: true, isRequired: false, transformFunction: null }, autoComplete: { classPropertyName: "autoComplete", publicName: "autoComplete", isSignal: true, isRequired: false, transformFunction: null }, underlineColorAndroid: { classPropertyName: "underlineColorAndroid", publicName: "underlineColorAndroid", isSignal: true, isRequired: false, transformFunction: null }, cursorColor: { classPropertyName: "cursorColor", publicName: "cursorColor", isSignal: true, isRequired: false, transformFunction: null }, selectionHandleColor: { classPropertyName: "selectionHandleColor", publicName: "selectionHandleColor", isSignal: true, isRequired: false, transformFunction: null }, textAlignVertical: { classPropertyName: "textAlignVertical", publicName: "textAlignVertical", isSignal: true, isRequired: false, transformFunction: null }, importantForAutofill: { classPropertyName: "importantForAutofill", publicName: "importantForAutofill", isSignal: true, isRequired: false, transformFunction: null }, showSoftInputOnFocus: { classPropertyName: "showSoftInputOnFocus", publicName: "showSoftInputOnFocus", isSignal: true, isRequired: false, transformFunction: null }, disableFullscreenUI: { classPropertyName: "disableFullscreenUI", publicName: "disableFullscreenUI", isSignal: true, isRequired: false, transformFunction: null }, inlineImageLeft: { classPropertyName: "inlineImageLeft", publicName: "inlineImageLeft", isSignal: true, isRequired: false, transformFunction: null }, inlineImagePadding: { classPropertyName: "inlineImagePadding", publicName: "inlineImagePadding", isSignal: true, isRequired: false, transformFunction: null }, textBreakStrategy: { classPropertyName: "textBreakStrategy", publicName: "textBreakStrategy", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", changeText: "changeText", touch: "touch" }, host: { listeners: { "blur": "touch.emit()", "focus": "onFocus()", "change": "onNativeChange($event)", "selectionChange": "onNativeSelectionChange($event)" }, properties: { "text": "value()", "latestEventCount": "eventCount()", "multiline": "multiline()", "scrollEnabled": "scrollEnabled()", "editable": "resolvedEditable()", "accessibilityState": "accessibilityStateProp()", "attr.data-disabled": "disabled() ? '' : null", "attr.data-invalid": "invalid() ? '' : null", "attr.data-touched": "touched() ? '' : null", "placeholder": "placeholder()", "placeholderTextColor": "placeholderTextColor()", "keyboardType": "keyboardType()", "returnKeyType": "returnKeyType()", "submitBehavior": "resolvedSubmitBehavior()", "secureTextEntry": "secureTextEntry()", "autoCapitalize": "autoCapitalize()", "autoCorrect": "autoCorrect()", "autoFocus": "autoFocus()", "maxLength": "maxLength()", "numberOfLines": "numberOfLines()", "rows": "rows()", "selection": "resolvedSelection()", "selectionColor": "selectionColor()", "selectTextOnFocus": "selectTextOnFocus()", "caretHidden": "caretHidden()", "contextMenuHidden": "contextMenuHidden()", "textAlign": "textAlign()", "allowFontScaling": "allowFontScaling()", "maxFontSizeMultiplier": "maxFontSizeMultiplier()", "inputAccessoryViewID": "inputAccessoryViewID()", "clearButtonMode": "clearButtonMode()", "clearTextOnFocus": "clearTextOnFocus()", "enablesReturnKeyAutomatically": "enablesReturnKeyAutomatically()", "keyboardAppearance": "keyboardAppearance()", "passwordRules": "passwordRules()", "spellCheck": "spellCheck()", "smartInsertDelete": "smartInsertDelete()", "smartQuotes": "smartQuotes()", "dataDetectorTypes": "dataDetectorTypes()", "textContentType": "textContentType()", "autoComplete": "autoComplete()", "underlineColorAndroid": "underlineColorAndroid()", "cursorColor": "resolvedCursorColor()", "selectionHandleColor": "resolvedSelectionHandleColor()", "textAlignVertical": "textAlignVertical()", "importantForAutofill": "importantForAutofill()", "showSoftInputOnFocus": "showSoftInputOnFocus()", "disableFullscreenUI": "disableFullscreenUI()", "inlineImageLeft": "inlineImageLeft()", "inlineImagePadding": "inlineImagePadding()", "textBreakStrategy": "textBreakStrategy()" } }, exportAs: ["textInput"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
323
323
|
}
|
|
324
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
324
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: TextInput, decorators: [{
|
|
325
325
|
type: Directive,
|
|
326
326
|
args: [{
|
|
327
327
|
selector: 'text-input',
|
package/dist/text.js
CHANGED
|
@@ -123,10 +123,10 @@ export class Text extends TouchableBase {
|
|
|
123
123
|
measures() {
|
|
124
124
|
return this.pressable();
|
|
125
125
|
}
|
|
126
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
127
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.
|
|
126
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: Text, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
127
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.3.0", type: Text, isStandalone: true, selector: "text", inputs: { numberOfLines: { classPropertyName: "numberOfLines", publicName: "numberOfLines", isSignal: true, isRequired: false, transformFunction: null }, ellipsizeMode: { classPropertyName: "ellipsizeMode", publicName: "ellipsizeMode", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, selectionColor: { classPropertyName: "selectionColor", publicName: "selectionColor", isSignal: true, isRequired: false, transformFunction: null }, allowFontScaling: { classPropertyName: "allowFontScaling", publicName: "allowFontScaling", isSignal: true, isRequired: false, transformFunction: null }, maxFontSizeMultiplier: { classPropertyName: "maxFontSizeMultiplier", publicName: "maxFontSizeMultiplier", isSignal: true, isRequired: false, transformFunction: null }, dynamicTypeRamp: { classPropertyName: "dynamicTypeRamp", publicName: "dynamicTypeRamp", isSignal: true, isRequired: false, transformFunction: null }, adjustsFontSizeToFit: { classPropertyName: "adjustsFontSizeToFit", publicName: "adjustsFontSizeToFit", isSignal: true, isRequired: false, transformFunction: null }, minimumFontScale: { classPropertyName: "minimumFontScale", publicName: "minimumFontScale", isSignal: true, isRequired: false, transformFunction: null }, lineBreakStrategyIOS: { classPropertyName: "lineBreakStrategyIOS", publicName: "lineBreakStrategyIOS", isSignal: true, isRequired: false, transformFunction: null }, textBreakStrategy: { classPropertyName: "textBreakStrategy", publicName: "textBreakStrategy", isSignal: true, isRequired: false, transformFunction: null }, dataDetectorType: { classPropertyName: "dataDetectorType", publicName: "dataDetectorType", isSignal: true, isRequired: false, transformFunction: null }, hyphenationFrequency: { classPropertyName: "hyphenationFrequency", publicName: "android_hyphenationFrequency", isSignal: true, isRequired: false, transformFunction: null }, pressable: { classPropertyName: "pressable", publicName: "pressable", isSignal: true, isRequired: false, transformFunction: null }, suppressHighlighting: { classPropertyName: "suppressHighlighting", publicName: "suppressHighlighting", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["text"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
128
128
|
}
|
|
129
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: Text, decorators: [{
|
|
130
130
|
type: Directive,
|
|
131
131
|
args: [{
|
|
132
132
|
selector: 'text',
|
|
@@ -34,10 +34,10 @@ export class TouchableOpacity extends ControlBase {
|
|
|
34
34
|
}
|
|
35
35
|
/** The opacity while pressed. */
|
|
36
36
|
activeOpacity = input(0.2, { ...(ngDevMode ? { debugName: "activeOpacity" } : /* istanbul ignore next */ {}), transform: numberOr(0.2) });
|
|
37
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
38
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.
|
|
37
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: TouchableOpacity, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
38
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.3.0", type: TouchableOpacity, isStandalone: true, selector: "touchable-opacity", inputs: { activeOpacity: { classPropertyName: "activeOpacity", publicName: "activeOpacity", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.--touchable-active-opacity": "activeOpacity()", "class.pressed": "pressed()" } }, exportAs: ["touchableOpacity"], usesInheritance: true, ngImport: i0, template: `<ng-content />`, isInline: true, styles: ["\n :host {\n transition: opacity 250ms ease-in-out;\n }\n :host(.pressed) {\n opacity: var(--touchable-active-opacity, 0.2) !important;\n transition: opacity 150ms ease-in-out;\n }\n "] });
|
|
39
39
|
}
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: TouchableOpacity, decorators: [{
|
|
41
41
|
type: Component,
|
|
42
42
|
args: [{ selector: 'touchable-opacity', template: `<ng-content />`, exportAs: 'touchableOpacity', host: {
|
|
43
43
|
'[style.--touchable-active-opacity]': 'activeOpacity()',
|
package/dist/tray-icon.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ButtonIcon } from './native-button.ts';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
/**
|
|
3
4
|
* An icon in the macOS menu bar's status area, for as long as the element is there. Its
|
|
@@ -8,11 +9,16 @@ export declare class TrayIcon {
|
|
|
8
9
|
readonly title: import("@angular/core").InputSignal<string | undefined>;
|
|
9
10
|
/** An SF Symbol, drawn to follow the menu bar's light or dark appearance. */
|
|
10
11
|
readonly sfSymbol: import("@angular/core").InputSignal<string | undefined>;
|
|
12
|
+
/**
|
|
13
|
+
* The picture as a `ButtonIcon`: `{ sfSymbol }`, or an icon's SVG markup, `{ svg }`, such as an
|
|
14
|
+
* `@ng-icons` icon, drawn as a symbol is. `sfSymbol` wins over it.
|
|
15
|
+
*/
|
|
16
|
+
readonly icon: import("@angular/core").InputSignal<ButtonIcon | undefined>;
|
|
11
17
|
/** An image asset of the app's own. */
|
|
12
18
|
readonly image: import("@angular/core").InputSignal<string | undefined>;
|
|
13
19
|
readonly tooltip: import("@angular/core").InputSignal<string | undefined>;
|
|
14
20
|
readonly press: import("@angular/core").OutputEmitterRef<void>;
|
|
15
21
|
constructor();
|
|
16
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<TrayIcon, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TrayIcon, "tray-icon", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "sfSymbol": { "alias": "sfSymbol"; "required": false; "isSignal": true; }; "image": { "alias": "image"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; }, { "press": "press"; }, never, ["*"], true, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TrayIcon, "tray-icon", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "sfSymbol": { "alias": "sfSymbol"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "image": { "alias": "image"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; }, { "press": "press"; }, never, ["*"], true, never>;
|
|
18
24
|
}
|
package/dist/tray-icon.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { Component, DestroyRef, computed, inject, input, output } from '@angular/core';
|
|
2
2
|
import { MENU_MODEL, Tray } from '@ng-native/device';
|
|
3
3
|
import { menuModelInTreeOrder } from "./menu.js";
|
|
4
|
+
import { iconFields } from "./svg-icon.js";
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
6
|
+
/** An icon's symbol and SVG markup: a tray draws no drawable. */
|
|
7
|
+
function trayIcon(sfSymbol, icon) {
|
|
8
|
+
const { icon: _drawable, ...fields } = iconFields(sfSymbol, icon, 'tray-icon');
|
|
9
|
+
return fields;
|
|
10
|
+
}
|
|
5
11
|
/**
|
|
6
12
|
* An icon in the macOS menu bar's status area, for as long as the element is there. Its
|
|
7
13
|
* `<menu-item>`s are the menu a click opens; with none, a click fires `(press)`. On iOS and Android
|
|
@@ -13,6 +19,12 @@ export class TrayIcon {
|
|
|
13
19
|
/** An SF Symbol, drawn to follow the menu bar's light or dark appearance. */
|
|
14
20
|
sfSymbol = input(/* @ts-ignore */
|
|
15
21
|
...(ngDevMode ? [undefined, { debugName: "sfSymbol" }] : /* istanbul ignore next */ []));
|
|
22
|
+
/**
|
|
23
|
+
* The picture as a `ButtonIcon`: `{ sfSymbol }`, or an icon's SVG markup, `{ svg }`, such as an
|
|
24
|
+
* `@ng-icons` icon, drawn as a symbol is. `sfSymbol` wins over it.
|
|
25
|
+
*/
|
|
26
|
+
icon = input(/* @ts-ignore */
|
|
27
|
+
...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
16
28
|
/** An image asset of the app's own. */
|
|
17
29
|
image = input(/* @ts-ignore */
|
|
18
30
|
...(ngDevMode ? [undefined, { debugName: "image" }] : /* istanbul ignore next */ []));
|
|
@@ -23,7 +35,7 @@ export class TrayIcon {
|
|
|
23
35
|
const menu = inject(MENU_MODEL, { self: true });
|
|
24
36
|
const stop = inject(Tray).add(computed(() => ({
|
|
25
37
|
...(this.title() && { title: this.title() }),
|
|
26
|
-
...(this.sfSymbol()
|
|
38
|
+
...trayIcon(this.sfSymbol(), this.icon()),
|
|
27
39
|
...(this.image() && { image: this.image() }),
|
|
28
40
|
...(this.tooltip() && { tooltip: this.tooltip() }),
|
|
29
41
|
menu: menu.entries(),
|
|
@@ -31,10 +43,10 @@ export class TrayIcon {
|
|
|
31
43
|
})));
|
|
32
44
|
inject(DestroyRef).onDestroy(stop);
|
|
33
45
|
}
|
|
34
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
35
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.
|
|
46
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: TrayIcon, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
47
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.3.0", type: TrayIcon, isStandalone: true, selector: "tray-icon", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, sfSymbol: { classPropertyName: "sfSymbol", publicName: "sfSymbol", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, image: { classPropertyName: "image", publicName: "image", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { press: "press" }, host: { properties: { "style.display": "\"none\"" } }, providers: [{ provide: MENU_MODEL, useFactory: menuModelInTreeOrder }], ngImport: i0, template: '<ng-content />', isInline: true });
|
|
36
48
|
}
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: TrayIcon, decorators: [{
|
|
38
50
|
type: Component,
|
|
39
51
|
args: [{
|
|
40
52
|
selector: 'tray-icon',
|
|
@@ -42,5 +54,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.0", ngImpor
|
|
|
42
54
|
host: { '[style.display]': '"none"' },
|
|
43
55
|
providers: [{ provide: MENU_MODEL, useFactory: menuModelInTreeOrder }],
|
|
44
56
|
}]
|
|
45
|
-
}], ctorParameters: () => [], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], sfSymbol: [{ type: i0.Input, args: [{ isSignal: true, alias: "sfSymbol", required: false }] }], image: [{ type: i0.Input, args: [{ isSignal: true, alias: "image", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], press: [{ type: i0.Output, args: ["press"] }] } });
|
|
57
|
+
}], ctorParameters: () => [], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], sfSymbol: [{ type: i0.Input, args: [{ isSignal: true, alias: "sfSymbol", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], image: [{ type: i0.Input, args: [{ isSignal: true, alias: "image", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], press: [{ type: i0.Output, args: ["press"] }] } });
|
|
46
58
|
//# sourceMappingURL=tray-icon.js.map
|
package/dist/tray-icon.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tray-icon.js","sourceRoot":"","sources":["../src/tray-icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;;
|
|
1
|
+
{"version":3,"file":"tray-icon.js","sourceRoot":"","sources":["../src/tray-icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;;AAE3C,iEAAiE;AACjE,SAAS,QAAQ,CAAC,QAA4B,EAAE,IAA4B;IAC1E,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,MAAM,EAAE,GAAG,UAAU,CAAC,QAAQ,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC;IAC/E,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;;GAIG;AAOH,MAAM,OAAO,QAAQ;IACV,KAAK,GAAG,KAAK;yFAAU,CAAC;IACjC,6EAA6E;IACpE,QAAQ,GAAG,KAAK;4FAAU,CAAC;IACpC;;;OAGG;IACM,IAAI,GAAG,KAAK;wFAAc,CAAC;IACpC,uCAAuC;IAC9B,KAAK,GAAG,KAAK;yFAAU,CAAC;IACxB,OAAO,GAAG,KAAK;2FAAU,CAAC;IAC1B,KAAK,GAAG,MAAM,EAAQ,CAAC;IAEhC;QACE,MAAM,IAAI,GAAG,MAAM,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QAChD,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,GAAG,CAC3B,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC;YACd,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC;YAC5C,GAAG,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;YACzC,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC;YAC5C,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;YAClD,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE;YACpB,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;SAC/B,CAAC,CAAC,CACJ,CAAC;QACF,MAAM,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;uGA3BU,QAAQ;2FAAR,QAAQ,4vBAFR,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,oBAAoB,EAAE,CAAC,0BAF5D,gBAAgB;;2FAIf,QAAQ;kBANpB,SAAS;mBAAC;oBACT,QAAQ,EAAE,WAAW;oBACrB,QAAQ,EAAE,gBAAgB;oBAC1B,IAAI,EAAE,EAAE,iBAAiB,EAAE,QAAQ,EAAE;oBACrC,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,oBAAoB,EAAE,CAAC;iBACvE","sourcesContent":["import { Component, DestroyRef, computed, inject, input, output } from '@angular/core';\nimport { MENU_MODEL, Tray } from '@ng-native/device';\nimport { menuModelInTreeOrder } from './menu.ts';\nimport type { ButtonIcon } from './native-button.ts';\nimport { iconFields } from './svg-icon.ts';\n\n/** An icon's symbol and SVG markup: a tray draws no drawable. */\nfunction trayIcon(sfSymbol: string | undefined, icon: ButtonIcon | undefined) {\n const { icon: _drawable, ...fields } = iconFields(sfSymbol, icon, 'tray-icon');\n return fields;\n}\n\n/**\n * An icon in the macOS menu bar's status area, for as long as the element is there. Its\n * `<menu-item>`s are the menu a click opens; with none, a click fires `(press)`. On iOS and Android\n * nothing is drawn.\n */\n@Component({\n selector: 'tray-icon',\n template: '<ng-content />',\n host: { '[style.display]': '\"none\"' },\n providers: [{ provide: MENU_MODEL, useFactory: menuModelInTreeOrder }],\n})\nexport class TrayIcon {\n readonly title = input<string>();\n /** An SF Symbol, drawn to follow the menu bar's light or dark appearance. */\n readonly sfSymbol = input<string>();\n /**\n * The picture as a `ButtonIcon`: `{ sfSymbol }`, or an icon's SVG markup, `{ svg }`, such as an\n * `@ng-icons` icon, drawn as a symbol is. `sfSymbol` wins over it.\n */\n readonly icon = input<ButtonIcon>();\n /** An image asset of the app's own. */\n readonly image = input<string>();\n readonly tooltip = input<string>();\n readonly press = output<void>();\n\n constructor() {\n const menu = inject(MENU_MODEL, { self: true });\n const stop = inject(Tray).add(\n computed(() => ({\n ...(this.title() && { title: this.title() }),\n ...trayIcon(this.sfSymbol(), this.icon()),\n ...(this.image() && { image: this.image() }),\n ...(this.tooltip() && { tooltip: this.tooltip() }),\n menu: menu.entries(),\n press: () => this.press.emit(),\n })),\n );\n inject(DestroyRef).onDestroy(stop);\n }\n}\n"]}
|
package/dist/view-base.d.ts
CHANGED
|
@@ -104,7 +104,18 @@ export declare abstract class ViewBase {
|
|
|
104
104
|
* registered what it has to say.
|
|
105
105
|
*/
|
|
106
106
|
private get contributions();
|
|
107
|
+
/** iOS: what the components pod was last told of this view's keyboard focus. */
|
|
108
|
+
private keyboardFocusable;
|
|
109
|
+
/** iOS only: where a focusable view is reported, by react tag. */
|
|
110
|
+
private readonly keyboardFocus;
|
|
107
111
|
constructor();
|
|
112
|
+
/**
|
|
113
|
+
* iOS: tell the components pod whether this view takes an iPad hardware keyboard's focus, which
|
|
114
|
+
* React Native's iOS props cannot carry (`reportKeyboardFocusable`). By react tag: the one it has,
|
|
115
|
+
* and each one the engine gives it later (`tagged`), on its first commit and when it is made
|
|
116
|
+
* again. The pod forgets a view as React Native recycles it.
|
|
117
|
+
*/
|
|
118
|
+
private reportKeyboardFocus;
|
|
108
119
|
/** Whether `ngOnInit` has run, which is what writes the props every element starts with. */
|
|
109
120
|
private initialised;
|
|
110
121
|
/**
|
|
@@ -134,7 +145,7 @@ export declare abstract class ViewBase {
|
|
|
134
145
|
/** The kind of control this is, for assistive technologies. */
|
|
135
146
|
readonly accessibilityRole: import("@angular/core").InputSignal<AccessibilityRole | undefined>;
|
|
136
147
|
/** `role`: the web spelling, which takes the ARIA roles as well as `accessibilityRole`'s. */
|
|
137
|
-
readonly role: import("@angular/core").InputSignal<"text" | "alert" | "alertdialog" | "application" | "article" | "banner" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "dialog" | "directory" | "document" | "feed" | "figure" | "form" | "grid" | "group" | "heading" | "img" | "link" | "list" | "listitem" | "log" | "main" | "marquee" | "math" | "menu" | "menubar" | "menuitem" | "meter" | "navigation" | "none" | "note" | "option" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "summary" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "timer" | "toolbar" | "
|
|
148
|
+
readonly role: import("@angular/core").InputSignal<"text" | "tooltip" | "alert" | "alertdialog" | "application" | "article" | "banner" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "dialog" | "directory" | "document" | "feed" | "figure" | "form" | "grid" | "group" | "heading" | "img" | "link" | "list" | "listitem" | "log" | "main" | "marquee" | "math" | "menu" | "menubar" | "menuitem" | "meter" | "navigation" | "none" | "note" | "option" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "summary" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "timer" | "toolbar" | "tree" | "treegrid" | "treeitem" | "togglebutton" | "search" | "image" | "keyboardkey" | "adjustable" | "imagebutton" | "header" | "tabbar" | "pager" | "scrollview" | "horizontalscrollview" | "viewgroup" | "webview" | "drawerlayout" | "slidingdrawer" | "iconmenu" | undefined>;
|
|
138
149
|
/** Disabled, selected, checked, busy and expanded, as one object. */
|
|
139
150
|
readonly accessibilityState: import("@angular/core").InputSignal<AccessibilityState | undefined>;
|
|
140
151
|
/** `aria-busy`. */
|
|
@@ -241,6 +252,11 @@ export declare abstract class ViewBase {
|
|
|
241
252
|
readonly needsOffscreenAlphaCompositing: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
242
253
|
/** Android: whether the view takes keyboard or TV focus. RN's `tabIndex` is this. */
|
|
243
254
|
readonly focusable: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
255
|
+
/**
|
|
256
|
+
* macOS and Linux: the words shown beside the pointer when it rests on the view, as an icon
|
|
257
|
+
* button's name is. The web host sets `title`; iOS and Android have no tooltip and ignore it.
|
|
258
|
+
*/
|
|
259
|
+
readonly tooltip: import("@angular/core").InputSignal<string | undefined>;
|
|
244
260
|
/** iOS: render the view to a bitmap once and reuse it; for a static view that animates. */
|
|
245
261
|
readonly shouldRasterizeIOS: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
246
262
|
/** Android: cache the view in a hardware texture; the same trade as `shouldRasterizeIOS`. */
|
|
@@ -381,7 +397,7 @@ export declare abstract class ViewBase {
|
|
|
381
397
|
private disabledOver;
|
|
382
398
|
private mergedAccessibilityValue;
|
|
383
399
|
static ɵfac: i0.ɵɵFactoryDeclaration<ViewBase, never>;
|
|
384
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ViewBase, never, never, { "accessible": { "alias": "accessible"; "required": false; "isSignal": true; }; "accessibilityLabel": { "alias": "accessibilityLabel"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "accessibilityLabelledBy": { "alias": "accessibilityLabelledBy"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "accessibilityHint": { "alias": "accessibilityHint"; "required": false; "isSignal": true; }; "accessibilityRole": { "alias": "accessibilityRole"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; "accessibilityState": { "alias": "accessibilityState"; "required": false; "isSignal": true; }; "ariaBusy": { "alias": "aria-busy"; "required": false; "isSignal": true; }; "ariaChecked": { "alias": "aria-checked"; "required": false; "isSignal": true; }; "ariaDisabled": { "alias": "aria-disabled"; "required": false; "isSignal": true; }; "ariaExpanded": { "alias": "aria-expanded"; "required": false; "isSignal": true; }; "ariaSelected": { "alias": "aria-selected"; "required": false; "isSignal": true; }; "accessibilityValue": { "alias": "accessibilityValue"; "required": false; "isSignal": true; }; "ariaValueMin": { "alias": "aria-valuemin"; "required": false; "isSignal": true; }; "ariaValueMax": { "alias": "aria-valuemax"; "required": false; "isSignal": true; }; "ariaValueNow": { "alias": "aria-valuenow"; "required": false; "isSignal": true; }; "ariaValueText": { "alias": "aria-valuetext"; "required": false; "isSignal": true; }; "accessibilityLevel": { "alias": "accessibilityLevel"; "required": false; "isSignal": true; }; "ariaLevel": { "alias": "aria-level"; "required": false; "isSignal": true; }; "accessibilityDescribedBy": { "alias": "accessibilityDescribedBy"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "aria-describedby"; "required": false; "isSignal": true; }; "accessibilityRequired": { "alias": "accessibilityRequired"; "required": false; "isSignal": true; }; "ariaRequired": { "alias": "aria-required"; "required": false; "isSignal": true; }; "accessibilityInvalid": { "alias": "accessibilityInvalid"; "required": false; "isSignal": true; }; "ariaInvalid": { "alias": "aria-invalid"; "required": false; "isSignal": true; }; "accessibilityPosInSet": { "alias": "accessibilityPosInSet"; "required": false; "isSignal": true; }; "ariaPosInSet": { "alias": "aria-posinset"; "required": false; "isSignal": true; }; "accessibilitySetSize": { "alias": "accessibilitySetSize"; "required": false; "isSignal": true; }; "ariaSetSize": { "alias": "aria-setsize"; "required": false; "isSignal": true; }; "accessibilityRowCount": { "alias": "accessibilityRowCount"; "required": false; "isSignal": true; }; "ariaRowCount": { "alias": "aria-rowcount"; "required": false; "isSignal": true; }; "accessibilityColumnCount": { "alias": "accessibilityColumnCount"; "required": false; "isSignal": true; }; "ariaColumnCount": { "alias": "aria-colcount"; "required": false; "isSignal": true; }; "accessibilityActions": { "alias": "accessibilityActions"; "required": false; "isSignal": true; }; "accessibilityLiveRegion": { "alias": "accessibilityLiveRegion"; "required": false; "isSignal": true; }; "ariaLive": { "alias": "aria-live"; "required": false; "isSignal": true; }; "accessibilityElementsHidden": { "alias": "accessibilityElementsHidden"; "required": false; "isSignal": true; }; "ariaHidden": { "alias": "aria-hidden"; "required": false; "isSignal": true; }; "importantForAccessibility": { "alias": "importantForAccessibility"; "required": false; "isSignal": true; }; "accessibilityViewIsModal": { "alias": "accessibilityViewIsModal"; "required": false; "isSignal": true; }; "ariaModal": { "alias": "aria-modal"; "required": false; "isSignal": true; }; "accessibilityIgnoresInvertColors": { "alias": "accessibilityIgnoresInvertColors"; "required": false; "isSignal": true; }; "accessibilityLanguage": { "alias": "accessibilityLanguage"; "required": false; "isSignal": true; }; "accessibilityLargeContentTitle": { "alias": "accessibilityLargeContentTitle"; "required": false; "isSignal": true; }; "accessibilityShowsLargeContentViewer": { "alias": "accessibilityShowsLargeContentViewer"; "required": false; "isSignal": true; }; "accessibilityRespondsToUserInteraction": { "alias": "accessibilityRespondsToUserInteraction"; "required": false; "isSignal": true; }; "nativeID": { "alias": "nativeID"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "testID": { "alias": "testID"; "required": false; "isSignal": true; }; "hitSlop": { "alias": "hitSlop"; "required": false; "isSignal": true; }; "pointerEvents": { "alias": "pointerEvents"; "required": false; "isSignal": true; }; "collapsable": { "alias": "collapsable"; "required": false; "isSignal": true; }; "collapsableChildren": { "alias": "collapsableChildren"; "required": false; "isSignal": true; }; "removeClippedSubviews": { "alias": "removeClippedSubviews"; "required": false; "isSignal": true; }; "needsOffscreenAlphaCompositing": { "alias": "needsOffscreenAlphaCompositing"; "required": false; "isSignal": true; }; "focusable": { "alias": "focusable"; "required": false; "isSignal": true; }; "shouldRasterizeIOS": { "alias": "shouldRasterizeIOS"; "required": false; "isSignal": true; }; "renderToHardwareTextureAndroid": { "alias": "renderToHardwareTextureAndroid"; "required": false; "isSignal": true; }; "nativeBackgroundAndroid": { "alias": "nativeBackgroundAndroid"; "required": false; "isSignal": true; }; "nativeForegroundAndroid": { "alias": "nativeForegroundAndroid"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
400
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ViewBase, never, never, { "accessible": { "alias": "accessible"; "required": false; "isSignal": true; }; "accessibilityLabel": { "alias": "accessibilityLabel"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "accessibilityLabelledBy": { "alias": "accessibilityLabelledBy"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "accessibilityHint": { "alias": "accessibilityHint"; "required": false; "isSignal": true; }; "accessibilityRole": { "alias": "accessibilityRole"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; "accessibilityState": { "alias": "accessibilityState"; "required": false; "isSignal": true; }; "ariaBusy": { "alias": "aria-busy"; "required": false; "isSignal": true; }; "ariaChecked": { "alias": "aria-checked"; "required": false; "isSignal": true; }; "ariaDisabled": { "alias": "aria-disabled"; "required": false; "isSignal": true; }; "ariaExpanded": { "alias": "aria-expanded"; "required": false; "isSignal": true; }; "ariaSelected": { "alias": "aria-selected"; "required": false; "isSignal": true; }; "accessibilityValue": { "alias": "accessibilityValue"; "required": false; "isSignal": true; }; "ariaValueMin": { "alias": "aria-valuemin"; "required": false; "isSignal": true; }; "ariaValueMax": { "alias": "aria-valuemax"; "required": false; "isSignal": true; }; "ariaValueNow": { "alias": "aria-valuenow"; "required": false; "isSignal": true; }; "ariaValueText": { "alias": "aria-valuetext"; "required": false; "isSignal": true; }; "accessibilityLevel": { "alias": "accessibilityLevel"; "required": false; "isSignal": true; }; "ariaLevel": { "alias": "aria-level"; "required": false; "isSignal": true; }; "accessibilityDescribedBy": { "alias": "accessibilityDescribedBy"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "aria-describedby"; "required": false; "isSignal": true; }; "accessibilityRequired": { "alias": "accessibilityRequired"; "required": false; "isSignal": true; }; "ariaRequired": { "alias": "aria-required"; "required": false; "isSignal": true; }; "accessibilityInvalid": { "alias": "accessibilityInvalid"; "required": false; "isSignal": true; }; "ariaInvalid": { "alias": "aria-invalid"; "required": false; "isSignal": true; }; "accessibilityPosInSet": { "alias": "accessibilityPosInSet"; "required": false; "isSignal": true; }; "ariaPosInSet": { "alias": "aria-posinset"; "required": false; "isSignal": true; }; "accessibilitySetSize": { "alias": "accessibilitySetSize"; "required": false; "isSignal": true; }; "ariaSetSize": { "alias": "aria-setsize"; "required": false; "isSignal": true; }; "accessibilityRowCount": { "alias": "accessibilityRowCount"; "required": false; "isSignal": true; }; "ariaRowCount": { "alias": "aria-rowcount"; "required": false; "isSignal": true; }; "accessibilityColumnCount": { "alias": "accessibilityColumnCount"; "required": false; "isSignal": true; }; "ariaColumnCount": { "alias": "aria-colcount"; "required": false; "isSignal": true; }; "accessibilityActions": { "alias": "accessibilityActions"; "required": false; "isSignal": true; }; "accessibilityLiveRegion": { "alias": "accessibilityLiveRegion"; "required": false; "isSignal": true; }; "ariaLive": { "alias": "aria-live"; "required": false; "isSignal": true; }; "accessibilityElementsHidden": { "alias": "accessibilityElementsHidden"; "required": false; "isSignal": true; }; "ariaHidden": { "alias": "aria-hidden"; "required": false; "isSignal": true; }; "importantForAccessibility": { "alias": "importantForAccessibility"; "required": false; "isSignal": true; }; "accessibilityViewIsModal": { "alias": "accessibilityViewIsModal"; "required": false; "isSignal": true; }; "ariaModal": { "alias": "aria-modal"; "required": false; "isSignal": true; }; "accessibilityIgnoresInvertColors": { "alias": "accessibilityIgnoresInvertColors"; "required": false; "isSignal": true; }; "accessibilityLanguage": { "alias": "accessibilityLanguage"; "required": false; "isSignal": true; }; "accessibilityLargeContentTitle": { "alias": "accessibilityLargeContentTitle"; "required": false; "isSignal": true; }; "accessibilityShowsLargeContentViewer": { "alias": "accessibilityShowsLargeContentViewer"; "required": false; "isSignal": true; }; "accessibilityRespondsToUserInteraction": { "alias": "accessibilityRespondsToUserInteraction"; "required": false; "isSignal": true; }; "nativeID": { "alias": "nativeID"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "testID": { "alias": "testID"; "required": false; "isSignal": true; }; "hitSlop": { "alias": "hitSlop"; "required": false; "isSignal": true; }; "pointerEvents": { "alias": "pointerEvents"; "required": false; "isSignal": true; }; "collapsable": { "alias": "collapsable"; "required": false; "isSignal": true; }; "collapsableChildren": { "alias": "collapsableChildren"; "required": false; "isSignal": true; }; "removeClippedSubviews": { "alias": "removeClippedSubviews"; "required": false; "isSignal": true; }; "needsOffscreenAlphaCompositing": { "alias": "needsOffscreenAlphaCompositing"; "required": false; "isSignal": true; }; "focusable": { "alias": "focusable"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "shouldRasterizeIOS": { "alias": "shouldRasterizeIOS"; "required": false; "isSignal": true; }; "renderToHardwareTextureAndroid": { "alias": "renderToHardwareTextureAndroid"; "required": false; "isSignal": true; }; "nativeBackgroundAndroid": { "alias": "nativeBackgroundAndroid"; "required": false; "isSignal": true; }; "nativeForegroundAndroid": { "alias": "nativeForegroundAndroid"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
385
401
|
}
|
|
386
402
|
/**
|
|
387
403
|
* `ViewBase` on its own, for a component whose host is a plain view.
|
package/dist/view-base.js
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* `(accessibilityAction)` and so on. They are deliberately not outputs; see that file.
|
|
15
15
|
*/
|
|
16
16
|
import { Directive, ElementRef, inject, input } from '@angular/core';
|
|
17
|
-
import { hostInputNames, ownHost } from '@ng-native/device';
|
|
18
|
-
import { HostEngine, declareNativeProps } from '@ng-native/fabric';
|
|
17
|
+
import { KEYBOARD_FOCUS, hostInputNames, ownHost } from '@ng-native/device';
|
|
18
|
+
import { HostEngine, declareNativeProps, nativePlatform } from '@ng-native/fabric';
|
|
19
19
|
import { optionalBoolean, optionalNumber } from "./transforms.js";
|
|
20
20
|
import { WRITTEN_PROPS } from "./written-props.js";
|
|
21
21
|
import * as i0 from "@angular/core";
|
|
@@ -126,11 +126,33 @@ export class ViewBase {
|
|
|
126
126
|
get contributions() {
|
|
127
127
|
return this.node[CONTRIBUTIONS] ?? NO_CONTRIBUTIONS;
|
|
128
128
|
}
|
|
129
|
+
/** iOS: what the components pod was last told of this view's keyboard focus. */
|
|
130
|
+
keyboardFocusable = false;
|
|
131
|
+
/** iOS only: where a focusable view is reported, by react tag. */
|
|
132
|
+
keyboardFocus = nativePlatform() === 'ios' ? inject(KEYBOARD_FOCUS) : null;
|
|
129
133
|
constructor() {
|
|
130
134
|
ownHost(this.node, this.constructor);
|
|
131
135
|
declareProps(this.constructor, this.node);
|
|
132
136
|
this.engine.settle(this);
|
|
133
137
|
}
|
|
138
|
+
/**
|
|
139
|
+
* iOS: tell the components pod whether this view takes an iPad hardware keyboard's focus, which
|
|
140
|
+
* React Native's iOS props cannot carry (`reportKeyboardFocusable`). By react tag: the one it has,
|
|
141
|
+
* and each one the engine gives it later (`tagged`), on its first commit and when it is made
|
|
142
|
+
* again. The pod forgets a view as React Native recycles it.
|
|
143
|
+
*/
|
|
144
|
+
reportKeyboardFocus(focusable) {
|
|
145
|
+
const tell = this.keyboardFocus;
|
|
146
|
+
if (!tell || this.keyboardFocusable === focusable)
|
|
147
|
+
return;
|
|
148
|
+
this.keyboardFocusable = focusable;
|
|
149
|
+
this.node.tagged = focusable
|
|
150
|
+
? (tag) => tell(tag, true)
|
|
151
|
+
: undefined;
|
|
152
|
+
const tag = this.engine.tagOf?.(this.node);
|
|
153
|
+
if (tag !== null && tag !== undefined)
|
|
154
|
+
tell(tag, focusable);
|
|
155
|
+
}
|
|
134
156
|
/** Whether `ngOnInit` has run, which is what writes the props every element starts with. */
|
|
135
157
|
initialised = false;
|
|
136
158
|
/**
|
|
@@ -308,6 +330,12 @@ export class ViewBase {
|
|
|
308
330
|
needsOffscreenAlphaCompositing = input(undefined, { ...(ngDevMode ? { debugName: "needsOffscreenAlphaCompositing" } : /* istanbul ignore next */ {}), transform: optionalBoolean });
|
|
309
331
|
/** Android: whether the view takes keyboard or TV focus. RN's `tabIndex` is this. */
|
|
310
332
|
focusable = input(undefined, { ...(ngDevMode ? { debugName: "focusable" } : /* istanbul ignore next */ {}), transform: optionalBoolean });
|
|
333
|
+
/**
|
|
334
|
+
* macOS and Linux: the words shown beside the pointer when it rests on the view, as an icon
|
|
335
|
+
* button's name is. The web host sets `title`; iOS and Android have no tooltip and ignore it.
|
|
336
|
+
*/
|
|
337
|
+
tooltip = input(/* @ts-ignore */
|
|
338
|
+
...(ngDevMode ? [undefined, { debugName: "tooltip" }] : /* istanbul ignore next */ []));
|
|
311
339
|
/** iOS: render the view to a bitmap once and reuse it; for a static view that animates. */
|
|
312
340
|
shouldRasterizeIOS = input(undefined, { ...(ngDevMode ? { debugName: "shouldRasterizeIOS" } : /* istanbul ignore next */ {}), transform: optionalBoolean });
|
|
313
341
|
/** Android: cache the view in a hardware texture; the same trade as `shouldRasterizeIOS`. */
|
|
@@ -494,7 +522,10 @@ export class ViewBase {
|
|
|
494
522
|
write('collapsableChildren', this.collapsableChildren());
|
|
495
523
|
write('removeClippedSubviews', this.removeClippedSubviews());
|
|
496
524
|
write('needsOffscreenAlphaCompositing', this.needsOffscreenAlphaCompositing());
|
|
497
|
-
|
|
525
|
+
const focusable = this.focusableByDefault() ? (this.focusable() ?? true) : this.focusable();
|
|
526
|
+
write('focusable', focusable);
|
|
527
|
+
write('tooltip', this.tooltip());
|
|
528
|
+
this.reportKeyboardFocus(focusable === true);
|
|
498
529
|
write('shouldRasterizeIOS', this.shouldRasterizeIOS());
|
|
499
530
|
write('renderToHardwareTextureAndroid', this.renderToHardwareTextureAndroid());
|
|
500
531
|
write('nativeBackgroundAndroid', this.nativeBackgroundAndroid());
|
|
@@ -526,6 +557,7 @@ export class ViewBase {
|
|
|
526
557
|
}
|
|
527
558
|
if (this.focusable() === undefined && this.focusableByDefault()) {
|
|
528
559
|
this.engine.setProp(this.node, 'focusable', true);
|
|
560
|
+
this.reportKeyboardFocus(true);
|
|
529
561
|
}
|
|
530
562
|
if (this.accessibilityRole() === undefined && this.role() === undefined) {
|
|
531
563
|
const role = this.impliedRole();
|
|
@@ -625,12 +657,12 @@ export class ViewBase {
|
|
|
625
657
|
set('text', this.ariaValueText());
|
|
626
658
|
return Object.keys(merged).length ? merged : explicit;
|
|
627
659
|
}
|
|
628
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
629
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.
|
|
660
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: ViewBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
661
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.3.0", type: ViewBase, isStandalone: true, inputs: { accessible: { classPropertyName: "accessible", publicName: "accessible", isSignal: true, isRequired: false, transformFunction: null }, accessibilityLabel: { classPropertyName: "accessibilityLabel", publicName: "accessibilityLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, accessibilityLabelledBy: { classPropertyName: "accessibilityLabelledBy", publicName: "accessibilityLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, accessibilityHint: { classPropertyName: "accessibilityHint", publicName: "accessibilityHint", isSignal: true, isRequired: false, transformFunction: null }, accessibilityRole: { classPropertyName: "accessibilityRole", publicName: "accessibilityRole", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, accessibilityState: { classPropertyName: "accessibilityState", publicName: "accessibilityState", isSignal: true, isRequired: false, transformFunction: null }, ariaBusy: { classPropertyName: "ariaBusy", publicName: "aria-busy", isSignal: true, isRequired: false, transformFunction: null }, ariaChecked: { classPropertyName: "ariaChecked", publicName: "aria-checked", isSignal: true, isRequired: false, transformFunction: null }, ariaDisabled: { classPropertyName: "ariaDisabled", publicName: "aria-disabled", isSignal: true, isRequired: false, transformFunction: null }, ariaExpanded: { classPropertyName: "ariaExpanded", publicName: "aria-expanded", isSignal: true, isRequired: false, transformFunction: null }, ariaSelected: { classPropertyName: "ariaSelected", publicName: "aria-selected", isSignal: true, isRequired: false, transformFunction: null }, accessibilityValue: { classPropertyName: "accessibilityValue", publicName: "accessibilityValue", isSignal: true, isRequired: false, transformFunction: null }, ariaValueMin: { classPropertyName: "ariaValueMin", publicName: "aria-valuemin", isSignal: true, isRequired: false, transformFunction: null }, ariaValueMax: { classPropertyName: "ariaValueMax", publicName: "aria-valuemax", isSignal: true, isRequired: false, transformFunction: null }, ariaValueNow: { classPropertyName: "ariaValueNow", publicName: "aria-valuenow", isSignal: true, isRequired: false, transformFunction: null }, ariaValueText: { classPropertyName: "ariaValueText", publicName: "aria-valuetext", isSignal: true, isRequired: false, transformFunction: null }, accessibilityLevel: { classPropertyName: "accessibilityLevel", publicName: "accessibilityLevel", isSignal: true, isRequired: false, transformFunction: null }, ariaLevel: { classPropertyName: "ariaLevel", publicName: "aria-level", isSignal: true, isRequired: false, transformFunction: null }, accessibilityDescribedBy: { classPropertyName: "accessibilityDescribedBy", publicName: "accessibilityDescribedBy", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedBy: { classPropertyName: "ariaDescribedBy", publicName: "aria-describedby", isSignal: true, isRequired: false, transformFunction: null }, accessibilityRequired: { classPropertyName: "accessibilityRequired", publicName: "accessibilityRequired", isSignal: true, isRequired: false, transformFunction: null }, ariaRequired: { classPropertyName: "ariaRequired", publicName: "aria-required", isSignal: true, isRequired: false, transformFunction: null }, accessibilityInvalid: { classPropertyName: "accessibilityInvalid", publicName: "accessibilityInvalid", isSignal: true, isRequired: false, transformFunction: null }, ariaInvalid: { classPropertyName: "ariaInvalid", publicName: "aria-invalid", isSignal: true, isRequired: false, transformFunction: null }, accessibilityPosInSet: { classPropertyName: "accessibilityPosInSet", publicName: "accessibilityPosInSet", isSignal: true, isRequired: false, transformFunction: null }, ariaPosInSet: { classPropertyName: "ariaPosInSet", publicName: "aria-posinset", isSignal: true, isRequired: false, transformFunction: null }, accessibilitySetSize: { classPropertyName: "accessibilitySetSize", publicName: "accessibilitySetSize", isSignal: true, isRequired: false, transformFunction: null }, ariaSetSize: { classPropertyName: "ariaSetSize", publicName: "aria-setsize", isSignal: true, isRequired: false, transformFunction: null }, accessibilityRowCount: { classPropertyName: "accessibilityRowCount", publicName: "accessibilityRowCount", isSignal: true, isRequired: false, transformFunction: null }, ariaRowCount: { classPropertyName: "ariaRowCount", publicName: "aria-rowcount", isSignal: true, isRequired: false, transformFunction: null }, accessibilityColumnCount: { classPropertyName: "accessibilityColumnCount", publicName: "accessibilityColumnCount", isSignal: true, isRequired: false, transformFunction: null }, ariaColumnCount: { classPropertyName: "ariaColumnCount", publicName: "aria-colcount", isSignal: true, isRequired: false, transformFunction: null }, accessibilityActions: { classPropertyName: "accessibilityActions", publicName: "accessibilityActions", isSignal: true, isRequired: false, transformFunction: null }, accessibilityLiveRegion: { classPropertyName: "accessibilityLiveRegion", publicName: "accessibilityLiveRegion", isSignal: true, isRequired: false, transformFunction: null }, ariaLive: { classPropertyName: "ariaLive", publicName: "aria-live", isSignal: true, isRequired: false, transformFunction: null }, accessibilityElementsHidden: { classPropertyName: "accessibilityElementsHidden", publicName: "accessibilityElementsHidden", isSignal: true, isRequired: false, transformFunction: null }, ariaHidden: { classPropertyName: "ariaHidden", publicName: "aria-hidden", isSignal: true, isRequired: false, transformFunction: null }, importantForAccessibility: { classPropertyName: "importantForAccessibility", publicName: "importantForAccessibility", isSignal: true, isRequired: false, transformFunction: null }, accessibilityViewIsModal: { classPropertyName: "accessibilityViewIsModal", publicName: "accessibilityViewIsModal", isSignal: true, isRequired: false, transformFunction: null }, ariaModal: { classPropertyName: "ariaModal", publicName: "aria-modal", isSignal: true, isRequired: false, transformFunction: null }, accessibilityIgnoresInvertColors: { classPropertyName: "accessibilityIgnoresInvertColors", publicName: "accessibilityIgnoresInvertColors", isSignal: true, isRequired: false, transformFunction: null }, accessibilityLanguage: { classPropertyName: "accessibilityLanguage", publicName: "accessibilityLanguage", isSignal: true, isRequired: false, transformFunction: null }, accessibilityLargeContentTitle: { classPropertyName: "accessibilityLargeContentTitle", publicName: "accessibilityLargeContentTitle", isSignal: true, isRequired: false, transformFunction: null }, accessibilityShowsLargeContentViewer: { classPropertyName: "accessibilityShowsLargeContentViewer", publicName: "accessibilityShowsLargeContentViewer", isSignal: true, isRequired: false, transformFunction: null }, accessibilityRespondsToUserInteraction: { classPropertyName: "accessibilityRespondsToUserInteraction", publicName: "accessibilityRespondsToUserInteraction", isSignal: true, isRequired: false, transformFunction: null }, nativeID: { classPropertyName: "nativeID", publicName: "nativeID", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, testID: { classPropertyName: "testID", publicName: "testID", isSignal: true, isRequired: false, transformFunction: null }, hitSlop: { classPropertyName: "hitSlop", publicName: "hitSlop", isSignal: true, isRequired: false, transformFunction: null }, pointerEvents: { classPropertyName: "pointerEvents", publicName: "pointerEvents", isSignal: true, isRequired: false, transformFunction: null }, collapsable: { classPropertyName: "collapsable", publicName: "collapsable", isSignal: true, isRequired: false, transformFunction: null }, collapsableChildren: { classPropertyName: "collapsableChildren", publicName: "collapsableChildren", isSignal: true, isRequired: false, transformFunction: null }, removeClippedSubviews: { classPropertyName: "removeClippedSubviews", publicName: "removeClippedSubviews", isSignal: true, isRequired: false, transformFunction: null }, needsOffscreenAlphaCompositing: { classPropertyName: "needsOffscreenAlphaCompositing", publicName: "needsOffscreenAlphaCompositing", isSignal: true, isRequired: false, transformFunction: null }, focusable: { classPropertyName: "focusable", publicName: "focusable", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, shouldRasterizeIOS: { classPropertyName: "shouldRasterizeIOS", publicName: "shouldRasterizeIOS", isSignal: true, isRequired: false, transformFunction: null }, renderToHardwareTextureAndroid: { classPropertyName: "renderToHardwareTextureAndroid", publicName: "renderToHardwareTextureAndroid", isSignal: true, isRequired: false, transformFunction: null }, nativeBackgroundAndroid: { classPropertyName: "nativeBackgroundAndroid", publicName: "nativeBackgroundAndroid", isSignal: true, isRequired: false, transformFunction: null }, nativeForegroundAndroid: { classPropertyName: "nativeForegroundAndroid", publicName: "nativeForegroundAndroid", isSignal: true, isRequired: false, transformFunction: null } }, usesOnChanges: true, ngImport: i0 });
|
|
630
662
|
}
|
|
631
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
663
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: ViewBase, decorators: [{
|
|
632
664
|
type: Directive
|
|
633
|
-
}], ctorParameters: () => [], propDecorators: { accessible: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessible", required: false }] }], accessibilityLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityLabel", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], accessibilityLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityLabelledBy", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], accessibilityHint: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityHint", required: false }] }], accessibilityRole: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityRole", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], accessibilityState: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityState", required: false }] }], ariaBusy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-busy", required: false }] }], ariaChecked: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-checked", required: false }] }], ariaDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-disabled", required: false }] }], ariaExpanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-expanded", required: false }] }], ariaSelected: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-selected", required: false }] }], accessibilityValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityValue", required: false }] }], ariaValueMin: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-valuemin", required: false }] }], ariaValueMax: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-valuemax", required: false }] }], ariaValueNow: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-valuenow", required: false }] }], ariaValueText: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-valuetext", required: false }] }], accessibilityLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityLevel", required: false }] }], ariaLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-level", required: false }] }], accessibilityDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityDescribedBy", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-describedby", required: false }] }], accessibilityRequired: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityRequired", required: false }] }], ariaRequired: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-required", required: false }] }], accessibilityInvalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityInvalid", required: false }] }], ariaInvalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-invalid", required: false }] }], accessibilityPosInSet: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityPosInSet", required: false }] }], ariaPosInSet: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-posinset", required: false }] }], accessibilitySetSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilitySetSize", required: false }] }], ariaSetSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-setsize", required: false }] }], accessibilityRowCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityRowCount", required: false }] }], ariaRowCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-rowcount", required: false }] }], accessibilityColumnCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityColumnCount", required: false }] }], ariaColumnCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-colcount", required: false }] }], accessibilityActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityActions", required: false }] }], accessibilityLiveRegion: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityLiveRegion", required: false }] }], ariaLive: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-live", required: false }] }], accessibilityElementsHidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityElementsHidden", required: false }] }], ariaHidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-hidden", required: false }] }], importantForAccessibility: [{ type: i0.Input, args: [{ isSignal: true, alias: "importantForAccessibility", required: false }] }], accessibilityViewIsModal: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityViewIsModal", required: false }] }], ariaModal: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-modal", required: false }] }], accessibilityIgnoresInvertColors: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityIgnoresInvertColors", required: false }] }], accessibilityLanguage: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityLanguage", required: false }] }], accessibilityLargeContentTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityLargeContentTitle", required: false }] }], accessibilityShowsLargeContentViewer: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityShowsLargeContentViewer", required: false }] }], accessibilityRespondsToUserInteraction: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityRespondsToUserInteraction", required: false }] }], nativeID: [{ type: i0.Input, args: [{ isSignal: true, alias: "nativeID", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], testID: [{ type: i0.Input, args: [{ isSignal: true, alias: "testID", required: false }] }], hitSlop: [{ type: i0.Input, args: [{ isSignal: true, alias: "hitSlop", required: false }] }], pointerEvents: [{ type: i0.Input, args: [{ isSignal: true, alias: "pointerEvents", required: false }] }], collapsable: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsable", required: false }] }], collapsableChildren: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsableChildren", required: false }] }], removeClippedSubviews: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeClippedSubviews", required: false }] }], needsOffscreenAlphaCompositing: [{ type: i0.Input, args: [{ isSignal: true, alias: "needsOffscreenAlphaCompositing", required: false }] }], focusable: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusable", required: false }] }], shouldRasterizeIOS: [{ type: i0.Input, args: [{ isSignal: true, alias: "shouldRasterizeIOS", required: false }] }], renderToHardwareTextureAndroid: [{ type: i0.Input, args: [{ isSignal: true, alias: "renderToHardwareTextureAndroid", required: false }] }], nativeBackgroundAndroid: [{ type: i0.Input, args: [{ isSignal: true, alias: "nativeBackgroundAndroid", required: false }] }], nativeForegroundAndroid: [{ type: i0.Input, args: [{ isSignal: true, alias: "nativeForegroundAndroid", required: false }] }] } });
|
|
665
|
+
}], ctorParameters: () => [], propDecorators: { accessible: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessible", required: false }] }], accessibilityLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityLabel", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], accessibilityLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityLabelledBy", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], accessibilityHint: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityHint", required: false }] }], accessibilityRole: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityRole", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], accessibilityState: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityState", required: false }] }], ariaBusy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-busy", required: false }] }], ariaChecked: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-checked", required: false }] }], ariaDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-disabled", required: false }] }], ariaExpanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-expanded", required: false }] }], ariaSelected: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-selected", required: false }] }], accessibilityValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityValue", required: false }] }], ariaValueMin: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-valuemin", required: false }] }], ariaValueMax: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-valuemax", required: false }] }], ariaValueNow: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-valuenow", required: false }] }], ariaValueText: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-valuetext", required: false }] }], accessibilityLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityLevel", required: false }] }], ariaLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-level", required: false }] }], accessibilityDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityDescribedBy", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-describedby", required: false }] }], accessibilityRequired: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityRequired", required: false }] }], ariaRequired: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-required", required: false }] }], accessibilityInvalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityInvalid", required: false }] }], ariaInvalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-invalid", required: false }] }], accessibilityPosInSet: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityPosInSet", required: false }] }], ariaPosInSet: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-posinset", required: false }] }], accessibilitySetSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilitySetSize", required: false }] }], ariaSetSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-setsize", required: false }] }], accessibilityRowCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityRowCount", required: false }] }], ariaRowCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-rowcount", required: false }] }], accessibilityColumnCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityColumnCount", required: false }] }], ariaColumnCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-colcount", required: false }] }], accessibilityActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityActions", required: false }] }], accessibilityLiveRegion: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityLiveRegion", required: false }] }], ariaLive: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-live", required: false }] }], accessibilityElementsHidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityElementsHidden", required: false }] }], ariaHidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-hidden", required: false }] }], importantForAccessibility: [{ type: i0.Input, args: [{ isSignal: true, alias: "importantForAccessibility", required: false }] }], accessibilityViewIsModal: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityViewIsModal", required: false }] }], ariaModal: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-modal", required: false }] }], accessibilityIgnoresInvertColors: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityIgnoresInvertColors", required: false }] }], accessibilityLanguage: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityLanguage", required: false }] }], accessibilityLargeContentTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityLargeContentTitle", required: false }] }], accessibilityShowsLargeContentViewer: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityShowsLargeContentViewer", required: false }] }], accessibilityRespondsToUserInteraction: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibilityRespondsToUserInteraction", required: false }] }], nativeID: [{ type: i0.Input, args: [{ isSignal: true, alias: "nativeID", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], testID: [{ type: i0.Input, args: [{ isSignal: true, alias: "testID", required: false }] }], hitSlop: [{ type: i0.Input, args: [{ isSignal: true, alias: "hitSlop", required: false }] }], pointerEvents: [{ type: i0.Input, args: [{ isSignal: true, alias: "pointerEvents", required: false }] }], collapsable: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsable", required: false }] }], collapsableChildren: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsableChildren", required: false }] }], removeClippedSubviews: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeClippedSubviews", required: false }] }], needsOffscreenAlphaCompositing: [{ type: i0.Input, args: [{ isSignal: true, alias: "needsOffscreenAlphaCompositing", required: false }] }], focusable: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusable", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], shouldRasterizeIOS: [{ type: i0.Input, args: [{ isSignal: true, alias: "shouldRasterizeIOS", required: false }] }], renderToHardwareTextureAndroid: [{ type: i0.Input, args: [{ isSignal: true, alias: "renderToHardwareTextureAndroid", required: false }] }], nativeBackgroundAndroid: [{ type: i0.Input, args: [{ isSignal: true, alias: "nativeBackgroundAndroid", required: false }] }], nativeForegroundAndroid: [{ type: i0.Input, args: [{ isSignal: true, alias: "nativeForegroundAndroid", required: false }] }] } });
|
|
634
666
|
/**
|
|
635
667
|
* `ViewBase` on its own, for a component whose host is a plain view.
|
|
636
668
|
*
|
|
@@ -640,10 +672,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.0", ngImpor
|
|
|
640
672
|
* nothing, and without a `ViewBase` on the node there is nothing to write that role.
|
|
641
673
|
*/
|
|
642
674
|
export class ViewBehavior extends ViewBase {
|
|
643
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
644
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.
|
|
675
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: ViewBehavior, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
676
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.3.0", type: ViewBehavior, isStandalone: true, usesInheritance: true, ngImport: i0 });
|
|
645
677
|
}
|
|
646
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
678
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: ViewBehavior, decorators: [{
|
|
647
679
|
type: Directive,
|
|
648
680
|
args: [{}]
|
|
649
681
|
}] });
|