@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.mjs
CHANGED
|
@@ -5274,12 +5274,12 @@ class NvAvatar {
|
|
|
5274
5274
|
}; }
|
|
5275
5275
|
}
|
|
5276
5276
|
|
|
5277
|
-
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)}";
|
|
5277
|
+
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)}";
|
|
5278
5278
|
var NvBadgeStyle0 = nvBadgeCss;
|
|
5279
5279
|
|
|
5280
5280
|
/**
|
|
5281
5281
|
* @slot leading-icon - Icon before the label.
|
|
5282
|
-
* @slot default -
|
|
5282
|
+
* @slot default - for custom content, for pure text use label instead.
|
|
5283
5283
|
*/
|
|
5284
5284
|
class NvBadge {
|
|
5285
5285
|
constructor(hostRef) {
|
|
@@ -5317,7 +5317,6 @@ class NvBadge {
|
|
|
5317
5317
|
* Controls the visibility of the badge. Will animate with fade and collapse.
|
|
5318
5318
|
*/
|
|
5319
5319
|
this.hidden = false; // eslint-disable-line @stencil-community/reserved-member-names
|
|
5320
|
-
this._isHidden = this.hidden;
|
|
5321
5320
|
/**
|
|
5322
5321
|
* When true, the alert does not automatically close upon dismissing.
|
|
5323
5322
|
* Useful for externally controlled component behavior.
|
|
@@ -5386,6 +5385,7 @@ class NvBadge {
|
|
|
5386
5385
|
this.leadIcon = this.icon;
|
|
5387
5386
|
}
|
|
5388
5387
|
if (this.hidden) {
|
|
5388
|
+
this._isHidden = true;
|
|
5389
5389
|
const { setCollapsed } = useCollapse(this.ref);
|
|
5390
5390
|
const { setFadeOut } = useFade(this.ref);
|
|
5391
5391
|
setCollapsed();
|
|
@@ -5396,10 +5396,11 @@ class NvBadge {
|
|
|
5396
5396
|
/****************************************************************************/
|
|
5397
5397
|
//#region RENDER
|
|
5398
5398
|
render() {
|
|
5399
|
-
return (hAsync(Host, { key: '
|
|
5399
|
+
return (hAsync(Host, { key: '8d97eed4a84f2f913e4f8cd64d08c806d9724f33', class: clsx(`badge-${this.color}`, {
|
|
5400
5400
|
'has-close': this.dismissible,
|
|
5401
|
+
'with-gap': this.dismissible || this.label,
|
|
5401
5402
|
'visually-hidden': this._isHidden,
|
|
5402
|
-
}) }, hAsync("slot", { key: '
|
|
5403
|
+
}) }, 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" })))));
|
|
5403
5404
|
}
|
|
5404
5405
|
get ref() { return getElement(this); }
|
|
5405
5406
|
static get watchers() { return {
|
|
@@ -5493,7 +5494,7 @@ class NvBaseComponent {
|
|
|
5493
5494
|
/****************************************************************************/
|
|
5494
5495
|
//#region RENDER
|
|
5495
5496
|
render() {
|
|
5496
|
-
return (hAsync(Host, { key: '
|
|
5497
|
+
return (hAsync(Host, { key: 'ba3d284241a61fa30bd434f563b7e4962ea3f238', style: { display: 'block' } }, hAsync("slot", { key: '44a0f1bc5267cf7e7bd0c1d258e8d9b8020a59f3' })));
|
|
5497
5498
|
}
|
|
5498
5499
|
get el() { return getElement(this); }
|
|
5499
5500
|
static get cmpMeta() { return {
|
|
@@ -5506,7 +5507,7 @@ class NvBaseComponent {
|
|
|
5506
5507
|
}; }
|
|
5507
5508
|
}
|
|
5508
5509
|
|
|
5509
|
-
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)}";
|
|
5510
|
+
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)}";
|
|
5510
5511
|
var NvBreadcrumbStyle0 = nvBreadcrumbCss;
|
|
5511
5512
|
|
|
5512
5513
|
/**
|
|
@@ -5538,7 +5539,7 @@ class NvBreadcrumb {
|
|
|
5538
5539
|
/****************************************************************************/
|
|
5539
5540
|
//#region RENDER
|
|
5540
5541
|
render() {
|
|
5541
|
-
return (hAsync(Host, { key: '
|
|
5542
|
+
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" }, "/")));
|
|
5542
5543
|
}
|
|
5543
5544
|
get el() { return getElement(this); }
|
|
5544
5545
|
static get style() { return NvBreadcrumbStyle0; }
|
|
@@ -5568,7 +5569,7 @@ class NvBreadcrumbs {
|
|
|
5568
5569
|
}
|
|
5569
5570
|
//#region RENDER
|
|
5570
5571
|
render() {
|
|
5571
|
-
return (hAsync(Host, { key: '
|
|
5572
|
+
return (hAsync(Host, { key: '5ab0f09cb86a92464ffcd06d8129543539bdcddf', role: "navigation", "aria-label": "breadcrumbs" }, hAsync("ol", { key: 'a7624a2400d9a91ec477694bbd3600960e198981' }, hAsync("slot", { key: '7c4102ceebe110377bf212e0695bdec6b455ea74' }))));
|
|
5572
5573
|
}
|
|
5573
5574
|
static get style() { return NvBreadcrumbsStyle0; }
|
|
5574
5575
|
static get cmpMeta() { return {
|
|
@@ -5653,14 +5654,16 @@ class NvButton {
|
|
|
5653
5654
|
* @param {Event} event - The click event.
|
|
5654
5655
|
*/
|
|
5655
5656
|
this.handleButtonClick = (event) => {
|
|
5657
|
+
var _a;
|
|
5656
5658
|
if (this.loading || this.disabled) {
|
|
5657
5659
|
event.preventDefault();
|
|
5658
5660
|
return;
|
|
5659
5661
|
}
|
|
5660
|
-
if (this.
|
|
5662
|
+
if (this.type !== ButtonType.Button &&
|
|
5663
|
+
(this.form || ((_a = this.internals) === null || _a === void 0 ? void 0 : _a.form))) {
|
|
5661
5664
|
this.processFormAction();
|
|
5662
5665
|
}
|
|
5663
|
-
else if (this.form) {
|
|
5666
|
+
else if (this.form && this.type === ButtonType.Button) {
|
|
5664
5667
|
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);
|
|
5665
5668
|
}
|
|
5666
5669
|
};
|
|
@@ -5730,7 +5733,7 @@ class NvButton {
|
|
|
5730
5733
|
/****************************************************************************/
|
|
5731
5734
|
//#region RENDER
|
|
5732
5735
|
render() {
|
|
5733
|
-
return (hAsync(Host, { key: '
|
|
5736
|
+
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" })));
|
|
5734
5737
|
}
|
|
5735
5738
|
static get formAssociated() { return true; }
|
|
5736
5739
|
get el() { return getElement(this); }
|
|
@@ -6785,7 +6788,7 @@ class NvCalendar {
|
|
|
6785
6788
|
* @slot default - Child content of the component.
|
|
6786
6789
|
*/
|
|
6787
6790
|
render() {
|
|
6788
|
-
return (hAsync(Host, { key: '
|
|
6791
|
+
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' })));
|
|
6789
6792
|
}
|
|
6790
6793
|
get el() { return getElement(this); }
|
|
6791
6794
|
static get watchers() { return {
|
|
@@ -6853,7 +6856,7 @@ class NvCol {
|
|
|
6853
6856
|
/****************************************************************************/
|
|
6854
6857
|
//#region RENDER
|
|
6855
6858
|
render() {
|
|
6856
|
-
return (hAsync(Host, { key: '
|
|
6859
|
+
return (hAsync(Host, { key: '8c6efe159aa3b9d853d07897e17045adabf5716c', class: clsx(this.getColSize()) }, hAsync("slot", { key: '5438e2dd941088fde68b17495a4d231cc56fba3c' })));
|
|
6857
6860
|
}
|
|
6858
6861
|
static get style() { return NvColStyle0; }
|
|
6859
6862
|
static get cmpMeta() { return {
|
|
@@ -10215,6 +10218,7 @@ class NvDatagrid {
|
|
|
10215
10218
|
this.parsedColumns = []; // Parsed array
|
|
10216
10219
|
this.parsedData = []; // Parsed array
|
|
10217
10220
|
this.globalFilter = '';
|
|
10221
|
+
this.columnData = [];
|
|
10218
10222
|
//#endregion STATES
|
|
10219
10223
|
/****************************************************************************/
|
|
10220
10224
|
//#region PROPERTIES
|
|
@@ -10258,6 +10262,12 @@ class NvDatagrid {
|
|
|
10258
10262
|
* @default false
|
|
10259
10263
|
*/
|
|
10260
10264
|
this.enableGlobalFilter = false;
|
|
10265
|
+
/**
|
|
10266
|
+
* Whether to automatically generate columns if none are provided.
|
|
10267
|
+
* If columns are explicitly set, this property is ignored.
|
|
10268
|
+
* @default false
|
|
10269
|
+
*/
|
|
10270
|
+
this.autoGenerateColumns = false;
|
|
10261
10271
|
this.debouncedFilter = debounce$1((value) => {
|
|
10262
10272
|
this.globalFilter = value;
|
|
10263
10273
|
}, 300);
|
|
@@ -10284,6 +10294,7 @@ class NvDatagrid {
|
|
|
10284
10294
|
*/
|
|
10285
10295
|
cacheTemplates() {
|
|
10286
10296
|
const columns = Array.from(this.el.querySelectorAll('nv-datagridcolumn'));
|
|
10297
|
+
this.columnData = [];
|
|
10287
10298
|
columns.forEach((col) => {
|
|
10288
10299
|
const key = col.accessor;
|
|
10289
10300
|
const cellSlot = col.querySelector('[slot="cell"]');
|
|
@@ -10304,6 +10315,12 @@ class NvDatagrid {
|
|
|
10304
10315
|
this.headerTemplateCache.set(key, headerDiv);
|
|
10305
10316
|
}
|
|
10306
10317
|
}
|
|
10318
|
+
const colData = {
|
|
10319
|
+
header: col.header,
|
|
10320
|
+
accessor: col.accessor,
|
|
10321
|
+
repeatTemplate: col.hasAttribute('repeat-template'),
|
|
10322
|
+
};
|
|
10323
|
+
this.columnData.push(colData);
|
|
10307
10324
|
});
|
|
10308
10325
|
}
|
|
10309
10326
|
parseDataAndColumns() {
|
|
@@ -10330,7 +10347,9 @@ class NvDatagrid {
|
|
|
10330
10347
|
accessor: key,
|
|
10331
10348
|
header: key.charAt(0).toUpperCase() + key.slice(1),
|
|
10332
10349
|
}));
|
|
10333
|
-
|
|
10350
|
+
if (this.autoGenerateColumns) {
|
|
10351
|
+
this.parseColumnsArray(arrayColumnsConfig, this.parsedColumns);
|
|
10352
|
+
}
|
|
10334
10353
|
}
|
|
10335
10354
|
}
|
|
10336
10355
|
deepEqual(a, b) {
|
|
@@ -10436,6 +10455,25 @@ class NvDatagrid {
|
|
|
10436
10455
|
tableOptions.columns = this.generateColumns(validColumns, tableOptions);
|
|
10437
10456
|
}
|
|
10438
10457
|
}
|
|
10458
|
+
else {
|
|
10459
|
+
// No columns and data is available
|
|
10460
|
+
const hasData = this.parsedData &&
|
|
10461
|
+
Array.isArray(this.parsedData) &&
|
|
10462
|
+
this.parsedData.length > 0;
|
|
10463
|
+
if (hasData) {
|
|
10464
|
+
// No columns and data is available
|
|
10465
|
+
const firstRow = this.parsedData[0];
|
|
10466
|
+
const arrayColumnsConfig = Object.keys(firstRow).map(key => ({
|
|
10467
|
+
accessor: key,
|
|
10468
|
+
header: key.charAt(0).toUpperCase() + key.slice(1),
|
|
10469
|
+
}));
|
|
10470
|
+
if (this.autoGenerateColumns) {
|
|
10471
|
+
this.parseColumnsArray(arrayColumnsConfig, this.parsedColumns);
|
|
10472
|
+
}
|
|
10473
|
+
tableOptions.data = this.getTableData();
|
|
10474
|
+
tableOptions.columns = this.generateColumns(arrayColumnsConfig, tableOptions);
|
|
10475
|
+
}
|
|
10476
|
+
}
|
|
10439
10477
|
// Initialize the table
|
|
10440
10478
|
this.table = createTable(tableOptions);
|
|
10441
10479
|
}
|
|
@@ -10564,7 +10602,25 @@ class NvDatagrid {
|
|
|
10564
10602
|
}
|
|
10565
10603
|
}
|
|
10566
10604
|
// Handle single-level key lookup
|
|
10567
|
-
|
|
10605
|
+
if (key in cellValue) {
|
|
10606
|
+
return String(cellValue[key]);
|
|
10607
|
+
}
|
|
10608
|
+
else if (Array.isArray(cellValue)) {
|
|
10609
|
+
// Handle array of objects
|
|
10610
|
+
const response = cellValue.map((item) => {
|
|
10611
|
+
if (typeof item !== 'object') {
|
|
10612
|
+
return item.toString();
|
|
10613
|
+
}
|
|
10614
|
+
else if (key in item) {
|
|
10615
|
+
return item[key];
|
|
10616
|
+
}
|
|
10617
|
+
else {
|
|
10618
|
+
return item.toString();
|
|
10619
|
+
}
|
|
10620
|
+
});
|
|
10621
|
+
return response.join(', ');
|
|
10622
|
+
}
|
|
10623
|
+
return this.fallbackValue;
|
|
10568
10624
|
}
|
|
10569
10625
|
// If cellValue is a primitive (string, number, boolean, etc.), return it as a string
|
|
10570
10626
|
return (_a = cellValue === null || cellValue === void 0 ? void 0 : cellValue.toString()) !== null && _a !== void 0 ? _a : this.fallbackValue;
|
|
@@ -10675,7 +10731,7 @@ class NvDatagrid {
|
|
|
10675
10731
|
const rows = !this.table || this.table === undefined || this.parsedData.length === 0
|
|
10676
10732
|
? []
|
|
10677
10733
|
: (_c = (_b = this.table) === null || _b === void 0 ? void 0 : _b.getRowModel()) === null || _c === void 0 ? void 0 : _c.rows;
|
|
10678
|
-
return (hAsync(Host, { key: '
|
|
10734
|
+
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
|
|
10679
10735
|
? headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups.map(headerGroup => (hAsync("tr", { key: headerGroup.id }, headerGroup.headers.map(header => {
|
|
10680
10736
|
return (hAsync("th", { key: header.id }, header.isPlaceholder
|
|
10681
10737
|
? null
|
|
@@ -10685,12 +10741,19 @@ class NvDatagrid {
|
|
|
10685
10741
|
const rowId = row.id;
|
|
10686
10742
|
const visibleCells = row === null || row === void 0 ? void 0 : row.getVisibleCells();
|
|
10687
10743
|
return (hAsync("tr", { key: rowId }, visibleCells.map(cell => {
|
|
10744
|
+
var _a, _b;
|
|
10688
10745
|
const cellAccessors = cell.column.id;
|
|
10689
10746
|
const cellValue = cell.getValue();
|
|
10690
|
-
return (hAsync("td", { key: cell.id, "data-row-id": rowId },
|
|
10691
|
-
|
|
10747
|
+
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)
|
|
10748
|
+
? cellValue.map((item) => {
|
|
10749
|
+
var _a;
|
|
10750
|
+
return (_a = (this.renderTemplate(this.templateCache.get(cellAccessors), item, row) ||
|
|
10751
|
+
item)) !== null && _a !== void 0 ? _a : this.fallbackValue;
|
|
10752
|
+
})
|
|
10753
|
+
: (_b = (this.renderTemplate(this.templateCache.get(cellAccessors), cellValue, row) ||
|
|
10754
|
+
cellValue)) !== null && _b !== void 0 ? _b : this.fallbackValue));
|
|
10692
10755
|
})));
|
|
10693
|
-
}))))), hAsync("slot", { key: '
|
|
10756
|
+
}))))), hAsync("slot", { key: '15815f259d3936559c89ff943dc349f99fda34fa', name: "after" })));
|
|
10694
10757
|
}
|
|
10695
10758
|
get el() { return getElement(this); }
|
|
10696
10759
|
static get watchers() { return {
|
|
@@ -10715,14 +10778,16 @@ class NvDatagrid {
|
|
|
10715
10778
|
"noDataMessage": [513, "no-data-message"],
|
|
10716
10779
|
"noColumnsNoDataMessage": [513, "no-columns-no-data-message"],
|
|
10717
10780
|
"enableGlobalFilter": [516, "enable-global-filter"],
|
|
10781
|
+
"autoGenerateColumns": [516, "auto-generate-columns"],
|
|
10718
10782
|
"table": [32],
|
|
10719
10783
|
"parsedColumns": [32],
|
|
10720
10784
|
"parsedData": [32],
|
|
10721
|
-
"globalFilter": [32]
|
|
10785
|
+
"globalFilter": [32],
|
|
10786
|
+
"columnData": [32]
|
|
10722
10787
|
},
|
|
10723
10788
|
"$listeners$": undefined,
|
|
10724
10789
|
"$lazyBundleId$": "-",
|
|
10725
|
-
"$attrsToReflect$": [["dataJson", "data-json"], ["columnsJson", "columns-json"], ["fallbackValue", "fallback-value"], ["noDataMessage", "no-data-message"], ["noColumnsNoDataMessage", "no-columns-no-data-message"], ["enableGlobalFilter", "enable-global-filter"]]
|
|
10790
|
+
"$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"]]
|
|
10726
10791
|
}; }
|
|
10727
10792
|
}
|
|
10728
10793
|
|
|
@@ -10733,23 +10798,28 @@ class NvDatagrid {
|
|
|
10733
10798
|
class NvDatagridcolumn {
|
|
10734
10799
|
constructor(hostRef) {
|
|
10735
10800
|
registerInstance(this, hostRef);
|
|
10801
|
+
/**
|
|
10802
|
+
* Whether the column need to be repeated with the template.
|
|
10803
|
+
*/
|
|
10804
|
+
this.repeatTemplate = false;
|
|
10736
10805
|
}
|
|
10737
10806
|
//#endregion PROPERTIES
|
|
10738
10807
|
/****************************************************************************/
|
|
10739
10808
|
//#region RENDER
|
|
10740
10809
|
render() {
|
|
10741
|
-
return (hAsync(Host, { key: '
|
|
10810
|
+
return (hAsync(Host, { key: '462144dc8ea401f4f3e3683bdafba983c7147737' }, hAsync("slot", { key: '9af4055567f5199f6b4393e37a8a77b884ce82b9', name: "header" }), hAsync("slot", { key: '36b8cfd9bc974ed9d2a249418ababa504b66091d', name: "cell" })));
|
|
10742
10811
|
}
|
|
10743
10812
|
static get cmpMeta() { return {
|
|
10744
10813
|
"$flags$": 4,
|
|
10745
10814
|
"$tagName$": "nv-datagridcolumn",
|
|
10746
10815
|
"$members$": {
|
|
10747
10816
|
"header": [513],
|
|
10748
|
-
"accessor": [513]
|
|
10817
|
+
"accessor": [513],
|
|
10818
|
+
"repeatTemplate": [516, "repeat-template"]
|
|
10749
10819
|
},
|
|
10750
10820
|
"$listeners$": undefined,
|
|
10751
10821
|
"$lazyBundleId$": "-",
|
|
10752
|
-
"$attrsToReflect$": [["header", "header"], ["accessor", "accessor"]]
|
|
10822
|
+
"$attrsToReflect$": [["header", "header"], ["accessor", "accessor"], ["repeatTemplate", "repeat-template"]]
|
|
10753
10823
|
}; }
|
|
10754
10824
|
}
|
|
10755
10825
|
|
|
@@ -11380,7 +11450,7 @@ var NvDialogStyle0 = nvDialogCss;
|
|
|
11380
11450
|
class NvDialog {
|
|
11381
11451
|
constructor(hostRef) {
|
|
11382
11452
|
registerInstance(this, hostRef);
|
|
11383
|
-
this.
|
|
11453
|
+
this.openChanged = createEvent(this, "openChanged", 7);
|
|
11384
11454
|
this.eventsAttached = false;
|
|
11385
11455
|
/**
|
|
11386
11456
|
* Use this prop to toggle the visibility of the dialog. Set to true to show
|
|
@@ -11407,24 +11477,25 @@ class NvDialog {
|
|
|
11407
11477
|
* Handles the close button click.
|
|
11408
11478
|
*/
|
|
11409
11479
|
this.handleCloseButton = () => {
|
|
11410
|
-
this.
|
|
11480
|
+
this.close();
|
|
11411
11481
|
};
|
|
11412
11482
|
/**
|
|
11413
11483
|
* Handles the cancel button click.
|
|
11414
11484
|
*/
|
|
11415
11485
|
this.handleCancelButton = () => {
|
|
11416
|
-
this.
|
|
11486
|
+
this.close();
|
|
11417
11487
|
};
|
|
11418
11488
|
/**
|
|
11419
|
-
* Handles the dialog close event.
|
|
11489
|
+
* Handles the native dialog close event.
|
|
11420
11490
|
*/
|
|
11421
11491
|
this.handleDialogClose = () => {
|
|
11422
|
-
this.
|
|
11423
|
-
|
|
11492
|
+
if (this.open) {
|
|
11493
|
+
this.close();
|
|
11494
|
+
}
|
|
11424
11495
|
};
|
|
11425
11496
|
this.handleClickOutside = (event) => {
|
|
11426
11497
|
if (event.target === this.dialogElement) {
|
|
11427
|
-
this.
|
|
11498
|
+
this.close();
|
|
11428
11499
|
event.preventDefault();
|
|
11429
11500
|
event.stopPropagation();
|
|
11430
11501
|
}
|
|
@@ -11450,17 +11521,20 @@ class NvDialog {
|
|
|
11450
11521
|
* Call this method to show the dialog, making it visible on the screen.
|
|
11451
11522
|
*/
|
|
11452
11523
|
async show() {
|
|
11524
|
+
this.open = true;
|
|
11453
11525
|
this.preventScroll();
|
|
11526
|
+
// 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.
|
|
11454
11527
|
this.dialogElement.showModal();
|
|
11455
|
-
this.open
|
|
11528
|
+
this.openChanged.emit(this.open);
|
|
11456
11529
|
}
|
|
11457
11530
|
/**
|
|
11458
11531
|
* Call this method to hide the dialog, making it disappear from view.
|
|
11459
11532
|
*/
|
|
11460
|
-
async
|
|
11533
|
+
async close() {
|
|
11534
|
+
this.open = false;
|
|
11461
11535
|
this.allowScroll();
|
|
11462
11536
|
this.dialogElement.close();
|
|
11463
|
-
this.open
|
|
11537
|
+
this.openChanged.emit(this.open);
|
|
11464
11538
|
}
|
|
11465
11539
|
/**
|
|
11466
11540
|
* Sets the autofocus on the first focusable element in the dialog.
|
|
@@ -11547,7 +11621,7 @@ class NvDialog {
|
|
|
11547
11621
|
this.show();
|
|
11548
11622
|
}
|
|
11549
11623
|
else {
|
|
11550
|
-
this.
|
|
11624
|
+
this.close();
|
|
11551
11625
|
}
|
|
11552
11626
|
}
|
|
11553
11627
|
//#endregion WATCHERS
|
|
@@ -11605,7 +11679,7 @@ class NvDialog {
|
|
|
11605
11679
|
//#region RENDER
|
|
11606
11680
|
render() {
|
|
11607
11681
|
const hasForm = this.form || this.el.querySelector('form');
|
|
11608
|
-
return (hAsync(Host, { key: '
|
|
11682
|
+
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 }))))));
|
|
11609
11683
|
}
|
|
11610
11684
|
get el() { return getElement(this); }
|
|
11611
11685
|
static get watchers() { return {
|
|
@@ -11625,7 +11699,7 @@ class NvDialog {
|
|
|
11625
11699
|
"controlled": [516],
|
|
11626
11700
|
"full": [516],
|
|
11627
11701
|
"show": [64],
|
|
11628
|
-
"
|
|
11702
|
+
"close": [64]
|
|
11629
11703
|
},
|
|
11630
11704
|
"$listeners$": [[4, "keydown", "handleKeyDown"], [4, "click", "handleDocumentClick"], [5, "touchstart", "handleDocumentTouch"]],
|
|
11631
11705
|
"$lazyBundleId$": "-",
|
|
@@ -11721,7 +11795,7 @@ class NvDialogfooter {
|
|
|
11721
11795
|
/****************************************************************************/
|
|
11722
11796
|
//#region RENDER
|
|
11723
11797
|
render() {
|
|
11724
|
-
return (hAsync(Host, { key: '
|
|
11798
|
+
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))));
|
|
11725
11799
|
}
|
|
11726
11800
|
static get formAssociated() { return true; }
|
|
11727
11801
|
get el() { return getElement(this); }
|
|
@@ -11777,7 +11851,7 @@ class NvDialogheader {
|
|
|
11777
11851
|
/****************************************************************************/
|
|
11778
11852
|
//#region RENDER
|
|
11779
11853
|
render() {
|
|
11780
|
-
return (hAsync(Host, { key: '
|
|
11854
|
+
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))));
|
|
11781
11855
|
}
|
|
11782
11856
|
get el() { return getElement(this); }
|
|
11783
11857
|
static get style() { return NvDialogheaderStyle0; }
|
|
@@ -11794,7 +11868,7 @@ class NvDialogheader {
|
|
|
11794
11868
|
}; }
|
|
11795
11869
|
}
|
|
11796
11870
|
|
|
11797
|
-
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)}";
|
|
11871
|
+
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)}";
|
|
11798
11872
|
var NvFieldcheckboxStyle0 = nvFieldcheckboxCss;
|
|
11799
11873
|
|
|
11800
11874
|
/**
|
|
@@ -11914,13 +11988,13 @@ class NvFieldcheckbox {
|
|
|
11914
11988
|
/****************************************************************************/
|
|
11915
11989
|
//#region RENDER
|
|
11916
11990
|
render() {
|
|
11917
|
-
return (hAsync(Host, { key: '
|
|
11991
|
+
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 => {
|
|
11918
11992
|
if (el) {
|
|
11919
11993
|
el.indeterminate = this.indeterminate;
|
|
11920
11994
|
}
|
|
11921
|
-
} }), hAsync("span", { key: '
|
|
11922
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
11923
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
11995
|
+
} }), 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 ||
|
|
11996
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '17fb2ed0060b24b1ef797efe34b53c94a755a1ac', class: "description" }, hAsync("slot", { key: '96d6c1b135f716de40c1223f35a479d3c8cc6c0d', name: "description" }, this.description))), (this.errorDescription ||
|
|
11997
|
+
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))))));
|
|
11924
11998
|
}
|
|
11925
11999
|
static get formAssociated() { return true; }
|
|
11926
12000
|
get el() { return getElement(this); }
|
|
@@ -15977,12 +16051,12 @@ class NvFielddate {
|
|
|
15977
16051
|
/****************************************************************************/
|
|
15978
16052
|
//#region RENDER
|
|
15979
16053
|
render() {
|
|
15980
|
-
return (hAsync(Host, { key: '
|
|
15981
|
-
this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '
|
|
16054
|
+
return (hAsync(Host, { key: 'c7df11a97881887a55ebcedcb2b92aa1ac24097e' }, ((this.label && this.label.length > 0) ||
|
|
16055
|
+
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'}
|
|
15982
16056
|
,
|
|
15983
|
-
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: '
|
|
15984
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
15985
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
16057
|
+
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) ||
|
|
16058
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'dee7ad7eaa2854756e616ef033264c4a2cf8f96c', class: "description" }, hAsync("slot", { key: '5556239ae6ed962cd2d51944d2f394f8d7741fb0', name: "description" }, this.description))), (this.errorDescription ||
|
|
16059
|
+
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' })));
|
|
15986
16060
|
}
|
|
15987
16061
|
get el() { return getElement(this); }
|
|
15988
16062
|
static get watchers() { return {
|
|
@@ -16364,15 +16438,15 @@ class NvFielddaterange {
|
|
|
16364
16438
|
/****************************************************************************/
|
|
16365
16439
|
//#region RENDER
|
|
16366
16440
|
render() {
|
|
16367
|
-
return (hAsync(Host, { key: '
|
|
16368
|
-
this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '
|
|
16441
|
+
return (hAsync(Host, { key: '357f98b39d7cade75f24caaba007eec4279cd24e' }, ((this.label && this.label.length > 0) ||
|
|
16442
|
+
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
|
|
16369
16443
|
? JSON.stringify({
|
|
16370
16444
|
start: this.startValue,
|
|
16371
16445
|
end: this.endValue,
|
|
16372
16446
|
})
|
|
16373
16447
|
: '', 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) ||
|
|
16374
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
16375
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
16448
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '15dbab39d7ceaf406246462812d8a1307dad40bb', class: "description" }, hAsync("slot", { key: '1c5f74676b312a6bbca659a783473da7c3936829', name: "description" }, this.description))), (this.errorDescription ||
|
|
16449
|
+
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' })));
|
|
16376
16450
|
}
|
|
16377
16451
|
get el() { return getElement(this); }
|
|
16378
16452
|
static get watchers() { return {
|
|
@@ -16499,7 +16573,6 @@ class NvFielddropdown {
|
|
|
16499
16573
|
//#region STATE
|
|
16500
16574
|
/** The text entered by the user for filtering dropdown items. */
|
|
16501
16575
|
this.filterText = '';
|
|
16502
|
-
this.isFilterable = this.filterable;
|
|
16503
16576
|
this.selectedValues = new Set();
|
|
16504
16577
|
/**
|
|
16505
16578
|
* Options configuration for the dropdown items.
|
|
@@ -16589,10 +16662,6 @@ class NvFielddropdown {
|
|
|
16589
16662
|
handleOpenChanged(event) {
|
|
16590
16663
|
this.open = event.detail; // Update `open` based on the popover state
|
|
16591
16664
|
}
|
|
16592
|
-
watchFilterableHandler(newValue) {
|
|
16593
|
-
this.isFilterable = newValue;
|
|
16594
|
-
this.filterable = newValue;
|
|
16595
|
-
}
|
|
16596
16665
|
watchValueHandler(newValue) {
|
|
16597
16666
|
this.valueChanged.emit(newValue);
|
|
16598
16667
|
}
|
|
@@ -16769,14 +16838,13 @@ class NvFielddropdown {
|
|
|
16769
16838
|
/****************************************************************************/
|
|
16770
16839
|
//#region RENDER
|
|
16771
16840
|
render() {
|
|
16772
|
-
return (hAsync(Host, { key: '
|
|
16773
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
16774
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
16841
|
+
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 ||
|
|
16842
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '3cb31c8bfb17db1862af12e817f6646480cd697c', class: "description" }, hAsync("slot", { key: '830538f4e63f9de6a613fcce23a80370d941e9da', name: "description" }, this.description))), (this.errorDescription ||
|
|
16843
|
+
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)))));
|
|
16775
16844
|
}
|
|
16776
16845
|
static get formAssociated() { return true; }
|
|
16777
16846
|
get el() { return getElement(this); }
|
|
16778
16847
|
static get watchers() { return {
|
|
16779
|
-
"filterable": ["watchFilterableHandler"],
|
|
16780
16848
|
"value": ["watchValueHandler"],
|
|
16781
16849
|
"options": ["handleOptionsChange"]
|
|
16782
16850
|
}; }
|
|
@@ -16799,11 +16867,10 @@ class NvFielddropdown {
|
|
|
16799
16867
|
"readonly": [516],
|
|
16800
16868
|
"disabled": [516],
|
|
16801
16869
|
"emptyResult": [513, "empty-result"],
|
|
16802
|
-
"filterable": [
|
|
16870
|
+
"filterable": [516],
|
|
16803
16871
|
"options": [513],
|
|
16804
16872
|
"autofocus": [516],
|
|
16805
16873
|
"filterText": [32],
|
|
16806
|
-
"isFilterable": [32],
|
|
16807
16874
|
"selectedValues": [32],
|
|
16808
16875
|
"parsedOptions": [32],
|
|
16809
16876
|
"getFilterText": [64]
|
|
@@ -16873,7 +16940,7 @@ class NvFielddropdownitem {
|
|
|
16873
16940
|
/****************************************************************************/
|
|
16874
16941
|
//#region RENDER
|
|
16875
16942
|
render() {
|
|
16876
|
-
return (hAsync(Host, { key: '
|
|
16943
|
+
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" }))));
|
|
16877
16944
|
}
|
|
16878
16945
|
get el() { return getElement(this); }
|
|
16879
16946
|
static get style() { return NvFielddropdownitemStyle0; }
|
|
@@ -16938,7 +17005,7 @@ class NvFielddropdownitemcheck {
|
|
|
16938
17005
|
};
|
|
16939
17006
|
}
|
|
16940
17007
|
render() {
|
|
16941
|
-
return (hAsync(Host, { key: '
|
|
17008
|
+
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 })));
|
|
16942
17009
|
}
|
|
16943
17010
|
get el() { return getElement(this); }
|
|
16944
17011
|
static get style() { return NvFielddropdownitemcheckStyle0; }
|
|
@@ -17043,10 +17110,6 @@ class NvFieldmultiselect {
|
|
|
17043
17110
|
* The text entered by the user for filtering multiselect items.
|
|
17044
17111
|
*/
|
|
17045
17112
|
this.filterText = '';
|
|
17046
|
-
/**
|
|
17047
|
-
* Determines whether the multiselect is filterable.
|
|
17048
|
-
*/
|
|
17049
|
-
this.isFilterable = this.filterable;
|
|
17050
17113
|
/**
|
|
17051
17114
|
* Delay in milliseconds before the search is triggered when typing in the filter input.
|
|
17052
17115
|
* @default 300
|
|
@@ -17065,7 +17128,7 @@ class NvFieldmultiselect {
|
|
|
17065
17128
|
* element.
|
|
17066
17129
|
*/
|
|
17067
17130
|
this.autofocus = false;
|
|
17068
|
-
/**
|
|
17131
|
+
/**
|
|
17069
17132
|
* Handle badge close for options mode.
|
|
17070
17133
|
*/
|
|
17071
17134
|
this.handleBadgeCloseOptions = () => {
|
|
@@ -17105,7 +17168,6 @@ class NvFieldmultiselect {
|
|
|
17105
17168
|
if (this.isHandlingEscape) {
|
|
17106
17169
|
return;
|
|
17107
17170
|
}
|
|
17108
|
-
this.open = false;
|
|
17109
17171
|
this.filterText = '';
|
|
17110
17172
|
// Only reorder based on the mode
|
|
17111
17173
|
if (this.modeState === 'options') {
|
|
@@ -17127,7 +17189,6 @@ class NvFieldmultiselect {
|
|
|
17127
17189
|
if (!this.el.contains(document.activeElement)) {
|
|
17128
17190
|
// Close the popover without affecting the divider
|
|
17129
17191
|
this.open = false;
|
|
17130
|
-
this.popoverElement.hide();
|
|
17131
17192
|
// Reset filter if needed
|
|
17132
17193
|
if (this.filterable) {
|
|
17133
17194
|
this.filterText = '';
|
|
@@ -17147,7 +17208,6 @@ class NvFieldmultiselect {
|
|
|
17147
17208
|
const target = event.target;
|
|
17148
17209
|
if (target.tagName === 'P' || target.tagName === 'SPAN') {
|
|
17149
17210
|
this.open = true;
|
|
17150
|
-
this.popoverElement.show();
|
|
17151
17211
|
const inputContainer = this.el.querySelector('.input-container');
|
|
17152
17212
|
if (inputContainer) {
|
|
17153
17213
|
inputContainer.classList.add('focus-within');
|
|
@@ -17169,7 +17229,6 @@ class NvFieldmultiselect {
|
|
|
17169
17229
|
const target = event.target;
|
|
17170
17230
|
if (target.tagName === 'P' || target.tagName === 'SPAN') {
|
|
17171
17231
|
this.open = true;
|
|
17172
|
-
this.popoverElement.show();
|
|
17173
17232
|
const inputContainer = this.el.querySelector('.input-container');
|
|
17174
17233
|
if (inputContainer) {
|
|
17175
17234
|
inputContainer.classList.add('focus-within');
|
|
@@ -17251,7 +17310,6 @@ class NvFieldmultiselect {
|
|
|
17251
17310
|
if (!this.el.contains(document.activeElement)) {
|
|
17252
17311
|
// Close the popover without affecting the divider
|
|
17253
17312
|
this.open = false;
|
|
17254
|
-
this.popoverElement.hide();
|
|
17255
17313
|
// Reset filter if needed
|
|
17256
17314
|
if (this.filterable) {
|
|
17257
17315
|
this.filterText = '';
|
|
@@ -17267,16 +17325,7 @@ class NvFieldmultiselect {
|
|
|
17267
17325
|
if (this.disabled || this.readonly) {
|
|
17268
17326
|
return;
|
|
17269
17327
|
}
|
|
17270
|
-
|
|
17271
|
-
this.handlePopoverClose();
|
|
17272
|
-
}
|
|
17273
|
-
else {
|
|
17274
|
-
this.open = true;
|
|
17275
|
-
this.popoverElement.show();
|
|
17276
|
-
if (!this.filterable) {
|
|
17277
|
-
this.focusFirstItem();
|
|
17278
|
-
}
|
|
17279
|
-
}
|
|
17328
|
+
this.open = !this.open;
|
|
17280
17329
|
};
|
|
17281
17330
|
/**
|
|
17282
17331
|
* Toggle the multiselect popover for slots mode.
|
|
@@ -17285,16 +17334,7 @@ class NvFieldmultiselect {
|
|
|
17285
17334
|
if (this.disabled || this.readonly) {
|
|
17286
17335
|
return;
|
|
17287
17336
|
}
|
|
17288
|
-
|
|
17289
|
-
this.handlePopoverClose();
|
|
17290
|
-
}
|
|
17291
|
-
else {
|
|
17292
|
-
this.open = true;
|
|
17293
|
-
this.popoverElement.show();
|
|
17294
|
-
if (!this.filterable) {
|
|
17295
|
-
this.focusFirstItem();
|
|
17296
|
-
}
|
|
17297
|
-
}
|
|
17337
|
+
this.open = !this.open;
|
|
17298
17338
|
};
|
|
17299
17339
|
//#endregion METHODS
|
|
17300
17340
|
/****************************************************************************/
|
|
@@ -17304,14 +17344,14 @@ class NvFieldmultiselect {
|
|
|
17304
17344
|
* @returns {any} The JSX for options mode
|
|
17305
17345
|
*/
|
|
17306
17346
|
this.renderOptionsMode = () => {
|
|
17307
|
-
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,
|
|
17347
|
+
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()));
|
|
17308
17348
|
};
|
|
17309
17349
|
/**
|
|
17310
17350
|
* Renders the component in slots mode
|
|
17311
17351
|
* @returns {any} The JSX for slots mode
|
|
17312
17352
|
*/
|
|
17313
17353
|
this.renderSlotsMode = () => {
|
|
17314
|
-
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,
|
|
17354
|
+
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()));
|
|
17315
17355
|
};
|
|
17316
17356
|
}
|
|
17317
17357
|
//#endregion PROPERTIES
|
|
@@ -17332,14 +17372,6 @@ class NvFieldmultiselect {
|
|
|
17332
17372
|
if (this.modeState === 'options') {
|
|
17333
17373
|
this.handleOptionsChange(this.options);
|
|
17334
17374
|
}
|
|
17335
|
-
// Add the listener for the hide event
|
|
17336
|
-
requestAnimationFrame(() => {
|
|
17337
|
-
if (this.popoverElement) {
|
|
17338
|
-
this.popoverElement.addEventListener('hide', () => {
|
|
17339
|
-
this.handlePopoverClose();
|
|
17340
|
-
});
|
|
17341
|
-
}
|
|
17342
|
-
});
|
|
17343
17375
|
// Specific initialization for slots mode
|
|
17344
17376
|
if (this.modeState === 'slots') {
|
|
17345
17377
|
Promise.resolve().then(() => {
|
|
@@ -17383,12 +17415,6 @@ class NvFieldmultiselect {
|
|
|
17383
17415
|
*/
|
|
17384
17416
|
disconnectedCallback() {
|
|
17385
17417
|
document.removeEventListener('click', this.handleClickOutside.bind(this));
|
|
17386
|
-
// Remove the listener for the hide event
|
|
17387
|
-
if (this.popoverElement) {
|
|
17388
|
-
this.popoverElement.removeEventListener('hide', () => {
|
|
17389
|
-
this.handlePopoverClose();
|
|
17390
|
-
});
|
|
17391
|
-
}
|
|
17392
17418
|
}
|
|
17393
17419
|
/**
|
|
17394
17420
|
* Emitted when the input loses focus.
|
|
@@ -17398,15 +17424,13 @@ class NvFieldmultiselect {
|
|
|
17398
17424
|
// Update the open state of popover
|
|
17399
17425
|
this.open = event.detail;
|
|
17400
17426
|
if (this.open) {
|
|
17427
|
+
// Filter items only if there is filter text
|
|
17401
17428
|
if (this.filterText) {
|
|
17402
17429
|
this.filterItems();
|
|
17403
17430
|
}
|
|
17404
17431
|
}
|
|
17405
|
-
else if (this.modeState === 'options') {
|
|
17406
|
-
this.reorderOptionsContent();
|
|
17407
|
-
}
|
|
17408
17432
|
else {
|
|
17409
|
-
this.
|
|
17433
|
+
this.handlePopoverClose();
|
|
17410
17434
|
}
|
|
17411
17435
|
}
|
|
17412
17436
|
/**
|
|
@@ -17484,14 +17508,6 @@ class NvFieldmultiselect {
|
|
|
17484
17508
|
// Handle value change and update the corresponding multiselect item if it exists
|
|
17485
17509
|
this.setInitialSelection();
|
|
17486
17510
|
}
|
|
17487
|
-
/**
|
|
17488
|
-
* Emitted when the filterable property changes.
|
|
17489
|
-
* @param {boolean} newValue - The new value of the filterable property.
|
|
17490
|
-
*/
|
|
17491
|
-
watchFilterableHandler(newValue) {
|
|
17492
|
-
this.isFilterable = newValue;
|
|
17493
|
-
this.filterable = newValue;
|
|
17494
|
-
}
|
|
17495
17511
|
// Add a listener for the slot content
|
|
17496
17512
|
handleSlotChange(event) {
|
|
17497
17513
|
// Check: we only want to reorder if it's the "content" slot
|
|
@@ -17830,8 +17846,7 @@ class NvFieldmultiselect {
|
|
|
17830
17846
|
(this.inputElement && this.inputElement.contains(event.target))) {
|
|
17831
17847
|
return;
|
|
17832
17848
|
}
|
|
17833
|
-
|
|
17834
|
-
this.handlePopoverClose();
|
|
17849
|
+
this.open = false;
|
|
17835
17850
|
}
|
|
17836
17851
|
/**
|
|
17837
17852
|
* Handle keyboard events & arrow key navigation.
|
|
@@ -17843,7 +17858,6 @@ class NvFieldmultiselect {
|
|
|
17843
17858
|
if (!this.open) {
|
|
17844
17859
|
if (event.key === 'ArrowDown') {
|
|
17845
17860
|
this.open = true;
|
|
17846
|
-
this.popoverElement.show();
|
|
17847
17861
|
// Focus on the first item if the list is not filterable
|
|
17848
17862
|
if (!this.filterable) {
|
|
17849
17863
|
requestAnimationFrame(() => {
|
|
@@ -17906,7 +17920,6 @@ class NvFieldmultiselect {
|
|
|
17906
17920
|
setTimeout(() => {
|
|
17907
17921
|
this.isHandlingEscape = false;
|
|
17908
17922
|
this.open = false;
|
|
17909
|
-
this.popoverElement.hide();
|
|
17910
17923
|
}, 150);
|
|
17911
17924
|
if (this.inputElement) {
|
|
17912
17925
|
this.inputElement.blur();
|
|
@@ -18015,8 +18028,7 @@ class NvFieldmultiselect {
|
|
|
18015
18028
|
get el() { return getElement(this); }
|
|
18016
18029
|
static get watchers() { return {
|
|
18017
18030
|
"options": ["handleOptionsChange"],
|
|
18018
|
-
"value": ["watchValueHandler"]
|
|
18019
|
-
"filterable": ["watchFilterableHandler"]
|
|
18031
|
+
"value": ["watchValueHandler"]
|
|
18020
18032
|
}; }
|
|
18021
18033
|
static get style() { return NvFieldmultiselectStyle0; }
|
|
18022
18034
|
static get cmpMeta() { return {
|
|
@@ -18037,7 +18049,7 @@ class NvFieldmultiselect {
|
|
|
18037
18049
|
"readonly": [516],
|
|
18038
18050
|
"disabled": [516],
|
|
18039
18051
|
"autocomplete": [513],
|
|
18040
|
-
"filterable": [
|
|
18052
|
+
"filterable": [516],
|
|
18041
18053
|
"value": [1537],
|
|
18042
18054
|
"open": [1540],
|
|
18043
18055
|
"options": [513],
|
|
@@ -18047,7 +18059,6 @@ class NvFieldmultiselect {
|
|
|
18047
18059
|
"selectedValues": [32],
|
|
18048
18060
|
"sortedOptions": [32],
|
|
18049
18061
|
"filterText": [32],
|
|
18050
|
-
"isFilterable": [32],
|
|
18051
18062
|
"modeState": [32],
|
|
18052
18063
|
"isHandlingEscape": [32],
|
|
18053
18064
|
"getFilterText": [64],
|
|
@@ -18175,9 +18186,9 @@ class NvFieldnumber {
|
|
|
18175
18186
|
/****************************************************************************/
|
|
18176
18187
|
//#region RENDER
|
|
18177
18188
|
render() {
|
|
18178
|
-
return (hAsync(Host, { key: '
|
|
18179
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
18180
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
18189
|
+
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 ||
|
|
18190
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'cef21ffaf75f976708d0c8b51f928daea26f1221', class: "description" }, hAsync("slot", { key: 'be36b7c3c6a606847805dc1a50f762a80155d695', name: "description" }, this.description))), (this.errorDescription ||
|
|
18191
|
+
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)))));
|
|
18181
18192
|
}
|
|
18182
18193
|
static get formAssociated() { return true; }
|
|
18183
18194
|
get el() { return getElement(this); }
|
|
@@ -18286,10 +18297,6 @@ class NvFieldpassword {
|
|
|
18286
18297
|
* Show/hide the password programmatically.
|
|
18287
18298
|
*/
|
|
18288
18299
|
this.showPassword = false;
|
|
18289
|
-
/**
|
|
18290
|
-
* Defines whether the password is visible or not.
|
|
18291
|
-
*/
|
|
18292
|
-
this.showPasswordState = this.showPassword;
|
|
18293
18300
|
/**
|
|
18294
18301
|
* Applies focus to the input field as soon as the component is mounted. This
|
|
18295
18302
|
* is equivalent to setting the native autofocus attribute on an <input>
|
|
@@ -18316,11 +18323,17 @@ class NvFieldpassword {
|
|
|
18316
18323
|
}
|
|
18317
18324
|
//#endregion METHODS
|
|
18318
18325
|
/****************************************************************************/
|
|
18326
|
+
//#region LIFECYCLE
|
|
18327
|
+
componentWillLoad() {
|
|
18328
|
+
this.showPasswordState = this.showPassword;
|
|
18329
|
+
}
|
|
18330
|
+
//#endregion LIFECYCLE
|
|
18331
|
+
/****************************************************************************/
|
|
18319
18332
|
//#region RENDER
|
|
18320
18333
|
render() {
|
|
18321
|
-
return (hAsync(Host, { key: '
|
|
18322
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
18323
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
18334
|
+
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 ||
|
|
18335
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'c7b85cb8d2f1f42d133e9937bccb8d3edd9d1cf8', class: "description" }, hAsync("slot", { key: 'fd41c7389e871ad4d57df283f9872c6964176bb3', name: "description" }, this.description))), (this.errorDescription ||
|
|
18336
|
+
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)))));
|
|
18324
18337
|
}
|
|
18325
18338
|
static get formAssociated() { return true; }
|
|
18326
18339
|
get el() { return getElement(this); }
|
|
@@ -18447,9 +18460,9 @@ class NvFieldradio {
|
|
|
18447
18460
|
/****************************************************************************/
|
|
18448
18461
|
//#region RENDER
|
|
18449
18462
|
render() {
|
|
18450
|
-
return (hAsync(Host, { key: '
|
|
18451
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
18452
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
18463
|
+
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 ||
|
|
18464
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '8bb15a57d23f2826dfff31a7a3101ed263618e5f', class: "description" }, hAsync("slot", { key: '6d339430073e1eada1557ea762d9abeda7f338e1', name: "description" }, this.description))), (this.errorDescription ||
|
|
18465
|
+
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))))));
|
|
18453
18466
|
}
|
|
18454
18467
|
static get formAssociated() { return true; }
|
|
18455
18468
|
get el() { return getElement(this); }
|
|
@@ -18829,13 +18842,13 @@ class NvFieldselect {
|
|
|
18829
18842
|
* @returns {HTMLStencilElement} The HTML element to render.
|
|
18830
18843
|
*/
|
|
18831
18844
|
render() {
|
|
18832
|
-
return (hAsync(Host, { key: '
|
|
18845
|
+
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
|
|
18833
18846
|
? `${this.inputId}-error`
|
|
18834
|
-
: `${this.inputId}-description` })), hAsync("select", { key: '
|
|
18847
|
+
: `${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
|
|
18835
18848
|
? `${this.inputId}-error`
|
|
18836
|
-
: `${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: '
|
|
18837
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
18838
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
18849
|
+
: `${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 ||
|
|
18850
|
+
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 ||
|
|
18851
|
+
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)))));
|
|
18839
18852
|
}
|
|
18840
18853
|
static get formAssociated() { return true; }
|
|
18841
18854
|
get el() { return getElement(this); }
|
|
@@ -18988,9 +19001,9 @@ class NvFieldtext {
|
|
|
18988
19001
|
/****************************************************************************/
|
|
18989
19002
|
//#region RENDER
|
|
18990
19003
|
render() {
|
|
18991
|
-
return (hAsync(Host, { key: '
|
|
18992
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
18993
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
19004
|
+
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 ||
|
|
19005
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '3d2c5a89247042184b3a110ca7982b793b0bd86a', class: "description" }, hAsync("slot", { key: '2358cc5217d6ba65b4d4baa927b397dbe62982e8', name: "description" }, this.description))), (this.errorDescription ||
|
|
19006
|
+
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)))));
|
|
18994
19007
|
}
|
|
18995
19008
|
static get formAssociated() { return true; }
|
|
18996
19009
|
get el() { return getElement(this); }
|
|
@@ -19205,9 +19218,9 @@ class NvFieldtextarea {
|
|
|
19205
19218
|
/****************************************************************************/
|
|
19206
19219
|
//#region RENDER
|
|
19207
19220
|
render() {
|
|
19208
|
-
return (hAsync(Host, { key: '
|
|
19209
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
19210
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
19221
|
+
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 ||
|
|
19222
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'fc436e3cc4dbdf8730920173a74f4da249678e39', class: "description" }, hAsync("slot", { key: '27aa71e73818742bc92f3860dd0071eef182474a', name: "description" }, this.description))), (this.errorDescription ||
|
|
19223
|
+
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)))));
|
|
19211
19224
|
}
|
|
19212
19225
|
static get formAssociated() { return true; }
|
|
19213
19226
|
get el() { return getElement(this); }
|
|
@@ -20231,26 +20244,26 @@ class NvFieldtime {
|
|
|
20231
20244
|
}, key: `${option}-${index}`, onClick: e => this.handleTimeOptionClick(e, type) }, option)))));
|
|
20232
20245
|
}
|
|
20233
20246
|
render() {
|
|
20234
|
-
return (hAsync(Host, { key: '
|
|
20235
|
-
hAsync("input", { key: '
|
|
20247
|
+
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') && [
|
|
20248
|
+
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
|
|
20236
20249
|
? `${TimeType.Hours}-${this.name}`
|
|
20237
20250
|
: TimeType.Hours, id: this.inputId, readonly: this.readonly, disabled: this.disabled, required: this.required, onKeyDown: e => this.handleKeyDown(e), onBlur: () => this.handleInputBlur() }),
|
|
20238
20251
|
], this.format.includes('mm') && [
|
|
20239
|
-
hAsync("span", { key: '
|
|
20240
|
-
hAsync("input", { key: '
|
|
20252
|
+
hAsync("span", { key: 'ebef6f727c34aa8f9348c65c02ab970a409cce2e' }, ":"),
|
|
20253
|
+
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
|
|
20241
20254
|
? `${TimeType.Minutes}-${this.name}`
|
|
20242
20255
|
: TimeType.Minutes, id: `${this.inputId}-minutes`, readonly: this.readonly, disabled: this.disabled, required: this.required, onKeyDown: e => this.handleKeyDown(e), onBlur: () => this.handleInputBlur() }),
|
|
20243
20256
|
], this.format.includes('ss') && [
|
|
20244
|
-
hAsync("span", { key: '
|
|
20245
|
-
hAsync("input", { key: '
|
|
20257
|
+
hAsync("span", { key: '9ce4067c241aae590f4cd4383b1ece3a7510a2c7' }, ":"),
|
|
20258
|
+
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
|
|
20246
20259
|
? `${TimeType.Seconds}-${this.name}`
|
|
20247
20260
|
: TimeType.Seconds, id: `${this.inputId}-seconds`, readonly: this.readonly, disabled: this.disabled, required: this.required, onKeyDown: e => this.handleKeyDown(e), onBlur: () => this.handleInputBlur() }),
|
|
20248
|
-
], hAsync("nv-iconbutton", { key: '
|
|
20261
|
+
], 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') &&
|
|
20249
20262
|
this.RenderTimeOptionsColumn(TimeType.Hours), this.format.includes('mm') &&
|
|
20250
20263
|
this.RenderTimeOptionsColumn(TimeType.Minutes), this.format.includes('ss') &&
|
|
20251
20264
|
this.RenderTimeOptionsColumn(TimeType.Seconds)))), (this.description ||
|
|
20252
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
20253
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
20265
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '62782d291c7e065b79c91a51ebd61afcef60c058', class: "description" }, hAsync("slot", { key: '70d29b36d481bfc5ec8a9435e2eadf0007aa95c3', name: "description" }, this.description))), (this.errorDescription ||
|
|
20266
|
+
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)))));
|
|
20254
20267
|
}
|
|
20255
20268
|
static get formAssociated() { return true; }
|
|
20256
20269
|
get el() { return getElement(this); }
|
|
@@ -20355,7 +20368,7 @@ class NvIcon {
|
|
|
20355
20368
|
/****************************************************************************/
|
|
20356
20369
|
//#region RENDER
|
|
20357
20370
|
render() {
|
|
20358
|
-
return (hAsync(Host, { key: '
|
|
20371
|
+
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}` }))));
|
|
20359
20372
|
}
|
|
20360
20373
|
static get style() { return NvIconStyle0; }
|
|
20361
20374
|
static get cmpMeta() { return {
|
|
@@ -20499,7 +20512,7 @@ class NvIconbutton {
|
|
|
20499
20512
|
/****************************************************************************/
|
|
20500
20513
|
//#region RENDER
|
|
20501
20514
|
render() {
|
|
20502
|
-
return (hAsync(Host, { key: '
|
|
20515
|
+
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' })));
|
|
20503
20516
|
}
|
|
20504
20517
|
static get formAssociated() { return true; }
|
|
20505
20518
|
get el() { return getElement(this); }
|
|
@@ -20547,7 +20560,7 @@ class NvLoader {
|
|
|
20547
20560
|
//#region RENDER
|
|
20548
20561
|
/* <slot> empty to force rendering change */
|
|
20549
20562
|
render() {
|
|
20550
|
-
return (hAsync(Host, { key: '
|
|
20563
|
+
return (hAsync(Host, { key: '701552c6cf9126e60d81f844648ec1d29079fdd3', class: clsx(this.size && `size-${this.size}`, this.color && `color-${this.color}`) }));
|
|
20551
20564
|
}
|
|
20552
20565
|
static get style() { return NvLoaderStyle0; }
|
|
20553
20566
|
static get cmpMeta() { return {
|
|
@@ -20567,8 +20580,8 @@ const nvMenuCss = "nv-menuitem{display:flex;align-items:center;max-width:300px;w
|
|
|
20567
20580
|
var NvMenuStyle0 = nvMenuCss;
|
|
20568
20581
|
|
|
20569
20582
|
/**
|
|
20570
|
-
* @slot trigger -
|
|
20571
|
-
* @slot content -
|
|
20583
|
+
* @slot trigger - The button element that toggles the menu popover
|
|
20584
|
+
* @slot content - The content of the menu, should be wrapped in a ul element containing nv-menuitem elements
|
|
20572
20585
|
*/
|
|
20573
20586
|
class NvMenu {
|
|
20574
20587
|
constructor(hostRef) {
|
|
@@ -20593,8 +20606,8 @@ class NvMenu {
|
|
|
20593
20606
|
*/
|
|
20594
20607
|
this.disableCloseOnSelect = false;
|
|
20595
20608
|
/**
|
|
20596
|
-
* Decides where the menu shows up next to the button it
|
|
20597
|
-
* below, to the sides). If there isn
|
|
20609
|
+
* Decides where the menu shows up next to the button it's linked to (above,
|
|
20610
|
+
* below, to the sides). If there isn't enough room, it will adjust its
|
|
20598
20611
|
* position on the axis to fit on the screen, so users can always see it.
|
|
20599
20612
|
*/
|
|
20600
20613
|
this.placement = 'bottom-end';
|
|
@@ -20779,7 +20792,7 @@ class NvMenu {
|
|
|
20779
20792
|
});
|
|
20780
20793
|
}
|
|
20781
20794
|
render() {
|
|
20782
|
-
return (hAsync(Host, { key: '
|
|
20795
|
+
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" })))));
|
|
20783
20796
|
}
|
|
20784
20797
|
get el() { return getElement(this); }
|
|
20785
20798
|
static get watchers() { return {
|
|
@@ -20854,7 +20867,7 @@ class NvMenuitem {
|
|
|
20854
20867
|
/****************************************************************************/
|
|
20855
20868
|
//#region RENDER
|
|
20856
20869
|
render() {
|
|
20857
|
-
return (hAsync(Host, { key: '
|
|
20870
|
+
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" })));
|
|
20858
20871
|
}
|
|
20859
20872
|
get el() { return getElement(this); }
|
|
20860
20873
|
static get style() { return NvMenuitemStyle0; }
|
|
@@ -23004,9 +23017,11 @@ class NvPopover {
|
|
|
23004
23017
|
return;
|
|
23005
23018
|
if ((_a = this.triggerElement) === null || _a === void 0 ? void 0 : _a.contains(event.target))
|
|
23006
23019
|
return;
|
|
23007
|
-
this.
|
|
23020
|
+
this.open = false;
|
|
23008
23021
|
};
|
|
23009
|
-
this.clickEvents = [
|
|
23022
|
+
this.clickEvents = [
|
|
23023
|
+
['click', () => (this.open = !this.open)],
|
|
23024
|
+
];
|
|
23010
23025
|
this.outsideClickEvents = [
|
|
23011
23026
|
['click', this.handleClickOutside],
|
|
23012
23027
|
['touchstart', this.handleClickOutside],
|
|
@@ -23016,28 +23031,28 @@ class NvPopover {
|
|
|
23016
23031
|
'focus',
|
|
23017
23032
|
() => {
|
|
23018
23033
|
clearTimeout(this.hideTimeout);
|
|
23019
|
-
this.showTimeout = setTimeout(() => this.
|
|
23034
|
+
this.showTimeout = setTimeout(() => (this.open = true), this.enterDelay);
|
|
23020
23035
|
},
|
|
23021
23036
|
],
|
|
23022
23037
|
[
|
|
23023
23038
|
'blur',
|
|
23024
23039
|
() => {
|
|
23025
23040
|
clearTimeout(this.showTimeout);
|
|
23026
|
-
this.hideTimeout = setTimeout(() => this.
|
|
23041
|
+
this.hideTimeout = setTimeout(() => (this.open = false), 50);
|
|
23027
23042
|
},
|
|
23028
23043
|
],
|
|
23029
23044
|
[
|
|
23030
23045
|
'mouseenter',
|
|
23031
23046
|
() => {
|
|
23032
23047
|
clearTimeout(this.hideTimeout);
|
|
23033
|
-
this.showTimeout = setTimeout(() => this.
|
|
23048
|
+
this.showTimeout = setTimeout(() => (this.open = true), this.enterDelay);
|
|
23034
23049
|
},
|
|
23035
23050
|
],
|
|
23036
23051
|
[
|
|
23037
23052
|
'mouseleave',
|
|
23038
23053
|
() => {
|
|
23039
23054
|
clearTimeout(this.showTimeout);
|
|
23040
|
-
this.hideTimeout = setTimeout(() => this.
|
|
23055
|
+
this.hideTimeout = setTimeout(() => (this.open = false), 100);
|
|
23041
23056
|
},
|
|
23042
23057
|
],
|
|
23043
23058
|
];
|
|
@@ -23046,7 +23061,7 @@ class NvPopover {
|
|
|
23046
23061
|
'keydown',
|
|
23047
23062
|
(e) => {
|
|
23048
23063
|
if (e.key === 'Escape') {
|
|
23049
|
-
this.
|
|
23064
|
+
this.open = false;
|
|
23050
23065
|
}
|
|
23051
23066
|
},
|
|
23052
23067
|
],
|
|
@@ -23156,7 +23171,7 @@ class NvPopover {
|
|
|
23156
23171
|
return;
|
|
23157
23172
|
// This popover should close when another one is opened.
|
|
23158
23173
|
if (event.target !== this.el && event.detail === true)
|
|
23159
|
-
this.
|
|
23174
|
+
this.open = false;
|
|
23160
23175
|
}
|
|
23161
23176
|
async handleOpenChange(open) {
|
|
23162
23177
|
// Prevent multiple animations from running at the same time.
|
|
@@ -23237,7 +23252,7 @@ class NvPopover {
|
|
|
23237
23252
|
/****************************************************************************/
|
|
23238
23253
|
//#region RENDER
|
|
23239
23254
|
render() {
|
|
23240
|
-
return (hAsync(Host, { key: '
|
|
23255
|
+
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" }))));
|
|
23241
23256
|
}
|
|
23242
23257
|
get el() { return getElement(this); }
|
|
23243
23258
|
static get watchers() { return {
|
|
@@ -23282,7 +23297,7 @@ class NvRow {
|
|
|
23282
23297
|
/****************************************************************************/
|
|
23283
23298
|
//#region RENDER
|
|
23284
23299
|
render() {
|
|
23285
|
-
return (hAsync(Host, { key: '
|
|
23300
|
+
return (hAsync(Host, { key: '0b27560267e6f5186ca4237658ad35f3a436b70d' }, hAsync("slot", { key: 'b2805eb6abe9d02b57f030c91344ecf4927136d8' })));
|
|
23286
23301
|
}
|
|
23287
23302
|
static get style() { return NvRowStyle0; }
|
|
23288
23303
|
static get cmpMeta() { return {
|
|
@@ -23317,7 +23332,7 @@ class NvStack {
|
|
|
23317
23332
|
/****************************************************************************/
|
|
23318
23333
|
//#region RENDER
|
|
23319
23334
|
render() {
|
|
23320
|
-
return (hAsync(Host, { key: '
|
|
23335
|
+
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' })));
|
|
23321
23336
|
}
|
|
23322
23337
|
static get style() { return NvStackStyle0; }
|
|
23323
23338
|
static get cmpMeta() { return {
|
|
@@ -23651,14 +23666,14 @@ class NvTable {
|
|
|
23651
23666
|
const rows = !this.table || this.table === undefined || this.parsedData.length === 0
|
|
23652
23667
|
? []
|
|
23653
23668
|
: this.table.data;
|
|
23654
|
-
return (hAsync(Host, { key: '
|
|
23669
|
+
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 &&
|
|
23655
23670
|
headerGroups.map(col => {
|
|
23656
23671
|
return (hAsync("th", { key: col.name }, this.renderTemplate(this.headerTemplateCache.get(col.name), {}) || col.header));
|
|
23657
23672
|
})))), 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 => {
|
|
23658
23673
|
var _a;
|
|
23659
23674
|
return (hAsync("td", null, this.renderTemplate(this.templateCache.get(col.name), row) ||
|
|
23660
23675
|
((_a = row[col.name]) !== null && _a !== void 0 ? _a : this.fallbackValue)));
|
|
23661
|
-
})))))))), hAsync("slot", { key: '
|
|
23676
|
+
})))))))), hAsync("slot", { key: '046b1b705c5885eb2685a0e8780e6eec2f1ca50e', name: "after" })));
|
|
23662
23677
|
}
|
|
23663
23678
|
get el() { return getElement(this); }
|
|
23664
23679
|
static get watchers() { return {
|
|
@@ -23714,7 +23729,7 @@ class NvTablecolumn {
|
|
|
23714
23729
|
}; }
|
|
23715
23730
|
}
|
|
23716
23731
|
|
|
23717
|
-
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}";
|
|
23732
|
+
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}";
|
|
23718
23733
|
var NvToggleStyle0 = nvToggleCss;
|
|
23719
23734
|
|
|
23720
23735
|
/**
|
|
@@ -23778,8 +23793,8 @@ class NvToggle {
|
|
|
23778
23793
|
/****************************************************************************/
|
|
23779
23794
|
//#region RENDER
|
|
23780
23795
|
render() {
|
|
23781
|
-
return (hAsync(Host, { key: '
|
|
23782
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
23796
|
+
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 ||
|
|
23797
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '0b1804f9e5407f15037fb6e5c80d7b8dafee5599', class: "description" }, hAsync("slot", { key: '8f1b272158ffebb03992ed8c3b115e52504ff8ce', name: "description" }, this.description))))));
|
|
23783
23798
|
}
|
|
23784
23799
|
static get formAssociated() { return true; }
|
|
23785
23800
|
get el() { return getElement(this); }
|
|
@@ -23844,7 +23859,7 @@ class NvTooltip {
|
|
|
23844
23859
|
/****************************************************************************/
|
|
23845
23860
|
//#region RENDER
|
|
23846
23861
|
render() {
|
|
23847
|
-
return (hAsync(Host, { key: '
|
|
23862
|
+
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" }))));
|
|
23848
23863
|
}
|
|
23849
23864
|
get el() { return getElement(this); }
|
|
23850
23865
|
static get style() { return NvTooltipStyle0; }
|