@nova-design-system/nova-react 3.21.0 → 3.21.1-beta.0

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.
Files changed (65) hide show
  1. package/dist/cjs/generated/components.server.js +92 -0
  2. package/dist/cjs/grow.animation-24ad5cf8-LUp_ITEx.js +111 -0
  3. package/dist/cjs/{index-yxDlFA78.js → index-CEKdYnmK.js} +1449 -407
  4. package/dist/cjs/index.js +11 -1
  5. package/dist/cjs/{nv-accordion-item.entry-5DF2ffDE.js → nv-accordion-item.entry-zvp8yDql.js} +1 -1
  6. package/dist/cjs/{nv-accordion.entry-CPB1HBT1.js → nv-accordion.entry-D6gckOF4.js} +1 -1
  7. package/dist/cjs/{nv-alert.entry-jPxt1obA.js → nv-alert.entry-Df8-nQ-R.js} +1 -1
  8. package/dist/cjs/{nv-avatar.entry-zmnREEN-.js → nv-avatar.entry-ZOnVWP9L.js} +1 -1
  9. package/dist/cjs/{nv-badge_2.entry-DtkQx_M9.js → nv-badge_2.entry-DgiVv_Yf.js} +2 -2
  10. package/dist/cjs/{nv-breadcrumb.entry-DHAe5FxQ.js → nv-breadcrumb.entry-IqtE1JL0.js} +1 -1
  11. package/dist/cjs/{nv-breadcrumbs.entry-C7XepUqF.js → nv-breadcrumbs.entry-Be6dz7zI.js} +1 -1
  12. package/dist/cjs/{nv-button.entry-Dg1knj3Y.js → nv-button.entry-CmswF3Si.js} +1 -1
  13. package/dist/cjs/{nv-buttongroup.entry-Dlim9p8N.js → nv-buttongroup.entry-Cfe6rFSs.js} +1 -1
  14. package/dist/cjs/{nv-calendar.entry-rL5_GdQg.js → nv-calendar.entry-q83sS_dN.js} +1 -1
  15. package/dist/cjs/{nv-col.entry-CnbFx7h1.js → nv-col.entry-Cu-Qi1bi.js} +1 -1
  16. package/dist/cjs/{nv-datagrid.entry-CjUfR4ha.js → nv-datagrid.entry-Cx7SvD5S.js} +1 -1
  17. package/dist/cjs/{nv-datagridcolumn.entry-BiuYIp4q.js → nv-datagridcolumn.entry-B_uXKFLg.js} +1 -1
  18. package/dist/cjs/{nv-dialog.entry-fDywe5i2.js → nv-dialog.entry-J6Xwi6z1.js} +54 -20
  19. package/dist/cjs/{nv-dialogfooter_2.entry-CckfZ_QW.js → nv-dialogfooter_2.entry-DOlhqDTh.js} +3 -3
  20. package/dist/cjs/{nv-fieldcheckbox.entry-WmfLxGad.js → nv-fieldcheckbox.entry-C23dGGX7.js} +5 -5
  21. package/dist/cjs/{nv-fielddate.entry-GLGb7tzu.js → nv-fielddate.entry-xWi3GpLl.js} +15 -18
  22. package/dist/cjs/{nv-fielddaterange.entry-C8gXNY2P.js → nv-fielddaterange.entry-BwFtpw9X.js} +8 -10
  23. package/dist/cjs/{nv-fielddropdown.entry-BX1V8Uef.js → nv-fielddropdown.entry-mnl7mSaK.js} +15 -6
  24. package/dist/cjs/{nv-fielddropdownitem.entry-BMVFbA1v.js → nv-fielddropdownitem.entry-DjyFlVXw.js} +3 -3
  25. package/dist/cjs/{nv-fieldmultiselect.entry-BuV-qWbu.js → nv-fieldmultiselect.entry-BtLTG7nM.js} +2 -2
  26. package/dist/cjs/{nv-fieldnumber.entry-qM1ct5SM.js → nv-fieldnumber.entry-C00Hg70B.js} +4 -4
  27. package/dist/cjs/{nv-fieldpassword.entry-BnGWErFQ.js → nv-fieldpassword.entry-BLg8tCN0.js} +4 -4
  28. package/dist/cjs/{nv-fieldradio.entry-EliQYldW.js → nv-fieldradio.entry-2hb1Ur40.js} +4 -4
  29. package/dist/cjs/{nv-fieldselect.entry-BfPVPmaZ.js → nv-fieldselect.entry-D-eYQpAv.js} +6 -6
  30. package/dist/cjs/{nv-fieldslider.entry-DBPpL94x.js → nv-fieldslider.entry-BGle1RZR.js} +4 -4
  31. package/dist/cjs/{nv-fieldtext.entry-BnabKYgq.js → nv-fieldtext.entry-Djg8cqOa.js} +4 -4
  32. package/dist/cjs/{nv-fieldtextarea.entry-HaELAnJb.js → nv-fieldtextarea.entry-Z32-s901.js} +4 -4
  33. package/dist/cjs/{nv-fieldtime.entry-CWQM7fza.js → nv-fieldtime.entry-CDFGdfFL.js} +4 -4
  34. package/dist/cjs/{nv-icon.entry-B5cWNyvf.js → nv-icon.entry-BDq7DKRt.js} +2 -2
  35. package/dist/cjs/{nv-iconbutton_2.entry-CP1o9IVZ.js → nv-iconbutton_2.entry-DdgEkFLK.js} +3 -3
  36. package/dist/cjs/{nv-menu.entry-wMwI_sZ3.js → nv-menu.entry-iob0Kve8.js} +2 -2
  37. package/dist/cjs/{nv-menuitem.entry-C53TrB0_.js → nv-menuitem.entry-C989Ui60.js} +2 -2
  38. package/dist/cjs/nv-notification-bullet.entry-J8OkAZtU.js +77 -0
  39. package/dist/cjs/{nv-notification.entry-BPyEusqt.js → nv-notification.entry-BxvJMKxH.js} +2 -2
  40. package/dist/cjs/{nv-notificationcontainer.entry-MRIJURIS.js → nv-notificationcontainer.entry-CxGCIb96.js} +2 -2
  41. package/dist/cjs/{nv-popover.entry-fj50OLMu.js → nv-popover.entry-1KsO_KQm.js} +14 -98
  42. package/dist/cjs/{nv-row.entry-T0OlcSij.js → nv-row.entry-PBLq_BzJ.js} +2 -2
  43. package/dist/cjs/nv-sidebar.entry-CjLbvLqw.js +177 -0
  44. package/dist/cjs/nv-sidebarcontent.entry-Cv76IH4W.js +22 -0
  45. package/dist/cjs/nv-sidebardivider.entry-DYPJ_k73.js +22 -0
  46. package/dist/cjs/nv-sidebarfooter.entry-mGcMBRmv.js +22 -0
  47. package/dist/cjs/nv-sidebargroup.entry-DtwFliHZ.js +23 -0
  48. package/dist/cjs/nv-sidebarheader.entry-BdOYIXCA.js +22 -0
  49. package/dist/cjs/nv-sidebarlogo.entry-Da0kGsfw.js +32 -0
  50. package/dist/cjs/nv-sidebarnavitem.entry-D5xLfpwn.js +297 -0
  51. package/dist/cjs/nv-sidebarnavsubitem.entry-CkeJfHH4.js +35 -0
  52. package/dist/cjs/{nv-split.entry-DlI7I6Tb.js → nv-split.entry-y66NBf88.js} +2 -2
  53. package/dist/cjs/{nv-stack.entry-991A3rOk.js → nv-stack.entry-CXjpkpbW.js} +2 -2
  54. package/dist/cjs/{nv-table.entry-ClSU3-cR.js → nv-table.entry-quaVnLru.js} +2 -2
  55. package/dist/cjs/{nv-tableheader.entry-DzvbPDBN.js → nv-tableheader.entry-DTBE2XQO.js} +2 -2
  56. package/dist/cjs/{nv-toggle.entry-Dq5hAoVB.js → nv-toggle.entry-CxUwF0pb.js} +3 -3
  57. package/dist/cjs/{nv-togglebutton.entry-DI8HQ5Ou.js → nv-togglebutton.entry-w-WEAmE6.js} +2 -2
  58. package/dist/cjs/{nv-togglebuttongroup.entry-DzGOSBF7.js → nv-togglebuttongroup.entry-UbrE8y7a.js} +2 -2
  59. package/dist/cjs/{nv-tooltip.entry-CF0-gdZL.js → nv-tooltip.entry-Dq2bkV33.js} +2 -2
  60. package/dist/generated/components.js +80 -0
  61. package/dist/generated/components.server.js +82 -0
  62. package/dist/types/generated/components.d.ts +32 -0
  63. package/dist/types/generated/components.server.d.ts +32 -0
  64. package/package.json +1 -1
  65. package/dist/cjs/events.utils-fe1d907f-01N__3wY.js +0 -23
