@nova-design-system/nova-react 3.31.2-beta.4 → 3.33.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/THIRD_PARTY_NOTICES.txt +89925 -90780
- package/dist/cjs/events.utils-BysSxG1C-CckC1aXX.js +40 -0
- package/dist/cjs/{index-DN55EpKb.js → index-BNK3HFv_.js} +263 -267
- package/dist/cjs/{index.esm-D3eWMME9-CG1TVKfu.js → index.esm-DBTxpXCn-D5HbQDBa.js} +48 -30
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/{nv-accordion-item.entry-DTMF2QA4.js → nv-accordion-item.entry-DJjtHWto.js} +1 -1
- package/dist/cjs/{nv-accordion.entry-LhpIZNos.js → nv-accordion.entry-DIpRQ1yZ.js} +1 -1
- package/dist/cjs/{nv-alert.entry-CLzSK5qn.js → nv-alert.entry-s8ltmaSW.js} +1 -1
- package/dist/cjs/{nv-avatar.entry-BLdl6iCG.js → nv-avatar.entry-Uoj3PxPB.js} +1 -1
- package/dist/cjs/{nv-badge_2.entry-D9dDFfNt.js → nv-badge_2.entry-XvGfkslD.js} +1 -1
- package/dist/cjs/{nv-breadcrumb.entry-zM46pNeP.js → nv-breadcrumb.entry-xrbBbTWB.js} +1 -1
- package/dist/cjs/{nv-breadcrumbs.entry-C15cO6Oe.js → nv-breadcrumbs.entry-BlymeOTX.js} +1 -1
- package/dist/cjs/{nv-button.entry-DI4P9AiP.js → nv-button.entry-hufry_es.js} +1 -1
- package/dist/cjs/{nv-buttongroup.entry-D7yCaYjm.js → nv-buttongroup.entry-BCN3BnAR.js} +1 -1
- package/dist/cjs/{nv-calendar.entry-zseSe52a.js → nv-calendar.entry-D9AyUjb8.js} +3 -3
- package/dist/cjs/{nv-col.entry-nEoJ7359.js → nv-col.entry-BshQRf6v.js} +1 -1
- package/dist/cjs/{nv-datagrid.entry-CFwixyUO.js → nv-datagrid.entry-a3NBcRtd.js} +1 -1
- package/dist/cjs/{nv-datagridcolumn.entry-B_olySPa.js → nv-datagridcolumn.entry-DFgcPx8Y.js} +1 -1
- package/dist/cjs/{nv-datetest.entry-Dwr0C5xt.js → nv-datetest.entry-tyVjTBBR.js} +1 -1
- package/dist/cjs/{nv-datetimetest.entry-hziXdUJX.js → nv-datetimetest.entry-CNZNSBlt.js} +1 -1
- package/dist/cjs/{nv-dialog.entry-B9qKSweg.js → nv-dialog.entry-Bo0_iopY.js} +39 -18
- package/dist/cjs/{nv-dialogfooter_2.entry-CBTqmO9s.js → nv-dialogfooter_2.entry-DGI1rhxT.js} +1 -1
- package/dist/cjs/{nv-drawer.entry-DD-VjFP9.js → nv-drawer.entry-BY8NzVhz.js} +10 -10
- package/dist/cjs/{nv-drawerfooter_2.entry-CkODBIr6.js → nv-drawerfooter_2.entry-Dybwzc8O.js} +1 -1
- package/dist/cjs/{nv-fieldcheckbox.entry-DWAA4UE3.js → nv-fieldcheckbox.entry-6mBP4IIQ.js} +3 -3
- package/dist/cjs/{nv-fielddate.entry-BVZhCq5F.js → nv-fielddate.entry-DYM-t6pu.js} +4 -4
- package/dist/cjs/{nv-fielddaterange.entry-CWAnYRgI.js → nv-fielddaterange.entry-DPtDC_VM.js} +5 -5
- package/dist/cjs/{nv-fielddropdown.entry-CLauf21x.js → nv-fielddropdown.entry-XSAGwuQN.js} +3 -3
- package/dist/cjs/{nv-fielddropdownitem.entry-DCTeh9KO.js → nv-fielddropdownitem.entry-BVD2bujB.js} +1 -1
- package/dist/cjs/{nv-fieldmultiselect.entry-BNwKkdeR.js → nv-fieldmultiselect.entry-Dp1Rpptg.js} +3 -3
- package/dist/cjs/{nv-fieldnumber.entry-D86SjYXx.js → nv-fieldnumber.entry-4viVcJgw.js} +3 -3
- package/dist/cjs/{nv-fieldpassword.entry-Dt0lUkJt.js → nv-fieldpassword.entry-C4RiF7P0.js} +3 -3
- package/dist/cjs/{nv-fieldradio.entry-DNvjs4oH.js → nv-fieldradio.entry-DkLds_A_.js} +23 -8
- package/dist/cjs/{nv-fieldselect.entry-OZEU8DSk.js → nv-fieldselect.entry-DdlYU0vr.js} +3 -3
- package/dist/cjs/{nv-fieldslider.entry-1IiUmkIh.js → nv-fieldslider.entry-BAdGT9Ow.js} +4 -4
- package/dist/cjs/{nv-fieldtext.entry-AuynZcaD.js → nv-fieldtext.entry-CbCqsR3r.js} +3 -3
- package/dist/cjs/{nv-fieldtextarea.entry-CgJKQdfG.js → nv-fieldtextarea.entry-D4oXfYGF.js} +3 -3
- package/dist/cjs/{nv-fieldtime.entry-uB03riIZ.js → nv-fieldtime.entry-YxN-tPoZ.js} +3 -3
- package/dist/cjs/nv-icon.entry-6wvhISa2.js +80 -0
- package/dist/cjs/{nv-iconbutton_2.entry-DWKZigsd.js → nv-iconbutton_2.entry-nVyjIkl7.js} +1 -1
- package/dist/cjs/{nv-menu.entry-DDFZOYwe.js → nv-menu.entry-69KujGjb.js} +1 -1
- package/dist/cjs/{nv-menuitem.entry-Btgdr6Od.js → nv-menuitem.entry-CZKPJD2H.js} +1 -1
- package/dist/cjs/{nv-notification-bullet.entry-Dqa7L5lv.js → nv-notification-bullet.entry-B3adkLIp.js} +1 -1
- package/dist/cjs/{nv-notification.entry-C_AyXrky.js → nv-notification.entry-BCRwZd31.js} +3 -3
- package/dist/cjs/{nv-notificationcontainer.entry-DCvtamdA.js → nv-notificationcontainer.entry-4OMQu6mD.js} +1 -1
- package/dist/cjs/{nv-pagination-nav.entry-BEKSbRT5.js → nv-pagination-nav.entry-SXNk9whA.js} +1 -1
- package/dist/cjs/{nv-paginationtable.entry-XD08dNh6.js → nv-paginationtable.entry-CTvn3nvZ.js} +1 -1
- package/dist/cjs/{nv-pill.entry-DXy2Ez6j.js → nv-pill.entry-DnHcaB3o.js} +1 -1
- package/dist/cjs/{nv-popover.entry-Dkn58xz1.js → nv-popover.entry-IQ2NS-H3.js} +187 -141
- package/dist/cjs/{nv-row.entry-C-Pu-4d5.js → nv-row.entry-BDmgS2u1.js} +1 -1
- package/dist/cjs/{nv-sidebar.entry-BCPSmV8X.js → nv-sidebar.entry-BtbINl74.js} +1 -1
- package/dist/cjs/{nv-sidebarcontent.entry-Dbk9Jp-R.js → nv-sidebarcontent.entry-Cmn1Ag4E.js} +1 -1
- package/dist/cjs/{nv-sidebardivider.entry-BSbCqQ-I.js → nv-sidebardivider.entry-BGyBcRCm.js} +1 -1
- package/dist/cjs/{nv-sidebarfooter.entry-DrYkZsT7.js → nv-sidebarfooter.entry-FUjyZ_L0.js} +1 -1
- package/dist/cjs/{nv-sidebargroup.entry-XUiruLr8.js → nv-sidebargroup.entry-BLT-Z2cV.js} +1 -1
- package/dist/cjs/{nv-sidebarheader.entry-LY9keSTe.js → nv-sidebarheader.entry-BWts-jYM.js} +1 -1
- package/dist/cjs/{nv-sidebarlogo.entry-CXTBFLAn.js → nv-sidebarlogo.entry-CUddr-S1.js} +1 -1
- package/dist/cjs/{nv-sidebarnavitem.entry-D322CneD.js → nv-sidebarnavitem.entry-CD_1lOXa.js} +1 -1
- package/dist/cjs/{nv-sidebarnavsubitem.entry-CUTyEkyb.js → nv-sidebarnavsubitem.entry-ZySBNwG2.js} +1 -1
- package/dist/cjs/{nv-split.entry-TFxGWUX9.js → nv-split.entry-BGhae9a4.js} +1 -1
- package/dist/cjs/{nv-stack.entry-Bh7oNRvH.js → nv-stack.entry-c4sMwsu8.js} +1 -1
- package/dist/cjs/{nv-statusindicator.entry-DZQ5jU9e.js → nv-statusindicator.entry-CkuPYwtD.js} +1 -1
- package/dist/cjs/{nv-table.entry-zgAnu_aK.js → nv-table.entry-B5SEtIAo.js} +1 -1
- package/dist/cjs/{nv-tableheader.entry-DA639Bgy.js → nv-tableheader.entry-DdqsP8sP.js} +1 -1
- package/dist/cjs/{nv-tag.entry-C2aYljq1.js → nv-tag.entry-C455_9p7.js} +1 -1
- package/dist/cjs/{nv-timetest.entry-DgyhZ_ec.js → nv-timetest.entry-BNgk3NHV.js} +1 -1
- package/dist/cjs/{nv-toggle.entry-HnXIWK6v.js → nv-toggle.entry-B5VQXr6D.js} +3 -3
- package/dist/cjs/{nv-togglebutton.entry-DLgQwvYS.js → nv-togglebutton.entry-DYL0qJ69.js} +1 -1
- package/dist/cjs/{nv-togglebuttongroup.entry-JtEebncS.js → nv-togglebuttongroup.entry-B7H0NtpN.js} +1 -1
- package/dist/cjs/{nv-tooltip.entry-CieHlmqB.js → nv-tooltip.entry-CBk7P9RD.js} +1 -1
- package/dist/cjs/v4-CK3_k8jD-_2BfiRUa.js +52 -0
- package/package.json +3 -2
- package/dist/cjs/events.utils-B6GgGra--01N__3wY.js +0 -23
- package/dist/cjs/nv-icon.entry-DsZUamyE.js +0 -80
- package/dist/cjs/v4-BdYh22OP-C1vaJ4yP.js +0 -56
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var index = require('./index-BNK3HFv_.js');
|
|
4
|
+
var index_esmDBTxpXCn = require('./index.esm-DBTxpXCn-D5HbQDBa.js');
|
|
5
|
+
var events_utilsBysSxG1C = require('./events.utils-BysSxG1C-CckC1aXX.js');
|
|
6
6
|
var fade_animationDcRL9lcm = require('./fade.animation-DcRL9lcm-DAZeHoKN.js');
|
|
7
7
|
require('./style-value-types.es-xlgmw4x8-B1vLqX9m.js');
|
|
8
8
|
var slide_animationCmH5d1of = require('./slide.animation-CmH5d1of-BZuw607U.js');
|
|
@@ -10,7 +10,7 @@ var timeline_animationCgHCo_Ho = require('./timeline.animation-CgHCo_Ho-KteJaZPb
|
|
|
10
10
|
var clsxChV9xqsO = require('./clsx-ChV9xqsO-BtxeOLZW.js');
|
|
11
11
|
var constantsGOKBmbgZ = require('./constants-gOKBmbgZ-CSoZ8z-G.js');
|
|
12
12
|
var accessibility_utilsC4Cy9iy8 = require('./accessibility.utils-C4Cy9iy8-CeSsswXF.js');
|
|
13
|
-
var
|
|
13
|
+
var v4CK3_k8jD = require('./v4-CK3_k8jD-_2BfiRUa.js');
|
|
14
14
|
require('@stencil/react-output-target/runtime');
|
|
15
15
|
require('react');
|
|
16
16
|
require('react-dom');
|
|
@@ -192,7 +192,7 @@ const NvDrawer = class {
|
|
|
192
192
|
* Sets the autofocus on the first focusable element in the drawer.
|
|
193
193
|
*/
|
|
194
194
|
setAutofocus() {
|
|
195
|
-
const focusableElements =
|
|
195
|
+
const focusableElements = index_esmDBTxpXCn.tabbable(this.dialogElement, {
|
|
196
196
|
displayCheck: 'none',
|
|
197
197
|
});
|
|
198
198
|
if (focusableElements.length > 0) {
|
|
@@ -215,7 +215,7 @@ const NvDrawer = class {
|
|
|
215
215
|
*/
|
|
216
216
|
attachEventListeners() {
|
|
217
217
|
if (this.triggerElement && !this.eventsAttached && !this.controlled) {
|
|
218
|
-
|
|
218
|
+
events_utilsBysSxG1C.addEventListeners(this.triggerClickEvents, this.triggerElement, this);
|
|
219
219
|
this.eventsAttached = true;
|
|
220
220
|
}
|
|
221
221
|
}
|
|
@@ -241,7 +241,7 @@ const NvDrawer = class {
|
|
|
241
241
|
}
|
|
242
242
|
ensureFormId(formElement) {
|
|
243
243
|
if (!formElement.id) {
|
|
244
|
-
formElement.id = `drawer-form-${
|
|
244
|
+
formElement.id = `drawer-form-${v4CK3_k8jD.v4()}`;
|
|
245
245
|
}
|
|
246
246
|
return formElement.id;
|
|
247
247
|
}
|
|
@@ -420,8 +420,8 @@ const NvDrawer = class {
|
|
|
420
420
|
// this.setupContentBodyListeners();
|
|
421
421
|
}
|
|
422
422
|
disconnectedCallback() {
|
|
423
|
-
if (this.triggerElement &&
|
|
424
|
-
|
|
423
|
+
if (this.triggerElement && this.eventsAttached && !this.controlled) {
|
|
424
|
+
events_utilsBysSxG1C.removeEventListeners(this.triggerClickEvents, this.triggerElement);
|
|
425
425
|
this.eventsAttached = false;
|
|
426
426
|
}
|
|
427
427
|
this.allowScroll();
|
|
@@ -432,7 +432,7 @@ const NvDrawer = class {
|
|
|
432
432
|
render() {
|
|
433
433
|
const hasForm = this.form || this.el.querySelector('form');
|
|
434
434
|
const state = this.open ? 'open' : 'closed';
|
|
435
|
-
return (index.h(index.Host, { key: '
|
|
435
|
+
return (index.h(index.Host, { key: 'cb7aea38a630886f177e8bf2a7975bbe94715306' }, index.h("slot", { key: '893e531fbdd14d0a730e816fa3366e8fc8bd3182', name: "trigger" }), index.h("dialog", { key: 'f8b883b7a645ddfa3f2e1e5a076703254121dde4', ref: el => (this.dialogElement = el), onClose: this.handleDrawerClose, onClick: this.handleDrawerClick, role: "dialog", "aria-modal": "true", "aria-labelledby": "drawer-header", "aria-describedby": "drawer-content", class: clsxChV9xqsO.clsx({ [`side-${this.side}`]: true }), "data-state": state }, index.h("div", { key: '25def4d3f8849db90d7ba0c041ea833a36f5bd9f', class: "backdrop", ref: el => (this.backdropElement = el) }, index.h("div", { key: 'c6214a6686167885a1e1ada2d3fbb121d92afd4d', class: clsxChV9xqsO.clsx('content', `size-${this.size}`), ref: el => (this.contentElement = el), "data-state": state, "data-side": this.side, style: this.width ? { width: this.width } : {} }, !this.undismissable && (index.h("nv-button", { key: '3452665b313b546a85f7f7f3215a42097032e9bd', class: "close-button", emphasis: "lower", size: "sm", onClick: this.handleDrawerClose, "aria-label": "Close drawer" }, index.h("nv-icon", { key: 'c1112811d3d6c5762a19e6cea4dfaaa522ef6155', name: "x", size: "sm" }))), this.headerElement ? (index.h("slot", { name: "header" })) : (index.h("nv-drawerheader", { id: "drawer-header" })), index.h("div", { key: '3aeb9923ce1045ab84a2fcd7e6be1b283bbdef12', class: "content-body", id: "drawer-content" }, index.h("slot", { key: 'f616fb61d824b5f5b875fcbe5c9c2bb4f9b4732b' })), this.footerElement ? (index.h("slot", { name: "footer" })) : (index.h("nv-drawerfooter", { form: this.form, primaryButtonType: hasForm ? constantsGOKBmbgZ.ButtonType.Submit : constantsGOKBmbgZ.ButtonType.Button, onDrawerCanceled: this.handleDrawerClose, undismissable: this.undismissable })))))));
|
|
436
436
|
}
|
|
437
437
|
get el() { return index.getElement(this); }
|
|
438
438
|
static get watchers() { return {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BNK3HFv_.js');
|
|
4
4
|
var clsxChV9xqsO = require('./clsx-ChV9xqsO-BtxeOLZW.js');
|
|
5
|
-
var
|
|
5
|
+
var v4CK3_k8jD = require('./v4-CK3_k8jD-_2BfiRUa.js');
|
|
6
6
|
require('@stencil/react-output-target/runtime');
|
|
7
7
|
require('react');
|
|
8
8
|
require('react-dom');
|
|
@@ -27,7 +27,7 @@ const NvFieldcheckbox = class {
|
|
|
27
27
|
* automatically generated to ensure unique identification, facilitating
|
|
28
28
|
* proper label association and accessibility.
|
|
29
29
|
*/
|
|
30
|
-
this.inputId =
|
|
30
|
+
this.inputId = v4CK3_k8jD.v4();
|
|
31
31
|
/**
|
|
32
32
|
* Hides the label visually while still keeping it available for screen
|
|
33
33
|
* readers.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BNK3HFv_.js');
|
|
4
4
|
var inputmaskCSo292ul = require('./inputmask-CSo292ul-DlvupPk6.js');
|
|
5
|
-
var
|
|
5
|
+
var v4CK3_k8jD = require('./v4-CK3_k8jD-_2BfiRUa.js');
|
|
6
6
|
require('@stencil/react-output-target/runtime');
|
|
7
7
|
require('react');
|
|
8
8
|
require('react-dom');
|
|
@@ -14,14 +14,14 @@ const NvFielddate = class {
|
|
|
14
14
|
constructor(hostRef) {
|
|
15
15
|
index.registerInstance(this, hostRef);
|
|
16
16
|
this.valueChanged = index.createEvent(this, "valueChanged", 3);
|
|
17
|
-
this.popoverId =
|
|
17
|
+
this.popoverId = v4CK3_k8jD.v4();
|
|
18
18
|
/****************************************************************************/
|
|
19
19
|
//#region PROPERTIES
|
|
20
20
|
/**
|
|
21
21
|
* Sets the ID for the input element and the for attribute of the associated
|
|
22
22
|
* label. If no ID is provided, a random one will be automatically generated.
|
|
23
23
|
*/
|
|
24
|
-
this.inputId =
|
|
24
|
+
this.inputId = v4CK3_k8jD.v4();
|
|
25
25
|
/**
|
|
26
26
|
* Disables the input field.
|
|
27
27
|
*/
|
package/dist/cjs/{nv-fielddaterange.entry-CWAnYRgI.js → nv-fielddaterange.entry-DPtDC_VM.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BNK3HFv_.js');
|
|
4
4
|
var inputmaskCSo292ul = require('./inputmask-CSo292ul-DlvupPk6.js');
|
|
5
|
-
var
|
|
5
|
+
var v4CK3_k8jD = require('./v4-CK3_k8jD-_2BfiRUa.js');
|
|
6
6
|
require('@stencil/react-output-target/runtime');
|
|
7
7
|
require('react');
|
|
8
8
|
require('react-dom');
|
|
@@ -15,19 +15,19 @@ const NvFielddaterange = class {
|
|
|
15
15
|
index.registerInstance(this, hostRef);
|
|
16
16
|
this.dateRangeChange = index.createEvent(this, "dateRangeChange", 3);
|
|
17
17
|
this.valueChanged = index.createEvent(this, "valueChanged", 3);
|
|
18
|
-
this.popoverId =
|
|
18
|
+
this.popoverId = v4CK3_k8jD.v4();
|
|
19
19
|
/****************************************************************************/
|
|
20
20
|
//#region PROPERTIES
|
|
21
21
|
/**
|
|
22
22
|
* Sets the ID for the start input element and the for attribute of the associated
|
|
23
23
|
* label. If no ID is provided, a random one will be automatically generated.
|
|
24
24
|
*/
|
|
25
|
-
this.startInputId =
|
|
25
|
+
this.startInputId = v4CK3_k8jD.v4();
|
|
26
26
|
/**
|
|
27
27
|
* Sets the ID for the end input element and the for attribute of the associated
|
|
28
28
|
* label. If no ID is provided, a random one will be automatically generated.
|
|
29
29
|
*/
|
|
30
|
-
this.endInputId =
|
|
30
|
+
this.endInputId = v4CK3_k8jD.v4();
|
|
31
31
|
/**
|
|
32
32
|
* Disables both input fields.
|
|
33
33
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BNK3HFv_.js');
|
|
4
4
|
var i18n_utilsCR9MpYzU = require('./i18n.utils-CR9MpYzU-ku0bScip.js');
|
|
5
|
-
var
|
|
5
|
+
var v4CK3_k8jD = require('./v4-CK3_k8jD-_2BfiRUa.js');
|
|
6
6
|
require('@stencil/react-output-target/runtime');
|
|
7
7
|
require('react');
|
|
8
8
|
require('react-dom');
|
|
@@ -33,7 +33,7 @@ const NvFielddropdown = class {
|
|
|
33
33
|
* to ensure unique identification, facilitating proper label association and
|
|
34
34
|
* accessibility.
|
|
35
35
|
*/
|
|
36
|
-
this.inputId =
|
|
36
|
+
this.inputId = v4CK3_k8jD.v4();
|
|
37
37
|
/**
|
|
38
38
|
* The autocomplete prop helps users fill out the input field faster by
|
|
39
39
|
* suggesting entries they've used before, like their email or address.
|
package/dist/cjs/{nv-fielddropdownitem.entry-DCTeh9KO.js → nv-fielddropdownitem.entry-BVD2bujB.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BNK3HFv_.js');
|
|
4
4
|
var accessibility_utilsC4Cy9iy8 = require('./accessibility.utils-C4Cy9iy8-CeSsswXF.js');
|
|
5
5
|
require('@stencil/react-output-target/runtime');
|
|
6
6
|
require('react');
|
package/dist/cjs/{nv-fieldmultiselect.entry-BNwKkdeR.js → nv-fieldmultiselect.entry-Dp1Rpptg.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BNK3HFv_.js');
|
|
4
4
|
var i18n_utilsCR9MpYzU = require('./i18n.utils-CR9MpYzU-ku0bScip.js');
|
|
5
5
|
var accessibility_utilsC4Cy9iy8 = require('./accessibility.utils-C4Cy9iy8-CeSsswXF.js');
|
|
6
|
-
var
|
|
6
|
+
var v4CK3_k8jD = require('./v4-CK3_k8jD-_2BfiRUa.js');
|
|
7
7
|
require('@stencil/react-output-target/runtime');
|
|
8
8
|
require('react');
|
|
9
9
|
require('react-dom');
|
|
@@ -32,7 +32,7 @@ const NvFieldmultiselect = class {
|
|
|
32
32
|
* to ensure unique identification, facilitating proper label association and
|
|
33
33
|
* accessibility.
|
|
34
34
|
*/
|
|
35
|
-
this.inputId =
|
|
35
|
+
this.inputId = v4CK3_k8jD.v4();
|
|
36
36
|
/**
|
|
37
37
|
* The autocomplete prop helps users fill out the input field faster by
|
|
38
38
|
* suggesting entries they've used before, like their email or address.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var
|
|
3
|
+
var index = require('./index-BNK3HFv_.js');
|
|
4
|
+
var v4CK3_k8jD = require('./v4-CK3_k8jD-_2BfiRUa.js');
|
|
5
5
|
require('@stencil/react-output-target/runtime');
|
|
6
6
|
require('react');
|
|
7
7
|
require('react-dom');
|
|
@@ -21,7 +21,7 @@ const NvFieldnumber = class {
|
|
|
21
21
|
* to ensure unique identification, facilitating proper label association and
|
|
22
22
|
* accessibility.
|
|
23
23
|
*/
|
|
24
|
-
this.inputId =
|
|
24
|
+
this.inputId = v4CK3_k8jD.v4();
|
|
25
25
|
/**
|
|
26
26
|
* The disabled prop lets you turn off the input field so that users can’t
|
|
27
27
|
* type in it. When disabled, the field is grayed out and won’t respond to#
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var
|
|
3
|
+
var index = require('./index-BNK3HFv_.js');
|
|
4
|
+
var v4CK3_k8jD = require('./v4-CK3_k8jD-_2BfiRUa.js');
|
|
5
5
|
require('@stencil/react-output-target/runtime');
|
|
6
6
|
require('react');
|
|
7
7
|
require('react-dom');
|
|
@@ -20,7 +20,7 @@ const NvFieldpassword = class {
|
|
|
20
20
|
* to ensure unique identification, facilitating proper label association and
|
|
21
21
|
* accessibility.
|
|
22
22
|
*/
|
|
23
|
-
this.inputId =
|
|
23
|
+
this.inputId = v4CK3_k8jD.v4();
|
|
24
24
|
/**
|
|
25
25
|
* The disabled prop lets you turn off the input field so that users can’t
|
|
26
26
|
* type in it. When disabled, the field is grayed out and won’t respond to#
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BNK3HFv_.js');
|
|
4
4
|
var clsxChV9xqsO = require('./clsx-ChV9xqsO-BtxeOLZW.js');
|
|
5
|
-
var
|
|
5
|
+
var v4CK3_k8jD = require('./v4-CK3_k8jD-_2BfiRUa.js');
|
|
6
6
|
require('@stencil/react-output-target/runtime');
|
|
7
7
|
require('react');
|
|
8
8
|
require('react-dom');
|
|
9
9
|
|
|
10
10
|
const nvFieldradioCss = () => `@charset "UTF-8";nv-fieldradio{--nv-fieldradio-border-default:var(--components-form-field-border-default);--nv-fieldradio-border-hover:var(--components-form-field-border-hover);--nv-fieldradio-border-focus:var(--components-form-field-border-default);--nv-fieldradio-background-default:var(--components-form-field-background-default);--nv-fieldradio-background-checked:var(--components-form-field-background-checked);--nv-fieldradio-background-disabled:var(--components-form-field-background-disabled);--nv-fieldradio-focus-box-shadow:var(--color-focus-brand);--nv-fieldradio-dot-color-checked:var(--components-form-shape-foreground-default);--nv-fieldradio-dot-color-disabled:var(--components-form-shape-foreground-disabled);--nv-fieldradio-outline-color:var(--color-focus-brand);display:inline-flex;align-items:flex-start;gap:var(--form-gap-x)}nv-fieldradio:not([disabled]) input,nv-fieldradio:not([disabled]) label,nv-fieldradio[disabled=false] input,nv-fieldradio[disabled=false] label{cursor:pointer}nv-fieldradio.error{--nv-fieldradio-border-default:var(--components-form-field-border-error);--nv-fieldradio-border-hover:var(--nv-fieldradio-border-default);--nv-fieldradio-border-focus:var(--components-form-field-border-error);--nv-fieldradio-background-checked:var(--components-form-field-background-error);--nv-fieldradio-focus-box-shadow:var(--color-focus-destructive);--nv-fieldradio-dot-color-checked:var(--components-form-shape-foreground-default);--nv-fieldradio-dot-color-disabled:var(--components-form-field-border-error);--nv-fieldradio-outline-color:var(--color-focus-destructive)}nv-fieldradio.label-placement-before{flex-direction:row-reverse}nv-fieldradio[disabled]{opacity:0.5}nv-fieldradio label{align-self:stretch;color:var(--components-form-text-label-default);font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;font-size:var(--form-label-font-size);font-style:normal;font-weight:var(--form-label-font-weight);line-height:var(--form-label-line-height)}nv-fieldradio input[type=radio]{appearance:none;position:relative;display:flex;width:var(--form-radio-size);height:var(--form-radio-size);padding:var(--form-radio-inner-circle-padding);flex-direction:column;align-items:flex-start;border-radius:var(--radius-rounded-full);border-width:var(--form-radio-border-width);border-style:solid;border-color:var(--nv-fieldradio-border-default);background:var(--nv-fieldradio-background-default)}nv-fieldradio input[type=radio]:hover{border-color:var(--nv-fieldradio-border-hover)}nv-fieldradio input[type=radio]:focus{border-color:var(--nv-fieldradio-border-focus)}nv-fieldradio input[type=radio]:focus,nv-fieldradio input[type=radio]:focus-within{outline:none}nv-fieldradio input[type=radio]:focus-visible,nv-fieldradio input[type=radio]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--nv-fieldradio-outline-color);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-fieldradio input[type=radio]:checked{background:var(--nv-fieldradio-background-checked);border-color:var(--nv-fieldradio-background-checked)}nv-fieldradio input[type=radio]:checked:hover,nv-fieldradio input[type=radio]:checked:focus{border-color:var(--nv-fieldradio-background-checked);background:var(--nv-fieldradio-background-checked)}nv-fieldradio input[type=radio]:checked::before{content:"";position:absolute;top:50%;right:50%;transform:translate(50%, -50%);left:0;width:var(--form-radio-inner-circle-size);height:var(--form-radio-inner-circle-size);flex-shrink:0;border-radius:var(--radius-rounded-full);background:var(--nv-fieldradio-dot-color-checked)}nv-fieldradio input[type=radio]:disabled{border-radius:var(--radius-rounded-full);border-width:var(--form-radio-border-width);border-style:solid;border-color:var(--nv-fieldradio-border-default);background:var(--nv-fieldradio-background-disabled)}nv-fieldradio input[type=radio]:disabled:checked::before{background:var(--nv-fieldradio-dot-color-disabled)}nv-fieldradio input[type=radio]:disabled:hover{border-color:var(--nv-fieldradio-border-default);background:var(--nv-fieldradio-background-disabled)}@media print{nv-fieldradio input[type=radio]:checked{background:transparent;border-color:var(--nv-fieldradio-background-checked)}nv-fieldradio input[type=radio]:checked::before{content:"●";position:absolute;top:calc(50% - 2px);left:calc(50% - 4.5px);transform:translate(-50%, -50%);width:auto;height:auto;background:none;color:var(--nv-fieldradio-background-checked);font-size:calc(var(--form-radio-inner-circle-size) * 3);line-height:1}}nv-fieldradio .description{align-self:stretch;color:var(--components-form-text-description-default);font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;font-size:var(--form-description-font-size);font-style:normal;font-weight:var(--form-description-font-weight);line-height:var(--form-description-line-height)}nv-fieldradio .error-description{align-self:stretch;color:var(--components-form-text-description-default);font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;font-size:var(--form-description-font-size);font-style:normal;font-weight:var(--form-description-font-weight);line-height:var(--form-description-line-height);color:var(--components-form-text-description-error)}nv-fieldradio .text-container{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0}`;
|
|
11
11
|
|
|
12
|
+
// Tracks nv-fieldradio elements being silently reset by the radio-group
|
|
13
|
+
// mutual-exclusion logic in handleChange. Stencil's @Watch fires synchronously
|
|
14
|
+
// inside the prop setter, so adding/deleting around element.checked = false
|
|
15
|
+
// guarantees the guard is in place when handleCheckedChange runs.
|
|
16
|
+
const groupResettingElements = new WeakSet();
|
|
12
17
|
const NvFieldradio = class {
|
|
13
18
|
constructor(hostRef) {
|
|
14
19
|
index.registerInstance(this, hostRef);
|
|
@@ -27,7 +32,7 @@ const NvFieldradio = class {
|
|
|
27
32
|
* automatically generated to ensure unique identification, facilitating
|
|
28
33
|
* proper label association and accessibility.
|
|
29
34
|
*/
|
|
30
|
-
this.inputId =
|
|
35
|
+
this.inputId = v4CK3_k8jD.v4();
|
|
31
36
|
/**
|
|
32
37
|
* Highlight the radio button with error styling. It helps users quickly
|
|
33
38
|
* identify which option needs attention, improving their form-filling
|
|
@@ -63,10 +68,14 @@ const NvFieldradio = class {
|
|
|
63
68
|
//#region WATCHERS
|
|
64
69
|
/**
|
|
65
70
|
* Watches for changes to the checked state and emits the new value.
|
|
71
|
+
* Does not emit while the radio is being silently deselected by the group
|
|
72
|
+
* mutual-exclusion logic — only the newly selected radio emits.
|
|
66
73
|
* @param {boolean} checked - The new value of the checked state.
|
|
67
74
|
*/
|
|
68
75
|
handleCheckedChange(checked) {
|
|
69
|
-
this.
|
|
76
|
+
if (!groupResettingElements.has(this.el)) {
|
|
77
|
+
this.checkedChanged.emit(checked);
|
|
78
|
+
}
|
|
70
79
|
}
|
|
71
80
|
/**
|
|
72
81
|
* Listens for the change event on the radio button input element and controls
|
|
@@ -78,7 +87,13 @@ const NvFieldradio = class {
|
|
|
78
87
|
if (target?.type === 'radio') {
|
|
79
88
|
Array.from(document.getElementsByTagName('nv-fieldradio')).forEach(element => {
|
|
80
89
|
if (element.name === this.name) {
|
|
81
|
-
element
|
|
90
|
+
groupResettingElements.add(element);
|
|
91
|
+
try {
|
|
92
|
+
element.checked = false;
|
|
93
|
+
}
|
|
94
|
+
finally {
|
|
95
|
+
groupResettingElements.delete(element);
|
|
96
|
+
}
|
|
82
97
|
}
|
|
83
98
|
});
|
|
84
99
|
this.checked = target.checked;
|
|
@@ -88,9 +103,9 @@ const NvFieldradio = class {
|
|
|
88
103
|
/****************************************************************************/
|
|
89
104
|
//#region RENDER
|
|
90
105
|
render() {
|
|
91
|
-
return (index.h(index.Host, { key: '
|
|
92
|
-
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '
|
|
93
|
-
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '
|
|
106
|
+
return (index.h(index.Host, { key: '71284693af48768a022f15fa58839e20226784a4', class: clsxChV9xqsO.clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, index.h("input", { key: 'bacbbf69898047a1633bb31f9fc747f19071ff1c', type: "radio", id: this.inputId, name: this.name, autofocus: this.autofocus, autocomplete: "off", value: this.value, checked: this.checked, disabled: this.disabled }), index.h("div", { key: 'bf0f69da94d51972ad572ed9bd89679a07a7906c', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '75bf4940868bf2399c21f7a9b318111211c43c32', htmlFor: this.inputId }, index.h("slot", { key: '308b8bfdfd2f63c520254215f92b2a505e3099b9', name: "label" }, this.label))), (this.description ||
|
|
107
|
+
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: 'f728e68d34714670f5feaa4eb2a48114ba821e37', class: "description" }, index.h("slot", { key: '3afb170caedf839df227a28ca2d5590e5ce941ad', name: "description" }, this.description))), (this.errorDescription ||
|
|
108
|
+
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '7bd6f468689252b84f342771b30bf62d44e1512d', hidden: !this.error, class: "error-description" }, index.h("slot", { key: 'd60e070ec898621a3a56494b086ebea171b21c8a', name: "error-description" }, this.errorDescription))))));
|
|
94
109
|
}
|
|
95
110
|
static get formAssociated() { return true; }
|
|
96
111
|
get el() { return index.getElement(this); }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var
|
|
3
|
+
var index = require('./index-BNK3HFv_.js');
|
|
4
|
+
var v4CK3_k8jD = require('./v4-CK3_k8jD-_2BfiRUa.js');
|
|
5
5
|
require('@stencil/react-output-target/runtime');
|
|
6
6
|
require('react');
|
|
7
7
|
require('react-dom');
|
|
@@ -27,7 +27,7 @@ const NvFieldselect = class {
|
|
|
27
27
|
* to ensure unique identification, facilitating proper label association and
|
|
28
28
|
* accessibility.
|
|
29
29
|
*/
|
|
30
|
-
this.inputId =
|
|
30
|
+
this.inputId = v4CK3_k8jD.v4();
|
|
31
31
|
/**
|
|
32
32
|
* The disabled prop lets you turn off the select field so that users can’t
|
|
33
33
|
* choose something. When disabled, the field is grayed out and won’t respond to
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BNK3HFv_.js');
|
|
4
4
|
var clsxChV9xqsO = require('./clsx-ChV9xqsO-BtxeOLZW.js');
|
|
5
|
-
var
|
|
5
|
+
var v4CK3_k8jD = require('./v4-CK3_k8jD-_2BfiRUa.js');
|
|
6
6
|
require('@stencil/react-output-target/runtime');
|
|
7
7
|
require('react');
|
|
8
8
|
require('react-dom');
|
|
@@ -245,12 +245,12 @@ const NvFieldslider = class {
|
|
|
245
245
|
* Sets the ID for the start input element and the for attribute of the associated
|
|
246
246
|
* label. If no ID is provided, a random one will be automatically generated.
|
|
247
247
|
*/
|
|
248
|
-
this.startInputId =
|
|
248
|
+
this.startInputId = v4CK3_k8jD.v4();
|
|
249
249
|
/**
|
|
250
250
|
* Sets the ID for the end input element and the for attribute of the associated
|
|
251
251
|
* label. If no ID is provided, a random one will be automatically generated.
|
|
252
252
|
*/
|
|
253
|
-
this.endInputId =
|
|
253
|
+
this.endInputId = v4CK3_k8jD.v4();
|
|
254
254
|
/**
|
|
255
255
|
* Keeps the interface clean by removing visible labels, but still announces
|
|
256
256
|
* the label to screen readers so users relying on assistive tech aren't left
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var
|
|
3
|
+
var index = require('./index-BNK3HFv_.js');
|
|
4
|
+
var v4CK3_k8jD = require('./v4-CK3_k8jD-_2BfiRUa.js');
|
|
5
5
|
require('@stencil/react-output-target/runtime');
|
|
6
6
|
require('react');
|
|
7
7
|
require('react-dom');
|
|
@@ -21,7 +21,7 @@ const NvFieldtext = class {
|
|
|
21
21
|
* to ensure unique identification, facilitating proper label association and
|
|
22
22
|
* accessibility.
|
|
23
23
|
*/
|
|
24
|
-
this.inputId =
|
|
24
|
+
this.inputId = v4CK3_k8jD.v4();
|
|
25
25
|
/**
|
|
26
26
|
* The type prop lets you specify what kind of information the input field
|
|
27
27
|
* should accept. Choose 'text' for general words or sentences, 'tel' for
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BNK3HFv_.js');
|
|
4
4
|
var clsxChV9xqsO = require('./clsx-ChV9xqsO-BtxeOLZW.js');
|
|
5
|
-
var
|
|
5
|
+
var v4CK3_k8jD = require('./v4-CK3_k8jD-_2BfiRUa.js');
|
|
6
6
|
require('@stencil/react-output-target/runtime');
|
|
7
7
|
require('react');
|
|
8
8
|
require('react-dom');
|
|
@@ -22,7 +22,7 @@ const NvFieldtextarea = class {
|
|
|
22
22
|
* to ensure unique identification, facilitating proper label association and
|
|
23
23
|
* accessibility.
|
|
24
24
|
*/
|
|
25
|
-
this.inputId =
|
|
25
|
+
this.inputId = v4CK3_k8jD.v4();
|
|
26
26
|
/**
|
|
27
27
|
* The disabled prop lets you turn off the textarea field so that users can’t
|
|
28
28
|
* type in it. When disabled, the field is grayed out and won’t respond to#
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BNK3HFv_.js');
|
|
4
4
|
var constantsGOKBmbgZ = require('./constants-gOKBmbgZ-CSoZ8z-G.js');
|
|
5
|
-
var
|
|
5
|
+
var v4CK3_k8jD = require('./v4-CK3_k8jD-_2BfiRUa.js');
|
|
6
6
|
require('@stencil/react-output-target/runtime');
|
|
7
7
|
require('react');
|
|
8
8
|
require('react-dom');
|
|
@@ -263,7 +263,7 @@ const NvFieldtime = class {
|
|
|
263
263
|
* to ensure unique identification, facilitating proper label association and
|
|
264
264
|
* accessibility.
|
|
265
265
|
*/
|
|
266
|
-
this.inputId =
|
|
266
|
+
this.inputId = v4CK3_k8jD.v4();
|
|
267
267
|
/**
|
|
268
268
|
* Display the input field's content without allowing users to change it.
|
|
269
269
|
* Users can still click on it, select, and copy the text, but they won't be
|