integra-ng 21.1.2 → 21.1.3
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/fesm2022/integra-ng.mjs +184 -1
- package/fesm2022/integra-ng.mjs.map +1 -1
- package/package.json +1 -1
- package/types/integra-ng.d.ts +131 -2
package/package.json
CHANGED
package/types/integra-ng.d.ts
CHANGED
|
@@ -3622,6 +3622,135 @@ declare class ITabs implements AfterContentInit {
|
|
|
3622
3622
|
static ɵcmp: i0.ɵɵComponentDeclaration<ITabs, "i-tabs", never, { "activeIndex": { "alias": "activeIndex"; "required": false; }; }, { "activeIndexChange": "activeIndexChange"; "onChange": "onChange"; "onClose": "onClose"; }, ["tabPanels"], never, true, never>;
|
|
3623
3623
|
}
|
|
3624
3624
|
|
|
3625
|
+
/**
|
|
3626
|
+
* Supported toggle sizes
|
|
3627
|
+
*/
|
|
3628
|
+
type IToggleSize = 'small' | 'medium' | 'large';
|
|
3629
|
+
/**
|
|
3630
|
+
* Toggle Component
|
|
3631
|
+
*
|
|
3632
|
+
* A form control toggle switch component that switches between true and false.
|
|
3633
|
+
* Supports multiple sizes and states, and is fully compatible with Angular Reactive Forms.
|
|
3634
|
+
*
|
|
3635
|
+
* @example
|
|
3636
|
+
* ```html
|
|
3637
|
+
* <!-- Basic toggle -->
|
|
3638
|
+
* <i-toggle label="Enable notifications"></i-toggle>
|
|
3639
|
+
*
|
|
3640
|
+
* <!-- Toggle with ngModel -->
|
|
3641
|
+
* <i-toggle
|
|
3642
|
+
* label="Dark mode"
|
|
3643
|
+
* [(ngModel)]="darkMode">
|
|
3644
|
+
* </i-toggle>
|
|
3645
|
+
*
|
|
3646
|
+
* <!-- Toggle in reactive form -->
|
|
3647
|
+
* <i-toggle
|
|
3648
|
+
* label="Accept terms"
|
|
3649
|
+
* formControlName="acceptTerms">
|
|
3650
|
+
* </i-toggle>
|
|
3651
|
+
*
|
|
3652
|
+
* <!-- Disabled toggle -->
|
|
3653
|
+
* <i-toggle
|
|
3654
|
+
* label="Disabled option"
|
|
3655
|
+
* [disabled]="true">
|
|
3656
|
+
* </i-toggle>
|
|
3657
|
+
*
|
|
3658
|
+
* <!-- Different sizes -->
|
|
3659
|
+
* <i-toggle label="Small" size="small"></i-toggle>
|
|
3660
|
+
* <i-toggle label="Medium" size="medium"></i-toggle>
|
|
3661
|
+
* <i-toggle label="Large" size="large"></i-toggle>
|
|
3662
|
+
* ```
|
|
3663
|
+
*
|
|
3664
|
+
* @remarks
|
|
3665
|
+
* This component implements ControlValueAccessor for seamless integration with Angular Forms.
|
|
3666
|
+
*/
|
|
3667
|
+
declare class IToggle implements ControlValueAccessor {
|
|
3668
|
+
/**
|
|
3669
|
+
* Label text displayed next to the toggle
|
|
3670
|
+
*/
|
|
3671
|
+
label?: string;
|
|
3672
|
+
/**
|
|
3673
|
+
* HTML id attribute for the toggle element
|
|
3674
|
+
*/
|
|
3675
|
+
id?: string;
|
|
3676
|
+
/**
|
|
3677
|
+
* Whether the toggle is disabled
|
|
3678
|
+
* @default false
|
|
3679
|
+
*/
|
|
3680
|
+
disabled: boolean;
|
|
3681
|
+
/**
|
|
3682
|
+
* Whether the toggle is readonly (cannot be changed by user)
|
|
3683
|
+
* @default false
|
|
3684
|
+
*/
|
|
3685
|
+
readonly: boolean;
|
|
3686
|
+
/**
|
|
3687
|
+
* Size of the toggle
|
|
3688
|
+
* @default 'medium'
|
|
3689
|
+
*/
|
|
3690
|
+
size: IToggleSize;
|
|
3691
|
+
/**
|
|
3692
|
+
* Checked (on) state of the toggle
|
|
3693
|
+
*/
|
|
3694
|
+
set checked(value: boolean);
|
|
3695
|
+
get checked(): boolean;
|
|
3696
|
+
/**
|
|
3697
|
+
* Event emitted when toggle state changes
|
|
3698
|
+
*/
|
|
3699
|
+
onChange: EventEmitter<boolean>;
|
|
3700
|
+
/**
|
|
3701
|
+
* Unique component identifier
|
|
3702
|
+
* @internal
|
|
3703
|
+
*/
|
|
3704
|
+
componentId: string;
|
|
3705
|
+
/**
|
|
3706
|
+
* Internal checked state
|
|
3707
|
+
* @internal
|
|
3708
|
+
*/
|
|
3709
|
+
private _checked;
|
|
3710
|
+
/**
|
|
3711
|
+
* Callback for ControlValueAccessor
|
|
3712
|
+
* @internal
|
|
3713
|
+
*/
|
|
3714
|
+
private onChangeCallback;
|
|
3715
|
+
/**
|
|
3716
|
+
* Callback for ControlValueAccessor
|
|
3717
|
+
* @internal
|
|
3718
|
+
*/
|
|
3719
|
+
private onTouchedCallback;
|
|
3720
|
+
/**
|
|
3721
|
+
* Toggles the switch state
|
|
3722
|
+
* @internal
|
|
3723
|
+
*/
|
|
3724
|
+
toggle(): void;
|
|
3725
|
+
/**
|
|
3726
|
+
* Handles keyboard events (Space/Enter) — only prevents default when interactive
|
|
3727
|
+
* @internal
|
|
3728
|
+
*/
|
|
3729
|
+
handleKeydown(event: Event): void;
|
|
3730
|
+
/**
|
|
3731
|
+
* Writes a value to the toggle (ControlValueAccessor)
|
|
3732
|
+
* @internal
|
|
3733
|
+
*/
|
|
3734
|
+
writeValue(value: boolean): void;
|
|
3735
|
+
/**
|
|
3736
|
+
* Registers the onChange callback (ControlValueAccessor)
|
|
3737
|
+
* @internal
|
|
3738
|
+
*/
|
|
3739
|
+
registerOnChange(fn: (value: boolean) => void): void;
|
|
3740
|
+
/**
|
|
3741
|
+
* Registers the onTouched callback (ControlValueAccessor)
|
|
3742
|
+
* @internal
|
|
3743
|
+
*/
|
|
3744
|
+
registerOnTouched(fn: () => void): void;
|
|
3745
|
+
/**
|
|
3746
|
+
* Sets the disabled state (ControlValueAccessor)
|
|
3747
|
+
* @internal
|
|
3748
|
+
*/
|
|
3749
|
+
setDisabledState(isDisabled: boolean): void;
|
|
3750
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IToggle, never>;
|
|
3751
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IToggle, "i-toggle", never, { "label": { "alias": "label"; "required": false; }; "id": { "alias": "id"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "size": { "alias": "size"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; }, { "onChange": "onChange"; }, never, never, true, never>;
|
|
3752
|
+
}
|
|
3753
|
+
|
|
3625
3754
|
/**
|
|
3626
3755
|
* Tree node data structure
|
|
3627
3756
|
*/
|
|
@@ -5492,5 +5621,5 @@ interface ZIndexUtilsInterface {
|
|
|
5492
5621
|
}
|
|
5493
5622
|
declare function ZIndexUtils(): ZIndexUtilsInterface;
|
|
5494
5623
|
|
|
5495
|
-
export { AbstractDialog, CLAIMS_CHECKER, ConfirmationDialogComponent, ConfirmationDialogService, DataUpdateEventService, DialogService, EmptyStateComponent, IAccordion, IAccordionList, IButton, ICalendar, ICard, IChart, ICheckbox, IChip, IChipsComponent, IDialog, IDialogActions, IDialogBase, IInputText, IListbox, IMessage, IMultiSelect, IOverlayPanel, IPanel, IPlaceholder, IProgressSpinner, IRadioButton, ISelect, ITabPanel, ITable, ITabs, ITag, ITextarea, ITreeView, IWhisper, LayoutComponent, LayoutService, LocalStorageColorSchemeKey, MenuComponent, NoContentComponent, SeoService, SidebarComponent, StructuredDataService, TooltipComponent, TooltipDirective, TopbarComponent, UniqueComponentId, WhisperService, ZIndexUtils, lastId, provideMenuClaimsChecker };
|
|
5496
|
-
export type { AppConfig, ArticleSchema, BreadcrumbItem, CalendarView, ChipItem, ChipRemoveEvent, ClaimsChecker, ConfirmationDialogConfig, DialogBreakpoints, DialogContentStyle, FilterEvent, GridAction, GridData, GridDetails, IButtonSize, IChartData, IChartDataSet, IChartDisplay, IChartType, IChartTypeExtended, ICheckboxSize, IDynamicDialogConfig, IDynamicDialogRef, IInputBackgroundStyle, ITagSize, ITextareaBackgroundStyle, ITreeNode, IWhisperMessage, IWhisperOptions, IWhisperPosition, LayoutConfig, ListboxOption, MenuItem, MenuModel, MessageSize, MultiSelectOption, OrganizationSchema, PlaceholderArrowDirection, SelectOption, SeoConfig, SortEvent, TableColumn, TableDownloadEvent, TooltipPosition, TreeSelectionMode, WebSiteSchema };
|
|
5624
|
+
export { AbstractDialog, CLAIMS_CHECKER, ConfirmationDialogComponent, ConfirmationDialogService, DataUpdateEventService, DialogService, EmptyStateComponent, IAccordion, IAccordionList, IButton, ICalendar, ICard, IChart, ICheckbox, IChip, IChipsComponent, IDialog, IDialogActions, IDialogBase, IInputText, IListbox, IMessage, IMultiSelect, IOverlayPanel, IPanel, IPlaceholder, IProgressSpinner, IRadioButton, ISelect, ITabPanel, ITable, ITabs, ITag, ITextarea, IToggle, ITreeView, IWhisper, LayoutComponent, LayoutService, LocalStorageColorSchemeKey, MenuComponent, NoContentComponent, SeoService, SidebarComponent, StructuredDataService, TooltipComponent, TooltipDirective, TopbarComponent, UniqueComponentId, WhisperService, ZIndexUtils, lastId, provideMenuClaimsChecker };
|
|
5625
|
+
export type { AppConfig, ArticleSchema, BreadcrumbItem, CalendarView, ChipItem, ChipRemoveEvent, ClaimsChecker, ConfirmationDialogConfig, DialogBreakpoints, DialogContentStyle, FilterEvent, GridAction, GridData, GridDetails, IButtonSize, IChartData, IChartDataSet, IChartDisplay, IChartType, IChartTypeExtended, ICheckboxSize, IDynamicDialogConfig, IDynamicDialogRef, IInputBackgroundStyle, ITagSize, ITextareaBackgroundStyle, IToggleSize, ITreeNode, IWhisperMessage, IWhisperOptions, IWhisperPosition, LayoutConfig, ListboxOption, MenuItem, MenuModel, MessageSize, MultiSelectOption, OrganizationSchema, PlaceholderArrowDirection, SelectOption, SeoConfig, SortEvent, TableColumn, TableDownloadEvent, TooltipPosition, TreeSelectionMode, WebSiteSchema };
|