aeb-ui-kit 3.3.0-rc.645 → 3.4.0-preview.669

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.
@@ -2713,265 +2713,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
2713
2713
  }]
2714
2714
  }] });
2715
2715
 
2716
- class NumbersOnlyDirective {
2717
- constructor() {
2718
- this.navigationKeys = [
2719
- 'Backspace',
2720
- 'Delete',
2721
- 'Tab',
2722
- 'Escape',
2723
- 'Enter',
2724
- 'Home',
2725
- 'End',
2726
- 'ArrowLeft',
2727
- 'ArrowRight',
2728
- 'Clear',
2729
- 'Copy',
2730
- 'Paste'
2731
- ];
2732
- }
2733
- onKeyDown(e) {
2734
- if (
2735
- // Allow: Delete, Backspace, Tab, Escape, Enter, etc
2736
- this.navigationKeys.indexOf(e.key) > -1 ||
2737
- (e.key === 'a' && e.ctrlKey === true) || // Allow: Ctrl+A
2738
- (e.key === 'c' && e.ctrlKey === true) || // Allow: Ctrl+C
2739
- (e.key === 'v' && e.ctrlKey === true) || // Allow: Ctrl+V
2740
- (e.key === 'x' && e.ctrlKey === true) || // Allow: Ctrl+X
2741
- (e.key === 'a' && e.metaKey === true) || // Cmd+A (Mac)
2742
- (e.key === 'c' && e.metaKey === true) || // Cmd+C (Mac)
2743
- (e.key === 'v' && e.metaKey === true) || // Cmd+V (Mac)
2744
- (e.key === 'x' && e.metaKey === true) // Cmd+X (Mac)
2745
- ) {
2746
- return; // let it happen, don't do anything
2747
- }
2748
- // Ensure that it is a number and stop the keypress
2749
- if (e.key === ' ' || isNaN(Number(e.key))) {
2750
- e.preventDefault();
2751
- }
2752
- }
2753
- onPaste(event) {
2754
- event.preventDefault();
2755
- const pastedInput = event.clipboardData
2756
- .getData('text/plain')
2757
- .replace(/\D/g, ''); // get a digit-only string
2758
- document.execCommand('insertText', false, pastedInput);
2759
- }
2760
- onDrop(event) {
2761
- event.preventDefault();
2762
- const textData = event.dataTransfer.getData('text').replace(/\D/g, '');
2763
- document.execCommand('insertText', false, textData);
2764
- }
2765
- }
2766
- NumbersOnlyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NumbersOnlyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2767
- NumbersOnlyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: NumbersOnlyDirective, selector: "[aebNumbersOnly]", host: { listeners: { "keydown": "onKeyDown($event)", "paste": "onPaste($event)", "drop": "onDrop($event)" } }, ngImport: i0 });
2768
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NumbersOnlyDirective, decorators: [{
2769
- type: Directive,
2770
- args: [{
2771
- selector: '[aebNumbersOnly]'
2772
- }]
2773
- }], ctorParameters: function () { return []; }, propDecorators: { onKeyDown: [{
2774
- type: HostListener,
2775
- args: ['keydown', ['$event']]
2776
- }], onPaste: [{
2777
- type: HostListener,
2778
- args: ['paste', ['$event']]
2779
- }], onDrop: [{
2780
- type: HostListener,
2781
- args: ['drop', ['$event']]
2782
- }] } });
2783
-
2784
- class ReplacePipe$1 {
2785
- transform(value, strToReplace, replacementStr) {
2786
- if (!value || !strToReplace || !replacementStr) {
2787
- return value;
2788
- }
2789
- return value.replace(new RegExp(strToReplace, 'g'), replacementStr);
2790
- }
2791
- }
2792
- ReplacePipe$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ReplacePipe$1, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
2793
- ReplacePipe$1.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: ReplacePipe$1, name: "replace" });
2794
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ReplacePipe$1, decorators: [{
2795
- type: Pipe,
2796
- args: [{
2797
- name: 'replace'
2798
- }]
2799
- }] });
2800
-
2801
- class FieldSliderComponent {
2802
- constructor(renderer) {
2803
- this.renderer = renderer;
2804
- this.label = '';
2805
- this.prefix = '₽';
2806
- this.min = 1000;
2807
- this.max = 5000000;
2808
- this.step = 1000;
2809
- this.valueSeparator = ' ';
2810
- this.isPressed = false;
2811
- }
2812
- get position() {
2813
- const position = ((this.value - this.min) / (this.max - this.min)) * 100;
2814
- if (position < 0) {
2815
- return 0;
2816
- }
2817
- if (position > 100) {
2818
- return 100;
2819
- }
2820
- return position;
2821
- }
2822
- handleStartDragging(event) {
2823
- event.preventDefault();
2824
- if (event.clientX) {
2825
- this.handleChangeValue(event.clientX);
2826
- }
2827
- }
2828
- handleEndDragging(event) {
2829
- event.preventDefault();
2830
- this.isPressed = false;
2831
- document.removeAllListeners('mousemove');
2832
- document.removeAllListeners('mouseup');
2833
- }
2834
- handleStartSwiping(event) {
2835
- event.preventDefault();
2836
- if (event.touches && event.touches.length) {
2837
- const finger = event.touches[0];
2838
- this.handleChangeValue(finger.clientX);
2839
- }
2840
- }
2841
- handleEndSwipping(event) {
2842
- event.preventDefault();
2843
- this.isPressed = false;
2844
- document.removeAllListeners('touchmove');
2845
- document.removeAllListeners('touchend');
2846
- document.removeAllListeners('touchcancel');
2847
- }
2848
- ngOnInit() {
2849
- this.value = Number.isInteger(this.value) ? this.value : this.max / 2;
2850
- this.updateDisplayValue();
2851
- }
2852
- ngAfterViewInit() {
2853
- this.renderer.listen(this.slider.nativeElement, 'touchstart', (event) => {
2854
- event.preventDefault();
2855
- this.input.nativeElement.blur();
2856
- this.handleStartSwiping(event);
2857
- document.addEventListener('touchmove', this.handleStartSwiping.bind(this), { passive: false });
2858
- document.addEventListener('touchend', this.handleEndSwipping.bind(this));
2859
- document.addEventListener('touchcancel', this.handleEndSwipping.bind(this));
2860
- });
2861
- this.renderer.listen(this.slider.nativeElement, 'mousedown', (event) => {
2862
- event.preventDefault();
2863
- this.input.nativeElement.blur();
2864
- this.handleStartDragging(event);
2865
- document.addEventListener('mousemove', this.handleStartDragging.bind(this), false);
2866
- document.addEventListener('mouseup', this.handleEndDragging.bind(this), false);
2867
- });
2868
- }
2869
- writeValue(value) {
2870
- if (value) {
2871
- this.value = value;
2872
- this.updateDisplayValue();
2873
- }
2874
- }
2875
- registerOnChange(fn) {
2876
- this.onChange = fn;
2877
- }
2878
- registerOnTouched() { }
2879
- updateDisplayValue() {
2880
- this.displayValue = this.value.toLocaleString('ru') + ' ' + this.prefix;
2881
- }
2882
- setCurrentDisplayValue() {
2883
- this.displayValue = this.value;
2884
- }
2885
- changeValueByInput(value) {
2886
- const parsedValue = parseInt(value, 10);
2887
- if (parsedValue % this.step !== 0) {
2888
- this.value = Math.round(parsedValue / this.step) * this.step;
2889
- }
2890
- else {
2891
- this.value = parsedValue;
2892
- }
2893
- if (parsedValue < this.min || isNaN(parsedValue)) {
2894
- this.value = this.min;
2895
- }
2896
- if (parsedValue > this.max) {
2897
- this.value = this.max;
2898
- }
2899
- if (typeof this.onChange === 'function') {
2900
- this.onChange(this.value);
2901
- }
2902
- }
2903
- handleChangeValue(positionX) {
2904
- this.isPressed = true;
2905
- const offsetSlider = this.slider.nativeElement.getBoundingClientRect().left;
2906
- const widthSlider = this.slider.nativeElement.getBoundingClientRect().width;
2907
- let left = positionX - offsetSlider;
2908
- if (left < 0) {
2909
- left = 0;
2910
- }
2911
- if (left > widthSlider) {
2912
- left = widthSlider;
2913
- }
2914
- const deltaX = (left / widthSlider) * (this.max - this.min);
2915
- this.value = Math.round(deltaX / this.step) * this.step + this.min;
2916
- this.updateDisplayValue();
2917
- if (typeof this.onChange === 'function') {
2918
- this.onChange(this.value);
2919
- }
2920
- }
2921
- }
2922
- FieldSliderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FieldSliderComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
2923
- FieldSliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: FieldSliderComponent, selector: "aeb-field-slider", inputs: { label: "label", prefix: "prefix", min: "min", max: "max", step: "step", value: "value", valueSeparator: "valueSeparator" }, providers: [
2924
- {
2925
- provide: NG_VALUE_ACCESSOR,
2926
- useExisting: forwardRef(() => FieldSliderComponent),
2927
- multi: true
2928
- }
2929
- ], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }, { propertyName: "slider", first: true, predicate: ["slider"], descendants: true }], ngImport: i0, template: "<div class=\"field-slider\">\n <aeb-form-field class=\"field-slider__field-wrapper\">\n <aeb-label>{{ label }}</aeb-label>\n <input\n #input\n aebInput\n aebNumbersOnly\n type=\"string\"\n [ngModel]=\"displayValue\"\n (ngModelChange)=\"changeValueByInput($event)\"\n (focus)=\"setCurrentDisplayValue()\"\n (blur)=\"updateDisplayValue()\"\n />\n </aeb-form-field>\n <div class=\"field-slider__line-wrapper\" #slider>\n <div class=\"field-slider__line\">\n <div\n class=\"field-slider__line-position\"\n [ngStyle]=\"{\n width: position + '%'\n }\"\n [ngClass]=\"{ pressed: isPressed }\"\n ></div>\n </div>\n </div>\n <div class=\"field-slider__limits\">\n <div>\n {{ min | number : \"1.0-0\" | replace : \",\" : valueSeparator }} {{ prefix }}\n </div>\n <div>\n {{ max | number : \"1.0-0\" | replace : \",\" : valueSeparator }} {{ prefix }}\n </div>\n </div>\n</div>\n", styles: [".field-slider{display:flex;flex-direction:column;align-items:center;width:100%;color:var(--color-mono-brand-dark)}.field-slider__field-wrapper{width:100%}.field-slider__field-wrapper input:focus{outline:none}.field-slider__line-wrapper{display:flex;align-items:center;width:calc(100% - 20px)}.field-slider__line{position:relative;top:-2px;width:100%;height:2px;background-color:var(--gray-primary);border-radius:2px}.field-slider__line-position{position:absolute;top:-2px;left:0;width:100%;height:calc(100% + 2px);background-color:var(--color-blue-brand);border-radius:2px}.field-slider__line-position:hover{background-color:var(--color-turquoise-neutral)}.field-slider__line-position:hover:after{background-color:var(--color-turquoise-neutral)}.field-slider__line-position.pressed{background-color:var(--color-turquoise-neutral)}.field-slider__line-position.pressed:after{background-color:var(--color-turquoise-neutral)}.field-slider__line-position:after{position:absolute;top:-3px;right:0;width:10px;height:10px;cursor:pointer;content:\"\";background-color:var(--color-blue-brand);border-radius:var(--border-medium-rounded)}.field-slider__limits{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:8px;font-size:var(--font-size-xxs);line-height:14px;color:var(--gray-primary)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: FormFieldComponent, selector: "aeb-form-field", inputs: ["isInvalid", "showIcon", "showErrorMessage", "disabled"] }, { kind: "directive", type: FormFieldDirective, selector: "input[aebInput], textarea[aebTextarea]", inputs: ["value"] }, { kind: "directive", type: LabelDirective, selector: "aeb-label" }, { kind: "directive", type: i1$1.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: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NumbersOnlyDirective, selector: "[aebNumbersOnly]" }, { kind: "pipe", type: i1.DecimalPipe, name: "number" }, { kind: "pipe", type: ReplacePipe$1, name: "replace" }], encapsulation: i0.ViewEncapsulation.None });
2930
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FieldSliderComponent, decorators: [{
2931
- type: Component,
2932
- args: [{ selector: 'aeb-field-slider', encapsulation: ViewEncapsulation.None, providers: [
2933
- {
2934
- provide: NG_VALUE_ACCESSOR,
2935
- useExisting: forwardRef(() => FieldSliderComponent),
2936
- multi: true
2937
- }
2938
- ], template: "<div class=\"field-slider\">\n <aeb-form-field class=\"field-slider__field-wrapper\">\n <aeb-label>{{ label }}</aeb-label>\n <input\n #input\n aebInput\n aebNumbersOnly\n type=\"string\"\n [ngModel]=\"displayValue\"\n (ngModelChange)=\"changeValueByInput($event)\"\n (focus)=\"setCurrentDisplayValue()\"\n (blur)=\"updateDisplayValue()\"\n />\n </aeb-form-field>\n <div class=\"field-slider__line-wrapper\" #slider>\n <div class=\"field-slider__line\">\n <div\n class=\"field-slider__line-position\"\n [ngStyle]=\"{\n width: position + '%'\n }\"\n [ngClass]=\"{ pressed: isPressed }\"\n ></div>\n </div>\n </div>\n <div class=\"field-slider__limits\">\n <div>\n {{ min | number : \"1.0-0\" | replace : \",\" : valueSeparator }} {{ prefix }}\n </div>\n <div>\n {{ max | number : \"1.0-0\" | replace : \",\" : valueSeparator }} {{ prefix }}\n </div>\n </div>\n</div>\n", styles: [".field-slider{display:flex;flex-direction:column;align-items:center;width:100%;color:var(--color-mono-brand-dark)}.field-slider__field-wrapper{width:100%}.field-slider__field-wrapper input:focus{outline:none}.field-slider__line-wrapper{display:flex;align-items:center;width:calc(100% - 20px)}.field-slider__line{position:relative;top:-2px;width:100%;height:2px;background-color:var(--gray-primary);border-radius:2px}.field-slider__line-position{position:absolute;top:-2px;left:0;width:100%;height:calc(100% + 2px);background-color:var(--color-blue-brand);border-radius:2px}.field-slider__line-position:hover{background-color:var(--color-turquoise-neutral)}.field-slider__line-position:hover:after{background-color:var(--color-turquoise-neutral)}.field-slider__line-position.pressed{background-color:var(--color-turquoise-neutral)}.field-slider__line-position.pressed:after{background-color:var(--color-turquoise-neutral)}.field-slider__line-position:after{position:absolute;top:-3px;right:0;width:10px;height:10px;cursor:pointer;content:\"\";background-color:var(--color-blue-brand);border-radius:var(--border-medium-rounded)}.field-slider__limits{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:8px;font-size:var(--font-size-xxs);line-height:14px;color:var(--gray-primary)}\n"] }]
2939
- }], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { input: [{
2940
- type: ViewChild,
2941
- args: ['input']
2942
- }], slider: [{
2943
- type: ViewChild,
2944
- args: ['slider']
2945
- }], label: [{
2946
- type: Input
2947
- }], prefix: [{
2948
- type: Input
2949
- }], min: [{
2950
- type: Input
2951
- }], max: [{
2952
- type: Input
2953
- }], step: [{
2954
- type: Input
2955
- }], value: [{
2956
- type: Input
2957
- }], valueSeparator: [{
2958
- type: Input
2959
- }] } });
2960
-
2961
- class FieldSliderModule {
2962
- }
2963
- FieldSliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FieldSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2964
- FieldSliderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: FieldSliderModule, declarations: [FieldSliderComponent, ReplacePipe$1, NumbersOnlyDirective], imports: [CommonModule, FormFieldModule, FormsModule], exports: [FieldSliderComponent] });
2965
- FieldSliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FieldSliderModule, imports: [CommonModule, FormFieldModule, FormsModule] });
2966
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FieldSliderModule, decorators: [{
2967
- type: NgModule,
2968
- args: [{
2969
- declarations: [FieldSliderComponent, ReplacePipe$1, NumbersOnlyDirective],
2970
- imports: [CommonModule, FormFieldModule, FormsModule],
2971
- exports: [FieldSliderComponent]
2972
- }]
2973
- }] });
2974
-
2975
2716
  class DragAndDropDirective {
2976
2717
  constructor() {
2977
2718
  this.fileChooseEvent$ = new EventEmitter();
@@ -4400,6 +4141,74 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4400
4141
  }]
