@nova-design-system/nova-react 3.0.0-beta.44 → 3.0.0-beta.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-CIcUUomJ.js → index-S09Gr7Tw.js} +113 -119
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/{nv-alert.entry-BVY_rxey.js → nv-alert.entry-DH8Qd2s2.js} +1 -1
- package/dist/cjs/{nv-avatar.entry-CFgnor0-.js → nv-avatar.entry-B3-elLZC.js} +1 -1
- package/dist/cjs/{nv-badge_2.entry-Drgx-565.js → nv-badge_2.entry-D15EDzX0.js} +2 -2
- package/dist/cjs/{nv-base.entry-DwtTXK_n.js → nv-base.entry-D-_RUZTX.js} +1 -1
- package/dist/cjs/{nv-breadcrumb.entry-B0hIeE83.js → nv-breadcrumb.entry-DG49Nj1L.js} +2 -2
- package/dist/cjs/{nv-breadcrumbs.entry-Cq0LsIFs.js → nv-breadcrumbs.entry-BqJO5pbN.js} +1 -1
- package/dist/cjs/{nv-button.entry-B3rEQuGV.js → nv-button.entry-CN9kB98T.js} +6 -4
- package/dist/cjs/{nv-calendar.entry-NU1TumeS.js → nv-calendar.entry-CMEgSU64.js} +1 -1
- package/dist/cjs/{nv-col.entry-B5nCHhbO.js → nv-col.entry-wcZ9HHAb.js} +1 -1
- package/dist/cjs/{nv-datagrid.entry-5VIvkJGL.js → nv-datagrid.entry-GCLeN2qT.js} +31 -4
- package/dist/cjs/{nv-datagridcolumn.entry-BeGXaBUe.js → nv-datagridcolumn.entry-lgIz71UU.js} +1 -1
- package/dist/cjs/{nv-dialog.entry-BgHknrOx.js → nv-dialog.entry-DfY0TaYp.js} +17 -13
- package/dist/cjs/{nv-dialogfooter_2.entry-Ck6adFfd.js → nv-dialogfooter_2.entry-OByWsulH.js} +1 -1
- package/dist/cjs/{nv-fieldcheckbox.entry-dBYg7CBU.js → nv-fieldcheckbox.entry-Bqpe9BK3.js} +2 -2
- package/dist/cjs/{nv-fielddate.entry-DRX2mfZL.js → nv-fielddate.entry-DJePv6tR.js} +1 -1
- package/dist/cjs/{nv-fielddaterange.entry-DTLKVIqg.js → nv-fielddaterange.entry--YC750sX.js} +1 -1
- package/dist/cjs/{nv-fielddropdown.entry-akfp1Bcy.js → nv-fielddropdown.entry-BPlTlc_S.js} +1 -1
- package/dist/cjs/{nv-fielddropdownitem.entry-BscNyhXz.js → nv-fielddropdownitem.entry-zwoGySum.js} +1 -1
- package/dist/cjs/{nv-fieldmultiselect.entry-BGzYCJuF.js → nv-fieldmultiselect.entry-Bg_v0LUF.js} +7 -49
- package/dist/cjs/{nv-fieldnumber.entry-_UiieYov.js → nv-fieldnumber.entry-BLNaq7yr.js} +1 -1
- package/dist/cjs/{nv-fieldpassword.entry-D4a8SnGr.js → nv-fieldpassword.entry-iSEdS5R8.js} +1 -1
- package/dist/cjs/{nv-fieldradio.entry-aRAaLwpK.js → nv-fieldradio.entry-Dov4vZkh.js} +1 -1
- package/dist/cjs/{nv-fieldselect.entry-sTbv_flF.js → nv-fieldselect.entry-NmpesarX.js} +1 -1
- package/dist/cjs/{nv-fieldtext.entry-B1TlZWjU.js → nv-fieldtext.entry-r6oQajRS.js} +1 -1
- package/dist/cjs/{nv-fieldtextarea.entry-BwJCUiVW.js → nv-fieldtextarea.entry-CJ2yQkfi.js} +1 -1
- package/dist/cjs/{nv-fieldtime.entry-uU-IET2k.js → nv-fieldtime.entry-Bxoj6N53.js} +1 -1
- package/dist/cjs/{nv-icon.entry-BfRAl2b6.js → nv-icon.entry-CWKRt8F0.js} +1 -1
- package/dist/cjs/{nv-iconbutton_2.entry-D8MI5uzP.js → nv-iconbutton_2.entry-CnbscpNn.js} +1 -1
- package/dist/cjs/{nv-menu.entry-D3qvf_0H.js → nv-menu.entry-wC7oSruP.js} +1 -1
- package/dist/cjs/{nv-menuitem.entry-DkIG5z-x.js → nv-menuitem.entry-BVSa1vrS.js} +1 -1
- package/dist/cjs/{nv-popover.entry-C57rfYUn.js → nv-popover.entry-ChP1we3l.js} +12 -10
- package/dist/cjs/{nv-row.entry-Bwzlub3i.js → nv-row.entry-D6FeFpzG.js} +1 -1
- package/dist/cjs/{nv-stack.entry-bhess4lQ.js → nv-stack.entry-zjJmztkO.js} +1 -1
- package/dist/cjs/{nv-table.entry-mEtRfake.js → nv-table.entry-CGX0jsR3.js} +1 -1
- package/dist/cjs/{nv-tablecolumn.entry-BDCw_45v.js → nv-tablecolumn.entry-Cwdmo_RY.js} +1 -1
- package/dist/cjs/{nv-toggle.entry-DXpNGkbz.js → nv-toggle.entry-BvToMkI2.js} +2 -2
- package/dist/cjs/{nv-tooltip.entry-BuSwME_F.js → nv-tooltip.entry-DZ7_lB-p.js} +1 -1
- package/dist/generated/components.js +1 -1
- package/dist/types/generated/components.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/index-BZCQTWfv.js +0 -26372
- package/dist/cjs/index-B_VOAJzk.js +0 -26373
- package/dist/cjs/index-C8UfzrMI.js +0 -26405
- package/dist/cjs/index-CDe7nrrW.js +0 -26373
- package/dist/cjs/index-CEWbQ5nh.js +0 -26373
- package/dist/cjs/index-CinzsZ8D.js +0 -26405
- package/dist/cjs/index-CtI3SivD.js +0 -26373
- package/dist/cjs/index-wDACGzKb.js +0 -26373
- package/dist/cjs/nv-alert.entry-8esWDUyU.js +0 -173
- package/dist/cjs/nv-alert.entry-B-P-Fgdo.js +0 -173
- package/dist/cjs/nv-alert.entry-B3NpZh1C.js +0 -173
- package/dist/cjs/nv-alert.entry-BU86GY-d.js +0 -173
- package/dist/cjs/nv-alert.entry-CwZcD170.js +0 -173
- package/dist/cjs/nv-alert.entry-CxSN1zpW.js +0 -173
- package/dist/cjs/nv-alert.entry-DsoqN5tQ.js +0 -173
- package/dist/cjs/nv-alert.entry-xuY-Lvuj.js +0 -173
- package/dist/cjs/nv-avatar.entry-CO6bt4k6.js +0 -67
- package/dist/cjs/nv-avatar.entry-DJkpupVT.js +0 -67
- package/dist/cjs/nv-avatar.entry-DKXMQPOz.js +0 -67
- package/dist/cjs/nv-avatar.entry-DWOADxdQ.js +0 -67
- package/dist/cjs/nv-avatar.entry-DjyiGt07.js +0 -67
- package/dist/cjs/nv-avatar.entry-DuN1d3Vy.js +0 -67
- package/dist/cjs/nv-avatar.entry-pREKtiv2.js +0 -67
- package/dist/cjs/nv-avatar.entry-yyLQEqI7.js +0 -67
- package/dist/cjs/nv-badge_2.entry-BFURAuBQ.js +0 -195
- package/dist/cjs/nv-badge_2.entry-BQXL0ZhP.js +0 -195
- package/dist/cjs/nv-badge_2.entry-CJQWS2xG.js +0 -195
- package/dist/cjs/nv-badge_2.entry-D0jeqYIQ.js +0 -195
- package/dist/cjs/nv-badge_2.entry-DKGHx4c8.js +0 -194
- package/dist/cjs/nv-badge_2.entry-im1VnU5f.js +0 -195
- package/dist/cjs/nv-badge_2.entry-wDuiCwys.js +0 -195
- package/dist/cjs/nv-badge_2.entry-xfXsesV0.js +0 -195
- package/dist/cjs/nv-base.entry-9HF044Di.js +0 -71
- package/dist/cjs/nv-base.entry-BO-6krwg.js +0 -71
- package/dist/cjs/nv-base.entry-BmY-1Lne.js +0 -71
- package/dist/cjs/nv-base.entry-BuxI7QmU.js +0 -71
- package/dist/cjs/nv-base.entry-CcaAXjnO.js +0 -71
- package/dist/cjs/nv-base.entry-Ch8ncPl0.js +0 -71
- package/dist/cjs/nv-base.entry-D7gUvPIG.js +0 -71
- package/dist/cjs/nv-base.entry-c723sI4Y.js +0 -71
- package/dist/cjs/nv-breadcrumb.entry-B9rOxsg_.js +0 -45
- package/dist/cjs/nv-breadcrumb.entry-BtM_AHRC.js +0 -45
- package/dist/cjs/nv-breadcrumb.entry-C-xHbSJw.js +0 -45
- package/dist/cjs/nv-breadcrumb.entry-CL9l0Wkr.js +0 -45
- package/dist/cjs/nv-breadcrumb.entry-CxGReUqZ.js +0 -45
- package/dist/cjs/nv-breadcrumb.entry-DTwjCmMI.js +0 -45
- package/dist/cjs/nv-breadcrumb.entry-LYt0sALP.js +0 -45
- package/dist/cjs/nv-breadcrumb.entry-wy-P2BMg.js +0 -45
- package/dist/cjs/nv-breadcrumbs.entry-9LlUycIv.js +0 -20
- package/dist/cjs/nv-breadcrumbs.entry-B7CaTbBe.js +0 -20
- package/dist/cjs/nv-breadcrumbs.entry-BA-TnreZ.js +0 -20
- package/dist/cjs/nv-breadcrumbs.entry-CEmZ3yFi.js +0 -20
- package/dist/cjs/nv-breadcrumbs.entry-De5lsjQf.js +0 -20
- package/dist/cjs/nv-breadcrumbs.entry-_w38BddR.js +0 -20
- package/dist/cjs/nv-breadcrumbs.entry-jn5hRjpQ.js +0 -20
- package/dist/cjs/nv-breadcrumbs.entry-ubxLcEUH.js +0 -20
- package/dist/cjs/nv-button.entry-B5-Wf9hh.js +0 -162
- package/dist/cjs/nv-button.entry-CBNfIn-r.js +0 -162
- package/dist/cjs/nv-button.entry-D-DPQDNM.js +0 -162
- package/dist/cjs/nv-button.entry-DHZX7KH4.js +0 -162
- package/dist/cjs/nv-button.entry-DLoECCSK.js +0 -162
- package/dist/cjs/nv-button.entry-DaSGnB1L.js +0 -162
- package/dist/cjs/nv-button.entry-Dk6DqHG2.js +0 -162
- package/dist/cjs/nv-button.entry-DxzA6-My.js +0 -162
- package/dist/cjs/nv-calendar.entry-BC6NDsVl.js +0 -1036
- package/dist/cjs/nv-calendar.entry-BeCCaAVE.js +0 -1036
- package/dist/cjs/nv-calendar.entry-DKz-iBnp.js +0 -1036
- package/dist/cjs/nv-calendar.entry-DNyH8T5e.js +0 -1036
- package/dist/cjs/nv-calendar.entry-DSWhDnEC.js +0 -1036
- package/dist/cjs/nv-calendar.entry-DUHckAh3.js +0 -1036
- package/dist/cjs/nv-calendar.entry-UUE6v4YC.js +0 -1036
- package/dist/cjs/nv-calendar.entry-ZtfR2qOV.js +0 -1036
- package/dist/cjs/nv-col.entry-Bx1VZSMw.js +0 -37
- package/dist/cjs/nv-col.entry-C400BeEE.js +0 -37
- package/dist/cjs/nv-col.entry-CYjFAVMF.js +0 -37
- package/dist/cjs/nv-col.entry-DDEtfCv-.js +0 -37
- package/dist/cjs/nv-col.entry-DNUY559i.js +0 -37
- package/dist/cjs/nv-col.entry-DqzImLSJ.js +0 -37
- package/dist/cjs/nv-col.entry-DtYBQEJz.js +0 -37
- package/dist/cjs/nv-col.entry-X7jkNThH.js +0 -37
- package/dist/cjs/nv-datagrid.entry-Ba9sfMQp.js +0 -3671
- package/dist/cjs/nv-datagrid.entry-Beehe_Sq.js +0 -3671
- package/dist/cjs/nv-datagrid.entry-CkD_jV75.js +0 -3671
- package/dist/cjs/nv-datagrid.entry-Cp8RCSEv.js +0 -3671
- package/dist/cjs/nv-datagrid.entry-D6p67Pa6.js +0 -3671
- package/dist/cjs/nv-datagrid.entry-DKqScS8N.js +0 -3671
- package/dist/cjs/nv-datagrid.entry-DL-Fyo4l.js +0 -3671
- package/dist/cjs/nv-datagrid.entry-ee865R4b.js +0 -3671
- package/dist/cjs/nv-datagridcolumn.entry-BodICzof.js +0 -18
- package/dist/cjs/nv-datagridcolumn.entry-CR9_1fsZ.js +0 -18
- package/dist/cjs/nv-datagridcolumn.entry-C_FtSltZ.js +0 -18
- package/dist/cjs/nv-datagridcolumn.entry-CyTG5E7M.js +0 -18
- package/dist/cjs/nv-datagridcolumn.entry-D1cyTR_G.js +0 -18
- package/dist/cjs/nv-datagridcolumn.entry-DRE7BDkk.js +0 -18
- package/dist/cjs/nv-datagridcolumn.entry-Du6-7fjr.js +0 -18
- package/dist/cjs/nv-datagridcolumn.entry-N70Aen6Q.js +0 -18
- package/dist/cjs/nv-dialog.entry-BjTJ5FFL.js +0 -784
- package/dist/cjs/nv-dialog.entry-C1hg-EG1.js +0 -784
- package/dist/cjs/nv-dialog.entry-COv2do_O.js +0 -784
- package/dist/cjs/nv-dialog.entry-Ck2hU43g.js +0 -784
- package/dist/cjs/nv-dialog.entry-Cl8iLrCo.js +0 -784
- package/dist/cjs/nv-dialog.entry-Cy71tlWz.js +0 -784
- package/dist/cjs/nv-dialog.entry-DdAHZGzm.js +0 -784
- package/dist/cjs/nv-dialog.entry-Do_uALC6.js +0 -784
- package/dist/cjs/nv-dialogfooter_2.entry-CXvA0O-2.js +0 -134
- package/dist/cjs/nv-dialogfooter_2.entry-DHa0SYhR.js +0 -134
- package/dist/cjs/nv-dialogfooter_2.entry-DJ8qS9q6.js +0 -134
- package/dist/cjs/nv-dialogfooter_2.entry-DJkKzEgO.js +0 -134
- package/dist/cjs/nv-dialogfooter_2.entry-DKvzkpt3.js +0 -134
- package/dist/cjs/nv-dialogfooter_2.entry-D_VuofBe.js +0 -134
- package/dist/cjs/nv-dialogfooter_2.entry-L5tHIb_T.js +0 -134
- package/dist/cjs/nv-dialogfooter_2.entry-kEa1K0n5.js +0 -134
- package/dist/cjs/nv-fieldcheckbox.entry-B4We4zG2.js +0 -137
- package/dist/cjs/nv-fieldcheckbox.entry-BmYyNV4r.js +0 -137
- package/dist/cjs/nv-fieldcheckbox.entry-C0DmeqXD.js +0 -137
- package/dist/cjs/nv-fieldcheckbox.entry-CBsQsbIA.js +0 -137
- package/dist/cjs/nv-fieldcheckbox.entry-DTIebeJR.js +0 -137
- package/dist/cjs/nv-fieldcheckbox.entry-DoGQX-5D.js +0 -137
- package/dist/cjs/nv-fieldcheckbox.entry-P--9IAJF.js +0 -137
- package/dist/cjs/nv-fieldcheckbox.entry-dxhUZiEg.js +0 -137
- package/dist/cjs/nv-fielddate.entry-B53E-JaI.js +0 -278
- package/dist/cjs/nv-fielddate.entry-Bofdd2rE.js +0 -278
- package/dist/cjs/nv-fielddate.entry-CIo_61Dc.js +0 -278
- package/dist/cjs/nv-fielddate.entry-CekIFTA0.js +0 -278
- package/dist/cjs/nv-fielddate.entry-D-PjbYaA.js +0 -278
- package/dist/cjs/nv-fielddate.entry-DgS0X1wI.js +0 -278
- package/dist/cjs/nv-fielddate.entry-Do69eqHA.js +0 -278
- package/dist/cjs/nv-fielddate.entry-NJ6RAqlG.js +0 -278
- package/dist/cjs/nv-fielddaterange.entry-BrC5jKLp.js +0 -355
- package/dist/cjs/nv-fielddaterange.entry-BtPwfRw-.js +0 -355
- package/dist/cjs/nv-fielddaterange.entry-CxaBrZAX.js +0 -355
- package/dist/cjs/nv-fielddaterange.entry-D-6LjhjB.js +0 -355
- package/dist/cjs/nv-fielddaterange.entry-D0fq5KFb.js +0 -355
- package/dist/cjs/nv-fielddaterange.entry-D2dzD3rW.js +0 -355
- package/dist/cjs/nv-fielddaterange.entry-ka3JiDvT.js +0 -355
- package/dist/cjs/nv-fielddaterange.entry-w8WXPDuX.js +0 -355
- package/dist/cjs/nv-fielddropdown.entry-BAaPyGtB.js +0 -361
- package/dist/cjs/nv-fielddropdown.entry-C5kMWmPP.js +0 -361
- package/dist/cjs/nv-fielddropdown.entry-CX2Ycn2i.js +0 -361
- package/dist/cjs/nv-fielddropdown.entry-CZxQlRNa.js +0 -361
- package/dist/cjs/nv-fielddropdown.entry-DUAKFYgw.js +0 -391
- package/dist/cjs/nv-fielddropdown.entry-DVl_Uy5A.js +0 -361
- package/dist/cjs/nv-fielddropdown.entry-MsUR1kVe.js +0 -391
- package/dist/cjs/nv-fielddropdown.entry-hHh_RDC4.js +0 -361
- package/dist/cjs/nv-fielddropdownitem.entry-BsbvJERH.js +0 -70
- package/dist/cjs/nv-fielddropdownitem.entry-CMWgXP_Z.js +0 -68
- package/dist/cjs/nv-fielddropdownitem.entry-CS1Ejbc9.js +0 -68
- package/dist/cjs/nv-fielddropdownitem.entry-CW4WMmSZ.js +0 -68
- package/dist/cjs/nv-fielddropdownitem.entry-CuQqsz4f.js +0 -68
- package/dist/cjs/nv-fielddropdownitem.entry-DRM-Zljt.js +0 -70
- package/dist/cjs/nv-fielddropdownitem.entry-Dn2HJc1t.js +0 -68
- package/dist/cjs/nv-fielddropdownitem.entry-HK2I5pUG.js +0 -68
- package/dist/cjs/nv-fieldmultiselect.entry-5jdK36m6.js +0 -1060
- package/dist/cjs/nv-fieldmultiselect.entry-6o1yhNI5.js +0 -1060
- package/dist/cjs/nv-fieldmultiselect.entry-BN1ObPi8.js +0 -1060
- package/dist/cjs/nv-fieldmultiselect.entry-CuVEYN0v.js +0 -1060
- package/dist/cjs/nv-fieldmultiselect.entry-DFr-ZICs.js +0 -1060
- package/dist/cjs/nv-fieldmultiselect.entry-DHXJErt4.js +0 -1060
- package/dist/cjs/nv-fieldmultiselect.entry-Dr8FfT_W.js +0 -1060
- package/dist/cjs/nv-fieldmultiselect.entry-DycRd14V.js +0 -1060
- package/dist/cjs/nv-fieldnumber.entry-BHhIsjLK.js +0 -126
- package/dist/cjs/nv-fieldnumber.entry-BklKxOFA.js +0 -126
- package/dist/cjs/nv-fieldnumber.entry-C8zJkL24.js +0 -126
- package/dist/cjs/nv-fieldnumber.entry-C9rKWY_M.js +0 -126
- package/dist/cjs/nv-fieldnumber.entry-CEmPQK-3.js +0 -126
- package/dist/cjs/nv-fieldnumber.entry-CLhjFlCj.js +0 -126
- package/dist/cjs/nv-fieldnumber.entry-DZsM1vmO.js +0 -126
- package/dist/cjs/nv-fieldnumber.entry-ezdDvJh_.js +0 -126
- package/dist/cjs/nv-fieldpassword.entry-7lS0Msfg.js +0 -115
- package/dist/cjs/nv-fieldpassword.entry-B9-QFEsB.js +0 -115
- package/dist/cjs/nv-fieldpassword.entry-BIIoIKH4.js +0 -115
- package/dist/cjs/nv-fieldpassword.entry-BPhQxjsj.js +0 -115
- package/dist/cjs/nv-fieldpassword.entry-Biw__M2W.js +0 -115
- package/dist/cjs/nv-fieldpassword.entry-C5vG4jlh.js +0 -115
- package/dist/cjs/nv-fieldpassword.entry-C_jsHFJI.js +0 -115
- package/dist/cjs/nv-fieldpassword.entry-DZkGQwM8.js +0 -115
- package/dist/cjs/nv-fieldradio.entry-BgpmbG9E.js +0 -102
- package/dist/cjs/nv-fieldradio.entry-CXR4k3wf.js +0 -102
- package/dist/cjs/nv-fieldradio.entry-CnasQlEx.js +0 -102
- package/dist/cjs/nv-fieldradio.entry-Co7WX2vI.js +0 -102
- package/dist/cjs/nv-fieldradio.entry-DUDPigQb.js +0 -102
- package/dist/cjs/nv-fieldradio.entry-DiD7Luxv.js +0 -102
- package/dist/cjs/nv-fieldradio.entry-Ili2RVKl.js +0 -102
- package/dist/cjs/nv-fieldradio.entry-ZL7KgEZ7.js +0 -102
- package/dist/cjs/nv-fieldselect.entry-B94QXSEk.js +0 -365
- package/dist/cjs/nv-fieldselect.entry-BwtEjL08.js +0 -365
- package/dist/cjs/nv-fieldselect.entry-CFDqeR-D.js +0 -365
- package/dist/cjs/nv-fieldselect.entry-CJSu63o5.js +0 -365
- package/dist/cjs/nv-fieldselect.entry-CmN1R9ij.js +0 -365
- package/dist/cjs/nv-fieldselect.entry-CoDfr4ie.js +0 -365
- package/dist/cjs/nv-fieldselect.entry-D6eRsM9T.js +0 -365
- package/dist/cjs/nv-fieldselect.entry-DgmnHnOR.js +0 -365
- package/dist/cjs/nv-fieldtext.entry-BfQrX8ft.js +0 -119
- package/dist/cjs/nv-fieldtext.entry-BrUQu4OD.js +0 -119
- package/dist/cjs/nv-fieldtext.entry-CW6P-R-Q.js +0 -119
- package/dist/cjs/nv-fieldtext.entry-CyLJxDw6.js +0 -119
- package/dist/cjs/nv-fieldtext.entry-DDqDSJp3.js +0 -119
- package/dist/cjs/nv-fieldtext.entry-DKdxC2cG.js +0 -119
- package/dist/cjs/nv-fieldtext.entry-DRPCH6Sf.js +0 -119
- package/dist/cjs/nv-fieldtext.entry-IeIHa3jf.js +0 -119
- package/dist/cjs/nv-fieldtextarea.entry-D86SKGIN.js +0 -194
- package/dist/cjs/nv-fieldtextarea.entry-Dc_TGlmI.js +0 -194
- package/dist/cjs/nv-fieldtextarea.entry-DlFdCv_d.js +0 -194
- package/dist/cjs/nv-fieldtextarea.entry-DqzeITCG.js +0 -194
- package/dist/cjs/nv-fieldtextarea.entry-TI-bucN-.js +0 -194
- package/dist/cjs/nv-fieldtextarea.entry-qMX2O8cX.js +0 -194
- package/dist/cjs/nv-fieldtextarea.entry-tTnWQgE4.js +0 -194
- package/dist/cjs/nv-fieldtextarea.entry-v6VpnEuH.js +0 -194
- package/dist/cjs/nv-fieldtime.entry-CPyLyQfR.js +0 -1011
- package/dist/cjs/nv-fieldtime.entry-CXRtpWt1.js +0 -1011
- package/dist/cjs/nv-fieldtime.entry-CYmcHY1D.js +0 -1011
- package/dist/cjs/nv-fieldtime.entry-DGP1X4wF.js +0 -1011
- package/dist/cjs/nv-fieldtime.entry-DLSuRrlr.js +0 -1011
- package/dist/cjs/nv-fieldtime.entry-Zbjbmm7_.js +0 -1011
- package/dist/cjs/nv-fieldtime.entry-eDVRT6te.js +0 -1011
- package/dist/cjs/nv-fieldtime.entry-j-Fliiqj.js +0 -1011
- package/dist/cjs/nv-icon.entry-B0Y3rgBQ.js +0 -79
- package/dist/cjs/nv-icon.entry-B_wtREWb.js +0 -79
- package/dist/cjs/nv-icon.entry-CrKTCqY_.js +0 -79
- package/dist/cjs/nv-icon.entry-DRRmcXzh.js +0 -79
- package/dist/cjs/nv-icon.entry-Dlj1ko2i.js +0 -79
- package/dist/cjs/nv-icon.entry-S7WlK_lO.js +0 -79
- package/dist/cjs/nv-icon.entry-iipuvT3D.js +0 -79
- package/dist/cjs/nv-icon.entry-xltjoSa2.js +0 -79
- package/dist/cjs/nv-iconbutton_2.entry-B02iDUid.js +0 -163
- package/dist/cjs/nv-iconbutton_2.entry-BsXvYbCi.js +0 -163
- package/dist/cjs/nv-iconbutton_2.entry-C1Legk9t.js +0 -163
- package/dist/cjs/nv-iconbutton_2.entry-CUiW6MtK.js +0 -163
- package/dist/cjs/nv-iconbutton_2.entry-ClcvupMe.js +0 -163
- package/dist/cjs/nv-iconbutton_2.entry-D8hZ51H-.js +0 -163
- package/dist/cjs/nv-iconbutton_2.entry-Dx4usGkY.js +0 -163
- package/dist/cjs/nv-iconbutton_2.entry-QwaiOoYl.js +0 -163
- package/dist/cjs/nv-menu.entry-BfmYkdYY.js +0 -227
- package/dist/cjs/nv-menu.entry-CT98WIRF.js +0 -227
- package/dist/cjs/nv-menu.entry-CfERF478.js +0 -227
- package/dist/cjs/nv-menu.entry-Ci3I7PDt.js +0 -227
- package/dist/cjs/nv-menu.entry-DFEYw_KZ.js +0 -227
- package/dist/cjs/nv-menu.entry-DtLnsQW-.js +0 -227
- package/dist/cjs/nv-menu.entry-Kz5kGi2w.js +0 -227
- package/dist/cjs/nv-menu.entry-XdjjbAL6.js +0 -227
- package/dist/cjs/nv-menuitem.entry-3t6TixM7.js +0 -58
- package/dist/cjs/nv-menuitem.entry-BeTXOtir.js +0 -58
- package/dist/cjs/nv-menuitem.entry-C8nXPwP0.js +0 -58
- package/dist/cjs/nv-menuitem.entry-C9dsQqqN.js +0 -58
- package/dist/cjs/nv-menuitem.entry-Cedg0TCQ.js +0 -58
- package/dist/cjs/nv-menuitem.entry-CxCLeNsY.js +0 -58
- package/dist/cjs/nv-menuitem.entry-bPnSDq_9.js +0 -58
- package/dist/cjs/nv-menuitem.entry-sRx1fD0O.js +0 -58
- package/dist/cjs/nv-popover.entry-BGXEOQM6.js +0 -1960
- package/dist/cjs/nv-popover.entry-Bv6kuTK_.js +0 -1960
- package/dist/cjs/nv-popover.entry-C6HFJJ-m.js +0 -1960
- package/dist/cjs/nv-popover.entry-CiGCCbn9.js +0 -1960
- package/dist/cjs/nv-popover.entry-CjTPZYkq.js +0 -1960
- package/dist/cjs/nv-popover.entry-CtO6pR6l.js +0 -1960
- package/dist/cjs/nv-popover.entry-Mo3DNUH6.js +0 -1960
- package/dist/cjs/nv-popover.entry-Zt25YeAv.js +0 -1960
- package/dist/cjs/nv-row.entry-BEgyuDR-.js +0 -21
- package/dist/cjs/nv-row.entry-BM_EcSp4.js +0 -21
- package/dist/cjs/nv-row.entry-BPK1Li7w.js +0 -21
- package/dist/cjs/nv-row.entry-B_7PiJA7.js +0 -21
- package/dist/cjs/nv-row.entry-Ca7LiDAy.js +0 -21
- package/dist/cjs/nv-row.entry-Cy9vd2iY.js +0 -21
- package/dist/cjs/nv-row.entry-DKoNhAcX.js +0 -21
- package/dist/cjs/nv-row.entry-OYGKTXhV.js +0 -21
- package/dist/cjs/nv-stack.entry-BNyPxECg.js +0 -30
- package/dist/cjs/nv-stack.entry-ByaO-0TJ.js +0 -30
- package/dist/cjs/nv-stack.entry-C8ZFDaKn.js +0 -30
- package/dist/cjs/nv-stack.entry-CLMAAbkw.js +0 -30
- package/dist/cjs/nv-stack.entry-DfRRFeEo.js +0 -30
- package/dist/cjs/nv-stack.entry-DiXvhuSS.js +0 -30
- package/dist/cjs/nv-stack.entry-lwhqS230.js +0 -30
- package/dist/cjs/nv-stack.entry-u3NjC31-.js +0 -30
- package/dist/cjs/nv-table.entry-BNy2ALll.js +0 -338
- package/dist/cjs/nv-table.entry-BPazUUGA.js +0 -338
- package/dist/cjs/nv-table.entry-C7Hd57Iq.js +0 -338
- package/dist/cjs/nv-table.entry-COwgRxqz.js +0 -338
- package/dist/cjs/nv-table.entry-CTo8cqCN.js +0 -338
- package/dist/cjs/nv-table.entry-D3U4dFcw.js +0 -338
- package/dist/cjs/nv-table.entry-DzOGLNUx.js +0 -338
- package/dist/cjs/nv-table.entry-o525Lfea.js +0 -338
- package/dist/cjs/nv-tablecolumn.entry-BESdQMDh.js +0 -18
- package/dist/cjs/nv-tablecolumn.entry-BzwWPlLf.js +0 -18
- package/dist/cjs/nv-tablecolumn.entry-CuEt5Wgn.js +0 -18
- package/dist/cjs/nv-tablecolumn.entry-D3I1dB1X.js +0 -18
- package/dist/cjs/nv-tablecolumn.entry-DvJF_QTE.js +0 -18
- package/dist/cjs/nv-tablecolumn.entry-DvO0JxdY.js +0 -18
- package/dist/cjs/nv-tablecolumn.entry-L4KLlHFu.js +0 -18
- package/dist/cjs/nv-tablecolumn.entry-vrmt1Y0L.js +0 -18
- package/dist/cjs/nv-toggle.entry-BIclNIeq.js +0 -79
- package/dist/cjs/nv-toggle.entry-BTqGH_H0.js +0 -79
- package/dist/cjs/nv-toggle.entry-Bv0DrF-x.js +0 -79
- package/dist/cjs/nv-toggle.entry-BxKZDHdI.js +0 -79
- package/dist/cjs/nv-toggle.entry-DYhnFucd.js +0 -79
- package/dist/cjs/nv-toggle.entry-PRWy57Ro.js +0 -79
- package/dist/cjs/nv-toggle.entry-fDIAyeVX.js +0 -79
- package/dist/cjs/nv-toggle.entry-yqg7e7Qc.js +0 -79
- package/dist/cjs/nv-tooltip.entry--TVfBopp.js +0 -44
- package/dist/cjs/nv-tooltip.entry-58RCazbO.js +0 -44
- package/dist/cjs/nv-tooltip.entry-BBJNnZmj.js +0 -44
- package/dist/cjs/nv-tooltip.entry-BDZfrLHv.js +0 -44
- package/dist/cjs/nv-tooltip.entry-Bnu7xEl6.js +0 -44
- package/dist/cjs/nv-tooltip.entry-BrrSQyMx.js +0 -44
- package/dist/cjs/nv-tooltip.entry-ChQpdQn_.js +0 -44
- package/dist/cjs/nv-tooltip.entry-CvCZZV88.js +0 -44
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-C8UfzrMI.js');
|
|
4
|
-
var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
|
|
5
|
-
var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
|
|
6
|
-
require('react');
|
|
7
|
-
|
|
8
|
-
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)}";
|
|
9
|
-
const NvFieldcheckboxStyle0 = nvFieldcheckboxCss;
|
|
10
|
-
|
|
11
|
-
const NvFieldcheckbox = class {
|
|
12
|
-
constructor(hostRef) {
|
|
13
|
-
index.registerInstance(this, hostRef);
|
|
14
|
-
this.checkedChanged = index.createEvent(this, "checkedChanged");
|
|
15
|
-
/**
|
|
16
|
-
* When true, the label will be placed before the checkbox.
|
|
17
|
-
* @deprecated Use `labelPlacement = end` instead.
|
|
18
|
-
* */
|
|
19
|
-
this.labelBefore = false;
|
|
20
|
-
//#endregion DEPRECATED
|
|
21
|
-
/****************************************************************************/
|
|
22
|
-
//#region PROPERTIES
|
|
23
|
-
/**
|
|
24
|
-
* Sets the ID for the radio button’s input element and the for attribute of
|
|
25
|
-
* the associated label. If no ID is provided, a random one will be
|
|
26
|
-
* automatically generated to ensure unique identification, facilitating
|
|
27
|
-
* proper label association and accessibility.
|
|
28
|
-
*/
|
|
29
|
-
this.inputId = v4A79185f4.v4();
|
|
30
|
-
/**
|
|
31
|
-
* Hides the label visually while still keeping it available for screen
|
|
32
|
-
* readers.
|
|
33
|
-
*/
|
|
34
|
-
this.hideLabel = false;
|
|
35
|
-
/**
|
|
36
|
-
* Signals that there is an error associated with the checkbox, which can
|
|
37
|
-
* trigger visual cues.
|
|
38
|
-
* @validator error
|
|
39
|
-
*/
|
|
40
|
-
this.error = false;
|
|
41
|
-
/**
|
|
42
|
-
* Indicates whether the checkbox is checked or not.
|
|
43
|
-
*/
|
|
44
|
-
this.checked = false;
|
|
45
|
-
/**
|
|
46
|
-
* Indicates whether the checkbox is in an indeterminate state, typically used
|
|
47
|
-
* for hierarchical checkboxes.
|
|
48
|
-
*/
|
|
49
|
-
this.indeterminate = false;
|
|
50
|
-
/**
|
|
51
|
-
* Disables the checkbox, preventing user interaction.
|
|
52
|
-
*/
|
|
53
|
-
this.disabled = false;
|
|
54
|
-
/**
|
|
55
|
-
* Sets the checkbox to read-only, preventing user changes but still allowing
|
|
56
|
-
* focus and selection of text.
|
|
57
|
-
*/
|
|
58
|
-
this.readonly = false;
|
|
59
|
-
/**
|
|
60
|
-
* Marks the checkbox as required, indicating that it must be checked for
|
|
61
|
-
* form submission.
|
|
62
|
-
*/
|
|
63
|
-
this.required = false;
|
|
64
|
-
/**
|
|
65
|
-
* Applies focus to the input field as soon as the component is mounted. This
|
|
66
|
-
* is equivalent to setting the native autofocus attribute on an <input>
|
|
67
|
-
* element.
|
|
68
|
-
*/
|
|
69
|
-
this.autofocus = false;
|
|
70
|
-
}
|
|
71
|
-
//#endregion EVENTS
|
|
72
|
-
/****************************************************************************/
|
|
73
|
-
//#region LISTENERS
|
|
74
|
-
/**
|
|
75
|
-
* Listens for the change event on the checkbox input element and updates the
|
|
76
|
-
* checked state.
|
|
77
|
-
* @param {Event} event - The change event.
|
|
78
|
-
*/
|
|
79
|
-
handleChange(event) {
|
|
80
|
-
const target = event.target;
|
|
81
|
-
if (target.type === 'checkbox' && target.id === this.inputId) {
|
|
82
|
-
if (this.readonly || this.disabled) {
|
|
83
|
-
event.preventDefault();
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
if (this.indeterminate) {
|
|
87
|
-
this.indeterminate = false;
|
|
88
|
-
}
|
|
89
|
-
this.checked = target.checked;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
//#endregion LISTENERS
|
|
93
|
-
/****************************************************************************/
|
|
94
|
-
//#region WATCHERS
|
|
95
|
-
/**
|
|
96
|
-
* Watches for changes to the checked state and emits the new value.
|
|
97
|
-
* @param {boolean} checked - The new value of the checked state.
|
|
98
|
-
*/
|
|
99
|
-
onCheckedChanged(checked) {
|
|
100
|
-
this.checkedChanged.emit(checked);
|
|
101
|
-
}
|
|
102
|
-
//#endregion WATCHERS
|
|
103
|
-
/****************************************************************************/
|
|
104
|
-
//#region LIFECYCLE
|
|
105
|
-
componentWillRender() {
|
|
106
|
-
if (this.message) {
|
|
107
|
-
this.description = this.message;
|
|
108
|
-
}
|
|
109
|
-
if (this.labelBefore) {
|
|
110
|
-
this.labelPlacement = 'before';
|
|
111
|
-
}
|
|
112
|
-
if (this.validation) {
|
|
113
|
-
this.errorDescription = this.validation;
|
|
114
|
-
this.error = true;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
//#endregion LIFECYCLE
|
|
118
|
-
/****************************************************************************/
|
|
119
|
-
//#region RENDER
|
|
120
|
-
render() {
|
|
121
|
-
return (index.h(index.Host, { key: '6fd28954984db7abe74c9c827ab2c183be2b0b43', class: clsx297c1ffe.clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, index.h("div", { key: '95e06aed85655df76f49da2ae2e9226070574e4a', class: "input-container" }, index.h("input", { key: 'f19d8f746fa4f87038549e3952ce77fa18aa8cd7', 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 => {
|
|
122
|
-
if (el) {
|
|
123
|
-
el.indeterminate = this.indeterminate;
|
|
124
|
-
}
|
|
125
|
-
} }), index.h("span", { key: '2b8219210c10dc78fa3b6c1170ec1f2e266885ad', class: "icon" }, this.checked && !this.indeterminate && (index.h("slot", { key: '930508585db44cf275e00dcf982c74cc7027ab07', name: "checked-icon" }, index.h("svg", { key: '239b8996bcf8cbc7a92b8936cafdaa8e52924bfe', xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" }, index.h("path", { key: 'c9771fe1a7496c6db893a8a42ae88801a8f5517a', d: "M11.6667 3.5L5.25004 9.91667L2.33337 7", "stroke-linecap": "round", "stroke-linejoin": "round" })))), this.indeterminate && (index.h("slot", { key: '429b610c49394715ff6650c0271617d763861f17', name: "indeterminate-icon" }, index.h("svg", { key: 'd2f042295e7b7a7a780b2034bebee5897eb5d0cf', class: "indeterminate-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 14 14", fill: "none" }, index.h("path", { key: '3a3aabe203887e2ddf198f1b27c1a1f36baa9c1b', d: "M2.9165 7H11.0832", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), index.h("div", { key: 'f3ce64d695ffb4ae2ac5776c696a16ff634a7554', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '28682a4ce85309caddca1404e4a24b92effab9be', htmlFor: this.inputId, class: clsx297c1ffe.clsx(this.hideLabel && 'visually-hidden') }, index.h("slot", { key: '42a33d753120a06d2f974a9a8fdfd47cf696e610', name: "label" }, this.label))), (this.description ||
|
|
126
|
-
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '036b2dfcbd0b0d97d8fa0f662d286c0409ccb84c', class: "description" }, index.h("slot", { key: 'fdf2b60f107025c91d1db343cf8a55957adcf1e2', name: "description" }, this.description))), (this.errorDescription ||
|
|
127
|
-
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '1a9bdeb00883256471097ea4b1f5859cb6c7e9c0', hidden: !this.error, class: "error-description" }, index.h("slot", { key: 'daa6997b0773d0b7b585e2c33a70d8c147e34c2e', name: "error-description" }, this.errorDescription))))));
|
|
128
|
-
}
|
|
129
|
-
static get formAssociated() { return true; }
|
|
130
|
-
get el() { return index.getElement(this); }
|
|
131
|
-
static get watchers() { return {
|
|
132
|
-
"checked": ["onCheckedChanged"]
|
|
133
|
-
}; }
|
|
134
|
-
};
|
|
135
|
-
NvFieldcheckbox.style = NvFieldcheckboxStyle0;
|
|
136
|
-
|
|
137
|
-
exports.nv_fieldcheckbox = NvFieldcheckbox;
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-CEWbQ5nh.js');
|
|
4
|
-
var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
|
|
5
|
-
var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
|
|
6
|
-
require('react');
|
|
7
|
-
|
|
8
|
-
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)}";
|
|
9
|
-
const NvFieldcheckboxStyle0 = nvFieldcheckboxCss;
|
|
10
|
-
|
|
11
|
-
const NvFieldcheckbox = class {
|
|
12
|
-
constructor(hostRef) {
|
|
13
|
-
index.registerInstance(this, hostRef);
|
|
14
|
-
this.checkedChanged = index.createEvent(this, "checkedChanged");
|
|
15
|
-
/**
|
|
16
|
-
* When true, the label will be placed before the checkbox.
|
|
17
|
-
* @deprecated Use `labelPlacement = end` instead.
|
|
18
|
-
* */
|
|
19
|
-
this.labelBefore = false;
|
|
20
|
-
//#endregion DEPRECATED
|
|
21
|
-
/****************************************************************************/
|
|
22
|
-
//#region PROPERTIES
|
|
23
|
-
/**
|
|
24
|
-
* Sets the ID for the radio button’s input element and the for attribute of
|
|
25
|
-
* the associated label. If no ID is provided, a random one will be
|
|
26
|
-
* automatically generated to ensure unique identification, facilitating
|
|
27
|
-
* proper label association and accessibility.
|
|
28
|
-
*/
|
|
29
|
-
this.inputId = v4A79185f4.v4();
|
|
30
|
-
/**
|
|
31
|
-
* Hides the label visually while still keeping it available for screen
|
|
32
|
-
* readers.
|
|
33
|
-
*/
|
|
34
|
-
this.hideLabel = false;
|
|
35
|
-
/**
|
|
36
|
-
* Signals that there is an error associated with the checkbox, which can
|
|
37
|
-
* trigger visual cues.
|
|
38
|
-
* @validator error
|
|
39
|
-
*/
|
|
40
|
-
this.error = false;
|
|
41
|
-
/**
|
|
42
|
-
* Indicates whether the checkbox is checked or not.
|
|
43
|
-
*/
|
|
44
|
-
this.checked = false;
|
|
45
|
-
/**
|
|
46
|
-
* Indicates whether the checkbox is in an indeterminate state, typically used
|
|
47
|
-
* for hierarchical checkboxes.
|
|
48
|
-
*/
|
|
49
|
-
this.indeterminate = false;
|
|
50
|
-
/**
|
|
51
|
-
* Disables the checkbox, preventing user interaction.
|
|
52
|
-
*/
|
|
53
|
-
this.disabled = false;
|
|
54
|
-
/**
|
|
55
|
-
* Sets the checkbox to read-only, preventing user changes but still allowing
|
|
56
|
-
* focus and selection of text.
|
|
57
|
-
*/
|
|
58
|
-
this.readonly = false;
|
|
59
|
-
/**
|
|
60
|
-
* Marks the checkbox as required, indicating that it must be checked for
|
|
61
|
-
* form submission.
|
|
62
|
-
*/
|
|
63
|
-
this.required = false;
|
|
64
|
-
/**
|
|
65
|
-
* Applies focus to the input field as soon as the component is mounted. This
|
|
66
|
-
* is equivalent to setting the native autofocus attribute on an <input>
|
|
67
|
-
* element.
|
|
68
|
-
*/
|
|
69
|
-
this.autofocus = false;
|
|
70
|
-
}
|
|
71
|
-
//#endregion EVENTS
|
|
72
|
-
/****************************************************************************/
|
|
73
|
-
//#region LISTENERS
|
|
74
|
-
/**
|
|
75
|
-
* Listens for the change event on the checkbox input element and updates the
|
|
76
|
-
* checked state.
|
|
77
|
-
* @param {Event} event - The change event.
|
|
78
|
-
*/
|
|
79
|
-
handleChange(event) {
|
|
80
|
-
const target = event.target;
|
|
81
|
-
if (target.type === 'checkbox' && target.id === this.inputId) {
|
|
82
|
-
if (this.readonly || this.disabled) {
|
|
83
|
-
event.preventDefault();
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
if (this.indeterminate) {
|
|
87
|
-
this.indeterminate = false;
|
|
88
|
-
}
|
|
89
|
-
this.checked = target.checked;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
//#endregion LISTENERS
|
|
93
|
-
/****************************************************************************/
|
|
94
|
-
//#region WATCHERS
|
|
95
|
-
/**
|
|
96
|
-
* Watches for changes to the checked state and emits the new value.
|
|
97
|
-
* @param {boolean} checked - The new value of the checked state.
|
|
98
|
-
*/
|
|
99
|
-
onCheckedChanged(checked) {
|
|
100
|
-
this.checkedChanged.emit(checked);
|
|
101
|
-
}
|
|
102
|
-
//#endregion WATCHERS
|
|
103
|
-
/****************************************************************************/
|
|
104
|
-
//#region LIFECYCLE
|
|
105
|
-
componentWillRender() {
|
|
106
|
-
if (this.message) {
|
|
107
|
-
this.description = this.message;
|
|
108
|
-
}
|
|
109
|
-
if (this.labelBefore) {
|
|
110
|
-
this.labelPlacement = 'before';
|
|
111
|
-
}
|
|
112
|
-
if (this.validation) {
|
|
113
|
-
this.errorDescription = this.validation;
|
|
114
|
-
this.error = true;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
//#endregion LIFECYCLE
|
|
118
|
-
/****************************************************************************/
|
|
119
|
-
//#region RENDER
|
|
120
|
-
render() {
|
|
121
|
-
return (index.h(index.Host, { key: '1d627199f94d133d82bbef8f20de86590d9a3813', class: clsx297c1ffe.clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, index.h("div", { key: 'bca54e59576da2ec632a7ef7c5f8adb6fb3c77fb', class: "input-container" }, index.h("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 => {
|
|
122
|
-
if (el) {
|
|
123
|
-
el.indeterminate = this.indeterminate;
|
|
124
|
-
}
|
|
125
|
-
} }), index.h("span", { key: 'd575209c82fe0cbb4f3136a50eb78a9db12cacc0', class: "icon" }, this.checked && !this.indeterminate && (index.h("slot", { key: 'c265cb54bc4d76962203e8ee0298508e9f96bc58', name: "checked-icon" }, index.h("svg", { key: '03d326e69ac11bf22bc3ce43a80023f8c2ff8401', xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" }, index.h("path", { key: 'ae602d5613c82569f89f97d9e1b6994940f03f9c', d: "M11.6667 3.5L5.25004 9.91667L2.33337 7", "stroke-linecap": "round", "stroke-linejoin": "round" })))), this.indeterminate && (index.h("slot", { key: '9f90d9b9a63a50bd0ecd4433b390d4c03604e124', name: "indeterminate-icon" }, index.h("svg", { key: '7681c9b1203240f419fb7cf93644cef77f8438f6', class: "indeterminate-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 14 14", fill: "none" }, index.h("path", { key: 'c28a5d22adace616ede31baa3a4edbc8cb899f01', d: "M2.9165 7H11.0832", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), index.h("div", { key: '9213ad654a4c4f9576160c80195aec378559f2a0', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '73f6c22fe57659b0618216e69289a5704ac231eb', htmlFor: this.inputId, class: clsx297c1ffe.clsx(this.hideLabel && 'visually-hidden') }, index.h("slot", { key: 'fd70342006329609c2b0f9b501d0e2e7ad311f07', name: "label" }, this.label))), (this.description ||
|
|
126
|
-
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '17fb2ed0060b24b1ef797efe34b53c94a755a1ac', class: "description" }, index.h("slot", { key: '96d6c1b135f716de40c1223f35a479d3c8cc6c0d', name: "description" }, this.description))), (this.errorDescription ||
|
|
127
|
-
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: 'c63392b6d315d5104087561ca2abf166e190f0f7', hidden: !this.error, class: "error-description" }, index.h("slot", { key: '154010b1ec725f95d88bbf18a9e5d309b73affdd', name: "error-description" }, this.errorDescription))))));
|
|
128
|
-
}
|
|
129
|
-
static get formAssociated() { return true; }
|
|
130
|
-
get el() { return index.getElement(this); }
|
|
131
|
-
static get watchers() { return {
|
|
132
|
-
"checked": ["onCheckedChanged"]
|
|
133
|
-
}; }
|
|
134
|
-
};
|
|
135
|
-
NvFieldcheckbox.style = NvFieldcheckboxStyle0;
|
|
136
|
-
|
|
137
|
-
exports.nv_fieldcheckbox = NvFieldcheckbox;
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-wDACGzKb.js');
|
|
4
|
-
var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
|
|
5
|
-
var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
|
|
6
|
-
require('react');
|
|
7
|
-
|
|
8
|
-
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)}";
|
|
9
|
-
const NvFieldcheckboxStyle0 = nvFieldcheckboxCss;
|
|
10
|
-
|
|
11
|
-
const NvFieldcheckbox = class {
|
|
12
|
-
constructor(hostRef) {
|
|
13
|
-
index.registerInstance(this, hostRef);
|
|
14
|
-
this.checkedChanged = index.createEvent(this, "checkedChanged");
|
|
15
|
-
/**
|
|
16
|
-
* When true, the label will be placed before the checkbox.
|
|
17
|
-
* @deprecated Use `labelPlacement = end` instead.
|
|
18
|
-
* */
|
|
19
|
-
this.labelBefore = false;
|
|
20
|
-
//#endregion DEPRECATED
|
|
21
|
-
/****************************************************************************/
|
|
22
|
-
//#region PROPERTIES
|
|
23
|
-
/**
|
|
24
|
-
* Sets the ID for the radio button’s input element and the for attribute of
|
|
25
|
-
* the associated label. If no ID is provided, a random one will be
|
|
26
|
-
* automatically generated to ensure unique identification, facilitating
|
|
27
|
-
* proper label association and accessibility.
|
|
28
|
-
*/
|
|
29
|
-
this.inputId = v4A79185f4.v4();
|
|
30
|
-
/**
|
|
31
|
-
* Hides the label visually while still keeping it available for screen
|
|
32
|
-
* readers.
|
|
33
|
-
*/
|
|
34
|
-
this.hideLabel = false;
|
|
35
|
-
/**
|
|
36
|
-
* Signals that there is an error associated with the checkbox, which can
|
|
37
|
-
* trigger visual cues.
|
|
38
|
-
* @validator error
|
|
39
|
-
*/
|
|
40
|
-
this.error = false;
|
|
41
|
-
/**
|
|
42
|
-
* Indicates whether the checkbox is checked or not.
|
|
43
|
-
*/
|
|
44
|
-
this.checked = false;
|
|
45
|
-
/**
|
|
46
|
-
* Indicates whether the checkbox is in an indeterminate state, typically used
|
|
47
|
-
* for hierarchical checkboxes.
|
|
48
|
-
*/
|
|
49
|
-
this.indeterminate = false;
|
|
50
|
-
/**
|
|
51
|
-
* Disables the checkbox, preventing user interaction.
|
|
52
|
-
*/
|
|
53
|
-
this.disabled = false;
|
|
54
|
-
/**
|
|
55
|
-
* Sets the checkbox to read-only, preventing user changes but still allowing
|
|
56
|
-
* focus and selection of text.
|
|
57
|
-
*/
|
|
58
|
-
this.readonly = false;
|
|
59
|
-
/**
|
|
60
|
-
* Marks the checkbox as required, indicating that it must be checked for
|
|
61
|
-
* form submission.
|
|
62
|
-
*/
|
|
63
|
-
this.required = false;
|
|
64
|
-
/**
|
|
65
|
-
* Applies focus to the input field as soon as the component is mounted. This
|
|
66
|
-
* is equivalent to setting the native autofocus attribute on an <input>
|
|
67
|
-
* element.
|
|
68
|
-
*/
|
|
69
|
-
this.autofocus = false;
|
|
70
|
-
}
|
|
71
|
-
//#endregion EVENTS
|
|
72
|
-
/****************************************************************************/
|
|
73
|
-
//#region LISTENERS
|
|
74
|
-
/**
|
|
75
|
-
* Listens for the change event on the checkbox input element and updates the
|
|
76
|
-
* checked state.
|
|
77
|
-
* @param {Event} event - The change event.
|
|
78
|
-
*/
|
|
79
|
-
handleChange(event) {
|
|
80
|
-
const target = event.target;
|
|
81
|
-
if (target.type === 'checkbox' && target.id === this.inputId) {
|
|
82
|
-
if (this.readonly || this.disabled) {
|
|
83
|
-
event.preventDefault();
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
if (this.indeterminate) {
|
|
87
|
-
this.indeterminate = false;
|
|
88
|
-
}
|
|
89
|
-
this.checked = target.checked;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
//#endregion LISTENERS
|
|
93
|
-
/****************************************************************************/
|
|
94
|
-
//#region WATCHERS
|
|
95
|
-
/**
|
|
96
|
-
* Watches for changes to the checked state and emits the new value.
|
|
97
|
-
* @param {boolean} checked - The new value of the checked state.
|
|
98
|
-
*/
|
|
99
|
-
onCheckedChanged(checked) {
|
|
100
|
-
this.checkedChanged.emit(checked);
|
|
101
|
-
}
|
|
102
|
-
//#endregion WATCHERS
|
|
103
|
-
/****************************************************************************/
|
|
104
|
-
//#region LIFECYCLE
|
|
105
|
-
componentWillRender() {
|
|
106
|
-
if (this.message) {
|
|
107
|
-
this.description = this.message;
|
|
108
|
-
}
|
|
109
|
-
if (this.labelBefore) {
|
|
110
|
-
this.labelPlacement = 'before';
|
|
111
|
-
}
|
|
112
|
-
if (this.validation) {
|
|
113
|
-
this.errorDescription = this.validation;
|
|
114
|
-
this.error = true;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
//#endregion LIFECYCLE
|
|
118
|
-
/****************************************************************************/
|
|
119
|
-
//#region RENDER
|
|
120
|
-
render() {
|
|
121
|
-
return (index.h(index.Host, { key: '1d627199f94d133d82bbef8f20de86590d9a3813', class: clsx297c1ffe.clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, index.h("div", { key: 'bca54e59576da2ec632a7ef7c5f8adb6fb3c77fb', class: "input-container" }, index.h("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 => {
|
|
122
|
-
if (el) {
|
|
123
|
-
el.indeterminate = this.indeterminate;
|
|
124
|
-
}
|
|
125
|
-
} }), index.h("span", { key: 'd575209c82fe0cbb4f3136a50eb78a9db12cacc0', class: "icon" }, this.checked && !this.indeterminate && (index.h("slot", { key: 'c265cb54bc4d76962203e8ee0298508e9f96bc58', name: "checked-icon" }, index.h("svg", { key: '03d326e69ac11bf22bc3ce43a80023f8c2ff8401', xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" }, index.h("path", { key: 'ae602d5613c82569f89f97d9e1b6994940f03f9c', d: "M11.6667 3.5L5.25004 9.91667L2.33337 7", "stroke-linecap": "round", "stroke-linejoin": "round" })))), this.indeterminate && (index.h("slot", { key: '9f90d9b9a63a50bd0ecd4433b390d4c03604e124', name: "indeterminate-icon" }, index.h("svg", { key: '7681c9b1203240f419fb7cf93644cef77f8438f6', class: "indeterminate-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 14 14", fill: "none" }, index.h("path", { key: 'c28a5d22adace616ede31baa3a4edbc8cb899f01', d: "M2.9165 7H11.0832", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), index.h("div", { key: '9213ad654a4c4f9576160c80195aec378559f2a0', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '73f6c22fe57659b0618216e69289a5704ac231eb', htmlFor: this.inputId, class: clsx297c1ffe.clsx(this.hideLabel && 'visually-hidden') }, index.h("slot", { key: 'fd70342006329609c2b0f9b501d0e2e7ad311f07', name: "label" }, this.label))), (this.description ||
|
|
126
|
-
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '17fb2ed0060b24b1ef797efe34b53c94a755a1ac', class: "description" }, index.h("slot", { key: '96d6c1b135f716de40c1223f35a479d3c8cc6c0d', name: "description" }, this.description))), (this.errorDescription ||
|
|
127
|
-
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: 'c63392b6d315d5104087561ca2abf166e190f0f7', hidden: !this.error, class: "error-description" }, index.h("slot", { key: '154010b1ec725f95d88bbf18a9e5d309b73affdd', name: "error-description" }, this.errorDescription))))));
|
|
128
|
-
}
|
|
129
|
-
static get formAssociated() { return true; }
|
|
130
|
-
get el() { return index.getElement(this); }
|
|
131
|
-
static get watchers() { return {
|
|
132
|
-
"checked": ["onCheckedChanged"]
|
|
133
|
-
}; }
|
|
134
|
-
};
|
|
135
|
-
NvFieldcheckbox.style = NvFieldcheckboxStyle0;
|
|
136
|
-
|
|
137
|
-
exports.nv_fieldcheckbox = NvFieldcheckbox;
|