@symbiote-native/angular 1.0.0 → 2.0.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 +13 -10
- package/babel-register-composed.cjs +41 -19
- package/bin/symbiote-angular-dev.cjs +16 -4
- package/build/angular/anchor-host-registry.js +1 -17
- package/build/angular/anchor-host-registry.js.map +1 -1
- package/build/angular/change-detection-flush.d.ts +31 -0
- package/build/angular/change-detection-flush.js +110 -0
- package/build/angular/change-detection-flush.js.map +1 -0
- package/build/angular/components/activity-indicator-props.d.ts +2 -0
- package/build/angular/components/activity-indicator-props.js +2 -0
- package/build/angular/components/activity-indicator-props.js.map +1 -0
- package/build/angular/components/button-props.d.ts +2 -0
- package/build/angular/components/button-props.js +2 -0
- package/build/angular/components/button-props.js.map +1 -0
- package/build/angular/components/flat-list/index.d.ts +2 -1
- package/build/angular/components/flat-list/index.js +22 -10
- package/build/angular/components/flat-list/index.js.map +1 -1
- package/build/angular/components/image-background-props.d.ts +6 -0
- package/build/angular/components/image-background-props.js +2 -0
- package/build/angular/components/image-background-props.js.map +1 -0
- package/build/angular/components/{image/shared.d.ts → image-shared.d.ts} +1 -1
- package/build/angular/components/{image/shared.js → image-shared.js} +7 -2
- package/build/angular/components/image-shared.js.map +1 -0
- package/build/angular/components/input-accessory-view-props.d.ts +7 -0
- package/build/angular/components/input-accessory-view-props.js +9 -0
- package/build/angular/components/input-accessory-view-props.js.map +1 -0
- package/build/angular/components/keyboard-avoiding-view/index.js +11 -17
- package/build/angular/components/keyboard-avoiding-view/index.js.map +1 -1
- package/build/angular/components/modal/index.d.ts +1 -0
- package/build/angular/components/modal/index.js +19 -12
- package/build/angular/components/modal/index.js.map +1 -1
- package/build/angular/components/pressable-props.d.ts +32 -0
- package/build/angular/components/pressable-props.js +11 -0
- package/build/angular/components/pressable-props.js.map +1 -0
- package/build/angular/components/refresh-control-props.d.ts +16 -0
- package/build/angular/components/refresh-control-props.js +14 -0
- package/build/angular/components/refresh-control-props.js.map +1 -0
- package/build/angular/components/safe-area-view-props.d.ts +7 -0
- package/build/angular/components/safe-area-view-props.js +11 -0
- package/build/angular/components/safe-area-view-props.js.map +1 -0
- package/build/angular/components/scroll-view-props.d.ts +76 -0
- package/build/angular/components/scroll-view-props.js +18 -0
- package/build/angular/components/scroll-view-props.js.map +1 -0
- package/build/angular/components/text-input-props.d.ts +45 -0
- package/build/angular/components/text-input-props.js +18 -0
- package/build/angular/components/text-input-props.js.map +1 -0
- package/build/angular/components/touchable-native-feedback/touchable-native-feedback-props.d.ts +6 -0
- package/build/angular/components/touchable-native-feedback/touchable-native-feedback-props.js +2 -0
- package/build/angular/components/touchable-native-feedback/touchable-native-feedback-props.js.map +1 -0
- package/build/angular/components/touchable-props.d.ts +14 -0
- package/build/angular/components/touchable-props.js +13 -0
- package/build/angular/components/touchable-props.js.map +1 -0
- package/build/angular/components/touchable-without-feedback/touchable-without-feedback-props.d.ts +3 -0
- package/build/angular/components/touchable-without-feedback/touchable-without-feedback-props.js +2 -0
- package/build/angular/components/touchable-without-feedback/touchable-without-feedback-props.js.map +1 -0
- package/build/angular/components/virtualized-list/index.d.ts +5 -1
- package/build/angular/components/virtualized-list/index.js +366 -280
- package/build/angular/components/virtualized-list/index.js.map +1 -1
- package/build/angular/components.d.ts +20 -26
- package/build/angular/components.js +12 -14
- package/build/angular/components.js.map +1 -1
- package/build/angular/create-portal/index.d.ts +2 -2
- package/build/angular/create-portal/index.js +5 -5
- package/build/angular/create-tunnel/index.js +1 -1
- package/build/angular/element-props.d.ts +53 -0
- package/build/angular/element-props.js +2 -0
- package/build/angular/element-props.js.map +1 -0
- package/build/angular/elements.d.ts +528 -0
- package/build/angular/elements.js +1444 -0
- package/build/angular/elements.js.map +1 -0
- package/build/angular/host-instance/index.js +1 -1
- package/build/angular/index.d.ts +4 -2
- package/build/angular/index.js +15 -1
- package/build/angular/index.js.map +1 -1
- package/build/angular/modules/animated/create-animated-component.d.ts +5 -6
- package/build/angular/modules/animated/create-animated-component.js +60 -73
- package/build/angular/modules/animated/create-animated-component.js.map +1 -1
- package/build/angular/modules/animated/index.js +1 -1
- package/build/angular/modules/animated/index.js.map +1 -1
- package/build/angular/modules/image/index.d.ts +3 -0
- package/build/angular/modules/image/index.js +16 -0
- package/build/angular/modules/image/index.js.map +1 -0
- package/build/angular/primitives/index.d.ts +18 -18
- package/build/angular/primitives/index.js +40 -36
- package/build/angular/primitives/index.js.map +1 -1
- package/build/angular/primitives/shared.d.ts +2 -3
- package/build/angular/primitives/shared.js +8 -53
- package/build/angular/primitives/shared.js.map +1 -1
- package/build/angular/register.d.ts +1 -1
- package/build/angular/register.js +12 -31
- package/build/angular/register.js.map +1 -1
- package/build/angular/render/index.js +3 -3
- package/build/angular/render/index.js.map +1 -1
- package/build/angular/renderer/index.js +113 -67
- package/build/angular/renderer/index.js.map +1 -1
- package/build/angular/renderer/value-change.d.ts +2 -0
- package/build/angular/renderer/value-change.js +9 -0
- package/build/angular/renderer/value-change.js.map +1 -0
- package/metro-config.cjs +23 -5
- package/metro-css-parser.cjs +2 -1
- package/package.json +5 -14
- package/src/anchor-host-registry.ts +1 -17
- package/src/change-detection-flush.ts +120 -0
- package/src/components/activity-indicator-props.ts +21 -0
- package/src/components/button-props.ts +26 -0
- package/src/components/flat-list/index.ts +12 -4
- package/src/components/image-background-props.ts +24 -0
- package/src/components/{image/shared.ts → image-shared.ts} +6 -1
- package/src/components/input-accessory-view-props.ts +21 -0
- package/src/components/keyboard-avoiding-view/index.ts +6 -9
- package/src/components/modal/index.ts +15 -7
- package/src/components/pressable-props.ts +73 -0
- package/src/components/refresh-control-props.ts +43 -0
- package/src/components/safe-area-view-props.ts +28 -0
- package/src/components/scroll-view-props.ts +109 -0
- package/src/components/text-input-props.ts +72 -0
- package/src/components/touchable-native-feedback/touchable-native-feedback-props.ts +23 -0
- package/src/components/touchable-props.ts +30 -0
- package/src/components/touchable-without-feedback/touchable-without-feedback-props.ts +21 -0
- package/src/components/virtualized-list/index.ts +239 -156
- package/src/components.ts +84 -35
- package/src/create-portal/index.ts +5 -5
- package/src/create-tunnel/index.ts +1 -1
- package/src/diagnostics.ts +1 -1
- package/src/element-props.ts +90 -0
- package/src/elements.ts +919 -0
- package/src/host-instance/index.ts +1 -1
- package/src/index.ts +52 -15
- package/src/modules/animated/create-animated-component.ts +50 -55
- package/src/modules/animated/index.ts +1 -1
- package/src/modules/image/index.ts +18 -0
- package/src/primitives/index.ts +22 -18
- package/src/primitives/shared.ts +11 -44
- package/src/register.ts +12 -40
- package/src/render/index.ts +3 -3
- package/src/renderer/index.ts +122 -73
- package/src/renderer/value-change.ts +8 -0
- package/babel-lower-host-primitives.cjs +0 -636
- package/build/angular/components/activity-indicator/index.android.d.ts +0 -13
- package/build/angular/components/activity-indicator/index.android.js +0 -29
- package/build/angular/components/activity-indicator/index.android.js.map +0 -1
- package/build/angular/components/activity-indicator/index.d.ts +0 -1
- package/build/angular/components/activity-indicator/index.ios.d.ts +0 -9
- package/build/angular/components/activity-indicator/index.ios.js +0 -26
- package/build/angular/components/activity-indicator/index.ios.js.map +0 -1
- package/build/angular/components/activity-indicator/index.js +0 -4
- package/build/angular/components/activity-indicator/index.js.map +0 -1
- package/build/angular/components/activity-indicator/shared.d.ts +0 -67
- package/build/angular/components/activity-indicator/shared.js +0 -260
- package/build/angular/components/activity-indicator/shared.js.map +0 -1
- package/build/angular/components/button.d.ts +0 -68
- package/build/angular/components/button.js +0 -360
- package/build/angular/components/button.js.map +0 -1
- package/build/angular/components/image/index.android.d.ts +0 -15
- package/build/angular/components/image/index.android.js +0 -83
- package/build/angular/components/image/index.android.js.map +0 -1
- package/build/angular/components/image/index.d.ts +0 -1
- package/build/angular/components/image/index.ios.d.ts +0 -15
- package/build/angular/components/image/index.ios.js +0 -83
- package/build/angular/components/image/index.ios.js.map +0 -1
- package/build/angular/components/image/index.js +0 -3
- package/build/angular/components/image/index.js.map +0 -1
- package/build/angular/components/image/shared.js.map +0 -1
- package/build/angular/components/image-background.d.ts +0 -85
- package/build/angular/components/image-background.js +0 -443
- package/build/angular/components/image-background.js.map +0 -1
- package/build/angular/components/input-accessory-view/index.d.ts +0 -66
- package/build/angular/components/input-accessory-view/index.js +0 -287
- package/build/angular/components/input-accessory-view/index.js.map +0 -1
- package/build/angular/components/pressable/index.d.ts +0 -134
- package/build/angular/components/pressable/index.js +0 -514
- package/build/angular/components/pressable/index.js.map +0 -1
- package/build/angular/components/refresh-control/index.d.ts +0 -91
- package/build/angular/components/refresh-control/index.js +0 -382
- package/build/angular/components/refresh-control/index.js.map +0 -1
- package/build/angular/components/safe-area-view/index.d.ts +0 -64
- package/build/angular/components/safe-area-view/index.js +0 -287
- package/build/angular/components/safe-area-view/index.js.map +0 -1
- package/build/angular/components/scroll-view/index.android.d.ts +0 -20
- package/build/angular/components/scroll-view/index.android.js +0 -262
- package/build/angular/components/scroll-view/index.android.js.map +0 -1
- package/build/angular/components/scroll-view/index.d.ts +0 -3
- package/build/angular/components/scroll-view/index.ios.d.ts +0 -8
- package/build/angular/components/scroll-view/index.ios.js +0 -92
- package/build/angular/components/scroll-view/index.ios.js.map +0 -1
- package/build/angular/components/scroll-view/index.js +0 -6
- package/build/angular/components/scroll-view/index.js.map +0 -1
- package/build/angular/components/scroll-view/projection.d.ts +0 -67
- package/build/angular/components/scroll-view/projection.js +0 -560
- package/build/angular/components/scroll-view/projection.js.map +0 -1
- package/build/angular/components/scroll-view/shared.d.ts +0 -241
- package/build/angular/components/scroll-view/shared.js +0 -848
- package/build/angular/components/scroll-view/shared.js.map +0 -1
- package/build/angular/components/scroll-view/sticky-header.d.ts +0 -40
- package/build/angular/components/scroll-view/sticky-header.js +0 -224
- package/build/angular/components/scroll-view/sticky-header.js.map +0 -1
- package/build/angular/components/switch/index.android.d.ts +0 -24
- package/build/angular/components/switch/index.android.js +0 -112
- package/build/angular/components/switch/index.android.js.map +0 -1
- package/build/angular/components/switch/index.d.ts +0 -1
- package/build/angular/components/switch/index.ios.d.ts +0 -23
- package/build/angular/components/switch/index.ios.js +0 -111
- package/build/angular/components/switch/index.ios.js.map +0 -1
- package/build/angular/components/switch/index.js +0 -4
- package/build/angular/components/switch/index.js.map +0 -1
- package/build/angular/components/switch/shared.d.ts +0 -49
- package/build/angular/components/switch/shared.js +0 -191
- package/build/angular/components/switch/shared.js.map +0 -1
- package/build/angular/components/text-input.d.ts +0 -167
- package/build/angular/components/text-input.js +0 -684
- package/build/angular/components/text-input.js.map +0 -1
- package/build/angular/components/touchable/index.d.ts +0 -283
- package/build/angular/components/touchable/index.js +0 -1453
- package/build/angular/components/touchable/index.js.map +0 -1
- package/build/angular/components/touchable-native-feedback/index.d.ts +0 -87
- package/build/angular/components/touchable-native-feedback/index.js +0 -409
- package/build/angular/components/touchable-native-feedback/index.js.map +0 -1
- package/build/angular/state-style.d.ts +0 -9
- package/build/angular/state-style.js +0 -39
- package/build/angular/state-style.js.map +0 -1
- package/metro-transformer.cjs +0 -69
- package/src/components/activity-indicator/index.android.ts +0 -23
- package/src/components/activity-indicator/index.ios.ts +0 -21
- package/src/components/activity-indicator/index.ts +0 -4
- package/src/components/activity-indicator/shared.ts +0 -225
- package/src/components/button.ts +0 -237
- package/src/components/image/index.android.ts +0 -95
- package/src/components/image/index.ios.ts +0 -95
- package/src/components/image/index.ts +0 -3
- package/src/components/image-background.ts +0 -308
- package/src/components/input-accessory-view/index.ts +0 -246
- package/src/components/pressable/index.ts +0 -522
- package/src/components/refresh-control/index.ts +0 -349
- package/src/components/safe-area-view/index.ts +0 -247
- package/src/components/scroll-view/index.android.ts +0 -205
- package/src/components/scroll-view/index.ios.ts +0 -81
- package/src/components/scroll-view/index.ts +0 -7
- package/src/components/scroll-view/projection.ts +0 -713
- package/src/components/scroll-view/shared.ts +0 -1093
- package/src/components/scroll-view/sticky-header.ts +0 -267
- package/src/components/switch/index.android.ts +0 -113
- package/src/components/switch/index.ios.ts +0 -112
- package/src/components/switch/index.ts +0 -4
- package/src/components/switch/shared.ts +0 -284
- package/src/components/text-input.ts +0 -669
- package/src/components/touchable/index.ts +0 -956
- package/src/components/touchable-native-feedback/index.ts +0 -327
- package/src/state-style.ts +0 -39
|
@@ -1,382 +0,0 @@
|
|
|
1
|
-
// RefreshControl, the Angular lifecycle half. On iOS this is the PullToRefreshView Fabric node that
|
|
2
|
-
// lives INSIDE a ScrollView (a childless sibling before the content container); on Android it is
|
|
3
|
-
// AndroidSwipeRefreshLayout and WRAPS the scroll view, receiving it through <ng-content>. There is
|
|
4
|
-
// no JS-side platform renaming and no shared render fn — every prop forwards straight to the
|
|
5
|
-
// native node, which reads what it understands and ignores the rest, so Android-only and iOS-only
|
|
6
|
-
// prop families ride down harmlessly on both. This folds aria/role through the shared
|
|
7
|
-
// resolveAccessibilityProps and maps the native props + a11y + onRefresh onto the
|
|
8
|
-
// symbiote-refresh-control host, children via <ng-content>. One composed component covers both
|
|
9
|
-
// platforms, so this stays a flat single file.
|
|
10
|
-
//
|
|
11
|
-
// `refreshing` is a controlled prop: the parent owns it and pushes it down each commit; native
|
|
12
|
-
// reports the gesture via the direct `topRefresh` event, which the engine routes to the host's
|
|
13
|
-
// `refresh` listener (Angular blocks [onX] property bindings; events flow through (event) only).
|
|
14
|
-
import { CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, Component, computed, ElementRef, EventEmitter, inject, Input, Output, signal, ViewChild, } from '@angular/core';
|
|
15
|
-
import { resolveAccessibilityProps, } from '@symbiote-native/components';
|
|
16
|
-
import { dispatchViewCommand, dlog, isSymbioteEvent, isSymbioteNode, } from '@symbiote-native/engine';
|
|
17
|
-
import { anchorHostStyle, RefreshControlHost, SymbioteHostPropsDirective, SymbioteStyleInputDirective, } from '../../primitives';
|
|
18
|
-
import * as i0 from "@angular/core";
|
|
19
|
-
import * as i1 from "../../primitives/shared";
|
|
20
|
-
export class RefreshControl {
|
|
21
|
-
// Controlled prop the parent owns; required to match the React reference surface.
|
|
22
|
-
refreshing;
|
|
23
|
-
// RN's onRefresh is `() => void | Promise<void>`, so the callback shape allows an async handler;
|
|
24
|
-
// the @Output() itself only signals the gesture (fire-and-forget, native already starts refreshing).
|
|
25
|
-
refresh = new EventEmitter();
|
|
26
|
-
tintColor;
|
|
27
|
-
title;
|
|
28
|
-
titleColor;
|
|
29
|
-
progressViewOffset;
|
|
30
|
-
colors;
|
|
31
|
-
progressBackgroundColor;
|
|
32
|
-
size;
|
|
33
|
-
enabled;
|
|
34
|
-
style;
|
|
35
|
-
testID;
|
|
36
|
-
nativeID;
|
|
37
|
-
accessible;
|
|
38
|
-
accessibilityLabel;
|
|
39
|
-
accessibilityHint;
|
|
40
|
-
accessibilityRole;
|
|
41
|
-
accessibilityState;
|
|
42
|
-
accessibilityValue;
|
|
43
|
-
accessibilityActions;
|
|
44
|
-
accessibilityLabelledBy;
|
|
45
|
-
importantForAccessibility;
|
|
46
|
-
accessibilityLiveRegion;
|
|
47
|
-
screenReaderFocusable;
|
|
48
|
-
accessibilityViewIsModal;
|
|
49
|
-
accessibilityElementsHidden;
|
|
50
|
-
accessibilityIgnoresInvertColors;
|
|
51
|
-
accessibilityLanguage;
|
|
52
|
-
accessibilityRespondsToUserInteraction;
|
|
53
|
-
accessibilityShowsLargeContentViewer;
|
|
54
|
-
accessibilityLargeContentTitle;
|
|
55
|
-
accessibilityAction = new EventEmitter();
|
|
56
|
-
accessibilityTap = new EventEmitter();
|
|
57
|
-
magicTap = new EventEmitter();
|
|
58
|
-
accessibilityEscape = new EventEmitter();
|
|
59
|
-
role;
|
|
60
|
-
ariaLabel;
|
|
61
|
-
ariaLabelledBy;
|
|
62
|
-
ariaLive;
|
|
63
|
-
ariaHidden;
|
|
64
|
-
ariaBusy;
|
|
65
|
-
ariaChecked;
|
|
66
|
-
ariaDisabled;
|
|
67
|
-
ariaExpanded;
|
|
68
|
-
ariaSelected;
|
|
69
|
-
ariaModal;
|
|
70
|
-
ariaValueMax;
|
|
71
|
-
ariaValueMin;
|
|
72
|
-
ariaValueNow;
|
|
73
|
-
ariaValueText;
|
|
74
|
-
// The inner symbiote-refresh-control primitive — NOT this component's own anchor host. Used for
|
|
75
|
-
// the imperative dispatchViewCommand calls below.
|
|
76
|
-
host;
|
|
77
|
-
// This component's OWN host — the non-painting anchor `class="..."` at the use site resolves
|
|
78
|
-
// onto (see anchorHostStyle's doc comment) — distinct from `host` above, which targets the real
|
|
79
|
-
// inner `symbiote-refresh-control` primitive one level down.
|
|
80
|
-
elementRef = inject(ElementRef);
|
|
81
|
-
lastNativeRefreshing = false;
|
|
82
|
-
refreshNativeNode;
|
|
83
|
-
// Bridges the non-reactive @Input fields `hostProps` reads into the reactive graph, so it can
|
|
84
|
-
// memoize. Plain fields read inside a computed() are UNTRACKED - something must signal "a
|
|
85
|
-
// dependency changed" or the bag goes stale. Signal inputs would do this natively, but `input()`
|
|
86
|
-
// is visible only to the AOT compiler and this package's unit suite runs on JIT (see the
|
|
87
|
-
// `angular-adapter-change-detection` skill, §6); `signal()`/`computed()` are plain runtime APIs.
|
|
88
|
-
// Safe here because `refreshing` is a CONTROLLED @Input - the parent owns it, nothing in this
|
|
89
|
-
// class assigns it. The internal `lastNativeRefreshing` / `refreshNativeNode` fields drive the
|
|
90
|
-
// native handshake only; neither is read by the bag, so neither may bump this.
|
|
91
|
-
hostPropsRevision = signal(0, /* @ts-ignore */
|
|
92
|
-
...(ngDevMode ? [{ debugName: "hostPropsRevision" }] : /* istanbul ignore next */ []));
|
|
93
|
-
// What the anchor's class-derived style was when the bag was last built (identity, not value).
|
|
94
|
-
lastAnchorStyle;
|
|
95
|
-
ngOnInit() {
|
|
96
|
-
dlog('RefreshControl -> PullToRefreshView');
|
|
97
|
-
dlog(`RefreshControl refreshing=${String(this.refreshing)}`);
|
|
98
|
-
if (this.enabled !== undefined)
|
|
99
|
-
dlog(`RefreshControl enabled=${String(this.enabled)} (Android-only)`);
|
|
100
|
-
if (this.refresh.observed)
|
|
101
|
-
dlog('RefreshControl refresh listener wired');
|
|
102
|
-
}
|
|
103
|
-
ngAfterViewInit() {
|
|
104
|
-
this.lastNativeRefreshing = this.refreshing;
|
|
105
|
-
}
|
|
106
|
-
ngOnChanges(changes) {
|
|
107
|
-
// Before the `refreshing`-only early-return below: this is the single moment Angular has
|
|
108
|
-
// finished writing every changed @Input, and `hostProps` depends on the whole input surface.
|
|
109
|
-
this.hostPropsRevision.update(revision => revision + 1);
|
|
110
|
-
const refreshing = changes.refreshing;
|
|
111
|
-
if (refreshing === undefined)
|
|
112
|
-
return;
|
|
113
|
-
if (refreshing.firstChange) {
|
|
114
|
-
this.lastNativeRefreshing = this.refreshing;
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
this.syncNativeRefreshing(this.refreshNativeNode ?? this.host?.nativeElement);
|
|
118
|
-
}
|
|
119
|
-
// Native starts the spinner before JS runs. Mirror RN's RefreshControl controlled-component
|
|
120
|
-
// handshake: remember that native is refreshing, call the user's callback, then after Angular has
|
|
121
|
-
// had a chance to propagate `[refreshing]`, force native back to the JS value if it stayed false.
|
|
122
|
-
handleRefresh(nativeNode = this.host?.nativeElement) {
|
|
123
|
-
this.refreshNativeNode = nativeNode;
|
|
124
|
-
this.lastNativeRefreshing = true;
|
|
125
|
-
this.refresh.emit();
|
|
126
|
-
queueMicrotask(() => this.syncNativeRefreshing(nativeNode));
|
|
127
|
-
}
|
|
128
|
-
syncNativeRefreshing(nativeNode) {
|
|
129
|
-
if (this.refreshing === this.lastNativeRefreshing)
|
|
130
|
-
return;
|
|
131
|
-
if (!isSymbioteNode(nativeNode))
|
|
132
|
-
return;
|
|
133
|
-
dispatchViewCommand(nativeNode, 'setNativeRefreshing', [this.refreshing]);
|
|
134
|
-
this.lastNativeRefreshing = this.refreshing;
|
|
135
|
-
}
|
|
136
|
-
// Forward an engine event to the matching @Output(), narrowing the template's untyped $event
|
|
137
|
-
// first. The accessibility* events arrive on the engine's structural event channel.
|
|
138
|
-
emit(emitter, event) {
|
|
139
|
-
if (isSymbioteEvent(event))
|
|
140
|
-
emitter.emit(event);
|
|
141
|
-
}
|
|
142
|
-
// The four accessibility events are boolean-GATED Fabric events
|
|
143
|
-
// (`.claude/rules/fabric-boolean-event-gates.md`): a template binding here lit the gate on every
|
|
144
|
-
// instance whether or not an app ever subscribed. `.observed`-gated, mirroring Pressable's.
|
|
145
|
-
eventEmitterHandler(emitter) {
|
|
146
|
-
return emitter.observed ? event => this.emit(emitter, event) : undefined;
|
|
147
|
-
}
|
|
148
|
-
// The anchor's class-derived style is NOT an @Input: `class="..."`/`[ngClass]` at the use site
|
|
149
|
-
// resolves through the renderer's addClass onto this component's anchor host (see
|
|
150
|
-
// anchorHostStyle's doc comment), so it never shows up in SimpleChanges and ngOnChanges alone
|
|
151
|
-
// would leave a later class toggle stranded. ngDoCheck runs at exactly the cadence the old
|
|
152
|
-
// getter was re-read, and bumps only on a real identity change.
|
|
153
|
-
ngDoCheck() {
|
|
154
|
-
const anchorStyle = anchorHostStyle(this.elementRef);
|
|
155
|
-
if (anchorStyle === this.lastAnchorStyle)
|
|
156
|
-
return;
|
|
157
|
-
this.lastAnchorStyle = anchorStyle;
|
|
158
|
-
this.hostPropsRevision.update(revision => revision + 1);
|
|
159
|
-
}
|
|
160
|
-
// The full native + a11y prop bag applied onto the host in one shot via
|
|
161
|
-
// [symbioteHostProps], instead of enumerating each key as its own template binding. The
|
|
162
|
-
// anchor's class-derived style goes FIRST, this component's own explicit `style` @Input SECOND
|
|
163
|
-
// — flattenStyle's later-wins collapse keeps an explicit [style] winning over its ambient class.
|
|
164
|
-
//
|
|
165
|
-
// A computed(), not a getter: Angular re-reads a template getter on every refresh of this view
|
|
166
|
-
// and `[symbioteHostProps]` compares by REFERENCE, so a freshly rebuilt (but identical) bag
|
|
167
|
-
// re-pushes every key through renderer.setProperty -> the engine's prop routing. A pull gesture
|
|
168
|
-
// dirties this view through its own `(refresh)` binding, which is exactly when that waste hit.
|
|
169
|
-
hostProps = computed(() => {
|
|
170
|
-
this.hostPropsRevision();
|
|
171
|
-
return {
|
|
172
|
-
refreshing: this.refreshing,
|
|
173
|
-
tintColor: this.tintColor,
|
|
174
|
-
title: this.title,
|
|
175
|
-
titleColor: this.titleColor,
|
|
176
|
-
progressViewOffset: this.progressViewOffset,
|
|
177
|
-
colors: this.colors,
|
|
178
|
-
progressBackgroundColor: this.progressBackgroundColor,
|
|
179
|
-
size: this.size,
|
|
180
|
-
enabled: this.enabled,
|
|
181
|
-
style: [anchorHostStyle(this.elementRef), this.style],
|
|
182
|
-
testID: this.testID,
|
|
183
|
-
nativeID: this.nativeID,
|
|
184
|
-
accessible: this.accessible,
|
|
185
|
-
...this.folded,
|
|
186
|
-
onAccessibilityAction: this.eventEmitterHandler(this.accessibilityAction),
|
|
187
|
-
onAccessibilityTap: this.eventEmitterHandler(this.accessibilityTap),
|
|
188
|
-
onMagicTap: this.eventEmitterHandler(this.magicTap),
|
|
189
|
-
onAccessibilityEscape: this.eventEmitterHandler(this.accessibilityEscape),
|
|
190
|
-
};
|
|
191
|
-
}, /* @ts-ignore */
|
|
192
|
-
...(ngDevMode ? [{ debugName: "hostProps" }] : /* istanbul ignore next */ []));
|
|
193
|
-
// Fold the web aria-*/role aliases into the canonical accessibility* props once per render, so the
|
|
194
|
-
// host node never sees an aria-* key (native ignores them) — the shared transform every adapter runs.
|
|
195
|
-
get folded() {
|
|
196
|
-
return resolveAccessibilityProps({
|
|
197
|
-
accessibilityLabel: this.accessibilityLabel,
|
|
198
|
-
accessibilityHint: this.accessibilityHint,
|
|
199
|
-
accessibilityRole: this.accessibilityRole,
|
|
200
|
-
accessibilityState: this.accessibilityState,
|
|
201
|
-
accessibilityValue: this.accessibilityValue,
|
|
202
|
-
accessibilityActions: this.accessibilityActions,
|
|
203
|
-
accessibilityLabelledBy: this.accessibilityLabelledBy,
|
|
204
|
-
importantForAccessibility: this.importantForAccessibility,
|
|
205
|
-
accessibilityLiveRegion: this.accessibilityLiveRegion,
|
|
206
|
-
screenReaderFocusable: this.screenReaderFocusable,
|
|
207
|
-
accessibilityViewIsModal: this.accessibilityViewIsModal,
|
|
208
|
-
accessibilityElementsHidden: this.accessibilityElementsHidden,
|
|
209
|
-
accessibilityIgnoresInvertColors: this.accessibilityIgnoresInvertColors,
|
|
210
|
-
accessibilityLanguage: this.accessibilityLanguage,
|
|
211
|
-
accessibilityRespondsToUserInteraction: this.accessibilityRespondsToUserInteraction,
|
|
212
|
-
accessibilityShowsLargeContentViewer: this.accessibilityShowsLargeContentViewer,
|
|
213
|
-
accessibilityLargeContentTitle: this.accessibilityLargeContentTitle,
|
|
214
|
-
role: this.role,
|
|
215
|
-
'aria-label': this.ariaLabel,
|
|
216
|
-
'aria-labelledby': this.ariaLabelledBy,
|
|
217
|
-
'aria-live': this.ariaLive,
|
|
218
|
-
'aria-hidden': this.ariaHidden,
|
|
219
|
-
'aria-busy': this.ariaBusy,
|
|
220
|
-
'aria-checked': this.ariaChecked,
|
|
221
|
-
'aria-disabled': this.ariaDisabled,
|
|
222
|
-
'aria-expanded': this.ariaExpanded,
|
|
223
|
-
'aria-selected': this.ariaSelected,
|
|
224
|
-
'aria-modal': this.ariaModal,
|
|
225
|
-
'aria-valuemax': this.ariaValueMax,
|
|
226
|
-
'aria-valuemin': this.ariaValueMin,
|
|
227
|
-
'aria-valuenow': this.ariaValueNow,
|
|
228
|
-
'aria-valuetext': this.ariaValueText,
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: RefreshControl, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
232
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: RefreshControl, isStandalone: true, selector: "RefreshControl", inputs: { refreshing: "refreshing", tintColor: "tintColor", title: "title", titleColor: "titleColor", progressViewOffset: "progressViewOffset", colors: "colors", progressBackgroundColor: "progressBackgroundColor", size: "size", enabled: "enabled", style: "style", testID: "testID", nativeID: "nativeID", accessible: "accessible", accessibilityLabel: "accessibilityLabel", accessibilityHint: "accessibilityHint", accessibilityRole: "accessibilityRole", accessibilityState: "accessibilityState", accessibilityValue: "accessibilityValue", accessibilityActions: "accessibilityActions", accessibilityLabelledBy: "accessibilityLabelledBy", importantForAccessibility: "importantForAccessibility", accessibilityLiveRegion: "accessibilityLiveRegion", screenReaderFocusable: "screenReaderFocusable", accessibilityViewIsModal: "accessibilityViewIsModal", accessibilityElementsHidden: "accessibilityElementsHidden", accessibilityIgnoresInvertColors: "accessibilityIgnoresInvertColors", accessibilityLanguage: "accessibilityLanguage", accessibilityRespondsToUserInteraction: "accessibilityRespondsToUserInteraction", accessibilityShowsLargeContentViewer: "accessibilityShowsLargeContentViewer", accessibilityLargeContentTitle: "accessibilityLargeContentTitle", role: "role", ariaLabel: ["aria-label", "ariaLabel"], ariaLabelledBy: ["aria-labelledby", "ariaLabelledBy"], ariaLive: ["aria-live", "ariaLive"], ariaHidden: ["aria-hidden", "ariaHidden"], ariaBusy: ["aria-busy", "ariaBusy"], ariaChecked: ["aria-checked", "ariaChecked"], ariaDisabled: ["aria-disabled", "ariaDisabled"], ariaExpanded: ["aria-expanded", "ariaExpanded"], ariaSelected: ["aria-selected", "ariaSelected"], ariaModal: ["aria-modal", "ariaModal"], ariaValueMax: ["aria-valuemax", "ariaValueMax"], ariaValueMin: ["aria-valuemin", "ariaValueMin"], ariaValueNow: ["aria-valuenow", "ariaValueNow"], ariaValueText: ["aria-valuetext", "ariaValueText"] }, outputs: { refresh: "refresh", accessibilityAction: "accessibilityAction", accessibilityTap: "accessibilityTap", magicTap: "magicTap", accessibilityEscape: "accessibilityEscape" }, viewQueries: [{ propertyName: "host", first: true, predicate: ["host"], descendants: true }], usesOnChanges: true, hostDirectives: [{ directive: i1.SymbioteStyleInputDirective, inputs: ["style", "style"] }], ngImport: i0, template: `
|
|
233
|
-
<symbiote-refresh-control
|
|
234
|
-
#host
|
|
235
|
-
[symbioteHostProps]="hostProps()"
|
|
236
|
-
(refresh)="handleRefresh()"
|
|
237
|
-
>
|
|
238
|
-
<ng-content></ng-content>
|
|
239
|
-
</symbiote-refresh-control>
|
|
240
|
-
`, isInline: true, dependencies: [{ kind: "component", type: RefreshControlHost, selector: "symbiote-refresh-control" }, { kind: "directive", type: SymbioteHostPropsDirective, selector: "[symbioteHostProps]", inputs: ["symbioteHostProps"], exportAs: ["symbioteHost"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
241
|
-
}
|
|
242
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: RefreshControl, decorators: [{
|
|
243
|
-
type: Component,
|
|
244
|
-
args: [{
|
|
245
|
-
selector: 'RefreshControl',
|
|
246
|
-
standalone: true,
|
|
247
|
-
hostDirectives: [
|
|
248
|
-
{ directive: SymbioteStyleInputDirective, inputs: ['style'] },
|
|
249
|
-
],
|
|
250
|
-
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
251
|
-
imports: [RefreshControlHost, SymbioteHostPropsDirective],
|
|
252
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
253
|
-
template: `
|
|
254
|
-
<symbiote-refresh-control
|
|
255
|
-
#host
|
|
256
|
-
[symbioteHostProps]="hostProps()"
|
|
257
|
-
(refresh)="handleRefresh()"
|
|
258
|
-
>
|
|
259
|
-
<ng-content></ng-content>
|
|
260
|
-
</symbiote-refresh-control>
|
|
261
|
-
`,
|
|
262
|
-
}]
|
|
263
|
-
}], propDecorators: { refreshing: [{
|
|
264
|
-
type: Input,
|
|
265
|
-
args: [{ required: true }]
|
|
266
|
-
}], refresh: [{
|
|
267
|
-
type: Output
|
|
268
|
-
}], tintColor: [{
|
|
269
|
-
type: Input
|
|
270
|
-
}], title: [{
|
|
271
|
-
type: Input
|
|
272
|
-
}], titleColor: [{
|
|
273
|
-
type: Input
|
|
274
|
-
}], progressViewOffset: [{
|
|
275
|
-
type: Input
|
|
276
|
-
}], colors: [{
|
|
277
|
-
type: Input
|
|
278
|
-
}], progressBackgroundColor: [{
|
|
279
|
-
type: Input
|
|
280
|
-
}], size: [{
|
|
281
|
-
type: Input
|
|
282
|
-
}], enabled: [{
|
|
283
|
-
type: Input
|
|
284
|
-
}], style: [{
|
|
285
|
-
type: Input
|
|
286
|
-
}], testID: [{
|
|
287
|
-
type: Input
|
|
288
|
-
}], nativeID: [{
|
|
289
|
-
type: Input
|
|
290
|
-
}], accessible: [{
|
|
291
|
-
type: Input
|
|
292
|
-
}], accessibilityLabel: [{
|
|
293
|
-
type: Input
|
|
294
|
-
}], accessibilityHint: [{
|
|
295
|
-
type: Input
|
|
296
|
-
}], accessibilityRole: [{
|
|
297
|
-
type: Input
|
|
298
|
-
}], accessibilityState: [{
|
|
299
|
-
type: Input
|
|
300
|
-
}], accessibilityValue: [{
|
|
301
|
-
type: Input
|
|
302
|
-
}], accessibilityActions: [{
|
|
303
|
-
type: Input
|
|
304
|
-
}], accessibilityLabelledBy: [{
|
|
305
|
-
type: Input
|
|
306
|
-
}], importantForAccessibility: [{
|
|
307
|
-
type: Input
|
|
308
|
-
}], accessibilityLiveRegion: [{
|
|
309
|
-
type: Input
|
|
310
|
-
}], screenReaderFocusable: [{
|
|
311
|
-
type: Input
|
|
312
|
-
}], accessibilityViewIsModal: [{
|
|
313
|
-
type: Input
|
|
314
|
-
}], accessibilityElementsHidden: [{
|
|
315
|
-
type: Input
|
|
316
|
-
}], accessibilityIgnoresInvertColors: [{
|
|
317
|
-
type: Input
|
|
318
|
-
}], accessibilityLanguage: [{
|
|
319
|
-
type: Input
|
|
320
|
-
}], accessibilityRespondsToUserInteraction: [{
|
|
321
|
-
type: Input
|
|
322
|
-
}], accessibilityShowsLargeContentViewer: [{
|
|
323
|
-
type: Input
|
|
324
|
-
}], accessibilityLargeContentTitle: [{
|
|
325
|
-
type: Input
|
|
326
|
-
}], accessibilityAction: [{
|
|
327
|
-
type: Output
|
|
328
|
-
}], accessibilityTap: [{
|
|
329
|
-
type: Output
|
|
330
|
-
}], magicTap: [{
|
|
331
|
-
type: Output
|
|
332
|
-
}], accessibilityEscape: [{
|
|
333
|
-
type: Output
|
|
334
|
-
}], role: [{
|
|
335
|
-
type: Input
|
|
336
|
-
}], ariaLabel: [{
|
|
337
|
-
type: Input,
|
|
338
|
-
args: ['aria-label']
|
|
339
|
-
}], ariaLabelledBy: [{
|
|
340
|
-
type: Input,
|
|
341
|
-
args: ['aria-labelledby']
|
|
342
|
-
}], ariaLive: [{
|
|
343
|
-
type: Input,
|
|
344
|
-
args: ['aria-live']
|
|
345
|
-
}], ariaHidden: [{
|
|
346
|
-
type: Input,
|
|
347
|
-
args: ['aria-hidden']
|
|
348
|
-
}], ariaBusy: [{
|
|
349
|
-
type: Input,
|
|
350
|
-
args: ['aria-busy']
|
|
351
|
-
}], ariaChecked: [{
|
|
352
|
-
type: Input,
|
|
353
|
-
args: ['aria-checked']
|
|
354
|
-
}], ariaDisabled: [{
|
|
355
|
-
type: Input,
|
|
356
|
-
args: ['aria-disabled']
|
|
357
|
-
}], ariaExpanded: [{
|
|
358
|
-
type: Input,
|
|
359
|
-
args: ['aria-expanded']
|
|
360
|
-
}], ariaSelected: [{
|
|
361
|
-
type: Input,
|
|
362
|
-
args: ['aria-selected']
|
|
363
|
-
}], ariaModal: [{
|
|
364
|
-
type: Input,
|
|
365
|
-
args: ['aria-modal']
|
|
366
|
-
}], ariaValueMax: [{
|
|
367
|
-
type: Input,
|
|
368
|
-
args: ['aria-valuemax']
|
|
369
|
-
}], ariaValueMin: [{
|
|
370
|
-
type: Input,
|
|
371
|
-
args: ['aria-valuemin']
|
|
372
|
-
}], ariaValueNow: [{
|
|
373
|
-
type: Input,
|
|
374
|
-
args: ['aria-valuenow']
|
|
375
|
-
}], ariaValueText: [{
|
|
376
|
-
type: Input,
|
|
377
|
-
args: ['aria-valuetext']
|
|
378
|
-
}], host: [{
|
|
379
|
-
type: ViewChild,
|
|
380
|
-
args: ['host']
|
|
381
|
-
}] } });
|
|
382
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/refresh-control/index.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,iGAAiG;AACjG,mGAAmG;AACnG,6FAA6F;AAC7F,kGAAkG;AAClG,sFAAsF;AACtF,kFAAkF;AAClF,+FAA+F;AAC/F,+CAA+C;AAC/C,EAAE;AACF,+FAA+F;AAC/F,+FAA+F;AAC/F,iGAAiG;AAEjG,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,MAAM,EACN,KAAK,EACL,MAAM,EACN,MAAM,EACN,SAAS,GAMV,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,yBAAyB,GAI1B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,mBAAmB,EACnB,IAAI,EACJ,eAAe,EACf,cAAc,GAIf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,kBAAkB,CAAC;;;AAgE1B,MAAM,OAAO,cAAc;IAQzB,kFAAkF;IACvD,UAAU,CAAW;IAChD,iGAAiG;IACjG,qGAAqG;IAClF,OAAO,GAAG,IAAI,YAAY,EAAQ,CAAC;IAC7C,SAAS,CAAU;IACnB,KAAK,CAAU;IACf,UAAU,CAAU;IACpB,kBAAkB,CAAU;IAC5B,MAAM,CAAqB;IAC3B,uBAAuB,CAAU;IACjC,IAAI,CAAuB;IAC3B,OAAO,CAAW;IAClB,KAAK,CAA0B;IAC/B,MAAM,CAAU;IAChB,QAAQ,CAAU;IAClB,UAAU,CAAW;IACrB,kBAAkB,CAAU;IAC5B,iBAAiB,CAAU;IAC3B,iBAAiB,CAA4C;IAC7D,kBAAkB,CAA4B;IAC9C,kBAAkB,CAA6C;IAC/D,oBAAoB,CAA+C;IACnE,uBAAuB,CAAqB;IAErD,yBAAyB,CAAoD;IAE7E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BAAsB,CAAC;oBACjC,OAAO,EAAE,CAAC,kBAAkB,EAAE,0BAA0B,CAAC;oBACzD,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,QAAQ,EAAE;;;;;;;;GAQT;iBACF;;sBAUE,KAAK;uBAAC,EAAE,QAAQ,EAAE,IAAI,EAAE;;sBAGxB,MAAM;;sBACN,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBAEL,KAAK;;sBAEL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,MAAM;;sBACN,MAAM;;sBACN,MAAM;;sBACN,MAAM;;sBACN,KAAK;;sBACL,KAAK;uBAAC,YAAY;;sBAClB,KAAK;uBAAC,iBAAiB;;sBACvB,KAAK;uBAAC,WAAW;;sBACjB,KAAK;uBAAC,aAAa;;sBACnB,KAAK;uBAAC,WAAW;;sBACjB,KAAK;uBAAC,cAAc;;sBACpB,KAAK;uBAAC,eAAe;;sBACrB,KAAK;uBAAC,eAAe;;sBACrB,KAAK;uBAAC,eAAe;;sBACrB,KAAK;uBAAC,YAAY;;sBAClB,KAAK;uBAAC,eAAe;;sBACrB,KAAK;uBAAC,eAAe;;sBACrB,KAAK;uBAAC,eAAe;;sBACrB,KAAK;uBAAC,gBAAgB;;sBAItB,SAAS;uBAAC,MAAM"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, type DoCheck, type OnChanges } from '@angular/core';
|
|
2
|
-
import { type IAccessibilityProps, type IAccessibilityStateValue, type IAriaProps } from '@symbiote-native/components';
|
|
3
|
-
import { type IStyleProp, type ISymbioteEvent, type IViewStyle } from '@symbiote-native/engine';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "../../primitives/shared";
|
|
6
|
-
export interface IAngularSafeAreaViewProps extends IAccessibilityProps, IAriaProps {
|
|
7
|
-
style?: IStyleProp<IViewStyle>;
|
|
8
|
-
id?: string;
|
|
9
|
-
onLayout?: (event: ISymbioteEvent) => void;
|
|
10
|
-
}
|
|
11
|
-
export type IAngularSafeAreaViewInputs = Omit<IAngularSafeAreaViewProps, 'onLayout' | 'onAccessibilityAction' | 'onAccessibilityTap' | 'onMagicTap' | 'onAccessibilityEscape'>;
|
|
12
|
-
export declare class SafeAreaView implements IAngularSafeAreaViewInputs, OnChanges, DoCheck {
|
|
13
|
-
style?: IStyleProp<IViewStyle>;
|
|
14
|
-
readonly layout: EventEmitter<ISymbioteEvent>;
|
|
15
|
-
readonly accessibilityAction: EventEmitter<ISymbioteEvent>;
|
|
16
|
-
readonly accessibilityTap: EventEmitter<ISymbioteEvent>;
|
|
17
|
-
readonly magicTap: EventEmitter<ISymbioteEvent>;
|
|
18
|
-
readonly accessibilityEscape: EventEmitter<ISymbioteEvent>;
|
|
19
|
-
testID?: string;
|
|
20
|
-
nativeID?: string;
|
|
21
|
-
accessible?: boolean;
|
|
22
|
-
accessibilityLabel?: string;
|
|
23
|
-
accessibilityHint?: string;
|
|
24
|
-
accessibilityRole?: IAccessibilityProps['accessibilityRole'];
|
|
25
|
-
accessibilityState?: IAccessibilityStateValue;
|
|
26
|
-
accessibilityValue?: IAccessibilityProps['accessibilityValue'];
|
|
27
|
-
accessibilityActions?: IAccessibilityProps['accessibilityActions'];
|
|
28
|
-
accessibilityLabelledBy?: string | string[];
|
|
29
|
-
importantForAccessibility?: IAccessibilityProps['importantForAccessibility'];
|
|
30
|
-
accessibilityLiveRegion?: IAccessibilityProps['accessibilityLiveRegion'];
|
|
31
|
-
screenReaderFocusable?: boolean;
|
|
32
|
-
accessibilityViewIsModal?: boolean;
|
|
33
|
-
accessibilityElementsHidden?: boolean;
|
|
34
|
-
accessibilityIgnoresInvertColors?: boolean;
|
|
35
|
-
accessibilityLanguage?: string;
|
|
36
|
-
accessibilityRespondsToUserInteraction?: boolean;
|
|
37
|
-
accessibilityShowsLargeContentViewer?: boolean;
|
|
38
|
-
accessibilityLargeContentTitle?: string;
|
|
39
|
-
role?: IAriaProps['role'];
|
|
40
|
-
ariaLabel?: string;
|
|
41
|
-
ariaLabelledBy?: string;
|
|
42
|
-
ariaLive?: IAriaProps['aria-live'];
|
|
43
|
-
ariaHidden?: boolean;
|
|
44
|
-
ariaBusy?: boolean;
|
|
45
|
-
ariaChecked?: boolean | 'mixed';
|
|
46
|
-
ariaDisabled?: boolean;
|
|
47
|
-
ariaExpanded?: boolean;
|
|
48
|
-
ariaSelected?: boolean;
|
|
49
|
-
ariaModal?: boolean;
|
|
50
|
-
ariaValueMax?: number;
|
|
51
|
-
ariaValueMin?: number;
|
|
52
|
-
ariaValueNow?: number;
|
|
53
|
-
ariaValueText?: string;
|
|
54
|
-
private readonly elementRef;
|
|
55
|
-
private emit;
|
|
56
|
-
private eventEmitterHandler;
|
|
57
|
-
private readonly hostPropsRevision;
|
|
58
|
-
private lastAnchorStyle;
|
|
59
|
-
ngOnChanges(): void;
|
|
60
|
-
ngDoCheck(): void;
|
|
61
|
-
readonly hostProps: import("@angular/core").Signal<Record<string, unknown>>;
|
|
62
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SafeAreaView, never>;
|
|
63
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SafeAreaView, "SafeAreaView", never, { "style": { "alias": "style"; "required": false; }; "testID": { "alias": "testID"; "required": false; }; "nativeID": { "alias": "nativeID"; "required": false; }; "accessible": { "alias": "accessible"; "required": false; }; "accessibilityLabel": { "alias": "accessibilityLabel"; "required": false; }; "accessibilityHint": { "alias": "accessibilityHint"; "required": false; }; "accessibilityRole": { "alias": "accessibilityRole"; "required": false; }; "accessibilityState": { "alias": "accessibilityState"; "required": false; }; "accessibilityValue": { "alias": "accessibilityValue"; "required": false; }; "accessibilityActions": { "alias": "accessibilityActions"; "required": false; }; "accessibilityLabelledBy": { "alias": "accessibilityLabelledBy"; "required": false; }; "importantForAccessibility": { "alias": "importantForAccessibility"; "required": false; }; "accessibilityLiveRegion": { "alias": "accessibilityLiveRegion"; "required": false; }; "screenReaderFocusable": { "alias": "screenReaderFocusable"; "required": false; }; "accessibilityViewIsModal": { "alias": "accessibilityViewIsModal"; "required": false; }; "accessibilityElementsHidden": { "alias": "accessibilityElementsHidden"; "required": false; }; "accessibilityIgnoresInvertColors": { "alias": "accessibilityIgnoresInvertColors"; "required": false; }; "accessibilityLanguage": { "alias": "accessibilityLanguage"; "required": false; }; "accessibilityRespondsToUserInteraction": { "alias": "accessibilityRespondsToUserInteraction"; "required": false; }; "accessibilityShowsLargeContentViewer": { "alias": "accessibilityShowsLargeContentViewer"; "required": false; }; "accessibilityLargeContentTitle": { "alias": "accessibilityLargeContentTitle"; "required": false; }; "role": { "alias": "role"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; }; "ariaLive": { "alias": "aria-live"; "required": false; }; "ariaHidden": { "alias": "aria-hidden"; "required": false; }; "ariaBusy": { "alias": "aria-busy"; "required": false; }; "ariaChecked": { "alias": "aria-checked"; "required": false; }; "ariaDisabled": { "alias": "aria-disabled"; "required": false; }; "ariaExpanded": { "alias": "aria-expanded"; "required": false; }; "ariaSelected": { "alias": "aria-selected"; "required": false; }; "ariaModal": { "alias": "aria-modal"; "required": false; }; "ariaValueMax": { "alias": "aria-valuemax"; "required": false; }; "ariaValueMin": { "alias": "aria-valuemin"; "required": false; }; "ariaValueNow": { "alias": "aria-valuenow"; "required": false; }; "ariaValueText": { "alias": "aria-valuetext"; "required": false; }; }, { "layout": "layout"; "accessibilityAction": "accessibilityAction"; "accessibilityTap": "accessibilityTap"; "magicTap": "magicTap"; "accessibilityEscape": "accessibilityEscape"; }, never, ["*"], true, [{ directive: typeof i1.SymbioteStyleInputDirective; inputs: { "style": "style"; }; outputs: {}; }]>;
|
|
64
|
-
}
|