4401
4142
  }] });
4402
4143
 
4144
+ class NumbersOnlyDirective {
4145
+ constructor() {
4146
+ this.navigationKeys = [
4147
+ 'Backspace',
4148
+ 'Delete',
4149
+ 'Tab',
4150
+ 'Escape',
4151
+ 'Enter',
4152
+ 'Home',
4153
+ 'End',
4154
+ 'ArrowLeft',
4155
+ 'ArrowRight',
4156
+ 'Clear',
4157
+ 'Copy',
4158
+ 'Paste'
4159
+ ];
4160
+ }
4161
+ onKeyDown(e) {
4162
+ if (
4163
+ // Allow: Delete, Backspace, Tab, Escape, Enter, etc
4164
+ this.navigationKeys.indexOf(e.key) > -1 ||
4165
+ (e.key === 'a' && e.ctrlKey === true) || // Allow: Ctrl+A
4166
+ (e.key === 'c' && e.ctrlKey === true) || // Allow: Ctrl+C
4167
+ (e.key === 'v' && e.ctrlKey === true) || // Allow: Ctrl+V
4168
+ (e.key === 'x' && e.ctrlKey === true) || // Allow: Ctrl+X
4169
+ (e.key === 'a' && e.metaKey === true) || // Cmd+A (Mac)
4170
+ (e.key === 'c' && e.metaKey === true) || // Cmd+C (Mac)
4171
+ (e.key === 'v' && e.metaKey === true) || // Cmd+V (Mac)
4172
+ (e.key === 'x' && e.metaKey === true) // Cmd+X (Mac)
4173
+ ) {
4174
+ return; // let it happen, don't do anything
4175
+ }
4176
+ // Ensure that it is a number and stop the keypress
4177
+ if (e.key === ' ' || isNaN(Number(e.key))) {
4178
+ e.preventDefault();
4179
+ }
4180
+ }
4181
+ onPaste(event) {
4182
+ event.preventDefault();
4183
+ const pastedInput = event.clipboardData
4184
+ .getData('text/plain')
4185
+ .replace(/\D/g, ''); // get a digit-only string
4186
+ document.execCommand('insertText', false, pastedInput);
4187
+ }
4188
+ onDrop(event) {
4189
+ event.preventDefault();
4190
+ const textData = event.dataTransfer.getData('text').replace(/\D/g, '');
4191
+ document.execCommand('insertText', false, textData);
4192
+ }
4193
+ }
4194
+ NumbersOnlyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NumbersOnlyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
4195
+ NumbersOnlyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: NumbersOnlyDirective, selector: "[aebNumbersOnly]", host: { listeners: { "keydown": "onKeyDown($event)", "paste": "onPaste($event)", "drop": "onDrop($event)" } }, ngImport: i0 });
4196
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NumbersOnlyDirective, decorators: [{
4197
+ type: Directive,
4198
+ args: [{
4199
+ selector: '[aebNumbersOnly]'
4200
+ }]
4201
+ }], ctorParameters: function () { return []; }, propDecorators: { onKeyDown: [{
4202
+ type: HostListener,
4203
+ args: ['keydown', ['$event']]
4204
+ }], onPaste: [{
4205
+ type: HostListener,
4206
+ args: ['paste', ['$event']]
4207
+ }], onDrop: [{
4208
+ type: HostListener,
4209
+ args: ['drop', ['$event']]
4210
+ }] } });
4211
+
4403
4212
  class ReplacePipe {
4404
4213
  transform(value, strToReplace, replacementStr) {
4405
4214
  if (!value || !strToReplace || !replacementStr) {
@@ -4420,10 +4229,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4420
4229
  class SliderComponent {
4421
4230
  constructor(renderer) {
4422
4231
  this.renderer = renderer;
4232
+ this.mode = 'standard';
4423
4233
  /**
4424
- * separator for currency value, 'space' by default
4234
+ * separator for currency value
4425
4235
  */
4426
4236
  this.valueSeparator = ' ';
4237
+ this.isSlider = true;
4427
4238
  this.isPressed = false;
4428
4239
  this.handleStartDragging = (event) => {
4429
4240
  event.preventDefault();
@@ -4456,6 +4267,12 @@ class SliderComponent {
4456
4267
  document.removeEventListener('touchcancel', this.handleEndSwiping);
4457
4268
  };
4458
4269
  }
4270
+ get isStandardMode() {
4271
+ return this.mode === 'standard';
4272
+ }
4273
+ get isInputMode() {
4274
+ return this.mode === 'input';
4275
+ }
4459
4276
  get position() {
4460
4277
  const position = ((this.value - this.min) / (this.max - this.min)) * 100;
4461
4278
  if (position < 0) {
@@ -4473,12 +4290,20 @@ class SliderComponent {
4473
4290
  else {
4474
4291
  this.value = this.calculateAverage([this.min, this.max]);
4475
4292
  }
4293
+ this.updateDisplayValue();
4476
4294
  }
4477
4295
  writeValue(value) {
4478
4296
  if (value) {
4479
4297
  this.value = value;
4298
+ this.updateDisplayValue();
4480
4299
  }
4481
4300
  }
4301
+ updateDisplayValue() {
4302
+ this.displayValue = this.value.toLocaleString('ru') + ' ' + this.prefix;
4303
+ }
4304
+ setCurrentDisplayValue() {
4305
+ this.displayValue = this.value;
4306
+ }
4482
4307
  registerOnChange(fn) {
4483
4308
  this.onChange = fn;
4484
4309
  }
@@ -4502,9 +4327,23 @@ class SliderComponent {
4502
4327
  document.addEventListener('mouseup', this.handleEndDragging, false);
4503
4328
  });
4504
4329
  }
4505
- inputHandler(e) {
4506
- const value = Number(e.target.value);
4507
- this.value = value;
4330
+ changeValueByInput(value) {
4331
+ const parsedValue = parseInt(value, 10);
4332
+ if (parsedValue % this.step !== 0) {
4333
+ this.value = Math.round(parsedValue / this.step) * this.step;
4334
+ }
4335
+ else {
4336
+ this.value = parsedValue;
4337
+ }
4338
+ if (parsedValue < this.min || isNaN(parsedValue)) {
4339
+ this.value = this.min;
4340
+ }
4341
+ if (parsedValue > this.max) {
4342
+ this.value = this.max;
4343
+ }
4344
+ if (typeof this.onChange === 'function') {
4345
+ this.onChange(this.value);
4346
+ }
4508
4347
  }
4509
4348
  onInputBlur() {
4510
4349
  if (this.value < this.min) {
@@ -4513,6 +4352,7 @@ class SliderComponent {
4513
4352
  else if (this.value > this.max) {
4514
4353
  this.value = this.max;
4515
4354
  }
4355
+ this.updateDisplayValue();
4516
4356
  if (typeof this.onChange === 'function') {
4517
4357
  this.onChange(this.value);
4518
4358
  }
@@ -4533,19 +4373,20 @@ class SliderComponent {
4533
4373
  }
4534
4374
  const deltaX = (left / widthSlider) * (this.max - this.min);
4535
4375
  this.value = Math.round(deltaX / this.step) * this.step + this.min;
4376
+ this.updateDisplayValue();
4536
4377
  if (typeof this.onChange === 'function') {
4537
4378
  this.onChange(this.value);
4538
4379
  }
4539
4380
  }
4540
4381
  }
4541
4382
  SliderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SliderComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
4542
- SliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: SliderComponent, selector: "aeb-slider", inputs: { label: "label", prefix: "prefix", intialValue: "intialValue", min: "min", max: "max", step: "step", value: "value", isEditable: "isEditable", valueSeparator: "valueSeparator" }, providers: [
4383
+ SliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: SliderComponent, selector: "aeb-slider", inputs: { label: "label", prefix: "prefix", intialValue: "intialValue", min: "min", max: "max", step: "step", value: "value", displayValue: "displayValue", mode: "mode", valueSeparator: "valueSeparator" }, host: { properties: { "class.aeb-slider": "this.isSlider", "class.aeb-slider--standard": "this.isStandardMode", "class.aeb-slider--input": "this.isInputMode" } }, providers: [
4543
4384
  {
4544
4385
  provide: NG_VALUE_ACCESSOR,
4545
4386
  useExisting: forwardRef(() => SliderComponent),
4546
4387
  multi: true
4547
4388
  }
4548
- ], viewQueries: [{ propertyName: "slider", first: true, predicate: ["slider"], descendants: true }], ngImport: i0, template: "<div class=\"slider\" [ngStyle]=\"{ marginBottom: isEditable ? '0' : '20px' }\">\n <ng-container *ngIf=\"!isEditable\">\n <div class=\"label\">{{ label }}</div>\n <div class=\"value\">\n {{ value | number : \"1.0-0\" | replace : \",\" : valueSeparator }}\n {{ prefix }}\n </div>\n </ng-container>\n</div>\n\n<aeb-form-field *ngIf=\"isEditable\">\n <aeb-label>{{ label }}</aeb-label>\n <input\n type=\"number\"\n aebInput\n (input)=\"inputHandler($event)\"\n (blur)=\"onInputBlur()\"\n [(ngModel)]=\"value\"\n />\n</aeb-form-field>\n\n<div\n class=\"slider-line-wrapper\"\n [ngStyle]=\"{ height: isEditable ? '0' : '20px' }\"\n #slider\n>\n <div\n class=\"slider-line\"\n [ngStyle]=\"{\n width: isEditable ? '98%' : '100%',\n backgroundColor: isEditable ? 'transparent' : 'var(--lightgray)'\n }\"\n >\n <div\n class=\"slider-line-position\"\n [ngStyle]=\"{\n width: position + '%'\n }\"\n [ngClass]=\"{ pressed: isPressed }\"\n ></div>\n </div>\n</div>\n<div class=\"slider-limits\">\n <div>\n {{ min | number : \"1.0-0\" | replace : \",\" : valueSeparator }} {{ prefix }}\n </div>\n <div>\n {{ max | number : \"1.0-0\" | replace : \",\" : valueSeparator }} {{ prefix }}\n </div>\n</div>\n", styles: [".slider{display:flex;align-content:center;justify-content:space-between;color:var(--color-mono-brand-dark)}.label{font-size:var(--font-size-s);line-height:20px;color:var(--gray)}.value{font-size:var(--font-size-md);font-weight:700;color:var(--color-mono-brand-dark)}.slider-line-wrapper{display:flex;justify-content:center;align-items:center;width:100%}.slider-line{position:relative;width:100%;height:4px;border-radius:2px}.slider-line-position{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--color-blue-brand);border-radius:2px}.slider-line-position:after{position:absolute;top:-8px;right:-10px;width:20px;height:20px;cursor:pointer;content:\"\";background-color:var(--color-blue-brand);border-radius:var(--border-medium-rounded)}.slider-line-position:hover{background-color:var(--color-turquoise-neutral)}.slider-line-position:hover:after{background-color:var(--color-turquoise-neutral)}.slider-line-position.pressed:after{top:-11px;right:-13px;width:26px;height:26px;background-color:var(--color-turquoise-neutral);border-radius:var(--border-rounded)}.slider-line-position.pressed{background-color:var(--color-turquoise-neutral)}.slider-limits{display:flex;align-items:center;justify-content:space-between;margin-top:8px;font-size:var(--font-size-xxs);line-height:14px;color:var(--gray)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: FormFieldComponent, selector: "aeb-form-field", inputs: ["isInvalid", "showIcon", "showErrorMessage", "disabled"] }, { kind: "directive", type: FormFieldDirective, selector: "input[aebInput], textarea[aebTextarea]", inputs: ["value"] }, { kind: "directive", type: LabelDirective, selector: "aeb-label" }, { kind: "directive", type: i1$1.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: i1$1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: i1.DecimalPipe, name: "number" }, { kind: "pipe", type: ReplacePipe, name: "replace" }], encapsulation: i0.ViewEncapsulation.None });
4389
+ ], viewQueries: [{ propertyName: "slider", first: true, predicate: ["slider"], descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"mode === 'standard'\">\n <div class=\"aeb-slider__header\">\n <div class=\"aeb-slider__label\">{{ label }}</div>\n <div class=\"aeb-slider__value\">\n {{ value | number: \"1.0-0\" | replace: \",\" : valueSeparator }}\n {{ prefix }}\n </div>\n </div>\n</ng-container>\n<ng-container *ngIf=\"mode === 'input'\">\n <aeb-form-field>\n <aeb-label>{{ label }}</aeb-label>\n <input\n type=\"string\"\n aebInput\n aebNumbersOnly\n (focus)=\"setCurrentDisplayValue()\"\n (blur)=\"onInputBlur()\"\n [ngModel]=\"displayValue\"\n (ngModelChange)=\"changeValueByInput($event)\"\n />\n </aeb-form-field>\n</ng-container>\n<div class=\"aeb-slider__line__container\" #slider>\n <div class=\"aeb-slider__line__indicator\">\n <div\n class=\"aeb-slider__line\"\n [ngStyle]=\"{\n width: position + '%'\n }\"\n [ngClass]=\"{ 'aeb-slider__line--pressed': isPressed }\"\n ></div>\n </div>\n</div>\n<div class=\"aeb-slider__limits\">\n <div>\n {{ min | number: \"1.0-0\" | replace: \",\" : valueSeparator }} {{ prefix }}\n </div>\n <div>\n {{ max | number: \"1.0-0\" | replace: \",\" : valueSeparator }} {{ prefix }}\n </div>\n</div>\n", styles: [".aeb-slider{--standard-value-color: var(--color-mono-brand-dark);--line-background-color: var(--color-blue-brand);display:block;color:var(--color-mono-brand-dark);padding:6px 0 8px}.aeb-slider__line{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--line-background-color);border-radius:2px}.aeb-slider__line:after{position:absolute;top:-8px;right:-10px;width:20px;height:20px;cursor:pointer;content:\"\";background-color:var(--line-background-color);border-radius:var(--border-medium-rounded)}.aeb-slider__line:hover{background-color:var(--color-turquoise-neutral)}.aeb-slider__line:hover:after{background-color:var(--color-turquoise-neutral)}.aeb-slider__line__container{margin-top:26px}.aeb-slider__line--pressed:after{top:-11px;right:-13px;width:26px;height:26px;transition:all .05s ease-in;background-color:var(--color-turquoise-neutral);border-radius:var(--border-rounded)}.aeb-slider__line--pressed{background-color:var(--color-turquoise-neutral)}.aeb-slider__line__indicator{position:relative;width:100%;height:4px;border-radius:2px;background-color:var(--lightgray-secondary)}.aeb-slider__line__wrapper{display:flex;justify-content:center;align-items:center;width:100%}.aeb-slider--standard .aeb-slider__header{display:flex;justify-content:space-between;align-items:center}.aeb-slider--standard .aeb-slider__label{display:flex;align-items:center;font-size:var(--font-size-s);line-height:20px;color:var(--color-mono-gray-soft)}.aeb-slider--standard .aeb-slider__value{font-size:var(--font-size-md);font-weight:700;line-height:var(--line-height-medium);color:var(--standard-value-color)}.aeb-slider--standard .aeb-slider__limits{display:flex;align-items:center;justify-content:space-between;margin-top:16px;font-size:var(--font-size-xxs);line-height:14px;color:var(--color-mono-gray-soft)}.aeb-slider--input .aeb-slider__field-wrapper{width:100%}.aeb-slider--input .aeb-slider__field-wrapper input:focus{outline:none}.aeb-slider--input .aeb-slider__line{border-top-left-radius:4px;border-bottom-left-radius:0}.aeb-slider--input .aeb-slider__line__indicator{position:absolute;background-color:transparent}.aeb-slider--input .aeb-slider__line__container{position:relative;margin-top:0;top:-4px;left:10px;width:calc(100% - 20px)}.aeb-slider--input .aeb-slider__line:after{width:10px;height:10px;top:-3px;right:-5px}.aeb-slider--input .aeb-slider__line--pressed:after{width:14px;height:14px;top:-5px;right:-7px;transition:all .05s ease-in}.aeb-slider--input .aeb-slider__limits{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:8px;padding-bottom:8px;font-size:var(--font-size-xxs);line-height:14px;color:var(--gray-primary)}body.dark .aeb-slider{--standard-value-color: var(--color-mono-clear);--line-background-color: var(--blue-primary-dark-theme)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: FormFieldComponent, selector: "aeb-form-field", inputs: ["isInvalid", "showIcon", "showErrorMessage", "disabled"] }, { kind: "directive", type: FormFieldDirective, selector: "input[aebInput], textarea[aebTextarea]", inputs: ["value"] }, { kind: "directive", type: LabelDirective, selector: "aeb-label" }, { kind: "directive", type: i1$1.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: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NumbersOnlyDirective, selector: "[aebNumbersOnly]" }, { kind: "pipe", type: i1.DecimalPipe, name: "number" }, { kind: "pipe", type: ReplacePipe, name: "replace" }], encapsulation: i0.ViewEncapsulation.None });
4549
4390
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SliderComponent, decorators: [{
4550
4391
  type: Component,
4551
4392
  args: [{ selector: 'aeb-slider', encapsulation: ViewEncapsulation.None, providers: [
@@ -4554,7 +4395,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4554
4395
  useExisting: forwardRef(() => SliderComponent),
4555
4396
  multi: true
4556
4397
  }
4557
- ], template: "<div class=\"slider\" [ngStyle]=\"{ marginBottom: isEditable ? '0' : '20px' }\">\n <ng-container *ngIf=\"!isEditable\">\n <div class=\"label\">{{ label }}</div>\n <div class=\"value\">\n {{ value | number : \"1.0-0\" | replace : \",\" : valueSeparator }}\n {{ prefix }}\n </div>\n </ng-container>\n</div>\n\n<aeb-form-field *ngIf=\"isEditable\">\n <aeb-label>{{ label }}</aeb-label>\n <input\n type=\"number\"\n aebInput\n (input)=\"inputHandler($event)\"\n (blur)=\"onInputBlur()\"\n [(ngModel)]=\"value\"\n />\n</aeb-form-field>\n\n<div\n class=\"slider-line-wrapper\"\n [ngStyle]=\"{ height: isEditable ? '0' : '20px' }\"\n #slider\n>\n <div\n class=\"slider-line\"\n [ngStyle]=\"{\n width: isEditable ? '98%' : '100%',\n backgroundColor: isEditable ? 'transparent' : 'var(--lightgray)'\n }\"\n >\n <div\n class=\"slider-line-position\"\n [ngStyle]=\"{\n width: position + '%'\n }\"\n [ngClass]=\"{ pressed: isPressed }\"\n ></div>\n </div>\n</div>\n<div class=\"slider-limits\">\n <div>\n {{ min | number : \"1.0-0\" | replace : \",\" : valueSeparator }} {{ prefix }}\n </div>\n <div>\n {{ max | number : \"1.0-0\" | replace : \",\" : valueSeparator }} {{ prefix }}\n </div>\n</div>\n", styles: [".slider{display:flex;align-content:center;justify-content:space-between;color:var(--color-mono-brand-dark)}.label{font-size:var(--font-size-s);line-height:20px;color:var(--gray)}.value{font-size:var(--font-size-md);font-weight:700;color:var(--color-mono-brand-dark)}.slider-line-wrapper{display:flex;justify-content:center;align-items:center;width:100%}.slider-line{position:relative;width:100%;height:4px;border-radius:2px}.slider-line-position{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--color-blue-brand);border-radius:2px}.slider-line-position:after{position:absolute;top:-8px;right:-10px;width:20px;height:20px;cursor:pointer;content:\"\";background-color:var(--color-blue-brand);border-radius:var(--border-medium-rounded)}.slider-line-position:hover{background-color:var(--color-turquoise-neutral)}.slider-line-position:hover:after{background-color:var(--color-turquoise-neutral)}.slider-line-position.pressed:after{top:-11px;right:-13px;width:26px;height:26px;background-color:var(--color-turquoise-neutral);border-radius:var(--border-rounded)}.slider-line-position.pressed{background-color:var(--color-turquoise-neutral)}.slider-limits{display:flex;align-items:center;justify-content:space-between;margin-top:8px;font-size:var(--font-size-xxs);line-height:14px;color:var(--gray)}\n"] }]
4398
+ ], template: "<ng-container *ngIf=\"mode === 'standard'\">\n <div class=\"aeb-slider__header\">\n <div class=\"aeb-slider__label\">{{ label }}</div>\n <div class=\"aeb-slider__value\">\n {{ value | number: \"1.0-0\" | replace: \",\" : valueSeparator }}\n {{ prefix }}\n </div>\n </div>\n</ng-container>\n<ng-container *ngIf=\"mode === 'input'\">\n <aeb-form-field>\n <aeb-label>{{ label }}</aeb-label>\n <input\n type=\"string\"\n aebInput\n aebNumbersOnly\n (focus)=\"setCurrentDisplayValue()\"\n (blur)=\"onInputBlur()\"\n [ngModel]=\"displayValue\"\n (ngModelChange)=\"changeValueByInput($event)\"\n />\n </aeb-form-field>\n</ng-container>\n<div class=\"aeb-slider__line__container\" #slider>\n <div class=\"aeb-slider__line__indicator\">\n <div\n class=\"aeb-slider__line\"\n [ngStyle]=\"{\n width: position + '%'\n }\"\n [ngClass]=\"{ 'aeb-slider__line--pressed': isPressed }\"\n ></div>\n </div>\n</div>\n<div class=\"aeb-slider__limits\">\n <div>\n {{ min | number: \"1.0-0\" | replace: \",\" : valueSeparator }} {{ prefix }}\n </div>\n <div>\n {{ max | number: \"1.0-0\" | replace: \",\" : valueSeparator }} {{ prefix }}\n </div>\n</div>\n", styles: [".aeb-slider{--standard-value-color: var(--color-mono-brand-dark);--line-background-color: var(--color-blue-brand);display:block;color:var(--color-mono-brand-dark);padding:6px 0 8px}.aeb-slider__line{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--line-background-color);border-radius:2px}.aeb-slider__line:after{position:absolute;top:-8px;right:-10px;width:20px;height:20px;cursor:pointer;content:\"\";background-color:var(--line-background-color);border-radius:var(--border-medium-rounded)}.aeb-slider__line:hover{background-color:var(--color-turquoise-neutral)}.aeb-slider__line:hover:after{background-color:var(--color-turquoise-neutral)}.aeb-slider__line__container{margin-top:26px}.aeb-slider__line--pressed:after{top:-11px;right:-13px;width:26px;height:26px;transition:all .05s ease-in;background-color:var(--color-turquoise-neutral);border-radius:var(--border-rounded)}.aeb-slider__line--pressed{background-color:var(--color-turquoise-neutral)}.aeb-slider__line__indicator{position:relative;width:100%;height:4px;border-radius:2px;background-color:var(--lightgray-secondary)}.aeb-slider__line__wrapper{display:flex;justify-content:center;align-items:center;width:100%}.aeb-slider--standard .aeb-slider__header{display:flex;justify-content:space-between;align-items:center}.aeb-slider--standard .aeb-slider__label{display:flex;align-items:center;font-size:var(--font-size-s);line-height:20px;color:var(--color-mono-gray-soft)}.aeb-slider--standard .aeb-slider__value{font-size:var(--font-size-md);font-weight:700;line-height:var(--line-height-medium);color:var(--standard-value-color)}.aeb-slider--standard .aeb-slider__limits{display:flex;align-items:center;justify-content:space-between;margin-top:16px;font-size:var(--font-size-xxs);line-height:14px;color:var(--color-mono-gray-soft)}.aeb-slider--input .aeb-slider__field-wrapper{width:100%}.aeb-slider--input .aeb-slider__field-wrapper input:focus{outline:none}.aeb-slider--input .aeb-slider__line{border-top-left-radius:4px;border-bottom-left-radius:0}.aeb-slider--input .aeb-slider__line__indicator{position:absolute;background-color:transparent}.aeb-slider--input .aeb-slider__line__container{position:relative;margin-top:0;top:-4px;left:10px;width:calc(100% - 20px)}.aeb-slider--input .aeb-slider__line:after{width:10px;height:10px;top:-3px;right:-5px}.aeb-slider--input .aeb-slider__line--pressed:after{width:14px;height:14px;top:-5px;right:-7px;transition:all .05s ease-in}.aeb-slider--input .aeb-slider__limits{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:8px;padding-bottom:8px;font-size:var(--font-size-xxs);line-height:14px;color:var(--gray-primary)}body.dark .aeb-slider{--standard-value-color: var(--color-mono-clear);--line-background-color: var(--blue-primary-dark-theme)}\n"] }]
4558
4399
  }], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { slider: [{
4559
4400
  type: ViewChild,
4560
4401
  args: ['slider']
@@ -4572,21 +4413,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4572
4413
  type: Input
4573
4414
  }], value: [{
4574
4415
  type: Input
4575
- }], isEditable: [{
4416
+ }], displayValue: [{
4417
+ type: Input
4418
+ }], mode: [{
4576
4419
  type: Input
4577
4420
  }], valueSeparator: [{
4578
4421
  type: Input
4422
+ }], isSlider: [{
4423
+ type: HostBinding,
4424
+ args: ['class.aeb-slider']
4425
+ }], isStandardMode: [{
4426
+ type: HostBinding,
4427
+ args: ['class.aeb-slider--standard']
4428
+ }], isInputMode: [{
4429
+ type: HostBinding,
4430
+ args: ['class.aeb-slider--input']
4579
4431
  }] } });
4580
4432
 
4581
4433
  class SliderModule {
4582
4434
  }
4583
4435
  SliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4584
- SliderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: SliderModule, declarations: [SliderComponent, ReplacePipe], imports: [CommonModule, FormFieldModule, FormsModule], exports: [SliderComponent] });
4436
+ SliderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: SliderModule, declarations: [SliderComponent, ReplacePipe, NumbersOnlyDirective], imports: [CommonModule, FormFieldModule, FormsModule], exports: [SliderComponent] });
4585
4437
  SliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SliderModule, imports: [CommonModule, FormFieldModule, FormsModule] });
