info-library 2.10.22 → 2.10.26

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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/router'), require('@angular/common/http'), require('rxjs'), require('rxjs/operators'), require('@angular/material/dialog'), require('@angular/cdk/overlay'), require('@angular/forms'), require('@angular/material/core'), require('@angular/material-moment-adapter'), require('text-mask-core/dist/textMaskCore'), require('text-mask-addons/dist/createAutoCorrectedDatePipe'), require('@angular/cdk/keycodes'), require('@angular/common'), require('ng2-currency-mask'), require('@angular/material/card'), require('@angular/material/icon'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/list'), require('@angular/material/select'), require('@angular/material/checkbox'), require('@angular/material/radio'), require('@angular/material/button'), require('@angular/material/datepicker'), require('@angular/material/progress-bar'), require('@angular/material/tooltip'), require('@angular/material/autocomplete'), require('@kolkov/angular-editor'), require('@angular/material/chips'), require('text-mask-addons/dist/emailMask')) :
3
- typeof define === 'function' && define.amd ? define('info-library', ['exports', '@angular/core', '@angular/router', '@angular/common/http', 'rxjs', 'rxjs/operators', '@angular/material/dialog', '@angular/cdk/overlay', '@angular/forms', '@angular/material/core', '@angular/material-moment-adapter', 'text-mask-core/dist/textMaskCore', 'text-mask-addons/dist/createAutoCorrectedDatePipe', '@angular/cdk/keycodes', '@angular/common', 'ng2-currency-mask', '@angular/material/card', '@angular/material/icon', '@angular/material/form-field', '@angular/material/input', '@angular/material/list', '@angular/material/select', '@angular/material/checkbox', '@angular/material/radio', '@angular/material/button', '@angular/material/datepicker', '@angular/material/progress-bar', '@angular/material/tooltip', '@angular/material/autocomplete', '@kolkov/angular-editor', '@angular/material/chips', 'text-mask-addons/dist/emailMask'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['info-library'] = {}, global.ng.core, global.ng.router, global.ng.common.http, global.rxjs, global.rxjs.operators, global.ng.material.dialog, global.ng.cdk.overlay, global.ng.forms, global.ng.material.core, global.ng.materialMomentAdapter, global.textMaskCore, global.createAutoCorrectedDatePipe, global.ng.cdk.keycodes, global.ng.common, global.ng2CurrencyMask, global.ng.material.card, global.ng.material.icon, global.ng.material.formField, global.ng.material.input, global.ng.material.list, global.ng.material.select, global.ng.material.checkbox, global.ng.material.radio, global.ng.material.button, global.ng.material.datepicker, global.ng.material.progressBar, global.ng.material.tooltip, global.ng.material.autocomplete, global.angularEditor, global.ng.material.chips, global.emailMask));
5
- }(this, (function (exports, i0, i3, i2, rxjs, operators, i6, i1, forms, core, materialMomentAdapter, textMaskCore, createAutoCorrectedDatePipe, keycodes, common, ng2CurrencyMask, card, icon, formField, input, list, select, checkbox, radio, button, datepicker, progressBar, tooltip, autocomplete, angularEditor, chips, emailMask) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('text-mask-core/dist/textMaskCore'), require('@angular/router'), require('@angular/common/http'), require('rxjs'), require('rxjs/operators'), require('@angular/material/dialog'), require('@angular/cdk/overlay'), require('@angular/forms'), require('@angular/material/core'), require('@angular/material-moment-adapter'), require('text-mask-addons/dist/createAutoCorrectedDatePipe'), require('@angular/cdk/keycodes'), require('@angular/common'), require('ng2-currency-mask'), require('@angular/material/card'), require('@angular/material/icon'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/list'), require('@angular/material/select'), require('@angular/material/checkbox'), require('@angular/material/radio'), require('@angular/material/button'), require('@angular/material/datepicker'), require('@angular/material/progress-bar'), require('@angular/material/tooltip'), require('@angular/material/autocomplete'), require('@kolkov/angular-editor'), require('@angular/material/chips'), require('text-mask-addons/dist/emailMask')) :
3
+ typeof define === 'function' && define.amd ? define('info-library', ['exports', '@angular/core', 'text-mask-core/dist/textMaskCore', '@angular/router', '@angular/common/http', 'rxjs', 'rxjs/operators', '@angular/material/dialog', '@angular/cdk/overlay', '@angular/forms', '@angular/material/core', '@angular/material-moment-adapter', 'text-mask-addons/dist/createAutoCorrectedDatePipe', '@angular/cdk/keycodes', '@angular/common', 'ng2-currency-mask', '@angular/material/card', '@angular/material/icon', '@angular/material/form-field', '@angular/material/input', '@angular/material/list', '@angular/material/select', '@angular/material/checkbox', '@angular/material/radio', '@angular/material/button', '@angular/material/datepicker', '@angular/material/progress-bar', '@angular/material/tooltip', '@angular/material/autocomplete', '@kolkov/angular-editor', '@angular/material/chips', 'text-mask-addons/dist/emailMask'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['info-library'] = {}, global.ng.core, global.textMaskCore, global.ng.router, global.ng.common.http, global.rxjs, global.rxjs.operators, global.ng.material.dialog, global.ng.cdk.overlay, global.ng.forms, global.ng.material.core, global.ng.materialMomentAdapter, global.createAutoCorrectedDatePipe, global.ng.cdk.keycodes, global.ng.common, global.ng2CurrencyMask, global.ng.material.card, global.ng.material.icon, global.ng.material.formField, global.ng.material.input, global.ng.material.list, global.ng.material.select, global.ng.material.checkbox, global.ng.material.radio, global.ng.material.button, global.ng.material.datepicker, global.ng.material.progressBar, global.ng.material.tooltip, global.ng.material.autocomplete, global.angularEditor, global.ng.material.chips, global.emailMask));
5
+ }(this, (function (exports, i0, textMaskCore, i3, i2, rxjs, operators, i6, i1, forms, core, materialMomentAdapter, createAutoCorrectedDatePipe, keycodes, common, ng2CurrencyMask, card, icon, formField, input, list, select, checkbox, radio, button, datepicker, progressBar, tooltip, autocomplete, angularEditor, chips, emailMask) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -828,6 +828,55 @@
828
828
  InfoTranslatePipe.prototype._translate;
829
829
  }
830
830
 
831
+ /**
832
+ * @fileoverview added by tsickle
833
+ * Generated from: pipe/mask.pipe.ts
834
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
835
+ */
836
+ var InfoMaskPipe = /** @class */ (function () {
837
+ function InfoMaskPipe() {
838
+ }
839
+ /**
840
+ * @param {?} value
841
+ * @param {?=} args
842
+ * @return {?}
843
+ */
844
+ InfoMaskPipe.prototype.transform = function (value, args) {
845
+ if (!value)
846
+ return;
847
+ /** @type {?} */
848
+ var mask = [];
849
+ if (args == 'phone')
850
+ mask = ['(', /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/];
851
+ else if (args == 'cel')
852
+ mask = ['(', /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/];
853
+ else if (args == 'cep')
854
+ mask = [/\d/, /\d/, /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/];
855
+ else if (args == 'cpf')
856
+ mask = [/\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '-', /\d/, /\d/];
857
+ else if (args == 'cnpj')
858
+ mask = [/\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/, '-', /\d/, /\d/];
859
+ else
860
+ mask = Array.from(args).map(( /**
861
+ * @param {?} c
862
+ * @return {?}
863
+ */function (/**
864
+ * @param {?} c
865
+ * @return {?}
866
+ */ c) { return c == '0' ? /\d/ : c; }));
867
+ return textMaskCore.conformToMask(value, mask, { guide: false }).conformedValue;
868
+ };
869
+ return InfoMaskPipe;
870
+ }());
871
+ InfoMaskPipe.decorators = [
872
+ { type: i0.Pipe, args: [{
873
+ name: 'mask',
874
+ pure: false
875
+ },] }
876
+ ];
877
+ /** @nocollapse */
878
+ InfoMaskPipe.ctorParameters = function () { return []; };
879
+
831
880
  /**
832
881
  * @fileoverview added by tsickle
833
882
  * Generated from: pipe/index.ts
@@ -1714,7 +1763,7 @@
1714
1763
  InfoAuthenticationService.prototype.setResetarSenha = function (model) {
1715
1764
  var _this = this;
1716
1765
  return this._http
1717
- .post(this._plataforma.Config.webapiUrl + 'centrocontrole/usuario/ResetarSenha', model, { headers: this._dataService.getHeaderToken() })
1766
+ .post(this._plataforma.Config.webapiUrl + 'centrocontrole/usuario/ResetarSenha', model)
1718
1767
  .pipe(operators.map(( /**
1719
1768
  * @param {?} r
1720
1769
  * @return {?}
@@ -3137,6 +3186,13 @@
3137
3186
  */
3138
3187
  InfoMenuCardComponent.prototype.load = function () {
3139
3188
  this.menuRows = new Array();
3189
+ this.menu = this.menu == null ? null : this.menu.filter(( /**
3190
+ * @param {?} i
3191
+ * @return {?}
3192
+ */function (/**
3193
+ * @param {?} i
3194
+ * @return {?}
3195
+ */ i) { return i.permission == true; }));
3140
3196
  if (this.menu == null || this.menu.length == 0 || this.cols == null || this.cols == 0) {
3141
3197
  this.menuRows.push(this.menu);
3142
3198
  this.colClass += this.col.toString();
@@ -6518,6 +6574,7 @@
6518
6574
  this.fastsearchtitle = 'PesquisaRapidaCarteira';
6519
6575
  this.setthemeonchangecompany = false;
6520
6576
  this.shortcutapi = null;
6577
+ this.ongetnotification = new i0.EventEmitter();
6521
6578
  }
6522
6579
  Object.defineProperty(InfoMainComponent.prototype, "themes", {
6523
6580
  /**
@@ -6624,12 +6681,19 @@
6624
6681
  }
6625
6682
  }));
6626
6683
  };
6684
+ /**
6685
+ * @param {?} event
6686
+ * @return {?}
6687
+ */
6688
+ InfoMainComponent.prototype.onGetNotificationsTopBar = function (event) {
6689
+ this.ongetnotification.emit(event);
6690
+ };
6627
6691
  return InfoMainComponent;
6628
6692
  }());
6629
6693
  InfoMainComponent.decorators = [
6630
6694
  { type: i0.Component, args: [{
6631
6695
  selector: 'info-main',
6632
- 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 </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>",
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>",
6633
6697
  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}"]
6634
6698
  }] }
6635
6699
  ];
@@ -6666,6 +6730,7 @@
6666
6730
  fastsearchtitle: [{ type: i0.Input }],
6667
6731
  setthemeonchangecompany: [{ type: i0.Input }],
6668
6732
  shortcutapi: [{ type: i0.Input }],
6733
+ ongetnotification: [{ type: i0.Output }],
6669
6734
  topbar: [{ type: i0.ViewChild, args: ['topbar',] }]
6670
6735
  };
6671
6736
  if (false) {
@@ -6717,6 +6782,8 @@
6717
6782
  /** @type {?} */
6718
6783
  InfoMainComponent.prototype.shortcutapi;
6719
6784
  /** @type {?} */
6785
+ InfoMainComponent.prototype.ongetnotification;
6786
+ /** @type {?} */
6720
6787
  InfoMainComponent.prototype.topbar;
6721
6788
  /** @type {?} */
6722
6789
  InfoMainComponent.prototype._platform;
@@ -7029,6 +7096,7 @@
7029
7096
  this.profileurl = '';
7030
7097
  this.setthemeonchangecompany = false;
7031
7098
  this.onchangestate = new i0.EventEmitter();
7099
+ this.ongetnotification = new i0.EventEmitter();
7032
7100
  this.modalRef = null;
7033
7101
  this.loading = false;
7034
7102
  this.prodution = false;
@@ -7189,6 +7257,7 @@
7189
7257
  _this.notifications.Itens = r.data.Itens;
7190
7258
  if (_this.notificationverifyenabled)
7191
7259
  _this.verifyNotifications();
7260
+ _this.ongetnotification.emit(_this.notifications);
7192
7261
  }
7193
7262
  }));
