Skip to content

Commit 5065ff8

Browse files
committed
mejoras documentacion
1 parent 14a8ce1 commit 5065ff8

File tree

150 files changed

+110052
-109533
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+110052
-109533
lines changed

angular/components.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,31 @@ import { defineCustomElement as defineInputFaceApiWebcam } from 'av-inputs/compo
1111
import { defineCustomElement as defineInputFileFromWebcam } from 'av-inputs/components/input-file-from-webcam.js';
1212
import { defineCustomElement as defineInputScanReader } from 'av-inputs/components/input-scan-reader.js';
1313
@ProxyCmp({
14-
defineCustomElementFn: defineInputBarcode
14+
defineCustomElementFn: defineInputBarcode,
15+
inputs: ['cameraConfig', 'cameraId', 'facingMode', 'height', 'supportedFormats', 'width'],
16+
methods: ['getState', 'stop', 'start', 'getCameras']
1517
})
1618
@Component({
1719
selector: 'input-barcode',
1820
changeDetection: ChangeDetectionStrategy.OnPush,
1921
template: '<ng-content></ng-content>',
2022
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
21-
inputs: [],
23+
inputs: ['cameraConfig', 'cameraId', 'facingMode', 'height', 'supportedFormats', 'width'],
2224
})
2325
export class InputBarcode {
2426
protected el: HTMLElement;
2527
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
2628
c.detach();
2729
this.el = r.nativeElement;
30+
proxyOutputs(this, this.el, ['scan']);
2831
}
2932
}
3033

3134

32-
export declare interface InputBarcode extends Components.InputBarcode {}
35+
export declare interface InputBarcode extends Components.InputBarcode {
36+
37+
scan: EventEmitter<CustomEvent<string>>;
38+
}
3339

3440

3541
@ProxyCmp({

dist/av-inputs/app-globals-0f993ce5.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

dist/av-inputs/app-globals-0f993ce5.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/av-inputs/av-inputs.esm.js

Lines changed: 1 addition & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/av-inputs/av-inputs.esm.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)