@i-cell/ids-angular 0.1.3 → 0.1.5

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 (53) hide show
  1. package/avatar/avatar.component.d.ts +1 -1
  2. package/button/button.component.d.ts +3 -3
  3. package/checkbox/checkbox.component.d.ts +7 -5
  4. package/checkbox/types/checkbox-group-child.d.ts +2 -1
  5. package/dialog/dialog.component.d.ts +3 -3
  6. package/fesm2022/i-cell-ids-angular-avatar.mjs +4 -4
  7. package/fesm2022/i-cell-ids-angular-avatar.mjs.map +1 -1
  8. package/fesm2022/i-cell-ids-angular-button.mjs +4 -4
  9. package/fesm2022/i-cell-ids-angular-button.mjs.map +1 -1
  10. package/fesm2022/i-cell-ids-angular-checkbox.mjs +21 -20
  11. package/fesm2022/i-cell-ids-angular-checkbox.mjs.map +1 -1
  12. package/fesm2022/i-cell-ids-angular-dialog.mjs +5 -5
  13. package/fesm2022/i-cell-ids-angular-dialog.mjs.map +1 -1
  14. package/fesm2022/i-cell-ids-angular-forms.mjs +62 -56
  15. package/fesm2022/i-cell-ids-angular-forms.mjs.map +1 -1
  16. package/fesm2022/i-cell-ids-angular-icon-button.mjs +3 -3
  17. package/fesm2022/i-cell-ids-angular-icon-button.mjs.map +1 -1
  18. package/fesm2022/i-cell-ids-angular-icon.mjs +12 -2
  19. package/fesm2022/i-cell-ids-angular-icon.mjs.map +1 -1
  20. package/fesm2022/i-cell-ids-angular-menu.mjs +6 -6
  21. package/fesm2022/i-cell-ids-angular-menu.mjs.map +1 -1
  22. package/fesm2022/i-cell-ids-angular-notification.mjs +3 -3
  23. package/fesm2022/i-cell-ids-angular-notification.mjs.map +1 -1
  24. package/fesm2022/i-cell-ids-angular-paginator.mjs +11 -11
  25. package/fesm2022/i-cell-ids-angular-paginator.mjs.map +1 -1
  26. package/fesm2022/i-cell-ids-angular-radio.mjs +11 -11
  27. package/fesm2022/i-cell-ids-angular-radio.mjs.map +1 -1
  28. package/fesm2022/i-cell-ids-angular-select.mjs +59 -19
  29. package/fesm2022/i-cell-ids-angular-select.mjs.map +1 -1
  30. package/fesm2022/i-cell-ids-angular-snackbar.mjs +8 -8
  31. package/fesm2022/i-cell-ids-angular-snackbar.mjs.map +1 -1
  32. package/fesm2022/i-cell-ids-angular-switch.mjs +15 -15
  33. package/fesm2022/i-cell-ids-angular-switch.mjs.map +1 -1
  34. package/fesm2022/i-cell-ids-angular-tab.mjs +7 -6
  35. package/fesm2022/i-cell-ids-angular-tab.mjs.map +1 -1
  36. package/fesm2022/i-cell-ids-angular-tag.mjs +4 -4
  37. package/fesm2022/i-cell-ids-angular-tag.mjs.map +1 -1
  38. package/forms/components/form-field/form-field-control.d.ts +1 -1
  39. package/forms/components/form-field/form-field.component.d.ts +12 -13
  40. package/forms/components/input/input.directive.d.ts +15 -10
  41. package/icon/icon-defaults.d.ts +1 -0
  42. package/icon/icon.component.d.ts +1 -0
  43. package/icon-button/icon-button.component.d.ts +2 -2
  44. package/menu/menu-item/menu-item.component.d.ts +4 -4
  45. package/notification/notification.component.d.ts +1 -1
  46. package/package.json +42 -42
  47. package/paginator/paginator.component.d.ts +7 -7
  48. package/radio/radio.component.d.ts +6 -6
  49. package/select/select.component.d.ts +19 -7
  50. package/snackbar/snackbar.component.d.ts +5 -5
  51. package/switch/switch.component.d.ts +3 -3
  52. package/tab/tab-group.component.d.ts +3 -2
  53. package/tag/tag.component.d.ts +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"i-cell-ids-angular-switch.mjs","sources":["../../../projects/widgets/switch/types/switch-positions.type.ts","../../../projects/widgets/switch/types/switch-variant.type.ts","../../../projects/widgets/switch/switch-defaults.ts","../../../projects/widgets/switch/switch-group.component.ts","../../../projects/widgets/switch/switch-group.component.html","../../../projects/widgets/switch/switch-animations.ts","../../../projects/widgets/switch/switch.component.ts","../../../projects/widgets/switch/switch.component.html","../../../projects/widgets/switch/i-cell-ids-angular-switch.ts"],"sourcesContent":["export const IdsSwitchIconPosition = {\n ONHANDLE: 'onhandle',\n ONTRACK: 'ontrack',\n} as const;\n\nexport type IdsSwitchIconPositionType = (typeof IdsSwitchIconPosition)[keyof typeof IdsSwitchIconPosition];\n\nexport const IdsSwitchLabelPosition = {\n LEFT: 'left',\n RIGHT: 'right',\n} as const;\n\nexport type IdsSwitchLabelPositionType = (typeof IdsSwitchLabelPosition)[keyof typeof IdsSwitchLabelPosition];\n","export const IdsSwitchVariant = {\n PRIMARY: 'primary',\n SURFACE: 'surface',\n LIGHT: 'light',\n} as const;\n\nexport type IdsSwitchVariantType = (typeof IdsSwitchVariant)[keyof typeof IdsSwitchVariant];\n","import { IdsSwitchIconPosition, IdsSwitchIconPositionType, IdsSwitchLabelPosition, IdsSwitchLabelPositionType } from './types/switch-positions.type';\nimport { IdsSwitchVariant, IdsSwitchVariantType } from './types/switch-variant.type';\n\nimport { InjectionToken } from '@angular/core';\nimport { IdsSize, IdsSizeType } from '@i-cell/ids-angular/core';\n\nexport interface IdsSwitchDefaultConfig {\n size?: IdsSizeType\n variant?: IdsSwitchVariantType\n hasIcon?: boolean\n iconPosition: IdsSwitchIconPositionType\n labelPosition: IdsSwitchLabelPositionType\n}\n\nexport const IDS_SWITCH_DEFAULT_CONFIG = new InjectionToken<IdsSwitchDefaultConfig>(\n 'IDS_SWITCH_DEFAULT_CONFIG',\n {\n providedIn: 'root',\n factory: IDS_SWITCH_DEFAULT_CONFIG_FACTORY,\n },\n);\n\nexport function IDS_SWITCH_DEFAULT_CONFIG_FACTORY(): Required<IdsSwitchDefaultConfig> {\n return {\n size: IdsSize.COMPACT,\n variant: IdsSwitchVariant.SURFACE,\n hasIcon: false,\n iconPosition: IdsSwitchIconPosition.ONHANDLE,\n labelPosition: IdsSwitchLabelPosition.RIGHT,\n };\n}\n","import { IDS_SWITCH_DEFAULT_CONFIG, IDS_SWITCH_DEFAULT_CONFIG_FACTORY, IdsSwitchDefaultConfig } from './switch-defaults';\n\nimport { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation } from '@angular/core';\nimport { IdsSizeType, ComponentBaseWithDefaults } from '@i-cell/ids-angular/core';\n\nconst defaultConfig = IDS_SWITCH_DEFAULT_CONFIG_FACTORY();\n\n@Component({\n selector: 'ids-switch-group',\n imports: [],\n templateUrl: './switch-group.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class IdsSwitchGroupComponent extends ComponentBaseWithDefaults<IdsSwitchDefaultConfig> {\n protected override get _hostName(): string {\n return 'switch-group';\n }\n\n protected readonly _defaultConfig = this._getDefaultConfig(defaultConfig, IDS_SWITCH_DEFAULT_CONFIG);\n\n public size = input<IdsSizeType | null>(this._defaultConfig.size);\n public hasIcon = input(this._defaultConfig.hasIcon);\n public iconPosition = input(this._defaultConfig.iconPosition);\n public labelPosition = input(this._defaultConfig.labelPosition);\n\n protected _hostClasses = computed(() => this._getHostClasses([this.size()]));\n}\n","<ng-content select=\"ids-switch\" />\n","import { animate, AnimationTriggerMetadata, query, style, transition, trigger } from '@angular/animations';\n\nexport const switchAnimation: AnimationTriggerMetadata = trigger('switchAnimation', [\n transition('off <=> on', [\n query('.ids-icon:enter', [\n style({ opacity: 0 }),\n animate('0.1s ease-in', style({ opacity: 1 })),\n ], { optional: true }),\n query('.ids-icon:leave', [animate('0.1s ease-out', style({ opacity: 0 }))], { optional: true }),\n ]),\n]);\n","import { switchAnimation } from './switch-animations';\nimport { IDS_SWITCH_DEFAULT_CONFIG, IDS_SWITCH_DEFAULT_CONFIG_FACTORY, IdsSwitchDefaultConfig } from './switch-defaults';\nimport { IdsSwitchGroupComponent } from './switch-group.component';\nimport { IdsSwitchIconPosition } from './types/switch-positions.type';\nimport { IdsSwitchVariantType } from './types/switch-variant.type';\n\nimport { ChangeDetectionStrategy, Component, computed, ElementRef, inject, Input, input, signal, viewChild, ViewEncapsulation } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { coerceBooleanAttribute, IdsSizeType, fallbackValue, coerceNumberAttribute, ComponentBaseWithDefaults } from '@i-cell/ids-angular/core';\nimport { IdsIconComponent } from '@i-cell/ids-angular/icon';\n\nconst defaultConfig = IDS_SWITCH_DEFAULT_CONFIG_FACTORY();\n\n@Component({\n selector: `ids-switch[ngModel]:not([formControl]):not([formControlName]),\n ids-switch[formControl]:not([ngModel]):not([formControlName]),\n ids-switch[formControlName]:not([ngModel]):not([formControl])`,\n imports: [IdsIconComponent],\n templateUrl: './switch.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: IdsSwitchComponent,\n multi: true,\n },\n ],\n animations: [switchAnimation],\n host: {\n '[aria-label]': 'ariaLabel()',\n '[aria-labelledby]': 'ariaLabelledBy()',\n '[aria-describedby]': 'ariaDescribedBy()',\n },\n})\nexport class IdsSwitchComponent extends ComponentBaseWithDefaults<IdsSwitchDefaultConfig> {\n protected override get _hostName(): string {\n return 'switch';\n }\n\n protected readonly _defaultConfig = this._getDefaultConfig(defaultConfig, IDS_SWITCH_DEFAULT_CONFIG);\n\n private _switchGroup = inject(IdsSwitchGroupComponent, { optional: true });\n\n private _switchElement = viewChild<ElementRef<HTMLInputElement>>('switch');\n\n public isChecked = signal(false);\n\n public label = input<string>();\n public name = input<string | null>();\n public readonly = input(false, { transform: coerceBooleanAttribute });\n public size = input<IdsSizeType>(this._defaultConfig.size);\n public tabIndex = input(0, { transform: coerceNumberAttribute });\n public variant = input<IdsSwitchVariantType>(this._defaultConfig.variant);\n public hasIcon = input(this._defaultConfig.hasIcon);\n public iconPosition = input(this._defaultConfig.iconPosition);\n public labelPosition = input(this._defaultConfig.labelPosition);\n public isDisabled = signal(false);\n public ariaLabel = input<string| null>(null, { alias: 'aria-label' });\n public ariaLabelledBy = input<string | null, string>(null,\n { alias: 'aria-labelledby', transform: (val) => fallbackValue(val, this.id()) },\n );\n\n public ariaDescribedBy = input<string | null>(null, { alias: 'aria-describedby' });\n\n protected _parentOrSelfSize = computed(() => this._switchGroup?.size() ?? this.size());\n protected _parentOrSelfHasIcon = computed(() => this._switchGroup?.hasIcon() ?? this.hasIcon());\n protected _parentOrSelfIconPosition = computed(() => this._switchGroup?.iconPosition() ?? this.iconPosition());\n protected _parentOrSelfLabelPosition = computed(() => this._switchGroup?.labelPosition() ?? this.labelPosition());\n protected _hasHandleIcon = computed(() =>\n this._parentOrSelfHasIcon() && this._parentOrSelfIconPosition() === IdsSwitchIconPosition.ONHANDLE,\n );\n\n protected _hasTrackIcon = computed(() =>\n this._parentOrSelfHasIcon() && this._parentOrSelfIconPosition() === IdsSwitchIconPosition.ONTRACK,\n );\n\n private _isFocusable = computed(() => !this.isDisabled() && !this.readonly());\n protected _hostClasses = computed(() => this._getHostClasses([\n this._parentOrSelfSize(),\n this.variant(),\n this.isDisabled() ? 'disabled' : null,\n this.isChecked() ? 'on' : null,\n [\n 'label',\n this._parentOrSelfLabelPosition(),\n ],\n ]),\n );\n\n private _onChange: (value: unknown) => void = () => { };\n private _onTouched: () => unknown = () => { };\n\n @Input({ transform: coerceBooleanAttribute })\n set disabled(value: boolean) {\n if (value !== this.disabled) {\n this.isDisabled.set(value);\n }\n }\n\n public focus(): void {\n if (this._isFocusable()) {\n this._switchElement()?.nativeElement.focus();\n }\n }\n\n public writeValue(value: boolean | undefined): void {\n this.isChecked.set(Boolean(value));\n }\n\n public registerOnChange(fn: () => void): void {\n this._onChange = fn;\n }\n\n public registerOnTouched(fn: () => unknown): void {\n this._onTouched = fn;\n }\n\n public setDisabledState?(isDisabled: boolean): void {\n this.isDisabled.set(isDisabled);\n }\n\n public toggle(): void {\n if (!this.isDisabled() && !this.readonly()) {\n this.isChecked.update((checked) => !checked);\n this._onChange(this.isChecked());\n this._onTouched();\n }\n }\n\n public handleClick(): void {\n if (!this.isDisabled()) {\n this.toggle();\n }\n }\n}\n","<button\n #switch\n role=\"switch\"\n type=\"button\"\n class=\"ids-switch__button\"\n [tabIndex]=\"isDisabled() ? -1 : tabIndex()\"\n [disabled]=\"isDisabled()\"\n [id]=\"id()\"\n [name]=\"name()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.aria-checked]=\"isChecked()\"\n [@switchAnimation]=\"isChecked() ? 'on' : 'off'\"\n (click)=\"handleClick()\"\n>\n <div class=\"ids-switch__track\">\n @if (_hasTrackIcon()) {\n <div class=\"ids-switch__track-icon\">\n @if (isChecked()) {\n <ids-icon aria-hidden=\"true\" fontIcon=\"check\" />\n }\n </div>\n <div class=\"ids-switch__track-icon\">\n @if (!isChecked()) {\n <ids-icon aria-hidden=\"true\" fontIcon=\"close\" />\n }\n </div>\n }\n <div class=\"ids-switch__handle\">\n @if (_hasHandleIcon()) {\n <!-- needs to be here duplicate ids-icon because of animation :enter and :leave -->\n @if (isChecked()) {\n <ids-icon aria-hidden=\"true\" fontIcon=\"check\" />\n } @else {\n <ids-icon aria-hidden=\"true\" fontIcon=\"close\" />\n }\n }\n </div>\n </div>\n</button>\n\n<label class=\"ids-switch__label\" [for]=\"id()\">{{ label() }}</label>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["defaultConfig"],"mappings":";;;;;;;AAAa,MAAA,qBAAqB,GAAG;AACnC,IAAA,QAAQ,EAAE,UAAU;AACpB,IAAA,OAAO,EAAE,SAAS;;AAKP,MAAA,sBAAsB,GAAG;AACpC,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,KAAK,EAAE,OAAO;;;ACTH,MAAA,gBAAgB,GAAG;AAC9B,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,KAAK,EAAE,OAAO;;;MCWH,yBAAyB,GAAG,IAAI,cAAc,CACzD,2BAA2B,EAC3B;AACE,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,iCAAiC;AAC3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A,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC3BH,0zCA2CA,ED1BY,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,gBAAgB,EAWd,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,gBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,aAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAC,eAAe,CAAC,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAOlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAtB9B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA;;2EAE+D,EAChE,OAAA,EAAA,CAAC,gBAAgB,CAAC,EAEZ,aAAA,EAAA,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACpC,SAAA,EAAA;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAoB,kBAAA;AAC/B,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;qBACF,EACW,UAAA,EAAA,CAAC,eAAe,CAAC,EACvB,IAAA,EAAA;AACJ,wBAAA,cAAc,EAAE,aAAa;AAC7B,wBAAA,mBAAmB,EAAE,kBAAkB;AACvC,wBAAA,oBAAoB,EAAE,mBAAmB;AAC1C,qBAAA,EAAA,QAAA,EAAA,0zCAAA,EAAA;8BA6DG,QAAQ,EAAA,CAAA;sBADX,KAAK;uBAAC,EAAE,SAAS,EAAE,sBAAsB,EAAE;;;AE7F9C;;AAEG;;;;"}
1
+ {"version":3,"file":"i-cell-ids-angular-switch.mjs","sources":["../../../projects/widgets/switch/types/switch-positions.type.ts","../../../projects/widgets/switch/types/switch-variant.type.ts","../../../projects/widgets/switch/switch-defaults.ts","../../../projects/widgets/switch/switch-group.component.ts","../../../projects/widgets/switch/switch-group.component.html","../../../projects/widgets/switch/switch-animations.ts","../../../projects/widgets/switch/switch.component.ts","../../../projects/widgets/switch/switch.component.html","../../../projects/widgets/switch/i-cell-ids-angular-switch.ts"],"sourcesContent":["export const IdsSwitchIconPosition = {\n ONHANDLE: 'onhandle',\n ONTRACK: 'ontrack',\n} as const;\n\nexport type IdsSwitchIconPositionType = (typeof IdsSwitchIconPosition)[keyof typeof IdsSwitchIconPosition];\n\nexport const IdsSwitchLabelPosition = {\n LEFT: 'left',\n RIGHT: 'right',\n} as const;\n\nexport type IdsSwitchLabelPositionType = (typeof IdsSwitchLabelPosition)[keyof typeof IdsSwitchLabelPosition];\n","export const IdsSwitchVariant = {\n PRIMARY: 'primary',\n SURFACE: 'surface',\n LIGHT: 'light',\n} as const;\n\nexport type IdsSwitchVariantType = (typeof IdsSwitchVariant)[keyof typeof IdsSwitchVariant];\n","import { IdsSwitchIconPosition, IdsSwitchIconPositionType, IdsSwitchLabelPosition, IdsSwitchLabelPositionType } from './types/switch-positions.type';\nimport { IdsSwitchVariant, IdsSwitchVariantType } from './types/switch-variant.type';\n\nimport { InjectionToken } from '@angular/core';\nimport { IdsSize, IdsSizeType } from '@i-cell/ids-angular/core';\n\nexport interface IdsSwitchDefaultConfig {\n size?: IdsSizeType\n variant?: IdsSwitchVariantType\n hasIcon?: boolean\n iconPosition: IdsSwitchIconPositionType\n labelPosition: IdsSwitchLabelPositionType\n}\n\nexport const IDS_SWITCH_DEFAULT_CONFIG = new InjectionToken<IdsSwitchDefaultConfig>(\n 'IDS_SWITCH_DEFAULT_CONFIG',\n {\n providedIn: 'root',\n factory: IDS_SWITCH_DEFAULT_CONFIG_FACTORY,\n },\n);\n\nexport function IDS_SWITCH_DEFAULT_CONFIG_FACTORY(): Required<IdsSwitchDefaultConfig> {\n return {\n size: IdsSize.COMPACT,\n variant: IdsSwitchVariant.SURFACE,\n hasIcon: false,\n iconPosition: IdsSwitchIconPosition.ONHANDLE,\n labelPosition: IdsSwitchLabelPosition.RIGHT,\n };\n}\n","import { IDS_SWITCH_DEFAULT_CONFIG, IDS_SWITCH_DEFAULT_CONFIG_FACTORY, IdsSwitchDefaultConfig } from './switch-defaults';\n\nimport { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation } from '@angular/core';\nimport { IdsSizeType, ComponentBaseWithDefaults } from '@i-cell/ids-angular/core';\n\nconst defaultConfig = IDS_SWITCH_DEFAULT_CONFIG_FACTORY();\n\n@Component({\n selector: 'ids-switch-group',\n imports: [],\n templateUrl: './switch-group.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class IdsSwitchGroupComponent extends ComponentBaseWithDefaults<IdsSwitchDefaultConfig> {\n protected override get _hostName(): string {\n return 'switch-group';\n }\n\n protected readonly _defaultConfig = this._getDefaultConfig(defaultConfig, IDS_SWITCH_DEFAULT_CONFIG);\n\n public size = input<IdsSizeType | null>(this._defaultConfig.size);\n public hasIcon = input(this._defaultConfig.hasIcon);\n public iconPosition = input(this._defaultConfig.iconPosition);\n public labelPosition = input(this._defaultConfig.labelPosition);\n\n protected _hostClasses = computed(() => this._getHostClasses([this.size()]));\n}\n","<ng-content select=\"ids-switch\" />\n","import { animate, AnimationTriggerMetadata, query, style, transition, trigger } from '@angular/animations';\n\nexport const switchAnimation: AnimationTriggerMetadata = trigger('switchAnimation', [\n transition('off <=> on', [\n query('.ids-icon:enter', [\n style({ opacity: 0 }),\n animate('0.1s ease-in', style({ opacity: 1 })),\n ], { optional: true }),\n query('.ids-icon:leave', [animate('0.1s ease-out', style({ opacity: 0 }))], { optional: true }),\n ]),\n]);\n","import { switchAnimation } from './switch-animations';\nimport { IDS_SWITCH_DEFAULT_CONFIG, IDS_SWITCH_DEFAULT_CONFIG_FACTORY, IdsSwitchDefaultConfig } from './switch-defaults';\nimport { IdsSwitchGroupComponent } from './switch-group.component';\nimport { IdsSwitchIconPosition } from './types/switch-positions.type';\nimport { IdsSwitchVariantType } from './types/switch-variant.type';\n\nimport { ChangeDetectionStrategy, Component, computed, ElementRef, inject, Input, input, signal, viewChild, ViewEncapsulation } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { coerceBooleanAttribute, IdsSizeType, fallbackValue, coerceNumberAttribute, ComponentBaseWithDefaults } from '@i-cell/ids-angular/core';\nimport { IdsIconComponent } from '@i-cell/ids-angular/icon';\n\nconst defaultConfig = IDS_SWITCH_DEFAULT_CONFIG_FACTORY();\n\n@Component({\n selector: `ids-switch[ngModel]:not([formControl]):not([formControlName]),\n ids-switch[formControl]:not([ngModel]):not([formControlName]),\n ids-switch[formControlName]:not([ngModel]):not([formControl])`,\n imports: [IdsIconComponent],\n templateUrl: './switch.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: IdsSwitchComponent,\n multi: true,\n },\n ],\n animations: [switchAnimation],\n host: {\n '[aria-label]': 'ariaLabel()',\n '[aria-labelledby]': 'ariaLabelledBy()',\n '[aria-describedby]': 'ariaDescribedBy()',\n },\n})\nexport class IdsSwitchComponent extends ComponentBaseWithDefaults<IdsSwitchDefaultConfig> {\n protected override get _hostName(): string {\n return 'switch';\n }\n\n protected readonly _defaultConfig = this._getDefaultConfig(defaultConfig, IDS_SWITCH_DEFAULT_CONFIG);\n\n private _switchGroup = inject(IdsSwitchGroupComponent, { optional: true });\n\n private _switchElement = viewChild<ElementRef<HTMLInputElement>>('switch');\n\n protected _isChecked = signal(false);\n\n public label = input<string>();\n public name = input<string | null>();\n public readonly = input(false, { transform: coerceBooleanAttribute });\n public size = input<IdsSizeType>(this._defaultConfig.size);\n public tabIndex = input(0, { transform: coerceNumberAttribute });\n public variant = input<IdsSwitchVariantType>(this._defaultConfig.variant);\n public hasIcon = input(this._defaultConfig.hasIcon);\n public iconPosition = input(this._defaultConfig.iconPosition);\n public labelPosition = input(this._defaultConfig.labelPosition);\n protected _isDisabled = signal(false);\n public ariaLabel = input<string| null>(null, { alias: 'aria-label' });\n public ariaLabelledBy = input<string | null, string>(null,\n { alias: 'aria-labelledby', transform: (val) => fallbackValue(val, this.id()) },\n );\n\n public ariaDescribedBy = input<string | null>(null, { alias: 'aria-describedby' });\n\n protected _parentOrSelfSize = computed(() => this._switchGroup?.size() ?? this.size());\n protected _parentOrSelfHasIcon = computed(() => this._switchGroup?.hasIcon() ?? this.hasIcon());\n protected _parentOrSelfIconPosition = computed(() => this._switchGroup?.iconPosition() ?? this.iconPosition());\n protected _parentOrSelfLabelPosition = computed(() => this._switchGroup?.labelPosition() ?? this.labelPosition());\n protected _hasHandleIcon = computed(() =>\n this._parentOrSelfHasIcon() && this._parentOrSelfIconPosition() === IdsSwitchIconPosition.ONHANDLE,\n );\n\n protected _hasTrackIcon = computed(() =>\n this._parentOrSelfHasIcon() && this._parentOrSelfIconPosition() === IdsSwitchIconPosition.ONTRACK,\n );\n\n private _isFocusable = computed(() => !this._isDisabled() && !this.readonly());\n protected _hostClasses = computed(() => this._getHostClasses([\n this._parentOrSelfSize(),\n this.variant(),\n this._isDisabled() ? 'disabled' : null,\n this._isChecked() ? 'on' : null,\n [\n 'label',\n this._parentOrSelfLabelPosition(),\n ],\n ]),\n );\n\n private _onChange: (value: unknown) => void = () => { };\n private _onTouched: () => unknown = () => { };\n\n @Input({ transform: coerceBooleanAttribute })\n set disabled(value: boolean) {\n if (value !== this.disabled) {\n this._isDisabled.set(value);\n }\n }\n\n public focus(): void {\n if (this._isFocusable()) {\n this._switchElement()?.nativeElement.focus();\n }\n }\n\n public writeValue(value: boolean | undefined): void {\n this._isChecked.set(Boolean(value));\n }\n\n public registerOnChange(fn: () => void): void {\n this._onChange = fn;\n }\n\n public registerOnTouched(fn: () => unknown): void {\n this._onTouched = fn;\n }\n\n public setDisabledState?(isDisabled: boolean): void {\n this._isDisabled.set(isDisabled);\n }\n\n public toggle(): void {\n if (!this._isDisabled() && !this.readonly()) {\n this._isChecked.update((checked) => !checked);\n this._onChange(this._isChecked());\n this._onTouched();\n }\n }\n\n protected _handleClick(): void {\n if (!this._isDisabled()) {\n this.toggle();\n }\n }\n}\n","<button\n #switch\n role=\"switch\"\n type=\"button\"\n class=\"ids-switch__button\"\n [tabIndex]=\"_isDisabled() ? -1 : tabIndex()\"\n [disabled]=\"_isDisabled()\"\n [id]=\"id()\"\n [name]=\"name()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.aria-checked]=\"_isChecked()\"\n [@switchAnimation]=\"_isChecked() ? 'on' : 'off'\"\n (click)=\"_handleClick()\"\n>\n <div class=\"ids-switch__track\">\n @if (_hasTrackIcon()) {\n <div class=\"ids-switch__track-icon\">\n @if (_isChecked()) {\n <ids-icon aria-hidden=\"true\" fontIcon=\"check\" />\n }\n </div>\n <div class=\"ids-switch__track-icon\">\n @if (!_isChecked()) {\n <ids-icon aria-hidden=\"true\" fontIcon=\"close\" />\n }\n </div>\n }\n <div class=\"ids-switch__handle\">\n @if (_hasHandleIcon()) {\n <!-- needs to be here duplicate ids-icon because of animation :enter and :leave -->\n @if (_isChecked()) {\n <ids-icon aria-hidden=\"true\" fontIcon=\"check\" />\n } @else {\n <ids-icon aria-hidden=\"true\" fontIcon=\"close\" />\n }\n }\n </div>\n </div>\n</button>\n\n<label class=\"ids-switch__label\" [for]=\"id()\">{{ label() }}</label>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["defaultConfig"],"mappings":";;;;;;;AAAa,MAAA,qBAAqB,GAAG;AACnC,IAAA,QAAQ,EAAE,UAAU;AACpB,IAAA,OAAO,EAAE,SAAS;;AAKP,MAAA,sBAAsB,GAAG;AACpC,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,KAAK,EAAE,OAAO;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BAAA,EAAA,QAAA,EAAA,k0CAAA,EAAA;8BA6DG,QAAQ,EAAA,CAAA;sBADX,KAAK;uBAAC,EAAE,SAAS,EAAE,sBAAsB,EAAE;;;AE7F9C;;AAEG;;;;"}
@@ -80,7 +80,8 @@ class IdsTabGroupComponent extends ComponentBaseWithDefaults {
80
80
  this.tabPosition = input(this._defaultConfig.tabPosition);
81
81
  this.indicatorPosition = input();
82
82
  this.disabled = input(false, { transform: coerceBooleanAttribute });
83
- this.selectedTabIndex = signal(0);
83
+ this._selectedTabIndex = signal(0);
84
+ this.selectedTabIndex = this._selectedTabIndex.asReadonly();
84
85
  this._hostClasses = computed(() => this._getHostClasses([
85
86
  this.size(),
86
87
  this.variant(),
@@ -88,9 +89,9 @@ class IdsTabGroupComponent extends ComponentBaseWithDefaults {
88
89
  this.disabled() ? 'disabled' : null,
89
90
  this.stretchTabs() && this.orientation() === IdsOrientation.HORIZONTAL ? 'stretch-tabs' : null,
90
91
  this.tabPosition() && !this.stretchTabs() ? this.tabPosition() : null,
91
- `indicator-${this.indicatorPosition() ?? this.calculatedIndicatorPosition()}`,
92
+ `indicator-${this.indicatorPosition() ?? this._calculatedIndicatorPosition()}`,
92
93
  ]));
93
- this.calculatedIndicatorPosition = computed(() => (this.orientation() === IdsOrientation.HORIZONTAL ? IdsTabIndicatorPosition.BOTTOM : IdsTabIndicatorPosition.LEFT));
94
+ this._calculatedIndicatorPosition = computed(() => (this.orientation() === IdsOrientation.HORIZONTAL ? IdsTabIndicatorPosition.BOTTOM : IdsTabIndicatorPosition.LEFT));
94
95
  }
95
96
  get _hostName() {
96
97
  return 'tab-group';
@@ -114,7 +115,7 @@ class IdsTabGroupComponent extends ComponentBaseWithDefaults {
114
115
  this.selectTab(0);
115
116
  }
116
117
  selectTab(index) {
117
- this.selectedTabIndex.set(index);
118
+ this._selectedTabIndex.set(index);
118
119
  const selectedItem = this._items().at(index);
119
120
  const selectedPortal = new TemplatePortal(selectedItem.content(), this._viewContainerRef);
120
121
  if (this._portalOutlet().hasAttached()) {
@@ -123,14 +124,14 @@ class IdsTabGroupComponent extends ComponentBaseWithDefaults {
123
124
  this._portalOutlet().attach(selectedPortal);
124
125
  }
125
126
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: IdsTabGroupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
126
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.2", type: IdsTabGroupComponent, isStandalone: true, selector: "ids-tab-group", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, stretchTabs: { classPropertyName: "stretchTabs", publicName: "stretchTabs", isSignal: true, isRequired: false, transformFunction: null }, tabPosition: { classPropertyName: "tabPosition", publicName: "tabPosition", isSignal: true, isRequired: false, transformFunction: null }, indicatorPosition: { classPropertyName: "indicatorPosition", publicName: "indicatorPosition", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "_items", predicate: IdsTabComponent, isSignal: true }], viewQueries: [{ propertyName: "_portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<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", dependencies: [{ kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "component", type: IdsIconComponent, selector: "ids-icon", inputs: ["size", "sizeCollection", "variant", "fontIcon", "svgIcon", "aria-hidden"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
127
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.2", type: IdsTabGroupComponent, isStandalone: true, selector: "ids-tab-group", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, stretchTabs: { classPropertyName: "stretchTabs", publicName: "stretchTabs", isSignal: true, isRequired: false, transformFunction: null }, tabPosition: { classPropertyName: "tabPosition", publicName: "tabPosition", isSignal: true, isRequired: false, transformFunction: null }, indicatorPosition: { classPropertyName: "indicatorPosition", publicName: "indicatorPosition", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "_items", predicate: IdsTabComponent, isSignal: true }], viewQueries: [{ propertyName: "_portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<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", dependencies: [{ kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "component", type: IdsIconComponent, selector: "ids-icon", inputs: ["size", "sizeCollection", "variant", "fontIcon", "svgIcon", "aria-hidden"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
127
128
  }
128
129
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: IdsTabGroupComponent, decorators: [{
129
130
  type: Component,
130
131
  args: [{ selector: 'ids-tab-group', imports: [
131
132
  PortalModule,
132
133
  IdsIconComponent,
133
- ], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<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" }]
134
+ ], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<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" }]
134
135
  }] });
135
136
 
136
137
  /**
@@ -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 public selectedTabIndex = signal<number>(0);\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 public 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,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,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,oCAAoC;AAC9C,CAAA;SAGa,oCAAoC,GAAA;IAClD,OAAO;QACL,IAAI,EAAE,OAAO,CAAC,OAAO;QACrB,OAAO,EAAE,kBAAkB,CAAC,OAAO;QACnC,W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,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,yjCAAA,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 = `${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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A,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,2jCAAA,EAAA;;;AErBjD;;AAEG;;;;"}
@@ -79,8 +79,8 @@ class IdsTagComponent extends ComponentBaseWithDefaults {
79
79
  this._tagGroup = inject(IdsTagGroupComponent, { optional: true });
80
80
  this._defaultConfig = this._getDefaultConfig(defaultConfig, IDS_TAG_DEFAULT_CONFIG);
81
81
  this._hostElement = inject(ElementRef).nativeElement;
82
- this.iconLeading = contentChildren('ids-icon[icon-leading]');
83
- this.iconTrailing = contentChildren('ids-icon[icon-trailing]');
82
+ this._iconLeading = contentChildren('ids-icon[icon-leading]');
83
+ this._iconTrailing = contentChildren('ids-icon[icon-trailing]');
84
84
  this.appearance = input(this._defaultConfig.appearance);
85
85
  this.size = input(this._defaultConfig.size);
86
86
  this.variant = input(this._defaultConfig.variant);
@@ -99,13 +99,13 @@ class IdsTagComponent extends ComponentBaseWithDefaults {
99
99
  return this._hostElement.tagName === 'BUTTON' ? 'button' : null;
100
100
  }
101
101
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: IdsTagComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
102
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.2", type: IdsTagComponent, isStandalone: true, selector: "ids-tag,a[idsTag]", inputs: { appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "type": "_hostType" } }, queries: [{ propertyName: "iconLeading", predicate: ["ids-icon[icon-leading]"], isSignal: true }, { propertyName: "iconTrailing", predicate: ["ids-icon[icon-trailing]"], isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (iconLeading()) {\n <ng-content select=\"ids-icon[icon-leading]\" />\n}\n<span class=\"ids-tag-label\"><ng-content /></span>\n@if (iconTrailing()) {\n <ng-content select=\"ids-icon[icon-trailing]\" />\n}\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
102
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.2", type: IdsTagComponent, isStandalone: true, selector: "ids-tag,a[idsTag]", inputs: { appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "type": "_hostType" } }, queries: [{ propertyName: "_iconLeading", predicate: ["ids-icon[icon-leading]"], isSignal: true }, { propertyName: "_iconTrailing", predicate: ["ids-icon[icon-trailing]"], isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (_iconLeading()) {\n <ng-content select=\"ids-icon[icon-leading]\" />\n}\n<span class=\"ids-tag-label\"><ng-content /></span>\n@if (_iconTrailing()) {\n <ng-content select=\"ids-icon[icon-trailing]\" />\n}\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
103
103
  }
104
104
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: IdsTagComponent, decorators: [{
105
105
  type: Component,
106
106
  args: [{ selector: 'ids-tag,a[idsTag]', imports: [], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
107
107
  '[type]': '_hostType',
108
- }, template: "@if (iconLeading()) {\n <ng-content select=\"ids-icon[icon-leading]\" />\n}\n<span class=\"ids-tag-label\"><ng-content /></span>\n@if (iconTrailing()) {\n <ng-content select=\"ids-icon[icon-trailing]\" />\n}\n" }]
108
+ }, template: "@if (_iconLeading()) {\n <ng-content select=\"ids-icon[icon-leading]\" />\n}\n<span class=\"ids-tag-label\"><ng-content /></span>\n@if (_iconTrailing()) {\n <ng-content select=\"ids-icon[icon-trailing]\" />\n}\n" }]
109
109
  }] });
110
110
 
111
111
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"i-cell-ids-angular-tag.mjs","sources":["../../../projects/widgets/tag/types/tag-appearance.type.ts","../../../projects/widgets/tag/types/tag-variant.type.ts","../../../projects/widgets/tag/tag-defaults.ts","../../../projects/widgets/tag/tag-group-defaults.ts","../../../projects/widgets/tag/tag-group.component.ts","../../../projects/widgets/tag/tag.component.ts","../../../projects/widgets/tag/tag.component.html","../../../projects/widgets/tag/i-cell-ids-angular-tag.ts"],"sourcesContent":["export const IdsTagAppearance = {\n FILLED: 'filled',\n OUTLINED: 'outlined',\n} as const;\n\nexport type IdsTagAppearanceType = (typeof IdsTagAppearance)[keyof typeof IdsTagAppearance];\n","export const IdsTagVariant = {\n PRIMARY: 'primary',\n SECONDARY: 'secondary',\n SURFACE: 'surface',\n BRAND: 'brand',\n LIGHT: 'light',\n DARK: 'dark',\n INFO: 'info',\n SUCCESS: 'success',\n WARNING: 'warning',\n ERROR: 'error',\n} as const;\n\nexport type IdsTagVariantType = (typeof IdsTagVariant)[keyof typeof IdsTagVariant];\n\n","import { IdsTagAppearance, IdsTagAppearanceType } from './types/tag-appearance.type';\nimport { IdsTagVariant, IdsTagVariantType } from './types/tag-variant.type';\n\nimport { InjectionToken } from '@angular/core';\nimport { IdsSize, IdsSizeType } from '@i-cell/ids-angular/core';\n\nexport interface IdsTagDefaultConfig {\n appearance?: IdsTagAppearanceType,\n size?: IdsSizeType,\n variant?: IdsTagVariantType,\n}\n\nexport const IDS_TAG_DEFAULT_CONFIG = new InjectionToken<IdsTagDefaultConfig>(\n 'IDS_TAG_DEFAULT_CONFIG',\n {\n providedIn: 'root',\n factory: IDS_TAG_DEFAULT_CONFIG_FACTORY,\n },\n);\n\nexport function IDS_TAG_DEFAULT_CONFIG_FACTORY(): Required<IdsTagDefaultConfig> {\n return {\n appearance: IdsTagAppearance.FILLED,\n size: IdsSize.COMPACT,\n variant: IdsTagVariant.PRIMARY,\n };\n}\n\n","import { IdsTagAppearance, IdsTagAppearanceType } from './types/tag-appearance.type';\n\nimport { InjectionToken } from '@angular/core';\nimport { IdsSize, IdsSizeType } from '@i-cell/ids-angular/core';\n\nexport interface IdsTagGroupDefaultConfig {\n appearance?: IdsTagAppearanceType,\n size?: IdsSizeType,\n}\n\nexport const IDS_TAG_GROUP_DEFAULT_CONFIG = new InjectionToken<IdsTagGroupDefaultConfig>(\n 'IDS_TAG_GROUP_DEFAULT_CONFIG',\n {\n providedIn: 'root',\n factory: IDS_TAG_GROUP_DEFAULT_CONFIG_FACTORY,\n },\n);\n\nexport function IDS_TAG_GROUP_DEFAULT_CONFIG_FACTORY(): Required<IdsTagGroupDefaultConfig> {\n return {\n appearance: IdsTagAppearance.FILLED,\n size: IdsSize.COMPACT,\n };\n}\n\n","import { IDS_TAG_GROUP_DEFAULT_CONFIG, IDS_TAG_GROUP_DEFAULT_CONFIG_FACTORY, IdsTagGroupDefaultConfig } from './tag-group-defaults';\nimport { IdsTagAppearanceType } from './types/tag-appearance.type';\n\nimport { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation } from '@angular/core';\nimport { ComponentBaseWithDefaults, IdsSizeType } from '@i-cell/ids-angular/core';\n\nconst defaultConfig = IDS_TAG_GROUP_DEFAULT_CONFIG_FACTORY();\n\n@Component({\n selector: 'ids-tag-group',\n imports: [],\n template: '<ng-content select=\"ids-tag, a[idsTag]\" />',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class IdsTagGroupComponent extends ComponentBaseWithDefaults<IdsTagGroupDefaultConfig> {\n protected override get _hostName(): string {\n return 'tag-group';\n }\n\n protected readonly _defaultConfig = this._getDefaultConfig(defaultConfig, IDS_TAG_GROUP_DEFAULT_CONFIG);\n\n public appearance = input<IdsTagAppearanceType>(this._defaultConfig.appearance);\n public size = input<IdsSizeType>(this._defaultConfig.size);\n\n protected _hostClasses = computed(() => this._getHostClasses([\n this.appearance(),\n this.size(),\n ]));\n}\n","import { IDS_TAG_DEFAULT_CONFIG, IDS_TAG_DEFAULT_CONFIG_FACTORY, IdsTagDefaultConfig } from './tag-defaults';\nimport { IdsTagGroupComponent } from './tag-group.component';\nimport { IdsTagAppearanceType } from './types/tag-appearance.type';\nimport { IdsTagVariantType } from './types/tag-variant.type';\n\nimport { ChangeDetectionStrategy, Component, ElementRef, ViewEncapsulation, computed, contentChildren, inject, input } from '@angular/core';\nimport { ComponentBaseWithDefaults, IdsSizeType } from '@i-cell/ids-angular/core';\nimport { IdsIconComponent } from '@i-cell/ids-angular/icon';\n\nconst defaultConfig = IDS_TAG_DEFAULT_CONFIG_FACTORY();\n\n@Component({\n selector: 'ids-tag,a[idsTag]',\n imports: [],\n templateUrl: './tag.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[type]': '_hostType',\n },\n})\nexport class IdsTagComponent extends ComponentBaseWithDefaults<IdsTagDefaultConfig> {\n protected override get _hostName(): string {\n return 'tag';\n }\n\n private readonly _tagGroup = inject(IdsTagGroupComponent, { optional: true });\n\n protected readonly _defaultConfig = this._getDefaultConfig(defaultConfig, IDS_TAG_DEFAULT_CONFIG);\n\n private _hostElement = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n\n public iconLeading = contentChildren<IdsIconComponent>('ids-icon[icon-leading]');\n public iconTrailing = contentChildren<IdsIconComponent>('ids-icon[icon-trailing]');\n\n public appearance = input<IdsTagAppearanceType>(this._defaultConfig.appearance);\n public size = input<IdsSizeType>(this._defaultConfig.size);\n public variant = input<IdsTagVariantType>(this._defaultConfig.variant);\n\n private _parentOrSelfAppearance = computed(() => this._tagGroup?.appearance() ?? this.appearance());\n private _parentOrSelfSize = computed(() => this._tagGroup?.size() ?? this.size());\n\n protected _hostClasses = computed(() => this._getHostClasses([\n this._parentOrSelfAppearance(),\n this._parentOrSelfSize(),\n this.variant(),\n ]));\n\n private get _hostType(): string | null {\n return this._hostElement.tagName === 'BUTTON' ? 'button' : null;\n }\n}\n","@if (iconLeading()) {\n <ng-content select=\"ids-icon[icon-leading]\" />\n}\n<span class=\"ids-tag-label\"><ng-content /></span>\n@if (iconTrailing()) {\n <ng-content select=\"ids-icon[icon-trailing]\" />\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["defaultConfig"],"mappings":";;;;AAAa,MAAA,gBAAgB,GAAG;AAC9B,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,QAAQ,EAAE,UAAU;;;ACFT,MAAA,aAAa,GAAG;AAC3B,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,SAAS,EAAE,WAAW;AACtB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,KAAK,EAAE,OAAO;;;MCEH,sBAAsB,GAAG,IAAI,cAAc,CACtD,wBAAwB,EACxB;AACE,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,8BAA8B;AACxC,CAAA;SAGa,8BAA8B,GAAA;IAC5C,OAAO;QACL,UAAU,EAAE,gBAAgB,CAAC,MAAM;QACnC,IAAI,EAAE,OAAO,CAAC,OAAO;QACrB,OAAO,EAAE,aAAa,CAAC,OAAO;KAC/B;AACH;;M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,IAAI,CAAC,IAAI,EAAE,CAAC;QAEvE,IAAY,CAAA,YAAA,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,eAAe,CAAC;YAC3D,IAAI,CAAC,uBAAuB,EAAE;YAC9B,IAAI,CAAC,iBAAiB,EAAE;YACxB,IAAI,CAAC,OAAO,EAAE;AACf,SAAA,CAAC,CAAC;AAKJ;AA7BC,IAAA,IAAuB,SAAS,GAAA;AAC9B,QAAA,OAAO,KAAK;;AAyBd,IAAA,IAAY,SAAS,GAAA;AACnB,QAAA,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,KAAK,QAAQ,GAAG,QAAQ,GAAG,IAAI;;8GA5BtD,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAe,stBCrB5B,qNAOA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FDca,eAAe,EAAA,UAAA,EAAA,CAAA;kBAV3B,SAAS;+BACE,mBAAmB,EAAA,OAAA,EACpB,EAAE,EAAA,aAAA,EAEI,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACzC,IAAA,EAAA;AACJ,wBAAA,QAAQ,EAAE,WAAW;AACtB,qBAAA,EAAA,QAAA,EAAA,qNAAA,EAAA;;;AEnBH;;AAEG;;;;"}
1
+ {"version":3,"file":"i-cell-ids-angular-tag.mjs","sources":["../../../projects/widgets/tag/types/tag-appearance.type.ts","../../../projects/widgets/tag/types/tag-variant.type.ts","../../../projects/widgets/tag/tag-defaults.ts","../../../projects/widgets/tag/tag-group-defaults.ts","../../../projects/widgets/tag/tag-group.component.ts","../../../projects/widgets/tag/tag.component.ts","../../../projects/widgets/tag/tag.component.html","../../../projects/widgets/tag/i-cell-ids-angular-tag.ts"],"sourcesContent":["export const IdsTagAppearance = {\n FILLED: 'filled',\n OUTLINED: 'outlined',\n} as const;\n\nexport type IdsTagAppearanceType = (typeof IdsTagAppearance)[keyof typeof IdsTagAppearance];\n","export const IdsTagVariant = {\n PRIMARY: 'primary',\n SECONDARY: 'secondary',\n SURFACE: 'surface',\n BRAND: 'brand',\n LIGHT: 'light',\n DARK: 'dark',\n INFO: 'info',\n SUCCESS: 'success',\n WARNING: 'warning',\n ERROR: 'error',\n} as const;\n\nexport type IdsTagVariantType = (typeof IdsTagVariant)[keyof typeof IdsTagVariant];\n\n","import { IdsTagAppearance, IdsTagAppearanceType } from './types/tag-appearance.type';\nimport { IdsTagVariant, IdsTagVariantType } from './types/tag-variant.type';\n\nimport { InjectionToken } from '@angular/core';\nimport { IdsSize, IdsSizeType } from '@i-cell/ids-angular/core';\n\nexport interface IdsTagDefaultConfig {\n appearance?: IdsTagAppearanceType,\n size?: IdsSizeType,\n variant?: IdsTagVariantType,\n}\n\nexport const IDS_TAG_DEFAULT_CONFIG = new InjectionToken<IdsTagDefaultConfig>(\n 'IDS_TAG_DEFAULT_CONFIG',\n {\n providedIn: 'root',\n factory: IDS_TAG_DEFAULT_CONFIG_FACTORY,\n },\n);\n\nexport function IDS_TAG_DEFAULT_CONFIG_FACTORY(): Required<IdsTagDefaultConfig> {\n return {\n appearance: IdsTagAppearance.FILLED,\n size: IdsSize.COMPACT,\n variant: IdsTagVariant.PRIMARY,\n };\n}\n\n","import { IdsTagAppearance, IdsTagAppearanceType } from './types/tag-appearance.type';\n\nimport { InjectionToken } from '@angular/core';\nimport { IdsSize, IdsSizeType } from '@i-cell/ids-angular/core';\n\nexport interface IdsTagGroupDefaultConfig {\n appearance?: IdsTagAppearanceType,\n size?: IdsSizeType,\n}\n\nexport const IDS_TAG_GROUP_DEFAULT_CONFIG = new InjectionToken<IdsTagGroupDefaultConfig>(\n 'IDS_TAG_GROUP_DEFAULT_CONFIG',\n {\n providedIn: 'root',\n factory: IDS_TAG_GROUP_DEFAULT_CONFIG_FACTORY,\n },\n);\n\nexport function IDS_TAG_GROUP_DEFAULT_CONFIG_FACTORY(): Required<IdsTagGroupDefaultConfig> {\n return {\n appearance: IdsTagAppearance.FILLED,\n size: IdsSize.COMPACT,\n };\n}\n\n","import { IDS_TAG_GROUP_DEFAULT_CONFIG, IDS_TAG_GROUP_DEFAULT_CONFIG_FACTORY, IdsTagGroupDefaultConfig } from './tag-group-defaults';\nimport { IdsTagAppearanceType } from './types/tag-appearance.type';\n\nimport { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation } from '@angular/core';\nimport { ComponentBaseWithDefaults, IdsSizeType } from '@i-cell/ids-angular/core';\n\nconst defaultConfig = IDS_TAG_GROUP_DEFAULT_CONFIG_FACTORY();\n\n@Component({\n selector: 'ids-tag-group',\n imports: [],\n template: '<ng-content select=\"ids-tag, a[idsTag]\" />',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class IdsTagGroupComponent extends ComponentBaseWithDefaults<IdsTagGroupDefaultConfig> {\n protected override get _hostName(): string {\n return 'tag-group';\n }\n\n protected readonly _defaultConfig = this._getDefaultConfig(defaultConfig, IDS_TAG_GROUP_DEFAULT_CONFIG);\n\n public appearance = input<IdsTagAppearanceType>(this._defaultConfig.appearance);\n public size = input<IdsSizeType>(this._defaultConfig.size);\n\n protected _hostClasses = computed(() => this._getHostClasses([\n this.appearance(),\n this.size(),\n ]));\n}\n","import { IDS_TAG_DEFAULT_CONFIG, IDS_TAG_DEFAULT_CONFIG_FACTORY, IdsTagDefaultConfig } from './tag-defaults';\nimport { IdsTagGroupComponent } from './tag-group.component';\nimport { IdsTagAppearanceType } from './types/tag-appearance.type';\nimport { IdsTagVariantType } from './types/tag-variant.type';\n\nimport { ChangeDetectionStrategy, Component, ElementRef, ViewEncapsulation, computed, contentChildren, inject, input } from '@angular/core';\nimport { ComponentBaseWithDefaults, IdsSizeType } from '@i-cell/ids-angular/core';\nimport { IdsIconComponent } from '@i-cell/ids-angular/icon';\n\nconst defaultConfig = IDS_TAG_DEFAULT_CONFIG_FACTORY();\n\n@Component({\n selector: 'ids-tag,a[idsTag]',\n imports: [],\n templateUrl: './tag.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[type]': '_hostType',\n },\n})\nexport class IdsTagComponent extends ComponentBaseWithDefaults<IdsTagDefaultConfig> {\n protected override get _hostName(): string {\n return 'tag';\n }\n\n private readonly _tagGroup = inject(IdsTagGroupComponent, { optional: true });\n\n protected readonly _defaultConfig = this._getDefaultConfig(defaultConfig, IDS_TAG_DEFAULT_CONFIG);\n\n private _hostElement = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n\n protected _iconLeading = contentChildren<IdsIconComponent>('ids-icon[icon-leading]');\n protected _iconTrailing = contentChildren<IdsIconComponent>('ids-icon[icon-trailing]');\n\n public appearance = input<IdsTagAppearanceType>(this._defaultConfig.appearance);\n public size = input<IdsSizeType>(this._defaultConfig.size);\n public variant = input<IdsTagVariantType>(this._defaultConfig.variant);\n\n private _parentOrSelfAppearance = computed(() => this._tagGroup?.appearance() ?? this.appearance());\n private _parentOrSelfSize = computed(() => this._tagGroup?.size() ?? this.size());\n\n protected _hostClasses = computed(() => this._getHostClasses([\n this._parentOrSelfAppearance(),\n this._parentOrSelfSize(),\n this.variant(),\n ]));\n\n private get _hostType(): string | null {\n return this._hostElement.tagName === 'BUTTON' ? 'button' : null;\n }\n}\n","@if (_iconLeading()) {\n <ng-content select=\"ids-icon[icon-leading]\" />\n}\n<span class=\"ids-tag-label\"><ng-content /></span>\n@if (_iconTrailing()) {\n <ng-content select=\"ids-icon[icon-trailing]\" />\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public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AAA,EAAA,CAAA,CAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAe,wtBCrB5B,uNAOA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FDca,eAAe,EAAA,UAAA,EAAA,CAAA;kBAV3B,SAAS;+BACE,mBAAmB,EAAA,OAAA,EACpB,EAAE,EAAA,aAAA,EAEI,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACzC,IAAA,EAAA;AACJ,wBAAA,QAAQ,EAAE,WAAW;AACtB,qBAAA,EAAA,QAAA,EAAA,uNAAA,EAAA;;;AEnBH;;AAEG;;;;"}
@@ -7,7 +7,7 @@ export declare abstract class IdsFormFieldControl {
7
7
  readonly successStateChanges: Observable<void>;
8
8
  readonly id: Signal<string>;
9
9
  readonly placeholder: Signal<string>;
10
- readonly ngControl: NgControl | null;
10
+ readonly ngControl: Signal<NgControl | null>;
11
11
  readonly disabled: Signal<boolean>;
12
12
  readonly required: Signal<boolean>;
13
13
  readonly hasErrorState: Signal<boolean>;
@@ -1,9 +1,9 @@
1
1
  import { IdsFormFieldDefaultConfig } from './form-field-defaults';
2
2
  import { IdsFormFieldVariantType } from './types/form-field-variant.type';
3
- import { AfterContentInit, ElementRef } from '@angular/core';
3
+ import { ElementRef } from '@angular/core';
4
4
  import { ComponentBaseWithDefaults, IdsSizeType } from '@i-cell/ids-angular/core';
5
5
  import * as i0 from "@angular/core";
6
- export declare class IdsFormFieldComponent extends ComponentBaseWithDefaults<IdsFormFieldDefaultConfig> implements AfterContentInit {
6
+ export declare class IdsFormFieldComponent extends ComponentBaseWithDefaults<IdsFormFieldDefaultConfig> {
7
7
  protected get _hostName(): string;
8
8
  private readonly _changeDetectorRef;
9
9
  private readonly _parentFieldset;
@@ -16,24 +16,23 @@ export declare class IdsFormFieldComponent extends ComponentBaseWithDefaults<Ids
16
16
  private _actions;
17
17
  private _prefixes;
18
18
  private _suffixes;
19
- hasActions: import("@angular/core").Signal<boolean>;
20
- hasLeadingIcon: import("@angular/core").Signal<boolean>;
21
- hasPrefix: import("@angular/core").Signal<boolean>;
22
- hasSuffix: import("@angular/core").Signal<boolean>;
23
- hasTrailingIcon: import("@angular/core").Signal<boolean>;
24
- inputId: import("@angular/core").Signal<string | undefined>;
19
+ protected _hasActions: import("@angular/core").Signal<boolean>;
20
+ protected _hasLeadingIcon: import("@angular/core").Signal<boolean>;
21
+ protected _hasPrefix: import("@angular/core").Signal<boolean>;
22
+ protected _hasSuffix: import("@angular/core").Signal<boolean>;
23
+ protected _hasTrailingIcon: import("@angular/core").Signal<boolean>;
24
+ protected _inputId: import("@angular/core").Signal<string>;
25
25
  size: import("@angular/core").InputSignal<IdsSizeType>;
26
26
  variant: import("@angular/core").InputSignal<IdsFormFieldVariantType>;
27
27
  parentOrSelfSize: import("@angular/core").Signal<IdsSizeType>;
28
28
  parentOrSelfVariant: import("@angular/core").Signal<IdsFormFieldVariantType>;
29
- control: import("@angular/core").Signal<import("@angular/forms").NgControl | null | undefined>;
30
- disabled: import("@angular/core").Signal<boolean>;
29
+ controlDir: import("@angular/core").Signal<import("@angular/forms").NgControl | null>;
31
30
  private _hasErrorState;
31
+ disabled: import("@angular/core").Signal<boolean>;
32
32
  private _hasSuccessState;
33
33
  protected _hostClasses: import("@angular/core").Signal<string>;
34
- displayedMessages: import("@angular/core").Signal<"error" | "success" | "hint" | undefined>;
35
- ngAfterContentInit(): void;
36
- get hasRequiredValidator(): boolean;
34
+ protected _displayedMessages: import("@angular/core").Signal<"error" | "success" | "hint" | undefined>;
35
+ hasRequiredValidator: import("@angular/core").Signal<boolean | undefined>;
37
36
  getConnectedOverlayOrigin(): ElementRef;
38
37
  containerClick(event: MouseEvent): void;
39
38
  static ɵfac: i0.ɵɵFactoryDeclaration<IdsFormFieldComponent, never>;
@@ -3,12 +3,12 @@ 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 { DoCheck, OnInit } from '@angular/core';
7
- import { NgControl } from '@angular/forms';
6
+ import { AfterViewInit, OnInit } from '@angular/core';
7
+ import { ControlEvent, NgControl } from '@angular/forms';
8
8
  import { ComponentBaseWithDefaults } from '@i-cell/ids-angular/core';
9
9
  import { Subject } from 'rxjs';
10
10
  import * as i0 from "@angular/core";
11
- export declare class IdsInputDirective extends ComponentBaseWithDefaults<IdsInputDefaultConfig> implements IdsFormFieldControl, OnInit, DoCheck {
11
+ export declare class IdsInputDirective extends ComponentBaseWithDefaults<IdsInputDefaultConfig> implements IdsFormFieldControl, OnInit, AfterViewInit {
12
12
  protected get _hostName(): string;
13
13
  private readonly _elementRef;
14
14
  private readonly _parentFormGroup;
@@ -16,7 +16,7 @@ export declare class IdsInputDirective extends ComponentBaseWithDefaults<IdsInpu
16
16
  protected readonly _defaultConfig: Required<IdsInputDefaultConfig>;
17
17
  readonly errorStateChanges: Subject<void>;
18
18
  readonly successStateChanges: Subject<void>;
19
- readonly ngControl: NgControl;
19
+ readonly ngControl: import("@angular/core").WritableSignal<NgControl>;
20
20
  private _focused;
21
21
  private _errorStateTracker?;
22
22
  private _successStateTracker?;
@@ -26,12 +26,17 @@ export declare class IdsInputDirective extends ComponentBaseWithDefaults<IdsInpu
26
26
  type: import("@angular/core").InputSignal<IdsInputType>;
27
27
  required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
28
28
  readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
29
- disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
30
- private _controlDisabled;
31
- isDisabled: import("@angular/core").Signal<boolean>;
32
29
  canHandleSuccessState: import("@angular/core").InputSignal<boolean>;
33
30
  errorStateMatcher: import("@angular/core").InputSignal<AbstractErrorStateMatcher>;
34
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;
35
40
  protected _hostClasses: import("@angular/core").Signal<string>;
36
41
  hasErrorState: import("@angular/core").WritableSignal<boolean>;
37
42
  hasSuccessState: import("@angular/core").WritableSignal<boolean>;
@@ -39,17 +44,17 @@ export declare class IdsInputDirective extends ComponentBaseWithDefaults<IdsInpu
39
44
  private _canHandleSuccessStateEffect;
40
45
  setDescribedByIds(ids: string[]): void;
41
46
  ngOnInit(): void;
47
+ ngAfterViewInit(): void;
42
48
  protected _initErrorStateTracker(): void;
43
49
  protected _setSuccessStateTracker(canHandleSuccessState: boolean): void;
44
- ngDoCheck(): void;
45
50
  private _validateType;
46
51
  focus(options?: FocusOptions): void;
47
52
  private _focusChanged;
48
- updateErrorAndSuccessState(): void;
53
+ updateControlState(event: ControlEvent): void;
49
54
  /**
50
55
  * Should be an arrow function in order to handle `this` outside of this class
51
56
  */
52
57
  onContainerClick: () => void;
53
58
  static ɵfac: i0.ɵɵFactoryDeclaration<IdsInputDirective, never>;
54
- 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; }; "disabled": { "alias": "disabled"; "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; }; }, {}, never, never, true, 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>;
55
60
  }
@@ -6,6 +6,7 @@ export interface IdsIconDefaultConfig {
6
6
  sizeCollection?: IdsSizeCollectionType;
7
7
  variant?: IdsIconVariantType;
8
8
  iconAssetsPath: string;
9
+ fontNameMappings: Record<string, string>;
9
10
  }
10
11
  export declare const IDS_ICON_DEFAULT_CONFIG: InjectionToken<IdsIconDefaultConfig>;
11
12
  export declare function IDS_ICON_DEFAULT_CONFIG_FACTORY(): Required<IdsIconDefaultConfig>;
@@ -18,6 +18,7 @@ export declare class IdsIconComponent extends ComponentBaseWithDefaults<IdsIconD
18
18
  svgIconName: import("@angular/core").InputSignalWithTransform<string | null, string>;
19
19
  ariaHidden: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
20
20
  protected _svgIcon: SVGElement | null;
21
+ protected _safeFontIcon: import("@angular/core").Signal<string | null>;
21
22
  protected _iconSourceType: import("@angular/core").Signal<"svg" | "font">;
22
23
  private _parentOrSelfVariant;
23
24
  protected _hostClasses: import("@angular/core").Signal<string>;
@@ -12,11 +12,11 @@ export declare class IdsIconButtonComponent extends ComponentBaseWithDefaults<Id
12
12
  size: import("@angular/core").InputSignal<IdsSizeType>;
13
13
  variant: import("@angular/core").InputSignal<IdsIconButtonVariantType>;
14
14
  disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
15
- icons: import("@angular/core").Signal<readonly IdsIconComponent[]>;
15
+ protected _icons: import("@angular/core").Signal<readonly IdsIconComponent[]>;
16
16
  private _parentOrSelfAppearance;
17
17
  private _parentOrSelfVariant;
18
18
  private _parentOrSelfDisabled;
19
19
  protected _hostClasses: import("@angular/core").Signal<string>;
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<IdsIconButtonComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<IdsIconButtonComponent, "button[idsIconButton]", never, { "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, ["icons"], ["ids-icon"], true, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<IdsIconButtonComponent, "button[idsIconButton]", never, { "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, ["_icons"], ["ids-icon"], true, never>;
22
22
  }
@@ -15,13 +15,13 @@ export declare class IdsMenuItemComponent extends ComponentBaseWithDefaults<IdsM
15
15
  size: import("@angular/core").InputSignal<IdsSizeType>;
16
16
  variant: import("@angular/core").InputSignal<IdsMenuItemVariantType>;
17
17
  disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
18
- iconLeading: import("@angular/core").Signal<readonly IdsIconComponent[]>;
19
- iconTrailing: import("@angular/core").Signal<readonly IdsIconComponent[]>;
18
+ protected _iconLeading: import("@angular/core").Signal<readonly IdsIconComponent[]>;
19
+ protected _iconTrailing: import("@angular/core").Signal<readonly IdsIconComponent[]>;
20
20
  protected _hostClasses: import("@angular/core").Signal<string>;
21
- get buttonType(): string | null;
21
+ private get _buttonType();
22
22
  constructor();
23
23
  private _disableLink;
24
24
  private _enableLink;
25
25
  static ɵfac: i0.ɵɵFactoryDeclaration<IdsMenuItemComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<IdsMenuItemComponent, "button[idsMenuItem],a[idsMenuItem]", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, ["iconLeading", "iconTrailing"], ["ids-icon[icon-leading]", "ids-icon[icon-trailing]"], true, [{ directive: typeof i1.CdkMenuItem; inputs: {}; outputs: {}; }]>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<IdsMenuItemComponent, "button[idsMenuItem],a[idsMenuItem]", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, ["_iconLeading", "_iconTrailing"], ["ids-icon[icon-leading]", "ids-icon[icon-trailing]"], true, [{ directive: typeof i1.CdkMenuItem; inputs: {}; outputs: {}; }]>;
27
27
  }
@@ -23,7 +23,7 @@ export declare class IdsNotificationComponent extends ComponentBaseWithDefaults<
23
23
  disabled: import("@angular/core").WritableSignal<boolean>;
24
24
  protected _actionButtons: import("@angular/core").Signal<readonly IdsNotificationActionButtonDirective[]>;
25
25
  closed: import("@angular/core").OutputEmitterRef<void>;
26
- role: import("@angular/core").Signal<"alert" | "status">;
26
+ private _role;
27
27
  protected _hostClasses: import("@angular/core").Signal<string>;
28
28
  protected _closeLabelButtonClass: import("@angular/core").Signal<"" | "ids-notification__label-button">;
29
29
  embeddedButtonVariant: import("@angular/core").Signal<IdsIconButtonVariantType>;