New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

primeng

Package Overview
Dependencies
Maintainers
1
Versions
377
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

primeng - npm Package Compare versions

Comparing version 1.0.0-beta.1 to 1.0.0-beta.2

2

components/autocomplete/autocomplete.d.ts

@@ -16,3 +16,3 @@ import { ElementRef, AfterViewInit, AfterViewChecked, DoCheck, EventEmitter, TemplateRef, IterableDiffers, Renderer } from 'angular2/core';

readonly: number;
disabled: number;
disabled: boolean;
maxlength: number;

@@ -19,0 +19,0 @@ size: number;

@@ -300,3 +300,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

core_1.Input(),
__metadata('design:type', Number)
__metadata('design:type', Boolean)
], AutoComplete.prototype, "disabled", void 0);

@@ -354,3 +354,3 @@ __decorate([

selector: 'p-autoComplete',
template: "\n <span [ngClass]=\"{'ui-autocomplete ui-widget':true,'ui-autocomplete-dd':dropdown}\" [attr.style]=\"style\" [attr.styleClass]=\"styleClass\">\n <input *ngIf=\"!multiple\" #in pInputText type=\"text\" [attr.style]=\"inputStyle\" [attr.styleClass]=\"inputStyleClass\" \n [value]=\"value ? (field ? resolveFieldData(value)||value : value) : null\" (input)=\"onInput($event)\" (keydown)=\"onKeydown($event)\" (blur)=\"onModelTouched()\"\n [attr.placeholder]=\"placeholder\" [attr.size]=\"size\" [attr.maxlength]=\"maxlength\" [attr.readonly]=\"readonly\" [attr.disabled]=\"disabled\" \n ><ul *ngIf=\"multiple\" class=\"ui-autocomplete-multiple ui-widget ui-inputtext ui-state-default ui-corner-all\" (click)=\"multiIn.focus()\">\n <li #token *ngFor=\"#val of value\" class=\"ui-autocomplete-token ui-state-highlight ui-corner-all\">\n <span class=\"ui-autocomplete-token-icon fa fa-fw fa-close\" (click)=\"removeItem(token)\"></span>\n <span class=\"ui-autocomplete-token-label\">{{val[field]}}</span>\n </li>\n <li class=\"ui-autocomplete-input-token\">\n <input #multiIn type=\"text\" pInputText (input)=\"onInput($event)\" (keydown)=\"onKeydown($event)\" (blur)=\"onModelTouched()\">\n </li>\n </ul\n ><button type=\"button\" pButton icon=\"fa-fw fa-caret-down\" class=\"ui-autocomplete-dropdown\" (click)=\"handleDropdownClick($event)\" *ngIf=\"dropdown\"></button>\n <div class=\"ui-autocomplete-panel ui-widget-content ui-corner-all ui-shadow\" [style.display]=\"panelVisible ? 'block' : 'none'\" [style.width]=\"'100%'\" [style.max-height]=\"scrollHeight\">\n <ul class=\"ui-autocomplete-items ui-autocomplete-list ui-widget-content ui-widget ui-corner-all ui-helper-reset\" \n (mouseover)=\"onItemMouseover($event)\" (mouseout)=\"onItemMouseout($event)\" (click)=\"onItemClick($event)\" *ngIf=\"!itemTemplate\">\n <li class=\"ui-autocomplete-list-item ui-corner-all\" *ngFor=\"#item of suggestions\">{{field ? item[field] : item}}</li>\n </ul>\n <ul class=\"ui-autocomplete-items ui-autocomplete-list ui-widget-content ui-widget ui-corner-all ui-helper-reset\" \n (mouseover)=\"onItemMouseover($event)\" (mouseout)=\"onItemMouseout($event)\" (click)=\"onItemClick($event)\"*ngIf=\"itemTemplate\">\n <template ngFor [ngForOf]=\"suggestions\" [ngForTemplate]=\"itemTemplate\"></template>\n </ul>\n </div>\n </span>\n ",
template: "\n <span [ngClass]=\"{'ui-autocomplete ui-widget':true,'ui-autocomplete-dd':dropdown}\" [attr.style]=\"style\" [attr.styleClass]=\"styleClass\">\n <input *ngIf=\"!multiple\" #in pInputText type=\"text\" [attr.style]=\"inputStyle\" [attr.styleClass]=\"inputStyleClass\" \n [value]=\"value ? (field ? resolveFieldData(value)||value : value) : null\" (input)=\"onInput($event)\" (keydown)=\"onKeydown($event)\" (blur)=\"onModelTouched()\"\n [attr.placeholder]=\"placeholder\" [attr.size]=\"size\" [attr.maxlength]=\"maxlength\" [attr.readonly]=\"readonly\" [disabled]=\"disabled\" \n ><ul *ngIf=\"multiple\" class=\"ui-autocomplete-multiple ui-widget ui-inputtext ui-state-default ui-corner-all\" (click)=\"multiIn.focus()\">\n <li #token *ngFor=\"#val of value\" class=\"ui-autocomplete-token ui-state-highlight ui-corner-all\">\n <span class=\"ui-autocomplete-token-icon fa fa-fw fa-close\" (click)=\"removeItem(token)\"></span>\n <span class=\"ui-autocomplete-token-label\">{{val[field]}}</span>\n </li>\n <li class=\"ui-autocomplete-input-token\">\n <input #multiIn type=\"text\" pInputText (input)=\"onInput($event)\" (keydown)=\"onKeydown($event)\" (blur)=\"onModelTouched()\">\n </li>\n </ul\n ><button type=\"button\" pButton icon=\"fa-fw fa-caret-down\" class=\"ui-autocomplete-dropdown\" [disabled]=\"disabled\"\n (click)=\"handleDropdownClick($event)\" *ngIf=\"dropdown\"></button>\n <div class=\"ui-autocomplete-panel ui-widget-content ui-corner-all ui-shadow\" [style.display]=\"panelVisible ? 'block' : 'none'\" [style.width]=\"'100%'\" [style.max-height]=\"scrollHeight\">\n <ul class=\"ui-autocomplete-items ui-autocomplete-list ui-widget-content ui-widget ui-corner-all ui-helper-reset\" \n (mouseover)=\"onItemMouseover($event)\" (mouseout)=\"onItemMouseout($event)\" (click)=\"onItemClick($event)\" *ngIf=\"!itemTemplate\">\n <li class=\"ui-autocomplete-list-item ui-corner-all\" *ngFor=\"#item of suggestions\">{{field ? item[field] : item}}</li>\n </ul>\n <ul class=\"ui-autocomplete-items ui-autocomplete-list ui-widget-content ui-widget ui-corner-all ui-helper-reset\" \n (mouseover)=\"onItemMouseover($event)\" (mouseout)=\"onItemMouseout($event)\" (click)=\"onItemClick($event)\"*ngIf=\"itemTemplate\">\n <template ngFor [ngForOf]=\"suggestions\" [ngForTemplate]=\"itemTemplate\"></template>\n </ul>\n </div>\n </span>\n ",
directives: [inputtext_1.InputText, button_1.Button],

@@ -357,0 +357,0 @@ providers: [domhandler_1.DomHandler, AUTOCOMPLETE_VALUE_ACCESSOR]

@@ -8,6 +8,7 @@ import { ElementRef, AfterViewInit, OnDestroy } from 'angular2/core';

iconPos: string;
label: string;
private _label;
private hover;
private focus;
private active;
private initialized;
constructor(el: ElementRef, domHandler: DomHandler);

@@ -23,3 +24,4 @@ ngAfterViewInit(): void;

getStyleClass(): string;
label: string;
ngOnDestroy(): void;
}

@@ -30,2 +30,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

this.el.nativeElement.appendChild(labelElement);
this.initialized = true;
};

