@ni/spright-angular 9.0.11 → 9.1.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/chat/message/welcome/index.d.ts +28 -0
- package/fesm2022/ni-spright-angular-chat-message-welcome.mjs +65 -0
- package/fesm2022/ni-spright-angular-chat-message-welcome.mjs.map +1 -0
- package/fesm2022/ni-spright-angular-icons-nigel-chat.mjs +26 -0
- package/fesm2022/ni-spright-angular-icons-nigel-chat.mjs.map +1 -0
- package/icons/nigel-chat/index.d.ts +13 -0
- package/package.json +10 -2
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Renderer2, ElementRef } from '@angular/core';
|
|
3
|
+
import { ChatMessageWelcome } from '@ni/spright-components/dist/esm/chat/message/welcome';
|
|
4
|
+
export { ChatMessageWelcome, chatMessageWelcomeTag } from '@ni/spright-components/dist/esm/chat/message/welcome';
|
|
5
|
+
import * as i2 from '@angular/common';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Directive to provide Angular integration for the chat welcome message.
|
|
9
|
+
*/
|
|
10
|
+
declare class SprightChatMessageWelcomeDirective {
|
|
11
|
+
private readonly renderer;
|
|
12
|
+
private readonly elementRef;
|
|
13
|
+
get welcomeTitle(): string | undefined;
|
|
14
|
+
set welcomeTitle(value: string | undefined);
|
|
15
|
+
get subtitle(): string | undefined;
|
|
16
|
+
set subtitle(value: string | undefined);
|
|
17
|
+
constructor(renderer: Renderer2, elementRef: ElementRef<ChatMessageWelcome>);
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SprightChatMessageWelcomeDirective, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SprightChatMessageWelcomeDirective, "spright-chat-message-welcome", never, { "welcomeTitle": { "alias": "welcome-title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; }, {}, never, never, false, never>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare class SprightChatMessageWelcomeModule {
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SprightChatMessageWelcomeModule, never>;
|
|
24
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SprightChatMessageWelcomeModule, [typeof SprightChatMessageWelcomeDirective], [typeof i2.CommonModule], [typeof SprightChatMessageWelcomeDirective]>;
|
|
25
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SprightChatMessageWelcomeModule>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { SprightChatMessageWelcomeDirective, SprightChatMessageWelcomeModule };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Input, Directive, NgModule } from '@angular/core';
|
|
3
|
+
export { chatMessageWelcomeTag } from '@ni/spright-components/dist/esm/chat/message/welcome';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Directive to provide Angular integration for the chat welcome message.
|
|
8
|
+
*/
|
|
9
|
+
class SprightChatMessageWelcomeDirective {
|
|
10
|
+
get welcomeTitle() {
|
|
11
|
+
return this.elementRef.nativeElement.welcomeTitle;
|
|
12
|
+
}
|
|
13
|
+
set welcomeTitle(value) {
|
|
14
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'welcomeTitle', value);
|
|
15
|
+
}
|
|
16
|
+
get subtitle() {
|
|
17
|
+
return this.elementRef.nativeElement.subtitle;
|
|
18
|
+
}
|
|
19
|
+
set subtitle(value) {
|
|
20
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'subtitle', value);
|
|
21
|
+
}
|
|
22
|
+
constructor(renderer, elementRef) {
|
|
23
|
+
this.renderer = renderer;
|
|
24
|
+
this.elementRef = elementRef;
|
|
25
|
+
}
|
|
26
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: SprightChatMessageWelcomeDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
27
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.18", type: SprightChatMessageWelcomeDirective, isStandalone: false, selector: "spright-chat-message-welcome", inputs: { welcomeTitle: ["welcome-title", "welcomeTitle"], subtitle: "subtitle" }, ngImport: i0 }); }
|
|
28
|
+
}
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: SprightChatMessageWelcomeDirective, decorators: [{
|
|
30
|
+
type: Directive,
|
|
31
|
+
args: [{
|
|
32
|
+
selector: 'spright-chat-message-welcome',
|
|
33
|
+
standalone: false
|
|
34
|
+
}]
|
|
35
|
+
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }], propDecorators: { welcomeTitle: [{
|
|
36
|
+
type: Input,
|
|
37
|
+
args: ['welcome-title']
|
|
38
|
+
}], subtitle: [{
|
|
39
|
+
type: Input
|
|
40
|
+
}] } });
|
|
41
|
+
|
|
42
|
+
class SprightChatMessageWelcomeModule {
|
|
43
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: SprightChatMessageWelcomeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
44
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.18", ngImport: i0, type: SprightChatMessageWelcomeModule, declarations: [SprightChatMessageWelcomeDirective], imports: [CommonModule], exports: [SprightChatMessageWelcomeDirective] }); }
|
|
45
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: SprightChatMessageWelcomeModule, imports: [CommonModule] }); }
|
|
46
|
+
}
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: SprightChatMessageWelcomeModule, decorators: [{
|
|
48
|
+
type: NgModule,
|
|
49
|
+
args: [{
|
|
50
|
+
declarations: [
|
|
51
|
+
SprightChatMessageWelcomeDirective
|
|
52
|
+
],
|
|
53
|
+
imports: [CommonModule],
|
|
54
|
+
exports: [
|
|
55
|
+
SprightChatMessageWelcomeDirective
|
|
56
|
+
]
|
|
57
|
+
}]
|
|
58
|
+
}] });
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Generated bundle index. Do not edit.
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
export { SprightChatMessageWelcomeDirective, SprightChatMessageWelcomeModule };
|
|
65
|
+
//# sourceMappingURL=ni-spright-angular-chat-message-welcome.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ni-spright-angular-chat-message-welcome.mjs","sources":["../../../spright-angular/chat/message/welcome/spright-chat-message-welcome.directive.ts","../../../spright-angular/chat/message/welcome/spright-chat-message-welcome.module.ts","../../../spright-angular/chat/message/welcome/ni-spright-angular-chat-message-welcome.ts"],"sourcesContent":["import { Directive, ElementRef, Input, Renderer2 } from '@angular/core';\nimport { type ChatMessageWelcome, chatMessageWelcomeTag } from '@ni/spright-components/dist/esm/chat/message/welcome';\n\nexport type { ChatMessageWelcome };\nexport { chatMessageWelcomeTag };\n\n/**\n * Directive to provide Angular integration for the chat welcome message.\n */\n@Directive({\n selector: 'spright-chat-message-welcome',\n standalone: false\n})\nexport class SprightChatMessageWelcomeDirective {\n public get welcomeTitle(): string | undefined {\n return this.elementRef.nativeElement.welcomeTitle;\n }\n\n @Input('welcome-title') public set welcomeTitle(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'welcomeTitle', value);\n }\n\n public get subtitle(): string | undefined {\n return this.elementRef.nativeElement.subtitle;\n }\n\n @Input() public set subtitle(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'subtitle', value);\n }\n\n public constructor(private readonly renderer: Renderer2, private readonly elementRef: ElementRef<ChatMessageWelcome>) {}\n}","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SprightChatMessageWelcomeDirective } from './spright-chat-message-welcome.directive';\n\nimport '@ni/spright-components/dist/esm/chat/message/welcome';\n\n@NgModule({\n declarations: [\n SprightChatMessageWelcomeDirective\n ],\n imports: [CommonModule],\n exports: [\n SprightChatMessageWelcomeDirective\n ]\n})\nexport class SprightChatMessageWelcomeModule { }","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAMA;;AAEG;MAKU,kCAAkC,CAAA;AAC3C,IAAA,IAAW,YAAY,GAAA;AACnB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,YAAY;IACrD;IAEA,IAAmC,YAAY,CAAC,KAAyB,EAAA;AACrE,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,cAAc,EAAE,KAAK,CAAC;IACnF;AAEA,IAAA,IAAW,QAAQ,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,QAAQ;IACjD;IAEA,IAAoB,QAAQ,CAAC,KAAyB,EAAA;AAClD,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,UAAU,EAAE,KAAK,CAAC;IAC/E;IAEA,WAAA,CAAoC,QAAmB,EAAmB,UAA0C,EAAA;QAAhF,IAAA,CAAA,QAAQ,GAAR,QAAQ;QAA8B,IAAA,CAAA,UAAU,GAAV,UAAU;IAAmC;+GAjB9G,kCAAkC,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,SAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA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ACdD;;AAEG;;;;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive } from '@angular/core';
|
|
3
|
+
export { iconNigelChatTag } from '@ni/spright-components/dist/esm/icons/nigel-chat';
|
|
4
|
+
import { SprightIconBaseDirective } from '@ni/spright-angular/icon-base';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Spright Nigel chat brand icon directive
|
|
8
|
+
*/
|
|
9
|
+
class SprightIconNigelChatDirective extends SprightIconBaseDirective {
|
|
10
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: SprightIconNigelChatDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
11
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.18", type: SprightIconNigelChatDirective, isStandalone: true, selector: "spright-icon-nigel-chat", usesInheritance: true, ngImport: i0 }); }
|
|
12
|
+
}
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: SprightIconNigelChatDirective, decorators: [{
|
|
14
|
+
type: Directive,
|
|
15
|
+
args: [{
|
|
16
|
+
selector: 'spright-icon-nigel-chat',
|
|
17
|
+
standalone: true
|
|
18
|
+
}]
|
|
19
|
+
}] });
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Generated bundle index. Do not edit.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
export { SprightIconNigelChatDirective };
|
|
26
|
+
//# sourceMappingURL=ni-spright-angular-icons-nigel-chat.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ni-spright-angular-icons-nigel-chat.mjs","sources":["../../../spright-angular/icons/nigel-chat/spright-icon-nigel-chat.directive.ts","../../../spright-angular/icons/nigel-chat/ni-spright-angular-icons-nigel-chat.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { type IconNigelChat, iconNigelChatTag } from '@ni/spright-components/dist/esm/icons/nigel-chat';\nimport '@ni/spright-components/dist/esm/icons/nigel-chat';\nimport { SprightIconBaseDirective } from '@ni/spright-angular/icon-base';\n\nexport { type IconNigelChat, iconNigelChatTag };\n\n/**\n * Spright Nigel chat brand icon directive\n */\n@Directive({\n selector: 'spright-icon-nigel-chat',\n standalone: true\n})\nexport class SprightIconNigelChatDirective extends SprightIconBaseDirective {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './spright-icon-nigel-chat.directive';\n"],"names":[],"mappings":";;;;;AAOA;;AAEG;AAKG,MAAO,6BAA8B,SAAQ,wBAAwB,CAAA;+GAA9D,6BAA6B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAA7B,6BAA6B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,yBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAJzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,yBAAyB;AACnC,oBAAA,UAAU,EAAE;AACf,iBAAA;;;ACbD;;AAEG;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SprightIconBaseDirective } from '@ni/spright-angular/icon-base';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
export { IconNigelChat, iconNigelChatTag } from '@ni/spright-components/dist/esm/icons/nigel-chat';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Spright Nigel chat brand icon directive
|
|
7
|
+
*/
|
|
8
|
+
declare class SprightIconNigelChatDirective extends SprightIconBaseDirective {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SprightIconNigelChatDirective, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SprightIconNigelChatDirective, "spright-icon-nigel-chat", never, {}, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { SprightIconNigelChatDirective };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ni/spright-angular",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.1.1",
|
|
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.15",
|
|
26
26
|
"@angular/core": "^20.3.15",
|
|
27
27
|
"@angular/localize": "^20.3.15",
|
|
28
|
-
"@ni/spright-components": "^6.
|
|
28
|
+
"@ni/spright-components": "^6.17.0"
|
|
29
29
|
},
|
|
30
30
|
"module": "fesm2022/ni-spright-angular.mjs",
|
|
31
31
|
"typings": "index.d.ts",
|
|
@@ -65,10 +65,18 @@
|
|
|
65
65
|
"types": "./chat/message/system/index.d.ts",
|
|
66
66
|
"default": "./fesm2022/ni-spright-angular-chat-message-system.mjs"
|
|
67
67
|
},
|
|
68
|
+
"./chat/message/welcome": {
|
|
69
|
+
"types": "./chat/message/welcome/index.d.ts",
|
|
70
|
+
"default": "./fesm2022/ni-spright-angular-chat-message-welcome.mjs"
|
|
71
|
+
},
|
|
68
72
|
"./icon-base": {
|
|
69
73
|
"types": "./icon-base/index.d.ts",
|
|
70
74
|
"default": "./fesm2022/ni-spright-angular-icon-base.mjs"
|
|
71
75
|
},
|
|
76
|
+
"./icons/nigel-chat": {
|
|
77
|
+
"types": "./icons/nigel-chat/index.d.ts",
|
|
78
|
+
"default": "./fesm2022/ni-spright-angular-icons-nigel-chat.mjs"
|
|
79
|
+
},
|
|
72
80
|
"./icons/work-item-calendar-week": {
|
|
73
81
|
"types": "./icons/work-item-calendar-week/index.d.ts",
|
|
74
82
|
"default": "./fesm2022/ni-spright-angular-icons-work-item-calendar-week.mjs"
|