@nasa-terra/components 0.0.137 → 0.0.139
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.2B6TL25H.js +19 -0
- package/cdn/chunks/chunk.2FIXNDLC.js +251 -0
- package/cdn/chunks/chunk.2JCOSZFR.js +904 -0
- package/cdn/chunks/chunk.2MHHVQSB.js +29 -0
- package/cdn/chunks/chunk.33ULU7GO.js +491 -0
- package/cdn/chunks/chunk.345AQZWM.js +19 -0
- package/cdn/chunks/chunk.34RZT4O6.js +29 -0
- package/cdn/chunks/chunk.3FBMVJTN.js +29 -0
- package/cdn/chunks/chunk.3JDGYF5R.js +36 -0
- package/cdn/chunks/chunk.3JUFEPIK.js +29 -0
- package/cdn/chunks/chunk.3KHAS7JP.js +19 -0
- package/cdn/chunks/chunk.3L5XNF4T.js +234 -0
- package/cdn/chunks/chunk.4B6VMFFW.js +19 -0
- package/cdn/chunks/chunk.4CH5UZQH.js +19 -0
- package/cdn/chunks/chunk.4CPFXOHY.js +19 -0
- package/cdn/chunks/chunk.4LE5R3PR.js +29 -0
- package/cdn/chunks/chunk.4N2A5YBK.js +472 -0
- package/cdn/chunks/chunk.4UFYI2TK.js +10718 -0
- package/cdn/chunks/chunk.5A3HYRPD.js +224 -0
- package/cdn/chunks/chunk.5BGHAY2N.js +35 -0
- package/cdn/chunks/chunk.5EJ2BIR7.js +32 -0
- package/cdn/chunks/chunk.5K7UOJJ2.js +32 -0
- package/cdn/chunks/chunk.5NWMRQKE.js +32 -0
- package/cdn/chunks/chunk.5SZU56B7.js +19 -0
- package/cdn/chunks/chunk.5ULQ5ZPE.js +19 -0
- package/cdn/chunks/chunk.5XFTJ654.js +132 -0
- package/cdn/chunks/chunk.6KNI6BO4.js +29 -0
- package/cdn/chunks/chunk.6LSZVT44.js +32 -0
- package/cdn/chunks/chunk.6P475YE7.js +32 -0
- package/cdn/chunks/chunk.6TK5NIXR.js +538 -0
- package/cdn/chunks/chunk.6VCBC23Q.js +19 -0
- package/cdn/chunks/chunk.6YF3W7LT.js +19 -0
- package/cdn/chunks/chunk.6YOCEYSK.js +32 -0
- package/cdn/chunks/chunk.77TXG6FM.js +188 -0
- package/cdn/chunks/chunk.7NFYZMNG.js +19 -0
- package/cdn/chunks/chunk.7PZGJRJ4.js +264 -0
- package/cdn/chunks/chunk.7RCNCS4U.js +198 -0
- package/cdn/chunks/chunk.A3HR5UMX.js +19 -0
- package/cdn/chunks/chunk.A44ASB2E.js +19 -0
- package/cdn/chunks/chunk.AHOS6VUF.js +155 -0
- package/cdn/chunks/chunk.AJW5O45L.js +29 -0
- package/cdn/chunks/chunk.APDRZBCN.js +34 -0
- package/cdn/chunks/chunk.AT7GXBD2.js +19 -0
- package/cdn/chunks/chunk.B7436PBE.js +99 -0
- package/cdn/chunks/chunk.BAXXFOKW.js +29 -0
- package/cdn/chunks/chunk.BEQD5VET.js +477 -0
- package/cdn/chunks/chunk.BGEG3ILU.js +19 -0
- package/cdn/chunks/chunk.BIL4QU4I.js +158 -0
- package/cdn/chunks/chunk.BKJBB7P6.js +19 -0
- package/cdn/chunks/chunk.BRFX2VMD.js +86 -0
- package/cdn/chunks/chunk.C2NSEJUB.js +29 -0
- package/cdn/chunks/chunk.C2OZB7DE.js +19 -0
- package/cdn/chunks/chunk.C5HGW4V2.js +276 -0
- package/cdn/chunks/chunk.C5XMJ6GC.js +309 -0
- package/cdn/chunks/chunk.C6LHPBOI.js +1966 -0
- package/cdn/chunks/chunk.CA7RFX6N.js +359 -0
- package/cdn/chunks/chunk.CGX2AIUE.js +29 -0
- package/cdn/chunks/chunk.CI2GQALQ.js +78 -0
- package/cdn/chunks/chunk.CQ424ME5.js +2073 -0
- package/cdn/chunks/chunk.CV5XFSGK.js +19 -0
- package/cdn/chunks/chunk.D5R3LEZU.js +49 -0
- package/cdn/chunks/chunk.D6CMNUDX.js +954 -0
- package/cdn/chunks/chunk.D6L5MXGZ.js +37 -0
- package/cdn/chunks/chunk.DAQXODMO.js +19 -0
- package/cdn/chunks/chunk.DCLC7OGT.js +29 -0
- package/cdn/chunks/chunk.DHNU3YDL.js +19 -0
- package/cdn/chunks/chunk.DJYUXTUP.js +1803 -0
- package/cdn/chunks/chunk.DLPRJG7W.js +32 -0
- package/cdn/chunks/chunk.DNWNXGQY.js +19 -0
- package/cdn/chunks/chunk.DYMNEARK.js +29 -0
- package/cdn/chunks/chunk.E3W5BATW.js +60 -0
- package/cdn/chunks/chunk.E6OTJQA2.js +615 -0
- package/cdn/chunks/chunk.EEL5QODT.js +41 -0
- package/cdn/chunks/chunk.EHOIWBWJ.js +302 -0
- package/cdn/chunks/chunk.EI2XTC4O.js +278 -0
- package/cdn/chunks/chunk.EQZREVVY.js +29 -0
- package/cdn/chunks/chunk.EVBUT74B.js +19 -0
- package/cdn/chunks/chunk.FBI2TYXB.js +19 -0
- package/cdn/chunks/chunk.FG2ISGVU.js +660 -0
- package/cdn/chunks/chunk.FLUN2UKH.js +372 -0
- package/cdn/chunks/chunk.FTQ5KMTQ.js +151 -0
- package/cdn/chunks/chunk.FU6DSPVY.js +657 -0
- package/cdn/chunks/chunk.G5YHIN6F.js +104 -0
- package/cdn/chunks/chunk.GDJPXXU2.js +286 -0
- package/cdn/chunks/chunk.GIFNSZH6.js +39 -0
- package/cdn/chunks/chunk.GJLQFN2E.js +29 -0
- package/cdn/chunks/chunk.GKLZDT4V.js +229 -0
- package/cdn/chunks/chunk.GR3J7ERT.js +19 -0
- package/cdn/chunks/chunk.GZI4VIBC.js +19 -0
- package/cdn/chunks/chunk.GZTLYMW7.js +29 -0
- package/cdn/chunks/chunk.H3I32IFN.js +19 -0
- package/cdn/chunks/chunk.HBVF6X6O.js +29 -0
- package/cdn/chunks/chunk.HPVMDHB6.js +19 -0
- package/cdn/chunks/chunk.HZR3QQV5.js +19 -0
- package/cdn/chunks/chunk.I33GZT57.js +19 -0
- package/cdn/chunks/chunk.I3MKG2KR.js +92 -0
- package/cdn/chunks/chunk.IDIC52JU.js +19 -0
- package/cdn/chunks/chunk.IMOHWICB.js +36 -0
- package/cdn/chunks/chunk.IN3SYHXS.js +19 -0
- package/cdn/chunks/chunk.ISFWCXRF.js +599 -0
- package/cdn/chunks/chunk.IZ3GPCEW.js +33860 -0
- package/cdn/chunks/chunk.IZV5Q7KV.js +74 -0
- package/cdn/chunks/chunk.J2K53JZV.js +34 -0
- package/cdn/chunks/chunk.J75QLCBQ.js +19 -0
- package/cdn/chunks/chunk.JAG3QJFT.js +134 -0
- package/cdn/chunks/chunk.JD3LSW7U.js +29 -0
- package/cdn/chunks/chunk.JGC7PGMS.js +19 -0
- package/cdn/chunks/chunk.JHZDDMUY.js +29 -0
- package/cdn/chunks/chunk.JLLXBG72.js +19 -0
- package/cdn/chunks/chunk.JNZU345Q.js +55346 -0
- package/cdn/chunks/chunk.JOH7WPM6.js +19 -0
- package/cdn/chunks/chunk.JOP5IKGK.js +29 -0
- package/cdn/chunks/chunk.JSLMWT5S.js +19 -0
- package/cdn/chunks/chunk.JX5TX7XM.js +524 -0
- package/cdn/chunks/chunk.KG6VRPUL.js +610 -0
- package/cdn/chunks/chunk.KH7BIODL.js +29 -0
- package/cdn/chunks/chunk.KLZ3WTOX.js +19 -0
- package/cdn/chunks/chunk.KQC463Q4.js +170 -0
- package/cdn/chunks/chunk.LDVBSHNI.js +29 -0
- package/cdn/chunks/chunk.LPESW6XC.js +19 -0
- package/cdn/chunks/chunk.LS7YQA7Q.js +19 -0
- package/cdn/chunks/chunk.LTJFOFDO.js +19 -0
- package/cdn/chunks/chunk.LTTBS7JX.js +259 -0
- package/cdn/chunks/chunk.LYIM3DGX.js +35 -0
- package/cdn/chunks/chunk.M3AZOEG5.js +33 -0
- package/cdn/chunks/chunk.MEMDT5D6.js +33 -0
- package/cdn/chunks/chunk.N2FBKLVM.js +36 -0
- package/cdn/chunks/chunk.NFP4XN3M.js +19 -0
- package/cdn/chunks/chunk.NJ37BF2N.js +29 -0
- package/cdn/chunks/chunk.NNJTL2WE.js +32 -0
- package/cdn/chunks/chunk.NOEET5Z4.js +32 -0
- package/cdn/chunks/chunk.NPTP4N36.js +165 -0
- package/cdn/chunks/chunk.O2MNTOTN.js +19 -0
- package/cdn/chunks/chunk.OD5OVBHN.js +19 -0
- package/cdn/chunks/chunk.OFE5O3W5.js +35 -0
- package/cdn/chunks/chunk.OLXTWZ2Y.js +19 -0
- package/cdn/chunks/chunk.OTPQCBBK.js +36 -0
- package/cdn/chunks/chunk.OVEGRLIS.js +19 -0
- package/cdn/chunks/chunk.OVTNQSJY.js +29 -0
- package/cdn/chunks/chunk.OW4UIENR.js +34 -0
- package/cdn/chunks/chunk.OWFXU56I.js +47 -0
- package/cdn/chunks/chunk.OZRSX7RA.js +230 -0
- package/cdn/chunks/chunk.PKYJISOI.js +67 -0
- package/cdn/chunks/chunk.PKYJN5TL.js +132 -0
- package/cdn/chunks/chunk.PMXXCLGN.js +99 -0
- package/cdn/chunks/chunk.QJG3KXAL.js +754 -0
- package/cdn/chunks/chunk.QQQCEJ3P.js +19 -0
- package/cdn/chunks/chunk.QTCUUPJT.js +32 -0
- package/cdn/chunks/chunk.QTWGHAMX.js +231 -0
- package/cdn/chunks/chunk.R62X6UTY.js +71 -0
- package/cdn/chunks/chunk.RBI4SUTP.js +29 -0
- package/cdn/chunks/chunk.RF5JQS6G.js +19 -0
- package/cdn/chunks/chunk.RI2OOOHA.js +35 -0
- package/cdn/chunks/chunk.RJDT2HQD.js +943 -0
- package/cdn/chunks/chunk.RPTJEEJR.js +19 -0
- package/cdn/chunks/chunk.RRWPHI7Y.js +19 -0
- package/cdn/chunks/chunk.S4AGLUO5.js +460 -0
- package/cdn/chunks/chunk.SACSIPDE.js +93 -0
- package/cdn/chunks/chunk.SBOWWLCP.js +29 -0
- package/cdn/chunks/chunk.SDD4Y6YW.js +29 -0
- package/cdn/chunks/chunk.SF5YSOET.js +621 -0
- package/cdn/chunks/chunk.SOGAAP43.js +29 -0
- package/cdn/chunks/chunk.T4J7SCOW.js +19 -0
- package/cdn/chunks/chunk.T6VYAQOK.js +284 -0
- package/cdn/chunks/chunk.T7Y2NRB3.js +19 -0
- package/cdn/chunks/chunk.TGEAFYSD.js +32 -0
- package/cdn/chunks/chunk.TLGEOSTJ.js +33 -0
- package/cdn/chunks/chunk.TRPJ2WOJ.js +60 -0
- package/cdn/chunks/chunk.TRRLACND.js +83 -0
- package/cdn/chunks/chunk.TTL2D2K3.js +33 -0
- package/cdn/chunks/chunk.TTZRS2Z2.js +32 -0
- package/cdn/chunks/chunk.TW2COE3D.js +113 -0
- package/cdn/chunks/chunk.U4BF3ZWF.js +190 -0
- package/cdn/chunks/chunk.UNEVE6A4.js +435 -0
- package/cdn/chunks/chunk.UPAWY7GC.js +62 -0
- package/cdn/chunks/chunk.UT54KXFP.js +19 -0
- package/cdn/chunks/chunk.UTEDJXOP.js +82 -0
- package/cdn/chunks/chunk.UUUUK3QA.js +123 -0
- package/cdn/chunks/chunk.UXIMEXHC.js +37 -0
- package/cdn/chunks/chunk.VIW62643.js +29 -0
- package/cdn/chunks/chunk.VM2TQ3LY.js +19 -0
- package/cdn/chunks/chunk.VOCQHX7F.js +32 -0
- package/cdn/chunks/chunk.VS2VJKT2.js +19 -0
- package/cdn/chunks/chunk.WLXVWP7V.js +19 -0
- package/cdn/chunks/chunk.WOEBW5PN.js +19 -0
- package/cdn/chunks/chunk.WSJODP2O.js +30 -0
- package/cdn/chunks/chunk.XQJPYZPB.js +32 -0
- package/cdn/chunks/chunk.XTDFLS7Z.js +33 -0
- package/cdn/chunks/chunk.XZQ44RGE.js +189 -0
- package/cdn/chunks/chunk.YH2RHLYO.js +19 -0
- package/cdn/chunks/chunk.YHFXH4XR.js +19 -0
- package/cdn/chunks/chunk.YID2PD4H.js +83 -0
- package/cdn/chunks/chunk.YJL3JAIE.js +19 -0
- package/cdn/chunks/chunk.YMBKFE6C.js +19 -0
- package/cdn/chunks/chunk.YQ73WBVE.js +29 -0
- package/cdn/chunks/chunk.YQF3O4M6.js +240 -0
- package/cdn/chunks/chunk.ZDTOKUHN.js +19 -0
- package/cdn/chunks/chunk.ZGAJXSLY.js +32 -0
- package/cdn/chunks/chunk.ZM3NLLMD.js +357 -0
- package/cdn/chunks/chunk.ZVC2TYWY.js +106 -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 +4 -4
- package/cdn/components/alert/alert.js +5 -5
- package/cdn/components/avatar/avatar.component.js +5 -5
- package/cdn/components/avatar/avatar.js +6 -6
- package/cdn/components/badge/badge.component.js +3 -3
- package/cdn/components/badge/badge.js +4 -4
- 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 +13 -13
- package/cdn/components/browse-variables/browse-variables.js +14 -14
- package/cdn/components/button/button.component.d.ts +6 -0
- package/cdn/components/button/button.component.js +6 -6
- package/cdn/components/button/button.js +7 -7
- 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 +6 -6
- package/cdn/components/checkbox/checkbox.js +7 -7
- package/cdn/components/chip/chip.component.d.ts +2 -0
- package/cdn/components/chip/chip.component.js +2 -2
- package/cdn/components/chip/chip.js +3 -3
- package/cdn/components/combobox/combobox.component.js +3 -3
- package/cdn/components/combobox/combobox.js +4 -4
- package/cdn/components/data-access/data-access.component.d.ts +3 -1
- package/cdn/components/data-access/data-access.component.js +27 -26
- package/cdn/components/data-access/data-access.controller.d.ts +8 -0
- package/cdn/components/data-access/data-access.controller.js +1 -1
- package/cdn/components/data-access/data-access.js +28 -27
- package/cdn/components/data-access/data-access.styles.js +1 -1
- package/cdn/components/data-access/notebooks/data-access-notebook.js +3 -77
- package/cdn/components/data-grid/data-grid.component.js +3 -3
- package/cdn/components/data-grid/data-grid.js +4 -4
- package/cdn/components/data-rods/data-rods.component.js +35 -35
- package/cdn/components/data-rods/data-rods.js +36 -36
- package/cdn/components/data-subsetter/data-subsetter.component.js +39 -38
- package/cdn/components/data-subsetter/data-subsetter.controller.js +1 -1
- package/cdn/components/data-subsetter/data-subsetter.js +40 -39
- package/cdn/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
- package/cdn/components/data-subsetter-history/data-subsetter-history.component.js +40 -39
- package/cdn/components/data-subsetter-history/data-subsetter-history.js +41 -40
- package/cdn/components/date-picker/date-picker.component.js +11 -11
- package/cdn/components/date-picker/date-picker.js +12 -12
- 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 +8 -8
- package/cdn/components/dialog/dialog.js +9 -9
- package/cdn/components/divider/divider.component.js +2 -2
- package/cdn/components/divider/divider.js +3 -3
- package/cdn/components/dropdown/dropdown.component.js +4 -4
- package/cdn/components/dropdown/dropdown.js +5 -5
- package/cdn/components/earthdata-login/earthdata-login.component.js +13 -13
- package/cdn/components/earthdata-login/earthdata-login.js +14 -14
- package/cdn/components/file-upload/file-upload.component.js +2 -2
- package/cdn/components/file-upload/file-upload.js +3 -3
- package/cdn/components/icon/icon.component.js +4 -4
- package/cdn/components/icon/icon.js +5 -5
- package/cdn/components/input/input.component.js +6 -6
- package/cdn/components/input/input.js +7 -7
- package/cdn/components/loader/loader.component.js +2 -2
- package/cdn/components/loader/loader.js +3 -3
- package/cdn/components/login/login.component.js +11 -11
- package/cdn/components/login/login.js +12 -12
- package/cdn/components/map/leaflet-utils.d.ts +1 -0
- package/cdn/components/map/leaflet-utils.js +1 -1
- package/cdn/components/map/map.component.d.ts +4 -0
- package/cdn/components/map/map.component.js +5 -5
- package/cdn/components/map/map.js +6 -6
- 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 +8 -8
- package/cdn/components/menu-item/menu-item.js +9 -9
- package/cdn/components/menu-item/submenu-controller.js +1 -1
- package/cdn/components/option/option.component.js +5 -5
- package/cdn/components/option/option.js +6 -6
- package/cdn/components/pagination/pagination.component.js +5 -5
- package/cdn/components/pagination/pagination.js +6 -6
- package/cdn/components/plot/plot.component.js +3 -3
- package/cdn/components/plot/plot.js +4 -4
- 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 +13 -13
- package/cdn/components/plot-toolbar/plot-toolbar.js +14 -14
- 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 +3 -3
- package/cdn/components/radio/radio.js +4 -4
- package/cdn/components/radio-group/radio-group.component.js +3 -3
- package/cdn/components/radio-group/radio-group.js +4 -4
- package/cdn/components/scroll-hint/scroll-hint.component.js +5 -5
- package/cdn/components/scroll-hint/scroll-hint.js +6 -6
- package/cdn/components/select/select.component.js +9 -9
- package/cdn/components/select/select.js +10 -10
- package/cdn/components/site-header/site-header.component.js +6 -6
- package/cdn/components/site-header/site-header.js +6 -6
- 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.d.ts +4 -0
- package/cdn/components/spatial-picker/spatial-picker.component.js +13 -13
- package/cdn/components/spatial-picker/spatial-picker.js +14 -14
- 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 +5 -5
- package/cdn/components/stepper-step/stepper-step.js +6 -6
- package/cdn/components/tab/tab.component.js +5 -5
- package/cdn/components/tab/tab.js +6 -6
- package/cdn/components/tab-panel/tab-panel.component.js +3 -3
- package/cdn/components/tab-panel/tab-panel.js +4 -4
- package/cdn/components/tabs/tabs.component.js +5 -5
- package/cdn/components/tabs/tabs.js +6 -6
- package/cdn/components/tag/tag.component.js +5 -5
- package/cdn/components/tag/tag.js +6 -6
- package/cdn/components/textarea/textarea.component.js +4 -4
- package/cdn/components/textarea/textarea.js +5 -5
- package/cdn/components/time-average-map/time-average-map.component.js +21 -21
- package/cdn/components/time-average-map/time-average-map.controller.js +2 -2
- package/cdn/components/time-average-map/time-average-map.js +22 -22
- package/cdn/components/time-series/time-series.component.js +22 -22
- package/cdn/components/time-series/time-series.controller.js +2 -2
- package/cdn/components/time-series/time-series.js +23 -23
- package/cdn/components/toast/toast.component.js +5 -5
- package/cdn/components/toast/toast.js +6 -6
- package/cdn/components/toggle/toggle.component.js +4 -4
- package/cdn/components/toggle/toggle.js +5 -5
- package/cdn/components/tooltip/tooltip.component.js +4 -4
- package/cdn/components/tooltip/tooltip.js +5 -5
- package/cdn/components/variable-combobox/variable-combobox.component.js +10 -10
- package/cdn/components/variable-combobox/variable-combobox.js +11 -11
- package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +10 -10
- package/cdn/components/variable-keyword-search/variable-keyword-search.js +11 -11
- package/cdn/custom-elements.json +4170 -4065
- package/cdn/react/accordion/index.js +6 -6
- package/cdn/react/alert/index.js +5 -5
- package/cdn/react/avatar/index.js +6 -6
- package/cdn/react/badge/index.js +4 -4
- package/cdn/react/breadcrumb/index.js +3 -3
- package/cdn/react/breadcrumbs/index.js +3 -3
- package/cdn/react/browse-variables/index.js +14 -14
- package/cdn/react/button/index.d.ts +12 -1
- package/cdn/react/button/index.js +7 -7
- 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 +7 -7
- package/cdn/react/chip/index.d.ts +8 -1
- package/cdn/react/chip/index.js +3 -3
- package/cdn/react/combobox/index.js +4 -4
- package/cdn/react/data-access/index.js +28 -27
- package/cdn/react/data-grid/index.js +4 -4
- package/cdn/react/data-rods/index.js +36 -36
- package/cdn/react/data-subsetter/index.js +40 -39
- package/cdn/react/data-subsetter-history/index.js +41 -40
- package/cdn/react/date-picker/index.js +12 -12
- package/cdn/react/date-range-slider/index.js +3 -3
- package/cdn/react/dialog/index.js +9 -9
- package/cdn/react/divider/index.js +3 -3
- package/cdn/react/dropdown/index.js +5 -5
- package/cdn/react/earthdata-login/index.js +14 -14
- package/cdn/react/file-upload/index.js +3 -3
- package/cdn/react/icon/index.js +5 -5
- package/cdn/react/index.d.ts +11 -11
- package/cdn/react/index.js +200 -199
- package/cdn/react/input/index.js +7 -7
- package/cdn/react/loader/index.js +3 -3
- package/cdn/react/login/index.js +12 -12
- package/cdn/react/map/index.js +6 -6
- package/cdn/react/menu/index.js +3 -3
- package/cdn/react/menu-item/index.js +9 -9
- package/cdn/react/option/index.js +6 -6
- package/cdn/react/pagination/index.js +6 -6
- package/cdn/react/plot/index.js +4 -4
- package/cdn/react/plot-toolbar/index.js +14 -14
- package/cdn/react/popup/index.js +3 -3
- package/cdn/react/progress-bar/index.js +3 -3
- package/cdn/react/radio/index.js +4 -4
- package/cdn/react/radio-group/index.js +4 -4
- package/cdn/react/scroll-hint/index.js +6 -6
- package/cdn/react/select/index.js +10 -10
- package/cdn/react/site-header/index.js +7 -7
- 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 +14 -14
- package/cdn/react/status-indicator/index.js +3 -3
- package/cdn/react/stepper/index.js +3 -3
- package/cdn/react/stepper-step/index.js +6 -6
- package/cdn/react/tab/index.js +6 -6
- package/cdn/react/tab-panel/index.js +4 -4
- package/cdn/react/tabs/index.js +6 -6
- package/cdn/react/tag/index.js +6 -6
- package/cdn/react/textarea/index.js +5 -5
- package/cdn/react/time-average-map/index.js +22 -22
- package/cdn/react/time-series/index.js +23 -23
- package/cdn/react/toast/index.js +6 -6
- package/cdn/react/toggle/index.js +5 -5
- package/cdn/react/tooltip/index.js +5 -5
- package/cdn/react/variable-combobox/index.js +11 -11
- package/cdn/react/variable-keyword-search/index.js +11 -11
- package/cdn/terra-ui-components.js +192 -191
- package/cdn/types/vue/index.d.ts +541 -521
- package/cdn/utilities/mimetypes.js +1 -1
- package/cdn/vscode.html-custom-data.json +419 -404
- package/cdn/web-types.json +1120 -1062
- package/dist/chunks/chunk.23NLQYJ7.js +11 -0
- package/dist/chunks/chunk.2HXEBKDJ.js +11 -0
- package/dist/chunks/chunk.2TL5SGLD.js +11 -0
- package/dist/chunks/chunk.2VDXL62K.js +11 -0
- package/dist/chunks/chunk.2VHPJYJX.js +11 -0
- package/dist/chunks/chunk.3247IXNN.js +11 -0
- package/dist/chunks/chunk.3CINJNOA.js +24 -0
- package/dist/chunks/chunk.3GYL6ORG.js +21 -0
- package/dist/chunks/chunk.3ONUIWXV.js +29 -0
- package/dist/chunks/chunk.3QWCR7W7.js +24 -0
- package/dist/chunks/chunk.3SE6ZIME.js +11 -0
- package/dist/chunks/chunk.3UO4BPIZ.js +11 -0
- package/dist/chunks/chunk.3XFQA2XA.js +11 -0
- package/dist/chunks/chunk.45MY2TZ5.js +93 -0
- package/dist/chunks/chunk.47EHCMIS.js +11 -0
- package/dist/chunks/chunk.4IT7UTHS.js +21 -0
- package/dist/chunks/chunk.4JDUHDVS.js +525 -0
- package/dist/chunks/chunk.4WIFFN7U.js +89 -0
- package/dist/chunks/chunk.5CQ3UBKW.js +21 -0
- package/dist/chunks/chunk.5K55E6UH.js +25 -0
- package/dist/chunks/chunk.5KYQIBJW.js +11 -0
- package/dist/chunks/chunk.5OE6LILN.js +844 -0
- package/dist/chunks/chunk.5RCWRDS6.js +642 -0
- package/dist/chunks/chunk.65RMIPXH.js +21 -0
- package/dist/chunks/chunk.6E2CQRCE.js +291 -0
- package/dist/chunks/chunk.6FWNBIFP.js +21 -0
- package/dist/chunks/chunk.6JNRKHB4.js +25 -0
- package/dist/chunks/chunk.6L37ZKYY.js +28 -0
- package/dist/chunks/chunk.6TFGD3QA.js +180 -0
- package/dist/chunks/chunk.74BMSBNF.js +11 -0
- package/dist/chunks/chunk.7BLY6TM7.js +11 -0
- package/dist/chunks/chunk.7BOCHV2R.js +21 -0
- package/dist/chunks/chunk.7QALYCE5.js +11 -0
- package/dist/chunks/chunk.7VBFJCK4.js +21 -0
- package/dist/chunks/chunk.7WF6TPF6.js +11 -0
- package/dist/chunks/chunk.A56NOSXD.js +443 -0
- package/dist/chunks/chunk.ATQZRLHV.js +21 -0
- package/dist/chunks/chunk.AYGU6XYF.js +11 -0
- package/dist/chunks/chunk.B3DZ7FFL.js +271 -0
- package/dist/chunks/chunk.B5CILBXM.js +11 -0
- package/dist/chunks/chunk.B75DWB3E.js +21 -0
- package/dist/chunks/chunk.BH2KP7PZ.js +24 -0
- package/dist/chunks/chunk.BRJ7H3TE.js +25 -0
- package/dist/chunks/chunk.BRSGX5AM.js +11 -0
- package/dist/chunks/chunk.BSUXEC3M.js +143 -0
- package/dist/chunks/chunk.D2NEYV7K.js +262 -0
- package/dist/chunks/chunk.D2WXN4BG.js +11 -0
- package/dist/chunks/chunk.D5M6M4QG.js +11 -0
- package/dist/chunks/chunk.D67GQK4P.js +11 -0
- package/dist/chunks/chunk.D7UB7ALS.js +31 -0
- package/dist/chunks/chunk.DEO7CUOC.js +86 -0
- package/dist/chunks/chunk.DGI2HS6F.js +24 -0
- package/dist/chunks/chunk.DLLWR2VD.js +11 -0
- package/dist/chunks/chunk.DM52LQTY.js +11 -0
- package/dist/chunks/chunk.DQZBUH37.js +345 -0
- package/dist/chunks/chunk.DRBSI7XC.js +24 -0
- package/dist/chunks/chunk.DRS2JY44.js +67 -0
- package/dist/chunks/chunk.DZHKU3N5.js +245 -0
- package/dist/chunks/chunk.EIND5KV5.js +733 -0
- package/dist/chunks/chunk.EOUABBGI.js +123 -0
- package/dist/chunks/chunk.ESLNXPTJ.js +21 -0
- package/dist/chunks/chunk.EVTNY6AO.js +153 -0
- package/dist/chunks/chunk.FCVMQBC6.js +927 -0
- package/dist/chunks/chunk.FEL4RVQO.js +11 -0
- package/dist/chunks/chunk.FEORSNUI.js +220 -0
- package/dist/chunks/chunk.FGTNTIOR.js +21 -0
- package/dist/chunks/chunk.FIT2RVBA.js +180 -0
- package/dist/chunks/chunk.FLBPWUOX.js +11 -0
- package/dist/chunks/chunk.FLJ2EW3R.js +11 -0
- package/dist/chunks/chunk.FM6RMNPW.js +29 -0
- package/dist/chunks/chunk.FP2ZZ5E2.js +28 -0
- package/dist/chunks/chunk.FRFLTGR4.js +24 -0
- package/dist/chunks/chunk.FSKG5KRG.js +20 -0
- package/dist/chunks/chunk.GA27DR2B.js +220 -0
- package/dist/chunks/chunk.GHURD4CJ.js +11 -0
- package/dist/chunks/chunk.GSU5W4TG.js +1788 -0
- package/dist/chunks/chunk.HAQWUOM4.js +75 -0
- package/dist/chunks/chunk.HFFC7CSH.js +61 -0
- package/dist/chunks/chunk.HQVGLVRZ.js +52 -0
- package/dist/chunks/chunk.HRIOFO3J.js +25 -0
- package/dist/chunks/chunk.HT2SR5A4.js +21 -0
- package/dist/chunks/chunk.HV6RS7ZE.js +11 -0
- package/dist/chunks/chunk.HW7S6WES.js +11 -0
- package/dist/chunks/chunk.HXDEAUF3.js +11 -0
- package/dist/chunks/chunk.IACKHKNK.js +39 -0
- package/dist/chunks/chunk.ICKWGKAA.js +24 -0
- package/dist/chunks/chunk.IDSPFGMF.js +24 -0
- package/dist/chunks/chunk.IEWMER6A.js +27 -0
- package/dist/chunks/chunk.IG5E3PNG.js +145 -0
- package/dist/chunks/chunk.ILC2ULOI.js +91 -0
- package/dist/chunks/chunk.J22KHIHT.js +11 -0
- package/dist/chunks/chunk.J543UX5E.js +11 -0
- package/dist/chunks/chunk.JBAD2K7T.js +21 -0
- package/dist/chunks/chunk.JLZUVFCE.js +287 -0
- package/dist/chunks/chunk.JTBVF4U6.js +422 -0
- package/dist/chunks/chunk.K2SZX5IG.js +21 -0
- package/dist/chunks/chunk.K3AWJBDJ.js +21 -0
- package/dist/chunks/chunk.KE3MZQ6G.js +21 -0
- package/dist/chunks/chunk.KFBVHRHZ.js +11 -0
- package/dist/chunks/chunk.KMFDKQOL.js +83 -0
- package/dist/chunks/chunk.LFAE5YNF.js +11 -0
- package/dist/chunks/chunk.LFAOPKE4.js +21 -0
- package/dist/chunks/chunk.LLHM6XAL.js +11 -0
- package/dist/chunks/chunk.LOG6ATWX.js +609 -0
- package/dist/chunks/chunk.LOSJS73C.js +48 -0
- package/dist/chunks/chunk.LTYKZQRC.js +121 -0
- package/dist/chunks/chunk.LUHKHMDR.js +11 -0
- package/dist/chunks/chunk.LVEVEN6X.js +11 -0
- package/dist/chunks/chunk.M5JKEDTX.js +24 -0
- package/dist/chunks/chunk.MILX66GG.js +25 -0
- package/dist/chunks/chunk.MJAA2EKQ.js +214 -0
- package/dist/chunks/chunk.MJQNLZIJ.js +57 -0
- package/dist/chunks/chunk.MOVS4YNJ.js +24 -0
- package/dist/chunks/chunk.MU56K6DK.js +24 -0
- package/dist/chunks/chunk.MYBSXZHT.js +278 -0
- package/dist/chunks/chunk.N44PPT5L.js +74 -0
- package/dist/chunks/chunk.N7PWSHBL.js +24 -0
- package/dist/chunks/chunk.NAZZYKXP.js +11 -0
- package/dist/chunks/chunk.NDFKP43K.js +52 -0
- package/dist/chunks/chunk.NFRQWBWE.js +78 -0
- package/dist/chunks/chunk.NO5K5I44.js +27 -0
- package/dist/chunks/chunk.NP4VI55C.js +21 -0
- package/dist/chunks/chunk.NSUXBNRY.js +1124 -0
- package/dist/chunks/chunk.NYSYEO6S.js +477 -0
- package/dist/chunks/chunk.OKITA6RN.js +43 -0
- package/dist/chunks/chunk.ONVJYGXW.js +112 -0
- package/dist/chunks/chunk.OOZ35KRV.js +458 -0
- package/dist/chunks/chunk.OQMU445F.js +229 -0
- package/dist/chunks/chunk.PNYCPGP6.js +21 -0
- package/dist/chunks/chunk.PWY2KP3Q.js +581 -0
- package/dist/chunks/chunk.QFGNVANU.js +345 -0
- package/dist/chunks/chunk.QKEGFJMV.js +11 -0
- package/dist/chunks/chunk.QKFXTGWF.js +11 -0
- package/dist/chunks/chunk.QQEZTSC7.js +24 -0
- package/dist/chunks/chunk.QROD7XSA.js +21 -0
- package/dist/chunks/chunk.QWM7TR7V.js +11 -0
- package/dist/chunks/chunk.QWW2BYOP.js +21 -0
- package/dist/chunks/chunk.R45WTHZT.js +11 -0
- package/dist/chunks/chunk.R4VDG6AK.js +446 -0
- package/dist/chunks/chunk.R7XNQ3UF.js +11 -0
- package/dist/chunks/chunk.RE75I24N.js +11 -0
- package/dist/chunks/chunk.RI2R4X2H.js +11 -0
- package/dist/chunks/chunk.RKNRGTZP.js +27 -0
- package/dist/chunks/chunk.RKYRE5YW.js +64 -0
- package/dist/chunks/chunk.RMC5XGJR.js +937 -0
- package/dist/chunks/chunk.RNCN4M47.js +26 -0
- package/dist/chunks/chunk.RQ27EUVN.js +190 -0
- package/dist/chunks/chunk.RQLZOB4O.js +214 -0
- package/dist/chunks/chunk.S4FQNSDY.js +11 -0
- package/dist/chunks/chunk.S4RYPA4R.js +24 -0
- package/dist/chunks/chunk.S5DYKI6G.js +11 -0
- package/dist/chunks/chunk.S7FJE6DS.js +97 -0
- package/dist/chunks/chunk.SA6GMLYJ.js +11 -0
- package/dist/chunks/chunk.SD3BVNB4.js +11 -0
- package/dist/chunks/chunk.SVXJ6IWX.js +21 -0
- package/dist/chunks/chunk.T255GJVN.js +213 -0
- package/dist/chunks/chunk.T2UA4I4O.js +472 -0
- package/dist/chunks/chunk.TCOLWI6Z.js +21 -0
- package/dist/chunks/chunk.TD4HMCFI.js +21 -0
- package/dist/chunks/chunk.TPZRD4LL.js +11 -0
- package/dist/chunks/chunk.TQRJHVPX.js +27 -0
- package/dist/chunks/chunk.TRCVXOB3.js +25 -0
- package/dist/chunks/chunk.TRZ24D6C.js +28 -0
- package/dist/chunks/chunk.TU3Z4DM7.js +21 -0
- package/dist/chunks/chunk.U3XIKOX7.js +73 -0
- package/dist/chunks/chunk.UAQROBYW.js +21 -0
- package/dist/chunks/chunk.UGI4WX6F.js +11 -0
- package/dist/chunks/chunk.ULZ5HNOZ.js +11 -0
- package/dist/chunks/chunk.V2TFKPNC.js +449 -0
- package/dist/chunks/chunk.VPDGNTFF.js +11 -0
- package/dist/chunks/chunk.VPYT2IYR.js +11 -0
- package/dist/chunks/chunk.VQDCH34V.js +85 -0
- package/dist/chunks/chunk.VVCGM4BW.js +21 -0
- package/dist/chunks/chunk.VVQDHS65.js +2062 -0
- package/dist/chunks/chunk.W6TNURMD.js +24 -0
- package/dist/chunks/chunk.WIYDJCKH.js +11 -0
- package/dist/chunks/chunk.WP3THC5K.js +591 -0
- package/dist/chunks/chunk.WPKMKO7L.js +596 -0
- package/dist/chunks/chunk.WRZTYDD7.js +101 -0
- package/dist/chunks/chunk.X4LEFOTK.js +26 -0
- package/dist/chunks/chunk.X4T5FEVN.js +409 -0
- package/dist/chunks/chunk.X627CJ3G.js +161 -0
- package/dist/chunks/chunk.XBO7X2M2.js +11 -0
- package/dist/chunks/chunk.XE4T3WTA.js +120 -0
- package/dist/chunks/chunk.XJTJGJAK.js +21 -0
- package/dist/chunks/chunk.XSFRIUM5.js +355 -0
- package/dist/chunks/chunk.XWO3K7ZZ.js +11 -0
- package/dist/chunks/chunk.YS3LXZOQ.js +11 -0
- package/dist/chunks/chunk.YX54YA5F.js +247 -0
- package/dist/chunks/chunk.Z2UUIIRV.js +11 -0
- package/dist/chunks/chunk.Z35NQ7A7.js +33 -0
- package/dist/chunks/chunk.Z4UDKTEF.js +11 -0
- package/dist/chunks/chunk.Z6G2TOJC.js +241 -0
- package/dist/chunks/chunk.ZD56437X.js +180 -0
- package/dist/chunks/chunk.ZDZUNTE2.js +28 -0
- package/dist/chunks/chunk.ZIVBHHJU.js +21 -0
- package/dist/chunks/chunk.ZLAXCM2J.js +61 -0
- package/dist/chunks/chunk.ZP2DB3XG.js +264 -0
- package/dist/chunks/chunk.ZPH3RFHS.js +252 -0
- package/dist/chunks/chunk.ZXLL6LDL.js +11 -0
- package/dist/components/accordion/accordion.component.js +5 -5
- package/dist/components/accordion/accordion.js +6 -6
- package/dist/components/alert/alert.component.js +3 -3
- package/dist/components/alert/alert.js +4 -4
- package/dist/components/avatar/avatar.component.js +5 -5
- package/dist/components/avatar/avatar.js +6 -6
- package/dist/components/badge/badge.component.js +3 -3
- package/dist/components/badge/badge.js +4 -4
- package/dist/components/breadcrumb/breadcrumb.component.js +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +3 -3
- package/dist/components/breadcrumbs/breadcrumbs.component.js +2 -2
- package/dist/components/breadcrumbs/breadcrumbs.js +3 -3
- package/dist/components/browse-variables/browse-variables.component.js +13 -13
- package/dist/components/browse-variables/browse-variables.js +14 -14
- package/dist/components/button/button.component.d.ts +6 -0
- package/dist/components/button/button.component.js +6 -6
- package/dist/components/button/button.js +7 -7
- package/dist/components/button-group/button-group.component.js +2 -2
- package/dist/components/button-group/button-group.js +3 -3
- package/dist/components/caption/caption.component.js +2 -2
- package/dist/components/caption/caption.js +3 -3
- package/dist/components/card/card.component.js +2 -2
- package/dist/components/card/card.js +3 -3
- package/dist/components/checkbox/checkbox.component.js +6 -6
- package/dist/components/checkbox/checkbox.js +7 -7
- package/dist/components/chip/chip.component.d.ts +2 -0
- package/dist/components/chip/chip.component.js +2 -2
- package/dist/components/chip/chip.js +3 -3
- package/dist/components/combobox/combobox.component.js +2 -2
- package/dist/components/combobox/combobox.js +3 -3
- package/dist/components/data-access/data-access.component.d.ts +3 -1
- package/dist/components/data-access/data-access.component.js +26 -25
- package/dist/components/data-access/data-access.controller.d.ts +8 -0
- package/dist/components/data-access/data-access.controller.js +1 -1
- package/dist/components/data-access/data-access.js +27 -26
- package/dist/components/data-access/data-access.styles.js +1 -1
- package/dist/components/data-access/notebooks/data-access-notebook.js +3 -70
- package/dist/components/data-grid/data-grid.component.js +3 -3
- package/dist/components/data-grid/data-grid.js +4 -4
- package/dist/components/data-rods/data-rods.component.js +34 -34
- package/dist/components/data-rods/data-rods.js +35 -35
- package/dist/components/data-subsetter/data-subsetter.component.js +38 -37
- package/dist/components/data-subsetter/data-subsetter.controller.js +1 -1
- package/dist/components/data-subsetter/data-subsetter.js +39 -38
- package/dist/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
- package/dist/components/data-subsetter-history/data-subsetter-history.component.js +39 -38
- package/dist/components/data-subsetter-history/data-subsetter-history.js +40 -39
- package/dist/components/date-picker/date-picker.component.js +11 -11
- package/dist/components/date-picker/date-picker.js +12 -12
- package/dist/components/date-range-slider/date-range-slider.component.js +2 -2
- package/dist/components/date-range-slider/date-range-slider.js +3 -3
- package/dist/components/dialog/dialog.component.js +8 -8
- package/dist/components/dialog/dialog.js +9 -9
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/dropdown/dropdown.component.js +3 -3
- package/dist/components/dropdown/dropdown.js +4 -4
- package/dist/components/earthdata-login/earthdata-login.component.js +13 -13
- package/dist/components/earthdata-login/earthdata-login.js +14 -14
- package/dist/components/file-upload/file-upload.component.js +2 -2
- package/dist/components/file-upload/file-upload.js +3 -3
- package/dist/components/icon/icon.component.js +4 -4
- package/dist/components/icon/icon.js +5 -5
- package/dist/components/input/input.component.js +6 -6
- package/dist/components/input/input.js +7 -7
- package/dist/components/loader/loader.component.js +2 -2
- package/dist/components/loader/loader.js +3 -3
- package/dist/components/login/login.component.js +11 -11
- package/dist/components/login/login.js +12 -12
- package/dist/components/map/leaflet-utils.d.ts +1 -0
- package/dist/components/map/leaflet-utils.js +1 -1
- package/dist/components/map/map.component.d.ts +4 -0
- package/dist/components/map/map.component.js +4 -4
- package/dist/components/map/map.js +5 -5
- package/dist/components/menu/menu.component.js +2 -2
- package/dist/components/menu/menu.js +3 -3
- package/dist/components/menu-item/menu-item.component.js +8 -8
- package/dist/components/menu-item/menu-item.js +9 -9
- package/dist/components/option/option.component.js +5 -5
- package/dist/components/option/option.js +6 -6
- package/dist/components/pagination/pagination.component.js +5 -5
- package/dist/components/pagination/pagination.js +6 -6
- package/dist/components/plot/plot.component.js +2 -2
- package/dist/components/plot/plot.js +3 -3
- package/dist/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +1 -1
- package/dist/components/plot-toolbar/notebooks/time-series-notebook.js +1 -1
- package/dist/components/plot-toolbar/plot-toolbar.component.js +13 -13
- package/dist/components/plot-toolbar/plot-toolbar.js +14 -14
- package/dist/components/popup/popup.component.js +2 -2
- package/dist/components/popup/popup.js +3 -3
- package/dist/components/progress-bar/progress-bar.component.js +2 -2
- package/dist/components/progress-bar/progress-bar.js +3 -3
- package/dist/components/radio/radio.component.js +2 -2
- package/dist/components/radio/radio.js +3 -3
- package/dist/components/radio-group/radio-group.component.js +2 -2
- package/dist/components/radio-group/radio-group.js +3 -3
- package/dist/components/scroll-hint/scroll-hint.component.js +5 -5
- package/dist/components/scroll-hint/scroll-hint.js +6 -6
- package/dist/components/select/select.component.js +9 -9
- package/dist/components/select/select.js +10 -10
- package/dist/components/site-header/site-header.component.js +6 -6
- package/dist/components/site-header/site-header.js +6 -6
- package/dist/components/site-navigation/site-navigation.component.js +2 -2
- package/dist/components/site-navigation/site-navigation.js +2 -2
- package/dist/components/skeleton/skeleton.component.js +2 -2
- package/dist/components/skeleton/skeleton.js +3 -3
- package/dist/components/slider/slider.component.js +2 -2
- package/dist/components/slider/slider.js +3 -3
- package/dist/components/spatial-picker/spatial-picker.component.d.ts +4 -0
- package/dist/components/spatial-picker/spatial-picker.component.js +13 -13
- package/dist/components/spatial-picker/spatial-picker.js +14 -14
- package/dist/components/status-indicator/status-indicator.component.js +2 -2
- package/dist/components/status-indicator/status-indicator.js +3 -3
- package/dist/components/stepper/stepper.component.js +2 -2
- package/dist/components/stepper/stepper.js +3 -3
- package/dist/components/stepper-step/stepper-step.component.js +5 -5
- package/dist/components/stepper-step/stepper-step.js +6 -6
- package/dist/components/tab/tab.component.js +5 -5
- package/dist/components/tab/tab.js +6 -6
- package/dist/components/tab-panel/tab-panel.component.js +2 -2
- package/dist/components/tab-panel/tab-panel.js +3 -3
- package/dist/components/tabs/tabs.component.js +5 -5
- package/dist/components/tabs/tabs.js +6 -6
- package/dist/components/tag/tag.component.js +5 -5
- package/dist/components/tag/tag.js +6 -6
- package/dist/components/textarea/textarea.component.js +2 -2
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/time-average-map/time-average-map.component.js +21 -21
- package/dist/components/time-average-map/time-average-map.controller.js +2 -2
- package/dist/components/time-average-map/time-average-map.js +22 -22
- package/dist/components/time-series/time-series.component.js +22 -22
- package/dist/components/time-series/time-series.controller.js +2 -2
- package/dist/components/time-series/time-series.js +23 -23
- package/dist/components/toast/toast.component.js +4 -4
- package/dist/components/toast/toast.js +5 -5
- package/dist/components/toggle/toggle.component.js +2 -2
- package/dist/components/toggle/toggle.js +3 -3
- package/dist/components/tooltip/tooltip.component.js +3 -3
- package/dist/components/tooltip/tooltip.js +4 -4
- package/dist/components/variable-combobox/variable-combobox.component.js +10 -10
- package/dist/components/variable-combobox/variable-combobox.js +11 -11
- package/dist/components/variable-keyword-search/variable-keyword-search.component.js +10 -10
- package/dist/components/variable-keyword-search/variable-keyword-search.js +11 -11
- package/dist/custom-elements.json +4170 -4065
- package/dist/react/accordion/index.js +6 -6
- package/dist/react/alert/index.js +4 -4
- package/dist/react/avatar/index.js +6 -6
- package/dist/react/badge/index.js +4 -4
- package/dist/react/breadcrumb/index.js +3 -3
- package/dist/react/breadcrumbs/index.js +3 -3
- package/dist/react/browse-variables/index.js +14 -14
- package/dist/react/button/index.d.ts +12 -1
- package/dist/react/button/index.js +7 -7
- package/dist/react/button-group/index.js +3 -3
- package/dist/react/caption/index.js +3 -3
- package/dist/react/card/index.js +3 -3
- package/dist/react/checkbox/index.js +7 -7
- package/dist/react/chip/index.d.ts +8 -1
- package/dist/react/chip/index.js +3 -3
- package/dist/react/combobox/index.js +3 -3
- package/dist/react/data-access/index.js +27 -26
- package/dist/react/data-grid/index.js +4 -4
- package/dist/react/data-rods/index.js +35 -35
- package/dist/react/data-subsetter/index.js +39 -38
- package/dist/react/data-subsetter-history/index.js +40 -39
- package/dist/react/date-picker/index.js +12 -12
- package/dist/react/date-range-slider/index.js +3 -3
- package/dist/react/dialog/index.js +9 -9
- package/dist/react/divider/index.js +3 -3
- package/dist/react/dropdown/index.js +4 -4
- package/dist/react/earthdata-login/index.js +14 -14
- package/dist/react/file-upload/index.js +3 -3
- package/dist/react/icon/index.js +5 -5
- package/dist/react/index.d.ts +11 -11
- package/dist/react/index.js +199 -198
- package/dist/react/input/index.js +7 -7
- package/dist/react/loader/index.js +3 -3
- package/dist/react/login/index.js +12 -12
- package/dist/react/map/index.js +5 -5
- package/dist/react/menu/index.js +3 -3
- package/dist/react/menu-item/index.js +9 -9
- package/dist/react/option/index.js +6 -6
- package/dist/react/pagination/index.js +6 -6
- package/dist/react/plot/index.js +3 -3
- package/dist/react/plot-toolbar/index.js +14 -14
- package/dist/react/popup/index.js +3 -3
- package/dist/react/progress-bar/index.js +3 -3
- package/dist/react/radio/index.js +3 -3
- package/dist/react/radio-group/index.js +3 -3
- package/dist/react/scroll-hint/index.js +6 -6
- package/dist/react/select/index.js +10 -10
- package/dist/react/site-header/index.js +7 -7
- package/dist/react/site-navigation/index.js +3 -3
- package/dist/react/skeleton/index.js +3 -3
- package/dist/react/slider/index.js +3 -3
- package/dist/react/spatial-picker/index.js +14 -14
- package/dist/react/status-indicator/index.js +3 -3
- package/dist/react/stepper/index.js +3 -3
- package/dist/react/stepper-step/index.js +6 -6
- package/dist/react/tab/index.js +6 -6
- package/dist/react/tab-panel/index.js +3 -3
- package/dist/react/tabs/index.js +6 -6
- package/dist/react/tag/index.js +6 -6
- package/dist/react/textarea/index.js +3 -3
- package/dist/react/time-average-map/index.js +22 -22
- package/dist/react/time-series/index.js +23 -23
- package/dist/react/toast/index.js +5 -5
- package/dist/react/toggle/index.js +3 -3
- package/dist/react/tooltip/index.js +4 -4
- package/dist/react/variable-combobox/index.js +11 -11
- package/dist/react/variable-keyword-search/index.js +11 -11
- package/dist/terra-ui-components.js +190 -189
- package/dist/terra_ui_components-0.0.139-py3-none-any.whl +0 -0
- package/dist/terra_ui_components-0.0.139.tar.gz +0 -0
- package/dist/types/vue/index.d.ts +541 -521
- package/dist/utilities/mimetypes.js +1 -1
- package/dist/vscode.html-custom-data.json +419 -404
- package/dist/web-types.json +1120 -1062
- package/package.json +1 -1
- package/cdn/chunks/chunk.2BJAFBWO.js +0 -19
- package/cdn/chunks/chunk.2GAC47WU.js +0 -60
- package/cdn/chunks/chunk.2TIKI4CV.js +0 -19
- package/cdn/chunks/chunk.2ZOU3STC.js +0 -123
- package/cdn/chunks/chunk.3F6CWYXR.js +0 -19
- package/cdn/chunks/chunk.3HAVIA4W.js +0 -259
- package/cdn/chunks/chunk.3O4PB2H3.js +0 -35
- package/cdn/chunks/chunk.3ZEO3IMN.js +0 -19
- package/cdn/chunks/chunk.43THXYJW.js +0 -19
- package/cdn/chunks/chunk.46WRFWUK.js +0 -33860
- package/cdn/chunks/chunk.4HLNRBQ6.js +0 -19
- package/cdn/chunks/chunk.4M4GBWDC.js +0 -19
- package/cdn/chunks/chunk.4OX4HVMY.js +0 -264
- package/cdn/chunks/chunk.4TDBTQV5.js +0 -538
- package/cdn/chunks/chunk.5CVRWER5.js +0 -19
- package/cdn/chunks/chunk.5DCGCB6K.js +0 -113
- package/cdn/chunks/chunk.5DM4QTN6.js +0 -29
- package/cdn/chunks/chunk.5HPTDONM.js +0 -32
- package/cdn/chunks/chunk.5HPYINI7.js +0 -19
- package/cdn/chunks/chunk.5LT2TYTG.js +0 -19
- package/cdn/chunks/chunk.5TXVJNQV.js +0 -29
- package/cdn/chunks/chunk.5VW5EZXV.js +0 -29
- package/cdn/chunks/chunk.5XJNAHQJ.js +0 -134
- package/cdn/chunks/chunk.626R2KUA.js +0 -19
- package/cdn/chunks/chunk.673QBVIN.js +0 -33
- package/cdn/chunks/chunk.6A6JHLJE.js +0 -19
- package/cdn/chunks/chunk.6NDSKK4J.js +0 -19
- package/cdn/chunks/chunk.6OR5C5Q7.js +0 -19
- package/cdn/chunks/chunk.6P3Q5HQJ.js +0 -29
- package/cdn/chunks/chunk.6W6F4ROR.js +0 -19
- package/cdn/chunks/chunk.6YSPK4EH.js +0 -83
- package/cdn/chunks/chunk.7GN3VMLV.js +0 -19
- package/cdn/chunks/chunk.7SRQP2BN.js +0 -286
- package/cdn/chunks/chunk.A3BRXNHI.js +0 -610
- package/cdn/chunks/chunk.A5SALK4D.js +0 -158
- package/cdn/chunks/chunk.ADLLUIOF.js +0 -19
- package/cdn/chunks/chunk.AGZ2BKOZ.js +0 -460
- package/cdn/chunks/chunk.AHSH74RW.js +0 -36
- package/cdn/chunks/chunk.AK2A7B6Q.js +0 -104
- package/cdn/chunks/chunk.ANGKDJP4.js +0 -231
- package/cdn/chunks/chunk.ANSRCOVR.js +0 -19
- package/cdn/chunks/chunk.ATLDQ3WR.js +0 -33
- package/cdn/chunks/chunk.BC2GUXZ7.js +0 -32
- package/cdn/chunks/chunk.BC64ST5G.js +0 -29
- package/cdn/chunks/chunk.BFO6SZXZ.js +0 -29
- package/cdn/chunks/chunk.BPU7M7DV.js +0 -19
- package/cdn/chunks/chunk.BRQCSVCH.js +0 -2022
- package/cdn/chunks/chunk.BRYKXRCC.js +0 -55346
- package/cdn/chunks/chunk.BTL6NVN3.js +0 -41
- package/cdn/chunks/chunk.BVCX2RJT.js +0 -19
- package/cdn/chunks/chunk.BZ23ZYNY.js +0 -198
- package/cdn/chunks/chunk.CDC2B5IP.js +0 -29
- package/cdn/chunks/chunk.CI4UXPOP.js +0 -19
- package/cdn/chunks/chunk.COMG3MGR.js +0 -29
- package/cdn/chunks/chunk.CPDYZ3LO.js +0 -278
- package/cdn/chunks/chunk.CYMFPTYH.js +0 -32
- package/cdn/chunks/chunk.D4H2PCSX.js +0 -19
- package/cdn/chunks/chunk.DE2ZETA7.js +0 -93
- package/cdn/chunks/chunk.DEFAJGI7.js +0 -37
- package/cdn/chunks/chunk.DMS73IZ3.js +0 -188
- package/cdn/chunks/chunk.E2RHO7DN.js +0 -19
- package/cdn/chunks/chunk.ECGINNOY.js +0 -29
- package/cdn/chunks/chunk.EGQO2GDX.js +0 -62
- package/cdn/chunks/chunk.EIPX4NVH.js +0 -151
- package/cdn/chunks/chunk.EITFR5BT.js +0 -19
- package/cdn/chunks/chunk.EIYHG4QH.js +0 -99
- package/cdn/chunks/chunk.EVC6N4XS.js +0 -19
- package/cdn/chunks/chunk.EWPC57VY.js +0 -19
- package/cdn/chunks/chunk.EXKJLZ7J.js +0 -1803
- package/cdn/chunks/chunk.F4UOBQNN.js +0 -29
- package/cdn/chunks/chunk.F7YRE2LG.js +0 -165
- package/cdn/chunks/chunk.FBAXT3BK.js +0 -29
- package/cdn/chunks/chunk.FG3K3Q6V.js +0 -19
- package/cdn/chunks/chunk.FGZRXTZ6.js +0 -19
- package/cdn/chunks/chunk.FPNYUWK6.js +0 -67
- package/cdn/chunks/chunk.FQEKGVRO.js +0 -32
- package/cdn/chunks/chunk.FVZU57MN.js +0 -19
- package/cdn/chunks/chunk.FWVPXLAJ.js +0 -19
- package/cdn/chunks/chunk.G3FY5QP3.js +0 -32
- package/cdn/chunks/chunk.G4GEUX35.js +0 -29
- package/cdn/chunks/chunk.GH5IWK3V.js +0 -10710
- package/cdn/chunks/chunk.GLRK2CD2.js +0 -472
- package/cdn/chunks/chunk.GSFGAHJ7.js +0 -19
- package/cdn/chunks/chunk.GWWIQVTA.js +0 -234
- package/cdn/chunks/chunk.H226G54W.js +0 -621
- package/cdn/chunks/chunk.H4FNKBO5.js +0 -35
- package/cdn/chunks/chunk.HA6T6UQB.js +0 -19
- package/cdn/chunks/chunk.HFQ73YHH.js +0 -47
- package/cdn/chunks/chunk.HO2HLYL2.js +0 -29
- package/cdn/chunks/chunk.HSVOTNWM.js +0 -29
- package/cdn/chunks/chunk.HXZVFJ6H.js +0 -524
- package/cdn/chunks/chunk.IGEYXP3A.js +0 -99
- package/cdn/chunks/chunk.IT7T44HW.js +0 -83
- package/cdn/chunks/chunk.IWBJA6I7.js +0 -359
- package/cdn/chunks/chunk.IWCGYFDH.js +0 -32
- package/cdn/chunks/chunk.IYY3KFGU.js +0 -34
- package/cdn/chunks/chunk.J23RZN4H.js +0 -19
- package/cdn/chunks/chunk.J27ZRG2P.js +0 -19
- package/cdn/chunks/chunk.JBKZ2O54.js +0 -19
- package/cdn/chunks/chunk.JFBUXZDD.js +0 -35
- package/cdn/chunks/chunk.JNHX2WPA.js +0 -29
- package/cdn/chunks/chunk.JQB5OS27.js +0 -132
- package/cdn/chunks/chunk.JROEZ6BJ.js +0 -240
- package/cdn/chunks/chunk.JXS7CCSD.js +0 -39
- package/cdn/chunks/chunk.K4ZQ3QTB.js +0 -599
- package/cdn/chunks/chunk.K7U6WTEC.js +0 -754
- package/cdn/chunks/chunk.KAC36PWW.js +0 -19
- package/cdn/chunks/chunk.KAMBSWDB.js +0 -19
- package/cdn/chunks/chunk.KC4TKSAA.js +0 -36
- package/cdn/chunks/chunk.KEJNACA2.js +0 -19
- package/cdn/chunks/chunk.KHLSTEU5.js +0 -29
- package/cdn/chunks/chunk.KLVFSGNQ.js +0 -19
- package/cdn/chunks/chunk.L3AQPABK.js +0 -302
- package/cdn/chunks/chunk.L7S57B4M.js +0 -19
- package/cdn/chunks/chunk.LBTNI2V2.js +0 -71
- package/cdn/chunks/chunk.LFD6D7PW.js +0 -19
- package/cdn/chunks/chunk.LPQPN27D.js +0 -230
- package/cdn/chunks/chunk.LZ76ZLTY.js +0 -224
- package/cdn/chunks/chunk.M4RK2ABO.js +0 -106
- package/cdn/chunks/chunk.MSESXAV2.js +0 -276
- package/cdn/chunks/chunk.N5RUBOM2.js +0 -78
- package/cdn/chunks/chunk.N6XCHKIS.js +0 -32
- package/cdn/chunks/chunk.NABM5PIJ.js +0 -615
- package/cdn/chunks/chunk.NDGGHVRH.js +0 -30
- package/cdn/chunks/chunk.NDTHFW5R.js +0 -19
- package/cdn/chunks/chunk.NFXL4TXT.js +0 -19
- package/cdn/chunks/chunk.NRIGNA3S.js +0 -303
- package/cdn/chunks/chunk.NRZVOPL7.js +0 -74
- package/cdn/chunks/chunk.NXILKRTN.js +0 -19
- package/cdn/chunks/chunk.NZ6Z36KS.js +0 -655
- package/cdn/chunks/chunk.OJWEQA2L.js +0 -60
- package/cdn/chunks/chunk.OKTINZHU.js +0 -34
- package/cdn/chunks/chunk.OMDVVVMC.js +0 -19
- package/cdn/chunks/chunk.OQZZPFI4.js +0 -35
- package/cdn/chunks/chunk.OXNJKUQM.js +0 -32
- package/cdn/chunks/chunk.P7Q76NKD.js +0 -29
- package/cdn/chunks/chunk.PA6TODQZ.js +0 -189
- package/cdn/chunks/chunk.PDGPGRPX.js +0 -29
- package/cdn/chunks/chunk.PFEYSMVR.js +0 -467
- package/cdn/chunks/chunk.PG6A3YS2.js +0 -19
- package/cdn/chunks/chunk.PU2EA3F3.js +0 -33
- package/cdn/chunks/chunk.PU3V52T7.js +0 -19
- package/cdn/chunks/chunk.PYWQ4CJT.js +0 -132
- package/cdn/chunks/chunk.PZTPTQGC.js +0 -19
- package/cdn/chunks/chunk.QCBCEGHS.js +0 -36
- package/cdn/chunks/chunk.QCQ4X6JV.js +0 -29
- package/cdn/chunks/chunk.QGPOGCGC.js +0 -32
- package/cdn/chunks/chunk.QID257LE.js +0 -491
- package/cdn/chunks/chunk.QPKDJX5G.js +0 -239
- package/cdn/chunks/chunk.QWV6DSWO.js +0 -19
- package/cdn/chunks/chunk.R3J2I7S6.js +0 -29
- package/cdn/chunks/chunk.R3YYADTU.js +0 -19
- package/cdn/chunks/chunk.RAFPJ7SC.js +0 -357
- package/cdn/chunks/chunk.RHTNA6LR.js +0 -284
- package/cdn/chunks/chunk.RKNJJP3S.js +0 -32
- package/cdn/chunks/chunk.RTNYHC5I.js +0 -29
- package/cdn/chunks/chunk.RX5BQG6X.js +0 -29
- package/cdn/chunks/chunk.S5QKV4ZF.js +0 -19
- package/cdn/chunks/chunk.SI6XTPNR.js +0 -890
- package/cdn/chunks/chunk.SIOZ4BTY.js +0 -904
- package/cdn/chunks/chunk.SL2XAFXP.js +0 -86
- package/cdn/chunks/chunk.SMLEQ2LR.js +0 -29
- package/cdn/chunks/chunk.SO6HP2US.js +0 -92
- package/cdn/chunks/chunk.SOAQHIJL.js +0 -29
- package/cdn/chunks/chunk.SU6YFVSR.js +0 -32
- package/cdn/chunks/chunk.TERI3VR7.js +0 -943
- package/cdn/chunks/chunk.TKLCIMWL.js +0 -155
- package/cdn/chunks/chunk.TPKKIYZX.js +0 -29
- package/cdn/chunks/chunk.TRPIGGKJ.js +0 -29
- package/cdn/chunks/chunk.TSDVLQNQ.js +0 -29
- package/cdn/chunks/chunk.TSSH7OBI.js +0 -19
- package/cdn/chunks/chunk.TVKZ73IC.js +0 -224
- package/cdn/chunks/chunk.UGX6ENXK.js +0 -19
- package/cdn/chunks/chunk.USXBU4V7.js +0 -32
- package/cdn/chunks/chunk.UYMOTJH6.js +0 -657
- package/cdn/chunks/chunk.V52XWSHA.js +0 -1966
- package/cdn/chunks/chunk.VAVERUQY.js +0 -19
- package/cdn/chunks/chunk.VD4J6NSJ.js +0 -435
- package/cdn/chunks/chunk.VLZIIUK4.js +0 -49
- package/cdn/chunks/chunk.VMZC6SWS.js +0 -19
- package/cdn/chunks/chunk.VOQC3ZCU.js +0 -29
- package/cdn/chunks/chunk.VSHI7QPJ.js +0 -19
- package/cdn/chunks/chunk.W2UBFVIJ.js +0 -19
- package/cdn/chunks/chunk.WO5IANXZ.js +0 -19
- package/cdn/chunks/chunk.WZ4BJS34.js +0 -29
- package/cdn/chunks/chunk.X3L6R75X.js +0 -29
- package/cdn/chunks/chunk.XDHTVQJX.js +0 -32
- package/cdn/chunks/chunk.XNSJOSHU.js +0 -29
- package/cdn/chunks/chunk.XSRPSAPH.js +0 -170
- package/cdn/chunks/chunk.XWVMUFJ7.js +0 -32
- package/cdn/chunks/chunk.Y773DAY4.js +0 -19
- package/cdn/chunks/chunk.YEN743LR.js +0 -37
- package/cdn/chunks/chunk.YRXSN33E.js +0 -190
- package/cdn/chunks/chunk.Z63QUAXL.js +0 -36
- package/cdn/chunks/chunk.ZABMXOTM.js +0 -19
- package/cdn/chunks/chunk.ZKEHTBR2.js +0 -29
- package/cdn/chunks/chunk.ZOLJNM6R.js +0 -33
- package/cdn/chunks/chunk.ZY2YLMTQ.js +0 -372
- package/cdn/chunks/chunk.ZZF57TEN.js +0 -19
- package/dist/chunks/chunk.2426R65J.js +0 -11
- package/dist/chunks/chunk.24OZTGQ4.js +0 -24
- package/dist/chunks/chunk.2IATTFYF.js +0 -21
- package/dist/chunks/chunk.2KEWLVVS.js +0 -11
- package/dist/chunks/chunk.2LMA4HXX.js +0 -75
- package/dist/chunks/chunk.2MUR5ODC.js +0 -25
- package/dist/chunks/chunk.2RD2YCMC.js +0 -21
- package/dist/chunks/chunk.2RQ7TE6K.js +0 -11
- package/dist/chunks/chunk.2T6RXP74.js +0 -21
- package/dist/chunks/chunk.32WEZIMB.js +0 -11
- package/dist/chunks/chunk.3DIKX4D7.js +0 -20
- package/dist/chunks/chunk.3EDSDPZR.js +0 -11
- package/dist/chunks/chunk.3HOMDURY.js +0 -11
- package/dist/chunks/chunk.3KXECFSF.js +0 -11
- package/dist/chunks/chunk.3L5Y4UAK.js +0 -422
- package/dist/chunks/chunk.3SVH6OTG.js +0 -21
- package/dist/chunks/chunk.3WACV45C.js +0 -93
- package/dist/chunks/chunk.3WVTPAFC.js +0 -67
- package/dist/chunks/chunk.3WZK4BGU.js +0 -21
- package/dist/chunks/chunk.4MGGBJBD.js +0 -20
- package/dist/chunks/chunk.4ND4FAJH.js +0 -11
- package/dist/chunks/chunk.4OEGTTX7.js +0 -733
- package/dist/chunks/chunk.4PYJR6WL.js +0 -21
- package/dist/chunks/chunk.4RVH6XIJ.js +0 -581
- package/dist/chunks/chunk.4SXKWAH4.js +0 -399
- package/dist/chunks/chunk.4TNXG42V.js +0 -24
- package/dist/chunks/chunk.53OX6PUP.js +0 -21
- package/dist/chunks/chunk.54N7XEVF.js +0 -43
- package/dist/chunks/chunk.552IT23D.js +0 -21
- package/dist/chunks/chunk.5FWXTZMW.js +0 -11
- package/dist/chunks/chunk.5IS5U42I.js +0 -78
- package/dist/chunks/chunk.5IVEFQ73.js +0 -55
- package/dist/chunks/chunk.6PEX3FEM.js +0 -278
- package/dist/chunks/chunk.6RFDAONW.js +0 -21
- package/dist/chunks/chunk.6US6YKKT.js +0 -21
- package/dist/chunks/chunk.6WKLL2WM.js +0 -27
- package/dist/chunks/chunk.6YXJFS7E.js +0 -39
- package/dist/chunks/chunk.75FUVZDD.js +0 -11
- package/dist/chunks/chunk.76HWX2PB.js +0 -25
- package/dist/chunks/chunk.7DHRNNYP.js +0 -21
- package/dist/chunks/chunk.7DL43QDS.js +0 -21
- package/dist/chunks/chunk.7FQDY3NG.js +0 -21
- package/dist/chunks/chunk.7J4CYUNW.js +0 -21
- package/dist/chunks/chunk.7OSDR4DT.js +0 -27
- package/dist/chunks/chunk.7S4Y7E54.js +0 -153
- package/dist/chunks/chunk.7ULUL7UB.js +0 -214
- package/dist/chunks/chunk.7WWNQP3F.js +0 -52
- package/dist/chunks/chunk.7YFUO5H7.js +0 -11
- package/dist/chunks/chunk.AAKINAHX.js +0 -91
- package/dist/chunks/chunk.AGQSCMY3.js +0 -86
- package/dist/chunks/chunk.ATRP3VPC.js +0 -61
- package/dist/chunks/chunk.AZNKCI5A.js +0 -2008
- package/dist/chunks/chunk.B7MLQJME.js +0 -11
- package/dist/chunks/chunk.BAO2ISQ2.js +0 -180
- package/dist/chunks/chunk.BEGIYBUS.js +0 -190
- package/dist/chunks/chunk.BEWGTRTM.js +0 -21
- package/dist/chunks/chunk.BFKPZ5KB.js +0 -11
- package/dist/chunks/chunk.BVDQB3ON.js +0 -25
- package/dist/chunks/chunk.BXCR6MKM.js +0 -24
- package/dist/chunks/chunk.C2XCYTEU.js +0 -11
- package/dist/chunks/chunk.CHQGRSSN.js +0 -11
- package/dist/chunks/chunk.CMQFO2Y2.js +0 -11
- package/dist/chunks/chunk.CXRPWR2F.js +0 -11
- package/dist/chunks/chunk.CYD7QBKX.js +0 -11
- package/dist/chunks/chunk.DCPS4G3B.js +0 -21
- package/dist/chunks/chunk.DLTYQJNF.js +0 -247
- package/dist/chunks/chunk.DMPS64FX.js +0 -24
- package/dist/chunks/chunk.DWLH2GWC.js +0 -264
- package/dist/chunks/chunk.DXHYGQDF.js +0 -11
- package/dist/chunks/chunk.DZR4D6IU.js +0 -11
- package/dist/chunks/chunk.E4GY4PFT.js +0 -11
- package/dist/chunks/chunk.EEKCQQP5.js +0 -24
- package/dist/chunks/chunk.EKGLR7QZ.js +0 -85
- package/dist/chunks/chunk.EQMZWXBN.js +0 -11
- package/dist/chunks/chunk.FAP5VEES.js +0 -11
- package/dist/chunks/chunk.FFG3ZSYS.js +0 -21
- package/dist/chunks/chunk.FIPOTDXT.js +0 -11
- package/dist/chunks/chunk.FU2INUZZ.js +0 -97
- package/dist/chunks/chunk.FXHQTN4J.js +0 -21
- package/dist/chunks/chunk.G7YHGF6B.js +0 -52
- package/dist/chunks/chunk.GHX6JKTO.js +0 -24
- package/dist/chunks/chunk.GMJA54M4.js +0 -449
- package/dist/chunks/chunk.GRHPMK76.js +0 -11
- package/dist/chunks/chunk.GWTQ5TIL.js +0 -11
- package/dist/chunks/chunk.H4CFFNY7.js +0 -11
- package/dist/chunks/chunk.H55ETYZG.js +0 -24
- package/dist/chunks/chunk.HIDHBTUK.js +0 -26
- package/dist/chunks/chunk.HKEOMDWQ.js +0 -57
- package/dist/chunks/chunk.HTOB5YHI.js +0 -11
- package/dist/chunks/chunk.I73QP2WG.js +0 -89
- package/dist/chunks/chunk.IGFE5OMC.js +0 -21
- package/dist/chunks/chunk.IIP7XENC.js +0 -220
- package/dist/chunks/chunk.IVICUROI.js +0 -245
- package/dist/chunks/chunk.J3V3J6FF.js +0 -591
- package/dist/chunks/chunk.J4RRQTQE.js +0 -291
- package/dist/chunks/chunk.J6AHI4XH.js +0 -209
- package/dist/chunks/chunk.JFAWDJ6T.js +0 -24
- package/dist/chunks/chunk.JHOIM3AH.js +0 -11
- package/dist/chunks/chunk.JLJEN3MG.js +0 -11
- package/dist/chunks/chunk.JNKU5Q5C.js +0 -21
- package/dist/chunks/chunk.JQLIWLBF.js +0 -11
- package/dist/chunks/chunk.JTIG7LIG.js +0 -145
- package/dist/chunks/chunk.JTZSYDBZ.js +0 -143
- package/dist/chunks/chunk.JWU2CJKN.js +0 -21
- package/dist/chunks/chunk.K2QMUUIL.js +0 -11
- package/dist/chunks/chunk.K4EZCK76.js +0 -11
- package/dist/chunks/chunk.KQZF6ECA.js +0 -11
- package/dist/chunks/chunk.KXED5RDO.js +0 -24
- package/dist/chunks/chunk.L5ZDLN66.js +0 -83
- package/dist/chunks/chunk.LDZAANCW.js +0 -213
- package/dist/chunks/chunk.LSRW6XH5.js +0 -27
- package/dist/chunks/chunk.M25BNXYX.js +0 -446
- package/dist/chunks/chunk.M7XZ2USH.js +0 -24
- package/dist/chunks/chunk.MKBGUN2U.js +0 -28
- package/dist/chunks/chunk.MPCO3AK6.js +0 -180
- package/dist/chunks/chunk.N2DBICDG.js +0 -31
- package/dist/chunks/chunk.N3KI7TGY.js +0 -11
- package/dist/chunks/chunk.NEYNT6PS.js +0 -21
- package/dist/chunks/chunk.NFYNX52D.js +0 -24
- package/dist/chunks/chunk.NKYBMMY2.js +0 -11
- package/dist/chunks/chunk.NPGHYBDT.js +0 -24
- package/dist/chunks/chunk.NVCB6Y7O.js +0 -11
- package/dist/chunks/chunk.NZ4IMOIQ.js +0 -24
- package/dist/chunks/chunk.O7C53DXL.js +0 -11
- package/dist/chunks/chunk.O7MF3O7H.js +0 -21
- package/dist/chunks/chunk.OA7ZISO3.js +0 -29
- package/dist/chunks/chunk.OGQB2AZY.js +0 -28
- package/dist/chunks/chunk.OI6TWGD3.js +0 -11
- package/dist/chunks/chunk.OQDJNDF7.js +0 -21
- package/dist/chunks/chunk.OQSLB6CP.js +0 -477
- package/dist/chunks/chunk.OTIBVSOZ.js +0 -48
- package/dist/chunks/chunk.OVHY4CEQ.js +0 -28
- package/dist/chunks/chunk.OYNKCPJD.js +0 -271
- package/dist/chunks/chunk.P6AWD2KL.js +0 -11
- package/dist/chunks/chunk.PFLNNFWL.js +0 -11
- package/dist/chunks/chunk.PJZ3AGV2.js +0 -1124
- package/dist/chunks/chunk.PMDGFZP5.js +0 -525
- package/dist/chunks/chunk.PR6NXMKM.js +0 -596
- package/dist/chunks/chunk.QBQEKK4N.js +0 -11
- package/dist/chunks/chunk.QIBXPT7H.js +0 -609
- package/dist/chunks/chunk.QR6MBPNF.js +0 -21
- package/dist/chunks/chunk.R64NO63N.js +0 -120
- package/dist/chunks/chunk.R6O6JG2L.js +0 -11
- package/dist/chunks/chunk.R7A4A4XT.js +0 -472
- package/dist/chunks/chunk.RAFZXIF4.js +0 -262
- package/dist/chunks/chunk.RAUR5DNX.js +0 -844
- package/dist/chunks/chunk.RI3VSFPZ.js +0 -220
- package/dist/chunks/chunk.RWPWL7DO.js +0 -64
- package/dist/chunks/chunk.S2QZFTNQ.js +0 -11
- package/dist/chunks/chunk.S6KXROR3.js +0 -252
- package/dist/chunks/chunk.SB7SK65W.js +0 -21
- package/dist/chunks/chunk.SBQXHA4N.js +0 -279
- package/dist/chunks/chunk.SEQTHRF4.js +0 -11
- package/dist/chunks/chunk.SGMS4MGY.js +0 -74
- package/dist/chunks/chunk.SO7HBYRG.js +0 -180
- package/dist/chunks/chunk.SUEHXKVI.js +0 -458
- package/dist/chunks/chunk.T7U33NR2.js +0 -21
- package/dist/chunks/chunk.TI4PHSHN.js +0 -21
- package/dist/chunks/chunk.TU44IQ3W.js +0 -443
- package/dist/chunks/chunk.TUVZOKFF.js +0 -25
- package/dist/chunks/chunk.TYG6OQTG.js +0 -229
- package/dist/chunks/chunk.UA5CCCNW.js +0 -112
- package/dist/chunks/chunk.UDHOUQYU.js +0 -11
- package/dist/chunks/chunk.UP3EUANM.js +0 -26
- package/dist/chunks/chunk.UZBNN6OH.js +0 -345
- package/dist/chunks/chunk.V3OWPNEW.js +0 -121
- package/dist/chunks/chunk.V4Q4SMBP.js +0 -11
- package/dist/chunks/chunk.VBSKFOGI.js +0 -21
- package/dist/chunks/chunk.VEEBK3BR.js +0 -11
- package/dist/chunks/chunk.VHCPOUHN.js +0 -11
- package/dist/chunks/chunk.VMMKDZZ5.js +0 -637
- package/dist/chunks/chunk.VNIY4LMA.js +0 -11
- package/dist/chunks/chunk.VSWHQLHN.js +0 -11
- package/dist/chunks/chunk.VTE57C55.js +0 -24
- package/dist/chunks/chunk.W3LC2QG2.js +0 -927
- package/dist/chunks/chunk.W4GXZSQS.js +0 -874
- package/dist/chunks/chunk.WBMGN2BP.js +0 -11
- package/dist/chunks/chunk.WEZGLQOU.js +0 -11
- package/dist/chunks/chunk.WFNM2234.js +0 -21
- package/dist/chunks/chunk.WI2KVU46.js +0 -229
- package/dist/chunks/chunk.WQK4NSPB.js +0 -161
- package/dist/chunks/chunk.WZ3QCYDR.js +0 -11
- package/dist/chunks/chunk.WZDSW6OR.js +0 -11
- package/dist/chunks/chunk.X4FOEYTC.js +0 -28
- package/dist/chunks/chunk.XBAEFASN.js +0 -33
- package/dist/chunks/chunk.XBKQL5O2.js +0 -101
- package/dist/chunks/chunk.XHEHPNOY.js +0 -11
- package/dist/chunks/chunk.XQMGTEU2.js +0 -1788
- package/dist/chunks/chunk.XUFLNF35.js +0 -27
- package/dist/chunks/chunk.XVKPPLF7.js +0 -11
- package/dist/chunks/chunk.Y2WHWGSZ.js +0 -21
- package/dist/chunks/chunk.YMENYKFQ.js +0 -11
- package/dist/chunks/chunk.YY5Q5XEE.js +0 -11
- package/dist/chunks/chunk.Z7KKP434.js +0 -11
- package/dist/chunks/chunk.ZARHT2OD.js +0 -29
- package/dist/chunks/chunk.ZKLRB2JO.js +0 -123
- package/dist/chunks/chunk.ZSZ4KJID.js +0 -345
- package/dist/chunks/chunk.ZT7GABVO.js +0 -355
- package/dist/chunks/chunk.ZXN6LIWR.js +0 -11
- package/dist/terra_ui_components-0.0.137-py3-none-any.whl +0 -0
- package/dist/terra_ui_components-0.0.137.tar.gz +0 -0
|
@@ -0,0 +1,1788 @@
|
|
|
1
|
+
import {
|
|
2
|
+
date_picker_styles_default
|
|
3
|
+
} from "./chunk.4QPRUZEC.js";
|
|
4
|
+
import {
|
|
5
|
+
TerraInput
|
|
6
|
+
} from "./chunk.WPKMKO7L.js";
|
|
7
|
+
import {
|
|
8
|
+
TerraDropdown
|
|
9
|
+
} from "./chunk.4JDUHDVS.js";
|
|
10
|
+
import {
|
|
11
|
+
TerraButton
|
|
12
|
+
} from "./chunk.X4T5FEVN.js";
|
|
13
|
+
import {
|
|
14
|
+
watch
|
|
15
|
+
} from "./chunk.NWXJOH5T.js";
|
|
16
|
+
import {
|
|
17
|
+
TerraElement,
|
|
18
|
+
component_styles_default
|
|
19
|
+
} from "./chunk.R4VDG6AK.js";
|
|
20
|
+
import {
|
|
21
|
+
__decorateClass
|
|
22
|
+
} from "./chunk.SHKVBVTI.js";
|
|
23
|
+
|
|
24
|
+
// src/components/date-picker/date-picker.component.ts
|
|
25
|
+
import { property, state, query } from "lit/decorators.js";
|
|
26
|
+
import { html } from "lit";
|
|
27
|
+
import { createRef, ref } from "lit/directives/ref.js";
|
|
28
|
+
import { isValid } from "date-fns";
|
|
29
|
+
var TerraDatePicker = class extends TerraElement {
|
|
30
|
+
constructor() {
|
|
31
|
+
super();
|
|
32
|
+
this.range = false;
|
|
33
|
+
this.hideLabel = false;
|
|
34
|
+
this.label = "Select Date";
|
|
35
|
+
this.helpText = "";
|
|
36
|
+
this.showPresets = false;
|
|
37
|
+
this.presets = [];
|
|
38
|
+
this.enableTime = false;
|
|
39
|
+
this.inline = false;
|
|
40
|
+
this.splitInputs = false;
|
|
41
|
+
this.placeholder = "Select Date";
|
|
42
|
+
this.startPlaceholder = "Start Date";
|
|
43
|
+
this.endPlaceholder = "End Date";
|
|
44
|
+
this.isOpen = false;
|
|
45
|
+
this.leftMonth = /* @__PURE__ */ new Date();
|
|
46
|
+
this.rightMonth = /* @__PURE__ */ new Date();
|
|
47
|
+
this.selectedStart = null;
|
|
48
|
+
this.selectedEnd = null;
|
|
49
|
+
this.hoverDate = null;
|
|
50
|
+
this.isSelectingRange = false;
|
|
51
|
+
this.showLeftMonthDropdown = false;
|
|
52
|
+
this.showRightMonthDropdown = false;
|
|
53
|
+
this.startHour = 12;
|
|
54
|
+
this.startMinute = 0;
|
|
55
|
+
this.endHour = 12;
|
|
56
|
+
this.endMinute = 0;
|
|
57
|
+
this.timePeriod = "AM";
|
|
58
|
+
this.endTimePeriod = "PM";
|
|
59
|
+
this.selectedDates = {
|
|
60
|
+
startDate: (/* @__PURE__ */ new Date()).toString(),
|
|
61
|
+
endDate: (/* @__PURE__ */ new Date()).toString()
|
|
62
|
+
};
|
|
63
|
+
this.dropdownRef = createRef();
|
|
64
|
+
this.DAYS = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
|
|
65
|
+
this.MONTHS = [
|
|
66
|
+
"January",
|
|
67
|
+
"February",
|
|
68
|
+
"March",
|
|
69
|
+
"April",
|
|
70
|
+
"May",
|
|
71
|
+
"June",
|
|
72
|
+
"July",
|
|
73
|
+
"August",
|
|
74
|
+
"September",
|
|
75
|
+
"October",
|
|
76
|
+
"November",
|
|
77
|
+
"December"
|
|
78
|
+
];
|
|
79
|
+
this.initializePresets();
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Parse a date string (YYYY-MM-DD) as a local date, avoiding timezone issues.
|
|
83
|
+
* When you do `new Date("2024-03-20")`, JavaScript interprets it as UTC midnight,
|
|
84
|
+
* which can cause off-by-one day errors when using getDate() in local timezone.
|
|
85
|
+
* This function parses the date as a local date instead.
|
|
86
|
+
*/
|
|
87
|
+
parseLocalDate(dateString) {
|
|
88
|
+
const dateOnlyPattern = /^\d{4}-\d{2}-\d{2}$/;
|
|
89
|
+
if (dateOnlyPattern.test(dateString)) {
|
|
90
|
+
const [year, month, day] = dateString.split("-").map(Number);
|
|
91
|
+
return new Date(year, month - 1, day);
|
|
92
|
+
}
|
|
93
|
+
return new Date(dateString);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Check if two dates are in the same calendar month and year
|
|
97
|
+
*/
|
|
98
|
+
isSameMonth(date1, date2) {
|
|
99
|
+
return date1.getFullYear() === date2.getFullYear() && date1.getMonth() === date2.getMonth();
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Check if a date's month/year matches a given month Date
|
|
103
|
+
*/
|
|
104
|
+
isDateInMonth(date, monthDate) {
|
|
105
|
+
return date.getFullYear() === monthDate.getFullYear() && date.getMonth() === monthDate.getMonth();
|
|
106
|
+
}
|
|
107
|
+
getBounds() {
|
|
108
|
+
const min = this.minDate ? this.parseLocalDate(this.minDate) : void 0;
|
|
109
|
+
const max = this.maxDate ? this.parseLocalDate(this.maxDate) : void 0;
|
|
110
|
+
return { min, max };
|
|
111
|
+
}
|
|
112
|
+
doesRangeOverlapBounds(range) {
|
|
113
|
+
const { startDate, endDate } = range;
|
|
114
|
+
const { min, max } = this.getBounds();
|
|
115
|
+
if (!this.range) {
|
|
116
|
+
if (!startDate)
|
|
117
|
+
return false;
|
|
118
|
+
if (min && startDate < min)
|
|
119
|
+
return false;
|
|
120
|
+
if (max && startDate > max)
|
|
121
|
+
return false;
|
|
122
|
+
return true;
|
|
123
|
+
}
|
|
124
|
+
const start = startDate != null ? startDate : /* @__PURE__ */ new Date(-864e13);
|
|
125
|
+
const end = endDate != null ? endDate : /* @__PURE__ */ new Date(864e13);
|
|
126
|
+
if (!min && !max)
|
|
127
|
+
return true;
|
|
128
|
+
const windowStart = min != null ? min : /* @__PURE__ */ new Date(-864e13);
|
|
129
|
+
const windowEnd = max != null ? max : /* @__PURE__ */ new Date(864e13);
|
|
130
|
+
return end >= windowStart && start <= windowEnd;
|
|
131
|
+
}
|
|
132
|
+
isPresetWithinBounds(range) {
|
|
133
|
+
return this.doesRangeOverlapBounds(range);
|
|
134
|
+
}
|
|
135
|
+
get filteredPresets() {
|
|
136
|
+
return (this.presets || []).filter(
|
|
137
|
+
(preset) => this.isPresetWithinBounds(preset.getValue())
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
open() {
|
|
141
|
+
this.isOpen = true;
|
|
142
|
+
if (this.maxDate && !this.selectedStart && !this.selectedEnd) {
|
|
143
|
+
const max = this.parseLocalDate(this.maxDate);
|
|
144
|
+
if (!isNaN(max.getTime())) {
|
|
145
|
+
if (this.range) {
|
|
146
|
+
this.rightMonth = new Date(max);
|
|
147
|
+
const left = new Date(max);
|
|
148
|
+
left.setMonth(left.getMonth() - 1);
|
|
149
|
+
this.leftMonth = left;
|
|
150
|
+
} else {
|
|
151
|
+
this.leftMonth = new Date(max);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
if (!this.inline && this.dropdownRef.value) {
|
|
156
|
+
this.dropdownRef.value.show();
|
|
157
|
+
}
|
|
158
|
+
this.requestUpdate();
|
|
159
|
+
}
|
|
160
|
+
close() {
|
|
161
|
+
this.isOpen = false;
|
|
162
|
+
if (!this.inline && this.dropdownRef.value) {
|
|
163
|
+
this.dropdownRef.value.hide();
|
|
164
|
+
}
|
|
165
|
+
this.requestUpdate();
|
|
166
|
+
}
|
|
167
|
+
setOpen(open) {
|
|
168
|
+
if (open) {
|
|
169
|
+
this.open();
|
|
170
|
+
} else {
|
|
171
|
+
this.close();
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
handleInlineChange() {
|
|
175
|
+
if (this.inline) {
|
|
176
|
+
this.isOpen = true;
|
|
177
|
+
if (this.dropdownRef.value) {
|
|
178
|
+
this.dropdownRef.value.hide();
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
handleStartEndDateChange() {
|
|
183
|
+
if (this.startDate) {
|
|
184
|
+
const start = this.parseLocalDate(this.startDate);
|
|
185
|
+
if (!isNaN(start.getTime())) {
|
|
186
|
+
this.selectedStart = start;
|
|
187
|
+
if (this.enableTime) {
|
|
188
|
+
this.initializeTimeFromDate(start, true);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
} else {
|
|
192
|
+
this.selectedStart = null;
|
|
193
|
+
}
|
|
194
|
+
if (this.range) {
|
|
195
|
+
if (this.endDate) {
|
|
196
|
+
const end = this.parseLocalDate(this.endDate);
|
|
197
|
+
if (!isNaN(end.getTime())) {
|
|
198
|
+
this.selectedEnd = end;
|
|
199
|
+
if (this.enableTime) {
|
|
200
|
+
this.initializeTimeFromDate(end, false);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
} else {
|
|
204
|
+
this.selectedEnd = null;
|
|
205
|
+
}
|
|
206
|
+
if (this.selectedStart && this.selectedEnd) {
|
|
207
|
+
const isSingleMonthRange = this.isSameMonth(
|
|
208
|
+
this.selectedStart,
|
|
209
|
+
this.selectedEnd
|
|
210
|
+
);
|
|
211
|
+
if (isSingleMonthRange) {
|
|
212
|
+
if (this.isDateInMonth(this.selectedStart, this.leftMonth)) {
|
|
213
|
+
this.leftMonth = new Date(this.selectedStart);
|
|
214
|
+
if (this.isDateInMonth(this.selectedStart, this.rightMonth)) {
|
|
215
|
+
this.rightMonth = new Date(this.selectedStart);
|
|
216
|
+
this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
|
|
217
|
+
}
|
|
218
|
+
} else if (this.isDateInMonth(this.selectedStart, this.rightMonth)) {
|
|
219
|
+
this.rightMonth = new Date(this.selectedStart);
|
|
220
|
+
} else {
|
|
221
|
+
this.leftMonth = new Date(this.selectedStart);
|
|
222
|
+
}
|
|
223
|
+
} else {
|
|
224
|
+
this.leftMonth = new Date(this.selectedStart);
|
|
225
|
+
this.rightMonth = new Date(this.selectedEnd);
|
|
226
|
+
}
|
|
227
|
+
} else if (this.selectedStart) {
|
|
228
|
+
this.leftMonth = new Date(this.selectedStart);
|
|
229
|
+
this.rightMonth = new Date(this.leftMonth);
|
|
230
|
+
this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
|
|
231
|
+
}
|
|
232
|
+
} else {
|
|
233
|
+
if (this.selectedStart) {
|
|
234
|
+
this.leftMonth = new Date(this.selectedStart);
|
|
235
|
+
}
|
|
236
|
+
this.selectedEnd = null;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
initializePresets() {
|
|
240
|
+
if (this.presets.length === 0) {
|
|
241
|
+
this.presets = [
|
|
242
|
+
{
|
|
243
|
+
label: "Today",
|
|
244
|
+
getValue: () => {
|
|
245
|
+
const today = /* @__PURE__ */ new Date();
|
|
246
|
+
return {
|
|
247
|
+
startDate: today,
|
|
248
|
+
endDate: this.range ? today : null
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
label: "Yesterday",
|
|
254
|
+
getValue: () => {
|
|
255
|
+
const yesterday = /* @__PURE__ */ new Date();
|
|
256
|
+
yesterday.setDate(yesterday.getDate() - 1);
|
|
257
|
+
return {
|
|
258
|
+
startDate: yesterday,
|
|
259
|
+
endDate: this.range ? yesterday : null
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
label: "Last 7 days",
|
|
265
|
+
getValue: () => {
|
|
266
|
+
const end = /* @__PURE__ */ new Date();
|
|
267
|
+
const start = /* @__PURE__ */ new Date();
|
|
268
|
+
start.setDate(start.getDate() - 6);
|
|
269
|
+
return { startDate: start, endDate: end };
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
label: "Last 30 days",
|
|
274
|
+
getValue: () => {
|
|
275
|
+
const end = /* @__PURE__ */ new Date();
|
|
276
|
+
const start = /* @__PURE__ */ new Date();
|
|
277
|
+
start.setDate(start.getDate() - 29);
|
|
278
|
+
return { startDate: start, endDate: end };
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
label: "Last 6 months",
|
|
283
|
+
getValue: () => {
|
|
284
|
+
const end = /* @__PURE__ */ new Date();
|
|
285
|
+
const start = /* @__PURE__ */ new Date();
|
|
286
|
+
start.setMonth(start.getMonth() - 6);
|
|
287
|
+
return { startDate: start, endDate: end };
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
label: "Last year",
|
|
292
|
+
getValue: () => {
|
|
293
|
+
const end = /* @__PURE__ */ new Date();
|
|
294
|
+
const start = /* @__PURE__ */ new Date();
|
|
295
|
+
start.setFullYear(start.getFullYear() - 1);
|
|
296
|
+
return { startDate: start, endDate: end };
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
label: "All time",
|
|
301
|
+
getValue: () => {
|
|
302
|
+
const { min, max } = this.getBounds();
|
|
303
|
+
return {
|
|
304
|
+
startDate: min || null,
|
|
305
|
+
endDate: max || null
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
];
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
firstUpdated() {
|
|
313
|
+
const params = new URLSearchParams(window.location.search);
|
|
314
|
+
const timeStartParam = params.get("time_start") || this.startDate;
|
|
315
|
+
const timeEndParam = params.get("time_end") || this.endDate;
|
|
316
|
+
if (timeStartParam) {
|
|
317
|
+
this.selectedStart = this.parseLocalDate(timeStartParam);
|
|
318
|
+
this.leftMonth = new Date(this.selectedStart);
|
|
319
|
+
if (this.enableTime) {
|
|
320
|
+
this.initializeTimeFromDate(this.selectedStart, true);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
if (this.range && timeEndParam) {
|
|
324
|
+
this.selectedEnd = this.parseLocalDate(timeEndParam);
|
|
325
|
+
if (this.enableTime) {
|
|
326
|
+
this.initializeTimeFromDate(this.selectedEnd, false);
|
|
327
|
+
}
|
|
328
|
+
if (this.selectedStart && this.selectedEnd) {
|
|
329
|
+
const isSingleMonthRange = this.isSameMonth(
|
|
330
|
+
this.selectedStart,
|
|
331
|
+
this.selectedEnd
|
|
332
|
+
);
|
|
333
|
+
if (isSingleMonthRange) {
|
|
334
|
+
this.rightMonth = new Date(this.selectedStart);
|
|
335
|
+
this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
|
|
336
|
+
} else {
|
|
337
|
+
this.rightMonth = new Date(this.selectedEnd);
|
|
338
|
+
}
|
|
339
|
+
} else if (this.selectedEnd) {
|
|
340
|
+
this.rightMonth = new Date(this.selectedEnd);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
if (this.range && !timeEndParam) {
|
|
344
|
+
this.rightMonth = new Date(this.leftMonth);
|
|
345
|
+
this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
|
|
346
|
+
}
|
|
347
|
+
if (this.inline) {
|
|
348
|
+
this.isOpen = true;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
disconnectedCallback() {
|
|
352
|
+
super.disconnectedCallback();
|
|
353
|
+
}
|
|
354
|
+
handleDropdownShow() {
|
|
355
|
+
this.isOpen = true;
|
|
356
|
+
}
|
|
357
|
+
handleDropdownHide() {
|
|
358
|
+
this.isOpen = false;
|
|
359
|
+
}
|
|
360
|
+
formatDisplayDate(date, isStart = true) {
|
|
361
|
+
if (!date)
|
|
362
|
+
return "";
|
|
363
|
+
const format = this.displayFormat || (this.enableTime ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD");
|
|
364
|
+
const year = date.getFullYear();
|
|
365
|
+
const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
366
|
+
const day = String(date.getDate()).padStart(2, "0");
|
|
367
|
+
let hours;
|
|
368
|
+
let minutes;
|
|
369
|
+
let seconds;
|
|
370
|
+
if (this.enableTime) {
|
|
371
|
+
const hour12 = isStart ? this.startHour : this.endHour;
|
|
372
|
+
const period = isStart ? this.timePeriod : this.endTimePeriod;
|
|
373
|
+
let hour24 = hour12;
|
|
374
|
+
if (period === "PM" && hour12 !== 12) {
|
|
375
|
+
hour24 = hour12 + 12;
|
|
376
|
+
} else if (period === "AM" && hour12 === 12) {
|
|
377
|
+
hour24 = 0;
|
|
378
|
+
}
|
|
379
|
+
hours = String(hour24).padStart(2, "0");
|
|
380
|
+
minutes = String(isStart ? this.startMinute : this.endMinute).padStart(
|
|
381
|
+
2,
|
|
382
|
+
"0"
|
|
383
|
+
);
|
|
384
|
+
seconds = "00";
|
|
385
|
+
} else {
|
|
386
|
+
hours = String(date.getHours()).padStart(2, "0");
|
|
387
|
+
minutes = String(date.getMinutes()).padStart(2, "0");
|
|
388
|
+
seconds = String(date.getSeconds()).padStart(2, "0");
|
|
389
|
+
}
|
|
390
|
+
return format.replace("YYYY", year.toString()).replace("MM", month).replace("DD", day).replace("HH", hours).replace("mm", minutes).replace("ss", seconds);
|
|
391
|
+
}
|
|
392
|
+
getDisplayValue() {
|
|
393
|
+
if (this.range) {
|
|
394
|
+
if (this.selectedStart && this.selectedEnd) {
|
|
395
|
+
return `${this.formatDisplayDate(this.selectedStart, true)} \u2013 ${this.formatDisplayDate(this.selectedEnd, false)}`;
|
|
396
|
+
} else if (this.selectedStart) {
|
|
397
|
+
return this.formatDisplayDate(this.selectedStart, true);
|
|
398
|
+
}
|
|
399
|
+
return "";
|
|
400
|
+
} else {
|
|
401
|
+
return this.selectedStart ? this.formatDisplayDate(this.selectedStart, true) : "";
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
getStartDateDisplayValue() {
|
|
405
|
+
return this.selectedStart ? this.formatDisplayDate(this.selectedStart, true) : "";
|
|
406
|
+
}
|
|
407
|
+
getEndDateDisplayValue() {
|
|
408
|
+
return this.selectedEnd ? this.formatDisplayDate(this.selectedEnd, false) : "";
|
|
409
|
+
}
|
|
410
|
+
parseAndFormatDate(dateStr) {
|
|
411
|
+
const trimmed = dateStr.trim();
|
|
412
|
+
if (!trimmed)
|
|
413
|
+
return null;
|
|
414
|
+
const dateOnlyPattern = /^\d{4}-\d{2}-\d{2}$/;
|
|
415
|
+
let date;
|
|
416
|
+
if (dateOnlyPattern.test(trimmed)) {
|
|
417
|
+
date = this.parseLocalDate(trimmed);
|
|
418
|
+
} else {
|
|
419
|
+
date = new Date(trimmed);
|
|
420
|
+
if (!isValid(date)) {
|
|
421
|
+
return null;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
if (!isValid(date)) {
|
|
425
|
+
return null;
|
|
426
|
+
}
|
|
427
|
+
const year = date.getFullYear();
|
|
428
|
+
const month = date.getMonth() + 1;
|
|
429
|
+
const day = date.getDate();
|
|
430
|
+
return `${year}-${String(month).padStart(2, "0")}-${String(day).padStart(2, "0")}`;
|
|
431
|
+
}
|
|
432
|
+
handleInputBlur(event) {
|
|
433
|
+
const input = event.target;
|
|
434
|
+
const value = input.value || "";
|
|
435
|
+
if (!value.trim()) {
|
|
436
|
+
this.selectedStart = null;
|
|
437
|
+
this.selectedEnd = null;
|
|
438
|
+
input.setCustomValidity("");
|
|
439
|
+
this.emitChange();
|
|
440
|
+
return;
|
|
441
|
+
}
|
|
442
|
+
if (this.range) {
|
|
443
|
+
const parts = value.split(" - ");
|
|
444
|
+
if (parts.length !== 2) {
|
|
445
|
+
input.setCustomValidity(
|
|
446
|
+
"Date range must be in format: YYYY-MM-DD - YYYY-MM-DD"
|
|
447
|
+
);
|
|
448
|
+
return;
|
|
449
|
+
}
|
|
450
|
+
const startFormatted = this.parseAndFormatDate(parts[0]);
|
|
451
|
+
const endFormatted = this.parseAndFormatDate(parts[1]);
|
|
452
|
+
if (!startFormatted) {
|
|
453
|
+
input.setCustomValidity("Invalid start date format");
|
|
454
|
+
return;
|
|
455
|
+
}
|
|
456
|
+
if (!endFormatted) {
|
|
457
|
+
input.setCustomValidity("Invalid end date format");
|
|
458
|
+
return;
|
|
459
|
+
}
|
|
460
|
+
const start = this.parseLocalDate(startFormatted);
|
|
461
|
+
const end = this.parseLocalDate(endFormatted);
|
|
462
|
+
let finalStart = start;
|
|
463
|
+
let finalEnd = end;
|
|
464
|
+
if (start > end) {
|
|
465
|
+
finalStart = end;
|
|
466
|
+
finalEnd = start;
|
|
467
|
+
}
|
|
468
|
+
if (this.minDate) {
|
|
469
|
+
const min = this.parseLocalDate(this.minDate);
|
|
470
|
+
if (finalStart < min) {
|
|
471
|
+
input.setCustomValidity(
|
|
472
|
+
`Start date must be on or after ${this.minDate}`
|
|
473
|
+
);
|
|
474
|
+
return;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
if (this.maxDate) {
|
|
478
|
+
const max = this.parseLocalDate(this.maxDate);
|
|
479
|
+
if (finalEnd > max) {
|
|
480
|
+
input.setCustomValidity(
|
|
481
|
+
`End date must be on or before ${this.maxDate}`
|
|
482
|
+
);
|
|
483
|
+
return;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
this.selectedStart = finalStart;
|
|
487
|
+
this.selectedEnd = finalEnd;
|
|
488
|
+
this.updateMonthViews();
|
|
489
|
+
input.setCustomValidity("");
|
|
490
|
+
this.emitChange();
|
|
491
|
+
} else {
|
|
492
|
+
const formatted = this.parseAndFormatDate(value);
|
|
493
|
+
if (!formatted) {
|
|
494
|
+
input.setCustomValidity("Invalid date format");
|
|
495
|
+
return;
|
|
496
|
+
}
|
|
497
|
+
const date = this.parseLocalDate(formatted);
|
|
498
|
+
if (this.minDate) {
|
|
499
|
+
const min = this.parseLocalDate(this.minDate);
|
|
500
|
+
if (date < min) {
|
|
501
|
+
input.setCustomValidity(
|
|
502
|
+
`Date must be on or after ${this.minDate}`
|
|
503
|
+
);
|
|
504
|
+
return;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
if (this.maxDate) {
|
|
508
|
+
const max = this.parseLocalDate(this.maxDate);
|
|
509
|
+
if (date > max) {
|
|
510
|
+
input.setCustomValidity(
|
|
511
|
+
`Date must be on or before ${this.maxDate}`
|
|
512
|
+
);
|
|
513
|
+
return;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
this.selectedStart = date;
|
|
517
|
+
this.selectedEnd = null;
|
|
518
|
+
this.updateMonthViews();
|
|
519
|
+
input.setCustomValidity("");
|
|
520
|
+
this.emitChange();
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
handleStartInputBlur(event) {
|
|
524
|
+
const input = event.target;
|
|
525
|
+
const value = input.value || "";
|
|
526
|
+
if (!value.trim()) {
|
|
527
|
+
this.selectedStart = null;
|
|
528
|
+
input.setCustomValidity("");
|
|
529
|
+
this.emitChange();
|
|
530
|
+
return;
|
|
531
|
+
}
|
|
532
|
+
const formatted = this.parseAndFormatDate(value);
|
|
533
|
+
if (!formatted) {
|
|
534
|
+
input.setCustomValidity("Invalid date format");
|
|
535
|
+
return;
|
|
536
|
+
}
|
|
537
|
+
const date = this.parseLocalDate(formatted);
|
|
538
|
+
if (this.minDate) {
|
|
539
|
+
const min = this.parseLocalDate(this.minDate);
|
|
540
|
+
if (date < min) {
|
|
541
|
+
input.setCustomValidity(`Date must be on or after ${this.minDate}`);
|
|
542
|
+
return;
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
if (this.maxDate) {
|
|
546
|
+
const max = this.parseLocalDate(this.maxDate);
|
|
547
|
+
if (date > max) {
|
|
548
|
+
input.setCustomValidity(`Date must be on or before ${this.maxDate}`);
|
|
549
|
+
return;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
if (this.selectedEnd && date > this.selectedEnd) {
|
|
553
|
+
input.setCustomValidity("Start date must be before end date");
|
|
554
|
+
return;
|
|
555
|
+
}
|
|
556
|
+
this.selectedStart = date;
|
|
557
|
+
this.leftMonth = new Date(date);
|
|
558
|
+
input.setCustomValidity("");
|
|
559
|
+
this.emitChange();
|
|
560
|
+
}
|
|
561
|
+
handleEndInputBlur(event) {
|
|
562
|
+
const input = event.target;
|
|
563
|
+
const value = input.value || "";
|
|
564
|
+
if (!value.trim()) {
|
|
565
|
+
this.selectedEnd = null;
|
|
566
|
+
input.setCustomValidity("");
|
|
567
|
+
this.emitChange();
|
|
568
|
+
return;
|
|
569
|
+
}
|
|
570
|
+
const formatted = this.parseAndFormatDate(value);
|
|
571
|
+
if (!formatted) {
|
|
572
|
+
input.setCustomValidity("Invalid date format");
|
|
573
|
+
return;
|
|
574
|
+
}
|
|
575
|
+
const date = this.parseLocalDate(formatted);
|
|
576
|
+
if (this.minDate) {
|
|
577
|
+
const min = this.parseLocalDate(this.minDate);
|
|
578
|
+
if (date < min) {
|
|
579
|
+
input.setCustomValidity(`Date must be on or after ${this.minDate}`);
|
|
580
|
+
return;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
if (this.maxDate) {
|
|
584
|
+
const max = this.parseLocalDate(this.maxDate);
|
|
585
|
+
if (date > max) {
|
|
586
|
+
input.setCustomValidity(`Date must be on or before ${this.maxDate}`);
|
|
587
|
+
return;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
if (this.selectedStart && date < this.selectedStart) {
|
|
591
|
+
input.setCustomValidity("End date must be after start date");
|
|
592
|
+
return;
|
|
593
|
+
}
|
|
594
|
+
this.selectedEnd = date;
|
|
595
|
+
if (this.selectedStart && this.isSameMonth(this.selectedStart, this.selectedEnd)) {
|
|
596
|
+
this.rightMonth = new Date(this.selectedStart);
|
|
597
|
+
this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
|
|
598
|
+
} else {
|
|
599
|
+
this.rightMonth = new Date(date);
|
|
600
|
+
}
|
|
601
|
+
input.setCustomValidity("");
|
|
602
|
+
this.emitChange();
|
|
603
|
+
}
|
|
604
|
+
updateMonthViews() {
|
|
605
|
+
if (this.selectedStart) {
|
|
606
|
+
this.leftMonth = new Date(this.selectedStart);
|
|
607
|
+
if (this.range && this.selectedEnd) {
|
|
608
|
+
if (this.isSameMonth(this.selectedStart, this.selectedEnd)) {
|
|
609
|
+
this.rightMonth = new Date(this.selectedStart);
|
|
610
|
+
this.rightMonth.setMonth(this.rightMonth.getMonth() + 1);
|
|
611
|
+
} else {
|
|
612
|
+
this.rightMonth = new Date(this.selectedEnd);
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
handleKeydown(event) {
|
|
618
|
+
if (event.key === " ") {
|
|
619
|
+
event.stopPropagation();
|
|
620
|
+
return;
|
|
621
|
+
}
|
|
622
|
+
if (event.key === "Enter") {
|
|
623
|
+
event.preventDefault();
|
|
624
|
+
this.handleInputBlur(event);
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
previousMonth(isLeft) {
|
|
628
|
+
if (isLeft) {
|
|
629
|
+
const newMonth = new Date(this.leftMonth);
|
|
630
|
+
newMonth.setMonth(newMonth.getMonth() - 1);
|
|
631
|
+
this.leftMonth = newMonth;
|
|
632
|
+
} else {
|
|
633
|
+
const newMonth = new Date(this.rightMonth);
|
|
634
|
+
newMonth.setMonth(newMonth.getMonth() - 1);
|
|
635
|
+
this.rightMonth = newMonth;
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
nextMonth(isLeft) {
|
|
639
|
+
if (isLeft) {
|
|
640
|
+
const newMonth = new Date(this.leftMonth);
|
|
641
|
+
newMonth.setMonth(newMonth.getMonth() + 1);
|
|
642
|
+
this.leftMonth = newMonth;
|
|
643
|
+
} else {
|
|
644
|
+
const newMonth = new Date(this.rightMonth);
|
|
645
|
+
newMonth.setMonth(newMonth.getMonth() + 1);
|
|
646
|
+
this.rightMonth = newMonth;
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
toggleMonthDropdown(isLeft, event) {
|
|
650
|
+
event.stopPropagation();
|
|
651
|
+
if (isLeft) {
|
|
652
|
+
this.showLeftMonthDropdown = !this.showLeftMonthDropdown;
|
|
653
|
+
this.showRightMonthDropdown = false;
|
|
654
|
+
} else {
|
|
655
|
+
this.showRightMonthDropdown = !this.showRightMonthDropdown;
|
|
656
|
+
this.showLeftMonthDropdown = false;
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
selectMonth(month, isLeft) {
|
|
660
|
+
if (isLeft) {
|
|
661
|
+
const newMonth = new Date(this.leftMonth);
|
|
662
|
+
newMonth.setMonth(month);
|
|
663
|
+
this.leftMonth = newMonth;
|
|
664
|
+
this.showLeftMonthDropdown = false;
|
|
665
|
+
} else {
|
|
666
|
+
const newMonth = new Date(this.rightMonth);
|
|
667
|
+
newMonth.setMonth(month);
|
|
668
|
+
this.rightMonth = newMonth;
|
|
669
|
+
this.showRightMonthDropdown = false;
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
changeYear(delta, isLeft) {
|
|
673
|
+
if (isLeft) {
|
|
674
|
+
const newMonth = new Date(this.leftMonth);
|
|
675
|
+
newMonth.setFullYear(newMonth.getFullYear() + delta);
|
|
676
|
+
this.leftMonth = newMonth;
|
|
677
|
+
} else {
|
|
678
|
+
const newMonth = new Date(this.rightMonth);
|
|
679
|
+
newMonth.setFullYear(newMonth.getFullYear() + delta);
|
|
680
|
+
this.rightMonth = newMonth;
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
handleYearInput(event, isLeft) {
|
|
684
|
+
const input = event.target;
|
|
685
|
+
const year = parseInt(input.value, 10);
|
|
686
|
+
if (!isNaN(year) && year >= 1900 && year <= 2100) {
|
|
687
|
+
if (isLeft) {
|
|
688
|
+
const newMonth = new Date(this.leftMonth);
|
|
689
|
+
newMonth.setFullYear(year);
|
|
690
|
+
this.leftMonth = newMonth;
|
|
691
|
+
} else {
|
|
692
|
+
const newMonth = new Date(this.rightMonth);
|
|
693
|
+
newMonth.setFullYear(year);
|
|
694
|
+
this.rightMonth = newMonth;
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
getDaysInMonth(date) {
|
|
699
|
+
const year = date.getFullYear();
|
|
700
|
+
const month = date.getMonth();
|
|
701
|
+
const firstDay = new Date(year, month, 1);
|
|
702
|
+
const lastDay = new Date(year, month + 1, 0);
|
|
703
|
+
const days = [];
|
|
704
|
+
const firstDayOfWeek = firstDay.getDay();
|
|
705
|
+
for (let i = firstDayOfWeek - 1; i >= 0; i--) {
|
|
706
|
+
const day = new Date(year, month, -i);
|
|
707
|
+
days.push(day);
|
|
708
|
+
}
|
|
709
|
+
for (let i = 1; i <= lastDay.getDate(); i++) {
|
|
710
|
+
days.push(new Date(year, month, i));
|
|
711
|
+
}
|
|
712
|
+
const remainingDays = 7 - days.length % 7;
|
|
713
|
+
if (remainingDays < 7) {
|
|
714
|
+
for (let i = 1; i <= remainingDays; i++) {
|
|
715
|
+
days.push(new Date(year, month + 1, i));
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
return days;
|
|
719
|
+
}
|
|
720
|
+
isSameDay(date1, date2) {
|
|
721
|
+
if (!date1 || !date2)
|
|
722
|
+
return false;
|
|
723
|
+
return date1.getFullYear() === date2.getFullYear() && date1.getMonth() === date2.getMonth() && date1.getDate() === date2.getDate();
|
|
724
|
+
}
|
|
725
|
+
isInRange(date) {
|
|
726
|
+
if (!this.selectedStart || !this.selectedEnd)
|
|
727
|
+
return false;
|
|
728
|
+
const time = date.getTime();
|
|
729
|
+
return time >= this.selectedStart.getTime() && time <= this.selectedEnd.getTime();
|
|
730
|
+
}
|
|
731
|
+
isInHoverRange(date) {
|
|
732
|
+
if (!this.range || !this.selectedStart || !this.hoverDate || this.selectedEnd)
|
|
733
|
+
return false;
|
|
734
|
+
const time = date.getTime();
|
|
735
|
+
const start = Math.min(this.selectedStart.getTime(), this.hoverDate.getTime());
|
|
736
|
+
const end = Math.max(this.selectedStart.getTime(), this.hoverDate.getTime());
|
|
737
|
+
return time >= start && time <= end;
|
|
738
|
+
}
|
|
739
|
+
isDisabled(date) {
|
|
740
|
+
if (this.minDate) {
|
|
741
|
+
const min = this.parseLocalDate(this.minDate);
|
|
742
|
+
const minMidnight = new Date(
|
|
743
|
+
min.getFullYear(),
|
|
744
|
+
min.getMonth(),
|
|
745
|
+
min.getDate()
|
|
746
|
+
);
|
|
747
|
+
const dateMidnight = new Date(
|
|
748
|
+
date.getFullYear(),
|
|
749
|
+
date.getMonth(),
|
|
750
|
+
date.getDate()
|
|
751
|
+
);
|
|
752
|
+
if (dateMidnight < minMidnight)
|
|
753
|
+
return true;
|
|
754
|
+
}
|
|
755
|
+
if (this.maxDate) {
|
|
756
|
+
const max = this.parseLocalDate(this.maxDate);
|
|
757
|
+
const maxMidnight = new Date(
|
|
758
|
+
max.getFullYear(),
|
|
759
|
+
max.getMonth(),
|
|
760
|
+
max.getDate()
|
|
761
|
+
);
|
|
762
|
+
const dateMidnight = new Date(
|
|
763
|
+
date.getFullYear(),
|
|
764
|
+
date.getMonth(),
|
|
765
|
+
date.getDate()
|
|
766
|
+
);
|
|
767
|
+
if (dateMidnight > maxMidnight)
|
|
768
|
+
return true;
|
|
769
|
+
}
|
|
770
|
+
return false;
|
|
771
|
+
}
|
|
772
|
+
selectDate(date) {
|
|
773
|
+
if (this.isDisabled(date))
|
|
774
|
+
return;
|
|
775
|
+
if (this.range) {
|
|
776
|
+
if (!this.selectedStart || this.selectedEnd) {
|
|
777
|
+
this.selectedStart = date;
|
|
778
|
+
this.selectedEnd = null;
|
|
779
|
+
this.isSelectingRange = true;
|
|
780
|
+
} else {
|
|
781
|
+
if (date < this.selectedStart) {
|
|
782
|
+
this.selectedEnd = this.selectedStart;
|
|
783
|
+
this.selectedStart = date;
|
|
784
|
+
} else {
|
|
785
|
+
this.selectedEnd = date;
|
|
786
|
+
}
|
|
787
|
+
this.isSelectingRange = false;
|
|
788
|
+
this.emitChange();
|
|
789
|
+
if (!this.inline) {
|
|
790
|
+
this.isOpen = false;
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
} else {
|
|
794
|
+
this.selectedStart = date;
|
|
795
|
+
this.selectedEnd = null;
|
|
796
|
+
this.emitChange();
|
|
797
|
+
if (!this.inline) {
|
|
798
|
+
this.isOpen = false;
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
handleDateHover(date) {
|
|
803
|
+
if (this.range && this.selectedStart && !this.selectedEnd) {
|
|
804
|
+
this.hoverDate = date;
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
selectPreset(preset) {
|
|
808
|
+
const { startDate, endDate } = preset.getValue();
|
|
809
|
+
if (!this.isPresetWithinBounds({ startDate, endDate })) {
|
|
810
|
+
return;
|
|
811
|
+
}
|
|
812
|
+
const { min, max } = this.getBounds();
|
|
813
|
+
if (this.range) {
|
|
814
|
+
let s = startDate;
|
|
815
|
+
let e = endDate;
|
|
816
|
+
if (s && min && s < min)
|
|
817
|
+
s = new Date(min);
|
|
818
|
+
if (s && max && s > max)
|
|
819
|
+
s = new Date(max);
|
|
820
|
+
if (e && min && e < min)
|
|
821
|
+
e = new Date(min);
|
|
822
|
+
if (e && max && e > max)
|
|
823
|
+
e = new Date(max);
|
|
824
|
+
if (s && e && e < s) {
|
|
825
|
+
const tmp = s;
|
|
826
|
+
s = e;
|
|
827
|
+
e = tmp;
|
|
828
|
+
}
|
|
829
|
+
this.selectedStart = s;
|
|
830
|
+
this.selectedEnd = e;
|
|
831
|
+
} else {
|
|
832
|
+
let s = startDate;
|
|
833
|
+
if (s && min && s < min)
|
|
834
|
+
s = new Date(min);
|
|
835
|
+
if (s && max && s > max)
|
|
836
|
+
s = new Date(max);
|
|
837
|
+
this.selectedStart = s;
|
|
838
|
+
this.selectedEnd = null;
|
|
839
|
+
}
|
|
840
|
+
if (this.selectedStart) {
|
|
841
|
+
this.leftMonth = new Date(this.selectedStart);
|
|
842
|
+
if (this.range && this.selectedEnd) {
|
|
843
|
+
this.rightMonth = new Date(this.selectedEnd);
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
this.emitChange();
|
|
847
|
+
if (!this.range && !this.inline) {
|
|
848
|
+
this.isOpen = false;
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
emitChange() {
|
|
852
|
+
let startDateTime = "";
|
|
853
|
+
let endDateTime = "";
|
|
854
|
+
if (this.selectedStart) {
|
|
855
|
+
if (this.enableTime) {
|
|
856
|
+
const startDate = new Date(this.selectedStart);
|
|
857
|
+
let hours = this.startHour;
|
|
858
|
+
if (this.timePeriod === "PM" && hours !== 12)
|
|
859
|
+
hours += 12;
|
|
860
|
+
if (this.timePeriod === "AM" && hours === 12)
|
|
861
|
+
hours = 0;
|
|
862
|
+
startDate.setHours(hours, this.startMinute, 0, 0);
|
|
863
|
+
startDateTime = startDate.toISOString();
|
|
864
|
+
} else {
|
|
865
|
+
startDateTime = this.selectedStart.toISOString().split("T")[0];
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
if (this.selectedEnd) {
|
|
869
|
+
if (this.enableTime) {
|
|
870
|
+
const endDate = new Date(this.selectedEnd);
|
|
871
|
+
let hours = this.endHour;
|
|
872
|
+
if (this.endTimePeriod === "PM" && hours !== 12)
|
|
873
|
+
hours += 12;
|
|
874
|
+
if (this.endTimePeriod === "AM" && hours === 12)
|
|
875
|
+
hours = 0;
|
|
876
|
+
endDate.setHours(hours, this.endMinute, 0, 0);
|
|
877
|
+
endDateTime = endDate.toISOString();
|
|
878
|
+
} else {
|
|
879
|
+
endDateTime = this.selectedEnd.toISOString().split("T")[0];
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
this.emit("terra-date-range-change", {
|
|
883
|
+
detail: {
|
|
884
|
+
startDate: startDateTime,
|
|
885
|
+
endDate: endDateTime
|
|
886
|
+
}
|
|
887
|
+
});
|
|
888
|
+
}
|
|
889
|
+
initializeTimeFromDate(date, isStart) {
|
|
890
|
+
let hours = date.getHours();
|
|
891
|
+
const minutes = date.getMinutes();
|
|
892
|
+
const period = hours >= 12 ? "PM" : "AM";
|
|
893
|
+
if (hours === 0)
|
|
894
|
+
hours = 12;
|
|
895
|
+
else if (hours > 12)
|
|
896
|
+
hours -= 12;
|
|
897
|
+
if (isStart) {
|
|
898
|
+
this.startHour = hours;
|
|
899
|
+
this.startMinute = minutes;
|
|
900
|
+
this.timePeriod = period;
|
|
901
|
+
} else {
|
|
902
|
+
this.endHour = hours;
|
|
903
|
+
this.endMinute = minutes;
|
|
904
|
+
this.endTimePeriod = period;
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
changeTime(type, delta, isStart) {
|
|
908
|
+
if (type === "hour") {
|
|
909
|
+
if (isStart) {
|
|
910
|
+
let newHour = this.startHour + delta;
|
|
911
|
+
if (newHour > 12)
|
|
912
|
+
newHour = 1;
|
|
913
|
+
if (newHour < 1)
|
|
914
|
+
newHour = 12;
|
|
915
|
+
this.startHour = newHour;
|
|
916
|
+
} else {
|
|
917
|
+
let newHour = this.endHour + delta;
|
|
918
|
+
if (newHour > 12)
|
|
919
|
+
newHour = 1;
|
|
920
|
+
if (newHour < 1)
|
|
921
|
+
newHour = 12;
|
|
922
|
+
this.endHour = newHour;
|
|
923
|
+
}
|
|
924
|
+
} else {
|
|
925
|
+
if (isStart) {
|
|
926
|
+
let newMinute = this.startMinute + delta;
|
|
927
|
+
if (newMinute >= 60)
|
|
928
|
+
newMinute = 0;
|
|
929
|
+
if (newMinute < 0)
|
|
930
|
+
newMinute = 59;
|
|
931
|
+
this.startMinute = newMinute;
|
|
932
|
+
} else {
|
|
933
|
+
let newMinute = this.endMinute + delta;
|
|
934
|
+
if (newMinute >= 60)
|
|
935
|
+
newMinute = 0;
|
|
936
|
+
if (newMinute < 0)
|
|
937
|
+
newMinute = 59;
|
|
938
|
+
this.endMinute = newMinute;
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
handleTimeInput(event, type, isStart) {
|
|
943
|
+
const input = event.target;
|
|
944
|
+
let value = parseInt(input.value, 10);
|
|
945
|
+
if (type === "hour") {
|
|
946
|
+
if (isNaN(value) || value < 1 || value > 12) {
|
|
947
|
+
input.value = isStart ? this.startHour.toString().padStart(2, "0") : this.endHour.toString().padStart(2, "0");
|
|
948
|
+
return;
|
|
949
|
+
}
|
|
950
|
+
if (isStart)
|
|
951
|
+
this.startHour = value;
|
|
952
|
+
else
|
|
953
|
+
this.endHour = value;
|
|
954
|
+
} else {
|
|
955
|
+
if (isNaN(value) || value < 0 || value >= 60) {
|
|
956
|
+
input.value = isStart ? this.startMinute.toString().padStart(2, "0") : this.endMinute.toString().padStart(2, "0");
|
|
957
|
+
return;
|
|
958
|
+
}
|
|
959
|
+
if (isStart)
|
|
960
|
+
this.startMinute = value;
|
|
961
|
+
else
|
|
962
|
+
this.endMinute = value;
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
togglePeriod(isStart) {
|
|
966
|
+
if (isStart) {
|
|
967
|
+
this.timePeriod = this.timePeriod === "AM" ? "PM" : "AM";
|
|
968
|
+
} else {
|
|
969
|
+
this.endTimePeriod = this.endTimePeriod === "AM" ? "PM" : "AM";
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
renderCalendar(month, isLeft = true) {
|
|
973
|
+
const days = this.getDaysInMonth(month);
|
|
974
|
+
const currentMonth = month.getMonth();
|
|
975
|
+
const showDropdown = isLeft ? this.showLeftMonthDropdown : this.showRightMonthDropdown;
|
|
976
|
+
return html`
|
|
977
|
+
<div class="calendar">
|
|
978
|
+
<div class="calendar__header">
|
|
979
|
+
<button
|
|
980
|
+
type="button"
|
|
981
|
+
class="calendar__nav"
|
|
982
|
+
@click=${() => this.previousMonth(isLeft)}
|
|
983
|
+
>
|
|
984
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
985
|
+
<path
|
|
986
|
+
d="M10 12L6 8L10 4"
|
|
987
|
+
stroke="currentColor"
|
|
988
|
+
stroke-width="2"
|
|
989
|
+
stroke-linecap="round"
|
|
990
|
+
stroke-linejoin="round"
|
|
991
|
+
/>
|
|
992
|
+
</svg>
|
|
993
|
+
</button>
|
|
994
|
+
|
|
995
|
+
<div class="calendar__month-year">
|
|
996
|
+
<div class="calendar__month-dropdown-wrapper">
|
|
997
|
+
<button
|
|
998
|
+
type="button"
|
|
999
|
+
class="calendar__month-button"
|
|
1000
|
+
@click=${(e) => this.toggleMonthDropdown(isLeft, e)}
|
|
1001
|
+
>
|
|
1002
|
+
${this.MONTHS[month.getMonth()]}
|
|
1003
|
+
<svg
|
|
1004
|
+
width="12"
|
|
1005
|
+
height="12"
|
|
1006
|
+
viewBox="0 0 12 12"
|
|
1007
|
+
fill="none"
|
|
1008
|
+
class="calendar__month-icon"
|
|
1009
|
+
>
|
|
1010
|
+
<path
|
|
1011
|
+
d="M3 5L6 8L9 5"
|
|
1012
|
+
stroke="currentColor"
|
|
1013
|
+
stroke-width="1.5"
|
|
1014
|
+
stroke-linecap="round"
|
|
1015
|
+
stroke-linejoin="round"
|
|
1016
|
+
/>
|
|
1017
|
+
</svg>
|
|
1018
|
+
</button>
|
|
1019
|
+
|
|
1020
|
+
${showDropdown ? html`
|
|
1021
|
+
<div class="calendar__month-dropdown">
|
|
1022
|
+
${this.MONTHS.map(
|
|
1023
|
+
(monthName, index) => html`
|
|
1024
|
+
<button
|
|
1025
|
+
type="button"
|
|
1026
|
+
class="calendar__month-option ${index === month.getMonth() ? "calendar__month-option--selected" : ""}"
|
|
1027
|
+
@click=${() => this.selectMonth(
|
|
1028
|
+
index,
|
|
1029
|
+
isLeft
|
|
1030
|
+
)}
|
|
1031
|
+
>
|
|
1032
|
+
${index === month.getMonth() ? html`
|
|
1033
|
+
<svg
|
|
1034
|
+
width="16"
|
|
1035
|
+
height="16"
|
|
1036
|
+
viewBox="0 0 16 16"
|
|
1037
|
+
fill="none"
|
|
1038
|
+
class="calendar__month-check"
|
|
1039
|
+
>
|
|
1040
|
+
<path
|
|
1041
|
+
d="M13 4L6 11L3 8"
|
|
1042
|
+
stroke="currentColor"
|
|
1043
|
+
stroke-width="2"
|
|
1044
|
+
stroke-linecap="round"
|
|
1045
|
+
stroke-linejoin="round"
|
|
1046
|
+
/>
|
|
1047
|
+
</svg>
|
|
1048
|
+
` : ""}
|
|
1049
|
+
${monthName}
|
|
1050
|
+
</button>
|
|
1051
|
+
`
|
|
1052
|
+
)}
|
|
1053
|
+
</div>
|
|
1054
|
+
` : ""}
|
|
1055
|
+
</div>
|
|
1056
|
+
|
|
1057
|
+
<div class="calendar__year-input-wrapper">
|
|
1058
|
+
<input
|
|
1059
|
+
type="number"
|
|
1060
|
+
class="calendar__year-input"
|
|
1061
|
+
.value=${month.getFullYear().toString()}
|
|
1062
|
+
@input=${(e) => this.handleYearInput(e, isLeft)}
|
|
1063
|
+
@blur=${(e) => {
|
|
1064
|
+
const input = e.target;
|
|
1065
|
+
input.value = month.getFullYear().toString();
|
|
1066
|
+
}}
|
|
1067
|
+
min="1900"
|
|
1068
|
+
max="2100"
|
|
1069
|
+
/>
|
|
1070
|
+
<div class="calendar__year-spinners">
|
|
1071
|
+
<button
|
|
1072
|
+
type="button"
|
|
1073
|
+
class="calendar__year-spinner calendar__year-spinner--up"
|
|
1074
|
+
@click=${() => this.changeYear(1, isLeft)}
|
|
1075
|
+
>
|
|
1076
|
+
<svg
|
|
1077
|
+
width="10"
|
|
1078
|
+
height="10"
|
|
1079
|
+
viewBox="0 0 10 10"
|
|
1080
|
+
fill="none"
|
|
1081
|
+
>
|
|
1082
|
+
<path
|
|
1083
|
+
d="M2 6L5 3L8 6"
|
|
1084
|
+
stroke="currentColor"
|
|
1085
|
+
stroke-width="1.5"
|
|
1086
|
+
stroke-linecap="round"
|
|
1087
|
+
stroke-linejoin="round"
|
|
1088
|
+
/>
|
|
1089
|
+
</svg>
|
|
1090
|
+
</button>
|
|
1091
|
+
<button
|
|
1092
|
+
type="button"
|
|
1093
|
+
class="calendar__year-spinner calendar__year-spinner--down"
|
|
1094
|
+
@click=${() => this.changeYear(-1, isLeft)}
|
|
1095
|
+
>
|
|
1096
|
+
<svg
|
|
1097
|
+
width="10"
|
|
1098
|
+
height="10"
|
|
1099
|
+
viewBox="0 0 10 10"
|
|
1100
|
+
fill="none"
|
|
1101
|
+
>
|
|
1102
|
+
<path
|
|
1103
|
+
d="M2 4L5 7L8 4"
|
|
1104
|
+
stroke="currentColor"
|
|
1105
|
+
stroke-width="1.5"
|
|
1106
|
+
stroke-linecap="round"
|
|
1107
|
+
stroke-linejoin="round"
|
|
1108
|
+
/>
|
|
1109
|
+
</svg>
|
|
1110
|
+
</button>
|
|
1111
|
+
</div>
|
|
1112
|
+
</div>
|
|
1113
|
+
</div>
|
|
1114
|
+
|
|
1115
|
+
<button
|
|
1116
|
+
type="button"
|
|
1117
|
+
class="calendar__nav"
|
|
1118
|
+
@click=${() => this.nextMonth(isLeft)}
|
|
1119
|
+
>
|
|
1120
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
1121
|
+
<path
|
|
1122
|
+
d="M6 12L10 8L6 4"
|
|
1123
|
+
stroke="currentColor"
|
|
1124
|
+
stroke-width="2"
|
|
1125
|
+
stroke-linecap="round"
|
|
1126
|
+
stroke-linejoin="round"
|
|
1127
|
+
/>
|
|
1128
|
+
</svg>
|
|
1129
|
+
</button>
|
|
1130
|
+
</div>
|
|
1131
|
+
<div class="calendar__weekdays">
|
|
1132
|
+
${this.DAYS.map(
|
|
1133
|
+
(day) => html`<div class="calendar__weekday">${day}</div>`
|
|
1134
|
+
)}
|
|
1135
|
+
</div>
|
|
1136
|
+
<div class="calendar__days">
|
|
1137
|
+
${days.map((date) => {
|
|
1138
|
+
const isCurrentMonth = date.getMonth() === currentMonth;
|
|
1139
|
+
const isSelected = this.isSameDay(date, this.selectedStart) || this.isSameDay(date, this.selectedEnd);
|
|
1140
|
+
const isStart = this.isSameDay(date, this.selectedStart);
|
|
1141
|
+
const isEnd = this.isSameDay(date, this.selectedEnd);
|
|
1142
|
+
const inRange = this.isInRange(date);
|
|
1143
|
+
const inHoverRange = this.isInHoverRange(date);
|
|
1144
|
+
const isDisabled = this.isDisabled(date);
|
|
1145
|
+
return html`
|
|
1146
|
+
<button
|
|
1147
|
+
type="button"
|
|
1148
|
+
class="calendar__day ${!isCurrentMonth ? "calendar__day--outside" : ""}
|
|
1149
|
+
${isSelected ? "calendar__day--selected" : ""}
|
|
1150
|
+
${isStart ? "calendar__day--start" : ""}
|
|
1151
|
+
${isEnd ? "calendar__day--end" : ""}
|
|
1152
|
+
${inRange ? "calendar__day--in-range" : ""}
|
|
1153
|
+
${inHoverRange ? "calendar__day--hover-range" : ""}
|
|
1154
|
+
${isDisabled ? "calendar__day--disabled" : ""}"
|
|
1155
|
+
@click=${() => this.selectDate(date)}
|
|
1156
|
+
@mouseenter=${() => this.handleDateHover(date)}
|
|
1157
|
+
?disabled=${isDisabled}
|
|
1158
|
+
>
|
|
1159
|
+
${date.getDate()}
|
|
1160
|
+
</button>
|
|
1161
|
+
`;
|
|
1162
|
+
})}
|
|
1163
|
+
</div>
|
|
1164
|
+
</div>
|
|
1165
|
+
`;
|
|
1166
|
+
}
|
|
1167
|
+
renderTimePicker() {
|
|
1168
|
+
if (!this.enableTime)
|
|
1169
|
+
return "";
|
|
1170
|
+
return html`
|
|
1171
|
+
<div class="date-picker__time">
|
|
1172
|
+
<div class="date-picker__time-section">
|
|
1173
|
+
<div class="date-picker__time-inputs">
|
|
1174
|
+
<div class="date-picker__time-input-group">
|
|
1175
|
+
<input
|
|
1176
|
+
type="number"
|
|
1177
|
+
class="date-picker__time-input"
|
|
1178
|
+
.value=${this.startHour.toString().padStart(2, "0")}
|
|
1179
|
+
@input=${(e) => this.handleTimeInput(e, "hour", true)}
|
|
1180
|
+
@blur=${(e) => {
|
|
1181
|
+
const input = e.target;
|
|
1182
|
+
input.value = this.startHour.toString().padStart(2, "0");
|
|
1183
|
+
}}
|
|
1184
|
+
min="1"
|
|
1185
|
+
max="12"
|
|
1186
|
+
/>
|
|
1187
|
+
<div class="date-picker__time-spinners">
|
|
1188
|
+
<button
|
|
1189
|
+
type="button"
|
|
1190
|
+
class="date-picker__time-spinner"
|
|
1191
|
+
@click=${() => this.changeTime("hour", 1, true)}
|
|
1192
|
+
>
|
|
1193
|
+
<svg
|
|
1194
|
+
width="10"
|
|
1195
|
+
height="10"
|
|
1196
|
+
viewBox="0 0 10 10"
|
|
1197
|
+
fill="none"
|
|
1198
|
+
>
|
|
1199
|
+
<path
|
|
1200
|
+
d="M2 6L5 3L8 6"
|
|
1201
|
+
stroke="currentColor"
|
|
1202
|
+
stroke-width="1.5"
|
|
1203
|
+
stroke-linecap="round"
|
|
1204
|
+
stroke-linejoin="round"
|
|
1205
|
+
/>
|
|
1206
|
+
</svg>
|
|
1207
|
+
</button>
|
|
1208
|
+
<button
|
|
1209
|
+
type="button"
|
|
1210
|
+
class="date-picker__time-spinner"
|
|
1211
|
+
@click=${() => this.changeTime("hour", -1, true)}
|
|
1212
|
+
>
|
|
1213
|
+
<svg
|
|
1214
|
+
width="10"
|
|
1215
|
+
height="10"
|
|
1216
|
+
viewBox="0 0 10 10"
|
|
1217
|
+
fill="none"
|
|
1218
|
+
>
|
|
1219
|
+
<path
|
|
1220
|
+
d="M2 4L5 7L8 4"
|
|
1221
|
+
stroke="currentColor"
|
|
1222
|
+
stroke-width="1.5"
|
|
1223
|
+
stroke-linecap="round"
|
|
1224
|
+
stroke-linejoin="round"
|
|
1225
|
+
/>
|
|
1226
|
+
</svg>
|
|
1227
|
+
</button>
|
|
1228
|
+
</div>
|
|
1229
|
+
</div>
|
|
1230
|
+
|
|
1231
|
+
<span class="date-picker__time-separator">:</span>
|
|
1232
|
+
|
|
1233
|
+
<div class="date-picker__time-input-group">
|
|
1234
|
+
<input
|
|
1235
|
+
type="number"
|
|
1236
|
+
class="date-picker__time-input"
|
|
1237
|
+
.value=${this.startMinute.toString().padStart(2, "0")}
|
|
1238
|
+
@input=${(e) => this.handleTimeInput(e, "minute", true)}
|
|
1239
|
+
@blur=${(e) => {
|
|
1240
|
+
const input = e.target;
|
|
1241
|
+
input.value = this.startMinute.toString().padStart(2, "0");
|
|
1242
|
+
}}
|
|
1243
|
+
min="0"
|
|
1244
|
+
max="59"
|
|
1245
|
+
/>
|
|
1246
|
+
<div class="date-picker__time-spinners">
|
|
1247
|
+
<button
|
|
1248
|
+
type="button"
|
|
1249
|
+
class="date-picker__time-spinner"
|
|
1250
|
+
@click=${() => this.changeTime("minute", 1, true)}
|
|
1251
|
+
>
|
|
1252
|
+
<svg
|
|
1253
|
+
width="10"
|
|
1254
|
+
height="10"
|
|
1255
|
+
viewBox="0 0 10 10"
|
|
1256
|
+
fill="none"
|
|
1257
|
+
>
|
|
1258
|
+
<path
|
|
1259
|
+
d="M2 6L5 3L8 6"
|
|
1260
|
+
stroke="currentColor"
|
|
1261
|
+
stroke-width="1.5"
|
|
1262
|
+
stroke-linecap="round"
|
|
1263
|
+
stroke-linejoin="round"
|
|
1264
|
+
/>
|
|
1265
|
+
</svg>
|
|
1266
|
+
</button>
|
|
1267
|
+
<button
|
|
1268
|
+
type="button"
|
|
1269
|
+
class="date-picker__time-spinner"
|
|
1270
|
+
@click=${() => this.changeTime("minute", -1, true)}
|
|
1271
|
+
>
|
|
1272
|
+
<svg
|
|
1273
|
+
width="10"
|
|
1274
|
+
height="10"
|
|
1275
|
+
viewBox="0 0 10 10"
|
|
1276
|
+
fill="none"
|
|
1277
|
+
>
|
|
1278
|
+
<path
|
|
1279
|
+
d="M2 4L5 7L8 4"
|
|
1280
|
+
stroke="currentColor"
|
|
1281
|
+
stroke-width="1.5"
|
|
1282
|
+
stroke-linecap="round"
|
|
1283
|
+
stroke-linejoin="round"
|
|
1284
|
+
/>
|
|
1285
|
+
</svg>
|
|
1286
|
+
</button>
|
|
1287
|
+
</div>
|
|
1288
|
+
</div>
|
|
1289
|
+
|
|
1290
|
+
<button
|
|
1291
|
+
type="button"
|
|
1292
|
+
class="date-picker__time-period"
|
|
1293
|
+
@click=${() => this.togglePeriod(true)}
|
|
1294
|
+
>
|
|
1295
|
+
${this.timePeriod}
|
|
1296
|
+
</button>
|
|
1297
|
+
</div>
|
|
1298
|
+
</div>
|
|
1299
|
+
|
|
1300
|
+
${this.range ? html`
|
|
1301
|
+
<span class="date-picker__separator">–</span>
|
|
1302
|
+
|
|
1303
|
+
<div class="date-picker__time-section">
|
|
1304
|
+
<div class="date-picker__time-inputs">
|
|
1305
|
+
<div class="date-picker__time-input-group">
|
|
1306
|
+
<input
|
|
1307
|
+
type="number"
|
|
1308
|
+
class="date-picker__time-input"
|
|
1309
|
+
.value=${this.endHour.toString().padStart(2, "0")}
|
|
1310
|
+
@input=${(e) => this.handleTimeInput(e, "hour", false)}
|
|
1311
|
+
@blur=${(e) => {
|
|
1312
|
+
const input = e.target;
|
|
1313
|
+
input.value = this.endHour.toString().padStart(2, "0");
|
|
1314
|
+
}}
|
|
1315
|
+
min="1"
|
|
1316
|
+
max="12"
|
|
1317
|
+
/>
|
|
1318
|
+
<div class="date-picker__time-spinners">
|
|
1319
|
+
<button
|
|
1320
|
+
type="button"
|
|
1321
|
+
class="date-picker__time-spinner"
|
|
1322
|
+
@click=${() => this.changeTime("hour", 1, false)}
|
|
1323
|
+
>
|
|
1324
|
+
<svg
|
|
1325
|
+
width="10"
|
|
1326
|
+
height="10"
|
|
1327
|
+
viewBox="0 0 10 10"
|
|
1328
|
+
fill="none"
|
|
1329
|
+
>
|
|
1330
|
+
<path
|
|
1331
|
+
d="M2 6L5 3L8 6"
|
|
1332
|
+
stroke="currentColor"
|
|
1333
|
+
stroke-width="1.5"
|
|
1334
|
+
stroke-linecap="round"
|
|
1335
|
+
stroke-linejoin="round"
|
|
1336
|
+
/>
|
|
1337
|
+
</svg>
|
|
1338
|
+
</button>
|
|
1339
|
+
<button
|
|
1340
|
+
type="button"
|
|
1341
|
+
class="date-picker__time-spinner"
|
|
1342
|
+
@click=${() => this.changeTime("hour", -1, false)}
|
|
1343
|
+
>
|
|
1344
|
+
<svg
|
|
1345
|
+
width="10"
|
|
1346
|
+
height="10"
|
|
1347
|
+
viewBox="0 0 10 10"
|
|
1348
|
+
fill="none"
|
|
1349
|
+
>
|
|
1350
|
+
<path
|
|
1351
|
+
d="M2 4L5 7L8 4"
|
|
1352
|
+
stroke="currentColor"
|
|
1353
|
+
stroke-width="1.5"
|
|
1354
|
+
stroke-linecap="round"
|
|
1355
|
+
stroke-linejoin="round"
|
|
1356
|
+
/>
|
|
1357
|
+
</svg>
|
|
1358
|
+
</button>
|
|
1359
|
+
</div>
|
|
1360
|
+
</div>
|
|
1361
|
+
|
|
1362
|
+
<span class="date-picker__time-separator">:</span>
|
|
1363
|
+
|
|
1364
|
+
<div class="date-picker__time-input-group">
|
|
1365
|
+
<input
|
|
1366
|
+
type="number"
|
|
1367
|
+
class="date-picker__time-input"
|
|
1368
|
+
.value=${this.endMinute.toString().padStart(2, "0")}
|
|
1369
|
+
@input=${(e) => this.handleTimeInput(
|
|
1370
|
+
e,
|
|
1371
|
+
"minute",
|
|
1372
|
+
false
|
|
1373
|
+
)}
|
|
1374
|
+
@blur=${(e) => {
|
|
1375
|
+
const input = e.target;
|
|
1376
|
+
input.value = this.endMinute.toString().padStart(2, "0");
|
|
1377
|
+
}}
|
|
1378
|
+
min="0"
|
|
1379
|
+
max="59"
|
|
1380
|
+
/>
|
|
1381
|
+
<div class="date-picker__time-spinners">
|
|
1382
|
+
<button
|
|
1383
|
+
type="button"
|
|
1384
|
+
class="date-picker__time-spinner"
|
|
1385
|
+
@click=${() => this.changeTime("minute", 1, false)}
|
|
1386
|
+
>
|
|
1387
|
+
<svg
|
|
1388
|
+
width="10"
|
|
1389
|
+
height="10"
|
|
1390
|
+
viewBox="0 0 10 10"
|
|
1391
|
+
fill="none"
|
|
1392
|
+
>
|
|
1393
|
+
<path
|
|
1394
|
+
d="M2 6L5 3L8 6"
|
|
1395
|
+
stroke="currentColor"
|
|
1396
|
+
stroke-width="1.5"
|
|
1397
|
+
stroke-linecap="round"
|
|
1398
|
+
stroke-linejoin="round"
|
|
1399
|
+
/>
|
|
1400
|
+
</svg>
|
|
1401
|
+
</button>
|
|
1402
|
+
<button
|
|
1403
|
+
type="button"
|
|
1404
|
+
class="date-picker__time-spinner"
|
|
1405
|
+
@click=${() => this.changeTime(
|
|
1406
|
+
"minute",
|
|
1407
|
+
-1,
|
|
1408
|
+
false
|
|
1409
|
+
)}
|
|
1410
|
+
>
|
|
1411
|
+
<svg
|
|
1412
|
+
width="10"
|
|
1413
|
+
height="10"
|
|
1414
|
+
viewBox="0 0 10 10"
|
|
1415
|
+
fill="none"
|
|
1416
|
+
>
|
|
1417
|
+
<path
|
|
1418
|
+
d="M2 4L5 7L8 4"
|
|
1419
|
+
stroke="currentColor"
|
|
1420
|
+
stroke-width="1.5"
|
|
1421
|
+
stroke-linecap="round"
|
|
1422
|
+
stroke-linejoin="round"
|
|
1423
|
+
/>
|
|
1424
|
+
</svg>
|
|
1425
|
+
</button>
|
|
1426
|
+
</div>
|
|
1427
|
+
</div>
|
|
1428
|
+
|
|
1429
|
+
<button
|
|
1430
|
+
type="button"
|
|
1431
|
+
class="date-picker__time-period"
|
|
1432
|
+
@click=${() => this.togglePeriod(false)}
|
|
1433
|
+
>
|
|
1434
|
+
${this.endTimePeriod}
|
|
1435
|
+
</button>
|
|
1436
|
+
</div>
|
|
1437
|
+
</div>
|
|
1438
|
+
` : ""}
|
|
1439
|
+
</div>
|
|
1440
|
+
`;
|
|
1441
|
+
}
|
|
1442
|
+
renderCalendarIcon() {
|
|
1443
|
+
return html`
|
|
1444
|
+
<svg
|
|
1445
|
+
slot="suffix"
|
|
1446
|
+
class="date-picker__icon"
|
|
1447
|
+
width="20"
|
|
1448
|
+
height="20"
|
|
1449
|
+
viewBox="0 0 24 24"
|
|
1450
|
+
fill="none"
|
|
1451
|
+
stroke="currentColor"
|
|
1452
|
+
stroke-width="2"
|
|
1453
|
+
>
|
|
1454
|
+
<rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect>
|
|
1455
|
+
<line x1="16" y1="2" x2="16" y2="6"></line>
|
|
1456
|
+
<line x1="8" y1="2" x2="8" y2="6"></line>
|
|
1457
|
+
<line x1="3" y1="10" x2="21" y2="10"></line>
|
|
1458
|
+
</svg>
|
|
1459
|
+
`;
|
|
1460
|
+
}
|
|
1461
|
+
renderCalendarContent() {
|
|
1462
|
+
return html`
|
|
1463
|
+
<div class="date-picker__dropdown" part="calendar">
|
|
1464
|
+
<div class="date-picker__content">
|
|
1465
|
+
${this.showPresets && this.filteredPresets.length > 0 ? html`
|
|
1466
|
+
<div class="date-picker__sidebar" part="sidebar">
|
|
1467
|
+
${this.filteredPresets.map(
|
|
1468
|
+
(preset) => html`
|
|
1469
|
+
<button
|
|
1470
|
+
type="button"
|
|
1471
|
+
class="date-picker__preset"
|
|
1472
|
+
@click=${() => this.selectPreset(preset)}
|
|
1473
|
+
>
|
|
1474
|
+
${preset.label}
|
|
1475
|
+
</button>
|
|
1476
|
+
`
|
|
1477
|
+
)}
|
|
1478
|
+
</div>
|
|
1479
|
+
` : ""}
|
|
1480
|
+
|
|
1481
|
+
<div class="date-picker__calendars">
|
|
1482
|
+
${this.renderCalendar(this.leftMonth, true)}
|
|
1483
|
+
${this.range ? this.renderCalendar(this.rightMonth, false) : ""}
|
|
1484
|
+
</div>
|
|
1485
|
+
</div>
|
|
1486
|
+
|
|
1487
|
+
${this.enableTime ? this.renderTimePicker() : ""}
|
|
1488
|
+
</div>
|
|
1489
|
+
`;
|
|
1490
|
+
}
|
|
1491
|
+
render() {
|
|
1492
|
+
const showSplitInputs = this.range && this.splitInputs;
|
|
1493
|
+
if (this.inline) {
|
|
1494
|
+
return html`
|
|
1495
|
+
<div
|
|
1496
|
+
class="date-picker date-picker--inline ${showSplitInputs ? "date-picker--split-inputs" : ""}"
|
|
1497
|
+
@click=${(e) => e.stopPropagation()}
|
|
1498
|
+
>
|
|
1499
|
+
${showSplitInputs ? html`
|
|
1500
|
+
<div class="date-picker__inputs">
|
|
1501
|
+
<terra-input
|
|
1502
|
+
.label=${this.startLabel || (this.label ? `${this.label} (Start)` : "Start Date")}
|
|
1503
|
+
.hideLabel=${this.hideLabel}
|
|
1504
|
+
.helpText=${this.helpText}
|
|
1505
|
+
.value=${this.getStartDateDisplayValue()}
|
|
1506
|
+
@terra-blur=${this.handleStartInputBlur}
|
|
1507
|
+
@keydown=${this.handleKeydown}
|
|
1508
|
+
placeholder=${this.startPlaceholder}
|
|
1509
|
+
name="start-date"
|
|
1510
|
+
>
|
|
1511
|
+
${this.renderCalendarIcon()}
|
|
1512
|
+
</terra-input>
|
|
1513
|
+
<terra-input
|
|
1514
|
+
.label=${this.endLabel || (this.label ? `${this.label} (End)` : "End Date")}
|
|
1515
|
+
.hideLabel=${this.hideLabel}
|
|
1516
|
+
.helpText=${this.helpText}
|
|
1517
|
+
.value=${this.getEndDateDisplayValue()}
|
|
1518
|
+
@terra-blur=${this.handleEndInputBlur}
|
|
1519
|
+
@keydown=${this.handleKeydown}
|
|
1520
|
+
placeholder=${this.endPlaceholder}
|
|
1521
|
+
name="end-date"
|
|
1522
|
+
>
|
|
1523
|
+
${this.renderCalendarIcon()}
|
|
1524
|
+
</terra-input>
|
|
1525
|
+
</div>
|
|
1526
|
+
` : html`
|
|
1527
|
+
<terra-input
|
|
1528
|
+
.label=${this.label}
|
|
1529
|
+
.hideLabel=${this.hideLabel}
|
|
1530
|
+
.helpText=${this.helpText}
|
|
1531
|
+
.value=${this.getDisplayValue()}
|
|
1532
|
+
placeholder=${this.placeholder}
|
|
1533
|
+
@terra-blur=${this.handleInputBlur}
|
|
1534
|
+
@keydown=${this.handleKeydown}
|
|
1535
|
+
name="date"
|
|
1536
|
+
>
|
|
1537
|
+
${this.renderCalendarIcon()}
|
|
1538
|
+
</terra-input>
|
|
1539
|
+
`}
|
|
1540
|
+
|
|
1541
|
+
<div class="date-picker__dropdown-wrapper">
|
|
1542
|
+
<div
|
|
1543
|
+
class="date-picker__dropdown date-picker__dropdown--inline"
|
|
1544
|
+
part="calendar"
|
|
1545
|
+
>
|
|
1546
|
+
<div class="date-picker__content">
|
|
1547
|
+
${this.showPresets && this.filteredPresets.length > 0 ? html`
|
|
1548
|
+
<div
|
|
1549
|
+
class="date-picker__sidebar"
|
|
1550
|
+
part="sidebar"
|
|
1551
|
+
>
|
|
1552
|
+
${this.filteredPresets.map(
|
|
1553
|
+
(preset) => html`
|
|
1554
|
+
<button
|
|
1555
|
+
type="button"
|
|
1556
|
+
class="date-picker__preset"
|
|
1557
|
+
@click=${() => this.selectPreset(
|
|
1558
|
+
preset
|
|
1559
|
+
)}
|
|
1560
|
+
>
|
|
1561
|
+
${preset.label}
|
|
1562
|
+
</button>
|
|
1563
|
+
`
|
|
1564
|
+
)}
|
|
1565
|
+
</div>
|
|
1566
|
+
` : ""}
|
|
1567
|
+
|
|
1568
|
+
<div class="date-picker__calendars">
|
|
1569
|
+
${this.renderCalendar(this.leftMonth, true)}
|
|
1570
|
+
${this.range ? this.renderCalendar(this.rightMonth, false) : ""}
|
|
1571
|
+
</div>
|
|
1572
|
+
</div>
|
|
1573
|
+
|
|
1574
|
+
${this.enableTime ? this.renderTimePicker() : ""}
|
|
1575
|
+
</div>
|
|
1576
|
+
</div>
|
|
1577
|
+
</div>
|
|
1578
|
+
`;
|
|
1579
|
+
}
|
|
1580
|
+
return html`
|
|
1581
|
+
<div
|
|
1582
|
+
class="date-picker ${showSplitInputs ? "date-picker--split-inputs" : ""}"
|
|
1583
|
+
@click=${(e) => e.stopPropagation()}
|
|
1584
|
+
>
|
|
1585
|
+
${showSplitInputs ? html`
|
|
1586
|
+
<div class="date-picker__inputs">
|
|
1587
|
+
<terra-dropdown
|
|
1588
|
+
${ref(this.dropdownRef)}
|
|
1589
|
+
placement="bottom-start"
|
|
1590
|
+
distance="4"
|
|
1591
|
+
@terra-show=${this.handleDropdownShow}
|
|
1592
|
+
@terra-hide=${this.handleDropdownHide}
|
|
1593
|
+
hoist
|
|
1594
|
+
>
|
|
1595
|
+
<terra-input
|
|
1596
|
+
slot="trigger"
|
|
1597
|
+
.label=${this.startLabel || (this.label ? `${this.label} (Start)` : "Start Date")}
|
|
1598
|
+
.hideLabel=${this.hideLabel}
|
|
1599
|
+
.helpText=${this.helpText}
|
|
1600
|
+
.value=${this.getStartDateDisplayValue()}
|
|
1601
|
+
placeholder=${this.startPlaceholder}
|
|
1602
|
+
@terra-blur=${this.handleStartInputBlur}
|
|
1603
|
+
@keydown=${this.handleKeydown}
|
|
1604
|
+
name="start-date"
|
|
1605
|
+
>
|
|
1606
|
+
${this.renderCalendarIcon()}
|
|
1607
|
+
</terra-input>
|
|
1608
|
+
${this.renderCalendarContent()}
|
|
1609
|
+
</terra-dropdown>
|
|
1610
|
+
<terra-dropdown
|
|
1611
|
+
placement="bottom-start"
|
|
1612
|
+
distance="4"
|
|
1613
|
+
@terra-show=${this.handleDropdownShow}
|
|
1614
|
+
@terra-hide=${this.handleDropdownHide}
|
|
1615
|
+
hoist
|
|
1616
|
+
>
|
|
1617
|
+
<terra-input
|
|
1618
|
+
slot="trigger"
|
|
1619
|
+
.label=${this.endLabel || (this.label ? `${this.label} (End)` : "End Date")}
|
|
1620
|
+
.hideLabel=${this.hideLabel}
|
|
1621
|
+
.helpText=${this.helpText}
|
|
1622
|
+
.value=${this.getEndDateDisplayValue()}
|
|
1623
|
+
placeholder=${this.endPlaceholder}
|
|
1624
|
+
@terra-blur=${this.handleEndInputBlur}
|
|
1625
|
+
@keydown=${this.handleKeydown}
|
|
1626
|
+
name="end-date"
|
|
1627
|
+
>
|
|
1628
|
+
${this.renderCalendarIcon()}
|
|
1629
|
+
</terra-input>
|
|
1630
|
+
${this.renderCalendarContent()}
|
|
1631
|
+
</terra-dropdown>
|
|
1632
|
+
</div>
|
|
1633
|
+
` : html`
|
|
1634
|
+
<terra-dropdown
|
|
1635
|
+
${ref(this.dropdownRef)}
|
|
1636
|
+
placement="bottom-start"
|
|
1637
|
+
distance="4"
|
|
1638
|
+
@terra-show=${this.handleDropdownShow}
|
|
1639
|
+
@terra-hide=${this.handleDropdownHide}
|
|
1640
|
+
hoist
|
|
1641
|
+
>
|
|
1642
|
+
<terra-input
|
|
1643
|
+
slot="trigger"
|
|
1644
|
+
.label=${this.label}
|
|
1645
|
+
.hideLabel=${this.hideLabel}
|
|
1646
|
+
.helpText=${this.helpText}
|
|
1647
|
+
.value=${this.getDisplayValue()}
|
|
1648
|
+
placeholder=${this.placeholder}
|
|
1649
|
+
@terra-blur=${this.handleInputBlur}
|
|
1650
|
+
@keydown=${this.handleKeydown}
|
|
1651
|
+
name="date"
|
|
1652
|
+
>
|
|
1653
|
+
${this.renderCalendarIcon()}
|
|
1654
|
+
</terra-input>
|
|
1655
|
+
${this.renderCalendarContent()}
|
|
1656
|
+
</terra-dropdown>
|
|
1657
|
+
`}
|
|
1658
|
+
</div>
|
|
1659
|
+
`;
|
|
1660
|
+
}
|
|
1661
|
+
};
|
|
1662
|
+
TerraDatePicker.styles = [component_styles_default, date_picker_styles_default];
|
|
1663
|
+
TerraDatePicker.dependencies = {
|
|
1664
|
+
"terra-button": TerraButton,
|
|
1665
|
+
"terra-input": TerraInput,
|
|
1666
|
+
"terra-dropdown": TerraDropdown
|
|
1667
|
+
};
|
|
1668
|
+
__decorateClass([
|
|
1669
|
+
property()
|
|
1670
|
+
], TerraDatePicker.prototype, "id", 2);
|
|
1671
|
+
__decorateClass([
|
|
1672
|
+
property({ type: Boolean })
|
|
1673
|
+
], TerraDatePicker.prototype, "range", 2);
|
|
1674
|
+
__decorateClass([
|
|
1675
|
+
property({ attribute: "min-date" })
|
|
1676
|
+
], TerraDatePicker.prototype, "minDate", 2);
|
|
1677
|
+
__decorateClass([
|
|
1678
|
+
property({ attribute: "max-date" })
|
|
1679
|
+
], TerraDatePicker.prototype, "maxDate", 2);
|
|
1680
|
+
__decorateClass([
|
|
1681
|
+
property({ attribute: "start-date" })
|
|
1682
|
+
], TerraDatePicker.prototype, "startDate", 2);
|
|
1683
|
+
__decorateClass([
|
|
1684
|
+
property({ attribute: "end-date" })
|
|
1685
|
+
], TerraDatePicker.prototype, "endDate", 2);
|
|
1686
|
+
__decorateClass([
|
|
1687
|
+
property({ attribute: "hide-label", type: Boolean })
|
|
1688
|
+
], TerraDatePicker.prototype, "hideLabel", 2);
|
|
1689
|
+
__decorateClass([
|
|
1690
|
+
property()
|
|
1691
|
+
], TerraDatePicker.prototype, "label", 2);
|
|
1692
|
+
__decorateClass([
|
|
1693
|
+
property({ attribute: "help-text" })
|
|
1694
|
+
], TerraDatePicker.prototype, "helpText", 2);
|
|
1695
|
+
__decorateClass([
|
|
1696
|
+
property({ attribute: "start-label" })
|
|
1697
|
+
], TerraDatePicker.prototype, "startLabel", 2);
|
|
1698
|
+
__decorateClass([
|
|
1699
|
+
property({ attribute: "end-label" })
|
|
1700
|
+
], TerraDatePicker.prototype, "endLabel", 2);
|
|
1701
|
+
__decorateClass([
|
|
1702
|
+
property({ type: Boolean, attribute: "show-presets" })
|
|
1703
|
+
], TerraDatePicker.prototype, "showPresets", 2);
|
|
1704
|
+
__decorateClass([
|
|
1705
|
+
property({ type: Array })
|
|
1706
|
+
], TerraDatePicker.prototype, "presets", 2);
|
|
1707
|
+
__decorateClass([
|
|
1708
|
+
property({ type: Boolean, attribute: "enable-time" })
|
|
1709
|
+
], TerraDatePicker.prototype, "enableTime", 2);
|
|
1710
|
+
__decorateClass([
|
|
1711
|
+
property({ attribute: "display-format" })
|
|
1712
|
+
], TerraDatePicker.prototype, "displayFormat", 2);
|
|
1713
|
+
__decorateClass([
|
|
1714
|
+
property({ type: Boolean })
|
|
1715
|
+
], TerraDatePicker.prototype, "inline", 2);
|
|
1716
|
+
__decorateClass([
|
|
1717
|
+
property({ type: Boolean, attribute: "split-inputs" })
|
|
1718
|
+
], TerraDatePicker.prototype, "splitInputs", 2);
|
|
1719
|
+
__decorateClass([
|
|
1720
|
+
property()
|
|
1721
|
+
], TerraDatePicker.prototype, "placeholder", 2);
|
|
1722
|
+
__decorateClass([
|
|
1723
|
+
property()
|
|
1724
|
+
], TerraDatePicker.prototype, "startPlaceholder", 2);
|
|
1725
|
+
__decorateClass([
|
|
1726
|
+
property()
|
|
1727
|
+
], TerraDatePicker.prototype, "endPlaceholder", 2);
|
|
1728
|
+
__decorateClass([
|
|
1729
|
+
state()
|
|
1730
|
+
], TerraDatePicker.prototype, "isOpen", 2);
|
|
1731
|
+
__decorateClass([
|
|
1732
|
+
state()
|
|
1733
|
+
], TerraDatePicker.prototype, "leftMonth", 2);
|
|
1734
|
+
__decorateClass([
|
|
1735
|
+
state()
|
|
1736
|
+
], TerraDatePicker.prototype, "rightMonth", 2);
|
|
1737
|
+
__decorateClass([
|
|
1738
|
+
state()
|
|
1739
|
+
], TerraDatePicker.prototype, "selectedStart", 2);
|
|
1740
|
+
__decorateClass([
|
|
1741
|
+
state()
|
|
1742
|
+
], TerraDatePicker.prototype, "selectedEnd", 2);
|
|
1743
|
+
__decorateClass([
|
|
1744
|
+
state()
|
|
1745
|
+
], TerraDatePicker.prototype, "hoverDate", 2);
|
|
1746
|
+
__decorateClass([
|
|
1747
|
+
state()
|
|
1748
|
+
], TerraDatePicker.prototype, "isSelectingRange", 2);
|
|
1749
|
+
__decorateClass([
|
|
1750
|
+
state()
|
|
1751
|
+
], TerraDatePicker.prototype, "showLeftMonthDropdown", 2);
|
|
1752
|
+
__decorateClass([
|
|
1753
|
+
state()
|
|
1754
|
+
], TerraDatePicker.prototype, "showRightMonthDropdown", 2);
|
|
1755
|
+
__decorateClass([
|
|
1756
|
+
state()
|
|
1757
|
+
], TerraDatePicker.prototype, "startHour", 2);
|
|
1758
|
+
__decorateClass([
|
|
1759
|
+
state()
|
|
1760
|
+
], TerraDatePicker.prototype, "startMinute", 2);
|
|
1761
|
+
__decorateClass([
|
|
1762
|
+
state()
|
|
1763
|
+
], TerraDatePicker.prototype, "endHour", 2);
|
|
1764
|
+
__decorateClass([
|
|
1765
|
+
state()
|
|
1766
|
+
], TerraDatePicker.prototype, "endMinute", 2);
|
|
1767
|
+
__decorateClass([
|
|
1768
|
+
state()
|
|
1769
|
+
], TerraDatePicker.prototype, "timePeriod", 2);
|
|
1770
|
+
__decorateClass([
|
|
1771
|
+
state()
|
|
1772
|
+
], TerraDatePicker.prototype, "endTimePeriod", 2);
|
|
1773
|
+
__decorateClass([
|
|
1774
|
+
state()
|
|
1775
|
+
], TerraDatePicker.prototype, "selectedDates", 2);
|
|
1776
|
+
__decorateClass([
|
|
1777
|
+
query(".date-picker__dropdown")
|
|
1778
|
+
], TerraDatePicker.prototype, "dropdown", 2);
|
|
1779
|
+
__decorateClass([
|
|
1780
|
+
watch("inline")
|
|
1781
|
+
], TerraDatePicker.prototype, "handleInlineChange", 1);
|
|
1782
|
+
__decorateClass([
|
|
1783
|
+
watch(["startDate", "endDate"])
|
|
1784
|
+
], TerraDatePicker.prototype, "handleStartEndDateChange", 1);
|
|
1785
|
+
|
|
1786
|
+
export {
|
|
1787
|
+
TerraDatePicker
|
|
1788
|
+
};
|