inviton-powerduck 0.0.320 → 0.0.321

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.
@@ -502,17 +502,20 @@ export class DialogUtils {
502
502
  * @param titleHtml HTML string containing the title text of the dialog
503
503
  * @param messageHtml HTML string containing the message to be shown
504
504
  * @param defaultValue Default value of the input
505
+ * @param icon Icon to display in the dialog header (defaults to DialogIcons.Question)
505
506
  */
506
507
  static showPrompt(
507
508
  titleHtml: string,
508
509
  messageHtml: string,
509
510
  defaultValue?: string,
511
+ icon: DialogIcons = DialogIcons.Question,
510
512
  ): Promise<string> {
511
513
  return new Promise((resolve) => {
512
514
  this.showPromptEx(
513
515
  titleHtml,
514
516
  messageHtml,
515
517
  defaultValue,
518
+ icon,
516
519
  ).then((dialogHandle) => {
517
520
  dialogHandle.hideModal();
518
521
  resolve(dialogHandle.result);
@@ -525,11 +528,13 @@ export class DialogUtils {
525
528
  * @param titleHtml HTML string containing the title text of the dialog
526
529
  * @param messageHtml HTML string containing the message to be shown
527
530
  * @param defaultValue Default value of the input
531
+ * @param icon Icon to display in the dialog header (defaults to DialogIcons.Question)
528
532
  */
529
533
  static showPromptEx(
530
534
  titleHtml: string,
531
535
  messageHtml: string,
532
536
  defaultValue?: string,
537
+ icon: DialogIcons = DialogIcons.Question,
533
538
  ): Promise<AppDialogExResult<string>> {
534
539
  return new Promise((resolve) => {
535
540
  let cbFired = false;
@@ -537,7 +542,7 @@ export class DialogUtils {
537
542
  const modalContext = this._buildAndShow({
538
543
  autoHide: true,
539
544
  boxColor: null,
540
- icon: DialogIcons.Question,
545
+ icon,
541
546
  message:
542
547
  `${messageHtml
543
548
  }<br><br><div class="form-group"><input id="${inputId
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "inviton-powerduck",
3
3
  "type": "module",
4
- "version": "0.0.320",
4
+ "version": "0.0.321",
5
5
  "files": [
6
6
  "app/",
7
7
  "common/",