@trixwell/ngx-parl 1.2.6 → 1.2.7

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/index.d.ts ADDED
@@ -0,0 +1,80 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { TranslocoService } from '@ngneat/transloco';
3
+ import { HttpClient } from '@angular/common/http';
4
+
5
+ declare class ChatMessage {
6
+ id: number;
7
+ chat_id: number;
8
+ cr_time: string;
9
+ type: ChatMessageType;
10
+ user: string;
11
+ content: string;
12
+ avatar: string | null;
13
+ file_path: string[] | null;
14
+ checked: boolean | null;
15
+ edit: boolean;
16
+ constructor(data: ChatMessageDTO);
17
+ get dateSimple(): string;
18
+ get timeHHmm(): string;
19
+ }
20
+ interface ChatMessageDTO {
21
+ id: number;
22
+ chat_id: number;
23
+ cr_time: string;
24
+ type: ChatMessageType;
25
+ user: string;
26
+ content: string;
27
+ avatar?: string | null;
28
+ file_path?: string[] | null;
29
+ checked?: boolean | null;
30
+ }
31
+ type ChatMessageType = 'incoming' | 'outgoing';
32
+
33
+ declare class UtilsService {
34
+ protected http: HttpClient;
35
+ constructor(http: HttpClient);
36
+ langToLocale(lang: string): string;
37
+ getLocalISODate(): string;
38
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UtilsService, never>;
39
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<UtilsService>;
40
+ }
41
+
42
+ declare enum FlowTheme {
43
+ PRIMARY = "primary",
44
+ SECONDARY = "secondary"
45
+ }
46
+
47
+ declare class NgxParlComponent {
48
+ private utils;
49
+ private transloco;
50
+ ai_run_in_progress: boolean;
51
+ private lastUpdateKey;
52
+ theme: _angular_core.InputSignal<FlowTheme>;
53
+ header: _angular_core.InputSignal<boolean>;
54
+ language: _angular_core.InputSignal<"uk" | "en">;
55
+ messageList: _angular_core.ModelSignal<ChatMessage[]>;
56
+ messageUpdate: _angular_core.ModelSignal<ChatMessage | undefined>;
57
+ selectedForEdit: _angular_core.ModelSignal<ChatMessage | null>;
58
+ incomingUser: _angular_core.Signal<string>;
59
+ hideHandler: _angular_core.InputSignal<(() => unknown) | null>;
60
+ closeHandler: _angular_core.InputSignal<(() => unknown) | null>;
61
+ constructor(utils: UtilsService, transloco: TranslocoService);
62
+ onCancelEdit(messageId: number | null): this;
63
+ sendMessage(event: string | {
64
+ id: number;
65
+ content: string;
66
+ files?: string[];
67
+ } | {
68
+ content: string;
69
+ files?: string[];
70
+ } | undefined): this;
71
+ onHideClick(): this;
72
+ onCloseClick(): this;
73
+ protected readonly FlowTheme: typeof FlowTheme;
74
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxParlComponent, never>;
75
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgxParlComponent, "ngx-parl", never, { "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "header": { "alias": "header"; "required": false; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "messageList": { "alias": "messageList"; "required": false; "isSignal": true; }; "messageUpdate": { "alias": "messageUpdate"; "required": false; "isSignal": true; }; "selectedForEdit": { "alias": "selectedForEdit"; "required": false; "isSignal": true; }; "hideHandler": { "alias": "hideHandler"; "required": false; "isSignal": true; }; "closeHandler": { "alias": "closeHandler"; "required": false; "isSignal": true; }; }, { "messageList": "messageListChange"; "messageUpdate": "messageUpdateChange"; "selectedForEdit": "selectedForEditChange"; }, never, never, true, never>;
76
+ }
77
+
78
+ declare function provideNgxParl(): _angular_core.EnvironmentProviders[];
79
+
80
+ export { NgxParlComponent, provideNgxParl };
package/package.json CHANGED
@@ -1,19 +1,7 @@
1
1
  {
2
2
  "name": "@trixwell/ngx-parl",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "license": "LGPL-3.0",
5
- "main": "bundles/trixwell-ngx-parl.umd.js",
6
- "module": "fesm2022/trixwell-ngx-parl.mjs",
7
- "typings": "index.d.ts",
8
- "files": [
9
- "bundles/",
10
- "fesm2022/",
11
- "esm2022/",
12
- "lib/",
13
- "assets/",
14
- "package.json",
15
- "README.md"
16
- ],
17
5
  "description": "Highly customizable Angular Material chat component",
18
6
  "keywords": [
19
7
  "angular",
@@ -35,6 +23,8 @@
35
23
  "tslib": "^2.3.0"
36
24
  },
37
25
  "sideEffects": false,
26
+ "module": "fesm2022/trixwell-ngx-parl.mjs",
27
+ "typings": "index.d.ts",
38
28
  "exports": {
39
29
  "./package.json": {
40
30
  "default": "./package.json"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes