@nova-design-system/nova-webcomponents 3.15.0 → 3.17.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/{index-c56424e5.js → index-93d3b2f8.js} +9 -6
- package/dist/cjs/index-93d3b2f8.js.map +1 -0
- package/dist/cjs/index.cjs.js +6 -1
- 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-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/nv-accordion-item.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-accordion.cjs.entry.js +6 -6
- package/dist/cjs/nv-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-alert.cjs.entry.js +2 -2
- 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-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-badge_2.cjs.entry.js +1 -1
- package/dist/cjs/nv-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/nv-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/nv-button.cjs.entry.js +3 -9
- package/dist/cjs/nv-button.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-buttongroup.cjs.entry.js +1 -1
- package/dist/cjs/nv-calendar.cjs.entry.js +1 -1
- package/dist/cjs/nv-col.cjs.entry.js +1 -1
- package/dist/cjs/nv-datagrid.cjs.entry.js +177 -10
- package/dist/cjs/nv-datagrid.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-datagridcolumn.cjs.entry.js +1 -1
- package/dist/cjs/nv-dialog.cjs.entry.js +32 -29
- 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-dialogfooter_2.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +2 -2
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddate.cjs.entry.js +51 -26
- package/dist/cjs/nv-fielddate.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddaterange.cjs.entry.js +68 -42
- package/dist/cjs/nv-fielddaterange.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddropdown.cjs.entry.js +33 -7
- package/dist/cjs/nv-fielddropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +187 -156
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldnumber.cjs.entry.js +2 -2
- package/dist/cjs/nv-fieldnumber.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldpassword.cjs.entry.js +2 -2
- package/dist/cjs/nv-fieldpassword.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldradio.cjs.entry.js +2 -2
- package/dist/cjs/nv-fieldradio.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldselect.cjs.entry.js +2 -2
- package/dist/cjs/nv-fieldselect.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldslider.cjs.entry.js +2 -2
- package/dist/cjs/nv-fieldslider.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldtext.cjs.entry.js +2 -2
- package/dist/cjs/nv-fieldtext.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js +2 -2
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldtime.cjs.entry.js +25 -12
- package/dist/cjs/nv-fieldtime.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-icon.cjs.entry.js +2 -2
- package/dist/cjs/nv-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-iconbutton_2.cjs.entry.js +2 -2
- package/dist/cjs/nv-iconbutton_2.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-menu.cjs.entry.js +24 -9
- package/dist/cjs/nv-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-menuitem.cjs.entry.js +1 -1
- package/dist/cjs/nv-notification.cjs.entry.js +2 -2
- package/dist/cjs/nv-notification.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-notificationcontainer.cjs.entry.js +1 -1
- package/dist/cjs/nv-popover.cjs.entry.js +67 -61
- package/dist/cjs/nv-popover.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-row.cjs.entry.js +1 -1
- package/dist/cjs/nv-split.cjs.entry.js +339 -0
- package/dist/cjs/nv-split.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-stack.cjs.entry.js +2 -2
- package/dist/cjs/nv-table.cjs.entry.js +216 -310
- package/dist/cjs/nv-table.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-toggle.cjs.entry.js +2 -2
- package/dist/cjs/nv-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-togglebutton.cjs.entry.js +1 -1
- package/dist/cjs/nv-togglebuttongroup.cjs.entry.js +2 -2
- package/dist/cjs/nv-togglebuttongroup.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-tooltip.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/nv-accordion/nv-accordion.js +12 -9
- package/dist/collection/components/nv-accordion/nv-accordion.js.map +1 -1
- package/dist/collection/components/nv-accordion-item/nv-accordion-item.js.map +1 -1
- package/dist/collection/components/nv-accordion-item/styles/nv-accordion-item.css +1 -1
- package/dist/collection/components/nv-alert/nv-alert.css +1 -1
- package/dist/collection/components/nv-avatar/nv-avatar.css +1 -1
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.css +1 -1
- package/dist/collection/components/nv-button/nv-button.js +1 -13
- package/dist/collection/components/nv-button/nv-button.js.map +1 -1
- package/dist/collection/components/nv-button/styles/nv-button.css +1 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.css +2 -2
- package/dist/collection/components/nv-dialog/nv-dialog.css +2 -2
- package/dist/collection/components/nv-dialog/nv-dialog.docs.js +13 -0
- package/dist/collection/components/nv-dialog/nv-dialog.docs.js.map +1 -1
- package/dist/collection/components/nv-dialog/nv-dialog.js +30 -27
- package/dist/collection/components/nv-dialog/nv-dialog.js.map +1 -1
- package/dist/collection/components/nv-dialogheader/nv-dialogheader.css +4 -4
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.css +3 -3
- package/dist/collection/components/nv-fielddate/nv-fielddate.js +49 -24
- package/dist/collection/components/nv-fielddate/nv-fielddate.js.map +1 -1
- package/dist/collection/components/nv-fielddate/styles/nv-fielddate.css +8 -8
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.js +66 -43
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.js.map +1 -1
- package/dist/collection/components/nv-fielddaterange/styles/nv-fielddaterange.css +8 -8
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js +26 -4
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js.map +1 -1
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js +32 -4
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js.map +1 -1
- package/dist/collection/components/nv-fielddropdown/styles/nv-fielddropdown.css +9 -9
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js +186 -153
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js.map +1 -1
- package/dist/collection/components/nv-fieldmultiselect/styles/nv-fieldmultiselect.css +9 -9
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.css +8 -8
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.css +8 -8
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.css +3 -3
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.css +12 -12
- package/dist/collection/components/nv-fieldslider/styles/nv-fieldslider.css +7 -7
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.css +8 -8
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js +9 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js.map +1 -1
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.css +8 -8
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.docs.js +22 -0
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.docs.js.map +1 -1
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.js +24 -9
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.js.map +1 -1
- package/dist/collection/components/nv-fieldtime/styles/nv-fieldtime.css +8 -8
- package/dist/collection/components/nv-icon/nv-icons.js +6 -1
- package/dist/collection/components/nv-icon/nv-icons.js.map +1 -1
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.css +2 -2
- package/dist/collection/components/nv-menu/nv-menu.docs.js +7 -0
- package/dist/collection/components/nv-menu/nv-menu.docs.js.map +1 -1
- package/dist/collection/components/nv-menu/nv-menu.js +26 -8
- package/dist/collection/components/nv-menu/nv-menu.js.map +1 -1
- package/dist/collection/components/nv-menuitem/nv-menuitem.js +1 -1
- package/dist/collection/components/nv-notification/styles/nv-notification.css +2 -2
- package/dist/collection/components/nv-popover/nv-popover.docs.js +11 -0
- package/dist/collection/components/nv-popover/nv-popover.docs.js.map +1 -1
- package/dist/collection/components/nv-popover/nv-popover.js +66 -60
- package/dist/collection/components/nv-popover/nv-popover.js.map +1 -1
- package/dist/collection/components/nv-split/nv-split.docs.js +41 -0
- package/dist/collection/components/nv-split/nv-split.docs.js.map +1 -0
- package/dist/collection/components/nv-split/nv-split.js +549 -0
- package/dist/collection/components/nv-split/nv-split.js.map +1 -0
- package/dist/collection/components/nv-split/styles/nv-split.css +96 -0
- package/dist/collection/components/nv-stack/nv-stack.js +1 -1
- package/dist/collection/components/nv-table/nv-table.docs.js +16 -155
- package/dist/collection/components/nv-table/nv-table.docs.js.map +1 -1
- package/dist/collection/components/nv-table/nv-table.js +68 -496
- package/dist/collection/components/nv-table/nv-table.js.map +1 -1
- package/dist/collection/components/nv-table/nv-table.utils.js +175 -0
- package/dist/collection/components/nv-table/nv-table.utils.js.map +1 -0
- package/dist/collection/components/nv-table/styles/nv-table.css +84 -0
- package/dist/collection/components/nv-table/test/nv-table.utils.test.js +604 -0
- package/dist/collection/components/nv-table/test/nv-table.utils.test.js.map +1 -0
- package/dist/collection/components/nv-toggle/nv-toggle.css +3 -3
- package/dist/collection/components/nv-togglebuttongroup/nv-togglebuttongroup.docs.js +1 -0
- package/dist/collection/components/nv-togglebuttongroup/nv-togglebuttongroup.docs.js.map +1 -1
- package/dist/collection/components/nv-togglebuttongroup/nv-togglebuttongroup.js +1 -3
- package/dist/collection/components/nv-togglebuttongroup/nv-togglebuttongroup.js.map +1 -1
- package/dist/components/index.js +7 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/nv-accordion-item.js +1 -1
- package/dist/components/nv-accordion.js +10 -10
- package/dist/components/nv-accordion.js.map +1 -1
- package/dist/components/nv-alert.js +3 -3
- package/dist/components/nv-alert.js.map +1 -1
- package/dist/components/nv-avatar.js +3 -3
- package/dist/components/nv-avatar.js.map +1 -1
- package/dist/components/nv-badge.js +1 -1
- package/dist/components/nv-breadcrumb.js +4 -4
- package/dist/components/nv-breadcrumb.js.map +1 -1
- package/dist/components/nv-breadcrumbs.js +1 -1
- package/dist/components/nv-button.js +1 -1
- package/dist/components/nv-buttongroup.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 +174 -7
- package/dist/components/nv-datagrid.js.map +1 -1
- package/dist/components/nv-datagridcolumn.js +1 -1
- package/dist/components/nv-dialog.js +37 -34
- 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 +57 -32
- package/dist/components/nv-fielddate.js.map +1 -1
- package/dist/components/nv-fielddaterange.js +74 -48
- package/dist/components/nv-fielddaterange.js.map +1 -1
- package/dist/components/nv-fielddropdown.js +40 -13
- 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 +196 -164
- package/dist/components/nv-fieldmultiselect.js.map +1 -1
- package/dist/components/nv-fieldnumber.js +1 -1
- package/dist/components/nv-fieldpassword.js +5 -5
- package/dist/components/nv-fieldpassword.js.map +1 -1
- package/dist/components/nv-fieldradio.js +2 -2
- package/dist/components/nv-fieldradio.js.map +1 -1
- package/dist/components/nv-fieldselect.js +5 -5
- package/dist/components/nv-fieldselect.js.map +1 -1
- package/dist/components/nv-fieldslider.js +6 -6
- package/dist/components/nv-fieldslider.js.map +1 -1
- package/dist/components/nv-fieldtext.js +1 -1
- package/dist/components/nv-fieldtextarea.js +2 -2
- package/dist/components/nv-fieldtextarea.js.map +1 -1
- package/dist/components/nv-fieldtime.js +31 -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 +30 -13
- package/dist/components/nv-menu.js.map +1 -1
- package/dist/components/nv-menuitem.js +1 -1
- package/dist/components/nv-notification.js +3 -3
- package/dist/components/nv-notification.js.map +1 -1
- package/dist/components/nv-notificationcontainer.js +1 -1
- package/dist/components/nv-popover.js +1 -1
- package/dist/components/nv-row.js +1 -1
- package/dist/components/{nv-tablecolumn.d.ts → nv-split.d.ts} +4 -4
- package/dist/components/nv-split.js +366 -0
- package/dist/components/nv-split.js.map +1 -0
- package/dist/components/nv-stack.js +2 -2
- package/dist/components/nv-table.js +216 -328
- package/dist/components/nv-table.js.map +1 -1
- package/dist/components/nv-toggle.js +2 -2
- package/dist/components/nv-toggle.js.map +1 -1
- package/dist/components/nv-togglebutton.js +1 -1
- package/dist/components/nv-togglebuttongroup.js +2 -2
- package/dist/components/nv-togglebuttongroup.js.map +1 -1
- package/dist/components/nv-tooltip.js +1 -1
- package/dist/components/{p-00cbf2a1.js → p-0d5ed1d7.js} +3 -3
- package/dist/components/p-0d5ed1d7.js.map +1 -0
- package/dist/components/{p-54161bad.js → p-0e6f41c7.js} +2 -2
- package/dist/components/{p-54161bad.js.map → p-0e6f41c7.js.map} +1 -1
- package/dist/components/{p-0c42fafb.js → p-0fd23531.js} +6 -6
- package/dist/components/{p-0c42fafb.js.map → p-0fd23531.js.map} +1 -1
- package/dist/components/{p-a823b8e9.js → p-1639703f.js} +2 -2
- package/dist/components/{p-a823b8e9.js.map → p-1639703f.js.map} +1 -1
- package/dist/components/{p-e5c62ea8.js → p-2cc83e0c.js} +3 -3
- package/dist/components/{p-e5c62ea8.js.map → p-2cc83e0c.js.map} +1 -1
- package/dist/components/{p-3763c9c4.js → p-31478080.js} +3 -3
- package/dist/components/{p-3763c9c4.js.map → p-31478080.js.map} +1 -1
- package/dist/components/{p-178fa27e.js → p-378e3127.js} +6 -6
- package/dist/components/{p-178fa27e.js.map → p-378e3127.js.map} +1 -1
- package/dist/components/{p-51876ca1.js → p-429e01f3.js} +3 -3
- package/dist/components/p-429e01f3.js.map +1 -0
- package/dist/components/p-47d499b4.js +88 -0
- package/dist/components/p-47d499b4.js.map +1 -0
- package/dist/components/{p-aff3ed68.js → p-5829b9f7.js} +5 -2
- package/dist/components/p-5829b9f7.js.map +1 -0
- package/dist/components/{p-ee8944f3.js → p-63595ea1.js} +68 -62
- package/dist/components/p-63595ea1.js.map +1 -0
- package/dist/components/{p-1af3591a.js → p-6f2b257e.js} +3 -3
- package/dist/components/{p-1af3591a.js.map → p-6f2b257e.js.map} +1 -1
- package/dist/components/{p-4fc01a78.js → p-7112612c.js} +5 -5
- package/dist/components/p-7112612c.js.map +1 -0
- package/dist/components/{p-7426b20f.js → p-715e5235.js} +3 -3
- package/dist/components/{p-7426b20f.js.map → p-715e5235.js.map} +1 -1
- package/dist/components/{p-31e262bd.js → p-7b5102c8.js} +5 -5
- package/dist/components/{p-31e262bd.js.map → p-7b5102c8.js.map} +1 -1
- package/dist/components/{p-fda58a76.js → p-98429fd7.js} +2 -2
- package/dist/components/{p-fda58a76.js.map → p-98429fd7.js.map} +1 -1
- package/dist/components/p-9e7468e3.js +185 -0
- package/dist/components/p-9e7468e3.js.map +1 -0
- package/dist/components/{p-75200cc0.js → p-df5d76a5.js} +3 -3
- package/dist/components/{p-75200cc0.js.map → p-df5d76a5.js.map} +1 -1
- package/dist/components/{p-51459a44.js → p-f2bac2aa.js} +4 -4
- package/dist/components/{p-51459a44.js.map → p-f2bac2aa.js.map} +1 -1
- package/dist/esm/{index-a1936cd0.js → index-dc2723f3.js} +9 -6
- package/dist/esm/index-dc2723f3.js.map +1 -0
- package/dist/esm/index.js +6 -1
- 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-accordion-item.entry.js +2 -2
- package/dist/esm/nv-accordion-item.entry.js.map +1 -1
- package/dist/esm/nv-accordion.entry.js +6 -6
- package/dist/esm/nv-accordion.entry.js.map +1 -1
- package/dist/esm/nv-alert.entry.js +2 -2
- package/dist/esm/nv-alert.entry.js.map +1 -1
- package/dist/esm/nv-avatar.entry.js +2 -2
- package/dist/esm/nv-avatar.entry.js.map +1 -1
- package/dist/esm/nv-badge_2.entry.js +1 -1
- package/dist/esm/nv-breadcrumb.entry.js +2 -2
- package/dist/esm/nv-breadcrumb.entry.js.map +1 -1
- package/dist/esm/nv-breadcrumbs.entry.js +1 -1
- package/dist/esm/nv-button.entry.js +3 -9
- package/dist/esm/nv-button.entry.js.map +1 -1
- package/dist/esm/nv-buttongroup.entry.js +1 -1
- package/dist/esm/nv-calendar.entry.js +1 -1
- package/dist/esm/nv-col.entry.js +1 -1
- package/dist/esm/nv-datagrid.entry.js +172 -5
- package/dist/esm/nv-datagrid.entry.js.map +1 -1
- package/dist/esm/nv-datagridcolumn.entry.js +1 -1
- package/dist/esm/nv-dialog.entry.js +32 -29
- package/dist/esm/nv-dialog.entry.js.map +1 -1
- package/dist/esm/nv-dialogfooter_2.entry.js +2 -2
- package/dist/esm/nv-dialogfooter_2.entry.js.map +1 -1
- package/dist/esm/nv-fieldcheckbox.entry.js +2 -2
- package/dist/esm/nv-fieldcheckbox.entry.js.map +1 -1
- package/dist/esm/nv-fielddate.entry.js +51 -26
- package/dist/esm/nv-fielddate.entry.js.map +1 -1
- package/dist/esm/nv-fielddaterange.entry.js +68 -42
- package/dist/esm/nv-fielddaterange.entry.js.map +1 -1
- package/dist/esm/nv-fielddropdown.entry.js +33 -7
- package/dist/esm/nv-fielddropdown.entry.js.map +1 -1
- package/dist/esm/nv-fielddropdownitem.entry.js +1 -1
- package/dist/esm/nv-fieldmultiselect.entry.js +187 -156
- package/dist/esm/nv-fieldmultiselect.entry.js.map +1 -1
- package/dist/esm/nv-fieldnumber.entry.js +2 -2
- package/dist/esm/nv-fieldnumber.entry.js.map +1 -1
- package/dist/esm/nv-fieldpassword.entry.js +2 -2
- package/dist/esm/nv-fieldpassword.entry.js.map +1 -1
- package/dist/esm/nv-fieldradio.entry.js +2 -2
- package/dist/esm/nv-fieldradio.entry.js.map +1 -1
- package/dist/esm/nv-fieldselect.entry.js +2 -2
- package/dist/esm/nv-fieldselect.entry.js.map +1 -1
- package/dist/esm/nv-fieldslider.entry.js +2 -2
- package/dist/esm/nv-fieldslider.entry.js.map +1 -1
- package/dist/esm/nv-fieldtext.entry.js +2 -2
- package/dist/esm/nv-fieldtext.entry.js.map +1 -1
- package/dist/esm/nv-fieldtextarea.entry.js +2 -2
- package/dist/esm/nv-fieldtextarea.entry.js.map +1 -1
- package/dist/esm/nv-fieldtime.entry.js +25 -12
- package/dist/esm/nv-fieldtime.entry.js.map +1 -1
- package/dist/esm/nv-icon.entry.js +2 -2
- package/dist/esm/nv-icon.entry.js.map +1 -1
- package/dist/esm/nv-iconbutton_2.entry.js +2 -2
- package/dist/esm/nv-iconbutton_2.entry.js.map +1 -1
- package/dist/esm/nv-menu.entry.js +24 -9
- package/dist/esm/nv-menu.entry.js.map +1 -1
- package/dist/esm/nv-menuitem.entry.js +1 -1
- package/dist/esm/nv-notification.entry.js +2 -2
- package/dist/esm/nv-notification.entry.js.map +1 -1
- package/dist/esm/nv-notificationcontainer.entry.js +1 -1
- package/dist/esm/nv-popover.entry.js +67 -61
- package/dist/esm/nv-popover.entry.js.map +1 -1
- package/dist/esm/nv-row.entry.js +1 -1
- package/dist/esm/nv-split.entry.js +335 -0
- package/dist/esm/nv-split.entry.js.map +1 -0
- package/dist/esm/nv-stack.entry.js +2 -2
- package/dist/esm/nv-table.entry.js +216 -310
- package/dist/esm/nv-table.entry.js.map +1 -1
- package/dist/esm/nv-toggle.entry.js +2 -2
- package/dist/esm/nv-toggle.entry.js.map +1 -1
- package/dist/esm/nv-togglebutton.entry.js +1 -1
- package/dist/esm/nv-togglebuttongroup.entry.js +2 -2
- package/dist/esm/nv-togglebuttongroup.entry.js.map +1 -1
- package/dist/esm/nv-tooltip.entry.js +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-107e80c6.entry.js +2 -0
- package/dist/native/p-107e80c6.entry.js.map +1 -0
- package/dist/native/{p-5c697133.entry.js → p-112d096c.entry.js} +2 -2
- package/dist/native/p-14e622e1.entry.js +2 -0
- package/dist/native/p-14e622e1.entry.js.map +1 -0
- package/dist/native/p-217de553.entry.js +2 -0
- package/dist/native/p-217de553.entry.js.map +1 -0
- package/dist/native/{p-85f8f11a.entry.js → p-230af58a.entry.js} +2 -2
- package/dist/native/p-2364aefa.entry.js +2 -0
- package/dist/native/p-2364aefa.entry.js.map +1 -0
- package/dist/native/p-23ee0384.entry.js +2 -0
- package/dist/native/{p-29f68e07.entry.js.map → p-23ee0384.entry.js.map} +1 -1
- package/dist/native/p-26513cbd.entry.js +2 -0
- package/dist/native/p-26513cbd.entry.js.map +1 -0
- package/dist/native/p-278613a3.entry.js +2 -0
- package/dist/native/{p-6cb6679b.entry.js.map → p-278613a3.entry.js.map} +1 -1
- package/dist/native/p-2dfd786f.entry.js +2 -0
- package/dist/native/{p-29df974e.entry.js.map → p-2dfd786f.entry.js.map} +1 -1
- package/dist/native/{p-d0a33e64.js → p-3060df80.js} +3 -3
- package/dist/native/p-3060df80.js.map +1 -0
- package/dist/native/p-4dc7483d.entry.js +2 -0
- package/dist/native/{p-c7b7ffaf.entry.js.map → p-4dc7483d.entry.js.map} +1 -1
- package/dist/native/p-4eaf417d.entry.js +13 -0
- package/dist/native/p-4eaf417d.entry.js.map +1 -0
- package/dist/native/p-5039ceb8.entry.js +2 -0
- package/dist/native/p-5039ceb8.entry.js.map +1 -0
- package/dist/native/{p-08322093.entry.js → p-52d2c0ae.entry.js} +2 -2
- package/dist/native/p-638967bf.entry.js +2 -0
- package/dist/native/p-638967bf.entry.js.map +1 -0
- package/dist/native/{p-19090193.entry.js → p-647a0765.entry.js} +2 -2
- package/dist/native/p-68dc02be.entry.js +2 -0
- package/dist/native/p-68dc02be.entry.js.map +1 -0
- package/dist/native/p-6d427897.entry.js +2 -0
- package/dist/native/{p-92931ab8.entry.js.map → p-6d427897.entry.js.map} +1 -1
- package/dist/native/{p-1504e28b.entry.js → p-701b48a4.entry.js} +2 -2
- package/dist/native/p-7c9bf981.entry.js +2 -0
- package/dist/native/p-835abdb9.entry.js +2 -0
- package/dist/native/{p-f5120223.entry.js.map → p-835abdb9.entry.js.map} +1 -1
- package/dist/native/{p-464bb197.entry.js → p-83765537.entry.js} +2 -2
- package/dist/native/p-88f9fca5.entry.js +2 -0
- package/dist/native/p-88f9fca5.entry.js.map +1 -0
- package/dist/native/{p-d2c9247b.entry.js → p-8e423742.entry.js} +3 -3
- package/dist/native/{p-d2c9247b.entry.js.map → p-8e423742.entry.js.map} +1 -1
- package/dist/native/{p-d882f417.entry.js → p-91fab6c2.entry.js} +2 -2
- package/dist/native/p-91fab6c2.entry.js.map +1 -0
- package/dist/native/p-95184ea2.entry.js +2 -0
- package/dist/native/p-95184ea2.entry.js.map +1 -0
- package/dist/native/p-9613087c.entry.js +2 -0
- package/dist/native/{p-2781637d.entry.js.map → p-9613087c.entry.js.map} +1 -1
- package/dist/native/{p-94dc9c41.entry.js → p-9d7e099f.entry.js} +2 -2
- package/dist/native/p-a6fc987a.entry.js +2 -0
- package/dist/native/p-a6fc987a.entry.js.map +1 -0
- package/dist/native/{p-1235c007.entry.js → p-acabac31.entry.js} +2 -2
- package/dist/native/p-acada158.entry.js +2 -0
- package/dist/native/p-acada158.entry.js.map +1 -0
- package/dist/native/p-b06f0e61.entry.js +2 -0
- package/dist/native/p-b06f0e61.entry.js.map +1 -0
- package/dist/native/p-b4c15f25.entry.js +2 -0
- package/dist/native/p-b4c15f25.entry.js.map +1 -0
- package/dist/native/{p-74b129e9.entry.js → p-bcf41cd0.entry.js} +2 -2
- package/dist/native/{p-c66565f8.entry.js → p-cb0293ec.entry.js} +2 -2
- package/dist/native/p-ce97ce24.entry.js +2 -0
- package/dist/native/p-ce97ce24.entry.js.map +1 -0
- package/dist/native/p-d0db5e72.entry.js +2 -0
- package/dist/native/p-d0db5e72.entry.js.map +1 -0
- package/dist/native/p-d7f444fb.entry.js +2 -0
- package/dist/native/p-d7f444fb.entry.js.map +1 -0
- package/dist/native/p-d878e90a.entry.js +2 -0
- package/dist/native/p-d878e90a.entry.js.map +1 -0
- package/dist/native/{p-e2c99ce2.entry.js → p-d94bf052.entry.js} +2 -2
- package/dist/native/p-ddc41f1f.entry.js +2 -0
- package/dist/native/p-ddc41f1f.entry.js.map +1 -0
- package/dist/native/p-f30e0be6.entry.js +2 -0
- package/dist/native/p-f30e0be6.entry.js.map +1 -0
- package/dist/native/p-f3c73492.entry.js +2 -0
- package/dist/native/{p-b32d0a5a.entry.js.map → p-f3c73492.entry.js.map} +1 -1
- package/dist/native/{p-9c5d6827.entry.js → p-fa78d8eb.entry.js} +2 -2
- package/dist/types/components/nv-accordion/nv-accordion.d.ts +2 -4
- package/dist/types/components/nv-button/nv-button.d.ts +0 -1
- package/dist/types/components/nv-dialog/nv-dialog.d.ts +9 -8
- package/dist/types/components/nv-fielddate/nv-fielddate.d.ts +6 -3
- package/dist/types/components/nv-fielddaterange/nv-fielddaterange.d.ts +5 -4
- package/dist/types/components/nv-fielddropdown/nv-fielddropdown.d.ts +3 -1
- package/dist/types/components/nv-fieldmultiselect/nv-fieldmultiselect.d.ts +12 -11
- package/dist/types/components/nv-fieldtime/nv-fieldtime.d.ts +1 -0
- package/dist/types/components/nv-icon/nv-icons.d.ts +1 -1
- package/dist/types/components/nv-menu/nv-menu.d.ts +4 -1
- package/dist/types/components/nv-popover/nv-popover.d.ts +10 -8
- package/dist/types/components/nv-split/nv-split.d.ts +128 -0
- package/dist/types/components/nv-split/nv-split.docs.d.ts +4 -0
- package/dist/types/components/nv-table/nv-table.d.ts +6 -87
- package/dist/types/components/nv-table/nv-table.utils.d.ts +129 -0
- package/dist/types/components/nv-table/test/nv-table.utils.test.d.ts +1 -0
- package/dist/types/components/nv-togglebuttongroup/nv-togglebuttongroup.d.ts +0 -2
- package/dist/types/components.d.ts +102 -200
- package/dist/vscode-data.json +43 -41
- package/hydrate/index.js +1148 -783
- package/hydrate/index.mjs +1148 -783
- package/package.json +10 -10
- package/dist/cjs/dom.utils-4d43f69a.js +0 -170
- package/dist/cjs/dom.utils-4d43f69a.js.map +0 -1
- package/dist/cjs/index-c56424e5.js.map +0 -1
- package/dist/cjs/nv-tablecolumn.cjs.entry.js +0 -21
- package/dist/cjs/nv-tablecolumn.cjs.entry.js.map +0 -1
- package/dist/collection/components/nv-table/nv-table.css +0 -35
- package/dist/collection/components/nv-tablecolumn/nv-tablecolumn.docs.js +0 -6
- package/dist/collection/components/nv-tablecolumn/nv-tablecolumn.docs.js.map +0 -1
- package/dist/collection/components/nv-tablecolumn/nv-tablecolumn.js +0 -52
- package/dist/collection/components/nv-tablecolumn/nv-tablecolumn.js.map +0 -1
- package/dist/components/nv-tablecolumn.js +0 -38
- package/dist/components/nv-tablecolumn.js.map +0 -1
- package/dist/components/p-00cbf2a1.js.map +0 -1
- package/dist/components/p-4fc01a78.js.map +0 -1
- package/dist/components/p-51876ca1.js.map +0 -1
- package/dist/components/p-5d14ba3f.js +0 -88
- package/dist/components/p-5d14ba3f.js.map +0 -1
- package/dist/components/p-95857e4f.js +0 -191
- package/dist/components/p-95857e4f.js.map +0 -1
- package/dist/components/p-aff3ed68.js.map +0 -1
- package/dist/components/p-cb34aa4f.js +0 -167
- package/dist/components/p-cb34aa4f.js.map +0 -1
- package/dist/components/p-ee8944f3.js.map +0 -1
- package/dist/esm/dom.utils-ac71e0ef.js +0 -167
- package/dist/esm/dom.utils-ac71e0ef.js.map +0 -1
- package/dist/esm/index-a1936cd0.js.map +0 -1
- package/dist/esm/nv-tablecolumn.entry.js +0 -17
- package/dist/esm/nv-tablecolumn.entry.js.map +0 -1
- package/dist/native/p-0a99c6fb.entry.js +0 -2
- package/dist/native/p-0a99c6fb.entry.js.map +0 -1
- package/dist/native/p-1ad1bff9.entry.js +0 -2
- package/dist/native/p-1ad1bff9.entry.js.map +0 -1
- package/dist/native/p-1c83f540.entry.js +0 -2
- package/dist/native/p-1c83f540.entry.js.map +0 -1
- package/dist/native/p-224b1a01.entry.js +0 -2
- package/dist/native/p-224b1a01.entry.js.map +0 -1
- package/dist/native/p-234cfa2e.entry.js +0 -2
- package/dist/native/p-2781637d.entry.js +0 -2
- package/dist/native/p-29df974e.entry.js +0 -2
- package/dist/native/p-29f68e07.entry.js +0 -2
- package/dist/native/p-45506c37.entry.js +0 -2
- package/dist/native/p-45506c37.entry.js.map +0 -1
- package/dist/native/p-48774d0c.entry.js +0 -13
- package/dist/native/p-48774d0c.entry.js.map +0 -1
- package/dist/native/p-4ec61dec.entry.js +0 -2
- package/dist/native/p-4ec61dec.entry.js.map +0 -1
- package/dist/native/p-5f0776cb.entry.js +0 -2
- package/dist/native/p-5f0776cb.entry.js.map +0 -1
- package/dist/native/p-6c7a9a21.entry.js +0 -2
- package/dist/native/p-6c7a9a21.entry.js.map +0 -1
- package/dist/native/p-6cb6679b.entry.js +0 -2
- package/dist/native/p-6d13a851.entry.js +0 -2
- package/dist/native/p-6d13a851.entry.js.map +0 -1
- package/dist/native/p-87784622.entry.js +0 -2
- package/dist/native/p-87784622.entry.js.map +0 -1
- package/dist/native/p-92931ab8.entry.js +0 -2
- package/dist/native/p-9a46baa9.entry.js +0 -2
- package/dist/native/p-9a46baa9.entry.js.map +0 -1
- package/dist/native/p-a34beedf.entry.js +0 -2
- package/dist/native/p-a34beedf.entry.js.map +0 -1
- package/dist/native/p-a69dbcef.entry.js +0 -2
- package/dist/native/p-a69dbcef.entry.js.map +0 -1
- package/dist/native/p-b32d0a5a.entry.js +0 -2
- package/dist/native/p-bc01787b.entry.js +0 -2
- package/dist/native/p-bc01787b.entry.js.map +0 -1
- package/dist/native/p-c7b7ffaf.entry.js +0 -2
- package/dist/native/p-cb34aa4f.js +0 -2
- package/dist/native/p-cb34aa4f.js.map +0 -1
- package/dist/native/p-cea942b9.entry.js +0 -2
- package/dist/native/p-cea942b9.entry.js.map +0 -1
- package/dist/native/p-d0a33e64.js.map +0 -1
- package/dist/native/p-d0ef1bbb.entry.js +0 -2
- package/dist/native/p-d0ef1bbb.entry.js.map +0 -1
- package/dist/native/p-d882f417.entry.js.map +0 -1
- package/dist/native/p-dd023fd6.entry.js +0 -2
- package/dist/native/p-dd023fd6.entry.js.map +0 -1
- package/dist/native/p-e765a624.entry.js +0 -2
- package/dist/native/p-e765a624.entry.js.map +0 -1
- package/dist/native/p-f0cbfb3d.entry.js +0 -2
- package/dist/native/p-f0cbfb3d.entry.js.map +0 -1
- package/dist/native/p-f5120223.entry.js +0 -2
- package/dist/native/p-fa177c39.entry.js +0 -2
- package/dist/native/p-fa177c39.entry.js.map +0 -1
- package/dist/types/components/nv-tablecolumn/nv-tablecolumn.d.ts +0 -13
- package/dist/types/components/nv-tablecolumn/nv-tablecolumn.docs.d.ts +0 -4
- /package/dist/native/{p-5c697133.entry.js.map → p-112d096c.entry.js.map} +0 -0
- /package/dist/native/{p-85f8f11a.entry.js.map → p-230af58a.entry.js.map} +0 -0
- /package/dist/native/{p-08322093.entry.js.map → p-52d2c0ae.entry.js.map} +0 -0
- /package/dist/native/{p-19090193.entry.js.map → p-647a0765.entry.js.map} +0 -0
- /package/dist/native/{p-1504e28b.entry.js.map → p-701b48a4.entry.js.map} +0 -0
- /package/dist/native/{p-234cfa2e.entry.js.map → p-7c9bf981.entry.js.map} +0 -0
- /package/dist/native/{p-464bb197.entry.js.map → p-83765537.entry.js.map} +0 -0
- /package/dist/native/{p-94dc9c41.entry.js.map → p-9d7e099f.entry.js.map} +0 -0
- /package/dist/native/{p-1235c007.entry.js.map → p-acabac31.entry.js.map} +0 -0
- /package/dist/native/{p-74b129e9.entry.js.map → p-bcf41cd0.entry.js.map} +0 -0
- /package/dist/native/{p-c66565f8.entry.js.map → p-cb0293ec.entry.js.map} +0 -0
- /package/dist/native/{p-e2c99ce2.entry.js.map → p-d94bf052.entry.js.map} +0 -0
- /package/dist/native/{p-9c5d6827.entry.js.map → p-fa78d8eb.entry.js.map} +0 -0
|
@@ -1,355 +1,243 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H,
|
|
2
|
-
import { d as deepCopyElement, e as excludedProps } from './p-cb34aa4f.js';
|
|
1
|
+
import { p as proxyCustomElement, H, h, d as Host } from './p-5829b9f7.js';
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Table utility functions and constants for nv-table component
|
|
5
|
+
*
|
|
6
|
+
* This module contains pure utility functions for table column resizing logic,
|
|
7
|
+
* pointer event handling calculations, and related helper functions.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Constants for table column resizing behavior
|
|
11
|
+
*/
|
|
12
|
+
const TABLE_CONSTANTS = Object.freeze({
|
|
13
|
+
/** Handle width for fine pointers (mouse) in pixels */
|
|
14
|
+
HANDLE_W: 12,
|
|
15
|
+
/** Handle width for coarse pointers (touch) in pixels */
|
|
16
|
+
HANDLE_W_TOUCH: 24,
|
|
17
|
+
/** Minimum column width in pixels */
|
|
18
|
+
MIN_W: 40,
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* Determines the appropriate handle width based on the current pointer type
|
|
22
|
+
* @returns {number} Handle width in pixels (10px for fine pointers, 24px for coarse/touch)
|
|
23
|
+
*/
|
|
24
|
+
function getHandleWidthForCurrentPointer() {
|
|
25
|
+
// Match the CSS media query: wider handle on coarse pointers (touch)
|
|
26
|
+
return matchMedia('(pointer: coarse)').matches
|
|
27
|
+
? TABLE_CONSTANTS.HANDLE_W_TOUCH
|
|
28
|
+
: TABLE_CONSTANTS.HANDLE_W;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Calculates the pointer's horizontal offset within a table cell
|
|
32
|
+
* @param {PointerEvent} event - The pointer event
|
|
33
|
+
* @param {HTMLTableCellElement} cell - The table cell element
|
|
34
|
+
* @returns {number} The horizontal offset from the left edge of the cell
|
|
35
|
+
*/
|
|
36
|
+
function getPointerOffsetInCell(event, cell) {
|
|
37
|
+
const rect = cell.getBoundingClientRect();
|
|
38
|
+
return event.clientX - rect.left;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Determines if the pointer is within the resize handle area of a table cell
|
|
42
|
+
* @param {number} offsetX - Horizontal offset within the cell
|
|
43
|
+
* @param {number} cellWidth - Total width of the cell
|
|
44
|
+
* @param {number} handleWidth - Width of the resize handle area
|
|
45
|
+
* @returns {boolean} True if the pointer is in the resize handle area
|
|
46
|
+
*/
|
|
47
|
+
function isInResizeHandle(offsetX, cellWidth, handleWidth) {
|
|
48
|
+
return offsetX >= cellWidth - handleWidth;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Calculates the new column width based on resize delta and constraints
|
|
52
|
+
* @param {number} startWidth - Original width of the column
|
|
53
|
+
* @param {number} delta - Change in pixels from the start position
|
|
54
|
+
* @param {number} minWidth - Minimum allowed width for the column
|
|
55
|
+
* @returns {number} The calculated new width, constrained by minimum
|
|
56
|
+
*/
|
|
57
|
+
function calculateNewWidth(startWidth, delta, minWidth = TABLE_CONSTANTS.MIN_W) {
|
|
58
|
+
return Math.max(minWidth, startWidth + delta);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Validates that a table cell element is suitable for resizing
|
|
62
|
+
* @param {HTMLElement | null} element - The element to check
|
|
63
|
+
* @returns {element is HTMLTableCellElement} Type guard for table cell elements
|
|
64
|
+
*/
|
|
65
|
+
function isValidTableCell(element) {
|
|
66
|
+
return (element === null || element === void 0 ? void 0 : element.tagName) === 'TH' || (element === null || element === void 0 ? void 0 : element.tagName) === 'TD';
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Finds the closest table cell element from an event target
|
|
70
|
+
* @param {EventTarget | null} target - The event target
|
|
71
|
+
* @returns {HTMLTableCellElement | null} The closest table cell or null
|
|
72
|
+
*/
|
|
73
|
+
function getClosestTableCell(target) {
|
|
74
|
+
if (!(target instanceof HTMLElement))
|
|
75
|
+
return null;
|
|
76
|
+
const cell = target.closest('th, td');
|
|
77
|
+
return isValidTableCell(cell) ? cell : null;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Sets up pointer capture for consistent drag behavior across browsers
|
|
81
|
+
* @param {HTMLTableCellElement} cell - The table cell element
|
|
82
|
+
* @param {number} pointerId - The pointer ID from the pointer event
|
|
83
|
+
* @returns {boolean} True if capture was successfully set
|
|
84
|
+
*/
|
|
85
|
+
function setPointerCapture(cell, pointerId) {
|
|
86
|
+
var _a;
|
|
87
|
+
try {
|
|
88
|
+
(_a = cell.setPointerCapture) === null || _a === void 0 ? void 0 : _a.call(cell, pointerId);
|
|
89
|
+
return true;
|
|
90
|
+
}
|
|
91
|
+
catch (_b) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Releases pointer capture
|
|
97
|
+
* @param {HTMLTableCellElement} cell - The table cell element
|
|
98
|
+
* @param {number} pointerId - The pointer ID from the pointer event
|
|
99
|
+
* @returns {boolean} True if release was successful
|
|
100
|
+
*/
|
|
101
|
+
function releasePointerCapture(cell, pointerId) {
|
|
102
|
+
var _a;
|
|
103
|
+
try {
|
|
104
|
+
(_a = cell.releasePointerCapture) === null || _a === void 0 ? void 0 : _a.call(cell, pointerId);
|
|
105
|
+
return true;
|
|
106
|
+
}
|
|
107
|
+
catch (_b) {
|
|
108
|
+
return false;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Prevents text selection during drag operations
|
|
113
|
+
* @param {boolean} prevent - Whether to prevent selection
|
|
114
|
+
*/
|
|
115
|
+
function setUserSelectPrevention(prevent) {
|
|
116
|
+
document.body.style.userSelect = prevent ? 'none' : '';
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Gets the current width of a table cell element
|
|
120
|
+
* @param {HTMLTableCellElement} cell - The table cell element
|
|
121
|
+
* @returns {number} The current width in pixels
|
|
122
|
+
*/
|
|
123
|
+
function getCellWidth(cell) {
|
|
124
|
+
return cell.offsetWidth;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Applies a width to a table cell element
|
|
128
|
+
* @param {HTMLTableCellElement} cell - The table cell element
|
|
129
|
+
* @param {number} width - The width to apply in pixels
|
|
130
|
+
*/
|
|
131
|
+
function setCellWidth(cell, width) {
|
|
132
|
+
cell.style.width = `${width}px`;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Calculates the delta (change) in horizontal position between two pointer events
|
|
136
|
+
* @param {number} currentX - Current clientX position
|
|
137
|
+
* @param {number} startX - Starting clientX position
|
|
138
|
+
* @returns {number} The horizontal delta
|
|
139
|
+
*/
|
|
140
|
+
function calculatePointerDelta(currentX, startX) {
|
|
141
|
+
return currentX - startX;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Creates a new resize state object
|
|
145
|
+
* @param {HTMLTableCellElement} cell - The cell being resized
|
|
146
|
+
* @param {PointerEvent} event - The initiating pointer event
|
|
147
|
+
* @returns {ResizeState} A new resize state object
|
|
148
|
+
*/
|
|
149
|
+
function createResizeState(cell, event) {
|
|
150
|
+
return {
|
|
151
|
+
resizingCell: cell,
|
|
152
|
+
pointerId: event.pointerId,
|
|
153
|
+
startX: event.clientX,
|
|
154
|
+
startWidth: getCellWidth(cell),
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Validates that a resize state is active and matches the given pointer event
|
|
159
|
+
* @param {ResizeState | null} state - The current resize state
|
|
160
|
+
* @param {PointerEvent} event - The pointer event to validate against
|
|
161
|
+
* @returns {boolean} True if the state is valid for this event
|
|
162
|
+
*/
|
|
163
|
+
function isValidResizeState(state, event) {
|
|
164
|
+
return state !== null && state.pointerId === event.pointerId;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Updates the width of a cell during a resize operation
|
|
168
|
+
* @param {ResizeState} state - The current resize state
|
|
169
|
+
* @param {PointerEvent} event - The current pointer event
|
|
170
|
+
* @param {number} minWidth - Minimum width constraint
|
|
171
|
+
*/
|
|
172
|
+
function updateCellWidthFromResize(state, event, minWidth = TABLE_CONSTANTS.MIN_W) {
|
|
173
|
+
const delta = calculatePointerDelta(event.clientX, state.startX);
|
|
174
|
+
const newWidth = calculateNewWidth(state.startWidth, delta, minWidth);
|
|
175
|
+
setCellWidth(state.resizingCell, newWidth);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
const nvTableCss = "nv-table table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:max-content;min-width:100%;background:var(--color-level-00-background)}nv-table table thead{background:var(--components-datagrid-header-background)}nv-table table tbody tr:hover td{background:var(--components-datagrid-body-background-hover)}nv-table table tbody tr[data-selected]{background:var(--components-datagrid-body-background-active)}nv-table table td{height:var(--spacing-16);padding:var(--datagrid-cell-body-padding-y) var(--datagrid-cell-body-padding-x) var(--spacing-2) var(--datagrid-cell-body-padding-x);font-size:var(--font-size-md);font-style:normal;font-weight:var(--font-weight-low-emphasis);line-height:var(--line-height-base);background:var(--components-datagrid-body-background-default);border-bottom:1px solid var(--components-datagrid-body-border)}nv-table table th{position:relative;text-align:left;padding:var(--datagrid-cell-header-padding-y) var(--datagrid-cell-header-padding-right) var(--datagrid-cell-header-padding-y) var(--datagrid-cell-header-padding-x);padding-right:calc(var(--datagrid-cell-header-padding-right) + 12px);color:var(--color-content-low-text);font-variant-numeric:lining-nums tabular-nums slashed-zero;font-size:var(--font-size-md);font-style:normal;font-weight:var(--font-weight-high-emphasis);line-height:var(--line-height-base);min-width:40px;border-bottom:1px solid var(--components-datagrid-header-border);background:var(--components-datagrid-header-background)}nv-table table th::after{content:\"\";position:absolute;top:0;right:0;width:12px;height:50%;transform:translateY(50%);cursor:col-resize;background:linear-gradient(90deg, transparent 0%, transparent calc(50% - 1px), var(--components-datagrid-header-border), calc(50% - 1px), var(--components-datagrid-header-border) calc(50% + 1px), transparent calc(50% + 1px), transparent 100%);opacity:0;transition:opacity 0.05s ease-in-out}nv-table table th[data-grow]{width:unset}nv-table table th:hover::after{opacity:1}nv-table table th[data-no-resize]::after{display:none}nv-table [data-sticky-left]{position:sticky;z-index:1;background:var(--color-level-00-background);left:0;top:0}nv-table [data-sticky-right]{position:sticky;z-index:1;background:var(--color-level-00-background);right:0;top:0}nv-table [data-sticky-top] th{position:sticky;z-index:1;background:var(--color-level-00-background);top:0}";
|
|
5
179
|
const NvTableStyle0 = nvTableCss;
|
|
6
180
|
|
|
7
181
|
const NvTable$1 = /*@__PURE__*/ proxyCustomElement(class NvTable extends H {
|
|
8
182
|
constructor() {
|
|
9
183
|
super();
|
|
10
184
|
this.__registerHost();
|
|
11
|
-
this.
|
|
12
|
-
this.templateCache = new Map();
|
|
13
|
-
this.headerTemplateCache = new Map();
|
|
14
|
-
/****************************************************************************/
|
|
15
|
-
//#region STATES
|
|
16
|
-
this.parsedColumns = [];
|
|
17
|
-
this.parsedData = [];
|
|
18
|
-
this.table = null;
|
|
19
|
-
//#endregion STATES
|
|
20
|
-
/****************************************************************************/
|
|
21
|
-
//#region PROPERTIES
|
|
22
|
-
/**
|
|
23
|
-
* Data to be displayed in the table
|
|
24
|
-
*/
|
|
25
|
-
this.data = [];
|
|
26
|
-
/**
|
|
27
|
-
* Configuration of the columns of the table
|
|
28
|
-
*/
|
|
29
|
-
this.columnsConfig = [];
|
|
30
|
-
/**
|
|
31
|
-
* Fallback value to be displayed when data is not available
|
|
32
|
-
*/
|
|
33
|
-
this.fallbackValue = 'N/A';
|
|
34
|
-
/**
|
|
35
|
-
* Message to be displayed when no data is available
|
|
36
|
-
*/
|
|
37
|
-
this.noDataMessage = 'No data available';
|
|
38
|
-
/**
|
|
39
|
-
* The message to display when there are no columns or data available.
|
|
40
|
-
* @default 'No data or columns available to display.'
|
|
41
|
-
*/
|
|
42
|
-
this.noColumnsNoDataMessage = 'No data or columns available to display.';
|
|
185
|
+
this.resizeState = null;
|
|
43
186
|
}
|
|
187
|
+
/****************************************************************************/
|
|
188
|
+
//#region PROPERTIES
|
|
44
189
|
//#endregion PROPERTIES
|
|
45
190
|
/****************************************************************************/
|
|
46
191
|
//#region METHODS
|
|
47
|
-
/**
|
|
48
|
-
* Caches templates for cells and headers upfront to improve performance.
|
|
49
|
-
*/
|
|
50
|
-
cacheTemplates() {
|
|
51
|
-
const columns = Array.from(this.el.querySelectorAll('nv-tablecolumn'));
|
|
52
|
-
columns.forEach((col) => {
|
|
53
|
-
const key = col.name;
|
|
54
|
-
const cellSlot = col.querySelector('[slot="cell"]');
|
|
55
|
-
if (cellSlot) {
|
|
56
|
-
const element = deepCopyElement(cellSlot);
|
|
57
|
-
this.templateCache.set(key, element);
|
|
58
|
-
}
|
|
59
|
-
const headerSlot = col.querySelector('[slot="header"]');
|
|
60
|
-
if (headerSlot) {
|
|
61
|
-
const element = deepCopyElement(headerSlot);
|
|
62
|
-
this.headerTemplateCache.set(key, element);
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
const header = col.header;
|
|
66
|
-
if (header) {
|
|
67
|
-
const headerDiv = document.createElement('div');
|
|
68
|
-
headerDiv.textContent = header;
|
|
69
|
-
this.headerTemplateCache.set(key, headerDiv);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
parseDataAndColumns() {
|
|
75
|
-
if (this.dataJson) {
|
|
76
|
-
this.parseJsonData(this.dataJson);
|
|
77
|
-
}
|
|
78
|
-
else if (this.data && this.data.length > 0) {
|
|
79
|
-
this.parseDataArray(this.data, this.parsedData);
|
|
80
|
-
}
|
|
81
|
-
if (this.columnsConfigJson) {
|
|
82
|
-
this.parseJsonColumns(this.columnsConfigJson, this.parsedColumns);
|
|
83
|
-
}
|
|
84
|
-
else if (this.columnsConfig && this.columnsConfig.length > 0) {
|
|
85
|
-
this.parseColumnsArray(this.columnsConfig, this.parsedColumns);
|
|
86
|
-
}
|
|
87
|
-
else if (this.headerTemplateCache.size > 0) {
|
|
88
|
-
const headerKeys = Array.from(this.headerTemplateCache.keys());
|
|
89
|
-
const arrayColumnsConfig = headerKeys.map(key => (Object.assign({}, { name: key, header: key ? key.charAt(0).toUpperCase() + key.slice(1) : '' })));
|
|
90
|
-
this.parseColumnsArray(arrayColumnsConfig, this.parsedColumns);
|
|
91
|
-
}
|
|
92
|
-
else if (this.parsedData.length > 0) {
|
|
93
|
-
const firstRow = this.parsedData[0];
|
|
94
|
-
const arrayColumnsConfig = Object.keys(firstRow).map(key => ({
|
|
95
|
-
name: key,
|
|
96
|
-
header: key.charAt(0).toUpperCase() + key.slice(1),
|
|
97
|
-
}));
|
|
98
|
-
this.parseColumnsArray(arrayColumnsConfig, this.parsedColumns);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
deepEqual(a, b) {
|
|
102
|
-
return JSON.stringify(a) === JSON.stringify(b);
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Parses the data array and sets the state accordingly
|
|
106
|
-
* @param {any[]} newValue - New value of the data array
|
|
107
|
-
* @param {any[]} oldValue - Old value of the data array
|
|
108
|
-
* @returns {void}
|
|
109
|
-
*/
|
|
110
|
-
parseDataArray(newValue, oldValue) {
|
|
111
|
-
// Ensure both are arrays for proper comparison
|
|
112
|
-
const safeNewValue = Array.isArray(newValue) ? newValue : [];
|
|
113
|
-
const safeOldValue = Array.isArray(oldValue) ? oldValue : [];
|
|
114
|
-
if (this.deepEqual(safeNewValue, safeOldValue)) {
|
|
115
|
-
return; // Deep comparison
|
|
116
|
-
}
|
|
117
|
-
this.parsedData = Array.isArray(newValue) ? newValue : [];
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Parses the columns array and sets the state accordingly
|
|
121
|
-
* @param {ColumnConfig[]} newValue - New value of the columns array
|
|
122
|
-
* @param {ColumnConfig[]} oldValue - Old value of the columns array
|
|
123
|
-
* @returns {void}
|
|
124
|
-
*/
|
|
125
|
-
parseColumnsArray(newValue, oldValue) {
|
|
126
|
-
// Ensure both are arrays for proper comparison
|
|
127
|
-
const safeNewValue = Array.isArray(newValue) ? newValue : [];
|
|
128
|
-
const safeOldValue = Array.isArray(oldValue) ? oldValue : [];
|
|
129
|
-
// Use a proper deep comparison function (e.g., Lodash's isEqual)
|
|
130
|
-
if (this.deepEqual(safeNewValue, safeOldValue)) {
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
// Assign only after confirming changes
|
|
134
|
-
this.parsedColumns = safeNewValue;
|
|
135
|
-
}
|
|
136
|
-
initializeTable() {
|
|
137
|
-
// Clear the previous table instance (if any)
|
|
138
|
-
this.table = null;
|
|
139
|
-
if (this.parsedColumns.length > 0) {
|
|
140
|
-
this.table = {
|
|
141
|
-
columns: this.parsedColumns,
|
|
142
|
-
data: this.getTableData(),
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
else {
|
|
146
|
-
this.table = null;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
getTableData() {
|
|
150
|
-
if (this.parsedData &&
|
|
151
|
-
Array.isArray(this.parsedData) &&
|
|
152
|
-
this.parsedData.length > 0) {
|
|
153
|
-
return [...this.parsedData];
|
|
154
|
-
}
|
|
155
|
-
else {
|
|
156
|
-
return [];
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
// Helper function to get nested property value
|
|
160
|
-
replaceKeyWithValue(obj, path) {
|
|
161
|
-
var _a;
|
|
162
|
-
return ((_a = path
|
|
163
|
-
.split('.')
|
|
164
|
-
.reduce((acc, key) => (acc && acc[key] !== undefined ? acc[key] : undefined), obj)) !== null && _a !== void 0 ? _a : this.fallbackValue);
|
|
165
|
-
}
|
|
166
|
-
renderTemplate(template, row) {
|
|
167
|
-
if (!template) {
|
|
168
|
-
return null;
|
|
169
|
-
}
|
|
170
|
-
// Handle <template> elements correctly
|
|
171
|
-
const templateContent = template instanceof HTMLTemplateElement ? template.content : template;
|
|
172
|
-
const element = deepCopyElement(templateContent);
|
|
173
|
-
// Replace placeholders in text content, attributes, and properties
|
|
174
|
-
element.querySelectorAll('*').forEach(el => {
|
|
175
|
-
// Replace placeholders in text content
|
|
176
|
-
this.replacePlaceholdersTextContent(el, row);
|
|
177
|
-
// Replace placeholders in attributes
|
|
178
|
-
this.replacePlaceholdersAttributes(el, row);
|
|
179
|
-
// Replace placeholders in properties
|
|
180
|
-
this.replacePlaceholdersProperties(el, row);
|
|
181
|
-
});
|
|
182
|
-
// Handle `data-bind-event`
|
|
183
|
-
element.querySelectorAll('[data-bind-event]').forEach(el => {
|
|
184
|
-
const bindEvent = el.getAttribute('data-bind-event') || '';
|
|
185
|
-
const splitted = bindEvent.split(':');
|
|
186
|
-
if (!bindEvent.includes(':') || splitted.length < 2) {
|
|
187
|
-
console.warn('Invalid data-bind-event format:', bindEvent);
|
|
188
|
-
return;
|
|
189
|
-
}
|
|
190
|
-
const eventType = splitted[0];
|
|
191
|
-
const keyAction = splitted[1];
|
|
192
|
-
const details = splitted.length > 2 ? splitted[2] : null;
|
|
193
|
-
el.addEventListener(eventType, () => {
|
|
194
|
-
var _a;
|
|
195
|
-
const keys = (_a = details === null || details === void 0 ? void 0 : details.split(',')) !== null && _a !== void 0 ? _a : [];
|
|
196
|
-
// Convert keys into a single object instead of an array of objects
|
|
197
|
-
const keyValue = keys.reduce((acc, key) => {
|
|
198
|
-
acc[key] = row === null || row === void 0 ? void 0 : row[key];
|
|
199
|
-
return acc;
|
|
200
|
-
}, {});
|
|
201
|
-
const action = { keyAction, details: keyValue };
|
|
202
|
-
this.action.emit(action);
|
|
203
|
-
});
|
|
204
|
-
});
|
|
205
|
-
// Ensure Web Components are properly connected
|
|
206
|
-
setTimeout(() => {
|
|
207
|
-
element.querySelectorAll('*').forEach(child => {
|
|
208
|
-
if (typeof child.connectedCallback === 'function') {
|
|
209
|
-
child.connectedCallback();
|
|
210
|
-
}
|
|
211
|
-
});
|
|
212
|
-
}, 0);
|
|
213
|
-
return (h("div", { ref: el => {
|
|
214
|
-
if (el) {
|
|
215
|
-
el.innerHTML = ''; // Remove existing content
|
|
216
|
-
el.appendChild(element); // Append new element
|
|
217
|
-
}
|
|
218
|
-
} }));
|
|
219
|
-
}
|
|
220
|
-
replacePlaceholdersTextContent(element, row) {
|
|
221
|
-
// ✅ Replace placeholders in text content
|
|
222
|
-
element.childNodes.forEach(node => {
|
|
223
|
-
if (node.nodeType === Node.TEXT_NODE) {
|
|
224
|
-
node.textContent = node.textContent.replace(/__([\w.]+)__/g, (_, key) => this.replaceKeyWithValue(row, key));
|
|
225
|
-
}
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
replacePlaceholdersAttributes(element, row) {
|
|
229
|
-
// ✅ Replace placeholders in attributes
|
|
230
|
-
Array.from(element.attributes).forEach(attr => {
|
|
231
|
-
if (attr.value.includes('__')) {
|
|
232
|
-
attr.value = attr.value.replace(/__([\w.]+)__/g, (_, key) => this.replaceKeyWithValue(row, key));
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
replacePlaceholdersProperties(element, row) {
|
|
237
|
-
// ✅ Dynamically extract relevant properties
|
|
238
|
-
const properties = new Set();
|
|
239
|
-
// Collect only own enumerable properties
|
|
240
|
-
Object.keys(element).forEach(key => properties.add(key));
|
|
241
|
-
// Collect inherited properties from prototypes (HTMLElement -> Element -> Node)
|
|
242
|
-
let proto = Object.getPrototypeOf(element);
|
|
243
|
-
while (proto && proto !== H.prototype) {
|
|
244
|
-
Object.keys(proto).forEach(key => properties.add(key));
|
|
245
|
-
proto = Object.getPrototypeOf(proto);
|
|
246
|
-
}
|
|
247
|
-
// ✅ Filter and copy only non-function properties and exclude irrelevant ones
|
|
248
|
-
properties.forEach(prop => {
|
|
249
|
-
if (typeof element[prop] !== 'function' && // Ignore methods
|
|
250
|
-
!prop.startsWith('on') && // Ignore event listeners (onclick, oninput, etc.)
|
|
251
|
-
!excludedProps.has(prop) // 🚨 Prevent text duplication and irrelevant props
|
|
252
|
-
) {
|
|
253
|
-
try {
|
|
254
|
-
const value = element[prop];
|
|
255
|
-
// ✅ Replace placeholders only if the value is a string
|
|
256
|
-
if (typeof value === 'string' && value.includes('__')) {
|
|
257
|
-
element[prop] = value.replace(/__([\w.]+)__/g, (_, key) => this.replaceKeyWithValue(row, key)); // ✅ TypeScript safe
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
catch (error) {
|
|
261
|
-
console.warn(`Could not assign property ${prop}:`, error.message);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
});
|
|
265
|
-
}
|
|
266
192
|
//#endregion METHODS
|
|
267
193
|
/****************************************************************************/
|
|
268
|
-
//#region
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
194
|
+
//#region LISTENERS
|
|
195
|
+
onPointerDown(ev) {
|
|
196
|
+
const th = getClosestTableCell(ev.target);
|
|
197
|
+
if (!th)
|
|
198
|
+
return;
|
|
199
|
+
// Skip resize if the cell has data-no-resize attribute
|
|
200
|
+
if (th.hasAttribute('data-no-resize'))
|
|
201
|
+
return;
|
|
202
|
+
const offsetX = getPointerOffsetInCell(ev, th);
|
|
203
|
+
const handleWidth = getHandleWidthForCurrentPointer();
|
|
204
|
+
const cellWidth = getCellWidth(th);
|
|
205
|
+
// Start only if we're in the resize handle area
|
|
206
|
+
if (!isInResizeHandle(offsetX, cellWidth, handleWidth))
|
|
207
|
+
return;
|
|
208
|
+
this.resizeState = createResizeState(th, ev);
|
|
209
|
+
// Capture so move/up still fire even if the finger leaves the th
|
|
210
|
+
setPointerCapture(th, ev.pointerId);
|
|
211
|
+
// Prevent scrolling/selection during drag
|
|
212
|
+
setUserSelectPrevention(true);
|
|
284
213
|
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
}
|
|
290
|
-
catch (e) {
|
|
291
|
-
console.error('Invalid JSON format for dataJson:', e.message);
|
|
292
|
-
this.parsedData = [];
|
|
293
|
-
}
|
|
214
|
+
onPointerMove(ev) {
|
|
215
|
+
if (!isValidResizeState(this.resizeState, ev))
|
|
216
|
+
return;
|
|
217
|
+
updateCellWidthFromResize(this.resizeState, ev, TABLE_CONSTANTS.MIN_W);
|
|
294
218
|
}
|
|
295
|
-
|
|
296
|
-
this.
|
|
219
|
+
onPointerUp(ev) {
|
|
220
|
+
if (!isValidResizeState(this.resizeState, ev))
|
|
221
|
+
return;
|
|
222
|
+
releasePointerCapture(this.resizeState.resizingCell, this.resizeState.pointerId);
|
|
223
|
+
this.resizeState = null;
|
|
224
|
+
setUserSelectPrevention(false);
|
|
297
225
|
}
|
|
298
|
-
//#endregion
|
|
226
|
+
//#endregion LISTENERS
|
|
299
227
|
/****************************************************************************/
|
|
300
228
|
//#region LIFECYCLE
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
}
|
|
229
|
+
//#endregion LIFECYCLE
|
|
230
|
+
/****************************************************************************/
|
|
231
|
+
//#region EVENTS
|
|
305
232
|
//#endregion EVENTS
|
|
306
233
|
/****************************************************************************/
|
|
307
234
|
//#region RENDER
|
|
308
235
|
render() {
|
|
309
|
-
|
|
310
|
-
? []
|
|
311
|
-
: this.table.columns;
|
|
312
|
-
const rows = !this.table || this.table === undefined || this.parsedData.length === 0
|
|
313
|
-
? []
|
|
314
|
-
: this.table.data;
|
|
315
|
-
return (h(Host, { key: '08082f0800c32a59606968aa2a80cfa3c2f07960' }, h("div", { key: 'f55f5409f45d90ef072abb09006ef6366e7e8c95', class: "hidden" }, h("slot", { key: '0b5326e8c7c6f97f419819744a132335d4435bb4' })), h("slot", { key: '07d4538957b466ed332cd598e2c132d85a801979', name: "before" }), this.parsedColumns.length === 0 && this.parsedData.length === 0 ? (h("div", { class: "no-data" }, this.noColumnsNoDataMessage)) : (h("table", { class: "table" }, this.parsedColumns.length > 0 && headerGroups.length > 0 && (h("thead", { class: "table-header" }, h("tr", null, headerGroups &&
|
|
316
|
-
headerGroups.map(col => {
|
|
317
|
-
return (h("th", { key: col.name }, this.renderTemplate(this.headerTemplateCache.get(col.name), {}) || col.header));
|
|
318
|
-
})))), h("tbody", { class: "table-body" }, !rows || rows.length === 0 ? (h("tr", null, h("td", { colSpan: headerGroups.length || 12, class: "no-data" }, this.noDataMessage))) : (rows.map(row => (h("tr", { key: JSON.stringify(row) }, headerGroups.map(col => {
|
|
319
|
-
var _a;
|
|
320
|
-
return (h("td", null, this.renderTemplate(this.templateCache.get(col.name), row) ||
|
|
321
|
-
((_a = row[col.name]) !== null && _a !== void 0 ? _a : this.fallbackValue)));
|
|
322
|
-
})))))))), h("slot", { key: '1f505261da2c2e05511940ec90f7375981cb0823', name: "after" })));
|
|
236
|
+
return (h(Host, { key: '16b564cc29e8987d8b3fda3a84c0b19882a733bd' }, h("slot", { key: '1305cbc6d29caa60df55bfa01a39a3417a27ec01' })));
|
|
323
237
|
}
|
|
324
|
-
get
|
|
325
|
-
static get watchers() { return {
|
|
326
|
-
"columnsConfig": ["parseColumns"],
|
|
327
|
-
"columnsConfigJson": ["parseJsonColumns"],
|
|
328
|
-
"data": ["parseData"],
|
|
329
|
-
"dataJson": ["parseJsonData"],
|
|
330
|
-
"parsedColumns": ["handleParsedChange"],
|
|
331
|
-
"parsedData": ["handleParsedChange"]
|
|
332
|
-
}; }
|
|
238
|
+
get host() { return this; }
|
|
333
239
|
static get style() { return NvTableStyle0; }
|
|
334
|
-
}, [4, "nv-table",
|
|
335
|
-
"data": [16],
|
|
336
|
-
"columnsConfig": [16],
|
|
337
|
-
"dataJson": [513, "data-json"],
|
|
338
|
-
"columnsConfigJson": [513, "columns-config-json"],
|
|
339
|
-
"fallbackValue": [513, "fallback-value"],
|
|
340
|
-
"noDataMessage": [513, "no-data-message"],
|
|
341
|
-
"noColumnsNoDataMessage": [513, "no-columns-no-data-message"],
|
|
342
|
-
"parsedColumns": [32],
|
|
343
|
-
"parsedData": [32],
|
|
344
|
-
"table": [32]
|
|
345
|
-
}, undefined, {
|
|
346
|
-
"columnsConfig": ["parseColumns"],
|
|
347
|
-
"columnsConfigJson": ["parseJsonColumns"],
|
|
348
|
-
"data": ["parseData"],
|
|
349
|
-
"dataJson": ["parseJsonData"],
|
|
350
|
-
"parsedColumns": ["handleParsedChange"],
|
|
351
|
-
"parsedData": ["handleParsedChange"]
|
|
352
|
-
}]);
|
|
240
|
+
}, [4, "nv-table", undefined, [[1, "pointerdown", "onPointerDown"], [9, "pointermove", "onPointerMove"], [9, "pointerup", "onPointerUp"], [9, "pointercancel", "onPointerUp"]]]);
|
|
353
241
|
function defineCustomElement$1() {
|
|
354
242
|
if (typeof customElements === "undefined") {
|
|
355
243
|
return;
|