UNPKG

@synergy-design-system/angular

Version:
86 lines (82 loc) 3.6 kB
import * as i0 from '@angular/core'; import { Input, Component } from '@angular/core'; import '@synergy-design-system/components/components/progress-bar/progress-bar.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 bars are used to show the status of an ongoing operation. * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-progress-bar--docs * @status stable * @since 2.0 * * @slot - A label to show inside the progress indicator. * * @csspart base - The component's base wrapper. * @csspart indicator - The progress bar's indicator. * @csspart label - The progress bar's label. * * @cssproperty --height - The progress bar's height. * @cssproperty --track-color - The color of the track. * @cssproperty --indicator-color - The color of the indicator. * @cssproperty --label-color - The color of the label. * @cssproperty --speed - The speed of the progress bar when in indeterminate state. */ class SynProgressBarComponent { 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; } /** * When true, percentage is ignored, the label is hidden, and the progress bar is drawn in an indeterminate state. */ set indeterminate(v) { this._ngZone.runOutsideAngular(() => (this.nativeElement.indeterminate = v === '' || v)); } get indeterminate() { return this.nativeElement.indeterminate; } /** * 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: SynProgressBarComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.1", type: SynProgressBarComponent, isStandalone: true, selector: "syn-progress-bar", inputs: { value: "value", indeterminate: "indeterminate", label: "label" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.1", ngImport: i0, type: SynProgressBarComponent, decorators: [{ type: Component, args: [{ selector: 'syn-progress-bar', standalone: true, template: '<ng-content></ng-content>', }] }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { value: [{ type: Input }], indeterminate: [{ type: Input }], label: [{ type: Input }] } }); /** * Generated bundle index. Do not edit. */ export { SynProgressBarComponent }; //# sourceMappingURL=synergy-design-system-angular-components-progress-bar.mjs.map