@nasa-terra/components 0.0.182 → 0.0.183
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.2AS6WUZS.js +29 -0
- package/cdn/chunks/chunk.2CIE7IOG.js +29 -0
- package/cdn/chunks/chunk.2CNZWFT5.js +19 -0
- package/cdn/chunks/chunk.2TQJ5HVK.js +49 -0
- package/cdn/chunks/chunk.2XPI5ZCA.js +161 -0
- package/cdn/chunks/chunk.33SOLQSX.js +32 -0
- package/cdn/chunks/chunk.3EOK7KZK.js +35 -0
- package/cdn/chunks/chunk.3JNSLLZ5.js +32 -0
- package/cdn/chunks/chunk.3JR4TRKV.js +19 -0
- package/cdn/chunks/chunk.3LOWQYPR.js +29 -0
- package/cdn/chunks/chunk.3Y7HZ5CS.js +110 -0
- package/cdn/chunks/chunk.43FFXGVJ.js +29 -0
- package/cdn/chunks/chunk.4CJXLCR7.js +19 -0
- package/cdn/chunks/chunk.4CZYVNSX.js +93 -0
- package/cdn/chunks/chunk.4EE6CRDG.js +29 -0
- package/cdn/chunks/chunk.4HNLIBIC.js +29 -0
- package/cdn/chunks/chunk.4SLTI4NH.js +19 -0
- package/cdn/chunks/chunk.4SOCYFN2.js +29 -0
- package/cdn/chunks/chunk.4ULHN2N6.js +19 -0
- package/cdn/chunks/chunk.566MISYA.js +264 -0
- package/cdn/chunks/chunk.5ASOYLNL.js +155 -0
- package/cdn/chunks/chunk.5DNWXD2R.js +136 -0
- package/cdn/chunks/chunk.5H4YUN2X.js +310 -0
- package/cdn/chunks/chunk.5HANDN7A.js +29 -0
- package/cdn/chunks/chunk.5POQGUPG.js +19 -0
- package/cdn/chunks/chunk.5RPW2XYY.js +37 -0
- package/cdn/chunks/chunk.63OVZYG7.js +134 -0
- package/cdn/chunks/chunk.6BDQJCOC.js +599 -0
- package/cdn/chunks/chunk.6CRFKWPZ.js +190 -0
- package/cdn/chunks/chunk.6DFQCJVE.js +29 -0
- package/cdn/chunks/chunk.6FVRJALX.js +472 -0
- package/cdn/chunks/chunk.6KDBUM42.js +473 -0
- package/cdn/chunks/chunk.6NM2KLLT.js +19 -0
- package/cdn/chunks/chunk.6R43ODOG.js +113 -0
- package/cdn/chunks/chunk.74I3ME47.js +71 -0
- package/cdn/chunks/chunk.74SL2FYL.js +893 -0
- package/cdn/chunks/chunk.766SOYIM.js +662 -0
- package/cdn/chunks/chunk.7ELAGMUE.js +132 -0
- package/cdn/chunks/chunk.A5ZDZCE6.js +1975 -0
- package/cdn/chunks/chunk.A6H5DL6W.js +19 -0
- package/cdn/chunks/chunk.AJDY7UPZ.js +32 -0
- package/cdn/chunks/chunk.AJN4U2TO.js +19 -0
- package/cdn/chunks/chunk.APIGOBOW.js +904 -0
- package/cdn/chunks/chunk.ASAMKBD3.js +359 -0
- package/cdn/chunks/chunk.ASJLND3B.js +77 -0
- package/cdn/chunks/chunk.AVVWJ6SY.js +288 -0
- package/cdn/chunks/chunk.AYVTEUY3.js +32 -0
- package/cdn/chunks/chunk.B2V7PU6G.js +19 -0
- package/cdn/chunks/chunk.B3GL5T3P.js +19 -0
- package/cdn/chunks/chunk.B3GT45NN.js +104 -0
- package/cdn/chunks/chunk.B75QW3II.js +60 -0
- package/cdn/chunks/chunk.BANAIRAU.js +19 -0
- package/cdn/chunks/chunk.BO5DEC35.js +2547 -0
- package/cdn/chunks/chunk.BP4GM2ZJ.js +99 -0
- package/cdn/chunks/chunk.BZF5ICON.js +29 -0
- package/cdn/chunks/chunk.C5ZCLRGB.js +915 -0
- package/cdn/chunks/chunk.CDM27ZGA.js +29 -0
- package/cdn/chunks/chunk.CQQYWQQB.js +19 -0
- package/cdn/chunks/chunk.CUOWEOKP.js +37 -0
- package/cdn/chunks/chunk.CYOBHXOZ.js +33 -0
- package/cdn/chunks/chunk.CZNQL7BP.js +35 -0
- package/cdn/chunks/chunk.D7PEGJUS.js +238 -0
- package/cdn/chunks/chunk.DBCVGZA3.js +19 -0
- package/cdn/chunks/chunk.DFVF5OWU.js +60 -0
- package/cdn/chunks/chunk.DHBWCYOW.js +29 -0
- package/cdn/chunks/chunk.DO3FQ6WI.js +30 -0
- package/cdn/chunks/chunk.DOOT2A6T.js +19 -0
- package/cdn/chunks/chunk.DQJZWPCV.js +524 -0
- package/cdn/chunks/chunk.DSHBKBGP.js +19 -0
- package/cdn/chunks/chunk.DTN3RBJB.js +92 -0
- package/cdn/chunks/chunk.DVF5GR56.js +32 -0
- package/cdn/chunks/chunk.DXBX756W.js +47 -0
- package/cdn/chunks/chunk.DXLEJERC.js +19 -0
- package/cdn/chunks/chunk.DXM34ISW.js +19 -0
- package/cdn/chunks/chunk.E3AZMAYY.js +19 -0
- package/cdn/chunks/chunk.E67SZSGB.js +82 -0
- package/cdn/chunks/chunk.E7SY6PUD.js +29 -0
- package/cdn/chunks/chunk.EDXN664P.js +19 -0
- package/cdn/chunks/chunk.EHVSLO3I.js +62 -0
- package/cdn/chunks/chunk.EKO4CGYY.js +106 -0
- package/cdn/chunks/chunk.EXR2QAGT.js +19 -0
- package/cdn/chunks/chunk.EZPN23JK.js +545 -0
- package/cdn/chunks/chunk.F56CMAB4.js +32 -0
- package/cdn/chunks/chunk.F7QE3QNK.js +93 -0
- package/cdn/chunks/chunk.FEUWT4W2.js +19 -0
- package/cdn/chunks/chunk.FS6WGAUU.js +19 -0
- package/cdn/chunks/chunk.FZQAKZQI.js +29 -0
- package/cdn/chunks/chunk.G46E2O35.js +19 -0
- package/cdn/chunks/chunk.G6YZ5W4A.js +19 -0
- package/cdn/chunks/chunk.G7ELIWUE.js +19 -0
- package/cdn/chunks/chunk.GAXGHXFH.js +41 -0
- package/cdn/chunks/chunk.GEZGFDSS.js +19 -0
- package/cdn/chunks/chunk.GIWOP3UW.js +29 -0
- package/cdn/chunks/chunk.GL3LJMSL.js +29 -0
- package/cdn/chunks/chunk.GLCNULFA.js +19 -0
- package/cdn/chunks/chunk.GPDSVAGQ.js +32 -0
- package/cdn/chunks/chunk.HIAOBSYV.js +32 -0
- package/cdn/chunks/chunk.I3GEHBHS.js +357 -0
- package/cdn/chunks/chunk.I7BUNK2B.js +19 -0
- package/cdn/chunks/chunk.IFERBNDR.js +188 -0
- package/cdn/chunks/chunk.IGHS3XKC.js +224 -0
- package/cdn/chunks/chunk.IIZMGL3G.js +29 -0
- package/cdn/chunks/chunk.ILMARGQY.js +231 -0
- package/cdn/chunks/chunk.IMUWLWHM.js +19 -0
- package/cdn/chunks/chunk.IOSEM4GK.js +1184 -0
- package/cdn/chunks/chunk.IRQC53V4.js +32 -0
- package/cdn/chunks/chunk.IVRUVORS.js +19 -0
- package/cdn/chunks/chunk.J23K74CG.js +19 -0
- package/cdn/chunks/chunk.J5XICB7I.js +19 -0
- package/cdn/chunks/chunk.JHHGFB7X.js +658 -0
- package/cdn/chunks/chunk.JNV54ZNC.js +19 -0
- package/cdn/chunks/chunk.JOS5IKOC.js +19 -0
- package/cdn/chunks/chunk.JQHICCZK.js +19 -0
- package/cdn/chunks/chunk.JS5OOQLY.js +125 -0
- package/cdn/chunks/chunk.JV7VHRLT.js +19 -0
- package/cdn/chunks/chunk.JX2Y6Z34.js +19 -0
- package/cdn/chunks/chunk.KB35OBFX.js +32 -0
- package/cdn/chunks/chunk.KBRY6JIH.js +19 -0
- package/cdn/chunks/chunk.KCRHB67B.js +151 -0
- package/cdn/chunks/chunk.KGPXUKRP.js +19 -0
- package/cdn/chunks/chunk.KJF2UI4Q.js +19 -0
- package/cdn/chunks/chunk.KPWCVIQF.js +29 -0
- package/cdn/chunks/chunk.KTAPQACH.js +329 -0
- package/cdn/chunks/chunk.KYAMXBHI.js +293 -0
- package/cdn/chunks/chunk.L6KUHW4Z.js +234 -0
- package/cdn/chunks/chunk.LAMOQP6T.js +19 -0
- package/cdn/chunks/chunk.LFD6W22R.js +56075 -0
- package/cdn/chunks/chunk.LMKGGL3V.js +19 -0
- package/cdn/chunks/chunk.LOB4X3EO.js +29 -0
- package/cdn/chunks/chunk.LRZIT4M2.js +157 -0
- package/cdn/chunks/chunk.M3VHKZCI.js +68 -0
- package/cdn/chunks/chunk.MAHUWVEN.js +279 -0
- package/cdn/chunks/chunk.MENUUFNT.js +19 -0
- package/cdn/chunks/chunk.MX4WCCA3.js +19 -0
- package/cdn/chunks/chunk.MY76QRW7.js +19 -0
- package/cdn/chunks/chunk.N4WZUEQD.js +205 -0
- package/cdn/chunks/chunk.NMV3RTZV.js +33 -0
- package/cdn/chunks/chunk.O3TDHDAD.js +19 -0
- package/cdn/chunks/chunk.OEJEWV5N.js +33 -0
- package/cdn/chunks/chunk.OEYI4JXU.js +83 -0
- package/cdn/chunks/chunk.OFVVAI2A.js +610 -0
- package/cdn/chunks/chunk.OK7IYZFB.js +39 -0
- package/cdn/chunks/chunk.OLVJ7CMW.js +19 -0
- package/cdn/chunks/chunk.OS3U4CHQ.js +19 -0
- package/cdn/chunks/chunk.OSTI4KON.js +78 -0
- package/cdn/chunks/chunk.OV64SDTX.js +493 -0
- package/cdn/chunks/chunk.OZAWL2DR.js +477 -0
- package/cdn/chunks/chunk.P2KCHE6P.js +19 -0
- package/cdn/chunks/chunk.P2ZB2D2Q.js +19 -0
- package/cdn/chunks/chunk.P3OBB2HK.js +514 -0
- package/cdn/chunks/chunk.P3RFJG6G.js +35 -0
- package/cdn/chunks/chunk.P4R6EFHW.js +34 -0
- package/cdn/chunks/chunk.PDGNNEFS.js +33 -0
- package/cdn/chunks/chunk.PN2VGRDE.js +29 -0
- package/cdn/chunks/chunk.POB5F7V2.js +34 -0
- package/cdn/chunks/chunk.PQWIGOTL.js +19 -0
- package/cdn/chunks/chunk.Q2NKAJ3H.js +19 -0
- package/cdn/chunks/chunk.Q3YXI3TS.js +29 -0
- package/cdn/chunks/chunk.Q4GJ4KAR.js +36 -0
- package/cdn/chunks/chunk.Q5YUHLBA.js +29 -0
- package/cdn/chunks/chunk.QB76WME7.js +19 -0
- package/cdn/chunks/chunk.QKKAIJRP.js +3451 -0
- package/cdn/chunks/chunk.QRJXGNJO.js +29 -0
- package/cdn/chunks/chunk.RG573SSK.js +19 -0
- package/cdn/chunks/chunk.RHPDH4JE.js +538 -0
- package/cdn/chunks/chunk.RISDH34C.js +350 -0
- package/cdn/chunks/chunk.RQNNTE5L.js +74 -0
- package/cdn/chunks/chunk.SMF3DMEV.js +230 -0
- package/cdn/chunks/chunk.SPL3ULRC.js +616 -0
- package/cdn/chunks/chunk.SQGI3VEP.js +19 -0
- package/cdn/chunks/chunk.SSFJOVLO.js +165 -0
- package/cdn/chunks/chunk.STCVB4X6.js +2244 -0
- package/cdn/chunks/chunk.SXFAVBZK.js +19 -0
- package/cdn/chunks/chunk.TCMULI7G.js +36 -0
- package/cdn/chunks/chunk.TJDCFLIT.js +29 -0
- package/cdn/chunks/chunk.TKIBY3W7.js +33 -0
- package/cdn/chunks/chunk.TOST4JZX.js +32 -0
- package/cdn/chunks/chunk.U4LSJVTA.js +32 -0
- package/cdn/chunks/chunk.U5FOWXMQ.js +29 -0
- package/cdn/chunks/chunk.U6OWM4MQ.js +36 -0
- package/cdn/chunks/chunk.UEETRSEK.js +372 -0
- package/cdn/chunks/chunk.UK6CJDY5.js +123 -0
- package/cdn/chunks/chunk.UN23IPKT.js +29 -0
- package/cdn/chunks/chunk.UN67OTZN.js +19 -0
- package/cdn/chunks/chunk.UNCOYZNO.js +134 -0
- package/cdn/chunks/chunk.UXTL4YHR.js +19 -0
- package/cdn/chunks/chunk.VF3FBL2Q.js +19 -0
- package/cdn/chunks/chunk.VGPCJC7D.js +35 -0
- package/cdn/chunks/chunk.VHMFX3ID.js +443 -0
- package/cdn/chunks/chunk.VMJKUAMR.js +276 -0
- package/cdn/chunks/chunk.VONWFPUD.js +36 -0
- package/cdn/chunks/chunk.W4VXG6DB.js +99 -0
- package/cdn/chunks/chunk.WDWU7JKE.js +29 -0
- package/cdn/chunks/chunk.WG4VDVEI.js +81 -0
- package/cdn/chunks/chunk.WMTIVWN2.js +29 -0
- package/cdn/chunks/chunk.WSKEJ3YX.js +1214 -0
- package/cdn/chunks/chunk.X76U34QG.js +32 -0
- package/cdn/chunks/chunk.XC7OZOQS.js +189 -0
- package/cdn/chunks/chunk.XDZTKWSB.js +19 -0
- package/cdn/chunks/chunk.XQEJCJUO.js +278 -0
- package/cdn/chunks/chunk.XZOFMTCK.js +32 -0
- package/cdn/chunks/chunk.Y2SCAJDF.js +86 -0
- package/cdn/chunks/chunk.Y5YXI6CB.js +259 -0
- package/cdn/chunks/chunk.Y6VOXEBD.js +285 -0
- package/cdn/chunks/chunk.YGSM66SH.js +19 -0
- package/cdn/chunks/chunk.YP2MQECK.js +29 -0
- package/cdn/chunks/chunk.Z2XUVGS7.js +29 -0
- package/cdn/chunks/chunk.ZFNMKQMX.js +34 -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 +7 -7
- package/cdn/components/button/button.js +8 -8
- 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.js +29 -29
- package/cdn/components/data-access/data-access.js +30 -30
- 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.js +38 -38
- package/cdn/components/data-rods/data-rods.js +39 -39
- package/cdn/components/data-subsetter/data-subsetter.component.js +40 -40
- package/cdn/components/data-subsetter/data-subsetter.js +41 -41
- package/cdn/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
- package/cdn/components/data-subsetter-history/data-subsetter-history.component.js +41 -41
- package/cdn/components/data-subsetter-history/data-subsetter-history.js +42 -42
- package/cdn/components/date-picker/date-picker.component.js +14 -14
- package/cdn/components/date-picker/date-picker.js +15 -15
- 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 +9 -9
- package/cdn/components/dialog/dialog.js +10 -10
- 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.js +15 -15
- package/cdn/components/earthdata-login/earthdata-login.js +16 -16
- package/cdn/components/file-upload/file-upload.component.js +2 -2
- package/cdn/components/file-upload/file-upload.js +3 -3
- package/cdn/components/harmony-history/harmony-history.component.js +13 -13
- package/cdn/components/harmony-history/harmony-history.js +14 -14
- 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 +12 -12
- package/cdn/components/login/login.js +13 -13
- package/cdn/components/map/map.component.js +4 -4
- package/cdn/components/map/map.js +5 -5
- 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.js +12 -12
- package/cdn/components/plot-toolbar/plot-toolbar.js +13 -13
- 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 +2 -2
- package/cdn/components/skeleton/skeleton.js +3 -3
- 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.js +15 -15
- package/cdn/components/spatial-picker/spatial-picker.js +16 -16
- 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.d.ts +7 -4
- package/cdn/components/time-average-map/time-average-map.component.js +24 -24
- package/cdn/components/time-average-map/time-average-map.controller.js +5 -5
- package/cdn/components/time-average-map/time-average-map.js +25 -25
- package/cdn/components/time-series/time-series.component.d.ts +7 -4
- package/cdn/components/time-series/time-series.component.js +24 -24
- package/cdn/components/time-series/time-series.controller.js +5 -5
- package/cdn/components/time-series/time-series.js +25 -25
- 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 +15 -15
- package/cdn/components/variable-combobox/variable-combobox.controller.js +4 -4
- package/cdn/components/variable-combobox/variable-combobox.js +16 -16
- package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +11 -11
- package/cdn/components/variable-keyword-search/variable-keyword-search.js +12 -12
- package/cdn/custom-elements.json +953 -919
- 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 +8 -8
- 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 +30 -30
- package/cdn/react/data-grid/index.js +6 -6
- package/cdn/react/data-rods/index.js +39 -39
- package/cdn/react/data-subsetter/index.js +41 -41
- package/cdn/react/data-subsetter-history/index.js +42 -42
- package/cdn/react/date-picker/index.js +15 -15
- package/cdn/react/date-range-slider/index.js +3 -3
- package/cdn/react/dialog/index.js +10 -10
- package/cdn/react/divider/index.js +3 -3
- package/cdn/react/dropdown/index.js +4 -4
- package/cdn/react/earthdata-login/index.js +16 -16
- package/cdn/react/file-upload/index.js +3 -3
- package/cdn/react/harmony-history/index.js +14 -14
- package/cdn/react/icon/index.js +4 -4
- package/cdn/react/index.d.ts +2 -2
- package/cdn/react/index.js +160 -160
- package/cdn/react/input/index.js +9 -9
- package/cdn/react/loader/index.js +3 -3
- package/cdn/react/login/index.js +13 -13
- package/cdn/react/map/index.js +5 -5
- 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 +13 -13
- 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 +3 -3
- package/cdn/react/slider/index.js +3 -3
- package/cdn/react/spatial-picker/index.js +16 -16
- 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 +25 -25
- package/cdn/react/time-series/index.js +25 -25
- 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 +16 -16
- package/cdn/react/variable-keyword-search/index.js +12 -12
- package/cdn/terra-ui-components.js +154 -154
- package/cdn/types/vue/index.d.ts +177 -175
- package/cdn/vscode.html-custom-data.json +139 -129
- package/cdn/web-types.json +447 -427
- package/dist/chunks/chunk.22W5VSIY.js +300 -0
- package/dist/chunks/chunk.2DIJRXPF.js +1 -0
- package/dist/chunks/chunk.2EHTEQEK.js +1 -0
- package/dist/chunks/chunk.2SOE5WNN.js +14 -0
- package/dist/chunks/chunk.2W34XHFF.js +11 -0
- package/dist/chunks/chunk.33VMPVG2.js +1 -0
- package/dist/chunks/chunk.3GCT7G6D.js +43 -0
- package/dist/chunks/chunk.3IW7XQBX.js +23 -0
- package/dist/chunks/chunk.3IZSVAXU.js +25 -0
- package/dist/chunks/chunk.3RFZA4SH.js +1 -0
- package/dist/chunks/chunk.3SR7XGKF.js +1 -0
- package/dist/chunks/chunk.3TSEY3AF.js +1 -0
- package/dist/chunks/chunk.3U5SCBFB.js +157 -0
- package/dist/chunks/chunk.3UVGUD3M.js +1 -0
- package/dist/chunks/chunk.3Z6OXGXC.js +1157 -0
- package/dist/chunks/chunk.43DBTB3I.js +1 -0
- package/dist/chunks/chunk.4HRYGPYC.js +43 -0
- package/dist/chunks/chunk.4IDFGJ6O.js +1 -0
- package/dist/chunks/chunk.4KJLSJQR.js +1 -0
- package/dist/chunks/chunk.4LJPYOM5.js +1 -0
- package/dist/chunks/chunk.5AYJI4B4.js +1 -0
- package/dist/chunks/chunk.5MDDGUNE.js +1 -0
- package/dist/chunks/chunk.5OC7O3C3.js +1 -0
- package/dist/chunks/chunk.5S4BLGYP.js +26 -0
- package/dist/chunks/chunk.5WRLVWFJ.js +1 -0
- package/dist/chunks/chunk.5WSL5UOZ.js +1 -0
- package/dist/chunks/chunk.5WVQGGNV.js +1 -0
- package/dist/chunks/chunk.67N7RTFT.js +1 -0
- package/dist/chunks/chunk.6FTATTNJ.js +1 -0
- package/dist/chunks/chunk.6JHVQ4AO.js +4 -0
- package/dist/chunks/chunk.6POVTTBY.js +1 -0
- package/dist/chunks/chunk.7FDFZHRO.js +1 -0
- package/dist/chunks/chunk.7H4CDMA5.js +1 -0
- package/dist/chunks/chunk.7YD7ME6X.js +5 -0
- package/dist/chunks/chunk.A2QUAWVK.js +1 -0
- package/dist/chunks/chunk.A2XLEPQ6.js +48 -0
- package/dist/chunks/chunk.A7E4OVUN.js +1 -0
- package/dist/chunks/chunk.AACXV4BZ.js +1 -0
- package/dist/chunks/chunk.ABABOXRW.js +1 -0
- package/dist/chunks/chunk.AKA3526D.js +99 -0
- package/dist/chunks/chunk.AKEEJ2UZ.js +1 -0
- package/dist/chunks/chunk.AN72KCBX.js +30 -0
- package/dist/chunks/chunk.AOVH5LYA.js +1 -0
- package/dist/chunks/chunk.BFCD73R4.js +30 -0
- package/dist/chunks/chunk.BFQUKRQ7.js +1 -0
- package/dist/chunks/chunk.BINRT4NX.js +33 -0
- package/dist/chunks/chunk.BLIBQFBM.js +55 -0
- package/dist/chunks/chunk.BPSOOQHL.js +1 -0
- package/dist/chunks/chunk.BZR4BGIU.js +75 -0
- package/dist/chunks/chunk.C2Z2P4HZ.js +1 -0
- package/dist/chunks/chunk.C3HTF6QP.js +1 -0
- package/dist/chunks/chunk.CJJ6KRNY.js +55 -0
- package/dist/chunks/chunk.CKBGZICB.js +1 -0
- package/dist/chunks/chunk.CR2WUMIZ.js +1 -0
- package/dist/chunks/chunk.D3EZJCGI.js +1 -0
- package/dist/chunks/chunk.D5RQQJXT.js +1 -0
- package/dist/chunks/chunk.DBV4OJRE.js +1 -0
- package/dist/chunks/chunk.DGWO2RFN.js +65 -0
- package/dist/chunks/chunk.DWZGNFF4.js +19 -0
- package/dist/chunks/chunk.E2LDIZ5A.js +80 -0
- package/dist/chunks/chunk.E4677ORX.js +12 -0
- package/dist/chunks/chunk.E4I3BOYJ.js +1 -0
- package/dist/chunks/chunk.EC37HQTK.js +1 -0
- package/dist/chunks/chunk.EDPXBQTK.js +11 -0
- package/dist/chunks/chunk.EGCCXDVN.js +1 -0
- package/dist/chunks/chunk.EGLGMWHL.js +1 -0
- package/dist/chunks/chunk.ERANRWC4.js +1 -0
- package/dist/chunks/chunk.ETTQAMEC.js +1 -0
- package/dist/chunks/chunk.EZI7VJCI.js +1 -0
- package/dist/chunks/chunk.F5USPXS3.js +1 -0
- package/dist/chunks/chunk.F6FNJHJZ.js +1 -0
- package/dist/chunks/chunk.FCWJPJFL.js +1 -0
- package/dist/chunks/chunk.FEZWYWLM.js +1 -0
- package/dist/chunks/chunk.FHINJ6Y2.js +1 -0
- package/dist/chunks/chunk.FJREISFT.js +50 -0
- package/dist/chunks/chunk.FLBHZW2V.js +1 -0
- package/dist/chunks/chunk.FPIGO2RS.js +1 -0
- package/dist/chunks/chunk.G46SEHQ7.js +122 -0
- package/dist/chunks/chunk.G62AJUJB.js +280 -0
- package/dist/chunks/chunk.GHGA4BC4.js +35 -0
- package/dist/chunks/chunk.GJXJ3REL.js +1 -0
- package/dist/chunks/chunk.H2VQ3GAL.js +1 -0
- package/dist/chunks/chunk.HWFOOCNQ.js +1 -0
- package/dist/chunks/chunk.HYYUEKDV.js +1 -0
- package/dist/chunks/chunk.I2ILFA6G.js +26 -0
- package/dist/chunks/chunk.ICQTH4UH.js +1 -0
- package/dist/chunks/chunk.IIMUOQLT.js +1 -0
- package/dist/chunks/chunk.IKMKIY65.js +1 -0
- package/dist/chunks/chunk.INEHUL67.js +1 -0
- package/dist/chunks/chunk.IXBKG4DQ.js +1 -0
- package/dist/chunks/chunk.J76YSYRY.js +1 -0
- package/dist/chunks/chunk.JM2TVYXO.js +1 -0
- package/dist/chunks/chunk.JP6WABYN.js +1 -0
- package/dist/chunks/chunk.JXBO5BLF.js +1 -0
- package/dist/chunks/chunk.JZEBR7NP.js +1 -0
- package/dist/chunks/chunk.K4YRHDUB.js +9 -0
- package/dist/chunks/chunk.KIFHC3T7.js +1 -0
- package/dist/chunks/chunk.KOJUXXJY.js +1 -0
- package/dist/chunks/chunk.KRBL5FV4.js +1 -0
- package/dist/chunks/chunk.LKMGRBDO.js +74 -0
- package/dist/chunks/chunk.LXRK5DKR.js +1 -0
- package/dist/chunks/chunk.LZMYJKUH.js +1 -0
- package/dist/chunks/chunk.M2R2MWW6.js +1 -0
- package/dist/chunks/chunk.M7QRFNKJ.js +1 -0
- package/dist/chunks/chunk.MCAWMU6G.js +1 -0
- package/dist/chunks/chunk.MHQDU7QQ.js +8 -0
- package/dist/chunks/chunk.MN5MWOZ3.js +22 -0
- package/dist/chunks/chunk.MPRJWP7V.js +1 -0
- package/dist/chunks/chunk.MVAJBYGZ.js +126 -0
- package/dist/chunks/chunk.MVDZSUTF.js +1 -0
- package/dist/chunks/chunk.MXWCEPLJ.js +1 -0
- package/dist/chunks/chunk.N7Z3XJDH.js +1 -0
- package/dist/chunks/chunk.NIKDBWYT.js +749 -0
- package/dist/chunks/chunk.NLPXUCOV.js +154 -0
- package/dist/chunks/chunk.NM2E2NLC.js +1 -0
- package/dist/chunks/chunk.NQZ46ACA.js +1 -0
- package/dist/chunks/chunk.NS7F6WHR.js +1 -0
- package/dist/chunks/chunk.NVDKJ23W.js +1 -0
- package/dist/chunks/chunk.O73CQNUQ.js +1 -0
- package/dist/chunks/chunk.O7SZO3F2.js +67 -0
- package/dist/chunks/chunk.OJL2JDC7.js +8 -0
- package/dist/chunks/chunk.OK4KVEO2.js +39 -0
- package/dist/chunks/chunk.OMA4FSS5.js +1 -0
- package/dist/chunks/chunk.ON5SHFJQ.js +1 -0
- package/dist/chunks/chunk.OSTPKJEG.js +1 -0
- package/dist/chunks/chunk.OT7EWZTB.js +1 -0
- package/dist/chunks/chunk.OX37ME76.js +1 -0
- package/dist/chunks/chunk.P6YUH5PJ.js +115 -0
- package/dist/chunks/chunk.PFQRZNG4.js +1 -0
- package/dist/chunks/chunk.PLI2OJCQ.js +5 -0
- package/dist/chunks/chunk.PRMGGZD4.js +1 -0
- package/dist/chunks/chunk.PZUTCNO3.js +1 -0
- package/dist/chunks/chunk.Q3PYZL4K.js +1 -0
- package/dist/chunks/chunk.Q7PSTAT7.js +1 -0
- package/dist/chunks/chunk.QFFE2X7G.js +2 -0
- package/dist/chunks/chunk.QMKNO7LA.js +1 -0
- package/dist/chunks/chunk.QMLZIOGK.js +1 -0
- package/dist/chunks/chunk.QNKIAUTE.js +1 -0
- package/dist/chunks/chunk.QRVD7RXJ.js +35 -0
- package/dist/chunks/chunk.R4H27HPH.js +299 -0
- package/dist/chunks/chunk.R5Y5643D.js +1 -0
- package/dist/chunks/chunk.R6N6DP26.js +1 -0
- package/dist/chunks/chunk.RA5TZXXD.js +140 -0
- package/dist/chunks/chunk.RHZLBLLF.js +1 -0
- package/dist/chunks/chunk.RLV3QOCE.js +1 -0
- package/dist/chunks/chunk.RMU4NF2I.js +101 -0
- package/dist/chunks/chunk.RXKQPVIN.js +1 -0
- package/dist/chunks/chunk.SBMJYTJG.js +1 -0
- package/dist/chunks/chunk.SDA73BKN.js +9 -0
- package/dist/chunks/chunk.SFIHSJ6O.js +64 -0
- package/dist/chunks/chunk.T4AXF34W.js +1 -0
- package/dist/chunks/chunk.T7NCR3JO.js +16 -0
- package/dist/chunks/chunk.TDXYYC75.js +55 -0
- package/dist/chunks/chunk.TF5PF2Y7.js +17 -0
- package/dist/chunks/chunk.TIPXDUPS.js +1 -0
- package/dist/chunks/chunk.TSKVHV4C.js +1 -0
- package/dist/chunks/chunk.TWSMAGBG.js +1 -0
- package/dist/chunks/chunk.TXVIV3TJ.js +6 -0
- package/dist/chunks/chunk.U534PR4Z.js +37 -0
- package/dist/chunks/chunk.U5T6HVUD.js +38 -0
- package/dist/chunks/chunk.UCIPQRQ5.js +1 -0
- package/dist/chunks/chunk.UDWGU7PA.js +47 -0
- package/dist/chunks/chunk.UEYBVNWD.js +1 -0
- package/dist/chunks/chunk.UG37L2HK.js +121 -0
- package/dist/chunks/chunk.UHVFXJIO.js +1 -0
- package/dist/chunks/chunk.UNHPETRL.js +1 -0
- package/dist/chunks/chunk.USHDAI2U.js +1 -0
- package/dist/chunks/chunk.USKLSCR4.js +100 -0
- package/dist/chunks/chunk.UVFP7A7Y.js +1 -0
- package/dist/chunks/chunk.UWC4EZHJ.js +1 -0
- package/dist/chunks/chunk.V2A2YBNP.js +1 -0
- package/dist/chunks/chunk.V4V53TPL.js +1 -0
- package/dist/chunks/chunk.VBS322AL.js +1 -0
- package/dist/chunks/chunk.VHVPWCSD.js +1 -0
- package/dist/chunks/chunk.VIHZ3AQQ.js +20 -0
- package/dist/chunks/chunk.VOB6JQVM.js +1 -0
- package/dist/chunks/chunk.VXZBPMAO.js +1 -0
- package/dist/chunks/chunk.W4GBBDDF.js +1 -0
- package/dist/chunks/chunk.WJBUDOJM.js +1 -0
- package/dist/chunks/chunk.WJPWREQ5.js +1 -0
- package/dist/chunks/chunk.WUHSGJBJ.js +1 -0
- package/dist/chunks/chunk.WVF3UO6S.js +1 -0
- package/dist/chunks/chunk.WWNAUUUD.js +24 -0
- package/dist/chunks/chunk.XKSSGRUN.js +1 -0
- package/dist/chunks/chunk.XOL53DBK.js +1 -0
- package/dist/chunks/chunk.XOQR6J72.js +566 -0
- package/dist/chunks/chunk.XRURAMVY.js +1 -0
- package/dist/chunks/chunk.XSZFO6TT.js +1 -0
- package/dist/chunks/chunk.Y2DXMHBB.js +1 -0
- package/dist/chunks/chunk.Y6BTP2LU.js +1 -0
- package/dist/chunks/chunk.YKRY5A5J.js +62 -0
- package/dist/chunks/chunk.YKSJHDSR.js +1 -0
- package/dist/chunks/chunk.YMWTWQBA.js +1 -0
- package/dist/chunks/chunk.YONWP2M5.js +145 -0
- package/dist/chunks/chunk.YPRGRNRX.js +1 -0
- package/dist/chunks/chunk.YQCNEYQU.js +1 -0
- package/dist/chunks/chunk.YT5HGOQB.js +20 -0
- package/dist/chunks/chunk.ZPCBH2AK.js +1 -0
- package/dist/chunks/chunk.ZXFJBAC5.js +1 -0
- package/dist/chunks/chunk.ZZSLD7WM.js +37 -0
- package/dist/components/accordion/accordion.component.js +1 -1
- package/dist/components/accordion/accordion.js +1 -1
- package/dist/components/alert/alert.component.js +1 -1
- package/dist/components/alert/alert.js +1 -1
- package/dist/components/avatar/avatar.component.js +1 -1
- package/dist/components/avatar/avatar.js +1 -1
- package/dist/components/badge/badge.component.js +1 -1
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.component.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.component.js +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.js +1 -1
- package/dist/components/browse-variables/browse-variables.component.js +1 -1
- package/dist/components/browse-variables/browse-variables.js +1 -1
- package/dist/components/button/button.component.js +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/button-group/button-group.component.js +1 -1
- package/dist/components/button-group/button-group.js +1 -1
- package/dist/components/caption/caption.component.js +1 -1
- package/dist/components/caption/caption.js +1 -1
- package/dist/components/card/card.component.js +1 -1
- package/dist/components/card/card.js +1 -1
- package/dist/components/checkbox/checkbox.component.js +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/chip/chip.component.js +1 -1
- package/dist/components/chip/chip.js +1 -1
- package/dist/components/combobox/combobox.component.js +1 -1
- package/dist/components/combobox/combobox.js +1 -1
- package/dist/components/data-access/data-access.component.js +1 -1
- package/dist/components/data-access/data-access.js +1 -1
- package/dist/components/data-grid/data-grid.component.js +1 -1
- package/dist/components/data-grid/data-grid.js +1 -1
- package/dist/components/data-rods/data-rods.component.js +1 -1
- package/dist/components/data-rods/data-rods.js +1 -1
- package/dist/components/data-subsetter/data-subsetter.component.js +1 -1
- package/dist/components/data-subsetter/data-subsetter.js +1 -1
- package/dist/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
- package/dist/components/data-subsetter-history/data-subsetter-history.component.js +1 -1
- package/dist/components/data-subsetter-history/data-subsetter-history.js +1 -1
- package/dist/components/date-picker/date-picker.component.js +1 -1
- package/dist/components/date-picker/date-picker.js +1 -1
- package/dist/components/date-range-slider/date-range-slider.component.js +1 -1
- package/dist/components/date-range-slider/date-range-slider.js +1 -1
- package/dist/components/dialog/dialog.component.js +1 -1
- package/dist/components/dialog/dialog.js +1 -1
- package/dist/components/divider/divider.component.js +1 -1
- package/dist/components/divider/divider.js +1 -1
- package/dist/components/dropdown/dropdown.component.js +1 -1
- package/dist/components/dropdown/dropdown.js +1 -1
- package/dist/components/earthdata-login/earthdata-login.component.js +1 -1
- package/dist/components/earthdata-login/earthdata-login.js +1 -1
- package/dist/components/file-upload/file-upload.component.js +1 -1
- package/dist/components/file-upload/file-upload.js +1 -1
- package/dist/components/harmony-history/harmony-history.component.js +1 -1
- package/dist/components/harmony-history/harmony-history.js +1 -1
- package/dist/components/icon/icon.component.js +1 -1
- package/dist/components/icon/icon.js +1 -1
- package/dist/components/input/input.component.js +1 -1
- package/dist/components/input/input.js +1 -1
- package/dist/components/loader/loader.component.js +1 -1
- package/dist/components/loader/loader.js +1 -1
- package/dist/components/login/login.component.js +1 -1
- package/dist/components/login/login.js +1 -1
- package/dist/components/map/map.component.js +1 -1
- package/dist/components/map/map.js +1 -1
- package/dist/components/menu/menu.component.js +1 -1
- package/dist/components/menu/menu.js +1 -1
- package/dist/components/menu-item/menu-item.component.js +1 -1
- package/dist/components/menu-item/menu-item.js +1 -1
- package/dist/components/option/option.component.js +1 -1
- package/dist/components/option/option.js +1 -1
- package/dist/components/pagination/pagination.component.js +1 -1
- package/dist/components/pagination/pagination.js +1 -1
- package/dist/components/plot/plot.component.js +1 -1
- package/dist/components/plot/plot.js +1 -1
- 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.js +1 -1
- package/dist/components/plot-toolbar/plot-toolbar.js +1 -1
- package/dist/components/popup/popup.component.js +1 -1
- package/dist/components/popup/popup.js +1 -1
- package/dist/components/progress-bar/progress-bar.component.js +1 -1
- package/dist/components/progress-bar/progress-bar.js +1 -1
- package/dist/components/radio/radio.component.js +1 -1
- package/dist/components/radio/radio.js +1 -1
- package/dist/components/radio-group/radio-group.component.js +1 -1
- package/dist/components/radio-group/radio-group.js +1 -1
- package/dist/components/scroll-hint/scroll-hint.component.js +1 -1
- package/dist/components/scroll-hint/scroll-hint.js +1 -1
- package/dist/components/select/select.component.js +1 -1
- package/dist/components/select/select.js +1 -1
- package/dist/components/site-header/site-header.component.js +1 -1
- package/dist/components/site-header/site-header.js +1 -1
- package/dist/components/site-navigation/site-navigation.component.js +1 -1
- package/dist/components/site-navigation/site-navigation.js +1 -1
- package/dist/components/skeleton/skeleton.component.js +1 -1
- package/dist/components/skeleton/skeleton.js +1 -1
- package/dist/components/slider/slider.component.js +1 -1
- package/dist/components/slider/slider.js +1 -1
- package/dist/components/spatial-picker/spatial-picker.component.js +1 -1
- package/dist/components/spatial-picker/spatial-picker.js +1 -1
- package/dist/components/status-indicator/status-indicator.component.js +1 -1
- package/dist/components/status-indicator/status-indicator.js +1 -1
- package/dist/components/stepper/stepper.component.js +1 -1
- package/dist/components/stepper/stepper.js +1 -1
- package/dist/components/stepper-step/stepper-step.component.js +1 -1
- package/dist/components/stepper-step/stepper-step.js +1 -1
- package/dist/components/tab/tab.component.js +1 -1
- package/dist/components/tab/tab.js +1 -1
- package/dist/components/tab-panel/tab-panel.component.js +1 -1
- package/dist/components/tab-panel/tab-panel.js +1 -1
- package/dist/components/tabs/tabs.component.js +1 -1
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/tag/tag.component.js +1 -1
- package/dist/components/tag/tag.js +1 -1
- package/dist/components/textarea/textarea.component.js +1 -1
- package/dist/components/textarea/textarea.js +1 -1
- package/dist/components/time-average-map/time-average-map.component.d.ts +7 -4
- package/dist/components/time-average-map/time-average-map.component.js +1 -1
- package/dist/components/time-average-map/time-average-map.controller.js +1 -1
- package/dist/components/time-average-map/time-average-map.js +1 -1
- package/dist/components/time-series/time-series.component.d.ts +7 -4
- package/dist/components/time-series/time-series.component.js +1 -1
- package/dist/components/time-series/time-series.controller.js +1 -1
- package/dist/components/time-series/time-series.js +1 -1
- package/dist/components/toast/toast.component.js +1 -1
- package/dist/components/toast/toast.js +1 -1
- package/dist/components/toggle/toggle.component.js +1 -1
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/tooltip/tooltip.component.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/components/variable-combobox/variable-combobox.component.js +1 -1
- package/dist/components/variable-combobox/variable-combobox.js +1 -1
- package/dist/components/variable-keyword-search/variable-keyword-search.component.js +1 -1
- package/dist/components/variable-keyword-search/variable-keyword-search.js +1 -1
- package/dist/custom-elements.json +953 -919
- package/dist/react/accordion/index.js +1 -1
- package/dist/react/alert/index.js +1 -1
- package/dist/react/avatar/index.js +1 -1
- package/dist/react/badge/index.js +1 -1
- package/dist/react/breadcrumb/index.js +1 -1
- package/dist/react/breadcrumbs/index.js +1 -1
- package/dist/react/browse-variables/index.js +1 -1
- package/dist/react/button/index.js +1 -1
- package/dist/react/button-group/index.js +1 -1
- package/dist/react/caption/index.js +1 -1
- package/dist/react/card/index.js +1 -1
- package/dist/react/checkbox/index.js +1 -1
- package/dist/react/chip/index.js +1 -1
- package/dist/react/combobox/index.js +1 -1
- package/dist/react/data-access/index.js +1 -1
- package/dist/react/data-grid/index.js +1 -1
- package/dist/react/data-rods/index.js +1 -1
- package/dist/react/data-subsetter/index.js +1 -1
- package/dist/react/data-subsetter-history/index.js +1 -1
- package/dist/react/date-picker/index.js +1 -1
- package/dist/react/date-range-slider/index.js +1 -1
- package/dist/react/dialog/index.js +1 -1
- package/dist/react/divider/index.js +1 -1
- package/dist/react/dropdown/index.js +1 -1
- package/dist/react/earthdata-login/index.js +1 -1
- package/dist/react/file-upload/index.js +1 -1
- package/dist/react/harmony-history/index.js +1 -1
- package/dist/react/icon/index.js +1 -1
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +1 -1
- package/dist/react/input/index.js +1 -1
- package/dist/react/loader/index.js +1 -1
- package/dist/react/login/index.js +1 -1
- package/dist/react/map/index.js +1 -1
- package/dist/react/menu/index.js +1 -1
- package/dist/react/menu-item/index.js +1 -1
- package/dist/react/option/index.js +1 -1
- package/dist/react/pagination/index.js +1 -1
- package/dist/react/plot/index.js +1 -1
- package/dist/react/plot-toolbar/index.js +1 -1
- package/dist/react/popup/index.js +1 -1
- package/dist/react/progress-bar/index.js +1 -1
- package/dist/react/radio/index.js +1 -1
- package/dist/react/radio-group/index.js +1 -1
- package/dist/react/scroll-hint/index.js +1 -1
- package/dist/react/select/index.js +1 -1
- package/dist/react/site-header/index.js +1 -1
- package/dist/react/site-navigation/index.js +1 -1
- package/dist/react/skeleton/index.js +1 -1
- package/dist/react/slider/index.js +1 -1
- package/dist/react/spatial-picker/index.js +1 -1
- package/dist/react/status-indicator/index.js +1 -1
- package/dist/react/stepper/index.js +1 -1
- package/dist/react/stepper-step/index.js +1 -1
- package/dist/react/tab/index.js +1 -1
- package/dist/react/tab-panel/index.js +1 -1
- package/dist/react/tabs/index.js +1 -1
- package/dist/react/tag/index.js +1 -1
- package/dist/react/textarea/index.js +1 -1
- package/dist/react/time-average-map/index.js +1 -1
- package/dist/react/time-series/index.js +1 -1
- package/dist/react/toast/index.js +1 -1
- package/dist/react/toggle/index.js +1 -1
- package/dist/react/tooltip/index.js +1 -1
- package/dist/react/variable-combobox/index.js +1 -1
- package/dist/react/variable-keyword-search/index.js +1 -1
- package/dist/terra-ui-components.js +1 -1
- package/dist/terra_ui_components-0.0.182-py3-none-any.whl +0 -0
- package/dist/terra_ui_components-0.0.182.tar.gz +0 -0
- package/dist/types/vue/index.d.ts +177 -175
- package/dist/vscode.html-custom-data.json +139 -129
- package/dist/web-types.json +447 -427
- package/package.json +1 -1
- package/cdn/chunks/chunk.27H6Y66N.js +0 -19
- package/cdn/chunks/chunk.2JCGLAAZ.js +0 -19
- package/cdn/chunks/chunk.2NDZGMG2.js +0 -33
- package/cdn/chunks/chunk.2YBP736T.js +0 -161
- package/cdn/chunks/chunk.3465UHBW.js +0 -125
- package/cdn/chunks/chunk.3E3PL47L.js +0 -19
- package/cdn/chunks/chunk.3RT5OMRR.js +0 -19
- package/cdn/chunks/chunk.3S6TXNYN.js +0 -357
- package/cdn/chunks/chunk.3TNPXGSN.js +0 -29
- package/cdn/chunks/chunk.3U3QMVU3.js +0 -35
- package/cdn/chunks/chunk.3XHMRHX4.js +0 -19
- package/cdn/chunks/chunk.45J3MZ3A.js +0 -205
- package/cdn/chunks/chunk.4A2AWXGY.js +0 -29
- package/cdn/chunks/chunk.4CRAZGX7.js +0 -19
- package/cdn/chunks/chunk.4EHEYIXJ.js +0 -29
- package/cdn/chunks/chunk.4JH2XUDX.js +0 -32
- package/cdn/chunks/chunk.4M4OKGDE.js +0 -19
- package/cdn/chunks/chunk.4TR3C3XT.js +0 -19
- package/cdn/chunks/chunk.4YHMBW3P.js +0 -188
- package/cdn/chunks/chunk.4YNI6KD4.js +0 -19
- package/cdn/chunks/chunk.53SX2HQI.js +0 -30
- package/cdn/chunks/chunk.54XCTTO5.js +0 -19
- package/cdn/chunks/chunk.56MUPGEK.js +0 -32
- package/cdn/chunks/chunk.5EAUYTIJ.js +0 -19
- package/cdn/chunks/chunk.5I3VER3F.js +0 -19
- package/cdn/chunks/chunk.5KYNNL32.js +0 -32
- package/cdn/chunks/chunk.5MIFCXBI.js +0 -29
- package/cdn/chunks/chunk.62ZIBC6B.js +0 -19
- package/cdn/chunks/chunk.653O7V4M.js +0 -599
- package/cdn/chunks/chunk.67TYJBGE.js +0 -19
- package/cdn/chunks/chunk.6CQFWVR6.js +0 -29
- package/cdn/chunks/chunk.6QSUPLGB.js +0 -29
- package/cdn/chunks/chunk.6TITQBN5.js +0 -86
- package/cdn/chunks/chunk.77Y544HC.js +0 -19
- package/cdn/chunks/chunk.7ASKZORP.js +0 -33
- package/cdn/chunks/chunk.7BHCY74I.js +0 -33
- package/cdn/chunks/chunk.7CTLZBMK.js +0 -99
- package/cdn/chunks/chunk.7GWSNU54.js +0 -19
- package/cdn/chunks/chunk.7PYSPYWO.js +0 -19
- package/cdn/chunks/chunk.7QYAG5RH.js +0 -19
- package/cdn/chunks/chunk.7VNZMOKC.js +0 -56075
- package/cdn/chunks/chunk.7YI473J2.js +0 -39
- package/cdn/chunks/chunk.7YXZ4PLT.js +0 -359
- package/cdn/chunks/chunk.7ZVYIV7K.js +0 -662
- package/cdn/chunks/chunk.ACJHUN64.js +0 -19
- package/cdn/chunks/chunk.ACVD4RLC.js +0 -538
- package/cdn/chunks/chunk.AFRV7PHS.js +0 -19
- package/cdn/chunks/chunk.AG3OHBNW.js +0 -32
- package/cdn/chunks/chunk.AMEOWPTV.js +0 -29
- package/cdn/chunks/chunk.AN25EHYN.js +0 -19
- package/cdn/chunks/chunk.APOEQA6N.js +0 -157
- package/cdn/chunks/chunk.AQHIU4QQ.js +0 -19
- package/cdn/chunks/chunk.AW7RGJQF.js +0 -237
- package/cdn/chunks/chunk.AXHE75CH.js +0 -1211
- package/cdn/chunks/chunk.B7OA73S6.js +0 -19
- package/cdn/chunks/chunk.BCQ2ITZO.js +0 -33
- package/cdn/chunks/chunk.BEMRQEFJ.js +0 -29
- package/cdn/chunks/chunk.BEWDP23N.js +0 -29
- package/cdn/chunks/chunk.BVACLOKI.js +0 -110
- package/cdn/chunks/chunk.BYUN5CQ7.js +0 -34
- package/cdn/chunks/chunk.CL66DXQH.js +0 -19
- package/cdn/chunks/chunk.CLOSWCHA.js +0 -279
- package/cdn/chunks/chunk.CMWLAYXG.js +0 -19
- package/cdn/chunks/chunk.CU6Y4S4O.js +0 -134
- package/cdn/chunks/chunk.DCABAUTG.js +0 -29
- package/cdn/chunks/chunk.DCDKEGGF.js +0 -60
- package/cdn/chunks/chunk.DHUO654N.js +0 -19
- package/cdn/chunks/chunk.DHZRFA4Q.js +0 -71
- package/cdn/chunks/chunk.DKR37O6M.js +0 -99
- package/cdn/chunks/chunk.E5INDWJO.js +0 -231
- package/cdn/chunks/chunk.EB57UDHS.js +0 -29
- package/cdn/chunks/chunk.EHXDAY7E.js +0 -29
- package/cdn/chunks/chunk.EJC7WV7R.js +0 -19
- package/cdn/chunks/chunk.EPEVTPDD.js +0 -29
- package/cdn/chunks/chunk.ESBUSULS.js +0 -658
- package/cdn/chunks/chunk.EWQBAXSZ.js +0 -514
- package/cdn/chunks/chunk.EXWRYIIG.js +0 -34
- package/cdn/chunks/chunk.F7RM6CKI.js +0 -19
- package/cdn/chunks/chunk.FEU2ZHGK.js +0 -136
- package/cdn/chunks/chunk.FKESQTK7.js +0 -62
- package/cdn/chunks/chunk.FQW6VWTA.js +0 -29
- package/cdn/chunks/chunk.FVNPWS7L.js +0 -29
- package/cdn/chunks/chunk.FZSG2R6K.js +0 -36
- package/cdn/chunks/chunk.G6UY4GIZ.js +0 -610
- package/cdn/chunks/chunk.GAF2R7BX.js +0 -19
- package/cdn/chunks/chunk.GH3O32TH.js +0 -616
- package/cdn/chunks/chunk.GHQXXUOZ.js +0 -19
- package/cdn/chunks/chunk.GLLNU6QT.js +0 -276
- package/cdn/chunks/chunk.GN5JXOUJ.js +0 -19
- package/cdn/chunks/chunk.GN7JEDN2.js +0 -234
- package/cdn/chunks/chunk.GPPIIBI2.js +0 -19
- package/cdn/chunks/chunk.GU2TJT7Q.js +0 -19
- package/cdn/chunks/chunk.GUW2SGCI.js +0 -493
- package/cdn/chunks/chunk.H64ZXOYB.js +0 -473
- package/cdn/chunks/chunk.HA4DY4XJ.js +0 -35
- package/cdn/chunks/chunk.HARGEVGT.js +0 -36
- package/cdn/chunks/chunk.HO6Z2DWH.js +0 -29
- package/cdn/chunks/chunk.HQYWW5B6.js +0 -32
- package/cdn/chunks/chunk.I6FQTBRX.js +0 -32
- package/cdn/chunks/chunk.IARTVWTE.js +0 -19
- package/cdn/chunks/chunk.IFBDVPXH.js +0 -1975
- package/cdn/chunks/chunk.IFN7JOYQ.js +0 -34
- package/cdn/chunks/chunk.IJMKGIXM.js +0 -224
- package/cdn/chunks/chunk.IKTRYO23.js +0 -29
- package/cdn/chunks/chunk.INTWBGMN.js +0 -92
- package/cdn/chunks/chunk.ISR3MVUO.js +0 -19
- package/cdn/chunks/chunk.ITFVYNFS.js +0 -104
- package/cdn/chunks/chunk.J3JP6ALM.js +0 -1184
- package/cdn/chunks/chunk.J5HCHNS6.js +0 -29
- package/cdn/chunks/chunk.JCDZ72UU.js +0 -29
- package/cdn/chunks/chunk.JLIH4UDK.js +0 -29
- package/cdn/chunks/chunk.JLKIJ7LH.js +0 -113
- package/cdn/chunks/chunk.JSYNLIEX.js +0 -288
- package/cdn/chunks/chunk.JWN5RFZR.js +0 -29
- package/cdn/chunks/chunk.JZEMAEKF.js +0 -542
- package/cdn/chunks/chunk.K4DUOTZR.js +0 -19
- package/cdn/chunks/chunk.K4XDAFMU.js +0 -904
- package/cdn/chunks/chunk.KAO2PZDB.js +0 -975
- package/cdn/chunks/chunk.KIWNTLEB.js +0 -3452
- package/cdn/chunks/chunk.KJ5MDHOB.js +0 -19
- package/cdn/chunks/chunk.KM6WWUYU.js +0 -77
- package/cdn/chunks/chunk.KNFKQMZL.js +0 -37
- package/cdn/chunks/chunk.KPL5WVGQ.js +0 -443
- package/cdn/chunks/chunk.KXIMRSUN.js +0 -49
- package/cdn/chunks/chunk.KXPMQRAG.js +0 -19
- package/cdn/chunks/chunk.L2SHDSJB.js +0 -36
- package/cdn/chunks/chunk.L3PHK56S.js +0 -19
- package/cdn/chunks/chunk.L4UIOAJ6.js +0 -19
- package/cdn/chunks/chunk.L6QGKCD7.js +0 -106
- package/cdn/chunks/chunk.LVROX2ZC.js +0 -32
- package/cdn/chunks/chunk.M5K77MVA.js +0 -19
- package/cdn/chunks/chunk.M65VG5RW.js +0 -472
- package/cdn/chunks/chunk.MG53IOR7.js +0 -123
- package/cdn/chunks/chunk.MZC6KDXV.js +0 -417
- package/cdn/chunks/chunk.MZX3RGLE.js +0 -189
- package/cdn/chunks/chunk.N23A2TLL.js +0 -155
- package/cdn/chunks/chunk.N35W2LNG.js +0 -190
- package/cdn/chunks/chunk.NDP3WIKQ.js +0 -19
- package/cdn/chunks/chunk.O3DIP4UG.js +0 -81
- package/cdn/chunks/chunk.O3REVIRV.js +0 -19
- package/cdn/chunks/chunk.O6EPXMCN.js +0 -32
- package/cdn/chunks/chunk.OE3SG35G.js +0 -372
- package/cdn/chunks/chunk.OH4XSXGH.js +0 -35
- package/cdn/chunks/chunk.OLZPMQEW.js +0 -60
- package/cdn/chunks/chunk.OXV3VH7N.js +0 -264
- package/cdn/chunks/chunk.P6HJOUWE.js +0 -32
- package/cdn/chunks/chunk.PHTZBZS3.js +0 -19
- package/cdn/chunks/chunk.PJUJ4YID.js +0 -29
- package/cdn/chunks/chunk.PXVXOSWN.js +0 -32
- package/cdn/chunks/chunk.PZUVUD4C.js +0 -93
- package/cdn/chunks/chunk.Q6MUWVO4.js +0 -310
- package/cdn/chunks/chunk.Q7SMQGGV.js +0 -32
- package/cdn/chunks/chunk.QCZATBDS.js +0 -19
- package/cdn/chunks/chunk.QMC7DUVJ.js +0 -151
- package/cdn/chunks/chunk.QR25OOSG.js +0 -83
- package/cdn/chunks/chunk.R5WMOIJK.js +0 -19
- package/cdn/chunks/chunk.R7TKEPVG.js +0 -165
- package/cdn/chunks/chunk.RKSUZJZ6.js +0 -68
- package/cdn/chunks/chunk.RQWWWR7J.js +0 -19
- package/cdn/chunks/chunk.RWBA2MGO.js +0 -19
- package/cdn/chunks/chunk.RY5SOLET.js +0 -132
- package/cdn/chunks/chunk.RY7CXQXT.js +0 -36
- package/cdn/chunks/chunk.S3QWAZET.js +0 -230
- package/cdn/chunks/chunk.S7K4YQO5.js +0 -29
- package/cdn/chunks/chunk.SFTDPOR4.js +0 -293
- package/cdn/chunks/chunk.SQFLMSG5.js +0 -37
- package/cdn/chunks/chunk.TDT5Q3JF.js +0 -29
- package/cdn/chunks/chunk.TEOWGCS6.js +0 -259
- package/cdn/chunks/chunk.TKGLHWZN.js +0 -19
- package/cdn/chunks/chunk.TMZ3GMSL.js +0 -134
- package/cdn/chunks/chunk.TOQTKNTX.js +0 -19
- package/cdn/chunks/chunk.UERLDTQZ.js +0 -29
- package/cdn/chunks/chunk.UEUZKV5K.js +0 -32
- package/cdn/chunks/chunk.V4VJ4UT2.js +0 -29
- package/cdn/chunks/chunk.V5DBQVJ5.js +0 -19
- package/cdn/chunks/chunk.V5OO2XEE.js +0 -33
- package/cdn/chunks/chunk.VECOM4X2.js +0 -19
- package/cdn/chunks/chunk.VGXUJ5AG.js +0 -19
- package/cdn/chunks/chunk.VHMUJ6SG.js +0 -2244
- package/cdn/chunks/chunk.VJKPC2DS.js +0 -29
- package/cdn/chunks/chunk.VS4OOTZG.js +0 -524
- package/cdn/chunks/chunk.VUKYQOBK.js +0 -350
- package/cdn/chunks/chunk.W67YDC4P.js +0 -19
- package/cdn/chunks/chunk.W7N4JADB.js +0 -915
- package/cdn/chunks/chunk.WA3LBDSM.js +0 -19
- package/cdn/chunks/chunk.WDQXQ2MJ.js +0 -19
- package/cdn/chunks/chunk.WE35UV4V.js +0 -41
- package/cdn/chunks/chunk.WEO6T7Q7.js +0 -32
- package/cdn/chunks/chunk.WIBZBHVO.js +0 -29
- package/cdn/chunks/chunk.WLINE26F.js +0 -19
- package/cdn/chunks/chunk.WODOIA57.js +0 -278
- package/cdn/chunks/chunk.WUA2GRUX.js +0 -19
- package/cdn/chunks/chunk.WXQGG4OH.js +0 -74
- package/cdn/chunks/chunk.X76BZAG2.js +0 -29
- package/cdn/chunks/chunk.XCZDPAFQ.js +0 -285
- package/cdn/chunks/chunk.XPO6CGIX.js +0 -32
- package/cdn/chunks/chunk.XSBBTQKS.js +0 -19
- package/cdn/chunks/chunk.XUC2AP34.js +0 -47
- package/cdn/chunks/chunk.XUZNRU2A.js +0 -35
- package/cdn/chunks/chunk.XY2BAW25.js +0 -82
- package/cdn/chunks/chunk.Y73I7UWA.js +0 -19
- package/cdn/chunks/chunk.YBQIGWAG.js +0 -2547
- package/cdn/chunks/chunk.YOBKY3PV.js +0 -29
- package/cdn/chunks/chunk.YYHCRDOA.js +0 -93
- package/cdn/chunks/chunk.Z66NGM6N.js +0 -78
- package/cdn/chunks/chunk.ZGM73SI6.js +0 -19
- package/cdn/chunks/chunk.ZIBQ3RIQ.js +0 -477
- package/cdn/chunks/chunk.ZO4JZI7Q.js +0 -19
- package/dist/chunks/chunk.25IJTRN2.js +0 -35
- package/dist/chunks/chunk.26TIQ67V.js +0 -1
- package/dist/chunks/chunk.2QS2GW24.js +0 -1
- package/dist/chunks/chunk.2W4QHF33.js +0 -100
- package/dist/chunks/chunk.35AKYR3R.js +0 -1
- package/dist/chunks/chunk.3A7J6DJT.js +0 -1
- package/dist/chunks/chunk.3AWO3Q45.js +0 -1
- package/dist/chunks/chunk.3IP76OK4.js +0 -1
- package/dist/chunks/chunk.3NZFQPY5.js +0 -1
- package/dist/chunks/chunk.443D6GCI.js +0 -1
- package/dist/chunks/chunk.46MIWFWF.js +0 -121
- package/dist/chunks/chunk.4CPC6T4W.js +0 -23
- package/dist/chunks/chunk.4EI5AQ55.js +0 -47
- package/dist/chunks/chunk.4MF3EOIE.js +0 -1
- package/dist/chunks/chunk.4R54XEI5.js +0 -14
- package/dist/chunks/chunk.52AIVMJA.js +0 -20
- package/dist/chunks/chunk.52DDN5Y5.js +0 -1
- package/dist/chunks/chunk.5AT7REMR.js +0 -1
- package/dist/chunks/chunk.5AYLTPSG.js +0 -55
- package/dist/chunks/chunk.5NVT3NMG.js +0 -1
- package/dist/chunks/chunk.5ZJ22MI2.js +0 -1
- package/dist/chunks/chunk.63XFDLLU.js +0 -22
- package/dist/chunks/chunk.67ZMDEXW.js +0 -1
- package/dist/chunks/chunk.6BU2ZYA2.js +0 -1
- package/dist/chunks/chunk.6C2DLXBV.js +0 -1
- package/dist/chunks/chunk.6DUHY2K7.js +0 -1
- package/dist/chunks/chunk.6RGAOWQL.js +0 -1
- package/dist/chunks/chunk.6XHS36ZS.js +0 -1
- package/dist/chunks/chunk.6YC7NU6R.js +0 -1
- package/dist/chunks/chunk.74OC24MY.js +0 -1
- package/dist/chunks/chunk.76MUDXWL.js +0 -1
- package/dist/chunks/chunk.7M4J27XW.js +0 -9
- package/dist/chunks/chunk.7YKWHD3Q.js +0 -1
- package/dist/chunks/chunk.ADD22LT5.js +0 -1
- package/dist/chunks/chunk.ADOJGUIM.js +0 -1
- package/dist/chunks/chunk.ADRI7S3D.js +0 -1
- package/dist/chunks/chunk.AJTT6ZVS.js +0 -1
- package/dist/chunks/chunk.ALLTKOK5.js +0 -55
- package/dist/chunks/chunk.ALWXS4EN.js +0 -1
- package/dist/chunks/chunk.AOG74ZOR.js +0 -1
- package/dist/chunks/chunk.AXW6QQ5G.js +0 -1
- package/dist/chunks/chunk.BDUWGLTX.js +0 -1
- package/dist/chunks/chunk.BHTVOOL3.js +0 -1
- package/dist/chunks/chunk.BNL5MQSM.js +0 -67
- package/dist/chunks/chunk.BPGBHDOI.js +0 -1
- package/dist/chunks/chunk.BPHQBSYM.js +0 -1
- package/dist/chunks/chunk.BR23Z5K4.js +0 -1
- package/dist/chunks/chunk.BXSXRNLA.js +0 -9
- package/dist/chunks/chunk.CARZD2IC.js +0 -1
- package/dist/chunks/chunk.CMJJA2FU.js +0 -280
- package/dist/chunks/chunk.CNGKS3CF.js +0 -74
- package/dist/chunks/chunk.CSD2H2XD.js +0 -1
- package/dist/chunks/chunk.CWW64TWB.js +0 -1
- package/dist/chunks/chunk.D4AQVUAD.js +0 -1
- package/dist/chunks/chunk.DDT4SEKP.js +0 -1
- package/dist/chunks/chunk.DN2W7CXP.js +0 -25
- package/dist/chunks/chunk.DNECT5E5.js +0 -1
- package/dist/chunks/chunk.DSKRM2DE.js +0 -1
- package/dist/chunks/chunk.E2WOMCTG.js +0 -115
- package/dist/chunks/chunk.E74KOQ6O.js +0 -37
- package/dist/chunks/chunk.EB7RTWHA.js +0 -1
- package/dist/chunks/chunk.EHNN7VF7.js +0 -1
- package/dist/chunks/chunk.EKZ44GOI.js +0 -300
- package/dist/chunks/chunk.EKZZOM3I.js +0 -1
- package/dist/chunks/chunk.ELYC43YZ.js +0 -1
- package/dist/chunks/chunk.EMUOCMNG.js +0 -1
- package/dist/chunks/chunk.EQ77DEN3.js +0 -1
- package/dist/chunks/chunk.EVAOZTKK.js +0 -37
- package/dist/chunks/chunk.EXISX4DM.js +0 -1
- package/dist/chunks/chunk.EY7CGJXP.js +0 -16
- package/dist/chunks/chunk.F5XNFJYR.js +0 -17
- package/dist/chunks/chunk.FGAFF4GY.js +0 -8
- package/dist/chunks/chunk.FQ6VIV6W.js +0 -1
- package/dist/chunks/chunk.FT7HZOCQ.js +0 -145
- package/dist/chunks/chunk.FXGSYMQ5.js +0 -1
- package/dist/chunks/chunk.G3TKMUU4.js +0 -1
- package/dist/chunks/chunk.G7EZQRZI.js +0 -26
- package/dist/chunks/chunk.GHVDYLX5.js +0 -1
- package/dist/chunks/chunk.GIZLZV63.js +0 -1
- package/dist/chunks/chunk.H2SGQQPI.js +0 -126
- package/dist/chunks/chunk.H4FARZ53.js +0 -1
- package/dist/chunks/chunk.H6PC5SSG.js +0 -8
- package/dist/chunks/chunk.HDPC44EI.js +0 -1
- package/dist/chunks/chunk.HJJKMAXZ.js +0 -1
- package/dist/chunks/chunk.HRG3YIXF.js +0 -1
- package/dist/chunks/chunk.HTTWDTCN.js +0 -1
- package/dist/chunks/chunk.I6KMV3PH.js +0 -1
- package/dist/chunks/chunk.IAZ53T5N.js +0 -1
- package/dist/chunks/chunk.IECIA36P.js +0 -1
- package/dist/chunks/chunk.IFRRAZJZ.js +0 -1
- package/dist/chunks/chunk.ILWARFBK.js +0 -80
- package/dist/chunks/chunk.IO5RP4LZ.js +0 -43
- package/dist/chunks/chunk.ITLR4NVV.js +0 -1
- package/dist/chunks/chunk.J6LC4XO6.js +0 -1
- package/dist/chunks/chunk.JFAE577A.js +0 -1
- package/dist/chunks/chunk.JHNY5UC5.js +0 -1
- package/dist/chunks/chunk.JIFY72GY.js +0 -1
- package/dist/chunks/chunk.JMHCKJE6.js +0 -12
- package/dist/chunks/chunk.JPCSPQ7M.js +0 -122
- package/dist/chunks/chunk.JUBS77KN.js +0 -1
- package/dist/chunks/chunk.JVNL2XTU.js +0 -5
- package/dist/chunks/chunk.K3NTQ4JF.js +0 -1
- package/dist/chunks/chunk.K3RQUNKR.js +0 -1
- package/dist/chunks/chunk.K6EEJAT5.js +0 -1
- package/dist/chunks/chunk.KBQI5V5Q.js +0 -749
- package/dist/chunks/chunk.KNYMQKW4.js +0 -1
- package/dist/chunks/chunk.KPFWB2YA.js +0 -1
- package/dist/chunks/chunk.KRWSFDPL.js +0 -1
- package/dist/chunks/chunk.KVHJU4LP.js +0 -1
- package/dist/chunks/chunk.KYXMELYH.js +0 -1
- package/dist/chunks/chunk.L745Y2S6.js +0 -1
- package/dist/chunks/chunk.LA4EE2OS.js +0 -26
- package/dist/chunks/chunk.LBOZG7DZ.js +0 -1
- package/dist/chunks/chunk.LCC2VNUN.js +0 -1
- package/dist/chunks/chunk.LFGMVPWO.js +0 -6
- package/dist/chunks/chunk.LPNUA4MS.js +0 -43
- package/dist/chunks/chunk.MAZZVNDV.js +0 -55
- package/dist/chunks/chunk.MFSYNWGZ.js +0 -1
- package/dist/chunks/chunk.MJISDOIT.js +0 -1
- package/dist/chunks/chunk.MNSPDFPW.js +0 -1
- package/dist/chunks/chunk.MSFH4A6C.js +0 -1
- package/dist/chunks/chunk.MWN6SUCO.js +0 -1
- package/dist/chunks/chunk.N6MMAM36.js +0 -1
- package/dist/chunks/chunk.NBONFMWU.js +0 -1
- package/dist/chunks/chunk.NDMEGIXT.js +0 -1
- package/dist/chunks/chunk.NH6VLJ6J.js +0 -1
- package/dist/chunks/chunk.NRKQII5L.js +0 -1
- package/dist/chunks/chunk.NV3RRECJ.js +0 -5
- package/dist/chunks/chunk.NW7UERHZ.js +0 -99
- package/dist/chunks/chunk.O3T4ATYT.js +0 -1
- package/dist/chunks/chunk.OGQJXR3F.js +0 -1
- package/dist/chunks/chunk.OJGU37E3.js +0 -1
- package/dist/chunks/chunk.OQULIOOE.js +0 -1
- package/dist/chunks/chunk.OTF3DTPS.js +0 -299
- package/dist/chunks/chunk.OTK4YHSY.js +0 -1
- package/dist/chunks/chunk.OZ4SZSLD.js +0 -1
- package/dist/chunks/chunk.PA77JIJB.js +0 -1
- package/dist/chunks/chunk.PAOPYU6H.js +0 -48
- package/dist/chunks/chunk.PPSCVLKZ.js +0 -566
- package/dist/chunks/chunk.PQWOPKO5.js +0 -1
- package/dist/chunks/chunk.PZM3CPCG.js +0 -64
- package/dist/chunks/chunk.Q6QIRUFF.js +0 -35
- package/dist/chunks/chunk.QLI6APTM.js +0 -1
- package/dist/chunks/chunk.QNHHTCKA.js +0 -20
- package/dist/chunks/chunk.QP47LYRE.js +0 -1
- package/dist/chunks/chunk.QS53EJDR.js +0 -1
- package/dist/chunks/chunk.QTWF2WDX.js +0 -1
- package/dist/chunks/chunk.QUWBD3SD.js +0 -2
- package/dist/chunks/chunk.RMKTIRLM.js +0 -1
- package/dist/chunks/chunk.ROGSTGQT.js +0 -1
- package/dist/chunks/chunk.S3EEI23E.js +0 -1
- package/dist/chunks/chunk.SATJQMPW.js +0 -1
- package/dist/chunks/chunk.SDHUSIQJ.js +0 -1
- package/dist/chunks/chunk.SEODWXYC.js +0 -38
- package/dist/chunks/chunk.T3F226QD.js +0 -24
- package/dist/chunks/chunk.T7B46YQE.js +0 -1
- package/dist/chunks/chunk.T7GB532E.js +0 -101
- package/dist/chunks/chunk.TKOSJQ55.js +0 -33
- package/dist/chunks/chunk.TLQME5TY.js +0 -1
- package/dist/chunks/chunk.TQGIFDYA.js +0 -65
- package/dist/chunks/chunk.TRPU5KOO.js +0 -1
- package/dist/chunks/chunk.TSTFRNHO.js +0 -30
- package/dist/chunks/chunk.TSVYBK3W.js +0 -1
- package/dist/chunks/chunk.UFDERNNG.js +0 -140
- package/dist/chunks/chunk.V2RCW5GT.js +0 -1
- package/dist/chunks/chunk.VIXBKCRX.js +0 -1
- package/dist/chunks/chunk.VPN54IEF.js +0 -1
- package/dist/chunks/chunk.VRH7V55E.js +0 -1
- package/dist/chunks/chunk.VRMDJLQD.js +0 -1157
- package/dist/chunks/chunk.W6XVQOLT.js +0 -1
- package/dist/chunks/chunk.WCR7D3KN.js +0 -49
- package/dist/chunks/chunk.WETDUXP5.js +0 -1
- package/dist/chunks/chunk.WKXYY2SS.js +0 -1
- package/dist/chunks/chunk.WLKVTAB4.js +0 -1
- package/dist/chunks/chunk.WNYSCJWU.js +0 -1
- package/dist/chunks/chunk.WSSQCROT.js +0 -62
- package/dist/chunks/chunk.WSV3Y476.js +0 -1
- package/dist/chunks/chunk.WUMKEMAE.js +0 -1
- package/dist/chunks/chunk.WUQDOY44.js +0 -1
- package/dist/chunks/chunk.WYFUGJYX.js +0 -1
- package/dist/chunks/chunk.WZJ6BLFI.js +0 -154
- package/dist/chunks/chunk.XA74HUUF.js +0 -11
- package/dist/chunks/chunk.XAR5NYEQ.js +0 -19
- package/dist/chunks/chunk.XBLQSPUU.js +0 -39
- package/dist/chunks/chunk.XOZSKLSU.js +0 -1
- package/dist/chunks/chunk.XQ2DODLW.js +0 -1
- package/dist/chunks/chunk.XUXVJHWD.js +0 -1
- package/dist/chunks/chunk.XW6P4ZVZ.js +0 -75
- package/dist/chunks/chunk.XWN6PMIT.js +0 -1
- package/dist/chunks/chunk.Y4NGZVLV.js +0 -157
- package/dist/chunks/chunk.YITLAPOA.js +0 -1
- package/dist/chunks/chunk.YSFPB4SY.js +0 -1
- package/dist/chunks/chunk.YVJLNJOM.js +0 -1
- package/dist/chunks/chunk.ZAZLZRKQ.js +0 -1
- package/dist/chunks/chunk.ZFBM4OFX.js +0 -1
- package/dist/chunks/chunk.ZGKHSKIP.js +0 -1
- package/dist/chunks/chunk.ZJOXNJ4J.js +0 -30
- package/dist/chunks/chunk.ZJQMVD74.js +0 -4
- package/dist/chunks/chunk.ZKKAJVQK.js +0 -11
- package/dist/chunks/chunk.ZVQU27UY.js +0 -1
- package/dist/terra_ui_components-0.0.181-py3-none-any.whl +0 -0
- package/dist/terra_ui_components-0.0.181.tar.gz +0 -0
|
@@ -1,2244 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
date_picker_styles_default
|
|
3
|
-
} from "./chunk.2S2I3XCJ.js";
|
|
4
|
-
import {
|
|
5
|
-
TerraInput
|
|
6
|
-
} from "./chunk.G6UY4GIZ.js";
|
|
7
|
-
import {
|
|
8
|
-
TerraDropdown
|
|
9
|
-
} from "./chunk.ACVD4RLC.js";
|
|
10
|
-
import {
|
|
11
|
-
e as e2,
|
|
12
|
-
n as n2
|
|
13
|
-
} from "./chunk.APOEQA6N.js";
|
|
14
|
-
import {
|
|
15
|
-
TerraButton
|
|
16
|
-
} from "./chunk.ZIBQ3RIQ.js";
|
|
17
|
-
import {
|
|
18
|
-
isValid
|
|
19
|
-
} from "./chunk.7NJYVBGM.js";
|
|
20
|
-
import {
|
|
21
|
-
TerraElement,
|
|
22
|
-
component_styles_default,
|
|
23
|
-
e,
|
|
24
|
-
n,
|
|
25
|
-
r
|
|
26
|
-
} from "./chunk.7ZVYIV7K.js";
|
|
27
|
-
import {
|
|
28
|
-
b
|
|
29
|
-
} from "./chunk.RRCYT4LP.js";
|
|
30
|
-
import {
|
|
31
|
-
__decorateClass,
|
|
32
|
-
init_buffer,
|
|
33
|
-
init_dirname,
|
|
34
|
-
init_process
|
|
35
|
-
} from "./chunk.ZEOVK2FE.js";
|
|
36
|
-
|
|
37
|
-
// src/components/date-picker/date-picker.component.ts
|
|
38
|
-
init_dirname();
|
|
39
|
-
init_buffer();
|
|
40
|
-
init_process();
|
|
41
|
-
var TerraDatePicker = class extends TerraElement {
|
|
42
|
-
constructor() {
|
|
43
|
-
super();
|
|
44
|
-
this.range = false;
|
|
45
|
-
this.hideLabel = false;
|
|
46
|
-
this.label = "Select Date";
|
|
47
|
-
this.helpText = "";
|
|
48
|
-
this.startHelpText = "";
|
|
49
|
-
this.endHelpText = "";
|
|
50
|
-
this.showPresets = false;
|
|
51
|
-
this.presets = [];
|
|
52
|
-
this.enableTime = false;
|
|
53
|
-
this.inline = false;
|
|
54
|
-
this.splitInputs = false;
|
|
55
|
-
this.placeholder = "Select Date";
|
|
56
|
-
this.startPlaceholder = "Start Date";
|
|
57
|
-
this.endPlaceholder = "End Date";
|
|
58
|
-
this.role = "group";
|
|
59
|
-
this.ariaLabel = "Date picker";
|
|
60
|
-
this.hideClearAll = false;
|
|
61
|
-
this.clearAllLabel = "Clear Dates";
|
|
62
|
-
this.useEndOfDay = true;
|
|
63
|
-
this.isOpen = false;
|
|
64
|
-
this.leftMonth = /* @__PURE__ */ new Date();
|
|
65
|
-
this.rightMonth = /* @__PURE__ */ new Date();
|
|
66
|
-
this.selectedStart = null;
|
|
67
|
-
this.selectedEnd = null;
|
|
68
|
-
this.hoverDate = null;
|
|
69
|
-
this.isSelectingRange = false;
|
|
70
|
-
this.showLeftMonthDropdown = false;
|
|
71
|
-
this.showRightMonthDropdown = false;
|
|
72
|
-
this.startHour = 0;
|
|
73
|
-
this.startMinute = 0;
|
|
74
|
-
this.startSecond = 0;
|
|
75
|
-
this.endHour = 23;
|
|
76
|
-
this.endMinute = 59;
|
|
77
|
-
this.endSecond = 59;
|
|
78
|
-
this.selectedDates = {
|
|
79
|
-
startDate: (/* @__PURE__ */ new Date()).toString(),
|
|
80
|
-
endDate: (/* @__PURE__ */ new Date()).toString()
|
|
81
|
-
};
|
|
82
|
-
this.dropdownRef = e2();
|
|
83
|
-
this.DAYS = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
|
|
84
|
-
this.MONTHS = [
|
|
85
|
-
"January",
|
|
86
|
-
"February",
|
|
87
|
-
"March",
|
|
88
|
-
"April",
|
|
89
|
-
"May",
|
|
90
|
-
"June",
|
|
91
|
-
"July",
|
|
92
|
-
"August",
|
|
93
|
-
"September",
|
|
94
|
-
"October",
|
|
95
|
-
"November",
|
|
96
|
-
"December"
|
|
97
|
-
];
|
|
98
|
-
this.initializePresets();
|
|
99
|
-
}
|
|
100
|
-
getDefaultEndHour() {
|
|
101
|
-
return this.useEndOfDay ? 23 : 0;
|
|
102
|
-
}
|
|
103
|
-
getDefaultEndMinute() {
|
|
104
|
-
return this.useEndOfDay ? 59 : 0;
|
|
105
|
-
}
|
|
106
|
-
getDefaultEndSecond() {
|
|
107
|
-
return this.useEndOfDay ? 59 : 0;
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Parse a date string (YYYY-MM-DD or ISO datetime) as a local date, avoiding timezone issues.
|
|
111
|
-
* When you do `new Date("2024-03-20")`, JavaScript interprets it as UTC midnight,
|
|
112
|
-
* which can cause off-by-one day errors when using getDate() in local timezone.
|
|
113
|
-
* This function parses the date as a local date instead.
|
|
114
|
-
*
|
|
115
|
-
* When enableTime is true, datetime strings are parsed as UTC to match API min/max dates.
|
|
116
|
-
*/
|
|
117
|
-
parseLocalDate(dateString) {
|
|
118
|
-
const dateOnlyPattern = /^\d{4}-\d{2}-\d{2}$/;
|
|
119
|
-
if (dateOnlyPattern.test(dateString)) {
|
|
120
|
-
const [year, month, day] = dateString.split("-").map(Number);
|
|
121
|
-
if (this.enableTime) {
|
|
122
|
-
return new Date(Date.UTC(year, month - 1, day, 0, 0, 0));
|
|
123
|
-
}
|
|
124
|
-
return new Date(year, month - 1, day);
|
|
125
|
-
}
|
|
126
|
-
const dateTimePattern = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$/;
|
|
127
|
-
if (dateTimePattern.test(dateString)) {
|
|
128
|
-
const [datePart, timePart] = dateString.split("T");
|
|
129
|
-
const [year, month, day] = datePart.split("-").map(Number);
|
|
130
|
-
const [hours, minutes, seconds] = timePart.split(":").map(Number);
|
|
131
|
-
return new Date(Date.UTC(year, month - 1, day, hours, minutes, seconds));
|
|
132
|
-
}
|
|
133
|
-
return new Date(dateString);
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Check if two dates are in the same calendar month and year
|
|
137
|
-
*/
|
|
138
|
-
isSameMonth(date1, date2) {
|
|
139
|
-
if (this.enableTime) {
|
|
140
|
-
return date1.getUTCFullYear() === date2.getUTCFullYear() && date1.getUTCMonth() === date2.getUTCMonth();
|
|
141
|
-
}
|
|
142
|
-
return date1.getFullYear() === date2.getFullYear() && date1.getMonth() === date2.getMonth();
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* Check if a date's month/year matches a given month Date
|
|
146
|
-
*/
|
|
147
|
-
isDateInMonth(date, monthDate) {
|
|
148
|
-
if (this.enableTime) {
|
|
149
|
-
return date.getUTCFullYear() === monthDate.getUTCFullYear() && date.getUTCMonth() === monthDate.getUTCMonth();
|
|
150
|
-
}
|
|
151
|
-
return date.getFullYear() === monthDate.getFullYear() && date.getMonth() === monthDate.getMonth();
|
|
152
|
-
}
|
|
153
|
-
getBounds() {
|
|
154
|
-
const min = this.minDate ? this.parseLocalDate(this.minDate) : void 0;
|
|
155
|
-
const max = this.maxDate ? this.parseLocalDate(this.maxDate) : void 0;
|
|
156
|
-
return { min, max };
|
|
157
|
-
}
|
|
158
|
-
doesRangeOverlapBounds(range) {
|
|
159
|
-
const { startDate, endDate } = range;
|
|
160
|
-
const { min, max } = this.getBounds();
|
|
161
|
-
if (!this.range) {
|
|
162
|
-
if (!startDate)
|
|
163
|
-
return false;
|
|
164
|
-
if (min && startDate < min)
|
|
165
|
-
return false;
|
|
166
|
-
if (max && startDate > max)
|
|
167
|
-
return false;
|
|
168
|
-
return true;
|
|
169
|
-
}
|
|
170
|
-
const start = startDate != null ? startDate : /* @__PURE__ */ new Date(-864e13);
|
|
171
|
-
const end = endDate != null ? endDate : /* @__PURE__ */ new Date(864e13);
|
|
172
|
-
if (!min && !max)
|
|
173
|
-
return true;
|
|
174
|
-
const windowStart = min != null ? min : /* @__PURE__ */ new Date(-864e13);
|
|
175
|
-
const windowEnd = max != null ? max : /* @__PURE__ */ new Date(864e13);
|
|
176
|
-
return end >= windowStart && start <= windowEnd;
|
|
177
|
-
}
|
|
178
|
-
isPresetWithinBounds(range) {
|
|
179
|
-
return this.doesRangeOverlapBounds(range);
|
|
180
|
-
}
|
|
181
|
-
get filteredPresets() {
|
|
182
|
-
return (this.presets || []).filter(
|
|
183
|
-
(preset) => this.isPresetWithinBounds(preset.getValue())
|
|
184
|
-
);
|
|
185
|
-
}
|
|
186
|
-
open() {
|
|
187
|
-
this.isOpen = true;
|
|
188
|
-
if (this.maxDate && !this.selectedStart && !this.selectedEnd) {
|
|
189
|
-
const max = this.parseLocalDate(this.maxDate);
|
|
190
|
-
if (!isNaN(max.getTime())) {
|
|
191
|
-
if (this.range) {
|
|
192
|
-
this.rightMonth = new Date(max);
|
|
193
|
-
const left = new Date(max);
|
|
194
|
-
left.setMonth(left.getMonth() - 1);
|
|
195
|
-
this.leftMonth = left;
|
|
196
|
-
} else {
|
|
197
|
-
this.leftMonth = new Date(max);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
if (!this.inline && this.dropdownRef.value) {
|
|
202
|
-
this.dropdownRef.value.show();
|
|
203
|
-
}
|
|
204
|
-
this.requestUpdate();
|
|
205
|
-
}
|
|
206
|
-
close() {
|
|
207
|
-
this.isOpen = false;
|
|
208
|
-
if (!this.inline && this.dropdownRef.value) {
|
|
209
|
-
this.dropdownRef.value.hide();
|
|
210
|
-
}
|
|
211
|
-
this.requestUpdate();
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* Clears the selected date(s) and resets the date picker to its initial state.
|
|
215
|
-
*/
|
|
216
|
-
clear() {
|
|
217
|
-
this.selectedStart = null;
|
|
218
|
-
this.selectedEnd = null;
|
|
219
|
-
this.hoverDate = null;
|
|
220
|
-
this.isSelectingRange = false;
|
|
221
|
-
this.startHour = 0;
|
|
222
|
-
this.startMinute = 0;
|
|
223
|
-
this.startSecond = 0;
|
|
224
|
-
this.endHour = this.getDefaultEndHour();
|
|
225
|
-
this.endMinute = this.getDefaultEndMinute();
|
|
226
|
-
this.endSecond = this.getDefaultEndSecond();
|
|
227
|
-
this.clearInputValidation();
|
|
228
|
-
this.requestUpdate();
|
|
229
|
-
this.emitChange();
|
|
230
|
-
}
|
|
231
|
-
setOpen(open) {
|
|
232
|
-
if (open) {
|
|
233
|
-
this.open();
|
|
234
|
-
} else {
|
|
235
|
-
this.close();
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
willUpdate(changedProperties) {
|
|
239
|
-
super.willUpdate(changedProperties);
|
|
240
|
-
if (changedProperties.has("useEndOfDay")) {
|
|
241
|
-
this.endHour = this.getDefaultEndHour();
|
|
242
|
-
this.endMinute = this.getDefaultEndMinute();
|
|
243
|
-
this.endSecond = this.getDefaultEndSecond();
|
|
244
|
-
}
|
|
245
|
-
if (changedProperties.has("inline")) {
|
|
246
|
-
if (this.inline) {
|
|
247
|
-
this.isOpen = true;
|
|
248
|
-
if (this.dropdownRef.value) {
|
|
249
|
-
this.dropdownRef.value.hide();
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
if (changedProperties.has("minDate") || changedProperties.has("maxDate")) {
|
|
254
|
-
if (this.maxDate && !this.selectedStart && !this.selectedEnd) {
|
|
255
|
-
const max = this.parseLocalDate(this.maxDate);
|
|
256
|
-
if (!isNaN(max.getTime())) {
|
|
257
|
-
if (this.range) {
|
|
258
|
-
this.rightMonth = new Date(max);
|
|
259
|
-
const left = new Date(max);
|
|
260
|
-
left.setMonth(left.getMonth() - 1);
|
|
261
|
-
this.leftMonth = left;
|
|
262
|
-
} else {
|
|
263
|
-
this.leftMonth = new Date(max);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
if (changedProperties.has("startDate") || changedProperties.has("endDate")) {
|
|
269
|
-
if (this.startDate) {
|
|
270
|
-
const start = this.parseLocalDate(this.startDate);
|
|
271
|
-
if (!isNaN(start.getTime())) {
|
|
272
|
-
this.selectedStart = start;
|
|
273
|
-
if (this.enableTime) {
|
|
274
|
-
this.initializeTimeFromDate(start, true);
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
} else {
|
|
278
|
-
this.selectedStart = null;
|
|
279
|
-
}
|
|
280
|
-
if (this.range) {
|
|
281
|
-
if (this.endDate) {
|
|
282
|
-
const end = this.parseLocalDate(this.endDate);
|
|
283
|
-
if (!isNaN(end.getTime())) {
|
|
284
|
-
this.selectedEnd = end;
|
|
285
|
-
if (this.enableTime) {
|
|
286
|
-
this.initializeTimeFromDate(end, false);
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
} else {
|
|
290
|
-
this.selectedEnd = null;
|
|
291
|
-
}
|
|
292
|
-
if (this.selectedStart && this.selectedEnd) {
|
|
293
|
-
const isSingleMonthRange = this.isSameMonth(
|
|
294
|
-
this.selectedStart,
|
|
295
|
-
this.selectedEnd
|
|
296
|
-
);
|
|
297
|
-
if (isSingleMonthRange) {
|
|
298
|
-
if (this.isDateInMonth(this.selectedStart, this.leftMonth)) {
|
|
299
|
-
this.leftMonth = new Date(this.selectedStart);
|
|
300
|
-
if (this.isDateInMonth(
|
|
301
|
-
this.selectedStart,
|
|
302
|
-
this.rightMonth
|
|
303
|
-
)) {
|
|
304
|
-
this.rightMonth = new Date(this.selectedStart);
|
|
305
|
-
this.rightMonth.setMonth(
|
|
306
|
-
this.rightMonth.getMonth() + 1
|
|
307
|
-
);
|
|
308
|
-
}
|
|
309
|
-
} else if (this.isDateInMonth(this.selectedStart, this.rightMonth)) {
|
|
310
|
-
this.rightMonth = new Date(this.selectedStart);
|
|
311
|
-
} else {
|
|
312
|
-
this.leftMonth = new Date(this.selectedStart);
|
|
313
|
-
}
|
|
314
|
-
} else {
|
|
315
|
-
this.leftMonth = new Date(this.selectedStart);
|
|
316
|
-
this.rightMonth = new Date(this.selectedEnd);
|
|
317
|
-
}
|
|
318
|
-
} else if (this.selectedStart) {
|
|
319
|
-
this.leftMonth = new Date(this.selectedStart);
|
|
320
|
-
this.rightMonth = new Date(this.leftMonth);
|
|
321
|
-
this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
|
|
322
|
-
}
|
|
323
|
-
} else {
|
|
324
|
-
if (this.selectedStart) {
|
|
325
|
-
this.leftMonth = new Date(this.selectedStart);
|
|
326
|
-
}
|
|
327
|
-
this.selectedEnd = null;
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
initializePresets() {
|
|
332
|
-
if (this.presets.length === 0) {
|
|
333
|
-
this.presets = [
|
|
334
|
-
{
|
|
335
|
-
label: "Today",
|
|
336
|
-
getValue: () => {
|
|
337
|
-
const today = /* @__PURE__ */ new Date();
|
|
338
|
-
return {
|
|
339
|
-
startDate: today,
|
|
340
|
-
endDate: this.range ? today : null
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
label: "Yesterday",
|
|
346
|
-
getValue: () => {
|
|
347
|
-
const yesterday = /* @__PURE__ */ new Date();
|
|
348
|
-
yesterday.setDate(yesterday.getDate() - 1);
|
|
349
|
-
return {
|
|
350
|
-
startDate: yesterday,
|
|
351
|
-
endDate: this.range ? yesterday : null
|
|
352
|
-
};
|
|
353
|
-
}
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
label: "Last 7 days",
|
|
357
|
-
getValue: () => {
|
|
358
|
-
const end = /* @__PURE__ */ new Date();
|
|
359
|
-
const start = /* @__PURE__ */ new Date();
|
|
360
|
-
start.setDate(start.getDate() - 6);
|
|
361
|
-
return { startDate: start, endDate: end };
|
|
362
|
-
}
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
label: "Last 30 days",
|
|
366
|
-
getValue: () => {
|
|
367
|
-
const end = /* @__PURE__ */ new Date();
|
|
368
|
-
const start = /* @__PURE__ */ new Date();
|
|
369
|
-
start.setDate(start.getDate() - 29);
|
|
370
|
-
return { startDate: start, endDate: end };
|
|
371
|
-
}
|
|
372
|
-
},
|
|
373
|
-
{
|
|
374
|
-
label: "Last 6 months",
|
|
375
|
-
getValue: () => {
|
|
376
|
-
const end = /* @__PURE__ */ new Date();
|
|
377
|
-
const start = /* @__PURE__ */ new Date();
|
|
378
|
-
start.setMonth(start.getMonth() - 6);
|
|
379
|
-
return { startDate: start, endDate: end };
|
|
380
|
-
}
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
label: "Last year",
|
|
384
|
-
getValue: () => {
|
|
385
|
-
const end = /* @__PURE__ */ new Date();
|
|
386
|
-
const start = /* @__PURE__ */ new Date();
|
|
387
|
-
start.setFullYear(start.getFullYear() - 1);
|
|
388
|
-
return { startDate: start, endDate: end };
|
|
389
|
-
}
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
label: "All time",
|
|
393
|
-
getValue: () => {
|
|
394
|
-
const { min, max } = this.getBounds();
|
|
395
|
-
return {
|
|
396
|
-
startDate: min || null,
|
|
397
|
-
endDate: max || null
|
|
398
|
-
};
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
];
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
firstUpdated() {
|
|
405
|
-
const params = new URLSearchParams(window.location.search);
|
|
406
|
-
const timeStartParam = params.get("time_start") || this.startDate;
|
|
407
|
-
const timeEndParam = params.get("time_end") || this.endDate;
|
|
408
|
-
if (timeStartParam) {
|
|
409
|
-
this.selectedStart = this.parseLocalDate(timeStartParam);
|
|
410
|
-
this.leftMonth = new Date(this.selectedStart);
|
|
411
|
-
if (this.enableTime) {
|
|
412
|
-
this.initializeTimeFromDate(this.selectedStart, true);
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
if (this.range && timeEndParam) {
|
|
416
|
-
this.selectedEnd = this.parseLocalDate(timeEndParam);
|
|
417
|
-
if (this.enableTime) {
|
|
418
|
-
this.initializeTimeFromDate(this.selectedEnd, false);
|
|
419
|
-
}
|
|
420
|
-
if (this.selectedStart && this.selectedEnd) {
|
|
421
|
-
const isSingleMonthRange = this.isSameMonth(
|
|
422
|
-
this.selectedStart,
|
|
423
|
-
this.selectedEnd
|
|
424
|
-
);
|
|
425
|
-
if (isSingleMonthRange) {
|
|
426
|
-
this.rightMonth = new Date(this.selectedStart);
|
|
427
|
-
this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
|
|
428
|
-
} else {
|
|
429
|
-
this.rightMonth = new Date(this.selectedEnd);
|
|
430
|
-
}
|
|
431
|
-
} else if (this.selectedEnd) {
|
|
432
|
-
this.rightMonth = new Date(this.selectedEnd);
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
if (this.range && !timeEndParam) {
|
|
436
|
-
this.rightMonth = new Date(this.leftMonth);
|
|
437
|
-
this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
|
|
438
|
-
}
|
|
439
|
-
if (this.inline) {
|
|
440
|
-
this.isOpen = true;
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
disconnectedCallback() {
|
|
444
|
-
super.disconnectedCallback();
|
|
445
|
-
}
|
|
446
|
-
handleDropdownShow() {
|
|
447
|
-
this.isOpen = true;
|
|
448
|
-
}
|
|
449
|
-
handleDropdownHide() {
|
|
450
|
-
this.isOpen = false;
|
|
451
|
-
}
|
|
452
|
-
formatDisplayDate(date, isStart = true) {
|
|
453
|
-
if (!date)
|
|
454
|
-
return "";
|
|
455
|
-
const format = this.displayFormat || (this.enableTime ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD");
|
|
456
|
-
if (this.enableTime) {
|
|
457
|
-
const year2 = date.getUTCFullYear();
|
|
458
|
-
const month2 = String(date.getUTCMonth() + 1).padStart(2, "0");
|
|
459
|
-
const day2 = String(date.getUTCDate()).padStart(2, "0");
|
|
460
|
-
const hours = String(isStart ? this.startHour : this.endHour).padStart(
|
|
461
|
-
2,
|
|
462
|
-
"0"
|
|
463
|
-
);
|
|
464
|
-
const minutes = String(
|
|
465
|
-
isStart ? this.startMinute : this.endMinute
|
|
466
|
-
).padStart(2, "0");
|
|
467
|
-
const seconds = String(
|
|
468
|
-
isStart ? this.startSecond : this.endSecond
|
|
469
|
-
).padStart(2, "0");
|
|
470
|
-
return format.replace("YYYY", year2.toString()).replace("MM", month2).replace("DD", day2).replace("HH", hours).replace("mm", minutes).replace("ss", seconds);
|
|
471
|
-
}
|
|
472
|
-
const year = date.getFullYear();
|
|
473
|
-
const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
474
|
-
const day = String(date.getDate()).padStart(2, "0");
|
|
475
|
-
return format.replace("YYYY", year.toString()).replace("MM", month).replace("DD", day);
|
|
476
|
-
}
|
|
477
|
-
getDisplayValue() {
|
|
478
|
-
if (this.range) {
|
|
479
|
-
if (this.selectedStart && this.selectedEnd) {
|
|
480
|
-
return `${this.formatDisplayDate(this.selectedStart, true)} \u2013 ${this.formatDisplayDate(this.selectedEnd, false)}`;
|
|
481
|
-
} else if (this.selectedStart) {
|
|
482
|
-
return this.formatDisplayDate(this.selectedStart, true);
|
|
483
|
-
}
|
|
484
|
-
return "";
|
|
485
|
-
} else {
|
|
486
|
-
return this.selectedStart ? this.formatDisplayDate(this.selectedStart, true) : "";
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
getStartDateDisplayValue() {
|
|
490
|
-
return this.selectedStart ? this.formatDisplayDate(this.selectedStart, true) : "";
|
|
491
|
-
}
|
|
492
|
-
getEndDateDisplayValue() {
|
|
493
|
-
return this.selectedEnd ? this.formatDisplayDate(this.selectedEnd, false) : "";
|
|
494
|
-
}
|
|
495
|
-
parseAndFormatDate(dateStr) {
|
|
496
|
-
const trimmed = dateStr.trim();
|
|
497
|
-
if (!trimmed)
|
|
498
|
-
return null;
|
|
499
|
-
const dateOnlyPattern = /^\d{4}-\d{2}-\d{2}$/;
|
|
500
|
-
const dateTimePattern = /^\d{4}-\d{2}-\d{2}[T\s]\d{1,2}:\d{2}(:\d{2})?$/;
|
|
501
|
-
let date;
|
|
502
|
-
if (dateOnlyPattern.test(trimmed)) {
|
|
503
|
-
date = this.parseLocalDate(trimmed);
|
|
504
|
-
} else if (this.enableTime && dateTimePattern.test(trimmed)) {
|
|
505
|
-
const [datePart, timePart] = trimmed.split(/[T\s]+/);
|
|
506
|
-
const [year, month, day] = datePart.split("-").map(Number);
|
|
507
|
-
const timeComponents = timePart.split(":").map(Number);
|
|
508
|
-
const hours = timeComponents[0] || 0;
|
|
509
|
-
const minutes = timeComponents[1] || 0;
|
|
510
|
-
const seconds = timeComponents[2] || 0;
|
|
511
|
-
date = new Date(Date.UTC(year, month - 1, day, hours, minutes, seconds));
|
|
512
|
-
} else {
|
|
513
|
-
date = new Date(trimmed);
|
|
514
|
-
if (!isValid(date)) {
|
|
515
|
-
return null;
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
if (!isValid(date)) {
|
|
519
|
-
return null;
|
|
520
|
-
}
|
|
521
|
-
if (this.enableTime) {
|
|
522
|
-
if (dateOnlyPattern.test(trimmed)) {
|
|
523
|
-
return trimmed;
|
|
524
|
-
} else {
|
|
525
|
-
const utcYear = date.getUTCFullYear();
|
|
526
|
-
const utcMonth = date.getUTCMonth() + 1;
|
|
527
|
-
const utcDay = date.getUTCDate();
|
|
528
|
-
const utcHours = date.getUTCHours();
|
|
529
|
-
const utcMinutes = date.getUTCMinutes();
|
|
530
|
-
const utcSeconds = date.getUTCSeconds();
|
|
531
|
-
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")}`;
|
|
532
|
-
}
|
|
533
|
-
} else {
|
|
534
|
-
const year = date.getFullYear();
|
|
535
|
-
const month = date.getMonth() + 1;
|
|
536
|
-
const day = date.getDate();
|
|
537
|
-
return `${year}-${String(month).padStart(2, "0")}-${String(day).padStart(2, "0")}`;
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
clearInputValidation() {
|
|
541
|
-
const inputs = this.renderRoot.querySelectorAll("terra-input");
|
|
542
|
-
inputs.forEach((input) => {
|
|
543
|
-
input.setCustomValidity("");
|
|
544
|
-
});
|
|
545
|
-
}
|
|
546
|
-
/**
|
|
547
|
-
* Format a date string for display in error messages
|
|
548
|
-
* When time is disabled, only show the date portion (YYYY-MM-DD)
|
|
549
|
-
*/
|
|
550
|
-
formatDateForError(dateString) {
|
|
551
|
-
if (!this.enableTime) {
|
|
552
|
-
return dateString.split("T")[0];
|
|
553
|
-
}
|
|
554
|
-
return dateString;
|
|
555
|
-
}
|
|
556
|
-
/**
|
|
557
|
-
* Set validation error on input and emit invalid event
|
|
558
|
-
*/
|
|
559
|
-
setInputValidationError(input, message) {
|
|
560
|
-
input.setCustomValidity(message);
|
|
561
|
-
requestAnimationFrame(() => {
|
|
562
|
-
;
|
|
563
|
-
input.validationErrorMessage = message;
|
|
564
|
-
input.requestUpdate();
|
|
565
|
-
});
|
|
566
|
-
this.emit("terra-date-selection-invalid", {
|
|
567
|
-
detail: { message }
|
|
568
|
-
});
|
|
569
|
-
}
|
|
570
|
-
handleInputBlur(event) {
|
|
571
|
-
const input = event.target;
|
|
572
|
-
const value = input.value || "";
|
|
573
|
-
if (!value.trim()) {
|
|
574
|
-
this.selectedStart = null;
|
|
575
|
-
this.selectedEnd = null;
|
|
576
|
-
input.setCustomValidity("");
|
|
577
|
-
this.emitChange();
|
|
578
|
-
return;
|
|
579
|
-
}
|
|
580
|
-
if (this.range) {
|
|
581
|
-
const normalized = value.replace(/(\d{2})-(\d{4})/, "$1 - $2");
|
|
582
|
-
const parts = normalized.split(/\s*–\s*|\s+-\s+/);
|
|
583
|
-
if (parts.length !== 2) {
|
|
584
|
-
const message = "Date range must be in format: YYYY-MM-DD \u2013 YYYY-MM-DD";
|
|
585
|
-
this.setInputValidationError(input, message);
|
|
586
|
-
return;
|
|
587
|
-
}
|
|
588
|
-
const startFormatted = this.parseAndFormatDate(parts[0]);
|
|
589
|
-
const endFormatted = this.parseAndFormatDate(parts[1]);
|
|
590
|
-
if (!startFormatted) {
|
|
591
|
-
const message = "Invalid start date format";
|
|
592
|
-
this.setInputValidationError(input, message);
|
|
593
|
-
return;
|
|
594
|
-
}
|
|
595
|
-
if (!endFormatted) {
|
|
596
|
-
const message = "Invalid end date format";
|
|
597
|
-
this.setInputValidationError(input, message);
|
|
598
|
-
return;
|
|
599
|
-
}
|
|
600
|
-
let start;
|
|
601
|
-
let end;
|
|
602
|
-
if (this.enableTime && startFormatted.includes("T")) {
|
|
603
|
-
start = new Date(startFormatted);
|
|
604
|
-
this.initializeTimeFromDate(start, true);
|
|
605
|
-
} else if (this.enableTime) {
|
|
606
|
-
const [year, month, day] = startFormatted.split("-").map(Number);
|
|
607
|
-
start = new Date(
|
|
608
|
-
Date.UTC(
|
|
609
|
-
year,
|
|
610
|
-
month - 1,
|
|
611
|
-
day,
|
|
612
|
-
this.startHour,
|
|
613
|
-
this.startMinute,
|
|
614
|
-
this.startSecond
|
|
615
|
-
)
|
|
616
|
-
);
|
|
617
|
-
} else {
|
|
618
|
-
start = this.parseLocalDate(startFormatted);
|
|
619
|
-
}
|
|
620
|
-
if (this.enableTime && endFormatted.includes("T")) {
|
|
621
|
-
end = new Date(endFormatted);
|
|
622
|
-
this.initializeTimeFromDate(end, false);
|
|
623
|
-
} else if (this.enableTime) {
|
|
624
|
-
const [year, month, day] = endFormatted.split("-").map(Number);
|
|
625
|
-
end = new Date(
|
|
626
|
-
Date.UTC(
|
|
627
|
-
year,
|
|
628
|
-
month - 1,
|
|
629
|
-
day,
|
|
630
|
-
this.endHour,
|
|
631
|
-
this.endMinute,
|
|
632
|
-
this.endSecond
|
|
633
|
-
)
|
|
634
|
-
);
|
|
635
|
-
} else {
|
|
636
|
-
end = this.parseLocalDate(endFormatted);
|
|
637
|
-
}
|
|
638
|
-
let finalStart = start;
|
|
639
|
-
let finalEnd = end;
|
|
640
|
-
if (start > end) {
|
|
641
|
-
finalStart = end;
|
|
642
|
-
finalEnd = start;
|
|
643
|
-
}
|
|
644
|
-
if (this.minDate) {
|
|
645
|
-
const min = this.parseLocalDate(this.minDate);
|
|
646
|
-
if (finalStart < min) {
|
|
647
|
-
const message = `Start date must be on or after ${this.formatDateForError(this.minDate)}`;
|
|
648
|
-
this.setInputValidationError(input, message);
|
|
649
|
-
return;
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
if (this.maxDate) {
|
|
653
|
-
const max = this.parseLocalDate(this.maxDate);
|
|
654
|
-
if (finalEnd > max) {
|
|
655
|
-
const message = `End date must be on or before ${this.formatDateForError(this.maxDate)}`;
|
|
656
|
-
this.setInputValidationError(input, message);
|
|
657
|
-
return;
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
this.selectedStart = finalStart;
|
|
661
|
-
this.selectedEnd = finalEnd;
|
|
662
|
-
this.updateMonthViews();
|
|
663
|
-
input.value = `${startFormatted} - ${endFormatted}`;
|
|
664
|
-
input.setCustomValidity("");
|
|
665
|
-
this.emitChange();
|
|
666
|
-
} else {
|
|
667
|
-
const formatted = this.parseAndFormatDate(value);
|
|
668
|
-
if (!formatted) {
|
|
669
|
-
const message = "Invalid date format";
|
|
670
|
-
this.setInputValidationError(input, message);
|
|
671
|
-
return;
|
|
672
|
-
}
|
|
673
|
-
let date;
|
|
674
|
-
if (this.enableTime && formatted.includes("T")) {
|
|
675
|
-
date = new Date(formatted);
|
|
676
|
-
this.initializeTimeFromDate(date, true);
|
|
677
|
-
} else if (this.enableTime) {
|
|
678
|
-
const [year, month, day] = formatted.split("-").map(Number);
|
|
679
|
-
date = new Date(
|
|
680
|
-
Date.UTC(
|
|
681
|
-
year,
|
|
682
|
-
month - 1,
|
|
683
|
-
day,
|
|
684
|
-
this.startHour,
|
|
685
|
-
this.startMinute,
|
|
686
|
-
this.startSecond
|
|
687
|
-
)
|
|
688
|
-
);
|
|
689
|
-
} else {
|
|
690
|
-
date = this.parseLocalDate(formatted);
|
|
691
|
-
}
|
|
692
|
-
if (this.minDate) {
|
|
693
|
-
const min = this.parseLocalDate(this.minDate);
|
|
694
|
-
if (date < min) {
|
|
695
|
-
const message = `Date must be on or after ${this.formatDateForError(this.minDate)}`;
|
|
696
|
-
this.setInputValidationError(input, message);
|
|
697
|
-
return;
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
if (this.maxDate) {
|
|
701
|
-
const max = this.parseLocalDate(this.maxDate);
|
|
702
|
-
if (date > max) {
|
|
703
|
-
const message = `Date must be on or before ${this.formatDateForError(this.maxDate)}`;
|
|
704
|
-
this.setInputValidationError(input, message);
|
|
705
|
-
return;
|
|
706
|
-
}
|
|
707
|
-
}
|
|
708
|
-
this.selectedStart = date;
|
|
709
|
-
this.selectedEnd = null;
|
|
710
|
-
this.updateMonthViews();
|
|
711
|
-
input.value = formatted;
|
|
712
|
-
input.setCustomValidity("");
|
|
713
|
-
this.emitChange();
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
handleStartInputBlur(event) {
|
|
717
|
-
const input = event.target;
|
|
718
|
-
const value = input.value || "";
|
|
719
|
-
if (!value.trim()) {
|
|
720
|
-
this.selectedStart = null;
|
|
721
|
-
input.setCustomValidity("");
|
|
722
|
-
this.emitChange();
|
|
723
|
-
return;
|
|
724
|
-
}
|
|
725
|
-
const formatted = this.parseAndFormatDate(value);
|
|
726
|
-
if (!formatted) {
|
|
727
|
-
const message = "Invalid date format";
|
|
728
|
-
this.setInputValidationError(input, message);
|
|
729
|
-
return;
|
|
730
|
-
}
|
|
731
|
-
let date;
|
|
732
|
-
if (this.enableTime && formatted.includes("T")) {
|
|
733
|
-
date = new Date(formatted);
|
|
734
|
-
this.initializeTimeFromDate(date, true);
|
|
735
|
-
} else if (this.enableTime) {
|
|
736
|
-
const [year, month, day] = formatted.split("-").map(Number);
|
|
737
|
-
date = new Date(
|
|
738
|
-
Date.UTC(
|
|
739
|
-
year,
|
|
740
|
-
month - 1,
|
|
741
|
-
day,
|
|
742
|
-
this.startHour,
|
|
743
|
-
this.startMinute,
|
|
744
|
-
this.startSecond
|
|
745
|
-
)
|
|
746
|
-
);
|
|
747
|
-
} else {
|
|
748
|
-
date = this.parseLocalDate(formatted);
|
|
749
|
-
}
|
|
750
|
-
if (this.minDate) {
|
|
751
|
-
const min = this.parseLocalDate(this.minDate);
|
|
752
|
-
if (date < min) {
|
|
753
|
-
const message = `Date must be on or after ${this.formatDateForError(this.minDate)}`;
|
|
754
|
-
this.setInputValidationError(input, message);
|
|
755
|
-
return;
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
if (this.maxDate) {
|
|
759
|
-
const max = this.parseLocalDate(this.maxDate);
|
|
760
|
-
if (date > max) {
|
|
761
|
-
const message = `Date must be on or before ${this.formatDateForError(this.maxDate)}`;
|
|
762
|
-
this.setInputValidationError(input, message);
|
|
763
|
-
return;
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
if (this.selectedEnd && date > this.selectedEnd) {
|
|
767
|
-
const message = "Start date must be before end date";
|
|
768
|
-
this.setInputValidationError(input, message);
|
|
769
|
-
return;
|
|
770
|
-
}
|
|
771
|
-
this.selectedStart = date;
|
|
772
|
-
this.leftMonth = new Date(date);
|
|
773
|
-
input.value = formatted;
|
|
774
|
-
input.setCustomValidity("");
|
|
775
|
-
this.emitChange();
|
|
776
|
-
}
|
|
777
|
-
handleEndInputBlur(event) {
|
|
778
|
-
const input = event.target;
|
|
779
|
-
const value = input.value || "";
|
|
780
|
-
if (!value.trim()) {
|
|
781
|
-
this.selectedEnd = null;
|
|
782
|
-
input.setCustomValidity("");
|
|
783
|
-
this.emitChange();
|
|
784
|
-
return;
|
|
785
|
-
}
|
|
786
|
-
const formatted = this.parseAndFormatDate(value);
|
|
787
|
-
if (!formatted) {
|
|
788
|
-
const message = "Invalid date format";
|
|
789
|
-
this.setInputValidationError(input, message);
|
|
790
|
-
return;
|
|
791
|
-
}
|
|
792
|
-
let date;
|
|
793
|
-
if (this.enableTime && formatted.includes("T")) {
|
|
794
|
-
date = new Date(formatted);
|
|
795
|
-
this.initializeTimeFromDate(date, false);
|
|
796
|
-
} else if (this.enableTime) {
|
|
797
|
-
const [year, month, day] = formatted.split("-").map(Number);
|
|
798
|
-
date = new Date(
|
|
799
|
-
Date.UTC(
|
|
800
|
-
year,
|
|
801
|
-
month - 1,
|
|
802
|
-
day,
|
|
803
|
-
this.endHour,
|
|
804
|
-
this.endMinute,
|
|
805
|
-
this.endSecond
|
|
806
|
-
)
|
|
807
|
-
);
|
|
808
|
-
} else {
|
|
809
|
-
date = this.parseLocalDate(formatted);
|
|
810
|
-
}
|
|
811
|
-
if (this.minDate) {
|
|
812
|
-
const min = this.parseLocalDate(this.minDate);
|
|
813
|
-
if (date < min) {
|
|
814
|
-
const message = `Date must be on or after ${this.formatDateForError(this.minDate)}`;
|
|
815
|
-
this.setInputValidationError(input, message);
|
|
816
|
-
return;
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
if (this.maxDate) {
|
|
820
|
-
const max = this.parseLocalDate(this.maxDate);
|
|
821
|
-
if (date > max) {
|
|
822
|
-
const message = `Date must be on or before ${this.formatDateForError(this.maxDate)}`;
|
|
823
|
-
this.setInputValidationError(input, message);
|
|
824
|
-
return;
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
if (this.selectedStart) {
|
|
828
|
-
if (this.enableTime && this.isSameDay(date, this.selectedStart)) {
|
|
829
|
-
const startTimeSeconds = this.startHour * 3600 + this.startMinute * 60 + this.startSecond;
|
|
830
|
-
const endTimeSeconds = this.endHour * 3600 + this.endMinute * 60 + this.endSecond;
|
|
831
|
-
if (endTimeSeconds < startTimeSeconds) {
|
|
832
|
-
const message = "End time must be after start time when dates are the same";
|
|
833
|
-
this.setInputValidationError(input, message);
|
|
834
|
-
return;
|
|
835
|
-
}
|
|
836
|
-
} else if (date < this.selectedStart) {
|
|
837
|
-
const message = "End date must be after start date";
|
|
838
|
-
this.setInputValidationError(input, message);
|
|
839
|
-
return;
|
|
840
|
-
}
|
|
841
|
-
}
|
|
842
|
-
this.selectedEnd = date;
|
|
843
|
-
if (this.selectedStart && this.isSameMonth(this.selectedStart, this.selectedEnd)) {
|
|
844
|
-
this.rightMonth = new Date(this.selectedStart);
|
|
845
|
-
this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
|
|
846
|
-
} else {
|
|
847
|
-
this.rightMonth = new Date(date);
|
|
848
|
-
}
|
|
849
|
-
input.setCustomValidity("");
|
|
850
|
-
this.emitChange();
|
|
851
|
-
}
|
|
852
|
-
updateMonthViews() {
|
|
853
|
-
if (this.selectedStart) {
|
|
854
|
-
this.leftMonth = new Date(this.selectedStart);
|
|
855
|
-
if (this.range && this.selectedEnd) {
|
|
856
|
-
if (this.isSameMonth(this.selectedStart, this.selectedEnd)) {
|
|
857
|
-
this.rightMonth = new Date(this.selectedStart);
|
|
858
|
-
this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
|
|
859
|
-
} else {
|
|
860
|
-
this.rightMonth = new Date(this.selectedEnd);
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
handleKeydown(event) {
|
|
866
|
-
if (event.key === " ") {
|
|
867
|
-
event.stopPropagation();
|
|
868
|
-
return;
|
|
869
|
-
}
|
|
870
|
-
if (event.key === "Enter") {
|
|
871
|
-
event.preventDefault();
|
|
872
|
-
this.handleInputBlur(event);
|
|
873
|
-
}
|
|
874
|
-
}
|
|
875
|
-
previousMonth(isLeft) {
|
|
876
|
-
if (isLeft) {
|
|
877
|
-
const newMonth = new Date(this.leftMonth);
|
|
878
|
-
newMonth.setMonth(newMonth.getMonth() - 1);
|
|
879
|
-
this.leftMonth = newMonth;
|
|
880
|
-
} else {
|
|
881
|
-
const newMonth = new Date(this.rightMonth);
|
|
882
|
-
newMonth.setMonth(newMonth.getMonth() - 1);
|
|
883
|
-
this.rightMonth = newMonth;
|
|
884
|
-
}
|
|
885
|
-
}
|
|
886
|
-
nextMonth(isLeft) {
|
|
887
|
-
if (isLeft) {
|
|
888
|
-
const newMonth = new Date(this.leftMonth);
|
|
889
|
-
newMonth.setMonth(newMonth.getMonth() + 1);
|
|
890
|
-
this.leftMonth = newMonth;
|
|
891
|
-
} else {
|
|
892
|
-
const newMonth = new Date(this.rightMonth);
|
|
893
|
-
newMonth.setMonth(newMonth.getMonth() + 1);
|
|
894
|
-
this.rightMonth = newMonth;
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
toggleMonthDropdown(isLeft, event) {
|
|
898
|
-
event.stopPropagation();
|
|
899
|
-
if (isLeft) {
|
|
900
|
-
this.showLeftMonthDropdown = !this.showLeftMonthDropdown;
|
|
901
|
-
this.showRightMonthDropdown = false;
|
|
902
|
-
} else {
|
|
903
|
-
this.showRightMonthDropdown = !this.showRightMonthDropdown;
|
|
904
|
-
this.showLeftMonthDropdown = false;
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
selectMonth(month, isLeft) {
|
|
908
|
-
if (isLeft) {
|
|
909
|
-
const newMonth = new Date(this.leftMonth);
|
|
910
|
-
newMonth.setDate(1);
|
|
911
|
-
newMonth.setMonth(month);
|
|
912
|
-
this.leftMonth = newMonth;
|
|
913
|
-
this.showLeftMonthDropdown = false;
|
|
914
|
-
} else {
|
|
915
|
-
const newMonth = new Date(this.rightMonth);
|
|
916
|
-
newMonth.setDate(1);
|
|
917
|
-
newMonth.setMonth(month);
|
|
918
|
-
this.rightMonth = newMonth;
|
|
919
|
-
this.showRightMonthDropdown = false;
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
changeYear(delta, isLeft) {
|
|
923
|
-
if (isLeft) {
|
|
924
|
-
const newMonth = new Date(this.leftMonth);
|
|
925
|
-
newMonth.setFullYear(newMonth.getFullYear() + delta);
|
|
926
|
-
this.leftMonth = newMonth;
|
|
927
|
-
} else {
|
|
928
|
-
const newMonth = new Date(this.rightMonth);
|
|
929
|
-
newMonth.setFullYear(newMonth.getFullYear() + delta);
|
|
930
|
-
this.rightMonth = newMonth;
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
-
handleYearInput(event, isLeft) {
|
|
934
|
-
const input = event.target;
|
|
935
|
-
const year = parseInt(input.value, 10);
|
|
936
|
-
if (!isNaN(year) && year >= 1900 && year <= 2100) {
|
|
937
|
-
if (isLeft) {
|
|
938
|
-
const newMonth = new Date(this.leftMonth);
|
|
939
|
-
newMonth.setFullYear(year);
|
|
940
|
-
this.leftMonth = newMonth;
|
|
941
|
-
} else {
|
|
942
|
-
const newMonth = new Date(this.rightMonth);
|
|
943
|
-
newMonth.setFullYear(year);
|
|
944
|
-
this.rightMonth = newMonth;
|
|
945
|
-
}
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
getDaysInMonth(date) {
|
|
949
|
-
const year = date.getFullYear();
|
|
950
|
-
const month = date.getMonth();
|
|
951
|
-
const createDate = (y, m, d) => {
|
|
952
|
-
if (this.enableTime) {
|
|
953
|
-
return new Date(Date.UTC(y, m, d, 0, 0, 0));
|
|
954
|
-
}
|
|
955
|
-
return new Date(y, m, d);
|
|
956
|
-
};
|
|
957
|
-
const firstDay = createDate(year, month, 1);
|
|
958
|
-
const lastDay = new Date(year, month + 1, 0);
|
|
959
|
-
const days = [];
|
|
960
|
-
const firstDayOfWeek = this.enableTime ? firstDay.getUTCDay() : firstDay.getDay();
|
|
961
|
-
for (let i = firstDayOfWeek - 1; i >= 0; i--) {
|
|
962
|
-
const day = createDate(year, month, -i);
|
|
963
|
-
days.push(day);
|
|
964
|
-
}
|
|
965
|
-
for (let i = 1; i <= lastDay.getDate(); i++) {
|
|
966
|
-
days.push(createDate(year, month, i));
|
|
967
|
-
}
|
|
968
|
-
const remainingDays = 7 - days.length % 7;
|
|
969
|
-
if (remainingDays < 7) {
|
|
970
|
-
for (let i = 1; i <= remainingDays; i++) {
|
|
971
|
-
days.push(createDate(year, month + 1, i));
|
|
972
|
-
}
|
|
973
|
-
}
|
|
974
|
-
return days;
|
|
975
|
-
}
|
|
976
|
-
isSameDay(date1, date2) {
|
|
977
|
-
if (!date1 || !date2)
|
|
978
|
-
return false;
|
|
979
|
-
if (this.enableTime) {
|
|
980
|
-
return date1.getUTCFullYear() === date2.getUTCFullYear() && date1.getUTCMonth() === date2.getUTCMonth() && date1.getUTCDate() === date2.getUTCDate();
|
|
981
|
-
}
|
|
982
|
-
return date1.getFullYear() === date2.getFullYear() && date1.getMonth() === date2.getMonth() && date1.getDate() === date2.getDate();
|
|
983
|
-
}
|
|
984
|
-
isInRange(date) {
|
|
985
|
-
if (!this.selectedStart || !this.selectedEnd)
|
|
986
|
-
return false;
|
|
987
|
-
const time = date.getTime();
|
|
988
|
-
return time >= this.selectedStart.getTime() && time <= this.selectedEnd.getTime();
|
|
989
|
-
}
|
|
990
|
-
isInHoverRange(date) {
|
|
991
|
-
if (!this.range || !this.selectedStart || !this.hoverDate || this.selectedEnd)
|
|
992
|
-
return false;
|
|
993
|
-
const time = date.getTime();
|
|
994
|
-
const start = Math.min(this.selectedStart.getTime(), this.hoverDate.getTime());
|
|
995
|
-
const end = Math.max(this.selectedStart.getTime(), this.hoverDate.getTime());
|
|
996
|
-
return time >= start && time <= end;
|
|
997
|
-
}
|
|
998
|
-
isDisabled(date) {
|
|
999
|
-
if (this.minDate) {
|
|
1000
|
-
const min = this.parseLocalDate(this.minDate);
|
|
1001
|
-
const minMidnight = new Date(
|
|
1002
|
-
Date.UTC(min.getUTCFullYear(), min.getUTCMonth(), min.getUTCDate())
|
|
1003
|
-
);
|
|
1004
|
-
const dateMidnight = new Date(
|
|
1005
|
-
Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate())
|
|
1006
|
-
);
|
|
1007
|
-
if (dateMidnight < minMidnight)
|
|
1008
|
-
return true;
|
|
1009
|
-
}
|
|
1010
|
-
if (this.maxDate) {
|
|
1011
|
-
const max = this.parseLocalDate(this.maxDate);
|
|
1012
|
-
const maxMidnight = new Date(
|
|
1013
|
-
Date.UTC(max.getUTCFullYear(), max.getUTCMonth(), max.getUTCDate())
|
|
1014
|
-
);
|
|
1015
|
-
const dateMidnight = new Date(
|
|
1016
|
-
Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate())
|
|
1017
|
-
);
|
|
1018
|
-
if (dateMidnight > maxMidnight)
|
|
1019
|
-
return true;
|
|
1020
|
-
}
|
|
1021
|
-
return false;
|
|
1022
|
-
}
|
|
1023
|
-
selectDate(date) {
|
|
1024
|
-
if (this.isDisabled(date)) {
|
|
1025
|
-
this.emit("terra-date-selection-invalid", {
|
|
1026
|
-
detail: {
|
|
1027
|
-
message: `You are not allowed to select dates outside ${this.minDate} to ${this.maxDate}.`
|
|
1028
|
-
}
|
|
1029
|
-
});
|
|
1030
|
-
return;
|
|
1031
|
-
}
|
|
1032
|
-
this.clearInputValidation();
|
|
1033
|
-
if (this.range) {
|
|
1034
|
-
if (!this.selectedStart || this.selectedEnd) {
|
|
1035
|
-
this.selectedStart = date;
|
|
1036
|
-
this.selectedEnd = null;
|
|
1037
|
-
this.isSelectingRange = true;
|
|
1038
|
-
} else {
|
|
1039
|
-
if (date < this.selectedStart) {
|
|
1040
|
-
this.selectedEnd = this.selectedStart;
|
|
1041
|
-
this.selectedStart = date;
|
|
1042
|
-
} else {
|
|
1043
|
-
this.selectedEnd = date;
|
|
1044
|
-
}
|
|
1045
|
-
this.isSelectingRange = false;
|
|
1046
|
-
if (this.enableTime && this.selectedStart && this.selectedEnd && this.isSameDay(this.selectedStart, this.selectedEnd)) {
|
|
1047
|
-
const startTimeSeconds = this.startHour * 3600 + this.startMinute * 60 + this.startSecond;
|
|
1048
|
-
const endTimeSeconds = this.endHour * 3600 + this.endMinute * 60 + this.endSecond;
|
|
1049
|
-
if (endTimeSeconds < startTimeSeconds) {
|
|
1050
|
-
this.emit("terra-date-selection-invalid", {
|
|
1051
|
-
detail: {
|
|
1052
|
-
message: "End time is before start time. Please adjust the time values."
|
|
1053
|
-
}
|
|
1054
|
-
});
|
|
1055
|
-
}
|
|
1056
|
-
}
|
|
1057
|
-
this.emitChange();
|
|
1058
|
-
if (!this.inline) {
|
|
1059
|
-
this.isOpen = false;
|
|
1060
|
-
}
|
|
1061
|
-
}
|
|
1062
|
-
} else {
|
|
1063
|
-
this.selectedStart = date;
|
|
1064
|
-
this.selectedEnd = null;
|
|
1065
|
-
this.emitChange();
|
|
1066
|
-
if (!this.inline) {
|
|
1067
|
-
this.isOpen = false;
|
|
1068
|
-
}
|
|
1069
|
-
}
|
|
1070
|
-
}
|
|
1071
|
-
handleDateHover(date) {
|
|
1072
|
-
if (this.range && this.selectedStart && !this.selectedEnd) {
|
|
1073
|
-
this.hoverDate = date;
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
selectPreset(preset) {
|
|
1077
|
-
const { startDate, endDate } = preset.getValue();
|
|
1078
|
-
if (!this.isPresetWithinBounds({ startDate, endDate })) {
|
|
1079
|
-
this.emit("terra-date-selection-invalid", {
|
|
1080
|
-
detail: {
|
|
1081
|
-
message: `The preset "${preset.label}" is not available within the allowed date range ${this.minDate} to ${this.maxDate}.`
|
|
1082
|
-
}
|
|
1083
|
-
});
|
|
1084
|
-
return;
|
|
1085
|
-
}
|
|
1086
|
-
this.clearInputValidation();
|
|
1087
|
-
const { min, max } = this.getBounds();
|
|
1088
|
-
if (this.range) {
|
|
1089
|
-
let s = startDate;
|
|
1090
|
-
let e3 = endDate;
|
|
1091
|
-
if (s && min && s < min)
|
|
1092
|
-
s = new Date(min);
|
|
1093
|
-
if (s && max && s > max)
|
|
1094
|
-
s = new Date(max);
|
|
1095
|
-
if (e3 && min && e3 < min)
|
|
1096
|
-
e3 = new Date(min);
|
|
1097
|
-
if (e3 && max && e3 > max)
|
|
1098
|
-
e3 = new Date(max);
|
|
1099
|
-
if (s && e3 && e3 < s) {
|
|
1100
|
-
const tmp = s;
|
|
1101
|
-
s = e3;
|
|
1102
|
-
e3 = tmp;
|
|
1103
|
-
}
|
|
1104
|
-
this.selectedStart = s;
|
|
1105
|
-
this.selectedEnd = e3;
|
|
1106
|
-
} else {
|
|
1107
|
-
let s = startDate;
|
|
1108
|
-
if (s && min && s < min)
|
|
1109
|
-
s = new Date(min);
|
|
1110
|
-
if (s && max && s > max)
|
|
1111
|
-
s = new Date(max);
|
|
1112
|
-
this.selectedStart = s;
|
|
1113
|
-
this.selectedEnd = null;
|
|
1114
|
-
}
|
|
1115
|
-
if (this.selectedStart) {
|
|
1116
|
-
this.leftMonth = new Date(this.selectedStart);
|
|
1117
|
-
if (this.range && this.selectedEnd) {
|
|
1118
|
-
this.rightMonth = new Date(this.selectedEnd);
|
|
1119
|
-
}
|
|
1120
|
-
}
|
|
1121
|
-
this.emitChange();
|
|
1122
|
-
if (!this.range && !this.inline) {
|
|
1123
|
-
this.isOpen = false;
|
|
1124
|
-
}
|
|
1125
|
-
}
|
|
1126
|
-
emitChange() {
|
|
1127
|
-
let startDateTime = "";
|
|
1128
|
-
let endDateTime = "";
|
|
1129
|
-
if (this.selectedStart) {
|
|
1130
|
-
if (this.enableTime) {
|
|
1131
|
-
const startDate = new Date(this.selectedStart);
|
|
1132
|
-
startDate.setUTCHours(
|
|
1133
|
-
this.startHour,
|
|
1134
|
-
this.startMinute,
|
|
1135
|
-
this.startSecond,
|
|
1136
|
-
0
|
|
1137
|
-
);
|
|
1138
|
-
startDateTime = startDate.toISOString();
|
|
1139
|
-
} else {
|
|
1140
|
-
const year = this.selectedStart.getFullYear();
|
|
1141
|
-
const month = String(this.selectedStart.getMonth() + 1).padStart(
|
|
1142
|
-
2,
|
|
1143
|
-
"0"
|
|
1144
|
-
);
|
|
1145
|
-
const day = String(this.selectedStart.getDate()).padStart(2, "0");
|
|
1146
|
-
startDateTime = `${year}-${month}-${day}`;
|
|
1147
|
-
}
|
|
1148
|
-
}
|
|
1149
|
-
if (this.selectedEnd) {
|
|
1150
|
-
if (this.enableTime) {
|
|
1151
|
-
const endDate = new Date(this.selectedEnd);
|
|
1152
|
-
endDate.setUTCHours(this.endHour, this.endMinute, this.endSecond, 0);
|
|
1153
|
-
endDateTime = endDate.toISOString();
|
|
1154
|
-
} else {
|
|
1155
|
-
const year = this.selectedEnd.getFullYear();
|
|
1156
|
-
const month = String(this.selectedEnd.getMonth() + 1).padStart(2, "0");
|
|
1157
|
-
const day = String(this.selectedEnd.getDate()).padStart(2, "0");
|
|
1158
|
-
endDateTime = `${year}-${month}-${day}`;
|
|
1159
|
-
}
|
|
1160
|
-
}
|
|
1161
|
-
this.emit("terra-date-range-change", {
|
|
1162
|
-
detail: {
|
|
1163
|
-
startDate: startDateTime,
|
|
1164
|
-
endDate: endDateTime
|
|
1165
|
-
}
|
|
1166
|
-
});
|
|
1167
|
-
}
|
|
1168
|
-
initializeTimeFromDate(date, isStart) {
|
|
1169
|
-
const hours = date.getUTCHours();
|
|
1170
|
-
const minutes = date.getUTCMinutes();
|
|
1171
|
-
const seconds = date.getUTCSeconds();
|
|
1172
|
-
if (isStart) {
|
|
1173
|
-
this.startHour = hours;
|
|
1174
|
-
this.startMinute = minutes;
|
|
1175
|
-
this.startSecond = seconds;
|
|
1176
|
-
} else {
|
|
1177
|
-
this.endHour = hours;
|
|
1178
|
-
this.endMinute = minutes;
|
|
1179
|
-
this.endSecond = seconds;
|
|
1180
|
-
}
|
|
1181
|
-
}
|
|
1182
|
-
changeTime(type, delta, isStart) {
|
|
1183
|
-
if (type === "hour") {
|
|
1184
|
-
if (isStart) {
|
|
1185
|
-
let newHour = this.startHour + delta;
|
|
1186
|
-
if (newHour > 23)
|
|
1187
|
-
newHour = 0;
|
|
1188
|
-
if (newHour < 0)
|
|
1189
|
-
newHour = 23;
|
|
1190
|
-
this.startHour = newHour;
|
|
1191
|
-
} else {
|
|
1192
|
-
let newHour = this.endHour + delta;
|
|
1193
|
-
if (newHour > 23)
|
|
1194
|
-
newHour = 0;
|
|
1195
|
-
if (newHour < 0)
|
|
1196
|
-
newHour = 23;
|
|
1197
|
-
this.endHour = newHour;
|
|
1198
|
-
}
|
|
1199
|
-
} else if (type === "minute") {
|
|
1200
|
-
if (isStart) {
|
|
1201
|
-
let newMinute = this.startMinute + delta;
|
|
1202
|
-
if (newMinute >= 60)
|
|
1203
|
-
newMinute = 0;
|
|
1204
|
-
if (newMinute < 0)
|
|
1205
|
-
newMinute = 59;
|
|
1206
|
-
this.startMinute = newMinute;
|
|
1207
|
-
} else {
|
|
1208
|
-
let newMinute = this.endMinute + delta;
|
|
1209
|
-
if (newMinute >= 60)
|
|
1210
|
-
newMinute = 0;
|
|
1211
|
-
if (newMinute < 0)
|
|
1212
|
-
newMinute = 59;
|
|
1213
|
-
this.endMinute = newMinute;
|
|
1214
|
-
}
|
|
1215
|
-
} else {
|
|
1216
|
-
if (isStart) {
|
|
1217
|
-
let newSecond = this.startSecond + delta;
|
|
1218
|
-
if (newSecond >= 60)
|
|
1219
|
-
newSecond = 0;
|
|
1220
|
-
if (newSecond < 0)
|
|
1221
|
-
newSecond = 59;
|
|
1222
|
-
this.startSecond = newSecond;
|
|
1223
|
-
} else {
|
|
1224
|
-
let newSecond = this.endSecond + delta;
|
|
1225
|
-
if (newSecond >= 60)
|
|
1226
|
-
newSecond = 0;
|
|
1227
|
-
if (newSecond < 0)
|
|
1228
|
-
newSecond = 59;
|
|
1229
|
-
this.endSecond = newSecond;
|
|
1230
|
-
}
|
|
1231
|
-
}
|
|
1232
|
-
this.emitChange();
|
|
1233
|
-
this.requestUpdate();
|
|
1234
|
-
}
|
|
1235
|
-
handleTimeInput(event, type, isStart) {
|
|
1236
|
-
const input = event.target;
|
|
1237
|
-
let value = parseInt(input.value, 10);
|
|
1238
|
-
if (type === "hour") {
|
|
1239
|
-
if (isNaN(value) || value < 0 || value > 23) {
|
|
1240
|
-
input.value = isStart ? this.startHour.toString().padStart(2, "0") : this.endHour.toString().padStart(2, "0");
|
|
1241
|
-
return;
|
|
1242
|
-
}
|
|
1243
|
-
if (isStart)
|
|
1244
|
-
this.startHour = value;
|
|
1245
|
-
else
|
|
1246
|
-
this.endHour = value;
|
|
1247
|
-
} else if (type === "minute") {
|
|
1248
|
-
if (isNaN(value) || value < 0 || value >= 60) {
|
|
1249
|
-
input.value = isStart ? this.startMinute.toString().padStart(2, "0") : this.endMinute.toString().padStart(2, "0");
|
|
1250
|
-
return;
|
|
1251
|
-
}
|
|
1252
|
-
if (isStart)
|
|
1253
|
-
this.startMinute = value;
|
|
1254
|
-
else
|
|
1255
|
-
this.endMinute = value;
|
|
1256
|
-
} else {
|
|
1257
|
-
if (isNaN(value) || value < 0 || value >= 60) {
|
|
1258
|
-
input.value = isStart ? this.startSecond.toString().padStart(2, "0") : this.endSecond.toString().padStart(2, "0");
|
|
1259
|
-
return;
|
|
1260
|
-
}
|
|
1261
|
-
if (isStart)
|
|
1262
|
-
this.startSecond = value;
|
|
1263
|
-
else
|
|
1264
|
-
this.endSecond = value;
|
|
1265
|
-
}
|
|
1266
|
-
this.emitChange();
|
|
1267
|
-
this.requestUpdate();
|
|
1268
|
-
}
|
|
1269
|
-
renderCalendar(month, isLeft = true) {
|
|
1270
|
-
const days = this.getDaysInMonth(month);
|
|
1271
|
-
const currentMonth = month.getMonth();
|
|
1272
|
-
const showDropdown = isLeft ? this.showLeftMonthDropdown : this.showRightMonthDropdown;
|
|
1273
|
-
return b`
|
|
1274
|
-
<div class="calendar">
|
|
1275
|
-
<div class="calendar__header">
|
|
1276
|
-
<button
|
|
1277
|
-
type="button"
|
|
1278
|
-
class="calendar__nav"
|
|
1279
|
-
@click=${() => this.previousMonth(isLeft)}
|
|
1280
|
-
>
|
|
1281
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
1282
|
-
<path
|
|
1283
|
-
d="M10 12L6 8L10 4"
|
|
1284
|
-
stroke="currentColor"
|
|
1285
|
-
stroke-width="2"
|
|
1286
|
-
stroke-linecap="round"
|
|
1287
|
-
stroke-linejoin="round"
|
|
1288
|
-
/>
|
|
1289
|
-
</svg>
|
|
1290
|
-
</button>
|
|
1291
|
-
|
|
1292
|
-
<div class="calendar__month-year">
|
|
1293
|
-
<div class="calendar__month-dropdown-wrapper">
|
|
1294
|
-
<button
|
|
1295
|
-
type="button"
|
|
1296
|
-
class="calendar__month-button"
|
|
1297
|
-
@click=${(e3) => this.toggleMonthDropdown(isLeft, e3)}
|
|
1298
|
-
>
|
|
1299
|
-
${this.MONTHS[month.getMonth()]}
|
|
1300
|
-
<svg
|
|
1301
|
-
width="12"
|
|
1302
|
-
height="12"
|
|
1303
|
-
viewBox="0 0 12 12"
|
|
1304
|
-
fill="none"
|
|
1305
|
-
class="calendar__month-icon"
|
|
1306
|
-
>
|
|
1307
|
-
<path
|
|
1308
|
-
d="M3 5L6 8L9 5"
|
|
1309
|
-
stroke="currentColor"
|
|
1310
|
-
stroke-width="1.5"
|
|
1311
|
-
stroke-linecap="round"
|
|
1312
|
-
stroke-linejoin="round"
|
|
1313
|
-
/>
|
|
1314
|
-
</svg>
|
|
1315
|
-
</button>
|
|
1316
|
-
|
|
1317
|
-
${showDropdown ? b`
|
|
1318
|
-
<div class="calendar__month-dropdown">
|
|
1319
|
-
${this.MONTHS.map(
|
|
1320
|
-
(monthName, index) => b`
|
|
1321
|
-
<button
|
|
1322
|
-
type="button"
|
|
1323
|
-
class="calendar__month-option ${index === month.getMonth() ? "calendar__month-option--selected" : ""}"
|
|
1324
|
-
@click=${() => this.selectMonth(
|
|
1325
|
-
index,
|
|
1326
|
-
isLeft
|
|
1327
|
-
)}
|
|
1328
|
-
>
|
|
1329
|
-
${index === month.getMonth() ? b`
|
|
1330
|
-
<svg
|
|
1331
|
-
width="16"
|
|
1332
|
-
height="16"
|
|
1333
|
-
viewBox="0 0 16 16"
|
|
1334
|
-
fill="none"
|
|
1335
|
-
class="calendar__month-check"
|
|
1336
|
-
>
|
|
1337
|
-
<path
|
|
1338
|
-
d="M13 4L6 11L3 8"
|
|
1339
|
-
stroke="currentColor"
|
|
1340
|
-
stroke-width="2"
|
|
1341
|
-
stroke-linecap="round"
|
|
1342
|
-
stroke-linejoin="round"
|
|
1343
|
-
/>
|
|
1344
|
-
</svg>
|
|
1345
|
-
` : ""}
|
|
1346
|
-
${monthName}
|
|
1347
|
-
</button>
|
|
1348
|
-
`
|
|
1349
|
-
)}
|
|
1350
|
-
</div>
|
|
1351
|
-
` : ""}
|
|
1352
|
-
</div>
|
|
1353
|
-
|
|
1354
|
-
<div class="calendar__year-input-wrapper">
|
|
1355
|
-
<input
|
|
1356
|
-
type="number"
|
|
1357
|
-
class="calendar__year-input"
|
|
1358
|
-
.value=${month.getFullYear().toString()}
|
|
1359
|
-
@input=${(e3) => this.handleYearInput(e3, isLeft)}
|
|
1360
|
-
@blur=${(e3) => {
|
|
1361
|
-
const input = e3.target;
|
|
1362
|
-
input.value = month.getFullYear().toString();
|
|
1363
|
-
}}
|
|
1364
|
-
min="1900"
|
|
1365
|
-
max="2100"
|
|
1366
|
-
/>
|
|
1367
|
-
<div class="calendar__year-spinners">
|
|
1368
|
-
<button
|
|
1369
|
-
type="button"
|
|
1370
|
-
class="calendar__year-spinner calendar__year-spinner--up"
|
|
1371
|
-
@click=${() => this.changeYear(1, isLeft)}
|
|
1372
|
-
>
|
|
1373
|
-
<svg
|
|
1374
|
-
width="10"
|
|
1375
|
-
height="10"
|
|
1376
|
-
viewBox="0 0 10 10"
|
|
1377
|
-
fill="none"
|
|
1378
|
-
>
|
|
1379
|
-
<path
|
|
1380
|
-
d="M2 6L5 3L8 6"
|
|
1381
|
-
stroke="currentColor"
|
|
1382
|
-
stroke-width="1.5"
|
|
1383
|
-
stroke-linecap="round"
|
|
1384
|
-
stroke-linejoin="round"
|
|
1385
|
-
/>
|
|
1386
|
-
</svg>
|
|
1387
|
-
</button>
|
|
1388
|
-
<button
|
|
1389
|
-
type="button"
|
|
1390
|
-
class="calendar__year-spinner calendar__year-spinner--down"
|
|
1391
|
-
@click=${() => this.changeYear(-1, isLeft)}
|
|
1392
|
-
>
|
|
1393
|
-
<svg
|
|
1394
|
-
width="10"
|
|
1395
|
-
height="10"
|
|
1396
|
-
viewBox="0 0 10 10"
|
|
1397
|
-
fill="none"
|
|
1398
|
-
>
|
|
1399
|
-
<path
|
|
1400
|
-
d="M2 4L5 7L8 4"
|
|
1401
|
-
stroke="currentColor"
|
|
1402
|
-
stroke-width="1.5"
|
|
1403
|
-
stroke-linecap="round"
|
|
1404
|
-
stroke-linejoin="round"
|
|
1405
|
-
/>
|
|
1406
|
-
</svg>
|
|
1407
|
-
</button>
|
|
1408
|
-
</div>
|
|
1409
|
-
</div>
|
|
1410
|
-
</div>
|
|
1411
|
-
|
|
1412
|
-
<button
|
|
1413
|
-
type="button"
|
|
1414
|
-
class="calendar__nav"
|
|
1415
|
-
@click=${() => this.nextMonth(isLeft)}
|
|
1416
|
-
>
|
|
1417
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
1418
|
-
<path
|
|
1419
|
-
d="M6 12L10 8L6 4"
|
|
1420
|
-
stroke="currentColor"
|
|
1421
|
-
stroke-width="2"
|
|
1422
|
-
stroke-linecap="round"
|
|
1423
|
-
stroke-linejoin="round"
|
|
1424
|
-
/>
|
|
1425
|
-
</svg>
|
|
1426
|
-
</button>
|
|
1427
|
-
</div>
|
|
1428
|
-
<div class="calendar__weekdays">
|
|
1429
|
-
${this.DAYS.map(
|
|
1430
|
-
(day) => b`<div class="calendar__weekday">${day}</div>`
|
|
1431
|
-
)}
|
|
1432
|
-
</div>
|
|
1433
|
-
<div class="calendar__days">
|
|
1434
|
-
${days.map((date) => {
|
|
1435
|
-
const dateMonth = this.enableTime ? date.getUTCMonth() : date.getMonth();
|
|
1436
|
-
const dateDay = this.enableTime ? date.getUTCDate() : date.getDate();
|
|
1437
|
-
const isCurrentMonth = dateMonth === currentMonth;
|
|
1438
|
-
const isSelected = this.isSameDay(date, this.selectedStart) || this.isSameDay(date, this.selectedEnd);
|
|
1439
|
-
const isStart = this.isSameDay(date, this.selectedStart);
|
|
1440
|
-
const isEnd = this.isSameDay(date, this.selectedEnd);
|
|
1441
|
-
const inRange = this.isInRange(date);
|
|
1442
|
-
const inHoverRange = this.isInHoverRange(date);
|
|
1443
|
-
const isDisabled = this.isDisabled(date);
|
|
1444
|
-
return b`
|
|
1445
|
-
<button
|
|
1446
|
-
type="button"
|
|
1447
|
-
class="calendar__day ${!isCurrentMonth ? "calendar__day--outside" : ""}
|
|
1448
|
-
${isSelected ? "calendar__day--selected" : ""}
|
|
1449
|
-
${isStart ? "calendar__day--start" : ""}
|
|
1450
|
-
${isEnd ? "calendar__day--end" : ""}
|
|
1451
|
-
${inRange ? "calendar__day--in-range" : ""}
|
|
1452
|
-
${inHoverRange ? "calendar__day--hover-range" : ""}
|
|
1453
|
-
${isDisabled ? "calendar__day--disabled" : ""}"
|
|
1454
|
-
@click=${() => this.selectDate(date)}
|
|
1455
|
-
@mouseenter=${() => this.handleDateHover(date)}
|
|
1456
|
-
?disabled=${isDisabled}
|
|
1457
|
-
>
|
|
1458
|
-
${dateDay}
|
|
1459
|
-
</button>
|
|
1460
|
-
`;
|
|
1461
|
-
})}
|
|
1462
|
-
</div>
|
|
1463
|
-
</div>
|
|
1464
|
-
`;
|
|
1465
|
-
}
|
|
1466
|
-
renderTimePicker() {
|
|
1467
|
-
if (!this.enableTime)
|
|
1468
|
-
return "";
|
|
1469
|
-
return b`
|
|
1470
|
-
<div class="date-picker__time">
|
|
1471
|
-
<div class="date-picker__time-section">
|
|
1472
|
-
<div class="date-picker__time-inputs">
|
|
1473
|
-
<div class="date-picker__time-input-group">
|
|
1474
|
-
<input
|
|
1475
|
-
type="number"
|
|
1476
|
-
class="date-picker__time-input"
|
|
1477
|
-
.value=${this.startHour.toString().padStart(2, "0")}
|
|
1478
|
-
@input=${(e3) => this.handleTimeInput(e3, "hour", true)}
|
|
1479
|
-
@blur=${(e3) => {
|
|
1480
|
-
const input = e3.target;
|
|
1481
|
-
input.value = this.startHour.toString().padStart(2, "0");
|
|
1482
|
-
}}
|
|
1483
|
-
min="0"
|
|
1484
|
-
max="23"
|
|
1485
|
-
/>
|
|
1486
|
-
<div class="date-picker__time-spinners">
|
|
1487
|
-
<button
|
|
1488
|
-
type="button"
|
|
1489
|
-
class="date-picker__time-spinner"
|
|
1490
|
-
@click=${() => this.changeTime("hour", 1, true)}
|
|
1491
|
-
>
|
|
1492
|
-
<svg
|
|
1493
|
-
width="10"
|
|
1494
|
-
height="10"
|
|
1495
|
-
viewBox="0 0 10 10"
|
|
1496
|
-
fill="none"
|
|
1497
|
-
>
|
|
1498
|
-
<path
|
|
1499
|
-
d="M2 6L5 3L8 6"
|
|
1500
|
-
stroke="currentColor"
|
|
1501
|
-
stroke-width="1.5"
|
|
1502
|
-
stroke-linecap="round"
|
|
1503
|
-
stroke-linejoin="round"
|
|
1504
|
-
/>
|
|
1505
|
-
</svg>
|
|
1506
|
-
</button>
|
|
1507
|
-
<button
|
|
1508
|
-
type="button"
|
|
1509
|
-
class="date-picker__time-spinner"
|
|
1510
|
-
@click=${() => this.changeTime("hour", -1, true)}
|
|
1511
|
-
>
|
|
1512
|
-
<svg
|
|
1513
|
-
width="10"
|
|
1514
|
-
height="10"
|
|
1515
|
-
viewBox="0 0 10 10"
|
|
1516
|
-
fill="none"
|
|
1517
|
-
>
|
|
1518
|
-
<path
|
|
1519
|
-
d="M2 4L5 7L8 4"
|
|
1520
|
-
stroke="currentColor"
|
|
1521
|
-
stroke-width="1.5"
|
|
1522
|
-
stroke-linecap="round"
|
|
1523
|
-
stroke-linejoin="round"
|
|
1524
|
-
/>
|
|
1525
|
-
</svg>
|
|
1526
|
-
</button>
|
|
1527
|
-
</div>
|
|
1528
|
-
</div>
|
|
1529
|
-
|
|
1530
|
-
<span class="date-picker__time-separator">:</span>
|
|
1531
|
-
|
|
1532
|
-
<div class="date-picker__time-input-group">
|
|
1533
|
-
<input
|
|
1534
|
-
type="number"
|
|
1535
|
-
class="date-picker__time-input"
|
|
1536
|
-
.value=${this.startMinute.toString().padStart(2, "0")}
|
|
1537
|
-
@input=${(e3) => this.handleTimeInput(e3, "minute", true)}
|
|
1538
|
-
@blur=${(e3) => {
|
|
1539
|
-
const input = e3.target;
|
|
1540
|
-
input.value = this.startMinute.toString().padStart(2, "0");
|
|
1541
|
-
}}
|
|
1542
|
-
min="0"
|
|
1543
|
-
max="59"
|
|
1544
|
-
/>
|
|
1545
|
-
<div class="date-picker__time-spinners">
|
|
1546
|
-
<button
|
|
1547
|
-
type="button"
|
|
1548
|
-
class="date-picker__time-spinner"
|
|
1549
|
-
@click=${() => this.changeTime("minute", 1, true)}
|
|
1550
|
-
>
|
|
1551
|
-
<svg
|
|
1552
|
-
width="10"
|
|
1553
|
-
height="10"
|
|
1554
|
-
viewBox="0 0 10 10"
|
|
1555
|
-
fill="none"
|
|
1556
|
-
>
|
|
1557
|
-
<path
|
|
1558
|
-
d="M2 6L5 3L8 6"
|
|
1559
|
-
stroke="currentColor"
|
|
1560
|
-
stroke-width="1.5"
|
|
1561
|
-
stroke-linecap="round"
|
|
1562
|
-
stroke-linejoin="round"
|
|
1563
|
-
/>
|
|
1564
|
-
</svg>
|
|
1565
|
-
</button>
|
|
1566
|
-
<button
|
|
1567
|
-
type="button"
|
|
1568
|
-
class="date-picker__time-spinner"
|
|
1569
|
-
@click=${() => this.changeTime("minute", -1, true)}
|
|
1570
|
-
>
|
|
1571
|
-
<svg
|
|
1572
|
-
width="10"
|
|
1573
|
-
height="10"
|
|
1574
|
-
viewBox="0 0 10 10"
|
|
1575
|
-
fill="none"
|
|
1576
|
-
>
|
|
1577
|
-
<path
|
|
1578
|
-
d="M2 4L5 7L8 4"
|
|
1579
|
-
stroke="currentColor"
|
|
1580
|
-
stroke-width="1.5"
|
|
1581
|
-
stroke-linecap="round"
|
|
1582
|
-
stroke-linejoin="round"
|
|
1583
|
-
/>
|
|
1584
|
-
</svg>
|
|
1585
|
-
</button>
|
|
1586
|
-
</div>
|
|
1587
|
-
</div>
|
|
1588
|
-
|
|
1589
|
-
<span class="date-picker__time-separator">:</span>
|
|
1590
|
-
|
|
1591
|
-
<div class="date-picker__time-input-group">
|
|
1592
|
-
<input
|
|
1593
|
-
type="number"
|
|
1594
|
-
class="date-picker__time-input"
|
|
1595
|
-
.value=${this.startSecond.toString().padStart(2, "0")}
|
|
1596
|
-
@input=${(e3) => this.handleTimeInput(e3, "second", true)}
|
|
1597
|
-
@blur=${(e3) => {
|
|
1598
|
-
const input = e3.target;
|
|
1599
|
-
input.value = this.startSecond.toString().padStart(2, "0");
|
|
1600
|
-
}}
|
|
1601
|
-
min="0"
|
|
1602
|
-
max="59"
|
|
1603
|
-
/>
|
|
1604
|
-
<div class="date-picker__time-spinners">
|
|
1605
|
-
<button
|
|
1606
|
-
type="button"
|
|
1607
|
-
class="date-picker__time-spinner"
|
|
1608
|
-
@click=${() => this.changeTime("second", 1, true)}
|
|
1609
|
-
>
|
|
1610
|
-
<svg
|
|
1611
|
-
width="10"
|
|
1612
|
-
height="10"
|
|
1613
|
-
viewBox="0 0 10 10"
|
|
1614
|
-
fill="none"
|
|
1615
|
-
>
|
|
1616
|
-
<path
|
|
1617
|
-
d="M2 6L5 3L8 6"
|
|
1618
|
-
stroke="currentColor"
|
|
1619
|
-
stroke-width="1.5"
|
|
1620
|
-
stroke-linecap="round"
|
|
1621
|
-
stroke-linejoin="round"
|
|
1622
|
-
/>
|
|
1623
|
-
</svg>
|
|
1624
|
-
</button>
|
|
1625
|
-
<button
|
|
1626
|
-
type="button"
|
|
1627
|
-
class="date-picker__time-spinner"
|
|
1628
|
-
@click=${() => this.changeTime("second", -1, true)}
|
|
1629
|
-
>
|
|
1630
|
-
<svg
|
|
1631
|
-
width="10"
|
|
1632
|
-
height="10"
|
|
1633
|
-
viewBox="0 0 10 10"
|
|
1634
|
-
fill="none"
|
|
1635
|
-
>
|
|
1636
|
-
<path
|
|
1637
|
-
d="M2 4L5 7L8 4"
|
|
1638
|
-
stroke="currentColor"
|
|
1639
|
-
stroke-width="1.5"
|
|
1640
|
-
stroke-linecap="round"
|
|
1641
|
-
stroke-linejoin="round"
|
|
1642
|
-
/>
|
|
1643
|
-
</svg>
|
|
1644
|
-
</button>
|
|
1645
|
-
</div>
|
|
1646
|
-
</div>
|
|
1647
|
-
</div>
|
|
1648
|
-
</div>
|
|
1649
|
-
|
|
1650
|
-
${this.range ? b`
|
|
1651
|
-
<span class="date-picker__separator">–</span>
|
|
1652
|
-
|
|
1653
|
-
<div class="date-picker__time-section">
|
|
1654
|
-
<div class="date-picker__time-inputs">
|
|
1655
|
-
<div class="date-picker__time-input-group">
|
|
1656
|
-
<input
|
|
1657
|
-
type="number"
|
|
1658
|
-
class="date-picker__time-input"
|
|
1659
|
-
.value=${this.endHour.toString().padStart(2, "0")}
|
|
1660
|
-
@input=${(e3) => this.handleTimeInput(e3, "hour", false)}
|
|
1661
|
-
@blur=${(e3) => {
|
|
1662
|
-
const input = e3.target;
|
|
1663
|
-
input.value = this.endHour.toString().padStart(2, "0");
|
|
1664
|
-
}}
|
|
1665
|
-
min="0"
|
|
1666
|
-
max="23"
|
|
1667
|
-
/>
|
|
1668
|
-
<div class="date-picker__time-spinners">
|
|
1669
|
-
<button
|
|
1670
|
-
type="button"
|
|
1671
|
-
class="date-picker__time-spinner"
|
|
1672
|
-
@click=${() => this.changeTime("hour", 1, false)}
|
|
1673
|
-
>
|
|
1674
|
-
<svg
|
|
1675
|
-
width="10"
|
|
1676
|
-
height="10"
|
|
1677
|
-
viewBox="0 0 10 10"
|
|
1678
|
-
fill="none"
|
|
1679
|
-
>
|
|
1680
|
-
<path
|
|
1681
|
-
d="M2 6L5 3L8 6"
|
|
1682
|
-
stroke="currentColor"
|
|
1683
|
-
stroke-width="1.5"
|
|
1684
|
-
stroke-linecap="round"
|
|
1685
|
-
stroke-linejoin="round"
|
|
1686
|
-
/>
|
|
1687
|
-
</svg>
|
|
1688
|
-
</button>
|
|
1689
|
-
<button
|
|
1690
|
-
type="button"
|
|
1691
|
-
class="date-picker__time-spinner"
|
|
1692
|
-
@click=${() => this.changeTime("hour", -1, false)}
|
|
1693
|
-
>
|
|
1694
|
-
<svg
|
|
1695
|
-
width="10"
|
|
1696
|
-
height="10"
|
|
1697
|
-
viewBox="0 0 10 10"
|
|
1698
|
-
fill="none"
|
|
1699
|
-
>
|
|
1700
|
-
<path
|
|
1701
|
-
d="M2 4L5 7L8 4"
|
|
1702
|
-
stroke="currentColor"
|
|
1703
|
-
stroke-width="1.5"
|
|
1704
|
-
stroke-linecap="round"
|
|
1705
|
-
stroke-linejoin="round"
|
|
1706
|
-
/>
|
|
1707
|
-
</svg>
|
|
1708
|
-
</button>
|
|
1709
|
-
</div>
|
|
1710
|
-
</div>
|
|
1711
|
-
|
|
1712
|
-
<span class="date-picker__time-separator">:</span>
|
|
1713
|
-
|
|
1714
|
-
<div class="date-picker__time-input-group">
|
|
1715
|
-
<input
|
|
1716
|
-
type="number"
|
|
1717
|
-
class="date-picker__time-input"
|
|
1718
|
-
.value=${this.endMinute.toString().padStart(2, "0")}
|
|
1719
|
-
@input=${(e3) => this.handleTimeInput(
|
|
1720
|
-
e3,
|
|
1721
|
-
"minute",
|
|
1722
|
-
false
|
|
1723
|
-
)}
|
|
1724
|
-
@blur=${(e3) => {
|
|
1725
|
-
const input = e3.target;
|
|
1726
|
-
input.value = this.endMinute.toString().padStart(2, "0");
|
|
1727
|
-
}}
|
|
1728
|
-
min="0"
|
|
1729
|
-
max="59"
|
|
1730
|
-
/>
|
|
1731
|
-
<div class="date-picker__time-spinners">
|
|
1732
|
-
<button
|
|
1733
|
-
type="button"
|
|
1734
|
-
class="date-picker__time-spinner"
|
|
1735
|
-
@click=${() => this.changeTime("minute", 1, false)}
|
|
1736
|
-
>
|
|
1737
|
-
<svg
|
|
1738
|
-
width="10"
|
|
1739
|
-
height="10"
|
|
1740
|
-
viewBox="0 0 10 10"
|
|
1741
|
-
fill="none"
|
|
1742
|
-
>
|
|
1743
|
-
<path
|
|
1744
|
-
d="M2 6L5 3L8 6"
|
|
1745
|
-
stroke="currentColor"
|
|
1746
|
-
stroke-width="1.5"
|
|
1747
|
-
stroke-linecap="round"
|
|
1748
|
-
stroke-linejoin="round"
|
|
1749
|
-
/>
|
|
1750
|
-
</svg>
|
|
1751
|
-
</button>
|
|
1752
|
-
<button
|
|
1753
|
-
type="button"
|
|
1754
|
-
class="date-picker__time-spinner"
|
|
1755
|
-
@click=${() => this.changeTime(
|
|
1756
|
-
"minute",
|
|
1757
|
-
-1,
|
|
1758
|
-
false
|
|
1759
|
-
)}
|
|
1760
|
-
>
|
|
1761
|
-
<svg
|
|
1762
|
-
width="10"
|
|
1763
|
-
height="10"
|
|
1764
|
-
viewBox="0 0 10 10"
|
|
1765
|
-
fill="none"
|
|
1766
|
-
>
|
|
1767
|
-
<path
|
|
1768
|
-
d="M2 4L5 7L8 4"
|
|
1769
|
-
stroke="currentColor"
|
|
1770
|
-
stroke-width="1.5"
|
|
1771
|
-
stroke-linecap="round"
|
|
1772
|
-
stroke-linejoin="round"
|
|
1773
|
-
/>
|
|
1774
|
-
</svg>
|
|
1775
|
-
</button>
|
|
1776
|
-
</div>
|
|
1777
|
-
</div>
|
|
1778
|
-
|
|
1779
|
-
<span class="date-picker__time-separator">:</span>
|
|
1780
|
-
|
|
1781
|
-
<div class="date-picker__time-input-group">
|
|
1782
|
-
<input
|
|
1783
|
-
type="number"
|
|
1784
|
-
class="date-picker__time-input"
|
|
1785
|
-
.value=${this.endSecond.toString().padStart(2, "0")}
|
|
1786
|
-
@input=${(e3) => this.handleTimeInput(
|
|
1787
|
-
e3,
|
|
1788
|
-
"second",
|
|
1789
|
-
false
|
|
1790
|
-
)}
|
|
1791
|
-
@blur=${(e3) => {
|
|
1792
|
-
const input = e3.target;
|
|
1793
|
-
input.value = this.endSecond.toString().padStart(2, "0");
|
|
1794
|
-
}}
|
|
1795
|
-
min="0"
|
|
1796
|
-
max="59"
|
|
1797
|
-
/>
|
|
1798
|
-
<div class="date-picker__time-spinners">
|
|
1799
|
-
<button
|
|
1800
|
-
type="button"
|
|
1801
|
-
class="date-picker__time-spinner"
|
|
1802
|
-
@click=${() => this.changeTime("second", 1, false)}
|
|
1803
|
-
>
|
|
1804
|
-
<svg
|
|
1805
|
-
width="10"
|
|
1806
|
-
height="10"
|
|
1807
|
-
viewBox="0 0 10 10"
|
|
1808
|
-
fill="none"
|
|
1809
|
-
>
|
|
1810
|
-
<path
|
|
1811
|
-
d="M2 6L5 3L8 6"
|
|
1812
|
-
stroke="currentColor"
|
|
1813
|
-
stroke-width="1.5"
|
|
1814
|
-
stroke-linecap="round"
|
|
1815
|
-
stroke-linejoin="round"
|
|
1816
|
-
/>
|
|
1817
|
-
</svg>
|
|
1818
|
-
</button>
|
|
1819
|
-
<button
|
|
1820
|
-
type="button"
|
|
1821
|
-
class="date-picker__time-spinner"
|
|
1822
|
-
@click=${() => this.changeTime(
|
|
1823
|
-
"second",
|
|
1824
|
-
-1,
|
|
1825
|
-
false
|
|
1826
|
-
)}
|
|
1827
|
-
>
|
|
1828
|
-
<svg
|
|
1829
|
-
width="10"
|
|
1830
|
-
height="10"
|
|
1831
|
-
viewBox="0 0 10 10"
|
|
1832
|
-
fill="none"
|
|
1833
|
-
>
|
|
1834
|
-
<path
|
|
1835
|
-
d="M2 4L5 7L8 4"
|
|
1836
|
-
stroke="currentColor"
|
|
1837
|
-
stroke-width="1.5"
|
|
1838
|
-
stroke-linecap="round"
|
|
1839
|
-
stroke-linejoin="round"
|
|
1840
|
-
/>
|
|
1841
|
-
</svg>
|
|
1842
|
-
</button>
|
|
1843
|
-
</div>
|
|
1844
|
-
</div>
|
|
1845
|
-
</div>
|
|
1846
|
-
</div>
|
|
1847
|
-
` : ""}
|
|
1848
|
-
</div>
|
|
1849
|
-
`;
|
|
1850
|
-
}
|
|
1851
|
-
renderCalendarIcon() {
|
|
1852
|
-
return b`
|
|
1853
|
-
<svg
|
|
1854
|
-
slot="suffix"
|
|
1855
|
-
class="date-picker__icon"
|
|
1856
|
-
width="20"
|
|
1857
|
-
height="20"
|
|
1858
|
-
viewBox="0 0 24 24"
|
|
1859
|
-
fill="none"
|
|
1860
|
-
stroke="currentColor"
|
|
1861
|
-
stroke-width="2"
|
|
1862
|
-
>
|
|
1863
|
-
<rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect>
|
|
1864
|
-
<line x1="16" y1="2" x2="16" y2="6"></line>
|
|
1865
|
-
<line x1="8" y1="2" x2="8" y2="6"></line>
|
|
1866
|
-
<line x1="3" y1="10" x2="21" y2="10"></line>
|
|
1867
|
-
</svg>
|
|
1868
|
-
`;
|
|
1869
|
-
}
|
|
1870
|
-
renderCalendarContent() {
|
|
1871
|
-
return b`
|
|
1872
|
-
<div class="date-picker__dropdown" part="calendar">
|
|
1873
|
-
<div class="date-picker__content">
|
|
1874
|
-
${this.showPresets && this.filteredPresets.length > 0 ? b`
|
|
1875
|
-
<div class="date-picker__sidebar" part="sidebar">
|
|
1876
|
-
<slot name="sidebar-header"></slot>
|
|
1877
|
-
|
|
1878
|
-
<div class="presets">
|
|
1879
|
-
${this.filteredPresets.map(
|
|
1880
|
-
(preset) => b`
|
|
1881
|
-
<button
|
|
1882
|
-
type="button"
|
|
1883
|
-
class="date-picker__preset"
|
|
1884
|
-
@click=${() => this.selectPreset(preset)}
|
|
1885
|
-
>
|
|
1886
|
-
${preset.label}
|
|
1887
|
-
</button>
|
|
1888
|
-
`
|
|
1889
|
-
)}
|
|
1890
|
-
</div>
|
|
1891
|
-
|
|
1892
|
-
<slot name="sidebar-footer">
|
|
1893
|
-
<terra-button
|
|
1894
|
-
outline
|
|
1895
|
-
variant="default"
|
|
1896
|
-
size="small"
|
|
1897
|
-
@click=${() => this.clear()}
|
|
1898
|
-
>
|
|
1899
|
-
${this.clearAllLabel}
|
|
1900
|
-
</terra-button>
|
|
1901
|
-
</slot>
|
|
1902
|
-
</div>
|
|
1903
|
-
` : ""}
|
|
1904
|
-
|
|
1905
|
-
<div class="date-picker__calendars">
|
|
1906
|
-
${this.renderCalendar(this.leftMonth, true)}
|
|
1907
|
-
${this.range ? this.renderCalendar(this.rightMonth, false) : ""}
|
|
1908
|
-
</div>
|
|
1909
|
-
</div>
|
|
1910
|
-
|
|
1911
|
-
${this.enableTime ? this.renderTimePicker() : ""}
|
|
1912
|
-
</div>
|
|
1913
|
-
`;
|
|
1914
|
-
}
|
|
1915
|
-
render() {
|
|
1916
|
-
const showSplitInputs = this.range && this.splitInputs;
|
|
1917
|
-
if (this.inline) {
|
|
1918
|
-
return b`
|
|
1919
|
-
<div
|
|
1920
|
-
class="date-picker date-picker--inline ${showSplitInputs ? "date-picker--split-inputs" : ""}"
|
|
1921
|
-
@click=${(e3) => e3.stopPropagation()}
|
|
1922
|
-
>
|
|
1923
|
-
${showSplitInputs ? b`
|
|
1924
|
-
<div class="date-picker__inputs">
|
|
1925
|
-
<terra-input
|
|
1926
|
-
.label=${this.startLabel || (this.label ? `${this.label} (Start)` : "Start Date")}
|
|
1927
|
-
.hideLabel=${this.hideLabel}
|
|
1928
|
-
.helpText=${this.startHelpText || this.helpText}
|
|
1929
|
-
.value=${this.getStartDateDisplayValue()}
|
|
1930
|
-
@terra-blur=${this.handleStartInputBlur}
|
|
1931
|
-
@keydown=${this.handleKeydown}
|
|
1932
|
-
placeholder=${this.startPlaceholder}
|
|
1933
|
-
name="start-date"
|
|
1934
|
-
>
|
|
1935
|
-
${this.renderCalendarIcon()}
|
|
1936
|
-
</terra-input>
|
|
1937
|
-
<terra-input
|
|
1938
|
-
.label=${this.endLabel || (this.label ? `${this.label} (End)` : "End Date")}
|
|
1939
|
-
.hideLabel=${this.hideLabel}
|
|
1940
|
-
.helpText=${this.endHelpText || this.helpText}
|
|
1941
|
-
.value=${this.getEndDateDisplayValue()}
|
|
1942
|
-
@terra-blur=${this.handleEndInputBlur}
|
|
1943
|
-
@keydown=${this.handleKeydown}
|
|
1944
|
-
placeholder=${this.endPlaceholder}
|
|
1945
|
-
name="end-date"
|
|
1946
|
-
>
|
|
1947
|
-
${this.renderCalendarIcon()}
|
|
1948
|
-
</terra-input>
|
|
1949
|
-
</div>
|
|
1950
|
-
` : b`
|
|
1951
|
-
<terra-input
|
|
1952
|
-
.label=${this.label}
|
|
1953
|
-
.hideLabel=${this.hideLabel}
|
|
1954
|
-
.helpText=${this.helpText}
|
|
1955
|
-
.value=${this.getDisplayValue()}
|
|
1956
|
-
placeholder=${this.placeholder}
|
|
1957
|
-
@terra-blur=${this.handleInputBlur}
|
|
1958
|
-
@keydown=${this.handleKeydown}
|
|
1959
|
-
name="date"
|
|
1960
|
-
>
|
|
1961
|
-
${this.renderCalendarIcon()}
|
|
1962
|
-
</terra-input>
|
|
1963
|
-
`}
|
|
1964
|
-
|
|
1965
|
-
<slot name="additional-text"></slot>
|
|
1966
|
-
|
|
1967
|
-
<div class="date-picker__dropdown-wrapper">
|
|
1968
|
-
<div
|
|
1969
|
-
class="date-picker__dropdown date-picker__dropdown--inline"
|
|
1970
|
-
part="calendar"
|
|
1971
|
-
>
|
|
1972
|
-
<div class="date-picker__content">
|
|
1973
|
-
${this.showPresets && this.filteredPresets.length > 0 ? b`
|
|
1974
|
-
<div
|
|
1975
|
-
class="date-picker__sidebar"
|
|
1976
|
-
part="sidebar"
|
|
1977
|
-
>
|
|
1978
|
-
<slot name="sidebar-header"></slot>
|
|
1979
|
-
|
|
1980
|
-
<div class="presets">
|
|
1981
|
-
${this.filteredPresets.map(
|
|
1982
|
-
(preset) => b`
|
|
1983
|
-
<button
|
|
1984
|
-
type="button"
|
|
1985
|
-
class="date-picker__preset"
|
|
1986
|
-
@click=${() => this.selectPreset(
|
|
1987
|
-
preset
|
|
1988
|
-
)}
|
|
1989
|
-
>
|
|
1990
|
-
${preset.label}
|
|
1991
|
-
</button>
|
|
1992
|
-
`
|
|
1993
|
-
)}
|
|
1994
|
-
</div>
|
|
1995
|
-
|
|
1996
|
-
<slot name="sidebar-footer">
|
|
1997
|
-
<terra-button
|
|
1998
|
-
outline
|
|
1999
|
-
variant="default"
|
|
2000
|
-
size="small"
|
|
2001
|
-
@click=${() => this.clear()}
|
|
2002
|
-
>
|
|
2003
|
-
${this.clearAllLabel}
|
|
2004
|
-
</terra-button>
|
|
2005
|
-
</slot>
|
|
2006
|
-
</div>
|
|
2007
|
-
` : ""}
|
|
2008
|
-
|
|
2009
|
-
<div class="date-picker__calendars">
|
|
2010
|
-
${this.renderCalendar(this.leftMonth, true)}
|
|
2011
|
-
${this.range ? this.renderCalendar(this.rightMonth, false) : ""}
|
|
2012
|
-
</div>
|
|
2013
|
-
</div>
|
|
2014
|
-
|
|
2015
|
-
${this.enableTime ? this.renderTimePicker() : ""}
|
|
2016
|
-
</div>
|
|
2017
|
-
</div>
|
|
2018
|
-
</div>
|
|
2019
|
-
`;
|
|
2020
|
-
}
|
|
2021
|
-
return b`
|
|
2022
|
-
<div
|
|
2023
|
-
class="date-picker ${showSplitInputs ? "date-picker--split-inputs" : ""}"
|
|
2024
|
-
@click=${(e3) => e3.stopPropagation()}
|
|
2025
|
-
>
|
|
2026
|
-
${showSplitInputs ? b`
|
|
2027
|
-
<div class="date-picker__inputs">
|
|
2028
|
-
<terra-dropdown
|
|
2029
|
-
${n2(this.dropdownRef)}
|
|
2030
|
-
placement="bottom-start"
|
|
2031
|
-
distance="4"
|
|
2032
|
-
@terra-show=${this.handleDropdownShow}
|
|
2033
|
-
@terra-hide=${this.handleDropdownHide}
|
|
2034
|
-
hoist
|
|
2035
|
-
>
|
|
2036
|
-
<terra-input
|
|
2037
|
-
slot="trigger"
|
|
2038
|
-
.label=${this.startLabel || (this.label ? `${this.label} (Start)` : "Start Date")}
|
|
2039
|
-
.hideLabel=${this.hideLabel}
|
|
2040
|
-
.helpText=${this.startHelpText || this.helpText}
|
|
2041
|
-
.value=${this.getStartDateDisplayValue()}
|
|
2042
|
-
placeholder=${this.startPlaceholder}
|
|
2043
|
-
@terra-blur=${this.handleStartInputBlur}
|
|
2044
|
-
@keydown=${this.handleKeydown}
|
|
2045
|
-
name="start-date"
|
|
2046
|
-
>
|
|
2047
|
-
${this.renderCalendarIcon()}
|
|
2048
|
-
</terra-input>
|
|
2049
|
-
${this.renderCalendarContent()}
|
|
2050
|
-
</terra-dropdown>
|
|
2051
|
-
<terra-dropdown
|
|
2052
|
-
placement="bottom-start"
|
|
2053
|
-
distance="4"
|
|
2054
|
-
@terra-show=${this.handleDropdownShow}
|
|
2055
|
-
@terra-hide=${this.handleDropdownHide}
|
|
2056
|
-
hoist
|
|
2057
|
-
>
|
|
2058
|
-
<terra-input
|
|
2059
|
-
slot="trigger"
|
|
2060
|
-
.label=${this.endLabel || (this.label ? `${this.label} (End)` : "End Date")}
|
|
2061
|
-
.hideLabel=${this.hideLabel}
|
|
2062
|
-
.helpText=${this.endHelpText || this.helpText}
|
|
2063
|
-
.value=${this.getEndDateDisplayValue()}
|
|
2064
|
-
placeholder=${this.endPlaceholder}
|
|
2065
|
-
@terra-blur=${this.handleEndInputBlur}
|
|
2066
|
-
@keydown=${this.handleKeydown}
|
|
2067
|
-
name="end-date"
|
|
2068
|
-
>
|
|
2069
|
-
${this.renderCalendarIcon()}
|
|
2070
|
-
</terra-input>
|
|
2071
|
-
${this.renderCalendarContent()}
|
|
2072
|
-
</terra-dropdown>
|
|
2073
|
-
</div>
|
|
2074
|
-
` : b`
|
|
2075
|
-
<terra-dropdown
|
|
2076
|
-
${n2(this.dropdownRef)}
|
|
2077
|
-
placement="bottom-start"
|
|
2078
|
-
distance="4"
|
|
2079
|
-
@terra-show=${this.handleDropdownShow}
|
|
2080
|
-
@terra-hide=${this.handleDropdownHide}
|
|
2081
|
-
hoist
|
|
2082
|
-
>
|
|
2083
|
-
<terra-input
|
|
2084
|
-
slot="trigger"
|
|
2085
|
-
.label=${this.label}
|
|
2086
|
-
.hideLabel=${this.hideLabel}
|
|
2087
|
-
.helpText=${this.helpText}
|
|
2088
|
-
.value=${this.getDisplayValue()}
|
|
2089
|
-
placeholder=${this.placeholder}
|
|
2090
|
-
@terra-blur=${this.handleInputBlur}
|
|
2091
|
-
@keydown=${this.handleKeydown}
|
|
2092
|
-
name="date"
|
|
2093
|
-
>
|
|
2094
|
-
${this.renderCalendarIcon()}
|
|
2095
|
-
</terra-input>
|
|
2096
|
-
${this.renderCalendarContent()}
|
|
2097
|
-
</terra-dropdown>
|
|
2098
|
-
`}
|
|
2099
|
-
</div>
|
|
2100
|
-
`;
|
|
2101
|
-
}
|
|
2102
|
-
};
|
|
2103
|
-
TerraDatePicker.styles = [component_styles_default, date_picker_styles_default];
|
|
2104
|
-
TerraDatePicker.dependencies = {
|
|
2105
|
-
"terra-button": TerraButton,
|
|
2106
|
-
"terra-input": TerraInput,
|
|
2107
|
-
"terra-dropdown": TerraDropdown
|
|
2108
|
-
};
|
|
2109
|
-
__decorateClass([
|
|
2110
|
-
n()
|
|
2111
|
-
], TerraDatePicker.prototype, "id", 2);
|
|
2112
|
-
__decorateClass([
|
|
2113
|
-
n({ type: Boolean, reflect: true })
|
|
2114
|
-
], TerraDatePicker.prototype, "range", 2);
|
|
2115
|
-
__decorateClass([
|
|
2116
|
-
n({ attribute: "min-date", reflect: true })
|
|
2117
|
-
], TerraDatePicker.prototype, "minDate", 2);
|
|
2118
|
-
__decorateClass([
|
|
2119
|
-
n({ attribute: "max-date", reflect: true })
|
|
2120
|
-
], TerraDatePicker.prototype, "maxDate", 2);
|
|
2121
|
-
__decorateClass([
|
|
2122
|
-
n({ attribute: "start-date", reflect: true })
|
|
2123
|
-
], TerraDatePicker.prototype, "startDate", 2);
|
|
2124
|
-
__decorateClass([
|
|
2125
|
-
n({ attribute: "end-date", reflect: true })
|
|
2126
|
-
], TerraDatePicker.prototype, "endDate", 2);
|
|
2127
|
-
__decorateClass([
|
|
2128
|
-
n({ attribute: "hide-label", type: Boolean })
|
|
2129
|
-
], TerraDatePicker.prototype, "hideLabel", 2);
|
|
2130
|
-
__decorateClass([
|
|
2131
|
-
n()
|
|
2132
|
-
], TerraDatePicker.prototype, "label", 2);
|
|
2133
|
-
__decorateClass([
|
|
2134
|
-
n({ attribute: "help-text" })
|
|
2135
|
-
], TerraDatePicker.prototype, "helpText", 2);
|
|
2136
|
-
__decorateClass([
|
|
2137
|
-
n({ attribute: "start-help-text" })
|
|
2138
|
-
], TerraDatePicker.prototype, "startHelpText", 2);
|
|
2139
|
-
__decorateClass([
|
|
2140
|
-
n({ attribute: "end-help-text" })
|
|
2141
|
-
], TerraDatePicker.prototype, "endHelpText", 2);
|
|
2142
|
-
__decorateClass([
|
|
2143
|
-
n({ attribute: "start-label" })
|
|
2144
|
-
], TerraDatePicker.prototype, "startLabel", 2);
|
|
2145
|
-
__decorateClass([
|
|
2146
|
-
n({ attribute: "end-label" })
|
|
2147
|
-
], TerraDatePicker.prototype, "endLabel", 2);
|
|
2148
|
-
__decorateClass([
|
|
2149
|
-
n({ type: Boolean, attribute: "show-presets" })
|
|
2150
|
-
], TerraDatePicker.prototype, "showPresets", 2);
|
|
2151
|
-
__decorateClass([
|
|
2152
|
-
n({ type: Array })
|
|
2153
|
-
], TerraDatePicker.prototype, "presets", 2);
|
|
2154
|
-
__decorateClass([
|
|
2155
|
-
n({ type: Boolean, attribute: "enable-time" })
|
|
2156
|
-
], TerraDatePicker.prototype, "enableTime", 2);
|
|
2157
|
-
__decorateClass([
|
|
2158
|
-
n({ attribute: "display-format" })
|
|
2159
|
-
], TerraDatePicker.prototype, "displayFormat", 2);
|
|
2160
|
-
__decorateClass([
|
|
2161
|
-
n({ type: Boolean })
|
|
2162
|
-
], TerraDatePicker.prototype, "inline", 2);
|
|
2163
|
-
__decorateClass([
|
|
2164
|
-
n({ type: Boolean, attribute: "split-inputs" })
|
|
2165
|
-
], TerraDatePicker.prototype, "splitInputs", 2);
|
|
2166
|
-
__decorateClass([
|
|
2167
|
-
n()
|
|
2168
|
-
], TerraDatePicker.prototype, "placeholder", 2);
|
|
2169
|
-
__decorateClass([
|
|
2170
|
-
n()
|
|
2171
|
-
], TerraDatePicker.prototype, "startPlaceholder", 2);
|
|
2172
|
-
__decorateClass([
|
|
2173
|
-
n()
|
|
2174
|
-
], TerraDatePicker.prototype, "endPlaceholder", 2);
|
|
2175
|
-
__decorateClass([
|
|
2176
|
-
n({ reflect: true })
|
|
2177
|
-
], TerraDatePicker.prototype, "role", 2);
|
|
2178
|
-
__decorateClass([
|
|
2179
|
-
n({ reflect: true, attribute: "aria-label" })
|
|
2180
|
-
], TerraDatePicker.prototype, "ariaLabel", 2);
|
|
2181
|
-
__decorateClass([
|
|
2182
|
-
n({ type: Boolean })
|
|
2183
|
-
], TerraDatePicker.prototype, "hideClearAll", 2);
|
|
2184
|
-
__decorateClass([
|
|
2185
|
-
n()
|
|
2186
|
-
], TerraDatePicker.prototype, "clearAllLabel", 2);
|
|
2187
|
-
__decorateClass([
|
|
2188
|
-
n({ type: Boolean, attribute: "use-end-of-day" })
|
|
2189
|
-
], TerraDatePicker.prototype, "useEndOfDay", 2);
|
|
2190
|
-
__decorateClass([
|
|
2191
|
-
r()
|
|
2192
|
-
], TerraDatePicker.prototype, "isOpen", 2);
|
|
2193
|
-
__decorateClass([
|
|
2194
|
-
r()
|
|
2195
|
-
], TerraDatePicker.prototype, "leftMonth", 2);
|
|
2196
|
-
__decorateClass([
|
|
2197
|
-
r()
|
|
2198
|
-
], TerraDatePicker.prototype, "rightMonth", 2);
|
|
2199
|
-
__decorateClass([
|
|
2200
|
-
r()
|
|
2201
|
-
], TerraDatePicker.prototype, "selectedStart", 2);
|
|
2202
|
-
__decorateClass([
|
|
2203
|
-
r()
|
|
2204
|
-
], TerraDatePicker.prototype, "selectedEnd", 2);
|
|
2205
|
-
__decorateClass([
|
|
2206
|
-
r()
|
|
2207
|
-
], TerraDatePicker.prototype, "hoverDate", 2);
|
|
2208
|
-
__decorateClass([
|
|
2209
|
-
r()
|
|
2210
|
-
], TerraDatePicker.prototype, "isSelectingRange", 2);
|
|
2211
|
-
__decorateClass([
|
|
2212
|
-
r()
|
|
2213
|
-
], TerraDatePicker.prototype, "showLeftMonthDropdown", 2);
|
|
2214
|
-
__decorateClass([
|
|
2215
|
-
r()
|
|
2216
|
-
], TerraDatePicker.prototype, "showRightMonthDropdown", 2);
|
|
2217
|
-
__decorateClass([
|
|
2218
|
-
r()
|
|
2219
|
-
], TerraDatePicker.prototype, "startHour", 2);
|
|
2220
|
-
__decorateClass([
|
|
2221
|
-
r()
|
|
2222
|
-
], TerraDatePicker.prototype, "startMinute", 2);
|
|
2223
|
-
__decorateClass([
|
|
2224
|
-
r()
|
|
2225
|
-
], TerraDatePicker.prototype, "startSecond", 2);
|
|
2226
|
-
__decorateClass([
|
|
2227
|
-
r()
|
|
2228
|
-
], TerraDatePicker.prototype, "endHour", 2);
|
|
2229
|
-
__decorateClass([
|
|
2230
|
-
r()
|
|
2231
|
-
], TerraDatePicker.prototype, "endMinute", 2);
|
|
2232
|
-
__decorateClass([
|
|
2233
|
-
r()
|
|
2234
|
-
], TerraDatePicker.prototype, "endSecond", 2);
|
|
2235
|
-
__decorateClass([
|
|
2236
|
-
r()
|
|
2237
|
-
], TerraDatePicker.prototype, "selectedDates", 2);
|
|
2238
|
-
__decorateClass([
|
|
2239
|
-
e(".date-picker__dropdown")
|
|
2240
|
-
], TerraDatePicker.prototype, "dropdown", 2);
|
|
2241
|
-
|
|
2242
|
-
export {
|
|
2243
|
-
TerraDatePicker
|
|
2244
|
-
};
|