@nova-design-system/nova-webcomponents 3.0.0-beta.30 → 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 +1320 -1743
- package/dist/cjs/{app-globals-d8cbb987.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-c50face0.js → index-ddc37f87.js} +866 -495
- 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 +4 -4
- package/dist/cjs/native.cjs.js.map +1 -1
- package/dist/cjs/nv-alert.cjs.entry.js +24 -11
- package/dist/cjs/nv-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-avatar.cjs.entry.js +11 -14
- package/dist/cjs/nv-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-badge.cjs.entry.js +145 -0
- package/dist/cjs/nv-badge.cjs.entry.js.map +1 -0
- 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 +43 -11
- package/dist/cjs/nv-button.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-col.cjs.entry.js +2 -3
- package/dist/cjs/nv-col.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-datagrid.cjs.entry.js +34 -8
- 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 -4
- package/dist/cjs/nv-datagridcolumn.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-datagriddatacell.cjs.entry.js +2 -3
- package/dist/cjs/nv-datagriddatacell.cjs.entry.js.map +1 -1
- 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 +44 -13
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddropdown.cjs.entry.js +121 -43
- package/dist/cjs/nv-fielddropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js +13 -7
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldnumber.cjs.entry.js +48 -22
- package/dist/cjs/nv-fieldnumber.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldpassword.cjs.entry.js +65 -24
- package/dist/cjs/nv-fieldpassword.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldradio.cjs.entry.js +29 -11
- package/dist/cjs/nv-fieldradio.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldselect.cjs.entry.js +67 -26
- package/dist/cjs/nv-fieldselect.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldtext.cjs.entry.js +55 -25
- package/dist/cjs/nv-fieldtext.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js +103 -63
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldtoggle.cjs.entry.js +21 -8
- package/dist/cjs/nv-fieldtoggle.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-icon.cjs.entry.js +6 -11
- package/dist/cjs/nv-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/{nv-iconbutton_2.cjs.entry.js → nv-iconbutton.cjs.entry.js} +45 -32
- package/dist/cjs/nv-iconbutton.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-loader.cjs.entry.js +35 -0
- package/dist/cjs/nv-loader.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-menu.cjs.entry.js +26 -44
- package/dist/cjs/nv-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-menuitem.cjs.entry.js +36 -5
- package/dist/cjs/nv-menuitem.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-popover.cjs.entry.js +68 -18
- 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 +8 -6
- package/dist/cjs/nv-stack.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-table.cjs.entry.js +28 -7
- package/dist/cjs/nv-table.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-tablebody.cjs.entry.js +2 -2
- package/dist/cjs/nv-tablecolumn.cjs.entry.js +16 -5
- package/dist/cjs/nv-tablecolumn.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-tabledatacell.cjs.entry.js +18 -3
- package/dist/cjs/nv-tabledatacell.cjs.entry.js.map +1 -1
- 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 +16 -6
- package/dist/cjs/nv-tooltip.cjs.entry.js.map +1 -1
- package/dist/collection/collection-manifest.json +4 -4
- package/dist/collection/components/nv-alert/nv-alert.js +38 -9
- package/dist/collection/components/nv-alert/nv-alert.js.map +1 -1
- package/dist/collection/components/nv-avatar/nv-avatar.css +0 -33
- package/dist/collection/components/nv-avatar/nv-avatar.js +32 -11
- package/dist/collection/components/nv-avatar/nv-avatar.js.map +1 -1
- package/dist/collection/components/nv-badge/nv-badge.css +20 -53
- package/dist/collection/components/nv-badge/nv-badge.js +56 -12
- package/dist/collection/components/nv-badge/nv-badge.js.map +1 -1
- 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 +56 -10
- 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 +3 -4
- package/dist/collection/components/nv-col/nv-col.js.map +1 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.js +45 -7
- 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 +5 -5
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.js.map +1 -1
- package/dist/collection/components/nv-datagriddatacell/nv-datagriddatacell.js +3 -4
- package/dist/collection/components/nv-datagriddatacell/nv-datagriddatacell.js.map +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 +77 -12
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js.map +1 -1
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.css +17 -2
- 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 +150 -42
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js.map +1 -1
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.css +9 -17
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js +19 -5
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js.map +1 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.css +1 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js +80 -20
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js.map +1 -1
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js +104 -25
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js.map +1 -1
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js +52 -10
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js.map +1 -1
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.css +1 -1
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js +97 -26
- 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 +98 -26
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js.map +1 -1
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js +144 -64
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js.map +1 -1
- package/dist/collection/components/nv-fieldtoggle/nv-fieldtoggle.js +40 -7
- package/dist/collection/components/nv-fieldtoggle/nv-fieldtoggle.js.map +1 -1
- package/dist/collection/components/nv-icon/nv-icon.js +22 -11
- 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 +67 -12
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.js.map +1 -1
- package/dist/collection/components/nv-loader/nv-loader.js +12 -2
- package/dist/collection/components/nv-loader/nv-loader.js.map +1 -1
- package/dist/collection/components/nv-menu/nv-menu.js +38 -48
- package/dist/collection/components/nv-menu/nv-menu.js.map +1 -1
- package/dist/collection/components/nv-menuitem/nv-menuitem.js +102 -6
- package/dist/collection/components/nv-menuitem/nv-menuitem.js.map +1 -1
- package/dist/collection/components/nv-popover/nv-popover.js +91 -19
- 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 +17 -5
- package/dist/collection/components/nv-stack/nv-stack.js.map +1 -1
- package/dist/collection/components/nv-table/nv-table.js +39 -6
- package/dist/collection/components/nv-table/nv-table.js.map +1 -1
- package/dist/collection/components/nv-tablebody/nv-tablebody.js +1 -1
- package/dist/collection/components/nv-tablecolumn/nv-tablecolumn.js +25 -4
- package/dist/collection/components/nv-tablecolumn/nv-tablecolumn.js.map +1 -1
- package/dist/collection/components/nv-tabledatacell/nv-tabledatacell.js +23 -2
- package/dist/collection/components/nv-tabledatacell/nv-tabledatacell.js.map +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 +47 -5
- 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 +25 -12
- package/dist/components/nv-alert.js.map +1 -1
- package/dist/components/nv-avatar.js +12 -15
- package/dist/components/nv-avatar.js.map +1 -1
- package/dist/components/nv-badge.js +173 -1
- 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-fieldmultiselect.d.ts → nv-breadcrumb.d.ts} +4 -4
- 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 +44 -12
- package/dist/components/nv-button.js.map +1 -1
- package/dist/components/nv-col.js +2 -3
- package/dist/components/nv-col.js.map +1 -1
- package/dist/components/nv-datagrid.js +34 -8
- package/dist/components/nv-datagrid.js.map +1 -1
- package/dist/components/nv-datagridbody.js +2 -2
- package/dist/components/nv-datagridcolumn.js +2 -4
- package/dist/components/nv-datagridcolumn.js.map +1 -1
- package/dist/components/nv-datagriddatacell.js +2 -3
- package/dist/components/nv-datagriddatacell.js.map +1 -1
- package/dist/components/nv-datagridhead.js +2 -2
- package/dist/components/nv-datagridrow.js +2 -2
- package/dist/components/nv-fieldcheckbox.js +152 -1
- package/dist/components/nv-fieldcheckbox.js.map +1 -1
- package/dist/components/nv-fielddropdown.js +126 -48
- package/dist/components/nv-fielddropdown.js.map +1 -1
- package/dist/components/nv-fielddropdownitem.js +1 -1
- package/dist/components/nv-fieldnumber.js +49 -23
- package/dist/components/nv-fieldnumber.js.map +1 -1
- package/dist/components/nv-fieldpassword.js +68 -27
- package/dist/components/nv-fieldpassword.js.map +1 -1
- package/dist/components/nv-fieldradio.js +29 -11
- package/dist/components/nv-fieldradio.js.map +1 -1
- package/dist/components/nv-fieldselect.js +69 -28
- package/dist/components/nv-fieldselect.js.map +1 -1
- package/dist/components/nv-fieldtext.js +56 -26
- package/dist/components/nv-fieldtext.js.map +1 -1
- package/dist/components/nv-fieldtextarea.js +106 -65
- package/dist/components/nv-fieldtextarea.js.map +1 -1
- package/dist/components/nv-fieldtoggle.js +21 -8
- package/dist/components/nv-fieldtoggle.js.map +1 -1
- 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 +28 -46
- package/dist/components/nv-menu.js.map +1 -1
- package/dist/components/nv-menuitem.js +40 -8
- 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 +8 -6
- package/dist/components/nv-stack.js.map +1 -1
- package/dist/components/nv-table.js +28 -7
- package/dist/components/nv-table.js.map +1 -1
- package/dist/components/nv-tablebody.js +2 -2
- package/dist/components/nv-tablecolumn.js +16 -5
- package/dist/components/nv-tablecolumn.js.map +1 -1
- package/dist/components/nv-tabledatacell.js +18 -3
- package/dist/components/nv-tabledatacell.js.map +1 -1
- package/dist/components/nv-tablehead.js +2 -2
- package/dist/components/nv-tablerow.js +2 -2
- package/dist/components/nv-tooltip.js +1 -54
- package/dist/components/nv-tooltip.js.map +1 -1
- package/dist/components/{p-b12abc99.js → p-09a2a880.js} +15 -9
- package/dist/components/p-09a2a880.js.map +1 -0
- package/dist/components/{p-8bec002e.js → p-0cdf2cc7.js} +47 -14
- package/dist/components/{p-8bec002e.js.map → p-0cdf2cc7.js.map} +1 -1
- package/dist/components/{p-ae6a0d80.js → p-3a65a05e.js} +211 -172
- package/dist/components/p-3a65a05e.js.map +1 -0
- package/dist/components/{p-d506ae63.js → p-3b209e94.js} +851 -492
- package/dist/components/p-3b209e94.js.map +1 -0
- package/dist/components/{p-a15ddd42.js → p-74407727.js} +7 -1
- package/dist/components/p-74407727.js.map +1 -0
- package/dist/components/{p-d70df149.js → p-a61d9ce8.js} +7 -12
- package/dist/components/p-a61d9ce8.js.map +1 -0
- package/dist/components/{p-a1aa8970.js → p-b7462fc2.js} +10 -4
- package/dist/components/p-b7462fc2.js.map +1 -0
- package/dist/components/{p-d5dd3def.js → p-ce67d70c.js} +70 -20
- 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.d.ts +8 -0
- package/dist/docs.json +1321 -1736
- package/dist/esm/{app-globals-eea8674a.js → app-globals-246d6b7c.js} +2 -2
- package/dist/esm/app-globals-246d6b7c.js.map +1 -0
- package/dist/esm/{constants-e9bee611.js → constants-7b642e1d.js} +7 -1
- package/dist/esm/constants-7b642e1d.js.map +1 -0
- package/dist/esm/{index-e7b35c14.js → index-cd557d0a.js} +866 -495
- 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 +5 -5
- package/dist/esm/native.js.map +1 -1
- package/dist/esm/nv-alert.entry.js +24 -11
- package/dist/esm/nv-alert.entry.js.map +1 -1
- package/dist/esm/nv-avatar.entry.js +11 -14
- package/dist/esm/nv-avatar.entry.js.map +1 -1
- package/dist/esm/nv-badge.entry.js +141 -0
- package/dist/esm/nv-badge.entry.js.map +1 -0
- 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 +43 -11
- package/dist/esm/nv-button.entry.js.map +1 -1
- package/dist/esm/nv-col.entry.js +2 -3
- package/dist/esm/nv-col.entry.js.map +1 -1
- package/dist/esm/nv-datagrid.entry.js +34 -8
- 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 -4
- package/dist/esm/nv-datagridcolumn.entry.js.map +1 -1
- package/dist/esm/nv-datagriddatacell.entry.js +2 -3
- package/dist/esm/nv-datagriddatacell.entry.js.map +1 -1
- 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 +44 -13
- package/dist/esm/nv-fieldcheckbox.entry.js.map +1 -1
- package/dist/esm/nv-fielddropdown.entry.js +121 -43
- package/dist/esm/nv-fielddropdown.entry.js.map +1 -1
- package/dist/esm/nv-fielddropdownitem.entry.js +13 -7
- package/dist/esm/nv-fielddropdownitem.entry.js.map +1 -1
- package/dist/esm/nv-fieldnumber.entry.js +48 -22
- package/dist/esm/nv-fieldnumber.entry.js.map +1 -1
- package/dist/esm/nv-fieldpassword.entry.js +65 -24
- package/dist/esm/nv-fieldpassword.entry.js.map +1 -1
- package/dist/esm/nv-fieldradio.entry.js +29 -11
- package/dist/esm/nv-fieldradio.entry.js.map +1 -1
- package/dist/esm/nv-fieldselect.entry.js +67 -26
- package/dist/esm/nv-fieldselect.entry.js.map +1 -1
- package/dist/esm/nv-fieldtext.entry.js +55 -25
- package/dist/esm/nv-fieldtext.entry.js.map +1 -1
- package/dist/esm/nv-fieldtextarea.entry.js +103 -63
- package/dist/esm/nv-fieldtextarea.entry.js.map +1 -1
- package/dist/esm/nv-fieldtoggle.entry.js +21 -8
- package/dist/esm/nv-fieldtoggle.entry.js.map +1 -1
- package/dist/esm/nv-icon.entry.js +6 -11
- package/dist/esm/nv-icon.entry.js.map +1 -1
- package/dist/esm/{nv-iconbutton_2.entry.js → nv-iconbutton.entry.js} +46 -32
- package/dist/esm/nv-iconbutton.entry.js.map +1 -0
- package/dist/esm/nv-loader.entry.js +31 -0
- package/dist/esm/nv-loader.entry.js.map +1 -0
- package/dist/esm/nv-menu.entry.js +26 -44
- package/dist/esm/nv-menu.entry.js.map +1 -1
- package/dist/esm/nv-menuitem.entry.js +36 -5
- package/dist/esm/nv-menuitem.entry.js.map +1 -1
- package/dist/esm/nv-popover.entry.js +69 -19
- 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 +8 -6
- package/dist/esm/nv-stack.entry.js.map +1 -1
- package/dist/esm/nv-table.entry.js +28 -7
- package/dist/esm/nv-table.entry.js.map +1 -1
- package/dist/esm/nv-tablebody.entry.js +2 -2
- package/dist/esm/nv-tablecolumn.entry.js +16 -5
- package/dist/esm/nv-tablecolumn.entry.js.map +1 -1
- package/dist/esm/nv-tabledatacell.entry.js +18 -3
- package/dist/esm/nv-tabledatacell.entry.js.map +1 -1
- 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 +16 -6
- 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-10a06059.entry.js +2 -0
- package/dist/native/p-10a06059.entry.js.map +1 -0
- package/dist/native/p-132b8588.entry.js +2 -0
- package/dist/native/p-132b8588.entry.js.map +1 -0
- 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-5b4bdbe2.entry.js → p-3e9521a0.entry.js} +2 -2
- package/dist/native/p-3e9521a0.entry.js.map +1 -0
- package/dist/native/{p-69ca8c88.entry.js → p-40f4828a.entry.js} +2 -2
- package/dist/native/p-40f4828a.entry.js.map +1 -0
- 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-671699bf.entry.js.map → p-52a7f936.entry.js.map} +1 -1
- package/dist/native/{p-13070761.entry.js → p-5d0dc7c8.entry.js} +2 -2
- package/dist/native/p-5d0dc7c8.entry.js.map +1 -0
- package/dist/native/p-5d67a825.entry.js +2 -0
- package/dist/native/p-5d67a825.entry.js.map +1 -0
- package/dist/native/p-5e467b49.entry.js +2 -0
- package/dist/native/{p-982e474f.entry.js.map → p-5e467b49.entry.js.map} +1 -1
- package/dist/native/p-6c1b9c89.entry.js +2 -0
- package/dist/native/{p-589eb477.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-65ad60eb.entry.js → p-74778f5f.entry.js} +2 -2
- package/dist/native/p-74778f5f.entry.js.map +1 -0
- 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-91d4b4d7.entry.js.map +1 -0
- package/dist/native/p-9341cf9d.entry.js +2 -0
- package/dist/native/{p-2fca31c0.entry.js.map → p-9341cf9d.entry.js.map} +1 -1
- package/dist/native/p-9b093b92.js +3 -0
- package/dist/native/p-9b093b92.js.map +1 -0
- package/dist/native/{p-91d30cd7.entry.js → p-9cef006d.entry.js} +2 -2
- package/dist/native/p-9cef006d.entry.js.map +1 -0
- package/dist/native/p-a9b6461b.entry.js +2 -0
- package/dist/native/p-a9b6461b.entry.js.map +1 -0
- package/dist/native/{p-7b2d8b8c.entry.js → p-b902c7c0.entry.js} +2 -2
- package/dist/native/p-b902c7c0.entry.js.map +1 -0
- package/dist/native/p-bbc45099.entry.js +2 -0
- package/dist/native/{p-12eaebd6.entry.js → p-c59e3500.entry.js} +2 -2
- package/dist/native/p-c59e3500.entry.js.map +1 -0
- package/dist/native/{p-305951e4.entry.js → p-d0f83d1f.entry.js} +2 -2
- package/dist/native/p-d0f83d1f.entry.js.map +1 -0
- package/dist/native/{p-7b3a4cbf.entry.js → p-e390557d.entry.js} +2 -2
- 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-e5fbe545.entry.js +2 -0
- package/dist/native/p-e5fbe545.entry.js.map +1 -0
- 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-e842220b.entry.js.map → p-eda8cd9d.entry.js.map} +1 -1
- 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-92e3e334.entry.js → p-f2ea8aa9.entry.js} +2 -2
- package/dist/native/p-f2ea8aa9.entry.js.map +1 -0
- package/dist/native/p-f42e87b5.entry.js +2 -0
- package/dist/native/p-f4ecacf6.entry.js +2 -0
- package/dist/native/p-f4ecacf6.entry.js.map +1 -0
- package/dist/native/{p-36d5158c.entry.js → p-f7db0785.entry.js} +3 -3
- package/dist/native/p-f7db0785.entry.js.map +1 -0
- 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 +7 -11
- 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 +105 -354
- 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 +117 -400
- package/hydrate/index.js +2116 -2339
- package/hydrate/index.mjs +2116 -2339
- package/package.json +17 -15
- package/dist/cjs/app-globals-d8cbb987.js.map +0 -1
- package/dist/cjs/constants-33057c89.js.map +0 -1
- package/dist/cjs/index-c50face0.js.map +0 -1
- package/dist/cjs/nv-badge_2.cjs.entry.js +0 -159
- package/dist/cjs/nv-badge_2.cjs.entry.js.map +0 -1
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +0 -1038
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js.map +0 -1
- package/dist/cjs/nv-iconbutton_2.cjs.entry.js.map +0 -1
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.css +0 -12
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.docs.js +0 -6
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.docs.js.map +0 -1
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js +0 -171
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js.map +0 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.css +0 -201
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js +0 -257
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js +0 -1578
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.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/nv-fielddropdownitemcheck.d.ts +0 -11
- package/dist/components/nv-fielddropdownitemcheck.js +0 -8
- package/dist/components/nv-fielddropdownitemcheck.js.map +0 -1
- package/dist/components/nv-fieldmultiselect.js +0 -1129
- package/dist/components/nv-fieldmultiselect.js.map +0 -1
- package/dist/components/p-5ce661bd.js +0 -125
- package/dist/components/p-5ce661bd.js.map +0 -1
- package/dist/components/p-a15ddd42.js.map +0 -1
- package/dist/components/p-a1aa8970.js.map +0 -1
- package/dist/components/p-a4802979.js +0 -151
- package/dist/components/p-a4802979.js.map +0 -1
- package/dist/components/p-ae6a0d80.js.map +0 -1
- package/dist/components/p-b12abc99.js.map +0 -1
- package/dist/components/p-d506ae63.js.map +0 -1
- package/dist/components/p-d5dd3def.js.map +0 -1
- package/dist/components/p-d70df149.js.map +0 -1
- package/dist/components/p-e4641c41.js +0 -72
- package/dist/components/p-e4641c41.js.map +0 -1
- package/dist/esm/app-globals-eea8674a.js.map +0 -1
- package/dist/esm/constants-e9bee611.js.map +0 -1
- package/dist/esm/index-e7b35c14.js.map +0 -1
- package/dist/esm/nv-badge_2.entry.js +0 -154
- package/dist/esm/nv-badge_2.entry.js.map +0 -1
- package/dist/esm/nv-fieldmultiselect.entry.js +0 -1034
- package/dist/esm/nv-fieldmultiselect.entry.js.map +0 -1
- package/dist/esm/nv-iconbutton_2.entry.js.map +0 -1
- package/dist/native/p-0fbb962b.entry.js +0 -2
- package/dist/native/p-0fbb962b.entry.js.map +0 -1
- package/dist/native/p-12eaebd6.entry.js.map +0 -1
- package/dist/native/p-13070761.entry.js.map +0 -1
- package/dist/native/p-1aaee302.entry.js +0 -2
- package/dist/native/p-1aaee302.entry.js.map +0 -1
- package/dist/native/p-1c689ec7.entry.js +0 -2
- package/dist/native/p-1c689ec7.entry.js.map +0 -1
- package/dist/native/p-20c7fc4d.entry.js +0 -2
- package/dist/native/p-20c7fc4d.entry.js.map +0 -1
- package/dist/native/p-2fca31c0.entry.js +0 -2
- package/dist/native/p-305951e4.entry.js.map +0 -1
- package/dist/native/p-306d1f04.entry.js +0 -2
- package/dist/native/p-306d1f04.entry.js.map +0 -1
- package/dist/native/p-330c929d.entry.js +0 -2
- package/dist/native/p-330c929d.entry.js.map +0 -1
- package/dist/native/p-36d5158c.entry.js.map +0 -1
- package/dist/native/p-39dbb15b.entry.js +0 -2
- package/dist/native/p-39dbb15b.entry.js.map +0 -1
- package/dist/native/p-3f912745.entry.js +0 -2
- package/dist/native/p-3f912745.entry.js.map +0 -1
- package/dist/native/p-4e351d8e.entry.js +0 -2
- package/dist/native/p-4e351d8e.entry.js.map +0 -1
- package/dist/native/p-589eb477.entry.js +0 -2
- package/dist/native/p-5b4bdbe2.entry.js.map +0 -1
- package/dist/native/p-65ad60eb.entry.js.map +0 -1
- package/dist/native/p-671699bf.entry.js +0 -2
- package/dist/native/p-69ca8c88.entry.js.map +0 -1
- package/dist/native/p-7a7b9b95.entry.js +0 -2
- package/dist/native/p-7b2d8b8c.entry.js.map +0 -1
- package/dist/native/p-7b3a4cbf.entry.js.map +0 -1
- package/dist/native/p-91d30cd7.entry.js.map +0 -1
- package/dist/native/p-92e3e334.entry.js.map +0 -1
- package/dist/native/p-982e474f.entry.js +0 -2
- package/dist/native/p-a03df637.entry.js +0 -2
- package/dist/native/p-a03df637.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-a5582014.entry.js +0 -2
- package/dist/native/p-a5582014.entry.js.map +0 -1
- package/dist/native/p-a59ec107.entry.js +0 -2
- package/dist/native/p-a59ec107.entry.js.map +0 -1
- package/dist/native/p-a7a3c45f.entry.js +0 -2
- package/dist/native/p-a7be7540.entry.js +0 -2
- package/dist/native/p-a7be7540.entry.js.map +0 -1
- package/dist/native/p-a8c0fefa.entry.js +0 -2
- package/dist/native/p-a8c0fefa.entry.js.map +0 -1
- package/dist/native/p-b4aea326.js +0 -3
- package/dist/native/p-b4aea326.js.map +0 -1
- package/dist/native/p-c8f36510.entry.js +0 -2
- package/dist/native/p-c8f36510.entry.js.map +0 -1
- package/dist/native/p-d3d682a7.entry.js +0 -2
- package/dist/native/p-d4c0a1e0.entry.js +0 -2
- package/dist/native/p-dbade286.entry.js +0 -2
- package/dist/native/p-dbade286.entry.js.map +0 -1
- package/dist/native/p-e842220b.entry.js +0 -2
- package/dist/native/p-eeb6a3dc.js +0 -2
- package/dist/native/p-eeb6a3dc.js.map +0 -1
- package/dist/native/p-f7b96c42.entry.js +0 -2
- package/dist/types/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.d.ts +0 -52
- package/dist/types/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.docs.d.ts +0 -4
- package/dist/types/components/nv-fieldmultiselect/nv-fieldmultiselect.d.ts +0 -405
- package/dist/types/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.d.ts +0 -4
- package/dist/types/components/nv-icon/test/nv-icon.test.d.ts +0 -1
- /package/dist/native/{p-7a7b9b95.entry.js.map → p-0f9262ed.entry.js.map} +0 -0
- /package/dist/native/{p-f7b96c42.entry.js.map → p-87b93cc2.entry.js.map} +0 -0
- /package/dist/native/{p-a7a3c45f.entry.js.map → p-907c3eda.entry.js.map} +0 -0
- /package/dist/native/{p-d4c0a1e0.entry.js.map → p-bbc45099.entry.js.map} +0 -0
- /package/dist/native/{p-d3d682a7.entry.js.map → p-f42e87b5.entry.js.map} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ddc37f87.js');
|
|
6
6
|
|
|
7
7
|
const nvDatagridbodyCss = "";
|
|
8
8
|
const NvDatagridbodyStyle0 = nvDatagridbodyCss;
|
|
@@ -14,7 +14,7 @@ const NvDatagridbody = class {
|
|
|
14
14
|
/****************************************************************************/
|
|
15
15
|
//#region RENDER
|
|
16
16
|
render() {
|
|
17
|
-
return (index.h(index.Host, { key: '
|
|
17
|
+
return (index.h(index.Host, { key: 'fdb910bb7b6388d4d0f8d61a18822e8334534a18' }, index.h("tbody", { key: 'f19bd351d639a4d9a94d27647e977d14d6cacf7e' }, index.h("slot", { key: '376ae58f100a27adefaec863497479d814af8124' }))));
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
NvDatagridbody.style = NvDatagridbodyStyle0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ddc37f87.js');
|
|
6
6
|
|
|
7
7
|
const nvDatagridcolumnCss = "";
|
|
8
8
|
const NvDatagridcolumnStyle0 = nvDatagridcolumnCss;
|
|
@@ -10,14 +10,12 @@ const NvDatagridcolumnStyle0 = nvDatagridcolumnCss;
|
|
|
10
10
|
const NvDatagridcolumn = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
|
-
this.header = undefined;
|
|
14
|
-
this.accessor = undefined;
|
|
15
13
|
}
|
|
16
14
|
//#endregion PROPERTIES
|
|
17
15
|
/****************************************************************************/
|
|
18
16
|
//#region RENDER
|
|
19
17
|
render() {
|
|
20
|
-
return (index.h(index.Host, { key: '
|
|
18
|
+
return (index.h(index.Host, { key: '2982f199f488077a91812c214b0e881a0e32e1ec' }, index.h("th", { key: 'cc46a9eb1aa232a8068308d7e7175aed89f007c1' }, index.h("slot", { key: 'bd1f13adfd55b1c4ae8dab30d7aea33c9079f3e0' }))));
|
|
21
19
|
}
|
|
22
20
|
};
|
|
23
21
|
NvDatagridcolumn.style = NvDatagridcolumnStyle0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"nv-datagridcolumn.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,+BAAe,mBAAmB;;MCSrB,gBAAgB
|
|
1
|
+
{"file":"nv-datagridcolumn.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,+BAAe,mBAAmB;;MCSrB,gBAAgB;;;;;;;IAoB3B,MAAM;QACJ,QACEA,QAACC,UAAI,uDACHD,mEACEA,oEAAa,CACV,CACA,EACP;KACH;;;;;;","names":["h","Host"],"sources":["src/components/nv-datagridcolumn/nv-datagridcolumn.scss?tag=nv-datagridcolumn","src/components/nv-datagridcolumn/nv-datagridcolumn.tsx"],"sourcesContent":["// No need for the moment\n","import { Component, Host, Prop, h } from '@stencil/core';\n\n/**\n * @slot default - Use this slot to insert HTML into the data grid column.\n */\n@Component({\n tag: 'nv-datagridcolumn',\n styleUrl: 'nv-datagridcolumn.scss',\n shadow: false,\n})\nexport class NvDatagridcolumn {\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * Defines the header of the column.\n */\n @Prop()\n readonly header: string;\n\n /**\n * Defines the accessor of the column.\n */\n @Prop()\n readonly accessor: string;\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region RENDER\n\n render() {\n return (\n <Host>\n <th>\n <slot></slot>\n </th>\n </Host>\n );\n }\n\n //#endregion RENDER\n /****************************************************************************/\n}\n"],"version":3}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ddc37f87.js');
|
|
6
6
|
|
|
7
7
|
const nvDatagriddatacellCss = "";
|
|
8
8
|
const NvDatagriddatacellStyle0 = nvDatagriddatacellCss;
|
|
@@ -10,13 +10,12 @@ const NvDatagriddatacellStyle0 = nvDatagriddatacellCss;
|
|
|
10
10
|
const NvDatagriddatacell = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
|
-
this.accessor = undefined;
|
|
14
13
|
}
|
|
15
14
|
//#endregion PROPERTIES
|
|
16
15
|
/****************************************************************************/
|
|
17
16
|
//#region RENDER
|
|
18
17
|
render() {
|
|
19
|
-
return (index.h(index.Host, { key: '
|
|
18
|
+
return (index.h(index.Host, { key: 'dbdf7fa0353e84e702ddd082fe466f89492f48e1' }, index.h("td", { key: '3d3d8ae038cb5a6bf3404fe7178003529790fc10' }, index.h("slot", { key: 'b8585f6517d053f90be59fe7e492771114911496' }))));
|
|
20
19
|
}
|
|
21
20
|
};
|
|
22
21
|
NvDatagriddatacell.style = NvDatagriddatacellStyle0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"nv-datagriddatacell.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,qBAAqB,GAAG,EAAE,CAAC;AACjC,iCAAe,qBAAqB;;MCSvB,kBAAkB
|
|
1
|
+
{"file":"nv-datagriddatacell.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,qBAAqB,GAAG,EAAE,CAAC;AACjC,iCAAe,qBAAqB;;MCSvB,kBAAkB;;;;;;;IAgB7B,MAAM;QACJ,QACEA,QAACC,UAAI,uDACHD,mEACEA,oEAAa,CACV,CACA,EACP;KACH;;;;;;","names":["h","Host"],"sources":["src/components/nv-datagriddatacell/nv-datagriddatacell.scss?tag=nv-datagriddatacell","src/components/nv-datagriddatacell/nv-datagriddatacell.tsx"],"sourcesContent":["// No need for the moment\n","import { Component, Host, Prop, h } from '@stencil/core';\n\n/**\n * @slot default - Use this slot to insert HTML into the data grid data cell.\n */\n@Component({\n tag: 'nv-datagriddatacell',\n styleUrl: 'nv-datagriddatacell.scss',\n shadow: false,\n})\nexport class NvDatagriddatacell {\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * Contains a string that identifies a cell in a table. It is used with the\n * headers attribute to associate data cells with header cells in complex tables.\n * @example 'col1'\n */\n @Prop()\n readonly accessor: string;\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region RENDER\n\n render() {\n return (\n <Host>\n <td>\n <slot></slot>\n </td>\n </Host>\n );\n }\n\n //#endregion RENDER\n /****************************************************************************/\n}\n"],"version":3}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ddc37f87.js');
|
|
6
6
|
|
|
7
7
|
const nvDatagridheadCss = "";
|
|
8
8
|
const NvDatagridheadStyle0 = nvDatagridheadCss;
|
|
@@ -14,7 +14,7 @@ const NvDatagridhead = class {
|
|
|
14
14
|
/****************************************************************************/
|
|
15
15
|
//#region RENDER
|
|
16
16
|
render() {
|
|
17
|
-
return (index.h(index.Host, { key: '
|
|
17
|
+
return (index.h(index.Host, { key: 'e56a8e78a9034ce2cd2eda97ee074662b533ace9' }, index.h("thead", { key: '0a32742beaf23f214bbf3f03f9de5bab748573cd' }, index.h("slot", { key: '0beabbfbadee2af0caa07f31fb681d24fe6da240' }))));
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
NvDatagridhead.style = NvDatagridheadStyle0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ddc37f87.js');
|
|
6
6
|
|
|
7
7
|
const nvDatagridrowCss = "";
|
|
8
8
|
const NvDatagridrowStyle0 = nvDatagridrowCss;
|
|
@@ -14,7 +14,7 @@ const NvDatagridrow = class {
|
|
|
14
14
|
/****************************************************************************/
|
|
15
15
|
//#region RENDER
|
|
16
16
|
render() {
|
|
17
|
-
return (index.h(index.Host, { key: '
|
|
17
|
+
return (index.h(index.Host, { key: '99a83706b411732ff2d2443794ab61bdc0a95c7e' }, index.h("tr", { key: 'd64ab8c5d39236cdbe4950c7d891f3aca9c696dc' }, index.h("slot", { key: '696117c1e59fe60e0d3de5928658ba479cfeb472' }))));
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
NvDatagridrow.style = NvDatagridrowStyle0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ddc37f87.js');
|
|
6
6
|
const clsx = require('./clsx-fc789adc.js');
|
|
7
7
|
const v4 = require('./v4-7014b8b0.js');
|
|
8
8
|
|
|
@@ -13,22 +13,53 @@ const NvFieldcheckbox = class {
|
|
|
13
13
|
constructor(hostRef) {
|
|
14
14
|
index.registerInstance(this, hostRef);
|
|
15
15
|
this.checkedChanged = index.createEvent(this, "checkedChanged", 7);
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
/**
|
|
17
|
+
* When true, the label will be placed before the checkbox.
|
|
18
|
+
* @deprecated Use `labelPlacement = end` instead.
|
|
19
|
+
* */
|
|
18
20
|
this.labelBefore = false;
|
|
21
|
+
//#endregion DEPRECATED
|
|
22
|
+
/****************************************************************************/
|
|
23
|
+
//#region PROPERTIES
|
|
24
|
+
/**
|
|
25
|
+
* Sets the ID for the radio button’s input element and the for attribute of
|
|
26
|
+
* the associated label. If no ID is provided, a random one will be
|
|
27
|
+
* automatically generated to ensure unique identification, facilitating
|
|
28
|
+
* proper label association and accessibility.
|
|
29
|
+
*/
|
|
19
30
|
this.inputId = v4.v4();
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Hides the label visually while still keeping it available for screen
|
|
33
|
+
* readers.
|
|
34
|
+
*/
|
|
24
35
|
this.hideLabel = false;
|
|
25
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Signals that there is an error associated with the checkbox, which can
|
|
38
|
+
* trigger visual cues.
|
|
39
|
+
*/
|
|
26
40
|
this.error = false;
|
|
27
|
-
|
|
41
|
+
/**
|
|
42
|
+
* Indicates whether the checkbox is checked or not.
|
|
43
|
+
*/
|
|
28
44
|
this.checked = false;
|
|
45
|
+
/**
|
|
46
|
+
* Indicates whether the checkbox is in an indeterminate state, typically used
|
|
47
|
+
* for hierarchical checkboxes.
|
|
48
|
+
*/
|
|
29
49
|
this.indeterminate = false;
|
|
50
|
+
/**
|
|
51
|
+
* Disables the checkbox, preventing user interaction.
|
|
52
|
+
*/
|
|
30
53
|
this.disabled = false;
|
|
54
|
+
/**
|
|
55
|
+
* Sets the checkbox to read-only, preventing user changes but still allowing
|
|
56
|
+
* focus and selection of text.
|
|
57
|
+
*/
|
|
31
58
|
this.readonly = false;
|
|
59
|
+
/**
|
|
60
|
+
* Marks the checkbox as required, indicating that it must be checked for
|
|
61
|
+
* form submission.
|
|
62
|
+
*/
|
|
32
63
|
this.required = false;
|
|
33
64
|
}
|
|
34
65
|
componentWillRender() {
|
|
@@ -74,13 +105,13 @@ const NvFieldcheckbox = class {
|
|
|
74
105
|
/****************************************************************************/
|
|
75
106
|
//#region RENDER
|
|
76
107
|
render() {
|
|
77
|
-
return (index.h(index.Host, { key: '
|
|
108
|
+
return (index.h(index.Host, { key: 'dee6fd99a2e97591189c8a6bdce3c8909b4ceb97', class: clsx.clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, index.h("div", { key: 'dd6ab7f4cddd11c89cc15249290fe43d83a669ab', class: "input-container" }, index.h("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 => {
|
|
78
109
|
if (el) {
|
|
79
110
|
el.indeterminate = this.indeterminate;
|
|
80
111
|
}
|
|
81
|
-
} }), index.h("span", { key: '
|
|
82
|
-
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '
|
|
83
|
-
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '
|
|
112
|
+
} }), index.h("span", { key: 'ac87b7d83e5731da6ce8f9990a1d55bd247cb750', class: "icon" }, this.checked && !this.indeterminate && (index.h("slot", { key: '911e69045129dc8755fea438570858f338a18ad3', name: "checked-icon" }, index.h("svg", { key: 'de2e547ac9ab00c52ee9c924fdb4e24cf0321158', xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" }, index.h("path", { key: '10dc26b32951b18a6bd29482349894bf1ca87bd8', d: "M11.6667 3.5L5.25004 9.91667L2.33337 7", "stroke-linecap": "round", "stroke-linejoin": "round" })))), this.indeterminate && (index.h("slot", { key: '7e957be646aa6a96f94e0cf70b5ef88b8037e07e', name: "indeterminate-icon" }, index.h("svg", { key: 'd132aabc77f0dcf5c67377a60004b72307cf61ba', class: "indeterminate-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 14 14", fill: "none" }, index.h("path", { key: '353c950a9d8d14c32e276e393c9314374d10337f', d: "M2.9165 7H11.0832", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), index.h("div", { key: 'a14fc39e16a9dcee74e722a361fcc8df63fad5d6', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '13a9fee6f1c4aea8735eca27f36944d6c26cf7f2', htmlFor: this.inputId, class: clsx.clsx(this.hideLabel && 'visually-hidden') }, index.h("slot", { key: 'dbbce25b8f65d2b12d10e419f94ae56ef2d0c355', name: "label" }, this.label))), (this.description ||
|
|
113
|
+
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '3647cdaa6a4ec2cacab7b2c1fe731e3454746648', class: "description" }, index.h("slot", { key: '19dff40045f22c6403029731a0a628455b831c5c', name: "description" }, this.description))), (this.errorDescription ||
|
|
114
|
+
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: 'dd78ae62d1a1cd6c2a9b41d32740321cb1f36f2a', hidden: !this.error, class: "error-description" }, index.h("slot", { key: '1e4d1c10387aaea37c87111c43c84cd204ca1619', name: "error-description" }, this.errorDescription))))));
|
|
84
115
|
}
|
|
85
116
|
get el() { return index.getElement(this); }
|
|
86
117
|
static get watchers() { return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"nv-fieldcheckbox.entry.cjs.js","mappings":"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","names":["uuidv4","h","Host","clsx"],"sources":["src/components/nv-fieldcheckbox/nv-fieldcheckbox.scss?tag=nv-fieldcheckbox","src/components/nv-fieldcheckbox/nv-fieldcheckbox.tsx"],"sourcesContent":["@import \"../../styles/focus-ring\";\n\n@mixin fieldcheckbox-variables() {\n --nv-fieldcheckbox-border-default: var(--components-form-field-border-default);\n --nv-fieldcheckbox-border-hover: var(--components-form-field-border-hover);\n --nv-fieldcheckbox-border-focus: var(--components-form-field-border-default);\n --nv-fieldcheckbox-background-default: var(--components-form-field-background-default);\n --nv-fieldcheckbox-background-checked: var(--components-form-field-background-checked);\n --nv-fieldcheckbox-background-disabled: var(--components-form-field-background-disabled);\n --nv-fieldcheckbox-focus-box-shadow: var(--color-focus-brand);\n --nv-fieldcheckbox-color-checked: var(--components-form-shape-foreground-default);\n --nv-fieldcheckbox-color-disabled: var(--components-form-shape-foreground-disabled);\n --nv-fieldcheckbox-outline-color: var(--color-focus-brand);\n}\n\n@mixin fieldcheckbox-error-variables() {\n --nv-fieldcheckbox-border-default: var(--components-form-field-border-error);\n --nv-fieldcheckbox-border-hover: var(--nv-fieldcheckbox-border-default);\n --nv-fieldcheckbox-border-focus: var(--components-form-field-border-error);\n --nv-fieldcheckbox-focus-box-shadow: var(--color-focus-destructive);\n --nv-fieldcheckbox-color-disabled: var(--components-form-shape-foreground-disabled-error);\n --nv-fieldcheckbox-background-checked: var(--components-form-field-background-error);\n --nv-fieldcheckbox-outline-color: var(--color-focus-destructive);\n}\n\n@mixin root-styles() {\n display: inline-flex;\n align-items: flex-start;\n gap: var(--form-gap-x);\n position: relative;\n\n &:not([disabled], [readonly]) {\n input,\n label {\n cursor: pointer;\n }\n }\n}\n\n@mixin label-before-styles() {\n flex-direction: row-reverse;\n}\n\n@mixin label-styles() {\n align-self: stretch;\n color: var(--components-form-text-label-default);\n font-family: \"TT Norms Pro\", sans-serif;\n font-size: var(--form-label-font-size);\n font-style: normal;\n font-weight: var(--form-label-font-weight);\n line-height: var(--form-label-line-height);\n}\n\n@mixin description-styles() {\n align-self: stretch;\n color: var(--components-form-text-description-default);\n font-family: \"TT Norms Pro\", sans-serif;\n font-size: var(--form-description-font-size);\n font-style: normal;\n font-weight: var(--form-description-font-weight);\n line-height: var(--form-description-line-height);\n}\n\n@mixin error-description-styles() {\n @include description-styles();\n\n color: var(--components-form-text-description-error);\n}\n\n@mixin text-container-styles() {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1 0 0;\n}\n\n@mixin input-container-styles() {\n position: relative;\n color: var(--nv-fieldcheckbox-color-checked);\n\n input[type=checkbox][readonly] {\n // TODO: Find a way to use the --components-form-opacity-disabled variable properly, right now it outputs a value of 50px instead of 0.5.\n opacity: 0.5;\n }\n\n &:has(input[type=\"checkbox\"]:disabled:not([readonly])) {\n color: var(--nv-fieldcheckbox-color-disabled);\n }\n}\n\n@mixin input-styles() {\n appearance: none;\n position: relative;\n display: flex;\n width: var(--form-checkbox-size);\n height: var(--form-checkbox-size);\n flex-direction: column;\n align-items: flex-start;\n border-radius: var(--form-checkbox-radius);\n border-width: var(--form-checkbox-border-width);\n border-style: solid;\n border-color: var(--nv-fieldcheckbox-border-default);\n background: var(--nv-fieldcheckbox-background-default);\n\n &:hover {\n border-color: var(--nv-fieldcheckbox-border-hover);\n }\n\n &:focus {\n border-color: var(--nv-fieldcheckbox-border-focus);\n }\n\n @include focus-ring(var(--nv-fieldcheckbox-outline-color));\n\n &:checked,\n &:indeterminate {\n background: var(--nv-fieldcheckbox-background-checked);\n border-color: var(--nv-fieldcheckbox-background-checked);\n }\n\n &:disabled:not([readonly]) {\n background: var(--nv-fieldcheckbox-background-disabled);\n border-color: var(--nv-fieldcheckbox-border-default);\n }\n\n &[readonly] {\n // TODO: Find a way to use the --components-form-opacity-disabled variable properly, right now it outputs a value of 50px instead of 0.5.\n opacity: 0.5;\n }\n}\n\n@mixin icon-styles() {\n pointer-events: none;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n\n svg {\n width: var(--form-checkbox-icon-size);\n height: var(--form-checkbox-icon-size);\n fill: none;\n stroke: currentcolor;\n stroke-width: var(--form-checkbox-icon-stroke);\n flex-shrink: 0;\n }\n}\n\nnv-fieldcheckbox {\n @include fieldcheckbox-variables();\n @include root-styles();\n\n &.error .input-container {\n @include fieldcheckbox-error-variables();\n }\n\n &.label-placement-before {\n @include label-before-styles();\n }\n &[disabled] {\n // TODO: Find a way to use the --components-form-opacity-disabled variable properly, right now it outputs a value of 50px instead of 0.5.\n opacity: 0.5;\n }\n label {\n @include label-styles();\n }\n\n .input-container {\n @include input-container-styles();\n\n input[type=\"checkbox\"] {\n @include input-styles();\n }\n\n .icon {\n @include icon-styles();\n }\n }\n\n .description {\n @include description-styles();\n }\n\n .error-description {\n @include error-description-styles();\n }\n\n .text-container {\n @include text-container-styles();\n }\n}\n","import {\n Component,\n Host,\n h,\n Prop,\n Element,\n Watch,\n Event,\n EventEmitter,\n Listen,\n} from '@stencil/core';\nimport clsx from 'clsx';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport { type FieldLabelPlacement } from '../../utils/constants';\n\n/**\n * @slot label - Content to be placed as the label, will override the label prop.\n * @slot description - Content to be placed as the description, will override the description prop.\n * @slot error-description - Content to be placed as the error description, will override the errorDescription prop.\n * @slot checked-icon - Content to be placed as the checked icon, will override the checkedIcon prop.\n * @slot indeterminate-icon - Content to be placed as the indeterminate icon, will override the indeterminateIcon prop.\n */\n@Component({\n tag: 'nv-fieldcheckbox',\n styleUrl: 'nv-fieldcheckbox.scss',\n shadow: false,\n})\nexport class NvFieldcheckbox {\n @Element() el!: HTMLNvFieldcheckboxElement;\n\n /****************************************************************************/\n //#region DEPRECATED\n\n /**\n * Message define a 'hint ' message for the Field.\n * @deprecated Use `description` instead.\n * */\n @Prop()\n readonly message?: string;\n\n /**\n * The text for the validation message.\n * @deprecated Use `errorDescription` instead.\n * */\n @Prop()\n readonly validation?: string;\n\n /**\n * When true, the label will be placed before the checkbox.\n * @deprecated Use `labelPlacement = end` instead.\n * */\n @Prop()\n readonly labelBefore?: boolean = false;\n\n componentWillRender() {\n if (this.message) {\n this.description = this.message;\n }\n\n if (this.labelBefore) {\n this.labelPlacement = 'before';\n }\n\n if (this.validation) {\n this.errorDescription = this.validation;\n }\n }\n\n //#endregion DEPRECATED\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * Sets the ID for the radio button’s input element and the for attribute of\n * the associated label. If no ID is provided, a random one will be\n * automatically generated to ensure unique identification, facilitating\n * proper label association and accessibility.\n */\n @Prop({ reflect: true })\n readonly inputId: string = uuidv4();\n\n /**\n * The name attribute for the checkbox input, used to reference the form data\n * after submission.\n */\n @Prop({ reflect: true })\n readonly name?: string;\n\n /**\n * The value attribute of the checkbox input, representing the value sent on\n * form submission when the checkbox is checked. When the form is submitted,\n * the data will consist of a name=value pair.\n */\n @Prop({ reflect: true })\n readonly value?: string;\n\n /**\n * The label displayed next to the checkbox.\n */\n @Prop({ reflect: true })\n readonly label?: string;\n\n /**\n * Determines the position of the label relative to the checkbox, either\n * 'start' (before) or 'end' (after).\n */\n @Prop({ reflect: true, mutable: true })\n labelPlacement: `${FieldLabelPlacement}`;\n\n /**\n * Hides the label visually while still keeping it available for screen\n * readers.\n */\n @Prop({ reflect: true })\n readonly hideLabel: boolean = false;\n\n /**\n * A description providing additional context or information about the\n * checkbox.\n */\n @Prop({ reflect: true, mutable: true })\n description?: string;\n\n /**\n * Signals that there is an error associated with the checkbox, which can\n * trigger visual cues.\n */\n @Prop({ reflect: true })\n readonly error: boolean = false;\n\n /**\n * A description that appears when there is an error related to the checkbox.\n */\n @Prop({ reflect: true, mutable: true })\n errorDescription?: string;\n\n /**\n * Indicates whether the checkbox is checked or not.\n */\n @Prop({ reflect: true, mutable: true })\n checked: boolean = false;\n\n /**\n * Indicates whether the checkbox is in an indeterminate state, typically used\n * for hierarchical checkboxes.\n */\n @Prop({ reflect: true, mutable: true })\n indeterminate: boolean = false;\n\n /**\n * Disables the checkbox, preventing user interaction.\n */\n @Prop({ reflect: true })\n readonly disabled: boolean = false;\n\n /**\n * Sets the checkbox to read-only, preventing user changes but still allowing\n * focus and selection of text.\n */\n @Prop({ reflect: true })\n readonly readonly: boolean = false;\n\n /**\n * Marks the checkbox as required, indicating that it must be checked for\n * form submission.\n */\n @Prop({ reflect: true })\n readonly required: boolean = false;\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region EVENTS\n\n /**\n * Emits when the checked state changes.\n * @bind checked\n */\n @Event()\n checkedChanged: EventEmitter<boolean>;\n\n //#endregion EVENTS\n /****************************************************************************/\n //#region WATCHERS\n\n /**\n * Watches for changes to the checked state and emits the new value.\n * @param {boolean} checked - The new value of the checked state.\n */\n @Watch('checked')\n onCheckedChanged(checked: boolean) {\n this.checkedChanged.emit(checked);\n }\n\n /**\n * Listens for the change event on the checkbox input element and updates the\n * checked state.\n * @param {Event} event - The change event.\n */\n @Listen('change')\n handleChange(event: Event) {\n const target = event.target as HTMLInputElement;\n\n if (target.type === 'checkbox' && target.id === this.inputId) {\n if (this.readonly || this.disabled) {\n event.preventDefault();\n return;\n }\n\n if (this.indeterminate) {\n this.indeterminate = false;\n }\n\n this.checked = target.checked;\n }\n }\n\n //#endregion WATCHERS\n /****************************************************************************/\n //#region RENDER\n\n render() {\n return (\n <Host\n class={clsx(\n this.labelPlacement === 'before' && 'label-placement-before',\n this.error && 'error',\n )}\n >\n <div class=\"input-container\">\n <input\n type=\"checkbox\"\n id={this.inputId}\n name={this.name}\n autocomplete=\"off\"\n value={this.value}\n checked={Boolean(this.checked)}\n disabled={this.disabled || this.readonly}\n readonly={this.readonly && !this.required}\n required={this.required}\n indeterminate={this.indeterminate}\n ref={el => {\n if (el) {\n el.indeterminate = this.indeterminate;\n }\n }}\n />\n <span class=\"icon\">\n {this.checked && !this.indeterminate && (\n <slot name=\"checked-icon\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 14 14\"\n fill=\"none\"\n >\n <path\n d=\"M11.6667 3.5L5.25004 9.91667L2.33337 7\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n </slot>\n )}\n {this.indeterminate && (\n <slot name=\"indeterminate-icon\">\n <svg\n class=\"indeterminate-svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 14 14\"\n fill=\"none\"\n >\n <path\n d=\"M2.9165 7H11.0832\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n </slot>\n )}\n </span>\n </div>\n\n <div class=\"text-container\">\n {(this.label || this.el.querySelector('[slot=\"label\"]')) && (\n <label\n htmlFor={this.inputId}\n class={clsx(this.hideLabel && 'visually-hidden')}\n >\n <slot name=\"label\">{this.label}</slot>\n </label>\n )}\n\n {(this.description ||\n this.el.querySelector('[slot=\"description\"]')) && (\n <div class=\"description\">\n <slot name=\"description\">{this.description}</slot>\n </div>\n )}\n\n {(this.errorDescription ||\n this.el.querySelector('[slot=\"error-description\"]')) && (\n <div hidden={!this.error} class=\"error-description\">\n <slot name=\"error-description\">{this.errorDescription}</slot>\n </div>\n )}\n </div>\n </Host>\n );\n }\n\n //#endregion RENDER\n}\n"],"version":3}
|
|
1
|
+
{"file":"nv-fieldcheckbox.entry.cjs.js","mappings":"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","names":["uuidv4","h","Host","clsx"],"sources":["src/components/nv-fieldcheckbox/nv-fieldcheckbox.scss?tag=nv-fieldcheckbox","src/components/nv-fieldcheckbox/nv-fieldcheckbox.tsx"],"sourcesContent":["@import \"../../styles/focus-ring\";\n\n@mixin fieldcheckbox-variables() {\n --nv-fieldcheckbox-border-default: var(--components-form-field-border-default);\n --nv-fieldcheckbox-border-hover: var(--components-form-field-border-hover);\n --nv-fieldcheckbox-border-focus: var(--components-form-field-border-default);\n --nv-fieldcheckbox-background-default: var(--components-form-field-background-default);\n --nv-fieldcheckbox-background-checked: var(--components-form-field-background-checked);\n --nv-fieldcheckbox-background-disabled: var(--components-form-field-background-disabled);\n --nv-fieldcheckbox-focus-box-shadow: var(--color-focus-brand);\n --nv-fieldcheckbox-color-checked: var(--components-form-shape-foreground-default);\n --nv-fieldcheckbox-color-disabled: var(--components-form-shape-foreground-disabled);\n --nv-fieldcheckbox-outline-color: var(--color-focus-brand);\n}\n\n@mixin fieldcheckbox-error-variables() {\n --nv-fieldcheckbox-border-default: var(--components-form-field-border-error);\n --nv-fieldcheckbox-border-hover: var(--nv-fieldcheckbox-border-default);\n --nv-fieldcheckbox-border-focus: var(--components-form-field-border-error);\n --nv-fieldcheckbox-focus-box-shadow: var(--color-focus-destructive);\n --nv-fieldcheckbox-color-disabled: var(--components-form-shape-foreground-disabled-error);\n --nv-fieldcheckbox-background-checked: var(--components-form-field-background-error);\n --nv-fieldcheckbox-outline-color: var(--color-focus-destructive);\n}\n\n@mixin root-styles() {\n display: inline-flex;\n align-items: flex-start;\n gap: var(--form-gap-x);\n position: relative;\n\n &:not([disabled], [readonly]) {\n input,\n label {\n cursor: pointer;\n }\n }\n}\n\n@mixin label-before-styles() {\n flex-direction: row-reverse;\n}\n\n@mixin label-styles() {\n align-self: stretch;\n color: var(--components-form-text-label-default);\n font-family: \"TT Norms Pro\", sans-serif;\n font-size: var(--form-label-font-size);\n font-style: normal;\n font-weight: var(--form-label-font-weight);\n line-height: var(--form-label-line-height);\n}\n\n@mixin description-styles() {\n align-self: stretch;\n color: var(--components-form-text-description-default);\n font-family: \"TT Norms Pro\", sans-serif;\n font-size: var(--form-description-font-size);\n font-style: normal;\n font-weight: var(--form-description-font-weight);\n line-height: var(--form-description-line-height);\n}\n\n@mixin error-description-styles() {\n @include description-styles();\n\n color: var(--components-form-text-description-error);\n}\n\n@mixin text-container-styles() {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1 0 0;\n}\n\n@mixin input-container-styles() {\n position: relative;\n color: var(--nv-fieldcheckbox-color-checked);\n\n input[type=checkbox][readonly] {\n // TODO: Find a way to use the --components-form-opacity-disabled variable properly, right now it outputs a value of 50px instead of 0.5.\n opacity: 0.5;\n }\n\n &:has(input[type=\"checkbox\"]:disabled:not([readonly])) {\n color: var(--nv-fieldcheckbox-color-disabled);\n }\n}\n\n@mixin input-styles() {\n appearance: none;\n position: relative;\n display: flex;\n width: var(--form-checkbox-size);\n height: var(--form-checkbox-size);\n flex-direction: column;\n align-items: flex-start;\n border-radius: var(--form-checkbox-radius);\n border-width: var(--form-checkbox-border-width);\n border-style: solid;\n border-color: var(--nv-fieldcheckbox-border-default);\n background: var(--nv-fieldcheckbox-background-default);\n\n &:hover {\n border-color: var(--nv-fieldcheckbox-border-hover);\n }\n\n &:focus {\n border-color: var(--nv-fieldcheckbox-border-focus);\n }\n\n @include focus-ring(var(--nv-fieldcheckbox-outline-color));\n\n &:checked,\n &:indeterminate {\n background: var(--nv-fieldcheckbox-background-checked);\n border-color: var(--nv-fieldcheckbox-background-checked);\n }\n\n &:disabled:not([readonly]) {\n background: var(--nv-fieldcheckbox-background-disabled);\n border-color: var(--nv-fieldcheckbox-border-default);\n }\n\n &[readonly] {\n // TODO: Find a way to use the --components-form-opacity-disabled variable properly, right now it outputs a value of 50px instead of 0.5.\n opacity: 0.5;\n }\n}\n\n@mixin icon-styles() {\n pointer-events: none;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n\n svg {\n width: var(--form-checkbox-icon-size);\n height: var(--form-checkbox-icon-size);\n fill: none;\n stroke: currentcolor;\n stroke-width: var(--form-checkbox-icon-stroke);\n flex-shrink: 0;\n }\n}\n\nnv-fieldcheckbox {\n @include fieldcheckbox-variables();\n @include root-styles();\n\n &.error .input-container {\n @include fieldcheckbox-error-variables();\n }\n\n &.label-placement-before {\n @include label-before-styles();\n }\n &[disabled] {\n // TODO: Find a way to use the --components-form-opacity-disabled variable properly, right now it outputs a value of 50px instead of 0.5.\n opacity: 0.5;\n }\n label {\n @include label-styles();\n }\n\n .input-container {\n @include input-container-styles();\n\n input[type=\"checkbox\"] {\n @include input-styles();\n }\n\n .icon {\n @include icon-styles();\n }\n }\n\n .description {\n @include description-styles();\n }\n\n .error-description {\n @include error-description-styles();\n }\n\n .text-container {\n @include text-container-styles();\n }\n}\n","import {\n Component,\n Host,\n h,\n Prop,\n Element,\n Watch,\n Event,\n EventEmitter,\n Listen,\n} from '@stencil/core';\nimport clsx from 'clsx';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport { type FieldLabelPlacement } from '../../utils/constants';\n\n/**\n * @slot label - Content to be placed as the label, will override the label prop.\n * @slot description - Content to be placed as the description, will override the description prop.\n * @slot error-description - Content to be placed as the error description, will override the errorDescription prop.\n * @slot checked-icon - Content to be placed as the checked icon, will override the checkedIcon prop.\n * @slot indeterminate-icon - Content to be placed as the indeterminate icon, will override the indeterminateIcon prop.\n */\n@Component({\n tag: 'nv-fieldcheckbox',\n styleUrl: 'nv-fieldcheckbox.scss',\n shadow: false,\n})\nexport class NvFieldcheckbox {\n @Element() el!: HTMLNvFieldcheckboxElement;\n\n /****************************************************************************/\n //#region DEPRECATED\n\n /**\n * Message define a 'hint ' message for the Field.\n * @deprecated Use `description` instead.\n * */\n @Prop()\n readonly message?: string;\n\n /**\n * The text for the validation message.\n * @deprecated Use `errorDescription` instead.\n * */\n @Prop()\n readonly validation?: string;\n\n /**\n * When true, the label will be placed before the checkbox.\n * @deprecated Use `labelPlacement = end` instead.\n * */\n @Prop()\n readonly labelBefore?: boolean = false;\n\n componentWillRender() {\n if (this.message) {\n this.description = this.message;\n }\n\n if (this.labelBefore) {\n this.labelPlacement = 'before';\n }\n\n if (this.validation) {\n this.errorDescription = this.validation;\n }\n }\n\n //#endregion DEPRECATED\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * Sets the ID for the radio button’s input element and the for attribute of\n * the associated label. If no ID is provided, a random one will be\n * automatically generated to ensure unique identification, facilitating\n * proper label association and accessibility.\n */\n @Prop({ reflect: true })\n readonly inputId: string = uuidv4();\n\n /**\n * The name attribute for the checkbox input, used to reference the form data\n * after submission.\n */\n @Prop({ reflect: true })\n readonly name?: string;\n\n /**\n * The value attribute of the checkbox input, representing the value sent on\n * form submission when the checkbox is checked. When the form is submitted,\n * the data will consist of a name=value pair.\n */\n @Prop({ reflect: true })\n readonly value?: string;\n\n /**\n * The label displayed next to the checkbox.\n */\n @Prop({ reflect: true })\n readonly label?: string;\n\n /**\n * Determines the position of the label relative to the checkbox, either\n * 'start' (before) or 'end' (after).\n */\n @Prop({ reflect: true, mutable: true })\n labelPlacement: `${FieldLabelPlacement}`;\n\n /**\n * Hides the label visually while still keeping it available for screen\n * readers.\n */\n @Prop({ reflect: true })\n readonly hideLabel: boolean = false;\n\n /**\n * A description providing additional context or information about the\n * checkbox.\n */\n @Prop({ reflect: true, mutable: true })\n description?: string;\n\n /**\n * Signals that there is an error associated with the checkbox, which can\n * trigger visual cues.\n */\n @Prop({ reflect: true })\n readonly error: boolean = false;\n\n /**\n * A description that appears when there is an error related to the checkbox.\n */\n @Prop({ reflect: true, mutable: true })\n errorDescription?: string;\n\n /**\n * Indicates whether the checkbox is checked or not.\n */\n @Prop({ reflect: true, mutable: true })\n checked: boolean = false;\n\n /**\n * Indicates whether the checkbox is in an indeterminate state, typically used\n * for hierarchical checkboxes.\n */\n @Prop({ reflect: true, mutable: true })\n indeterminate: boolean = false;\n\n /**\n * Disables the checkbox, preventing user interaction.\n */\n @Prop({ reflect: true })\n readonly disabled: boolean = false;\n\n /**\n * Sets the checkbox to read-only, preventing user changes but still allowing\n * focus and selection of text.\n */\n @Prop({ reflect: true })\n readonly readonly: boolean = false;\n\n /**\n * Marks the checkbox as required, indicating that it must be checked for\n * form submission.\n */\n @Prop({ reflect: true })\n readonly required: boolean = false;\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region EVENTS\n\n /**\n * Emits when the checked state changes.\n * @bind checked\n */\n @Event()\n checkedChanged: EventEmitter<boolean>;\n\n //#endregion EVENTS\n /****************************************************************************/\n //#region WATCHERS\n\n /**\n * Watches for changes to the checked state and emits the new value.\n * @param {boolean} checked - The new value of the checked state.\n */\n @Watch('checked')\n onCheckedChanged(checked: boolean) {\n this.checkedChanged.emit(checked);\n }\n\n /**\n * Listens for the change event on the checkbox input element and updates the\n * checked state.\n * @param {Event} event - The change event.\n */\n @Listen('change')\n handleChange(event: Event) {\n const target = event.target as HTMLInputElement;\n\n if (target.type === 'checkbox' && target.id === this.inputId) {\n if (this.readonly || this.disabled) {\n event.preventDefault();\n return;\n }\n\n if (this.indeterminate) {\n this.indeterminate = false;\n }\n\n this.checked = target.checked;\n }\n }\n\n //#endregion WATCHERS\n /****************************************************************************/\n //#region RENDER\n\n render() {\n return (\n <Host\n class={clsx(\n this.labelPlacement === 'before' && 'label-placement-before',\n this.error && 'error',\n )}\n >\n <div class=\"input-container\">\n <input\n type=\"checkbox\"\n id={this.inputId}\n name={this.name}\n autocomplete=\"off\"\n value={this.value}\n checked={Boolean(this.checked)}\n disabled={this.disabled || this.readonly}\n readonly={this.readonly && !this.required}\n required={this.required}\n indeterminate={this.indeterminate}\n ref={el => {\n if (el) {\n el.indeterminate = this.indeterminate;\n }\n }}\n />\n <span class=\"icon\">\n {this.checked && !this.indeterminate && (\n <slot name=\"checked-icon\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 14 14\"\n fill=\"none\"\n >\n <path\n d=\"M11.6667 3.5L5.25004 9.91667L2.33337 7\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n </slot>\n )}\n {this.indeterminate && (\n <slot name=\"indeterminate-icon\">\n <svg\n class=\"indeterminate-svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 14 14\"\n fill=\"none\"\n >\n <path\n d=\"M2.9165 7H11.0832\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n </slot>\n )}\n </span>\n </div>\n\n <div class=\"text-container\">\n {(this.label || this.el.querySelector('[slot=\"label\"]')) && (\n <label\n htmlFor={this.inputId}\n class={clsx(this.hideLabel && 'visually-hidden')}\n >\n <slot name=\"label\">{this.label}</slot>\n </label>\n )}\n\n {(this.description ||\n this.el.querySelector('[slot=\"description\"]')) && (\n <div class=\"description\">\n <slot name=\"description\">{this.description}</slot>\n </div>\n )}\n\n {(this.errorDescription ||\n this.el.querySelector('[slot=\"error-description\"]')) && (\n <div hidden={!this.error} class=\"error-description\">\n <slot name=\"error-description\">{this.errorDescription}</slot>\n </div>\n )}\n </div>\n </Host>\n );\n }\n\n //#endregion RENDER\n}\n"],"version":3}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ddc37f87.js');
|
|
6
6
|
const v4 = require('./v4-7014b8b0.js');
|
|
7
7
|
|
|
8
|
-
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 .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;
|
|
8
|
+
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)}";
|
|
9
9
|
const NvFielddropdownStyle0 = nvFielddropdownCss;
|
|
10
10
|
|
|
11
11
|
const NVFieldDropDown = class {
|
|
@@ -13,6 +13,63 @@ const NVFieldDropDown = class {
|
|
|
13
13
|
index.registerInstance(this, hostRef);
|
|
14
14
|
this.dropdownItemSelected = index.createEvent(this, "dropdownItemSelected", 7);
|
|
15
15
|
this.valueChanged = index.createEvent(this, "valueChanged", 7);
|
|
16
|
+
/****************************************************************************/
|
|
17
|
+
//#region PROPERTIES
|
|
18
|
+
/**
|
|
19
|
+
* Sets the ID for the input element and the for attribute of the associated
|
|
20
|
+
* label. If no ID is provided, a random one will be automatically generated
|
|
21
|
+
* to ensure unique identification, facilitating proper label association and
|
|
22
|
+
* accessibility.
|
|
23
|
+
*/
|
|
24
|
+
this.inputId = v4.v4();
|
|
25
|
+
/**
|
|
26
|
+
* State of the dropdown popover.
|
|
27
|
+
*/
|
|
28
|
+
this.open = false;
|
|
29
|
+
/**
|
|
30
|
+
* The autocomplete prop helps users fill out the input field faster by
|
|
31
|
+
* suggesting entries they’ve used before, like their email or address.
|
|
32
|
+
* You can turn it on to make forms more convenient or off to ensure users
|
|
33
|
+
* always type in fresh data.
|
|
34
|
+
*/
|
|
35
|
+
this.autocomplete = 'off';
|
|
36
|
+
/**
|
|
37
|
+
* Marks the input field as required, ensuring that the user must fill it out
|
|
38
|
+
* before submitting the form.
|
|
39
|
+
*/
|
|
40
|
+
this.required = false;
|
|
41
|
+
/**
|
|
42
|
+
* Alters the input field’s appearance to indicate an error, helping users
|
|
43
|
+
* identify fields that need correction.
|
|
44
|
+
* @validator error
|
|
45
|
+
*/
|
|
46
|
+
this.error = false;
|
|
47
|
+
/**
|
|
48
|
+
* Display the input field’s content without allowing users to change it.
|
|
49
|
+
* Users can still click on it, select, and copy the text, but they won’t be
|
|
50
|
+
* able to type or delete anything.
|
|
51
|
+
*/
|
|
52
|
+
this.readonly = false;
|
|
53
|
+
/**
|
|
54
|
+
* The disabled prop lets you turn off the input field so that users can’t
|
|
55
|
+
* type in it. When disabled, the field is grayed out and won’t respond to
|
|
56
|
+
* clicks or touches.
|
|
57
|
+
*/
|
|
58
|
+
this.disabled = false;
|
|
59
|
+
/**
|
|
60
|
+
* The text to display when no items match the filter.
|
|
61
|
+
*/
|
|
62
|
+
this.emptyresult = 'No results found';
|
|
63
|
+
/**
|
|
64
|
+
* The text entered by the user for filtering dropdown items.
|
|
65
|
+
*/
|
|
66
|
+
this.filterText = '';
|
|
67
|
+
/**
|
|
68
|
+
* Enables or disables the filtering feature for the dropdown items.
|
|
69
|
+
*/
|
|
70
|
+
this.filterable = false;
|
|
71
|
+
this.isFilterable = this.filterable;
|
|
72
|
+
this.selectedValues = new Set();
|
|
16
73
|
/**
|
|
17
74
|
* Handle click on the input container.
|
|
18
75
|
* @param {MouseEvent} event - The click event.
|
|
@@ -96,24 +153,6 @@ const NVFieldDropDown = class {
|
|
|
96
153
|
this.popoverElement.hide();
|
|
97
154
|
}
|
|
98
155
|
};
|
|
99
|
-
this.inputId = v4.v4();
|
|
100
|
-
this.label = undefined;
|
|
101
|
-
this.description = undefined;
|
|
102
|
-
this.placeholder = undefined;
|
|
103
|
-
this.name = undefined;
|
|
104
|
-
this.open = false;
|
|
105
|
-
this.autocomplete = 'off';
|
|
106
|
-
this.value = undefined;
|
|
107
|
-
this.required = false;
|
|
108
|
-
this.error = false;
|
|
109
|
-
this.errorDescription = undefined;
|
|
110
|
-
this.readonly = false;
|
|
111
|
-
this.disabled = false;
|
|
112
|
-
this.emptyresult = 'No results found';
|
|
113
|
-
this.filterText = '';
|
|
114
|
-
this.filterable = false;
|
|
115
|
-
this.isFilterable = this.filterable;
|
|
116
|
-
this.selectedValues = new Set();
|
|
117
156
|
}
|
|
118
157
|
handleItemSelected(event) {
|
|
119
158
|
if (this.disabled || this.readonly)
|
|
@@ -144,28 +183,39 @@ const NVFieldDropDown = class {
|
|
|
144
183
|
this.isFilterable = newValue;
|
|
145
184
|
this.filterable = newValue;
|
|
146
185
|
}
|
|
147
|
-
watchValueHandler() {
|
|
148
|
-
|
|
149
|
-
|
|
186
|
+
watchValueHandler(newValue) {
|
|
187
|
+
if (newValue) {
|
|
188
|
+
this.updateSelectedItem(newValue);
|
|
189
|
+
}
|
|
150
190
|
}
|
|
151
191
|
//#endregion EVENTS
|
|
152
192
|
/****************************************************************************/
|
|
153
193
|
//#region METHODS
|
|
194
|
+
componentWillLoad() {
|
|
195
|
+
if (this.value) {
|
|
196
|
+
// If an initial value exists, set it as selected
|
|
197
|
+
this.updateSelectedItem(this.value);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
componentDidLoad() {
|
|
201
|
+
document.addEventListener('click', this.handleClickOutside.bind(this));
|
|
202
|
+
// Check again after complete rendering
|
|
203
|
+
if (this.value) {
|
|
204
|
+
this.updateSelectedItem(this.value);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
154
207
|
/**
|
|
155
208
|
* Subscribe to click outside event.
|
|
156
209
|
*/
|
|
157
210
|
connectedCallback() {
|
|
158
211
|
document.addEventListener('click', this.handleClickOutside.bind(this));
|
|
159
|
-
//
|
|
212
|
+
// First, reset the filter to ensure all elements are visible
|
|
213
|
+
this.resetFilter();
|
|
214
|
+
// Then, handle the pre-selection
|
|
160
215
|
this.setInitialSelection();
|
|
161
|
-
//
|
|
162
|
-
if (this.filterable && this.
|
|
163
|
-
this.
|
|
164
|
-
this.filterItems(); // Update the visibility of items
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
// Ensure all items are visible if no filtering is applied
|
|
168
|
-
this.resetFilter();
|
|
216
|
+
// Finally, apply the filter if needed
|
|
217
|
+
if (this.filterable && this.filterText) {
|
|
218
|
+
this.filterItems();
|
|
169
219
|
}
|
|
170
220
|
}
|
|
171
221
|
/**
|
|
@@ -180,16 +230,13 @@ const NVFieldDropDown = class {
|
|
|
180
230
|
item.getAttribute('value') === this.value ||
|
|
181
231
|
((_a = item.textContent) === null || _a === void 0 ? void 0 : _a.trim()) === this.value;
|
|
182
232
|
});
|
|
183
|
-
// Remove 'selected' from all items first to reset the state
|
|
184
233
|
items.forEach(item => {
|
|
185
234
|
item.removeAttribute('selected');
|
|
186
235
|
item.classList.remove('selected');
|
|
187
236
|
});
|
|
188
237
|
if (selectedItem) {
|
|
189
|
-
// Add the `selected` attribute and `selected` class for visual styling
|
|
190
238
|
selectedItem.setAttribute('selected', 'true');
|
|
191
239
|
selectedItem.classList.add('selected');
|
|
192
|
-
// Update the value and inputElement value to reflect the pre-selected item
|
|
193
240
|
this.value =
|
|
194
241
|
selectedItem.getAttribute('label') ||
|
|
195
242
|
selectedItem.getAttribute('value') ||
|
|
@@ -199,6 +246,9 @@ const NVFieldDropDown = class {
|
|
|
199
246
|
this.inputElement.value = this.value;
|
|
200
247
|
}
|
|
201
248
|
}
|
|
249
|
+
else {
|
|
250
|
+
console.warn('No matching item found for value:', this.value);
|
|
251
|
+
}
|
|
202
252
|
}
|
|
203
253
|
/**
|
|
204
254
|
* Unsubscribe from click outside event.
|
|
@@ -264,10 +314,9 @@ const NVFieldDropDown = class {
|
|
|
264
314
|
handleClickOutside(event) {
|
|
265
315
|
if (this.el.contains(event.target) ||
|
|
266
316
|
(this.inputElement && this.inputElement.contains(event.target))) {
|
|
267
|
-
// If the click is inside the component or on the input, do not close the popover
|
|
268
317
|
return;
|
|
269
318
|
}
|
|
270
|
-
this.popoverElement.hide();
|
|
319
|
+
this.popoverElement.hide();
|
|
271
320
|
}
|
|
272
321
|
handleKeyDown(event) {
|
|
273
322
|
if (!this.open) {
|
|
@@ -323,9 +372,6 @@ const NVFieldDropDown = class {
|
|
|
323
372
|
if (i === index) {
|
|
324
373
|
item.classList.add('highlighted');
|
|
325
374
|
item.setAttribute('tabindex', '0');
|
|
326
|
-
if (!item.checkVisibility()) {
|
|
327
|
-
console.log('Item not focused');
|
|
328
|
-
}
|
|
329
375
|
item.focus(); // Forcer le focus ici
|
|
330
376
|
item.scrollIntoView({ block: 'nearest' });
|
|
331
377
|
}
|
|
@@ -345,13 +391,45 @@ const NVFieldDropDown = class {
|
|
|
345
391
|
console.warn('No first item found to focus');
|
|
346
392
|
}
|
|
347
393
|
}
|
|
394
|
+
updateSelectedItem(value) {
|
|
395
|
+
const items = Array.from(this.el.querySelectorAll('nv-fielddropdownitem'));
|
|
396
|
+
// Reset all items
|
|
397
|
+
items.forEach(item => {
|
|
398
|
+
item.removeAttribute('selected');
|
|
399
|
+
item.classList.remove('selected');
|
|
400
|
+
});
|
|
401
|
+
// Find the item matching the value
|
|
402
|
+
const matchingItem = items.find(item => {
|
|
403
|
+
var _a;
|
|
404
|
+
const itemLabel = item.getAttribute('label');
|
|
405
|
+
const itemValue = item.getAttribute('value');
|
|
406
|
+
const itemText = (_a = item.textContent) === null || _a === void 0 ? void 0 : _a.trim();
|
|
407
|
+
return itemLabel === value || itemValue === value || itemText === value;
|
|
408
|
+
});
|
|
409
|
+
if (matchingItem) {
|
|
410
|
+
// Mark the item as selected
|
|
411
|
+
matchingItem.setAttribute('selected', 'true');
|
|
412
|
+
matchingItem.classList.add('selected');
|
|
413
|
+
// Update the input
|
|
414
|
+
if (this.inputElement) {
|
|
415
|
+
this.inputElement.value = value;
|
|
416
|
+
}
|
|
417
|
+
// Emit the selection event
|
|
418
|
+
this.dropdownItemSelected.emit({
|
|
419
|
+
value: value,
|
|
420
|
+
label: matchingItem.getAttribute('label') || value,
|
|
421
|
+
selected: true,
|
|
422
|
+
disabled: matchingItem.hasAttribute('disabled'),
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
}
|
|
348
426
|
//#endregion METHODS
|
|
349
427
|
/****************************************************************************/
|
|
350
428
|
//#region RENDER
|
|
351
429
|
render() {
|
|
352
|
-
return (index.h(index.Host, { key: '
|
|
353
|
-
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '
|
|
354
|
-
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '
|
|
430
|
+
return (index.h(index.Host, { key: '2ff0476929b58734a50c303ebb6ad308f0c41602' }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '87756cac62747e76d851813426c4aa560b6a5a4e', htmlFor: this.inputId }, index.h("slot", { key: 'ae2d7374b524274e86777639cd1ad5cbc5c57404', name: "label" }, this.label))), index.h("nv-popover", { key: 'ed58d72aab9b23f25cd4ec8359ce7148a43fb22e', ref: el => (this.popoverElement = el), triggerMode: "controlled", placement: "bottom-start", open: this.open }, index.h("div", { key: 'ae3e65b9274c56f012e9798f549ee62063879688', class: "input-wrapper", slot: "trigger" }, index.h("slot", { key: '1fc77f160aebd9e21c8a79406ec1e829bd3c9265', name: "before-input" }), index.h("div", { key: '7502dc9df91a3b91bf1bb448e9f3cbee9f356f80', class: "input-container", onClick: this.handleInputContainerClick }, index.h("slot", { key: '50acd86050d4357c8e7af3c8464ad34cb73382ad', name: "leading-input" }), this.isFilterable || this.disabled || this.readonly ? (index.h("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 })) : (index.h("p", { id: this.inputId, class: "non-filterable-text", onClick: this.handleInputContainerClick, tabIndex: 0, onKeyDown: this.handleKeyDown, onFocus: this.handleInputFocus }, index.h("span", null, this.value || this.placeholder))), index.h("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 })), index.h("slot", { key: '26d4de108aa80b931f03201adc7b2470dc9ed526', name: "after-input" })), index.h("slot", { key: 'b9a39773f100d2579b2a9e568c19fabbbabbcefe', name: "content" })), (this.description ||
|
|
431
|
+
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '220b815bc502ff4f18fe40471139efc808f6a31b', class: "description" }, index.h("slot", { key: '6d0bfc07e3c5c5329d38e447f0c3a1974663e15b', name: "description" }, this.description))), (this.errorDescription ||
|
|
432
|
+
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '0cc511a914c00de65ee9f0f2033e292b9123620c', hidden: !this.error, class: "error-description" }, index.h("slot", { key: 'f442db41fdde383abc0873bafbaabba8be1387b3', name: "error-description" }, this.errorDescription)))));
|
|
355
433
|
}
|
|
356
434
|
static get formAssociated() { return true; }
|
|
357
435
|
get el() { return index.getElement(this); }
|