@symbiote-native/angular 0.6.0 → 0.6.2
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 +1 -1
- package/babel-register-composed.cjs +11 -3
- 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/components/input-accessory-view/index.d.ts +2 -1
- package/build/angular/components/input-accessory-view/index.js +28 -39
- package/build/angular/components/input-accessory-view/index.js.map +1 -1
- package/build/angular/components/scroll-view/projection.js +70 -48
- package/build/angular/components/scroll-view/projection.js.map +1 -1
- package/build/angular/components/scroll-view/shared.js +28 -25
- package/build/angular/components/scroll-view/shared.js.map +1 -1
- package/build/angular/components/scroll-view/sticky-header.d.ts +6 -7
- package/build/angular/components/scroll-view/sticky-header.js +82 -65
- package/build/angular/components/scroll-view/sticky-header.js.map +1 -1
- package/build/angular/components/touchable/index.d.ts +2 -5
- package/build/angular/components/touchable/index.js +36 -56
- package/build/angular/components/touchable/index.js.map +1 -1
- package/build/angular/components/virtualized-list/index.d.ts +5 -20
- package/build/angular/components/virtualized-list/index.js +145 -275
- package/build/angular/components/virtualized-list/index.js.map +1 -1
- package/build/angular/components/virtualized-section-list/index.js +2 -4
- package/build/angular/components/virtualized-section-list/index.js.map +1 -1
- package/build/angular/index.d.ts +2 -1
- package/build/angular/index.js +6 -1
- package/build/angular/index.js.map +1 -1
- package/build/angular/renderer/index.d.ts +0 -1
- package/build/angular/renderer/index.js +5 -60
- package/build/angular/renderer/index.js.map +1 -1
- package/package.json +8 -4
- package/src/anchor-host-registry.ts +88 -0
- package/src/components/input-accessory-view/index.ts +30 -39
- package/src/components/scroll-view/projection.ts +76 -46
- package/src/components/scroll-view/shared.ts +27 -19
- package/src/components/scroll-view/sticky-header.ts +89 -64
- package/src/components/touchable/index.ts +52 -66
- package/src/components/virtualized-list/index.ts +157 -368
- package/src/components/virtualized-section-list/index.ts +6 -3
- package/src/index.ts +6 -1
- package/src/renderer/index.ts +5 -63
- package/build/bootstrap.d.ts +0 -7
- package/build/bootstrap.js +0 -14
- package/build/components/activity-indicator/index.android.d.ts +0 -9
- package/build/components/activity-indicator/index.android.js +0 -64
- package/build/components/activity-indicator/index.d.ts +0 -1
- package/build/components/activity-indicator/index.ios.d.ts +0 -5
- package/build/components/activity-indicator/index.ios.js +0 -64
- package/build/components/activity-indicator/index.js +0 -3
- package/build/components/activity-indicator/shared.d.ts +0 -64
- package/build/components/activity-indicator/shared.js +0 -424
- package/build/components/button.d.ts +0 -60
- package/build/components/button.js +0 -456
- package/build/components/flat-list/index.d.ts +0 -119
- package/build/components/flat-list/index.js +0 -691
- package/build/components/image/index.android.d.ts +0 -7
- package/build/components/image/index.android.js +0 -88
- package/build/components/image/index.d.ts +0 -1
- package/build/components/image/index.ios.d.ts +0 -7
- package/build/components/image/index.ios.js +0 -88
- package/build/components/image/index.js +0 -2
- package/build/components/image/shared.d.ts +0 -101
- package/build/components/image/shared.js +0 -405
- package/build/components/image-background.d.ts +0 -78
- package/build/components/image-background.js +0 -583
- package/build/components/input-accessory-view/index.d.ts +0 -56
- package/build/components/input-accessory-view/index.js +0 -403
- package/build/components/keyboard-avoiding-view/index.d.ts +0 -79
- package/build/components/keyboard-avoiding-view/index.js +0 -504
- package/build/components/modal/index.d.ts +0 -89
- package/build/components/modal/index.js +0 -529
- package/build/components/pressable/index.d.ts +0 -120
- package/build/components/pressable/index.js +0 -639
- package/build/components/refresh-control/index.d.ts +0 -83
- package/build/components/refresh-control/index.js +0 -509
- package/build/components/safe-area-view/index.d.ts +0 -54
- package/build/components/safe-area-view/index.js +0 -388
- package/build/components/scroll-view/index.android.d.ts +0 -16
- package/build/components/scroll-view/index.android.js +0 -228
- package/build/components/scroll-view/index.d.ts +0 -3
- package/build/components/scroll-view/index.ios.d.ts +0 -6
- package/build/components/scroll-view/index.ios.js +0 -113
- package/build/components/scroll-view/index.js +0 -5
- package/build/components/scroll-view/projection.d.ts +0 -32
- package/build/components/scroll-view/projection.js +0 -311
- package/build/components/scroll-view/shared.d.ts +0 -225
- package/build/components/scroll-view/shared.js +0 -757
- package/build/components/scroll-view/sticky-header.d.ts +0 -38
- package/build/components/scroll-view/sticky-header.js +0 -257
- package/build/components/section-list/index.d.ts +0 -113
- package/build/components/section-list/index.js +0 -768
- package/build/components/switch/index.android.d.ts +0 -17
- package/build/components/switch/index.android.js +0 -107
- package/build/components/switch/index.d.ts +0 -1
- package/build/components/switch/index.ios.d.ts +0 -16
- package/build/components/switch/index.ios.js +0 -106
- package/build/components/switch/index.js +0 -3
- package/build/components/switch/shared.d.ts +0 -37
- package/build/components/switch/shared.js +0 -176
- package/build/components/text-input.d.ts +0 -150
- package/build/components/text-input.js +0 -821
- package/build/components/touchable/index.d.ts +0 -241
- package/build/components/touchable/index.js +0 -1672
- package/build/components/touchable-native-feedback/index.d.ts +0 -80
- package/build/components/touchable-native-feedback/index.js +0 -545
- package/build/components/virtualized-list/directives.d.ts +0 -41
- package/build/components/virtualized-list/directives.js +0 -249
- package/build/components/virtualized-list/index.d.ts +0 -265
- package/build/components/virtualized-list/index.js +0 -1343
- package/build/components/virtualized-section-list/directives.d.ts +0 -28
- package/build/components/virtualized-section-list/directives.js +0 -148
- package/build/components/virtualized-section-list/index.d.ts +0 -175
- package/build/components/virtualized-section-list/index.js +0 -854
- package/build/components.d.ts +0 -39
- package/build/components.js +0 -37
- package/build/create-portal/index.d.ts +0 -17
- package/build/create-portal/index.js +0 -128
- package/build/create-tunnel/index.d.ts +0 -29
- package/build/create-tunnel/index.js +0 -181
- package/build/descriptor-to-angular/index.d.ts +0 -19
- package/build/descriptor-to-angular/index.js +0 -186
- package/build/host-instance/index.d.ts +0 -2
- package/build/host-instance/index.js +0 -36
- package/build/index.d.ts +0 -21
- package/build/index.js +0 -40
- package/build/modules/animated/animated-leaf-binder/index.d.ts +0 -14
- package/build/modules/animated/animated-leaf-binder/index.js +0 -90
- package/build/modules/animated/animated-leaf-binder.d.ts +0 -14
- package/build/modules/animated/animated-leaf-binder.js +0 -90
- package/build/modules/animated/create-animated-component.d.ts +0 -48
- package/build/modules/animated/create-animated-component.js +0 -425
- package/build/modules/animated/index.d.ts +0 -51
- package/build/modules/animated/index.js +0 -58
- package/build/modules/app-registry/index.d.ts +0 -7
- package/build/modules/app-registry/index.js +0 -22
- package/build/modules/status-bar/index.d.ts +0 -17
- package/build/modules/status-bar/index.js +0 -121
- package/build/primitives/index.d.ts +0 -32
- package/build/primitives/index.js +0 -386
- package/build/primitives/shared.d.ts +0 -83
- package/build/primitives/shared.js +0 -230
- package/build/render/index.d.ts +0 -11
- package/build/render/index.js +0 -170
- package/build/renderer/index.d.ts +0 -38
- package/build/renderer/index.js +0 -355
- package/build/services/color-scheme.service.d.ts +0 -13
- package/build/services/color-scheme.service.js +0 -72
- package/build/services/index.d.ts +0 -2
- package/build/services/index.js +0 -2
- package/build/services/window-dimensions.service.d.ts +0 -13
- package/build/services/window-dimensions.service.js +0 -83
- package/src/__tests__/responder-change-detection.test.ts +0 -102
- package/src/__tests__/responder-nested-cd.test.ts +0 -113
- package/src/angular-gaps.test.ts +0 -142
- package/src/angular-imports.test.ts +0 -100
- package/src/components/activity-indicator/activity-indicator-class-style.test.ts +0 -44
- package/src/components/activity-indicator/activity-indicator.test.ts +0 -131
- package/src/components/flat-list/column-wrapper-style-class.test.ts +0 -116
- package/src/components/flat-list/flat-list-array-style.test.ts +0 -131
- package/src/components/flat-list/flat-list-class-style.test.ts +0 -74
- package/src/components/flat-list/flat-list-scroll-containment.test.ts +0 -107
- package/src/components/flat-list/flat-list.test.ts +0 -99
- package/src/components/image/image-class-style.test.ts +0 -46
- package/src/components/image-background-class-style.test.ts +0 -48
- package/src/components/image-background-style-class.test.ts +0 -79
- package/src/components/input-accessory-view/input-accessory-view.test.ts +0 -43
- package/src/components/keyboard-avoiding-view/keyboard-avoiding-view.test.ts +0 -54
- package/src/components/modal/modal.test.ts +0 -43
- package/src/components/pressable/pressable.test.ts +0 -85
- package/src/components/refresh-control/refresh-control.test.ts +0 -41
- package/src/components/safe-area-view/safe-area-view.test.ts +0 -43
- package/src/components/scroll-view/android-scroll-view-axis-projection.test.ts +0 -123
- package/src/components/scroll-view/content-container-style-class.test.ts +0 -75
- package/src/components/scroll-view/scroll-view-class-style.test.ts +0 -134
- package/src/components/scroll-view/scroll-view-projection.test.ts +0 -194
- package/src/components/switch/android-switch-class.test.ts +0 -42
- package/src/components/switch/switch.test.ts +0 -92
- package/src/components/text-input-class-style.test.ts +0 -54
- package/src/components/touchable/touchable.test.ts +0 -102
- package/src/components/touchable-native-feedback/touchable-native-feedback.test.ts +0 -49
- package/src/components/virtualized-list/virtualized-list-class-style.test.ts +0 -76
- package/src/components/virtualized-section-list/virtualized-section-list-class-style.test.ts +0 -60
- package/src/create-portal/create-portal.test.ts +0 -90
- package/src/create-tunnel/create-tunnel.test.ts +0 -120
- package/src/descriptor-to-angular/descriptor-outlet.test.ts +0 -94
- package/src/host-instance/host-instance.test.ts +0 -49
- package/src/modules/animated/animated-leaf-binder/animated-leaf-binder.test.ts +0 -116
- package/src/modules/animated/animated-leaf-binder.test.ts +0 -116
- package/src/modules/animated/animated-scroll-view.test.ts +0 -102
- package/src/modules/app-registry/app-registry.test.ts +0 -106
- package/src/modules/status-bar/status-bar.test.ts +0 -50
- package/src/render/render.test.ts +0 -147
- package/src/renderer/renderer.test.ts +0 -202
- package/src/services/services.test.ts +0 -163
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ImageBase } from './shared';
|
|
2
|
-
export { setImageSourceResolver } from './shared';
|
|
3
|
-
export type { IImageProps, IImageSource, IImageSourceProp, IResizeMode, IImageSize, IImageCacheStatus, } from './shared';
|
|
4
|
-
export declare class Image extends ImageBase {
|
|
5
|
-
private readonly elementRef;
|
|
6
|
-
get imageProps(): Record<string, unknown>;
|
|
7
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
2
|
-
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
3
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
4
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
5
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
6
|
-
var _, done = false;
|
|
7
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
8
|
-
var context = {};
|
|
9
|
-
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
10
|
-
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
11
|
-
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
12
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
13
|
-
if (kind === "accessor") {
|
|
14
|
-
if (result === void 0) continue;
|
|
15
|
-
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
16
|
-
if (_ = accept(result.get)) descriptor.get = _;
|
|
17
|
-
if (_ = accept(result.set)) descriptor.set = _;
|
|
18
|
-
if (_ = accept(result.init)) initializers.unshift(_);
|
|
19
|
-
}
|
|
20
|
-
else if (_ = accept(result)) {
|
|
21
|
-
if (kind === "field") initializers.unshift(_);
|
|
22
|
-
else descriptor[key] = _;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
26
|
-
done = true;
|
|
27
|
-
};
|
|
28
|
-
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
29
|
-
var useValue = arguments.length > 2;
|
|
30
|
-
for (var i = 0; i < initializers.length; i++) {
|
|
31
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
32
|
-
}
|
|
33
|
-
return useValue ? value : void 0;
|
|
34
|
-
};
|
|
35
|
-
import { CUSTOM_ELEMENTS_SCHEMA, Component, ElementRef, inject } from '@angular/core';
|
|
36
|
-
import { anchorHostStyle, ImageHost, SymbioteHostPropsDirective } from '../../primitives';
|
|
37
|
-
import { IMAGE_INPUTS, IMAGE_OUTPUTS, ImageBase, resolveImageProps } from './shared';
|
|
38
|
-
export { setImageSourceResolver } from './shared';
|
|
39
|
-
let Image = (() => {
|
|
40
|
-
let _classDecorators = [Component({
|
|
41
|
-
selector: 'Image',
|
|
42
|
-
standalone: true,
|
|
43
|
-
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
44
|
-
imports: [ImageHost, SymbioteHostPropsDirective],
|
|
45
|
-
inputs: IMAGE_INPUTS,
|
|
46
|
-
outputs: IMAGE_OUTPUTS,
|
|
47
|
-
template: `
|
|
48
|
-
<symbiote-image
|
|
49
|
-
[symbioteHostProps]="imageProps"
|
|
50
|
-
(accessibilityAction)="handleAccessibilityAction($event)"
|
|
51
|
-
(accessibilityTap)="handleAccessibilityTap($event)"
|
|
52
|
-
(magicTap)="handleMagicTap($event)"
|
|
53
|
-
(accessibilityEscape)="handleAccessibilityEscape($event)"
|
|
54
|
-
(loadStart)="handleLoadStart($event)"
|
|
55
|
-
(load)="handleLoad($event)"
|
|
56
|
-
(loadEnd)="handleLoadEnd($event)"
|
|
57
|
-
(error)="handleError($event)"
|
|
58
|
-
(progress)="handleProgress($event)"
|
|
59
|
-
(partialLoad)="handlePartialLoad($event)"
|
|
60
|
-
/>
|
|
61
|
-
`,
|
|
62
|
-
})];
|
|
63
|
-
let _classDescriptor;
|
|
64
|
-
let _classExtraInitializers = [];
|
|
65
|
-
let _classThis;
|
|
66
|
-
let _classSuper = ImageBase;
|
|
67
|
-
var Image = class extends _classSuper {
|
|
68
|
-
static { _classThis = this; }
|
|
69
|
-
static {
|
|
70
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
71
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
72
|
-
Image = _classThis = _classDescriptor.value;
|
|
73
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
74
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
75
|
-
}
|
|
76
|
-
// This component's OWN host — the non-painting anchor `class="..."` at the use site resolves
|
|
77
|
-
// onto (see anchorHostStyle's doc comment) — NOT the inner `symbiote-image` one level down.
|
|
78
|
-
elementRef = inject(ElementRef);
|
|
79
|
-
get imageProps() {
|
|
80
|
-
return resolveImageProps({
|
|
81
|
-
...this.imageInputProps,
|
|
82
|
-
style: [anchorHostStyle(this.elementRef), this.style],
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
return Image = _classThis;
|
|
87
|
-
})();
|
|
88
|
-
export { Image };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './index.ios';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ImageBase } from './shared';
|
|
2
|
-
export { setImageSourceResolver } from './shared';
|
|
3
|
-
export type { IImageProps, IImageSource, IImageSourceProp, IResizeMode, IImageSize, IImageCacheStatus, } from './shared';
|
|
4
|
-
export declare class Image extends ImageBase {
|
|
5
|
-
private readonly elementRef;
|
|
6
|
-
get imageProps(): Record<string, unknown>;
|
|
7
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
2
|
-
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
3
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
4
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
5
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
6
|
-
var _, done = false;
|
|
7
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
8
|
-
var context = {};
|
|
9
|
-
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
10
|
-
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
11
|
-
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
12
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
13
|
-
if (kind === "accessor") {
|
|
14
|
-
if (result === void 0) continue;
|
|
15
|
-
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
16
|
-
if (_ = accept(result.get)) descriptor.get = _;
|
|
17
|
-
if (_ = accept(result.set)) descriptor.set = _;
|
|
18
|
-
if (_ = accept(result.init)) initializers.unshift(_);
|
|
19
|
-
}
|
|
20
|
-
else if (_ = accept(result)) {
|
|
21
|
-
if (kind === "field") initializers.unshift(_);
|
|
22
|
-
else descriptor[key] = _;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
26
|
-
done = true;
|
|
27
|
-
};
|
|
28
|
-
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
29
|
-
var useValue = arguments.length > 2;
|
|
30
|
-
for (var i = 0; i < initializers.length; i++) {
|
|
31
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
32
|
-
}
|
|
33
|
-
return useValue ? value : void 0;
|
|
34
|
-
};
|
|
35
|
-
import { CUSTOM_ELEMENTS_SCHEMA, Component, ElementRef, inject } from '@angular/core';
|
|
36
|
-
import { anchorHostStyle, ImageHost, SymbioteHostPropsDirective } from '../../primitives';
|
|
37
|
-
import { IMAGE_INPUTS, IMAGE_OUTPUTS, ImageBase, resolveImageProps } from './shared';
|
|
38
|
-
export { setImageSourceResolver } from './shared';
|
|
39
|
-
let Image = (() => {
|
|
40
|
-
let _classDecorators = [Component({
|
|
41
|
-
selector: 'Image',
|
|
42
|
-
standalone: true,
|
|
43
|
-
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
44
|
-
imports: [ImageHost, SymbioteHostPropsDirective],
|
|
45
|
-
inputs: IMAGE_INPUTS,
|
|
46
|
-
outputs: IMAGE_OUTPUTS,
|
|
47
|
-
template: `
|
|
48
|
-
<symbiote-image
|
|
49
|
-
[symbioteHostProps]="imageProps"
|
|
50
|
-
(accessibilityAction)="handleAccessibilityAction($event)"
|
|
51
|
-
(accessibilityTap)="handleAccessibilityTap($event)"
|
|
52
|
-
(magicTap)="handleMagicTap($event)"
|
|
53
|
-
(accessibilityEscape)="handleAccessibilityEscape($event)"
|
|
54
|
-
(loadStart)="handleLoadStart($event)"
|
|
55
|
-
(load)="handleLoad($event)"
|
|
56
|
-
(loadEnd)="handleLoadEnd($event)"
|
|
57
|
-
(error)="handleError($event)"
|
|
58
|
-
(progress)="handleProgress($event)"
|
|
59
|
-
(partialLoad)="handlePartialLoad($event)"
|
|
60
|
-
/>
|
|
61
|
-
`,
|
|
62
|
-
})];
|
|
63
|
-
let _classDescriptor;
|
|
64
|
-
let _classExtraInitializers = [];
|
|
65
|
-
let _classThis;
|
|
66
|
-
let _classSuper = ImageBase;
|
|
67
|
-
var Image = class extends _classSuper {
|
|
68
|
-
static { _classThis = this; }
|
|
69
|
-
static {
|
|
70
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
71
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
72
|
-
Image = _classThis = _classDescriptor.value;
|
|
73
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
74
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
75
|
-
}
|
|
76
|
-
// This component's OWN host — the non-painting anchor `class="..."` at the use site resolves
|
|
77
|
-
// onto (see anchorHostStyle's doc comment) — NOT the inner `symbiote-image` one level down.
|
|
78
|
-
elementRef = inject(ElementRef);
|
|
79
|
-
get imageProps() {
|
|
80
|
-
return resolveImageProps({
|
|
81
|
-
...this.imageInputProps,
|
|
82
|
-
style: [anchorHostStyle(this.elementRef), this.style],
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
return Image = _classThis;
|
|
87
|
-
})();
|
|
88
|
-
export { Image };
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { type IAccessibilityProps, type IAriaProps, type IImageProps, type IImageSourceProp } from '@symbiote-native/components';
|
|
3
|
-
import { type ISymbioteEvent } from '@symbiote-native/engine';
|
|
4
|
-
export { setImageSourceResolver } from '@symbiote-native/components';
|
|
5
|
-
export type { IImageProps, IImageSource, IImageSourceProp, IResizeMode, IImageSize, IImageCacheStatus, } from '@symbiote-native/components';
|
|
6
|
-
export declare const IMAGE_INPUTS: string[];
|
|
7
|
-
export declare const IMAGE_OUTPUTS: string[];
|
|
8
|
-
export declare function resolveImageProps(input: Record<string, unknown>): Record<string, unknown>;
|
|
9
|
-
export declare abstract class ImageBase {
|
|
10
|
-
static readonly getSize: (uri: string, success?: (width: number, height: number) => void, failure?: (error: unknown) => void) => Promise<import("@symbiote-native/engine").IImageSize>;
|
|
11
|
-
static readonly getSizeWithHeaders: (uri: string, headers: Record<string, string>, success?: (width: number, height: number) => void, failure?: (error: unknown) => void) => Promise<import("@symbiote-native/engine").IImageSize>;
|
|
12
|
-
static readonly prefetch: (uri: string, callback?: (requestId: number) => void) => Promise<boolean>;
|
|
13
|
-
static readonly abortPrefetch: (requestId: number) => void;
|
|
14
|
-
static readonly queryCache: (uris: string[]) => Promise<Record<string, import("@symbiote-native/engine").IImageCacheStatus>>;
|
|
15
|
-
static readonly resolveAssetSource: (source: IImageSourceProp) => unknown;
|
|
16
|
-
source: unknown;
|
|
17
|
-
defaultSource: unknown;
|
|
18
|
-
loadingIndicatorSource: unknown;
|
|
19
|
-
style: unknown;
|
|
20
|
-
resizeMode: unknown;
|
|
21
|
-
resizeMethod: IImageProps['resizeMethod'];
|
|
22
|
-
tintColor: unknown;
|
|
23
|
-
blurRadius: number | undefined;
|
|
24
|
-
capInsets: IImageProps['capInsets'];
|
|
25
|
-
fadeDuration: number | undefined;
|
|
26
|
-
progressiveRenderingEnabled: boolean | undefined;
|
|
27
|
-
src: unknown;
|
|
28
|
-
srcSet: unknown;
|
|
29
|
-
alt: unknown;
|
|
30
|
-
width: unknown;
|
|
31
|
-
height: unknown;
|
|
32
|
-
crossOrigin: unknown;
|
|
33
|
-
referrerPolicy: unknown;
|
|
34
|
-
testID: string | undefined;
|
|
35
|
-
nativeID: string | undefined;
|
|
36
|
-
accessible: boolean | undefined;
|
|
37
|
-
accessibilityLabel: string | undefined;
|
|
38
|
-
accessibilityHint: string | undefined;
|
|
39
|
-
accessibilityRole: IAccessibilityProps['accessibilityRole'];
|
|
40
|
-
accessibilityState: IAccessibilityProps['accessibilityState'];
|
|
41
|
-
accessibilityValue: IAccessibilityProps['accessibilityValue'];
|
|
42
|
-
accessibilityActions: IAccessibilityProps['accessibilityActions'];
|
|
43
|
-
accessibilityLabelledBy: IAccessibilityProps['accessibilityLabelledBy'];
|
|
44
|
-
importantForAccessibility: IAccessibilityProps['importantForAccessibility'];
|
|
45
|
-
accessibilityLiveRegion: IAccessibilityProps['accessibilityLiveRegion'];
|
|
46
|
-
screenReaderFocusable: boolean | undefined;
|
|
47
|
-
accessibilityViewIsModal: boolean | undefined;
|
|
48
|
-
accessibilityElementsHidden: boolean | undefined;
|
|
49
|
-
accessibilityIgnoresInvertColors: boolean | undefined;
|
|
50
|
-
accessibilityLanguage: string | undefined;
|
|
51
|
-
accessibilityRespondsToUserInteraction: boolean | undefined;
|
|
52
|
-
accessibilityShowsLargeContentViewer: boolean | undefined;
|
|
53
|
-
accessibilityLargeContentTitle: string | undefined;
|
|
54
|
-
role: IAriaProps['role'];
|
|
55
|
-
ariaLabel: string | undefined;
|
|
56
|
-
ariaLabelledBy: string | undefined;
|
|
57
|
-
ariaLive: IAriaProps['aria-live'];
|
|
58
|
-
ariaHidden: boolean | undefined;
|
|
59
|
-
ariaBusy: boolean | undefined;
|
|
60
|
-
ariaChecked: IAriaProps['aria-checked'];
|
|
61
|
-
ariaDisabled: boolean | undefined;
|
|
62
|
-
ariaExpanded: boolean | undefined;
|
|
63
|
-
ariaSelected: boolean | undefined;
|
|
64
|
-
ariaModal: boolean | undefined;
|
|
65
|
-
ariaValueMax: number | undefined;
|
|
66
|
-
ariaValueMin: number | undefined;
|
|
67
|
-
ariaValueNow: number | undefined;
|
|
68
|
-
ariaValueText: string | undefined;
|
|
69
|
-
onAccessibilityAction: ((event: ISymbioteEvent) => void) | undefined;
|
|
70
|
-
onAccessibilityTap: ((event: ISymbioteEvent) => void) | undefined;
|
|
71
|
-
onMagicTap: ((event: ISymbioteEvent) => void) | undefined;
|
|
72
|
-
onAccessibilityEscape: ((event: ISymbioteEvent) => void) | undefined;
|
|
73
|
-
onLoadStart: ((event: ISymbioteEvent) => void) | undefined;
|
|
74
|
-
onLoad: ((event: ISymbioteEvent) => void) | undefined;
|
|
75
|
-
onLoadEnd: ((event: ISymbioteEvent) => void) | undefined;
|
|
76
|
-
onError: ((event: ISymbioteEvent) => void) | undefined;
|
|
77
|
-
onProgress: ((event: ISymbioteEvent) => void) | undefined;
|
|
78
|
-
onPartialLoad: ((event: ISymbioteEvent) => void) | undefined;
|
|
79
|
-
readonly accessibilityAction: EventEmitter<ISymbioteEvent>;
|
|
80
|
-
readonly accessibilityTap: EventEmitter<ISymbioteEvent>;
|
|
81
|
-
readonly magicTap: EventEmitter<ISymbioteEvent>;
|
|
82
|
-
readonly accessibilityEscape: EventEmitter<ISymbioteEvent>;
|
|
83
|
-
readonly loadStart: EventEmitter<ISymbioteEvent>;
|
|
84
|
-
readonly load: EventEmitter<ISymbioteEvent>;
|
|
85
|
-
readonly loadEnd: EventEmitter<ISymbioteEvent>;
|
|
86
|
-
readonly error: EventEmitter<ISymbioteEvent>;
|
|
87
|
-
readonly progress: EventEmitter<ISymbioteEvent>;
|
|
88
|
-
readonly partialLoad: EventEmitter<ISymbioteEvent>;
|
|
89
|
-
handleAccessibilityAction(event: Event): void;
|
|
90
|
-
handleAccessibilityTap(event: Event): void;
|
|
91
|
-
handleMagicTap(event: Event): void;
|
|
92
|
-
handleAccessibilityEscape(event: Event): void;
|
|
93
|
-
handleLoadStart(event: Event): void;
|
|
94
|
-
handleLoad(event: Event): void;
|
|
95
|
-
handleLoadEnd(event: Event): void;
|
|
96
|
-
handleError(event: Event): void;
|
|
97
|
-
handleProgress(event: Event): void;
|
|
98
|
-
handlePartialLoad(event: Event): void;
|
|
99
|
-
protected get imageInputProps(): Record<string, unknown>;
|
|
100
|
-
get imageProps(): Record<string, unknown>;
|
|
101
|
-
}
|