@nova-design-system/nova-webcomponents 3.0.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{constants-bcd6b2e2.js → constants-8fb8ccc0.js} +14 -1
- package/dist/cjs/constants-8fb8ccc0.js.map +1 -0
- package/dist/cjs/{index-9bda5507.js → index-108ddff0.js} +22 -6
- package/dist/cjs/index-108ddff0.js.map +1 -0
- package/dist/cjs/index.cjs.js +5 -471
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/native.cjs.js +2 -2
- package/dist/cjs/nv-alert.cjs.entry.js +6 -6
- package/dist/cjs/nv-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-avatar.cjs.entry.js +2 -2
- package/dist/cjs/nv-badge_2.cjs.entry.js +18 -9
- package/dist/cjs/nv-badge_2.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/nv-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/nv-button.cjs.entry.js +2 -2
- package/dist/cjs/nv-calendar.cjs.entry.js +821 -843
- package/dist/cjs/nv-calendar.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-col.cjs.entry.js +1 -1
- package/dist/cjs/nv-datagrid.cjs.entry.js +423 -94
- package/dist/cjs/nv-datagrid.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-datagridcolumn.cjs.entry.js +2 -2
- package/dist/cjs/nv-datagridcolumn.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-dialog.cjs.entry.js +19 -13
- package/dist/cjs/nv-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-dialogfooter_2.cjs.entry.js +2 -2
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +1 -1
- package/dist/cjs/nv-fielddate.cjs.entry.js +9 -18
- package/dist/cjs/nv-fielddate.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddaterange.cjs.entry.js +85 -32
- package/dist/cjs/nv-fielddaterange.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddropdown.cjs.entry.js +88 -57
- package/dist/cjs/nv-fielddropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js +2 -2
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +122 -104
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldnumber.cjs.entry.js +9 -5
- package/dist/cjs/nv-fieldnumber.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldpassword.cjs.entry.js +9 -5
- package/dist/cjs/nv-fieldpassword.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldradio.cjs.entry.js +4 -4
- package/dist/cjs/nv-fieldselect.cjs.entry.js +11 -7
- package/dist/cjs/nv-fieldselect.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldslider.cjs.entry.js +663 -0
- package/dist/cjs/nv-fieldslider.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-fieldtext.cjs.entry.js +9 -5
- package/dist/cjs/nv-fieldtext.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js +9 -5
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldtime.cjs.entry.js +16 -13
- package/dist/cjs/nv-fieldtime.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-icon.cjs.entry.js +4 -4
- package/dist/cjs/nv-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-iconbutton_2.cjs.entry.js +3 -3
- package/dist/cjs/nv-menu.cjs.entry.js +4 -2
- package/dist/cjs/nv-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-menuitem.cjs.entry.js +2 -2
- package/dist/cjs/nv-popover.cjs.entry.js +2 -2
- package/dist/cjs/nv-row.cjs.entry.js +2 -2
- package/dist/cjs/nv-stack.cjs.entry.js +2 -2
- package/dist/cjs/nv-table.cjs.entry.js +3 -3
- package/dist/cjs/nv-table.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-tablecolumn.cjs.entry.js +1 -1
- package/dist/cjs/nv-toggle.cjs.entry.js +3 -3
- package/dist/cjs/nv-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/nv-tooltip.cjs.entry.js.map +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/nv-alert/nv-alert.css +3 -0
- package/dist/collection/components/nv-alert/nv-alert.js +6 -11
- package/dist/collection/components/nv-alert/nv-alert.js.map +1 -1
- package/dist/collection/components/nv-badge/nv-badge.css +181 -1
- package/dist/collection/components/nv-badge/nv-badge.docs.js +20 -1
- package/dist/collection/components/nv-badge/nv-badge.docs.js.map +1 -1
- package/dist/collection/components/nv-badge/nv-badge.js +39 -15
- package/dist/collection/components/nv-badge/nv-badge.js.map +1 -1
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.docs.js +0 -1
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.docs.js.map +1 -1
- package/dist/collection/components/nv-calendar/nv-calendar.css +25 -2
- package/dist/collection/components/nv-calendar/nv-calendar.docs.js +33 -38
- package/dist/collection/components/nv-calendar/nv-calendar.docs.js.map +1 -1
- package/dist/collection/components/nv-calendar/nv-calendar.js +659 -897
- package/dist/collection/components/nv-calendar/nv-calendar.js.map +1 -1
- package/dist/collection/components/nv-calendar/nv-calendar.utils.js +202 -0
- package/dist/collection/components/nv-calendar/nv-calendar.utils.js.map +1 -0
- package/dist/collection/components/nv-calendar/test/nv-calendar.utils.test.js +667 -0
- package/dist/collection/components/nv-calendar/test/nv-calendar.utils.test.js.map +1 -0
- package/dist/collection/components/nv-datagrid/nv-datagrid.css +98 -0
- package/dist/collection/components/nv-datagrid/nv-datagrid.docs.js +232 -51
- package/dist/collection/components/nv-datagrid/nv-datagrid.docs.js.map +1 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.js +437 -160
- package/dist/collection/components/nv-datagrid/nv-datagrid.js.map +1 -1
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.js +20 -1
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.js.map +1 -1
- package/dist/collection/components/nv-dialog/nv-dialog.css +29 -5
- package/dist/collection/components/nv-dialog/nv-dialog.docs.js +0 -1
- package/dist/collection/components/nv-dialog/nv-dialog.docs.js.map +1 -1
- package/dist/collection/components/nv-dialog/nv-dialog.js +16 -10
- package/dist/collection/components/nv-dialog/nv-dialog.js.map +1 -1
- package/dist/collection/components/nv-fielddate/nv-fielddate.docs.js +16 -8
- package/dist/collection/components/nv-fielddate/nv-fielddate.docs.js.map +1 -1
- package/dist/collection/components/nv-fielddate/nv-fielddate.js +48 -39
- package/dist/collection/components/nv-fielddate/nv-fielddate.js.map +1 -1
- package/dist/collection/components/nv-fielddate/styles/nv-fielddate.css +14 -1
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.docs.js +12 -15
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.docs.js.map +1 -1
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.js +147 -68
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.js.map +1 -1
- package/dist/collection/components/nv-fielddaterange/styles/nv-fielddaterange.css +20 -12
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js +16 -0
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js.map +1 -1
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js +197 -103
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js.map +1 -1
- package/dist/collection/components/nv-fielddropdown/styles/nv-fielddropdown.css +36 -1
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js +1 -1
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js +1 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js +8 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js.map +1 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js +228 -190
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js.map +1 -1
- package/dist/collection/components/nv-fieldmultiselect/{nv-fieldmultiselect.css → styles/nv-fieldmultiselect.css} +36 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.css +12 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.docs.js +8 -0
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.docs.js.map +1 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js +27 -3
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js.map +1 -1
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.css +12 -1
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.docs.js +8 -0
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.docs.js.map +1 -1
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js +27 -3
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js.map +1 -1
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js +3 -3
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.css +12 -1
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.docs.js +8 -0
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.docs.js.map +1 -1
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js +29 -5
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js.map +1 -1
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.docs.js +264 -0
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.docs.js.map +1 -0
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.js +1035 -0
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.js.map +1 -0
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.utils.js +77 -0
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.utils.js.map +1 -0
- package/dist/collection/components/nv-fieldslider/partials/field-input.js +33 -0
- package/dist/collection/components/nv-fieldslider/partials/field-input.js.map +1 -0
- package/dist/collection/components/nv-fieldslider/partials/range-thumb.js +34 -0
- package/dist/collection/components/nv-fieldslider/partials/range-thumb.js.map +1 -0
- package/dist/collection/components/nv-fieldslider/partials/single-thumb.js +18 -0
- package/dist/collection/components/nv-fieldslider/partials/single-thumb.js.map +1 -0
- package/dist/collection/components/nv-fieldslider/partials/tick-marks.js +18 -0
- package/dist/collection/components/nv-fieldslider/partials/tick-marks.js.map +1 -0
- package/dist/collection/components/nv-fieldslider/styles/nv-fieldslider.css +267 -0
- package/dist/collection/components/nv-fieldslider/test/nv-fieldslider.utils.test.js +159 -0
- package/dist/collection/components/nv-fieldslider/test/nv-fieldslider.utils.test.js.map +1 -0
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.css +20 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js +17 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js.map +1 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js +28 -3
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js.map +1 -1
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.css +30 -1
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.docs.js +8 -0
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.docs.js.map +1 -1
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js +27 -3
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js.map +1 -1
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.js +13 -10
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.js.map +1 -1
- package/dist/collection/components/nv-fieldtime/styles/nv-fieldtime.css +26 -3
- package/dist/collection/components/nv-icon/nv-icon.js +1 -1
- package/dist/collection/components/nv-icon/nv-icons.js +4 -470
- package/dist/collection/components/nv-icon/nv-icons.js.map +1 -1
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.js +1 -1
- package/dist/collection/components/nv-loader/nv-loader.js +1 -1
- package/dist/collection/components/nv-menu/nv-menu.js +3 -1
- package/dist/collection/components/nv-menu/nv-menu.js.map +1 -1
- package/dist/collection/components/nv-menuitem/nv-menuitem.js +2 -2
- package/dist/collection/components/nv-popover/nv-popover.js +1 -1
- package/dist/collection/components/nv-row/nv-row.js +1 -1
- package/dist/collection/components/nv-stack/nv-stack.js +1 -1
- package/dist/collection/components/nv-table/nv-table.js +8 -11
- package/dist/collection/components/nv-table/nv-table.js.map +1 -1
- package/dist/collection/components/nv-toggle/nv-toggle.js +2 -2
- package/dist/collection/components/nv-tooltip/nv-tooltip.css +1 -0
- package/dist/collection/components/nv-tooltip/nv-tooltip.js +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/interfaces/Column.js.map +1 -1
- package/dist/collection/templates/navigation.docs.js +0 -1
- package/dist/collection/templates/navigation.docs.js.map +1 -1
- package/dist/collection/utils/constants.js +11 -0
- package/dist/collection/utils/constants.js.map +1 -1
- package/dist/components/index.js +6 -472
- package/dist/components/index.js.map +1 -1
- package/dist/components/nv-alert.js +7 -7
- package/dist/components/nv-alert.js.map +1 -1
- package/dist/components/nv-avatar.js +3 -3
- package/dist/components/nv-badge.js +1 -1
- package/dist/components/nv-breadcrumb.js +3 -3
- package/dist/components/nv-breadcrumbs.js +1 -1
- package/dist/components/nv-button.js +1 -1
- package/dist/components/nv-calendar.js +1 -1
- package/dist/components/nv-col.js +1 -1
- package/dist/components/nv-datagrid.js +447 -102
- package/dist/components/nv-datagrid.js.map +1 -1
- package/dist/components/nv-datagridcolumn.js +4 -3
- package/dist/components/nv-datagridcolumn.js.map +1 -1
- package/dist/components/nv-dialog.js +24 -18
- package/dist/components/nv-dialog.js.map +1 -1
- package/dist/components/nv-dialogfooter.js +1 -1
- package/dist/components/nv-dialogheader.js +1 -1
- package/dist/components/nv-fieldcheckbox.js +1 -1
- package/dist/components/nv-fielddate.js +19 -27
- package/dist/components/nv-fielddate.js.map +1 -1
- package/dist/components/nv-fielddaterange.js +99 -44
- package/dist/components/nv-fielddaterange.js.map +1 -1
- package/dist/components/nv-fielddropdown.js +103 -69
- package/dist/components/nv-fielddropdown.js.map +1 -1
- package/dist/components/nv-fielddropdownitem.js +1 -1
- package/dist/components/nv-fielddropdownitemcheck.js +1 -1
- package/dist/components/nv-fieldmultiselect.js +139 -120
- package/dist/components/nv-fieldmultiselect.js.map +1 -1
- package/dist/components/nv-fieldnumber.js +14 -9
- package/dist/components/nv-fieldnumber.js.map +1 -1
- package/dist/components/nv-fieldpassword.js +13 -8
- package/dist/components/nv-fieldpassword.js.map +1 -1
- package/dist/components/nv-fieldradio.js +4 -4
- package/dist/components/nv-fieldselect.js +15 -10
- package/dist/components/nv-fieldselect.js.map +1 -1
- package/dist/components/nv-fieldslider.d.ts +11 -0
- package/dist/components/nv-fieldslider.js +726 -0
- package/dist/components/nv-fieldslider.js.map +1 -0
- package/dist/components/nv-fieldtext.js +1 -158
- package/dist/components/nv-fieldtext.js.map +1 -1
- package/dist/components/nv-fieldtextarea.js +11 -6
- package/dist/components/nv-fieldtextarea.js.map +1 -1
- package/dist/components/nv-fieldtime.js +20 -17
- package/dist/components/nv-fieldtime.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 +7 -5
- package/dist/components/nv-menu.js.map +1 -1
- package/dist/components/nv-menuitem.js +1 -1
- package/dist/components/nv-popover.js +1 -1
- package/dist/components/nv-row.js +2 -2
- package/dist/components/nv-stack.js +2 -2
- package/dist/components/nv-table.js +3 -3
- package/dist/components/nv-table.js.map +1 -1
- package/dist/components/nv-tablecolumn.js +1 -1
- package/dist/components/nv-toggle.js +3 -3
- package/dist/components/nv-tooltip.js +1 -1
- package/dist/components/{p-dc3faba3.js → p-04cb3a6f.js} +5 -5
- package/dist/components/{p-dc3faba3.js.map → p-04cb3a6f.js.map} +1 -1
- package/dist/components/p-07a89754.js +187 -0
- package/dist/components/p-07a89754.js.map +1 -0
- package/dist/components/{p-b7b78e64.js → p-0ab80d95.js} +3 -3
- package/dist/components/{p-b7b78e64.js.map → p-0ab80d95.js.map} +1 -1
- package/dist/components/{p-8348db09.js → p-1f505531.js} +15 -2
- package/dist/components/p-1f505531.js.map +1 -0
- package/dist/components/{p-02752770.js → p-33e231f4.js} +2 -2
- package/dist/components/{p-02752770.js.map → p-33e231f4.js.map} +1 -1
- package/dist/components/p-4656efae.js +1111 -0
- package/dist/components/p-4656efae.js.map +1 -0
- package/dist/components/{p-2012b8ba.js → p-581e67cc.js} +4 -4
- package/dist/components/{p-2012b8ba.js.map → p-581e67cc.js.map} +1 -1
- package/dist/components/{p-1c45c0f2.js → p-679e0fa9.js} +16 -4
- package/dist/components/p-679e0fa9.js.map +1 -0
- package/dist/components/p-76a30bf1.js +88 -0
- package/dist/components/p-76a30bf1.js.map +1 -0
- package/dist/components/{p-150daf68.js → p-83c8873a.js} +3 -3
- package/dist/components/{p-150daf68.js.map → p-83c8873a.js.map} +1 -1
- package/dist/components/{p-c14f6b8e.js → p-c0a91091.js} +5 -5
- package/dist/components/p-c0a91091.js.map +1 -0
- package/dist/components/{p-6c364a23.js → p-cbdc2c8b.js} +6 -6
- package/dist/components/{p-6c364a23.js.map → p-cbdc2c8b.js.map} +1 -1
- package/dist/components/{p-2d9ba7d3.js → p-cbe9521f.js} +4 -4
- package/dist/components/{p-2d9ba7d3.js.map → p-cbe9521f.js.map} +1 -1
- package/dist/components/{p-a30b55fc.js → p-d19b41d2.js} +2 -2
- package/dist/components/{p-a30b55fc.js.map → p-d19b41d2.js.map} +1 -1
- package/dist/components/{p-4d3ec142.js → p-d63f1cbe.js} +4 -4
- package/dist/components/{p-4d3ec142.js.map → p-d63f1cbe.js.map} +1 -1
- package/dist/components/{p-e00cbb8a.js → p-dd2273a3.js} +2 -2
- package/dist/components/{p-e00cbb8a.js.map → p-dd2273a3.js.map} +1 -1
- package/dist/components/p-f0a5e7e4.js +167 -0
- package/dist/components/p-f0a5e7e4.js.map +1 -0
- package/dist/components/{p-f4d86795.js → p-f1859ddc.js} +4 -4
- package/dist/components/{p-f4d86795.js.map → p-f1859ddc.js.map} +1 -1
- package/dist/esm/{constants-98e2dcc2.js → constants-b97e736d.js} +15 -2
- package/dist/esm/constants-b97e736d.js.map +1 -0
- package/dist/esm/{index-1fb7a9a6.js → index-8f0e5f19.js} +22 -6
- package/dist/esm/index-8f0e5f19.js.map +1 -0
- package/dist/esm/index.js +5 -471
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/native.js +3 -3
- package/dist/esm/nv-alert.entry.js +6 -6
- package/dist/esm/nv-alert.entry.js.map +1 -1
- package/dist/esm/nv-avatar.entry.js +2 -2
- package/dist/esm/nv-badge_2.entry.js +18 -9
- package/dist/esm/nv-badge_2.entry.js.map +1 -1
- package/dist/esm/nv-breadcrumb.entry.js +1 -1
- package/dist/esm/nv-breadcrumbs.entry.js +1 -1
- package/dist/esm/nv-button.entry.js +2 -2
- package/dist/esm/nv-calendar.entry.js +821 -843
- package/dist/esm/nv-calendar.entry.js.map +1 -1
- package/dist/esm/nv-col.entry.js +1 -1
- package/dist/esm/nv-datagrid.entry.js +423 -94
- package/dist/esm/nv-datagrid.entry.js.map +1 -1
- package/dist/esm/nv-datagridcolumn.entry.js +2 -2
- package/dist/esm/nv-datagridcolumn.entry.js.map +1 -1
- package/dist/esm/nv-dialog.entry.js +19 -13
- package/dist/esm/nv-dialog.entry.js.map +1 -1
- package/dist/esm/nv-dialogfooter_2.entry.js +2 -2
- package/dist/esm/nv-fieldcheckbox.entry.js +1 -1
- package/dist/esm/nv-fielddate.entry.js +9 -18
- package/dist/esm/nv-fielddate.entry.js.map +1 -1
- package/dist/esm/nv-fielddaterange.entry.js +85 -32
- package/dist/esm/nv-fielddaterange.entry.js.map +1 -1
- package/dist/esm/nv-fielddropdown.entry.js +88 -57
- package/dist/esm/nv-fielddropdown.entry.js.map +1 -1
- package/dist/esm/nv-fielddropdownitem.entry.js +2 -2
- package/dist/esm/nv-fieldmultiselect.entry.js +122 -104
- package/dist/esm/nv-fieldmultiselect.entry.js.map +1 -1
- package/dist/esm/nv-fieldnumber.entry.js +9 -5
- package/dist/esm/nv-fieldnumber.entry.js.map +1 -1
- package/dist/esm/nv-fieldpassword.entry.js +9 -5
- package/dist/esm/nv-fieldpassword.entry.js.map +1 -1
- package/dist/esm/nv-fieldradio.entry.js +4 -4
- package/dist/esm/nv-fieldselect.entry.js +11 -7
- package/dist/esm/nv-fieldselect.entry.js.map +1 -1
- package/dist/esm/nv-fieldslider.entry.js +659 -0
- package/dist/esm/nv-fieldslider.entry.js.map +1 -0
- package/dist/esm/nv-fieldtext.entry.js +9 -5
- package/dist/esm/nv-fieldtext.entry.js.map +1 -1
- package/dist/esm/nv-fieldtextarea.entry.js +9 -5
- package/dist/esm/nv-fieldtextarea.entry.js.map +1 -1
- package/dist/esm/nv-fieldtime.entry.js +16 -13
- package/dist/esm/nv-fieldtime.entry.js.map +1 -1
- package/dist/esm/nv-icon.entry.js +4 -4
- package/dist/esm/nv-icon.entry.js.map +1 -1
- package/dist/esm/nv-iconbutton_2.entry.js +3 -3
- package/dist/esm/nv-menu.entry.js +4 -2
- package/dist/esm/nv-menu.entry.js.map +1 -1
- package/dist/esm/nv-menuitem.entry.js +2 -2
- package/dist/esm/nv-popover.entry.js +2 -2
- package/dist/esm/nv-row.entry.js +2 -2
- package/dist/esm/nv-stack.entry.js +2 -2
- package/dist/esm/nv-table.entry.js +3 -3
- package/dist/esm/nv-table.entry.js.map +1 -1
- package/dist/esm/nv-tablecolumn.entry.js +1 -1
- package/dist/esm/nv-toggle.entry.js +3 -3
- package/dist/esm/nv-tooltip.entry.js +3 -3
- package/dist/esm/nv-tooltip.entry.js.map +1 -1
- package/dist/native/index.esm.js +1 -1
- package/dist/native/index.esm.js.map +1 -1
- package/dist/native/native.css +1 -1
- package/dist/native/native.esm.js +1 -1
- package/dist/native/native.esm.js.map +1 -1
- package/dist/native/{p-6b348684.entry.js → p-0323daf6.entry.js} +2 -2
- package/dist/native/{p-d5cbf5c8.entry.js → p-05d95d4d.entry.js} +2 -2
- package/dist/native/{p-fb5bddba.entry.js → p-0ec1e2e3.entry.js} +2 -2
- package/dist/native/{p-c7b201cd.entry.js → p-16a4cdf3.entry.js} +2 -2
- package/dist/native/p-19fb0fd0.entry.js +2 -0
- package/dist/native/p-19fb0fd0.entry.js.map +1 -0
- package/dist/native/p-1e3d3374.entry.js +2 -0
- package/dist/native/{p-9135fdf5.entry.js.map → p-1e3d3374.entry.js.map} +1 -1
- package/dist/native/p-21e7132f.entry.js +2 -0
- package/dist/native/p-21e7132f.entry.js.map +1 -0
- package/dist/native/p-221b8f72.entry.js +2 -0
- package/dist/native/p-221b8f72.entry.js.map +1 -0
- package/dist/native/p-2805f9f2.entry.js +2 -0
- package/dist/native/p-2805f9f2.entry.js.map +1 -0
- package/dist/native/p-3f2b6a22.entry.js +2 -0
- package/dist/native/p-3f2b6a22.entry.js.map +1 -0
- package/dist/native/{p-0245863d.entry.js → p-407fc32d.entry.js} +2 -2
- package/dist/native/{p-63e6aed3.entry.js → p-4c0d81b0.entry.js} +2 -2
- package/dist/native/p-4c0d81b0.entry.js.map +1 -0
- package/dist/native/{p-39bb95ff.entry.js → p-519b4819.entry.js} +2 -2
- package/dist/native/{p-fa77a591.entry.js → p-5382eab2.entry.js} +2 -2
- package/dist/native/p-5ba3fc3c.entry.js +2 -0
- package/dist/native/p-5ba3fc3c.entry.js.map +1 -0
- package/dist/native/{p-bad11367.entry.js → p-60b204ac.entry.js} +2 -2
- package/dist/native/p-60b204ac.entry.js.map +1 -0
- package/dist/native/p-7092a675.entry.js +2 -0
- package/dist/native/p-711a7778.js +3 -0
- package/dist/native/p-711a7778.js.map +1 -0
- package/dist/native/p-759c9ce4.entry.js +2 -0
- package/dist/native/p-759c9ce4.entry.js.map +1 -0
- package/dist/native/{p-d7a76400.entry.js → p-7c676f2c.entry.js} +2 -2
- package/dist/native/p-7c6edd1c.entry.js +2 -0
- package/dist/native/p-7c6edd1c.entry.js.map +1 -0
- package/dist/native/p-987c79d8.entry.js +2 -0
- package/dist/native/p-987c79d8.entry.js.map +1 -0
- package/dist/native/{p-f85aca27.entry.js → p-9fba8663.entry.js} +2 -2
- package/dist/native/{p-b094296d.entry.js → p-a2c0f1a7.entry.js} +2 -2
- package/dist/native/p-aa86af25.entry.js +2 -0
- package/dist/native/p-aa86af25.entry.js.map +1 -0
- package/dist/native/p-adc96c3a.entry.js +2 -0
- package/dist/native/p-adc96c3a.entry.js.map +1 -0
- package/dist/native/p-b0fc08e7.entry.js +2 -0
- package/dist/native/p-b0fc08e7.entry.js.map +1 -0
- package/dist/native/{p-6ff228da.entry.js → p-c930adb7.entry.js} +2 -2
- package/dist/native/{p-701b5557.entry.js → p-cfe0a6c6.entry.js} +2 -2
- package/dist/native/p-d07ab618.entry.js +2 -0
- package/dist/native/p-dac0089b.entry.js +2 -0
- package/dist/native/p-dac0089b.entry.js.map +1 -0
- package/dist/native/p-de2c07a6.entry.js +13 -0
- package/dist/native/p-de2c07a6.entry.js.map +1 -0
- package/dist/native/p-ed488498.entry.js +7 -0
- package/dist/native/p-ed488498.entry.js.map +1 -0
- package/dist/native/p-ef76178b.entry.js +2 -0
- package/dist/native/p-ef76178b.entry.js.map +1 -0
- package/dist/native/{p-e5de64d5.entry.js → p-f0ddf60b.entry.js} +2 -2
- package/dist/native/p-f39803d9.entry.js +2 -0
- package/dist/native/p-f39803d9.entry.js.map +1 -0
- package/dist/native/{p-59768ee5.js → p-f85c08f1.js} +2 -2
- package/dist/native/p-f85c08f1.js.map +1 -0
- package/dist/native/p-fb897f7d.entry.js +2 -0
- package/dist/native/p-fb897f7d.entry.js.map +1 -0
- package/dist/native/{p-244f56ac.entry.js → p-fc3bea07.entry.js} +2 -2
- package/dist/types/components/nv-alert/nv-alert.d.ts +1 -1
- package/dist/types/components/nv-badge/nv-badge.d.ts +11 -3
- package/dist/types/components/nv-calendar/nv-calendar.d.ts +70 -112
- package/dist/types/components/nv-calendar/nv-calendar.utils.d.ts +60 -0
- package/dist/types/components/nv-calendar/test/nv-calendar.utils.test.d.ts +1 -0
- package/dist/types/components/nv-datagrid/nv-datagrid.d.ts +47 -26
- package/dist/types/components/nv-datagridcolumn/nv-datagridcolumn.d.ts +4 -0
- package/dist/types/components/nv-dialog/nv-dialog.d.ts +4 -0
- package/dist/types/components/nv-fielddate/nv-fielddate.d.ts +6 -7
- package/dist/types/components/nv-fielddaterange/nv-fielddaterange.d.ts +23 -12
- package/dist/types/components/nv-fielddropdown/nv-fielddropdown.d.ts +51 -26
- package/dist/types/components/nv-fieldmultiselect/nv-fieldmultiselect.d.ts +65 -55
- package/dist/types/components/nv-fieldnumber/nv-fieldnumber.d.ts +4 -0
- package/dist/types/components/nv-fieldpassword/nv-fieldpassword.d.ts +4 -0
- package/dist/types/components/nv-fieldselect/nv-fieldselect.d.ts +4 -0
- package/dist/types/components/nv-fieldslider/nv-fieldslider.d.ts +230 -0
- package/dist/types/components/nv-fieldslider/nv-fieldslider.docs.d.ts +4 -0
- package/dist/types/components/nv-fieldslider/nv-fieldslider.utils.d.ts +46 -0
- package/dist/types/components/nv-fieldslider/partials/field-input.d.ts +45 -0
- package/dist/types/components/nv-fieldslider/partials/range-thumb.d.ts +37 -0
- package/dist/types/components/nv-fieldslider/partials/single-thumb.d.ts +35 -0
- package/dist/types/components/nv-fieldslider/partials/tick-marks.d.ts +28 -0
- package/dist/types/components/nv-fieldslider/test/nv-fieldslider.utils.test.d.ts +1 -0
- package/dist/types/components/nv-fieldtext/nv-fieldtext.d.ts +5 -0
- package/dist/types/components/nv-fieldtextarea/nv-fieldtextarea.d.ts +4 -0
- package/dist/types/components/nv-icon/nv-icons.d.ts +1 -1
- package/dist/types/components/nv-table/nv-table.d.ts +13 -2
- package/dist/types/components.d.ts +656 -154
- package/dist/types/index.d.ts +0 -2
- package/dist/types/interfaces/Column.d.ts +5 -1
- package/dist/types/utils/constants.d.ts +9 -0
- package/dist/vscode-data.json +292 -1546
- package/hydrate/index.js +2715 -1533
- package/hydrate/index.mjs +2715 -1533
- package/package.json +6 -2
- package/dist/cjs/constants-bcd6b2e2.js.map +0 -1
- package/dist/cjs/index-9bda5507.js.map +0 -1
- package/dist/collection/interfaces/actionEvent.js +0 -2
- package/dist/collection/interfaces/actionEvent.js.map +0 -1
- package/dist/collection/interfaces/calendarShortcut.js +0 -2
- package/dist/collection/interfaces/calendarShortcut.js.map +0 -1
- package/dist/collection/interfaces/dateRange.js +0 -2
- package/dist/collection/interfaces/dateRange.js.map +0 -1
- package/dist/components/p-1c45c0f2.js.map +0 -1
- package/dist/components/p-373926aa.js +0 -177
- package/dist/components/p-373926aa.js.map +0 -1
- package/dist/components/p-591730e7.js +0 -88
- package/dist/components/p-591730e7.js.map +0 -1
- package/dist/components/p-8348db09.js.map +0 -1
- package/dist/components/p-c14f6b8e.js.map +0 -1
- package/dist/components/p-f331117c.js +0 -1133
- package/dist/components/p-f331117c.js.map +0 -1
- package/dist/esm/constants-98e2dcc2.js.map +0 -1
- package/dist/esm/index-1fb7a9a6.js.map +0 -1
- package/dist/native/p-0ee428d5.entry.js +0 -2
- package/dist/native/p-0ee428d5.entry.js.map +0 -1
- package/dist/native/p-2691e02d.entry.js +0 -2
- package/dist/native/p-37f0210e.entry.js +0 -2
- package/dist/native/p-37f0210e.entry.js.map +0 -1
- package/dist/native/p-4a440970.entry.js +0 -2
- package/dist/native/p-4a440970.entry.js.map +0 -1
- package/dist/native/p-4ae26462.entry.js +0 -7
- package/dist/native/p-4ae26462.entry.js.map +0 -1
- package/dist/native/p-4d9c4618.entry.js +0 -2
- package/dist/native/p-4d9c4618.entry.js.map +0 -1
- package/dist/native/p-4dc1d036.entry.js +0 -2
- package/dist/native/p-59768ee5.js.map +0 -1
- package/dist/native/p-59e0bd2b.entry.js +0 -2
- package/dist/native/p-59e0bd2b.entry.js.map +0 -1
- package/dist/native/p-5c00f092.entry.js +0 -2
- package/dist/native/p-5c00f092.entry.js.map +0 -1
- package/dist/native/p-63e6aed3.entry.js.map +0 -1
- package/dist/native/p-7f5eb2ac.entry.js +0 -2
- package/dist/native/p-7f5eb2ac.entry.js.map +0 -1
- package/dist/native/p-84a73e2a.entry.js +0 -2
- package/dist/native/p-84a73e2a.entry.js.map +0 -1
- package/dist/native/p-9135fdf5.entry.js +0 -2
- package/dist/native/p-93dc2f47.entry.js +0 -2
- package/dist/native/p-93dc2f47.entry.js.map +0 -1
- package/dist/native/p-9a267f16.entry.js +0 -13
- package/dist/native/p-9a267f16.entry.js.map +0 -1
- package/dist/native/p-9d6431c7.entry.js +0 -2
- package/dist/native/p-9d6431c7.entry.js.map +0 -1
- package/dist/native/p-ab002252.js +0 -3
- package/dist/native/p-ab002252.js.map +0 -1
- package/dist/native/p-b2ce83ad.entry.js +0 -2
- package/dist/native/p-b2ce83ad.entry.js.map +0 -1
- package/dist/native/p-bad11367.entry.js.map +0 -1
- package/dist/native/p-e1a4f776.entry.js +0 -2
- package/dist/native/p-e1a4f776.entry.js.map +0 -1
- package/dist/native/p-e49bbd02.entry.js +0 -2
- package/dist/native/p-e49bbd02.entry.js.map +0 -1
- package/dist/native/p-eee01062.entry.js +0 -2
- package/dist/native/p-eee01062.entry.js.map +0 -1
- package/dist/native/p-f6bdc270.entry.js +0 -2
- package/dist/native/p-f6bdc270.entry.js.map +0 -1
- package/dist/types/interfaces/actionEvent.d.ts +0 -13
- package/dist/types/interfaces/calendarShortcut.d.ts +0 -17
- package/dist/types/interfaces/dateRange.d.ts +0 -13
- /package/dist/native/{p-6b348684.entry.js.map → p-0323daf6.entry.js.map} +0 -0
- /package/dist/native/{p-d5cbf5c8.entry.js.map → p-05d95d4d.entry.js.map} +0 -0
- /package/dist/native/{p-fb5bddba.entry.js.map → p-0ec1e2e3.entry.js.map} +0 -0
- /package/dist/native/{p-c7b201cd.entry.js.map → p-16a4cdf3.entry.js.map} +0 -0
- /package/dist/native/{p-0245863d.entry.js.map → p-407fc32d.entry.js.map} +0 -0
- /package/dist/native/{p-39bb95ff.entry.js.map → p-519b4819.entry.js.map} +0 -0
- /package/dist/native/{p-fa77a591.entry.js.map → p-5382eab2.entry.js.map} +0 -0
- /package/dist/native/{p-2691e02d.entry.js.map → p-7092a675.entry.js.map} +0 -0
- /package/dist/native/{p-d7a76400.entry.js.map → p-7c676f2c.entry.js.map} +0 -0
- /package/dist/native/{p-f85aca27.entry.js.map → p-9fba8663.entry.js.map} +0 -0
- /package/dist/native/{p-b094296d.entry.js.map → p-a2c0f1a7.entry.js.map} +0 -0
- /package/dist/native/{p-6ff228da.entry.js.map → p-c930adb7.entry.js.map} +0 -0
- /package/dist/native/{p-701b5557.entry.js.map → p-cfe0a6c6.entry.js.map} +0 -0
- /package/dist/native/{p-4dc1d036.entry.js.map → p-d07ab618.entry.js.map} +0 -0
- /package/dist/native/{p-e5de64d5.entry.js.map → p-f0ddf60b.entry.js.map} +0 -0
- /package/dist/native/{p-244f56ac.entry.js.map → p-fc3bea07.entry.js.map} +0 -0
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-679e0fa9.js';
|
|
2
2
|
import { d as deepCopyElement, e as excludedProps } from './p-cb34aa4f.js';
|
|
3
|
+
import { d as SortingPossibility } from './p-1f505531.js';
|
|
4
|
+
import { d as defineCustomElement$3 } from './p-f0a5e7e4.js';
|
|
5
|
+
import { d as defineCustomElement$2 } from './p-76a30bf1.js';
|
|
3
6
|
|
|
4
7
|
/**
|
|
5
8
|
* table-core
|
|
@@ -3199,6 +3202,92 @@ function getPaginationRowModel(opts) {
|
|
|
3199
3202
|
}, getMemoOptions(table.options, 'debugTable'));
|
|
3200
3203
|
}
|
|
3201
3204
|
|
|
3205
|
+
function getSortedRowModel() {
|
|
3206
|
+
return table => memo(() => [table.getState().sorting, table.getPreSortedRowModel()], (sorting, rowModel) => {
|
|
3207
|
+
if (!rowModel.rows.length || !(sorting != null && sorting.length)) {
|
|
3208
|
+
return rowModel;
|
|
3209
|
+
}
|
|
3210
|
+
const sortingState = table.getState().sorting;
|
|
3211
|
+
const sortedFlatRows = [];
|
|
3212
|
+
|
|
3213
|
+
// Filter out sortings that correspond to non existing columns
|
|
3214
|
+
const availableSorting = sortingState.filter(sort => {
|
|
3215
|
+
var _table$getColumn;
|
|
3216
|
+
return (_table$getColumn = table.getColumn(sort.id)) == null ? void 0 : _table$getColumn.getCanSort();
|
|
3217
|
+
});
|
|
3218
|
+
const columnInfoById = {};
|
|
3219
|
+
availableSorting.forEach(sortEntry => {
|
|
3220
|
+
const column = table.getColumn(sortEntry.id);
|
|
3221
|
+
if (!column) return;
|
|
3222
|
+
columnInfoById[sortEntry.id] = {
|
|
3223
|
+
sortUndefined: column.columnDef.sortUndefined,
|
|
3224
|
+
invertSorting: column.columnDef.invertSorting,
|
|
3225
|
+
sortingFn: column.getSortingFn()
|
|
3226
|
+
};
|
|
3227
|
+
});
|
|
3228
|
+
const sortData = rows => {
|
|
3229
|
+
// This will also perform a stable sorting using the row index
|
|
3230
|
+
// if needed.
|
|
3231
|
+
const sortedData = rows.map(row => ({
|
|
3232
|
+
...row
|
|
3233
|
+
}));
|
|
3234
|
+
sortedData.sort((rowA, rowB) => {
|
|
3235
|
+
for (let i = 0; i < availableSorting.length; i += 1) {
|
|
3236
|
+
var _sortEntry$desc;
|
|
3237
|
+
const sortEntry = availableSorting[i];
|
|
3238
|
+
const columnInfo = columnInfoById[sortEntry.id];
|
|
3239
|
+
const sortUndefined = columnInfo.sortUndefined;
|
|
3240
|
+
const isDesc = (_sortEntry$desc = sortEntry == null ? void 0 : sortEntry.desc) != null ? _sortEntry$desc : false;
|
|
3241
|
+
let sortInt = 0;
|
|
3242
|
+
|
|
3243
|
+
// All sorting ints should always return in ascending order
|
|
3244
|
+
if (sortUndefined) {
|
|
3245
|
+
const aValue = rowA.getValue(sortEntry.id);
|
|
3246
|
+
const bValue = rowB.getValue(sortEntry.id);
|
|
3247
|
+
const aUndefined = aValue === undefined;
|
|
3248
|
+
const bUndefined = bValue === undefined;
|
|
3249
|
+
if (aUndefined || bUndefined) {
|
|
3250
|
+
if (sortUndefined === 'first') return aUndefined ? -1 : 1;
|
|
3251
|
+
if (sortUndefined === 'last') return aUndefined ? 1 : -1;
|
|
3252
|
+
sortInt = aUndefined && bUndefined ? 0 : aUndefined ? sortUndefined : -sortUndefined;
|
|
3253
|
+
}
|
|
3254
|
+
}
|
|
3255
|
+
if (sortInt === 0) {
|
|
3256
|
+
sortInt = columnInfo.sortingFn(rowA, rowB, sortEntry.id);
|
|
3257
|
+
}
|
|
3258
|
+
|
|
3259
|
+
// If sorting is non-zero, take care of desc and inversion
|
|
3260
|
+
if (sortInt !== 0) {
|
|
3261
|
+
if (isDesc) {
|
|
3262
|
+
sortInt *= -1;
|
|
3263
|
+
}
|
|
3264
|
+
if (columnInfo.invertSorting) {
|
|
3265
|
+
sortInt *= -1;
|
|
3266
|
+
}
|
|
3267
|
+
return sortInt;
|
|
3268
|
+
}
|
|
3269
|
+
}
|
|
3270
|
+
return rowA.index - rowB.index;
|
|
3271
|
+
});
|
|
3272
|
+
|
|
3273
|
+
// If there are sub-rows, sort them
|
|
3274
|
+
sortedData.forEach(row => {
|
|
3275
|
+
var _row$subRows;
|
|
3276
|
+
sortedFlatRows.push(row);
|
|
3277
|
+
if ((_row$subRows = row.subRows) != null && _row$subRows.length) {
|
|
3278
|
+
row.subRows = sortData(row.subRows);
|
|
3279
|
+
}
|
|
3280
|
+
});
|
|
3281
|
+
return sortedData;
|
|
3282
|
+
};
|
|
3283
|
+
return {
|
|
3284
|
+
rows: sortData(rowModel.rows),
|
|
3285
|
+
flatRows: sortedFlatRows,
|
|
3286
|
+
rowsById: rowModel.rowsById
|
|
3287
|
+
};
|
|
3288
|
+
}, getMemoOptions(table.options, 'debugTable', 'getSortedRowModel', () => table._autoResetPageIndex()));
|
|
3289
|
+
}
|
|
3290
|
+
|
|
3202
3291
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3203
3292
|
/**
|
|
3204
3293
|
* Debounce function to prevent multiple calls in a short
|
|
@@ -3219,7 +3308,7 @@ function debounce(func, wait) {
|
|
|
3219
3308
|
};
|
|
3220
3309
|
}
|
|
3221
3310
|
|
|
3222
|
-
const nvDatagridCss = "nv-datagrid{display:block}nv-datagrid .hidden{display:none}nv-datagrid table{border-collapse:collapse;border-color:inherit;text-indent:0;width:100%}nv-datagrid th{text-align:left;border-bottom:1px solid var(--components-datagrid-header-border);height:var(--spacing-12);padding:var(--spacing-3) var(--spacing-4);font-size:var(--font-size-md);font-weight:700;color:var(--components-datagrid-header-text)}nv-datagrid td{border-bottom:1px solid var(--components-datagrid-body-border);height:var(--spacing-12);max-height:var(--spacing-14);padding:var(--spacing-2) var(--spacing-4);font-size:var(--font-size-md);font-weight:400;color:var(--components-datagrid-body-text);white-space:nowrap;text-overflow:ellipsis}nv-datagrid tbody>tr:hover{background:var(--color-interaction-container-neutral-background-hover)}";
|
|
3311
|
+
const nvDatagridCss = "nv-datagrid{--nv-datagrid-border-default:var(\n --components-form-field-border-default\n );--nv-datagrid-border-hover:var(--components-form-field-border-hover);--nv-datagrid-border-focus:var(--components-form-field-border-default);--nv-datagrid-background-default:var(\n --components-form-field-background-default\n );--nv-datagrid-background-checked:var(\n --components-form-field-background-checked\n );--nv-datagrid-background-disabled:var(\n --components-form-field-background-disabled\n );--nv-datagrid-color-checked:var(\n --components-form-shape-foreground-default\n );--nv-datagrid-color-disabled:var(\n --components-form-shape-foreground-disabled\n );--nv-datagrid-outline-color:var(--color-focus-brand);display:block}nv-datagrid .hidden{display:none}nv-datagrid table{border-collapse:collapse;border-color:inherit;text-indent:0;width:100%}nv-datagrid th{text-align:left;border-bottom:1px solid var(--components-datagrid-header-border);height:var(--spacing-12);padding:var(--spacing-3) var(--spacing-4);font-size:var(--font-size-md);font-weight:700;color:var(--components-datagrid-header-text)}nv-datagrid td{border-bottom:1px solid var(--components-datagrid-body-border);height:var(--spacing-12);max-height:var(--spacing-14);padding:var(--spacing-2) var(--spacing-4);font-size:var(--font-size-md);font-weight:400;color:var(--components-datagrid-body-text);white-space:nowrap;text-overflow:ellipsis}nv-datagrid tbody>tr:hover{background:var(--color-interaction-container-neutral-background-hover)}nv-datagrid .cursor-pointer{cursor:pointer}nv-datagrid .select-none{-webkit-user-select:none;user-select:none}nv-datagrid .search-container{display:flex}nv-datagrid .checkbox-container{position:relative;color:var(--nv-datagrid-color-checked)}nv-datagrid .checkbox-container input[type=checkbox][readonly]{opacity:0.5}nv-datagrid .checkbox-container:has(input[type=checkbox]:disabled:not([readonly])){color:var(--nv-datagrid-color-disabled)}nv-datagrid .checkbox-container input[type=checkbox]{appearance:none;position:relative;display:flex;width:var(--form-checkbox-size);height:var(--form-checkbox-size);flex-direction:column;align-items:flex-start;border-radius:var(--form-checkbox-radius);border-width:var(--form-checkbox-border-width);border-style:solid;border-color:var(--nv-datagrid-border-default);background:var(--nv-datagrid-background-default)}nv-datagrid .checkbox-container input[type=checkbox]:hover{border-color:var(--nv-datagrid-border-hover)}nv-datagrid .checkbox-container input[type=checkbox]:focus{border-color:var(--nv-datagrid-border-focus)}nv-datagrid .checkbox-container input[type=checkbox]:focus,nv-datagrid .checkbox-container input[type=checkbox]:focus-within{outline:none}nv-datagrid .checkbox-container input[type=checkbox]:focus-visible,nv-datagrid .checkbox-container input[type=checkbox]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--nv-datagrid-outline-color);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-datagrid .checkbox-container input[type=checkbox]:checked,nv-datagrid .checkbox-container input[type=checkbox]:indeterminate{background:var(--nv-datagrid-background-checked);border-color:var(--nv-datagrid-background-checked)}nv-datagrid .checkbox-container input[type=checkbox]:disabled:not([readonly]){background:var(--nv-datagrid-background-disabled);border-color:var(--nv-datagrid-border-default)}nv-datagrid .checkbox-container input[type=checkbox][readonly]{opacity:0.5}nv-datagrid .checkbox-container .icon{pointer-events:none;position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center}nv-datagrid .checkbox-container .icon svg{width:var(--form-checkbox-icon-size);height:var(--form-checkbox-icon-size);fill:none;stroke:currentcolor;stroke-width:var(--form-checkbox-icon-stroke);flex-shrink:0}";
|
|
3223
3312
|
const NvDatagridStyle0 = nvDatagridCss;
|
|
3224
3313
|
|
|
3225
3314
|
const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H {
|
|
@@ -3227,6 +3316,7 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
3227
3316
|
super();
|
|
3228
3317
|
this.__registerHost();
|
|
3229
3318
|
this.action = createEvent(this, "action", 7);
|
|
3319
|
+
this.selectedRows = createEvent(this, "selectedRows", 7);
|
|
3230
3320
|
this.templateCache = new Map();
|
|
3231
3321
|
this.headerTemplateCache = new Map();
|
|
3232
3322
|
this.minPageIndex = 1;
|
|
@@ -3238,6 +3328,8 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
3238
3328
|
this.globalFilterSearchTerm = '';
|
|
3239
3329
|
this.columnData = [];
|
|
3240
3330
|
this.paginationState = null;
|
|
3331
|
+
this.sorting = [];
|
|
3332
|
+
this.rowSelectionState = {};
|
|
3241
3333
|
//#endregion STATES
|
|
3242
3334
|
/****************************************************************************/
|
|
3243
3335
|
//#region PROPERTIES
|
|
@@ -3273,6 +3365,12 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
3273
3365
|
* @default 'No data or columns available to display.'
|
|
3274
3366
|
*/
|
|
3275
3367
|
this.noColumnsNoDataMessage = 'No data or columns available to display.';
|
|
3368
|
+
/**
|
|
3369
|
+
* Whether to automatically generate columns if none are provided.
|
|
3370
|
+
* If columns are explicitly set, this property is ignored.
|
|
3371
|
+
* @default false
|
|
3372
|
+
*/
|
|
3373
|
+
this.autoGenerateColumns = false;
|
|
3276
3374
|
/**
|
|
3277
3375
|
* Whether to enable global filtering for the data grid.
|
|
3278
3376
|
* This allows users to search across all columns for a specific value.
|
|
@@ -3282,11 +3380,9 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
3282
3380
|
*/
|
|
3283
3381
|
this.enableGlobalFilter = false;
|
|
3284
3382
|
/**
|
|
3285
|
-
*
|
|
3286
|
-
* If columns are explicitly set, this property is ignored.
|
|
3287
|
-
* @default false
|
|
3383
|
+
* Position the global filter input field
|
|
3288
3384
|
*/
|
|
3289
|
-
this.
|
|
3385
|
+
this.globalFilterPosition = 'end';
|
|
3290
3386
|
/**
|
|
3291
3387
|
* Whether to enable pagination for the data grid.
|
|
3292
3388
|
* @default false
|
|
@@ -3294,6 +3390,7 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
3294
3390
|
this.enablePagination = false;
|
|
3295
3391
|
/**
|
|
3296
3392
|
* The number of rows to display per page.
|
|
3393
|
+
* If the number is not present in the property pageSizes it takes the first of the list.
|
|
3297
3394
|
* @default 10
|
|
3298
3395
|
*/
|
|
3299
3396
|
this.pageSize = 10;
|
|
@@ -3302,6 +3399,15 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
3302
3399
|
* @default [10, 20, 30, 40, 50]
|
|
3303
3400
|
*/
|
|
3304
3401
|
this.pageSizes = [10, 20, 30, 40, 50];
|
|
3402
|
+
/**
|
|
3403
|
+
* Whether to enable sorting for the data grid.
|
|
3404
|
+
* @default false
|
|
3405
|
+
*/
|
|
3406
|
+
this.enableSorting = false;
|
|
3407
|
+
/**
|
|
3408
|
+
* Whether to enable row selection for the data grid.
|
|
3409
|
+
*/
|
|
3410
|
+
this.enableRowSelection = false;
|
|
3305
3411
|
this.debouncedFilter = debounce((value) => {
|
|
3306
3412
|
var _a;
|
|
3307
3413
|
(_a = this.table) === null || _a === void 0 ? void 0 : _a.setGlobalFilter(value);
|
|
@@ -3334,8 +3440,32 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
3334
3440
|
};
|
|
3335
3441
|
this.handlePageSizeChange = (event) => {
|
|
3336
3442
|
const target = event.target;
|
|
3443
|
+
let effectivePageSize = Number(target.value);
|
|
3444
|
+
if (!this.pageSizes.includes(effectivePageSize) && this.pageSizes) {
|
|
3445
|
+
effectivePageSize = this.pageSizes[0];
|
|
3446
|
+
}
|
|
3337
3447
|
// Simply use `setPageSize` to update the page size directly
|
|
3338
|
-
this.paginationState = Object.assign(Object.assign({}, this.paginationState), { pageSize:
|
|
3448
|
+
this.paginationState = Object.assign(Object.assign({}, this.paginationState), { pageSize: effectivePageSize }); // This triggers the paginationState watcher
|
|
3449
|
+
};
|
|
3450
|
+
this.handleSortingClick = (event, header) => {
|
|
3451
|
+
var _a;
|
|
3452
|
+
if (!header.column.getCanSort()) {
|
|
3453
|
+
return;
|
|
3454
|
+
}
|
|
3455
|
+
(_a = header.column.getToggleSortingHandler()) === null || _a === void 0 ? void 0 : _a(event);
|
|
3456
|
+
};
|
|
3457
|
+
this.getSortTitle = (header) => {
|
|
3458
|
+
if (!header.column.getCanSort())
|
|
3459
|
+
return;
|
|
3460
|
+
const nextOrder = header.column.getNextSortingOrder();
|
|
3461
|
+
switch (nextOrder) {
|
|
3462
|
+
case SortingPossibility.Asc:
|
|
3463
|
+
return 'Sort ascending';
|
|
3464
|
+
case SortingPossibility.Desc:
|
|
3465
|
+
return 'Sort descending';
|
|
3466
|
+
default:
|
|
3467
|
+
return 'Clear sort';
|
|
3468
|
+
}
|
|
3339
3469
|
};
|
|
3340
3470
|
}
|
|
3341
3471
|
//#endregion PROPERTIES
|
|
@@ -3371,34 +3501,37 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
3371
3501
|
header: col.header,
|
|
3372
3502
|
accessor: col.accessor,
|
|
3373
3503
|
repeatTemplate: col.hasAttribute('repeat-template'),
|
|
3504
|
+
group: col.group,
|
|
3374
3505
|
};
|
|
3375
3506
|
this.columnData.push(colData);
|
|
3376
3507
|
});
|
|
3508
|
+
console.info('cacheTemplates this.columnData:', this.columnData);
|
|
3377
3509
|
}
|
|
3378
3510
|
parseDataAndColumns() {
|
|
3379
|
-
if (this.
|
|
3380
|
-
this.parseJsonData(this.dataJson);
|
|
3381
|
-
}
|
|
3382
|
-
else if (this.data && this.data.length > 0) {
|
|
3511
|
+
if (this.data && this.data.length > 0) {
|
|
3383
3512
|
this.parseDataArray(this.data, this.parsedData);
|
|
3384
3513
|
}
|
|
3385
|
-
if (this.
|
|
3386
|
-
this.parseJsonColumns(this.columnsJson, this.parsedColumns);
|
|
3387
|
-
}
|
|
3388
|
-
else if (this.columns && this.columns.length > 0) {
|
|
3514
|
+
if (this.columns && this.columns.length > 0) {
|
|
3389
3515
|
this.parseColumnsArray(this.columns, this.parsedColumns);
|
|
3390
3516
|
}
|
|
3391
3517
|
else if (this.headerTemplateCache.size > 0) {
|
|
3392
3518
|
const headerKeys = Array.from(this.headerTemplateCache.keys());
|
|
3393
|
-
const arrayColumnsConfig = headerKeys.map(key =>
|
|
3519
|
+
const arrayColumnsConfig = headerKeys.map(key => {
|
|
3520
|
+
var _a, _b;
|
|
3521
|
+
return (Object.assign({}, { accessor: key, header: key ? key.charAt(0).toUpperCase() + key.slice(1) : '', group: (_b = (_a = this.columnData.find(x => x.accessor === key)) === null || _a === void 0 ? void 0 : _a.group) !== null && _b !== void 0 ? _b : 'ungrouped' }));
|
|
3522
|
+
});
|
|
3394
3523
|
this.parseColumnsArray(arrayColumnsConfig, this.parsedColumns);
|
|
3395
3524
|
}
|
|
3396
3525
|
else if (this.parsedData.length > 0) {
|
|
3397
3526
|
const firstRow = this.parsedData[0];
|
|
3398
|
-
const arrayColumnsConfig = Object.keys(firstRow).map(key =>
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3527
|
+
const arrayColumnsConfig = Object.keys(firstRow).map(key => {
|
|
3528
|
+
var _a, _b;
|
|
3529
|
+
return ({
|
|
3530
|
+
accessor: key,
|
|
3531
|
+
header: key.charAt(0).toUpperCase() + key.slice(1),
|
|
3532
|
+
group: (_b = (_a = this.columnData.find(x => x.accessor === key)) === null || _a === void 0 ? void 0 : _a.group) !== null && _b !== void 0 ? _b : 'ungrouped',
|
|
3533
|
+
});
|
|
3534
|
+
});
|
|
3402
3535
|
if (this.autoGenerateColumns) {
|
|
3403
3536
|
this.parseColumnsArray(arrayColumnsConfig, this.parsedColumns);
|
|
3404
3537
|
}
|
|
@@ -3441,6 +3574,7 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
3441
3574
|
var _a, _b, _c, _d;
|
|
3442
3575
|
// Clear the previous table instance (if any)
|
|
3443
3576
|
this.table = null;
|
|
3577
|
+
console.info('initializeTable this.columnData:', this.columnData);
|
|
3444
3578
|
// Set default options for the table
|
|
3445
3579
|
const tableOptions = {
|
|
3446
3580
|
columns: [],
|
|
@@ -3499,10 +3633,14 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
3499
3633
|
if (hasData) {
|
|
3500
3634
|
// No parsed columns and data is available
|
|
3501
3635
|
const firstRow = this.parsedData[0];
|
|
3502
|
-
const arrayColumnsConfig = Object.keys(firstRow).map(key =>
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3636
|
+
const arrayColumnsConfig = Object.keys(firstRow).map(key => {
|
|
3637
|
+
var _a, _b;
|
|
3638
|
+
return ({
|
|
3639
|
+
accessor: key,
|
|
3640
|
+
header: key.charAt(0).toUpperCase() + key.slice(1),
|
|
3641
|
+
group: (_b = (_a = this.columnData.find(x => x.accessor === key)) === null || _a === void 0 ? void 0 : _a.group) !== null && _b !== void 0 ? _b : 'ungrouped',
|
|
3642
|
+
});
|
|
3643
|
+
});
|
|
3506
3644
|
if (this.autoGenerateColumns) {
|
|
3507
3645
|
this.parseColumnsArray(arrayColumnsConfig, this.parsedColumns);
|
|
3508
3646
|
}
|
|
@@ -3526,9 +3664,14 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
3526
3664
|
}
|
|
3527
3665
|
if (this.enablePagination) {
|
|
3528
3666
|
tableOptions.getPaginationRowModel = getPaginationRowModel();
|
|
3667
|
+
const pageIndex = (_b = (_a = this.paginationState) === null || _a === void 0 ? void 0 : _a.pageIndex) !== null && _b !== void 0 ? _b : 0;
|
|
3668
|
+
let effectivePageSize = (_d = (_c = this.paginationState) === null || _c === void 0 ? void 0 : _c.pageSize) !== null && _d !== void 0 ? _d : 10;
|
|
3669
|
+
if (!this.pageSizes.includes(effectivePageSize) && this.pageSizes) {
|
|
3670
|
+
effectivePageSize = this.pageSizes[0];
|
|
3671
|
+
}
|
|
3529
3672
|
const pagination = {
|
|
3530
|
-
pageIndex:
|
|
3531
|
-
pageSize:
|
|
3673
|
+
pageIndex: pageIndex,
|
|
3674
|
+
pageSize: effectivePageSize,
|
|
3532
3675
|
};
|
|
3533
3676
|
// Set the initial pagination value with safeguards
|
|
3534
3677
|
tableOptions.state.pagination = pagination;
|
|
@@ -3539,6 +3682,33 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
3539
3682
|
this.paginationState = newPagination;
|
|
3540
3683
|
};
|
|
3541
3684
|
}
|
|
3685
|
+
if (this.enableSorting) {
|
|
3686
|
+
tableOptions.getSortedRowModel = getSortedRowModel();
|
|
3687
|
+
tableOptions.enableSorting = this.enableSorting;
|
|
3688
|
+
tableOptions.state.sorting = this.sorting;
|
|
3689
|
+
tableOptions.onSortingChange = updater => {
|
|
3690
|
+
const newSorting = typeof updater === 'function' ? updater(this.sorting) : updater;
|
|
3691
|
+
this.sorting = newSorting; // Will automatically trigger the searchTerm watcher and update the table
|
|
3692
|
+
};
|
|
3693
|
+
}
|
|
3694
|
+
if (this.enableRowSelection) {
|
|
3695
|
+
tableOptions.state.rowSelection = this.rowSelectionState;
|
|
3696
|
+
tableOptions.onRowSelectionChange = updater => {
|
|
3697
|
+
const newRowSelectionState = typeof updater === 'function'
|
|
3698
|
+
? updater(this.rowSelectionState)
|
|
3699
|
+
: updater;
|
|
3700
|
+
this.rowSelectionState = newRowSelectionState;
|
|
3701
|
+
// Emit the original rows instead of IDs
|
|
3702
|
+
const selectedRows = Object.keys(newRowSelectionState)
|
|
3703
|
+
.filter(rowId => newRowSelectionState[rowId])
|
|
3704
|
+
.map(rowId => {
|
|
3705
|
+
// Assuming rowId corresponds to the index in parsedData
|
|
3706
|
+
const index = parseInt(rowId, 10); // Convert rowId to an integer index
|
|
3707
|
+
return this.parsedData[index]; // Get the original row data
|
|
3708
|
+
});
|
|
3709
|
+
this.selectedRows.emit(selectedRows); // Emit the original rows
|
|
3710
|
+
};
|
|
3711
|
+
}
|
|
3542
3712
|
// Initialize the table
|
|
3543
3713
|
this.table = createTable(tableOptions);
|
|
3544
3714
|
}
|
|
@@ -3573,60 +3743,165 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
3573
3743
|
};
|
|
3574
3744
|
return checkValue(row.original);
|
|
3575
3745
|
}
|
|
3746
|
+
createIconSpan(checked, indeterminate) {
|
|
3747
|
+
const span = document.createElement('span');
|
|
3748
|
+
span.className = 'icon';
|
|
3749
|
+
if (checked && !indeterminate) {
|
|
3750
|
+
const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
|
|
3751
|
+
svg.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
|
|
3752
|
+
svg.setAttribute('width', '14');
|
|
3753
|
+
svg.setAttribute('height', '14');
|
|
3754
|
+
svg.setAttribute('viewBox', '0 0 14 14');
|
|
3755
|
+
svg.setAttribute('fill', 'none');
|
|
3756
|
+
const path = document.createElementNS('http://www.w3.org/2000/svg', 'path');
|
|
3757
|
+
path.setAttribute('d', 'M11.6667 3.5L5.25004 9.91667L2.33337 7');
|
|
3758
|
+
path.setAttribute('stroke-linecap', 'round');
|
|
3759
|
+
path.setAttribute('stroke-linejoin', 'round');
|
|
3760
|
+
svg.appendChild(path);
|
|
3761
|
+
span.appendChild(svg);
|
|
3762
|
+
}
|
|
3763
|
+
if (indeterminate) {
|
|
3764
|
+
const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
|
|
3765
|
+
svg.classList.add('indeterminate-svg');
|
|
3766
|
+
svg.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
|
|
3767
|
+
svg.setAttribute('viewBox', '0 0 14 14');
|
|
3768
|
+
svg.setAttribute('fill', 'none');
|
|
3769
|
+
const path = document.createElementNS('http://www.w3.org/2000/svg', 'path');
|
|
3770
|
+
path.setAttribute('d', 'M2.9165 7H11.0832');
|
|
3771
|
+
path.setAttribute('stroke-linecap', 'round');
|
|
3772
|
+
path.setAttribute('stroke-linejoin', 'round');
|
|
3773
|
+
svg.appendChild(path);
|
|
3774
|
+
span.appendChild(svg);
|
|
3775
|
+
}
|
|
3776
|
+
return span;
|
|
3777
|
+
}
|
|
3778
|
+
createIndeterminateCheckbox(options = {}) {
|
|
3779
|
+
const { indeterminate, checked = false, disabled = false, className = '', onChange, } = options;
|
|
3780
|
+
const input = document.createElement('input');
|
|
3781
|
+
input.type = 'checkbox';
|
|
3782
|
+
input.checked = checked;
|
|
3783
|
+
input.disabled = disabled;
|
|
3784
|
+
input.className = `${className} cursor-pointer`.trim();
|
|
3785
|
+
if (typeof indeterminate === 'boolean') {
|
|
3786
|
+
input.indeterminate = !checked && indeterminate;
|
|
3787
|
+
}
|
|
3788
|
+
if (onChange) {
|
|
3789
|
+
input.addEventListener('change', onChange);
|
|
3790
|
+
}
|
|
3791
|
+
const iconSpan = this.createIconSpan(checked, indeterminate);
|
|
3792
|
+
const container = document.createElement('div');
|
|
3793
|
+
container.className = 'checkbox-container';
|
|
3794
|
+
container.appendChild(input);
|
|
3795
|
+
container.appendChild(iconSpan);
|
|
3796
|
+
return container;
|
|
3797
|
+
}
|
|
3576
3798
|
// Helper function to generate column definitions
|
|
3577
3799
|
generateColumns(validColumns, tableOptions) {
|
|
3800
|
+
console.info('generateColumns this.columnData:', this.columnData);
|
|
3801
|
+
console.info('generateColumns validColumns:', validColumns);
|
|
3802
|
+
let processedColumns = validColumns || [];
|
|
3578
3803
|
const columnHelper = createColumnHelper();
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3804
|
+
// If no columns provided or autoGenerateColumns is true, generate them from data
|
|
3805
|
+
if ((!validColumns && tableOptions.data && tableOptions.data.length > 0) ||
|
|
3806
|
+
(validColumns.length <= 0 &&
|
|
3807
|
+
tableOptions.data &&
|
|
3808
|
+
tableOptions.data.length > 0)) {
|
|
3809
|
+
const sampleRow = tableOptions.data[0];
|
|
3810
|
+
processedColumns = Object.keys(sampleRow).map(key => {
|
|
3582
3811
|
var _a, _b;
|
|
3583
|
-
return
|
|
3584
|
-
header:
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
const cellAccessors = column.accessor;
|
|
3590
|
-
const row = info.row;
|
|
3591
|
-
return ((_a = this.columnData.find(x => x.accessor === cellAccessors)) === null || _a === void 0 ? void 0 : _a.repeatTemplate) && Array.isArray(value)
|
|
3592
|
-
? value.map((item) => {
|
|
3593
|
-
var _a, _b;
|
|
3594
|
-
return (_b = (_a = (this.renderTemplate(this.templateCache.get(cellAccessors), item, row) ||
|
|
3595
|
-
item)) !== null && _a !== void 0 ? _a : value) !== null && _b !== void 0 ? _b : this.fallbackValue;
|
|
3596
|
-
})
|
|
3597
|
-
: (_c = (_b = (this.renderTemplate(this.templateCache.get(cellAccessors), value, row) ||
|
|
3598
|
-
value)) !== null && _b !== void 0 ? _b : value) !== null && _c !== void 0 ? _c : this.fallbackValue;
|
|
3599
|
-
},
|
|
3600
|
-
enableGlobalFilter: this.enableGlobalFilter,
|
|
3812
|
+
return ({
|
|
3813
|
+
header: key.charAt(0).toUpperCase() + key.slice(1),
|
|
3814
|
+
accessor: key,
|
|
3815
|
+
group: (_b = (_a = this.columnData.find(x => x.accessor === key)) === null || _a === void 0 ? void 0 : _a.group) !== null && _b !== void 0 ? _b : 'ungrouped',
|
|
3816
|
+
headerSlot: null,
|
|
3817
|
+
cellSlot: null,
|
|
3601
3818
|
});
|
|
3602
3819
|
});
|
|
3603
3820
|
}
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3821
|
+
// Group columns by their group property
|
|
3822
|
+
const groupedColumns = processedColumns.reduce((acc, column) => {
|
|
3823
|
+
let group = column.group || 'ungrouped';
|
|
3824
|
+
if (group == 'ungrouped') {
|
|
3825
|
+
group = group + processedColumns.findIndex(x => x == column);
|
|
3826
|
+
}
|
|
3827
|
+
if (!acc[group]) {
|
|
3828
|
+
acc[group] = [];
|
|
3829
|
+
}
|
|
3830
|
+
acc[group].push(column);
|
|
3831
|
+
return acc;
|
|
3832
|
+
}, {});
|
|
3833
|
+
// Transform each column into a ColumnDef
|
|
3834
|
+
const createColumnDef = (column) => {
|
|
3835
|
+
var _a, _b, _c;
|
|
3836
|
+
return columnHelper.accessor(column.accessor, {
|
|
3837
|
+
header: (_c = (_b = this.renderTemplate(this.headerTemplateCache.get(column.accessor), (_a = column.header) !== null && _a !== void 0 ? _a : column.accessor, null)) !== null && _b !== void 0 ? _b : column.header) !== null && _c !== void 0 ? _c : column.accessor,
|
|
3609
3838
|
cell: (info) => {
|
|
3610
3839
|
var _a, _b, _c;
|
|
3611
3840
|
const value = info.getValue();
|
|
3612
|
-
const cellAccessors = key;
|
|
3613
3841
|
const row = info.row;
|
|
3614
|
-
return ((_a = this.columnData.find(x => x.accessor ===
|
|
3842
|
+
return ((_a = this.columnData.find(x => x.accessor === column.accessor)) === null || _a === void 0 ? void 0 : _a.repeatTemplate) && Array.isArray(value)
|
|
3615
3843
|
? value.map((item) => {
|
|
3616
|
-
var _a, _b;
|
|
3617
|
-
return (_b = (_a =
|
|
3618
|
-
item)) !== null && _a !== void 0 ? _a : value) !== null && _b !== void 0 ? _b : this.fallbackValue;
|
|
3844
|
+
var _a, _b, _c;
|
|
3845
|
+
return (_c = (_b = (_a = this.renderTemplate(this.templateCache.get(column.accessor), item, row)) !== null && _a !== void 0 ? _a : item) !== null && _b !== void 0 ? _b : value) !== null && _c !== void 0 ? _c : this.fallbackValue;
|
|
3619
3846
|
})
|
|
3620
|
-
: (_c = (_b =
|
|
3621
|
-
value)) !== null && _b !== void 0 ? _b : value) !== null && _c !== void 0 ? _c : this.fallbackValue;
|
|
3847
|
+
: (_c = (_b = this.renderTemplate(this.templateCache.get(column.accessor), value, row)) !== null && _b !== void 0 ? _b : value) !== null && _c !== void 0 ? _c : this.fallbackValue;
|
|
3622
3848
|
},
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3849
|
+
sortUndefined: 'last',
|
|
3850
|
+
sortDescFirst: false,
|
|
3851
|
+
enableSorting: this.enableSorting, // Explicitly set enableSorting based on the sorting prop
|
|
3852
|
+
enableGlobalFilter: this.enableGlobalFilter, // Explicity set enableGlobalFilter based on the globalFiltering prop
|
|
3853
|
+
});
|
|
3854
|
+
};
|
|
3855
|
+
// Create the final column structure
|
|
3856
|
+
let generatedColumns = Object.entries(groupedColumns)
|
|
3857
|
+
.map(([groupName, groupColumns]) => {
|
|
3858
|
+
if (groupName.includes('ungrouped')) {
|
|
3859
|
+
return groupColumns.map(createColumnDef);
|
|
3860
|
+
}
|
|
3861
|
+
return {
|
|
3862
|
+
id: groupName,
|
|
3863
|
+
header: groupName,
|
|
3864
|
+
columns: groupColumns.map(createColumnDef),
|
|
3865
|
+
enableSorting: this.enableSorting, // Also apply to column groups
|
|
3866
|
+
enableGlobalFilter: this.enableGlobalFilter, // Also apply to column groups
|
|
3867
|
+
};
|
|
3868
|
+
})
|
|
3869
|
+
.flat();
|
|
3870
|
+
if (this.enableRowSelection) {
|
|
3871
|
+
const rowSelection = columnHelper.accessor('select', {
|
|
3872
|
+
header: ({ table }) => {
|
|
3873
|
+
return (h("div", { class: "flex px-1", ref: el => {
|
|
3874
|
+
const checkbox = this.createIndeterminateCheckbox({
|
|
3875
|
+
checked: table === null || table === void 0 ? void 0 : table.getIsAllRowsSelected(),
|
|
3876
|
+
indeterminate: table === null || table === void 0 ? void 0 : table.getIsSomeRowsSelected(),
|
|
3877
|
+
onChange: table === null || table === void 0 ? void 0 : table.getToggleAllRowsSelectedHandler(),
|
|
3878
|
+
});
|
|
3879
|
+
if (el) {
|
|
3880
|
+
el.innerHTML = ''; // Remove existing content
|
|
3881
|
+
el.appendChild(checkbox); // Append new checkbox
|
|
3882
|
+
}
|
|
3883
|
+
} }));
|
|
3884
|
+
},
|
|
3885
|
+
cell: ({ row }) => {
|
|
3886
|
+
return (h("div", { class: "flex px-1", ref: el => {
|
|
3887
|
+
const checkbox = this.createIndeterminateCheckbox({
|
|
3888
|
+
checked: row === null || row === void 0 ? void 0 : row.getIsSelected(),
|
|
3889
|
+
disabled: !(row === null || row === void 0 ? void 0 : row.getCanSelect()),
|
|
3890
|
+
indeterminate: row === null || row === void 0 ? void 0 : row.getIsSomeSelected(),
|
|
3891
|
+
onChange: row === null || row === void 0 ? void 0 : row.getToggleSelectedHandler(),
|
|
3892
|
+
});
|
|
3893
|
+
if (el) {
|
|
3894
|
+
el.innerHTML = ''; // Remove existing content
|
|
3895
|
+
el.appendChild(checkbox); // Append new checkbox
|
|
3896
|
+
}
|
|
3897
|
+
} }));
|
|
3898
|
+
},
|
|
3899
|
+
enableGlobalFilter: false,
|
|
3900
|
+
enableSorting: false,
|
|
3901
|
+
});
|
|
3902
|
+
generatedColumns = [rowSelection, ...generatedColumns];
|
|
3629
3903
|
}
|
|
3904
|
+
return generatedColumns;
|
|
3630
3905
|
}
|
|
3631
3906
|
getTableData() {
|
|
3632
3907
|
if (this.parsedData &&
|
|
@@ -3874,35 +4149,55 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
3874
4149
|
});
|
|
3875
4150
|
}
|
|
3876
4151
|
}
|
|
4152
|
+
getArrowSorting(header) {
|
|
4153
|
+
if (!header.column.getCanSort())
|
|
4154
|
+
return null;
|
|
4155
|
+
const sortState = header.column.getIsSorted();
|
|
4156
|
+
if (sortState === SortingPossibility.Asc) {
|
|
4157
|
+
return (h("div", { class: "inline-flex align-middle" }, h("nv-icon", { name: "arrow-up" })));
|
|
4158
|
+
}
|
|
4159
|
+
if (sortState === SortingPossibility.Desc) {
|
|
4160
|
+
return (h("div", { class: "inline-flex align-middle" }, h("nv-icon", { name: "arrow-down" })));
|
|
4161
|
+
}
|
|
4162
|
+
return null;
|
|
4163
|
+
}
|
|
4164
|
+
getHeaderCell(header) {
|
|
4165
|
+
const isSortable = header.column.getCanSort();
|
|
4166
|
+
const sortTitle = this.getSortTitle(header);
|
|
4167
|
+
const content = header.isPlaceholder
|
|
4168
|
+
? null
|
|
4169
|
+
: header.column.columnDef.header
|
|
4170
|
+
? this.flexRender(header.column.columnDef.header, header.getContext())
|
|
4171
|
+
: null; // Ensure content is not null
|
|
4172
|
+
const sortIcon = this.getArrowSorting(header);
|
|
4173
|
+
const handleClick = this.createSortingClickHandler(header);
|
|
4174
|
+
if (this.enableRowSelection) {
|
|
4175
|
+
return (h("th", { key: header.id, colSpan: header.colSpan }, content, " "));
|
|
4176
|
+
}
|
|
4177
|
+
const returnHtml = (h("th", { key: header.id, colSpan: header.colSpan }, h("button", { type: "button", class: isSortable
|
|
4178
|
+
? 'w-full text-left cursor-pointer select-none bg-transparent border-none p-0 m-0 focus:outline-none'
|
|
4179
|
+
: 'w-full text-left bg-transparent border-none p-0 m-0 cursor-default', onClick: handleClick, title: sortTitle }, h("span", { class: "inline-flex items-center gap-1" }, content, sortIcon))));
|
|
4180
|
+
return returnHtml;
|
|
4181
|
+
}
|
|
4182
|
+
// 👇 Helper method to avoid arrow function in JSX
|
|
4183
|
+
createSortingClickHandler(header) {
|
|
4184
|
+
return (e) => {
|
|
4185
|
+
this.handleSortingClick(e, header);
|
|
4186
|
+
};
|
|
4187
|
+
}
|
|
4188
|
+
getPagination() {
|
|
4189
|
+
var _a;
|
|
4190
|
+
return (this.enablePagination && (h("div", { class: "flex items-center gap-2" }, h("button", { class: "border rounded p-1", disabled: !this.table.getCanPreviousPage(), onClick: this.table.firstPage }, "<<"), h("button", { class: "border rounded p-1", disabled: !this.table.getCanPreviousPage(), onClick: this.table.previousPage }, "<"), h("button", { class: "border rounded p-1", disabled: !this.table.getCanNextPage(), onClick: this.table.nextPage }, ">"), h("button", { class: "border rounded p-1", disabled: !this.table.getCanNextPage(), onClick: this.table.lastPage }, ">>"), h("span", { class: "flex items-center gap-1" }, h("div", null, "Page"), h("strong", null, this.table.getState().pagination.pageIndex + 1, " of", ' ', this.table.getPageCount().toLocaleString())), h("span", { class: "flex items-center gap-1" }, "| Go to page:", ' ', h("input", { type: "number", min: this.minPageIndex, max: this.table.getPageCount(), value: this.table.getState().pagination.pageIndex + 1, class: "border p-1 rounded w-16", "aria-label": "Go to page", onInput: this.handlePageIndexChange })), ((_a = this.pageSizes) === null || _a === void 0 ? void 0 : _a.length) > 0 && (h("select", { "aria-label": "Rows per page", onChange: this.handlePageSizeChange }, this.pageSizes.map(pageSize => (h("option", { value: String(pageSize), selected: this.table.getState().pagination.pageSize === pageSize }, "Show ", pageSize))))))));
|
|
4191
|
+
}
|
|
3877
4192
|
//#endregion METHODS
|
|
3878
4193
|
/****************************************************************************/
|
|
3879
4194
|
//#region WATCHERS
|
|
3880
4195
|
parseColumns(newValue, oldValue = []) {
|
|
3881
4196
|
this.parseColumnsArray(newValue, oldValue);
|
|
3882
4197
|
}
|
|
3883
|
-
parseJsonColumns(newValue, oldValue) {
|
|
3884
|
-
try {
|
|
3885
|
-
const newItems = newValue ? JSON.parse(newValue) : [];
|
|
3886
|
-
this.parseColumnsArray(newItems, oldValue);
|
|
3887
|
-
}
|
|
3888
|
-
catch (e) {
|
|
3889
|
-
console.error('Invalid JSON format for columnsJson:', e.message);
|
|
3890
|
-
this.parsedColumns = [];
|
|
3891
|
-
}
|
|
3892
|
-
}
|
|
3893
4198
|
parseData(newValue, oldValue = []) {
|
|
3894
4199
|
this.parseDataArray(newValue, oldValue);
|
|
3895
4200
|
}
|
|
3896
|
-
parseJsonData(newValue) {
|
|
3897
|
-
try {
|
|
3898
|
-
const newItems = newValue ? JSON.parse(newValue) : [];
|
|
3899
|
-
this.parseDataArray(newItems, this.parsedData);
|
|
3900
|
-
}
|
|
3901
|
-
catch (e) {
|
|
3902
|
-
console.error('Invalid JSON format for dataJson:', e.message);
|
|
3903
|
-
this.parsedData = [];
|
|
3904
|
-
}
|
|
3905
|
-
}
|
|
3906
4201
|
handleParsedChange() {
|
|
3907
4202
|
this.initializeTable();
|
|
3908
4203
|
}
|
|
@@ -3931,6 +4226,39 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
3931
4226
|
this.table.options.state.pagination = newValue;
|
|
3932
4227
|
}
|
|
3933
4228
|
}
|
|
4229
|
+
handleSorting(newValue) {
|
|
4230
|
+
if (!this.table) {
|
|
4231
|
+
console.warn('Table is not initialized yet.');
|
|
4232
|
+
return;
|
|
4233
|
+
}
|
|
4234
|
+
// Not working
|
|
4235
|
+
/*// Set the sorting for the table
|
|
4236
|
+
this.table.setSorting(newValue);*/
|
|
4237
|
+
// Manually update the sorting state
|
|
4238
|
+
this.table.options.state.sorting = newValue;
|
|
4239
|
+
}
|
|
4240
|
+
handlePageSize(newValue) {
|
|
4241
|
+
let effectivePageSize = newValue;
|
|
4242
|
+
if (!this.pageSizes.includes(effectivePageSize) && this.pageSizes) {
|
|
4243
|
+
effectivePageSize = this.pageSizes[0];
|
|
4244
|
+
}
|
|
4245
|
+
// Simply use `setPageSize` to update the page size directly
|
|
4246
|
+
this.paginationState = Object.assign(Object.assign({}, this.paginationState), { pageSize: effectivePageSize }); // This triggers the paginationState watcher
|
|
4247
|
+
}
|
|
4248
|
+
handleRowSelectionState(newValue, oldValue) {
|
|
4249
|
+
if (!this.table) {
|
|
4250
|
+
console.warn('Table is not initialized yet.');
|
|
4251
|
+
return;
|
|
4252
|
+
}
|
|
4253
|
+
// Only update if there is a meaningful change
|
|
4254
|
+
if (JSON.stringify(newValue) !== JSON.stringify(oldValue)) {
|
|
4255
|
+
// Not working
|
|
4256
|
+
/*// Set the rowSelection for the table
|
|
4257
|
+
this.table.setRowSelection(newValue);*/
|
|
4258
|
+
// Manually update the row selection state
|
|
4259
|
+
this.table.options.state.rowSelection = newValue;
|
|
4260
|
+
}
|
|
4261
|
+
}
|
|
3934
4262
|
//#endregion WATCHERS
|
|
3935
4263
|
/****************************************************************************/
|
|
3936
4264
|
//#region LIFECYCLE
|
|
@@ -3940,7 +4268,10 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
3940
4268
|
this.initializeTable();
|
|
3941
4269
|
if (this.enablePagination) {
|
|
3942
4270
|
// Ensure a valid page size
|
|
3943
|
-
|
|
4271
|
+
let effectivePageSize = this.pageSize > 0 ? this.pageSize : 10;
|
|
4272
|
+
if (!this.pageSizes.includes(effectivePageSize) && this.pageSizes) {
|
|
4273
|
+
effectivePageSize = this.pageSizes[0];
|
|
4274
|
+
}
|
|
3944
4275
|
this.paginationState = {
|
|
3945
4276
|
pageIndex: Math.max(0, this.minPageIndex - 1),
|
|
3946
4277
|
pageSize: effectivePageSize,
|
|
@@ -3958,11 +4289,9 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
3958
4289
|
const rows = !this.table || this.table === undefined || this.parsedData.length === 0
|
|
3959
4290
|
? []
|
|
3960
4291
|
: (_c = (_b = this.table) === null || _b === void 0 ? void 0 : _b.getRowModel()) === null || _c === void 0 ? void 0 : _c.rows;
|
|
3961
|
-
return (h(Host, { key: '
|
|
4292
|
+
return (h(Host, { key: '90be657fa9c7f8755391f8d91418399de742ae1f' }, h("div", { key: 'f28596438b7c9c22b34789236c5faa644938d1dc', class: "hidden" }, h("slot", { key: 'fdc1670cc6bafb5f1efa8c63d41acbfd15659de6' })), h("slot", { key: '65afa2282af4842bcb23f8baa592545fe3b74fa3', name: "before" }), this.enableGlobalFilter && this.table && (h("div", { key: '8628a23712471690b6a6239a289dd8263aed423c', class: `search-container justify-${this.globalFilterPosition}` }, h("nv-fieldtext", { key: '42c56dd6ba426e2045c02b3754fae3562632c49f', value: this.globalFilterSearchTerm, onInput: this.handleGlobalFilteringOnInput, placeholder: "Search all columns..." }))), this.parsedColumns.length === 0 && this.parsedData.length === 0 ? (h("div", { class: "no-data" }, this.noColumnsNoDataMessage)) : (h("div", null, h("table", null, this.parsedColumns.length > 0 && headerGroups.length > 0 && (h("thead", null, this.parsedColumns.length > 0 && headerGroups
|
|
3962
4293
|
? headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups.map(headerGroup => (h("tr", { key: headerGroup.id }, headerGroup.headers.map(header => {
|
|
3963
|
-
return (
|
|
3964
|
-
? null
|
|
3965
|
-
: this.flexRender(header.column.columnDef.header, header.getContext())));
|
|
4294
|
+
return this.getHeaderCell(header);
|
|
3966
4295
|
}))))
|
|
3967
4296
|
: null)), h("tbody", null, !rows || rows.length === 0 || this.parsedData.length === 0 ? (h("tr", null, h("td", { colSpan: this.parsedColumns.length || 12, class: "no-data" }, this.noDataMessage))) : (rows.map(row => {
|
|
3968
4297
|
const rowId = row.id;
|
|
@@ -3970,60 +4299,76 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
3970
4299
|
return (h("tr", { key: rowId }, visibleCells.map(cell => {
|
|
3971
4300
|
return (h("td", { key: cell.id, "data-row-id": rowId }, this.flexRender(cell.column.columnDef.cell, cell.getContext())));
|
|
3972
4301
|
})));
|
|
3973
|
-
})))
|
|
4302
|
+
}))), this.table && this.enableRowSelection ? (h("tfoot", null, h("tr", null, h("td", { colSpan: 20 }, this.enableRowSelection && this.table ? (h("div", null, this.rowSelectionState &&
|
|
4303
|
+
Object.keys(this.rowSelectionState).length > 0 ? (h("span", null, Object.keys(this.rowSelectionState).length, " of", ' ', ((_e = (_d = this.table.getPreFilteredRowModel()) === null || _d === void 0 ? void 0 : _d.rows) === null || _e === void 0 ? void 0 : _e.length) || 0, ' ', "Total Rows Selected")) : (h("span", null, "No rows selected")))) : null)))) : null), this.getPagination())), h("slot", { key: 'e1641d8fd103b0802e1df4f0848f0de921260065', name: "after" })));
|
|
3974
4304
|
}
|
|
3975
4305
|
get el() { return this; }
|
|
3976
4306
|
static get watchers() { return {
|
|
3977
4307
|
"columns": ["parseColumns"],
|
|
3978
|
-
"columnsJson": ["parseJsonColumns"],
|
|
3979
4308
|
"data": ["parseData"],
|
|
3980
|
-
"dataJson": ["parseJsonData"],
|
|
3981
4309
|
"parsedColumns": ["handleParsedChange"],
|
|
3982
4310
|
"parsedData": ["handleParsedChange"],
|
|
3983
4311
|
"globalFilterSearchTerm": ["handleGlobalFilterSearchTerm"],
|
|
3984
|
-
"paginationState": ["handlePaginationState"]
|
|
4312
|
+
"paginationState": ["handlePaginationState"],
|
|
4313
|
+
"sorting": ["handleSorting"],
|
|
4314
|
+
"pageSize": ["handlePageSize"],
|
|
4315
|
+
"rowSelectionState": ["handleRowSelectionState"]
|
|
3985
4316
|
}; }
|
|
3986
4317
|
static get style() { return NvDatagridStyle0; }
|
|
3987
4318
|
}, [4, "nv-datagrid", {
|
|
3988
4319
|
"data": [16],
|
|
3989
4320
|
"columns": [16],
|
|
3990
|
-
"dataJson": [513, "data-json"],
|
|
3991
|
-
"columnsJson": [513, "columns-json"],
|
|
3992
4321
|
"fallbackValue": [513, "fallback-value"],
|
|
3993
4322
|
"noDataMessage": [513, "no-data-message"],
|
|
3994
4323
|
"noColumnsNoDataMessage": [513, "no-columns-no-data-message"],
|
|
3995
|
-
"enableGlobalFilter": [516, "enable-global-filter"],
|
|
3996
4324
|
"autoGenerateColumns": [516, "auto-generate-columns"],
|
|
4325
|
+
"enableGlobalFilter": [516, "enable-global-filter"],
|
|
4326
|
+
"globalFilterPosition": [513, "global-filter-position"],
|
|
3997
4327
|
"enablePagination": [516, "enable-pagination"],
|
|
3998
4328
|
"pageSize": [514, "page-size"],
|
|
3999
4329
|
"pageSizes": [16],
|
|
4330
|
+
"enableSorting": [516, "enable-sorting"],
|
|
4331
|
+
"enableRowSelection": [516, "enable-row-selection"],
|
|
4000
4332
|
"table": [32],
|
|
4001
4333
|
"parsedColumns": [32],
|
|
4002
4334
|
"parsedData": [32],
|
|
4003
4335
|
"globalFilterSearchTerm": [32],
|
|
4004
4336
|
"columnData": [32],
|
|
4005
|
-
"paginationState": [32]
|
|
4337
|
+
"paginationState": [32],
|
|
4338
|
+
"sorting": [32],
|
|
4339
|
+
"rowSelectionState": [32]
|
|
4006
4340
|
}, undefined, {
|
|
4007
4341
|
"columns": ["parseColumns"],
|
|
4008
|
-
"columnsJson": ["parseJsonColumns"],
|
|
4009
4342
|
"data": ["parseData"],
|
|
4010
|
-
"dataJson": ["parseJsonData"],
|
|
4011
4343
|
"parsedColumns": ["handleParsedChange"],
|
|
4012
4344
|
"parsedData": ["handleParsedChange"],
|
|
4013
4345
|
"globalFilterSearchTerm": ["handleGlobalFilterSearchTerm"],
|
|
4014
|
-
"paginationState": ["handlePaginationState"]
|
|
4346
|
+
"paginationState": ["handlePaginationState"],
|
|
4347
|
+
"sorting": ["handleSorting"],
|
|
4348
|
+
"pageSize": ["handlePageSize"],
|
|
4349
|
+
"rowSelectionState": ["handleRowSelectionState"]
|
|
4015
4350
|
}]);
|
|
4016
4351
|
function defineCustomElement$1() {
|
|
4017
4352
|
if (typeof customElements === "undefined") {
|
|
4018
4353
|
return;
|
|
4019
4354
|
}
|
|
4020
|
-
const components = ["nv-datagrid"];
|
|
4355
|
+
const components = ["nv-datagrid", "nv-fieldtext", "nv-icon"];
|
|
4021
4356
|
components.forEach(tagName => { switch (tagName) {
|
|
4022
4357
|
case "nv-datagrid":
|
|
4023
4358
|
if (!customElements.get(tagName)) {
|
|
4024
4359
|
customElements.define(tagName, NvDatagrid$1);
|
|
4025
4360
|
}
|
|
4026
4361
|
break;
|
|
4362
|
+
case "nv-fieldtext":
|
|
4363
|
+
if (!customElements.get(tagName)) {
|
|
4364
|
+
defineCustomElement$3();
|
|
4365
|
+
}
|
|
4366
|
+
break;
|
|
4367
|
+
case "nv-icon":
|
|
4368
|
+
if (!customElements.get(tagName)) {
|
|
4369
|
+
defineCustomElement$2();
|
|
4370
|
+
}
|
|
4371
|
+
break;
|
|
4027
4372
|
} });
|
|
4028
4373
|
}
|
|
4029
4374
|
defineCustomElement$1();
|