@@ -72,2 +73,15 @@ Button.prototype.onMouseover = function (e) {

};
Object.defineProperty(Button.prototype, "label", {
get: function () {
return this._label;
},
set: function (val) {
this._label = val;
if (this.initialized) {
this.domHandler.findSingle(this.el.nativeElement, '.ui-button-text').textContent = this._label;
}
},
enumerable: true,
configurable: true
});
Button.prototype.ngOnDestroy = function () {

@@ -77,2 +91,3 @@ while (this.el.nativeElement.hasChildNodes()) {

}
this.initialized = false;
};

@@ -88,6 +103,2 @@ __decorate([

__decorate([
core_1.Input(),
__metadata('design:type', String)
], Button.prototype, "label", void 0);
__decorate([
core_1.HostListener('mouseover', ['$event']),

@@ -128,2 +139,6 @@ __metadata('design:type', Function),

], Button.prototype, "onBlur", null);
__decorate([
core_1.Input(),
__metadata('design:type', String)
], Button.prototype, "label", null);
Button = __decorate([

@@ -130,0 +145,0 @@ core_1.Directive({

@@ -14,3 +14,4 @@ import { TemplateRef } from 'angular2/core';

styleClass: string;
hidden: boolean;
template: TemplateRef;
}

@@ -59,2 +59,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

__decorate([
core_1.Input(),
__metadata('design:type', Boolean)
], Column.prototype, "hidden", void 0);
__decorate([
core_1.ContentChild(core_1.TemplateRef),

@@ -61,0 +65,0 @@ __metadata('design:type', core_1.TemplateRef)

@@ -758,3 +758,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

selector: 'p-dataTable',
template: "\n <div [attr.style]=\"style\" [attr.class]=\"styleClass\" \n [ngClass]=\"{'ui-datatable ui-widget': true, 'ui-datatable-reflow':responsive, 'ui-datatable-stacked': stacked}\">\n <div class=\"ui-datatable-header ui-widget-header\" *ngIf=\"header\">\n <ng-content select=\"header\"></ng-content>\n </div>\n <div class=\"ui-datatable-tablewrapper\" *ngIf=\"!scrollable\">\n <table>\n <thead>\n <tr *ngIf=\"!headerRows\" class=\"ui-state-default\">\n <th #headerCell *ngFor=\"#col of columns\" [attr.style]=\"col.style\" [attr.class]=\"col.styleClass\"\n (click)=\"sort($event,col)\" (mouseenter)=\"hoveredHeader = $event.target\" (mouseleave)=\"hoveredHeader = null\"\n [ngClass]=\"{'ui-state-default ui-unselectable-text':true, 'ui-state-hover': headerCell === hoveredHeader && col.sortable,'ui-sortable-column': col.sortable,'ui-state-active': isSorted(col)}\">\n <span class=\"ui-column-title\">{{col.header}}</span>\n <span class=\"ui-sortable-column-icon fa fa-fw fa-sort\" *ngIf=\"col.sortable\"\n [ngClass]=\"{'fa-sort-desc': (getSortOrder(col) == -1),'fa-sort-asc': (getSortOrder(col) == 1)}\"></span>\n <input type=\"text\" pInputText class=\"ui-column-filter\" *ngIf=\"col.filter\" (click)=\"onFilterInputClick($event)\" (keyup)=\"onFilterKeyup($event.target.value, col.field, col.filterMatchMode)\"/>\n </th>\n </tr>\n <tr *ngFor=\"#headerRow of headerRows\" class=\"ui-state-default\">\n <th #headerCell *ngFor=\"#col of headerRow.columns\" [attr.style]=\"col.style\" [attr.class]=\"col.styleClass\" [attr.colspan]=\"col.colspan\" [attr.rowspan]=\"col.rowspan\"\n (click)=\"sort($event,col)\" (mouseenter)=\"hoveredHeader = $event.target\" (mouseleave)=\"hoveredHeader = null\"\n [ngClass]=\"{'ui-state-default ui-unselectable-text':true, 'ui-state-hover': headerCell === hoveredHeader && col.sortable,'ui-sortable-column': col.sortable,'ui-state-active': isSorted(col)}\">\n <span class=\"ui-column-title\">{{col.header}}</span>\n <span class=\"ui-sortable-column-icon fa fa-fw fa-sort\" *ngIf=\"col.sortable\"\n [ngClass]=\"{'fa-sort-desc': (getSortOrder(col) == -1),'fa-sort-asc': (getSortOrder(col) == 1)}\"></span>\n <input type=\"text\" pInputText class=\"ui-column-filter\" *ngIf=\"col.filter\" (click)=\"onFilterInputClick($event)\" (keyup)=\"onFilterKeyup($event.target.value, col.field, col.filterMatchMode)\"/>\n </th>\n </tr>\n </thead>\n <tfoot *ngIf=\"hasFooter()\">\n <tr *ngIf=\"!footerRows\">\n <th *ngFor=\"#col of columns\" [attr.style]=\"col.style\" [attr.class]=\"col.styleClass\" [ngClass]=\"{'ui-state-default':true}\">{{col.footer}}</th>\n </tr>\n <tr *ngFor=\"#footerRow of footerRows\">\n <th *ngFor=\"#col of footerRow.columns\" [attr.style]=\"col.style\" [attr.class]=\"col.styleClass\"\n [attr.colspan]=\"col.colspan\" [attr.rowspan]=\"col.rowspan\"\n [ngClass]=\"{'ui-state-default':true}\">{{col.footer}}</th>\n </tr>\n </tfoot>\n <tbody class=\"ui-datatable-data ui-widget-content\">\n <tr #rowElement *ngFor=\"#rowData of dataToRender;#even = even; #odd = odd;\" class=\"ui-widget-content\" (mouseenter)=\"hoveredRow = $event.target\" (mouseleave)=\"hoveredRow = null\"\n (click)=\"onRowClick($event, rowData)\" (dblclick)=\"rowDblclick($event,rowData)\" (contextmenu)=\"onRowRightClick($event,rowData)\"\n [ngClass]=\"{'ui-datatable-even':even,'ui-datatable-odd':odd,'ui-state-hover': (selectionMode && rowElement == hoveredRow), 'ui-state-highlight': isSelected(rowData)}\">\n <td *ngFor=\"#col of columns\" [attr.style]=\"col.style\" [attr.class]=\"col.styleClass\"\n [ngClass]=\"{'ui-editable-column':col.editable}\" (click)=\"switchCellToEditMode($event.target,col,rowData)\">\n <span class=\"ui-column-title\" *ngIf=\"responsive\">{{col.header}}</span>\n <span class=\"ui-cell-data\" *ngIf=\"!col.template\">{{resolveFieldData(rowData,col.field)}}</span>\n <span class=\"ui-cell-data\" *ngIf=\"col.template\">\n <p-columnTemplateLoader [column]=\"col\" [rowData]=\"rowData\"></p-columnTemplateLoader>\n </span>\n <input type=\"text\" class=\"ui-cell-editor ui-state-highlight\" *ngIf=\"col.editable\" [(ngModel)]=\"rowData[col.field]\"\n (blur)=\"switchCellToViewMode($event.target,col,rowData,true)\" (keydown)=\"onCellEditorKeydown($event, col, rowData)\"/>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div class=\"ui-widget-header ui-datatable-scrollable-header\" *ngIf=\"scrollable\">\n <div class=\"ui-datatable-scrollable-header-box\">\n <table>\n <thead>\n <tr>\n <th #headerCell *ngFor=\"#col of columns\" [attr.style]=\"col.style\" [attr.class]=\"col.styleClass\"\n (click)=\"sort($event,col)\" (mouseenter)=\"hoveredHeader = $event.target\" (mouseleave)=\"hoveredHeader = null\"\n [ngClass]=\"{'ui-state-default ui-unselectable-text':true, 'ui-state-hover': headerCell === hoveredHeader && col.sortable,'ui-sortable-column': col.sortable,'ui-state-active': col.field === sortField}\">\n <span class=\"ui-column-title\">{{col.header}}</span>\n <span class=\"ui-sortable-column-icon fa fa-fw fa-sort\" *ngIf=\"col.sortable\"\n [ngClass]=\"{'fa-sort-desc': (col.field === sortField) && (sortOrder == -1),'fa-sort-asc': (col.field === sortField) && (sortOrder == 1)}\"></span>\n <input type=\"text\" pInputText class=\"ui-column-filter\" *ngIf=\"col.filter\" (click)=\"onFilterInputClick($event)\" (keyup)=\"onFilterKeyup($event.target.value, col.field, col.filterMatchMode)\"/>\n </th>\n </tr>\n </thead>\n </table>\n </div>\n </div>\n <div class=\"ui-datatable-scrollable-body\" *ngIf=\"scrollable\">\n <table>\n <tbody class=\"ui-datatable-data ui-widget-content\">\n <tr #rowElement *ngFor=\"#rowData of dataToRender;#even = even; #odd = odd;\" class=\"ui-widget-content\" (mouseenter)=\"hoveredRow = $event.target\" (mouseleave)=\"hoveredRow = null\"\n (click)=\"onRowClick($event, rowData)\" (dblclick)=\"rowDblclick($event,rowData)\"\n [ngClass]=\"{'ui-datatable-even':even,'ui-datatable-odd':odd,'ui-state-hover': (selectionMode && rowElement == hoveredRow), 'ui-state-highlight': isSelected(rowData)}\">\n <td *ngFor=\"#col of columns\" [attr.style]=\"col.style\" [attr.class]=\"col.styleClass\" [ngClass]=\"{'ui-editable-column':col.editable}\" (click)=\"switchCellToEditMode($event.target,col,rowData)\">\n <span class=\"ui-column-title\" *ngIf=\"responsive\">{{col.header}}</span>\n <span class=\"ui-cell-data\" *ngIf=\"!col.template\">{{resolveFieldData(rowData,col.field)}}</span>\n <span class=\"ui-cell-data\" *ngIf=\"col.template\">\n <p-columnTemplateLoader [column]=\"col\" [rowData]=\"rowData\"></p-columnTemplateLoader>\n </span>\n <input type=\"text\" class=\"ui-cell-editor ui-state-highlight\" *ngIf=\"col.editable\" [(ngModel)]=\"rowData[col.field]\"\n (blur)=\"switchCellToViewMode($event.target,col,rowData,true)\" (keydown)=\"onCellEditorKeydown($event,col,rowData)\"/>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <p-paginator [rows]=\"rows\" [first]=\"first\" [totalRecords]=\"totalRecords\" [pageLinkSize]=\"pageLinks\" styleClass=\"ui-paginator-bottom\"\n (onPageChange)=\"paginate($event)\" [rowsPerPageOptions]=\"rowsPerPageOptions\" *ngIf=\"paginator\"></p-paginator>\n <div class=\"ui-datatable-footer ui-widget-header\" *ngIf=\"footer\">\n <ng-content select=\"footer\"></ng-content>\n </div>\n </div>\n ",
template: "\n <div [attr.style]=\"style\" [attr.class]=\"styleClass\" \n [ngClass]=\"{'ui-datatable ui-widget': true, 'ui-datatable-reflow':responsive, 'ui-datatable-stacked': stacked}\">\n <div class=\"ui-datatable-header ui-widget-header\" *ngIf=\"header\">\n <ng-content select=\"header\"></ng-content>\n </div>\n <div class=\"ui-datatable-tablewrapper\" *ngIf=\"!scrollable\">\n <table>\n <thead>\n <tr *ngIf=\"!headerRows\" class=\"ui-state-default\">\n <th #headerCell *ngFor=\"#col of columns\" [attr.style]=\"col.style\" [attr.class]=\"col.styleClass\" [hidden]=\"col.hidden\"\n (click)=\"sort($event,col)\" (mouseenter)=\"hoveredHeader = $event.target\" (mouseleave)=\"hoveredHeader = null\"\n [ngClass]=\"{'ui-state-default ui-unselectable-text':true, 'ui-state-hover': headerCell === hoveredHeader && col.sortable,'ui-sortable-column': col.sortable,'ui-state-active': isSorted(col)}\">\n <span class=\"ui-column-title\">{{col.header}}</span>\n <span class=\"ui-sortable-column-icon fa fa-fw fa-sort\" *ngIf=\"col.sortable\"\n [ngClass]=\"{'fa-sort-desc': (getSortOrder(col) == -1),'fa-sort-asc': (getSortOrder(col) == 1)}\"></span>\n <input type=\"text\" pInputText class=\"ui-column-filter\" *ngIf=\"col.filter\" (click)=\"onFilterInputClick($event)\" (keyup)=\"onFilterKeyup($event.target.value, col.field, col.filterMatchMode)\"/>\n </th>\n </tr>\n <tr *ngFor=\"#headerRow of headerRows\" class=\"ui-state-default\">\n <th #headerCell *ngFor=\"#col of headerRow.columns\" [attr.style]=\"col.style\" [attr.class]=\"col.styleClass\" [attr.colspan]=\"col.colspan\" [attr.rowspan]=\"col.rowspan\"\n (click)=\"sort($event,col)\" (mouseenter)=\"hoveredHeader = $event.target\" (mouseleave)=\"hoveredHeader = null\" [hidden]=\"col.hidden\"\n [ngClass]=\"{'ui-state-default ui-unselectable-text':true, 'ui-state-hover': headerCell === hoveredHeader && col.sortable,'ui-sortable-column': col.sortable,'ui-state-active': isSorted(col)}\">\n <span class=\"ui-column-title\">{{col.header}}</span>\n <span class=\"ui-sortable-column-icon fa fa-fw fa-sort\" *ngIf=\"col.sortable\"\n [ngClass]=\"{'fa-sort-desc': (getSortOrder(col) == -1),'fa-sort-asc': (getSortOrder(col) == 1)}\"></span>\n <input type=\"text\" pInputText class=\"ui-column-filter\" *ngIf=\"col.filter\" (click)=\"onFilterInputClick($event)\" (keyup)=\"onFilterKeyup($event.target.value, col.field, col.filterMatchMode)\"/>\n </th>\n </tr>\n </thead>\n <tfoot *ngIf=\"hasFooter()\">\n <tr *ngIf=\"!footerRows\">\n <th *ngFor=\"#col of columns\" [attr.style]=\"col.style\" [attr.class]=\"col.styleClass\" [ngClass]=\"{'ui-state-default':true}\" [hidden]=\"col.hidden\">{{col.footer}}</th>\n </tr>\n <tr *ngFor=\"#footerRow of footerRows\">\n <th *ngFor=\"#col of footerRow.columns\" [attr.style]=\"col.style\" [attr.class]=\"col.styleClass\"\n [attr.colspan]=\"col.colspan\" [attr.rowspan]=\"col.rowspan\" [hidden]=\"col.hidden\"\n [ngClass]=\"{'ui-state-default':true}\">{{col.footer}}</th>\n </tr>\n </tfoot>\n <tbody class=\"ui-datatable-data ui-widget-content\">\n <tr #rowElement *ngFor=\"#rowData of dataToRender;#even = even; #odd = odd;\" class=\"ui-widget-content\" (mouseenter)=\"hoveredRow = $event.target\" (mouseleave)=\"hoveredRow = null\"\n (click)=\"onRowClick($event, rowData)\" (dblclick)=\"rowDblclick($event,rowData)\" (contextmenu)=\"onRowRightClick($event,rowData)\"\n [ngClass]=\"{'ui-datatable-even':even,'ui-datatable-odd':odd,'ui-state-hover': (selectionMode && rowElement == hoveredRow), 'ui-state-highlight': isSelected(rowData)}\">\n <td *ngFor=\"#col of columns\" [attr.style]=\"col.style\" [attr.class]=\"col.styleClass\" [hidden]=\"col.hidden\"\n [ngClass]=\"{'ui-editable-column':col.editable}\" (click)=\"switchCellToEditMode($event.target,col,rowData)\">\n <span class=\"ui-column-title\" *ngIf=\"responsive\">{{col.header}}</span>\n <span class=\"ui-cell-data\" *ngIf=\"!col.template\">{{resolveFieldData(rowData,col.field)}}</span>\n <span class=\"ui-cell-data\" *ngIf=\"col.template\">\n <p-columnTemplateLoader [column]=\"col\" [rowData]=\"rowData\"></p-columnTemplateLoader>\n </span>\n <input type=\"text\" class=\"ui-cell-editor ui-state-highlight\" *ngIf=\"col.editable\" [(ngModel)]=\"rowData[col.field]\"\n (blur)=\"switchCellToViewMode($event.target,col,rowData,true)\" (keydown)=\"onCellEditorKeydown($event, col, rowData)\"/>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div class=\"ui-widget-header ui-datatable-scrollable-header\" *ngIf=\"scrollable\">\n <div class=\"ui-datatable-scrollable-header-box\">\n <table>\n <thead>\n <tr>\n <th #headerCell *ngFor=\"#col of columns\" [attr.style]=\"col.style\" [attr.class]=\"col.styleClass\" [hidden]=\"col.hidden\"\n (click)=\"sort($event,col)\" (mouseenter)=\"hoveredHeader = $event.target\" (mouseleave)=\"hoveredHeader = null\"\n [ngClass]=\"{'ui-state-default ui-unselectable-text':true, 'ui-state-hover': headerCell === hoveredHeader && col.sortable,'ui-sortable-column': col.sortable,'ui-state-active': col.field === sortField}\">\n <span class=\"ui-column-title\">{{col.header}}</span>\n <span class=\"ui-sortable-column-icon fa fa-fw fa-sort\" *ngIf=\"col.sortable\"\n [ngClass]=\"{'fa-sort-desc': (col.field === sortField) && (sortOrder == -1),'fa-sort-asc': (col.field === sortField) && (sortOrder == 1)}\"></span>\n <input type=\"text\" pInputText class=\"ui-column-filter\" *ngIf=\"col.filter\" (click)=\"onFilterInputClick($event)\" (keyup)=\"onFilterKeyup($event.target.value, col.field, col.filterMatchMode)\"/>\n </th>\n </tr>\n </thead>\n </table>\n </div>\n </div>\n <div class=\"ui-datatable-scrollable-body\" *ngIf=\"scrollable\">\n <table>\n <tbody class=\"ui-datatable-data ui-widget-content\">\n <tr #rowElement *ngFor=\"#rowData of dataToRender;#even = even; #odd = odd;\" class=\"ui-widget-content\" (mouseenter)=\"hoveredRow = $event.target\" (mouseleave)=\"hoveredRow = null\"\n (click)=\"onRowClick($event, rowData)\" (dblclick)=\"rowDblclick($event,rowData)\"\n [ngClass]=\"{'ui-datatable-even':even,'ui-datatable-odd':odd,'ui-state-hover': (selectionMode && rowElement == hoveredRow), 'ui-state-highlight': isSelected(rowData)}\">\n <td *ngFor=\"#col of columns\" [attr.style]=\"col.style\" [attr.class]=\"col.styleClass\" [hidden]=\"col.hidden\"\n [ngClass]=\"{'ui-editable-column':col.editable}\" (click)=\"switchCellToEditMode($event.target,col,rowData)\">\n <span class=\"ui-column-title\" *ngIf=\"responsive\">{{col.header}}</span>\n <span class=\"ui-cell-data\" *ngIf=\"!col.template\">{{resolveFieldData(rowData,col.field)}}</span>\n <span class=\"ui-cell-data\" *ngIf=\"col.template\">\n <p-columnTemplateLoader [column]=\"col\" [rowData]=\"rowData\"></p-columnTemplateLoader>\n </span>\n <input type=\"text\" class=\"ui-cell-editor ui-state-highlight\" *ngIf=\"col.editable\" [(ngModel)]=\"rowData[col.field]\"\n (blur)=\"switchCellToViewMode($event.target,col,rowData,true)\" (keydown)=\"onCellEditorKeydown($event,col,rowData)\"/>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <p-paginator [rows]=\"rows\" [first]=\"first\" [totalRecords]=\"totalRecords\" [pageLinkSize]=\"pageLinks\" styleClass=\"ui-paginator-bottom\"\n (onPageChange)=\"paginate($event)\" [rowsPerPageOptions]=\"rowsPerPageOptions\" *ngIf=\"paginator\"></p-paginator>\n <div class=\"ui-datatable-footer ui-widget-header\" *ngIf=\"footer\">\n <ng-content select=\"footer\"></ng-content>\n </div>\n </div>\n ",
directives: [paginator_1.Paginator, inputtext_1.InputText, columntemplateloader_1.ColumnTemplateLoader],

@@ -761,0 +761,0 @@ providers: [domhandler_1.DomHandler]

@@ -37,2 +37,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

});
this.updateLabel();
};

@@ -109,3 +110,2 @@ Dropdown.prototype.ngDoCheck = function () {

}
this.panel.style.width = '100%';
};

@@ -119,2 +119,5 @@ Dropdown.prototype.onMouseenter = function (event) {

Dropdown.prototype.onMouseclick = function (event, input) {
if (this.disabled) {
return;
}
if (!this.panelVisible) {

@@ -241,3 +244,6 @@ input.focus();

this.onModelChange(this.value);
this.onChange.emit(event);
this.onChange.emit({
originalEvent: event,
value: this.value
});
}

@@ -315,3 +321,3 @@ };

selector: 'p-dropdown',
template: "\n <div [ngClass]=\"{'ui-dropdown ui-widget ui-state-default ui-corner-all ui-helper-clearfix':true,'ui-state-hover':hover,'ui-state-focus':focus}\" \n (mouseenter)=\"onMouseenter($event)\" (mouseleave)=\"onMouseleave($event)\" (click)=\"onMouseclick($event,in)\" [attr.style]=\"style\" [attr.styleClass]=\"styleClass\">\n <div class=\"ui-helper-hidden-accessible\">\n <select>\n <option *ngFor=\"#option of options\" [value]=\"option.value\">{{option.label}}</option>\n </select>\n </div>\n <div class=\"ui-helper-hidden-accessible\">\n <input #in type=\"text\" readonly (focus)=\"onFocus($event)\" (blur)=\"onBlur($event)\" (keydown)=\"onKeydown($event)\">\n </div>\n <label class=\"ui-dropdown-label ui-inputtext ui-corner-all\">{{label}}</label>\n <div class=\"ui-dropdown-trigger ui-state-default ui-corner-right\" [ngClass]=\"{'ui-state-hover':hover}\">\n <span class=\"fa fa-fw fa-caret-down\"></span>\n </div>\n <div class=\"ui-dropdown-panel ui-widget-content ui-corner-all ui-helper-hidden ui-shadow\" \n [style.display]=\"panelVisible ? 'block' : 'none'\">\n <div *ngIf=\"filter\" class=\"ui-dropdown-filter-container\" (input)=\"onFilter($event)\" (click)=\"$event.stopPropagation()\">\n <input type=\"text\" autocomplete=\"off\" class=\"ui-dropdown-filter ui-inputtext ui-widget ui-state-default ui-corner-all\">\n <span class=\"fa fa-search\"></span>\n </div>\n <div class=\"ui-dropdown-items-wrapper\" [style.max-height]=\"scrollHeight||'auto'\">\n <ul *ngIf=\"!itemTemplate\" class=\"ui-dropdown-items ui-dropdown-list ui-widget-content ui-widget ui-corner-all ui-helper-reset\"\n (mouseover)=\"onListMouseover($event)\" (mouseout)=\"onListMouseout($event)\">\n <li *ngFor=\"#option of optionsToDisplay;#i=index\" [attr.data-label]=\"option.label\" [attr.data-value]=\"option.value\" (click)=\"onListClick($event)\"\n class=\"ui-dropdown-item ui-corner-all\">{{option.label}}</li>\n </ul>\n <ul *ngIf=\"itemTemplate\" class=\"ui-dropdown-items ui-dropdown-list ui-widget-content ui-widget ui-corner-all ui-helper-reset\"\n (mouseover)=\"onListMouseover($event)\" (mouseout)=\"onListMouseout($event)\" (click)=\"onListClick($event)\">\n <template ngFor [ngForOf]=\"optionsToDisplay\" [ngForTemplate]=\"itemTemplate\"></template>\n </ul>\n </div>\n </div>\n </div>\n ",
template: "\n <div [ngClass]=\"{'ui-dropdown ui-widget ui-state-default ui-corner-all ui-helper-clearfix':true,'ui-state-hover':hover&&!disabled,'ui-state-focus':focus,'ui-state-disabled':disabled}\" \n (mouseenter)=\"onMouseenter($event)\" (mouseleave)=\"onMouseleave($event)\" (click)=\"onMouseclick($event,in)\" [attr.style]=\"style\" [attr.styleClass]=\"styleClass\">\n <div class=\"ui-helper-hidden-accessible\">\n <select>\n <option *ngFor=\"#option of options\" [value]=\"option.value\">{{option.label}}</option>\n </select>\n </div>\n <div class=\"ui-helper-hidden-accessible\">\n <input #in type=\"text\" readonly (focus)=\"onFocus($event)\" (blur)=\"onBlur($event)\" (keydown)=\"onKeydown($event)\">\n </div>\n <label class=\"ui-dropdown-label ui-inputtext ui-corner-all\">{{label}}</label>\n <div class=\"ui-dropdown-trigger ui-state-default ui-corner-right\" [ngClass]=\"{'ui-state-hover':hover&&!disabled}\">\n <span class=\"fa fa-fw fa-caret-down\"></span>\n </div>\n <div class=\"ui-dropdown-panel ui-widget-content ui-corner-all ui-helper-hidden ui-shadow\" \n [style.display]=\"panelVisible ? 'block' : 'none'\">\n <div *ngIf=\"filter\" class=\"ui-dropdown-filter-container\" (input)=\"onFilter($event)\" (click)=\"$event.stopPropagation()\">\n <input type=\"text\" autocomplete=\"off\" class=\"ui-dropdown-filter ui-inputtext ui-widget ui-state-default ui-corner-all\">\n <span class=\"fa fa-search\"></span>\n </div>\n <div class=\"ui-dropdown-items-wrapper\" [style.max-height]=\"scrollHeight||'auto'\">\n <ul *ngIf=\"!itemTemplate\" class=\"ui-dropdown-items ui-dropdown-list ui-widget-content ui-widget ui-corner-all ui-helper-reset\"\n (mouseover)=\"onListMouseover($event)\" (mouseout)=\"onListMouseout($event)\">\n <li *ngFor=\"#option of optionsToDisplay;#i=index\" [attr.data-label]=\"option.label\" [attr.data-value]=\"option.value\" (click)=\"onListClick($event)\"\n class=\"ui-dropdown-item ui-corner-all\">{{option.label}}</li>\n </ul>\n <ul *ngIf=\"itemTemplate\" class=\"ui-dropdown-items ui-dropdown-list ui-widget-content ui-widget ui-corner-all ui-helper-reset\"\n (mouseover)=\"onListMouseover($event)\" (mouseout)=\"onListMouseout($event)\" (click)=\"onListClick($event)\">\n <template ngFor [ngForOf]=\"optionsToDisplay\" [ngForTemplate]=\"itemTemplate\"></template>\n </ul>\n </div>\n </div>\n </div>\n ",
providers: [domhandler_1.DomHandler, DROPDOWN_VALUE_ACCESSOR]

@@ -318,0 +324,0 @@ }),

@@ -259,3 +259,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

selector: 'p-multiSelect',
template: "\n <div [ngClass]=\"{'ui-multiselect ui-widget ui-state-default ui-corner-all':true}\" [attr.style]=\"style\" [attr.styleClass]=\"styleClass\"\n (mouseenter)=\"onMouseenter($event)\" (mouseleave)=\"onMouseleave($event)\" (click)=\"onMouseclick($event,in)\">\n <div class=\"ui-helper-hidden-accessible\">\n <input #in type=\"text\" readonly=\"readonly\" (focus)=\"onFocus($event)\" (blur)=\"onBlur($event)\">\n </div>\n <div class=\"ui-multiselect-label-container\" [title]=\"valuesAsString\">\n <label [ngClass]=\"{'ui-multiselect-label ui-corner-all':true,'ui-state-hover':hover,'ui-state-focus':focus}\">{{valuesAsString}}</label>\n </div>\n <div [ngClass]=\"{'ui-multiselect-trigger ui-state-default ui-corner-right':true,'ui-state-hover':hover,'ui-state-focus':focus}\">\n <span class=\"fa fa-fw fa-caret-down\"></span>\n </div>\n <div class=\"ui-multiselect-panel ui-widget ui-widget-content ui-corner-all\" [style.display]=\"overlayVisible ? 'block' : 'none'\" (click)=\"panelClick=true\">\n <div class=\"ui-widget-header ui-corner-all ui-multiselect-header ui-helper-clearfix\">\n <div class=\"ui-chkbox ui-widget\">\n <div class=\"ui-helper-hidden-accessible\">\n <input #cb type=\"checkbox\" readonly=\"readonly\" [checked]=\"isAllChecked()\">\n </div>\n <div class=\"ui-chkbox-box ui-widget ui-corner-all ui-state-default\" [ngClass]=\"{'ui-state-hover':hoverToggleAll}\"\n (mouseenter)=\"hoverToggleAll=true\" (mouseleave)=\"hoverToggleAll=false\" (click)=\"toggleAll($event,cb)\">\n <span class=\"ui-chkbox-icon ui-c\" [ngClass]=\"{'fa fa-fw fa-check':isAllChecked()}\"></span>\n </div>\n </div>\n <div class=\"ui-multiselect-filter-container\">\n <input type=\"text\" aria-multiline=\"false\" aria-readonly=\"false\" aria-disabled=\"false\" role=\"textbox\" (input)=\"onFilter($event)\"\n class=\"ui-inputtext ui-widget ui-state-default ui-corner-all\">\n <span class=\"fa fa-fw fa-search\"></span>\n </div>\n <a class=\"ui-multiselect-close ui-corner-all\" href=\"#\" (click)=\"close($event)\">\n <span class=\"fa fa-close\"></span>\n </a>\n </div>\n <div class=\"ui-multiselect-items-wrapper\">\n <ul class=\"ui-multiselect-items ui-multiselect-list ui-widget-content ui-widget ui-corner-all ui-helper-reset\" [style.max-height]=\"scrollHeight||'auto'\">\n <li #item *ngFor=\"#option of options\" class=\"ui-multiselect-item ui-corner-all\" (click)=\"onItemClick($event,option.value)\" \n [style.display]=\"isItemVisible(option) ? 'block' : 'none'\"\n [ngClass]=\"{'ui-state-highlight':isSelected(option.value),'ui-state-hover':hoveredItem==item}\" (mouseenter)=\"hoveredItem=item\" (mouseleave)=\"hoveredItem=null\">\n <div class=\"ui-chkbox ui-widget\">\n <div class=\"ui-helper-hidden-accessible\">\n <input type=\"checkbox\" readonly=\"readonly\" [checked]=\"isSelected(option.value)\">\n </div>\n <div class=\"ui-chkbox-box ui-widget ui-corner-all ui-state-default\" [ngClass]=\"{'ui-state-active':isSelected(option.value)}\">\n <span class=\"ui-chkbox-icon ui-c\" [ngClass]=\"{'fa fa-fw fa-check':isSelected(option.value)}\"></span>\n </div>\n </div>\n <label>{{option.label}}</label>\n </li>\n </ul>\n </div>\n </div>\n </div>\n ",
template: "\n <div [ngClass]=\"{'ui-multiselect ui-widget ui-state-default ui-corner-all':true}\" [attr.style]=\"style\" [attr.styleClass]=\"styleClass\"\n (mouseenter)=\"onMouseenter($event)\" (mouseleave)=\"onMouseleave($event)\" (click)=\"onMouseclick($event,in)\">\n <div class=\"ui-helper-hidden-accessible\">\n <input #in type=\"text\" readonly=\"readonly\" (focus)=\"onFocus($event)\" (blur)=\"onBlur($event)\">\n </div>\n <div class=\"ui-multiselect-label-container\" [title]=\"valuesAsString\">\n <label [ngClass]=\"{'ui-multiselect-label ui-corner-all':true,'ui-state-hover':hover,'ui-state-focus':focus}\">{{valuesAsString}}</label>\n </div>\n <div [ngClass]=\"{'ui-multiselect-trigger ui-state-default ui-corner-right':true,'ui-state-hover':hover,'ui-state-focus':focus}\">\n <span class=\"fa fa-fw fa-caret-down\"></span>\n </div>\n <div class=\"ui-multiselect-panel ui-widget ui-widget-content ui-corner-all ui-shadow\" [style.display]=\"overlayVisible ? 'block' : 'none'\" (click)=\"panelClick=true\">\n <div class=\"ui-widget-header ui-corner-all ui-multiselect-header ui-helper-clearfix\">\n <div class=\"ui-chkbox ui-widget\">\n <div class=\"ui-helper-hidden-accessible\">\n <input #cb type=\"checkbox\" readonly=\"readonly\" [checked]=\"isAllChecked()\">\n </div>\n <div class=\"ui-chkbox-box ui-widget ui-corner-all ui-state-default\" [ngClass]=\"{'ui-state-hover':hoverToggleAll}\"\n (mouseenter)=\"hoverToggleAll=true\" (mouseleave)=\"hoverToggleAll=false\" (click)=\"toggleAll($event,cb)\">\n <span class=\"ui-chkbox-icon ui-c\" [ngClass]=\"{'fa fa-fw fa-check':isAllChecked()}\"></span>\n </div>\n </div>\n <div class=\"ui-multiselect-filter-container\">\n <input type=\"text\" aria-multiline=\"false\" aria-readonly=\"false\" aria-disabled=\"false\" role=\"textbox\" (input)=\"onFilter($event)\"\n class=\"ui-inputtext ui-widget ui-state-default ui-corner-all\">\n <span class=\"fa fa-fw fa-search\"></span>\n </div>\n <a class=\"ui-multiselect-close ui-corner-all\" href=\"#\" (click)=\"close($event)\">\n <span class=\"fa fa-close\"></span>\n </a>\n </div>\n <div class=\"ui-multiselect-items-wrapper\">\n <ul class=\"ui-multiselect-items ui-multiselect-list ui-widget-content ui-widget ui-corner-all ui-helper-reset\" [style.max-height]=\"scrollHeight||'auto'\">\n <li #item *ngFor=\"#option of options\" class=\"ui-multiselect-item ui-corner-all\" (click)=\"onItemClick($event,option.value)\" \n [style.display]=\"isItemVisible(option) ? 'block' : 'none'\"\n [ngClass]=\"{'ui-state-highlight':isSelected(option.value),'ui-state-hover':hoveredItem==item}\" (mouseenter)=\"hoveredItem=item\" (mouseleave)=\"hoveredItem=null\">\n <div class=\"ui-chkbox ui-widget\">\n <div class=\"ui-helper-hidden-accessible\">\n <input type=\"checkbox\" readonly=\"readonly\" [checked]=\"isSelected(option.value)\">\n </div>\n <div class=\"ui-chkbox-box ui-widget ui-corner-all ui-state-default\" [ngClass]=\"{'ui-state-active':isSelected(option.value)}\">\n <span class=\"ui-chkbox-icon ui-c\" [ngClass]=\"{'fa fa-fw fa-check':isSelected(option.value)}\"></span>\n </div>\n </div>\n <label>{{option.label}}</label>\n </li>\n </ul>\n </div>\n </div>\n </div>\n ",
providers: [domhandler_1.DomHandler, MULTISELECT_VALUE_ACCESSOR]

@@ -262,0 +262,0 @@ }),

