ng-inail-common 1.0.382 → 1.0.386
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/ng-inail-common.umd.js +44 -5
- package/bundles/ng-inail-common.umd.js.map +1 -1
- package/bundles/ng-inail-common.umd.min.js +1 -1
- package/bundles/ng-inail-common.umd.min.js.map +1 -1
- package/esm2015/lib/components/ux/inail-file-upload-component/inail-file-upload.component.js +3 -3
- package/esm2015/lib/components/ux/input-number/input-number.component.js +3 -3
- package/esm2015/lib/components/ux/paged-table-renderer/paged-table-renderer.component.js +35 -1
- package/esm2015/lib/components/ux/select/select.component.js +3 -2
- package/esm5/lib/components/ux/inail-file-upload-component/inail-file-upload.component.js +3 -3
- package/esm5/lib/components/ux/input-number/input-number.component.js +3 -3
- package/esm5/lib/components/ux/paged-table-renderer/paged-table-renderer.component.js +40 -1
- package/esm5/lib/components/ux/select/select.component.js +3 -2
- package/fesm2015/ng-inail-common.js +41 -6
- package/fesm2015/ng-inail-common.js.map +1 -1
- package/fesm5/ng-inail-common.js +45 -5
- package/fesm5/ng-inail-common.js.map +1 -1
- package/lib/components/ux/paged-table-renderer/paged-table-renderer.component.d.ts +1 -0
- package/ng-inail-common.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -2412,6 +2412,7 @@
|
|
|
2412
2412
|
* @param {?} val
|
|
2413
2413
|
* @return {?}
|
|
2414
2414
|
*/ function (val) {
|
|
2415
|
+
// console.warn('val', val)
|
|
2415
2416
|
var _this = this;
|
|
2416
2417
|
this.valueValue = val;
|
|
2417
2418
|
this.valueChange.emit(this.valueValue);
|
|
@@ -2420,7 +2421,7 @@
|
|
|
2420
2421
|
* @param {?} opt
|
|
2421
2422
|
* @return {?}
|
|
2422
2423
|
*/function (opt) { return opt != undefined && opt.value === _this.valueValue; }));
|
|
2423
|
-
if (optionSelected != undefined) {
|
|
2424
|
+
if (optionSelected != undefined || isEmptyOrNull(val)) {
|
|
2424
2425
|
this.select.emit(optionSelected);
|
|
2425
2426
|
}
|
|
2426
2427
|
},
|
|
@@ -3060,6 +3061,18 @@
|
|
|
3060
3061
|
&& changes.paginationInfo.currentValue != undefined) {
|
|
3061
3062
|
this.externalPaginationSorting = true;
|
|
3062
3063
|
}
|
|
3064
|
+
// Se nella paginazione esterna viene specificata una proprieta di sorting
|
|
3065
|
+
// modifico il componente thLabel associato
|
|
3066
|
+
if (this.externalPaginationSorting && this.paginationInfo && this.paginationInfo.sortProperty) {
|
|
3067
|
+
if (this.thLabelComponents) {
|
|
3068
|
+
/** @type {?} */
|
|
3069
|
+
var thLabel = this.thLabelComponents.find(( /**
|
|
3070
|
+
* @param {?} item
|
|
3071
|
+
* @return {?}
|
|
3072
|
+
*/function (item) { return item.property == _this.paginationInfo.sortProperty; }));
|
|
3073
|
+
this.setSortDirection(thLabel, ( /** @type {?} */(this.paginationInfo.sortDirection)));
|
|
3074
|
+
}
|
|
3075
|
+
}
|
|
3063
3076
|
// Verifico se e' cambiata la lista degli elementi in input.
|
|
3064
3077
|
// Nel caso in cui si stia effettuando una paginazione interna
|
|
3065
3078
|
// emetto il sottoinsieme inerente la prima pagina
|
|
@@ -3647,6 +3660,32 @@
|
|
|
3647
3660
|
return !this.disabilitaPaginazione
|
|
3648
3661
|
&& (this.elements != undefined || (this.externalPaginationSorting != undefined && this.paginationInfo != undefined));
|
|
3649
3662
|
};
|
|
3663
|
+
/**
|
|
3664
|
+
* @param {?} thLabel
|
|
3665
|
+
* @param {?} direction
|
|
3666
|
+
* @return {?}
|
|
3667
|
+
*/
|
|
3668
|
+
PagedTableRendererComponent.prototype.setSortDirection = /**
|
|
3669
|
+
* @param {?} thLabel
|
|
3670
|
+
* @param {?} direction
|
|
3671
|
+
* @return {?}
|
|
3672
|
+
*/
|
|
3673
|
+
function (thLabel, direction) {
|
|
3674
|
+
if (thLabel) {
|
|
3675
|
+
switch (direction) {
|
|
3676
|
+
case "asc":
|
|
3677
|
+
thLabel.direction = ThLabelComponent.ASC;
|
|
3678
|
+
break;
|
|
3679
|
+
case "desc":
|
|
3680
|
+
thLabel.direction = ThLabelComponent.DESC;
|
|
3681
|
+
break;
|
|
3682
|
+
default:
|
|
3683
|
+
thLabel.direction = ThLabelComponent.UNSORTED;
|
|
3684
|
+
break;
|
|
3685
|
+
}
|
|
3686
|
+
this.modificaTh(thLabel);
|
|
3687
|
+
}
|
|
3688
|
+
};
|
|
3650
3689
|
PagedTableRendererComponent.DEFAULT_TABLE_LENGTH = 10;
|
|
3651
3690
|
PagedTableRendererComponent.decorators = [
|
|
3652
3691
|
{ type: i0.Component, args: [{
|
|
@@ -5336,10 +5375,10 @@
|
|
|
5336
5375
|
*/function () {
|
|
5337
5376
|
if (!_this.disabled) {
|
|
5338
5377
|
if (_this.min != undefined && _this.valueValue < _this.min) {
|
|
5339
|
-
_this.value = _this.min;
|
|
5378
|
+
_this.value = _this.previousValue != undefined ? _this.previousValue : _this.min;
|
|
5340
5379
|
}
|
|
5341
5380
|
else if (_this.max != undefined && _this.valueValue > _this.max) {
|
|
5342
|
-
_this.value = _this.max;
|
|
5381
|
+
_this.value = _this.previousValue != undefined ? _this.previousValue : _this.max;
|
|
5343
5382
|
}
|
|
5344
5383
|
}
|
|
5345
5384
|
}));
|
|
@@ -8859,9 +8898,9 @@
|
|
|
8859
8898
|
InailFileUploadComponent.decorators = [
|
|
8860
8899
|
{ type: i0.Component, args: [{
|
|
8861
8900
|
selector: 'inail-file-upload',
|
|
8862
|
-
template: "<div class=\"form-group col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} noPaddingLeft {{class}} uploadFile inail-file-upload-view-encapsulation\"\n [ngClass]=\"{'has-error': checkError()}\">\n <div class=\"col-xs-12 noPaddingLeft\">\n <div class=\"col-xs-12 noPaddingLeft\" *ngIf=\"label\">\n <label for=\"{{id}}\"\n class=\"{{labelClass}}\"\n title=\"{{labelTitle}}\"\n [hidden]=\"hiddenLabel\"\n [innerHTML]=\"label.concat(required ? ' '+(requiredSimbol || '*') : '')\">\n </label>\n </div>\n <div class=\"col-xs-4 upload-file-button-container noPaddingLeft\">\n <label for=\"{{id}}-fake\"\n class=\"sr-only\">Label input</label>\n <input id=\"{{id}}-fake\"\n title=\"{{title}}\"\n class=\"col-xs-12 form-control {{inputClass}}\"\n readonly\n placeholder=\"{{placeholder}}\"\n type=\"text\"\n [attr.aria-invalid]=\"checkError() === true ? true : undefined\"\n [attr.aria-describedBy]=\"checkDescError() ? id+'-description-error' : undefined\"\n [value]=\"fileModel?.name\"\n (click)=\"promptUpload()\">\n <button class=\"innerx\" (click)=\"reset()\"><span class=\"reset\"></span></button>\n <span [innerHTML]=\"description\"></span>\n </div>\n <div class=\"col-xs-8\">\n <div class=\"fileUpload pull-left noMarginLeft\">\n <div tabindex=\"0\"\n (keyup.enter)=\"inputTypeFile.click()\"\n class=\"btn btn-primary noMargin col-xs-12 upload-container\">\n <span [innerHTML]=\"chooseButtonText\"></span>\n <input id=\"{{id}}\"\n #inputTypeFile\n tabindex=\"-1\"\n accept=\"{{accept}}\"\n class=\"btn btn-primary upload\"\n type=\"file\"\n (change)=\"changeModel($event)\">\n </div>\n </div>\n <div *ngIf=\"submitButton\" class=\"fileUpload pull-left padding\">\n <div class=\"form-group\">\n <button class=\"btn btn-primary add-file\"\n [disabled]=\"!fileModel\"\n (click)=\"uploadFile.emit(fileModel)\"\n [innerHTML]=\"submitButtonText\">\n </button>\n </div>\n </div>\n <div class=\"fileSubmit col-xs-4 noMarginLeft\">\n <button class=\"btn btn-primary noMargin btn-inline col-xs-12\">Carica il file</button>\n </div>\n </div>\n </div>\n <div *ngIf=\"checkDescError()\">\n <span [id]=\"id+'-description-error'\" class=\"msg msg-errore\">\n <strong [innerHTML]=\"(errorPrefix===false ? '' : 'ERRORE: ')+getDescError()\"></strong>\n </span>\n </div>\n</div>\n",
|
|
8901
|
+
template: "<div class=\"form-group col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} noPaddingLeft {{class}} uploadFile inail-file-upload-view-encapsulation\"\n [ngClass]=\"{'has-error': checkError()}\">\n <div class=\"col-xs-12 noPaddingLeft\">\n <div class=\"col-xs-12 noPaddingLeft\" *ngIf=\"label\">\n <label for=\"{{id}}\"\n class=\"{{labelClass}}\"\n title=\"{{labelTitle}}\"\n [hidden]=\"hiddenLabel\"\n [innerHTML]=\"label.concat(required ? ' '+(requiredSimbol || '*') : '')\">\n </label>\n </div>\n <div class=\"col-xs-4 upload-file-button-container noPaddingLeft\">\n <label for=\"{{id}}-fake\"\n class=\"sr-only\">Label input</label>\n <input id=\"{{id}}-fake\"\n title=\"{{title}}\"\n class=\"col-xs-12 form-control {{inputClass}}\"\n [disabled]=\"disabled\"\n readonly\n placeholder=\"{{placeholder}}\"\n type=\"text\"\n [attr.aria-invalid]=\"checkError() === true ? true : undefined\"\n [attr.aria-describedBy]=\"checkDescError() ? id+'-description-error' : undefined\"\n [value]=\"fileModel?.name\"\n (click)=\"promptUpload()\">\n <button class=\"innerx\" (click)=\"reset()\"><span class=\"reset\"></span></button>\n <span [innerHTML]=\"description\"></span>\n </div>\n <div class=\"col-xs-8\">\n <div class=\"fileUpload pull-left noMarginLeft\">\n <div tabindex=\"0\"\n (keyup.enter)=\"inputTypeFile.click()\"\n class=\"btn btn-primary btn-fake noMargin col-xs-12 upload-container\"\n [ngClass]=\"{'disabled': disabled}\">\n <span [innerHTML]=\"chooseButtonText\"></span>\n <input id=\"{{id}}\"\n #inputTypeFile\n tabindex=\"-1\"\n accept=\"{{accept}}\"\n [disabled]=\"disabled\"\n class=\"btn btn-primary upload\"\n type=\"file\"\n (change)=\"changeModel($event)\">\n </div>\n </div>\n <div *ngIf=\"submitButton\" class=\"fileUpload pull-left padding\">\n <div class=\"form-group\">\n <button class=\"btn btn-primary add-file\"\n [disabled]=\"!fileModel\"\n (click)=\"uploadFile.emit(fileModel)\"\n [innerHTML]=\"submitButtonText\">\n </button>\n </div>\n </div>\n <div class=\"fileSubmit col-xs-4 noMarginLeft\">\n <button class=\"btn btn-primary noMargin btn-inline col-xs-12\">Carica il file</button>\n </div>\n </div>\n </div>\n <div *ngIf=\"checkDescError()\">\n <span [id]=\"id+'-description-error'\" class=\"msg msg-errore\">\n <strong [innerHTML]=\"(errorPrefix===false ? '' : 'ERRORE: ')+getDescError()\"></strong>\n </span>\n </div>\n</div>\n",
|
|
8863
8902
|
encapsulation: i0.ViewEncapsulation.None,
|
|
8864
|
-
styles: [".inail-file-upload-view-encapsulation button.innerx:focus{outline:#000 dotted 1px!important}"]
|
|
8903
|
+
styles: [".inail-file-upload-view-encapsulation button.innerx:focus{outline:#000 dotted 1px!important}.inail-file-upload-view-encapsulation .btn-fake input{position:absolute;opacity:0!important}"]
|
|
8865
8904
|
}] }
|
|
8866
8905
|
];
|
|
8867
8906
|
/** @nocollapse */
|