@propbinder/mobile-design 0.2.35 → 0.2.36

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/index.d.ts CHANGED
@@ -1158,7 +1158,7 @@ declare class DsMobileContentComponent {
1158
1158
  */
1159
1159
  declare class SectionHeaderComponent {
1160
1160
  /** Width of the header placeholder */
1161
- width: _angular_core.InputSignal<"half" | "third" | "full">;
1161
+ width: _angular_core.InputSignal<"full" | "half" | "third">;
1162
1162
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SectionHeaderComponent, never>;
1163
1163
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<SectionHeaderComponent, "section-header", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
1164
1164
  }
@@ -5426,6 +5426,16 @@ interface ChatModalData {
5426
5426
  currentUserAvatarSrc?: string;
5427
5427
  /** Auto-focus input when modal opens */
5428
5428
  autoFocus?: boolean;
5429
+ /**
5430
+ * Callback executed when a message is sent from the chat.
5431
+ * Use this to handle API calls to your backend.
5432
+ */
5433
+ onSend?: (message: string, attachments: AttachmentData[]) => void | Promise<void>;
5434
+ /**
5435
+ * Optional callback for when a file attachment is clicked.
5436
+ * If not provided, the default behavior will try to open/download the file.
5437
+ */
5438
+ onFileClick?: (file: AttachmentData) => void;
5429
5439
  }
5430
5440
  /**
5431
5441
  * DsMobileChatModalComponent
@@ -5653,7 +5663,16 @@ declare class DsMobileChatModalComponent implements OnInit, AfterViewInit {
5653
5663
  * ],
5654
5664
  * currentUserId: '456',
5655
5665
  * currentUserInitials: 'JD',
5656
- * autoFocus: true
5666
+ * currentUserInitials: 'JD',
5667
+ * autoFocus: true,
5668
+ * onSend: async (message, attachments) => {
5669
+ * console.log('Sending message:', message);
5670
+ * // await this.chatService.sendMessage(participant.id, message, attachments);
5671
+ * },
5672
+ * onFileClick: (file) => {
5673
+ * console.log('File clicked:', file);
5674
+ * // window.open(file.url, '_blank');
5675
+ * }
5657
5676
  * });
5658
5677
  * }
5659
5678
  * ```
@@ -6985,7 +7004,7 @@ declare class DsMobileHandbookFolderMiniComponent {
6985
7004
  * ```
6986
7005
  */
6987
7006
  declare class DsTextInputComponent implements ControlValueAccessor {
6988
- type: _angular_core.InputSignal<"search" | "text" | "url" | "email" | "tel" | "password">;
7007
+ type: _angular_core.InputSignal<"search" | "text" | "email" | "password" | "tel" | "url">;
6989
7008
  placeholder: _angular_core.InputSignal<string>;
6990
7009
  disabled: _angular_core.InputSignal<boolean>;
6991
7010
  readonly: _angular_core.InputSignal<boolean>;
@@ -6993,7 +7012,7 @@ declare class DsTextInputComponent implements ControlValueAccessor {
6993
7012
  hasError: _angular_core.InputSignal<boolean>;
6994
7013
  errorMessage: _angular_core.InputSignal<string>;
6995
7014
  autocomplete: _angular_core.InputSignal<string>;
6996
- inputmode: _angular_core.InputSignal<"search" | "text" | "url" | "numeric" | "email" | "tel" | undefined>;
7015
+ inputmode: _angular_core.InputSignal<"search" | "text" | "numeric" | "email" | "tel" | "url" | undefined>;
6997
7016
  autoClearError: _angular_core.InputSignal<boolean>;
6998
7017
  validator: _angular_core.InputSignal<((value: string) => boolean) | null>;
6999
7018
  valueChange: _angular_core.OutputEmitterRef<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@propbinder/mobile-design",
3
- "version": "0.2.35",
3
+ "version": "0.2.36",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.3.0 || ^21.0.0",
6
6
  "@angular/core": "^20.3.0 || ^21.0.0"