@logosphere-ui/angular 0.0.1
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/README.md +63 -0
- package/fesm2022/logosphere-ui-angular-src-lib-button.mjs +34 -0
- package/fesm2022/logosphere-ui-angular-src-lib-button.mjs.map +1 -0
- package/fesm2022/logosphere-ui-angular-src-lib-chatbot.mjs +67 -0
- package/fesm2022/logosphere-ui-angular-src-lib-chatbot.mjs.map +1 -0
- package/fesm2022/logosphere-ui-angular-src-lib-checkbox.mjs +55 -0
- package/fesm2022/logosphere-ui-angular-src-lib-checkbox.mjs.map +1 -0
- package/fesm2022/logosphere-ui-angular.mjs +141 -0
- package/fesm2022/logosphere-ui-angular.mjs.map +1 -0
- package/package.json +36 -0
- package/types/logosphere-ui-angular-src-lib-button.d.ts +12 -0
- package/types/logosphere-ui-angular-src-lib-chatbot.d.ts +24 -0
- package/types/logosphere-ui-angular-src-lib-checkbox.d.ts +22 -0
- package/types/logosphere-ui-angular.d.ts +53 -0
package/README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Wrapper
|
|
2
|
+
|
|
3
|
+
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 21.0.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
ng generate component component-name
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
ng generate --help
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Building
|
|
20
|
+
|
|
21
|
+
To build the library, run:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
ng build wrapper
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
|
|
28
|
+
|
|
29
|
+
### Publishing the Library
|
|
30
|
+
|
|
31
|
+
Once the project is built, you can publish your library by following these steps:
|
|
32
|
+
|
|
33
|
+
1. Navigate to the `dist` directory:
|
|
34
|
+
```bash
|
|
35
|
+
cd dist/wrapper
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
2. Run the `npm publish` command to publish your library to the npm registry:
|
|
39
|
+
```bash
|
|
40
|
+
npm publish
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Running unit tests
|
|
44
|
+
|
|
45
|
+
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
ng test
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Running end-to-end tests
|
|
52
|
+
|
|
53
|
+
For end-to-end (e2e) testing, run:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
ng e2e
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
|
60
|
+
|
|
61
|
+
## Additional Resources
|
|
62
|
+
|
|
63
|
+
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
|
|
3
|
+
import '@logosphere-ui/core/button';
|
|
4
|
+
|
|
5
|
+
class LogosphereButton {
|
|
6
|
+
theme = input('primary', ...(ngDevMode ? [{ debugName: "theme" }] : []));
|
|
7
|
+
size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
8
|
+
variant = input('primary', ...(ngDevMode ? [{ debugName: "variant" }] : []));
|
|
9
|
+
iconOnly = input(false, ...(ngDevMode ? [{ debugName: "iconOnly" }] : []));
|
|
10
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: LogosphereButton, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.7", type: LogosphereButton, isStandalone: true, selector: "lgs-button", inputs: { theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, iconOnly: { classPropertyName: "iconOnly", publicName: "iconOnly", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
12
|
+
<logosphere-button [theme]="theme()" [size]="size()" [variant]="variant()" [iconOnly]="iconOnly()">
|
|
13
|
+
<ng-content></ng-content>
|
|
14
|
+
</logosphere-button>`, isInline: true });
|
|
15
|
+
}
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: LogosphereButton, decorators: [{
|
|
17
|
+
type: Component,
|
|
18
|
+
args: [{
|
|
19
|
+
selector: 'lgs-button',
|
|
20
|
+
imports: [],
|
|
21
|
+
template: `
|
|
22
|
+
<logosphere-button [theme]="theme()" [size]="size()" [variant]="variant()" [iconOnly]="iconOnly()">
|
|
23
|
+
<ng-content></ng-content>
|
|
24
|
+
</logosphere-button>`,
|
|
25
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
26
|
+
}]
|
|
27
|
+
}], propDecorators: { theme: [{ type: i0.Input, args: [{ isSignal: true, alias: "theme", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], iconOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconOnly", required: false }] }] } });
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Generated bundle index. Do not edit.
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
export { LogosphereButton };
|
|
34
|
+
//# sourceMappingURL=logosphere-ui-angular-src-lib-button.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logosphere-ui-angular-src-lib-button.mjs","sources":["../../projects/wrapper/src/lib/button/button.ts","../../projects/wrapper/src/lib/button/logosphere-ui-angular-src-lib-button.ts"],"sourcesContent":["import {Component, CUSTOM_ELEMENTS_SCHEMA, input} from '@angular/core';\nimport '@logosphere-ui/core/button';\n\n@Component({\n selector: 'lgs-button',\n imports: [],\n template: `\n <logosphere-button [theme]=\"theme()\" [size]=\"size()\" [variant]=\"variant()\" [iconOnly]=\"iconOnly()\">\n <ng-content></ng-content>\n </logosphere-button>`,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class LogosphereButton {\n theme = input<string>('primary');\n size = input<string>('md');\n variant = input<string>('primary');\n iconOnly = input<boolean>(false);\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAYa,gBAAgB,CAAA;AAC3B,IAAA,KAAK,GAAG,KAAK,CAAS,SAAS,iDAAC;AAChC,IAAA,IAAI,GAAG,KAAK,CAAS,IAAI,gDAAC;AAC1B,IAAA,OAAO,GAAG,KAAK,CAAS,SAAS,mDAAC;AAClC,IAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,oDAAC;uGAJrB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAhB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EANjB;;;AAGa,wBAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA;;2FAGZ,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAT5B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,YAAY;AACtB,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,QAAQ,EAAE;;;AAGa,wBAAA,CAAA;oBACvB,OAAO,EAAE,CAAC,sBAAsB,CAAC;AAClC,iBAAA;;;ACXD;;AAEG;;;;"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, effect, ViewChild, CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
|
|
3
|
+
import '@logosphere-ui/core/chatbot';
|
|
4
|
+
|
|
5
|
+
class LogosphereChatbot {
|
|
6
|
+
returnUri = input('', ...(ngDevMode ? [{ debugName: "returnUri" }] : []));
|
|
7
|
+
questionPrompt = input('', ...(ngDevMode ? [{ debugName: "questionPrompt" }] : []));
|
|
8
|
+
minimizedIconOnly = input(false, ...(ngDevMode ? [{ debugName: "minimizedIconOnly" }] : []));
|
|
9
|
+
draggable = input(false, ...(ngDevMode ? [{ debugName: "draggable" }] : []));
|
|
10
|
+
resizable = input(false, ...(ngDevMode ? [{ debugName: "resizable" }] : []));
|
|
11
|
+
openInitially = input(false, ...(ngDevMode ? [{ debugName: "openInitially" }] : []));
|
|
12
|
+
showFeedbackButtons = input(false, ...(ngDevMode ? [{ debugName: "showFeedbackButtons" }] : []));
|
|
13
|
+
products = input([], ...(ngDevMode ? [{ debugName: "products" }] : []));
|
|
14
|
+
chatbotEl;
|
|
15
|
+
constructor() {
|
|
16
|
+
// products array property binding — attribute olarak geçilemez, DOM property olarak set edilmeli
|
|
17
|
+
effect(() => {
|
|
18
|
+
const prods = this.products();
|
|
19
|
+
const el = this.chatbotEl?.nativeElement;
|
|
20
|
+
if (el)
|
|
21
|
+
el.products = prods;
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: LogosphereChatbot, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.7", type: LogosphereChatbot, isStandalone: true, selector: "lgs-chatbot", inputs: { returnUri: { classPropertyName: "returnUri", publicName: "returnUri", isSignal: true, isRequired: false, transformFunction: null }, questionPrompt: { classPropertyName: "questionPrompt", publicName: "questionPrompt", isSignal: true, isRequired: false, transformFunction: null }, minimizedIconOnly: { classPropertyName: "minimizedIconOnly", publicName: "minimizedIconOnly", isSignal: true, isRequired: false, transformFunction: null }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: true, isRequired: false, transformFunction: null }, resizable: { classPropertyName: "resizable", publicName: "resizable", isSignal: true, isRequired: false, transformFunction: null }, openInitially: { classPropertyName: "openInitially", publicName: "openInitially", isSignal: true, isRequired: false, transformFunction: null }, showFeedbackButtons: { classPropertyName: "showFeedbackButtons", publicName: "showFeedbackButtons", isSignal: true, isRequired: false, transformFunction: null }, products: { classPropertyName: "products", publicName: "products", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "chatbotEl", first: true, predicate: ["chatbotEl"], descendants: true }], ngImport: i0, template: `
|
|
26
|
+
<logosphere-chatbot
|
|
27
|
+
#chatbotEl
|
|
28
|
+
[attr.return-uri]="returnUri()"
|
|
29
|
+
[attr.question-prompt]="questionPrompt()"
|
|
30
|
+
[attr.minimized-icon-only]="minimizedIconOnly() || null"
|
|
31
|
+
[attr.draggable]="draggable() || null"
|
|
32
|
+
[attr.resizable]="resizable() || null"
|
|
33
|
+
[attr.open-initially]="openInitially() || null"
|
|
34
|
+
[attr.show-feedback-buttons]="showFeedbackButtons() || null"
|
|
35
|
+
></logosphere-chatbot>
|
|
36
|
+
`, isInline: true });
|
|
37
|
+
}
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: LogosphereChatbot, decorators: [{
|
|
39
|
+
type: Component,
|
|
40
|
+
args: [{
|
|
41
|
+
selector: 'lgs-chatbot',
|
|
42
|
+
imports: [],
|
|
43
|
+
template: `
|
|
44
|
+
<logosphere-chatbot
|
|
45
|
+
#chatbotEl
|
|
46
|
+
[attr.return-uri]="returnUri()"
|
|
47
|
+
[attr.question-prompt]="questionPrompt()"
|
|
48
|
+
[attr.minimized-icon-only]="minimizedIconOnly() || null"
|
|
49
|
+
[attr.draggable]="draggable() || null"
|
|
50
|
+
[attr.resizable]="resizable() || null"
|
|
51
|
+
[attr.open-initially]="openInitially() || null"
|
|
52
|
+
[attr.show-feedback-buttons]="showFeedbackButtons() || null"
|
|
53
|
+
></logosphere-chatbot>
|
|
54
|
+
`,
|
|
55
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
56
|
+
}]
|
|
57
|
+
}], ctorParameters: () => [], propDecorators: { returnUri: [{ type: i0.Input, args: [{ isSignal: true, alias: "returnUri", required: false }] }], questionPrompt: [{ type: i0.Input, args: [{ isSignal: true, alias: "questionPrompt", required: false }] }], minimizedIconOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "minimizedIconOnly", required: false }] }], draggable: [{ type: i0.Input, args: [{ isSignal: true, alias: "draggable", required: false }] }], resizable: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizable", required: false }] }], openInitially: [{ type: i0.Input, args: [{ isSignal: true, alias: "openInitially", required: false }] }], showFeedbackButtons: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFeedbackButtons", required: false }] }], products: [{ type: i0.Input, args: [{ isSignal: true, alias: "products", required: false }] }], chatbotEl: [{
|
|
58
|
+
type: ViewChild,
|
|
59
|
+
args: ['chatbotEl']
|
|
60
|
+
}] } });
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Generated bundle index. Do not edit.
|
|
64
|
+
*/
|
|
65
|
+
|
|
66
|
+
export { LogosphereChatbot };
|
|
67
|
+
//# sourceMappingURL=logosphere-ui-angular-src-lib-chatbot.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logosphere-ui-angular-src-lib-chatbot.mjs","sources":["../../projects/wrapper/src/lib/chatbot/chatbot.ts","../../projects/wrapper/src/lib/chatbot/logosphere-ui-angular-src-lib-chatbot.ts"],"sourcesContent":["import {\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n effect,\n ElementRef,\n input,\n ViewChild,\n} from '@angular/core';\nimport '@logosphere-ui/core/chatbot';\n\nexport type ChatbotProduct = {\n id: string;\n name: string;\n selected?: boolean;\n};\n\n@Component({\n selector: 'lgs-chatbot',\n imports: [],\n template: `\n <logosphere-chatbot\n #chatbotEl\n [attr.return-uri]=\"returnUri()\"\n [attr.question-prompt]=\"questionPrompt()\"\n [attr.minimized-icon-only]=\"minimizedIconOnly() || null\"\n [attr.draggable]=\"draggable() || null\"\n [attr.resizable]=\"resizable() || null\"\n [attr.open-initially]=\"openInitially() || null\"\n [attr.show-feedback-buttons]=\"showFeedbackButtons() || null\"\n ></logosphere-chatbot>\n `,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class LogosphereChatbot {\n returnUri = input<string>('');\n questionPrompt = input<string>('');\n minimizedIconOnly = input<boolean>(false);\n draggable = input<boolean>(false);\n resizable = input<boolean>(false);\n openInitially = input<boolean>(false);\n showFeedbackButtons = input<boolean>(false);\n products = input<ChatbotProduct[]>([]);\n\n @ViewChild('chatbotEl') private chatbotEl?: ElementRef<HTMLElement>;\n\n constructor() {\n // products array property binding — attribute olarak geçilemez, DOM property olarak set edilmeli\n effect(() => {\n const prods = this.products();\n const el = this.chatbotEl?.nativeElement as any;\n if (el) el.products = prods;\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAiCa,iBAAiB,CAAA;AAC5B,IAAA,SAAS,GAAa,KAAK,CAAS,EAAE,qDAAC;AACvC,IAAA,cAAc,GAAQ,KAAK,CAAS,EAAE,0DAAC;AACvC,IAAA,iBAAiB,GAAK,KAAK,CAAU,KAAK,6DAAC;AAC3C,IAAA,SAAS,GAAa,KAAK,CAAU,KAAK,qDAAC;AAC3C,IAAA,SAAS,GAAa,KAAK,CAAU,KAAK,qDAAC;AAC3C,IAAA,aAAa,GAAS,KAAK,CAAU,KAAK,yDAAC;AAC3C,IAAA,mBAAmB,GAAG,KAAK,CAAU,KAAK,+DAAC;AAC3C,IAAA,QAAQ,GAAc,KAAK,CAAmB,EAAE,oDAAC;AAEjB,IAAA,SAAS;AAEzC,IAAA,WAAA,GAAA;;QAEE,MAAM,CAAC,MAAK;AACV,YAAA,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE;AAC7B,YAAA,MAAM,EAAE,GAAG,IAAI,CAAC,SAAS,EAAE,aAAoB;AAC/C,YAAA,IAAI,EAAE;A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A,iBAAA,EAAA,IAAA,EAAA,EAAA,mBAAA,EAAA,EAAA,iBAAA,EAAA,qBAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,WAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,WAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAdlB;;;;;;;;;;;AAWT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA;;2FAGU,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAjB7B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,aAAa;AACvB,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,QAAQ,EAAE;;;;;;;;;;;AAWT,EAAA,CAAA;oBACD,OAAO,EAAE,CAAC,sBAAsB,CAAC;AAClC,iBAAA;;sBAWE,SAAS;uBAAC,WAAW;;;AC3CxB;;AAEG;;;;"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, output, CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
|
|
3
|
+
import '@logosphere-ui/core/checkbox';
|
|
4
|
+
|
|
5
|
+
class LogosphereCheckbox {
|
|
6
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
7
|
+
indeterminate = input(false, ...(ngDevMode ? [{ debugName: "indeterminate" }] : []));
|
|
8
|
+
checked = input(false, ...(ngDevMode ? [{ debugName: "checked" }] : []));
|
|
9
|
+
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
10
|
+
value = input('', ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
11
|
+
type = input("checkbox", ...(ngDevMode ? [{ debugName: "type" }] : []));
|
|
12
|
+
change = output();
|
|
13
|
+
onChange(event) {
|
|
14
|
+
const e = event;
|
|
15
|
+
this.change.emit(e.detail);
|
|
16
|
+
}
|
|
17
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: LogosphereCheckbox, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.7", type: LogosphereCheckbox, isStandalone: true, selector: "lgs-checkbox", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { change: "change" }, ngImport: i0, template: `
|
|
19
|
+
<logosphere-checkbox
|
|
20
|
+
[checked]="checked()"
|
|
21
|
+
[disabled]="disabled()"
|
|
22
|
+
[indeterminate]="indeterminate()"
|
|
23
|
+
[label]="label()"
|
|
24
|
+
[value]="value()"
|
|
25
|
+
[type]="type()"
|
|
26
|
+
(lgsChange)="onChange($event)"
|
|
27
|
+
>
|
|
28
|
+
</logosphere-checkbox>`, isInline: true });
|
|
29
|
+
}
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: LogosphereCheckbox, decorators: [{
|
|
31
|
+
type: Component,
|
|
32
|
+
args: [{
|
|
33
|
+
selector: 'lgs-checkbox',
|
|
34
|
+
imports: [],
|
|
35
|
+
template: `
|
|
36
|
+
<logosphere-checkbox
|
|
37
|
+
[checked]="checked()"
|
|
38
|
+
[disabled]="disabled()"
|
|
39
|
+
[indeterminate]="indeterminate()"
|
|
40
|
+
[label]="label()"
|
|
41
|
+
[value]="value()"
|
|
42
|
+
[type]="type()"
|
|
43
|
+
(lgsChange)="onChange($event)"
|
|
44
|
+
>
|
|
45
|
+
</logosphere-checkbox>`,
|
|
46
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
47
|
+
}]
|
|
48
|
+
}], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], change: [{ type: i0.Output, args: ["change"] }] } });
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Generated bundle index. Do not edit.
|
|
52
|
+
*/
|
|
53
|
+
|
|
54
|
+
export { LogosphereCheckbox };
|
|
55
|
+
//# sourceMappingURL=logosphere-ui-angular-src-lib-checkbox.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logosphere-ui-angular-src-lib-checkbox.mjs","sources":["../../projects/wrapper/src/lib/checkbox/checkbox.ts","../../projects/wrapper/src/lib/checkbox/logosphere-ui-angular-src-lib-checkbox.ts"],"sourcesContent":["import {Component, CUSTOM_ELEMENTS_SCHEMA, input, output} from '@angular/core';\nimport '@logosphere-ui/core/checkbox';\n\nexport type CheckboxChangeEvent = {\n checked: boolean;\n indeterminate: boolean;\n value: string;\n};\n\n@Component({\n selector: 'lgs-checkbox',\n imports: [],\n template: `\n <logosphere-checkbox\n [checked]=\"checked()\"\n [disabled]=\"disabled()\"\n [indeterminate]=\"indeterminate()\"\n [label]=\"label()\"\n [value]=\"value()\"\n [type]=\"type()\"\n (lgsChange)=\"onChange($event)\"\n >\n </logosphere-checkbox>`,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class LogosphereCheckbox {\n disabled = input<boolean>(false);\n indeterminate = input<boolean>(false);\n checked = input<boolean>(false);\n label = input<string>('');\n value = input<string>('');\n type = input<\"checkbox\" | \"switch\">(\"checkbox\");\n\n change = output<CheckboxChangeEvent>();\n\n onChange(event: Event) {\n const e = event as CustomEvent<CheckboxChangeEvent>;\n this.change.emit(e.detail);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAyBa,kBAAkB,CAAA;AAC7B,IAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,oDAAC;AAChC,IAAA,aAAa,GAAG,KAAK,CAAU,KAAK,yDAAC;AACrC,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,mDAAC;AAC/B,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,iDAAC;AACzB,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,iDAAC;AACzB,IAAA,IAAI,GAAG,KAAK,CAAwB,UAAU,gDAAC;IAE/C,MAAM,GAAG,MAAM,EAAuB;AAEtC,IAAA,QAAQ,CAAC,KAAY,EAAA;QACnB,MAAM,CAAC,GAAG,KAAyC;QACnD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;IAC5B;uGAbW,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAlB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA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B9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,QAAQ,EAAE;;;;;;;;;;AAUe,0BAAA,CAAA;oBACzB,OAAO,EAAE,CAAC,sBAAsB,CAAC;AAClC,iBAAA;;;ACxBD;;AAEG;;;;"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, CUSTOM_ELEMENTS_SCHEMA, Component, output, effect, ViewChild } from '@angular/core';
|
|
3
|
+
import '@logosphere-ui/core/button';
|
|
4
|
+
import '@logosphere-ui/core/checkbox';
|
|
5
|
+
import '@logosphere-ui/core/chatbot';
|
|
6
|
+
|
|
7
|
+
class LogosphereButton {
|
|
8
|
+
theme = input('primary', ...(ngDevMode ? [{ debugName: "theme" }] : []));
|
|
9
|
+
size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
10
|
+
variant = input('primary', ...(ngDevMode ? [{ debugName: "variant" }] : []));
|
|
11
|
+
iconOnly = input(false, ...(ngDevMode ? [{ debugName: "iconOnly" }] : []));
|
|
12
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: LogosphereButton, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
13
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.7", type: LogosphereButton, isStandalone: true, selector: "lgs-button", inputs: { theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, iconOnly: { classPropertyName: "iconOnly", publicName: "iconOnly", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
14
|
+
<logosphere-button [theme]="theme()" [size]="size()" [variant]="variant()" [iconOnly]="iconOnly()">
|
|
15
|
+
<ng-content></ng-content>
|
|
16
|
+
</logosphere-button>`, isInline: true });
|
|
17
|
+
}
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: LogosphereButton, decorators: [{
|
|
19
|
+
type: Component,
|
|
20
|
+
args: [{
|
|
21
|
+
selector: 'lgs-button',
|
|
22
|
+
imports: [],
|
|
23
|
+
template: `
|
|
24
|
+
<logosphere-button [theme]="theme()" [size]="size()" [variant]="variant()" [iconOnly]="iconOnly()">
|
|
25
|
+
<ng-content></ng-content>
|
|
26
|
+
</logosphere-button>`,
|
|
27
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
28
|
+
}]
|
|
29
|
+
}], propDecorators: { theme: [{ type: i0.Input, args: [{ isSignal: true, alias: "theme", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], iconOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconOnly", required: false }] }] } });
|
|
30
|
+
|
|
31
|
+
class LogosphereCheckbox {
|
|
32
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
33
|
+
indeterminate = input(false, ...(ngDevMode ? [{ debugName: "indeterminate" }] : []));
|
|
34
|
+
checked = input(false, ...(ngDevMode ? [{ debugName: "checked" }] : []));
|
|
35
|
+
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
36
|
+
value = input('', ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
37
|
+
type = input("checkbox", ...(ngDevMode ? [{ debugName: "type" }] : []));
|
|
38
|
+
change = output();
|
|
39
|
+
onChange(event) {
|
|
40
|
+
const e = event;
|
|
41
|
+
this.change.emit(e.detail);
|
|
42
|
+
}
|
|
43
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: LogosphereCheckbox, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
44
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.7", type: LogosphereCheckbox, isStandalone: true, selector: "lgs-checkbox", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { change: "change" }, ngImport: i0, template: `
|
|
45
|
+
<logosphere-checkbox
|
|
46
|
+
[checked]="checked()"
|
|
47
|
+
[disabled]="disabled()"
|
|
48
|
+
[indeterminate]="indeterminate()"
|
|
49
|
+
[label]="label()"
|
|
50
|
+
[value]="value()"
|
|
51
|
+
[type]="type()"
|
|
52
|
+
(lgsChange)="onChange($event)"
|
|
53
|
+
>
|
|
54
|
+
</logosphere-checkbox>`, isInline: true });
|
|
55
|
+
}
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: LogosphereCheckbox, decorators: [{
|
|
57
|
+
type: Component,
|
|
58
|
+
args: [{
|
|
59
|
+
selector: 'lgs-checkbox',
|
|
60
|
+
imports: [],
|
|
61
|
+
template: `
|
|
62
|
+
<logosphere-checkbox
|
|
63
|
+
[checked]="checked()"
|
|
64
|
+
[disabled]="disabled()"
|
|
65
|
+
[indeterminate]="indeterminate()"
|
|
66
|
+
[label]="label()"
|
|
67
|
+
[value]="value()"
|
|
68
|
+
[type]="type()"
|
|
69
|
+
(lgsChange)="onChange($event)"
|
|
70
|
+
>
|
|
71
|
+
</logosphere-checkbox>`,
|
|
72
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
73
|
+
}]
|
|
74
|
+
}], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], change: [{ type: i0.Output, args: ["change"] }] } });
|
|
75
|
+
|
|
76
|
+
class LogosphereChatbot {
|
|
77
|
+
returnUri = input('', ...(ngDevMode ? [{ debugName: "returnUri" }] : []));
|
|
78
|
+
questionPrompt = input('', ...(ngDevMode ? [{ debugName: "questionPrompt" }] : []));
|
|
79
|
+
minimizedIconOnly = input(false, ...(ngDevMode ? [{ debugName: "minimizedIconOnly" }] : []));
|
|
80
|
+
draggable = input(false, ...(ngDevMode ? [{ debugName: "draggable" }] : []));
|
|
81
|
+
resizable = input(false, ...(ngDevMode ? [{ debugName: "resizable" }] : []));
|
|
82
|
+
openInitially = input(false, ...(ngDevMode ? [{ debugName: "openInitially" }] : []));
|
|
83
|
+
showFeedbackButtons = input(false, ...(ngDevMode ? [{ debugName: "showFeedbackButtons" }] : []));
|
|
84
|
+
products = input([], ...(ngDevMode ? [{ debugName: "products" }] : []));
|
|
85
|
+
chatbotEl;
|
|
86
|
+
constructor() {
|
|
87
|
+
// products array property binding — attribute olarak geçilemez, DOM property olarak set edilmeli
|
|
88
|
+
effect(() => {
|
|
89
|
+
const prods = this.products();
|
|
90
|
+
const el = this.chatbotEl?.nativeElement;
|
|
91
|
+
if (el)
|
|
92
|
+
el.products = prods;
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: LogosphereChatbot, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
96
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.7", type: LogosphereChatbot, isStandalone: true, selector: "lgs-chatbot", inputs: { returnUri: { classPropertyName: "returnUri", publicName: "returnUri", isSignal: true, isRequired: false, transformFunction: null }, questionPrompt: { classPropertyName: "questionPrompt", publicName: "questionPrompt", isSignal: true, isRequired: false, transformFunction: null }, minimizedIconOnly: { classPropertyName: "minimizedIconOnly", publicName: "minimizedIconOnly", isSignal: true, isRequired: false, transformFunction: null }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: true, isRequired: false, transformFunction: null }, resizable: { classPropertyName: "resizable", publicName: "resizable", isSignal: true, isRequired: false, transformFunction: null }, openInitially: { classPropertyName: "openInitially", publicName: "openInitially", isSignal: true, isRequired: false, transformFunction: null }, showFeedbackButtons: { classPropertyName: "showFeedbackButtons", publicName: "showFeedbackButtons", isSignal: true, isRequired: false, transformFunction: null }, products: { classPropertyName: "products", publicName: "products", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "chatbotEl", first: true, predicate: ["chatbotEl"], descendants: true }], ngImport: i0, template: `
|
|
97
|
+
<logosphere-chatbot
|
|
98
|
+
#chatbotEl
|
|
99
|
+
[attr.return-uri]="returnUri()"
|
|
100
|
+
[attr.question-prompt]="questionPrompt()"
|
|
101
|
+
[attr.minimized-icon-only]="minimizedIconOnly() || null"
|
|
102
|
+
[attr.draggable]="draggable() || null"
|
|
103
|
+
[attr.resizable]="resizable() || null"
|
|
104
|
+
[attr.open-initially]="openInitially() || null"
|
|
105
|
+
[attr.show-feedback-buttons]="showFeedbackButtons() || null"
|
|
106
|
+
></logosphere-chatbot>
|
|
107
|
+
`, isInline: true });
|
|
108
|
+
}
|
|
109
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.7", ngImport: i0, type: LogosphereChatbot, decorators: [{
|
|
110
|
+
type: Component,
|
|
111
|
+
args: [{
|
|
112
|
+
selector: 'lgs-chatbot',
|
|
113
|
+
imports: [],
|
|
114
|
+
template: `
|
|
115
|
+
<logosphere-chatbot
|
|
116
|
+
#chatbotEl
|
|
117
|
+
[attr.return-uri]="returnUri()"
|
|
118
|
+
[attr.question-prompt]="questionPrompt()"
|
|
119
|
+
[attr.minimized-icon-only]="minimizedIconOnly() || null"
|
|
120
|
+
[attr.draggable]="draggable() || null"
|
|
121
|
+
[attr.resizable]="resizable() || null"
|
|
122
|
+
[attr.open-initially]="openInitially() || null"
|
|
123
|
+
[attr.show-feedback-buttons]="showFeedbackButtons() || null"
|
|
124
|
+
></logosphere-chatbot>
|
|
125
|
+
`,
|
|
126
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
127
|
+
}]
|
|
128
|
+
}], ctorParameters: () => [], propDecorators: { returnUri: [{ type: i0.Input, args: [{ isSignal: true, alias: "returnUri", required: false }] }], questionPrompt: [{ type: i0.Input, args: [{ isSignal: true, alias: "questionPrompt", required: false }] }], minimizedIconOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "minimizedIconOnly", required: false }] }], draggable: [{ type: i0.Input, args: [{ isSignal: true, alias: "draggable", required: false }] }], resizable: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizable", required: false }] }], openInitially: [{ type: i0.Input, args: [{ isSignal: true, alias: "openInitially", required: false }] }], showFeedbackButtons: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFeedbackButtons", required: false }] }], products: [{ type: i0.Input, args: [{ isSignal: true, alias: "products", required: false }] }], chatbotEl: [{
|
|
129
|
+
type: ViewChild,
|
|
130
|
+
args: ['chatbotEl']
|
|
131
|
+
}] } });
|
|
132
|
+
|
|
133
|
+
// projects/wrapper/src/public-api.ts
|
|
134
|
+
const WRAPPER_VERSION = '1.0.0';
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Generated bundle index. Do not edit.
|
|
138
|
+
*/
|
|
139
|
+
|
|
140
|
+
export { LogosphereButton, LogosphereChatbot, LogosphereCheckbox, WRAPPER_VERSION };
|
|
141
|
+
//# sourceMappingURL=logosphere-ui-angular.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logosphere-ui-angular.mjs","sources":["../../projects/wrapper/src/lib/button/button.ts","../../projects/wrapper/src/lib/checkbox/checkbox.ts","../../projects/wrapper/src/lib/chatbot/chatbot.ts","../../projects/wrapper/src/public-api.ts","../../projects/wrapper/src/logosphere-ui-angular.ts"],"sourcesContent":["import {Component, CUSTOM_ELEMENTS_SCHEMA, input} from '@angular/core';\nimport '@logosphere-ui/core/button';\n\n@Component({\n selector: 'lgs-button',\n imports: [],\n template: `\n <logosphere-button [theme]=\"theme()\" [size]=\"size()\" [variant]=\"variant()\" [iconOnly]=\"iconOnly()\">\n <ng-content></ng-content>\n </logosphere-button>`,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class LogosphereButton {\n theme = input<string>('primary');\n size = input<string>('md');\n variant = input<string>('primary');\n iconOnly = input<boolean>(false);\n\n}\n","import {Component, CUSTOM_ELEMENTS_SCHEMA, input, output} from '@angular/core';\nimport '@logosphere-ui/core/checkbox';\n\nexport type CheckboxChangeEvent = {\n checked: boolean;\n indeterminate: boolean;\n value: string;\n};\n\n@Component({\n selector: 'lgs-checkbox',\n imports: [],\n template: `\n <logosphere-checkbox\n [checked]=\"checked()\"\n [disabled]=\"disabled()\"\n [indeterminate]=\"indeterminate()\"\n [label]=\"label()\"\n [value]=\"value()\"\n [type]=\"type()\"\n (lgsChange)=\"onChange($event)\"\n >\n </logosphere-checkbox>`,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class LogosphereCheckbox {\n disabled = input<boolean>(false);\n indeterminate = input<boolean>(false);\n checked = input<boolean>(false);\n label = input<string>('');\n value = input<string>('');\n type = input<\"checkbox\" | \"switch\">(\"checkbox\");\n\n change = output<CheckboxChangeEvent>();\n\n onChange(event: Event) {\n const e = event as CustomEvent<CheckboxChangeEvent>;\n this.change.emit(e.detail);\n }\n}\n","import {\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n effect,\n ElementRef,\n input,\n ViewChild,\n} from '@angular/core';\nimport '@logosphere-ui/core/chatbot';\n\nexport type ChatbotProduct = {\n id: string;\n name: string;\n selected?: boolean;\n};\n\n@Component({\n selector: 'lgs-chatbot',\n imports: [],\n template: `\n <logosphere-chatbot\n #chatbotEl\n [attr.return-uri]=\"returnUri()\"\n [attr.question-prompt]=\"questionPrompt()\"\n [attr.minimized-icon-only]=\"minimizedIconOnly() || null\"\n [attr.draggable]=\"draggable() || null\"\n [attr.resizable]=\"resizable() || null\"\n [attr.open-initially]=\"openInitially() || null\"\n [attr.show-feedback-buttons]=\"showFeedbackButtons() || null\"\n ></logosphere-chatbot>\n `,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class LogosphereChatbot {\n returnUri = input<string>('');\n questionPrompt = input<string>('');\n minimizedIconOnly = input<boolean>(false);\n draggable = input<boolean>(false);\n resizable = input<boolean>(false);\n openInitially = input<boolean>(false);\n showFeedbackButtons = input<boolean>(false);\n products = input<ChatbotProduct[]>([]);\n\n @ViewChild('chatbotEl') private chatbotEl?: ElementRef<HTMLElement>;\n\n constructor() {\n // products array property binding — attribute olarak geçilemez, DOM property olarak set edilmeli\n effect(() => {\n const prods = this.products();\n const el = this.chatbotEl?.nativeElement as any;\n if (el) el.products = prods;\n });\n }\n}\n","// projects/wrapper/src/public-api.ts\nexport const WRAPPER_VERSION = '1.0.0';\n\nexport * from './lib/button/public-api';\nexport * from './lib/checkbox/public-api';\nexport * from './lib/chatbot/public-api';\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAYa,gBAAgB,CAAA;AAC3B,IAAA,KAAK,GAAG,KAAK,CAAS,SAAS,iDAAC;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D,OAAO,EAAE,CAAC,sBAAsB,CAAC;AAClC,iBAAA;;sBAWE,SAAS;uBAAC,WAAW;;;AC3CxB;AACO,MAAM,eAAe,GAAG;;ACD/B;;AAEG;;;;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@logosphere-ui/angular",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^21.0.0",
|
|
6
|
+
"@angular/core": "^21.0.0",
|
|
7
|
+
"@logosphere-ui/core": "^0.0.0-alpha.20"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"tslib": "^2.3.0"
|
|
11
|
+
},
|
|
12
|
+
"sideEffects": false,
|
|
13
|
+
"module": "fesm2022/logosphere-ui-angular.mjs",
|
|
14
|
+
"typings": "types/logosphere-ui-angular.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
"./package.json": {
|
|
17
|
+
"default": "./package.json"
|
|
18
|
+
},
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./types/logosphere-ui-angular.d.ts",
|
|
21
|
+
"default": "./fesm2022/logosphere-ui-angular.mjs"
|
|
22
|
+
},
|
|
23
|
+
"./src/lib/button": {
|
|
24
|
+
"types": "./types/logosphere-ui-angular-src-lib-button.d.ts",
|
|
25
|
+
"default": "./fesm2022/logosphere-ui-angular-src-lib-button.mjs"
|
|
26
|
+
},
|
|
27
|
+
"./src/lib/chatbot": {
|
|
28
|
+
"types": "./types/logosphere-ui-angular-src-lib-chatbot.d.ts",
|
|
29
|
+
"default": "./fesm2022/logosphere-ui-angular-src-lib-chatbot.mjs"
|
|
30
|
+
},
|
|
31
|
+
"./src/lib/checkbox": {
|
|
32
|
+
"types": "./types/logosphere-ui-angular-src-lib-checkbox.d.ts",
|
|
33
|
+
"default": "./fesm2022/logosphere-ui-angular-src-lib-checkbox.mjs"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class LogosphereButton {
|
|
4
|
+
theme: _angular_core.InputSignal<string>;
|
|
5
|
+
size: _angular_core.InputSignal<string>;
|
|
6
|
+
variant: _angular_core.InputSignal<string>;
|
|
7
|
+
iconOnly: _angular_core.InputSignal<boolean>;
|
|
8
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LogosphereButton, never>;
|
|
9
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LogosphereButton, "lgs-button", never, { "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "iconOnly": { "alias": "iconOnly"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { LogosphereButton };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
type ChatbotProduct = {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
selected?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare class LogosphereChatbot {
|
|
9
|
+
returnUri: _angular_core.InputSignal<string>;
|
|
10
|
+
questionPrompt: _angular_core.InputSignal<string>;
|
|
11
|
+
minimizedIconOnly: _angular_core.InputSignal<boolean>;
|
|
12
|
+
draggable: _angular_core.InputSignal<boolean>;
|
|
13
|
+
resizable: _angular_core.InputSignal<boolean>;
|
|
14
|
+
openInitially: _angular_core.InputSignal<boolean>;
|
|
15
|
+
showFeedbackButtons: _angular_core.InputSignal<boolean>;
|
|
16
|
+
products: _angular_core.InputSignal<ChatbotProduct[]>;
|
|
17
|
+
private chatbotEl?;
|
|
18
|
+
constructor();
|
|
19
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LogosphereChatbot, never>;
|
|
20
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LogosphereChatbot, "lgs-chatbot", never, { "returnUri": { "alias": "returnUri"; "required": false; "isSignal": true; }; "questionPrompt": { "alias": "questionPrompt"; "required": false; "isSignal": true; }; "minimizedIconOnly": { "alias": "minimizedIconOnly"; "required": false; "isSignal": true; }; "draggable": { "alias": "draggable"; "required": false; "isSignal": true; }; "resizable": { "alias": "resizable"; "required": false; "isSignal": true; }; "openInitially": { "alias": "openInitially"; "required": false; "isSignal": true; }; "showFeedbackButtons": { "alias": "showFeedbackButtons"; "required": false; "isSignal": true; }; "products": { "alias": "products"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { LogosphereChatbot };
|
|
24
|
+
export type { ChatbotProduct };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
type CheckboxChangeEvent = {
|
|
4
|
+
checked: boolean;
|
|
5
|
+
indeterminate: boolean;
|
|
6
|
+
value: string;
|
|
7
|
+
};
|
|
8
|
+
declare class LogosphereCheckbox {
|
|
9
|
+
disabled: _angular_core.InputSignal<boolean>;
|
|
10
|
+
indeterminate: _angular_core.InputSignal<boolean>;
|
|
11
|
+
checked: _angular_core.InputSignal<boolean>;
|
|
12
|
+
label: _angular_core.InputSignal<string>;
|
|
13
|
+
value: _angular_core.InputSignal<string>;
|
|
14
|
+
type: _angular_core.InputSignal<"checkbox" | "switch">;
|
|
15
|
+
change: _angular_core.OutputEmitterRef<CheckboxChangeEvent>;
|
|
16
|
+
onChange(event: Event): void;
|
|
17
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LogosphereCheckbox, never>;
|
|
18
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LogosphereCheckbox, "lgs-checkbox", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, { "change": "change"; }, never, never, true, never>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { LogosphereCheckbox };
|
|
22
|
+
export type { CheckboxChangeEvent };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class LogosphereButton {
|
|
4
|
+
theme: _angular_core.InputSignal<string>;
|
|
5
|
+
size: _angular_core.InputSignal<string>;
|
|
6
|
+
variant: _angular_core.InputSignal<string>;
|
|
7
|
+
iconOnly: _angular_core.InputSignal<boolean>;
|
|
8
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LogosphereButton, never>;
|
|
9
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LogosphereButton, "lgs-button", never, { "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "iconOnly": { "alias": "iconOnly"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
type CheckboxChangeEvent = {
|
|
13
|
+
checked: boolean;
|
|
14
|
+
indeterminate: boolean;
|
|
15
|
+
value: string;
|
|
16
|
+
};
|
|
17
|
+
declare class LogosphereCheckbox {
|
|
18
|
+
disabled: _angular_core.InputSignal<boolean>;
|
|
19
|
+
indeterminate: _angular_core.InputSignal<boolean>;
|
|
20
|
+
checked: _angular_core.InputSignal<boolean>;
|
|
21
|
+
label: _angular_core.InputSignal<string>;
|
|
22
|
+
value: _angular_core.InputSignal<string>;
|
|
23
|
+
type: _angular_core.InputSignal<"checkbox" | "switch">;
|
|
24
|
+
change: _angular_core.OutputEmitterRef<CheckboxChangeEvent>;
|
|
25
|
+
onChange(event: Event): void;
|
|
26
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LogosphereCheckbox, never>;
|
|
27
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LogosphereCheckbox, "lgs-checkbox", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, { "change": "change"; }, never, never, true, never>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
type ChatbotProduct = {
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
selected?: boolean;
|
|
34
|
+
};
|
|
35
|
+
declare class LogosphereChatbot {
|
|
36
|
+
returnUri: _angular_core.InputSignal<string>;
|
|
37
|
+
questionPrompt: _angular_core.InputSignal<string>;
|
|
38
|
+
minimizedIconOnly: _angular_core.InputSignal<boolean>;
|
|
39
|
+
draggable: _angular_core.InputSignal<boolean>;
|
|
40
|
+
resizable: _angular_core.InputSignal<boolean>;
|
|
41
|
+
openInitially: _angular_core.InputSignal<boolean>;
|
|
42
|
+
showFeedbackButtons: _angular_core.InputSignal<boolean>;
|
|
43
|
+
products: _angular_core.InputSignal<ChatbotProduct[]>;
|
|
44
|
+
private chatbotEl?;
|
|
45
|
+
constructor();
|
|
46
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LogosphereChatbot, never>;
|
|
47
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LogosphereChatbot, "lgs-chatbot", never, { "returnUri": { "alias": "returnUri"; "required": false; "isSignal": true; }; "questionPrompt": { "alias": "questionPrompt"; "required": false; "isSignal": true; }; "minimizedIconOnly": { "alias": "minimizedIconOnly"; "required": false; "isSignal": true; }; "draggable": { "alias": "draggable"; "required": false; "isSignal": true; }; "resizable": { "alias": "resizable"; "required": false; "isSignal": true; }; "openInitially": { "alias": "openInitially"; "required": false; "isSignal": true; }; "showFeedbackButtons": { "alias": "showFeedbackButtons"; "required": false; "isSignal": true; }; "products": { "alias": "products"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare const WRAPPER_VERSION = "1.0.0";
|
|
51
|
+
|
|
52
|
+
export { LogosphereButton, LogosphereChatbot, LogosphereCheckbox, WRAPPER_VERSION };
|
|
53
|
+
export type { ChatbotProduct, CheckboxChangeEvent };
|