@propbinder/mobile-design 0.3.1 → 0.3.2

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
@@ -2193,6 +2193,27 @@ declare class DsMobileMessageComposerComponent implements AfterViewInit, OnDestr
2193
2193
  initials: string;
2194
2194
  role: string;
2195
2195
  }[]>;
2196
+ /**
2197
+ * Whether to show the internal message toggle
2198
+ */
2199
+ showInternalToggle: _angular_core.InputSignal<boolean>;
2200
+ /**
2201
+ * Label for the internal message toggle
2202
+ */
2203
+ internalToggleLabel: _angular_core.InputSignal<string>;
2204
+ /**
2205
+ * Label for the reply header
2206
+ */
2207
+ replyLabel: _angular_core.InputSignal<string>;
2208
+ /**
2209
+ * Description text shown when internal message is active
2210
+ */
2211
+ internalMessageDescription: _angular_core.InputSignal<string>;
2212
+ /**
2213
+ * Local state for internal toggle
2214
+ */
2215
+ isInternal: _angular_core.WritableSignal<boolean>;
2216
+ toggleInternal(): void;
2196
2217
  /**
2197
2218
  * Auto-focus input on mount
2198
2219
  */
@@ -2291,6 +2312,7 @@ declare class DsMobileMessageComposerComponent implements AfterViewInit, OnDestr
2291
2312
  replyTo?: string;
2292
2313
  isEdit?: boolean;
2293
2314
  attachments?: AttachmentData[];
2315
+ isInternal?: boolean;
2294
2316
  }>;
2295
2317
  /**
2296
2318
  * Emits when edit is cancelled
@@ -2431,7 +2453,7 @@ declare class DsMobileMessageComposerComponent implements AfterViewInit, OnDestr
2431
2453
  */
2432
2454
  insertText(text: string): void;
2433
2455
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DsMobileMessageComposerComponent, never>;
2434
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DsMobileMessageComposerComponent, "ds-mobile-message-composer", never, { "avatarInitials": { "alias": "avatarInitials"; "required": false; "isSignal": true; }; "avatarType": { "alias": "avatarType"; "required": false; "isSignal": true; }; "avatarSrc": { "alias": "avatarSrc"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "sendButtonLabel": { "alias": "sendButtonLabel"; "required": false; "isSignal": true; }; "attachmentButtonLabel": { "alias": "attachmentButtonLabel"; "required": false; "isSignal": true; }; "showAttachmentButton": { "alias": "showAttachmentButton"; "required": false; "isSignal": true; }; "showAiButton": { "alias": "showAiButton"; "required": false; "isSignal": true; }; "editIndicatorText": { "alias": "editIndicatorText"; "required": false; "isSignal": true; }; "replyIndicatorText": { "alias": "replyIndicatorText"; "required": false; "isSignal": true; }; "enableMentions": { "alias": "enableMentions"; "required": false; "isSignal": true; }; "mentionUsers": { "alias": "mentionUsers"; "required": false; "isSignal": true; }; "autoFocus": { "alias": "autoFocus"; "required": false; "isSignal": true; }; }, { "messageSent": "messageSent"; "editCancelled": "editCancelled"; "replyCancelled": "replyCancelled"; "mentionSelected": "mentionSelected"; "attachmentClicked": "attachmentClicked"; "attachmentsChanged": "attachmentsChanged"; "aiClick": "aiClick"; }, never, never, true, never>;
2456
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DsMobileMessageComposerComponent, "ds-mobile-message-composer", never, { "avatarInitials": { "alias": "avatarInitials"; "required": false; "isSignal": true; }; "avatarType": { "alias": "avatarType"; "required": false; "isSignal": true; }; "avatarSrc": { "alias": "avatarSrc"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "sendButtonLabel": { "alias": "sendButtonLabel"; "required": false; "isSignal": true; }; "attachmentButtonLabel": { "alias": "attachmentButtonLabel"; "required": false; "isSignal": true; }; "showAttachmentButton": { "alias": "showAttachmentButton"; "required": false; "isSignal": true; }; "showAiButton": { "alias": "showAiButton"; "required": false; "isSignal": true; }; "editIndicatorText": { "alias": "editIndicatorText"; "required": false; "isSignal": true; }; "replyIndicatorText": { "alias": "replyIndicatorText"; "required": false; "isSignal": true; }; "enableMentions": { "alias": "enableMentions"; "required": false; "isSignal": true; }; "mentionUsers": { "alias": "mentionUsers"; "required": false; "isSignal": true; }; "showInternalToggle": { "alias": "showInternalToggle"; "required": false; "isSignal": true; }; "internalToggleLabel": { "alias": "internalToggleLabel"; "required": false; "isSignal": true; }; "replyLabel": { "alias": "replyLabel"; "required": false; "isSignal": true; }; "internalMessageDescription": { "alias": "internalMessageDescription"; "required": false; "isSignal": true; }; "autoFocus": { "alias": "autoFocus"; "required": false; "isSignal": true; }; }, { "messageSent": "messageSent"; "editCancelled": "editCancelled"; "replyCancelled": "replyCancelled"; "mentionSelected": "mentionSelected"; "attachmentClicked": "attachmentClicked"; "attachmentsChanged": "attachmentsChanged"; "aiClick": "aiClick"; }, never, never, true, never>;
2435
2457
  }
2436
2458
 
2437
2459
  /**
@@ -4251,7 +4273,7 @@ interface ChatModalData {
4251
4273
  * Callback executed when a message is sent from the chat.
4252
4274
  * Use this to handle API calls to your backend.
4253
4275
  */
4254
- onSend?: (message: string, attachments: AttachmentData[]) => void | Promise<void>;
4276
+ onSend?: (message: string, attachments: AttachmentData[], isInternal?: boolean) => void | Promise<void>;
4255
4277
  /**
4256
4278
  * Optional callback for generating an AI reply.
4257
4279
  * Resolves with the generated text, or void/null if cancelled or failed.
@@ -4285,10 +4307,15 @@ interface ChatModalData {
4285
4307
  allTenantsForPicker?: ChatParticipant[];
4286
4308
  /** Localizable UI labels — Danish defaults used when omitted. */
4287
4309
  labels?: Partial<ChatModalLabels>;
4310
+ /** Whether to show the internal message toggle */
4311
+ showInternalToggle?: boolean;
4288
4312
  }
