@symbiote-native/angular 0.0.0-canary-20260724081123
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/LICENSE +21 -0
- package/README.md +157 -0
- package/babel-linker.cjs +7 -0
- package/babel-register-composed.cjs +127 -0
- package/bin/symbiote-angular-dev.cjs +93 -0
- package/build/angular/anchor-host-registry.d.ts +2 -0
- package/build/angular/anchor-host-registry.js +84 -0
- package/build/angular/anchor-host-registry.js.map +1 -0
- package/build/angular/bootstrap.d.ts +7 -0
- package/build/angular/bootstrap.js +15 -0
- package/build/angular/bootstrap.js.map +1 -0
- package/build/angular/components/activity-indicator/index.android.d.ts +12 -0
- package/build/angular/components/activity-indicator/index.android.js +21 -0
- package/build/angular/components/activity-indicator/index.android.js.map +1 -0
- package/build/angular/components/activity-indicator/index.d.ts +1 -0
- package/build/angular/components/activity-indicator/index.ios.d.ts +8 -0
- package/build/angular/components/activity-indicator/index.ios.js +21 -0
- package/build/angular/components/activity-indicator/index.ios.js.map +1 -0
- package/build/angular/components/activity-indicator/index.js +4 -0
- package/build/angular/components/activity-indicator/index.js.map +1 -0
- package/build/angular/components/activity-indicator/shared.d.ts +67 -0
- package/build/angular/components/activity-indicator/shared.js +260 -0
- package/build/angular/components/activity-indicator/shared.js.map +1 -0
- package/build/angular/components/button.d.ts +63 -0
- package/build/angular/components/button.js +332 -0
- package/build/angular/components/button.js.map +1 -0
- package/build/angular/components/flat-list/index.d.ts +122 -0
- package/build/angular/components/flat-list/index.js +688 -0
- package/build/angular/components/flat-list/index.js.map +1 -0
- package/build/angular/components/image/index.android.d.ts +10 -0
- package/build/angular/components/image/index.android.js +59 -0
- package/build/angular/components/image/index.android.js.map +1 -0
- package/build/angular/components/image/index.d.ts +1 -0
- package/build/angular/components/image/index.ios.d.ts +10 -0
- package/build/angular/components/image/index.ios.js +59 -0
- package/build/angular/components/image/index.ios.js.map +1 -0
- package/build/angular/components/image/index.js +3 -0
- package/build/angular/components/image/index.js.map +1 -0
- package/build/angular/components/image/shared.d.ts +101 -0
- package/build/angular/components/image/shared.js +406 -0
- package/build/angular/components/image/shared.js.map +1 -0
- package/build/angular/components/image-background.d.ts +81 -0
- package/build/angular/components/image-background.js +418 -0
- package/build/angular/components/image-background.js.map +1 -0
- package/build/angular/components/input-accessory-view/index.d.ts +60 -0
- package/build/angular/components/input-accessory-view/index.js +251 -0
- package/build/angular/components/input-accessory-view/index.js.map +1 -0
- package/build/angular/components/keyboard-avoiding-view/index.d.ts +82 -0
- package/build/angular/components/keyboard-avoiding-view/index.js +358 -0
- package/build/angular/components/keyboard-avoiding-view/index.js.map +1 -0
- package/build/angular/components/modal/index.d.ts +92 -0
- package/build/angular/components/modal/index.js +360 -0
- package/build/angular/components/modal/index.js.map +1 -0
- package/build/angular/components/pressable/index.d.ts +123 -0
- package/build/angular/components/pressable/index.js +420 -0
- package/build/angular/components/pressable/index.js.map +1 -0
- package/build/angular/components/refresh-control/index.d.ts +86 -0
- package/build/angular/components/refresh-control/index.js +342 -0
- package/build/angular/components/refresh-control/index.js.map +1 -0
- package/build/angular/components/safe-area-view/index.d.ts +57 -0
- package/build/angular/components/safe-area-view/index.js +248 -0
- package/build/angular/components/safe-area-view/index.js.map +1 -0
- package/build/angular/components/scroll-view/index.android.d.ts +21 -0
- package/build/angular/components/scroll-view/index.android.js +235 -0
- package/build/angular/components/scroll-view/index.android.js.map +1 -0
- package/build/angular/components/scroll-view/index.d.ts +3 -0
- package/build/angular/components/scroll-view/index.ios.d.ts +9 -0
- package/build/angular/components/scroll-view/index.ios.js +86 -0
- package/build/angular/components/scroll-view/index.ios.js.map +1 -0
- package/build/angular/components/scroll-view/index.js +6 -0
- package/build/angular/components/scroll-view/index.js.map +1 -0
- package/build/angular/components/scroll-view/projection.d.ts +32 -0
- package/build/angular/components/scroll-view/projection.js +334 -0
- package/build/angular/components/scroll-view/projection.js.map +1 -0
- package/build/angular/components/scroll-view/shared.d.ts +230 -0
- package/build/angular/components/scroll-view/shared.js +682 -0
- package/build/angular/components/scroll-view/shared.js.map +1 -0
- package/build/angular/components/scroll-view/sticky-header.d.ts +40 -0
- package/build/angular/components/scroll-view/sticky-header.js +225 -0
- package/build/angular/components/scroll-view/sticky-header.js.map +1 -0
- package/build/angular/components/section-list/index.d.ts +116 -0
- package/build/angular/components/section-list/index.js +641 -0
- package/build/angular/components/section-list/index.js.map +1 -0
- package/build/angular/components/switch/index.android.d.ts +20 -0
- package/build/angular/components/switch/index.android.js +70 -0
- package/build/angular/components/switch/index.android.js.map +1 -0
- package/build/angular/components/switch/index.d.ts +1 -0
- package/build/angular/components/switch/index.ios.d.ts +19 -0
- package/build/angular/components/switch/index.ios.js +69 -0
- package/build/angular/components/switch/index.ios.js.map +1 -0
- package/build/angular/components/switch/index.js +4 -0
- package/build/angular/components/switch/index.js.map +1 -0
- package/build/angular/components/switch/shared.d.ts +40 -0
- package/build/angular/components/switch/shared.js +127 -0
- package/build/angular/components/switch/shared.js.map +1 -0
- package/build/angular/components/text-input.d.ts +153 -0
- package/build/angular/components/text-input.js +599 -0
- package/build/angular/components/text-input.js.map +1 -0
- package/build/angular/components/touchable/index.d.ts +245 -0
- package/build/angular/components/touchable/index.js +1186 -0
- package/build/angular/components/touchable/index.js.map +1 -0
- package/build/angular/components/touchable-native-feedback/index.d.ts +83 -0
- package/build/angular/components/touchable-native-feedback/index.js +371 -0
- package/build/angular/components/touchable-native-feedback/index.js.map +1 -0
- package/build/angular/components/virtualized-list/directives.d.ts +54 -0
- package/build/angular/components/virtualized-list/directives.js +153 -0
- package/build/angular/components/virtualized-list/directives.js.map +1 -0
- package/build/angular/components/virtualized-list/index.d.ts +253 -0
- package/build/angular/components/virtualized-list/index.js +1031 -0
- package/build/angular/components/virtualized-list/index.js.map +1 -0
- package/build/angular/components/virtualized-section-list/directives.d.ts +37 -0
- package/build/angular/components/virtualized-section-list/directives.js +76 -0
- package/build/angular/components/virtualized-section-list/directives.js.map +1 -0
- package/build/angular/components/virtualized-section-list/index.d.ts +178 -0
- package/build/angular/components/virtualized-section-list/index.js +720 -0
- package/build/angular/components/virtualized-section-list/index.js.map +1 -0
- package/build/angular/components.d.ts +39 -0
- package/build/angular/components.js +38 -0
- package/build/angular/components.js.map +1 -0
- package/build/angular/create-portal/index.d.ts +22 -0
- package/build/angular/create-portal/index.js +74 -0
- package/build/angular/create-portal/index.js.map +1 -0
- package/build/angular/create-tunnel/index.d.ts +34 -0
- package/build/angular/create-tunnel/index.js +126 -0
- package/build/angular/create-tunnel/index.js.map +1 -0
- package/build/angular/descriptor-to-angular/index.d.ts +22 -0
- package/build/angular/descriptor-to-angular/index.js +142 -0
- package/build/angular/descriptor-to-angular/index.js.map +1 -0
- package/build/angular/host-instance/index.d.ts +2 -0
- package/build/angular/host-instance/index.js +37 -0
- package/build/angular/host-instance/index.js.map +1 -0
- package/build/angular/index.d.ts +22 -0
- package/build/angular/index.js +46 -0
- package/build/angular/index.js.map +1 -0
- package/build/angular/modules/animated/animated-leaf-binder/index.d.ts +14 -0
- package/build/angular/modules/animated/animated-leaf-binder/index.js +91 -0
- package/build/angular/modules/animated/animated-leaf-binder/index.js.map +1 -0
- package/build/angular/modules/animated/animated-leaf-binder.d.ts +14 -0
- package/build/angular/modules/animated/animated-leaf-binder.js +91 -0
- package/build/angular/modules/animated/animated-leaf-binder.js.map +1 -0
- package/build/angular/modules/animated/create-animated-component.d.ts +59 -0
- package/build/angular/modules/animated/create-animated-component.js +364 -0
- package/build/angular/modules/animated/create-animated-component.js.map +1 -0
- package/build/angular/modules/animated/index.d.ts +51 -0
- package/build/angular/modules/animated/index.js +59 -0
- package/build/angular/modules/animated/index.js.map +1 -0
- package/build/angular/modules/app-registry/index.d.ts +7 -0
- package/build/angular/modules/app-registry/index.js +23 -0
- package/build/angular/modules/app-registry/index.js.map +1 -0
- package/build/angular/modules/status-bar/index.d.ts +20 -0
- package/build/angular/modules/status-bar/index.js +59 -0
- package/build/angular/modules/status-bar/index.js.map +1 -0
- package/build/angular/primitives/index.d.ts +63 -0
- package/build/angular/primitives/index.js +189 -0
- package/build/angular/primitives/index.js.map +1 -0
- package/build/angular/primitives/shared.d.ts +88 -0
- package/build/angular/primitives/shared.js +171 -0
- package/build/angular/primitives/shared.js.map +1 -0
- package/build/angular/render/index.d.ts +11 -0
- package/build/angular/render/index.js +171 -0
- package/build/angular/render/index.js.map +1 -0
- package/build/angular/renderer/index.d.ts +37 -0
- package/build/angular/renderer/index.js +301 -0
- package/build/angular/renderer/index.js.map +1 -0
- package/build/angular/services/color-scheme.service.d.ts +16 -0
- package/build/angular/services/color-scheme.service.js +31 -0
- package/build/angular/services/color-scheme.service.js.map +1 -0
- package/build/angular/services/index.d.ts +2 -0
- package/build/angular/services/index.js +3 -0
- package/build/angular/services/index.js.map +1 -0
- package/build/angular/services/window-dimensions.service.d.ts +16 -0
- package/build/angular/services/window-dimensions.service.js +42 -0
- package/build/angular/services/window-dimensions.service.js.map +1 -0
- package/metro-config.cjs +48 -0
- package/metro-css-parser.cjs +13 -0
- package/package.json +80 -0
- package/src/__tests__/responder-change-detection.test.ts +102 -0
- package/src/__tests__/responder-nested-cd.test.ts +113 -0
- package/src/anchor-host-registry.ts +88 -0
- package/src/angular-gaps.test.ts +142 -0
- package/src/angular-imports.test.ts +100 -0
- package/src/bootstrap.ts +26 -0
- package/src/components/activity-indicator/activity-indicator-class-style.test.ts +44 -0
- package/src/components/activity-indicator/activity-indicator.test.ts +131 -0
- package/src/components/activity-indicator/index.android.ts +16 -0
- package/src/components/activity-indicator/index.ios.ts +17 -0
- package/src/components/activity-indicator/index.ts +4 -0
- package/src/components/activity-indicator/shared.ts +206 -0
- package/src/components/button.ts +193 -0
- package/src/components/flat-list/column-wrapper-style-class.test.ts +116 -0
- package/src/components/flat-list/flat-list-array-style.test.ts +131 -0
- package/src/components/flat-list/flat-list-class-style.test.ts +74 -0
- package/src/components/flat-list/flat-list-scroll-containment.test.ts +107 -0
- package/src/components/flat-list/flat-list.test.ts +99 -0
- package/src/components/flat-list/index.ts +574 -0
- package/src/components/image/image-class-style.test.ts +46 -0
- package/src/components/image/index.android.ts +48 -0
- package/src/components/image/index.ios.ts +48 -0
- package/src/components/image/index.ts +3 -0
- package/src/components/image/shared.ts +479 -0
- package/src/components/image-background-class-style.test.ts +48 -0
- package/src/components/image-background-style-class.test.ts +79 -0
- package/src/components/image-background.ts +270 -0
- package/src/components/input-accessory-view/index.ts +185 -0
- package/src/components/input-accessory-view/input-accessory-view.test.ts +43 -0
- package/src/components/keyboard-avoiding-view/index.ts +303 -0
- package/src/components/keyboard-avoiding-view/keyboard-avoiding-view.test.ts +54 -0
- package/src/components/modal/index.ts +299 -0
- package/src/components/modal/modal.test.ts +43 -0
- package/src/components/pressable/index.ts +373 -0
- package/src/components/pressable/pressable.test.ts +85 -0
- package/src/components/refresh-control/index.ts +284 -0
- package/src/components/refresh-control/refresh-control.test.ts +41 -0
- package/src/components/safe-area-view/index.ts +177 -0
- package/src/components/safe-area-view/safe-area-view.test.ts +43 -0
- package/src/components/scroll-view/android-scroll-view-axis-projection.test.ts +123 -0
- package/src/components/scroll-view/content-container-style-class.test.ts +75 -0
- package/src/components/scroll-view/index.android.ts +190 -0
- package/src/components/scroll-view/index.ios.ts +79 -0
- package/src/components/scroll-view/index.ts +7 -0
- package/src/components/scroll-view/projection.ts +414 -0
- package/src/components/scroll-view/scroll-view-class-style.test.ts +134 -0
- package/src/components/scroll-view/scroll-view-projection.test.ts +194 -0
- package/src/components/scroll-view/shared.ts +844 -0
- package/src/components/scroll-view/sticky-header.ts +255 -0
- package/src/components/section-list/index.ts +445 -0
- package/src/components/switch/android-switch-class.test.ts +42 -0
- package/src/components/switch/index.android.ts +61 -0
- package/src/components/switch/index.ios.ts +60 -0
- package/src/components/switch/index.ts +4 -0
- package/src/components/switch/shared.ts +197 -0
- package/src/components/switch/switch.test.ts +92 -0
- package/src/components/text-input-class-style.test.ts +54 -0
- package/src/components/text-input.ts +531 -0
- package/src/components/touchable/index.ts +629 -0
- package/src/components/touchable/touchable.test.ts +102 -0
- package/src/components/touchable-native-feedback/index.ts +254 -0
- package/src/components/touchable-native-feedback/touchable-native-feedback.test.ts +49 -0
- package/src/components/virtualized-list/directives.ts +168 -0
- package/src/components/virtualized-list/index.ts +992 -0
- package/src/components/virtualized-list/virtualized-list-class-style.test.ts +76 -0
- package/src/components/virtualized-section-list/directives.ts +90 -0
- package/src/components/virtualized-section-list/index.ts +601 -0
- package/src/components/virtualized-section-list/virtualized-section-list-class-style.test.ts +60 -0
- package/src/components.ts +149 -0
- package/src/create-portal/create-portal.test.ts +90 -0
- package/src/create-portal/index.ts +74 -0
- package/src/create-tunnel/create-tunnel.test.ts +120 -0
- package/src/create-tunnel/index.ts +136 -0
- package/src/descriptor-to-angular/descriptor-outlet.test.ts +94 -0
- package/src/descriptor-to-angular/index.ts +190 -0
- package/src/host-instance/host-instance.test.ts +49 -0
- package/src/host-instance/index.ts +36 -0
- package/src/index.ts +261 -0
- package/src/modules/animated/animated-leaf-binder/animated-leaf-binder.test.ts +116 -0
- package/src/modules/animated/animated-leaf-binder/index.ts +101 -0
- package/src/modules/animated/animated-leaf-binder.test.ts +116 -0
- package/src/modules/animated/animated-leaf-binder.ts +101 -0
- package/src/modules/animated/animated-scroll-view.test.ts +102 -0
- package/src/modules/animated/create-animated-component.ts +365 -0
- package/src/modules/animated/index.ts +105 -0
- package/src/modules/app-registry/app-registry.test.ts +106 -0
- package/src/modules/app-registry/index.ts +60 -0
- package/src/modules/status-bar/index.ts +57 -0
- package/src/modules/status-bar/status-bar.test.ts +50 -0
- package/src/primitives/index.ts +119 -0
- package/src/primitives/shared.ts +190 -0
- package/src/render/index.ts +235 -0
- package/src/render/render.test.ts +147 -0
- package/src/renderer/index.ts +347 -0
- package/src/renderer/renderer.test.ts +203 -0
- package/src/services/color-scheme.service.ts +27 -0
- package/src/services/index.ts +2 -0
- package/src/services/services.test.ts +163 -0
- package/src/services/window-dimensions.service.ts +41 -0
- package/tsconfig.angular.base.json +30 -0
|
@@ -0,0 +1,342 @@
|
|
|
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>.
|
|
4
|
+
// The Angular twin of the React/Vue RefreshControl. There is no JS-side platform renaming and no
|
|
5
|
+
// shared render fn — every prop forwards straight to the native node, which reads the ones it
|
|
6
|
+
// understands and ignores the rest, so the Android-only and iOS-only families ride down harmlessly
|
|
7
|
+
// on both. So this folds aria/role through the shared resolveAccessibilityProps and maps the native
|
|
8
|
+
// props + a11y + onRefresh straight onto the symbiote-refresh-control host, children via <ng-content>.
|
|
9
|
+
// No platform branch (one composed component both 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, ElementRef, EventEmitter, inject, Input, Output, 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 } from '../../primitives';
|
|
18
|
+
import * as i0 from "@angular/core";
|
|
19
|
+
export class RefreshControl {
|
|
20
|
+
// Controlled prop the parent owns; required to match the React reference surface.
|
|
21
|
+
refreshing;
|
|
22
|
+
// RN's onRefresh is `() => void | Promise<void>`, so the callback shape allows an async handler;
|
|
23
|
+
// the @Output() itself only signals the gesture (fire-and-forget, native already starts refreshing).
|
|
24
|
+
refresh = new EventEmitter();
|
|
25
|
+
tintColor;
|
|
26
|
+
title;
|
|
27
|
+
titleColor;
|
|
28
|
+
progressViewOffset;
|
|
29
|
+
colors;
|
|
30
|
+
progressBackgroundColor;
|
|
31
|
+
size;
|
|
32
|
+
enabled;
|
|
33
|
+
style;
|
|
34
|
+
testID;
|
|
35
|
+
nativeID;
|
|
36
|
+
accessible;
|
|
37
|
+
accessibilityLabel;
|
|
38
|
+
accessibilityHint;
|
|
39
|
+
accessibilityRole;
|
|
40
|
+
accessibilityState;
|
|
41
|
+
accessibilityValue;
|
|
42
|
+
accessibilityActions;
|
|
43
|
+
accessibilityLabelledBy;
|
|
44
|
+
importantForAccessibility;
|
|
45
|
+
accessibilityLiveRegion;
|
|
46
|
+
screenReaderFocusable;
|
|
47
|
+
accessibilityViewIsModal;
|
|
48
|
+
accessibilityElementsHidden;
|
|
49
|
+
accessibilityIgnoresInvertColors;
|
|
50
|
+
accessibilityLanguage;
|
|
51
|
+
accessibilityRespondsToUserInteraction;
|
|
52
|
+
accessibilityShowsLargeContentViewer;
|
|
53
|
+
accessibilityLargeContentTitle;
|
|
54
|
+
accessibilityAction = new EventEmitter();
|
|
55
|
+
accessibilityTap = new EventEmitter();
|
|
56
|
+
magicTap = new EventEmitter();
|
|
57
|
+
accessibilityEscape = new EventEmitter();
|
|
58
|
+
role;
|
|
59
|
+
ariaLabel;
|
|
60
|
+
ariaLabelledBy;
|
|
61
|
+
ariaLive;
|
|
62
|
+
ariaHidden;
|
|
63
|
+
ariaBusy;
|
|
64
|
+
ariaChecked;
|
|
65
|
+
ariaDisabled;
|
|
66
|
+
ariaExpanded;
|
|
67
|
+
ariaSelected;
|
|
68
|
+
ariaModal;
|
|
69
|
+
ariaValueMax;
|
|
70
|
+
ariaValueMin;
|
|
71
|
+
ariaValueNow;
|
|
72
|
+
ariaValueText;
|
|
73
|
+
// The inner symbiote-refresh-control primitive — NOT this component's own anchor host. Used for
|
|
74
|
+
// the imperative dispatchViewCommand calls below.
|
|
75
|
+
host;
|
|
76
|
+
// This component's OWN host — the non-painting anchor `class="..."` at the use site resolves
|
|
77
|
+
// onto (see anchorHostStyle's doc comment) — distinct from `host` above, which targets the real
|
|
78
|
+
// inner `symbiote-refresh-control` primitive one level down.
|
|
79
|
+
elementRef = inject(ElementRef);
|
|
80
|
+
lastNativeRefreshing = false;
|
|
81
|
+
refreshNativeNode;
|
|
82
|
+
ngOnInit() {
|
|
83
|
+
dlog('RefreshControl -> PullToRefreshView');
|
|
84
|
+
dlog(`RefreshControl refreshing=${String(this.refreshing)}`);
|
|
85
|
+
if (this.enabled !== undefined)
|
|
86
|
+
dlog(`RefreshControl enabled=${String(this.enabled)} (Android-only)`);
|
|
87
|
+
if (this.refresh.observed)
|
|
88
|
+
dlog('RefreshControl refresh listener wired');
|
|
89
|
+
}
|
|
90
|
+
ngAfterViewInit() {
|
|
91
|
+
this.lastNativeRefreshing = this.refreshing;
|
|
92
|
+
}
|
|
93
|
+
ngOnChanges(changes) {
|
|
94
|
+
const refreshing = changes.refreshing;
|
|
95
|
+
if (refreshing === undefined)
|
|
96
|
+
return;
|
|
97
|
+
if (refreshing.firstChange) {
|
|
98
|
+
this.lastNativeRefreshing = this.refreshing;
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
this.syncNativeRefreshing(this.refreshNativeNode ?? this.host?.nativeElement);
|
|
102
|
+
}
|
|
103
|
+
// Native starts the spinner before JS runs. Mirror RN's RefreshControl controlled-component
|
|
104
|
+
// handshake: remember that native is refreshing, call the user's callback, then after Angular has
|
|
105
|
+
// had a chance to propagate `[refreshing]`, force native back to the JS value if it stayed false.
|
|
106
|
+
handleRefresh(nativeNode = this.host?.nativeElement) {
|
|
107
|
+
this.refreshNativeNode = nativeNode;
|
|
108
|
+
this.lastNativeRefreshing = true;
|
|
109
|
+
this.refresh.emit();
|
|
110
|
+
queueMicrotask(() => this.syncNativeRefreshing(nativeNode));
|
|
111
|
+
}
|
|
112
|
+
syncNativeRefreshing(nativeNode) {
|
|
113
|
+
if (this.refreshing === this.lastNativeRefreshing)
|
|
114
|
+
return;
|
|
115
|
+
if (!isSymbioteNode(nativeNode))
|
|
116
|
+
return;
|
|
117
|
+
dispatchViewCommand(nativeNode, 'setNativeRefreshing', [this.refreshing]);
|
|
118
|
+
this.lastNativeRefreshing = this.refreshing;
|
|
119
|
+
}
|
|
120
|
+
// Forward an engine event to the matching @Output(), narrowing the template's untyped $event
|
|
121
|
+
// first. The accessibility* events arrive on the engine's structural event channel.
|
|
122
|
+
emit(emitter, event) {
|
|
123
|
+
if (isSymbioteEvent(event))
|
|
124
|
+
emitter.emit(event);
|
|
125
|
+
}
|
|
126
|
+
// The full native + a11y prop bag applied onto the host in one shot via
|
|
127
|
+
// [symbioteHostProps], instead of enumerating each key as its own template binding. The
|
|
128
|
+
// anchor's class-derived style goes FIRST, this component's own explicit `style` @Input SECOND
|
|
129
|
+
// — flattenStyle's later-wins collapse keeps an explicit [style] winning over its ambient class.
|
|
130
|
+
get hostProps() {
|
|
131
|
+
return {
|
|
132
|
+
refreshing: this.refreshing,
|
|
133
|
+
tintColor: this.tintColor,
|
|
134
|
+
title: this.title,
|
|
135
|
+
titleColor: this.titleColor,
|
|
136
|
+
progressViewOffset: this.progressViewOffset,
|
|
137
|
+
colors: this.colors,
|
|
138
|
+
progressBackgroundColor: this.progressBackgroundColor,
|
|
139
|
+
size: this.size,
|
|
140
|
+
enabled: this.enabled,
|
|
141
|
+
style: [anchorHostStyle(this.elementRef), this.style],
|
|
142
|
+
testID: this.testID,
|
|
143
|
+
nativeID: this.nativeID,
|
|
144
|
+
accessible: this.accessible,
|
|
145
|
+
...this.folded,
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
// Fold the web aria-*/role aliases into the canonical accessibility* props once per render, so the
|
|
149
|
+
// host node never sees an aria-* key (native ignores them) — the shared transform every adapter runs.
|
|
150
|
+
get folded() {
|
|
151
|
+
return resolveAccessibilityProps({
|
|
152
|
+
accessibilityLabel: this.accessibilityLabel,
|
|
153
|
+
accessibilityHint: this.accessibilityHint,
|
|
154
|
+
accessibilityRole: this.accessibilityRole,
|
|
155
|
+
accessibilityState: this.accessibilityState,
|
|
156
|
+
accessibilityValue: this.accessibilityValue,
|
|
157
|
+
accessibilityActions: this.accessibilityActions,
|
|
158
|
+
accessibilityLabelledBy: this.accessibilityLabelledBy,
|
|
159
|
+
importantForAccessibility: this.importantForAccessibility,
|
|
160
|
+
accessibilityLiveRegion: this.accessibilityLiveRegion,
|
|
161
|
+
screenReaderFocusable: this.screenReaderFocusable,
|
|
162
|
+
accessibilityViewIsModal: this.accessibilityViewIsModal,
|
|
163
|
+
accessibilityElementsHidden: this.accessibilityElementsHidden,
|
|
164
|
+
accessibilityIgnoresInvertColors: this.accessibilityIgnoresInvertColors,
|
|
165
|
+
accessibilityLanguage: this.accessibilityLanguage,
|
|
166
|
+
accessibilityRespondsToUserInteraction: this.accessibilityRespondsToUserInteraction,
|
|
167
|
+
accessibilityShowsLargeContentViewer: this.accessibilityShowsLargeContentViewer,
|
|
168
|
+
accessibilityLargeContentTitle: this.accessibilityLargeContentTitle,
|
|
169
|
+
role: this.role,
|
|
170
|
+
'aria-label': this.ariaLabel,
|
|
171
|
+
'aria-labelledby': this.ariaLabelledBy,
|
|
172
|
+
'aria-live': this.ariaLive,
|
|
173
|
+
'aria-hidden': this.ariaHidden,
|
|
174
|
+
'aria-busy': this.ariaBusy,
|
|
175
|
+
'aria-checked': this.ariaChecked,
|
|
176
|
+
'aria-disabled': this.ariaDisabled,
|
|
177
|
+
'aria-expanded': this.ariaExpanded,
|
|
178
|
+
'aria-selected': this.ariaSelected,
|
|
179
|
+
'aria-modal': this.ariaModal,
|
|
180
|
+
'aria-valuemax': this.ariaValueMax,
|
|
181
|
+
'aria-valuemin': this.ariaValueMin,
|
|
182
|
+
'aria-valuenow': this.ariaValueNow,
|
|
183
|
+
'aria-valuetext': this.ariaValueText,
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: RefreshControl, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
187
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.5", 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, ngImport: i0, template: `
|
|
188
|
+
<symbiote-refresh-control
|
|
189
|
+
#host
|
|
190
|
+
[symbioteHostProps]="hostProps"
|
|
191
|
+
(refresh)="handleRefresh()"
|
|
192
|
+
(accessibilityAction)="emit(accessibilityAction, $event)"
|
|
193
|
+
(accessibilityTap)="emit(accessibilityTap, $event)"
|
|
194
|
+
(magicTap)="emit(magicTap, $event)"
|
|
195
|
+
(accessibilityEscape)="emit(accessibilityEscape, $event)"
|
|
196
|
+
>
|
|
197
|
+
<ng-content></ng-content>
|
|
198
|
+
</symbiote-refresh-control>
|
|
199
|
+
`, 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 });
|
|
200
|
+
}
|
|
201
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: RefreshControl, decorators: [{
|
|
202
|
+
type: Component,
|
|
203
|
+
args: [{
|
|
204
|
+
selector: 'RefreshControl',
|
|
205
|
+
standalone: true,
|
|
206
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
207
|
+
imports: [RefreshControlHost, SymbioteHostPropsDirective],
|
|
208
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
209
|
+
template: `
|
|
210
|
+
<symbiote-refresh-control
|
|
211
|
+
#host
|
|
212
|
+
[symbioteHostProps]="hostProps"
|
|
213
|
+
(refresh)="handleRefresh()"
|
|
214
|
+
(accessibilityAction)="emit(accessibilityAction, $event)"
|
|
215
|
+
(accessibilityTap)="emit(accessibilityTap, $event)"
|
|
216
|
+
(magicTap)="emit(magicTap, $event)"
|
|
217
|
+
(accessibilityEscape)="emit(accessibilityEscape, $event)"
|
|
218
|
+
>
|
|
219
|
+
<ng-content></ng-content>
|
|
220
|
+
</symbiote-refresh-control>
|
|
221
|
+
`,
|
|
222
|
+
}]
|
|
223
|
+
}], propDecorators: { refreshing: [{
|
|
224
|
+
type: Input,
|
|
225
|
+
args: [{ required: true }]
|
|
226
|
+
}], refresh: [{
|
|
227
|
+
type: Output
|
|
228
|
+
}], tintColor: [{
|
|
229
|
+
type: Input
|
|
230
|
+
}], title: [{
|
|
231
|
+
type: Input
|
|
232
|
+
}], titleColor: [{
|
|
233
|
+
type: Input
|
|
234
|
+
}], progressViewOffset: [{
|
|
235
|
+
type: Input
|
|
236
|
+
}], colors: [{
|
|
237
|
+
type: Input
|
|
238
|
+
}], progressBackgroundColor: [{
|
|
239
|
+
type: Input
|
|
240
|
+
}], size: [{
|
|
241
|
+
type: Input
|
|
242
|
+
}], enabled: [{
|
|
243
|
+
type: Input
|
|
244
|
+
}], style: [{
|
|
245
|
+
type: Input
|
|
246
|
+
}], testID: [{
|
|
247
|
+
type: Input
|
|
248
|
+
}], nativeID: [{
|
|
249
|
+
type: Input
|
|
250
|
+
}], accessible: [{
|
|
251
|
+
type: Input
|
|
252
|
+
}], accessibilityLabel: [{
|
|
253
|
+
type: Input
|
|
254
|
+
}], accessibilityHint: [{
|
|
255
|
+
type: Input
|
|
256
|
+
}], accessibilityRole: [{
|
|
257
|
+
type: Input
|
|
258
|
+
}], accessibilityState: [{
|
|
259
|
+
type: Input
|
|
260
|
+
}], accessibilityValue: [{
|
|
261
|
+
type: Input
|
|
262
|
+
}], accessibilityActions: [{
|
|
263
|
+
type: Input
|
|
264
|
+
}], accessibilityLabelledBy: [{
|
|
265
|
+
type: Input
|
|
266
|
+
}], importantForAccessibility: [{
|
|
267
|
+
type: Input
|
|
268
|
+
}], accessibilityLiveRegion: [{
|
|
269
|
+
type: Input
|
|
270
|
+
}], screenReaderFocusable: [{
|
|
271
|
+
type: Input
|
|
272
|
+
}], accessibilityViewIsModal: [{
|
|
273
|
+
type: Input
|
|
274
|
+
}], accessibilityElementsHidden: [{
|
|
275
|
+
type: Input
|
|
276
|
+
}], accessibilityIgnoresInvertColors: [{
|
|
277
|
+
type: Input
|
|
278
|
+
}], accessibilityLanguage: [{
|
|
279
|
+
type: Input
|
|
280
|
+
}], accessibilityRespondsToUserInteraction: [{
|
|
281
|
+
type: Input
|
|
282
|
+
}], accessibilityShowsLargeContentViewer: [{
|
|
283
|
+
type: Input
|
|
284
|
+
}], accessibilityLargeContentTitle: [{
|
|
285
|
+
type: Input
|
|
286
|
+
}], accessibilityAction: [{
|
|
287
|
+
type: Output
|
|
288
|
+
}], accessibilityTap: [{
|
|
289
|
+
type: Output
|
|
290
|
+
}], magicTap: [{
|
|
291
|
+
type: Output
|
|
292
|
+
}], accessibilityEscape: [{
|
|
293
|
+
type: Output
|
|
294
|
+
}], role: [{
|
|
295
|
+
type: Input
|
|
296
|
+
}], ariaLabel: [{
|
|
297
|
+
type: Input,
|
|
298
|
+
args: ['aria-label']
|
|
299
|
+
}], ariaLabelledBy: [{
|
|
300
|
+
type: Input,
|
|
301
|
+
args: ['aria-labelledby']
|
|
302
|
+
}], ariaLive: [{
|
|
303
|
+
type: Input,
|
|
304
|
+
args: ['aria-live']
|
|
305
|
+
}], ariaHidden: [{
|
|
306
|
+
type: Input,
|
|
307
|
+
args: ['aria-hidden']
|
|
308
|
+
}], ariaBusy: [{
|
|
309
|
+
type: Input,
|
|
310
|
+
args: ['aria-busy']
|
|
311
|
+
}], ariaChecked: [{
|
|
312
|
+
type: Input,
|
|
313
|
+
args: ['aria-checked']
|
|
314
|
+
}], ariaDisabled: [{
|
|
315
|
+
type: Input,
|
|
316
|
+
args: ['aria-disabled']
|
|
317
|
+
}], ariaExpanded: [{
|
|
318
|
+
type: Input,
|
|
319
|
+
args: ['aria-expanded']
|
|
320
|
+
}], ariaSelected: [{
|
|
321
|
+
type: Input,
|
|
322
|
+
args: ['aria-selected']
|
|
323
|
+
}], ariaModal: [{
|
|
324
|
+
type: Input,
|
|
325
|
+
args: ['aria-modal']
|
|
326
|
+
}], ariaValueMax: [{
|
|
327
|
+
type: Input,
|
|
328
|
+
args: ['aria-valuemax']
|
|
329
|
+
}], ariaValueMin: [{
|
|
330
|
+
type: Input,
|
|
331
|
+
args: ['aria-valuemin']
|
|
332
|
+
}], ariaValueNow: [{
|
|
333
|
+
type: Input,
|
|
334
|
+
args: ['aria-valuenow']
|
|
335
|
+
}], ariaValueText: [{
|
|
336
|
+
type: Input,
|
|
337
|
+
args: ['aria-valuetext']
|
|
338
|
+
}], host: [{
|
|
339
|
+
type: ViewChild,
|
|
340
|
+
args: ['host']
|
|
341
|
+
}] } });
|
|
342
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/refresh-control/index.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,iGAAiG;AACjG,0FAA0F;AAC1F,iGAAiG;AACjG,8FAA8F;AAC9F,mGAAmG;AACnG,oGAAoG;AACpG,uGAAuG;AACvG,gGAAgG;AAChG,EAAE;AACF,+FAA+F;AAC/F,+FAA+F;AAC/F,iGAAiG;AAEjG,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,SAAS,EACT,UAAU,EACV,YAAY,EACZ,MAAM,EACN,KAAK,EACL,MAAM,EACN,SAAS,GAKV,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,EAAE,eAAe,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;;AAgEnG,MAAM,OAAO,cAAc;IAGzB,kFA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AC,eAAe;;sBACrB,KAAK;uBAAC,eAAe;;sBACrB,KAAK;uBAAC,eAAe;;sBACrB,KAAK;uBAAC,gBAAgB;;sBAItB,SAAS;uBAAC,MAAM"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { EventEmitter } 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
|
+
export interface IAngularSafeAreaViewProps extends IAccessibilityProps, IAriaProps {
|
|
6
|
+
style?: IStyleProp<IViewStyle>;
|
|
7
|
+
onLayout?: (event: ISymbioteEvent) => void;
|
|
8
|
+
}
|
|
9
|
+
export type IAngularSafeAreaViewInputs = Omit<IAngularSafeAreaViewProps, 'onLayout' | 'onAccessibilityAction' | 'onAccessibilityTap' | 'onMagicTap' | 'onAccessibilityEscape'>;
|
|
10
|
+
export declare class SafeAreaView implements IAngularSafeAreaViewInputs {
|
|
11
|
+
style?: IStyleProp<IViewStyle>;
|
|
12
|
+
readonly layout: EventEmitter<ISymbioteEvent>;
|
|
13
|
+
readonly accessibilityAction: EventEmitter<ISymbioteEvent>;
|
|
14
|
+
readonly accessibilityTap: EventEmitter<ISymbioteEvent>;
|
|
15
|
+
readonly magicTap: EventEmitter<ISymbioteEvent>;
|
|
16
|
+
readonly accessibilityEscape: EventEmitter<ISymbioteEvent>;
|
|
17
|
+
testID?: string;
|
|
18
|
+
nativeID?: string;
|
|
19
|
+
accessible?: boolean;
|
|
20
|
+
accessibilityLabel?: string;
|
|
21
|
+
accessibilityHint?: string;
|
|
22
|
+
accessibilityRole?: IAccessibilityProps['accessibilityRole'];
|
|
23
|
+
accessibilityState?: IAccessibilityStateValue;
|
|
24
|
+
accessibilityValue?: IAccessibilityProps['accessibilityValue'];
|
|
25
|
+
accessibilityActions?: IAccessibilityProps['accessibilityActions'];
|
|
26
|
+
accessibilityLabelledBy?: string | string[];
|
|
27
|
+
importantForAccessibility?: IAccessibilityProps['importantForAccessibility'];
|
|
28
|
+
accessibilityLiveRegion?: IAccessibilityProps['accessibilityLiveRegion'];
|
|
29
|
+
screenReaderFocusable?: boolean;
|
|
30
|
+
accessibilityViewIsModal?: boolean;
|
|
31
|
+
accessibilityElementsHidden?: boolean;
|
|
32
|
+
accessibilityIgnoresInvertColors?: boolean;
|
|
33
|
+
accessibilityLanguage?: string;
|
|
34
|
+
accessibilityRespondsToUserInteraction?: boolean;
|
|
35
|
+
accessibilityShowsLargeContentViewer?: boolean;
|
|
36
|
+
accessibilityLargeContentTitle?: string;
|
|
37
|
+
role?: IAriaProps['role'];
|
|
38
|
+
ariaLabel?: string;
|
|
39
|
+
ariaLabelledBy?: string;
|
|
40
|
+
ariaLive?: IAriaProps['aria-live'];
|
|
41
|
+
ariaHidden?: boolean;
|
|
42
|
+
ariaBusy?: boolean;
|
|
43
|
+
ariaChecked?: boolean | 'mixed';
|
|
44
|
+
ariaDisabled?: boolean;
|
|
45
|
+
ariaExpanded?: boolean;
|
|
46
|
+
ariaSelected?: boolean;
|
|
47
|
+
ariaModal?: boolean;
|
|
48
|
+
ariaValueMax?: number;
|
|
49
|
+
ariaValueMin?: number;
|
|
50
|
+
ariaValueNow?: number;
|
|
51
|
+
ariaValueText?: string;
|
|
52
|
+
private readonly elementRef;
|
|
53
|
+
emit(emitter: EventEmitter<ISymbioteEvent>, event: unknown): void;
|
|
54
|
+
get hostProps(): Record<string, unknown>;
|
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SafeAreaView, never>;
|
|
56
|
+
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, never>;
|
|
57
|
+
}
|