package/dist/cjs/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-yxDlFA78.js');
3
+ var index = require('./index-CEKdYnmK.js');
4
4
  require('react');
5
5
  require('react-dom');
6
6
 
@@ -91,9 +91,19 @@ exports.NvLoader = index.NvLoader;
91
91
  exports.NvMenu = index.NvMenu;
92
92
  exports.NvMenuitem = index.NvMenuitem;
93
93
  exports.NvNotification = index.NvNotification;
94
+ exports.NvNotificationBullet = index.NvNotificationBullet;
94
95
  exports.NvNotificationcontainer = index.NvNotificationcontainer;
95
96
  exports.NvPopover = index.NvPopover;
96
97
  exports.NvRow = index.NvRow;
98
+ exports.NvSidebar = index.NvSidebar;
99
+ exports.NvSidebarcontent = index.NvSidebarcontent;
100
+ exports.NvSidebardivider = index.NvSidebardivider;
101
+ exports.NvSidebarfooter = index.NvSidebarfooter;
102
+ exports.NvSidebargroup = index.NvSidebargroup;
103
+ exports.NvSidebarheader = index.NvSidebarheader;
104
+ exports.NvSidebarlogo = index.NvSidebarlogo;
105
+ exports.NvSidebarnavitem = index.NvSidebarnavitem;
106
+ exports.NvSidebarnavsubitem = index.NvSidebarnavsubitem;
97
107
  exports.NvSplit = index.NvSplit;
98
108
  exports.NvStack = index.NvStack;
99
109
  exports.NvTable = index.NvTable;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-yxDlFA78.js');
3
+ var index = require('./index-CEKdYnmK.js');
4
4
  var collapse_animation6e0b08df = require('./collapse.animation-6e0b08df-AHWzNGm_.js');
5
5
  require('./style-value-types.es-f5d10b79-D0QCM8OB.js');
6
6
  require('react');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-yxDlFA78.js');
3
+ var index = require('./index-CEKdYnmK.js');
4
4
  require('react');
5
5
  require('react-dom');
6
6
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-yxDlFA78.js');
3
+ var index = require('./index-CEKdYnmK.js');
4
4
  var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
5
5
  var constants69bafca2 = require('./constants-69bafca2-DpB_ghPF.js');
6
6
  var collapse_animation6e0b08df = require('./collapse.animation-6e0b08df-AHWzNGm_.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-yxDlFA78.js');
3
+ var index = require('./index-CEKdYnmK.js');
4
4
  var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
5
5
  var constants69bafca2 = require('./constants-69bafca2-DpB_ghPF.js');
6
6
  require('react');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-yxDlFA78.js');
3
+ var index = require('./index-CEKdYnmK.js');
4
4
  var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
5
5
  var collapse_animation6e0b08df = require('./collapse.animation-6e0b08df-AHWzNGm_.js');
6
6
  var fade_animation9b939939 = require('./fade.animation-9b939939-DV--bM4S.js');
@@ -203,7 +203,7 @@ const NvFielddropdownitemcheck = class {
203
203
  /****************************************************************************/
204
204
  //#region RENDER
205
205
  render() {
206
- return (index.h(index.Host, { key: '124db3918761db1f6e308ac3df5859a97b178085', onClick: this.handleClick }, index.h("nv-fieldcheckbox", { key: '6d76719952e26b0106a3e288731dd6a1d0b1fd1b', checked: this.checked, name: this.label || this.value, label: this.label || this.value, labelPlacement: "after", description: this.description, disabled: this.disabled, tabindex: "-1", onCheckedChanged: this.onFieldcheckboxChanged }, index.h("slot", { key: 'ce4c4617739a9c26c735a53480177402d5ce60ea' }), index.h("slot", { key: 'fed41bcc827d3621f41b9a9b309ad9a2eb6d26ab', name: "main" }), index.h("slot", { key: '69a21ab4968097afde6d4528dca6e8c6e47dc583', name: "label" }), index.h("slot", { key: '3693201bae40bc035bb3b6ca7fee97970953b5b5', name: "description" }))));
206
+ return (index.h(index.Host, { key: '1687dc92f82edea9c1da273c0bd3c45f788a1d82', onClick: this.handleClick }, index.h("nv-fieldcheckbox", { key: '78c36b53395398068513256f044a10cd44fc8d98', checked: this.checked, name: this.label || this.value, label: this.label || this.value, labelPlacement: "after", description: this.description, disabled: this.disabled, tabindex: "-1", onCheckedChanged: this.onFieldcheckboxChanged }, index.h("slot", { key: 'af95c41a46d57060b62098cc4735a8aef0326223' }), index.h("slot", { key: '0bf00132a35df36f3a4e8dc40610a107c1786eab', name: "main" }), index.h("slot", { key: '3ce40d59700f4e8b764aeac25e39976329422b67', name: "label" }), index.h("slot", { key: 'edf7025cebd62843b55f92014d12905574166dd7', name: "description" }))));
207
207
  }
208
208
  get el() { return index.getElement(this); }
209
209
  };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-yxDlFA78.js');
3
+ var index = require('./index-CEKdYnmK.js');
4
4
  var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
5
5
  require('react');
6
6
  require('react-dom');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-yxDlFA78.js');
3
+ var index = require('./index-CEKdYnmK.js');
4
4
  require('react');
5
5
  require('react-dom');
6
6
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-yxDlFA78.js');
3
+ var index = require('./index-CEKdYnmK.js');
4
4
  var constants69bafca2 = require('./constants-69bafca2-DpB_ghPF.js');
5
5
  require('react');
6
6
  require('react-dom');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-yxDlFA78.js');
3
+ var index = require('./index-CEKdYnmK.js');
4
4
  require('react');
5
5
  require('react-dom');
6
6
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-yxDlFA78.js');
3
+ var index = require('./index-CEKdYnmK.js');
4
4
  var constants69bafca2 = require('./constants-69bafca2-DpB_ghPF.js');
