@nasa-terra/components 0.0.16 → 0.0.19
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.2TIJ6R6B.js → chunk.255N2VBJ.js} +1 -1
- package/cdn/chunks/{chunk.JIUOSOVY.js → chunk.26M35UMA.js} +1 -1
- package/cdn/chunks/{chunk.7VSR26CA.js → chunk.2MR4S2RG.js} +2 -2
- package/cdn/chunks/{chunk.EHY7VY3A.js → chunk.35UPRHLO.js} +1 -1
- package/cdn/chunks/{chunk.XV5OXFZF.js → chunk.3QDQU6IH.js} +1 -1
- package/cdn/chunks/{chunk.JM34BH4L.js → chunk.3X46EXSH.js} +1 -1
- package/cdn/chunks/{chunk.336JMC6Z.js → chunk.4BM5VFHP.js} +4 -2
- package/cdn/chunks/{chunk.KNJGM7ZC.js → chunk.7NUP2QM3.js} +1 -1
- package/cdn/chunks/{chunk.FKIVBKR4.js → chunk.A7JNBDMV.js} +1 -1
- package/{dist/chunks/chunk.2GTDPFRM.js → cdn/chunks/chunk.CVMKTAN6.js} +1 -1
- package/cdn/chunks/{chunk.RPXN4NU2.js → chunk.D4PVXIX4.js} +1 -1
- package/cdn/chunks/{chunk.VLVUJMLW.js → chunk.D4RFPP4E.js} +14 -14
- package/cdn/chunks/{chunk.IA24KXWX.js → chunk.EFFYILRO.js} +1 -1
- package/{dist/chunks/chunk.CBU7JODA.js → cdn/chunks/chunk.FXBR2CLR.js} +1 -1
- package/cdn/chunks/{chunk.AI62NGNK.js → chunk.GGXVEHRQ.js} +1 -1
- package/cdn/chunks/{chunk.MGN45BTW.js → chunk.GVXNMKZL.js} +1 -1
- package/cdn/chunks/{chunk.LCBLTPNH.js → chunk.H4JY2YI5.js} +1 -1
- package/cdn/chunks/{chunk.3ENNXZ6R.js → chunk.HOJQS4WB.js} +23 -14
- package/cdn/chunks/{chunk.T3R3UWJ7.js → chunk.HYBK26DZ.js} +3 -3
- package/cdn/chunks/{chunk.VXV5USN7.js → chunk.I4SJOUOT.js} +9 -9
- package/cdn/chunks/{chunk.5TCRMMVM.js → chunk.IEKKFDDR.js} +1 -1
- package/cdn/chunks/{chunk.QQ3GAD4X.js → chunk.JF5WE7DB.js} +4 -4
- package/cdn/chunks/{chunk.F6HKKNJR.js → chunk.K3KUUN7M.js} +15 -15
- package/cdn/chunks/{chunk.EIMG4XGS.js → chunk.KGVGJIN6.js} +4 -4
- package/cdn/chunks/{chunk.DY5SMOW7.js → chunk.KRV3QC6E.js} +1 -2
- package/cdn/chunks/{chunk.SDCAKUF2.js → chunk.MU5VF7T7.js} +1 -1
- package/cdn/chunks/{chunk.57LVW27O.js → chunk.N36ACYG7.js} +1 -1
- package/cdn/chunks/{chunk.TG4WI6CA.js → chunk.N6CSKYGG.js} +1 -1
- package/cdn/chunks/{chunk.PETOVVIO.js → chunk.PHMP6QZK.js} +1 -1
- package/cdn/chunks/{chunk.TOG3CR4L.js → chunk.Q7V7IFTI.js} +1 -1
- package/cdn/chunks/{chunk.WVAKAESC.js → chunk.RJCQ5JYU.js} +1 -1
- package/cdn/chunks/{chunk.ODLY7QWO.js → chunk.RPRZYXWX.js} +1 -1
- package/cdn/chunks/{chunk.F3WO26WZ.js → chunk.SAY53MDH.js} +3 -3
- package/{dist/chunks/chunk.KPXFSE3J.js → cdn/chunks/chunk.SBTMIM4P.js} +6 -3
- package/cdn/chunks/{chunk.RYDRC65X.js → chunk.SU7526RC.js} +1 -1
- package/{dist/chunks/chunk.34PQNYPP.js → cdn/chunks/chunk.T6LQIGOC.js} +1 -1
- package/{dist/chunks/chunk.KCYAARKK.js → cdn/chunks/chunk.T6XNILRG.js} +1 -1
- package/cdn/chunks/{chunk.5EGY75T5.js → chunk.UBVSIOSK.js} +4 -4
- package/cdn/chunks/{chunk.77DLQZVO.js → chunk.UQREFLTK.js} +1 -1
- package/cdn/chunks/{chunk.GZ24SYY3.js → chunk.VJ3ZRWAI.js} +2 -6
- package/cdn/chunks/{chunk.TD5OSBG3.js → chunk.VVXXEKVB.js} +1 -1
- package/cdn/chunks/{chunk.PBTOMMNF.js → chunk.VWOCHHDI.js} +7 -7
- package/cdn/chunks/{chunk.G6ADH3AH.js → chunk.WLGNUWUQ.js} +1 -1
- package/cdn/chunks/{chunk.QE6VXD5B.js → chunk.WRRDTOCT.js} +5 -2
- package/cdn/chunks/{chunk.IFWHGZLJ.js → chunk.XPKFSIPV.js} +1 -1
- package/cdn/chunks/{chunk.OB7ATVCO.js → chunk.YGXFM6FJ.js} +1 -1
- package/cdn/chunks/{chunk.CZH6I2IA.js → chunk.ZAYAT2TO.js} +1 -1
- package/cdn/chunks/{chunk.X2ZVRY4H.js → chunk.ZJVBOKXX.js} +1 -1
- package/cdn/chunks/{chunk.NGNH7UG4.js → chunk.ZMHMRAXL.js} +4 -4
- package/cdn/chunks/{chunk.MSS2SPZN.js → chunk.ZSTKVGYN.js} +1 -1
- package/cdn/components/browse-variables/browse-variables.component.js +19 -19
- package/cdn/components/browse-variables/browse-variables.js +20 -20
- package/cdn/components/button/button.component.js +4 -4
- package/cdn/components/button/button.js +5 -5
- package/cdn/components/chip/chip.component.js +2 -2
- package/cdn/components/chip/chip.js +3 -3
- package/cdn/components/combobox/combobox.component.js +4 -4
- package/cdn/components/combobox/combobox.js +5 -5
- 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/giovanni-search/giovanni-search.component.js +13 -13
- package/cdn/components/giovanni-search/giovanni-search.js +14 -14
- package/cdn/components/icon/icon.component.js +4 -4
- package/cdn/components/icon/icon.js +5 -5
- 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 +13 -13
- package/cdn/components/login/login.js +14 -14
- package/cdn/components/map/leaflet-utils.d.ts +1 -1
- package/cdn/components/map/leaflet-utils.js +1 -1
- package/cdn/components/map/map.component.js +5 -5
- package/cdn/components/map/map.controller.js +1 -1
- package/cdn/components/map/map.js +6 -6
- package/cdn/components/plot/plot.component.js +2 -2
- package/cdn/components/plot/plot.js +3 -3
- package/cdn/components/skeleton/skeleton.component.js +2 -2
- package/cdn/components/skeleton/skeleton.js +3 -3
- package/cdn/components/spatial-picker/spatial-picker.component.js +6 -6
- package/cdn/components/spatial-picker/spatial-picker.js +7 -7
- package/cdn/components/time-series/time-series.component.d.ts +4 -2
- package/cdn/components/time-series/time-series.component.js +25 -25
- package/cdn/components/time-series/time-series.controller.d.ts +4 -3
- package/cdn/components/time-series/time-series.controller.js +1 -1
- package/cdn/components/time-series/time-series.js +26 -26
- package/cdn/components/variable-combobox/variable-combobox.component.js +12 -12
- package/cdn/components/variable-combobox/variable-combobox.controller.js +2 -2
- package/cdn/components/variable-combobox/variable-combobox.js +13 -13
- package/cdn/custom-elements.json +458 -450
- package/cdn/events/events.d.ts +1 -0
- package/cdn/events/terra-time-series-data-change.d.ts +16 -0
- package/cdn/react/browse-variables/index.js +20 -20
- package/cdn/react/button/index.js +5 -5
- package/cdn/react/chip/index.js +3 -3
- package/cdn/react/combobox/index.js +5 -5
- package/cdn/react/date-range-slider/index.js +4 -4
- package/cdn/react/giovanni-search/index.js +14 -14
- package/cdn/react/icon/index.js +5 -5
- package/cdn/react/index.d.ts +2 -2
- package/cdn/react/index.js +64 -64
- package/cdn/react/loader/index.js +3 -3
- package/cdn/react/login/index.js +14 -14
- package/cdn/react/map/index.js +6 -6
- package/cdn/react/plot/index.js +3 -3
- package/cdn/react/skeleton/index.js +3 -3
- package/cdn/react/spatial-picker/index.js +7 -7
- package/cdn/react/time-series/index.d.ts +8 -1
- package/cdn/react/time-series/index.js +26 -26
- package/cdn/react/variable-combobox/index.js +13 -13
- package/cdn/terra-ui-components.js +58 -58
- package/cdn/types/vue/index.d.ts +68 -63
- package/cdn/utilities/icon-library.js +2 -2
- package/cdn/vscode.html-custom-data.json +49 -49
- package/cdn/web-types.json +85 -75
- package/{cdn/chunks/chunk.JBZMCSPD.js → dist/chunks/chunk.267RAJCD.js} +1 -1
- package/dist/chunks/{chunk.DV6U7J5D.js → chunk.2GFNQRFQ.js} +6 -6
- package/dist/chunks/{chunk.2KFIIWTA.js → chunk.2GIVYMVS.js} +1 -1
- package/dist/chunks/{chunk.ECOMXZ5Z.js → chunk.2SW6ZLO3.js} +6 -6
- package/dist/chunks/{chunk.5TCRMMVM.js → chunk.5BLMPQLX.js} +1 -1
- package/{cdn/chunks/chunk.MTNKN7SC.js → dist/chunks/chunk.6BQMITBG.js} +1 -1
- package/dist/chunks/{chunk.BQKL24VU.js → chunk.6W5DHHGH.js} +1 -1
- package/{cdn/chunks/chunk.NZLN7XGH.js → dist/chunks/chunk.6XGCF2AT.js} +1 -1
- package/{cdn/chunks/chunk.WALPLM23.js → dist/chunks/chunk.BLNX7W6U.js} +1 -1
- package/{cdn/chunks/chunk.34PQNYPP.js → dist/chunks/chunk.BQZFEJJM.js} +1 -1
- package/{cdn/chunks/chunk.NXW5W246.js → dist/chunks/chunk.CG2UCM6R.js} +4 -4
- package/{cdn/chunks/chunk.QJJV3URN.js → dist/chunks/chunk.CIHL36QS.js} +1 -1
- package/{cdn/chunks/chunk.NHY4FPXP.js → dist/chunks/chunk.DOHDFFXP.js} +6 -6
- package/{cdn/chunks/chunk.CUBR5ACQ.js → dist/chunks/chunk.DTO6LPWI.js} +1 -1
- package/{cdn/chunks/chunk.TFD7EM3D.js → dist/chunks/chunk.DWTCCF6R.js} +1 -1
- package/dist/chunks/{chunk.DR7BNSRT.js → chunk.E2GNJGZV.js} +1 -1
- package/dist/chunks/{chunk.SL7W466R.js → chunk.EX74UTJ7.js} +1 -1
- package/{cdn/chunks/chunk.UFFAH5CF.js → dist/chunks/chunk.FYQLL4HT.js} +1 -1
- package/{cdn/chunks/chunk.5HSDW7A7.js → dist/chunks/chunk.GAYRUSX6.js} +1 -1
- package/dist/chunks/{chunk.FKSGPKJ4.js → chunk.GGC3H4U4.js} +1 -1
- package/dist/chunks/{chunk.HSXXKVP2.js → chunk.GVOL34BS.js} +1 -1
- package/{cdn/chunks/chunk.TWEJH5NG.js → dist/chunks/chunk.HEWVEHI5.js} +1 -1
- package/dist/chunks/{chunk.FRYGAWGB.js → chunk.I3WITIFZ.js} +1 -1
- package/{cdn/chunks/chunk.WYAUVXJM.js → dist/chunks/chunk.ICVWA4P5.js} +5 -2
- package/{cdn/chunks/chunk.TRSTZLH4.js → dist/chunks/chunk.IKXISAQ2.js} +1 -1
- package/{cdn/chunks/chunk.EUMBRSX6.js → dist/chunks/chunk.ITTYAXUW.js} +1 -1
- package/{cdn/chunks/chunk.AE3PFNQE.js → dist/chunks/chunk.JFDJULBY.js} +1 -1
- package/{cdn/chunks/chunk.Y4T6LEGB.js → dist/chunks/chunk.JQIAVJLL.js} +1 -1
- package/{cdn/chunks/chunk.XSTI34LB.js → dist/chunks/chunk.JRFWKQYN.js} +1 -1
- package/dist/chunks/{chunk.EU6EQVBK.js → chunk.KADMU3E4.js} +3 -3
- package/dist/chunks/{chunk.GPMEZSRZ.js → chunk.KBIE3IOP.js} +1 -1
- package/{cdn/chunks/chunk.SQBTHONX.js → dist/chunks/chunk.LA3ITE3F.js} +3 -3
- package/dist/chunks/{chunk.G3K7U3GY.js → chunk.LHTTKRV2.js} +4 -4
- package/{cdn/chunks/chunk.EAPY6ENL.js → dist/chunks/chunk.LIXRQ4TF.js} +1 -1
- package/{cdn/chunks/chunk.DGKBWVVI.js → dist/chunks/chunk.MVIGRS3J.js} +1 -1
- package/{cdn/chunks/chunk.5LOTY62O.js → dist/chunks/chunk.PHKCL7D5.js} +1 -1
- package/dist/chunks/{chunk.7OAL7XX6.js → chunk.RQNB3PHE.js} +1 -1
- package/dist/chunks/{chunk.6ZBHXUFH.js → chunk.RSVF27RD.js} +1 -1
- package/{cdn/chunks/chunk.KPXFSE3J.js → dist/chunks/chunk.SBTMIM4P.js} +6 -3
- package/dist/chunks/{chunk.U4QKPX6T.js → chunk.SLW4ZVXI.js} +25 -16
- package/dist/chunks/{chunk.I5ZJKFQJ.js → chunk.TFKLXJVS.js} +12 -12
- package/dist/chunks/{chunk.BY7D7WUU.js → chunk.TK54QVRF.js} +4 -4
- package/{cdn/chunks/chunk.2GTDPFRM.js → dist/chunks/chunk.TRICHLNH.js} +1 -1
- package/dist/chunks/{chunk.ZC2AYSV2.js → chunk.UBBSTKSW.js} +4 -2
- package/{cdn/chunks/chunk.UQKHXO3T.js → dist/chunks/chunk.UCFFAP7X.js} +1 -2
- package/dist/chunks/{chunk.RPCYLOW6.js → chunk.UKBQUK7O.js} +1 -1
- package/{cdn/chunks/chunk.NLHKPFJJ.js → dist/chunks/chunk.WFSOHTHG.js} +1 -1
- package/dist/chunks/{chunk.6BHFQXZZ.js → chunk.X232PDAN.js} +1 -1
- package/{cdn/chunks/chunk.EPQIDDJG.js → dist/chunks/chunk.XBXVMXH7.js} +2 -6
- package/dist/chunks/{chunk.45HI7TFT.js → chunk.XVXKFPWS.js} +1 -1
- package/dist/components/browse-variables/browse-variables.component.js +16 -16
- package/dist/components/browse-variables/browse-variables.js +17 -17
- 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-range-slider/date-range-slider.component.js +3 -3
- package/dist/components/date-range-slider/date-range-slider.js +4 -4
- package/dist/components/giovanni-search/giovanni-search.component.js +11 -11
- package/dist/components/giovanni-search/giovanni-search.js +12 -12
- package/dist/components/icon/icon.component.js +4 -4
- package/dist/components/icon/icon.js +5 -5
- 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 +11 -11
- package/dist/components/login/login.js +12 -12
- package/dist/components/map/leaflet-utils.d.ts +1 -1
- package/dist/components/map/leaflet-utils.js +1 -1
- package/dist/components/map/map.component.js +4 -4
- package/dist/components/map/map.controller.js +1 -1
- package/dist/components/map/map.js +5 -5
- package/dist/components/plot/plot.component.js +2 -2
- package/dist/components/plot/plot.js +3 -3
- 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 +5 -5
- package/dist/components/spatial-picker/spatial-picker.js +6 -6
- package/dist/components/time-series/time-series.component.d.ts +4 -2
- package/dist/components/time-series/time-series.component.js +21 -21
- package/dist/components/time-series/time-series.controller.d.ts +4 -3
- package/dist/components/time-series/time-series.controller.js +1 -1
- package/dist/components/time-series/time-series.js +22 -22
- package/dist/components/variable-combobox/variable-combobox.component.js +10 -10
- package/dist/components/variable-combobox/variable-combobox.controller.js +1 -1
- package/dist/components/variable-combobox/variable-combobox.js +11 -11
- package/dist/custom-elements.json +458 -450
- package/dist/events/events.d.ts +1 -0
- package/dist/events/terra-time-series-data-change.d.ts +16 -0
- package/dist/react/browse-variables/index.js +17 -17
- 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-range-slider/index.js +4 -4
- package/dist/react/giovanni-search/index.js +12 -12
- package/dist/react/icon/index.js +5 -5
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +59 -59
- 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/plot/index.js +3 -3
- package/dist/react/skeleton/index.js +3 -3
- package/dist/react/spatial-picker/index.js +6 -6
- package/dist/react/time-series/index.d.ts +8 -1
- package/dist/react/time-series/index.js +22 -22
- package/dist/react/variable-combobox/index.js +11 -11
- package/dist/terra-ui-components.js +53 -53
- package/dist/terra_ui_components-0.0.19-py3-none-any.whl +0 -0
- package/dist/{terra_ui_components-0.0.16.tar.gz → terra_ui_components-0.0.19.tar.gz} +0 -0
- package/dist/types/vue/index.d.ts +68 -63
- package/dist/utilities/icon-library.js +2 -2
- package/dist/vscode.html-custom-data.json +49 -49
- package/dist/web-types.json +85 -75
- package/package.json +3 -4
- package/cdn/chunks/chunk.2DQS7YWJ.js +0 -41
- package/cdn/chunks/chunk.2KFIIWTA.js +0 -53
- package/cdn/chunks/chunk.2TEPJ23V.js +0 -11
- package/cdn/chunks/chunk.2V4XFMTB.js +0 -7
- package/cdn/chunks/chunk.3IXG5IJD.js +0 -21
- package/cdn/chunks/chunk.45HI7TFT.js +0 -11
- package/cdn/chunks/chunk.62YHGVQN.js +0 -335
- package/cdn/chunks/chunk.6PYVTQGY.js +0 -11
- package/cdn/chunks/chunk.7OAL7XX6.js +0 -21
- package/cdn/chunks/chunk.7OKJDEHN.js +0 -139
- package/cdn/chunks/chunk.7VUSSQRI.js +0 -20
- package/cdn/chunks/chunk.7WL3WWGJ.js +0 -293
- package/cdn/chunks/chunk.AAWOHDFX.js +0 -259
- package/cdn/chunks/chunk.ADOXGJHH.js +0 -11
- package/cdn/chunks/chunk.APJOA6RL.js +0 -655
- package/cdn/chunks/chunk.BQKL24VU.js +0 -82
- package/cdn/chunks/chunk.BY7D7WUU.js +0 -180
- package/cdn/chunks/chunk.CBU7JODA.js +0 -11
- package/cdn/chunks/chunk.CNUQQWCR.js +0 -215
- package/cdn/chunks/chunk.DR7BNSRT.js +0 -21
- package/cdn/chunks/chunk.DV6U7J5D.js +0 -264
- package/cdn/chunks/chunk.EGZMQ7T7.js +0 -35
- package/cdn/chunks/chunk.FBOXM56P.js +0 -19
- package/cdn/chunks/chunk.FWXMF6WX.js +0 -327
- package/cdn/chunks/chunk.GHDRVO5M.js +0 -125
- package/cdn/chunks/chunk.GR7XHOA3.js +0 -52
- package/cdn/chunks/chunk.I5ZJKFQJ.js +0 -578
- package/cdn/chunks/chunk.JOOAZ4RH.js +0 -50
- package/cdn/chunks/chunk.KAV5L6Z5.js +0 -318
- package/cdn/chunks/chunk.KZ3ISS6V.js +0 -120
- package/cdn/chunks/chunk.LELNKRPW.js +0 -685
- package/cdn/chunks/chunk.MDRUDBRH.js +0 -43
- package/cdn/chunks/chunk.NX4TE64Y.js +0 -25
- package/cdn/chunks/chunk.OIDMX5LU.js +0 -10
- package/cdn/chunks/chunk.PICX7LPQ.js +0 -194
- package/cdn/chunks/chunk.PL4INVKT.js +0 -24
- package/cdn/chunks/chunk.Q44TP6D4.js +0 -477
- package/cdn/chunks/chunk.QEMJLGM4.js +0 -58
- package/cdn/chunks/chunk.QK5OWFVO.js +0 -238
- package/cdn/chunks/chunk.RPCYLOW6.js +0 -354
- package/cdn/chunks/chunk.RV2KFFXW.js +0 -116
- package/cdn/chunks/chunk.SK7IZCKP.js +0 -37
- package/cdn/chunks/chunk.SR6QXNO3.js +0 -24
- package/cdn/chunks/chunk.TQJATCGZ.js +0 -11
- package/cdn/chunks/chunk.TVFCHGU3.js +0 -76
- package/cdn/chunks/chunk.U4QKPX6T.js +0 -192
- package/cdn/chunks/chunk.UGKIMEZW.js +0 -21
- package/cdn/chunks/chunk.UIYPAVP3.js +0 -104
- package/cdn/chunks/chunk.USCKHG5S.js +0 -25
- package/cdn/chunks/chunk.V7JJFRAE.js +0 -11
- package/cdn/chunks/chunk.W7JRXR2Y.js +0 -293
- package/cdn/chunks/chunk.YL2ETAOO.js +0 -153
- package/cdn/chunks/chunk.Z2ELMSYN.js +0 -63
- package/cdn/chunks/chunk.ZC2AYSV2.js +0 -273
- package/dist/chunks/chunk.2O6HB6W6.js +0 -21
- package/dist/chunks/chunk.3WHG66G3.js +0 -177
- package/dist/chunks/chunk.57LVW27O.js +0 -11
- package/dist/chunks/chunk.5LOTY62O.js +0 -120
- package/dist/chunks/chunk.5O7TTTJD.js +0 -351
- package/dist/chunks/chunk.5UE4SLYC.js +0 -120
- package/dist/chunks/chunk.6CLWIMAP.js +0 -21
- package/dist/chunks/chunk.6GMULXGW.js +0 -21
- package/dist/chunks/chunk.7QKG7IRI.js +0 -379
- package/dist/chunks/chunk.A6JU7GRG.js +0 -25
- package/dist/chunks/chunk.AC6WDIAW.js +0 -11
- package/dist/chunks/chunk.ADOXGJHH.js +0 -11
- package/dist/chunks/chunk.CPXWDTHF.js +0 -214
- package/dist/chunks/chunk.CUBR5ACQ.js +0 -11
- package/dist/chunks/chunk.CZH6I2IA.js +0 -11
- package/dist/chunks/chunk.DIBCM2Y3.js +0 -11
- package/dist/chunks/chunk.EAPY6ENL.js +0 -11
- package/dist/chunks/chunk.EG7EICTO.js +0 -406
- package/dist/chunks/chunk.EHY7VY3A.js +0 -21
- package/dist/chunks/chunk.EPQIDDJG.js +0 -379
- package/dist/chunks/chunk.EZTCV6LQ.js +0 -95
- package/dist/chunks/chunk.FIMCDNWK.js +0 -11
- package/dist/chunks/chunk.FKIVBKR4.js +0 -11
- package/dist/chunks/chunk.FWXMF6WX.js +0 -327
- package/dist/chunks/chunk.FY4LGVGC.js +0 -21
- package/dist/chunks/chunk.G34ZJR6B.js +0 -11
- package/dist/chunks/chunk.GVG7MLLN.js +0 -21
- package/dist/chunks/chunk.I5DIH6L6.js +0 -11
- package/dist/chunks/chunk.IFWHGZLJ.js +0 -21
- package/dist/chunks/chunk.IYEX72BV.js +0 -11
- package/dist/chunks/chunk.J7P5CNNR.js +0 -11
- package/dist/chunks/chunk.JM34BH4L.js +0 -11
- package/dist/chunks/chunk.KQCFGTAH.js +0 -82
- package/dist/chunks/chunk.MDRUDBRH.js +0 -43
- package/dist/chunks/chunk.MHMITM2Q.js +0 -21
- package/dist/chunks/chunk.MTNKN7SC.js +0 -95
- package/dist/chunks/chunk.NHY4FPXP.js +0 -351
- package/dist/chunks/chunk.NQZGHZYS.js +0 -11
- package/dist/chunks/chunk.NXW5W246.js +0 -406
- package/dist/chunks/chunk.NZLN7XGH.js +0 -214
- package/dist/chunks/chunk.OB7ATVCO.js +0 -24
- package/dist/chunks/chunk.ODLY7QWO.js +0 -11
- package/dist/chunks/chunk.PARFAN5E.js +0 -25
- package/dist/chunks/chunk.PCU3BZMH.js +0 -264
- package/dist/chunks/chunk.PETOVVIO.js +0 -21
- package/dist/chunks/chunk.PICX7LPQ.js +0 -194
- package/dist/chunks/chunk.PYDXDZ7R.js +0 -21
- package/dist/chunks/chunk.Q44TP6D4.js +0 -477
- package/dist/chunks/chunk.Q67RNINH.js +0 -180
- package/dist/chunks/chunk.QLUHMJKU.js +0 -53
- package/dist/chunks/chunk.RR45MD47.js +0 -11
- package/dist/chunks/chunk.RYDRC65X.js +0 -11
- package/dist/chunks/chunk.SDCAKUF2.js +0 -11
- package/dist/chunks/chunk.SKHGD7CP.js +0 -578
- package/dist/chunks/chunk.SQBTHONX.js +0 -177
- package/dist/chunks/chunk.SR6QXNO3.js +0 -24
- package/dist/chunks/chunk.SS24NNGJ.js +0 -11
- package/dist/chunks/chunk.TFD7EM3D.js +0 -21
- package/dist/chunks/chunk.TOG3CR4L.js +0 -21
- package/dist/chunks/chunk.U2URIXJW.js +0 -354
- package/dist/chunks/chunk.UJ7TXBCU.js +0 -21
- package/dist/chunks/chunk.UQKHXO3T.js +0 -66
- package/dist/chunks/chunk.V7JJFRAE.js +0 -11
- package/dist/chunks/chunk.VR2UR6LQ.js +0 -11
- package/dist/chunks/chunk.WALPLM23.js +0 -11
- package/dist/chunks/chunk.WVAKAESC.js +0 -21
- package/dist/chunks/chunk.WYAUVXJM.js +0 -21
- package/dist/chunks/chunk.XSTI34LB.js +0 -21
- package/dist/chunks/chunk.XUW42A44.js +0 -21
- package/dist/chunks/chunk.XV5OXFZF.js +0 -21
- package/dist/terra_ui_components-0.0.16-py3-none-any.whl +0 -0
|
@@ -1,477 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
combobox_styles_default
|
|
3
|
-
} from "./chunk.7WL3WWGJ.js";
|
|
4
|
-
import {
|
|
5
|
-
clearSelection,
|
|
6
|
-
walkToOption
|
|
7
|
-
} from "./chunk.LMGJJIIS.js";
|
|
8
|
-
import {
|
|
9
|
-
watch
|
|
10
|
-
} from "./chunk.SK7IZCKP.js";
|
|
11
|
-
import {
|
|
12
|
-
TerraElement,
|
|
13
|
-
component_styles_default
|
|
14
|
-
} from "./chunk.EPQIDDJG.js";
|
|
15
|
-
import {
|
|
16
|
-
__decorateClass,
|
|
17
|
-
__privateAdd,
|
|
18
|
-
__privateGet,
|
|
19
|
-
__privateSet,
|
|
20
|
-
__spreadProps,
|
|
21
|
-
__spreadValues
|
|
22
|
-
} from "./chunk.TVFCHGU3.js";
|
|
23
|
-
|
|
24
|
-
// src/components/combobox/combobox.component.ts
|
|
25
|
-
import Fuse from "fuse.js";
|
|
26
|
-
import { LitElement, html, nothing } from "lit";
|
|
27
|
-
import { property, state } from "lit/decorators.js";
|
|
28
|
-
import { ref } from "lit/directives/ref.js";
|
|
29
|
-
import { repeat } from "lit/directives/repeat.js";
|
|
30
|
-
import { cache } from "lit/directives/cache.js";
|
|
31
|
-
import { choose } from "lit/directives/choose.js";
|
|
32
|
-
import { map } from "lit/directives/map.js";
|
|
33
|
-
var _combobox, _listbox, _searchEngine, _walker, _renderListItem, _renderGroupListItem, _renderError, _renderLoading, _dispatchChange, _handleButtonClick, _handleComboboxChange, _handleOptionClick, _handleKeydown, _manageListboxVisibility, _selectOption;
|
|
34
|
-
var _TerraCombobox = class _TerraCombobox extends TerraElement {
|
|
35
|
-
constructor() {
|
|
36
|
-
super(...arguments);
|
|
37
|
-
__privateAdd(this, _combobox, null);
|
|
38
|
-
__privateAdd(this, _listbox, null);
|
|
39
|
-
__privateAdd(this, _searchEngine, null);
|
|
40
|
-
__privateAdd(this, _walker, null);
|
|
41
|
-
this.label = "Search for Items";
|
|
42
|
-
this.name = "Item";
|
|
43
|
-
this.hideHelp = false;
|
|
44
|
-
this.hideLabel = false;
|
|
45
|
-
this.status = "INITIAL";
|
|
46
|
-
this.content = {
|
|
47
|
-
type: "GroupedListItem" /* GroupedListItem */,
|
|
48
|
-
data: []
|
|
49
|
-
};
|
|
50
|
-
this.isExpanded = false;
|
|
51
|
-
this.query = _TerraCombobox.initialQuery;
|
|
52
|
-
this.searchResults = [];
|
|
53
|
-
__privateAdd(this, _renderListItem, (listItem, index) => {
|
|
54
|
-
return html`
|
|
55
|
-
<li
|
|
56
|
-
id="listbox-option-${index}"
|
|
57
|
-
role="option"
|
|
58
|
-
class="listbox-option"
|
|
59
|
-
data-name=${listItem.name}
|
|
60
|
-
data-event-detail=${JSON.stringify({
|
|
61
|
-
name: listItem.name,
|
|
62
|
-
value: listItem.value
|
|
63
|
-
})}
|
|
64
|
-
>
|
|
65
|
-
${listItem.name}
|
|
66
|
-
</li>
|
|
67
|
-
`;
|
|
68
|
-
});
|
|
69
|
-
__privateAdd(this, _renderGroupListItem, (groupListItem, index) => {
|
|
70
|
-
return html`
|
|
71
|
-
<li class="listbox-option-group" data-tree-walker="filter_skip">
|
|
72
|
-
<span class="group-title" data-tree-walker="filter_skip"
|
|
73
|
-
>${groupListItem.name}</span
|
|
74
|
-
>
|
|
75
|
-
<ul data-tree-walker="filter_skip">
|
|
76
|
-
${repeat(
|
|
77
|
-
groupListItem.items,
|
|
78
|
-
(item) => `${item.name}_${item.value}`,
|
|
79
|
-
(item, subIndex) => {
|
|
80
|
-
return html`
|
|
81
|
-
<li
|
|
82
|
-
id="listbox-option-${index}.${subIndex}"
|
|
83
|
-
role="option"
|
|
84
|
-
class="listbox-option"
|
|
85
|
-
data-name=${item.title ? item.title : item.name}
|
|
86
|
-
data-event-detail=${JSON.stringify({
|
|
87
|
-
name: item.name,
|
|
88
|
-
value: item.value
|
|
89
|
-
})}
|
|
90
|
-
>
|
|
91
|
-
${item.title ? item.title : item.name}
|
|
92
|
-
</li>
|
|
93
|
-
`;
|
|
94
|
-
}
|
|
95
|
-
)}
|
|
96
|
-
</ul>
|
|
97
|
-
</li>
|
|
98
|
-
`;
|
|
99
|
-
});
|
|
100
|
-
__privateAdd(this, _renderError, () => {
|
|
101
|
-
return html`
|
|
102
|
-
<li class="error listbox-option-group">${this.content.data}</li>
|
|
103
|
-
`;
|
|
104
|
-
});
|
|
105
|
-
__privateAdd(this, _renderLoading, () => {
|
|
106
|
-
return html`
|
|
107
|
-
<li class="skeleton listbox-option-group">
|
|
108
|
-
<span class="skeleton-title"></span>
|
|
109
|
-
<ul>
|
|
110
|
-
<li class="listbox-option"></li>
|
|
111
|
-
</ul>
|
|
112
|
-
</li>
|
|
113
|
-
<li class="skeleton listbox-option-group">
|
|
114
|
-
<span class="skeleton-title"></span>
|
|
115
|
-
<ul>
|
|
116
|
-
<li class="listbox-option"></li>
|
|
117
|
-
</ul>
|
|
118
|
-
</li>
|
|
119
|
-
<li class="skeleton listbox-option-group">
|
|
120
|
-
<span class="skeleton-title"></span>
|
|
121
|
-
<ul>
|
|
122
|
-
<li class="listbox-option"></li>
|
|
123
|
-
</ul>
|
|
124
|
-
</li>
|
|
125
|
-
`;
|
|
126
|
-
});
|
|
127
|
-
__privateAdd(this, _dispatchChange, (stringifiedData) => {
|
|
128
|
-
this.emit("terra-combobox-change", { detail: JSON.parse(stringifiedData) });
|
|
129
|
-
});
|
|
130
|
-
__privateAdd(this, _handleButtonClick, () => {
|
|
131
|
-
var _a;
|
|
132
|
-
this.isExpanded = !this.isExpanded;
|
|
133
|
-
(_a = __privateGet(this, _combobox)) == null ? void 0 : _a.focus();
|
|
134
|
-
});
|
|
135
|
-
__privateAdd(this, _handleComboboxChange, (event) => {
|
|
136
|
-
var _a;
|
|
137
|
-
const target = event.target;
|
|
138
|
-
this.query = target.value;
|
|
139
|
-
if (target.value) {
|
|
140
|
-
this.isExpanded = true;
|
|
141
|
-
}
|
|
142
|
-
this.searchResults = (_a = __privateGet(this, _searchEngine)) == null ? void 0 : _a.search(target.value).map(({ item }) => item);
|
|
143
|
-
});
|
|
144
|
-
__privateAdd(this, _handleOptionClick, (event) => {
|
|
145
|
-
const path = event.composedPath();
|
|
146
|
-
const [target] = path.filter(
|
|
147
|
-
(eventTarget) => eventTarget.role === "option"
|
|
148
|
-
);
|
|
149
|
-
if (!target)
|
|
150
|
-
return;
|
|
151
|
-
__privateGet(this, _selectOption).call(this, target);
|
|
152
|
-
});
|
|
153
|
-
__privateAdd(this, _handleKeydown, (event) => {
|
|
154
|
-
var _a;
|
|
155
|
-
switch (event.key) {
|
|
156
|
-
case "ArrowDown": {
|
|
157
|
-
clearSelection(
|
|
158
|
-
__privateGet(this, _combobox),
|
|
159
|
-
__privateGet(this, _listbox)
|
|
160
|
-
);
|
|
161
|
-
if (!this.isExpanded) {
|
|
162
|
-
this.isExpanded = true;
|
|
163
|
-
}
|
|
164
|
-
if (event.altKey) {
|
|
165
|
-
break;
|
|
166
|
-
}
|
|
167
|
-
walkToOption(
|
|
168
|
-
__privateGet(this, _walker),
|
|
169
|
-
__privateGet(this, _combobox),
|
|
170
|
-
"next"
|
|
171
|
-
);
|
|
172
|
-
break;
|
|
173
|
-
}
|
|
174
|
-
case "ArrowUp": {
|
|
175
|
-
clearSelection(
|
|
176
|
-
__privateGet(this, _combobox),
|
|
177
|
-
__privateGet(this, _listbox)
|
|
178
|
-
);
|
|
179
|
-
if (!this.isExpanded) {
|
|
180
|
-
this.isExpanded = true;
|
|
181
|
-
}
|
|
182
|
-
walkToOption(
|
|
183
|
-
__privateGet(this, _walker),
|
|
184
|
-
__privateGet(this, _combobox),
|
|
185
|
-
"previous"
|
|
186
|
-
);
|
|
187
|
-
break;
|
|
188
|
-
}
|
|
189
|
-
case "Enter": {
|
|
190
|
-
__privateGet(this, _selectOption).call(this, (_a = __privateGet(this, _walker)) == null ? void 0 : _a.currentNode);
|
|
191
|
-
break;
|
|
192
|
-
}
|
|
193
|
-
case "Escape": {
|
|
194
|
-
clearSelection(
|
|
195
|
-
__privateGet(this, _combobox),
|
|
196
|
-
__privateGet(this, _listbox)
|
|
197
|
-
);
|
|
198
|
-
if (this.isExpanded) {
|
|
199
|
-
this.isExpanded = false;
|
|
200
|
-
} else {
|
|
201
|
-
this.query = _TerraCombobox.initialQuery;
|
|
202
|
-
}
|
|
203
|
-
break;
|
|
204
|
-
}
|
|
205
|
-
default: {
|
|
206
|
-
break;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
__privateAdd(this, _manageListboxVisibility, (event) => {
|
|
211
|
-
const path = event.composedPath();
|
|
212
|
-
const containedThis = path.some(
|
|
213
|
-
(eventTarget) => eventTarget.localName === _TerraCombobox.tagName
|
|
214
|
-
);
|
|
215
|
-
if (!containedThis) {
|
|
216
|
-
this.isExpanded = false;
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
__privateAdd(this, _selectOption, (option) => {
|
|
220
|
-
const { name, eventDetail } = option.dataset;
|
|
221
|
-
this.query = `${name}`;
|
|
222
|
-
__privateGet(this, _dispatchChange).call(this, eventDetail);
|
|
223
|
-
this.isExpanded = false;
|
|
224
|
-
clearSelection(
|
|
225
|
-
__privateGet(this, _combobox),
|
|
226
|
-
__privateGet(this, _listbox)
|
|
227
|
-
);
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
connectedCallback() {
|
|
231
|
-
super.connectedCallback();
|
|
232
|
-
globalThis.addEventListener("click", __privateGet(this, _manageListboxVisibility));
|
|
233
|
-
const list = this.content.type === "GroupedListItem" || this.content.type === "ListItem" ? this.content.data : [];
|
|
234
|
-
__privateSet(this, _searchEngine, new Fuse(list, {
|
|
235
|
-
//* @see https://www.fusejs.io/examples.html#nested-search
|
|
236
|
-
findAllMatches: true,
|
|
237
|
-
keys: [
|
|
238
|
-
"name",
|
|
239
|
-
// to search in the name of the GroupedListItem
|
|
240
|
-
"items.name",
|
|
241
|
-
// to search in the name of each ListItem
|
|
242
|
-
"items.title",
|
|
243
|
-
// to search in the title of each ListItem
|
|
244
|
-
"items.value"
|
|
245
|
-
// to search in the value of each ListItem
|
|
246
|
-
],
|
|
247
|
-
useExtendedSearch: true
|
|
248
|
-
}));
|
|
249
|
-
}
|
|
250
|
-
disconnectedCallback() {
|
|
251
|
-
super.disconnectedCallback();
|
|
252
|
-
globalThis.addEventListener("click", __privateGet(this, _manageListboxVisibility));
|
|
253
|
-
}
|
|
254
|
-
contentChanged(_oldValue, newValue) {
|
|
255
|
-
const list = newValue.type === "GroupedListItem" || newValue.type === "ListItem" ? newValue.data : [];
|
|
256
|
-
__privateSet(this, _searchEngine, new Fuse(list, {
|
|
257
|
-
//* @see https://www.fusejs.io/examples.html#nested-search
|
|
258
|
-
findAllMatches: true,
|
|
259
|
-
keys: [
|
|
260
|
-
"name",
|
|
261
|
-
// to search in the name of the GroupedListItem
|
|
262
|
-
"items.name",
|
|
263
|
-
// to search in the name of each ListItem
|
|
264
|
-
"items.title",
|
|
265
|
-
// to search in the title of each ListItem
|
|
266
|
-
"items.value"
|
|
267
|
-
// to search in the value of each ListItem
|
|
268
|
-
],
|
|
269
|
-
useExtendedSearch: true
|
|
270
|
-
}));
|
|
271
|
-
}
|
|
272
|
-
render() {
|
|
273
|
-
var _a;
|
|
274
|
-
return html`<search part="base" title="Search through the list.">
|
|
275
|
-
<label for="combobox" class=${this.hideLabel ? "sr-only" : "input-label"}
|
|
276
|
-
>${this.label}</label
|
|
277
|
-
>
|
|
278
|
-
<div class="search-input-group">
|
|
279
|
-
<input
|
|
280
|
-
${ref((el) => {
|
|
281
|
-
var _a2;
|
|
282
|
-
if (el) {
|
|
283
|
-
(_a2 = __privateGet(this, _combobox)) != null ? _a2 : __privateSet(this, _combobox, el);
|
|
284
|
-
}
|
|
285
|
-
})}
|
|
286
|
-
aria-autocomplete="list"
|
|
287
|
-
aria-controls="listbox"
|
|
288
|
-
aria-expanded=${this.isExpanded}
|
|
289
|
-
class="combobox"
|
|
290
|
-
id="combobox"
|
|
291
|
-
part="combobox"
|
|
292
|
-
role="combobox"
|
|
293
|
-
type="text"
|
|
294
|
-
.placeholder=${(_a = this.placeholder) != null ? _a : `${this.label}\u2026`}
|
|
295
|
-
.value=${this.query}
|
|
296
|
-
@input=${__privateGet(this, _handleComboboxChange)}
|
|
297
|
-
@keydown=${__privateGet(this, _handleKeydown)}
|
|
298
|
-
/>
|
|
299
|
-
<terra-button
|
|
300
|
-
shape="square-left"
|
|
301
|
-
aria-controls="listbox"
|
|
302
|
-
aria-expanded=${this.isExpanded}
|
|
303
|
-
aria-label="List of Searchable Items"
|
|
304
|
-
class="combobox-button"
|
|
305
|
-
id="combobox-button"
|
|
306
|
-
part="button"
|
|
307
|
-
tabindex="-1"
|
|
308
|
-
type="button"
|
|
309
|
-
@click=${__privateGet(this, _handleButtonClick)}
|
|
310
|
-
>
|
|
311
|
-
${["COMPLETE", "ERROR", "INITIAL"].includes(this.status) ? html`<svg
|
|
312
|
-
aria-hidden="true"
|
|
313
|
-
class="button-icon chevron"
|
|
314
|
-
focusable="false"
|
|
315
|
-
viewBox="0 0 400 400"
|
|
316
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
317
|
-
fill="currentColor"
|
|
318
|
-
>
|
|
319
|
-
<path
|
|
320
|
-
d="m4.2 122.2 195.1 195.1 196.5-196.6-37.9-38-157.8 157.8-156.8-156.8z"
|
|
321
|
-
></path>
|
|
322
|
-
</svg> ` : html`<svg
|
|
323
|
-
class="button-icon spinner"
|
|
324
|
-
stroke="currentColor"
|
|
325
|
-
viewBox="0 0 24 24"
|
|
326
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
327
|
-
>
|
|
328
|
-
<circle
|
|
329
|
-
cx="12"
|
|
330
|
-
cy="12"
|
|
331
|
-
r="9.5"
|
|
332
|
-
fill="none"
|
|
333
|
-
stroke-width="3"
|
|
334
|
-
></circle>
|
|
335
|
-
</svg>`}
|
|
336
|
-
</terra-button>
|
|
337
|
-
|
|
338
|
-
${this.hideHelp ? nothing : html`<p class="search-help">
|
|
339
|
-
See
|
|
340
|
-
<a
|
|
341
|
-
href="https://www.fusejs.io/examples.html#extended-search"
|
|
342
|
-
rel="noopener noreferrer"
|
|
343
|
-
target="_blank"
|
|
344
|
-
>extended search syntax
|
|
345
|
-
<svg
|
|
346
|
-
aria-hidden="true"
|
|
347
|
-
class="external-link"
|
|
348
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
349
|
-
width="14"
|
|
350
|
-
height="14"
|
|
351
|
-
viewBox="0 0 24 24"
|
|
352
|
-
>
|
|
353
|
-
<path
|
|
354
|
-
d="M19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"
|
|
355
|
-
/></svg></a
|
|
356
|
-
>.
|
|
357
|
-
</p>`}
|
|
358
|
-
</div>
|
|
359
|
-
|
|
360
|
-
<ul
|
|
361
|
-
${ref((el) => {
|
|
362
|
-
var _a2;
|
|
363
|
-
if (el) {
|
|
364
|
-
(_a2 = __privateGet(this, _listbox)) != null ? _a2 : __privateSet(this, _listbox, el);
|
|
365
|
-
__privateSet(this, _walker, document.createTreeWalker(
|
|
366
|
-
el,
|
|
367
|
-
NodeFilter.SHOW_ELEMENT,
|
|
368
|
-
(node) => {
|
|
369
|
-
return node.dataset.treeWalker === "filter_skip" ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
|
|
370
|
-
}
|
|
371
|
-
));
|
|
372
|
-
}
|
|
373
|
-
})}
|
|
374
|
-
?inert=${!this.isExpanded}
|
|
375
|
-
?open=${this.isExpanded}
|
|
376
|
-
@click=${__privateGet(this, _handleOptionClick)}
|
|
377
|
-
aria-label=${this.query ? `${this.name} Matching ${this.query}` : this.name}
|
|
378
|
-
id="listbox"
|
|
379
|
-
part="listbox"
|
|
380
|
-
role="listbox"
|
|
381
|
-
class="search-results"
|
|
382
|
-
>
|
|
383
|
-
${choose(this.status, [
|
|
384
|
-
[
|
|
385
|
-
"INITIAL",
|
|
386
|
-
() => {
|
|
387
|
-
return nothing;
|
|
388
|
-
}
|
|
389
|
-
],
|
|
390
|
-
["PENDING", __privateGet(this, _renderLoading)],
|
|
391
|
-
[
|
|
392
|
-
"COMPLETE",
|
|
393
|
-
() => {
|
|
394
|
-
return this.content.type === "ListItem" /* ListItem */ ? cache(
|
|
395
|
-
this.query === _TerraCombobox.initialQuery ? map(
|
|
396
|
-
this.content.data,
|
|
397
|
-
__privateGet(this, _renderListItem)
|
|
398
|
-
) : map(
|
|
399
|
-
this.searchResults,
|
|
400
|
-
__privateGet(this, _renderListItem)
|
|
401
|
-
)
|
|
402
|
-
) : this.content.type === "GroupedListItem" /* GroupedListItem */ ? cache(
|
|
403
|
-
this.query === _TerraCombobox.initialQuery ? map(
|
|
404
|
-
this.content.data,
|
|
405
|
-
__privateGet(this, _renderGroupListItem)
|
|
406
|
-
) : map(
|
|
407
|
-
this.searchResults,
|
|
408
|
-
__privateGet(this, _renderGroupListItem)
|
|
409
|
-
)
|
|
410
|
-
) : nothing;
|
|
411
|
-
}
|
|
412
|
-
],
|
|
413
|
-
["ERROR", __privateGet(this, _renderError)]
|
|
414
|
-
])}
|
|
415
|
-
</ul>
|
|
416
|
-
</search>`;
|
|
417
|
-
}
|
|
418
|
-
};
|
|
419
|
-
_combobox = new WeakMap();
|
|
420
|
-
_listbox = new WeakMap();
|
|
421
|
-
_searchEngine = new WeakMap();
|
|
422
|
-
_walker = new WeakMap();
|
|
423
|
-
_renderListItem = new WeakMap();
|
|
424
|
-
_renderGroupListItem = new WeakMap();
|
|
425
|
-
_renderError = new WeakMap();
|
|
426
|
-
_renderLoading = new WeakMap();
|
|
427
|
-
_dispatchChange = new WeakMap();
|
|
428
|
-
_handleButtonClick = new WeakMap();
|
|
429
|
-
_handleComboboxChange = new WeakMap();
|
|
430
|
-
_handleOptionClick = new WeakMap();
|
|
431
|
-
_handleKeydown = new WeakMap();
|
|
432
|
-
_manageListboxVisibility = new WeakMap();
|
|
433
|
-
_selectOption = new WeakMap();
|
|
434
|
-
_TerraCombobox.styles = [component_styles_default, combobox_styles_default];
|
|
435
|
-
_TerraCombobox.shadowRootOptions = __spreadProps(__spreadValues({}, LitElement.shadowRootOptions), {
|
|
436
|
-
delegatesFocus: true
|
|
437
|
-
});
|
|
438
|
-
_TerraCombobox.tagName = "terra-combobox";
|
|
439
|
-
_TerraCombobox.initialQuery = "";
|
|
440
|
-
__decorateClass([
|
|
441
|
-
property()
|
|
442
|
-
], _TerraCombobox.prototype, "label", 2);
|
|
443
|
-
__decorateClass([
|
|
444
|
-
property()
|
|
445
|
-
], _TerraCombobox.prototype, "name", 2);
|
|
446
|
-
__decorateClass([
|
|
447
|
-
property()
|
|
448
|
-
], _TerraCombobox.prototype, "placeholder", 2);
|
|
449
|
-
__decorateClass([
|
|
450
|
-
property({ attribute: "hide-help", type: Boolean })
|
|
451
|
-
], _TerraCombobox.prototype, "hideHelp", 2);
|
|
452
|
-
__decorateClass([
|
|
453
|
-
property({ attribute: "hide-label", type: Boolean })
|
|
454
|
-
], _TerraCombobox.prototype, "hideLabel", 2);
|
|
455
|
-
__decorateClass([
|
|
456
|
-
property()
|
|
457
|
-
], _TerraCombobox.prototype, "status", 2);
|
|
458
|
-
__decorateClass([
|
|
459
|
-
property({ type: Object })
|
|
460
|
-
], _TerraCombobox.prototype, "content", 2);
|
|
461
|
-
__decorateClass([
|
|
462
|
-
state()
|
|
463
|
-
], _TerraCombobox.prototype, "isExpanded", 2);
|
|
464
|
-
__decorateClass([
|
|
465
|
-
state()
|
|
466
|
-
], _TerraCombobox.prototype, "query", 2);
|
|
467
|
-
__decorateClass([
|
|
468
|
-
state()
|
|
469
|
-
], _TerraCombobox.prototype, "searchResults", 2);
|
|
470
|
-
__decorateClass([
|
|
471
|
-
watch("content")
|
|
472
|
-
], _TerraCombobox.prototype, "contentChanged", 1);
|
|
473
|
-
var TerraCombobox = _TerraCombobox;
|
|
474
|
-
|
|
475
|
-
export {
|
|
476
|
-
TerraCombobox
|
|
477
|
-
};
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isValidDate
|
|
3
|
-
} from "./chunk.OIDMX5LU.js";
|
|
4
|
-
import {
|
|
5
|
-
date_range_slider_styles_default
|
|
6
|
-
} from "./chunk.62YHGVQN.js";
|
|
7
|
-
import {
|
|
8
|
-
mergeTooltips
|
|
9
|
-
} from "./chunk.KW4TJM4C.js";
|
|
10
|
-
import {
|
|
11
|
-
watch
|
|
12
|
-
} from "./chunk.SK7IZCKP.js";
|
|
13
|
-
import {
|
|
14
|
-
TerraElement,
|
|
15
|
-
component_styles_default
|
|
16
|
-
} from "./chunk.7QKG7IRI.js";
|
|
17
|
-
import {
|
|
18
|
-
__decorateClass
|
|
19
|
-
} from "./chunk.TVFCHGU3.js";
|
|
20
|
-
|
|
21
|
-
// src/components/date-range-slider/date-range-slider.component.ts
|
|
22
|
-
import { property, query } from "lit/decorators.js";
|
|
23
|
-
import { html } from "lit";
|
|
24
|
-
import noUiSlider, {
|
|
25
|
-
PipsMode
|
|
26
|
-
} from "nouislider";
|
|
27
|
-
import { format } from "date-fns";
|
|
28
|
-
var TerraDateRangeSlider = class extends TerraElement {
|
|
29
|
-
constructor() {
|
|
30
|
-
super(...arguments);
|
|
31
|
-
this.timeScale = "daily";
|
|
32
|
-
this.disabled = false;
|
|
33
|
-
this.hasPips = true;
|
|
34
|
-
}
|
|
35
|
-
updateSlider() {
|
|
36
|
-
this.renderSlider();
|
|
37
|
-
}
|
|
38
|
-
disabledChanged() {
|
|
39
|
-
var _a, _b, _c, _d;
|
|
40
|
-
this.disabled ? (_b = (_a = this.slider) == null ? void 0 : _a.noUiSlider) == null ? void 0 : _b.disable() : (_d = (_c = this.slider) == null ? void 0 : _c.noUiSlider) == null ? void 0 : _d.enable();
|
|
41
|
-
}
|
|
42
|
-
firstUpdated() {
|
|
43
|
-
this.renderSlider();
|
|
44
|
-
}
|
|
45
|
-
renderSlider() {
|
|
46
|
-
var _a;
|
|
47
|
-
if (!this.slider) {
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
(_a = this.slider.noUiSlider) == null ? void 0 : _a.destroy();
|
|
51
|
-
if (!isValidDate(this.minDate) || !isValidDate(this.maxDate)) {
|
|
52
|
-
this.renderEmptySlider();
|
|
53
|
-
this.minDate && !isValidDate(this.minDate) && console.error("Invalid min date provided");
|
|
54
|
-
this.maxDate && !isValidDate(this.maxDate) && console.error("Invalid max date provided");
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
const minDate = new Date(this.minDate);
|
|
58
|
-
const maxDate = new Date(this.maxDate);
|
|
59
|
-
const startDate = new Date(
|
|
60
|
-
isValidDate(this.startDate) ? this.startDate : this.minDate
|
|
61
|
-
);
|
|
62
|
-
const endDate = new Date(
|
|
63
|
-
isValidDate(this.endDate) ? this.endDate : this.maxDate
|
|
64
|
-
);
|
|
65
|
-
minDate.setUTCHours(0, 0, 0, 0);
|
|
66
|
-
startDate.setUTCHours(0, 0, 0, 0);
|
|
67
|
-
maxDate.setUTCHours(23, 59, 59, 999);
|
|
68
|
-
endDate.setUTCHours(23, 59, 59, 999);
|
|
69
|
-
const sliderOptions = {
|
|
70
|
-
range: {
|
|
71
|
-
// convert to milliseconds to define a range
|
|
72
|
-
min: minDate.getTime(),
|
|
73
|
-
max: maxDate.getTime()
|
|
74
|
-
},
|
|
75
|
-
behaviour: "drag",
|
|
76
|
-
step: this._getStep(),
|
|
77
|
-
start: [startDate.getTime(), endDate.getTime()],
|
|
78
|
-
// defaults to either the given start/end dates or the full date range (min/max date)
|
|
79
|
-
tooltips: [true, true],
|
|
80
|
-
// for each handle, choose whether to show a tooltip
|
|
81
|
-
connect: true,
|
|
82
|
-
// whether to connect the handles with a colorized bar
|
|
83
|
-
pips: {
|
|
84
|
-
mode: PipsMode.Range,
|
|
85
|
-
density: -1,
|
|
86
|
-
format: this._getSliderFormatter()
|
|
87
|
-
},
|
|
88
|
-
format: this._getSliderFormatter()
|
|
89
|
-
};
|
|
90
|
-
noUiSlider.create(this.slider, sliderOptions);
|
|
91
|
-
mergeTooltips(this.slider);
|
|
92
|
-
this.slider.noUiSlider.on("change", (values) => {
|
|
93
|
-
this.emit("terra-date-range-change", {
|
|
94
|
-
detail: {
|
|
95
|
-
startDate: this._formatDate(values[0]),
|
|
96
|
-
endDate: this._formatDate(values[1])
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
renderEmptySlider() {
|
|
102
|
-
noUiSlider.create(this.slider, {
|
|
103
|
-
start: [0, 0],
|
|
104
|
-
range: {
|
|
105
|
-
min: 0,
|
|
106
|
-
max: 0
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
_getStep() {
|
|
111
|
-
const oneMinuteMillis = 60 * 1e3;
|
|
112
|
-
const oneHourMillis = 60 * oneMinuteMillis;
|
|
113
|
-
const oneDayMillis = 24 * oneHourMillis;
|
|
114
|
-
switch (this.timeScale) {
|
|
115
|
-
case "half-hourly":
|
|
116
|
-
return 30 * oneMinuteMillis;
|
|
117
|
-
case "hourly":
|
|
118
|
-
return oneHourMillis;
|
|
119
|
-
default:
|
|
120
|
-
return oneDayMillis;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
_getSliderFormatter() {
|
|
124
|
-
return {
|
|
125
|
-
to: (value) => {
|
|
126
|
-
return this._formatDate(value);
|
|
127
|
-
},
|
|
128
|
-
from: (value) => {
|
|
129
|
-
return Number(value);
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
_formatDate(date) {
|
|
134
|
-
const dateFormat = this.timeScale === "daily" ? "yyyy-MM-dd" : "yyyy-MM-dd HH:mm";
|
|
135
|
-
return format(new Date(date).toUTCString(), dateFormat);
|
|
136
|
-
}
|
|
137
|
-
render() {
|
|
138
|
-
const containerClass = "container" + this.hasPips ? " hasPips" : "";
|
|
139
|
-
return html`
|
|
140
|
-
<div class="${containerClass}">
|
|
141
|
-
<div part="slider"></div>
|
|
142
|
-
</div>
|
|
143
|
-
`;
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
TerraDateRangeSlider.styles = [component_styles_default, date_range_slider_styles_default];
|
|
147
|
-
__decorateClass([
|
|
148
|
-
query('[part~="slider"]')
|
|
149
|
-
], TerraDateRangeSlider.prototype, "slider", 2);
|
|
150
|
-
__decorateClass([
|
|
151
|
-
property({ attribute: "time-scale" })
|
|
152
|
-
], TerraDateRangeSlider.prototype, "timeScale", 2);
|
|
153
|
-
__decorateClass([
|
|
154
|
-
property({ attribute: "min-date" })
|
|
155
|
-
], TerraDateRangeSlider.prototype, "minDate", 2);
|
|
156
|
-
__decorateClass([
|
|
157
|
-
property({ attribute: "max-date" })
|
|
158
|
-
], TerraDateRangeSlider.prototype, "maxDate", 2);
|
|
159
|
-
__decorateClass([
|
|
160
|
-
property({ attribute: "start-date" })
|
|
161
|
-
], TerraDateRangeSlider.prototype, "startDate", 2);
|
|
162
|
-
__decorateClass([
|
|
163
|
-
property({ attribute: "end-date" })
|
|
164
|
-
], TerraDateRangeSlider.prototype, "endDate", 2);
|
|
165
|
-
__decorateClass([
|
|
166
|
-
property({ type: Boolean, reflect: true })
|
|
167
|
-
], TerraDateRangeSlider.prototype, "disabled", 2);
|
|
168
|
-
__decorateClass([
|
|
169
|
-
property({ type: Boolean, reflect: true, attribute: "has-pips" })
|
|
170
|
-
], TerraDateRangeSlider.prototype, "hasPips", 2);
|
|
171
|
-
__decorateClass([
|
|
172
|
-
watch(["startDate", "endDate", "minDate", "maxDate"])
|
|
173
|
-
], TerraDateRangeSlider.prototype, "updateSlider", 1);
|
|
174
|
-
__decorateClass([
|
|
175
|
-
watch("disabled")
|
|
176
|
-
], TerraDateRangeSlider.prototype, "disabledChanged", 1);
|
|
177
|
-
|
|
178
|
-
export {
|
|
179
|
-
TerraDateRangeSlider
|
|
180
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getRandomIntInclusive
|
|
3
|
-
} from "./chunk.7PAVW6KC.js";
|
|
4
|
-
import {
|
|
5
|
-
skeleton_styles_default
|
|
6
|
-
} from "./chunk.FBOXM56P.js";
|
|
7
|
-
import {
|
|
8
|
-
TerraElement,
|
|
9
|
-
component_styles_default
|
|
10
|
-
} from "./chunk.7QKG7IRI.js";
|
|
11
|
-
import {
|
|
12
|
-
__decorateClass
|
|
13
|
-
} from "./chunk.TVFCHGU3.js";
|
|
14
|
-
|
|
15
|
-
// src/components/skeleton/skeleton.component.ts
|
|
16
|
-
import { html } from "lit";
|
|
17
|
-
import { property } from "lit/decorators.js";
|
|
18
|
-
import { SlSkeleton } from "@shoelace-style/shoelace";
|
|
19
|
-
var TerraSkeleton = class extends TerraElement {
|
|
20
|
-
constructor() {
|
|
21
|
-
super(...arguments);
|
|
22
|
-
this.rows = 1;
|
|
23
|
-
this.effect = "pulse";
|
|
24
|
-
this.variableWidths = true;
|
|
25
|
-
}
|
|
26
|
-
render() {
|
|
27
|
-
return html`
|
|
28
|
-
${new Array(parseInt(this.rows.toString())).fill(0).map(
|
|
29
|
-
() => html`<sl-skeleton
|
|
30
|
-
effect=${this.effect}
|
|
31
|
-
style=${this.variableWidths ? `width: ${getRandomIntInclusive(60, 100)}%` : ""}
|
|
32
|
-
></sl-skeleton>`
|
|
33
|
-
)}
|
|
34
|
-
`;
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
TerraSkeleton.styles = [component_styles_default, skeleton_styles_default];
|
|
38
|
-
TerraSkeleton.dependencies = {
|
|
39
|
-
"sl-skeleton": SlSkeleton
|
|
40
|
-
};
|
|
41
|
-
__decorateClass([
|
|
42
|
-
property()
|
|
43
|
-
], TerraSkeleton.prototype, "rows", 2);
|
|
44
|
-
__decorateClass([
|
|
45
|
-
property()
|
|
46
|
-
], TerraSkeleton.prototype, "effect", 2);
|
|
47
|
-
__decorateClass([
|
|
48
|
-
property({ type: Boolean, reflect: true })
|
|
49
|
-
], TerraSkeleton.prototype, "variableWidths", 2);
|
|
50
|
-
|
|
51
|
-
export {
|
|
52
|
-
TerraSkeleton
|
|
53
|
-
};
|