@acorex/components 16.18.10 → 16.18.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -52,7 +52,6 @@ export class AXSelectionListComponent extends AXValidatableComponent {
52
52
  if (!this.disabled) {
53
53
  if (this.mode === 'single') {
54
54
  this.selectedValues = [value[this.valueField]];
55
- this.selectedItemsChange.emit(this.selectedItems);
56
55
  }
57
56
  else {
58
57
  if (checked) {
@@ -62,18 +61,18 @@ export class AXSelectionListComponent extends AXValidatableComponent {
62
61
  ...[value[this.valueField]],
63
62
  ];
64
63
  }
65
- this.selectedItemsChange.emit(this.selectedItems);
66
64
  }
67
65
  else {
68
66
  this.selectedValues = this.selectedValues.filter((c) => c !== value[this.valueField]);
69
- this.selectedItemsChange.emit(this.selectedItems);
70
67
  }
71
68
  }
69
+ this.selectedItemsChange.emit(this.selectedItems);
72
70
  }
73
71
  }
74
72
  focus() { }
75
73
  onvalueChanged(e) {
76
74
  if (!this.disabled) {
75
+ this.selectedItems = [e];
77
76
  this.selectedItemsChange.emit([e]);
78
77
  }
79
78
  }
@@ -118,4 +117,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImpor
118
117
  }], selectedValues: [{
119
118
  type: Input
120
119
  }] } });
121
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0aW9uLWxpc3QuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3NyYy9saWIvc2VsZWN0aW9uLWxpc3Qvc2VsZWN0aW9uLWxpc3QuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3NyYy9saWIvc2VsZWN0aW9uLWxpc3Qvc2VsZWN0aW9uLWxpc3QuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUNM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m9uQ2hlY2tWYWx1ZUNoYW5nZShpdGVtW3ZhbHVlRmllbGRdLCB0cnVlKVwiXG4gICAgICAgIFt2YWx1ZV09XCJpdGVtW3ZhbHVlRmllbGRdXCJcbiAgICAgICAgW2NoZWNrZWRdPVwic2VsZWN0ZWRWYWx1ZXMgPT0gaXRlbVt2YWx1ZUZpZWxkXVwiXG4gICAgICAgIFtuYW1lXT1cInVpZFwiXG4gICAgICAgIFtkaXNhYmxlZF09XCJpdGVtLmRpc2FibGUgfHwgZGlzYWJsZWRcIlxuICAgICAgICBbcmVhZG9ubHldPVwiaXRlbS5yZWFkb25seSB8fCByZWFkb25seVwiXG4gICAgICAvPlxuICAgICAgPHNwYW4gY2xhc3M9XCJjaGVja21hcmtcIj48L3NwYW4+XG4gICAgPC9sYWJlbD5cbiAgPC9kaXY+XG48L25nLXRlbXBsYXRlPlxuIl19
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { ElementRef, Component, Inject, Optional, Input, Injectable, EventEmitter, Output, Directive, ViewChild, ContentChild, TemplateRef, ViewEncapsulation, HostListener, NgModule, ChangeDetectionStrategy, Attribute, ContentChildren, ViewChildren, NO_ERRORS_SCHEMA, ViewContainerRef, HostBinding } from '@angular/core';
2
+ import { ElementRef, Component, Inject, Optional, Input, Injectable, EventEmitter, Output, Directive, ViewChild, ContentChild, TemplateRef, ViewEncapsulation, HostListener, NgModule, ChangeDetectionStrategy, Attribute, ContentChildren, ViewChildren, NO_ERRORS_SCHEMA, ViewContainerRef, HostBinding, input } from '@angular/core';
3
3
  import * as i1$2 from '@acorex/core';
4
4
  import { AXTranslator, AXHtmlUtil, AXConfig, AXDateTime, AXDateTimeRange, AXCoreModule, AXTranslatorModule, AXObjectUtil, AXScrollModule, setPropByPath, AXColorUtil } from '@acorex/core';
5
5
  import * as i1 from '@angular/cdk/overlay';
@@ -3757,7 +3757,6 @@ class AXSelectionListComponent extends AXValidatableComponent {
3757
3757
  if (!this.disabled) {
3758
3758
  if (this.mode === 'single') {
3759
3759
  this.selectedValues = [value[this.valueField]];
3760
- this.selectedItemsChange.emit(this.selectedItems);
3761
3760
  }
3762
3761
  else {
3763
3762
  if (checked) {
@@ -3767,18 +3766,18 @@ class AXSelectionListComponent extends AXValidatableComponent {
3767
3766
  ...[value[this.valueField]],
3768
3767
  ];
3769
3768
  }
3770
- this.selectedItemsChange.emit(this.selectedItems);
3771
3769
  }
3772
3770
  else {
3773
3771
  this.selectedValues = this.selectedValues.filter((c) => c !== value[this.valueField]);
3774
- this.selectedItemsChange.emit(this.selectedItems);
3775
3772
  }
3776
3773
  }
3774
+ this.selectedItemsChange.emit(this.selectedItems);
3777
3775
  }
3778
3776
  }
3779
3777
  focus() { }
3780
3778
  onvalueChanged(e) {
3781
3779
  if (!this.disabled) {
3780
+ this.selectedItems = [e];
3782
3781
  this.selectedItemsChange.emit([e]);
3783
3782
  }
3784
3783
  }
@@ -7585,7 +7584,7 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
7585
7584
  cdr;
7586
7585
  min = null;
7587
7586
  max = null;
7588
- showSeparator = false;
7587
+ showSeparator = input(false);
7589
7588
  showCurrency = false;