5
5
  var _commonjsHelpers1789f0cf = require('./_commonjsHelpers-1789f0cf-BJu3ubxk.js');
6
6
  require('react');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-yxDlFA78.js');
3
+ var index = require('./index-CEKdYnmK.js');
4
4
  var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
5
5
  require('react');
6
6
  require('react-dom');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-yxDlFA78.js');
3
+ var index = require('./index-CEKdYnmK.js');
4
4
  var constants69bafca2 = require('./constants-69bafca2-DpB_ghPF.js');
5
5
  require('react');
6
6
  require('react-dom');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-yxDlFA78.js');
3
+ var index = require('./index-CEKdYnmK.js');
4
4
  require('react');
5
5
  require('react-dom');
6
6
 
@@ -1,7 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-yxDlFA78.js');
4
- var events_utilsFe1d907f = require('./events.utils-fe1d907f-01N__3wY.js');
3
+ var index = require('./index-CEKdYnmK.js');
4
+ var grow_animation24ad5cf8 = require('./grow.animation-24ad5cf8-LUp_ITEx.js');
5
+ var fade_animation9b939939 = require('./fade.animation-9b939939-DV--bM4S.js');
6
+ require('./style-value-types.es-f5d10b79-D0QCM8OB.js');
7
+ var timeline_animation79215cd4 = require('./timeline.animation-79215cd4-KteJaZPb.js');
5
8
  var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
6
9
  var constants69bafca2 = require('./constants-69bafca2-DpB_ghPF.js');
7
10
  var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
@@ -542,7 +545,7 @@ var tabbable = function tabbable(container, options) {
542
545
  return sortByOrder(candidates);
543
546
  };
544
547
 
545
- const nvDialogCss = "dialog{border-radius:var(--radius-rounded-2xl);background:var(--color-level-00-background);min-width:min(90vw, 400px);width:fit-content;max-width:clamp(90vw, min(90vw, 960px), 960px);margin:auto;max-height:90vh;overflow:hidden;box-shadow:0px var(--shadow-y-axis-2xl) var(--shadow-blur-2xl) var(--shadow-spread-2xl) var(--shadow-color-opacity-3) var(--shadow-color-opacity-3)}dialog.full{width:90vw}dialog::backdrop{opacity:var(--components-overlay-opacity);background:var(--components-overlay-background)}dialog .content{display:flex;flex-direction:column;align-items:flex-start;height:fit-content;max-height:90vh;overflow:hidden}dialog .content nv-button.close-button{position:absolute;top:var(--dialog-dismissible-position-top);right:var(--dialog-dismissible-position-right);display:flex;padding:var(--button-sm-icon-button-padding);justify-content:flex-end;align-items:flex-start;gap:10px}dialog .content .content-body{overflow:auto;box-sizing:border-box;padding:var(--dialog-body-padding-y) var(--dialog-body-padding-x);scrollbar-gutter:stable both-edges;font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;font-size:var(--font-size-md);font-style:normal;font-weight:var(--font-weight-low-emphasis);line-height:var(--line-height-base);color:var(--color-content-medium-text);width:100%}dialog .content .content-body::-webkit-scrollbar{width:6px;height:6px}dialog .content .content-body::-webkit-scrollbar-track{background-color:var(--color-level-10-background);border-radius:9999px}dialog .content .content-body::-webkit-scrollbar-thumb{background-color:var(--color-gray-200);border-radius:9999px}";
548
+ const nvDialogCss = "nv-dialog dialog{width:100vw;height:100svh;margin:0;max-height:unset;max-width:unset;padding:0;background:color-mix(in srgb, var(--components-overlay-background) 70%, transparent);backdrop-filter:blur(4px)}nv-dialog dialog.full .content{min-width:90vw;width:90vw;max-width:90vw}nv-dialog .backdrop{display:flex;min-height:100%;padding:var(--spacing-3);box-shadow:0px var(--shadow-y-axis-2xl) var(--shadow-blur-2xl) var(--shadow-spread-2xl) var(--shadow-color-opacity-3) var(--shadow-color-opacity-3)}nv-dialog .backdrop .content{border-radius:var(--radius-rounded-2xl);background:var(--color-level-00-background);min-width:min(90vw, 400px);width:fit-content;max-width:clamp(90vw, min(90vw, 960px), 960px);margin:auto;display:flex;flex-direction:column;align-items:flex-start;height:fit-content;position:relative}nv-dialog .backdrop .content nv-button.close-button{position:absolute;top:var(--dialog-dismissible-position-top);right:var(--dialog-dismissible-position-right);display:flex;padding:var(--button-sm-icon-button-padding);justify-content:flex-end;align-items:flex-start;gap:10px}nv-dialog .backdrop .content .content-body{box-sizing:border-box;padding:var(--dialog-body-padding-y) var(--dialog-body-padding-x);scrollbar-gutter:stable both-edges;font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;font-size:var(--font-size-md);font-style:normal;font-weight:var(--font-weight-low-emphasis);line-height:var(--line-height-base);color:var(--color-content-medium-text);width:100%}nv-dialog .backdrop .content .content-body::-webkit-scrollbar{width:6px;height:6px}nv-dialog .backdrop .content .content-body::-webkit-scrollbar-track{background-color:var(--color-level-10-background);border-radius:9999px}nv-dialog .backdrop .content .content-body::-webkit-scrollbar-thumb{background-color:var(--color-gray-200);border-radius:9999px}";
546
549
  const NvDialogStyle0 = nvDialogCss;
547
550
 
548
551
  const NvDialog = class {
@@ -609,13 +612,30 @@ const NvDialog = class {
609
612
  this.close();
610
613
  }
611
614
  };
