info-library 2.10.26 → 2.10.29
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/info-library.umd.js +29 -5
- package/bundles/info-library.umd.js.map +1 -1
- package/bundles/info-library.umd.min.js +1 -1
- package/bundles/info-library.umd.min.js.map +1 -1
- package/esm2015/controls/grid/grid.component.js +9 -2
- package/esm2015/controls/input/input.component.js +4 -3
- package/esm2015/layouts/main/main.component.js +13 -2
- package/esm2015/layouts/topbar/topbar.component.js +7 -2
- package/fesm2015/info-library.js +29 -5
- package/fesm2015/info-library.js.map +1 -1
- package/info-library.metadata.json +1 -1
- package/layouts/main/main.component.d.ts +2 -0
- package/layouts/topbar/topbar.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4462,8 +4462,11 @@
|
|
|
4462
4462
|
_this.ondelete.emit(d);
|
|
4463
4463
|
if (d.success)
|
|
4464
4464
|
_this.getData();
|
|
4465
|
-
else
|
|
4465
|
+
else {
|
|
4466
4466
|
_this.hideLoad();
|
|
4467
|
+
if (_this.showmessageerror)
|
|
4468
|
+
_this.messages = d.messages;
|
|
4469
|
+
}
|
|
4467
4470
|
}));
|
|
4468
4471
|
}
|
|
4469
4472
|
}));
|
|
@@ -4658,6 +4661,8 @@
|
|
|
4658
4661
|
*/ r) {
|
|
4659
4662
|
if (r.success)
|
|
4660
4663
|
_this.getData();
|
|
4664
|
+
else if (_this.showmessageerror)
|
|
4665
|
+
_this.messages = r.messages;
|
|
4661
4666
|
_this.loading = false;
|
|
4662
4667
|
}));
|
|
4663
4668
|
}
|
|
@@ -4674,6 +4679,8 @@
|
|
|
4674
4679
|
*/ r) {
|
|
4675
4680
|
if (r.success)
|
|
4676
4681
|
_this.getData();
|
|
4682
|
+
else if (_this.showmessageerror)
|
|
4683
|
+
_this.messages = r.messages;
|
|
4677
4684
|
_this.loading = false;
|
|
4678
4685
|
}));
|
|
4679
4686
|
}
|
|
@@ -5095,7 +5102,7 @@
|
|
|
5095
5102
|
InfoInputComponent.decorators = [
|
|
5096
5103
|
{ type: i0.Component, args: [{
|
|
5097
5104
|
selector: 'info-input',
|
|
5098
|
-
template: "<mat-form-field *ngIf=\"type != 'textarea' && ismask == null\" >\r\n <mat-icon *ngIf=\"iconPrefix\" matPrefix style=\"color: #aaa\">{{iconPrefix}}</mat-icon>\r\n \r\n <input matInput [type]=\"type\" [min]=\"min\" [max]=\"max\" [tabindex]=\"tabindex\" [placeholder]=\"placeholder | translate\" [(ngModel)]=\"value\" (input)=\"onChangeValue()\" (blur)=\"onBlur()\"\r\n [maxlength]=\"maxlength\" [readonly]=\"readonly\" [disabled]=\"disabled\" [required]=\"required\">\r\n\r\n <mat-icon *ngIf=\"iconSuffix\" matSuffix style=\"color: #aaa\">{{iconSuffix}}</mat-icon>\r\n <mat-icon class=\"show-password\" *ngIf=\"passwordMode\" (click)=\"type = (type == 'password') ? 'text' : 'password'\" matSuffix >visibility{{ type == 'password' ? '' : '_off' }}</mat-icon>\r\n</mat-form-field>\r\n\r\n<mat-form-field *ngIf=\"type != 'textarea' && ismask != null\">\r\n <mat-icon *ngIf=\"iconPrefix\" matPrefix style=\"color: #aaa\">{{iconPrefix}}</mat-icon>\r\n\r\n <input matInput [tabindex]=\"tabindex\" [placeholder]=\"placeholder | translate\" [(ngModel)]=\"value\" (ngModelChange)=\"onChangeValue()\" (blur)=\"onBlur()\" *ngIf=\"customMask == null\"\r\n [readonly]=\"readonly\" [disabled]=\"disabled\" [required]=\"required\" [options]=\"maskOptions\" currencyMask>\r\n\r\n <input matInput [tabindex]=\"tabindex\" [placeholder]=\"placeholder | translate\" [(ngModel)]=\"value\" (ngModelChange)=\"onChangeValue()\" (blur)=\"onBlur()\" *ngIf=\"customMask != null\"\r\n [readonly]=\"readonly\" [disabled]=\"disabled\" [required]=\"required\" [setmask]=\"customMask\" unmask >\r\n\r\n <mat-icon *ngIf=\"iconSuffix\" matSuffix style=\"color: #aaa\">{{iconSuffix}}</mat-icon>\r\n</mat-form-field>\r\n\r\n<mat-form-field *ngIf=\"type == 'textarea'\">\r\n <mat-icon *ngIf=\"iconPrefix\" matPrefix style=\"color: #aaa\">{{iconPrefix}}</mat-icon>\r\n \r\n <textarea matInput [tabindex]=\"tabindex\" [placeholder]=\"placeholder | translate\" [(ngModel)]=\"value\" (input)=\"onChangeValue()\" (blur)=\"onBlur()\" [rows]=\"rows\"\r\n [maxlength]=\"maxlength\" [readonly]=\"readonly\" [disabled]=\"disabled\" [required]=\"required\"></textarea>\r\n</mat-form-field>",
|
|
5105
|
+
template: "<mat-form-field *ngIf=\"type != 'color' && type != 'textarea' && ismask == null\" >\r\n <mat-icon *ngIf=\"iconPrefix\" matPrefix style=\"color: #aaa\">{{iconPrefix}}</mat-icon>\r\n \r\n <input matInput [type]=\"type\" [min]=\"min\" [max]=\"max\" [tabindex]=\"tabindex\" [placeholder]=\"placeholder | translate\" [(ngModel)]=\"value\" (input)=\"onChangeValue()\" (blur)=\"onBlur()\"\r\n [maxlength]=\"maxlength\" [readonly]=\"readonly\" [disabled]=\"disabled\" [required]=\"required\">\r\n\r\n <mat-icon *ngIf=\"iconSuffix\" matSuffix style=\"color: #aaa\">{{iconSuffix}}</mat-icon>\r\n <mat-icon class=\"show-password\" *ngIf=\"passwordMode\" (click)=\"type = (type == 'password') ? 'text' : 'password'\" matSuffix >visibility{{ type == 'password' ? '' : '_off' }}</mat-icon>\r\n</mat-form-field>\r\n\r\n<mat-form-field *ngIf=\"type != 'color' && type != 'textarea' && ismask != null\">\r\n <mat-icon *ngIf=\"iconPrefix\" matPrefix style=\"color: #aaa\">{{iconPrefix}}</mat-icon>\r\n\r\n <input matInput [tabindex]=\"tabindex\" [placeholder]=\"placeholder | translate\" [(ngModel)]=\"value\" (ngModelChange)=\"onChangeValue()\" (blur)=\"onBlur()\" *ngIf=\"customMask == null\"\r\n [readonly]=\"readonly\" [disabled]=\"disabled\" [required]=\"required\" [options]=\"maskOptions\" currencyMask>\r\n\r\n <input matInput [tabindex]=\"tabindex\" [placeholder]=\"placeholder | translate\" [(ngModel)]=\"value\" (ngModelChange)=\"onChangeValue()\" (blur)=\"onBlur()\" *ngIf=\"customMask != null\"\r\n [readonly]=\"readonly\" [disabled]=\"disabled\" [required]=\"required\" [setmask]=\"customMask\" unmask >\r\n\r\n <mat-icon *ngIf=\"iconSuffix\" matSuffix style=\"color: #aaa\">{{iconSuffix}}</mat-icon>\r\n</mat-form-field>\r\n\r\n<mat-form-field *ngIf=\"type == 'textarea'\">\r\n <mat-icon *ngIf=\"iconPrefix\" matPrefix style=\"color: #aaa\">{{iconPrefix}}</mat-icon>\r\n \r\n <textarea matInput [tabindex]=\"tabindex\" [placeholder]=\"placeholder | translate\" [(ngModel)]=\"value\" (input)=\"onChangeValue()\" (blur)=\"onBlur()\" [rows]=\"rows\"\r\n [maxlength]=\"maxlength\" [readonly]=\"readonly\" [disabled]=\"disabled\" [required]=\"required\"></textarea>\r\n</mat-form-field>\r\n\r\n<mat-form-field class=\"input-color\" *ngIf=\"type == 'color'\">\r\n \r\n <div class=\"input-color-container\">\r\n <input #colorInput style=\"width: 0px;visibility: hidden;\" type=\"color\" [(ngModel)]=\"value\" [readonly]=\"readonly\" [disabled]=\"disabled\">\r\n <div class=\"color-picker\" [style.background-color]=\"value\" (click)=\"colorInput.click()\"></div>\r\n \r\n <input matInput type=\"text\" [tabindex]=\"tabindex\" [placeholder]=\"placeholder | translate\" [(ngModel)]=\"value\" (input)=\"onChangeValue()\" (blur)=\"onBlur()\"\r\n [maxlength]=\"maxlength\" [readonly]=\"readonly\" [disabled]=\"disabled\" [required]=\"required\">\r\n \r\n <mat-icon *ngIf=\"iconSuffix\" matSuffix style=\"color: #aaa\">{{iconSuffix}}</mat-icon>\r\n </div>\r\n</mat-form-field>",
|
|
5099
5106
|
providers: [
|
|
5100
5107
|
{
|
|
5101
5108
|
provide: forms.NG_VALUE_ACCESSOR,
|
|
@@ -5104,7 +5111,8 @@
|
|
|
5104
5111
|
*/function () { return InfoInputComponent; })),
|
|
5105
5112
|
multi: true
|
|
5106
5113
|
}
|
|
5107
|
-
]
|
|
5114
|
+
],
|
|
5115
|
+
styles: [":host .input-color ::ng-deep.mat-form-field-label{transition:transform .4s cubic-bezier(.25,.8,.25,1),color .4s cubic-bezier(.25,.8,.25,1),width .4s cubic-bezier(.25,.8,.25,1),margin .4s cubic-bezier(.25,.8,.25,1)}:host .input-color:not(.mat-form-field-should-float) ::ng-deep.mat-form-field-label{margin-left:40px}:host .input-color.mat-form-field-should-float ::ng-deep.mat-form-field-label{margin-left:0}:host .input-color .input-color-container{display:flex}:host .input-color .input-color-container input[type=color]{height:0;visibility:hidden;width:0}:host .input-color .input-color-container .color-picker{border:1px solid #000;border-radius:5px;margin-right:5px;width:30px}"]
|
|
5108
5116
|
}] }
|
|
5109
5117
|
];
|
|
5110
5118
|
InfoInputComponent.propDecorators = {
|
|
@@ -6575,6 +6583,7 @@
|
|
|
6575
6583
|
this.setthemeonchangecompany = false;
|
|
6576
6584
|
this.shortcutapi = null;
|
|
6577
6585
|
this.ongetnotification = new i0.EventEmitter();
|
|
6586
|
+
this.onverifynotification = new i0.EventEmitter();
|
|
6578
6587
|
}
|
|
6579
6588
|
Object.defineProperty(InfoMainComponent.prototype, "themes", {
|
|
6580
6589
|
/**
|
|
@@ -6688,12 +6697,19 @@
|
|
|
6688
6697
|
InfoMainComponent.prototype.onGetNotificationsTopBar = function (event) {
|
|
6689
6698
|
this.ongetnotification.emit(event);
|
|
6690
6699
|
};
|
|
6700
|
+
/**
|
|
6701
|
+
* @param {?} event
|
|
6702
|
+
* @return {?}
|
|
6703
|
+
*/
|
|
6704
|
+
InfoMainComponent.prototype.onVerifyNotificationsTopBar = function (event) {
|
|
6705
|
+
this.onverifynotification.emit(event);
|
|
6706
|
+
};
|
|
6691
6707
|
return InfoMainComponent;
|
|
6692
6708
|
}());
|
|
6693
6709
|
InfoMainComponent.decorators = [
|
|
6694
6710
|
{ type: i0.Component, args: [{
|
|
6695
6711
|
selector: 'info-main',
|
|
6696
|
-
template: "<div class=\"site-container\" [ngClass]=\"{ 'open-sidebar': opened }\">\r\n \r\n <info-topbar #topbar\r\n [themes]=\"themes\" \r\n [languages]=\"languages\" \r\n [profileurl]=\"profileurl\"\r\n [notificationapi]=\"notificationapi\" \r\n [notificationgetmethod]=\"notificationgetmethod\" \r\n [notificationpostmethod]=\"notificationpostmethod\"\r\n [notificationverifymethod]=\"notificationverifymethod\"\r\n [notificationverifyenabled]=\"notificationverifyenabled\"\r\n [fastsearchform]=\"fastsearchform\"\r\n [fastsearchformwidth]=\"fastsearchformwidth\"\r\n [fastsearchtitle]=\"fastsearchtitle\"\r\n [setthemeonchangecompany]=\"setthemeonchangecompany\"\r\n (onchangestate)=\"onChangeTopBarState()\"\r\n (ongetnotification)=\"onGetNotificationsTopBar($event)\">\r\n </info-topbar>\r\n \r\n <info-topmenu *ngIf=\"_platform.Config.topMenu\"\r\n [api]=\"menuapi\" \r\n [method]=\"menumethod\" \r\n (onchangestate)=\"onChangeSideBarState()\">\r\n </info-topmenu>\r\n\r\n <info-sidebar *ngIf=\"!_platform.Config.topMenu\"\r\n [api]=\"menuapi\" \r\n [method]=\"menumethod\" \r\n [activemenubyurl]=\"activemenubyurl\"\r\n (onchangestate)=\"onChangeSideBarState()\">\r\n </info-sidebar>\r\n\r\n <main class=\"main-content\">\r\n <div class=\"main-content-wrap\">\r\n <ng-content></ng-content>\r\n </div>\r\n\r\n <div class=\"footer row\">\r\n <div class=\"copyright col-md-9\">{{ 'Copyright' | translate}}</div>\r\n <div class=\"version col-md-3\" *ngIf=\"version\">{{ 'Versao' | translate}} {{ version }}</div>\r\n </div>\r\n \r\n <info-alert [messages]=\"messages\"></info-alert>\r\n </main>\r\n</div>",
|
|
6712
|
+
template: "<div class=\"site-container\" [ngClass]=\"{ 'open-sidebar': opened }\">\r\n \r\n <info-topbar #topbar\r\n [themes]=\"themes\" \r\n [languages]=\"languages\" \r\n [profileurl]=\"profileurl\"\r\n [notificationapi]=\"notificationapi\" \r\n [notificationgetmethod]=\"notificationgetmethod\" \r\n [notificationpostmethod]=\"notificationpostmethod\"\r\n [notificationverifymethod]=\"notificationverifymethod\"\r\n [notificationverifyenabled]=\"notificationverifyenabled\"\r\n [fastsearchform]=\"fastsearchform\"\r\n [fastsearchformwidth]=\"fastsearchformwidth\"\r\n [fastsearchtitle]=\"fastsearchtitle\"\r\n [setthemeonchangecompany]=\"setthemeonchangecompany\"\r\n (onchangestate)=\"onChangeTopBarState()\"\r\n (ongetnotification)=\"onGetNotificationsTopBar($event)\"\r\n (onverifynotification)=\"onVerifyNotificationsTopBar($event)\">\r\n </info-topbar>\r\n \r\n <info-topmenu *ngIf=\"_platform.Config.topMenu\"\r\n [api]=\"menuapi\" \r\n [method]=\"menumethod\" \r\n (onchangestate)=\"onChangeSideBarState()\">\r\n </info-topmenu>\r\n\r\n <info-sidebar *ngIf=\"!_platform.Config.topMenu\"\r\n [api]=\"menuapi\" \r\n [method]=\"menumethod\" \r\n [activemenubyurl]=\"activemenubyurl\"\r\n (onchangestate)=\"onChangeSideBarState()\">\r\n </info-sidebar>\r\n\r\n <main class=\"main-content\">\r\n <div class=\"main-content-wrap\">\r\n <ng-content></ng-content>\r\n </div>\r\n\r\n <div class=\"footer row\">\r\n <div class=\"copyright col-md-9\">{{ 'Copyright' | translate}}</div>\r\n <div class=\"version col-md-3\" *ngIf=\"version\">{{ 'Versao' | translate}} {{ version }}</div>\r\n </div>\r\n \r\n <info-alert [messages]=\"messages\"></info-alert>\r\n </main>\r\n</div>",
|
|
6697
6713
|
styles: [":host.topmenu .main-content{padding:180px 0 0!important}:host.uxc3 .main-content{padding:140px 0 0 240px;transition:padding .2s ease-in-out}:host.uxc3 .main-content .bg{background:#fff}@media screen and (max-width:991px){:host.uxc3 .main-content{padding-left:0}}@media screen and (max-width:543px){:host.uxc3 .main-content{padding-top:70px}}:host.uxc3 .main-content .footer{background:#fafafa}:host.uxc3 .main-content .footer .version{text-align:right}:host.uxc3 .open-sidebar info-sidebar,:host.uxc3 .open-sidebar info-topbar{left:0}@media screen and (max-width:991px){:host.uxc3 .open-sidebar info-sidebar .sidebar-overlay{opacity:.5;transition:opacity .2s ease-in-out 0s,visibility 0s ease-in-out 0s;visibility:visible}}@media screen and (max-width:991px){:host.uxc3 .open-sidebar info-sidebar .site-sidebar:before,:host.uxc3 .open-sidebar info-sidebar .sub-menu{display:block!important}}:host.uxc2 .main-content{padding:131px 0 0 240px;transition:padding .2s ease-in-out}@media (max-width:991px){:host.uxc2 .main-content{padding-left:0}}@media (max-width:543px){:host.uxc2 .main-content{padding-top:123px}}:host.uxc2 info-topbar{transition:left .2s ease-in-out}@media (max-width:991px){:host.uxc2 info-topbar{width:100%}}:host.uxc2 .open-sidebar info-topbar{left:240px}:host.uxc2 .open-sidebar info-sidebar{left:0}@media (max-width:991px){:host.uxc2 .open-sidebar info-sidebar /deep/ .sidebar-overlay{opacity:1;transition:opacity .2s ease-in-out 0s,visibility 0s ease-in-out 0s;visibility:visible}}:host.uxc2 .footer{align-items:center;background:rgba(0,0,0,.1);bottom:0;display:flex;font-size:.8rem;height:3.14286rem;justify-content:space-between;position:-webkit-sticky;position:sticky;width:100%;z-index:9997}@media (max-width:543px){:host.uxc2 .footer{font-size:.7rem}}:host.uxc2 .footer .copyright,:host.uxc2 .footer .version{padding:10px 22px}@media (max-width:543px){:host.uxc2 .footer .copyright{padding-right:0}}:host.uxc2 .footer .version{color:#000;text-align:right}"]
|
|
6698
6714
|
}] }
|
|
6699
6715
|
];
|
|
@@ -6731,6 +6747,7 @@
|
|
|
6731
6747
|
setthemeonchangecompany: [{ type: i0.Input }],
|
|
6732
6748
|
shortcutapi: [{ type: i0.Input }],
|
|
6733
6749
|
ongetnotification: [{ type: i0.Output }],
|
|
6750
|
+
onverifynotification: [{ type: i0.Output }],
|
|
6734
6751
|
topbar: [{ type: i0.ViewChild, args: ['topbar',] }]
|
|
6735
6752
|
};
|
|
6736
6753
|
if (false) {
|
|
@@ -6784,6 +6801,8 @@
|
|
|
6784
6801
|
/** @type {?} */
|
|
6785
6802
|
InfoMainComponent.prototype.ongetnotification;
|
|
6786
6803
|
/** @type {?} */
|
|
6804
|
+
InfoMainComponent.prototype.onverifynotification;
|
|
6805
|
+
/** @type {?} */
|
|
6787
6806
|
InfoMainComponent.prototype.topbar;
|
|
6788
6807
|
/** @type {?} */
|
|
6789
6808
|
InfoMainComponent.prototype._platform;
|
|
@@ -7097,6 +7116,7 @@
|
|
|
7097
7116
|
this.setthemeonchangecompany = false;
|
|
7098
7117
|
this.onchangestate = new i0.EventEmitter();
|
|
7099
7118
|
this.ongetnotification = new i0.EventEmitter();
|
|
7119
|
+
this.onverifynotification = new i0.EventEmitter();
|
|
7100
7120
|
this.modalRef = null;
|
|
7101
7121
|
this.loading = false;
|
|
7102
7122
|
this.prodution = false;
|
|
@@ -7283,6 +7303,7 @@
|
|
|
7283
7303
|
*/function () { _this.verifyNotifications(); }), 15000);
|
|
7284
7304
|
else
|
|
7285
7305
|
_this.getNotifications();
|
|
7306
|
+
_this.onverifynotification.emit(Object.assign(Object.assign({}, _this.notifications), { VerifyCount: r.data }));
|
|
7286
7307
|
}));
|
|
7287
7308
|
};
|
|
7288
7309
|
/**
|
|
@@ -7365,7 +7386,8 @@
|
|
|
7365
7386
|
profileurl: [{ type: i0.Input }],
|
|
7366
7387
|
setthemeonchangecompany: [{ type: i0.Input }],
|
|
7367
7388
|
onchangestate: [{ type: i0.Output }],
|
|
7368
|
-
ongetnotification: [{ type: i0.Output }]
|
|
7389
|
+
ongetnotification: [{ type: i0.Output }],
|
|
7390
|
+
onverifynotification: [{ type: i0.Output }]
|
|
7369
7391
|
};
|
|
7370
7392
|
if (false) {
|
|
7371
7393
|
/** @type {?} */
|
|
@@ -7399,6 +7421,8 @@
|
|
|
7399
7421
|
/** @type {?} */
|
|
7400
7422
|
InfoTopbarComponent.prototype.ongetnotification;
|
|
7401
7423
|
/** @type {?} */
|
|
7424
|
+
InfoTopbarComponent.prototype.onverifynotification;
|
|
7425
|
+
/** @type {?} */
|
|
7402
7426
|
InfoTopbarComponent.prototype.modalRef;
|
|
7403
7427
|
/** @type {?} */
|
|
7404
7428
|
InfoTopbarComponent.prototype.loading;
|