@ni/spright-components
Version:
NI Spright Components
33 lines • 1.17 kB
JavaScript
import { __decorate } from "tslib";
import { observable } from '@ni/fast-element';
import { applyMixins, DesignSystem, FoundationElement, StartEnd } from '@ni/fast-foundation';
import { styles } from './styles';
import { template } from './template';
/**
* A Spright component for displaying a chat message
*/
export class ChatMessageInbound extends FoundationElement {
constructor() {
super(...arguments);
/** @internal */
this.footerActionsIsEmpty = true;
}
slottedFooterActionsElementsChanged(_prev, next) {
this.footerActionsIsEmpty = !next?.length;
}
}
__decorate([
observable
], ChatMessageInbound.prototype, "footerActionsIsEmpty", void 0);
__decorate([
observable
], ChatMessageInbound.prototype, "slottedFooterActionsElements", void 0);
applyMixins(ChatMessageInbound, StartEnd);
const sprightChatMessageInbound = ChatMessageInbound.compose({
baseName: 'chat-message-inbound',
template,
styles
});
DesignSystem.getOrCreate().withPrefix('spright').register(sprightChatMessageInbound());
export const chatMessageInboundTag = 'spright-chat-message-inbound';
//# sourceMappingURL=index.js.map