@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.
@@ -8796,192 +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.getStyle_color = function () {
8831
- return this.m_color;
8832
- };
8833
- FHCurrencyFieldComponent.prototype.getStyle_mw = function () {
8834
- return this.label_width;
8835
- };
8836
- FHCurrencyFieldComponent.prototype.set_color = function (color) {
8837
- this.m_color = color;
8838
- };
8839
- FHCurrencyFieldComponent.prototype.chg = function () {
8840
- var _this = this;
8841
- setTimeout(function () {
8842
- if (_this.decimal == 0)
8843
- _this.value = parseFloat(_this.formattedAmount.split(".").join("").split(",").join(""));
8844
- else
8845
- _this.value = parseFloat(_this.formattedAmount.split(".").join("").split(",").join("."));
8846
- if (typeof _this.value == "string") {
8847
- if (_this.decimal == 0)
8848
- _this.value = parseFloat(_this.value.split(".").join("").split(",").join(""));
8849
- else
8850
- _this.value = parseFloat(_this.value.split(".").join("").split(",").join("."));
8851
- }
8852
- // console.log("this.value ", this.value);
8853
- _this.onChange(_this.value);
8854
- }, 0);
8855
- };
8856
- FHCurrencyFieldComponent.prototype.writeValue = function (value) {
8857
- // console.log('inif ',parseFloat(value), value,this.innerValue);
8858
- if (value == null)
8859
- value = 0;
8860
- if (parseFloat(value) !== this.innerValue) {
8861
- // console.log('typeof value ',typeof value);
8862
- if (typeof value == "string")
8863
- if (this.decimal == 0 || value.indexOf(',') != -1) {
8864
- if (this.decimal == 0)
8865
- value = parseFloat(value.split(".").join("").split(",").join(""));
8866
- else
8867
- value = parseFloat(value.split(".").join("").split(",").join("."));
8868
- }
8869
- this.innerValue = value;
8870
- this.value = value;
8871
- // console.log('writeValue ini ',this.value, this.formattedAmount);
8872
- this.formattedAmount = this.transform(this.value, this.decimal);
8873
- // console.log('writeValue fin ',this.value, this.formattedAmount);
8874
- }
8875
- // this.onChange(this.value);
8876
- };
8877
- FHCurrencyFieldComponent.prototype.registerOnChange = function (fn) {
8878
- this.onChange = fn;
8879
- };
8880
- FHCurrencyFieldComponent.prototype.registerOnTouched = function (fn) {
8881
- this.onTouched = fn;
8882
- };
8883
- FHCurrencyFieldComponent.prototype.transformAmount = function (element) {
8884
- var _this = this;
8885
- try {
8886
- // if (typeof (element.target.value) !== 'number')
8887
- // this.formattedAmount = this.currencyPipe.transform(this.value);
8888
- setTimeout(function () {
8889
- //if(this.decimal==0)
8890
- // this.value = parseFloat(this.formattedAmount.split('.').join('').split(',').join(''));
8891
- // else
8892
- // this.value = parseFloat(this.formattedAmount.split('.').join('').split(',').join('.'));
8893
- // this.writeValue(this.value);
8894
- // console.log('transformAmount ini ',this.value, this.formattedAmount);
8895
- _this.formattedAmount = _this.transform(_this.value, _this.decimal);
8896
- // console.log('transformAmount fin ',this.value, this.formattedAmount);
8897
- }, 0);
8898
- // Remove or comment this line if you dont want
8899
- // to show the formatted amount in the textbox.
8900
- // element.target.value = this.formattedAmount;
8901
- }
8902
- catch (e) {
8903
- // console.log(e);
8904
- }
8905
- };
8906
- FHCurrencyFieldComponent.prototype.transform = function (value, fractionSize) {
8907
- if (fractionSize === void 0) { fractionSize = 2; }
8908
- // console.log('trasform ',value);
8909
- var _a = __read((value || "").toString().split("."), 2), integer = _a[0], _b = _a[1], fraction = _b === void 0 ? "" : _b;
8910
- // console.log('integer, fraction ',integer, fraction);
8911
- fraction =
8912
- fractionSize > 0
8913
- ? "," + (fraction + "000000").substring(0, fractionSize)
8914
- : "";
8915
- integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, ".");
8916
- if (integer == "")
8917
- integer = "0";
8918
- // console.log('trasform ',integer + fraction);
8919
- return integer + fraction;
8920
- };
8921
- FHCurrencyFieldComponent.prototype.focus_e = function ($event) {
8922
- try {
8923
- // this.value=this.value.split('.').join('');+
8924
- this.removeCurrencyPipeFormat($event);
8925
- this.setFocus();
8926
- this.focus.emit(this.value);
8927
- }
8928
- catch (e) {
8929
- // console.log(e);
8930
- }
8931
- };
8932
- FHCurrencyFieldComponent.prototype.setFocus = function () {
8933
- this.el.nativeElement.focus();
8934
- };
8935
- FHCurrencyFieldComponent.prototype.ngAfterViewInit = function () {
8936
- var _this = this;
8937
- setTimeout(function () {
8938
- if (_this.required)
8939
- _this.el.nativeElement.required = _this.required;
8940
- _this.el.nativeElement.disabled = !_this.enabled;
8941
- if (_this.value == null)
8942
- _this.value = 0;
8943
- _this.formattedAmount = _this.transform(_this.value, _this.decimal);
8944
- });
8945
- };
8946
- FHCurrencyFieldComponent.prototype.removeCurrencyPipeFormat = function (element) {
8947
- //console.log('removeCurrencyPipeFormat '+this.value);
8948
- try {
8949
- // this.value=this.value.split('.').join('');
8950
- this.formattedAmount = this.transform(this.value, this.decimal);
8951
- }
8952
- catch (e) {
8953
- // console.log(e);
8954
- }
8955
- };
8956
- return FHCurrencyFieldComponent;
8957
- }());
8958
- FHCurrencyFieldComponent.decorators = [
8959
- { type: i0.Component, args: [{
8960
- selector: "FHCurrencyField",
8961
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7],
8962
- 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)\"\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 ",
8963
- styles: [""]
8964
- },] }
8965
- ];
8966
- FHCurrencyFieldComponent.ctorParameters = function () { return []; };
8967
- FHCurrencyFieldComponent.propDecorators = {
8968
- el: [{ type: i0.ViewChild, args: ["el",] }],
8969
- decimal: [{ type: i0.Input }],
8970
- label: [{ type: i0.Input }],
8971
- required: [{ type: i0.Input }],
8972
- enabled: [{ type: i0.Input }],
8973
- hidden: [{ type: i0.Input }],
8974
- color: [{ type: i0.Input }],
8975
- label_width: [{ type: i0.Input }],
8976
- change: [{ type: i0.Output }],
8977
- focus: [{ type: i0.Output }],
8978
- focus_out: [{ type: i0.Output }],
8979
- enter_pressed: [{ type: i0.Output }],
8980
- value: [{ type: i0.Input }]
8981
- };
8982
-
8983
- var noop$7 = function () { };
8984
- var ɵ0$7 = noop$7;
8985
8799
  var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT = {
8986
8800
  provide: forms.NG_VALUE_ACCESSOR,
8987
8801
  useExisting: i0.forwardRef(function () { return FHRichText; }),
@@ -9127,8 +8941,8 @@
9127
8941
  valore: [{ type: i0.Input }]
9128
8942
  };
