aeb-ui-kit 3.3.0-preview.648 → 3.3.0-preview.659
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.
- package/esm2020/lib/aeb-ui-kit.module.mjs +1 -8
- package/esm2020/lib/slider/directives/numbers-only.directive.mjs +70 -0
- package/esm2020/lib/slider/slider.component.mjs +55 -11
- package/esm2020/lib/slider/slider.module.mjs +4 -3
- package/esm2020/public-api.mjs +1 -3
- package/fesm2015/aeb-ui-kit.mjs +122 -276
- package/fesm2015/aeb-ui-kit.mjs.map +1 -1
- package/fesm2020/aeb-ui-kit.mjs +122 -276
- package/fesm2020/aeb-ui-kit.mjs.map +1 -1
- package/lib/aeb-ui-kit.module.d.ts +20 -21
- package/lib/slider/slider.component.d.ts +10 -4
- package/lib/slider/slider.module.d.ts +5 -4
- package/package.json +1 -1
- package/public-api.d.ts +0 -2
- package/styles.css +10 -10
- package/esm2020/lib/field-slider/directives/numbers-only.directive.mjs +0 -70
- package/esm2020/lib/field-slider/field-slider.component.mjs +0 -170
- package/esm2020/lib/field-slider/field-slider.module.mjs +0 -22
- package/esm2020/lib/field-slider/pipes/replace.pipe.mjs +0 -19
- package/lib/field-slider/field-slider.component.d.ts +0 -34
- package/lib/field-slider/field-slider.module.d.ts +0 -12
- package/lib/field-slider/pipes/replace.pipe.d.ts +0 -7
- /package/lib/{field-slider → slider}/directives/numbers-only.directive.d.ts +0 -0
package/fesm2015/aeb-ui-kit.mjs
CHANGED
|
@@ -2716,265 +2716,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
2716
2716
|
}]
|
|
2717
2717
|
}] });
|
|
2718
2718
|
|
|
2719
|
-
class NumbersOnlyDirective {
|
|
2720
|
-
constructor() {
|
|
2721
|
-
this.navigationKeys = [
|
|
2722
|
-
'Backspace',
|
|
2723
|
-
'Delete',
|
|
2724
|
-
'Tab',
|
|
2725
|
-
'Escape',
|
|
2726
|
-
'Enter',
|
|
2727
|
-
'Home',
|
|
2728
|
-
'End',
|
|
2729
|
-
'ArrowLeft',
|
|
2730
|
-
'ArrowRight',
|
|
2731
|
-
'Clear',
|
|
2732
|
-
'Copy',
|
|
2733
|
-
'Paste'
|
|
2734
|
-
];
|
|
2735
|
-
}
|
|
2736
|
-
onKeyDown(e) {
|
|
2737
|
-
if (
|
|
2738
|
-
// Allow: Delete, Backspace, Tab, Escape, Enter, etc
|
|
2739
|
-
this.navigationKeys.indexOf(e.key) > -1 ||
|
|
2740
|
-
(e.key === 'a' && e.ctrlKey === true) || // Allow: Ctrl+A
|
|
2741
|
-
(e.key === 'c' && e.ctrlKey === true) || // Allow: Ctrl+C
|
|
2742
|
-
(e.key === 'v' && e.ctrlKey === true) || // Allow: Ctrl+V
|
|
2743
|
-
(e.key === 'x' && e.ctrlKey === true) || // Allow: Ctrl+X
|
|
2744
|
-
(e.key === 'a' && e.metaKey === true) || // Cmd+A (Mac)
|
|
2745
|
-
(e.key === 'c' && e.metaKey === true) || // Cmd+C (Mac)
|
|
2746
|
-
(e.key === 'v' && e.metaKey === true) || // Cmd+V (Mac)
|
|
2747
|
-
(e.key === 'x' && e.metaKey === true) // Cmd+X (Mac)
|
|
2748
|
-
) {
|
|
2749
|
-
return; // let it happen, don't do anything
|
|
2750
|
-
}
|
|
2751
|
-
// Ensure that it is a number and stop the keypress
|
|
2752
|
-
if (e.key === ' ' || isNaN(Number(e.key))) {
|
|
2753
|
-
e.preventDefault();
|
|
2754
|
-
}
|
|
2755
|
-
}
|
|
2756
|
-
onPaste(event) {
|
|
2757
|
-
event.preventDefault();
|
|
2758
|
-
const pastedInput = event.clipboardData
|
|
2759
|
-
.getData('text/plain')
|
|
2760
|
-
.replace(/\D/g, ''); // get a digit-only string
|
|
2761
|
-
document.execCommand('insertText', false, pastedInput);
|
|
2762
|
-
}
|
|
2763
|
-
onDrop(event) {
|
|
2764
|
-
event.preventDefault();
|
|
2765
|
-
const textData = event.dataTransfer.getData('text').replace(/\D/g, '');
|
|
2766
|
-
document.execCommand('insertText', false, textData);
|
|
2767
|
-
}
|
|
2768
|
-
}
|
|
2769
|
-
NumbersOnlyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NumbersOnlyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2770
|
-
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 });
|
|
2771
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NumbersOnlyDirective, decorators: [{
|
|
2772
|
-
type: Directive,
|
|
2773
|
-
args: [{
|
|
2774
|
-
selector: '[aebNumbersOnly]'
|
|
2775
|
-
}]
|
|
2776
|
-
}], ctorParameters: function () { return []; }, propDecorators: { onKeyDown: [{
|
|
2777
|
-
type: HostListener,
|
|
2778
|
-
args: ['keydown', ['$event']]
|
|
2779
|
-
}], onPaste: [{
|
|
2780
|
-
type: HostListener,
|
|
2781
|
-
args: ['paste', ['$event']]
|
|
2782
|
-
}], onDrop: [{
|
|
2783
|
-
type: HostListener,
|
|
2784
|
-
args: ['drop', ['$event']]
|
|
2785
|
-
}] } });
|
|
2786
|
-
|
|
2787
|
-
class ReplacePipe$1 {
|
|
2788
|
-
transform(value, strToReplace, replacementStr) {
|
|
2789
|
-
if (!value || !strToReplace || !replacementStr) {
|
|
2790
|
-
return value;
|
|
2791
|
-
}
|
|
2792
|
-
return value.replace(new RegExp(strToReplace, 'g'), replacementStr);
|
|
2793
|
-
}
|
|
2794
|
-
}
|
|
2795
|
-
ReplacePipe$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ReplacePipe$1, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2796
|
-
ReplacePipe$1.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: ReplacePipe$1, name: "replace" });
|
|
2797
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ReplacePipe$1, decorators: [{
|
|
2798
|
-
type: Pipe,
|
|
2799
|
-
args: [{
|
|
2800
|
-
name: 'replace'
|
|
2801
|
-
}]
|
|
2802
|
-
}] });
|
|
2803
|
-
|
|
2804
|
-
class FieldSliderComponent {
|
|
2805
|
-
constructor(renderer) {
|
|
2806
|
-
this.renderer = renderer;
|
|
2807
|
-
this.label = '';
|
|
2808
|
-
this.prefix = '₽';
|
|
2809
|
-
this.min = 1000;
|
|
2810
|
-
this.max = 5000000;
|
|
2811
|
-
this.step = 1000;
|
|
2812
|
-
this.valueSeparator = ' ';
|
|
2813
|
-
this.isPressed = false;
|
|
2814
|
-
}
|
|
2815
|
-
get position() {
|
|
2816
|
-
const position = ((this.value - this.min) / (this.max - this.min)) * 100;
|
|
2817
|
-
if (position < 0) {
|
|
2818
|
-
return 0;
|
|
2819
|
-
}
|
|
2820
|
-
if (position > 100) {
|
|
2821
|
-
return 100;
|
|
2822
|
-
}
|
|
2823
|
-
return position;
|
|
2824
|
-
}
|
|
2825
|
-
handleStartDragging(event) {
|
|
2826
|
-
event.preventDefault();
|
|
2827
|
-
if (event.clientX) {
|
|
2828
|
-
this.handleChangeValue(event.clientX);
|
|
2829
|
-
}
|
|
2830
|
-
}
|
|
2831
|
-
handleEndDragging(event) {
|
|
2832
|
-
event.preventDefault();
|
|
2833
|
-
this.isPressed = false;
|
|
2834
|
-
document.removeAllListeners('mousemove');
|
|
2835
|
-
document.removeAllListeners('mouseup');
|
|
2836
|
-
}
|
|
2837
|
-
handleStartSwiping(event) {
|
|
2838
|
-
event.preventDefault();
|
|
2839
|
-
if (event.touches && event.touches.length) {
|
|
2840
|
-
const finger = event.touches[0];
|
|
2841
|
-
this.handleChangeValue(finger.clientX);
|
|
2842
|
-
}
|
|
2843
|
-
}
|
|
2844
|
-
handleEndSwipping(event) {
|
|
2845
|
-
event.preventDefault();
|
|
2846
|
-
this.isPressed = false;
|
|
2847
|
-
document.removeAllListeners('touchmove');
|
|
2848
|
-
document.removeAllListeners('touchend');
|
|
2849
|
-
document.removeAllListeners('touchcancel');
|
|
2850
|
-
}
|
|
2851
|
-
ngOnInit() {
|
|
2852
|
-
this.value = Number.isInteger(this.value) ? this.value : this.max / 2;
|
|
2853
|
-
this.updateDisplayValue();
|
|
2854
|
-
}
|
|
2855
|
-
ngAfterViewInit() {
|
|
2856
|
-
this.renderer.listen(this.slider.nativeElement, 'touchstart', (event) => {
|
|
2857
|
-
event.preventDefault();
|
|
2858
|
-
this.input.nativeElement.blur();
|
|
2859
|
-
this.handleStartSwiping(event);
|
|
2860
|
-
document.addEventListener('touchmove', this.handleStartSwiping.bind(this), { passive: false });
|
|
2861
|
-
document.addEventListener('touchend', this.handleEndSwipping.bind(this));
|
|
2862
|
-
document.addEventListener('touchcancel', this.handleEndSwipping.bind(this));
|
|
2863
|
-
});
|
|
2864
|
-
this.renderer.listen(this.slider.nativeElement, 'mousedown', (event) => {
|
|
2865
|
-
event.preventDefault();
|
|
2866
|
-
this.input.nativeElement.blur();
|
|
2867
|
-
this.handleStartDragging(event);
|
|
2868
|
-
document.addEventListener('mousemove', this.handleStartDragging.bind(this), false);
|
|
2869
|
-
document.addEventListener('mouseup', this.handleEndDragging.bind(this), false);
|
|
2870
|
-
});
|
|
2871
|
-
}
|
|
2872
|
-
writeValue(value) {
|
|
2873
|
-
if (value) {
|
|
2874
|
-
this.value = value;
|
|
2875
|
-
this.updateDisplayValue();
|
|
2876
|
-
}
|
|
2877
|
-
}
|
|
2878
|
-
registerOnChange(fn) {
|
|
2879
|
-
this.onChange = fn;
|
|
2880
|
-
}
|
|
2881
|
-
registerOnTouched() { }
|
|
2882
|
-
updateDisplayValue() {
|
|
2883
|
-
this.displayValue = this.value.toLocaleString('ru') + ' ' + this.prefix;
|
|
2884
|
-
}
|
|
2885
|
-
setCurrentDisplayValue() {
|
|
2886
|
-
this.displayValue = this.value;
|
|
2887
|
-
}
|
|
2888
|
-
changeValueByInput(value) {
|
|
2889
|
-
const parsedValue = parseInt(value, 10);
|
|
2890
|
-
if (parsedValue % this.step !== 0) {
|
|
2891
|
-
this.value = Math.round(parsedValue / this.step) * this.step;
|
|
2892
|
-
}
|
|
2893
|
-
else {
|
|
2894
|
-
this.value = parsedValue;
|
|
2895
|
-
}
|
|
2896
|
-
if (parsedValue < this.min || isNaN(parsedValue)) {
|
|
2897
|
-
this.value = this.min;
|
|
2898
|
-
}
|
|
2899
|
-
if (parsedValue > this.max) {
|
|
2900
|
-
this.value = this.max;
|
|
2901
|
-
}
|
|
2902
|
-
if (typeof this.onChange === 'function') {
|
|
2903
|
-
this.onChange(this.value);
|
|
2904
|
-
}
|
|
2905
|
-
}
|
|
2906
|
-
handleChangeValue(positionX) {
|
|
2907
|
-
this.isPressed = true;
|
|
2908
|
-
const offsetSlider = this.slider.nativeElement.getBoundingClientRect().left;
|
|
2909
|
-
const widthSlider = this.slider.nativeElement.getBoundingClientRect().width;
|
|
2910
|
-
let left = positionX - offsetSlider;
|
|
2911
|
-
if (left < 0) {
|
|
2912
|
-
left = 0;
|
|
2913
|
-
}
|
|
2914
|
-
if (left > widthSlider) {
|
|
2915
|
-
left = widthSlider;
|
|
2916
|
-
}
|
|
2917
|
-
const deltaX = (left / widthSlider) * (this.max - this.min);
|
|
2918
|
-
this.value = Math.round(deltaX / this.step) * this.step + this.min;
|
|
2919
|
-
this.updateDisplayValue();
|
|
2920
|
-
if (typeof this.onChange === 'function') {
|
|
2921
|
-
this.onChange(this.value);
|
|
2922
|
-
}
|
|
2923
|
-
}
|
|
2924
|
-
}
|
|
2925
|
-
FieldSliderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FieldSliderComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
2926
|
-
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: [
|
|
2927
|
-
{
|
|
2928
|
-
provide: NG_VALUE_ACCESSOR,
|
|
2929
|
-
useExisting: forwardRef(() => FieldSliderComponent),
|
|
2930
|
-
multi: true
|
|
2931
|
-
}
|
|
2932
|
-
], 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 });
|
|
2933
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FieldSliderComponent, decorators: [{
|
|
2934
|
-
type: Component,
|
|
2935
|
-
args: [{ selector: 'aeb-field-slider', encapsulation: ViewEncapsulation.None, providers: [
|
|
2936
|
-
{
|
|
2937
|
-
provide: NG_VALUE_ACCESSOR,
|
|
2938
|
-
useExisting: forwardRef(() => FieldSliderComponent),
|
|
2939
|
-
multi: true
|
|
2940
|
-
}
|
|
2941
|
-
], 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"] }]
|
|
2942
|
-
}], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { input: [{
|
|
2943
|
-
type: ViewChild,
|
|
2944
|
-
args: ['input']
|
|
2945
|
-
}], slider: [{
|
|
2946
|
-
type: ViewChild,
|
|
2947
|
-
args: ['slider']
|
|
2948
|
-
}], label: [{
|
|
2949
|
-
type: Input
|
|
2950
|
-
}], prefix: [{
|
|
2951
|
-
type: Input
|
|
2952
|
-
}], min: [{
|
|
2953
|
-
type: Input
|
|
2954
|
-
}], max: [{
|
|
2955
|
-
type: Input
|
|
2956
|
-
}], step: [{
|
|
2957
|
-
type: Input
|
|
2958
|
-
}], value: [{
|
|
2959
|
-
type: Input
|
|
2960
|
-
}], valueSeparator: [{
|
|
2961
|
-
type: Input
|
|
2962
|
-
}] } });
|
|
2963
|
-
|
|
2964
|
-
class FieldSliderModule {
|
|
2965
|
-
}
|
|
2966
|
-
FieldSliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FieldSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2967
|
-
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] });
|
|
2968
|
-
FieldSliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FieldSliderModule, imports: [CommonModule, FormFieldModule, FormsModule] });
|
|
2969
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FieldSliderModule, decorators: [{
|
|
2970
|
-
type: NgModule,
|
|
2971
|
-
args: [{
|
|
2972
|
-
declarations: [FieldSliderComponent, ReplacePipe$1, NumbersOnlyDirective],
|
|
2973
|
-
imports: [CommonModule, FormFieldModule, FormsModule],
|
|
2974
|
-
exports: [FieldSliderComponent]
|
|
2975
|
-
}]
|
|
2976
|
-
}] });
|
|
2977
|
-
|
|
2978
2719
|
class DragAndDropDirective {
|
|
2979
2720
|
constructor() {
|
|
2980
2721
|
this.fileChooseEvent$ = new EventEmitter();
|
|
@@ -4403,6 +4144,74 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
4403
4144
|
}]
|
|
4404
4145
|
}] });
|
|
4405
4146
|
|
|
4147
|
+
class NumbersOnlyDirective {
|
|
4148
|
+
constructor() {
|
|
4149
|
+
this.navigationKeys = [
|
|
4150
|
+
'Backspace',
|
|
4151
|
+
'Delete',
|
|
4152
|
+
'Tab',
|
|
4153
|
+
'Escape',
|
|
4154
|
+
'Enter',
|
|
4155
|
+
'Home',
|
|
4156
|
+
'End',
|
|
4157
|
+
'ArrowLeft',
|
|
4158
|
+
'ArrowRight',
|
|
4159
|
+
'Clear',
|
|
4160
|
+
'Copy',
|
|
4161
|
+
'Paste'
|
|
4162
|
+
];
|
|
4163
|
+
}
|
|
4164
|
+
onKeyDown(e) {
|
|
4165
|
+
if (
|
|
4166
|
+
// Allow: Delete, Backspace, Tab, Escape, Enter, etc
|
|
4167
|
+
this.navigationKeys.indexOf(e.key) > -1 ||
|
|
4168
|
+
(e.key === 'a' && e.ctrlKey === true) || // Allow: Ctrl+A
|
|
4169
|
+
(e.key === 'c' && e.ctrlKey === true) || // Allow: Ctrl+C
|
|
4170
|
+
(e.key === 'v' && e.ctrlKey === true) || // Allow: Ctrl+V
|
|
4171
|
+
(e.key === 'x' && e.ctrlKey === true) || // Allow: Ctrl+X
|
|
4172
|
+
(e.key === 'a' && e.metaKey === true) || // Cmd+A (Mac)
|
|
4173
|
+
(e.key === 'c' && e.metaKey === true) || // Cmd+C (Mac)
|
|
4174
|
+
(e.key === 'v' && e.metaKey === true) || // Cmd+V (Mac)
|
|
4175
|
+
(e.key === 'x' && e.metaKey === true) // Cmd+X (Mac)
|
|
4176
|
+
) {
|
|
4177
|
+
return; // let it happen, don't do anything
|
|
4178
|
+
}
|
|
4179
|
+
// Ensure that it is a number and stop the keypress
|
|
4180
|
+
if (e.key === ' ' || isNaN(Number(e.key))) {
|
|
4181
|
+
e.preventDefault();
|
|
4182
|
+
}
|
|
4183
|
+
}
|
|
4184
|
+
onPaste(event) {
|
|
4185
|
+
event.preventDefault();
|
|
4186
|
+
const pastedInput = event.clipboardData
|
|
4187
|
+
.getData('text/plain')
|
|
4188
|
+
.replace(/\D/g, ''); // get a digit-only string
|
|
4189
|
+
document.execCommand('insertText', false, pastedInput);
|
|
4190
|
+
}
|
|
4191
|
+
onDrop(event) {
|
|
4192
|
+
event.preventDefault();
|
|
4193
|
+
const textData = event.dataTransfer.getData('text').replace(/\D/g, '');
|
|
4194
|
+
document.execCommand('insertText', false, textData);
|
|
4195
|
+
}
|
|
4196
|
+
}
|
|
4197
|
+
NumbersOnlyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NumbersOnlyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4198
|
+
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 });
|
|
4199
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NumbersOnlyDirective, decorators: [{
|
|
4200
|
+
type: Directive,
|
|
4201
|
+
args: [{
|
|
4202
|
+
selector: '[aebNumbersOnly]'
|
|
4203
|
+
}]
|
|
4204
|
+
}], ctorParameters: function () { return []; }, propDecorators: { onKeyDown: [{
|
|
4205
|
+
type: HostListener,
|
|
4206
|
+
args: ['keydown', ['$event']]
|
|
4207
|
+
}], onPaste: [{
|
|
4208
|
+
type: HostListener,
|
|
4209
|
+
args: ['paste', ['$event']]
|
|
4210
|
+
}], onDrop: [{
|
|
4211
|
+
type: HostListener,
|
|
4212
|
+
args: ['drop', ['$event']]
|
|
4213
|
+
}] } });
|
|
4214
|
+
|
|
4406
4215
|
class ReplacePipe {
|
|
4407
4216
|
transform(value, strToReplace, replacementStr) {
|
|
4408
4217
|
if (!value || !strToReplace || !replacementStr) {
|
|
@@ -4423,10 +4232,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
4423
4232
|
class SliderComponent {
|
|
4424
4233
|
constructor(renderer) {
|
|
4425
4234
|
this.renderer = renderer;
|
|
4235
|
+
this.mode = 'standard';
|
|
4426
4236
|
/**
|
|
4427
|
-
* separator for currency value
|
|
4237
|
+
* separator for currency value
|
|
4428
4238
|
*/
|
|
4429
4239
|
this.valueSeparator = ' ';
|
|
4240
|
+
this.isSlider = true;
|
|
4430
4241
|
this.isPressed = false;
|
|
4431
4242
|
this.handleStartDragging = (event) => {
|
|
4432
4243
|
event.preventDefault();
|
|
@@ -4459,6 +4270,12 @@ class SliderComponent {
|
|
|
4459
4270
|
document.removeEventListener('touchcancel', this.handleEndSwiping);
|
|
4460
4271
|
};
|
|
4461
4272
|
}
|
|
4273
|
+
get isStandardMode() {
|
|
4274
|
+
return this.mode === 'standard';
|
|
4275
|
+
}
|
|
4276
|
+
get isInputMode() {
|
|
4277
|
+
return this.mode === 'input';
|
|
4278
|
+
}
|
|
4462
4279
|
get position() {
|
|
4463
4280
|
const position = ((this.value - this.min) / (this.max - this.min)) * 100;
|
|
4464
4281
|
if (position < 0) {
|
|
@@ -4476,12 +4293,20 @@ class SliderComponent {
|
|
|
4476
4293
|
else {
|
|
4477
4294
|
this.value = this.calculateAverage([this.min, this.max]);
|
|
4478
4295
|
}
|
|
4296
|
+
this.updateDisplayValue();
|
|
4479
4297
|
}
|
|
4480
4298
|
writeValue(value) {
|
|
4481
4299
|
if (value) {
|
|
4482
4300
|
this.value = value;
|
|
4301
|
+
this.updateDisplayValue();
|
|
4483
4302
|
}
|
|
4484
4303
|
}
|
|
4304
|
+
updateDisplayValue() {
|
|
4305
|
+
this.displayValue = this.value.toLocaleString('ru') + ' ' + this.prefix;
|
|
4306
|
+
}
|
|
4307
|
+
setCurrentDisplayValue() {
|
|
4308
|
+
this.displayValue = this.value;
|
|
4309
|
+
}
|
|
4485
4310
|
registerOnChange(fn) {
|
|
4486
4311
|
this.onChange = fn;
|
|
4487
4312
|
}
|
|
@@ -4505,9 +4330,23 @@ class SliderComponent {
|
|
|
4505
4330
|
document.addEventListener('mouseup', this.handleEndDragging, false);
|
|
4506
4331
|
});
|
|
4507
4332
|
}
|
|
4508
|
-
|
|
4509
|
-
const
|
|
4510
|
-
this.
|
|
4333
|
+
changeValueByInput(value) {
|
|
4334
|
+
const parsedValue = parseInt(value, 10);
|
|
4335
|
+
if (parsedValue % this.step !== 0) {
|
|
4336
|
+
this.value = Math.round(parsedValue / this.step) * this.step;
|
|
4337
|
+
}
|
|
4338
|
+
else {
|
|
4339
|
+
this.value = parsedValue;
|
|
4340
|
+
}
|
|
4341
|
+
if (parsedValue < this.min || isNaN(parsedValue)) {
|
|
4342
|
+
this.value = this.min;
|
|
4343
|
+
}
|
|
4344
|
+
if (parsedValue > this.max) {
|
|
4345
|
+
this.value = this.max;
|
|
4346
|
+
}
|
|
4347
|
+
if (typeof this.onChange === 'function') {
|
|
4348
|
+
this.onChange(this.value);
|
|
4349
|
+
}
|
|
4511
4350
|
}
|
|
4512
4351
|
onInputBlur() {
|
|
4513
4352
|
if (this.value < this.min) {
|
|
@@ -4516,6 +4355,7 @@ class SliderComponent {
|
|
|
4516
4355
|
else if (this.value > this.max) {
|
|
4517
4356
|
this.value = this.max;
|
|
4518
4357
|
}
|
|
4358
|
+
this.updateDisplayValue();
|
|
4519
4359
|
if (typeof this.onChange === 'function') {
|
|
4520
4360
|
this.onChange(this.value);
|
|
4521
4361
|
}
|
|
@@ -4536,19 +4376,20 @@ class SliderComponent {
|
|
|
4536
4376
|
}
|
|
4537
4377
|
const deltaX = (left / widthSlider) * (this.max - this.min);
|
|
4538
4378
|
this.value = Math.round(deltaX / this.step) * this.step + this.min;
|
|
4379
|
+
this.updateDisplayValue();
|
|
4539
4380
|
if (typeof this.onChange === 'function') {
|
|
4540
4381
|
this.onChange(this.value);
|
|
4541
4382
|
}
|
|
4542
4383
|
}
|
|
4543
4384
|
}
|
|
4544
4385
|
SliderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SliderComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
4545
|
-
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",
|
|
4386
|
+
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: [
|
|
4546
4387
|
{
|
|
4547
4388
|
provide: NG_VALUE_ACCESSOR,
|
|
4548
4389
|
useExisting: forwardRef(() => SliderComponent),
|
|
4549
4390
|
multi: true
|
|
4550
4391
|
}
|
|
4551
|
-
], viewQueries: [{ propertyName: "slider", first: true, predicate: ["slider"], descendants: true }], ngImport: i0, template: "<
|
|
4392
|
+
], 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{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(--color-blue-brand);border-radius:2px}.aeb-slider__line: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)}.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(--gray)}.aeb-slider--standard .aeb-slider__value{font-size:var(--font-size-md);font-weight:700;line-height:var(--line-height-medium);color:var(--color-mono-brand-dark)}.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(--gray)}.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)}\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 });
|
|
4552
4393
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SliderComponent, decorators: [{
|
|
4553
4394
|
type: Component,
|
|
4554
4395
|
args: [{ selector: 'aeb-slider', encapsulation: ViewEncapsulation.None, providers: [
|
|
@@ -4557,7 +4398,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
4557
4398
|
useExisting: forwardRef(() => SliderComponent),
|
|
4558
4399
|
multi: true
|
|
4559
4400
|
}
|
|
4560
|
-
], template: "<
|
|
4401
|
+
], 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{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(--color-blue-brand);border-radius:2px}.aeb-slider__line: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)}.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(--gray)}.aeb-slider--standard .aeb-slider__value{font-size:var(--font-size-md);font-weight:700;line-height:var(--line-height-medium);color:var(--color-mono-brand-dark)}.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(--gray)}.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)}\n"] }]
|
|
4561
4402
|
}], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { slider: [{
|
|
4562
4403
|
type: ViewChild,
|
|
4563
4404
|
args: ['slider']
|
|
@@ -4575,21 +4416,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
4575
4416
|
type: Input
|
|
4576
4417
|
}], value: [{
|
|
4577
4418
|
type: Input
|
|
4578
|
-
}],
|
|
4419
|
+
}], displayValue: [{
|
|
4420
|
+
type: Input
|
|
4421
|
+
}], mode: [{
|
|
4579
4422
|
type: Input
|
|
4580
4423
|
}], valueSeparator: [{
|
|
4581
4424
|
type: Input
|
|
4425
|
+
}], isSlider: [{
|
|
4426
|
+
type: HostBinding,
|
|
4427
|
+
args: ['class.aeb-slider']
|
|
4428
|
+
}], isStandardMode: [{
|
|
4429
|
+
type: HostBinding,
|
|
4430
|
+
args: ['class.aeb-slider--standard']
|
|
4431
|
+
}], isInputMode: [{
|
|
4432
|
+
type: HostBinding,
|
|
4433
|
+
args: ['class.aeb-slider--input']
|
|
4582
4434
|
}] } });
|
|
4583
4435
|
|
|
4584
4436
|
class SliderModule {
|
|
4585
4437
|
}
|
|
4586
4438
|
SliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4587
|
-
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] });
|
|
4439
|
+
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] });
|
|
4588
4440
|
SliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SliderModule, imports: [CommonModule, FormFieldModule, FormsModule] });
|
|
4589
4441
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SliderModule, decorators: [{
|
|
4590
4442
|
type: NgModule,
|
|
4591
4443
|
args: [{
|
|
4592
|
-
declarations: [SliderComponent, ReplacePipe],
|
|
4444
|
+
declarations: [SliderComponent, ReplacePipe, NumbersOnlyDirective],
|
|
4593
4445
|
imports: [CommonModule, FormFieldModule, FormsModule],
|
|
4594
4446
|
exports: [SliderComponent]
|
|
4595
4447
|
}]
|
|
@@ -5045,7 +4897,6 @@ AebUiKitModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
5045
4897
|
FileAttachModule,
|
|
5046
4898
|
CreditItemCardModule,
|
|
5047
4899
|
TagTabModule,
|
|
5048
|
-
FieldSliderModule,
|
|
5049
4900
|
TabsModule,
|
|
5050
4901
|
HeadingModule,
|
|
5051
4902
|
TooltipModule,
|
|
@@ -5080,7 +4931,6 @@ AebUiKitModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
5080
4931
|
FileAttachModule,
|
|
5081
4932
|
CreditItemCardModule,
|
|
5082
4933
|
TagTabModule,
|
|
5083
|
-
FieldSliderModule,
|
|
5084
4934
|
TabsModule,
|
|
5085
4935
|
HeadingModule,
|
|
5086
4936
|
TooltipModule,
|
|
@@ -5117,7 +4967,6 @@ AebUiKitModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
5117
4967
|
FileAttachModule,
|
|
5118
4968
|
CreditItemCardModule,
|
|
5119
4969
|
TagTabModule,
|
|
5120
|
-
FieldSliderModule,
|
|
5121
4970
|
TabsModule,
|
|
5122
4971
|
HeadingModule,
|
|
5123
4972
|
TooltipModule,
|
|
@@ -5152,7 +5001,6 @@ AebUiKitModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
5152
5001
|
FileAttachModule,
|
|
5153
5002
|
CreditItemCardModule,
|
|
5154
5003
|
TagTabModule,
|
|
5155
|
-
FieldSliderModule,
|
|
5156
5004
|
TabsModule,
|
|
5157
5005
|
HeadingModule,
|
|
5158
5006
|
TooltipModule,
|
|
@@ -5194,7 +5042,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
5194
5042
|
FileAttachModule,
|
|
5195
5043
|
CreditItemCardModule,
|
|
5196
5044
|
TagTabModule,
|
|
5197
|
-
FieldSliderModule,
|
|
5198
5045
|
TabsModule,
|
|
5199
5046
|
HeadingModule,
|
|
5200
5047
|
TooltipModule,
|
|
@@ -5232,7 +5079,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
5232
5079
|
FileAttachModule,
|
|
5233
5080
|
CreditItemCardModule,
|
|
5234
5081
|
TagTabModule,
|
|
5235
|
-
FieldSliderModule,
|
|
5236
5082
|
TabsModule,
|
|
5237
5083
|
HeadingModule,
|
|
5238
5084
|
TooltipModule,
|
|
@@ -5498,5 +5344,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
5498
5344
|
* Generated bundle index. Do not edit.
|
|
5499
5345
|
*/
|
|
5500
5346
|
|
|
5501
|
-
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,
|
|
5347
|
+
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 };
|
|
5502
5348
|
//# sourceMappingURL=aeb-ui-kit.mjs.map
|