@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,355 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-wDACGzKb.js');
|
|
4
|
-
var inputmaskEdcad3c1 = require('./inputmask-edcad3c1-B9Omti4z.js');
|
|
5
|
-
var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
|
|
6
|
-
require('react');
|
|
7
|
-
require('./_commonjsHelpers-1789f0cf-BJu3ubxk.js');
|
|
8
|
-
|
|
9
|
-
const nvFielddaterangeCss = "nv-fielddaterange{--nv-field-border-default:var(--components-form-field-border-default);--nv-field-border-hover:var(--components-form-field-border-hover);--nv-field-border-focus:var(--components-form-field-border-focus);--nv-field-border-disabled:var(--components-form-field-border-default);--nv-field-border-readonly:var(--components-form-field-border-default);--nv-field-focus-box-shadow:var(--color-focus-brand);--nv-field-background:var(--components-form-field-background-default);display:flex;flex-direction:column;align-items:flex-start;gap:var(--form-gap-y);box-sizing:border-box}nv-fielddaterange[readonly]:not([readonly=false]){--nv-field-border-default:var(--components-form-field-border-readonly);--nv-field-border-hover:var(--nv-field-border-default);--nv-field-border-focus:var(--components-form-field-border-focus);--nv-field-border-disabled:var(--nv-field-border-default);--nv-field-border-readonly:var(--nv-field-border-default);--nv-field-background:var(--components-form-field-background-readonly)}nv-fielddaterange[error]:not([error=false]){--nv-field-border-default:var(--components-form-field-border-error);--nv-field-border-hover:var(--nv-field-border-default);--nv-field-border-focus:var(--nv-field-border-default);--nv-field-border-disabled:var(--nv-field-border-default);--nv-field-border-readonly:var(--nv-field-border-default);--nv-field-focus-box-shadow:var(--color-focus-destructive)}nv-fielddaterange[success]:not([success=false]){--nv-field-border-default:var(--components-form-field-border-success);--nv-field-border-hover:var(--nv-field-border-default);--nv-field-border-focus:var(--nv-field-border-default);--nv-field-border-disabled:var(--nv-field-border-default);--nv-field-border-readonly:var(--nv-field-border-default);--nv-field-focus-box-shadow:var(--color-focus-success)}nv-fielddaterange[required]:not([required=false]) label::after{content:\"*\";color:var(--components-form-text-required);font-weight:700}nv-fielddaterange label{display:flex;align-items:center;gap:var(--form-label-gap);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-fielddaterange nv-popover{width:100%;display:block}nv-fielddaterange nv-popover [data-scope=popover]{padding:0;background-color:var(--components-list-dropdown-background);border:1px solid var(--components-list-dropdown-border);width:auto}nv-fielddaterange nv-popover [slot=content]{display:block;width:100%}nv-fielddaterange .input-wrapper{display:flex;flex-wrap:wrap;gap:var(--form-gap-x);align-items:stretch;align-self:stretch;display:flex;align-items:center;gap:8px}nv-fielddaterange .input-wrapper .input-container{display:flex;flex-grow:1;justify-content:center;align-items:center;align-self:stretch;border-radius:var(--form-field-radius);border-width:1px;border-style:solid;border-color:var(--nv-field-border-default);opacity:var(--components-form-opacity-default, 1);background:var(--nv-field-background);transition:all 150ms ease-out;position:relative;flex:1;min-width:0;padding-right:32px}nv-fielddaterange .input-wrapper .input-container:hover{border-color:var(--nv-field-border-hover)}nv-fielddaterange .input-wrapper .input-container:focus-within,nv-fielddaterange .input-wrapper .input-container:focus-within:hover,nv-fielddaterange .input-wrapper .input-container:focus,nv-fielddaterange .input-wrapper .input-container:focus:hover{border-color:var(--nv-field-border-focus);box-shadow:0px 0px 0px var(--focus-field-stroke) var(--nv-field-focus-box-shadow)}nv-fielddaterange .input-wrapper .input-container:has(input:read-only){opacity:0.5;background-color:var(--components-form-field-background-readonly);border-color:var(--nv-field-border-readonly)}nv-fielddaterange .input-wrapper .input-container:has(input:disabled){opacity:0.5;background-color:var(--components-form-field-background-disabled);border-color:var(--nv-field-border-disabled)}nv-fielddaterange .input-wrapper .input-container input{display:flex;align-items:center;flex:1 0 0;overflow:hidden;background-color:transparent;color:var(--components-form-field-content-text);padding:var(--form-field-padding-y) var(--form-field-padding-x);font-size:var(--form-field-font-size);font-style:normal;font-weight:500;line-height:var(--form-field-line-height);width:100%}nv-fielddaterange .input-wrapper .input-container input:focus{outline:none}nv-fielddaterange .input-wrapper .input-container input::placeholder{overflow:hidden;color:var(--components-form-field-content-placeholder);text-overflow:ellipsis;font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-field-font-size);font-style:normal;font-weight:400;line-height:var(--form-field-line-height)}nv-fielddaterange .input-wrapper .input-container nv-icon.validation{color:var(--nv-field-border-default)}nv-fielddaterange .input-wrapper .input-container .toggle-calendar-icon{position:absolute;right:0;top:50%;transform:translateY(-50%)}nv-fielddaterange .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;line-height:var(--form-description-line-height)}nv-fielddaterange .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;line-height:var(--form-description-line-height);color:var(--components-form-text-description-error)}nv-fielddaterange .range-inputs{display:flex;align-items:center;gap:8px;flex:1}nv-fielddaterange .range-inputs input{flex:1;border:none;outline:none;padding:0;font-size:var(--form-field-font-size);color:var(--components-form-field-content-text);background:transparent;min-width:0;text-align:center}nv-fielddaterange .range-inputs input::placeholder{color:var(--components-form-field-content-placeholder)}nv-fielddaterange .range-inputs input:disabled{cursor:not-allowed;color:var(--components-form-field-content-text);background-color:var(--components-form-field-background-disabled)}";
|
|
10
|
-
const NvFielddaterangeStyle0 = nvFielddaterangeCss;
|
|
11
|
-
|
|
12
|
-
const NvFielddaterange = class {
|
|
13
|
-
constructor(hostRef) {
|
|
14
|
-
index.registerInstance(this, hostRef);
|
|
15
|
-
this.dateRangeChange = index.createEvent(this, "dateRangeChange");
|
|
16
|
-
this.popoverId = v4A79185f4.v4();
|
|
17
|
-
/****************************************************************************/
|
|
18
|
-
//#region PROPERTIES
|
|
19
|
-
/**
|
|
20
|
-
* Sets the ID for the start input element and the for attribute of the associated
|
|
21
|
-
* label. If no ID is provided, a random one will be automatically generated.
|
|
22
|
-
*/
|
|
23
|
-
this.startInputId = v4A79185f4.v4();
|
|
24
|
-
/**
|
|
25
|
-
* Sets the ID for the end input element and the for attribute of the associated
|
|
26
|
-
* label. If no ID is provided, a random one will be automatically generated.
|
|
27
|
-
*/
|
|
28
|
-
this.endInputId = v4A79185f4.v4();
|
|
29
|
-
/**
|
|
30
|
-
* Disables both input fields.
|
|
31
|
-
*/
|
|
32
|
-
this.disabled = false;
|
|
33
|
-
/**
|
|
34
|
-
* Sets both input fields as read-only.
|
|
35
|
-
*/
|
|
36
|
-
this.readonly = false;
|
|
37
|
-
/**
|
|
38
|
-
* Marks both input fields as required.
|
|
39
|
-
*/
|
|
40
|
-
this.required = false;
|
|
41
|
-
/**
|
|
42
|
-
* Indicates an error state.
|
|
43
|
-
*/
|
|
44
|
-
this.error = false;
|
|
45
|
-
/**
|
|
46
|
-
* Indicates a success state.
|
|
47
|
-
*/
|
|
48
|
-
this.success = false;
|
|
49
|
-
/**
|
|
50
|
-
* Autofocus the start input when the component is mounted.
|
|
51
|
-
*/
|
|
52
|
-
this.shouldAutoFocus = false;
|
|
53
|
-
/**
|
|
54
|
-
* The initial value of the date range (in string format).
|
|
55
|
-
*/
|
|
56
|
-
this.value = '';
|
|
57
|
-
/**
|
|
58
|
-
* The current value of the start date in string format.
|
|
59
|
-
*/
|
|
60
|
-
this.startValue = '';
|
|
61
|
-
/**
|
|
62
|
-
* The current value of the end date in string format.
|
|
63
|
-
*/
|
|
64
|
-
this.endValue = '';
|
|
65
|
-
/**
|
|
66
|
-
* Controls the opening of the popover.
|
|
67
|
-
*/
|
|
68
|
-
this.open = false;
|
|
69
|
-
/**
|
|
70
|
-
* First day of the week 0 = Sunday, 1 = Monday, etc.
|
|
71
|
-
* @default 1
|
|
72
|
-
*/
|
|
73
|
-
this.firstDayOfWeek = 1;
|
|
74
|
-
/**
|
|
75
|
-
* Number of calendars to display
|
|
76
|
-
* @default 2
|
|
77
|
-
*/
|
|
78
|
-
this.numberOfCalendars = 2;
|
|
79
|
-
/**
|
|
80
|
-
* Minimum date for selection ISO string format, ex: 2025-01-01
|
|
81
|
-
*/
|
|
82
|
-
this.min = '';
|
|
83
|
-
/**
|
|
84
|
-
* Maximum date for selection ISO string format, ex: 2025-12-31
|
|
85
|
-
*/
|
|
86
|
-
this.max = '';
|
|
87
|
-
/** Locale for date formatting
|
|
88
|
-
* @default 'en-BE'
|
|
89
|
-
*/
|
|
90
|
-
this.locale = 'en-BE';
|
|
91
|
-
/** Date format ex: YYYY-MM-DD, DD-MM-YYYY, etc.
|
|
92
|
-
* @default 'YYYY-MM-DD'
|
|
93
|
-
*/
|
|
94
|
-
this.dateFormat = 'YYYY-MM-DD';
|
|
95
|
-
/**
|
|
96
|
-
* Footer placement
|
|
97
|
-
* @default 'bottom'
|
|
98
|
-
*/
|
|
99
|
-
this.shortcutsPlacement = 'bottom';
|
|
100
|
-
/**
|
|
101
|
-
* Show action buttons
|
|
102
|
-
* @default false
|
|
103
|
-
*/
|
|
104
|
-
this.showActions = false;
|
|
105
|
-
/**
|
|
106
|
-
* Custom actions to display in the footer
|
|
107
|
-
* JSON array of objects with the following properties:
|
|
108
|
-
* - label: string
|
|
109
|
-
* - onClick: function
|
|
110
|
-
* @default '[]'
|
|
111
|
-
*/
|
|
112
|
-
this.shortcuts = '[]';
|
|
113
|
-
/**
|
|
114
|
-
* Show week numbers
|
|
115
|
-
* @default true
|
|
116
|
-
*/
|
|
117
|
-
// eslint-disable-next-line @stencil-community/ban-default-true
|
|
118
|
-
this.showWeekNumbers = true;
|
|
119
|
-
/**
|
|
120
|
-
* Disabled dates ISO string array
|
|
121
|
-
* @default '[]'
|
|
122
|
-
*/
|
|
123
|
-
this.disabledDates = '[]';
|
|
124
|
-
/**
|
|
125
|
-
* Closes the popover when a click is detected outside the component.
|
|
126
|
-
* @param {MouseEvent} event - The mouse event
|
|
127
|
-
*/
|
|
128
|
-
this.handleClickOutside = (event) => {
|
|
129
|
-
if (this.open && this.el && !this.el.contains(event.target)) {
|
|
130
|
-
this.open = false;
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
/**
|
|
134
|
-
* Handles the input event on the start input element.
|
|
135
|
-
* @param {Event} event - The input event
|
|
136
|
-
*/
|
|
137
|
-
this.handleStartInput = (event) => {
|
|
138
|
-
if (this.readonly || this.disabled) {
|
|
139
|
-
event.preventDefault();
|
|
140
|
-
return;
|
|
141
|
-
}
|
|
142
|
-
const input = event.target;
|
|
143
|
-
this.startValue = input.value;
|
|
144
|
-
this.dateRangeChange.emit({ start: input.value, end: this.endValue });
|
|
145
|
-
};
|
|
146
|
-
/**
|
|
147
|
-
* Handles the input event on the end input element.
|
|
148
|
-
* @param {Event} event - The input event
|
|
149
|
-
*/
|
|
150
|
-
this.handleEndInput = (event) => {
|
|
151
|
-
if (this.readonly || this.disabled) {
|
|
152
|
-
event.preventDefault();
|
|
153
|
-
return;
|
|
154
|
-
}
|
|
155
|
-
const input = event.target;
|
|
156
|
-
this.endValue = input.value;
|
|
157
|
-
this.dateRangeChange.emit({ start: this.startValue, end: input.value });
|
|
158
|
-
};
|
|
159
|
-
/**
|
|
160
|
-
* Handles focus events on the input elements.
|
|
161
|
-
* @param {FocusEvent} event - The focus event
|
|
162
|
-
*/
|
|
163
|
-
this.handleFocus = (event) => {
|
|
164
|
-
if (this.readonly || this.disabled) {
|
|
165
|
-
event.preventDefault();
|
|
166
|
-
event.target.blur();
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
|
-
// Open the popover when an input is focused
|
|
170
|
-
this.open = true;
|
|
171
|
-
};
|
|
172
|
-
/**
|
|
173
|
-
* Toggles the opening/closing of the popover.
|
|
174
|
-
*/
|
|
175
|
-
this.toggleCalendar = () => {
|
|
176
|
-
if (this.readonly || this.disabled) {
|
|
177
|
-
return;
|
|
178
|
-
}
|
|
179
|
-
this.open = !this.open;
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
//#endregion PROPERTIES
|
|
183
|
-
/****************************************************************************/
|
|
184
|
-
//#region METHODS
|
|
185
|
-
/**
|
|
186
|
-
* Converts the nv-calendar date format to the format expected by Inputmask.
|
|
187
|
-
* @param {string} format - The date format to convert
|
|
188
|
-
* @returns {string} The converted format for Inputmask
|
|
189
|
-
*/
|
|
190
|
-
convertToInputmaskFormat(format) {
|
|
191
|
-
// Si le format n'est pas spécifié, utiliser le format par défaut YYYY-MM-DD
|
|
192
|
-
if (!format) {
|
|
193
|
-
return 'dd/mm/yyyy';
|
|
194
|
-
}
|
|
195
|
-
// Conversion des formats
|
|
196
|
-
const formatMap = {
|
|
197
|
-
'YYYY-MM-DD': 'yyyy-mm-dd',
|
|
198
|
-
'DD/MM/YYYY': 'dd/mm/yyyy',
|
|
199
|
-
'MM/DD/YYYY': 'mm/dd/yyyy',
|
|
200
|
-
'DD.MM.YYYY': 'dd.mm.yyyy',
|
|
201
|
-
'YYYYMMDD': 'yyyymmdd',
|
|
202
|
-
};
|
|
203
|
-
return formatMap[format] || 'dd/mm/yyyy';
|
|
204
|
-
}
|
|
205
|
-
//#endregion METHODS
|
|
206
|
-
/****************************************************************************/
|
|
207
|
-
//#region LIFECYCLE
|
|
208
|
-
connectedCallback() {
|
|
209
|
-
document.addEventListener('click', this.handleClickOutside);
|
|
210
|
-
}
|
|
211
|
-
componentWillLoad() {
|
|
212
|
-
if (this.value) {
|
|
213
|
-
try {
|
|
214
|
-
const range = JSON.parse(this.value);
|
|
215
|
-
this.startValue = range.start || '';
|
|
216
|
-
this.endValue = range.end || '';
|
|
217
|
-
}
|
|
218
|
-
catch (error) {
|
|
219
|
-
console.error('Invalid JSON for value:');
|
|
220
|
-
console.error(error);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
componentDidLoad() {
|
|
225
|
-
const inputs = this.el.querySelectorAll('.input-wrapper input');
|
|
226
|
-
inputs.forEach((input) => {
|
|
227
|
-
const inputMask = new inputmaskEdcad3c1.Inputmask({
|
|
228
|
-
alias: 'datetime',
|
|
229
|
-
inputFormat: this.convertToInputmaskFormat(this.dateFormat),
|
|
230
|
-
placeholder: '_',
|
|
231
|
-
clearIncomplete: false,
|
|
232
|
-
showMaskOnHover: false,
|
|
233
|
-
showMaskOnFocus: false,
|
|
234
|
-
clearMaskOnLostFocus: false,
|
|
235
|
-
insertMode: true,
|
|
236
|
-
rightAlign: false,
|
|
237
|
-
oncomplete: function (e) {
|
|
238
|
-
const input = e.target;
|
|
239
|
-
const event = new CustomEvent('input', { bubbles: true });
|
|
240
|
-
input.dispatchEvent(event);
|
|
241
|
-
},
|
|
242
|
-
});
|
|
243
|
-
inputMask.mask(input);
|
|
244
|
-
// Set the value after applying the mask
|
|
245
|
-
if (input.name === this.startName && this.startValue) {
|
|
246
|
-
requestAnimationFrame(() => {
|
|
247
|
-
input.value = this.startValue;
|
|
248
|
-
const event = new CustomEvent('input', { bubbles: true });
|
|
249
|
-
input.dispatchEvent(event);
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
else if (input.name === this.endName && this.endValue) {
|
|
253
|
-
requestAnimationFrame(() => {
|
|
254
|
-
input.value = this.endValue;
|
|
255
|
-
const event = new CustomEvent('input', { bubbles: true });
|
|
256
|
-
input.dispatchEvent(event);
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
componentDidRender() {
|
|
262
|
-
const inputs = this.el.querySelectorAll('.input-wrapper input');
|
|
263
|
-
inputs.forEach((input) => {
|
|
264
|
-
const value = input.name === this.startName
|
|
265
|
-
? this.startValue
|
|
266
|
-
: this.endName
|
|
267
|
-
? this.endValue
|
|
268
|
-
: '';
|
|
269
|
-
if (value) {
|
|
270
|
-
// Make sure the value is defined both as a property and attribute
|
|
271
|
-
requestAnimationFrame(() => {
|
|
272
|
-
input.value = value;
|
|
273
|
-
input.setAttribute('value', value);
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
disconnectedCallback() {
|
|
279
|
-
document.removeEventListener('click', this.handleClickOutside);
|
|
280
|
-
}
|
|
281
|
-
/**
|
|
282
|
-
* Handles the range date selection event from nv-calendar.
|
|
283
|
-
* @param {CustomEvent<DateRange>} event - The custom event
|
|
284
|
-
*/
|
|
285
|
-
handleRangeDateChange(event) {
|
|
286
|
-
const { start, end } = event.detail || {};
|
|
287
|
-
// Check that both dates are defined
|
|
288
|
-
if (start && end) {
|
|
289
|
-
this.startValue = start;
|
|
290
|
-
this.endValue = end;
|
|
291
|
-
this.dateRangeChange.emit({
|
|
292
|
-
start: this.startValue,
|
|
293
|
-
end: this.endValue,
|
|
294
|
-
});
|
|
295
|
-
if (!this.showActions) {
|
|
296
|
-
this.open = false;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
handleClosePopover() {
|
|
301
|
-
this.open = false;
|
|
302
|
-
}
|
|
303
|
-
handleApplyDateRange() {
|
|
304
|
-
this.open = false;
|
|
305
|
-
}
|
|
306
|
-
/**
|
|
307
|
-
* Handles keyboard events.
|
|
308
|
-
* @param {KeyboardEvent} event - The keyboard event
|
|
309
|
-
*/
|
|
310
|
-
handleKeyDown(event) {
|
|
311
|
-
if (!this.open) {
|
|
312
|
-
if (event.key === 'ArrowDown') {
|
|
313
|
-
this.open = true;
|
|
314
|
-
event.preventDefault();
|
|
315
|
-
return;
|
|
316
|
-
}
|
|
317
|
-
return;
|
|
318
|
-
}
|
|
319
|
-
if (!this.popoverElement) {
|
|
320
|
-
console.warn('nv-fielddaterange -> Popover element is not defined');
|
|
321
|
-
return;
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
handleValueChange(newValue) {
|
|
325
|
-
try {
|
|
326
|
-
const range = JSON.parse(newValue);
|
|
327
|
-
this.startValue = range.start || '';
|
|
328
|
-
this.endValue = range.end || '';
|
|
329
|
-
}
|
|
330
|
-
catch (error) {
|
|
331
|
-
console.error('Invalid JSON for value:', error);
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
//#endregion EVENTS
|
|
335
|
-
/****************************************************************************/
|
|
336
|
-
//#region RENDER
|
|
337
|
-
render() {
|
|
338
|
-
return (index.h(index.Host, { key: '357f98b39d7cade75f24caaba007eec4279cd24e' }, ((this.label && this.label.length > 0) ||
|
|
339
|
-
this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '0731f0d5ad79d323dade2f023f5a9c3088c744b2', htmlFor: this.startInputId }, index.h("slot", { key: '75309cb4161e1652f0445ba924c6d7a58de140c3', name: "label" }, this.label))), index.h("nv-popover", { key: 'f66e2544956ea3dedd249719a4b436077bdc85c0', ref: el => (this.popoverElement = el), id: this.popoverId, triggerMode: "controlled", placement: "bottom-start", open: this.open }, index.h("div", { key: 'c1a3b117056a521f6f778a978b4bc8edac32a111', slot: "trigger", class: "input-wrapper" }, index.h("slot", { key: '5fbe2aff9687456dd299792016904470386dfb94', name: "before-input" }), index.h("div", { key: '46726768e9724e983063479e0f301c3d09169669', class: "input-container" }, index.h("slot", { key: 'f4a405be4a98566bd40dc9d19087d2c5c0ac798f', name: "leading-input" }), index.h("div", { key: 'd1abc5e239272e57f0fdbf4c0e9e76ca86230996', class: "range-inputs" }, index.h("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 }), index.h("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" }, index.h("path", { key: 'c6245bd4ffa2bb12df3a295a6a10ce8386b5f54b', stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), index.h("path", { key: 'c1b3400148e367dae092eecec9da410cfa2e7547', d: "M18 9l3 3l-3 3" }), index.h("path", { key: '08bc414df54afe457775aec97897ed0acf2dca38', d: "M15 12h6" }), index.h("path", { key: 'd9136526597df7a8193f71414caba9481248ebf2', d: "M6 9l-3 3l3 3" }), index.h("path", { key: '1d194b3449c53be3f05458ade789e99998861371', d: "M3 12h6" })), index.h("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 })), index.h("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 })), index.h("slot", { key: 'bf0ea3f63a5476e7ff4a6954fb200c15a493d6ac', name: "after-input" })), index.h("div", { key: '32fcfbafe86ce08d87d597d40ad25702dd059ed6', slot: "content" }, index.h("nv-calendar", { key: 'ef670618ecca933d976adefaec9996f172f95d7a', dateFormat: this.dateFormat, rangeValue: this.startValue && this.endValue
|
|
340
|
-
? JSON.stringify({
|
|
341
|
-
start: this.startValue,
|
|
342
|
-
end: this.endValue,
|
|
343
|
-
})
|
|
344
|
-
: '', 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) ||
|
|
345
|
-
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '15dbab39d7ceaf406246462812d8a1307dad40bb', class: "description" }, index.h("slot", { key: '1c5f74676b312a6bbca659a783473da7c3936829', name: "description" }, this.description))), (this.errorDescription ||
|
|
346
|
-
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '8f48ac666968cddfdd2c282366ed2f6dccd3013c', hidden: !this.error, class: "error-description" }, this.el.querySelector('[slot="error-description"]') ? (index.h("slot", { name: "error-description" })) : (this.errorDescription))), index.h("slot", { key: '92dc673a2d62a34d3830cf6644b84103b73b695b' })));
|
|
347
|
-
}
|
|
348
|
-
get el() { return index.getElement(this); }
|
|
349
|
-
static get watchers() { return {
|
|
350
|
-
"value": ["handleValueChange"]
|
|
351
|
-
}; }
|
|
352
|
-
};
|
|
353
|
-
NvFielddaterange.style = NvFielddaterangeStyle0;
|
|
354
|
-
|
|
355
|
-
exports.nv_fielddaterange = NvFielddaterange;
|