9129
8943
 
9130
- var noop$8 = function () { };
9131
- var ɵ0$8 = noop$8;
8944
+ var noop$7 = function () { };
8945
+ var ɵ0$7 = noop$7;
9132
8946
  var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC = {
9133
8947
  provide: forms.NG_VALUE_ACCESSOR,
9134
8948
  useExisting: i0.forwardRef(function () { return FHNumericFieldComponent; }),
@@ -9369,7 +9183,7 @@
9369
9183
  cmb_sel: [{ type: i0.ViewChild, args: ["cmb_sel",] }]
9370
9184
  };
9371
9185
 
9372
- var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 = {
9186
+ var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 = {
9373
9187
  provide: forms.NG_VALUE_ACCESSOR,
9374
9188
  useExisting: i0.forwardRef(function () { return FHUserFieldComponent; }),
9375
9189
  multi: true,
@@ -9583,7 +9397,7 @@
9583
9397
  FHUserFieldComponent.decorators = [
9584
9398
  { type: i0.Component, args: [{
9585
9399
  selector: "FHUserField",
9586
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8],
9400
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7],
9587
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 ",
9588
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 "]
9589
9403
  },] }
@@ -12929,7 +12743,7 @@
12929
12743
  { type: platformBrowser.DomSanitizer }
12930
12744
  ]; };
12931
12745
 
12932
- var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 = {
12746
+ var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 = {
12933
12747
  provide: forms.NG_VALUE_ACCESSOR,
12934
12748
  useExisting: i0.forwardRef(function () { return FHFieldPickListComponent; }),
12935
12749
  multi: true,
@@ -13001,7 +12815,7 @@
13001
12815
  }());
