@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.
@@ -8796,195 +8796,6 @@
8796
8796
 
8797
8797
  var noop$6 = function () { };
8798
8798
  var ɵ0$6 = noop$6;
8799
- var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 = {
8800
- provide: forms.NG_VALUE_ACCESSOR,
8801
- useExisting: i0.forwardRef(function () { return FHCurrencyFieldComponent; }),
8802
- multi: true,
8803
- };
8804
- var FHCurrencyFieldComponent = /** @class */ (function () {
8805
- function FHCurrencyFieldComponent() {
8806
- this.decimal = 2;
8807
- this.label = "";
8808
- this.required = false;
8809
- this.enabled = true;
8810
- this.hidden = false;
8811
- this.color = "";
8812
- this.m_color = "";
8813
- this.label_width = "";
8814
- this.change = new i0.EventEmitter();
8815
- this.focus = new i0.EventEmitter();
8816
- this.focus_out = new i0.EventEmitter();
8817
- this.enter_pressed = new i0.EventEmitter();
8818
- this.innerValue = 0;
8819
- this.onChange = function (_) { };
8820
- this.onTouched = function () { };
8821
- this.formattedAmount = "0,00";
8822
- this.value = 0;
8823
- this.set_color(this.color);
8824
- }
8825
- FHCurrencyFieldComponent.prototype.kd = function (event) {
8826
- if (event.code == "Enter") {
8827
- this.enter_pressed.emit();
8828
- }
8829
- };
8830
- FHCurrencyFieldComponent.prototype.select_allf = function (element) {
8831
- this.el.nativeElement.select();
8832
- };
8833
- FHCurrencyFieldComponent.prototype.getStyle_color = function () {
8834
- return this.m_color;
8835
- };
8836
- FHCurrencyFieldComponent.prototype.getStyle_mw = function () {
8837
- return this.label_width;
8838
- };
8839
- FHCurrencyFieldComponent.prototype.set_color = function (color) {
8840
- this.m_color = color;
8841
- };
8842
- FHCurrencyFieldComponent.prototype.chg = function () {
8843
- var _this = this;
8844
- setTimeout(function () {
8845
- if (_this.decimal == 0)
8846
- _this.value = parseFloat(_this.formattedAmount.split(".").join("").split(",").join(""));
8847
- else
8848
- _this.value = parseFloat(_this.formattedAmount.split(".").join("").split(",").join("."));
8849
- if (typeof _this.value == "string") {
8850
- if (_this.decimal == 0)
8851
- _this.value = parseFloat(_this.value.split(".").join("").split(",").join(""));
8852
- else
8853
- _this.value = parseFloat(_this.value.split(".").join("").split(",").join("."));
8854
- }
8855
- // console.log("this.value ", this.value);
8856
- _this.onChange(_this.value);
8857
- }, 0);
8858
- };
8859
- FHCurrencyFieldComponent.prototype.writeValue = function (value) {
8860
- // console.log('inif ',parseFloat(value), value,this.innerValue);
8861
- if (value == null)
8862
- value = 0;
8863
- if (parseFloat(value) !== this.innerValue) {
8864
- // console.log('typeof value ',typeof value);
8865
- if (typeof value == "string")
8866
- if (this.decimal == 0 || value.indexOf(',') != -1) {
8867
- if (this.decimal == 0)
8868
- value = parseFloat(value.split(".").join("").split(",").join(""));
8869
- else
8870
- value = parseFloat(value.split(".").join("").split(",").join("."));
8871
- }
8872
- this.innerValue = value;
8873
- this.value = value;
8874
- // console.log('writeValue ini ',this.value, this.formattedAmount);
8875
- this.formattedAmount = this.transform(this.value, this.decimal);
8876
- // console.log('writeValue fin ',this.value, this.formattedAmount);
8877
- }
8878
- // this.onChange(this.value);
8879
- };
8880
- FHCurrencyFieldComponent.prototype.registerOnChange = function (fn) {
8881
- this.onChange = fn;
8882
- };
8883
- FHCurrencyFieldComponent.prototype.registerOnTouched = function (fn) {
8884
- this.onTouched = fn;
8885
- };
8886
- FHCurrencyFieldComponent.prototype.transformAmount = function (element) {
8887
- var _this = this;
8888
- try {
8889
- // if (typeof (element.target.value) !== 'number')
8890
- // this.formattedAmount = this.currencyPipe.transform(this.value);
8891
- setTimeout(function () {
8892
- //if(this.decimal==0)
8893
- // this.value = parseFloat(this.formattedAmount.split('.').join('').split(',').join(''));
8894
- // else
8895
- // this.value = parseFloat(this.formattedAmount.split('.').join('').split(',').join('.'));
8896
- // this.writeValue(this.value);
8897
- // console.log('transformAmount ini ',this.value, this.formattedAmount);
8898
- _this.formattedAmount = _this.transform(_this.value, _this.decimal);
8899
- // console.log('transformAmount fin ',this.value, this.formattedAmount);
8900
- }, 0);
8901
- // Remove or comment this line if you dont want
8902
- // to show the formatted amount in the textbox.
8903
- // element.target.value = this.formattedAmount;
8904
- }
8905
- catch (e) {
8906
- // console.log(e);
8907
- }
8908
- };
8909
- FHCurrencyFieldComponent.prototype.transform = function (value, fractionSize) {
8910
- if (fractionSize === void 0) { fractionSize = 2; }
8911
- // console.log('trasform ',value);
8912
- var _a = __read((value || "").toString().split("."), 2), integer = _a[0], _b = _a[1], fraction = _b === void 0 ? "" : _b;
8913
- // console.log('integer, fraction ',integer, fraction);
8914
- fraction =
8915
- fractionSize > 0
8916
- ? "," + (fraction + "000000").substring(0, fractionSize)
8917
- : "";
8918
- integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, ".");
8919
- if (integer == "")
8920
- integer = "0";
8921
- // console.log('trasform ',integer + fraction);
8922
- return integer + fraction;
8923
- };
8924
- FHCurrencyFieldComponent.prototype.focus_e = function ($event) {
8925
- try {
8926
- // this.value=this.value.split('.').join('');+
8927
- this.removeCurrencyPipeFormat($event);
8928
- this.setFocus();
8929
- this.focus.emit(this.value);
8930
- }
8931
- catch (e) {
8932
- // console.log(e);
8933
- }
8934
- };
8935
- FHCurrencyFieldComponent.prototype.setFocus = function () {
8936
- this.el.nativeElement.focus();
8937
- };
8938
- FHCurrencyFieldComponent.prototype.ngAfterViewInit = function () {
8939
- var _this = this;
8940
- setTimeout(function () {
8941
- if (_this.required)
8942
- _this.el.nativeElement.required = _this.required;
8943
- _this.el.nativeElement.disabled = !_this.enabled;
8944
- if (_this.value == null)
8945
- _this.value = 0;
8946
- _this.formattedAmount = _this.transform(_this.value, _this.decimal);
8947
- });
8948
- };
8949
- FHCurrencyFieldComponent.prototype.removeCurrencyPipeFormat = function (element) {
8950
- //console.log('removeCurrencyPipeFormat '+this.value);
8951
- try {
8952
- // this.value=this.value.split('.').join('');
8953
- this.formattedAmount = this.transform(this.value, this.decimal);
8954
- }
8955
- catch (e) {
8956
- // console.log(e);
8957
- }
8958
- };
8959
- return FHCurrencyFieldComponent;
8960
- }());
8961
- FHCurrencyFieldComponent.decorators = [
8962
- { type: i0.Component, args: [{
8963
- selector: "FHCurrencyField",
8964
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7],
8965
- template: "\n <mat-form-field\n [hidden]=\"!enabled || hidden\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n style=\"text-align:right\"\n #el\n matInput\n [disabled]=\"!enabled\"\n [(ngModel)]=\"formattedAmount\"\n (blur)=\"transformAmount($event); focus_out.emit(value)\"\n [style.color]=\"getStyle_color()\"\n (keydown)=\"kd($event)\"\n (focus)=\"focus_e($event); select_allf($event)\"\n (keyup)=\"chg()\"\n />\n </mat-form-field>\n <mat-form-field\n [hidden]=\"enabled || hidden\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n style=\"text-align:right\"\n [style.color]=\"getStyle_color()\"\n #el1\n matInput\n [disabled]=\"true\"\n [(ngModel)]=\"formattedAmount\"\n />\n </mat-form-field>\n ",
8966
- styles: [""]
8967
- },] }
8968
- ];
8969
- FHCurrencyFieldComponent.ctorParameters = function () { return []; };
8970
- FHCurrencyFieldComponent.propDecorators = {
8971
- el: [{ type: i0.ViewChild, args: ["el",] }],
8972
- decimal: [{ type: i0.Input }],
8973
- label: [{ type: i0.Input }],
8974
- required: [{ type: i0.Input }],
8975
- enabled: [{ type: i0.Input }],
8976
- hidden: [{ type: i0.Input }],
8977
- color: [{ type: i0.Input }],
8978
- label_width: [{ type: i0.Input }],
8979
- change: [{ type: i0.Output }],
8980
- focus: [{ type: i0.Output }],
8981
- focus_out: [{ type: i0.Output }],
8982
- enter_pressed: [{ type: i0.Output }],
8983
- value: [{ type: i0.Input }]
8984
- };
8985
-
8986
- var noop$7 = function () { };
8987
- var ɵ0$7 = noop$7;
8988
8799
  var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT = {
8989
8800
  provide: forms.NG_VALUE_ACCESSOR,
8990
8801
  useExisting: i0.forwardRef(function () { return FHRichText; }),
@@ -9130,8 +8941,8 @@
9130
8941
  valore: [{ type: i0.Input }]
9131
8942
  };
