forked from HTMLElements/smart-webcomponents-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmart.barcode.d.ts
84 lines (84 loc) · 4.02 KB
/
smart.barcode.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import { Barcode } from './../index';
import { BarcodeLabelPosition, BarcodeRenderAs, BarcodeType } from './../index';
import { AfterViewInit, ElementRef, OnInit, OnChanges, OnDestroy, SimpleChanges, EventEmitter } from '@angular/core';
import { BaseElement } from './smart.element';
export { BarcodeLabelPosition, BarcodeRenderAs, BarcodeType, ElementRenderMode } from './../index';
export { Smart } from './smart.element';
export { Barcode } from './../index';
export declare class BarcodeComponent extends BaseElement implements OnInit, AfterViewInit, OnDestroy, OnChanges {
constructor(ref: ElementRef<Barcode>);
private eventHandlers;
nativeElement: Barcode;
/** @description Creates the component on demand.
* @param properties An optional object of properties, which will be added to the template binded ones.
*/
createComponent(properties?: {}): any;
/** @description Sets the background color of the barcode element. */
backgroundColor: string;
/** @description Sets whether the barcode label is visible. */
displayLabel: boolean;
/** @description Sets the color of the barcode label. */
labelColor: string;
/** @description Sets the font family of the barcode label. */
labelFont: string;
/** @description Sets the font size of the barcode label. */
labelFontSize: number;
/** @description Sets the bottom margin of the barcode label. */
labelMarginBottom: number;
/** @description Sets the top margin of the barcode label. */
labelMarginTop: number;
/** @description Sets the position of the barcode label. */
labelPosition: BarcodeLabelPosition | string;
/** @description Sets the color of the barcode lines. */
lineColor: string;
/** @description Sets the height of the barcode line. */
lineHeight: number;
/** @description Sets the width of the barcode line. */
lineWidth: number;
/** @description Sets the rendering mode of the barcode. */
renderAs: BarcodeRenderAs | string;
/** @description Sets the barcode type */
type: BarcodeType | string;
/** @description Sets or gets the value of the barcode. */
value: string;
/** @description Sets or gets the width of the barcode. If the width is set to 0, the width of the barcode is calculated automatically. */
width: number;
/** @description Sets or gets the height of the barcode. If the height is set to 0, the height of the barcode is calculated automatically. */
height: number;
/** @description This event is triggered when the value of the barcode is invalid.
* @param event. The custom event. Custom event was created with: event.detail( invalidCharacters, lengthValidity, patternValidity, value)
* invalidCharacters - An array indicating the invalid characters.
* lengthValidity - A boolean indicating the length validity.
* patternValidity - A boolean indicating the pattern validity.
* value - the invalid value of the barcode.
*/
onInvalid: EventEmitter<CustomEvent>;
/** @description Exports the barcode.
* @param {string} format. The format of the exported file - svg, png, jpg
* @param {string} fileName?. The name of the exported file
*/
export(format: string, fileName?: string): void;
/** @description Gets the base64 string of the barcode
* @param {string} format. The dataURL format of the string - svg, png, jpg
* @returns {string}
*/
getDataURL(format: any): Promise<any>;
/** @description Gets the base64 string of the barcode
* @param {string} format. The dataURL format of the string - svg, png, jpg
* @returns {any}
*/
getDataURLAsync(format: any): Promise<any>;
/** @description Gets the validity of the barcode
* @returns {boolean}
*/
isValid(): Promise<any>;
readonly isRendered: boolean;
ngOnInit(): void;
ngAfterViewInit(): void;
ngOnDestroy(): void;
ngOnChanges(changes: SimpleChanges): void;
/** @description Add event listeners. */
private listen;
/** @description Remove event listeners. */
private unlisten;
}