smart-webcomponents-angular
Version:
[](https://jqwidgets.com/license/)
1 lines • 29.7 kB
Source Map (JSON)
{"version":3,"file":"smart-webcomponents-angular-barcode.mjs","sources":["../../barcode/src/smart.element.ts","../../barcode/src/smart.barcode.ts","../../barcode/src/smart.barcode.module.ts","../../barcode/src/smart-webcomponents-angular-barcode.ts"],"sourcesContent":["\ndeclare global {\n interface Window {\n Smart: any;\n}\n}\n\n\nimport { Directive, ElementRef, Input, Output, EventEmitter } from '@angular/core';\nimport { ElementRenderMode } from './../index';\n\n@Directive()\nexport class BaseElement {\n constructor(ref: ElementRef) {\n const that = this;\n this.nativeElement = ref.nativeElement as any;\n\n that.nativeElement.onAttached = () => {\n that.onAttach.emit(that.nativeElement);\n }\n\n that.nativeElement.onDetached = () => {\n that.onDetach.emit(that.nativeElement);\n }\n }\n\n @Output() onCreate: EventEmitter<any> = new EventEmitter();\n @Output() onReady: EventEmitter<any> = new EventEmitter();\n @Output() onAttach: EventEmitter<any> = new EventEmitter();\n @Output() onDetach: EventEmitter<any> = new EventEmitter();\n\n public nativeElement: any;\n\n public addEventListener(type: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions = false): void {\n this.nativeElement.addEventListener(type, listener, options);\n\t}\n\n\tpublic removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions = false): void {\n\t\tthis.nativeElement.removeEventListener(type, listener, options);\n\t}\n\n\tpublic dispatchEvent(event: Event): boolean {\n\t\treturn this.nativeElement.dispatchEvent(event);\n\t}\n\n\tpublic blur(): void {\n\t\tthis.nativeElement.blur();\n\t}\n\n\tpublic click(): void {\n\t\tthis.nativeElement.click();\n\t}\n\n\tpublic focus(options?: FocusOptions): void {\n\t\tthis.nativeElement.focus(options);\n\t}\n\n/** @description Sets or gets the license. */\n\t@Input()\n\tget license(): string {\n\t\treturn this.nativeElement ? this.nativeElement.license : undefined;\n\t}\n\tset license(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.license = value : undefined;\n\t}\n\t\n/** @description Sets or gets the language. Used in conjunction with the property messages. */\n\t@Input()\n\tget locale(): string {\n\t\treturn this.nativeElement ? this.nativeElement.locale : undefined;\n\t}\n\tset locale(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.locale = value : undefined;\n\t}\n\n\t/** @description Callback used to customize the format of the messages that are returned from the Localization Module. */\n\t@Input()\n\tget localizeFormatFunction(): any {\n\t\treturn this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;\n\t}\n\tset localizeFormatFunction(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;\n\t}\n\n\t/** @description Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. */\n\t@Input()\n\tget messages(): any {\n\t\treturn this.nativeElement ? this.nativeElement.messages : undefined;\n\t}\n\tset messages(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.messages = value : undefined;\n\t}\n\n\t/** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */\n\t@Input()\n\tget rightToLeft(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.rightToLeft : undefined;\n\t}\n\tset rightToLeft(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.rightToLeft = value : undefined;\n\t}\n\n\t/** @description Determines the theme. Theme defines the look of the element */\n\t@Input()\n\tget theme(): string {\n\t\treturn this.nativeElement ? this.nativeElement.theme : undefined;\n\t}\n\tset theme(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.theme = value : undefined;\n\t}\n}\n\nlet Smart: any;\nif (typeof window !== \"undefined\") {\n\tSmart = window.Smart;\n}\nexport { Smart };\n\n","import { Barcode } from './../index';\nimport { BarcodeLabelPosition, BarcodeRenderAs, BarcodeType, ElementRenderMode} from './../index';\nimport { Component, Directive, AfterViewInit, ElementRef, Input, OnInit, OnChanges, OnDestroy, SimpleChanges, Output, EventEmitter } from '@angular/core';\nimport { BaseElement, Smart } from './smart.element';\nexport { BarcodeLabelPosition, BarcodeRenderAs, BarcodeType, ElementRenderMode} from './../index';\nexport { Smart } from './smart.element';\nexport { Barcode } from './../index';\n\n\n@Directive({\n\texportAs: 'smart-barcode',\tselector: 'smart-barcode, [smart-barcode]'\n})\n\nexport class BarcodeComponent extends BaseElement implements OnInit, AfterViewInit, OnDestroy, OnChanges {\n\tconstructor(ref: ElementRef<Barcode>) {\n\t\tsuper(ref);\n\t\tthis.nativeElement = ref.nativeElement as Barcode;\n\t}\n\n\tprivate eventHandlers: any[] = [];\n\n\tpublic declare nativeElement: Barcode;\n\t/** @description Creates the component on demand.\n\t * @param properties An optional object of properties, which will be added to the template binded ones.\n\t */\n\tpublic createComponent(properties = {}): any {\n \tthis.nativeElement = <Barcode>document.createElement('smart-barcode');\n\t\tfor (let propertyName in properties) { \n \t\t\tthis.nativeElement[propertyName] = properties[propertyName];\n\t\t}\n\t\treturn this.nativeElement;\n\t}\n\t/** @description Defines the background color that appears behind the barcode element. This setting determines the color fill for the area surrounding and underneath the barcode, helping to improve contrast and overall barcode visibility. Accepts color values in standard CSS formats (e.g., hex, RGB, or color names). */\n\t@Input()\n\tget backgroundColor(): string {\n\t\treturn this.nativeElement ? this.nativeElement.backgroundColor : undefined;\n\t}\n\tset backgroundColor(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.backgroundColor = value : undefined;\n\t}\n\n\t/** @description Determines whether the barcode label is displayed on the interface. When set to true, the barcode label will be visible; when set to false, the label will be hidden. */\n\t@Input()\n\tget displayLabel(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.displayLabel : undefined;\n\t}\n\tset displayLabel(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.displayLabel = value : undefined;\n\t}\n\n\t/** @description Specifies the color used for the text label displayed below or alongside the barcode. This color determines how the label appears to users and can be set using standard color values, such as hex codes (e.g., #000000 for black) or color names (e.g., \"red\"). */\n\t@Input()\n\tget labelColor(): string {\n\t\treturn this.nativeElement ? this.nativeElement.labelColor : undefined;\n\t}\n\tset labelColor(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.labelColor = value : undefined;\n\t}\n\n\t/** @description Specifies the font family to be used for displaying the text on the barcode label. This determines the appearance of the label's text by applying the selected font style. */\n\t@Input()\n\tget labelFont(): string {\n\t\treturn this.nativeElement ? this.nativeElement.labelFont : undefined;\n\t}\n\tset labelFont(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.labelFont = value : undefined;\n\t}\n\n\t/** @description Specifies the font size used for the text displayed on the barcode label, allowing you to control the readability and appearance of the label’s text. Accepts standard CSS font size units such as px, em, rem, or pt. */\n\t@Input()\n\tget labelFontSize(): number {\n\t\treturn this.nativeElement ? this.nativeElement.labelFontSize : undefined;\n\t}\n\tset labelFontSize(value: number) {\n\t\tthis.nativeElement ? this.nativeElement.labelFontSize = value : undefined;\n\t}\n\n\t/** @description Specifies the amount of space, in pixels or other units, to be applied as the margin below the barcode label. This determines the distance between the bottom edge of the barcode label and any content or elements directly beneath it. */\n\t@Input()\n\tget labelMarginBottom(): number {\n\t\treturn this.nativeElement ? this.nativeElement.labelMarginBottom : undefined;\n\t}\n\tset labelMarginBottom(value: number) {\n\t\tthis.nativeElement ? this.nativeElement.labelMarginBottom = value : undefined;\n\t}\n\n\t/** @description Specifies the amount of space added to the top of the barcode label by setting the top margin. This determines how far the label is positioned from the top edge of its container or surrounding elements. Accepts values in units such as pixels (px), em, or percentages (%). */\n\t@Input()\n\tget labelMarginTop(): number {\n\t\treturn this.nativeElement ? this.nativeElement.labelMarginTop : undefined;\n\t}\n\tset labelMarginTop(value: number) {\n\t\tthis.nativeElement ? this.nativeElement.labelMarginTop = value : undefined;\n\t}\n\n\t/** @description Specifies the exact placement of the barcode label relative to the barcode image, allowing you to control where the label appears (e.g., above, below, left, or right of the barcode). This property ensures the label is positioned according to your layout requirements. */\n\t@Input()\n\tget labelPosition(): BarcodeLabelPosition | string {\n\t\treturn this.nativeElement ? this.nativeElement.labelPosition : undefined;\n\t}\n\tset labelPosition(value: BarcodeLabelPosition | string) {\n\t\tthis.nativeElement ? this.nativeElement.labelPosition = value : undefined;\n\t}\n\n\t/** @description Specifies the color to be used for the barcode lines or bars, allowing you to customize the appearance of the barcode by changing its foreground color. This setting does not affect the background color of the barcode. Use a valid color value (e.g., HEX, RGB, or color name) as supported by your implementation. */\n\t@Input()\n\tget lineColor(): string {\n\t\treturn this.nativeElement ? this.nativeElement.lineColor : undefined;\n\t}\n\tset lineColor(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.lineColor = value : undefined;\n\t}\n\n\t/** @description Specifies the height, in pixels, of each individual barcode line. Increasing this value will make the barcode lines taller, while decreasing it will reduce their height. This property is useful for adjusting the overall visibility and scannability of the barcode. */\n\t@Input()\n\tget lineHeight(): number {\n\t\treturn this.nativeElement ? this.nativeElement.lineHeight : undefined;\n\t}\n\tset lineHeight(value: number) {\n\t\tthis.nativeElement ? this.nativeElement.lineHeight = value : undefined;\n\t}\n\n\t/** @description Specifies the thickness of each individual bar in the barcode, allowing you to control how wide the printed barcode lines appear. Adjusting this value can help improve barcode readability for different scanners and printing methods. */\n\t@Input()\n\tget lineWidth(): number {\n\t\treturn this.nativeElement ? this.nativeElement.lineWidth : undefined;\n\t}\n\tset lineWidth(value: number) {\n\t\tthis.nativeElement ? this.nativeElement.lineWidth = value : undefined;\n\t}\n\n\t/** @description Specifies the rendering mode used to display the barcode, determining whether it is generated as a vector graphic (such as SVG), a raster image (such as PNG), or using another supported format. This setting affects the appearance, scalability, and performance of the rendered barcode. */\n\t@Input()\n\tget renderAs(): BarcodeRenderAs | string {\n\t\treturn this.nativeElement ? this.nativeElement.renderAs : undefined;\n\t}\n\tset renderAs(value: BarcodeRenderAs | string) {\n\t\tthis.nativeElement ? this.nativeElement.renderAs = value : undefined;\n\t}\n\n\t/** @description Specifies the format or symbology of the barcode to be generated (e.g., Code128, QR Code, EAN-13, UPC-A). This determines how the data will be encoded and displayed within the barcode. */\n\t@Input()\n\tget type(): BarcodeType | string {\n\t\treturn this.nativeElement ? this.nativeElement.type : undefined;\n\t}\n\tset type(value: BarcodeType | string) {\n\t\tthis.nativeElement ? this.nativeElement.type = value : undefined;\n\t}\n\n\t/** @description Retrieves the current value of the barcode or updates it with a new value. This property allows you to access the existing barcode data or assign a new barcode value programmatically. */\n\t@Input()\n\tget value(): string {\n\t\treturn this.nativeElement ? this.nativeElement.value : undefined;\n\t}\n\tset value(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.value = value : undefined;\n\t}\n\n\t/** @description Specifies or retrieves the width of the barcode in pixels. If the width is set to 0, the barcode’s width will be automatically calculated based on its content and type. Use this property to define a fixed width for the barcode, or set it to 0 to allow automatic sizing for optimal readability. */\n\t@Input()\n\tget width(): number {\n\t\treturn this.nativeElement ? this.nativeElement.width : undefined;\n\t}\n\tset width(value: number) {\n\t\tthis.nativeElement ? this.nativeElement.width = value : undefined;\n\t}\n\n\t/** @description Defines or retrieves the height of the barcode, in pixels. When a value of 0 is assigned, the barcode's height will be determined automatically based on its content and format, ensuring optimal sizing without manual specification. If a positive value is provided, the barcode will be rendered at that exact height. */\n\t@Input()\n\tget height(): number {\n\t\treturn this.nativeElement ? this.nativeElement.height : undefined;\n\t}\n\tset height(value: number) {\n\t\tthis.nativeElement ? this.nativeElement.height = value : undefined;\n\t}\n\n\t/** @description This event is triggered whenever the scanned or entered barcode value does not meet the required validation criteria. It typically occurs when the barcode is missing, formatted incorrectly, or contains unsupported characters, allowing you to handle validation errors and provide appropriate feedback to the user.\n\t* @param event. The custom event. \tCustom event was created with: event.detail(\tinvalidCharacters, \tlengthValidity, \tpatternValidity, \tvalue)\n\t* invalidCharacters - An array indicating the invalid characters.\n\t* lengthValidity - A boolean indicating the length validity.\n\t* patternValidity - A boolean indicating the pattern validity.\n\t* value - the invalid value of the barcode.\n\t*/\n\t@Output() onInvalid: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description Exports the generated barcode image or data for use outside the application. This function typically saves or downloads the barcode in formats such as PNG, JPEG, or SVG, making it accessible for printing, sharing, or integration with other systems. \n\t* @param {string} format. The format of the exported file - svg, png, jpg\n\t* @param {string} fileName?. The name of the exported file\n\t*/\n public export(format: string, fileName?: string): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.export(format, fileName);\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.export(format, fileName);\n });\n }\n }\n\n\t/** @description Retrieves the barcode image encoded as a Base64 string, allowing for convenient embedding or transmission of the barcode in web applications or APIs without needing a physical image file. \n\t* @param {string} format. The dataURL format of the string - svg, png, jpg\n\t* @returns {string}\n */\n\tpublic async getDataURL(format): Promise<any> {\n\t\tconst getResultOnRender = () => {\n return new Promise(resolve => {\n this.nativeElement.whenRendered(() => {\n const result = this.nativeElement.getDataURL(format);\n resolve(result)\n });\n });\n };\n const result = await getResultOnRender();\n\n return result;\n }\n\n\tpublic getDataURLSync(format): string {\n if (this.nativeElement.isRendered) {\n \t return this.nativeElement.getDataURL(format);\n }\n return null;\n }\n\n\t/** @description Retrieves the barcode image encoded as a Base64 string, allowing you to easily embed or transmit the barcode in formats such as HTML, CSS, or JSON. \n\t* @param {string} format. The dataURL format of the string - svg, png, jpg\n\t* @returns {any}\n */\n\tpublic async getDataURLAsync(format): Promise<any> {\n\t\tconst getResultOnRender = () => {\n return new Promise(resolve => {\n this.nativeElement.whenRendered(() => {\n const result = this.nativeElement.getDataURLAsync(format);\n resolve(result)\n });\n });\n };\n const result = await getResultOnRender();\n\n return result;\n }\n\n\tpublic getDataURLAsyncSync(format): any {\n if (this.nativeElement.isRendered) {\n \t return this.nativeElement.getDataURLAsync(format);\n }\n return null;\n }\n\n\t/** @description Retrieves the validation status of the barcode, indicating whether the scanned barcode meets the required format and integrity checks. \n\t* @returns {boolean}\n */\n\tpublic async isValid(): Promise<any> {\n\t\tconst getResultOnRender = () => {\n return new Promise(resolve => {\n this.nativeElement.whenRendered(() => {\n const result = this.nativeElement.isValid();\n resolve(result)\n });\n });\n };\n const result = await getResultOnRender();\n\n return result;\n }\n\n\tpublic isValidSync(): boolean {\n if (this.nativeElement.isRendered) {\n \t return this.nativeElement.isValid();\n }\n return null;\n }\n\n\n\tget isRendered(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.isRendered : false;\n\t}\n\n\tngOnInit() {\n\t}\n\n ngAfterViewInit() {\n const that = this;\n\n that.onCreate.emit(that.nativeElement);\n\n\t\tif (Smart) Smart.Render();\n\n\t\tthis.nativeElement.classList.add('smart-angular');\n\n\t\tif (this.nativeElement.whenRendered) this.nativeElement.whenRendered(() => { that.onReady.emit(that.nativeElement); });\n\t\tthis.listen();\n\t}\n\n\tngOnDestroy() {\n\t\tthis.unlisten();\n\t}\n\n\tngOnChanges(changes: SimpleChanges) {\n\t\tif (this.nativeElement && this.nativeElement.isRendered) {\n\t\t\tfor (const propName in changes) {\n\t\t\t\tif (changes.hasOwnProperty(propName)) {\n\t\t\t\t\tthis.nativeElement[propName] = changes[propName].currentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/** @description Add event listeners. */\n\tprivate listen(): void {\n const that = this;\n\t\tthat.eventHandlers['invalidHandler'] = (event: CustomEvent) => { that.onInvalid.emit(event); }\n\t\tthat.nativeElement.addEventListener('invalid', that.eventHandlers['invalidHandler']);\n\n\t}\n\n\t/** @description Remove event listeners. */\n\tprivate unlisten(): void {\n const that = this;\n\t\tif (that.eventHandlers['invalidHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('invalid', that.eventHandlers['invalidHandler']);\n\t\t}\n\n\t}\n}\n","import { NgModule } from '@angular/core';\n\nimport { BarcodeComponent } from './smart.barcode';\nimport { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\n\n@NgModule({\n declarations: [BarcodeComponent],\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\n\texports: [BarcodeComponent]\n})\n\nexport class BarcodeModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAYa,WAAW;IACpB,YAAY,GAAe;QAajB,aAAQ,GAAsB,I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