@fundamental-ngx/platform 0.65.0-rc.0 → 0.65.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/fundamental-ngx-platform-button.mjs +17 -11
- package/fesm2022/fundamental-ngx-platform-button.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-icon-tab-bar.mjs +71 -6
- package/fesm2022/fundamental-ngx-platform-icon-tab-bar.mjs.map +1 -1
- package/package.json +4 -4
- package/schematics/ng-add/index.js +1 -1
- package/schematics/package.json +1 -1
- package/types/fundamental-ngx-platform-button.d.ts +6 -2
- package/types/fundamental-ngx-platform-icon-tab-bar.d.ts +14 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, input, booleanAttribute, output, computed, effect, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
2
|
+
import { InjectionToken, input, booleanAttribute, output, linkedSignal, computed, effect, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
3
|
import { warnOnce } from '@fundamental-ngx/cdk/utils';
|
|
4
4
|
import { ButtonComponent as ButtonComponent$1 } from '@fundamental-ngx/core/button';
|
|
5
5
|
import { FD_DEFAULT_ICON_FONT_FAMILY } from '@fundamental-ngx/core/icon';
|
|
@@ -92,12 +92,18 @@ class ButtonComponent {
|
|
|
92
92
|
...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
|
|
93
93
|
/** Event sent when button is clicked */
|
|
94
94
|
this.buttonClicked = output();
|
|
95
|
+
/** @hidden Mutable disabled state for ButtonModel compatibility */
|
|
96
|
+
this.disabledState = linkedSignal(() => this.disabled(), /* @ts-ignore */
|
|
97
|
+
...(ngDevMode ? [{ debugName: "disabledState" }] : /* istanbul ignore next */ []));
|
|
98
|
+
/** @hidden Mutable type state for ButtonModel compatibility */
|
|
99
|
+
this.fdTypeState = linkedSignal(() => this.buttonType() || this.fdType(), /* @ts-ignore */
|
|
100
|
+
...(ngDevMode ? [{ debugName: "fdTypeState" }] : /* istanbul ignore next */ []));
|
|
95
101
|
/** @hidden Computed to determine effective fdType (buttonType overrides fdType if provided) */
|
|
96
|
-
this.
|
|
97
|
-
...(ngDevMode ? [{ debugName: "
|
|
102
|
+
this.effectiveFdType = computed(() => this.fdTypeState(), /* @ts-ignore */
|
|
103
|
+
...(ngDevMode ? [{ debugName: "effectiveFdType" }] : /* istanbul ignore next */ []));
|
|
98
104
|
/** @hidden Computed to determine effective toggled state */
|
|
99
|
-
this.
|
|
100
|
-
...(ngDevMode ? [{ debugName: "
|
|
105
|
+
this.effectiveToggled = computed(() => this.toggled() || this.ariaPressed() || this.ariaSelected(), /* @ts-ignore */
|
|
106
|
+
...(ngDevMode ? [{ debugName: "effectiveToggled" }] : /* istanbul ignore next */ []));
|
|
101
107
|
/**
|
|
102
108
|
* Computed accessible name for the button.
|
|
103
109
|
* Follows ARIA accessible name computation priority:
|
|
@@ -128,14 +134,14 @@ class ButtonComponent {
|
|
|
128
134
|
* Note: Cannot directly set signal inputs. This method exists for interface compatibility.
|
|
129
135
|
*/
|
|
130
136
|
setDisabled(_value) {
|
|
131
|
-
|
|
137
|
+
this.disabledState.set(_value);
|
|
132
138
|
}
|
|
133
139
|
/**
|
|
134
140
|
* Get the current disabled state.
|
|
135
141
|
* Implements ButtonModel interface.
|
|
136
142
|
*/
|
|
137
143
|
isDisabled() {
|
|
138
|
-
return this.
|
|
144
|
+
return this.disabledState();
|
|
139
145
|
}
|
|
140
146
|
/**
|
|
141
147
|
* Programmatically set the button type.
|
|
@@ -143,14 +149,14 @@ class ButtonComponent {
|
|
|
143
149
|
* Note: Cannot directly set signal inputs. This method exists for interface compatibility.
|
|
144
150
|
*/
|
|
145
151
|
setFdType(_value) {
|
|
146
|
-
|
|
152
|
+
this.fdTypeState.set(_value);
|
|
147
153
|
}
|
|
148
154
|
/**
|
|
149
155
|
* Get the current button type.
|
|
150
156
|
* Implements ButtonModel interface.
|
|
151
157
|
*/
|
|
152
158
|
getFdType() {
|
|
153
|
-
return this.
|
|
159
|
+
return this.effectiveFdType();
|
|
154
160
|
}
|
|
155
161
|
/**
|
|
156
162
|
* No-op method for interface compatibility.
|
|
@@ -172,7 +178,7 @@ class ButtonComponent {
|
|
|
172
178
|
provide: FDP_BUTTON,
|
|
173
179
|
useExisting: ButtonComponent
|
|
174
180
|
}
|
|
175
|
-
], ngImport: i0, template: "<button\n #fdButton\n fd-button\n [attr.id]=\"id()\"\n [attr.name]=\"name()\"\n [ariaLabel]=\"accessibleName()\"\n [attr.aria-controls]=\"ariaControlsId()\"\n [attr.aria-expanded]=\"ariaExpanded()\"\n [attr.aria-disabled]=\"ariaDisabled()\"\n [attr.title]=\"!!glyph() && !label() ? title() : null\"\n [attr.value]=\"value()\"\n [glyphPosition]=\"glyphPosition()\"\n [label]=\"label()\"\n [type]=\"type()\"\n [toggled]=\"
|
|
181
|
+
], ngImport: i0, template: "<button\n #fdButton\n fd-button\n [attr.id]=\"id()\"\n [attr.name]=\"name()\"\n [ariaLabel]=\"accessibleName()\"\n [attr.aria-controls]=\"ariaControlsId()\"\n [attr.aria-expanded]=\"ariaExpanded()\"\n [attr.aria-disabled]=\"ariaDisabled()\"\n [attr.title]=\"!!glyph() && !label() ? title() : null\"\n [attr.value]=\"value()\"\n [glyphPosition]=\"glyphPosition()\"\n [label]=\"label()\"\n [type]=\"type()\"\n [toggled]=\"effectiveToggled()\"\n [glyph]=\"glyph()\"\n [glyphFont]=\"glyphFont()\"\n [disabled]=\"disabledState()\"\n [fdType]=\"effectiveFdType()\"\n class=\"fd-ellipsis\"\n [class.is-disabled]=\"ariaDisabled()\"\n [style.width]=\"width()\"\n (click)=\"onBtnClick($event)\"\n></button>\n", styles: [":host{display:inline-block}:host(:focus){outline:none}.fd-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}\n"], dependencies: [{ kind: "component", type: ButtonComponent$1, selector: "button[fd-button], a[fd-button], span[fd-button]", inputs: ["id"], exportAs: ["fd-button"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
176
182
|
}
|
|
177
183
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
178
184
|
type: Component,
|
|
@@ -184,7 +190,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
184
190
|
], imports: [ButtonComponent$1], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
185
191
|
role: 'button',
|
|
186
192
|
'[attr.tabindex]': '-1'
|
|
187
|
-
}, template: "<button\n #fdButton\n fd-button\n [attr.id]=\"id()\"\n [attr.name]=\"name()\"\n [ariaLabel]=\"accessibleName()\"\n [attr.aria-controls]=\"ariaControlsId()\"\n [attr.aria-expanded]=\"ariaExpanded()\"\n [attr.aria-disabled]=\"ariaDisabled()\"\n [attr.title]=\"!!glyph() && !label() ? title() : null\"\n [attr.value]=\"value()\"\n [glyphPosition]=\"glyphPosition()\"\n [label]=\"label()\"\n [type]=\"type()\"\n [toggled]=\"
|
|
193
|
+
}, template: "<button\n #fdButton\n fd-button\n [attr.id]=\"id()\"\n [attr.name]=\"name()\"\n [ariaLabel]=\"accessibleName()\"\n [attr.aria-controls]=\"ariaControlsId()\"\n [attr.aria-expanded]=\"ariaExpanded()\"\n [attr.aria-disabled]=\"ariaDisabled()\"\n [attr.title]=\"!!glyph() && !label() ? title() : null\"\n [attr.value]=\"value()\"\n [glyphPosition]=\"glyphPosition()\"\n [label]=\"label()\"\n [type]=\"type()\"\n [toggled]=\"effectiveToggled()\"\n [glyph]=\"glyph()\"\n [glyphFont]=\"glyphFont()\"\n [disabled]=\"disabledState()\"\n [fdType]=\"effectiveFdType()\"\n class=\"fd-ellipsis\"\n [class.is-disabled]=\"ariaDisabled()\"\n [style.width]=\"width()\"\n (click)=\"onBtnClick($event)\"\n></button>\n", styles: [":host{display:inline-block}:host(:focus){outline:none}.fd-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}\n"] }]
|
|
188
194
|
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], glyphPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "glyphPosition", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], glyph: [{ type: i0.Input, args: [{ isSignal: true, alias: "glyph", required: false }] }], glyphFont: [{ type: i0.Input, args: [{ isSignal: true, alias: "glyphFont", required: false }] }], fdType: [{ type: i0.Input, args: [{ isSignal: true, alias: "fdType", required: false }] }], buttonType: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonType", required: false }] }], toggled: [{ type: i0.Input, args: [{ isSignal: true, alias: "toggled", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], ariaSelected: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaSelected", required: false }] }], ariaDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDisabled", required: false }] }], ariaExpanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaExpanded", required: false }] }], ariaControlsId: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaControlsId", required: false }] }], ariaPressed: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaPressed", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], buttonClicked: [{ type: i0.Output, args: ["buttonClicked"] }] } });
|
|
189
195
|
class DeprecatedButtonAriaSelected {
|
|
190
196
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fundamental-ngx-platform-button.mjs","sources":["../../../../libs/platform/button/tokens.ts","../../../../libs/platform/button/button.component.ts","../../../../libs/platform/button/button.component.html","../../../../libs/platform/button/button.module.ts","../../../../libs/platform/button/fundamental-ngx-platform-button.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport const FDP_BUTTON = new InjectionToken('FdpButtonComponent');\n","import { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, computed, effect, input, output } from '@angular/core';\n\nimport { ModuleDeprecation, warnOnce } from '@fundamental-ngx/cdk/utils';\nimport { ButtonType, ButtonComponent as CoreButtonComponent, GlyphPosition } from '@fundamental-ngx/core/button';\nimport { FD_DEFAULT_ICON_FONT_FAMILY, IconFont } from '@fundamental-ngx/core/icon';\nimport { ButtonModel } from './button.model';\nimport { FDP_BUTTON } from './tokens';\n\nlet platformButtonId = 0;\n\n/**\n * @deprecated\n * Button component is deprecated. Use `fd-button` from `@fundamental-ngx/core` instead.\n */\n@Component({\n selector: 'fdp-button',\n templateUrl: './button.component.html',\n styleUrl: './button.component.scss',\n providers: [\n {\n provide: FDP_BUTTON,\n useExisting: ButtonComponent\n }\n ],\n imports: [CoreButtonComponent],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n role: 'button',\n '[attr.tabindex]': '-1'\n }\n})\nexport class ButtonComponent implements ButtonModel {\n /** Button ID - default value is provided if not set */\n readonly id = input(`fdp-button-${++platformButtonId}`);\n\n /** Name for the element */\n readonly name = input<string>();\n\n /** Width of the element */\n readonly width = input<string>();\n\n /** Disabled status of the element */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n /** Sets the `aria-label` attribute to the element */\n readonly ariaLabel = input<string>();\n\n /** Sets the `aria-labelledby` attribute to the element */\n readonly ariaLabelledBy = input<string>();\n\n /** Sets the `aria-describedby` attribute to the element */\n readonly ariaDescribedBy = input<string>();\n\n /** Position of glyph related to text */\n readonly glyphPosition = input<GlyphPosition>('before');\n\n /** Text rendered inside button component */\n readonly label = input<string>();\n\n /** The icon to include in the button. See the icon page for the list of icons */\n readonly glyph = input<string>();\n\n /** Glyph font family */\n readonly glyphFont = input<IconFont>(FD_DEFAULT_ICON_FONT_FAMILY);\n\n /** The type of the button. Types include:\n * 'standard' | 'positive' | 'negative' | 'attention' | 'half' | 'ghost' | 'transparent' | 'emphasized' | 'menu'.\n * Leave empty for default (Standard button).\n * Default value is set to 'standard'\n */\n readonly fdType = input<ButtonType>('standard');\n\n /**\n * @deprecated\n * Use `fdType` property.\n * The buttonType of the button. Types includes\n * 'standard','positive', 'negative', 'attention', 'ghost',\n * 'transparent', 'emphasized','menu'.\n * Leave empty for default (standard button).\n */\n readonly buttonType = input<ButtonType>();\n\n /** Whether button is in toggled state */\n readonly toggled = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n /** arialabel, tooltip for button, intended to be used when the button only contains an icon */\n readonly title = input<string>();\n\n /** @deprecated use toggled input property instead\n * aria-selected for accessibility to the native HTML button\n */\n readonly ariaSelected = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n /** aria-disabled for accessibility to the native HTML button */\n readonly ariaDisabled = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n /** propagate aria-expanded for accessibility to the native HTML button */\n readonly ariaExpanded = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n /** propagate aria-controls for accessibility to the native HTML button */\n readonly ariaControlsId = input<string>();\n\n /** @deprecated use toggled input property instead\n * propagate aria-pressed for accessibility to the native HTML button\n */\n readonly ariaPressed = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n /** Specifies the type to the native HTML button */\n readonly type = input<string>();\n\n /** Specifies an initial value to the native HTML button */\n readonly value = input<string>();\n\n /** Event sent when button is clicked */\n readonly buttonClicked = output<any>();\n\n /** @hidden Computed to determine effective fdType (buttonType overrides fdType if provided) */\n protected readonly _effectiveFdType = computed(() => this.buttonType() || this.fdType());\n\n /** @hidden Computed to determine effective toggled state */\n protected readonly _effectiveToggled = computed(() => this.toggled() || this.ariaPressed() || this.ariaSelected());\n\n /**\n * Computed accessible name for the button.\n * Follows ARIA accessible name computation priority:\n * 1. aria-label input\n * 2. title input (commonly used for icon-only buttons)\n * 3. label input (visible text)\n * 4. glyph name as fallback (e.g., \"decline\" -> \"decline\")\n * @hidden\n */\n protected readonly accessibleName = computed(\n () => this.ariaLabel() || this.title() || this.label() || this.glyph() || null\n );\n\n /** @hidden */\n constructor() {\n warnOnce(\n \"Platform's ButtonComponent is deprecated and will be removed in the next major release. Consider using Core's ButtonComponent instead.\"\n );\n\n // Warn about deprecated inputs\n effect(() => {\n if (this.ariaSelected()) {\n warnOnce('Property ariaSelected is deprecated. Use `toggled` input property instead.');\n }\n });\n\n effect(() => {\n if (this.ariaPressed()) {\n warnOnce('Property ariaPressed is deprecated. Use `toggled` input property instead.');\n }\n });\n }\n\n /**\n * Programmatically set the disabled state.\n * Implements ButtonModel interface.\n * Note: Cannot directly set signal inputs. This method exists for interface compatibility.\n */\n setDisabled(_value: boolean): void {\n console.warn('setDisabled() cannot modify signal input. Use template binding [disabled]=\"value\" instead.');\n }\n\n /**\n * Get the current disabled state.\n * Implements ButtonModel interface.\n */\n isDisabled(): boolean {\n return this.disabled();\n }\n\n /**\n * Programmatically set the button type.\n * Implements ButtonModel interface.\n * Note: Cannot directly set signal inputs. This method exists for interface compatibility.\n */\n setFdType(_value: ButtonType): void {\n console.warn('setFdType() cannot modify signal input. Use template binding [fdType]=\"value\" instead.');\n }\n\n /**\n * Get the current button type.\n * Implements ButtonModel interface.\n */\n getFdType(): ButtonType {\n return this._effectiveFdType();\n }\n\n /**\n * No-op method for interface compatibility.\n * Implements ButtonModel interface.\n * Signal-based components don't need manual change detection.\n */\n markForCheck(): void {\n // No-op: signals automatically trigger change detection\n }\n\n /**\n * Handles button click\n */\n protected onBtnClick($event: any): void {\n this.buttonClicked.emit($event);\n }\n}\n\nexport class DeprecatedButtonAriaSelected implements ModuleDeprecation {\n /** @hidden */\n message = 'ariaSelected input property is deprecated.';\n\n /** @hidden */\n alternative = {\n name: 'Use [toggled] input property instead',\n link: ['/platform', 'button'],\n fragment: 'state'\n };\n}\n\nexport class DeprecatedButtonAriaPressed implements ModuleDeprecation {\n /** @hidden */\n message = 'ariaPressed input property is deprecated.';\n\n /** @hidden */\n alternative = {\n name: 'Use [toggled] input property instead',\n link: ['/platform', 'button'],\n fragment: 'state'\n };\n}\n","<button\n #fdButton\n fd-button\n [attr.id]=\"id()\"\n [attr.name]=\"name()\"\n [ariaLabel]=\"accessibleName()\"\n [attr.aria-controls]=\"ariaControlsId()\"\n [attr.aria-expanded]=\"ariaExpanded()\"\n [attr.aria-disabled]=\"ariaDisabled()\"\n [attr.title]=\"!!glyph() && !label() ? title() : null\"\n [attr.value]=\"value()\"\n [glyphPosition]=\"glyphPosition()\"\n [label]=\"label()\"\n [type]=\"type()\"\n [toggled]=\"_effectiveToggled()\"\n [glyph]=\"glyph()\"\n [glyphFont]=\"glyphFont()\"\n [disabled]=\"disabled()\"\n [fdType]=\"_effectiveFdType()\"\n class=\"fd-ellipsis\"\n [class.is-disabled]=\"ariaDisabled()\"\n [style.width]=\"width()\"\n (click)=\"onBtnClick($event)\"\n></button>\n","import { NgModule } from '@angular/core';\n\nimport { ContentDensityModule } from '@fundamental-ngx/core/content-density';\nimport { ButtonComponent } from './button.component';\n\n/**\n * @deprecated\n * Use direct imports of components and directives.\n */\n@NgModule({\n imports: [ButtonComponent, ContentDensityModule],\n exports: [ButtonComponent, ContentDensityModule]\n})\nexport class PlatformButtonModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["CoreButt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EAAA,OAAA,EAAA,CAHnB,eAAe,EAAE,oBAAoB,EACpB,oBAAoB,CAAA,EAAA,CAAA,CAAA;;2FAEtC,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,eAAe,EAAE,oBAAoB,CAAC;AAChD,oBAAA,OAAO,EAAE,CAAC,eAAe,EAAE,oBAAoB;AAClD,iBAAA;;;ACZD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"fundamental-ngx-platform-button.mjs","sources":["../../../../libs/platform/button/tokens.ts","../../../../libs/platform/button/button.component.ts","../../../../libs/platform/button/button.component.html","../../../../libs/platform/button/button.module.ts","../../../../libs/platform/button/fundamental-ngx-platform-button.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport const FDP_BUTTON = new InjectionToken('FdpButtonComponent');\n","import { BooleanInput } from '@angular/cdk/coercion';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n input,\n linkedSignal,\n output\n} from '@angular/core';\n\nimport { ModuleDeprecation, warnOnce } from '@fundamental-ngx/cdk/utils';\nimport { ButtonType, ButtonComponent as CoreButtonComponent, GlyphPosition } from '@fundamental-ngx/core/button';\nimport { FD_DEFAULT_ICON_FONT_FAMILY, IconFont } from '@fundamental-ngx/core/icon';\nimport { ButtonModel } from './button.model';\nimport { FDP_BUTTON } from './tokens';\n\nlet platformButtonId = 0;\n\n/**\n * @deprecated\n * Button component is deprecated. Use `fd-button` from `@fundamental-ngx/core` instead.\n */\n@Component({\n selector: 'fdp-button',\n templateUrl: './button.component.html',\n styleUrl: './button.component.scss',\n providers: [\n {\n provide: FDP_BUTTON,\n useExisting: ButtonComponent\n }\n ],\n imports: [CoreButtonComponent],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n role: 'button',\n '[attr.tabindex]': '-1'\n }\n})\nexport class ButtonComponent implements ButtonModel {\n /** Button ID - default value is provided if not set */\n readonly id = input(`fdp-button-${++platformButtonId}`);\n\n /** Name for the element */\n readonly name = input<string>();\n\n /** Width of the element */\n readonly width = input<string>();\n\n /** Disabled status of the element */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n /** Sets the `aria-label` attribute to the element */\n readonly ariaLabel = input<string>();\n\n /** Sets the `aria-labelledby` attribute to the element */\n readonly ariaLabelledBy = input<string>();\n\n /** Sets the `aria-describedby` attribute to the element */\n readonly ariaDescribedBy = input<string>();\n\n /** Position of glyph related to text */\n readonly glyphPosition = input<GlyphPosition>('before');\n\n /** Text rendered inside button component */\n readonly label = input<string>();\n\n /** The icon to include in the button. See the icon page for the list of icons */\n readonly glyph = input<string>();\n\n /** Glyph font family */\n readonly glyphFont = input<IconFont>(FD_DEFAULT_ICON_FONT_FAMILY);\n\n /** The type of the button. Types include:\n * 'standard' | 'positive' | 'negative' | 'attention' | 'half' | 'ghost' | 'transparent' | 'emphasized' | 'menu'.\n * Leave empty for default (Standard button).\n * Default value is set to 'standard'\n */\n readonly fdType = input<ButtonType>('standard');\n\n /**\n * @deprecated\n * Use `fdType` property.\n * The buttonType of the button. Types includes\n * 'standard','positive', 'negative', 'attention', 'ghost',\n * 'transparent', 'emphasized','menu'.\n * Leave empty for default (standard button).\n */\n readonly buttonType = input<ButtonType>();\n\n /** Whether button is in toggled state */\n readonly toggled = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n /** arialabel, tooltip for button, intended to be used when the button only contains an icon */\n readonly title = input<string>();\n\n /** @deprecated use toggled input property instead\n * aria-selected for accessibility to the native HTML button\n */\n readonly ariaSelected = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n /** aria-disabled for accessibility to the native HTML button */\n readonly ariaDisabled = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n /** propagate aria-expanded for accessibility to the native HTML button */\n readonly ariaExpanded = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n /** propagate aria-controls for accessibility to the native HTML button */\n readonly ariaControlsId = input<string>();\n\n /** @deprecated use toggled input property instead\n * propagate aria-pressed for accessibility to the native HTML button\n */\n readonly ariaPressed = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n /** Specifies the type to the native HTML button */\n readonly type = input<string>();\n\n /** Specifies an initial value to the native HTML button */\n readonly value = input<string>();\n\n /** Event sent when button is clicked */\n readonly buttonClicked = output<any>();\n\n /** @hidden Mutable disabled state for ButtonModel compatibility */\n protected readonly disabledState = linkedSignal(() => this.disabled());\n\n /** @hidden Mutable type state for ButtonModel compatibility */\n protected readonly fdTypeState = linkedSignal(() => this.buttonType() || this.fdType());\n\n /** @hidden Computed to determine effective fdType (buttonType overrides fdType if provided) */\n protected readonly effectiveFdType = computed(() => this.fdTypeState());\n\n /** @hidden Computed to determine effective toggled state */\n protected readonly effectiveToggled = computed(() => this.toggled() || this.ariaPressed() || this.ariaSelected());\n\n /**\n * Computed accessible name for the button.\n * Follows ARIA accessible name computation priority:\n * 1. aria-label input\n * 2. title input (commonly used for icon-only buttons)\n * 3. label input (visible text)\n * 4. glyph name as fallback (e.g., \"decline\" -> \"decline\")\n * @hidden\n */\n protected readonly accessibleName = computed(\n () => this.ariaLabel() || this.title() || this.label() || this.glyph() || null\n );\n\n /** @hidden */\n constructor() {\n warnOnce(\n \"Platform's ButtonComponent is deprecated and will be removed in the next major release. Consider using Core's ButtonComponent instead.\"\n );\n\n // Warn about deprecated inputs\n effect(() => {\n if (this.ariaSelected()) {\n warnOnce('Property ariaSelected is deprecated. Use `toggled` input property instead.');\n }\n });\n\n effect(() => {\n if (this.ariaPressed()) {\n warnOnce('Property ariaPressed is deprecated. Use `toggled` input property instead.');\n }\n });\n }\n\n /**\n * Programmatically set the disabled state.\n * Implements ButtonModel interface.\n * Note: Cannot directly set signal inputs. This method exists for interface compatibility.\n */\n setDisabled(_value: boolean): void {\n this.disabledState.set(_value);\n }\n\n /**\n * Get the current disabled state.\n * Implements ButtonModel interface.\n */\n isDisabled(): boolean {\n return this.disabledState();\n }\n\n /**\n * Programmatically set the button type.\n * Implements ButtonModel interface.\n * Note: Cannot directly set signal inputs. This method exists for interface compatibility.\n */\n setFdType(_value: ButtonType): void {\n this.fdTypeState.set(_value);\n }\n\n /**\n * Get the current button type.\n * Implements ButtonModel interface.\n */\n getFdType(): ButtonType {\n return this.effectiveFdType();\n }\n\n /**\n * No-op method for interface compatibility.\n * Implements ButtonModel interface.\n * Signal-based components don't need manual change detection.\n */\n markForCheck(): void {\n // No-op: signals automatically trigger change detection\n }\n\n /**\n * Handles button click\n */\n protected onBtnClick($event: any): void {\n this.buttonClicked.emit($event);\n }\n}\n\nexport class DeprecatedButtonAriaSelected implements ModuleDeprecation {\n /** @hidden */\n message = 'ariaSelected input property is deprecated.';\n\n /** @hidden */\n alternative = {\n name: 'Use [toggled] input property instead',\n link: ['/platform', 'button'],\n fragment: 'state'\n };\n}\n\nexport class DeprecatedButtonAriaPressed implements ModuleDeprecation {\n /** @hidden */\n message = 'ariaPressed input property is deprecated.';\n\n /** @hidden */\n alternative = {\n name: 'Use [toggled] input property instead',\n link: ['/platform', 'button'],\n fragment: 'state'\n };\n}\n","<button\n #fdButton\n fd-button\n [attr.id]=\"id()\"\n [attr.name]=\"name()\"\n [ariaLabel]=\"accessibleName()\"\n [attr.aria-controls]=\"ariaControlsId()\"\n [attr.aria-expanded]=\"ariaExpanded()\"\n [attr.aria-disabled]=\"ariaDisabled()\"\n [attr.title]=\"!!glyph() && !label() ? title() : null\"\n [attr.value]=\"value()\"\n [glyphPosition]=\"glyphPosition()\"\n [label]=\"label()\"\n [type]=\"type()\"\n [toggled]=\"effectiveToggled()\"\n [glyph]=\"glyph()\"\n [glyphFont]=\"glyphFont()\"\n [disabled]=\"disabledState()\"\n [fdType]=\"effectiveFdType()\"\n class=\"fd-ellipsis\"\n [class.is-disabled]=\"ariaDisabled()\"\n [style.width]=\"width()\"\n (click)=\"onBtnClick($event)\"\n></button>\n","import { NgModule } from '@angular/core';\n\nimport { ContentDensityModule } from '@fundamental-ngx/core/content-density';\nimport { ButtonComponent } from './button.component';\n\n/**\n * @deprecated\n * Use direct imports of components and directives.\n */\n@NgModule({\n imports: [ButtonComponent, ContentDensityModule],\n exports: [ButtonComponent, ContentDensityModule]\n})\nexport class PlatformButtonModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["CoreButtonComponent"],"mappings":";;;;;;;MAEa,UAAU,GAAG,IAAI,cAAc,CAAC,oBAAoB;;ACgBjE,IAAI,gBAAgB,GAAG,CAAC;AAExB;;;AAGG;MAkBU,eAAe,CAAA;;AA+GxB,IAAA,WAAA,GAAA;;AA7GS,QAAA,IAAA,CAAA,EAAE,GAAG,KAAK,CAAC,CAAA,WAAA,EAAc,EAAE,gBAAgB,CAAA,CAAE;+EAAC;;AAG9C,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;AAGtB,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;QAGvB,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAGxD,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;AAG3B,QAAA,IAAA,CAAA,cAAc,GAAG,KAAK;sGAAU;;AAGhC,QAAA,IAAA,CAAA,eAAe,GAAG,KAAK;uGAAU;;QAGjC,IAAA,CAAA,aAAa,GAAG,KAAK,CAAgB,QAAQ;0FAAC;;AAG9C,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;AAGvB,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;QAGvB,IAAA,CAAA,SAAS,GAAG,KAAK,CAAW,2BAA2B;sFAAC;AAEjE;;;;AAIG;QACM,IAAA,CAAA,MAAM,GAAG,KAAK,CAAa,UAAU;mFAAC;AAE/C;;;;;;;AAOG;AACM,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;kGAAc;;QAGhC,IAAA,CAAA,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