@eodash/eodash 5.0.0-alpha.2.19 → 5.0.0-alpha.2.21

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 (67) hide show
  1. package/core/client/App.vue +11 -1
  2. package/core/client/asWebComponent.js +9 -2
  3. package/core/client/utils/createLayers.js +1 -0
  4. package/core/client/views/Dashboard.vue +17 -46
  5. package/dist/client/DashboardLayout-DEZe5rZn.js +86 -0
  6. package/dist/client/DynamicWebComponent-Cp_3d3nd.js +88 -0
  7. package/dist/client/EodashDatePicker-BwQ9Bw9-.js +393 -0
  8. package/dist/client/EodashItemFilter-BtihrBap.js +194 -0
  9. package/dist/client/EodashLayerControl-BuZgXYop.js +111 -0
  10. package/dist/client/EodashMap-C9hvsdhf.js +472 -0
  11. package/dist/client/EodashMapBtns-BTG6oYL5.js +66 -0
  12. package/dist/client/ExportState-GDJ8YxS9.js +644 -0
  13. package/dist/client/Footer-Cul4HvW4.js +141 -0
  14. package/dist/client/Header-BikVMROv.js +437 -0
  15. package/dist/client/IframeWrapper-BgM9aU8f.js +28 -0
  16. package/dist/client/MobileLayout-ByPGOgnO.js +1210 -0
  17. package/dist/client/PopUp-AJqPEHmR.js +382 -0
  18. package/dist/client/VImg-CY7ndzv2.js +384 -0
  19. package/dist/client/VMain-BlIaUbM6.js +43 -0
  20. package/dist/client/VOverlay-CiMWDe2b.js +1453 -0
  21. package/dist/client/WidgetsContainer-DG9sQaF0.js +83 -0
  22. package/dist/client/asWebComponent-6g8pz2_C.js +11557 -0
  23. package/dist/client/eo-dash.js +2 -6
  24. package/dist/client/forwardRefs-DnXzPqIo.js +245 -0
  25. package/dist/client/index-14PHPf-A.js +199 -0
  26. package/dist/client/ssrBoot-BP7SYRyC.js +22 -0
  27. package/dist/client/style.css +2 -2
  28. package/dist/client/transition-CGVKXZbS.js +37 -0
  29. package/dist/node/cli.js +5 -5
  30. package/dist/node/types.d.ts +2 -0
  31. package/package.json +21 -19
  32. package/widgets/EodashDatePicker.vue +20 -9
  33. package/core/client/SuspensedDashboard.ce.vue +0 -105
  34. package/dist/client/DashboardLayout-CU4js3lr.js +0 -156
  35. package/dist/client/DynamicWebComponent-BsYZdIEB.js +0 -57
  36. package/dist/client/EodashDatePicker-DZoH_gRX.js +0 -276
  37. package/dist/client/EodashItemFilter-CHBfsFSm.js +0 -7666
  38. package/dist/client/EodashLayerControl-CuY-cAx8.js +0 -24665
  39. package/dist/client/EodashMap-Ch43fWNv.js +0 -88369
  40. package/dist/client/EodashMapBtns-CFA2uti4.js +0 -50
  41. package/dist/client/ExportState-C6raDjTt.js +0 -570
  42. package/dist/client/Footer-D8T5ROhF.js +0 -117
  43. package/dist/client/Header-B8B4Z5R9.js +0 -350
  44. package/dist/client/IframeWrapper-BK2JxzSJ.js +0 -19
  45. package/dist/client/MobileLayout-aZaYvF8V.js +0 -947
  46. package/dist/client/PopUp-DdHXoNOP.js +0 -300
  47. package/dist/client/VImg-yb8O1cb8.js +0 -293
  48. package/dist/client/VMain-Dknnyxts.js +0 -38
  49. package/dist/client/VOverlay-BCOn3hd6.js +0 -973
  50. package/dist/client/WidgetsContainer-BixUyr1e.js +0 -129
  51. package/dist/client/asWebComponent-CHqY8A1z.js +0 -24636
  52. package/dist/client/basedecoder-DHcBySSe-BmCFNFnw.js +0 -88
  53. package/dist/client/decoder-DJlmx386-DJlmx386.js +0 -8
  54. package/dist/client/deflate-BXt-9JA_-CWfClgpK.js +0 -10
  55. package/dist/client/eox-stacinfo-l7ALSV90.js +0 -13969
  56. package/dist/client/forwardRefs-dcYA2XVU.js +0 -185
  57. package/dist/client/index-BVuSHaVu.js +0 -153
  58. package/dist/client/jpeg-BAgeD1d3-oeHbFPUL.js +0 -514
  59. package/dist/client/lerc-BPVtQnt3-08GHszVp.js +0 -1027
  60. package/dist/client/lzw-LAGDNbSC-DkP96qO9.js +0 -84
  61. package/dist/client/packbits-BlDR4Kj5-C66n1-zr.js +0 -24
  62. package/dist/client/pako.esm-CB1uQYY0-DB0PYm1P.js +0 -1081
  63. package/dist/client/raw-CMGvRjfu-BRi6E4i1.js +0 -9
  64. package/dist/client/ssrBoot-DU2S_nLc.js +0 -17
  65. package/dist/client/transition-C_fi1aa6.js +0 -34
  66. package/dist/client/webfontloader-Ofarvipf.js +0 -435
  67. package/dist/client/webimage-BM_pbLN3-L2cGWK5l.js +0 -19
