@sq-ui/ng-sq-common
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -308,14 +308,17 @@ (function (global, factory) { | ||
} | ||
function __classPrivateFieldGet(receiver, privateMap) { | ||
if (!privateMap.has(receiver)) { | ||
throw new TypeError("attempted to get private field on non-instance"); | ||
} | ||
return privateMap.get(receiver); | ||
function __classPrivateFieldGet(receiver, state, kind, f) { | ||
if (kind === "a" && !f) | ||
throw new TypeError("Private accessor was defined without a getter"); | ||
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) | ||
throw new TypeError("Cannot read private member from an object whose class did not declare it"); | ||
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); | ||
} | ||
function __classPrivateFieldSet(receiver, privateMap, value) { | ||
if (!privateMap.has(receiver)) { | ||
throw new TypeError("attempted to set private field on non-instance"); | ||
} | ||
privateMap.set(receiver, value); | ||
return value; | ||
function __classPrivateFieldSet(receiver, state, value, kind, f) { | ||
if (kind === "m") | ||
throw new TypeError("Private method is not writable"); | ||
if (kind === "a" && !f) | ||
throw new TypeError("Private accessor was defined without a setter"); | ||
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) | ||
throw new TypeError("Cannot write private member to an object whose class did not declare it"); | ||
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; | ||
} | ||
@@ -716,2 +719,3 @@ | ||
exports.ControlValueAccessorEnabler = ControlValueAccessorEnabler; | ||
exports.CustomEventBroadcasterService = CustomEventBroadcasterService; | ||
@@ -723,4 +727,3 @@ exports.InputCoreComponent = InputCoreComponent; | ||
exports.PaginatorComponent = PaginatorComponent; | ||
exports.ɵa = ControlValueAccessorEnabler; | ||
exports.ɵb = ScrolledToBottomListenerDirective; | ||
exports.ɵa = ScrolledToBottomListenerDirective; | ||
@@ -727,0 +730,0 @@ Object.defineProperty(exports, '__esModule', { value: true }); |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs"),require("@angular/common")):"function"==typeof define&&define.amd?define("@sq-ui/ng-sq-common",["exports","@angular/core","rxjs","@angular/common"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["sq-ui"]=e["sq-ui"]||{},e["sq-ui"]["ng-sq-common"]={}),e.ng.core,e.rxjs,e.ng.common)}(this,(function(e,t,n,i){"use strict";var r;(r=e.DeviceOS||(e.DeviceOS={}))[r.Android=0]="Android",r[r.iOS=1]="iOS",r[r.Desktop=2]="Desktop"; | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs"),require("@angular/common")):"function"==typeof define&&define.amd?define("@sq-ui/ng-sq-common",["exports","@angular/core","rxjs","@angular/common"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["sq-ui"]=e["sq-ui"]||{},e["sq-ui"]["ng-sq-common"]={}),e.ng.core,e.rxjs,e.ng.common)}(this,(function(e,t,n,r){"use strict";var i;(i=e.DeviceOS||(e.DeviceOS={}))[i.Android=0]="Android",i[i.iOS=1]="iOS",i[i.Desktop=2]="Desktop"; | ||
/*! ***************************************************************************** | ||
@@ -16,3 +16,3 @@ Copyright (c) Microsoft Corporation. | ||
***************************************************************************** */ | ||
var a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};Object.create;Object.create;var o=function(){function e(){this._modelToViewChange=new t.EventEmitter,this._onChange=function(){},this._onTouched=function(){}}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){e!==this._value&&(this._value=e,this._onChange(e))},enumerable:!1,configurable:!0}),e.prototype.onBlur=function(){this._onTouched()},e.prototype.writeValue=function(e){e!==this._value&&(this._value=e,this._modelToViewChange.emit(e))},e.prototype.registerOnChange=function(e){this._onChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e}(),s=function(e){function t(){var t=e.call(this)||this;return t.defaultInputIdentifier="sq-form-control"+(new Date).getTime().toString(),t.name=t.defaultInputIdentifier,t.controlId=t.defaultInputIdentifier,t.controlLabel="",t.controlPlaceholder="",t.required=!1,t.pattern="",t.disabled=!1,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(o);s.decorators=[{type:t.Injectable}],s.ctorParameters=function(){return[]},s.propDecorators={name:[{type:t.Input}],controlId:[{type:t.Input}],controlLabel:[{type:t.Input}],controlPlaceholder:[{type:t.Input}],required:[{type:t.Input}],pattern:[{type:t.Input}],disabled:[{type:t.Input}]};var l=function(){function e(e,n){var i=this;this.elementRef=e,this.renderer=n,this.clickOutside=new t.EventEmitter,this.listenForOutsideClick=!1,this.listener=this.renderer.listen("document","click",(function(e){i.listenForOutsideClick&&(i.elementRef.nativeElement.contains(e.target)||i.clickOutside.emit())}))}return e.prototype.ngOnDestroy=function(){this.listener()},e}();l.decorators=[{type:t.Directive,args:[{selector:"[sqOutsideClickListener]"}]}],l.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2}]},l.propDecorators={clickOutside:[{type:t.Output}],listenForOutsideClick:[{type:t.Input}]};var u=function(){function e(){this.items=[],this.itemsPerPage=10,this.currentPage=1,this.maxDisplayedPages=3,this.paginatedCollection=[],this.paginatedCollectionChange=new t.EventEmitter,this.pageChange=new t.EventEmitter,this.pages=[],this._paginatedCollection=[],this.disableNextBtns=!1,this.disablePrevBtns=!0,this.currentPageNumber=1,this.hasSelectedCurrentPageByAuthor=!1}return e.prototype.ngOnInit=function(){this.itemsPerPage=this.itemsPerPage||10,this.maxDisplayedPages=this.maxDisplayedPages||3},e.prototype.ngOnChanges=function(e){e.items&&e.items.currentValue&&(this.generatePaginatedCollection(this.currentPageNumber),this.updatePageCount(this.lastPage),this.currentPage&&!this.hasSelectedCurrentPageByAuthor&&this.selectCurrentPageProgramatically(),this.toggleControlEnabling()),e.itemsPerPage&&e.itemsPerPage.currentValue&&e.itemsPerPage.currentValue>0&&this.updatePageCount(this.lastPage),e.currentPage&&e.currentPage.currentValue&&e.currentPage.currentValue>0&&(this.hasSelectedCurrentPageByAuthor=!1,this.selectCurrentPageProgramatically()),e.lastPage&&e.lastPage.currentValue&&e.lastPage.currentValue>0&&this.updatePageCount(e.lastPage.currentValue),e.maxDisplayedPages&&e.maxDisplayedPages.currentValue&&e.maxDisplayedPages.currentValue>0&&this.updatePageCount(this.lastPage)},e.prototype.onPageClick=function(e){this.selectPage(e),this.pageChange.emit({page:e.number,firstItemIndex:this.items.indexOf(this._paginatedCollection[0])})},e.prototype.navigateToPage=function(e){var t=this.pages.findIndex((function(e){return!0===e.isSelected})),n=this.pages[t+e];this.onPageClick(n)},e.prototype.updatePageCount=function(e){var t=this,n=e||Math.ceil(this.items.length/this.itemsPerPage);if(this.pages=[],n&&0!==this.items.length){if(1===n)this.pages.push({number:1,isSelected:!1,isHidden:!1});else for(var i=1;i<=n;i++)this.pages.push({number:i,isSelected:!1,isHidden:!0});this.pages.find((function(e){return e.number===t.currentPageNumber})).isSelected=!0,this.hidePages()}},e.prototype.selectPage=function(e){this.pages.find((function(e){return!0===e.isSelected})).isSelected=!1,e.isSelected=!0,this.toggleControlEnabling(e),this.generatePaginatedCollection(e.number)},e.prototype.generatePaginatedCollection=function(e){var t=this,n=this.itemsPerPage*e,i=n-this.itemsPerPage;this.items[i]||(i=(n=this.items.length-1)-this.itemsPerPage),this._paginatedCollection=this.items.slice(i,n),this.currentPageNumber=e,setTimeout((function(){t.paginatedCollectionChange.emit(t._paginatedCollection)}),100)},e.prototype.toggleControlEnabling=function(e){var t=this;e||(e=this.pages.find((function(e){return e.number===t.currentPageNumber}))),this.disablePrevBtns=0===this.pages.indexOf(e),this.disableNextBtns=this.pages.indexOf(e)===this.pages.length-1},e.prototype.hidePages=function(){var e=this.pages.findIndex((function(e){return!0===e.isSelected})),t=e+this.maxDisplayedPages-1,n=this.pages.length-1-this.maxDisplayedPages;this.pages.forEach((function(i,r){(r>=e&&r<=t||0===r||r>n)&&(i.isHidden=!1)}))},e.prototype.selectCurrentPageProgramatically=function(){var e=this,t=this.pages.find((function(t){return t.number===e.currentPage}));t&&(this.selectPage(t),this.hidePages(),this.hasSelectedCurrentPageByAuthor=!0)},e}();u.decorators=[{type:t.Component,args:[{selector:"sq-paginator",template:'<ol class="paginator display-flex wrap" *ngIf="pages.length > 0">\r\n <li>\r\n <button type="button"\r\n [disabled]="disablePrevBtns"\r\n data-btn-type="first"\r\n (click)="onPageClick(pages[0])">\r\n <i class="fas fa-angle-double-left" aria-hidden="true"></i>\r\n </button>\r\n </li>\r\n <li>\r\n <button type="button"\r\n [disabled]="disablePrevBtns"\r\n data-btn-type="prev"\r\n (click)="navigateToPage(-1)">\r\n <i class="fas fa-angle-left" aria-hidden="true"></i>\r\n </button>\r\n </li>\r\n <li *ngFor="let page of pages"\r\n [hidden]="page.isHidden"\r\n data-btn-type="page-num"\r\n [ngClass]="{\r\n \'current\': page.isSelected,\r\n \'truncated\': page.isHidden\r\n }">\r\n <button type="button"\r\n (click)="onPageClick(page)">\r\n {{page.number}}\r\n </button>\r\n </li>\r\n <li>\r\n <button type="button"\r\n [disabled]="disableNextBtns"\r\n data-btn-type="next"\r\n (click)="navigateToPage(1)">\r\n <i class="fas fa-angle-right" aria-hidden="true"></i>\r\n </button>\r\n </li>\r\n <li>\r\n <button type="button"\r\n [disabled]="disableNextBtns"\r\n data-btn-type="last"\r\n (click)="onPageClick(pages[pages.length - 1])">\r\n <i class="fas fa-angle-double-right" aria-hidden="true"></i>\r\n </button>\r\n </li>\r\n</ol>\r\n',encapsulation:t.ViewEncapsulation.None,styles:['.sq ol.paginator{list-style:none;margin:0}.sq ol.paginator li{position:relative;padding:5px 8px;min-width:35px;height:32px;text-align:center;margin-right:10px;transition:all .4s ease-in}.sq ol.paginator li.current{font-weight:700;background-color:#b7d8d1}.sq ol.paginator li.truncated{display:none}.sq ol.paginator li:not(.truncated)+.truncated{pointer-events:none;display:block;font-size:0}.sq ol.paginator li:not(.truncated)+.truncated:before{content:"...";pointer-events:none;font-size:1.1rem}.sq ol.paginator li button{position:absolute;left:0;bottom:0;width:100%;height:100%;cursor:pointer}.sq ol.paginator li button[disabled]{cursor:default}.sq ol.paginator li button[disabled] .fas{color:#aba9a9}']}]}],u.ctorParameters=function(){return[]},u.propDecorators={items:[{type:t.Input}],itemsPerPage:[{type:t.Input}],currentPage:[{type:t.Input}],lastPage:[{type:t.Input}],maxDisplayedPages:[{type:t.Input}],paginatedCollection:[{type:t.Input}],paginatedCollectionChange:[{type:t.Output}],pageChange:[{type:t.Output}]};var c=function(){function e(){this.broadcasterSubject=new n.Subject,this.broadcasterSubjectAsObservable=this.broadcasterSubject.asObservable()}return e.prototype.subscribeFor=function(e,t){return this.broadcasterSubjectAsObservable.subscribe((function(n){n.broadcastEvent===e&&t(n.eventDetails)}))},e.prototype.broadcastEvent=function(e,t){this.broadcasterSubject.next({broadcastEvent:e,eventDetails:t})},e}();c.decorators=[{type:t.Injectable}],c.ctorParameters=function(){return[]};var p=function(){function t(){}return t.getDeviceOS=function(){var t=navigator.userAgent||navigator.vendor,n=e.DeviceOS.Desktop;return/android/i.test(t)&&(n=e.DeviceOS.Android),/iPad|iPhone|iPod/.test(t)&&(n=e.DeviceOS.iOS),n},t}();p.decorators=[{type:t.Injectable}],p.ctorParameters=function(){return[]};var g=function(){function e(e,n){var i=this;this.elementRef=e,this.renderer=n,this.scrolledToBottom=new t.EventEmitter,this.listener=this.renderer.listen(this.elementRef.nativeElement,"scroll",(function(){i.checkIfHasScrolledToBottom(i.elementRef.nativeElement)}))}return e.prototype.checkIfHasScrolledToBottom=function(e){e.scrollTop>0&&e.scrollHeight-e.scrollTop===e.clientHeight&&this.scrolledToBottom.emit()},e.prototype.ngOnDestroy=function(){this.listener()},e}();g.decorators=[{type:t.Directive,args:[{selector:"[sqScrolledToBottomListener]"}]}],g.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2}]},g.propDecorators={scrolledToBottom:[{type:t.Output}]};var d=function(){};d.decorators=[{type:t.NgModule,args:[{imports:[i.CommonModule],providers:[p,c],declarations:[l,u,g],exports:[l,u,g]}]}],e.CustomEventBroadcasterService=c,e.InputCoreComponent=s,e.NgSqCommonModule=d,e.OSDetectorService=p,e.OutsideClickListenerDirective=l,e.PaginatorComponent=u,e.ɵa=o,e.ɵb=g,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
var a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};Object.create;Object.create;var o=function(){function e(){this._modelToViewChange=new t.EventEmitter,this._onChange=function(){},this._onTouched=function(){}}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){e!==this._value&&(this._value=e,this._onChange(e))},enumerable:!1,configurable:!0}),e.prototype.onBlur=function(){this._onTouched()},e.prototype.writeValue=function(e){e!==this._value&&(this._value=e,this._modelToViewChange.emit(e))},e.prototype.registerOnChange=function(e){this._onChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e}(),s=function(e){function t(){var t=e.call(this)||this;return t.defaultInputIdentifier="sq-form-control"+(new Date).getTime().toString(),t.name=t.defaultInputIdentifier,t.controlId=t.defaultInputIdentifier,t.controlLabel="",t.controlPlaceholder="",t.required=!1,t.pattern="",t.disabled=!1,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(o);s.decorators=[{type:t.Injectable}],s.ctorParameters=function(){return[]},s.propDecorators={name:[{type:t.Input}],controlId:[{type:t.Input}],controlLabel:[{type:t.Input}],controlPlaceholder:[{type:t.Input}],required:[{type:t.Input}],pattern:[{type:t.Input}],disabled:[{type:t.Input}]};var l=function(){function e(e,n){var r=this;this.elementRef=e,this.renderer=n,this.clickOutside=new t.EventEmitter,this.listenForOutsideClick=!1,this.listener=this.renderer.listen("document","click",(function(e){r.listenForOutsideClick&&(r.elementRef.nativeElement.contains(e.target)||r.clickOutside.emit())}))}return e.prototype.ngOnDestroy=function(){this.listener()},e}();l.decorators=[{type:t.Directive,args:[{selector:"[sqOutsideClickListener]"}]}],l.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2}]},l.propDecorators={clickOutside:[{type:t.Output}],listenForOutsideClick:[{type:t.Input}]};var u=function(){function e(){this.items=[],this.itemsPerPage=10,this.currentPage=1,this.maxDisplayedPages=3,this.paginatedCollection=[],this.paginatedCollectionChange=new t.EventEmitter,this.pageChange=new t.EventEmitter,this.pages=[],this._paginatedCollection=[],this.disableNextBtns=!1,this.disablePrevBtns=!0,this.currentPageNumber=1,this.hasSelectedCurrentPageByAuthor=!1}return e.prototype.ngOnInit=function(){this.itemsPerPage=this.itemsPerPage||10,this.maxDisplayedPages=this.maxDisplayedPages||3},e.prototype.ngOnChanges=function(e){e.items&&e.items.currentValue&&(this.generatePaginatedCollection(this.currentPageNumber),this.updatePageCount(this.lastPage),this.currentPage&&!this.hasSelectedCurrentPageByAuthor&&this.selectCurrentPageProgramatically(),this.toggleControlEnabling()),e.itemsPerPage&&e.itemsPerPage.currentValue&&e.itemsPerPage.currentValue>0&&this.updatePageCount(this.lastPage),e.currentPage&&e.currentPage.currentValue&&e.currentPage.currentValue>0&&(this.hasSelectedCurrentPageByAuthor=!1,this.selectCurrentPageProgramatically()),e.lastPage&&e.lastPage.currentValue&&e.lastPage.currentValue>0&&this.updatePageCount(e.lastPage.currentValue),e.maxDisplayedPages&&e.maxDisplayedPages.currentValue&&e.maxDisplayedPages.currentValue>0&&this.updatePageCount(this.lastPage)},e.prototype.onPageClick=function(e){this.selectPage(e),this.pageChange.emit({page:e.number,firstItemIndex:this.items.indexOf(this._paginatedCollection[0])})},e.prototype.navigateToPage=function(e){var t=this.pages.findIndex((function(e){return!0===e.isSelected})),n=this.pages[t+e];this.onPageClick(n)},e.prototype.updatePageCount=function(e){var t=this,n=e||Math.ceil(this.items.length/this.itemsPerPage);if(this.pages=[],n&&0!==this.items.length){if(1===n)this.pages.push({number:1,isSelected:!1,isHidden:!1});else for(var r=1;r<=n;r++)this.pages.push({number:r,isSelected:!1,isHidden:!0});this.pages.find((function(e){return e.number===t.currentPageNumber})).isSelected=!0,this.hidePages()}},e.prototype.selectPage=function(e){this.pages.find((function(e){return!0===e.isSelected})).isSelected=!1,e.isSelected=!0,this.toggleControlEnabling(e),this.generatePaginatedCollection(e.number)},e.prototype.generatePaginatedCollection=function(e){var t=this,n=this.itemsPerPage*e,r=n-this.itemsPerPage;this.items[r]||(r=(n=this.items.length-1)-this.itemsPerPage),this._paginatedCollection=this.items.slice(r,n),this.currentPageNumber=e,setTimeout((function(){t.paginatedCollectionChange.emit(t._paginatedCollection)}),100)},e.prototype.toggleControlEnabling=function(e){var t=this;e||(e=this.pages.find((function(e){return e.number===t.currentPageNumber}))),this.disablePrevBtns=0===this.pages.indexOf(e),this.disableNextBtns=this.pages.indexOf(e)===this.pages.length-1},e.prototype.hidePages=function(){var e=this.pages.findIndex((function(e){return!0===e.isSelected})),t=e+this.maxDisplayedPages-1,n=this.pages.length-1-this.maxDisplayedPages;this.pages.forEach((function(r,i){(i>=e&&i<=t||0===i||i>n)&&(r.isHidden=!1)}))},e.prototype.selectCurrentPageProgramatically=function(){var e=this,t=this.pages.find((function(t){return t.number===e.currentPage}));t&&(this.selectPage(t),this.hidePages(),this.hasSelectedCurrentPageByAuthor=!0)},e}();u.decorators=[{type:t.Component,args:[{selector:"sq-paginator",template:'<ol class="paginator display-flex wrap" *ngIf="pages.length > 0">\r\n <li>\r\n <button type="button"\r\n [disabled]="disablePrevBtns"\r\n data-btn-type="first"\r\n (click)="onPageClick(pages[0])">\r\n <i class="fas fa-angle-double-left" aria-hidden="true"></i>\r\n </button>\r\n </li>\r\n <li>\r\n <button type="button"\r\n [disabled]="disablePrevBtns"\r\n data-btn-type="prev"\r\n (click)="navigateToPage(-1)">\r\n <i class="fas fa-angle-left" aria-hidden="true"></i>\r\n </button>\r\n </li>\r\n <li *ngFor="let page of pages"\r\n [hidden]="page.isHidden"\r\n data-btn-type="page-num"\r\n [ngClass]="{\r\n \'current\': page.isSelected,\r\n \'truncated\': page.isHidden\r\n }">\r\n <button type="button"\r\n (click)="onPageClick(page)">\r\n {{page.number}}\r\n </button>\r\n </li>\r\n <li>\r\n <button type="button"\r\n [disabled]="disableNextBtns"\r\n data-btn-type="next"\r\n (click)="navigateToPage(1)">\r\n <i class="fas fa-angle-right" aria-hidden="true"></i>\r\n </button>\r\n </li>\r\n <li>\r\n <button type="button"\r\n [disabled]="disableNextBtns"\r\n data-btn-type="last"\r\n (click)="onPageClick(pages[pages.length - 1])">\r\n <i class="fas fa-angle-double-right" aria-hidden="true"></i>\r\n </button>\r\n </li>\r\n</ol>\r\n',encapsulation:t.ViewEncapsulation.None,styles:['.sq ol.paginator{list-style:none;margin:0}.sq ol.paginator li{position:relative;padding:5px 8px;min-width:35px;height:32px;text-align:center;margin-right:10px;transition:all .4s ease-in}.sq ol.paginator li.current{font-weight:700;background-color:#b7d8d1}.sq ol.paginator li.truncated{display:none}.sq ol.paginator li:not(.truncated)+.truncated{pointer-events:none;display:block;font-size:0}.sq ol.paginator li:not(.truncated)+.truncated:before{content:"...";pointer-events:none;font-size:1.1rem}.sq ol.paginator li button{position:absolute;left:0;bottom:0;width:100%;height:100%;cursor:pointer}.sq ol.paginator li button[disabled]{cursor:default}.sq ol.paginator li button[disabled] .fas{color:#aba9a9}']}]}],u.ctorParameters=function(){return[]},u.propDecorators={items:[{type:t.Input}],itemsPerPage:[{type:t.Input}],currentPage:[{type:t.Input}],lastPage:[{type:t.Input}],maxDisplayedPages:[{type:t.Input}],paginatedCollection:[{type:t.Input}],paginatedCollectionChange:[{type:t.Output}],pageChange:[{type:t.Output}]};var c=function(){function e(){this.broadcasterSubject=new n.Subject,this.broadcasterSubjectAsObservable=this.broadcasterSubject.asObservable()}return e.prototype.subscribeFor=function(e,t){return this.broadcasterSubjectAsObservable.subscribe((function(n){n.broadcastEvent===e&&t(n.eventDetails)}))},e.prototype.broadcastEvent=function(e,t){this.broadcasterSubject.next({broadcastEvent:e,eventDetails:t})},e}();c.decorators=[{type:t.Injectable}],c.ctorParameters=function(){return[]};var p=function(){function t(){}return t.getDeviceOS=function(){var t=navigator.userAgent||navigator.vendor,n=e.DeviceOS.Desktop;return/android/i.test(t)&&(n=e.DeviceOS.Android),/iPad|iPhone|iPod/.test(t)&&(n=e.DeviceOS.iOS),n},t}();p.decorators=[{type:t.Injectable}],p.ctorParameters=function(){return[]};var g=function(){function e(e,n){var r=this;this.elementRef=e,this.renderer=n,this.scrolledToBottom=new t.EventEmitter,this.listener=this.renderer.listen(this.elementRef.nativeElement,"scroll",(function(){r.checkIfHasScrolledToBottom(r.elementRef.nativeElement)}))}return e.prototype.checkIfHasScrolledToBottom=function(e){e.scrollTop>0&&e.scrollHeight-e.scrollTop===e.clientHeight&&this.scrolledToBottom.emit()},e.prototype.ngOnDestroy=function(){this.listener()},e}();g.decorators=[{type:t.Directive,args:[{selector:"[sqScrolledToBottomListener]"}]}],g.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2}]},g.propDecorators={scrolledToBottom:[{type:t.Output}]};var d=function(){};d.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],providers:[p,c],declarations:[l,u,g],exports:[l,u,g]}]}],e.ControlValueAccessorEnabler=o,e.CustomEventBroadcasterService=c,e.InputCoreComponent=s,e.NgSqCommonModule=d,e.OSDetectorService=p,e.OutsideClickListenerDirective=l,e.PaginatorComponent=u,e.ɵa=g,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=sq-ui-ng-sq-common.umd.min.js.map |
@@ -10,3 +10,4 @@ /* | ||
export { OSDetectorService } from './lib/services/os-detector.service'; | ||
export { ControlValueAccessorEnabler } from './lib/entities/control-value-accessor-enabler'; | ||
export * from './lib/ng-sq-common.module'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9uZy1zcS1jb21tb24vc3JjL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBQ3RELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBQ3pFLE9BQU8sRUFBRSw2QkFBNkIsRUFBRSxNQUFNLG1EQUFtRCxDQUFDO0FBQ2xHLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLGdEQUFnRCxDQUFDO0FBSXBGLE9BQU8sRUFBRSw2QkFBNkIsRUFBRSxNQUFNLGlEQUFpRCxDQUFDO0FBQ2hHLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLG9DQUFvQyxDQUFDO0FBR3ZFLGNBQWMsMkJBQTJCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxyXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2Ygbmctc3EtY29tbW9uXHJcbiAqL1xyXG5cclxuZXhwb3J0IHsgRGV2aWNlT1MgfSBmcm9tICcuL2xpYi9lbnVtcy9kZXZpY2Utb3MuZW51bSc7XHJcbmV4cG9ydCB7IElucHV0Q29yZUNvbXBvbmVudCB9IGZyb20gJy4vbGliL2VudGl0aWVzL2lucHV0LWNvcmUtY29tcG9uZW50JztcclxuZXhwb3J0IHsgT3V0c2lkZUNsaWNrTGlzdGVuZXJEaXJlY3RpdmUgfSBmcm9tICcuL2xpYi9kaXJlY3RpdmVzL291dHNpZGUtY2xpY2stbGlzdGVuZXIuZGlyZWN0aXZlJztcclxuZXhwb3J0IHsgUGFnaW5hdG9yQ29tcG9uZW50IH0gZnJvbSAnLi9saWIvY29tcG9uZW50cy9wYWdpbmF0b3IvcGFnaW5hdG9yLmNvbXBvbmVudCc7XHJcbmV4cG9ydCB7IFNpemUsIFByb2dyZXNzQmFyU2l6ZSB9IGZyb20gJy4vbGliL2ludGVyZmFjZXMvc2l6ZXMnO1xyXG5leHBvcnQgeyBDdXN0b21FdmVudERldGFpbHMgfSBmcm9tICcuL2xpYi9pbnRlcmZhY2VzL2N1c3RvbS1ldmVudC1kZXRhaWxzJztcclxuZXhwb3J0IHsgTGFiZWxWYWx1ZVBhaXIgfSBmcm9tICcuL2xpYi9pbnRlcmZhY2VzL2xhYmVsLXZhbHVlLXBhaXInO1xyXG5leHBvcnQgeyBDdXN0b21FdmVudEJyb2FkY2FzdGVyU2VydmljZSB9IGZyb20gJy4vbGliL3NlcnZpY2VzL2N1c3RvbS1ldmVudC1icm9hZGNhc3Rlci5zZXJ2aWNlJztcclxuZXhwb3J0IHsgT1NEZXRlY3RvclNlcnZpY2UgfSBmcm9tICcuL2xpYi9zZXJ2aWNlcy9vcy1kZXRlY3Rvci5zZXJ2aWNlJztcclxuZXhwb3J0IHsgUGFnaW5hdG9yQ29uZmlnIH0gZnJvbSAnLi9saWIvaW50ZXJmYWNlcy9wYWdpbmF0b3ItY29uZmlnJztcclxuXHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL25nLXNxLWNvbW1vbi5tb2R1bGUnO1xyXG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9uZy1zcS1jb21tb24vc3JjL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBQ3RELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBQ3pFLE9BQU8sRUFBRSw2QkFBNkIsRUFBRSxNQUFNLG1EQUFtRCxDQUFDO0FBQ2xHLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLGdEQUFnRCxDQUFDO0FBSXBGLE9BQU8sRUFBRSw2QkFBNkIsRUFBRSxNQUFNLGlEQUFpRCxDQUFDO0FBQ2hHLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLG9DQUFvQyxDQUFDO0FBRXZFLE9BQU8sRUFBRSwyQkFBMkIsRUFBRSxNQUFNLCtDQUErQyxDQUFDO0FBRTVGLGNBQWMsMkJBQTJCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxyXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2Ygbmctc3EtY29tbW9uXHJcbiAqL1xyXG5cclxuZXhwb3J0IHsgRGV2aWNlT1MgfSBmcm9tICcuL2xpYi9lbnVtcy9kZXZpY2Utb3MuZW51bSc7XHJcbmV4cG9ydCB7IElucHV0Q29yZUNvbXBvbmVudCB9IGZyb20gJy4vbGliL2VudGl0aWVzL2lucHV0LWNvcmUtY29tcG9uZW50JztcclxuZXhwb3J0IHsgT3V0c2lkZUNsaWNrTGlzdGVuZXJEaXJlY3RpdmUgfSBmcm9tICcuL2xpYi9kaXJlY3RpdmVzL291dHNpZGUtY2xpY2stbGlzdGVuZXIuZGlyZWN0aXZlJztcclxuZXhwb3J0IHsgUGFnaW5hdG9yQ29tcG9uZW50IH0gZnJvbSAnLi9saWIvY29tcG9uZW50cy9wYWdpbmF0b3IvcGFnaW5hdG9yLmNvbXBvbmVudCc7XHJcbmV4cG9ydCB7IFNpemUsIFByb2dyZXNzQmFyU2l6ZSB9IGZyb20gJy4vbGliL2ludGVyZmFjZXMvc2l6ZXMnO1xyXG5leHBvcnQgeyBDdXN0b21FdmVudERldGFpbHMgfSBmcm9tICcuL2xpYi9pbnRlcmZhY2VzL2N1c3RvbS1ldmVudC1kZXRhaWxzJztcclxuZXhwb3J0IHsgTGFiZWxWYWx1ZVBhaXIgfSBmcm9tICcuL2xpYi9pbnRlcmZhY2VzL2xhYmVsLXZhbHVlLXBhaXInO1xyXG5leHBvcnQgeyBDdXN0b21FdmVudEJyb2FkY2FzdGVyU2VydmljZSB9IGZyb20gJy4vbGliL3NlcnZpY2VzL2N1c3RvbS1ldmVudC1icm9hZGNhc3Rlci5zZXJ2aWNlJztcclxuZXhwb3J0IHsgT1NEZXRlY3RvclNlcnZpY2UgfSBmcm9tICcuL2xpYi9zZXJ2aWNlcy9vcy1kZXRlY3Rvci5zZXJ2aWNlJztcclxuZXhwb3J0IHsgUGFnaW5hdG9yQ29uZmlnIH0gZnJvbSAnLi9saWIvaW50ZXJmYWNlcy9wYWdpbmF0b3ItY29uZmlnJztcclxuZXhwb3J0IHsgQ29udHJvbFZhbHVlQWNjZXNzb3JFbmFibGVyIH0gZnJvbSAnLi9saWIvZW50aXRpZXMvY29udHJvbC12YWx1ZS1hY2Nlc3Nvci1lbmFibGVyJztcclxuXHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL25nLXNxLWNvbW1vbi5tb2R1bGUnO1xyXG4iXX0= |
@@ -5,4 +5,3 @@ /** | ||
export * from './index'; | ||
export { ScrolledToBottomListenerDirective as ɵb } from './lib/directives/scrolled-to-bottom-listener.directive'; | ||
export { ControlValueAccessorEnabler as ɵa } from './lib/entities/control-value-accessor-enabler'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3EtdWktbmctc3EtY29tbW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcHJvamVjdHMvbmctc3EtY29tbW9uL3NyYy9zcS11aS1uZy1zcS1jb21tb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQztBQUV4QixPQUFPLEVBQUMsaUNBQWlDLElBQUksRUFBRSxFQUFDLE1BQU0sd0RBQXdELENBQUM7QUFDL0csT0FBTyxFQUFDLDJCQUEyQixJQUFJLEVBQUUsRUFBQyxNQUFNLCtDQUErQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcblxuZXhwb3J0IHtTY3JvbGxlZFRvQm90dG9tTGlzdGVuZXJEaXJlY3RpdmUgYXMgybVifSBmcm9tICcuL2xpYi9kaXJlY3RpdmVzL3Njcm9sbGVkLXRvLWJvdHRvbS1saXN0ZW5lci5kaXJlY3RpdmUnO1xuZXhwb3J0IHtDb250cm9sVmFsdWVBY2Nlc3NvckVuYWJsZXIgYXMgybVhfSBmcm9tICcuL2xpYi9lbnRpdGllcy9jb250cm9sLXZhbHVlLWFjY2Vzc29yLWVuYWJsZXInOyJdfQ== | ||
export { ScrolledToBottomListenerDirective as ɵa } from './lib/directives/scrolled-to-bottom-listener.directive'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3EtdWktbmctc3EtY29tbW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcHJvamVjdHMvbmctc3EtY29tbW9uL3NyYy9zcS11aS1uZy1zcS1jb21tb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQztBQUV4QixPQUFPLEVBQUMsaUNBQWlDLElBQUksRUFBRSxFQUFDLE1BQU0sd0RBQXdELENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuXG5leHBvcnQge1Njcm9sbGVkVG9Cb3R0b21MaXN0ZW5lckRpcmVjdGl2ZSBhcyDJtWF9IGZyb20gJy4vbGliL2RpcmVjdGl2ZXMvc2Nyb2xsZWQtdG8tYm90dG9tLWxpc3RlbmVyLmRpcmVjdGl2ZSc7Il19 |
@@ -382,3 +382,3 @@ import { EventEmitter, Injectable, Input, Directive, ElementRef, Renderer2, Output, Component, ViewEncapsulation, NgModule } from '@angular/core'; | ||
export { CustomEventBroadcasterService, DeviceOS, InputCoreComponent, NgSqCommonModule, OSDetectorService, OutsideClickListenerDirective, PaginatorComponent, ControlValueAccessorEnabler as ɵa, ScrolledToBottomListenerDirective as ɵb }; | ||
export { ControlValueAccessorEnabler, CustomEventBroadcasterService, DeviceOS, InputCoreComponent, NgSqCommonModule, OSDetectorService, OutsideClickListenerDirective, PaginatorComponent, ScrolledToBottomListenerDirective as ɵa }; | ||
//# sourceMappingURL=sq-ui-ng-sq-common.js.map |
@@ -11,2 +11,3 @@ export { DeviceOS } from './lib/enums/device-os.enum'; | ||
export { PaginatorConfig } from './lib/interfaces/paginator-config'; | ||
export { ControlValueAccessorEnabler } from './lib/entities/control-value-accessor-enabler'; | ||
export * from './lib/ng-sq-common.module'; |
{ | ||
"name": "@sq-ui/ng-sq-common", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "private": false, |
@@ -5,3 +5,2 @@ /** | ||
export * from './index'; | ||
export { ScrolledToBottomListenerDirective as ɵb } from './lib/directives/scrolled-to-bottom-listener.directive'; | ||
export { ControlValueAccessorEnabler as ɵa } from './lib/entities/control-value-accessor-enabler'; | ||
export { ScrolledToBottomListenerDirective as ɵa } from './lib/directives/scrolled-to-bottom-listener.directive'; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"DeviceOS":{"Android":0,"iOS":1,"Desktop":2},"InputCoreComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵa"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1}}],"members":{"name":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":3}}]}],"controlId":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":12,"character":3}}]}],"controlLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":13,"character":3}}]}],"controlPlaceholder":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":3}}]}],"required":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":15,"character":3}}]}],"pattern":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":3}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":17,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}]}},"OutsideClickListenerDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"[sqOutsideClickListener]"}]}],"members":{"clickOutside":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":9,"character":3}}]}],"listenForOutsideClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":14,"character":34},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":14,"character":64}]}],"ngOnDestroy":[{"__symbolic":"method"}]}},"PaginatorComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"sq-paginator","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":10,"character":17},"member":"None"},"template":"<ol class=\"paginator display-flex wrap\" *ngIf=\"pages.length > 0\">\r\n <li>\r\n <button type=\"button\"\r\n [disabled]=\"disablePrevBtns\"\r\n data-btn-type=\"first\"\r\n (click)=\"onPageClick(pages[0])\">\r\n <i class=\"fas fa-angle-double-left\" aria-hidden=\"true\"></i>\r\n </button>\r\n </li>\r\n <li>\r\n <button type=\"button\"\r\n [disabled]=\"disablePrevBtns\"\r\n data-btn-type=\"prev\"\r\n (click)=\"navigateToPage(-1)\">\r\n <i class=\"fas fa-angle-left\" aria-hidden=\"true\"></i>\r\n </button>\r\n </li>\r\n <li *ngFor=\"let page of pages\"\r\n [hidden]=\"page.isHidden\"\r\n data-btn-type=\"page-num\"\r\n [ngClass]=\"{\r\n 'current': page.isSelected,\r\n 'truncated': page.isHidden\r\n }\">\r\n <button type=\"button\"\r\n (click)=\"onPageClick(page)\">\r\n {{page.number}}\r\n </button>\r\n </li>\r\n <li>\r\n <button type=\"button\"\r\n [disabled]=\"disableNextBtns\"\r\n data-btn-type=\"next\"\r\n (click)=\"navigateToPage(1)\">\r\n <i class=\"fas fa-angle-right\" aria-hidden=\"true\"></i>\r\n </button>\r\n </li>\r\n <li>\r\n <button type=\"button\"\r\n [disabled]=\"disableNextBtns\"\r\n data-btn-type=\"last\"\r\n (click)=\"onPageClick(pages[pages.length - 1])\">\r\n <i class=\"fas fa-angle-double-right\" aria-hidden=\"true\"></i>\r\n </button>\r\n </li>\r\n</ol>\r\n","styles":[".sq ol.paginator{list-style:none;margin:0}.sq ol.paginator li{position:relative;padding:5px 8px;min-width:35px;height:32px;text-align:center;margin-right:10px;transition:all .4s ease-in}.sq ol.paginator li.current{font-weight:700;background-color:#b7d8d1}.sq ol.paginator li.truncated{display:none}.sq ol.paginator li:not(.truncated)+.truncated{pointer-events:none;display:block;font-size:0}.sq ol.paginator li:not(.truncated)+.truncated:before{content:\"...\";pointer-events:none;font-size:1.1rem}.sq ol.paginator li button{position:absolute;left:0;bottom:0;width:100%;height:100%;cursor:pointer}.sq ol.paginator li button[disabled]{cursor:default}.sq ol.paginator li button[disabled] .fas{color:#aba9a9}"]}]}],"members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":13,"character":3}}]}],"itemsPerPage":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":3}}]}],"currentPage":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":15,"character":3}}]}],"lastPage":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":3}}]}],"maxDisplayedPages":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":17,"character":3}}]}],"paginatedCollection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":18,"character":3}}]}],"paginatedCollectionChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":19,"character":3}}]}],"pageChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":20,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"onPageClick":[{"__symbolic":"method"}],"navigateToPage":[{"__symbolic":"method"}],"updatePageCount":[{"__symbolic":"method"}],"selectPage":[{"__symbolic":"method"}],"generatePaginatedCollection":[{"__symbolic":"method"}],"toggleControlEnabling":[{"__symbolic":"method"}],"hidePages":[{"__symbolic":"method"}],"selectCurrentPageProgramatically":[{"__symbolic":"method"}]}},"Size":{"__symbolic":"interface"},"ProgressBarSize":{"__symbolic":"interface"},"CustomEventDetails":{"__symbolic":"interface"},"LabelValuePair":{"__symbolic":"interface"},"CustomEventBroadcasterService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"subscribeFor":[{"__symbolic":"method"}],"broadcastEvent":[{"__symbolic":"method"}]}},"OSDetectorService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":3,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}]}},"PaginatorConfig":{"__symbolic":"interface"},"NgSqCommonModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":8,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":10,"character":4}],"providers":[{"__symbolic":"reference","name":"OSDetectorService"},{"__symbolic":"reference","name":"CustomEventBroadcasterService"}],"declarations":[{"__symbolic":"reference","name":"OutsideClickListenerDirective"},{"__symbolic":"reference","name":"PaginatorComponent"},{"__symbolic":"reference","name":"ɵb"}],"exports":[{"__symbolic":"reference","name":"OutsideClickListenerDirective"},{"__symbolic":"reference","name":"PaginatorComponent"},{"__symbolic":"reference","name":"ɵb"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor"}],"onBlur":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":4,"character":1},"arguments":[{"selector":"[sqScrolledToBottomListener]"}]}],"members":{"scrolledToBottom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":8,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":12,"character":34},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":12,"character":64}]}],"checkIfHasScrolledToBottom":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}},"origins":{"DeviceOS":"./lib/enums/device-os.enum","InputCoreComponent":"./lib/entities/input-core-component","OutsideClickListenerDirective":"./lib/directives/outside-click-listener.directive","PaginatorComponent":"./lib/components/paginator/paginator.component","Size":"./lib/interfaces/sizes","ProgressBarSize":"./lib/interfaces/sizes","CustomEventDetails":"./lib/interfaces/custom-event-details","LabelValuePair":"./lib/interfaces/label-value-pair","CustomEventBroadcasterService":"./lib/services/custom-event-broadcaster.service","OSDetectorService":"./lib/services/os-detector.service","PaginatorConfig":"./lib/interfaces/paginator-config","NgSqCommonModule":"./lib/ng-sq-common.module","ɵa":"./lib/entities/control-value-accessor-enabler","ɵb":"./lib/directives/scrolled-to-bottom-listener.directive"},"importAs":"@sq-ui/ng-sq-common"} | ||
{"__symbolic":"module","version":4,"metadata":{"DeviceOS":{"Android":0,"iOS":1,"Desktop":2},"InputCoreComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ControlValueAccessorEnabler"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1}}],"members":{"name":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":3}}]}],"controlId":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":12,"character":3}}]}],"controlLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":13,"character":3}}]}],"controlPlaceholder":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":3}}]}],"required":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":15,"character":3}}]}],"pattern":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":3}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":17,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}]}},"OutsideClickListenerDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"[sqOutsideClickListener]"}]}],"members":{"clickOutside":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":9,"character":3}}]}],"listenForOutsideClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":14,"character":34},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":14,"character":64}]}],"ngOnDestroy":[{"__symbolic":"method"}]}},"PaginatorComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"sq-paginator","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":10,"character":17},"member":"None"},"template":"<ol class=\"paginator display-flex wrap\" *ngIf=\"pages.length > 0\">\r\n <li>\r\n <button type=\"button\"\r\n [disabled]=\"disablePrevBtns\"\r\n data-btn-type=\"first\"\r\n (click)=\"onPageClick(pages[0])\">\r\n <i class=\"fas fa-angle-double-left\" aria-hidden=\"true\"></i>\r\n </button>\r\n </li>\r\n <li>\r\n <button type=\"button\"\r\n [disabled]=\"disablePrevBtns\"\r\n data-btn-type=\"prev\"\r\n (click)=\"navigateToPage(-1)\">\r\n <i class=\"fas fa-angle-left\" aria-hidden=\"true\"></i>\r\n </button>\r\n </li>\r\n <li *ngFor=\"let page of pages\"\r\n [hidden]=\"page.isHidden\"\r\n data-btn-type=\"page-num\"\r\n [ngClass]=\"{\r\n 'current': page.isSelected,\r\n 'truncated': page.isHidden\r\n }\">\r\n <button type=\"button\"\r\n (click)=\"onPageClick(page)\">\r\n {{page.number}}\r\n </button>\r\n </li>\r\n <li>\r\n <button type=\"button\"\r\n [disabled]=\"disableNextBtns\"\r\n data-btn-type=\"next\"\r\n (click)=\"navigateToPage(1)\">\r\n <i class=\"fas fa-angle-right\" aria-hidden=\"true\"></i>\r\n </button>\r\n </li>\r\n <li>\r\n <button type=\"button\"\r\n [disabled]=\"disableNextBtns\"\r\n data-btn-type=\"last\"\r\n (click)=\"onPageClick(pages[pages.length - 1])\">\r\n <i class=\"fas fa-angle-double-right\" aria-hidden=\"true\"></i>\r\n </button>\r\n </li>\r\n</ol>\r\n","styles":[".sq ol.paginator{list-style:none;margin:0}.sq ol.paginator li{position:relative;padding:5px 8px;min-width:35px;height:32px;text-align:center;margin-right:10px;transition:all .4s ease-in}.sq ol.paginator li.current{font-weight:700;background-color:#b7d8d1}.sq ol.paginator li.truncated{display:none}.sq ol.paginator li:not(.truncated)+.truncated{pointer-events:none;display:block;font-size:0}.sq ol.paginator li:not(.truncated)+.truncated:before{content:\"...\";pointer-events:none;font-size:1.1rem}.sq ol.paginator li button{position:absolute;left:0;bottom:0;width:100%;height:100%;cursor:pointer}.sq ol.paginator li button[disabled]{cursor:default}.sq ol.paginator li button[disabled] .fas{color:#aba9a9}"]}]}],"members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":13,"character":3}}]}],"itemsPerPage":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":3}}]}],"currentPage":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":15,"character":3}}]}],"lastPage":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":3}}]}],"maxDisplayedPages":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":17,"character":3}}]}],"paginatedCollection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":18,"character":3}}]}],"paginatedCollectionChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":19,"character":3}}]}],"pageChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":20,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"onPageClick":[{"__symbolic":"method"}],"navigateToPage":[{"__symbolic":"method"}],"updatePageCount":[{"__symbolic":"method"}],"selectPage":[{"__symbolic":"method"}],"generatePaginatedCollection":[{"__symbolic":"method"}],"toggleControlEnabling":[{"__symbolic":"method"}],"hidePages":[{"__symbolic":"method"}],"selectCurrentPageProgramatically":[{"__symbolic":"method"}]}},"Size":{"__symbolic":"interface"},"ProgressBarSize":{"__symbolic":"interface"},"CustomEventDetails":{"__symbolic":"interface"},"LabelValuePair":{"__symbolic":"interface"},"CustomEventBroadcasterService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"subscribeFor":[{"__symbolic":"method"}],"broadcastEvent":[{"__symbolic":"method"}]}},"OSDetectorService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":3,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}]}},"PaginatorConfig":{"__symbolic":"interface"},"ControlValueAccessorEnabler":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor"}],"onBlur":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}]}},"NgSqCommonModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":8,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":10,"character":4}],"providers":[{"__symbolic":"reference","name":"OSDetectorService"},{"__symbolic":"reference","name":"CustomEventBroadcasterService"}],"declarations":[{"__symbolic":"reference","name":"OutsideClickListenerDirective"},{"__symbolic":"reference","name":"PaginatorComponent"},{"__symbolic":"reference","name":"ɵa"}],"exports":[{"__symbolic":"reference","name":"OutsideClickListenerDirective"},{"__symbolic":"reference","name":"PaginatorComponent"},{"__symbolic":"reference","name":"ɵa"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":4,"character":1},"arguments":[{"selector":"[sqScrolledToBottomListener]"}]}],"members":{"scrolledToBottom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":8,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":12,"character":34},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":12,"character":64}]}],"checkIfHasScrolledToBottom":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}},"origins":{"DeviceOS":"./lib/enums/device-os.enum","InputCoreComponent":"./lib/entities/input-core-component","OutsideClickListenerDirective":"./lib/directives/outside-click-listener.directive","PaginatorComponent":"./lib/components/paginator/paginator.component","Size":"./lib/interfaces/sizes","ProgressBarSize":"./lib/interfaces/sizes","CustomEventDetails":"./lib/interfaces/custom-event-details","LabelValuePair":"./lib/interfaces/label-value-pair","CustomEventBroadcasterService":"./lib/services/custom-event-broadcaster.service","OSDetectorService":"./lib/services/os-detector.service","PaginatorConfig":"./lib/interfaces/paginator-config","ControlValueAccessorEnabler":"./lib/entities/control-value-accessor-enabler","NgSqCommonModule":"./lib/ng-sq-common.module","ɵa":"./lib/directives/scrolled-to-bottom-listener.directive"},"importAs":"@sq-ui/ng-sq-common"} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1701
248412
41