@ni/spright-angular 10.2.0 → 11.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.
@@ -14,18 +14,6 @@ class SprightChatInputDirective {
14
14
  set placeholder(value) {
15
15
  this.renderer.setProperty(this.elementRef.nativeElement, 'placeholder', value);
16
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 stopButtonLabel() {
24
- return this.elementRef.nativeElement.stopButtonLabel;
25
- }
26
- set stopButtonLabel(value) {
27
- this.renderer.setProperty(this.elementRef.nativeElement, 'stopButtonLabel', value);
28
- }
29
17
  get processing() {
30
18
  return this.elementRef.nativeElement.processing;
31
19
  }
@@ -67,7 +55,7 @@ class SprightChatInputDirective {
67
55
  this.elementRef = elementRef;
68
56
  }
69
57
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: SprightChatInputDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
70
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.25", type: SprightChatInputDirective, isStandalone: false, selector: "spright-chat-input", inputs: { placeholder: "placeholder", sendButtonLabel: ["send-button-label", "sendButtonLabel"], stopButtonLabel: ["stop-button-label", "stopButtonLabel"], processing: "processing", sendDisabled: ["send-disabled", "sendDisabled"], maxLength: ["maxlength", "maxLength"], value: "value", errorText: ["error-text", "errorText"], errorVisible: ["error-visible", "errorVisible"] }, ngImport: i0 }); }
58
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.25", type: SprightChatInputDirective, isStandalone: false, selector: "spright-chat-input", inputs: { placeholder: "placeholder", processing: "processing", sendDisabled: ["send-disabled", "sendDisabled"], maxLength: ["maxlength", "maxLength"], value: "value", errorText: ["error-text", "errorText"], errorVisible: ["error-visible", "errorVisible"] }, ngImport: i0 }); }
71
59
  }
72
60
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: SprightChatInputDirective, decorators: [{
73
61
  type: Directive,
@@ -77,12 +65,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
77
65
  }]
78
66
  }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }], propDecorators: { placeholder: [{
79
67
  type: Input
80
- }], sendButtonLabel: [{
81
- type: Input,
82
- args: ['send-button-label']
83
- }], stopButtonLabel: [{
84
- type: Input,
85
- args: ['stop-button-label']
86
68
  }], processing: [{
87
69
  type: Input,
88
70
  args: ['processing']
@@ -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 { 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 sendDisabled(): boolean | undefined {\n return this.elementRef.nativeElement.sendDisabled;\n }\n\n @Input('send-disabled') public set sendDisabled(value: boolean | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'sendDisabled', 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,aAAa,EAAE,iBAAiB,EAAE,KAAK,CAAC;IACtF;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,aAAa,EAAE,iBAAiB,EAAE,KAAK,CAAC;IACtF;AAEA,IAAA,IAAW,UAAU,GAAA;AACjB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,UAAU;IACnD;IAEA,IAAgC,UAAU,CAAC,KAA0B,EAAA;AACjE,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,YAAY,EAAE,KAAK,CAAC;IACjF;AAEA,IAAA,IAAW,YAAY,GAAA;AACnB,QAA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sBAAsB,CAAA;+GAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAtB,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,EAAA,YAAA,EAAA,CAJhB,yBAAyB,CAAA,EAAA,OAAA,EAAA,CAC9B,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;;"}
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 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 sendDisabled(): boolean | undefined {\n return this.elementRef.nativeElement.sendDisabled;\n }\n\n @Input('send-disabled') public set sendDisabled(value: boolean | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'sendDisabled', 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,UAAU,GAAA;AACjB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,UAAU;IACnD;IAEA,IAAgC,UAAU,CAAC,KAA0B,EAAA;AACjE,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,YAAY,EAAE,KAAK,CAAC;IACjF;AAEA,IAAA,IAAW,YAAY,GAAA;AACnB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,YAAY;IACrD;IAEA,IAAmC,YAAY,CAAC,KAA0B,EAAA;AACtE,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,cAAc,EAAE,KAAK,CAAC;IACnF;AAEA,IAAA,IAAW,SAAS,GAAA;AAChB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS;IAClD;IAEA,IAA+B,SAAS,CAAC,KAAyB,EAAA;AAC9D,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,WAAW,EAAE,KAAK,CAAC;IAChF;AAEA,IAAA,IAAW,KAAK,GAAA;AACZ,QAAA,OAAO,IAA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AAA,CAAA;oBACN,YAAY,EAAE,CAAC,yBAAyB,CAAC;oBACzC,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,yBAAyB;AACtC,iBAAA;;;ACVD;;AAEG;;"}
@@ -0,0 +1,82 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Input, Directive, NgModule } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+ import '@ni/spright-components/dist/esm/label-provider/chat';
5
+
6
+ /**
7
+ * Directive to provide Angular integration for the Spright chat label provider.
8
+ * To use the Spright-provided strings declared via $localize, instead use SprightLabelProviderChatWithDefaultsDirective.
9
+ */
10
+ class SprightLabelProviderChatDirective {
11
+ constructor(renderer, elementRef) {
12
+ this.renderer = renderer;
13
+ this.elementRef = elementRef;
14
+ }
15
+ get send() {
16
+ return this.elementRef.nativeElement.send;
17
+ }
18
+ set send(value) {
19
+ this.renderer.setProperty(this.elementRef.nativeElement, 'send', value);
20
+ }
21
+ get stop() {
22
+ return this.elementRef.nativeElement.stop;
23
+ }
24
+ set stop(value) {
25
+ this.renderer.setProperty(this.elementRef.nativeElement, 'stop', value);
26
+ }
27
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: SprightLabelProviderChatDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
28
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.25", type: SprightLabelProviderChatDirective, isStandalone: false, selector: "spright-label-provider-chat", inputs: { send: "send", stop: "stop" }, ngImport: i0 }); }
29
+ }
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: SprightLabelProviderChatDirective, decorators: [{
31
+ type: Directive,
32
+ args: [{
33
+ selector: 'spright-label-provider-chat',
34
+ standalone: false
35
+ }]
36
+ }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }], propDecorators: { send: [{
37
+ type: Input
38
+ }], stop: [{
39
+ type: Input
40
+ }] } });
41
+
42
+ /**
43
+ * Directive for spright-label-provider-chat which initializes all labels with $localize-tagged strings.
44
+ */
45
+ class SprightLabelProviderChatWithDefaultsDirective {
46
+ constructor(renderer, elementRef) {
47
+ this.renderer = renderer;
48
+ this.elementRef = elementRef;
49
+ this.elementRef.nativeElement.send = $localize `:Spright chat - send|:Send`;
50
+ this.elementRef.nativeElement.stop = $localize `:Spright chat - stop|:Stop`;
51
+ }
52
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: SprightLabelProviderChatWithDefaultsDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
53
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.25", type: SprightLabelProviderChatWithDefaultsDirective, isStandalone: false, selector: "spright-label-provider-chat[withDefaults]", ngImport: i0 }); }
54
+ }
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: SprightLabelProviderChatWithDefaultsDirective, decorators: [{
56
+ type: Directive,
57
+ args: [{
58
+ selector: 'spright-label-provider-chat[withDefaults]',
59
+ standalone: false
60
+ }]
61
+ }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }] });
62
+
63
+ class SprightLabelProviderChatModule {
64
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: SprightLabelProviderChatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
65
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: SprightLabelProviderChatModule, declarations: [SprightLabelProviderChatDirective, SprightLabelProviderChatWithDefaultsDirective], imports: [CommonModule], exports: [SprightLabelProviderChatDirective, SprightLabelProviderChatWithDefaultsDirective] }); }
66
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: SprightLabelProviderChatModule, imports: [CommonModule] }); }
67
+ }
68
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: SprightLabelProviderChatModule, decorators: [{
69
+ type: NgModule,
70
+ args: [{
71
+ declarations: [SprightLabelProviderChatDirective, SprightLabelProviderChatWithDefaultsDirective],
72
+ imports: [CommonModule],
73
+ exports: [SprightLabelProviderChatDirective, SprightLabelProviderChatWithDefaultsDirective]
74
+ }]
75
+ }] });
76
+
77
+ /**
78
+ * Generated bundle index. Do not edit.
79
+ */
80
+
81
+ export { SprightLabelProviderChatDirective, SprightLabelProviderChatModule, SprightLabelProviderChatWithDefaultsDirective };
82
+ //# sourceMappingURL=ni-spright-angular-label-provider-chat.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ni-spright-angular-label-provider-chat.mjs","sources":["../../../spright-angular/label-provider/chat/spright-label-provider-chat.directive.ts","../../../spright-angular/label-provider/chat/spright-label-provider-chat-with-defaults.directive.ts","../../../spright-angular/label-provider/chat/spright-label-provider-chat.module.ts","../../../spright-angular/label-provider/chat/ni-spright-angular-label-provider-chat.ts"],"sourcesContent":["import { Directive, ElementRef, Input, Renderer2 } from '@angular/core';\nimport type { LabelProviderChat } from '@ni/spright-components/dist/esm/label-provider/chat';\n\nexport type { LabelProviderChat };\n\n/**\n * Directive to provide Angular integration for the Spright chat label provider.\n * To use the Spright-provided strings declared via $localize, instead use SprightLabelProviderChatWithDefaultsDirective.\n */\n@Directive({\n selector: 'spright-label-provider-chat',\n standalone: false\n})\nexport class SprightLabelProviderChatDirective {\n public constructor(protected readonly renderer: Renderer2, protected readonly elementRef: ElementRef<LabelProviderChat>) {\n }\n\n public get send(): string | undefined {\n return this.elementRef.nativeElement.send;\n }\n\n @Input() public set send(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'send', value);\n }\n\n public get stop(): string | undefined {\n return this.elementRef.nativeElement.stop;\n }\n\n @Input() public set stop(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'stop', value);\n }\n}","import { Directive, ElementRef, Renderer2 } from '@angular/core';\nimport type { LabelProviderChat } from '@ni/spright-components/dist/esm/label-provider/chat';\n\n/**\n * Directive for spright-label-provider-chat which initializes all labels with $localize-tagged strings.\n */\n@Directive({\n selector: 'spright-label-provider-chat[withDefaults]',\n standalone: false\n})\nexport class SprightLabelProviderChatWithDefaultsDirective {\n public constructor(protected readonly renderer: Renderer2, protected readonly elementRef: ElementRef<LabelProviderChat>) {\n this.elementRef.nativeElement.send = $localize`:Spright chat - send|:Send`;\n this.elementRef.nativeElement.stop = $localize`:Spright chat - stop|:Stop`;\n }\n}","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { SprightLabelProviderChatDirective } from './spright-label-provider-chat.directive';\nimport { SprightLabelProviderChatWithDefaultsDirective } from './spright-label-provider-chat-with-defaults.directive';\n\nimport '@ni/spright-components/dist/esm/label-provider/chat';\n\n@NgModule({\n declarations: [SprightLabelProviderChatDirective, SprightLabelProviderChatWithDefaultsDirective],\n imports: [CommonModule],\n exports: [SprightLabelProviderChatDirective, SprightLabelProviderChatWithDefaultsDirective]\n})\nexport class SprightLabelProviderChatModule { }","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAKA;;;AAGG;MAKU,iCAAiC,CAAA;IAC1C,WAAA,CAAsC,QAAmB,EAAqB,UAAyC,EAAA;QAAjF,IAAA,CAAA,QAAQ,GAAR,QAAQ;QAAgC,IAAA,CAAA,UAAU,GAAV,UAAU;IACxF;AAEA,IAAA,IAAW,IAAI,GAAA;AACX,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI;IAC7C;IAEA,IAAoB,IAAI,CAAC,KAAyB,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CAA6C;AAC7F,iBAAA;;;ACXD;;AAEG;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ni/spright-angular",
3
- "version": "10.2.0",
3
+ "version": "11.0.1",
4
4
  "description": "Angular components for NI Spright",
