@nasa-terra/components 0.0.1 → 0.0.2
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.4YOL6PQR.js → chunk.2LH52WLN.js} +5 -5
- package/cdn/chunks/{chunk.RBKBAQOH.js → chunk.2WF7EATT.js} +3 -3
- package/cdn/chunks/{chunk.ZQ5WJYY5.js → chunk.3NOH36JE.js} +1 -1
- package/{dist/chunks/chunk.IEU4MULT.js → cdn/chunks/chunk.4OFE6FHL.js} +1 -1
- package/cdn/chunks/{chunk.FZT3BVW7.js → chunk.5NSDKQFA.js} +1 -1
- package/cdn/chunks/{chunk.IQITDFID.js → chunk.5OVZEQPW.js} +1 -1
- package/cdn/chunks/{chunk.JV6B7CXO.js → chunk.5UBB7KZQ.js} +1 -1
- package/cdn/chunks/{chunk.JCZW2OWI.js → chunk.76UFIPPH.js} +1 -1
- package/cdn/chunks/{chunk.MIAPAPCI.js → chunk.7UVCVDMD.js} +1 -1
- package/cdn/chunks/{chunk.BINGLTII.js → chunk.BHVFJEIU.js} +1 -1
- package/cdn/chunks/{chunk.FXIUS5TR.js → chunk.BLFAG25A.js} +1 -1
- package/cdn/chunks/{chunk.QQ33BJLG.js → chunk.C3FZSGJM.js} +1 -1
- package/cdn/chunks/{chunk.WNRL2JWN.js → chunk.CO6OXP3P.js} +1 -1
- package/cdn/chunks/{chunk.UQVPFKN3.js → chunk.CSZAFBCJ.js} +7 -7
- package/cdn/chunks/{chunk.RVJP24KU.js → chunk.EGBZ7Z36.js} +1 -1
- package/cdn/chunks/{chunk.NU4LRV7F.js → chunk.EH44OY6V.js} +1 -1
- package/cdn/chunks/{chunk.2B4YBQ5O.js → chunk.FYB4LVNE.js} +4 -4
- package/cdn/chunks/{chunk.VEUDIPUW.js → chunk.H4SLY4KN.js} +1 -1
- package/cdn/chunks/{chunk.KVY2Y3KE.js → chunk.HMECFSJ3.js} +1 -1
- package/cdn/chunks/{chunk.TV2NZLRC.js → chunk.II3GR7YQ.js} +1 -1
- package/{dist/chunks/chunk.7DEY3B3N.js → cdn/chunks/chunk.KCXQJJZ4.js} +1 -1
- package/cdn/chunks/{chunk.DQGFAA4K.js → chunk.KFYWXDIT.js} +1 -1
- package/cdn/chunks/{chunk.M25XJ2VR.js → chunk.KQ6GR2XZ.js} +8 -8
- package/{dist/chunks/chunk.NZIGCRLS.js → cdn/chunks/chunk.KZIVL4LN.js} +1 -1
- package/cdn/chunks/{chunk.2O76GCUZ.js → chunk.MOL3RELR.js} +1 -1
- package/cdn/chunks/{chunk.MQ5JNQCQ.js → chunk.ORXIH4AJ.js} +1 -1
- package/cdn/chunks/{chunk.GCKJPPGU.js → chunk.P4LXCHCY.js} +1 -1
- package/cdn/chunks/{chunk.J576Q62R.js → chunk.PUWFHEBP.js} +1 -1
- package/cdn/chunks/{chunk.KXLY6BVH.js → chunk.PYRUETLC.js} +4 -4
- package/cdn/chunks/{chunk.ITX3RB2M.js → chunk.RDW2UZ5N.js} +1 -1
- package/{dist/chunks/chunk.IP3XWLQI.js → cdn/chunks/chunk.RS4CISKV.js} +1 -1
- package/cdn/chunks/{chunk.MOJMTJF6.js → chunk.S6SLZPVX.js} +1 -1
- package/cdn/chunks/{chunk.IO4MLLEG.js → chunk.SQUNJ4EJ.js} +1 -1
- package/cdn/chunks/{chunk.MXAZ646L.js → chunk.SXUZHG2G.js} +1 -1
- package/cdn/chunks/{chunk.R3AE5AQ5.js → chunk.VHMYUAU5.js} +1 -1
- package/cdn/components/button/button.component.js +2 -2
- package/cdn/components/button/button.js +3 -3
- 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-range-slider/date-range-slider.component.js +3 -3
- package/cdn/components/date-range-slider/date-range-slider.js +4 -4
- 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/map/map.component.js +4 -4
- package/cdn/components/map/map.js +5 -5
- package/cdn/components/plot/plot.component.js +2 -2
- package/cdn/components/plot/plot.js +3 -3
- package/cdn/components/spatial-picker/spatial-picker.component.js +5 -5
- package/cdn/components/spatial-picker/spatial-picker.js +6 -6
- package/cdn/components/time-series/time-series.component.js +23 -23
- package/cdn/components/time-series/time-series.controller.js +1 -1
- package/cdn/components/time-series/time-series.js +24 -24
- package/cdn/components/variable-combobox/variable-combobox.component.js +8 -8
- package/cdn/components/variable-combobox/variable-combobox.js +9 -9
- package/cdn/custom-elements.json +154 -154
- package/cdn/react/button/index.js +3 -3
- package/cdn/react/chip/index.js +3 -3
- package/cdn/react/combobox/index.js +4 -4
- package/cdn/react/date-range-slider/index.js +4 -4
- package/cdn/react/icon/index.js +5 -5
- package/cdn/react/index.d.ts +2 -2
- package/cdn/react/index.js +45 -45
- package/cdn/react/loader/index.js +3 -3
- package/cdn/react/map/index.js +5 -5
- package/cdn/react/plot/index.js +3 -3
- package/cdn/react/spatial-picker/index.js +6 -6
- package/cdn/react/time-series/index.js +24 -24
- package/cdn/react/variable-combobox/index.js +9 -9
- package/cdn/terra-ui-components.js +43 -43
- package/cdn/types/vue/index.d.ts +16 -16
- package/cdn/utilities/icon-library.js +2 -2
- package/cdn/vscode.html-custom-data.json +16 -16
- package/cdn/web-types.json +39 -39
- package/{cdn/chunks/chunk.36AVAQOO.js → dist/chunks/chunk.26XMYCND.js} +3 -3
- package/{cdn/chunks/chunk.7DEY3B3N.js → dist/chunks/chunk.34BDCGAS.js} +1 -1
- package/{cdn/chunks/chunk.JOVDYQHE.js → dist/chunks/chunk.356TZEPJ.js} +1 -1
- package/{cdn/chunks/chunk.KH54YRZ3.js → dist/chunks/chunk.37CMTFD4.js} +1 -1
- package/dist/chunks/{chunk.EMISRECR.js → chunk.37V2INM4.js} +5 -5
- package/dist/chunks/{chunk.5B33QFBB.js → chunk.3OTXIELM.js} +1 -1
- package/{cdn/chunks/chunk.27YQ2AOA.js → dist/chunks/chunk.4WNMOJSX.js} +6 -6
- package/{cdn/chunks/chunk.GHCQCYO6.js → dist/chunks/chunk.5LBNOLAY.js} +1 -1
- package/dist/chunks/{chunk.PGNCNTOA.js → chunk.6G6MC7ET.js} +1 -1
- package/{cdn/chunks/chunk.77L4US7V.js → dist/chunks/chunk.6HBNUONX.js} +1 -1
- package/{cdn/chunks/chunk.P7W2ODWK.js → dist/chunks/chunk.6HHKJO37.js} +1 -1
- package/{cdn/chunks/chunk.MKXJDRVT.js → dist/chunks/chunk.ACNC5AZO.js} +1 -1
- package/{cdn/chunks/chunk.OLCGKQR3.js → dist/chunks/chunk.D44WRZDJ.js} +1 -1
- package/dist/chunks/{chunk.OOUCODFZ.js → chunk.DKCU7YEZ.js} +1 -1
- package/{cdn/chunks/chunk.SMRM4VEQ.js → dist/chunks/chunk.EPMXIUY7.js} +1 -1
- package/dist/chunks/{chunk.ORZO3BCW.js → chunk.HBEQ6SPT.js} +1 -1
- package/dist/chunks/{chunk.BB7N2ZYB.js → chunk.HJ4OGF6V.js} +1 -1
- package/dist/chunks/{chunk.P25SJ6YA.js → chunk.K3PPW47B.js} +1 -1
- package/dist/chunks/{chunk.RDOXOIYG.js → chunk.KWCEJCNP.js} +1 -1
- package/dist/chunks/{chunk.NOEGCTIS.js → chunk.LAFN7QOI.js} +7 -7
- package/dist/chunks/{chunk.MOJMTJF6.js → chunk.LMUMRQLT.js} +1 -1
- package/{cdn/chunks/chunk.YOR2OZZR.js → dist/chunks/chunk.LXV5KI76.js} +1 -1
- package/{cdn/chunks/chunk.ZPPR6CPT.js → dist/chunks/chunk.NA6RDAQK.js} +1 -1
- package/dist/chunks/{chunk.FXIUS5TR.js → chunk.R32FZJSC.js} +1 -1
- package/dist/chunks/{chunk.EFAXKQZX.js → chunk.RCELHBSG.js} +1 -1
- package/{cdn/chunks/chunk.ZAHTEXVC.js → dist/chunks/chunk.RHF5LAQQ.js} +1 -1
- package/{cdn/chunks/chunk.UJBBUYTN.js → dist/chunks/chunk.TEY3I3LS.js} +1 -1
- package/dist/chunks/{chunk.2I657ASB.js → chunk.TFKJWQKC.js} +1 -1
- package/dist/chunks/{chunk.FGILL5W6.js → chunk.UTUM2YTN.js} +1 -1
- package/dist/chunks/{chunk.65A3A43G.js → chunk.WCD47X2N.js} +1 -1
- package/{cdn/chunks/chunk.Y3WAKQQ3.js → dist/chunks/chunk.WHJHZJ6L.js} +2 -2
- package/{cdn/chunks/chunk.UE4FYVUH.js → dist/chunks/chunk.XK7GWNRK.js} +1 -1
- package/dist/chunks/{chunk.QSCELHEQ.js → chunk.XPQYTQXW.js} +1 -1
- package/dist/chunks/{chunk.FZT3BVW7.js → chunk.ZI3RW2HX.js} +1 -1
- package/{cdn/chunks/chunk.SJADWOCY.js → dist/chunks/chunk.ZUWKLZ5N.js} +1 -1
- package/dist/components/button/button.component.js +2 -2
- package/dist/components/button/button.js +3 -3
- 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/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/map/map.component.js +4 -4
- 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/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.js +19 -19
- package/dist/components/time-series/time-series.controller.js +1 -1
- package/dist/components/time-series/time-series.js +20 -20
- package/dist/components/variable-combobox/variable-combobox.component.js +8 -8
- package/dist/components/variable-combobox/variable-combobox.js +9 -9
- package/dist/custom-elements.json +154 -154
- package/dist/react/button/index.js +3 -3
- 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/icon/index.js +5 -5
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +43 -43
- package/dist/react/loader/index.js +3 -3
- package/dist/react/map/index.js +5 -5
- package/dist/react/plot/index.js +3 -3
- package/dist/react/spatial-picker/index.js +6 -6
- package/dist/react/time-series/index.js +20 -20
- package/dist/react/variable-combobox/index.js +9 -9
- package/dist/terra-ui-components.js +41 -41
- package/dist/types/vue/index.d.ts +16 -16
- package/dist/utilities/icon-library.js +2 -2
- package/dist/vscode.html-custom-data.json +16 -16
- package/dist/web-types.json +39 -39
- package/package.json +1 -1
- package/cdn/chunks/chunk.2I657ASB.js +0 -85
- package/cdn/chunks/chunk.2J6CFV4K.js +0 -11
- package/cdn/chunks/chunk.2V4XFMTB.js +0 -7
- package/cdn/chunks/chunk.3ZGFXEAJ.js +0 -273
- package/cdn/chunks/chunk.7VUSSQRI.js +0 -20
- package/cdn/chunks/chunk.AAWOHDFX.js +0 -259
- package/cdn/chunks/chunk.AEIZVWLR.js +0 -24
- package/cdn/chunks/chunk.BB7N2ZYB.js +0 -21
- package/cdn/chunks/chunk.BLNUBLUS.js +0 -289
- package/cdn/chunks/chunk.D33ZL7ZQ.js +0 -21
- package/cdn/chunks/chunk.DL3FIOYA.js +0 -21
- package/cdn/chunks/chunk.EFAXKQZX.js +0 -11
- package/cdn/chunks/chunk.EMISRECR.js +0 -214
- package/cdn/chunks/chunk.FGILL5W6.js +0 -118
- package/cdn/chunks/chunk.I2NEFB34.js +0 -99
- package/cdn/chunks/chunk.I32QCWMN.js +0 -21
- package/cdn/chunks/chunk.IBEKZVOY.js +0 -80
- package/cdn/chunks/chunk.IP3XWLQI.js +0 -11
- package/cdn/chunks/chunk.JFU3ZCDL.js +0 -359
- package/cdn/chunks/chunk.LELNKRPW.js +0 -685
- package/cdn/chunks/chunk.MDM7S6E6.js +0 -21
- package/cdn/chunks/chunk.MWHQHPUM.js +0 -54
- package/cdn/chunks/chunk.N2DS7NLI.js +0 -102
- package/cdn/chunks/chunk.NYBJ252W.js +0 -318
- package/cdn/chunks/chunk.OIDMX5LU.js +0 -10
- package/cdn/chunks/chunk.OOUCODFZ.js +0 -179
- package/cdn/chunks/chunk.OQE2USZJ.js +0 -41
- package/cdn/chunks/chunk.OU4UPMYR.js +0 -330
- package/cdn/chunks/chunk.P25SJ6YA.js +0 -478
- package/cdn/chunks/chunk.PJXIJK2G.js +0 -102
- package/cdn/chunks/chunk.RDOXOIYG.js +0 -11
- package/cdn/chunks/chunk.RYPAZDXE.js +0 -61
- package/cdn/chunks/chunk.SCU5LFS3.js +0 -325
- package/cdn/chunks/chunk.SHS42OAD.js +0 -620
- package/cdn/chunks/chunk.SQMSSGQI.js +0 -11
- package/cdn/chunks/chunk.T322FDKI.js +0 -300
- package/cdn/chunks/chunk.UU46CLE7.js +0 -120
- package/cdn/chunks/chunk.WGFD2LHA.js +0 -83
- package/cdn/chunks/chunk.WL747XGE.js +0 -194
- package/cdn/chunks/chunk.ZCNMYQP2.js +0 -113
- package/cdn/chunks/chunk.ZGJAUXFV.js +0 -39
- package/cdn/chunks/chunk.ZK7QVWBI.js +0 -37
- package/cdn/chunks/chunk.ZVKNJQPF.js +0 -25
- package/dist/chunks/chunk.27YQ2AOA.js +0 -251
- package/dist/chunks/chunk.2O76GCUZ.js +0 -21
- package/dist/chunks/chunk.2WZAYHEX.js +0 -214
- package/dist/chunks/chunk.356SSUTI.js +0 -11
- package/dist/chunks/chunk.36AVAQOO.js +0 -404
- package/dist/chunks/chunk.3D66L46K.js +0 -11
- package/dist/chunks/chunk.3LUNFNDR.js +0 -118
- package/dist/chunks/chunk.4MN2BLJS.js +0 -21
- package/dist/chunks/chunk.D6FJH7WA.js +0 -21
- package/dist/chunks/chunk.DDPOISEU.js +0 -179
- package/dist/chunks/chunk.EBBV6NVD.js +0 -11
- package/dist/chunks/chunk.GHCQCYO6.js +0 -179
- package/dist/chunks/chunk.HO5CZIK5.js +0 -11
- package/dist/chunks/chunk.I32QCWMN.js +0 -21
- package/dist/chunks/chunk.IO4MLLEG.js +0 -21
- package/dist/chunks/chunk.J4B6HPXD.js +0 -11
- package/dist/chunks/chunk.J576Q62R.js +0 -11
- package/dist/chunks/chunk.JCZW2OWI.js +0 -11
- package/dist/chunks/chunk.K2HRGRYE.js +0 -11
- package/dist/chunks/chunk.KXNDHJXA.js +0 -404
- package/dist/chunks/chunk.MIAPAPCI.js +0 -21
- package/dist/chunks/chunk.MXAZ646L.js +0 -11
- package/dist/chunks/chunk.NNLAIN52.js +0 -11
- package/dist/chunks/chunk.NO35M7LF.js +0 -21
- package/dist/chunks/chunk.NU4LRV7F.js +0 -21
- package/dist/chunks/chunk.OIGE7CMM.js +0 -11
- package/dist/chunks/chunk.P4QMMCAR.js +0 -24
- package/dist/chunks/chunk.PJXIJK2G.js +0 -102
- package/dist/chunks/chunk.Q7F3GGVA.js +0 -251
- package/dist/chunks/chunk.QQ33BJLG.js +0 -11
- package/dist/chunks/chunk.SBTZE5QZ.js +0 -21
- package/dist/chunks/chunk.SCU5LFS3.js +0 -325
- package/dist/chunks/chunk.SJADWOCY.js +0 -11
- package/dist/chunks/chunk.SMRM4VEQ.js +0 -11
- package/dist/chunks/chunk.T7MOUOBT.js +0 -11
- package/dist/chunks/chunk.UE4FYVUH.js +0 -25
- package/dist/chunks/chunk.UJBBUYTN.js +0 -11
- package/dist/chunks/chunk.WGFD2LHA.js +0 -83
- package/dist/chunks/chunk.WL747XGE.js +0 -194
- package/dist/chunks/chunk.WNRL2JWN.js +0 -21
- package/dist/chunks/chunk.XKDGF53W.js +0 -21
- package/dist/chunks/chunk.XLYZ6HY4.js +0 -179
- package/dist/chunks/chunk.XXV47QL2.js +0 -21
- package/dist/chunks/chunk.Y3WAKQQ3.js +0 -179
- package/dist/chunks/chunk.Y5CHSR6B.js +0 -21
- package/dist/chunks/chunk.YDJ7Z7YW.js +0 -478
- package/dist/chunks/chunk.YDMA4OA3.js +0 -11
- package/dist/chunks/chunk.Z2WXDYZC.js +0 -85
- package/{dist/chunks/chunk.MDRUDBRH.js → cdn/chunks/chunk.7DOMZGX7.js} +3 -3
- package/{cdn/chunks/chunk.MDRUDBRH.js → dist/chunks/chunk.7DOMZGX7.js} +3 -3
|
@@ -1,404 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
variable_combobox_styles_default
|
|
3
|
-
} from "./chunk.T322FDKI.js";
|
|
4
|
-
import {
|
|
5
|
-
FetchController
|
|
6
|
-
} from "./chunk.MWHQHPUM.js";
|
|
7
|
-
import {
|
|
8
|
-
clearSelection,
|
|
9
|
-
groupDocsByCollection,
|
|
10
|
-
removeEmptyCollections,
|
|
11
|
-
renderSearchResult,
|
|
12
|
-
walkToOption
|
|
13
|
-
} from "./chunk.UU46CLE7.js";
|
|
14
|
-
import {
|
|
15
|
-
icon_default
|
|
16
|
-
} from "./chunk.HO5CZIK5.js";
|
|
17
|
-
import {
|
|
18
|
-
button_default
|
|
19
|
-
} from "./chunk.OIGE7CMM.js";
|
|
20
|
-
import {
|
|
21
|
-
watch
|
|
22
|
-
} from "./chunk.ZK7QVWBI.js";
|
|
23
|
-
import {
|
|
24
|
-
TerraElement,
|
|
25
|
-
component_styles_default
|
|
26
|
-
} from "./chunk.ORZO3BCW.js";
|
|
27
|
-
import {
|
|
28
|
-
__decorateClass,
|
|
29
|
-
__privateAdd,
|
|
30
|
-
__privateGet,
|
|
31
|
-
__privateSet,
|
|
32
|
-
__spreadProps,
|
|
33
|
-
__spreadValues
|
|
34
|
-
} from "./chunk.RYPAZDXE.js";
|
|
35
|
-
|
|
36
|
-
// src/components/variable-combobox/variable-combobox.component.ts
|
|
37
|
-
import Fuse from "fuse.js";
|
|
38
|
-
import { LitElement, html, nothing } from "lit";
|
|
39
|
-
import { property, state } from "lit/decorators.js";
|
|
40
|
-
import { cache } from "lit/directives/cache.js";
|
|
41
|
-
import { map } from "lit/directives/map.js";
|
|
42
|
-
import { ref } from "lit/directives/ref.js";
|
|
43
|
-
var _combobox, _fetchController, _searchableList, _listbox, _searchEngine, _walker, _dispatchChange, _handleButtonClick, _handleComboboxChange, _handleOptionClick, _handleKeydown, _manageListboxVisibility, _selectOption;
|
|
44
|
-
var _TerraVariableCombobox = class _TerraVariableCombobox extends TerraElement {
|
|
45
|
-
constructor() {
|
|
46
|
-
super(...arguments);
|
|
47
|
-
__privateAdd(this, _combobox, null);
|
|
48
|
-
__privateAdd(this, _fetchController, new FetchController(this));
|
|
49
|
-
__privateAdd(this, _searchableList, []);
|
|
50
|
-
__privateAdd(this, _listbox, null);
|
|
51
|
-
__privateAdd(this, _searchEngine, null);
|
|
52
|
-
__privateAdd(this, _walker, null);
|
|
53
|
-
this.label = "Search for Variables";
|
|
54
|
-
this.hideHelp = false;
|
|
55
|
-
this.hideLabel = false;
|
|
56
|
-
this.isExpanded = false;
|
|
57
|
-
this.query = _TerraVariableCombobox.initialQuery;
|
|
58
|
-
this.searchResults = [];
|
|
59
|
-
__privateAdd(this, _dispatchChange, (stringifiedData) => {
|
|
60
|
-
this.emit("terra-combobox-change", { detail: JSON.parse(stringifiedData) });
|
|
61
|
-
});
|
|
62
|
-
__privateAdd(this, _handleButtonClick, () => {
|
|
63
|
-
var _a;
|
|
64
|
-
this.isExpanded = !this.isExpanded;
|
|
65
|
-
(_a = __privateGet(this, _combobox)) == null ? void 0 : _a.focus();
|
|
66
|
-
});
|
|
67
|
-
__privateAdd(this, _handleComboboxChange, (event) => {
|
|
68
|
-
var _a;
|
|
69
|
-
const target = event.target;
|
|
70
|
-
this.query = target.value;
|
|
71
|
-
if (target.value) {
|
|
72
|
-
this.isExpanded = true;
|
|
73
|
-
}
|
|
74
|
-
this.searchResults = (_a = __privateGet(this, _searchEngine)) == null ? void 0 : _a.search(target.value).map(({ item }) => item);
|
|
75
|
-
});
|
|
76
|
-
__privateAdd(this, _handleOptionClick, (event) => {
|
|
77
|
-
const path = event.composedPath();
|
|
78
|
-
const [target] = path.filter(
|
|
79
|
-
(eventTarget) => eventTarget.role === "option"
|
|
80
|
-
);
|
|
81
|
-
if (!target) {
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
__privateGet(this, _selectOption).call(this, target);
|
|
85
|
-
});
|
|
86
|
-
__privateAdd(this, _handleKeydown, (event) => {
|
|
87
|
-
var _a;
|
|
88
|
-
switch (event.key) {
|
|
89
|
-
case "ArrowDown": {
|
|
90
|
-
clearSelection(
|
|
91
|
-
__privateGet(this, _combobox),
|
|
92
|
-
__privateGet(this, _listbox)
|
|
93
|
-
);
|
|
94
|
-
if (!this.isExpanded) {
|
|
95
|
-
this.isExpanded = true;
|
|
96
|
-
}
|
|
97
|
-
if (event.altKey) {
|
|
98
|
-
break;
|
|
99
|
-
}
|
|
100
|
-
walkToOption(
|
|
101
|
-
__privateGet(this, _walker),
|
|
102
|
-
__privateGet(this, _combobox),
|
|
103
|
-
"next"
|
|
104
|
-
);
|
|
105
|
-
break;
|
|
106
|
-
}
|
|
107
|
-
case "ArrowUp": {
|
|
108
|
-
clearSelection(
|
|
109
|
-
__privateGet(this, _combobox),
|
|
110
|
-
__privateGet(this, _listbox)
|
|
111
|
-
);
|
|
112
|
-
if (!this.isExpanded) {
|
|
113
|
-
this.isExpanded = true;
|
|
114
|
-
}
|
|
115
|
-
walkToOption(
|
|
116
|
-
__privateGet(this, _walker),
|
|
117
|
-
__privateGet(this, _combobox),
|
|
118
|
-
"previous"
|
|
119
|
-
);
|
|
120
|
-
break;
|
|
121
|
-
}
|
|
122
|
-
case "Enter": {
|
|
123
|
-
__privateGet(this, _selectOption).call(this, (_a = __privateGet(this, _walker)) == null ? void 0 : _a.currentNode);
|
|
124
|
-
break;
|
|
125
|
-
}
|
|
126
|
-
case "Escape": {
|
|
127
|
-
clearSelection(
|
|
128
|
-
__privateGet(this, _combobox),
|
|
129
|
-
__privateGet(this, _listbox)
|
|
130
|
-
);
|
|
131
|
-
if (this.isExpanded) {
|
|
132
|
-
this.isExpanded = false;
|
|
133
|
-
this.dispatchEvent(new Event("cancel"));
|
|
134
|
-
} else {
|
|
135
|
-
this.query = _TerraVariableCombobox.initialQuery;
|
|
136
|
-
}
|
|
137
|
-
break;
|
|
138
|
-
}
|
|
139
|
-
default: {
|
|
140
|
-
break;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
__privateAdd(this, _manageListboxVisibility, (event) => {
|
|
145
|
-
const path = event.composedPath();
|
|
146
|
-
const containedThis = path.some(
|
|
147
|
-
(eventTarget) => eventTarget.localName === _TerraVariableCombobox.tagName
|
|
148
|
-
);
|
|
149
|
-
if (!containedThis) {
|
|
150
|
-
this.isExpanded = false;
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
__privateAdd(this, _selectOption, (option) => {
|
|
154
|
-
const { longName, eventDetail } = option.dataset;
|
|
155
|
-
this.query = `${longName}`;
|
|
156
|
-
__privateGet(this, _dispatchChange).call(this, eventDetail);
|
|
157
|
-
this.isExpanded = false;
|
|
158
|
-
clearSelection(
|
|
159
|
-
__privateGet(this, _combobox),
|
|
160
|
-
__privateGet(this, _listbox)
|
|
161
|
-
);
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
async valueChanged() {
|
|
165
|
-
var _a;
|
|
166
|
-
await __privateGet(this, _fetchController).taskComplete;
|
|
167
|
-
const selectedVariable = (_a = __privateGet(this, _fetchController).value) == null ? void 0 : _a.find((variable) => {
|
|
168
|
-
return variable.entryId === this.value;
|
|
169
|
-
});
|
|
170
|
-
if (selectedVariable) {
|
|
171
|
-
this.query = selectedVariable.longName;
|
|
172
|
-
__privateGet(this, _dispatchChange).call(this, selectedVariable.eventDetail);
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
connectedCallback() {
|
|
176
|
-
super.connectedCallback();
|
|
177
|
-
globalThis.addEventListener("click", __privateGet(this, _manageListboxVisibility));
|
|
178
|
-
}
|
|
179
|
-
disconnectedCallback() {
|
|
180
|
-
super.disconnectedCallback();
|
|
181
|
-
globalThis.addEventListener("click", __privateGet(this, _manageListboxVisibility));
|
|
182
|
-
}
|
|
183
|
-
clear() {
|
|
184
|
-
this.query = _TerraVariableCombobox.initialQuery;
|
|
185
|
-
}
|
|
186
|
-
close() {
|
|
187
|
-
this.isExpanded = false;
|
|
188
|
-
}
|
|
189
|
-
toggle() {
|
|
190
|
-
this.isExpanded = !this.isExpanded;
|
|
191
|
-
}
|
|
192
|
-
render() {
|
|
193
|
-
var _a, _b, _c;
|
|
194
|
-
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;
|
|
195
|
-
return html`<search part="base" title="Search through the list.">
|
|
196
|
-
<label
|
|
197
|
-
for="combobox"
|
|
198
|
-
class=${this.hideLabel ? "sr-only" : "search-input-label"}
|
|
199
|
-
>${this.label}</label
|
|
200
|
-
>
|
|
201
|
-
<div class="search-input-group">
|
|
202
|
-
<input
|
|
203
|
-
${ref((el) => {
|
|
204
|
-
var _a2;
|
|
205
|
-
if (el) {
|
|
206
|
-
(_a2 = __privateGet(this, _combobox)) != null ? _a2 : __privateSet(this, _combobox, el);
|
|
207
|
-
}
|
|
208
|
-
})}
|
|
209
|
-
aria-autocomplete="list"
|
|
210
|
-
aria-controls="listbox"
|
|
211
|
-
aria-expanded=${this.isExpanded}
|
|
212
|
-
class="combobox"
|
|
213
|
-
id="combobox"
|
|
214
|
-
part="combobox"
|
|
215
|
-
role="combobox"
|
|
216
|
-
type="text"
|
|
217
|
-
.placeholder=${(_c = this.placeholder) != null ? _c : `${this.label}\u2026`}
|
|
218
|
-
.value=${this.query}
|
|
219
|
-
@input=${__privateGet(this, _handleComboboxChange)}
|
|
220
|
-
@keydown=${__privateGet(this, _handleKeydown)}
|
|
221
|
-
/>
|
|
222
|
-
<button
|
|
223
|
-
aria-controls="listbox"
|
|
224
|
-
aria-expanded=${this.isExpanded}
|
|
225
|
-
aria-label="List of Searchable Variables"
|
|
226
|
-
class="combobox-button"
|
|
227
|
-
id="combobox-button"
|
|
228
|
-
part="button"
|
|
229
|
-
tabindex="-1"
|
|
230
|
-
type="button"
|
|
231
|
-
@click=${__privateGet(this, _handleButtonClick)}
|
|
232
|
-
>
|
|
233
|
-
${["COMPLETE", "ERROR"].includes(__privateGet(this, _fetchController).taskStatus) ? html`<terra-icon
|
|
234
|
-
class="chevron"
|
|
235
|
-
name="chevron-down"
|
|
236
|
-
></terra-icon>` : html`<svg
|
|
237
|
-
class="button-icon spinner"
|
|
238
|
-
stroke="currentColor"
|
|
239
|
-
viewBox="0 0 24 24"
|
|
240
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
241
|
-
>
|
|
242
|
-
<circle
|
|
243
|
-
cx="12"
|
|
244
|
-
cy="12"
|
|
245
|
-
r="9.5"
|
|
246
|
-
fill="none"
|
|
247
|
-
stroke-width="3"
|
|
248
|
-
></circle>
|
|
249
|
-
</svg>`}
|
|
250
|
-
</button>
|
|
251
|
-
|
|
252
|
-
${this.hideHelp ? nothing : html`<p class="search-help">
|
|
253
|
-
See
|
|
254
|
-
<a
|
|
255
|
-
href="https://www.fusejs.io/examples.html#extended-search"
|
|
256
|
-
rel="noopener noreferrer"
|
|
257
|
-
tabindex=${this.isExpanded ? "-1 " : "0"}
|
|
258
|
-
target="_blank"
|
|
259
|
-
>extended search syntax
|
|
260
|
-
<svg
|
|
261
|
-
aria-hidden="true"
|
|
262
|
-
class="external-link"
|
|
263
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
264
|
-
width="14"
|
|
265
|
-
height="14"
|
|
266
|
-
viewBox="0 0 24 24"
|
|
267
|
-
>
|
|
268
|
-
<path
|
|
269
|
-
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"
|
|
270
|
-
/></svg></a
|
|
271
|
-
>.
|
|
272
|
-
</p>`}
|
|
273
|
-
</div>
|
|
274
|
-
|
|
275
|
-
<ul
|
|
276
|
-
${ref((el) => {
|
|
277
|
-
var _a2;
|
|
278
|
-
if (el) {
|
|
279
|
-
(_a2 = __privateGet(this, _listbox)) != null ? _a2 : __privateSet(this, _listbox, el);
|
|
280
|
-
__privateSet(this, _walker, document.createTreeWalker(
|
|
281
|
-
el,
|
|
282
|
-
NodeFilter.SHOW_ELEMENT,
|
|
283
|
-
(node) => {
|
|
284
|
-
return node.dataset.treeWalker === "filter_skip" ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
|
|
285
|
-
}
|
|
286
|
-
));
|
|
287
|
-
}
|
|
288
|
-
})}
|
|
289
|
-
?inert=${!this.isExpanded}
|
|
290
|
-
?open=${this.isExpanded}
|
|
291
|
-
@click=${__privateGet(this, _handleOptionClick)}
|
|
292
|
-
aria-label=${this.query ? `Variables Matching ${this.query}` : "Variables"}
|
|
293
|
-
id="listbox"
|
|
294
|
-
part="listbox"
|
|
295
|
-
role="listbox"
|
|
296
|
-
class="search-results"
|
|
297
|
-
>
|
|
298
|
-
${searchHasNoMatches ? html`<li
|
|
299
|
-
class="listbox-option-group"
|
|
300
|
-
data-tree-walker="filter_skip"
|
|
301
|
-
>
|
|
302
|
-
<terra-button
|
|
303
|
-
@click=${() => this.query = _TerraVariableCombobox.initialQuery}
|
|
304
|
-
class="clear-button"
|
|
305
|
-
data-tree-walker="filter_skip"
|
|
306
|
-
>
|
|
307
|
-
clear search
|
|
308
|
-
</terra-button>
|
|
309
|
-
</li>` : nothing}
|
|
310
|
-
${__privateGet(this, _fetchController).render({
|
|
311
|
-
initial: () => html`<li class="updating">Updating List of Variables</li>`,
|
|
312
|
-
pending: () => html`<li class="updating">Updating List of Variables</li>`,
|
|
313
|
-
complete: (list) => {
|
|
314
|
-
__privateSet(this, _searchableList, list);
|
|
315
|
-
__privateSet(this, _searchEngine, new Fuse(__privateGet(this, _searchableList), {
|
|
316
|
-
//* @see {@link https://www.fusejs.io/examples.html#nested-search}
|
|
317
|
-
findAllMatches: true,
|
|
318
|
-
keys: [
|
|
319
|
-
"entryId",
|
|
320
|
-
"longName",
|
|
321
|
-
"name",
|
|
322
|
-
"standardName",
|
|
323
|
-
"units"
|
|
324
|
-
],
|
|
325
|
-
useExtendedSearch: true
|
|
326
|
-
}));
|
|
327
|
-
return cache(
|
|
328
|
-
this.query === _TerraVariableCombobox.initialQuery ? map(
|
|
329
|
-
removeEmptyCollections(
|
|
330
|
-
groupDocsByCollection(__privateGet(this, _searchableList))
|
|
331
|
-
),
|
|
332
|
-
renderSearchResult
|
|
333
|
-
) : map(
|
|
334
|
-
removeEmptyCollections(
|
|
335
|
-
groupDocsByCollection(this.searchResults)
|
|
336
|
-
),
|
|
337
|
-
renderSearchResult
|
|
338
|
-
)
|
|
339
|
-
);
|
|
340
|
-
},
|
|
341
|
-
// TODO: Consider a more robust error strategy...like retry w/ backoff?
|
|
342
|
-
error: (errorMessage) => html`<li class="error" data-tree-walker="filter_skip">
|
|
343
|
-
${errorMessage}
|
|
344
|
-
</li>`
|
|
345
|
-
})}
|
|
346
|
-
</ul>
|
|
347
|
-
</search>`;
|
|
348
|
-
}
|
|
349
|
-
};
|
|
350
|
-
_combobox = new WeakMap();
|
|
351
|
-
_fetchController = new WeakMap();
|
|
352
|
-
_searchableList = new WeakMap();
|
|
353
|
-
_listbox = new WeakMap();
|
|
354
|
-
_searchEngine = new WeakMap();
|
|
355
|
-
_walker = new WeakMap();
|
|
356
|
-
_dispatchChange = new WeakMap();
|
|
357
|
-
_handleButtonClick = new WeakMap();
|
|
358
|
-
_handleComboboxChange = new WeakMap();
|
|
359
|
-
_handleOptionClick = new WeakMap();
|
|
360
|
-
_handleKeydown = new WeakMap();
|
|
361
|
-
_manageListboxVisibility = new WeakMap();
|
|
362
|
-
_selectOption = new WeakMap();
|
|
363
|
-
_TerraVariableCombobox.dependencies = {
|
|
364
|
-
"terra-button": button_default,
|
|
365
|
-
"terra-icon": icon_default
|
|
366
|
-
};
|
|
367
|
-
_TerraVariableCombobox.styles = [component_styles_default, variable_combobox_styles_default];
|
|
368
|
-
_TerraVariableCombobox.shadowRootOptions = __spreadProps(__spreadValues({}, LitElement.shadowRootOptions), {
|
|
369
|
-
delegatesFocus: true
|
|
370
|
-
});
|
|
371
|
-
_TerraVariableCombobox.tagName = "terra-variable-combobox";
|
|
372
|
-
_TerraVariableCombobox.initialQuery = "";
|
|
373
|
-
__decorateClass([
|
|
374
|
-
property()
|
|
375
|
-
], _TerraVariableCombobox.prototype, "label", 2);
|
|
376
|
-
__decorateClass([
|
|
377
|
-
property()
|
|
378
|
-
], _TerraVariableCombobox.prototype, "placeholder", 2);
|
|
379
|
-
__decorateClass([
|
|
380
|
-
property({ attribute: "hide-help", type: Boolean })
|
|
381
|
-
], _TerraVariableCombobox.prototype, "hideHelp", 2);
|
|
382
|
-
__decorateClass([
|
|
383
|
-
property({ attribute: "hide-label", type: Boolean })
|
|
384
|
-
], _TerraVariableCombobox.prototype, "hideLabel", 2);
|
|
385
|
-
__decorateClass([
|
|
386
|
-
property()
|
|
387
|
-
], _TerraVariableCombobox.prototype, "value", 2);
|
|
388
|
-
__decorateClass([
|
|
389
|
-
state()
|
|
390
|
-
], _TerraVariableCombobox.prototype, "isExpanded", 2);
|
|
391
|
-
__decorateClass([
|
|
392
|
-
state()
|
|
393
|
-
], _TerraVariableCombobox.prototype, "query", 2);
|
|
394
|
-
__decorateClass([
|
|
395
|
-
state()
|
|
396
|
-
], _TerraVariableCombobox.prototype, "searchResults", 2);
|
|
397
|
-
__decorateClass([
|
|
398
|
-
watch("value")
|
|
399
|
-
], _TerraVariableCombobox.prototype, "valueChanged", 1);
|
|
400
|
-
var TerraVariableCombobox = _TerraVariableCombobox;
|
|
401
|
-
|
|
402
|
-
export {
|
|
403
|
-
TerraVariableCombobox
|
|
404
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
TerraSpatialPicker
|
|
3
|
-
} from "./chunk.Y3WAKQQ3.js";
|
|
4
|
-
|
|
5
|
-
// src/react/spatial-picker/index.ts
|
|
6
|
-
import * as React from "react";
|
|
7
|
-
import { createComponent } from "@lit/react";
|
|
8
|
-
var tagName = "terra-spatial-picker";
|
|
9
|
-
TerraSpatialPicker.define("terra-spatial-picker");
|
|
10
|
-
var reactWrapper = createComponent({
|
|
11
|
-
tagName,
|
|
12
|
-
elementClass: TerraSpatialPicker,
|
|
13
|
-
react: React,
|
|
14
|
-
events: {},
|
|
15
|
-
displayName: "TerraSpatialPicker"
|
|
16
|
-
});
|
|
17
|
-
var spatial_picker_default = reactWrapper;
|
|
18
|
-
|
|
19
|
-
export {
|
|
20
|
-
spatial_picker_default
|
|
21
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
TerraTimeSeries
|
|
3
|
-
} from "./chunk.Q7F3GGVA.js";
|
|
4
|
-
|
|
5
|
-
// src/react/time-series/index.ts
|
|
6
|
-
import * as React from "react";
|
|
7
|
-
import { createComponent } from "@lit/react";
|
|
8
|
-
var tagName = "terra-time-series";
|
|
9
|
-
TerraTimeSeries.define("terra-time-series");
|
|
10
|
-
var reactWrapper = createComponent({
|
|
11
|
-
tagName,
|
|
12
|
-
elementClass: TerraTimeSeries,
|
|
13
|
-
react: React,
|
|
14
|
-
events: {},
|
|
15
|
-
displayName: "TerraTimeSeries"
|
|
16
|
-
});
|
|
17
|
-
var time_series_default = reactWrapper;
|
|
18
|
-
|
|
19
|
-
export {
|
|
20
|
-
time_series_default
|
|
21
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
TerraButton
|
|
3
|
-
} from "./chunk.SCU5LFS3.js";
|
|
4
|
-
|
|
5
|
-
// src/react/button/index.ts
|
|
6
|
-
import * as React from "react";
|
|
7
|
-
import { createComponent } from "@lit/react";
|
|
8
|
-
var tagName = "terra-button";
|
|
9
|
-
TerraButton.define("terra-button");
|
|
10
|
-
var reactWrapper = createComponent({
|
|
11
|
-
tagName,
|
|
12
|
-
elementClass: TerraButton,
|
|
13
|
-
react: React,
|
|
14
|
-
events: {},
|
|
15
|
-
displayName: "TerraButton"
|
|
16
|
-
});
|
|
17
|
-
var button_default = reactWrapper;
|
|
18
|
-
|
|
19
|
-
export {
|
|
20
|
-
button_default
|
|
21
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
TerraVariableCombobox
|
|
3
|
-
} from "./chunk.KXNDHJXA.js";
|
|
4
|
-
|
|
5
|
-
// src/react/variable-combobox/index.ts
|
|
6
|
-
import * as React from "react";
|
|
7
|
-
import { createComponent } from "@lit/react";
|
|
8
|
-
import "@lit/react";
|
|
9
|
-
var tagName = "terra-variable-combobox";
|
|
10
|
-
TerraVariableCombobox.define("terra-variable-combobox");
|
|
11
|
-
var reactWrapper = createComponent({
|
|
12
|
-
tagName,
|
|
13
|
-
elementClass: TerraVariableCombobox,
|
|
14
|
-
react: React,
|
|
15
|
-
events: {
|
|
16
|
-
onTerraComboboxChange: "terra-combobox-change"
|
|
17
|
-
},
|
|
18
|
-
displayName: "TerraVariableCombobox"
|
|
19
|
-
});
|
|
20
|
-
var variable_combobox_default = reactWrapper;
|
|
21
|
-
|
|
22
|
-
export {
|
|
23
|
-
variable_combobox_default
|
|
24
|
-
};
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__decorateClass,
|
|
3
|
-
__spreadValues
|
|
4
|
-
} from "./chunk.RYPAZDXE.js";
|
|
5
|
-
|
|
6
|
-
// src/styles/component.styles.ts
|
|
7
|
-
import { css } from "lit";
|
|
8
|
-
var component_styles_default = css`
|
|
9
|
-
:host {
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
:host *,
|
|
14
|
-
:host *::before,
|
|
15
|
-
:host *::after {
|
|
16
|
-
box-sizing: inherit;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
[hidden] {
|
|
20
|
-
display: none !important;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/* UTILITY CSS */
|
|
24
|
-
.sr-only {
|
|
25
|
-
block-size: 1px;
|
|
26
|
-
border-width: 0;
|
|
27
|
-
clip: rect(0, 0, 0, 0);
|
|
28
|
-
margin: -1px;
|
|
29
|
-
overflow: hidden;
|
|
30
|
-
padding: 0;
|
|
31
|
-
position: absolute;
|
|
32
|
-
white-space: nowrap;
|
|
33
|
-
width: 1px;
|
|
34
|
-
}
|
|
35
|
-
`;
|
|
36
|
-
|
|
37
|
-
// src/internal/terra-element.ts
|
|
38
|
-
import { LitElement } from "lit";
|
|
39
|
-
import { property } from "lit/decorators.js";
|
|
40
|
-
var TerraElement = class extends LitElement {
|
|
41
|
-
emit(name, options) {
|
|
42
|
-
const event = new CustomEvent(name, __spreadValues({
|
|
43
|
-
bubbles: true,
|
|
44
|
-
cancelable: false,
|
|
45
|
-
composed: true,
|
|
46
|
-
detail: {}
|
|
47
|
-
}, options));
|
|
48
|
-
this.dispatchEvent(event);
|
|
49
|
-
return event;
|
|
50
|
-
}
|
|
51
|
-
/* eslint-enable */
|
|
52
|
-
static define(name, elementConstructor = this, options = {}) {
|
|
53
|
-
const currentlyRegisteredConstructor = customElements.get(name);
|
|
54
|
-
if (!currentlyRegisteredConstructor) {
|
|
55
|
-
customElements.define(
|
|
56
|
-
name,
|
|
57
|
-
class extends elementConstructor {
|
|
58
|
-
},
|
|
59
|
-
options
|
|
60
|
-
);
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
let newVersion = " (unknown version)";
|
|
64
|
-
let existingVersion = newVersion;
|
|
65
|
-
if ("version" in elementConstructor && elementConstructor.version) {
|
|
66
|
-
newVersion = " v" + elementConstructor.version;
|
|
67
|
-
}
|
|
68
|
-
if ("version" in currentlyRegisteredConstructor && currentlyRegisteredConstructor.version) {
|
|
69
|
-
existingVersion = " v" + currentlyRegisteredConstructor.version;
|
|
70
|
-
}
|
|
71
|
-
if (newVersion && existingVersion && newVersion === existingVersion) {
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
console.warn(
|
|
75
|
-
`Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
constructor() {
|
|
79
|
-
super();
|
|
80
|
-
Object.entries(
|
|
81
|
-
this.constructor.dependencies
|
|
82
|
-
).forEach(([name, component]) => {
|
|
83
|
-
;
|
|
84
|
-
this.constructor.define(name, component);
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
/* eslint-disable */
|
|
89
|
-
// @ts-expect-error This is auto-injected at build time.
|
|
90
|
-
TerraElement.version = "0.0.0";
|
|
91
|
-
TerraElement.dependencies = {};
|
|
92
|
-
__decorateClass([
|
|
93
|
-
property()
|
|
94
|
-
], TerraElement.prototype, "dir", 2);
|
|
95
|
-
__decorateClass([
|
|
96
|
-
property()
|
|
97
|
-
], TerraElement.prototype, "lang", 2);
|
|
98
|
-
|
|
99
|
-
export {
|
|
100
|
-
component_styles_default,
|
|
101
|
-
TerraElement
|
|
102
|
-
};
|