@fluxhub/fluxhub-lib 1.0.195 → 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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +16 -14
- 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/components/FHCurrencyFieldComponent.html +60 -2
- package/docs/coverage.html +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/auth_guard.js +2 -6
- package/esm2015/lib/controls/fhautocomplete.js +1 -2
- package/esm2015/lib/controls/fhcurrencyfield.js +12 -2
- package/esm2015/lib/controls/fhlist.js +1 -4
- package/esm2015/lib/form_builder/form_builder.js +1 -4
- package/esm5/lib/auth_guard.js +5 -9
- package/esm5/lib/controls/fhautocomplete.js +1 -2
- package/esm5/lib/controls/fhcurrencyfield.js +15 -2
- package/esm5/lib/controls/fhlist.js +1 -4
- package/esm5/lib/form_builder/form_builder.js +1 -4
- package/fesm2015/fluxhub-fluxhub-lib.js +11 -12
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +17 -15
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhcurrencyfield.d.ts +2 -0
- package/package.json +1 -1
|
@@ -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,
|
|
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';
|
|
@@ -2730,15 +2730,12 @@ var FHListComponent = /** @class */ (function () {
|
|
|
2730
2730
|
function () {
|
|
2731
2731
|
/** @type {?} */
|
|
2732
2732
|
var sx = "";
|
|
2733
|
-
for (var j = 0; j < this.myData.length; j++)
|
|
2734
|
-
console.log(this.myData[j].checked);
|
|
2735
2733
|
for (var j = 0; j < this.myData.length; j++)
|
|
2736
2734
|
if (this.myData[j].checked) {
|
|
2737
2735
|
if (sx != '')
|
|
2738
2736
|
sx = sx + ',';
|
|
2739
2737
|
sx = sx + this.myData[j].descrizione_valore;
|
|
2740
2738
|
}
|
|
2741
|
-
console.log('getDescri: ' + sx);
|
|
2742
2739
|
return sx;
|
|
2743
2740
|
};
|
|
2744
2741
|
/**
|
|
@@ -7462,7 +7459,6 @@ var FHAutoCompleteComponent = /** @class */ (function (_super) {
|
|
|
7462
7459
|
this.setByDescri(event.option.value);
|
|
7463
7460
|
this.sItem = event.option.value;
|
|
7464
7461
|
this.ch(event);
|
|
7465
|
-
console.log('selectedSearchItem ', this.sItem);
|
|
7466
7462
|
};
|
|
7467
7463
|
/**
|
|
7468
7464
|
* @param {?} $event
|
|
@@ -9582,6 +9578,7 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
9582
9578
|
this.required = false;
|
|
9583
9579
|
this.enabled = true;
|
|
9584
9580
|
this.hidden = false;
|
|
9581
|
+
this.color = '';
|
|
9585
9582
|
this.m_color = '';
|
|
9586
9583
|
this.label_width = "";
|
|
9587
9584
|
this.change = new EventEmitter();
|
|
@@ -9602,6 +9599,15 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
9602
9599
|
function () {
|
|
9603
9600
|
return this.m_color;
|
|
9604
9601
|
};
|
|
9602
|
+
/**
|
|
9603
|
+
* @return {?}
|
|
9604
|
+
*/
|
|
9605
|
+
FHCurrencyFieldComponent.prototype.getStyle_color = /**
|
|
9606
|
+
* @return {?}
|
|
9607
|
+
*/
|
|
9608
|
+
function () {
|
|
9609
|
+
return this.m_color;
|
|
9610
|
+
};
|
|
9605
9611
|
/**
|
|
9606
9612
|
* @return {?}
|
|
9607
9613
|
*/
|
|
@@ -9766,7 +9772,7 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
9766
9772
|
{ type: Component, args: [{
|
|
9767
9773
|
selector: 'FHCurrencyField',
|
|
9768
9774
|
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR],
|
|
9769
|
-
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 ",
|
|
9770
9776
|
styles: ["\n\n "]
|
|
9771
9777
|
}] }
|
|
9772
9778
|
];
|
|
@@ -9779,6 +9785,7 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
9779
9785
|
required: [{ type: Input }],
|
|
9780
9786
|
enabled: [{ type: Input }],
|
|
9781
9787
|
hidden: [{ type: Input }],
|
|
9788
|
+
color: [{ type: Input }],
|
|
9782
9789
|
label_width: [{ type: Input }],
|
|
9783
9790
|
change: [{ type: Output }],
|
|
9784
9791
|
value: [{ type: Input }]
|
|
@@ -15593,7 +15600,6 @@ var FormBuilderComponent = /** @class */ (function () {
|
|
|
15593
15600
|
* @return {?}
|
|
15594
15601
|
*/
|
|
15595
15602
|
function (o) {
|
|
15596
|
-
console.log(o);
|
|
15597
15603
|
if (o == 1)
|
|
15598
15604
|
this.items.push({ type: 'text_field', label: 'Label', default_value: '', uiid: this.fhutility.newGuid(), selected: false, required: false });
|
|
15599
15605
|
if (o == 2)
|
|
@@ -15697,14 +15703,12 @@ var FormBuilderComponent = /** @class */ (function () {
|
|
|
15697
15703
|
}
|
|
15698
15704
|
this.dragula
|
|
15699
15705
|
.drag.call(function (value) {
|
|
15700
|
-
console.log("Dragging the " + value[1].innerText + "!");
|
|
15701
15706
|
_this.change.emit();
|
|
15702
15707
|
_this.edit_obj = null;
|
|
15703
15708
|
});
|
|
15704
15709
|
this.dragula
|
|
15705
15710
|
.drop
|
|
15706
15711
|
.call(function (value) {
|
|
15707
|
-
console.log("Dropped the " + value[1].innerText + "!");
|
|
15708
15712
|
_this.change.emit();
|
|
15709
15713
|
_this.edit_obj = null;
|
|
15710
15714
|
});
|
|
@@ -15973,12 +15977,10 @@ var FHGuard = /** @class */ (function () {
|
|
|
15973
15977
|
p.values = [_this.appService.user];
|
|
15974
15978
|
_this.querys.doQuery(p).subscribe(function (data) {
|
|
15975
15979
|
_this.arr_accessi = data.result_data;
|
|
15976
|
-
for (var
|
|
15977
|
-
console.log('[' + _this.arr_accessi[
|
|
15978
|
-
if (_this.arr_accessi[
|
|
15979
|
-
if ('[' + _this.arr_accessi[
|
|
15980
|
-
console.log(typeof (of(true)));
|
|
15981
|
-
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] + ']') {
|
|
15982
15984
|
resolve(true);
|
|
15983
15985
|
return;
|
|
15984
15986
|
}
|