@fluxhub/fluxhub-lib 10.0.199 → 10.0.200

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.
@@ -12108,225 +12108,6 @@ FHLogPanelComponent.propDecorators = {
12108
12108
 
12109
12109
  const noop$6 = () => { };
12110
12110
  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
12111
  const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT = {
12331
12112
  provide: NG_VALUE_ACCESSOR,
12332
12113
  useExisting: forwardRef(() => FHRichText),
@@ -12507,8 +12288,8 @@ fh_win_output.propDecorators = {
12507
12288
  valore: [{ type: Input }]
12508
12289
  };
12509
12290
 
12510
- const noop$8 = () => { };
12511
- const ɵ0$8 = noop$8;
12291
+ const noop$7 = () => { };
12292
+ const ɵ0$7 = noop$7;
12512
12293
  const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC = {
12513
12294
  provide: NG_VALUE_ACCESSOR,
12514
12295
  useExisting: forwardRef(() => FHNumericFieldComponent),
@@ -18925,7 +18706,7 @@ SafePipe.ctorParameters = () => [
18925
18706
  { type: DomSanitizer }
18926
18707
  ];
18927
18708
 
18928
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 = {
18709
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 = {
18929
18710
  provide: NG_VALUE_ACCESSOR,
18930
18711
  useExisting: forwardRef(() => FHFieldPickListComponent),
18931
18712
  multi: true,
@@ -18995,7 +18776,7 @@ class FHFieldPickListComponent {
18995
18776
  }
18996
18777
  FHFieldPickListComponent.decorators = [
18997
18778
  { type: Component, args: [{
18998
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9],
18779
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8],
18999
18780
  selector: "FHFieldPickList",
19000
18781
  template: `
19001
18782
  <div
@@ -20309,9 +20090,9 @@ FHHelpButton.propDecorators = {
20309
20090
  key: [{ type: Input }]
20310
20091
  };
20311
20092
 
20312
- const noop$9 = () => { };
20313
- const ɵ0$9 = noop$9;
20314
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a = {
20093
+ const noop$8 = () => { };
20094
+ const ɵ0$8 = noop$8;
20095
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 = {
20315
20096
  provide: NG_VALUE_ACCESSOR,
20316
20097
  useExisting: forwardRef(() => FHCheckBox),
20317
20098
  multi: true,
@@ -20365,7 +20146,7 @@ class FHCheckBox {
20365
20146
  FHCheckBox.decorators = [
20366
20147
  { type: Component, args: [{
20367
20148
  selector: "FHCheckBox",
20368
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a],
20149
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9],
20369
20150
  template: `
20370
20151
  <mat-checkbox
20371
20152
  [(ngModel)]="value_b"
@@ -20511,7 +20292,6 @@ FluxhubLibModule.decorators = [
20511
20292
  FHMdReader,
20512
20293
  FHLogPanelComponent,
20513
20294
  fh_win_ask_big_test,
20514
- FHCurrencyFieldComponent,
20515
20295
  FHRichText,
20516
20296
  fh_win_output,
20517
20297
  FHNumericFieldComponent,
@@ -20574,7 +20354,6 @@ FluxhubLibModule.decorators = [
20574
20354
  FHMdReader,
20575
20355
  FHLogPanelComponent,
20576
20356
  fh_win_ask_big_test,
20577
- FHCurrencyFieldComponent,
20578
20357
  FHRichText,
20579
20358
  fh_win_output,
20580
20359
  FHNumericFieldComponent,
@@ -20829,5 +20608,5 @@ class FSResult {
20829
20608
  * Generated bundle index. Do not edit.
20830
20609
  */
20831
20610
 
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 };
20611
+ 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
20612
  //# sourceMappingURL=fluxhub-fluxhub-lib.js.map