@fluxhub/fluxhub-lib 1.0.320 → 1.0.322
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/fluxhub-fluxhub-lib.umd.js +38 -3
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/docs/classes/wkfapp.html +32 -0
- package/docs/coverage.html +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/wkf_engine/wkfapp.js +48 -4
- package/esm5/lib/wkf_engine/wkfapp.js +47 -4
- package/fesm2015/fluxhub-fluxhub-lib.js +41 -4
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +40 -4
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/wkf_engine/wkfapp.d.ts +4 -1
- package/package.json +1 -1
|
@@ -37,7 +37,7 @@ import { DomSanitizer } from '@angular/platform-browser';
|
|
|
37
37
|
import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
38
38
|
import { MatDialogRef, MatDialog, DateAdapter, MAT_DATE_FORMATS, MatAutocompleteModule, MatButtonModule, MatButtonToggleModule, MatPaginatorModule, MatCardModule, MatCheckboxModule, MatChipsModule, MatDatepickerModule, MatGridListModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatProgressBarModule, MatProgressSpinnerModule, MatRadioModule, MatSelectModule, MatSidenavModule, MatSliderModule, MatSortModule, MatSlideToggleModule, MatSnackBarModule, MatTableModule, MatTabsModule, MatToolbarModule, MatTooltipModule, MatFormFieldModule, MatExpansionModule, MatStepperModule, MatDialogModule, MatNativeDateModule } from '@angular/material';
|
|
39
39
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
40
|
-
import { Injectable, Component,
|
|
40
|
+
import { Injectable, Component, Pipe, Directive, Input, Output, EventEmitter, forwardRef, ViewChild, Inject, PLATFORM_ID, ViewContainerRef, ElementRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
|
|
41
41
|
import { Http } from '@angular/http';
|
|
42
42
|
import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
|
|
43
43
|
import { ToastrService } from 'ngx-toastr';
|
|
@@ -5123,7 +5123,7 @@ var /**
|
|
|
5123
5123
|
* @abstract
|
|
5124
5124
|
*/
|
|
5125
5125
|
wkfapp = /** @class */ (function () {
|
|
5126
|
-
function wkfapp(app_s, m_service, m_dataService, m_fservice, m_router, _toastr, dialog, m_wkf) {
|
|
5126
|
+
function wkfapp(app_s, m_service, m_dataService, m_fservice, m_router, _toastr, dialog, m_wkf, m_uti) {
|
|
5127
5127
|
this.app_s = app_s;
|
|
5128
5128
|
this.m_service = m_service;
|
|
5129
5129
|
this.m_dataService = m_dataService;
|
|
@@ -5132,8 +5132,10 @@ wkfapp = /** @class */ (function () {
|
|
|
5132
5132
|
this._toastr = _toastr;
|
|
5133
5133
|
this.dialog = dialog;
|
|
5134
5134
|
this.m_wkf = m_wkf;
|
|
5135
|
+
this.m_uti = m_uti;
|
|
5135
5136
|
this.b_editing = false;
|
|
5136
5137
|
this.is_Supervisor = false;
|
|
5138
|
+
this.is_Visor = false;
|
|
5137
5139
|
this.is_Admin = false;
|
|
5138
5140
|
this.is_Ins = false;
|
|
5139
5141
|
this.id_applicativo = "";
|
|
@@ -5678,6 +5680,11 @@ wkfapp = /** @class */ (function () {
|
|
|
5678
5680
|
.getState()
|
|
5679
5681
|
.wkf_obj
|
|
5680
5682
|
.is_Supervisor = this.is_Supervisor;
|
|
5683
|
+
this
|
|
5684
|
+
.app_s
|
|
5685
|
+
.getState()
|
|
5686
|
+
.wkf_obj
|
|
5687
|
+
.is_Visor = this.is_Visor;
|
|
5681
5688
|
this
|
|
5682
5689
|
.app_s
|
|
5683
5690
|
.getState()
|
|
@@ -5761,6 +5768,11 @@ wkfapp = /** @class */ (function () {
|
|
|
5761
5768
|
.getState()
|
|
5762
5769
|
.wkf_obj
|
|
5763
5770
|
.b_editing;
|
|
5771
|
+
this.is_Visor = this
|
|
5772
|
+
.app_s
|
|
5773
|
+
.getState()
|
|
5774
|
+
.wkf_obj
|
|
5775
|
+
.is_Visor;
|
|
5764
5776
|
this.is_Supervisor = this
|
|
5765
5777
|
.app_s
|
|
5766
5778
|
.getState()
|
|
@@ -5950,8 +5962,32 @@ wkfapp = /** @class */ (function () {
|
|
|
5950
5962
|
function (data) {
|
|
5951
5963
|
if (data != null)
|
|
5952
5964
|
if (data.result_msg == "OK") {
|
|
5953
|
-
|
|
5954
|
-
|
|
5965
|
+
/** @type {?} */
|
|
5966
|
+
var p_3 = new QParam();
|
|
5967
|
+
p_3.sql = "SELECT_ROLES_VISORI";
|
|
5968
|
+
p_3.types = ['string'];
|
|
5969
|
+
p_3.values = [_this.id_applicativo];
|
|
5970
|
+
_this
|
|
5971
|
+
.m_dataService
|
|
5972
|
+
.doQuery(p_3)
|
|
5973
|
+
.subscribe((/**
|
|
5974
|
+
* @param {?} data
|
|
5975
|
+
* @return {?}
|
|
5976
|
+
*/
|
|
5977
|
+
function (data) {
|
|
5978
|
+
if (data != null)
|
|
5979
|
+
if (data.result_msg == "OK") {
|
|
5980
|
+
_this.is_Visor = false;
|
|
5981
|
+
for (var i = 0; i < data.result_data.length; i++) {
|
|
5982
|
+
if (_this.m_uti.hasRole(data.result_data[i].name, false)) {
|
|
5983
|
+
_this.is_Visor = true;
|
|
5984
|
+
break;
|
|
5985
|
+
}
|
|
5986
|
+
}
|
|
5987
|
+
_this.init_grid();
|
|
5988
|
+
_this.ok_conf_s(data.result_data);
|
|
5989
|
+
}
|
|
5990
|
+
}));
|
|
5955
5991
|
}
|
|
5956
5992
|
}));
|
|
5957
5993
|
}
|