@nasa-terra/components 0.0.29 → 0.0.30
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.Q6JDB7UF.js → chunk.2B5MWFZJ.js} +1 -1
- package/cdn/chunks/{chunk.KRV3QC6E.js → chunk.2IBDQF7X.js} +1 -1
- package/cdn/chunks/{chunk.MOLJLF6T.js → chunk.2KO7WMDA.js} +1 -1
- package/cdn/chunks/{chunk.O2FDJRVL.js → chunk.2ZTQTPGQ.js} +1 -1
- package/cdn/chunks/chunk.567ZKY6U.js +11 -0
- package/cdn/chunks/{chunk.GF7FCO7U.js → chunk.57KITL7R.js} +115 -21
- package/{dist/chunks/chunk.QND3EL2M.js → cdn/chunks/chunk.5YPKED3D.js} +1 -1
- package/cdn/chunks/{chunk.XZLBSMUJ.js → chunk.63W2KW34.js} +1 -1
- package/cdn/chunks/{chunk.HLLY7QKL.js → chunk.6RTRSHJT.js} +4 -4
- package/{dist/chunks/chunk.LSCC4BWP.js → cdn/chunks/chunk.7F6COZGY.js} +1 -1
- package/cdn/chunks/{chunk.QUCOTU2W.js → chunk.ABJ2K7TM.js} +1 -1
- package/cdn/chunks/{chunk.HSHJMWBR.js → chunk.AX2SA27I.js} +1 -1
- package/cdn/chunks/{chunk.PLFKPXGA.js → chunk.BJNWBPC2.js} +1 -1
- package/cdn/chunks/{chunk.VEENI5ZG.js → chunk.BWPJFRNN.js} +1 -1
- package/cdn/chunks/chunk.CEIZPS3F.js +14 -0
- package/{dist/chunks/chunk.5VZI3AW6.js → cdn/chunks/chunk.DDGJ6BLG.js} +1 -1
- package/cdn/chunks/{chunk.OMGRHNEB.js → chunk.EFOVA2JJ.js} +36 -36
- package/cdn/chunks/{chunk.XIE55A7V.js → chunk.EKLIR3WI.js} +1 -1
- package/{dist/chunks/chunk.6NV24MHZ.js → cdn/chunks/chunk.F2MIC3AX.js} +1 -1
- package/cdn/chunks/{chunk.ZM74J5O7.js → chunk.GDSSJKN2.js} +4 -4
- package/cdn/chunks/{chunk.R4PWO4RV.js → chunk.GSG6MPDX.js} +1 -1
- package/cdn/chunks/{chunk.HC2QXV76.js → chunk.HFMQVMLF.js} +4 -4
- package/cdn/chunks/chunk.HLNHG2BS.js +25 -0
- package/cdn/chunks/{chunk.BH3A72JP.js → chunk.HXEZAY6X.js} +2 -2
- package/cdn/chunks/{chunk.DSBAUO4Q.js → chunk.I6AG4GNV.js} +1 -1
- package/cdn/chunks/{chunk.FAICFDGD.js → chunk.JLUCY2KC.js} +1 -27
- package/cdn/chunks/{chunk.MJY6U2Q2.js → chunk.JXGOY6TG.js} +14 -6
- package/cdn/chunks/{chunk.CMTARP4Z.js → chunk.KFKV4IIY.js} +8 -8
- package/cdn/chunks/{chunk.VO4QBWR6.js → chunk.KJEKFNS4.js} +20 -20
- package/cdn/chunks/{chunk.XUJ6GG3I.js → chunk.LCPNNUVW.js} +4 -4
- package/cdn/chunks/chunk.LLGXVXUH.js +571 -0
- package/cdn/chunks/{chunk.MOQDQMCK.js → chunk.LMBQZGKV.js} +1 -1
- package/{dist/chunks/chunk.YQCBR4B6.js → cdn/chunks/chunk.MJAGRW43.js} +1 -1
- package/cdn/chunks/{chunk.2NNEVPUU.js → chunk.MMPYQ7JX.js} +1 -1
- package/cdn/chunks/{chunk.NXRLD6HP.js → chunk.MU5CIHVF.js} +1 -1
- package/cdn/chunks/{chunk.3BDUSUJJ.js → chunk.N3DIGSJT.js} +1 -1
- package/{dist/chunks/chunk.4RD7BI5G.js → cdn/chunks/chunk.N4W3LSG4.js} +1 -1
- package/cdn/chunks/{chunk.WGDILZM6.js → chunk.NMJ34B6C.js} +3 -3
- package/cdn/chunks/{chunk.EK2WNRX7.js → chunk.O7MMFKKX.js} +2 -2
- package/cdn/chunks/{chunk.EZSX4R2K.js → chunk.PRXO3ACA.js} +1 -1
- package/{dist/chunks/chunk.V73GDG7A.js → cdn/chunks/chunk.PXFI6DWW.js} +1 -1
- package/cdn/chunks/{chunk.4JSCLX3L.js → chunk.QALWOJYN.js} +1 -1
- package/cdn/chunks/chunk.QKFBOZ3A.js +21 -0
- package/cdn/chunks/{chunk.Z2TYLEAP.js → chunk.RE7Y5324.js} +15 -22
- package/cdn/chunks/{chunk.SWEK2UAG.js → chunk.RU6G6JLS.js} +34 -4
- package/cdn/chunks/chunk.SBI2FAOG.js +11 -0
- package/cdn/chunks/{chunk.WD2DJJFP.js → chunk.SCFJOPPV.js} +1 -1
- package/cdn/chunks/{chunk.Y742TAGH.js → chunk.SI3J4IDI.js} +1 -1
- package/{dist/chunks/chunk.UCLNYZP4.js → cdn/chunks/chunk.SSOHEVCW.js} +1 -1
- package/{dist/chunks/chunk.WZRVDBUQ.js → cdn/chunks/chunk.STX2OFFU.js} +1 -1
- package/cdn/chunks/{chunk.CGMA5YPP.js → chunk.SULSGF5G.js} +5 -5
- package/cdn/chunks/{chunk.CNP3J6CH.js → chunk.T6H2MZZI.js} +59 -19
- package/{dist/chunks/chunk.FHPEQ6H6.js → cdn/chunks/chunk.TSLU66AK.js} +1 -1
- package/cdn/chunks/{chunk.BJIWBGKZ.js → chunk.TVLFTKMX.js} +100 -39
- package/cdn/chunks/{chunk.44NIPIWB.js → chunk.U2IVCX3M.js} +4 -5
- package/cdn/chunks/chunk.UXTJ3UQP.js +3812 -0
- package/{dist/chunks/chunk.XWVIOQSF.js → cdn/chunks/chunk.VJ4KDMYT.js} +1 -1
- package/{dist/chunks/chunk.4KUKUFDS.js → cdn/chunks/chunk.VKEDPAJJ.js} +1 -1
- package/cdn/chunks/{chunk.KJJ66WSH.js → chunk.X4S4SQKL.js} +1 -1
- package/cdn/chunks/{chunk.WPRM2AN2.js → chunk.XHVCGLFU.js} +1 -1
- package/cdn/chunks/{chunk.XRQFG5L5.js → chunk.ZLX4LVIZ.js} +1 -1
- package/cdn/chunks/{chunk.H4QA5UXQ.js → chunk.ZP7GOIAS.js} +1 -1
- package/cdn/chunks/{chunk.Z4FQAFSZ.js → chunk.ZXJ4IGW5.js} +1 -1
- package/cdn/components/browse-variables/browse-variables.component.d.ts +5 -5
- package/cdn/components/browse-variables/browse-variables.component.js +22 -22
- package/cdn/components/browse-variables/browse-variables.js +23 -23
- package/cdn/components/button/button.component.js +3 -3
- package/cdn/components/button/button.js +4 -4
- 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/date-picker/date-picker.component.d.ts +39 -0
- package/cdn/components/date-picker/date-picker.component.js +12 -0
- package/cdn/components/date-picker/date-picker.d.ts +8 -0
- package/cdn/components/date-picker/date-picker.js +13 -0
- package/cdn/components/{giovanni-search/giovanni-search.styles.js → date-picker/date-picker.styles.js} +3 -3
- package/cdn/components/date-range-slider/date-range-slider.component.js +3 -3
- package/cdn/components/date-range-slider/date-range-slider.js +4 -4
- package/cdn/components/dialog/dialog.component.d.ts +1 -3
- package/cdn/components/dialog/dialog.component.js +3 -3
- package/cdn/components/dialog/dialog.js +4 -4
- package/cdn/components/dialog/dialog.styles.js +1 -1
- package/cdn/components/icon/icon.component.js +5 -5
- package/cdn/components/icon/icon.js +6 -6
- package/cdn/components/icon/library.js +2 -2
- package/cdn/components/loader/loader.component.js +2 -2
- package/cdn/components/loader/loader.js +3 -3
- package/cdn/components/login/login.component.js +15 -15
- package/cdn/components/login/login.js +16 -16
- package/cdn/components/map/map.component.js +3 -3
- package/cdn/components/map/map.js +4 -4
- package/cdn/components/plot/plot.component.js +3 -3
- package/cdn/components/plot/plot.js +4 -4
- package/cdn/components/plot/plot.styles.js +1 -1
- package/cdn/components/skeleton/skeleton.component.js +4 -4
- package/cdn/components/skeleton/skeleton.js +5 -5
- package/cdn/components/spatial-picker/spatial-picker.component.js +4 -4
- package/cdn/components/spatial-picker/spatial-picker.js +5 -5
- package/cdn/components/time-series/time-series.component.d.ts +17 -0
- package/cdn/components/time-series/time-series.component.js +30 -30
- package/cdn/components/time-series/time-series.controller.js +1 -1
- package/cdn/components/time-series/time-series.js +31 -31
- package/cdn/components/time-series/time-series.styles.js +1 -1
- package/cdn/components/variable-combobox/lib.d.ts +3 -2
- package/cdn/components/variable-combobox/lib.js +3 -1
- package/cdn/components/variable-combobox/variable-combobox.component.d.ts +15 -1
- package/cdn/components/variable-combobox/variable-combobox.component.js +16 -16
- package/cdn/components/variable-combobox/variable-combobox.controller.js +3 -3
- package/cdn/components/variable-combobox/variable-combobox.js +17 -17
- package/cdn/components/variable-combobox/variable-combobox.styles.js +1 -1
- package/cdn/components/variable-combobox/variable-combobox.types.d.ts +2 -0
- package/cdn/components/{giovanni-search → variable-keyword-search}/lib.d.ts +1 -1
- package/cdn/components/{giovanni-search → variable-keyword-search}/lib.js +1 -1
- package/{dist/components/giovanni-search/giovanni-search.component.d.ts → cdn/components/variable-keyword-search/variable-keyword-search.component.d.ts} +3 -3
- package/cdn/components/{giovanni-search/giovanni-search.component.js → variable-keyword-search/variable-keyword-search.component.js} +18 -18
- package/cdn/components/{giovanni-search/giovanni-search.controller.d.ts → variable-keyword-search/variable-keyword-search.controller.d.ts} +1 -1
- package/cdn/components/{giovanni-search/giovanni-search.controller.js → variable-keyword-search/variable-keyword-search.controller.js} +1 -1
- package/cdn/components/variable-keyword-search/variable-keyword-search.d.ts +8 -0
- package/cdn/components/{giovanni-search/giovanni-search.js → variable-keyword-search/variable-keyword-search.js} +19 -19
- package/cdn/components/variable-keyword-search/variable-keyword-search.styles.js +9 -0
- package/cdn/custom-elements.json +1988 -1482
- package/cdn/events/events.d.ts +1 -1
- package/cdn/events/terra-variable-keyword-search-change.d.ts +6 -0
- package/cdn/lib/dataset.d.ts +9 -0
- package/cdn/react/browse-variables/index.d.ts +1 -1
- package/cdn/react/browse-variables/index.js +23 -23
- package/cdn/react/button/index.js +4 -4
- package/cdn/react/chip/index.js +3 -3
- package/cdn/react/combobox/index.js +4 -4
- package/cdn/react/date-picker/index.d.ts +14 -0
- package/cdn/react/date-picker/index.js +13 -0
- package/cdn/react/date-range-slider/index.js +4 -4
- package/cdn/react/dialog/index.js +4 -4
- package/cdn/react/icon/index.js +6 -6
- package/cdn/react/index.d.ts +7 -6
- package/cdn/react/index.js +88 -82
- package/cdn/react/loader/index.js +3 -3
- package/cdn/react/login/index.js +16 -16
- package/cdn/react/map/index.js +4 -4
- package/cdn/react/plot/index.js +4 -4
- package/cdn/react/skeleton/index.js +5 -5
- package/cdn/react/spatial-picker/index.js +5 -5
- package/cdn/react/time-series/index.js +31 -31
- package/cdn/react/variable-combobox/index.js +17 -17
- package/{dist/react/giovanni-search → cdn/react/variable-keyword-search}/index.d.ts +5 -5
- package/cdn/react/{giovanni-search → variable-keyword-search}/index.js +19 -19
- package/cdn/terra-ui-components.d.ts +5 -4
- package/cdn/terra-ui-components.js +81 -75
- package/cdn/types/vue/index.d.ts +203 -132
- package/cdn/types.d.ts +7 -0
- package/cdn/utilities/animation.js +2 -2
- package/cdn/utilities/icon-library.js +2 -2
- package/cdn/vscode.html-custom-data.json +159 -99
- package/cdn/web-types.json +356 -223
- package/dist/chunks/{chunk.ICYAVVW4.js → chunk.2QTJHB7F.js} +1 -1
- package/dist/chunks/{chunk.IYY536HH.js → chunk.2RGRL45T.js} +1 -1
- package/dist/chunks/{chunk.WXWUMSQ6.js → chunk.2WHOFNO7.js} +1 -1
- package/dist/chunks/{chunk.W7JRXR2Y.js → chunk.2YRBHDWM.js} +1 -1
- package/dist/chunks/{chunk.OIO4HWK3.js → chunk.3IIDXU4S.js} +1 -1
- package/dist/chunks/{chunk.JXNFBM4G.js → chunk.3J5TZOPP.js} +17 -17
- package/dist/chunks/{chunk.SBA3WOAN.js → chunk.3JQPZWUE.js} +1 -1
- package/dist/chunks/{chunk.2OY33DUQ.js → chunk.3K3BQXON.js} +1 -1
- package/{cdn/chunks/chunk.4XVD3JO6.js → dist/chunks/chunk.3SSCVJFM.js} +1 -1
- package/dist/chunks/{chunk.GHDRVO5M.js → chunk.5EHGVGXV.js} +59 -19
- package/dist/chunks/{chunk.RV2KFFXW.js → chunk.5LMWCV76.js} +14 -6
- package/dist/chunks/{chunk.CCDDGUFW.js → chunk.67EX34DL.js} +1 -27
- package/dist/chunks/{chunk.X2NOCGLF.js → chunk.6P4UBSKH.js} +4 -4
- package/dist/chunks/chunk.A3JXDHJG.js +11 -0
- package/dist/chunks/{chunk.KJQZP5RO.js → chunk.AUB6SKUI.js} +3 -3
- package/dist/chunks/{chunk.AKIZ4D6W.js → chunk.BCU2ZKJ4.js} +1 -1
- package/dist/chunks/{chunk.BOJX33N7.js → chunk.BVCKNDN2.js} +1 -1
- package/{cdn/chunks/chunk.3T5XKTPL.js → dist/chunks/chunk.BXMFNRIQ.js} +1 -1
- package/dist/chunks/{chunk.ZCPWIACO.js → chunk.CY76LRGV.js} +1 -1
- package/dist/chunks/chunk.DJICCDFZ.js +130 -0
- package/dist/chunks/chunk.DP5CSX6S.js +25 -0
- package/dist/chunks/{chunk.EGZMQ7T7.js → chunk.DW23TAF4.js} +1 -1
- package/dist/chunks/{chunk.G7L4LFF2.js → chunk.E5OMSMPR.js} +4 -4
- package/dist/chunks/{chunk.KLX4FSH3.js → chunk.ED4EXVSJ.js} +1 -1
- package/{cdn/chunks/chunk.OHPQWGRL.js → dist/chunks/chunk.F5UDJENT.js} +1 -1
- package/dist/chunks/chunk.F7GS6U3O.js +21 -0
- package/dist/chunks/{chunk.QJGNTLKC.js → chunk.FAIVIYKA.js} +2 -2
- package/{cdn/chunks/chunk.VJY3BVCV.js → dist/chunks/chunk.H6K7DI54.js} +1 -1
- package/dist/chunks/{chunk.QK5OWFVO.js → chunk.HJGC45MW.js} +34 -4
- package/dist/chunks/{chunk.IXA4S7MC.js → chunk.HRODIECS.js} +1 -1
- package/dist/chunks/{chunk.HC2GJY4W.js → chunk.IPMALKFU.js} +1 -1
- package/dist/chunks/{chunk.2VI37SGK.js → chunk.JPTE36KF.js} +15 -22
- package/dist/chunks/{chunk.TRYPXGEF.js → chunk.KAU6YSSX.js} +5 -5
- package/dist/chunks/{chunk.6MWZMGHC.js → chunk.KF6GNNY4.js} +1 -1
- package/{cdn/chunks/chunk.JPORUQZG.js → dist/chunks/chunk.KY7CFQ2L.js} +1 -1
- package/dist/chunks/{chunk.A5MHK2RE.js → chunk.KZQGAFNS.js} +1 -1
- package/dist/chunks/{chunk.ZJX62EXO.js → chunk.LDXAXITL.js} +4 -4
- package/dist/chunks/{chunk.GRG5Z2VH.js → chunk.MY3D3SMW.js} +1 -1
- package/dist/chunks/{chunk.LVFOF3IN.js → chunk.NE2F3K3V.js} +4 -4
- package/{cdn/chunks/chunk.4XCAK3VQ.js → dist/chunks/chunk.NQ2Y66ML.js} +1 -1
- package/dist/chunks/{chunk.NW3BG32V.js → chunk.NRFKLACI.js} +98 -37
- package/dist/chunks/{chunk.3R7FYOEC.js → chunk.NY3FWCB4.js} +1 -1
- package/dist/chunks/{chunk.AZFDLGZH.js → chunk.P4V6NTUB.js} +1 -1
- package/dist/chunks/{chunk.LIBBEBVE.js → chunk.PVN5GF75.js} +110 -17
- package/{cdn/chunks/chunk.34HTZ3BS.js → dist/chunks/chunk.R7ZFWMFX.js} +1 -1
- package/dist/chunks/{chunk.MERZEEOA.js → chunk.RAGOKALJ.js} +1 -1
- package/dist/chunks/{chunk.VTKHAV5B.js → chunk.RFLNQ553.js} +35 -35
- package/{cdn/chunks/chunk.DELCDBUW.js → dist/chunks/chunk.RO6IKZZJ.js} +1 -1
- package/{cdn/chunks/chunk.FQ3DGJP3.js → dist/chunks/chunk.SOQ4CR5P.js} +1 -1
- package/dist/chunks/{chunk.JOOAZ4RH.js → chunk.T3YDWJBU.js} +1 -1
- package/dist/chunks/{chunk.TGFRBJQ2.js → chunk.TOKOGZDW.js} +2 -2
- package/dist/chunks/{chunk.Z3BPGAEC.js → chunk.TOSECFXS.js} +4 -5
- package/{cdn/chunks/chunk.3YMOUEX5.js → dist/chunks/chunk.U4VDOWEL.js} +1 -1
- package/dist/chunks/{chunk.TPLUT5FB.js → chunk.UUUQALNS.js} +1 -1
- package/dist/chunks/chunk.W5W4VEOX.js +11 -0
- package/dist/chunks/chunk.WAIWLZ6Z.js +332 -0
- package/dist/chunks/{chunk.AFNAKALA.js → chunk.XBGMPAGN.js} +1 -1
- package/{cdn/chunks/chunk.UDRESO3S.js → dist/chunks/chunk.XJZRUYAI.js} +1 -1
- package/dist/chunks/chunk.XTWS7MM5.js +11 -0
- package/dist/chunks/{chunk.6SN6X5JU.js → chunk.YF6EKHHQ.js} +1 -1
- package/{cdn/chunks/chunk.7MXUXHLV.js → dist/chunks/chunk.YFE22UAS.js} +1 -1
- package/dist/chunks/{chunk.UCFFAP7X.js → chunk.YY2NUPBF.js} +1 -1
- package/dist/chunks/{chunk.CXHYT4QV.js → chunk.Z2X4WGGX.js} +1 -1
- package/dist/components/browse-variables/browse-variables.component.d.ts +5 -5
- package/dist/components/browse-variables/browse-variables.component.js +17 -17
- package/dist/components/browse-variables/browse-variables.js +18 -18
- package/dist/components/button/button.component.js +3 -3
- package/dist/components/button/button.js +4 -4
- package/dist/components/chip/chip.component.js +2 -2
- package/dist/components/chip/chip.js +3 -3
- package/dist/components/combobox/combobox.component.js +3 -3
- package/dist/components/combobox/combobox.js +4 -4
- package/dist/components/date-picker/date-picker.component.d.ts +39 -0
- package/dist/components/date-picker/date-picker.component.js +9 -0
- package/dist/components/date-picker/date-picker.d.ts +8 -0
- package/dist/components/date-picker/date-picker.js +10 -0
- package/dist/components/date-picker/date-picker.styles.d.ts +2 -0
- package/dist/components/date-picker/date-picker.styles.js +7 -0
- package/dist/components/date-range-slider/date-range-slider.component.js +3 -3
- package/dist/components/date-range-slider/date-range-slider.js +4 -4
- package/dist/components/dialog/dialog.component.d.ts +1 -3
- package/dist/components/dialog/dialog.component.js +3 -3
- package/dist/components/dialog/dialog.js +4 -4
- package/dist/components/dialog/dialog.styles.js +1 -1
- package/dist/components/icon/icon.component.js +5 -5
- package/dist/components/icon/icon.js +6 -6
- package/dist/components/icon/library.js +2 -2
- package/dist/components/loader/loader.component.js +2 -2
- package/dist/components/loader/loader.js +3 -3
- package/dist/components/login/login.component.js +12 -12
- package/dist/components/login/login.js +13 -13
- package/dist/components/map/map.component.js +3 -3
- package/dist/components/map/map.js +4 -4
- package/dist/components/plot/plot.component.js +3 -3
- package/dist/components/plot/plot.js +4 -4
- package/dist/components/plot/plot.styles.js +1 -1
- package/dist/components/skeleton/skeleton.component.js +2 -2
- package/dist/components/skeleton/skeleton.js +3 -3
- package/dist/components/spatial-picker/spatial-picker.component.js +4 -4
- package/dist/components/spatial-picker/spatial-picker.js +5 -5
- package/dist/components/time-series/time-series.component.d.ts +17 -0
- package/dist/components/time-series/time-series.component.js +25 -25
- package/dist/components/time-series/time-series.controller.js +1 -1
- package/dist/components/time-series/time-series.js +26 -26
- package/dist/components/time-series/time-series.styles.js +1 -1
- package/dist/components/variable-combobox/lib.d.ts +3 -2
- package/dist/components/variable-combobox/lib.js +3 -1
- package/dist/components/variable-combobox/variable-combobox.component.d.ts +15 -1
- package/dist/components/variable-combobox/variable-combobox.component.js +13 -13
- package/dist/components/variable-combobox/variable-combobox.controller.js +2 -2
- package/dist/components/variable-combobox/variable-combobox.js +14 -14
- package/dist/components/variable-combobox/variable-combobox.styles.js +1 -1
- package/dist/components/variable-combobox/variable-combobox.types.d.ts +2 -0
- package/dist/components/{giovanni-search → variable-keyword-search}/lib.d.ts +1 -1
- package/dist/components/{giovanni-search → variable-keyword-search}/lib.js +1 -1
- package/{cdn/components/giovanni-search/giovanni-search.component.d.ts → dist/components/variable-keyword-search/variable-keyword-search.component.d.ts} +3 -3
- package/dist/components/variable-keyword-search/variable-keyword-search.component.js +23 -0
- package/dist/components/{giovanni-search/giovanni-search.controller.d.ts → variable-keyword-search/variable-keyword-search.controller.d.ts} +1 -1
- package/dist/components/{giovanni-search/giovanni-search.controller.js → variable-keyword-search/variable-keyword-search.controller.js} +1 -1
- package/dist/components/variable-keyword-search/variable-keyword-search.d.ts +8 -0
- package/dist/components/variable-keyword-search/variable-keyword-search.js +24 -0
- package/dist/components/variable-keyword-search/variable-keyword-search.styles.d.ts +2 -0
- package/dist/components/variable-keyword-search/variable-keyword-search.styles.js +7 -0
- package/dist/custom-elements.json +1988 -1482
- package/dist/events/events.d.ts +1 -1
- package/dist/events/terra-variable-keyword-search-change.d.ts +6 -0
- package/dist/lib/dataset.d.ts +9 -0
- package/dist/react/browse-variables/index.d.ts +1 -1
- package/dist/react/browse-variables/index.js +18 -18
- package/dist/react/button/index.js +4 -4
- package/dist/react/chip/index.js +3 -3
- package/dist/react/combobox/index.js +4 -4
- package/dist/react/date-picker/index.d.ts +14 -0
- package/dist/react/date-picker/index.js +10 -0
- package/dist/react/date-range-slider/index.js +4 -4
- package/dist/react/dialog/index.js +4 -4
- package/dist/react/icon/index.js +6 -6
- package/dist/react/index.d.ts +7 -6
- package/dist/react/index.js +81 -75
- package/dist/react/loader/index.js +3 -3
- package/dist/react/login/index.js +13 -13
- package/dist/react/map/index.js +4 -4
- package/dist/react/plot/index.js +4 -4
- package/dist/react/skeleton/index.js +3 -3
- package/dist/react/spatial-picker/index.js +5 -5
- package/dist/react/time-series/index.js +26 -26
- package/dist/react/variable-combobox/index.js +14 -14
- package/{cdn/react/giovanni-search → dist/react/variable-keyword-search}/index.d.ts +5 -5
- package/dist/react/variable-keyword-search/index.js +24 -0
- package/dist/terra-ui-components.d.ts +5 -4
- package/dist/terra-ui-components.js +74 -68
- package/dist/terra_ui_components-0.0.30-py3-none-any.whl +0 -0
- package/dist/{terra_ui_components-0.0.29.tar.gz → terra_ui_components-0.0.30.tar.gz} +0 -0
- package/dist/types/vue/index.d.ts +203 -132
- package/dist/types.d.ts +7 -0
- package/dist/utilities/icon-library.js +2 -2
- package/dist/vscode.html-custom-data.json +159 -99
- package/dist/web-types.json +356 -223
- package/package.json +2 -1
- package/cdn/chunks/chunk.GQLH2MRB.js +0 -25
- package/cdn/chunks/chunk.LBQPBXCY.js +0 -11
- package/cdn/chunks/chunk.U43KGD3Q.js +0 -6136
- package/cdn/components/giovanni-search/giovanni-search.d.ts +0 -8
- package/cdn/events/terra-giovanni-search-change.d.ts +0 -6
- package/dist/chunks/chunk.OAWTBOBI.js +0 -203
- package/dist/chunks/chunk.OVSUMCZT.js +0 -11
- package/dist/chunks/chunk.TVP7YR6X.js +0 -25
- package/dist/components/giovanni-search/giovanni-search.component.js +0 -23
- package/dist/components/giovanni-search/giovanni-search.d.ts +0 -8
- package/dist/components/giovanni-search/giovanni-search.js +0 -24
- package/dist/components/giovanni-search/giovanni-search.styles.js +0 -7
- package/dist/events/terra-giovanni-search-change.d.ts +0 -6
- package/dist/react/giovanni-search/index.js +0 -24
- package/dist/terra_ui_components-0.0.29-py3-none-any.whl +0 -0
- package/cdn/chunks/{chunk.MDRUDBRH.js → chunk.7DOMZGX7.js} +3 -3
- package/cdn/chunks/{chunk.OBHNA5IZ.js → chunk.WTPVOF7N.js} +5 -5
- package/cdn/components/{giovanni-search/giovanni-search.styles.d.ts → date-picker/date-picker.styles.d.ts} +0 -0
- package/{dist/components/giovanni-search/giovanni-search.styles.d.ts → cdn/components/variable-keyword-search/variable-keyword-search.styles.d.ts} +0 -0
- package/cdn/components/{giovanni-search/giovanni-search.types.d.ts → variable-keyword-search/variable-keyword-search.types.d.ts} +0 -0
- package/cdn/components/{giovanni-search/giovanni-search.types.js → variable-keyword-search/variable-keyword-search.types.js} +0 -0
- package/dist/chunks/{chunk.MDRUDBRH.js → chunk.7DOMZGX7.js} +3 -3
- /package/dist/components/{giovanni-search/giovanni-search.types.d.ts → variable-keyword-search/variable-keyword-search.types.d.ts} +0 -0
- /package/dist/components/{giovanni-search/giovanni-search.types.js → variable-keyword-search/variable-keyword-search.types.js} +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TerraDatePicker
|
|
3
|
+
} from "./chunk.DJICCDFZ.js";
|
|
4
|
+
|
|
5
|
+
// src/react/date-picker/index.ts
|
|
6
|
+
import * as React from "react";
|
|
7
|
+
import { createComponent } from "@lit/react";
|
|
8
|
+
var tagName = "terra-date-picker";
|
|
9
|
+
TerraDatePicker.define("terra-date-picker");
|
|
10
|
+
var reactWrapper = createComponent({
|
|
11
|
+
tagName,
|
|
12
|
+
elementClass: TerraDatePicker,
|
|
13
|
+
react: React,
|
|
14
|
+
events: {},
|
|
15
|
+
displayName: "TerraDatePicker"
|
|
16
|
+
});
|
|
17
|
+
var date_picker_default = reactWrapper;
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
date_picker_default
|
|
21
|
+
};
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk.N7J6PIAG.js";
|
|
4
4
|
import {
|
|
5
5
|
TerraMap
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.NE2F3K3V.js";
|
|
7
7
|
import {
|
|
8
8
|
StringifyBoundingBox,
|
|
9
9
|
parseBoundingBox
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
TerraElement,
|
|
13
13
|
component_styles_default
|
|
14
|
-
} from "./chunk.
|
|
14
|
+
} from "./chunk.BCU2ZKJ4.js";
|
|
15
15
|
import {
|
|
16
16
|
__decorateClass
|
|
17
17
|
} from "./chunk.TVFCHGU3.js";
|
|
@@ -50,6 +50,39 @@ var variable_combobox_styles_default = css`
|
|
|
50
50
|
flex-wrap: wrap;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
.tag-container {
|
|
54
|
+
block-size: var(--terra-block-size, 2.25rem);
|
|
55
|
+
position: absolute;
|
|
56
|
+
top: 2.25rem;
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-wrap: wrap;
|
|
59
|
+
align-content: center;
|
|
60
|
+
padding-inline-start: 0.5rem;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.tag {
|
|
64
|
+
--terra-button-height-small: 1.25rem;
|
|
65
|
+
--terra-spacing-small: 0.5rem;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.tag:hover .tag-icon,
|
|
69
|
+
.tag:active .tag-icon,
|
|
70
|
+
.tag:focus .tag-icon {
|
|
71
|
+
transform: scale(1.125);
|
|
72
|
+
color: var(--terra-color-nasa-red-shade);
|
|
73
|
+
transition:
|
|
74
|
+
transform 0.2s ease-out,
|
|
75
|
+
color 0.2s ease-out;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.tag-icon {
|
|
79
|
+
font-size: 1.25em;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.tag-icon::part(svg) {
|
|
83
|
+
stroke-width: 2;
|
|
84
|
+
}
|
|
85
|
+
|
|
53
86
|
.combobox {
|
|
54
87
|
block-size: var(--terra-block-size, 2.25rem);
|
|
55
88
|
flex: 1 1 auto;
|
|
@@ -57,6 +90,7 @@ var variable_combobox_styles_default = css`
|
|
|
57
90
|
transition:
|
|
58
91
|
background-color 0.2s ease,
|
|
59
92
|
border-color 0.2s ease;
|
|
93
|
+
max-inline-size: 100%;
|
|
60
94
|
}
|
|
61
95
|
|
|
62
96
|
.combobox::placeholder {
|
|
@@ -174,10 +208,6 @@ var variable_combobox_styles_default = css`
|
|
|
174
208
|
padding-block: 1rem 0.5rem;
|
|
175
209
|
}
|
|
176
210
|
|
|
177
|
-
.listbox-option-group:has(.clear-button) {
|
|
178
|
-
text-align: center;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
211
|
.group-title {
|
|
182
212
|
font-family: var(--terra-font-family--inter);
|
|
183
213
|
font-weight: 700;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
dialog_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.67EX34DL.js";
|
|
4
4
|
import {
|
|
5
5
|
TerraElement,
|
|
6
6
|
component_styles_default
|
|
7
|
-
} from "./chunk.
|
|
7
|
+
} from "./chunk.BCU2ZKJ4.js";
|
|
8
8
|
import {
|
|
9
9
|
__decorateClass,
|
|
10
10
|
__privateAdd,
|
|
@@ -19,36 +19,29 @@ var TerraDialog = class extends TerraElement {
|
|
|
19
19
|
constructor() {
|
|
20
20
|
super(...arguments);
|
|
21
21
|
__privateAdd(this, _handleBackdropClick);
|
|
22
|
-
this.width = "
|
|
23
|
-
this.open = false;
|
|
22
|
+
this.width = "fit-content";
|
|
24
23
|
this.clickOutsideToClose = true;
|
|
25
24
|
this.showBackdrop = true;
|
|
26
25
|
}
|
|
27
26
|
toggle() {
|
|
28
|
-
this.open ? this.hide() : this.show();
|
|
27
|
+
this.dialogEl.open ? this.hide("toggle") : this.show();
|
|
29
28
|
}
|
|
30
29
|
show() {
|
|
31
|
-
this.
|
|
30
|
+
this.dialogEl.showModal();
|
|
32
31
|
this.emit("terra-dialog-show");
|
|
33
32
|
}
|
|
34
|
-
hide() {
|
|
35
|
-
this.
|
|
33
|
+
hide(reason) {
|
|
34
|
+
this.dialogEl.close(reason);
|
|
36
35
|
this.emit("terra-dialog-hide");
|
|
37
36
|
}
|
|
38
37
|
render() {
|
|
39
38
|
return html`
|
|
40
|
-
<div
|
|
41
|
-
class="dialog-backdrop ${this.showBackdrop ? "visible" : ""} ${this.open ? "active" : ""} ${this.clickOutsideToClose ? "clickable" : ""}"
|
|
42
|
-
part="backdrop"
|
|
43
|
-
@click=${__privateMethod(this, _handleBackdropClick, handleBackdropClick_fn)}
|
|
44
|
-
></div>
|
|
45
|
-
|
|
46
39
|
<dialog
|
|
47
|
-
|
|
48
|
-
|
|
40
|
+
@click=${__privateMethod(this, _handleBackdropClick, handleBackdropClick_fn)}
|
|
41
|
+
aria-modal="true"
|
|
49
42
|
id=${this.id}
|
|
43
|
+
part="dialog"
|
|
50
44
|
role="dialog"
|
|
51
|
-
aria-modal="true"
|
|
52
45
|
style="width: ${this.width}"
|
|
53
46
|
>
|
|
54
47
|
<slot></slot>
|
|
@@ -57,9 +50,12 @@ var TerraDialog = class extends TerraElement {
|
|
|
57
50
|
}
|
|
58
51
|
};
|
|
59
52
|
_handleBackdropClick = new WeakSet();
|
|
60
|
-
handleBackdropClick_fn = function() {
|
|
53
|
+
handleBackdropClick_fn = function(event) {
|
|
61
54
|
if (this.clickOutsideToClose) {
|
|
62
|
-
|
|
55
|
+
const target = event.target;
|
|
56
|
+
if (target.nodeName === "DIALOG") {
|
|
57
|
+
this.hide("backdrop");
|
|
58
|
+
}
|
|
63
59
|
}
|
|
64
60
|
};
|
|
65
61
|
TerraDialog.styles = [component_styles_default, dialog_styles_default];
|
|
@@ -72,9 +68,6 @@ __decorateClass([
|
|
|
72
68
|
__decorateClass([
|
|
73
69
|
property({ reflect: true })
|
|
74
70
|
], TerraDialog.prototype, "width", 2);
|
|
75
|
-
__decorateClass([
|
|
76
|
-
property({ type: Boolean, reflect: true })
|
|
77
|
-
], TerraDialog.prototype, "open", 2);
|
|
78
71
|
__decorateClass([
|
|
79
72
|
property({ attribute: "click-outside-to-close", type: Boolean, reflect: true })
|
|
80
73
|
], TerraDialog.prototype, "clickOutsideToClose", 2);
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
icon_styles_default
|
|
3
|
-
} from "./chunk.7VUSSQRI.js";
|
|
4
1
|
import {
|
|
5
2
|
getIconLibrary,
|
|
6
3
|
unwatchIcon,
|
|
7
4
|
watchIcon
|
|
8
|
-
} from "./chunk.
|
|
5
|
+
} from "./chunk.7DOMZGX7.js";
|
|
6
|
+
import {
|
|
7
|
+
icon_styles_default
|
|
8
|
+
} from "./chunk.7VUSSQRI.js";
|
|
9
9
|
import {
|
|
10
10
|
watch
|
|
11
11
|
} from "./chunk.SK7IZCKP.js";
|
|
12
12
|
import {
|
|
13
13
|
TerraElement,
|
|
14
14
|
component_styles_default
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.BCU2ZKJ4.js";
|
|
16
16
|
import {
|
|
17
17
|
__decorateClass,
|
|
18
18
|
__privateAdd,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isValidDate
|
|
3
3
|
} from "./chunk.OIDMX5LU.js";
|
|
4
|
-
import {
|
|
5
|
-
date_range_slider_styles_default
|
|
6
|
-
} from "./chunk.62YHGVQN.js";
|
|
7
4
|
import {
|
|
8
5
|
mergeTooltips
|
|
9
6
|
} from "./chunk.KW4TJM4C.js";
|
|
7
|
+
import {
|
|
8
|
+
date_range_slider_styles_default
|
|
9
|
+
} from "./chunk.62YHGVQN.js";
|
|
10
10
|
import {
|
|
11
11
|
watch
|
|
12
12
|
} from "./chunk.SK7IZCKP.js";
|
|
13
13
|
import {
|
|
14
14
|
TerraElement,
|
|
15
15
|
component_styles_default
|
|
16
|
-
} from "./chunk.
|
|
16
|
+
} from "./chunk.BCU2ZKJ4.js";
|
|
17
17
|
import {
|
|
18
18
|
__decorateClass
|
|
19
19
|
} from "./chunk.TVFCHGU3.js";
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
map_styles_default
|
|
3
|
-
} from "./chunk.GR7XHOA3.js";
|
|
4
1
|
import {
|
|
5
2
|
leaflet_draw_styles_default
|
|
6
3
|
} from "./chunk.AAWOHDFX.js";
|
|
@@ -13,13 +10,16 @@ import {
|
|
|
13
10
|
import {
|
|
14
11
|
MapController
|
|
15
12
|
} from "./chunk.SBTMIM4P.js";
|
|
13
|
+
import {
|
|
14
|
+
map_styles_default
|
|
15
|
+
} from "./chunk.GR7XHOA3.js";
|
|
16
16
|
import {
|
|
17
17
|
watch
|
|
18
18
|
} from "./chunk.SK7IZCKP.js";
|
|
19
19
|
import {
|
|
20
20
|
TerraElement,
|
|
21
21
|
component_styles_default
|
|
22
|
-
} from "./chunk.
|
|
22
|
+
} from "./chunk.BCU2ZKJ4.js";
|
|
23
23
|
import {
|
|
24
24
|
__decorateClass,
|
|
25
25
|
__privateAdd,
|
|
@@ -1,33 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FetchController
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.YY2NUPBF.js";
|
|
4
4
|
import {
|
|
5
|
+
variable_combobox_styles_default
|
|
6
|
+
} from "./chunk.HJGC45MW.js";
|
|
7
|
+
import {
|
|
8
|
+
adaptValueToVariableMetadata,
|
|
5
9
|
clearSelection,
|
|
6
10
|
groupDocsByCollection,
|
|
7
11
|
removeEmptyCollections,
|
|
8
12
|
renderSearchResult,
|
|
9
13
|
walkToOption
|
|
10
|
-
} from "./chunk.
|
|
11
|
-
import {
|
|
12
|
-
variable_combobox_styles_default
|
|
13
|
-
} from "./chunk.QK5OWFVO.js";
|
|
14
|
+
} from "./chunk.5LMWCV76.js";
|
|
14
15
|
import {
|
|
15
16
|
icon_default
|
|
16
|
-
} from "./chunk.
|
|
17
|
+
} from "./chunk.BXMFNRIQ.js";
|
|
17
18
|
import {
|
|
18
19
|
button_default
|
|
19
|
-
} from "./chunk.
|
|
20
|
+
} from "./chunk.MY3D3SMW.js";
|
|
20
21
|
import {
|
|
21
22
|
watch
|
|
22
23
|
} from "./chunk.SK7IZCKP.js";
|
|
23
24
|
import {
|
|
24
25
|
TerraElement,
|
|
25
26
|
component_styles_default
|
|
26
|
-
} from "./chunk.
|
|
27
|
+
} from "./chunk.BCU2ZKJ4.js";
|
|
27
28
|
import {
|
|
28
29
|
__decorateClass,
|
|
29
30
|
__privateAdd,
|
|
30
31
|
__privateGet,
|
|
32
|
+
__privateMethod,
|
|
31
33
|
__privateSet,
|
|
32
34
|
__spreadProps,
|
|
33
35
|
__spreadValues
|
|
@@ -40,22 +42,27 @@ import { property, state } from "lit/decorators.js";
|
|
|
40
42
|
import { cache } from "lit/directives/cache.js";
|
|
41
43
|
import { map } from "lit/directives/map.js";
|
|
42
44
|
import { ref } from "lit/directives/ref.js";
|
|
43
|
-
var _combobox, _fetchController, _searchableList, _listbox, _searchEngine, _walker, _dispatchChange, _handleButtonClick, _handleComboboxChange, _handleOptionClick, _handleKeydown, _manageListboxVisibility, _selectOption;
|
|
45
|
+
var _combobox, _fetchController, _searchableList, _listbox, _searchEngine, _walker, _tagContainer, _dispatchChange, _handleButtonClick, _handleComboboxChange, _handleOptionClick, _handleKeydown, _manageListboxVisibility, _selectOption, _renderTags, renderTags_fn;
|
|
44
46
|
var _TerraVariableCombobox = class _TerraVariableCombobox extends TerraElement {
|
|
45
47
|
constructor() {
|
|
46
48
|
super(...arguments);
|
|
49
|
+
__privateAdd(this, _renderTags);
|
|
47
50
|
__privateAdd(this, _combobox, null);
|
|
48
51
|
__privateAdd(this, _fetchController, void 0);
|
|
49
52
|
__privateAdd(this, _searchableList, []);
|
|
50
53
|
__privateAdd(this, _listbox, null);
|
|
51
54
|
__privateAdd(this, _searchEngine, null);
|
|
52
55
|
__privateAdd(this, _walker, null);
|
|
56
|
+
__privateAdd(this, _tagContainer, null);
|
|
53
57
|
this.label = "Search for Variables";
|
|
54
58
|
this.hideHelp = false;
|
|
55
59
|
this.hideLabel = false;
|
|
60
|
+
this.useTags = false;
|
|
56
61
|
this.isExpanded = false;
|
|
57
62
|
this.query = _TerraVariableCombobox.initialQuery;
|
|
58
63
|
this.searchResults = [];
|
|
64
|
+
this.tags = [];
|
|
65
|
+
this.tagContainerWidth = 0;
|
|
59
66
|
__privateAdd(this, _dispatchChange, (stringifiedData) => {
|
|
60
67
|
this.emit("terra-combobox-change", { detail: JSON.parse(stringifiedData) });
|
|
61
68
|
});
|
|
@@ -151,7 +158,7 @@ var _TerraVariableCombobox = class _TerraVariableCombobox extends TerraElement {
|
|
|
151
158
|
}
|
|
152
159
|
});
|
|
153
160
|
__privateAdd(this, _selectOption, (option) => {
|
|
154
|
-
const { longName, eventDetail } = option.dataset;
|
|
161
|
+
const { longName, eventDetail, name } = option.dataset;
|
|
155
162
|
this.query = `${longName}`;
|
|
156
163
|
__privateGet(this, _dispatchChange).call(this, eventDetail);
|
|
157
164
|
this.isExpanded = false;
|
|
@@ -159,22 +166,32 @@ var _TerraVariableCombobox = class _TerraVariableCombobox extends TerraElement {
|
|
|
159
166
|
__privateGet(this, _combobox),
|
|
160
167
|
__privateGet(this, _listbox)
|
|
161
168
|
);
|
|
169
|
+
if (this.useTags) {
|
|
170
|
+
this.tags = [`${name}`];
|
|
171
|
+
__privateGet(this, _combobox).value = _TerraVariableCombobox.initialQuery;
|
|
172
|
+
this.query = _TerraVariableCombobox.initialQuery;
|
|
173
|
+
}
|
|
162
174
|
});
|
|
163
175
|
}
|
|
164
|
-
async valueChanged() {
|
|
165
|
-
var _a;
|
|
176
|
+
async valueChanged(oldValue, newValue) {
|
|
177
|
+
var _a, _b;
|
|
178
|
+
if (oldValue === newValue) {
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
166
181
|
await __privateGet(this, _fetchController).taskComplete;
|
|
167
|
-
const
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
const variableName = this.value.substring(lastUnderscoreIndex + 1);
|
|
171
|
-
const modifiedCollection = collection.replace(/_v(?=[^_]*$)/, "_");
|
|
172
|
-
const fixedValue = `${modifiedCollection}_${variableName}`;
|
|
173
|
-
return variable.entryId === fixedValue;
|
|
182
|
+
const compatibleValue = adaptValueToVariableMetadata(this.value);
|
|
183
|
+
const selectedVariable = (_a = __privateGet(this, _fetchController).value) == null ? void 0 : _a.find((metadata) => {
|
|
184
|
+
return compatibleValue === metadata.entryId;
|
|
174
185
|
});
|
|
175
186
|
if (selectedVariable) {
|
|
176
187
|
this.query = selectedVariable.longName;
|
|
188
|
+
this.searchResults = (_b = __privateGet(this, _searchEngine)) == null ? void 0 : _b.search(this.query).map(({ item }) => item);
|
|
177
189
|
__privateGet(this, _dispatchChange).call(this, selectedVariable.eventDetail);
|
|
190
|
+
if (this.useTags) {
|
|
191
|
+
this.tags = [`${selectedVariable.name}`];
|
|
192
|
+
__privateGet(this, _combobox).value = _TerraVariableCombobox.initialQuery;
|
|
193
|
+
this.query = _TerraVariableCombobox.initialQuery;
|
|
194
|
+
}
|
|
178
195
|
}
|
|
179
196
|
}
|
|
180
197
|
connectedCallback() {
|
|
@@ -196,13 +213,28 @@ var _TerraVariableCombobox = class _TerraVariableCombobox extends TerraElement {
|
|
|
196
213
|
this.isExpanded = !this.isExpanded;
|
|
197
214
|
}
|
|
198
215
|
render() {
|
|
199
|
-
var _a
|
|
200
|
-
const searchHasNoMatches = ((_a = this.searchResults) == null ? void 0 : _a.length) === 0 && ((_b = __privateGet(this, _searchableList)) == null ? void 0 : _b.length) !== 0 && this.query !== _TerraVariableCombobox.initialQuery;
|
|
216
|
+
var _a;
|
|
201
217
|
return html`<search part="base" title="Search through the list.">
|
|
202
218
|
<label for="combobox" class=${this.hideLabel ? "sr-only" : "input-label"}
|
|
203
219
|
>${this.label}</label
|
|
204
220
|
>
|
|
205
221
|
<div class="search-input-group">
|
|
222
|
+
${this.useTags ? html`<div
|
|
223
|
+
${ref((el) => {
|
|
224
|
+
var _a2;
|
|
225
|
+
if (el) {
|
|
226
|
+
(_a2 = __privateGet(this, _tagContainer)) != null ? _a2 : __privateSet(this, _tagContainer, el);
|
|
227
|
+
this.tagContainerWidth = el.getBoundingClientRect().width;
|
|
228
|
+
}
|
|
229
|
+
})}
|
|
230
|
+
class="tag-container"
|
|
231
|
+
id="tag-container"
|
|
232
|
+
>
|
|
233
|
+
${map(
|
|
234
|
+
this.tags,
|
|
235
|
+
(value, index) => __privateMethod(this, _renderTags, renderTags_fn).call(this, value, index)
|
|
236
|
+
)}
|
|
237
|
+
</div>` : nothing}
|
|
206
238
|
<input
|
|
207
239
|
${ref((el) => {
|
|
208
240
|
var _a2;
|
|
@@ -210,6 +242,7 @@ var _TerraVariableCombobox = class _TerraVariableCombobox extends TerraElement {
|
|
|
210
242
|
(_a2 = __privateGet(this, _combobox)) != null ? _a2 : __privateSet(this, _combobox, el);
|
|
211
243
|
}
|
|
212
244
|
})}
|
|
245
|
+
autocomplete="off"
|
|
213
246
|
aria-autocomplete="list"
|
|
214
247
|
aria-controls="listbox"
|
|
215
248
|
aria-haspopup="list"
|
|
@@ -219,8 +252,10 @@ var _TerraVariableCombobox = class _TerraVariableCombobox extends TerraElement {
|
|
|
219
252
|
part="combobox"
|
|
220
253
|
role="combobox"
|
|
221
254
|
type="text"
|
|
222
|
-
|
|
223
|
-
|
|
255
|
+
style=${this.useTags ? `padding-inline-start: calc(${this.tagContainerWidth}px + 0.25rem);` : nothing}
|
|
256
|
+
aria-describedby=${this.useTags ? "tag-container" : nothing}
|
|
257
|
+
placeholder=${this.useTags ? nothing : (_a = this.placeholder) != null ? _a : `${this.label}\u2026`}
|
|
258
|
+
.value=${this.useTags ? _TerraVariableCombobox.initialQuery : this.query}
|
|
224
259
|
@input=${__privateGet(this, _handleComboboxChange)}
|
|
225
260
|
@keydown=${__privateGet(this, _handleKeydown)}
|
|
226
261
|
/>
|
|
@@ -294,18 +329,6 @@ var _TerraVariableCombobox = class _TerraVariableCombobox extends TerraElement {
|
|
|
294
329
|
role="listbox"
|
|
295
330
|
class="search-results"
|
|
296
331
|
>
|
|
297
|
-
${searchHasNoMatches ? html`<li
|
|
298
|
-
class="listbox-option-group"
|
|
299
|
-
data-tree-walker="filter_skip"
|
|
300
|
-
>
|
|
301
|
-
<terra-button
|
|
302
|
-
@click=${() => this.query = _TerraVariableCombobox.initialQuery}
|
|
303
|
-
class="clear-button"
|
|
304
|
-
data-tree-walker="filter_skip"
|
|
305
|
-
>
|
|
306
|
-
clear search
|
|
307
|
-
</terra-button>
|
|
308
|
-
</li>` : nothing}
|
|
309
332
|
${__privateGet(this, _fetchController).render({
|
|
310
333
|
initial: () => html`<li class="updating">Updating List of Variables</li>`,
|
|
311
334
|
pending: () => html`<li class="updating">Updating List of Variables</li>`,
|
|
@@ -352,6 +375,7 @@ _searchableList = new WeakMap();
|
|
|
352
375
|
_listbox = new WeakMap();
|
|
353
376
|
_searchEngine = new WeakMap();
|
|
354
377
|
_walker = new WeakMap();
|
|
378
|
+
_tagContainer = new WeakMap();
|
|
355
379
|
_dispatchChange = new WeakMap();
|
|
356
380
|
_handleButtonClick = new WeakMap();
|
|
357
381
|
_handleComboboxChange = new WeakMap();
|
|
@@ -359,6 +383,34 @@ _handleOptionClick = new WeakMap();
|
|
|
359
383
|
_handleKeydown = new WeakMap();
|
|
360
384
|
_manageListboxVisibility = new WeakMap();
|
|
361
385
|
_selectOption = new WeakMap();
|
|
386
|
+
_renderTags = new WeakSet();
|
|
387
|
+
renderTags_fn = function(tag, _index) {
|
|
388
|
+
return html`
|
|
389
|
+
<terra-button
|
|
390
|
+
size="small"
|
|
391
|
+
variant="default"
|
|
392
|
+
outline
|
|
393
|
+
class="tag"
|
|
394
|
+
aria-label=${`Clear tag ${tag}`}
|
|
395
|
+
@click=${() => {
|
|
396
|
+
this.tags = [];
|
|
397
|
+
this.clear();
|
|
398
|
+
setTimeout(() => {
|
|
399
|
+
var _a;
|
|
400
|
+
this.tagContainerWidth = (_a = __privateGet(this, _tagContainer)) == null ? void 0 : _a.getBoundingClientRect().width;
|
|
401
|
+
}, 100);
|
|
402
|
+
}}
|
|
403
|
+
>
|
|
404
|
+
${tag}
|
|
405
|
+
<terra-icon
|
|
406
|
+
class="tag-icon"
|
|
407
|
+
slot="suffix"
|
|
408
|
+
name="outline-x-circle"
|
|
409
|
+
library="heroicons"
|
|
410
|
+
></terra-icon>
|
|
411
|
+
</terra-button>
|
|
412
|
+
`;
|
|
413
|
+
};
|
|
362
414
|
_TerraVariableCombobox.dependencies = {
|
|
363
415
|
"terra-button": button_default,
|
|
364
416
|
"terra-icon": icon_default
|
|
@@ -376,11 +428,14 @@ __decorateClass([
|
|
|
376
428
|
property()
|
|
377
429
|
], _TerraVariableCombobox.prototype, "placeholder", 2);
|
|
378
430
|
__decorateClass([
|
|
379
|
-
property({ attribute: "hide-help", type: Boolean })
|
|
431
|
+
property({ attribute: "hide-help", type: Boolean, reflect: true })
|
|
380
432
|
], _TerraVariableCombobox.prototype, "hideHelp", 2);
|
|
381
433
|
__decorateClass([
|
|
382
|
-
property({ attribute: "hide-label", type: Boolean })
|
|
434
|
+
property({ attribute: "hide-label", type: Boolean, reflect: true })
|
|
383
435
|
], _TerraVariableCombobox.prototype, "hideLabel", 2);
|
|
436
|
+
__decorateClass([
|
|
437
|
+
property({ attribute: "use-tags", type: Boolean, reflect: true })
|
|
438
|
+
], _TerraVariableCombobox.prototype, "useTags", 2);
|
|
384
439
|
__decorateClass([
|
|
385
440
|
property()
|
|
386
441
|
], _TerraVariableCombobox.prototype, "value", 2);
|
|
@@ -396,6 +451,12 @@ __decorateClass([
|
|
|
396
451
|
__decorateClass([
|
|
397
452
|
state()
|
|
398
453
|
], _TerraVariableCombobox.prototype, "searchResults", 2);
|
|
454
|
+
__decorateClass([
|
|
455
|
+
state()
|
|
456
|
+
], _TerraVariableCombobox.prototype, "tags", 2);
|
|
457
|
+
__decorateClass([
|
|
458
|
+
state()
|
|
459
|
+
], _TerraVariableCombobox.prototype, "tagContainerWidth", 2);
|
|
399
460
|
__decorateClass([
|
|
400
461
|
watch("value")
|
|
401
462
|
], _TerraVariableCombobox.prototype, "valueChanged", 1);
|