@nasa-terra/components 0.0.146 → 0.0.148
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/cdn/chunks/chunk.26DDUSR7.js +1001 -0
- package/cdn/chunks/chunk.2AQWWBQP.js +83 -0
- package/cdn/chunks/chunk.2D24PNY3.js +977 -0
- package/cdn/chunks/chunk.2ERJP7EQ.js +19 -0
- package/cdn/chunks/chunk.2H5RKQQE.js +29 -0
- package/cdn/chunks/chunk.2HBCWWZY.js +155 -0
- package/cdn/chunks/chunk.2MOKVZJ5.js +110 -0
- package/cdn/chunks/chunk.2OATTCJS.js +60 -0
- package/cdn/chunks/chunk.2QLCPLJA.js +83 -0
- package/cdn/chunks/chunk.2U7IQRQF.js +29 -0
- package/cdn/chunks/chunk.3EEC7I6T.js +77 -0
- package/cdn/chunks/chunk.3FMOE22A.js +29 -0
- package/cdn/chunks/chunk.3GXOGKXF.js +19 -0
- package/cdn/chunks/chunk.3IITJSKJ.js +19 -0
- package/cdn/chunks/chunk.3IIWIDHX.js +19 -0
- package/cdn/chunks/chunk.3MFQHCTU.js +306 -0
- package/cdn/chunks/chunk.3MKYZ6M6.js +33 -0
- package/cdn/chunks/chunk.3P6RBNDU.js +524 -0
- package/cdn/chunks/chunk.3SO4K6Y3.js +355 -0
- package/cdn/chunks/chunk.3T3MJAQE.js +1885 -0
- package/cdn/chunks/chunk.3TGD65LI.js +29 -0
- package/cdn/chunks/chunk.42DMRGGV.js +235 -0
- package/cdn/chunks/chunk.4IRR2CH7.js +293 -0
- package/cdn/chunks/chunk.4N5QSR7H.js +113 -0
- package/cdn/chunks/chunk.4NP5NRI4.js +93 -0
- package/cdn/chunks/chunk.4R6JWWNF.js +19 -0
- package/cdn/chunks/chunk.4TZ3EHG3.js +19 -0
- package/cdn/chunks/chunk.4UL4WO5H.js +146 -0
- package/cdn/chunks/chunk.4XNBPCMS.js +30 -0
- package/cdn/chunks/chunk.53RLWPIG.js +19 -0
- package/cdn/chunks/chunk.57YZ5M3S.js +29 -0
- package/cdn/chunks/chunk.5BKRGPYR.js +37 -0
- package/cdn/chunks/chunk.5EMIO54T.js +19 -0
- package/cdn/chunks/chunk.5ICGSIFG.js +29 -0
- package/cdn/chunks/chunk.5RSJLHKI.js +19 -0
- package/cdn/chunks/chunk.5RYT4QNM.js +157 -0
- package/cdn/chunks/chunk.5UXU4BFG.js +29 -0
- package/cdn/chunks/chunk.644RAZC5.js +19 -0
- package/cdn/chunks/chunk.66YPQHM6.js +19 -0
- package/cdn/chunks/chunk.6DYWTPAR.js +19 -0
- package/cdn/chunks/chunk.6HSNJXZ2.js +29 -0
- package/cdn/chunks/chunk.6MEDBU74.js +19 -0
- package/cdn/chunks/chunk.75ADXWMK.js +19 -0
- package/cdn/chunks/chunk.7LXJ3MSC.js +281 -0
- package/cdn/chunks/chunk.7WPNUNM3.js +29 -0
- package/cdn/chunks/chunk.AKTZRHS6.js +32 -0
- package/cdn/chunks/chunk.ANM54WWD.js +499 -0
- package/cdn/chunks/chunk.AOBM3K6V.js +19 -0
- package/cdn/chunks/chunk.ATRAU34R.js +47 -0
- package/cdn/chunks/chunk.AV2ZLQJ4.js +32 -0
- package/cdn/chunks/chunk.B4OZ2O2H.js +19 -0
- package/cdn/chunks/chunk.B55VP7NG.js +730 -0
- package/cdn/chunks/chunk.B66MMPY3.js +19 -0
- package/cdn/chunks/chunk.BB4JADJY.js +189 -0
- package/cdn/chunks/chunk.BBA4O6MU.js +19 -0
- package/cdn/chunks/chunk.BEYOFXDN.js +259 -0
- package/cdn/chunks/chunk.BITUWHVL.js +54 -0
- package/cdn/chunks/chunk.BNRQEYYG.js +74 -0
- package/cdn/chunks/chunk.BVYTDYJM.js +19 -0
- package/cdn/chunks/chunk.C7DGAKZF.js +248 -0
- package/cdn/chunks/chunk.CGMFTEYF.js +67 -0
- package/cdn/chunks/chunk.CHVHBCFK.js +19 -0
- package/cdn/chunks/chunk.CKPSC2YQ.js +19 -0
- package/cdn/chunks/chunk.CNHZIATM.js +19 -0
- package/cdn/chunks/chunk.CPT5FSUS.js +29 -0
- package/cdn/chunks/chunk.CYZSNUSR.js +19 -0
- package/cdn/chunks/chunk.D4SARMFF.js +29 -0
- package/cdn/chunks/chunk.D5QT4HAC.js +357 -0
- package/cdn/chunks/chunk.D6KLB4SR.js +264 -0
- package/cdn/chunks/chunk.D7HIWLCB.js +19 -0
- package/cdn/chunks/chunk.DIUECPZ6.js +29 -0
- package/cdn/chunks/chunk.DO3GPKMH.js +239 -0
- package/cdn/chunks/chunk.DTVVJVWX.js +36 -0
- package/cdn/chunks/chunk.EG5SCAMM.js +29 -0
- package/cdn/chunks/chunk.EGTBQ75C.js +279 -0
- package/cdn/chunks/chunk.EKADLA4J.js +477 -0
- package/cdn/chunks/chunk.ERM35NF4.js +93 -0
- package/cdn/chunks/chunk.F7ZYEGQL.js +19 -0
- package/cdn/chunks/chunk.FBR43ZJC.js +19 -0
- package/cdn/chunks/chunk.FDPKDOMW.js +19 -0
- package/cdn/chunks/chunk.FN2VVYJB.js +610 -0
- package/cdn/chunks/chunk.FNWEDAUS.js +32 -0
- package/cdn/chunks/chunk.FOTBSPL7.js +32 -0
- package/cdn/chunks/chunk.FSMXDSCC.js +29 -0
- package/cdn/chunks/chunk.FVA7XOQZ.js +136 -0
- package/cdn/chunks/chunk.FXM6K5HM.js +217 -0
- package/cdn/chunks/chunk.G3ZAT7U7.js +19 -0
- package/cdn/chunks/chunk.GDWMHE72.js +19 -0
- package/cdn/chunks/chunk.GVVU2QFZ.js +230 -0
- package/cdn/chunks/chunk.GWC5SERB.js +29 -0
- package/cdn/chunks/chunk.GWLLGOGA.js +435 -0
- package/cdn/chunks/chunk.HG7YEH4N.js +19 -0
- package/cdn/chunks/chunk.HI4LY57S.js +19 -0
- package/cdn/chunks/chunk.HNDHHR5X.js +29 -0
- package/cdn/chunks/chunk.HNE4DLKP.js +276 -0
- package/cdn/chunks/chunk.HTY5XIP3.js +36 -0
- package/cdn/chunks/chunk.IG5VNZ6L.js +621 -0
- package/cdn/chunks/chunk.IIE7WTXU.js +19 -0
- package/cdn/chunks/chunk.IMVTBJCP.js +288 -0
- package/cdn/chunks/chunk.ISOII3AR.js +372 -0
- package/cdn/chunks/chunk.IVXZL4I7.js +32 -0
- package/cdn/chunks/chunk.IWVNVNRD.js +134 -0
- package/cdn/chunks/chunk.IYTQ7JXJ.js +32 -0
- package/cdn/chunks/chunk.J2JNOWNB.js +493 -0
- package/cdn/chunks/chunk.J4S3AKGX.js +29 -0
- package/cdn/chunks/chunk.JFHC3LXJ.js +56 -0
- package/cdn/chunks/chunk.JFIILRD3.js +19 -0
- package/cdn/chunks/chunk.JLXOCSMS.js +19 -0
- package/cdn/chunks/chunk.JTNRV7ID.js +33858 -0
- package/cdn/chunks/chunk.JTUFJGZC.js +71 -0
- package/cdn/chunks/chunk.JXBBNPEC.js +315 -0
- package/cdn/chunks/chunk.JYWDOFNE.js +19 -0
- package/cdn/chunks/chunk.K5LF4PYF.js +19 -0
- package/cdn/chunks/chunk.KANKIMPQ.js +36 -0
- package/cdn/chunks/chunk.KDBSESEK.js +1966 -0
- package/cdn/chunks/chunk.KDGXIPVR.js +19 -0
- package/cdn/chunks/chunk.KDSWQWNC.js +32 -0
- package/cdn/chunks/chunk.KKSZHZQQ.js +165 -0
- package/cdn/chunks/chunk.KNKXGGFO.js +19 -0
- package/cdn/chunks/chunk.KT5CTAJQ.js +278 -0
- package/cdn/chunks/chunk.L2EN6MIT.js +32 -0
- package/cdn/chunks/chunk.LHDGZGVJ.js +35 -0
- package/cdn/chunks/chunk.LRI354CM.js +29 -0
- package/cdn/chunks/chunk.LSEV2FOG.js +754 -0
- package/cdn/chunks/chunk.LUMFXOPG.js +19 -0
- package/cdn/chunks/chunk.MGYTJVL4.js +19 -0
- package/cdn/chunks/chunk.MHK5DELH.js +538 -0
- package/cdn/chunks/chunk.MMYZK7Q3.js +32 -0
- package/cdn/chunks/chunk.MNM6A2JQ.js +32 -0
- package/cdn/chunks/chunk.MOSKKKZX.js +19 -0
- package/cdn/chunks/chunk.NHD37PG6.js +19 -0
- package/cdn/chunks/chunk.NJZERCJI.js +19 -0
- package/cdn/chunks/chunk.NLYZZIUI.js +99 -0
- package/cdn/chunks/chunk.OBYCJJXH.js +35 -0
- package/cdn/chunks/chunk.ODGMYUOU.js +33 -0
- package/cdn/chunks/chunk.OJ3UDF4X.js +35 -0
- package/cdn/chunks/chunk.OKCZX5F2.js +29 -0
- package/cdn/chunks/chunk.OMTCS2GC.js +315 -0
- package/cdn/chunks/chunk.OY56IRUX.js +33 -0
- package/cdn/chunks/chunk.PD4A4TIR.js +234 -0
- package/cdn/chunks/chunk.PD5GVIKL.js +29 -0
- package/cdn/chunks/chunk.PEMCUYYB.js +29 -0
- package/cdn/chunks/chunk.PFQHUWXK.js +33 -0
- package/cdn/chunks/chunk.PGIPD5G7.js +188 -0
- package/cdn/chunks/chunk.PL2AO7PI.js +286 -0
- package/cdn/chunks/chunk.PUNY2RWF.js +19 -0
- package/cdn/chunks/chunk.PV65AF4K.js +302 -0
- package/cdn/chunks/chunk.PVOCCXS6.js +2183 -0
- package/cdn/chunks/chunk.PYFU643H.js +29 -0
- package/cdn/chunks/chunk.PZEI6LMM.js +599 -0
- package/cdn/chunks/chunk.QBGXKSWO.js +19 -0
- package/cdn/chunks/chunk.QECFDRRV.js +134 -0
- package/cdn/chunks/chunk.QKUGZK23.js +19 -0
- package/cdn/chunks/chunk.QO7AARYC.js +49 -0
- package/cdn/chunks/chunk.R2634BBP.js +123 -0
- package/cdn/chunks/chunk.R2QOLEAO.js +19 -0
- package/cdn/chunks/chunk.R46ULJYO.js +29 -0
- package/cdn/chunks/chunk.RJ5FJQMJ.js +359 -0
- package/cdn/chunks/chunk.RWM4STRJ.js +99 -0
- package/cdn/chunks/chunk.RYY6E6I5.js +29 -0
- package/cdn/chunks/chunk.RZZHOKXL.js +230 -0
- package/cdn/chunks/chunk.S3TT2KXB.js +19 -0
- package/cdn/chunks/chunk.S63W7HPL.js +62 -0
- package/cdn/chunks/chunk.SAA5UB7R.js +19 -0
- package/cdn/chunks/chunk.SEQFSNN4.js +33 -0
- package/cdn/chunks/chunk.SFPZ4F2U.js +19 -0
- package/cdn/chunks/chunk.SIKETPO7.js +151 -0
- package/cdn/chunks/chunk.SQHYAFR7.js +106 -0
- package/cdn/chunks/chunk.SXQD7P7K.js +19 -0
- package/cdn/chunks/chunk.SZLGHFXH.js +32 -0
- package/cdn/chunks/chunk.T4EQTEDI.js +79 -0
- package/cdn/chunks/chunk.TILZAS6I.js +29 -0
- package/cdn/chunks/chunk.TOZJSWZM.js +257 -0
- package/cdn/chunks/chunk.TPRNW63I.js +19 -0
- package/cdn/chunks/chunk.U455YRJT.js +190 -0
- package/cdn/chunks/chunk.UHGVHFE5.js +19 -0
- package/cdn/chunks/chunk.UR3D3K6M.js +19 -0
- package/cdn/chunks/chunk.URX2ZWKZ.js +29 -0
- package/cdn/chunks/chunk.UUBDATBB.js +224 -0
- package/cdn/chunks/chunk.UUVPLPDH.js +231 -0
- package/cdn/chunks/chunk.V2WY3ENM.js +86 -0
- package/cdn/chunks/chunk.V4HB4LHW.js +29 -0
- package/cdn/chunks/chunk.VBX2KUZ2.js +35 -0
- package/cdn/chunks/chunk.VCE5BG7N.js +904 -0
- package/cdn/chunks/chunk.VDZPOK2I.js +19 -0
- package/cdn/chunks/chunk.VI5QVF3V.js +104 -0
- package/cdn/chunks/chunk.VLE3E7OU.js +92 -0
- package/cdn/chunks/chunk.VLEV62AV.js +32 -0
- package/cdn/chunks/chunk.VP7HTSN3.js +34 -0
- package/cdn/chunks/chunk.VV5S6NQM.js +32 -0
- package/cdn/chunks/chunk.VYYAY7UO.js +39 -0
- package/cdn/chunks/chunk.W2U2PUDN.js +19 -0
- package/cdn/chunks/chunk.W3K2METX.js +132 -0
- package/cdn/chunks/chunk.WARBDBRT.js +32 -0
- package/cdn/chunks/chunk.WFGGEDAO.js +36 -0
- package/cdn/chunks/chunk.WIDJLVQP.js +19 -0
- package/cdn/chunks/chunk.WMSHRPLY.js +158 -0
- package/cdn/chunks/chunk.WTSRJBCY.js +19 -0
- package/cdn/chunks/chunk.WWBN32X3.js +37 -0
- package/cdn/chunks/chunk.WZS26FZO.js +34 -0
- package/cdn/chunks/chunk.X2VZXSKW.js +615 -0
- package/cdn/chunks/chunk.XBTSXAMY.js +634 -0
- package/cdn/chunks/chunk.XDHVQ5Q6.js +29 -0
- package/cdn/chunks/chunk.XGGFUM66.js +29 -0
- package/cdn/chunks/chunk.YAQ7CZNB.js +60 -0
- package/cdn/chunks/chunk.YEZI2CO4.js +19 -0
- package/cdn/chunks/chunk.YO4X3RWQ.js +662 -0
- package/cdn/chunks/chunk.YROWZNHD.js +33 -0
- package/cdn/chunks/chunk.YU2DGS7L.js +78 -0
- package/cdn/chunks/chunk.Z36A6L6K.js +41 -0
- package/cdn/chunks/chunk.Z7AS724G.js +19 -0
- package/cdn/chunks/chunk.ZDXG4NZB.js +19 -0
- package/cdn/chunks/chunk.ZEM2CRPM.js +29 -0
- package/cdn/chunks/chunk.ZTYJERMM.js +55346 -0
- package/cdn/chunks/chunk.ZVQIG4FI.js +10729 -0
- package/cdn/components/accordion/accordion.component.js +5 -5
- package/cdn/components/accordion/accordion.js +6 -6
- package/cdn/components/alert/alert.component.js +3 -3
- package/cdn/components/alert/alert.js +4 -4
- package/cdn/components/avatar/avatar.component.js +7 -7
- package/cdn/components/avatar/avatar.js +8 -8
- package/cdn/components/badge/badge.component.js +2 -2
- package/cdn/components/badge/badge.js +3 -3
- package/cdn/components/breadcrumb/breadcrumb.component.js +2 -2
- package/cdn/components/breadcrumb/breadcrumb.js +3 -3
- package/cdn/components/breadcrumbs/breadcrumbs.component.js +2 -2
- package/cdn/components/breadcrumbs/breadcrumbs.js +3 -3
- package/cdn/components/browse-variables/browse-variables.component.js +17 -17
- package/cdn/components/browse-variables/browse-variables.js +18 -18
- package/cdn/components/button/button.component.js +8 -8
- package/cdn/components/button/button.js +9 -9
- package/cdn/components/button-group/button-group.component.js +2 -2
- package/cdn/components/button-group/button-group.js +3 -3
- package/cdn/components/caption/caption.component.js +2 -2
- package/cdn/components/caption/caption.js +3 -3
- package/cdn/components/card/card.component.js +2 -2
- package/cdn/components/card/card.js +3 -3
- package/cdn/components/checkbox/checkbox.component.js +8 -8
- package/cdn/components/checkbox/checkbox.js +9 -9
- package/cdn/components/chip/chip.component.js +2 -2
- package/cdn/components/chip/chip.js +3 -3
- package/cdn/components/combobox/combobox.component.js +6 -6
- package/cdn/components/combobox/combobox.js +7 -7
- package/cdn/components/data-access/data-access.component.d.ts +0 -2
- package/cdn/components/data-access/data-access.component.js +34 -34
- package/cdn/components/data-access/data-access.controller.d.ts +3 -0
- package/cdn/components/data-access/data-access.controller.js +2 -2
- package/cdn/components/data-access/data-access.js +35 -35
- package/cdn/components/data-access/data-access.styles.js +1 -1
- package/cdn/components/data-grid/data-grid.component.js +5 -5
- package/cdn/components/data-grid/data-grid.js +6 -6
- package/cdn/components/data-rods/data-rods.component.d.ts +11 -8
- package/cdn/components/data-rods/data-rods.component.js +44 -44
- package/cdn/components/data-rods/data-rods.js +45 -45
- package/cdn/components/data-rods/data-rods.styles.js +1 -1
- package/cdn/components/data-subsetter/data-subsetter.component.d.ts +6 -0
- package/cdn/components/data-subsetter/data-subsetter.component.js +46 -45
- package/cdn/components/data-subsetter/data-subsetter.controller.d.ts +4 -0
- package/cdn/components/data-subsetter/data-subsetter.controller.js +2 -2
- package/cdn/components/data-subsetter/data-subsetter.js +47 -46
- package/cdn/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
- package/cdn/components/data-subsetter-history/data-subsetter-history.component.d.ts +3 -0
- package/cdn/components/data-subsetter-history/data-subsetter-history.component.js +48 -47
- package/cdn/components/data-subsetter-history/data-subsetter-history.js +49 -48
- package/cdn/components/data-subsetter-history/data-subsetter-history.styles.js +1 -1
- package/cdn/components/date-picker/date-picker.component.d.ts +15 -1
- package/cdn/components/date-picker/date-picker.component.js +16 -16
- package/cdn/components/date-picker/date-picker.js +17 -17
- package/cdn/components/date-picker/date-picker.styles.js +1 -1
- package/cdn/components/date-range-slider/date-range-slider.component.js +2 -2
- package/cdn/components/date-range-slider/date-range-slider.js +3 -3
- package/cdn/components/dialog/dialog.component.js +10 -10
- package/cdn/components/dialog/dialog.js +11 -11
- package/cdn/components/divider/divider.component.js +2 -2
- package/cdn/components/divider/divider.js +3 -3
- package/cdn/components/dropdown/dropdown.component.js +3 -3
- package/cdn/components/dropdown/dropdown.js +4 -4
- package/cdn/components/earthdata-login/earthdata-login.component.d.ts +2 -2
- package/cdn/components/earthdata-login/earthdata-login.component.js +17 -17
- package/cdn/components/earthdata-login/earthdata-login.js +18 -18
- package/cdn/components/earthdata-login/earthdata-login.styles.js +1 -1
- package/cdn/components/file-upload/file-upload.component.js +2 -2
- package/cdn/components/file-upload/file-upload.js +3 -3
- package/cdn/components/icon/icon.component.js +3 -3
- package/cdn/components/icon/icon.js +4 -4
- package/cdn/components/input/input.component.js +8 -8
- package/cdn/components/input/input.js +9 -9
- package/cdn/components/loader/loader.component.js +2 -2
- package/cdn/components/loader/loader.js +3 -3
- package/cdn/components/login/login.component.js +13 -13
- package/cdn/components/login/login.js +14 -14
- package/cdn/components/map/leaflet-utils.js +1 -1
- package/cdn/components/map/map.component.d.ts +5 -0
- package/cdn/components/map/map.component.js +7 -7
- package/cdn/components/map/map.js +8 -8
- package/cdn/components/menu/menu.component.js +2 -2
- package/cdn/components/menu/menu.js +3 -3
- package/cdn/components/menu-item/menu-item.component.js +11 -11
- package/cdn/components/menu-item/menu-item.js +12 -12
- package/cdn/components/menu-item/submenu-controller.js +3 -3
- package/cdn/components/option/option.component.js +6 -6
- package/cdn/components/option/option.js +7 -7
- package/cdn/components/pagination/pagination.component.js +6 -6
- package/cdn/components/pagination/pagination.js +7 -7
- package/cdn/components/plot/plot.component.js +2 -2
- package/cdn/components/plot/plot.js +3 -3
- package/cdn/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +1 -1
- package/cdn/components/plot-toolbar/notebooks/time-series-notebook.js +1 -1
- package/cdn/components/plot-toolbar/plot-toolbar.component.d.ts +4 -0
- package/cdn/components/plot-toolbar/plot-toolbar.component.js +20 -20
- package/cdn/components/plot-toolbar/plot-toolbar.controller.js +2 -2
- package/cdn/components/plot-toolbar/plot-toolbar.js +21 -21
- package/cdn/components/plot-toolbar/plot-toolbar.styles.js +1 -1
- package/cdn/components/popup/popup.component.js +2 -2
- package/cdn/components/popup/popup.js +3 -3
- package/cdn/components/progress-bar/progress-bar.component.js +2 -2
- package/cdn/components/progress-bar/progress-bar.js +3 -3
- package/cdn/components/radio/radio.component.js +4 -4
- package/cdn/components/radio/radio.js +5 -5
- package/cdn/components/radio-group/radio-group.component.js +2 -2
- package/cdn/components/radio-group/radio-group.js +3 -3
- package/cdn/components/scroll-hint/scroll-hint.component.js +4 -4
- package/cdn/components/scroll-hint/scroll-hint.js +5 -5
- package/cdn/components/select/select.component.js +10 -10
- package/cdn/components/select/select.js +11 -11
- package/cdn/components/site-header/site-header.component.js +5 -5
- package/cdn/components/site-header/site-header.js +5 -5
- package/cdn/components/site-navigation/site-navigation.component.js +2 -2
- package/cdn/components/site-navigation/site-navigation.js +2 -2
- package/cdn/components/skeleton/skeleton.component.js +3 -3
- package/cdn/components/skeleton/skeleton.js +4 -4
- package/cdn/components/skeleton/skeleton.styles.js +1 -1
- package/cdn/components/slider/slider.component.js +2 -2
- package/cdn/components/slider/slider.js +3 -3
- package/cdn/components/spatial-picker/spatial-picker.component.d.ts +11 -1
- package/cdn/components/spatial-picker/spatial-picker.component.js +18 -18
- package/cdn/components/spatial-picker/spatial-picker.js +19 -19
- package/cdn/components/status-indicator/status-indicator.component.js +2 -2
- package/cdn/components/status-indicator/status-indicator.js +3 -3
- package/cdn/components/stepper/stepper.component.js +2 -2
- package/cdn/components/stepper/stepper.js +3 -3
- package/cdn/components/stepper-step/stepper-step.component.js +6 -6
- package/cdn/components/stepper-step/stepper-step.js +7 -7
- package/cdn/components/tab/tab.component.js +6 -6
- package/cdn/components/tab/tab.js +7 -7
- package/cdn/components/tab-panel/tab-panel.component.js +2 -2
- package/cdn/components/tab-panel/tab-panel.js +3 -3
- package/cdn/components/tabs/tabs.component.js +6 -6
- package/cdn/components/tabs/tabs.js +7 -7
- package/cdn/components/tag/tag.component.js +6 -6
- package/cdn/components/tag/tag.js +7 -7
- package/cdn/components/textarea/textarea.component.js +4 -4
- package/cdn/components/textarea/textarea.js +5 -5
- package/cdn/components/time-average-map/time-average-map.component.js +28 -28
- package/cdn/components/time-average-map/time-average-map.controller.js +2 -2
- package/cdn/components/time-average-map/time-average-map.js +29 -29
- package/cdn/components/time-series/time-series.component.d.ts +3 -0
- package/cdn/components/time-series/time-series.component.js +28 -28
- package/cdn/components/time-series/time-series.controller.js +2 -2
- package/cdn/components/time-series/time-series.js +29 -29
- package/cdn/components/toast/toast.component.js +4 -4
- package/cdn/components/toast/toast.js +5 -5
- package/cdn/components/toggle/toggle.component.js +4 -4
- package/cdn/components/toggle/toggle.js +5 -5
- package/cdn/components/tooltip/tooltip.component.js +3 -3
- package/cdn/components/tooltip/tooltip.js +4 -4
- package/cdn/components/variable-combobox/lib.js +3 -3
- package/cdn/components/variable-combobox/variable-combobox.component.js +17 -17
- package/cdn/components/variable-combobox/variable-combobox.controller.js +4 -4
- package/cdn/components/variable-combobox/variable-combobox.js +18 -18
- package/cdn/components/variable-combobox/variable-combobox.styles.js +1 -1
- package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +13 -13
- package/cdn/components/variable-keyword-search/variable-keyword-search.js +14 -14
- package/cdn/custom-elements.json +4190 -3701
- package/cdn/events/events.d.ts +1 -0
- package/cdn/events/terra-date-selection-invalid.d.ts +8 -0
- package/cdn/metadata-catalog/types.d.ts +50 -0
- package/cdn/react/accordion/index.js +6 -6
- package/cdn/react/alert/index.js +4 -4
- package/cdn/react/avatar/index.js +8 -8
- package/cdn/react/badge/index.js +3 -3
- package/cdn/react/breadcrumb/index.js +3 -3
- package/cdn/react/breadcrumbs/index.js +3 -3
- package/cdn/react/browse-variables/index.js +18 -18
- package/cdn/react/button/index.js +9 -9
- package/cdn/react/button-group/index.js +3 -3
- package/cdn/react/caption/index.js +3 -3
- package/cdn/react/card/index.js +3 -3
- package/cdn/react/checkbox/index.js +9 -9
- package/cdn/react/chip/index.js +3 -3
- package/cdn/react/combobox/index.js +7 -7
- package/cdn/react/data-access/index.js +35 -35
- package/cdn/react/data-grid/index.js +6 -6
- package/cdn/react/data-rods/index.d.ts +1 -14
- package/cdn/react/data-rods/index.js +45 -45
- package/cdn/react/data-subsetter/index.js +47 -46
- package/cdn/react/data-subsetter-history/index.js +49 -48
- package/cdn/react/date-picker/index.js +17 -17
- package/cdn/react/date-range-slider/index.js +3 -3
- package/cdn/react/dialog/index.js +11 -11
- package/cdn/react/divider/index.js +3 -3
- package/cdn/react/dropdown/index.js +4 -4
- package/cdn/react/earthdata-login/index.js +18 -18
- package/cdn/react/file-upload/index.js +3 -3
- package/cdn/react/icon/index.js +4 -4
- package/cdn/react/index.d.ts +13 -13
- package/cdn/react/index.js +205 -205
- package/cdn/react/input/index.js +9 -9
- package/cdn/react/loader/index.js +3 -3
- package/cdn/react/login/index.js +14 -14
- package/cdn/react/map/index.js +8 -8
- package/cdn/react/menu/index.js +3 -3
- package/cdn/react/menu-item/index.js +12 -12
- package/cdn/react/option/index.js +7 -7
- package/cdn/react/pagination/index.js +7 -7
- package/cdn/react/plot/index.js +3 -3
- package/cdn/react/plot-toolbar/index.js +21 -21
- package/cdn/react/popup/index.js +3 -3
- package/cdn/react/progress-bar/index.js +3 -3
- package/cdn/react/radio/index.js +5 -5
- package/cdn/react/radio-group/index.js +3 -3
- package/cdn/react/scroll-hint/index.js +5 -5
- package/cdn/react/select/index.js +11 -11
- package/cdn/react/site-header/index.js +6 -6
- package/cdn/react/site-navigation/index.js +3 -3
- package/cdn/react/skeleton/index.js +4 -4
- package/cdn/react/slider/index.js +3 -3
- package/cdn/react/spatial-picker/index.js +19 -19
- package/cdn/react/status-indicator/index.js +3 -3
- package/cdn/react/stepper/index.js +3 -3
- package/cdn/react/stepper-step/index.js +7 -7
- package/cdn/react/tab/index.js +7 -7
- package/cdn/react/tab-panel/index.js +3 -3
- package/cdn/react/tabs/index.js +7 -7
- package/cdn/react/tag/index.js +7 -7
- package/cdn/react/textarea/index.js +5 -5
- package/cdn/react/time-average-map/index.js +29 -29
- package/cdn/react/time-series/index.js +29 -29
- package/cdn/react/toast/index.js +5 -5
- package/cdn/react/toggle/index.js +5 -5
- package/cdn/react/tooltip/index.js +4 -4
- package/cdn/react/variable-combobox/index.js +18 -18
- package/cdn/react/variable-keyword-search/index.js +14 -14
- package/cdn/terra-ui-components.js +197 -197
- package/cdn/types/vue/index.d.ts +496 -474
- package/cdn/utilities/mimetypes.js +1 -1
- package/cdn/vscode.html-custom-data.json +453 -440
- package/cdn/web-types.json +1067 -1014
- package/dist/chunks/chunk.225CQIHF.js +21 -0
- package/dist/chunks/chunk.23NL6ZID.js +48 -0
- package/dist/chunks/chunk.27VEWOE2.js +11 -0
- package/dist/chunks/chunk.2AX4NEBF.js +21 -0
- package/dist/chunks/chunk.37WDKFQW.js +11 -0
- package/dist/chunks/chunk.3EOSRM3R.js +581 -0
- package/dist/chunks/chunk.3JD6HGNN.js +21 -0
- package/dist/chunks/chunk.3SGB3VBU.js +11 -0
- package/dist/chunks/chunk.3VRSQ22I.js +24 -0
- package/dist/chunks/chunk.3Y7NLDT6.js +11 -0
- package/dist/chunks/chunk.4QTY4LH5.js +21 -0
- package/dist/chunks/chunk.4QWSTAMH.js +67 -0
- package/dist/chunks/chunk.4UPEOG4O.js +11 -0
- package/dist/chunks/chunk.5D6LFFNK.js +262 -0
- package/dist/chunks/chunk.5JJAAFGL.js +24 -0
- package/dist/chunks/chunk.5QKQVWTG.js +21 -0
- package/dist/chunks/chunk.6HTYXK7E.js +21 -0
- package/dist/chunks/chunk.6OJFJ2RJ.js +11 -0
- package/dist/chunks/chunk.6OSDDX66.js +484 -0
- package/dist/chunks/chunk.6PIIVWL2.js +11 -0
- package/dist/chunks/chunk.6ZGFIHNP.js +24 -0
- package/dist/chunks/chunk.7B6X7DHL.js +295 -0
- package/dist/chunks/chunk.7DFDOSYG.js +11 -0
- package/dist/chunks/chunk.7MCHHBVR.js +83 -0
- package/dist/chunks/chunk.7S4MACUL.js +291 -0
- package/dist/chunks/chunk.7XDECDSY.js +11 -0
- package/dist/chunks/chunk.7XPVJG6D.js +11 -0
- package/dist/chunks/chunk.7YCTS7D5.js +78 -0
- package/dist/chunks/chunk.A3DB425J.js +67 -0
- package/dist/chunks/chunk.A4H6CEUU.js +220 -0
- package/dist/chunks/chunk.A4X2ND7D.js +214 -0
- package/dist/chunks/chunk.A6IOTSWP.js +25 -0
- package/dist/chunks/chunk.AMP7AS5J.js +27 -0
- package/dist/chunks/chunk.AROKPEWE.js +24 -0
- package/dist/chunks/chunk.ATWV37F4.js +85 -0
- package/dist/chunks/chunk.B2BDIQ77.js +21 -0
- package/dist/chunks/chunk.BOUCDQ5E.js +21 -0
- package/dist/chunks/chunk.BQS4ALCP.js +21 -0
- package/dist/chunks/chunk.BS3ZR5OV.js +143 -0
- package/dist/chunks/chunk.C5HMGVOF.js +29 -0
- package/dist/chunks/chunk.C5YX3GEP.js +28 -0
- package/dist/chunks/chunk.CHRZZULX.js +39 -0
- package/dist/chunks/chunk.CQFFIIPF.js +596 -0
- package/dist/chunks/chunk.D7FMZP4J.js +21 -0
- package/dist/chunks/chunk.DCG76X4I.js +21 -0
- package/dist/chunks/chunk.DCT4KLOR.js +11 -0
- package/dist/chunks/chunk.DFM34CDQ.js +451 -0
- package/dist/chunks/chunk.DJJU2S3Z.js +11 -0
- package/dist/chunks/chunk.DMY4UO4L.js +24 -0
- package/dist/chunks/chunk.DO6GYJM7.js +344 -0
- package/dist/chunks/chunk.DS6HRAYC.js +124 -0
- package/dist/chunks/chunk.DUY3B52C.js +11 -0
- package/dist/chunks/chunk.E4DC3QBB.js +11 -0
- package/dist/chunks/chunk.EBCKBDHV.js +623 -0
- package/dist/chunks/chunk.EEIJGEXU.js +29 -0
- package/dist/chunks/chunk.EYBVDF3P.js +11 -0
- package/dist/chunks/chunk.F62QBG2N.js +89 -0
- package/dist/chunks/chunk.FIQTM6W5.js +11 -0
- package/dist/chunks/chunk.FLDXLDUB.js +24 -0
- package/dist/chunks/chunk.FVDYJYPJ.js +123 -0
- package/dist/chunks/chunk.G3AA4DMA.js +11 -0
- package/dist/chunks/chunk.G63ROAAR.js +101 -0
- package/dist/chunks/chunk.GANIXVIN.js +305 -0
- package/dist/chunks/chunk.GSOMC544.js +21 -0
- package/dist/chunks/chunk.GWGCNFAS.js +27 -0
- package/dist/chunks/chunk.HADTJTYW.js +11 -0
- package/dist/chunks/chunk.HCC3SGE2.js +219 -0
- package/dist/chunks/chunk.HJGREKWD.js +28 -0
- package/dist/chunks/chunk.HNDLZGSW.js +112 -0
- package/dist/chunks/chunk.I3PYZE5P.js +26 -0
- package/dist/chunks/chunk.I5O3RKW5.js +11 -0
- package/dist/chunks/chunk.I7CJTIHU.js +443 -0
- package/dist/chunks/chunk.IFFBYJCV.js +28 -0
- package/dist/chunks/chunk.IHX6TM6F.js +11 -0
- package/dist/chunks/chunk.ITJ2HR5O.js +27 -0
- package/dist/chunks/chunk.IZOYRHVA.js +25 -0
- package/dist/chunks/chunk.J26ZTP7Z.js +75 -0
- package/dist/chunks/chunk.J54LUHUQ.js +477 -0
- package/dist/chunks/chunk.J5VZGFO2.js +719 -0
- package/dist/chunks/chunk.JB5255IQ.js +298 -0
- package/dist/chunks/chunk.JCI4Y5TT.js +21 -0
- package/dist/chunks/chunk.JERQ33CW.js +11 -0
- package/dist/chunks/chunk.JJHC3B4G.js +11 -0
- package/dist/chunks/chunk.JJLLFOGY.js +21 -0
- package/dist/chunks/chunk.JQBOFTWP.js +180 -0
- package/dist/chunks/chunk.JYZMVEQL.js +11 -0
- package/dist/chunks/chunk.JZMZCNGJ.js +11 -0
- package/dist/chunks/chunk.JZNVXLYF.js +48 -0
- package/dist/chunks/chunk.K5WQM4UU.js +24 -0
- package/dist/chunks/chunk.KHPNEX2A.js +266 -0
- package/dist/chunks/chunk.KMPHHRML.js +11 -0
- package/dist/chunks/chunk.KTUM2QQ2.js +21 -0
- package/dist/chunks/chunk.L3A2H33W.js +11 -0
- package/dist/chunks/chunk.LA3YEVTQ.js +20 -0
- package/dist/chunks/chunk.LAJJMOC2.js +220 -0
- package/dist/chunks/chunk.LBHFPLA3.js +230 -0
- package/dist/chunks/chunk.LFKJOXXB.js +97 -0
- package/dist/chunks/chunk.LHGDBIYN.js +11 -0
- package/dist/chunks/chunk.LQLCGKT2.js +21 -0
- package/dist/chunks/chunk.LTD7CX77.js +11 -0
- package/dist/chunks/chunk.LUHQTATL.js +33 -0
- package/dist/chunks/chunk.LWL4QCJZ.js +609 -0
- package/dist/chunks/chunk.LZ6OPFCV.js +11 -0
- package/dist/chunks/chunk.M5VZW6Q6.js +11 -0
- package/dist/chunks/chunk.M73RLYTA.js +11 -0
- package/dist/chunks/chunk.M7DVNPNX.js +24 -0
- package/dist/chunks/chunk.MXRBLHPO.js +64 -0
- package/dist/chunks/chunk.N34ILCS2.js +21 -0
- package/dist/chunks/chunk.N3KIJL5I.js +25 -0
- package/dist/chunks/chunk.N6FTCZ7Z.js +21 -0
- package/dist/chunks/chunk.N6KQLZFC.js +24 -0
- package/dist/chunks/chunk.N7Q2NIOP.js +24 -0
- package/dist/chunks/chunk.NOSBGPKU.js +91 -0
- package/dist/chunks/chunk.NOYQMNOB.js +11 -0
- package/dist/chunks/chunk.NQV2TYTH.js +11 -0
- package/dist/chunks/chunk.NS2UMYPL.js +11 -0
- package/dist/chunks/chunk.NW6IXCII.js +11 -0
- package/dist/chunks/chunk.NXTMFC6N.js +422 -0
- package/dist/chunks/chunk.OAPVISGG.js +11 -0
- package/dist/chunks/chunk.OAWTV6OW.js +135 -0
- package/dist/chunks/chunk.OB56RTW3.js +213 -0
- package/dist/chunks/chunk.ODJODHOK.js +21 -0
- package/dist/chunks/chunk.OGHO5VTJ.js +11 -0
- package/dist/chunks/chunk.OMFW6SVM.js +11 -0
- package/dist/chunks/chunk.OTVNHZYR.js +11 -0
- package/dist/chunks/chunk.OVYIY632.js +11 -0
- package/dist/chunks/chunk.OWB7Q5BJ.js +474 -0
- package/dist/chunks/chunk.OXZDHEKP.js +24 -0
- package/dist/chunks/chunk.PT65UMX3.js +1870 -0
- package/dist/chunks/chunk.PXCHGP5J.js +733 -0
- package/dist/chunks/chunk.Q5AVCA2Z.js +11 -0
- package/dist/chunks/chunk.QGDX4EOW.js +145 -0
- package/dist/chunks/chunk.QH4PQQMY.js +57 -0
- package/dist/chunks/chunk.QHPQUJPP.js +11 -0
- package/dist/chunks/chunk.QHXKV3FL.js +153 -0
- package/dist/chunks/chunk.QI54DZLW.js +277 -0
- package/dist/chunks/chunk.QSZTBBNL.js +25 -0
- package/dist/chunks/chunk.QT46RXAO.js +11 -0
- package/dist/chunks/chunk.QV53WIRP.js +24 -0
- package/dist/chunks/chunk.QXGAOOH7.js +206 -0
- package/dist/chunks/chunk.QY2Y5V5F.js +11 -0
- package/dist/chunks/chunk.QZ5E4JEE.js +21 -0
- package/dist/chunks/chunk.R425EOH5.js +252 -0
- package/dist/chunks/chunk.R4WPJKDT.js +985 -0
- package/dist/chunks/chunk.RGPUC66W.js +24 -0
- package/dist/chunks/chunk.RPBO7HIU.js +11 -0
- package/dist/chunks/chunk.RPYDJZWV.js +121 -0
- package/dist/chunks/chunk.RYHV6SLD.js +11 -0
- package/dist/chunks/chunk.RYLQFCPI.js +11 -0
- package/dist/chunks/chunk.S56BRI76.js +240 -0
- package/dist/chunks/chunk.SHFVA64T.js +11 -0
- package/dist/chunks/chunk.SKDPK5ZB.js +11 -0
- package/dist/chunks/chunk.SSH2CHYX.js +591 -0
- package/dist/chunks/chunk.STENSWSM.js +21 -0
- package/dist/chunks/chunk.SWV36K5V.js +11 -0
- package/dist/chunks/chunk.T26ST6IU.js +244 -0
- package/dist/chunks/chunk.T2JN2DN4.js +52 -0
- package/dist/chunks/chunk.T35OF52O.js +21 -0
- package/dist/chunks/chunk.T6GGLB67.js +245 -0
- package/dist/chunks/chunk.TP5UEBJX.js +28 -0
- package/dist/chunks/chunk.U3KWKUPN.js +355 -0
- package/dist/chunks/chunk.U4GUGRXA.js +11 -0
- package/dist/chunks/chunk.U7DAHBKR.js +247 -0
- package/dist/chunks/chunk.UAXAHNDQ.js +280 -0
- package/dist/chunks/chunk.UDGDZENG.js +61 -0
- package/dist/chunks/chunk.ULO6HTVQ.js +11 -0
- package/dist/chunks/chunk.UYHH5MCG.js +27 -0
- package/dist/chunks/chunk.V4XZHDFY.js +21 -0
- package/dist/chunks/chunk.V5CA5XVT.js +21 -0
- package/dist/chunks/chunk.V5LCG7NP.js +525 -0
- package/dist/chunks/chunk.VFSU5TRX.js +264 -0
- package/dist/chunks/chunk.VLKBBBZO.js +11 -0
- package/dist/chunks/chunk.VP5UYVR6.js +21 -0
- package/dist/chunks/chunk.VREO7CLL.js +86 -0
- package/dist/chunks/chunk.VT7G4GF5.js +11 -0
- package/dist/chunks/chunk.VVEOPQ32.js +21 -0
- package/dist/chunks/chunk.VWLAMQ7D.js +11 -0
- package/dist/chunks/chunk.VX3NQJ2J.js +21 -0
- package/dist/chunks/chunk.WGV3I4B6.js +11 -0
- package/dist/chunks/chunk.WI5LX747.js +52 -0
- package/dist/chunks/chunk.WPTDAZ2I.js +31 -0
- package/dist/chunks/chunk.WTUZLKBY.js +43 -0
- package/dist/chunks/chunk.WYHVVKRO.js +345 -0
- package/dist/chunks/chunk.WZQ3VXRE.js +11 -0
- package/dist/chunks/chunk.X3XBLLUJ.js +278 -0
- package/dist/chunks/chunk.XBY4A2BL.js +24 -0
- package/dist/chunks/chunk.XF6ACISK.js +11 -0
- package/dist/chunks/chunk.XGLZQCBK.js +11 -0
- package/dist/chunks/chunk.XJJM7P2M.js +25 -0
- package/dist/chunks/chunk.XJRDI2TX.js +224 -0
- package/dist/chunks/chunk.XMCG3LCH.js +21 -0
- package/dist/chunks/chunk.XR75EBXL.js +24 -0
- package/dist/chunks/chunk.Y2PGR3AT.js +960 -0
- package/dist/chunks/chunk.Y6NEYAKK.js +1122 -0
- package/dist/chunks/chunk.YBN6JNDD.js +21 -0
- package/dist/chunks/chunk.YCHLOAWZ.js +180 -0
- package/dist/chunks/chunk.YDNUKCIR.js +180 -0
- package/dist/chunks/chunk.YET5FM7I.js +93 -0
- package/dist/chunks/chunk.YI254PCT.js +11 -0
- package/dist/chunks/chunk.Z3VMD3EF.js +21 -0
- package/dist/chunks/chunk.Z6VJGGMO.js +2170 -0
- package/dist/chunks/chunk.ZD3VDD6H.js +74 -0
- package/dist/chunks/chunk.ZFL7YIXD.js +345 -0
- package/dist/chunks/chunk.ZJGSVAVB.js +11 -0
- package/dist/chunks/chunk.ZKCEIYA3.js +43 -0
- package/dist/chunks/chunk.ZKWJI53L.js +844 -0
- package/dist/chunks/chunk.ZMM7GYSP.js +26 -0
- package/dist/chunks/chunk.ZRENH7JC.js +409 -0
- package/dist/components/accordion/accordion.component.js +5 -5
- package/dist/components/accordion/accordion.js +6 -6
- package/dist/components/alert/alert.component.js +3 -3
- package/dist/components/alert/alert.js +4 -4
- package/dist/components/avatar/avatar.component.js +5 -5
- package/dist/components/avatar/avatar.js +6 -6
- package/dist/components/badge/badge.component.js +2 -2
- package/dist/components/badge/badge.js +3 -3
- package/dist/components/breadcrumb/breadcrumb.component.js +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +3 -3
- package/dist/components/breadcrumbs/breadcrumbs.component.js +2 -2
- package/dist/components/breadcrumbs/breadcrumbs.js +3 -3
- package/dist/components/browse-variables/browse-variables.component.js +13 -13
- package/dist/components/browse-variables/browse-variables.js +14 -14
- package/dist/components/button/button.component.js +5 -5
- package/dist/components/button/button.js +6 -6
- package/dist/components/button-group/button-group.component.js +2 -2
- package/dist/components/button-group/button-group.js +3 -3
- package/dist/components/caption/caption.component.js +2 -2
- package/dist/components/caption/caption.js +3 -3
- package/dist/components/card/card.component.js +2 -2
- package/dist/components/card/card.js +3 -3
- package/dist/components/checkbox/checkbox.component.js +5 -5
- package/dist/components/checkbox/checkbox.js +6 -6
- package/dist/components/chip/chip.component.js +2 -2
- package/dist/components/chip/chip.js +3 -3
- package/dist/components/combobox/combobox.component.js +2 -2
- package/dist/components/combobox/combobox.js +3 -3
- package/dist/components/data-access/data-access.component.d.ts +0 -2
- package/dist/components/data-access/data-access.component.js +27 -27
- package/dist/components/data-access/data-access.controller.d.ts +3 -0
- package/dist/components/data-access/data-access.controller.js +2 -2
- package/dist/components/data-access/data-access.js +28 -28
- package/dist/components/data-access/data-access.styles.js +1 -1
- package/dist/components/data-grid/data-grid.component.js +3 -3
- package/dist/components/data-grid/data-grid.js +4 -4
- package/dist/components/data-rods/data-rods.component.d.ts +11 -8
- package/dist/components/data-rods/data-rods.component.js +35 -35
- package/dist/components/data-rods/data-rods.js +36 -36
- package/dist/components/data-rods/data-rods.styles.js +1 -1
- package/dist/components/data-subsetter/data-subsetter.component.d.ts +6 -0
- package/dist/components/data-subsetter/data-subsetter.component.js +39 -38
- package/dist/components/data-subsetter/data-subsetter.controller.d.ts +4 -0
- package/dist/components/data-subsetter/data-subsetter.controller.js +2 -2
- package/dist/components/data-subsetter/data-subsetter.js +40 -39
- package/dist/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
- package/dist/components/data-subsetter-history/data-subsetter-history.component.d.ts +3 -0
- package/dist/components/data-subsetter-history/data-subsetter-history.component.js +41 -40
- package/dist/components/data-subsetter-history/data-subsetter-history.js +42 -41
- package/dist/components/data-subsetter-history/data-subsetter-history.styles.js +1 -1
- package/dist/components/date-picker/date-picker.component.d.ts +15 -1
- package/dist/components/date-picker/date-picker.component.js +11 -11
- package/dist/components/date-picker/date-picker.js +12 -12
- package/dist/components/date-picker/date-picker.styles.js +1 -1
- package/dist/components/date-range-slider/date-range-slider.component.js +2 -2
- package/dist/components/date-range-slider/date-range-slider.js +3 -3
- package/dist/components/dialog/dialog.component.js +7 -7
- package/dist/components/dialog/dialog.js +8 -8
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/dropdown/dropdown.component.js +3 -3
- package/dist/components/dropdown/dropdown.js +4 -4
- package/dist/components/earthdata-login/earthdata-login.component.d.ts +2 -2
- package/dist/components/earthdata-login/earthdata-login.component.js +13 -13
- package/dist/components/earthdata-login/earthdata-login.js +14 -14
- package/dist/components/earthdata-login/earthdata-login.styles.js +1 -1
- package/dist/components/file-upload/file-upload.component.js +2 -2
- package/dist/components/file-upload/file-upload.js +3 -3
- package/dist/components/icon/icon.component.js +3 -3
- package/dist/components/icon/icon.js +4 -4
- package/dist/components/input/input.component.js +5 -5
- package/dist/components/input/input.js +6 -6
- package/dist/components/loader/loader.component.js +2 -2
- package/dist/components/loader/loader.js +3 -3
- package/dist/components/login/login.component.js +10 -10
- package/dist/components/login/login.js +11 -11
- package/dist/components/map/leaflet-utils.js +1 -1
- package/dist/components/map/map.component.d.ts +5 -0
- package/dist/components/map/map.component.js +5 -5
- package/dist/components/map/map.js +6 -6
- package/dist/components/menu/menu.component.js +2 -2
- package/dist/components/menu/menu.js +3 -3
- package/dist/components/menu-item/menu-item.component.js +7 -7
- package/dist/components/menu-item/menu-item.js +8 -8
- package/dist/components/option/option.component.js +4 -4
- package/dist/components/option/option.js +5 -5
- package/dist/components/pagination/pagination.component.js +4 -4
- package/dist/components/pagination/pagination.js +5 -5
- package/dist/components/plot/plot.component.js +2 -2
- package/dist/components/plot/plot.js +3 -3
- package/dist/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +1 -1
- package/dist/components/plot-toolbar/notebooks/time-series-notebook.js +1 -1
- package/dist/components/plot-toolbar/plot-toolbar.component.d.ts +4 -0
- package/dist/components/plot-toolbar/plot-toolbar.component.js +16 -16
- package/dist/components/plot-toolbar/plot-toolbar.controller.js +2 -2
- package/dist/components/plot-toolbar/plot-toolbar.js +17 -17
- package/dist/components/plot-toolbar/plot-toolbar.styles.js +1 -1
- package/dist/components/popup/popup.component.js +2 -2
- package/dist/components/popup/popup.js +3 -3
- package/dist/components/progress-bar/progress-bar.component.js +2 -2
- package/dist/components/progress-bar/progress-bar.js +3 -3
- package/dist/components/radio/radio.component.js +2 -2
- package/dist/components/radio/radio.js +3 -3
- package/dist/components/radio-group/radio-group.component.js +2 -2
- package/dist/components/radio-group/radio-group.js +3 -3
- package/dist/components/scroll-hint/scroll-hint.component.js +4 -4
- package/dist/components/scroll-hint/scroll-hint.js +5 -5
- package/dist/components/select/select.component.js +8 -8
- package/dist/components/select/select.js +9 -9
- package/dist/components/site-header/site-header.component.js +5 -5
- package/dist/components/site-header/site-header.js +5 -5
- package/dist/components/site-navigation/site-navigation.component.js +2 -2
- package/dist/components/site-navigation/site-navigation.js +2 -2
- package/dist/components/skeleton/skeleton.component.js +3 -3
- package/dist/components/skeleton/skeleton.js +4 -4
- package/dist/components/skeleton/skeleton.styles.js +1 -1
- package/dist/components/slider/slider.component.js +2 -2
- package/dist/components/slider/slider.js +3 -3
- package/dist/components/spatial-picker/spatial-picker.component.d.ts +11 -1
- package/dist/components/spatial-picker/spatial-picker.component.js +13 -13
- package/dist/components/spatial-picker/spatial-picker.js +14 -14
- package/dist/components/status-indicator/status-indicator.component.js +2 -2
- package/dist/components/status-indicator/status-indicator.js +3 -3
- package/dist/components/stepper/stepper.component.js +2 -2
- package/dist/components/stepper/stepper.js +3 -3
- package/dist/components/stepper-step/stepper-step.component.js +4 -4
- package/dist/components/stepper-step/stepper-step.js +5 -5
- package/dist/components/tab/tab.component.js +4 -4
- package/dist/components/tab/tab.js +5 -5
- package/dist/components/tab-panel/tab-panel.component.js +2 -2
- package/dist/components/tab-panel/tab-panel.js +3 -3
- package/dist/components/tabs/tabs.component.js +4 -4
- package/dist/components/tabs/tabs.js +5 -5
- package/dist/components/tag/tag.component.js +4 -4
- package/dist/components/tag/tag.js +5 -5
- package/dist/components/textarea/textarea.component.js +2 -2
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/time-average-map/time-average-map.component.js +24 -24
- package/dist/components/time-average-map/time-average-map.controller.js +2 -2
- package/dist/components/time-average-map/time-average-map.js +25 -25
- package/dist/components/time-series/time-series.component.d.ts +3 -0
- package/dist/components/time-series/time-series.component.js +24 -24
- package/dist/components/time-series/time-series.controller.js +2 -2
- package/dist/components/time-series/time-series.js +25 -25
- package/dist/components/toast/toast.component.js +4 -4
- package/dist/components/toast/toast.js +5 -5
- package/dist/components/toggle/toggle.component.js +2 -2
- package/dist/components/toggle/toggle.js +3 -3
- package/dist/components/tooltip/tooltip.component.js +3 -3
- package/dist/components/tooltip/tooltip.js +4 -4
- package/dist/components/variable-combobox/variable-combobox.component.js +9 -9
- package/dist/components/variable-combobox/variable-combobox.js +10 -10
- package/dist/components/variable-combobox/variable-combobox.styles.js +1 -1
- package/dist/components/variable-keyword-search/variable-keyword-search.component.js +9 -9
- package/dist/components/variable-keyword-search/variable-keyword-search.js +10 -10
- package/dist/custom-elements.json +4190 -3701
- package/dist/events/events.d.ts +1 -0
- package/dist/events/terra-date-selection-invalid.d.ts +8 -0
- package/dist/metadata-catalog/types.d.ts +50 -0
- package/dist/react/accordion/index.js +6 -6
- package/dist/react/alert/index.js +4 -4
- package/dist/react/avatar/index.js +6 -6
- package/dist/react/badge/index.js +3 -3
- package/dist/react/breadcrumb/index.js +3 -3
- package/dist/react/breadcrumbs/index.js +3 -3
- package/dist/react/browse-variables/index.js +14 -14
- package/dist/react/button/index.js +6 -6
- package/dist/react/button-group/index.js +3 -3
- package/dist/react/caption/index.js +3 -3
- package/dist/react/card/index.js +3 -3
- package/dist/react/checkbox/index.js +6 -6
- package/dist/react/chip/index.js +3 -3
- package/dist/react/combobox/index.js +3 -3
- package/dist/react/data-access/index.js +28 -28
- package/dist/react/data-grid/index.js +4 -4
- package/dist/react/data-rods/index.d.ts +1 -14
- package/dist/react/data-rods/index.js +36 -36
- package/dist/react/data-subsetter/index.js +40 -39
- package/dist/react/data-subsetter-history/index.js +42 -41
- package/dist/react/date-picker/index.js +12 -12
- package/dist/react/date-range-slider/index.js +3 -3
- package/dist/react/dialog/index.js +8 -8
- package/dist/react/divider/index.js +3 -3
- package/dist/react/dropdown/index.js +4 -4
- package/dist/react/earthdata-login/index.js +14 -14
- package/dist/react/file-upload/index.js +3 -3
- package/dist/react/icon/index.js +4 -4
- package/dist/react/index.d.ts +13 -13
- package/dist/react/index.js +195 -195
- package/dist/react/input/index.js +6 -6
- package/dist/react/loader/index.js +3 -3
- package/dist/react/login/index.js +11 -11
- package/dist/react/map/index.js +6 -6
- package/dist/react/menu/index.js +3 -3
- package/dist/react/menu-item/index.js +8 -8
- package/dist/react/option/index.js +5 -5
- package/dist/react/pagination/index.js +5 -5
- package/dist/react/plot/index.js +3 -3
- package/dist/react/plot-toolbar/index.js +17 -17
- package/dist/react/popup/index.js +3 -3
- package/dist/react/progress-bar/index.js +3 -3
- package/dist/react/radio/index.js +3 -3
- package/dist/react/radio-group/index.js +3 -3
- package/dist/react/scroll-hint/index.js +5 -5
- package/dist/react/select/index.js +9 -9
- package/dist/react/site-header/index.js +6 -6
- package/dist/react/site-navigation/index.js +3 -3
- package/dist/react/skeleton/index.js +4 -4
- package/dist/react/slider/index.js +3 -3
- package/dist/react/spatial-picker/index.js +14 -14
- package/dist/react/status-indicator/index.js +3 -3
- package/dist/react/stepper/index.js +3 -3
- package/dist/react/stepper-step/index.js +5 -5
- package/dist/react/tab/index.js +5 -5
- package/dist/react/tab-panel/index.js +3 -3
- package/dist/react/tabs/index.js +5 -5
- package/dist/react/tag/index.js +5 -5
- package/dist/react/textarea/index.js +3 -3
- package/dist/react/time-average-map/index.js +25 -25
- package/dist/react/time-series/index.js +25 -25
- package/dist/react/toast/index.js +5 -5
- package/dist/react/toggle/index.js +3 -3
- package/dist/react/tooltip/index.js +4 -4
- package/dist/react/variable-combobox/index.js +10 -10
- package/dist/react/variable-keyword-search/index.js +10 -10
- package/dist/terra-ui-components.js +187 -187
- package/dist/terra_ui_components-0.0.148-py3-none-any.whl +0 -0
- package/dist/terra_ui_components-0.0.148.tar.gz +0 -0
- package/dist/types/vue/index.d.ts +496 -474
- package/dist/utilities/mimetypes.js +1 -1
- package/dist/vscode.html-custom-data.json +453 -440
- package/dist/web-types.json +1067 -1014
- package/package.json +1 -2
- package/cdn/chunks/chunk.26TEQ6WM.js +0 -158
- package/cdn/chunks/chunk.2FIXNDLC.js +0 -251
- package/cdn/chunks/chunk.2RPLIZVS.js +0 -67
- package/cdn/chunks/chunk.333RLFSA.js +0 -19
- package/cdn/chunks/chunk.34UNC3GQ.js +0 -19
- package/cdn/chunks/chunk.35A3RZ36.js +0 -19
- package/cdn/chunks/chunk.3BB6KOTU.js +0 -29
- package/cdn/chunks/chunk.3CBNAYQU.js +0 -74
- package/cdn/chunks/chunk.3CDNVAN6.js +0 -19
- package/cdn/chunks/chunk.3IZL7JFG.js +0 -19
- package/cdn/chunks/chunk.3NJN4KC3.js +0 -19
- package/cdn/chunks/chunk.3QAIAFO3.js +0 -2073
- package/cdn/chunks/chunk.3QXUJ74V.js +0 -33860
- package/cdn/chunks/chunk.45XFWGEL.js +0 -110
- package/cdn/chunks/chunk.46IUPYDY.js +0 -34
- package/cdn/chunks/chunk.4AESZBPS.js +0 -19
- package/cdn/chunks/chunk.4DSXPYCX.js +0 -240
- package/cdn/chunks/chunk.4HVT3AYY.js +0 -224
- package/cdn/chunks/chunk.4LQT63JV.js +0 -472
- package/cdn/chunks/chunk.4R66EEIQ.js +0 -491
- package/cdn/chunks/chunk.4S36TQZA.js +0 -32
- package/cdn/chunks/chunk.4UFYI2TK.js +0 -10718
- package/cdn/chunks/chunk.4VZUFBAT.js +0 -29
- package/cdn/chunks/chunk.5QKUGTZK.js +0 -19
- package/cdn/chunks/chunk.63OPLSTP.js +0 -132
- package/cdn/chunks/chunk.6DCM5OAX.js +0 -165
- package/cdn/chunks/chunk.6EUASDEF.js +0 -32
- package/cdn/chunks/chunk.6PDKWTOW.js +0 -279
- package/cdn/chunks/chunk.6USIKX2F.js +0 -56
- package/cdn/chunks/chunk.6ZKLPYZO.js +0 -225
- package/cdn/chunks/chunk.74MTSB4V.js +0 -189
- package/cdn/chunks/chunk.7KILO3Q2.js +0 -19
- package/cdn/chunks/chunk.7KK6F7D6.js +0 -19
- package/cdn/chunks/chunk.7M2J6PQV.js +0 -19
- package/cdn/chunks/chunk.7RCNCS4U.js +0 -198
- package/cdn/chunks/chunk.AH6W6EGS.js +0 -77
- package/cdn/chunks/chunk.AOMJDSJK.js +0 -19
- package/cdn/chunks/chunk.BELI5KYA.js +0 -37
- package/cdn/chunks/chunk.BFFHLV3I.js +0 -254
- package/cdn/chunks/chunk.BHGXXCYB.js +0 -357
- package/cdn/chunks/chunk.BKLEC3CU.js +0 -29
- package/cdn/chunks/chunk.C5KDVAED.js +0 -19
- package/cdn/chunks/chunk.C5XMJ6GC.js +0 -309
- package/cdn/chunks/chunk.C7HGTDOW.js +0 -29
- package/cdn/chunks/chunk.CG5GXLMN.js +0 -660
- package/cdn/chunks/chunk.COAFHV5O.js +0 -34
- package/cdn/chunks/chunk.CRIQ2HH3.js +0 -104
- package/cdn/chunks/chunk.CT74TCIR.js +0 -29
- package/cdn/chunks/chunk.CUQNHQ4C.js +0 -19
- package/cdn/chunks/chunk.CZF4J7JK.js +0 -151
- package/cdn/chunks/chunk.D75BRFV5.js +0 -231
- package/cdn/chunks/chunk.DANCFYIG.js +0 -29
- package/cdn/chunks/chunk.DEQWGUZ4.js +0 -32
- package/cdn/chunks/chunk.DNCSD3KI.js +0 -35
- package/cdn/chunks/chunk.DO4YHYLM.js +0 -226
- package/cdn/chunks/chunk.DRBMRRWZ.js +0 -372
- package/cdn/chunks/chunk.DSFRJYYP.js +0 -943
- package/cdn/chunks/chunk.DSYXR3BP.js +0 -299
- package/cdn/chunks/chunk.DWH7UJHQ.js +0 -33
- package/cdn/chunks/chunk.DWJN2RMV.js +0 -93
- package/cdn/chunks/chunk.EOPCPKE6.js +0 -19
- package/cdn/chunks/chunk.EQVTAI4H.js +0 -234
- package/cdn/chunks/chunk.F4RKWV6A.js +0 -33
- package/cdn/chunks/chunk.F73O5LKK.js +0 -134
- package/cdn/chunks/chunk.FAUYMYXO.js +0 -32
- package/cdn/chunks/chunk.FOACIGWR.js +0 -435
- package/cdn/chunks/chunk.FSSA437M.js +0 -19
- package/cdn/chunks/chunk.FT5GOSIZ.js +0 -48
- package/cdn/chunks/chunk.FTC6M36W.js +0 -32
- package/cdn/chunks/chunk.GDJPXXU2.js +0 -286
- package/cdn/chunks/chunk.GGXENRVM.js +0 -189
- package/cdn/chunks/chunk.GH3N6WLV.js +0 -19
- package/cdn/chunks/chunk.GS3E3TDU.js +0 -19
- package/cdn/chunks/chunk.GSJP6LKE.js +0 -78
- package/cdn/chunks/chunk.GY5STF6S.js +0 -32
- package/cdn/chunks/chunk.H33J7DDG.js +0 -30
- package/cdn/chunks/chunk.HL6HZSXT.js +0 -29
- package/cdn/chunks/chunk.HNPM3U57.js +0 -599
- package/cdn/chunks/chunk.HTQMUUU5.js +0 -92
- package/cdn/chunks/chunk.I3FHCOWV.js +0 -524
- package/cdn/chunks/chunk.I4SYW63O.js +0 -19
- package/cdn/chunks/chunk.I5GRYJHJ.js +0 -55346
- package/cdn/chunks/chunk.I7TO5DYG.js +0 -259
- package/cdn/chunks/chunk.IENWNMGK.js +0 -29
- package/cdn/chunks/chunk.II54QLOE.js +0 -134
- package/cdn/chunks/chunk.IIRL2FNO.js +0 -19
- package/cdn/chunks/chunk.IO62OT3T.js +0 -29
- package/cdn/chunks/chunk.IV3AD6YR.js +0 -477
- package/cdn/chunks/chunk.J2K53JZV.js +0 -34
- package/cdn/chunks/chunk.J32BQ36H.js +0 -19
- package/cdn/chunks/chunk.J43MPEAH.js +0 -32
- package/cdn/chunks/chunk.JA7WHI2E.js +0 -19
- package/cdn/chunks/chunk.JAXOIJPB.js +0 -36
- package/cdn/chunks/chunk.JGWY7JB7.js +0 -276
- package/cdn/chunks/chunk.JHEBRXRN.js +0 -99
- package/cdn/chunks/chunk.JLAMV75H.js +0 -19
- package/cdn/chunks/chunk.JNHT5IDD.js +0 -19
- package/cdn/chunks/chunk.JRQDMBDQ.js +0 -29
- package/cdn/chunks/chunk.JS5NFG3L.js +0 -615
- package/cdn/chunks/chunk.JW5SC6TB.js +0 -662
- package/cdn/chunks/chunk.JYDAF3OI.js +0 -99
- package/cdn/chunks/chunk.K2RPZYGD.js +0 -19
- package/cdn/chunks/chunk.K6SKQZRX.js +0 -157
- package/cdn/chunks/chunk.K7DWE6A2.js +0 -19
- package/cdn/chunks/chunk.KFWE3PI3.js +0 -29
- package/cdn/chunks/chunk.KG2ZEBJA.js +0 -19
- package/cdn/chunks/chunk.KP5INWSH.js +0 -29
- package/cdn/chunks/chunk.KRE6VDHG.js +0 -19
- package/cdn/chunks/chunk.KUMBN4KZ.js +0 -621
- package/cdn/chunks/chunk.KYET5TXI.js +0 -49
- package/cdn/chunks/chunk.LEBRE2AX.js +0 -630
- package/cdn/chunks/chunk.LF3HCT3R.js +0 -19
- package/cdn/chunks/chunk.LMWA3TR5.js +0 -19
- package/cdn/chunks/chunk.LQK4V62C.js +0 -29
- package/cdn/chunks/chunk.M56CSDHS.js +0 -1966
- package/cdn/chunks/chunk.MG44BWAJ.js +0 -29
- package/cdn/chunks/chunk.MMP54S4L.js +0 -264
- package/cdn/chunks/chunk.MN2PZAG7.js +0 -19
- package/cdn/chunks/chunk.MRU3TO7V.js +0 -278
- package/cdn/chunks/chunk.N5OIKLPM.js +0 -1811
- package/cdn/chunks/chunk.NL7O5H6G.js +0 -29
- package/cdn/chunks/chunk.NQBSBVGX.js +0 -29
- package/cdn/chunks/chunk.NU3XX242.js +0 -93
- package/cdn/chunks/chunk.O76ZUUDB.js +0 -19
- package/cdn/chunks/chunk.OWWVZKC6.js +0 -62
- package/cdn/chunks/chunk.OXAD7TJE.js +0 -19
- package/cdn/chunks/chunk.OXFWDFQH.js +0 -36
- package/cdn/chunks/chunk.P23GHIII.js +0 -29
- package/cdn/chunks/chunk.P4QOVWCD.js +0 -538
- package/cdn/chunks/chunk.P7YIMODT.js +0 -83
- package/cdn/chunks/chunk.PD6PXDRN.js +0 -359
- package/cdn/chunks/chunk.PMHWZDH2.js +0 -19
- package/cdn/chunks/chunk.PNBW3TZS.js +0 -19
- package/cdn/chunks/chunk.PSNRE2C3.js +0 -83
- package/cdn/chunks/chunk.PSOU4Y7G.js +0 -284
- package/cdn/chunks/chunk.Q2SEY4AZ.js +0 -33
- package/cdn/chunks/chunk.Q6XHOSCO.js +0 -19
- package/cdn/chunks/chunk.Q6ZGHQRK.js +0 -19
- package/cdn/chunks/chunk.QDHDD2N5.js +0 -123
- package/cdn/chunks/chunk.QJG3KXAL.js +0 -754
- package/cdn/chunks/chunk.QWQNSHBX.js +0 -35
- package/cdn/chunks/chunk.RQAS5OPB.js +0 -39
- package/cdn/chunks/chunk.RTUVIFIB.js +0 -29
- package/cdn/chunks/chunk.S4AGLUO5.js +0 -460
- package/cdn/chunks/chunk.SB7UPBIM.js +0 -32
- package/cdn/chunks/chunk.SHGCC64O.js +0 -60
- package/cdn/chunks/chunk.SHJEJNKL.js +0 -29
- package/cdn/chunks/chunk.SLV2OR4Q.js +0 -19
- package/cdn/chunks/chunk.SP6FG3TT.js +0 -32
- package/cdn/chunks/chunk.SQC7WP2K.js +0 -19
- package/cdn/chunks/chunk.SR66RTLP.js +0 -29
- package/cdn/chunks/chunk.SSLZPL2W.js +0 -19
- package/cdn/chunks/chunk.SXYURTO3.js +0 -19
- package/cdn/chunks/chunk.SZ7QDR65.js +0 -19
- package/cdn/chunks/chunk.TGDEPCW7.js +0 -136
- package/cdn/chunks/chunk.THNF6IDH.js +0 -19
- package/cdn/chunks/chunk.TI2AV2RR.js +0 -19
- package/cdn/chunks/chunk.TR63NOZP.js +0 -230
- package/cdn/chunks/chunk.TSLZA2FP.js +0 -79
- package/cdn/chunks/chunk.TTWXM2ZR.js +0 -35
- package/cdn/chunks/chunk.TVMLBXLQ.js +0 -32
- package/cdn/chunks/chunk.UAWQVKAK.js +0 -19
- package/cdn/chunks/chunk.UGU3XYQD.js +0 -302
- package/cdn/chunks/chunk.UMFK5I56.js +0 -19
- package/cdn/chunks/chunk.UO5UHJ26.js +0 -29
- package/cdn/chunks/chunk.UVKZZ2T6.js +0 -113
- package/cdn/chunks/chunk.UZASZOT4.js +0 -19
- package/cdn/chunks/chunk.V6NXXMUV.js +0 -19
- package/cdn/chunks/chunk.VAJM46IT.js +0 -86
- package/cdn/chunks/chunk.VAKXJJMW.js +0 -32
- package/cdn/chunks/chunk.VEXXISSG.js +0 -170
- package/cdn/chunks/chunk.VIH63JZW.js +0 -904
- package/cdn/chunks/chunk.VTOLWHAC.js +0 -155
- package/cdn/chunks/chunk.VXFQ6YXS.js +0 -36
- package/cdn/chunks/chunk.VZLD5ALF.js +0 -33
- package/cdn/chunks/chunk.W3MAHBWR.js +0 -19
- package/cdn/chunks/chunk.W4AT2KM4.js +0 -229
- package/cdn/chunks/chunk.W6TQ7PLD.js +0 -47
- package/cdn/chunks/chunk.WDYBJ6MP.js +0 -19
- package/cdn/chunks/chunk.WDYKT6BB.js +0 -106
- package/cdn/chunks/chunk.WE4Y4OKP.js +0 -19
- package/cdn/chunks/chunk.WJ6D57KB.js +0 -60
- package/cdn/chunks/chunk.WRKHVFU4.js +0 -610
- package/cdn/chunks/chunk.WSHPXHE4.js +0 -33
- package/cdn/chunks/chunk.X5IFMJ7Z.js +0 -35
- package/cdn/chunks/chunk.X756CPUC.js +0 -71
- package/cdn/chunks/chunk.XAYWMZ7I.js +0 -32
- package/cdn/chunks/chunk.XCA3QQDP.js +0 -36
- package/cdn/chunks/chunk.XKUBPV5Q.js +0 -29
- package/cdn/chunks/chunk.XLKYVRUZ.js +0 -29
- package/cdn/chunks/chunk.XPIDY722.js +0 -29
- package/cdn/chunks/chunk.XRDXKLB2.js +0 -19
- package/cdn/chunks/chunk.XUWZKWEZ.js +0 -190
- package/cdn/chunks/chunk.XYCI56NE.js +0 -89
- package/cdn/chunks/chunk.XYPD5HVK.js +0 -32
- package/cdn/chunks/chunk.Y5UU3CTS.js +0 -41
- package/cdn/chunks/chunk.Y73EGWS7.js +0 -32
- package/cdn/chunks/chunk.YEUJ4FIZ.js +0 -19
- package/cdn/chunks/chunk.YJGQGHEJ.js +0 -19
- package/cdn/chunks/chunk.YOLSEJL6.js +0 -29
- package/cdn/chunks/chunk.YOTUTBEH.js +0 -29
- package/cdn/chunks/chunk.YQIUUJXV.js +0 -29
- package/cdn/chunks/chunk.YQTU2DAJ.js +0 -29
- package/cdn/chunks/chunk.YSAISDDW.js +0 -29
- package/cdn/chunks/chunk.YSEKNG3U.js +0 -19
- package/cdn/chunks/chunk.YUGCZ7I7.js +0 -954
- package/cdn/chunks/chunk.YXZOHD7K.js +0 -19
- package/cdn/chunks/chunk.Z3SKKVNE.js +0 -188
- package/cdn/chunks/chunk.ZEZ3WIPO.js +0 -32
- package/cdn/chunks/chunk.ZFSZC5Z2.js +0 -37
- package/cdn/chunks/chunk.ZJXUTHZT.js +0 -19
- package/cdn/chunks/chunk.ZN5XZBHT.js +0 -19
- package/cdn/chunks/chunk.ZPKTMYTG.js +0 -19
- package/cdn/chunks/chunk.ZQVQ6FSW.js +0 -19
- package/cdn/chunks/chunk.ZTXK4OVT.js +0 -19
- package/dist/chunks/chunk.272C2YWD.js +0 -26
- package/dist/chunks/chunk.2CYXSEIN.js +0 -252
- package/dist/chunks/chunk.2DG3Q7IC.js +0 -21
- package/dist/chunks/chunk.2H7Y4QZW.js +0 -591
- package/dist/chunks/chunk.2HUN6GJ3.js +0 -25
- package/dist/chunks/chunk.2LK4JESZ.js +0 -33
- package/dist/chunks/chunk.2PS2PN6Q.js +0 -11
- package/dist/chunks/chunk.2UBLLNCB.js +0 -39
- package/dist/chunks/chunk.2VVD2A2K.js +0 -180
- package/dist/chunks/chunk.2XMI7J7T.js +0 -11
- package/dist/chunks/chunk.2Y2SR6DW.js +0 -214
- package/dist/chunks/chunk.33XWRKO2.js +0 -21
- package/dist/chunks/chunk.34S6BUWK.js +0 -97
- package/dist/chunks/chunk.3M5K2VRJ.js +0 -241
- package/dist/chunks/chunk.43FM3KSR.js +0 -25
- package/dist/chunks/chunk.4BI42KGC.js +0 -21
- package/dist/chunks/chunk.4QPRUZEC.js +0 -619
- package/dist/chunks/chunk.566T2F6Y.js +0 -927
- package/dist/chunks/chunk.5BITUPPF.js +0 -26
- package/dist/chunks/chunk.5K55E6UH.js +0 -25
- package/dist/chunks/chunk.5LGEYTNV.js +0 -86
- package/dist/chunks/chunk.5MFCRVZF.js +0 -43
- package/dist/chunks/chunk.5RA4RDAP.js +0 -29
- package/dist/chunks/chunk.5WD4JMKK.js +0 -11
- package/dist/chunks/chunk.632RS25N.js +0 -178
- package/dist/chunks/chunk.6E2LZKYR.js +0 -21
- package/dist/chunks/chunk.6E2QO3XK.js +0 -11
- package/dist/chunks/chunk.6FZ2OXVK.js +0 -27
- package/dist/chunks/chunk.7674U7FT.js +0 -215
- package/dist/chunks/chunk.7G5DA24B.js +0 -21
- package/dist/chunks/chunk.7JDN2WWK.js +0 -21
- package/dist/chunks/chunk.7JL3JHA7.js +0 -67
- package/dist/chunks/chunk.7MULIJ2V.js +0 -11
- package/dist/chunks/chunk.7SAH6Z4T.js +0 -11
- package/dist/chunks/chunk.A2INHFJK.js +0 -21
- package/dist/chunks/chunk.ACQ4M2O6.js +0 -11
- package/dist/chunks/chunk.ADJ5VE2P.js +0 -11
- package/dist/chunks/chunk.AJVI74TO.js +0 -21
- package/dist/chunks/chunk.ARSHNYXW.js +0 -451
- package/dist/chunks/chunk.ATSVQANB.js +0 -21
- package/dist/chunks/chunk.AZKZPA7C.js +0 -11
- package/dist/chunks/chunk.B5AMVJI2.js +0 -11
- package/dist/chunks/chunk.BC6A67OX.js +0 -57
- package/dist/chunks/chunk.BFSJNBME.js +0 -89
- package/dist/chunks/chunk.BHGMB774.js +0 -11
- package/dist/chunks/chunk.BPL6QBOC.js +0 -11
- package/dist/chunks/chunk.BTMCLVTO.js +0 -25
- package/dist/chunks/chunk.BZ4EGENA.js +0 -11
- package/dist/chunks/chunk.BZIMYDU3.js +0 -11
- package/dist/chunks/chunk.C3XZFEXH.js +0 -21
- package/dist/chunks/chunk.C5VYJNUD.js +0 -11
- package/dist/chunks/chunk.C7NVT5BB.js +0 -11
- package/dist/chunks/chunk.C7RRERDA.js +0 -121
- package/dist/chunks/chunk.CB4BFMQ2.js +0 -213
- package/dist/chunks/chunk.CCKUPM6P.js +0 -21
- package/dist/chunks/chunk.D34OOYKG.js +0 -74
- package/dist/chunks/chunk.D4N327EY.js +0 -11
- package/dist/chunks/chunk.D6T2AM4K.js +0 -11
- package/dist/chunks/chunk.DONCLRFH.js +0 -11
- package/dist/chunks/chunk.DVUOT6X5.js +0 -288
- package/dist/chunks/chunk.E73J7ZLS.js +0 -24
- package/dist/chunks/chunk.EEXUEFRN.js +0 -11
- package/dist/chunks/chunk.EIND5KV5.js +0 -733
- package/dist/chunks/chunk.EYAQBN4W.js +0 -48
- package/dist/chunks/chunk.F5ZRM4UT.js +0 -75
- package/dist/chunks/chunk.FASDFTRM.js +0 -11
- package/dist/chunks/chunk.FCTGPHU3.js +0 -345
- package/dist/chunks/chunk.FE2YRT4I.js +0 -21
- package/dist/chunks/chunk.FMKYICQO.js +0 -11
- package/dist/chunks/chunk.FVXSKUHQ.js +0 -11
- package/dist/chunks/chunk.G2CDB7TC.js +0 -422
- package/dist/chunks/chunk.GHMLBVRL.js +0 -85
- package/dist/chunks/chunk.GL7N4E5F.js +0 -11
- package/dist/chunks/chunk.GNBUCAE6.js +0 -61
- package/dist/chunks/chunk.GPYQWPH7.js +0 -24
- package/dist/chunks/chunk.GUFOEB2X.js +0 -443
- package/dist/chunks/chunk.GXHBB2BK.js +0 -11
- package/dist/chunks/chunk.H2NGVL75.js +0 -262
- package/dist/chunks/chunk.HB2GAHRY.js +0 -21
- package/dist/chunks/chunk.HEHCI264.js +0 -937
- package/dist/chunks/chunk.HFFC7CSH.js +0 -61
- package/dist/chunks/chunk.HHRVCYCP.js +0 -21
- package/dist/chunks/chunk.HMJLRO3D.js +0 -11
- package/dist/chunks/chunk.HNTSD6YN.js +0 -11
- package/dist/chunks/chunk.HTDDMELY.js +0 -472
- package/dist/chunks/chunk.HXWXSALW.js +0 -21
- package/dist/chunks/chunk.HY3XO5AM.js +0 -11
- package/dist/chunks/chunk.I4ZGJAIX.js +0 -11
- package/dist/chunks/chunk.I6KFGCKW.js +0 -25
- package/dist/chunks/chunk.ICNQF3X6.js +0 -153
- package/dist/chunks/chunk.IJ6ATH2G.js +0 -64
- package/dist/chunks/chunk.IM2LRIG2.js +0 -145
- package/dist/chunks/chunk.IU24O5FP.js +0 -11
- package/dist/chunks/chunk.J4Y5WGFW.js +0 -143
- package/dist/chunks/chunk.JF5XMQYM.js +0 -11
- package/dist/chunks/chunk.JLZUVFCE.js +0 -287
- package/dist/chunks/chunk.JX2ZA72Z.js +0 -220
- package/dist/chunks/chunk.JXMVGVD3.js +0 -525
- package/dist/chunks/chunk.JYE3UZ7F.js +0 -11
- package/dist/chunks/chunk.K6BGAPBU.js +0 -28
- package/dist/chunks/chunk.KDXR6RAM.js +0 -37
- package/dist/chunks/chunk.KSCTOVEE.js +0 -24
- package/dist/chunks/chunk.KUWB3YHJ.js +0 -220
- package/dist/chunks/chunk.KVWBDTVE.js +0 -2062
- package/dist/chunks/chunk.LPAGMHYK.js +0 -291
- package/dist/chunks/chunk.LSQAN2LD.js +0 -1124
- package/dist/chunks/chunk.LU6W37BH.js +0 -596
- package/dist/chunks/chunk.LXK6XVBB.js +0 -21
- package/dist/chunks/chunk.LYRQFZC4.js +0 -31
- package/dist/chunks/chunk.M43H3QV7.js +0 -11
- package/dist/chunks/chunk.M5WTUNKV.js +0 -409
- package/dist/chunks/chunk.MFJTWHZU.js +0 -78
- package/dist/chunks/chunk.MGURDS27.js +0 -11
- package/dist/chunks/chunk.MLDZ7FRM.js +0 -11
- package/dist/chunks/chunk.MP32V6JF.js +0 -11
- package/dist/chunks/chunk.MQQMR33R.js +0 -48
- package/dist/chunks/chunk.MRQ6SEQL.js +0 -11
- package/dist/chunks/chunk.MYBSXZHT.js +0 -278
- package/dist/chunks/chunk.N2AO3RT2.js +0 -21
- package/dist/chunks/chunk.N5HDKOE2.js +0 -180
- package/dist/chunks/chunk.NC25XWUR.js +0 -28
- package/dist/chunks/chunk.NF6TS7VE.js +0 -247
- package/dist/chunks/chunk.NLAMUPJI.js +0 -11
- package/dist/chunks/chunk.NQUSYESD.js +0 -24
- package/dist/chunks/chunk.NSKAS64G.js +0 -24
- package/dist/chunks/chunk.NZ6XNFVY.js +0 -24
- package/dist/chunks/chunk.NZI2QIFX.js +0 -11
- package/dist/chunks/chunk.OA66EY7V.js +0 -24
- package/dist/chunks/chunk.OPOM5NYB.js +0 -21
- package/dist/chunks/chunk.OUX5ZAJF.js +0 -642
- package/dist/chunks/chunk.OW63IENW.js +0 -11
- package/dist/chunks/chunk.P4Q45ICU.js +0 -21
- package/dist/chunks/chunk.PDVPPLE5.js +0 -214
- package/dist/chunks/chunk.PEKVWKYT.js +0 -21
- package/dist/chunks/chunk.PFOPI3VS.js +0 -180
- package/dist/chunks/chunk.PG4X2ILS.js +0 -123
- package/dist/chunks/chunk.PGYLMEJG.js +0 -11
- package/dist/chunks/chunk.PHCONS2C.js +0 -609
- package/dist/chunks/chunk.PHQ3RHOR.js +0 -21
- package/dist/chunks/chunk.PMH2735I.js +0 -27
- package/dist/chunks/chunk.PSH7C3UE.js +0 -25
- package/dist/chunks/chunk.PX6C7WJR.js +0 -21
- package/dist/chunks/chunk.Q3OACK3T.js +0 -101
- package/dist/chunks/chunk.Q4F7GQU3.js +0 -11
- package/dist/chunks/chunk.QB3XAEYL.js +0 -844
- package/dist/chunks/chunk.QCFFEUZ5.js +0 -11
- package/dist/chunks/chunk.QOVVZBY3.js +0 -21
- package/dist/chunks/chunk.QT6YMUXC.js +0 -264
- package/dist/chunks/chunk.QTHHBDBZ.js +0 -458
- package/dist/chunks/chunk.QX46P4FI.js +0 -11
- package/dist/chunks/chunk.RKMMXUAP.js +0 -112
- package/dist/chunks/chunk.ROL2DCAI.js +0 -11
- package/dist/chunks/chunk.ROTDM5PO.js +0 -345
- package/dist/chunks/chunk.RQ27EUVN.js +0 -190
- package/dist/chunks/chunk.RQQ26HU2.js +0 -1796
- package/dist/chunks/chunk.RQQ4RAE2.js +0 -52
- package/dist/chunks/chunk.RRXSF7XM.js +0 -11
- package/dist/chunks/chunk.RUCPPCGA.js +0 -11
- package/dist/chunks/chunk.RVD7MSQR.js +0 -27
- package/dist/chunks/chunk.RXX63TG2.js +0 -24
- package/dist/chunks/chunk.SAQ5NDKK.js +0 -11
- package/dist/chunks/chunk.SBHGRKRD.js +0 -21
- package/dist/chunks/chunk.SBP7DZY7.js +0 -20
- package/dist/chunks/chunk.SH2IRK72.js +0 -28
- package/dist/chunks/chunk.SJRFSZMI.js +0 -24
- package/dist/chunks/chunk.SUZXJVRK.js +0 -11
- package/dist/chunks/chunk.T2CPSS72.js +0 -24
- package/dist/chunks/chunk.T6N4WCHK.js +0 -11
- package/dist/chunks/chunk.TBBIOPLP.js +0 -11
- package/dist/chunks/chunk.TJZCEVOT.js +0 -21
- package/dist/chunks/chunk.TKHC4G3V.js +0 -29
- package/dist/chunks/chunk.TNQZIZIY.js +0 -11
- package/dist/chunks/chunk.TWJ4YDDO.js +0 -24
- package/dist/chunks/chunk.TYK2UK63.js +0 -27
- package/dist/chunks/chunk.U7XCMFST.js +0 -11
- package/dist/chunks/chunk.UMIRLEHN.js +0 -11
- package/dist/chunks/chunk.V2TFKPNC.js +0 -449
- package/dist/chunks/chunk.VLTP62H6.js +0 -581
- package/dist/chunks/chunk.VMYE2VST.js +0 -11
- package/dist/chunks/chunk.W2XHRASZ.js +0 -93
- package/dist/chunks/chunk.W76ILJ5S.js +0 -477
- package/dist/chunks/chunk.WGW3TXWJ.js +0 -11
- package/dist/chunks/chunk.WKH3Y2IJ.js +0 -355
- package/dist/chunks/chunk.WMN2KKK6.js +0 -245
- package/dist/chunks/chunk.WYF6KIZP.js +0 -21
- package/dist/chunks/chunk.X44YYIHU.js +0 -24
- package/dist/chunks/chunk.X5X4UZZJ.js +0 -11
- package/dist/chunks/chunk.XC6VGXDZ.js +0 -78
- package/dist/chunks/chunk.XEWYYXQO.js +0 -11
- package/dist/chunks/chunk.XEZX22LQ.js +0 -28
- package/dist/chunks/chunk.XJJJ5N44.js +0 -83
- package/dist/chunks/chunk.XT7WLI7S.js +0 -24
- package/dist/chunks/chunk.XUVQISFH.js +0 -21
- package/dist/chunks/chunk.XWTM6QEP.js +0 -24
- package/dist/chunks/chunk.XWUMRPTO.js +0 -21
- package/dist/chunks/chunk.XXFWP5HJ.js +0 -124
- package/dist/chunks/chunk.Y6KGVJTI.js +0 -271
- package/dist/chunks/chunk.YB2HW4RD.js +0 -11
- package/dist/chunks/chunk.YHNSW265.js +0 -229
- package/dist/chunks/chunk.YHQMEGNP.js +0 -21
- package/dist/chunks/chunk.YOEQGKZU.js +0 -214
- package/dist/chunks/chunk.YZ7YDVM4.js +0 -161
- package/dist/chunks/chunk.Z3NYHC6Y.js +0 -11
- package/dist/chunks/chunk.Z6G2TOJC.js +0 -241
- package/dist/chunks/chunk.ZHZTZFLC.js +0 -11
- package/dist/chunks/chunk.ZLMZ6AJ4.js +0 -24
- package/dist/chunks/chunk.ZMP2JJRB.js +0 -91
- package/dist/chunks/chunk.ZWGUQYJA.js +0 -52
- package/dist/terra_ui_components-0.0.146-py3-none-any.whl +0 -0
- package/dist/terra_ui_components-0.0.146.tar.gz +0 -0
|
@@ -0,0 +1,1870 @@
|
|
|
1
|
+
import {
|
|
2
|
+
date_picker_styles_default
|
|
3
|
+
} from "./chunk.EBCKBDHV.js";
|
|
4
|
+
import {
|
|
5
|
+
TerraInput
|
|
6
|
+
} from "./chunk.CQFFIIPF.js";
|
|
7
|
+
import {
|
|
8
|
+
TerraDropdown
|
|
9
|
+
} from "./chunk.V5LCG7NP.js";
|
|
10
|
+
import {
|
|
11
|
+
TerraButton
|
|
12
|
+
} from "./chunk.ZRENH7JC.js";
|
|
13
|
+
import {
|
|
14
|
+
watch
|
|
15
|
+
} from "./chunk.NWXJOH5T.js";
|
|
16
|
+
import {
|
|
17
|
+
TerraElement,
|
|
18
|
+
component_styles_default
|
|
19
|
+
} from "./chunk.DFM34CDQ.js";
|
|
20
|
+
import {
|
|
21
|
+
__decorateClass
|
|
22
|
+
} from "./chunk.SHKVBVTI.js";
|
|
23
|
+
|
|
24
|
+
// src/components/date-picker/date-picker.component.ts
|
|
25
|
+
import { property, state, query } from "lit/decorators.js";
|
|
26
|
+
import { html } from "lit";
|
|
27
|
+
import { createRef, ref } from "lit/directives/ref.js";
|
|
28
|
+
import { isValid } from "date-fns";
|
|
29
|
+
var TerraDatePicker = class extends TerraElement {
|
|
30
|
+
constructor() {
|
|
31
|
+
super();
|
|
32
|
+
this.range = false;
|
|
33
|
+
this.hideLabel = false;
|
|
34
|
+
this.label = "Select Date";
|
|
35
|
+
this.helpText = "";
|
|
36
|
+
this.startHelpText = "";
|
|
37
|
+
this.endHelpText = "";
|
|
38
|
+
this.showPresets = false;
|
|
39
|
+
this.presets = [];
|
|
40
|
+
this.enableTime = false;
|
|
41
|
+
this.inline = false;
|
|
42
|
+
this.splitInputs = false;
|
|
43
|
+
this.placeholder = "Select Date";
|
|
44
|
+
this.startPlaceholder = "Start Date";
|
|
45
|
+
this.endPlaceholder = "End Date";
|
|
46
|
+
this.role = "group";
|
|
47
|
+
this.ariaLabel = "Date picker";
|
|
48
|
+
this.isOpen = false;
|
|
49
|
+
this.leftMonth = /* @__PURE__ */ new Date();
|
|
50
|
+
this.rightMonth = /* @__PURE__ */ new Date();
|
|
51
|
+
this.selectedStart = null;
|
|
52
|
+
this.selectedEnd = null;
|
|
53
|
+
this.hoverDate = null;
|
|
54
|
+
this.isSelectingRange = false;
|
|
55
|
+
this.showLeftMonthDropdown = false;
|
|
56
|
+
this.showRightMonthDropdown = false;
|
|
57
|
+
this.startHour = 12;
|
|
58
|
+
this.startMinute = 0;
|
|
59
|
+
this.endHour = 12;
|
|
60
|
+
this.endMinute = 0;
|
|
61
|
+
this.timePeriod = "AM";
|
|
62
|
+
this.endTimePeriod = "PM";
|
|
63
|
+
this.selectedDates = {
|
|
64
|
+
startDate: (/* @__PURE__ */ new Date()).toString(),
|
|
65
|
+
endDate: (/* @__PURE__ */ new Date()).toString()
|
|
66
|
+
};
|
|
67
|
+
this.dropdownRef = createRef();
|
|
68
|
+
this.DAYS = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
|
|
69
|
+
this.MONTHS = [
|
|
70
|
+
"January",
|
|
71
|
+
"February",
|
|
72
|
+
"March",
|
|
73
|
+
"April",
|
|
74
|
+
"May",
|
|
75
|
+
"June",
|
|
76
|
+
"July",
|
|
77
|
+
"August",
|
|
78
|
+
"September",
|
|
79
|
+
"October",
|
|
80
|
+
"November",
|
|
81
|
+
"December"
|
|
82
|
+
];
|
|
83
|
+
this.initializePresets();
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Parse a date string (YYYY-MM-DD or ISO datetime) as a local date, avoiding timezone issues.
|
|
87
|
+
* When you do `new Date("2024-03-20")`, JavaScript interprets it as UTC midnight,
|
|
88
|
+
* which can cause off-by-one day errors when using getDate() in local timezone.
|
|
89
|
+
* This function parses the date as a local date instead.
|
|
90
|
+
*
|
|
91
|
+
* When enableTime is true, datetime strings are parsed as UTC to match API min/max dates.
|
|
92
|
+
*/
|
|
93
|
+
parseLocalDate(dateString) {
|
|
94
|
+
const dateOnlyPattern = /^\d{4}-\d{2}-\d{2}$/;
|
|
95
|
+
if (dateOnlyPattern.test(dateString)) {
|
|
96
|
+
const [year, month, day] = dateString.split("-").map(Number);
|
|
97
|
+
return new Date(year, month - 1, day);
|
|
98
|
+
}
|
|
99
|
+
const dateTimePattern = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$/;
|
|
100
|
+
if (dateTimePattern.test(dateString)) {
|
|
101
|
+
const [datePart, timePart] = dateString.split("T");
|
|
102
|
+
const [year, month, day] = datePart.split("-").map(Number);
|
|
103
|
+
const [hours, minutes, seconds] = timePart.split(":").map(Number);
|
|
104
|
+
return new Date(Date.UTC(year, month - 1, day, hours, minutes, seconds));
|
|
105
|
+
}
|
|
106
|
+
return new Date(dateString);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Check if two dates are in the same calendar month and year
|
|
110
|
+
*/
|
|
111
|
+
isSameMonth(date1, date2) {
|
|
112
|
+
return date1.getFullYear() === date2.getFullYear() && date1.getMonth() === date2.getMonth();
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Check if a date's month/year matches a given month Date
|
|
116
|
+
*/
|
|
117
|
+
isDateInMonth(date, monthDate) {
|
|
118
|
+
return date.getFullYear() === monthDate.getFullYear() && date.getMonth() === monthDate.getMonth();
|
|
119
|
+
}
|
|
120
|
+
getBounds() {
|
|
121
|
+
const min = this.minDate ? this.parseLocalDate(this.minDate) : void 0;
|
|
122
|
+
const max = this.maxDate ? this.parseLocalDate(this.maxDate) : void 0;
|
|
123
|
+
return { min, max };
|
|
124
|
+
}
|
|
125
|
+
doesRangeOverlapBounds(range) {
|
|
126
|
+
const { startDate, endDate } = range;
|
|
127
|
+
const { min, max } = this.getBounds();
|
|
128
|
+
if (!this.range) {
|
|
129
|
+
if (!startDate)
|
|
130
|
+
return false;
|
|
131
|
+
if (min && startDate < min)
|
|
132
|
+
return false;
|
|
133
|
+
if (max && startDate > max)
|
|
134
|
+
return false;
|
|
135
|
+
return true;
|
|
136
|
+
}
|
|
137
|
+
const start = startDate != null ? startDate : /* @__PURE__ */ new Date(-864e13);
|
|
138
|
+
const end = endDate != null ? endDate : /* @__PURE__ */ new Date(864e13);
|
|
139
|
+
if (!min && !max)
|
|
140
|
+
return true;
|
|
141
|
+
const windowStart = min != null ? min : /* @__PURE__ */ new Date(-864e13);
|
|
142
|
+
const windowEnd = max != null ? max : /* @__PURE__ */ new Date(864e13);
|
|
143
|
+
return end >= windowStart && start <= windowEnd;
|
|
144
|
+
}
|
|
145
|
+
isPresetWithinBounds(range) {
|
|
146
|
+
return this.doesRangeOverlapBounds(range);
|
|
147
|
+
}
|
|
148
|
+
get filteredPresets() {
|
|
149
|
+
return (this.presets || []).filter(
|
|
150
|
+
(preset) => this.isPresetWithinBounds(preset.getValue())
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
open() {
|
|
154
|
+
this.isOpen = true;
|
|
155
|
+
if (this.maxDate && !this.selectedStart && !this.selectedEnd) {
|
|
156
|
+
const max = this.parseLocalDate(this.maxDate);
|
|
157
|
+
if (!isNaN(max.getTime())) {
|
|
158
|
+
if (this.range) {
|
|
159
|
+
this.rightMonth = new Date(max);
|
|
160
|
+
const left = new Date(max);
|
|
161
|
+
left.setMonth(left.getMonth() - 1);
|
|
162
|
+
this.leftMonth = left;
|
|
163
|
+
} else {
|
|
164
|
+
this.leftMonth = new Date(max);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
if (!this.inline && this.dropdownRef.value) {
|
|
169
|
+
this.dropdownRef.value.show();
|
|
170
|
+
}
|
|
171
|
+
this.requestUpdate();
|
|
172
|
+
}
|
|
173
|
+
close() {
|
|
174
|
+
this.isOpen = false;
|
|
175
|
+
if (!this.inline && this.dropdownRef.value) {
|
|
176
|
+
this.dropdownRef.value.hide();
|
|
177
|
+
}
|
|
178
|
+
this.requestUpdate();
|
|
179
|
+
}
|
|
180
|
+
setOpen(open) {
|
|
181
|
+
if (open) {
|
|
182
|
+
this.open();
|
|
183
|
+
} else {
|
|
184
|
+
this.close();
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
handleInlineChange() {
|
|
188
|
+
if (this.inline) {
|
|
189
|
+
this.isOpen = true;
|
|
190
|
+
if (this.dropdownRef.value) {
|
|
191
|
+
this.dropdownRef.value.hide();
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
handleStartEndDateChange() {
|
|
196
|
+
if (this.startDate) {
|
|
197
|
+
const start = this.parseLocalDate(this.startDate);
|
|
198
|
+
if (!isNaN(start.getTime())) {
|
|
199
|
+
this.selectedStart = start;
|
|
200
|
+
if (this.enableTime) {
|
|
201
|
+
this.initializeTimeFromDate(start, true);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
} else {
|
|
205
|
+
this.selectedStart = null;
|
|
206
|
+
}
|
|
207
|
+
if (this.range) {
|
|
208
|
+
if (this.endDate) {
|
|
209
|
+
const end = this.parseLocalDate(this.endDate);
|
|
210
|
+
if (!isNaN(end.getTime())) {
|
|
211
|
+
this.selectedEnd = end;
|
|
212
|
+
if (this.enableTime) {
|
|
213
|
+
this.initializeTimeFromDate(end, false);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
} else {
|
|
217
|
+
this.selectedEnd = null;
|
|
218
|
+
}
|
|
219
|
+
if (this.selectedStart && this.selectedEnd) {
|
|
220
|
+
const isSingleMonthRange = this.isSameMonth(
|
|
221
|
+
this.selectedStart,
|
|
222
|
+
this.selectedEnd
|
|
223
|
+
);
|
|
224
|
+
if (isSingleMonthRange) {
|
|
225
|
+
if (this.isDateInMonth(this.selectedStart, this.leftMonth)) {
|
|
226
|
+
this.leftMonth = new Date(this.selectedStart);
|
|
227
|
+
if (this.isDateInMonth(this.selectedStart, this.rightMonth)) {
|
|
228
|
+
this.rightMonth = new Date(this.selectedStart);
|
|
229
|
+
this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
|
|
230
|
+
}
|
|
231
|
+
} else if (this.isDateInMonth(this.selectedStart, this.rightMonth)) {
|
|
232
|
+
this.rightMonth = new Date(this.selectedStart);
|
|
233
|
+
} else {
|
|
234
|
+
this.leftMonth = new Date(this.selectedStart);
|
|
235
|
+
}
|
|
236
|
+
} else {
|
|
237
|
+
this.leftMonth = new Date(this.selectedStart);
|
|
238
|
+
this.rightMonth = new Date(this.selectedEnd);
|
|
239
|
+
}
|
|
240
|
+
} else if (this.selectedStart) {
|
|
241
|
+
this.leftMonth = new Date(this.selectedStart);
|
|
242
|
+
this.rightMonth = new Date(this.leftMonth);
|
|
243
|
+
this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
|
|
244
|
+
}
|
|
245
|
+
} else {
|
|
246
|
+
if (this.selectedStart) {
|
|
247
|
+
this.leftMonth = new Date(this.selectedStart);
|
|
248
|
+
}
|
|
249
|
+
this.selectedEnd = null;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
initializePresets() {
|
|
253
|
+
if (this.presets.length === 0) {
|
|
254
|
+
this.presets = [
|
|
255
|
+
{
|
|
256
|
+
label: "Today",
|
|
257
|
+
getValue: () => {
|
|
258
|
+
const today = /* @__PURE__ */ new Date();
|
|
259
|
+
return {
|
|
260
|
+
startDate: today,
|
|
261
|
+
endDate: this.range ? today : null
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
label: "Yesterday",
|
|
267
|
+
getValue: () => {
|
|
268
|
+
const yesterday = /* @__PURE__ */ new Date();
|
|
269
|
+
yesterday.setDate(yesterday.getDate() - 1);
|
|
270
|
+
return {
|
|
271
|
+
startDate: yesterday,
|
|
272
|
+
endDate: this.range ? yesterday : null
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
label: "Last 7 days",
|
|
278
|
+
getValue: () => {
|
|
279
|
+
const end = /* @__PURE__ */ new Date();
|
|
280
|
+
const start = /* @__PURE__ */ new Date();
|
|
281
|
+
start.setDate(start.getDate() - 6);
|
|
282
|
+
return { startDate: start, endDate: end };
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
label: "Last 30 days",
|
|
287
|
+
getValue: () => {
|
|
288
|
+
const end = /* @__PURE__ */ new Date();
|
|
289
|
+
const start = /* @__PURE__ */ new Date();
|
|
290
|
+
start.setDate(start.getDate() - 29);
|
|
291
|
+
return { startDate: start, endDate: end };
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
label: "Last 6 months",
|
|
296
|
+
getValue: () => {
|
|
297
|
+
const end = /* @__PURE__ */ new Date();
|
|
298
|
+
const start = /* @__PURE__ */ new Date();
|
|
299
|
+
start.setMonth(start.getMonth() - 6);
|
|
300
|
+
return { startDate: start, endDate: end };
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
label: "Last year",
|
|
305
|
+
getValue: () => {
|
|
306
|
+
const end = /* @__PURE__ */ new Date();
|
|
307
|
+
const start = /* @__PURE__ */ new Date();
|
|
308
|
+
start.setFullYear(start.getFullYear() - 1);
|
|
309
|
+
return { startDate: start, endDate: end };
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
label: "All time",
|
|
314
|
+
getValue: () => {
|
|
315
|
+
const { min, max } = this.getBounds();
|
|
316
|
+
return {
|
|
317
|
+
startDate: min || null,
|
|
318
|
+
endDate: max || null
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
];
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
firstUpdated() {
|
|
326
|
+
const params = new URLSearchParams(window.location.search);
|
|
327
|
+
const timeStartParam = params.get("time_start") || this.startDate;
|
|
328
|
+
const timeEndParam = params.get("time_end") || this.endDate;
|
|
329
|
+
if (timeStartParam) {
|
|
330
|
+
this.selectedStart = this.parseLocalDate(timeStartParam);
|
|
331
|
+
this.leftMonth = new Date(this.selectedStart);
|
|
332
|
+
if (this.enableTime) {
|
|
333
|
+
this.initializeTimeFromDate(this.selectedStart, true);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
if (this.range && timeEndParam) {
|
|
337
|
+
this.selectedEnd = this.parseLocalDate(timeEndParam);
|
|
338
|
+
if (this.enableTime) {
|
|
339
|
+
this.initializeTimeFromDate(this.selectedEnd, false);
|
|
340
|
+
}
|
|
341
|
+
if (this.selectedStart && this.selectedEnd) {
|
|
342
|
+
const isSingleMonthRange = this.isSameMonth(
|
|
343
|
+
this.selectedStart,
|
|
344
|
+
this.selectedEnd
|
|
345
|
+
);
|
|
346
|
+
if (isSingleMonthRange) {
|
|
347
|
+
this.rightMonth = new Date(this.selectedStart);
|
|
348
|
+
this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
|
|
349
|
+
} else {
|
|
350
|
+
this.rightMonth = new Date(this.selectedEnd);
|
|
351
|
+
}
|
|
352
|
+
} else if (this.selectedEnd) {
|
|
353
|
+
this.rightMonth = new Date(this.selectedEnd);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
if (this.range && !timeEndParam) {
|
|
357
|
+
this.rightMonth = new Date(this.leftMonth);
|
|
358
|
+
this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
|
|
359
|
+
}
|
|
360
|
+
if (this.inline) {
|
|
361
|
+
this.isOpen = true;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
disconnectedCallback() {
|
|
365
|
+
super.disconnectedCallback();
|
|
366
|
+
}
|
|
367
|
+
handleDropdownShow() {
|
|
368
|
+
this.isOpen = true;
|
|
369
|
+
}
|
|
370
|
+
handleDropdownHide() {
|
|
371
|
+
this.isOpen = false;
|
|
372
|
+
}
|
|
373
|
+
formatDisplayDate(date, _isStart = true) {
|
|
374
|
+
if (!date)
|
|
375
|
+
return "";
|
|
376
|
+
const format = this.displayFormat || (this.enableTime ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD");
|
|
377
|
+
if (this.enableTime) {
|
|
378
|
+
const year2 = date.getUTCFullYear();
|
|
379
|
+
const month2 = String(date.getUTCMonth() + 1).padStart(2, "0");
|
|
380
|
+
const day2 = String(date.getUTCDate()).padStart(2, "0");
|
|
381
|
+
const hours = String(date.getUTCHours()).padStart(2, "0");
|
|
382
|
+
const minutes = String(date.getUTCMinutes()).padStart(2, "0");
|
|
383
|
+
const seconds = String(date.getUTCSeconds()).padStart(2, "0");
|
|
384
|
+
return format.replace("YYYY", year2.toString()).replace("MM", month2).replace("DD", day2).replace("HH", hours).replace("mm", minutes).replace("ss", seconds);
|
|
385
|
+
}
|
|
386
|
+
const year = date.getFullYear();
|
|
387
|
+
const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
388
|
+
const day = String(date.getDate()).padStart(2, "0");
|
|
389
|
+
return format.replace("YYYY", year.toString()).replace("MM", month).replace("DD", day);
|
|
390
|
+
}
|
|
391
|
+
getDisplayValue() {
|
|
392
|
+
if (this.range) {
|
|
393
|
+
if (this.selectedStart && this.selectedEnd) {
|
|
394
|
+
return `${this.formatDisplayDate(this.selectedStart, true)} \u2013 ${this.formatDisplayDate(this.selectedEnd, false)}`;
|
|
395
|
+
} else if (this.selectedStart) {
|
|
396
|
+
return this.formatDisplayDate(this.selectedStart, true);
|
|
397
|
+
}
|
|
398
|
+
return "";
|
|
399
|
+
} else {
|
|
400
|
+
return this.selectedStart ? this.formatDisplayDate(this.selectedStart, true) : "";
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
getStartDateDisplayValue() {
|
|
404
|
+
return this.selectedStart ? this.formatDisplayDate(this.selectedStart, true) : "";
|
|
405
|
+
}
|
|
406
|
+
getEndDateDisplayValue() {
|
|
407
|
+
return this.selectedEnd ? this.formatDisplayDate(this.selectedEnd, false) : "";
|
|
408
|
+
}
|
|
409
|
+
parseAndFormatDate(dateStr) {
|
|
410
|
+
const trimmed = dateStr.trim();
|
|
411
|
+
if (!trimmed)
|
|
412
|
+
return null;
|
|
413
|
+
const dateOnlyPattern = /^\d{4}-\d{2}-\d{2}$/;
|
|
414
|
+
const dateTimePattern = /^\d{4}-\d{2}-\d{2}[T\s]\d{1,2}:\d{2}(:\d{2})?$/;
|
|
415
|
+
let date;
|
|
416
|
+
if (dateOnlyPattern.test(trimmed)) {
|
|
417
|
+
date = this.parseLocalDate(trimmed);
|
|
418
|
+
} else if (this.enableTime && dateTimePattern.test(trimmed)) {
|
|
419
|
+
const [datePart, timePart] = trimmed.split(/[T\s]+/);
|
|
420
|
+
const [year2, month2, day2] = datePart.split("-").map(Number);
|
|
421
|
+
const timeComponents = timePart.split(":").map(Number);
|
|
422
|
+
const hours = timeComponents[0] || 0;
|
|
423
|
+
const minutes = timeComponents[1] || 0;
|
|
424
|
+
const seconds = timeComponents[2] || 0;
|
|
425
|
+
date = new Date(Date.UTC(year2, month2 - 1, day2, hours, minutes, seconds));
|
|
426
|
+
} else {
|
|
427
|
+
date = new Date(trimmed);
|
|
428
|
+
if (!isValid(date)) {
|
|
429
|
+
return null;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
if (!isValid(date)) {
|
|
433
|
+
return null;
|
|
434
|
+
}
|
|
435
|
+
const year = date.getFullYear();
|
|
436
|
+
const month = date.getMonth() + 1;
|
|
437
|
+
const day = date.getDate();
|
|
438
|
+
if (this.enableTime) {
|
|
439
|
+
const utcYear = date.getUTCFullYear();
|
|
440
|
+
const utcMonth = date.getUTCMonth() + 1;
|
|
441
|
+
const utcDay = date.getUTCDate();
|
|
442
|
+
const utcHours = date.getUTCHours();
|
|
443
|
+
const utcMinutes = date.getUTCMinutes();
|
|
444
|
+
const utcSeconds = date.getUTCSeconds();
|
|
445
|
+
return `${utcYear}-${String(utcMonth).padStart(2, "0")}-${String(utcDay).padStart(2, "0")}T${String(utcHours).padStart(2, "0")}:${String(utcMinutes).padStart(2, "0")}:${String(utcSeconds).padStart(2, "0")}`;
|
|
446
|
+
} else {
|
|
447
|
+
return `${year}-${String(month).padStart(2, "0")}-${String(day).padStart(2, "0")}`;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
clearInputValidation() {
|
|
451
|
+
const inputs = this.renderRoot.querySelectorAll("terra-input");
|
|
452
|
+
inputs.forEach((input) => {
|
|
453
|
+
input.setCustomValidity("");
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* Format a date string for display in error messages
|
|
458
|
+
* When time is disabled, only show the date portion (YYYY-MM-DD)
|
|
459
|
+
*/
|
|
460
|
+
formatDateForError(dateString) {
|
|
461
|
+
if (!this.enableTime) {
|
|
462
|
+
return dateString.split("T")[0];
|
|
463
|
+
}
|
|
464
|
+
return dateString;
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* Set validation error on input and emit invalid event
|
|
468
|
+
*/
|
|
469
|
+
setInputValidationError(input, message) {
|
|
470
|
+
input.setCustomValidity(message);
|
|
471
|
+
requestAnimationFrame(() => {
|
|
472
|
+
;
|
|
473
|
+
input.validationErrorMessage = message;
|
|
474
|
+
input.requestUpdate();
|
|
475
|
+
});
|
|
476
|
+
this.emit("terra-date-selection-invalid", {
|
|
477
|
+
detail: { message }
|
|
478
|
+
});
|
|
479
|
+
}
|
|
480
|
+
handleInputBlur(event) {
|
|
481
|
+
const input = event.target;
|
|
482
|
+
const value = input.value || "";
|
|
483
|
+
if (!value.trim()) {
|
|
484
|
+
this.selectedStart = null;
|
|
485
|
+
this.selectedEnd = null;
|
|
486
|
+
input.setCustomValidity("");
|
|
487
|
+
this.emitChange();
|
|
488
|
+
return;
|
|
489
|
+
}
|
|
490
|
+
if (this.range) {
|
|
491
|
+
const parts = value.split(" - ");
|
|
492
|
+
if (parts.length !== 2) {
|
|
493
|
+
const message = "Date range must be in format: YYYY-MM-DD - YYYY-MM-DD";
|
|
494
|
+
this.setInputValidationError(input, message);
|
|
495
|
+
return;
|
|
496
|
+
}
|
|
497
|
+
const startFormatted = this.parseAndFormatDate(parts[0]);
|
|
498
|
+
const endFormatted = this.parseAndFormatDate(parts[1]);
|
|
499
|
+
if (!startFormatted) {
|
|
500
|
+
const message = "Invalid start date format";
|
|
501
|
+
this.setInputValidationError(input, message);
|
|
502
|
+
return;
|
|
503
|
+
}
|
|
504
|
+
if (!endFormatted) {
|
|
505
|
+
const message = "Invalid end date format";
|
|
506
|
+
this.setInputValidationError(input, message);
|
|
507
|
+
return;
|
|
508
|
+
}
|
|
509
|
+
const start = this.parseLocalDate(startFormatted);
|
|
510
|
+
const end = this.parseLocalDate(endFormatted);
|
|
511
|
+
let finalStart = start;
|
|
512
|
+
let finalEnd = end;
|
|
513
|
+
if (start > end) {
|
|
514
|
+
finalStart = end;
|
|
515
|
+
finalEnd = start;
|
|
516
|
+
}
|
|
517
|
+
if (this.minDate) {
|
|
518
|
+
const min = this.parseLocalDate(this.minDate);
|
|
519
|
+
if (finalStart < min) {
|
|
520
|
+
const message = `Start date must be on or after ${this.formatDateForError(this.minDate)}`;
|
|
521
|
+
this.setInputValidationError(input, message);
|
|
522
|
+
return;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
if (this.maxDate) {
|
|
526
|
+
const max = this.parseLocalDate(this.maxDate);
|
|
527
|
+
if (finalEnd > max) {
|
|
528
|
+
const message = `End date must be on or before ${this.formatDateForError(this.maxDate)}`;
|
|
529
|
+
this.setInputValidationError(input, message);
|
|
530
|
+
return;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
this.selectedStart = finalStart;
|
|
534
|
+
this.selectedEnd = finalEnd;
|
|
535
|
+
this.updateMonthViews();
|
|
536
|
+
input.value = `${startFormatted} - ${endFormatted}`;
|
|
537
|
+
input.setCustomValidity("");
|
|
538
|
+
this.emitChange();
|
|
539
|
+
} else {
|
|
540
|
+
const formatted = this.parseAndFormatDate(value);
|
|
541
|
+
if (!formatted) {
|
|
542
|
+
const message = "Invalid date format";
|
|
543
|
+
this.setInputValidationError(input, message);
|
|
544
|
+
return;
|
|
545
|
+
}
|
|
546
|
+
const date = this.parseLocalDate(formatted);
|
|
547
|
+
if (this.minDate) {
|
|
548
|
+
const min = this.parseLocalDate(this.minDate);
|
|
549
|
+
if (date < min) {
|
|
550
|
+
const message = `Date must be on or after ${this.formatDateForError(this.minDate)}`;
|
|
551
|
+
this.setInputValidationError(input, message);
|
|
552
|
+
return;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
if (this.maxDate) {
|
|
556
|
+
const max = this.parseLocalDate(this.maxDate);
|
|
557
|
+
if (date > max) {
|
|
558
|
+
const message = `Date must be on or before ${this.formatDateForError(this.maxDate)}`;
|
|
559
|
+
this.setInputValidationError(input, message);
|
|
560
|
+
return;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
this.selectedStart = date;
|
|
564
|
+
this.selectedEnd = null;
|
|
565
|
+
this.updateMonthViews();
|
|
566
|
+
input.value = formatted;
|
|
567
|
+
input.setCustomValidity("");
|
|
568
|
+
this.emitChange();
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
handleStartInputBlur(event) {
|
|
572
|
+
const input = event.target;
|
|
573
|
+
const value = input.value || "";
|
|
574
|
+
if (!value.trim()) {
|
|
575
|
+
this.selectedStart = null;
|
|
576
|
+
input.setCustomValidity("");
|
|
577
|
+
this.emitChange();
|
|
578
|
+
return;
|
|
579
|
+
}
|
|
580
|
+
const formatted = this.parseAndFormatDate(value);
|
|
581
|
+
if (!formatted) {
|
|
582
|
+
const message = "Invalid date format";
|
|
583
|
+
this.setInputValidationError(input, message);
|
|
584
|
+
return;
|
|
585
|
+
}
|
|
586
|
+
const date = this.parseLocalDate(formatted);
|
|
587
|
+
if (this.minDate) {
|
|
588
|
+
const min = this.parseLocalDate(this.minDate);
|
|
589
|
+
if (date < min) {
|
|
590
|
+
const message = `Date must be on or after ${this.formatDateForError(this.minDate)}`;
|
|
591
|
+
this.setInputValidationError(input, message);
|
|
592
|
+
return;
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
if (this.maxDate) {
|
|
596
|
+
const max = this.parseLocalDate(this.maxDate);
|
|
597
|
+
if (date > max) {
|
|
598
|
+
const message = `Date must be on or before ${this.formatDateForError(this.maxDate)}`;
|
|
599
|
+
this.setInputValidationError(input, message);
|
|
600
|
+
return;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
if (this.selectedEnd && date > this.selectedEnd) {
|
|
604
|
+
const message = "Start date must be before end date";
|
|
605
|
+
this.setInputValidationError(input, message);
|
|
606
|
+
return;
|
|
607
|
+
}
|
|
608
|
+
this.selectedStart = date;
|
|
609
|
+
this.leftMonth = new Date(date);
|
|
610
|
+
input.value = formatted;
|
|
611
|
+
input.setCustomValidity("");
|
|
612
|
+
this.emitChange();
|
|
613
|
+
}
|
|
614
|
+
handleEndInputBlur(event) {
|
|
615
|
+
const input = event.target;
|
|
616
|
+
const value = input.value || "";
|
|
617
|
+
if (!value.trim()) {
|
|
618
|
+
this.selectedEnd = null;
|
|
619
|
+
input.setCustomValidity("");
|
|
620
|
+
this.emitChange();
|
|
621
|
+
return;
|
|
622
|
+
}
|
|
623
|
+
const formatted = this.parseAndFormatDate(value);
|
|
624
|
+
if (!formatted) {
|
|
625
|
+
const message = "Invalid date format";
|
|
626
|
+
this.setInputValidationError(input, message);
|
|
627
|
+
return;
|
|
628
|
+
}
|
|
629
|
+
const date = this.parseLocalDate(formatted);
|
|
630
|
+
if (this.minDate) {
|
|
631
|
+
const min = this.parseLocalDate(this.minDate);
|
|
632
|
+
if (date < min) {
|
|
633
|
+
const message = `Date must be on or after ${this.formatDateForError(this.minDate)}`;
|
|
634
|
+
this.setInputValidationError(input, message);
|
|
635
|
+
return;
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
if (this.maxDate) {
|
|
639
|
+
const max = this.parseLocalDate(this.maxDate);
|
|
640
|
+
if (date > max) {
|
|
641
|
+
const message = `Date must be on or before ${this.formatDateForError(this.maxDate)}`;
|
|
642
|
+
this.setInputValidationError(input, message);
|
|
643
|
+
return;
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
if (this.selectedStart && date < this.selectedStart) {
|
|
647
|
+
const message = "End date must be after start date";
|
|
648
|
+
this.setInputValidationError(input, message);
|
|
649
|
+
return;
|
|
650
|
+
}
|
|
651
|
+
this.selectedEnd = date;
|
|
652
|
+
if (this.selectedStart && this.isSameMonth(this.selectedStart, this.selectedEnd)) {
|
|
653
|
+
this.rightMonth = new Date(this.selectedStart);
|
|
654
|
+
this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
|
|
655
|
+
} else {
|
|
656
|
+
this.rightMonth = new Date(date);
|
|
657
|
+
}
|
|
658
|
+
input.setCustomValidity("");
|
|
659
|
+
this.emitChange();
|
|
660
|
+
}
|
|
661
|
+
updateMonthViews() {
|
|
662
|
+
if (this.selectedStart) {
|
|
663
|
+
this.leftMonth = new Date(this.selectedStart);
|
|
664
|
+
if (this.range && this.selectedEnd) {
|
|
665
|
+
if (this.isSameMonth(this.selectedStart, this.selectedEnd)) {
|
|
666
|
+
this.rightMonth = new Date(this.selectedStart);
|
|
667
|
+
this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
|
|
668
|
+
} else {
|
|
669
|
+
this.rightMonth = new Date(this.selectedEnd);
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
handleKeydown(event) {
|
|
675
|
+
if (event.key === " ") {
|
|
676
|
+
event.stopPropagation();
|
|
677
|
+
return;
|
|
678
|
+
}
|
|
679
|
+
if (event.key === "Enter") {
|
|
680
|
+
event.preventDefault();
|
|
681
|
+
this.handleInputBlur(event);
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
previousMonth(isLeft) {
|
|
685
|
+
if (isLeft) {
|
|
686
|
+
const newMonth = new Date(this.leftMonth);
|
|
687
|
+
newMonth.setMonth(newMonth.getMonth() - 1);
|
|
688
|
+
this.leftMonth = newMonth;
|
|
689
|
+
} else {
|
|
690
|
+
const newMonth = new Date(this.rightMonth);
|
|
691
|
+
newMonth.setMonth(newMonth.getMonth() - 1);
|
|
692
|
+
this.rightMonth = newMonth;
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
nextMonth(isLeft) {
|
|
696
|
+
if (isLeft) {
|
|
697
|
+
const newMonth = new Date(this.leftMonth);
|
|
698
|
+
newMonth.setMonth(newMonth.getMonth() + 1);
|
|
699
|
+
this.leftMonth = newMonth;
|
|
700
|
+
} else {
|
|
701
|
+
const newMonth = new Date(this.rightMonth);
|
|
702
|
+
newMonth.setMonth(newMonth.getMonth() + 1);
|
|
703
|
+
this.rightMonth = newMonth;
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
toggleMonthDropdown(isLeft, event) {
|
|
707
|
+
event.stopPropagation();
|
|
708
|
+
if (isLeft) {
|
|
709
|
+
this.showLeftMonthDropdown = !this.showLeftMonthDropdown;
|
|
710
|
+
this.showRightMonthDropdown = false;
|
|
711
|
+
} else {
|
|
712
|
+
this.showRightMonthDropdown = !this.showRightMonthDropdown;
|
|
713
|
+
this.showLeftMonthDropdown = false;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
selectMonth(month, isLeft) {
|
|
717
|
+
if (isLeft) {
|
|
718
|
+
const newMonth = new Date(this.leftMonth);
|
|
719
|
+
newMonth.setMonth(month);
|
|
720
|
+
this.leftMonth = newMonth;
|
|
721
|
+
this.showLeftMonthDropdown = false;
|
|
722
|
+
} else {
|
|
723
|
+
const newMonth = new Date(this.rightMonth);
|
|
724
|
+
newMonth.setMonth(month);
|
|
725
|
+
this.rightMonth = newMonth;
|
|
726
|
+
this.showRightMonthDropdown = false;
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
changeYear(delta, isLeft) {
|
|
730
|
+
if (isLeft) {
|
|
731
|
+
const newMonth = new Date(this.leftMonth);
|
|
732
|
+
newMonth.setFullYear(newMonth.getFullYear() + delta);
|
|
733
|
+
this.leftMonth = newMonth;
|
|
734
|
+
} else {
|
|
735
|
+
const newMonth = new Date(this.rightMonth);
|
|
736
|
+
newMonth.setFullYear(newMonth.getFullYear() + delta);
|
|
737
|
+
this.rightMonth = newMonth;
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
handleYearInput(event, isLeft) {
|
|
741
|
+
const input = event.target;
|
|
742
|
+
const year = parseInt(input.value, 10);
|
|
743
|
+
if (!isNaN(year) && year >= 1900 && year <= 2100) {
|
|
744
|
+
if (isLeft) {
|
|
745
|
+
const newMonth = new Date(this.leftMonth);
|
|
746
|
+
newMonth.setFullYear(year);
|
|
747
|
+
this.leftMonth = newMonth;
|
|
748
|
+
} else {
|
|
749
|
+
const newMonth = new Date(this.rightMonth);
|
|
750
|
+
newMonth.setFullYear(year);
|
|
751
|
+
this.rightMonth = newMonth;
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
getDaysInMonth(date) {
|
|
756
|
+
const year = date.getFullYear();
|
|
757
|
+
const month = date.getMonth();
|
|
758
|
+
const firstDay = new Date(year, month, 1);
|
|
759
|
+
const lastDay = new Date(year, month + 1, 0);
|
|
760
|
+
const days = [];
|
|
761
|
+
const firstDayOfWeek = firstDay.getDay();
|
|
762
|
+
for (let i = firstDayOfWeek - 1; i >= 0; i--) {
|
|
763
|
+
const day = new Date(year, month, -i);
|
|
764
|
+
days.push(day);
|
|
765
|
+
}
|
|
766
|
+
for (let i = 1; i <= lastDay.getDate(); i++) {
|
|
767
|
+
days.push(new Date(year, month, i));
|
|
768
|
+
}
|
|
769
|
+
const remainingDays = 7 - days.length % 7;
|
|
770
|
+
if (remainingDays < 7) {
|
|
771
|
+
for (let i = 1; i <= remainingDays; i++) {
|
|
772
|
+
days.push(new Date(year, month + 1, i));
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
return days;
|
|
776
|
+
}
|
|
777
|
+
isSameDay(date1, date2) {
|
|
778
|
+
if (!date1 || !date2)
|
|
779
|
+
return false;
|
|
780
|
+
return date1.getFullYear() === date2.getFullYear() && date1.getMonth() === date2.getMonth() && date1.getDate() === date2.getDate();
|
|
781
|
+
}
|
|
782
|
+
isInRange(date) {
|
|
783
|
+
if (!this.selectedStart || !this.selectedEnd)
|
|
784
|
+
return false;
|
|
785
|
+
const time = date.getTime();
|
|
786
|
+
return time >= this.selectedStart.getTime() && time <= this.selectedEnd.getTime();
|
|
787
|
+
}
|
|
788
|
+
isInHoverRange(date) {
|
|
789
|
+
if (!this.range || !this.selectedStart || !this.hoverDate || this.selectedEnd)
|
|
790
|
+
return false;
|
|
791
|
+
const time = date.getTime();
|
|
792
|
+
const start = Math.min(this.selectedStart.getTime(), this.hoverDate.getTime());
|
|
793
|
+
const end = Math.max(this.selectedStart.getTime(), this.hoverDate.getTime());
|
|
794
|
+
return time >= start && time <= end;
|
|
795
|
+
}
|
|
796
|
+
isDisabled(date) {
|
|
797
|
+
if (this.minDate) {
|
|
798
|
+
const min = this.parseLocalDate(this.minDate);
|
|
799
|
+
const minMidnight = new Date(
|
|
800
|
+
Date.UTC(min.getUTCFullYear(), min.getUTCMonth(), min.getUTCDate())
|
|
801
|
+
);
|
|
802
|
+
const dateMidnight = new Date(
|
|
803
|
+
Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate())
|
|
804
|
+
);
|
|
805
|
+
if (dateMidnight < minMidnight)
|
|
806
|
+
return true;
|
|
807
|
+
}
|
|
808
|
+
if (this.maxDate) {
|
|
809
|
+
const max = this.parseLocalDate(this.maxDate);
|
|
810
|
+
const maxMidnight = new Date(
|
|
811
|
+
Date.UTC(max.getUTCFullYear(), max.getUTCMonth(), max.getUTCDate())
|
|
812
|
+
);
|
|
813
|
+
const dateMidnight = new Date(
|
|
814
|
+
Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate())
|
|
815
|
+
);
|
|
816
|
+
if (dateMidnight > maxMidnight)
|
|
817
|
+
return true;
|
|
818
|
+
}
|
|
819
|
+
return false;
|
|
820
|
+
}
|
|
821
|
+
selectDate(date) {
|
|
822
|
+
if (this.isDisabled(date)) {
|
|
823
|
+
this.emit("terra-date-selection-invalid", {
|
|
824
|
+
detail: {
|
|
825
|
+
message: `You are not allowed to select dates outside ${this.minDate} to ${this.maxDate}.`
|
|
826
|
+
}
|
|
827
|
+
});
|
|
828
|
+
return;
|
|
829
|
+
}
|
|
830
|
+
this.clearInputValidation();
|
|
831
|
+
if (this.range) {
|
|
832
|
+
if (!this.selectedStart || this.selectedEnd) {
|
|
833
|
+
this.selectedStart = date;
|
|
834
|
+
this.selectedEnd = null;
|
|
835
|
+
this.isSelectingRange = true;
|
|
836
|
+
} else {
|
|
837
|
+
if (date < this.selectedStart) {
|
|
838
|
+
this.selectedEnd = this.selectedStart;
|
|
839
|
+
this.selectedStart = date;
|
|
840
|
+
} else {
|
|
841
|
+
this.selectedEnd = date;
|
|
842
|
+
}
|
|
843
|
+
this.isSelectingRange = false;
|
|
844
|
+
this.emitChange();
|
|
845
|
+
if (!this.inline) {
|
|
846
|
+
this.isOpen = false;
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
} else {
|
|
850
|
+
this.selectedStart = date;
|
|
851
|
+
this.selectedEnd = null;
|
|
852
|
+
this.emitChange();
|
|
853
|
+
if (!this.inline) {
|
|
854
|
+
this.isOpen = false;
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
handleDateHover(date) {
|
|
859
|
+
if (this.range && this.selectedStart && !this.selectedEnd) {
|
|
860
|
+
this.hoverDate = date;
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
selectPreset(preset) {
|
|
864
|
+
const { startDate, endDate } = preset.getValue();
|
|
865
|
+
if (!this.isPresetWithinBounds({ startDate, endDate })) {
|
|
866
|
+
this.emit("terra-date-selection-invalid", {
|
|
867
|
+
detail: {
|
|
868
|
+
message: `The preset "${preset.label}" is not available within the allowed date range ${this.minDate} to ${this.maxDate}.`
|
|
869
|
+
}
|
|
870
|
+
});
|
|
871
|
+
return;
|
|
872
|
+
}
|
|
873
|
+
this.clearInputValidation();
|
|
874
|
+
const { min, max } = this.getBounds();
|
|
875
|
+
if (this.range) {
|
|
876
|
+
let s = startDate;
|
|
877
|
+
let e = endDate;
|
|
878
|
+
if (s && min && s < min)
|
|
879
|
+
s = new Date(min);
|
|
880
|
+
if (s && max && s > max)
|
|
881
|
+
s = new Date(max);
|
|
882
|
+
if (e && min && e < min)
|
|
883
|
+
e = new Date(min);
|
|
884
|
+
if (e && max && e > max)
|
|
885
|
+
e = new Date(max);
|
|
886
|
+
if (s && e && e < s) {
|
|
887
|
+
const tmp = s;
|
|
888
|
+
s = e;
|
|
889
|
+
e = tmp;
|
|
890
|
+
}
|
|
891
|
+
this.selectedStart = s;
|
|
892
|
+
this.selectedEnd = e;
|
|
893
|
+
} else {
|
|
894
|
+
let s = startDate;
|
|
895
|
+
if (s && min && s < min)
|
|
896
|
+
s = new Date(min);
|
|
897
|
+
if (s && max && s > max)
|
|
898
|
+
s = new Date(max);
|
|
899
|
+
this.selectedStart = s;
|
|
900
|
+
this.selectedEnd = null;
|
|
901
|
+
}
|
|
902
|
+
if (this.selectedStart) {
|
|
903
|
+
this.leftMonth = new Date(this.selectedStart);
|
|
904
|
+
if (this.range && this.selectedEnd) {
|
|
905
|
+
this.rightMonth = new Date(this.selectedEnd);
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
this.emitChange();
|
|
909
|
+
if (!this.range && !this.inline) {
|
|
910
|
+
this.isOpen = false;
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
emitChange() {
|
|
914
|
+
let startDateTime = "";
|
|
915
|
+
let endDateTime = "";
|
|
916
|
+
if (this.selectedStart) {
|
|
917
|
+
if (this.enableTime) {
|
|
918
|
+
const startDate = new Date(this.selectedStart);
|
|
919
|
+
let hours = this.startHour;
|
|
920
|
+
if (this.timePeriod === "PM" && hours !== 12)
|
|
921
|
+
hours += 12;
|
|
922
|
+
if (this.timePeriod === "AM" && hours === 12)
|
|
923
|
+
hours = 0;
|
|
924
|
+
startDate.setUTCHours(hours, this.startMinute, 0, 0);
|
|
925
|
+
startDateTime = startDate.toISOString();
|
|
926
|
+
} else {
|
|
927
|
+
startDateTime = this.selectedStart.toISOString().split("T")[0];
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
if (this.selectedEnd) {
|
|
931
|
+
if (this.enableTime) {
|
|
932
|
+
const endDate = new Date(this.selectedEnd);
|
|
933
|
+
let hours = this.endHour;
|
|
934
|
+
if (this.endTimePeriod === "PM" && hours !== 12)
|
|
935
|
+
hours += 12;
|
|
936
|
+
if (this.endTimePeriod === "AM" && hours === 12)
|
|
937
|
+
hours = 0;
|
|
938
|
+
endDate.setUTCHours(hours, this.endMinute, 0, 0);
|
|
939
|
+
endDateTime = endDate.toISOString();
|
|
940
|
+
} else {
|
|
941
|
+
endDateTime = this.selectedEnd.toISOString().split("T")[0];
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
this.emit("terra-date-range-change", {
|
|
945
|
+
detail: {
|
|
946
|
+
startDate: startDateTime,
|
|
947
|
+
endDate: endDateTime
|
|
948
|
+
}
|
|
949
|
+
});
|
|
950
|
+
}
|
|
951
|
+
initializeTimeFromDate(date, isStart) {
|
|
952
|
+
let hours = date.getUTCHours();
|
|
953
|
+
const minutes = date.getUTCMinutes();
|
|
954
|
+
const period = hours >= 12 ? "PM" : "AM";
|
|
955
|
+
if (hours === 0)
|
|
956
|
+
hours = 12;
|
|
957
|
+
else if (hours > 12)
|
|
958
|
+
hours -= 12;
|
|
959
|
+
if (isStart) {
|
|
960
|
+
this.startHour = hours;
|
|
961
|
+
this.startMinute = minutes;
|
|
962
|
+
this.timePeriod = period;
|
|
963
|
+
} else {
|
|
964
|
+
this.endHour = hours;
|
|
965
|
+
this.endMinute = minutes;
|
|
966
|
+
this.endTimePeriod = period;
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
changeTime(type, delta, isStart) {
|
|
970
|
+
if (type === "hour") {
|
|
971
|
+
if (isStart) {
|
|
972
|
+
let newHour = this.startHour + delta;
|
|
973
|
+
if (newHour > 12)
|
|
974
|
+
newHour = 1;
|
|
975
|
+
if (newHour < 1)
|
|
976
|
+
newHour = 12;
|
|
977
|
+
this.startHour = newHour;
|
|
978
|
+
} else {
|
|
979
|
+
let newHour = this.endHour + delta;
|
|
980
|
+
if (newHour > 12)
|
|
981
|
+
newHour = 1;
|
|
982
|
+
if (newHour < 1)
|
|
983
|
+
newHour = 12;
|
|
984
|
+
this.endHour = newHour;
|
|
985
|
+
}
|
|
986
|
+
} else {
|
|
987
|
+
if (isStart) {
|
|
988
|
+
let newMinute = this.startMinute + delta;
|
|
989
|
+
if (newMinute >= 60)
|
|
990
|
+
newMinute = 0;
|
|
991
|
+
if (newMinute < 0)
|
|
992
|
+
newMinute = 59;
|
|
993
|
+
this.startMinute = newMinute;
|
|
994
|
+
} else {
|
|
995
|
+
let newMinute = this.endMinute + delta;
|
|
996
|
+
if (newMinute >= 60)
|
|
997
|
+
newMinute = 0;
|
|
998
|
+
if (newMinute < 0)
|
|
999
|
+
newMinute = 59;
|
|
1000
|
+
this.endMinute = newMinute;
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
this.emitChange();
|
|
1004
|
+
this.requestUpdate();
|
|
1005
|
+
}
|
|
1006
|
+
handleTimeInput(event, type, isStart) {
|
|
1007
|
+
const input = event.target;
|
|
1008
|
+
let value = parseInt(input.value, 10);
|
|
1009
|
+
if (type === "hour") {
|
|
1010
|
+
if (isNaN(value) || value < 1 || value > 12) {
|
|
1011
|
+
input.value = isStart ? this.startHour.toString().padStart(2, "0") : this.endHour.toString().padStart(2, "0");
|
|
1012
|
+
return;
|
|
1013
|
+
}
|
|
1014
|
+
if (isStart)
|
|
1015
|
+
this.startHour = value;
|
|
1016
|
+
else
|
|
1017
|
+
this.endHour = value;
|
|
1018
|
+
} else {
|
|
1019
|
+
if (isNaN(value) || value < 0 || value >= 60) {
|
|
1020
|
+
input.value = isStart ? this.startMinute.toString().padStart(2, "0") : this.endMinute.toString().padStart(2, "0");
|
|
1021
|
+
return;
|
|
1022
|
+
}
|
|
1023
|
+
if (isStart)
|
|
1024
|
+
this.startMinute = value;
|
|
1025
|
+
else
|
|
1026
|
+
this.endMinute = value;
|
|
1027
|
+
}
|
|
1028
|
+
this.emitChange();
|
|
1029
|
+
this.requestUpdate();
|
|
1030
|
+
}
|
|
1031
|
+
togglePeriod(isStart) {
|
|
1032
|
+
if (isStart) {
|
|
1033
|
+
this.timePeriod = this.timePeriod === "AM" ? "PM" : "AM";
|
|
1034
|
+
} else {
|
|
1035
|
+
this.endTimePeriod = this.endTimePeriod === "AM" ? "PM" : "AM";
|
|
1036
|
+
}
|
|
1037
|
+
this.emitChange();
|
|
1038
|
+
this.requestUpdate();
|
|
1039
|
+
}
|
|
1040
|
+
renderCalendar(month, isLeft = true) {
|
|
1041
|
+
const days = this.getDaysInMonth(month);
|
|
1042
|
+
const currentMonth = month.getMonth();
|
|
1043
|
+
const showDropdown = isLeft ? this.showLeftMonthDropdown : this.showRightMonthDropdown;
|
|
1044
|
+
return html`
|
|
1045
|
+
<div class="calendar">
|
|
1046
|
+
<div class="calendar__header">
|
|
1047
|
+
<button
|
|
1048
|
+
type="button"
|
|
1049
|
+
class="calendar__nav"
|
|
1050
|
+
@click=${() => this.previousMonth(isLeft)}
|
|
1051
|
+
>
|
|
1052
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
1053
|
+
<path
|
|
1054
|
+
d="M10 12L6 8L10 4"
|
|
1055
|
+
stroke="currentColor"
|
|
1056
|
+
stroke-width="2"
|
|
1057
|
+
stroke-linecap="round"
|
|
1058
|
+
stroke-linejoin="round"
|
|
1059
|
+
/>
|
|
1060
|
+
</svg>
|
|
1061
|
+
</button>
|
|
1062
|
+
|
|
1063
|
+
<div class="calendar__month-year">
|
|
1064
|
+
<div class="calendar__month-dropdown-wrapper">
|
|
1065
|
+
<button
|
|
1066
|
+
type="button"
|
|
1067
|
+
class="calendar__month-button"
|
|
1068
|
+
@click=${(e) => this.toggleMonthDropdown(isLeft, e)}
|
|
1069
|
+
>
|
|
1070
|
+
${this.MONTHS[month.getMonth()]}
|
|
1071
|
+
<svg
|
|
1072
|
+
width="12"
|
|
1073
|
+
height="12"
|
|
1074
|
+
viewBox="0 0 12 12"
|
|
1075
|
+
fill="none"
|
|
1076
|
+
class="calendar__month-icon"
|
|
1077
|
+
>
|
|
1078
|
+
<path
|
|
1079
|
+
d="M3 5L6 8L9 5"
|
|
1080
|
+
stroke="currentColor"
|
|
1081
|
+
stroke-width="1.5"
|
|
1082
|
+
stroke-linecap="round"
|
|
1083
|
+
stroke-linejoin="round"
|
|
1084
|
+
/>
|
|
1085
|
+
</svg>
|
|
1086
|
+
</button>
|
|
1087
|
+
|
|
1088
|
+
${showDropdown ? html`
|
|
1089
|
+
<div class="calendar__month-dropdown">
|
|
1090
|
+
${this.MONTHS.map(
|
|
1091
|
+
(monthName, index) => html`
|
|
1092
|
+
<button
|
|
1093
|
+
type="button"
|
|
1094
|
+
class="calendar__month-option ${index === month.getMonth() ? "calendar__month-option--selected" : ""}"
|
|
1095
|
+
@click=${() => this.selectMonth(
|
|
1096
|
+
index,
|
|
1097
|
+
isLeft
|
|
1098
|
+
)}
|
|
1099
|
+
>
|
|
1100
|
+
${index === month.getMonth() ? html`
|
|
1101
|
+
<svg
|
|
1102
|
+
width="16"
|
|
1103
|
+
height="16"
|
|
1104
|
+
viewBox="0 0 16 16"
|
|
1105
|
+
fill="none"
|
|
1106
|
+
class="calendar__month-check"
|
|
1107
|
+
>
|
|
1108
|
+
<path
|
|
1109
|
+
d="M13 4L6 11L3 8"
|
|
1110
|
+
stroke="currentColor"
|
|
1111
|
+
stroke-width="2"
|
|
1112
|
+
stroke-linecap="round"
|
|
1113
|
+
stroke-linejoin="round"
|
|
1114
|
+
/>
|
|
1115
|
+
</svg>
|
|
1116
|
+
` : ""}
|
|
1117
|
+
${monthName}
|
|
1118
|
+
</button>
|
|
1119
|
+
`
|
|
1120
|
+
)}
|
|
1121
|
+
</div>
|
|
1122
|
+
` : ""}
|
|
1123
|
+
</div>
|
|
1124
|
+
|
|
1125
|
+
<div class="calendar__year-input-wrapper">
|
|
1126
|
+
<input
|
|
1127
|
+
type="number"
|
|
1128
|
+
class="calendar__year-input"
|
|
1129
|
+
.value=${month.getFullYear().toString()}
|
|
1130
|
+
@input=${(e) => this.handleYearInput(e, isLeft)}
|
|
1131
|
+
@blur=${(e) => {
|
|
1132
|
+
const input = e.target;
|
|
1133
|
+
input.value = month.getFullYear().toString();
|
|
1134
|
+
}}
|
|
1135
|
+
min="1900"
|
|
1136
|
+
max="2100"
|
|
1137
|
+
/>
|
|
1138
|
+
<div class="calendar__year-spinners">
|
|
1139
|
+
<button
|
|
1140
|
+
type="button"
|
|
1141
|
+
class="calendar__year-spinner calendar__year-spinner--up"
|
|
1142
|
+
@click=${() => this.changeYear(1, isLeft)}
|
|
1143
|
+
>
|
|
1144
|
+
<svg
|
|
1145
|
+
width="10"
|
|
1146
|
+
height="10"
|
|
1147
|
+
viewBox="0 0 10 10"
|
|
1148
|
+
fill="none"
|
|
1149
|
+
>
|
|
1150
|
+
<path
|
|
1151
|
+
d="M2 6L5 3L8 6"
|
|
1152
|
+
stroke="currentColor"
|
|
1153
|
+
stroke-width="1.5"
|
|
1154
|
+
stroke-linecap="round"
|
|
1155
|
+
stroke-linejoin="round"
|
|
1156
|
+
/>
|
|
1157
|
+
</svg>
|
|
1158
|
+
</button>
|
|
1159
|
+
<button
|
|
1160
|
+
type="button"
|
|
1161
|
+
class="calendar__year-spinner calendar__year-spinner--down"
|
|
1162
|
+
@click=${() => this.changeYear(-1, isLeft)}
|
|
1163
|
+
>
|
|
1164
|
+
<svg
|
|
1165
|
+
width="10"
|
|
1166
|
+
height="10"
|
|
1167
|
+
viewBox="0 0 10 10"
|
|
1168
|
+
fill="none"
|
|
1169
|
+
>
|
|
1170
|
+
<path
|
|
1171
|
+
d="M2 4L5 7L8 4"
|
|
1172
|
+
stroke="currentColor"
|
|
1173
|
+
stroke-width="1.5"
|
|
1174
|
+
stroke-linecap="round"
|
|
1175
|
+
stroke-linejoin="round"
|
|
1176
|
+
/>
|
|
1177
|
+
</svg>
|
|
1178
|
+
</button>
|
|
1179
|
+
</div>
|
|
1180
|
+
</div>
|
|
1181
|
+
</div>
|
|
1182
|
+
|
|
1183
|
+
<button
|
|
1184
|
+
type="button"
|
|
1185
|
+
class="calendar__nav"
|
|
1186
|
+
@click=${() => this.nextMonth(isLeft)}
|
|
1187
|
+
>
|
|
1188
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
1189
|
+
<path
|
|
1190
|
+
d="M6 12L10 8L6 4"
|
|
1191
|
+
stroke="currentColor"
|
|
1192
|
+
stroke-width="2"
|
|
1193
|
+
stroke-linecap="round"
|
|
1194
|
+
stroke-linejoin="round"
|
|
1195
|
+
/>
|
|
1196
|
+
</svg>
|
|
1197
|
+
</button>
|
|
1198
|
+
</div>
|
|
1199
|
+
<div class="calendar__weekdays">
|
|
1200
|
+
${this.DAYS.map(
|
|
1201
|
+
(day) => html`<div class="calendar__weekday">${day}</div>`
|
|
1202
|
+
)}
|
|
1203
|
+
</div>
|
|
1204
|
+
<div class="calendar__days">
|
|
1205
|
+
${days.map((date) => {
|
|
1206
|
+
const isCurrentMonth = date.getMonth() === currentMonth;
|
|
1207
|
+
const isSelected = this.isSameDay(date, this.selectedStart) || this.isSameDay(date, this.selectedEnd);
|
|
1208
|
+
const isStart = this.isSameDay(date, this.selectedStart);
|
|
1209
|
+
const isEnd = this.isSameDay(date, this.selectedEnd);
|
|
1210
|
+
const inRange = this.isInRange(date);
|
|
1211
|
+
const inHoverRange = this.isInHoverRange(date);
|
|
1212
|
+
const isDisabled = this.isDisabled(date);
|
|
1213
|
+
return html`
|
|
1214
|
+
<button
|
|
1215
|
+
type="button"
|
|
1216
|
+
class="calendar__day ${!isCurrentMonth ? "calendar__day--outside" : ""}
|
|
1217
|
+
${isSelected ? "calendar__day--selected" : ""}
|
|
1218
|
+
${isStart ? "calendar__day--start" : ""}
|
|
1219
|
+
${isEnd ? "calendar__day--end" : ""}
|
|
1220
|
+
${inRange ? "calendar__day--in-range" : ""}
|
|
1221
|
+
${inHoverRange ? "calendar__day--hover-range" : ""}
|
|
1222
|
+
${isDisabled ? "calendar__day--disabled" : ""}"
|
|
1223
|
+
@click=${() => this.selectDate(date)}
|
|
1224
|
+
@mouseenter=${() => this.handleDateHover(date)}
|
|
1225
|
+
?disabled=${isDisabled}
|
|
1226
|
+
>
|
|
1227
|
+
${date.getDate()}
|
|
1228
|
+
</button>
|
|
1229
|
+
`;
|
|
1230
|
+
})}
|
|
1231
|
+
</div>
|
|
1232
|
+
</div>
|
|
1233
|
+
`;
|
|
1234
|
+
}
|
|
1235
|
+
renderTimePicker() {
|
|
1236
|
+
if (!this.enableTime)
|
|
1237
|
+
return "";
|
|
1238
|
+
return html`
|
|
1239
|
+
<div class="date-picker__time">
|
|
1240
|
+
<div class="date-picker__time-section">
|
|
1241
|
+
<div class="date-picker__time-inputs">
|
|
1242
|
+
<div class="date-picker__time-input-group">
|
|
1243
|
+
<input
|
|
1244
|
+
type="number"
|
|
1245
|
+
class="date-picker__time-input"
|
|
1246
|
+
.value=${this.startHour.toString().padStart(2, "0")}
|
|
1247
|
+
@input=${(e) => this.handleTimeInput(e, "hour", true)}
|
|
1248
|
+
@blur=${(e) => {
|
|
1249
|
+
const input = e.target;
|
|
1250
|
+
input.value = this.startHour.toString().padStart(2, "0");
|
|
1251
|
+
}}
|
|
1252
|
+
min="1"
|
|
1253
|
+
max="12"
|
|
1254
|
+
/>
|
|
1255
|
+
<div class="date-picker__time-spinners">
|
|
1256
|
+
<button
|
|
1257
|
+
type="button"
|
|
1258
|
+
class="date-picker__time-spinner"
|
|
1259
|
+
@click=${() => this.changeTime("hour", 1, true)}
|
|
1260
|
+
>
|
|
1261
|
+
<svg
|
|
1262
|
+
width="10"
|
|
1263
|
+
height="10"
|
|
1264
|
+
viewBox="0 0 10 10"
|
|
1265
|
+
fill="none"
|
|
1266
|
+
>
|
|
1267
|
+
<path
|
|
1268
|
+
d="M2 6L5 3L8 6"
|
|
1269
|
+
stroke="currentColor"
|
|
1270
|
+
stroke-width="1.5"
|
|
1271
|
+
stroke-linecap="round"
|
|
1272
|
+
stroke-linejoin="round"
|
|
1273
|
+
/>
|
|
1274
|
+
</svg>
|
|
1275
|
+
</button>
|
|
1276
|
+
<button
|
|
1277
|
+
type="button"
|
|
1278
|
+
class="date-picker__time-spinner"
|
|
1279
|
+
@click=${() => this.changeTime("hour", -1, true)}
|
|
1280
|
+
>
|
|
1281
|
+
<svg
|
|
1282
|
+
width="10"
|
|
1283
|
+
height="10"
|
|
1284
|
+
viewBox="0 0 10 10"
|
|
1285
|
+
fill="none"
|
|
1286
|
+
>
|
|
1287
|
+
<path
|
|
1288
|
+
d="M2 4L5 7L8 4"
|
|
1289
|
+
stroke="currentColor"
|
|
1290
|
+
stroke-width="1.5"
|
|
1291
|
+
stroke-linecap="round"
|
|
1292
|
+
stroke-linejoin="round"
|
|
1293
|
+
/>
|
|
1294
|
+
</svg>
|
|
1295
|
+
</button>
|
|
1296
|
+
</div>
|
|
1297
|
+
</div>
|
|
1298
|
+
|
|
1299
|
+
<span class="date-picker__time-separator">:</span>
|
|
1300
|
+
|
|
1301
|
+
<div class="date-picker__time-input-group">
|
|
1302
|
+
<input
|
|
1303
|
+
type="number"
|
|
1304
|
+
class="date-picker__time-input"
|
|
1305
|
+
.value=${this.startMinute.toString().padStart(2, "0")}
|
|
1306
|
+
@input=${(e) => this.handleTimeInput(e, "minute", true)}
|
|
1307
|
+
@blur=${(e) => {
|
|
1308
|
+
const input = e.target;
|
|
1309
|
+
input.value = this.startMinute.toString().padStart(2, "0");
|
|
1310
|
+
}}
|
|
1311
|
+
min="0"
|
|
1312
|
+
max="59"
|
|
1313
|
+
/>
|
|
1314
|
+
<div class="date-picker__time-spinners">
|
|
1315
|
+
<button
|
|
1316
|
+
type="button"
|
|
1317
|
+
class="date-picker__time-spinner"
|
|
1318
|
+
@click=${() => this.changeTime("minute", 1, true)}
|
|
1319
|
+
>
|
|
1320
|
+
<svg
|
|
1321
|
+
width="10"
|
|
1322
|
+
height="10"
|
|
1323
|
+
viewBox="0 0 10 10"
|
|
1324
|
+
fill="none"
|
|
1325
|
+
>
|
|
1326
|
+
<path
|
|
1327
|
+
d="M2 6L5 3L8 6"
|
|
1328
|
+
stroke="currentColor"
|
|
1329
|
+
stroke-width="1.5"
|
|
1330
|
+
stroke-linecap="round"
|
|
1331
|
+
stroke-linejoin="round"
|
|
1332
|
+
/>
|
|
1333
|
+
</svg>
|
|
1334
|
+
</button>
|
|
1335
|
+
<button
|
|
1336
|
+
type="button"
|
|
1337
|
+
class="date-picker__time-spinner"
|
|
1338
|
+
@click=${() => this.changeTime("minute", -1, true)}
|
|
1339
|
+
>
|
|
1340
|
+
<svg
|
|
1341
|
+
width="10"
|
|
1342
|
+
height="10"
|
|
1343
|
+
viewBox="0 0 10 10"
|
|
1344
|
+
fill="none"
|
|
1345
|
+
>
|
|
1346
|
+
<path
|
|
1347
|
+
d="M2 4L5 7L8 4"
|
|
1348
|
+
stroke="currentColor"
|
|
1349
|
+
stroke-width="1.5"
|
|
1350
|
+
stroke-linecap="round"
|
|
1351
|
+
stroke-linejoin="round"
|
|
1352
|
+
/>
|
|
1353
|
+
</svg>
|
|
1354
|
+
</button>
|
|
1355
|
+
</div>
|
|
1356
|
+
</div>
|
|
1357
|
+
|
|
1358
|
+
<button
|
|
1359
|
+
type="button"
|
|
1360
|
+
class="date-picker__time-period"
|
|
1361
|
+
@click=${() => this.togglePeriod(true)}
|
|
1362
|
+
>
|
|
1363
|
+
${this.timePeriod}
|
|
1364
|
+
</button>
|
|
1365
|
+
</div>
|
|
1366
|
+
</div>
|
|
1367
|
+
|
|
1368
|
+
${this.range ? html`
|
|
1369
|
+
<span class="date-picker__separator">–</span>
|
|
1370
|
+
|
|
1371
|
+
<div class="date-picker__time-section">
|
|
1372
|
+
<div class="date-picker__time-inputs">
|
|
1373
|
+
<div class="date-picker__time-input-group">
|
|
1374
|
+
<input
|
|
1375
|
+
type="number"
|
|
1376
|
+
class="date-picker__time-input"
|
|
1377
|
+
.value=${this.endHour.toString().padStart(2, "0")}
|
|
1378
|
+
@input=${(e) => this.handleTimeInput(e, "hour", false)}
|
|
1379
|
+
@blur=${(e) => {
|
|
1380
|
+
const input = e.target;
|
|
1381
|
+
input.value = this.endHour.toString().padStart(2, "0");
|
|
1382
|
+
}}
|
|
1383
|
+
min="1"
|
|
1384
|
+
max="12"
|
|
1385
|
+
/>
|
|
1386
|
+
<div class="date-picker__time-spinners">
|
|
1387
|
+
<button
|
|
1388
|
+
type="button"
|
|
1389
|
+
class="date-picker__time-spinner"
|
|
1390
|
+
@click=${() => this.changeTime("hour", 1, false)}
|
|
1391
|
+
>
|
|
1392
|
+
<svg
|
|
1393
|
+
width="10"
|
|
1394
|
+
height="10"
|
|
1395
|
+
viewBox="0 0 10 10"
|
|
1396
|
+
fill="none"
|
|
1397
|
+
>
|
|
1398
|
+
<path
|
|
1399
|
+
d="M2 6L5 3L8 6"
|
|
1400
|
+
stroke="currentColor"
|
|
1401
|
+
stroke-width="1.5"
|
|
1402
|
+
stroke-linecap="round"
|
|
1403
|
+
stroke-linejoin="round"
|
|
1404
|
+
/>
|
|
1405
|
+
</svg>
|
|
1406
|
+
</button>
|
|
1407
|
+
<button
|
|
1408
|
+
type="button"
|
|
1409
|
+
class="date-picker__time-spinner"
|
|
1410
|
+
@click=${() => this.changeTime("hour", -1, false)}
|
|
1411
|
+
>
|
|
1412
|
+
<svg
|
|
1413
|
+
width="10"
|
|
1414
|
+
height="10"
|
|
1415
|
+
viewBox="0 0 10 10"
|
|
1416
|
+
fill="none"
|
|
1417
|
+
>
|
|
1418
|
+
<path
|
|
1419
|
+
d="M2 4L5 7L8 4"
|
|
1420
|
+
stroke="currentColor"
|
|
1421
|
+
stroke-width="1.5"
|
|
1422
|
+
stroke-linecap="round"
|
|
1423
|
+
stroke-linejoin="round"
|
|
1424
|
+
/>
|
|
1425
|
+
</svg>
|
|
1426
|
+
</button>
|
|
1427
|
+
</div>
|
|
1428
|
+
</div>
|
|
1429
|
+
|
|
1430
|
+
<span class="date-picker__time-separator">:</span>
|
|
1431
|
+
|
|
1432
|
+
<div class="date-picker__time-input-group">
|
|
1433
|
+
<input
|
|
1434
|
+
type="number"
|
|
1435
|
+
class="date-picker__time-input"
|
|
1436
|
+
.value=${this.endMinute.toString().padStart(2, "0")}
|
|
1437
|
+
@input=${(e) => this.handleTimeInput(
|
|
1438
|
+
e,
|
|
1439
|
+
"minute",
|
|
1440
|
+
false
|
|
1441
|
+
)}
|
|
1442
|
+
@blur=${(e) => {
|
|
1443
|
+
const input = e.target;
|
|
1444
|
+
input.value = this.endMinute.toString().padStart(2, "0");
|
|
1445
|
+
}}
|
|
1446
|
+
min="0"
|
|
1447
|
+
max="59"
|
|
1448
|
+
/>
|
|
1449
|
+
<div class="date-picker__time-spinners">
|
|
1450
|
+
<button
|
|
1451
|
+
type="button"
|
|
1452
|
+
class="date-picker__time-spinner"
|
|
1453
|
+
@click=${() => this.changeTime("minute", 1, false)}
|
|
1454
|
+
>
|
|
1455
|
+
<svg
|
|
1456
|
+
width="10"
|
|
1457
|
+
height="10"
|
|
1458
|
+
viewBox="0 0 10 10"
|
|
1459
|
+
fill="none"
|
|
1460
|
+
>
|
|
1461
|
+
<path
|
|
1462
|
+
d="M2 6L5 3L8 6"
|
|
1463
|
+
stroke="currentColor"
|
|
1464
|
+
stroke-width="1.5"
|
|
1465
|
+
stroke-linecap="round"
|
|
1466
|
+
stroke-linejoin="round"
|
|
1467
|
+
/>
|
|
1468
|
+
</svg>
|
|
1469
|
+
</button>
|
|
1470
|
+
<button
|
|
1471
|
+
type="button"
|
|
1472
|
+
class="date-picker__time-spinner"
|
|
1473
|
+
@click=${() => this.changeTime(
|
|
1474
|
+
"minute",
|
|
1475
|
+
-1,
|
|
1476
|
+
false
|
|
1477
|
+
)}
|
|
1478
|
+
>
|
|
1479
|
+
<svg
|
|
1480
|
+
width="10"
|
|
1481
|
+
height="10"
|
|
1482
|
+
viewBox="0 0 10 10"
|
|
1483
|
+
fill="none"
|
|
1484
|
+
>
|
|
1485
|
+
<path
|
|
1486
|
+
d="M2 4L5 7L8 4"
|
|
1487
|
+
stroke="currentColor"
|
|
1488
|
+
stroke-width="1.5"
|
|
1489
|
+
stroke-linecap="round"
|
|
1490
|
+
stroke-linejoin="round"
|
|
1491
|
+
/>
|
|
1492
|
+
</svg>
|
|
1493
|
+
</button>
|
|
1494
|
+
</div>
|
|
1495
|
+
</div>
|
|
1496
|
+
|
|
1497
|
+
<button
|
|
1498
|
+
type="button"
|
|
1499
|
+
class="date-picker__time-period"
|
|
1500
|
+
@click=${() => this.togglePeriod(false)}
|
|
1501
|
+
>
|
|
1502
|
+
${this.endTimePeriod}
|
|
1503
|
+
</button>
|
|
1504
|
+
</div>
|
|
1505
|
+
</div>
|
|
1506
|
+
` : ""}
|
|
1507
|
+
</div>
|
|
1508
|
+
`;
|
|
1509
|
+
}
|
|
1510
|
+
renderCalendarIcon() {
|
|
1511
|
+
return html`
|
|
1512
|
+
<svg
|
|
1513
|
+
slot="suffix"
|
|
1514
|
+
class="date-picker__icon"
|
|
1515
|
+
width="20"
|
|
1516
|
+
height="20"
|
|
1517
|
+
viewBox="0 0 24 24"
|
|
1518
|
+
fill="none"
|
|
1519
|
+
stroke="currentColor"
|
|
1520
|
+
stroke-width="2"
|
|
1521
|
+
>
|
|
1522
|
+
<rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect>
|
|
1523
|
+
<line x1="16" y1="2" x2="16" y2="6"></line>
|
|
1524
|
+
<line x1="8" y1="2" x2="8" y2="6"></line>
|
|
1525
|
+
<line x1="3" y1="10" x2="21" y2="10"></line>
|
|
1526
|
+
</svg>
|
|
1527
|
+
`;
|
|
1528
|
+
}
|
|
1529
|
+
renderCalendarContent() {
|
|
1530
|
+
return html`
|
|
1531
|
+
<div class="date-picker__dropdown" part="calendar">
|
|
1532
|
+
<div class="date-picker__content">
|
|
1533
|
+
${this.showPresets && this.filteredPresets.length > 0 ? html`
|
|
1534
|
+
<div class="date-picker__sidebar" part="sidebar">
|
|
1535
|
+
${this.filteredPresets.map(
|
|
1536
|
+
(preset) => html`
|
|
1537
|
+
<button
|
|
1538
|
+
type="button"
|
|
1539
|
+
class="date-picker__preset"
|
|
1540
|
+
@click=${() => this.selectPreset(preset)}
|
|
1541
|
+
>
|
|
1542
|
+
${preset.label}
|
|
1543
|
+
</button>
|
|
1544
|
+
`
|
|
1545
|
+
)}
|
|
1546
|
+
</div>
|
|
1547
|
+
` : ""}
|
|
1548
|
+
|
|
1549
|
+
<div class="date-picker__calendars">
|
|
1550
|
+
${this.renderCalendar(this.leftMonth, true)}
|
|
1551
|
+
${this.range ? this.renderCalendar(this.rightMonth, false) : ""}
|
|
1552
|
+
</div>
|
|
1553
|
+
</div>
|
|
1554
|
+
|
|
1555
|
+
${this.enableTime ? this.renderTimePicker() : ""}
|
|
1556
|
+
</div>
|
|
1557
|
+
`;
|
|
1558
|
+
}
|
|
1559
|
+
render() {
|
|
1560
|
+
const showSplitInputs = this.range && this.splitInputs;
|
|
1561
|
+
if (this.inline) {
|
|
1562
|
+
return html`
|
|
1563
|
+
<div
|
|
1564
|
+
class="date-picker date-picker--inline ${showSplitInputs ? "date-picker--split-inputs" : ""}"
|
|
1565
|
+
@click=${(e) => e.stopPropagation()}
|
|
1566
|
+
>
|
|
1567
|
+
${showSplitInputs ? html`
|
|
1568
|
+
<div class="date-picker__inputs">
|
|
1569
|
+
<terra-input
|
|
1570
|
+
.label=${this.startLabel || (this.label ? `${this.label} (Start)` : "Start Date")}
|
|
1571
|
+
.hideLabel=${this.hideLabel}
|
|
1572
|
+
.helpText=${this.startHelpText || this.helpText}
|
|
1573
|
+
.value=${this.getStartDateDisplayValue()}
|
|
1574
|
+
@terra-blur=${this.handleStartInputBlur}
|
|
1575
|
+
@keydown=${this.handleKeydown}
|
|
1576
|
+
placeholder=${this.startPlaceholder}
|
|
1577
|
+
name="start-date"
|
|
1578
|
+
>
|
|
1579
|
+
${this.renderCalendarIcon()}
|
|
1580
|
+
</terra-input>
|
|
1581
|
+
<terra-input
|
|
1582
|
+
.label=${this.endLabel || (this.label ? `${this.label} (End)` : "End Date")}
|
|
1583
|
+
.hideLabel=${this.hideLabel}
|
|
1584
|
+
.helpText=${this.endHelpText || this.helpText}
|
|
1585
|
+
.value=${this.getEndDateDisplayValue()}
|
|
1586
|
+
@terra-blur=${this.handleEndInputBlur}
|
|
1587
|
+
@keydown=${this.handleKeydown}
|
|
1588
|
+
placeholder=${this.endPlaceholder}
|
|
1589
|
+
name="end-date"
|
|
1590
|
+
>
|
|
1591
|
+
${this.renderCalendarIcon()}
|
|
1592
|
+
</terra-input>
|
|
1593
|
+
</div>
|
|
1594
|
+
` : html`
|
|
1595
|
+
<terra-input
|
|
1596
|
+
.label=${this.label}
|
|
1597
|
+
.hideLabel=${this.hideLabel}
|
|
1598
|
+
.helpText=${this.helpText}
|
|
1599
|
+
.value=${this.getDisplayValue()}
|
|
1600
|
+
placeholder=${this.placeholder}
|
|
1601
|
+
@terra-blur=${this.handleInputBlur}
|
|
1602
|
+
@keydown=${this.handleKeydown}
|
|
1603
|
+
name="date"
|
|
1604
|
+
>
|
|
1605
|
+
${this.renderCalendarIcon()}
|
|
1606
|
+
</terra-input>
|
|
1607
|
+
`}
|
|
1608
|
+
|
|
1609
|
+
<slot name="additional-text"></slot>
|
|
1610
|
+
|
|
1611
|
+
<div class="date-picker__dropdown-wrapper">
|
|
1612
|
+
<div
|
|
1613
|
+
class="date-picker__dropdown date-picker__dropdown--inline"
|
|
1614
|
+
part="calendar"
|
|
1615
|
+
>
|
|
1616
|
+
<div class="date-picker__content">
|
|
1617
|
+
${this.showPresets && this.filteredPresets.length > 0 ? html`
|
|
1618
|
+
<div
|
|
1619
|
+
class="date-picker__sidebar"
|
|
1620
|
+
part="sidebar"
|
|
1621
|
+
>
|
|
1622
|
+
${this.filteredPresets.map(
|
|
1623
|
+
(preset) => html`
|
|
1624
|
+
<button
|
|
1625
|
+
type="button"
|
|
1626
|
+
class="date-picker__preset"
|
|
1627
|
+
@click=${() => this.selectPreset(
|
|
1628
|
+
preset
|
|
1629
|
+
)}
|
|
1630
|
+
>
|
|
1631
|
+
${preset.label}
|
|
1632
|
+
</button>
|
|
1633
|
+
`
|
|
1634
|
+
)}
|
|
1635
|
+
</div>
|
|
1636
|
+
` : ""}
|
|
1637
|
+
|
|
1638
|
+
<div class="date-picker__calendars">
|
|
1639
|
+
${this.renderCalendar(this.leftMonth, true)}
|
|
1640
|
+
${this.range ? this.renderCalendar(this.rightMonth, false) : ""}
|
|
1641
|
+
</div>
|
|
1642
|
+
</div>
|
|
1643
|
+
|
|
1644
|
+
${this.enableTime ? this.renderTimePicker() : ""}
|
|
1645
|
+
</div>
|
|
1646
|
+
</div>
|
|
1647
|
+
</div>
|
|
1648
|
+
`;
|
|
1649
|
+
}
|
|
1650
|
+
return html`
|
|
1651
|
+
<div
|
|
1652
|
+
class="date-picker ${showSplitInputs ? "date-picker--split-inputs" : ""}"
|
|
1653
|
+
@click=${(e) => e.stopPropagation()}
|
|
1654
|
+
>
|
|
1655
|
+
${showSplitInputs ? html`
|
|
1656
|
+
<div class="date-picker__inputs">
|
|
1657
|
+
<terra-dropdown
|
|
1658
|
+
${ref(this.dropdownRef)}
|
|
1659
|
+
placement="bottom-start"
|
|
1660
|
+
distance="4"
|
|
1661
|
+
@terra-show=${this.handleDropdownShow}
|
|
1662
|
+
@terra-hide=${this.handleDropdownHide}
|
|
1663
|
+
hoist
|
|
1664
|
+
>
|
|
1665
|
+
<terra-input
|
|
1666
|
+
slot="trigger"
|
|
1667
|
+
.label=${this.startLabel || (this.label ? `${this.label} (Start)` : "Start Date")}
|
|
1668
|
+
.hideLabel=${this.hideLabel}
|
|
1669
|
+
.helpText=${this.startHelpText || this.helpText}
|
|
1670
|
+
.value=${this.getStartDateDisplayValue()}
|
|
1671
|
+
placeholder=${this.startPlaceholder}
|
|
1672
|
+
@terra-blur=${this.handleStartInputBlur}
|
|
1673
|
+
@keydown=${this.handleKeydown}
|
|
1674
|
+
name="start-date"
|
|
1675
|
+
>
|
|
1676
|
+
${this.renderCalendarIcon()}
|
|
1677
|
+
</terra-input>
|
|
1678
|
+
${this.renderCalendarContent()}
|
|
1679
|
+
</terra-dropdown>
|
|
1680
|
+
<terra-dropdown
|
|
1681
|
+
placement="bottom-start"
|
|
1682
|
+
distance="4"
|
|
1683
|
+
@terra-show=${this.handleDropdownShow}
|
|
1684
|
+
@terra-hide=${this.handleDropdownHide}
|
|
1685
|
+
hoist
|
|
1686
|
+
>
|
|
1687
|
+
<terra-input
|
|
1688
|
+
slot="trigger"
|
|
1689
|
+
.label=${this.endLabel || (this.label ? `${this.label} (End)` : "End Date")}
|
|
1690
|
+
.hideLabel=${this.hideLabel}
|
|
1691
|
+
.helpText=${this.endHelpText || this.helpText}
|
|
1692
|
+
.value=${this.getEndDateDisplayValue()}
|
|
1693
|
+
placeholder=${this.endPlaceholder}
|
|
1694
|
+
@terra-blur=${this.handleEndInputBlur}
|
|
1695
|
+
@keydown=${this.handleKeydown}
|
|
1696
|
+
name="end-date"
|
|
1697
|
+
>
|
|
1698
|
+
${this.renderCalendarIcon()}
|
|
1699
|
+
</terra-input>
|
|
1700
|
+
${this.renderCalendarContent()}
|
|
1701
|
+
</terra-dropdown>
|
|
1702
|
+
</div>
|
|
1703
|
+
` : html`
|
|
1704
|
+
<terra-dropdown
|
|
1705
|
+
${ref(this.dropdownRef)}
|
|
1706
|
+
placement="bottom-start"
|
|
1707
|
+
distance="4"
|
|
1708
|
+
@terra-show=${this.handleDropdownShow}
|
|
1709
|
+
@terra-hide=${this.handleDropdownHide}
|
|
1710
|
+
hoist
|
|
1711
|
+
>
|
|
1712
|
+
<terra-input
|
|
1713
|
+
slot="trigger"
|
|
1714
|
+
.label=${this.label}
|
|
1715
|
+
.hideLabel=${this.hideLabel}
|
|
1716
|
+
.helpText=${this.helpText}
|
|
1717
|
+
.value=${this.getDisplayValue()}
|
|
1718
|
+
placeholder=${this.placeholder}
|
|
1719
|
+
@terra-blur=${this.handleInputBlur}
|
|
1720
|
+
@keydown=${this.handleKeydown}
|
|
1721
|
+
name="date"
|
|
1722
|
+
>
|
|
1723
|
+
${this.renderCalendarIcon()}
|
|
1724
|
+
</terra-input>
|
|
1725
|
+
${this.renderCalendarContent()}
|
|
1726
|
+
</terra-dropdown>
|
|
1727
|
+
`}
|
|
1728
|
+
</div>
|
|
1729
|
+
`;
|
|
1730
|
+
}
|
|
1731
|
+
};
|
|
1732
|
+
TerraDatePicker.styles = [component_styles_default, date_picker_styles_default];
|
|
1733
|
+
TerraDatePicker.dependencies = {
|
|
1734
|
+
"terra-button": TerraButton,
|
|
1735
|
+
"terra-input": TerraInput,
|
|
1736
|
+
"terra-dropdown": TerraDropdown
|
|
1737
|
+
};
|
|
1738
|
+
__decorateClass([
|
|
1739
|
+
property()
|
|
1740
|
+
], TerraDatePicker.prototype, "id", 2);
|
|
1741
|
+
__decorateClass([
|
|
1742
|
+
property({ type: Boolean, reflect: true })
|
|
1743
|
+
], TerraDatePicker.prototype, "range", 2);
|
|
1744
|
+
__decorateClass([
|
|
1745
|
+
property({ attribute: "min-date", reflect: true })
|
|
1746
|
+
], TerraDatePicker.prototype, "minDate", 2);
|
|
1747
|
+
__decorateClass([
|
|
1748
|
+
property({ attribute: "max-date", reflect: true })
|
|
1749
|
+
], TerraDatePicker.prototype, "maxDate", 2);
|
|
1750
|
+
__decorateClass([
|
|
1751
|
+
property({ attribute: "start-date", reflect: true })
|
|
1752
|
+
], TerraDatePicker.prototype, "startDate", 2);
|
|
1753
|
+
__decorateClass([
|
|
1754
|
+
property({ attribute: "end-date", reflect: true })
|
|
1755
|
+
], TerraDatePicker.prototype, "endDate", 2);
|
|
1756
|
+
__decorateClass([
|
|
1757
|
+
property({ attribute: "hide-label", type: Boolean })
|
|
1758
|
+
], TerraDatePicker.prototype, "hideLabel", 2);
|
|
1759
|
+
__decorateClass([
|
|
1760
|
+
property()
|
|
1761
|
+
], TerraDatePicker.prototype, "label", 2);
|
|
1762
|
+
__decorateClass([
|
|
1763
|
+
property({ attribute: "help-text" })
|
|
1764
|
+
], TerraDatePicker.prototype, "helpText", 2);
|
|
1765
|
+
__decorateClass([
|
|
1766
|
+
property({ attribute: "start-help-text" })
|
|
1767
|
+
], TerraDatePicker.prototype, "startHelpText", 2);
|
|
1768
|
+
__decorateClass([
|
|
1769
|
+
property({ attribute: "end-help-text" })
|
|
1770
|
+
], TerraDatePicker.prototype, "endHelpText", 2);
|
|
1771
|
+
__decorateClass([
|
|
1772
|
+
property({ attribute: "start-label" })
|
|
1773
|
+
], TerraDatePicker.prototype, "startLabel", 2);
|
|
1774
|
+
__decorateClass([
|
|
1775
|
+
property({ attribute: "end-label" })
|
|
1776
|
+
], TerraDatePicker.prototype, "endLabel", 2);
|
|
1777
|
+
__decorateClass([
|
|
1778
|
+
property({ type: Boolean, attribute: "show-presets" })
|
|
1779
|
+
], TerraDatePicker.prototype, "showPresets", 2);
|
|
1780
|
+
__decorateClass([
|
|
1781
|
+
property({ type: Array })
|
|
1782
|
+
], TerraDatePicker.prototype, "presets", 2);
|
|
1783
|
+
__decorateClass([
|
|
1784
|
+
property({ type: Boolean, attribute: "enable-time" })
|
|
1785
|
+
], TerraDatePicker.prototype, "enableTime", 2);
|
|
1786
|
+
__decorateClass([
|
|
1787
|
+
property({ attribute: "display-format" })
|
|
1788
|
+
], TerraDatePicker.prototype, "displayFormat", 2);
|
|
1789
|
+
__decorateClass([
|
|
1790
|
+
property({ type: Boolean })
|
|
1791
|
+
], TerraDatePicker.prototype, "inline", 2);
|
|
1792
|
+
__decorateClass([
|
|
1793
|
+
property({ type: Boolean, attribute: "split-inputs" })
|
|
1794
|
+
], TerraDatePicker.prototype, "splitInputs", 2);
|
|
1795
|
+
__decorateClass([
|
|
1796
|
+
property()
|
|
1797
|
+
], TerraDatePicker.prototype, "placeholder", 2);
|
|
1798
|
+
__decorateClass([
|
|
1799
|
+
property()
|
|
1800
|
+
], TerraDatePicker.prototype, "startPlaceholder", 2);
|
|
1801
|
+
__decorateClass([
|
|
1802
|
+
property()
|
|
1803
|
+
], TerraDatePicker.prototype, "endPlaceholder", 2);
|
|
1804
|
+
__decorateClass([
|
|
1805
|
+
property({ reflect: true })
|
|
1806
|
+
], TerraDatePicker.prototype, "role", 2);
|
|
1807
|
+
__decorateClass([
|
|
1808
|
+
property({ reflect: true, attribute: "aria-label" })
|
|
1809
|
+
], TerraDatePicker.prototype, "ariaLabel", 2);
|
|
1810
|
+
__decorateClass([
|
|
1811
|
+
state()
|
|
1812
|
+
], TerraDatePicker.prototype, "isOpen", 2);
|
|
1813
|
+
__decorateClass([
|
|
1814
|
+
state()
|
|
1815
|
+
], TerraDatePicker.prototype, "leftMonth", 2);
|
|
1816
|
+
__decorateClass([
|
|
1817
|
+
state()
|
|
1818
|
+
], TerraDatePicker.prototype, "rightMonth", 2);
|
|
1819
|
+
__decorateClass([
|
|
1820
|
+
state()
|
|
1821
|
+
], TerraDatePicker.prototype, "selectedStart", 2);
|
|
1822
|
+
__decorateClass([
|
|
1823
|
+
state()
|
|
1824
|
+
], TerraDatePicker.prototype, "selectedEnd", 2);
|
|
1825
|
+
__decorateClass([
|
|
1826
|
+
state()
|
|
1827
|
+
], TerraDatePicker.prototype, "hoverDate", 2);
|
|
1828
|
+
__decorateClass([
|
|
1829
|
+
state()
|
|
1830
|
+
], TerraDatePicker.prototype, "isSelectingRange", 2);
|
|
1831
|
+
__decorateClass([
|
|
1832
|
+
state()
|
|
1833
|
+
], TerraDatePicker.prototype, "showLeftMonthDropdown", 2);
|
|
1834
|
+
__decorateClass([
|
|
1835
|
+
state()
|
|
1836
|
+
], TerraDatePicker.prototype, "showRightMonthDropdown", 2);
|
|
1837
|
+
__decorateClass([
|
|
1838
|
+
state()
|
|
1839
|
+
], TerraDatePicker.prototype, "startHour", 2);
|
|
1840
|
+
__decorateClass([
|
|
1841
|
+
state()
|
|
1842
|
+
], TerraDatePicker.prototype, "startMinute", 2);
|
|
1843
|
+
__decorateClass([
|
|
1844
|
+
state()
|
|
1845
|
+
], TerraDatePicker.prototype, "endHour", 2);
|
|
1846
|
+
__decorateClass([
|
|
1847
|
+
state()
|
|
1848
|
+
], TerraDatePicker.prototype, "endMinute", 2);
|
|
1849
|
+
__decorateClass([
|
|
1850
|
+
state()
|
|
1851
|
+
], TerraDatePicker.prototype, "timePeriod", 2);
|
|
1852
|
+
__decorateClass([
|
|
1853
|
+
state()
|
|
1854
|
+
], TerraDatePicker.prototype, "endTimePeriod", 2);
|
|
1855
|
+
__decorateClass([
|
|
1856
|
+
state()
|
|
1857
|
+
], TerraDatePicker.prototype, "selectedDates", 2);
|
|
1858
|
+
__decorateClass([
|
|
1859
|
+
query(".date-picker__dropdown")
|
|
1860
|
+
], TerraDatePicker.prototype, "dropdown", 2);
|
|
1861
|
+
__decorateClass([
|
|
1862
|
+
watch("inline")
|
|
1863
|
+
], TerraDatePicker.prototype, "handleInlineChange", 1);
|
|
1864
|
+
__decorateClass([
|
|
1865
|
+
watch(["startDate", "endDate"])
|
|
1866
|
+
], TerraDatePicker.prototype, "handleStartEndDateChange", 1);
|
|
1867
|
+
|
|
1868
|
+
export {
|
|
1869
|
+
TerraDatePicker
|
|
1870
|
+
};
|