Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-widgets

Package Overview
Dependencies
Maintainers
1
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-widgets - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

88

bundles/widgets.umd.js

@@ -44,3 +44,3 @@ (function (global, factory) {

var ContainerTogglerModule = (function () {
exports.ContainerTogglerModule = (function () {
function ContainerTogglerModule() {

@@ -50,3 +50,3 @@ }

}());
ContainerTogglerModule = __decorate([
exports.ContainerTogglerModule = __decorate([
_angular_core.NgModule({

@@ -58,3 +58,3 @@ imports: [_angular_common.CommonModule],

})
], ContainerTogglerModule);
], exports.ContainerTogglerModule);

@@ -159,3 +159,3 @@ var Dialog = (function () {

var DialogModule = (function () {
exports.DialogModule = (function () {
function DialogModule() {

@@ -165,3 +165,3 @@ }

}());
DialogModule = __decorate([
exports.DialogModule = __decorate([
_angular_core.NgModule({

@@ -172,3 +172,3 @@ imports: [_angular_common.CommonModule],

})
], DialogModule);
], exports.DialogModule);

@@ -231,3 +231,3 @@ var DropdownOption = (function () {

var DropdownModule = (function () {
exports.DropdownModule = (function () {
function DropdownModule() {

@@ -237,3 +237,3 @@ }

}());
DropdownModule = __decorate([
exports.DropdownModule = __decorate([
_angular_core.NgModule({

@@ -244,3 +244,3 @@ imports: [_angular_common.CommonModule],

})
], DropdownModule);
], exports.DropdownModule);

@@ -331,3 +331,3 @@ var AlmEditableDirective = (function () {

var AlmEditableModule = (function () {
exports.AlmEditableModule = (function () {
function AlmEditableModule() {

@@ -337,3 +337,3 @@ }

}());
AlmEditableModule = __decorate([
exports.AlmEditableModule = __decorate([
_angular_core.NgModule({

@@ -344,3 +344,3 @@ imports: [_angular_common.CommonModule],

})
], AlmEditableModule);
], exports.AlmEditableModule);

@@ -415,3 +415,3 @@ var IconMap = {

var AlmIconModule = (function () {
exports.AlmIconModule = (function () {
function AlmIconModule() {

@@ -421,3 +421,3 @@ }

}());
AlmIconModule = __decorate([
exports.AlmIconModule = __decorate([
_angular_core.NgModule({

@@ -428,3 +428,3 @@ imports: [_angular_common.CommonModule],

})
], AlmIconModule);
], exports.AlmIconModule);

@@ -503,3 +503,3 @@ var InfiniteScrollDirective = (function () {

var InfiniteScrollModule = (function () {
exports.InfiniteScrollModule = (function () {
function InfiniteScrollModule() {

@@ -509,3 +509,3 @@ }

}());
InfiniteScrollModule = __decorate([
exports.InfiniteScrollModule = __decorate([
_angular_core.NgModule({

@@ -516,5 +516,5 @@ imports: [_angular_common.CommonModule],

})
], InfiniteScrollModule);
], exports.InfiniteScrollModule);
var AlmArrayFilter = (function () {
exports.AlmArrayFilter = (function () {
function AlmArrayFilter() {

@@ -535,5 +535,5 @@ }

}());
AlmArrayFilter = __decorate([
exports.AlmArrayFilter = __decorate([
_angular_core.Pipe({ name: 'almArrayFilter', pure: false })
], AlmArrayFilter);
], exports.AlmArrayFilter);

@@ -548,3 +548,3 @@ /*

*/
var AlmAvatarSize = (function () {
exports.AlmAvatarSize = (function () {
function AlmAvatarSize() {

@@ -557,7 +557,7 @@ }

}());
AlmAvatarSize = __decorate([
exports.AlmAvatarSize = __decorate([
_angular_core.Pipe({ name: 'almAvatarSize' })
], AlmAvatarSize);
], exports.AlmAvatarSize);
var AlmLinkTarget = (function () {
exports.AlmLinkTarget = (function () {
function AlmLinkTarget() {

@@ -578,7 +578,7 @@ }

}());
AlmLinkTarget = __decorate([
exports.AlmLinkTarget = __decorate([
_angular_core.Pipe({ name: 'almLinkTarget' })
], AlmLinkTarget);
], exports.AlmLinkTarget);
var AlmSearchHighlight = (function () {
exports.AlmSearchHighlight = (function () {
function AlmSearchHighlight() {

@@ -623,7 +623,7 @@ }

}());
AlmSearchHighlight = __decorate([
exports.AlmSearchHighlight = __decorate([
_angular_core.Pipe({ name: 'almSearchHighlight' })
], AlmSearchHighlight);
], exports.AlmSearchHighlight);
var AlmTrim = (function () {
exports.AlmTrim = (function () {
function AlmTrim() {

@@ -639,5 +639,5 @@ }

}());
AlmTrim = __decorate([
exports.AlmTrim = __decorate([
_angular_core.Pipe({ name: 'almTrim' })
], AlmTrim);
], exports.AlmTrim);

@@ -660,14 +660,14 @@ // import './rxjs-extensions';

exports: [
AlmArrayFilter,
AlmAvatarSize,
AlmLinkTarget,
exports.AlmArrayFilter,
exports.AlmAvatarSize,
exports.AlmLinkTarget,
// AlmMomentTime,
AlmSearchHighlight,
AlmTrim,
ContainerTogglerModule,
DialogModule,
DropdownModule,
AlmEditableModule,
AlmIconModule,
InfiniteScrollModule
exports.AlmSearchHighlight,
exports.AlmTrim,
exports.ContainerTogglerModule,
exports.DialogModule,
exports.DropdownModule,
exports.AlmEditableModule,
exports.AlmIconModule,
exports.InfiniteScrollModule
]

@@ -674,0 +674,0 @@ })

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/forms","@angular/common"],e):e((t.ng=t.ng||{},t.ng.widgets=t.ng.widgets||{}),t.ng.core,t.ng.forms,t.ng.common)}(this,function(t,e,n,o){"use strict";var i=function(){function t(){this.nextBtn=new e.EventEmitter,this.prevBtn=new e.EventEmitter}return t.prototype.prev=function(){this.prevBtn.emit("P")},t.prototype.next=function(){this.nextBtn.emit("N")},t}();__decorate([e.Output(),__metadata("design:type",Object)],i.prototype,"nextBtn",void 0),__decorate([e.Output(),__metadata("design:type",Object)],i.prototype,"prevBtn",void 0),i=__decorate([e.Component({selector:"f8-container-toggler",encapsulation:e.ViewEncapsulation.None,templateUrl:"./container-toggler.html",styleUrls:["container-toggler.scss"]}),__metadata("design:paramtypes",[])],i);var a=function(){function t(){}return t}();a=__decorate([e.NgModule({imports:[o.CommonModule],declarations:[i],schemas:[e.CUSTOM_ELEMENTS_SCHEMA],exports:[i]})],a);var r=function(){function t(){this.title="Dialog Title",this.message="Dialog Message"}return t}(),s=function(){function t(){this.onClick=new e.EventEmitter,this.modalFadeIn=!1,this.modalState="inactive"}return t.prototype.ngOnInit=function(){var t=this;this.modalFadeIn=!0,setTimeout(function(){return t.modalState="active"})},t.prototype.closeModal=function(){this.btnClick(0)},t.prototype.btnClick=function(t){var e=this;this.modalState="inactive",setTimeout(function(){e.onClick.emit(t),e.modalFadeIn=!1},300)},t.prototype.onActionKeyPress=function(t){var e=this.dialog.actionButtons.findIndex(function(t){return t.default});this.dialog.actionButtons[e].default=!1;var n=this.dialog.actionButtons.length;if(37==t.keyCode){var o=(e-1+n)%n;this.dialog.actionButtons[o].default=!0}else if(39==t.keyCode){var o=(e-1+n)%n;this.dialog.actionButtons[o].default=!0}else 13==t.keyCode?this.btnClick(this.dialog.actionButtons[e].value):27==t.keyCode&&this.btnClick(0)},t}();__decorate([e.Input(),__metadata("design:type",r)],s.prototype,"dialog",void 0),__decorate([e.Output("pfDialogClick"),__metadata("design:type",Object)],s.prototype,"onClick",void 0),__decorate([e.HostListener("window:keydown",["$event"]),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],s.prototype,"onActionKeyPress",null),s=__decorate([e.Component({selector:"alm-dialog",templateUrl:"./dialog.component.html",styleUrls:["./dialog.component.scss"],animations:[e.trigger("modalState",[e.state("inactive",e.style({opacity:"0",transform:"translateY(-50%)"})),e.state("active",e.style({opacity:"1",transform:"translateY(0)"})),e.transition("inactive <=>active",e.animate("500ms ease all"))]),e.trigger("modalOverlay",[e.state("inactive",e.style({background:"transparent"})),e.state("active",e.style({background:"rgba(0,0,0,0.4)"})),e.transition("inactive <=>active",e.animate("500ms ease all"))])]}),__metadata("design:paramtypes",[])],s);var c=function(){function t(){}return t}();c=__decorate([e.NgModule({imports:[o.CommonModule],declarations:[s],exports:[s]})],c);var l=function(){function t(){}return t}(),d=function(){function t(){this.onUpdate=new e.EventEmitter,this.show=!1}return t.prototype.ngOnInit=function(){},t.prototype.toggle=function(){this.show=!this.show},t.prototype.open=function(){this.show=!0},t.prototype.close=function(){this.show=!1},t.prototype.onChange=function(t){this.onUpdate.emit({currentOption:this.selected,newOption:t}),this.toggle()},t}();__decorate([e.Input(),__metadata("design:type",Array)],d.prototype,"options",void 0),__decorate([e.Input(),__metadata("design:type",l)],d.prototype,"selected",void 0),__decorate([e.Input(),__metadata("design:type",Boolean)],d.prototype,"disabled",void 0),__decorate([e.Output("change"),__metadata("design:type",Object)],d.prototype,"onUpdate",void 0),d=__decorate([e.Component({selector:"alm-dropdown",templateUrl:"./dropdown.component.html",styleUrls:["./dropdown.component.scss"]}),__metadata("design:paramtypes",[])],d);var p=function(){function t(){}return t}();p=__decorate([e.NgModule({imports:[o.CommonModule],declarations:[d],exports:[d]})],p);var u=function(){function t(t){this.elementRef=t,this.onUpdate=new e.EventEmitter,this.editable=!0,this.content="",this.element=this.elementRef.nativeElement}return t.prototype.ngOnInit=function(){this.element.style.whiteSpace="pre-wrap",this.editable&&this.makeEditable()},t.prototype.ngOnChanges=function(){this.editable?this.makeEditable():this.makeNonEditable()},t.prototype.onEdit=function(){var t=this.element.innerText;this.content!=t&&(this.content=t,this.onUpdate.emit(this.content))},t.prototype.makeEditable=function(){this.element.setAttribute("contenteditable","true"),this.element.focus()},t.prototype.makeNonEditable=function(){this.element.setAttribute("contenteditable","null")},t.prototype.listenToKeypress=function(t){this.editable&&this.onEdit()},t.prototype.focusField=function(){var t=this;setTimeout(function(){if(t.element.childNodes.length){var e=document.createRange(),n=window.getSelection();e.setStart(t.element.childNodes[t.element.childNodes.length-1],t.element.childNodes[t.element.childNodes.length-1].nodeValue.length),e.collapse(!0),n.removeAllRanges(),n.addRange(e)}})},t}();__decorate([e.Output("onUpdate"),__metadata("design:type",Object)],u.prototype,"onUpdate",void 0),__decorate([e.Input(),__metadata("design:type",Object)],u.prototype,"editable",void 0),__decorate([e.HostListener("window:keyup",["$event"]),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],u.prototype,"listenToKeypress",null),__decorate([e.HostListener("focus"),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],u.prototype,"focusField",null),u=__decorate([e.Directive({selector:"[almEditable]",exportAs:"almEditable"}),__metadata("design:paramtypes",[e.ElementRef])],u);var m=function(){function t(){}return t}();m=__decorate([e.NgModule({imports:[o.CommonModule],declarations:[u],exports:[u]})],m);var h={"in progress":["pficon","pficon-resources-almost-full"],new:["fa","fa-arrow-down"],resolved:["pficon","pficon-resources-full"],open:["fa","fa-fire"],closed:["fa","fa-remove"],"system.userstory":["fa","fa-bookmark"],"system.valueproposition":["fa","fa-gift"],"system.fundamental":["fa","fa-bank"],"system.experience":["fa","fa-map"],"system.feature":["fa","fa-mouse-pointer"],"system.bug":["fa","fa-bug"],"system.planneritem":["fa","fa-paint-brush"],default:["fa","fa-crosshairs"]},f=function(){function t(t){this.elementRef=t,this.iconType="none"}return t.prototype.ngOnInit=function(){this.addIcon()},t.prototype.ngOnChanges=function(){this.addIcon()},t.prototype.addIcon=function(){var t=this.elementRef.nativeElement,e=t.className.split(" "),n=[];for(var o in h)h.hasOwnProperty(o)&&h[o].forEach(function(t){n.push(t)});e.forEach(function(e){n.indexOf(e)>-1&&t.classList.remove(e)}),this.iconType in h?h[this.iconType].forEach(function(e){t.classList.add(e)}):h.default.forEach(function(e){t.classList.add(e)})},t}();__decorate([e.Input(),__metadata("design:type",String)],f.prototype,"iconType",void 0),f=__decorate([e.Directive({selector:"[almIcon]",exportAs:"almIcon"}),__metadata("design:paramtypes",[e.ElementRef])],f);var g=function(){function t(){}return t}();g=__decorate([e.NgModule({imports:[o.CommonModule],declarations:[f],exports:[f]})],g);var _=function(){function t(t){this.elementRef=t,this.initItems=new e.EventEmitter,this.fetchMore=new e.EventEmitter,this.eachElementHeightInPx=20,this.fetchThreshold=5,this.pageSize=10,this.lastCheckedHeight=0,this.previousScrollHeight=0,this.element=this.elementRef.nativeElement}return t.prototype.ngOnInit=function(){this.pageSize=Math.ceil(this.element.offsetHeight/this.eachElementHeightInPx),this.pageSize+=2*this.fetchThreshold,this.initContentItems()},t.prototype.initContentItems=function(){this.initItems.emit({pageSize:this.pageSize})},t.prototype.onScrollContainer=function(t){if(this.element.scrollHeight>this.lastCheckedHeight){this.previousScrollHeight=this.element.scrollHeight;var e=this.element.scrollHeight-(this.element.offsetHeight+this.element.scrollTop),n=Math.ceil(e/this.eachElementHeightInPx);n<this.fetchThreshold&&(this.lastCheckedHeight=this.element.scrollHeight,this.fetchMore.emit())}else this.element.scrollHeight<this.previousScrollHeight&&(this.previousScrollHeight=this.element.scrollHeight,this.lastCheckedHeight=0,this.element.scrollTop=0)},t}();__decorate([e.Output("initItems"),__metadata("design:type",Object)],_.prototype,"initItems",void 0),__decorate([e.Output("fetchMore"),__metadata("design:type",Object)],_.prototype,"fetchMore",void 0),__decorate([e.Input(),__metadata("design:type",Number)],_.prototype,"eachElementHeightInPx",void 0),__decorate([e.Input(),__metadata("design:type",Number)],_.prototype,"fetchThreshold",void 0),__decorate([e.HostListener("scroll",["$event"]),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],_.prototype,"onScrollContainer",null),_=__decorate([e.Directive({selector:"[almInfiniteScroll]",exportAs:"almInfiniteScroll"}),__metadata("design:paramtypes",[e.ElementRef])],_);var y=function(){function t(){}return t}();y=__decorate([e.NgModule({imports:[o.CommonModule],declarations:[_],exports:[_]})],y);var v=function(){function t(){}return t.prototype.transform=function(t,e){var n=Object.keys(e);return t.filter(function(t){for(var o=0;o<n.length;o++)return t[n[o]]==e[n[o]]})},t}();v=__decorate([e.Pipe({name:"almArrayFilter",pure:!1})],v);var b=function(){function t(){}return t.prototype.transform=function(t,e){return t+"&s="+e},t}();b=__decorate([e.Pipe({name:"almAvatarSize"})],b);var E=function(){function t(){}return t.prototype.transform=function(t,e,n){var o="";return t.relationships.source.data.id==e.id&&t.relationships.link_type.data.id==n.id?o=t.relationships.target.data.id:t.relationships.target.data.id==e.id&&t.relationships.link_type.data.id==n.id&&(o=t.relationships.source.data.id),o},t}();E=__decorate([e.Pipe({name:"almLinkTarget"})],E);var C=function(){function t(){}return t.prototype.transform=function(t,e){if(""!=e&&e.length){var n=t.toLowerCase();return e=e.toLowerCase(),n?this.convertToOriginal(n.split(e).join("<b>"+e+"</b>"),t):""}return t},t.prototype.convertToOriginal=function(t,e){for(var n="",o=!1,i=0,a=0;a<t.length;a++)"<"==t[a]?(o=!0,n+=t[a]):">"==t[a]?(o=!1,n+=t[a]):n+=o?t[a]:e[i++];return n},t}();C=__decorate([e.Pipe({name:"almSearchHighlight"})],C);var O=function(){function t(){}return t.prototype.transform=function(t){return t?t.trim():""},t}();O=__decorate([e.Pipe({name:"almTrim"})],O),t.WidgetsModule=function(){function t(){}return t}(),t.WidgetsModule=__decorate([e.NgModule({imports:[n.FormsModule,e.Pipe],declarations:[],exports:[v,b,E,C,O,a,c,p,m,g,y]})],t.WidgetsModule),Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/forms","@angular/common"],e):e((t.ng=t.ng||{},t.ng.widgets=t.ng.widgets||{}),t.ng.core,t.ng.forms,t.ng.common)}(this,function(t,e,n,o){"use strict";var i=function(){function t(){this.nextBtn=new e.EventEmitter,this.prevBtn=new e.EventEmitter}return t.prototype.prev=function(){this.prevBtn.emit("P")},t.prototype.next=function(){this.nextBtn.emit("N")},t}();__decorate([e.Output(),__metadata("design:type",Object)],i.prototype,"nextBtn",void 0),__decorate([e.Output(),__metadata("design:type",Object)],i.prototype,"prevBtn",void 0),i=__decorate([e.Component({selector:"f8-container-toggler",encapsulation:e.ViewEncapsulation.None,templateUrl:"./container-toggler.html",styleUrls:["container-toggler.scss"]}),__metadata("design:paramtypes",[])],i),t.ContainerTogglerModule=function(){function t(){}return t}(),t.ContainerTogglerModule=__decorate([e.NgModule({imports:[o.CommonModule],declarations:[i],schemas:[e.CUSTOM_ELEMENTS_SCHEMA],exports:[i]})],t.ContainerTogglerModule);var a=function(){function t(){this.title="Dialog Title",this.message="Dialog Message"}return t}(),r=function(){function t(){this.onClick=new e.EventEmitter,this.modalFadeIn=!1,this.modalState="inactive"}return t.prototype.ngOnInit=function(){var t=this;this.modalFadeIn=!0,setTimeout(function(){return t.modalState="active"})},t.prototype.closeModal=function(){this.btnClick(0)},t.prototype.btnClick=function(t){var e=this;this.modalState="inactive",setTimeout(function(){e.onClick.emit(t),e.modalFadeIn=!1},300)},t.prototype.onActionKeyPress=function(t){var e=this.dialog.actionButtons.findIndex(function(t){return t.default});this.dialog.actionButtons[e].default=!1;var n=this.dialog.actionButtons.length;if(37==t.keyCode){var o=(e-1+n)%n;this.dialog.actionButtons[o].default=!0}else if(39==t.keyCode){var o=(e-1+n)%n;this.dialog.actionButtons[o].default=!0}else 13==t.keyCode?this.btnClick(this.dialog.actionButtons[e].value):27==t.keyCode&&this.btnClick(0)},t}();__decorate([e.Input(),__metadata("design:type",a)],r.prototype,"dialog",void 0),__decorate([e.Output("pfDialogClick"),__metadata("design:type",Object)],r.prototype,"onClick",void 0),__decorate([e.HostListener("window:keydown",["$event"]),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],r.prototype,"onActionKeyPress",null),r=__decorate([e.Component({selector:"alm-dialog",templateUrl:"./dialog.component.html",styleUrls:["./dialog.component.scss"],animations:[e.trigger("modalState",[e.state("inactive",e.style({opacity:"0",transform:"translateY(-50%)"})),e.state("active",e.style({opacity:"1",transform:"translateY(0)"})),e.transition("inactive <=>active",e.animate("500ms ease all"))]),e.trigger("modalOverlay",[e.state("inactive",e.style({background:"transparent"})),e.state("active",e.style({background:"rgba(0,0,0,0.4)"})),e.transition("inactive <=>active",e.animate("500ms ease all"))])]}),__metadata("design:paramtypes",[])],r),t.DialogModule=function(){function t(){}return t}(),t.DialogModule=__decorate([e.NgModule({imports:[o.CommonModule],declarations:[r],exports:[r]})],t.DialogModule);var s=function(){function t(){}return t}(),l=function(){function t(){this.onUpdate=new e.EventEmitter,this.show=!1}return t.prototype.ngOnInit=function(){},t.prototype.toggle=function(){this.show=!this.show},t.prototype.open=function(){this.show=!0},t.prototype.close=function(){this.show=!1},t.prototype.onChange=function(t){this.onUpdate.emit({currentOption:this.selected,newOption:t}),this.toggle()},t}();__decorate([e.Input(),__metadata("design:type",Array)],l.prototype,"options",void 0),__decorate([e.Input(),__metadata("design:type",s)],l.prototype,"selected",void 0),__decorate([e.Input(),__metadata("design:type",Boolean)],l.prototype,"disabled",void 0),__decorate([e.Output("change"),__metadata("design:type",Object)],l.prototype,"onUpdate",void 0),l=__decorate([e.Component({selector:"alm-dropdown",templateUrl:"./dropdown.component.html",styleUrls:["./dropdown.component.scss"]}),__metadata("design:paramtypes",[])],l),t.DropdownModule=function(){function t(){}return t}(),t.DropdownModule=__decorate([e.NgModule({imports:[o.CommonModule],declarations:[l],exports:[l]})],t.DropdownModule);var d=function(){function t(t){this.elementRef=t,this.onUpdate=new e.EventEmitter,this.editable=!0,this.content="",this.element=this.elementRef.nativeElement}return t.prototype.ngOnInit=function(){this.element.style.whiteSpace="pre-wrap",this.editable&&this.makeEditable()},t.prototype.ngOnChanges=function(){this.editable?this.makeEditable():this.makeNonEditable()},t.prototype.onEdit=function(){var t=this.element.innerText;this.content!=t&&(this.content=t,this.onUpdate.emit(this.content))},t.prototype.makeEditable=function(){this.element.setAttribute("contenteditable","true"),this.element.focus()},t.prototype.makeNonEditable=function(){this.element.setAttribute("contenteditable","null")},t.prototype.listenToKeypress=function(t){this.editable&&this.onEdit()},t.prototype.focusField=function(){var t=this;setTimeout(function(){if(t.element.childNodes.length){var e=document.createRange(),n=window.getSelection();e.setStart(t.element.childNodes[t.element.childNodes.length-1],t.element.childNodes[t.element.childNodes.length-1].nodeValue.length),e.collapse(!0),n.removeAllRanges(),n.addRange(e)}})},t}();__decorate([e.Output("onUpdate"),__metadata("design:type",Object)],d.prototype,"onUpdate",void 0),__decorate([e.Input(),__metadata("design:type",Object)],d.prototype,"editable",void 0),__decorate([e.HostListener("window:keyup",["$event"]),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],d.prototype,"listenToKeypress",null),__decorate([e.HostListener("focus"),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],d.prototype,"focusField",null),d=__decorate([e.Directive({selector:"[almEditable]",exportAs:"almEditable"}),__metadata("design:paramtypes",[e.ElementRef])],d),t.AlmEditableModule=function(){function t(){}return t}(),t.AlmEditableModule=__decorate([e.NgModule({imports:[o.CommonModule],declarations:[d],exports:[d]})],t.AlmEditableModule);var c={"in progress":["pficon","pficon-resources-almost-full"],new:["fa","fa-arrow-down"],resolved:["pficon","pficon-resources-full"],open:["fa","fa-fire"],closed:["fa","fa-remove"],"system.userstory":["fa","fa-bookmark"],"system.valueproposition":["fa","fa-gift"],"system.fundamental":["fa","fa-bank"],"system.experience":["fa","fa-map"],"system.feature":["fa","fa-mouse-pointer"],"system.bug":["fa","fa-bug"],"system.planneritem":["fa","fa-paint-brush"],default:["fa","fa-crosshairs"]},p=function(){function t(t){this.elementRef=t,this.iconType="none"}return t.prototype.ngOnInit=function(){this.addIcon()},t.prototype.ngOnChanges=function(){this.addIcon()},t.prototype.addIcon=function(){var t=this.elementRef.nativeElement,e=t.className.split(" "),n=[];for(var o in c)c.hasOwnProperty(o)&&c[o].forEach(function(t){n.push(t)});e.forEach(function(e){n.indexOf(e)>-1&&t.classList.remove(e)}),this.iconType in c?c[this.iconType].forEach(function(e){t.classList.add(e)}):c.default.forEach(function(e){t.classList.add(e)})},t}();__decorate([e.Input(),__metadata("design:type",String)],p.prototype,"iconType",void 0),p=__decorate([e.Directive({selector:"[almIcon]",exportAs:"almIcon"}),__metadata("design:paramtypes",[e.ElementRef])],p),t.AlmIconModule=function(){function t(){}return t}(),t.AlmIconModule=__decorate([e.NgModule({imports:[o.CommonModule],declarations:[p],exports:[p]})],t.AlmIconModule);var u=function(){function t(t){this.elementRef=t,this.initItems=new e.EventEmitter,this.fetchMore=new e.EventEmitter,this.eachElementHeightInPx=20,this.fetchThreshold=5,this.pageSize=10,this.lastCheckedHeight=0,this.previousScrollHeight=0,this.element=this.elementRef.nativeElement}return t.prototype.ngOnInit=function(){this.pageSize=Math.ceil(this.element.offsetHeight/this.eachElementHeightInPx),this.pageSize+=2*this.fetchThreshold,this.initContentItems()},t.prototype.initContentItems=function(){this.initItems.emit({pageSize:this.pageSize})},t.prototype.onScrollContainer=function(t){if(this.element.scrollHeight>this.lastCheckedHeight){this.previousScrollHeight=this.element.scrollHeight;var e=this.element.scrollHeight-(this.element.offsetHeight+this.element.scrollTop),n=Math.ceil(e/this.eachElementHeightInPx);n<this.fetchThreshold&&(this.lastCheckedHeight=this.element.scrollHeight,this.fetchMore.emit())}else this.element.scrollHeight<this.previousScrollHeight&&(this.previousScrollHeight=this.element.scrollHeight,this.lastCheckedHeight=0,this.element.scrollTop=0)},t}();__decorate([e.Output("initItems"),__metadata("design:type",Object)],u.prototype,"initItems",void 0),__decorate([e.Output("fetchMore"),__metadata("design:type",Object)],u.prototype,"fetchMore",void 0),__decorate([e.Input(),__metadata("design:type",Number)],u.prototype,"eachElementHeightInPx",void 0),__decorate([e.Input(),__metadata("design:type",Number)],u.prototype,"fetchThreshold",void 0),__decorate([e.HostListener("scroll",["$event"]),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],u.prototype,"onScrollContainer",null),u=__decorate([e.Directive({selector:"[almInfiniteScroll]",exportAs:"almInfiniteScroll"}),__metadata("design:paramtypes",[e.ElementRef])],u),t.InfiniteScrollModule=function(){function t(){}return t}(),t.InfiniteScrollModule=__decorate([e.NgModule({imports:[o.CommonModule],declarations:[u],exports:[u]})],t.InfiniteScrollModule),t.AlmArrayFilter=function(){function t(){}return t.prototype.transform=function(t,e){var n=Object.keys(e);return t.filter(function(t){for(var o=0;o<n.length;o++)return t[n[o]]==e[n[o]]})},t}(),t.AlmArrayFilter=__decorate([e.Pipe({name:"almArrayFilter",pure:!1})],t.AlmArrayFilter),t.AlmAvatarSize=function(){function t(){}return t.prototype.transform=function(t,e){return t+"&s="+e},t}(),t.AlmAvatarSize=__decorate([e.Pipe({name:"almAvatarSize"})],t.AlmAvatarSize),t.AlmLinkTarget=function(){function t(){}return t.prototype.transform=function(t,e,n){var o="";return t.relationships.source.data.id==e.id&&t.relationships.link_type.data.id==n.id?o=t.relationships.target.data.id:t.relationships.target.data.id==e.id&&t.relationships.link_type.data.id==n.id&&(o=t.relationships.source.data.id),o},t}(),t.AlmLinkTarget=__decorate([e.Pipe({name:"almLinkTarget"})],t.AlmLinkTarget),t.AlmSearchHighlight=function(){function t(){}return t.prototype.transform=function(t,e){if(""!=e&&e.length){var n=t.toLowerCase();return e=e.toLowerCase(),n?this.convertToOriginal(n.split(e).join("<b>"+e+"</b>"),t):""}return t},t.prototype.convertToOriginal=function(t,e){for(var n="",o=!1,i=0,a=0;a<t.length;a++)"<"==t[a]?(o=!0,n+=t[a]):">"==t[a]?(o=!1,n+=t[a]):n+=o?t[a]:e[i++];return n},t}(),t.AlmSearchHighlight=__decorate([e.Pipe({name:"almSearchHighlight"})],t.AlmSearchHighlight),t.AlmTrim=function(){function t(){}return t.prototype.transform=function(t){return t?t.trim():""},t}(),t.AlmTrim=__decorate([e.Pipe({name:"almTrim"})],t.AlmTrim),t.WidgetsModule=function(){function t(){}return t}(),t.WidgetsModule=__decorate([e.NgModule({imports:[n.FormsModule,e.Pipe],declarations:[],exports:[t.AlmArrayFilter,t.AlmAvatarSize,t.AlmLinkTarget,t.AlmSearchHighlight,t.AlmTrim,t.ContainerTogglerModule,t.DialogModule,t.DropdownModule,t.AlmEditableModule,t.AlmIconModule,t.InfiniteScrollModule]})],t.WidgetsModule),Object.defineProperty(t,"__esModule",{value:!0})});
export { WidgetsModule } from './widgets.module';
export { ContainerTogglerModule } from './src/app/container-toggler/container-toggler.module';
export { DialogModule } from './src/app/dialog/dialog.module';
export { DropdownModule } from './src/app/dropdown/dropdown.module';
export { AlmEditableModule } from './src/app/editable/almeditable.module';
export { AlmIconModule } from './src/app/icon/almicon.module';
export { InfiniteScrollModule } from './src/app/infinitescroll/infinitescroll.module';
export { AlmArrayFilter } from './src/app/pipes/alm-array-filter.pipe';
export { AlmAvatarSize } from './src/app/pipes/alm-avatar-size.pipe';
export { AlmLinkTarget } from './src/app/pipes/alm-link-target.pipe';
export { AlmSearchHighlight } from './src/app/pipes/alm-search-highlight.pipe';
export { AlmTrim } from './src/app/pipes/alm-trim';
export { WidgetsModule } from './widgets.module';
export { ContainerTogglerModule } from './src/app/container-toggler/container-toggler.module';
export { DialogModule } from './src/app/dialog/dialog.module';
export { DropdownModule } from './src/app/dropdown/dropdown.module';
export { AlmEditableModule } from './src/app/editable/almeditable.module';
export { AlmIconModule } from './src/app/icon/almicon.module';
export { InfiniteScrollModule } from './src/app/infinitescroll/infinitescroll.module';
export { AlmArrayFilter } from './src/app/pipes/alm-array-filter.pipe';
export { AlmAvatarSize } from './src/app/pipes/alm-avatar-size.pipe';
export { AlmLinkTarget } from './src/app/pipes/alm-link-target.pipe';
// export { AlmMomentTime } from './src/app/pipes/alm-moment-time.pipe';
export { AlmSearchHighlight } from './src/app/pipes/alm-search-highlight.pipe';
export { AlmTrim } from './src/app/pipes/alm-trim';
//# sourceMappingURL=index.js.map

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./widgets.module","export":["WidgetsModule"]}]}
{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./widgets.module","export":["WidgetsModule"]},{"from":"./src/app/container-toggler/container-toggler.module","export":["ContainerTogglerModule"]},{"from":"./src/app/dialog/dialog.module","export":["DialogModule"]},{"from":"./src/app/dropdown/dropdown.module","export":["DropdownModule"]},{"from":"./src/app/editable/almeditable.module","export":["AlmEditableModule"]},{"from":"./src/app/icon/almicon.module","export":["AlmIconModule"]},{"from":"./src/app/infinitescroll/infinitescroll.module","export":["InfiniteScrollModule"]},{"from":"./src/app/pipes/alm-array-filter.pipe","export":["AlmArrayFilter"]},{"from":"./src/app/pipes/alm-avatar-size.pipe","export":["AlmAvatarSize"]},{"from":"./src/app/pipes/alm-link-target.pipe","export":["AlmLinkTarget"]},{"from":"./src/app/pipes/alm-search-highlight.pipe","export":["AlmSearchHighlight"]},{"from":"./src/app/pipes/alm-trim","export":["AlmTrim"]}]}
{
"name": "ngx-widgets",
"version": "0.1.0",
"version": "0.1.1",
"description": "A collection of Angular components and other useful things to be shared.",

@@ -5,0 +5,0 @@ "main": "bundles/widgets.umd.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc