ngx-smz-ui 3.4.9 → 3.4.13

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.
@@ -2,7 +2,7 @@
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/flex-layout'), require('primeng/dialog'), require('primeng/toast'), require('primeng/table'), require('primeng/button'), require('primeng/message'), require('primeng/progressspinner'), require('primeng/toolbar'), require('primeng/listbox'), require('rxjs/operators'), require('lodash-es'), require('rxjs'), require('primeng/password'), require('primeng/tooltip'), require('@angular/flex-layout/flex'), require('primeng/inputmask'), require('primeng/inputtext'), require('@ngxs/store'), require('primeng/api'), require('primeng/inputnumber'), require('primeng/inputtextarea'), require('@angular/flex-layout/extended'), require('primeng/overlaypanel'), require('primeng/dropdown'), require('primeng/radiobutton'), require('primeng/inputswitch'), require('primeng/checkbox'), require('primeng/calendar'), require('primeng/messages'), require('@angular/platform-browser'), require('primeng/multiselect'), require('primeng/colorpicker'), require('primeng/fileupload'), require('@angular/common/http'), require('moment'), require('primeng/utils'), require('primeng/dynamicdialog'), require('@angular/animations'), require('primeng/dom'), require('@ngneat/until-destroy'), require('primeng/progressbar'), require('angular2-uuid'), require('@auth0/angular-jwt'), require('primeng/skeleton'), require('@angular/router'), require('primeng/ripple'), require('jspdf'), require('primeng/badge'), require('primeng/selectbutton'), require('ngx-pipes'), require('primeng/accordion'), require('@ngxs/router-plugin'), require('lodash-es/forIn'), require('lodash-es/startsWith'), require('@angular/platform-browser/animations'), require('@angular/common/locales/pt'), require('primeng/menubar'), require('primeng/sidebar'), require('primeng/contextmenu'), require('primeng/tree'), require('chart.js/auto'), require('chart.js/helpers'), require('lodash-es/cloneDeep'), require('ngx-device-detector')) :
3
3
  typeof define === 'function' && define.amd ? define('ngx-smz-ui', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/flex-layout', 'primeng/dialog', 'primeng/toast', 'primeng/table', 'primeng/button', 'primeng/message', 'primeng/progressspinner', 'primeng/toolbar', 'primeng/listbox', 'rxjs/operators', 'lodash-es', 'rxjs', 'primeng/password', 'primeng/tooltip', '@angular/flex-layout/flex', 'primeng/inputmask', 'primeng/inputtext', '@ngxs/store', 'primeng/api', 'primeng/inputnumber', 'primeng/inputtextarea', '@angular/flex-layout/extended', 'primeng/overlaypanel', 'primeng/dropdown', 'primeng/radiobutton', 'primeng/inputswitch', 'primeng/checkbox', 'primeng/calendar', 'primeng/messages', '@angular/platform-browser', 'primeng/multiselect', 'primeng/colorpicker', 'primeng/fileupload', '@angular/common/http', 'moment', 'primeng/utils', 'primeng/dynamicdialog', '@angular/animations', 'primeng/dom', '@ngneat/until-destroy', 'primeng/progressbar', 'angular2-uuid', '@auth0/angular-jwt', 'primeng/skeleton', '@angular/router', 'primeng/ripple', 'jspdf', 'primeng/badge', 'primeng/selectbutton', 'ngx-pipes', 'primeng/accordion', '@ngxs/router-plugin', 'lodash-es/forIn', 'lodash-es/startsWith', '@angular/platform-browser/animations', '@angular/common/locales/pt', 'primeng/menubar', 'primeng/sidebar', 'primeng/contextmenu', 'primeng/tree', 'chart.js/auto', 'chart.js/helpers', 'lodash-es/cloneDeep', 'ngx-device-detector'], factory) :
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['ngx-smz-ui'] = {}, global.ng.core, global.ng.common, global.ng.forms, global.ng.flexLayout, global.dialog, global.toast, global.table, global.button, global.message, global.progressspinner, global.toolbar, global.listbox, global.rxjs.operators, global['lodash-es'], global.rxjs, global.password, global.tooltip, global.ng.flexLayout.flex, global.inputmask, global.inputtext, global.store, global.api, global.inputnumber, global.inputtextarea, global.ng.flexLayout.extended, global.overlaypanel, global.dropdown, global.radiobutton, global.inputswitch, global.checkbox, global.calendar, global.messages, global.ng.platformBrowser, global.multiselect, global.colorpicker, global.fileupload, global.ng.common.http, global.moment, global.utils, global.dynamicdialog, global.ng.animations, global.dom, global['until-destroy'], global.progressbar, global.angularuuid, global.angularJwt, global.skeleton, global.ng.router, global.ripple, global.jspdf, global.badge, global.selectbutton, global.ngxpipes, global.accordion, global['router-plugin'], global.forin, global.startswith, global.ng.platformBrowser.animations, global.ng.common.locales.pt, global.menubar, global.sidebar, global.contextmenu, global.tree, global.chartjaauto, global.chartjshelpers, global.cloneDeep, global.ngxDeviceDetector));
5
- }(this, (function (exports, i0, i1$1, i1, flexLayout, dialog, i7$1, i5, i6, message, progressspinner, i7, i3$1, operators, lodashEs, rxjs, i1$2, i10, i3, i1$3, i4, i1$4, i1$5, i2, i3$2, i4$1, i2$1, i4$2, i1$6, i1$7, i3$3, i1$8, i1$a, i1$9, i1$b, i1$c, fileupload, i1$d, moment_, utils, i2$2, animations, dom, untilDestroy, progressbar, angular2Uuid, angularJwt, i9, i1$e, i3$4, jspdf, i6$1, i4$3, i3$5, i3$6, routerPlugin, forIn, startsWith, animations$1, localePt, menubar, i3$7, i1$f, i2$3, Chart, helpers, cloneDeep, ngxDeviceDetector) { 'use strict';
5
+ }(this, (function (exports, i0, i1$1, i1, flexLayout, dialog, i7, i5, i6, message, progressspinner, i8, i3$1, operators, lodashEs, rxjs, i1$2, i10, i3, i1$3, i4, i1$4, i1$5, i2, i3$2, i4$1, i2$1, i4$2, i1$6, i1$7, i3$3, i1$8, i1$a, i1$9, i1$b, i1$c, fileupload, i1$d, moment_, utils, i2$2, animations, dom, untilDestroy, progressbar, angular2Uuid, angularJwt, i9, i1$e, i3$4, jspdf, i6$1, i4$3, i3$5, i3$6, routerPlugin, forIn, startsWith, animations$1, localePt, menubar, i3$7, i1$f, i2$3, Chart, helpers, cloneDeep, ngxDeviceDetector) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -29,10 +29,10 @@
29
29
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
30
30
  var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
31
31
  var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1);
32
- var i7__namespace$1 = /*#__PURE__*/_interopNamespace(i7$1);
32
+ var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
33
33
  var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
34
34
  var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
35
- var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
35
+ var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
36
36
  var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
37
37
  var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$2);
38
38
  var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
@@ -5511,8 +5511,14 @@
5511
5511
  }]
