@fluxhub/fluxhub-lib 1.0.427 → 1.0.429
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 +73 -19
- 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/esm2015/lib/auth_guard.js +5 -4
- package/esm2015/lib/controls/fhgrid.js +12 -12
- package/esm2015/lib/services/utility.service.js +46 -3
- package/esm2015/lib/wkf_engine/win_info_doc.js +13 -3
- package/esm2015/lib/wkf_engine/wkf_header_bar.js +2 -2
- package/esm5/lib/auth_guard.js +5 -4
- package/esm5/lib/controls/fhgrid.js +12 -12
- package/esm5/lib/services/utility.service.js +50 -3
- package/esm5/lib/wkf_engine/win_info_doc.js +12 -3
- package/esm5/lib/wkf_engine/wkf_header_bar.js +2 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +70 -19
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +73 -19
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/services/utility.service.d.ts +2 -1
- package/lib/wkf_engine/win_info_doc.d.ts +3 -1
- package/package.json +1 -1
|
@@ -813,10 +813,58 @@ var UtilityService = /** @class */ (function () {
|
|
|
813
813
|
};
|
|
814
814
|
/**
|
|
815
815
|
* @param {?} dt
|
|
816
|
-
* @param {?=} adds
|
|
817
816
|
* @return {?}
|
|
818
817
|
*/
|
|
819
818
|
UtilityService.prototype.sql_date = /**
|
|
819
|
+
* @param {?} dt
|
|
820
|
+
* @return {?}
|
|
821
|
+
*/
|
|
822
|
+
function (dt) {
|
|
823
|
+
if (dt == null)
|
|
824
|
+
return 'dbnull';
|
|
825
|
+
if (typeof dt == "undefined")
|
|
826
|
+
return 'dbnull';
|
|
827
|
+
if (typeof dt == "string")
|
|
828
|
+
return 'dbnull';
|
|
829
|
+
if (dt.getFullYear() == 1970)
|
|
830
|
+
return 'dbnull';
|
|
831
|
+
/** @type {?} */
|
|
832
|
+
var mm = dt.getMonth() + 1;
|
|
833
|
+
// getMonth() is zero-based
|
|
834
|
+
/** @type {?} */
|
|
835
|
+
var dd = dt.getDate();
|
|
836
|
+
if (this.app_s.SQL_SERVER_LANG == 'it')
|
|
837
|
+
return [
|
|
838
|
+
(dd > 9
|
|
839
|
+
? ''
|
|
840
|
+
: '0') + dd,
|
|
841
|
+
'-',
|
|
842
|
+
(mm > 9
|
|
843
|
+
? ''
|
|
844
|
+
: '0') + mm,
|
|
845
|
+
'-',
|
|
846
|
+
dt.getFullYear()
|
|
847
|
+
].join('');
|
|
848
|
+
if (this.app_s.SQL_SERVER_LANG == 'uk')
|
|
849
|
+
return [
|
|
850
|
+
dt.getFullYear(),
|
|
851
|
+
'-',
|
|
852
|
+
(mm > 9
|
|
853
|
+
? ''
|
|
854
|
+
: '0') + mm,
|
|
855
|
+
'-',
|
|
856
|
+
(dd > 9
|
|
857
|
+
? ''
|
|
858
|
+
: '0') + dd
|
|
859
|
+
].join('');
|
|
860
|
+
return "Parametro SQL_SERVER_LANG non corretto";
|
|
861
|
+
};
|
|
862
|
+
/**
|
|
863
|
+
* @param {?} dt
|
|
864
|
+
* @param {?=} adds
|
|
865
|
+
* @return {?}
|
|
866
|
+
*/
|
|
867
|
+
UtilityService.prototype.sql_date_grid = /**
|
|
820
868
|
* @param {?} dt
|
|
821
869
|
* @param {?=} adds
|
|
822
870
|
* @return {?}
|
|
@@ -847,7 +895,6 @@ var UtilityService = /** @class */ (function () {
|
|
|
847
895
|
? ''
|
|
848
896
|
: '0') + dd
|
|
849
897
|
].join('') + adds + '\',127)';
|
|
850
|
-
return "Parametro SQL_SERVER_LANG non corretto";
|
|
851
898
|
};
|
|
852
899
|
/**
|
|
853
900
|
* @param {?} timeU
|
|
@@ -7212,26 +7259,26 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
7212
7259
|
if (add_end)
|
|
7213
7260
|
filter_v = filter_v + ' and ';
|
|
7214
7261
|
filter_v = filter_v + ' (';
|
|
7215
|
-
if (obj_filtro.dateFrom != null && obj_filtro.dateTo != null && this.uti_s.
|
|
7216
|
-
filter_v = filter_v + key + ">=" + this.uti_s.
|
|
7217
|
-
if (obj_filtro.dateTo != null && this.uti_s.
|
|
7262
|
+
if (obj_filtro.dateFrom != null && obj_filtro.dateTo != null && this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1)) != 'dbnull')
|
|
7263
|
+
filter_v = filter_v + key + ">=" + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1));
|
|
7264
|
+
if (obj_filtro.dateTo != null && this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateTo, 1)) != 'dbnull') {
|
|
7218
7265
|
if (obj_filtro.dateFrom != null)
|
|
7219
7266
|
filter_v = filter_v + ' and ';
|
|
7220
|
-
filter_v = filter_v + key + "<=" + this.uti_s.
|
|
7267
|
+
filter_v = filter_v + key + "<=" + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateTo, 1)) + "";
|
|
7221
7268
|
}
|
|
7222
|
-
else if (obj_filtro.dateFrom != null && this.uti_s.
|
|
7269
|
+
else if (obj_filtro.dateFrom != null && this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1)) != 'dbnull') {
|
|
7223
7270
|
if (obj_filtro.type == "greaterThan")
|
|
7224
|
-
filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.
|
|
7271
|
+
filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '';
|
|
7225
7272
|
if (obj_filtro.type == "equals")
|
|
7226
|
-
filter_v = filter_v + ' (' + key + ' >=' + this.uti_s.
|
|
7273
|
+
filter_v = filter_v + ' (' + key + ' >=' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + ' and ' + key + ' <=' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1), ' 23:59:00') + ')';
|
|
7227
7274
|
if (obj_filtro.type == "notEqual")
|
|
7228
|
-
filter_v = filter_v + ' ' + key + ' <> ' + this.uti_s.
|
|
7275
|
+
filter_v = filter_v + ' ' + key + ' <> ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '';
|
|
7229
7276
|
if (obj_filtro.type == "lessThan")
|
|
7230
|
-
filter_v = filter_v + ' ' + key + ' <= ' + this.uti_s.
|
|
7277
|
+
filter_v = filter_v + ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '';
|
|
7231
7278
|
if (obj_filtro.type == "lessThanOrEqual")
|
|
7232
|
-
filter_v = filter_v + ' ' + key + ' <= ' + this.uti_s.
|
|
7279
|
+
filter_v = filter_v + ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '';
|
|
7233
7280
|
if (obj_filtro.type == "greaterThanOrEqual")
|
|
7234
|
-
filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.
|
|
7281
|
+
filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '';
|
|
7235
7282
|
}
|
|
7236
7283
|
filter_v = filter_v + ' )';
|
|
7237
7284
|
}
|
|
@@ -13395,10 +13442,15 @@ var win_commenti = /** @class */ (function () {
|
|
|
13395
13442
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
13396
13443
|
*/
|
|
13397
13444
|
var win_info_doc = /** @class */ (function () {
|
|
13398
|
-
function win_info_doc(dialogRef, m_appService) {
|
|
13445
|
+
function win_info_doc(dialogRef, m_appService, toast) {
|
|
13399
13446
|
this.dialogRef = dialogRef;
|
|
13400
13447
|
this.m_appService = m_appService;
|
|
13448
|
+
this.toast = toast;
|
|
13401
13449
|
this.hide_richiedente = false;
|
|
13450
|
+
if (this.m_appService.getState().wkf_doc_info.codice == null) {
|
|
13451
|
+
this.toast.info('Info non disponibili');
|
|
13452
|
+
return;
|
|
13453
|
+
}
|
|
13402
13454
|
this.codice = this.m_appService.getState().wkf_doc_info.codice;
|
|
13403
13455
|
this.data_richiesta = this.m_appService.getState().wkf_doc_info.data_richiesta;
|
|
13404
13456
|
this.richiedente = this.m_appService.getState().wkf_doc_info.richiedente;
|
|
@@ -13424,7 +13476,8 @@ var win_info_doc = /** @class */ (function () {
|
|
|
13424
13476
|
/** @nocollapse */
|
|
13425
13477
|
win_info_doc.ctorParameters = function () { return [
|
|
13426
13478
|
{ type: MatDialogRef },
|
|
13427
|
-
{ type: AppService }
|
|
13479
|
+
{ type: AppService },
|
|
13480
|
+
{ type: ToastrService }
|
|
13428
13481
|
]; };
|
|
13429
13482
|
return win_info_doc;
|
|
13430
13483
|
}());
|
|
@@ -17533,7 +17586,7 @@ var wkf_header_bar = /** @class */ (function () {
|
|
|
17533
17586
|
wkf_header_bar.decorators = [
|
|
17534
17587
|
{ type: Component, args: [{
|
|
17535
17588
|
selector: 'wkf_header_bar',
|
|
17536
|
-
template: "\n\n<div fxLayout=\"row\" fxLayoutGap=\"3px\" style=\"background-color: #F5F5F5\">\n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"3px\" *ngIf=\"!m_appService.getState().pageFullscreen || edit_button || respingi_button\">\n\n<button mat-flat-button (click)=\"back()\" style=\"background-color: #F5F5F5\" *ngIf=\"!m_appService.getState().pageFullscreen\">Indietro</button>\n <button mat-flat-button (click)=\"evt_salv()\" *ngIf=\"edit_button && !m_appService.getState().pageFullscreen\" color=\"primary\" >Salva</button>\n <button mat-flat-button (click)=\"procedi()\" *ngIf=\"edit_button && procedi_button\" color=\"accent\" >Procedi</button>\n <button mat-flat-button (click)=\"respingi()\" *ngIf=\"respingi_button\" color=\"warn\" >Respingi</button>\n<!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button> \n-->\n\n</div>\n \n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"3px\" >\n\n\n<button mat-flat-button (click)=\"open_info()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>info_outline</mat-icon> Info Doc</button>\n<button mat-flat-button (click)=\"open_commenti()\"> <mat-icon>insert_comment</mat-icon> Commenti {{dt_agg?.comm_c}}</button>\n<button mat-flat-button (click)=\"open_upload()\"> <mat-icon>attach_file</mat-icon> Allegati {{dt_agg?.all_c}}</button>\n<button mat-flat-button (click)=\"open_wkf()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>transfer_within_a_station</mat-icon> Workflow</button>\n\n</div>\n</div>\n\n "
|
|
17589
|
+
template: "\n\n<div fxLayout=\"row\" fxLayoutGap=\"3px\" style=\"background-color: #F5F5F5\">\n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"3px\" *ngIf=\"!m_appService.getState().pageFullscreen || edit_button || respingi_button\">\n\n<button mat-flat-button (click)=\"back()\" style=\"background-color: #FEFEFE\" style=\"background-color: #F5F5F5\" *ngIf=\"!m_appService.getState().pageFullscreen\">Indietro</button>\n <button mat-flat-button (click)=\"evt_salv()\" *ngIf=\"edit_button && !m_appService.getState().pageFullscreen\" color=\"primary\" >Salva</button>\n <button mat-flat-button (click)=\"procedi()\" *ngIf=\"edit_button && procedi_button\" color=\"accent\" >Procedi</button>\n <button mat-flat-button (click)=\"respingi()\" *ngIf=\"respingi_button\" color=\"warn\" >Respingi</button>\n<!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button> \n-->\n\n</div>\n \n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"3px\" >\n\n\n<button mat-flat-button (click)=\"open_info()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>info_outline</mat-icon> Info Doc</button>\n<button mat-flat-button (click)=\"open_commenti()\"> <mat-icon>insert_comment</mat-icon> Commenti {{dt_agg?.comm_c}}</button>\n<button mat-flat-button (click)=\"open_upload()\"> <mat-icon>attach_file</mat-icon> Allegati {{dt_agg?.all_c}}</button>\n<button mat-flat-button (click)=\"open_wkf()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>transfer_within_a_station</mat-icon> Workflow</button>\n\n</div>\n</div>\n\n "
|
|
17537
17590
|
}] }
|
|
17538
17591
|
];
|
|
17539
17592
|
/** @nocollapse */
|
|
@@ -20029,7 +20082,7 @@ var FHGuard = /** @class */ (function () {
|
|
|
20029
20082
|
/** @type {?} */
|
|
20030
20083
|
var p_1 = new QParam();
|
|
20031
20084
|
p_1.sql = "SELECT_APPS_USER_ALL";
|
|
20032
|
-
_this.app_s.getState().app_enabled =
|
|
20085
|
+
_this.app_s.getState().app_enabled = [];
|
|
20033
20086
|
p_1.types = ['string'];
|
|
20034
20087
|
p_1.values = [_this.app_s.user];
|
|
20035
20088
|
//console.log('canActivate 8');
|
|
@@ -20064,6 +20117,7 @@ var FHGuard = /** @class */ (function () {
|
|
|
20064
20117
|
}));
|
|
20065
20118
|
}
|
|
20066
20119
|
else {
|
|
20120
|
+
console.log('this.app_s ', _this.app_s);
|
|
20067
20121
|
/** @type {?} */
|
|
20068
20122
|
var p_2 = new QParam();
|
|
20069
20123
|
if (_this.app_s.user_isadmin != null)
|
|
@@ -20072,7 +20126,7 @@ var FHGuard = /** @class */ (function () {
|
|
|
20072
20126
|
return;
|
|
20073
20127
|
}
|
|
20074
20128
|
p_2.sql = "SELECT_APPS_USER_ALL";
|
|
20075
|
-
_this.app_s.getState().app_enabled =
|
|
20129
|
+
_this.app_s.getState().app_enabled = [];
|
|
20076
20130
|
p_2.types = ['string'];
|
|
20077
20131
|
p_2.values = [_this.app_s.user];
|
|
20078
20132
|
//console.log('canActivate 8');
|
|
@@ -20092,7 +20146,7 @@ var FHGuard = /** @class */ (function () {
|
|
|
20092
20146
|
}
|
|
20093
20147
|
}
|
|
20094
20148
|
}
|
|
20095
|
-
|
|
20149
|
+
console.log(_this.arr_accessi, ' ', _this.routingDestination);
|
|
20096
20150
|
_this.toast.error("ACCESS DENIED [0X0005]");
|
|
20097
20151
|
resolve(false);
|
|
20098
20152
|
_this.slimLoadingBarService.complete();
|