ng-inail-common 2.0.26 → 2.0.29-beta.0
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 +45 -21
- package/bundles/ng-inail-common.umd.js.map +1 -1
- package/bundles/ng-inail-common.umd.min.js +2 -2
- package/bundles/ng-inail-common.umd.min.js.map +1 -1
- package/esm2015/lib/components/core/layout/inail-layout/inail-layout.component.js +2 -5
- package/esm2015/lib/components/core/table/table/table.component.js +4 -2
- package/esm2015/lib/components/core/ux/alert/alert.component.js +20 -8
- package/esm2015/lib/components/core/ux/confirm/confirm.component.js +26 -13
- package/esm2015/lib/components/core/ux/modal/modal.component.js +2 -2
- package/fesm2015/ng-inail-common.js +45 -21
- package/fesm2015/ng-inail-common.js.map +1 -1
- package/lib/components/core/ux/alert/alert.component.d.ts +11 -2
- package/lib/components/core/ux/confirm/confirm.component.d.ts +14 -3
- package/lib/components/core/ux/modal/modal.component.d.ts +1 -1
- package/ng-inail-common.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -2256,12 +2256,9 @@
|
|
|
2256
2256
|
}
|
|
2257
2257
|
};
|
|
2258
2258
|
InailLayoutComponent.prototype.ngOnChanges = function (changes) {
|
|
2259
|
-
var _a;
|
|
2260
2259
|
this.emitDebug('changes');
|
|
2261
2260
|
this.emitDebug(changes);
|
|
2262
|
-
|
|
2263
|
-
this.cdr.detectChanges();
|
|
2264
|
-
}
|
|
2261
|
+
this.cdr.detectChanges();
|
|
2265
2262
|
};
|
|
2266
2263
|
InailLayoutComponent.prototype.ngOnInit = function () {
|
|
2267
2264
|
_super.prototype.ngOnInit.call(this);
|
|
@@ -4733,7 +4730,7 @@
|
|
|
4733
4730
|
/**
|
|
4734
4731
|
* L'inserimento di questo style ha lo scopo di effettuare l'override
|
|
4735
4732
|
* della regola sul padding-right inserita da bootstrap in fase di apertura della modale
|
|
4736
|
-
* la quale causa un restringimento del body se la scrollbar non viene
|
|
4733
|
+
* la quale causa un restringimento del body se la scrollbar non viene rimossa.
|
|
4737
4734
|
*/
|
|
4738
4735
|
ModalComponent.prototype.inserisciPreventBodyPaddingStyle = function () {
|
|
4739
4736
|
if (!window['$']("." + PREVENT_PADDING_STYLE_CLASS).length) {
|
|
@@ -4822,7 +4819,11 @@
|
|
|
4822
4819
|
function AlertComponent(_cdr) {
|
|
4823
4820
|
var _this = _super.call(this, _cdr) || this;
|
|
4824
4821
|
_this._cdr = _cdr;
|
|
4825
|
-
_this.
|
|
4822
|
+
_this.closeButtonTitle = 'Chiudi modale';
|
|
4823
|
+
_this.close = new core.EventEmitter();
|
|
4824
|
+
_this.width = 'M';
|
|
4825
|
+
_this.preventPageScroll = true;
|
|
4826
|
+
_this.okOnClick = function () { var _a; return (_a = _this.show) === null || _a === void 0 ? void 0 : _a.emit(false); };
|
|
4826
4827
|
_this.logPrefix = '[inail-alert]';
|
|
4827
4828
|
_this.title = 'Messaggio informativo';
|
|
4828
4829
|
_this.width = 'S';
|
|
@@ -4831,7 +4832,7 @@
|
|
|
4831
4832
|
return _this;
|
|
4832
4833
|
}
|
|
4833
4834
|
AlertComponent.prototype.ngOnChanges = function (changes) {
|
|
4834
|
-
|
|
4835
|
+
_super.prototype.ngOnChanges.call(this, changes);
|
|
4835
4836
|
this._cdr.detectChanges();
|
|
4836
4837
|
};
|
|
4837
4838
|
AlertComponent.prototype.ngOnInit = function () {
|
|
@@ -4844,11 +4845,11 @@
|
|
|
4844
4845
|
_super.prototype.ngOnDestroy.call(this);
|
|
4845
4846
|
};
|
|
4846
4847
|
return AlertComponent;
|
|
4847
|
-
}(
|
|
4848
|
+
}(BasicUxElementComponent));
|
|
4848
4849
|
AlertComponent.decorators = [
|
|
4849
4850
|
{ type: core.Component, args: [{
|
|
4850
4851
|
selector: 'inail-alert',
|
|
4851
|
-
template: "<inail-modal [id]=\"id\"\n [show]=\"show\"\n [preventPageScroll]=\"preventPageScroll\"\n [class]=\"class\"\n [title]=\"title\"\n [closeButtonTitle]=\"closeButtonTitle\"\n [logOnConsole]=\"logOnConsole\"\n [width]=\"this.width\"\n (close)=\"close.emit($event)\"\n (log)=\"log.emit($event)\">\n <div class=\"row\">\n <p *ngIf=\"message\" [innerHTML]=\"message\"></p>\n <p *ngIf=\"!message\">\n <ng-content></ng-content>\n </p>\n </div>\n <div class=\"row alert-footer\">\n <button type=\"button\"\n (click)=\"okOnClick()\"\n class=\"btn btn-primary pull-right\">Ok\n </button>\n </div>\n</inail-modal>\n",
|
|
4852
|
+
template: "<inail-modal #modalComponent\n [id]=\"id\"\n [show]=\"show\"\n [preventPageScroll]=\"preventPageScroll\"\n [class]=\"class\"\n [title]=\"title\"\n [closeButtonTitle]=\"closeButtonTitle\"\n [logOnConsole]=\"logOnConsole\"\n [width]=\"this.width\"\n (close)=\"close.emit($event)\"\n (log)=\"log.emit($event)\">\n <div class=\"row\">\n <p *ngIf=\"message\" [innerHTML]=\"message\"></p>\n <p *ngIf=\"!message\">\n <ng-content></ng-content>\n </p>\n </div>\n <div class=\"row alert-footer\">\n <button type=\"button\"\n (click)=\"okOnClick()\"\n class=\"btn btn-primary pull-right\">Ok\n </button>\n </div>\n</inail-modal>\n",
|
|
4852
4853
|
changeDetection: CHANGE_DETECTION_STRATEGY,
|
|
4853
4854
|
encapsulation: core.ViewEncapsulation.None,
|
|
4854
4855
|
styles: [".alert-footer{padding-bottom:20px!important;padding-top:20px!important}.alert-footer button{margin-right:0!important}"]
|
|
@@ -4858,7 +4859,15 @@
|
|
|
4858
4859
|
{ type: core.ChangeDetectorRef }
|
|
4859
4860
|
]; };
|
|
4860
4861
|
AlertComponent.propDecorators = {
|
|
4861
|
-
|
|
4862
|
+
title: [{ type: core.Input }],
|
|
4863
|
+
closeButtonTitle: [{ type: core.Input }],
|
|
4864
|
+
close: [{ type: core.Output }],
|
|
4865
|
+
show: [{ type: core.Input }],
|
|
4866
|
+
width: [{ type: core.Input }],
|
|
4867
|
+
setFocusOnError: [{ type: core.Input }],
|
|
4868
|
+
preventPageScroll: [{ type: core.Input }],
|
|
4869
|
+
message: [{ type: core.Input }],
|
|
4870
|
+
modalComponent: [{ type: core.ViewChild, args: ['modalComponent',] }]
|
|
4862
4871
|
};
|
|
4863
4872
|
|
|
4864
4873
|
var ConfirmComponent = /** @class */ (function (_super) {
|
|
@@ -4866,11 +4875,14 @@
|
|
|
4866
4875
|
function ConfirmComponent(_cdr) {
|
|
4867
4876
|
var _this = _super.call(this, _cdr) || this;
|
|
4868
4877
|
_this._cdr = _cdr;
|
|
4878
|
+
_this.closeButtonTitle = 'Chiudi modale';
|
|
4879
|
+
_this.close = new core.EventEmitter();
|
|
4880
|
+
_this.width = 'M';
|
|
4881
|
+
_this.preventPageScroll = true;
|
|
4869
4882
|
_this.confirmButtonLabel = 'Si';
|
|
4870
4883
|
_this.rejectButtonLabel = 'No';
|
|
4871
4884
|
_this.confirm = new core.EventEmitter();
|
|
4872
4885
|
_this.reject = new core.EventEmitter();
|
|
4873
|
-
_this.cancel = new core.EventEmitter();
|
|
4874
4886
|
_this.logPrefix = '[inail-confirm]';
|
|
4875
4887
|
_this.title = 'Conferma operazione';
|
|
4876
4888
|
_this.message = 'Confermare l\'operazione richiesta?';
|
|
@@ -4880,7 +4892,7 @@
|
|
|
4880
4892
|
return _this;
|
|
4881
4893
|
}
|
|
4882
4894
|
ConfirmComponent.prototype.ngOnChanges = function (changes) {
|
|
4883
|
-
|
|
4895
|
+
_super.prototype.ngOnChanges.call(this, changes);
|
|
4884
4896
|
this._cdr.detectChanges();
|
|
4885
4897
|
};
|
|
4886
4898
|
ConfirmComponent.prototype.ngOnInit = function () {
|
|
@@ -4893,23 +4905,26 @@
|
|
|
4893
4905
|
_super.prototype.ngOnDestroy.call(this);
|
|
4894
4906
|
};
|
|
4895
4907
|
ConfirmComponent.prototype.confirmOnClick = function () {
|
|
4896
|
-
this.
|
|
4908
|
+
this.action = 'y';
|
|
4909
|
+
this.show.emit(false);
|
|
4897
4910
|
this.confirm.emit();
|
|
4911
|
+
this.action = undefined;
|
|
4898
4912
|
};
|
|
4899
4913
|
ConfirmComponent.prototype.rejectOnClick = function () {
|
|
4900
|
-
this.
|
|
4914
|
+
this.action = 'n';
|
|
4915
|
+
this.show.emit(false);
|
|
4901
4916
|
this.reject.emit();
|
|
4917
|
+
this.action = undefined;
|
|
4902
4918
|
};
|
|
4903
|
-
ConfirmComponent.prototype.
|
|
4904
|
-
this.
|
|
4905
|
-
this.cancel.emit();
|
|
4919
|
+
ConfirmComponent.prototype.onClose = function () {
|
|
4920
|
+
this.close.emit(this.action || 'x');
|
|
4906
4921
|
};
|
|
4907
4922
|
return ConfirmComponent;
|
|
4908
|
-
}(
|
|
4923
|
+
}(BasicUxElementComponent));
|
|
4909
4924
|
ConfirmComponent.decorators = [
|
|
4910
4925
|
{ type: core.Component, args: [{
|
|
4911
4926
|
selector: 'inail-confirm',
|
|
4912
|
-
template: "<inail-modal [id]=\"id\"\n [show]=\"show\"\n [preventPageScroll]=\"preventPageScroll\"\n [class]=\"class\"\n [title]=\"title\"\n [closeButtonTitle]=\"closeButtonTitle\"\n [logOnConsole]=\"logOnConsole\"\n [width]=\"width\"\n (close)=\"
|
|
4927
|
+
template: "<inail-modal #modalComponent\n [id]=\"id\"\n [show]=\"show\"\n [preventPageScroll]=\"preventPageScroll\"\n [class]=\"class\"\n [title]=\"title\"\n [closeButtonTitle]=\"closeButtonTitle\"\n [logOnConsole]=\"logOnConsole\"\n [width]=\"width\"\n (close)=\"onClose()\"\n (log)=\"log.emit($event)\">\n <div class=\"row\">\n <p *ngIf=\"message\" [innerHTML]=\"message\"></p>\n <p *ngIf=\"!message\">\n <ng-content></ng-content>\n </p>\n </div>\n <div class=\"row confirm-footer\">\n <inail-button [label]=\"rejectButtonLabel\"\n (onclick)=\"rejectOnClick()\">\n </inail-button>\n <inail-button [class]=\"'pull-right'\"\n [setFocusOnError]=\"setFocusOnError\"\n [label]=\"confirmButtonLabel\"\n (onclick)=\"confirmOnClick()\">\n </inail-button>\n </div>\n</inail-modal>\n",
|
|
4913
4928
|
changeDetection: CHANGE_DETECTION_STRATEGY,
|
|
4914
4929
|
encapsulation: core.ViewEncapsulation.None,
|
|
4915
4930
|
styles: [".confirm-footer{padding-bottom:20px!important;padding-top:20px!important}.confirm-footer button{margin-right:0!important}"]
|
|
@@ -4919,12 +4934,19 @@
|
|
|
4919
4934
|
{ type: core.ChangeDetectorRef }
|
|
4920
4935
|
]; };
|
|
4921
4936
|
ConfirmComponent.propDecorators = {
|
|
4937
|
+
title: [{ type: core.Input }],
|
|
4938
|
+
closeButtonTitle: [{ type: core.Input }],
|
|
4939
|
+
close: [{ type: core.Output }],
|
|
4940
|
+
show: [{ type: core.Input }],
|
|
4941
|
+
width: [{ type: core.Input }],
|
|
4942
|
+
setFocusOnError: [{ type: core.Input }],
|
|
4943
|
+
preventPageScroll: [{ type: core.Input }],
|
|
4922
4944
|
message: [{ type: core.Input }],
|
|
4923
4945
|
confirmButtonLabel: [{ type: core.Input }],
|
|
4924
4946
|
rejectButtonLabel: [{ type: core.Input }],
|
|
4925
4947
|
confirm: [{ type: core.Output }],
|
|
4926
4948
|
reject: [{ type: core.Output }],
|
|
4927
|
-
|
|
4949
|
+
modalComponent: [{ type: core.ViewChild, args: ['modalComponent',] }]
|
|
4928
4950
|
};
|
|
4929
4951
|
|
|
4930
4952
|
var DEFAULT_TABLE_LENGTH = 10;
|
|
@@ -5725,8 +5747,10 @@
|
|
|
5725
5747
|
}
|
|
5726
5748
|
};
|
|
5727
5749
|
TableComponent.prototype.setSortDirection = function (thLabel, direction) {
|
|
5750
|
+
var _a, _b;
|
|
5728
5751
|
if (thLabel) {
|
|
5729
|
-
|
|
5752
|
+
var dir = (_b = (_a = direction === null || direction === void 0 ? void 0 : direction.toString()) === null || _a === void 0 ? void 0 : _a.trim()) === null || _b === void 0 ? void 0 : _b.toLowerCase();
|
|
5753
|
+
switch (dir) {
|
|
5730
5754
|
case "asc":
|
|
5731
5755
|
thLabel.direction = ThLabelComponent.ASC;
|
|
5732
5756
|
break;
|