@breadstone/mosaik-elements-angular 0.0.128 → 0.0.130

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 CHANGED
@@ -1,3 +1,17 @@
1
+ ## 0.0.130 (2025-08-22)
2
+
3
+ ### 🚀 Features
4
+
5
+ - add appearance property to ChatMarker components and update styles for new appearances ([23a86826b3](https://github.com/RueDeRennes/mosaik/commit/23a86826b3))
6
+ - update event names for recorder events to camelCase format ([bfd76cfe4b](https://github.com/RueDeRennes/mosaik/commit/bfd76cfe4b))
7
+
8
+ ## 0.0.129 (2025-08-22)
9
+
10
+ ### 🚀 Features
11
+
12
+ - add filePicked event to AttachmentChatTool component across multiple frameworks ([1c4744bc41](https://github.com/RueDeRennes/mosaik/commit/1c4744bc41))
13
+ - **voice-recorder:** add event handling for recording actions and update component props ([e78be3a04d](https://github.com/RueDeRennes/mosaik/commit/e78be3a04d))
14
+
1
15
  ## 0.0.128 (2025-08-22)
2
16
 
3
17
  ### 🚀 Features
@@ -1100,6 +1100,7 @@ const ATTACHMENT_CHAT_TOOL_DEFAULT_PROPS = new InjectionToken('MOSAIK_ATTACHMENT
1100
1100
  let AttachmentChatToolComponent = class AttachmentChatToolComponent {
1101
1101
  _element;
1102
1102
  _zone;
1103
+ _filePicked;
1103
1104
  _connected;
1104
1105
  _disconnected;
1105
1106
  _changed;
@@ -1107,6 +1108,8 @@ let AttachmentChatToolComponent = class AttachmentChatToolComponent {
1107
1108
  inject(ChangeDetectorRef).detach();
1108
1109
  this._element = inject(ElementRef).nativeElement;
1109
1110
  this._zone = inject(NgZone);
1111
+ this._filePicked = new EventEmitter();
1112
+ this._element.on('filePicked', (e) => this.onEmit(this._filePicked, e));
1110
1113
  this._connected = new EventEmitter();
1111
1114
  this._element.on('connected', (e) => this.onEmit(this._connected, e));
1112
1115
  this._disconnected = new EventEmitter();
@@ -1215,6 +1218,9 @@ let AttachmentChatToolComponent = class AttachmentChatToolComponent {
1215
1218
  this._element.lang = value;
1216
1219
  });
1217
1220
  }
1221
+ get filePicked() {
1222
+ return this._filePicked;
1223
+ }
1218
1224
  get connected() {
1219
1225
  return this._connected;
1220
1226
  }
@@ -1236,7 +1242,7 @@ let AttachmentChatToolComponent = class AttachmentChatToolComponent {
1236
1242
  }
1237
1243
  }
1238
1244
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AttachmentChatToolComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1239
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: AttachmentChatToolComponent, isStandalone: true, selector: "mosaik-attachment-chat-tool", inputs: { multiple: "multiple", accept: "accept", directory: "directory", maxFiles: "maxFiles", maxFileSize: "maxFileSize", themeName: "themeName", dock: "dock", disabled: "disabled", dir: "dir", lang: "lang" }, outputs: { connected: "connected", disconnected: "disconnected", changed: "changed" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1245
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: AttachmentChatToolComponent, isStandalone: true, selector: "mosaik-attachment-chat-tool", inputs: { multiple: "multiple", accept: "accept", directory: "directory", maxFiles: "maxFiles", maxFileSize: "maxFileSize", themeName: "themeName", dock: "dock", disabled: "disabled", dir: "dir", lang: "lang" }, outputs: { filePicked: "filePicked", connected: "connected", disconnected: "disconnected", changed: "changed" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1240
1246
  };
1241
1247
  AttachmentChatToolComponent = __decorate$3u([
1242
1248
  ProxyCmp({
@@ -1254,7 +1260,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
1254
1260
  changeDetection: ChangeDetectionStrategy.OnPush,
1255
1261
  template: '<ng-content></ng-content>',
1256
1262
  inputs: ['multiple', 'accept', 'directory', 'maxFiles', 'maxFileSize', 'themeName', 'dock', 'disabled', 'dir', 'lang'],
1257
- outputs: ['connected', 'disconnected', 'changed']
1263
+ outputs: ['filePicked', 'connected', 'disconnected', 'changed']
1258
1264
  }]
1259
1265
  }], ctorParameters: () => [], propDecorators: { multiple: [{
1260
1266
  type: Input
@@ -1276,6 +1282,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
1276
1282
  type: Input
1277
1283
  }], lang: [{
1278
1284
  type: Input
1285
+ }], filePicked: [{
1286
+ type: Output
1279
1287
  }], connected: [{
1280
1288
  type: Output
1281
1289
  }], disconnected: [{
@@ -9772,6 +9780,16 @@ let ChatMarkerComponent = class ChatMarkerComponent {
9772
9780
  this._element.formatter = value;
9773
9781
  });
9774
9782
  }
9783
+ get appearance() {
9784
+ // @ts-ignore - temporary fix for the type error
9785
+ return this._element.appearance;
9786
+ }
9787
+ set appearance(value) {
9788
+ this._zone.runOutsideAngular(() => {
9789
+ // @ts-ignore - temporary fix for the type error
9790
+ this._element.appearance = value;
9791
+ });
9792
+ }
9775
9793
  get dir() {
9776
9794
  // @ts-ignore - temporary fix for the type error
9777
9795
  return this._element.dir;
@@ -9813,12 +9831,12 @@ let ChatMarkerComponent = class ChatMarkerComponent {
9813
9831
  }
9814
9832
  }
9815
9833
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: ChatMarkerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9816
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: ChatMarkerComponent, isStandalone: true, selector: "mosaik-chat-marker", inputs: { text: "text", icon: "icon", themeName: "themeName", variant: "variant", orientation: "orientation", horizontalContentAlignment: "horizontalContentAlignment", verticalContentAlignment: "verticalContentAlignment", isSticky: "isSticky", formatter: "formatter", dir: "dir", lang: "lang" }, outputs: { connected: "connected", disconnected: "disconnected", changed: "changed" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
9834
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: ChatMarkerComponent, isStandalone: true, selector: "mosaik-chat-marker", inputs: { text: "text", icon: "icon", themeName: "themeName", variant: "variant", orientation: "orientation", horizontalContentAlignment: "horizontalContentAlignment", verticalContentAlignment: "verticalContentAlignment", isSticky: "isSticky", formatter: "formatter", appearance: "appearance", dir: "dir", lang: "lang" }, outputs: { connected: "connected", disconnected: "disconnected", changed: "changed" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
9817
9835
  };
9818
9836
  ChatMarkerComponent = __decorate$2V([
9819
9837
  ProxyCmp({
9820
9838
  defineCustomElementFn: () => customElements.define('mosaik-chat-marker', ChatMarkerElement),
9821
- inputs: ['text', 'icon', 'themeName', 'variant', 'orientation', 'horizontalContentAlignment', 'verticalContentAlignment', 'isSticky', 'formatter', 'dir', 'lang'],
9839
+ inputs: ['text', 'icon', 'themeName', 'variant', 'orientation', 'horizontalContentAlignment', 'verticalContentAlignment', 'isSticky', 'formatter', 'appearance', 'dir', 'lang'],
9822
9840
  methods: ['adoptStyle', 'on', 'off', 'emit', 'requestUpdate']
9823
9841
  }),
9824
9842
  __metadata$2V("design:paramtypes", [])
@@ -9830,7 +9848,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
9830
9848
  standalone: true,
9831
9849
  changeDetection: ChangeDetectionStrategy.OnPush,
9832
9850
  template: '<ng-content></ng-content>',
9833
- inputs: ['text', 'icon', 'themeName', 'variant', 'orientation', 'horizontalContentAlignment', 'verticalContentAlignment', 'isSticky', 'formatter', 'dir', 'lang'],
9851
+ inputs: ['text', 'icon', 'themeName', 'variant', 'orientation', 'horizontalContentAlignment', 'verticalContentAlignment', 'isSticky', 'formatter', 'appearance', 'dir', 'lang'],
9834
9852
  outputs: ['connected', 'disconnected', 'changed']
9835
9853
  }]
9836
9854
  }], ctorParameters: () => [], propDecorators: { text: [{
@@ -9851,6 +9869,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
9851
9869
  type: Input
9852
9870
  }], formatter: [{
9853
9871
  type: Input
9872
+ }], appearance: [{
9873
+ type: Input
9854
9874
  }], dir: [{
9855
9875
  type: Input
9856
9876
  }], lang: [{
@@ -55008,6 +55028,11 @@ const VOICE_RECORDER_CHAT_TOOL_DEFAULT_PROPS = new InjectionToken('MOSAIK_VOICE_
55008
55028
  let VoiceRecorderChatToolComponent = class VoiceRecorderChatToolComponent {
55009
55029
  _element;
55010
55030
  _zone;
55031
+ _recCancel;
55032
+ _recStart;
55033
+ _recPause;
55034
+ _recResume;
55035
+ _recStop;
55011
55036
  _connected;
55012
55037
  _disconnected;
55013
55038
  _changed;
@@ -55015,6 +55040,16 @@ let VoiceRecorderChatToolComponent = class VoiceRecorderChatToolComponent {
55015
55040
  inject(ChangeDetectorRef).detach();
55016
55041
  this._element = inject(ElementRef).nativeElement;
55017
55042
  this._zone = inject(NgZone);
55043
+ this._recCancel = new EventEmitter();
55044
+ this._element.on('recCancel', (e) => this.onEmit(this._recCancel, e));
55045
+ this._recStart = new EventEmitter();
55046
+ this._element.on('recStart', (e) => this.onEmit(this._recStart, e));
55047
+ this._recPause = new EventEmitter();
55048
+ this._element.on('recPause', (e) => this.onEmit(this._recPause, e));
55049
+ this._recResume = new EventEmitter();
55050
+ this._element.on('recResume', (e) => this.onEmit(this._recResume, e));
55051
+ this._recStop = new EventEmitter();
55052
+ this._element.on('recStop', (e) => this.onEmit(this._recStop, e));
55018
55053
  this._connected = new EventEmitter();
55019
55054
  this._element.on('connected', (e) => this.onEmit(this._connected, e));
55020
55055
  this._disconnected = new EventEmitter();
@@ -55023,56 +55058,6 @@ let VoiceRecorderChatToolComponent = class VoiceRecorderChatToolComponent {
55023
55058
  this._element.on('changed', (e) => this.onEmit(this._changed, e));
55024
55059
  applyDefaults(this._element, inject(VOICE_RECORDER_CHAT_TOOL_DEFAULT_PROPS, { optional: true }) ?? {});
55025
55060
  }
55026
- get recCancel() {
55027
- // @ts-ignore - temporary fix for the type error
55028
- return this._element.recCancel;
55029
- }
55030
- set recCancel(value) {
55031
- this._zone.runOutsideAngular(() => {
55032
- // @ts-ignore - temporary fix for the type error
55033
- this._element.recCancel = value;
55034
- });
55035
- }
55036
- get recResume() {
55037
- // @ts-ignore - temporary fix for the type error
55038
- return this._element.recResume;
55039
- }
55040
- set recResume(value) {
55041
- this._zone.runOutsideAngular(() => {
55042
- // @ts-ignore - temporary fix for the type error
55043
- this._element.recResume = value;
55044
- });
55045
- }
55046
- get recStop() {
55047
- // @ts-ignore - temporary fix for the type error
55048
- return this._element.recStop;
55049
- }
55050
- set recStop(value) {
55051
- this._zone.runOutsideAngular(() => {
55052
- // @ts-ignore - temporary fix for the type error
55053
- this._element.recStop = value;
55054
- });
55055
- }
55056
- get recStart() {
55057
- // @ts-ignore - temporary fix for the type error
55058
- return this._element.recStart;
55059
- }
55060
- set recStart(value) {
55061
- this._zone.runOutsideAngular(() => {
55062
- // @ts-ignore - temporary fix for the type error
55063
- this._element.recStart = value;
55064
- });
55065
- }
55066
- get recPause() {
55067
- // @ts-ignore - temporary fix for the type error
55068
- return this._element.recPause;
55069
- }
55070
- set recPause(value) {
55071
- this._zone.runOutsideAngular(() => {
55072
- // @ts-ignore - temporary fix for the type error
55073
- this._element.recPause = value;
55074
- });
55075
- }
55076
55061
  get state() {
55077
55062
  // @ts-ignore - temporary fix for the type error
55078
55063
  return this._element.state;
@@ -55173,6 +55158,21 @@ let VoiceRecorderChatToolComponent = class VoiceRecorderChatToolComponent {
55173
55158
  this._element.lang = value;
55174
55159
  });
55175
55160
  }
55161
+ get recCancel() {
55162
+ return this._recCancel;
55163
+ }
55164
+ get recStart() {
55165
+ return this._recStart;
55166
+ }
55167
+ get recPause() {
55168
+ return this._recPause;
55169
+ }
55170
+ get recResume() {
55171
+ return this._recResume;
55172
+ }
55173
+ get recStop() {
55174
+ return this._recStop;
55175
+ }
55176
55176
  get connected() {
55177
55177
  return this._connected;
55178
55178
  }
@@ -55194,12 +55194,12 @@ let VoiceRecorderChatToolComponent = class VoiceRecorderChatToolComponent {
55194
55194
  }
55195
55195
  }
55196
55196
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: VoiceRecorderChatToolComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
55197
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: VoiceRecorderChatToolComponent, isStandalone: true, selector: "mosaik-voice-recorder-chat-tool", inputs: { recCancel: "recCancel", recResume: "recResume", recStop: "recStop", recStart: "recStart", recPause: "recPause", state: "state", elapsedTime: "elapsedTime", maxDurationTime: "maxDurationTime", objectUrl: "objectUrl", canPause: "canPause", themeName: "themeName", dock: "dock", disabled: "disabled", dir: "dir", lang: "lang" }, outputs: { connected: "connected", disconnected: "disconnected", changed: "changed" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
55197
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: VoiceRecorderChatToolComponent, isStandalone: true, selector: "mosaik-voice-recorder-chat-tool", inputs: { state: "state", elapsedTime: "elapsedTime", maxDurationTime: "maxDurationTime", objectUrl: "objectUrl", canPause: "canPause", themeName: "themeName", dock: "dock", disabled: "disabled", dir: "dir", lang: "lang" }, outputs: { recCancel: "recCancel", recStart: "recStart", recPause: "recPause", recResume: "recResume", recStop: "recStop", connected: "connected", disconnected: "disconnected", changed: "changed" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
55198
55198
  };
55199
55199
  VoiceRecorderChatToolComponent = __decorate$3([
55200
55200
  ProxyCmp({
55201
55201
  defineCustomElementFn: () => customElements.define('mosaik-voice-recorder-chat-tool', VoiceRecorderChatToolElement),
55202
- inputs: ['recCancel', 'recResume', 'recStop', 'recStart', 'recPause', 'state', 'elapsedTime', 'maxDurationTime', 'objectUrl', 'canPause', 'themeName', 'dock', 'disabled', 'dir', 'lang'],
55202
+ inputs: ['state', 'elapsedTime', 'maxDurationTime', 'objectUrl', 'canPause', 'themeName', 'dock', 'disabled', 'dir', 'lang'],
55203
55203
  methods: ['execute', 'attach', 'adoptStyle', 'on', 'off', 'emit', 'requestUpdate']
55204
55204
  }),
55205
55205
  __metadata$3("design:paramtypes", [])
@@ -55211,20 +55211,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
55211
55211
  standalone: true,
55212
55212
  changeDetection: ChangeDetectionStrategy.OnPush,
55213
55213
  template: '<ng-content></ng-content>',
55214
- inputs: ['recCancel', 'recResume', 'recStop', 'recStart', 'recPause', 'state', 'elapsedTime', 'maxDurationTime', 'objectUrl', 'canPause', 'themeName', 'dock', 'disabled', 'dir', 'lang'],
55215
- outputs: ['connected', 'disconnected', 'changed']
55214
+ inputs: ['state', 'elapsedTime', 'maxDurationTime', 'objectUrl', 'canPause', 'themeName', 'dock', 'disabled', 'dir', 'lang'],
55215
+ outputs: ['recCancel', 'recStart', 'recPause', 'recResume', 'recStop', 'connected', 'disconnected', 'changed']
55216
55216
  }]
55217
- }], ctorParameters: () => [], propDecorators: { recCancel: [{
55218
- type: Input
55219
- }], recResume: [{
55220
- type: Input
55221
- }], recStop: [{
55222
- type: Input
55223
- }], recStart: [{
55224
- type: Input
55225
- }], recPause: [{
55226
- type: Input
55227
- }], state: [{
55217
+ }], ctorParameters: () => [], propDecorators: { state: [{
55228
55218
  type: Input
55229
55219
  }], elapsedTime: [{
55230
55220
  type: Input
@@ -55244,6 +55234,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
55244
55234
  type: Input
55245
55235
  }], lang: [{
55246
55236
  type: Input
55237
+ }], recCancel: [{
55238
+ type: Output
55239
+ }], recStart: [{
55240
+ type: Output
55241
+ }], recPause: [{
55242
+ type: Output
55243
+ }], recResume: [{
55244
+ type: Output
55245
+ }], recStop: [{
55246
+ type: Output
55247
55247
  }], connected: [{
55248
55248
  type: Output
55249
55249
  }], disconnected: [{