4586
4438
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SliderModule, decorators: [{
4587
4439
  type: NgModule,
4588
4440
  args: [{
4589
- declarations: [SliderComponent, ReplacePipe],
4441
+ declarations: [SliderComponent, ReplacePipe, NumbersOnlyDirective],
4590
4442
  imports: [CommonModule, FormFieldModule, FormsModule],
4591
4443
  exports: [SliderComponent]
4592
4444
  }]
@@ -5042,7 +4894,6 @@ AebUiKitModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
5042
4894
  FileAttachModule,
5043
4895
  CreditItemCardModule,
5044
4896
  TagTabModule,
5045
- FieldSliderModule,
5046
4897
  TabsModule,
5047
4898
  HeadingModule,
5048
4899
  TooltipModule,
@@ -5077,7 +4928,6 @@ AebUiKitModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
5077
4928
  FileAttachModule,
5078
4929
  CreditItemCardModule,
5079
4930
  TagTabModule,
5080
- FieldSliderModule,
5081
4931
  TabsModule,
5082
4932
  HeadingModule,
5083
4933
  TooltipModule,
@@ -5114,7 +4964,6 @@ AebUiKitModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
5114
4964
  FileAttachModule,
5115
4965
  CreditItemCardModule,
5116
4966
  TagTabModule,
5117
- FieldSliderModule,
5118
4967
  TabsModule,
5119
4968
  HeadingModule,
5120
4969
  TooltipModule,
@@ -5149,7 +4998,6 @@ AebUiKitModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
5149
4998
  FileAttachModule,
5150
4999
  CreditItemCardModule,
5151
5000
  TagTabModule,
5152
- FieldSliderModule,
5153
5001
  TabsModule,
5154
5002
  HeadingModule,
5155
5003
  TooltipModule,
@@ -5191,7 +5039,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
5191
5039
  FileAttachModule,
5192
5040
  CreditItemCardModule,
5193
5041
  TagTabModule,
5194
- FieldSliderModule,
5195
5042
  TabsModule,
5196
5043
  HeadingModule,
5197
5044
  TooltipModule,
@@ -5229,7 +5076,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
5229
5076
  FileAttachModule,
5230
5077
  CreditItemCardModule,
5231
5078
  TagTabModule,
5232
- FieldSliderModule,
5233
5079
  TabsModule,
5234
5080
  HeadingModule,
5235
5081
  TooltipModule,
@@ -5495,5 +5341,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
5495
5341
  * Generated bundle index. Do not edit.
5496
5342
  */
5497
5343
 
5498
- export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebUiKitModule, BreadcrumpsComponent, ButtonComponent, ButtonModule, CheckboxComponent, CheckboxGroupOldComponent, CheckboxModule, CheckboxOldComponent, CheckboxOldModule, ClickOutsideDirective, ClickOutsideModule, CodeInputComponent, CodeInputModule, CommentComponent, CommentModule, CreditItemCardComponent, CreditItemCardModule, DateToStrPipe, DatepickerComponent, DatepickerCoreComponent, DatepickerModule, DatepickerMonthComponent, DatepickerTilesComponent, DragAndDropDirective, DropdownComponent, DropdownModule, ErrorMessageDirective, FieldSliderComponent, FieldSliderModule, FileAttachComponent, FileAttachModule, FilterTagComponent, FilterTagsComponent, FilterTagsModule, FooterBottomComponent, FooterComponent, FooterMenuComponent, FooterModule, FooterTopComponent, FormFieldComponent, FormFieldDirective, FormFieldModule, HeaderComponent, HeaderModule, HeadingComponent, HeadingModule, IconDirective, LabelComponent, LabelDirective, LabelModule, LogoComponent, ModalComponent, ModalModule, NewsCardComponent, NewsCardModule, NotificationComponent, NotificationsComponent, NotificationsModule, OldButtonComponent, OldButtonModule, OptionComponent, PaginationComponent, PaginationModule, PaginationOldComponent, PaginationOldModule, PopUpComponent, PopUpDirective, PopUpModule, ProductTitleComponent, RadioButtonsComponent, RadioButtonsModule, ResponseComponent, ResponseModule, SearchComponent, SearchModule, SelectComponent, SelectModule, SidebarComponent, SidebarModule, SliderComponent, SliderModule, SpanSubtitleDirective, SpanTitleDirective, SpinnerComponent, SpinnerModule, StepperComponent, StepperModule, StepperStepComponent, TabDirective, TableComponent, TableModule, TabsComponent, TabsModule, TagTabComponent, TagTabModule, TooltipComponent, TooltipDirective, TooltipModule, VisaComponent, VisaItemComponent, VisaModule };
5344
+ export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebUiKitModule, BreadcrumpsComponent, ButtonComponent, ButtonModule, CheckboxComponent, CheckboxGroupOldComponent, CheckboxModule, CheckboxOldComponent, CheckboxOldModule, ClickOutsideDirective, ClickOutsideModule, CodeInputComponent, CodeInputModule, CommentComponent, CommentModule, CreditItemCardComponent, CreditItemCardModule, DateToStrPipe, DatepickerComponent, DatepickerCoreComponent, DatepickerModule, DatepickerMonthComponent, DatepickerTilesComponent, DragAndDropDirective, DropdownComponent, DropdownModule, ErrorMessageDirective, FileAttachComponent, FileAttachModule, FilterTagComponent, FilterTagsComponent, FilterTagsModule, FooterBottomComponent, FooterComponent, FooterMenuComponent, FooterModule, FooterTopComponent, FormFieldComponent, FormFieldDirective, FormFieldModule, HeaderComponent, HeaderModule, HeadingComponent, HeadingModule, IconDirective, LabelComponent, LabelDirective, LabelModule, LogoComponent, ModalComponent, ModalModule, NewsCardComponent, NewsCardModule, NotificationComponent, NotificationsComponent, NotificationsModule, OldButtonComponent, OldButtonModule, OptionComponent, PaginationComponent, PaginationModule, PaginationOldComponent, PaginationOldModule, PopUpComponent, PopUpDirective, PopUpModule, ProductTitleComponent, RadioButtonsComponent, RadioButtonsModule, ResponseComponent, ResponseModule, SearchComponent, SearchModule, SelectComponent, SelectModule, SidebarComponent, SidebarModule, SliderComponent, SliderModule, SpanSubtitleDirective, SpanTitleDirective, SpinnerComponent, SpinnerModule, StepperComponent, StepperModule, StepperStepComponent, TabDirective, TableComponent, TableModule, TabsComponent, TabsModule, TagTabComponent, TagTabModule, TooltipComponent, TooltipDirective, TooltipModule, VisaComponent, VisaItemComponent, VisaModule };
5499
5345
  //# sourceMappingURL=aeb-ui-kit.mjs.map