9132
8943
 
9133
- var noop$8 = function () { };
9134
- var ɵ0$8 = noop$8;
8944
+ var noop$7 = function () { };
8945
+ var ɵ0$7 = noop$7;
9135
8946
  var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC = {
9136
8947
  provide: forms.NG_VALUE_ACCESSOR,
9137
8948
  useExisting: i0.forwardRef(function () { return FHNumericFieldComponent; }),
@@ -9372,7 +9183,7 @@
9372
9183
  cmb_sel: [{ type: i0.ViewChild, args: ["cmb_sel",] }]
9373
9184
  };
9374
9185
 
9375
- var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 = {
9186
+ var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 = {
9376
9187
  provide: forms.NG_VALUE_ACCESSOR,
9377
9188
  useExisting: i0.forwardRef(function () { return FHUserFieldComponent; }),
9378
9189
  multi: true,
@@ -9586,7 +9397,7 @@
9586
9397
  FHUserFieldComponent.decorators = [
9587
9398
  { type: i0.Component, args: [{
9588
9399
  selector: "FHUserField",
9589
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8],
9400
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7],
9590
9401
  template: "\n <div fxLayout=\"row\" [hidden]=\"!enabled || hidden\">\n <mat-form-field\n style=\"clickable-field\"\n (click)=\"open_pick()\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n\n <input\n matInput\n [hidden]=\"hidden\"\n type=\"text\"\n [ngModel]=\"userName\"\n [disabled]=\"false\"\n readonly\n />\n </mat-form-field>\n <button\n mat-icon-button\n matSuffix\n [hidden]=\"selectedUser.length == 0\"\n (click)=\"clear()\"\n >\n <mat-icon>clear</mat-icon>\n </button>\n </div>\n <mat-form-field\n [hidden]=\"enabled || hidden\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n #el1\n matInput\n [disabled]=\"true\"\n [(ngModel)]=\"userName\"\n />\n </mat-form-field>\n ",
9591
9402
  styles: ["\n .clickable-field {\n border: 1px solid #000000;\n color: #000000;\n }\n\n .clickable-field:focus {\n outline: none;\n }\n\n :host ::ng-deep .mat-input-element {\n cursor: pointer !important;\n }\n "]
9592
9403
  },] }
@@ -12932,7 +12743,7 @@
12932
12743
  { type: platformBrowser.DomSanitizer }
12933
12744
  ]; };
