@fluxhub/fluxhub-lib 10.0.198 → 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,222 +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
- getStyle_color() {
12143
- return this.m_color;
12144
- }
12145
- getStyle_mw() {
12146
- return this.label_width;
12147
- }
12148
- set_color(color) {
12149
- this.m_color = color;
12150
- }
12151
- chg() {
12152
- setTimeout(() => {
12153
- if (this.decimal == 0)
12154
- this.value = parseFloat(this.formattedAmount.split(".").join("").split(",").join(""));
12155
- else
12156
- this.value = parseFloat(this.formattedAmount.split(".").join("").split(",").join("."));
12157
- if (typeof this.value == "string") {
12158
- if (this.decimal == 0)
12159
- this.value = parseFloat(this.value.split(".").join("").split(",").join(""));
12160
- else
12161
- this.value = parseFloat(this.value.split(".").join("").split(",").join("."));
12162
- }
12163
- // console.log("this.value ", this.value);
12164
- this.onChange(this.value);
12165
- }, 0);
12166
- }
12167
- writeValue(value) {
12168
- // console.log('inif ',parseFloat(value), value,this.innerValue);
12169
- if (value == null)
12170
- value = 0;
12171
- if (parseFloat(value) !== this.innerValue) {
12172
- // console.log('typeof value ',typeof value);
12173
- if (typeof value == "string")
12174
- if (this.decimal == 0 || value.indexOf(',') != -1) {
12175
- if (this.decimal == 0)
12176
- value = parseFloat(value.split(".").join("").split(",").join(""));
12177
- else
12178
- value = parseFloat(value.split(".").join("").split(",").join("."));
12179
- }
12180
- this.innerValue = value;
12181
- this.value = value;
12182
- // console.log('writeValue ini ',this.value, this.formattedAmount);
12183
- this.formattedAmount = this.transform(this.value, this.decimal);
12184
- // console.log('writeValue fin ',this.value, this.formattedAmount);
12185
- }
12186
- // this.onChange(this.value);
12187
- }
12188
- registerOnChange(fn) {
12189
- this.onChange = fn;
12190
- }
12191
- registerOnTouched(fn) {
12192
- this.onTouched = fn;
12193
- }
12194
- transformAmount(element) {
12195
- try {
12196
- // if (typeof (element.target.value) !== 'number')
12197
- // this.formattedAmount = this.currencyPipe.transform(this.value);
12198
- setTimeout(() => {
12199
- //if(this.decimal==0)
12200
- // this.value = parseFloat(this.formattedAmount.split('.').join('').split(',').join(''));
12201
- // else
12202
- // this.value = parseFloat(this.formattedAmount.split('.').join('').split(',').join('.'));
12203
- // this.writeValue(this.value);
12204
- // console.log('transformAmount ini ',this.value, this.formattedAmount);
12205
- this.formattedAmount = this.transform(this.value, this.decimal);
12206
- // console.log('transformAmount fin ',this.value, this.formattedAmount);
12207
- }, 0);
12208
- // Remove or comment this line if you dont want
12209
- // to show the formatted amount in the textbox.
12210
- // element.target.value = this.formattedAmount;
12211
- }
12212
- catch (e) {
12213
- // console.log(e);
12214
- }
12215
- }
12216
- transform(value, fractionSize = 2) {
12217
- // console.log('trasform ',value);
12218
- let [integer, fraction = ""] = (value || "").toString().split(".");
12219
- // console.log('integer, fraction ',integer, fraction);
12220
- fraction =
12221
- fractionSize > 0
12222
- ? "," + (fraction + "000000").substring(0, fractionSize)
12223
- : "";
12224
- integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, ".");
12225
- if (integer == "")
12226
- integer = "0";
12227
- // console.log('trasform ',integer + fraction);
12228
- return integer + fraction;
12229
- }
12230
- focus_e($event) {
12231
- try {
12232
- // this.value=this.value.split('.').join('');+
12233
- this.removeCurrencyPipeFormat($event);
12234
- this.setFocus();
12235
- this.focus.emit(this.value);
12236
- }
12237
- catch (e) {
12238
- // console.log(e);
12239
- }
12240
- }
12241
- setFocus() {
12242
- this.el.nativeElement.focus();
12243
- }
12244
- ngAfterViewInit() {
12245
- setTimeout(() => {
12246
- if (this.required)
12247
- this.el.nativeElement.required = this.required;
12248
- this.el.nativeElement.disabled = !this.enabled;
12249
- if (this.value == null)
12250
- this.value = 0;
12251
- this.formattedAmount = this.transform(this.value, this.decimal);
12252
- });
12253
- }
12254
- removeCurrencyPipeFormat(element) {
12255
- //console.log('removeCurrencyPipeFormat '+this.value);
12256
- try {
12257
- // this.value=this.value.split('.').join('');
12258
- this.formattedAmount = this.transform(this.value, this.decimal);
12259
- }
12260
- catch (e) {
12261
- // console.log(e);
12262
- }
12263
- }
12264
- }
12265
- FHCurrencyFieldComponent.decorators = [
12266
- { type: Component, args: [{
12267
- selector: "FHCurrencyField",
12268
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8],
12269
- template: `
12270
- <mat-form-field
12271
- [hidden]="!enabled || hidden"
12272
- appearance="outline"
12273
- floatLabel="always"
12274
- ><mat-label>{{ label }}</mat-label>
12275
- <input
12276
- type="text"
12277
- style="text-align:right"
12278
- #el
12279
- matInput
12280
- [disabled]="!enabled"
12281
- [(ngModel)]="formattedAmount"
12282
- (blur)="transformAmount($event); focus_out.emit(value)"
12283
- [style.color]="getStyle_color()"
12284
- (keydown)="kd($event)"
12285
- (focus)="focus_e($event)"
12286
- (keyup)="chg()"
12287
- />
12288
- </mat-form-field>
12289
- <mat-form-field
12290
- [hidden]="enabled || hidden"
12291
- appearance="outline"
12292
- floatLabel="always"
12293
- ><mat-label>{{ label }}</mat-label>
12294
- <input
12295
- type="text"
12296
- style="text-align:right"
12297
- [style.color]="getStyle_color()"
12298
- #el1
12299
- matInput
12300
- [disabled]="true"
12301
- [(ngModel)]="formattedAmount"
12302
- />
12303
- </mat-form-field>
12304
- `,
12305
- styles: [``]
12306
- },] }
12307
- ];
12308
- FHCurrencyFieldComponent.ctorParameters = () => [];
12309
- FHCurrencyFieldComponent.propDecorators = {
12310
- el: [{ type: ViewChild, args: ["el",] }],
12311
- decimal: [{ type: Input }],
12312
- label: [{ type: Input }],
12313
- required: [{ type: Input }],
12314
- enabled: [{ type: Input }],
12315
- hidden: [{ type: Input }],
12316
- color: [{ type: Input }],
12317
- label_width: [{ type: Input }],
12318
- change: [{ type: Output }],
12319
- focus: [{ type: Output }],
12320
- focus_out: [{ type: Output }],
12321
- enter_pressed: [{ type: Output }],
12322
- value: [{ type: Input }]
12323
- };
12324
-
12325
- const noop$7 = () => { };
12326
- const ɵ0$7 = noop$7;
12327
12111
  const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT = {
12328
12112
  provide: NG_VALUE_ACCESSOR,
12329
12113
  useExisting: forwardRef(() => FHRichText),
@@ -12504,8 +12288,8 @@ fh_win_output.propDecorators = {
12504
12288
  valore: [{ type: Input }]
12505
12289
  };
12506
12290
 
12507
- const noop$8 = () => { };
12508
- const ɵ0$8 = noop$8;
12291
+ const noop$7 = () => { };
12292
+ const ɵ0$7 = noop$7;
12509
12293
  const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC = {
12510
12294
  provide: NG_VALUE_ACCESSOR,
12511
12295
  useExisting: forwardRef(() => FHNumericFieldComponent),
@@ -18922,7 +18706,7 @@ SafePipe.ctorParameters = () => [
18922
18706
  { type: DomSanitizer }
18923
18707
  ];
18924
18708
 
18925
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 = {
18709
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 = {
18926
18710
  provide: NG_VALUE_ACCESSOR,
18927
18711
  useExisting: forwardRef(() => FHFieldPickListComponent),
18928
18712
  multi: true,
@@ -18992,7 +18776,7 @@ class FHFieldPickListComponent {
18992
18776
  }
18993
18777
  FHFieldPickListComponent.decorators = [
18994
18778
  { type: Component, args: [{
18995
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9],
18779
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8],
18996
18780
  selector: "FHFieldPickList",
18997
18781
  template: `
18998
18782
  <div
@@ -20306,9 +20090,9 @@ FHHelpButton.propDecorators = {
20306
20090
  key: [{ type: Input }]
20307
20091
  };
20308
20092
 
20309
- const noop$9 = () => { };
20310
- const ɵ0$9 = noop$9;
20311
- 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 = {
20312
20096
  provide: NG_VALUE_ACCESSOR,
20313
20097
  useExisting: forwardRef(() => FHCheckBox),
20314
20098
  multi: true,
@@ -20362,7 +20146,7 @@ class FHCheckBox {
20362
20146
  FHCheckBox.decorators = [
20363
20147
  { type: Component, args: [{
20364
20148
  selector: "FHCheckBox",
20365
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a],
20149
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9],
20366
20150
  template: `
20367
20151
  <mat-checkbox
20368
20152
  [(ngModel)]="value_b"
@@ -20508,7 +20292,6 @@ FluxhubLibModule.decorators = [
20508
20292
  FHMdReader,
20509
20293
  FHLogPanelComponent,
20510
20294
  fh_win_ask_big_test,
20511
- FHCurrencyFieldComponent,
20512
20295
  FHRichText,
20513
20296
  fh_win_output,
20514
20297
  FHNumericFieldComponent,
@@ -20571,7 +20354,6 @@ FluxhubLibModule.decorators = [
20571
20354
  FHMdReader,
20572
20355
  FHLogPanelComponent,
20573
20356
  fh_win_ask_big_test,
20574
- FHCurrencyFieldComponent,
20575
20357
  FHRichText,
20576
20358
  fh_win_output,
20577
20359
  FHNumericFieldComponent,
@@ -20826,5 +20608,5 @@ class FSResult {
20826
20608
  * Generated bundle index. Do not edit.
20827
20609
  */
20828
20610
 
20829
- 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 };
20830
20612
  //# sourceMappingURL=fluxhub-fluxhub-lib.js.map