7194
7263
  };
@@ -7295,7 +7364,8 @@
7295
7364
  fastsearchtitle: [{ type: i0.Input }],
7296
7365
  profileurl: [{ type: i0.Input }],
7297
7366
  setthemeonchangecompany: [{ type: i0.Input }],
7298
- onchangestate: [{ type: i0.Output }]
7367
+ onchangestate: [{ type: i0.Output }],
7368
+ ongetnotification: [{ type: i0.Output }]
7299
7369
  };
7300
7370
  if (false) {
7301
7371
  /** @type {?} */
@@ -7327,6 +7397,8 @@
7327
7397
  /** @type {?} */
7328
7398
  InfoTopbarComponent.prototype.onchangestate;
7329
7399
  /** @type {?} */
7400
+ InfoTopbarComponent.prototype.ongetnotification;
7401
+ /** @type {?} */
7330
7402
  InfoTopbarComponent.prototype.modalRef;
7331
7403
  /** @type {?} */
7332
7404
  InfoTopbarComponent.prototype.loading;
@@ -8347,6 +8419,7 @@
8347
8419
  ],
8348
8420
  declarations: [
8349
8421
  InfoTranslatePipe,
8422
+ InfoMaskPipe,
8350
8423
  InfoMaskDirective,
8351
8424
  InfoUnmaskDirective,
8352
8425
  InfoAlertComponent,
@@ -8381,6 +8454,7 @@
8381
8454
  ],
