Skip to content

Commit f1203f4

Browse files
authored
remove: Removed deprecated properties for tooltip and chat components (#2104)
1 parent 3980e85 commit f1203f4

7 files changed

Lines changed: 40 additions & 43 deletions

File tree

CHANGELOG.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,29 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

77
## [Unreleased]
8-
### Breaking Changes
9-
- #### Themes
10-
- Changed global prefixes for CSS custom properties for component themes to be better aligned with other Ignite UI component frameworks.
8+
### Added
9+
- #### Chat
10+
- **adoptRootStyles** can now be toggled on/off at runtime. [#2093](https://github.com/IgniteUI/igniteui-webcomponents/pull/2093)
11+
12+
### Changed
13+
- #### Library
14+
- Minimum Node version required is now >= 22.
15+
- #### Themes - **Breaking change**
16+
- Changed global prefixes for CSS custom properties for component themes to align with other Ignite UI component libraries.
17+
18+
### Fixed
19+
- #### Carousel
20+
- Context instantiation in Blazor. [#2033](https://github.com/IgniteUI/igniteui-webcomponents/pull/2033)
21+
- #### Combo
22+
- Correct cursor style over non input parts. [#2085](https://github.com/IgniteUI/igniteui-webcomponents/pull/2085)
23+
- #### Textarea
24+
- Correct cursor style over non input parts. [#2085](https://github.com/IgniteUI/igniteui-webcomponents/pull/2085)
25+
26+
### Removed
27+
- #### Chat
28+
- Removed the **typingIndicator** template renderer. Users can use the **typing-indicator** slot instead.
29+
- #### Tooltip
30+
- Removed the **disableArrow** deprecated property.
1131

1232
## [6.5.1] - 2026-02-04
1333
### Fixed

scripts/_package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"url": "https://github.com/IgniteUI/igniteui-webcomponents/issues"
2727
},
2828
"engines": {
29-
"node": ">=20"
29+
"node": ">=22"
3030
},
3131
"keywords": [
3232
"webcomponents",

src/components/chat/chat.spec.ts

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -567,16 +567,21 @@ describe('Chat', () => {
567567
});
568568

569569
it('should render custom typingIndicator', async () => {
570+
const indicator = document.createElement('span');
571+
indicator.slot = 'typing-indicator';
572+
indicator.innerText = 'loading...';
573+
chat.appendChild(indicator);
574+
570575
chat.messages = [messages[0]];
571-
chat.options = {
572-
isTyping: true,
573-
renderers: {
574-
typingIndicator: () => html`<span>loading...</span>`,
575-
},
576-
};
576+
chat.options = { isTyping: true };
577577
await elementUpdated(chat);
578578

579-
expect(getChatDOM(chat).typingIndicator.innerText).to.equal('loading...');
579+
const typingIndicator = getChatDOM(chat).typingIndicator;
580+
const assignedElements = typingIndicator
581+
?.querySelector('slot')
582+
?.assignedElements();
583+
584+
expect(first(assignedElements!).textContent).to.equal('loading...');
580585
});
581586

582587
it('should render text area templates', async () => {

src/components/chat/chat.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import type {
3232
} from './types.js';
3333

3434
type DefaultChatRenderers = {
35-
typingIndicator: ChatTemplateRenderer<ChatRenderContext>;
3635
suggestionPrefix: ChatTemplateRenderer<ChatRenderContext>;
3736
};
3837

@@ -212,7 +211,6 @@ export default class IgcChatComponent extends EventEmitterMixin<
212211
);
213212

214213
private readonly _defaults = Object.freeze<DefaultChatRenderers>({
215-
typingIndicator: () => this._renderLoadingTemplate(),
216214
suggestionPrefix: () => this._renderSuggestionPrefix(),
217215
});
218216

@@ -380,8 +378,6 @@ export default class IgcChatComponent extends EventEmitterMixin<
380378
}
381379

382380
private _renderMessages() {
383-
const ctx = { instance: this };
384-
385381
return html`
386382
<div part="message-list" tabindex="0">
387383
${repeat(
@@ -416,7 +412,7 @@ export default class IgcChatComponent extends EventEmitterMixin<
416412
? html`
417413
<div part="typing-indicator">
418414
<slot name="typing-indicator"
419-
>${this._getRenderer('typingIndicator')(ctx)}</slot
415+
>${this._renderLoadingTemplate()}</slot
420416
>
421417
</div>
422418
`

src/components/chat/types.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,6 @@ export interface ChatRenderers {
230230
* Custom renderer for the header of a message, including sender and timestamp.
231231
*/
232232
messageHeader?: ChatTemplateRenderer<ChatMessageRenderContext>;
233-
/**
234-
* Custom renderer for the "is typing" indicator.
235-
*
236-
* @deprecated since 6.4.0. Use the `typing-indicator` slot.
237-
*/
238-
typingIndicator?: ChatTemplateRenderer<ChatRenderContext>;
239233
/**
240234
* Custom renderer for the message send button.
241235
*/

src/components/tooltip/tooltip.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ describe('Tooltip', () => {
7575
it('is correctly initialized with its default component state', () => {
7676
expect(tooltip.dir).to.be.empty;
7777
expect(tooltip.open).to.be.false;
78-
expect(tooltip.disableArrow).to.be.true;
7978
expect(tooltip.withArrow).to.be.false;
8079
expect(tooltip.offset).to.equal(6);
8180
expect(tooltip.placement).to.equal('bottom');

src/components/tooltip/tooltip.ts

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ export default class IgcTooltipComponent extends EventEmitterMixin<
8585

8686
private readonly _containerRef = createRef<HTMLElement>();
8787
private readonly _player = addAnimationController(this, this._containerRef);
88-
private readonly _slots = addSlotController(this, { slots: setSlots() });
88+
private readonly _slots = addSlotController(this, {
89+
slots: setSlots('close-button'),
90+
});
8991

9092
private readonly _showAnimation = scaleInCenter({
9193
duration: 150,
@@ -146,25 +148,6 @@ export default class IgcTooltipComponent extends EventEmitterMixin<
146148
return this._controller.open;
147149
}
148150

149-
/**
150-
* Whether to disable the rendering of the arrow indicator for the tooltip.
151-
*
152-
* @deprecated since 6.1.0. Use `with-arrow` to control the behavior of the tooltip arrow.
153-
* @attr disable-arrow
154-
* @default false
155-
*/
156-
@property({ type: Boolean, attribute: 'disable-arrow' })
157-
public set disableArrow(value: boolean) {
158-
this.withArrow = !value;
159-
}
160-
161-
/**
162-
* @deprecated since 6.1.0. Use `with-arrow` to control the behavior of the tooltip arrow.
163-
*/
164-
public get disableArrow(): boolean {
165-
return !this.withArrow;
166-
}
167-
168151
/**
169152
* Whether to render an arrow indicator for the tooltip.
170153
*

0 commit comments

Comments
 (0)