@fluxhub/fluxhub-lib 9.0.30 → 9.0.31
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 +60 -25
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhcombobox.js +33 -3
- package/esm2015/lib/controls/win_ask_text.js +3 -3
- package/esm5/lib/controls/fhcombobox.js +63 -26
- package/esm5/lib/controls/win_ask_text.js +2 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +32 -4
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +60 -25
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhcombobox.d.ts +8 -1
- package/package.json +1 -1
|
@@ -1966,8 +1966,10 @@ WinWait = __decorate([
|
|
|
1966
1966
|
__metadata("design:paramtypes", [MatDialogRef, ToastrService, AppService])
|
|
1967
1967
|
], WinWait);
|
|
1968
1968
|
|
|
1969
|
-
|
|
1969
|
+
var FHComboboxComponent_1;
|
|
1970
|
+
let FHComboboxComponent = FHComboboxComponent_1 = class FHComboboxComponent extends FHValueAccessor {
|
|
1970
1971
|
constructor(_dataService, _dataService_odbc) {
|
|
1972
|
+
super();
|
|
1971
1973
|
this._dataService = _dataService;
|
|
1972
1974
|
this._dataService_odbc = _dataService_odbc;
|
|
1973
1975
|
this.init_fill = true;
|
|
@@ -1990,6 +1992,9 @@ let FHComboboxComponent = class FHComboboxComponent {
|
|
|
1990
1992
|
this.dis_value = '';
|
|
1991
1993
|
this.descri_val = "";
|
|
1992
1994
|
}
|
|
1995
|
+
setValue(desc_val) {
|
|
1996
|
+
this.setByValue(desc_val);
|
|
1997
|
+
}
|
|
1993
1998
|
update_dis() {
|
|
1994
1999
|
this.dis_value = '';
|
|
1995
2000
|
try {
|
|
@@ -2237,6 +2242,26 @@ let FHComboboxComponent = class FHComboboxComponent {
|
|
|
2237
2242
|
.selchange
|
|
2238
2243
|
.emit({ event: this.getObj(), valore: this.getValue(), descrizione_valore: this.getDescri() });
|
|
2239
2244
|
}
|
|
2245
|
+
getModelValue() {
|
|
2246
|
+
const value = this.getData('valore');
|
|
2247
|
+
return value;
|
|
2248
|
+
}
|
|
2249
|
+
emitChanged() {
|
|
2250
|
+
const value = this.getModelValue();
|
|
2251
|
+
this.changed.forEach(f => f(value));
|
|
2252
|
+
}
|
|
2253
|
+
get value() {
|
|
2254
|
+
return this.getModelValue();
|
|
2255
|
+
}
|
|
2256
|
+
set value(value) {
|
|
2257
|
+
if (this.getModelValue() !== value) {
|
|
2258
|
+
this.setByValue(value);
|
|
2259
|
+
this.changed.forEach(f => f(value));
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2262
|
+
writeValue(value) {
|
|
2263
|
+
this.setValue(value);
|
|
2264
|
+
}
|
|
2240
2265
|
};
|
|
2241
2266
|
FHComboboxComponent.ctorParameters = () => [
|
|
2242
2267
|
{ type: QueryService },
|
|
@@ -2302,7 +2327,7 @@ __decorate([
|
|
|
2302
2327
|
Input(),
|
|
2303
2328
|
__metadata("design:type", String)
|
|
2304
2329
|
], FHComboboxComponent.prototype, "db_type", void 0);
|
|
2305
|
-
FHComboboxComponent = __decorate([
|
|
2330
|
+
FHComboboxComponent = FHComboboxComponent_1 = __decorate([
|
|
2306
2331
|
Component({
|
|
2307
2332
|
selector: 'FHComboBox', template: `
|
|
2308
2333
|
<mat-form-field [hidden]="!enabled || hidden" appearance="outline" floatLabel="always"><mat-label>{{label}}</mat-label>
|
|
@@ -2316,6 +2341,9 @@ FHComboboxComponent = __decorate([
|
|
|
2316
2341
|
<input type="text" #el1 matInput [disabled]="true" [(ngModel)]="dis_value">
|
|
2317
2342
|
</mat-form-field>
|
|
2318
2343
|
`,
|
|
2344
|
+
providers: [
|
|
2345
|
+
{ provide: NG_VALUE_ACCESSOR, useExisting: FHComboboxComponent_1, multi: true },
|
|
2346
|
+
],
|
|
2319
2347
|
styles: [`
|
|
2320
2348
|
|
|
2321
2349
|
`]
|
|
@@ -3730,7 +3758,7 @@ WinAskTextComponent = __decorate([
|
|
|
3730
3758
|
[(ngModel)]="valore" required>
|
|
3731
3759
|
</mat-form-field>
|
|
3732
3760
|
</mat-dialog-content>
|
|
3733
|
-
|
|
3761
|
+
<mat-dialog-actions>
|
|
3734
3762
|
<div fxLayout="row" fxLayoutAlign="center center" style="width: 100%" [hidden]="readonly">
|
|
3735
3763
|
<button mat-flat-button color="primary" (click)="do_check()">OK</button>
|
|
3736
3764
|
<button mat-flat-button color="warn" (click)="chiudi()">ANNULLA</button>
|
|
@@ -3738,7 +3766,7 @@ WinAskTextComponent = __decorate([
|
|
|
3738
3766
|
<div fxLayout="row" fxLayoutAlign="center center" style="width: 100%" [hidden]="!readonly">
|
|
3739
3767
|
<button mat-flat-button color="warn" (click)="chiudi()">CHIUDI</button>
|
|
3740
3768
|
</div>
|
|
3741
|
-
|
|
3769
|
+
</mat-dialog-actions>
|
|
3742
3770
|
`
|
|
3743
3771
|
}),
|
|
3744
3772
|
__param(2, Inject(MAT_DIALOG_DATA)),
|