@fluxhub/fluxhub-lib 1.0.194 → 1.0.196

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.
@@ -32,7 +32,7 @@ import { TranslateModule } from '@ngx-translate/core';
32
32
  import { DragulaService, DragulaModule } from 'ng2-dragula';
33
33
  import { MatDialogRef, MatDialog, DateAdapter, MAT_DATE_LOCALE, 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';
34
34
  import { ActivatedRoute, Router } from '@angular/router';
35
- import { Injectable, Component, Input, Output, EventEmitter, ViewChild, Directive, forwardRef, Inject, PLATFORM_ID, ElementRef, Pipe, ViewContainerRef, NgModule, defineInjectable, inject, HostListener } from '@angular/core';
35
+ import { Injectable, Component, Input, Output, EventEmitter, Directive, forwardRef, ViewChild, Inject, PLATFORM_ID, ElementRef, Pipe, ViewContainerRef, defineInjectable, inject, NgModule, HostListener } from '@angular/core';
36
36
  import { Http } from '@angular/http';
37
37
  import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
38
38
  import { ToastrService } from 'ngx-toastr';
@@ -1314,6 +1314,7 @@ var UtilityService = /** @class */ (function () {
1314
1314
  */
1315
1315
  function (s, b_check_admin) {
1316
1316
  if (b_check_admin === void 0) { b_check_admin = true; }
1317
+ console.log('check role ', this.app_s);
1317
1318
  if (this.app_s.user_roles === null)
1318
1319
  return false;
1319
1320
  if (b_check_admin)
@@ -2729,15 +2730,12 @@ var FHListComponent = /** @class */ (function () {
2729
2730
  function () {
2730
2731
  /** @type {?} */
2731
2732
  var sx = "";
2732
- for (var j = 0; j < this.myData.length; j++)
2733
- console.log(this.myData[j].checked);
2734
2733
  for (var j = 0; j < this.myData.length; j++)
2735
2734
  if (this.myData[j].checked) {
2736
2735
  if (sx != '')
2737
2736
  sx = sx + ',';
2738
2737
  sx = sx + this.myData[j].descrizione_valore;
2739
2738
  }
2740
- console.log('getDescri: ' + sx);
2741
2739
  return sx;
2742
2740
  };
2743
2741
  /**
@@ -7461,7 +7459,6 @@ var FHAutoCompleteComponent = /** @class */ (function (_super) {
7461
7459
  this.setByDescri(event.option.value);
7462
7460
  this.sItem = event.option.value;
7463
7461
  this.ch(event);
7464
- console.log('selectedSearchItem ', this.sItem);
7465
7462
  };
7466
7463
  /**
7467
7464
  * @param {?} $event
@@ -9581,6 +9578,7 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
9581
9578
  this.required = false;
9582
9579
  this.enabled = true;
9583
9580
  this.hidden = false;
9581
+ this.color = '';
9584
9582
  this.m_color = '';
9585
9583
  this.label_width = "";
9586
9584
  this.change = new EventEmitter();
@@ -9601,6 +9599,15 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
9601
9599
  function () {
9602
9600
  return this.m_color;
9603
9601
  };
9602
+ /**
9603
+ * @return {?}
9604
+ */
9605
+ FHCurrencyFieldComponent.prototype.getStyle_color = /**
9606
+ * @return {?}
9607
+ */
9608
+ function () {
9609
+ return this.m_color;
9610
+ };
9604
9611
  /**
9605
9612
  * @return {?}
9606
9613
  */
@@ -9765,7 +9772,7 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
9765
9772
  { type: Component, args: [{
9766
9773
  selector: 'FHCurrencyField',
9767
9774
  providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR],
9768
- template: "\n <mat-form-field [hidden]=\"!enabled || hidden\">\n <input type=\"text\" style=\"text-align:right\" [style.background-color]=\"getStyle()\" #el matInput\n [disabled]=\"!enabled\" placeholder=\"{{label}}\" [(ngModel)]=\"formattedAmount\"\n (blur)=\"transformAmount($event)\"\n (focus)=\"removeCurrencyPipeFormat($event)\" (keyup)=\"chg()\"\n pattern=\"[0-9]+\">\n </mat-form-field>\n <mat-form-field [hidden]=\"enabled || hidden\">\n <input type=\"text\" style=\"text-align:right\" [style.background-color]=\"getStyle()\" #el1 matInput [disabled]=\"true\"\n placeholder=\"{{label}}\" [(ngModel)]=\"formattedAmount\"\n >\n </mat-form-field>\n ",
9775
+ template: "\n <mat-form-field [hidden]=\"!enabled || hidden\">\n <input type=\"text\" style=\"text-align:right\" [style.background-color]=\"getStyle()\" #el matInput\n [disabled]=\"!enabled\" placeholder=\"{{label}}\" [(ngModel)]=\"formattedAmount\"\n (blur)=\"transformAmount($event)\" [style.color]=\"getStyle_color()\"\n (focus)=\"removeCurrencyPipeFormat($event)\" (keyup)=\"chg()\"\n pattern=\"[0-9]+\">\n </mat-form-field>\n <mat-form-field [hidden]=\"enabled || hidden\">\n <input type=\"text\" style=\"text-align:right\" [style.background-color]=\"getStyle()\" #el1 matInput [disabled]=\"true\"\n placeholder=\"{{label}}\" [(ngModel)]=\"formattedAmount\"\n >\n </mat-form-field>\n ",
9769
9776
  styles: ["\n\n "]
9770
9777
  }] }
9771
9778
  ];
@@ -9778,6 +9785,7 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
9778
9785
  required: [{ type: Input }],
9779
9786
  enabled: [{ type: Input }],
9780
9787
  hidden: [{ type: Input }],
9788
+ color: [{ type: Input }],
9781
9789
  label_width: [{ type: Input }],
9782
9790
  change: [{ type: Output }],
9783
9791
  value: [{ type: Input }]
@@ -15592,7 +15600,6 @@ var FormBuilderComponent = /** @class */ (function () {
15592
15600
  * @return {?}
15593
15601
  */
15594
15602
  function (o) {
15595
- console.log(o);
15596
15603
  if (o == 1)
15597
15604
  this.items.push({ type: 'text_field', label: 'Label', default_value: '', uiid: this.fhutility.newGuid(), selected: false, required: false });
15598
15605
  if (o == 2)
@@ -15696,14 +15703,12 @@ var FormBuilderComponent = /** @class */ (function () {
15696
15703
  }
15697
15704
  this.dragula
15698
15705
  .drag.call(function (value) {
15699
- console.log("Dragging the " + value[1].innerText + "!");
15700
15706
  _this.change.emit();
15701
15707
  _this.edit_obj = null;
15702
15708
  });
15703
15709
  this.dragula
15704
15710
  .drop
15705
15711
  .call(function (value) {
15706
- console.log("Dropped the " + value[1].innerText + "!");
15707
15712
  _this.change.emit();
15708
15713
  _this.edit_obj = null;
15709
15714
  });
@@ -15972,12 +15977,10 @@ var FHGuard = /** @class */ (function () {
15972
15977
  p.values = [_this.appService.user];
15973
15978
  _this.querys.doQuery(p).subscribe(function (data) {
15974
15979
  _this.arr_accessi = data.result_data;
15975
- for (var i = 0; i < _this.arr_accessi.length; i++) {
15976
- console.log('[' + _this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + _this.routingDestination.split('/')[0] + ']');
15977
- if (_this.arr_accessi[i].type == 'M') {
15978
- if ('[' + _this.arr_accessi[i].url.split('/')[0] + ']' == '[' + _this.routingDestination.split('/')[0] + ']') {
15979
- console.log(typeof (of(true)));
15980
- console.log('OBS3 ' + true);
15980
+ for (var i_1 = 0; i_1 < _this.arr_accessi.length; i_1++) {
15981
+ console.log('[' + _this.arr_accessi[i_1].url.split('/')[0] + ']', '-----', '[' + _this.routingDestination.split('/')[0] + ']');
15982
+ if (_this.arr_accessi[i_1].type == 'M') {
15983
+ if ('[' + _this.arr_accessi[i_1].url.split('/')[0] + ']' == '[' + _this.routingDestination.split('/')[0] + ']') {
15981
15984
  resolve(true);
15982
15985
  return;
15983
15986
  }