@nova-design-system/nova-webcomponents 3.0.0-beta.43 → 3.0.0-beta.45
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/index.cjs.js +472 -2
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/native.cjs.js +1 -1
- package/dist/cjs/nv-badge_2.cjs.entry.js +1 -1
- package/dist/cjs/nv-badge_2.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/nv-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-button.cjs.entry.js +5 -3
- package/dist/cjs/nv-button.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-calendar.cjs.entry.js +5 -5
- package/dist/cjs/nv-calendar.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-datagrid.cjs.entry.js +31 -4
- package/dist/cjs/nv-datagrid.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-dialog.cjs.entry.js +16 -12
- package/dist/cjs/nv-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-dialogfooter_2.cjs.entry.js +5 -5
- package/dist/cjs/nv-dialogfooter_2.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddropdown.cjs.entry.js +44 -74
- package/dist/cjs/nv-fielddropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js +6 -8
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +6 -48
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-icon.cjs.entry.js +1 -1
- package/dist/cjs/nv-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-popover.cjs.entry.js +11 -9
- package/dist/cjs/nv-popover.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-table.cjs.entry.js +1 -1
- package/dist/cjs/nv-table.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-toggle.cjs.entry.js +1 -1
- package/dist/cjs/nv-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/nv-tooltip.cjs.entry.js.map +1 -1
- package/dist/collection/components/nv-badge/nv-badge.css +27 -0
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.css +11 -0
- package/dist/collection/components/nv-button/nv-button.js +5 -3
- package/dist/collection/components/nv-button/nv-button.js.map +1 -1
- package/dist/collection/components/nv-calendar/nv-calendar.css +129 -77
- package/dist/collection/components/nv-calendar/nv-calendar.js +4 -4
- package/dist/collection/components/nv-calendar/nv-calendar.js.map +1 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.css +4 -4
- package/dist/collection/components/nv-datagrid/nv-datagrid.docs.js +13 -2
- package/dist/collection/components/nv-datagrid/nv-datagrid.docs.js.map +1 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.js +53 -3
- package/dist/collection/components/nv-datagrid/nv-datagrid.js.map +1 -1
- package/dist/collection/components/nv-dialog/nv-dialog.js +24 -17
- package/dist/collection/components/nv-dialog/nv-dialog.js.map +1 -1
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.js +7 -7
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.js.map +1 -1
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.css +11 -0
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js +44 -74
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js.map +1 -1
- package/dist/collection/components/nv-fielddropdown/styles/nv-fielddropdown.css +3 -0
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js +9 -11
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js.map +1 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js +6 -48
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js.map +1 -1
- package/dist/collection/components/nv-icon/nv-icon.docs.js +1 -0
- package/dist/collection/components/nv-icon/nv-icon.docs.js.map +1 -1
- package/dist/collection/components/nv-icon/nv-icons.js +472 -2
- package/dist/collection/components/nv-icon/nv-icons.js.map +1 -1
- package/dist/collection/components/nv-menu/nv-menu.js +1 -1
- package/dist/collection/components/nv-menuitem/nv-menuitem.js +1 -1
- package/dist/collection/components/nv-popover/nv-popover.js +11 -9
- package/dist/collection/components/nv-popover/nv-popover.js.map +1 -1
- package/dist/collection/components/nv-table/nv-table.css +4 -4
- package/dist/collection/components/nv-toggle/nv-toggle.css +11 -0
- package/dist/collection/components/nv-tooltip/nv-tooltip.js +1 -1
- package/dist/collection/components/nv-tooltip/nv-tooltip.js.map +1 -1
- package/dist/components/index.js +472 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/nv-alert.js +1 -1
- package/dist/components/nv-avatar.js +1 -1
- package/dist/components/nv-badge.js +1 -1
- package/dist/components/nv-breadcrumb.js +3 -3
- package/dist/components/nv-breadcrumb.js.map +1 -1
- package/dist/components/nv-button.js +1 -1
- package/dist/components/nv-calendar.js +1 -1
- package/dist/components/nv-datagrid.js +32 -4
- package/dist/components/nv-datagrid.js.map +1 -1
- package/dist/components/nv-dialog.js +20 -16
- package/dist/components/nv-dialog.js.map +1 -1
- package/dist/components/nv-dialogfooter.js +1 -1
- package/dist/components/nv-fieldcheckbox.js +1 -1
- package/dist/components/nv-fielddate.js +6 -6
- package/dist/components/nv-fielddaterange.js +6 -6
- package/dist/components/nv-fielddropdown.js +48 -78
- package/dist/components/nv-fielddropdown.js.map +1 -1
- package/dist/components/nv-fielddropdownitem.js +1 -1
- package/dist/components/nv-fielddropdownitemcheck.js +1 -1
- package/dist/components/nv-fieldmultiselect.js +12 -54
- package/dist/components/nv-fieldmultiselect.js.map +1 -1
- package/dist/components/nv-fieldnumber.js +2 -2
- package/dist/components/nv-fieldpassword.js +2 -2
- package/dist/components/nv-fieldselect.js +2 -2
- package/dist/components/nv-fieldtext.js +1 -1
- package/dist/components/nv-fieldtime.js +3 -3
- package/dist/components/nv-icon.js +1 -1
- package/dist/components/nv-iconbutton.js +1 -1
- package/dist/components/nv-menu.js +3 -3
- package/dist/components/nv-menuitem.js +1 -1
- package/dist/components/nv-popover.js +1 -1
- package/dist/components/nv-table.js +1 -1
- package/dist/components/nv-table.js.map +1 -1
- package/dist/components/nv-toggle.js +1 -1
- package/dist/components/nv-toggle.js.map +1 -1
- package/dist/components/nv-tooltip.js +1 -1
- package/dist/components/{p-7f142767.js → p-0f59f38e.js} +3 -3
- package/dist/components/p-0f59f38e.js.map +1 -0
- package/dist/components/{p-1a4f9c97.js → p-103756d6.js} +6 -4
- package/dist/components/p-103756d6.js.map +1 -0
- package/dist/components/{p-a8b5969f.js → p-3561c093.js} +3 -3
- package/dist/components/{p-a8b5969f.js.map → p-3561c093.js.map} +1 -1
- package/dist/components/{p-1e095bba.js → p-3b096098.js} +2 -2
- package/dist/components/{p-1e095bba.js.map → p-3b096098.js.map} +1 -1
- package/dist/components/p-78b00756.js +88 -0
- package/dist/components/p-78b00756.js.map +1 -0
- package/dist/components/{p-3aa6f6dc.js → p-78e0e7b0.js} +9 -9
- package/dist/components/p-78e0e7b0.js.map +1 -0
- package/dist/components/{p-4c6ba63c.js → p-863974b2.js} +2 -2
- package/dist/components/{p-4c6ba63c.js.map → p-863974b2.js.map} +1 -1
- package/dist/components/{p-9476354d.js → p-8ea5e3c0.js} +9 -11
- package/dist/components/p-8ea5e3c0.js.map +1 -0
- package/dist/components/{p-55202370.js → p-933d4d06.js} +2 -2
- package/dist/components/p-933d4d06.js.map +1 -0
- package/dist/components/{p-89fb308b.js → p-aeeb5b1c.js} +2 -2
- package/dist/components/{p-89fb308b.js.map → p-aeeb5b1c.js.map} +1 -1
- package/dist/components/{p-56716b97.js → p-b5821dbb.js} +8 -8
- package/dist/components/p-b5821dbb.js.map +1 -0
- package/dist/components/{p-057ae4f2.js → p-e46c2e31.js} +12 -10
- package/dist/components/p-e46c2e31.js.map +1 -0
- package/dist/components/{p-1fad2529.js → p-ef255589.js} +2 -2
- package/dist/components/{p-1fad2529.js.map → p-ef255589.js.map} +1 -1
- package/dist/esm/index.js +472 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/native.js +1 -1
- package/dist/esm/nv-badge_2.entry.js +1 -1
- package/dist/esm/nv-badge_2.entry.js.map +1 -1
- package/dist/esm/nv-breadcrumb.entry.js +1 -1
- package/dist/esm/nv-breadcrumb.entry.js.map +1 -1
- package/dist/esm/nv-button.entry.js +5 -3
- package/dist/esm/nv-button.entry.js.map +1 -1
- package/dist/esm/nv-calendar.entry.js +5 -5
- package/dist/esm/nv-calendar.entry.js.map +1 -1
- package/dist/esm/nv-datagrid.entry.js +31 -4
- package/dist/esm/nv-datagrid.entry.js.map +1 -1
- package/dist/esm/nv-dialog.entry.js +16 -12
- package/dist/esm/nv-dialog.entry.js.map +1 -1
- package/dist/esm/nv-dialogfooter_2.entry.js +5 -5
- package/dist/esm/nv-dialogfooter_2.entry.js.map +1 -1
- package/dist/esm/nv-fieldcheckbox.entry.js +1 -1
- package/dist/esm/nv-fieldcheckbox.entry.js.map +1 -1
- package/dist/esm/nv-fielddropdown.entry.js +44 -74
- package/dist/esm/nv-fielddropdown.entry.js.map +1 -1
- package/dist/esm/nv-fielddropdownitem.entry.js +6 -8
- package/dist/esm/nv-fielddropdownitem.entry.js.map +1 -1
- package/dist/esm/nv-fieldmultiselect.entry.js +6 -48
- package/dist/esm/nv-fieldmultiselect.entry.js.map +1 -1
- package/dist/esm/nv-icon.entry.js +1 -1
- package/dist/esm/nv-icon.entry.js.map +1 -1
- package/dist/esm/nv-popover.entry.js +11 -9
- package/dist/esm/nv-popover.entry.js.map +1 -1
- package/dist/esm/nv-table.entry.js +1 -1
- package/dist/esm/nv-table.entry.js.map +1 -1
- package/dist/esm/nv-toggle.entry.js +1 -1
- package/dist/esm/nv-toggle.entry.js.map +1 -1
- package/dist/esm/nv-tooltip.entry.js +1 -1
- package/dist/esm/nv-tooltip.entry.js.map +1 -1
- package/dist/native/index.esm.js +1 -1
- package/dist/native/index.esm.js.map +1 -1
- package/dist/native/native.css +1 -1
- package/dist/native/native.esm.js +1 -1
- package/dist/native/native.esm.js.map +1 -1
- package/dist/native/p-0172095c.entry.js +2 -0
- package/dist/native/p-0172095c.entry.js.map +1 -0
- package/dist/native/{p-b052f1cb.entry.js → p-162f4840.entry.js} +2 -2
- package/dist/native/p-162f4840.entry.js.map +1 -0
- package/dist/native/{p-2ed540e3.entry.js → p-17bf1233.entry.js} +2 -2
- package/dist/native/p-17bf1233.entry.js.map +1 -0
- package/dist/native/p-19fd6594.entry.js +2 -0
- package/dist/native/p-19fd6594.entry.js.map +1 -0
- package/dist/native/p-331da074.entry.js +2 -0
- package/dist/native/p-331da074.entry.js.map +1 -0
- package/dist/native/{p-db2902d6.entry.js → p-40f4a6e7.entry.js} +2 -2
- package/dist/native/p-40f4a6e7.entry.js.map +1 -0
- package/dist/native/p-42d020a7.entry.js +2 -0
- package/dist/native/p-42d020a7.entry.js.map +1 -0
- package/dist/native/p-4403e3af.entry.js +2 -0
- package/dist/native/p-4403e3af.entry.js.map +1 -0
- package/dist/native/p-54b6ce07.entry.js +2 -0
- package/dist/native/p-54b6ce07.entry.js.map +1 -0
- package/dist/native/{p-56e98443.entry.js → p-603a99ed.entry.js} +2 -2
- package/dist/native/{p-56e98443.entry.js.map → p-603a99ed.entry.js.map} +1 -1
- package/dist/native/p-725e0abd.entry.js +2 -0
- package/dist/native/p-725e0abd.entry.js.map +1 -0
- package/dist/native/p-abeda2cf.entry.js +7 -0
- package/dist/native/p-abeda2cf.entry.js.map +1 -0
- package/dist/native/{p-04c6048a.entry.js → p-d9624254.entry.js} +2 -2
- package/dist/native/p-d9624254.entry.js.map +1 -0
- package/dist/native/{p-be4fc827.entry.js → p-e197d90b.entry.js} +2 -2
- package/dist/native/p-e197d90b.entry.js.map +1 -0
- package/dist/native/p-e6904ae4.entry.js +2 -0
- package/dist/native/p-e6904ae4.entry.js.map +1 -0
- package/dist/native/p-f01a34c5.entry.js +2 -0
- package/dist/native/p-f01a34c5.entry.js.map +1 -0
- package/dist/types/components/nv-base/nv-base.docs.d.ts +1 -1
- package/dist/types/components/nv-datagrid/nv-datagrid.d.ts +6 -0
- package/dist/types/components/nv-dialog/nv-dialog.d.ts +4 -3
- package/dist/types/components/nv-dialogfooter/nv-dialogfooter.d.ts +2 -2
- package/dist/types/components/nv-fielddropdown/nv-fielddropdown.d.ts +1 -7
- package/dist/types/components/nv-fielddropdownitem/nv-fielddropdownitem.d.ts +1 -6
- package/dist/types/components/nv-fieldmultiselect/nv-fieldmultiselect.d.ts +1 -1
- package/dist/types/components/nv-icon/nv-icons.d.ts +1 -1
- package/dist/types/components.d.ts +29 -18
- package/dist/types/nova-docs.d.ts +6 -0
- package/dist/vscode-data.json +5984 -0
- package/hydrate/index.js +140 -178
- package/hydrate/index.mjs +140 -178
- package/package.json +10 -10
- package/dist/components/p-057ae4f2.js.map +0 -1
- package/dist/components/p-1a4f9c97.js.map +0 -1
- package/dist/components/p-3aa6f6dc.js.map +0 -1
- package/dist/components/p-55202370.js.map +0 -1
- package/dist/components/p-56716b97.js.map +0 -1
- package/dist/components/p-7f142767.js.map +0 -1
- package/dist/components/p-9476354d.js.map +0 -1
- package/dist/components/p-ebf24fd0.js +0 -88
- package/dist/components/p-ebf24fd0.js.map +0 -1
- package/dist/docs.d.ts +0 -443
- package/dist/docs.json +0 -16650
- package/dist/native/p-048486e0.entry.js +0 -7
- package/dist/native/p-048486e0.entry.js.map +0 -1
- package/dist/native/p-04c6048a.entry.js.map +0 -1
- package/dist/native/p-22a45102.entry.js +0 -2
- package/dist/native/p-22a45102.entry.js.map +0 -1
- package/dist/native/p-2ed540e3.entry.js.map +0 -1
- package/dist/native/p-62df7dd4.entry.js +0 -2
- package/dist/native/p-62df7dd4.entry.js.map +0 -1
- package/dist/native/p-68b5a92c.entry.js +0 -2
- package/dist/native/p-68b5a92c.entry.js.map +0 -1
- package/dist/native/p-6a629671.entry.js +0 -2
- package/dist/native/p-6a629671.entry.js.map +0 -1
- package/dist/native/p-913907fb.entry.js +0 -2
- package/dist/native/p-913907fb.entry.js.map +0 -1
- package/dist/native/p-9f5e4dfc.entry.js +0 -2
- package/dist/native/p-9f5e4dfc.entry.js.map +0 -1
- package/dist/native/p-ab84ff42.entry.js +0 -2
- package/dist/native/p-ab84ff42.entry.js.map +0 -1
- package/dist/native/p-b052f1cb.entry.js.map +0 -1
- package/dist/native/p-bdabd495.entry.js +0 -2
- package/dist/native/p-bdabd495.entry.js.map +0 -1
- package/dist/native/p-be4fc827.entry.js.map +0 -1
- package/dist/native/p-db2902d6.entry.js.map +0 -1
- package/dist/native/p-ed595c96.entry.js +0 -2
- package/dist/native/p-ed595c96.entry.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, f as forceUpdate, h, d as Host } from './p-1c45c0f2.js';
|
|
2
2
|
import { c as clsx } from './p-8a1a6e56.js';
|
|
3
|
-
import { d as defineCustomElement$3 } from './p-
|
|
4
|
-
import { d as defineCustomElement$2 } from './p-
|
|
3
|
+
import { d as defineCustomElement$3 } from './p-e46c2e31.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './p-3561c093.js';
|
|
5
5
|
|
|
6
|
-
const nvBreadcrumbCss = "nv-breadcrumb{display:flex;align-items:center;color:var(--components-breadcrumb-text);font-size:var(--font-size-sm);font-style:normal;font-weight:500;line-height:var(--line-height-sm)}nv-breadcrumb ul{display:flex;flex-direction:column;gap:var(--spacing-1-5);padding:var(--spacing-1)}nv-breadcrumb ul a,nv-breadcrumb ul button{display:inline-flex;align-self:center;color:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;text-decoration:none}nv-breadcrumb ul a:focus,nv-breadcrumb ul a:focus-within,nv-breadcrumb ul button:focus,nv-breadcrumb ul button:focus-within{outline:none}nv-breadcrumb ul a:focus-visible,nv-breadcrumb ul a:has(:focus-visible),nv-breadcrumb ul button:focus-visible,nv-breadcrumb ul button:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 0.5) solid var(--components-breadcrumb-text-hover);outline-offset:calc(var(--focus-outline-offset) * 0.3)}nv-breadcrumb ul a:hover,nv-breadcrumb ul button:hover{text-decoration:underline;color:var(--components-breadcrumb-text-hover)}nv-breadcrumb>a,nv-breadcrumb>button{display:inline-flex;align-self:center;color:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;text-decoration:none}nv-breadcrumb>a:focus,nv-breadcrumb>a:focus-within,nv-breadcrumb>button:focus,nv-breadcrumb>button:focus-within{outline:none}nv-breadcrumb>a:focus-visible,nv-breadcrumb>a:has(:focus-visible),nv-breadcrumb>button:focus-visible,nv-breadcrumb>button:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 0.5) solid var(--components-breadcrumb-text-hover);outline-offset:calc(var(--focus-outline-offset) * 0.3)}nv-breadcrumb>a:hover,nv-breadcrumb>button:hover{text-decoration:underline;color:var(--components-breadcrumb-text-hover)}nv-breadcrumb span[data-scope=separator]{display:inline-flex;padding-left:var(--breadcrumb-padding-y)}";
|
|
6
|
+
const nvBreadcrumbCss = "nv-breadcrumb{display:flex;align-items:center;color:var(--components-breadcrumb-text);font-size:var(--font-size-sm);font-style:normal;font-weight:500;line-height:var(--line-height-sm)}nv-breadcrumb.visually-hidden{position:absolute;padding:0;border:0;overflow:hidden;white-space:nowrap;width:1px;height:1px;margin:-1px;clip:rect(0, 0, 0, 0)}nv-breadcrumb ul{display:flex;flex-direction:column;gap:var(--spacing-1-5);padding:var(--spacing-1)}nv-breadcrumb ul a,nv-breadcrumb ul button{display:inline-flex;align-self:center;color:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;text-decoration:none}nv-breadcrumb ul a:focus,nv-breadcrumb ul a:focus-within,nv-breadcrumb ul button:focus,nv-breadcrumb ul button:focus-within{outline:none}nv-breadcrumb ul a:focus-visible,nv-breadcrumb ul a:has(:focus-visible),nv-breadcrumb ul button:focus-visible,nv-breadcrumb ul button:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 0.5) solid var(--components-breadcrumb-text-hover);outline-offset:calc(var(--focus-outline-offset) * 0.3)}nv-breadcrumb ul a:hover,nv-breadcrumb ul button:hover{text-decoration:underline;color:var(--components-breadcrumb-text-hover)}nv-breadcrumb>a,nv-breadcrumb>button{display:inline-flex;align-self:center;color:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;text-decoration:none}nv-breadcrumb>a:focus,nv-breadcrumb>a:focus-within,nv-breadcrumb>button:focus,nv-breadcrumb>button:focus-within{outline:none}nv-breadcrumb>a:focus-visible,nv-breadcrumb>a:has(:focus-visible),nv-breadcrumb>button:focus-visible,nv-breadcrumb>button:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 0.5) solid var(--components-breadcrumb-text-hover);outline-offset:calc(var(--focus-outline-offset) * 0.3)}nv-breadcrumb>a:hover,nv-breadcrumb>button:hover{text-decoration:underline;color:var(--components-breadcrumb-text-hover)}nv-breadcrumb span[data-scope=separator]{display:inline-flex;padding-left:var(--breadcrumb-padding-y)}";
|
|
7
7
|
const NvBreadcrumbStyle0 = nvBreadcrumbCss;
|
|
8
8
|
|
|
9
9
|
const NvBreadcrumb$1 = /*@__PURE__*/ proxyCustomElement(class NvBreadcrumb extends H {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"nv-breadcrumb.js","mappings":";;;;;AAAA,MAAM,eAAe,GAAG,
|
|
1
|
+
{"file":"nv-breadcrumb.js","mappings":";;;;;AAAA,MAAM,eAAe,GAAG,6+DAA6+D,CAAC;AACtgE,2BAAe,eAAe;;MCUjBA,cAAY;IALzB;;;;;;;;;;QAkBW,SAAI,GAA4B,SAAS,CAAC;KAyEpD;;;;IArDC,gBAAgB;;QAEd,IAAI,IAAI,CAAC,IAAI,KAAK,WAAW;YAAE,WAAW,CAAC,IAAI,CAAC,CAAC;KAClD;IAED,iBAAiB;QACf,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,OAAO,EAAE;YAC3C,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,IAAI,CACrD,KAAK,IAAI,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,IAAI,CAC7C,CAAC;SACH;KACF;;;;IAMD,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,IAAI,EAAC,UAAU,kBACD,IAAI,CAAC,OAAO,GAAG,UAAU,GAAG,SAAS,EACnD,KAAK,EAAE,IAAI,CAAC,EAAE,iBAAiB,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,IAE/C,IAAI,CAAC,IAAI,KAAK,WAAW,IACxB,cAAQ,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC,UAAc,KAE3D,eAAa,CACd,EACA,IAAI,CAAC,OAAO,KACX,mEACE,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,cAAc,EAAE,IAAI,CAAC,cAAc,EACnC,SAAS,EAAC,KAAK,GACH,CACf,EACA,IAAI,CAAC,IAAI,KAAK,WAAW,KACxB,mEACE,WAAW,EAAC,OAAO,EACnB,SAAS,EAAC,aAAa,EACvB,cAAc,EAAE,IAAI,CAAC,cAAc,IAEnC,2DAAI,IAAI,EAAC,SAAS,IAChB,8DAAa,CACV,CACM,CACd,EACD,2EAAiB,WAAW,QAAS,CAChC,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["NvBreadcrumb"],"sources":["src/components/nv-breadcrumb/nv-breadcrumb.scss?tag=nv-breadcrumb","src/components/nv-breadcrumb/nv-breadcrumb.tsx"],"sourcesContent":["@use \"../../styles/focus-ring\" as focus;\n@use \"../../styles/utils\" as utils;\n\n@mixin root-styles() {\n display: flex;\n align-items: center;\n color: var(--components-breadcrumb-text);\n font-size: var(--font-size-sm);\n font-style: normal;\n font-weight: 500;\n line-height: var(--line-height-sm);\n}\n\n@mixin link-styles() {\n display: inline-flex;\n align-self: center;\n color: inherit;\n font-size: inherit;\n font-style: inherit;\n font-weight: inherit;\n line-height: inherit;\n text-decoration: none;\n @include focus.focus-ring(var(--components-breadcrumb-text-hover), 0.3, 0.5);\n &:hover {\n text-decoration: underline;\n color: var(--components-breadcrumb-text-hover);\n }\n}\n\n@mixin button-styles() {\n height: 20px;\n @include focus.focus-ring(var(--components-breadcrumb-text-hover), 0.3, 0.5);\n &:hover {\n text-decoration: underline;\n color: var(--components-breadcrumb-text-hover);\n }\n}\n\n@mixin separator-styles() {\n display: inline-flex;\n padding-left: var(--breadcrumb-padding-y);\n}\n\n@mixin list-styles() {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-1-5);\n padding: var(--spacing-1);\n\n a,\n button {\n @include link-styles();\n }\n}\n\nnv-breadcrumb {\n @include root-styles();\n\n &.visually-hidden {\n @include utils.visually-hidden();\n }\n\n ul {\n @include list-styles();\n }\n & > a,\n & > button {\n @include link-styles();\n }\n span[data-scope=\"separator\"] {\n @include separator-styles();\n }\n}\n","import { Component, Prop, Host, h, Element, forceUpdate } from '@stencil/core';\nimport clsx from 'clsx';\n\n/**\n * @slot default - Pass an icon, a link, or text to render the breadcrumb content.\n */\n@Component({\n tag: 'nv-breadcrumb',\n styleUrl: 'nv-breadcrumb.scss',\n shadow: false,\n})\nexport class NvBreadcrumb {\n @Element() el: HTMLNvBreadcrumbElement;\n private popoverTrigger!: Element;\n\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * The type of the breadcrumb. Use 'collapsed' to house multiple breadcrumbs\n * in a dropdown. Use default for a single item. When passing multiple items\n * as collapsed, make sure to wrap you links in list tags\n */\n @Prop({ reflect: true })\n readonly type: 'collapsed' | 'default' = 'default';\n\n /**\n * Add an optional tooltip to provide extra information about the breadcrumb.\n */\n @Prop({ reflect: true })\n readonly tooltip: string;\n\n /**\n * Use this to highlight the breadcrumb as the current page in your\n * navigation. It also makes the page clearer to screen readers with\n * aria-current=\"location\".\n */\n @Prop({ reflect: true })\n readonly current: boolean;\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region LIFECYCLE\n\n componentDidLoad() {\n // Force a re-render to pass the popoverTrigger ref to the popovers\n if (this.type === 'collapsed') forceUpdate(this);\n }\n\n componentWillLoad() {\n if (this.type === 'default' && this.tooltip) {\n this.popoverTrigger = Array.from(this.el.children).find(\n child => child.getAttribute('slot') === null,\n );\n }\n }\n\n //#endregion LIFECYCLE\n /****************************************************************************/\n //#region RENDER\n\n render() {\n return (\n <Host\n role=\"listitem\"\n aria-current={this.current ? 'location' : undefined}\n class={clsx({ 'visually-hidden': this.current })}\n >\n {this.type === 'collapsed' ? (\n <button ref={el => (this.popoverTrigger = el)}>...</button>\n ) : (\n <slot></slot>\n )}\n {this.tooltip && (\n <nv-tooltip\n message={this.tooltip}\n triggerElement={this.popoverTrigger}\n placement=\"top\"\n ></nv-tooltip>\n )}\n {this.type === 'collapsed' && (\n <nv-popover\n triggerMode=\"click\"\n groupName=\"breadcrumbs\"\n triggerElement={this.popoverTrigger}\n >\n <ul slot=\"content\">\n <slot></slot>\n </ul>\n </nv-popover>\n )}\n <span data-scope=\"separator\">/</span>\n </Host>\n );\n }\n\n // #endregion RENDER\n}\n"],"version":3}
|
|
@@ -3160,7 +3160,7 @@ function debounce(func, wait) {
|
|
|
3160
3160
|
};
|
|
3161
3161
|
}
|
|
3162
3162
|
|
|
3163
|
-
const nvDatagridCss = "nv-datagrid{display:block}nv-datagrid .hidden{display:none}nv-datagrid table{border-collapse:collapse;border-color:inherit;text-indent:0;width:100%}nv-datagrid th{text-align:left;border-bottom:1px solid var(--components-datagrid-border
|
|
3163
|
+
const nvDatagridCss = "nv-datagrid{display:block}nv-datagrid .hidden{display:none}nv-datagrid table{border-collapse:collapse;border-color:inherit;text-indent:0;width:100%}nv-datagrid th{text-align:left;border-bottom:1px solid var(--components-datagrid-header-border);height:var(--spacing-12);padding:var(--spacing-3) var(--spacing-4);font-size:var(--font-size-md);font-weight:700;color:var(--components-datagrid-header-text)}nv-datagrid td{border-bottom:1px solid var(--components-datagrid-body-border);height:var(--spacing-12);max-height:var(--spacing-14);padding:var(--spacing-2) var(--spacing-4);font-size:var(--font-size-md);font-weight:400;color:var(--components-datagrid-body-text);white-space:nowrap;text-overflow:ellipsis}nv-datagrid tbody>tr:hover{background:var(--color-interaction-container-neutral-background-hover)}";
|
|
3164
3164
|
const NvDatagridStyle0 = nvDatagridCss;
|
|
3165
3165
|
|
|
3166
3166
|
const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H {
|
|
@@ -3219,6 +3219,12 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
3219
3219
|
* @default false
|
|
3220
3220
|
*/
|
|
3221
3221
|
this.enableGlobalFilter = false;
|
|
3222
|
+
/**
|
|
3223
|
+
* Whether to automatically generate columns if none are provided.
|
|
3224
|
+
* If columns are explicitly set, this property is ignored.
|
|
3225
|
+
* @default false
|
|
3226
|
+
*/
|
|
3227
|
+
this.autoGenerateColumns = false;
|
|
3222
3228
|
this.debouncedFilter = debounce((value) => {
|
|
3223
3229
|
this.globalFilter = value;
|
|
3224
3230
|
}, 300);
|
|
@@ -3291,7 +3297,9 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
3291
3297
|
accessor: key,
|
|
3292
3298
|
header: key.charAt(0).toUpperCase() + key.slice(1),
|
|
3293
3299
|
}));
|
|
3294
|
-
|
|
3300
|
+
if (this.autoGenerateColumns) {
|
|
3301
|
+
this.parseColumnsArray(arrayColumnsConfig, this.parsedColumns);
|
|
3302
|
+
}
|
|
3295
3303
|
}
|
|
3296
3304
|
}
|
|
3297
3305
|
deepEqual(a, b) {
|
|
@@ -3397,6 +3405,25 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
3397
3405
|
tableOptions.columns = this.generateColumns(validColumns, tableOptions);
|
|
3398
3406
|
}
|
|
3399
3407
|
}
|
|
3408
|
+
else {
|
|
3409
|
+
// No columns and data is available
|
|
3410
|
+
const hasData = this.parsedData &&
|
|
3411
|
+
Array.isArray(this.parsedData) &&
|
|
3412
|
+
this.parsedData.length > 0;
|
|
3413
|
+
if (hasData) {
|
|
3414
|
+
// No columns and data is available
|
|
3415
|
+
const firstRow = this.parsedData[0];
|
|
3416
|
+
const arrayColumnsConfig = Object.keys(firstRow).map(key => ({
|
|
3417
|
+
accessor: key,
|
|
3418
|
+
header: key.charAt(0).toUpperCase() + key.slice(1),
|
|
3419
|
+
}));
|
|
3420
|
+
if (this.autoGenerateColumns) {
|
|
3421
|
+
this.parseColumnsArray(arrayColumnsConfig, this.parsedColumns);
|
|
3422
|
+
}
|
|
3423
|
+
tableOptions.data = this.getTableData();
|
|
3424
|
+
tableOptions.columns = this.generateColumns(arrayColumnsConfig, tableOptions);
|
|
3425
|
+
}
|
|
3426
|
+
}
|
|
3400
3427
|
// Initialize the table
|
|
3401
3428
|
this.table = createTable(tableOptions);
|
|
3402
3429
|
}
|
|
@@ -3636,7 +3663,7 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
3636
3663
|
const rows = !this.table || this.table === undefined || this.parsedData.length === 0
|
|
3637
3664
|
? []
|
|
3638
3665
|
: (_c = (_b = this.table) === null || _b === void 0 ? void 0 : _b.getRowModel()) === null || _c === void 0 ? void 0 : _c.rows;
|
|
3639
|
-
return (h(Host, { key: '
|
|
3666
|
+
return (h(Host, { key: '6768db58f6a19cbb64e2206957ca27c18c408e46' }, h("div", { key: 'e262922097ae61025e13f8fe685ed7b38063e82c', class: "hidden" }, h("slot", { key: '9025f410bc3e6b409d6225a53a97d13aa3629200' })), h("slot", { key: '684876205d7092a4edf325c8897e97a491b77c6a', name: "before" }), this.enableGlobalFilter && this.table && (h("div", { key: 'b2fe6dd4a97d978617d404134286e6048eb8ddc2', class: "search-container" }, h("input", { key: '82c5d3b73b0bff0c2415ad896a6a4504bb1bb92c', type: "text", value: (_d = this.globalFilter) !== null && _d !== void 0 ? _d : '', onInput: this.handleGlobalFilteringOnInput, placeholder: "Search all columns...", class: "search-input", "aria-label": "Search all columns" }))), this.parsedColumns.length === 0 && this.parsedData.length === 0 ? (h("div", { class: "no-data" }, this.noColumnsNoDataMessage)) : (h("table", null, this.parsedColumns.length > 0 && headerGroups.length > 0 && (h("thead", null, this.parsedColumns.length > 0 && headerGroups
|
|
3640
3667
|
? headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups.map(headerGroup => (h("tr", { key: headerGroup.id }, headerGroup.headers.map(header => {
|
|
3641
3668
|
return (h("th", { key: header.id }, header.isPlaceholder
|
|
3642
3669
|
? null
|
|
@@ -3651,7 +3678,7 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
3651
3678
|
return (h("td", { key: cell.id, "data-row-id": rowId }, this.renderTemplate(this.templateCache.get(cellAccessors), cellValue, row) ||
|
|
3652
3679
|
(cellValue !== null && cellValue !== void 0 ? cellValue : this.fallbackValue)));
|
|
3653
3680
|
})));
|
|
3654
|
-
}))))), h("slot", { key: '
|
|
3681
|
+
}))))), h("slot", { key: '4bda5737d7917a508b97cf38b764000f8c5d368d', name: "after" })));
|
|
3655
3682
|
}
|
|
3656
3683
|
get el() { return this; }
|
|
3657
3684
|
static get watchers() { return {
|
|
@@ -3673,6 +3700,7 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
3673
3700
|
"noDataMessage": [513, "no-data-message"],
|
|
3674
3701
|
"noColumnsNoDataMessage": [513, "no-columns-no-data-message"],
|
|
3675
3702
|
"enableGlobalFilter": [516, "enable-global-filter"],
|
|
3703
|
+
"autoGenerateColumns": [516, "auto-generate-columns"],
|
|
3676
3704
|
"table": [32],
|
|
3677
3705
|
"parsedColumns": [32],
|
|
3678
3706
|
"parsedData": [32],
|