12934
12745
 
12935
- var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 = {
12746
+ var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 = {
12936
12747
  provide: forms.NG_VALUE_ACCESSOR,
12937
12748
  useExisting: i0.forwardRef(function () { return FHFieldPickListComponent; }),
12938
12749
  multi: true,
@@ -13004,7 +12815,7 @@
13004
12815
  }());
13005
12816
  FHFieldPickListComponent.decorators = [
13006
12817
  { type: i0.Component, args: [{
13007
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9],
12818
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8],
13008
12819
  selector: "FHFieldPickList",
13009
12820
  template: "\n <div\n fxLayout=\"row\" [hidden]=\"!enabled || hidden\"\n fxFlex=\"100\"\n fxLayoutAlign=\"start center\"\n fxLayoutGap=\"10px\"\n >\n <div fxFlex fxLayout=\"row\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n #el1\n matInput\n [readonly]=\"only_in_list\"\n [(ngModel)]=\"value\"\n />\n </mat-form-field>\n </div>\n\n <div fxLayout=\"row\">\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"open_pick_list()\"\n\n >\n SELEZIONA\n </button>\n </div>\n </div>\n <mat-form-field appearance=\"outline\" [hidden]=\"enabled || hidden\" floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\" [matTooltip]=\"value\"\n\n matInput [disabled]=\"true\"\n\n [(ngModel)]=\"value\"\n />\n </mat-form-field>\n ",
13010
12821
  styles: [""]
@@ -13952,9 +13763,9 @@
13952
13763
  key: [{ type: i0.Input }]
13953
13764
  };
13954
13765
 
13955
- var noop$9 = function () { };
13956
- var ɵ0$9 = noop$9;
13957
- var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a = {
13766
+ var noop$8 = function () { };
13767
+ var ɵ0$8 = noop$8;
13768
+ var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 = {
13958
13769
  provide: forms.NG_VALUE_ACCESSOR,
13959
13770
  useExisting: i0.forwardRef(function () { return FHCheckBox; }),
13960
13771
  multi: true,
@@ -14011,7 +13822,7 @@
14011
13822
  FHCheckBox.decorators = [
14012
13823
  { type: i0.Component, args: [{
14013
13824
  selector: "FHCheckBox",
14014
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a],
13825
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9],
14015
13826
  template: "\n <mat-checkbox\n [(ngModel)]=\"value_b\"\n (click)=\"onCl()\"\n [disabled]=\"!enabled\"\n [required]=\"required\"\n (ngModelChange)=\"modelch()\"\n >{{ label }}\n </mat-checkbox>\n ",
14016
13827
  styles: [""]
14017
13828
  },] }
@@ -14151,7 +13962,6 @@
14151
13962
  FHMdReader,
14152
13963
  FHLogPanelComponent,
14153
13964
  fh_win_ask_big_test,
14154
- FHCurrencyFieldComponent,
14155
13965
  FHRichText,
14156
13966
  fh_win_output,
14157
13967
  FHNumericFieldComponent,
@@ -14214,7 +14024,6 @@
14214
14024
  FHMdReader,
14215
14025
  FHLogPanelComponent,
14216
14026
  fh_win_ask_big_test,
14217
- FHCurrencyFieldComponent,
14218
14027
  FHRichText,
14219
14028
  fh_win_output,
14220
14029
  FHNumericFieldComponent,
@@ -17048,7 +16857,6 @@
17048
16857
  exports.FHCheckBox = FHCheckBox;
17049
16858
  exports.FHComboboxComponent = FHComboboxComponent;
17050
16859
  exports.FHConfirmValues = FHConfirmValues;
17051
- exports.FHCurrencyFieldComponent = FHCurrencyFieldComponent;
17052
16860
  exports.FHCurrencyFormatterDirective = FHCurrencyFormatterDirective;
17053
16861
  exports.FHCurrencyPipe = FHCurrencyPipe;
17054
16862
  exports.FHDatePickerComponent = FHDatePickerComponent;
@@ -17121,41 +16929,40 @@
17121
16929
  exports.wkfapp = wkfapp;
17122
16930
  exports.ɵa = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR;
17123
16931
  exports.ɵb = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1;
17124
- exports.ɵba = win_select_level;
17125
- exports.ɵbb = win_commenti;
17126
- exports.ɵbc = win_info_doc;
17127
- exports.ɵbd = win_log;
17128
- exports.ɵbe = win_recupera_doc;
17129
- exports.ɵbf = win_riassegna_select_level;
17130
- exports.ɵbg = win_riassegna_select_user;
17131
- exports.ɵbh = win_sostituisci_utente;
17132
- exports.ɵbi = win_commento_sel_notif;
17133
- exports.ɵbj = win_manage_values;
17134
- exports.ɵbk = win_manage_roles;
17135
- exports.ɵbl = FHComboboxComponentFilter;
17136
- exports.ɵc = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9;
16932
+ exports.ɵba = win_commenti;
16933
+ exports.ɵbb = win_info_doc;
16934
+ exports.ɵbc = win_log;
16935
+ exports.ɵbd = win_recupera_doc;
16936
+ exports.ɵbe = win_riassegna_select_level;
16937
+ exports.ɵbf = win_riassegna_select_user;
16938
+ exports.ɵbg = win_sostituisci_utente;
16939
+ exports.ɵbh = win_commento_sel_notif;
16940
+ exports.ɵbi = win_manage_values;
16941
+ exports.ɵbj = win_manage_roles;
16942
+ exports.ɵbk = FHComboboxComponentFilter;
16943
+ exports.ɵc = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8;
17137
16944
  exports.ɵd = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4;
17138
16945
  exports.ɵe = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3;
17139
- exports.ɵf = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7;
17140
- exports.ɵg = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5;
17141
- exports.ɵh = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC;
17142
- exports.ɵi = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT;
17143
- exports.ɵj = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2;
17144
- exports.ɵk = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8;
17145
- exports.ɵl = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6;
17146
- exports.ɵm = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a;
17147
- exports.ɵn = FHHelpButton;
17148
- exports.ɵo = SafePipe;
17149
- exports.ɵp = DecimalMask;
17150
- exports.ɵq = MOMENT_DATE_FORMATS;
17151
- exports.ɵr = MomentDateAdapter;
17152
- exports.ɵs = win_grid_help;
17153
- exports.ɵt = HighlightService;
17154
- exports.ɵu = FHViewerComponent;
17155
- exports.ɵw = FHGridToolBarComponent;
17156
- exports.ɵx = win_assegna;
17157
- exports.ɵy = win_conferma;
17158
- exports.ɵz = win_select_canale;
16946
+ exports.ɵf = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5;
16947
+ exports.ɵg = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC;
16948
+ exports.ɵh = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT;
16949
+ exports.ɵi = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2;
16950
+ exports.ɵj = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7;
16951
+ exports.ɵk = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6;
16952
+ exports.ɵl = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9;
16953
+ exports.ɵm = FHHelpButton;
16954
+ exports.ɵn = SafePipe;
16955
+ exports.ɵo = DecimalMask;
16956
+ exports.ɵp = MOMENT_DATE_FORMATS;
16957
+ exports.ɵq = MomentDateAdapter;
16958
+ exports.ɵr = win_grid_help;
16959
+ exports.ɵs = HighlightService;
16960
+ exports.ɵt = FHViewerComponent;
16961
+ exports.ɵv = FHGridToolBarComponent;
16962
+ exports.ɵw = win_assegna;
16963
+ exports.ɵx = win_conferma;
16964
+ exports.ɵy = win_select_canale;
16965
+ exports.ɵz = win_select_level;
17159
16966
 
17160
16967
  Object.defineProperty(exports, '__esModule', { value: true });
17161
16968