@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,514 +0,0 @@
|
|
|
1
|
-
import { CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, computed, inject, Input, Output, signal, ViewChild, } from '@angular/core';
|
|
2
|
-
import { createPressHandlers, createPressRuntime, disposePressRuntime, DEFAULT_DELAY_LONG_PRESS_MS, DEFAULT_MIN_PRESS_DURATION_MS, isTerminationAllowed, resolveAccessibilityProps, resolveDisabledAccessibilityState, rippleProps, shouldClaimResponder, shouldSuppressPress, } from '@symbiote-native/components';
|
|
3
|
-
import { dlog, isSymbioteNode, measure, } from '@symbiote-native/engine';
|
|
4
|
-
import { anchorHostStyle, SymbioteHostPropsDirective, SymbioteStyleInputDirective, ViewHost, } from '../../primitives';
|
|
5
|
-
import { gateWanted, injectGateDemand, } from '../../gate-demand';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "../../primitives/shared";
|
|
8
|
-
function isStyleFn(value) {
|
|
9
|
-
return typeof value === 'function';
|
|
10
|
-
}
|
|
11
|
-
function asSymbioteEvent(event) {
|
|
12
|
-
return typeof event === 'object' && event !== null && 'nativeEvent' in event
|
|
13
|
-
? event
|
|
14
|
-
: undefined;
|
|
15
|
-
}
|
|
16
|
-
export class Pressable {
|
|
17
|
-
// The press/hover lifecycle as real Angular events: `(press)="onTap($event)"`, not
|
|
18
|
-
// `[onPress]="onTap"`. createPressHandlers still wants plain IPressHandler callbacks, so
|
|
19
|
-
// emitterHandler() below adapts each EventEmitter into one - only while something is actually
|
|
20
|
-
// subscribed (`.observed`), so an unbound onLongPress still skips arming the timer, exactly as
|
|
21
|
-
// the old @Input()-absent case did.
|
|
22
|
-
press = new EventEmitter();
|
|
23
|
-
pressIn = new EventEmitter();
|
|
24
|
-
pressOut = new EventEmitter();
|
|
25
|
-
pressMove = new EventEmitter();
|
|
26
|
-
longPress = new EventEmitter();
|
|
27
|
-
hoverIn = new EventEmitter();
|
|
28
|
-
hoverOut = new EventEmitter();
|
|
29
|
-
// The four accessibility callbacks as real Angular events, app-facing. UNLIKE press/hover above,
|
|
30
|
-
// these are NOT bound in the template at all — `accessibilityAction`/`accessibilityTap`/
|
|
31
|
-
// `magicTap`/`accessibilityEscape` are `onX`-gated Fabric events
|
|
32
|
-
// (`.claude/rules/fabric-boolean-event-gates.md`): the engine only emits them when the committed
|
|
33
|
-
// payload carries a FUNCTION at that key, so a `(accessibilityAction)="..."` template binding —
|
|
34
|
-
// always present once written — would light the gate on every instance regardless of whether the
|
|
35
|
-
// app ever subscribes. Routed through `hostProps()` instead (`accessibilityEmitterHandler`
|
|
36
|
-
// below), the same `.observed`-conditional shape `emitterHandler` already uses for press/hover,
|
|
37
|
-
// so the gate lights only when something is actually listening.
|
|
38
|
-
accessibilityAction = new EventEmitter();
|
|
39
|
-
accessibilityTap = new EventEmitter();
|
|
40
|
-
magicTap = new EventEmitter();
|
|
41
|
-
accessibilityEscape = new EventEmitter();
|
|
42
|
-
delayLongPress;
|
|
43
|
-
disabled;
|
|
44
|
-
cancelable;
|
|
45
|
-
hitSlop;
|
|
46
|
-
pressRetentionOffset;
|
|
47
|
-
unstable_pressDelay;
|
|
48
|
-
/** @internal Touchable* mirrors RN's Pressability minPressDuration: 0 override. */
|
|
49
|
-
__minPressDuration = DEFAULT_MIN_PRESS_DURATION_MS;
|
|
50
|
-
android_ripple;
|
|
51
|
-
android_disableSound;
|
|
52
|
-
delayHoverIn;
|
|
53
|
-
delayHoverOut;
|
|
54
|
-
testID;
|
|
55
|
-
nativeID;
|
|
56
|
-
hasTVPreferredFocus;
|
|
57
|
-
nextFocusDown;
|
|
58
|
-
nextFocusForward;
|
|
59
|
-
nextFocusLeft;
|
|
60
|
-
nextFocusRight;
|
|
61
|
-
nextFocusUp;
|
|
62
|
-
style;
|
|
63
|
-
accessible;
|
|
64
|
-
accessibilityLabel;
|
|
65
|
-
accessibilityHint;
|
|
66
|
-
accessibilityRole;
|
|
67
|
-
accessibilityState;
|
|
68
|
-
accessibilityValue;
|
|
69
|
-
accessibilityActions;
|
|
70
|
-
accessibilityLabelledBy;
|
|
71
|
-
importantForAccessibility;
|
|
72
|
-
accessibilityLiveRegion;
|
|
73
|
-
screenReaderFocusable;
|
|
74
|
-
accessibilityViewIsModal;
|
|
75
|
-
accessibilityElementsHidden;
|
|
76
|
-
accessibilityIgnoresInvertColors;
|
|
77
|
-
accessibilityLanguage;
|
|
78
|
-
accessibilityRespondsToUserInteraction;
|
|
79
|
-
accessibilityShowsLargeContentViewer;
|
|
80
|
-
accessibilityLargeContentTitle;
|
|
81
|
-
ariaLabel;
|
|
82
|
-
ariaBusy;
|
|
83
|
-
ariaChecked;
|
|
84
|
-
ariaDisabled;
|
|
85
|
-
ariaExpanded;
|
|
86
|
-
ariaHidden;
|
|
87
|
-
ariaLabelledBy;
|
|
88
|
-
ariaLive;
|
|
89
|
-
ariaSelected;
|
|
90
|
-
ariaModal;
|
|
91
|
-
ariaValueMax;
|
|
92
|
-
ariaValueMin;
|
|
93
|
-
ariaValueNow;
|
|
94
|
-
ariaValueText;
|
|
95
|
-
id;
|
|
96
|
-
role;
|
|
97
|
-
hostElement;
|
|
98
|
-
// INTERNAL mutable state, driven by the press machine rather than by an @Input, so ngOnChanges
|
|
99
|
-
// can never cover it - it carries its OWN signal, which is what lets the memoized bag below stay
|
|
100
|
-
// correct across a press. Exposed as a plain boolean getter so a use site's `#ref.pressed` keeps
|
|
101
|
-
// reading a boolean and the public surface is unchanged.
|
|
102
|
-
pressedState = signal(false, /* @ts-ignore */
|
|
103
|
-
...(ngDevMode ? [{ debugName: "pressedState" }] : /* istanbul ignore next */ []));
|
|
104
|
-
get pressed() {
|
|
105
|
-
return this.pressedState();
|
|
106
|
-
}
|
|
107
|
-
runtime = createPressRuntime();
|
|
108
|
-
host = {
|
|
109
|
-
setPressed: pressed => {
|
|
110
|
-
this.pressedState.set(pressed);
|
|
111
|
-
this.changeDetector.detectChanges();
|
|
112
|
-
},
|
|
113
|
-
getMeasureFn: () => {
|
|
114
|
-
const node = this.hostNode;
|
|
115
|
-
if (node === undefined)
|
|
116
|
-
return undefined;
|
|
117
|
-
return callback => measure(node, callback);
|
|
118
|
-
},
|
|
119
|
-
schedule: (callback, ms) => {
|
|
120
|
-
const id = setTimeout(callback, ms);
|
|
121
|
-
return () => clearTimeout(id);
|
|
122
|
-
},
|
|
123
|
-
now: Date.now,
|
|
124
|
-
};
|
|
125
|
-
changeDetector = inject(ChangeDetectorRef);
|
|
126
|
-
// Null unless an adapter wrapper renders this Pressable in its own template. See
|
|
127
|
-
// `gate-demand.ts`; an app's own `<Pressable>` — including one projected INTO a wrapper — gets
|
|
128
|
-
// null and falls back to its own `.observed`.
|
|
129
|
-
gateDemand = injectGateDemand();
|
|
130
|
-
// This component's OWN host - the non-painting anchor `class="..."` at the use site resolves
|
|
131
|
-
// onto (see anchorHostStyle's doc comment) - NOT `hostElement` above, which targets the real
|
|
132
|
-
// inner `symbiote-view` one level down.
|
|
133
|
-
elementRef = inject(ElementRef);
|
|
134
|
-
// Bridges the non-reactive @Input fields above into the reactive graph, so the computed() bag
|
|
135
|
-
// below can memoize a value derived from them. Signal inputs would make this unnecessary, but
|
|
136
|
-
// `input()` is visible only to the AOT compiler and this package's unit suite runs on JIT - see
|
|
137
|
-
// the `angular-adapter-change-detection` skill, §6. Mirrors ScrollView's identical bridge
|
|
138
|
-
// (components/scroll-view/shared.ts), including its constraint: ONLY safe for a bag whose every
|
|
139
|
-
// dependency is an @Input or carries its own signal, never for plain internal mutable state.
|
|
140
|
-
inputsRevision = signal(0, /* @ts-ignore */
|
|
141
|
-
...(ngDevMode ? [{ debugName: "inputsRevision" }] : /* istanbul ignore next */ []));
|
|
142
|
-
// The anchor's class-derived style is the one hostProps dependency that is NOT an @Input:
|
|
143
|
-
// `class="..."`/`[class.x]`/`[ngClass]` at the use site resolves through the renderer's
|
|
144
|
-
// addClass/removeClass onto the anchor node (anchorHostStyle's doc comment), so it never appears
|
|
145
|
-
// in SimpleChanges and ngOnChanges cannot cover it. The engine's commitClassStyle allocates a
|
|
146
|
-
// fresh [classStyle, explicitStyle] array on exactly the passes where a class token actually
|
|
147
|
-
// moved, so signal.set's own Object.is check makes an unchanged poll a no-op that dirties nothing.
|
|
148
|
-
anchorStyle = signal(undefined, /* @ts-ignore */
|
|
149
|
-
...(ngDevMode ? [{ debugName: "anchorStyle" }] : /* istanbul ignore next */ []));
|
|
150
|
-
// ngDoCheck is the only hook that observes the anchor AFTER the parent wrote it. Angular flushes
|
|
151
|
-
// a node's pre-order hooks at the next `advance` PAST it (hooks.ts callHooks runs "until that
|
|
152
|
-
// node index exclusive") or in refreshView's post-template flush - both strictly after the
|
|
153
|
-
// parent's classProp on this element, and strictly before this component's own view refreshes.
|
|
154
|
-
// Angular also nulls the active consumer around lifecycle hooks (render3/hooks.ts), so this
|
|
155
|
-
// write registers no dependency on the caller's view and cannot throw NG0600.
|
|
156
|
-
ngDoCheck() {
|
|
157
|
-
this.anchorStyle.set(anchorHostStyle(this.elementRef));
|
|
158
|
-
}
|
|
159
|
-
ngOnDestroy() {
|
|
160
|
-
disposePressRuntime(this.runtime);
|
|
161
|
-
}
|
|
162
|
-
ngOnChanges() {
|
|
163
|
-
// Tells the computed bag below that an @Input moved - plain class fields are not reactive on
|
|
164
|
-
// their own. Must stay in ngOnChanges: that is the single moment Angular has finished writing
|
|
165
|
-
// every changed input for this pass.
|
|
166
|
-
this.inputsRevision.update(revision => revision + 1);
|
|
167
|
-
}
|
|
168
|
-
get resolvedStyle() {
|
|
169
|
-
const state = { pressed: this.pressed };
|
|
170
|
-
return isStyleFn(this.style) ? this.style(state) : this.style;
|
|
171
|
-
}
|
|
172
|
-
get foldedAccessibility() {
|
|
173
|
-
return resolveAccessibilityProps({
|
|
174
|
-
accessibilityLabel: this.accessibilityLabel,
|
|
175
|
-
accessibilityHint: this.accessibilityHint,
|
|
176
|
-
accessibilityRole: this.accessibilityRole,
|
|
177
|
-
accessibilityState: resolveDisabledAccessibilityState(this.accessibilityState, this.disabled),
|
|
178
|
-
accessibilityValue: this.accessibilityValue,
|
|
179
|
-
accessibilityActions: this.accessibilityActions,
|
|
180
|
-
accessibilityLabelledBy: this.accessibilityLabelledBy,
|
|
181
|
-
importantForAccessibility: this.importantForAccessibility,
|
|
182
|
-
accessibilityLiveRegion: this.accessibilityLiveRegion,
|
|
183
|
-
screenReaderFocusable: this.screenReaderFocusable,
|
|
184
|
-
accessibilityViewIsModal: this.accessibilityViewIsModal,
|
|
185
|
-
accessibilityElementsHidden: this.accessibilityElementsHidden,
|
|
186
|
-
accessibilityIgnoresInvertColors: this.accessibilityIgnoresInvertColors,
|
|
187
|
-
accessibilityLanguage: this.accessibilityLanguage,
|
|
188
|
-
accessibilityRespondsToUserInteraction: this.accessibilityRespondsToUserInteraction,
|
|
189
|
-
accessibilityShowsLargeContentViewer: this.accessibilityShowsLargeContentViewer,
|
|
190
|
-
accessibilityLargeContentTitle: this.accessibilityLargeContentTitle,
|
|
191
|
-
'aria-label': this.ariaLabel,
|
|
192
|
-
'aria-busy': this.ariaBusy,
|
|
193
|
-
'aria-checked': this.ariaChecked,
|
|
194
|
-
'aria-disabled': this.ariaDisabled,
|
|
195
|
-
'aria-expanded': this.ariaExpanded,
|
|
196
|
-
'aria-hidden': this.ariaHidden,
|
|
197
|
-
'aria-labelledby': this.ariaLabelledBy,
|
|
198
|
-
'aria-live': this.ariaLive,
|
|
199
|
-
'aria-selected': this.ariaSelected,
|
|
200
|
-
'aria-modal': this.ariaModal,
|
|
201
|
-
'aria-valuemax': this.ariaValueMax,
|
|
202
|
-
'aria-valuemin': this.ariaValueMin,
|
|
203
|
-
'aria-valuenow': this.ariaValueNow,
|
|
204
|
-
'aria-valuetext': this.ariaValueText,
|
|
205
|
-
id: this.id,
|
|
206
|
-
role: this.role,
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
get resolvedRippleProps() {
|
|
210
|
-
return this.android_ripple === undefined
|
|
211
|
-
? undefined
|
|
212
|
-
: rippleProps(this.android_ripple);
|
|
213
|
-
}
|
|
214
|
-
// Flat bag for `[symbioteHostProps]` (Renderer2.setProperty per key) - see primitives/shared.ts.
|
|
215
|
-
//
|
|
216
|
-
// MEASURED 2026-08-16: as a getter this rebuilt the bag on every refresh of this view, and a
|
|
217
|
-
// press dirties this very view (SymbioteHostPropsDirective wraps each flat-bag onX with
|
|
218
|
-
// markForCheck, and setPressed calls detectChanges outright), so `[symbioteHostProps]`'s
|
|
219
|
-
// reference check failed every time and re-pushed every key through Renderer2.setProperty ->
|
|
220
|
-
// routeProp for an identical bag. Memoized, an unchanged bag costs one reference compare.
|
|
221
|
-
hostProps = computed(() => {
|
|
222
|
-
this.inputsRevision();
|
|
223
|
-
return {
|
|
224
|
-
testID: this.testID,
|
|
225
|
-
nativeID: this.nativeID,
|
|
226
|
-
hasTVPreferredFocus: this.hasTVPreferredFocus,
|
|
227
|
-
nextFocusDown: this.nextFocusDown,
|
|
228
|
-
nextFocusForward: this.nextFocusForward,
|
|
229
|
-
nextFocusLeft: this.nextFocusLeft,
|
|
230
|
-
nextFocusRight: this.nextFocusRight,
|
|
231
|
-
nextFocusUp: this.nextFocusUp,
|
|
232
|
-
style: [this.anchorStyle(), this.resolvedStyle],
|
|
233
|
-
accessible: this.accessible,
|
|
234
|
-
...this.foldedAccessibility,
|
|
235
|
-
onAccessibilityAction: this.accessibilityEmitterHandler('accessibilityAction'),
|
|
236
|
-
onAccessibilityTap: this.accessibilityEmitterHandler('accessibilityTap'),
|
|
237
|
-
onMagicTap: this.accessibilityEmitterHandler('magicTap'),
|
|
238
|
-
onAccessibilityEscape: this.accessibilityEmitterHandler('accessibilityEscape'),
|
|
239
|
-
android_disableSound: this.android_disableSound,
|
|
240
|
-
nativeBackgroundAndroid: this.resolvedRippleProps?.nativeBackgroundAndroid,
|
|
241
|
-
nativeForegroundAndroid: this.resolvedRippleProps?.nativeForegroundAndroid,
|
|
242
|
-
};
|
|
243
|
-
}, /* @ts-ignore */
|
|
244
|
-
...(ngDevMode ? [{ debugName: "hostProps" }] : /* istanbul ignore next */ []));
|
|
245
|
-
handlePressIn(event) {
|
|
246
|
-
const symbioteEvent = asSymbioteEvent(event);
|
|
247
|
-
if (shouldSuppressPress(this.disabled) || symbioteEvent === undefined)
|
|
248
|
-
return;
|
|
249
|
-
this.handlers.handlePressIn(symbioteEvent);
|
|
250
|
-
}
|
|
251
|
-
handlePressOut(event) {
|
|
252
|
-
const symbioteEvent = asSymbioteEvent(event);
|
|
253
|
-
if (shouldSuppressPress(this.disabled) || symbioteEvent === undefined)
|
|
254
|
-
return;
|
|
255
|
-
this.handlers.handlePressOut(symbioteEvent);
|
|
256
|
-
}
|
|
257
|
-
handlePress(event) {
|
|
258
|
-
const symbioteEvent = asSymbioteEvent(event);
|
|
259
|
-
if (shouldSuppressPress(this.disabled) || symbioteEvent === undefined)
|
|
260
|
-
return;
|
|
261
|
-
this.handlers.handlePress(symbioteEvent);
|
|
262
|
-
}
|
|
263
|
-
handleResponderMove(event) {
|
|
264
|
-
const symbioteEvent = asSymbioteEvent(event);
|
|
265
|
-
if (shouldSuppressPress(this.disabled) || symbioteEvent === undefined)
|
|
266
|
-
return;
|
|
267
|
-
this.handlers.handleResponderMove(symbioteEvent);
|
|
268
|
-
}
|
|
269
|
-
claimResponder() {
|
|
270
|
-
return shouldClaimResponder(this.disabled);
|
|
271
|
-
}
|
|
272
|
-
allowTermination() {
|
|
273
|
-
return isTerminationAllowed(this.cancelable);
|
|
274
|
-
}
|
|
275
|
-
emit(emitter, event) {
|
|
276
|
-
const symbioteEvent = asSymbioteEvent(event);
|
|
277
|
-
if (symbioteEvent !== undefined)
|
|
278
|
-
emitter.emit(symbioteEvent);
|
|
279
|
-
}
|
|
280
|
-
// Hover has no event on a touch host (no pointer-enter/leave); this only records that someone
|
|
281
|
-
// is listening anyway, mirroring core's noteHoverNoop but off `.observed` instead of an @Input.
|
|
282
|
-
noteHoverNoop() {
|
|
283
|
-
if (this.hoverIn.observed || this.hoverOut.observed) {
|
|
284
|
-
dlog('Pressable hover is a no-op on this host (no pointer-enter/leave event)');
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
// Wraps an @Output() as an IPressHandler only while it has a subscriber, so an unbound
|
|
288
|
-
// (longPress) still skips arming the timer, matching createPressHandlers' "undefined means
|
|
289
|
-
// nobody cares" contract.
|
|
290
|
-
emitterHandler(emitter) {
|
|
291
|
-
return emitter.observed ? event => emitter.emit(event) : undefined;
|
|
292
|
-
}
|
|
293
|
-
// The accessibility twin of emitterHandler, feeding hostProps()'s flat bag instead of
|
|
294
|
-
// createPressHandlers' config — see the accessibilityAction @Output()'s own comment for why
|
|
295
|
-
// these four specifically cannot be plain template `(x)="..."` bindings. `undefined` here means
|
|
296
|
-
// `setEventListener` never sees a function, so the gated prop's flag never lights
|
|
297
|
-
// (`fabric-boolean-event-gates.md`, "The flag follows the VALUE, not the key").
|
|
298
|
-
accessibilityEmitterHandler(name) {
|
|
299
|
-
const emitter = this[name];
|
|
300
|
-
// A WRAPPER's binding is not a subscriber, and `.observed` cannot tell the two apart. When a
|
|
301
|
-
// demand is supplied from above it decides instead — see `gate-demand.ts` for why the channel
|
|
302
|
-
// is DI rather than an `@Input`.
|
|
303
|
-
return gateWanted(this.gateDemand, name, emitter)
|
|
304
|
-
? event => this.emit(emitter, event)
|
|
305
|
-
: undefined;
|
|
306
|
-
}
|
|
307
|
-
get handlers() {
|
|
308
|
-
this.noteHoverNoop();
|
|
309
|
-
const config = {
|
|
310
|
-
onPress: this.emitterHandler(this.press),
|
|
311
|
-
onPressIn: this.emitterHandler(this.pressIn),
|
|
312
|
-
onPressOut: this.emitterHandler(this.pressOut),
|
|
313
|
-
onPressMove: this.emitterHandler(this.pressMove),
|
|
314
|
-
onLongPress: this.emitterHandler(this.longPress),
|
|
315
|
-
delayLongPress: this.delayLongPress ?? DEFAULT_DELAY_LONG_PRESS_MS,
|
|
316
|
-
unstable_pressDelay: this.unstable_pressDelay ?? 0,
|
|
317
|
-
minPressDuration: this.__minPressDuration,
|
|
318
|
-
hitSlop: this.hitSlop,
|
|
319
|
-
pressRetentionOffset: this.pressRetentionOffset,
|
|
320
|
-
};
|
|
321
|
-
return createPressHandlers(config, this.runtime, this.host);
|
|
322
|
-
}
|
|
323
|
-
get hostNode() {
|
|
324
|
-
const native = this.hostElement?.nativeElement;
|
|
325
|
-
return isSymbioteNode(native) ? native : undefined;
|
|
326
|
-
}
|
|
327
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Pressable, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
328
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: Pressable, isStandalone: true, selector: "Pressable", inputs: { delayLongPress: "delayLongPress", disabled: "disabled", cancelable: "cancelable", hitSlop: "hitSlop", pressRetentionOffset: "pressRetentionOffset", unstable_pressDelay: "unstable_pressDelay", __minPressDuration: "__minPressDuration", android_ripple: "android_ripple", android_disableSound: "android_disableSound", delayHoverIn: "delayHoverIn", delayHoverOut: "delayHoverOut", testID: "testID", nativeID: "nativeID", hasTVPreferredFocus: "hasTVPreferredFocus", nextFocusDown: "nextFocusDown", nextFocusForward: "nextFocusForward", nextFocusLeft: "nextFocusLeft", nextFocusRight: "nextFocusRight", nextFocusUp: "nextFocusUp", style: "style", 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", ariaLabel: "ariaLabel", ariaBusy: "ariaBusy", ariaChecked: "ariaChecked", ariaDisabled: "ariaDisabled", ariaExpanded: "ariaExpanded", ariaHidden: "ariaHidden", ariaLabelledBy: "ariaLabelledBy", ariaLive: "ariaLive", ariaSelected: "ariaSelected", ariaModal: "ariaModal", ariaValueMax: "ariaValueMax", ariaValueMin: "ariaValueMin", ariaValueNow: "ariaValueNow", ariaValueText: "ariaValueText", id: "id", role: "role" }, outputs: { press: "press", pressIn: "pressIn", pressOut: "pressOut", pressMove: "pressMove", longPress: "longPress", hoverIn: "hoverIn", hoverOut: "hoverOut", accessibilityAction: "accessibilityAction", accessibilityTap: "accessibilityTap", magicTap: "magicTap", accessibilityEscape: "accessibilityEscape" }, viewQueries: [{ propertyName: "hostElement", first: true, predicate: ["host"], descendants: true, read: ElementRef }], usesOnChanges: true, hostDirectives: [{ directive: i1.SymbioteStyleInputDirective, inputs: ["style", "style"] }], ngImport: i0, template: `
|
|
329
|
-
<symbiote-view
|
|
330
|
-
#host
|
|
331
|
-
[symbioteHostProps]="hostProps()"
|
|
332
|
-
(press)="handlePress($event)"
|
|
333
|
-
(pressIn)="handlePressIn($event)"
|
|
334
|
-
(pressOut)="handlePressOut($event)"
|
|
335
|
-
(responderMove)="handleResponderMove($event)"
|
|
336
|
-
(startShouldSetResponder)="claimResponder()"
|
|
337
|
-
(responderTerminationRequest)="allowTermination()"
|
|
338
|
-
>
|
|
339
|
-
<ng-content></ng-content>
|
|
340
|
-
</symbiote-view>
|
|
341
|
-
`, isInline: true, dependencies: [{ kind: "component", type: ViewHost, selector: "symbiote-view, View" }, { kind: "directive", type: SymbioteHostPropsDirective, selector: "[symbioteHostProps]", inputs: ["symbioteHostProps"], exportAs: ["symbioteHost"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
342
|
-
}
|
|
343
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Pressable, decorators: [{
|
|
344
|
-
type: Component,
|
|
345
|
-
args: [{
|
|
346
|
-
// Single-name selector, matching TextInput's own ('TextInput', text-input.ts) rather than
|
|
347
|
-
// View/Text's dual one. The alternate `symbiote-pressable` spelling was vestigial — nothing in
|
|
348
|
-
// this component's own template ever renders that tag (it renders `symbiote-view`, below), and
|
|
349
|
-
// no app or example code invokes the composed component by that literal tag (verified by grep,
|
|
350
|
-
// 2026-08-31). Its only effect was to force `symbiote-pressable` into
|
|
351
|
-
// `ANCHOR_HOST_COMPONENTS` unconditionally, which collided with the tag's OTHER, load-bearing
|
|
352
|
-
// meaning — the host-behavior registry key (`PRESSABLE_TAG`,
|
|
353
|
-
// core/components/src/behaviors/pressable.ts) a lowered `<Pressable>` must carry to get the
|
|
354
|
-
// press machine. That collision is exactly why `DIAGNOSTIC_LOWERED_PRESSABLE_TAG` existed
|
|
355
|
-
// (renderer/index.ts) — dropping the vestigial spelling here removes the collision at its
|
|
356
|
-
// source, so the escape hatch is retired rather than worked around.
|
|
357
|
-
selector: 'Pressable',
|
|
358
|
-
standalone: true,
|
|
359
|
-
hostDirectives: [
|
|
360
|
-
{ directive: SymbioteStyleInputDirective, inputs: ['style'] },
|
|
361
|
-
],
|
|
362
|
-
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
363
|
-
imports: [ViewHost, SymbioteHostPropsDirective],
|
|
364
|
-
template: `
|
|
365
|
-
<symbiote-view
|
|
366
|
-
#host
|
|
367
|
-
[symbioteHostProps]="hostProps()"
|
|
368
|
-
(press)="handlePress($event)"
|
|
369
|
-
(pressIn)="handlePressIn($event)"
|
|
370
|
-
(pressOut)="handlePressOut($event)"
|
|
371
|
-
(responderMove)="handleResponderMove($event)"
|
|
372
|
-
(startShouldSetResponder)="claimResponder()"
|
|
373
|
-
(responderTerminationRequest)="allowTermination()"
|
|
374
|
-
>
|
|
375
|
-
<ng-content></ng-content>
|
|
376
|
-
</symbiote-view>
|
|
377
|
-
`,
|
|
378
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
379
|
-
}]
|
|
380
|
-
}], propDecorators: { press: [{
|
|
381
|
-
type: Output
|
|
382
|
-
}], pressIn: [{
|
|
383
|
-
type: Output
|
|
384
|
-
}], pressOut: [{
|
|
385
|
-
type: Output
|
|
386
|
-
}], pressMove: [{
|
|
387
|
-
type: Output
|
|
388
|
-
}], longPress: [{
|
|
389
|
-
type: Output
|
|
390
|
-
}], hoverIn: [{
|
|
391
|
-
type: Output
|
|
392
|
-
}], hoverOut: [{
|
|
393
|
-
type: Output
|
|
394
|
-
}], accessibilityAction: [{
|
|
395
|
-
type: Output
|
|
396
|
-
}], accessibilityTap: [{
|
|
397
|
-
type: Output
|
|
398
|
-
}], magicTap: [{
|
|
399
|
-
type: Output
|
|
400
|
-
}], accessibilityEscape: [{
|
|
401
|
-
type: Output
|
|
402
|
-
}], delayLongPress: [{
|
|
403
|
-
type: Input
|
|
404
|
-
}], disabled: [{
|
|
405
|
-
type: Input
|
|
406
|
-
}], cancelable: [{
|
|
407
|
-
type: Input
|
|
408
|
-
}], hitSlop: [{
|
|
409
|
-
type: Input
|
|
410
|
-
}], pressRetentionOffset: [{
|
|
411
|
-
type: Input
|
|
412
|
-
}], unstable_pressDelay: [{
|
|
413
|
-
type: Input
|
|
414
|
-
}], __minPressDuration: [{
|
|
415
|
-
type: Input
|
|
416
|
-
}], android_ripple: [{
|
|
417
|
-
type: Input
|
|
418
|
-
}], android_disableSound: [{
|
|
419
|
-
type: Input
|
|
420
|
-
}], delayHoverIn: [{
|
|
421
|
-
type: Input
|
|
422
|
-
}], delayHoverOut: [{
|
|
423
|
-
type: Input
|
|
424
|
-
}], testID: [{
|
|
425
|
-
type: Input
|
|
426
|
-
}], nativeID: [{
|
|
427
|
-
type: Input
|
|
428
|
-
}], hasTVPreferredFocus: [{
|
|
429
|
-
type: Input
|
|
430
|
-
}], nextFocusDown: [{
|
|
431
|
-
type: Input
|
|
432
|
-
}], nextFocusForward: [{
|
|
433
|
-
type: Input
|
|
434
|
-
}], nextFocusLeft: [{
|
|
435
|
-
type: Input
|
|
436
|
-
}], nextFocusRight: [{
|
|
437
|
-
type: Input
|
|
438
|
-
}], nextFocusUp: [{
|
|
439
|
-
type: Input
|
|
440
|
-
}], style: [{
|
|
441
|
-
type: Input
|
|
442
|
-
}], accessible: [{
|
|
443
|
-
type: Input
|
|
444
|
-
}], accessibilityLabel: [{
|
|
445
|
-
type: Input
|
|
446
|
-
}], accessibilityHint: [{
|
|
447
|
-
type: Input
|
|
448
|
-
}], accessibilityRole: [{
|
|
449
|
-
type: Input
|
|
450
|
-
}], accessibilityState: [{
|
|
451
|
-
type: Input
|
|
452
|
-
}], accessibilityValue: [{
|
|
453
|
-
type: Input
|
|
454
|
-
}], accessibilityActions: [{
|
|
455
|
-
type: Input
|
|
456
|
-
}], accessibilityLabelledBy: [{
|
|
457
|
-
type: Input
|
|
458
|
-
}], importantForAccessibility: [{
|
|
459
|
-
type: Input
|
|
460
|
-
}], accessibilityLiveRegion: [{
|
|
461
|
-
type: Input
|
|
462
|
-
}], screenReaderFocusable: [{
|
|
463
|
-
type: Input
|
|
464
|
-
}], accessibilityViewIsModal: [{
|
|
465
|
-
type: Input
|
|
466
|
-
}], accessibilityElementsHidden: [{
|
|
467
|
-
type: Input
|
|
468
|
-
}], accessibilityIgnoresInvertColors: [{
|
|
469
|
-
type: Input
|
|
470
|
-
}], accessibilityLanguage: [{
|
|
471
|
-
type: Input
|
|
472
|
-
}], accessibilityRespondsToUserInteraction: [{
|
|
473
|
-
type: Input
|
|
474
|
-
}], accessibilityShowsLargeContentViewer: [{
|
|
475
|
-
type: Input
|
|
476
|
-
}], accessibilityLargeContentTitle: [{
|
|
477
|
-
type: Input
|
|
478
|
-
}], ariaLabel: [{
|
|
479
|
-
type: Input
|
|
480
|
-
}], ariaBusy: [{
|
|
481
|
-
type: Input
|
|
482
|
-
}], ariaChecked: [{
|
|
483
|
-
type: Input
|
|
484
|
-
}], ariaDisabled: [{
|
|
485
|
-
type: Input
|
|
486
|
-
}], ariaExpanded: [{
|
|
487
|
-
type: Input
|
|
488
|
-
}], ariaHidden: [{
|
|
489
|
-
type: Input
|
|
490
|
-
}], ariaLabelledBy: [{
|
|
491
|
-
type: Input
|
|
492
|
-
}], ariaLive: [{
|
|
493
|
-
type: Input
|
|
494
|
-
}], ariaSelected: [{
|
|
495
|
-
type: Input
|
|
496
|
-
}], ariaModal: [{
|
|
497
|
-
type: Input
|
|
498
|
-
}], ariaValueMax: [{
|
|
499
|
-
type: Input
|
|
500
|
-
}], ariaValueMin: [{
|
|
501
|
-
type: Input
|
|
502
|
-
}], ariaValueNow: [{
|
|
503
|
-
type: Input
|
|
504
|
-
}], ariaValueText: [{
|
|
505
|
-
type: Input
|
|
506
|
-
}], id: [{
|
|
507
|
-
type: Input
|
|
508
|
-
}], role: [{
|
|
509
|
-
type: Input
|
|
510
|
-
}], hostElement: [{
|
|
511
|
-
type: ViewChild,
|
|
512
|
-
args: ['host', { read: ElementRef }]
|
|
513
|
-
}] } });
|
|
514
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/pressable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,KAAK,EACL,MAAM,EACN,MAAM,EACN,SAAS,GAIV,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,2BAA2B,EAC3B,6BAA6B,EAC7B,oBAAoB,EACpB,yBAAyB,EAC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AAK;;sBAEL,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;;sBACL,KAAK;;sBAEL,KAAK;;sBACL,KAAK;;sBAEL,KAAK;;sBAEL,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;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBAEL,SAAS;uBAAC,MAAM,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, type AfterViewInit, type DoCheck, type OnChanges, type OnInit, type SimpleChanges } 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
|
-
type IHostProps = Record<string, unknown>;
|
|
7
|
-
export interface IAngularRefreshControlProps extends IAccessibilityProps, IAriaProps {
|
|
8
|
-
refreshing: boolean;
|
|
9
|
-
onRefresh?: () => void | Promise<void>;
|
|
10
|
-
tintColor?: string;
|
|
11
|
-
title?: string;
|
|
12
|
-
titleColor?: string;
|
|
13
|
-
progressViewOffset?: number;
|
|
14
|
-
colors?: readonly string[];
|
|
15
|
-
progressBackgroundColor?: string;
|
|
16
|
-
size?: 'default' | 'large';
|
|
17
|
-
enabled?: boolean;
|
|
18
|
-
style?: IStyleProp<IViewStyle>;
|
|
19
|
-
}
|
|
20
|
-
export type IAngularRefreshControlInputs = Omit<IAngularRefreshControlProps, 'onRefresh' | 'onAccessibilityAction' | 'onAccessibilityTap' | 'onMagicTap' | 'onAccessibilityEscape'>;
|
|
21
|
-
export declare class RefreshControl implements IAngularRefreshControlInputs, OnInit, OnChanges, DoCheck, AfterViewInit {
|
|
22
|
-
refreshing: boolean;
|
|
23
|
-
readonly refresh: EventEmitter<void>;
|
|
24
|
-
tintColor?: string;
|
|
25
|
-
title?: string;
|
|
26
|
-
titleColor?: string;
|
|
27
|
-
progressViewOffset?: number;
|
|
28
|
-
colors?: readonly string[];
|
|
29
|
-
progressBackgroundColor?: string;
|
|
30
|
-
size?: 'default' | 'large';
|
|
31
|
-
enabled?: boolean;
|
|
32
|
-
style?: IStyleProp<IViewStyle>;
|
|
33
|
-
testID?: string;
|
|
34
|
-
nativeID?: string;
|
|
35
|
-
accessible?: boolean;
|
|
36
|
-
accessibilityLabel?: string;
|
|
37
|
-
accessibilityHint?: string;
|
|
38
|
-
accessibilityRole?: IAccessibilityProps['accessibilityRole'];
|
|
39
|
-
accessibilityState?: IAccessibilityStateValue;
|
|
40
|
-
accessibilityValue?: IAccessibilityProps['accessibilityValue'];
|
|
41
|
-
accessibilityActions?: IAccessibilityProps['accessibilityActions'];
|
|
42
|
-
accessibilityLabelledBy?: string | string[];
|
|
43
|
-
importantForAccessibility?: IAccessibilityProps['importantForAccessibility'];
|
|
44
|
-
accessibilityLiveRegion?: IAccessibilityProps['accessibilityLiveRegion'];
|
|
45
|
-
screenReaderFocusable?: boolean;
|
|
46
|
-
accessibilityViewIsModal?: boolean;
|
|
47
|
-
accessibilityElementsHidden?: boolean;
|
|
48
|
-
accessibilityIgnoresInvertColors?: boolean;
|
|
49
|
-
accessibilityLanguage?: string;
|
|
50
|
-
accessibilityRespondsToUserInteraction?: boolean;
|
|
51
|
-
accessibilityShowsLargeContentViewer?: boolean;
|
|
52
|
-
accessibilityLargeContentTitle?: string;
|
|
53
|
-
readonly accessibilityAction: EventEmitter<ISymbioteEvent>;
|
|
54
|
-
readonly accessibilityTap: EventEmitter<ISymbioteEvent>;
|
|
55
|
-
readonly magicTap: EventEmitter<ISymbioteEvent>;
|
|
56
|
-
readonly accessibilityEscape: EventEmitter<ISymbioteEvent>;
|
|
57
|
-
role?: IAriaProps['role'];
|
|
58
|
-
ariaLabel?: string;
|
|
59
|
-
ariaLabelledBy?: string;
|
|
60
|
-
ariaLive?: IAriaProps['aria-live'];
|
|
61
|
-
ariaHidden?: boolean;
|
|
62
|
-
ariaBusy?: boolean;
|
|
63
|
-
ariaChecked?: boolean | 'mixed';
|
|
64
|
-
ariaDisabled?: boolean;
|
|
65
|
-
ariaExpanded?: boolean;
|
|
66
|
-
ariaSelected?: boolean;
|
|
67
|
-
ariaModal?: boolean;
|
|
68
|
-
ariaValueMax?: number;
|
|
69
|
-
ariaValueMin?: number;
|
|
70
|
-
ariaValueNow?: number;
|
|
71
|
-
ariaValueText?: string;
|
|
72
|
-
private host?;
|
|
73
|
-
private readonly elementRef;
|
|
74
|
-
private lastNativeRefreshing;
|
|
75
|
-
private refreshNativeNode;
|
|
76
|
-
private readonly hostPropsRevision;
|
|
77
|
-
private lastAnchorStyle;
|
|
78
|
-
ngOnInit(): void;
|
|
79
|
-
ngAfterViewInit(): void;
|
|
80
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
81
|
-
handleRefresh(nativeNode?: unknown): void;
|
|
82
|
-
private syncNativeRefreshing;
|
|
83
|
-
private emit;
|
|
84
|
-
private eventEmitterHandler;
|
|
85
|
-
ngDoCheck(): void;
|
|
86
|
-
readonly hostProps: import("@angular/core").Signal<IHostProps>;
|
|
87
|
-
get folded(): Partial<IAngularRefreshControlProps>;
|
|
88
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RefreshControl, never>;
|
|
89
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RefreshControl, "RefreshControl", never, { "refreshing": { "alias": "refreshing"; "required": true; }; "tintColor": { "alias": "tintColor"; "required": false; }; "title": { "alias": "title"; "required": false; }; "titleColor": { "alias": "titleColor"; "required": false; }; "progressViewOffset": { "alias": "progressViewOffset"; "required": false; }; "colors": { "alias": "colors"; "required": false; }; "progressBackgroundColor": { "alias": "progressBackgroundColor"; "required": false; }; "size": { "alias": "size"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "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; }; }, { "refresh": "refresh"; "accessibilityAction": "accessibilityAction"; "accessibilityTap": "accessibilityTap"; "magicTap": "magicTap"; "accessibilityEscape": "accessibilityEscape"; }, never, ["*"], true, [{ directive: typeof i1.SymbioteStyleInputDirective; inputs: { "style": "style"; }; outputs: {}; }]>;
|
|
90
|
-
}
|
|
91
|
-
export {};
|