@nova-design-system/nova-react 3.20.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.
- package/dist/cjs/generated/components.server.js +106 -2
- package/dist/cjs/grow.animation-24ad5cf8-LUp_ITEx.js +111 -0
- package/dist/cjs/{index-BObVnP12.js → index-CEKdYnmK.js} +1794 -463
- package/dist/cjs/index.js +12 -1
- package/dist/cjs/{nv-accordion-item.entry-BBAGkmLI.js → nv-accordion-item.entry-zvp8yDql.js} +1 -1
- package/dist/cjs/{nv-accordion.entry-CvvtdLIz.js → nv-accordion.entry-D6gckOF4.js} +1 -1
- package/dist/cjs/{nv-alert.entry-w5XeFsrC.js → nv-alert.entry-Df8-nQ-R.js} +1 -1
- package/dist/cjs/{nv-avatar.entry-BxUZg-8h.js → nv-avatar.entry-ZOnVWP9L.js} +1 -1
- package/dist/cjs/{nv-badge_2.entry-DdSIFlJf.js → nv-badge_2.entry-DgiVv_Yf.js} +2 -2
- package/dist/cjs/{nv-breadcrumb.entry-CmbqGw3C.js → nv-breadcrumb.entry-IqtE1JL0.js} +1 -1
- package/dist/cjs/{nv-breadcrumbs.entry-DFHxtPKv.js → nv-breadcrumbs.entry-Be6dz7zI.js} +1 -1
- package/dist/cjs/nv-button.entry-CmswF3Si.js +164 -0
- package/dist/cjs/{nv-buttongroup.entry-wn9zFd_M.js → nv-buttongroup.entry-Cfe6rFSs.js} +1 -1
- package/dist/cjs/{nv-calendar.entry-Dldsa6dz.js → nv-calendar.entry-q83sS_dN.js} +1 -1
- package/dist/cjs/{nv-col.entry-DnG79KM1.js → nv-col.entry-Cu-Qi1bi.js} +1 -1
- package/dist/cjs/{nv-datagrid.entry-C2ML-e47.js → nv-datagrid.entry-Cx7SvD5S.js} +3 -3
- package/dist/cjs/{nv-datagridcolumn.entry-DcMPUtQS.js → nv-datagridcolumn.entry-B_uXKFLg.js} +1 -1
- package/dist/cjs/{nv-dialog.entry-C0Vx7dQc.js → nv-dialog.entry-J6Xwi6z1.js} +54 -20
- package/dist/cjs/{nv-dialogfooter_2.entry-BGq8Jiib.js → nv-dialogfooter_2.entry-DOlhqDTh.js} +3 -3
- package/dist/cjs/{nv-fieldcheckbox.entry-CAPwYnSU.js → nv-fieldcheckbox.entry-C23dGGX7.js} +5 -5
- package/dist/cjs/{nv-fielddate.entry-Byt5cmQi.js → nv-fielddate.entry-xWi3GpLl.js} +15 -18
- package/dist/cjs/{nv-fielddaterange.entry-CCFeFP2q.js → nv-fielddaterange.entry-BwFtpw9X.js} +8 -10
- package/dist/cjs/{nv-fielddropdown.entry-BFp_2vBC.js → nv-fielddropdown.entry-mnl7mSaK.js} +15 -6
- package/dist/cjs/{nv-fielddropdownitem.entry-D_4KdBY1.js → nv-fielddropdownitem.entry-DjyFlVXw.js} +3 -3
- package/dist/cjs/{nv-fieldmultiselect.entry-BaUD7Dcr.js → nv-fieldmultiselect.entry-BtLTG7nM.js} +2 -2
- package/dist/cjs/{nv-fieldnumber.entry-DOmhBrDv.js → nv-fieldnumber.entry-C00Hg70B.js} +4 -4
- package/dist/cjs/{nv-fieldpassword.entry-hogiPC5z.js → nv-fieldpassword.entry-BLg8tCN0.js} +4 -4
- package/dist/cjs/{nv-fieldradio.entry-CKbyWpIK.js → nv-fieldradio.entry-2hb1Ur40.js} +4 -4
- package/dist/cjs/{nv-fieldselect.entry-tpURNUEP.js → nv-fieldselect.entry-D-eYQpAv.js} +6 -6
- package/dist/cjs/{nv-fieldslider.entry-v0d92XEY.js → nv-fieldslider.entry-BGle1RZR.js} +4 -4
- package/dist/cjs/{nv-fieldtext.entry-DNYrOAhj.js → nv-fieldtext.entry-Djg8cqOa.js} +4 -4
- package/dist/cjs/{nv-fieldtextarea.entry-cRsjPwwR.js → nv-fieldtextarea.entry-Z32-s901.js} +4 -4
- package/dist/cjs/{nv-fieldtime.entry-BpGBUfKr.js → nv-fieldtime.entry-CDFGdfFL.js} +4 -4
- package/dist/cjs/nv-icon.entry-BDq7DKRt.js +80 -0
- package/dist/cjs/{nv-iconbutton_2.entry-DOv1RrkS.js → nv-iconbutton_2.entry-DdgEkFLK.js} +8 -3
- package/dist/cjs/{nv-menu.entry-C2L8F-nG.js → nv-menu.entry-iob0Kve8.js} +2 -2
- package/dist/cjs/{nv-menuitem.entry-DuDZTlJ1.js → nv-menuitem.entry-C989Ui60.js} +2 -2
- package/dist/cjs/nv-notification-bullet.entry-J8OkAZtU.js +77 -0
- package/dist/cjs/{nv-notification.entry-DxAj-mc7.js → nv-notification.entry-BxvJMKxH.js} +2 -2
- package/dist/cjs/{nv-notificationcontainer.entry-CUnTicXF.js → nv-notificationcontainer.entry-CxGCIb96.js} +2 -2
- package/dist/cjs/{nv-popover.entry-DVwa4DvW.js → nv-popover.entry-1KsO_KQm.js} +14 -98
- package/dist/cjs/{nv-row.entry-iLk2UglX.js → nv-row.entry-PBLq_BzJ.js} +2 -2
- package/dist/cjs/nv-sidebar.entry-CjLbvLqw.js +177 -0
- package/dist/cjs/nv-sidebarcontent.entry-Cv76IH4W.js +22 -0
- package/dist/cjs/nv-sidebardivider.entry-DYPJ_k73.js +22 -0
- package/dist/cjs/nv-sidebarfooter.entry-mGcMBRmv.js +22 -0
- package/dist/cjs/nv-sidebargroup.entry-DtwFliHZ.js +23 -0
- package/dist/cjs/nv-sidebarheader.entry-BdOYIXCA.js +22 -0
- package/dist/cjs/nv-sidebarlogo.entry-Da0kGsfw.js +32 -0
- package/dist/cjs/nv-sidebarnavitem.entry-D5xLfpwn.js +297 -0
- package/dist/cjs/nv-sidebarnavsubitem.entry-CkeJfHH4.js +35 -0
- package/dist/cjs/{nv-split.entry-BrMHK6TS.js → nv-split.entry-y66NBf88.js} +2 -2
- package/dist/cjs/{nv-stack.entry-C8jLJ5Ki.js → nv-stack.entry-CXjpkpbW.js} +2 -2
- package/dist/cjs/{nv-table.entry-D6o4g9Vo.js → nv-table.entry-quaVnLru.js} +2 -2
- package/dist/cjs/nv-tableheader.entry-DTBE2XQO.js +75 -0
- package/dist/cjs/{nv-toggle.entry-9iwmu7qi.js → nv-toggle.entry-CxUwF0pb.js} +3 -3
- package/dist/cjs/nv-togglebutton.entry-w-WEAmE6.js +56 -0
- package/dist/cjs/{nv-togglebuttongroup.entry-DWCytOhV.js → nv-togglebuttongroup.entry-UbrE8y7a.js} +2 -2
- package/dist/cjs/{nv-tooltip.entry-BMxnZVYA.js → nv-tooltip.entry-Dq2bkV33.js} +2 -2
- package/dist/components/{NvDatatable.js → NvDatatable/NvDatatable.js} +88 -46
- package/dist/components/NvDatatable/index.js +3 -0
- package/dist/components/NvDatatable/types.js +1 -0
- package/dist/components/NvDatatable/utils.js +5 -0
- package/dist/generated/components.js +88 -0
- package/dist/generated/components.server.js +95 -2
- package/dist/providers/NotificationProvider.js +27 -0
- package/dist/types/components/NvDatatable/NvDatatable.d.ts +7 -0
- package/dist/types/components/NvDatatable/index.d.ts +3 -0
- package/dist/types/components/{NvDatatable.d.ts → NvDatatable/types.d.ts} +18 -8
- package/dist/types/components/NvDatatable/utils.d.ts +2 -0
- package/dist/types/generated/components.d.ts +37 -0
- package/dist/types/generated/components.server.d.ts +37 -0
- package/dist/types/providers/NotificationProvider.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/events.utils-fe1d907f-01N__3wY.js +0 -23
- package/dist/cjs/nv-button.entry-Dyks6_mF.js +0 -159
- package/dist/cjs/nv-icon.entry-BfmyacWA.js +0 -80
- package/dist/cjs/nv-togglebutton.entry-N7_CSvzS.js +0 -56
package/dist/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CEKdYnmK.js');
|
|
4
4
|
require('react');
|
|
5
5
|
require('react-dom');
|
|
6
6
|
|
|
@@ -91,12 +91,23 @@ 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;
|
|
110
|
+
exports.NvTableheader = index.NvTableheader;
|
|
100
111
|
exports.NvToggle = index.NvToggle;
|
|
101
112
|
exports.NvTogglebutton = index.NvTogglebutton;
|
|
102
113
|
exports.NvTogglebuttongroup = index.NvTogglebuttongroup;
|
package/dist/cjs/{nv-accordion-item.entry-BBAGkmLI.js → nv-accordion-item.entry-zvp8yDql.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
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-
|
|
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-
|
|
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: '
|
|
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
|
};
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-CEKdYnmK.js');
|
|
4
|
+
var constants69bafca2 = require('./constants-69bafca2-DpB_ghPF.js');
|
|
5
|
+
require('react');
|
|
6
|
+
require('react-dom');
|
|
7
|
+
|
|
8
|
+
const nvButtonCss = "nv-button{text-decoration:none;display:inline-flex;justify-content:center;align-items:center;font-style:normal;font-weight:var(--font-weight-medium-emphasis);font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;transition:background-color 150ms ease-out;user-select:none;cursor:pointer;height:fit-content;width:fit-content}nv-button[size=xs]{padding:var(--button-xs-padding-y) var(--button-xs-padding-x);gap:var(--button-xs-gap);border-radius:var(--button-xs-border-radius);line-height:var(--button-xs-line-height);height:var(--button-xs-height);font-size:var(--button-xs-font-size)}nv-button[size=xs] nv-icon>svg{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-button[size=sm]{padding:var(--button-sm-padding-y) var(--button-sm-padding-x);gap:var(--button-sm-gap);border-radius:var(--button-sm-border-radius);line-height:var(--button-sm-line-height);height:var(--button-sm-height);font-size:var(--button-sm-font-size)}nv-button[size=sm] nv-icon>svg{width:var(--spacing-4);height:var(--spacing-4);stroke-width:1.5px}nv-button[size=md]{padding:var(--button-md-padding-y) var(--button-md-padding-x);gap:var(--button-md-gap);border-radius:var(--button-md-border-radius);line-height:var(--button-md-line-height);height:var(--button-md-height);font-size:var(--button-md-font-size)}nv-button[size=md] nv-icon>svg{width:var(--spacing-5);height:var(--spacing-5);stroke-width:1.6px}nv-button[size=lg]{padding:var(--button-lg-padding-y) var(--button-lg-padding-x);gap:var(--button-lg-gap);border-radius:var(--button-lg-border-radius);line-height:var(--button-lg-line-height);height:var(--button-lg-height);font-size:var(--button-lg-font-size)}nv-button[size=lg] nv-icon>svg{width:var(--spacing-6);height:var(--spacing-6);stroke-width:1.8px}nv-button[emphasis=high]{background:var(--components-button-high-background);border:1px solid var(--components-button-high-border);color:var(--components-button-high-text)}nv-button[emphasis=high]:hover{background:var(--components-button-high-background-hover);border:1px solid var(--components-button-high-border);color:var(--components-button-high-text-hover)}nv-button[emphasis=high]:active{background:var(--components-button-high-background-active);border:1px solid var(--components-button-high-border-active);color:var(--components-button-high-text-active)}nv-button[emphasis=high]:focus,nv-button[emphasis=high]:focus-within{outline:none}nv-button[emphasis=high]:focus-visible,nv-button[emphasis=high]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=high]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-button[emphasis=high][active]:not([active=false]){background:var(--components-button-high-background-active);border:1px solid var(--components-button-high-border-active);color:var(--components-button-high-text-active)}nv-button[emphasis=high][danger]:not([danger=false]){background:var(--components-button-destructive-high-background);border:1px solid transparent;color:var(--components-button-destructive-high-text)}nv-button[emphasis=high][danger]:not([danger=false]):hover{background:var(--components-button-destructive-high-background-hover);border:1px solid transparent;color:var(--components-button-destructive-high-text-hover)}nv-button[emphasis=high][danger]:not([danger=false]):focus,nv-button[emphasis=high][danger]:not([danger=false]):focus-within{outline:none}nv-button[emphasis=high][danger]:not([danger=false]):focus-visible,nv-button[emphasis=high][danger]:not([danger=false]):has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-destructive);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=medium]{background:var(--components-button-medium-background);border:1px solid var(--components-button-medium-border);color:var(--components-button-medium-text)}nv-button[emphasis=medium]:hover{background:var(--components-button-medium-background-hover);border:1px solid var(--components-button-medium-border);color:var(--components-button-medium-text-hover)}nv-button[emphasis=medium]:active{background:var(--components-button-medium-background-active);border:1px solid var(--components-button-medium-border-active);color:var(--components-button-medium-text-active)}nv-button[emphasis=medium]:focus,nv-button[emphasis=medium]:focus-within{outline:none}nv-button[emphasis=medium]:focus-visible,nv-button[emphasis=medium]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=medium]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-button[emphasis=medium][active]:not([active=false]){background:var(--components-button-medium-background-active);border:1px solid var(--components-button-medium-border-active);color:var(--components-button-medium-text-active)}nv-button[emphasis=medium][danger]:not([danger=false]){background:var(--components-button-destructive-medium-background);border:1px solid var(--components-button-destructive-medium-border);color:var(--components-button-destructive-medium-text)}nv-button[emphasis=medium][danger]:not([danger=false]):hover{background:var(--components-button-destructive-medium-background-hover);border:1px solid var(--components-button-destructive-medium-border);color:var(--components-button-destructive-medium-text-hover)}nv-button[emphasis=medium][danger]:not([danger=false]):focus,nv-button[emphasis=medium][danger]:not([danger=false]):focus-within{outline:none}nv-button[emphasis=medium][danger]:not([danger=false]):focus-visible,nv-button[emphasis=medium][danger]:not([danger=false]):has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-destructive);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=low]{background:var(--components-button-low-background);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text)}nv-button[emphasis=low]:hover{background:var(--components-button-low-background-hover);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text-hover)}nv-button[emphasis=low]:active{background:var(--components-button-low-background-active);border:1px solid var(--components-button-low-border-active);color:var(--components-button-low-text-active)}nv-button[emphasis=low]:focus,nv-button[emphasis=low]:focus-within{outline:none}nv-button[emphasis=low]:focus-visible,nv-button[emphasis=low]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=low]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-button[emphasis=low][active]:not([active=false]){background:var(--components-button-low-background-active);border:1px solid var(--components-button-low-border-active);color:var(--components-button-low-text-active)}nv-button[emphasis=low][danger]:not([danger=false]){background:var(--components-button-destructive-low-background);border:1px solid var(--components-button-destructive-low-border);color:var(--components-button-destructive-low-text)}nv-button[emphasis=low][danger]:not([danger=false]):hover{background:var(--components-button-destructive-low-background-hover);border:1px solid var(--components-button-destructive-low-border);color:var(--components-button-destructive-low-text-hover)}nv-button[emphasis=low][danger]:not([danger=false]):focus,nv-button[emphasis=low][danger]:not([danger=false]):focus-within{outline:none}nv-button[emphasis=low][danger]:not([danger=false]):focus-visible,nv-button[emphasis=low][danger]:not([danger=false]):has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-destructive);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=lower]{background:var(--components-button-lower-background);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text)}nv-button[emphasis=lower]:hover{background:var(--components-button-lower-background-hover);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text-hover)}nv-button[emphasis=lower]:active{background:var(--components-button-lower-background-active);border:1px solid var(--components-button-lower-border-active);color:var(--components-button-lower-text-active)}nv-button[emphasis=lower]:focus,nv-button[emphasis=lower]:focus-within{outline:none}nv-button[emphasis=lower]:focus-visible,nv-button[emphasis=lower]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=lower]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-button[emphasis=lower][active]:not([active=false]){background:var(--components-button-lower-background-active);border:1px solid var(--components-button-lower-border-active);color:var(--components-button-lower-text-active)}nv-button[emphasis=lower][danger]:not([danger=false]){background:var(--components-button-destructive-lower-background);border:1px solid var(--components-button-destructive-lower-border);color:var(--components-button-destructive-lower-text)}nv-button[emphasis=lower][danger]:not([danger=false]):hover{background:var(--components-button-destructive-lower-background-hover);border:1px solid var(--components-button-destructive-lower-border);color:var(--components-button-destructive-lower-text-hover)}nv-button[emphasis=lower][danger]:not([danger=false]):focus,nv-button[emphasis=lower][danger]:not([danger=false]):focus-within{outline:none}nv-button[emphasis=lower][danger]:not([danger=false]):focus-visible,nv-button[emphasis=lower][danger]:not([danger=false]):has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-destructive);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[fluid]:not([fluid=false]){width:100%}nv-button[loading]:not([loading=false]) [slot=leading-icon]{display:none}";
|
|
9
|
+
const NvButtonStyle0 = nvButtonCss;
|
|
10
|
+
|
|
11
|
+
const NvButton = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
index.registerInstance(this, hostRef);
|
|
14
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
15
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
19
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
20
|
+
}
|
|
21
|
+
/****************************************************************************/
|
|
22
|
+
//#region PROPERTIES
|
|
23
|
+
/**
|
|
24
|
+
* Determines how large or small the button appears, allowing for
|
|
25
|
+
* customization of the button's dimensions to fit different design
|
|
26
|
+
* specifications and user needs.
|
|
27
|
+
*/
|
|
28
|
+
this.size = 'md';
|
|
29
|
+
/**
|
|
30
|
+
* Adjusts the button's emphasis to make it more or less visually prominent
|
|
31
|
+
* to users. Use this to draw attention to important actions or reduce focus
|
|
32
|
+
* on less critical ones
|
|
33
|
+
*/
|
|
34
|
+
this.emphasis = 'high';
|
|
35
|
+
/**
|
|
36
|
+
* Use this prop to highlight the button when it represents the current page
|
|
37
|
+
* or active selection. This helps users understand their navigation context.
|
|
38
|
+
*/
|
|
39
|
+
this.active = false;
|
|
40
|
+
/**
|
|
41
|
+
* Applies styling that visually indicates the button represents a dangerous
|
|
42
|
+
* action.
|
|
43
|
+
*/
|
|
44
|
+
this.danger = false;
|
|
45
|
+
/**
|
|
46
|
+
* Set this to true to show a spinner on the button, letting users know that
|
|
47
|
+
* their action is being processed. It helps improve user experience by
|
|
48
|
+
* indicating ongoing activities.
|
|
49
|
+
*/
|
|
50
|
+
this.loading = false;
|
|
51
|
+
/**
|
|
52
|
+
* Disables the button, preventing user interaction.
|
|
53
|
+
*/
|
|
54
|
+
this.disabled = false;
|
|
55
|
+
/**
|
|
56
|
+
* Allows the button to stretch and fill the entire width of its container.
|
|
57
|
+
*/
|
|
58
|
+
this.fluid = false;
|
|
59
|
+
/**
|
|
60
|
+
* Sets the button type to control its function in forms. Use 'submit' to send
|
|
61
|
+
* form data, 'reset' to clear the form, or 'button' for a standard button
|
|
62
|
+
* that doesn't interact with form submission by default.
|
|
63
|
+
*/
|
|
64
|
+
this.type = 'button';
|
|
65
|
+
/**
|
|
66
|
+
* Use this to make the button skip-able when users navigate with the keyboard.
|
|
67
|
+
* The button remains clickable but won’t be reached via the Tab key.
|
|
68
|
+
*/
|
|
69
|
+
this.disableTabindex = false;
|
|
70
|
+
//#endregion PROPERTIES
|
|
71
|
+
/****************************************************************************/
|
|
72
|
+
//#region METHODS
|
|
73
|
+
/**
|
|
74
|
+
* Handles button click events, managing form actions and disabled states.
|
|
75
|
+
* Prevents default behavior when button is disabled or loading, and
|
|
76
|
+
* processes form submissions/resets when appropriate.
|
|
77
|
+
* @param {Event} event - The click event.
|
|
78
|
+
*/
|
|
79
|
+
this.handleButtonClick = (event) => {
|
|
80
|
+
var _a;
|
|
81
|
+
if (this.loading || this.disabled) {
|
|
82
|
+
event.preventDefault();
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
if (this.type !== constants69bafca2.ButtonType.Button &&
|
|
86
|
+
(this.form || ((_a = this.internals) === null || _a === void 0 ? void 0 : _a.form))) {
|
|
87
|
+
this.processFormAction();
|
|
88
|
+
}
|
|
89
|
+
else if (this.form && this.type === constants69bafca2.ButtonType.Button) {
|
|
90
|
+
console.warn('Button has a form id but is not of type submit or reset so no form action will be processed.', `Button:`, this.el);
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Processes form-related actions by finding the associated form element
|
|
95
|
+
* and triggering the appropriate action (submit/reset) based on button type.
|
|
96
|
+
* Falls back to ElementInternals form if no explicit form ID is provided.
|
|
97
|
+
*/
|
|
98
|
+
this.processFormAction = () => {
|
|
99
|
+
var _a, _b;
|
|
100
|
+
const formElement = this.form
|
|
101
|
+
? document.getElementById(this.form)
|
|
102
|
+
: (_a = this.internals) === null || _a === void 0 ? void 0 : _a.form;
|
|
103
|
+
if (!formElement) {
|
|
104
|
+
console.warn('No form element found.', `Form ID: ${this.form || 'Not provided'}`, `Internals form:`, (_b = this.internals) === null || _b === void 0 ? void 0 : _b.form);
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
switch (this.type) {
|
|
108
|
+
case constants69bafca2.ButtonType.Submit:
|
|
109
|
+
formElement.requestSubmit();
|
|
110
|
+
break;
|
|
111
|
+
case constants69bafca2.ButtonType.Reset:
|
|
112
|
+
formElement.reset();
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
//#endregion METHODS
|
|
118
|
+
/****************************************************************************/
|
|
119
|
+
//#region EVENTS
|
|
120
|
+
handleKeyDown(event) {
|
|
121
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
122
|
+
event.preventDefault();
|
|
123
|
+
this.el.click();
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
//#endregion EVENTS
|
|
127
|
+
/****************************************************************************/
|
|
128
|
+
//#region WATCHERS
|
|
129
|
+
handleLoadingChange(loading) {
|
|
130
|
+
this.loading = loading;
|
|
131
|
+
this.disabled = loading;
|
|
132
|
+
}
|
|
133
|
+
handleDisabledChange(disabled) {
|
|
134
|
+
if (this.loading) {
|
|
135
|
+
this.disabled = this.loading;
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
this.disabled = disabled;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
//#endregion WATCHERS
|
|
142
|
+
/****************************************************************************/
|
|
143
|
+
//#region LIFECYCLE
|
|
144
|
+
componentWillLoad() {
|
|
145
|
+
if (this.loading) {
|
|
146
|
+
this.disabled = this.loading;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
//#endregion LIFECYCLE
|
|
150
|
+
/****************************************************************************/
|
|
151
|
+
//#region RENDER
|
|
152
|
+
render() {
|
|
153
|
+
return (index.h(index.Host, { key: '785b6127926d695ddaaff1a1f740102abd5132bb', role: "button", tabindex: this.disableTabindex ? -1 : 0, onClick: this.handleButtonClick }, this.loading && (index.h("nv-loader", { key: 'b361e4ac45cc1612723d6a67f866b8cdce3c4abc', size: this.size === constants69bafca2.ButtonSize.Large ? 'sm' : 'xs' })), index.h("slot", { key: 'b23c877bd95ae0a02c89c83e4e3d5f0178d646a5', name: "leading-icon" }), index.h("slot", { key: '7c95b1f28a64e7bb5ca02abf2190dfda62d1c758' }), index.h("slot", { key: 'f1cd34ea21393b78bc2f5140364d47b9e70f505c', name: "trailing-icon" })));
|
|
154
|
+
}
|
|
155
|
+
static get formAssociated() { return true; }
|
|
156
|
+
get el() { return index.getElement(this); }
|
|
157
|
+
static get watchers() { return {
|
|
158
|
+
"loading": ["handleLoadingChange"],
|
|
159
|
+
"disabled": ["handleDisabledChange"]
|
|
160
|
+
}; }
|
|
161
|
+
};
|
|
162
|
+
NvButton.style = NvButtonStyle0;
|
|
163
|
+
|
|
164
|
+
exports.nv_button = NvButton;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
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-
|
|
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');
|
|
@@ -4489,7 +4489,7 @@ const NvDatagrid = class {
|
|
|
4489
4489
|
const rows = !this.table || this.table === undefined || this.parsedData.length === 0
|
|
4490
4490
|
? []
|
|
4491
4491
|
: (_c = (_b = this.table) === null || _b === void 0 ? void 0 : _b.getRowModel()) === null || _c === void 0 ? void 0 : _c.rows;
|
|
4492
|
-
return (index.h(index.Host, { key: '
|
|
4492
|
+
return (index.h(index.Host, { key: 'e451dbf6c1042fc5a3796499946db45b4797dc93' }, index.h("div", { key: '670240e9033cdfaa50f5ce81a09ded008e17be12', class: "hidden" }, index.h("slot", { key: '814388d223b82c65f9ee7d1d32ad5ad3faf43f38' })), index.h("slot", { key: '5d8b91ec6e98f86fe1b9b67aef971d228ab54533', name: "before" }), this.enableGlobalFilter && this.table && (index.h("div", { key: 'c9c308ac2e7306414a659b020d8ac169e7705a07', class: `search-container justify-${this.globalFilterPosition}` }, index.h("nv-fieldtext", { key: 'd0447d814471e881aaa186bddcbc245b4defab4d', value: this.globalFilterSearchTerm, onInput: this.handleGlobalFilteringOnInput, placeholder: "Search all columns..." }))), this.parsedColumns.length === 0 && this.parsedData.length === 0 ? (index.h("div", { class: "no-data" }, this.noColumnsNoDataMessage)) : (index.h("div", null, index.h("table", null, this.parsedColumns.length > 0 && headerGroups.length > 0 && (index.h("thead", null, this.parsedColumns.length > 0 && headerGroups
|
|
4493
4493
|
? headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups.map(headerGroup => (index.h("tr", { key: headerGroup.id }, headerGroup.headers.map(header => {
|
|
4494
4494
|
return this.getHeaderCell(header);
|
|
4495
4495
|
}))))
|
|
@@ -4500,7 +4500,7 @@ const NvDatagrid = class {
|
|
|
4500
4500
|
return (index.h("td", { key: cell.id, "data-row-id": rowId }, this.flexRender(cell.column.columnDef.cell, cell.getContext())));
|
|
4501
4501
|
})));
|
|
4502
4502
|
}))), this.table && this.enableRowSelection ? (index.h("tfoot", null, index.h("tr", null, index.h("td", { colSpan: 20 }, this.enableRowSelection && this.table ? (index.h("div", null, this.rowSelectionState &&
|
|
4503
|
-
Object.keys(this.rowSelectionState).length > 0 ? (index.h("span", null, Object.keys(this.rowSelectionState).length, " of", ' ', ((_e = (_d = this.table.getPreFilteredRowModel()) === null || _d === void 0 ? void 0 : _d.rows) === null || _e === void 0 ? void 0 : _e.length) || 0, ' ', "Total Rows Selected")) : (index.h("span", null, "No rows selected")))) : null)))) : null), this.getPagination())), index.h("slot", { key: '
|
|
4503
|
+
Object.keys(this.rowSelectionState).length > 0 ? (index.h("span", null, Object.keys(this.rowSelectionState).length, " of", ' ', ((_e = (_d = this.table.getPreFilteredRowModel()) === null || _d === void 0 ? void 0 : _d.rows) === null || _e === void 0 ? void 0 : _e.length) || 0, ' ', "Total Rows Selected")) : (index.h("span", null, "No rows selected")))) : null)))) : null), this.getPagination())), index.h("slot", { key: '630915f2ec10f811feae59def0c0b3f4769b11b6', name: "after" })));
|
|
4504
4504
|
}
|
|
4505
4505
|
get el() { return index.getElement(this); }
|
|
4506
4506
|
static get watchers() { return {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var
|
|
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{
|
|
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
|
-
|
|
613
|
-
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
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: '
|
|
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 {
|
package/dist/cjs/{nv-dialogfooter_2.entry-BGq8Jiib.js → nv-dialogfooter_2.entry-DOlhqDTh.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
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: '
|
|
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: '
|
|
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-
|
|
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: '
|
|
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: '
|
|
127
|
-
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '
|
|
128
|
-
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '
|
|
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); }
|