@fluxhub/fluxhub-lib 1.0.201 → 1.0.203
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 +21 -5
- 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/FHAutoCompleteComponent.html +3 -3
- package/docs/components/FHCurrencyFieldComponent.html +65 -2
- package/docs/components/win_info_doc.html +37 -3
- package/docs/coverage.html +2 -2
- package/docs/dependencies.html +6 -6
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/fhautocomplete.js +3 -5
- package/esm2015/lib/controls/fhcurrencyfield.js +15 -2
- package/esm2015/lib/wkf_engine/win_info_doc.js +4 -7
- package/esm5/lib/controls/fhautocomplete.js +2 -4
- package/esm5/lib/controls/fhcurrencyfield.js +20 -2
- package/esm5/lib/wkf_engine/win_info_doc.js +3 -6
- package/fesm2015/fluxhub-fluxhub-lib.js +19 -8
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +22 -6
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhcurrencyfield.d.ts +1 -0
- package/lib/wkf_engine/win_info_doc.d.ts +1 -1
- package/package.json +1 -1
|
@@ -33,7 +33,7 @@ import { TranslateModule } from '@ngx-translate/core';
|
|
|
33
33
|
import { DragulaService, DragulaModule } from 'ng2-dragula';
|
|
34
34
|
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';
|
|
35
35
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
36
|
-
import { Injectable, Component, Input,
|
|
36
|
+
import { Injectable, Component, Input, Output, EventEmitter, Directive, ViewChild, forwardRef, Inject, PLATFORM_ID, ElementRef, Pipe, ViewContainerRef, NgModule, defineInjectable, inject, HostListener } from '@angular/core';
|
|
37
37
|
import { Http } from '@angular/http';
|
|
38
38
|
import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
|
|
39
39
|
import { ToastrService } from 'ngx-toastr';
|
|
@@ -7406,11 +7406,9 @@ var FHAutoCompleteComponent = /** @class */ (function (_super) {
|
|
|
7406
7406
|
* @return {?}
|
|
7407
7407
|
*/
|
|
7408
7408
|
function (o) {
|
|
7409
|
-
console.log('fo_search()');
|
|
7410
7409
|
this
|
|
7411
7410
|
.focusout
|
|
7412
7411
|
.emit();
|
|
7413
|
-
this.ch(o);
|
|
7414
7412
|
};
|
|
7415
7413
|
/**
|
|
7416
7414
|
* @param {?} e
|
|
@@ -7844,7 +7842,7 @@ var FHAutoCompleteComponent = /** @class */ (function (_super) {
|
|
|
7844
7842
|
FHAutoCompleteComponent.decorators = [
|
|
7845
7843
|
{ type: Component, args: [{
|
|
7846
7844
|
selector: 'FHAutoComplete',
|
|
7847
|
-
template: "\n <mat-form-field class=\"field_style\" [hidden]=\"!enabled || hidden\">\n <input matInput\n class=\"field_style\" [disabled]=\"!enabled || hidden\" [matAutocomplete]=\"auto\" [placeholder]=\"label\" [required]=\"required\"\n (keyup)=\"onChange($event)\"
|
|
7845
|
+
template: "\n <mat-form-field class=\"field_style\" [hidden]=\"!enabled || hidden\">\n <input matInput\n class=\"field_style\" [disabled]=\"!enabled || hidden\" [matAutocomplete]=\"auto\" [placeholder]=\"label\" [required]=\"required\"\n (keyup)=\"onChange($event)\" [(ngModel)]=\"sItem\" (focus)=\"fi_search()\" (focusout)=\"fo_search($event)\"\n #searchp>\n </mat-form-field>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selectedSearchItem($event)\" autoActiveFirstOption >\n <mat-option *ngFor=\"let objx of searchItemsFiltered\" class=\"search_home\" [value]=\"objx.descrizione_valore\">\n {{ objx.descrizione_valore }}\n </mat-option>\n </mat-autocomplete>\n\n\n <div class=\"ui negative message\" *ngIf=\"errorMsg != ''\">\n <i class=\"close icon\"></i>\n <div class=\"header\">\n {{errorMsg}}\n </div>\n </div>\n <mat-form-field [hidden]=\"enabled || hidden\">\n <input type=\"text\" #el1 matInput [disabled]=\"true\" placeholder=\"{{label}}\" [(ngModel)]=\"sItem\"\n >\n </mat-form-field>\n ",
|
|
7848
7846
|
providers: [
|
|
7849
7847
|
{ provide: NG_VALUE_ACCESSOR, useExisting: FHAutoCompleteComponent, multi: true },
|
|
7850
7848
|
],
|
|
@@ -9595,6 +9593,24 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
9595
9593
|
this.formattedAmount = '0,00';
|
|
9596
9594
|
this.value = 0;
|
|
9597
9595
|
}
|
|
9596
|
+
/**
|
|
9597
|
+
* @param {?} event
|
|
9598
|
+
* @return {?}
|
|
9599
|
+
*/
|
|
9600
|
+
FHCurrencyFieldComponent.prototype.kd = /**
|
|
9601
|
+
* @param {?} event
|
|
9602
|
+
* @return {?}
|
|
9603
|
+
*/
|
|
9604
|
+
function (event) {
|
|
9605
|
+
var _this = this;
|
|
9606
|
+
if (event.keyCode == 13) {
|
|
9607
|
+
setTimeout(function () {
|
|
9608
|
+
_this.value = parseFloat(_this.formattedAmount.split('.').join('').split(',').join('.'));
|
|
9609
|
+
_this.onChange(_this.value);
|
|
9610
|
+
}, 50);
|
|
9611
|
+
// rest of your code
|
|
9612
|
+
}
|
|
9613
|
+
};
|
|
9598
9614
|
/**
|
|
9599
9615
|
* @return {?}
|
|
9600
9616
|
*/
|
|
@@ -9777,7 +9793,7 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
9777
9793
|
{ type: Component, args: [{
|
|
9778
9794
|
selector: 'FHCurrencyField',
|
|
9779
9795
|
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR],
|
|
9780
|
-
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 ",
|
|
9796
|
+
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()\" (keydown)=\"kd($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 ",
|
|
9781
9797
|
styles: ["\n\n "]
|
|
9782
9798
|
}] }
|
|
9783
9799
|
];
|
|
@@ -11662,7 +11678,7 @@ var win_info_doc = /** @class */ (function () {
|
|
|
11662
11678
|
};
|
|
11663
11679
|
win_info_doc.decorators = [
|
|
11664
11680
|
{ type: Component, args: [{
|
|
11665
|
-
template: "\n <mat-toolbar color=\"primary\">INFO DOCUMENTO\n <div style=\"width:100%;text-align: right;\">\n </div>\n </mat-toolbar>\n <div mat-dialog-content>\n \n <table class=\"fh_table\">\n\n <tbody>\n <tr class=\"odd\">\n\n <td>Codice:</td>\n <td><b>{{codice}}</b></td>\n </tr>\n <tr class=\"even\">\n\n <td>Data:</td>\n <td><b>{{data_richiesta | date: 'dd/MM/yyyy hh:mm:ss'}}</b></td>\n </tr>\n <tr *ngIf=\"!hide_richiedente\" class=\"odd\">\n\n <td>Richiedente:</td>\n <td><b>{{richiedente}}</b></td>\n\n </tr>\n <tr class=\"even\">\n\n <td>Stato:</td>\n <td><b>{{stato}}</b></td>\n\n </tr>\n <tr class=\"odd\"> \n\n <td>In Carico a:</td>\n <td><b>{{in_carico_a}}</b></td>\n\n </tr>\n\n <tr class=\"even\">\n\n <td>Uiid App:</td>\n <td><b>{{uiid_app}}</b></td>\n\n </tr>\n <tr class=\"odd\">\n\n <td>Uiid Doc:</td>\n <td><b>{{uiid_doc}}</b></td>\n\n </tr>\n </tbody>\n </table>\n \n </div>\n <br>\n\n <div style=\"width:100%;text-align:center;\">\n <button mat-raised-button color=\"accent\" (click)=\"dialogRef.close('')\">CHIUDI</button>\n\n </div>\n "
|
|
11681
|
+
template: "\n <mat-toolbar color=\"primary\">INFO DOCUMENTO\n <div style=\"width:100%;text-align: right;\">\n </div>\n </mat-toolbar>\n <div mat-dialog-content>\n \n <table class=\"fh_table\">\n\n <tbody>\n <tr class=\"odd\">\n\n <td>Codice:</td>\n <td><b>{{codice}}</b></td>\n </tr>\n <tr class=\"even\">\n\n <td>Data:</td>\n <td><b>{{data_richiesta | date: 'dd/MM/yyyy hh:mm:ss'}}</b></td>\n </tr>\n <tr *ngIf=\"!hide_richiedente\" class=\"odd\">\n\n <td>Richiedente:</td>\n <td><b>{{richiedente}}</b></td>\n\n </tr>\n <tr class=\"even\">\n\n <td>Stato:</td>\n <td><b>{{stato}}</b></td>\n\n </tr>\n <tr class=\"odd\"> \n\n <td>In Carico a:</td>\n <td><b>{{in_carico_a}}</b></td>\n\n </tr>\n\n <tr class=\"even\" *ngIf=\"m_appService.dev_mode\">\n\n <td>Uiid App:</td>\n <td><b>{{uiid_app}}</b></td>\n\n </tr>\n <tr class=\"odd\" *ngIf=\"m_appService.dev_mode\">\n\n <td>Uiid Doc:</td>\n <td><b>{{uiid_doc}}</b></td>\n\n </tr>\n </tbody>\n </table>\n \n </div>\n <br>\n\n <div style=\"width:100%;text-align:center;\">\n <button mat-raised-button color=\"accent\" (click)=\"dialogRef.close('')\">CHIUDI</button>\n\n </div>\n "
|
|
11666
11682
|
}] }
|
|
11667
11683
|
];
|
|
11668
11684
|
/** @nocollapse */
|