@eodash/eodash 5.0.0-alpha.2.9 → 5.0.0-rc

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.
Files changed (113) hide show
  1. package/README.md +1 -1
  2. package/core/client/App.vue +13 -1
  3. package/core/client/asWebComponent.js +13 -4
  4. package/core/client/components/DashboardLayout.vue +36 -14
  5. package/core/client/components/Loading.vue +6 -9
  6. package/core/client/components/MobileLayout.vue +16 -14
  7. package/core/client/composables/DefineEodash.js +14 -4
  8. package/core/client/composables/DefineTemplate.js +67 -0
  9. package/core/client/composables/DefineWidgets.js +3 -2
  10. package/core/client/composables/EodashMap.js +360 -0
  11. package/core/client/composables/EodashProcess.js +574 -0
  12. package/core/client/composables/index.js +136 -28
  13. package/core/client/eodash.js +395 -80
  14. package/core/client/eodashSTAC/EodashCollection.js +432 -0
  15. package/core/client/eodashSTAC/createLayers.js +315 -0
  16. package/core/client/eodashSTAC/helpers.js +375 -0
  17. package/core/client/eodashSTAC/triggers.js +43 -0
  18. package/core/client/plugins/axios.js +8 -0
  19. package/core/client/plugins/index.js +2 -1
  20. package/core/client/plugins/vuetify.js +2 -1
  21. package/core/client/store/actions.js +79 -0
  22. package/core/client/store/index.js +4 -18
  23. package/core/client/store/stac.js +99 -9
  24. package/core/client/store/states.js +37 -0
  25. package/core/client/{types.d.ts → types.ts} +66 -20
  26. package/core/client/utils/keys.js +2 -0
  27. package/core/client/utils/states.js +22 -0
  28. package/core/client/views/Dashboard.vue +22 -49
  29. package/core/client/vite-env.d.ts +2 -10
  30. package/dist/client/DashboardLayout-232tRmjz.js +84 -0
  31. package/dist/client/DynamicWebComponent-Cl4LqHU6.js +88 -0
  32. package/dist/client/EodashDatePicker-Pok6bZwU.js +306 -0
  33. package/dist/client/EodashItemFilter-16eMMjTV.js +151 -0
  34. package/dist/client/EodashLayerControl-De7IlCm_.js +120 -0
  35. package/dist/client/EodashLayoutSwitcher-C-3-jjn5.js +52 -0
  36. package/dist/client/EodashMap-CMvbfI6-.js +549 -0
  37. package/dist/client/EodashMapBtns-BeknGDtc.js +107 -0
  38. package/dist/client/EodashProcess-BwKAa9Ee.js +1476 -0
  39. package/dist/client/EodashStacInfo-_BfonNUG.js +85 -0
  40. package/dist/client/EodashTools-PD3XPYuR.js +103 -0
  41. package/dist/client/ExportState-DOrT7M15.js +644 -0
  42. package/dist/client/Footer-CCigxYBo.js +141 -0
  43. package/dist/client/Header-C2cdx4gb.js +437 -0
  44. package/dist/client/IframeWrapper-BgM9aU8f.js +28 -0
  45. package/dist/client/MobileLayout-BdiFjHg7.js +1207 -0
  46. package/dist/client/PopUp--_xn1Cms.js +410 -0
  47. package/dist/client/VImg-9xu2l99m.js +384 -0
  48. package/dist/client/VMain-BUs3kDTd.js +43 -0
  49. package/dist/client/VOverlay-D89omJis.js +1453 -0
  50. package/dist/client/VTooltip-CDu3bErh.js +86 -0
  51. package/dist/client/WidgetsContainer-aFG9yFT6.js +83 -0
  52. package/dist/client/asWebComponent-BRGyP_j5.js +11943 -0
  53. package/dist/client/{style.css → eo-dash.css} +2 -2
  54. package/dist/client/eo-dash.js +2 -6
  55. package/dist/client/forwardRefs-CYrR6bMw.js +245 -0
  56. package/dist/client/index-BZwk0V42.js +199 -0
  57. package/dist/client/ssrBoot-BP7SYRyC.js +22 -0
  58. package/dist/client/transition-DG9nRSW4.js +37 -0
  59. package/dist/node/cli.js +4 -4
  60. package/dist/node/types.d.ts +2 -0
  61. package/package.json +73 -38
  62. package/widgets/EodashDatePicker.vue +176 -134
  63. package/widgets/EodashItemFilter.vue +79 -38
  64. package/widgets/EodashLayerControl.vue +111 -0
  65. package/widgets/EodashLayoutSwitcher.vue +36 -0
  66. package/widgets/EodashMap.vue +108 -133
  67. package/widgets/EodashMapBtns.vue +62 -8
  68. package/widgets/EodashProcess.vue +143 -0
  69. package/widgets/EodashStacInfo.vue +82 -0
  70. package/widgets/EodashTools.vue +83 -0
  71. package/widgets/ExportState.vue +17 -13
  72. package/widgets/PopUp.vue +24 -2
  73. package/core/client/SuspensedDashboard.ce.vue +0 -105
  74. package/core/client/asWebComponent.d.ts +0 -23
  75. package/core/client/store/Actions.js +0 -14
  76. package/core/client/store/States.js +0 -16
  77. package/core/client/utils/eodashSTAC.js +0 -249
  78. package/core/client/utils/helpers.js +0 -38
  79. package/dist/client/DashboardLayout-D0ZF6V2S.js +0 -156
  80. package/dist/client/DynamicWebComponent-CPsMSBHi.js +0 -57
  81. package/dist/client/EodashDatePicker-CBQP7u2X.js +0 -252
  82. package/dist/client/EodashItemFilter-DL2ScI-5.js +0 -7671
  83. package/dist/client/EodashMap-CkKoQlmR.js +0 -86917
  84. package/dist/client/EodashMapBtns-yuO2QmiR.js +0 -36
  85. package/dist/client/ExportState-CCzOhppU.js +0 -558
  86. package/dist/client/Footer-BPAND0yG.js +0 -115
  87. package/dist/client/Header-DLhebNvG.js +0 -350
  88. package/dist/client/IframeWrapper-1GEMHlsW.js +0 -19
  89. package/dist/client/MobileLayout-mGkOYRhu.js +0 -945
  90. package/dist/client/PopUp-1d2bBFjw.js +0 -300
  91. package/dist/client/VImg-DxHcztfM.js +0 -291
  92. package/dist/client/VMain-BLX5vRRn.js +0 -39
  93. package/dist/client/VOverlay-CvrYEmLu.js +0 -967
  94. package/dist/client/WidgetsContainer-CmYjvGm7.js +0 -129
  95. package/dist/client/_commonjsHelpers-DaMA6jEr.js +0 -8
  96. package/dist/client/asWebComponent-B91uK0U7.js +0 -20361
  97. package/dist/client/basedecoder-DHcBySSe-BmCFNFnw.js +0 -88
  98. package/dist/client/decoder-CP4lv0Kb-B6yqkcfC.js +0 -10
  99. package/dist/client/deflate-BXt-9JA_-CWfClgpK.js +0 -10
  100. package/dist/client/eodashSTAC-DBjqe_Ho.js +0 -2788
  101. package/dist/client/eox-stacinfo-l7ALSV90.js +0 -13969
  102. package/dist/client/forwardRefs-BJJiadQP.js +0 -185
  103. package/dist/client/index-Q-bHLjxx.js +0 -153
  104. package/dist/client/jpeg-BAgeD1d3-oeHbFPUL.js +0 -514
  105. package/dist/client/lerc-DzVumYtB-P-KXC0TO.js +0 -1027
  106. package/dist/client/lzw-LAGDNbSC-DkP96qO9.js +0 -84
  107. package/dist/client/packbits-BlDR4Kj5-C66n1-zr.js +0 -24
  108. package/dist/client/pako.esm-CB1uQYY0-DB0PYm1P.js +0 -1081
  109. package/dist/client/raw-CMGvRjfu-BRi6E4i1.js +0 -9
  110. package/dist/client/ssrBoot-yo11mybw.js +0 -17
  111. package/dist/client/transition-CSJhuYGK.js +0 -34
  112. package/dist/client/webfontloader-qotgY98I.js +0 -435
  113. package/dist/client/webimage-BM_pbLN3-L2cGWK5l.js +0 -19
