@leanix/components 0.4.433 → 0.4.435

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -82,9 +82,9 @@ export * from './lib/forms-ui/components/pill-list/pill-list.component';
82
82
  export * from './lib/forms-ui/components/responsive-input/responsive-input.component';
83
83
  export * from './lib/forms-ui/components/select-list/select-list.component';
84
84
  export * from './lib/forms-ui/components/single-select/single-select.component';
85
- export * from './lib/forms-ui/components/slider-toggle/slider-toggle.component';
86
85
  export * from './lib/forms-ui/components/sorting-dropdown-trigger/sorting-dropdown-trigger.component';
87
86
  export * from './lib/forms-ui/components/sorting-dropdown/sorting-dropdown.component';
87
+ export * from './lib/forms-ui/components/switch/switch.component';
88
88
  export * from './lib/forms-ui/components/keyboard-select.directive';
89
89
  export * from './lib/forms-ui/components/picker/picker-trigger.directive';
90
90
  export * from './lib/forms-ui/directives/contenteditable.directive';
@@ -4,6 +4,7 @@ export declare class EmptyStateComponent {
4
4
  title: import("@angular/core").InputSignal<string>;
5
5
  icon: import("@angular/core").InputSignal<string | undefined>;
6
6
  buttonLabel: import("@angular/core").InputSignal<string | undefined>;
7
+ secondaryButtonLabel: import("@angular/core").InputSignal<string | undefined>;
7
8
  loading: import("@angular/core").InputSignal<boolean>;
8
9
  moreLinkLabel: import("@angular/core").InputSignal<string | undefined>;
9
10
  moreLink: import("@angular/core").InputSignal<string | string[] | undefined>;
@@ -12,7 +13,8 @@ export declare class EmptyStateComponent {
12
13
  useRouterLink: Signal<boolean>;
13
14
  get _size(): "small" | "medium";
14
15
  buttonClicked: EventEmitter<MouseEvent>;
16
+ secondaryButtonClicked: EventEmitter<MouseEvent>;
15
17
  moreLinkClicked: EventEmitter<MouseEvent>;
16
18
  static ɵfac: i0.ɵɵFactoryDeclaration<EmptyStateComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<EmptyStateComponent, "lx-empty-state", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "buttonLabel": { "alias": "buttonLabel"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "moreLinkLabel": { "alias": "moreLinkLabel"; "required": false; "isSignal": true; }; "moreLink": { "alias": "moreLink"; "required": false; "isSignal": true; }; "openMoreLinkInNewTab": { "alias": "openMoreLinkInNewTab"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "buttonClicked": "buttonClicked"; "moreLinkClicked": "moreLinkClicked"; }, never, ["*"], true, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<EmptyStateComponent, "lx-empty-state", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "buttonLabel": { "alias": "buttonLabel"; "required": false; "isSignal": true; }; "secondaryButtonLabel": { "alias": "secondaryButtonLabel"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "moreLinkLabel": { "alias": "moreLinkLabel"; "required": false; "isSignal": true; }; "moreLink": { "alias": "moreLink"; "required": false; "isSignal": true; }; "openMoreLinkInNewTab": { "alias": "openMoreLinkInNewTab"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "buttonClicked": "buttonClicked"; "secondaryButtonClicked": "secondaryButtonClicked"; "moreLinkClicked": "moreLinkClicked"; }, never, ["*"], true, never>;
18
20
  }
@@ -0,0 +1,36 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Switch component is a toggle switch that can be used to switch between two states.
5
+ *
6
+ * ## Usage
7
+ *
8
+ * 1. Import the `SwitchComponent` component from `@leanix/components` in your module or standalone copmonent where you want to use the component.
9
+ *
10
+ * ```ts
11
+ * import { SwitchComponent } from '@leanix/components';
12
+ * ```
13
+ */
14
+ export declare class SwitchComponent {
15
+ /** Value of the switch */
16
+ value: boolean;
17
+ /** Size of the switch */
18
+ size: 'small';
19
+ /** Whether the switch is disabled */
20
+ disabled: boolean;
21
+ /** Label of the switch */
22
+ label: string;
23
+ /** Whether the label is in front of the switch */
24
+ labelInFront: boolean;
25
+ /** Id of the switch */
26
+ elementId?: string;
27
+ /** Event that is emitted when the switch is toggled */
28
+ toggle: EventEmitter<boolean>;
29
+ /** @internal */
30
+ onToggle(): void;
31
+ get id(): string | null;
32
+ /** @internal */
33
+ focus(checkbox: HTMLInputElement): void;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwitchComponent, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<SwitchComponent, "lx-switch", never, { "value": { "alias": "value"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelInFront": { "alias": "labelInFront"; "required": false; }; "elementId": { "alias": "elementId"; "required": false; }; }, { "toggle": "toggle"; }, never, never, true, never>;
36
+ }
@@ -39,7 +39,7 @@ import * as i37 from "./directives/selected-option.directive";
39
39
  import * as i38 from "./directives/select-dropdown.directive";
40
40
  import * as i39 from "./components/single-select/single-select.component";
41
41
  import * as i40 from "./components/select-list/select-list.component";
42
- import * as i41 from "./components/slider-toggle/slider-toggle.component";
42
+ import * as i41 from "./components/switch/switch.component";
43
43
  import * as i42 from "./components/sorting-dropdown/sorting-dropdown.component";
44
44
  import * as i43 from "./components/sorting-dropdown-trigger/sorting-dropdown-trigger.component";
45
45
  import * as i44 from "./components/input/input.component";
@@ -50,6 +50,6 @@ import * as i48 from "./directives/form-submit.directive";
50
50
  import * as i49 from "./directives/contenteditable.directive";
51
51
  export declare class LxFormsModule {
52
52
  static ɵfac: i0.ɵɵFactoryDeclaration<LxFormsModule, never>;
53
- static ɵmod: i0.ɵɵNgModuleDeclaration<LxFormsModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i2.ReactiveFormsModule, typeof i3.TranslateModule, typeof i4.DatepickerUiModule, typeof i5.InfiniteScrollModule, typeof i6.ClipboardModule, typeof i7.OverlayModule, typeof i8.LxDragAndDropListModule, typeof i9.BasicDropdownComponent, typeof i10.ExpandedDropdownComponent, typeof i11.BasicDropdownItemComponent, typeof i12.BreadcrumbComponent, typeof i13.CurrencyInputComponent, typeof i14.CurrencySymbolComponent, typeof i15.DateInputComponent, typeof i16.FilterSelectionPipe, typeof i17.FilterTermPipe, typeof i18.FormErrorComponent, typeof i19.IconComponent, typeof i20.KeyboardActionSourceDirective, typeof i21.MarkInvalidDirective, typeof i22.MultiSelectComponent, typeof i23.OptionComponent, typeof i24.OptionGroupComponent, typeof i25.OptionGroupDropdownComponent, typeof i26.OptionsDropdownComponent, typeof i27.OptionsSubDropdownComponent, typeof i28.CdkOptionsDropdownComponent, typeof i29.CdkOptionsSubDropdownComponent, typeof i30.PickerComponent, typeof i31.PickerOptionComponent, typeof i32.PickerTriggerDirective, typeof i33.PillListComponent, typeof i34.PillItemComponent, typeof i35.ResponsiveInputComponent, typeof i36.SelectableItemDirective, typeof i37.SelectedOptionDirective, typeof i38.SelectDropdownDirective, typeof i39.SingleSelectComponent, typeof i40.SelectListComponent, typeof i41.SliderToggleComponent, typeof i42.SortingDropdownComponent, typeof i43.SortingDropdownTriggerComponent, typeof i44.InputComponent, typeof i45.FormatNumberPipe, typeof i46.FormErrorDirective, typeof i47.ErrorMessageComponent, typeof i48.FormSubmitDirective, typeof i49.ContenteditableDirective], [typeof i9.BasicDropdownComponent, typeof i10.ExpandedDropdownComponent, typeof i11.BasicDropdownItemComponent, typeof i12.BreadcrumbComponent, typeof i13.CurrencyInputComponent, typeof i14.CurrencySymbolComponent, typeof i15.DateInputComponent, typeof i16.FilterSelectionPipe, typeof i17.FilterTermPipe, typeof i18.FormErrorComponent, typeof i19.IconComponent, typeof i20.KeyboardActionSourceDirective, typeof i21.MarkInvalidDirective, typeof i22.MultiSelectComponent, typeof i23.OptionComponent, typeof i24.OptionGroupComponent, typeof i25.OptionGroupDropdownComponent, typeof i26.OptionsDropdownComponent, typeof i27.OptionsSubDropdownComponent, typeof i28.CdkOptionsDropdownComponent, typeof i29.CdkOptionsSubDropdownComponent, typeof i30.PickerComponent, typeof i31.PickerOptionComponent, typeof i32.PickerTriggerDirective, typeof i33.PillListComponent, typeof i34.PillItemComponent, typeof i35.ResponsiveInputComponent, typeof i36.SelectableItemDirective, typeof i38.SelectDropdownDirective, typeof i37.SelectedOptionDirective, typeof i40.SelectListComponent, typeof i39.SingleSelectComponent, typeof i41.SliderToggleComponent, typeof i42.SortingDropdownComponent, typeof i43.SortingDropdownTriggerComponent, typeof i45.FormatNumberPipe, typeof i46.FormErrorDirective, typeof i48.FormSubmitDirective, typeof i47.ErrorMessageComponent, typeof i8.LxDragAndDropListModule, typeof i49.ContenteditableDirective, typeof i44.InputComponent]>;
53
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LxFormsModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i2.ReactiveFormsModule, typeof i3.TranslateModule, typeof i4.DatepickerUiModule, typeof i5.InfiniteScrollModule, typeof i6.ClipboardModule, typeof i7.OverlayModule, typeof i8.LxDragAndDropListModule, typeof i9.BasicDropdownComponent, typeof i10.ExpandedDropdownComponent, typeof i11.BasicDropdownItemComponent, typeof i12.BreadcrumbComponent, typeof i13.CurrencyInputComponent, typeof i14.CurrencySymbolComponent, typeof i15.DateInputComponent, typeof i16.FilterSelectionPipe, typeof i17.FilterTermPipe, typeof i18.FormErrorComponent, typeof i19.IconComponent, typeof i20.KeyboardActionSourceDirective, typeof i21.MarkInvalidDirective, typeof i22.MultiSelectComponent, typeof i23.OptionComponent, typeof i24.OptionGroupComponent, typeof i25.OptionGroupDropdownComponent, typeof i26.OptionsDropdownComponent, typeof i27.OptionsSubDropdownComponent, typeof i28.CdkOptionsDropdownComponent, typeof i29.CdkOptionsSubDropdownComponent, typeof i30.PickerComponent, typeof i31.PickerOptionComponent, typeof i32.PickerTriggerDirective, typeof i33.PillListComponent, typeof i34.PillItemComponent, typeof i35.ResponsiveInputComponent, typeof i36.SelectableItemDirective, typeof i37.SelectedOptionDirective, typeof i38.SelectDropdownDirective, typeof i39.SingleSelectComponent, typeof i40.SelectListComponent, typeof i41.SwitchComponent, typeof i42.SortingDropdownComponent, typeof i43.SortingDropdownTriggerComponent, typeof i44.InputComponent, typeof i45.FormatNumberPipe, typeof i46.FormErrorDirective, typeof i47.ErrorMessageComponent, typeof i48.FormSubmitDirective, typeof i49.ContenteditableDirective], [typeof i9.BasicDropdownComponent, typeof i10.ExpandedDropdownComponent, typeof i11.BasicDropdownItemComponent, typeof i12.BreadcrumbComponent, typeof i13.CurrencyInputComponent, typeof i14.CurrencySymbolComponent, typeof i15.DateInputComponent, typeof i16.FilterSelectionPipe, typeof i17.FilterTermPipe, typeof i18.FormErrorComponent, typeof i19.IconComponent, typeof i20.KeyboardActionSourceDirective, typeof i21.MarkInvalidDirective, typeof i22.MultiSelectComponent, typeof i23.OptionComponent, typeof i24.OptionGroupComponent, typeof i25.OptionGroupDropdownComponent, typeof i26.OptionsDropdownComponent, typeof i27.OptionsSubDropdownComponent, typeof i28.CdkOptionsDropdownComponent, typeof i29.CdkOptionsSubDropdownComponent, typeof i30.PickerComponent, typeof i31.PickerOptionComponent, typeof i32.PickerTriggerDirective, typeof i33.PillListComponent, typeof i34.PillItemComponent, typeof i35.ResponsiveInputComponent, typeof i36.SelectableItemDirective, typeof i38.SelectDropdownDirective, typeof i37.SelectedOptionDirective, typeof i40.SelectListComponent, typeof i39.SingleSelectComponent, typeof i41.SwitchComponent, typeof i42.SortingDropdownComponent, typeof i43.SortingDropdownTriggerComponent, typeof i45.FormatNumberPipe, typeof i46.FormErrorDirective, typeof i48.FormSubmitDirective, typeof i47.ErrorMessageComponent, typeof i8.LxDragAndDropListModule, typeof i49.ContenteditableDirective, typeof i44.InputComponent]>;
54
54
  static ɵinj: i0.ɵɵInjectorDeclaration<LxFormsModule>;
55
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leanix/components",
3
- "version": "0.4.433",
3
+ "version": "0.4.435",
4
4
  "license": "Apache-2.0",
5
5
  "author": "LeanIX GmbH",
6
6
  "repository": {
@@ -1,59 +0,0 @@
1
- import { NgIf } from '@angular/common';
2
- import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Switch component is a toggle switch that can be used to switch between two states.
6
- *
7
- * ## Usage
8
- *
9
- * 1. Import the `SliderToggleComponent` component from `@leanix/components` in your module or standalone copmonent where you want to use the component.
10
- *
11
- * ```ts
12
- * import { SliderToggleComponent } from '@leanix/components';
13
- * ```
14
- */
15
- export class SliderToggleComponent {
16
- constructor() {
17
- /** Size of the switch */
18
- this.size = 'small';
19
- /** Whether the switch is disabled */
20
- this.disabled = false;
21
- /** Whether the label is in front of the switch */
22
- this.labelInFront = true;
23
- /** Event that is emitted when the switch is toggled */
24
- this.toggle = new EventEmitter();
25
- }
26
- /** @internal */
27
- onToggle() {
28
- this.toggle.emit(!this.value);
29
- }
30
- get id() {
31
- return this.elementId ? `tour${this.elementId}` : null;
32
- }
33
- /** @internal */
34
- focus(checkbox) {
35
- // without a delay the checkbox will not be focused again
36
- setTimeout(() => checkbox.focus(), 150);
37
- }
38
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SliderToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
39
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.8", type: SliderToggleComponent, isStandalone: true, selector: "lx-slider-toggle", inputs: { value: "value", size: "size", disabled: "disabled", label: "label", labelInFront: "labelInFront", elementId: "elementId" }, outputs: { toggle: "toggle" }, ngImport: i0, template: "<div\n class=\"wrapper\"\n [class.withLabel]=\"label\"\n [class.withLabelBehind]=\"label && !labelInFront\"\n [class.disabled]=\"disabled\"\n [attr.id]=\"id\"\n [class.small]=\"size === 'small'\"\n>\n <span *ngIf=\"label\" class=\"labelText\" [class.off]=\"!value\">{{ label }}</span>\n <label class=\"checkbox\" [class.small]=\"size === 'small'\">\n <input\n #inputRef\n type=\"checkbox\"\n [checked]=\"value\"\n [disabled]=\"disabled\"\n (click)=\"inputRef.blur()\"\n (change)=\"onToggle()\"\n (keydown.space)=\"focus(inputRef)\"\n (keydown.enter)=\"onToggle()\"\n />\n <span class=\"slider\"></span>\n </label>\n</div>\n", styles: [":host{display:block}.wrapper{display:flex;align-items:center;justify-content:space-between;gap:4px}.wrapper.withLabel{flex-direction:row}.wrapper.withLabelBehind{flex-direction:row-reverse}.disabled{opacity:.5}.disabled .slider{cursor:default}.checkbox{position:relative;display:inline-block;margin:0}.labelText{color:#2a303d}.labelText.off{color:#526179}input{opacity:0;width:0;height:0;margin:0;padding:0}.small.checkbox{width:22px;height:14px}.small.wrapper:not(.withLabel){height:14px}.small .labelText{font-size:var(--lxFontSize, 13.5px)}.small .slider{border-radius:7px}.small .slider:before{height:12px;width:12px;left:1px;bottom:1px}.small input:checked+.slider:before{transform:translate(8px)}input:focus+.slider:before{box-shadow:0 0 0 6px #0003;transition:box-shadow .2s ease}.slider{position:absolute;cursor:pointer;inset:0;background-color:#b2bccc;transition:transform .2s}.slider:before{position:absolute;content:\"\";border-radius:50%;background-color:#fff;transition:transform .2s}input:checked+.slider{background-color:#33cc58}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
40
- }
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SliderToggleComponent, decorators: [{
42
- type: Component,
43
- args: [{ selector: 'lx-slider-toggle', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgIf], template: "<div\n class=\"wrapper\"\n [class.withLabel]=\"label\"\n [class.withLabelBehind]=\"label && !labelInFront\"\n [class.disabled]=\"disabled\"\n [attr.id]=\"id\"\n [class.small]=\"size === 'small'\"\n>\n <span *ngIf=\"label\" class=\"labelText\" [class.off]=\"!value\">{{ label }}</span>\n <label class=\"checkbox\" [class.small]=\"size === 'small'\">\n <input\n #inputRef\n type=\"checkbox\"\n [checked]=\"value\"\n [disabled]=\"disabled\"\n (click)=\"inputRef.blur()\"\n (change)=\"onToggle()\"\n (keydown.space)=\"focus(inputRef)\"\n (keydown.enter)=\"onToggle()\"\n />\n <span class=\"slider\"></span>\n </label>\n</div>\n", styles: [":host{display:block}.wrapper{display:flex;align-items:center;justify-content:space-between;gap:4px}.wrapper.withLabel{flex-direction:row}.wrapper.withLabelBehind{flex-direction:row-reverse}.disabled{opacity:.5}.disabled .slider{cursor:default}.checkbox{position:relative;display:inline-block;margin:0}.labelText{color:#2a303d}.labelText.off{color:#526179}input{opacity:0;width:0;height:0;margin:0;padding:0}.small.checkbox{width:22px;height:14px}.small.wrapper:not(.withLabel){height:14px}.small .labelText{font-size:var(--lxFontSize, 13.5px)}.small .slider{border-radius:7px}.small .slider:before{height:12px;width:12px;left:1px;bottom:1px}.small input:checked+.slider:before{transform:translate(8px)}input:focus+.slider:before{box-shadow:0 0 0 6px #0003;transition:box-shadow .2s ease}.slider{position:absolute;cursor:pointer;inset:0;background-color:#b2bccc;transition:transform .2s}.slider:before{position:absolute;content:\"\";border-radius:50%;background-color:#fff;transition:transform .2s}input:checked+.slider{background-color:#33cc58}\n"] }]
44
- }], propDecorators: { value: [{
45
- type: Input
46
- }], size: [{
47
- type: Input
48
- }], disabled: [{
49
- type: Input
50
- }], label: [{
51
- type: Input
52
- }], labelInFront: [{
53
- type: Input
54
- }], elementId: [{
55
- type: Input
56
- }], toggle: [{
57
- type: Output
58
- }] } });
59
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2xpZGVyLXRvZ2dsZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlc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hc3M9XCJsYWJlbFRleHRcIiBbY2xhc3Mub2ZmXT1cIiF2YWx1ZVwiPnt7IGxhYmVsIH19PC9zcGFuPlxuICA8bGFiZWwgY2xhc3M9XCJjaGVja2JveFwiIFtjbGFzcy5zbWFsbF09XCJzaXplID09PSAnc21hbGwnXCI+XG4gICAgPGlucHV0XG4gICAgICAjaW5wdXRSZWZcbiAgICAgIHR5cGU9XCJjaGVja2JveFwiXG4gICAgICBbY2hlY2tlZF09XCJ2YWx1ZVwiXG4gICAgICBbZGlzYWJsZWRdPVwiZGlzYWJsZWRcIlxuICAgICAgKGNsaWNrKT1cImlucHV0UmVmLmJsdXIoKVwiXG4gICAgICAoY2hhbmdlKT1cIm9uVG9nZ2xlKClcIlxuICAgICAgKGtleWRvd24uc3BhY2UpPVwiZm9jdXMoaW5wdXRSZWYpXCJcbiAgICAgIChrZXlkb3duLmVudGVyKT1cIm9uVG9nZ2xlKClcIlxuICAgIC8+XG4gICAgPHNwYW4gY2xhc3M9XCJzbGlkZXJcIj48L3NwYW4+XG4gIDwvbGFiZWw+XG48L2Rpdj5cbiJdfQ==
@@ -1,36 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Switch component is a toggle switch that can be used to switch between two states.
5
- *
6
- * ## Usage
7
- *
8
- * 1. Import the `SliderToggleComponent` component from `@leanix/components` in your module or standalone copmonent where you want to use the component.
9
- *
10
- * ```ts
11
- * import { SliderToggleComponent } from '@leanix/components';
12
- * ```
13
- */
14
- export declare class SliderToggleComponent {
15
- /** Value of the switch */
16
- value: boolean;
17
- /** Size of the switch */
18
- size: 'small';
19
- /** Whether the switch is disabled */
20
- disabled: boolean;
21
- /** Label of the switch */
22
- label: string;
23
- /** Whether the label is in front of the switch */
24
- labelInFront: boolean;
25
- /** Id of the switch */
26
- elementId?: string;
27
- /** Event that is emitted when the switch is toggled */
28
- toggle: EventEmitter<boolean>;
29
- /** @internal */
30
- onToggle(): void;
31
- get id(): string | null;
32
- /** @internal */
33
- focus(checkbox: HTMLInputElement): void;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<SliderToggleComponent, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<SliderToggleComponent, "lx-slider-toggle", never, { "value": { "alias": "value"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelInFront": { "alias": "labelInFront"; "required": false; }; "elementId": { "alias": "elementId"; "required": false; }; }, { "toggle": "toggle"; }, never, never, true, never>;
36
- }