UNPKG

smart-webcomponents-angular

Version:

[![Price](https://img.shields.io/badge/price-COMMERCIAL-0098f7.svg)](https://jqwidgets.com/license/)

1 lines 30.5 kB
{"version":3,"file":"smart-webcomponents-angular-pager.mjs","sources":["../../pager/src/smart.element.ts","../../pager/src/smart.pager.ts","../../pager/src/smart.pager.module.ts","../../pager/src/smart-webcomponents-angular-pager.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 { Pager } from './../index';\nimport { Animation, PagerAutoEllipsis, LayoutPosition, 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 { Animation, PagerAutoEllipsis, LayoutPosition, ElementRenderMode} from './../index';\nexport { Smart } from './smart.element';\nexport { Pager } from './../index';\n\n\n@Directive({\n\texportAs: 'smart-pager',\tselector: 'smart-pager, [smart-pager]'\n})\n\nexport class PagerComponent extends BaseElement implements OnInit, AfterViewInit, OnDestroy, OnChanges {\n\tconstructor(ref: ElementRef<Pager>) {\n\t\tsuper(ref);\n\t\tthis.nativeElement = ref.nativeElement as Pager;\n\t}\n\n\tprivate eventHandlers: any[] = [];\n\n\tpublic declare nativeElement: Pager;\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 = <Pager>document.createElement('smart-pager');\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 Sets or gets the animation mode. Animation is disabled when the property is set to 'none' */\n\t@Input()\n\tget animation(): Animation | string {\n\t\treturn this.nativeElement ? this.nativeElement.animation : undefined;\n\t}\n\tset animation(value: Animation | string) {\n\t\tthis.nativeElement ? this.nativeElement.animation = value : undefined;\n\t}\n\n\t/** @description Handles pager's elipsis. Ellipsis buttons are displayed as indicators and additional help to navigate between pages. */\n\t@Input()\n\tget autoEllipsis(): PagerAutoEllipsis | string {\n\t\treturn this.nativeElement ? this.nativeElement.autoEllipsis : undefined;\n\t}\n\tset autoEllipsis(value: PagerAutoEllipsis | string) {\n\t\tthis.nativeElement ? this.nativeElement.autoEllipsis = value : undefined;\n\t}\n\n\t/** @description Enables or disables the pager. */\n\t@Input()\n\tget disabled(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.disabled : undefined;\n\t}\n\tset disabled(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.disabled = value : undefined;\n\t}\n\n\t/** @description Sets or gets the license which unlocks the product. */\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\n\t/** @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, related to 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 Handles the position of the navigation buttons. */\n\t@Input()\n\tget navigationButtonsPosition(): LayoutPosition | string {\n\t\treturn this.nativeElement ? this.nativeElement.navigationButtonsPosition : undefined;\n\t}\n\tset navigationButtonsPosition(value: LayoutPosition | string) {\n\t\tthis.nativeElement ? this.nativeElement.navigationButtonsPosition = value : undefined;\n\t}\n\n\t/** @description Gets/sets current page index. */\n\t@Input()\n\tget pageIndex(): number {\n\t\treturn this.nativeElement ? this.nativeElement.pageIndex : undefined;\n\t}\n\tset pageIndex(value: number) {\n\t\tthis.nativeElement ? this.nativeElement.pageIndex = value : undefined;\n\t}\n\n\t/** @description Defines the number of page index selectors. */\n\t@Input()\n\tget pageIndexSelectors(): number {\n\t\treturn this.nativeElement ? this.nativeElement.pageIndexSelectors : undefined;\n\t}\n\tset pageIndexSelectors(value: number) {\n\t\tthis.nativeElement ? this.nativeElement.pageIndexSelectors = value : undefined;\n\t}\n\n\t/** @description Gets/sets total number of items displayed on page. */\n\t@Input()\n\tget pageSize(): number {\n\t\treturn this.nativeElement ? this.nativeElement.pageSize : undefined;\n\t}\n\tset pageSize(value: number) {\n\t\tthis.nativeElement ? this.nativeElement.pageSize = value : undefined;\n\t}\n\n\t/** @description Defines the data source of the element's page size selector drop down. */\n\t@Input()\n\tget pageSizeSelectorDataSource(): number[] {\n\t\treturn this.nativeElement ? this.nativeElement.pageSizeSelectorDataSource : undefined;\n\t}\n\tset pageSizeSelectorDataSource(value: number[]) {\n\t\tthis.nativeElement ? this.nativeElement.pageSizeSelectorDataSource = value : undefined;\n\t}\n\n\t/** @description The number of pages in the element. */\n\t@Input()\n\tget pagesCount(): number {\n\t\treturn this.nativeElement ? this.nativeElement.pagesCount : undefined;\n\t}\n\tset pagesCount(value: number) {\n\t\tthis.nativeElement ? this.nativeElement.pagesCount = value : undefined;\n\t}\n\n\t/** @description If the element is readonly, users cannot interact with it. */\n\t@Input()\n\tget readonly(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.readonly : undefined;\n\t}\n\tset readonly(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.readonly = 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 Controlls displaying of the 'first' and 'last' navigation buttons. */\n\t@Input()\n\tget showFirstLastNavigationButtons(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.showFirstLastNavigationButtons : undefined;\n\t}\n\tset showFirstLastNavigationButtons(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.showFirstLastNavigationButtons = value : undefined;\n\t}\n\n\t/** @description Displays text content in navigation buttons instead default icons. */\n\t@Input()\n\tget showNavigationButtonLabels(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.showNavigationButtonLabels : undefined;\n\t}\n\tset showNavigationButtonLabels(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.showNavigationButtonLabels = value : undefined;\n\t}\n\n\t/** @description Determines whether the navigation input is displayed. */\n\t@Input()\n\tget showNavigationInput(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.showNavigationInput : undefined;\n\t}\n\tset showNavigationInput(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.showNavigationInput = value : undefined;\n\t}\n\n\t/** @description Determines whether the page index selectors are displayed. */\n\t@Input()\n\tget showPageIndexSelectors(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.showPageIndexSelectors : undefined;\n\t}\n\tset showPageIndexSelectors(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.showPageIndexSelectors = value : undefined;\n\t}\n\n\t/** @description Determines whether the page size selector is displayed. */\n\t@Input()\n\tget showPageSizeSelector(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.showPageSizeSelector : undefined;\n\t}\n\tset showPageSizeSelector(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.showPageSizeSelector = value : undefined;\n\t}\n\n\t/** @description Controlls displaying of the 'previous' and 'next' navigation buttons. */\n\t@Input()\n\tget showPrevNextNavigationButtons(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.showPrevNextNavigationButtons : undefined;\n\t}\n\tset showPrevNextNavigationButtons(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.showPrevNextNavigationButtons = value : undefined;\n\t}\n\n\t/** @description Determines whether the page summary is displayed. */\n\t@Input()\n\tget showSummary(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.showSummary : undefined;\n\t}\n\tset showSummary(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.showSummary = 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\t/** @description If is set to true, the element cannot be focused. */\n\t@Input()\n\tget unfocusable(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.unfocusable : undefined;\n\t}\n\tset unfocusable(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.unfocusable = value : undefined;\n\t}\n\n\t/** @description Gets/sets total number of records whose pagination the Pager controls. Useful when the Pager is part of a more complex element or application. */\n\t@Input()\n\tget totalRecords(): number {\n\t\treturn this.nativeElement ? this.nativeElement.totalRecords : undefined;\n\t}\n\tset totalRecords(value: number) {\n\t\tthis.nativeElement ? this.nativeElement.totalRecords = value : undefined;\n\t}\n\n\t/** @description This event is triggered when user selects a new item.\n\t* @param event. The custom event. \t*/\n\t@Output() onChange: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered when page size is changed.\n\t* @param event. The custom event. \t*/\n\t@Output() onPageSizeChanged: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description Selects first item. \n\t*/\n public first(): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.first();\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.first();\n });\n }\n }\n\n\t/** @description Selects last item. \n\t*/\n public last(): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.last();\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.last();\n });\n }\n }\n\n\t/** @description Navigates to particular item. \n\t* @param {any} pageIndex. \n\t*/\n public navigateTo(pageIndex: any): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.navigateTo(pageIndex);\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.navigateTo(pageIndex);\n });\n }\n }\n\n\t/** @description Selects next pager item. \n\t*/\n public next(): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.next();\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.next();\n });\n }\n }\n\n\t/** @description Selects previous pager item. \n\t*/\n public prev(): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.prev();\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.prev();\n });\n }\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['changeHandler'] = (event: CustomEvent) => { that.onChange.emit(event); }\n\t\tthat.nativeElement.addEventListener('change', that.eventHandlers['changeHandler']);\n\n\t\tthat.eventHandlers['pageSizeChangedHandler'] = (event: CustomEvent) => { that.onPageSizeChanged.emit(event); }\n\t\tthat.nativeElement.addEventListener('pageSizeChanged', that.eventHandlers['pageSizeChangedHandler']);\n\n\t}\n\n\t/** @description Remove event listeners. */\n\tprivate unlisten(): void {\n const that = this;\n\t\tif (that.eventHandlers['changeHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('change', that.eventHandlers['changeHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['pageSizeChangedHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('pageSizeChanged', that.eventHandlers['pageSizeChangedHandler']);\n\t\t}\n\n\t}\n}\n","import { NgModule } from '@angular/core';\n\nimport { PagerComponent } from './smart.pager';\nimport { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\n\n@NgModule({\n declarations: [PagerComponent],\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\n\texports: [PagerComponent]\n})\n\nexport class PagerModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAYa,WAAW;IACpB,YAAY,GAAe;QAajB,aAAQ,GAAsB,IAAI,YAAY,EAAE,CAAC;QACjD,YAAO,GAAsB,IAAI,YAAY,EAAE,CAAC;QAChD,aAAQ,GAAsB,IAAI,YAAY,EAAE,CAAC;QACjD,aAAQ,GAAsB,IAAI,YAAY,EAAE,CAAC;QAfvD,MAAM,IAAI,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,aAAa,GAAG,GAAG,CAAC,aAAoB,CAAC;QAE9C,IAAI,CAAC,aAAa,CAAC,UAAU,GAAG;YAC5B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;SAC1C,CAAA;QAED,IAAI,CAAC,aAAa,CAAC,UAAU,GAAG;YAC5B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;SAC1C,CAAA;KACJ;IASM,gBAAgB,CAAC,IAAY,EAAE,QAA4C,EAAE,UAA6C,KAAK;QAClI,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;KACnE;IAEM,mBAAmB,CAAC,IAAY,EAAE,QAA4C,EAAE,UAA6C,KAAK;QACxI,IAAI,CAAC,aAAa,CAAC,mBAAmB,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;KAChE;IAEM,aAAa,CAAC,KAAY;QAChC,OAAO,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;KAC/C;IAEM,IAAI;QACV,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,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