@3dlook/wrist-photo-capture-angular 0.0.1
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 +60 -0
- package/dist/.npmignore +2 -0
- package/dist/README.md +60 -0
- package/dist/directives/angular-component-lib/utils.d.ts +9 -0
- package/dist/directives/index.d.ts +2 -0
- package/dist/directives/proxies.d.ts +31 -0
- package/dist/fesm2022/3dlook-wrist-photo-capture-angular.mjs +113 -0
- package/dist/fesm2022/3dlook-wrist-photo-capture-angular.mjs.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/package.json +34 -0
- package/dist/public-api.d.ts +2 -0
- package/package.json +35 -0
package/README.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# `@3dlook/wrist-photo-capture-angular`
|
|
2
|
+
|
|
3
|
+
Typed Angular standalone-component wrapper for
|
|
4
|
+
[`<wrist-photo-capture>`](../core), auto-generated by
|
|
5
|
+
`@stencil/angular-output-target` and packaged with `ng-packagr`. See the
|
|
6
|
+
core package's README for what the component does and its full API.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
npm install @3dlook/wrist-photo-capture-angular @3dlook/wrist-photo-capture
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
import { Component, ElementRef, ViewChild } from '@angular/core';
|
|
18
|
+
import { WristPhotoCapture } from '@3dlook/wrist-photo-capture-angular';
|
|
19
|
+
|
|
20
|
+
@Component({
|
|
21
|
+
standalone: true,
|
|
22
|
+
imports: [WristPhotoCapture],
|
|
23
|
+
template: `
|
|
24
|
+
<wrist-photo-capture
|
|
25
|
+
#capture
|
|
26
|
+
view="top"
|
|
27
|
+
hand="right"
|
|
28
|
+
viewLabel="Top view"
|
|
29
|
+
(wpcCapture)="onCapture($event)"
|
|
30
|
+
(wpcError)="onError($event)"
|
|
31
|
+
></wrist-photo-capture>
|
|
32
|
+
`,
|
|
33
|
+
})
|
|
34
|
+
export class CaptureComponent {
|
|
35
|
+
@ViewChild('capture', { read: ElementRef })
|
|
36
|
+
captureEl!: ElementRef<HTMLElement & { start(): Promise<void> }>;
|
|
37
|
+
|
|
38
|
+
start() {
|
|
39
|
+
this.captureEl.nativeElement.start();
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
onCapture(e: CustomEvent) {
|
|
43
|
+
const { blob, meta } = e.detail;
|
|
44
|
+
// upload/preview `blob`
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
onError(e: CustomEvent) {
|
|
48
|
+
console.error(e.detail);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Imperative methods (`start()`, `capture()`, `switchCamera()`, `reset()`)
|
|
54
|
+
live on the underlying custom element — read it via `ElementRef`, not the
|
|
55
|
+
Angular wrapper instance.
|
|
56
|
+
|
|
57
|
+
Built with Ivy partial compilation (`ng-packagr`) — verify with a real
|
|
58
|
+
`ng build` (strict AOT) before relying on this in a production Angular
|
|
59
|
+
app; see the distribution testing plan for the Safari attribute/property
|
|
60
|
+
binding check.
|
package/dist/.npmignore
ADDED
package/dist/README.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# `@3dlook/wrist-photo-capture-angular`
|
|
2
|
+
|
|
3
|
+
Typed Angular standalone-component wrapper for
|
|
4
|
+
[`<wrist-photo-capture>`](../core), auto-generated by
|
|
5
|
+
`@stencil/angular-output-target` and packaged with `ng-packagr`. See the
|
|
6
|
+
core package's README for what the component does and its full API.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
npm install @3dlook/wrist-photo-capture-angular @3dlook/wrist-photo-capture
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
import { Component, ElementRef, ViewChild } from '@angular/core';
|
|
18
|
+
import { WristPhotoCapture } from '@3dlook/wrist-photo-capture-angular';
|
|
19
|
+
|
|
20
|
+
@Component({
|
|
21
|
+
standalone: true,
|
|
22
|
+
imports: [WristPhotoCapture],
|
|
23
|
+
template: `
|
|
24
|
+
<wrist-photo-capture
|
|
25
|
+
#capture
|
|
26
|
+
view="top"
|
|
27
|
+
hand="right"
|
|
28
|
+
viewLabel="Top view"
|
|
29
|
+
(wpcCapture)="onCapture($event)"
|
|
30
|
+
(wpcError)="onError($event)"
|
|
31
|
+
></wrist-photo-capture>
|
|
32
|
+
`,
|
|
33
|
+
})
|
|
34
|
+
export class CaptureComponent {
|
|
35
|
+
@ViewChild('capture', { read: ElementRef })
|
|
36
|
+
captureEl!: ElementRef<HTMLElement & { start(): Promise<void> }>;
|
|
37
|
+
|
|
38
|
+
start() {
|
|
39
|
+
this.captureEl.nativeElement.start();
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
onCapture(e: CustomEvent) {
|
|
43
|
+
const { blob, meta } = e.detail;
|
|
44
|
+
// upload/preview `blob`
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
onError(e: CustomEvent) {
|
|
48
|
+
console.error(e.detail);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Imperative methods (`start()`, `capture()`, `switchCamera()`, `reset()`)
|
|
54
|
+
live on the underlying custom element — read it via `ElementRef`, not the
|
|
55
|
+
Angular wrapper instance.
|
|
56
|
+
|
|
57
|
+
Built with Ivy partial compilation (`ng-packagr`) — verify with a real
|
|
58
|
+
`ng build` (strict AOT) before relying on this in a production Angular
|
|
59
|
+
app; see the distribution testing plan for the Safari attribute/property
|
|
60
|
+
binding check.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const proxyInputs: (Cmp: any, inputs: string[]) => void;
|
|
2
|
+
export declare const proxyMethods: (Cmp: any, methods: string[]) => void;
|
|
3
|
+
export declare const proxyOutputs: (instance: any, el: any, events: string[]) => void;
|
|
4
|
+
export declare const defineCustomElement: (tagName: string, customElement: any) => void;
|
|
5
|
+
export declare function ProxyCmp(opts: {
|
|
6
|
+
defineCustomElementFn?: () => void;
|
|
7
|
+
inputs?: any;
|
|
8
|
+
methods?: any;
|
|
9
|
+
}): (cls: any) => any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone } from '@angular/core';
|
|
2
|
+
import type { Components } from '@3dlook/wrist-photo-capture/dist/components';
|
|
3
|
+
import type { WristPhotoCaptureCustomEvent } from '@3dlook/wrist-photo-capture/dist/components';
|
|
4
|
+
import type { WpcCaptureDetail as IWristPhotoCaptureWpcCaptureDetail } from '@3dlook/wrist-photo-capture/dist/components';
|
|
5
|
+
import type { WpcOrientationChangeDetail as IWristPhotoCaptureWpcOrientationChangeDetail } from '@3dlook/wrist-photo-capture/dist/components';
|
|
6
|
+
import type { WpcErrorDetail as IWristPhotoCaptureWpcErrorDetail } from '@3dlook/wrist-photo-capture/dist/components';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class WristPhotoCapture {
|
|
9
|
+
protected z: NgZone;
|
|
10
|
+
protected el: HTMLWristPhotoCaptureElement;
|
|
11
|
+
wpcCapture: EventEmitter<WristPhotoCaptureCustomEvent<IWristPhotoCaptureWpcCaptureDetail>>;
|
|
12
|
+
wpcOrientationChange: EventEmitter<WristPhotoCaptureCustomEvent<IWristPhotoCaptureWpcOrientationChangeDetail>>;
|
|
13
|
+
wpcError: EventEmitter<WristPhotoCaptureCustomEvent<IWristPhotoCaptureWpcErrorDetail>>;
|
|
14
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WristPhotoCapture, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WristPhotoCapture, "wrist-photo-capture", never, { "captureMode": { "alias": "captureMode"; "required": false; }; "facing": { "alias": "facing"; "required": false; }; "hand": { "alias": "hand"; "required": false; }; "view": { "alias": "view"; "required": false; }; "viewLabel": { "alias": "viewLabel"; "required": false; }; }, { "wpcCapture": "wpcCapture"; "wpcOrientationChange": "wpcOrientationChange"; "wpcError": "wpcError"; }, never, ["*"], true, never>;
|
|
17
|
+
}
|
|
18
|
+
export declare interface WristPhotoCapture extends Components.WristPhotoCapture {
|
|
19
|
+
/**
|
|
20
|
+
* Fires after a successful `capture()`, with the photo and its metadata.
|
|
21
|
+
*/
|
|
22
|
+
wpcCapture: EventEmitter<WristPhotoCaptureCustomEvent<IWristPhotoCaptureWpcCaptureDetail>>;
|
|
23
|
+
/**
|
|
24
|
+
* Fires on every device-orientation update, with the raw tilt angles.
|
|
25
|
+
*/
|
|
26
|
+
wpcOrientationChange: EventEmitter<WristPhotoCaptureCustomEvent<IWristPhotoCaptureWpcOrientationChangeDetail>>;
|
|
27
|
+
/**
|
|
28
|
+
* Fires when camera access, capture, or a method call fails.
|
|
29
|
+
*/
|
|
30
|
+
wpcError: EventEmitter<WristPhotoCaptureCustomEvent<IWristPhotoCaptureWpcErrorDetail>>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { __decorate } from 'tslib';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { EventEmitter, Output, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
|
+
import { fromEvent } from 'rxjs';
|
|
5
|
+
import { defineCustomElement as defineCustomElement$1 } from '@3dlook/wrist-photo-capture/dist/components/wrist-photo-capture.js';
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
const proxyInputs = (Cmp, inputs) => {
|
|
10
|
+
const Prototype = Cmp.prototype;
|
|
11
|
+
inputs.forEach((item) => {
|
|
12
|
+
Object.defineProperty(Prototype, item, {
|
|
13
|
+
get() {
|
|
14
|
+
return this.el[item];
|
|
15
|
+
},
|
|
16
|
+
set(val) {
|
|
17
|
+
this.z.runOutsideAngular(() => (this.el[item] = val));
|
|
18
|
+
},
|
|
19
|
+
/**
|
|
20
|
+
* In the event that proxyInputs is called
|
|
21
|
+
* multiple times re-defining these inputs
|
|
22
|
+
* will cause an error to be thrown. As a result
|
|
23
|
+
* we set configurable: true to indicate these
|
|
24
|
+
* properties can be changed.
|
|
25
|
+
*/
|
|
26
|
+
configurable: true,
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
const proxyMethods = (Cmp, methods) => {
|
|
31
|
+
const Prototype = Cmp.prototype;
|
|
32
|
+
methods.forEach((methodName) => {
|
|
33
|
+
Prototype[methodName] = function () {
|
|
34
|
+
const args = arguments;
|
|
35
|
+
return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));
|
|
36
|
+
};
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
const proxyOutputs = (instance, el, events) => {
|
|
40
|
+
events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName)));
|
|
41
|
+
};
|
|
42
|
+
const defineCustomElement = (tagName, customElement) => {
|
|
43
|
+
if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {
|
|
44
|
+
customElements.define(tagName, customElement);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
// tslint:disable-next-line: only-arrow-functions
|
|
48
|
+
function ProxyCmp(opts) {
|
|
49
|
+
const decorator = function (cls) {
|
|
50
|
+
const { defineCustomElementFn, inputs, methods } = opts;
|
|
51
|
+
if (defineCustomElementFn !== undefined) {
|
|
52
|
+
defineCustomElementFn();
|
|
53
|
+
}
|
|
54
|
+
if (inputs) {
|
|
55
|
+
proxyInputs(cls, inputs);
|
|
56
|
+
}
|
|
57
|
+
if (methods) {
|
|
58
|
+
proxyMethods(cls, methods);
|
|
59
|
+
}
|
|
60
|
+
return cls;
|
|
61
|
+
};
|
|
62
|
+
return decorator;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
let WristPhotoCapture = class WristPhotoCapture {
|
|
66
|
+
z;
|
|
67
|
+
el;
|
|
68
|
+
wpcCapture = new EventEmitter();
|
|
69
|
+
wpcOrientationChange = new EventEmitter();
|
|
70
|
+
wpcError = new EventEmitter();
|
|
71
|
+
constructor(c, r, z) {
|
|
72
|
+
this.z = z;
|
|
73
|
+
c.detach();
|
|
74
|
+
this.el = r.nativeElement;
|
|
75
|
+
}
|
|
76
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WristPhotoCapture, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
77
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: WristPhotoCapture, isStandalone: true, selector: "wrist-photo-capture", inputs: { captureMode: "captureMode", facing: "facing", hand: "hand", view: "view", viewLabel: "viewLabel" }, outputs: { wpcCapture: "wpcCapture", wpcOrientationChange: "wpcOrientationChange", wpcError: "wpcError" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
78
|
+
};
|
|
79
|
+
WristPhotoCapture = __decorate([
|
|
80
|
+
ProxyCmp({
|
|
81
|
+
defineCustomElementFn: defineCustomElement$1,
|
|
82
|
+
inputs: ['captureMode', 'facing', 'hand', 'view', 'viewLabel'],
|
|
83
|
+
methods: ['start', 'capture', 'switchCamera', 'reset']
|
|
84
|
+
})
|
|
85
|
+
], WristPhotoCapture);
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WristPhotoCapture, decorators: [{
|
|
87
|
+
type: Component,
|
|
88
|
+
args: [{
|
|
89
|
+
selector: 'wrist-photo-capture',
|
|
90
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
91
|
+
template: '<ng-content></ng-content>',
|
|
92
|
+
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
93
|
+
inputs: ['captureMode', 'facing', 'hand', 'view', 'viewLabel'],
|
|
94
|
+
outputs: ['wpcCapture', 'wpcOrientationChange', 'wpcError'],
|
|
95
|
+
}]
|
|
96
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { wpcCapture: [{
|
|
97
|
+
type: Output
|
|
98
|
+
}], wpcOrientationChange: [{
|
|
99
|
+
type: Output
|
|
100
|
+
}], wpcError: [{
|
|
101
|
+
type: Output
|
|
102
|
+
}] } });
|
|
103
|
+
|
|
104
|
+
const DIRECTIVES = [
|
|
105
|
+
WristPhotoCapture
|
|
106
|
+
];
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Generated bundle index. Do not edit.
|
|
110
|
+
*/
|
|
111
|
+
|
|
112
|
+
export { DIRECTIVES, WristPhotoCapture };
|
|
113
|
+
//# sourceMappingURL=3dlook-wrist-photo-capture-angular.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"3dlook-wrist-photo-capture-angular.mjs","sources":["../../src/directives/angular-component-lib/utils.ts","../../src/directives/proxies.ts","../../src/directives/index.ts","../../src/3dlook-wrist-photo-capture-angular.ts"],"sourcesContent":["/* eslint-disable */\n/* tslint:disable */\nimport { fromEvent } from 'rxjs';\n\nexport const proxyInputs = (Cmp: any, inputs: string[]) => {\n const Prototype = Cmp.prototype;\n inputs.forEach((item) => {\n Object.defineProperty(Prototype, item, {\n get() {\n return this.el[item];\n },\n set(val: any) {\n this.z.runOutsideAngular(() => (this.el[item] = val));\n },\n /**\n * In the event that proxyInputs is called\n * multiple times re-defining these inputs\n * will cause an error to be thrown. As a result\n * we set configurable: true to indicate these\n * properties can be changed.\n */\n configurable: true,\n });\n });\n};\n\nexport const proxyMethods = (Cmp: any, methods: string[]) => {\n const Prototype = Cmp.prototype;\n methods.forEach((methodName) => {\n Prototype[methodName] = function () {\n const args = arguments;\n return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));\n };\n });\n};\n\nexport const proxyOutputs = (instance: any, el: any, events: string[]) => {\n events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName)));\n};\n\nexport const defineCustomElement = (tagName: string, customElement: any) => {\n if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {\n customElements.define(tagName, customElement);\n }\n};\n\n// tslint:disable-next-line: only-arrow-functions\nexport function ProxyCmp(opts: { defineCustomElementFn?: () => void; inputs?: any; methods?: any }) {\n const decorator = function (cls: any) {\n const { defineCustomElementFn, inputs, methods } = opts;\n\n if (defineCustomElementFn !== undefined) {\n defineCustomElementFn();\n }\n\n if (inputs) {\n proxyInputs(cls, inputs);\n }\n if (methods) {\n proxyMethods(cls, methods);\n }\n return cls;\n };\n return decorator;\n}\n","/* tslint:disable */\n/* auto-generated angular directive proxies */\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, Output, NgZone } from '@angular/core';\n\nimport { ProxyCmp } from './angular-component-lib/utils';\n\nimport type { Components } from '@3dlook/wrist-photo-capture/dist/components';\n\nimport { defineCustomElement as defineWristPhotoCapture } from '@3dlook/wrist-photo-capture/dist/components/wrist-photo-capture.js';\n@ProxyCmp({\n defineCustomElementFn: defineWristPhotoCapture,\n inputs: ['captureMode', 'facing', 'hand', 'view', 'viewLabel'],\n methods: ['start', 'capture', 'switchCamera', 'reset']\n})\n@Component({\n selector: 'wrist-photo-capture',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['captureMode', 'facing', 'hand', 'view', 'viewLabel'],\n outputs: ['wpcCapture', 'wpcOrientationChange', 'wpcError'],\n})\nexport class WristPhotoCapture {\n protected el: HTMLWristPhotoCaptureElement;\n @Output() wpcCapture = new EventEmitter<WristPhotoCaptureCustomEvent<IWristPhotoCaptureWpcCaptureDetail>>();\n @Output() wpcOrientationChange = new EventEmitter<WristPhotoCaptureCustomEvent<IWristPhotoCaptureWpcOrientationChangeDetail>>();\n @Output() wpcError = new EventEmitter<WristPhotoCaptureCustomEvent<IWristPhotoCaptureWpcErrorDetail>>();\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n }\n}\n\n\nimport type { WristPhotoCaptureCustomEvent } from '@3dlook/wrist-photo-capture/dist/components';\nimport type { WpcCaptureDetail as IWristPhotoCaptureWpcCaptureDetail } from '@3dlook/wrist-photo-capture/dist/components';\nimport type { WpcOrientationChangeDetail as IWristPhotoCaptureWpcOrientationChangeDetail } from '@3dlook/wrist-photo-capture/dist/components';\nimport type { WpcErrorDetail as IWristPhotoCaptureWpcErrorDetail } from '@3dlook/wrist-photo-capture/dist/components';\n\nexport declare interface WristPhotoCapture extends Components.WristPhotoCapture {\n /**\n * Fires after a successful `capture()`, with the photo and its metadata.\n */\n wpcCapture: EventEmitter<WristPhotoCaptureCustomEvent<IWristPhotoCaptureWpcCaptureDetail>>;\n /**\n * Fires on every device-orientation update, with the raw tilt angles.\n */\n wpcOrientationChange: EventEmitter<WristPhotoCaptureCustomEvent<IWristPhotoCaptureWpcOrientationChangeDetail>>;\n /**\n * Fires when camera access, capture, or a method call fails.\n */\n wpcError: EventEmitter<WristPhotoCaptureCustomEvent<IWristPhotoCaptureWpcErrorDetail>>;\n}\n\n\n","\nimport * as d from './proxies';\n\nexport const DIRECTIVES = [\n d.WristPhotoCapture\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["defineWristPhotoCapture","d.WristPhotoCapture"],"mappings":";;;;;;AAAA;AACA;AAGO,MAAM,WAAW,GAAG,CAAC,GAAQ,EAAE,MAAgB,KAAI;AACxD,IAAA,MAAM,SAAS,GAAG,GAAG,CAAC,SAAS;AAC/B,IAAA,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,KA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,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,iBAAiB,wSALlB,2BAA2B,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;AAK1B,iBAAiB,GAAA,UAAA,CAAA;AAb7B,IAAA,QAAQ,CAAC;AACR,QAAA,qBAAqB,EAAEA,qBAAuB;QAC9C,MAAM,EAAE,CAAC,aAAa,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC;QAC9D,OAAO,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO;KACtD;AASY,CAAA,EAAA,iBAAiB,CAS7B;4FATY,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAR7B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,qBAAqB;oBAC/B,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,QAAQ,EAAE,2BAA2B;;oBAErC,MAAM,EAAE,CAAC,aAAa,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC;AAC9D,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,sBAAsB,EAAE,UAAU,CAAC;AAC5D,iBAAA;oIAGW,UAAU,EAAA,CAAA;sBAAnB;gBACS,oBAAoB,EAAA,CAAA;sBAA7B;gBACS,QAAQ,EAAA,CAAA;sBAAjB;;;ACvBI,MAAM,UAAU,GAAG;AACxB,IAAAC;;;ACJF;;AAEG;;"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@3dlook/wrist-photo-capture-angular",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Angular wrapper for the wrist-photo-capture Web Component SDK",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "fesm2022/3dlook-wrist-photo-capture-angular.mjs",
|
|
7
|
+
"typings": "index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/3dlook-me/wrist-photo-capture.git"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist/"
|
|
15
|
+
],
|
|
16
|
+
"peerDependencies": {
|
|
17
|
+
"@angular/core": "^19.0.0",
|
|
18
|
+
"rxjs": "^7.0.0"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@3dlook/wrist-photo-capture": "workspace:*",
|
|
22
|
+
"tslib": "^2.8.1"
|
|
23
|
+
},
|
|
24
|
+
"license": "ISC",
|
|
25
|
+
"exports": {
|
|
26
|
+
"./package.json": {
|
|
27
|
+
"default": "./package.json"
|
|
28
|
+
},
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./index.d.ts",
|
|
31
|
+
"default": "./fesm2022/3dlook-wrist-photo-capture-angular.mjs"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@3dlook/wrist-photo-capture-angular",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Angular wrapper for the wrist-photo-capture Web Component SDK",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "dist/fesm2022/3dlook-wrist-photo-capture-angular.mjs",
|
|
7
|
+
"typings": "dist/index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/3dlook-me/wrist-photo-capture.git"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist/"
|
|
15
|
+
],
|
|
16
|
+
"peerDependencies": {
|
|
17
|
+
"@angular/core": "^19.0.0",
|
|
18
|
+
"rxjs": "^7.0.0"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@3dlook/wrist-photo-capture": "0.0.1",
|
|
22
|
+
"tslib": "^2.8.1"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@angular/compiler-cli": "^19.2.25",
|
|
26
|
+
"@angular/core": "^19.0.0",
|
|
27
|
+
"ng-packagr": "^19.2.2",
|
|
28
|
+
"rxjs": "^7.0.0",
|
|
29
|
+
"typescript": "~5.8.3"
|
|
30
|
+
},
|
|
31
|
+
"license": "ISC",
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "ng-packagr -p ng-package.json"
|
|
34
|
+
}
|
|
35
|
+
}
|