@@ -14,2 +14,4 @@ import { EventEmitter } from 'angular2/core';

onclick(): void;
onMouseEnter(): void;
onMouseLeave(): void;
writeValue(model: any): void;

@@ -16,0 +18,0 @@ registerOnChange(fn: Function): void;

@@ -24,6 +24,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

RadioButton.prototype.onclick = function () {
this.click.emit(null);
this.checked = true;
this.onModelChange(this.value);
if (!this.disabled) {
this.click.emit(null);
this.checked = true;
this.onModelChange(this.value);
}
};
RadioButton.prototype.onMouseEnter = function () {
this.hover = true;
};
RadioButton.prototype.onMouseLeave = function () {
this.hover = false;
};
RadioButton.prototype.writeValue = function (model) {

@@ -58,3 +66,3 @@ this.model = model;

selector: 'p-radioButton',
template: "\n <div class=\"ui-radiobutton ui-widget\">\n <div class=\"ui-helper-hidden-accessible\">\n <input type=\"radio\" [attr.name]=\"name\" [attr.value]=\"value\" [checked]=\"checked\" (blur)=\"onModelTouched()\">\n </div>\n <div class=\"ui-radiobutton-box ui-widget ui-radiobutton-relative ui-state-default\" (click)=\"onclick()\"\n (mouseover)=\"hover=true\" (mouseout)=\"hover=false\" [ngClass]=\"{'ui-state-hover':hover,'ui-state-active':checked,'ui-state-disabled':disabled}\">\n <span class=\"ui-radiobutton-icon\" [ngClass]=\"{'fa fa-fw fa-circle':checked}\"></span>\n </div>\n </div>\n ",
template: "\n <div class=\"ui-radiobutton ui-widget\">\n <div class=\"ui-helper-hidden-accessible\">\n <input type=\"radio\" [attr.name]=\"name\" [attr.value]=\"value\" [checked]=\"checked\" (blur)=\"onModelTouched()\">\n </div>\n <div class=\"ui-radiobutton-box ui-widget ui-radiobutton-relative ui-state-default\" (click)=\"onclick()\"\n (mouseenter)=\"onMouseEnter()\" (mouseleave)=\"onMouseLeave()\" [ngClass]=\"{'ui-state-hover':hover&&!disabled,'ui-state-active':checked,'ui-state-disabled':disabled}\">\n <span class=\"ui-radiobutton-icon\" [ngClass]=\"{'fa fa-fw fa-circle':checked}\"></span>\n </div>\n </div>\n ",
providers: [RADIO_VALUE_ACCESSOR]

@@ -61,0 +69,0 @@ }),