@@ -1,6 +1,2 @@
1
- import { bN as a, bO as e, bP as o } from "./asWebComponent-CHqY8A1z.js";
2
- export {
3
- a as Eodash,
4
- e as register,
5
- o as store
6
- };
1
+ export { aM as Eodash, aN as register, aO as store } from './asWebComponent-6g8pz2_C.js';
2
+ import 'vue';
@@ -0,0 +1,245 @@
1
+ import { shallowRef, computed, watch } from 'vue';
2
+ import { p as propsFactory, ax as getCurrentInstance } from './asWebComponent-6g8pz2_C.js';
3
+
4
+ class Box {
5
+ constructor(_ref) {
6
+ let {
7
+ x,
8
+ y,
9
+ width,
10
+ height
11
+ } = _ref;
12
+ this.x = x;
13
+ this.y = y;
14
+ this.width = width;
15
+ this.height = height;
16
+ }
17
+ get top() {
18
+ return this.y;
19
+ }
20
+ get bottom() {
21
+ return this.y + this.height;
22
+ }
23
+ get left() {
24
+ return this.x;
25
+ }
26
+ get right() {
27
+ return this.x + this.width;
28
+ }
29
+ }
30
+ function getOverflow(a, b) {
31
+ return {
32
+ x: {
33
+ before: Math.max(0, b.left - a.left),
34
+ after: Math.max(0, a.right - b.right)
35
+ },
36
+ y: {
37
+ before: Math.max(0, b.top - a.top),
38
+ after: Math.max(0, a.bottom - b.bottom)
39
+ }
40
+ };
41
+ }
42
+ function getTargetBox(target) {
43
+ if (Array.isArray(target)) {
44
+ return new Box({
45
+ x: target[0],
46
+ y: target[1],
47
+ width: 0,
48
+ height: 0
49
+ });
50
+ } else {
51
+ return target.getBoundingClientRect();
52
+ }
53
+ }
54
+
55
+ // Utilities
56
+ /** @see https://stackoverflow.com/a/57876601/2074736 */
57
+ function nullifyTransforms(el) {
58
+ const rect = el.getBoundingClientRect();
59
+ const style = getComputedStyle(el);
60
+ const tx = style.transform;
61
+ if (tx) {
62
+ let ta, sx, sy, dx, dy;
63
+ if (tx.startsWith('matrix3d(')) {
64
+ ta = tx.slice(9, -1).split(/, /);
65
+ sx = +ta[0];
66
+ sy = +ta[5];
67
+ dx = +ta[12];
68
+ dy = +ta[13];
69
+ } else if (tx.startsWith('matrix(')) {
70
+ ta = tx.slice(7, -1).split(/, /);
71
+ sx = +ta[0];
72
+ sy = +ta[3];
73
+ dx = +ta[4];
74
+ dy = +ta[5];
75
+ } else {
76
+ return new Box(rect);
77
+ }
78
+ const to = style.transformOrigin;
79
+ const x = rect.x - dx - (1 - sx) * parseFloat(to);
80
+ const y = rect.y - dy - (1 - sy) * parseFloat(to.slice(to.indexOf(' ') + 1));
81
+ const w = sx ? rect.width / sx : el.offsetWidth + 1;
82
+ const h = sy ? rect.height / sy : el.offsetHeight + 1;
83
+ return new Box({
84
+ x,
85
+ y,
86
+ width: w,
87
+ height: h
88
+ });
89
+ } else {
90
+ return new Box(rect);
91
+ }
92
+ }
93
+ function animate(el, keyframes, options) {
94
+ if (typeof el.animate === 'undefined') return {
95
+ finished: Promise.resolve()
96
+ };
97
+ let animation;
98
+ try {
99
+ animation = el.animate(keyframes, options);
100
+ } catch (err) {
101
+ return {
102
+ finished: Promise.resolve()
103
+ };
104
+ }
105
+ if (typeof animation.finished === 'undefined') {
106
+ animation.finished = new Promise(resolve => {
107
+ animation.onfinish = () => {
108
+ resolve(animation);
109
+ };
110
+ });
111
+ }
112
+ return animation;
113
+ }
114
+
115
+ const standardEasing = 'cubic-bezier(0.4, 0, 0.2, 1)';
116
+ const deceleratedEasing = 'cubic-bezier(0.0, 0, 0.2, 1)'; // Entering
117
+ const acceleratedEasing = 'cubic-bezier(0.4, 0, 1, 1)'; // Leaving
118
+
119
+ // Utilities
120
+ const makeLazyProps = propsFactory({
121
+ eager: Boolean
122
+ }, 'lazy');
123
+ function useLazy(props, active) {
124
+ const isBooted = shallowRef(false);
125
+ const hasContent = computed(() => isBooted.value || props.eager || active.value);
126
+ watch(active, () => isBooted.value = true);
127
+ function onAfterLeave() {
128
+ if (!props.eager) isBooted.value = false;
129
+ }
130
+ return {
131
+ isBooted,
132
+ hasContent,
133
+ onAfterLeave
134
+ };
135
+ }
136
+
137
+ // Utilities
138
+ function useScopeId() {
139
+ const vm = getCurrentInstance('useScopeId');
140
+ const scopeId = vm.vnode.scopeId;
141
+ return {
142
+ scopeId: scopeId ? {
143
+ [scopeId]: ''
144
+ } : undefined
145
+ };
146
+ }
147
+
148
+ // Types
149
+
150
+ const Refs = Symbol('Forwarded refs');
151
+
152
+ /** Omit properties starting with P */
153
+
154
+ /** Omit keyof $props from T */
155
+
156
+ function getDescriptor(obj, key) {
157
+ let currentObj = obj;
158
+ while (currentObj) {
159
+ const descriptor = Reflect.getOwnPropertyDescriptor(currentObj, key);
160
+ if (descriptor) return descriptor;
161
+ currentObj = Object.getPrototypeOf(currentObj);
162
+ }
163
+ return undefined;
164
+ }
165
+ function forwardRefs(target) {
166
+ for (var _len = arguments.length, refs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
167
+ refs[_key - 1] = arguments[_key];
168
+ }
169
+ target[Refs] = refs;
170
+ return new Proxy(target, {
171
+ get(target, key) {
172
+ if (Reflect.has(target, key)) {
173
+ return Reflect.get(target, key);
174
+ }
175
+
176
+ // Skip internal properties
177
+ if (typeof key === 'symbol' || key.startsWith('$') || key.startsWith('__')) return;
178
+ for (const ref of refs) {
179
+ if (ref.value && Reflect.has(ref.value, key)) {
180
+ const val = Reflect.get(ref.value, key);
181
+ return typeof val === 'function' ? val.bind(ref.value) : val;
182
+ }
183
+ }
184
+ },
185
+ has(target, key) {
186
+ if (Reflect.has(target, key)) {
187
+ return true;
188
+ }
189
+
190
+ // Skip internal properties
191
+ if (typeof key === 'symbol' || key.startsWith('$') || key.startsWith('__')) return false;
192
+ for (const ref of refs) {
193
+ if (ref.value && Reflect.has(ref.value, key)) {
194
+ return true;
195
+ }
196
+ }
197
+ return false;
198
+ },
199
+ set(target, key, value) {
200
+ if (Reflect.has(target, key)) {
201
+ return Reflect.set(target, key, value);
202
+ }
203
+
204
+ // Skip internal properties
205
+ if (typeof key === 'symbol' || key.startsWith('$') || key.startsWith('__')) return false;
206
+ for (const ref of refs) {
207
+ if (ref.value && Reflect.has(ref.value, key)) {
208
+ return Reflect.set(ref.value, key, value);
209
+ }
210
+ }
211
+ return false;
212
+ },
213
+ getOwnPropertyDescriptor(target, key) {
214
+ const descriptor = Reflect.getOwnPropertyDescriptor(target, key);
215
+ if (descriptor) return descriptor;
216
+
217
+ // Skip internal properties
218
+ if (typeof key === 'symbol' || key.startsWith('$') || key.startsWith('__')) return;
219
+
220
+ // Check each ref's own properties
221
+ for (const ref of refs) {
222
+ if (!ref.value) continue;
223
+ const descriptor = getDescriptor(ref.value, key) ?? ('_' in ref.value ? getDescriptor(ref.value._?.setupState, key) : undefined);
224
+ if (descriptor) return descriptor;
225
+ }
226
+
227
+ // Recursive search up each ref's prototype
228
+ for (const ref of refs) {
229
+ const childRefs = ref.value && ref.value[Refs];
230
+ if (!childRefs) continue;
231
+ const queue = childRefs.slice();
232
+ while (queue.length) {
233
+ const ref = queue.shift();
234
+ const descriptor = getDescriptor(ref.value, key);
235
+ if (descriptor) return descriptor;
236
+ const childRefs = ref.value && ref.value[Refs];
237
+ if (childRefs) queue.push(...childRefs);
238
+ }
239
+ }
240
+ return undefined;
241
+ }
242
+ });
243
+ }
244
+
245
+ export { Box as B, animate as a, useScopeId as b, acceleratedEasing as c, deceleratedEasing as d, getOverflow as e, forwardRefs as f, getTargetBox as g, makeLazyProps as m, nullifyTransforms as n, standardEasing as s, useLazy as u };
@@ -0,0 +1,199 @@
1
+ import { TransitionGroup, Transition, h, camelize } from 'vue';
2
+ import { g as genericComponent, p as propsFactory } from './asWebComponent-6g8pz2_C.js';
3
+
4
+ // Utilities
5
+ const makeTransitionProps = propsFactory({
6
+ disabled: Boolean,
7
+ group: Boolean,
8
+ hideOnLeave: Boolean,
9
+ leaveAbsolute: Boolean,
10
+ mode: String,
11
+ origin: String
12
+ }, 'transition');
13
+ function createCssTransition(name, origin, mode) {
14
+ return genericComponent()({
15
+ name,
16
+ props: makeTransitionProps({
17
+ mode,
18
+ origin
19
+ }),
20
+ setup(props, _ref) {
21
+ let {
22
+ slots
23
+ } = _ref;
24
+ const functions = {
25
+ onBeforeEnter(el) {
26
+ if (props.origin) {
27
+ el.style.transformOrigin = props.origin;
28
+ }
29
+ },
30
+ onLeave(el) {
31
+ if (props.leaveAbsolute) {
32
+ const {
33
+ offsetTop,
34
+ offsetLeft,
35
+ offsetWidth,
36
+ offsetHeight
37
+ } = el;
38
+ el._transitionInitialStyles = {
39
+ position: el.style.position,
40
+ top: el.style.top,
41
+ left: el.style.left,
42
+ width: el.style.width,
43
+ height: el.style.height
44
+ };
45
+ el.style.position = 'absolute';
46
+ el.style.top = `${offsetTop}px`;
47
+ el.style.left = `${offsetLeft}px`;
48
+ el.style.width = `${offsetWidth}px`;
49
+ el.style.height = `${offsetHeight}px`;
50
+ }
51
+ if (props.hideOnLeave) {
52
+ el.style.setProperty('display', 'none', 'important');
53
+ }
54
+ },
55
+ onAfterLeave(el) {
56
+ if (props.leaveAbsolute && el?._transitionInitialStyles) {
57
+ const {
58
+ position,
59
+ top,
60
+ left,
61
+ width,
62
+ height
63
+ } = el._transitionInitialStyles;
64
+ delete el._transitionInitialStyles;
65
+ el.style.position = position || '';
66
+ el.style.top = top || '';
67
+ el.style.left = left || '';
68
+ el.style.width = width || '';
69
+ el.style.height = height || '';
70
+ }
71
+ }
72
+ };
73
+ return () => {
74
+ const tag = props.group ? TransitionGroup : Transition;
75
+ return h(tag, {
76
+ name: props.disabled ? '' : name,
77
+ css: !props.disabled,
78
+ ...(props.group ? undefined : {
79
+ mode: props.mode
80
+ }),
81
+ ...(props.disabled ? {} : functions)
82
+ }, slots.default);
83
+ };
84
+ }
85
+ });
86
+ }
87
+ function createJavascriptTransition(name, functions) {
88
+ let mode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'in-out';
89
+ return genericComponent()({
90
+ name,
91
+ props: {
92
+ mode: {
93
+ type: String,
94
+ default: mode
95
+ },
96
+ disabled: Boolean,
97
+ group: Boolean
98
+ },
99
+ setup(props, _ref2) {
100
+ let {
101
+ slots
102
+ } = _ref2;
103
+ const tag = props.group ? TransitionGroup : Transition;
104
+ return () => {
105
+ return h(tag, {
106
+ name: props.disabled ? '' : name,
107
+ css: !props.disabled,
108
+ // mode: props.mode, // TODO: vuejs/vue-next#3104
109
+ ...(props.disabled ? {} : functions)
110
+ }, slots.default);
111
+ };
112
+ }
113
+ });
114
+ }
115
+
116
+ // Utilities
117
+ function ExpandTransitionGenerator () {
118
+ let expandedParentClass = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
119
+ let x = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
120
+ const sizeProperty = x ? 'width' : 'height';
121
+ const offsetProperty = camelize(`offset-${sizeProperty}`);
122
+ return {
123
+ onBeforeEnter(el) {
124
+ el._parent = el.parentNode;
125
+ el._initialStyle = {
126
+ transition: el.style.transition,
127
+ overflow: el.style.overflow,
128
+ [sizeProperty]: el.style[sizeProperty]
129
+ };
130
+ },
131
+ onEnter(el) {
132
+ const initialStyle = el._initialStyle;
133
+ el.style.setProperty('transition', 'none', 'important');
134
+ // Hide overflow to account for collapsed margins in the calculated height
135
+ el.style.overflow = 'hidden';
136
+ const offset = `${el[offsetProperty]}px`;
137
+ el.style[sizeProperty] = '0';
138
+ void el.offsetHeight; // force reflow
139
+
140
+ el.style.transition = initialStyle.transition;
141
+ if (expandedParentClass && el._parent) {
142
+ el._parent.classList.add(expandedParentClass);
143
+ }
144
+ requestAnimationFrame(() => {
145
+ el.style[sizeProperty] = offset;
146
+ });
147
+ },
148
+ onAfterEnter: resetStyles,
149
+ onEnterCancelled: resetStyles,
150
+ onLeave(el) {
151
+ el._initialStyle = {
152
+ transition: '',
153
+ overflow: el.style.overflow,
154
+ [sizeProperty]: el.style[sizeProperty]
155
+ };
156
+ el.style.overflow = 'hidden';
157
+ el.style[sizeProperty] = `${el[offsetProperty]}px`;
158
+ void el.offsetHeight; // force reflow
159
+
160
+ requestAnimationFrame(() => el.style[sizeProperty] = '0');
161
+ },
162
+ onAfterLeave,
163
+ onLeaveCancelled: onAfterLeave
164
+ };
165
+ function onAfterLeave(el) {
166
+ if (expandedParentClass && el._parent) {
167
+ el._parent.classList.remove(expandedParentClass);
168
+ }
169
+ resetStyles(el);
170
+ }
171
+ function resetStyles(el) {
172
+ const size = el._initialStyle[sizeProperty];
173
+ el.style.overflow = el._initialStyle.overflow;
174
+ if (size != null) el.style[sizeProperty] = size;
175
+ delete el._initialStyle;
176
+ }
177
+ }
178
+
179
+ createCssTransition('fab-transition', 'center center', 'out-in');
180
+
181
+ // Generic transitions
182
+ createCssTransition('dialog-bottom-transition');
183
+ createCssTransition('dialog-top-transition');
184
+ const VFadeTransition = createCssTransition('fade-transition');
185
+ createCssTransition('scale-transition');
186
+ createCssTransition('scroll-x-transition');
187
+ createCssTransition('scroll-x-reverse-transition');
188
+ createCssTransition('scroll-y-transition');
189
+ createCssTransition('scroll-y-reverse-transition');
190
+ createCssTransition('slide-x-transition');
191
+ createCssTransition('slide-x-reverse-transition');
192
+ createCssTransition('slide-y-transition');
193
+ createCssTransition('slide-y-reverse-transition');
194
+
195
+ // Javascript transitions
196
+ const VExpandTransition = createJavascriptTransition('expand-transition', ExpandTransitionGenerator());
197
+ createJavascriptTransition('expand-x-transition', ExpandTransitionGenerator('', true));
198
+
199
+ export { VFadeTransition as V, VExpandTransition as a };
@@ -0,0 +1,22 @@
1
+ import { shallowRef, onMounted, computed, readonly } from 'vue';
2
+
3
+ // Utilities
4
+
5
+ // Composables
6
+ function useSsrBoot() {
7
+ const isBooted = shallowRef(false);
8
+ onMounted(() => {
9
+ window.requestAnimationFrame(() => {
10
+ isBooted.value = true;
11
+ });
12
+ });
13
+ const ssrBootStyles = computed(() => !isBooted.value ? {
14
+ transition: 'none !important'
15
+ } : undefined);
16
+ return {
17
+ ssrBootStyles,
18
+ isBooted: readonly(isBooted)
19
+ };
20
+ }
21
+
22
+ export { useSsrBoot as u };