@ni/spright-angular 8.4.0 → 8.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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import type { BooleanValueOrAttribute } from '@ni/nimble-angular/internal-utilities';
|
|
2
3
|
import { type ChatInput, chatInputTag } from '@ni/spright-components/dist/esm/chat/input';
|
|
3
4
|
import type { ChatInputSendEventDetail } from '@ni/spright-components/dist/esm/chat/input/types';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
@@ -23,7 +24,11 @@ export declare class SprightChatInputDirective {
|
|
|
23
24
|
set maxLength(value: number | undefined);
|
|
24
25
|
get value(): string | undefined;
|
|
25
26
|
set value(value: string | undefined);
|
|
27
|
+
get errorText(): string | undefined;
|
|
28
|
+
set errorText(value: string | undefined);
|
|
29
|
+
get errorVisible(): boolean;
|
|
30
|
+
set errorVisible(value: BooleanValueOrAttribute);
|
|
26
31
|
constructor(renderer: Renderer2, elementRef: ElementRef<ChatInput>);
|
|
27
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<SprightChatInputDirective, never>;
|
|
28
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SprightChatInputDirective, "spright-chat-input", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "sendButtonLabel": { "alias": "send-button-label"; "required": false; }; "stopButtonLabel": { "alias": "stop-button-label"; "required": false; }; "processing": { "alias": "processing"; "required": false; }; "maxLength": { "alias": "maxlength"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
33
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SprightChatInputDirective, "spright-chat-input", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "sendButtonLabel": { "alias": "send-button-label"; "required": false; }; "stopButtonLabel": { "alias": "stop-button-label"; "required": false; }; "processing": { "alias": "processing"; "required": false; }; "maxLength": { "alias": "maxlength"; "required": false; }; "value": { "alias": "value"; "required": false; }; "errorText": { "alias": "error-text"; "required": false; }; "errorVisible": { "alias": "error-visible"; "required": false; }; }, {}, never, never, false, never>;
|
|
29
34
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Input, Directive, NgModule } from '@angular/core';
|
|
3
3
|
export { chatInputTag } from '@ni/spright-components/dist/esm/chat/input';
|
|
4
|
+
import { toBooleanProperty } from '@ni/nimble-angular/internal-utilities';
|
|
4
5
|
import { CommonModule } from '@angular/common';
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -43,12 +44,24 @@ class SprightChatInputDirective {
|
|
|
43
44
|
set value(value) {
|
|
44
45
|
this.renderer.setProperty(this.elementRef.nativeElement, 'value', value);
|
|
45
46
|
}
|
|
47
|
+
get errorText() {
|
|
48
|
+
return this.elementRef.nativeElement.errorText;
|
|
49
|
+
}
|
|
50
|
+
set errorText(value) {
|
|
51
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'errorText', value);
|
|
52
|
+
}
|
|
53
|
+
get errorVisible() {
|
|
54
|
+
return this.elementRef.nativeElement.errorVisible;
|
|
55
|
+
}
|
|
56
|
+
set errorVisible(value) {
|
|
57
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'errorVisible', toBooleanProperty(value));
|
|
58
|
+
}
|
|
46
59
|
constructor(renderer, elementRef) {
|
|
47
60
|
this.renderer = renderer;
|
|
48
61
|
this.elementRef = elementRef;
|
|
49
62
|
}
|
|
50
63
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SprightChatInputDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
51
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: SprightChatInputDirective, isStandalone: false, selector: "spright-chat-input", inputs: { placeholder: "placeholder", sendButtonLabel: ["send-button-label", "sendButtonLabel"], stopButtonLabel: ["stop-button-label", "stopButtonLabel"], processing: "processing", maxLength: ["maxlength", "maxLength"], value: "value" }, ngImport: i0 }); }
|
|
64
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: SprightChatInputDirective, isStandalone: false, selector: "spright-chat-input", inputs: { placeholder: "placeholder", sendButtonLabel: ["send-button-label", "sendButtonLabel"], stopButtonLabel: ["stop-button-label", "stopButtonLabel"], processing: "processing", maxLength: ["maxlength", "maxLength"], value: "value", errorText: ["error-text", "errorText"], errorVisible: ["error-visible", "errorVisible"] }, ngImport: i0 }); }
|
|
52
65
|
}
|
|
53
66
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SprightChatInputDirective, decorators: [{
|
|
54
67
|
type: Directive,
|
|
@@ -72,6 +85,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
72
85
|
args: ['maxlength']
|
|
73
86
|
}], value: [{
|
|
74
87
|
type: Input
|
|
88
|
+
}], errorText: [{
|
|
89
|
+
type: Input,
|
|
90
|
+
args: ['error-text']
|
|
91
|
+
}], errorVisible: [{
|
|
92
|
+
type: Input,
|
|
93
|
+
args: ['error-visible']
|
|
75
94
|
}] } });
|
|
76
95
|
|
|
77
96
|
class SprightChatInputModule {
|
|
@@ -1 +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 standalone: false\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 stopButtonLabel(): string | undefined {\n return this.elementRef.nativeElement.stopButtonLabel;\n }\n\n @Input('stop-button-label') public set stopButtonLabel(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'stopButtonLabel', value);\n }\n\n public get processing(): boolean | undefined {\n return this.elementRef.nativeElement.processing;\n }\n\n @Input('processing') public set processing(value: boolean | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'processing', value);\n }\n\n public get maxLength(): number | undefined {\n return this.elementRef.nativeElement.maxLength;\n }\n\n @Input('maxlength') public set maxLength(value: number | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'maxLength', 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":"
|
|
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 { BooleanValueOrAttribute } from '@ni/nimble-angular/internal-utilities';\nimport { type ChatInput, chatInputTag } from '@ni/spright-components/dist/esm/chat/input';\nimport type { ChatInputSendEventDetail } from '@ni/spright-components/dist/esm/chat/input/types';\nimport { toBooleanProperty } from '@ni/nimble-angular/internal-utilities';\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 standalone: false\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 stopButtonLabel(): string | undefined {\n return this.elementRef.nativeElement.stopButtonLabel;\n }\n\n @Input('stop-button-label') public set stopButtonLabel(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'stopButtonLabel', value);\n }\n\n public get processing(): boolean | undefined {\n return this.elementRef.nativeElement.processing;\n }\n\n @Input('processing') public set processing(value: boolean | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'processing', value);\n }\n\n public get maxLength(): number | undefined {\n return this.elementRef.nativeElement.maxLength;\n }\n\n @Input('maxlength') public set maxLength(value: number | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'maxLength', 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 get errorText(): string | undefined {\n return this.elementRef.nativeElement.errorText;\n }\n\n @Input('error-text') public set errorText(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'errorText', value);\n }\n\n public get errorVisible(): boolean {\n return this.elementRef.nativeElement.errorVisible;\n }\n\n @Input('error-visible') public set errorVisible(value: BooleanValueOrAttribute) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'errorVisible', toBooleanProperty(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":";;;;;;AAUA;;AAEG;MAKU,yBAAyB,CAAA;AAClC,IAAA,IAAW,WAAW,GAAA;AAClB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW;IACpD;IAEA,IAAoB,WAAW,CAAC,KAAyB,EAAA;AACrD,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,aAAa,EAAE,KAAK,CAAC;IAClF;AAEA,IAAA,IAAW,eAAe,GAAA;AACtB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,eAAe;IACxD;IAEA,IAAuC,eAAe,CAAC,KAAyB,EAAA;AAC5E,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,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AAO,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": "8.
|
|
3
|
+
"version": "8.5.0",
|
|
4
4
|
"description": "Angular components for NI Spright",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@angular/common": "^19.2.17",
|
|
26
26
|
"@angular/core": "^19.2.17",
|
|
27
27
|
"@angular/localize": "^19.2.17",
|
|
28
|
-
"@ni/spright-components": "^6.
|
|
28
|
+
"@ni/spright-components": "^6.10.0"
|
|
29
29
|
},
|
|
30
30
|
"module": "fesm2022/ni-spright-angular.mjs",
|
|
31
31
|
"typings": "index.d.ts",
|