@nova-design-system/nova-webcomponents 3.0.0-beta.44 → 3.0.0-beta.46
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/loader.cjs.js +1 -1
- package/dist/cjs/native.cjs.js +1 -1
- package/dist/cjs/nv-badge_2.cjs.entry.js +6 -5
- package/dist/cjs/nv-badge_2.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-base.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 +5 -3
- package/dist/cjs/nv-button.cjs.entry.js.map +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 +66 -6
- package/dist/cjs/nv-datagrid.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-datagridcolumn.cjs.entry.js +5 -1
- package/dist/cjs/nv-datagridcolumn.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-dialog.cjs.entry.js +16 -12
- package/dist/cjs/nv-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-dialogfooter_2.cjs.entry.js +2 -2
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +5 -5
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddate.cjs.entry.js +5 -5
- package/dist/cjs/nv-fielddaterange.cjs.entry.js +4 -4
- package/dist/cjs/nv-fielddropdown.cjs.entry.js +3 -9
- 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 +9 -64
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldnumber.cjs.entry.js +3 -3
- package/dist/cjs/nv-fieldpassword.cjs.entry.js +9 -7
- package/dist/cjs/nv-fieldpassword.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldradio.cjs.entry.js +3 -3
- package/dist/cjs/nv-fieldselect.cjs.entry.js +5 -5
- package/dist/cjs/nv-fieldselect.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldtext.cjs.entry.js +3 -3
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js +3 -3
- package/dist/cjs/nv-fieldtime.cjs.entry.js +9 -9
- package/dist/cjs/nv-icon.cjs.entry.js +1 -1
- package/dist/cjs/nv-iconbutton_2.cjs.entry.js +2 -2
- package/dist/cjs/nv-menu.cjs.entry.js +3 -3
- 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-popover.cjs.entry.js +11 -9
- 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-stack.cjs.entry.js +1 -1
- package/dist/cjs/nv-table.cjs.entry.js +2 -2
- package/dist/cjs/nv-toggle.cjs.entry.js +3 -3
- package/dist/cjs/nv-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-tooltip.cjs.entry.js +1 -1
- package/dist/collection/components/nv-badge/nv-badge.css +11 -0
- package/dist/collection/components/nv-badge/nv-badge.js +5 -4
- package/dist/collection/components/nv-badge/nv-badge.js.map +1 -1
- package/dist/collection/components/nv-base/nv-base.js +1 -1
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.css +11 -0
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.js +1 -1
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.js +1 -1
- package/dist/collection/components/nv-button/nv-button.js +5 -3
- package/dist/collection/components/nv-button/nv-button.js.map +1 -1
- package/dist/collection/components/nv-calendar/nv-calendar.js +1 -1
- package/dist/collection/components/nv-col/nv-col.js +1 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.docs.js +43 -2
- package/dist/collection/components/nv-datagrid/nv-datagrid.docs.js.map +1 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.js +91 -7
- package/dist/collection/components/nv-datagrid/nv-datagrid.js.map +1 -1
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.js +27 -1
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.js.map +1 -1
- package/dist/collection/components/nv-dialog/nv-dialog.js +24 -17
- package/dist/collection/components/nv-dialog/nv-dialog.js.map +1 -1
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.js +1 -1
- package/dist/collection/components/nv-dialogheader/nv-dialogheader.js +1 -1
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.css +11 -0
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js +4 -4
- package/dist/collection/components/nv-fielddate/nv-fielddate.js +5 -5
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.js +4 -4
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js +4 -13
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js.map +1 -1
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js +1 -1
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js +1 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js +9 -67
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js.map +1 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js +3 -3
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js +9 -7
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js.map +1 -1
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js +3 -3
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js +5 -5
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js.map +1 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js +3 -3
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js +3 -3
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.js +9 -9
- package/dist/collection/components/nv-icon/nv-icon.docs.js +1 -0
- package/dist/collection/components/nv-icon/nv-icon.docs.js.map +1 -1
- package/dist/collection/components/nv-icon/nv-icon.js +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 +6 -6
- 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-popover/nv-popover.js +11 -9
- package/dist/collection/components/nv-popover/nv-popover.js.map +1 -1
- package/dist/collection/components/nv-row/nv-row.js +1 -1
- package/dist/collection/components/nv-stack/nv-stack.js +1 -1
- package/dist/collection/components/nv-table/nv-table.js +2 -2
- package/dist/collection/components/nv-toggle/nv-toggle.css +11 -0
- package/dist/collection/components/nv-toggle/nv-toggle.js +2 -2
- package/dist/collection/components/nv-tooltip/nv-tooltip.js +1 -1
- package/dist/components/nv-alert.js +1 -1
- package/dist/components/nv-avatar.js +1 -1
- package/dist/components/nv-badge.js +1 -1
- package/dist/components/nv-base.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-calendar.js +1 -1
- package/dist/components/nv-col.js +1 -1
- package/dist/components/nv-datagrid.js +69 -7
- package/dist/components/nv-datagrid.js.map +1 -1
- package/dist/components/nv-datagridcolumn.js +7 -2
- package/dist/components/nv-datagridcolumn.js.map +1 -1
- package/dist/components/nv-dialog.js +22 -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 +12 -12
- package/dist/components/nv-fielddaterange.js +11 -11
- package/dist/components/nv-fielddropdown.js +9 -17
- 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 +18 -75
- package/dist/components/nv-fieldmultiselect.js.map +1 -1
- package/dist/components/nv-fieldnumber.js +6 -6
- package/dist/components/nv-fieldpassword.js +12 -10
- package/dist/components/nv-fieldpassword.js.map +1 -1
- package/dist/components/nv-fieldradio.js +3 -3
- package/dist/components/nv-fieldselect.js +8 -8
- package/dist/components/nv-fieldselect.js.map +1 -1
- package/dist/components/nv-fieldtext.js +4 -4
- package/dist/components/nv-fieldtextarea.js +3 -3
- package/dist/components/nv-fieldtime.js +13 -13
- 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 +6 -6
- 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 +1 -1
- package/dist/components/nv-stack.js +1 -1
- package/dist/components/nv-table.js +2 -2
- package/dist/components/nv-toggle.js +3 -3
- package/dist/components/nv-toggle.js.map +1 -1
- package/dist/components/nv-tooltip.js +1 -1
- package/dist/components/{p-e66d6274.js → p-18bc0291.js} +3 -3
- package/dist/components/{p-e66d6274.js.map → p-18bc0291.js.map} +1 -1
- package/dist/components/{p-b2d2fd35.js → p-56ef8131.js} +3 -3
- package/dist/components/{p-b2d2fd35.js.map → p-56ef8131.js.map} +1 -1
- package/dist/components/p-5a5f11c2.js +177 -0
- package/dist/components/p-5a5f11c2.js.map +1 -0
- package/dist/components/{p-62f6da8a.js → p-664c5a14.js} +12 -10
- package/dist/components/p-664c5a14.js.map +1 -0
- package/dist/components/{p-6726f512.js → p-7b89fb48.js} +2 -2
- package/dist/components/{p-6726f512.js.map → p-7b89fb48.js.map} +1 -1
- package/dist/components/{p-0631d152.js → p-8674c7af.js} +7 -5
- package/dist/components/p-8674c7af.js.map +1 -0
- package/dist/components/{p-293e1a5c.js → p-8c5a861b.js} +3 -3
- package/dist/components/{p-293e1a5c.js.map → p-8c5a861b.js.map} +1 -1
- package/dist/components/{p-23b6b33b.js → p-91b58443.js} +2 -2
- package/dist/components/{p-23b6b33b.js.map → p-91b58443.js.map} +1 -1
- package/dist/components/{p-d552352b.js → p-9d6aaf76.js} +6 -6
- package/dist/components/p-9d6aaf76.js.map +1 -0
- package/dist/components/{p-3a74719c.js → p-a9e1bf70.js} +4 -4
- package/dist/components/{p-3a74719c.js.map → p-a9e1bf70.js.map} +1 -1
- package/dist/components/{p-016dbae8.js → p-a9f162a8.js} +6 -6
- package/dist/components/{p-016dbae8.js.map → p-a9f162a8.js.map} +1 -1
- package/dist/components/{p-3a990da7.js → p-b4768da6.js} +5 -5
- package/dist/components/{p-3a990da7.js.map → p-b4768da6.js.map} +1 -1
- package/dist/components/{p-543082ff.js → p-d88ced51.js} +2 -2
- package/dist/components/{p-543082ff.js.map → p-d88ced51.js.map} +1 -1
- package/dist/components/{p-e7f21fe7.js → p-dcabc6fa.js} +3 -3
- package/dist/components/{p-e7f21fe7.js.map → p-dcabc6fa.js.map} +1 -1
- package/dist/components/{p-e40363fd.js → p-f469df15.js} +2 -2
- package/dist/components/{p-e40363fd.js.map → p-f469df15.js.map} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/native.js +1 -1
- package/dist/esm/nv-badge_2.entry.js +6 -5
- package/dist/esm/nv-badge_2.entry.js.map +1 -1
- package/dist/esm/nv-base.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 +5 -3
- package/dist/esm/nv-button.entry.js.map +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 +66 -6
- package/dist/esm/nv-datagrid.entry.js.map +1 -1
- package/dist/esm/nv-datagridcolumn.entry.js +5 -1
- package/dist/esm/nv-datagridcolumn.entry.js.map +1 -1
- package/dist/esm/nv-dialog.entry.js +16 -12
- package/dist/esm/nv-dialog.entry.js.map +1 -1
- package/dist/esm/nv-dialogfooter_2.entry.js +2 -2
- package/dist/esm/nv-fieldcheckbox.entry.js +5 -5
- package/dist/esm/nv-fieldcheckbox.entry.js.map +1 -1
- package/dist/esm/nv-fielddate.entry.js +5 -5
- package/dist/esm/nv-fielddaterange.entry.js +4 -4
- package/dist/esm/nv-fielddropdown.entry.js +3 -9
- 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 +9 -64
- package/dist/esm/nv-fieldmultiselect.entry.js.map +1 -1
- package/dist/esm/nv-fieldnumber.entry.js +3 -3
- package/dist/esm/nv-fieldpassword.entry.js +9 -7
- package/dist/esm/nv-fieldpassword.entry.js.map +1 -1
- package/dist/esm/nv-fieldradio.entry.js +3 -3
- package/dist/esm/nv-fieldselect.entry.js +5 -5
- package/dist/esm/nv-fieldselect.entry.js.map +1 -1
- package/dist/esm/nv-fieldtext.entry.js +3 -3
- package/dist/esm/nv-fieldtextarea.entry.js +3 -3
- package/dist/esm/nv-fieldtime.entry.js +9 -9
- package/dist/esm/nv-icon.entry.js +1 -1
- package/dist/esm/nv-iconbutton_2.entry.js +2 -2
- package/dist/esm/nv-menu.entry.js +3 -3
- package/dist/esm/nv-menu.entry.js.map +1 -1
- package/dist/esm/nv-menuitem.entry.js +1 -1
- package/dist/esm/nv-popover.entry.js +11 -9
- package/dist/esm/nv-popover.entry.js.map +1 -1
- package/dist/esm/nv-row.entry.js +1 -1
- package/dist/esm/nv-stack.entry.js +1 -1
- package/dist/esm/nv-table.entry.js +2 -2
- package/dist/esm/nv-toggle.entry.js +3 -3
- package/dist/esm/nv-toggle.entry.js.map +1 -1
- package/dist/esm/nv-tooltip.entry.js +1 -1
- package/dist/native/native.css +1 -1
- package/dist/native/native.esm.js +1 -1
- package/dist/native/native.esm.js.map +1 -1
- package/dist/native/{p-ddb4fcc3.entry.js → p-000ef9c9.entry.js} +2 -2
- package/dist/native/p-000ef9c9.entry.js.map +1 -0
- package/dist/native/{p-4d2adf8c.entry.js → p-002e7bf1.entry.js} +2 -2
- package/dist/native/{p-3a47035f.entry.js → p-115ad66c.entry.js} +2 -2
- package/dist/native/{p-2b584e35.entry.js → p-1e5453be.entry.js} +2 -2
- package/dist/native/p-2ed9934a.entry.js +2 -0
- package/dist/native/{p-5e04b50f.entry.js → p-3df6febe.entry.js} +2 -2
- package/dist/native/{p-794b7820.entry.js → p-43cc98dc.entry.js} +2 -2
- package/dist/native/p-4977fcd0.entry.js +2 -0
- package/dist/native/{p-16b38dc2.entry.js → p-4c859a14.entry.js} +2 -2
- package/dist/native/{p-9fe6a9b7.entry.js → p-4fe5ebe9.entry.js} +2 -2
- package/dist/native/{p-dcfef507.entry.js → p-50dcce07.entry.js} +2 -2
- package/dist/native/{p-657a0b8a.entry.js → p-60d6ffa3.entry.js} +2 -2
- package/dist/native/p-60d6ffa3.entry.js.map +1 -0
- package/dist/native/{p-569e9663.entry.js → p-626a1372.entry.js} +2 -2
- package/dist/native/p-6603d939.entry.js +2 -0
- package/dist/native/p-6603d939.entry.js.map +1 -0
- package/dist/native/{p-a6834c17.entry.js → p-74f7f404.entry.js} +2 -2
- package/dist/native/{p-a6834c17.entry.js.map → p-74f7f404.entry.js.map} +1 -1
- package/dist/native/p-75f4bfe8.entry.js +2 -0
- package/dist/native/{p-ca1eff59.entry.js.map → p-75f4bfe8.entry.js.map} +1 -1
- package/dist/native/{p-c84eb11f.entry.js → p-76cd466a.entry.js} +2 -2
- package/dist/native/p-76cd466a.entry.js.map +1 -0
- package/dist/native/p-7e1fa44c.entry.js +2 -0
- package/dist/native/{p-4b6d3739.entry.js.map → p-7e1fa44c.entry.js.map} +1 -1
- package/dist/native/p-8946883b.entry.js +2 -0
- package/dist/native/p-8946883b.entry.js.map +1 -0
- package/dist/native/{p-552ca13e.entry.js → p-8f7c1bb8.entry.js} +2 -2
- package/dist/native/{p-ede0c391.entry.js → p-98030346.entry.js} +2 -2
- package/dist/native/p-98030346.entry.js.map +1 -0
- package/dist/native/{p-ac72abfc.entry.js → p-aa957898.entry.js} +2 -2
- package/dist/native/{p-4c88e8be.entry.js → p-aeac63ea.entry.js} +2 -2
- package/dist/native/{p-4c88e8be.entry.js.map → p-aeac63ea.entry.js.map} +1 -1
- package/dist/native/{p-39fd54e3.entry.js → p-b11fdaed.entry.js} +2 -2
- package/dist/native/{p-a3ea7b59.entry.js → p-b6164ebc.entry.js} +2 -2
- package/dist/native/p-b8b58064.entry.js +2 -0
- package/dist/native/p-b8b58064.entry.js.map +1 -0
- package/dist/native/{p-ffcf8271.entry.js → p-be5f62e5.entry.js} +2 -2
- package/dist/native/p-be5f62e5.entry.js.map +1 -0
- package/dist/native/p-c6fe73a9.entry.js +2 -0
- package/dist/native/p-c6fe73a9.entry.js.map +1 -0
- package/dist/native/p-ce64d562.entry.js +2 -0
- package/dist/native/p-d352a8b3.entry.js +2 -0
- package/dist/native/p-d352a8b3.entry.js.map +1 -0
- package/dist/native/{p-d987271c.entry.js → p-d4e48d08.entry.js} +2 -2
- package/dist/native/p-d5158e27.entry.js +2 -0
- package/dist/native/p-d5158e27.entry.js.map +1 -0
- package/dist/native/{p-4eb132d3.entry.js → p-e200185a.entry.js} +2 -2
- package/dist/native/p-e200185a.entry.js.map +1 -0
- package/dist/native/{p-870d5a5c.entry.js → p-e4f84faa.entry.js} +2 -2
- package/dist/types/components/nv-badge/nv-badge.d.ts +1 -1
- package/dist/types/components/nv-datagrid/nv-datagrid.d.ts +7 -0
- package/dist/types/components/nv-datagridcolumn/nv-datagridcolumn.d.ts +4 -0
- package/dist/types/components/nv-dialog/nv-dialog.d.ts +4 -3
- package/dist/types/components/nv-fielddropdown/nv-fielddropdown.d.ts +1 -3
- package/dist/types/components/nv-fieldmultiselect/nv-fieldmultiselect.d.ts +2 -11
- package/dist/types/components/nv-fieldpassword/nv-fieldpassword.d.ts +2 -0
- package/dist/types/components/nv-menu/nv-menu.d.ts +4 -4
- package/dist/types/components.d.ts +43 -8
- package/dist/types/nova-docs.d.ts +11 -0
- package/dist/vscode-data.json +9 -1
- package/hydrate/index.js +207 -192
- package/hydrate/index.mjs +207 -192
- package/package.json +11 -10
- package/dist/blazor-docs.json +0 -18738
- package/dist/components/p-0631d152.js.map +0 -1
- package/dist/components/p-62f6da8a.js.map +0 -1
- package/dist/components/p-cd083aba.js +0 -176
- package/dist/components/p-cd083aba.js.map +0 -1
- package/dist/components/p-d552352b.js.map +0 -1
- package/dist/docs.d.ts +0 -443
- package/dist/docs.json +0 -18538
- package/dist/native/p-1d5b6c6d.entry.js +0 -2
- package/dist/native/p-4b6d3739.entry.js +0 -2
- package/dist/native/p-4c96b614.entry.js +0 -2
- package/dist/native/p-4eb132d3.entry.js.map +0 -1
- package/dist/native/p-657a0b8a.entry.js.map +0 -1
- package/dist/native/p-8ae27c0a.entry.js +0 -2
- package/dist/native/p-8ae27c0a.entry.js.map +0 -1
- package/dist/native/p-adf0f628.entry.js +0 -2
- package/dist/native/p-adf0f628.entry.js.map +0 -1
- package/dist/native/p-c84eb11f.entry.js.map +0 -1
- package/dist/native/p-ca1eff59.entry.js +0 -2
- package/dist/native/p-cce90f27.entry.js +0 -2
- package/dist/native/p-cce90f27.entry.js.map +0 -1
- package/dist/native/p-d3d664c7.entry.js +0 -2
- package/dist/native/p-d3d664c7.entry.js.map +0 -1
- package/dist/native/p-d7b5ab6e.entry.js +0 -2
- package/dist/native/p-d7b5ab6e.entry.js.map +0 -1
- package/dist/native/p-ddb4fcc3.entry.js.map +0 -1
- package/dist/native/p-ed595c96.entry.js +0 -2
- package/dist/native/p-ed595c96.entry.js.map +0 -1
- package/dist/native/p-ede0c391.entry.js.map +0 -1
- package/dist/native/p-efb52057.entry.js +0 -2
- package/dist/native/p-ffcf8271.entry.js.map +0 -1
- /package/dist/native/{p-4d2adf8c.entry.js.map → p-002e7bf1.entry.js.map} +0 -0
- /package/dist/native/{p-3a47035f.entry.js.map → p-115ad66c.entry.js.map} +0 -0
- /package/dist/native/{p-2b584e35.entry.js.map → p-1e5453be.entry.js.map} +0 -0
- /package/dist/native/{p-efb52057.entry.js.map → p-2ed9934a.entry.js.map} +0 -0
- /package/dist/native/{p-5e04b50f.entry.js.map → p-3df6febe.entry.js.map} +0 -0
- /package/dist/native/{p-794b7820.entry.js.map → p-43cc98dc.entry.js.map} +0 -0
- /package/dist/native/{p-4c96b614.entry.js.map → p-4977fcd0.entry.js.map} +0 -0
- /package/dist/native/{p-16b38dc2.entry.js.map → p-4c859a14.entry.js.map} +0 -0
- /package/dist/native/{p-9fe6a9b7.entry.js.map → p-4fe5ebe9.entry.js.map} +0 -0
- /package/dist/native/{p-dcfef507.entry.js.map → p-50dcce07.entry.js.map} +0 -0
- /package/dist/native/{p-569e9663.entry.js.map → p-626a1372.entry.js.map} +0 -0
- /package/dist/native/{p-552ca13e.entry.js.map → p-8f7c1bb8.entry.js.map} +0 -0
- /package/dist/native/{p-ac72abfc.entry.js.map → p-aa957898.entry.js.map} +0 -0
- /package/dist/native/{p-39fd54e3.entry.js.map → p-b11fdaed.entry.js.map} +0 -0
- /package/dist/native/{p-a3ea7b59.entry.js.map → p-b6164ebc.entry.js.map} +0 -0
- /package/dist/native/{p-1d5b6c6d.entry.js.map → p-ce64d562.entry.js.map} +0 -0
- /package/dist/native/{p-d987271c.entry.js.map → p-d4e48d08.entry.js.map} +0 -0
- /package/dist/native/{p-870d5a5c.entry.js.map → p-e4f84faa.entry.js.map} +0 -0
package/hydrate/index.js
CHANGED
|
@@ -5278,12 +5278,12 @@ class NvAvatar {
|
|
|
5278
5278
|
}; }
|
|
5279
5279
|
}
|
|
5280
5280
|
|
|
5281
|
-
const nvBadgeCss = "nv-badge{padding:var(--badge-padding-y) var(--badge-padding-x);display:inline-flex !important;vertical-align:middle;align-items:center;border-radius:var(--radius-rounded-full);border-style:solid;border-width:0.5px;height:fit-content;width:fit-content}nv-badge.with-gap{padding:var(--badge-padding-y) var(--badge-padding-x);display:inline-flex !important;vertical-align:middle;align-items:center;border-radius:var(--radius-rounded-full);border-style:solid;border-width:0.5px;height:fit-content;width:fit-content;gap:var(--badge-gap-x)}nv-badge:not(.with-gap){padding:var(--badge-padding-y) var(--badge-padding-x);display:inline-flex !important;vertical-align:middle;align-items:center;border-radius:var(--radius-rounded-full);border-style:solid;border-width:0.5px;height:fit-content;width:fit-content}nv-badge.badge-1{color:var(--color-rainbow-1-text);background-color:var(--color-rainbow-1-background);border-color:var(--color-rainbow-1-border)}nv-badge.badge-1 .close:focus,nv-badge.badge-1 .close:focus-within{outline:none}nv-badge.badge-1 .close:focus-visible,nv-badge.badge-1 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-1-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-1 nv-icon{color:var(--color-rainbow-1-icon)}nv-badge.badge-2{color:var(--color-rainbow-2-text);background-color:var(--color-rainbow-2-background);border-color:var(--color-rainbow-2-border)}nv-badge.badge-2 .close:focus,nv-badge.badge-2 .close:focus-within{outline:none}nv-badge.badge-2 .close:focus-visible,nv-badge.badge-2 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-2-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-2 nv-icon{color:var(--color-rainbow-2-icon)}nv-badge.badge-3{color:var(--color-rainbow-3-text);background-color:var(--color-rainbow-3-background);border-color:var(--color-rainbow-3-border)}nv-badge.badge-3 .close:focus,nv-badge.badge-3 .close:focus-within{outline:none}nv-badge.badge-3 .close:focus-visible,nv-badge.badge-3 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-3-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-3 nv-icon{color:var(--color-rainbow-3-icon)}nv-badge.badge-4{color:var(--color-rainbow-4-text);background-color:var(--color-rainbow-4-background);border-color:var(--color-rainbow-4-border)}nv-badge.badge-4 .close:focus,nv-badge.badge-4 .close:focus-within{outline:none}nv-badge.badge-4 .close:focus-visible,nv-badge.badge-4 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-4-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-4 nv-icon{color:var(--color-rainbow-4-icon)}nv-badge.badge-5{color:var(--color-rainbow-5-text);background-color:var(--color-rainbow-5-background);border-color:var(--color-rainbow-5-border)}nv-badge.badge-5 .close:focus,nv-badge.badge-5 .close:focus-within{outline:none}nv-badge.badge-5 .close:focus-visible,nv-badge.badge-5 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-5-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-5 nv-icon{color:var(--color-rainbow-5-icon)}nv-badge.badge-6{color:var(--color-rainbow-6-text);background-color:var(--color-rainbow-6-background);border-color:var(--color-rainbow-6-border)}nv-badge.badge-6 .close:focus,nv-badge.badge-6 .close:focus-within{outline:none}nv-badge.badge-6 .close:focus-visible,nv-badge.badge-6 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-6-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-6 nv-icon{color:var(--color-rainbow-6-icon)}nv-badge.badge-7{color:var(--color-rainbow-7-text);background-color:var(--color-rainbow-7-background);border-color:var(--color-rainbow-7-border)}nv-badge.badge-7 .close:focus,nv-badge.badge-7 .close:focus-within{outline:none}nv-badge.badge-7 .close:focus-visible,nv-badge.badge-7 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-7-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-7 nv-icon{color:var(--color-rainbow-7-icon)}nv-badge.badge-8{color:var(--color-rainbow-8-text);background-color:var(--color-rainbow-8-background);border-color:var(--color-rainbow-8-border)}nv-badge.badge-8 .close:focus,nv-badge.badge-8 .close:focus-within{outline:none}nv-badge.badge-8 .close:focus-visible,nv-badge.badge-8 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-8-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-8 nv-icon{color:var(--color-rainbow-8-icon)}nv-badge.badge-9{color:var(--color-rainbow-9-text);background-color:var(--color-rainbow-9-background);border-color:var(--color-rainbow-9-border)}nv-badge.badge-9 .close:focus,nv-badge.badge-9 .close:focus-within{outline:none}nv-badge.badge-9 .close:focus-visible,nv-badge.badge-9 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-9-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-9 nv-icon{color:var(--color-rainbow-9-icon)}nv-badge.badge-10{color:var(--color-rainbow-10-text);background-color:var(--color-rainbow-10-background);border-color:var(--color-rainbow-10-border)}nv-badge.badge-10 .close:focus,nv-badge.badge-10 .close:focus-within{outline:none}nv-badge.badge-10 .close:focus-visible,nv-badge.badge-10 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-10-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-10 nv-icon{color:var(--color-rainbow-10-icon)}nv-badge span{font-size:var(--font-size-xs);line-height:var(--line-height-xs) !important}nv-badge nv-icon>svg.icon-xs{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-badge nv-icon>svg.icon-sm{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-badge nv-icon>svg.icon-md{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-badge nv-icon>svg.icon-lg{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-badge nv-icon>svg.icon-xl{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-badge .close{padding:0;line-height:0;border:none;background:none;cursor:pointer;color:inherit;display:inline-flex;align-items:center;aspect-ratio:1/1;border-radius:var(--radius-rounded-full)}";
|
|
5281
|
+
const nvBadgeCss = "nv-badge{padding:var(--badge-padding-y) var(--badge-padding-x);display:inline-flex !important;vertical-align:middle;align-items:center;border-radius:var(--radius-rounded-full);border-style:solid;border-width:0.5px;height:fit-content;width:fit-content}nv-badge.with-gap{padding:var(--badge-padding-y) var(--badge-padding-x);display:inline-flex !important;vertical-align:middle;align-items:center;border-radius:var(--radius-rounded-full);border-style:solid;border-width:0.5px;height:fit-content;width:fit-content;gap:var(--badge-gap-x)}nv-badge.visually-hidden{position:absolute;padding:0;border:0;overflow:hidden;white-space:nowrap;width:1px;height:1px;margin:-1px;clip:rect(0, 0, 0, 0)}nv-badge:not(.with-gap){padding:var(--badge-padding-y) var(--badge-padding-x);display:inline-flex !important;vertical-align:middle;align-items:center;border-radius:var(--radius-rounded-full);border-style:solid;border-width:0.5px;height:fit-content;width:fit-content}nv-badge.badge-1{color:var(--color-rainbow-1-text);background-color:var(--color-rainbow-1-background);border-color:var(--color-rainbow-1-border)}nv-badge.badge-1 .close:focus,nv-badge.badge-1 .close:focus-within{outline:none}nv-badge.badge-1 .close:focus-visible,nv-badge.badge-1 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-1-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-1 nv-icon{color:var(--color-rainbow-1-icon)}nv-badge.badge-2{color:var(--color-rainbow-2-text);background-color:var(--color-rainbow-2-background);border-color:var(--color-rainbow-2-border)}nv-badge.badge-2 .close:focus,nv-badge.badge-2 .close:focus-within{outline:none}nv-badge.badge-2 .close:focus-visible,nv-badge.badge-2 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-2-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-2 nv-icon{color:var(--color-rainbow-2-icon)}nv-badge.badge-3{color:var(--color-rainbow-3-text);background-color:var(--color-rainbow-3-background);border-color:var(--color-rainbow-3-border)}nv-badge.badge-3 .close:focus,nv-badge.badge-3 .close:focus-within{outline:none}nv-badge.badge-3 .close:focus-visible,nv-badge.badge-3 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-3-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-3 nv-icon{color:var(--color-rainbow-3-icon)}nv-badge.badge-4{color:var(--color-rainbow-4-text);background-color:var(--color-rainbow-4-background);border-color:var(--color-rainbow-4-border)}nv-badge.badge-4 .close:focus,nv-badge.badge-4 .close:focus-within{outline:none}nv-badge.badge-4 .close:focus-visible,nv-badge.badge-4 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-4-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-4 nv-icon{color:var(--color-rainbow-4-icon)}nv-badge.badge-5{color:var(--color-rainbow-5-text);background-color:var(--color-rainbow-5-background);border-color:var(--color-rainbow-5-border)}nv-badge.badge-5 .close:focus,nv-badge.badge-5 .close:focus-within{outline:none}nv-badge.badge-5 .close:focus-visible,nv-badge.badge-5 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-5-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-5 nv-icon{color:var(--color-rainbow-5-icon)}nv-badge.badge-6{color:var(--color-rainbow-6-text);background-color:var(--color-rainbow-6-background);border-color:var(--color-rainbow-6-border)}nv-badge.badge-6 .close:focus,nv-badge.badge-6 .close:focus-within{outline:none}nv-badge.badge-6 .close:focus-visible,nv-badge.badge-6 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-6-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-6 nv-icon{color:var(--color-rainbow-6-icon)}nv-badge.badge-7{color:var(--color-rainbow-7-text);background-color:var(--color-rainbow-7-background);border-color:var(--color-rainbow-7-border)}nv-badge.badge-7 .close:focus,nv-badge.badge-7 .close:focus-within{outline:none}nv-badge.badge-7 .close:focus-visible,nv-badge.badge-7 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-7-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-7 nv-icon{color:var(--color-rainbow-7-icon)}nv-badge.badge-8{color:var(--color-rainbow-8-text);background-color:var(--color-rainbow-8-background);border-color:var(--color-rainbow-8-border)}nv-badge.badge-8 .close:focus,nv-badge.badge-8 .close:focus-within{outline:none}nv-badge.badge-8 .close:focus-visible,nv-badge.badge-8 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-8-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-8 nv-icon{color:var(--color-rainbow-8-icon)}nv-badge.badge-9{color:var(--color-rainbow-9-text);background-color:var(--color-rainbow-9-background);border-color:var(--color-rainbow-9-border)}nv-badge.badge-9 .close:focus,nv-badge.badge-9 .close:focus-within{outline:none}nv-badge.badge-9 .close:focus-visible,nv-badge.badge-9 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-9-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-9 nv-icon{color:var(--color-rainbow-9-icon)}nv-badge.badge-10{color:var(--color-rainbow-10-text);background-color:var(--color-rainbow-10-background);border-color:var(--color-rainbow-10-border)}nv-badge.badge-10 .close:focus,nv-badge.badge-10 .close:focus-within{outline:none}nv-badge.badge-10 .close:focus-visible,nv-badge.badge-10 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-10-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-10 nv-icon{color:var(--color-rainbow-10-icon)}nv-badge span{font-size:var(--font-size-xs);line-height:var(--line-height-xs) !important}nv-badge nv-icon>svg.icon-xs{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-badge nv-icon>svg.icon-sm{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-badge nv-icon>svg.icon-md{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-badge nv-icon>svg.icon-lg{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-badge nv-icon>svg.icon-xl{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-badge .close{padding:0;line-height:0;border:none;background:none;cursor:pointer;color:inherit;display:inline-flex;align-items:center;aspect-ratio:1/1;border-radius:var(--radius-rounded-full)}";
|
|
5282
5282
|
var NvBadgeStyle0 = nvBadgeCss;
|
|
5283
5283
|
|
|
5284
5284
|
/**
|
|
5285
5285
|
* @slot leading-icon - Icon before the label.
|
|
5286
|
-
* @slot default -
|
|
5286
|
+
* @slot default - for custom content, for pure text use label instead.
|
|
5287
5287
|
*/
|
|
5288
5288
|
class NvBadge {
|
|
5289
5289
|
constructor(hostRef) {
|
|
@@ -5321,7 +5321,6 @@ class NvBadge {
|
|
|
5321
5321
|
* Controls the visibility of the badge. Will animate with fade and collapse.
|
|
5322
5322
|
*/
|
|
5323
5323
|
this.hidden = false; // eslint-disable-line @stencil-community/reserved-member-names
|
|
5324
|
-
this._isHidden = this.hidden;
|
|
5325
5324
|
/**
|
|
5326
5325
|
* When true, the alert does not automatically close upon dismissing.
|
|
5327
5326
|
* Useful for externally controlled component behavior.
|
|
@@ -5390,6 +5389,7 @@ class NvBadge {
|
|
|
5390
5389
|
this.leadIcon = this.icon;
|
|
5391
5390
|
}
|
|
5392
5391
|
if (this.hidden) {
|
|
5392
|
+
this._isHidden = true;
|
|
5393
5393
|
const { setCollapsed } = useCollapse(this.ref);
|
|
5394
5394
|
const { setFadeOut } = useFade(this.ref);
|
|
5395
5395
|
setCollapsed();
|
|
@@ -5400,10 +5400,11 @@ class NvBadge {
|
|
|
5400
5400
|
/****************************************************************************/
|
|
5401
5401
|
//#region RENDER
|
|
5402
5402
|
render() {
|
|
5403
|
-
return (hAsync(Host, { key: '
|
|
5403
|
+
return (hAsync(Host, { key: '8d97eed4a84f2f913e4f8cd64d08c806d9724f33', class: clsx(`badge-${this.color}`, {
|
|
5404
5404
|
'has-close': this.dismissible,
|
|
5405
|
+
'with-gap': this.dismissible || this.label,
|
|
5405
5406
|
'visually-hidden': this._isHidden,
|
|
5406
|
-
}) }, hAsync("slot", { key: '
|
|
5407
|
+
}) }, hAsync("slot", { key: '34c2c387727e6b68d37fe2b2ac68c82799356e3d', name: "leading-icon" }, this.leadIcon && hAsync("nv-icon", { key: '0c23dd58e48fce39d7935549c6289f87f1fb66af', name: this.leadIcon, size: "sm" })), hAsync("slot", { key: '7485f570aa3cf519b030bedfa8ccf6a6d37d2c1b' }, this.label && hAsync("span", { key: 'eb7afa0eb52582c6d782d2383dfe2eeb41a9649b' }, this.label)), this.dismissible && (hAsync("button", { key: 'bc07eed3e1328a8009cb2c8add026a7f8a5335da', onClick: this.handleClose, class: "close", type: "button" }, hAsync("nv-icon", { key: 'ab0b2c6224f4b8b147e8158856acbf1ab987b392', name: "x", size: "sm" })))));
|
|
5407
5408
|
}
|
|
5408
5409
|
get ref() { return getElement(this); }
|
|
5409
5410
|
static get watchers() { return {
|
|
@@ -5497,7 +5498,7 @@ class NvBaseComponent {
|
|
|
5497
5498
|
/****************************************************************************/
|
|
5498
5499
|
//#region RENDER
|
|
5499
5500
|
render() {
|
|
5500
|
-
return (hAsync(Host, { key: '
|
|
5501
|
+
return (hAsync(Host, { key: 'ba3d284241a61fa30bd434f563b7e4962ea3f238', style: { display: 'block' } }, hAsync("slot", { key: '44a0f1bc5267cf7e7bd0c1d258e8d9b8020a59f3' })));
|
|
5501
5502
|
}
|
|
5502
5503
|
get el() { return getElement(this); }
|
|
5503
5504
|
static get cmpMeta() { return {
|
|
@@ -5510,7 +5511,7 @@ class NvBaseComponent {
|
|
|
5510
5511
|
}; }
|
|
5511
5512
|
}
|
|
5512
5513
|
|
|
5513
|
-
const nvBreadcrumbCss = "nv-breadcrumb{display:flex;align-items:center;color:var(--components-breadcrumb-text);font-size:var(--font-size-sm);font-style:normal;font-weight:500;line-height:var(--line-height-sm)}nv-breadcrumb ul{display:flex;flex-direction:column;gap:var(--spacing-1-5);padding:var(--spacing-1)}nv-breadcrumb ul a,nv-breadcrumb ul button{display:inline-flex;align-self:center;color:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;text-decoration:none}nv-breadcrumb ul a:focus,nv-breadcrumb ul a:focus-within,nv-breadcrumb ul button:focus,nv-breadcrumb ul button:focus-within{outline:none}nv-breadcrumb ul a:focus-visible,nv-breadcrumb ul a:has(:focus-visible),nv-breadcrumb ul button:focus-visible,nv-breadcrumb ul button:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 0.5) solid var(--components-breadcrumb-text-hover);outline-offset:calc(var(--focus-outline-offset) * 0.3)}nv-breadcrumb ul a:hover,nv-breadcrumb ul button:hover{text-decoration:underline;color:var(--components-breadcrumb-text-hover)}nv-breadcrumb>a,nv-breadcrumb>button{display:inline-flex;align-self:center;color:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;text-decoration:none}nv-breadcrumb>a:focus,nv-breadcrumb>a:focus-within,nv-breadcrumb>button:focus,nv-breadcrumb>button:focus-within{outline:none}nv-breadcrumb>a:focus-visible,nv-breadcrumb>a:has(:focus-visible),nv-breadcrumb>button:focus-visible,nv-breadcrumb>button:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 0.5) solid var(--components-breadcrumb-text-hover);outline-offset:calc(var(--focus-outline-offset) * 0.3)}nv-breadcrumb>a:hover,nv-breadcrumb>button:hover{text-decoration:underline;color:var(--components-breadcrumb-text-hover)}nv-breadcrumb span[data-scope=separator]{display:inline-flex;padding-left:var(--breadcrumb-padding-y)}";
|
|
5514
|
+
const nvBreadcrumbCss = "nv-breadcrumb{display:flex;align-items:center;color:var(--components-breadcrumb-text);font-size:var(--font-size-sm);font-style:normal;font-weight:500;line-height:var(--line-height-sm)}nv-breadcrumb.visually-hidden{position:absolute;padding:0;border:0;overflow:hidden;white-space:nowrap;width:1px;height:1px;margin:-1px;clip:rect(0, 0, 0, 0)}nv-breadcrumb ul{display:flex;flex-direction:column;gap:var(--spacing-1-5);padding:var(--spacing-1)}nv-breadcrumb ul a,nv-breadcrumb ul button{display:inline-flex;align-self:center;color:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;text-decoration:none}nv-breadcrumb ul a:focus,nv-breadcrumb ul a:focus-within,nv-breadcrumb ul button:focus,nv-breadcrumb ul button:focus-within{outline:none}nv-breadcrumb ul a:focus-visible,nv-breadcrumb ul a:has(:focus-visible),nv-breadcrumb ul button:focus-visible,nv-breadcrumb ul button:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 0.5) solid var(--components-breadcrumb-text-hover);outline-offset:calc(var(--focus-outline-offset) * 0.3)}nv-breadcrumb ul a:hover,nv-breadcrumb ul button:hover{text-decoration:underline;color:var(--components-breadcrumb-text-hover)}nv-breadcrumb>a,nv-breadcrumb>button{display:inline-flex;align-self:center;color:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;text-decoration:none}nv-breadcrumb>a:focus,nv-breadcrumb>a:focus-within,nv-breadcrumb>button:focus,nv-breadcrumb>button:focus-within{outline:none}nv-breadcrumb>a:focus-visible,nv-breadcrumb>a:has(:focus-visible),nv-breadcrumb>button:focus-visible,nv-breadcrumb>button:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 0.5) solid var(--components-breadcrumb-text-hover);outline-offset:calc(var(--focus-outline-offset) * 0.3)}nv-breadcrumb>a:hover,nv-breadcrumb>button:hover{text-decoration:underline;color:var(--components-breadcrumb-text-hover)}nv-breadcrumb span[data-scope=separator]{display:inline-flex;padding-left:var(--breadcrumb-padding-y)}";
|
|
5514
5515
|
var NvBreadcrumbStyle0 = nvBreadcrumbCss;
|
|
5515
5516
|
|
|
5516
5517
|
/**
|
|
@@ -5542,7 +5543,7 @@ class NvBreadcrumb {
|
|
|
5542
5543
|
/****************************************************************************/
|
|
5543
5544
|
//#region RENDER
|
|
5544
5545
|
render() {
|
|
5545
|
-
return (hAsync(Host, { key: '
|
|
5546
|
+
return (hAsync(Host, { key: '8ffa46d8714261924aaab55940c7dc6b36f2a9f9', role: "listitem", "aria-current": this.current ? 'location' : undefined, class: clsx({ 'visually-hidden': this.current }) }, this.type === 'collapsed' ? (hAsync("button", { ref: el => (this.popoverTrigger = el) }, "...")) : (hAsync("slot", null)), this.tooltip && (hAsync("nv-tooltip", { key: 'a2beda9f4b9a5eb71962a1cc060f5467fd2b0134', message: this.tooltip, triggerElement: this.popoverTrigger, placement: "top" })), this.type === 'collapsed' && (hAsync("nv-popover", { key: 'd4a837d21c07697d6ef01506169474bd5cf5a304', triggerMode: "click", groupName: "breadcrumbs", triggerElement: this.popoverTrigger }, hAsync("ul", { key: 'bf089278cfe03ed3ae4beeac57ad67dc029b91cf', slot: "content" }, hAsync("slot", { key: '23f21367fc803a5f176947720e55dba4201f64c4' })))), hAsync("span", { key: 'e1a9414f3be1fd6ef3450f3e7b99d7ff091ec2f0', "data-scope": "separator" }, "/")));
|
|
5546
5547
|
}
|
|
5547
5548
|
get el() { return getElement(this); }
|
|
5548
5549
|
static get style() { return NvBreadcrumbStyle0; }
|
|
@@ -5572,7 +5573,7 @@ class NvBreadcrumbs {
|
|
|
5572
5573
|
}
|
|
5573
5574
|
//#region RENDER
|
|
5574
5575
|
render() {
|
|
5575
|
-
return (hAsync(Host, { key: '
|
|
5576
|
+
return (hAsync(Host, { key: '5ab0f09cb86a92464ffcd06d8129543539bdcddf', role: "navigation", "aria-label": "breadcrumbs" }, hAsync("ol", { key: 'a7624a2400d9a91ec477694bbd3600960e198981' }, hAsync("slot", { key: '7c4102ceebe110377bf212e0695bdec6b455ea74' }))));
|
|
5576
5577
|
}
|
|
5577
5578
|
static get style() { return NvBreadcrumbsStyle0; }
|
|
5578
5579
|
static get cmpMeta() { return {
|
|
@@ -5657,14 +5658,16 @@ class NvButton {
|
|
|
5657
5658
|
* @param {Event} event - The click event.
|
|
5658
5659
|
*/
|
|
5659
5660
|
this.handleButtonClick = (event) => {
|
|
5661
|
+
var _a;
|
|
5660
5662
|
if (this.loading || this.disabled) {
|
|
5661
5663
|
event.preventDefault();
|
|
5662
5664
|
return;
|
|
5663
5665
|
}
|
|
5664
|
-
if (this.
|
|
5666
|
+
if (this.type !== ButtonType.Button &&
|
|
5667
|
+
(this.form || ((_a = this.internals) === null || _a === void 0 ? void 0 : _a.form))) {
|
|
5665
5668
|
this.processFormAction();
|
|
5666
5669
|
}
|
|
5667
|
-
else if (this.form) {
|
|
5670
|
+
else if (this.form && this.type === ButtonType.Button) {
|
|
5668
5671
|
console.warn('Button has a form id but is not of type submit or reset so no form action will be processed.', `Button:`, this.el);
|
|
5669
5672
|
}
|
|
5670
5673
|
};
|
|
@@ -5734,7 +5737,7 @@ class NvButton {
|
|
|
5734
5737
|
/****************************************************************************/
|
|
5735
5738
|
//#region RENDER
|
|
5736
5739
|
render() {
|
|
5737
|
-
return (hAsync(Host, { key: '
|
|
5740
|
+
return (hAsync(Host, { key: '751fa0a552eaf13a193a15f9c9d6fe0c257b93e8', role: "button", tabindex: "0", onClick: this.handleButtonClick }, this.loading && (hAsync("nv-loader", { key: 'ae8b39b13bfd6cd8a33f7a30afea19e426d0064d', size: this.size === ButtonSize.Large ? 'sm' : 'xs' })), hAsync("slot", { key: 'e1a213305895c9b35d517bedce3a61f49e39642a', name: "leading-icon" }), hAsync("slot", { key: '2e9e5ed4381790f3c1c06f1a4bf5f60bda79bd1c' }), hAsync("slot", { key: 'e960ec4f4eca0a2a941ca7f3b96a4e31603fa633', name: "trailing-icon" })));
|
|
5738
5741
|
}
|
|
5739
5742
|
static get formAssociated() { return true; }
|
|
5740
5743
|
get el() { return getElement(this); }
|
|
@@ -6789,7 +6792,7 @@ class NvCalendar {
|
|
|
6789
6792
|
* @slot default - Child content of the component.
|
|
6790
6793
|
*/
|
|
6791
6794
|
render() {
|
|
6792
|
-
return (hAsync(Host, { key: '
|
|
6795
|
+
return (hAsync(Host, { key: '49bdf5cc44f9e8f13b0fd61936d3b015e6105d18' }, hAsync("div", { key: 'e1a0fcc20c7c12930df31c36751824a64fae053f', class: "datepicker-root" }, hAsync("div", { key: '48cd6f6d92c41c748fdd05a6d932cbb634e3dfd6', class: `datepicker-container ${this.numberOfCalendars === 1 ? 'datepicker-container-single' : ''}` }, hAsync("div", { key: 'f5d5ca631e448067cbfb04f0bcc74695b5c6fb5e', class: `datepicker-wrapper ${this.numberOfCalendars === 1 ? 'single' : ''}` }, this.shortcutsPlacement === 'left' && this.renderShortcuts(), Array.from({ length: this.numberOfCalendars }, (_, index) => this.renderCalendar(index, index)), this.shortcutsPlacement === 'right' && this.renderShortcuts()), (this.hasShortcuts || this.hasActions) && (hAsync("div", { key: 'cb1ebc42e3616b9c35d147c227a53924fd2c73c8', class: "datepicker-controls" }, this.hasShortcuts && this.renderShortcuts(), this.hasActions && this.renderActions())))), hAsync("slot", { key: 'e9bec2dd219502e8855c6195ebe69bff8fff0da5' })));
|
|
6793
6796
|
}
|
|
6794
6797
|
get el() { return getElement(this); }
|
|
6795
6798
|
static get watchers() { return {
|
|
@@ -6857,7 +6860,7 @@ class NvCol {
|
|
|
6857
6860
|
/****************************************************************************/
|
|
6858
6861
|
//#region RENDER
|
|
6859
6862
|
render() {
|
|
6860
|
-
return (hAsync(Host, { key: '
|
|
6863
|
+
return (hAsync(Host, { key: '8c6efe159aa3b9d853d07897e17045adabf5716c', class: clsx(this.getColSize()) }, hAsync("slot", { key: '5438e2dd941088fde68b17495a4d231cc56fba3c' })));
|
|
6861
6864
|
}
|
|
6862
6865
|
static get style() { return NvColStyle0; }
|
|
6863
6866
|
static get cmpMeta() { return {
|
|
@@ -10219,6 +10222,7 @@ class NvDatagrid {
|
|
|
10219
10222
|
this.parsedColumns = []; // Parsed array
|
|
10220
10223
|
this.parsedData = []; // Parsed array
|
|
10221
10224
|
this.globalFilter = '';
|
|
10225
|
+
this.columnData = [];
|
|
10222
10226
|
//#endregion STATES
|
|
10223
10227
|
/****************************************************************************/
|
|
10224
10228
|
//#region PROPERTIES
|
|
@@ -10262,6 +10266,12 @@ class NvDatagrid {
|
|
|
10262
10266
|
* @default false
|
|
10263
10267
|
*/
|
|
10264
10268
|
this.enableGlobalFilter = false;
|
|
10269
|
+
/**
|
|
10270
|
+
* Whether to automatically generate columns if none are provided.
|
|
10271
|
+
* If columns are explicitly set, this property is ignored.
|
|
10272
|
+
* @default false
|
|
10273
|
+
*/
|
|
10274
|
+
this.autoGenerateColumns = false;
|
|
10265
10275
|
this.debouncedFilter = debounce$1((value) => {
|
|
10266
10276
|
this.globalFilter = value;
|
|
10267
10277
|
}, 300);
|
|
@@ -10288,6 +10298,7 @@ class NvDatagrid {
|
|
|
10288
10298
|
*/
|
|
10289
10299
|
cacheTemplates() {
|
|
10290
10300
|
const columns = Array.from(this.el.querySelectorAll('nv-datagridcolumn'));
|
|
10301
|
+
this.columnData = [];
|
|
10291
10302
|
columns.forEach((col) => {
|
|
10292
10303
|
const key = col.accessor;
|
|
10293
10304
|
const cellSlot = col.querySelector('[slot="cell"]');
|
|
@@ -10308,6 +10319,12 @@ class NvDatagrid {
|
|
|
10308
10319
|
this.headerTemplateCache.set(key, headerDiv);
|
|
10309
10320
|
}
|
|
10310
10321
|
}
|
|
10322
|
+
const colData = {
|
|
10323
|
+
header: col.header,
|
|
10324
|
+
accessor: col.accessor,
|
|
10325
|
+
repeatTemplate: col.hasAttribute('repeat-template'),
|
|
10326
|
+
};
|
|
10327
|
+
this.columnData.push(colData);
|
|
10311
10328
|
});
|
|
10312
10329
|
}
|
|
10313
10330
|
parseDataAndColumns() {
|
|
@@ -10334,7 +10351,9 @@ class NvDatagrid {
|
|
|
10334
10351
|
accessor: key,
|
|
10335
10352
|
header: key.charAt(0).toUpperCase() + key.slice(1),
|
|
10336
10353
|
}));
|
|
10337
|
-
|
|
10354
|
+
if (this.autoGenerateColumns) {
|
|
10355
|
+
this.parseColumnsArray(arrayColumnsConfig, this.parsedColumns);
|
|
10356
|
+
}
|
|
10338
10357
|
}
|
|
10339
10358
|
}
|
|
10340
10359
|
deepEqual(a, b) {
|
|
@@ -10440,6 +10459,25 @@ class NvDatagrid {
|
|
|
10440
10459
|
tableOptions.columns = this.generateColumns(validColumns, tableOptions);
|
|
10441
10460
|
}
|
|
10442
10461
|
}
|
|
10462
|
+
else {
|
|
10463
|
+
// No columns and data is available
|
|
10464
|
+
const hasData = this.parsedData &&
|
|
10465
|
+
Array.isArray(this.parsedData) &&
|
|
10466
|
+
this.parsedData.length > 0;
|
|
10467
|
+
if (hasData) {
|
|
10468
|
+
// No columns and data is available
|
|
10469
|
+
const firstRow = this.parsedData[0];
|
|
10470
|
+
const arrayColumnsConfig = Object.keys(firstRow).map(key => ({
|
|
10471
|
+
accessor: key,
|
|
10472
|
+
header: key.charAt(0).toUpperCase() + key.slice(1),
|
|
10473
|
+
}));
|
|
10474
|
+
if (this.autoGenerateColumns) {
|
|
10475
|
+
this.parseColumnsArray(arrayColumnsConfig, this.parsedColumns);
|
|
10476
|
+
}
|
|
10477
|
+
tableOptions.data = this.getTableData();
|
|
10478
|
+
tableOptions.columns = this.generateColumns(arrayColumnsConfig, tableOptions);
|
|
10479
|
+
}
|
|
10480
|
+
}
|
|
10443
10481
|
// Initialize the table
|
|
10444
10482
|
this.table = createTable(tableOptions);
|
|
10445
10483
|
}
|
|
@@ -10568,7 +10606,25 @@ class NvDatagrid {
|
|
|
10568
10606
|
}
|
|
10569
10607
|
}
|
|
10570
10608
|
// Handle single-level key lookup
|
|
10571
|
-
|
|
10609
|
+
if (key in cellValue) {
|
|
10610
|
+
return String(cellValue[key]);
|
|
10611
|
+
}
|
|
10612
|
+
else if (Array.isArray(cellValue)) {
|
|
10613
|
+
// Handle array of objects
|
|
10614
|
+
const response = cellValue.map((item) => {
|
|
10615
|
+
if (typeof item !== 'object') {
|
|
10616
|
+
return item.toString();
|
|
10617
|
+
}
|
|
10618
|
+
else if (key in item) {
|
|
10619
|
+
return item[key];
|
|
10620
|
+
}
|
|
10621
|
+
else {
|
|
10622
|
+
return item.toString();
|
|
10623
|
+
}
|
|
10624
|
+
});
|
|
10625
|
+
return response.join(', ');
|
|
10626
|
+
}
|
|
10627
|
+
return this.fallbackValue;
|
|
10572
10628
|
}
|
|
10573
10629
|
// If cellValue is a primitive (string, number, boolean, etc.), return it as a string
|
|
10574
10630
|
return (_a = cellValue === null || cellValue === void 0 ? void 0 : cellValue.toString()) !== null && _a !== void 0 ? _a : this.fallbackValue;
|
|
@@ -10679,7 +10735,7 @@ class NvDatagrid {
|
|
|
10679
10735
|
const rows = !this.table || this.table === undefined || this.parsedData.length === 0
|
|
10680
10736
|
? []
|
|
10681
10737
|
: (_c = (_b = this.table) === null || _b === void 0 ? void 0 : _b.getRowModel()) === null || _c === void 0 ? void 0 : _c.rows;
|
|
10682
|
-
return (hAsync(Host, { key: '
|
|
10738
|
+
return (hAsync(Host, { key: '94163c2c73d03dca35795bfb536c5743cb3aa0dc' }, hAsync("div", { key: '022776844872a4a6fcf9d7bdc71651e946e83724', class: "hidden" }, hAsync("slot", { key: 'a479cfc2b5ee53aa83450ec784451625e1ae7667' })), hAsync("slot", { key: '9beeb16975a685d8ce05981923c999ab2ffa004e', name: "before" }), this.enableGlobalFilter && this.table && (hAsync("div", { key: '57efcd1ee55fae941a0071000dc665ee76615f32', class: "search-container" }, hAsync("input", { key: 'd7352618ce123a7c14d8ebcc0b228136ae2df66a', type: "text", value: (_d = this.globalFilter) !== null && _d !== void 0 ? _d : '', onInput: this.handleGlobalFilteringOnInput, placeholder: "Search all columns...", class: "search-input", "aria-label": "Search all columns" }))), this.parsedColumns.length === 0 && this.parsedData.length === 0 ? (hAsync("div", { class: "no-data" }, this.noColumnsNoDataMessage)) : (hAsync("table", null, this.parsedColumns.length > 0 && headerGroups.length > 0 && (hAsync("thead", null, this.parsedColumns.length > 0 && headerGroups
|
|
10683
10739
|
? headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups.map(headerGroup => (hAsync("tr", { key: headerGroup.id }, headerGroup.headers.map(header => {
|
|
10684
10740
|
return (hAsync("th", { key: header.id }, header.isPlaceholder
|
|
10685
10741
|
? null
|
|
@@ -10689,12 +10745,19 @@ class NvDatagrid {
|
|
|
10689
10745
|
const rowId = row.id;
|
|
10690
10746
|
const visibleCells = row === null || row === void 0 ? void 0 : row.getVisibleCells();
|
|
10691
10747
|
return (hAsync("tr", { key: rowId }, visibleCells.map(cell => {
|
|
10748
|
+
var _a, _b;
|
|
10692
10749
|
const cellAccessors = cell.column.id;
|
|
10693
10750
|
const cellValue = cell.getValue();
|
|
10694
|
-
return (hAsync("td", { key: cell.id, "data-row-id": rowId },
|
|
10695
|
-
|
|
10751
|
+
return (hAsync("td", { key: cell.id, "data-row-id": rowId }, ((_a = this.columnData.find(x => x.accessor === cellAccessors)) === null || _a === void 0 ? void 0 : _a.repeatTemplate) && Array.isArray(cellValue)
|
|
10752
|
+
? cellValue.map((item) => {
|
|
10753
|
+
var _a;
|
|
10754
|
+
return (_a = (this.renderTemplate(this.templateCache.get(cellAccessors), item, row) ||
|
|
10755
|
+
item)) !== null && _a !== void 0 ? _a : this.fallbackValue;
|
|
10756
|
+
})
|
|
10757
|
+
: (_b = (this.renderTemplate(this.templateCache.get(cellAccessors), cellValue, row) ||
|
|
10758
|
+
cellValue)) !== null && _b !== void 0 ? _b : this.fallbackValue));
|
|
10696
10759
|
})));
|
|
10697
|
-
}))))), hAsync("slot", { key: '
|
|
10760
|
+
}))))), hAsync("slot", { key: '15815f259d3936559c89ff943dc349f99fda34fa', name: "after" })));
|
|
10698
10761
|
}
|
|
10699
10762
|
get el() { return getElement(this); }
|
|
10700
10763
|
static get watchers() { return {
|
|
@@ -10719,14 +10782,16 @@ class NvDatagrid {
|
|
|
10719
10782
|
"noDataMessage": [513, "no-data-message"],
|
|
10720
10783
|
"noColumnsNoDataMessage": [513, "no-columns-no-data-message"],
|
|
10721
10784
|
"enableGlobalFilter": [516, "enable-global-filter"],
|
|
10785
|
+
"autoGenerateColumns": [516, "auto-generate-columns"],
|
|
10722
10786
|
"table": [32],
|
|
10723
10787
|
"parsedColumns": [32],
|
|
10724
10788
|
"parsedData": [32],
|
|
10725
|
-
"globalFilter": [32]
|
|
10789
|
+
"globalFilter": [32],
|
|
10790
|
+
"columnData": [32]
|
|
10726
10791
|
},
|
|
10727
10792
|
"$listeners$": undefined,
|
|
10728
10793
|
"$lazyBundleId$": "-",
|
|
10729
|
-
"$attrsToReflect$": [["dataJson", "data-json"], ["columnsJson", "columns-json"], ["fallbackValue", "fallback-value"], ["noDataMessage", "no-data-message"], ["noColumnsNoDataMessage", "no-columns-no-data-message"], ["enableGlobalFilter", "enable-global-filter"]]
|
|
10794
|
+
"$attrsToReflect$": [["dataJson", "data-json"], ["columnsJson", "columns-json"], ["fallbackValue", "fallback-value"], ["noDataMessage", "no-data-message"], ["noColumnsNoDataMessage", "no-columns-no-data-message"], ["enableGlobalFilter", "enable-global-filter"], ["autoGenerateColumns", "auto-generate-columns"]]
|
|
10730
10795
|
}; }
|
|
10731
10796
|
}
|
|
10732
10797
|
|
|
@@ -10737,23 +10802,28 @@ class NvDatagrid {
|
|
|
10737
10802
|
class NvDatagridcolumn {
|
|
10738
10803
|
constructor(hostRef) {
|
|
10739
10804
|
registerInstance(this, hostRef);
|
|
10805
|
+
/**
|
|
10806
|
+
* Whether the column need to be repeated with the template.
|
|
10807
|
+
*/
|
|
10808
|
+
this.repeatTemplate = false;
|
|
10740
10809
|
}
|
|
10741
10810
|
//#endregion PROPERTIES
|
|
10742
10811
|
/****************************************************************************/
|
|
10743
10812
|
//#region RENDER
|
|
10744
10813
|
render() {
|
|
10745
|
-
return (hAsync(Host, { key: '
|
|
10814
|
+
return (hAsync(Host, { key: '462144dc8ea401f4f3e3683bdafba983c7147737' }, hAsync("slot", { key: '9af4055567f5199f6b4393e37a8a77b884ce82b9', name: "header" }), hAsync("slot", { key: '36b8cfd9bc974ed9d2a249418ababa504b66091d', name: "cell" })));
|
|
10746
10815
|
}
|
|
10747
10816
|
static get cmpMeta() { return {
|
|
10748
10817
|
"$flags$": 4,
|
|
10749
10818
|
"$tagName$": "nv-datagridcolumn",
|
|
10750
10819
|
"$members$": {
|
|
10751
10820
|
"header": [513],
|
|
10752
|
-
"accessor": [513]
|
|
10821
|
+
"accessor": [513],
|
|
10822
|
+
"repeatTemplate": [516, "repeat-template"]
|
|
10753
10823
|
},
|
|
10754
10824
|
"$listeners$": undefined,
|
|
10755
10825
|
"$lazyBundleId$": "-",
|
|
10756
|
-
"$attrsToReflect$": [["header", "header"], ["accessor", "accessor"]]
|
|
10826
|
+
"$attrsToReflect$": [["header", "header"], ["accessor", "accessor"], ["repeatTemplate", "repeat-template"]]
|
|
10757
10827
|
}; }
|
|
10758
10828
|
}
|
|
10759
10829
|
|
|
@@ -11384,7 +11454,7 @@ var NvDialogStyle0 = nvDialogCss;
|
|
|
11384
11454
|
class NvDialog {
|
|
11385
11455
|
constructor(hostRef) {
|
|
11386
11456
|
registerInstance(this, hostRef);
|
|
11387
|
-
this.
|
|
11457
|
+
this.openChanged = createEvent(this, "openChanged", 7);
|
|
11388
11458
|
this.eventsAttached = false;
|
|
11389
11459
|
/**
|
|
11390
11460
|
* Use this prop to toggle the visibility of the dialog. Set to true to show
|
|
@@ -11411,24 +11481,25 @@ class NvDialog {
|
|
|
11411
11481
|
* Handles the close button click.
|
|
11412
11482
|
*/
|
|
11413
11483
|
this.handleCloseButton = () => {
|
|
11414
|
-
this.
|
|
11484
|
+
this.close();
|
|
11415
11485
|
};
|
|
11416
11486
|
/**
|
|
11417
11487
|
* Handles the cancel button click.
|
|
11418
11488
|
*/
|
|
11419
11489
|
this.handleCancelButton = () => {
|
|
11420
|
-
this.
|
|
11490
|
+
this.close();
|
|
11421
11491
|
};
|
|
11422
11492
|
/**
|
|
11423
|
-
* Handles the dialog close event.
|
|
11493
|
+
* Handles the native dialog close event.
|
|
11424
11494
|
*/
|
|
11425
11495
|
this.handleDialogClose = () => {
|
|
11426
|
-
this.
|
|
11427
|
-
|
|
11496
|
+
if (this.open) {
|
|
11497
|
+
this.close();
|
|
11498
|
+
}
|
|
11428
11499
|
};
|
|
11429
11500
|
this.handleClickOutside = (event) => {
|
|
11430
11501
|
if (event.target === this.dialogElement) {
|
|
11431
|
-
this.
|
|
11502
|
+
this.close();
|
|
11432
11503
|
event.preventDefault();
|
|
11433
11504
|
event.stopPropagation();
|
|
11434
11505
|
}
|
|
@@ -11454,17 +11525,20 @@ class NvDialog {
|
|
|
11454
11525
|
* Call this method to show the dialog, making it visible on the screen.
|
|
11455
11526
|
*/
|
|
11456
11527
|
async show() {
|
|
11528
|
+
this.open = true;
|
|
11457
11529
|
this.preventScroll();
|
|
11530
|
+
// It is recommended to use the .show() or .showModal() method to render dialogs, rather than the open attribute. If a <dialog> is opened using the open attribute, it is non-modal.
|
|
11458
11531
|
this.dialogElement.showModal();
|
|
11459
|
-
this.open
|
|
11532
|
+
this.openChanged.emit(this.open);
|
|
11460
11533
|
}
|
|
11461
11534
|
/**
|
|
11462
11535
|
* Call this method to hide the dialog, making it disappear from view.
|
|
11463
11536
|
*/
|
|
11464
|
-
async
|
|
11537
|
+
async close() {
|
|
11538
|
+
this.open = false;
|
|
11465
11539
|
this.allowScroll();
|
|
11466
11540
|
this.dialogElement.close();
|
|
11467
|
-
this.open
|
|
11541
|
+
this.openChanged.emit(this.open);
|
|
11468
11542
|
}
|
|
11469
11543
|
/**
|
|
11470
11544
|
* Sets the autofocus on the first focusable element in the dialog.
|
|
@@ -11551,7 +11625,7 @@ class NvDialog {
|
|
|
11551
11625
|
this.show();
|
|
11552
11626
|
}
|
|
11553
11627
|
else {
|
|
11554
|
-
this.
|
|
11628
|
+
this.close();
|
|
11555
11629
|
}
|
|
11556
11630
|
}
|
|
11557
11631
|
//#endregion WATCHERS
|
|
@@ -11609,7 +11683,7 @@ class NvDialog {
|
|
|
11609
11683
|
//#region RENDER
|
|
11610
11684
|
render() {
|
|
11611
11685
|
const hasForm = this.form || this.el.querySelector('form');
|
|
11612
|
-
return (hAsync(Host, { key: '
|
|
11686
|
+
return (hAsync(Host, { key: '61eba0f85db952b244052a3ee2ef7b7f87fd326c' }, hAsync("slot", { key: '44c72cba8610442c45386055285fcc81b9fccc4f', name: "trigger" }), hAsync("dialog", { key: 'db3983ac428f7e537037884f5556d97330928238', ref: el => (this.dialogElement = el), onClose: this.handleDialogClose, role: "dialog", "aria-modal": "true", "aria-labelledby": "dialog-header", "aria-describedby": "dialog-content", class: clsx({ full: this.full }) }, hAsync("div", { key: '9ec2a2df306d68ac4cea2c5b2c303d3b491d5e34', class: "content" }, !this.undismissable && (hAsync("nv-button", { key: 'a586462512605de60726b912897fa16c39f8f68f', class: "close-button", emphasis: "lower", size: "sm", onClick: this.handleCloseButton, "aria-label": "Close dialog" }, hAsync("nv-icon", { key: '95eb4b492442aa0eb43dcab3f9111d9961421322', name: "x", size: "sm" }))), this.headerElement ? (hAsync("slot", { name: "header" })) : (hAsync("nv-dialogheader", { id: "dialog-header" })), hAsync("div", { key: 'f9c1cf75b545166afc4dbb3d650e90042a83ea7a', class: "content-body", id: "dialog-content" }, hAsync("slot", { key: '7716af492453f1a9f142aaf2a8af06689e4ded82' })), this.footerElement ? (hAsync("slot", { name: "footer" })) : (hAsync("nv-dialogfooter", { form: this.form, primaryButtonType: hasForm ? ButtonType.Submit : ButtonType.Button, onDialogCanceled: this.handleCancelButton, undismissable: this.undismissable }))))));
|
|
11613
11687
|
}
|
|
11614
11688
|
get el() { return getElement(this); }
|
|
11615
11689
|
static get watchers() { return {
|
|
@@ -11629,7 +11703,7 @@ class NvDialog {
|
|
|
11629
11703
|
"controlled": [516],
|
|
11630
11704
|
"full": [516],
|
|
11631
11705
|
"show": [64],
|
|
11632
|
-
"
|
|
11706
|
+
"close": [64]
|
|
11633
11707
|
},
|
|
11634
11708
|
"$listeners$": [[4, "keydown", "handleKeyDown"], [4, "click", "handleDocumentClick"], [5, "touchstart", "handleDocumentTouch"]],
|
|
11635
11709
|
"$lazyBundleId$": "-",
|
|
@@ -11725,7 +11799,7 @@ class NvDialogfooter {
|
|
|
11725
11799
|
/****************************************************************************/
|
|
11726
11800
|
//#region RENDER
|
|
11727
11801
|
render() {
|
|
11728
|
-
return (hAsync(Host, { key: '
|
|
11802
|
+
return (hAsync(Host, { key: '11bfb772cb942d91363b9636f0baf10d33ce6bbd' }, !this.hasSlot ? (hAsync(Fragment, null, !this.undismissable && (hAsync("nv-button", { onClick: this.handleCancel, emphasis: "low", size: "sm" }, this.cancelLabel)), hAsync("nv-button", { onClick: this.handlePrimary, disabled: this.disabled, danger: this.danger, size: "sm", emphasis: "high", form: this.form, type: this.primaryButtonType }, this.leadingIcon && (hAsync("nv-icon", { slot: "leading-icon", name: this.leadingIcon, size: "sm" })), this.primaryLabel, this.trailingIcon && (hAsync("nv-icon", { slot: "trailing-icon", name: this.trailingIcon, size: "sm" }))))) : (hAsync("slot", null))));
|
|
11729
11803
|
}
|
|
11730
11804
|
static get formAssociated() { return true; }
|
|
11731
11805
|
get el() { return getElement(this); }
|
|
@@ -11781,7 +11855,7 @@ class NvDialogheader {
|
|
|
11781
11855
|
/****************************************************************************/
|
|
11782
11856
|
//#region RENDER
|
|
11783
11857
|
render() {
|
|
11784
|
-
return (hAsync(Host, { key: '
|
|
11858
|
+
return (hAsync(Host, { key: '7658d8f0517e63b3688b938108e8c3a6df788a77' }, !this.hasSlot ? (hAsync(Fragment, null, hAsync("div", { class: "heading" }, this.heading), hAsync("div", { class: "subheading" }, this.subheading))) : (hAsync("slot", null))));
|
|
11785
11859
|
}
|
|
11786
11860
|
get el() { return getElement(this); }
|
|
11787
11861
|
static get style() { return NvDialogheaderStyle0; }
|
|
@@ -11798,7 +11872,7 @@ class NvDialogheader {
|
|
|
11798
11872
|
}; }
|
|
11799
11873
|
}
|
|
11800
11874
|
|
|
11801
|
-
const nvFieldcheckboxCss = "nv-fieldcheckbox{--nv-fieldcheckbox-border-default:var(\n --components-form-field-border-default\n );--nv-fieldcheckbox-border-hover:var(--components-form-field-border-hover);--nv-fieldcheckbox-border-focus:var(--components-form-field-border-default);--nv-fieldcheckbox-background-default:var(\n --components-form-field-background-default\n );--nv-fieldcheckbox-background-checked:var(\n --components-form-field-background-checked\n );--nv-fieldcheckbox-background-disabled:var(\n --components-form-field-background-disabled\n );--nv-fieldcheckbox-focus-box-shadow:var(--color-focus-brand);--nv-fieldcheckbox-color-checked:var(\n --components-form-shape-foreground-default\n );--nv-fieldcheckbox-color-disabled:var(\n --components-form-shape-foreground-disabled\n );--nv-fieldcheckbox-outline-color:var(--color-focus-brand);display:inline-flex;align-items:flex-start;gap:var(--form-gap-x);position:relative}nv-fieldcheckbox:not([disabled],[readonly]) input,nv-fieldcheckbox:not([disabled],[readonly]) label{cursor:pointer}nv-fieldcheckbox.error>.input-container{--nv-fieldcheckbox-border-default:var(--components-form-field-border-error);--nv-fieldcheckbox-border-hover:var(--nv-fieldcheckbox-border-default);--nv-fieldcheckbox-border-focus:var(--components-form-field-border-error);--nv-fieldcheckbox-focus-box-shadow:var(--color-focus-destructive);--nv-fieldcheckbox-color-disabled:var(\n --components-form-shape-foreground-disabled-error\n );--nv-fieldcheckbox-background-checked:var(\n --components-form-field-background-error\n );--nv-fieldcheckbox-outline-color:var(--color-focus-destructive)}nv-fieldcheckbox.label-placement-before{flex-direction:row-reverse}nv-fieldcheckbox[disabled]:not([disabled=false]){opacity:0.5}nv-fieldcheckbox>.input-container{position:relative;color:var(--nv-fieldcheckbox-color-checked)}nv-fieldcheckbox>.input-container input[type=checkbox][readonly]{opacity:0.5}nv-fieldcheckbox>.input-container:has(input[type=checkbox]:disabled:not([readonly])){color:var(--nv-fieldcheckbox-color-disabled)}nv-fieldcheckbox>.input-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-fieldcheckbox-border-default);background:var(--nv-fieldcheckbox-background-default)}nv-fieldcheckbox>.input-container input[type=checkbox]:hover{border-color:var(--nv-fieldcheckbox-border-hover)}nv-fieldcheckbox>.input-container input[type=checkbox]:focus{border-color:var(--nv-fieldcheckbox-border-focus)}nv-fieldcheckbox>.input-container input[type=checkbox]:focus,nv-fieldcheckbox>.input-container input[type=checkbox]:focus-within{outline:none}nv-fieldcheckbox>.input-container input[type=checkbox]:focus-visible,nv-fieldcheckbox>.input-container input[type=checkbox]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--nv-fieldcheckbox-outline-color);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-fieldcheckbox>.input-container input[type=checkbox]:checked,nv-fieldcheckbox>.input-container input[type=checkbox]:indeterminate{background:var(--nv-fieldcheckbox-background-checked);border-color:var(--nv-fieldcheckbox-background-checked)}nv-fieldcheckbox>.input-container input[type=checkbox]:disabled:not([readonly]){background:var(--nv-fieldcheckbox-background-disabled);border-color:var(--nv-fieldcheckbox-border-default)}nv-fieldcheckbox>.input-container input[type=checkbox][readonly]{opacity:0.5}nv-fieldcheckbox>.input-container .icon{pointer-events:none;position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center}nv-fieldcheckbox>.input-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}nv-fieldcheckbox>.text-container{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0}nv-fieldcheckbox>.text-container label{align-self:stretch;color:var(--components-form-text-label-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-label-font-size);font-style:normal;font-weight:var(--form-label-font-weight);line-height:var(--form-label-line-height)}nv-fieldcheckbox>.text-container .description{align-self:stretch;color:var(--components-form-text-description-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-description-font-size);font-style:normal;font-weight:var(--form-description-font-weight);line-height:var(--form-description-line-height)}nv-fieldcheckbox>.text-container .error-description{align-self:stretch;color:var(--components-form-text-description-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-description-font-size);font-style:normal;font-weight:var(--form-description-font-weight);line-height:var(--form-description-line-height);color:var(--components-form-text-description-error)}";
|
|
11875
|
+
const nvFieldcheckboxCss = "nv-fieldcheckbox{--nv-fieldcheckbox-border-default:var(\n --components-form-field-border-default\n );--nv-fieldcheckbox-border-hover:var(--components-form-field-border-hover);--nv-fieldcheckbox-border-focus:var(--components-form-field-border-default);--nv-fieldcheckbox-background-default:var(\n --components-form-field-background-default\n );--nv-fieldcheckbox-background-checked:var(\n --components-form-field-background-checked\n );--nv-fieldcheckbox-background-disabled:var(\n --components-form-field-background-disabled\n );--nv-fieldcheckbox-focus-box-shadow:var(--color-focus-brand);--nv-fieldcheckbox-color-checked:var(\n --components-form-shape-foreground-default\n );--nv-fieldcheckbox-color-disabled:var(\n --components-form-shape-foreground-disabled\n );--nv-fieldcheckbox-outline-color:var(--color-focus-brand);display:inline-flex;align-items:flex-start;gap:var(--form-gap-x);position:relative}nv-fieldcheckbox:not([disabled],[readonly]) input,nv-fieldcheckbox:not([disabled],[readonly]) label{cursor:pointer}nv-fieldcheckbox.error>.input-container{--nv-fieldcheckbox-border-default:var(--components-form-field-border-error);--nv-fieldcheckbox-border-hover:var(--nv-fieldcheckbox-border-default);--nv-fieldcheckbox-border-focus:var(--components-form-field-border-error);--nv-fieldcheckbox-focus-box-shadow:var(--color-focus-destructive);--nv-fieldcheckbox-color-disabled:var(\n --components-form-shape-foreground-disabled-error\n );--nv-fieldcheckbox-background-checked:var(\n --components-form-field-background-error\n );--nv-fieldcheckbox-outline-color:var(--color-focus-destructive)}nv-fieldcheckbox.label-placement-before{flex-direction:row-reverse}nv-fieldcheckbox[disabled]:not([disabled=false]){opacity:0.5}nv-fieldcheckbox>.input-container{position:relative;color:var(--nv-fieldcheckbox-color-checked)}nv-fieldcheckbox>.input-container input[type=checkbox][readonly]{opacity:0.5}nv-fieldcheckbox>.input-container:has(input[type=checkbox]:disabled:not([readonly])){color:var(--nv-fieldcheckbox-color-disabled)}nv-fieldcheckbox>.input-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-fieldcheckbox-border-default);background:var(--nv-fieldcheckbox-background-default)}nv-fieldcheckbox>.input-container input[type=checkbox]:hover{border-color:var(--nv-fieldcheckbox-border-hover)}nv-fieldcheckbox>.input-container input[type=checkbox]:focus{border-color:var(--nv-fieldcheckbox-border-focus)}nv-fieldcheckbox>.input-container input[type=checkbox]:focus,nv-fieldcheckbox>.input-container input[type=checkbox]:focus-within{outline:none}nv-fieldcheckbox>.input-container input[type=checkbox]:focus-visible,nv-fieldcheckbox>.input-container input[type=checkbox]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--nv-fieldcheckbox-outline-color);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-fieldcheckbox>.input-container input[type=checkbox]:checked,nv-fieldcheckbox>.input-container input[type=checkbox]:indeterminate{background:var(--nv-fieldcheckbox-background-checked);border-color:var(--nv-fieldcheckbox-background-checked)}nv-fieldcheckbox>.input-container input[type=checkbox]:disabled:not([readonly]){background:var(--nv-fieldcheckbox-background-disabled);border-color:var(--nv-fieldcheckbox-border-default)}nv-fieldcheckbox>.input-container input[type=checkbox][readonly]{opacity:0.5}nv-fieldcheckbox>.input-container .icon{pointer-events:none;position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center}nv-fieldcheckbox>.input-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}nv-fieldcheckbox>.text-container{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0}nv-fieldcheckbox>.text-container label{align-self:stretch;color:var(--components-form-text-label-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-label-font-size);font-style:normal;font-weight:var(--form-label-font-weight);line-height:var(--form-label-line-height)}nv-fieldcheckbox>.text-container label.visually-hidden{position:absolute;padding:0;border:0;overflow:hidden;white-space:nowrap;width:1px;height:1px;margin:-1px;clip:rect(0, 0, 0, 0)}nv-fieldcheckbox>.text-container .description{align-self:stretch;color:var(--components-form-text-description-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-description-font-size);font-style:normal;font-weight:var(--form-description-font-weight);line-height:var(--form-description-line-height)}nv-fieldcheckbox>.text-container .error-description{align-self:stretch;color:var(--components-form-text-description-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-description-font-size);font-style:normal;font-weight:var(--form-description-font-weight);line-height:var(--form-description-line-height);color:var(--components-form-text-description-error)}";
|
|
11802
11876
|
var NvFieldcheckboxStyle0 = nvFieldcheckboxCss;
|
|
11803
11877
|
|
|
11804
11878
|
/**
|
|
@@ -11918,13 +11992,13 @@ class NvFieldcheckbox {
|
|
|
11918
11992
|
/****************************************************************************/
|
|
11919
11993
|
//#region RENDER
|
|
11920
11994
|
render() {
|
|
11921
|
-
return (hAsync(Host, { key: '
|
|
11995
|
+
return (hAsync(Host, { key: '1d627199f94d133d82bbef8f20de86590d9a3813', class: clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, hAsync("div", { key: 'bca54e59576da2ec632a7ef7c5f8adb6fb3c77fb', class: "input-container" }, hAsync("input", { key: '4f27772a35e74cc945fc4de202099866fbd8a317', type: "checkbox", id: this.inputId, name: this.name, autofocus: this.autofocus, autocomplete: "off", value: this.value, checked: Boolean(this.checked), disabled: this.disabled || this.readonly, readonly: this.readonly && !this.required, required: this.required, indeterminate: this.indeterminate, ref: el => {
|
|
11922
11996
|
if (el) {
|
|
11923
11997
|
el.indeterminate = this.indeterminate;
|
|
11924
11998
|
}
|
|
11925
|
-
} }), hAsync("span", { key: '
|
|
11926
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
11927
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
11999
|
+
} }), hAsync("span", { key: 'd575209c82fe0cbb4f3136a50eb78a9db12cacc0', class: "icon" }, this.checked && !this.indeterminate && (hAsync("slot", { key: 'c265cb54bc4d76962203e8ee0298508e9f96bc58', name: "checked-icon" }, hAsync("svg", { key: '03d326e69ac11bf22bc3ce43a80023f8c2ff8401', xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" }, hAsync("path", { key: 'ae602d5613c82569f89f97d9e1b6994940f03f9c', d: "M11.6667 3.5L5.25004 9.91667L2.33337 7", "stroke-linecap": "round", "stroke-linejoin": "round" })))), this.indeterminate && (hAsync("slot", { key: '9f90d9b9a63a50bd0ecd4433b390d4c03604e124', name: "indeterminate-icon" }, hAsync("svg", { key: '7681c9b1203240f419fb7cf93644cef77f8438f6', class: "indeterminate-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 14 14", fill: "none" }, hAsync("path", { key: 'c28a5d22adace616ede31baa3a4edbc8cb899f01', d: "M2.9165 7H11.0832", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), hAsync("div", { key: '9213ad654a4c4f9576160c80195aec378559f2a0', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '73f6c22fe57659b0618216e69289a5704ac231eb', htmlFor: this.inputId, class: clsx(this.hideLabel && 'visually-hidden') }, hAsync("slot", { key: 'fd70342006329609c2b0f9b501d0e2e7ad311f07', name: "label" }, this.label))), (this.description ||
|
|
12000
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '17fb2ed0060b24b1ef797efe34b53c94a755a1ac', class: "description" }, hAsync("slot", { key: '96d6c1b135f716de40c1223f35a479d3c8cc6c0d', name: "description" }, this.description))), (this.errorDescription ||
|
|
12001
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: 'c63392b6d315d5104087561ca2abf166e190f0f7', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: '154010b1ec725f95d88bbf18a9e5d309b73affdd', name: "error-description" }, this.errorDescription))))));
|
|
11928
12002
|
}
|
|
11929
12003
|
static get formAssociated() { return true; }
|
|
11930
12004
|
get el() { return getElement(this); }
|
|
@@ -15981,12 +16055,12 @@ class NvFielddate {
|
|
|
15981
16055
|
/****************************************************************************/
|
|
15982
16056
|
//#region RENDER
|
|
15983
16057
|
render() {
|
|
15984
|
-
return (hAsync(Host, { key: '
|
|
15985
|
-
this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '
|
|
16058
|
+
return (hAsync(Host, { key: 'c7df11a97881887a55ebcedcb2b92aa1ac24097e' }, ((this.label && this.label.length > 0) ||
|
|
16059
|
+
this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: 'a1b973f2de3b2510e7ed9c4a02d38ebc96cf5261', htmlFor: this.inputId }, hAsync("slot", { key: '8a236ef847c3c65994fa47fad12f7c1a84820859', name: "label" }, this.label))), hAsync("nv-popover", { key: '76448ee54d85eeed56bc700b6cf5c92bfbad75b3', ref: el => (this.popoverElement = el), id: this.popoverId, triggerMode: "controlled", placement: "bottom-start", open: this.open }, hAsync("div", { key: '1e3610ab28f294d1075aa78a971ee80a2c5f67bc', slot: "trigger", class: "input-wrapper" }, hAsync("slot", { key: '1ddf6042b74ba760238a92a4bd76e1385ed5b964', name: "before-input" }), hAsync("div", { key: 'ed60189f121928bc42fdf6f419a92fe2733ad2a3', class: "input-container", onClick: this.handleInputContainerClick }, hAsync("slot", { key: '27d9c9302a8cb2d9d803020e2bc7b86b8c2c673b', name: "leading-input" }), hAsync("input", { key: 'c8edffba97c6c51ef545c218459a8ce80698b3c4', id: this.inputId, ref: e => (this.inputElement = e), placeholder: this.placeholder, name: this.name, disabled: this.disabled, readOnly: this.readonly, required: this.required, autofocus: this.autofocus, value: this.singleValue, onInput: this.handleInput, onFocus: this.handleFocus }), hAsync("nv-iconbutton", { key: 'e69bf0edb9726c201659f5a4aa7453eb3f5067ac', class: "toggle-calendar-icon", name: "calendar" //{this.open ? 'chevron-top' : 'chevron-down'}
|
|
15986
16060
|
,
|
|
15987
|
-
size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide calendar' : 'Show calendar', "aria-pressed": this.open.toString(), onClick: this.toggleCalendar, tabIndex: this.disabled ? -1 : 0 })), hAsync("slot", { key: '
|
|
15988
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
15989
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
16061
|
+
size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide calendar' : 'Show calendar', "aria-pressed": this.open.toString(), onClick: this.toggleCalendar, tabIndex: this.disabled ? -1 : 0 })), hAsync("slot", { key: 'd8231b608d9d08abb88e261118f9dd02cf8f5c2c', name: "after-input" })), hAsync("div", { key: 'c8bb3d4a753e8ad311db1947717f1dad109999c1', slot: "content" }, hAsync("nv-calendar", { key: 'bd73bc48c48e708f3655c112b874135003f1a16f', dateFormat: this.dateFormat, singleValue: this.singleValue, firstDayOfWeek: this.firstDayOfWeek, numberOfCalendars: this.numberOfCalendars, min: this.min, max: this.max, locale: this.locale, shortcutsPlacement: this.shortcutsPlacement, showActions: this.showActions, shortcuts: this.shortcuts, showWeekNumbers: this.showWeekNumbers, disabledDates: this.disabledDates }))), ((this.description && this.description.length > 0) ||
|
|
16062
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'dee7ad7eaa2854756e616ef033264c4a2cf8f96c', class: "description" }, hAsync("slot", { key: '5556239ae6ed962cd2d51944d2f394f8d7741fb0', name: "description" }, this.description))), (this.errorDescription ||
|
|
16063
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '82ba5366e053563fe5fc9471493fb99c78bf078f', hidden: !this.error, class: "error-description" }, this.el.querySelector('[slot="error-description"]') ? (hAsync("slot", { name: "error-description" })) : (this.errorDescription))), hAsync("slot", { key: '1fda22554d69a5998b99d3f8c95362a926b44fb3' })));
|
|
15990
16064
|
}
|
|
15991
16065
|
get el() { return getElement(this); }
|
|
15992
16066
|
static get watchers() { return {
|
|
@@ -16368,15 +16442,15 @@ class NvFielddaterange {
|
|
|
16368
16442
|
/****************************************************************************/
|
|
16369
16443
|
//#region RENDER
|
|
16370
16444
|
render() {
|
|
16371
|
-
return (hAsync(Host, { key: '
|
|
16372
|
-
this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '
|
|
16445
|
+
return (hAsync(Host, { key: '357f98b39d7cade75f24caaba007eec4279cd24e' }, ((this.label && this.label.length > 0) ||
|
|
16446
|
+
this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '0731f0d5ad79d323dade2f023f5a9c3088c744b2', htmlFor: this.startInputId }, hAsync("slot", { key: '75309cb4161e1652f0445ba924c6d7a58de140c3', name: "label" }, this.label))), hAsync("nv-popover", { key: 'f66e2544956ea3dedd249719a4b436077bdc85c0', ref: el => (this.popoverElement = el), id: this.popoverId, triggerMode: "controlled", placement: "bottom-start", open: this.open }, hAsync("div", { key: 'c1a3b117056a521f6f778a978b4bc8edac32a111', slot: "trigger", class: "input-wrapper" }, hAsync("slot", { key: '5fbe2aff9687456dd299792016904470386dfb94', name: "before-input" }), hAsync("div", { key: '46726768e9724e983063479e0f301c3d09169669', class: "input-container" }, hAsync("slot", { key: 'f4a405be4a98566bd40dc9d19087d2c5c0ac798f', name: "leading-input" }), hAsync("div", { key: 'd1abc5e239272e57f0fdbf4c0e9e76ca86230996', class: "range-inputs" }, hAsync("input", { key: 'd13584d024b50162d47a74e68592c05206484876', id: this.startInputId, type: "text", placeholder: this.startPlaceholder, name: this.startName, disabled: this.disabled, readOnly: this.readonly, required: this.required, autofocus: this.shouldAutoFocus, value: this.startValue, onInput: this.handleStartInput, onFocus: this.handleFocus }), hAsync("svg", { key: '641dda60614637939d8ffaa25052e8f2bcb234d8', xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "icon icon-tabler icons-tabler-outline icon-tabler-arrows-move-horizontal" }, hAsync("path", { key: 'c6245bd4ffa2bb12df3a295a6a10ce8386b5f54b', stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), hAsync("path", { key: 'c1b3400148e367dae092eecec9da410cfa2e7547', d: "M18 9l3 3l-3 3" }), hAsync("path", { key: '08bc414df54afe457775aec97897ed0acf2dca38', d: "M15 12h6" }), hAsync("path", { key: 'd9136526597df7a8193f71414caba9481248ebf2', d: "M6 9l-3 3l3 3" }), hAsync("path", { key: '1d194b3449c53be3f05458ade789e99998861371', d: "M3 12h6" })), hAsync("input", { key: '5ed58df2a2680b1fa66916f65c2dc48dc648e461', id: this.endInputId, type: "text", placeholder: this.endPlaceholder, name: this.endName, disabled: this.disabled, readOnly: this.readonly, required: this.required, value: this.endValue, onInput: this.handleEndInput, onFocus: this.handleFocus })), hAsync("nv-iconbutton", { key: 'e06b3a9326245e581998a60627634560be7124f0', class: "toggle-calendar-icon", name: "calendar", size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide calendar' : 'Show calendar', "aria-pressed": this.open.toString(), onClick: this.toggleCalendar, tabIndex: this.disabled ? -1 : 0 })), hAsync("slot", { key: 'bf0ea3f63a5476e7ff4a6954fb200c15a493d6ac', name: "after-input" })), hAsync("div", { key: '32fcfbafe86ce08d87d597d40ad25702dd059ed6', slot: "content" }, hAsync("nv-calendar", { key: 'ef670618ecca933d976adefaec9996f172f95d7a', dateFormat: this.dateFormat, rangeValue: this.startValue && this.endValue
|
|
16373
16447
|
? JSON.stringify({
|
|
16374
16448
|
start: this.startValue,
|
|
16375
16449
|
end: this.endValue,
|
|
16376
16450
|
})
|
|
16377
16451
|
: '', firstDayOfWeek: this.firstDayOfWeek, numberOfCalendars: this.numberOfCalendars, min: this.min, max: this.max, locale: this.locale, shortcutsPlacement: this.shortcutsPlacement, showActions: this.showActions, shortcuts: this.shortcuts, showWeekNumbers: this.showWeekNumbers, disabledDates: this.disabledDates, selectionType: "range" }))), ((this.description && this.description.length > 0) ||
|
|
16378
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
16379
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
16452
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '15dbab39d7ceaf406246462812d8a1307dad40bb', class: "description" }, hAsync("slot", { key: '1c5f74676b312a6bbca659a783473da7c3936829', name: "description" }, this.description))), (this.errorDescription ||
|
|
16453
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '8f48ac666968cddfdd2c282366ed2f6dccd3013c', hidden: !this.error, class: "error-description" }, this.el.querySelector('[slot="error-description"]') ? (hAsync("slot", { name: "error-description" })) : (this.errorDescription))), hAsync("slot", { key: '92dc673a2d62a34d3830cf6644b84103b73b695b' })));
|
|
16380
16454
|
}
|
|
16381
16455
|
get el() { return getElement(this); }
|
|
16382
16456
|
static get watchers() { return {
|
|
@@ -16503,7 +16577,6 @@ class NvFielddropdown {
|
|
|
16503
16577
|
//#region STATE
|
|
16504
16578
|
/** The text entered by the user for filtering dropdown items. */
|
|
16505
16579
|
this.filterText = '';
|
|
16506
|
-
this.isFilterable = this.filterable;
|
|
16507
16580
|
this.selectedValues = new Set();
|
|
16508
16581
|
/**
|
|
16509
16582
|
* Options configuration for the dropdown items.
|
|
@@ -16593,10 +16666,6 @@ class NvFielddropdown {
|
|
|
16593
16666
|
handleOpenChanged(event) {
|
|
16594
16667
|
this.open = event.detail; // Update `open` based on the popover state
|
|
16595
16668
|
}
|
|
16596
|
-
watchFilterableHandler(newValue) {
|
|
16597
|
-
this.isFilterable = newValue;
|
|
16598
|
-
this.filterable = newValue;
|
|
16599
|
-
}
|
|
16600
16669
|
watchValueHandler(newValue) {
|
|
16601
16670
|
this.valueChanged.emit(newValue);
|
|
16602
16671
|
}
|
|
@@ -16773,14 +16842,13 @@ class NvFielddropdown {
|
|
|
16773
16842
|
/****************************************************************************/
|
|
16774
16843
|
//#region RENDER
|
|
16775
16844
|
render() {
|
|
16776
|
-
return (hAsync(Host, { key: '
|
|
16777
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
16778
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
16845
|
+
return (hAsync(Host, { key: '9624c909eb35f0e6d9a9875cbeaec8ffb8122d40', role: "combobox", "aria-expanded": this.open.toString(), "aria-haspopup": "listbox", "aria-label": this.label }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '27389b0b422af6b7714cea6654ac243d1e9c242f', htmlFor: this.inputId }, hAsync("slot", { key: 'd77573395386ba0c0afa2233f420fa250b86ac9f', name: "label" }, this.label))), hAsync("nv-popover", { key: '0b1dda746e71b810ab6050cd8ef6a6bb9a44866e', ref: el => (this.popoverElement = el), triggerMode: "controlled", placement: "bottom-start", open: this.open }, hAsync("div", { key: '437a94f2230891674dd9c820595fcecfcea48e77', class: "input-wrapper", slot: "trigger" }, hAsync("slot", { key: 'e01c2e4bda2806b21c0016bfe710969044994dfc', name: "before-input" }), hAsync("div", { key: '310d387f5cc22ad85232c0f491763a810833befc', class: "input-container", onClick: this.handleInputContainerClick }, hAsync("slot", { key: 'c16096b15be3fe16ad8f5fb4a730050f6f797342', name: "leading-input" }), this.filterable || this.disabled || this.readonly ? (hAsync("input", { "data-scope": "focusable", id: this.inputId, type: "search", ref: e => (this.inputElement = e), autofocus: this.autofocus, autocomplete: this.autocomplete, placeholder: this.placeholder, name: this.name, value: this.getSelectedLabel(), required: this.required, disabled: this.disabled, readOnly: this.readonly, onInput: this.handleInput, onFocus: this.handleInputFocus, onClick: this.handleInputFocus, onKeyDown: this.handleKeyDown })) : (hAsync("p", { "data-scope": "focusable", id: this.inputId, class: "non-filterable-text", onClick: this.handleInputContainerClick, tabIndex: this.disabled ? -1 : 0, onKeyDown: this.handleKeyDown, onFocus: this.handleInputFocus }, this.getSelectedLabel() || this.value || this.placeholder)), this.filterable && this.filterText && this.open && (hAsync("nv-iconbutton", { key: '208c945944cddcb1c67a3b560428f21ca056b17b', name: "x", size: "md", emphasis: "lower", class: "clear-button", onClick: this.clearFilter, "aria-label": "Clear input" })), this.error && (hAsync("nv-icon", { key: 'e3797d5e47e54fd328c0bcd86d14e80ee5e21e17', name: "alert-circle", class: "validation", size: "md" })), hAsync("nv-iconbutton", { key: '1ccb8f3bb1ad086339b9888bf89e929164576910', "data-scope": "toggle-dropdown", name: this.open ? 'chevron-top' : 'chevron-down', size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide dropdown' : 'Show dropdown', "aria-pressed": this.open.toString(), onClick: this.togglePopover, tabIndex: this.disabled ? -1 : 0 })), hAsync("slot", { key: '92a66b2da4f7ada21fdb8199d2b047840050be13', name: "after-input" })), hAsync("div", { key: '51ba49500cb0e03531c5b4b939e76817f432be57', slot: "content" }, this.parsedOptions.length > 0 ? (hAsync("ul", null, this.parsedOptions.map(option => (hAsync("nv-fielddropdownitem", { label: option.label, value: option.value, disabled: option.disabled, selected: option.value === this.value }))))) : (hAsync("slot", { name: "content" })))), (this.description ||
|
|
16846
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '3cb31c8bfb17db1862af12e817f6646480cd697c', class: "description" }, hAsync("slot", { key: '830538f4e63f9de6a613fcce23a80370d941e9da', name: "description" }, this.description))), (this.errorDescription ||
|
|
16847
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '8ffee4c7d2c9a93bc4de344f812ff568e3d6a23e', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: '8f534be6233f54e6b43e2271d0a151a02148d5d8', name: "error-description" }, this.errorDescription)))));
|
|
16779
16848
|
}
|
|
16780
16849
|
static get formAssociated() { return true; }
|
|
16781
16850
|
get el() { return getElement(this); }
|
|
16782
16851
|
static get watchers() { return {
|
|
16783
|
-
"filterable": ["watchFilterableHandler"],
|
|
16784
16852
|
"value": ["watchValueHandler"],
|
|
16785
16853
|
"options": ["handleOptionsChange"]
|
|
16786
16854
|
}; }
|
|
@@ -16803,11 +16871,10 @@ class NvFielddropdown {
|
|
|
16803
16871
|
"readonly": [516],
|
|
16804
16872
|
"disabled": [516],
|
|
16805
16873
|
"emptyResult": [513, "empty-result"],
|
|
16806
|
-
"filterable": [
|
|
16874
|
+
"filterable": [516],
|
|
16807
16875
|
"options": [513],
|
|
16808
16876
|
"autofocus": [516],
|
|
16809
16877
|
"filterText": [32],
|
|
16810
|
-
"isFilterable": [32],
|
|
16811
16878
|
"selectedValues": [32],
|
|
16812
16879
|
"parsedOptions": [32],
|
|
16813
16880
|
"getFilterText": [64]
|
|
@@ -16877,7 +16944,7 @@ class NvFielddropdownitem {
|
|
|
16877
16944
|
/****************************************************************************/
|
|
16878
16945
|
//#region RENDER
|
|
16879
16946
|
render() {
|
|
16880
|
-
return (hAsync(Host, { key: '
|
|
16947
|
+
return (hAsync(Host, { key: '228a213b0a8acb108676e412ed2aa8bcd3f2e88d', role: "menuitem", tabindex: '-1', onClick: this.handleSelected }, hAsync("slot", { key: '4578676f2a58e9a3a3a5173ff4659ca8e65755df' }), !this.composed && (hAsync("div", { key: 'a4f670296e56319007852726fd5fa3dca1ea3d04', class: "text-wrapper" }, hAsync("span", { key: '2b69bca3ee6e1d7e8db57befdfb57bd27c096658', "data-scope": "text" }, this.label))), this.selected && (hAsync("nv-icon", { key: '869900dc55ef7e35550d9de1aea06478e90ba890', name: "check", "aria-hidden": "true", "data-scope": "selected" }))));
|
|
16881
16948
|
}
|
|
16882
16949
|
get el() { return getElement(this); }
|
|
16883
16950
|
static get style() { return NvFielddropdownitemStyle0; }
|
|
@@ -16942,7 +17009,7 @@ class NvFielddropdownitemcheck {
|
|
|
16942
17009
|
};
|
|
16943
17010
|
}
|
|
16944
17011
|
render() {
|
|
16945
|
-
return (hAsync(Host, { key: '
|
|
17012
|
+
return (hAsync(Host, { key: '69e403031200efea98b211ed6d69d3a21338bea0', onClick: this.handleClick }, hAsync("nv-fieldcheckbox", { key: '0d12dbeef8532087d950bfc4e14994821b1cd3f1', checked: this.checked, name: this.label || this.value, label: this.label || this.value, "label-placement": "after", description: this.description, disabled: this.disabled, tabindex: "-1", role: "option", onCheckedChanged: this.onFieldcheckboxChanged })));
|
|
16946
17013
|
}
|
|
16947
17014
|
get el() { return getElement(this); }
|
|
16948
17015
|
static get style() { return NvFielddropdownitemcheckStyle0; }
|
|
@@ -17047,10 +17114,6 @@ class NvFieldmultiselect {
|
|
|
17047
17114
|
* The text entered by the user for filtering multiselect items.
|
|
17048
17115
|
*/
|
|
17049
17116
|
this.filterText = '';
|
|
17050
|
-
/**
|
|
17051
|
-
* Determines whether the multiselect is filterable.
|
|
17052
|
-
*/
|
|
17053
|
-
this.isFilterable = this.filterable;
|
|
17054
17117
|
/**
|
|
17055
17118
|
* Delay in milliseconds before the search is triggered when typing in the filter input.
|
|
17056
17119
|
* @default 300
|
|
@@ -17069,7 +17132,7 @@ class NvFieldmultiselect {
|
|
|
17069
17132
|
* element.
|
|
17070
17133
|
*/
|
|
17071
17134
|
this.autofocus = false;
|
|
17072
|
-
/**
|
|
17135
|
+
/**
|
|
17073
17136
|
* Handle badge close for options mode.
|
|
17074
17137
|
*/
|
|
17075
17138
|
this.handleBadgeCloseOptions = () => {
|
|
@@ -17109,7 +17172,6 @@ class NvFieldmultiselect {
|
|
|
17109
17172
|
if (this.isHandlingEscape) {
|
|
17110
17173
|
return;
|
|
17111
17174
|
}
|
|
17112
|
-
this.open = false;
|
|
17113
17175
|
this.filterText = '';
|
|
17114
17176
|
// Only reorder based on the mode
|
|
17115
17177
|
if (this.modeState === 'options') {
|
|
@@ -17131,7 +17193,6 @@ class NvFieldmultiselect {
|
|
|
17131
17193
|
if (!this.el.contains(document.activeElement)) {
|
|
17132
17194
|
// Close the popover without affecting the divider
|
|
17133
17195
|
this.open = false;
|
|
17134
|
-
this.popoverElement.hide();
|
|
17135
17196
|
// Reset filter if needed
|
|
17136
17197
|
if (this.filterable) {
|
|
17137
17198
|
this.filterText = '';
|
|
@@ -17151,7 +17212,6 @@ class NvFieldmultiselect {
|
|
|
17151
17212
|
const target = event.target;
|
|
17152
17213
|
if (target.tagName === 'P' || target.tagName === 'SPAN') {
|
|
17153
17214
|
this.open = true;
|
|
17154
|
-
this.popoverElement.show();
|
|
17155
17215
|
const inputContainer = this.el.querySelector('.input-container');
|
|
17156
17216
|
if (inputContainer) {
|
|
17157
17217
|
inputContainer.classList.add('focus-within');
|
|
@@ -17173,7 +17233,6 @@ class NvFieldmultiselect {
|
|
|
17173
17233
|
const target = event.target;
|
|
17174
17234
|
if (target.tagName === 'P' || target.tagName === 'SPAN') {
|
|
17175
17235
|
this.open = true;
|
|
17176
|
-
this.popoverElement.show();
|
|
17177
17236
|
const inputContainer = this.el.querySelector('.input-container');
|
|
17178
17237
|
if (inputContainer) {
|
|
17179
17238
|
inputContainer.classList.add('focus-within');
|
|
@@ -17255,7 +17314,6 @@ class NvFieldmultiselect {
|
|
|
17255
17314
|
if (!this.el.contains(document.activeElement)) {
|
|
17256
17315
|
// Close the popover without affecting the divider
|
|
17257
17316
|
this.open = false;
|
|
17258
|
-
this.popoverElement.hide();
|
|
17259
17317
|
// Reset filter if needed
|
|
17260
17318
|
if (this.filterable) {
|
|
17261
17319
|
this.filterText = '';
|
|
@@ -17271,16 +17329,7 @@ class NvFieldmultiselect {
|
|
|
17271
17329
|
if (this.disabled || this.readonly) {
|
|
17272
17330
|
return;
|
|
17273
17331
|
}
|
|
17274
|
-
|
|
17275
|
-
this.handlePopoverClose();
|
|
17276
|
-
}
|
|
17277
|
-
else {
|
|
17278
|
-
this.open = true;
|
|
17279
|
-
this.popoverElement.show();
|
|
17280
|
-
if (!this.filterable) {
|
|
17281
|
-
this.focusFirstItem();
|
|
17282
|
-
}
|
|
17283
|
-
}
|
|
17332
|
+
this.open = !this.open;
|
|
17284
17333
|
};
|
|
17285
17334
|
/**
|
|
17286
17335
|
* Toggle the multiselect popover for slots mode.
|
|
@@ -17289,16 +17338,7 @@ class NvFieldmultiselect {
|
|
|
17289
17338
|
if (this.disabled || this.readonly) {
|
|
17290
17339
|
return;
|
|
17291
17340
|
}
|
|
17292
|
-
|
|
17293
|
-
this.handlePopoverClose();
|
|
17294
|
-
}
|
|
17295
|
-
else {
|
|
17296
|
-
this.open = true;
|
|
17297
|
-
this.popoverElement.show();
|
|
17298
|
-
if (!this.filterable) {
|
|
17299
|
-
this.focusFirstItem();
|
|
17300
|
-
}
|
|
17301
|
-
}
|
|
17341
|
+
this.open = !this.open;
|
|
17302
17342
|
};
|
|
17303
17343
|
//#endregion METHODS
|
|
17304
17344
|
/****************************************************************************/
|
|
@@ -17308,14 +17348,14 @@ class NvFieldmultiselect {
|
|
|
17308
17348
|
* @returns {any} The JSX for options mode
|
|
17309
17349
|
*/
|
|
17310
17350
|
this.renderOptionsMode = () => {
|
|
17311
|
-
return (hAsync(Host, null, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { htmlFor: this.inputId }, hAsync("slot", { name: "label" }, this.label))), hAsync("nv-popover", { ref: el => (this.popoverElement = el), triggerMode: "controlled", placement: "bottom-start", open: this.open }, hAsync("div", { class: "input-wrapper-multiselect", slot: "trigger" }, hAsync("slot", { name: "before-input" }), hAsync("div", { class: "input-container-multiselect" }, hAsync("slot", { name: "leading-input" }), hAsync("nv-badge", { slot: "leading-input", "prevent-auto-close": true, color: "10", dismissible: this.selectedValues.length > 0,
|
|
17351
|
+
return (hAsync(Host, null, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { htmlFor: this.inputId }, hAsync("slot", { name: "label" }, this.label))), hAsync("nv-popover", { ref: el => (this.popoverElement = el), triggerMode: "controlled", placement: "bottom-start", open: this.open }, hAsync("div", { class: "input-wrapper-multiselect", slot: "trigger" }, hAsync("slot", { name: "before-input" }), hAsync("div", { class: "input-container-multiselect" }, hAsync("slot", { name: "leading-input" }), this.selectedValues.length > 0 && (hAsync("nv-badge", { slot: "leading-input", "prevent-auto-close": true, color: "10", dismissible: this.selectedValues.length > 0, label: `${this.selectedValues.length} ${this.badgeLabel}`, "aria-label": `Clear all ${this.selectedValues.length} ${this.badgeLabel} items`, onCloseClicked: this.handleBadgeCloseOptions })), this.filterable || this.disabled || this.readonly ? (hAsync("input", { type: "text", id: this.inputId, ref: e => (this.inputElement = e), autofocus: this.autofocus, autocomplete: this.autocomplete, placeholder: this.placeholder, name: this.name, value: this.value, required: this.required, disabled: this.disabled, readOnly: this.readonly, onInput: this.handleInputOptions, onFocus: this.handleInputFocusOptions, onBlur: this.handleInputBlurOptions, onKeyDown: this.handleKeyDown })) : (hAsync("p", { id: this.inputId, class: "non-filterable-text", onClick: this.handleInputContainerClickOptions, tabIndex: 0, onKeyDown: this.handleKeyDown, onFocus: this.handleInputFocusOptions, role: "combobox", "aria-expanded": this.open }, hAsync("span", null, this.value || this.placeholder))), this.error && (hAsync("nv-icon", { name: "alert-circle", class: "validation", size: "md" })), hAsync("nv-iconbutton", { "data-scope": "toggle-dropdown", name: this.open ? 'chevron-top' : 'chevron-down', size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide dropdown' : 'Show dropdown', "aria-pressed": this.open.toString(), onClick: this.togglePopoverOptions })), hAsync("slot", { name: "after-input" })), hAsync("div", { slot: "content", role: "listbox", "aria-multiselectable": "true", style: { 'max-height': this.maxHeight, 'overflow-y': 'auto' } }, hAsync("ul", { role: "content" }, this.parsedOptions.map(option => (hAsync("nv-fielddropdownitemcheck", { label: option.label, description: option.description, value: option.value, checked: this.selectedValues.includes(option.value), disabled: option.disabled }))), hAsync("hr", { class: "multiselect-divider", style: { display: 'none' } })))), this.renderDescriptions()));
|
|
17312
17352
|
};
|
|
17313
17353
|
/**
|
|
17314
17354
|
* Renders the component in slots mode
|
|
17315
17355
|
* @returns {any} The JSX for slots mode
|
|
17316
17356
|
*/
|
|
17317
17357
|
this.renderSlotsMode = () => {
|
|
17318
|
-
return (hAsync(Host, null, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { htmlFor: this.inputId }, hAsync("slot", { name: "label" }, this.label))), hAsync("nv-popover", { ref: el => (this.popoverElement = el), triggerMode: "controlled", placement: "bottom-start", open: this.open }, hAsync("div", { class: "input-wrapper-multiselect", slot: "trigger" }, hAsync("slot", { name: "before-input" }), hAsync("div", { class: "input-container-multiselect", onClick: this.handleInputContainerClickSlots }, hAsync("slot", { name: "leading-input" }), hAsync("nv-badge", { slot: "leading-input", "prevent-auto-close": true, color: "10", dismissible: this.selectedValues.length > 0,
|
|
17358
|
+
return (hAsync(Host, null, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { htmlFor: this.inputId }, hAsync("slot", { name: "label" }, this.label))), hAsync("nv-popover", { ref: el => (this.popoverElement = el), triggerMode: "controlled", placement: "bottom-start", open: this.open }, hAsync("div", { class: "input-wrapper-multiselect", slot: "trigger" }, hAsync("slot", { name: "before-input" }), hAsync("div", { class: "input-container-multiselect", onClick: this.handleInputContainerClickSlots }, hAsync("slot", { name: "leading-input" }), this.selectedValues.length > 0 && (hAsync("nv-badge", { slot: "leading-input", "prevent-auto-close": true, color: "10", dismissible: this.selectedValues.length > 0, label: `${this.selectedValues.length} ${this.badgeLabel}`, "aria-label": `Clear all ${this.selectedValues.length} ${this.badgeLabel} items`, onCloseClicked: this.handleBadgeCloseSlots })), this.filterable || this.disabled || this.readonly ? (hAsync("input", { id: this.inputId, ref: e => (this.inputElement = e), autocomplete: this.autocomplete, placeholder: this.placeholder, name: this.name, value: this.value, required: this.required, disabled: this.disabled, readOnly: this.readonly, onInput: this.handleInputSlots, onFocus: this.handleInputFocusSlots, onBlur: this.handleInputBlurSlots, onKeyDown: this.handleKeyDown })) : (hAsync("p", { id: this.inputId, class: "non-filterable-text", onClick: this.handleInputContainerClickSlots, tabIndex: 0, onKeyDown: this.handleKeyDown, onFocus: this.handleInputFocusSlots, role: "combobox", "aria-expanded": this.open }, hAsync("span", null, this.value || this.placeholder))), this.error && (hAsync("nv-icon", { name: "alert-circle", class: "validation", size: "md" })), hAsync("nv-iconbutton", { "data-scope": "toggle-dropdown", name: this.open ? 'chevron-top' : 'chevron-down', size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide dropdown' : 'Show dropdown', "aria-pressed": this.open.toString(), onClick: this.togglePopoverSlots })), hAsync("slot", { name: "after-input" })), hAsync("div", { slot: "content", role: "listbox", "aria-multiselectable": "true", style: { 'max-height': this.maxHeight, 'overflow-y': 'auto' } }, hAsync("slot", { name: "content" }))), this.renderDescriptions()));
|
|
17319
17359
|
};
|
|
17320
17360
|
}
|
|
17321
17361
|
//#endregion PROPERTIES
|
|
@@ -17336,14 +17376,6 @@ class NvFieldmultiselect {
|
|
|
17336
17376
|
if (this.modeState === 'options') {
|
|
17337
17377
|
this.handleOptionsChange(this.options);
|
|
17338
17378
|
}
|
|
17339
|
-
// Add the listener for the hide event
|
|
17340
|
-
requestAnimationFrame(() => {
|
|
17341
|
-
if (this.popoverElement) {
|
|
17342
|
-
this.popoverElement.addEventListener('hide', () => {
|
|
17343
|
-
this.handlePopoverClose();
|
|
17344
|
-
});
|
|
17345
|
-
}
|
|
17346
|
-
});
|
|
17347
17379
|
// Specific initialization for slots mode
|
|
17348
17380
|
if (this.modeState === 'slots') {
|
|
17349
17381
|
Promise.resolve().then(() => {
|
|
@@ -17387,12 +17419,6 @@ class NvFieldmultiselect {
|
|
|
17387
17419
|
*/
|
|
17388
17420
|
disconnectedCallback() {
|
|
17389
17421
|
document.removeEventListener('click', this.handleClickOutside.bind(this));
|
|
17390
|
-
// Remove the listener for the hide event
|
|
17391
|
-
if (this.popoverElement) {
|
|
17392
|
-
this.popoverElement.removeEventListener('hide', () => {
|
|
17393
|
-
this.handlePopoverClose();
|
|
17394
|
-
});
|
|
17395
|
-
}
|
|
17396
17422
|
}
|
|
17397
17423
|
/**
|
|
17398
17424
|
* Emitted when the input loses focus.
|
|
@@ -17402,15 +17428,13 @@ class NvFieldmultiselect {
|
|
|
17402
17428
|
// Update the open state of popover
|
|
17403
17429
|
this.open = event.detail;
|
|
17404
17430
|
if (this.open) {
|
|
17431
|
+
// Filter items only if there is filter text
|
|
17405
17432
|
if (this.filterText) {
|
|
17406
17433
|
this.filterItems();
|
|
17407
17434
|
}
|
|
17408
17435
|
}
|
|
17409
|
-
else if (this.modeState === 'options') {
|
|
17410
|
-
this.reorderOptionsContent();
|
|
17411
|
-
}
|
|
17412
17436
|
else {
|
|
17413
|
-
this.
|
|
17437
|
+
this.handlePopoverClose();
|
|
17414
17438
|
}
|
|
17415
17439
|
}
|
|
17416
17440
|
/**
|
|
@@ -17488,14 +17512,6 @@ class NvFieldmultiselect {
|
|
|
17488
17512
|
// Handle value change and update the corresponding multiselect item if it exists
|
|
17489
17513
|
this.setInitialSelection();
|
|
17490
17514
|
}
|
|
17491
|
-
/**
|
|
17492
|
-
* Emitted when the filterable property changes.
|
|
17493
|
-
* @param {boolean} newValue - The new value of the filterable property.
|
|
17494
|
-
*/
|
|
17495
|
-
watchFilterableHandler(newValue) {
|
|
17496
|
-
this.isFilterable = newValue;
|
|
17497
|
-
this.filterable = newValue;
|
|
17498
|
-
}
|
|
17499
17515
|
// Add a listener for the slot content
|
|
17500
17516
|
handleSlotChange(event) {
|
|
17501
17517
|
// Check: we only want to reorder if it's the "content" slot
|
|
@@ -17834,8 +17850,7 @@ class NvFieldmultiselect {
|
|
|
17834
17850
|
(this.inputElement && this.inputElement.contains(event.target))) {
|
|
17835
17851
|
return;
|
|
17836
17852
|
}
|
|
17837
|
-
|
|
17838
|
-
this.handlePopoverClose();
|
|
17853
|
+
this.open = false;
|
|
17839
17854
|
}
|
|
17840
17855
|
/**
|
|
17841
17856
|
* Handle keyboard events & arrow key navigation.
|
|
@@ -17847,7 +17862,6 @@ class NvFieldmultiselect {
|
|
|
17847
17862
|
if (!this.open) {
|
|
17848
17863
|
if (event.key === 'ArrowDown') {
|
|
17849
17864
|
this.open = true;
|
|
17850
|
-
this.popoverElement.show();
|
|
17851
17865
|
// Focus on the first item if the list is not filterable
|
|
17852
17866
|
if (!this.filterable) {
|
|
17853
17867
|
requestAnimationFrame(() => {
|
|
@@ -17910,7 +17924,6 @@ class NvFieldmultiselect {
|
|
|
17910
17924
|
setTimeout(() => {
|
|
17911
17925
|
this.isHandlingEscape = false;
|
|
17912
17926
|
this.open = false;
|
|
17913
|
-
this.popoverElement.hide();
|
|
17914
17927
|
}, 150);
|
|
17915
17928
|
if (this.inputElement) {
|
|
17916
17929
|
this.inputElement.blur();
|
|
@@ -18019,8 +18032,7 @@ class NvFieldmultiselect {
|
|
|
18019
18032
|
get el() { return getElement(this); }
|
|
18020
18033
|
static get watchers() { return {
|
|
18021
18034
|
"options": ["handleOptionsChange"],
|
|
18022
|
-
"value": ["watchValueHandler"]
|
|
18023
|
-
"filterable": ["watchFilterableHandler"]
|
|
18035
|
+
"value": ["watchValueHandler"]
|
|
18024
18036
|
}; }
|
|
18025
18037
|
static get style() { return NvFieldmultiselectStyle0; }
|
|
18026
18038
|
static get cmpMeta() { return {
|
|
@@ -18041,7 +18053,7 @@ class NvFieldmultiselect {
|
|
|
18041
18053
|
"readonly": [516],
|
|
18042
18054
|
"disabled": [516],
|
|
18043
18055
|
"autocomplete": [513],
|
|
18044
|
-
"filterable": [
|
|
18056
|
+
"filterable": [516],
|
|
18045
18057
|
"value": [1537],
|
|
18046
18058
|
"open": [1540],
|
|
18047
18059
|
"options": [513],
|
|
@@ -18051,7 +18063,6 @@ class NvFieldmultiselect {
|
|
|
18051
18063
|
"selectedValues": [32],
|
|
18052
18064
|
"sortedOptions": [32],
|
|
18053
18065
|
"filterText": [32],
|
|
18054
|
-
"isFilterable": [32],
|
|
18055
18066
|
"modeState": [32],
|
|
18056
18067
|
"isHandlingEscape": [32],
|
|
18057
18068
|
"getFilterText": [64],
|
|
@@ -18179,9 +18190,9 @@ class NvFieldnumber {
|
|
|
18179
18190
|
/****************************************************************************/
|
|
18180
18191
|
//#region RENDER
|
|
18181
18192
|
render() {
|
|
18182
|
-
return (hAsync(Host, { key: '
|
|
18183
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
18184
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
18193
|
+
return (hAsync(Host, { key: '99076502efb577ad65e43827f4d4959fb1f84055' }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '365821e9e3cb25367591680279f05d951f6a5fd9', htmlFor: this.inputId }, hAsync("slot", { key: '92273b991f6c6bd34fe6a302dedb808d46abb71d', name: "label" }, this.label))), hAsync("div", { key: 'ab849355fa1719ed40b5379a8aeee160f98ea798', class: "input-wrapper" }, hAsync("slot", { key: '71e4de7753f3880756cd763a7a8955832066d0e7', name: "before-input" }), hAsync("div", { key: '6da56e990c4ad0329c5d974868e9520cb5ac7a99', class: "input-container", onClick: this.handleInputContainerClick }, hAsync("slot", { key: 'd09eb9350067116d5236142951f0e7ed81d9aa5c', name: "leading-input" }), hAsync("input", { key: '6df1d2f3acb880000b57e5be990f6d843c7d3b2c', id: this.inputId, ref: e => (this.inputElement = e), placeholder: this.placeholder, name: this.name, type: "number", autofocus: this.autofocus, required: this.required, max: this.max, min: this.min, step: this.step, value: this.value, disabled: this.disabled, readOnly: this.readonly, onInput: this.handleInput }), this.error && (hAsync("nv-icon", { key: '85deaf9197825370d0bc7d81bd82cf9fd86b7a05', name: "alert-circle", class: "validation", size: "md" })), this.success && (hAsync("nv-icon", { key: '68ed66eb7a9af38f974e515d554eed6e3d28a915', name: "circle-check", class: "validation", size: "md" })), hAsync("div", { key: '16b0e4b303cce4ee7df29ea411e8fee808e5ddb0', class: "stepper" }, hAsync("nv-iconbutton", { key: '6dec84d7c05b467b5178177351e6fa769d2a9433', size: "md", name: "minus", emphasis: "lower", onClick: this.handleMinus, disabled: this.isMinValueReached(), onMouseDown: this.preventSelection, tabIndex: -1 }), hAsync("nv-iconbutton", { key: '66391588b961555aa20a1974098c114aadceadd1', size: "md", name: "plus", emphasis: "lower", onClick: this.handlePlus, disabled: this.isMaxValueReached(), onMouseDown: this.preventSelection, tabIndex: -1 }))), hAsync("slot", { key: '4549e591971e83d5d14f08b56a8d5357c5d6aaf0', name: "after-input" })), (this.description ||
|
|
18194
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'cef21ffaf75f976708d0c8b51f928daea26f1221', class: "description" }, hAsync("slot", { key: 'be36b7c3c6a606847805dc1a50f762a80155d695', name: "description" }, this.description))), (this.errorDescription ||
|
|
18195
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '91b5b8c969520bb10bccd59066ddea32d6fa58f3', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: '7e0729d42390a1fc62d320841de4e016e01e2485', name: "error-description" }, this.errorDescription)))));
|
|
18185
18196
|
}
|
|
18186
18197
|
static get formAssociated() { return true; }
|
|
18187
18198
|
get el() { return getElement(this); }
|
|
@@ -18290,10 +18301,6 @@ class NvFieldpassword {
|
|
|
18290
18301
|
* Show/hide the password programmatically.
|
|
18291
18302
|
*/
|
|
18292
18303
|
this.showPassword = false;
|
|
18293
|
-
/**
|
|
18294
|
-
* Defines whether the password is visible or not.
|
|
18295
|
-
*/
|
|
18296
|
-
this.showPasswordState = this.showPassword;
|
|
18297
18304
|
/**
|
|
18298
18305
|
* Applies focus to the input field as soon as the component is mounted. This
|
|
18299
18306
|
* is equivalent to setting the native autofocus attribute on an <input>
|
|
@@ -18320,11 +18327,17 @@ class NvFieldpassword {
|
|
|
18320
18327
|
}
|
|
18321
18328
|
//#endregion METHODS
|
|
18322
18329
|
/****************************************************************************/
|
|
18330
|
+
//#region LIFECYCLE
|
|
18331
|
+
componentWillLoad() {
|
|
18332
|
+
this.showPasswordState = this.showPassword;
|
|
18333
|
+
}
|
|
18334
|
+
//#endregion LIFECYCLE
|
|
18335
|
+
/****************************************************************************/
|
|
18323
18336
|
//#region RENDER
|
|
18324
18337
|
render() {
|
|
18325
|
-
return (hAsync(Host, { key: '
|
|
18326
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
18327
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
18338
|
+
return (hAsync(Host, { key: '79c87deb52017b4500b695a513dc4100e7359d97' }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: 'bd4785278a21ea61de41ed694e429228286f853b', htmlFor: this.inputId }, hAsync("slot", { key: '7c3cd8188e35aa00c0377ffdefb1d5e9c380ac59', name: "label" }, this.label))), hAsync("div", { key: '61f0e04b056ba1b08e9e3ede89d5975b4549705f', class: "input-wrapper" }, hAsync("slot", { key: '96070a1d584277de90962700a9e6764f0bd36a38', name: "before-input" }), hAsync("div", { key: 'ea04afadccfb828f5d081b1f30ef3d4619659b80', class: "input-container", onClick: this.handleInputContainerClick }, hAsync("slot", { key: 'cfd54cbdf3d9d03c31cdd781491097cc6db405bd', name: "leading-input" }), hAsync("input", { key: '04bf191014aef621d314973d531533ffa50d8b2f', id: this.inputId, ref: e => (this.inputElement = e), autofocus: this.autofocus, autocomplete: this.autocomplete, placeholder: this.placeholder, name: this.name, type: this.showPasswordState ? 'text' : 'password', inputMode: this.mode, value: this.value, required: this.required, maxlength: this.maxlength, minlength: this.minlength, pattern: this.pattern, disabled: this.disabled, readOnly: this.readonly, onInput: this.handleInput }), (this.success || this.error) && (hAsync("nv-icon", { key: 'b2e57a5f496bda92dbb877850e67ffb921a288df', name: this.success ? 'circle-check' : 'alert-circle', class: "validation", size: "md" })), !this.hidePasswordIcon && (hAsync("nv-iconbutton", { key: '2664cbcbfd7aa04a5292a6821fa79a1cb12e1578', name: this.showPasswordState ? 'eye' : 'eye-off', size: "md", emphasis: "lower", onClick: this.togglePasswordVisibility, "aria-label": this.showPasswordState ? 'Hide password' : 'Show password', "aria-pressed": this.showPasswordState.toString() }))), hAsync("slot", { key: '959a8d098548c85db4b1a8f9c0d2d8a8cdc5e386', name: "after-input" })), (this.description ||
|
|
18339
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'c7b85cb8d2f1f42d133e9937bccb8d3edd9d1cf8', class: "description" }, hAsync("slot", { key: 'fd41c7389e871ad4d57df283f9872c6964176bb3', name: "description" }, this.description))), (this.errorDescription ||
|
|
18340
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '014db98dbf132a493b8842ffcc45ced808e9f52c', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: '3909a8e0ac73dae4731e23806875f26bfb2185ff', name: "error-description" }, this.errorDescription)))));
|
|
18328
18341
|
}
|
|
18329
18342
|
static get formAssociated() { return true; }
|
|
18330
18343
|
get el() { return getElement(this); }
|
|
@@ -18451,9 +18464,9 @@ class NvFieldradio {
|
|
|
18451
18464
|
/****************************************************************************/
|
|
18452
18465
|
//#region RENDER
|
|
18453
18466
|
render() {
|
|
18454
|
-
return (hAsync(Host, { key: '
|
|
18455
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
18456
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
18467
|
+
return (hAsync(Host, { key: 'fd326df67c5617156ef00d50d789d3328584788e', class: clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, hAsync("input", { key: 'fae44c510d1f43c508a837b94cc16f8094617813', type: "radio", id: this.inputId, name: this.name, autofocus: this.autofocus, autocomplete: "off", value: this.value, checked: this.checked, disabled: this.disabled }), hAsync("div", { key: 'd4e9378e300691439bf57a580e8381a8142d8c78', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '56cdbda0feb823825f5ba5e125a478db23321379', htmlFor: this.inputId }, hAsync("slot", { key: '83e67f52228b7d6313fd35cd4a46edeeabc83a1b', name: "label" }, this.label))), (this.description ||
|
|
18468
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '8bb15a57d23f2826dfff31a7a3101ed263618e5f', class: "description" }, hAsync("slot", { key: '6d339430073e1eada1557ea762d9abeda7f338e1', name: "description" }, this.description))), (this.errorDescription ||
|
|
18469
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: 'd4b3c8ef17c70442839c61cf19bc0d9598be57c2', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: 'ca609be33a5253f85ed5101786c1981101f83743', name: "error-description" }, this.errorDescription))))));
|
|
18457
18470
|
}
|
|
18458
18471
|
static get formAssociated() { return true; }
|
|
18459
18472
|
get el() { return getElement(this); }
|
|
@@ -18833,13 +18846,13 @@ class NvFieldselect {
|
|
|
18833
18846
|
* @returns {HTMLStencilElement} The HTML element to render.
|
|
18834
18847
|
*/
|
|
18835
18848
|
render() {
|
|
18836
|
-
return (hAsync(Host, { key: '
|
|
18849
|
+
return (hAsync(Host, { key: '017364e5a5df156be42741e3acc4457414f8e6ee' }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '2e4b247018a759307ea5e3920a4066a2c1c14e92', htmlFor: this.inputId }, hAsync("slot", { key: '1bbad9d0b4be9fc35c0cc63859ba6dcdb4375377', name: "label" }, this.label))), hAsync("div", { key: '572073518f738014fd27d8de84fc856a01889636', class: "select-wrapper" }, hAsync("slot", { key: '490730d4fc16f78284a8ca40ab952870eb01b503', name: "before-input" }), hAsync("div", { key: 'a92ea3295f64ce1c6d8da5cf439d7c796493fdf5', class: "select-container", onClick: this.handleSelectContainerClick }, hAsync("slot", { key: 'f80e732415ec42a4c7b02922f1b50d2cf3950e88', name: "leading-input" }), this.internalReadonly && (hAsync("input", { key: 'b1ee7e799434d0e36d1f98031338137347bcedea', id: this.inputId + '-readonly', type: "text", value: this.computedDisplayValue, readonly: true, class: "readonly-input", "aria-readonly": "true", "aria-label": this.label, "aria-describedby": this.error
|
|
18837
18850
|
? `${this.inputId}-error`
|
|
18838
|
-
: `${this.inputId}-description` })), hAsync("select", { key: '
|
|
18851
|
+
: `${this.inputId}-description` })), hAsync("select", { key: '9a8b48a7a41522b09b65a5c76b7e861b5d6eef49', id: this.inputId, ref: el => (this.selectElement = el), name: this.name, autofocus: this.autofocus, disabled: this.disabled, required: this.required, multiple: this.multiple, onChange: this.handleSelectChange, class: this.internalReadonly ? 'hidden' : '', "aria-label": this.label, "aria-describedby": this.error
|
|
18839
18852
|
? `${this.inputId}-error`
|
|
18840
|
-
: `${this.inputId}-description` }, this.parsedOptions.length > 0 ? (this.parsedOptions.map(option => (hAsync("option", { value: option.value, selected: option.selected, disabled: option.disabled }, option.label)))) : (hAsync("slot", null))), hAsync("div", { key: '
|
|
18841
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
18842
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
18853
|
+
: `${this.inputId}-description` }, this.parsedOptions.length > 0 ? (this.parsedOptions.map(option => (hAsync("option", { value: option.value, selected: option.selected, disabled: option.disabled }, option.label)))) : (hAsync("slot", null))), hAsync("div", { key: '7ecac0a159ca2b4925b8a940c80f8aef94a2ca1d', class: "select-icons" }, this.error && (hAsync("nv-icon", { key: 'fd3d75a5c621a49f45550d9596f4910ef01a56b2', name: "alert-circle", class: "validation", size: "md" })), this.success && (hAsync("nv-icon", { key: '45b3e11a48f5f700ac9c21ba276ee9c93640d0d9', name: "circle-check", class: "validation", size: "md" })), !this.multiple && (hAsync("nv-iconbutton", { key: '07171fbe1fc88f4c7af0513ed718376ce1a1aeb3', name: "chevron-down", size: "md", emphasis: "lower", tabindex: -1 })))), hAsync("slot", { key: '096bf49c55359062fc790d31660b331a5988ad22', name: "after-input" })), (this.description ||
|
|
18854
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '7b292eeb3a1ca29b7cb1b631926b591183ab50fc', class: "description", id: `${this.inputId}-description` }, hAsync("slot", { key: 'a2fdc1929f7aa2571cd11d01e2c1ed165afb856c', name: "description" }, this.description))), (this.errorDescription ||
|
|
18855
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '3d189e87ff7cee9a43ccad85c6e84fcdb3343f1f', class: "error-description", id: `${this.inputId}-error` }, hAsync("slot", { key: '515059b75c8e2c1e600a28124135cbd7af87ccbf', name: "error-description" }, this.errorDescription)))));
|
|
18843
18856
|
}
|
|
18844
18857
|
static get formAssociated() { return true; }
|
|
18845
18858
|
get el() { return getElement(this); }
|
|
@@ -18992,9 +19005,9 @@ class NvFieldtext {
|
|
|
18992
19005
|
/****************************************************************************/
|
|
18993
19006
|
//#region RENDER
|
|
18994
19007
|
render() {
|
|
18995
|
-
return (hAsync(Host, { key: '
|
|
18996
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
18997
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
19008
|
+
return (hAsync(Host, { key: 'ffcbe1c8f14257f6380d28f2c50fe8b77ae73027' }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '3b84598a05eedc7625312def01ca726dc68fa247', htmlFor: this.inputId }, hAsync("slot", { key: '8c8f0d2f86742dd0699b8b309cbea0dca1d294ce', name: "label" }, this.label))), hAsync("div", { key: 'c2adf3acc7780a7eba5d4762b7275d1c63304bf5', class: "input-wrapper" }, hAsync("slot", { key: 'c49756d1daaba476222ebda2df4854b1094655b3', name: "before-input" }), hAsync("div", { key: '723c34f09e6c073bdef2db799246da72ffd52703', class: "input-container", onClick: this.handleInputContainerClick }, hAsync("slot", { key: '4e94bcac72ac2e5147a8d5e33396a13359820009', name: "leading-input" }), hAsync("input", { key: '96cbf022912735445467320600e372fba03de4e4', id: this.inputId, ref: e => (this.inputElement = e), placeholder: this.placeholder, name: this.name, type: this.type, disabled: this.disabled, readOnly: this.readonly, required: this.required, maxlength: this.maxlength, minlength: this.minlength, pattern: this.pattern, autofocus: this.autofocus, autocomplete: this.autocomplete, multiple: this.multiple, value: this.value, onInput: this.handleInput }), this.error && (hAsync("nv-icon", { key: '39a55c42a49006d316e5dcc5389793c6264d2b09', name: "alert-circle", class: "validation", size: "md" })), this.success && (hAsync("nv-icon", { key: 'bf1b6040dbb392b5c46b3b9af665d7cdc7389d29', name: "circle-check", class: "validation", size: "md" }))), hAsync("slot", { key: 'bb2256bf3fc5165e61f162fe89dd7be564a989c0', name: "after-input" })), (this.description ||
|
|
19009
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '3d2c5a89247042184b3a110ca7982b793b0bd86a', class: "description" }, hAsync("slot", { key: '2358cc5217d6ba65b4d4baa927b397dbe62982e8', name: "description" }, this.description))), (this.errorDescription ||
|
|
19010
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: 'cdef4117d71b8a6bdde19fea1a0f4070ba02ab2e', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: '66a2b100ab641aa9c2e22fdfc9a987bb86cd44a0', name: "error-description" }, this.errorDescription)))));
|
|
18998
19011
|
}
|
|
18999
19012
|
static get formAssociated() { return true; }
|
|
19000
19013
|
get el() { return getElement(this); }
|
|
@@ -19209,9 +19222,9 @@ class NvFieldtextarea {
|
|
|
19209
19222
|
/****************************************************************************/
|
|
19210
19223
|
//#region RENDER
|
|
19211
19224
|
render() {
|
|
19212
|
-
return (hAsync(Host, { key: '
|
|
19213
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
19214
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
19225
|
+
return (hAsync(Host, { key: 'b5d6707fa7ebbd64f3b1616c9f61746f394e347d' }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '6fd76411b08da2d22d86d0a4ef81ce99534d0112', htmlFor: this.inputId }, hAsync("slot", { key: '634339fa1bd5ccb2627dab03117535b2bc09b9cc', name: "label" }, this.label))), hAsync("div", { key: '6a521f191ebae60a874c4d48a1872b7a61181c54', class: "textarea-wrapper" }, hAsync("div", { key: 'ecca606c8775282c5b21b8f8e12a9c98df7aa410', class: "textarea-container", onClick: this.handleTextareaContainerClick }, hAsync("textarea", { key: '7547d01134c155c9f76e1978f08075d1e8ff50fd', id: this.inputId, ref: e => (this.textareaElement = e), placeholder: this.placeholder, autofocus: this.autofocus, name: this.name, disabled: this.disabled, readOnly: this.readonly, required: this.required, maxlength: this.maxlength, minlength: this.minlength, autocomplete: "off", value: this.value, onInput: this.handleTextarea, rows: this.rows, class: clsx(this.resize === 'none' && 'resize-none', this.resize === 'vertical' && 'resize-y', this.resize === 'horizontal' && 'resize-x', this.resize === 'both' && 'resize') }))), (this.description ||
|
|
19226
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'fc436e3cc4dbdf8730920173a74f4da249678e39', class: "description" }, hAsync("slot", { key: '27aa71e73818742bc92f3860dd0071eef182474a', name: "description" }, this.description))), (this.errorDescription ||
|
|
19227
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: 'cc3733783b2f5985358d1c21e502845f7bab8406', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: '1db584479ed23d616d88dc9fc28fe1e0acd7a463', name: "error-description" }, this.errorDescription)))));
|
|
19215
19228
|
}
|
|
19216
19229
|
static get formAssociated() { return true; }
|
|
19217
19230
|
get el() { return getElement(this); }
|
|
@@ -20235,26 +20248,26 @@ class NvFieldtime {
|
|
|
20235
20248
|
}, key: `${option}-${index}`, onClick: e => this.handleTimeOptionClick(e, type) }, option)))));
|
|
20236
20249
|
}
|
|
20237
20250
|
render() {
|
|
20238
|
-
return (hAsync(Host, { key: '
|
|
20239
|
-
hAsync("input", { key: '
|
|
20251
|
+
return (hAsync(Host, { key: 'd9b980ce6cf9d4c00da007608b03261983ae49b7', onclick: e => this.handleHostClick(e) }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: 'ff69b45e9b30ee4b0dd2034c1e29b698796f8796', htmlFor: this.inputId }, hAsync("slot", { key: '6cfd62e39f69451c326b5266a3c8b33520366ac7', name: "label" }, this.label))), hAsync("nv-popover", { key: 'f2c68b4286769203b9f4af8cc61375dc60795589', ref: el => (this.popoverElement = el), triggerMode: "controlled", placement: "bottom-start", open: this.open }, hAsync("div", { key: 'eb45e4d83e5d9754336bc7d03a2937931fa56378', class: "input-wrapper", slot: "trigger" }, hAsync("slot", { key: '644faecac37927eae57da8eb039a79154ebf5787', name: "before-input" }), hAsync("div", { key: '10b656c08d991100a5ef0fe87299af7a3d0a7831', class: "input-container" }, hAsync("slot", { key: '3908fc76c97f4a362974199f30bdc2535172e4dc', name: "leading-input" }), startsWithIgnoreCase(this.format, 'HH') && [
|
|
20252
|
+
hAsync("input", { key: 'b68e32193ab056a230138dfbb2d14240fa700b1d', ref: el => (this.inputElements[TimeType.Hours] = el), type: "number", autofocus: this.autofocus, class: "time-input", pattern: "[0-9]*", maxlength: "3", value: this.hours, onInput: e => this.handleInputChange(e, TimeType.Hours), placeholder: this.format.includes('hh') ? 'hh' : 'HH', inputMode: "numeric", onFocus: () => this.handleFocus(TimeType.Hours), name: this.name
|
|
20240
20253
|
? `${TimeType.Hours}-${this.name}`
|
|
20241
20254
|
: TimeType.Hours, id: this.inputId, readonly: this.readonly, disabled: this.disabled, required: this.required, onKeyDown: e => this.handleKeyDown(e), onBlur: () => this.handleInputBlur() }),
|
|
20242
20255
|
], this.format.includes('mm') && [
|
|
20243
|
-
hAsync("span", { key: '
|
|
20244
|
-
hAsync("input", { key: '
|
|
20256
|
+
hAsync("span", { key: 'ebef6f727c34aa8f9348c65c02ab970a409cce2e' }, ":"),
|
|
20257
|
+
hAsync("input", { key: 'd4aa6001b2f462d64eae1bdda7f46d97a926802e', ref: el => (this.inputElements[TimeType.Minutes] = el), type: "number", autofocus: this.autofocus, class: "time-input", pattern: "[0-9]*", maxlength: "3", value: this.minutes, onInput: e => this.handleInputChange(e, TimeType.Minutes), placeholder: "mm", inputMode: "numeric", onFocus: () => this.handleFocus(TimeType.Minutes), name: this.name
|
|
20245
20258
|
? `${TimeType.Minutes}-${this.name}`
|
|
20246
20259
|
: TimeType.Minutes, id: `${this.inputId}-minutes`, readonly: this.readonly, disabled: this.disabled, required: this.required, onKeyDown: e => this.handleKeyDown(e), onBlur: () => this.handleInputBlur() }),
|
|
20247
20260
|
], this.format.includes('ss') && [
|
|
20248
|
-
hAsync("span", { key: '
|
|
20249
|
-
hAsync("input", { key: '
|
|
20261
|
+
hAsync("span", { key: '9ce4067c241aae590f4cd4383b1ece3a7510a2c7' }, ":"),
|
|
20262
|
+
hAsync("input", { key: 'f42706c6e606c59e739b0460b9c9016c796542da', ref: el => (this.inputElements[TimeType.Seconds] = el), type: "number", autofocus: this.autofocus, class: "time-input", pattern: "[0-9]*", maxlength: "3", value: this.seconds, onInput: e => this.handleInputChange(e, TimeType.Seconds), placeholder: "ss", inputMode: "numeric", onFocus: () => this.handleFocus(TimeType.Seconds), name: this.name
|
|
20250
20263
|
? `${TimeType.Seconds}-${this.name}`
|
|
20251
20264
|
: TimeType.Seconds, id: `${this.inputId}-seconds`, readonly: this.readonly, disabled: this.disabled, required: this.required, onKeyDown: e => this.handleKeyDown(e), onBlur: () => this.handleInputBlur() }),
|
|
20252
|
-
], hAsync("nv-iconbutton", { key: '
|
|
20265
|
+
], hAsync("nv-iconbutton", { key: '4c233506c36553289c0e21d889e6c77c46e2862a', name: this.open ? 'chevron-top' : 'chevron-down', size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide time picker' : 'Show time picker', "aria-pressed": this.open.toString(), onClick: () => this.HandleDropdownIconClick() }), this.error && (hAsync("nv-icon", { key: '9dcf992cc15a5462269208daecec4dbfc7fc9183', name: "alert-circle", class: "validation", size: "sm" })), this.success && (hAsync("nv-icon", { key: '3614bfd444d8243c110bf2b458e0d2d5f296566f', name: "circle-check", class: "validation", size: "sm" }))), hAsync("slot", { key: 'e703a923e7c98e2d9fd5d69a5741f1f67c9710b4', name: "after-input" })), hAsync("div", { key: '6a56bd36fac3051ae1a40cbb450a51a415c00db2', class: "time-dropdown", slot: "content" }, hAsync("div", { key: 'c001e4f3afa3fadf49df9186ef38ac10ca3c1f70', class: "time-columns" }, startsWithIgnoreCase(this.format, 'HH') &&
|
|
20253
20266
|
this.RenderTimeOptionsColumn(TimeType.Hours), this.format.includes('mm') &&
|
|
20254
20267
|
this.RenderTimeOptionsColumn(TimeType.Minutes), this.format.includes('ss') &&
|
|
20255
20268
|
this.RenderTimeOptionsColumn(TimeType.Seconds)))), (this.description ||
|
|
20256
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
20257
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
20269
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '62782d291c7e065b79c91a51ebd61afcef60c058', class: "description" }, hAsync("slot", { key: '70d29b36d481bfc5ec8a9435e2eadf0007aa95c3', name: "description" }, this.description))), (this.errorDescription ||
|
|
20270
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '71818050156b31a39daf70e4cf8cb1a03f809458', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: 'cb7fb776375e7afaaa22ae90f8e6eb533e066e53', name: "error-description" }, this.errorDescription)))));
|
|
20258
20271
|
}
|
|
20259
20272
|
static get formAssociated() { return true; }
|
|
20260
20273
|
get el() { return getElement(this); }
|
|
@@ -20359,7 +20372,7 @@ class NvIcon {
|
|
|
20359
20372
|
/****************************************************************************/
|
|
20360
20373
|
//#region RENDER
|
|
20361
20374
|
render() {
|
|
20362
|
-
return (hAsync(Host, { key: '
|
|
20375
|
+
return (hAsync(Host, { key: 'a5d7dbfd9cf1be24ba19e8a8902a5a7adb89cc24', class: clsx(this.color && `${this.color}`), role: "img", "aria-label": `${this.name}-icon` }, hAsync("svg", { key: 'b35bc42c038fd288022e13650556086d1dc3604d', stroke: "currentColor", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: `nv-icon-${this.size}` }, hAsync("use", { key: '41833d3d27433422c859b513f28dc48a202d5919', href: `#${this.name}` }))));
|
|
20363
20376
|
}
|
|
20364
20377
|
static get style() { return NvIconStyle0; }
|
|
20365
20378
|
static get cmpMeta() { return {
|
|
@@ -20503,7 +20516,7 @@ class NvIconbutton {
|
|
|
20503
20516
|
/****************************************************************************/
|
|
20504
20517
|
//#region RENDER
|
|
20505
20518
|
render() {
|
|
20506
|
-
return (hAsync(Host, { key: '
|
|
20519
|
+
return (hAsync(Host, { key: 'e67f2cfb172fc315ea4d12290000cd92ff683e88', role: "button", type: this.type, tabindex: "0", disabled: this.disabled ? true : undefined, class: clsx('root', `size-${this.size}`, `emphasis-${this.emphasis}`, this.loading && 'loading', `shape-${this.shape}`), onClick: this.handleClick }, this.loading && hAsync("nv-loader", { key: '6477c82dcaa79147d03ae730d9ab2835959bcde6', size: this.size }), !this.loading && hAsync("nv-icon", { key: '8ffecf3db1d721ff88ba3c7b4e08543e48adedd5', name: this.name, size: this.size }), hAsync("slot", { key: 'c03cccb5aff47a9f758fc23b4e2226301d2d2fcc' })));
|
|
20507
20520
|
}
|
|
20508
20521
|
static get formAssociated() { return true; }
|
|
20509
20522
|
get el() { return getElement(this); }
|
|
@@ -20551,7 +20564,7 @@ class NvLoader {
|
|
|
20551
20564
|
//#region RENDER
|
|
20552
20565
|
/* <slot> empty to force rendering change */
|
|
20553
20566
|
render() {
|
|
20554
|
-
return (hAsync(Host, { key: '
|
|
20567
|
+
return (hAsync(Host, { key: '701552c6cf9126e60d81f844648ec1d29079fdd3', class: clsx(this.size && `size-${this.size}`, this.color && `color-${this.color}`) }));
|
|
20555
20568
|
}
|
|
20556
20569
|
static get style() { return NvLoaderStyle0; }
|
|
20557
20570
|
static get cmpMeta() { return {
|
|
@@ -20571,8 +20584,8 @@ const nvMenuCss = "nv-menuitem{display:flex;align-items:center;max-width:300px;w
|
|
|
20571
20584
|
var NvMenuStyle0 = nvMenuCss;
|
|
20572
20585
|
|
|
20573
20586
|
/**
|
|
20574
|
-
* @slot trigger -
|
|
20575
|
-
* @slot content -
|
|
20587
|
+
* @slot trigger - The button element that toggles the menu popover
|
|
20588
|
+
* @slot content - The content of the menu, should be wrapped in a ul element containing nv-menuitem elements
|
|
20576
20589
|
*/
|
|
20577
20590
|
class NvMenu {
|
|
20578
20591
|
constructor(hostRef) {
|
|
@@ -20597,8 +20610,8 @@ class NvMenu {
|
|
|
20597
20610
|
*/
|
|
20598
20611
|
this.disableCloseOnSelect = false;
|
|
20599
20612
|
/**
|
|
20600
|
-
* Decides where the menu shows up next to the button it
|
|
20601
|
-
* below, to the sides). If there isn
|
|
20613
|
+
* Decides where the menu shows up next to the button it's linked to (above,
|
|
20614
|
+
* below, to the sides). If there isn't enough room, it will adjust its
|
|
20602
20615
|
* position on the axis to fit on the screen, so users can always see it.
|
|
20603
20616
|
*/
|
|
20604
20617
|
this.placement = 'bottom-end';
|
|
@@ -20783,7 +20796,7 @@ class NvMenu {
|
|
|
20783
20796
|
});
|
|
20784
20797
|
}
|
|
20785
20798
|
render() {
|
|
20786
|
-
return (hAsync(Host, { key: '
|
|
20799
|
+
return (hAsync(Host, { key: '8334eee36cadee43d5d78d227841b43da86a46c6' }, hAsync("slot", { key: 'a4f260a9161dc239eabfc9c43178b1394721f37d', name: "trigger" }), hAsync("nv-popover", { key: '6f163bc5c02afba3af1e9bb43cf3b6bfec1e9374', ref: el => (this.popoverElement = el), triggerMode: "click", triggerElement: this.triggerElement, placement: this.placement, nested: this.nested, open: this.open }, this.parsedItems.length > 0 ? (hAsync("ul", { slot: "content" }, this.renderMenuItems(this.parsedItems))) : (hAsync("slot", { name: "content" })))));
|
|
20787
20800
|
}
|
|
20788
20801
|
get el() { return getElement(this); }
|
|
20789
20802
|
static get watchers() { return {
|
|
@@ -20858,7 +20871,7 @@ class NvMenuitem {
|
|
|
20858
20871
|
/****************************************************************************/
|
|
20859
20872
|
//#region RENDER
|
|
20860
20873
|
render() {
|
|
20861
|
-
return (hAsync(Host, { key: '
|
|
20874
|
+
return (hAsync(Host, { key: 'd1d9969a8e812f22d2097dca29b8e46b54115709', role: "menuitem", tabindex: this.disabled ? '-1' : '0' }, this.icon && hAsync("nv-icon", { key: '4dd5c1c2fdd741cec06ca112788d8d00863b0ac7', name: this.icon }), hAsync("slot", { key: '6030b5a030b46281d54ca139e55163e8ede064fe' }), this.label && hAsync("span", { key: 'f253f5eb0fed0853a46ed08c211a42bace1784f6', "data-scope": "text" }, this.label), this.shortcut && !this.hasSubmenu && hAsync("kbd", { key: 'b7c445db91af3ae3e2a845a839fee7c77a768045' }, this.shortcut), this.hasSubmenu && hAsync("nv-icon", { key: '54bcd0bc879136d542b5e2c4241949f623258ad0', name: "chevron-right" })));
|
|
20862
20875
|
}
|
|
20863
20876
|
get el() { return getElement(this); }
|
|
20864
20877
|
static get style() { return NvMenuitemStyle0; }
|
|
@@ -23008,9 +23021,11 @@ class NvPopover {
|
|
|
23008
23021
|
return;
|
|
23009
23022
|
if ((_a = this.triggerElement) === null || _a === void 0 ? void 0 : _a.contains(event.target))
|
|
23010
23023
|
return;
|
|
23011
|
-
this.
|
|
23024
|
+
this.open = false;
|
|
23012
23025
|
};
|
|
23013
|
-
this.clickEvents = [
|
|
23026
|
+
this.clickEvents = [
|
|
23027
|
+
['click', () => (this.open = !this.open)],
|
|
23028
|
+
];
|
|
23014
23029
|
this.outsideClickEvents = [
|
|
23015
23030
|
['click', this.handleClickOutside],
|
|
23016
23031
|
['touchstart', this.handleClickOutside],
|
|
@@ -23020,28 +23035,28 @@ class NvPopover {
|
|
|
23020
23035
|
'focus',
|
|
23021
23036
|
() => {
|
|
23022
23037
|
clearTimeout(this.hideTimeout);
|
|
23023
|
-
this.showTimeout = setTimeout(() => this.
|
|
23038
|
+
this.showTimeout = setTimeout(() => (this.open = true), this.enterDelay);
|
|
23024
23039
|
},
|
|
23025
23040
|
],
|
|
23026
23041
|
[
|
|
23027
23042
|
'blur',
|
|
23028
23043
|
() => {
|
|
23029
23044
|
clearTimeout(this.showTimeout);
|
|
23030
|
-
this.hideTimeout = setTimeout(() => this.
|
|
23045
|
+
this.hideTimeout = setTimeout(() => (this.open = false), 50);
|
|
23031
23046
|
},
|
|
23032
23047
|
],
|
|
23033
23048
|
[
|
|
23034
23049
|
'mouseenter',
|
|
23035
23050
|
() => {
|
|
23036
23051
|
clearTimeout(this.hideTimeout);
|
|
23037
|
-
this.showTimeout = setTimeout(() => this.
|
|
23052
|
+
this.showTimeout = setTimeout(() => (this.open = true), this.enterDelay);
|
|
23038
23053
|
},
|
|
23039
23054
|
],
|
|
23040
23055
|
[
|
|
23041
23056
|
'mouseleave',
|
|
23042
23057
|
() => {
|
|
23043
23058
|
clearTimeout(this.showTimeout);
|
|
23044
|
-
this.hideTimeout = setTimeout(() => this.
|
|
23059
|
+
this.hideTimeout = setTimeout(() => (this.open = false), 100);
|
|
23045
23060
|
},
|
|
23046
23061
|
],
|
|
23047
23062
|
];
|
|
@@ -23050,7 +23065,7 @@ class NvPopover {
|
|
|
23050
23065
|
'keydown',
|
|
23051
23066
|
(e) => {
|
|
23052
23067
|
if (e.key === 'Escape') {
|
|
23053
|
-
this.
|
|
23068
|
+
this.open = false;
|
|
23054
23069
|
}
|
|
23055
23070
|
},
|
|
23056
23071
|
],
|
|
@@ -23160,7 +23175,7 @@ class NvPopover {
|
|
|
23160
23175
|
return;
|
|
23161
23176
|
// This popover should close when another one is opened.
|
|
23162
23177
|
if (event.target !== this.el && event.detail === true)
|
|
23163
|
-
this.
|
|
23178
|
+
this.open = false;
|
|
23164
23179
|
}
|
|
23165
23180
|
async handleOpenChange(open) {
|
|
23166
23181
|
// Prevent multiple animations from running at the same time.
|
|
@@ -23241,7 +23256,7 @@ class NvPopover {
|
|
|
23241
23256
|
/****************************************************************************/
|
|
23242
23257
|
//#region RENDER
|
|
23243
23258
|
render() {
|
|
23244
|
-
return (hAsync(Host, { key: '
|
|
23259
|
+
return (hAsync(Host, { key: 'efab8d78e1163d23e197ca04786b9f99f248ce05' }, hAsync("slot", { key: 'b8197a385e5d9cda08d6b3e0232c052fb7238d01', name: "trigger" }), hAsync("div", { key: '480c3cc8352bc833216cd64c8bfcf75ba9c79130', "data-scope": "popover", hidden: true, ref: el => (this.popoverElement = el) }, this.hasArrow && (hAsync("div", { key: '8b1b10a15427ef05bc267460161e4a53be4cc3d1', "data-scope": "arrow", ref: el => (this.arrowElement = el) })), hAsync("slot", { key: '8c9a8708a36fae6cac5e533b5c1a3128d7375195', name: "content" }))));
|
|
23245
23260
|
}
|
|
23246
23261
|
get el() { return getElement(this); }
|
|
23247
23262
|
static get watchers() { return {
|
|
@@ -23286,7 +23301,7 @@ class NvRow {
|
|
|
23286
23301
|
/****************************************************************************/
|
|
23287
23302
|
//#region RENDER
|
|
23288
23303
|
render() {
|
|
23289
|
-
return (hAsync(Host, { key: '
|
|
23304
|
+
return (hAsync(Host, { key: '0b27560267e6f5186ca4237658ad35f3a436b70d' }, hAsync("slot", { key: 'b2805eb6abe9d02b57f030c91344ecf4927136d8' })));
|
|
23290
23305
|
}
|
|
23291
23306
|
static get style() { return NvRowStyle0; }
|
|
23292
23307
|
static get cmpMeta() { return {
|
|
@@ -23321,7 +23336,7 @@ class NvStack {
|
|
|
23321
23336
|
/****************************************************************************/
|
|
23322
23337
|
//#region RENDER
|
|
23323
23338
|
render() {
|
|
23324
|
-
return (hAsync(Host, { key: '
|
|
23339
|
+
return (hAsync(Host, { key: '9869c0eaa423e363482bd4685dbd082dfba017f5', class: clsx(this.fill && 'nv-stack-fill', this.flex && 'nv-stack-flex', this.full && 'w-full', this.gutter && !this.vertical && `gutter-x-${this.gutter}`, this.gutter && this.vertical && `gutter-y-${this.gutter}`, this.vertical && 'nv-stack-vertical') }, hAsync("slot", { key: 'd4b597ec95f71c47edf99d58d22c95a5540e904c' })));
|
|
23325
23340
|
}
|
|
23326
23341
|
static get style() { return NvStackStyle0; }
|
|
23327
23342
|
static get cmpMeta() { return {
|
|
@@ -23655,14 +23670,14 @@ class NvTable {
|
|
|
23655
23670
|
const rows = !this.table || this.table === undefined || this.parsedData.length === 0
|
|
23656
23671
|
? []
|
|
23657
23672
|
: this.table.data;
|
|
23658
|
-
return (hAsync(Host, { key: '
|
|
23673
|
+
return (hAsync(Host, { key: '89d230b38e5f853a9d8246b3634d25f3add88bb0' }, hAsync("div", { key: '130f44d0833635aec8eb1ff5db6f92f5342e39b4', class: "hidden" }, hAsync("slot", { key: 'e68523ead80fd187bfb0fc6710aaea42e1d9c4e7' })), hAsync("slot", { key: '087164f8a817d99091d54ed841b4faa5f01b215e', name: "before" }), this.parsedColumns.length === 0 && this.parsedData.length === 0 ? (hAsync("div", { class: "no-data" }, this.noColumnsNoDataMessage)) : (hAsync("table", { class: "table" }, this.parsedColumns.length > 0 && headerGroups.length > 0 && (hAsync("thead", { class: "table-header" }, hAsync("tr", null, headerGroups &&
|
|
23659
23674
|
headerGroups.map(col => {
|
|
23660
23675
|
return (hAsync("th", { key: col.name }, this.renderTemplate(this.headerTemplateCache.get(col.name), {}) || col.header));
|
|
23661
23676
|
})))), hAsync("tbody", { class: "table-body" }, !rows || rows.length === 0 ? (hAsync("tr", null, hAsync("td", { colSpan: headerGroups.length || 12, class: "no-data" }, this.noDataMessage))) : (rows.map(row => (hAsync("tr", { key: JSON.stringify(row) }, headerGroups.map(col => {
|
|
23662
23677
|
var _a;
|
|
23663
23678
|
return (hAsync("td", null, this.renderTemplate(this.templateCache.get(col.name), row) ||
|
|
23664
23679
|
((_a = row[col.name]) !== null && _a !== void 0 ? _a : this.fallbackValue)));
|
|
23665
|
-
})))))))), hAsync("slot", { key: '
|
|
23680
|
+
})))))))), hAsync("slot", { key: '046b1b705c5885eb2685a0e8780e6eec2f1ca50e', name: "after" })));
|
|
23666
23681
|
}
|
|
23667
23682
|
get el() { return getElement(this); }
|
|
23668
23683
|
static get watchers() { return {
|
|
@@ -23718,7 +23733,7 @@ class NvTablecolumn {
|
|
|
23718
23733
|
}; }
|
|
23719
23734
|
}
|
|
23720
23735
|
|
|
23721
|
-
const nvToggleCss = "nv-toggle{display:inline-flex;align-items:flex-start;gap:var(--form-gap-x);position:relative}nv-toggle:not([disabled],[readonly]) input,nv-toggle:not([disabled],[readonly]) label{cursor:pointer}nv-toggle.label-placement-before{flex-direction:row-reverse}nv-toggle[disabled]{opacity:0.5}nv-toggle label{align-self:stretch;color:var(--components-form-text-label-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-label-font-size);font-style:normal;font-weight:500;line-height:var(--form-label-line-height)}nv-toggle .input-container{position:relative;color:var(--components-form-shape-foreground-default)}nv-toggle .input-container:has(input[type=checkbox]:disabled:not([readonly])){color:var(--components-form-shape-foreground-disabled)}nv-toggle .input-container input[type=checkbox]{appearance:none;position:relative;display:flex;width:var(--form-toggle-width);height:var(--form-toggle-height);flex-direction:column;align-items:flex-start;border-radius:var(--form-toggle-radius);border-width:var(--form-toggle-border-width);border-style:solid;border-color:var(--components-form-field-border-default);background:var(--components-form-field-background-default)}nv-toggle .input-container input[type=checkbox]::after{content:\"\";display:block;width:var(--form-toggle-switch-dot-default);height:var(--form-toggle-switch-dot-default);background-color:var(--components-form-shape-foreground-switch-dot);border-radius:var(--radius-rounded-full);position:absolute;top:50%;left:25%;transform:translate(-50%, -50%)}nv-toggle .input-container input[type=checkbox]:hover{border-color:var(--components-form-field-border-hover)}nv-toggle .input-container input[type=checkbox]:focus{border-color:var(--components-form-field-border-default)}nv-toggle .input-container input[type=checkbox]:focus,nv-toggle .input-container input[type=checkbox]:focus-within{outline:none}nv-toggle .input-container input[type=checkbox]:focus-visible,nv-toggle .input-container input[type=checkbox]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-toggle .input-container input[type=checkbox]:checked{background:var(--components-form-field-background-checked);border-color:var(--components-form-field-background-checked)}nv-toggle .input-container input[type=checkbox]:checked::after{content:\"\";display:block;width:var(--form-toggle-switch-dot-default);height:var(--form-toggle-switch-dot-default);background-color:var(--components-form-shape-foreground-default);border-radius:var(--radius-rounded-full);position:absolute;top:50%;left:75%;transform:translate(-50%, -50%)}nv-toggle .input-container input[type=checkbox]:checked:focus{background:var(--components-form-field-background-checked);border-color:var(--components-form-field-border-focus)}nv-toggle .input-container input[type=checkbox]:disabled:not([readonly]){box-shadow:unset;background:var(--components-form-field-background-disabled);border-color:var(--components-form-field-border-default)}nv-toggle .input-container input[type=checkbox]:disabled:not([readonly]):checked::after{background-color:var(--components-form-shape-foreground-disabled)}nv-toggle .description{align-self:stretch;color:var(--components-form-text-description-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-description-font-size);font-style:normal;font-weight:450;line-height:var(--form-description-line-height)}nv-toggle .text-container{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0}";
|
|
23736
|
+
const nvToggleCss = "nv-toggle{display:inline-flex;align-items:flex-start;gap:var(--form-gap-x);position:relative}nv-toggle:not([disabled],[readonly]) input,nv-toggle:not([disabled],[readonly]) label{cursor:pointer}nv-toggle.label-placement-before{flex-direction:row-reverse}nv-toggle[disabled]{opacity:0.5}nv-toggle label{align-self:stretch;color:var(--components-form-text-label-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-label-font-size);font-style:normal;font-weight:500;line-height:var(--form-label-line-height)}nv-toggle label.visually-hidden{position:absolute;padding:0;border:0;overflow:hidden;white-space:nowrap;width:1px;height:1px;margin:-1px;clip:rect(0, 0, 0, 0)}nv-toggle .input-container{position:relative;color:var(--components-form-shape-foreground-default)}nv-toggle .input-container:has(input[type=checkbox]:disabled:not([readonly])){color:var(--components-form-shape-foreground-disabled)}nv-toggle .input-container input[type=checkbox]{appearance:none;position:relative;display:flex;width:var(--form-toggle-width);height:var(--form-toggle-height);flex-direction:column;align-items:flex-start;border-radius:var(--form-toggle-radius);border-width:var(--form-toggle-border-width);border-style:solid;border-color:var(--components-form-field-border-default);background:var(--components-form-field-background-default)}nv-toggle .input-container input[type=checkbox]::after{content:\"\";display:block;width:var(--form-toggle-switch-dot-default);height:var(--form-toggle-switch-dot-default);background-color:var(--components-form-shape-foreground-switch-dot);border-radius:var(--radius-rounded-full);position:absolute;top:50%;left:25%;transform:translate(-50%, -50%)}nv-toggle .input-container input[type=checkbox]:hover{border-color:var(--components-form-field-border-hover)}nv-toggle .input-container input[type=checkbox]:focus{border-color:var(--components-form-field-border-default)}nv-toggle .input-container input[type=checkbox]:focus,nv-toggle .input-container input[type=checkbox]:focus-within{outline:none}nv-toggle .input-container input[type=checkbox]:focus-visible,nv-toggle .input-container input[type=checkbox]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-toggle .input-container input[type=checkbox]:checked{background:var(--components-form-field-background-checked);border-color:var(--components-form-field-background-checked)}nv-toggle .input-container input[type=checkbox]:checked::after{content:\"\";display:block;width:var(--form-toggle-switch-dot-default);height:var(--form-toggle-switch-dot-default);background-color:var(--components-form-shape-foreground-default);border-radius:var(--radius-rounded-full);position:absolute;top:50%;left:75%;transform:translate(-50%, -50%)}nv-toggle .input-container input[type=checkbox]:checked:focus{background:var(--components-form-field-background-checked);border-color:var(--components-form-field-border-focus)}nv-toggle .input-container input[type=checkbox]:disabled:not([readonly]){box-shadow:unset;background:var(--components-form-field-background-disabled);border-color:var(--components-form-field-border-default)}nv-toggle .input-container input[type=checkbox]:disabled:not([readonly]):checked::after{background-color:var(--components-form-shape-foreground-disabled)}nv-toggle .description{align-self:stretch;color:var(--components-form-text-description-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-description-font-size);font-style:normal;font-weight:450;line-height:var(--form-description-line-height)}nv-toggle .text-container{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0}";
|
|
23722
23737
|
var NvToggleStyle0 = nvToggleCss;
|
|
23723
23738
|
|
|
23724
23739
|
/**
|
|
@@ -23782,8 +23797,8 @@ class NvToggle {
|
|
|
23782
23797
|
/****************************************************************************/
|
|
23783
23798
|
//#region RENDER
|
|
23784
23799
|
render() {
|
|
23785
|
-
return (hAsync(Host, { key: '
|
|
23786
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
23800
|
+
return (hAsync(Host, { key: '6e18c6145fccdf7926bcc64a2414e6b41d364487', class: clsx(this.labelPlacement === 'before' && 'label-placement-before') }, hAsync("div", { key: 'fda6ce7b087d1acef0f2afb24edbdc2566ca6cbf', class: "input-container" }, hAsync("input", { key: '53569ce97f75b7a2ac0c94a702096d3f9215432a', type: "checkbox", id: this.inputId, name: this.name, autocomplete: "off", value: this.value, checked: Boolean(this.checked), disabled: this.disabled || this.readonly, readonly: this.readonly })), hAsync("div", { key: '26f0a6f570b8ef4150d53a7733c832f1c5f4343d', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '5ff30cca4abfd0c2f4283eab6c7ae678653748d3', htmlFor: this.inputId, class: clsx(this.hideLabel && 'visually-hidden') }, hAsync("slot", { key: 'c6cc3536fa741fb89ebb24dfe455957b66edd77b', name: "label" }, this.label))), (this.description ||
|
|
23801
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '0b1804f9e5407f15037fb6e5c80d7b8dafee5599', class: "description" }, hAsync("slot", { key: '8f1b272158ffebb03992ed8c3b115e52504ff8ce', name: "description" }, this.description))))));
|
|
23787
23802
|
}
|
|
23788
23803
|
static get formAssociated() { return true; }
|
|
23789
23804
|
get el() { return getElement(this); }
|
|
@@ -23848,7 +23863,7 @@ class NvTooltip {
|
|
|
23848
23863
|
/****************************************************************************/
|
|
23849
23864
|
//#region RENDER
|
|
23850
23865
|
render() {
|
|
23851
|
-
return (hAsync(Host, { key: '
|
|
23866
|
+
return (hAsync(Host, { key: '42d55bd749a31fc808d6685b75b5002b10575b63' }, hAsync("slot", { key: '7ccb801774290a4e47c9bf6e61994936f0cb793e' }), hAsync("nv-popover", { key: '6c67ddae0787dbc9e24d239e3b34218dfa997747', triggerMode: "hover", hasArrow: true, placement: this.placement, triggerElement: this.triggerElement, groupName: 'tooltip', enterDelay: this.enterDelay }, hAsync("p", { key: '900d3a61fc7adb7aee3f9982d932c6e2f9889ab3', slot: "content" }, this.message), hAsync("slot", { key: '3f5e490d760e723271acef897cf4e0247ca7cd44', name: "content" }))));
|
|
23852
23867
|
}
|
|
23853
23868
|
get el() { return getElement(this); }
|
|
23854
23869
|
static get style() { return NvTooltipStyle0; }
|