@ni/spright-angular 9.4.4 → 9.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,13 +1,21 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import
|
|
2
|
+
import { Renderer2, ElementRef } from '@angular/core';
|
|
3
|
+
import { BooleanValueOrAttribute } from '@ni/nimble-angular/internal-utilities';
|
|
4
|
+
import { ChatConversation } from '@ni/spright-components/dist/esm/chat/conversation';
|
|
3
5
|
export { ChatConversation, chatConversationTag } from '@ni/spright-components/dist/esm/chat/conversation';
|
|
6
|
+
import * as i2 from '@angular/common';
|
|
4
7
|
|
|
5
8
|
/**
|
|
6
9
|
* Directive to provide Angular integration for the chat conversation.
|
|
7
10
|
*/
|
|
8
11
|
declare class SprightChatConversationDirective {
|
|
12
|
+
private readonly renderer;
|
|
13
|
+
private readonly elementRef;
|
|
14
|
+
get autoScroll(): boolean;
|
|
15
|
+
set autoScroll(value: BooleanValueOrAttribute);
|
|
16
|
+
constructor(renderer: Renderer2, elementRef: ElementRef<ChatConversation>);
|
|
9
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<SprightChatConversationDirective, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SprightChatConversationDirective, "spright-chat-conversation", never, {}, {}, never, never, false, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SprightChatConversationDirective, "spright-chat-conversation", never, { "autoScroll": { "alias": "auto-scroll"; "required": false; }; }, {}, never, never, false, never>;
|
|
11
19
|
}
|
|
12
20
|
|
|
13
21
|
declare class SprightChatConversationModule {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Directive, NgModule } from '@angular/core';
|
|
2
|
+
import { Input, Directive, NgModule } from '@angular/core';
|
|
3
|
+
import { toBooleanProperty } from '@ni/nimble-angular/internal-utilities';
|
|
3
4
|
export { chatConversationTag } from '@ni/spright-components/dist/esm/chat/conversation';
|
|
4
5
|
import { CommonModule } from '@angular/common';
|
|
5
6
|
|
|
@@ -7,8 +8,18 @@ import { CommonModule } from '@angular/common';
|
|
|
7
8
|
* Directive to provide Angular integration for the chat conversation.
|
|
8
9
|
*/
|
|
9
10
|
class SprightChatConversationDirective {
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
get autoScroll() {
|
|
12
|
+
return this.elementRef.nativeElement.autoScroll;
|
|
13
|
+
}
|
|
14
|
+
set autoScroll(value) {
|
|
15
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'autoScroll', toBooleanProperty(value));
|
|
16
|
+
}
|
|
17
|
+
constructor(renderer, elementRef) {
|
|
18
|
+
this.renderer = renderer;
|
|
19
|
+
this.elementRef = elementRef;
|
|
20
|
+
}
|
|
21
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SprightChatConversationDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
22
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: SprightChatConversationDirective, isStandalone: false, selector: "spright-chat-conversation", inputs: { autoScroll: ["auto-scroll", "autoScroll"] }, ngImport: i0 }); }
|
|
12
23
|
}
|
|
13
24
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SprightChatConversationDirective, decorators: [{
|
|
14
25
|
type: Directive,
|
|
@@ -16,7 +27,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
16
27
|
selector: 'spright-chat-conversation',
|
|
17
28
|
standalone: false
|
|
18
29
|
}]
|
|
19
|
-
}] }
|
|
30
|
+
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }], propDecorators: { autoScroll: [{
|
|
31
|
+
type: Input,
|
|
32
|
+
args: ['auto-scroll']
|
|
33
|
+
}] } });
|
|
20
34
|
|
|
21
35
|
class SprightChatConversationModule {
|
|
22
36
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SprightChatConversationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ni-spright-angular-chat-conversation.mjs","sources":["../../../spright-angular/chat/conversation/spright-chat-conversation.directive.ts","../../../spright-angular/chat/conversation/spright-chat-conversation.module.ts","../../../spright-angular/chat/conversation/ni-spright-angular-chat-conversation.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { type ChatConversation, chatConversationTag } from '@ni/spright-components/dist/esm/chat/conversation';\n\nexport type { ChatConversation };\nexport { chatConversationTag };\n\n/**\n * Directive to provide Angular integration for the chat conversation.\n */\n@Directive({\n selector: 'spright-chat-conversation',\n standalone: false\n})\nexport class SprightChatConversationDirective { }\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SprightChatConversationDirective } from './spright-chat-conversation.directive';\n\nimport '@ni/spright-components/dist/esm/chat/conversation';\n\n@NgModule({\n declarations: [\n SprightChatConversationDirective,\n ],\n imports: [CommonModule],\n exports: [\n SprightChatConversationDirective,\n ]\n})\nexport class SprightChatConversationModule { }\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-conversation.mjs","sources":["../../../spright-angular/chat/conversation/spright-chat-conversation.directive.ts","../../../spright-angular/chat/conversation/spright-chat-conversation.module.ts","../../../spright-angular/chat/conversation/ni-spright-angular-chat-conversation.ts"],"sourcesContent":["import { Directive, ElementRef, Input, Renderer2 } from '@angular/core';\nimport { toBooleanProperty, type BooleanValueOrAttribute } from '@ni/nimble-angular/internal-utilities';\nimport { type ChatConversation, chatConversationTag } from '@ni/spright-components/dist/esm/chat/conversation';\n\nexport type { ChatConversation };\nexport { chatConversationTag };\n\n/**\n * Directive to provide Angular integration for the chat conversation.\n */\n@Directive({\n selector: 'spright-chat-conversation',\n standalone: false\n})\nexport class SprightChatConversationDirective {\n public get autoScroll(): boolean {\n return this.elementRef.nativeElement.autoScroll;\n }\n\n @Input('auto-scroll') public set autoScroll(value: BooleanValueOrAttribute) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'autoScroll', toBooleanProperty(value));\n }\n\n public constructor(private readonly renderer: Renderer2, private readonly elementRef: ElementRef<ChatConversation>) {}\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SprightChatConversationDirective } from './spright-chat-conversation.directive';\n\nimport '@ni/spright-components/dist/esm/chat/conversation';\n\n@NgModule({\n declarations: [\n SprightChatConversationDirective,\n ],\n imports: [CommonModule],\n exports: [\n SprightChatConversationDirective,\n ]\n})\nexport class SprightChatConversationModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAOA;;AAEG;MAKU,gCAAgC,CAAA;AACzC,IAAA,IAAW,UAAU,GAAA;AACjB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,UAAU;IACnD;IAEA,IAAiC,UAAU,CAAC,KAA8B,EAAA;AACtE,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,YAAY,EAAE,iBAAiB,CAAC,KAAK,CAAC,CAAC;IACpG;IAEA,WAAA,CAAoC,QAAmB,EAAmB,UAAwC,EAAA;QAA9E,IAAA,CAAA,QAAQ,GAAR,QAAQ;QAA8B,IAAA,CAAA,UAAU,GAAV,UAAU;IAAiC;+GAT5G,gCAAgC,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,SAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UA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;AACvB,oBAAA,OAAO,EAAE;wBACL,gCAAgC;AACnC;AACJ,iBAAA;;;ACdD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ni/spright-angular",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.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": "^20.3.19",
|
|
26
26
|
"@angular/core": "^20.3.19",
|
|
27
27
|
"@angular/localize": "^20.3.19",
|
|
28
|
-
"@ni/spright-components": "^6.
|
|
28
|
+
"@ni/spright-components": "^6.21.0"
|
|
29
29
|
},
|
|
30
30
|
"module": "fesm2022/ni-spright-angular.mjs",
|
|
31
31
|
"typings": "index.d.ts",
|