5
5
  "type": "module",
6
6
  "repository": {
@@ -25,7 +25,7 @@
25
25
  "@angular/common": "^21.2.21",
26
26
  "@angular/core": "^21.2.21",
27
27
  "@angular/localize": "^21.2.21",
28
- "@ni/spright-components": "^6.24.0"
28
+ "@ni/spright-components": "^7.1.0"
29
29
  },
30
30
  "module": "fesm2022/ni-spright-angular.mjs",
31
31
  "typings": "types/ni-spright-angular.d.ts",
@@ -133,6 +133,10 @@
133
133
  "types": "./types/ni-spright-angular-icons-work-item-wrench-hammer.d.ts",
134
134
  "default": "./fesm2022/ni-spright-angular-icons-work-item-wrench-hammer.mjs"
135
135
  },
136
+ "./label-provider/chat": {
137
+ "types": "./types/ni-spright-angular-label-provider-chat.d.ts",
138
+ "default": "./fesm2022/ni-spright-angular-label-provider-chat.mjs"
139
+ },
136
140
  "./rectangle": {
137
141
  "types": "./types/ni-spright-angular-rectangle.d.ts",
138
142
  "default": "./fesm2022/ni-spright-angular-rectangle.mjs"
@@ -14,10 +14,6 @@ declare class SprightChatInputDirective {
14
14
  private readonly elementRef;
15
15
  get placeholder(): string | undefined;
16
16
  set placeholder(value: string | undefined);
17
- get sendButtonLabel(): string | undefined;
18
- set sendButtonLabel(value: string | undefined);
19
- get stopButtonLabel(): string | undefined;
20
- set stopButtonLabel(value: string | undefined);
21
17
  get processing(): boolean | undefined;
22
18
  set processing(value: boolean | undefined);
23
19
  get sendDisabled(): boolean | undefined;
@@ -32,7 +28,7 @@ declare class SprightChatInputDirective {
32
28
  set errorVisible(value: BooleanValueOrAttribute);
33
29
  constructor(renderer: Renderer2, elementRef: ElementRef<ChatInput>);
34
30
  static ɵfac: i0.ɵɵFactoryDeclaration<SprightChatInputDirective, never>;
35
- 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; }; "sendDisabled": { "alias": "send-disabled"; "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>;
31
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SprightChatInputDirective, "spright-chat-input", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "processing": { "alias": "processing"; "required": false; }; "sendDisabled": { "alias": "send-disabled"; "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>;
36
32
  }
37
33
 
38
34
  declare class SprightChatInputModule {
@@ -0,0 +1,40 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Renderer2, ElementRef } from '@angular/core';
3
+ import { LabelProviderChat } from '@ni/spright-components/dist/esm/label-provider/chat';
4
+ export { LabelProviderChat } from '@ni/spright-components/dist/esm/label-provider/chat';
5
+ import * as i3 from '@angular/common';
6
+
7
+ /**
8
+ * Directive to provide Angular integration for the Spright chat label provider.
9
+ * To use the Spright-provided strings declared via $localize, instead use SprightLabelProviderChatWithDefaultsDirective.
10
+ */
11
+ declare class SprightLabelProviderChatDirective {
12
+ protected readonly renderer: Renderer2;
13
+ protected readonly elementRef: ElementRef<LabelProviderChat>;
14
+ constructor(renderer: Renderer2, elementRef: ElementRef<LabelProviderChat>);
15
+ get send(): string | undefined;
16
+ set send(value: string | undefined);
17
+ get stop(): string | undefined;
18
+ set stop(value: string | undefined);
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<SprightLabelProviderChatDirective, never>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SprightLabelProviderChatDirective, "spright-label-provider-chat", never, { "send": { "alias": "send"; "required": false; }; "stop": { "alias": "stop"; "required": false; }; }, {}, never, never, false, never>;
21
+ }
22
+
23
+ /**
24
+ * Directive for spright-label-provider-chat which initializes all labels with $localize-tagged strings.
25
+ */
26
+ declare class SprightLabelProviderChatWithDefaultsDirective {
27
+ protected readonly renderer: Renderer2;
28
+ protected readonly elementRef: ElementRef<LabelProviderChat>;
29
+ constructor(renderer: Renderer2, elementRef: ElementRef<LabelProviderChat>);
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<SprightLabelProviderChatWithDefaultsDirective, never>;
31
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SprightLabelProviderChatWithDefaultsDirective, "spright-label-provider-chat[withDefaults]", never, {}, {}, never, never, false, never>;
32
+ }
33
+
34
+ declare class SprightLabelProviderChatModule {
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<SprightLabelProviderChatModule, never>;
36
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SprightLabelProviderChatModule, [typeof SprightLabelProviderChatDirective, typeof SprightLabelProviderChatWithDefaultsDirective], [typeof i3.CommonModule], [typeof SprightLabelProviderChatDirective, typeof SprightLabelProviderChatWithDefaultsDirective]>;
37
+ static ɵinj: i0.ɵɵInjectorDeclaration<SprightLabelProviderChatModule>;
38
+ }
39
+
40
+ export { SprightLabelProviderChatDirective, SprightLabelProviderChatModule, SprightLabelProviderChatWithDefaultsDirective };