4289
4313
  interface ChatModalLabels {
4290
4314
  composerPlaceholder: string;
4291
4315
  composerEditIndicator: string;
4316
+ internalToggleLabel: string;
4317
+ replyLabel: string;
4318
+ internalMessageDescription: string;
4292
4319
  addMembersTitle: string;
4293
4320
  youSenderName: string;
4294
4321
  actionCopy: string;
@@ -4445,6 +4472,7 @@ declare class DsMobileChatModalComponent implements OnInit, AfterViewInit {
4445
4472
  replyTo?: string;
4446
4473
  isEdit?: boolean;
4447
4474
  attachments?: AttachmentData[];
4475
+ isInternal?: boolean;
4448
4476
  }): void;
4449
4477
  /**
4450
4478
  * Handle attachment click
@@ -5166,7 +5194,7 @@ declare class DsMobileCreateGroupModalComponent implements OnInit {
5166
5194
  members: CreateGroupMember[];
5167
5195
  defaultName: string;
5168
5196
  allTenants: CreateGroupMember[];
5169
- view: _angular_core.WritableSignal<"main" | "add-members">;
5197
+ view: _angular_core.WritableSignal<"add-members" | "main">;
5170
5198
  groupName: _angular_core.WritableSignal<string>;
5171
5199
  customAvatarUrl: _angular_core.WritableSignal<string>;
5172
5200
  localMembers: _angular_core.WritableSignal<CreateGroupMember[]>;
@@ -8569,7 +8597,7 @@ declare class DsTextInputComponent implements ControlValueAccessor {
8569
8597
  hasError: _angular_core.InputSignal<boolean>;
8570
8598
  errorMessage: _angular_core.InputSignal<string>;
8571
8599
  autocomplete: _angular_core.InputSignal<string>;
8572
- inputmode: _angular_core.InputSignal<"search" | "text" | "email" | "tel" | "url" | "numeric" | undefined>;
8600
+ inputmode: _angular_core.InputSignal<"search" | "text" | "numeric" | "email" | "tel" | "url" | undefined>;
8573
8601
  autoClearError: _angular_core.InputSignal<boolean>;
8574
8602
  validator: _angular_core.InputSignal<((value: string) => boolean) | null>;
8575
8603
  valueChange: _angular_core.OutputEmitterRef<string>;
@@ -8877,7 +8905,7 @@ declare class DsMobileIllustrationComponent {
8877
8905
  * Predefined illustration variant
8878
8906
  * Available variants: 'post', 'inquiry', 'confirmation', 'family'
8879
8907
  */
8880
- variant: _angular_core.InputSignal<"post" | "inquiry" | "confirmation" | "family" | "cancel-booking" | "delete-warning">;
8908
+ variant: _angular_core.InputSignal<"inquiry" | "delete-warning" | "post" | "confirmation" | "family" | "cancel-booking">;
8881
8909
  /**
8882
8910
  * Illustration size (width and height)
8883
8911
  * @default '120px'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@propbinder/mobile-design",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.3.0 || ^21.0.0",
6
6
  "@angular/core": "^20.3.0 || ^21.0.0"