@fluxhub/fluxhub-lib 1.0.202 → 1.0.204
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 +19 -3
- 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 +82 -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 -3
- package/esm2015/lib/controls/fhcurrencyfield.js +16 -2
- package/esm2015/lib/wkf_engine/win_info_doc.js +4 -7
- package/esm5/lib/controls/fhautocomplete.js +2 -2
- 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 +18 -6
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +20 -4
- 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/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, Output, EventEmitter,
|
|
36
|
+
import { Injectable, Component, Input, Output, EventEmitter, Directive, ViewChild, forwardRef, Inject, PLATFORM_ID, ElementRef, Pipe, ViewContainerRef, defineInjectable, inject, NgModule, 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';
|
|
@@ -7842,7 +7842,7 @@ var FHAutoCompleteComponent = /** @class */ (function (_super) {
|
|
|
7842
7842
|
FHAutoCompleteComponent.decorators = [
|
|
7843
7843
|
{ type: Component, args: [{
|
|
7844
7844
|
selector: 'FHAutoComplete',
|
|
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)\"
|
|
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 ",
|
|
7846
7846
|
providers: [
|
|
7847
7847
|
{ provide: NG_VALUE_ACCESSOR, useExisting: FHAutoCompleteComponent, multi: true },
|
|
7848
7848
|
],
|
|
@@ -9585,6 +9585,7 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
9585
9585
|
this.m_color = '';
|
|
9586
9586
|
this.label_width = "";
|
|
9587
9587
|
this.change = new EventEmitter();
|
|
9588
|
+
this.enter_pressed = new EventEmitter();
|
|
9588
9589
|
this.innerValue = 0;
|
|
9589
9590
|
this.onChange = function (_) {
|
|
9590
9591
|
};
|
|
@@ -9593,6 +9594,20 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
9593
9594
|
this.formattedAmount = '0,00';
|
|
9594
9595
|
this.value = 0;
|
|
9595
9596
|
}
|
|
9597
|
+
/**
|
|
9598
|
+
* @param {?} event
|
|
9599
|
+
* @return {?}
|
|
9600
|
+
*/
|
|
9601
|
+
FHCurrencyFieldComponent.prototype.kd = /**
|
|
9602
|
+
* @param {?} event
|
|
9603
|
+
* @return {?}
|
|
9604
|
+
*/
|
|
9605
|
+
function (event) {
|
|
9606
|
+
if (event.keyCode == 13) {
|
|
9607
|
+
this.enter_pressed.emit();
|
|
9608
|
+
// rest of your code
|
|
9609
|
+
}
|
|
9610
|
+
};
|
|
9596
9611
|
/**
|
|
9597
9612
|
* @return {?}
|
|
9598
9613
|
*/
|
|
@@ -9775,7 +9790,7 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
9775
9790
|
{ type: Component, args: [{
|
|
9776
9791
|
selector: 'FHCurrencyField',
|
|
9777
9792
|
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR],
|
|
9778
|
-
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 ",
|
|
9793
|
+
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 ",
|
|
9779
9794
|
styles: ["\n\n "]
|
|
9780
9795
|
}] }
|
|
9781
9796
|
];
|
|
@@ -9791,6 +9806,7 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
9791
9806
|
color: [{ type: Input }],
|
|
9792
9807
|
label_width: [{ type: Input }],
|
|
9793
9808
|
change: [{ type: Output }],
|
|
9809
|
+
enter_pressed: [{ type: Output }],
|
|
9794
9810
|
value: [{ type: Input }]
|
|
9795
9811
|
};
|
|
9796
9812
|
return FHCurrencyFieldComponent;
|
|
@@ -11660,7 +11676,7 @@ var win_info_doc = /** @class */ (function () {
|
|
|
11660
11676
|
};
|
|
11661
11677
|
win_info_doc.decorators = [
|
|
11662
11678
|
{ type: Component, args: [{
|
|
11663
|
-
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 "
|
|
11679
|
+
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 "
|
|
11664
11680
|
}] }
|
|
11665
11681
|
];
|
|
11666
11682
|
/** @nocollapse */
|