@synergy-design-system/angular
Version:
Angular wrappers for the Synergy Design System
60 lines (56 loc) • 2.64 kB
JavaScript
import * as i0 from '@angular/core';
import { Input, Component } from '@angular/core';
import '@synergy-design-system/components/components/range-tick/range-tick.js';
// ---------------------------------------------------------------------
// 🔒 AUTOGENERATED @synergy-design-system/angular wrappers for @synergy-design-system/components
// Please do not edit this file directly!
// It will get recreated when running pnpm build.
// ---------------------------------------------------------------------
/**
* @summary Ticks visually improve positioning on range sliders.
* @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-range-tick--docs
* @status stable
*
* @slot - The tick's label
*
* @csspart base - The component's base wrapper.
* @csspart label - The component's label.
* @csspart line - The component's tick line.
*
* @cssproperty --tick-height - The height of the tick marker.
* @cssproperty --tick-label-top - The top offset of the tick label.
*/
class SynRangeTickComponent {
nativeElement;
_ngZone;
constructor(e, ngZone) {
this.nativeElement = e.nativeElement;
this._ngZone = ngZone;
}
/**
* Whether the tick should be shown as a subdivision.
*/
set subdivision(v) {
this._ngZone.runOutsideAngular(() => (this.nativeElement.subdivision = v === '' || v));
}
get subdivision() {
return this.nativeElement.subdivision;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: SynRangeTickComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.3", type: SynRangeTickComponent, isStandalone: true, selector: "syn-range-tick", inputs: { subdivision: "subdivision" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: SynRangeTickComponent, decorators: [{
type: Component,
args: [{
selector: 'syn-range-tick',
standalone: true,
template: '<ng-content></ng-content>',
}]
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { subdivision: [{
type: Input
}] } });
/**
* Generated bundle index. Do not edit.
*/
export { SynRangeTickComponent };
//# sourceMappingURL=synergy-design-system-angular-components-range-tick.mjs.map