@@ -11,3 +11,2 @@ import { ElementRef, EventEmitter, IterableDiffers } from 'angular2/core';

hiddenDays: number[];
lang: string;
fixedWeekCount: boolean;

@@ -39,2 +38,3 @@ weekNumbers: boolean;

eventConstraint: any;
locale: any;
onDayClick: EventEmitter<any>;

@@ -41,0 +41,0 @@ onEventClick: EventEmitter<any>;

@@ -41,3 +41,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

this.schedule = jQuery(this.el.nativeElement.children[0]);
this.schedule.fullCalendar({
var options = {
theme: true,

@@ -48,3 +48,2 @@ header: this.header,

hiddenDays: this.hiddenDays,
lang: this.lang,
fixedWeekCount: this.fixedWeekCount,

@@ -153,3 +152,9 @@ weekNumbers: this.weekNumbers,

}
});
};
if (this.locale) {
for (var prop in this.locale) {
options[prop] = this.locale[prop];
}
}
this.schedule.fullCalendar(options);
this.initialized = true;

@@ -198,6 +203,2 @@ };

core_1.Input(),
__metadata('design:type', String)
], Schedule.prototype, "lang", void 0);
__decorate([
core_1.Input(),
__metadata('design:type', Boolean)

@@ -306,2 +307,6 @@ ], Schedule.prototype, "fixedWeekCount", void 0);

__decorate([
core_1.Input(),
__metadata('design:type', Object)
], Schedule.prototype, "locale", void 0);
__decorate([
core_1.Output(),

@@ -308,0 +313,0 @@ __metadata('design:type', core_1.EventEmitter)

{
"name": "primeng",
"version": "v1.0.0-beta.1",
"version": "v1.0.0-beta.2",
"scripts": {

@@ -10,5 +10,9 @@ "tsc": "tsc",

},
"repository": {
"type": "git",
"url": "https://github.com/primefaces/primeng.git"
},
"license": "Apache-2.0",
"peerDependencies": {
"angular2": "2.0.0-beta.13",
"angular2": "2.0.0-beta.15",
"systemjs": "0.19.25",

@@ -19,10 +23,10 @@ "es6-shim": "^0.35.0",

"zone.js": "0.6.6",
"primeui": "4.1.7"
"primeui": "4.1.8"
},
"devDependencies": {
"concurrently": "^2.0.0",
"lite-server": "^2.1.0",
"lite-server": "^2.2.0",
"typescript": "^1.8.9",
"typings": "^0.7.11"
"typings": "^0.7.12"
}
}

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

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

Sorry, the diff of this file is not supported yet

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