@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.
Files changed (138) hide show
  1. package/README.md +1 -1
  2. package/core/client/App.vue +13 -1
  3. package/core/client/asWebComponent.js +13 -3
  4. package/core/client/components/DashboardLayout.vue +6 -2
  5. package/core/client/composables/DefineEodash.js +1 -1
  6. package/core/client/composables/EodashMap.js +349 -0
  7. package/core/client/composables/EodashProcess.js +575 -0
  8. package/core/client/composables/index.js +107 -24
  9. package/core/client/eodash.js +83 -10
  10. package/core/client/plugins/axios.js +8 -0
  11. package/core/client/plugins/index.js +2 -1
  12. package/core/client/store/Actions.js +63 -12
  13. package/core/client/store/States.js +19 -0
  14. package/core/client/store/stac.js +98 -8
  15. package/core/client/types.d.ts +25 -18
  16. package/core/client/utils/createLayers.js +313 -0
  17. package/core/client/utils/eodashSTAC.js +320 -170
  18. package/core/client/utils/helpers.js +369 -9
  19. package/core/client/utils/keys.js +2 -0
  20. package/core/client/utils/states.js +17 -0
  21. package/core/client/views/Dashboard.vue +17 -46
  22. package/core/client/vite-env.d.ts +1 -9
  23. package/dist/client/DashboardLayout-CVMJ4l8M.js +87 -0
  24. package/dist/client/DynamicWebComponent-Cv8n457T.js +88 -0
  25. package/dist/client/EodashDatePicker-VVkiPmpc.js +394 -0
  26. package/dist/client/EodashItemFilter-CugWNQ86.js +194 -0
  27. package/dist/client/EodashLayerControl-53WghA8G.js +110 -0
  28. package/dist/client/EodashMap-CQnOePpy.js +486 -0
  29. package/dist/client/EodashMapBtns-uaRwFtfB.js +66 -0
  30. package/dist/client/EodashProcess-cF0unIy8.js +1477 -0
  31. package/dist/client/ExportState-BT8MLAW7.js +644 -0
  32. package/dist/client/Footer-C6GUG84G.js +141 -0
  33. package/dist/client/Header-D2dtCWp8.js +437 -0
  34. package/dist/client/IframeWrapper-BgM9aU8f.js +28 -0
  35. package/dist/client/MobileLayout-BAo8Wr8T.js +1210 -0
  36. package/dist/client/PopUp-Bm01q7Ko.js +389 -0
  37. package/dist/client/VImg-B8AbetCE.js +384 -0
  38. package/dist/client/VMain-DnGlQUyr.js +43 -0
  39. package/dist/client/VOverlay-B8Qj7LRG.js +1453 -0
  40. package/dist/client/WidgetsContainer-CwXRRLS1.js +83 -0
  41. package/dist/client/asWebComponent-DUUoR7MZ.js +11621 -0
  42. package/dist/client/eo-dash.js +2 -6
  43. package/dist/client/forwardRefs-CZJhEAKW.js +245 -0
  44. package/dist/client/index-DlIO7sJ3.js +199 -0
  45. package/dist/client/ssrBoot-BP7SYRyC.js +22 -0
  46. package/dist/client/style.css +2 -2
  47. package/dist/client/transition-BiR8wMn1.js +37 -0
  48. package/dist/node/cli.js +4 -4
  49. package/dist/node/types.d.ts +2 -0
  50. package/dist/types/core/client/App.vue.d.ts +7 -0
  51. package/dist/types/core/client/asWebComponent.d.ts +9 -0
  52. package/dist/types/core/client/components/DashboardLayout.vue.d.ts +2 -0
  53. package/dist/types/core/client/components/DynamicWebComponent.vue.d.ts +18 -0
  54. package/dist/types/core/client/components/ErrorAlert.vue.d.ts +2 -0
  55. package/dist/types/core/client/components/Footer.vue.d.ts +2 -0
  56. package/dist/types/core/client/components/Header.vue.d.ts +2 -0
  57. package/dist/types/core/client/components/IframeWrapper.vue.d.ts +7 -0
  58. package/dist/types/core/client/components/Loading.vue.d.ts +2 -0
  59. package/dist/types/core/client/components/MobileLayout.vue.d.ts +2 -0
  60. package/dist/types/core/client/composables/DefineEodash.d.ts +2 -0
  61. package/dist/types/core/client/composables/DefineTemplate.d.ts +15 -0
  62. package/dist/types/core/client/composables/DefineWidgets.d.ts +14 -0
  63. package/dist/types/core/client/composables/EodashMap.d.ts +5 -0
  64. package/dist/types/core/client/composables/index.d.ts +30 -0
  65. package/dist/types/core/client/eodash.d.ts +8 -0
  66. package/dist/types/core/client/main.d.ts +2 -0
  67. package/dist/types/core/client/plugins/axios.d.ts +2 -0
  68. package/dist/types/core/client/plugins/index.d.ts +3 -0
  69. package/dist/types/core/client/plugins/vuetify.d.ts +82 -0
  70. package/dist/types/core/client/render.d.ts +1 -0
  71. package/dist/types/core/client/store/Actions.d.ts +12 -0
  72. package/dist/types/core/client/store/States.d.ts +22 -0
  73. package/dist/types/core/client/store/index.d.ts +2 -0
  74. package/dist/types/core/client/store/stac.d.ts +25 -0
  75. package/dist/types/core/client/types.d.ts +279 -0
  76. package/dist/types/core/client/utils/createLayers.d.ts +45 -0
  77. package/dist/types/core/client/utils/eodashSTAC.d.ts +82 -0
  78. package/dist/types/core/client/utils/helpers.d.ts +84 -0
  79. package/dist/types/core/client/utils/index.d.ts +2 -0
  80. package/dist/types/core/client/utils/keys.d.ts +6 -0
  81. package/dist/types/core/client/utils/states.d.ts +14 -0
  82. package/dist/types/core/client/views/Dashboard.vue.d.ts +9 -0
  83. package/dist/types/widgets/EodashDatePicker.vue.d.ts +7 -0
  84. package/dist/types/widgets/EodashItemFilter.vue.d.ts +42 -0
  85. package/dist/types/widgets/EodashLayerControl.vue.d.ts +11 -0
  86. package/dist/types/widgets/EodashLayoutSwitcher.vue.d.ts +9 -0
  87. package/dist/types/widgets/EodashMap.vue.d.ts +7 -0
  88. package/dist/types/widgets/EodashMapBtns.vue.d.ts +11 -0
  89. package/dist/types/widgets/EodashStacInfo.vue.d.ts +21 -0
  90. package/dist/types/widgets/EodashTools.vue.d.ts +15 -0
  91. package/dist/types/widgets/ExportState.vue.d.ts +7 -0
  92. package/dist/types/widgets/PopUp.vue.d.ts +22 -0
  93. package/dist/types/widgets/WidgetsContainer.vue.d.ts +7 -0
  94. package/package.json +58 -37
  95. package/widgets/EodashDatePicker.vue +128 -100
  96. package/widgets/EodashItemFilter.vue +149 -47
  97. package/widgets/EodashLayerControl.vue +98 -0
  98. package/widgets/EodashMap.vue +98 -122
  99. package/widgets/EodashMapBtns.vue +24 -7
  100. package/widgets/EodashProcess.vue +151 -0
  101. package/widgets/ExportState.vue +15 -11
  102. package/core/client/SuspensedDashboard.ce.vue +0 -105
  103. package/dist/client/DashboardLayout-CKOExc7r.js +0 -156
  104. package/dist/client/DynamicWebComponent-m1Zbbw6n.js +0 -57
  105. package/dist/client/EodashDatePicker-CGdJRGZJ.js +0 -252
  106. package/dist/client/EodashItemFilter-BjM_LHaE.js +0 -63
  107. package/dist/client/EodashMap-61UMC8sv.js +0 -86917
  108. package/dist/client/EodashMapBtns-DVITfAFx.js +0 -36
  109. package/dist/client/ExportState-DhpK09GR.js +0 -558
  110. package/dist/client/Footer-CIwjaddz.js +0 -115
  111. package/dist/client/Header-BcM-pZFi.js +0 -350
  112. package/dist/client/IframeWrapper-CAe6HPqe.js +0 -19
  113. package/dist/client/MobileLayout-DcZOQX8r.js +0 -945
  114. package/dist/client/PopUp-DCaITceG.js +0 -300
  115. package/dist/client/VImg-C-I_7puM.js +0 -291
  116. package/dist/client/VMain-Cd3P0YTG.js +0 -39
  117. package/dist/client/VOverlay-AcvFgk39.js +0 -967
  118. package/dist/client/WidgetsContainer-B0-q0EMO.js +0 -129
  119. package/dist/client/_commonjsHelpers-DaMA6jEr.js +0 -8
  120. package/dist/client/asWebComponent-zuKR9I1w.js +0 -20361
  121. package/dist/client/basedecoder-DHcBySSe-BmCFNFnw.js +0 -88
  122. package/dist/client/decoder-CP4lv0Kb-DdKalImK.js +0 -10
  123. package/dist/client/deflate-BXt-9JA_-CWfClgpK.js +0 -10
  124. package/dist/client/eodashSTAC-DGB50vNk.js +0 -2788
  125. package/dist/client/eox-itemfilter-TaBxgqq_.js +0 -7565
  126. package/dist/client/eox-stacinfo-l7ALSV90.js +0 -13969
  127. package/dist/client/forwardRefs-BnxE4iKQ.js +0 -185
  128. package/dist/client/index-hSIi5Ygk.js +0 -153
  129. package/dist/client/jpeg-BAgeD1d3-oeHbFPUL.js +0 -514
  130. package/dist/client/lerc-DzVumYtB-cTUap6k_.js +0 -1027
  131. package/dist/client/lzw-LAGDNbSC-DkP96qO9.js +0 -84
  132. package/dist/client/packbits-BlDR4Kj5-C66n1-zr.js +0 -24
  133. package/dist/client/pako.esm-CB1uQYY0-DB0PYm1P.js +0 -1081
  134. package/dist/client/raw-CMGvRjfu-BRi6E4i1.js +0 -9
  135. package/dist/client/ssrBoot-D3KF5Thc.js +0 -17
  136. package/dist/client/transition-D3a4tiJv.js +0 -34
  137. package/dist/client/webfontloader-qotgY98I.js +0 -435
  138. package/dist/client/webimage-BM_pbLN3-L2cGWK5l.js +0 -19
@@ -1,6 +1,2 @@
1
- import { bz as a, bA as e, bB as o } from "./asWebComponent-zuKR9I1w.js";
2
- export {
3
- a as Eodash,
4
- e as register,
5
- o as store
6
- };
1
+ export { aQ as Eodash, aR as register, aS as store } from './asWebComponent-DUUoR7MZ.js';
2
+ import 'vue';
@@ -0,0 +1,245 @@
1
+ import { shallowRef, computed, watch } from 'vue';
2
+ import { p as propsFactory, aC as getCurrentInstance } from './asWebComponent-DUUoR7MZ.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-DUUoR7MZ.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 };