UNPKG

@synergy-design-system/angular

Version:
85 lines (81 loc) 3.59 kB
import * as i0 from '@angular/core'; import { Input, Component } from '@angular/core'; import '@synergy-design-system/components/components/tag-group/tag-group.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 A tag group is used to display multiple tags that belong together, often representing selected filters, categories, or user‑generated labels. * It arranges tags in flexible rows and supports different sizes and layouts. * Tags can be removable, icon‑based, or purely textual. * * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-tag-group--docs * @status stable * @since 3.7.0 * * @slot - The tag group's main content. Must be `<syn-tag />` elements. * @slot label - The tag group's label. Alternatively, you can use the `label` attribute. * * @csspart base - The component's base wrapper. * @csspart tag-label - The tag group's label. */ class SynTagGroupComponent { nativeElement; _ngZone; constructor(e, ngZone) { this.nativeElement = e.nativeElement; this._ngZone = ngZone; } /** * The tag group's label. * If you need to display HTML, use the `label` slot instead. */ set label(v) { this._ngZone.runOutsideAngular(() => (this.nativeElement.label = v)); } get label() { return this.nativeElement.label; } /** * Controls the label position. * Use 'top' to place the label above the tags, or 'start' to place it to the begin of the tag group. */ set labelPosition(v) { this._ngZone.runOutsideAngular(() => (this.nativeElement.labelPosition = v)); } get labelPosition() { return this.nativeElement.labelPosition; } /** * The size that should be applied to all slotted `<syn-tag>` elements */ set size(v) { this._ngZone.runOutsideAngular(() => (this.nativeElement.size = v)); } get size() { return this.nativeElement.size; } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SynTagGroupComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: SynTagGroupComponent, isStandalone: true, selector: "syn-tag-group", inputs: { label: "label", labelPosition: "labelPosition", size: "size" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SynTagGroupComponent, decorators: [{ type: Component, args: [{ selector: 'syn-tag-group', standalone: true, template: '<ng-content></ng-content>', }] }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { label: [{ type: Input }], labelPosition: [{ type: Input }], size: [{ type: Input }] } }); /** * Generated bundle index. Do not edit. */ export { SynTagGroupComponent }; //# sourceMappingURL=synergy-design-system-angular-components-tag-group.mjs.map