@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
|
@@ -31,7 +31,7 @@ import { TranslateModule } from '@ngx-translate/core';
|
|
|
31
31
|
import { DragulaService, DragulaModule } from 'ng2-dragula';
|
|
32
32
|
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';
|
|
33
33
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
34
|
-
import { Injectable, forwardRef, Component, Input, ViewChild, Output, EventEmitter, ElementRef, Directive, Inject, PLATFORM_ID, Pipe, ViewContainerRef,
|
|
34
|
+
import { Injectable, forwardRef, Component, Input, ViewChild, Output, EventEmitter, ElementRef, Directive, Inject, PLATFORM_ID, Pipe, ViewContainerRef, defineInjectable, NgModule, inject, HostListener } from '@angular/core';
|
|
35
35
|
import { Http } from '@angular/http';
|
|
36
36
|
import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
|
|
37
37
|
import { ToastrService } from 'ngx-toastr';
|
|
@@ -2387,15 +2387,12 @@ class FHListComponent {
|
|
|
2387
2387
|
getDescri() {
|
|
2388
2388
|
/** @type {?} */
|
|
2389
2389
|
let sx = "";
|
|
2390
|
-
for (let j = 0; j < this.myData.length; j++)
|
|
2391
|
-
console.log(this.myData[j].checked);
|
|
2392
2390
|
for (let j = 0; j < this.myData.length; j++)
|
|
2393
2391
|
if (this.myData[j].checked) {
|
|
2394
2392
|
if (sx != '')
|
|
2395
2393
|
sx = sx + ',';
|
|
2396
2394
|
sx = sx + this.myData[j].descrizione_valore;
|
|
2397
2395
|
}
|
|
2398
|
-
console.log('getDescri: ' + sx);
|
|
2399
2396
|
return sx;
|
|
2400
2397
|
}
|
|
2401
2398
|
/**
|
|
@@ -6891,7 +6888,6 @@ class FHAutoCompleteComponent extends FHValueAccessor {
|
|
|
6891
6888
|
this.setByDescri(event.option.value);
|
|
6892
6889
|
this.sItem = event.option.value;
|
|
6893
6890
|
this.ch(event);
|
|
6894
|
-
console.log('selectedSearchItem ', this.sItem);
|
|
6895
6891
|
}
|
|
6896
6892
|
/**
|
|
6897
6893
|
* @param {?} $event
|
|
@@ -9030,6 +9026,7 @@ class FHCurrencyFieldComponent {
|
|
|
9030
9026
|
this.required = false;
|
|
9031
9027
|
this.enabled = true;
|
|
9032
9028
|
this.hidden = false;
|
|
9029
|
+
this.color = '';
|
|
9033
9030
|
this.m_color = '';
|
|
9034
9031
|
this.label_width = "";
|
|
9035
9032
|
this.change = new EventEmitter();
|
|
@@ -9047,6 +9044,12 @@ class FHCurrencyFieldComponent {
|
|
|
9047
9044
|
getStyle() {
|
|
9048
9045
|
return this.m_color;
|
|
9049
9046
|
}
|
|
9047
|
+
/**
|
|
9048
|
+
* @return {?}
|
|
9049
|
+
*/
|
|
9050
|
+
getStyle_color() {
|
|
9051
|
+
return this.m_color;
|
|
9052
|
+
}
|
|
9050
9053
|
/**
|
|
9051
9054
|
* @return {?}
|
|
9052
9055
|
*/
|
|
@@ -9172,7 +9175,7 @@ FHCurrencyFieldComponent.decorators = [
|
|
|
9172
9175
|
<mat-form-field [hidden]="!enabled || hidden">
|
|
9173
9176
|
<input type="text" style="text-align:right" [style.background-color]="getStyle()" #el matInput
|
|
9174
9177
|
[disabled]="!enabled" placeholder="{{label}}" [(ngModel)]="formattedAmount"
|
|
9175
|
-
(blur)="transformAmount($event)"
|
|
9178
|
+
(blur)="transformAmount($event)" [style.color]="getStyle_color()"
|
|
9176
9179
|
(focus)="removeCurrencyPipeFormat($event)" (keyup)="chg()"
|
|
9177
9180
|
pattern="[0-9]+">
|
|
9178
9181
|
</mat-form-field>
|
|
@@ -9196,6 +9199,7 @@ FHCurrencyFieldComponent.propDecorators = {
|
|
|
9196
9199
|
required: [{ type: Input }],
|
|
9197
9200
|
enabled: [{ type: Input }],
|
|
9198
9201
|
hidden: [{ type: Input }],
|
|
9202
|
+
color: [{ type: Input }],
|
|
9199
9203
|
label_width: [{ type: Input }],
|
|
9200
9204
|
change: [{ type: Output }],
|
|
9201
9205
|
value: [{ type: Input }]
|
|
@@ -14860,7 +14864,6 @@ class FormBuilderComponent {
|
|
|
14860
14864
|
* @return {?}
|
|
14861
14865
|
*/
|
|
14862
14866
|
add_component(o) {
|
|
14863
|
-
console.log(o);
|
|
14864
14867
|
if (o == 1)
|
|
14865
14868
|
this.items.push({ type: 'text_field', label: 'Label', default_value: '', uiid: this.fhutility.newGuid(), selected: false, required: false });
|
|
14866
14869
|
if (o == 2)
|
|
@@ -14944,14 +14947,12 @@ class FormBuilderComponent {
|
|
|
14944
14947
|
}
|
|
14945
14948
|
this.dragula
|
|
14946
14949
|
.drag.call(value => {
|
|
14947
|
-
console.log(`Dragging the ${value[1].innerText}!`);
|
|
14948
14950
|
this.change.emit();
|
|
14949
14951
|
this.edit_obj = null;
|
|
14950
14952
|
});
|
|
14951
14953
|
this.dragula
|
|
14952
14954
|
.drop
|
|
14953
14955
|
.call(value => {
|
|
14954
|
-
console.log(`Dropped the ${value[1].innerText}!`);
|
|
14955
14956
|
this.change.emit();
|
|
14956
14957
|
this.edit_obj = null;
|
|
14957
14958
|
});
|
|
@@ -15372,12 +15373,10 @@ class FHGuard {
|
|
|
15372
15373
|
p.values = [this.appService.user];
|
|
15373
15374
|
this.querys.doQuery(p).subscribe(data => {
|
|
15374
15375
|
this.arr_accessi = data.result_data;
|
|
15375
|
-
for (
|
|
15376
|
+
for (let i = 0; i < this.arr_accessi.length; i++) {
|
|
15376
15377
|
console.log('[' + this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + this.routingDestination.split('/')[0] + ']');
|
|
15377
15378
|
if (this.arr_accessi[i].type == 'M') {
|
|
15378
15379
|
if ('[' + this.arr_accessi[i].url.split('/')[0] + ']' == '[' + this.routingDestination.split('/')[0] + ']') {
|
|
15379
|
-
console.log(typeof (of(true)));
|
|
15380
|
-
console.log('OBS3 ' + true);
|
|
15381
15380
|
resolve(true);
|
|
15382
15381
|
return;
|
|
15383
15382
|
}
|