@i-cell/ids-angular 0.1.7 → 0.1.9

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.
Files changed (48) hide show
  1. package/badge/badge-defaults.d.ts +13 -0
  2. package/badge/badge-limit.pipe.d.ts +7 -0
  3. package/badge/badge.component.d.ts +17 -0
  4. package/badge/badge.directive.d.ts +25 -0
  5. package/badge/index.d.ts +5 -0
  6. package/badge/public-api.d.ts +5 -0
  7. package/badge/types/badge-appearance.type.d.ts +4 -0
  8. package/badge/types/badge-variant.type.d.ts +12 -0
  9. package/core/public-api.d.ts +1 -1
  10. package/core/utils/date.d.ts +24 -0
  11. package/core/utils/number.d.ts +4 -0
  12. package/datepicker/calendar/calendar-page.d.ts +26 -0
  13. package/datepicker/calendar/calendar.component.d.ts +40 -0
  14. package/datepicker/datepicker-defaults.d.ts +7 -0
  15. package/datepicker/datepicker-intl.d.ts +22 -0
  16. package/datepicker/datepicker-positions.d.ts +2 -0
  17. package/datepicker/datepicker.directive.d.ts +58 -0
  18. package/datepicker/day-selector/day-selector.component.d.ts +26 -0
  19. package/datepicker/index.d.ts +5 -0
  20. package/datepicker/month-selector/month-selector.component.d.ts +20 -0
  21. package/datepicker/public-api.d.ts +7 -0
  22. package/datepicker/tokens/date-formatter.d.ts +3 -0
  23. package/datepicker/tokens/date-parser.d.ts +3 -0
  24. package/datepicker/tokens/datepicker-view.d.ts +6 -0
  25. package/datepicker/trigger/datepicker-trigger.component.d.ts +12 -0
  26. package/datepicker/year-selector/year-selector.component.d.ts +20 -0
  27. package/fesm2022/i-cell-ids-angular-badge.mjs +172 -0
  28. package/fesm2022/i-cell-ids-angular-badge.mjs.map +1 -0
  29. package/fesm2022/i-cell-ids-angular-core.mjs +156 -13
  30. package/fesm2022/i-cell-ids-angular-core.mjs.map +1 -1
  31. package/fesm2022/i-cell-ids-angular-datepicker.mjs +860 -0
  32. package/fesm2022/i-cell-ids-angular-datepicker.mjs.map +1 -0
  33. package/fesm2022/i-cell-ids-angular-forms.mjs +81 -68
  34. package/fesm2022/i-cell-ids-angular-forms.mjs.map +1 -1
  35. package/fesm2022/i-cell-ids-angular-radio.mjs +2 -2
  36. package/fesm2022/i-cell-ids-angular-radio.mjs.map +1 -1
  37. package/fesm2022/i-cell-ids-angular-select.mjs +8 -63
  38. package/fesm2022/i-cell-ids-angular-select.mjs.map +1 -1
  39. package/fesm2022/i-cell-ids-angular-tab.mjs +5 -5
  40. package/fesm2022/i-cell-ids-angular-tab.mjs.map +1 -1
  41. package/forms/components/form-field/form-field-control.d.ts +41 -17
  42. package/forms/components/form-field/form-field.component.d.ts +2 -1
  43. package/forms/components/form-field/tokens/form-field-control.d.ts +1 -1
  44. package/forms/components/input/input.directive.d.ts +7 -36
  45. package/package.json +18 -9
  46. package/select/select.component.d.ts +8 -37
  47. package/tab/tab.component.d.ts +1 -1
  48. package/core/utils/even-odd.d.ts +0 -2