5512
5512
  }] });
5513
5513
 
5514
+ var NgxRbkUtilsConfig = /** @class */ (function () {
5515
+ function NgxRbkUtilsConfig() {
5516
+ }
5517
+ return NgxRbkUtilsConfig;
5518
+ }());
5519
+
5514
5520
  var DialogFooterComponent = /** @class */ (function () {
5515
- function DialogFooterComponent(refService, dialogConfig, presets, visibilityService, injectComponent, cdf, actions$, store) {
5521
+ function DialogFooterComponent(refService, dialogConfig, presets, visibilityService, injectComponent, cdf, actions$, rbkConfig, store) {
5516
5522
  this.refService = refService;
5517
5523
  this.dialogConfig = dialogConfig;
5518
5524
  this.presets = presets;
@@ -5520,6 +5526,7 @@
5520
5526
  this.injectComponent = injectComponent;
5521
5527
  this.cdf = cdf;
5522
5528
  this.actions$ = actions$;
5529
+ this.rbkConfig = rbkConfig;
5523
5530
  this.store = store;
5524
5531
  }
5525
5532
  DialogFooterComponent.prototype.ngOnInit = function () {
@@ -5549,19 +5556,36 @@
5549
5556
  DialogFooterComponent.prototype.onSubmit = function () {
5550
5557
  var _this = this;
5551
5558
  if (this.isValid()) {
5559
+ if (this.rbkConfig.debugMode) {
5560
+ console.log(' onSubmit => ', true);
5561
+ }
5552
5562
  return true;
5553
5563
  }
5554
5564
  else {
5565
+ if (this.rbkConfig.debugMode) {
5566
+ console.log(' Forms... ');
5567
+ }
5555
5568
  this.dialogConfig.data.features
5556
5569
  .filter(function (x) { return x.type === 'form'; })
5557
5570
  .forEach(function (feature) {
5558
5571
  var formFeature = feature.data;
5559
5572
  var form = formFeature._context.form;
5573
+ if (_this.rbkConfig.debugMode) {
5574
+ console.log(' > formFeature:', formFeature);
5575
+ console.log(' > form:', form);
5576
+ console.log(' > controls:', form.controls);
5577
+ }
5560
5578
  Object.keys(form.controls).forEach(function (field) {
5561
5579
  var control = form.get(field);
5580
+ if (_this.rbkConfig.debugMode) {
5581
+ console.log(" > control for " + field + ":", control);
5582
+ }
5562
5583
  control.markAsTouched({ onlySelf: true });
5563
5584
  });
5564
5585
  });
5586
+ if (this.rbkConfig.debugMode) {
5587
+ console.log(' Components... ');
5588
+ }
5565
5589
  this.dialogConfig.data.features
5566
5590
  .filter(function (x) { return x.type === 'component'; })
5567
5591
  .forEach(function (feature) {
@@ -5586,6 +5610,9 @@
5586
5610
  }
5587
5611
  });
5588
5612
  this.cdf.markForCheck();
5613
+ if (this.rbkConfig.debugMode) {
5614
+ console.log(' onSubmit => ', false);
5615
+ }
5589
5616
  return false;
5590
5617
  }
5591
5618
  };
@@ -5607,6 +5634,12 @@
5607
5634
  DialogFooterComponent.prototype.save = function () {
5608
5635
  var _this = this;
5609
5636
  var _a, _b;
5637
+ if (this.rbkConfig.debugMode) {
5638
+ console.groupCollapsed('Dialog Save Pressed:');
5639
+ console.log(' >> context', this.dialogConfig.data._context);
5640
+ console.log(' >> onSubmit()', this.onSubmit());
5641
+ console.log(' >> data', this.dialogConfig.data);
5642
+ }
5610
5643
  var context = this.dialogConfig.data._context;
5611
5644
  if (context.builtInButtons.saveDependsOnValidation && !this.onSubmit())
5612
5645
  return;
@@ -5624,8 +5657,14 @@
5624
5657
  if (((_b = (_a = this.dialogConfig.data) === null || _a === void 0 ? void 0 : _a.callbacks) === null || _b === void 0 ? void 0 : _b.onSaveAction) != null) {
5625
5658
  var postProcessResponse = this.responsePostProcesses();
5626
5659
  var action = this.dialogConfig.data.callbacks.onSaveAction;
5660
+ if (this.rbkConfig.debugMode) {
5661
+ console.log(' >> postProcessResponse', postProcessResponse);
5662
+ }
5627
5663
  this.store.dispatch(new action(postProcessResponse))
5628
5664
  .pipe(operators.catchError(function (err) {
5665
+ if (_this.rbkConfig.debugMode) {
5666
+ console.log(' >> dispatch catchError', err);
5667
+ }
5629
5668
  var errors = err.error;
5630
5669
  _this.dialogConfig.data._context.apiErrors = errors.map(function (x) { return ({ severity: 'warn', summary: '', detail: x }); });
5631
5670
  _this.dialogConfig.data._context.isGlobalDisabled = false;
@@ -5641,12 +5680,18 @@
5641
5680
  return err;
5642
5681
  }))
5643
5682
  .subscribe(function () {
5683
+ if (_this.rbkConfig.debugMode) {
5684
+ console.log(' >> dispatch subscribe');
5685
+ }
5644
5686
  _this.dialogConfig.data._context.isGlobalDisabled = false;
5645
5687
  _this.dialogConfig.data._context.isLoading = false;
5646
5688
  _this.dialogConfig.data._context.apiErrors = [];
5647
5689
  _this.refService.close();
5648
5690
  });
5649
5691
  }
5692
+ if (this.rbkConfig.debugMode) {
5693
+ console.groupEnd();
5694
+ }
5650
5695
  };
5651
5696
  DialogFooterComponent.prototype.customClick = function (button) {
5652
5697
  if (button.blockUi != null) {
@@ -5754,12 +5799,15 @@
5754
5799
  var _a;
5755
5800
  var config = this.dialogConfig.data;
5756
5801
  var response = config.behaviors.useAdvancedResponse ? config._context.advancedResponse : config._context.simpleResponse;
5802
+ if (this.rbkConfig.debugMode) {
5803
+ console.log(' >> response', response);
5804
+ }
5757
5805
  return ((_a = config.callbacks) === null || _a === void 0 ? void 0 : _a.postProcessResponse) != null ? config.callbacks.postProcessResponse(response) : response;
5758
5806
  };
5759
5807
  return DialogFooterComponent;
5760
5808
  }());
5761
- DialogFooterComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: DialogFooterComponent, deps: [{ token: DynamicDialogRef }, { token: SmzDynamicDialogConfig }, { token: SmzDialogsConfig }, { token: SmzDialogsVisibilityService }, { token: InjectComponentService }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$4.Actions }, { token: i1__namespace$4.Store }], target: i0__namespace.ɵɵFactoryTarget.Component });
5762
- DialogFooterComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: DialogFooterComponent, selector: "smz-dialog-footer", ngImport: i0__namespace, template: "<ng-container *ngIf=\"dialogConfig.data._context as context\">\n\n <p-toolbar class=\"smz-dialog-footer\">\n <div class=\"p-grid p-nogutter p-align-center p-justify-end gap-2\">\n\n <ng-container *ngIf=\"context.customButtonsOrder == null || context.customButtonsOrder === 'first'\">\n <ng-container *ngFor=\"let customButton of context.customButtons\">\n <p-button\n *ngIf=\"customButton.visible == null || customButton.visible\"\n [label]=\"customButton.name\"\n [ngClass]=\"customButton.class\"\n [styleClass]=\"customButton.class\"\n [disabled]=\"context.isGlobalDisabled || customButton.dependsOnValidation && !isValid() || customButton.disabled\"\n [pTooltip]=\"customButton.tooltip\"\n appendTo=\"body\"\n tooltipPosition=\"top\"\n (onClick)=\"customClick(customButton)\">\n </p-button>\n </ng-container>\n </ng-container>\n\n <p-button\n *ngIf=\"context.behaviors.showCancelButton\"\n [label]=\"context.builtInButtons.cancelName\"\n [ngClass]=\"context.builtInButtons.cancelClass\"\n [styleClass]=\"context.builtInButtons.cancelClass\"\n (onClick)=\"close()\">\n </p-button>\n\n <!-- DependsOnValidation -->\n <p-button\n *ngIf=\"context.behaviors.showConfirmButton\"\n [confirmOnEnter]=\"context.isLoading ? false : context.behaviors.confirmOnEnter\"\n [dialogId]=\"context.id\"\n [label]=\"context.builtInButtons.confirmName\"\n [ngClass]=\"context.builtInButtons.confirmClass\"\n [styleClass]=\"context.builtInButtons.confirmClass\"\n [disabled]=\"context.isGlobalDisabled\"\n (onClick)=\"confirm()\">\n </p-button>\n\n <!-- DependsOnValidation -->\n <p-button\n *ngIf=\"context.behaviors.showOkButton\"\n [confirmOnEnter]=\"context.isLoading ? false : context.behaviors.confirmOnEnter\"\n [dialogId]=\"context.id\"\n [label]=\"context.builtInButtons.okName\"\n [ngClass]=\"context.builtInButtons.okClass\"\n [styleClass]=\"context.builtInButtons.okClass\"\n [disabled]=\"context.isGlobalDisabled\"\n (onClick)=\"ok()\">\n </p-button>\n\n <!-- DependsOnValidation -->\n <p-button\n *ngIf=\"context.behaviors.showSaveButton\"\n [confirmOnEnter]=\"context.isLoading ? false : context.behaviors.confirmOnEnter\"\n [dialogId]=\"context.id\"\n [label]=\"context.builtInButtons.saveName\"\n [ngClass]=\"context.builtInButtons.saveClass\"\n [styleClass]=\"context.builtInButtons.saveClass\"\n [icon]=\"context.isLoading ? 'fas fa-spinner fa-spin' : ''\"\n [disabled]=\"context.isGlobalDisabled\"\n (onClick)=\"save()\">\n </p-button>\n\n <ng-container *ngIf=\"context.customButtonsOrder === 'last'\">\n <ng-container *ngFor=\"let customButton of context.customButtons\">\n\n <!-- DependsOnValidation -->\n <p-button\n *ngIf=\"customButton.visible == null || customButton.visible\"\n [label]=\"customButton.name\"\n [ngClass]=\"customButton.class\"\n [styleClass]=\"customButton.class\"\n [disabled]=\"context.isGlobalDisabled || customButton.disabled\"\n [pTooltip]=\"customButton.tooltip\"\n appendTo=\"body\"\n tooltipPosition=\"top\"\n (onClick)=\"customClick(customButton)\">\n </p-button>\n </ng-container>\n </ng-container>\n\n </div>\n </p-toolbar>\n\n</ng-container>", styles: [""], components: [{ type: i0__namespace.forwardRef(function () { return i7__namespace.Toolbar; }), selector: "p-toolbar", inputs: ["style", "styleClass"] }, { type: i0__namespace.forwardRef(function () { return i6__namespace.Button; }), selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "style", "styleClass", "badgeClass"], outputs: ["onClick", "onFocus", "onBlur"] }], directives: [{ type: i0__namespace.forwardRef(function () { return i1__namespace.NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i0__namespace.forwardRef(function () { return i1__namespace.NgForOf; }), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i0__namespace.forwardRef(function () { return i1__namespace.NgClass; }), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i0__namespace.forwardRef(function () { return i4__namespace$1.DefaultClassDirective; }), selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i0__namespace.forwardRef(function () { return i10__namespace.Tooltip; }), selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { type: i0__namespace.forwardRef(function () { return ConfirmOnEnterDirective; }), selector: "[confirmOnEnter]", inputs: ["confirmOnEnter", "clickEvent", "delayConfirmation", "disabled", "dialogId"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
5809
+ DialogFooterComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: DialogFooterComponent, deps: [{ token: DynamicDialogRef }, { token: SmzDynamicDialogConfig }, { token: SmzDialogsConfig }, { token: SmzDialogsVisibilityService }, { token: InjectComponentService }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$4.Actions }, { token: NgxRbkUtilsConfig }, { token: i1__namespace$4.Store }], target: i0__namespace.ɵɵFactoryTarget.Component });
5810
+ DialogFooterComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: DialogFooterComponent, selector: "smz-dialog-footer", ngImport: i0__namespace, template: "<ng-container *ngIf=\"dialogConfig.data._context as context\">\n\n <p-toolbar class=\"smz-dialog-footer\">\n <div class=\"p-grid p-nogutter p-align-center p-justify-end gap-2\">\n\n <ng-container *ngIf=\"context.customButtonsOrder == null || context.customButtonsOrder === 'first'\">\n <ng-container *ngFor=\"let customButton of context.customButtons\">\n <p-button\n *ngIf=\"customButton.visible == null || customButton.visible\"\n [label]=\"customButton.name\"\n [ngClass]=\"customButton.class\"\n [styleClass]=\"customButton.class\"\n [disabled]=\"context.isGlobalDisabled || customButton.dependsOnValidation && !isValid() || customButton.disabled\"\n [pTooltip]=\"customButton.tooltip\"\n appendTo=\"body\"\n tooltipPosition=\"top\"\n (onClick)=\"customClick(customButton)\">\n </p-button>\n </ng-container>\n </ng-container>\n\n <p-button\n *ngIf=\"context.behaviors.showCancelButton\"\n [label]=\"context.builtInButtons.cancelName\"\n [ngClass]=\"context.builtInButtons.cancelClass\"\n [styleClass]=\"context.builtInButtons.cancelClass\"\n (onClick)=\"close()\">\n </p-button>\n\n <!-- DependsOnValidation -->\n <p-button\n *ngIf=\"context.behaviors.showConfirmButton\"\n [confirmOnEnter]=\"context.isLoading ? false : context.behaviors.confirmOnEnter\"\n [dialogId]=\"context.id\"\n [label]=\"context.builtInButtons.confirmName\"\n [ngClass]=\"context.builtInButtons.confirmClass\"\n [styleClass]=\"context.builtInButtons.confirmClass\"\n [disabled]=\"context.isGlobalDisabled\"\n (onClick)=\"confirm()\">\n </p-button>\n\n <!-- DependsOnValidation -->\n <p-button\n *ngIf=\"context.behaviors.showOkButton\"\n [confirmOnEnter]=\"context.isLoading ? false : context.behaviors.confirmOnEnter\"\n [dialogId]=\"context.id\"\n [label]=\"context.builtInButtons.okName\"\n [ngClass]=\"context.builtInButtons.okClass\"\n [styleClass]=\"context.builtInButtons.okClass\"\n [disabled]=\"context.isGlobalDisabled\"\n (onClick)=\"ok()\">\n </p-button>\n\n <!-- DependsOnValidation -->\n <p-button\n *ngIf=\"context.behaviors.showSaveButton\"\n [confirmOnEnter]=\"context.isLoading ? false : context.behaviors.confirmOnEnter\"\n [dialogId]=\"context.id\"\n [label]=\"context.builtInButtons.saveName\"\n [ngClass]=\"context.builtInButtons.saveClass\"\n [styleClass]=\"context.builtInButtons.saveClass\"\n [icon]=\"context.isLoading ? 'fas fa-spinner fa-spin' : ''\"\n [disabled]=\"context.isGlobalDisabled\"\n (onClick)=\"save()\">\n </p-button>\n\n <ng-container *ngIf=\"context.customButtonsOrder === 'last'\">\n <ng-container *ngFor=\"let customButton of context.customButtons\">\n\n <!-- DependsOnValidation -->\n <p-button\n *ngIf=\"customButton.visible == null || customButton.visible\"\n [label]=\"customButton.name\"\n [ngClass]=\"customButton.class\"\n [styleClass]=\"customButton.class\"\n [disabled]=\"context.isGlobalDisabled || customButton.disabled\"\n [pTooltip]=\"customButton.tooltip\"\n appendTo=\"body\"\n tooltipPosition=\"top\"\n (onClick)=\"customClick(customButton)\">\n </p-button>\n </ng-container>\n </ng-container>\n\n </div>\n </p-toolbar>\n\n</ng-container>", styles: [""], components: [{ type: i0__namespace.forwardRef(function () { return i8__namespace.Toolbar; }), selector: "p-toolbar", inputs: ["style", "styleClass"] }, { type: i0__namespace.forwardRef(function () { return i6__namespace.Button; }), selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "style", "styleClass", "badgeClass"], outputs: ["onClick", "onFocus", "onBlur"] }], directives: [{ type: i0__namespace.forwardRef(function () { return i1__namespace.NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i0__namespace.forwardRef(function () { return i1__namespace.NgForOf; }), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i0__namespace.forwardRef(function () { return i1__namespace.NgClass; }), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i0__namespace.forwardRef(function () { return i4__namespace$1.DefaultClassDirective; }), selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i0__namespace.forwardRef(function () { return i10__namespace.Tooltip; }), selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { type: i0__namespace.forwardRef(function () { return ConfirmOnEnterDirective; }), selector: "[confirmOnEnter]", inputs: ["confirmOnEnter", "clickEvent", "delayConfirmation", "disabled", "dialogId"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
5763
5811
  DialogFooterComponent = __decorate([
5764
5812
  untilDestroy.UntilDestroy()
5765
5813
  ], DialogFooterComponent);
@@ -5771,7 +5819,7 @@
5771
5819
  styleUrls: ['./dialog-footer.component.scss'],
5772
5820
  encapsulation: i0.ViewEncapsulation.None,
5773
5821
  }]
5774
- }], ctorParameters: function () { return [{ type: DynamicDialogRef }, { type: SmzDynamicDialogConfig }, { type: SmzDialogsConfig }, { type: SmzDialogsVisibilityService }, { type: InjectComponentService }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$4.Actions }, { type: i1__namespace$4.Store }]; } });
5822
+ }], ctorParameters: function () { return [{ type: DynamicDialogRef }, { type: SmzDynamicDialogConfig }, { type: SmzDialogsConfig }, { type: SmzDialogsVisibilityService }, { type: InjectComponentService }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$4.Actions }, { type: NgxRbkUtilsConfig }, { type: i1__namespace$4.Store }]; } });
5775
5823
  var ConfirmOnEnterDirective = /** @class */ (function () {
5776
5824
  function ConfirmOnEnterDirective(el, store) {
5777
5825
  this.el = el;
@@ -6187,12 +6235,6 @@
6187
6235
  }());
6188
6236
  GlobalInjector$1.instance = null;
6189
6237
 
6190
- var NgxRbkUtilsConfig = /** @class */ (function () {
6191
- function NgxRbkUtilsConfig() {
6192
- }
6193
- return NgxRbkUtilsConfig;
6194
- }());
6195
-
6196
6238
  var LOADING_BEHAVIOR_HEADER = 'Loading-Behavior';
6197
6239
  var ERROR_HANDLING_TYPE_HEADER = 'Error-Handling-Type';
6198
6240
  var REFRESH_TOKEN_BEHAVIOR_HEADER = 'Refresh-Token-Behavior';
@@ -10293,7 +10335,7 @@
10293
10335
  DocumentContentComponent], imports: [i1$1.CommonModule,
10294
10336
  i1.ReactiveFormsModule,
10295
10337
  dialog.DialogModule, i1__namespace$4.ɵbc, i2$1.OverlayPanelModule,
10296
- i7$1.ToastModule,
10338
+ i7.ToastModule,
10297
10339
  i5.TableModule,
10298
10340
  i6.ButtonModule,
10299
10341
  message.MessageModule,
@@ -10303,7 +10345,7 @@
10303
10345
  InjectContentAppModule,
10304
10346
  NgGroupByPipeModule,
10305
10347
  DynamicDialogModule,
10306
- i7.ToolbarModule,
10348
+ i8.ToolbarModule,
10307
10349
  SmzTemplatesPipeModule,
10308
10350
  i10.TooltipModule,
10309
10351
  i1$a.MessagesModule,
@@ -10317,7 +10359,7 @@
10317
10359
  dialog.DialogModule,
10318
10360
  ngxsModuleForFeatureDialogsState,
10319
10361
  i2$1.OverlayPanelModule,
10320
- i7$1.ToastModule,
10362
+ i7.ToastModule,
10321
10363
  i5.TableModule,
10322
10364
  i6.ButtonModule,
10323
10365
  message.MessageModule,
@@ -10327,7 +10369,7 @@
10327
10369
  InjectContentAppModule,
10328
10370
  NgGroupByPipeModule,
10329
10371
  DynamicDialogModule,
10330
- i7.ToolbarModule,
10372
+ i8.ToolbarModule,
10331
10373
  SmzTemplatesPipeModule,
10332
10374
  i10.TooltipModule,
10333
10375
  i1$a.MessagesModule,
@@ -10354,7 +10396,7 @@
10354
10396
  dialog.DialogModule,
10355
10397
  ngxsModuleForFeatureDialogsState,
10356
10398
  i2$1.OverlayPanelModule,
10357
- i7$1.ToastModule,
10399
+ i7.ToastModule,
10358
10400
  i5.TableModule,
10359
10401
  i6.ButtonModule,
10360
10402
  message.MessageModule,
@@ -10364,7 +10406,7 @@
10364
10406
  InjectContentAppModule,
10365
10407
  NgGroupByPipeModule,
10366
10408
  DynamicDialogModule,
10367
- i7.ToolbarModule,
10409
+ i8.ToolbarModule,
10368
10410
  SmzTemplatesPipeModule,
10369
10411
  i10.TooltipModule,
10370
10412
  i1$a.MessagesModule,
@@ -11549,6 +11591,7 @@
11549
11591
  if (entity === void 0) { entity = null; }
11550
11592
  if (options === void 0) { options = null; }
11551
11593
  var _a, _b, _c;
11594
+ var rbkConfig = GlobalInjector.instance.get(NgxRbkUtilsConfig);
11552
11595
  var form = {
11553
11596
  groups: [],
11554
11597
  behaviors: {}
@@ -11707,10 +11750,16 @@
11707
11750
  }
11708
11751
  function convertInputs(inputs, store, options) {
11709
11752
  var e_5, _d;
11753
+ var rbkConfig = GlobalInjector.instance.get(NgxRbkUtilsConfig);
11710
11754
  var results = [];
11711
11755
  if (inputs == null)
11712
11756
  throw new Error('Inputs could not be null');
11713
11757
  var _loop_6 = function (config) {
11758
+ if (rbkConfig.debugMode) {
11759
+ console.groupCollapsed(config.propertyName);
11760
+ console.log('config', config);
11761
+ console.log('options', options);
11762
+ }
11714
11763
  if (config.controlType.id === "" + exports.SmzControlType.TEXT) {
11715
11764
  var input = Object.assign(Object.assign({}, convertBaseControl(config)), { defaultValue: config.defaultValue, type: exports.SmzControlType.TEXT });
11716
11765
  results.push(input);
@@ -11733,6 +11782,9 @@
11733
11782
  }
11734
11783
  else if (config.controlType.id === "" + exports.SmzControlType.DROPDOWN) {
11735
11784
  var list = getInputOptions(config, store, options);
11785
+ if (rbkConfig.debugMode) {
11786
+ console.log('list', list);
11787
+ }
11736
11788
  var input = Object.assign(Object.assign({}, convertBaseControl(config)), { defaultValue: config.required ? list[0].id : config.defaultValue, type: exports.SmzControlType.DROPDOWN, filterMatchMode: config.filterMatchMode, showFilter: config.showFilter, options: list });
11737
11789
  results.push(input);
11738
11790
  }
@@ -11781,6 +11833,10 @@
11781
11833
  results.push(parentInput);
11782
11834
  results.push(childInput);
11783
11835
  }
11836
+ if (rbkConfig.debugMode) {
11837
+ console.log('results', results[(results === null || results === void 0 ? void 0 : results.length) - 1]);
11838
+ console.groupEnd();
11839
+ }
11784
11840
  };
11785
11841
  try {
11786
11842
  for (var inputs_1 = __values(inputs), inputs_1_1 = inputs_1.next(); !inputs_1_1.done; inputs_1_1 = inputs_1.next()) {
@@ -11873,6 +11929,13 @@
11873
11929
  if (storeData === null) {
11874
11930
  throw new Error('The data was loaded from the store, but it seems to be null. Please check that your store is populated or that your selector is not returning null');
11875
11931
  }
11932
+ var rbkConfig = GlobalInjector.instance.get(NgxRbkUtilsConfig);
11933
+ if (rbkConfig.debugMode) {
11934
+ console.log(' >> getDataFromStore()');
11935
+ console.log(' >> config', storeData);
11936
+ console.log(' >> options', options);
11937
+ console.log(' >> storeData', storeData);
11938
+ }
11876
11939
  return storeData;
11877
11940
  }
11878
11941
  function convertBaseControl(config) {
@@ -15695,7 +15758,7 @@
15695
15758
  return OutletComponent;
15696
15759
  }());
15697
15760
  OutletComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: OutletComponent, deps: [{ token: SmzLayoutsConfig }, { token: RouterDataListenerService }, { token: i1__namespace$4.Store }, { token: PrimeConfigService }], target: i0__namespace.ɵɵFactoryTarget.Component });
