@nova-design-system/nova-webcomponents 3.0.0-beta.31 → 3.0.0-beta.33
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/blazor-docs.json +370 -128
- package/dist/cjs/{app-globals-69764290.js → app-globals-6b0931bc.js} +2 -2
- package/dist/cjs/app-globals-6b0931bc.js.map +1 -0
- package/dist/cjs/{constants-33057c89.js → constants-9525a915.js} +7 -1
- package/dist/cjs/constants-9525a915.js.map +1 -0
- package/dist/cjs/{index-72b8a9ad.js → index-ddc37f87.js} +22 -10
- package/dist/cjs/index-ddc37f87.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/native.cjs.js +3 -3
- package/dist/cjs/nv-alert.cjs.entry.js +3 -3
- package/dist/cjs/nv-avatar.cjs.entry.js +4 -4
- package/dist/cjs/nv-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-badge.cjs.entry.js +4 -4
- package/dist/cjs/nv-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-base.cjs.entry.js +2 -3
- package/dist/cjs/nv-base.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-breadcrumb.cjs.entry.js +47 -0
- package/dist/cjs/nv-breadcrumb.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-breadcrumbs.cjs.entry.js +23 -0
- package/dist/cjs/nv-breadcrumbs.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-button.cjs.entry.js +4 -4
- package/dist/cjs/nv-button.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-col.cjs.entry.js +2 -2
- package/dist/cjs/nv-datagrid.cjs.entry.js +4 -4
- package/dist/cjs/nv-datagrid.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-datagridbody.cjs.entry.js +2 -2
- package/dist/cjs/nv-datagridcolumn.cjs.entry.js +2 -2
- package/dist/cjs/nv-datagriddatacell.cjs.entry.js +2 -2
- package/dist/cjs/nv-datagridhead.cjs.entry.js +2 -2
- package/dist/cjs/nv-datagridrow.cjs.entry.js +2 -2
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +5 -5
- package/dist/cjs/nv-fielddropdown.cjs.entry.js +64 -25
- package/dist/cjs/nv-fielddropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js +2 -2
- package/dist/cjs/nv-fieldnumber.cjs.entry.js +4 -4
- package/dist/cjs/nv-fieldpassword.cjs.entry.js +4 -4
- package/dist/cjs/nv-fieldpassword.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldradio.cjs.entry.js +4 -4
- package/dist/cjs/nv-fieldselect.cjs.entry.js +9 -9
- package/dist/cjs/nv-fieldselect.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldtext.cjs.entry.js +4 -4
- package/dist/cjs/nv-fieldtext.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js +46 -44
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldtoggle.cjs.entry.js +3 -3
- package/dist/cjs/nv-icon.cjs.entry.js +3 -3
- package/dist/cjs/nv-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-iconbutton.cjs.entry.js +3 -3
- package/dist/cjs/nv-iconbutton.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-loader.cjs.entry.js +2 -2
- package/dist/cjs/nv-menu.cjs.entry.js +7 -44
- package/dist/cjs/nv-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-menuitem.cjs.entry.js +30 -3
- package/dist/cjs/nv-menuitem.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-popover.cjs.entry.js +21 -7
- package/dist/cjs/nv-popover.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-row.cjs.entry.js +2 -2
- package/dist/cjs/nv-stack.cjs.entry.js +2 -2
- package/dist/cjs/nv-table.cjs.entry.js +3 -3
- package/dist/cjs/nv-tablebody.cjs.entry.js +2 -2
- package/dist/cjs/nv-tablecolumn.cjs.entry.js +2 -2
- package/dist/cjs/nv-tabledatacell.cjs.entry.js +2 -2
- package/dist/cjs/nv-tablehead.cjs.entry.js +2 -2
- package/dist/cjs/nv-tablerow.cjs.entry.js +2 -2
- package/dist/cjs/nv-tooltip.cjs.entry.js +6 -5
- package/dist/cjs/nv-tooltip.cjs.entry.js.map +1 -1
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/nv-alert/nv-alert.js +1 -1
- package/dist/collection/components/nv-avatar/nv-avatar.css +0 -33
- package/dist/collection/components/nv-avatar/nv-avatar.js +1 -1
- package/dist/collection/components/nv-badge/nv-badge.css +0 -33
- package/dist/collection/components/nv-badge/nv-badge.js +2 -2
- package/dist/collection/components/nv-base/nv-base.js +1 -2
- package/dist/collection/components/nv-base/nv-base.js.map +1 -1
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.css +14 -0
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.docs.js +6 -0
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.docs.js.map +1 -0
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.js +111 -0
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.js.map +1 -0
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.css +12 -0
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.docs.js +34 -0
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.docs.js.map +1 -0
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.js +22 -0
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.js.map +1 -0
- package/dist/collection/components/nv-button/nv-button.docs.js +5 -0
- package/dist/collection/components/nv-button/nv-button.docs.js.map +1 -1
- package/dist/collection/components/nv-button/nv-button.js +3 -3
- package/dist/collection/components/nv-button/nv-button.js.map +1 -1
- package/dist/collection/components/nv-button/{nv-button.css → styles/nv-button.css} +25 -60
- package/dist/collection/components/nv-col/nv-col.js +1 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.js +3 -3
- package/dist/collection/components/nv-datagrid/nv-datagrid.js.map +1 -1
- package/dist/collection/components/nv-datagridbody/nv-datagridbody.js +1 -1
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.js +1 -1
- package/dist/collection/components/nv-datagriddatacell/nv-datagriddatacell.js +1 -1
- package/dist/collection/components/nv-datagridhead/nv-datagridhead.js +1 -1
- package/dist/collection/components/nv-datagridrow/nv-datagridrow.js +1 -1
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js +4 -4
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.css +13 -9
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js +8 -19
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js.map +1 -1
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js +63 -24
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js.map +1 -1
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js +1 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js +3 -3
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js +5 -5
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js.map +1 -1
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js +3 -3
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js +10 -10
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js.map +1 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js +1 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js.map +1 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js +5 -5
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js.map +1 -1
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js +46 -42
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js.map +1 -1
- package/dist/collection/components/nv-fieldtoggle/nv-fieldtoggle.js +2 -2
- package/dist/collection/components/nv-icon/nv-icon.js +3 -3
- package/dist/collection/components/nv-icon/nv-icon.js.map +1 -1
- package/dist/collection/components/nv-icon/{nv-icon.css → styles/nv-icon.css} +0 -1
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.js +10 -4
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.js.map +1 -1
- package/dist/collection/components/nv-loader/nv-loader.js +1 -1
- package/dist/collection/components/nv-menu/nv-menu.js +11 -48
- package/dist/collection/components/nv-menu/nv-menu.js.map +1 -1
- package/dist/collection/components/nv-menuitem/nv-menuitem.js +88 -4
- package/dist/collection/components/nv-menuitem/nv-menuitem.js.map +1 -1
- package/dist/collection/components/nv-popover/nv-popover.js +20 -6
- package/dist/collection/components/nv-popover/nv-popover.js.map +1 -1
- package/dist/collection/components/nv-row/nv-row.js +1 -1
- package/dist/collection/components/nv-stack/nv-stack.js +1 -1
- package/dist/collection/components/nv-table/nv-table.js +2 -2
- package/dist/collection/components/nv-tablebody/nv-tablebody.js +1 -1
- package/dist/collection/components/nv-tablecolumn/nv-tablecolumn.js +1 -1
- package/dist/collection/components/nv-tabledatacell/nv-tabledatacell.js +1 -1
- package/dist/collection/components/nv-tablehead/nv-tablehead.js +1 -1
- package/dist/collection/components/nv-tablerow/nv-tablerow.js +1 -1
- package/dist/collection/components/nv-tooltip/nv-tooltip.js +31 -4
- package/dist/collection/components/nv-tooltip/nv-tooltip.js.map +1 -1
- package/dist/collection/dev/dev-components.js +1 -1
- package/dist/collection/dev/dev-components.js.map +1 -1
- package/dist/collection/templates/navigation.docs.js +13 -0
- package/dist/collection/templates/navigation.docs.js.map +1 -0
- package/dist/collection/utils/constants.js +5 -0
- package/dist/collection/utils/constants.js.map +1 -1
- package/dist/components/index.js +4 -4
- package/dist/components/nv-alert.js +4 -4
- package/dist/components/nv-avatar.js +5 -5
- package/dist/components/nv-avatar.js.map +1 -1
- package/dist/components/nv-badge.js +5 -5
- package/dist/components/nv-badge.js.map +1 -1
- package/dist/components/nv-base.js +2 -3
- package/dist/components/nv-base.js.map +1 -1
- package/dist/components/nv-breadcrumb.d.ts +11 -0
- package/dist/components/nv-breadcrumb.js +83 -0
- package/dist/components/nv-breadcrumb.js.map +1 -0
- package/dist/components/nv-breadcrumbs.d.ts +11 -0
- package/dist/components/nv-breadcrumbs.js +37 -0
- package/dist/components/nv-breadcrumbs.js.map +1 -0
- package/dist/components/nv-button.js +5 -5
- package/dist/components/nv-button.js.map +1 -1
- package/dist/components/nv-col.js +2 -2
- package/dist/components/nv-datagrid.js +4 -4
- package/dist/components/nv-datagrid.js.map +1 -1
- package/dist/components/nv-datagridbody.js +2 -2
- package/dist/components/nv-datagridcolumn.js +2 -2
- package/dist/components/nv-datagriddatacell.js +2 -2
- package/dist/components/nv-datagridhead.js +2 -2
- package/dist/components/nv-datagridrow.js +2 -2
- package/dist/components/nv-fieldcheckbox.js +5 -5
- package/dist/components/nv-fielddropdown.js +69 -30
- package/dist/components/nv-fielddropdown.js.map +1 -1
- package/dist/components/nv-fielddropdownitem.js +1 -1
- package/dist/components/nv-fieldnumber.js +5 -5
- package/dist/components/nv-fieldpassword.js +7 -7
- package/dist/components/nv-fieldpassword.js.map +1 -1
- package/dist/components/nv-fieldradio.js +4 -4
- package/dist/components/nv-fieldselect.js +11 -11
- package/dist/components/nv-fieldselect.js.map +1 -1
- package/dist/components/nv-fieldtext.js +5 -5
- package/dist/components/nv-fieldtext.js.map +1 -1
- package/dist/components/nv-fieldtextarea.js +48 -45
- package/dist/components/nv-fieldtextarea.js.map +1 -1
- package/dist/components/nv-fieldtoggle.js +3 -3
- package/dist/components/nv-icon.js +1 -1
- package/dist/components/nv-iconbutton.js +1 -1
- package/dist/components/nv-loader.js +1 -1
- package/dist/components/nv-menu.js +9 -46
- package/dist/components/nv-menu.js.map +1 -1
- package/dist/components/nv-menuitem.js +34 -6
- package/dist/components/nv-menuitem.js.map +1 -1
- package/dist/components/nv-popover.js +1 -1
- package/dist/components/nv-row.js +2 -2
- package/dist/components/nv-stack.js +2 -2
- package/dist/components/nv-table.js +3 -3
- package/dist/components/nv-tablebody.js +2 -2
- package/dist/components/nv-tablecolumn.js +2 -2
- package/dist/components/nv-tabledatacell.js +2 -2
- package/dist/components/nv-tablehead.js +2 -2
- package/dist/components/nv-tablerow.js +2 -2
- package/dist/components/nv-tooltip.js +1 -63
- package/dist/components/nv-tooltip.js.map +1 -1
- package/dist/components/{p-ca5c171f.js → p-09a2a880.js} +4 -4
- package/dist/components/{p-ca5c171f.js.map → p-09a2a880.js.map} +1 -1
- package/dist/components/{p-f0d5586a.js → p-0cdf2cc7.js} +6 -6
- package/dist/components/p-0cdf2cc7.js.map +1 -0
- package/dist/components/{p-c08a278d.js → p-3a65a05e.js} +6 -2
- package/dist/components/p-3a65a05e.js.map +1 -0
- package/dist/components/{p-0caa4741.js → p-3b209e94.js} +17 -3
- package/dist/components/{p-c08a278d.js.map → p-3b209e94.js.map} +1 -1
- package/dist/{esm/constants-e9bee611.js → components/p-74407727.js} +7 -1
- package/dist/components/p-74407727.js.map +1 -0
- package/dist/components/{p-39e93e5b.js → p-a61d9ce8.js} +4 -4
- package/dist/{native/p-d4277c50.entry.js.map → components/p-a61d9ce8.js.map} +1 -1
- package/dist/components/{p-3ef4ded9.js → p-b7462fc2.js} +3 -3
- package/dist/components/{p-3ef4ded9.js.map → p-b7462fc2.js.map} +1 -1
- package/dist/components/{p-1fa35ae5.js → p-ce67d70c.js} +23 -9
- package/dist/components/p-ce67d70c.js.map +1 -0
- package/dist/components/p-e7131c30.js +69 -0
- package/dist/components/p-e7131c30.js.map +1 -0
- package/dist/docs.json +377 -143
- package/dist/esm/{app-globals-c5484a00.js → app-globals-246d6b7c.js} +2 -2
- package/dist/esm/app-globals-246d6b7c.js.map +1 -0
- package/dist/{components/p-a15ddd42.js → esm/constants-7b642e1d.js} +7 -1
- package/dist/esm/constants-7b642e1d.js.map +1 -0
- package/dist/esm/{index-b6f70e4a.js → index-cd557d0a.js} +22 -10
- package/dist/esm/index-cd557d0a.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +4 -4
- package/dist/esm/native.js +4 -4
- package/dist/esm/nv-alert.entry.js +3 -3
- package/dist/esm/nv-avatar.entry.js +4 -4
- package/dist/esm/nv-avatar.entry.js.map +1 -1
- package/dist/esm/nv-badge.entry.js +4 -4
- package/dist/esm/nv-badge.entry.js.map +1 -1
- package/dist/esm/nv-base.entry.js +2 -3
- package/dist/esm/nv-base.entry.js.map +1 -1
- package/dist/esm/nv-breadcrumb.entry.js +43 -0
- package/dist/esm/nv-breadcrumb.entry.js.map +1 -0
- package/dist/esm/nv-breadcrumbs.entry.js +19 -0
- package/dist/esm/nv-breadcrumbs.entry.js.map +1 -0
- package/dist/esm/nv-button.entry.js +4 -4
- package/dist/esm/nv-button.entry.js.map +1 -1
- package/dist/esm/nv-col.entry.js +2 -2
- package/dist/esm/nv-datagrid.entry.js +4 -4
- package/dist/esm/nv-datagrid.entry.js.map +1 -1
- package/dist/esm/nv-datagridbody.entry.js +2 -2
- package/dist/esm/nv-datagridcolumn.entry.js +2 -2
- package/dist/esm/nv-datagriddatacell.entry.js +2 -2
- package/dist/esm/nv-datagridhead.entry.js +2 -2
- package/dist/esm/nv-datagridrow.entry.js +2 -2
- package/dist/esm/nv-fieldcheckbox.entry.js +5 -5
- package/dist/esm/nv-fielddropdown.entry.js +64 -25
- package/dist/esm/nv-fielddropdown.entry.js.map +1 -1
- package/dist/esm/nv-fielddropdownitem.entry.js +2 -2
- package/dist/esm/nv-fieldnumber.entry.js +4 -4
- package/dist/esm/nv-fieldpassword.entry.js +4 -4
- package/dist/esm/nv-fieldpassword.entry.js.map +1 -1
- package/dist/esm/nv-fieldradio.entry.js +4 -4
- package/dist/esm/nv-fieldselect.entry.js +9 -9
- package/dist/esm/nv-fieldselect.entry.js.map +1 -1
- package/dist/esm/nv-fieldtext.entry.js +4 -4
- package/dist/esm/nv-fieldtext.entry.js.map +1 -1
- package/dist/esm/nv-fieldtextarea.entry.js +46 -44
- package/dist/esm/nv-fieldtextarea.entry.js.map +1 -1
- package/dist/esm/nv-fieldtoggle.entry.js +3 -3
- package/dist/esm/nv-icon.entry.js +3 -3
- package/dist/esm/nv-icon.entry.js.map +1 -1
- package/dist/esm/nv-iconbutton.entry.js +3 -3
- package/dist/esm/nv-iconbutton.entry.js.map +1 -1
- package/dist/esm/nv-loader.entry.js +2 -2
- package/dist/esm/nv-menu.entry.js +7 -44
- package/dist/esm/nv-menu.entry.js.map +1 -1
- package/dist/esm/nv-menuitem.entry.js +30 -3
- package/dist/esm/nv-menuitem.entry.js.map +1 -1
- package/dist/esm/nv-popover.entry.js +22 -8
- package/dist/esm/nv-popover.entry.js.map +1 -1
- package/dist/esm/nv-row.entry.js +2 -2
- package/dist/esm/nv-stack.entry.js +2 -2
- package/dist/esm/nv-table.entry.js +3 -3
- package/dist/esm/nv-tablebody.entry.js +2 -2
- package/dist/esm/nv-tablecolumn.entry.js +2 -2
- package/dist/esm/nv-tabledatacell.entry.js +2 -2
- package/dist/esm/nv-tablehead.entry.js +2 -2
- package/dist/esm/nv-tablerow.entry.js +2 -2
- package/dist/esm/nv-tooltip.entry.js +6 -5
- package/dist/esm/nv-tooltip.entry.js.map +1 -1
- package/dist/native/index.esm.js +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-0710efd7.entry.js +2 -0
- package/dist/native/p-0710efd7.entry.js.map +1 -0
- package/dist/native/p-0f9262ed.entry.js +2 -0
- package/dist/native/{p-dacd68ab.entry.js → p-10a06059.entry.js} +2 -2
- package/dist/native/p-10a06059.entry.js.map +1 -0
- package/dist/native/p-132b8588.entry.js +2 -0
- package/dist/native/{p-c5e3e234.entry.js.map → p-132b8588.entry.js.map} +1 -1
- package/dist/native/p-2063c768.entry.js +2 -0
- package/dist/native/p-2063c768.entry.js.map +1 -0
- package/dist/native/p-2ac838b8.entry.js +2 -0
- package/dist/native/p-2ac838b8.entry.js.map +1 -0
- package/dist/native/p-38d3eee3.js +2 -0
- package/dist/native/p-38d3eee3.js.map +1 -0
- package/dist/native/{p-d4277c50.entry.js → p-3e9521a0.entry.js} +2 -2
- package/dist/native/p-3e9521a0.entry.js.map +1 -0
- package/dist/native/{p-11faaf31.entry.js → p-40f4828a.entry.js} +2 -2
- package/dist/native/p-44cc8b59.entry.js +2 -0
- package/dist/native/p-44cc8b59.entry.js.map +1 -0
- package/dist/native/p-45aa0c68.entry.js +2 -0
- package/dist/native/p-45aa0c68.entry.js.map +1 -0
- package/dist/native/p-4f30312d.entry.js +2 -0
- package/dist/native/p-4f30312d.entry.js.map +1 -0
- package/dist/native/p-52a7f936.entry.js +2 -0
- package/dist/native/{p-50c31094.entry.js → p-5d0dc7c8.entry.js} +2 -2
- package/dist/native/p-5d67a825.entry.js +2 -0
- package/dist/native/{p-47c78fe4.entry.js.map → p-5d67a825.entry.js.map} +1 -1
- package/dist/native/p-5e467b49.entry.js +2 -0
- package/dist/native/p-6c1b9c89.entry.js +2 -0
- package/dist/native/{p-b3ec71c9.entry.js.map → p-6c1b9c89.entry.js.map} +1 -1
- package/dist/native/p-74407727.js +2 -0
- package/dist/native/p-74407727.js.map +1 -0
- package/dist/native/{p-df6c9137.entry.js → p-74778f5f.entry.js} +2 -2
- package/dist/native/p-87b93cc2.entry.js +2 -0
- package/dist/native/p-8f0984b0.entry.js +2 -0
- package/dist/native/p-8f0984b0.entry.js.map +1 -0
- package/dist/native/p-907c3eda.entry.js +2 -0
- package/dist/native/p-91d4b4d7.entry.js +2 -0
- package/dist/native/{p-9f89229b.entry.js → p-9341cf9d.entry.js} +2 -2
- package/dist/native/{p-6ef216c4.js → p-9b093b92.js} +3 -3
- package/dist/native/p-9b093b92.js.map +1 -0
- package/dist/native/{p-31367928.entry.js → p-9cef006d.entry.js} +2 -2
- package/dist/native/{p-01262eaf.entry.js → p-a9b6461b.entry.js} +2 -2
- package/dist/native/p-a9b6461b.entry.js.map +1 -0
- package/dist/native/{p-a89f5542.entry.js → p-b902c7c0.entry.js} +2 -2
- package/dist/native/p-bbc45099.entry.js +2 -0
- package/dist/native/{p-919cf3ec.entry.js → p-c59e3500.entry.js} +2 -2
- package/dist/native/{p-4a64f5b0.entry.js → p-d0f83d1f.entry.js} +2 -2
- package/dist/native/{p-4a64f5b0.entry.js.map → p-d0f83d1f.entry.js.map} +1 -1
- package/dist/native/p-e390557d.entry.js +2 -0
- package/dist/native/p-e390557d.entry.js.map +1 -0
- package/dist/native/p-e56d3715.entry.js +2 -0
- package/dist/native/p-e56d3715.entry.js.map +1 -0
- package/dist/native/{p-e05b0c4a.entry.js → p-e5fbe545.entry.js} +2 -2
- package/dist/native/p-eade52d4.entry.js +2 -0
- package/dist/native/p-eade52d4.entry.js.map +1 -0
- package/dist/native/p-eda8cd9d.entry.js +2 -0
- package/dist/native/p-ee78addb.entry.js +2 -0
- package/dist/native/p-ee78addb.entry.js.map +1 -0
- package/dist/native/p-f1545844.entry.js +2 -0
- package/dist/native/p-f1545844.entry.js.map +1 -0
- package/dist/native/{p-6eb50254.entry.js → p-f2ea8aa9.entry.js} +2 -2
- package/dist/native/{p-6eb50254.entry.js.map → p-f2ea8aa9.entry.js.map} +1 -1
- package/dist/native/p-f42e87b5.entry.js +2 -0
- package/dist/native/{p-0bf2007c.entry.js → p-f4ecacf6.entry.js} +2 -2
- package/dist/native/{p-c85d031d.entry.js → p-f7db0785.entry.js} +3 -3
- package/dist/native/{p-c85d031d.entry.js.map → p-f7db0785.entry.js.map} +1 -1
- package/dist/types/components/nv-base/nv-base.docs.d.ts +1 -1
- package/dist/types/components/nv-breadcrumb/nv-breadcrumb.d.ts +30 -0
- package/dist/types/components/nv-breadcrumb/nv-breadcrumb.docs.d.ts +4 -0
- package/dist/types/components/nv-breadcrumbs/nv-breadcrumbs.d.ts +6 -0
- package/dist/types/components/nv-breadcrumbs/nv-breadcrumbs.docs.d.ts +4 -0
- package/dist/types/components/nv-fielddropdown/nv-fielddropdown.d.ts +4 -1
- package/dist/types/components/nv-fieldpassword/nv-fieldpassword.d.ts +1 -1
- package/dist/types/components/nv-fieldselect/nv-fieldselect.d.ts +1 -1
- package/dist/types/components/nv-fieldtext/nv-fieldtext.d.ts +1 -1
- package/dist/types/components/nv-fieldtextarea/nv-fieldtextarea.d.ts +5 -9
- package/dist/types/components/nv-iconbutton/nv-iconbutton.d.ts +2 -2
- package/dist/types/components/nv-menu/nv-menu.d.ts +4 -5
- package/dist/types/components/nv-menuitem/nv-menuitem.d.ts +25 -1
- package/dist/types/components/nv-popover/nv-popover.d.ts +7 -0
- package/dist/types/components/nv-tooltip/nv-tooltip.d.ts +6 -1
- package/dist/types/components.d.ts +97 -17
- package/dist/types/nova-docs.d.ts +46 -24
- package/dist/types/templates/navigation.docs.d.ts +3 -0
- package/dist/types/utils/constants.d.ts +4 -0
- package/dist/vscode-data.json +113 -72
- package/hydrate/index.js +322 -188
- package/hydrate/index.mjs +322 -188
- package/package.json +17 -15
- package/dist/cjs/app-globals-69764290.js.map +0 -1
- package/dist/cjs/constants-33057c89.js.map +0 -1
- package/dist/cjs/index-72b8a9ad.js.map +0 -1
- package/dist/collection/components/nv-icon/test/nv-icon.test.js +0 -25
- package/dist/collection/components/nv-icon/test/nv-icon.test.js.map +0 -1
- package/dist/components/p-0caa4741.js.map +0 -1
- package/dist/components/p-1fa35ae5.js.map +0 -1
- package/dist/components/p-39e93e5b.js.map +0 -1
- package/dist/components/p-a15ddd42.js.map +0 -1
- package/dist/components/p-f0d5586a.js.map +0 -1
- package/dist/esm/app-globals-c5484a00.js.map +0 -1
- package/dist/esm/constants-e9bee611.js.map +0 -1
- package/dist/esm/index-b6f70e4a.js.map +0 -1
- package/dist/native/p-01262eaf.entry.js.map +0 -1
- package/dist/native/p-17dba26d.entry.js +0 -2
- package/dist/native/p-2a6ca749.entry.js +0 -2
- package/dist/native/p-2a6ca749.entry.js.map +0 -1
- package/dist/native/p-327fa1a0.entry.js +0 -2
- package/dist/native/p-380bcc2b.entry.js +0 -2
- package/dist/native/p-380bcc2b.entry.js.map +0 -1
- package/dist/native/p-47c78fe4.entry.js +0 -2
- package/dist/native/p-605f8b3d.entry.js +0 -2
- package/dist/native/p-605f8b3d.entry.js.map +0 -1
- package/dist/native/p-64ae9a21.entry.js +0 -2
- package/dist/native/p-64ae9a21.entry.js.map +0 -1
- package/dist/native/p-6e8bcd5b.entry.js +0 -2
- package/dist/native/p-6e8bcd5b.entry.js.map +0 -1
- package/dist/native/p-6ef216c4.js.map +0 -1
- package/dist/native/p-7701e4cc.entry.js +0 -2
- package/dist/native/p-7701e4cc.entry.js.map +0 -1
- package/dist/native/p-86947929.entry.js +0 -2
- package/dist/native/p-8f95f4fa.entry.js +0 -2
- package/dist/native/p-93eea6e1.entry.js +0 -2
- package/dist/native/p-95714583.js +0 -2
- package/dist/native/p-95714583.js.map +0 -1
- package/dist/native/p-9fe47948.entry.js +0 -2
- package/dist/native/p-9fe47948.entry.js.map +0 -1
- package/dist/native/p-a15ddd42.js +0 -2
- package/dist/native/p-a15ddd42.js.map +0 -1
- package/dist/native/p-afbc5259.entry.js +0 -2
- package/dist/native/p-afbc5259.entry.js.map +0 -1
- package/dist/native/p-b3ec71c9.entry.js +0 -2
- package/dist/native/p-bbe9a373.entry.js +0 -2
- package/dist/native/p-c2dfee1a.entry.js +0 -2
- package/dist/native/p-c5e3e234.entry.js +0 -2
- package/dist/native/p-dacd68ab.entry.js.map +0 -1
- package/dist/native/p-de9d0b05.entry.js +0 -2
- package/dist/native/p-de9d0b05.entry.js.map +0 -1
- package/dist/native/p-e71fc762.entry.js +0 -2
- package/dist/native/p-e71fc762.entry.js.map +0 -1
- package/dist/native/p-ef7f605a.entry.js +0 -2
- package/dist/native/p-f2e31579.entry.js +0 -2
- package/dist/types/components/nv-icon/test/nv-icon.test.d.ts +0 -1
- /package/dist/native/{p-bbe9a373.entry.js.map → p-0f9262ed.entry.js.map} +0 -0
- /package/dist/native/{p-11faaf31.entry.js.map → p-40f4828a.entry.js.map} +0 -0
- /package/dist/native/{p-f2e31579.entry.js.map → p-52a7f936.entry.js.map} +0 -0
- /package/dist/native/{p-50c31094.entry.js.map → p-5d0dc7c8.entry.js.map} +0 -0
- /package/dist/native/{p-86947929.entry.js.map → p-5e467b49.entry.js.map} +0 -0
- /package/dist/native/{p-df6c9137.entry.js.map → p-74778f5f.entry.js.map} +0 -0
- /package/dist/native/{p-ef7f605a.entry.js.map → p-87b93cc2.entry.js.map} +0 -0
- /package/dist/native/{p-17dba26d.entry.js.map → p-907c3eda.entry.js.map} +0 -0
- /package/dist/native/{p-8f95f4fa.entry.js.map → p-91d4b4d7.entry.js.map} +0 -0
- /package/dist/native/{p-9f89229b.entry.js.map → p-9341cf9d.entry.js.map} +0 -0
- /package/dist/native/{p-31367928.entry.js.map → p-9cef006d.entry.js.map} +0 -0
- /package/dist/native/{p-a89f5542.entry.js.map → p-b902c7c0.entry.js.map} +0 -0
- /package/dist/native/{p-327fa1a0.entry.js.map → p-bbc45099.entry.js.map} +0 -0
- /package/dist/native/{p-919cf3ec.entry.js.map → p-c59e3500.entry.js.map} +0 -0
- /package/dist/native/{p-e05b0c4a.entry.js.map → p-e5fbe545.entry.js.map} +0 -0
- /package/dist/native/{p-93eea6e1.entry.js.map → p-eda8cd9d.entry.js.map} +0 -0
- /package/dist/native/{p-c2dfee1a.entry.js.map → p-f42e87b5.entry.js.map} +0 -0
- /package/dist/native/{p-0bf2007c.entry.js.map → p-f4ecacf6.entry.js.map} +0 -0
package/hydrate/index.mjs
CHANGED
|
@@ -124,7 +124,7 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
|
|
|
124
124
|
|
|
125
125
|
|
|
126
126
|
const NAMESPACE = 'native';
|
|
127
|
-
const BUILD = /* native */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate:
|
|
127
|
+
const BUILD = /* native */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: true, connectedCallback: true, constructableCSS: false, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: true, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: true, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: true, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, shadowDomShim: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
128
128
|
|
|
129
129
|
// Prevents the dev components from being bundled in production as a component
|
|
130
130
|
if (Build.isDev) {
|
|
@@ -1439,6 +1439,10 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1439
1439
|
{
|
|
1440
1440
|
maybePromise = safeCall(instance, "componentWillLoad");
|
|
1441
1441
|
}
|
|
1442
|
+
} else {
|
|
1443
|
+
{
|
|
1444
|
+
maybePromise = safeCall(instance, "componentWillUpdate");
|
|
1445
|
+
}
|
|
1442
1446
|
}
|
|
1443
1447
|
{
|
|
1444
1448
|
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
|
|
@@ -2559,7 +2563,7 @@ function v4(options, buf, offset) {
|
|
|
2559
2563
|
return unsafeStringify(rnds);
|
|
2560
2564
|
}
|
|
2561
2565
|
|
|
2562
|
-
const nvFielddropdownCss = "nv-fielddropdown{--nv-field-border-default:var(--components-form-field-border-default);--nv-field-border-hover:var(--components-form-field-border-hover);--nv-field-border-focus:var(--components-form-field-border-focus);--nv-field-border-disabled:var(--components-form-field-border-default);--nv-field-border-readonly:var(--components-form-field-border-default);--nv-field-focus-box-shadow:var(--color-focus-brand);--nv-field-background:var(--components-form-field-background-default);display:flex;flex-direction:column;align-items:flex-start;gap:var(--form-gap-y);box-sizing:border-box}nv-fielddropdown[readonly]:not([readonly=false]){--nv-field-border-default:var(--components-form-field-border-readonly);--nv-field-border-hover:var(--nv-field-border-default);--nv-field-border-focus:var(--components-form-field-border-focus);--nv-field-border-disabled:var(--nv-field-border-default);--nv-field-border-readonly:var(--nv-field-border-default);--nv-field-background:var(--components-form-field-background-readonly)}nv-fielddropdown[error]:not([error=false]){--nv-field-border-default:var(--components-form-field-border-error);--nv-field-border-hover:var(--nv-field-border-default);--nv-field-border-focus:var(--nv-field-border-default);--nv-field-border-disabled:var(--nv-field-border-default);--nv-field-border-readonly:var(--nv-field-border-default);--nv-field-focus-box-shadow:var(--color-focus-destructive)}nv-fielddropdown[required]:not([required=false]) label::after{content:\"*\";color:var(--components-form-text-required);font-weight:700}nv-fielddropdown label{display:flex;align-items:center;gap:var(--form-label-gap);align-self:stretch;color:var(--components-form-text-label-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-label-font-size);font-style:normal;font-weight:500;line-height:var(--form-label-line-height)}nv-fielddropdown nv-popover{width:100
|
|
2566
|
+
const nvFielddropdownCss = "nv-fielddropdown{--nv-field-border-default:var(--components-form-field-border-default);--nv-field-border-hover:var(--components-form-field-border-hover);--nv-field-border-focus:var(--components-form-field-border-focus);--nv-field-border-disabled:var(--components-form-field-border-default);--nv-field-border-readonly:var(--components-form-field-border-default);--nv-field-focus-box-shadow:var(--color-focus-brand);--nv-field-background:var(--components-form-field-background-default);display:flex;flex-direction:column;align-items:flex-start;gap:var(--form-gap-y);box-sizing:border-box}nv-fielddropdown[readonly]:not([readonly=false]){--nv-field-border-default:var(--components-form-field-border-readonly);--nv-field-border-hover:var(--nv-field-border-default);--nv-field-border-focus:var(--components-form-field-border-focus);--nv-field-border-disabled:var(--nv-field-border-default);--nv-field-border-readonly:var(--nv-field-border-default);--nv-field-background:var(--components-form-field-background-readonly)}nv-fielddropdown[error]:not([error=false]){--nv-field-border-default:var(--components-form-field-border-error);--nv-field-border-hover:var(--nv-field-border-default);--nv-field-border-focus:var(--nv-field-border-default);--nv-field-border-disabled:var(--nv-field-border-default);--nv-field-border-readonly:var(--nv-field-border-default);--nv-field-focus-box-shadow:var(--color-focus-destructive)}nv-fielddropdown[required]:not([required=false]) label::after{content:\"*\";color:var(--components-form-text-required);font-weight:700}nv-fielddropdown label{display:flex;align-items:center;gap:var(--form-label-gap);align-self:stretch;color:var(--components-form-text-label-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-label-font-size);font-style:normal;font-weight:500;line-height:var(--form-label-line-height)}nv-fielddropdown nv-popover{width:100%;display:block}nv-fielddropdown nv-popover [data-scope=popover]{padding:var(--list-custom-padding);background-color:var(--components-list-custom-background);border:1px solid var(--components-list-custom-border);width:100%}nv-fielddropdown nv-popover [data-scope=popover] hr{color:var(--components-list-custom-separator)}nv-fielddropdown nv-popover [slot=content]{gap:var(--list-custom-gap-y);display:flex;flex-direction:column}nv-fielddropdown .input-wrapper{display:flex;flex-wrap:wrap;gap:var(--form-gap-x);align-items:stretch;align-self:stretch;width:100%}nv-fielddropdown .input-container{display:flex;flex-grow:1;padding:calc(var(--form-field-padding-y) - 1px) var(--form-field-padding-x);justify-content:center;align-items:center;gap:var(--form-field-gap);align-self:stretch;border-radius:var(--form-field-radius);border-width:1px;border-style:solid;border-color:var(--nv-field-border-default);opacity:var(--components-form-opacity-default);background:var(--nv-field-background);transition:all 150ms ease-out;display:flex;align-items:center;position:relative;width:100%;min-height:40px}nv-fielddropdown .input-container:hover{border-color:var(--nv-field-border-hover)}nv-fielddropdown .input-container:focus-within{border-color:var(--nv-field-border-focus);box-shadow:0px 0px 0px var(--focus-field-stroke) var(--nv-field-focus-box-shadow)}nv-fielddropdown .input-container:has(input:read-only){opacity:0.5;background-color:var(--components-form-field-background-readonly);border-color:var(--nv-field-border-readonly)}nv-fielddropdown .input-container:has(input:disabled){opacity:0.5;background-color:var(--components-form-field-background-disabled);border-color:var(--nv-field-border-disabled)}nv-fielddropdown .input-container input,nv-fielddropdown .input-container p.non-filterable-text{display:flex;align-items:center;flex:1 0 0;overflow:hidden;background-color:transparent;color:var(--components-form-field-content-text);text-overflow:ellipsis;font-size:var(--form-field-font-size);font-style:normal;font-weight:500;line-height:var(--form-field-line-height);width:100%;padding-right:2rem;flex-grow:1;margin:0;min-height:100%;box-sizing:border-box}nv-fielddropdown .input-container input:focus,nv-fielddropdown .input-container p.non-filterable-text:focus{outline:none}nv-fielddropdown .input-container input::placeholder,nv-fielddropdown .input-container p.non-filterable-text::placeholder{overflow:hidden;color:var(--components-form-field-content-placeholder);text-overflow:ellipsis;font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-field-font-size);font-style:normal;font-weight:400;line-height:var(--form-field-line-height)}nv-fielddropdown .input-container .toggle-dropdown-icon{position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:2}nv-fielddropdown .input-container nv-icon.validation{color:var(--nv-field-border-default);position:absolute;right:50px}nv-fielddropdown .input-container.focus-within,nv-fielddropdown .input-container:hover{border-color:var(--nv-field-border-focus);box-shadow:0px 0px 0px var(--focus-field-stroke) var(--nv-field-focus-box-shadow)}nv-fielddropdown .non-filterable-text{display:block;border-radius:var(--form-field-radius);background-color:var(--nv-field-background);color:var(--components-form-field-content-text);font-size:var(--form-field-font-size);font-weight:500;line-height:var(--form-field-line-height);box-sizing:border-box;cursor:pointer;height:100%;min-height:40px}nv-fielddropdown .non-filterable-text span{display:inline-block;width:100%;overflow:hidden;text-overflow:ellipsis}nv-fielddropdown .description{align-self:stretch;color:var(--components-form-text-description-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-description-font-size);font-style:normal;line-height:var(--form-description-line-height)}nv-fielddropdown .error-description{align-self:stretch;color:var(--components-form-text-description-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-description-font-size);font-style:normal;line-height:var(--form-description-line-height);color:var(--components-form-text-description-error)}nv-fielddropdown hr{border:none;height:1px;background-color:var(--components-list-custom-separator);margin:0}.input-container.focus-within,.input-container:hover{border-color:var(--nv-field-border-focus);box-shadow:0px 0px 0px var(--focus-field-stroke) var(--nv-field-focus-box-shadow)}";
|
|
2563
2567
|
var NvFielddropdownStyle0 = nvFielddropdownCss;
|
|
2564
2568
|
|
|
2565
2569
|
/**
|
|
@@ -2746,28 +2750,39 @@ class NVFieldDropDown {
|
|
|
2746
2750
|
this.isFilterable = newValue;
|
|
2747
2751
|
this.filterable = newValue;
|
|
2748
2752
|
}
|
|
2749
|
-
watchValueHandler() {
|
|
2750
|
-
|
|
2751
|
-
|
|
2753
|
+
watchValueHandler(newValue) {
|
|
2754
|
+
if (newValue) {
|
|
2755
|
+
this.updateSelectedItem(newValue);
|
|
2756
|
+
}
|
|
2752
2757
|
}
|
|
2753
2758
|
//#endregion EVENTS
|
|
2754
2759
|
/****************************************************************************/
|
|
2755
2760
|
//#region METHODS
|
|
2761
|
+
componentWillLoad() {
|
|
2762
|
+
if (this.value) {
|
|
2763
|
+
// If an initial value exists, set it as selected
|
|
2764
|
+
this.updateSelectedItem(this.value);
|
|
2765
|
+
}
|
|
2766
|
+
}
|
|
2767
|
+
componentDidLoad() {
|
|
2768
|
+
document.addEventListener('click', this.handleClickOutside.bind(this));
|
|
2769
|
+
// Check again after complete rendering
|
|
2770
|
+
if (this.value) {
|
|
2771
|
+
this.updateSelectedItem(this.value);
|
|
2772
|
+
}
|
|
2773
|
+
}
|
|
2756
2774
|
/**
|
|
2757
2775
|
* Subscribe to click outside event.
|
|
2758
2776
|
*/
|
|
2759
2777
|
connectedCallback() {
|
|
2760
2778
|
document.addEventListener('click', this.handleClickOutside.bind(this));
|
|
2761
|
-
//
|
|
2779
|
+
// First, reset the filter to ensure all elements are visible
|
|
2780
|
+
this.resetFilter();
|
|
2781
|
+
// Then, handle the pre-selection
|
|
2762
2782
|
this.setInitialSelection();
|
|
2763
|
-
//
|
|
2764
|
-
if (this.filterable && this.
|
|
2765
|
-
this.
|
|
2766
|
-
this.filterItems(); // Update the visibility of items
|
|
2767
|
-
}
|
|
2768
|
-
else {
|
|
2769
|
-
// Ensure all items are visible if no filtering is applied
|
|
2770
|
-
this.resetFilter();
|
|
2783
|
+
// Finally, apply the filter if needed
|
|
2784
|
+
if (this.filterable && this.filterText) {
|
|
2785
|
+
this.filterItems();
|
|
2771
2786
|
}
|
|
2772
2787
|
}
|
|
2773
2788
|
/**
|
|
@@ -2782,16 +2797,13 @@ class NVFieldDropDown {
|
|
|
2782
2797
|
item.getAttribute('value') === this.value ||
|
|
2783
2798
|
((_a = item.textContent) === null || _a === void 0 ? void 0 : _a.trim()) === this.value;
|
|
2784
2799
|
});
|
|
2785
|
-
// Remove 'selected' from all items first to reset the state
|
|
2786
2800
|
items.forEach(item => {
|
|
2787
2801
|
item.removeAttribute('selected');
|
|
2788
2802
|
item.classList.remove('selected');
|
|
2789
2803
|
});
|
|
2790
2804
|
if (selectedItem) {
|
|
2791
|
-
// Add the `selected` attribute and `selected` class for visual styling
|
|
2792
2805
|
selectedItem.setAttribute('selected', 'true');
|
|
2793
2806
|
selectedItem.classList.add('selected');
|
|
2794
|
-
// Update the value and inputElement value to reflect the pre-selected item
|
|
2795
2807
|
this.value =
|
|
2796
2808
|
selectedItem.getAttribute('label') ||
|
|
2797
2809
|
selectedItem.getAttribute('value') ||
|
|
@@ -2801,6 +2813,9 @@ class NVFieldDropDown {
|
|
|
2801
2813
|
this.inputElement.value = this.value;
|
|
2802
2814
|
}
|
|
2803
2815
|
}
|
|
2816
|
+
else {
|
|
2817
|
+
console.warn('No matching item found for value:', this.value);
|
|
2818
|
+
}
|
|
2804
2819
|
}
|
|
2805
2820
|
/**
|
|
2806
2821
|
* Unsubscribe from click outside event.
|
|
@@ -2866,10 +2881,9 @@ class NVFieldDropDown {
|
|
|
2866
2881
|
handleClickOutside(event) {
|
|
2867
2882
|
if (this.el.contains(event.target) ||
|
|
2868
2883
|
(this.inputElement && this.inputElement.contains(event.target))) {
|
|
2869
|
-
// If the click is inside the component or on the input, do not close the popover
|
|
2870
2884
|
return;
|
|
2871
2885
|
}
|
|
2872
|
-
this.popoverElement.hide();
|
|
2886
|
+
this.popoverElement.hide();
|
|
2873
2887
|
}
|
|
2874
2888
|
handleKeyDown(event) {
|
|
2875
2889
|
if (!this.open) {
|
|
@@ -2925,9 +2939,6 @@ class NVFieldDropDown {
|
|
|
2925
2939
|
if (i === index) {
|
|
2926
2940
|
item.classList.add('highlighted');
|
|
2927
2941
|
item.setAttribute('tabindex', '0');
|
|
2928
|
-
if (!item.checkVisibility()) {
|
|
2929
|
-
console.log('Item not focused');
|
|
2930
|
-
}
|
|
2931
2942
|
item.focus(); // Forcer le focus ici
|
|
2932
2943
|
item.scrollIntoView({ block: 'nearest' });
|
|
2933
2944
|
}
|
|
@@ -2947,13 +2958,45 @@ class NVFieldDropDown {
|
|
|
2947
2958
|
console.warn('No first item found to focus');
|
|
2948
2959
|
}
|
|
2949
2960
|
}
|
|
2961
|
+
updateSelectedItem(value) {
|
|
2962
|
+
const items = Array.from(this.el.querySelectorAll('nv-fielddropdownitem'));
|
|
2963
|
+
// Reset all items
|
|
2964
|
+
items.forEach(item => {
|
|
2965
|
+
item.removeAttribute('selected');
|
|
2966
|
+
item.classList.remove('selected');
|
|
2967
|
+
});
|
|
2968
|
+
// Find the item matching the value
|
|
2969
|
+
const matchingItem = items.find(item => {
|
|
2970
|
+
var _a;
|
|
2971
|
+
const itemLabel = item.getAttribute('label');
|
|
2972
|
+
const itemValue = item.getAttribute('value');
|
|
2973
|
+
const itemText = (_a = item.textContent) === null || _a === void 0 ? void 0 : _a.trim();
|
|
2974
|
+
return itemLabel === value || itemValue === value || itemText === value;
|
|
2975
|
+
});
|
|
2976
|
+
if (matchingItem) {
|
|
2977
|
+
// Mark the item as selected
|
|
2978
|
+
matchingItem.setAttribute('selected', 'true');
|
|
2979
|
+
matchingItem.classList.add('selected');
|
|
2980
|
+
// Update the input
|
|
2981
|
+
if (this.inputElement) {
|
|
2982
|
+
this.inputElement.value = value;
|
|
2983
|
+
}
|
|
2984
|
+
// Emit the selection event
|
|
2985
|
+
this.dropdownItemSelected.emit({
|
|
2986
|
+
value: value,
|
|
2987
|
+
label: matchingItem.getAttribute('label') || value,
|
|
2988
|
+
selected: true,
|
|
2989
|
+
disabled: matchingItem.hasAttribute('disabled'),
|
|
2990
|
+
});
|
|
2991
|
+
}
|
|
2992
|
+
}
|
|
2950
2993
|
//#endregion METHODS
|
|
2951
2994
|
/****************************************************************************/
|
|
2952
2995
|
//#region RENDER
|
|
2953
2996
|
render() {
|
|
2954
|
-
return (hAsync(Host, { key: '
|
|
2955
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
2956
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
2997
|
+
return (hAsync(Host, { key: '2ff0476929b58734a50c303ebb6ad308f0c41602' }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '87756cac62747e76d851813426c4aa560b6a5a4e', htmlFor: this.inputId }, hAsync("slot", { key: 'ae2d7374b524274e86777639cd1ad5cbc5c57404', name: "label" }, this.label))), hAsync("nv-popover", { key: 'ed58d72aab9b23f25cd4ec8359ce7148a43fb22e', ref: el => (this.popoverElement = el), triggerMode: "controlled", placement: "bottom-start", open: this.open }, hAsync("div", { key: 'ae3e65b9274c56f012e9798f549ee62063879688', class: "input-wrapper", slot: "trigger" }, hAsync("slot", { key: '1fc77f160aebd9e21c8a79406ec1e829bd3c9265', name: "before-input" }), hAsync("div", { key: '7502dc9df91a3b91bf1bb448e9f3cbee9f356f80', class: "input-container", onClick: this.handleInputContainerClick }, hAsync("slot", { key: '50acd86050d4357c8e7af3c8464ad34cb73382ad', name: "leading-input" }), this.isFilterable || this.disabled || this.readonly ? (hAsync("input", { id: this.inputId, type: "search", ref: e => (this.inputElement = e), autocomplete: this.autocomplete, placeholder: this.placeholder, name: this.name, value: this.value, required: this.required, disabled: this.disabled, readOnly: this.readonly, onInput: this.handleInput, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, onKeyDown: this.handleKeyDown })) : (hAsync("p", { id: this.inputId, class: "non-filterable-text", onClick: this.handleInputContainerClick, tabIndex: 0, onKeyDown: this.handleKeyDown, onFocus: this.handleInputFocus }, hAsync("span", null, this.value || this.placeholder))), hAsync("nv-iconbutton", { key: '2f8c2773754656835583484e2fa7acc0fabcffb6', class: "toggle-dropdown-icon", name: this.open ? 'chevron-top' : 'chevron-down', size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide dropdown' : 'Show dropdown', "aria-pressed": this.open.toString(), onClick: this.togglePopover })), hAsync("slot", { key: '26d4de108aa80b931f03201adc7b2470dc9ed526', name: "after-input" })), hAsync("slot", { key: 'b9a39773f100d2579b2a9e568c19fabbbabbcefe', name: "content" })), (this.description ||
|
|
2998
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '220b815bc502ff4f18fe40471139efc808f6a31b', class: "description" }, hAsync("slot", { key: '6d0bfc07e3c5c5329d38e447f0c3a1974663e15b', name: "description" }, this.description))), (this.errorDescription ||
|
|
2999
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '0cc511a914c00de65ee9f0f2033e292b9123620c', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: 'f442db41fdde383abc0873bafbaabba8be1387b3', name: "error-description" }, this.errorDescription)))));
|
|
2957
3000
|
}
|
|
2958
3001
|
static get formAssociated() { return true; }
|
|
2959
3002
|
get el() { return getElement(this); }
|
|
@@ -3038,6 +3081,11 @@ var ButtonType;
|
|
|
3038
3081
|
ButtonType["Reset"] = "reset";
|
|
3039
3082
|
ButtonType["Button"] = "button";
|
|
3040
3083
|
})(ButtonType || (ButtonType = {}));
|
|
3084
|
+
var IconButtonShape;
|
|
3085
|
+
(function (IconButtonShape) {
|
|
3086
|
+
IconButtonShape["Square"] = "square";
|
|
3087
|
+
IconButtonShape["Rounded"] = "rounded";
|
|
3088
|
+
})(IconButtonShape || (IconButtonShape = {}));
|
|
3041
3089
|
var LoaderColors;
|
|
3042
3090
|
(function (LoaderColors) {
|
|
3043
3091
|
LoaderColors["High"] = "brand";
|
|
@@ -5301,7 +5349,7 @@ class NvAlert {
|
|
|
5301
5349
|
//#region RENDER
|
|
5302
5350
|
render() {
|
|
5303
5351
|
var _a;
|
|
5304
|
-
return (hAsync(Host, { key: '
|
|
5352
|
+
return (hAsync(Host, { key: 'e14c9a07c3127a8ac3b1881e055526b82a93ff83', role: "alert", class: clsx('root', `feedback-${this.feedback}`) }, hAsync("nv-icon", { key: 'c4aaf00e4b18891dd6053f1529f7a6267386c647', name: (_a = this.icon) !== null && _a !== void 0 ? _a : this.getDefaultIcon(), class: `icon-${this.feedback}`, size: "md" }), hAsync("div", { key: '9df1b181179cd21361bae2ae347a02dbe07cee63', class: "content" }, this.heading && hAsync("p", { key: '53a21fe4139260bd9aca34cefbb194024a3a1afb', class: "heading" }, this.heading), this.message && hAsync("p", { key: 'eb58482e492f4aff15ccb300f3e89c70544c66d9', class: "message" }, this.message), hAsync("slot", { key: '2762850b8d37f8c53447321a80f2d12d81c8b6f6' })), this.dismissible && (hAsync("button", { key: '8827d5cbffe2f3757111f09806672514c10f7942', class: "close", type: "button", onClick: this.handleDismiss }, hAsync("nv-icon", { key: '398ee6b8fc57eb994b30d7194ea69cd251ae5076', name: "x", size: "sm" })))));
|
|
5305
5353
|
}
|
|
5306
5354
|
get ref() { return getElement(this); }
|
|
5307
5355
|
static get watchers() { return {
|
|
@@ -5327,7 +5375,7 @@ class NvAlert {
|
|
|
5327
5375
|
}; }
|
|
5328
5376
|
}
|
|
5329
5377
|
|
|
5330
|
-
const nvAvatarCss = "nv-
|
|
5378
|
+
const nvAvatarCss = "nv-avatar{align-items:center !important;background-color:var(--components-avatar-background-1);border-radius:var(--radius-rounded-full) !important;display:flex !important;flex-shrink:0 !important;font-family:\"TT Norms Pro\", sans-serif;font-style:normal;font-weight:var(--font-weight-medium-emphasis);justify-content:center !important;leading-trim:both;line-height:1 !important;text-align:center;text-edge:cap;text-transform:uppercase}nv-avatar.avatar-color-1{background-color:var(--components-avatar-background-1);color:var(--components-avatar-content-1)}nv-avatar.avatar-color-2{background-color:var(--components-avatar-background-2);color:var(--components-avatar-content-2)}nv-avatar.avatar-color-3{background-color:var(--components-avatar-background-3);color:var(--components-avatar-content-3)}nv-avatar.avatar-color-4{background-color:var(--components-avatar-background-4);color:var(--components-avatar-content-4)}nv-avatar.avatar-color-5{background-color:var(--components-avatar-background-5);color:var(--components-avatar-content-5)}nv-avatar.avatar-color-6{background-color:var(--components-avatar-background-6);color:var(--components-avatar-content-6)}nv-avatar.avatar-color-7{background-color:var(--components-avatar-background-7);color:var(--components-avatar-content-7)}nv-avatar.avatar-color-8{background-color:var(--components-avatar-background-8);color:var(--components-avatar-content-8)}nv-avatar.avatar-color-9{background-color:var(--components-avatar-background-9);color:var(--components-avatar-content-9)}nv-avatar.avatar-color-10{background-color:var(--components-avatar-background-10);color:var(--components-avatar-content-10)}nv-avatar img{height:100%;width:100%;object-fit:cover;object-position:center;border-radius:50%}nv-avatar.avatar-xs{width:var(--avatar-xs-size);height:var(--avatar-xs-size);font-size:var(--avatar-xs-font-size);line-height:var(--avatar-xs-font-size)}nv-avatar.avatar-xs nv-icon>svg{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-avatar.avatar-sm{width:var(--avatar-sm-size);height:var(--avatar-sm-size);font-size:var(--avatar-sm-font-size);line-height:var(--avatar-sm-font-size)}nv-avatar.avatar-sm nv-icon>svg{width:var(--spacing-4);height:var(--spacing-4);stroke-width:1.5px}nv-avatar.avatar-md{width:var(--avatar-md-size);height:var(--avatar-md-size);font-size:var(--avatar-md-font-size);line-height:var(--avatar-md-font-size)}nv-avatar.avatar-md nv-icon>svg{width:var(--spacing-5);height:var(--spacing-5);stroke-width:1.6px}nv-avatar.avatar-lg{width:var(--avatar-lg-size);height:var(--avatar-lg-size);font-size:var(--avatar-lg-font-size);line-height:var(--avatar-lg-font-size)}nv-avatar.avatar-lg nv-icon>svg{width:var(--spacing-6);height:var(--spacing-6);stroke-width:1.8px}nv-avatar.avatar-xl{width:var(--avatar-xl-size);height:var(--avatar-xl-size);font-size:var(--avatar-xl-font-size);line-height:var(--avatar-xl-font-size)}nv-avatar.avatar-xl nv-icon>svg{width:var(--spacing-7);height:var(--spacing-7);stroke-width:1.9px}";
|
|
5331
5379
|
var NvAvatarStyle0 = nvAvatarCss;
|
|
5332
5380
|
|
|
5333
5381
|
/**
|
|
@@ -5384,7 +5432,7 @@ class NvAvatar {
|
|
|
5384
5432
|
/****************************************************************************/
|
|
5385
5433
|
//#region RENDER
|
|
5386
5434
|
render() {
|
|
5387
|
-
return (hAsync(Host, { key: '
|
|
5435
|
+
return (hAsync(Host, { key: '4543ac26e2c1d6d91de2c4671657e584486daefe', class: clsx(`avatar-${this.size}`, `avatar-color-${this.color}`), "aria-label": this.alt }, this.src ? (hAsync("img", { src: this.src, alt: this.alt })) : this.initials ? (this.trimInitials(this.initials)) : (hAsync("slot", { name: "icon" }, hAsync("nv-icon", { name: "user" })))));
|
|
5388
5436
|
}
|
|
5389
5437
|
static get style() { return NvAvatarStyle0; }
|
|
5390
5438
|
static get cmpMeta() { return {
|
|
@@ -5410,7 +5458,7 @@ class NvAvatar {
|
|
|
5410
5458
|
}; }
|
|
5411
5459
|
}
|
|
5412
5460
|
|
|
5413
|
-
const nvBadgeCss = "nv-
|
|
5461
|
+
const nvBadgeCss = "nv-badge{padding:var(--badge-padding-y) var(--badge-padding-x);display:inline-flex !important;vertical-align:middle;align-items:center;border-radius:var(--radius-rounded-full);height:fit-content;width:fit-content}nv-badge.with-gap{padding:var(--badge-padding-y) var(--badge-padding-x);display:inline-flex !important;vertical-align:middle;align-items:center;border-radius:var(--radius-rounded-full);height:fit-content;width:fit-content;gap:var(--badge-gap-x)}nv-badge:not(.with-gap){padding:var(--badge-padding-y) var(--badge-padding-x);display:inline-flex !important;vertical-align:middle;align-items:center;border-radius:var(--radius-rounded-full);height:fit-content;width:fit-content}nv-badge.badge-1{color:var(--color-rainbow-1-text);background-color:var(--color-rainbow-1-background)}nv-badge.badge-1 .close:focus,nv-badge.badge-1 .close:focus-within{outline:none}nv-badge.badge-1 .close:focus-visible,nv-badge.badge-1 .close:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-rainbow-1-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-1 nv-icon{color:var(--color-rainbow-1-icon)}nv-badge.badge-2{color:var(--color-rainbow-2-text);background-color:var(--color-rainbow-2-background)}nv-badge.badge-2 .close:focus,nv-badge.badge-2 .close:focus-within{outline:none}nv-badge.badge-2 .close:focus-visible,nv-badge.badge-2 .close:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-rainbow-2-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-2 nv-icon{color:var(--color-rainbow-2-icon)}nv-badge.badge-3{color:var(--color-rainbow-3-text);background-color:var(--color-rainbow-3-background)}nv-badge.badge-3 .close:focus,nv-badge.badge-3 .close:focus-within{outline:none}nv-badge.badge-3 .close:focus-visible,nv-badge.badge-3 .close:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-rainbow-3-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-3 nv-icon{color:var(--color-rainbow-3-icon)}nv-badge.badge-4{color:var(--color-rainbow-4-text);background-color:var(--color-rainbow-4-background)}nv-badge.badge-4 .close:focus,nv-badge.badge-4 .close:focus-within{outline:none}nv-badge.badge-4 .close:focus-visible,nv-badge.badge-4 .close:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-rainbow-4-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-4 nv-icon{color:var(--color-rainbow-4-icon)}nv-badge.badge-5{color:var(--color-rainbow-5-text);background-color:var(--color-rainbow-5-background)}nv-badge.badge-5 .close:focus,nv-badge.badge-5 .close:focus-within{outline:none}nv-badge.badge-5 .close:focus-visible,nv-badge.badge-5 .close:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-rainbow-5-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-5 nv-icon{color:var(--color-rainbow-5-icon)}nv-badge.badge-6{color:var(--color-rainbow-6-text);background-color:var(--color-rainbow-6-background)}nv-badge.badge-6 .close:focus,nv-badge.badge-6 .close:focus-within{outline:none}nv-badge.badge-6 .close:focus-visible,nv-badge.badge-6 .close:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-rainbow-6-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-6 nv-icon{color:var(--color-rainbow-6-icon)}nv-badge.badge-7{color:var(--color-rainbow-7-text);background-color:var(--color-rainbow-7-background)}nv-badge.badge-7 .close:focus,nv-badge.badge-7 .close:focus-within{outline:none}nv-badge.badge-7 .close:focus-visible,nv-badge.badge-7 .close:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-rainbow-7-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-7 nv-icon{color:var(--color-rainbow-7-icon)}nv-badge.badge-8{color:var(--color-rainbow-8-text);background-color:var(--color-rainbow-8-background)}nv-badge.badge-8 .close:focus,nv-badge.badge-8 .close:focus-within{outline:none}nv-badge.badge-8 .close:focus-visible,nv-badge.badge-8 .close:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-rainbow-8-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-8 nv-icon{color:var(--color-rainbow-8-icon)}nv-badge.badge-9{color:var(--color-rainbow-9-text);background-color:var(--color-rainbow-9-background)}nv-badge.badge-9 .close:focus,nv-badge.badge-9 .close:focus-within{outline:none}nv-badge.badge-9 .close:focus-visible,nv-badge.badge-9 .close:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-rainbow-9-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-9 nv-icon{color:var(--color-rainbow-9-icon)}nv-badge.badge-10{color:var(--color-rainbow-10-text);background-color:var(--color-rainbow-10-background)}nv-badge.badge-10 .close:focus,nv-badge.badge-10 .close:focus-within{outline:none}nv-badge.badge-10 .close:focus-visible,nv-badge.badge-10 .close:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-rainbow-10-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-10 nv-icon{color:var(--color-rainbow-10-icon)}nv-badge span{font-size:var(--font-size-xs);line-height:var(--line-height-xs) !important}nv-badge nv-icon>svg.icon-xs{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-badge nv-icon>svg.icon-sm{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-badge nv-icon>svg.icon-md{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-badge nv-icon>svg.icon-lg{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-badge nv-icon>svg.icon-xl{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-badge .close{padding:0;line-height:0;border:none;background:none;cursor:pointer;color:inherit;display:inline-flex;align-items:center;aspect-ratio:1/1;border-radius:var(--radius-rounded-full)}";
|
|
5414
5462
|
var NvBadgeStyle0 = nvBadgeCss;
|
|
5415
5463
|
|
|
5416
5464
|
/**
|
|
@@ -5531,11 +5579,11 @@ class NvBadge {
|
|
|
5531
5579
|
/****************************************************************************/
|
|
5532
5580
|
//#region RENDER
|
|
5533
5581
|
render() {
|
|
5534
|
-
return (hAsync(Host, { key: '
|
|
5582
|
+
return (hAsync(Host, { key: 'f0b9bf1d1a32c72f9d8176300d06875f0258f068', class: clsx(`badge-${this.color}`, {
|
|
5535
5583
|
'has-close': this.dismissible,
|
|
5536
5584
|
'with-gap': this.dismissible || this.label,
|
|
5537
5585
|
'visually-hidden': this._isHidden,
|
|
5538
|
-
}) }, hAsync("slot", { key: '
|
|
5586
|
+
}) }, hAsync("slot", { key: '967f6cceadd13f1a7758696b0ddb9b77d256caac', name: "leading-icon" }, this.leadIcon && (hAsync("nv-icon", { key: '683ccf19e6281ab8fded9e217f61a67d835a7b37', slot: "leading-icon", name: this.leadIcon, size: "sm" }))), this.label && hAsync("span", { key: 'e01b6071da8bdc73d7708e91c67afe9bc2819095' }, this.label), this.dismissible && (hAsync("button", { key: 'f8040e70acd910c63fa377837fc13316a321366c', onClick: this.handleClose, class: "close", type: "button" }, hAsync("nv-icon", { key: '405cee0cdcdab3a470086ccbd3aa5b46c5e0e2ea', name: "x", size: "sm" })))));
|
|
5539
5587
|
}
|
|
5540
5588
|
get ref() { return getElement(this); }
|
|
5541
5589
|
static get watchers() { return {
|
|
@@ -5586,7 +5634,6 @@ class NvBaseComponent {
|
|
|
5586
5634
|
}
|
|
5587
5635
|
componentDidLoad() {
|
|
5588
5636
|
this.mutationObserver = new MutationObserver(mutations => {
|
|
5589
|
-
console.log(mutations);
|
|
5590
5637
|
mutations.forEach(mutation => {
|
|
5591
5638
|
if (mutation.type === 'attributes') {
|
|
5592
5639
|
const target = mutation.target;
|
|
@@ -5630,7 +5677,7 @@ class NvBaseComponent {
|
|
|
5630
5677
|
/****************************************************************************/
|
|
5631
5678
|
//#region RENDER
|
|
5632
5679
|
render() {
|
|
5633
|
-
return (hAsync(Host, { key: '
|
|
5680
|
+
return (hAsync(Host, { key: '81da4e7fd653192079ab22a607d1f525b504f3e4', style: { display: 'block' } }, hAsync("slot", { key: 'e766e4b073b16d367c473b02c94448cf835a4921' })));
|
|
5634
5681
|
}
|
|
5635
5682
|
get el() { return getElement(this); }
|
|
5636
5683
|
static get cmpMeta() { return {
|
|
@@ -5643,7 +5690,83 @@ class NvBaseComponent {
|
|
|
5643
5690
|
}; }
|
|
5644
5691
|
}
|
|
5645
5692
|
|
|
5646
|
-
const
|
|
5693
|
+
const nvBreadcrumbCss = "nv-breadcrumb{display:flex;align-items:center;color:inherit;gap:var(--spacing-1)}nv-breadcrumb>a{display:inline-flex;align-self:center;color:inherit}nv-breadcrumb[current]:not([current=false]){color:var(--color-interaction-link-high-text)}";
|
|
5694
|
+
var NvBreadcrumbStyle0 = nvBreadcrumbCss;
|
|
5695
|
+
|
|
5696
|
+
/**
|
|
5697
|
+
* @slot default - Pass an icon, a link, or text to render the breadcrumb content.
|
|
5698
|
+
* @slot separator - The separator between breadcrumb items.
|
|
5699
|
+
*/
|
|
5700
|
+
class NvBreadcrumb {
|
|
5701
|
+
constructor(hostRef) {
|
|
5702
|
+
registerInstance(this, hostRef);
|
|
5703
|
+
/****************************************************************************/
|
|
5704
|
+
//#region PROPERTIES
|
|
5705
|
+
/**
|
|
5706
|
+
* The type of the breadcrumb. Use 'collapsed' to house multiple breadcrumbs
|
|
5707
|
+
* in a dropdown. Use default for a single item. When passing multiple items
|
|
5708
|
+
* as collapsed, make sure to wrap you links in list tags
|
|
5709
|
+
*/
|
|
5710
|
+
this.type = 'default';
|
|
5711
|
+
}
|
|
5712
|
+
//#endregion PROPERTIES
|
|
5713
|
+
/****************************************************************************/
|
|
5714
|
+
//#region LIFECYCLE
|
|
5715
|
+
componentDidLoad() {
|
|
5716
|
+
}
|
|
5717
|
+
componentWillLoad() {
|
|
5718
|
+
if (this.type === 'default' && this.tooltip) {
|
|
5719
|
+
this.popoverTrigger = Array.from(this.el.children).find(child => child.getAttribute('slot') === null);
|
|
5720
|
+
}
|
|
5721
|
+
}
|
|
5722
|
+
//#endregion LIFECYCLE
|
|
5723
|
+
/****************************************************************************/
|
|
5724
|
+
//#region RENDER
|
|
5725
|
+
render() {
|
|
5726
|
+
return (hAsync(Host, { key: '44aca9cb5e3a794ca8bae895b96c0c8bba146fa9', role: "listitem", "aria-current": this.current ? 'location' : undefined }, this.type === 'collapsed' ? (hAsync("button", { ref: el => (this.popoverTrigger = el) }, "...")) : (hAsync("slot", null)), this.tooltip && (hAsync("nv-tooltip", { key: '4a3ab4872fe69a361be4699a54ecb17175fe7a77', message: this.tooltip, triggerElement: this.popoverTrigger, placement: "top" })), this.type === 'collapsed' && (hAsync("nv-popover", { key: '286cc8222a28f70c72e4d4496ba105c82721a2fe', triggerMode: "click", groupName: "breadcrumbs", triggerElement: this.popoverTrigger }, hAsync("ul", { key: 'c3bc55b938e5a3ec5f90f5f50aefa9fcb75463f8', slot: "content" }, hAsync("slot", { key: '2533b6026d20fc818caa3146580b1ffd4d0aa98c' })))), hAsync("slot", { key: '4f3c160421ca81596f7c131592b797b544f43f98', name: "separator" }, hAsync("nv-icon", { key: 'e7bdab55acbba96b7149e929affd6b07acb13afb', name: 'chevron-right', "data-scope": "separator" }))));
|
|
5727
|
+
}
|
|
5728
|
+
get el() { return getElement(this); }
|
|
5729
|
+
static get style() { return NvBreadcrumbStyle0; }
|
|
5730
|
+
static get cmpMeta() { return {
|
|
5731
|
+
"$flags$": 4,
|
|
5732
|
+
"$tagName$": "nv-breadcrumb",
|
|
5733
|
+
"$members$": {
|
|
5734
|
+
"type": [513],
|
|
5735
|
+
"tooltip": [513],
|
|
5736
|
+
"current": [516]
|
|
5737
|
+
},
|
|
5738
|
+
"$listeners$": undefined,
|
|
5739
|
+
"$lazyBundleId$": "-",
|
|
5740
|
+
"$attrsToReflect$": [["type", "type"], ["tooltip", "tooltip"], ["current", "current"]]
|
|
5741
|
+
}; }
|
|
5742
|
+
}
|
|
5743
|
+
|
|
5744
|
+
const nvBreadcrumbsCss = "nv-breadcrumbs{display:block}nv-breadcrumbs>ol{display:flex;flex-wrap:wrap;align-items:center;gap:var(--spacing-1)}nv-breadcrumbs nv-breadcrumb:last-child [data-scope=separator],nv-breadcrumbs nv-breadcrumb:last-child [slot=separator]{display:none}";
|
|
5745
|
+
var NvBreadcrumbsStyle0 = nvBreadcrumbsCss;
|
|
5746
|
+
|
|
5747
|
+
/**
|
|
5748
|
+
* @slot default - Child content of the component.
|
|
5749
|
+
*/
|
|
5750
|
+
class NvBreadcrumbs {
|
|
5751
|
+
constructor(hostRef) {
|
|
5752
|
+
registerInstance(this, hostRef);
|
|
5753
|
+
}
|
|
5754
|
+
//#region RENDER
|
|
5755
|
+
render() {
|
|
5756
|
+
return (hAsync(Host, { key: '5ab0f09cb86a92464ffcd06d8129543539bdcddf', role: "navigation", "aria-label": "breadcrumbs" }, hAsync("ol", { key: 'a7624a2400d9a91ec477694bbd3600960e198981' }, hAsync("slot", { key: '7c4102ceebe110377bf212e0695bdec6b455ea74' }))));
|
|
5757
|
+
}
|
|
5758
|
+
static get style() { return NvBreadcrumbsStyle0; }
|
|
5759
|
+
static get cmpMeta() { return {
|
|
5760
|
+
"$flags$": 4,
|
|
5761
|
+
"$tagName$": "nv-breadcrumbs",
|
|
5762
|
+
"$members$": undefined,
|
|
5763
|
+
"$listeners$": undefined,
|
|
5764
|
+
"$lazyBundleId$": "-",
|
|
5765
|
+
"$attrsToReflect$": []
|
|
5766
|
+
}; }
|
|
5767
|
+
}
|
|
5768
|
+
|
|
5769
|
+
const nvButtonCss = "nv-button{text-decoration:none;display:inline-flex;justify-content:center;align-items:center;font-style:normal;font-weight:var(--font-weight-medium-emphasis);font-family:\"TT Norms Pro\", sans-serif;transition:background-color 150ms ease-out;user-select:none;cursor:pointer;height:fit-content;width:fit-content}nv-button[size=xs]{padding:var(--button-xs-padding-y) var(--button-xs-padding-x);gap:var(--button-xs-gap);border-radius:var(--button-xs-border-radius);line-height:var(--button-xs-line-height);font-size:var(--button-xs-font-size)}nv-button[size=xs] nv-icon>svg{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-button[size=sm]{padding:var(--button-sm-padding-y) var(--button-sm-padding-x);gap:var(--button-sm-gap);border-radius:var(--button-sm-border-radius);line-height:var(--button-sm-line-height);font-size:var(--button-sm-font-size)}nv-button[size=sm] nv-icon>svg{width:var(--spacing-4);height:var(--spacing-4);stroke-width:1.5px}nv-button[size=md]{padding:var(--button-md-padding-y) var(--button-md-padding-x);gap:var(--button-md-gap);border-radius:var(--button-md-border-radius);line-height:var(--button-md-line-height);font-size:var(--button-md-font-size)}nv-button[size=md] nv-icon>svg{width:var(--spacing-5);height:var(--spacing-5);stroke-width:1.6px}nv-button[size=lg]{padding:var(--button-lg-padding-y) var(--button-lg-padding-x);gap:var(--button-lg-gap);border-radius:var(--button-lg-border-radius);line-height:var(--button-lg-line-height);font-size:var(--button-lg-font-size)}nv-button[size=lg] nv-icon>svg{width:var(--spacing-6);height:var(--spacing-6);stroke-width:1.8px}nv-button[emphasis=high]{background:var(--components-button-high-background);border:1px solid var(--components-button-high-border);color:var(--components-button-high-text)}nv-button[emphasis=high]:hover{background:var(--components-button-high-background-hover);border:1px solid var(--components-button-high-border);color:var(--components-button-high-text-hover)}nv-button[emphasis=high]:focus,nv-button[emphasis=high]:focus-within{outline:none}nv-button[emphasis=high]:focus-visible,nv-button[emphasis=high]:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=high]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-button[emphasis=high][danger]:not([danger=false]){background:var(--components-button-destructive-high-background);border:1px solid unset;color:var(--components-button-destructive-high-text)}nv-button[emphasis=high][danger]:not([danger=false]):hover{background:var(--components-button-destructive-high-background-hover);border:1px solid unset;color:var(--components-button-destructive-high-text-hover)}nv-button[emphasis=high][danger]:not([danger=false]):focus,nv-button[emphasis=high][danger]:not([danger=false]):focus-within{outline:none}nv-button[emphasis=high][danger]:not([danger=false]):focus-visible,nv-button[emphasis=high][danger]:not([danger=false]):has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-focus-destructive);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=medium]{background:var(--components-button-medium-background);border:1px solid var(--components-button-medium-border);color:var(--components-button-medium-text)}nv-button[emphasis=medium]:hover{background:var(--components-button-medium-background-hover);border:1px solid var(--components-button-medium-border);color:var(--components-button-medium-text-hover)}nv-button[emphasis=medium]:focus,nv-button[emphasis=medium]:focus-within{outline:none}nv-button[emphasis=medium]:focus-visible,nv-button[emphasis=medium]:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=medium]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-button[emphasis=medium][danger]:not([danger=false]){background:var(--components-button-destructive-medium-background);border:1px solid var(--components-button-destructive-medium-border);color:var(--components-button-destructive-medium-text)}nv-button[emphasis=medium][danger]:not([danger=false]):hover{background:var(--components-button-destructive-medium-background-hover);border:1px solid var(--components-button-destructive-medium-border);color:var(--components-button-destructive-medium-text-hover)}nv-button[emphasis=medium][danger]:not([danger=false]):focus,nv-button[emphasis=medium][danger]:not([danger=false]):focus-within{outline:none}nv-button[emphasis=medium][danger]:not([danger=false]):focus-visible,nv-button[emphasis=medium][danger]:not([danger=false]):has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-focus-destructive);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=low]{background:var(--components-button-low-background);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text)}nv-button[emphasis=low]:hover{background:var(--components-button-low-background-hover);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text-hover)}nv-button[emphasis=low]:focus,nv-button[emphasis=low]:focus-within{outline:none}nv-button[emphasis=low]:focus-visible,nv-button[emphasis=low]:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=low]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-button[emphasis=low][danger]:not([danger=false]){background:var(--components-button-destructive-low-background);border:1px solid var(--components-button-destructive-low-border);color:var(--components-button-destructive-low-text)}nv-button[emphasis=low][danger]:not([danger=false]):hover{background:var(--components-button-destructive-low-background-hover);border:1px solid var(--components-button-destructive-low-border);color:var(--components-button-destructive-low-text-hover)}nv-button[emphasis=low][danger]:not([danger=false]):focus,nv-button[emphasis=low][danger]:not([danger=false]):focus-within{outline:none}nv-button[emphasis=low][danger]:not([danger=false]):focus-visible,nv-button[emphasis=low][danger]:not([danger=false]):has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-focus-destructive);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=lower]{background:var(--components-button-lower-background);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text)}nv-button[emphasis=lower]:hover{background:var(--components-button-lower-background-hover);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text-hover)}nv-button[emphasis=lower]:focus,nv-button[emphasis=lower]:focus-within{outline:none}nv-button[emphasis=lower]:focus-visible,nv-button[emphasis=lower]:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=lower]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-button[emphasis=lower][danger]:not([danger=false]){background:var(--components-button-destructive-lower-background);border:1px solid var(--components-button-destructive-lower-border);color:var(--components-button-destructive-lower-text)}nv-button[emphasis=lower][danger]:not([danger=false]):hover{background:var(--components-button-destructive-lower-background-hover);border:1px solid var(--components-button-destructive-lower-border);color:var(--components-button-destructive-lower-text-hover)}nv-button[emphasis=lower][danger]:not([danger=false]):focus,nv-button[emphasis=lower][danger]:not([danger=false]):focus-within{outline:none}nv-button[emphasis=lower][danger]:not([danger=false]):focus-visible,nv-button[emphasis=lower][danger]:not([danger=false]):has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-focus-destructive);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[fluid]:not([fluid=false]){width:100%}nv-button[loading]:not([loading=false]) [slot=leading-icon]{display:none}";
|
|
5647
5770
|
var NvButtonStyle0 = nvButtonCss;
|
|
5648
5771
|
|
|
5649
5772
|
/**
|
|
@@ -5750,7 +5873,7 @@ class NvButton {
|
|
|
5750
5873
|
/****************************************************************************/
|
|
5751
5874
|
//#region RENDER
|
|
5752
5875
|
render() {
|
|
5753
|
-
return (hAsync(Host, { key: '
|
|
5876
|
+
return (hAsync(Host, { key: '09d1a764e1dd0a8175e5b1ec0e5fececac19ad31', role: "button", tabindex: "0", onClick: this.handleClick }, this.loading && (hAsync("nv-loader", { key: '796432d620655f263be114909f9777b2d408a75c', size: this.size === ButtonSize.Large ? 'sm' : 'xs' })), hAsync("slot", { key: '4309b3ec76fd089bb57af356c08212498ada787b', name: "leading-icon" }), hAsync("slot", { key: '2531e9e7c50cf549eea56595c16bbcf0431d346e' }), hAsync("slot", { key: 'b1884a687df70ead0e5ff5ab905eb6a3265d7f59', name: "trailing-icon" })));
|
|
5754
5877
|
}
|
|
5755
5878
|
static get formAssociated() { return true; }
|
|
5756
5879
|
get el() { return getElement(this); }
|
|
@@ -5805,7 +5928,7 @@ class NvCol {
|
|
|
5805
5928
|
/****************************************************************************/
|
|
5806
5929
|
//#region RENDER
|
|
5807
5930
|
render() {
|
|
5808
|
-
return (hAsync(Host, { key: '
|
|
5931
|
+
return (hAsync(Host, { key: 'b3ef4b6e10022cdb97e2ea6238ba99b5a84c5c82', class: clsx(this.getColSize()) }, hAsync("slot", { key: 'a77821b6384d2abc78233bfa966795b99db785ff' })));
|
|
5809
5932
|
}
|
|
5810
5933
|
static get style() { return NvColStyle0; }
|
|
5811
5934
|
static get cmpMeta() { return {
|
|
@@ -8869,7 +8992,7 @@ class NvDatagrid {
|
|
|
8869
8992
|
data: [],
|
|
8870
8993
|
getCoreRowModel: getCoreRowModel(),
|
|
8871
8994
|
debugAll: true,
|
|
8872
|
-
onStateChange: state => console.log('Table state changed:', state),
|
|
8995
|
+
onStateChange: state => console.log('Table state changed:', state), // eslint-disable-line nova/no-console
|
|
8873
8996
|
renderFallbackValue: 'No rows to display',
|
|
8874
8997
|
state: {
|
|
8875
8998
|
sorting: [], // Default: no active sorting
|
|
@@ -9042,7 +9165,7 @@ class NvDatagrid {
|
|
|
9042
9165
|
(this.parsedData.length === 0 && !this.hasSlotBody)
|
|
9043
9166
|
? []
|
|
9044
9167
|
: (_c = (_b = this.table) === null || _b === void 0 ? void 0 : _b.getRowModel()) === null || _c === void 0 ? void 0 : _c.rows;
|
|
9045
|
-
return (hAsync(Host, { key: '
|
|
9168
|
+
return (hAsync(Host, { key: '4ac86760843a2877a240757998a368867ece89da' }, hAsync("div", { key: '608eab614751fd7d889859f4b4ba7a602c31e464', class: "hidden" }, hAsync("slot", { key: 'e97d3a0b6ad7a338eda2e03e1f9ab43825bd3e73' }), hAsync("slot", { key: 'f277710a088202b4afdfcaeda0b42c1632e6cc3d', name: "head" }), hAsync("slot", { key: 'c2bf75d94b72a343995e777c62fe150aa330c586', name: "body" })), hAsync("slot", { key: '0bdf3ae59fb4674d30ff8c36efa150c226f59149', name: "before" }), this.parsedColumns.length === 0 &&
|
|
9046
9169
|
this.parsedData.length === 0 &&
|
|
9047
9170
|
!this.hasSlotHead &&
|
|
9048
9171
|
!this.hasSlotBody ? (hAsync("p", null, this.noColumnsNoDataMessage)) : (hAsync("table", null, this.parsedColumns.length > 0 && headerGroups.length > 0 && (hAsync("thead", null, this.parsedColumns.length > 0 && headerGroups
|
|
@@ -9057,7 +9180,7 @@ class NvDatagrid {
|
|
|
9057
9180
|
return `<td key="${cell.id}" data-row-id="${rowId}">${cellValue}</td>`;
|
|
9058
9181
|
}).join('');
|
|
9059
9182
|
return hAsync("tr", { key: rowId, innerHTML: cells });
|
|
9060
|
-
}))))), hAsync("slot", { key: '
|
|
9183
|
+
}))))), hAsync("slot", { key: '0511cd2b445c149093b09a3583ca33cfc22650f2', name: "after" })));
|
|
9061
9184
|
}
|
|
9062
9185
|
get el() { return getElement(this); }
|
|
9063
9186
|
static get watchers() { return {
|
|
@@ -9104,7 +9227,7 @@ class NvDatagridbody {
|
|
|
9104
9227
|
/****************************************************************************/
|
|
9105
9228
|
//#region RENDER
|
|
9106
9229
|
render() {
|
|
9107
|
-
return (hAsync(Host, { key: '
|
|
9230
|
+
return (hAsync(Host, { key: 'fdb910bb7b6388d4d0f8d61a18822e8334534a18' }, hAsync("tbody", { key: 'f19bd351d639a4d9a94d27647e977d14d6cacf7e' }, hAsync("slot", { key: '376ae58f100a27adefaec863497479d814af8124' }))));
|
|
9108
9231
|
}
|
|
9109
9232
|
static get style() { return NvDatagridbodyStyle0; }
|
|
9110
9233
|
static get cmpMeta() { return {
|
|
@@ -9131,7 +9254,7 @@ class NvDatagridcolumn {
|
|
|
9131
9254
|
/****************************************************************************/
|
|
9132
9255
|
//#region RENDER
|
|
9133
9256
|
render() {
|
|
9134
|
-
return (hAsync(Host, { key: '
|
|
9257
|
+
return (hAsync(Host, { key: '2982f199f488077a91812c214b0e881a0e32e1ec' }, hAsync("th", { key: 'cc46a9eb1aa232a8068308d7e7175aed89f007c1' }, hAsync("slot", { key: 'bd1f13adfd55b1c4ae8dab30d7aea33c9079f3e0' }))));
|
|
9135
9258
|
}
|
|
9136
9259
|
static get style() { return NvDatagridcolumnStyle0; }
|
|
9137
9260
|
static get cmpMeta() { return {
|
|
@@ -9161,7 +9284,7 @@ class NvDatagriddatacell {
|
|
|
9161
9284
|
/****************************************************************************/
|
|
9162
9285
|
//#region RENDER
|
|
9163
9286
|
render() {
|
|
9164
|
-
return (hAsync(Host, { key: '
|
|
9287
|
+
return (hAsync(Host, { key: 'dbdf7fa0353e84e702ddd082fe466f89492f48e1' }, hAsync("td", { key: '3d3d8ae038cb5a6bf3404fe7178003529790fc10' }, hAsync("slot", { key: 'b8585f6517d053f90be59fe7e492771114911496' }))));
|
|
9165
9288
|
}
|
|
9166
9289
|
static get style() { return NvDatagriddatacellStyle0; }
|
|
9167
9290
|
static get cmpMeta() { return {
|
|
@@ -9189,7 +9312,7 @@ class NvDatagridhead {
|
|
|
9189
9312
|
/****************************************************************************/
|
|
9190
9313
|
//#region RENDER
|
|
9191
9314
|
render() {
|
|
9192
|
-
return (hAsync(Host, { key: '
|
|
9315
|
+
return (hAsync(Host, { key: 'e56a8e78a9034ce2cd2eda97ee074662b533ace9' }, hAsync("thead", { key: '0a32742beaf23f214bbf3f03f9de5bab748573cd' }, hAsync("slot", { key: '0beabbfbadee2af0caa07f31fb681d24fe6da240' }))));
|
|
9193
9316
|
}
|
|
9194
9317
|
static get style() { return NvDatagridheadStyle0; }
|
|
9195
9318
|
static get cmpMeta() { return {
|
|
@@ -9215,7 +9338,7 @@ class NvDatagridrow {
|
|
|
9215
9338
|
/****************************************************************************/
|
|
9216
9339
|
//#region RENDER
|
|
9217
9340
|
render() {
|
|
9218
|
-
return (hAsync(Host, { key: '
|
|
9341
|
+
return (hAsync(Host, { key: '99a83706b411732ff2d2443794ab61bdc0a95c7e' }, hAsync("tr", { key: 'd64ab8c5d39236cdbe4950c7d891f3aca9c696dc' }, hAsync("slot", { key: '696117c1e59fe60e0d3de5928658ba479cfeb472' }))));
|
|
9219
9342
|
}
|
|
9220
9343
|
static get style() { return NvDatagridrowStyle0; }
|
|
9221
9344
|
static get cmpMeta() { return {
|
|
@@ -9334,13 +9457,13 @@ class NvFieldcheckbox {
|
|
|
9334
9457
|
/****************************************************************************/
|
|
9335
9458
|
//#region RENDER
|
|
9336
9459
|
render() {
|
|
9337
|
-
return (hAsync(Host, { key: '
|
|
9460
|
+
return (hAsync(Host, { key: 'dee6fd99a2e97591189c8a6bdce3c8909b4ceb97', class: clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, hAsync("div", { key: 'dd6ab7f4cddd11c89cc15249290fe43d83a669ab', class: "input-container" }, hAsync("input", { key: '1132052e8f369f16d3a0ce4698b72644975886f8', type: "checkbox", id: this.inputId, name: this.name, autocomplete: "off", value: this.value, checked: Boolean(this.checked), disabled: this.disabled || this.readonly, readonly: this.readonly && !this.required, required: this.required, indeterminate: this.indeterminate, ref: el => {
|
|
9338
9461
|
if (el) {
|
|
9339
9462
|
el.indeterminate = this.indeterminate;
|
|
9340
9463
|
}
|
|
9341
|
-
} }), hAsync("span", { key: '
|
|
9342
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
9343
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
9464
|
+
} }), hAsync("span", { key: 'ac87b7d83e5731da6ce8f9990a1d55bd247cb750', class: "icon" }, this.checked && !this.indeterminate && (hAsync("slot", { key: '911e69045129dc8755fea438570858f338a18ad3', name: "checked-icon" }, hAsync("svg", { key: 'de2e547ac9ab00c52ee9c924fdb4e24cf0321158', xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" }, hAsync("path", { key: '10dc26b32951b18a6bd29482349894bf1ca87bd8', d: "M11.6667 3.5L5.25004 9.91667L2.33337 7", "stroke-linecap": "round", "stroke-linejoin": "round" })))), this.indeterminate && (hAsync("slot", { key: '7e957be646aa6a96f94e0cf70b5ef88b8037e07e', name: "indeterminate-icon" }, hAsync("svg", { key: 'd132aabc77f0dcf5c67377a60004b72307cf61ba', class: "indeterminate-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 14 14", fill: "none" }, hAsync("path", { key: '353c950a9d8d14c32e276e393c9314374d10337f', d: "M2.9165 7H11.0832", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), hAsync("div", { key: 'a14fc39e16a9dcee74e722a361fcc8df63fad5d6', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '13a9fee6f1c4aea8735eca27f36944d6c26cf7f2', htmlFor: this.inputId, class: clsx(this.hideLabel && 'visually-hidden') }, hAsync("slot", { key: 'dbbce25b8f65d2b12d10e419f94ae56ef2d0c355', name: "label" }, this.label))), (this.description ||
|
|
9465
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '3647cdaa6a4ec2cacab7b2c1fe731e3454746648', class: "description" }, hAsync("slot", { key: '19dff40045f22c6403029731a0a628455b831c5c', name: "description" }, this.description))), (this.errorDescription ||
|
|
9466
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: 'dd78ae62d1a1cd6c2a9b41d32740321cb1f36f2a', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: '1e4d1c10387aaea37c87111c43c84cd204ca1619', name: "error-description" }, this.errorDescription))))));
|
|
9344
9467
|
}
|
|
9345
9468
|
get el() { return getElement(this); }
|
|
9346
9469
|
static get watchers() { return {
|
|
@@ -9431,7 +9554,7 @@ class NvFielddropdownitem {
|
|
|
9431
9554
|
//#region RENDER
|
|
9432
9555
|
render() {
|
|
9433
9556
|
const showDefaultLayout = this.isNullOrEmptyOrWhitespace(this.label);
|
|
9434
|
-
return (hAsync(Host, { key: '
|
|
9557
|
+
return (hAsync(Host, { key: 'e482a762c7b011389f1f1312b14f1686e38528aa', role: "menuitem", tabindex: this.disabled ? '-1' : '0', onClick: this.handleClick, class: { selected: this.selected } }, showDefaultLayout ? (hAsync("slot", null)) : (hAsync("div", { class: "dropdown-item-text-wrapper" }, hAsync("span", { "data-scope": "text" }, this.label), this.selected && (hAsync("nv-icon", { name: "check", "aria-hidden": "true", class: "selection-icon" }))))));
|
|
9435
9558
|
}
|
|
9436
9559
|
get el() { return getElement(this); }
|
|
9437
9560
|
static get style() { return NvFielddropdownitemStyle0; }
|
|
@@ -9555,9 +9678,9 @@ class NvFieldnumber {
|
|
|
9555
9678
|
/****************************************************************************/
|
|
9556
9679
|
//#region RENDER
|
|
9557
9680
|
render() {
|
|
9558
|
-
return (hAsync(Host, { key: '
|
|
9559
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
9560
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
9681
|
+
return (hAsync(Host, { key: '440aa92437d7cbd00e09ad8f7aab663ad09c8406' }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: 'e892aef7b1534c6d73181d2d25fe7f17945524ac', htmlFor: this.inputId }, hAsync("slot", { key: '77489c52e374149a75effa7d3f4ab97c3109a13c', name: "label" }, this.label))), hAsync("div", { key: 'a1d23b332303ac468771b2b7dd2a31d21d9a3487', class: "input-wrapper" }, hAsync("slot", { key: '76f9993d1168a004b1de82b1e19b99062e7b6386', name: "before-input" }), hAsync("div", { key: 'a51ec42108436d853c2e74aeb64088dc071074f7', class: "input-container", onClick: this.handleInputContainerClick }, hAsync("slot", { key: '9084cef7de60e84db9dc7042b64e6c64a4a8f5d7', name: "leading-input" }), hAsync("input", { key: '395d2d7a2b8157495735b47cac47fd37e7c24c7e', id: this.inputId, ref: e => (this.inputElement = e), placeholder: this.placeholder, name: this.name, type: "number", required: this.required, max: this.max, min: this.min, step: this.step, value: this.value, disabled: this.disabled, readOnly: this.readonly, onInput: this.handleInput }), this.error && (hAsync("nv-icon", { key: 'e015cebd60a0bda842dd8aff05dbce27586e861c', name: "alert-circle", class: "validation", size: "md" })), this.success && (hAsync("nv-icon", { key: '42a0ea62a160f92150d949789694d1d6e992c39d', name: "circle-check", class: "validation", size: "md" })), hAsync("div", { key: '9df0a8c66b6086dfcd0e1c48e21d4d1866ed4563', class: "stepper-spacer" }), hAsync("div", { key: 'a4d16b2f50878ecdb5a322b6707fce5e908e88a0', class: "stepper" }, hAsync("nv-icon", { key: 'edf55fafe8d8f58aab7b5083d630905e78783c2e', name: "minus", size: "md", onClick: this.handleMinus, class: clsx({ disabled: this.isMinValueReached() }) }), hAsync("nv-icon", { key: '04d7e7b4fdc80d444ab64660f71c998bbce0f73a', name: "plus", size: "md", onClick: this.handlePlus, class: clsx({ disabled: this.isMaxValueReached() }) }))), hAsync("slot", { key: '9893c52a46ad08a1ccb301411141bd723af33b21', name: "after-input" })), (this.description ||
|
|
9682
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'b21b984e9695fab93a198ef58a3bd394bfc3aaa3', class: "description" }, hAsync("slot", { key: '1750efcd886f70078848f608e0be326324ea6928', name: "description" }, this.description))), (this.errorDescription ||
|
|
9683
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '14cde2f86fd23c98fafb2cd4645e7af64ce6c011', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: '96e1a6084ec5467cf35e1eb3e86fa6b757f2574c', name: "error-description" }, this.errorDescription)))));
|
|
9561
9684
|
}
|
|
9562
9685
|
static get formAssociated() { return true; }
|
|
9563
9686
|
get el() { return getElement(this); }
|
|
@@ -9699,9 +9822,9 @@ class NvFieldpassword {
|
|
|
9699
9822
|
/****************************************************************************/
|
|
9700
9823
|
//#region RENDER
|
|
9701
9824
|
render() {
|
|
9702
|
-
return (hAsync(Host, { key: '
|
|
9703
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
9704
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
9825
|
+
return (hAsync(Host, { key: '77ade2d0b5b4282b16925957709433d047a730c7' }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '158f0347fa53cebea4b89ceee56c8d92c801861f', htmlFor: this.inputId }, hAsync("slot", { key: '6ad0d4a2b7d0e6c32249f8ecfc221523999a7e86', name: "label" }, this.label))), hAsync("div", { key: '7cab4de8be04d0cbdbaee4b3ea64fcb6d9043ca5', class: "input-wrapper" }, hAsync("slot", { key: '808e2c1308b7e095f5207cd9a9198c4667bf2310', name: "before-input" }), hAsync("div", { key: '23f6b0833be73faef6d46dcf0c007c1c16c59681', class: "input-container", onClick: this.handleInputContainerClick }, hAsync("slot", { key: 'f53ff33bc75dd2417cac55a39e1f24875375c564', name: "leading-input" }), hAsync("input", { key: '70e7e28f957224c7613a1da4b2156afeba706d14', id: this.inputId, ref: e => (this.inputElement = e), autocomplete: this.autocomplete, placeholder: this.placeholder, name: this.name, type: this.showPasswordState ? 'text' : 'password', inputMode: this.mode, value: this.value, required: this.required, maxlength: this.maxlength, minlength: this.minlength, pattern: this.pattern, disabled: this.disabled, readOnly: this.readonly, onInput: this.handleInput }), !this.hidePasswordIcon && (hAsync("nv-iconbutton", { key: '96742eeecc9de1bf4ae753fc8c64c2e436e5af86', class: "toggle-password-icon", name: this.showPasswordState ? 'eye' : 'eye-off', size: "md", emphasis: "lower", onClick: this.togglePasswordVisibility, onKeyDown: this.handleKeyDown, "aria-label": this.showPasswordState ? 'Hide password' : 'Show password', "aria-pressed": this.showPasswordState.toString() })), (this.success || this.error) && (hAsync("nv-icon", { key: '71666d2e39bc4fe5057ec014cc788f3b734c0e69', name: this.success ? 'circle-check' : 'alert-circle', class: "validation", size: "md" }))), hAsync("slot", { key: '7d232c975753c74ce8419b6258dd63f7ca7ab811', name: "after-input" })), (this.description ||
|
|
9826
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'f9330dd27bce24c81d2fb58c0da7a8de079deb87', class: "description" }, hAsync("slot", { key: '61b9f61075435d7854603aa9e4700a755e0eeb4f', name: "description" }, this.description))), (this.errorDescription ||
|
|
9827
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: 'f4e9183622a9451baa054eea9eb7113b38aa72c2', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: '234af9d31bc011493f700f34a707305a8fb421d4', name: "error-description" }, this.errorDescription)))));
|
|
9705
9828
|
}
|
|
9706
9829
|
static get formAssociated() { return true; }
|
|
9707
9830
|
get el() { return getElement(this); }
|
|
@@ -9821,9 +9944,9 @@ class NvFieldradio {
|
|
|
9821
9944
|
/****************************************************************************/
|
|
9822
9945
|
//#region RENDER
|
|
9823
9946
|
render() {
|
|
9824
|
-
return (hAsync(Host, { key: '
|
|
9825
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
9826
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
9947
|
+
return (hAsync(Host, { key: 'c180e5204343412df6b2539cd46d7bd53d2d7f19', class: clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, hAsync("input", { key: '778a3ddc598a81df45f6eecda4660f95af48795a', type: "radio", id: this.inputId, name: this.name, autocomplete: "off", value: this.value, checked: this.checked, disabled: this.disabled }), hAsync("div", { key: '82e3e9ed3cdcd5918f824e5956e720ba04ec3160', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: 'b906d712188ef0ba06c177021b81b9b8132e2d58', htmlFor: this.inputId }, hAsync("slot", { key: '2c81a91a98d2d4739d6b912a0018826830b17c7f', name: "label" }, this.label))), (this.description ||
|
|
9948
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '1caa426f06d0d5fcb9fe59e58be7000c854fceb9', class: "description" }, hAsync("slot", { key: 'ba454a12b8f535db62945a145c665f189624dc61', name: "description" }, this.description))), (this.errorDescription ||
|
|
9949
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: 'bf7a31b55f2716cb6436b595d0d96a1974c9c313', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: '9a3b54c1e06d7e42eee9c4ca8e213270b66306b6', name: "error-description" }, this.errorDescription))))));
|
|
9827
9950
|
}
|
|
9828
9951
|
static get formAssociated() { return true; }
|
|
9829
9952
|
get el() { return getElement(this); }
|
|
@@ -9883,7 +10006,7 @@ class NvFieldselect {
|
|
|
9883
10006
|
* to ensure unique identification, facilitating proper label association and
|
|
9884
10007
|
* accessibility.
|
|
9885
10008
|
*/
|
|
9886
|
-
this.
|
|
10009
|
+
this.inputId = v4();
|
|
9887
10010
|
/**
|
|
9888
10011
|
* The disabled prop lets you turn off the select field so that users can’t
|
|
9889
10012
|
* choose something. When disabled, the field is grayed out and won’t respond to
|
|
@@ -10166,13 +10289,13 @@ class NvFieldselect {
|
|
|
10166
10289
|
* @returns {HTMLStencilElement} The HTML element to render.
|
|
10167
10290
|
*/
|
|
10168
10291
|
render() {
|
|
10169
|
-
return (hAsync(Host, { key: '
|
|
10170
|
-
? `${this.
|
|
10171
|
-
: `${this.
|
|
10172
|
-
? `${this.
|
|
10173
|
-
: `${this.
|
|
10174
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
10175
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
10292
|
+
return (hAsync(Host, { key: 'd9334ee7b0373a6d7c48b144107fad9420dfb8b0' }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: 'fd69171f1609c8aa450d81f81149da6a42ab15f3', htmlFor: this.inputId }, hAsync("slot", { key: '26bb813a2919a62fb71c23a0564704ea9bb2b118', name: "label" }, this.label))), hAsync("div", { key: '14ce1ff79a90c1bcbc3f757905347dd96bbb9708', class: "select-wrapper" }, hAsync("slot", { key: '99eecebeaa197dc27306471ad8d813e16b8597b5', name: "before-input" }), hAsync("div", { key: 'd594672879ef8cf8aad8df170eda2210c094a9e2', class: "select-container", onClick: this.handleSelectContainerClick }, hAsync("slot", { key: '0cf4321aa3bab4b2fedf6c8819914713eacd8ee2', name: "leading-input" }), this.internalReadonly && (hAsync("input", { key: '99e5bf60ff1f263bf28e9aaf3610db27fe1507fc', id: this.inputId + '-readonly', type: "text", value: this.computedDisplayValue, readonly: true, class: "readonly-input", "aria-readonly": "true", "aria-label": this.label, "aria-describedby": this.error
|
|
10293
|
+
? `${this.inputId}-error`
|
|
10294
|
+
: `${this.inputId}-description` })), hAsync("select", { key: 'f7581c343c875e267eea166f35f195ee8432eaf1', id: this.inputId, ref: el => (this.selectElement = el), name: this.name, disabled: this.disabled, required: this.required, multiple: this.multiple, onChange: this.handleSelectChange, class: this.internalReadonly ? 'hidden' : '', "aria-label": this.label, "aria-describedby": this.error
|
|
10295
|
+
? `${this.inputId}-error`
|
|
10296
|
+
: `${this.inputId}-description` }, hAsync("slot", { key: '02745ef20836ae3001b4f6b4cb623100ddc97725' })), this.internalReadonly && (hAsync("nv-icon", { key: 'feb701a5665c82234a00ce411afed52a7a3ddd72', name: "chevron-down", class: "readonly-icon", size: "sm" })), this.error && (hAsync("nv-icon", { key: 'bc43f872fce4fdb5940020ca3ac89fda8d6a9709', name: "alert-circle", class: "validation", size: "sm" })), this.success && (hAsync("nv-icon", { key: '0a04cd146c865c512a6817df83540ffce2d0d308', name: "circle-check", class: "validation", size: "sm" }))), hAsync("slot", { key: '495e2d37897c15d2e2dee95310ae536b03be5822', name: "after-input" })), (this.description ||
|
|
10297
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '3bf2e184784d98940e2ee11fb4f8d1730281bc89', class: "description", id: `${this.inputId}-description` }, hAsync("slot", { key: 'da02156b85bace7c898e5792cd9db37feab50839', name: "description" }, this.description))), (this.errorDescription ||
|
|
10298
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '5e95ce042deaad2eec68cb4d29ed6fea6f2d3f4c', class: "error-description", id: `${this.inputId}-error` }, hAsync("slot", { key: 'e693e1eb32737de9e0d533b8c74b5d87fd7ce0f5', name: "error-description" }, this.errorDescription)))));
|
|
10176
10299
|
}
|
|
10177
10300
|
static get formAssociated() { return true; }
|
|
10178
10301
|
get el() { return getElement(this); }
|
|
@@ -10188,7 +10311,7 @@ class NvFieldselect {
|
|
|
10188
10311
|
"$members$": {
|
|
10189
10312
|
"message": [1],
|
|
10190
10313
|
"validation": [1],
|
|
10191
|
-
"
|
|
10314
|
+
"inputId": [513, "input-id"],
|
|
10192
10315
|
"label": [513],
|
|
10193
10316
|
"description": [1537],
|
|
10194
10317
|
"name": [513],
|
|
@@ -10206,7 +10329,7 @@ class NvFieldselect {
|
|
|
10206
10329
|
},
|
|
10207
10330
|
"$listeners$": undefined,
|
|
10208
10331
|
"$lazyBundleId$": "-",
|
|
10209
|
-
"$attrsToReflect$": [["
|
|
10332
|
+
"$attrsToReflect$": [["inputId", "input-id"], ["label", "label"], ["description", "description"], ["name", "name"], ["disabled", "disabled"], ["readonly", "readonly"], ["required", "required"], ["error", "error"], ["errorDescription", "error-description"], ["success", "success"], ["multiple", "multiple"], ["value", "value"], ["displayValue", "display-value"]]
|
|
10210
10333
|
}; }
|
|
10211
10334
|
}
|
|
10212
10335
|
|
|
@@ -10312,9 +10435,9 @@ class NvFieldtext {
|
|
|
10312
10435
|
/****************************************************************************/
|
|
10313
10436
|
//#region RENDER
|
|
10314
10437
|
render() {
|
|
10315
|
-
return (hAsync(Host, { key: '
|
|
10316
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
10317
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
10438
|
+
return (hAsync(Host, { key: '515758fdb12fd8df454fb1d1113356b20fc1600b' }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: 'fc24e70454352dfbf2df977f3287fba276c67cd1', htmlFor: this.inputId }, hAsync("slot", { key: '422c1c9bd42de0a998b8fc45e000c6a30d9a49f3', name: "label" }, this.label))), hAsync("div", { key: 'b1ad372ab559d8245ce184c6abceafa468e449f0', class: "input-wrapper" }, hAsync("slot", { key: 'e30624a7b5db6510db337a408bc069de37bbdbea', name: "before-input" }), hAsync("div", { key: '13657397c9ac78dc97f9b94b8fdbd46126aceb16', class: "input-container", onClick: this.handleInputContainerClick }, hAsync("slot", { key: 'edf3ee8cc920870aa907f1bbbeaca6cc8d38219c', name: "leading-input" }), hAsync("input", { key: 'afab7a4f2575e5e8a1e675aee9b21e90803db7a6', id: this.inputId, ref: e => (this.inputElement = e), placeholder: this.placeholder, name: this.name, type: this.type, disabled: this.disabled, readOnly: this.readonly, required: this.required, maxlength: this.maxlength, minlength: this.minlength, pattern: this.pattern, autocomplete: this.autocomplete, multiple: this.multiple, value: this.value, onInput: this.handleInput }), this.error && (hAsync("nv-icon", { key: '8f9746766d8ca61d34671e7957b46a256a54e726', name: "alert-circle", class: "validation", size: "sm" })), this.success && (hAsync("nv-icon", { key: '99abc485edd96a5d772f83339d02141896e99dd9', name: "circle-check", class: "validation", size: "sm" }))), hAsync("slot", { key: '4a0bc519345614a07968e3e7c5d25efc9ba40a02', name: "after-input" })), (this.description ||
|
|
10439
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'd46001bfd7c7a485a9c4dcfa93beafb65dda7b5c', class: "description" }, hAsync("slot", { key: '7580203ed856a803d5dc6d264e10c72c3714de06', name: "description" }, this.description))), (this.errorDescription ||
|
|
10440
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '52ee56aa45e9876b075237f3ddb89618a34567e9', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: '8ee7a5a7cbbcce96e8a94651c140e163a0545286', name: "error-description" }, this.errorDescription)))));
|
|
10318
10441
|
}
|
|
10319
10442
|
static get formAssociated() { return true; }
|
|
10320
10443
|
get el() { return getElement(this); }
|
|
@@ -10427,9 +10550,6 @@ class NvFieldtextarea {
|
|
|
10427
10550
|
const textarea = event.target;
|
|
10428
10551
|
this.value = textarea.value;
|
|
10429
10552
|
this.valueChanged.emit(textarea.value);
|
|
10430
|
-
if (this.autosize) {
|
|
10431
|
-
this.adjustTextareaHeight();
|
|
10432
|
-
}
|
|
10433
10553
|
};
|
|
10434
10554
|
this.handleTextareaContainerClick = () => {
|
|
10435
10555
|
this.textareaElement.focus();
|
|
@@ -10469,46 +10589,50 @@ class NvFieldtextarea {
|
|
|
10469
10589
|
(_a = this.textareaElement) === null || _a === void 0 ? void 0 : _a.style.removeProperty('height');
|
|
10470
10590
|
}
|
|
10471
10591
|
}
|
|
10592
|
+
/**
|
|
10593
|
+
* Make sure to adjust the height of the textarea when the value changes
|
|
10594
|
+
* programmatically or by typing when autosize is on.
|
|
10595
|
+
*/
|
|
10596
|
+
handleValueChange() {
|
|
10597
|
+
if (this.autosize) {
|
|
10598
|
+
this.adjustTextareaHeight();
|
|
10599
|
+
}
|
|
10600
|
+
}
|
|
10472
10601
|
adjustTextareaHeight() {
|
|
10473
10602
|
if (this.textareaElement && this.autosize) {
|
|
10474
|
-
|
|
10475
|
-
|
|
10476
|
-
|
|
10477
|
-
|
|
10478
|
-
|
|
10479
|
-
|
|
10480
|
-
|
|
10481
|
-
|
|
10482
|
-
|
|
10483
|
-
|
|
10484
|
-
|
|
10485
|
-
|
|
10486
|
-
|
|
10487
|
-
|
|
10488
|
-
|
|
10489
|
-
|
|
10490
|
-
|
|
10603
|
+
/**
|
|
10604
|
+
* The first requestAnimationFrame ensures that the DOM has applied any
|
|
10605
|
+
* pending changes (e.g., value updates or attribute changes) before
|
|
10606
|
+
* proceeding to the next frame.
|
|
10607
|
+
*/
|
|
10608
|
+
requestAnimationFrame(() => {
|
|
10609
|
+
/**
|
|
10610
|
+
* The second requestAnimationFrame ensures that the browser has fully
|
|
10611
|
+
* recalculated layout and styles based on the updated DOM, such as
|
|
10612
|
+
* recalculating scrollHeight for the textarea after the new value is
|
|
10613
|
+
* rendered.
|
|
10614
|
+
*/
|
|
10615
|
+
requestAnimationFrame(() => {
|
|
10616
|
+
this.textareaElement.style.height = 'auto';
|
|
10617
|
+
const computedStyle = window.getComputedStyle(this.textareaElement);
|
|
10618
|
+
const lineHeight = parseFloat(computedStyle.lineHeight);
|
|
10619
|
+
const paddingTop = parseFloat(computedStyle.paddingTop);
|
|
10620
|
+
const paddingBottom = parseFloat(computedStyle.paddingBottom);
|
|
10621
|
+
const borderTopWidth = parseFloat(computedStyle.borderTopWidth);
|
|
10622
|
+
const borderBottomWidth = parseFloat(computedStyle.borderBottomWidth);
|
|
10623
|
+
// Calculate min-height based on rows
|
|
10624
|
+
const minHeight = lineHeight * this.rows +
|
|
10625
|
+
paddingTop +
|
|
10626
|
+
paddingBottom +
|
|
10627
|
+
borderTopWidth +
|
|
10628
|
+
borderBottomWidth;
|
|
10629
|
+
this.textareaElement.style.minHeight = `${minHeight}px`;
|
|
10630
|
+
this.textareaElement.style.height =
|
|
10631
|
+
this.textareaElement.scrollHeight + 'px';
|
|
10632
|
+
});
|
|
10633
|
+
});
|
|
10491
10634
|
}
|
|
10492
10635
|
}
|
|
10493
|
-
/**
|
|
10494
|
-
* Class Properties
|
|
10495
|
-
* resize-none resize: none;
|
|
10496
|
-
* resize-y resize: vertical;
|
|
10497
|
-
* resize-x resize: horizontal;
|
|
10498
|
-
* resize resize: both;
|
|
10499
|
-
* @returns {string} The resize class.
|
|
10500
|
-
*/
|
|
10501
|
-
getResize() {
|
|
10502
|
-
if (this.resize === 'none')
|
|
10503
|
-
return 'resize-none';
|
|
10504
|
-
if (this.resize === 'vertical')
|
|
10505
|
-
return 'resize-y';
|
|
10506
|
-
if (this.resize === 'horizontal')
|
|
10507
|
-
return 'resize-x';
|
|
10508
|
-
if (this.resize === 'both')
|
|
10509
|
-
return 'resize';
|
|
10510
|
-
return 'resize-none';
|
|
10511
|
-
}
|
|
10512
10636
|
//#endregion METHODS
|
|
10513
10637
|
/****************************************************************************/
|
|
10514
10638
|
//#region LIFECYCLE
|
|
@@ -10521,15 +10645,16 @@ class NvFieldtextarea {
|
|
|
10521
10645
|
/****************************************************************************/
|
|
10522
10646
|
//#region RENDER
|
|
10523
10647
|
render() {
|
|
10524
|
-
return (hAsync(Host, { key: '
|
|
10525
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
10526
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
10648
|
+
return (hAsync(Host, { key: '683a4bf119b61bd928fca68484adafc290242542' }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '9ee48a620c7d7b5bf13181b4bf2cc013267a98cc', htmlFor: this.inputId }, hAsync("slot", { key: '28b618f5639aa84748319ee17e081e67730b85a5', name: "label" }, this.label))), hAsync("div", { key: '4086bb637f43dd332d078dc2edef046ab08f5bd6', class: "textarea-wrapper" }, hAsync("div", { key: 'ee38cea5b14938865de2416d309952357527528c', class: "textarea-container", onClick: this.handleTextareaContainerClick }, hAsync("textarea", { key: 'fe35a432fe0f737dc49bc37a2a2fdc56c95cef4d', id: this.inputId, ref: e => (this.textareaElement = e), placeholder: this.placeholder, name: this.name, disabled: this.disabled, readOnly: this.readonly, required: this.required, maxlength: this.maxlength, minlength: this.minlength, autocomplete: "off", value: this.value, onInput: this.handleTextarea, rows: this.rows, class: clsx(this.resize === 'none' && 'resize-none', this.resize === 'vertical' && 'resize-y', this.resize === 'horizontal' && 'resize-x', this.resize === 'both' && 'resize') }))), (this.description ||
|
|
10649
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'e44539c99f51bf28978c87eea681286959570446', class: "description" }, hAsync("slot", { key: '1fc80c66fa30871035cc47e2de35fd7ce390f766', name: "description" }, this.description))), (this.errorDescription ||
|
|
10650
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: 'ecb5d0b11d5b9fb3175824abcc0bcc98433b2dbf', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: '28063a5373418b506d30a30fb524cca294024daf', name: "error-description" }, this.errorDescription)))));
|
|
10527
10651
|
}
|
|
10528
10652
|
static get formAssociated() { return true; }
|
|
10529
10653
|
get el() { return getElement(this); }
|
|
10530
10654
|
static get watchers() { return {
|
|
10531
10655
|
"rows": ["rowsChanged"],
|
|
10532
|
-
"autosize": ["autosizeChanged"]
|
|
10656
|
+
"autosize": ["autosizeChanged"],
|
|
10657
|
+
"value": ["handleValueChange"]
|
|
10533
10658
|
}; }
|
|
10534
10659
|
static get style() { return NvFieldtextareaStyle0; }
|
|
10535
10660
|
static get cmpMeta() { return {
|
|
@@ -10626,8 +10751,8 @@ class NvFieldtoggle {
|
|
|
10626
10751
|
/****************************************************************************/
|
|
10627
10752
|
//#region RENDER
|
|
10628
10753
|
render() {
|
|
10629
|
-
return (hAsync(Host, { key: '
|
|
10630
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
10754
|
+
return (hAsync(Host, { key: 'ed329e4f412fe907483baaba3c41601df1b4d42b', class: clsx(this.labelPlacement === 'before' && 'label-placement-before') }, hAsync("div", { key: '007e241bbcefa7f1cab09beef0f14a5617bcffb5', class: "input-container" }, hAsync("input", { key: '95d37868390b5f562b90bc1f9160c8545ca1d99c', type: "checkbox", id: this.inputId, name: this.name, autocomplete: "off", value: this.value, checked: Boolean(this.checked), disabled: this.disabled || this.readonly, readonly: this.readonly })), hAsync("div", { key: 'bdd17bd03068f5da78a1a8c69fe672d77bd19c5b', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '24809a89cb508d48a3c67dd495481ea06f287bfd', htmlFor: this.inputId, class: clsx(this.hideLabel && 'visually-hidden') }, hAsync("slot", { key: 'a8babfbc290a8f9f3da56145246ade9d1ad6f775', name: "label" }, this.label))), (this.description ||
|
|
10755
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '075a518f042244c5823bd1bee758462ea111f1cd', class: "description" }, hAsync("slot", { key: 'c3ac97a983611c0568c0e0753f3c57870fb61cb1', name: "description" }, this.description))))));
|
|
10631
10756
|
}
|
|
10632
10757
|
get el() { return getElement(this); }
|
|
10633
10758
|
static get watchers() { return {
|
|
@@ -10700,7 +10825,7 @@ class NvIcon {
|
|
|
10700
10825
|
//#region RENDER
|
|
10701
10826
|
render() {
|
|
10702
10827
|
//const iconSprite = getAssetPath('assets/icon-sprite.svg');
|
|
10703
|
-
return (hAsync(Host, { key: '
|
|
10828
|
+
return (hAsync(Host, { key: '4f3b6f3fd706975fc5cca36c5efb5ce47fe3ed0a', class: clsx(this.color && `${this.color}`), role: "img", "aria-label": `${this.name}-icon` }, hAsync("svg", { key: '6cdf2e45567317fe70c205514f01d5da0207fd3f', stroke: "currentColor", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: `nv-icon-${this.size}` }, hAsync("use", { key: 'e6e616c6b5a2d07ab342f7c9ed2076630606d3c8', href: `${this.spriteUrl}#${this.name}` }))));
|
|
10704
10829
|
}
|
|
10705
10830
|
static get style() { return NvIconStyle0; }
|
|
10706
10831
|
static get cmpMeta() { return {
|
|
@@ -10791,7 +10916,7 @@ class NvIconbutton {
|
|
|
10791
10916
|
*/
|
|
10792
10917
|
this.handleClick = (event) => {
|
|
10793
10918
|
var _a, _b, _c, _d;
|
|
10794
|
-
if (this.
|
|
10919
|
+
if (this.disabled) {
|
|
10795
10920
|
event.preventDefault();
|
|
10796
10921
|
return;
|
|
10797
10922
|
}
|
|
@@ -10830,7 +10955,7 @@ class NvIconbutton {
|
|
|
10830
10955
|
/****************************************************************************/
|
|
10831
10956
|
//#region RENDER
|
|
10832
10957
|
render() {
|
|
10833
|
-
return (hAsync(Host, { key: '
|
|
10958
|
+
return (hAsync(Host, { key: 'abbd417169f29ce6616909c79b2f4162943791d8', role: "button", type: this.type, tabindex: "0", disabled: this.disabled ? true : undefined, class: clsx('root', `size-${this.size}`, `emphasis-${this.emphasis}`, this.loading && 'loading', `shape-${this.shape}`), onClick: this.handleClick }, this.loading && hAsync("nv-loader", { key: 'd933f2ada3fd2b01361f3508af9201dcde9d3f56', size: this.size }), !this.loading && hAsync("nv-icon", { key: 'a60298b06f4ea8b4837ad8a46c2ad0adc411fc75', name: this.name, size: this.size }), hAsync("slot", { key: 'b19a111bb5304ac176eb834a661b2324f12b57e7' })));
|
|
10834
10959
|
}
|
|
10835
10960
|
static get formAssociated() { return true; }
|
|
10836
10961
|
get el() { return getElement(this); }
|
|
@@ -10878,7 +11003,7 @@ class NvLoader {
|
|
|
10878
11003
|
//#region RENDER
|
|
10879
11004
|
/* <slot> empty to force rendering change */
|
|
10880
11005
|
render() {
|
|
10881
|
-
return (hAsync(Host, { key: '
|
|
11006
|
+
return (hAsync(Host, { key: '0fdf2ee8bad6bab413c729f7dfcf516f5fb46a35', class: clsx(this.size && `size-${this.size}`, this.color && `color-${this.color}`) }));
|
|
10882
11007
|
}
|
|
10883
11008
|
static get style() { return NvLoaderStyle0; }
|
|
10884
11009
|
static get cmpMeta() { return {
|
|
@@ -10906,7 +11031,6 @@ class NvMenu {
|
|
|
10906
11031
|
registerInstance(this, hostRef);
|
|
10907
11032
|
this.menuitemSelected = createEvent(this, "menuitemSelected", 7);
|
|
10908
11033
|
this.isHandlingKeyDown = false;
|
|
10909
|
-
this.isHandlingClick = false;
|
|
10910
11034
|
/****************************************************************************/
|
|
10911
11035
|
//#region PROPERTIES
|
|
10912
11036
|
/**
|
|
@@ -10946,43 +11070,18 @@ class NvMenu {
|
|
|
10946
11070
|
async close() {
|
|
10947
11071
|
this.open = false;
|
|
10948
11072
|
}
|
|
10949
|
-
handleMenuItemSelect(
|
|
10950
|
-
|
|
10951
|
-
if (menuItem.hasAttribute('disabled')) {
|
|
10952
|
-
event.stopPropagation();
|
|
11073
|
+
handleMenuItemSelect(event) {
|
|
11074
|
+
if (this.disableCloseOnSelect)
|
|
10953
11075
|
return;
|
|
10954
|
-
|
|
10955
|
-
// Emit the menuitemSelected event for the selected item
|
|
10956
|
-
const itemId = menuItem.id;
|
|
10957
|
-
if (itemId) {
|
|
10958
|
-
this.menuitemSelected.emit({ itemId });
|
|
10959
|
-
}
|
|
10960
|
-
// Prevent event propagation to avoid multiple triggers
|
|
10961
|
-
event.stopPropagation();
|
|
10962
|
-
if (!this.disableCloseOnSelect) {
|
|
10963
|
-
this.open = false;
|
|
10964
|
-
}
|
|
10965
|
-
}
|
|
10966
|
-
handleMenuClick(event) {
|
|
10967
|
-
if (this.isHandlingClick) {
|
|
11076
|
+
if (event.detail.hasSubmenu)
|
|
10968
11077
|
return;
|
|
10969
|
-
|
|
10970
|
-
this.isHandlingClick = true;
|
|
10971
|
-
const target = event.target;
|
|
10972
|
-
const menuItem = target.closest('nv-menuitem');
|
|
10973
|
-
if (menuItem &&
|
|
10974
|
-
menuItem.tagName === 'NV-MENUITEM' &&
|
|
10975
|
-
!menuItem.hasAttribute('has-submenu')) {
|
|
10976
|
-
this.handleMenuItemSelect(menuItem, event);
|
|
10977
|
-
}
|
|
10978
|
-
this.isHandlingClick = false;
|
|
11078
|
+
this.open = false;
|
|
10979
11079
|
}
|
|
10980
11080
|
handleKeydown(event) {
|
|
10981
11081
|
if (!this.open)
|
|
10982
11082
|
return;
|
|
10983
|
-
if (this.isHandlingKeyDown)
|
|
11083
|
+
if (this.isHandlingKeyDown)
|
|
10984
11084
|
return;
|
|
10985
|
-
}
|
|
10986
11085
|
this.isHandlingKeyDown = true;
|
|
10987
11086
|
if (event.key === 'ArrowDown' ||
|
|
10988
11087
|
event.key === 'ArrowUp' ||
|
|
@@ -10997,17 +11096,6 @@ class NvMenu {
|
|
|
10997
11096
|
this.isHandlingKeyDown = false;
|
|
10998
11097
|
return;
|
|
10999
11098
|
}
|
|
11000
|
-
if (event.key === 'Enter') {
|
|
11001
|
-
const activeElement = document.activeElement;
|
|
11002
|
-
if (activeElement &&
|
|
11003
|
-
activeElement.tagName === 'NV-MENUITEM' &&
|
|
11004
|
-
!activeElement.hasAttribute('has-submenu')) {
|
|
11005
|
-
event.preventDefault();
|
|
11006
|
-
this.handleMenuItemSelect(activeElement, event);
|
|
11007
|
-
}
|
|
11008
|
-
this.isHandlingKeyDown = false;
|
|
11009
|
-
return;
|
|
11010
|
-
}
|
|
11011
11099
|
const menuContent = this.el.querySelector('[slot="content"]');
|
|
11012
11100
|
const menuItems = Array.from(menuContent.childNodes).filter(item => { var _a; return (_a = item.matches) === null || _a === void 0 ? void 0 : _a.call(item, 'nv-menuitem, nv-menu'); });
|
|
11013
11101
|
let currentIndex = menuItems.indexOf(document.activeElement);
|
|
@@ -11091,7 +11179,7 @@ class NvMenu {
|
|
|
11091
11179
|
/****************************************************************************/
|
|
11092
11180
|
//#region RENDER
|
|
11093
11181
|
render() {
|
|
11094
|
-
return (hAsync(Host, { key: '
|
|
11182
|
+
return (hAsync(Host, { key: '2916995a257343bb849c8e64938850e0167d5491' }, hAsync("slot", { key: '012e521f58fd4b603f90c4eb6bef29c71e05586e', name: "trigger" }), hAsync("nv-popover", { key: '187f89fd4dad78f8ebc99082ad936fced52b81d3', ref: el => (this.popoverElement = el), triggerMode: "click", triggerElement: this.triggerElement, placement: this.placement, nested: this.nested, open: this.open }, hAsync("slot", { key: '3d94bcc4a617fd475f3e6057f10e25a3aae772fd', name: "content" }))));
|
|
11095
11183
|
}
|
|
11096
11184
|
get el() { return getElement(this); }
|
|
11097
11185
|
static get style() { return NvMenuStyle0; }
|
|
@@ -11106,7 +11194,7 @@ class NvMenu {
|
|
|
11106
11194
|
"show": [64],
|
|
11107
11195
|
"close": [64]
|
|
11108
11196
|
},
|
|
11109
|
-
"$listeners$": [[
|
|
11197
|
+
"$listeners$": [[0, "menuitemSelected", "handleMenuItemSelect"], [0, "keydown", "handleKeydown"], [0, "openChanged", "handleOpenChanged"]],
|
|
11110
11198
|
"$lazyBundleId$": "-",
|
|
11111
11199
|
"$attrsToReflect$": [["open", "open"]]
|
|
11112
11200
|
}; }
|
|
@@ -11121,6 +11209,7 @@ var NvMenuitemStyle0 = nvMenuitemCss;
|
|
|
11121
11209
|
class NvMenuitem {
|
|
11122
11210
|
constructor(hostRef) {
|
|
11123
11211
|
registerInstance(this, hostRef);
|
|
11212
|
+
this.menuitemSelected = createEvent(this, "menuitemSelected", 7);
|
|
11124
11213
|
/**
|
|
11125
11214
|
* Disables the item, preventing user interaction.
|
|
11126
11215
|
*/
|
|
@@ -11130,11 +11219,37 @@ class NvMenuitem {
|
|
|
11130
11219
|
*/
|
|
11131
11220
|
this.hasSubmenu = false;
|
|
11132
11221
|
}
|
|
11133
|
-
|
|
11222
|
+
handleMenuItemSelect(event) {
|
|
11223
|
+
// If the element is disabled, stop propagation
|
|
11224
|
+
if (this.disabled) {
|
|
11225
|
+
event.stopPropagation();
|
|
11226
|
+
return;
|
|
11227
|
+
}
|
|
11228
|
+
this.menuitemSelected.emit({
|
|
11229
|
+
id: this.el.id,
|
|
11230
|
+
name: this.name,
|
|
11231
|
+
hasSubmenu: this.hasSubmenu,
|
|
11232
|
+
});
|
|
11233
|
+
}
|
|
11234
|
+
handleClick(event) {
|
|
11235
|
+
this.handleMenuItemSelect(event);
|
|
11236
|
+
}
|
|
11237
|
+
handleKeyDown(event) {
|
|
11238
|
+
if (event.key === 'Enter') {
|
|
11239
|
+
const activeElement = document.activeElement;
|
|
11240
|
+
if (activeElement &&
|
|
11241
|
+
activeElement.tagName === 'NV-MENUITEM' &&
|
|
11242
|
+
!activeElement.hasAttribute('has-submenu')) {
|
|
11243
|
+
event.preventDefault();
|
|
11244
|
+
this.handleMenuItemSelect(event);
|
|
11245
|
+
}
|
|
11246
|
+
}
|
|
11247
|
+
}
|
|
11248
|
+
//#endregion EVENTS
|
|
11134
11249
|
/****************************************************************************/
|
|
11135
11250
|
//#region RENDER
|
|
11136
11251
|
render() {
|
|
11137
|
-
return (hAsync(Host, { key: '
|
|
11252
|
+
return (hAsync(Host, { key: 'a67dc0ea59f24f8e603b85fca99a95727559f749', role: "menuitem", tabindex: this.disabled ? '-1' : '0' }, this.icon && hAsync("nv-icon", { key: '5f9b024b930199552cbcb25c20b8acb85cb49dc7', name: this.icon }), hAsync("span", { key: '096c9c5ea2cc697c7eb4de9c43dff60e06751e89', "data-scope": "text" }, hAsync("slot", { key: '87e3815be0751cf1bf4e31dacc3a1658c4d7fdf4' })), this.shortcut && !this.hasSubmenu && hAsync("kbd", { key: 'e0bfbf8cb85eab0b935b37963d52ff14c844db2b' }, this.shortcut), this.hasSubmenu && hAsync("nv-icon", { key: '869adf3673781fb5d21ca493118bfc4e5b56d9c4', name: "chevron-right" })));
|
|
11138
11253
|
}
|
|
11139
11254
|
get el() { return getElement(this); }
|
|
11140
11255
|
static get style() { return NvMenuitemStyle0; }
|
|
@@ -11145,11 +11260,12 @@ class NvMenuitem {
|
|
|
11145
11260
|
"icon": [513],
|
|
11146
11261
|
"disabled": [516],
|
|
11147
11262
|
"shortcut": [513],
|
|
11148
|
-
"hasSubmenu": [516, "has-submenu"]
|
|
11263
|
+
"hasSubmenu": [516, "has-submenu"],
|
|
11264
|
+
"name": [513]
|
|
11149
11265
|
},
|
|
11150
|
-
"$listeners$":
|
|
11266
|
+
"$listeners$": [[2, "click", "handleClick"], [0, "keydown", "handleKeyDown"]],
|
|
11151
11267
|
"$lazyBundleId$": "-",
|
|
11152
|
-
"$attrsToReflect$": [["icon", "icon"], ["disabled", "disabled"], ["shortcut", "shortcut"], ["hasSubmenu", "has-submenu"]]
|
|
11268
|
+
"$attrsToReflect$": [["icon", "icon"], ["disabled", "disabled"], ["shortcut", "shortcut"], ["hasSubmenu", "has-submenu"], ["name", "name"]]
|
|
11153
11269
|
}; }
|
|
11154
11270
|
}
|
|
11155
11271
|
|
|
@@ -13242,6 +13358,7 @@ class NvPopover {
|
|
|
13242
13358
|
constructor(hostRef) {
|
|
13243
13359
|
registerInstance(this, hostRef);
|
|
13244
13360
|
this.openChanged = createEvent(this, "openChanged", 7);
|
|
13361
|
+
this.eventsAttached = false;
|
|
13245
13362
|
/**
|
|
13246
13363
|
* Use this prop to toggle the visibility of the popover. Set to true to show
|
|
13247
13364
|
* the popover and false to hide it.
|
|
@@ -13377,6 +13494,20 @@ class NvPopover {
|
|
|
13377
13494
|
async toggle() {
|
|
13378
13495
|
this.open = !this.open;
|
|
13379
13496
|
}
|
|
13497
|
+
/**
|
|
13498
|
+
* Attaches event listeners to the trigger element, and makes sure this only
|
|
13499
|
+
* happens once.
|
|
13500
|
+
*/
|
|
13501
|
+
attachEventListeners() {
|
|
13502
|
+
if (this.triggerElement && !this.eventsAttached) {
|
|
13503
|
+
addEventListeners(this.closeEvents, document, this);
|
|
13504
|
+
if (this.triggerMode === 'click')
|
|
13505
|
+
addEventListeners(this.clickEvents, this.triggerElement, this);
|
|
13506
|
+
if (this.triggerMode === 'hover')
|
|
13507
|
+
addEventListeners(this.hoverEvents, this.triggerElement, this);
|
|
13508
|
+
this.eventsAttached = true;
|
|
13509
|
+
}
|
|
13510
|
+
}
|
|
13380
13511
|
/**
|
|
13381
13512
|
* Calculates the position of the popover relative to the trigger.
|
|
13382
13513
|
* @docs https://floating-ui.com/docs/computePosition
|
|
@@ -13490,6 +13621,9 @@ class NvPopover {
|
|
|
13490
13621
|
if (!this.triggerElement)
|
|
13491
13622
|
this.triggerElement = Array.from(this.el.children).find(child => child.getAttribute('slot') === 'trigger');
|
|
13492
13623
|
}
|
|
13624
|
+
componentWillUpdate() {
|
|
13625
|
+
this.attachEventListeners();
|
|
13626
|
+
}
|
|
13493
13627
|
componentDidLoad() {
|
|
13494
13628
|
// Initial inline style setup
|
|
13495
13629
|
if (!this.open) {
|
|
@@ -13502,11 +13636,7 @@ class NvPopover {
|
|
|
13502
13636
|
this.popoverElement.removeAttribute('hidden');
|
|
13503
13637
|
}
|
|
13504
13638
|
this.positionPopover();
|
|
13505
|
-
|
|
13506
|
-
if (this.triggerMode === 'click')
|
|
13507
|
-
addEventListeners(this.clickEvents, this.triggerElement, this);
|
|
13508
|
-
if (this.triggerMode === 'hover')
|
|
13509
|
-
addEventListeners(this.hoverEvents, this.triggerElement, this);
|
|
13639
|
+
this.attachEventListeners();
|
|
13510
13640
|
}
|
|
13511
13641
|
disconnectedCallback() {
|
|
13512
13642
|
removeEventListeners(this.closeEvents, document, this);
|
|
@@ -13519,7 +13649,7 @@ class NvPopover {
|
|
|
13519
13649
|
/****************************************************************************/
|
|
13520
13650
|
//#region RENDER
|
|
13521
13651
|
render() {
|
|
13522
|
-
return (hAsync(Host, { key: '
|
|
13652
|
+
return (hAsync(Host, { key: '17eff9af9c2b956bb09a5398f08c1bd6cc748d30' }, hAsync("slot", { key: '4633c6f88fe81214a5b2b189c32b6c6ed71c7c0a', name: "trigger" }), hAsync("div", { key: '792f7ad6fe7d7405e617e54819d90a76b82fc36c', "data-scope": "popover", hidden: true, ref: el => (this.popoverElement = el) }, this.hasArrow && (hAsync("div", { key: '8acc19dd8728f2b164172eb53accfea4ac41e8b0', "data-scope": "arrow", ref: el => (this.arrowElement = el) })), hAsync("slot", { key: 'b0785e444dabddb50f7105aa958c81967ee27e5d', name: "content" }))));
|
|
13523
13653
|
}
|
|
13524
13654
|
get el() { return getElement(this); }
|
|
13525
13655
|
static get watchers() { return {
|
|
@@ -13564,7 +13694,7 @@ class NvRow {
|
|
|
13564
13694
|
/****************************************************************************/
|
|
13565
13695
|
//#region RENDER
|
|
13566
13696
|
render() {
|
|
13567
|
-
return (hAsync(Host, { key: '
|
|
13697
|
+
return (hAsync(Host, { key: 'f43c7500aaec670bdbf7b78bdb257820e9a6a2f4' }, hAsync("slot", { key: '2c5c9634138d7be6dc46d84dfa75fad3a6d72a71' })));
|
|
13568
13698
|
}
|
|
13569
13699
|
static get style() { return NvRowStyle0; }
|
|
13570
13700
|
static get cmpMeta() { return {
|
|
@@ -13599,7 +13729,7 @@ class NvStack {
|
|
|
13599
13729
|
/****************************************************************************/
|
|
13600
13730
|
//#region RENDER
|
|
13601
13731
|
render() {
|
|
13602
|
-
return (hAsync(Host, { key: '
|
|
13732
|
+
return (hAsync(Host, { key: 'adb66e681e65a9ae43a1d6651d5c85299a60d095', class: clsx(this.fill && 'nv-stack-fill', this.flex && 'nv-stack-flex', this.full && 'w-full', this.gutter && !this.vertical && `gutter-x-${this.gutter}`, this.gutter && this.vertical && `gutter-y-${this.gutter}`, this.vertical && 'nv-stack-vertical') }, hAsync("slot", { key: '882bebcf2fe4c09a8a5bbf689c54d849a99e5941' })));
|
|
13603
13733
|
}
|
|
13604
13734
|
static get style() { return NvStackStyle0; }
|
|
13605
13735
|
static get cmpMeta() { return {
|
|
@@ -13748,7 +13878,7 @@ class NvTable {
|
|
|
13748
13878
|
.querySelector('[slot="body"]')
|
|
13749
13879
|
.querySelectorAll('nv-tablerow'))
|
|
13750
13880
|
: [];
|
|
13751
|
-
return (hAsync(Host, { key: '
|
|
13881
|
+
return (hAsync(Host, { key: '1db7f4f0eda8e4659c2929ef137a69e5dfd60cab' }, hAsync("div", { key: '34d2c4d60a415be61189474db1ca042c48a728dd', class: "hidden" }, hAsync("slot", { key: '0b9f4234024ee63965c6f42064a947af1c45769d' }), hAsync("slot", { key: 'aa88f265936ee32cd2d07d4dd3df94a5a32bad5e', name: "head" }), hAsync("slot", { key: 'f027b8d3570643f9d9e85281c4cc74e4143e91be', name: "body" })), hAsync("slot", { key: '9ece2fef9862c961e35f10d12077f27c95262bfe', name: "before" }), this.parsedColumns.length === 0 &&
|
|
13752
13882
|
this.parsedData.length === 0 &&
|
|
13753
13883
|
headerRows.length === 0 &&
|
|
13754
13884
|
bodyRows.length === 0 ? (hAsync("p", null, this.noColumnsNoDataMessage)) : (hAsync("table", null, this.parsedColumns.length > 0 ? (hAsync("thead", null, hAsync("tr", null, this.parsedColumns.map(column => (hAsync("th", null, column)))))) : headerRows.length > 0 ? (hAsync("thead", null, headerRows.map(row => {
|
|
@@ -13759,7 +13889,7 @@ class NvTable {
|
|
|
13759
13889
|
: Object.values(row).map(value => hAsync("td", null, value)))))) : bodyRows.length > 0 ? (bodyRows.map(row => {
|
|
13760
13890
|
const cells = Array.from(row.querySelectorAll('nv-tabledatacell'));
|
|
13761
13891
|
return (hAsync("tr", null, cells.map(cell => (hAsync("td", { colSpan: cell.colspan, rowSpan: cell.rowspan, headers: cell.headers, innerHTML: cell.innerHTML })))));
|
|
13762
|
-
})) : null))), hAsync("slot", { key: '
|
|
13892
|
+
})) : null))), hAsync("slot", { key: 'bf544e391ea06f3cad8f90450e71af2b6b973dd7', name: "after" })));
|
|
13763
13893
|
}
|
|
13764
13894
|
get el() { return getElement(this); }
|
|
13765
13895
|
static get watchers() { return {
|
|
@@ -13803,7 +13933,7 @@ class NvTablebody {
|
|
|
13803
13933
|
/****************************************************************************/
|
|
13804
13934
|
//#region RENDER
|
|
13805
13935
|
render() {
|
|
13806
|
-
return (hAsync(Host, { key: '
|
|
13936
|
+
return (hAsync(Host, { key: '7a5935aabb4a5136d60d1f16047f914bbd187ef3' }, hAsync("tbody", { key: 'ec41d476bec5f5e1b745cc0282b6b19a4ed674af' }, hAsync("slot", { key: '5c974cca2fd9207860615d81f4f0343e5d69d95c' }))));
|
|
13807
13937
|
}
|
|
13808
13938
|
static get style() { return NvTablebodyStyle0; }
|
|
13809
13939
|
static get cmpMeta() { return {
|
|
@@ -13846,7 +13976,7 @@ class NvTablecolumn {
|
|
|
13846
13976
|
/****************************************************************************/
|
|
13847
13977
|
//#region RENDER
|
|
13848
13978
|
render() {
|
|
13849
|
-
return (hAsync(Host, { key: '
|
|
13979
|
+
return (hAsync(Host, { key: '976a7fb6560a797a1fdf754714f44f2879cf7346' }, hAsync("th", { key: 'd2fb85bea5e7ca5ee9cf8a6e0b5ec86d248f400b', abbr: this.abbr, colSpan: this.colspan, headers: this.headers, rowSpan: this.rowspan, scope: this.scope }, hAsync("slot", { key: '0e7fc2dbda83ac114bcb70cfd81c4f324c4155a6' }))));
|
|
13850
13980
|
}
|
|
13851
13981
|
static get style() { return NvTablecolumnStyle0; }
|
|
13852
13982
|
static get cmpMeta() { return {
|
|
@@ -13897,7 +14027,7 @@ class NvTabledatacell {
|
|
|
13897
14027
|
/****************************************************************************/
|
|
13898
14028
|
//#region RENDER
|
|
13899
14029
|
render() {
|
|
13900
|
-
return (hAsync(Host, { key: '
|
|
14030
|
+
return (hAsync(Host, { key: '7ac83ec253d7dc4646a647b90f2930ea18d20c9b' }, hAsync("td", { key: 'dedbdb25b21e28cfde242966dc950e1ddf1497ca', colSpan: this.colspan, rowSpan: this.rowspan, headers: this.headers }, hAsync("slot", { key: 'f899ee0423444463fb943c4fd9096bc91ba16ea3' }))));
|
|
13901
14031
|
}
|
|
13902
14032
|
static get style() { return NvTabledatacellStyle0; }
|
|
13903
14033
|
static get cmpMeta() { return {
|
|
@@ -13927,7 +14057,7 @@ class NvTablehead {
|
|
|
13927
14057
|
/****************************************************************************/
|
|
13928
14058
|
//#region RENDER
|
|
13929
14059
|
render() {
|
|
13930
|
-
return (hAsync(Host, { key: '
|
|
14060
|
+
return (hAsync(Host, { key: '57d72ca018eb61884bcc91df678d8c97c44463b5' }, hAsync("thead", { key: '30a4ab6720e842aa5fcbebe66f3de4a7fa1aa9e1' }, hAsync("slot", { key: '03ac5c8da1260aa29acb359e2b6fe53fb36bfac4' }))));
|
|
13931
14061
|
}
|
|
13932
14062
|
static get style() { return NvTableheadStyle0; }
|
|
13933
14063
|
static get cmpMeta() { return {
|
|
@@ -13953,7 +14083,7 @@ class NvTablerow {
|
|
|
13953
14083
|
/****************************************************************************/
|
|
13954
14084
|
//#region RENDER
|
|
13955
14085
|
render() {
|
|
13956
|
-
return (hAsync(Host, { key: '
|
|
14086
|
+
return (hAsync(Host, { key: '4c4a058b45a05fcff3ed541f7ffcb80aaaec6c3d' }, hAsync("tr", { key: 'c37eb2098562ba01e8376b5ab6614f64988fe454' }, hAsync("slot", { key: '4b202392edb7345547c423697a2211457b591c00' }))));
|
|
13957
14087
|
}
|
|
13958
14088
|
static get style() { return NvTablerowStyle0; }
|
|
13959
14089
|
static get cmpMeta() { return {
|
|
@@ -13993,15 +14123,16 @@ class NvTooltip {
|
|
|
13993
14123
|
/****************************************************************************/
|
|
13994
14124
|
//#region LIFECYCLE
|
|
13995
14125
|
componentWillLoad() {
|
|
13996
|
-
|
|
13997
|
-
|
|
13998
|
-
|
|
14126
|
+
if (!this.triggerElement)
|
|
14127
|
+
this.triggerElement = Array.from(this.el.children).find(child => {
|
|
14128
|
+
return child.getAttribute('slot') === null;
|
|
14129
|
+
});
|
|
13999
14130
|
}
|
|
14000
14131
|
//#endregion LIFECYCLE
|
|
14001
14132
|
/****************************************************************************/
|
|
14002
14133
|
//#region RENDER
|
|
14003
14134
|
render() {
|
|
14004
|
-
return (hAsync(Host, { key: '
|
|
14135
|
+
return (hAsync(Host, { key: '943d4c2989f7a2f63b1f22f196b1f6d26b7f8edf' }, hAsync("slot", { key: '82784aa5225fe8c437a52c97242ff2db2cb41fb6' }), hAsync("nv-popover", { key: 'e560ee505f65e0ca0fa525959ad9aa321cd6821d', triggerMode: "hover", hasArrow: true, placement: this.placement, triggerElement: this.triggerElement, groupName: 'tooltip', enterDelay: this.enterDelay }, hAsync("p", { key: 'da9632921d70c9ae6a75639e65e1e83160ad16e4', slot: "content" }, this.message), hAsync("slot", { key: '3bbe81d6c0004d9f6691fd89c5732409e57e26e6', name: "content" }))));
|
|
14005
14136
|
}
|
|
14006
14137
|
get el() { return getElement(this); }
|
|
14007
14138
|
static get style() { return NvTooltipStyle0; }
|
|
@@ -14009,6 +14140,7 @@ class NvTooltip {
|
|
|
14009
14140
|
"$flags$": 4,
|
|
14010
14141
|
"$tagName$": "nv-tooltip",
|
|
14011
14142
|
"$members$": {
|
|
14143
|
+
"triggerElement": [1040],
|
|
14012
14144
|
"message": [1],
|
|
14013
14145
|
"placement": [1],
|
|
14014
14146
|
"enterDelay": [2, "enter-delay"]
|
|
@@ -14025,6 +14157,8 @@ registerComponents([
|
|
|
14025
14157
|
NvAvatar,
|
|
14026
14158
|
NvBadge,
|
|
14027
14159
|
NvBaseComponent,
|
|
14160
|
+
NvBreadcrumb,
|
|
14161
|
+
NvBreadcrumbs,
|
|
14028
14162
|
NvButton,
|
|
14029
14163
|
NvCol,
|
|
14030
14164
|
NvDatagrid,
|