@ni/spright-angular 7.4.2 → 7.5.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/chat/input/index.d.ts +5 -0
- package/chat/input/public-api.d.ts +2 -0
- package/chat/input/spright-chat-input.directive.d.ts +23 -0
- package/chat/input/spright-chat-input.module.d.ts +9 -0
- package/chat/input/testing/index.d.ts +5 -0
- package/chat/input/testing/input.pageobject.d.ts +2 -0
- package/chat/input/testing/public-api.d.ts +1 -0
- package/esm2022/chat/input/ni-spright-angular-chat-input.mjs +5 -0
- package/esm2022/chat/input/public-api.mjs +3 -0
- package/esm2022/chat/input/spright-chat-input.directive.mjs +48 -0
- package/esm2022/chat/input/spright-chat-input.module.mjs +19 -0
- package/esm2022/chat/input/testing/input.pageobject.mjs +3 -0
- package/esm2022/chat/input/testing/ni-spright-angular-chat-input-testing.mjs +5 -0
- package/esm2022/chat/input/testing/public-api.mjs +2 -0
- package/fesm2022/ni-spright-angular-chat-input-testing.mjs +6 -0
- package/fesm2022/ni-spright-angular-chat-input-testing.mjs.map +1 -0
- package/fesm2022/ni-spright-angular-chat-input.mjs +69 -0
- package/fesm2022/ni-spright-angular-chat-input.mjs.map +1 -0
- package/package.json +14 -2
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import { type ChatInput, chatInputTag } from '@ni/spright-components/dist/esm/chat/input';
|
|
3
|
+
import { type ChatInputSendEventDetail } from '@ni/spright-components/dist/esm/chat/input/types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export type { ChatInput };
|
|
6
|
+
export type { ChatInputSendEventDetail };
|
|
7
|
+
export { chatInputTag };
|
|
8
|
+
/**
|
|
9
|
+
* Directive to provide Angular integration for the chat input.
|
|
10
|
+
*/
|
|
11
|
+
export declare class SprightChatInputDirective {
|
|
12
|
+
private readonly renderer;
|
|
13
|
+
private readonly elementRef;
|
|
14
|
+
get placeholder(): string | undefined;
|
|
15
|
+
set placeholder(value: string | undefined);
|
|
16
|
+
get sendButtonLabel(): string | undefined;
|
|
17
|
+
set sendButtonLabel(value: string | undefined);
|
|
18
|
+
get value(): string | undefined;
|
|
19
|
+
set value(value: string | undefined);
|
|
20
|
+
constructor(renderer: Renderer2, elementRef: ElementRef<ChatInput>);
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SprightChatInputDirective, never>;
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SprightChatInputDirective, "spright-chat-input", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "sendButtonLabel": { "alias": "send-button-label"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '@ni/spright-components/dist/esm/chat/input';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./spright-chat-input.directive";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
export declare class SprightChatInputModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SprightChatInputModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SprightChatInputModule, [typeof i1.SprightChatInputDirective], [typeof i2.CommonModule], [typeof i1.SprightChatInputDirective]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SprightChatInputModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './input.pageobject';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmktc3ByaWdodC1hbmd1bGFyLWNoYXQtaW5wdXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcHJpZ2h0LWFuZ3VsYXIvY2hhdC9pbnB1dC9uaS1zcHJpZ2h0LWFuZ3VsYXItY2hhdC1pbnB1dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './spright-chat-input.directive';
|
|
2
|
+
export * from './spright-chat-input.module';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NwcmlnaHQtYW5ndWxhci9jaGF0L2lucHV0L3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxnQ0FBZ0MsQ0FBQztBQUMvQyxjQUFjLDZCQUE2QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zcHJpZ2h0LWNoYXQtaW5wdXQuZGlyZWN0aXZlJztcbmV4cG9ydCAqIGZyb20gJy4vc3ByaWdodC1jaGF0LWlucHV0Lm1vZHVsZSc7XG4iXX0=
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Directive, ElementRef, Input, Renderer2 } from '@angular/core';
|
|
2
|
+
import { chatInputTag } from '@ni/spright-components/dist/esm/chat/input';
|
|
3
|
+
import {} from '@ni/spright-components/dist/esm/chat/input/types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export { chatInputTag };
|
|
6
|
+
/**
|
|
7
|
+
* Directive to provide Angular integration for the chat input.
|
|
8
|
+
*/
|
|
9
|
+
export class SprightChatInputDirective {
|
|
10
|
+
get placeholder() {
|
|
11
|
+
return this.elementRef.nativeElement.placeholder;
|
|
12
|
+
}
|
|
13
|
+
set placeholder(value) {
|
|
14
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'placeholder', value);
|
|
15
|
+
}
|
|
16
|
+
get sendButtonLabel() {
|
|
17
|
+
return this.elementRef.nativeElement.sendButtonLabel;
|
|
18
|
+
}
|
|
19
|
+
set sendButtonLabel(value) {
|
|
20
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'sendButtonLabel', value);
|
|
21
|
+
}
|
|
22
|
+
get value() {
|
|
23
|
+
return this.elementRef.nativeElement.value;
|
|
24
|
+
}
|
|
25
|
+
set value(value) {
|
|
26
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'value', value);
|
|
27
|
+
}
|
|
28
|
+
constructor(renderer, elementRef) {
|
|
29
|
+
this.renderer = renderer;
|
|
30
|
+
this.elementRef = elementRef;
|
|
31
|
+
}
|
|
32
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SprightChatInputDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
33
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: SprightChatInputDirective, selector: "spright-chat-input", inputs: { placeholder: "placeholder", sendButtonLabel: ["send-button-label", "sendButtonLabel"], value: "value" }, ngImport: i0 }); }
|
|
34
|
+
}
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SprightChatInputDirective, decorators: [{
|
|
36
|
+
type: Directive,
|
|
37
|
+
args: [{
|
|
38
|
+
selector: 'spright-chat-input'
|
|
39
|
+
}]
|
|
40
|
+
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }], propDecorators: { placeholder: [{
|
|
41
|
+
type: Input
|
|
42
|
+
}], sendButtonLabel: [{
|
|
43
|
+
type: Input,
|
|
44
|
+
args: ['send-button-label']
|
|
45
|
+
}], value: [{
|
|
46
|
+
type: Input
|
|
47
|
+
}] } });
|
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3ByaWdodC1jaGF0LWlucHV0LmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NwcmlnaHQtYW5ndWxhci9jaGF0L2lucHV0L3NwcmlnaHQtY2hhdC1pbnB1dC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxVQUFVLEVBQUUsS0FBSyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN4RSxPQUFPLEVBQWtCLFlBQVksRUFBRSxNQUFNLDRDQUE0QyxDQUFDO0FBQzFGLE9BQU8sRUFBaUMsTUFBTSxrREFBa0QsQ0FBQzs7QUFJakcsT0FBTyxFQUFFLFlBQVksRUFBRSxDQUFDO0FBRXhCOztHQUVHO0FBSUgsTUFBTSxPQUFPLHlCQUF5QjtJQUNsQyxJQUFXLFdBQVc7UUFDbEIsT0FBTyxJQUFJLENBQUMsVUFBVSxDQUFDLGFBQWEsQ0FBQyxXQUFXLENBQUM7SUFDckQsQ0FBQztJQUVELElBQW9CLFdBQVcsQ0FBQyxLQUF5QjtRQUNyRCxJQUFJLENBQUMsUUFBUSxDQUFDLFdBQVcsQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUFDLGFBQWEsRUFBRSxhQUFhLEVBQUUsS0FBSyxDQUFDLENBQUM7SUFDbkYsQ0FBQztJQUVELElBQVcsZUFBZTtRQUN0QixPQUFPLElBQUksQ0FBQyxVQU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V0dG9uTGFiZWw7XG4gICAgfVxuXG4gICAgQElucHV0KCdzZW5kLWJ1dHRvbi1sYWJlbCcpIHB1YmxpYyBzZXQgc2VuZEJ1dHRvbkxhYmVsKHZhbHVlOiBzdHJpbmcgfCB1bmRlZmluZWQpIHtcbiAgICAgICAgdGhpcy5yZW5kZXJlci5zZXRQcm9wZXJ0eSh0aGlzLmVsZW1lbnRSZWYubmF0aXZlRWxlbWVudCwgJ3NlbmRCdXR0b25MYWJlbCcsIHZhbHVlKTtcbiAgICB9XG5cbiAgICBwdWJsaWMgZ2V0IHZhbHVlKCk6IHN0cmluZyB8IHVuZGVmaW5lZCB7XG4gICAgICAgIHJldHVybiB0aGlzLmVsZW1lbnRSZWYubmF0aXZlRWxlbWVudC52YWx1ZTtcbiAgICB9XG5cbiAgICBASW5wdXQoKSBwdWJsaWMgc2V0IHZhbHVlKHZhbHVlOiBzdHJpbmcgfCB1bmRlZmluZWQpIHtcbiAgICAgICAgdGhpcy5yZW5kZXJlci5zZXRQcm9wZXJ0eSh0aGlzLmVsZW1lbnRSZWYubmF0aXZlRWxlbWVudCwgJ3ZhbHVlJywgdmFsdWUpO1xuICAgIH1cblxuICAgIHB1YmxpYyBjb25zdHJ1Y3Rvcihwcml2YXRlIHJlYWRvbmx5IHJlbmRlcmVyOiBSZW5kZXJlcjIsIHByaXZhdGUgcmVhZG9ubHkgZWxlbWVudFJlZjogRWxlbWVudFJlZjxDaGF0SW5wdXQ+KSB7fVxufVxuIl19
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { SprightChatInputDirective } from './spright-chat-input.directive';
|
|
4
|
+
import '@ni/spright-components/dist/esm/chat/input';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export class SprightChatInputModule {
|
|
7
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SprightChatInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
8
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: SprightChatInputModule, declarations: [SprightChatInputDirective], imports: [CommonModule], exports: [SprightChatInputDirective] }); }
|
|
9
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SprightChatInputModule, imports: [CommonModule] }); }
|
|
10
|
+
}
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SprightChatInputModule, decorators: [{
|
|
12
|
+
type: NgModule,
|
|
13
|
+
args: [{
|
|
14
|
+
declarations: [SprightChatInputDirective],
|
|
15
|
+
imports: [CommonModule],
|
|
16
|
+
exports: [SprightChatInputDirective]
|
|
17
|
+
}]
|
|
18
|
+
}] });
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3ByaWdodC1jaGF0LWlucHV0Lm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NwcmlnaHQtYW5ndWxhci9jaGF0L2lucHV0L3NwcmlnaHQtY2hhdC1pbnB1dC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLHlCQUF5QixFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFFM0UsT0FBTyw0Q0FBNEMsQ0FBQzs7QUFPcEQsTUFBTSxPQUFPLHNCQUFzQjsrR0FBdEIsc0JBQXNCO2dIQUF0QixzQkFBc0IsaUJBSmhCLHlCQUF5QixhQUM5QixZQUFZLGFBQ1oseUJBQXlCO2dIQUUxQixzQkFBc0IsWUFIckIsWUFBWTs7NEZBR2Isc0JBQXNCO2tCQUxsQyxRQUFRO21CQUFDO29CQUNOLFlBQVksRUFBRSxDQUFDLHlCQUF5QixDQUFDO29CQUN6QyxPQUFPLEVBQUUsQ0FBQyxZQUFZLENBQUM7b0JBQ3ZCLE9BQU8sRUFBRSxDQUFDLHlCQUF5QixDQUFDO2lCQUN2QyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHsgU3ByaWdodENoYXRJbnB1dERpcmVjdGl2ZSB9IGZyb20gJy4vc3ByaWdodC1jaGF0LWlucHV0LmRpcmVjdGl2ZSc7XG5cbmltcG9ydCAnQG5pL3NwcmlnaHQtY29tcG9uZW50cy9kaXN0L2VzbS9jaGF0L2lucHV0JztcblxuQE5nTW9kdWxlKHtcbiAgICBkZWNsYXJhdGlvbnM6IFtTcHJpZ2h0Q2hhdElucHV0RGlyZWN0aXZlXSxcbiAgICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlXSxcbiAgICBleHBvcnRzOiBbU3ByaWdodENoYXRJbnB1dERpcmVjdGl2ZV1cbn0pXG5leHBvcnQgY2xhc3MgU3ByaWdodENoYXRJbnB1dE1vZHVsZSB7IH1cbiJdfQ==
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ChatInputPageObject } from '@ni/spright-components/dist/esm/chat/input/testing/chat-input.pageobject';
|
|
2
|
+
export { ChatInputPageObject };
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQucGFnZW9iamVjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NwcmlnaHQtYW5ndWxhci9jaGF0L2lucHV0L3Rlc3RpbmcvaW5wdXQucGFnZW9iamVjdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSwwRUFBMEUsQ0FBQztBQUUvRyxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENoYXRJbnB1dFBhZ2VPYmplY3QgfSBmcm9tICdAbmkvc3ByaWdodC1jb21wb25lbnRzL2Rpc3QvZXNtL2NoYXQvaW5wdXQvdGVzdGluZy9jaGF0LWlucHV0LnBhZ2VvYmplY3QnO1xuXG5leHBvcnQgeyBDaGF0SW5wdXRQYWdlT2JqZWN0IH07XG4iXX0=
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmktc3ByaWdodC1hbmd1bGFyLWNoYXQtaW5wdXQtdGVzdGluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NwcmlnaHQtYW5ndWxhci9jaGF0L2lucHV0L3Rlc3Rpbmcvbmktc3ByaWdodC1hbmd1bGFyLWNoYXQtaW5wdXQtdGVzdGluZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './input.pageobject';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NwcmlnaHQtYW5ndWxhci9jaGF0L2lucHV0L3Rlc3RpbmcvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG9CQUFvQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9pbnB1dC5wYWdlb2JqZWN0JztcbiJdfQ==
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ni-spright-angular-chat-input-testing.mjs","sources":["../../../spright-angular/chat/input/testing/ni-spright-angular-chat-input-testing.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;AAEG"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Input, Directive, NgModule } from '@angular/core';
|
|
3
|
+
export { chatInputTag } from '@ni/spright-components/dist/esm/chat/input';
|
|
4
|
+
import '@ni/spright-components/dist/esm/chat/input/types';
|
|
5
|
+
import { CommonModule } from '@angular/common';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Directive to provide Angular integration for the chat input.
|
|
9
|
+
*/
|
|
10
|
+
class SprightChatInputDirective {
|
|
11
|
+
get placeholder() {
|
|
12
|
+
return this.elementRef.nativeElement.placeholder;
|
|
13
|
+
}
|
|
14
|
+
set placeholder(value) {
|
|
15
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'placeholder', value);
|
|
16
|
+
}
|
|
17
|
+
get sendButtonLabel() {
|
|
18
|
+
return this.elementRef.nativeElement.sendButtonLabel;
|
|
19
|
+
}
|
|
20
|
+
set sendButtonLabel(value) {
|
|
21
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'sendButtonLabel', value);
|
|
22
|
+
}
|
|
23
|
+
get value() {
|
|
24
|
+
return this.elementRef.nativeElement.value;
|
|
25
|
+
}
|
|
26
|
+
set value(value) {
|
|
27
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'value', value);
|
|
28
|
+
}
|
|
29
|
+
constructor(renderer, elementRef) {
|
|
30
|
+
this.renderer = renderer;
|
|
31
|
+
this.elementRef = elementRef;
|
|
32
|
+
}
|
|
33
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SprightChatInputDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
34
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: SprightChatInputDirective, selector: "spright-chat-input", inputs: { placeholder: "placeholder", sendButtonLabel: ["send-button-label", "sendButtonLabel"], value: "value" }, ngImport: i0 }); }
|
|
35
|
+
}
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SprightChatInputDirective, decorators: [{
|
|
37
|
+
type: Directive,
|
|
38
|
+
args: [{
|
|
39
|
+
selector: 'spright-chat-input'
|
|
40
|
+
}]
|
|
41
|
+
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }], propDecorators: { placeholder: [{
|
|
42
|
+
type: Input
|
|
43
|
+
}], sendButtonLabel: [{
|
|
44
|
+
type: Input,
|
|
45
|
+
args: ['send-button-label']
|
|
46
|
+
}], value: [{
|
|
47
|
+
type: Input
|
|
48
|
+
}] } });
|
|
49
|
+
|
|
50
|
+
class SprightChatInputModule {
|
|
51
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SprightChatInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
52
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: SprightChatInputModule, declarations: [SprightChatInputDirective], imports: [CommonModule], exports: [SprightChatInputDirective] }); }
|
|
53
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SprightChatInputModule, imports: [CommonModule] }); }
|
|
54
|
+
}
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SprightChatInputModule, decorators: [{
|
|
56
|
+
type: NgModule,
|
|
57
|
+
args: [{
|
|
58
|
+
declarations: [SprightChatInputDirective],
|
|
59
|
+
imports: [CommonModule],
|
|
60
|
+
exports: [SprightChatInputDirective]
|
|
61
|
+
}]
|
|
62
|
+
}] });
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Generated bundle index. Do not edit.
|
|
66
|
+
*/
|
|
67
|
+
|
|
68
|
+
export { SprightChatInputDirective, SprightChatInputModule };
|
|
69
|
+
//# sourceMappingURL=ni-spright-angular-chat-input.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ni-spright-angular-chat-input.mjs","sources":["../../../spright-angular/chat/input/spright-chat-input.directive.ts","../../../spright-angular/chat/input/spright-chat-input.module.ts","../../../spright-angular/chat/input/ni-spright-angular-chat-input.ts"],"sourcesContent":["import { Directive, ElementRef, Input, Renderer2 } from '@angular/core';\nimport { type ChatInput, chatInputTag } from '@ni/spright-components/dist/esm/chat/input';\nimport { type ChatInputSendEventDetail } from '@ni/spright-components/dist/esm/chat/input/types';\n\nexport type { ChatInput };\nexport type { ChatInputSendEventDetail };\nexport { chatInputTag };\n\n/**\n * Directive to provide Angular integration for the chat input.\n */\n@Directive({\n selector: 'spright-chat-input'\n})\nexport class SprightChatInputDirective {\n public get placeholder(): string | undefined {\n return this.elementRef.nativeElement.placeholder;\n }\n\n @Input() public set placeholder(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'placeholder', value);\n }\n\n public get sendButtonLabel(): string | undefined {\n return this.elementRef.nativeElement.sendButtonLabel;\n }\n\n @Input('send-button-label') public set sendButtonLabel(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'sendButtonLabel', value);\n }\n\n public get value(): string | undefined {\n return this.elementRef.nativeElement.value;\n }\n\n @Input() public set value(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'value', value);\n }\n\n public constructor(private readonly renderer: Renderer2, private readonly elementRef: ElementRef<ChatInput>) {}\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SprightChatInputDirective } from './spright-chat-input.directive';\n\nimport '@ni/spright-components/dist/esm/chat/input';\n\n@NgModule({\n declarations: [SprightChatInputDirective],\n imports: [CommonModule],\n exports: [SprightChatInputDirective]\n})\nexport class SprightChatInputModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAQA;;AAEG;MAIU,yBAAyB,CAAA;AAClC,IAAA,IAAW,WAAW,GAAA;AAClB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW;;IAGpD,IAAoB,WAAW,CAAC,KAAyB,EAAA;AACrD,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,aAAa,EAAE,KAAK,CAAC;;AAGlF,IAAA,IAAW,eAAe,GAAA;AACtB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,eAAe;;IAGxD,IAAuC,eAAe,CAAC,KAAyB,EAAA;AAC5E,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,iBAAiB,EAAE,KAAK,CAAC;;AAGtF,I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A,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,EAJhB,YAAA,EAAA,CAAA,yBAAyB,CAC9B,EAAA,OAAA,EAAA,CAAA,YAAY,aACZ,yBAAyB,CAAA,EAAA,CAAA,CAAA;AAE1B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,YAHrB,YAAY,CAAA,EAAA,CAAA,CAAA;;4FAGb,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBALlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,yBAAyB,CAAC;oBACzC,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,yBAAyB;AACtC,iBAAA;;;ACVD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ni/spright-angular",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.5.0",
|
|
4
4
|
"description": "Angular components for NI Spright",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"@angular/common": "^18.2.13",
|
|
22
22
|
"@angular/core": "^18.2.13",
|
|
23
|
-
"@ni/spright-components": "^5.
|
|
23
|
+
"@ni/spright-components": "^5.5.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"tslib": "^2.2.0"
|
|
@@ -49,11 +49,23 @@
|
|
|
49
49
|
"esm": "./esm2022/chat/conversation/ni-spright-angular-chat-conversation.mjs",
|
|
50
50
|
"default": "./fesm2022/ni-spright-angular-chat-conversation.mjs"
|
|
51
51
|
},
|
|
52
|
+
"./chat/input": {
|
|
53
|
+
"types": "./chat/input/index.d.ts",
|
|
54
|
+
"esm2022": "./esm2022/chat/input/ni-spright-angular-chat-input.mjs",
|
|
55
|
+
"esm": "./esm2022/chat/input/ni-spright-angular-chat-input.mjs",
|
|
56
|
+
"default": "./fesm2022/ni-spright-angular-chat-input.mjs"
|
|
57
|
+
},
|
|
52
58
|
"./chat/message": {
|
|
53
59
|
"types": "./chat/message/index.d.ts",
|
|
54
60
|
"esm2022": "./esm2022/chat/message/ni-spright-angular-chat-message.mjs",
|
|
55
61
|
"esm": "./esm2022/chat/message/ni-spright-angular-chat-message.mjs",
|
|
56
62
|
"default": "./fesm2022/ni-spright-angular-chat-message.mjs"
|
|
63
|
+
},
|
|
64
|
+
"./chat/input/testing": {
|
|
65
|
+
"types": "./chat/input/testing/index.d.ts",
|
|
66
|
+
"esm2022": "./esm2022/chat/input/testing/ni-spright-angular-chat-input-testing.mjs",
|
|
67
|
+
"esm": "./esm2022/chat/input/testing/ni-spright-angular-chat-input-testing.mjs",
|
|
68
|
+
"default": "./fesm2022/ni-spright-angular-chat-input-testing.mjs"
|
|
57
69
|
}
|
|
58
70
|
},
|
|
59
71
|
"sideEffects": false
|