@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.
@@ -3622,6 +3622,7 @@
3622
3622
  FHTimePickerComponent.prototype.sc = function () {
3623
3623
  var value = this.getValue();
3624
3624
  this.selchange.emit();
3625
+ console.log('sc ', value);
3625
3626
  this.ngChange.emit(value);
3626
3627
  this.onChange(value);
3627
3628
  };
@@ -8796,195 +8797,6 @@
8796
8797
 
8797
8798
  var noop$6 = function () { };
8798
8799
  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
8800
  var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT = {
8989
8801
  provide: forms.NG_VALUE_ACCESSOR,
8990
8802
  useExisting: i0.forwardRef(function () { return FHRichText; }),
@@ -9130,8 +8942,8 @@
9130
8942
  valore: [{ type: i0.Input }]
9131
8943
  };
9132
8944
 
9133
- var noop$8 = function () { };
9134
- var ɵ0$8 = noop$8;
8945
+ var noop$7 = function () { };
8946
+ var ɵ0$7 = noop$7;
9135
8947
  var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC = {
9136
8948
  provide: forms.NG_VALUE_ACCESSOR,
9137
8949
  useExisting: i0.forwardRef(function () { return FHNumericFieldComponent; }),
@@ -9372,7 +9184,7 @@
9372
9184
  cmb_sel: [{ type: i0.ViewChild, args: ["cmb_sel",] }]
9373
9185
  };
9374
9186
 
9375
- var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 = {
9187
+ var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 = {
9376
9188
  provide: forms.NG_VALUE_ACCESSOR,
9377
9189
  useExisting: i0.forwardRef(function () { return FHUserFieldComponent; }),
9378
9190
  multi: true,
@@ -9586,7 +9398,7 @@
9586
9398
  FHUserFieldComponent.decorators = [
9587
9399
  { type: i0.Component, args: [{
9588
9400
  selector: "FHUserField",
9589
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8],
9401
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7],
9590
9402
  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
9403
  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
9404
  },] }
@@ -12932,7 +12744,7 @@
12932
12744
  { type: platformBrowser.DomSanitizer }
12933
12745
  ]; };
12934
12746
 
12935
- var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 = {
12747
+ var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 = {
12936
12748
  provide: forms.NG_VALUE_ACCESSOR,
12937
12749
  useExisting: i0.forwardRef(function () { return FHFieldPickListComponent; }),
12938
12750
  multi: true,
@@ -13004,7 +12816,7 @@
13004
12816
  }());
13005
12817
  FHFieldPickListComponent.decorators = [
13006
12818
  { type: i0.Component, args: [{
13007
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9],
12819
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8],
13008
12820
  selector: "FHFieldPickList",
13009
12821
  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
12822
  styles: [""]
@@ -13952,9 +13764,9 @@
13952
13764
  key: [{ type: i0.Input }]
13953
13765
  };
13954
13766
 
13955
- var noop$9 = function () { };
13956
- var ɵ0$9 = noop$9;
13957
- var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a = {
13767
+ var noop$8 = function () { };
13768
+ var ɵ0$8 = noop$8;
13769
+ var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 = {
13958
13770
  provide: forms.NG_VALUE_ACCESSOR,
13959
13771
  useExisting: i0.forwardRef(function () { return FHCheckBox; }),
13960
13772
  multi: true,
@@ -14011,7 +13823,7 @@
14011
13823
  FHCheckBox.decorators = [
14012
13824
  { type: i0.Component, args: [{
14013
13825
  selector: "FHCheckBox",
14014
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a],
13826
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9],
14015
13827
  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
13828
  styles: [""]
14017
13829
  },] }
@@ -14151,7 +13963,6 @@
14151
13963
  FHMdReader,
14152
13964
  FHLogPanelComponent,
14153
13965
  fh_win_ask_big_test,
14154
- FHCurrencyFieldComponent,
14155
13966
  FHRichText,
14156
13967
  fh_win_output,
14157
13968
  FHNumericFieldComponent,
@@ -14214,7 +14025,6 @@
14214
14025
  FHMdReader,
14215
14026
  FHLogPanelComponent,
14216
14027
  fh_win_ask_big_test,
14217
- FHCurrencyFieldComponent,
14218
14028
  FHRichText,
14219
14029
  fh_win_output,
14220
14030
  FHNumericFieldComponent,
@@ -17048,7 +16858,6 @@
17048
16858
  exports.FHCheckBox = FHCheckBox;
17049
16859
  exports.FHComboboxComponent = FHComboboxComponent;
17050
16860
  exports.FHConfirmValues = FHConfirmValues;
17051
- exports.FHCurrencyFieldComponent = FHCurrencyFieldComponent;
17052
16861
  exports.FHCurrencyFormatterDirective = FHCurrencyFormatterDirective;
17053
16862
  exports.FHCurrencyPipe = FHCurrencyPipe;
17054
16863
  exports.FHDatePickerComponent = FHDatePickerComponent;
@@ -17121,41 +16930,40 @@
17121
16930
  exports.wkfapp = wkfapp;
17122
16931
  exports.ɵa = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR;
17123
16932
  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;
16933
+ exports.ɵba = win_commenti;
16934
+ exports.ɵbb = win_info_doc;
16935
+ exports.ɵbc = win_log;
16936
+ exports.ɵbd = win_recupera_doc;
16937
+ exports.ɵbe = win_riassegna_select_level;
16938
+ exports.ɵbf = win_riassegna_select_user;
16939
+ exports.ɵbg = win_sostituisci_utente;
16940
+ exports.ɵbh = win_commento_sel_notif;
16941
+ exports.ɵbi = win_manage_values;
16942
+ exports.ɵbj = win_manage_roles;
16943
+ exports.ɵbk = FHComboboxComponentFilter;
16944
+ exports.ɵc = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8;
17137
16945
  exports.ɵd = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4;
17138
16946
  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;
16947
+ exports.ɵf = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5;
16948
+ exports.ɵg = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC;
16949
+ exports.ɵh = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT;
16950
+ exports.ɵi = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2;
16951
+ exports.ɵj = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7;
16952
+ exports.ɵk = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6;
16953
+ exports.ɵl = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9;
16954
+ exports.ɵm = FHHelpButton;
16955
+ exports.ɵn = SafePipe;
16956
+ exports.ɵo = DecimalMask;
16957
+ exports.ɵp = MOMENT_DATE_FORMATS;
16958
+ exports.ɵq = MomentDateAdapter;
16959
+ exports.ɵr = win_grid_help;
16960
+ exports.ɵs = HighlightService;
16961
+ exports.ɵt = FHViewerComponent;
16962
+ exports.ɵv = FHGridToolBarComponent;
16963
+ exports.ɵw = win_assegna;
16964
+ exports.ɵx = win_conferma;
16965
+ exports.ɵy = win_select_canale;
16966
+ exports.ɵz = win_select_level;
17159
16967
 
17160
16968
  Object.defineProperty(exports, '__esModule', { value: true });
17161
16969