@@ -1 +1 @@
1
- {"version":3,"file":"i-cell-ids-angular-tab.mjs","sources":["../../../projects/widgets/tab/types/tab-group-position.type.ts","../../../projects/widgets/tab/types/tab-group-variant.type.ts","../../../projects/widgets/tab/types/tab-indicator-position.type.ts","../../../projects/widgets/tab/tab-group-defaults.ts","../../../projects/widgets/tab/tab.component.ts","../../../projects/widgets/tab/tab.component.html","../../../projects/widgets/tab/tab-group.component.ts","../../../projects/widgets/tab/tab-group.component.html","../../../projects/widgets/tab/i-cell-ids-angular-tab.ts"],"sourcesContent":["export const IdsTabGroupPosition = {\n START: 'start',\n CENTER: 'center',\n END: 'end',\n} as const;\n\nexport type IdsTabGroupPositionType = (typeof IdsTabGroupPosition)[keyof typeof IdsTabGroupPosition];\n","export const IdsTabGroupVariant = {\n PRIMARY: 'primary',\n SURFACE: 'surface',\n LIGHT: 'light',\n} as const;\n\nexport type IdsTabGroupVariantType = (typeof IdsTabGroupVariant)[keyof typeof IdsTabGroupVariant];\n","export const IdsTabIndicatorPosition = {\n TOP: 'top',\n BOTTOM: 'bottom',\n LEFT: 'left',\n RIGHT: 'right',\n} as const;\n\nexport type IdsTabIndicatorPositionType = (typeof IdsTabIndicatorPosition)[keyof typeof IdsTabIndicatorPosition];\n","import { IdsTabGroupPosition, IdsTabGroupPositionType } from './types/tab-group-position.type';\nimport { IdsTabGroupVariant, IdsTabGroupVariantType } from './types/tab-group-variant.type';\nimport { IdsTabIndicatorPosition, IdsTabIndicatorPositionType } from './types/tab-indicator-position.type';\n\nimport { InjectionToken } from '@angular/core';\nimport { IdsOrientation, IdsOrientationType, IdsSize, IdsSizeType } from '@i-cell/ids-angular/core';\n\nexport interface IdsTabGroupDefaultConfig {\n size?: IdsSizeType,\n variant?: IdsTabGroupVariantType,\n orientation?: IdsOrientationType,\n stretchTabs?: boolean,\n tabPosition?: IdsTabGroupPositionType,\n indicatorPosition?: IdsTabIndicatorPositionType,\n}\n\nexport const IDS_TAB_GROUP_DEFAULT_CONFIG = new InjectionToken<IdsTabGroupDefaultConfig>(\n 'IDS_TAB_GROUP_DEFAULT_CONFIG',\n {\n providedIn: 'root',\n factory: IDS_TAB_GROUP_DEFAULT_CONFIG_FACTORY,\n },\n);\n\nexport function IDS_TAB_GROUP_DEFAULT_CONFIG_FACTORY(): Required<IdsTabGroupDefaultConfig> {\n return {\n size: IdsSize.COMPACT,\n variant: IdsTabGroupVariant.PRIMARY,\n orientation: IdsOrientation.HORIZONTAL,\n stretchTabs: true,\n tabPosition: IdsTabGroupPosition.START,\n indicatorPosition: IdsTabIndicatorPosition.BOTTOM,\n };\n}\n","import { IdsTabGroupComponent } from './tab-group.component';\n\nimport { ChangeDetectionStrategy, Component, computed, inject, input, signal, TemplateRef, viewChild, ViewEncapsulation } from '@angular/core';\nimport { coerceStringAttribute, ComponentBase } from '@i-cell/ids-angular/core';\n\n@Component({\n selector: 'ids-tab',\n imports: [],\n templateUrl: './tab.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class IdsTabComponent extends ComponentBase {\n protected override get _hostName(): string {\n return 'tab';\n };\n\n private _tabGroup = inject(IdsTabGroupComponent, { skipSelf: true });\n\n public label = input<string>();\n public disabled = input<boolean>(false);\n public leadingIcon = input('', { transform: coerceStringAttribute });\n public trailingIcon = input('', { transform: coerceStringAttribute });\n public content = viewChild.required<TemplateRef<unknown>>(TemplateRef);\n public panelId = `${this.id()}-panel`;\n\n public parentOrSelfDisabled = computed(() => this._tabGroup.disabled() || this.disabled());\n\n protected _hostClasses = signal(this._getHostClasses([]));\n\n public hostTabClasses = computed(() => this._getHostClasses(\n [this.parentOrSelfDisabled() ? 'disabled' : null],\n ));\n}\n","<ng-template>\n <div class=\"ids-tab-body-content\" [attr.role]=\"'tabpanel'\" [id]=\"panelId\">\n <ng-content />\n </div>\n</ng-template>\n","import { IDS_TAB_GROUP_DEFAULT_CONFIG, IDS_TAB_GROUP_DEFAULT_CONFIG_FACTORY, IdsTabGroupDefaultConfig } from './tab-group-defaults';\nimport { IdsTabComponent } from './tab.component';\nimport { IdsTabGroupPositionType } from './types/tab-group-position.type';\nimport { IdsTabGroupVariantType } from './types/tab-group-variant.type';\nimport { IdsTabIndicatorPosition, IdsTabIndicatorPositionType } from './types/tab-indicator-position.type';\n\nimport { CdkPortalOutlet, PortalModule, TemplatePortal } from '@angular/cdk/portal';\nimport { AfterContentInit, ChangeDetectionStrategy, Component, computed, contentChildren, inject, input, isDevMode, signal, viewChild, ViewContainerRef, ViewEncapsulation } from '@angular/core';\nimport { coerceBooleanAttribute, ComponentBaseWithDefaults, IdsOrientation, IdsOrientationType, IdsSizeType } from '@i-cell/ids-angular/core';\nimport { IdsIconComponent } from '@i-cell/ids-angular/icon';\n\nconst defaultConfig = IDS_TAB_GROUP_DEFAULT_CONFIG_FACTORY();\n\n@Component({\n selector: 'ids-tab-group',\n imports: [\n PortalModule,\n IdsIconComponent,\n ],\n templateUrl: './tab-group.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class IdsTabGroupComponent extends ComponentBaseWithDefaults<IdsTabGroupDefaultConfig> implements AfterContentInit {\n protected override get _hostName(): string {\n return 'tab-group';\n }\n\n protected readonly _defaultConfig = this._getDefaultConfig(defaultConfig, IDS_TAB_GROUP_DEFAULT_CONFIG);\n\n protected _items = contentChildren<IdsTabComponent>(IdsTabComponent);\n private _portalOutlet = viewChild.required<CdkPortalOutlet>(CdkPortalOutlet);\n private _viewContainerRef = inject(ViewContainerRef);\n\n public size = input<IdsSizeType>(this._defaultConfig.size);\n public variant = input<IdsTabGroupVariantType>(this._defaultConfig.variant);\n public orientation = input<IdsOrientationType>(this._defaultConfig.orientation);\n public stretchTabs = input(this._defaultConfig.stretchTabs, { transform: coerceBooleanAttribute });\n public tabPosition = input<IdsTabGroupPositionType>(this._defaultConfig.tabPosition);\n public indicatorPosition = input<IdsTabIndicatorPositionType>();\n public disabled = input(false, { transform: coerceBooleanAttribute });\n\n protected _selectedTabIndex = signal<number>(0);\n public selectedTabIndex = this._selectedTabIndex.asReadonly();\n\n protected _hostClasses = computed(() => this._getHostClasses([\n this.size(),\n this.variant(),\n this.orientation(),\n this.disabled() ? 'disabled' : null,\n this.stretchTabs() && this.orientation() === IdsOrientation.HORIZONTAL ? 'stretch-tabs' : null,\n this.tabPosition() && !this.stretchTabs() ? this.tabPosition() : null,\n `indicator-${this.indicatorPosition() ?? this._calculatedIndicatorPosition()}`,\n ]));\n\n private _calculatedIndicatorPosition = computed(() =>\n (this.orientation() === IdsOrientation.HORIZONTAL ? IdsTabIndicatorPosition.BOTTOM : IdsTabIndicatorPosition.LEFT),\n );\n\n public ngAfterContentInit(): void {\n const items = this._items();\n const orientation = this.orientation();\n const indicatorPosition = this.indicatorPosition();\n const minItemCount = 2;\n\n if (isDevMode() && (items.length < minItemCount)) {\n throw this._createHostError(`Invalid count of tab items. Minimum item count is ${minItemCount}.`);\n }\n\n if (isDevMode() && (orientation === IdsOrientation.HORIZONTAL &&\n (indicatorPosition && (indicatorPosition === IdsTabIndicatorPosition.LEFT || indicatorPosition === IdsTabIndicatorPosition.RIGHT)))) {\n throw this._createHostError(`Can not use ${indicatorPosition} indicator position with Horizontal mode`);\n }\n\n if (isDevMode() && (orientation === IdsOrientation.VERTICAL &&\n (indicatorPosition && (indicatorPosition === IdsTabIndicatorPosition.BOTTOM || indicatorPosition === IdsTabIndicatorPosition.TOP)))) {\n throw this._createHostError(`Can not use ${indicatorPosition} indicator position with Vertical mode`);\n }\n\n this.selectTab(0);\n }\n\n public selectTab(index: number): void {\n this._selectedTabIndex.set(index);\n const selectedItem = this._items().at(index);\n const selectedPortal = new TemplatePortal(selectedItem!.content(), this._viewContainerRef);\n\n if (this._portalOutlet().hasAttached()) {\n this._portalOutlet().detach();\n }\n\n this._portalOutlet().attach(selectedPortal);\n }\n}\n","<div class=\"ids-tab-group__container\">\n <ul class=\"ids-tab-group__header\" role=\"tablist\">\n @for (item of _items(); track $index; let i = $index) {\n <li\n role=\"tab\"\n [class]=\"item.hostTabClasses()\"\n [class.ids-tab--active]=\"_selectedTabIndex() === i\"\n [attr.tabindex]=\"item.parentOrSelfDisabled() ? -1 : 0\"\n [attr.aria-selected]=\"_selectedTabIndex() === i ? 'true' : 'false'\"\n [attr.aria-controls]=\"item.panelId\"\n (click)=\"selectTab(i)\"\n >\n @let tabLeadingIcon = item.leadingIcon();\n @let tabTrailingIcon = item.trailingIcon();\n @if (tabLeadingIcon) {\n <ids-icon [fontIcon]=\"tabLeadingIcon\" />\n }\n <span class=\"ids-tab__label\">{{ item.label() }}</span>\n @if (tabTrailingIcon) {\n <ids-icon [fontIcon]=\"tabTrailingIcon\" />\n }\n <span class=\"ids-tab__indicator\">\n <span class=\"ids-tab__line\"></span>\n </span>\n </li>\n }\n </ul>\n</div>\n<ng-template cdkPortalOutlet />\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAAa,MAAA,mBAAmB,GAAG;AACjC,IAAA,KAAK,EAAE,O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BACZ,gBAAgB;AACjB,qBAAA,EAAA,aAAA,EAEc,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,2jCAAA,EAAA;;;AErBjD;;AAEG;;;;"}
1
+ {"version":3,"file":"i-cell-ids-angular-tab.mjs","sources":["../../../projects/widgets/tab/types/tab-group-position.type.ts","../../../projects/widgets/tab/types/tab-group-variant.type.ts","../../../projects/widgets/tab/types/tab-indicator-position.type.ts","../../../projects/widgets/tab/tab-group-defaults.ts","../../../projects/widgets/tab/tab.component.ts","../../../projects/widgets/tab/tab.component.html","../../../projects/widgets/tab/tab-group.component.ts","../../../projects/widgets/tab/tab-group.component.html","../../../projects/widgets/tab/i-cell-ids-angular-tab.ts"],"sourcesContent":["export const IdsTabGroupPosition = {\n START: 'start',\n CENTER: 'center',\n END: 'end',\n} as const;\n\nexport type IdsTabGroupPositionType = (typeof IdsTabGroupPosition)[keyof typeof IdsTabGroupPosition];\n","export const IdsTabGroupVariant = {\n PRIMARY: 'primary',\n SURFACE: 'surface',\n LIGHT: 'light',\n} as const;\n\nexport type IdsTabGroupVariantType = (typeof IdsTabGroupVariant)[keyof typeof IdsTabGroupVariant];\n","export const IdsTabIndicatorPosition = {\n TOP: 'top',\n BOTTOM: 'bottom',\n LEFT: 'left',\n RIGHT: 'right',\n} as const;\n\nexport type IdsTabIndicatorPositionType = (typeof IdsTabIndicatorPosition)[keyof typeof IdsTabIndicatorPosition];\n","import { IdsTabGroupPosition, IdsTabGroupPositionType } from './types/tab-group-position.type';\nimport { IdsTabGroupVariant, IdsTabGroupVariantType } from './types/tab-group-variant.type';\nimport { IdsTabIndicatorPosition, IdsTabIndicatorPositionType } from './types/tab-indicator-position.type';\n\nimport { InjectionToken } from '@angular/core';\nimport { IdsOrientation, IdsOrientationType, IdsSize, IdsSizeType } from '@i-cell/ids-angular/core';\n\nexport interface IdsTabGroupDefaultConfig {\n size?: IdsSizeType,\n variant?: IdsTabGroupVariantType,\n orientation?: IdsOrientationType,\n stretchTabs?: boolean,\n tabPosition?: IdsTabGroupPositionType,\n indicatorPosition?: IdsTabIndicatorPositionType,\n}\n\nexport const IDS_TAB_GROUP_DEFAULT_CONFIG = new InjectionToken<IdsTabGroupDefaultConfig>(\n 'IDS_TAB_GROUP_DEFAULT_CONFIG',\n {\n providedIn: 'root',\n factory: IDS_TAB_GROUP_DEFAULT_CONFIG_FACTORY,\n },\n);\n\nexport function IDS_TAB_GROUP_DEFAULT_CONFIG_FACTORY(): Required<IdsTabGroupDefaultConfig> {\n return {\n size: IdsSize.COMPACT,\n variant: IdsTabGroupVariant.PRIMARY,\n orientation: IdsOrientation.HORIZONTAL,\n stretchTabs: true,\n tabPosition: IdsTabGroupPosition.START,\n indicatorPosition: IdsTabIndicatorPosition.BOTTOM,\n };\n}\n","import { IdsTabGroupComponent } from './tab-group.component';\n\nimport { ChangeDetectionStrategy, Component, computed, inject, input, signal, TemplateRef, viewChild, ViewEncapsulation } from '@angular/core';\nimport { coerceStringAttribute, ComponentBase } from '@i-cell/ids-angular/core';\n\n@Component({\n selector: 'ids-tab',\n imports: [],\n templateUrl: './tab.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class IdsTabComponent extends ComponentBase {\n protected override get _hostName(): string {\n return 'tab';\n };\n\n private _tabGroup = inject(IdsTabGroupComponent, { skipSelf: true });\n\n public label = input<string>();\n public disabled = input<boolean>(false);\n public leadingIcon = input('', { transform: coerceStringAttribute });\n public trailingIcon = input('', { transform: coerceStringAttribute });\n public content = viewChild.required<TemplateRef<unknown>>(TemplateRef);\n public panelId = computed<string>(() => `${this.id()}-panel`);\n\n public parentOrSelfDisabled = computed(() => this._tabGroup.disabled() || this.disabled());\n\n protected _hostClasses = signal(this._getHostClasses([]));\n\n public hostTabClasses = computed(() => this._getHostClasses(\n [this.parentOrSelfDisabled() ? 'disabled' : null],\n ));\n}\n","<ng-template>\n <div class=\"ids-tab-body-content\" [attr.role]=\"'tabpanel'\" [id]=\"panelId()\">\n <ng-content />\n </div>\n</ng-template>\n","import { IDS_TAB_GROUP_DEFAULT_CONFIG, IDS_TAB_GROUP_DEFAULT_CONFIG_FACTORY, IdsTabGroupDefaultConfig } from './tab-group-defaults';\nimport { IdsTabComponent } from './tab.component';\nimport { IdsTabGroupPositionType } from './types/tab-group-position.type';\nimport { IdsTabGroupVariantType } from './types/tab-group-variant.type';\nimport { IdsTabIndicatorPosition, IdsTabIndicatorPositionType } from './types/tab-indicator-position.type';\n\nimport { CdkPortalOutlet, PortalModule, TemplatePortal } from '@angular/cdk/portal';\nimport { AfterContentInit, ChangeDetectionStrategy, Component, computed, contentChildren, inject, input, isDevMode, signal, viewChild, ViewContainerRef, ViewEncapsulation } from '@angular/core';\nimport { coerceBooleanAttribute, ComponentBaseWithDefaults, IdsOrientation, IdsOrientationType, IdsSizeType } from '@i-cell/ids-angular/core';\nimport { IdsIconComponent } from '@i-cell/ids-angular/icon';\n\nconst defaultConfig = IDS_TAB_GROUP_DEFAULT_CONFIG_FACTORY();\n\n@Component({\n selector: 'ids-tab-group',\n imports: [\n PortalModule,\n IdsIconComponent,\n ],\n templateUrl: './tab-group.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class IdsTabGroupComponent extends ComponentBaseWithDefaults<IdsTabGroupDefaultConfig> implements AfterContentInit {\n protected override get _hostName(): string {\n return 'tab-group';\n }\n\n protected readonly _defaultConfig = this._getDefaultConfig(defaultConfig, IDS_TAB_GROUP_DEFAULT_CONFIG);\n\n protected _items = contentChildren<IdsTabComponent>(IdsTabComponent);\n private _portalOutlet = viewChild.required<CdkPortalOutlet>(CdkPortalOutlet);\n private _viewContainerRef = inject(ViewContainerRef);\n\n public size = input<IdsSizeType>(this._defaultConfig.size);\n public variant = input<IdsTabGroupVariantType>(this._defaultConfig.variant);\n public orientation = input<IdsOrientationType>(this._defaultConfig.orientation);\n public stretchTabs = input(this._defaultConfig.stretchTabs, { transform: coerceBooleanAttribute });\n public tabPosition = input<IdsTabGroupPositionType>(this._defaultConfig.tabPosition);\n public indicatorPosition = input<IdsTabIndicatorPositionType>();\n public disabled = input(false, { transform: coerceBooleanAttribute });\n\n protected _selectedTabIndex = signal<number>(0);\n public selectedTabIndex = this._selectedTabIndex.asReadonly();\n\n protected _hostClasses = computed(() => this._getHostClasses([\n this.size(),\n this.variant(),\n this.orientation(),\n this.disabled() ? 'disabled' : null,\n this.stretchTabs() && this.orientation() === IdsOrientation.HORIZONTAL ? 'stretch-tabs' : null,\n this.tabPosition() && !this.stretchTabs() ? this.tabPosition() : null,\n `indicator-${this.indicatorPosition() ?? this._calculatedIndicatorPosition()}`,\n ]));\n\n private _calculatedIndicatorPosition = computed(() =>\n (this.orientation() === IdsOrientation.HORIZONTAL ? IdsTabIndicatorPosition.BOTTOM : IdsTabIndicatorPosition.LEFT),\n );\n\n public ngAfterContentInit(): void {\n const items = this._items();\n const orientation = this.orientation();\n const indicatorPosition = this.indicatorPosition();\n const minItemCount = 2;\n\n if (isDevMode() && (items.length < minItemCount)) {\n throw this._createHostError(`Invalid count of tab items. Minimum item count is ${minItemCount}.`);\n }\n\n if (isDevMode() && (orientation === IdsOrientation.HORIZONTAL &&\n (indicatorPosition && (indicatorPosition === IdsTabIndicatorPosition.LEFT || indicatorPosition === IdsTabIndicatorPosition.RIGHT)))) {\n throw this._createHostError(`Can not use ${indicatorPosition} indicator position with Horizontal mode`);\n }\n\n if (isDevMode() && (orientation === IdsOrientation.VERTICAL &&\n (indicatorPosition && (indicatorPosition === IdsTabIndicatorPosition.BOTTOM || indicatorPosition === IdsTabIndicatorPosition.TOP)))) {\n throw this._createHostError(`Can not use ${indicatorPosition} indicator position with Vertical mode`);\n }\n\n this.selectTab(0);\n }\n\n public selectTab(index: number): void {\n this._selectedTabIndex.set(index);\n const selectedItem = this._items().at(index);\n const selectedPortal = new TemplatePortal(selectedItem!.content(), this._viewContainerRef);\n\n if (this._portalOutlet().hasAttached()) {\n this._portalOutlet().detach();\n }\n\n this._portalOutlet().attach(selectedPortal);\n }\n}\n","<div class=\"ids-tab-group__container\">\n <ul class=\"ids-tab-group__header\" role=\"tablist\">\n @for (item of _items(); track $index; let i = $index) {\n <li\n role=\"tab\"\n [id]=\"item.id()\"\n [class]=\"item.hostTabClasses()\"\n [class.ids-tab--active]=\"_selectedTabIndex() === i\"\n [attr.tabindex]=\"item.parentOrSelfDisabled() ? -1 : 0\"\n [attr.aria-selected]=\"_selectedTabIndex() === i ? 'true' : 'false'\"\n [attr.aria-controls]=\"item.panelId()\"\n (click)=\"selectTab(i)\"\n >\n @let tabLeadingIcon = item.leadingIcon();\n @let tabTrailingIcon = item.trailingIcon();\n @if (tabLeadingIcon) {\n <ids-icon [fontIcon]=\"tabLeadingIcon\" />\n }\n <span class=\"ids-tab__label\">{{ item.label() }}</span>\n @if (tabTrailingIcon) {\n <ids-icon [fontIcon]=\"tabTrailingIcon\" />\n }\n <span class=\"ids-tab__indicator\">\n <span class=\"ids-tab__line\"></span>\n </span>\n </li>\n }\n </ul>\n</div>\n<ng-template cdkPortalOutlet />\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAAa,MAAA,mBAAmB,GAAG;AACjC,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,GAAG,EAAE,KAAK;;;ACHC,MAAA,kBAAkB,GAAG;AAChC,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,KAAK,EAAE,OAAO;;;ACHH,MAAA,uBAAuB,GAAG;AACrC,IAAA,GAAG,EAAE,KAAK;AACV,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,KAAK,EAAE,OAAO;;;MCYH,4BAA4B,GAAG,IAAI,cAAc,CAC5D,8BAA8B,EAC9B;AACE,IAAA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A,IAAA,EAAA,CAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,eAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,eAAe,uFC/B7E,ylCA8BA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDdI,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,CAAA,iBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,UAAA,CAAA,EAAA,QAAA,EAAA,CAAA,iBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACZ,gBAAgB,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,gBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,aAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAMP,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAVhC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,eAAe,EAChB,OAAA,EAAA;wBACP,YAAY;wBACZ,gBAAgB;AACjB,qBAAA,EAAA,aAAA,EAEc,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,ylCAAA,EAAA;;;AErBjD;;AAEG;;;;"}
@@ -1,21 +1,45 @@
1
- import { Signal } from '@angular/core';
2
- import { NgControl } from '@angular/forms';
3
- import { Observable } from 'rxjs';
1
+ import { AbstractErrorStateMatcher, ErrorStateTracker } from '../../common/error/error-state';
2
+ import { AbstractSuccessStateMatcher, SuccessStateTracker } from '../../common/success/success-state';
3
+ import { ElementRef, Injector, OnInit, Signal } from '@angular/core';
4
+ import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
5
+ import { ComponentBaseWithDefaults } from '@i-cell/ids-angular/core';
6
+ import { Subject } from 'rxjs';
7
+ import * as i0 from "@angular/core";
4
8
  export declare const formFieldControlClass = "ids-form-field-control";
5
- export declare abstract class IdsFormFieldControl {
6
- readonly errorStateChanges: Observable<void>;
7
- readonly successStateChanges: Observable<void>;
8
- readonly id: Signal<string>;
9
- readonly placeholder: Signal<string>;
10
- readonly ngControl: Signal<NgControl | null>;
9
+ export declare abstract class IdsFormFieldControl<D = unknown> extends ComponentBaseWithDefaults<D> implements OnInit {
10
+ protected readonly _injector: Injector;
11
+ protected readonly _parentForm: NgForm | null;
12
+ protected readonly _parentFormGroup: FormGroupDirective | null;
13
+ readonly ngControl: import("@angular/core").WritableSignal<NgControl | null>;
14
+ readonly errorStateChanges: Subject<void>;
15
+ readonly successStateChanges: Subject<void>;
16
+ readonly canHandleSuccessState: import("@angular/core").InputSignal<boolean>;
17
+ readonly hasErrorState: import("@angular/core").WritableSignal<boolean>;
18
+ readonly hasSuccessState: import("@angular/core").WritableSignal<boolean>;
19
+ protected abstract readonly _elementRef: ElementRef;
20
+ abstract readonly errorStateMatcher: Signal<AbstractErrorStateMatcher>;
21
+ abstract readonly successStateMatcher: Signal<AbstractSuccessStateMatcher>;
22
+ private _canHandleSuccessStateEffect;
23
+ /** Handles the `disabled` input binding */
24
+ readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
25
+ /** Stores the `disabled` state internally */
26
+ protected readonly _disabled: import("@angular/core").WritableSignal<boolean>;
27
+ /** The input's `disabled` state as a read-only signal (to enable/disable the contol programmatically, use the FormControl's related API) */
11
28
  readonly disabled: Signal<boolean>;
12
- readonly required: Signal<boolean>;
13
- readonly hasErrorState: Signal<boolean>;
14
- readonly hasSuccessState: Signal<boolean>;
15
- readonly controlType?: Signal<string>;
16
- readonly autofilled?: Signal<boolean>;
17
- readonly userAriaDescribedBy?: Signal<string>;
18
- readonly disableAutomaticLabeling?: Signal<boolean>;
19
- abstract setDescribedByIds(ids: string[]): void;
29
+ readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
30
+ /** This effect is triggered if the `disabled` attribute binding changes and delegates the change to the underlying FormControl */
31
+ private _disabledInputEffect;
32
+ readonly required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
33
+ readonly placeholder: import("@angular/core").InputSignal<string>;
20
34
  abstract onContainerClick(event: MouseEvent): void;
35
+ protected _errorStateTracker?: ErrorStateTracker;
36
+ protected _successStateTracker?: SuccessStateTracker;
37
+ private _successStateSubscription?;
38
+ constructor();
39
+ ngOnInit(): void;
40
+ setDescribedByIds(ids: string[]): void;
41
+ protected _initErrorStateTracker(): void;
42
+ protected _setSuccessStateTracker(canHandleSuccessState: boolean): void;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<IdsFormFieldControl<any>, never>;
44
+ static ɵdir: i0.ɵɵDirectiveDeclaration<IdsFormFieldControl<any>, never, never, { "canHandleSuccessState": { "alias": "canHandleSuccessState"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
21
45
  }
@@ -27,8 +27,9 @@ export declare class IdsFormFieldComponent extends ComponentBaseWithDefaults<Ids
27
27
  parentOrSelfSize: import("@angular/core").Signal<IdsSizeType>;
28
28
  parentOrSelfVariant: import("@angular/core").Signal<IdsFormFieldVariantType>;
29
29
  controlDir: import("@angular/core").Signal<import("@angular/forms").NgControl | null>;
30
- private _hasErrorState;
31
30
  disabled: import("@angular/core").Signal<boolean>;
31
+ readonly: import("@angular/core").Signal<boolean>;
32
+ private _hasErrorState;
32
33
  private _hasSuccessState;
33
34
  protected _hostClasses: import("@angular/core").Signal<string>;
34
35
  protected _displayedMessages: import("@angular/core").Signal<"error" | "success" | "hint" | undefined>;
@@ -1,3 +1,3 @@
1
1
  import { IdsFormFieldControl } from '../form-field-control';
2
2
  import { InjectionToken } from '@angular/core';
3
- export declare const IDS_FORM_FIELD_CONTROL: InjectionToken<IdsFormFieldControl>;
3
+ export declare const IDS_FORM_FIELD_CONTROL: InjectionToken<IdsFormFieldControl<unknown>>;
@@ -3,50 +3,21 @@ import { IdsInputType } from './types/input.type';
3
3
  import { AbstractErrorStateMatcher } from '../../common/error/error-state';
4
4
  import { AbstractSuccessStateMatcher } from '../../common/success/success-state';
5
5
  import { IdsFormFieldControl } from '../form-field/form-field-control';
6
- import { AfterViewInit, OnInit } from '@angular/core';
7
- import { ControlEvent, NgControl } from '@angular/forms';
8
- import { ComponentBaseWithDefaults } from '@i-cell/ids-angular/core';
9
- import { Subject } from 'rxjs';
6
+ import { AfterViewInit, ElementRef, OnInit } from '@angular/core';
7
+ import { ControlEvent } from '@angular/forms';
10
8
  import * as i0 from "@angular/core";
11
- export declare class IdsInputDirective extends ComponentBaseWithDefaults<IdsInputDefaultConfig> implements IdsFormFieldControl, OnInit, AfterViewInit {
9
+ export declare class IdsInputDirective extends IdsFormFieldControl<IdsInputDefaultConfig> implements OnInit, AfterViewInit {
12
10
  protected get _hostName(): string;
13
- private readonly _elementRef;
14
- private readonly _parentFormGroup;
15
- private readonly _parentForm;
11
+ protected readonly _elementRef: ElementRef<HTMLInputElement> | ElementRef<HTMLTextAreaElement>;
16
12
  protected readonly _defaultConfig: Required<IdsInputDefaultConfig>;
17
- readonly errorStateChanges: Subject<void>;
18
- readonly successStateChanges: Subject<void>;
19
- readonly ngControl: import("@angular/core").WritableSignal<NgControl>;
20
13
  private _focused;
21
- private _errorStateTracker?;
22
- private _successStateTracker?;
23
- private _successStateSubscription?;
24
- placeholder: import("@angular/core").InputSignal<string>;
25
14
  name: import("@angular/core").InputSignal<string | undefined>;
26
15
  type: import("@angular/core").InputSignal<IdsInputType>;
27
- required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
28
- readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
29
- canHandleSuccessState: import("@angular/core").InputSignal<boolean>;
30
- errorStateMatcher: import("@angular/core").InputSignal<AbstractErrorStateMatcher>;
31
- successStateMatcher: import("@angular/core").InputSignal<AbstractSuccessStateMatcher>;
32
- /** Handles the `disabled` input binding */
33
- disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
34
- /** Stores the `disabled` state internally */
35
- private _disabled;
36
- /** The input's `disabled` state as a read-only signal (to enable/disable the contol programmatically, use the FormControl's related API) */
37
- disabled: import("@angular/core").Signal<boolean>;
38
- /** This effect is triggered if the `disabled` attribute binding changes and delegates the change to the underlying FormControl */
39
- private _disabledInputEffect;
16
+ readonly errorStateMatcher: import("@angular/core").InputSignal<AbstractErrorStateMatcher>;
17
+ readonly successStateMatcher: import("@angular/core").InputSignal<AbstractSuccessStateMatcher>;
40
18
  protected _hostClasses: import("@angular/core").Signal<string>;
41
- hasErrorState: import("@angular/core").WritableSignal<boolean>;
42
- hasSuccessState: import("@angular/core").WritableSignal<boolean>;
43
19
  private _validateTypeEffect;
44
- private _canHandleSuccessStateEffect;
45
- setDescribedByIds(ids: string[]): void;
46
- ngOnInit(): void;
47
20
  ngAfterViewInit(): void;
48
- protected _initErrorStateTracker(): void;
49
- protected _setSuccessStateTracker(canHandleSuccessState: boolean): void;
50
21
  private _validateType;
51
22
  focus(options?: FocusOptions): void;
52
23
  private _focusChanged;
@@ -56,5 +27,5 @@ export declare class IdsInputDirective extends ComponentBaseWithDefaults<IdsInpu
56
27
  */
57
28
  onContainerClick: () => void;
58
29
  static ɵfac: i0.ɵɵFactoryDeclaration<IdsInputDirective, never>;
59
- static ɵdir: i0.ɵɵDirectiveDeclaration<IdsInputDirective, "input[idsInput][ngModel]:not([formControl]):not([formControlName]), input[idsInput][formControl]:not([ngModel]):not([formControlName]), input[idsInput][formControlName]:not([ngModel]):not([formControl]), textarea[idsInput][ngModel]:not([formControl]):not([formControlName]), textarea[idsInput][formControl]:not([ngModel]):not([formControlName]), textarea[idsInput][formControlName]:not([ngModel]):not([formControl])", ["idsInput"], { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "canHandleSuccessState": { "alias": "canHandleSuccessState"; "required": false; "isSignal": true; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; "isSignal": true; }; "successStateMatcher": { "alias": "successStateMatcher"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
30
+ static ɵdir: i0.ɵɵDirectiveDeclaration<IdsInputDirective, "input[idsInput][ngModel]:not([formControl]):not([formControlName]), input[idsInput][formControl]:not([ngModel]):not([formControlName]), input[idsInput][formControlName]:not([ngModel]):not([formControl]), textarea[idsInput][ngModel]:not([formControl]):not([formControlName]), textarea[idsInput][formControl]:not([ngModel]):not([formControlName]), textarea[idsInput][formControlName]:not([ngModel]):not([formControl])", ["idsInput"], { "name": { "alias": "name"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; "isSignal": true; }; "successStateMatcher": { "alias": "successStateMatcher"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
60
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i-cell/ids-angular",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "private": false,
5
5
  "description": "i-Cell Design System UI Kit components for Angular",
6
6
  "publishConfig": {
@@ -16,7 +16,8 @@
16
16
  "Bátori László",
17
17
  "Nagy Gábor",
18
18
  "Onofer Dávid",
19
- "Soós Árpád"
19
+ "Soós Árpád",
20
+ "Vidóczi Péter"
20
21
  ],
21
22
  "license": "MIT",
22
23
  "bugs": {
@@ -31,7 +32,7 @@
31
32
  "@angular/forms": "^19.1.2",
32
33
  "@angular/platform-browser": "^19.1.2",
33
34
  "@angular/router": "^19.1.2",
34
- "@i-cell/ids-styles": "0.0.34"
35
+ "@i-cell/ids-styles": "^0.0.40"
35
36
  },
36
37
  "dependencies": {
37
38
  "tslib": "^2.3.0"
@@ -55,13 +56,21 @@
55
56
  "types": "./avatar/index.d.ts",
56
57
  "default": "./fesm2022/i-cell-ids-angular-avatar.mjs"
57
58
  },
59
+ "./button": {
60
+ "types": "./button/index.d.ts",
61
+ "default": "./fesm2022/i-cell-ids-angular-button.mjs"
62
+ },
63
+ "./badge": {
64
+ "types": "./badge/index.d.ts",
65
+ "default": "./fesm2022/i-cell-ids-angular-badge.mjs"
66
+ },
58
67
  "./card": {
59
68
  "types": "./card/index.d.ts",
60
69
  "default": "./fesm2022/i-cell-ids-angular-card.mjs"
61
70
  },
62
- "./button": {
63
- "types": "./button/index.d.ts",
64
- "default": "./fesm2022/i-cell-ids-angular-button.mjs"
71
+ "./checkbox": {
72
+ "types": "./checkbox/index.d.ts",
73
+ "default": "./fesm2022/i-cell-ids-angular-checkbox.mjs"
65
74
  },
66
75
  "./chip": {
67
76
  "types": "./chip/index.d.ts",
@@ -71,9 +80,9 @@
71
80
  "types": "./core/index.d.ts",
72
81
  "default": "./fesm2022/i-cell-ids-angular-core.mjs"
73
82
  },
74
- "./checkbox": {
75
- "types": "./checkbox/index.d.ts",
76
- "default": "./fesm2022/i-cell-ids-angular-checkbox.mjs"
83
+ "./datepicker": {
84
+ "types": "./datepicker/index.d.ts",
85
+ "default": "./fesm2022/i-cell-ids-angular-datepicker.mjs"
77
86
  },
78
87
  "./dialog": {
79
88
  "types": "./dialog/index.d.ts",
@@ -1,52 +1,30 @@
1
1
  import { IdsSelectDefaultConfig } from './select-defaults';
2
2
  import { IdsSelectTriggerDirective } from './select-trigger.directive';
3
3
  import { CdkOverlayOrigin } from '@angular/cdk/overlay';
4
- import { ElementRef, OnInit, AfterContentInit, OnDestroy, AfterViewInit } from '@angular/core';
5
- import { ControlValueAccessor, NgControl } from '@angular/forms';
6
- import { ComponentBaseWithDefaults } from '@i-cell/ids-angular/core';
7
- import { IdsFormFieldControl, IdsOptionComponent, IdsOptionGroupComponent, AbstractSuccessStateMatcher, AbstractErrorStateMatcher } from '@i-cell/ids-angular/forms';
8
- import { Subject } from 'rxjs';
4
+ import { AfterContentInit, AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core';
5
+ import { ControlValueAccessor } from '@angular/forms';
6
+ import { AbstractErrorStateMatcher, AbstractSuccessStateMatcher, IdsFormFieldControl, IdsOptionComponent, IdsOptionGroupComponent } from '@i-cell/ids-angular/forms';
9
7
  import * as i0 from "@angular/core";
10
- export declare class IdsSelectComponent extends ComponentBaseWithDefaults<IdsSelectDefaultConfig> implements IdsFormFieldControl, ControlValueAccessor, OnInit, AfterContentInit, AfterViewInit, OnDestroy {
8
+ export declare class IdsSelectComponent extends IdsFormFieldControl<IdsSelectDefaultConfig> implements ControlValueAccessor, OnInit, AfterContentInit, AfterViewInit, OnDestroy {
11
9
  protected get _hostName(): string;
12
10
  protected readonly _defaultConfig: Required<IdsSelectDefaultConfig>;
13
- private readonly _injector;
14
- private readonly _elementRef;
11
+ protected readonly _elementRef: ElementRef<any>;
15
12
  private readonly _changeDetectorRef;
16
13
  private readonly _liveAnnouncer;
17
14
  private readonly _parentFormField;
18
- private readonly _parentForm;
19
- private readonly _parentFormGroup;
20
15
  protected readonly _connectedPositions: import("@angular/cdk/overlay").ConnectedPosition[];
21
- readonly errorStateChanges: Subject<void>;
22
- readonly successStateChanges: Subject<void>;
23
16
  protected _preferredOverlayOrigin: CdkOverlayOrigin | ElementRef | undefined;
24
17
  protected _overlayWidth: string | number;
25
18
  multiSelect: import("@angular/core").InputSignal<boolean>;
26
- placeholder: import("@angular/core").InputSignal<string>;
27
- required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
28
- readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
29
- canHandleSuccessState: import("@angular/core").InputSignal<boolean>;
30
- errorStateMatcher: import("@angular/core").InputSignal<AbstractErrorStateMatcher>;
31
- successStateMatcher: import("@angular/core").InputSignal<AbstractSuccessStateMatcher>;
19
+ readonly errorStateMatcher: import("@angular/core").InputSignal<AbstractErrorStateMatcher>;
20
+ readonly successStateMatcher: import("@angular/core").InputSignal<AbstractSuccessStateMatcher>;
32
21
  ariaLabel: import("@angular/core").InputSignal<string>;
33
22
  ariaLabelledby: import("@angular/core").InputSignal<string>;
34
23
  valueCompareFn: import("@angular/core").InputSignal<(o1: unknown, o2: unknown) => boolean>;
35
24
  sortCompareFn: import("@angular/core").InputSignal<((a: IdsOptionComponent, b: IdsOptionComponent, options: Readonly<IdsOptionComponent[]>) => number) | undefined>;
36
25
  tabIndex: import("@angular/core").InputSignalWithTransform<number, unknown>;
37
26
  typeaheadDebounceInterval: import("@angular/core").InputSignalWithTransform<number, unknown>;
38
- ngControl: import("@angular/core").WritableSignal<NgControl | null>;
39
- /** Handles the `disabled` input binding */
40
- disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
41
- /** Stores the `disabled` state internally */
42
- private _disabled;
43
- /** The input's `disabled` state as a read-only signal (to enable/disable the contol programmatically, use the FormControl's related API) */
44
- disabled: import("@angular/core").Signal<boolean>;
45
- /** This effect is triggered if the `disabled` attribute binding changes and delegates the change to the underlying FormControl */
46
- private _disabledInputEffect;
47
27
  isPanelOpen: import("@angular/core").WritableSignal<boolean>;
48
- hasErrorState: import("@angular/core").WritableSignal<boolean>;
49
- hasSuccessState: import("@angular/core").WritableSignal<boolean>;
50
28
  parentSize: import("@angular/core").Signal<import("@i-cell/ids-angular").IdsSizeType>;
51
29
  parentVariant: import("@angular/core").Signal<import("@i-cell/ids-angular").IdsFormFieldVariantType>;
52
30
  private _focused;
@@ -58,10 +36,6 @@ export declare class IdsSelectComponent extends ComponentBaseWithDefaults<IdsSel
58
36
  options: import("@angular/core").Signal<readonly IdsOptionComponent<unknown>[]>;
59
37
  optionGroups: import("@angular/core").Signal<readonly IdsOptionGroupComponent[]>;
60
38
  protected _customTrigger: import("@angular/core").Signal<IdsSelectTriggerDirective | undefined>;
61
- private _errorStateTracker?;
62
- private _successStateTracker?;
63
- private _successStateSubscription?;
64
- private _canHandleSuccessStateEffect;
65
39
  private _keyManager?;
66
40
  private _rawValue;
67
41
  private _selectionModel?;
@@ -76,8 +50,6 @@ export declare class IdsSelectComponent extends ComponentBaseWithDefaults<IdsSel
76
50
  ngAfterViewInit(): void;
77
51
  updateErrorAndSuccessState(): void;
78
52
  ngOnDestroy(): void;
79
- private _initErrorStateTracker;
80
- protected _setSuccessStateTracker(canHandleSuccessState: boolean): void;
81
53
  private _initKeyManager;
82
54
  private _subscribeOptionChanges;
83
55
  private _handleOptionChange;
@@ -103,12 +75,11 @@ export declare class IdsSelectComponent extends ComponentBaseWithDefaults<IdsSel
103
75
  private _skipPredicate;
104
76
  private _highlightCorrectOption;
105
77
  isOptionPreSelectedByValue(optionValue: unknown): boolean;
106
- setDescribedByIds(ids: string[]): void;
107
78
  private _onFocus;
108
79
  private _onBlur;
109
80
  private _getAriaActiveDescendant;
110
81
  focus(options?: FocusOptions): void;
111
82
  onContainerClick: () => void;
112
83
  static ɵfac: i0.ɵɵFactoryDeclaration<IdsSelectComponent, never>;
113
- static ɵcmp: i0.ɵɵComponentDeclaration<IdsSelectComponent, "ids-select[ngModel]:not([formControl]):not([formControlName]), ids-select[formControl]:not([ngModel]):not([formControlName]), ids-select[formControlName]:not([ngModel]):not([formControl])", never, { "multiSelect": { "alias": "multiSelect"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "canHandleSuccessState": { "alias": "canHandleSuccessState"; "required": false; "isSignal": true; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; "isSignal": true; }; "successStateMatcher": { "alias": "successStateMatcher"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "valueCompareFn": { "alias": "valueCompareFn"; "required": false; "isSignal": true; }; "sortCompareFn": { "alias": "sortCompareFn"; "required": false; "isSignal": true; }; "tabIndex": { "alias": "tabIndex"; "required": false; "isSignal": true; }; "typeaheadDebounceInterval": { "alias": "typeaheadDebounceInterval"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, ["options", "optionGroups", "_customTrigger"], ["ids-select-trigger", "*"], true, never>;
84
+ static ɵcmp: i0.ɵɵComponentDeclaration<IdsSelectComponent, "ids-select[ngModel]:not([formControl]):not([formControlName]), ids-select[formControl]:not([ngModel]):not([formControlName]), ids-select[formControlName]:not([ngModel]):not([formControl])", never, { "multiSelect": { "alias": "multiSelect"; "required": false; "isSignal": true; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; "isSignal": true; }; "successStateMatcher": { "alias": "successStateMatcher"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "valueCompareFn": { "alias": "valueCompareFn"; "required": false; "isSignal": true; }; "sortCompareFn": { "alias": "sortCompareFn"; "required": false; "isSignal": true; }; "tabIndex": { "alias": "tabIndex"; "required": false; "isSignal": true; }; "typeaheadDebounceInterval": { "alias": "typeaheadDebounceInterval"; "required": false; "isSignal": true; }; }, {}, ["options", "optionGroups", "_customTrigger"], ["ids-select-trigger", "*"], true, never>;
114
85
  }
@@ -9,7 +9,7 @@ export declare class IdsTabComponent extends ComponentBase {
9
9
  leadingIcon: import("@angular/core").InputSignalWithTransform<string, unknown>;
10
10
  trailingIcon: import("@angular/core").InputSignalWithTransform<string, unknown>;
11
11
  content: import("@angular/core").Signal<TemplateRef<unknown>>;
12
- panelId: string;
12
+ panelId: import("@angular/core").Signal<string>;
13
13
  parentOrSelfDisabled: import("@angular/core").Signal<boolean>;
14
14
  protected _hostClasses: import("@angular/core").WritableSignal<string>;
15
15
  hostTabClasses: import("@angular/core").Signal<string>;
@@ -1,2 +0,0 @@
1
- export declare function isNumberEven(val: number): boolean;
2
- export declare function isNumberOdd(val: number): boolean;