@breadstone/mosaik-elements-angular 0.0.166 → 0.0.167
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/CHANGELOG.md +4 -0
- package/fesm2022/mosaik-elements-angular.mjs +23 -11
- package/fesm2022/mosaik-elements-angular.mjs.map +1 -1
- package/index.d.ts +5 -3
- package/index.d.ts.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -10687,7 +10687,7 @@ const CHAT_INPUT_DEFAULT_PROPS = new InjectionToken('MOSAIK_CHAT_INPUT_DEFAULT_P
|
|
|
10687
10687
|
let ChatInputComponent = class ChatInputComponent {
|
|
10688
10688
|
_element;
|
|
10689
10689
|
_zone;
|
|
10690
|
-
|
|
10690
|
+
_chatSubmitted;
|
|
10691
10691
|
_chatAttachmentAdded;
|
|
10692
10692
|
_chatAttachmentRemoved;
|
|
10693
10693
|
_connected;
|
|
@@ -10697,8 +10697,8 @@ let ChatInputComponent = class ChatInputComponent {
|
|
|
10697
10697
|
inject(ChangeDetectorRef).detach();
|
|
10698
10698
|
this._element = inject(ElementRef).nativeElement;
|
|
10699
10699
|
this._zone = inject(NgZone);
|
|
10700
|
-
this.
|
|
10701
|
-
this._element.on('
|
|
10700
|
+
this._chatSubmitted = new EventEmitter();
|
|
10701
|
+
this._element.on('chatSubmitted', (e) => this.onEmit(this._chatSubmitted, e));
|
|
10702
10702
|
this._chatAttachmentAdded = new EventEmitter();
|
|
10703
10703
|
this._element.on('chatAttachmentAdded', (e) => this.onEmit(this._chatAttachmentAdded, e));
|
|
10704
10704
|
this._chatAttachmentRemoved = new EventEmitter();
|
|
@@ -10711,6 +10711,16 @@ let ChatInputComponent = class ChatInputComponent {
|
|
|
10711
10711
|
this._element.on('changed', (e) => this.onEmit(this._changed, e));
|
|
10712
10712
|
applyDefaults(this._element, inject(CHAT_INPUT_DEFAULT_PROPS, { optional: true }) ?? {});
|
|
10713
10713
|
}
|
|
10714
|
+
get submitted() {
|
|
10715
|
+
// @ts-ignore - temporary fix for the type error
|
|
10716
|
+
return this._element.submitted;
|
|
10717
|
+
}
|
|
10718
|
+
set submitted(value) {
|
|
10719
|
+
this._zone.runOutsideAngular(() => {
|
|
10720
|
+
// @ts-ignore - temporary fix for the type error
|
|
10721
|
+
this._element.submitted = value;
|
|
10722
|
+
});
|
|
10723
|
+
}
|
|
10714
10724
|
get value() {
|
|
10715
10725
|
// @ts-ignore - temporary fix for the type error
|
|
10716
10726
|
return this._element.value;
|
|
@@ -10791,8 +10801,8 @@ let ChatInputComponent = class ChatInputComponent {
|
|
|
10791
10801
|
this._element.lang = value;
|
|
10792
10802
|
});
|
|
10793
10803
|
}
|
|
10794
|
-
get
|
|
10795
|
-
return this.
|
|
10804
|
+
get chatSubmitted() {
|
|
10805
|
+
return this._chatSubmitted;
|
|
10796
10806
|
}
|
|
10797
10807
|
get chatAttachmentAdded() {
|
|
10798
10808
|
return this._chatAttachmentAdded;
|
|
@@ -10821,12 +10831,12 @@ let ChatInputComponent = class ChatInputComponent {
|
|
|
10821
10831
|
}
|
|
10822
10832
|
}
|
|
10823
10833
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: ChatInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10824
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: ChatInputComponent, isStandalone: true, selector: "mosaik-chat-input", inputs: { value: "value", placeholder: "placeholder", themeName: "themeName", variant: "variant", appearance: "appearance", disabled: "disabled", dir: "dir", lang: "lang" }, outputs: {
|
|
10834
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: ChatInputComponent, isStandalone: true, selector: "mosaik-chat-input", inputs: { submitted: "submitted", value: "value", placeholder: "placeholder", themeName: "themeName", variant: "variant", appearance: "appearance", disabled: "disabled", dir: "dir", lang: "lang" }, outputs: { chatSubmitted: "chatSubmitted", chatAttachmentAdded: "chatAttachmentAdded", chatAttachmentRemoved: "chatAttachmentRemoved", connected: "connected", disconnected: "disconnected", changed: "changed" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
10825
10835
|
};
|
|
10826
10836
|
ChatInputComponent = __decorate$2Z([
|
|
10827
10837
|
ProxyCmp({
|
|
10828
10838
|
defineCustomElementFn: () => customElements.define('mosaik-chat-input', ChatInputElement),
|
|
10829
|
-
inputs: ['value', 'placeholder', 'themeName', 'variant', 'appearance', 'disabled', 'dir', 'lang'],
|
|
10839
|
+
inputs: ['submitted', 'value', 'placeholder', 'themeName', 'variant', 'appearance', 'disabled', 'dir', 'lang'],
|
|
10830
10840
|
methods: ['send', 'clear', 'onApplyTemplate', 'onSlotChanges', 'assignToSlot', 'getSlotAssignments', 'getSlotAssignmentsOf', 'hasSlotContent', 'hasSlot', 'adoptStyle', 'on', 'off', 'emit', 'requestUpdate']
|
|
10831
10841
|
}),
|
|
10832
10842
|
__metadata$2Z("design:paramtypes", [])
|
|
@@ -10838,10 +10848,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImpor
|
|
|
10838
10848
|
standalone: true,
|
|
10839
10849
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10840
10850
|
template: '<ng-content></ng-content>',
|
|
10841
|
-
inputs: ['value', 'placeholder', 'themeName', 'variant', 'appearance', 'disabled', 'dir', 'lang'],
|
|
10842
|
-
outputs: ['
|
|
10851
|
+
inputs: ['submitted', 'value', 'placeholder', 'themeName', 'variant', 'appearance', 'disabled', 'dir', 'lang'],
|
|
10852
|
+
outputs: ['chatSubmitted', 'chatAttachmentAdded', 'chatAttachmentRemoved', 'connected', 'disconnected', 'changed']
|
|
10843
10853
|
}]
|
|
10844
|
-
}], ctorParameters: () => [], propDecorators: {
|
|
10854
|
+
}], ctorParameters: () => [], propDecorators: { submitted: [{
|
|
10855
|
+
type: Input
|
|
10856
|
+
}], value: [{
|
|
10845
10857
|
type: Input
|
|
10846
10858
|
}], placeholder: [{
|
|
10847
10859
|
type: Input
|
|
@@ -10857,7 +10869,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImpor
|
|
|
10857
10869
|
type: Input
|
|
10858
10870
|
}], lang: [{
|
|
10859
10871
|
type: Input
|
|
10860
|
-
}],
|
|
10872
|
+
}], chatSubmitted: [{
|
|
10861
10873
|
type: Output
|
|
10862
10874
|
}], chatAttachmentAdded: [{
|
|
10863
10875
|
type: Output
|