UNPKG

@synergy-design-system/angular

Version:
75 lines (71 loc) 3.28 kB
import * as i0 from '@angular/core'; import { Input, Component } from '@angular/core'; import '@synergy-design-system/components/components/progress-ring/progress-ring.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 Progress rings are used to show the progress of a determinate operation in a circular fashion. * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-progress-ring--docs * @status stable * @since 2.0 * * @slot - A label to show inside the ring. * * @csspart base - The component's base wrapper. * @csspart label - The progress ring label. * * @cssproperty --size - The diameter of the progress ring (cannot be a percentage). * @cssproperty --track-width - The width of the track. * @cssproperty --track-color - The color of the track. * @cssproperty --indicator-width - The width of the indicator. Defaults to the track width. * @cssproperty --indicator-color - The color of the indicator. * @cssproperty --indicator-transition-duration - The duration of the indicator's transition when the value changes. */ class SynProgressRingComponent { nativeElement; _ngZone; constructor(e, ngZone) { this.nativeElement = e.nativeElement; this._ngZone = ngZone; } /** * The current progress as a percentage, 0 to 100. */ set value(v) { this._ngZone.runOutsideAngular(() => (this.nativeElement.value = v)); } get value() { return this.nativeElement.value; } /** * A custom label for assistive devices. */ set label(v) { this._ngZone.runOutsideAngular(() => (this.nativeElement.label = v)); } get label() { return this.nativeElement.label; } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: SynProgressRingComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.1", type: SynProgressRingComponent, isStandalone: true, selector: "syn-progress-ring", inputs: { value: "value", label: "label" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: SynProgressRingComponent, decorators: [{ type: Component, args: [{ selector: 'syn-progress-ring', standalone: true, template: '<ng-content></ng-content>', }] }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { value: [{ type: Input }], label: [{ type: Input }] } }); /** * Generated bundle index. Do not edit. */ export { SynProgressRingComponent }; //# sourceMappingURL=synergy-design-system-angular-components-progress-ring.mjs.map