@nova-design-system/nova-react 3.31.1 → 3.31.2-beta.3
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 +117535 -0
- package/dist/cjs/accessibility.utils-C4Cy9iy8-CeSsswXF.js +78 -0
- package/dist/cjs/generated/components.server.js +15 -0
- package/dist/cjs/{index-CIduEXxx.js → index-DN55EpKb.js} +304 -287
- package/dist/cjs/index.js +2 -1
- package/dist/cjs/{nv-accordion-item.entry-BvsiHrIZ.js → nv-accordion-item.entry-DTMF2QA4.js} +9 -8
- package/dist/cjs/{nv-accordion.entry-Dag3RvG5.js → nv-accordion.entry-LhpIZNos.js} +1 -1
- package/dist/cjs/{nv-alert.entry-hXyvyQaa.js → nv-alert.entry-CLzSK5qn.js} +1 -1
- package/dist/cjs/{nv-avatar.entry-Cv8nRzHk.js → nv-avatar.entry-BLdl6iCG.js} +1 -1
- package/dist/cjs/{nv-badge_2.entry-s7grrG3t.js → nv-badge_2.entry-D9dDFfNt.js} +1 -1
- package/dist/cjs/{nv-breadcrumb.entry-DsuW8DRC.js → nv-breadcrumb.entry-zM46pNeP.js} +1 -1
- package/dist/cjs/{nv-breadcrumbs.entry-DC5qza5N.js → nv-breadcrumbs.entry-C15cO6Oe.js} +1 -1
- package/dist/cjs/{nv-button.entry-DJ9ySYDC.js → nv-button.entry-DI4P9AiP.js} +4 -3
- package/dist/cjs/{nv-buttongroup.entry-V7EHizoj.js → nv-buttongroup.entry-D7yCaYjm.js} +1 -1
- package/dist/cjs/{nv-calendar.entry-DsqYoQrJ.js → nv-calendar.entry-zseSe52a.js} +1 -1
- package/dist/cjs/{nv-col.entry-CuLpzq87.js → nv-col.entry-nEoJ7359.js} +1 -1
- package/dist/cjs/{nv-datagrid.entry-3jL3JYdd.js → nv-datagrid.entry-CFwixyUO.js} +1 -1
- package/dist/cjs/{nv-datagridcolumn.entry-ChGqc2aO.js → nv-datagridcolumn.entry-B_olySPa.js} +1 -1
- package/dist/cjs/{nv-datetest.entry-CjpFR6RB.js → nv-datetest.entry-Dwr0C5xt.js} +1 -1
- package/dist/cjs/{nv-datetimetest.entry-LpXUxQvy.js → nv-datetimetest.entry-hziXdUJX.js} +1 -1
- package/dist/cjs/{nv-dialog.entry-D4ZJMTIA.js → nv-dialog.entry-B9qKSweg.js} +4 -3
- package/dist/cjs/{nv-dialogfooter_2.entry-F5GZZHzN.js → nv-dialogfooter_2.entry-CBTqmO9s.js} +1 -1
- package/dist/cjs/{nv-drawer.entry-B0ngySoz.js → nv-drawer.entry-DD-VjFP9.js} +4 -3
- package/dist/cjs/{nv-drawerfooter_2.entry-BRckyNO2.js → nv-drawerfooter_2.entry-CkODBIr6.js} +1 -1
- package/dist/cjs/{nv-fieldcheckbox.entry-BfCMk8wm.js → nv-fieldcheckbox.entry-DWAA4UE3.js} +1 -1
- package/dist/cjs/{nv-fielddate.entry-DqfvxdGx.js → nv-fielddate.entry-BVZhCq5F.js} +1 -1
- package/dist/cjs/{nv-fielddaterange.entry-BoJ75PRm.js → nv-fielddaterange.entry-CWAnYRgI.js} +1 -1
- package/dist/cjs/{nv-fielddropdown.entry-CWIrMlbX.js → nv-fielddropdown.entry-CLauf21x.js} +1 -1
- package/dist/cjs/{nv-fielddropdownitem.entry-CHKTpHUS.js → nv-fielddropdownitem.entry-DCTeh9KO.js} +4 -3
- package/dist/cjs/{nv-fieldmultiselect.entry-C_B7c4ph.js → nv-fieldmultiselect.entry-BNwKkdeR.js} +3 -3
- package/dist/cjs/{nv-fieldnumber.entry-B_pliQpQ.js → nv-fieldnumber.entry-D86SjYXx.js} +1 -1
- package/dist/cjs/{nv-fieldpassword.entry-DTC13ASY.js → nv-fieldpassword.entry-Dt0lUkJt.js} +1 -1
- package/dist/cjs/{nv-fieldradio.entry-C0VTzPxr.js → nv-fieldradio.entry-DNvjs4oH.js} +1 -1
- package/dist/cjs/{nv-fieldselect.entry-BWj2M0pb.js → nv-fieldselect.entry-OZEU8DSk.js} +1 -1
- package/dist/cjs/{nv-fieldslider.entry-C0IoIOYv.js → nv-fieldslider.entry-1IiUmkIh.js} +1 -1
- package/dist/cjs/{nv-fieldtext.entry-BKdmagew.js → nv-fieldtext.entry-AuynZcaD.js} +1 -1
- package/dist/cjs/{nv-fieldtextarea.entry-jV238RrX.js → nv-fieldtextarea.entry-CgJKQdfG.js} +1 -1
- package/dist/cjs/{nv-fieldtime.entry-CGli1kNM.js → nv-fieldtime.entry-uB03riIZ.js} +1 -1
- package/dist/cjs/nv-icon.entry-DsZUamyE.js +80 -0
- package/dist/cjs/{nv-iconbutton_2.entry-KrPZeqSB.js → nv-iconbutton_2.entry-DWKZigsd.js} +4 -3
- package/dist/cjs/{nv-menu.entry-BQ4Va1Zd.js → nv-menu.entry-DDFZOYwe.js} +1 -1
- package/dist/cjs/{nv-menuitem.entry-Dp71XXc9.js → nv-menuitem.entry-Btgdr6Od.js} +4 -3
- package/dist/cjs/{nv-notification-bullet.entry-BXucWCVB.js → nv-notification-bullet.entry-Dqa7L5lv.js} +1 -1
- package/dist/cjs/{nv-notification.entry-DyGNReGR.js → nv-notification.entry-C_AyXrky.js} +1 -1
- package/dist/cjs/{nv-notificationcontainer.entry-C9kLTHtS.js → nv-notificationcontainer.entry-DCvtamdA.js} +1 -1
- package/dist/cjs/{nv-pagination-nav.entry-C24w5RZ-.js → nv-pagination-nav.entry-BEKSbRT5.js} +1 -1
- package/dist/cjs/{nv-paginationtable.entry-C3RHvchP.js → nv-paginationtable.entry-XD08dNh6.js} +1 -1
- package/dist/cjs/nv-pill.entry-DXy2Ez6j.js +288 -0
- package/dist/cjs/{nv-popover.entry-BlpxQ9j0.js → nv-popover.entry-Dkn58xz1.js} +2 -2
- package/dist/cjs/{nv-row.entry-CDE3oX8X.js → nv-row.entry-C-Pu-4d5.js} +2 -2
- package/dist/cjs/{nv-sidebar.entry-CvQNzq1H.js → nv-sidebar.entry-BCPSmV8X.js} +3 -3
- package/dist/cjs/{nv-sidebarcontent.entry-DIIupG0e.js → nv-sidebarcontent.entry-Dbk9Jp-R.js} +2 -2
- package/dist/cjs/{nv-sidebardivider.entry-CqdP5bFW.js → nv-sidebardivider.entry-BSbCqQ-I.js} +2 -2
- package/dist/cjs/{nv-sidebarfooter.entry-DmFTTam-.js → nv-sidebarfooter.entry-DrYkZsT7.js} +2 -2
- package/dist/cjs/{nv-sidebargroup.entry-BXhwQ7Gw.js → nv-sidebargroup.entry-XUiruLr8.js} +2 -2
- package/dist/cjs/{nv-sidebarheader.entry-BeofV5mi.js → nv-sidebarheader.entry-LY9keSTe.js} +2 -2
- package/dist/cjs/{nv-sidebarlogo.entry-DbKRctk4.js → nv-sidebarlogo.entry-CXTBFLAn.js} +2 -2
- package/dist/cjs/{nv-sidebarnavitem.entry-DW0S4_CH.js → nv-sidebarnavitem.entry-D322CneD.js} +3 -3
- package/dist/cjs/{nv-sidebarnavsubitem.entry-CfJXOLFL.js → nv-sidebarnavsubitem.entry-CUTyEkyb.js} +2 -2
- package/dist/cjs/{nv-split.entry-C6dPx365.js → nv-split.entry-TFxGWUX9.js} +2 -2
- package/dist/cjs/{nv-stack.entry-BfpeMdKQ.js → nv-stack.entry-Bh7oNRvH.js} +2 -2
- package/dist/cjs/{nv-statusindicator.entry-g6l8mLE4.js → nv-statusindicator.entry-DZQ5jU9e.js} +2 -2
- package/dist/cjs/{nv-table.entry-COq1iQnL.js → nv-table.entry-zgAnu_aK.js} +2 -2
- package/dist/cjs/{nv-tableheader.entry-H0_nYDYI.js → nv-tableheader.entry-DA639Bgy.js} +4 -3
- package/dist/cjs/{nv-tag.entry-Cd1HnUDM.js → nv-tag.entry-C2aYljq1.js} +1 -1
- package/dist/cjs/{nv-timetest.entry-mhbU0vGi.js → nv-timetest.entry-DgyhZ_ec.js} +2 -2
- package/dist/cjs/{nv-toggle.entry-DR_EHjwR.js → nv-toggle.entry-HnXIWK6v.js} +3 -3
- package/dist/cjs/{nv-togglebutton.entry-Dq_8pE_Q.js → nv-togglebutton.entry-DLgQwvYS.js} +4 -3
- package/dist/cjs/{nv-togglebuttongroup.entry-BvSlDwHV.js → nv-togglebuttongroup.entry-JtEebncS.js} +2 -2
- package/dist/cjs/{nv-tooltip.entry-DTE4NTCI.js → nv-tooltip.entry-CieHlmqB.js} +2 -2
- package/dist/generated/components.js +8 -0
- package/dist/generated/components.server.js +14 -0
- package/dist/types/generated/components.d.ts +10 -1
- package/dist/types/generated/components.server.d.ts +10 -1
- package/package.json +3 -2
- package/dist/cjs/nv-icon.entry-DcCzotQG.js +0 -80
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DN55EpKb.js');
|
|
4
4
|
var clsxChV9xqsO = require('./clsx-ChV9xqsO-BtxeOLZW.js');
|
|
5
|
+
var accessibility_utilsC4Cy9iy8 = require('./accessibility.utils-C4Cy9iy8-CeSsswXF.js');
|
|
5
6
|
require('@stencil/react-output-target/runtime');
|
|
6
7
|
require('react');
|
|
7
8
|
require('react-dom');
|
|
@@ -105,7 +106,7 @@ const NvIconbutton = class {
|
|
|
105
106
|
/****************************************************************************/
|
|
106
107
|
//#region EVENTS
|
|
107
108
|
handleKeyDown(event) {
|
|
108
|
-
if (
|
|
109
|
+
if (accessibility_utilsC4Cy9iy8.isToggleKey(event.key)) {
|
|
109
110
|
event.preventDefault();
|
|
110
111
|
this.el.click();
|
|
111
112
|
}
|
|
@@ -128,7 +129,7 @@ const NvIconbutton = class {
|
|
|
128
129
|
/****************************************************************************/
|
|
129
130
|
//#region RENDER
|
|
130
131
|
render() {
|
|
131
|
-
return (index.h(index.Host, { key: '
|
|
132
|
+
return (index.h(index.Host, { key: 'e657e688f0e40a738a7a83b5130f4ec0a51339e7', role: "button", type: this.type, tabindex: this.disableTabindex ? -1 : 0, disabled: this.disabled ? true : undefined, class: clsxChV9xqsO.clsx('root', `size-${this.size}`, `emphasis-${this.emphasis}`, this.loading && 'loading', `shape-${this.shape}`), onClick: this.handleClick }, this.loading && index.h("nv-loader", { key: 'd33fa5969fec5936f0de4ef9580387d1ee03929d', size: this.size }), !this.loading && index.h("nv-icon", { key: 'ff1518a8f1f49acf65c2c971fd1b1be45e581cba', name: this.name, size: this.size }), index.h("slot", { key: '4c694ffe57e30b997026922ee077e1cce96cef6c' })));
|
|
132
133
|
}
|
|
133
134
|
static get formAssociated() { return true; }
|
|
134
135
|
get el() { return index.getElement(this); }
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DN55EpKb.js');
|
|
4
|
+
var accessibility_utilsC4Cy9iy8 = require('./accessibility.utils-C4Cy9iy8-CeSsswXF.js');
|
|
4
5
|
require('@stencil/react-output-target/runtime');
|
|
5
6
|
require('react');
|
|
6
7
|
require('react-dom');
|
|
@@ -36,7 +37,7 @@ const NvMenuitem = class {
|
|
|
36
37
|
this.handleMenuItemSelect(event);
|
|
37
38
|
}
|
|
38
39
|
handleKeyDown(event) {
|
|
39
|
-
if (
|
|
40
|
+
if (accessibility_utilsC4Cy9iy8.isToggleKey(event.key)) {
|
|
40
41
|
const activeElement = document.activeElement;
|
|
41
42
|
if (activeElement &&
|
|
42
43
|
activeElement.tagName === 'NV-MENUITEM' &&
|
|
@@ -50,7 +51,7 @@ const NvMenuitem = class {
|
|
|
50
51
|
/****************************************************************************/
|
|
51
52
|
//#region RENDER
|
|
52
53
|
render() {
|
|
53
|
-
return (index.h(index.Host, { key: '
|
|
54
|
+
return (index.h(index.Host, { key: '0292e33304b74d540b2533570b1f314ca8ea100b', role: "menuitem", tabindex: this.disabled ? '-1' : '0' }, this.icon && index.h("nv-icon", { key: '1a94fdbbc5349fb4dd1c8985026197be91b7adff', name: this.icon }), index.h("slot", { key: '8994033b5371d1db6a55980c5b0a1e7455c573b7' }), this.label && index.h("span", { key: '9163ba9a67f050447ebed2a4743f6c8f3102e37b', "data-scope": "text" }, this.label), this.shortcut && !this.hasSubmenu && index.h("kbd", { key: '8adf1ba5789434c37bcbc53328b6b1dc9b82eeb5' }, this.shortcut), this.hasSubmenu && index.h("nv-icon", { key: 'b05b3c1245752d2bbd161db03b361a5e5406602a', name: "chevron-right" })));
|
|
54
55
|
}
|
|
55
56
|
get el() { return index.getElement(this); }
|
|
56
57
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DN55EpKb.js');
|
|
4
4
|
var constantsGOKBmbgZ = require('./constants-gOKBmbgZ-CSoZ8z-G.js');
|
|
5
5
|
var collapse_animationDZDm0vSK = require('./collapse.animation-DZDm0vSK-C2TOIhIK.js');
|
|
6
6
|
var fade_animationDcRL9lcm = require('./fade.animation-DcRL9lcm-DAZeHoKN.js');
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-DN55EpKb.js');
|
|
4
|
+
var accessibility_utilsC4Cy9iy8 = require('./accessibility.utils-C4Cy9iy8-CeSsswXF.js');
|
|
5
|
+
require('@stencil/react-output-target/runtime');
|
|
6
|
+
require('react');
|
|
7
|
+
require('react-dom');
|
|
8
|
+
|
|
9
|
+
const nvPillCss = () => `.storybook-force-hover:not([disabled]):hover,.storybook-force-hover:not([disabled]){background:var(--color-interaction-container-neutral-background-hover);border-color:var(--color-interaction-container-neutral-border-hover);color:var(--color-interaction-container-neutral-text-hover)}.storybook-force-focus:not([disabled]):focus-visible:focus,.storybook-force-focus:not([disabled]):focus-visible:focus-within,.storybook-force-focus:not([disabled]):focus,.storybook-force-focus:not([disabled]):focus-within{outline:none}.storybook-force-focus:not([disabled]):focus-visible:focus-visible,.storybook-force-focus:not([disabled]):focus-visible:has(:focus-visible),.storybook-force-focus:not([disabled]):focus-visible,.storybook-force-focus:not([disabled]):has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-pill{display:inline-flex;align-items:center;justify-content:center;gap:var(--pill-gap-x);height:var(--pill-height);padding:var(--pill-padding-y) var(--pill-padding-x);border-radius:var(--pill-border-radius);border:var(--pill-stroke) solid var(--color-interaction-container-neutral-border);background:var(--color-interaction-container-neutral-background);color:var(--color-interaction-container-neutral-text);font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;font-size:var(--font-size-xs);line-height:var(--line-height-xs);font-weight:var(--font-weight-medium-emphasis);user-select:none;cursor:pointer;transition:background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out}nv-pill:focus,nv-pill:focus-within{outline:none}nv-pill:focus-visible,nv-pill:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-pill:not([disabled]:not([disabled=false])):hover{background:var(--color-interaction-container-neutral-background-hover);border-color:var(--color-interaction-container-neutral-border-hover);color:var(--color-interaction-container-neutral-text-hover)}nv-pill:not([disabled]:not([disabled=false])):active{background:var(--color-interaction-container-neutral-background-active);border-color:var(--color-interaction-container-neutral-border-active);color:var(--color-interaction-container-neutral-text-active)}nv-pill[selected]:not([selected=false]){background:var(--color-interaction-container-neutral-background-active);border-color:var(--color-interaction-container-neutral-border-active);color:var(--color-interaction-container-neutral-text-active)}nv-pill[selected]:not([selected=false]) .trailing-icon{color:var(--color-interaction-container-neutral-icon-active)}nv-pill[selected]:not([selected=false]):not([disabled]:not([disabled=false])):hover{background:var(--color-interaction-container-neutral-background-active);border-color:var(--color-interaction-container-neutral-border-active);color:var(--color-interaction-container-neutral-text-active)}nv-pill[disabled]:not([disabled=false]){opacity:0.5;cursor:not-allowed}nv-pill .leading-icon,nv-pill .trailing-icon{display:inline-flex;align-items:center;justify-content:center;color:var(--color-interaction-container-neutral-icon)}nv-pill:not([leading-icon]):not(:has([slot=leading-icon])) .leading-icon,nv-pill[leading-icon=""]:not(:has([slot=leading-icon])) .leading-icon{display:none}nv-pill .label{white-space:nowrap}nv-pill nv-icon>svg{color:currentColor}`;
|
|
10
|
+
|
|
11
|
+
const NvPill = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
index.registerInstance(this, hostRef);
|
|
14
|
+
this.toggled = index.createEvent(this, "toggled", 3);
|
|
15
|
+
this.hasWarnedMissingLabel = false;
|
|
16
|
+
/**
|
|
17
|
+
* Whether the pill is currently selected.
|
|
18
|
+
*/
|
|
19
|
+
this.selected = false;
|
|
20
|
+
/**
|
|
21
|
+
* Prevents all interaction with the pill.
|
|
22
|
+
*/
|
|
23
|
+
this.disabled = false;
|
|
24
|
+
/**
|
|
25
|
+
* ARIA role for accessibility contexts.
|
|
26
|
+
* Defaults to button and can be overridden by group wrappers.
|
|
27
|
+
*/
|
|
28
|
+
this.pillAriaRole = 'button';
|
|
29
|
+
this.toggleSelected = () => {
|
|
30
|
+
if (!this.hasInteractiveLabel)
|
|
31
|
+
return;
|
|
32
|
+
const nextSelected = accessibility_utilsC4Cy9iy8.getRoleAwareNextSelectedState(this.normalizedRole, this.selected, this.disabled);
|
|
33
|
+
if (nextSelected === this.selected)
|
|
34
|
+
return;
|
|
35
|
+
this.selected = nextSelected;
|
|
36
|
+
if (this.isRadioInRadioGroup && this.selected) {
|
|
37
|
+
const parent = this.el.parentElement;
|
|
38
|
+
if (parent) {
|
|
39
|
+
const radioPills = Array.from(parent.querySelectorAll('nv-pill[pill-aria-role="radio"]'));
|
|
40
|
+
radioPills.forEach(pill => {
|
|
41
|
+
if (pill !== this.el) {
|
|
42
|
+
pill.selected = false;
|
|
43
|
+
pill.removeAttribute('selected');
|
|
44
|
+
}
|
|
45
|
+
const nextTabIndex = pill === this.el ? 0 : -1;
|
|
46
|
+
this.setPillTabIndex(pill, nextTabIndex);
|
|
47
|
+
if (pill !== this.el) {
|
|
48
|
+
index.forceUpdate(pill);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
// Watchers can fire before reflected attributes settle; pin the selected
|
|
53
|
+
// radio for the batched sync to keep radiogroup tabindex deterministic.
|
|
54
|
+
this.queueRadioGroupTabIndexSync(this.el);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
this.syncRadioGroupTabIndexes(this.selected ? this.el : undefined);
|
|
58
|
+
}
|
|
59
|
+
this.toggled.emit({
|
|
60
|
+
selected: this.selected,
|
|
61
|
+
active: this.selected,
|
|
62
|
+
value: this.value,
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
//#endregion PROPERTIES
|
|
67
|
+
/****************************************************************************/
|
|
68
|
+
//#region METHODS
|
|
69
|
+
get normalizedRole() {
|
|
70
|
+
return accessibility_utilsC4Cy9iy8.normalizeToggleAriaRole(String(this.pillAriaRole));
|
|
71
|
+
}
|
|
72
|
+
get resolvedLabel() {
|
|
73
|
+
return (this.label ?? '').trim();
|
|
74
|
+
}
|
|
75
|
+
get hasInteractiveLabel() {
|
|
76
|
+
return this.resolvedLabel.length > 0;
|
|
77
|
+
}
|
|
78
|
+
get resolvedTabIndex() {
|
|
79
|
+
if (this.disabled || !this.hasInteractiveLabel)
|
|
80
|
+
return -1;
|
|
81
|
+
if (this.normalizedRole !== 'radio')
|
|
82
|
+
return 0;
|
|
83
|
+
return NvPill.radioGroupTabIndexCache.get(this.el) ?? 0;
|
|
84
|
+
}
|
|
85
|
+
get isRadioInRadioGroup() {
|
|
86
|
+
return (this.normalizedRole === 'radio' &&
|
|
87
|
+
this.el.parentElement?.getAttribute('role') === 'radiogroup');
|
|
88
|
+
}
|
|
89
|
+
isInteractiveRadioPill(pill) {
|
|
90
|
+
const resolvedLabel = (pill.getAttribute('label') ?? pill.label ?? '').trim().length > 0;
|
|
91
|
+
return !pill.hasAttribute('disabled') && resolvedLabel;
|
|
92
|
+
}
|
|
93
|
+
setPillTabIndex(pill, value) {
|
|
94
|
+
pill.tabIndex = value;
|
|
95
|
+
NvPill.radioGroupTabIndexCache.set(pill, value);
|
|
96
|
+
}
|
|
97
|
+
syncRadioGroupTabIndexes(preferredSelectedRadio) {
|
|
98
|
+
if (!this.isRadioInRadioGroup)
|
|
99
|
+
return;
|
|
100
|
+
const parent = this.el.parentElement;
|
|
101
|
+
if (!parent)
|
|
102
|
+
return;
|
|
103
|
+
const radioPills = Array.from(parent.querySelectorAll('nv-pill[pill-aria-role="radio"]'));
|
|
104
|
+
const selectedRadio = preferredSelectedRadio &&
|
|
105
|
+
this.isInteractiveRadioPill(preferredSelectedRadio)
|
|
106
|
+
? preferredSelectedRadio
|
|
107
|
+
: radioPills.find(pill => this.isInteractiveRadioPill(pill) &&
|
|
108
|
+
pill.hasAttribute('selected'));
|
|
109
|
+
const firstInteractiveRadio = radioPills.find(pill => this.isInteractiveRadioPill(pill));
|
|
110
|
+
radioPills.forEach(pill => {
|
|
111
|
+
if (!this.isInteractiveRadioPill(pill)) {
|
|
112
|
+
this.setPillTabIndex(pill, -1);
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
if (selectedRadio) {
|
|
116
|
+
const nextTabIndex = pill === selectedRadio ? 0 : -1;
|
|
117
|
+
this.setPillTabIndex(pill, nextTabIndex);
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
const nextTabIndex = pill === firstInteractiveRadio ? 0 : -1;
|
|
121
|
+
this.setPillTabIndex(pill, nextTabIndex);
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
queueRadioGroupTabIndexSync(preferredSelectedRadio) {
|
|
125
|
+
if (!this.isRadioInRadioGroup)
|
|
126
|
+
return;
|
|
127
|
+
const parent = this.el.parentElement;
|
|
128
|
+
if (!parent)
|
|
129
|
+
return;
|
|
130
|
+
const pending = NvPill.pendingRadioGroupSyncs.get(parent);
|
|
131
|
+
if (pending) {
|
|
132
|
+
if (preferredSelectedRadio &&
|
|
133
|
+
this.isInteractiveRadioPill(preferredSelectedRadio)) {
|
|
134
|
+
pending[1] = preferredSelectedRadio;
|
|
135
|
+
}
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
const nextPending = [this];
|
|
139
|
+
if (preferredSelectedRadio &&
|
|
140
|
+
this.isInteractiveRadioPill(preferredSelectedRadio)) {
|
|
141
|
+
nextPending[1] = preferredSelectedRadio;
|
|
142
|
+
}
|
|
143
|
+
NvPill.pendingRadioGroupSyncs.set(parent, nextPending);
|
|
144
|
+
queueMicrotask(() => {
|
|
145
|
+
const latestPending = NvPill.pendingRadioGroupSyncs.get(parent);
|
|
146
|
+
NvPill.pendingRadioGroupSyncs.delete(parent);
|
|
147
|
+
if (!latestPending)
|
|
148
|
+
return;
|
|
149
|
+
const [runner, latestPreferredSelectedRadio] = latestPending;
|
|
150
|
+
if (!runner.el.isConnected)
|
|
151
|
+
return;
|
|
152
|
+
runner.syncRadioGroupTabIndexes(latestPreferredSelectedRadio);
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
handleRadioGroupArrowKey(event) {
|
|
156
|
+
if (!this.isRadioInRadioGroup)
|
|
157
|
+
return false;
|
|
158
|
+
const isNextKey = event.key === 'ArrowRight' ||
|
|
159
|
+
event.key === 'ArrowDown' ||
|
|
160
|
+
event.key === 'Right' ||
|
|
161
|
+
event.key === 'Down';
|
|
162
|
+
const isPreviousKey = event.key === 'ArrowLeft' ||
|
|
163
|
+
event.key === 'ArrowUp' ||
|
|
164
|
+
event.key === 'Left' ||
|
|
165
|
+
event.key === 'Up';
|
|
166
|
+
if (!isNextKey && !isPreviousKey) {
|
|
167
|
+
return false;
|
|
168
|
+
}
|
|
169
|
+
const parent = this.el.parentElement;
|
|
170
|
+
if (!parent) {
|
|
171
|
+
return false;
|
|
172
|
+
}
|
|
173
|
+
const radioPills = Array.from(parent.querySelectorAll('nv-pill[pill-aria-role="radio"]')).filter(pill => this.isInteractiveRadioPill(pill));
|
|
174
|
+
if (radioPills.length === 0) {
|
|
175
|
+
return false;
|
|
176
|
+
}
|
|
177
|
+
event.preventDefault();
|
|
178
|
+
const currentIndex = radioPills.indexOf(this.el);
|
|
179
|
+
if (currentIndex === -1) {
|
|
180
|
+
return true;
|
|
181
|
+
}
|
|
182
|
+
const delta = isNextKey ? 1 : -1;
|
|
183
|
+
const nextIndex = (currentIndex + delta + radioPills.length) % radioPills.length;
|
|
184
|
+
const nextRadio = radioPills[nextIndex];
|
|
185
|
+
if (nextRadio === this.el) {
|
|
186
|
+
return true;
|
|
187
|
+
}
|
|
188
|
+
const previousSelectedRadio = radioPills.find(pill => pill.selected);
|
|
189
|
+
radioPills.forEach(pill => {
|
|
190
|
+
const isTarget = pill === nextRadio;
|
|
191
|
+
if (pill.selected === isTarget)
|
|
192
|
+
return;
|
|
193
|
+
pill.selected = isTarget;
|
|
194
|
+
if (!isTarget) {
|
|
195
|
+
pill.removeAttribute('selected');
|
|
196
|
+
}
|
|
197
|
+
if (pill !== nextRadio) {
|
|
198
|
+
index.forceUpdate(pill);
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
this.queueRadioGroupTabIndexSync(nextRadio);
|
|
202
|
+
nextRadio.focus();
|
|
203
|
+
if (previousSelectedRadio !== nextRadio) {
|
|
204
|
+
nextRadio.dispatchEvent(new CustomEvent('toggled', {
|
|
205
|
+
bubbles: false,
|
|
206
|
+
detail: {
|
|
207
|
+
selected: true,
|
|
208
|
+
active: true,
|
|
209
|
+
value: nextRadio.value,
|
|
210
|
+
},
|
|
211
|
+
}));
|
|
212
|
+
}
|
|
213
|
+
return true;
|
|
214
|
+
}
|
|
215
|
+
//#endregion METHODS
|
|
216
|
+
/****************************************************************************/
|
|
217
|
+
//#region LISTENERS
|
|
218
|
+
componentDidLoad() {
|
|
219
|
+
this.queueRadioGroupTabIndexSync();
|
|
220
|
+
}
|
|
221
|
+
handleTabIndexAffectingChanges() {
|
|
222
|
+
if (!this.isRadioInRadioGroup) {
|
|
223
|
+
NvPill.radioGroupTabIndexCache.delete(this.el);
|
|
224
|
+
}
|
|
225
|
+
this.queueRadioGroupTabIndexSync();
|
|
226
|
+
}
|
|
227
|
+
handleKeyDown(event) {
|
|
228
|
+
if (!this.hasInteractiveLabel)
|
|
229
|
+
return;
|
|
230
|
+
if (this.disabled)
|
|
231
|
+
return;
|
|
232
|
+
if (event.repeat)
|
|
233
|
+
return;
|
|
234
|
+
if (this.handleRadioGroupArrowKey(event)) {
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
if (accessibility_utilsC4Cy9iy8.isToggleKey(event.key)) {
|
|
238
|
+
event.preventDefault();
|
|
239
|
+
this.el.click();
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
handleHostClickCapture(event) {
|
|
243
|
+
if (!this.hasInteractiveLabel) {
|
|
244
|
+
event.preventDefault();
|
|
245
|
+
event.stopImmediatePropagation();
|
|
246
|
+
event.stopPropagation();
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
if (!this.disabled)
|
|
250
|
+
return;
|
|
251
|
+
event.preventDefault();
|
|
252
|
+
event.stopImmediatePropagation();
|
|
253
|
+
event.stopPropagation();
|
|
254
|
+
}
|
|
255
|
+
//#endregion EVENTS
|
|
256
|
+
/****************************************************************************/
|
|
257
|
+
//#region RENDER
|
|
258
|
+
render() {
|
|
259
|
+
if (index.Build.isDev &&
|
|
260
|
+
!this.hasInteractiveLabel &&
|
|
261
|
+
!this.hasWarnedMissingLabel) {
|
|
262
|
+
console.warn('[nv-pill] Missing required label prop. Unlabeled pills are rendered as non-interactive for accessibility.');
|
|
263
|
+
this.hasWarnedMissingLabel = true;
|
|
264
|
+
}
|
|
265
|
+
const ariaState = accessibility_utilsC4Cy9iy8.getAriaStateAttributes(this.normalizedRole, this.selected);
|
|
266
|
+
return (index.h(index.Host, { key: 'a117cead9ef6ad60f00fb19da3fa6d513a707092', role: this.hasInteractiveLabel ? this.normalizedRole : undefined, tabindex: this.resolvedTabIndex, "aria-pressed": this.hasInteractiveLabel ? ariaState.ariaPressed : undefined, "aria-checked": this.hasInteractiveLabel ? ariaState.ariaChecked : undefined, "aria-disabled": this.hasInteractiveLabel && this.disabled ? 'true' : undefined, "aria-label": this.hasInteractiveLabel ? this.resolvedLabel : undefined, "aria-hidden": this.hasInteractiveLabel ? undefined : 'true', onClick: this.hasInteractiveLabel ? this.toggleSelected : undefined }, index.h("span", { key: '1319aed0d2e9191624f41d8bc9c3e942ee2aa151', class: "leading-icon", "aria-hidden": "true" }, this.leadingIcon && (index.h("nv-icon", { key: '37b314abc0b385ba86d482312eb7e45b281f2705', name: this.leadingIcon, size: "xs" })), index.h("slot", { key: 'c61fb778c205c2dc7e87482c4650cb776ae46025', name: "leading-icon" })), index.h("span", { key: '4908da1bdada3803d029ca0757f9c064ae4d39ff', class: "label" }, this.resolvedLabel), this.selected && (index.h("span", { key: '3dcfab23e115665d403c1ba15ac6c74cc24e42ed', class: "trailing-icon", "aria-hidden": "true" }, index.h("nv-icon", { key: '2447fe8fc1b24acf95fa5b35bd167010173df92e', name: "check", size: "xs" })))));
|
|
267
|
+
}
|
|
268
|
+
get el() { return index.getElement(this); }
|
|
269
|
+
static get watchers() { return {
|
|
270
|
+
"selected": [{
|
|
271
|
+
"handleTabIndexAffectingChanges": 0
|
|
272
|
+
}],
|
|
273
|
+
"disabled": [{
|
|
274
|
+
"handleTabIndexAffectingChanges": 0
|
|
275
|
+
}],
|
|
276
|
+
"label": [{
|
|
277
|
+
"handleTabIndexAffectingChanges": 0
|
|
278
|
+
}],
|
|
279
|
+
"pillAriaRole": [{
|
|
280
|
+
"handleTabIndexAffectingChanges": 0
|
|
281
|
+
}]
|
|
282
|
+
}; }
|
|
283
|
+
};
|
|
284
|
+
NvPill.pendingRadioGroupSyncs = new WeakMap();
|
|
285
|
+
NvPill.radioGroupTabIndexCache = new WeakMap();
|
|
286
|
+
NvPill.style = nvPillCss();
|
|
287
|
+
|
|
288
|
+
exports.nv_pill = NvPill;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DN55EpKb.js');
|
|
4
4
|
var fade_animationDcRL9lcm = require('./fade.animation-DcRL9lcm-DAZeHoKN.js');
|
|
5
5
|
var grow_animationD7ep_aVl = require('./grow.animation-D7ep_aVl-BuXEDSK-.js');
|
|
6
6
|
require('./style-value-types.es-xlgmw4x8-B1vLqX9m.js');
|
|
@@ -1962,7 +1962,7 @@ const NvPopover = class {
|
|
|
1962
1962
|
/****************************************************************************/
|
|
1963
1963
|
//#region RENDER
|
|
1964
1964
|
render() {
|
|
1965
|
-
return (index.h(index.Host, { key: '
|
|
1965
|
+
return (index.h(index.Host, { key: '1a604043f59c8aa04237b6d03838125079ac5c49' }, index.h("slot", { key: 'c22461b3d5050f7b502635221cbe17c03ef425a9', name: "trigger" }), index.h("div", { key: '58a438db8308be12d854afe3deda462d4ae528fb', "data-scope": "popover", "data-strategy": this.strategy, hidden: true, ref: el => (this.popoverElement = el) }, this.hasArrow && (index.h("div", { key: 'af18bf4b8700484ca989a8d45da8295e8d11ea2e', "data-scope": "arrow", ref: el => (this.arrowElement = el) })), index.h("slot", { key: 'f3308bfc01d5a4f954a1f0b822cf378cd874f9bd', name: "content" }))));
|
|
1966
1966
|
}
|
|
1967
1967
|
get el() { return index.getElement(this); }
|
|
1968
1968
|
static get watchers() { return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DN55EpKb.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
@@ -14,7 +14,7 @@ const NvRow = class {
|
|
|
14
14
|
/****************************************************************************/
|
|
15
15
|
//#region RENDER
|
|
16
16
|
render() {
|
|
17
|
-
return (index.h(index.Host, { key: '
|
|
17
|
+
return (index.h(index.Host, { key: 'f19fb4030becd15fb3cc8f6d3a7e3a04d8a172e4' }, index.h("slot", { key: 'e1f3ae7b01b0a66874ea6af627a503bed92e7f82' })));
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
NvRow.style = nvRowCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DN55EpKb.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
@@ -324,9 +324,9 @@ const NvSidebar = class {
|
|
|
324
324
|
const isCollapsed = this.type === 'collapsible' && !this.open;
|
|
325
325
|
const showResizeHandle = this.resizable && !isCollapsed;
|
|
326
326
|
const [ariaValueMin, ariaValueMax] = this.getBounds();
|
|
327
|
-
return (index.h(index.Host, { key: '
|
|
327
|
+
return (index.h(index.Host, { key: 'f584d8b2007d46a966b1d5ea00ccc20ffdb7a566', role: "navigation", collapsed: isCollapsed ? true : undefined, resizing: this.resizing ? true : undefined, "notification-intention": this.notificationIntention, "notification-emphasis": this.notificationEmphasis, "aria-expanded": this.type === 'collapsible' ? String(this.open) : undefined }, index.h("div", { key: 'b4264b03e34c809616d492519146d4be4c6e9199', class: "nv-sidebar-container" }, index.h("slot", { key: 'b272545553a32d154b1d994057957ad6ef5f0413' })), this.type === 'collapsible' && (index.h("button", { key: '0c3ee094010027fc2036974116087c64dc8cf6c5', class: "nv-sidebar-toggle", onClick: this.handleToggle, "aria-label": this.open ? 'Collapse sidebar' : 'Expand sidebar' }, index.h("nv-icon", { key: '3bfcf6301a5376ff9a144912af82e1b83ed3b617', name: this.open
|
|
328
328
|
? 'layout-sidebar-left-collapse'
|
|
329
|
-
: 'layout-sidebar-right-collapse', size: "sm" }))), showResizeHandle && (index.h("div", { key: '
|
|
329
|
+
: 'layout-sidebar-right-collapse', size: "sm" }))), showResizeHandle && (index.h("div", { key: '12a6e9a907edd25b2b1adf52c831141905f3369b', class: "nv-sidebar-resize-handle", role: "separator", "aria-orientation": "vertical", "aria-label": "Resize sidebar", "aria-valuenow": this.getAriaValueNow(), "aria-valuemin": ariaValueMin, "aria-valuemax": ariaValueMax, tabIndex: 0, onPointerDown: this.handleResizeStart, onPointerMove: this.handleResizeMove, onPointerUp: this.handleResizeEnd, onPointerCancel: this.handleResizeCancel, onKeyDown: this.handleResizeKeyDown }))));
|
|
330
330
|
}
|
|
331
331
|
get el() { return index.getElement(this); }
|
|
332
332
|
static get watchers() { return {
|
package/dist/cjs/{nv-sidebarcontent.entry-DIIupG0e.js → nv-sidebarcontent.entry-Dbk9Jp-R.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DN55EpKb.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
@@ -14,7 +14,7 @@ const NvSidebarcontent = class {
|
|
|
14
14
|
/****************************************************************************/
|
|
15
15
|
//#region RENDER
|
|
16
16
|
render() {
|
|
17
|
-
return (index.h(index.Host, { key: '
|
|
17
|
+
return (index.h(index.Host, { key: '5e9ea9dabd866c1eeb822fb9ff0f240f9ed7baf6', role: "list" }, index.h("slot", { key: '9c196e39fccdce97a4abb97c78c4e4989a9d0a2f' })));
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
NvSidebarcontent.style = nvSidebarcontentCss();
|
package/dist/cjs/{nv-sidebardivider.entry-CqdP5bFW.js → nv-sidebardivider.entry-BSbCqQ-I.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DN55EpKb.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
@@ -14,7 +14,7 @@ const NvSidebardivider = class {
|
|
|
14
14
|
/****************************************************************************/
|
|
15
15
|
//#region RENDER
|
|
16
16
|
render() {
|
|
17
|
-
return index.h(index.Host, { key: '
|
|
17
|
+
return index.h(index.Host, { key: 'c72803cbb9850b35168a96482d9c23019de96424', role: "separator", "aria-orientation": "horizontal" });
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
NvSidebardivider.style = nvSidebardividerCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DN55EpKb.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
@@ -14,7 +14,7 @@ const NvSidebarfooter = class {
|
|
|
14
14
|
/****************************************************************************/
|
|
15
15
|
//#region RENDER
|
|
16
16
|
render() {
|
|
17
|
-
return (index.h(index.Host, { key: '
|
|
17
|
+
return (index.h(index.Host, { key: '77a05cf3a036b84ac31632c96c988bdf9264909c' }, index.h("slot", { key: '9553a50d609f7f03fc5cca08833c9db2949371bf' })));
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
NvSidebarfooter.style = nvSidebarfooterCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DN55EpKb.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
@@ -15,7 +15,7 @@ const NvSidebargroup = class {
|
|
|
15
15
|
/****************************************************************************/
|
|
16
16
|
//#region RENDER
|
|
17
17
|
render() {
|
|
18
|
-
return (index.h(index.Host, { key: '
|
|
18
|
+
return (index.h(index.Host, { key: '94ff9b0f5a9b4c99a52f1259e3d7b0c6227b14a3', role: "group", "aria-label": this.label }, this.label && index.h("div", { key: '9a83d5a98fdd1d73b84b7a217c70ef279e69fa4a', class: "nv-sidebargroup-label" }, this.label), index.h("slot", { key: '4e987ce6b98fadced75ccc814b9ca9be80db0c8f' })));
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
NvSidebargroup.style = nvSidebargroupCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DN55EpKb.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
@@ -14,7 +14,7 @@ const NvSidebarheader = class {
|
|
|
14
14
|
/****************************************************************************/
|
|
15
15
|
//#region RENDER
|
|
16
16
|
render() {
|
|
17
|
-
return (index.h(index.Host, { key: '
|
|
17
|
+
return (index.h(index.Host, { key: '4a2c70f79c4702dfd0bbbb5ab193382ad27d5522' }, index.h("slot", { key: '3c8c9ab5bc2837ed011d630b17c111eb7d091433' })));
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
NvSidebarheader.style = nvSidebarheaderCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DN55EpKb.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
@@ -24,7 +24,7 @@ const NvSidebarlogo = class {
|
|
|
24
24
|
render() {
|
|
25
25
|
const logoSrc = this.logo || this.defaultLogo;
|
|
26
26
|
const collapsedLogoSrc = this.collapsedLogo || this.defaultCollapsedLogo;
|
|
27
|
-
return (index.h(index.Host, { key: '
|
|
27
|
+
return (index.h(index.Host, { key: 'ff93a7354c92b3fc7a9f35d89331537e0ed93209' }, index.h("div", { key: '7304b9c975b1499c4719da252d7c98826e81b559', class: "nv-sidebarlogo-container" }, index.h("img", { key: 'e1955ccfba4573bc834b0db681c1841daedef5c3', src: logoSrc, alt: this.label || 'Logo', class: "nv-sidebarlogo-full" }), index.h("img", { key: 'b02a31dbb3a61509bae66043feab0987a5bc7517', src: collapsedLogoSrc, alt: this.label || 'Logo', class: "nv-sidebarlogo-collapsed" }), index.h("slot", { key: '9cf5c77752c1078ec4a2d75e186a626094f05d33', name: "label" }), this.label && index.h("span", { key: '0f738654eeea4dafe7ab171cd2c575245775fc6d', class: "nv-sidebarlogo-title" }, this.label))));
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
NvSidebarlogo.style = nvSidebarlogoCss();
|
package/dist/cjs/{nv-sidebarnavitem.entry-DW0S4_CH.js → nv-sidebarnavitem.entry-D322CneD.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DN55EpKb.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
@@ -276,7 +276,7 @@ const NvSidebarnavitem = class {
|
|
|
276
276
|
render() {
|
|
277
277
|
const showNotificationBullet = this.notificationCount !== undefined && this.notificationCount > 0;
|
|
278
278
|
const notificationSize = this.isSidebarCollapsed ? 'reduced' : 'default';
|
|
279
|
-
return (index.h(index.Host, { key: '
|
|
279
|
+
return (index.h(index.Host, { key: 'b91fe5e893da97a5c0689676894e806fb7263a80', role: "listitem" }, index.h("div", { key: 'a8f8a3e65144a10884aa097edaaff2f49c17cf4a', class: "nv-sidebarnavitem-trigger", onClick: this.handleToggle, "aria-expanded": this.collapsible ? String(this.open) : undefined, "aria-current": this.active && !this.collapsible ? 'page' : undefined }, this.icon && (index.h("div", { key: '8c34b7e8b7fc41503aa1f0e7eea6270b5889e6da', class: "nv-sidebarnavitem-icon" }, index.h("nv-icon", { key: '73afc94a134d96da07322786025b5ac2334f53b4', name: this.icon, size: "md" }), showNotificationBullet && this.isSidebarCollapsed && (index.h("nv-notification-bullet", { key: '93e5de4631e68dd5005778c56124a0ecc6338e81', count: this.notificationCount, size: notificationSize, contrastingBorder: true })))), index.h("div", { key: 'a3e2c46e1802d7ab16c3922ae56476b61bedf3c3', class: "nv-sidebarnavitem-content" }, index.h("slot", { key: 'f830c358b690bc90302dfa2c1053f39889412c8e' })), index.h("div", { key: 'dec2b6d2b86b8be336440a69049c206e30116bb3', class: "nv-sidebarnavitem-trailing" }, index.h("slot", { key: '4553629737f60012755f08f269466302524f9a21', name: "trailing" }), showNotificationBullet && !this.isSidebarCollapsed && (index.h("nv-notification-bullet", { key: '04e2408dccbee9b365e1e8b8efe77c674851d29e', count: this.notificationCount, size: notificationSize })), this.collapsible && (index.h("nv-icon", { key: 'b38dff75884b4696c146e8351cb91c5a33eda8c6', name: "chevron-down", size: "sm", class: "nv-sidebarnavitem-chevron" })))), this.collapsible && this.hasSubitems && (index.h("div", { key: '720f0050710f377a8cbb4258ebf95f8f3127dc36', class: "nv-sidebarnavitem-subitems", ref: el => {
|
|
280
280
|
// Only update ref and initialize if element changed or not yet initialized
|
|
281
281
|
if (el !== this.subitemsRef) {
|
|
282
282
|
this.subitemsRef = el;
|
|
@@ -291,7 +291,7 @@ const NvSidebarnavitem = class {
|
|
|
291
291
|
});
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
|
-
} }, index.h("slot", { key: '
|
|
294
|
+
} }, index.h("slot", { key: 'fe94b2867f472c3af6b71ce80da4a6bfac71dd39', name: "subitems" })))));
|
|
295
295
|
}
|
|
296
296
|
get el() { return index.getElement(this); }
|
|
297
297
|
static get watchers() { return {
|
package/dist/cjs/{nv-sidebarnavsubitem.entry-CfJXOLFL.js → nv-sidebarnavsubitem.entry-CUTyEkyb.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DN55EpKb.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
@@ -27,7 +27,7 @@ const NvSidebarnavsubitem = class {
|
|
|
27
27
|
/****************************************************************************/
|
|
28
28
|
//#region RENDER
|
|
29
29
|
render() {
|
|
30
|
-
return (index.h(index.Host, { key: '
|
|
30
|
+
return (index.h(index.Host, { key: '8e9a0d7cf4959780fe7ab6d83430c4ec4506241b', role: "listitem", "aria-current": this.active ? 'page' : undefined }, index.h("div", { key: '46bf34f370de8886b792163a8adc1d671c3c726b', class: "nv-sidebarnavsubitem-indicator" }), index.h("div", { key: '70d5a923d8ad647639629e889a06ce0b85029b3e', class: "nv-sidebarnavsubitem-content" }, index.h("slot", { key: '64e1bc7e2e88607b8d4db1330fa281ea555551bc' })), index.h("div", { key: '55ca89e4b66d7d63d48bbbac83d882fb791621a8', class: "nv-sidebarnavsubitem-trailing" }, index.h("slot", { key: 'd3e35d06eac31658fa029f091e1696136383698f', name: "trailing" }))));
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
NvSidebarnavsubitem.style = nvSidebarnavsubitemCss();
|