@breadstone/mosaik-elements-angular 0.0.119 → 0.0.120
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/CHANGELOG.md +6 -0
- package/fesm2022/mosaik-elements-angular.mjs +69 -32
- package/fesm2022/mosaik-elements-angular.mjs.map +1 -1
- package/index.d.ts +16 -10
- package/index.d.ts.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, inject, ChangeDetectorRef, ElementRef, NgZone, EventEmitter, Output, Input, ChangeDetectionStrategy, Component, makeEnvironmentProviders, DestroyRef, Directive, forwardRef, Injectable, Pipe, signal, effect, ViewChild, ViewEncapsulation, TemplateRef, Injector, DOCUMENT as DOCUMENT$1, Renderer2, computed, provideEnvironmentInitializer, ViewContainerRef, booleanAttribute, HostListener, ContentChildren, isDevMode } from '@angular/core';
|
|
3
3
|
import * as i1$1 from '@breadstone/mosaik-elements-foundation';
|
|
4
|
-
import { AbsoluteItemElement, AbsoluteElement, AnchorElement, AppHeaderElement, AppElement, AutoCompleteBoxElement, AvatarGroupElement, avatarElementValueAccessor, AvatarElement, BackdropElement, BadgeElement, BannerHeaderElement, BannerSubHeaderElement, BannerElement, BottomSheetElement, BoxElement, BreadcrumbItemElement, BreadcrumbElement, ButtonGroupElement, ButtonElement, CalendarHeaderElement, CalendarItemElement, CalendarSubHeaderElement, calendarElementValueAccessor, CalendarElement, CameraElement, CardActionsElement, CardContentElement, CardFooterElement, CardHeaderElement, CardSubTitleElement, CardTitleElement, CardElement, Carousel2Element, CarouselItem2Element, CarouselItemElement, CarouselElement, CellGroupElement, CellElement, ChartElement, ChatHeaderElement, ChatInputElement, ChatMarkerElement, ChatMessageAvatarElement, ChatMessageDividerElement, ChatMessageElement, ChatElement, checkBoxGroupElementValueAccessor, CheckBoxGroupElement, checkboxElementValueAccessor, CheckboxElement, CheckmarkElement, ChipElement, chipBoxElementValueAccessor, ChipBoxElement, ChoiceGroupHeaderElement, choiceGroupElementValueAccessor, ChoiceGroupElement, choiceElementValueAccessor, ChoiceElement, CodeElement, ColorAreaElement, ColorPickerElement, ColorSliderElement, ColorSwatchGroupElement, ColorSwatchElement, ColorThumbElement, colorBoxElementValueAccessor, ColorBoxElement, ComboItemElement, comboElementValueAccessor, ComboElement, CommentElement, CompoundButtonElement, CookiesConsentElement, DataListElement, DataTableElement, dateBoxElementValueAccessor, DateBoxElement, dateTimeBoxElementValueAccessor, DateTimeBoxElement, DialogActionsElement, DialogContentElement, DialogFooterElement, DialogHeaderSubTextElement, DialogHeaderTextElement, DialogHeaderElement, DialogElement, DisclosureElement, DismissElement, DividerElement, DotElement, DrawerContainerElement, DrawerContentElement, DrawerElement, DropZoneElement, DropDownButtonElement, ElevationElement, EmojiElement, EmptyStateElement, EpgChannelElement, EpgProgramElement, EpgElement, ErrorStateElement, ErrorElement, ExpandableElement, ExpanderGroupElement, ExpanderHeaderElement, ExpanderSubHeaderElement, ExpanderElement, FloatingActionButtonGroupElement, FloatingActionButtonElement, FilePickerElement, FileUploadItemElement, fileUploadElementValueAccessor, FileUploadElement, FlipElement, FloatingTriggerElement, FloatingElement, FocusRingElement, FooterItemGroupElement, FooterItemElement, FooterElement, FormFieldElement, FormElement, GridItemElement, GridElement, HelmetElement, HintElement, IconElement, ImageElement, IndicatorElement, JumbotronHeaderElement, JumbotronSubHeaderElement, JumbotronElement, KbdShortcutElement, KbdElement, LightChainElement, ListItemGroupElement, ListItemElement, ListElement, MarqueeElement, MasonryElement, MenuItemGroupElement, MenuItemElement, MenuElement, MessageBoxElement, MeterBarElement, MeterRingElement, NumberCounterElement, NumberElement, numberBoxElementValueAccessor, NumberBoxElement, PageContentElement, PageHeaderElement, PagePreContentElement, PagePreHeaderElement, PageElement, PageMenuElement, PaginatorElement, passwordBoxElementValueAccessor, PasswordBoxElement, PatternElement, PersonaElement, PerspectiveElement, pinBoxElementValueAccessor, PinBoxElement, PopupElement, PortalHostElement, PortalProjectionElement, PortalElement, ProgressBarElement, ProgressRingElement, QRCodeElement, radioGroupElementValueAccessor, RadioGroupElement, radioElementValueAccessor, RadioElement, RatingElement, RepeatButtonElement, ResizeAdornerElement, RibbonElement, richTextBoxElementValueAccessor, RichTextBoxElement, RippleElement, ScaleElement, ScrollElement, scrubSliderElementValueAccessor, ScrubSliderElement, searchBoxElementValueAccessor, SearchBoxElement, SegmentItemElement, SegmentElement, SelectItemGroupElement, SelectItemElement, selectElementValueAccessor, SelectElement, signaturePadElementValueAccessor, SignaturePadElement, SkeletonElement, sliderElementValueAccessor, SliderElement, Slider2ThumbElement, Slider2Element, SpacerElement, SplitButtonElement, SplitElement, StackElement, StickyElement, SuccessStateElement, SummaryElement, SwipeElement, TabItemElement, TabPanelElement, TabStripItemElement, TabStripElement, TabElement, TableBodyElement, TableCellElement, TableFooterElement, TableHeaderElement, TableRowElement, TableElement, TextFormatElement, TextElement, textBoxElementValueAccessor, TextBoxElement, Theme2Element, TickBarElement, TileListItemElement, TileListElement, timeBoxElementValueAccessor, TimeBoxElement, ToastElement, ToggleButtonElement, toggleSwitchElementValueAccessor, ToggleSwitchElement, ToggleTipElement, ToolbarElement, TooltipElement, TreeItemElement, TreeElement, UpDownSpinnerElement, VideoElement, VirtualizeElement, WizardStepElement, WizardElement, WrapElement, ToastService as ToastService$1, EID, Key, MessageBoxService as MessageBoxService$1, BottomSheetService as BottomSheetService$1, TranslatorService, Translator, TranslatorServiceLocator, BREAKPOINTS, Size, Spacing, AnimationPlayer2, Animation } from '@breadstone/mosaik-elements-foundation';
|
|
4
|
+
import { AbsoluteItemElement, AbsoluteElement, AnchorElement, AppHeaderElement, AppElement, AutoCompleteBoxElement, AvatarGroupElement, avatarElementValueAccessor, AvatarElement, BackdropElement, BadgeElement, BannerHeaderElement, BannerSubHeaderElement, BannerElement, BottomSheetElement, BoxElement, BreadcrumbItemElement, BreadcrumbElement, ButtonGroupElement, ButtonElement, CalendarHeaderElement, CalendarItemElement, CalendarSubHeaderElement, calendarElementValueAccessor, CalendarElement, CameraElement, CardActionsElement, CardContentElement, CardFooterElement, CardHeaderElement, CardSubTitleElement, CardTitleElement, CardElement, Carousel2Element, CarouselItem2Element, CarouselItemElement, CarouselElement, CellGroupElement, CellElement, ChartElement, ChatHeaderElement, ChatInputElement, ChatMarkerElement, ChatMessageAvatarElement, ChatMessageDividerElement, ChatMessageElement, ChatElement, checkBoxGroupElementValueAccessor, CheckBoxGroupElement, checkboxElementValueAccessor, CheckboxElement, CheckmarkElement, ChipElement, chipBoxElementValueAccessor, ChipBoxElement, ChoiceGroupHeaderElement, choiceGroupElementValueAccessor, ChoiceGroupElement, choiceElementValueAccessor, ChoiceElement, CodeElement, ColorAreaElement, ColorPickerElement, ColorSliderElement, ColorSwatchGroupElement, ColorSwatchElement, ColorThumbElement, colorBoxElementValueAccessor, ColorBoxElement, ComboItemElement, comboElementValueAccessor, ComboElement, CommentElement, CompoundButtonElement, CookiesConsentElement, DataListElement, DataTableElement, dateBoxElementValueAccessor, DateBoxElement, dateTimeBoxElementValueAccessor, DateTimeBoxElement, DialogActionsElement, DialogContentElement, DialogFooterElement, DialogHeaderSubTextElement, DialogHeaderTextElement, DialogHeaderElement, DialogElement, DisclosureElement, DismissElement, DividerElement, DotElement, DrawerContainerElement, DrawerContentElement, DrawerElement, DropZoneElement, DropDownButtonElement, ElevationElement, EmojiElement, EmptyStateElement, EpgChannelElement, EpgProgramElement, EpgElement, ErrorStateElement, ErrorElement, ExpandableElement, ExpanderGroupElement, ExpanderHeaderElement, ExpanderSubHeaderElement, ExpanderElement, FloatingActionButtonGroupElement, FloatingActionButtonElement, FilePickerElement, FileUploadItemElement, fileUploadElementValueAccessor, FileUploadElement, FlipElement, FloatingTriggerElement, FloatingElement, FocusRingElement, FooterItemGroupElement, FooterItemElement, FooterElement, FormFieldElement, FormElement, GridItemElement, GridElement, HelmetElement, HintElement, IconElement, ImageElement, IndicatorElement, JumbotronHeaderElement, JumbotronSubHeaderElement, JumbotronElement, KbdShortcutElement, KbdElement, LightChainElement, ListItemGroupElement, ListItemElement, ListElement, MarqueeElement, MasonryElement, MenuItemGroupElement, MenuItemElement, MenuElement, MessageBoxElement, MeterBarElement, MeterRingElement, NumberCounterElement, NumberElement, numberBoxElementValueAccessor, NumberBoxElement, PageContentElement, PageHeaderElement, PagePreContentElement, PagePreHeaderElement, PageElement, PageMenuElement, PaginatorElement, passwordBoxElementValueAccessor, PasswordBoxElement, PatternElement, PersonaElement, PerspectiveElement, pinBoxElementValueAccessor, PinBoxElement, PopupElement, PortalHostElement, PortalProjectionElement, PortalElement, ProgressBarElement, ProgressRingElement, QRCodeElement, radioGroupElementValueAccessor, RadioGroupElement, radioElementValueAccessor, RadioElement, RatingElement, RepeatButtonElement, ResizeAdornerElement, RibbonElement, richTextBoxElementValueAccessor, RichTextBoxElement, RippleElement, ScaleElement, ScrollElement, scrubSliderElementValueAccessor, ScrubSliderElement, searchBoxElementValueAccessor, SearchBoxElement, SegmentItemElement, SegmentElement, SelectItemGroupElement, SelectItemElement, selectElementValueAccessor, SelectElement, signaturePadElementValueAccessor, SignaturePadElement, SkeletonElement, sliderElementValueAccessor, SliderElement, Slider2ThumbElement, Slider2Element, SpacerElement, SplitButtonElement, SplitElement, StackElement, StickyElement, SuccessStateElement, SummaryElement, SwipeElement, TabItemElement, TabPanelElement, TabStripItemElement, TabStripElement, TabElement, TableBodyElement, TableCellElement, TableFooterElement, TableHeaderElement, TableRowElement, TableElement, TextFormatElement, TextElement, textBoxElementValueAccessor, TextBoxElement, Theme2Element, TickBarElement, TileListItemElement, TileListElement, timeBoxElementValueAccessor, TimeBoxElement, ToastElement, toggleButtonElementValueAccessor, ToggleButtonElement, toggleSwitchElementValueAccessor, ToggleSwitchElement, ToggleTipElement, ToolbarElement, TooltipElement, TreeItemElement, TreeElement, UpDownSpinnerElement, VideoElement, VirtualizeElement, WizardStepElement, WizardElement, WrapElement, ToastService as ToastService$1, EID, Key, MessageBoxService as MessageBoxService$1, BottomSheetService as BottomSheetService$1, TranslatorService, Translator, TranslatorServiceLocator, BREAKPOINTS, Size, Spacing, AnimationPlayer2, Animation } from '@breadstone/mosaik-elements-foundation';
|
|
5
5
|
import * as i1 from '@angular/forms';
|
|
6
6
|
import { NgControl, TouchedChangeEvent, NG_VALUE_ACCESSOR, FormGroup, FormControl, FormArray, AbstractControl } from '@angular/forms';
|
|
7
7
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
@@ -40530,26 +40530,6 @@ let ScrubSliderComponent = class ScrubSliderComponent {
|
|
|
40530
40530
|
this._element.on('changed', (e) => this.onEmit(this._changed, e));
|
|
40531
40531
|
applyDefaults(this._element, inject(SCRUB_SLIDER_DEFAULT_PROPS, { optional: true }) ?? {});
|
|
40532
40532
|
}
|
|
40533
|
-
get pxPerStep() {
|
|
40534
|
-
// @ts-ignore - temporary fix for the type error
|
|
40535
|
-
return this._element.pxPerStep;
|
|
40536
|
-
}
|
|
40537
|
-
set pxPerStep(value) {
|
|
40538
|
-
this._zone.runOutsideAngular(() => {
|
|
40539
|
-
// @ts-ignore - temporary fix for the type error
|
|
40540
|
-
this._element.pxPerStep = value;
|
|
40541
|
-
});
|
|
40542
|
-
}
|
|
40543
|
-
get accelerate() {
|
|
40544
|
-
// @ts-ignore - temporary fix for the type error
|
|
40545
|
-
return this._element.accelerate;
|
|
40546
|
-
}
|
|
40547
|
-
set accelerate(value) {
|
|
40548
|
-
this._zone.runOutsideAngular(() => {
|
|
40549
|
-
// @ts-ignore - temporary fix for the type error
|
|
40550
|
-
this._element.accelerate = value;
|
|
40551
|
-
});
|
|
40552
|
-
}
|
|
40553
40533
|
get step() {
|
|
40554
40534
|
// @ts-ignore - temporary fix for the type error
|
|
40555
40535
|
return this._element.step;
|
|
@@ -40630,6 +40610,26 @@ let ScrubSliderComponent = class ScrubSliderComponent {
|
|
|
40630
40610
|
this._element.tooltipAccessor = value;
|
|
40631
40611
|
});
|
|
40632
40612
|
}
|
|
40613
|
+
get pxPerStep() {
|
|
40614
|
+
// @ts-ignore - temporary fix for the type error
|
|
40615
|
+
return this._element.pxPerStep;
|
|
40616
|
+
}
|
|
40617
|
+
set pxPerStep(value) {
|
|
40618
|
+
this._zone.runOutsideAngular(() => {
|
|
40619
|
+
// @ts-ignore - temporary fix for the type error
|
|
40620
|
+
this._element.pxPerStep = value;
|
|
40621
|
+
});
|
|
40622
|
+
}
|
|
40623
|
+
get accelerate() {
|
|
40624
|
+
// @ts-ignore - temporary fix for the type error
|
|
40625
|
+
return this._element.accelerate;
|
|
40626
|
+
}
|
|
40627
|
+
set accelerate(value) {
|
|
40628
|
+
this._zone.runOutsideAngular(() => {
|
|
40629
|
+
// @ts-ignore - temporary fix for the type error
|
|
40630
|
+
this._element.accelerate = value;
|
|
40631
|
+
});
|
|
40632
|
+
}
|
|
40633
40633
|
get themeName() {
|
|
40634
40634
|
// @ts-ignore - temporary fix for the type error
|
|
40635
40635
|
return this._element.themeName;
|
|
@@ -40792,7 +40792,7 @@ let ScrubSliderComponent = class ScrubSliderComponent {
|
|
|
40792
40792
|
}
|
|
40793
40793
|
}
|
|
40794
40794
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ScrubSliderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
40795
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: ScrubSliderComponent, isStandalone: true, selector: "mosaik-scrub-slider", inputs: {
|
|
40795
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: ScrubSliderComponent, isStandalone: true, selector: "mosaik-scrub-slider", inputs: { step: "step", track: "track", ticks: "ticks", tickPlacement: "tickPlacement", showTickLabels: "showTickLabels", tickLabelAccessor: "tickLabelAccessor", tooltipPlacement: "tooltipPlacement", tooltipAccessor: "tooltipAccessor", pxPerStep: "pxPerStep", accelerate: "accelerate", themeName: "themeName", orientation: "orientation", disabled: "disabled", variant: "variant", appearance: "appearance", isFocused: "isFocused", invalid: "invalid", min: "min", max: "max", value: "value", dir: "dir", lang: "lang" }, outputs: { input: "input", change: "change", valueChanged: "valueChanged", connected: "connected", disconnected: "disconnected", changed: "changed" }, providers: [
|
|
40796
40796
|
{
|
|
40797
40797
|
provide: NG_VALUE_ACCESSOR,
|
|
40798
40798
|
useExisting: forwardRef(() => ScrubSliderComponent),
|
|
@@ -40807,7 +40807,7 @@ let ScrubSliderComponent = class ScrubSliderComponent {
|
|
|
40807
40807
|
ScrubSliderComponent = __decorate$Q([
|
|
40808
40808
|
ProxyCmp({
|
|
40809
40809
|
defineCustomElementFn: () => customElements.define('mosaik-scrub-slider', ScrubSliderElement),
|
|
40810
|
-
inputs: ['
|
|
40810
|
+
inputs: ['step', 'track', 'ticks', 'tickPlacement', 'showTickLabels', 'tickLabelAccessor', 'tooltipPlacement', 'tooltipAccessor', 'pxPerStep', 'accelerate', 'themeName', 'orientation', 'disabled', 'variant', 'appearance', 'isFocused', 'invalid', 'min', 'max', 'value', 'dir', 'lang'],
|
|
40811
40811
|
methods: ['checkValidity', 'hasVisibleFocusInTree', 'adoptStyle', 'on', 'off', 'emit', 'requestUpdate']
|
|
40812
40812
|
}),
|
|
40813
40813
|
__metadata$Q("design:paramtypes", [])
|
|
@@ -40819,7 +40819,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
40819
40819
|
standalone: true,
|
|
40820
40820
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
40821
40821
|
template: '<ng-content></ng-content>',
|
|
40822
|
-
inputs: ['
|
|
40822
|
+
inputs: ['step', 'track', 'ticks', 'tickPlacement', 'showTickLabels', 'tickLabelAccessor', 'tooltipPlacement', 'tooltipAccessor', 'pxPerStep', 'accelerate', 'themeName', 'orientation', 'disabled', 'variant', 'appearance', 'isFocused', 'invalid', 'min', 'max', 'value', 'dir', 'lang'],
|
|
40823
40823
|
outputs: ['input', 'change', 'valueChanged', 'connected', 'disconnected', 'changed'],
|
|
40824
40824
|
hostDirectives: [FormStatusDirective],
|
|
40825
40825
|
providers: [
|
|
@@ -40834,11 +40834,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
40834
40834
|
}
|
|
40835
40835
|
]
|
|
40836
40836
|
}]
|
|
40837
|
-
}], ctorParameters: () => [], propDecorators: {
|
|
40838
|
-
type: Input
|
|
40839
|
-
}], accelerate: [{
|
|
40840
|
-
type: Input
|
|
40841
|
-
}], step: [{
|
|
40837
|
+
}], ctorParameters: () => [], propDecorators: { step: [{
|
|
40842
40838
|
type: Input
|
|
40843
40839
|
}], track: [{
|
|
40844
40840
|
type: Input
|
|
@@ -40854,6 +40850,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
40854
40850
|
type: Input
|
|
40855
40851
|
}], tooltipAccessor: [{
|
|
40856
40852
|
type: Input
|
|
40853
|
+
}], pxPerStep: [{
|
|
40854
|
+
type: Input
|
|
40855
|
+
}], accelerate: [{
|
|
40856
|
+
type: Input
|
|
40857
40857
|
}], themeName: [{
|
|
40858
40858
|
type: Input
|
|
40859
40859
|
}], orientation: [{
|
|
@@ -51111,6 +51111,7 @@ const TOGGLE_BUTTON_DEFAULT_PROPS = new InjectionToken('MOSAIK_TOGGLE_BUTTON_DEF
|
|
|
51111
51111
|
let ToggleButtonComponent = class ToggleButtonComponent {
|
|
51112
51112
|
_element;
|
|
51113
51113
|
_zone;
|
|
51114
|
+
_accessor;
|
|
51114
51115
|
_checked;
|
|
51115
51116
|
_unchecked;
|
|
51116
51117
|
_connected;
|
|
@@ -51120,6 +51121,8 @@ let ToggleButtonComponent = class ToggleButtonComponent {
|
|
|
51120
51121
|
inject(ChangeDetectorRef).detach();
|
|
51121
51122
|
this._element = inject(ElementRef).nativeElement;
|
|
51122
51123
|
this._zone = inject(NgZone);
|
|
51124
|
+
this._accessor = toggleButtonElementValueAccessor(this._element);
|
|
51125
|
+
this._element.addController(this._accessor);
|
|
51123
51126
|
this._checked = new EventEmitter();
|
|
51124
51127
|
this._element.on('checked', (e) => this.onEmit(this._checked, e));
|
|
51125
51128
|
this._unchecked = new EventEmitter();
|
|
@@ -51357,6 +51360,18 @@ let ToggleButtonComponent = class ToggleButtonComponent {
|
|
|
51357
51360
|
get changed() {
|
|
51358
51361
|
return this._changed;
|
|
51359
51362
|
}
|
|
51363
|
+
writeValue(obj) {
|
|
51364
|
+
this._accessor.writeValue(obj);
|
|
51365
|
+
}
|
|
51366
|
+
registerOnChange(fn) {
|
|
51367
|
+
this._accessor.registerOnChange(fn);
|
|
51368
|
+
}
|
|
51369
|
+
registerOnTouched(fn) {
|
|
51370
|
+
this._accessor.registerOnTouched(fn);
|
|
51371
|
+
}
|
|
51372
|
+
setDisabledState(isDisabled) {
|
|
51373
|
+
this._accessor.setDisabled?.(isDisabled);
|
|
51374
|
+
}
|
|
51360
51375
|
invoke(method, ...args) {
|
|
51361
51376
|
return this._element[method](...args);
|
|
51362
51377
|
}
|
|
@@ -51369,13 +51384,23 @@ let ToggleButtonComponent = class ToggleButtonComponent {
|
|
|
51369
51384
|
}
|
|
51370
51385
|
}
|
|
51371
51386
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ToggleButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
51372
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: ToggleButtonComponent, isStandalone: true, selector: "mosaik-toggle-button", inputs: { themeName: "themeName", reverse: "reverse", orientation: "orientation", horizontalContentAlignment: "horizontalContentAlignment", verticalContentAlignment: "verticalContentAlignment", fit: "fit", isBusy: "isBusy", isChecked: "isChecked", label: "label", icon: "icon", iconPosition: "iconPosition", iconSize: "iconSize", type: "type", variant: "variant", appearance: "appearance", size: "size", value: "value", disabled: "disabled", isFocused: "isFocused", dir: "dir", lang: "lang" }, outputs: { checked: "checked", unchecked: "unchecked", connected: "connected", disconnected: "disconnected", changed: "changed" },
|
|
51387
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: ToggleButtonComponent, isStandalone: true, selector: "mosaik-toggle-button", inputs: { themeName: "themeName", reverse: "reverse", orientation: "orientation", horizontalContentAlignment: "horizontalContentAlignment", verticalContentAlignment: "verticalContentAlignment", fit: "fit", isBusy: "isBusy", isChecked: "isChecked", label: "label", icon: "icon", iconPosition: "iconPosition", iconSize: "iconSize", type: "type", variant: "variant", appearance: "appearance", size: "size", value: "value", disabled: "disabled", isFocused: "isFocused", dir: "dir", lang: "lang" }, outputs: { checked: "checked", unchecked: "unchecked", connected: "connected", disconnected: "disconnected", changed: "changed" }, providers: [
|
|
51388
|
+
{
|
|
51389
|
+
provide: NG_VALUE_ACCESSOR,
|
|
51390
|
+
useExisting: forwardRef(() => ToggleButtonComponent),
|
|
51391
|
+
multi: true
|
|
51392
|
+
},
|
|
51393
|
+
{
|
|
51394
|
+
provide: FORM_STATUS_HOST,
|
|
51395
|
+
useExisting: forwardRef(() => ToggleButtonComponent)
|
|
51396
|
+
}
|
|
51397
|
+
], hostDirectives: [{ directive: FormStatusDirective }], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
51373
51398
|
};
|
|
51374
51399
|
ToggleButtonComponent = __decorate$c([
|
|
51375
51400
|
ProxyCmp({
|
|
51376
51401
|
defineCustomElementFn: () => customElements.define('mosaik-toggle-button', ToggleButtonElement),
|
|
51377
51402
|
inputs: ['themeName', 'reverse', 'orientation', 'horizontalContentAlignment', 'verticalContentAlignment', 'fit', 'isBusy', 'isChecked', 'label', 'icon', 'iconPosition', 'iconSize', 'type', 'variant', 'appearance', 'size', 'value', 'disabled', 'isFocused', 'dir', 'lang'],
|
|
51378
|
-
methods: ['check', 'uncheck', 'toggle', 'hasVisibleFocusInTree', 'adoptStyle', 'on', 'off', 'emit', 'requestUpdate']
|
|
51403
|
+
methods: ['reset', 'check', 'uncheck', 'toggle', 'hasVisibleFocusInTree', 'adoptStyle', 'on', 'off', 'emit', 'requestUpdate']
|
|
51379
51404
|
}),
|
|
51380
51405
|
__metadata$c("design:paramtypes", [])
|
|
51381
51406
|
], ToggleButtonComponent);
|
|
@@ -51387,7 +51412,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
51387
51412
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
51388
51413
|
template: '<ng-content></ng-content>',
|
|
51389
51414
|
inputs: ['themeName', 'reverse', 'orientation', 'horizontalContentAlignment', 'verticalContentAlignment', 'fit', 'isBusy', 'isChecked', 'label', 'icon', 'iconPosition', 'iconSize', 'type', 'variant', 'appearance', 'size', 'value', 'disabled', 'isFocused', 'dir', 'lang'],
|
|
51390
|
-
outputs: ['checked', 'unchecked', 'connected', 'disconnected', 'changed']
|
|
51415
|
+
outputs: ['checked', 'unchecked', 'connected', 'disconnected', 'changed'],
|
|
51416
|
+
hostDirectives: [FormStatusDirective],
|
|
51417
|
+
providers: [
|
|
51418
|
+
{
|
|
51419
|
+
provide: NG_VALUE_ACCESSOR,
|
|
51420
|
+
useExisting: forwardRef(() => ToggleButtonComponent),
|
|
51421
|
+
multi: true
|
|
51422
|
+
},
|
|
51423
|
+
{
|
|
51424
|
+
provide: FORM_STATUS_HOST,
|
|
51425
|
+
useExisting: forwardRef(() => ToggleButtonComponent)
|
|
51426
|
+
}
|
|
51427
|
+
]
|
|
51391
51428
|
}]
|
|
51392
51429
|
}], ctorParameters: () => [], propDecorators: { themeName: [{
|
|
51393
51430
|
type: Input
|