7590
7589
  showCounter = true;
7591
7590
  scrollWeel = true;
@@ -7615,7 +7614,9 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
7615
7614
  this._values = '-';
7616
7615
  }
7617
7616
  else {
7618
- if (v === '' || v == null || v === undefined ? true : isNaN(Number(v.toString().replace(/,/g, ''))) === false) {
7617
+ if (v === '' || v == null || v === undefined
7618
+ ? true
7619
+ : isNaN(Number(v.toString().replace(/,/g, ''))) === false) {
7619
7620
  if (v === '' || v == null || v === undefined) {
7620
7621
  this.textValue = '';
7621
7622
  const old = this._values;
@@ -7626,7 +7627,7 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
7626
7627
  isUserChange: this.userEdite,
7627
7628
  component: this,
7628
7629
  value: null,
7629
- oldValue: this.showSeparator && old
7630
+ oldValue: this.showSeparator() && old
7630
7631
  ? old === '-'
7631
7632
  ? null
7632
7633
  : Number(old.replace(/,/g, ''))
@@ -7635,7 +7636,7 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
7635
7636
  : old === '-'
7636
7637
  ? null
7637
7638
  : Number(old),
7638
- htmlElement: this.ref.nativeElement
7639
+ htmlElement: this.ref.nativeElement,
7639
7640
  });
7640
7641
  this.userEdite = false;
7641
7642
  this.cdr.detectChanges();
@@ -7645,7 +7646,8 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
7645
7646
  else {
7646
7647
  v = v.toString();
7647
7648
  // this.addCommas(v.toString());
7648
- this.textValue = this.showSeparator && v ? this.addCommas(v.toString()) : v;
7649
+ this.textValue =
7650
+ this.showSeparator() && v ? this.addCommas(v.toString()) : v;
7649
7651
  // if (this.textValue.indexOf('.') !== -1) {
7650
7652
  // // const dottt= (this.textValue.length-1) - this.textValue.indexOf('.')
7651
7653
  // if (this.textValue.length - 1 - this.textValue.indexOf('.') < this.decimalNumber) {
@@ -7668,12 +7670,16 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
7668
7670
  if (v !== this._values) {
7669
7671
  const old = this._values;
7670
7672
  this._values = v;
7671
- this.valueChange.emit(this.showSeparator && v ? Number(v.replace(/,/g, '')) : Number(v));
7673
+ this.valueChange.emit(this.showSeparator() && v
7674
+ ? Number(v.replace(/,/g, ''))
7675
+ : Number(v));
7672
7676
  this.onValueChanged.emit({
7673
7677
  isUserChange: this.userEdite,
7674
7678
  component: this,
7675
- value: this.showSeparator && v ? Number(v.replace(/,/g, '')) : Number(v),
7676
- oldValue: this.showSeparator && old
7679
+ value: this.showSeparator() && v
7680
+ ? Number(v.replace(/,/g, ''))
7681
+ : Number(v),
7682
+ oldValue: this.showSeparator() && old
7677
7683
  ? old === '-'
7678
7684
  ? null
7679
7685
  : Number(old.replace(/,/g, ''))
@@ -7682,7 +7688,7 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
7682
7688
  : old === '-'
7683
7689
  ? null
7684
7690
  : Number(old),
7685
- htmlElement: this.ref.nativeElement
7691
+ htmlElement: this.ref.nativeElement,
7686
7692
  });
7687
7693
  this.userEdite = false;
7688
7694
  this.cdr.detectChanges();
@@ -7701,7 +7707,7 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
7701
7707
  isUserChange: this.userEdite,
7702
7708
  component: this,
7703
7709
  value: null,
7704
- oldValue: this.showSeparator && old
7710
+ oldValue: this.showSeparator() && old
7705
7711
  ? old === '-'
7706
7712
  ? null
7707
7713
  : Number(old.replace(/,/g, ''))
@@ -7710,7 +7716,7 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
7710
7716
  : old === '-'
7711
7717
  ? null
7712
7718
  : Number(old),
7713
- htmlElement: this.ref.nativeElement
7719
+ htmlElement: this.ref.nativeElement,
7714
7720
  });
7715
7721
  this.userEdite = false;
7716
7722
  this.cdr.detectChanges();
@@ -7725,7 +7731,7 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
7725
7731
  this.textAlign = 'left';
7726
7732
  }
7727
7733
  calcSeparator(num) {
7728
- if (this.showSeparator) {
7734
+ if (this.showSeparator()) {
7729
7735
  return num + +(num / 3);
7730
7736
  }
7731
7737
  else {
@@ -7794,7 +7800,8 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
7794
7800
  this.findMinus = false;
7795
7801
  }
7796
7802
  // get cursur position when key press
7797
- if (this.input.nativeElement.selectionStart || this.input.nativeElement.selectionStart === 0) {
7803
+ if (this.input.nativeElement.selectionStart ||
7804
+ this.input.nativeElement.selectionStart === 0) {
7798
7805
  this.cursorPosition = this.input.nativeElement.selectionStart;
7799
7806
  this.cursorPosition += 1;
7800
7807
  }
@@ -7823,7 +7830,9 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
7823
7830
  if (this.value && this.value.toString().match(/\./g)) {
7824
7831
  const figureAfterDot = this.value.length - this.value.indexOf('.');
7825
7832
  const dotIndex = this.value.indexOf('.');
7826
- if (dotIndex - 1 + dotIndex + figureAfterDot > dotIndex - 1 + dotIndex + this.decimalNumber && this.cursorPosition - 1 > dotIndex) {
7833
+ if (dotIndex - 1 + dotIndex + figureAfterDot >
7834
+ dotIndex - 1 + dotIndex + this.decimalNumber &&
7835
+ this.cursorPosition - 1 > dotIndex) {
7827
7836
  event.preventDefault();
7828
7837
  }
7829
7838
  }
@@ -7859,7 +7868,8 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
7859
7868
  }
7860
7869
  // left & right Button
7861
7870
  if (event.key === 'ArrowLeft' || event.key === 'ArrowRight') {
7862
- if (this.input.nativeElement.selectionStart || this.input.nativeElement.selectionStart === 0) {
7871
+ if (this.input.nativeElement.selectionStart ||
7872
+ this.input.nativeElement.selectionStart === 0) {
7863
7873
  this.cursorPosition = this.input.nativeElement.selectionStart;
7864
7874
  }
7865
7875
  }
@@ -7891,9 +7901,13 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
7891
7901
  }
7892
7902
  if (this.readonly === false) {
7893
7903
  const countAfterDot = this.value !== null && this.value !== '' && this.value !== undefined
7894
- ? this.value.toString().length - 1 - this.value.toString().indexOf('.')
7904
+ ? this.value.toString().length -
7905
+ 1 -
7906
+ this.value.toString().indexOf('.')
7895
7907
  : 0;
7896
- const defaultStep = countAfterDot > this.decimalNumber ? Math.pow(this.decimalConstant, this.decimalNumber) : Math.pow(this.decimalConstant, countAfterDot);
7908
+ const defaultStep = countAfterDot > this.decimalNumber
7909
+ ? Math.pow(this.decimalConstant, this.decimalNumber)
7910
+ : Math.pow(this.decimalConstant, countAfterDot);
7897
7911
  // step and +- with up key and down key
7898
7912
  if (this.value && this.value.toString().match(/\./g)) {
7899
7913
  this.dotPosition = this.value.indexOf('.');
@@ -7903,14 +7917,18 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
7903
7917
  this.count = this.tmp - +this.intStep;
7904
7918
  if (this.min === null || Number(this.count) >= Number(this.min)) {
7905
7919
  // this.value = this.count.toFixed(this.decimalNumber);
7906
- this.value = this.count.toFixed(countAfterDot > this.decimalNumber ? this.decimalNumber : countAfterDot);
7920
+ this.value = this.count.toFixed(countAfterDot > this.decimalNumber
7921
+ ? this.decimalNumber
7922
+ : countAfterDot);
7907
7923
  }
7908
7924
  }
7909
7925
  if (event.key === 'ArrowUp') {
7910
7926
  this.tmp = parseFloat(this.value.replace(/,/g, ''));
7911
7927
  this.count = this.tmp + +this.intStep;
7912
7928
  if (this.max === null || Number(this.count) <= Number(this.max)) {
7913
- this.value = this.count.toFixed(countAfterDot > this.decimalNumber ? this.decimalNumber : countAfterDot);
7929
+ this.value = this.count.toFixed(countAfterDot > this.decimalNumber
7930
+ ? this.decimalNumber
7931
+ : countAfterDot);
7914
7932
  }
7915
7933
  }
7916
7934
  }
@@ -7920,16 +7938,26 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
7920
7938
  if (this.customStep !== null) {
7921
7939
  this.tmp = parseFloat(this.value.replace(/,/g, ''));
7922
7940
  this.lastStep =
7923
- parseFloat(defaultStep.toFixed(countAfterDot > this.decimalNumber ? this.decimalNumber : countAfterDot)) +
7924
- parseFloat(this.customStep.toFixed(countAfterDot > this.decimalNumber ? this.decimalNumber : countAfterDot)) -
7925
- parseFloat(defaultStep.toFixed(countAfterDot > this.decimalNumber ? this.decimalNumber : countAfterDot));
7941
+ parseFloat(defaultStep.toFixed(countAfterDot > this.decimalNumber
7942
+ ? this.decimalNumber
7943
+ : countAfterDot)) +
7944
+ parseFloat(this.customStep.toFixed(countAfterDot > this.decimalNumber
7945
+ ? this.decimalNumber
7946
+ : countAfterDot)) -
7947
+ parseFloat(defaultStep.toFixed(countAfterDot > this.decimalNumber
7948
+ ? this.decimalNumber
7949
+ : countAfterDot));
7926
7950
  this.count = parseFloat(this.tmp) - this.lastStep;
7927
- this.value = this.count.toFixed(countAfterDot > this.decimalNumber ? this.decimalNumber : countAfterDot);
7951
+ this.value = this.count.toFixed(countAfterDot > this.decimalNumber
7952
+ ? this.decimalNumber
7953
+ : countAfterDot);
7928
7954
  }
7929
7955
  else {
7930
7956
  this.tmp = parseFloat(this.value.replace(/,/g, ''));
7931
7957
  this.count = parseFloat(this.tmp) - defaultStep;
7932
- this.value = this.count.toFixed(countAfterDot > this.decimalNumber ? this.decimalNumber : countAfterDot);
7958
+ this.value = this.count.toFixed(countAfterDot > this.decimalNumber
7959
+ ? this.decimalNumber
7960
+ : countAfterDot);
7933
7961
  }
7934
7962
  }
7935
7963
  }
@@ -7938,16 +7966,26 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
7938
7966
  if (this.customStep !== null) {
7939
7967
  this.tmp = parseFloat(this.value.replace(/,/g, ''));
7940
7968
  this.lastStep =
7941
- parseFloat(defaultStep.toFixed(countAfterDot > this.decimalNumber ? this.decimalNumber : countAfterDot)) +
7942
- parseFloat(this.customStep.toFixed(countAfterDot > this.decimalNumber ? this.decimalNumber : countAfterDot)) -
7943
- parseFloat(defaultStep.toFixed(countAfterDot > this.decimalNumber ? this.decimalNumber : countAfterDot));
7969
+ parseFloat(defaultStep.toFixed(countAfterDot > this.decimalNumber
7970
+ ? this.decimalNumber
7971
+ : countAfterDot)) +
7972
+ parseFloat(this.customStep.toFixed(countAfterDot > this.decimalNumber
7973
+ ? this.decimalNumber
7974
+ : countAfterDot)) -
7975
+ parseFloat(defaultStep.toFixed(countAfterDot > this.decimalNumber
7976
+ ? this.decimalNumber
7977
+ : countAfterDot));
7944
7978
  this.count = parseFloat(this.tmp) + this.lastStep;
7945
- this.value = this.count.toFixed(countAfterDot > this.decimalNumber ? this.decimalNumber : countAfterDot);
7979
+ this.value = this.count.toFixed(countAfterDot > this.decimalNumber
7980
+ ? this.decimalNumber
7981
+ : countAfterDot);
7946
7982
  }
7947
7983
  else {
7948
7984
  this.tmp = parseFloat(this.value.replace(/,/g, ''));
7949
7985
  this.count = parseFloat(this.tmp) + defaultStep;
7950
- this.value = this.count.toFixed(countAfterDot > this.decimalNumber ? this.decimalNumber : countAfterDot);
7986
+ this.value = this.count.toFixed(countAfterDot > this.decimalNumber
7987
+ ? this.decimalNumber
7988
+ : countAfterDot);
7951
7989
  }
7952
7990
  }
7953
7991
  }