8382
8455
  exports: [
8383
8456
  InfoTranslatePipe,
8457
+ InfoMaskPipe,
8384
8458
  InfoAlertComponent,
8385
8459
  InfoAutoCompleteComponent,
8386
8460
  InfoBigCheckboxComponent,
@@ -8464,6 +8538,7 @@
8464
8538
  exports.InfoLoadingComponent = InfoLoadingComponent;
8465
8539
  exports.InfoLoginModel = InfoLoginModel;
8466
8540
  exports.InfoMainComponent = InfoMainComponent;
8541
+ exports.InfoMaskPipe = InfoMaskPipe;
8467
8542
  exports.InfoMenuCardComponent = InfoMenuCardComponent;
8468
8543
  exports.InfoMessageComponent = InfoMessageComponent;
8469
8544
  exports.InfoMethodGridButtonModel = InfoMethodGridButtonModel;
@@ -8501,8 +8576,9 @@
8501
8576
  exports.ɵl = InfoThemeService;
8502
8577
  exports.ɵm = InfoDialogModel;
8503
8578
  exports.ɵn = InfoTranslatePipe;
8504
- exports.ɵo = InfoMaskDirective;
8505
- exports.ɵp = InfoUnmaskDirective;
8579
+ exports.ɵo = InfoMaskPipe;
8580
+ exports.ɵp = InfoMaskDirective;
8581
+ exports.ɵq = InfoUnmaskDirective;
8506
8582
 
8507
8583
  Object.defineProperty(exports, '__esModule', { value: true });
8508
8584