@ngx-formly/material 6.1.0 → 6.1.2

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ChangeDetectionStrategy, ViewChild, InjectionToken, forwardRef, EventEmitter, Directive, Inject, Input, Output, NgModule } from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy, ViewChild, InjectionToken, forwardRef, EventEmitter, Directive, Inject, Input, Output, NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
3
3
  import { CommonModule } from '@angular/common';
4
4
  import * as i3 from '@ngx-formly/core';
5
5
  import { FormlyModule } from '@ngx-formly/core';
@@ -29,15 +29,6 @@ class FormlyFieldSlider$2 extends FieldType {
29
29
  (_b = (_a = this.slider).focus) === null || _b === void 0 ? void 0 : _b.call(_a);
30
30
  super.onContainerClick(event);
31
31
  }
32
- displayWith(value) {
33
- var _a;
34
- if ((_a = this.props) === null || _a === void 0 ? void 0 : _a.displayWith) {
35
- return String(this.props.displayWith(value));
36
- }
37
- else {
38
- return String(value);
39
- }
40
- }
41
32
  }
42
33
  FormlyFieldSlider$2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyFieldSlider$2, deps: null, target: i0.ɵɵFactoryTarget.Component });
43
34
  FormlyFieldSlider$2.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: FormlyFieldSlider$2, selector: "formly-field-mat-slider", viewQueries: [{ propertyName: "slider", first: true, predicate: MatSlider, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
@@ -48,12 +39,12 @@ FormlyFieldSlider$2.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
48
39
  [formlyAttributes]="field"
49
40
  [tabIndex]="props.tabindex"
50
41
  [color]="props.color"
51
- [displayWith]="displayWith"
42
+ [displayWith]="props.displayWith"
52
43
  [invert]="props.invert"
53
44
  [max]="props.max"
54
45
  [min]="props.min"
55
46
  [step]="props.step"
56
- [thumbLabel]="props.thumbLabel"
47
+ [thumbLabel]="props.thumbLabel || props.discrete"
57
48
  [tickInterval]="props.tickInterval"
58
49
  [valueText]="props.valueText"
59
50
  [vertical]="props.vertical"
@@ -74,12 +65,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
74
65
  [formlyAttributes]="field"
75
66
  [tabIndex]="props.tabindex"
76
67
  [color]="props.color"
77
- [displayWith]="displayWith"
68
+ [displayWith]="props.displayWith"
78
69
  [invert]="props.invert"
79
70
  [max]="props.max"
80
71
  [min]="props.min"
81
72
  [step]="props.step"
82
- [thumbLabel]="props.thumbLabel"
73
+ [thumbLabel]="props.thumbLabel || props.discrete"
83
74
  [tickInterval]="props.tickInterval"
84
75
  [valueText]="props.valueText"
85
76
  [vertical]="props.vertical"
@@ -132,6 +123,7 @@ const MAT_SLIDER_THUMB_VALUE_ACCESSOR = {
132
123
  * If one is used, the selector `matSliderThumb` must be used, and the outcome will be a normal
133
124
  * slider. If two are used, the selectors `matSliderStartThumb` and `matSliderEndThumb` must be
134
125
  * used, and the outcome will be a range slider with two slider thumbs.
126
+ * @ignore
135
127
  */
136
128
  class MatSliderThumb {
137
129
  constructor(_ngZone, _elementRef, _cdr, _slider) {
@@ -177,10 +169,13 @@ class MatSliderThumb {
177
169
  /** Callback called when the slider input has been touched. */
178
170
  this._onTouchedFn = () => { };
179
171
  this._hostElement = _elementRef.nativeElement;
172
+ this._onPointerDown = this._onPointerDown.bind(this);
173
+ this._onPointerMove = this._onPointerMove.bind(this);
174
+ this._onPointerUp = this._onPointerUp.bind(this);
180
175
  this._ngZone.runOutsideAngular(() => {
181
- this._hostElement.addEventListener('pointerdown', this._onPointerDown.bind(this));
182
- this._hostElement.addEventListener('pointermove', this._onPointerMove.bind(this));
183
- this._hostElement.addEventListener('pointerup', this._onPointerUp.bind(this));
176
+ this._hostElement.addEventListener('pointerdown', this._onPointerDown);
177
+ this._hostElement.addEventListener('pointermove', this._onPointerMove);
178
+ this._hostElement.addEventListener('pointerup', this._onPointerUp.bind);
184
179
  });
185
180
  }
186
181
  get value() {
@@ -361,6 +356,7 @@ class MatSliderThumb {
361
356
  }
362
357
  if (!this.disabled) {
363
358
  this._handleValueCorrection(event);
359
+ this.dragStart.emit({ source: this, parent: this._slider, value: this.value });
364
360
  }
365
361
  }
366
362
  /**
@@ -397,8 +393,6 @@ class MatSliderThumb {
397
393
  const impreciseValue = fixedPercentage * (this._slider.max - this._slider.min) + this._slider.min;
398
394
  const value = Math.round(impreciseValue / step) * step;
399
395
  const prevValue = this.value;
400
- const dragEvent = { source: this, parent: this._slider, value: value };
401
- this._isActive ? this.dragStart.emit(dragEvent) : this.dragEnd.emit(dragEvent);
402
396
  if (value === prevValue) {
403
397
  // Because we prevented UI updates, if it turns out that the race
404
398
  // condition didn't happen and the value is already correct, we
@@ -424,11 +418,11 @@ class MatSliderThumb {
424
418
  this._updateThumbUIByPointerEvent(event);
425
419
  }
426
420
  }
427
- _onPointerUp(event) {
428
- this._isActive = false;
429
- this._updateWidthInactive();
430
- if (!this.disabled) {
431
- this._handleValueCorrection(event);
421
+ _onPointerUp() {
422
+ if (this._isActive) {
423
+ this._isActive = false;
424
+ this.dragEnd.emit({ source: this, parent: this._slider, value: this.value });
425
+ setTimeout(() => this._updateWidthInactive());
432
426
  }
433
427
  }
434
428
  _clamp(v) {
@@ -547,12 +541,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
547
541
  type: Output
548
542
  }] } });
549
543
 
544
+ /**
545
+ * @ignore
546
+ */
550
547
  class FormlyFieldMDCSlider extends FormlyFieldSlider$2 {
551
548
  set mdcSlider(slider) {
552
549
  Object.defineProperty(slider, '_input', {
553
550
  set: () => { },
554
551
  get: () => this.sliderThumb,
555
552
  });
553
+ const visualThumb = {
554
+ _hostElement: {
555
+ classList: {
556
+ add: () => { },
557
+ remove: () => { },
558
+ },
559
+ },
560
+ };
561
+ // workarround for "ERROR TypeError: visualThumb is undefined" when `discrete` is set to `true`
562
+ slider._thumbs = { first: visualThumb, last: visualThumb };
556
563
  }
557
564
  onContainerClick(event) {
558
565
  var _a;
@@ -568,12 +575,14 @@ FormlyFieldMDCSlider.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
568
575
  [formlyAttributes]="field"
569
576
  [tabIndex]="props.tabindex"
570
577
  [color]="props.color"
571
- [displayWith]="displayWith"
578
+ [displayWith]="props.displayWith"
572
579
  [invert]="props.invert"
573
580
  [max]="props.max"
574
581
  [min]="props.min"
575
582
  [step]="props.step"
576
- [thumbLabel]="props.thumbLabel"
583
+ [discrete]="props.thumbLabel || props.discrete"
584
+ [showTickMarks]="props.showTickMarks"
585
+ [step]="props.step"
577
586
  [tickInterval]="props.tickInterval"
578
587
  [valueText]="props.valueText"
579
588
  [vertical]="props.vertical"
@@ -594,12 +603,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
594
603
  [formlyAttributes]="field"
595
604
  [tabIndex]="props.tabindex"
596
605
  [color]="props.color"
597
- [displayWith]="displayWith"
606
+ [displayWith]="props.displayWith"
598
607
  [invert]="props.invert"
599
608
  [max]="props.max"
600
609
  [min]="props.min"
601
610
  [step]="props.step"
602
- [thumbLabel]="props.thumbLabel"
611
+ [discrete]="props.thumbLabel || props.discrete"
612
+ [showTickMarks]="props.showTickMarks"
613
+ [step]="props.step"
603
614
  [tickInterval]="props.tickInterval"
604
615
  [valueText]="props.valueText"
605
616
  [vertical]="props.vertical"
@@ -667,6 +678,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
667
678
  ],
668
679
  }),
669
680
  ],
681
+ schemas: [NO_ERRORS_SCHEMA],
670
682
  }]
671
683
  }] });
