@dorydaniel/ai-banking-assistant-lib 0.0.1 → 0.0.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.
|
@@ -1,19 +1,24 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export class AiBankingAssistantLibComponent {
|
|
4
|
+
username = '';
|
|
5
|
+
conversation = [
|
|
6
|
+
{
|
|
7
|
+
from: 'bot',
|
|
8
|
+
text: 'Hello! How can I assist you with your banking needs today?',
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
from: 'user',
|
|
12
|
+
text: 'Hello! Please help?',
|
|
13
|
+
},
|
|
14
|
+
];
|
|
4
15
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AiBankingAssistantLibComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
6
|
-
<p>
|
|
7
|
-
ai-banking-assistant-lib works!
|
|
8
|
-
</p>
|
|
9
|
-
`, isInline: true, styles: [""] });
|
|
16
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: AiBankingAssistantLibComponent, isStandalone: true, selector: "lib-ai-banking-assistant-lib", inputs: { username: "username" }, ngImport: i0, template: "<div\n class=\"main-container text-white d-flex flex-column justify-content-between p-4\"\n>\n <h1 class=\"m-0\">Welcome {{ username }}!</h1>\n\n <div>\n <div class=\"conversation-view d-flex flex-column justify-content-end\">\n @for (message of conversation; track $index) {\n <div\n class=\"p-3 mb-3 {{\n message.from === 'user' ? 'align-self-end' : 'align-self-start'\n }}\"\n >\n {{ message.text }}\n </div>\n }\n </div>\n <textarea\n class=\"rounded-4 w-100 p-3\"\n placeholder=\"Tell me what you need...\"\n ></textarea>\n </div>\n</div>\n", styles: [".main-container{min-height:400px;height:100%;background:linear-gradient(180deg,#6a2bd6,#2e0458)}.main-container textarea{background-color:#290050;color:#fff;border:none}.main-container textarea::placeholder{color:#d3d3d3}.main-container textarea:focus-visible{outline:none}\n"] });
|
|
10
17
|
}
|
|
11
18
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AiBankingAssistantLibComponent, decorators: [{
|
|
12
19
|
type: Component,
|
|
13
|
-
args: [{ selector: 'lib-ai-banking-assistant-lib', standalone: true, imports: [], template:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}] });
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWktYmFua2luZy1hc3Npc3RhbnQtbGliLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2FpLWJhbmtpbmctYXNzaXN0YW50LWxpYi9zcmMvbGliL2FpLWJhbmtpbmctYXNzaXN0YW50LWxpYi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFhMUMsTUFBTSxPQUFPLDhCQUE4Qjt3R0FBOUIsOEJBQThCOzRGQUE5Qiw4QkFBOEIsd0ZBUC9COzs7O0dBSVQ7OzRGQUdVLDhCQUE4QjtrQkFYMUMsU0FBUzsrQkFDRSw4QkFBOEIsY0FDNUIsSUFBSSxXQUNQLEVBQUUsWUFDRDs7OztHQUlUIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ2xpYi1haS1iYW5raW5nLWFzc2lzdGFudC1saWInLFxuICBzdGFuZGFsb25lOiB0cnVlLFxuICBpbXBvcnRzOiBbXSxcbiAgdGVtcGxhdGU6IGBcbiAgICA8cD5cbiAgICAgIGFpLWJhbmtpbmctYXNzaXN0YW50LWxpYiB3b3JrcyFcbiAgICA8L3A+XG4gIGAsXG4gIHN0eWxlczogYGBcbn0pXG5leHBvcnQgY2xhc3MgQWlCYW5raW5nQXNzaXN0YW50TGliQ29tcG9uZW50IHtcblxufVxuIl19
|
|
20
|
+
args: [{ selector: 'lib-ai-banking-assistant-lib', standalone: true, imports: [], template: "<div\n class=\"main-container text-white d-flex flex-column justify-content-between p-4\"\n>\n <h1 class=\"m-0\">Welcome {{ username }}!</h1>\n\n <div>\n <div class=\"conversation-view d-flex flex-column justify-content-end\">\n @for (message of conversation; track $index) {\n <div\n class=\"p-3 mb-3 {{\n message.from === 'user' ? 'align-self-end' : 'align-self-start'\n }}\"\n >\n {{ message.text }}\n </div>\n }\n </div>\n <textarea\n class=\"rounded-4 w-100 p-3\"\n placeholder=\"Tell me what you need...\"\n ></textarea>\n </div>\n</div>\n", styles: [".main-container{min-height:400px;height:100%;background:linear-gradient(180deg,#6a2bd6,#2e0458)}.main-container textarea{background-color:#290050;color:#fff;border:none}.main-container textarea::placeholder{color:#d3d3d3}.main-container textarea:focus-visible{outline:none}\n"] }]
|
|
21
|
+
}], propDecorators: { username: [{
|
|
22
|
+
type: Input
|
|
23
|
+
}] } });
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWktYmFua2luZy1hc3Npc3RhbnQtbGliLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2FpLWJhbmtpbmctYXNzaXN0YW50LWxpYi9zcmMvbGliL2FpLWJhbmtpbmctYXNzaXN0YW50LWxpYi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi9wcm9qZWN0c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wiXG4gICAgPjwvdGV4dGFyZWE+XG4gIDwvZGl2PlxuPC9kaXY+XG4iXX0=
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Component } from '@angular/core';
|
|
2
|
+
import { Injectable, Component, Input } from '@angular/core';
|
|
3
3
|
|
|
4
4
|
class AiBankingAssistantLibService {
|
|
5
5
|
constructor() { }
|
|
@@ -14,21 +14,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
14
14
|
}], ctorParameters: () => [] });
|
|
15
15
|
|
|
16
16
|
class AiBankingAssistantLibComponent {
|
|
17
|
+
username = '';
|
|
18
|
+
conversation = [
|
|
19
|
+
{
|
|
20
|
+
from: 'bot',
|
|
21
|
+
text: 'Hello! How can I assist you with your banking needs today?',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
from: 'user',
|
|
25
|
+
text: 'Hello! Please help?',
|
|
26
|
+
},
|
|
27
|
+
];
|
|
17
28
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AiBankingAssistantLibComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
19
|
-
<p>
|
|
20
|
-
ai-banking-assistant-lib works!
|
|
21
|
-
</p>
|
|
22
|
-
`, isInline: true, styles: [""] });
|
|
29
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: AiBankingAssistantLibComponent, isStandalone: true, selector: "lib-ai-banking-assistant-lib", inputs: { username: "username" }, ngImport: i0, template: "<div\n class=\"main-container text-white d-flex flex-column justify-content-between p-4\"\n>\n <h1 class=\"m-0\">Welcome {{ username }}!</h1>\n\n <div>\n <div class=\"conversation-view d-flex flex-column justify-content-end\">\n @for (message of conversation; track $index) {\n <div\n class=\"p-3 mb-3 {{\n message.from === 'user' ? 'align-self-end' : 'align-self-start'\n }}\"\n >\n {{ message.text }}\n </div>\n }\n </div>\n <textarea\n class=\"rounded-4 w-100 p-3\"\n placeholder=\"Tell me what you need...\"\n ></textarea>\n </div>\n</div>\n", styles: [".main-container{min-height:400px;height:100%;background:linear-gradient(180deg,#6a2bd6,#2e0458)}.main-container textarea{background-color:#290050;color:#fff;border:none}.main-container textarea::placeholder{color:#d3d3d3}.main-container textarea:focus-visible{outline:none}\n"] });
|
|
23
30
|
}
|
|
24
31
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AiBankingAssistantLibComponent, decorators: [{
|
|
25
32
|
type: Component,
|
|
26
|
-
args: [{ selector: 'lib-ai-banking-assistant-lib', standalone: true, imports: [], template:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
` }]
|
|
31
|
-
}] });
|
|
33
|
+
args: [{ selector: 'lib-ai-banking-assistant-lib', standalone: true, imports: [], template: "<div\n class=\"main-container text-white d-flex flex-column justify-content-between p-4\"\n>\n <h1 class=\"m-0\">Welcome {{ username }}!</h1>\n\n <div>\n <div class=\"conversation-view d-flex flex-column justify-content-end\">\n @for (message of conversation; track $index) {\n <div\n class=\"p-3 mb-3 {{\n message.from === 'user' ? 'align-self-end' : 'align-self-start'\n }}\"\n >\n {{ message.text }}\n </div>\n }\n </div>\n <textarea\n class=\"rounded-4 w-100 p-3\"\n placeholder=\"Tell me what you need...\"\n ></textarea>\n </div>\n</div>\n", styles: [".main-container{min-height:400px;height:100%;background:linear-gradient(180deg,#6a2bd6,#2e0458)}.main-container textarea{background-color:#290050;color:#fff;border:none}.main-container textarea::placeholder{color:#d3d3d3}.main-container textarea:focus-visible{outline:none}\n"] }]
|
|
34
|
+
}], propDecorators: { username: [{
|
|
35
|
+
type: Input
|
|
36
|
+
}] } });
|
|
32
37
|
|
|
33
38
|
/*
|
|
34
39
|
* Public API Surface of ai-banking-assistant-lib
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dorydaniel-ai-banking-assistant-lib.mjs","sources":["../../../projects/ai-banking-assistant-lib/src/lib/ai-banking-assistant-lib.service.ts","../../../projects/ai-banking-assistant-lib/src/lib/ai-banking-assistant-lib.component.ts","../../../projects/ai-banking-assistant-lib/src/public-api.ts","../../../projects/ai-banking-assistant-lib/src/dorydaniel-ai-banking-assistant-lib.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AiBankingAssistantLibService {\n\n constructor() { }\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'lib-ai-banking-assistant-lib',\n standalone: true,\n imports: [],\n
|
|
1
|
+
{"version":3,"file":"dorydaniel-ai-banking-assistant-lib.mjs","sources":["../../../projects/ai-banking-assistant-lib/src/lib/ai-banking-assistant-lib.service.ts","../../../projects/ai-banking-assistant-lib/src/lib/ai-banking-assistant-lib.component.ts","../../../projects/ai-banking-assistant-lib/src/lib/ai-banking-assistant-lib.component.html","../../../projects/ai-banking-assistant-lib/src/public-api.ts","../../../projects/ai-banking-assistant-lib/src/dorydaniel-ai-banking-assistant-lib.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AiBankingAssistantLibService {\n\n constructor() { }\n}\n","import { Component, Input } from '@angular/core';\n\n@Component({\n selector: 'lib-ai-banking-assistant-lib',\n standalone: true,\n imports: [],\n templateUrl: './ai-banking-assistant-lib.component.html',\n styleUrls: ['../styles.scss'],\n})\nexport class AiBankingAssistantLibComponent {\n @Input() username: string = '';\n conversation = [\n {\n from: 'bot',\n text: 'Hello! How can I assist you with your banking needs today?',\n },\n {\n from: 'user',\n text: 'Hello! Please help?',\n },\n ];\n}\n","<div\n class=\"main-container text-white d-flex flex-column justify-content-between p-4\"\n>\n <h1 class=\"m-0\">Welcome {{ username }}!</h1>\n\n <div>\n <div class=\"conversation-view d-flex flex-column justify-content-end\">\n @for (message of conversation; track $index) {\n <div\n class=\"p-3 mb-3 {{\n message.from === 'user' ? 'align-self-end' : 'align-self-start'\n }}\"\n >\n {{ message.text }}\n </div>\n }\n </div>\n <textarea\n class=\"rounded-4 w-100 p-3\"\n placeholder=\"Tell me what you need...\"\n ></textarea>\n </div>\n</div>\n","/*\n * Public API Surface of ai-banking-assistant-lib\n */\n\nexport * from './lib/ai-banking-assistant-lib.service';\nexport * from './lib/ai-banking-assistant-lib.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAKa,4BAA4B,CAAA;AAEvC,IAAA,WAAA,GAAA,GAAiB;wGAFN,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA5B,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,4BAA4B,cAF3B,MAAM,EAAA,CAAA,CAAA;;4FAEP,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAHxC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;MCKY,8BAA8B,CAAA;IAChC,QAAQ,GAAW,EAAE,CAAC;AAC/B,IAAA,YAAY,GAAG;AACb,QAAA;AACE,YAAA,IAAI,EAAE,KAAK;AACX,YAAA,IAAI,EAAE,4DAA4D;AACnE,SAAA;AACD,QAAA;AACE,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,IAAI,EAAE,qBAAqB;AAC5B,SAAA;KACF,CAAC;wGAXS,8BAA8B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA9B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,8BAA8B,0HCT3C,koBAuBA,EAAA,MAAA,EAAA,CAAA,qRAAA,CAAA,EAAA,CAAA,CAAA;;4FDda,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAP1C,SAAS;+BACE,8BAA8B,EAAA,UAAA,EAC5B,IAAI,EAAA,OAAA,EACP,EAAE,EAAA,QAAA,EAAA,koBAAA,EAAA,MAAA,EAAA,CAAA,qRAAA,CAAA,EAAA,CAAA;8BAKF,QAAQ,EAAA,CAAA;sBAAhB,KAAK;;;AEVR;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class AiBankingAssistantLibComponent {
|
|
3
|
+
username: string;
|
|
4
|
+
conversation: {
|
|
5
|
+
from: string;
|
|
6
|
+
text: string;
|
|
7
|
+
}[];
|
|
3
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<AiBankingAssistantLibComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AiBankingAssistantLibComponent, "lib-ai-banking-assistant-lib", never, {}, {}, never, never, true, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AiBankingAssistantLibComponent, "lib-ai-banking-assistant-lib", never, { "username": { "alias": "username"; "required": false; }; }, {}, never, never, true, never>;
|
|
5
10
|
}
|