{"version":3,"file":"ng-zorro-antd-slider.mjs","sources":["../../components/slider/handle.component.ts","../../components/slider/marks.component.ts","../../components/slider/step.component.ts","../../components/slider/track.component.ts","../../components/slider/slider.component.ts","../../components/slider/slider.module.ts","../../components/slider/typings.ts","../../components/slider/public-api.ts","../../components/slider/ng-zorro-antd-slider.ts"],"sourcesContent":["/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nimport { Direction } from '@angular/cdk/bidi';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n Input,\n OnChanges,\n SimpleChanges,\n TemplateRef,\n ViewChild,\n ViewEncapsulation,\n booleanAttribute,\n inject\n} from '@angular/core';\n\nimport { NgStyleInterface, NzTSType } from 'ng-zorro-antd/core/types';\nimport { numberAttributeWithZeroFallback } from 'ng-zorro-antd/core/util';\nimport { NzTooltipDirective, NzTooltipModule } from 'ng-zorro-antd/tooltip';\n\nimport { NzSliderShowTooltip } from './typings';\n\n@Component({\n selector: 'nz-slider-handle',\n exportAs: 'nzSliderHandle',\n template: `\n
\n `,\n host: {\n '(mouseenter)': 'enterHandle()',\n '(mouseleave)': 'leaveHandle()'\n },\n imports: [NzTooltipModule],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class NzSliderHandleComponent implements OnChanges {\n private cdr = inject(ChangeDetectorRef);\n\n @ViewChild('handle', { static: false }) handleEl?: ElementRef;\n @ViewChild(NzTooltipDirective, { static: false }) tooltip?: NzTooltipDirective;\n\n @Input({ transform: booleanAttribute }) vertical?: boolean;\n @Input({ transform: booleanAttribute }) reverse?: boolean;\n @Input({ transform: numberAttributeWithZeroFallback }) offset?: number;\n @Input({ transform: numberAttributeWithZeroFallback }) value?: number;\n @Input() tooltipVisible: NzSliderShowTooltip = 'default';\n @Input() tooltipPlacement?: string;\n @Input() tooltipFormatter?: null | ((value: number) => string) | TemplateRef