@ng-native/components 0.27.0 → 0.28.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/android/src/main/java/dev/ngnative/components/ContextMenuPopup.kt +61 -19
- package/android/src/main/java/dev/ngnative/components/MenusModule.kt +22 -0
- package/android/src/main/java/dev/ngnative/components/Shortcut.kt +13 -4
- package/dist/context-menu.d.ts +14 -6
- package/dist/context-menu.js +30 -28
- package/dist/context-menu.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/menu.d.ts +7 -4
- package/dist/menu.js +10 -4
- package/dist/menu.js.map +1 -1
- package/dist/modal.d.ts +6 -2
- package/dist/modal.js.map +1 -1
- package/dist/native-button.d.ts +8 -1
- package/dist/native-button.js +5 -1
- package/dist/native-button.js.map +1 -1
- package/dist/press-menu.d.ts +39 -0
- package/dist/press-menu.js +76 -0
- package/dist/press-menu.js.map +1 -0
- package/dist/pressable.d.ts +3 -0
- package/dist/pressable.js +6 -1
- package/dist/pressable.js.map +1 -1
- package/dist/reanimated.js +27 -3
- package/dist/reanimated.js.map +1 -1
- package/dist/settled-updates.d.ts +55 -0
- package/dist/settled-updates.js +77 -0
- package/dist/settled-updates.js.map +1 -0
- package/dist/sidebar-item.d.ts +18 -3
- package/dist/sidebar-item.js +29 -3
- package/dist/sidebar-item.js.map +1 -1
- package/dist/stand-ins/reanimated.d.ts +5 -0
- package/dist/stand-ins/reanimated.js +7 -0
- package/dist/stand-ins/reanimated.js.map +1 -1
- package/dist/sticky-rows.d.ts +120 -25
- package/dist/sticky-rows.js +265 -65
- package/dist/sticky-rows.js.map +1 -1
- package/dist/svg-icon.d.ts +9 -0
- package/dist/svg-icon.js +37 -0
- package/dist/svg-icon.js.map +1 -0
- package/dist/virtual-list-sticky-level.d.ts +39 -0
- package/dist/virtual-list-sticky-level.js +82 -0
- package/dist/virtual-list-sticky-level.js.map +1 -0
- package/dist/virtual-list-sticky.d.ts +19 -0
- package/dist/virtual-list-sticky.js +13 -0
- package/dist/virtual-list-sticky.js.map +1 -0
- package/dist/virtual-list.d.ts +6 -2
- package/dist/virtual-list.js +60 -43
- package/dist/virtual-list.js.map +1 -1
- package/dist/worklet-style.d.ts +11 -0
- package/dist/worklet-style.js +15 -1
- package/dist/worklet-style.js.map +1 -1
- package/dist/worklets.d.ts +5 -1
- package/dist/worklets.js.map +1 -1
- package/dist/written-props.js +1 -0
- package/dist/written-props.js.map +1 -1
- package/package.json +3 -3
package/dist/worklet-style.d.ts
CHANGED
|
@@ -7,7 +7,18 @@ export declare class WorkletStyleBase {
|
|
|
7
7
|
private readonly worklets;
|
|
8
8
|
private readonly injector;
|
|
9
9
|
readonly workletStyle: import("@angular/core").InputSignal<WorkletStyleSpec>;
|
|
10
|
+
/**
|
|
11
|
+
* What the UI thread has drawn the node with and let go of, from every style bound so far: a
|
|
12
|
+
* replaced style leaves what the one before drew, as Reanimated leaves it on the view.
|
|
13
|
+
*/
|
|
14
|
+
private drawn;
|
|
10
15
|
constructor();
|
|
16
|
+
/**
|
|
17
|
+
* Commit what the UI thread settled on with the node, which is what lets Reanimated stop
|
|
18
|
+
* applying the view to every commit. The commit is the next one the engine makes, for every view
|
|
19
|
+
* that settled together.
|
|
20
|
+
*/
|
|
21
|
+
private keepDrawn;
|
|
11
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<WorkletStyleBase, never>;
|
|
12
23
|
static ɵdir: i0.ɵɵDirectiveDeclaration<WorkletStyleBase, "[workletStyle]", never, { "workletStyle": { "alias": "workletStyle"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
13
24
|
}
|
package/dist/worklet-style.js
CHANGED
|
@@ -23,6 +23,11 @@ export class WorkletStyleBase {
|
|
|
23
23
|
injector = inject(Injector);
|
|
24
24
|
workletStyle = input.required(/* @ts-ignore */
|
|
25
25
|
...(ngDevMode ? [{ debugName: "workletStyle" }] : /* istanbul ignore next */ []));
|
|
26
|
+
/**
|
|
27
|
+
* What the UI thread has drawn the node with and let go of, from every style bound so far: a
|
|
28
|
+
* replaced style leaves what the one before drew, as Reanimated leaves it on the view.
|
|
29
|
+
*/
|
|
30
|
+
drawn = {};
|
|
26
31
|
constructor() {
|
|
27
32
|
// A node has neither a react tag nor a shadow node until it has been committed once, and
|
|
28
33
|
// there is nothing for the UI thread to write to before then.
|
|
@@ -33,10 +38,19 @@ export class WorkletStyleBase {
|
|
|
33
38
|
const shadowNode = this.engine.shadowNodeOf(this.node);
|
|
34
39
|
if (tag === null || shadowNode === null)
|
|
35
40
|
return;
|
|
36
|
-
onCleanup(this.worklets.bind({ tag, shadowNode }, style));
|
|
41
|
+
onCleanup(this.worklets.bind({ tag, shadowNode }, style, (props) => this.keepDrawn(props)));
|
|
37
42
|
}, { injector: this.injector });
|
|
38
43
|
});
|
|
39
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Commit what the UI thread settled on with the node, which is what lets Reanimated stop
|
|
47
|
+
* applying the view to every commit. The commit is the next one the engine makes, for every view
|
|
48
|
+
* that settled together.
|
|
49
|
+
*/
|
|
50
|
+
keepDrawn(props) {
|
|
51
|
+
this.drawn = { ...this.drawn, ...props };
|
|
52
|
+
this.engine.setUiThreadProps(this.node, this.drawn);
|
|
53
|
+
}
|
|
40
54
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: WorkletStyleBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
41
55
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.0", type: WorkletStyleBase, isStandalone: true, selector: "[workletStyle]", inputs: { workletStyle: { classPropertyName: "workletStyle", publicName: "workletStyle", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 });
|
|
42
56
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worklet-style.js","sourceRoot":"","sources":["../src/worklet-style.ts"],"names":[],"m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EAAE,GAAG,KAAK,EAAE,CAAC;QACzC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IACtD,CAAC;uGAzCU,gBAAgB;2FAAhB,gBAAgB;;2FAAhB,gBAAgB;kBAD5B,SAAS;mBAAC,EAAE,QAAQ,EAAE,gBAAgB,EAAE","sourcesContent":["/**\n * A style computed on the UI thread, by a Reanimated worklet.\n *\n * The difference from `AnimatedStyle` is where the work happens. An animated style advances in\n * JavaScript unless the native driver can take the whole animation over, and the native driver\n * only understands the animations React Native itself can express. A worklet is arbitrary code\n * running on a second JavaScript runtime that lives on the UI thread, so anything computable per\n * frame - a gesture following a finger, a value derived from three others - keeps its frame rate\n * with the JavaScript thread busy.\n *\n * `WorkletStyle` in `../reanimated.ts` is the one apps import: same selector, and it supplies the\n * real runtime itself.\n */\nimport {\n Directive,\n ElementRef,\n Injector,\n afterNextRender,\n effect,\n inject,\n input,\n} from '@angular/core';\nimport { Engine, type EngineNode } from '@ng-native/fabric';\nimport { WORKLETS, type WorkletStyleSpec } from './worklets.ts';\n\n/** The behaviour, with the runtime left as a dependency so a test can drive a fake one. */\n@Directive({ selector: '[workletStyle]' })\nexport class WorkletStyleBase {\n private readonly node = inject(ElementRef).nativeElement as EngineNode;\n private readonly engine = inject(Engine);\n private readonly worklets = inject(WORKLETS);\n private readonly injector = inject(Injector);\n\n readonly workletStyle = input.required<WorkletStyleSpec>();\n\n /**\n * What the UI thread has drawn the node with and let go of, from every style bound so far: a\n * replaced style leaves what the one before drew, as Reanimated leaves it on the view.\n */\n private drawn: Readonly<Record<string, unknown>> = {};\n\n constructor() {\n // A node has neither a react tag nor a shadow node until it has been committed once, and\n // there is nothing for the UI thread to write to before then.\n afterNextRender(() => {\n effect(\n (onCleanup) => {\n const style = this.workletStyle();\n const tag = this.engine.tagOf(this.node);\n const shadowNode = this.engine.shadowNodeOf(this.node);\n if (tag === null || shadowNode === null) return;\n onCleanup(\n this.worklets.bind({ tag, shadowNode }, style, (props) => this.keepDrawn(props)),\n );\n },\n { injector: this.injector },\n );\n });\n }\n\n /**\n * Commit what the UI thread settled on with the node, which is what lets Reanimated stop\n * applying the view to every commit. The commit is the next one the engine makes, for every view\n * that settled together.\n */\n private keepDrawn(props: Readonly<Record<string, unknown>>): void {\n this.drawn = { ...this.drawn, ...props };\n this.engine.setUiThreadProps(this.node, this.drawn);\n }\n}\n"]}
|
package/dist/worklets.d.ts
CHANGED
|
@@ -89,8 +89,12 @@ export interface WorkletBackend {
|
|
|
89
89
|
/**
|
|
90
90
|
* Run `style.updater` on the UI runtime whenever one of its values changes, writing what it
|
|
91
91
|
* returns onto `target`. Returns the function that stops it.
|
|
92
|
+
*
|
|
93
|
+
* `settled` is handed the props the UI thread has drawn `target` with once they stop changing,
|
|
94
|
+
* as React Native styles them, for the view's commits to carry: Reanimated lets the view go
|
|
95
|
+
* once they do. Every prop it has drawn the view with, from this style and any before it.
|
|
92
96
|
*/
|
|
93
|
-
bind(target: WorkletTarget, style: WorkletStyleSpec): () => void;
|
|
97
|
+
bind(target: WorkletTarget, style: WorkletStyleSpec, settled: (props: Readonly<Record<string, unknown>>) => void): () => void;
|
|
94
98
|
/**
|
|
95
99
|
* Run `spec.handler` on the UI runtime for every scroll event `target` emits. Returns the
|
|
96
100
|
* function that stops it.
|
package/dist/worklets.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worklets.js","sourceRoot":"","sources":["../src/worklets.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAwC/C;;;;;;;;;GASG;AACH,MAAM,UAAU,YAAY,CAC1B,MAAS,EACT,OAAkD;IAElD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AAC7B,CAAC;AAcD;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,aAAa,CAC3B,MAAS,EACT,OAAqD;IAErD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AAC7B,CAAC;
|
|
1
|
+
{"version":3,"file":"worklets.js","sourceRoot":"","sources":["../src/worklets.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAwC/C;;;;;;;;;GASG;AACH,MAAM,UAAU,YAAY,CAC1B,MAAS,EACT,OAAkD;IAElD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AAC7B,CAAC;AAcD;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,aAAa,CAC3B,MAAS,EACT,OAAqD;IAErD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AAC7B,CAAC;AA8BD,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,cAAc,CAAiB,yBAAyB,CAAC,CAAC","sourcesContent":["/**\n * Platform capability: Reanimated's worklets, and the UI-thread runtime they run on.\n *\n * Injected rather than imported for the same reason the animation graph is: `react-native-worklets`\n * reaches React Native's Flow source, which Node cannot parse, and the components package has to\n * stay loadable in the test suite. `WorkletStyle` in `../reanimated.ts` carries the real backend\n * as its own provider, so importing the directive is the whole setup, and a test provides a fake\n * runtime instead of needing a device.\n */\nimport { InjectionToken } from '@angular/core';\nimport type { ScrollPayload } from './events.ts';\n\n/** A Reanimated shared value. During an animation only the UI runtime reads one. */\nexport interface SharedValue<T = number> {\n value: T;\n}\n\n/**\n * Reanimated's public `SharedValue` surface, which code outside a worklet reads and writes. Written\n * out rather than imported, so that a type naming one resolves where Reanimated is not installed.\n */\nexport interface MutableValue<T> extends SharedValue<T> {\n get(): T;\n set(value: T | ((value: T) => T)): void;\n modify(modifier?: (value: T) => T, forceUpdate?: boolean): void;\n addListener(id: number, listener: (value: T) => void): void;\n removeListener(id: number): void;\n}\n\n/**\n * A style, and the shared values it is computed from.\n *\n * The values are arguments to the worklet rather than things it captures, and that is the whole\n * reason this is a function of its inputs. A worklet captures its free variables by value when it\n * is created, so one written inside a component that reads `this.x` would capture the component -\n * every signal, the injector, the view - and try to serialise all of it onto the other runtime.\n * Taking the values as arguments makes that impossible to write by accident, and makes the\n * dependency list the thing the UI runtime is subscribed to rather than a guess.\n */\nexport interface WorkletStyleSpec {\n readonly values: readonly unknown[];\n /**\n * Called with `values`. Declared as a method rather than a property so that a spec built from\n * a known tuple of shared values is still a `WorkletStyleSpec`: the parameter types are checked\n * in the factory below, against the values it was handed, and widen on the way in.\n */\n updater(...values: readonly unknown[]): Record<string, unknown>;\n}\n\n/**\n * Bind a style to the shared values it reads.\n *\n * ```ts\n * protected readonly slide = workletStyle([this.offset], (offset) => {\n * 'worklet';\n * return { transform: [{ translateX: offset.value }] };\n * });\n * ```\n */\nexport function workletStyle<const T extends readonly SharedValue<unknown>[]>(\n values: T,\n updater: (...values: T) => Record<string, unknown>,\n): WorkletStyleSpec {\n return { values, updater };\n}\n\n/** A worklet run on every scroll frame, and the shared values it is given. */\nexport interface WorkletScrollSpec {\n readonly values: readonly unknown[];\n /**\n * Called on the UI runtime with the event and `values`. See `WorkletStyleSpec.updater`.\n *\n * The payload rather than the wrapped event a listener gets: Reanimated hands a worklet what\n * native put in the event, with no `nativeEvent` around it.\n */\n handler(event: ScrollPayload, ...values: readonly unknown[]): void;\n}\n\n/**\n * Bind a worklet to a scroll view's scrolling.\n *\n * ```ts\n * protected readonly parallax = workletScroll([this.offset], (event, offset) => {\n * 'worklet';\n * offset.value = event.contentOffset.y;\n * });\n * ```\n *\n * The point of it is where it runs: native delivers the scroll to the UI runtime, the worklet\n * writes a shared value there, and a `[workletStyle]` reads it there - so a header that shrinks\n * with the scroll never involves the JavaScript thread at all, and cannot fall behind it.\n */\nexport function workletScroll<const T extends readonly SharedValue<unknown>[]>(\n values: T,\n handler: (event: ScrollPayload, ...values: T) => void,\n): WorkletScrollSpec {\n return { values, handler };\n}\n\n/** What the UI runtime writes to: a node's react tag and the shadow node behind it. */\nexport interface WorkletTarget {\n readonly tag: number;\n readonly shadowNode: unknown;\n}\n\nexport interface WorkletBackend {\n /**\n * Run `style.updater` on the UI runtime whenever one of its values changes, writing what it\n * returns onto `target`. Returns the function that stops it.\n *\n * `settled` is handed the props the UI thread has drawn `target` with once they stop changing,\n * as React Native styles them, for the view's commits to carry: Reanimated lets the view go\n * once they do. Every prop it has drawn the view with, from this style and any before it.\n */\n bind(\n target: WorkletTarget,\n style: WorkletStyleSpec,\n settled: (props: Readonly<Record<string, unknown>>) => void,\n ): () => void;\n\n /**\n * Run `spec.handler` on the UI runtime for every scroll event `target` emits. Returns the\n * function that stops it.\n */\n scroll(target: WorkletTarget, spec: WorkletScrollSpec): () => void;\n}\n\nexport const WORKLETS = new InjectionToken<WorkletBackend>('angular-native.worklets');\n"]}
|
package/dist/written-props.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"written-props.js","sourceRoot":"","sources":["../src/written-props.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAsB;IAC9C,sBAAsB;IACtB,0BAA0B;IAC1B,0BAA0B;IAC1B,6BAA6B;IAC7B,mBAAmB;IACnB,kCAAkC;IAClC,sBAAsB;IACtB,oBAAoB;IACpB,yBAAyB;IACzB,uBAAuB;IACvB,gCAAgC;IAChC,oBAAoB;IACpB,yBAAyB;IACzB,uBAAuB;IACvB,uBAAuB;IACvB,wCAAwC;IACxC,mBAAmB;IACnB,uBAAuB;IACvB,sBAAsB;IACtB,sCAAsC;IACtC,oBAAoB;IACpB,oBAAoB;IACpB,0BAA0B;IAC1B,YAAY;IACZ,sBAAsB;IACtB,kBAAkB;IAClB,qBAAqB;IACrB,QAAQ;IACR,wBAAwB;IACxB,sBAAsB;IACtB,8BAA8B;IAC9B,WAAW;IACX,eAAe;IACf,gBAAgB;IAChB,cAAc;IACd,aAAa;IACb,WAAW;IACX,kCAAkC;IAClC,mCAAmC;IACnC,2CAA2C;IAC3C,cAAc;IACd,iBA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,uBAAuB;IACvB,gCAAgC;IAChC,cAAc;IACd,YAAY;IACZ,kBAAkB;IAClB,eAAe;IACf,MAAM;IACN,MAAM;IACN,eAAe;IACf,qBAAqB;IACrB,uBAAuB;IACvB,yBAAyB;IACzB,cAAc;IACd,iBAAiB;IACjB,mBAAmB;IACnB,YAAY;IACZ,UAAU;IACV,WAAW;IACX,gBAAgB;IAChB,sBAAsB;IACtB,oBAAoB;IACpB,UAAU;IACV,oBAAoB;IACpB,sBAAsB;IACtB,gCAAgC;IAChC,8BAA8B;IAC9B,MAAM;IACN,mBAAmB;IACnB,aAAa;IACb,iBAAiB;IACjB,WAAW;IACX,gBAAgB;IAChB,eAAe;IACf,aAAa;IACb,QAAQ;IACR,YAAY;IACZ,sBAAsB;IACtB,WAAW;IACX,gBAAgB;IAChB,uBAAuB;IACvB,QAAQ;IACR,MAAM;IACN,WAAW;IACX,mBAAmB;IACnB,mBAAmB;IACnB,iBAAiB;IACjB,gBAAgB;IAChB,WAAW;IACX,OAAO;IACP,YAAY;IACZ,oBAAoB;IACpB,mBAAmB;IACnB,gBAAgB;IAChB,WAAW;IACX,aAAa;IACb,uBAAuB;IACvB,OAAO;IACP,SAAS;IACT,QAAQ;IACR,WAAW;CACZ,CAAC","sourcesContent":["/**\n * Every prop the components send through a host binding or a write from code, under the native\n * view's own name, which is often not the name of any input. `native-props.test.ts` holds it to\n * the sources.\n */\nexport const WRITTEN_PROPS: readonly string[] = [\n 'accessibilityActions',\n 'accessibilityColumnCount',\n 'accessibilityDescribedBy',\n 'accessibilityElementsHidden',\n 'accessibilityHint',\n 'accessibilityIgnoresInvertColors',\n 'accessibilityInvalid',\n 'accessibilityLabel',\n 'accessibilityLabelledBy',\n 'accessibilityLanguage',\n 'accessibilityLargeContentTitle',\n 'accessibilityLevel',\n 'accessibilityLiveRegion',\n 'accessibilityPosInSet',\n 'accessibilityRequired',\n 'accessibilityRespondsToUserInteraction',\n 'accessibilityRole',\n 'accessibilityRowCount',\n 'accessibilitySetSize',\n 'accessibilityShowsLargeContentViewer',\n 'accessibilityState',\n 'accessibilityValue',\n 'accessibilityViewIsModal',\n 'accessible',\n 'adjustsFontSizeToFit',\n 'allowFontScaling',\n 'allowSwipeDismissal',\n 'anchor',\n 'alwaysBounceHorizontal',\n 'alwaysBounceVertical',\n 'android_hyphenationFrequency',\n 'animating',\n 'animationType',\n 'autoCapitalize',\n 'autoComplete',\n 'autoCorrect',\n 'autoFocus',\n 'automaticallyAdjustContentInsets',\n 'automaticallyAdjustKeyboardInsets',\n 'automaticallyAdjustsScrollIndicatorInsets',\n 'autosaveName',\n 'backgroundColor',\n 'badge',\n 'blurRadius',\n 'bounces',\n 'bouncesZoom',\n 'canCancelContentTouches',\n 'capInsets',\n 'caretHidden',\n 'centerContent',\n 'clearButtonMode',\n 'clearTextOnFocus',\n 'collapsable',\n 'collapsableChildren',\n 'collapsed',\n 'collapsible',\n 'color',\n 'colors',\n 'contentInset',\n 'contentInsetAdjustmentBehavior',\n 'contentOffset',\n 'contextMenu',\n 'contextMenuHidden',\n 'controlSize',\n 'cursorColor',\n 'dataDetectorType',\n 'dataDetectorTypes',\n 'decelerationRate',\n 'defaultSource',\n 'directionalLockEnabled',\n 'disableFullscreenUI',\n 'disableIntervalMomentum',\n 'disabled',\n 'dragItem',\n 'drawable',\n 'dynamicTypeRamp',\n 'edges',\n 'editable',\n 'ellipsizeMode',\n 'enabled',\n 'enablesReturnKeyAutomatically',\n 'endFillColor',\n 'fadeDuration',\n 'fadingEdgeLength',\n 'fileDrop',\n 'flexDirection',\n 'focusable',\n 'hardwareAccelerated',\n 'hidesWhenStopped',\n 'hitSlop',\n 'horizontal',\n 'importantForAutofill',\n 'indeterminate',\n 'indicatorStyle',\n 'inlineImageLeft',\n 'inlineImagePadding',\n 'inputAccessoryViewID',\n 'isHighlighted',\n 'isPressable',\n 'keyboardAppearance',\n 'keyboardDismissMode',\n 'keyboardType',\n 'kind',\n 'label',\n 'lineBreakStrategyIOS',\n 'loadingIndicatorSource',\n 'maintainVisibleContentPosition',\n 'maxFontSizeMultiplier',\n 'maxLength',\n 'maximumZoomScale',\n 'minimumFontScale',\n 'minimumZoomScale',\n 'mode',\n 'mostRecentEventCount',\n 'multiline',\n 'nativeBackgroundAndroid',\n 'nativeForegroundAndroid',\n 'nativeID',\n 'navigationBarTranslucent',\n 'needsOffscreenAlphaCompositing',\n 'nestedScrollEnabled',\n 'numberOfLines',\n 'on',\n 'onTintColor',\n 'overScrollMode',\n 'pagingEnabled',\n 'paneMaxWidth',\n 'paneMinWidth',\n 'passwordRules',\n 'persistentScrollbar',\n 'pinchGestureEnabled',\n 'placeholder',\n 'placeholderTextColor',\n 'pointerEvents',\n 'presentationStyle',\n 'progressBackgroundColor',\n 'progressViewOffset',\n 'progressiveRenderingEnabled',\n 'refreshing',\n 'removeClippedSubviews',\n 'renderToHardwareTextureAndroid',\n 'resizeMethod',\n 'resizeMode',\n 'resizeMultiplier',\n 'returnKeyType',\n 'role',\n 'rows',\n 'scrollEnabled',\n 'scrollEventThrottle',\n 'scrollIndicatorInsets',\n 'scrollToOverflowEnabled',\n 'scrollsToTop',\n 'secureTextEntry',\n 'selectTextOnFocus',\n 'selectable',\n 'selected',\n 'selection',\n 'selectionColor',\n 'selectionHandleColor',\n 'sendMomentumEvents',\n 'sfSymbol',\n 'shouldRasterizeIOS',\n 'showSoftInputOnFocus',\n 'showsHorizontalScrollIndicator',\n 'showsVerticalScrollIndicator',\n 'size',\n 'smartInsertDelete',\n 'smartQuotes',\n 'snapToAlignment',\n 'snapToEnd',\n 'snapToInterval',\n 'snapToOffsets',\n 'snapToStart',\n 'source',\n 'spellCheck',\n 'statusBarTranslucent',\n 'styleAttr',\n 'submitBehavior',\n 'supportedOrientations',\n 'testID',\n 'text',\n 'textAlign',\n 'textAlignVertical',\n 'textBreakStrategy',\n 'textContentType',\n 'thumbTintColor',\n 'tintColor',\n 'title',\n 'titleColor',\n 'trackColorForFalse',\n 'trackColorForTrue',\n 'trackTintColor',\n 'transform',\n 'transparent',\n 'underlineColorAndroid',\n 'value',\n 'visible',\n 'zIndex',\n 'zoomScale',\n];\n"]}
|
|
1
|
+
{"version":3,"file":"written-props.js","sourceRoot":"","sources":["../src/written-props.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAsB;IAC9C,sBAAsB;IACtB,0BAA0B;IAC1B,0BAA0B;IAC1B,6BAA6B;IAC7B,mBAAmB;IACnB,kCAAkC;IAClC,sBAAsB;IACtB,oBAAoB;IACpB,yBAAyB;IACzB,uBAAuB;IACvB,gCAAgC;IAChC,oBAAoB;IACpB,yBAAyB;IACzB,uBAAuB;IACvB,uBAAuB;IACvB,wCAAwC;IACxC,mBAAmB;IACnB,uBAAuB;IACvB,sBAAsB;IACtB,sCAAsC;IACtC,oBAAoB;IACpB,oBAAoB;IACpB,0BAA0B;IAC1B,YAAY;IACZ,sBAAsB;IACtB,kBAAkB;IAClB,qBAAqB;IACrB,QAAQ;IACR,wBAAwB;IACxB,sBAAsB;IACtB,8BAA8B;IAC9B,WAAW;IACX,eAAe;IACf,gBAAgB;IAChB,cAAc;IACd,aAAa;IACb,WAAW;IACX,kCAAkC;IAClC,mCAAmC;IACnC,2CAA2C;IAC3C,cAAc;IACd,iBAAiB;IACjB,OAAO;IACP,YAAY;IACZ,SAAS;IACT,aAAa;IACb,yBAAyB;IACzB,WAAW;IACX,aAAa;IACb,eAAe;IACf,iBAAiB;IACjB,kBAAkB;IAClB,aAAa;IACb,qBAAqB;IACrB,WAAW;IACX,aAAa;IACb,OAAO;IACP,QAAQ;IACR,cAAc;IACd,gCAAgC;IAChC,eAAe;IACf,aAAa;IACb,mBAAmB;IACnB,aAAa;IACb,aAAa;IACb,kBAAkB;IAClB,mBAAmB;IACnB,kBAAkB;IAClB,eAAe;IACf,wBAAwB;IACxB,qBAAqB;IACrB,yBAAyB;IACzB,UAAU;IACV,UAAU;IACV,UAAU;IACV,iBAAiB;IACjB,OAAO;IACP,UAAU;I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ACR,YAAY;IACZ,sBAAsB;IACtB,WAAW;IACX,gBAAgB;IAChB,uBAAuB;IACvB,SAAS;IACT,QAAQ;IACR,MAAM;IACN,WAAW;IACX,mBAAmB;IACnB,mBAAmB;IACnB,iBAAiB;IACjB,gBAAgB;IAChB,WAAW;IACX,OAAO;IACP,YAAY;IACZ,oBAAoB;IACpB,mBAAmB;IACnB,gBAAgB;IAChB,WAAW;IACX,aAAa;IACb,uBAAuB;IACvB,OAAO;IACP,SAAS;IACT,QAAQ;IACR,WAAW;CACZ,CAAC","sourcesContent":["/**\n * Every prop the components send through a host binding or a write from code, under the native\n * view's own name, which is often not the name of any input. `native-props.test.ts` holds it to\n * the sources.\n */\nexport const WRITTEN_PROPS: readonly string[] = [\n 'accessibilityActions',\n 'accessibilityColumnCount',\n 'accessibilityDescribedBy',\n 'accessibilityElementsHidden',\n 'accessibilityHint',\n 'accessibilityIgnoresInvertColors',\n 'accessibilityInvalid',\n 'accessibilityLabel',\n 'accessibilityLabelledBy',\n 'accessibilityLanguage',\n 'accessibilityLargeContentTitle',\n 'accessibilityLevel',\n 'accessibilityLiveRegion',\n 'accessibilityPosInSet',\n 'accessibilityRequired',\n 'accessibilityRespondsToUserInteraction',\n 'accessibilityRole',\n 'accessibilityRowCount',\n 'accessibilitySetSize',\n 'accessibilityShowsLargeContentViewer',\n 'accessibilityState',\n 'accessibilityValue',\n 'accessibilityViewIsModal',\n 'accessible',\n 'adjustsFontSizeToFit',\n 'allowFontScaling',\n 'allowSwipeDismissal',\n 'anchor',\n 'alwaysBounceHorizontal',\n 'alwaysBounceVertical',\n 'android_hyphenationFrequency',\n 'animating',\n 'animationType',\n 'autoCapitalize',\n 'autoComplete',\n 'autoCorrect',\n 'autoFocus',\n 'automaticallyAdjustContentInsets',\n 'automaticallyAdjustKeyboardInsets',\n 'automaticallyAdjustsScrollIndicatorInsets',\n 'autosaveName',\n 'backgroundColor',\n 'badge',\n 'blurRadius',\n 'bounces',\n 'bouncesZoom',\n 'canCancelContentTouches',\n 'capInsets',\n 'caretHidden',\n 'centerContent',\n 'clearButtonMode',\n 'clearTextOnFocus',\n 'collapsable',\n 'collapsableChildren',\n 'collapsed',\n 'collapsible',\n 'color',\n 'colors',\n 'contentInset',\n 'contentInsetAdjustmentBehavior',\n 'contentOffset',\n 'contextMenu',\n 'contextMenuHidden',\n 'controlSize',\n 'cursorColor',\n 'dataDetectorType',\n 'dataDetectorTypes',\n 'decelerationRate',\n 'defaultSource',\n 'directionalLockEnabled',\n 'disableFullscreenUI',\n 'disableIntervalMomentum',\n 'disabled',\n 'dragItem',\n 'drawable',\n 'dynamicTypeRamp',\n 'edges',\n 'editable',\n 'ellipsizeMode',\n 'enabled',\n 'enablesReturnKeyAutomatically',\n 'endFillColor',\n 'fadeDuration',\n 'fadingEdgeLength',\n 'fileDrop',\n 'flexDirection',\n 'focusable',\n 'hardwareAccelerated',\n 'hidesWhenStopped',\n 'hitSlop',\n 'horizontal',\n 'importantForAutofill',\n 'indeterminate',\n 'indicatorStyle',\n 'inlineImageLeft',\n 'inlineImagePadding',\n 'inputAccessoryViewID',\n 'isHighlighted',\n 'isPressable',\n 'keyboardAppearance',\n 'keyboardDismissMode',\n 'keyboardType',\n 'kind',\n 'label',\n 'lineBreakStrategyIOS',\n 'loadingIndicatorSource',\n 'maintainVisibleContentPosition',\n 'maxFontSizeMultiplier',\n 'maxLength',\n 'maximumZoomScale',\n 'minimumFontScale',\n 'minimumZoomScale',\n 'mode',\n 'mostRecentEventCount',\n 'multiline',\n 'nativeBackgroundAndroid',\n 'nativeForegroundAndroid',\n 'nativeID',\n 'navigationBarTranslucent',\n 'needsOffscreenAlphaCompositing',\n 'nestedScrollEnabled',\n 'numberOfLines',\n 'on',\n 'onTintColor',\n 'overScrollMode',\n 'pagingEnabled',\n 'paneMaxWidth',\n 'paneMinWidth',\n 'passwordRules',\n 'persistentScrollbar',\n 'pinchGestureEnabled',\n 'placeholder',\n 'placeholderTextColor',\n 'pointerEvents',\n 'presentationStyle',\n 'progressBackgroundColor',\n 'progressViewOffset',\n 'progressiveRenderingEnabled',\n 'refreshing',\n 'removeClippedSubviews',\n 'renderToHardwareTextureAndroid',\n 'resizeMethod',\n 'resizeMode',\n 'resizeMultiplier',\n 'returnKeyType',\n 'role',\n 'rows',\n 'scrollEnabled',\n 'scrollEventThrottle',\n 'scrollIndicatorInsets',\n 'scrollToOverflowEnabled',\n 'scrollsToTop',\n 'secureTextEntry',\n 'selectTextOnFocus',\n 'selectable',\n 'selected',\n 'selection',\n 'selectionColor',\n 'selectionHandleColor',\n 'sendMomentumEvents',\n 'sfSymbol',\n 'shouldRasterizeIOS',\n 'showSoftInputOnFocus',\n 'showsHorizontalScrollIndicator',\n 'showsVerticalScrollIndicator',\n 'size',\n 'smartInsertDelete',\n 'smartQuotes',\n 'snapToAlignment',\n 'snapToEnd',\n 'snapToInterval',\n 'snapToOffsets',\n 'snapToStart',\n 'source',\n 'spellCheck',\n 'statusBarTranslucent',\n 'styleAttr',\n 'submitBehavior',\n 'supportedOrientations',\n 'svgIcon',\n 'testID',\n 'text',\n 'textAlign',\n 'textAlignVertical',\n 'textBreakStrategy',\n 'textContentType',\n 'thumbTintColor',\n 'tintColor',\n 'title',\n 'titleColor',\n 'trackColorForFalse',\n 'trackColorForTrue',\n 'trackTintColor',\n 'transform',\n 'transparent',\n 'underlineColorAndroid',\n 'value',\n 'visible',\n 'zIndex',\n 'zoomScale',\n];\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-native/components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"description": "Angular Native's core components: view, text, image, pressable, scroll-view, virtual-list, text-input and the rest of React Native's set.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@ng-native/device": "0.
|
|
65
|
-
"@ng-native/fabric": "0.
|
|
64
|
+
"@ng-native/device": "0.28.0",
|
|
65
|
+
"@ng-native/fabric": "0.28.0"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"@angular/core": "^22.0.0",
|