@life-cockpit/angular-ui-kit 1.3.0 → 1.4.0
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/package.json
CHANGED
|
@@ -2858,6 +2858,16 @@ declare class HeaderComponent {
|
|
|
2858
2858
|
* Whether to show theme toggle button in header
|
|
2859
2859
|
*/
|
|
2860
2860
|
showThemeButton: boolean;
|
|
2861
|
+
/**
|
|
2862
|
+
* Contextual name displayed in the header (e.g. tenant, organization, project)
|
|
2863
|
+
* @example 'Acme Corp'
|
|
2864
|
+
*/
|
|
2865
|
+
contextName: string;
|
|
2866
|
+
/**
|
|
2867
|
+
* Label displayed above the context name (e.g. 'Tenant', 'Organization', 'Project')
|
|
2868
|
+
* @example 'Tenant'
|
|
2869
|
+
*/
|
|
2870
|
+
contextLabel: string;
|
|
2861
2871
|
/**
|
|
2862
2872
|
* Size of the profile dropdown menu
|
|
2863
2873
|
* @default 'sm'
|
|
@@ -2884,6 +2894,10 @@ declare class HeaderComponent {
|
|
|
2884
2894
|
* Emitted when Profile menu item is clicked
|
|
2885
2895
|
*/
|
|
2886
2896
|
readonly profileClick: EventEmitter<void>;
|
|
2897
|
+
/**
|
|
2898
|
+
* Emitted when the context info area is clicked
|
|
2899
|
+
*/
|
|
2900
|
+
readonly contextClick: EventEmitter<void>;
|
|
2887
2901
|
protected readonly themeService: ThemeService;
|
|
2888
2902
|
/**
|
|
2889
2903
|
* Get menu items for profile dropdown
|
|
@@ -2926,7 +2940,7 @@ declare class HeaderComponent {
|
|
|
2926
2940
|
*/
|
|
2927
2941
|
onMenuItemClick(item: MenuItem): void;
|
|
2928
2942
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HeaderComponent, never>;
|
|
2929
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HeaderComponent, "lc-header", never, { "theme": { "alias": "theme"; "required": false; }; "logo": { "alias": "logo"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "userEmail": { "alias": "userEmail"; "required": false; }; "userName": { "alias": "userName"; "required": false; }; "showHamburger": { "alias": "showHamburger"; "required": false; }; "showThemeButton": { "alias": "showThemeButton"; "required": false; }; "menuSize": { "alias": "menuSize"; "required": false; }; "showProfileMenuItem": { "alias": "showProfileMenuItem"; "required": false; }; }, { "hamburgerClick": "hamburgerClick"; "themeToggleClick": "themeToggleClick"; "logoutClick": "logoutClick"; "profileClick": "profileClick"; }, never, never, true, never>;
|
|
2943
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HeaderComponent, "lc-header", never, { "theme": { "alias": "theme"; "required": false; }; "logo": { "alias": "logo"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "userEmail": { "alias": "userEmail"; "required": false; }; "userName": { "alias": "userName"; "required": false; }; "showHamburger": { "alias": "showHamburger"; "required": false; }; "showThemeButton": { "alias": "showThemeButton"; "required": false; }; "contextName": { "alias": "contextName"; "required": false; }; "contextLabel": { "alias": "contextLabel"; "required": false; }; "menuSize": { "alias": "menuSize"; "required": false; }; "showProfileMenuItem": { "alias": "showProfileMenuItem"; "required": false; }; }, { "hamburgerClick": "hamburgerClick"; "themeToggleClick": "themeToggleClick"; "logoutClick": "logoutClick"; "profileClick": "profileClick"; "contextClick": "contextClick"; }, never, never, true, never>;
|
|
2930
2944
|
}
|
|
2931
2945
|
|
|
2932
2946
|
type PaginationSize = 'sm' | 'md' | 'lg';
|
|
@@ -5202,6 +5216,8 @@ interface ChatMessage {
|
|
|
5202
5216
|
avatar?: string;
|
|
5203
5217
|
name?: string;
|
|
5204
5218
|
streaming?: boolean;
|
|
5219
|
+
/** Arbitrary data passed to a custom messageTemplate. */
|
|
5220
|
+
data?: Record<string, unknown>;
|
|
5205
5221
|
}
|
|
5206
5222
|
interface ChatSendEvent {
|
|
5207
5223
|
content: string;
|
|
@@ -5225,6 +5241,10 @@ declare class ChatComponent implements AfterViewChecked {
|
|
|
5225
5241
|
showTimestamps: _angular_core.InputSignal<boolean>;
|
|
5226
5242
|
/** Emits when user sends a message. */
|
|
5227
5243
|
messageSend: _angular_core.OutputEmitterRef<ChatSendEvent>;
|
|
5244
|
+
/** Custom template for rendering message content. Context: { $implicit: ChatMessage } */
|
|
5245
|
+
messageTemplate?: TemplateRef<{
|
|
5246
|
+
$implicit: ChatMessage;
|
|
5247
|
+
}>;
|
|
5228
5248
|
protected readonly inputValue: _angular_core.WritableSignal<string>;
|
|
5229
5249
|
private shouldScroll;
|
|
5230
5250
|
private scrollContainer;
|
|
@@ -5236,6 +5256,8 @@ declare class ChatComponent implements AfterViewChecked {
|
|
|
5236
5256
|
avatar?: string;
|
|
5237
5257
|
name?: string;
|
|
5238
5258
|
streaming?: boolean;
|
|
5259
|
+
/** Arbitrary data passed to a custom messageTemplate. */
|
|
5260
|
+
data?: Record<string, unknown>;
|
|
5239
5261
|
}[]>;
|
|
5240
5262
|
ngAfterViewChecked(): void;
|
|
5241
5263
|
protected onInput(event: Event): void;
|
|
@@ -5245,7 +5267,7 @@ declare class ChatComponent implements AfterViewChecked {
|
|
|
5245
5267
|
protected trackById(_: number, msg: ChatMessage): string;
|
|
5246
5268
|
private scrollToBottom;
|
|
5247
5269
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChatComponent, never>;
|
|
5248
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChatComponent, "lc-chat", never, { "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "isStreaming": { "alias": "isStreaming"; "required": false; "isSignal": true; }; "showHeader": { "alias": "showHeader"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "showAvatars": { "alias": "showAvatars"; "required": false; "isSignal": true; }; "showTimestamps": { "alias": "showTimestamps"; "required": false; "isSignal": true; }; }, { "messageSend": "messageSend"; },
|
|
5270
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChatComponent, "lc-chat", never, { "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "isStreaming": { "alias": "isStreaming"; "required": false; "isSignal": true; }; "showHeader": { "alias": "showHeader"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "showAvatars": { "alias": "showAvatars"; "required": false; "isSignal": true; }; "showTimestamps": { "alias": "showTimestamps"; "required": false; "isSignal": true; }; }, { "messageSend": "messageSend"; }, ["messageTemplate"], never, true, never>;
|
|
5249
5271
|
}
|
|
5250
5272
|
|
|
5251
5273
|
type DocumentType = 'pdf' | 'markdown' | 'image' | 'text' | 'code' | 'auto';
|