612
- this.handleClickOutside = (event) => {
613
- if (event.target === this.dialogElement) {
615
+ /**
616
+ * Handles the click event to close the dialog when clickOutside is true.
617
+ * @param {MouseEvent} event - The click event.
618
+ */
619
+ this.handleDialogClick = (event) => {
620
+ if (!this.clickOutside || this.undismissable)
621
+ return;
622
+ if (this.checkForOpenPopovers())
623
+ return;
624
+ if (event.target === this.backdropElement) {
614
625
  this.close();
615
626
  event.preventDefault();
616
627
  event.stopPropagation();
617
628
  }
618
629
  };
630
+ this.checkForOpenPopovers = () => {
631
+ let hasOpenPopover = false;
632
+ this.el.querySelectorAll('nv-popover').forEach(popover => {
633
+ if (popover.hasAttribute('open')) {
634
+ hasOpenPopover = true;
635
+ }
636
+ });
637
+ return hasOpenPopover;
638
+ };
619
639
  }
620
640
  //#endregion PROPERTIES
621
641
  /****************************************************************************/
@@ -629,7 +649,18 @@ const NvDialog = class {
629
649
  /** It is recommended to use the .show() or .showModal() method to render
630
650
  * dialogs, rather than the open attribute. If a <dialog> is opened using
631
651
  * the open attribute, it is non-modal. */
652
+ const { setFadeOut } = fade_animation9b939939.useFade(this.dialogElement);
653
+ setFadeOut();
632
654
  this.dialogElement.showModal();
655
+ const { setGrowIn, growIn } = grow_animation24ad5cf8.useGrow(this.contentElement, {
656
+ duration: 100,
657
+ amount: 0.9,
658
+ });
659
+ const { fadeIn } = fade_animation9b939939.useFade(this.dialogElement, {
660
+ duration: 100,
661
+ });
662
+ setGrowIn();
663
+ await timeline_animation79215cd4.parallel(fadeIn, growIn).start();
633
664
  }
634
665
  /**
635
666
  * Call this method to hide the dialog, making it disappear from view.
@@ -637,6 +668,14 @@ const NvDialog = class {
637
668
  async close() {
638
669
  this.open = false;
639
670
  this.allowScroll();
671
+ const { growOut } = grow_animation24ad5cf8.useGrow(this.contentElement, {
672
+ duration: 150,
673
+ amount: 0.85,
674
+ });
675
+ const { fadeOut } = fade_animation9b939939.useFade(this.dialogElement, {
676
+ duration: 150,
677
+ });
678
+ await timeline_animation79215cd4.parallel(growOut, fadeOut).start();
640
679
  this.dialogElement.close();
641
680
  }
642
681
  /**
@@ -666,7 +705,7 @@ const NvDialog = class {
666
705
  */
667
706
  attachEventListeners() {
668
707
  if (this.triggerElement && !this.eventsAttached && !this.controlled) {
669
- events_utilsFe1d907f.addEventListeners(this.triggerClickEvents, this.triggerElement, this);
708
+ grow_animation24ad5cf8.addEventListeners(this.triggerClickEvents, this.triggerElement, this);
670
709
  this.eventsAttached = true;
671
710
  }
672
711
  }
@@ -719,23 +758,17 @@ const NvDialog = class {
719
758
  handleKeyDown(event) {
720
759
  if (event.key !== 'Escape')
721
760
  return;
722
- if (this.undismissable) {
761
+ if (!this.open)
762
+ return;
763
+ event.preventDefault();
764
+ event.stopPropagation();
765
+ const hasOpenPopover = this.checkForOpenPopovers();
766
+ if (!this.undismissable && !hasOpenPopover) {
723
767
  event.preventDefault();
724
768
  event.stopPropagation();
725
- }
726
- else {
727
769
  this.close();
728
770
  }
729
771
  }
730
- /**
731
- * Handles the click event to close the dialog when clickOutside is true.
732
- * @param {MouseEvent} event - The click event.
733
- */
734
- handleDocumentClick(event) {
735
- if (!this.clickOutside || this.undismissable)
736
- return;
737
- this.handleClickOutside(event);
738
- }
739
772
  //#endregion LISTENERS
740
773
  /****************************************************************************/
741
774
  //#region LIFECYCLE
@@ -773,10 +806,11 @@ const NvDialog = class {
773
806
  this.attachEventListeners();
774
807
  // Additional form check in case form was added after initial load
775
808
  this.checkForForm();
809
+ // this.setupContentBodyListeners();
776
810
  }
777
811
  disconnectedCallback() {
778
812
  if (this.triggerElement && !this.eventsAttached && !this.controlled) {
779
- events_utilsFe1d907f.removeEventListeners(this.triggerClickEvents, this.triggerElement, this);
813
+ grow_animation24ad5cf8.removeEventListeners(this.triggerClickEvents, this.triggerElement, this);
780
814
  this.eventsAttached = false;
781
815
  }
782
816
  this.allowScroll();
@@ -786,7 +820,7 @@ const NvDialog = class {
786
820
  //#region RENDER
787
821
  render() {
788
822
  const hasForm = this.form || this.el.querySelector('form');
789
- return (index.h(index.Host, { key: 'b32680019247cf7e39b5861a77dce61e08eadd7b' }, index.h("slot", { key: '104978b5cccd97997955a6c0db21f9549643f40a', name: "trigger" }), index.h("dialog", { key: '951a58755ac49f6c2b2f427599d5bc2540c65e2e', ref: el => (this.dialogElement = el), onClose: this.handleDialogClose, role: "dialog", "aria-modal": "true", "aria-labelledby": "dialog-header", "aria-describedby": "dialog-content", class: clsx297c1ffe.clsx({ full: this.full }) }, index.h("div", { key: '96b727e70efe35991086ead905f925af28808cb8', class: "content" }, !this.undismissable && (index.h("nv-button", { key: '36f2214d2ed81d7b85c3c523f490e75ca2bffc68', class: "close-button", emphasis: "lower", size: "sm", onClick: this.handleDialogClose, "aria-label": "Close dialog" }, index.h("nv-icon", { key: '7a50fc4e330e7ab67bba0fa429c5cd92630014bc', name: "x", size: "sm" }))), this.headerElement ? (index.h("slot", { name: "header" })) : (index.h("nv-dialogheader", { id: "dialog-header" })), index.h("div", { key: 'cf4269a73467794d0158a4e56f34e2a81edd6643', class: "content-body", id: "dialog-content" }, index.h("slot", { key: 'f91e72aafdd2f5de65ae78262f274b83bd37560d' })), this.footerElement ? (index.h("slot", { name: "footer" })) : (index.h("nv-dialogfooter", { form: this.form, primaryButtonType: hasForm ? constants69bafca2.ButtonType.Submit : constants69bafca2.ButtonType.Button, onDialogCanceled: this.handleDialogClose, undismissable: this.undismissable }))))));
823
+ return (index.h(index.Host, { key: '91b36e5daac0251997c7a6794166794f1e89087f' }, index.h("slot", { key: 'abeef317af74093c9b09fa6f2d300c23bbde54a6', name: "trigger" }), index.h("dialog", { key: '1eb417dc921bca7837aa05aad9c252fba7d9d920', ref: el => (this.dialogElement = el), onClose: this.handleDialogClose, onClick: this.handleDialogClick, role: "dialog", "aria-modal": "true", "aria-labelledby": "dialog-header", "aria-describedby": "dialog-content", class: clsx297c1ffe.clsx({ full: this.full }) }, index.h("div", { key: '8ec55c461a747ebb4556fbf791ee1d66d3bcc51a', class: "backdrop", ref: el => (this.backdropElement = el) }, index.h("div", { key: '373beedad09464f3473935e0464b3f51133e0372', class: "content", ref: el => (this.contentElement = el) }, !this.undismissable && (index.h("nv-button", { key: '5e94d056687837b017991f54df6cf350159addcc', class: "close-button", emphasis: "lower", size: "sm", onClick: this.handleDialogClose, "aria-label": "Close dialog" }, index.h("nv-icon", { key: '98db7848b9796589b9e7670c62a26417228a15d6', name: "x", size: "sm" }))), this.headerElement ? (index.h("slot", { name: "header" })) : (index.h("nv-dialogheader", { id: "dialog-header" })), index.h("div", { key: '611eb7914b65d5a27513f91eb458a578dbc63734', class: "content-body", id: "dialog-content" }, index.h("slot", { key: 'caf21876e6a33e997eccdc577fb43d6e63fcfc90' })), this.footerElement ? (index.h("slot", { name: "footer" })) : (index.h("nv-dialogfooter", { form: this.form, primaryButtonType: hasForm ? constants69bafca2.ButtonType.Submit : constants69bafca2.ButtonType.Button, onDialogCanceled: this.handleDialogClose, undismissable: this.undismissable })))))));
790
824
  }
791
825
  get el() { return index.getElement(this); }
792
826
  static get watchers() { return {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-yxDlFA78.js');
3
+ var index = require('./index-CEKdYnmK.js');
4
4
  var constants69bafca2 = require('./constants-69bafca2-DpB_ghPF.js');
5
5
  require('react');
6
6
  require('react-dom');
@@ -93,7 +93,7 @@ const NvDialogfooter = class {
93
93
  /****************************************************************************/
94
94
  //#region RENDER
95
95
  render() {
96
- return (index.h(index.Host, { key: '0868c3af73f89219eee7c006b4ddca47c6da29b0' }, !this.hasSlot ? (index.h(index.Fragment, null, !this.undismissable && (index.h("nv-button", { onClick: this.handleCancel, emphasis: "low", size: "sm" }, this.cancelLabel)), index.h("nv-button", { onClick: this.handlePrimary, disabled: this.disabled, danger: this.danger, size: "sm", emphasis: "high", form: this.form, type: this.primaryButtonType }, this.leadingIcon && (index.h("nv-icon", { slot: "leading-icon", name: this.leadingIcon, size: "sm" })), this.primaryLabel, this.trailingIcon && (index.h("nv-icon", { slot: "trailing-icon", name: this.trailingIcon, size: "sm" }))))) : (index.h("slot", null))));
96
+ return (index.h(index.Host, { key: '908abbe8e2e9aa215641dd056c70dc16f36c3ac3' }, !this.hasSlot ? (index.h(index.Fragment, null, !this.undismissable && (index.h("nv-button", { onClick: this.handleCancel, emphasis: "low", size: "sm" }, this.cancelLabel)), index.h("nv-button", { onClick: this.handlePrimary, disabled: this.disabled, danger: this.danger, size: "sm", emphasis: "high", form: this.form, type: this.primaryButtonType }, this.leadingIcon && (index.h("nv-icon", { slot: "leading-icon", name: this.leadingIcon, size: "sm" })), this.primaryLabel, this.trailingIcon && (index.h("nv-icon", { slot: "trailing-icon", name: this.trailingIcon, size: "sm" }))))) : (index.h("slot", null))));
97
97
  }
98
98
  static get formAssociated() { return true; }
99
99
  get el() { return index.getElement(this); }
@@ -128,7 +128,7 @@ const NvDialogheader = class {
128
128
  /****************************************************************************/
129
129
  //#region RENDER
130
130
  render() {
131
- return (index.h(index.Host, { key: 'f91a9aea8aa7116266f52bb356ef2ec493df6354' }, !this.hasSlot ? (index.h(index.Fragment, null, index.h("div", { class: "heading" }, this.heading), index.h("div", { class: "subheading" }, this.subheading))) : (index.h("slot", null))));
131
+ return (index.h(index.Host, { key: 'e3390a18cd40f00dd70f71b436d3603fdcb2b337' }, !this.hasSlot ? (index.h(index.Fragment, null, index.h("div", { class: "heading" }, this.heading), index.h("div", { class: "subheading" }, this.subheading))) : (index.h("slot", null))));
132
132
  }
133
133
  get el() { return index.getElement(this); }
134
134
  };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-yxDlFA78.js');
3
+ var index = require('./index-CEKdYnmK.js');
4
4
  var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
5
5
  var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
6
6
  require('react');
@@ -119,13 +119,13 @@ const NvFieldcheckbox = class {
119
119
  /****************************************************************************/
120
120
  //#region RENDER
121
121
  render() {
122
- return (index.h(index.Host, { key: '62195333f84808381f19ca4017916380d20d493f', class: clsx297c1ffe.clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, index.h("div", { key: '65f02aee06eacecf83c5297d87130bbe9f85b19c', class: "input-container" }, index.h("input", { key: 'c3e8fcb41c835f0eba254f9e77de749b7dc6349e', type: "checkbox", id: this.inputId, name: this.name, autofocus: this.autofocus, autocomplete: "off", value: this.value, checked: Boolean(this.checked), disabled: this.disabled || this.readonly, readonly: this.readonly && !this.required, required: this.required, indeterminate: this.indeterminate, ref: el => {
122
+ return (index.h(index.Host, { key: '4db161f34d188b5370f28a39ec9637d269719b04', class: clsx297c1ffe.clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, index.h("div", { key: '7608f50840faf35c4da8dbfcc8240becece6f609', class: "input-container" }, index.h("input", { key: '733ad01f2cadd1e17d6bfc40022ef9ab1db93f0a', type: "checkbox", id: this.inputId, name: this.name, autofocus: this.autofocus, autocomplete: "off", value: this.value, checked: Boolean(this.checked), disabled: this.disabled || this.readonly, readonly: this.readonly && !this.required, required: this.required, indeterminate: this.indeterminate, ref: el => {
123
123
  if (el) {
124
124
  el.indeterminate = this.indeterminate;
125
125
  }
126
- } }), index.h("span", { key: '439a8c467373d734293012514cdb22c419b534ae', class: "icon" }, this.checked && !this.indeterminate && (index.h("slot", { key: '335a92ed1431fe96af3c7c6fac2f4245c0d4caaa', name: "checked-icon" }, index.h("svg", { key: '67d97efca27a97c7db77d9f8c182a21fbd21d13c', xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" }, index.h("path", { key: '9cb6730b00813e8d4fe6fa14549de6f2a41ea068', d: "M11.6667 3.5L5.25004 9.91667L2.33337 7", "stroke-linecap": "round", "stroke-linejoin": "round" })))), this.indeterminate && (index.h("slot", { key: 'e47b17269156f72ddaf7af1ecc818ae5b6b8c0d3', name: "indeterminate-icon" }, index.h("svg", { key: '4748acc27a70e74f9228cdb6e41eae4b1ae82559', class: "indeterminate-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 14 14", fill: "none" }, index.h("path", { key: '40748b36b277c1ed6ea8fc8f82f4cd687b2f6e3a', d: "M2.9165 7H11.0832", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), index.h("slot", { key: '0fa9e559cefb8169c20b171fcbb6c1786fd6b3ae' }), index.h("div", { key: '44eef633025d1a7606979d4d8374c2a04081f45c', class: "text-container" }, index.h("slot", { key: 'b43251a02b15431f5399c3bced485b89741e069e', name: "main" }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '7781451a357961ce1606b18c590baa344df4ff95', htmlFor: this.inputId, class: clsx297c1ffe.clsx(this.hideLabel && 'visually-hidden') }, index.h("slot", { key: 'b420ad1dbdc05a5c57d0b45e62176866ec0527ca', name: "label" }, this.label))), (this.description ||
127
- this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '67715bef879e0778b58648b83135edefdbdba53d', class: "description" }, index.h("slot", { key: 'b1d4d21e83130e19e94efa915abd6661c027bbce', name: "description" }, this.description)))), (this.errorDescription ||
128
- this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '157df3faf2cadb4014ba8475c99cf68d86da9f63', hidden: !this.error, class: "error-description" }, index.h("slot", { key: '42aa95b2332618120d846fa481a1b30b7edeccca', name: "error-description" }, this.errorDescription))))));
126
+ } }), index.h("span", { key: '81da5960abee0aa2c74f10612d05388e427b3a1a', class: "icon" }, this.checked && !this.indeterminate && (index.h("slot", { key: 'e257ebad9a1c23bc77961645dabe6e0fc8c51440', name: "checked-icon" }, index.h("svg", { key: 'd4005dfd634169aa14140c7eba1e0ac63e28342d', xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" }, index.h("path", { key: '1817c25edf09f09d4317d9e41b52484883c7a943', d: "M11.6667 3.5L5.25004 9.91667L2.33337 7", "stroke-linecap": "round", "stroke-linejoin": "round" })))), this.indeterminate && (index.h("slot", { key: '043148db3518e99f2850ffa4b3622f7ae3c654a7', name: "indeterminate-icon" }, index.h("svg", { key: 'b8a67cfa8d0f880657b62b89ddae7a238b22bc26', class: "indeterminate-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 14 14", fill: "none" }, index.h("path", { key: 'd63f610ff5cca552d295de18dffeda84cbd370ac', d: "M2.9165 7H11.0832", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), index.h("slot", { key: 'e4befe30753cd2f76da4af10e648704068f7ce55' }), index.h("div", { key: '281b4046dbeb8b8dcb05fc154b65ed822fa45960', class: "text-container" }, index.h("slot", { key: '8e40b1e52c55fa45b38bec26e6b20da90c8553ed', name: "main" }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: 'ad2e4a47d1d5a218835b410579e7e93febd08d15', htmlFor: this.inputId, class: clsx297c1ffe.clsx(this.hideLabel && 'visually-hidden') }, index.h("slot", { key: '815d03f2c69465e430178c29a885ad770e2c561f', name: "label" }, this.label))), (this.description ||
127
+ this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '22159e2cb8c4897507da91ebee09502922093ead', class: "description" }, index.h("slot", { key: '61b277015ecb4e0e3b813e45dbb6cd7ebe89506b', name: "description" }, this.description)))), (this.errorDescription ||
128
+ this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '924d333e443c943b5fe37f31e3191d231b9d87e1', hidden: !this.error, class: "error-description" }, index.h("slot", { key: '2469d3f6cf2121b489b637138642417d27556740', name: "error-description" }, this.errorDescription))))));
129
129
  }
130
130
  static get formAssociated() { return true; }
131
131
  get el() { return index.getElement(this); }
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-yxDlFA78.js');
3
+ var index = require('./index-CEKdYnmK.js');
4
4
  var inputmaskEdcad3c1 = require('./inputmask-edcad3c1-B9Omti4z.js');
5
5
  var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
6
6
  require('react');
@@ -106,17 +106,17 @@ const NvFielddate = class {
106
106
  * @param {MouseEvent} event - The click event.
107
107
  */
108
108
  this.handleClickOutside = (event) => {
109
- if (this.open && this.el && !this.el.contains(event.target)) {
109
+ var _a;
110
+ if (!(event.target instanceof Node))
111
+ return;
112
+ if (!((_a = this.el) === null || _a === void 0 ? void 0 : _a.contains(event.target)))
110
113
  this.open = false;
111
- }
112
114
  };
113
115
  /**
114
116
  * Focuses the input when the input container is clicked.
115
117
  * @param {MouseEvent} event - The click event.
116
118
  */
117
119
  this.handleInputContainerClick = (event) => {
118
- // Stop propagation to prevent closing parent dialogs
119
- event.stopPropagation();
120
120
  if (this.readonly || this.disabled) {
121
121
  event.preventDefault();
122
122
  return;
@@ -179,12 +179,10 @@ const NvFielddate = class {
179
179
  * Toggles the opening/closing of the popover.
180
180
  * @param {MouseEvent} event - The click event.
181
181
  */
182
- this.toggleCalendar = (event) => {
182
+ this.toggleCalendar = () => {
183
183
  if (this.readonly || this.disabled) {
184
184
  return;
185
185
  }
186
- // Stop propagation to prevent closing parent dialogs
187
- event.stopPropagation();
188
186
  this.open = !this.open;
189
187
  };
190
188
  }
@@ -261,9 +259,6 @@ const NvFielddate = class {
261
259
  //#endregion METHODS
262
260
  /****************************************************************************/
263
261
  //#region LIFECYCLE
264
- connectedCallback() {
265
- document.addEventListener('click', this.handleClickOutside);
266
- }
267
262
  componentWillLoad() {
268
263
  if (this.value) {
269
264
  this.singleValue = this.value;
@@ -290,7 +285,6 @@ const NvFielddate = class {
290
285
  }
291
286
  }
292
287
  disconnectedCallback() {
293
- document.removeEventListener('click', this.handleClickOutside);
294
288
  if (this.inputElement &&
295
289
  this.inputElement.inputmask) {
296
290
  this.inputElement.inputmask.remove();
@@ -345,6 +339,9 @@ const NvFielddate = class {
345
339
  handleClosePopover() {
346
340
  this.open = false;
347
341
  }
342
+ handleDocumentClick(event) {
343
+ this.handleClickOutside(event);
344
+ }
348
345
  handleKeyDown(event) {
349
346
  if (event.key === 'Escape') {
350
347
  this.open = false;
@@ -368,13 +365,13 @@ const NvFielddate = class {
368
365
  /****************************************************************************/
369
366
  //#region RENDER
370
367
  render() {
371
- return (index.h(index.Host, { key: '0ec615c05a7f830586f21a6e26a62cbbec4902b0' }, ((this.label && this.label.length > 0) ||
372
- this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '1b1814a4ab2ccef80d2ee641d2624397f6b953d1', htmlFor: this.inputId }, index.h("slot", { key: '853d2f3ef6561dd05ccd438c717a866a62f4791a', name: "label" }, this.label))), index.h("nv-popover", { key: '3259f86dbb8051a9ca10fe3a63b5716dc24b356e', ref: this.setPopoverRef, id: this.popoverId, triggerMode: "controlled", placement: "bottom-start", strategy: "fixed", open: this.open }, index.h("div", { key: 'd6f40610224724396ce6a1b5857f6baa6b308172', slot: "trigger", class: "input-wrapper" }, index.h("slot", { key: '9736e07f75aff0c74d23198648f6266854c4f523', name: "before-input" }), index.h("div", { key: 'c7019e5f0c7a88458f3dc1759b4d7d1d5f098dc9', class: "input-container", onClick: this.handleInputContainerClick }, index.h("slot", { key: '1c8fcc1f3cb6dfe5016f09780b5c4085eb53bf9b', name: "leading-input" }), index.h("input", { key: 'b1482ebabf4753dacb434774df3247c0ea9b885b', id: this.inputId, ref: this.setInputRef, placeholder: this.placeholder ||
373
- this.convertToInputmaskFormat(this.dateFormat), name: this.name, disabled: this.disabled, readOnly: this.readonly, required: this.required, autofocus: this.autofocus, onInput: this.handleInput, onFocus: this.handleFocus, "data-scope": "date" }), this.error && (index.h("nv-icon", { key: '7a9448bd1aef0dcf95183651b07621cebdeec467', name: "alert-circle", class: "validation", size: "md" })), this.success && (index.h("nv-icon", { key: 'c7329b1feaca5f1bcdaae5e8398a6357bb228333', name: "circle-check", class: "validation", size: "md" })), index.h("nv-iconbutton", { key: 'd26593800bc0f65438906c576adbefabc841081a', class: "toggle-calendar-icon", name: "calendar" //{this.open ? 'chevron-top' : 'chevron-down'}
368
+ return (index.h(index.Host, { key: 'c8b62c90ddfde96e12cb63aafba29d5b507286c6' }, ((this.label && this.label.length > 0) ||
369
+ this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '761e06fd5d55b23946a87b86403105be049bbb4b', htmlFor: this.inputId }, index.h("slot", { key: '73676bbc15ddc90172e0d1a6da0c84bb21e433a1', name: "label" }, this.label))), index.h("nv-popover", { key: 'dddd5f5619c6696b1a7b9991c94fba01e3710199', ref: this.setPopoverRef, id: this.popoverId, triggerMode: "controlled", placement: "bottom-start", open: this.open }, index.h("div", { key: '28bcfe3c9a50b81b1c2565b1dbab0479cf0927c0', slot: "trigger", class: "input-wrapper" }, index.h("slot", { key: '9ff4bfecd08b05c3425baa16f56da95584a33977', name: "before-input" }), index.h("div", { key: '8cfb31352d12b45d4450fabeb84328bfb9644ee4', class: "input-container", onClick: this.handleInputContainerClick }, index.h("slot", { key: 'ac99e0f250644eef55a24979f92890b04c03179e', name: "leading-input" }), index.h("input", { key: 'dd490963055df6295d6a04eda58d44857d827255', id: this.inputId, ref: this.setInputRef, placeholder: this.placeholder ||
370
+ this.convertToInputmaskFormat(this.dateFormat), name: this.name, disabled: this.disabled, readOnly: this.readonly, required: this.required, autofocus: this.autofocus, onInput: this.handleInput, onFocus: this.handleFocus, "data-scope": "date" }), this.error && (index.h("nv-icon", { key: '16b6825561152e5157aca753082c7229d15e2c46', name: "alert-circle", class: "validation", size: "md" })), this.success && (index.h("nv-icon", { key: '4780677cf8da9866d2fa4d40557b564b8920b065', name: "circle-check", class: "validation", size: "md" })), index.h("nv-iconbutton", { key: 'c6bd82b770b28f35b6716abc8cba5a28aa13dd56', class: "toggle-calendar-icon", name: "calendar" //{this.open ? 'chevron-top' : 'chevron-down'}
374
371
  ,
375
- size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide calendar' : 'Show calendar', onClick: this.toggleCalendar, tabIndex: this.disabled ? -1 : 0 })), index.h("slot", { key: '7308a0126263ca8f0182bfbbc5305d0392fe6187', name: "after-input" })), index.h("div", { key: '25f181caaa5fa66d0245de5d050f41f603bae804', slot: "content" }, index.h("nv-calendar", { key: '0ade256f483d9c7d3c7a3af47790646510a59c2e', dateFormat: this.dateFormat, singleValue: this.singleValue, firstDayOfWeek: this.firstDayOfWeek, numberOfCalendars: this.numberOfCalendars, min: this.min, max: this.max, locale: this.locale, shortcutsPlacement: this.shortcutsPlacement, showActions: this.showActions, shortcuts: this.shortcuts, showWeekNumbers: this.showWeekNumbers, disabledDates: this.disabledDates, onValueChanged: this.handleCalendarValueChanged }))), ((this.description && this.description.length > 0) ||
376
- this.el.querySelector('[slot="description"]')) && (index.h("div", { key: 'a6b011fb140ed508a9681e9dd0635261db705c7c', class: "description" }, index.h("slot", { key: 'dfffc39d6fd525a359ff72f1ccf263f1f2a57274', name: "description" }, this.description))), (this.errorDescription ||
377
- this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: 'd421e5bf8f9839ce636007864fddfb24bac43631', hidden: !this.error, class: "error-description" }, this.el.querySelector('[slot="error-description"]') ? (index.h("slot", { name: "error-description" })) : (this.errorDescription))), index.h("slot", { key: 'b8e8b003f1fca9a499ab276bf8717f018d33fbb5' })));
372
+ size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide calendar' : 'Show calendar', onClick: this.toggleCalendar, tabIndex: this.disabled ? -1 : 0 })), index.h("slot", { key: '85ed704fa118dc5087af5ce8e791e91a3c210093', name: "after-input" })), index.h("div", { key: 'ad9eaa9cedb72c56d8d5b201904259798a790aa4', slot: "content" }, index.h("nv-calendar", { key: '79abc83113d0a14bdfcb19e693b6f5d94adaa071', dateFormat: this.dateFormat, singleValue: this.singleValue, firstDayOfWeek: this.firstDayOfWeek, numberOfCalendars: this.numberOfCalendars, min: this.min, max: this.max, locale: this.locale, shortcutsPlacement: this.shortcutsPlacement, showActions: this.showActions, shortcuts: this.shortcuts, showWeekNumbers: this.showWeekNumbers, disabledDates: this.disabledDates, onValueChanged: this.handleCalendarValueChanged }))), ((this.description && this.description.length > 0) ||
373
+ this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '8d3620b3ddb001c5ed1ba0557310a7bf4af4c5e0', class: "description" }, index.h("slot", { key: 'b80b706332d733476feec054737f35a4f008a078', name: "description" }, this.description))), (this.errorDescription ||
374
+ this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '976a1e236e6391ef7e8aeac0b56c1fd815bb9640', hidden: !this.error, class: "error-description" }, this.el.querySelector('[slot="error-description"]') ? (index.h("slot", { name: "error-description" })) : (this.errorDescription))), index.h("slot", { key: 'eb645c44cde2c175892ed31326d71897e3a5062c' })));
378
375
  }
379
376
  get el() { return index.getElement(this); }
380
377
  static get watchers() { return {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-yxDlFA78.js');
3
+ var index = require('./index-CEKdYnmK.js');
4
4
  var inputmaskEdcad3c1 = require('./inputmask-edcad3c1-B9Omti4z.js');
5
5
  var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
6
6
  require('react');
@@ -227,12 +227,10 @@ const NvFielddaterange = class {
227
227
  * Toggles the opening/closing of the popover.
228
228
  * @param {MouseEvent} event - The click event.
229
229
  */
230
- this.toggleCalendar = (event) => {
230
+ this.toggleCalendar = () => {
231
231
  if (this.readonly || this.disabled) {
232
232
  return;
233
233
  }
234
- // Stop propagation to prevent closing parent dialogs
235
- event.stopPropagation();
236
234
  this.open = !this.open;
237
235
  };
238
236
  }
@@ -522,12 +520,12 @@ const NvFielddaterange = class {
522
520
  /****************************************************************************/
523
521
  //#region RENDER
524
522
  render() {
525
- return (index.h(index.Host, { key: '091fcbf743d63bce095fe2f0dfe2c3b62eb27691' }, ((this.label && this.label.length > 0) ||
526
- this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '6566223deb5070b16724fdffa5223f3142abe8a8', htmlFor: this.startInputId }, index.h("slot", { key: 'e26f1c52a4c9326506752679a8cca1952a7a16cc', name: "label" }, this.label))), index.h("nv-popover", { key: 'f88e0162e05a5267fe79edfce881302959324d0c', ref: el => (this.popoverElement = el), id: this.popoverId, triggerMode: "controlled", placement: "bottom-start", strategy: "fixed", open: this.open }, index.h("div", { key: '9891bd8f655bb197937a4cb749ae6aab04dd7d03', slot: "trigger", class: "input-wrapper" }, index.h("slot", { key: '501373a4a2cd17a8ff0e51f8bb6bd7812686d96f', name: "before-input" }), index.h("div", { key: '67586c4999a0f5eb7261486162be293ad3a7af88', class: "input-container" }, index.h("slot", { key: '6f47145fe7a8de22311e5bbf7dbda3f9ad3a7516', name: "leading-input" }), index.h("div", { key: 'e3d5a24a8874709ef4ee2075934824664817e23c', class: "range-inputs" }, index.h("input", { key: '15d3ff16f47fe17b72a697e9155cc448253fd9e2', id: this.startInputId, type: "text", placeholder: this.startPlaceholder ||
527
- this.convertToInputmaskFormat(this.dateFormat), name: this.startName, disabled: this.disabled, readOnly: this.readonly, required: this.required, autofocus: this.autofocus, value: this.startValue, onInput: this.handleStartInput, onFocus: this.handleFocus, "data-scope": "date-range" }), index.h("div", { key: 'f5401156bcf4f3815bab6151446f0d610c15fdd4', class: "range-separator" }), index.h("input", { key: '0c00bf69390ff60d14cdbaea4bb50ef0b2bad4f6', id: this.endInputId, type: "text", placeholder: this.endPlaceholder ||
528
- this.convertToInputmaskFormat(this.dateFormat), name: this.endName, disabled: this.disabled, readOnly: this.readonly, required: this.required, value: this.endValue, onInput: this.handleEndInput, onFocus: this.handleFocus, "data-scope": "date-range" })), this.error && (index.h("nv-icon", { key: '12edaf5750b1859bcf2760a5879e2c95587d56fd', name: "alert-circle", class: "validation", size: "md" })), this.success && (index.h("nv-icon", { key: 'f5022132ee6771922e84d942764516c9e1beb539', name: "circle-check", class: "validation", size: "md" })), index.h("nv-iconbutton", { key: '8938c06c316d7fdae873d7ee0f967d56c70824a1', class: "toggle-calendar-icon", name: "calendar", size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide calendar' : 'Show calendar', onClick: this.toggleCalendar, tabIndex: this.disabled ? -1 : 0 })), index.h("slot", { key: '9915b8477bc690f3137b5a9aa6d1b05e7836a951', name: "after-input" })), index.h("div", { key: '6068c57cf56b056ff5420923864a94472dbac32a', slot: "content" }, index.h("nv-calendar", { key: '8dd945abd1a9f16f38474fa091dfb8d4919887a0', ref: el => (this.calendarElement = el), dateFormat: this.dateFormat, value: this.value, firstDayOfWeek: this.firstDayOfWeek, numberOfCalendars: this.numberOfCalendars, min: this.min, max: this.max, locale: this.locale, shortcutsPlacement: this.shortcutsPlacement, showActions: this.showActions, shortcuts: this.shortcuts, showWeekNumbers: this.showWeekNumbers, disabledDates: this.disabledDates, selectionType: "range", "data-prevent-navigation": "true" }))), ((this.description && this.description.length > 0) ||
529
- this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '7ef39c67687d0bd02e3f7df90a3d219961074602', class: "description" }, index.h("slot", { key: '8d7a226adcf892da6851406d45c18dfcb2a7f9c7', name: "description" }, this.description))), (this.errorDescription ||
530
- this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '23ed909597234f6dde3ace8de00b891e9b6ac862', hidden: !this.error, class: "error-description" }, this.el.querySelector('[slot="error-description"]') ? (index.h("slot", { name: "error-description" })) : (this.errorDescription))), index.h("slot", { key: '34d6bf60a2dab0d3f167ae775e3a43997ae2fa42' })));
523
+ return (index.h(index.Host, { key: '9f0ce8b2e6579ea6225dfbac7cb75cf78ea0c5f5' }, ((this.label && this.label.length > 0) ||
524
+ this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '9adfefaeda1116c4b3dfa297529aa77a48b66cfe', htmlFor: this.startInputId }, index.h("slot", { key: '819fcfcf8ee7b649e3271d9c8ae24a4b70a60c81', name: "label" }, this.label))), index.h("nv-popover", { key: 'f689f4796b739ca1651cb812c428663e5935fa64', ref: el => (this.popoverElement = el), id: this.popoverId, triggerMode: "controlled", placement: "bottom-start", open: this.open }, index.h("div", { key: 'c5f3174c497a74205a4ab5e289ededbc2ab6ca3f', slot: "trigger", class: "input-wrapper" }, index.h("slot", { key: '08e0703992304fe911a2ff4eef74023c8832629b', name: "before-input" }), index.h("div", { key: '9bc9c65f34a2de1c9f8054ccc038258982033e1b', class: "input-container" }, index.h("slot", { key: '47dbf93940e9c452d20b67b81fb7abd9b807af0d', name: "leading-input" }), index.h("div", { key: 'ea4587f7c5013cbd8d7e093aa85532438c18b5ab', class: "range-inputs" }, index.h("input", { key: '544297b36fb3646178c663d6aaa22c2cd3e0616b', id: this.startInputId, type: "text", placeholder: this.startPlaceholder ||
525
+ this.convertToInputmaskFormat(this.dateFormat), name: this.startName, disabled: this.disabled, readOnly: this.readonly, required: this.required, autofocus: this.autofocus, value: this.startValue, onInput: this.handleStartInput, onFocus: this.handleFocus, "data-scope": "date-range" }), index.h("div", { key: '15862aa6acde78f9da8433ded18b5a9ca8508ff5', class: "range-separator" }), index.h("input", { key: 'f481feb34af3f5581f2d97bafaa126f306aae12b', id: this.endInputId, type: "text", placeholder: this.endPlaceholder ||
526
+ this.convertToInputmaskFormat(this.dateFormat), name: this.endName, disabled: this.disabled, readOnly: this.readonly, required: this.required, value: this.endValue, onInput: this.handleEndInput, onFocus: this.handleFocus, "data-scope": "date-range" })), this.error && (index.h("nv-icon", { key: '9a4a155d4e6ab389406ad14cc29e8fa25e578ce9', name: "alert-circle", class: "validation", size: "md" })), this.success && (index.h("nv-icon", { key: '19969e5286a666fceb583de8901191595329f380', name: "circle-check", class: "validation", size: "md" })), index.h("nv-iconbutton", { key: '76a17a3d44ce189128467997434e34e82d607363', class: "toggle-calendar-icon", name: "calendar", size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide calendar' : 'Show calendar', onClick: this.toggleCalendar, tabIndex: this.disabled ? -1 : 0 })), index.h("slot", { key: '53c374d1628c396015f7006ad63c294932d5e78e', name: "after-input" })), index.h("div", { key: 'f5d53344987a39a54ac933cc94c802212b98c651', slot: "content" }, index.h("nv-calendar", { key: '4992731905d118e806a9a22df0413bdfb350f61e', ref: el => (this.calendarElement = el), dateFormat: this.dateFormat, value: this.value, firstDayOfWeek: this.firstDayOfWeek, numberOfCalendars: this.numberOfCalendars, min: this.min, max: this.max, locale: this.locale, shortcutsPlacement: this.shortcutsPlacement, showActions: this.showActions, shortcuts: this.shortcuts, showWeekNumbers: this.showWeekNumbers, disabledDates: this.disabledDates, selectionType: "range", "data-prevent-navigation": "true" }))), ((this.description && this.description.length > 0) ||
527
+ this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '396e2f1e53b4e7cd6233993c10aac1b1001d6a3c', class: "description" }, index.h("slot", { key: 'fccf3a987ed03560d8eb8a3657ca3ce9f291493c', name: "description" }, this.description))), (this.errorDescription ||
528
+ this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: 'e76e336e460ed64a05fd1748859f159ce3b74120', hidden: !this.error, class: "error-description" }, this.el.querySelector('[slot="error-description"]') ? (index.h("slot", { name: "error-description" })) : (this.errorDescription))), index.h("slot", { key: 'be76d31f0eeaf50e589f0ab317e04bd3be3d9ba4' })));
531
529
  }
532
530
  get el() { return index.getElement(this); }
533
531
  static get watchers() { return {