15698
- OutletComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: OutletComponent, selector: "smz-ui-outlet", inputs: { menu: "menu" }, host: { listeners: { "mouseleave": "onMouseLeave()", "mouseenter": "onBeforeUnload()" } }, queries: [{ propertyName: "templates", predicate: i1$5.PrimeTemplate }], ngImport: i0__namespace, template: "<ng-container [ngSwitch]=\"routerListener.data?.layout?.mode\">\n\n <!-- LAYOUT SIMPLES -->\n <ng-container *ngSwitchCase=\"'none'\">\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </ng-container>\n\n <!-- LAYOUT COMPLETO -->\n <ng-container *ngSwitchCase=\"'full'\">\n <ng-container *ngTemplateOutlet=\"layoutTemplate\">\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </ng-container>\n </ng-container>\n\n <!-- LAYOUT COMPLETO -->\n <ng-container *ngSwitchCase=\"'menu-only'\">\n <ng-container *ngTemplateOutlet=\"layoutTemplate\">\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'custom'\">\n <ng-container *ngTemplateOutlet=\"layoutTemplate\">\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <!-- Nenhum tipo de layout foi encontrado. -->\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </ng-container>\n</ng-container>\n\n<smz-ui-theme-manager></smz-ui-theme-manager>\n<smz-ui-global-loader></smz-ui-global-loader>\n\n<ng-container *ngIf=\"toast$ | async as toast\">\n <p-toast [position]=\"toast.position\"></p-toast>\n</ng-container>", styles: [""], components: [{ type: ThemeManagerComponent, selector: "smz-ui-theme-manager" }, { type: GlobalLoaderComponent, selector: "smz-ui-global-loader", inputs: ["template"] }, { type: i7__namespace$1.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "style", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }], directives: [{ type: i1__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1__namespace.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i1__namespace.AsyncPipe } });
15761
+ OutletComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: OutletComponent, selector: "smz-ui-outlet", inputs: { menu: "menu" }, host: { listeners: { "mouseleave": "onMouseLeave()", "mouseenter": "onBeforeUnload()" } }, queries: [{ propertyName: "templates", predicate: i1$5.PrimeTemplate }], ngImport: i0__namespace, template: "<ng-container [ngSwitch]=\"routerListener.data?.layout?.mode\">\n\n <!-- LAYOUT SIMPLES -->\n <ng-container *ngSwitchCase=\"'none'\">\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </ng-container>\n\n <!-- LAYOUT COMPLETO -->\n <ng-container *ngSwitchCase=\"'full'\">\n <ng-container *ngTemplateOutlet=\"layoutTemplate\">\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </ng-container>\n </ng-container>\n\n <!-- LAYOUT COMPLETO -->\n <ng-container *ngSwitchCase=\"'menu-only'\">\n <ng-container *ngTemplateOutlet=\"layoutTemplate\">\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'custom'\">\n <ng-container *ngTemplateOutlet=\"layoutTemplate\">\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <!-- Nenhum tipo de layout foi encontrado. -->\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </ng-container>\n</ng-container>\n\n<smz-ui-theme-manager></smz-ui-theme-manager>\n<smz-ui-global-loader></smz-ui-global-loader>\n\n<ng-container *ngIf=\"toast$ | async as toast\">\n <p-toast [position]=\"toast.position\"></p-toast>\n</ng-container>", styles: [""], components: [{ type: ThemeManagerComponent, selector: "smz-ui-theme-manager" }, { type: GlobalLoaderComponent, selector: "smz-ui-global-loader", inputs: ["template"] }, { type: i7__namespace.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "style", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }], directives: [{ type: i1__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1__namespace.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i1__namespace.AsyncPipe } });
15699
15762
  __decorate([
15700
15763
  i1$4.Select(LayoutUiSelectors.toast)
15701
15764
  ], OutletComponent.prototype, "toast$", void 0);
