ngx-smz-ui 3.4.10 → 3.4.14
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/ngx-smz-ui.umd.js +104 -31
- package/bundles/ngx-smz-ui.umd.js.map +1 -1
- package/esm2015/lib/builders/smz-dialogs/dialog-input-conversion.js +4 -2
- package/esm2015/lib/modules/rbk-utils/utils/state/state.guard.js +11 -1
- package/esm2015/lib/modules/smz-dialogs/features/dialog-footer/dialog-footer.component.js +75 -13
- package/fesm2015/ngx-smz-ui.js +87 -14
- package/fesm2015/ngx-smz-ui.js.map +1 -1
- package/lib/modules/smz-dialogs/features/dialog-footer/dialog-footer.component.d.ts +3 -1
- package/package.json +1 -1
|
@@ -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
|
|
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
|
|
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
|
|
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) {
|
|
@@ -5716,26 +5761,42 @@
|
|
|
5716
5761
|
button.onClick(response);
|
|
5717
5762
|
};
|
|
5718
5763
|
DialogFooterComponent.prototype.isValid = function () {
|
|
5719
|
-
var e_1,
|
|
5720
|
-
var _a, _b, _c, _d, _e, _f;
|
|
5764
|
+
var e_1, _o;
|
|
5765
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
5721
5766
|
// const isValid = this.dialogConfig.data._context.injectables.every(x => x.ref?.componentRef?.instance?.isValid);
|
|
5722
5767
|
// console.log('----------------------- isValid', this.visibilityService);
|
|
5723
5768
|
// console.log('--- isValid() ');
|
|
5724
5769
|
// console.log('context', this.dialogConfig.data._context);
|
|
5725
5770
|
var isValid = true;
|
|
5771
|
+
if (this.rbkConfig.debugMode) {
|
|
5772
|
+
console.log(' Calling isValid()');
|
|
5773
|
+
}
|
|
5726
5774
|
try {
|
|
5727
|
-
for (var
|
|
5728
|
-
var injectable =
|
|
5775
|
+
for (var _p = __values(this.dialogConfig.data._context.injectables), _q = _p.next(); !_q.done; _q = _p.next()) {
|
|
5776
|
+
var injectable = _q.value;
|
|
5777
|
+
if (this.rbkConfig.debugMode)
|
|
5778
|
+
console.log(' >> injectable', injectable);
|
|
5729
5779
|
if (injectable.visibilityDependsOn != null) {
|
|
5780
|
+
if (this.rbkConfig.debugMode)
|
|
5781
|
+
console.log(' >> injectable visibilityDependsOn');
|
|
5730
5782
|
var observer = this.visibilityService.observers[injectable.componentId + injectable.component.name];
|
|
5783
|
+
if (this.rbkConfig.debugMode)
|
|
5784
|
+
console.log(' >> injectable observer', observer);
|
|
5731
5785
|
var isVisible = !injectable.visibilityDependsOn.reversed && (observer === null || observer === void 0 ? void 0 : observer.visibility$.value.state) || injectable.visibilityDependsOn.reversed && !(observer === null || observer === void 0 ? void 0 : observer.visibility$.value.state);
|
|
5732
|
-
if (
|
|
5786
|
+
if (this.rbkConfig.debugMode)
|
|
5787
|
+
console.log(' >> injectable isVisible', isVisible);
|
|
5788
|
+
if (this.rbkConfig.debugMode)
|
|
5789
|
+
console.log(' >> injectable componentRef isValid', (_c = (_b = (_a = injectable.ref) === null || _a === void 0 ? void 0 : _a.componentRef) === null || _b === void 0 ? void 0 : _b.instance) === null || _c === void 0 ? void 0 : _c.isValid);
|
|
5790
|
+
if (isVisible && !((_f = (_e = (_d = injectable.ref) === null || _d === void 0 ? void 0 : _d.componentRef) === null || _e === void 0 ? void 0 : _e.instance) === null || _f === void 0 ? void 0 : _f.isValid)) {
|
|
5733
5791
|
isValid = false;
|
|
5734
5792
|
}
|
|
5735
5793
|
}
|
|
5736
5794
|
else {
|
|
5737
5795
|
// console.log(' instance isValid', injectable.ref?.componentRef?.instance?.isValid);
|
|
5738
|
-
if (
|
|
5796
|
+
if (this.rbkConfig.debugMode) {
|
|
5797
|
+
console.log(' >> injectable componentRef isValid', (_j = (_h = (_g = injectable.ref) === null || _g === void 0 ? void 0 : _g.componentRef) === null || _h === void 0 ? void 0 : _h.instance) === null || _j === void 0 ? void 0 : _j.isValid);
|
|
5798
|
+
}
|
|
5799
|
+
if (!((_m = (_l = (_k = injectable.ref) === null || _k === void 0 ? void 0 : _k.componentRef) === null || _l === void 0 ? void 0 : _l.instance) === null || _m === void 0 ? void 0 : _m.isValid)) {
|
|
5739
5800
|
isValid = false;
|
|
5740
5801
|
}
|
|
5741
5802
|
}
|
|
@@ -5744,22 +5805,28 @@
|
|
|
5744
5805
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
5745
5806
|
finally {
|
|
5746
5807
|
try {
|
|
5747
|
-
if (
|
|
5808
|
+
if (_q && !_q.done && (_o = _p.return)) _o.call(_p);
|
|
5748
5809
|
}
|
|
5749
5810
|
finally { if (e_1) throw e_1.error; }
|
|
5750
5811
|
}
|
|
5812
|
+
if (this.rbkConfig.debugMode) {
|
|
5813
|
+
console.log(' isValid() => ', isValid);
|
|
5814
|
+
}
|
|
5751
5815
|
return isValid;
|
|
5752
5816
|
};
|
|
5753
5817
|
DialogFooterComponent.prototype.responsePostProcesses = function () {
|
|
5754
5818
|
var _a;
|
|
5755
5819
|
var config = this.dialogConfig.data;
|
|
5756
5820
|
var response = config.behaviors.useAdvancedResponse ? config._context.advancedResponse : config._context.simpleResponse;
|
|
5821
|
+
if (this.rbkConfig.debugMode) {
|
|
5822
|
+
console.log(' >> response', response);
|
|
5823
|
+
}
|
|
5757
5824
|
return ((_a = config.callbacks) === null || _a === void 0 ? void 0 : _a.postProcessResponse) != null ? config.callbacks.postProcessResponse(response) : response;
|
|
5758
5825
|
};
|
|
5759
5826
|
return DialogFooterComponent;
|
|
5760
5827
|
}());
|
|
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
|
|
5828
|
+
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 });
|
|
5829
|
+
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
5830
|
DialogFooterComponent = __decorate([
|
|
5764
5831
|
untilDestroy.UntilDestroy()
|
|
5765
5832
|
], DialogFooterComponent);
|
|
@@ -5771,7 +5838,7 @@
|
|
|
5771
5838
|
styleUrls: ['./dialog-footer.component.scss'],
|
|
5772
5839
|
encapsulation: i0.ViewEncapsulation.None,
|
|
5773
5840
|
}]
|
|
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 }]; } });
|
|
5841
|
+
}], 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
5842
|
var ConfirmOnEnterDirective = /** @class */ (function () {
|
|
5776
5843
|
function ConfirmOnEnterDirective(el, store) {
|
|
5777
5844
|
this.el = el;
|
|
@@ -6187,12 +6254,6 @@
|
|
|
6187
6254
|
}());
|
|
6188
6255
|
GlobalInjector$1.instance = null;
|
|
6189
6256
|
|
|
6190
|
-
var NgxRbkUtilsConfig = /** @class */ (function () {
|
|
6191
|
-
function NgxRbkUtilsConfig() {
|
|
6192
|
-
}
|
|
6193
|
-
return NgxRbkUtilsConfig;
|
|
6194
|
-
}());
|
|
6195
|
-
|
|
6196
6257
|
var LOADING_BEHAVIOR_HEADER = 'Loading-Behavior';
|
|
6197
6258
|
var ERROR_HANDLING_TYPE_HEADER = 'Error-Handling-Type';
|
|
6198
6259
|
var REFRESH_TOKEN_BEHAVIOR_HEADER = 'Refresh-Token-Behavior';
|
|
@@ -10293,7 +10354,7 @@
|
|
|
10293
10354
|
DocumentContentComponent], imports: [i1$1.CommonModule,
|
|
10294
10355
|
i1.ReactiveFormsModule,
|
|
10295
10356
|
dialog.DialogModule, i1__namespace$4.ɵbc, i2$1.OverlayPanelModule,
|
|
10296
|
-
i7
|
|
10357
|
+
i7.ToastModule,
|
|
10297
10358
|
i5.TableModule,
|
|
10298
10359
|
i6.ButtonModule,
|
|
10299
10360
|
message.MessageModule,
|
|
@@ -10303,7 +10364,7 @@
|
|
|
10303
10364
|
InjectContentAppModule,
|
|
10304
10365
|
NgGroupByPipeModule,
|
|
10305
10366
|
DynamicDialogModule,
|
|
10306
|
-
|
|
10367
|
+
i8.ToolbarModule,
|
|
10307
10368
|
SmzTemplatesPipeModule,
|
|
10308
10369
|
i10.TooltipModule,
|
|
10309
10370
|
i1$a.MessagesModule,
|
|
@@ -10317,7 +10378,7 @@
|
|
|
10317
10378
|
dialog.DialogModule,
|
|
10318
10379
|
ngxsModuleForFeatureDialogsState,
|
|
10319
10380
|
i2$1.OverlayPanelModule,
|
|
10320
|
-
i7
|
|
10381
|
+
i7.ToastModule,
|
|
10321
10382
|
i5.TableModule,
|
|
10322
10383
|
i6.ButtonModule,
|
|
10323
10384
|
message.MessageModule,
|
|
@@ -10327,7 +10388,7 @@
|
|
|
10327
10388
|
InjectContentAppModule,
|
|
10328
10389
|
NgGroupByPipeModule,
|
|
10329
10390
|
DynamicDialogModule,
|
|
10330
|
-
|
|
10391
|
+
i8.ToolbarModule,
|
|
10331
10392
|
SmzTemplatesPipeModule,
|
|
10332
10393
|
i10.TooltipModule,
|
|
10333
10394
|
i1$a.MessagesModule,
|
|
@@ -10354,7 +10415,7 @@
|
|
|
10354
10415
|
dialog.DialogModule,
|
|
10355
10416
|
ngxsModuleForFeatureDialogsState,
|
|
10356
10417
|
i2$1.OverlayPanelModule,
|
|
10357
|
-
i7
|
|
10418
|
+
i7.ToastModule,
|
|
10358
10419
|
i5.TableModule,
|
|
10359
10420
|
i6.ButtonModule,
|
|
10360
10421
|
message.MessageModule,
|
|
@@ -10364,7 +10425,7 @@
|
|
|
10364
10425
|
InjectContentAppModule,
|
|
10365
10426
|
NgGroupByPipeModule,
|
|
10366
10427
|
DynamicDialogModule,
|
|
10367
|
-
|
|
10428
|
+
i8.ToolbarModule,
|
|
10368
10429
|
SmzTemplatesPipeModule,
|
|
10369
10430
|
i10.TooltipModule,
|
|
10370
10431
|
i1$a.MessagesModule,
|
|
@@ -11535,7 +11596,6 @@
|
|
|
11535
11596
|
}
|
|
11536
11597
|
}
|
|
11537
11598
|
|
|
11538
|
-
var rbkConfig = GlobalInjector.instance.get(NgxRbkUtilsConfig);
|
|
11539
11599
|
function convertFormFeature(entityName, store, entity, options) {
|
|
11540
11600
|
if (entity === void 0) { entity = null; }
|
|
11541
11601
|
if (options === void 0) { options = null; }
|
|
@@ -11550,6 +11610,7 @@
|
|
|
11550
11610
|
if (entity === void 0) { entity = null; }
|
|
11551
11611
|
if (options === void 0) { options = null; }
|
|
11552
11612
|
var _a, _b, _c;
|
|
11613
|
+
var rbkConfig = GlobalInjector.instance.get(NgxRbkUtilsConfig);
|
|
11553
11614
|
var form = {
|
|
11554
11615
|
groups: [],
|
|
11555
11616
|
behaviors: {}
|
|
@@ -11708,6 +11769,7 @@
|
|
|
11708
11769
|
}
|
|
11709
11770
|
function convertInputs(inputs, store, options) {
|
|
11710
11771
|
var e_5, _d;
|
|
11772
|
+
var rbkConfig = GlobalInjector.instance.get(NgxRbkUtilsConfig);
|
|
11711
11773
|
var results = [];
|
|
11712
11774
|
if (inputs == null)
|
|
11713
11775
|
throw new Error('Inputs could not be null');
|
|
@@ -11886,6 +11948,7 @@
|
|
|
11886
11948
|
if (storeData === null) {
|
|
11887
11949
|
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');
|
|
11888
11950
|
}
|
|
11951
|
+
var rbkConfig = GlobalInjector.instance.get(NgxRbkUtilsConfig);
|
|
11889
11952
|
if (rbkConfig.debugMode) {
|
|
11890
11953
|
console.log(' >> getDataFromStore()');
|
|
11891
11954
|
console.log(' >> config', storeData);
|
|
@@ -15714,7 +15777,7 @@
|
|
|
15714
15777
|
return OutletComponent;
|
|
15715
15778
|
}());
|
|
15716
15779
|
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 });
|
|
15717
|
-
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
|
|
15780
|
+
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 } });
|
|
15718
15781
|
__decorate([
|
|
15719
15782
|
i1$4.Select(LayoutUiSelectors.toast)
|
|
15720
15783
|
], OutletComponent.prototype, "toast$", void 0);
|
|
@@ -16697,13 +16760,13 @@
|
|
|
16697
16760
|
i1$5.SharedModule,
|
|
16698
16761
|
SmzThemeManagerModule,
|
|
16699
16762
|
GlobalLoaderModule,
|
|
16700
|
-
i7
|
|
16763
|
+
i7.ToastModule], exports: [OutletComponent] });
|
|
16701
16764
|
OutletModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: OutletModule, imports: [[
|
|
16702
16765
|
i1$1.CommonModule,
|
|
16703
16766
|
i1$5.SharedModule,
|
|
16704
16767
|
SmzThemeManagerModule,
|
|
16705
16768
|
GlobalLoaderModule,
|
|
16706
|
-
i7
|
|
16769
|
+
i7.ToastModule
|
|
16707
16770
|
]] });
|
|
16708
16771
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: OutletModule, decorators: [{
|
|
16709
16772
|
type: i0.NgModule,
|
|
@@ -16714,7 +16777,7 @@
|
|
|
16714
16777
|
i1$5.SharedModule,
|
|
16715
16778
|
SmzThemeManagerModule,
|
|
16716
16779
|
GlobalLoaderModule,
|
|
16717
|
-
i7
|
|
16780
|
+
i7.ToastModule
|
|
16718
16781
|
],
|
|
16719
16782
|
exports: [OutletComponent]
|
|
16720
16783
|
}]
|
|
@@ -23078,6 +23141,8 @@
|
|
|
23078
23141
|
var states = snapshot.routeConfig.data.requiredStates;
|
|
23079
23142
|
if (snapshot.routeConfig.data.requiredStates == null ||
|
|
23080
23143
|
((_a = snapshot.routeConfig.data.requiredStates) === null || _a === void 0 ? void 0 : _a.length) === 0) {
|
|
23144
|
+
if (this.config.debugMode)
|
|
23145
|
+
console.groupEnd();
|
|
23081
23146
|
return rxjs.of(true);
|
|
23082
23147
|
}
|
|
23083
23148
|
if (this.config.debugMode)
|
|
@@ -23085,13 +23150,19 @@
|
|
|
23085
23150
|
var _loop_1 = function (name) {
|
|
23086
23151
|
var stateConfig = this_1.config.state.database[name];
|
|
23087
23152
|
if (stateConfig == null) {
|
|
23153
|
+
if (this_1.config.debugMode)
|
|
23154
|
+
console.groupEnd();
|
|
23088
23155
|
throw new Error('The route is asking for a state that is not setup in the config file');
|
|
23089
23156
|
}
|
|
23090
23157
|
var stateValue = this_1.store.selectSnapshot(function (x) { return x.database[name]; });
|
|
23091
23158
|
if (stateValue == null) {
|
|
23159
|
+
if (this_1.config.debugMode)
|
|
23160
|
+
console.groupEnd();
|
|
23092
23161
|
throw new Error(name + ' state is null, is it properly initialized with a default value?');
|
|
23093
23162
|
}
|
|
23094
23163
|
if (stateValue.lastUpdated === undefined) {
|
|
23164
|
+
if (this_1.config.debugMode)
|
|
23165
|
+
console.groupEnd();
|
|
23095
23166
|
throw new Error('For a state to be automatically loaded by the route it needs to have a "lastUpdated" property');
|
|
23096
23167
|
}
|
|
23097
23168
|
var dispatchAction = false;
|
|
@@ -23134,6 +23205,8 @@
|
|
|
23134
23205
|
}
|
|
23135
23206
|
finally { if (e_1) throw e_1.error; }
|
|
23136
23207
|
}
|
|
23208
|
+
if (this.config.debugMode)
|
|
23209
|
+
console.groupEnd();
|
|
23137
23210
|
return this.store
|
|
23138
23211
|
.select(DatabaseSelectors.areStatesInitialized(states))
|
|
23139
23212
|
.pipe(operators.filter(function (x) { return x !== false; }), operators.tap(function () {
|