@fluxhub/fluxhub-lib 10.0.199 → 10.0.201

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.
@@ -10256,8 +10256,9 @@ class FHTimePickerComponent {
10256
10256
  }
10257
10257
  ngAfterViewInit() { }
10258
10258
  sc() {
10259
- const value = this.getValue();
10259
+ let value = this.getValue();
10260
10260
  this.selchange.emit();
10261
+ console.log('sc ', value);
10261
10262
  this.ngChange.emit(value);
10262
10263
  this.onChange(value);
10263
10264
  }
@@ -12108,225 +12109,6 @@ FHLogPanelComponent.propDecorators = {
12108
12109
 
12109
12110
  const noop$6 = () => { };
12110
12111
  const ɵ0$6 = noop$6;
12111
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 = {
12112
- provide: NG_VALUE_ACCESSOR,
12113
- useExisting: forwardRef(() => FHCurrencyFieldComponent),
12114
- multi: true,
12115
- };
12116
- class FHCurrencyFieldComponent {
12117
- constructor() {
12118
- this.decimal = 2;
12119
- this.label = "";
12120
- this.required = false;
12121
- this.enabled = true;
12122
- this.hidden = false;
12123
- this.color = "";
12124
- this.m_color = "";
12125
- this.label_width = "";
12126
- this.change = new EventEmitter();
12127
- this.focus = new EventEmitter();
12128
- this.focus_out = new EventEmitter();
12129
- this.enter_pressed = new EventEmitter();
12130
- this.innerValue = 0;
12131
- this.onChange = (_) => { };
12132
- this.onTouched = () => { };
12133
- this.formattedAmount = "0,00";
12134
- this.value = 0;
12135
- this.set_color(this.color);
12136
- }
12137
- kd(event) {
12138
- if (event.code == "Enter") {
12139
- this.enter_pressed.emit();
12140
- }
12141
- }
12142
- select_allf(element) {
12143
- this.el.nativeElement.select();
12144
- }
12145
- getStyle_color() {
12146
- return this.m_color;
12147
- }
12148
- getStyle_mw() {
12149
- return this.label_width;
12150
- }
12151
- set_color(color) {
12152
- this.m_color = color;
12153
- }
12154
- chg() {
12155
- setTimeout(() => {
12156
- if (this.decimal == 0)
12157
- this.value = parseFloat(this.formattedAmount.split(".").join("").split(",").join(""));
12158
- else
12159
- this.value = parseFloat(this.formattedAmount.split(".").join("").split(",").join("."));
12160
- if (typeof this.value == "string") {
12161
- if (this.decimal == 0)
12162
- this.value = parseFloat(this.value.split(".").join("").split(",").join(""));
12163
- else
12164
- this.value = parseFloat(this.value.split(".").join("").split(",").join("."));
12165
- }
12166
- // console.log("this.value ", this.value);
12167
- this.onChange(this.value);
12168
- }, 0);
12169
- }
12170
- writeValue(value) {
12171
- // console.log('inif ',parseFloat(value), value,this.innerValue);
12172
- if (value == null)
12173
- value = 0;
12174
- if (parseFloat(value) !== this.innerValue) {
12175
- // console.log('typeof value ',typeof value);
12176
- if (typeof value == "string")
12177
- if (this.decimal == 0 || value.indexOf(',') != -1) {
12178
- if (this.decimal == 0)
12179
- value = parseFloat(value.split(".").join("").split(",").join(""));
12180
- else
12181
- value = parseFloat(value.split(".").join("").split(",").join("."));
12182
- }
12183
- this.innerValue = value;
12184
- this.value = value;
12185
- // console.log('writeValue ini ',this.value, this.formattedAmount);
12186
- this.formattedAmount = this.transform(this.value, this.decimal);
12187
- // console.log('writeValue fin ',this.value, this.formattedAmount);
12188
- }
12189
- // this.onChange(this.value);
12190
- }
12191
- registerOnChange(fn) {
12192
- this.onChange = fn;
12193
- }
12194
- registerOnTouched(fn) {
12195
- this.onTouched = fn;
12196
- }
12197
- transformAmount(element) {
12198
- try {
12199
- // if (typeof (element.target.value) !== 'number')
12200
- // this.formattedAmount = this.currencyPipe.transform(this.value);
12201
- setTimeout(() => {
12202
- //if(this.decimal==0)
12203
- // this.value = parseFloat(this.formattedAmount.split('.').join('').split(',').join(''));
12204
- // else
12205
- // this.value = parseFloat(this.formattedAmount.split('.').join('').split(',').join('.'));
12206
- // this.writeValue(this.value);
12207
- // console.log('transformAmount ini ',this.value, this.formattedAmount);
12208
- this.formattedAmount = this.transform(this.value, this.decimal);
12209
- // console.log('transformAmount fin ',this.value, this.formattedAmount);
12210
- }, 0);
12211
- // Remove or comment this line if you dont want
12212
- // to show the formatted amount in the textbox.
12213
- // element.target.value = this.formattedAmount;
12214
- }
12215
- catch (e) {
12216
- // console.log(e);
12217
- }
12218
- }
12219
- transform(value, fractionSize = 2) {
12220
- // console.log('trasform ',value);
12221
- let [integer, fraction = ""] = (value || "").toString().split(".");
12222
- // console.log('integer, fraction ',integer, fraction);
12223
- fraction =
12224
- fractionSize > 0
12225
- ? "," + (fraction + "000000").substring(0, fractionSize)
12226
- : "";
12227
- integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, ".");
12228
- if (integer == "")
12229
- integer = "0";
12230
- // console.log('trasform ',integer + fraction);
12231
- return integer + fraction;
12232
- }
12233
- focus_e($event) {
12234
- try {
12235
- // this.value=this.value.split('.').join('');+
12236
- this.removeCurrencyPipeFormat($event);
12237
- this.setFocus();
12238
- this.focus.emit(this.value);
12239
- }
12240
- catch (e) {
12241
- // console.log(e);
12242
- }
12243
- }
12244
- setFocus() {
12245
- this.el.nativeElement.focus();
12246
- }
12247
- ngAfterViewInit() {
12248
- setTimeout(() => {
12249
- if (this.required)
12250
- this.el.nativeElement.required = this.required;
12251
- this.el.nativeElement.disabled = !this.enabled;
12252
- if (this.value == null)
12253
- this.value = 0;
12254
- this.formattedAmount = this.transform(this.value, this.decimal);
12255
- });
12256
- }
12257
- removeCurrencyPipeFormat(element) {
12258
- //console.log('removeCurrencyPipeFormat '+this.value);
12259
- try {
12260
- // this.value=this.value.split('.').join('');
12261
- this.formattedAmount = this.transform(this.value, this.decimal);
12262
- }
12263
- catch (e) {
12264
- // console.log(e);
12265
- }
12266
- }
12267
- }
12268
- FHCurrencyFieldComponent.decorators = [
12269
- { type: Component, args: [{
12270
- selector: "FHCurrencyField",
12271
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8],
12272
- template: `
12273
- <mat-form-field
12274
- [hidden]="!enabled || hidden"
12275
- appearance="outline"
12276
- floatLabel="always"
12277
- ><mat-label>{{ label }}</mat-label>
12278
- <input
12279
- type="text"
12280
- style="text-align:right"
12281
- #el
12282
- matInput
12283
- [disabled]="!enabled"
12284
- [(ngModel)]="formattedAmount"
12285
- (blur)="transformAmount($event); focus_out.emit(value)"
12286
- [style.color]="getStyle_color()"
12287
- (keydown)="kd($event)"
12288
- (focus)="focus_e($event); select_allf($event)"
12289
- (keyup)="chg()"
12290
- />
12291
- </mat-form-field>
12292
- <mat-form-field
12293
- [hidden]="enabled || hidden"
12294
- appearance="outline"
12295
- floatLabel="always"
12296
- ><mat-label>{{ label }}</mat-label>
12297
- <input
12298
- type="text"
12299
- style="text-align:right"
12300
- [style.color]="getStyle_color()"
12301
- #el1
12302
- matInput
12303
- [disabled]="true"
12304
- [(ngModel)]="formattedAmount"
12305
- />
12306
- </mat-form-field>
12307
- `,
12308
- styles: [``]
12309
- },] }
12310
- ];
12311
- FHCurrencyFieldComponent.ctorParameters = () => [];
12312
- FHCurrencyFieldComponent.propDecorators = {
12313
- el: [{ type: ViewChild, args: ["el",] }],
12314
- decimal: [{ type: Input }],
12315
- label: [{ type: Input }],
12316
- required: [{ type: Input }],
12317
- enabled: [{ type: Input }],
12318
- hidden: [{ type: Input }],
12319
- color: [{ type: Input }],
12320
- label_width: [{ type: Input }],
12321
- change: [{ type: Output }],
12322
- focus: [{ type: Output }],
12323
- focus_out: [{ type: Output }],
12324
- enter_pressed: [{ type: Output }],
12325
- value: [{ type: Input }]
12326
- };
12327
-
12328
- const noop$7 = () => { };
12329
- const ɵ0$7 = noop$7;
12330
12112
  const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT = {
12331
12113
  provide: NG_VALUE_ACCESSOR,
12332
12114
  useExisting: forwardRef(() => FHRichText),
@@ -12507,8 +12289,8 @@ fh_win_output.propDecorators = {
12507
12289
  valore: [{ type: Input }]
12508
12290
  };
12509
12291
 
12510
- const noop$8 = () => { };
12511
- const ɵ0$8 = noop$8;
12292
+ const noop$7 = () => { };
12293
+ const ɵ0$7 = noop$7;
12512
12294
  const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC = {
12513
12295
  provide: NG_VALUE_ACCESSOR,
12514
12296
  useExisting: forwardRef(() => FHNumericFieldComponent),
@@ -18925,7 +18707,7 @@ SafePipe.ctorParameters = () => [
18925
18707
  { type: DomSanitizer }
18926
18708
  ];
18927
18709
 
18928
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 = {
18710
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 = {
18929
18711
  provide: NG_VALUE_ACCESSOR,
18930
18712
  useExisting: forwardRef(() => FHFieldPickListComponent),
18931
18713
  multi: true,
@@ -18995,7 +18777,7 @@ class FHFieldPickListComponent {
18995
18777
  }
18996
18778
  FHFieldPickListComponent.decorators = [
18997
18779
  { type: Component, args: [{
18998
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9],
18780
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8],
18999
18781
  selector: "FHFieldPickList",
19000
18782
  template: `
19001
18783
  <div
@@ -20309,9 +20091,9 @@ FHHelpButton.propDecorators = {
20309
20091
  key: [{ type: Input }]
20310
20092
  };
20311
20093
 
20312
- const noop$9 = () => { };
20313
- const ɵ0$9 = noop$9;
20314
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a = {
20094
+ const noop$8 = () => { };
20095
+ const ɵ0$8 = noop$8;
20096
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 = {
20315
20097
  provide: NG_VALUE_ACCESSOR,
20316
20098
  useExisting: forwardRef(() => FHCheckBox),
20317
20099
  multi: true,
@@ -20365,7 +20147,7 @@ class FHCheckBox {
20365
20147
  FHCheckBox.decorators = [
20366
20148
  { type: Component, args: [{
20367
20149
  selector: "FHCheckBox",
20368
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a],
20150
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9],
20369
20151
  template: `
20370
20152
  <mat-checkbox
20371
20153
  [(ngModel)]="value_b"
@@ -20511,7 +20293,6 @@ FluxhubLibModule.decorators = [
20511
20293
  FHMdReader,
20512
20294
  FHLogPanelComponent,
20513
20295
  fh_win_ask_big_test,
20514
- FHCurrencyFieldComponent,
20515
20296
  FHRichText,
20516
20297
  fh_win_output,
20517
20298
  FHNumericFieldComponent,
@@ -20574,7 +20355,6 @@ FluxhubLibModule.decorators = [
20574
20355
  FHMdReader,
20575
20356
  FHLogPanelComponent,
20576
20357
  fh_win_ask_big_test,
20577
- FHCurrencyFieldComponent,
20578
20358
  FHRichText,
20579
20359
  fh_win_output,
20580
20360
  FHNumericFieldComponent,
@@ -20829,5 +20609,5 @@ class FSResult {
20829
20609
  * Generated bundle index. Do not edit.
20830
20610
  */
20831
20611
 
20832
- export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, CheckboxEditorComponent, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHCheckBox, FHComboboxComponent, FHConfirmValues, FHCurrencyFieldComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGuard, FHListComponent, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, FHPickFieldComponent, FHRichText, FHRoleManager, FHTableManager, FHTextArea, FHTextInput, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WkfService, dati_aggiuntivi, fh_win_app_logs, fh_win_ask_big_test, fh_win_ask_buttons, fh_win_ask_number, fh_win_ask_text, fh_win_combo, fh_win_confirm, fh_win_list, fh_win_mappa, fh_win_output, fh_win_picklist, fh_win_show_email, fh_win_show_email_s3, fh_win_show_image, fh_win_show_log_dett, fh_win_time_slider, fh_win_uploads, fh_win_user_info, fh_win_user_picker, fh_win_wait, fhimagepreview, win_insert_commento, win_salva_annulla, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 as ɵb, win_select_level as ɵba, win_commenti as ɵbb, win_info_doc as ɵbc, win_log as ɵbd, win_recupera_doc as ɵbe, win_riassegna_select_level as ɵbf, win_riassegna_select_user as ɵbg, win_sostituisci_utente as ɵbh, win_commento_sel_notif as ɵbi, win_manage_values as ɵbj, win_manage_roles as ɵbk, FHComboboxComponentFilter as ɵbl, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 as ɵf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 as ɵg, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵh, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 as ɵj, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵk, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 as ɵl, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a as ɵm, FHHelpButton as ɵn, SafePipe as ɵo, DecimalMask as ɵp, MOMENT_DATE_FORMATS as ɵq, MomentDateAdapter as ɵr, win_grid_help as ɵs, HighlightService as ɵt, FHViewerComponent as ɵu, FHGridToolBarComponent as ɵw, win_assegna as ɵx, win_conferma as ɵy, win_select_canale as ɵz };
20612
+ export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, CheckboxEditorComponent, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHCheckBox, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGuard, FHListComponent, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, FHPickFieldComponent, FHRichText, FHRoleManager, FHTableManager, FHTextArea, FHTextInput, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WkfService, dati_aggiuntivi, fh_win_app_logs, fh_win_ask_big_test, fh_win_ask_buttons, fh_win_ask_number, fh_win_ask_text, fh_win_combo, fh_win_confirm, fh_win_list, fh_win_mappa, fh_win_output, fh_win_picklist, fh_win_show_email, fh_win_show_email_s3, fh_win_show_image, fh_win_show_log_dett, fh_win_time_slider, fh_win_uploads, fh_win_user_info, fh_win_user_picker, fh_win_wait, fhimagepreview, win_insert_commento, win_salva_annulla, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 as ɵb, win_commenti as ɵba, win_info_doc as ɵbb, win_log as ɵbc, win_recupera_doc as ɵbd, win_riassegna_select_level as ɵbe, win_riassegna_select_user as ɵbf, win_sostituisci_utente as ɵbg, win_commento_sel_notif as ɵbh, win_manage_values as ɵbi, win_manage_roles as ɵbj, FHComboboxComponentFilter as ɵbk, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 as ɵf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵg, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵh, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 as ɵi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵj, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 as ɵk, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 as ɵl, FHHelpButton as ɵm, SafePipe as ɵn, DecimalMask as ɵo, MOMENT_DATE_FORMATS as ɵp, MomentDateAdapter as ɵq, win_grid_help as ɵr, HighlightService as ɵs, FHViewerComponent as ɵt, FHGridToolBarComponent as ɵv, win_assegna as ɵw, win_conferma as ɵx, win_select_canale as ɵy, win_select_level as ɵz };
20833
20613
  //# sourceMappingURL=fluxhub-fluxhub-lib.js.map