@@ -16678,13 +16741,13 @@
16678
16741
  i1$5.SharedModule,
16679
16742
  SmzThemeManagerModule,
16680
16743
  GlobalLoaderModule,
16681
- i7$1.ToastModule], exports: [OutletComponent] });
16744
+ i7.ToastModule], exports: [OutletComponent] });
16682
16745
  OutletModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: OutletModule, imports: [[
16683
16746
  i1$1.CommonModule,
16684
16747
  i1$5.SharedModule,
16685
16748
  SmzThemeManagerModule,
16686
16749
  GlobalLoaderModule,
16687
- i7$1.ToastModule
16750
+ i7.ToastModule
16688
16751
  ]] });
16689
16752
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: OutletModule, decorators: [{
16690
16753
  type: i0.NgModule,
@@ -16695,7 +16758,7 @@
16695
16758
  i1$5.SharedModule,
16696
16759
  SmzThemeManagerModule,
16697
16760
  GlobalLoaderModule,
16698
- i7$1.ToastModule
16761
+ i7.ToastModule
16699
16762
  ],
16700
16763
  exports: [OutletComponent]
16701
16764
  }]
@@ -23115,6 +23178,8 @@
23115
23178
  }
23116
23179
  finally { if (e_1) throw e_1.error; }
23117
23180
  }
23181
+ if (this.config.debugMode)
23182
+ console.groupEnd();
23118
23183
  return this.store
23119
23184
  .select(DatabaseSelectors.areStatesInitialized(states))
23120
23185
  .pipe(operators.filter(function (x) { return x !== false; }), operators.tap(function () {