@breadstone/mosaik-elements-angular 0.0.128 → 0.0.129

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,10 @@
1
+ ## 0.0.129 (2025-08-22)
2
+
3
+ ### 🚀 Features
4
+
5
+ - add filePicked event to AttachmentChatTool component across multiple frameworks ([1c4744bc41](https://github.com/RueDeRennes/mosaik/commit/1c4744bc41))
6
+ - **voice-recorder:** add event handling for recording actions and update component props ([e78be3a04d](https://github.com/RueDeRennes/mosaik/commit/e78be3a04d))
7
+
1
8
  ## 0.0.128 (2025-08-22)
2
9
 
3
10
  ### 🚀 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: [{
@@ -55008,6 +55016,11 @@ const VOICE_RECORDER_CHAT_TOOL_DEFAULT_PROPS = new InjectionToken('MOSAIK_VOICE_
55008
55016
  let VoiceRecorderChatToolComponent = class VoiceRecorderChatToolComponent {
55009
55017
  _element;
55010
55018
  _zone;
55019
+ _recCancel;
55020
+ _recStart;
55021
+ _recPause;
55022
+ _recResume;
55023
+ _recStop;
55011
55024
  _connected;
55012
55025
  _disconnected;
55013
55026
  _changed;
@@ -55015,6 +55028,16 @@ let VoiceRecorderChatToolComponent = class VoiceRecorderChatToolComponent {
55015
55028
  inject(ChangeDetectorRef).detach();
55016
55029
  this._element = inject(ElementRef).nativeElement;
55017
55030
  this._zone = inject(NgZone);
55031
+ this._recCancel = new EventEmitter();
55032
+ this._element.on('recCancel', (e) => this.onEmit(this._recCancel, e));
55033
+ this._recStart = new EventEmitter();
55034
+ this._element.on('recStart', (e) => this.onEmit(this._recStart, e));
55035
+ this._recPause = new EventEmitter();
55036
+ this._element.on('recPause', (e) => this.onEmit(this._recPause, e));
55037
+ this._recResume = new EventEmitter();
55038
+ this._element.on('recResume', (e) => this.onEmit(this._recResume, e));
55039
+ this._recStop = new EventEmitter();
55040
+ this._element.on('recStop', (e) => this.onEmit(this._recStop, e));
55018
55041
  this._connected = new EventEmitter();
55019
55042
  this._element.on('connected', (e) => this.onEmit(this._connected, e));
55020
55043
  this._disconnected = new EventEmitter();
@@ -55023,56 +55046,6 @@ let VoiceRecorderChatToolComponent = class VoiceRecorderChatToolComponent {
55023
55046
  this._element.on('changed', (e) => this.onEmit(this._changed, e));
55024
55047
  applyDefaults(this._element, inject(VOICE_RECORDER_CHAT_TOOL_DEFAULT_PROPS, { optional: true }) ?? {});
55025
55048
  }
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
55049
  get state() {
55077
55050
  // @ts-ignore - temporary fix for the type error
55078
55051
  return this._element.state;
@@ -55173,6 +55146,21 @@ let VoiceRecorderChatToolComponent = class VoiceRecorderChatToolComponent {
55173
55146
  this._element.lang = value;
55174
55147
  });
55175
55148
  }
55149
+ get recCancel() {
55150
+ return this._recCancel;
55151
+ }
55152
+ get recStart() {
55153
+ return this._recStart;
55154
+ }
55155
+ get recPause() {
55156
+ return this._recPause;
55157
+ }
55158
+ get recResume() {
55159
+ return this._recResume;
55160
+ }
55161
+ get recStop() {
55162
+ return this._recStop;
55163
+ }
55176
55164
  get connected() {
55177
55165
  return this._connected;
55178
55166
  }
@@ -55194,12 +55182,12 @@ let VoiceRecorderChatToolComponent = class VoiceRecorderChatToolComponent {
55194
55182
  }
55195
55183
  }
55196
55184
  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 });
55185
+ 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
55186
  };
55199
55187
  VoiceRecorderChatToolComponent = __decorate$3([
55200
55188
  ProxyCmp({
55201
55189
  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'],
55190
+ inputs: ['state', 'elapsedTime', 'maxDurationTime', 'objectUrl', 'canPause', 'themeName', 'dock', 'disabled', 'dir', 'lang'],
55203
55191
  methods: ['execute', 'attach', 'adoptStyle', 'on', 'off', 'emit', 'requestUpdate']
55204
55192
  }),
55205
55193
  __metadata$3("design:paramtypes", [])
@@ -55211,20 +55199,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
55211
55199
  standalone: true,
55212
55200
  changeDetection: ChangeDetectionStrategy.OnPush,
55213
55201
  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']
55202
+ inputs: ['state', 'elapsedTime', 'maxDurationTime', 'objectUrl', 'canPause', 'themeName', 'dock', 'disabled', 'dir', 'lang'],
55203
+ outputs: ['recCancel', 'recStart', 'recPause', 'recResume', 'recStop', 'connected', 'disconnected', 'changed']
55216
55204
  }]
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: [{
55205
+ }], ctorParameters: () => [], propDecorators: { state: [{
55228
55206
  type: Input
55229
55207
  }], elapsedTime: [{
55230
55208
  type: Input
@@ -55244,6 +55222,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
55244
55222
  type: Input
55245
55223
  }], lang: [{
55246
55224
  type: Input
55225
+ }], recCancel: [{
55226
+ type: Output
55227
+ }], recStart: [{
55228
+ type: Output
55229
+ }], recPause: [{
55230
+ type: Output
55231
+ }], recResume: [{
55232
+ type: Output
55233
+ }], recStop: [{
55234
+ type: Output
55247
55235
  }], connected: [{
55248
55236
  type: Output
55249
55237
  }], disconnected: [{