672
684
 
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-material-slider.mjs","sources":["../../../../src/ui/material/slider/src/slider.type.ts","../../../../src/ui/material/slider/src/slider-interface.ts","../../../../src/ui/material/slider/src/slider-input.ts","../../../../src/ui/material/slider/src/slider-mdc.type.ts","../../../../src/ui/material/slider/src/slider.module.ts","../../../../src/ui/material/slider/src/public_api.ts","../../../../src/ui/material/slider/src/ngx-formly-material-slider.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ViewChild, Type } from '@angular/core';\nimport { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FieldType, FormlyFieldProps } from '@ngx-formly/material/form-field';\nimport { MatSlider, MatSliderChange } from '@angular/material/slider';\n\ninterface SliderProps extends FormlyFieldProps {\n displayWith?: (value: number) => string | number;\n invert?: boolean;\n thumbLabel?: boolean;\n tickInterval?: number;\n valueText?: string;\n vertical?: boolean;\n input?: (field: FormlyFieldConfig<SliderProps>, $event: MatSliderChange) => void;\n change?: (field: FormlyFieldConfig<SliderProps>, $event: MatSliderChange) => void;\n}\n\nexport interface FormlySliderFieldConfig extends FormlyFieldConfig<SliderProps> {\n type: 'slider' | Type<FormlyFieldSlider>;\n}\n\n@Component({\n selector: 'formly-field-mat-slider',\n template: `\n <mat-slider\n [id]=\"id\"\n [style.width]=\"'100%'\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [tabIndex]=\"props.tabindex\"\n [color]=\"props.color\"\n [displayWith]=\"displayWith\"\n [invert]=\"props.invert\"\n [max]=\"props.max\"\n [min]=\"props.min\"\n [step]=\"props.step\"\n [thumbLabel]=\"props.thumbLabel\"\n [tickInterval]=\"props.tickInterval\"\n [valueText]=\"props.valueText\"\n [vertical]=\"props.vertical\"\n (input)=\"props.input && props.input(field, $event)\"\n (change)=\"props.change && props.change(field, $event)\"\n >\n </mat-slider>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldSlider extends FieldType<FieldTypeConfig<SliderProps>> {\n @ViewChild(MatSlider, { static: true }) slider!: MatSlider;\n override defaultOptions = {\n props: {\n hideFieldUnderline: true,\n floatLabel: 'always' as const,\n thumbLabel: false,\n },\n };\n\n override onContainerClick(event: MouseEvent): void {\n this.slider.focus?.();\n super.onContainerClick(event);\n }\n\n displayWith(value: number) {\n if (this.props?.displayWith) {\n return String(this.props.displayWith(value));\n } else {\n return String(value);\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport { InjectionToken } from '@angular/core';\nimport { RippleGlobalOptions } from '@angular/material/core';\n\n/**\n * Thumb types: range slider has two thumbs (START, END) whereas single point\n * slider only has one thumb (END).\n */\nexport const enum _MatThumb {\n START = 1,\n END = 2,\n}\n\n/**\n * Injection token that can be used to query for a `MatSliderThumb`.\n * Used primarily to avoid circular imports.\n * @docs-private\n */\nexport const MAT_SLIDER_THUMB = new InjectionToken<{}>('_MatSliderThumb');\n\n/** Represents a drag event emitted by the MatSlider component. */\nexport interface MatSliderDragEvent {\n /** The MatSliderThumb that was interacted with. */\n source: _MatSliderThumb;\n\n /** The MatSlider that was interacted with. */\n parent: _MatSlider;\n\n /** The current value of the slider. */\n value: number;\n}\n\nexport interface _MatSlider {\n /** Gets the slider thumb input of the given thumb position. */\n _getInput(thumbPosition: _MatThumb): _MatSliderThumb | undefined;\n\n /** The minimum value that the slider can have. */\n min: number;\n\n /** The maximum value that the slider can have. */\n max: number;\n\n /** The amount that slider values can increment or decrement by. */\n step: number;\n\n /** Whether the slider is disabled. */\n disabled: boolean;\n\n /** Whether the slider is a range slider. */\n _isRange: boolean;\n\n /** Whether the slider is rtl. */\n _isRtl: boolean;\n\n /** The stored width of the host element's bounding client rect. */\n _cachedWidth: number;\n\n /** The stored width of the host element's bounding client rect. */\n _cachedLeft: number;\n\n /**\n * The padding of the native slider input. This is added in order to make the region where the\n * thumb ripple extends past the end of the slider track clickable.\n */\n _inputPadding: number;\n\n /**\n * The offset represents left most translateX of the slider knob. Inversely,\n * (slider width - offset) = the right most translateX of the slider knob.\n *\n * Note:\n * * The native slider knob differs from the visual slider. It's knob cannot slide past\n * the end of the track AT ALL.\n * * The visual slider knob CAN slide past the end of the track slightly. It's knob can slide\n * past the end of the track such that it's center lines up with the end of the track.\n */\n _inputOffset: number;\n\n /** The radius of the visual slider's ripple. */\n _rippleRadius: number;\n\n /** The global configuration for `matRipple` instances. */\n readonly _globalRippleOptions?: RippleGlobalOptions;\n\n /** Whether animations have been disabled. */\n _noopAnimations: boolean;\n\n /** Whether or not the slider should use animations. */\n _hasAnimation: boolean;\n\n /** Triggers UI updates that are needed after a slider input value has changed. */\n _onValueChange: (source: _MatSliderThumb) => void;\n\n /** Triggers UI updates that are needed after the slider thumb position has changed. */\n _onTranslateXChange: (source: _MatSliderThumb) => void;\n\n /** Updates the stored slider dimensions using the current bounding client rect. */\n _updateDimensions: () => void;\n\n /** Used to set the transition duration for thumb and track animations. */\n _setTransition: (withAnimation: boolean) => void;\n}\n\nexport interface _MatSliderThumb {\n /** The minimum value that the slider can have. */\n min: number;\n\n /** The maximum value that the slider can have. */\n max: number;\n\n /** The amount that slider values can increment or decrement by. */\n step: number;\n\n /** The current value of this slider input. */\n value: number;\n\n /** The current translateX in px of the slider visual thumb. */\n translateX: number;\n\n /** Indicates whether this thumb is the start or end thumb. */\n thumbPosition: _MatThumb;\n\n /** Similar to percentage but calcualted using translateX relative to the total track width. */\n fillPercentage: number;\n\n /** Whether the slider is disabled. */\n disabled: boolean;\n\n /** The host native HTML input element. */\n _hostElement: HTMLInputElement;\n\n /** Whether the input is currently focused (either by tab or after clicking). */\n _isFocused: boolean;\n\n /** The aria-valuetext string representation of the input's value. */\n _valuetext: string;\n\n /**\n * Indicates whether UI updates should be skipped.\n *\n * This flag is used to avoid flickering\n * when correcting values on pointer up/down.\n */\n _skipUIUpdate: boolean;\n\n /** Handles the initialization of properties for the slider input. */\n initProps: () => void;\n\n /** Handles UI initialization controlled by this slider input. */\n initUI: () => void;\n\n /** Calculates the visual thumb's translateX based on the slider input's current value. */\n _calcTranslateXByValue: () => number;\n\n /** Updates the visual thumb based on the slider input's current value. */\n _updateThumbUIByValue: () => void;\n\n /**\n * Sets the slider input to disproportionate dimensions to allow for touch\n * events to be captured on touch devices.\n */\n _updateWidthInactive: () => void;\n\n /**\n * Used to set the slider width to the correct\n * dimensions while the user is dragging.\n */\n _updateWidthActive: () => void;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport { BooleanInput, coerceBooleanProperty, coerceNumberProperty, NumberInput } from '@angular/cdk/coercion';\nimport {\n ChangeDetectorRef,\n Directive,\n ElementRef,\n EventEmitter,\n forwardRef,\n Inject,\n Input,\n NgZone,\n OnDestroy,\n Output,\n} from '@angular/core';\nimport { ControlValueAccessor, FormControl, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { MatSlider } from '@angular/material/slider';\nimport { Subject } from 'rxjs';\nimport { _MatThumb, MatSliderDragEvent, _MatSlider, _MatSliderThumb, MAT_SLIDER_THUMB } from './slider-interface';\n\n/**\n * Provider that allows the slider thumb to register as a ControlValueAccessor.\n * @docs-private\n */\nexport const MAT_SLIDER_THUMB_VALUE_ACCESSOR: any = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => MatSliderThumb),\n multi: true,\n};\n\n/**\n * Directive that adds slider-specific behaviors to an input element inside `<mat-slider>`.\n * Up to two may be placed inside of a `<mat-slider>`.\n *\n * If one is used, the selector `matSliderThumb` must be used, and the outcome will be a normal\n * slider. If two are used, the selectors `matSliderStartThumb` and `matSliderEndThumb` must be\n * used, and the outcome will be a range slider with two slider thumbs.\n */\n@Directive({\n // eslint-disable-next-line\n selector: 'input[matSliderThumb]',\n exportAs: 'matSliderThumb',\n host: {\n class: 'mdc-slider__input',\n type: 'range',\n '[attr.aria-valuetext]': '_valuetext',\n '(change)': '_onChange()',\n '(input)': '_onInput()',\n // TODO(wagnermaciel): Consider using a global event listener instead.\n // Reason: I have found a semi-consistent way to mouse up without triggering this event.\n '(blur)': '_onBlur()',\n '(focus)': '_onFocus()',\n },\n providers: [MAT_SLIDER_THUMB_VALUE_ACCESSOR, { provide: MAT_SLIDER_THUMB, useExisting: MatSliderThumb }],\n})\nexport class MatSliderThumb implements _MatSliderThumb, OnDestroy, ControlValueAccessor {\n @Input()\n get value(): number {\n return coerceNumberProperty(this._hostElement.value);\n }\n set value(v: NumberInput) {\n const val = coerceNumberProperty(v).toString();\n if (!this._hasSetInitialValue) {\n this._initialValue = val;\n return;\n }\n if (this._isActive) {\n return;\n }\n this._hostElement.value = val;\n this._updateThumbUIByValue();\n this._slider._onValueChange(this);\n this._cdr.detectChanges();\n }\n /** Event emitted when the `value` is changed. */\n @Output() readonly valueChange: EventEmitter<number> = new EventEmitter<number>();\n\n /** Event emitted when the slider thumb starts being dragged. */\n @Output() readonly dragStart: EventEmitter<MatSliderDragEvent> = new EventEmitter<MatSliderDragEvent>();\n\n /** Event emitted when the slider thumb stops being dragged. */\n @Output() readonly dragEnd: EventEmitter<MatSliderDragEvent> = new EventEmitter<MatSliderDragEvent>();\n\n /**\n * The current translateX in px of the slider visual thumb.\n * @docs-private\n */\n get translateX(): number {\n if (this._slider.min >= this._slider.max) {\n this._translateX = 0;\n return this._translateX;\n }\n if (this._translateX === undefined) {\n this._translateX = this._calcTranslateXByValue();\n }\n return this._translateX;\n }\n set translateX(v: number) {\n this._translateX = v;\n }\n private _translateX: number | undefined;\n\n /**\n * Indicates whether this thumb is the start or end thumb.\n * @docs-private\n */\n thumbPosition: _MatThumb = _MatThumb.END;\n\n /** @docs-private */\n get min(): number {\n return coerceNumberProperty(this._hostElement.min);\n }\n set min(v: NumberInput) {\n this._hostElement.min = coerceNumberProperty(v).toString();\n this._cdr.detectChanges();\n }\n\n /** @docs-private */\n get max(): number {\n return coerceNumberProperty(this._hostElement.max);\n }\n set max(v: NumberInput) {\n this._hostElement.max = coerceNumberProperty(v).toString();\n this._cdr.detectChanges();\n }\n\n get step(): number {\n return coerceNumberProperty(this._hostElement.step);\n }\n set step(v: NumberInput) {\n this._hostElement.step = coerceNumberProperty(v).toString();\n this._cdr.detectChanges();\n }\n\n /** @docs-private */\n get disabled(): boolean {\n return coerceBooleanProperty(this._hostElement.disabled);\n }\n set disabled(v: BooleanInput) {\n this._hostElement.disabled = coerceBooleanProperty(v);\n this._cdr.detectChanges();\n\n if (this._slider.disabled !== this.disabled) {\n this._slider.disabled = this.disabled;\n }\n }\n\n /** The percentage of the slider that coincides with the value. */\n get percentage(): number {\n if (this._slider.min >= this._slider.max) {\n return this._slider._isRtl ? 1 : 0;\n }\n return (this.value - this._slider.min) / (this._slider.max - this._slider.min);\n }\n\n /** @docs-private */\n get fillPercentage(): number {\n if (!this._slider._cachedWidth) {\n return this._slider._isRtl ? 1 : 0;\n }\n if (this._translateX === 0) {\n return 0;\n }\n return this.translateX / this._slider._cachedWidth;\n }\n\n /** The host native HTML input element. */\n _hostElement: HTMLInputElement;\n\n /** The aria-valuetext string representation of the input's value. */\n _valuetext: string;\n\n /** The radius of a native html slider's knob. */\n _knobRadius: number = 8;\n\n /** Whether user's cursor is currently in a mouse down state on the input. */\n _isActive: boolean = false;\n\n /** Whether the input is currently focused (either by tab or after clicking). */\n _isFocused: boolean = false;\n\n /** Used to relay updates to _isFocused to the slider visual thumbs. */\n private _setIsFocused(v: boolean): void {\n this._isFocused = v;\n }\n\n /**\n * Whether the initial value has been set.\n * This exists because the initial value cannot be immediately set because the min and max\n * must first be relayed from the parent MatSlider component, which can only happen later\n * in the component lifecycle.\n */\n private _hasSetInitialValue: boolean = false;\n\n /** The stored initial value. */\n _initialValue: string | undefined;\n\n /** Defined when a user is using a form control to manage slider value & validation. */\n private _formControl: FormControl | undefined;\n\n /** Emits when the component is destroyed. */\n protected readonly _destroyed = new Subject<void>();\n\n /**\n * Indicates whether UI updates should be skipped.\n *\n * This flag is used to avoid flickering\n * when correcting values on pointer up/down.\n */\n _skipUIUpdate: boolean = false;\n\n /** Callback called when the slider input value changes. */\n private _onChangeFn: (value: any) => void = () => {};\n\n /** Callback called when the slider input has been touched. */\n private _onTouchedFn: () => void = () => {};\n\n constructor(\n readonly _ngZone: NgZone,\n readonly _elementRef: ElementRef<HTMLInputElement>,\n readonly _cdr: ChangeDetectorRef,\n @Inject(MatSlider) protected _slider: _MatSlider,\n ) {\n this._hostElement = _elementRef.nativeElement;\n this._ngZone.runOutsideAngular(() => {\n this._hostElement.addEventListener('pointerdown', this._onPointerDown.bind(this));\n this._hostElement.addEventListener('pointermove', this._onPointerMove.bind(this));\n this._hostElement.addEventListener('pointerup', this._onPointerUp.bind(this));\n });\n }\n\n ngOnDestroy(): void {\n this._hostElement.removeEventListener('pointerdown', this._onPointerDown);\n this._hostElement.removeEventListener('pointermove', this._onPointerMove);\n this._hostElement.removeEventListener('pointerup', this._onPointerUp);\n this._destroyed.next();\n this._destroyed.complete();\n this.dragStart.complete();\n this.dragEnd.complete();\n }\n\n /** @docs-private */\n initProps(): void {\n this._updateWidthInactive();\n\n // If this or the parent slider is disabled, just make everything disabled.\n if (this.disabled !== this._slider.disabled) {\n // The MatSlider setter for disabled will relay this and disable both inputs.\n this._slider.disabled = true;\n }\n\n this.step = this._slider.step;\n this.min = this._slider.min;\n this.max = this._slider.max;\n this._initValue();\n }\n\n /** @docs-private */\n initUI(): void {\n this._updateThumbUIByValue();\n }\n\n _initValue(): void {\n this._hasSetInitialValue = true;\n if (this._initialValue === undefined) {\n this.value = this._getDefaultValue();\n } else {\n this._hostElement.value = this._initialValue;\n this._updateThumbUIByValue();\n this._slider._onValueChange(this);\n this._cdr.detectChanges();\n }\n }\n\n _getDefaultValue(): number {\n return this.min;\n }\n\n _onBlur(): void {\n this._setIsFocused(false);\n this._onTouchedFn();\n }\n\n _onFocus(): void {\n this._setIsFocused(true);\n }\n\n _onChange(): void {\n // only used to handle the edge case where user\n // mousedown on the slider then uses arrow keys.\n if (this._isActive) {\n this._updateThumbUIByValue({ withAnimation: true });\n }\n }\n\n _onInput(): void {\n this.valueChange.emit(this.value);\n this._onChangeFn(this.value);\n // handles arrowing and updating the value when\n // a step is defined.\n if (this._slider.step || !this._isActive) {\n this._updateThumbUIByValue({ withAnimation: true });\n }\n this._slider._onValueChange(this);\n }\n\n _onNgControlValueChange(): void {\n // only used to handle when the value change\n // originates outside of the slider.\n if (!this._isActive || !this._isFocused) {\n this._slider._onValueChange(this);\n this._updateThumbUIByValue();\n }\n this._slider.disabled = this._formControl!.disabled;\n }\n\n _onPointerDown(event: PointerEvent): void {\n if (this.disabled || event.button !== 0) {\n return;\n }\n\n this._isActive = true;\n this._setIsFocused(true);\n this._updateWidthActive();\n this._slider._updateDimensions();\n\n // Does nothing if a step is defined because we\n // want the value to snap to the values on input.\n if (!this._slider.step) {\n this._updateThumbUIByPointerEvent(event, { withAnimation: true });\n }\n\n if (!this.disabled) {\n this._handleValueCorrection(event);\n }\n }\n\n /**\n * Corrects the value of the slider on pointer up/down.\n *\n * Called on pointer down and up because the value is set based\n * on the inactive width instead of the active width.\n */\n private _handleValueCorrection(event: PointerEvent): void {\n // Don't update the UI with the current value! The value on pointerdown\n // and pointerup is calculated in the split second before the input(s)\n // resize. See _updateWidthInactive() and _updateWidthActive() for more\n // details.\n this._skipUIUpdate = true;\n\n // Note that this function gets triggered before the actual value of the\n // slider is updated. This means if we were to set the value here, it\n // would immediately be overwritten. Using setTimeout ensures the setting\n // of the value happens after the value has been updated by the\n // pointerdown event.\n setTimeout(() => {\n this._skipUIUpdate = false;\n this._fixValue(event);\n }, 0);\n }\n\n /** Corrects the value of the slider based on the pointer event's position. */\n _fixValue(event: PointerEvent): void {\n const xPos = event.clientX - this._slider._cachedLeft;\n const width = this._slider._cachedWidth;\n const step = this._slider.step === 0 ? 1 : this._slider.step;\n const numSteps = Math.floor((this._slider.max - this._slider.min) / step);\n const percentage = this._slider._isRtl ? 1 - xPos / width : xPos / width;\n\n // To ensure the percentage is rounded to the necessary number of decimals.\n const fixedPercentage = Math.round(percentage * numSteps) / numSteps;\n\n const impreciseValue = fixedPercentage * (this._slider.max - this._slider.min) + this._slider.min;\n const value = Math.round(impreciseValue / step) * step;\n\n const prevValue = this.value;\n const dragEvent = { source: this, parent: this._slider, value: value };\n this._isActive ? this.dragStart.emit(dragEvent) : this.dragEnd.emit(dragEvent);\n\n if (value === prevValue) {\n // Because we prevented UI updates, if it turns out that the race\n // condition didn't happen and the value is already correct, we\n // have to apply the ui updates now.\n this._slider._onValueChange(this);\n this._slider.step > 0\n ? this._updateThumbUIByValue()\n : this._updateThumbUIByPointerEvent(event, { withAnimation: this._slider._hasAnimation });\n return;\n }\n\n this.value = value;\n this.valueChange.emit(this.value);\n this._onChangeFn(this.value);\n this._slider._onValueChange(this);\n this._slider.step > 0\n ? this._updateThumbUIByValue()\n : this._updateThumbUIByPointerEvent(event, { withAnimation: this._slider._hasAnimation });\n }\n\n _onPointerMove(event: PointerEvent): void {\n // Again, does nothing if a step is defined because\n // we want the value to snap to the values on input.\n if (!this._slider.step && this._isActive) {\n this._updateThumbUIByPointerEvent(event);\n }\n }\n\n _onPointerUp(event: PointerEvent): void {\n this._isActive = false;\n this._updateWidthInactive();\n if (!this.disabled) {\n this._handleValueCorrection(event);\n }\n }\n\n _clamp(v: number): number {\n return Math.max(Math.min(v, this._slider._cachedWidth), 0);\n }\n\n _calcTranslateXByValue(): number {\n if (this._slider._isRtl) {\n return (1 - this.percentage) * this._slider._cachedWidth;\n }\n return this.percentage * this._slider._cachedWidth;\n }\n\n _calcTranslateXByPointerEvent(event: PointerEvent): number {\n return event.clientX - this._slider._cachedLeft;\n }\n\n /**\n * Used to set the slider width to the correct\n * dimensions while the user is dragging.\n */\n _updateWidthActive(): void {\n this._hostElement.style.padding = `0 ${this._slider._inputPadding}px`;\n this._hostElement.style.width = `calc(100% + ${this._slider._inputPadding}px)`;\n }\n\n /**\n * Sets the slider input to disproportionate dimensions to allow for touch\n * events to be captured on touch devices.\n */\n _updateWidthInactive(): void {\n this._hostElement.style.padding = '0px';\n this._hostElement.style.width = 'calc(100% + 48px)';\n this._hostElement.style.left = '-24px';\n }\n\n _updateThumbUIByValue(options?: { withAnimation: boolean }): void {\n this.translateX = this._clamp(this._calcTranslateXByValue());\n this._updateThumbUI(options);\n }\n\n _updateThumbUIByPointerEvent(event: PointerEvent, options?: { withAnimation: boolean }): void {\n this.translateX = this._clamp(this._calcTranslateXByPointerEvent(event));\n this._updateThumbUI(options);\n }\n\n _updateThumbUI(options?: { withAnimation: boolean }) {\n this._slider._setTransition(!!options?.withAnimation);\n this._slider._onTranslateXChange(this);\n }\n\n /**\n * Sets the input's value.\n * @param value The new value of the input\n * @docs-private\n */\n writeValue(value: any): void {\n this.value = value;\n }\n\n /**\n * Registers a callback to be invoked when the input's value changes from user input.\n * @param fn The callback to register\n * @docs-private\n */\n registerOnChange(fn: any): void {\n this._onChangeFn = fn;\n }\n\n /**\n * Registers a callback to be invoked when the input is blurred by the user.\n * @param fn The callback to register\n * @docs-private\n */\n registerOnTouched(fn: any): void {\n this._onTouchedFn = fn;\n }\n\n /**\n * Sets the disabled state of the slider.\n * @param isDisabled The new disabled state\n * @docs-private\n */\n setDisabledState(isDisabled: boolean): void {\n this.disabled = isDisabled;\n }\n\n focus(): void {\n this._hostElement.focus();\n }\n\n blur(): void {\n this._hostElement.blur();\n }\n}\n","import { Component, ChangeDetectionStrategy, ViewChild } from '@angular/core';\nimport { MatSlider } from '@angular/material/slider';\nimport { MAT_SLIDER_THUMB, _MatSlider, _MatSliderThumb } from './slider-interface';\nimport { FormlyFieldSlider } from './slider.type';\n\n@Component({\n selector: 'formly-field-mat-slider',\n template: `\n <mat-slider\n [id]=\"id\"\n [style.width]=\"'100%'\"\n [formlyAttributes]=\"field\"\n [tabIndex]=\"props.tabindex\"\n [color]=\"props.color\"\n [displayWith]=\"displayWith\"\n [invert]=\"props.invert\"\n [max]=\"props.max\"\n [min]=\"props.min\"\n [step]=\"props.step\"\n [thumbLabel]=\"props.thumbLabel\"\n [tickInterval]=\"props.tickInterval\"\n [valueText]=\"props.valueText\"\n [vertical]=\"props.vertical\"\n (input)=\"props.input && props.input(field, $event)\"\n (change)=\"props.change && props.change(field, $event)\"\n >\n <input matSliderThumb [formControl]=\"formControl\" [formlyAttributes]=\"field\" />\n </mat-slider>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldMDCSlider extends FormlyFieldSlider {\n @ViewChild(MAT_SLIDER_THUMB, { static: true }) sliderThumb: _MatSliderThumb;\n @ViewChild(MatSlider, { static: true }) set mdcSlider(slider: _MatSlider) {\n Object.defineProperty(slider, '_input', {\n set: () => {},\n get: () => this.sliderThumb,\n });\n }\n\n override onContainerClick(event: MouseEvent): void {\n this.sliderThumb?._hostElement.focus();\n super.onContainerClick(event);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { MatSliderModule } from '@angular/material/slider';\nimport { FormlyMatFormFieldModule } from '@ngx-formly/material/form-field';\nimport { VERSION } from '@angular/cdk';\n\nimport { MatCommonModule, MatRippleModule } from '@angular/material/core';\nimport { FormlyFieldSlider as LegacyFormlyFieldSlider } from './slider.type';\nimport { FormlyFieldMDCSlider } from './slider-mdc.type';\nimport { MatSliderThumb } from './slider-input';\nconst FormlyFieldSlider = Number(VERSION.major) >= 15 ? FormlyFieldMDCSlider : LegacyFormlyFieldSlider;\n\n@NgModule({\n declarations: [LegacyFormlyFieldSlider, FormlyFieldMDCSlider, MatSliderThumb],\n imports: [\n CommonModule,\n MatCommonModule,\n MatRippleModule,\n ReactiveFormsModule,\n MatSliderModule,\n FormlyMatFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'slider',\n component: FormlyFieldSlider,\n wrappers: ['form-field'],\n },\n ],\n }),\n ],\n})\nexport class FormlyMatSliderModule {}\n","import { FormlyMatSliderModule } from './slider.module';\nimport { FormlyFieldSlider as LegacyFormlyFieldSlider, FormlySliderFieldConfig } from './slider.type';\nimport { FormlyFieldMDCSlider } from './slider-mdc.type';\n\nimport { VERSION } from '@angular/cdk';\n\nconst FormlyFieldSlider = Number(VERSION.major) >= 15 ? FormlyFieldMDCSlider : LegacyFormlyFieldSlider;\nexport { FormlyMatSliderModule, FormlyFieldSlider, FormlySliderFieldConfig };\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["FormlyFieldSlider","i2","i3.MatSliderThumb","LegacyFormlyFieldSlider","i1"],"mappings":";;;;;;;;;;;;;;;AA8CM,MAAOA,mBAAkB,SAAQ,SAAuC,CAAA;AA1B9E,IAAA,WAAA,GAAA;;QA4BW,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,kBAAkB,EAAE,IAAI;AACxB,gBAAA,UAAU,EAAE,QAAiB;AAC7B,gBAAA,UAAU,EAAE,KAAK;AAClB,aAAA;SACF,CAAC;KAcH;AAZU,IAAA,gBAAgB,CAAC,KAAiB,EAAA;;AACzC,QAAA,CAAA,EAAA,GAAA,MAAA,IAAI,CAAC,MAAM,EAAC,KAAK,kDAAI,CAAC;AACtB,QAAA,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;KAC/B;AAED,IAAA,WAAW,CAAC,KAAa,EAAA;;AACvB,QAAA,IAAI,MAAA,IAAI,CAAC,KAAK,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAE,WAAW,EAAE;YAC3B,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;AAC9C,SAAA;AAAM,aAAA;AACL,YAAA,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;AACtB,SAAA;KACF;;iHArBUA,mBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,E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AY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAEH,mBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;AC3BD,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,oBAAoB,GAAGG;;ACN/E;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-material-slider.mjs","sources":["../../../../src/ui/material/slider/src/slider.type.ts","../../../../src/ui/material/slider/src/slider-interface.ts","../../../../src/ui/material/slider/src/slider-input.ts","../../../../src/ui/material/slider/src/slider-mdc.type.ts","../../../../src/ui/material/slider/src/slider.module.ts","../../../../src/ui/material/slider/src/public_api.ts","../../../../src/ui/material/slider/src/ngx-formly-material-slider.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ViewChild, Type } from '@angular/core';\nimport { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FieldType, FormlyFieldProps } from '@ngx-formly/material/form-field';\nimport { MatSlider, MatSliderChange } from '@angular/material/slider';\n\ninterface SliderProps extends FormlyFieldProps {\n displayWith?: (value: number) => string | number;\n invert?: boolean;\n tickInterval?: number;\n valueText?: string;\n vertical?: boolean;\n input?: (field: FormlyFieldConfig<SliderProps>, $event: MatSliderChange) => void;\n change?: (field: FormlyFieldConfig<SliderProps>, $event: MatSliderChange) => void;\n\n /** @deprecated Use `discrete` instead. */\n thumbLabel?: boolean;\n discrete?: boolean;\n showTickMarks?: boolean;\n}\n\nexport interface FormlySliderFieldConfig extends FormlyFieldConfig<SliderProps> {\n type: 'slider' | Type<FormlyFieldSlider>;\n}\n\n@Component({\n selector: 'formly-field-mat-slider',\n template: `\n <mat-slider\n [id]=\"id\"\n [style.width]=\"'100%'\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [tabIndex]=\"props.tabindex\"\n [color]=\"props.color\"\n [displayWith]=\"props.displayWith\"\n [invert]=\"props.invert\"\n [max]=\"props.max\"\n [min]=\"props.min\"\n [step]=\"props.step\"\n [thumbLabel]=\"props.thumbLabel || props.discrete\"\n [tickInterval]=\"props.tickInterval\"\n [valueText]=\"props.valueText\"\n [vertical]=\"props.vertical\"\n (input)=\"props.input && props.input(field, $event)\"\n (change)=\"props.change && props.change(field, $event)\"\n >\n </mat-slider>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldSlider extends FieldType<FieldTypeConfig<SliderProps>> {\n @ViewChild(MatSlider, { static: true }) slider!: MatSlider;\n override defaultOptions = {\n props: {\n hideFieldUnderline: true,\n floatLabel: 'always' as const,\n thumbLabel: false,\n },\n };\n\n override onContainerClick(event: MouseEvent): void {\n this.slider.focus?.();\n super.onContainerClick(event);\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport { InjectionToken } from '@angular/core';\nimport { RippleGlobalOptions } from '@angular/material/core';\n\n/**\n * Thumb types: range slider has two thumbs (START, END) whereas single point\n * slider only has one thumb (END).\n */\nexport const enum _MatThumb {\n START = 1,\n END = 2,\n}\n\n/**\n * Injection token that can be used to query for a `MatSliderThumb`.\n * Used primarily to avoid circular imports.\n * @docs-private\n */\nexport const MAT_SLIDER_THUMB = new InjectionToken<{}>('_MatSliderThumb');\n\n/**\n * Represents a drag event emitted by the MatSlider component.\n * @ignore\n */\nexport interface MatSliderDragEvent {\n /** The MatSliderThumb that was interacted with. */\n source: _MatSliderThumb;\n\n /** The MatSlider that was interacted with. */\n parent: _MatSlider;\n\n /** The current value of the slider. */\n value: number;\n}\n\n/** @ignore */\nexport interface _MatSlider {\n /** Gets the slider thumb input of the given thumb position. */\n _getInput(thumbPosition: _MatThumb): _MatSliderThumb | undefined;\n\n /** The minimum value that the slider can have. */\n min: number;\n\n /** The maximum value that the slider can have. */\n max: number;\n\n /** The amount that slider values can increment or decrement by. */\n step: number;\n\n /** Whether the slider is disabled. */\n disabled: boolean;\n\n /** Whether the slider is a range slider. */\n _isRange: boolean;\n\n /** Whether the slider is rtl. */\n _isRtl: boolean;\n\n /** The stored width of the host element's bounding client rect. */\n _cachedWidth: number;\n\n /** The stored width of the host element's bounding client rect. */\n _cachedLeft: number;\n\n /**\n * The padding of the native slider input. This is added in order to make the region where the\n * thumb ripple extends past the end of the slider track clickable.\n */\n _inputPadding: number;\n\n /**\n * The offset represents left most translateX of the slider knob. Inversely,\n * (slider width - offset) = the right most translateX of the slider knob.\n *\n * Note:\n * * The native slider knob differs from the visual slider. It's knob cannot slide past\n * the end of the track AT ALL.\n * * The visual slider knob CAN slide past the end of the track slightly. It's knob can slide\n * past the end of the track such that it's center lines up with the end of the track.\n */\n _inputOffset: number;\n\n /** The radius of the visual slider's ripple. */\n _rippleRadius: number;\n\n /** The global configuration for `matRipple` instances. */\n readonly _globalRippleOptions?: RippleGlobalOptions;\n\n /** Whether animations have been disabled. */\n _noopAnimations: boolean;\n\n /** Whether or not the slider should use animations. */\n _hasAnimation: boolean;\n\n /** Triggers UI updates that are needed after a slider input value has changed. */\n _onValueChange: (source: _MatSliderThumb) => void;\n\n /** Triggers UI updates that are needed after the slider thumb position has changed. */\n _onTranslateXChange: (source: _MatSliderThumb) => void;\n\n /** Updates the stored slider dimensions using the current bounding client rect. */\n _updateDimensions: () => void;\n\n /** Used to set the transition duration for thumb and track animations. */\n _setTransition: (withAnimation: boolean) => void;\n}\n\n/** @ignore */\nexport interface _MatSliderThumb {\n /** The minimum value that the slider can have. */\n min: number;\n\n /** The maximum value that the slider can have. */\n max: number;\n\n /** The amount that slider values can increment or decrement by. */\n step: number;\n\n /** The current value of this slider input. */\n value: number;\n\n /** The current translateX in px of the slider visual thumb. */\n translateX: number;\n\n /** Indicates whether this thumb is the start or end thumb. */\n thumbPosition: _MatThumb;\n\n /** Similar to percentage but calcualted using translateX relative to the total track width. */\n fillPercentage: number;\n\n /** Whether the slider is disabled. */\n disabled: boolean;\n\n /** The host native HTML input element. */\n _hostElement: HTMLInputElement;\n\n /** Whether the input is currently focused (either by tab or after clicking). */\n _isFocused: boolean;\n\n /** The aria-valuetext string representation of the input's value. */\n _valuetext: string;\n\n /**\n * Indicates whether UI updates should be skipped.\n *\n * This flag is used to avoid flickering\n * when correcting values on pointer up/down.\n */\n _skipUIUpdate: boolean;\n\n /** Handles the initialization of properties for the slider input. */\n initProps: () => void;\n\n /** Handles UI initialization controlled by this slider input. */\n initUI: () => void;\n\n /** Calculates the visual thumb's translateX based on the slider input's current value. */\n _calcTranslateXByValue: () => number;\n\n /** Updates the visual thumb based on the slider input's current value. */\n _updateThumbUIByValue: () => void;\n\n /**\n * Sets the slider input to disproportionate dimensions to allow for touch\n * events to be captured on touch devices.\n */\n _updateWidthInactive: () => void;\n\n /**\n * Used to set the slider width to the correct\n * dimensions while the user is dragging.\n */\n _updateWidthActive: () => void;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport { BooleanInput, coerceBooleanProperty, coerceNumberProperty, NumberInput } from '@angular/cdk/coercion';\nimport {\n ChangeDetectorRef,\n Directive,\n ElementRef,\n EventEmitter,\n forwardRef,\n Inject,\n Input,\n NgZone,\n OnDestroy,\n Output,\n} from '@angular/core';\nimport { ControlValueAccessor, FormControl, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { MatSlider } from '@angular/material/slider';\nimport { Subject } from 'rxjs';\nimport { _MatThumb, MatSliderDragEvent, _MatSlider, _MatSliderThumb, MAT_SLIDER_THUMB } from './slider-interface';\n\n/**\n * Provider that allows the slider thumb to register as a ControlValueAccessor.\n * @docs-private\n */\nexport const MAT_SLIDER_THUMB_VALUE_ACCESSOR: any = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => MatSliderThumb),\n multi: true,\n};\n\n/**\n * Directive that adds slider-specific behaviors to an input element inside `<mat-slider>`.\n * Up to two may be placed inside of a `<mat-slider>`.\n *\n * If one is used, the selector `matSliderThumb` must be used, and the outcome will be a normal\n * slider. If two are used, the selectors `matSliderStartThumb` and `matSliderEndThumb` must be\n * used, and the outcome will be a range slider with two slider thumbs.\n * @ignore\n */\n@Directive({\n // eslint-disable-next-line\n selector: 'input[matSliderThumb]',\n exportAs: 'matSliderThumb',\n host: {\n class: 'mdc-slider__input',\n type: 'range',\n '[attr.aria-valuetext]': '_valuetext',\n '(change)': '_onChange()',\n '(input)': '_onInput()',\n // TODO(wagnermaciel): Consider using a global event listener instead.\n // Reason: I have found a semi-consistent way to mouse up without triggering this event.\n '(blur)': '_onBlur()',\n '(focus)': '_onFocus()',\n },\n providers: [MAT_SLIDER_THUMB_VALUE_ACCESSOR, { provide: MAT_SLIDER_THUMB, useExisting: MatSliderThumb }],\n})\nexport class MatSliderThumb implements _MatSliderThumb, OnDestroy, ControlValueAccessor {\n @Input()\n get value(): number {\n return coerceNumberProperty(this._hostElement.value);\n }\n set value(v: NumberInput) {\n const val = coerceNumberProperty(v).toString();\n if (!this._hasSetInitialValue) {\n this._initialValue = val;\n return;\n }\n if (this._isActive) {\n return;\n }\n this._hostElement.value = val;\n this._updateThumbUIByValue();\n this._slider._onValueChange(this);\n this._cdr.detectChanges();\n }\n /** Event emitted when the `value` is changed. */\n @Output() readonly valueChange: EventEmitter<number> = new EventEmitter<number>();\n\n /** Event emitted when the slider thumb starts being dragged. */\n @Output() readonly dragStart: EventEmitter<MatSliderDragEvent> = new EventEmitter<MatSliderDragEvent>();\n\n /** Event emitted when the slider thumb stops being dragged. */\n @Output() readonly dragEnd: EventEmitter<MatSliderDragEvent> = new EventEmitter<MatSliderDragEvent>();\n\n /**\n * The current translateX in px of the slider visual thumb.\n * @docs-private\n */\n get translateX(): number {\n if (this._slider.min >= this._slider.max) {\n this._translateX = 0;\n return this._translateX;\n }\n if (this._translateX === undefined) {\n this._translateX = this._calcTranslateXByValue();\n }\n return this._translateX;\n }\n set translateX(v: number) {\n this._translateX = v;\n }\n private _translateX: number | undefined;\n\n /**\n * Indicates whether this thumb is the start or end thumb.\n * @docs-private\n */\n thumbPosition: _MatThumb = _MatThumb.END;\n\n /** @docs-private */\n get min(): number {\n return coerceNumberProperty(this._hostElement.min);\n }\n set min(v: NumberInput) {\n this._hostElement.min = coerceNumberProperty(v).toString();\n this._cdr.detectChanges();\n }\n\n /** @docs-private */\n get max(): number {\n return coerceNumberProperty(this._hostElement.max);\n }\n set max(v: NumberInput) {\n this._hostElement.max = coerceNumberProperty(v).toString();\n this._cdr.detectChanges();\n }\n\n get step(): number {\n return coerceNumberProperty(this._hostElement.step);\n }\n set step(v: NumberInput) {\n this._hostElement.step = coerceNumberProperty(v).toString();\n this._cdr.detectChanges();\n }\n\n /** @docs-private */\n get disabled(): boolean {\n return coerceBooleanProperty(this._hostElement.disabled);\n }\n set disabled(v: BooleanInput) {\n this._hostElement.disabled = coerceBooleanProperty(v);\n this._cdr.detectChanges();\n\n if (this._slider.disabled !== this.disabled) {\n this._slider.disabled = this.disabled;\n }\n }\n\n /** The percentage of the slider that coincides with the value. */\n get percentage(): number {\n if (this._slider.min >= this._slider.max) {\n return this._slider._isRtl ? 1 : 0;\n }\n return (this.value - this._slider.min) / (this._slider.max - this._slider.min);\n }\n\n /** @docs-private */\n get fillPercentage(): number {\n if (!this._slider._cachedWidth) {\n return this._slider._isRtl ? 1 : 0;\n }\n if (this._translateX === 0) {\n return 0;\n }\n return this.translateX / this._slider._cachedWidth;\n }\n\n /** The host native HTML input element. */\n _hostElement: HTMLInputElement;\n\n /** The aria-valuetext string representation of the input's value. */\n _valuetext: string;\n\n /** The radius of a native html slider's knob. */\n _knobRadius: number = 8;\n\n /** Whether user's cursor is currently in a mouse down state on the input. */\n _isActive: boolean = false;\n\n /** Whether the input is currently focused (either by tab or after clicking). */\n _isFocused: boolean = false;\n\n /** Used to relay updates to _isFocused to the slider visual thumbs. */\n private _setIsFocused(v: boolean): void {\n this._isFocused = v;\n }\n\n /**\n * Whether the initial value has been set.\n * This exists because the initial value cannot be immediately set because the min and max\n * must first be relayed from the parent MatSlider component, which can only happen later\n * in the component lifecycle.\n */\n private _hasSetInitialValue: boolean = false;\n\n /** The stored initial value. */\n _initialValue: string | undefined;\n\n /** Defined when a user is using a form control to manage slider value & validation. */\n private _formControl: FormControl | undefined;\n\n /** Emits when the component is destroyed. */\n protected readonly _destroyed = new Subject<void>();\n\n /**\n * Indicates whether UI updates should be skipped.\n *\n * This flag is used to avoid flickering\n * when correcting values on pointer up/down.\n */\n _skipUIUpdate: boolean = false;\n\n /** Callback called when the slider input value changes. */\n private _onChangeFn: (value: any) => void = () => {};\n\n /** Callback called when the slider input has been touched. */\n private _onTouchedFn: () => void = () => {};\n\n constructor(\n readonly _ngZone: NgZone,\n readonly _elementRef: ElementRef<HTMLInputElement>,\n readonly _cdr: ChangeDetectorRef,\n @Inject(MatSlider) protected _slider: _MatSlider,\n ) {\n this._hostElement = _elementRef.nativeElement;\n this._onPointerDown = this._onPointerDown.bind(this);\n this._onPointerMove = this._onPointerMove.bind(this);\n this._onPointerUp = this._onPointerUp.bind(this);\n this._ngZone.runOutsideAngular(() => {\n this._hostElement.addEventListener('pointerdown', this._onPointerDown);\n this._hostElement.addEventListener('pointermove', this._onPointerMove);\n this._hostElement.addEventListener('pointerup', this._onPointerUp.bind);\n });\n }\n\n ngOnDestroy(): void {\n this._hostElement.removeEventListener('pointerdown', this._onPointerDown);\n this._hostElement.removeEventListener('pointermove', this._onPointerMove);\n this._hostElement.removeEventListener('pointerup', this._onPointerUp);\n this._destroyed.next();\n this._destroyed.complete();\n this.dragStart.complete();\n this.dragEnd.complete();\n }\n\n /** @docs-private */\n initProps(): void {\n this._updateWidthInactive();\n\n // If this or the parent slider is disabled, just make everything disabled.\n if (this.disabled !== this._slider.disabled) {\n // The MatSlider setter for disabled will relay this and disable both inputs.\n this._slider.disabled = true;\n }\n\n this.step = this._slider.step;\n this.min = this._slider.min;\n this.max = this._slider.max;\n this._initValue();\n }\n\n /** @docs-private */\n initUI(): void {\n this._updateThumbUIByValue();\n }\n\n _initValue(): void {\n this._hasSetInitialValue = true;\n if (this._initialValue === undefined) {\n this.value = this._getDefaultValue();\n } else {\n this._hostElement.value = this._initialValue;\n this._updateThumbUIByValue();\n this._slider._onValueChange(this);\n this._cdr.detectChanges();\n }\n }\n\n _getDefaultValue(): number {\n return this.min;\n }\n\n _onBlur(): void {\n this._setIsFocused(false);\n this._onTouchedFn();\n }\n\n _onFocus(): void {\n this._setIsFocused(true);\n }\n\n _onChange(): void {\n // only used to handle the edge case where user\n // mousedown on the slider then uses arrow keys.\n if (this._isActive) {\n this._updateThumbUIByValue({ withAnimation: true });\n }\n }\n\n _onInput(): void {\n this.valueChange.emit(this.value);\n this._onChangeFn(this.value);\n // handles arrowing and updating the value when\n // a step is defined.\n if (this._slider.step || !this._isActive) {\n this._updateThumbUIByValue({ withAnimation: true });\n }\n this._slider._onValueChange(this);\n }\n\n _onNgControlValueChange(): void {\n // only used to handle when the value change\n // originates outside of the slider.\n if (!this._isActive || !this._isFocused) {\n this._slider._onValueChange(this);\n this._updateThumbUIByValue();\n }\n this._slider.disabled = this._formControl!.disabled;\n }\n\n _onPointerDown(event: PointerEvent): void {\n if (this.disabled || event.button !== 0) {\n return;\n }\n\n this._isActive = true;\n this._setIsFocused(true);\n this._updateWidthActive();\n this._slider._updateDimensions();\n\n // Does nothing if a step is defined because we\n // want the value to snap to the values on input.\n if (!this._slider.step) {\n this._updateThumbUIByPointerEvent(event, { withAnimation: true });\n }\n\n if (!this.disabled) {\n this._handleValueCorrection(event);\n this.dragStart.emit({ source: this, parent: this._slider, value: this.value });\n }\n }\n\n /**\n * Corrects the value of the slider on pointer up/down.\n *\n * Called on pointer down and up because the value is set based\n * on the inactive width instead of the active width.\n */\n private _handleValueCorrection(event: PointerEvent): void {\n // Don't update the UI with the current value! The value on pointerdown\n // and pointerup is calculated in the split second before the input(s)\n // resize. See _updateWidthInactive() and _updateWidthActive() for more\n // details.\n this._skipUIUpdate = true;\n\n // Note that this function gets triggered before the actual value of the\n // slider is updated. This means if we were to set the value here, it\n // would immediately be overwritten. Using setTimeout ensures the setting\n // of the value happens after the value has been updated by the\n // pointerdown event.\n setTimeout(() => {\n this._skipUIUpdate = false;\n this._fixValue(event);\n }, 0);\n }\n\n /** Corrects the value of the slider based on the pointer event's position. */\n _fixValue(event: PointerEvent): void {\n const xPos = event.clientX - this._slider._cachedLeft;\n const width = this._slider._cachedWidth;\n const step = this._slider.step === 0 ? 1 : this._slider.step;\n const numSteps = Math.floor((this._slider.max - this._slider.min) / step);\n const percentage = this._slider._isRtl ? 1 - xPos / width : xPos / width;\n\n // To ensure the percentage is rounded to the necessary number of decimals.\n const fixedPercentage = Math.round(percentage * numSteps) / numSteps;\n\n const impreciseValue = fixedPercentage * (this._slider.max - this._slider.min) + this._slider.min;\n const value = Math.round(impreciseValue / step) * step;\n const prevValue = this.value;\n\n if (value === prevValue) {\n // Because we prevented UI updates, if it turns out that the race\n // condition didn't happen and the value is already correct, we\n // have to apply the ui updates now.\n this._slider._onValueChange(this);\n this._slider.step > 0\n ? this._updateThumbUIByValue()\n : this._updateThumbUIByPointerEvent(event, { withAnimation: this._slider._hasAnimation });\n return;\n }\n\n this.value = value;\n this.valueChange.emit(this.value);\n this._onChangeFn(this.value);\n this._slider._onValueChange(this);\n this._slider.step > 0\n ? this._updateThumbUIByValue()\n : this._updateThumbUIByPointerEvent(event, { withAnimation: this._slider._hasAnimation });\n }\n\n _onPointerMove(event: PointerEvent): void {\n // Again, does nothing if a step is defined because\n // we want the value to snap to the values on input.\n if (!this._slider.step && this._isActive) {\n this._updateThumbUIByPointerEvent(event);\n }\n }\n\n _onPointerUp(): void {\n if (this._isActive) {\n this._isActive = false;\n this.dragEnd.emit({ source: this, parent: this._slider, value: this.value });\n setTimeout(() => this._updateWidthInactive());\n }\n }\n\n _clamp(v: number): number {\n return Math.max(Math.min(v, this._slider._cachedWidth), 0);\n }\n\n _calcTranslateXByValue(): number {\n if (this._slider._isRtl) {\n return (1 - this.percentage) * this._slider._cachedWidth;\n }\n return this.percentage * this._slider._cachedWidth;\n }\n\n _calcTranslateXByPointerEvent(event: PointerEvent): number {\n return event.clientX - this._slider._cachedLeft;\n }\n\n /**\n * Used to set the slider width to the correct\n * dimensions while the user is dragging.\n */\n _updateWidthActive(): void {\n this._hostElement.style.padding = `0 ${this._slider._inputPadding}px`;\n this._hostElement.style.width = `calc(100% + ${this._slider._inputPadding}px)`;\n }\n\n /**\n * Sets the slider input to disproportionate dimensions to allow for touch\n * events to be captured on touch devices.\n */\n _updateWidthInactive(): void {\n this._hostElement.style.padding = '0px';\n this._hostElement.style.width = 'calc(100% + 48px)';\n this._hostElement.style.left = '-24px';\n }\n\n _updateThumbUIByValue(options?: { withAnimation: boolean }): void {\n this.translateX = this._clamp(this._calcTranslateXByValue());\n this._updateThumbUI(options);\n }\n\n _updateThumbUIByPointerEvent(event: PointerEvent, options?: { withAnimation: boolean }): void {\n this.translateX = this._clamp(this._calcTranslateXByPointerEvent(event));\n this._updateThumbUI(options);\n }\n\n _updateThumbUI(options?: { withAnimation: boolean }) {\n this._slider._setTransition(!!options?.withAnimation);\n this._slider._onTranslateXChange(this);\n }\n\n /**\n * Sets the input's value.\n * @param value The new value of the input\n * @docs-private\n */\n writeValue(value: any): void {\n this.value = value;\n }\n\n /**\n * Registers a callback to be invoked when the input's value changes from user input.\n * @param fn The callback to register\n * @docs-private\n */\n registerOnChange(fn: any): void {\n this._onChangeFn = fn;\n }\n\n /**\n * Registers a callback to be invoked when the input is blurred by the user.\n * @param fn The callback to register\n * @docs-private\n */\n registerOnTouched(fn: any): void {\n this._onTouchedFn = fn;\n }\n\n /**\n * Sets the disabled state of the slider.\n * @param isDisabled The new disabled state\n * @docs-private\n */\n setDisabledState(isDisabled: boolean): void {\n this.disabled = isDisabled;\n }\n\n focus(): void {\n this._hostElement.focus();\n }\n\n blur(): void {\n this._hostElement.blur();\n }\n}\n","import { Component, ChangeDetectionStrategy, ViewChild } from '@angular/core';\nimport { MatSlider } from '@angular/material/slider';\nimport { MAT_SLIDER_THUMB, _MatSlider, _MatSliderThumb } from './slider-interface';\nimport { FormlyFieldSlider } from './slider.type';\n\n/**\n * @ignore\n */\n@Component({\n selector: 'formly-field-mat-slider',\n template: `\n <mat-slider\n [id]=\"id\"\n [style.width]=\"'100%'\"\n [formlyAttributes]=\"field\"\n [tabIndex]=\"props.tabindex\"\n [color]=\"props.color\"\n [displayWith]=\"props.displayWith\"\n [invert]=\"props.invert\"\n [max]=\"props.max\"\n [min]=\"props.min\"\n [step]=\"props.step\"\n [discrete]=\"props.thumbLabel || props.discrete\"\n [showTickMarks]=\"props.showTickMarks\"\n [step]=\"props.step\"\n [tickInterval]=\"props.tickInterval\"\n [valueText]=\"props.valueText\"\n [vertical]=\"props.vertical\"\n (input)=\"props.input && props.input(field, $event)\"\n (change)=\"props.change && props.change(field, $event)\"\n >\n <input matSliderThumb [formControl]=\"formControl\" [formlyAttributes]=\"field\" />\n </mat-slider>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldMDCSlider extends FormlyFieldSlider {\n @ViewChild(MAT_SLIDER_THUMB, { static: true }) sliderThumb: _MatSliderThumb;\n @ViewChild(MatSlider, { static: true }) set mdcSlider(slider: _MatSlider) {\n Object.defineProperty(slider, '_input', {\n set: () => {},\n get: () => this.sliderThumb,\n });\n\n const visualThumb = {\n _hostElement: {\n classList: {\n add: () => {},\n remove: () => {},\n },\n },\n };\n\n // workarround for \"ERROR TypeError: visualThumb is undefined\" when `discrete` is set to `true`\n (slider as any)._thumbs = { first: visualThumb, last: visualThumb };\n }\n\n override onContainerClick(event: MouseEvent): void {\n this.sliderThumb?._hostElement.focus();\n super.onContainerClick(event);\n }\n}\n","import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { MatSliderModule } from '@angular/material/slider';\nimport { FormlyMatFormFieldModule } from '@ngx-formly/material/form-field';\nimport { VERSION } from '@angular/cdk';\n\nimport { MatCommonModule, MatRippleModule } from '@angular/material/core';\nimport { FormlyFieldSlider as LegacyFormlyFieldSlider } from './slider.type';\nimport { FormlyFieldMDCSlider } from './slider-mdc.type';\nimport { MatSliderThumb } from './slider-input';\nconst FormlyFieldSlider = Number(VERSION.major) >= 15 ? FormlyFieldMDCSlider : LegacyFormlyFieldSlider;\n\n@NgModule({\n declarations: [LegacyFormlyFieldSlider, FormlyFieldMDCSlider, MatSliderThumb],\n imports: [\n CommonModule,\n MatCommonModule,\n MatRippleModule,\n ReactiveFormsModule,\n MatSliderModule,\n FormlyMatFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'slider',\n component: FormlyFieldSlider,\n wrappers: ['form-field'],\n },\n ],\n }),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyMatSliderModule {}\n","import { FormlyMatSliderModule } from './slider.module';\nimport { FormlyFieldSlider as LegacyFormlyFieldSlider, FormlySliderFieldConfig } from './slider.type';\nimport { FormlyFieldMDCSlider } from './slider-mdc.type';\n\nimport { VERSION } from '@angular/cdk';\n\nconst FormlyFieldSlider = Number(VERSION.major) >= 15 ? FormlyFieldMDCSlider : LegacyFormlyFieldSlider;\nexport { FormlyMatSliderModule, FormlyFieldSlider, FormlySliderFieldConfig };\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["FormlyFieldSlider","i2","i3.MatSliderThumb","LegacyFormlyFieldSlider","i1"],"mappings":";;;;;;;;;;;;;;;AAkDM,MAAOA,mBAAkB,SAAQ,SAAuC,CAAA;AA1B9E,IAAA,WAAA,GAAA;;QA4BW,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,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@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ViewEncapsulation, ViewChild, NgModule, Type, Directive, ViewChildren } from '@angular/core';
2
+ import { Component, ViewEncapsulation, ViewChild, NgModule, NO_ERRORS_SCHEMA, Type, Directive, ViewChildren } from '@angular/core';
3
3
  import * as i4 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
5
  import * as i3 from '@ngx-formly/core';
@@ -44,6 +44,7 @@ FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
44
44
  [hideRequiredMarker]="true"
45
45
  [floatLabel]="props.floatLabel"
46
46
  [appearance]="props.appearance"
47
+ [subscriptSizing]="props.subscriptSizing"
47
48
  [color]="props.color ?? 'primary'"
48
49
  >
49
50
  <ng-container #fieldComponent></ng-container>
@@ -57,13 +58,21 @@ FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
57
58
  >
58
59
  </mat-label>
59
60
 
60
- <ng-containe matPrefix *ngIf="props.prefix">
61
+ <ng-container matTextPrefix *ngIf="props.textPrefix">
62
+ <ng-container [ngTemplateOutlet]="props.textPrefix" [ngTemplateOutletContext]="{ field: field }"></ng-container>
63
+ </ng-container>
64
+
65
+ <ng-container matPrefix *ngIf="props.prefix">
61
66
  <ng-container [ngTemplateOutlet]="props.prefix" [ngTemplateOutletContext]="{ field: field }"></ng-container>
62
- </ng-containe>
67
+ </ng-container>
68
+
69
+ <ng-container matTextSuffix *ngIf="props.textSuffix">
70
+ <ng-container [ngTemplateOutlet]="props.textSuffix" [ngTemplateOutletContext]="{ field: field }"></ng-container>
71
+ </ng-container>
63
72
 
64
- <ng-containe matSuffix *ngIf="props.suffix">
73
+ <ng-container matSuffix *ngIf="props.suffix">
65
74
  <ng-container [ngTemplateOutlet]="props.suffix" [ngTemplateOutletContext]="{ field: field }"></ng-container>
66
- </ng-containe>
75
+ </ng-container>
67
76
 
68
77
  <mat-error>
69
78
  <formly-validation-message [field]="field"></formly-validation-message>
@@ -86,7 +95,7 @@ FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
86
95
  <ng-container [ngTemplateOutlet]="content" [ngTemplateOutletContext]="{ field: field }"></ng-container>
87
96
  </ng-template>
88
97
  </ng-template>
89
- `, isInline: true, styles: ["formly-wrapper-mat-form-field .mat-mdc-form-field,formly-wrapper-mat-form-field .mat-form-field{width:100%}\n"], components: [{ type: i2.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { type: i3.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.MatLabel, selector: "mat-label" }, { type: i2.MatPrefix, selector: "[matPrefix]" }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i2.MatSuffix, selector: "[matSuffix]" }, { type: i2.MatError, selector: "mat-error", inputs: ["id"] }, { type: i2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }], encapsulation: i0.ViewEncapsulation.None });
98
+ `, isInline: true, styles: ["formly-wrapper-mat-form-field .mat-mdc-form-field,formly-wrapper-mat-form-field .mat-form-field{width:100%}\n"], components: [{ type: i2.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { type: i3.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.MatLabel, selector: "mat-label" }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i2.MatPrefix, selector: "[matPrefix]" }, { type: i2.MatSuffix, selector: "[matSuffix]" }, { type: i2.MatError, selector: "mat-error", inputs: ["id"] }, { type: i2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }], encapsulation: i0.ViewEncapsulation.None });
90
99
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyWrapperFormField, decorators: [{
91
100
  type: Component,
92
101
  args: [{ selector: 'formly-wrapper-mat-form-field', template: `
@@ -95,6 +104,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
95
104
  [hideRequiredMarker]="true"
96
105
  [floatLabel]="props.floatLabel"
97
106
  [appearance]="props.appearance"
107
+ [subscriptSizing]="props.subscriptSizing"
98
108
  [color]="props.color ?? 'primary'"
99
109
  >
100
110
  <ng-container #fieldComponent></ng-container>
@@ -108,13 +118,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
108
118
  >
109
119
  </mat-label>
110
120
 
111
- <ng-containe matPrefix *ngIf="props.prefix">
121
+ <ng-container matTextPrefix *ngIf="props.textPrefix">
122
+ <ng-container [ngTemplateOutlet]="props.textPrefix" [ngTemplateOutletContext]="{ field: field }"></ng-container>
123
+ </ng-container>
124
+
125
+ <ng-container matPrefix *ngIf="props.prefix">
112
126
  <ng-container [ngTemplateOutlet]="props.prefix" [ngTemplateOutletContext]="{ field: field }"></ng-container>
113
- </ng-containe>
127
+ </ng-container>
114
128
 
115
- <ng-containe matSuffix *ngIf="props.suffix">
129
+ <ng-container matTextSuffix *ngIf="props.textSuffix">
130
+ <ng-container [ngTemplateOutlet]="props.textSuffix" [ngTemplateOutletContext]="{ field: field }"></ng-container>
131
+ </ng-container>
132
+
133
+ <ng-container matSuffix *ngIf="props.suffix">
116
134
  <ng-container [ngTemplateOutlet]="props.suffix" [ngTemplateOutletContext]="{ field: field }"></ng-container>
117
- </ng-containe>
135
+ </ng-container>
118
136
 
119
137
  <mat-error>
120
138
  <formly-validation-message [field]="field"></formly-validation-message>
@@ -179,6 +197,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
179
197
  ],
180
198
  }),
181
199
  ],
200
+ schemas: [NO_ERRORS_SCHEMA],
182
201
  }]
183
202
  }] });
184
203
 
@@ -194,11 +213,21 @@ class FieldType extends FieldType$1 {
194
213
  this.props.prefix = prefix;
195
214
  }
196
215
  }
216
+ set matTextPrefix(textPrefix) {
217
+ if (textPrefix) {
218
+ this.props.textPrefix = textPrefix;
219
+ }
220
+ }
197
221
  set matSuffix(suffix) {
198
222
  if (suffix) {
199
223
  this.props.suffix = suffix;
200
224
  }
201
225
  }
226
+ set matTextSuffix(textSuffix) {
227
+ if (textSuffix) {
228
+ this.props.textSuffix = textSuffix;
229
+ }
230
+ }
202
231
  set _controls(controls) {
203
232
  this.attachControl(controls.length === 1 ? controls.first : this);
204
233
  }
@@ -267,7 +296,10 @@ class FieldType extends FieldType$1 {
267
296
  if (ngControl?.valueAccessor?.hasOwnProperty('_formField')) {
268
297
  ngControl.valueAccessor['_formField'] = this.formField;
269
298
  }
270
- ['prefix', 'suffix'].forEach((type) => ɵobserve(this.field, ['props', type], ({ currentValue }) => currentValue &&
299
+ if (ngControl?.valueAccessor?.hasOwnProperty('_parentFormField')) {
300
+ ngControl.valueAccessor['_parentFormField'] = this.formField;
301
+ }
302
+ ['prefix', 'suffix', 'textPrefix', 'textSuffix'].forEach((type) => ɵobserve(this.field, ['props', type], ({ currentValue }) => currentValue &&
271
303
  Promise.resolve().then(() => {
272
304
  this.options.detectChanges(this.field);
273
305
  })));
@@ -280,15 +312,21 @@ class FieldType extends FieldType$1 {
280
312
  }
281
313
  }
282
314
  FieldType.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FieldType, deps: null, target: i0.ɵɵFactoryTarget.Directive });
283
- FieldType.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: FieldType, viewQueries: [{ propertyName: "matPrefix", first: true, predicate: ["matPrefix"], descendants: true }, { propertyName: "matSuffix", first: true, predicate: ["matSuffix"], descendants: true }, { propertyName: "_controls", predicate: MatFormFieldControl, descendants: true }], usesInheritance: true, ngImport: i0 });
315
+ FieldType.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: FieldType, viewQueries: [{ propertyName: "matPrefix", first: true, predicate: ["matPrefix"], descendants: true }, { propertyName: "matTextPrefix", first: true, predicate: ["matTextPrefix"], descendants: true }, { propertyName: "matSuffix", first: true, predicate: ["matSuffix"], descendants: true }, { propertyName: "matTextSuffix", first: true, predicate: ["matTextSuffix"], descendants: true }, { propertyName: "_controls", predicate: MatFormFieldControl, descendants: true }], usesInheritance: true, ngImport: i0 });
284
316
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FieldType, decorators: [{
285
317
  type: Directive
286
318
  }], propDecorators: { matPrefix: [{
287
319
  type: ViewChild,
288
320
  args: ['matPrefix']
321
+ }], matTextPrefix: [{
322
+ type: ViewChild,
323
+ args: ['matTextPrefix']
289
324
  }], matSuffix: [{
290
325
  type: ViewChild,
291
326
  args: ['matSuffix']
327
+ }], matTextSuffix: [{
328
+ type: ViewChild,
329
+ args: ['matTextSuffix']
292
330
  }], _controls: [{
293
331
  type: ViewChildren,
294
332
  args: [MatFormFieldControl]