@eodash/eodash 5.0.0-alpha.2.8 → 5.0.0-processing
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/README.md +1 -1
- package/core/client/App.vue +13 -1
- package/core/client/asWebComponent.js +13 -3
- package/core/client/components/DashboardLayout.vue +6 -2
- package/core/client/composables/DefineEodash.js +1 -1
- package/core/client/composables/EodashMap.js +349 -0
- package/core/client/composables/EodashProcess.js +575 -0
- package/core/client/composables/index.js +107 -24
- package/core/client/eodash.js +83 -10
- package/core/client/plugins/axios.js +8 -0
- package/core/client/plugins/index.js +2 -1
- package/core/client/store/Actions.js +63 -12
- package/core/client/store/States.js +19 -0
- package/core/client/store/stac.js +98 -8
- package/core/client/types.d.ts +25 -18
- package/core/client/utils/createLayers.js +313 -0
- package/core/client/utils/eodashSTAC.js +320 -170
- package/core/client/utils/helpers.js +369 -9
- package/core/client/utils/keys.js +2 -0
- package/core/client/utils/states.js +17 -0
- package/core/client/views/Dashboard.vue +17 -46
- package/core/client/vite-env.d.ts +1 -9
- package/dist/client/DashboardLayout-CVMJ4l8M.js +87 -0
- package/dist/client/DynamicWebComponent-Cv8n457T.js +88 -0
- package/dist/client/EodashDatePicker-VVkiPmpc.js +394 -0
- package/dist/client/EodashItemFilter-CugWNQ86.js +194 -0
- package/dist/client/EodashLayerControl-53WghA8G.js +110 -0
- package/dist/client/EodashMap-CQnOePpy.js +486 -0
- package/dist/client/EodashMapBtns-uaRwFtfB.js +66 -0
- package/dist/client/EodashProcess-cF0unIy8.js +1477 -0
- package/dist/client/ExportState-BT8MLAW7.js +644 -0
- package/dist/client/Footer-C6GUG84G.js +141 -0
- package/dist/client/Header-D2dtCWp8.js +437 -0
- package/dist/client/IframeWrapper-BgM9aU8f.js +28 -0
- package/dist/client/MobileLayout-BAo8Wr8T.js +1210 -0
- package/dist/client/PopUp-Bm01q7Ko.js +389 -0
- package/dist/client/VImg-B8AbetCE.js +384 -0
- package/dist/client/VMain-DnGlQUyr.js +43 -0
- package/dist/client/VOverlay-B8Qj7LRG.js +1453 -0
- package/dist/client/WidgetsContainer-CwXRRLS1.js +83 -0
- package/dist/client/asWebComponent-DUUoR7MZ.js +11621 -0
- package/dist/client/eo-dash.js +2 -6
- package/dist/client/forwardRefs-CZJhEAKW.js +245 -0
- package/dist/client/index-DlIO7sJ3.js +199 -0
- package/dist/client/ssrBoot-BP7SYRyC.js +22 -0
- package/dist/client/style.css +2 -2
- package/dist/client/transition-BiR8wMn1.js +37 -0
- package/dist/node/cli.js +4 -4
- package/dist/node/types.d.ts +2 -0
- package/dist/types/core/client/App.vue.d.ts +7 -0
- package/dist/types/core/client/asWebComponent.d.ts +9 -0
- package/dist/types/core/client/components/DashboardLayout.vue.d.ts +2 -0
- package/dist/types/core/client/components/DynamicWebComponent.vue.d.ts +18 -0
- package/dist/types/core/client/components/ErrorAlert.vue.d.ts +2 -0
- package/dist/types/core/client/components/Footer.vue.d.ts +2 -0
- package/dist/types/core/client/components/Header.vue.d.ts +2 -0
- package/dist/types/core/client/components/IframeWrapper.vue.d.ts +7 -0
- package/dist/types/core/client/components/Loading.vue.d.ts +2 -0
- package/dist/types/core/client/components/MobileLayout.vue.d.ts +2 -0
- package/dist/types/core/client/composables/DefineEodash.d.ts +2 -0
- package/dist/types/core/client/composables/DefineTemplate.d.ts +15 -0
- package/dist/types/core/client/composables/DefineWidgets.d.ts +14 -0
- package/dist/types/core/client/composables/EodashMap.d.ts +5 -0
- package/dist/types/core/client/composables/index.d.ts +30 -0
- package/dist/types/core/client/eodash.d.ts +8 -0
- package/dist/types/core/client/main.d.ts +2 -0
- package/dist/types/core/client/plugins/axios.d.ts +2 -0
- package/dist/types/core/client/plugins/index.d.ts +3 -0
- package/dist/types/core/client/plugins/vuetify.d.ts +82 -0
- package/dist/types/core/client/render.d.ts +1 -0
- package/dist/types/core/client/store/Actions.d.ts +12 -0
- package/dist/types/core/client/store/States.d.ts +22 -0
- package/dist/types/core/client/store/index.d.ts +2 -0
- package/dist/types/core/client/store/stac.d.ts +25 -0
- package/dist/types/core/client/types.d.ts +279 -0
- package/dist/types/core/client/utils/createLayers.d.ts +45 -0
- package/dist/types/core/client/utils/eodashSTAC.d.ts +82 -0
- package/dist/types/core/client/utils/helpers.d.ts +84 -0
- package/dist/types/core/client/utils/index.d.ts +2 -0
- package/dist/types/core/client/utils/keys.d.ts +6 -0
- package/dist/types/core/client/utils/states.d.ts +14 -0
- package/dist/types/core/client/views/Dashboard.vue.d.ts +9 -0
- package/dist/types/widgets/EodashDatePicker.vue.d.ts +7 -0
- package/dist/types/widgets/EodashItemFilter.vue.d.ts +42 -0
- package/dist/types/widgets/EodashLayerControl.vue.d.ts +11 -0
- package/dist/types/widgets/EodashLayoutSwitcher.vue.d.ts +9 -0
- package/dist/types/widgets/EodashMap.vue.d.ts +7 -0
- package/dist/types/widgets/EodashMapBtns.vue.d.ts +11 -0
- package/dist/types/widgets/EodashStacInfo.vue.d.ts +21 -0
- package/dist/types/widgets/EodashTools.vue.d.ts +15 -0
- package/dist/types/widgets/ExportState.vue.d.ts +7 -0
- package/dist/types/widgets/PopUp.vue.d.ts +22 -0
- package/dist/types/widgets/WidgetsContainer.vue.d.ts +7 -0
- package/package.json +58 -37
- package/widgets/EodashDatePicker.vue +128 -100
- package/widgets/EodashItemFilter.vue +149 -47
- package/widgets/EodashLayerControl.vue +98 -0
- package/widgets/EodashMap.vue +98 -122
- package/widgets/EodashMapBtns.vue +24 -7
- package/widgets/EodashProcess.vue +151 -0
- package/widgets/ExportState.vue +15 -11
- package/core/client/SuspensedDashboard.ce.vue +0 -105
- package/dist/client/DashboardLayout-CKOExc7r.js +0 -156
- package/dist/client/DynamicWebComponent-m1Zbbw6n.js +0 -57
- package/dist/client/EodashDatePicker-CGdJRGZJ.js +0 -252
- package/dist/client/EodashItemFilter-BjM_LHaE.js +0 -63
- package/dist/client/EodashMap-61UMC8sv.js +0 -86917
- package/dist/client/EodashMapBtns-DVITfAFx.js +0 -36
- package/dist/client/ExportState-DhpK09GR.js +0 -558
- package/dist/client/Footer-CIwjaddz.js +0 -115
- package/dist/client/Header-BcM-pZFi.js +0 -350
- package/dist/client/IframeWrapper-CAe6HPqe.js +0 -19
- package/dist/client/MobileLayout-DcZOQX8r.js +0 -945
- package/dist/client/PopUp-DCaITceG.js +0 -300
- package/dist/client/VImg-C-I_7puM.js +0 -291
- package/dist/client/VMain-Cd3P0YTG.js +0 -39
- package/dist/client/VOverlay-AcvFgk39.js +0 -967
- package/dist/client/WidgetsContainer-B0-q0EMO.js +0 -129
- package/dist/client/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/client/asWebComponent-zuKR9I1w.js +0 -20361
- package/dist/client/basedecoder-DHcBySSe-BmCFNFnw.js +0 -88
- package/dist/client/decoder-CP4lv0Kb-DdKalImK.js +0 -10
- package/dist/client/deflate-BXt-9JA_-CWfClgpK.js +0 -10
- package/dist/client/eodashSTAC-DGB50vNk.js +0 -2788
- package/dist/client/eox-itemfilter-TaBxgqq_.js +0 -7565
- package/dist/client/eox-stacinfo-l7ALSV90.js +0 -13969
- package/dist/client/forwardRefs-BnxE4iKQ.js +0 -185
- package/dist/client/index-hSIi5Ygk.js +0 -153
- package/dist/client/jpeg-BAgeD1d3-oeHbFPUL.js +0 -514
- package/dist/client/lerc-DzVumYtB-cTUap6k_.js +0 -1027
- package/dist/client/lzw-LAGDNbSC-DkP96qO9.js +0 -84
- package/dist/client/packbits-BlDR4Kj5-C66n1-zr.js +0 -24
- package/dist/client/pako.esm-CB1uQYY0-DB0PYm1P.js +0 -1081
- package/dist/client/raw-CMGvRjfu-BRi6E4i1.js +0 -9
- package/dist/client/ssrBoot-D3KF5Thc.js +0 -17
- package/dist/client/transition-D3a4tiJv.js +0 -34
- package/dist/client/webfontloader-qotgY98I.js +0 -435
- package/dist/client/webimage-BM_pbLN3-L2cGWK5l.js +0 -19
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { h, mergeProps, TransitionGroup, Transition } from 'vue';
|
|
2
|
+
import { p as propsFactory } from './asWebComponent-DUUoR7MZ.js';
|
|
3
|
+
|
|
4
|
+
// Utilities
|
|
5
|
+
const makeTransitionProps = propsFactory({
|
|
6
|
+
transition: {
|
|
7
|
+
type: [Boolean, String, Object],
|
|
8
|
+
default: 'fade-transition',
|
|
9
|
+
validator: val => val !== true
|
|
10
|
+
}
|
|
11
|
+
}, 'transition');
|
|
12
|
+
const MaybeTransition = (props, _ref) => {
|
|
13
|
+
let {
|
|
14
|
+
slots
|
|
15
|
+
} = _ref;
|
|
16
|
+
const {
|
|
17
|
+
transition,
|
|
18
|
+
disabled,
|
|
19
|
+
group,
|
|
20
|
+
...rest
|
|
21
|
+
} = props;
|
|
22
|
+
const {
|
|
23
|
+
component = group ? TransitionGroup : Transition,
|
|
24
|
+
...customProps
|
|
25
|
+
} = typeof transition === 'object' ? transition : {};
|
|
26
|
+
return h(component, mergeProps(typeof transition === 'string' ? {
|
|
27
|
+
name: disabled ? '' : transition
|
|
28
|
+
} : customProps, typeof transition === 'string' ? {} : Object.fromEntries(Object.entries({
|
|
29
|
+
disabled,
|
|
30
|
+
group
|
|
31
|
+
}).filter(_ref2 => {
|
|
32
|
+
let [_, v] = _ref2;
|
|
33
|
+
return v !== undefined;
|
|
34
|
+
})), rest), slots);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export { MaybeTransition as M, makeTransitionProps as m };
|
package/dist/node/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{createLogger as
|
|
2
|
+
import{createLogger as S,defineConfig as w,searchForWorkspaceRoot as W,mergeConfig as F,createServer as O,preview as U,build as N}from"vite";import{readFileSync as y,existsSync as u}from"fs";import t from"path";import{Command as E}from"commander";import{fileURLToPath as I}from"url";import{readFile as L,writeFile as T,rm as $,cp as A}from"fs/promises";import H from"@vitejs/plugin-vue";import M,{transformAssetUrls as J}from"vite-plugin-vuetify";const h=new E("eodash"),c=b(),s=b(process.cwd());JSON.parse(y(t.join(s,"package.json"),"utf-8"));const j=JSON.parse(y(t.join(c,"package.json"),"utf-8"))??{},R=["commander","vite","@vitejs/plugin-vue","vite-plugin-vuetify","axios"],V=Object.keys(j?.dependencies).filter(e=>!R.includes(e));h.version(j.version,"-v, --version","output the current version"),h.option("--publicDir <path>","path to statically served assets folder").option("--no-publicDir","stop serving static assets").option("--outDir <path>","minified output folder").option("-e, --entryPoint <path>","file exporting `createEodash`").option("-w, --widgets <path>","folder that contains vue components as internal widgets").option("--cacheDir <path>","cache folder").option("-r, --runtime <path>","file exporting eodash client runtime config").option("-b, --base <path>","base public path").option("-p, --port <port>","serving port").option("-o, --open","open default browser when the server starts").option("-c, --config <path>","path to eodash server and build configuration file").option("--host [IP address]","specify which IP addresses the server should listen on").option("-l, --lib","builds eodash as a web component library").option("--no-lib","builds eodash as an SPA").option("--no-host","do not expose server to the network").parse(process.argv);const i=await B(h.opts(),process.argv?.[2]),z=i.publicDir?t.resolve(s,i.publicDir):t.join(s,"./public"),f=t.join(s,"/src"),p=i.runtime?t.resolve(s,i.runtime):t.join(f,"./runtime.js"),m=i.entryPoint?t.resolve(s,i.entryPoint):t.join(f,"/main.js"),D=i.widgets?t.resolve(s,i.widgets):t.join(f,"widgets"),x=t.join(s,"/.eodash"),v=i.outDir?t.resolve(s,i.outDir):t.join(x,"/dist"),Y=i.cacheDir?t.resolve(s,i.cacheDir):t.join(x,"cache"),g=S(void 0,{prefix:"[eodash]"});async function B(e,a){let r=e.config?t.resolve(s,e.config):t.join(s,"eodash.config.js"),o={};return u(r)?o=await import(r).then(n=>n.default instanceof Function?n.default():n.default).catch(n=>{console.error(n)}):r=null,{base:e.base??o?.base,port:Number(e.port??o?.[a]?.port),host:e.host??o?.[a]?.host,open:e.open??o?.[a]?.open,cacheDir:e.cacheDir??o?.cacheDir,entryPoint:e.entryPoint??o?.entryPoint,outDir:e.outDir??o?.outDir,publicDir:e.publicDir??o?.publicDir,runtime:e.runtime??o?.runtime,widgets:e.widgets??o?.widgets,lib:e.lib??o?.lib,vite:o.vite}}function b(e=import.meta.dirname??t.dirname(I(import.meta.url))){if(e?.split("/").length)return u(t.resolve(e,"package.json"))?e:b(t.resolve(e,".."));throw new Error("no package root found from "+e)}const P=`
|
|
3
3
|
<!DOCTYPE html>
|
|
4
|
-
<html lang="en">
|
|
4
|
+
<html lang="en" style="overflow: hidden">
|
|
5
5
|
|
|
6
6
|
<head>
|
|
7
7
|
<meta charset="UTF-8" />
|
|
@@ -13,8 +13,8 @@ import{createLogger as P,defineConfig as C,searchForWorkspaceRoot as x,createSer
|
|
|
13
13
|
<body>
|
|
14
14
|
${i.lib?`<eo-dash style="height:100dvh;"/>
|
|
15
15
|
<script type="module" src="${t.resolve(`/@fs/${c}`,"core/client/asWebComponent.js")}"><\/script>
|
|
16
|
-
`:` <div id="app"/>
|
|
16
|
+
`:` <div id="app" />
|
|
17
17
|
<script type="module" src="${t.resolve(`/@fs/${c}`,"core/client/render.js")}"><\/script>
|
|
18
18
|
`}
|
|
19
19
|
</body>
|
|
20
|
-
</html>`,
|
|
20
|
+
</html>`,C=w(async({mode:e,command:a})=>({base:i.base??"",cacheDir:Y,plugins:[H({template:{transformAssetUrls:J,compilerOptions:{isCustomElement:r=>!r.includes("v-")&&r.includes("-")}}}),M({autoImport:!0}),e==="development"&&{name:"inject-html",configureServer:G}],customLogger:g,define:{"process.env":{}},resolve:{alias:{"@":t.join(c,"core/client"),"^":t.join(c,"widgets"),"user:config":m,"user:widgets":D},extensions:[".js",".json",".jsx",".mjs",".ts",".tsx",".vue"]},server:{warmup:{clientFiles:[t.join(c,"core/client/**"),m]},port:i.port??3e3,open:i.open,fs:{allow:[W(process.cwd())]},host:i.host},root:c,...e==="development"&&{optimizeDeps:{include:["webfontloader","vuetify","vue","pinia","stac-js","urijs","loglevel","vega","vega-lite","vega-embed","@eox/map","@eox/map/src/plugins/advancedLayersAndSources","@eox/drawtools","@eox/jsonform","@eox/chart","@eox/layercontrol","@eox/itemfilter","@eox/timecontrol","@eox/stacinfo"],noDiscovery:!0}},publicDir:i.publicDir===!1?!1:z,build:{outDir:v,emptyOutDir:!0,target:"esnext",cssMinify:!0,...i.lib&&a==="build"&&{minify:!1,lib:{entry:t.join(c,"core/client/asWebComponent.js"),fileName:"eo-dash",formats:["es"],name:"@eodash/eodash"},rollupOptions:{input:t.join(c,"core/client/asWebComponent.js"),external:r=>{const o=r.includes("vuetify")||r.endsWith(".css")||r.endsWith("styles"),n=V.some(l=>r.startsWith(l));return!o&&n}}}}})),k=w(async e=>i.vite?F(await C(e),i.vite):C(e));async function G(e){e.watcher.add([m,p,t.join(D,"**/*.vue")]);let a="";const r=g.info;return g.info=(o,n)=>{if(o.includes("core")){const l=o.split("/")[0].split(" ");l.pop();const d=l.join(" ")+" "+a.replace(s,"");return r(d,n)}return r(o,n)},e.watcher.on("change",async o=>{a=o,o===p&&e.ws.send({type:"full-reload",path:o})}),()=>{e.middlewares.use(async(o,n,l)=>{if(o.originalUrl==="/@fs/config.js"||o.originalUrl==="/config.js"){n.statusCode=200,n.setHeader("Content-Type","text/javascript"),u(p)&&await L(p).then(d=>{n.write(d)}),n.end();return}if(o.url?.endsWith(".html")){n.statusCode=200,n.setHeader("Content-Type","text/html");const d=await e.transformIndexHtml(o.url,P,o.originalUrl);n.end(d);return}l()})}}const K=async()=>{const e=await O(await k({mode:"development",command:"serve"}));await e.listen(),e.printUrls(),e.bindCLIShortcuts({print:!0})},Q=async()=>{const e=async()=>{const a=await k({mode:"production",command:"build"});await N(a),u(p)&&await A(p,t.join(v,"config.js"),{recursive:!0}).catch(r=>{console.error(r)})};if(i.lib)await e();else{const a=t.join(c,"/index.html");await T(a,P).then(async()=>{await e(),await $(a).catch(()=>{console.error("failed to remove index.html")})})}};async function X(){(await U({root:s,base:i.base??"",preview:{port:isNaN(i.port)?8080:i.port,open:i.open,host:i.host},build:{outDir:v}})).printUrls()}const Z=process.argv?.[2];(async()=>{switch(Z){case"dev":await K();break;case"build":await Q();break;case"preview":await X();break;default:console.error("command not found");break}})();
|
package/dist/node/types.d.ts
CHANGED
|
@@ -37,6 +37,8 @@ export interface EodashConfig {
|
|
|
37
37
|
widgets?: string;
|
|
38
38
|
/** Builds eodash as a web component library */
|
|
39
39
|
lib?: boolean;
|
|
40
|
+
/** User Config that is merged to eodash Vite Config*/
|
|
41
|
+
vite?: Omit<import("vite").UserConfig, "root">;
|
|
40
42
|
}
|
|
41
43
|
/**
|
|
42
44
|
* Helper function that provides intellisense without the need for JSDOC for
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
config?: string | undefined;
|
|
3
|
+
$props: {
|
|
4
|
+
readonly config?: string | undefined;
|
|
5
|
+
};
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export function register(): void;
|
|
2
|
+
/**
|
|
3
|
+
* @type {import("vue").VueElementConstructor<
|
|
4
|
+
* import("vue").ExtractPropTypes<{ config: string }>>}
|
|
5
|
+
* */
|
|
6
|
+
export const Eodash: import("vue").VueElementConstructor<import("vue").ExtractPropTypes<{
|
|
7
|
+
config: string;
|
|
8
|
+
}>>;
|
|
9
|
+
export { default as store } from "./store";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
properties: Record<string, any>;
|
|
3
|
+
link: string | Function;
|
|
4
|
+
tagName: string;
|
|
5
|
+
constructorProp?: string | undefined;
|
|
6
|
+
onMounted?: Function | undefined;
|
|
7
|
+
onUnmounted?: Function | undefined;
|
|
8
|
+
$props: {
|
|
9
|
+
readonly properties?: Record<string, any> | undefined;
|
|
10
|
+
readonly link?: string | Function | undefined;
|
|
11
|
+
readonly tagName?: string | undefined;
|
|
12
|
+
readonly constructorProp?: string | undefined;
|
|
13
|
+
readonly onMounted?: Function | undefined;
|
|
14
|
+
readonly onUnmounted?: Function | undefined;
|
|
15
|
+
};
|
|
16
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
17
|
+
export default _default;
|
|
18
|
+
export type CustomElement = HTMLElement & Record<string | number | symbol, unknown>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
src: string;
|
|
3
|
+
$props: {
|
|
4
|
+
readonly src?: string | undefined;
|
|
5
|
+
};
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export function useEodashRuntime(runtimeConfig: string | undefined): Promise<import("../types").Eodash>;
|
|
2
|
+
export function createEodash(config: ((store: import("../types").EodashStore) => (Promise<import("../types").Eodash> | import("../types").Eodash)) | import("../types").Eodash): Promise<import("../types").Eodash<"compiletime">>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {{
|
|
3
|
+
* bgWidget:ReturnType< typeof import("./DefineWidgets").useDefineWidgets>[number]| import("vue").ShallowRef<null>
|
|
4
|
+
* loading: ReturnType< typeof import("./DefineWidgets").useDefineWidgets>[number]| import("vue").ShallowRef<null>
|
|
5
|
+
* importedWidgets:ReturnType< typeof import("./DefineWidgets").useDefineWidgets>
|
|
6
|
+
* gap: import("vue").Ref<number>
|
|
7
|
+
* }} DefinedTemplate
|
|
8
|
+
**/
|
|
9
|
+
export function useDefineTemplate(): import("vue").ToRefs<DefinedTemplate>;
|
|
10
|
+
export type DefinedTemplate = {
|
|
11
|
+
bgWidget: ReturnType<typeof import("./DefineWidgets").useDefineWidgets>[number] | import("vue").ShallowRef<null>;
|
|
12
|
+
loading: ReturnType<typeof import("./DefineWidgets").useDefineWidgets>[number] | import("vue").ShallowRef<null>;
|
|
13
|
+
importedWidgets: ReturnType<typeof import("./DefineWidgets").useDefineWidgets>;
|
|
14
|
+
gap: import("vue").Ref<number>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function useDefineWidgets(widgetConfigs: (import("../types").Widget | import("../types").BackgroundWidget | Omit<import("../types").Widget, "layout"> | undefined)[] | undefined): ReactiveDefinedWidget[];
|
|
2
|
+
export type DefinedWidget = {
|
|
3
|
+
component: import("vue").Component | null;
|
|
4
|
+
props: Record<string, unknown>;
|
|
5
|
+
title: string;
|
|
6
|
+
id: string | number | symbol;
|
|
7
|
+
layout: {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
h: number;
|
|
11
|
+
w: number;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export type ReactiveDefinedWidget = import("vue").ShallowRef<DefinedWidget>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export function useHandleMapMoveEnd(mapElement: import("vue").Ref<(HTMLElement & Record<string, any> & {
|
|
2
|
+
map: import("ol").Map;
|
|
3
|
+
}) | null>, mapPosition: import("vue").Ref<(number | undefined)[]>): void;
|
|
4
|
+
export function useInitMap(mapElement: import("vue").Ref<(HTMLElement & Record<string, any>) | null>, selectedIndicator: import("vue").Ref<import("stac-ts").StacCollection | null>, eodashCols: EodashCollection[], datetime: import("vue").Ref<string>, mapLayers: import("vue").Ref<Record<string, any>[]>, partnerMap: import("vue").Ref<(HTMLElement & Record<string, any>) | null>): void;
|
|
5
|
+
import { EodashCollection } from "../utils/eodashSTAC";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export function useAbsoluteUrl(rel?: string | undefined, base?: string | undefined): import("vue").Ref<string>;
|
|
2
|
+
export function useCompareAbsoluteUrl(rel?: string | undefined, base?: string | undefined): import("vue").Ref<string>;
|
|
3
|
+
export function useUpdateTheme(themeName: string, themeDefinition?: {
|
|
4
|
+
dark?: boolean | undefined;
|
|
5
|
+
colors?: {
|
|
6
|
+
[x: string]: string | undefined;
|
|
7
|
+
background?: string | undefined;
|
|
8
|
+
surface?: string | undefined;
|
|
9
|
+
primary?: string | undefined;
|
|
10
|
+
secondary?: string | undefined;
|
|
11
|
+
success?: string | undefined;
|
|
12
|
+
warning?: string | undefined;
|
|
13
|
+
error?: string | undefined;
|
|
14
|
+
info?: string | undefined;
|
|
15
|
+
'on-background'?: string | undefined;
|
|
16
|
+
'on-surface'?: string | undefined;
|
|
17
|
+
'on-primary'?: string | undefined;
|
|
18
|
+
'on-secondary'?: string | undefined;
|
|
19
|
+
'on-success'?: string | undefined;
|
|
20
|
+
'on-warning'?: string | undefined;
|
|
21
|
+
'on-error'?: string | undefined;
|
|
22
|
+
'on-info'?: string | undefined;
|
|
23
|
+
} | undefined;
|
|
24
|
+
variables?: {
|
|
25
|
+
[x: string]: string | number | undefined;
|
|
26
|
+
} | undefined;
|
|
27
|
+
} | undefined): import("vuetify").ThemeInstance;
|
|
28
|
+
export function useURLSearchParametersSync(): void;
|
|
29
|
+
export function makePanelTransparent(root: import("vue").Ref<HTMLElement | null>): void;
|
|
30
|
+
export function useGetTemplates(): string[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reactive Edoash Instance Object. provided globally in the app, and used as an
|
|
3
|
+
* intermediate object to make user defined instances config reactive.
|
|
4
|
+
*
|
|
5
|
+
* @type {import("./types").Eodash}
|
|
6
|
+
*/
|
|
7
|
+
export const eodash: import("./types").Eodash;
|
|
8
|
+
export default eodash;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export default vuetify;
|
|
2
|
+
declare const vuetify: {
|
|
3
|
+
install: (app: import("vue").App) => void;
|
|
4
|
+
defaults: import("vue").Ref<import("vuetify").DefaultsInstance>;
|
|
5
|
+
display: import("vuetify").DisplayInstance;
|
|
6
|
+
theme: import("vuetify").ThemeInstance & {
|
|
7
|
+
install: (app: import("vue").App) => void;
|
|
8
|
+
};
|
|
9
|
+
icons: {
|
|
10
|
+
defaultSet: string;
|
|
11
|
+
aliases: Partial<import("vuetify").IconAliases>;
|
|
12
|
+
sets: Record<string, import("vuetify").IconSet>;
|
|
13
|
+
};
|
|
14
|
+
locale: {
|
|
15
|
+
isRtl: import("vue").Ref<boolean>;
|
|
16
|
+
rtl: import("vue").Ref<Record<string, boolean>>;
|
|
17
|
+
rtlClasses: import("vue").Ref<string>;
|
|
18
|
+
name: string;
|
|
19
|
+
messages: import("vue").Ref<import("vuetify").LocaleMessages>;
|
|
20
|
+
current: import("vue").Ref<string>;
|
|
21
|
+
fallback: import("vue").Ref<string>;
|
|
22
|
+
t: (key: string, ...params: unknown[]) => string;
|
|
23
|
+
n: (value: number) => string;
|
|
24
|
+
provide: (props: import("vuetify").LocaleOptions) => import("vuetify").LocaleInstance;
|
|
25
|
+
};
|
|
26
|
+
date: {
|
|
27
|
+
options: {
|
|
28
|
+
adapter: (new (options: {
|
|
29
|
+
locale: any;
|
|
30
|
+
formats?: any;
|
|
31
|
+
}) => import("vuetify").DateInstance) | import("vuetify").DateInstance;
|
|
32
|
+
formats?: Record<string, any>;
|
|
33
|
+
locale: Record<string, any>;
|
|
34
|
+
};
|
|
35
|
+
instance: {
|
|
36
|
+
locale?: any;
|
|
37
|
+
date: (value?: any) => unknown;
|
|
38
|
+
format: (date: unknown, formatString: string) => string;
|
|
39
|
+
toJsDate: (value: unknown) => Date;
|
|
40
|
+
parseISO: (date: string) => unknown;
|
|
41
|
+
toISO: (date: unknown) => string;
|
|
42
|
+
startOfDay: (date: unknown) => unknown;
|
|
43
|
+
endOfDay: (date: unknown) => unknown;
|
|
44
|
+
startOfWeek: (date: unknown, firstDayOfWeek?: number | string) => unknown;
|
|
45
|
+
endOfWeek: (date: unknown) => unknown;
|
|
46
|
+
startOfMonth: (date: unknown) => unknown;
|
|
47
|
+
endOfMonth: (date: unknown) => unknown;
|
|
48
|
+
startOfYear: (date: unknown) => unknown;
|
|
49
|
+
endOfYear: (date: unknown) => unknown;
|
|
50
|
+
isAfter: (date: unknown, comparing: unknown) => boolean;
|
|
51
|
+
isAfterDay: (value: unknown, comparing: unknown) => boolean;
|
|
52
|
+
isSameDay: (date: unknown, comparing: unknown) => boolean;
|
|
53
|
+
isSameMonth: (date: unknown, comparing: unknown) => boolean;
|
|
54
|
+
isSameYear: (value: unknown, comparing: unknown) => boolean;
|
|
55
|
+
isBefore: (date: unknown, comparing: unknown) => boolean;
|
|
56
|
+
isEqual: (date: unknown, comparing: unknown) => boolean;
|
|
57
|
+
isValid: (date: any) => boolean;
|
|
58
|
+
isWithinRange: (date: unknown, range: [unknown, unknown]) => boolean;
|
|
59
|
+
addMinutes: (date: unknown, amount: number) => unknown;
|
|
60
|
+
addHours: (date: unknown, amount: number) => unknown;
|
|
61
|
+
addDays: (date: unknown, amount: number) => unknown;
|
|
62
|
+
addWeeks: (date: unknown, amount: number) => unknown;
|
|
63
|
+
addMonths: (date: unknown, amount: number) => unknown;
|
|
64
|
+
getYear: (date: unknown) => number;
|
|
65
|
+
setYear: (date: unknown, year: number) => unknown;
|
|
66
|
+
getDiff: (date: unknown, comparing: unknown, unit?: string) => number;
|
|
67
|
+
getWeekArray: (date: unknown, firstDayOfWeek?: number | string) => unknown[][];
|
|
68
|
+
getWeekdays: (firstDayOfWeek?: number | string) => string[];
|
|
69
|
+
getMonth: (date: unknown) => number;
|
|
70
|
+
setMonth: (date: unknown, month: number) => unknown;
|
|
71
|
+
getDate: (date: unknown) => number;
|
|
72
|
+
setDate: (date: unknown, day: number) => unknown;
|
|
73
|
+
getNextMonth: (date: unknown) => unknown;
|
|
74
|
+
getPreviousMonth: (date: unknown) => unknown;
|
|
75
|
+
getHours: (date: unknown) => number;
|
|
76
|
+
setHours: (date: unknown, hours: number) => unknown;
|
|
77
|
+
getMinutes: (date: unknown) => number;
|
|
78
|
+
setMinutes: (date: unknown, minutes: number) => unknown;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
goTo: import("vuetify").GoToInstance;
|
|
82
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function getLayers(): Record<string, any>[];
|
|
2
|
+
export function getCompareLayers(): Record<string, any>[];
|
|
3
|
+
export function registerProjection(projection?: string | number | {
|
|
4
|
+
name: string;
|
|
5
|
+
def: string;
|
|
6
|
+
extent?: number[];
|
|
7
|
+
} | undefined): Promise<void>;
|
|
8
|
+
export function changeMapProjection(projection?: string | number | {
|
|
9
|
+
name: string;
|
|
10
|
+
def: string;
|
|
11
|
+
} | undefined): Promise<void>;
|
|
12
|
+
export function setActiveTemplate(template: string): void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** Currently selected STAC endpoint */
|
|
2
|
+
export const currentUrl: import("vue").Ref<string, string>;
|
|
3
|
+
/** Currently selected compare STAC endpoint */
|
|
4
|
+
export const currentCompareUrl: import("vue").Ref<string, string>;
|
|
5
|
+
/** Currently selected datetime */
|
|
6
|
+
export const datetime: import("vue").Ref<string, string>;
|
|
7
|
+
/** Currently selected indicator */
|
|
8
|
+
export const indicator: import("vue").Ref<string, string>;
|
|
9
|
+
/**
|
|
10
|
+
* Current map position
|
|
11
|
+
*
|
|
12
|
+
* @type {import("vue").Ref<(number | undefined)[]>}
|
|
13
|
+
*/
|
|
14
|
+
export const mapPosition: import("vue").Ref<(number | undefined)[]>;
|
|
15
|
+
export const registeredProjections: string[];
|
|
16
|
+
/** available projection to be rendered by `EodashMap` */
|
|
17
|
+
export const availableMapProjection: import("vue").Ref<string, string>;
|
|
18
|
+
/** @type {import("vue").Ref<HTMLElement & Record<string,any> | null>} */
|
|
19
|
+
export const mapEl: import("vue").Ref<(HTMLElement & Record<string, any>) | null>;
|
|
20
|
+
/** @type {import("vue").Ref<HTMLElement & Record<string,any> | null>} */
|
|
21
|
+
export const mapCompareEl: import("vue").Ref<(HTMLElement & Record<string, any>) | null>;
|
|
22
|
+
export const activeTemplate: import("vue").Ref<string, string>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export const useSTAcStore: import("pinia").StoreDefinition<"stac", import("pinia")._UnwrapAll<Pick<{
|
|
2
|
+
stac: import("vue").Ref<import("stac-ts").StacLink[] | null, import("stac-ts").StacLink[] | null>;
|
|
3
|
+
loadSTAC: (url?: `https://${string}/catalog.json` | `http://${string}/catalog.json` | undefined) => Promise<void>;
|
|
4
|
+
loadSelectedSTAC: (relativePath?: string) => Promise<void>;
|
|
5
|
+
loadSelectedCompareSTAC: (relativePath?: string) => Promise<void>;
|
|
6
|
+
resetSelectedCompareSTAC: () => Promise<void>;
|
|
7
|
+
selectedStac: import("vue").Ref<import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null, import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null>;
|
|
8
|
+
selectedCompareStac: import("vue").Ref<import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null, import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null>;
|
|
9
|
+
}, "stac" | "selectedStac" | "selectedCompareStac">>, Pick<{
|
|
10
|
+
stac: import("vue").Ref<import("stac-ts").StacLink[] | null, import("stac-ts").StacLink[] | null>;
|
|
11
|
+
loadSTAC: (url?: `https://${string}/catalog.json` | `http://${string}/catalog.json` | undefined) => Promise<void>;
|
|
12
|
+
loadSelectedSTAC: (relativePath?: string) => Promise<void>;
|
|
13
|
+
loadSelectedCompareSTAC: (relativePath?: string) => Promise<void>;
|
|
14
|
+
resetSelectedCompareSTAC: () => Promise<void>;
|
|
15
|
+
selectedStac: import("vue").Ref<import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null, import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null>;
|
|
16
|
+
selectedCompareStac: import("vue").Ref<import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null, import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null>;
|
|
17
|
+
}, never>, Pick<{
|
|
18
|
+
stac: import("vue").Ref<import("stac-ts").StacLink[] | null, import("stac-ts").StacLink[] | null>;
|
|
19
|
+
loadSTAC: (url?: `https://${string}/catalog.json` | `http://${string}/catalog.json` | undefined) => Promise<void>;
|
|
20
|
+
loadSelectedSTAC: (relativePath?: string) => Promise<void>;
|
|
21
|
+
loadSelectedCompareSTAC: (relativePath?: string) => Promise<void>;
|
|
22
|
+
resetSelectedCompareSTAC: () => Promise<void>;
|
|
23
|
+
selectedStac: import("vue").Ref<import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null, import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null>;
|
|
24
|
+
selectedCompareStac: import("vue").Ref<import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null, import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null>;
|
|
25
|
+
}, "loadSTAC" | "loadSelectedSTAC" | "loadSelectedCompareSTAC" | "resetSelectedCompareSTAC">>;
|