@@ -0,0 +1,85 @@
1
+ import { openBlock, createElementBlock, createElementVNode, unref } from 'vue';
2
+ import '@eox/stacinfo';
3
+ import { aj as currentUrl } from './asWebComponent-BRGyP_j5.js';
4
+
5
+ const _hoisted_1 = { class: "flex-grow-1 fill-height overflow-auto" };
6
+ const _hoisted_2 = [".for", ".allowHtml", ".body", ".featured", ".footer", ".styleOverride", ".header", ".subheader", ".tags"];
7
+
8
+
9
+ const _sfc_main = {
10
+ __name: 'EodashStacInfo',
11
+ props: {
12
+ allowHtml: {
13
+ type: Boolean,
14
+ default: true,
15
+ },
16
+
17
+ styleOverride: {
18
+ type: String,
19
+ default: `
20
+ .single-property {columns: 1!important;}
21
+ h1 {margin:0px!important;font-size:16px!important;}
22
+ header h1:after {
23
+ content:' ';
24
+ display:block;
25
+ border:1px solid #d0d0d0;
26
+ }
27
+ h2 {font-size:15px}
28
+ h3 {font-size:14px}
29
+ summary {cursor: pointer;}
30
+ #properties li > .value { font-weight: normal !important;}
31
+ main {padding-bottom: 10px;}
32
+ .footer-container {line-height:1;}
33
+ .footer-container button {margin-top: -10px;}
34
+ .footer-container small {font-size:10px;line-height:1;}`,
35
+ },
36
+ header: {
37
+ type: Array,
38
+ default: () => ["title"],
39
+ },
40
+ tags: {
41
+ type: Array,
42
+ default: () => ["themes"],
43
+ },
44
+ subheader: {
45
+ type: Array,
46
+ default: () => [],
47
+ },
48
+ body: {
49
+ type: Array,
50
+ default: () => ["satellite", "sensor", "agency", "extent"],
51
+ },
52
+ featured: {
53
+ type: Array,
54
+ default: () => ["description", "providers", "assets", "links"],
55
+ },
56
+ footer: {
57
+ type: Array,
58
+ default: () => ["sci:citation"],
59
+ },
60
+ },
61
+ setup(__props) {
62
+
63
+
64
+
65
+ return (_ctx, _cache) => {
66
+ return (openBlock(), createElementBlock("div", _hoisted_1, [
67
+ createElementVNode("eox-stacinfo", {
68
+ ".for": unref(currentUrl),
69
+ ".allowHtml": __props.allowHtml,
70
+ ".body": __props.body,
71
+ ".featured": __props.featured,
72
+ ".footer": __props.footer,
73
+ ".styleOverride": __props.styleOverride,
74
+ ".header": __props.header,
75
+ ".subheader": __props.subheader,
76
+ ".tags": __props.tags,
77
+ style: {"--color-primary-lighter":"none"}
78
+ }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_2)
79
+ ]))
80
+ }
81
+ }
82
+
83
+ };
84
+
85
+ export { _sfc_main as default };
@@ -0,0 +1,103 @@
1
+ import { ref, computed, openBlock, createElementBlock, createElementVNode, createBlock, unref, createCommentVNode, createVNode, withCtx, mergeProps } from 'vue';
2
+ import _sfc_main$2 from './PopUp--_xn1Cms.js';
3
+ import _sfc_main$3 from './EodashItemFilter-16eMMjTV.js';
4
+ import _sfc_main$1 from './EodashLayoutSwitcher-C-3-jjn5.js';
5
+ import { mdiViewDashboard, mdiPlus } from '@mdi/js';
6
+ import { t as useDisplay, a1 as makePanelTransparent, V as VBtn } from './asWebComponent-BRGyP_j5.js';
7
+
8
+ const _hoisted_1 = { class: "d-flex flex-row justify-space-between pa-4 align-center" };
9
+
10
+
11
+ const _sfc_main = {
12
+ __name: 'EodashTools',
13
+ props: {
14
+ showIndicatorsBtn: {
15
+ type: Boolean,
16
+ default: true,
17
+ },
18
+ showLayoutSwitcher: {
19
+ type: Boolean,
20
+ default: true,
21
+ },
22
+ layoutTarget: {
23
+ type: String,
24
+ default: "light",
25
+ },
26
+ // mdi/js icon
27
+ layoutIcon: {
28
+ type: String,
29
+ default: mdiViewDashboard,
30
+ },
31
+ indicatorBtnText: {
32
+ type: String,
33
+ default: "Select indicator",
34
+ },
35
+ itemFilterConfig: {
36
+ type: Object,
37
+ default: () => {},
38
+ },
39
+ },
40
+ setup(__props) {
41
+
42
+ const dialog = ref(false);
43
+
44
+ const { smAndDown } = useDisplay();
45
+ const popupWidth = computed(() => (smAndDown.value ? "80%" : "1500px"));
46
+ const popupHeight = computed(() => (smAndDown.value ? "90%" : "800px"));
47
+
48
+ const props = __props;
49
+ const rootEl = ref(null);
50
+ makePanelTransparent(rootEl);
51
+
52
+ return (_ctx, _cache) => {
53
+
54
+
55
+ return (openBlock(), createElementBlock("div", {
56
+ ref_key: "rootEl",
57
+ ref: rootEl,
58
+ class: "d-flex flex-column fill-height overflow-auto bg-primary"
59
+ }, [
60
+ createElementVNode("div", _hoisted_1, [
61
+ (props.showIndicatorsBtn)
62
+ ? (openBlock(), createBlock(VBtn, {
63
+ key: 0,
64
+ color: "secondary",
65
+ class: "text-none py-2 px-4",
66
+ "append-icon": [unref(mdiPlus)],
67
+ text: __props.indicatorBtnText,
68
+ onClick: _cache[0] || (_cache[0] = $event => (dialog.value = !dialog.value))
69
+ }, null, 8 /* PROPS */, ["append-icon", "text"]))
70
+ : createCommentVNode("v-if", true),
71
+ (props.showLayoutSwitcher)
72
+ ? (openBlock(), createBlock(_sfc_main$1, {
73
+ key: 1,
74
+ target: __props.layoutTarget,
75
+ icon: __props.layoutIcon
76
+ }, null, 8 /* PROPS */, ["target", "icon"]))
77
+ : createCommentVNode("v-if", true)
78
+ ]),
79
+ createVNode(_sfc_main$2, {
80
+ modelValue: dialog.value,
81
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((dialog).value = $event)),
82
+ maxWidth: popupWidth.value,
83
+ width: popupWidth.value,
84
+ "max-height": popupHeight.value,
85
+ height: popupHeight.value
86
+ }, {
87
+ default: withCtx(() => [
88
+ createVNode(_sfc_main$3, mergeProps({
89
+ class: "pa-4",
90
+ "results-title": ""
91
+ }, props.itemFilterConfig, {
92
+ onSelect: _cache[1] || (_cache[1] = $event => (dialog.value = !dialog.value))
93
+ }), null, 16 /* FULL_PROPS */)
94
+ ]),
95
+ _: 1 /* STABLE */
96
+ }, 8 /* PROPS */, ["modelValue", "maxWidth", "width", "max-height", "height"])
97
+ ], 512 /* NEED_PATCH */))
98
+ }
99
+ }
100
+
101
+ };
102
+
103
+ export { _sfc_main as default };