@synergy-design-system/angular
Version:
Angular wrappers for the Synergy Design System
117 lines (111 loc) • 4.82 kB
JavaScript
import * as i0 from '@angular/core';
import { Input, Component } from '@angular/core';
import '@synergy-design-system/components/components/checkbox-group/checkbox-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 Checkbox groups are used to group multiple checkboxes together.
* @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-checkbox-group--docs
* @status stable
* @since 3.18.0
*
* @slot - The default slot where `<syn-checkbox>` and `<syn-switch>` elements are placed.
* @slot label - The checkbox group's label. Required for proper accessibility. Alternatively, you can use the `label`
* attribute.
* @slot help-text - Text that describes how to use the checkbox group. Alternatively, you can use the `help-text` attribute.
*
* @csspart form-control - The form control that wraps the label, input, and help text.
* @csspart form-control-label - The label's wrapper.
* @csspart form-control-input - The input's wrapper.
* @csspart form-control-help-text - The help text's wrapper.
*/
class SynCheckboxGroupComponent {
nativeElement;
_ngZone;
constructor(e, ngZone) {
this.nativeElement = e.nativeElement;
this._ngZone = ngZone;
}
/**
* The checkbox group's label.
* Required for proper accessibility.
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;
}
/**
* The checkbox groups's help text.
* If you need to display HTML, use the `help-text` slot instead.
*/
set helpText(v) {
this._ngZone.runOutsideAngular(() => (this.nativeElement.helpText = v));
}
get helpText() {
return this.nativeElement.helpText;
}
/**
* The checkbox group's size.
* This size will be applied to all child checkboxes.
*/
set size(v) {
this._ngZone.runOutsideAngular(() => (this.nativeElement.size = v));
}
get size() {
return this.nativeElement.size;
}
/**
* The layout of the checkbox group.
* This determines how the checkboxes are displayed.
- `horizontal`: Checkboxes are displayed in a row.
- `vertical`: Checkboxes are displayed in a column.
*/
set layout(v) {
this._ngZone.runOutsideAngular(() => (this.nativeElement.layout = v));
}
get layout() {
return this.nativeElement.layout;
}
/**
* By default, form controls are associated with the nearest containing `<form>` element.
This property allows you to specify the `id` of a `<form>` element to associate all of the slotted checkboxes and radios with.
Please note that this property does not associate the checkbox group itself with a form, only the slotted checkboxes and radios.
*/
set form(v) {
this._ngZone.runOutsideAngular(() => (this.nativeElement.form = v));
}
get form() {
return this.nativeElement.form;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SynCheckboxGroupComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: SynCheckboxGroupComponent, isStandalone: true, selector: "syn-checkbox-group", inputs: { label: "label", helpText: "helpText", size: "size", layout: "layout", form: "form" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SynCheckboxGroupComponent, decorators: [{
type: Component,
args: [{
selector: 'syn-checkbox-group',
standalone: true,
template: '<ng-content></ng-content>',
}]
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { label: [{
type: Input
}], helpText: [{
type: Input
}], size: [{
type: Input
}], layout: [{
type: Input
}], form: [{
type: Input
}] } });
/**
* Generated bundle index. Do not edit.
*/
export { SynCheckboxGroupComponent };
//# sourceMappingURL=synergy-design-system-angular-components-checkbox-group.mjs.map