@@ -7959,7 +7997,8 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
7959
7997
  this.value = this.min.toString();
7960
7998
  }
7961
7999
  else {
7962
- if (this.min === null || Number(this.value) > parseInt(this.min.toString())) {
8000
+ if (this.min === null ||
8001
+ Number(this.value) > parseInt(this.min.toString())) {
7963
8002
  if (this.value == null) {
7964
8003
  this.value = '0';
7965
8004
  }
@@ -7976,7 +8015,8 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
7976
8015
  this.value = this.min.toString();
7977
8016
  }
7978
8017
  else {
7979
- if (this.max === null || Number(this.value) < parseInt(this.max.toString())) {
8018
+ if (this.max === null ||
8019
+ Number(this.value) < parseInt(this.max.toString())) {
7980
8020
  if (this.value == null) {
7981
8021
  this.value = '0';
7982
8022
  }
@@ -7999,7 +8039,8 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
7999
8039
  }
8000
8040
  }
8001
8041
  handleClick() {
8002
- if (this.input.nativeElement.selectionStart || this.input.nativeElement.selectionStart === 0) {
8042
+ if (this.input.nativeElement.selectionStart ||
8043
+ this.input.nativeElement.selectionStart === 0) {
8003
8044
  this.cursorPosition = this.input.nativeElement.selectionStart;
8004
8045
  }
8005
8046
  }
@@ -8007,7 +8048,9 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
8007
8048
  Observable.create((observer) => {
8008
8049
  this.userQuestionUpdate = observer;
8009
8050
  });
8010
- this.userQuestionUpdate.pipe(debounceTime(1000), distinctUntilChanged()).subscribe((text) => this.checkMinMax(text));
8051
+ this.userQuestionUpdate
8052
+ .pipe(debounceTime(1000), distinctUntilChanged())
8053
+ .subscribe((text) => this.checkMinMax(text));
8011
8054
  // this.userQuestionUpdate.next((e.target as any).value);
8012
8055
  setTimeout(() => {
8013
8056
  this.userQuestionUpdate.next(this.input.nativeElement.value);
@@ -8063,20 +8106,26 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
8063
8106
  else {
8064
8107
  if (this.readonly === false) {
8065
8108
  const countAfterDot = this.value !== null && this.value !== '' && this.value !== undefined
8066
- ? this.value.toString().length - 1 - this.value.toString().indexOf('.')
8109
+ ? this.value.toString().length -
8110
+ 1 -
8111
+ this.value.toString().indexOf('.')
8067
8112
  : 0;
8068
8113
  if (this.value == null) {
8069
8114
  this.value = '0';
8070
8115
  }
8071
8116
  else {
8072
- const defaultStep = countAfterDot > this.decimalNumber ? Math.pow(this.decimalConstant, this.decimalNumber) : Math.pow(this.decimalConstant, countAfterDot);
8117
+ const defaultStep = countAfterDot > this.decimalNumber
8118
+ ? Math.pow(this.decimalConstant, this.decimalNumber)
8119
+ : Math.pow(this.decimalConstant, countAfterDot);
8073
8120
  this.dotPosition = this.value.toString().indexOf('.') + 1;
8074
8121
  if (this.value && this.value.toString().match(/\./g)) {
8075
8122
  if (this.dotPosition > this.cursorPosition) {
8076
8123
  this.tmp = parseFloat(this.value.replace(/,/g, ''));
8077
8124
  this.count = this.tmp + +this.intStep;
8078
8125
  if (this.max === null || Number(this.count) <= this.max) {
8079
- this.value = this.count.toFixed(countAfterDot > this.decimalNumber ? this.decimalNumber : countAfterDot);
8126
+ this.value = this.count.toFixed(countAfterDot > this.decimalNumber
8127
+ ? this.decimalNumber
8128
+ : countAfterDot);
8080
8129
  }
8081
8130
  }
8082
8131
  else {
@@ -8084,22 +8133,37 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
8084
8133
  if (this.customStep !== null) {
8085
8134
  this.tmp = parseFloat(this.value.replace(/,/g, ''));
8086
8135
  this.lastStep =
8087
- parseFloat(defaultStep.toFixed(countAfterDot > this.decimalNumber ? this.decimalNumber : countAfterDot)) +
8088
- parseFloat(this.customStep.toFixed(countAfterDot > this.decimalNumber ? this.decimalNumber : countAfterDot)) -
8089
- parseFloat(defaultStep.toFixed(countAfterDot > this.decimalNumber ? this.decimalNumber : countAfterDot));
8136
+ parseFloat(defaultStep.toFixed(countAfterDot > this.decimalNumber
8137
+ ? this.decimalNumber
8138
+ : countAfterDot)) +
8139
+ parseFloat(this.customStep.toFixed(countAfterDot > this.decimalNumber
8140
+ ? this.decimalNumber
8141
+ : countAfterDot)) -
8142
+ parseFloat(defaultStep.toFixed(countAfterDot > this.decimalNumber
8143
+ ? this.decimalNumber
8144
+ : countAfterDot));
8090
8145
  this.count = parseFloat(this.tmp) + this.lastStep;
8091
- this.value = this.count.toFixed(countAfterDot > this.decimalNumber ? this.decimalNumber : countAfterDot).replace(/,/g, '');
8146
+ this.value = this.count
8147
+ .toFixed(countAfterDot > this.decimalNumber
8148
+ ? this.decimalNumber
8149
+ : countAfterDot)
8150
+ .replace(/,/g, '');
8092
8151
  }
8093
8152
  else {
8094
8153
  this.tmp = parseFloat(this.value.replace(/,/g, ''));
8095
8154
  this.count = parseFloat(this.tmp) + defaultStep;
8096
- this.value = this.count.toFixed(countAfterDot > this.decimalNumber ? this.decimalNumber : countAfterDot).replace(/,/g, '');
8155
+ this.value = this.count
8156
+ .toFixed(countAfterDot > this.decimalNumber
8157
+ ? this.decimalNumber
8158
+ : countAfterDot)
8159
+ .replace(/,/g, '');
8097
8160
  }
8098
8161
  }
8099
8162
  }
8100
8163
  }
8101
8164
  else {
8102
- if (this.max === null || Number(this.value) < parseInt(this.max.toString())) {
8165
+ if (this.max === null ||
8166
+ Number(this.value) < parseInt(this.max.toString())) {
8103
8167
  this.tmp = this.value.toString().replace(/,/g, '');
8104
8168
  this.count = +this.tmp + +this.intStep;
8105
8169
  this.value = this.count.toString().replace(/,/g, '');
@@ -8117,20 +8181,29 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
8117
8181
  else {
8118
8182
  if (this.readonly === false) {
8119
8183
  const countAfterDot = this.value !== null && this.value !== '' && this.value !== undefined
8120
- ? this.value.toString().length - 1 - this.value.toString().indexOf('.')
8184
+ ? this.value.toString().length -
8185
+ 1 -
8186
+ this.value.toString().indexOf('.')
8121
8187
  : 0;
8122
8188
  if (this.value == null) {
8123
8189
  this.value = '0';
8124
8190
  }
8125
8191
  else {
8126
- const defaultStep = countAfterDot > this.decimalNumber ? Math.pow(this.decimalConstant, this.decimalNumber) : Math.pow(this.decimalConstant, countAfterDot);
8192
+ const defaultStep = countAfterDot > this.decimalNumber
8193
+ ? Math.pow(this.decimalConstant, this.decimalNumber)
8194
+ : Math.pow(this.decimalConstant, countAfterDot);
8127
8195
  this.dotPosition = this.value.toString().indexOf('.') + 1;
8128
8196
  if (this.value && this.value.toString().match(/\./g)) {
8129
8197
  if (this.dotPosition > this.cursorPosition) {
8130
8198
  this.tmp = parseFloat(this.value.replace(/,/g, ''));
8131
- this.count = parseFloat(this.value.replace(/,/g, '')) - +this.intStep;
8199
+ this.count =
8200
+ parseFloat(this.value.replace(/,/g, '')) - +this.intStep;
8132
8201
  if (this.min === null || Number(this.count) >= this.min) {
8133
- this.value = this.count.toFixed(countAfterDot > this.decimalNumber ? this.decimalNumber : countAfterDot).replace(/,/g, '');
8202
+ this.value = this.count
8203
+ .toFixed(countAfterDot > this.decimalNumber
8204
+ ? this.decimalNumber
8205
+ : countAfterDot)
8206
+ .replace(/,/g, '');
8134
8207
  }
8135
8208
  }
8136
8209
  else {
@@ -8138,22 +8211,33 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
8138
8211
  if (this.customStep !== null) {
8139
8212
  this.tmp = parseFloat(this.value.replace(/,/g, ''));
8140
8213
  this.lastStep =
8141
- parseFloat(defaultStep.toFixed(countAfterDot > this.decimalNumber ? this.decimalNumber : countAfterDot)) +
8142
- parseFloat(this.customStep.toFixed(countAfterDot > this.decimalNumber ? this.decimalNumber : countAfterDot)) -
8143
- parseFloat(defaultStep.toFixed(countAfterDot > this.decimalNumber ? this.decimalNumber : countAfterDot));
8214
+ parseFloat(defaultStep.toFixed(countAfterDot > this.decimalNumber
8215
+ ? this.decimalNumber
8216
+ : countAfterDot)) +
8217
+ parseFloat(this.customStep.toFixed(countAfterDot > this.decimalNumber
8218
+ ? this.decimalNumber
8219
+ : countAfterDot)) -
8220
+ parseFloat(defaultStep.toFixed(countAfterDot > this.decimalNumber
8221
+ ? this.decimalNumber
8222
+ : countAfterDot));
8144
8223
  this.count = parseFloat(this.tmp) - this.lastStep;
8145
- this.value = this.count.toFixed(countAfterDot > this.decimalNumber ? this.decimalNumber : countAfterDot);
8224
+ this.value = this.count.toFixed(countAfterDot > this.decimalNumber
8225
+ ? this.decimalNumber
8226
+ : countAfterDot);
8146
8227
  }
8147
8228
  else {
8148
8229
  this.tmp = parseFloat(this.value.replace(/,/g, ''));
8149
8230
  this.count = parseFloat(this.tmp) - defaultStep;
8150
- this.value = this.count.toFixed(countAfterDot > this.decimalNumber ? this.decimalNumber : countAfterDot);
8231
+ this.value = this.count.toFixed(countAfterDot > this.decimalNumber
8232
+ ? this.decimalNumber
8233
+ : countAfterDot);
8151
8234
  }
8152
8235
  }
8153
8236
  }
8154
8237
  }
8155
8238
  else {
8156
- if (this.min === null || Number(this.value) > parseInt(this.min.toString())) {
8239
+ if (this.min === null ||
8240
+ Number(this.value) > parseInt(this.min.toString())) {
8157
8241
  this.tmp = +this.value.toString().replace(/,/g, '');
8158
8242
  this.count = +this.tmp - +this.intStep;
8159
8243
  this.value = this.count.toString().replace(/,/g, '');
@@ -8168,21 +8252,23 @@ class AXNumberBoxComponent extends AXBaseTextComponent {
8168
8252
  this.onBlur.emit({
8169
8253
  component: this,
8170
8254
  htmlElement: this.ref.nativeElement,
8171
- htmlEvent: e
8255
+ htmlEvent: e,
8172
8256
  });
8173
8257
  }
8174
8258
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: AXNumberBoxComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
8175
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.7", type: AXNumberBoxComponent, selector: "ax-number-box", inputs: { min: "min", max: "max", showSeparator: "showSeparator", showCurrency: "showCurrency", showCounter: "showCounter", scrollWeel: "scrollWeel", showDoubleCounter: "showDoubleCounter", maxLength: "maxLength", intStep: "intStep", decimalNumber: "decimalNumber", customStep: "customStep" }, host: { styleAttribute: "width: 100%" }, providers: [{ provide: AXValidatableComponent, useExisting: AXNumberBoxComponent }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax form-item\" [class.disabled]=\"disabled\" [attr.id]=\"uid\" #fc>\n <div class=\"ax items-wrapper\">\n <ng-content select=\"[start]\">\n </ng-content>\n <ax-button icon=\"far fa-plus\" type=\"success blank\" (click)=\"upStepHandel()\" [disabled]=\"disabled\" *ngIf=\"showDoubleCounter\"></ax-button>\n </div>\n <div class=\"content\" #content>\n <div class=\"ax form-control input {{size}}\" [class.disabled]=\"disabled\" [class.readonly]=\"readonly\"\n [class.icon]=\"icon\">\n <input [autocomplete]=\"autocomplete\" [name]=\"name\" #input type=\"text\" class=\"ax {{size}}\" [maxlength]=\"calcSeparator(maxLength)\" [(ngModel)]=\"textValue\" placeholder=\"{{placeholder}}\"\n [readonly]=\"readonly\" [disabled]=\"disabled\" [ngClass]=\"setTextAlign()\"\n [class.clear]=\"value && allowClear\" (focus)=\"handleInputFocus($event)\" (blur)=\"handleInputBlur($event)\"\n (keypress)=\"handleKeyPress($event)\" (ngModelChange)=\"this.userQuestionUpdate.next($event)\"\n (keydown)=\"handleKeyDown($event)\" (click)=\"handleClick()\" (keyup)=\"handleKeyUp($event)\">\n <i class=\"{{icon}}\" *ngIf=\"icon\"></i>\n </div>\n </div>\n <div class=\"ax items-wrapper\">\n <ax-button *ngIf=\"value && allowClear\" [disabled]=\"disabled\" icon=\"far fa-times\" type=\"danger blank\"\n (click)=\"clear()\"></ax-button>\n <ax-button icon=\"far fa-minus\" type=\"danger blank\" (click)=\"downStepHandel()\" [disabled]=\"disabled\" *ngIf=\"showDoubleCounter\"></ax-button>\n <ng-content select=\"[end]\">\n </ng-content>\n <div class=\"arrow-number\" *ngIf=\"showCounter && !showDoubleCounter && !readonly\" >\n <ax-button type=\"light blank\" [disabled]=\"disabled\" icon=\"fas fa-angle-up\" [size]=\"size\"\n (mousedown)=\"upStepHandel()\" (mouseup)=\"delaySearch()\" [tabIndex]=\"-1\"></ax-button>\n <ax-button type=\"light blank\" [disabled]=\"disabled\" icon=\"fas fa-angle-down\" [size]=\"size\"\n (mousedown)=\"downStepHandel()\" (mouseup)=\"delaySearch()\" [tabIndex]=\"-1\"></ax-button>\n </div>\n </div>\n\n</div>\n", dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: AXButtonComponent, selector: "ax-button", inputs: ["type", "icon", "submitBehavior", "cancelBehavior", "block", "loading", "selected"] }, { kind: "directive", type: i2$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
8259
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.0.7", type: AXNumberBoxComponent, selector: "ax-number-box", inputs: { min: { classPropertyName: "min", publicName: "min", isSignal: false, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: false, isRequired: false, transformFunction: null }, showSeparator: { classPropertyName: "showSeparator", publicName: "showSeparator", isSignal: true, isRequired: false, transformFunction: null }, showCurrency: { classPropertyName: "showCurrency", publicName: "showCurrency", isSignal: false, isRequired: false, transformFunction: null }, showCounter: { classPropertyName: "showCounter", publicName: "showCounter", isSignal: false, isRequired: false, transformFunction: null }, scrollWeel: { classPropertyName: "scrollWeel", publicName: "scrollWeel", isSignal: false, isRequired: false, transformFunction: null }, showDoubleCounter: { classPropertyName: "showDoubleCounter", publicName: "showDoubleCounter", isSignal: false, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: false, isRequired: false, transformFunction: null }, intStep: { classPropertyName: "intStep", publicName: "intStep", isSignal: false, isRequired: false, transformFunction: null }, decimalNumber: { classPropertyName: "decimalNumber", publicName: "decimalNumber", isSignal: false, isRequired: false, transformFunction: null }, customStep: { classPropertyName: "customStep", publicName: "customStep", isSignal: false, isRequired: false, transformFunction: null } }, host: { styleAttribute: "width: 100%" }, providers: [
8260
+ { provide: AXValidatableComponent, useExisting: AXNumberBoxComponent },
8261
+ ], usesInheritance: true, ngImport: i0, template: "<div class=\"ax form-item\" [class.disabled]=\"disabled\" [attr.id]=\"uid\" #fc>\n <div class=\"ax items-wrapper\">\n <ng-content select=\"[start]\">\n </ng-content>\n <ax-button icon=\"far fa-plus\" type=\"success blank\" (click)=\"upStepHandel()\" [disabled]=\"disabled\" *ngIf=\"showDoubleCounter\"></ax-button>\n </div>\n <div class=\"content\" #content>\n <div class=\"ax form-control input {{size}}\" [class.disabled]=\"disabled\" [class.readonly]=\"readonly\"\n [class.icon]=\"icon\">\n <input [autocomplete]=\"autocomplete\" [name]=\"name\" #input type=\"text\" class=\"ax {{size}}\" [maxlength]=\"calcSeparator(maxLength)\" [(ngModel)]=\"textValue\" placeholder=\"{{placeholder}}\"\n [readonly]=\"readonly\" [disabled]=\"disabled\" [ngClass]=\"setTextAlign()\"\n [class.clear]=\"value && allowClear\" (focus)=\"handleInputFocus($event)\" (blur)=\"handleInputBlur($event)\"\n (keypress)=\"handleKeyPress($event)\" (ngModelChange)=\"this.userQuestionUpdate.next($event)\"\n (keydown)=\"handleKeyDown($event)\" (click)=\"handleClick()\" (keyup)=\"handleKeyUp($event)\">\n <i class=\"{{icon}}\" *ngIf=\"icon\"></i>\n </div>\n </div>\n <div class=\"ax items-wrapper\">\n <ax-button *ngIf=\"value && allowClear\" [disabled]=\"disabled\" icon=\"far fa-times\" type=\"danger blank\"\n (click)=\"clear()\"></ax-button>\n <ax-button icon=\"far fa-minus\" type=\"danger blank\" (click)=\"downStepHandel()\" [disabled]=\"disabled\" *ngIf=\"showDoubleCounter\"></ax-button>\n <ng-content select=\"[end]\">\n </ng-content>\n <div class=\"arrow-number\" *ngIf=\"showCounter && !showDoubleCounter && !readonly\" >\n <ax-button type=\"light blank\" [disabled]=\"disabled\" icon=\"fas fa-angle-up\" [size]=\"size\"\n (mousedown)=\"upStepHandel()\" (mouseup)=\"delaySearch()\" [tabIndex]=\"-1\"></ax-button>\n <ax-button type=\"light blank\" [disabled]=\"disabled\" icon=\"fas fa-angle-down\" [size]=\"size\"\n (mousedown)=\"downStepHandel()\" (mouseup)=\"delaySearch()\" [tabIndex]=\"-1\"></ax-button>\n </div>\n </div>\n\n</div>\n", dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: AXButtonComponent, selector: "ax-button", inputs: ["type", "icon", "submitBehavior", "cancelBehavior", "block", "loading", "selected"] }, { kind: "directive", type: i2$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
8176
8262
  }
8177
8263
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: AXNumberBoxComponent, decorators: [{
8178
8264
  type: Component,
8179
- args: [{ selector: 'ax-number-box', changeDetection: ChangeDetectionStrategy.OnPush, host: { style: 'width: 100%' }, providers: [{ provide: AXValidatableComponent, useExisting: AXNumberBoxComponent }], template: "<div class=\"ax form-item\" [class.disabled]=\"disabled\" [attr.id]=\"uid\" #fc>\n <div class=\"ax items-wrapper\">\n <ng-content select=\"[start]\">\n </ng-content>\n <ax-button icon=\"far fa-plus\" type=\"success blank\" (click)=\"upStepHandel()\" [disabled]=\"disabled\" *ngIf=\"showDoubleCounter\"></ax-button>\n </div>\n <div class=\"content\" #content>\n <div class=\"ax form-control input {{size}}\" [class.disabled]=\"disabled\" [class.readonly]=\"readonly\"\n [class.icon]=\"icon\">\n <input [autocomplete]=\"autocomplete\" [name]=\"name\" #input type=\"text\" class=\"ax {{size}}\" [maxlength]=\"calcSeparator(maxLength)\" [(ngModel)]=\"textValue\" placeholder=\"{{placeholder}}\"\n [readonly]=\"readonly\" [disabled]=\"disabled\" [ngClass]=\"setTextAlign()\"\n [class.clear]=\"value && allowClear\" (focus)=\"handleInputFocus($event)\" (blur)=\"handleInputBlur($event)\"\n (keypress)=\"handleKeyPress($event)\" (ngModelChange)=\"this.userQuestionUpdate.next($event)\"\n (keydown)=\"handleKeyDown($event)\" (click)=\"handleClick()\" (keyup)=\"handleKeyUp($event)\">\n <i class=\"{{icon}}\" *ngIf=\"icon\"></i>\n </div>\n </div>\n <div class=\"ax items-wrapper\">\n <ax-button *ngIf=\"value && allowClear\" [disabled]=\"disabled\" icon=\"far fa-times\" type=\"danger blank\"\n (click)=\"clear()\"></ax-button>\n <ax-button icon=\"far fa-minus\" type=\"danger blank\" (click)=\"downStepHandel()\" [disabled]=\"disabled\" *ngIf=\"showDoubleCounter\"></ax-button>\n <ng-content select=\"[end]\">\n </ng-content>\n <div class=\"arrow-number\" *ngIf=\"showCounter && !showDoubleCounter && !readonly\" >\n <ax-button type=\"light blank\" [disabled]=\"disabled\" icon=\"fas fa-angle-up\" [size]=\"size\"\n (mousedown)=\"upStepHandel()\" (mouseup)=\"delaySearch()\" [tabIndex]=\"-1\"></ax-button>\n <ax-button type=\"light blank\" [disabled]=\"disabled\" icon=\"fas fa-angle-down\" [size]=\"size\"\n (mousedown)=\"downStepHandel()\" (mouseup)=\"delaySearch()\" [tabIndex]=\"-1\"></ax-button>\n </div>\n </div>\n\n</div>\n" }]
8265
+ args: [{ selector: 'ax-number-box', changeDetection: ChangeDetectionStrategy.OnPush, host: { style: 'width: 100%' }, providers: [
8266
+ { provide: AXValidatableComponent, useExisting: AXNumberBoxComponent },
8267
+ ], template: "<div class=\"ax form-item\" [class.disabled]=\"disabled\" [attr.id]=\"uid\" #fc>\n <div class=\"ax items-wrapper\">\n <ng-content select=\"[start]\">\n </ng-content>\n <ax-button icon=\"far fa-plus\" type=\"success blank\" (click)=\"upStepHandel()\" [disabled]=\"disabled\" *ngIf=\"showDoubleCounter\"></ax-button>\n </div>\n <div class=\"content\" #content>\n <div class=\"ax form-control input {{size}}\" [class.disabled]=\"disabled\" [class.readonly]=\"readonly\"\n [class.icon]=\"icon\">\n <input [autocomplete]=\"autocomplete\" [name]=\"name\" #input type=\"text\" class=\"ax {{size}}\" [maxlength]=\"calcSeparator(maxLength)\" [(ngModel)]=\"textValue\" placeholder=\"{{placeholder}}\"\n [readonly]=\"readonly\" [disabled]=\"disabled\" [ngClass]=\"setTextAlign()\"\n [class.clear]=\"value && allowClear\" (focus)=\"handleInputFocus($event)\" (blur)=\"handleInputBlur($event)\"\n (keypress)=\"handleKeyPress($event)\" (ngModelChange)=\"this.userQuestionUpdate.next($event)\"\n (keydown)=\"handleKeyDown($event)\" (click)=\"handleClick()\" (keyup)=\"handleKeyUp($event)\">\n <i class=\"{{icon}}\" *ngIf=\"icon\"></i>\n </div>\n </div>\n <div class=\"ax items-wrapper\">\n <ax-button *ngIf=\"value && allowClear\" [disabled]=\"disabled\" icon=\"far fa-times\" type=\"danger blank\"\n (click)=\"clear()\"></ax-button>\n <ax-button icon=\"far fa-minus\" type=\"danger blank\" (click)=\"downStepHandel()\" [disabled]=\"disabled\" *ngIf=\"showDoubleCounter\"></ax-button>\n <ng-content select=\"[end]\">\n </ng-content>\n <div class=\"arrow-number\" *ngIf=\"showCounter && !showDoubleCounter && !readonly\" >\n <ax-button type=\"light blank\" [disabled]=\"disabled\" icon=\"fas fa-angle-up\" [size]=\"size\"\n (mousedown)=\"upStepHandel()\" (mouseup)=\"delaySearch()\" [tabIndex]=\"-1\"></ax-button>\n <ax-button type=\"light blank\" [disabled]=\"disabled\" icon=\"fas fa-angle-down\" [size]=\"size\"\n (mousedown)=\"downStepHandel()\" (mouseup)=\"delaySearch()\" [tabIndex]=\"-1\"></ax-button>\n </div>\n </div>\n\n</div>\n" }]
8180
8268
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }], propDecorators: { min: [{
8181
8269
  type: Input
8182
8270
  }], max: [{
8183
8271
  type: Input
8184
- }], showSeparator: [{
8185
- type: Input
8186
8272
  }], showCurrency: [{
8187
8273
  type: Input
8188
8274
  }], showCounter: [{