13002
12816
  FHFieldPickListComponent.decorators = [
13003
12817
  { type: i0.Component, args: [{
13004
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9],
12818
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8],
13005
12819
  selector: "FHFieldPickList",
13006
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 ",
13007
12821
  styles: [""]
@@ -13949,9 +13763,9 @@
13949
13763
  key: [{ type: i0.Input }]
13950
13764
  };
13951
13765
 
13952
- var noop$9 = function () { };
13953
- var ɵ0$9 = noop$9;
13954
- 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 = {
13955
13769
  provide: forms.NG_VALUE_ACCESSOR,
13956
13770
  useExisting: i0.forwardRef(function () { return FHCheckBox; }),
13957
13771
  multi: true,
@@ -14008,7 +13822,7 @@
14008
13822
  FHCheckBox.decorators = [
14009
13823
  { type: i0.Component, args: [{
14010
13824
  selector: "FHCheckBox",
14011
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a],
13825
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9],
14012
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 ",
14013
13827
  styles: [""]
14014
13828
  },] }
@@ -14148,7 +13962,6 @@
14148
13962
  FHMdReader,
14149
13963
  FHLogPanelComponent,
14150
13964
  fh_win_ask_big_test,
14151
- FHCurrencyFieldComponent,
14152
13965
  FHRichText,
14153
13966
  fh_win_output,
14154
13967
  FHNumericFieldComponent,
@@ -14211,7 +14024,6 @@
14211
14024
  FHMdReader,
14212
14025
  FHLogPanelComponent,
14213
14026
  fh_win_ask_big_test,
14214
- FHCurrencyFieldComponent,
14215
14027
  FHRichText,
14216
14028
  fh_win_output,
14217
14029
  FHNumericFieldComponent,
@@ -17045,7 +16857,6 @@
17045
16857
  exports.FHCheckBox = FHCheckBox;
17046
16858
  exports.FHComboboxComponent = FHComboboxComponent;
17047
16859
  exports.FHConfirmValues = FHConfirmValues;
17048
- exports.FHCurrencyFieldComponent = FHCurrencyFieldComponent;
17049
16860
  exports.FHCurrencyFormatterDirective = FHCurrencyFormatterDirective;
17050
16861
  exports.FHCurrencyPipe = FHCurrencyPipe;
17051
16862
  exports.FHDatePickerComponent = FHDatePickerComponent;
@@ -17118,41 +16929,40 @@
17118
16929
  exports.wkfapp = wkfapp;
17119
16930
  exports.ɵa = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR;
17120
16931
  exports.ɵb = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1;
17121
- exports.ɵba = win_select_level;
17122
- exports.ɵbb = win_commenti;
17123
- exports.ɵbc = win_info_doc;
17124
- exports.ɵbd = win_log;
17125
- exports.ɵbe = win_recupera_doc;
17126
- exports.ɵbf = win_riassegna_select_level;
17127
- exports.ɵbg = win_riassegna_select_user;
17128
- exports.ɵbh = win_sostituisci_utente;
17129
- exports.ɵbi = win_commento_sel_notif;
17130
- exports.ɵbj = win_manage_values;
17131
- exports.ɵbk = win_manage_roles;
17132
- exports.ɵbl = FHComboboxComponentFilter;
17133
- 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;
17134
16944
  exports.ɵd = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4;
17135
16945
  exports.ɵe = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3;
17136
- exports.ɵf = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7;
17137
- exports.ɵg = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5;
17138
- exports.ɵh = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC;
17139
- exports.ɵi = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT;
17140
- exports.ɵj = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2;
17141
- exports.ɵk = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8;
17142
- exports.ɵl = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6;
17143
- exports.ɵm = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a;
17144
- exports.ɵn = FHHelpButton;
17145
- exports.ɵo = SafePipe;
17146
- exports.ɵp = DecimalMask;
17147
- exports.ɵq = MOMENT_DATE_FORMATS;
17148
- exports.ɵr = MomentDateAdapter;
17149
- exports.ɵs = win_grid_help;
17150
- exports.ɵt = HighlightService;
17151
- exports.ɵu = FHViewerComponent;
17152
- exports.ɵw = FHGridToolBarComponent;
17153
- exports.ɵx = win_assegna;
17154
- exports.ɵy = win_conferma;
17155
- 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;
17156
16966
 
17157
16967
  Object.defineProperty(exports, '__esModule', { value: true });
17158
16968