@getcortexlabs/mavis-web 0.1.0-rc.11.1 → 0.1.0-rc.12

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 (46) hide show
  1. package/README.md +4 -4
  2. package/dist/components/MChip.d.ts +1 -1
  3. package/dist/components/MCombobox.d.ts +1 -1
  4. package/dist/components/MDialog.d.ts +2 -2
  5. package/dist/components/MFilePicker.d.ts +3 -3
  6. package/dist/components/MLink.d.ts +1 -1
  7. package/dist/components/MListItem.d.ts +1 -1
  8. package/dist/components/MPinInput.d.ts +57 -0
  9. package/dist/components/MPinInput.d.ts.map +1 -0
  10. package/dist/components/MPinInput.js +159 -0
  11. package/dist/components/MPinInput.js.map +1 -0
  12. package/dist/components/MPopover.d.ts.map +1 -1
  13. package/dist/components/MPopover.js +29 -19
  14. package/dist/components/MPopover.js.map +1 -1
  15. package/dist/components/MResizablePanels.d.ts +1 -1
  16. package/dist/components/MStack.d.ts +6 -6
  17. package/dist/components/MTimePicker.d.ts +4 -4
  18. package/dist/components/configurator.d.ts +1 -1
  19. package/dist/components/creative.d.ts +614 -0
  20. package/dist/components/creative.d.ts.map +1 -0
  21. package/dist/components/creative.js +191 -0
  22. package/dist/components/creative.js.map +1 -0
  23. package/dist/components/dashboard.d.ts +474 -0
  24. package/dist/components/dashboard.d.ts.map +1 -0
  25. package/dist/components/dashboard.js +286 -0
  26. package/dist/components/dashboard.js.map +1 -0
  27. package/dist/components/discovery.d.ts +2 -2
  28. package/dist/components/screen-components.d.ts +502 -0
  29. package/dist/components/screen-components.d.ts.map +1 -0
  30. package/dist/components/screen-components.js +67 -0
  31. package/dist/components/screen-components.js.map +1 -0
  32. package/dist/index.d.ts +4 -1
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +23 -1
  35. package/dist/index.js.map +1 -1
  36. package/dist/use-motion-surface.d.ts.map +1 -1
  37. package/dist/use-motion-surface.js +27 -8
  38. package/dist/use-motion-surface.js.map +1 -1
  39. package/package.json +3 -3
  40. package/src/components/MPinInput.ts +194 -0
  41. package/src/components/MPopover.ts +33 -19
  42. package/src/components/creative.ts +240 -0
  43. package/src/components/dashboard.ts +353 -0
  44. package/src/components/screen-components.ts +86 -0
  45. package/src/index.ts +64 -0
  46. package/src/use-motion-surface.ts +40 -15
@@ -0,0 +1,286 @@
1
+ import { defineComponent, h, inject, markRaw, mergeProps, onMounted, onBeforeUnmount, onActivated, onDeactivated, onScopeDispose, ref, watch, } from 'vue';
2
+ import { createDashboardShape, createDonutChart, createSparkline, createDashboardEffects, createKanban, dashboardShapeProps, dashboardEnvironmentProps, dashboardPlotProps, kanbanRegistryKey, kanbanZoneProps, kanbanDragProps, } from '@getcortexlabs/mavis-core/vue';
3
+ import { createMotionSurface } from '@getcortexlabs/mavis-core/experimental';
4
+ import { MBox, MColumn, MRow } from './layout.js';
5
+ import { MStack } from './MStack.js';
6
+ import { MText } from './MText.js';
7
+ import { MButton } from './MButton.js';
8
+ import { MNumberFlow } from './interactive.js';
9
+ import { MMenu } from './navigation.js';
10
+ const Fallback = defineComponent({
11
+ props: { ...dashboardShapeProps, hidden: Boolean },
12
+ setup(props) {
13
+ return () => h('svg', {
14
+ viewBox: props.viewBox.join(' '),
15
+ preserveAspectRatio: 'none',
16
+ 'aria-hidden': true,
17
+ focusable: false,
18
+ style: {
19
+ display: 'block',
20
+ position: 'absolute',
21
+ inset: 0,
22
+ width: '100%',
23
+ height: '100%',
24
+ visibility: props.hidden ? 'hidden' : undefined,
25
+ },
26
+ }, [
27
+ h('path', {
28
+ d: props.d,
29
+ fill: 'none',
30
+ stroke: props.color,
31
+ 'stroke-width': props.strokeWidth,
32
+ 'stroke-linecap': 'round',
33
+ 'stroke-linejoin': 'round',
34
+ pathLength: 1,
35
+ 'stroke-dasharray': `${Math.max(0, props.end - props.start)} 1`,
36
+ 'stroke-dashoffset': -props.start,
37
+ }),
38
+ ]);
39
+ },
40
+ });
41
+ const Environment = defineComponent({
42
+ inheritAttrs: false,
43
+ props: dashboardEnvironmentProps,
44
+ emits: ['environment'],
45
+ setup(_props, { attrs, slots, emit }) {
46
+ const root = ref();
47
+ let attached = false, visible = true, media, observer;
48
+ function update() {
49
+ emit('environment', {
50
+ reduced: media?.matches ?? true,
51
+ paused: !attached || document.hidden || !visible,
52
+ });
53
+ }
54
+ function connect() {
55
+ if (attached || !root.value)
56
+ return;
57
+ attached = true;
58
+ media = matchMedia('(prefers-reduced-motion: reduce)');
59
+ media.addEventListener('change', update);
60
+ document.addEventListener('visibilitychange', update);
61
+ observer = new IntersectionObserver(([entry]) => {
62
+ const next = entry?.isIntersecting ?? false;
63
+ if (next !== visible) {
64
+ visible = next;
65
+ update();
66
+ }
67
+ });
68
+ observer.observe(root.value);
69
+ update();
70
+ }
71
+ function disconnect() {
72
+ attached = false;
73
+ media?.removeEventListener('change', update);
74
+ observer?.disconnect();
75
+ document.removeEventListener('visibilitychange', update);
76
+ update();
77
+ }
78
+ onMounted(connect);
79
+ onActivated(connect);
80
+ onDeactivated(disconnect);
81
+ onBeforeUnmount(disconnect);
82
+ return () => h('div', mergeProps(attrs, { ref: root, style: { minWidth: 0, width: '100%' } }), slots.default?.());
83
+ },
84
+ });
85
+ const Zone = defineComponent({
86
+ inheritAttrs: false,
87
+ props: kanbanZoneProps,
88
+ setup(props, { attrs, slots }) {
89
+ const registry = inject(kanbanRegistryKey), root = ref();
90
+ onMounted(() => registry.zones.set(props.column, () => root.value?.getBoundingClientRect()));
91
+ onBeforeUnmount(() => registry.zones.delete(props.column));
92
+ return () => h('div', mergeProps(attrs, { ref: root, 'data-kanban-column': props.column }), slots.default?.());
93
+ },
94
+ });
95
+ const Drag = defineComponent({
96
+ inheritAttrs: false,
97
+ props: kanbanDragProps,
98
+ setup(props, { attrs, slots }) {
99
+ const registry = inject(kanbanRegistryKey), root = ref(), surface = markRaw(createMotionSurface()), dragging = ref(false);
100
+ let pointer, anchor, startX = 0, startY = 0, handle;
101
+ function end(commit = false) {
102
+ const was = dragging.value;
103
+ dragging.value = false;
104
+ const id = pointer;
105
+ pointer = undefined;
106
+ if (id !== undefined && handle?.hasPointerCapture(id))
107
+ handle.releasePointerCapture(id);
108
+ window.removeEventListener('keydown', escape);
109
+ window.removeEventListener('scroll', cancel, true);
110
+ window.removeEventListener('resize', cancel);
111
+ if (surface.available) {
112
+ if (props.animated && !commit)
113
+ surface.animate({ x: 0, y: 0, scale: 1 }, { type: 'spring', duration: 280, bounce: 0.12 });
114
+ else
115
+ surface.set({ x: 0, y: 0, scale: 1 });
116
+ }
117
+ if (was)
118
+ registry.finish(commit);
119
+ }
120
+ const cancel = () => end(false);
121
+ const escape = (e) => {
122
+ if (e.key === 'Escape') {
123
+ e.preventDefault();
124
+ cancel();
125
+ }
126
+ };
127
+ onMounted(() => {
128
+ registry.cards.set(props.cardId, () => root.value?.getBoundingClientRect());
129
+ registry.focus.set(props.cardId, () => root.value
130
+ ?.querySelector('button:not(:disabled)')
131
+ ?.focus({ preventScroll: true }));
132
+ });
133
+ onBeforeUnmount(() => {
134
+ cancel();
135
+ registry.cards.delete(props.cardId);
136
+ registry.focus.delete(props.cardId);
137
+ });
138
+ onDeactivated(cancel);
139
+ onScopeDispose(surface.use(() => () => {
140
+ if (dragging.value)
141
+ cancel();
142
+ }));
143
+ watch(() => props.disabled, (value) => {
144
+ if (value)
145
+ cancel();
146
+ });
147
+ return () => h('div', mergeProps(attrs, {
148
+ ref: root,
149
+ 'data-kanban-card': props.cardId,
150
+ style: { position: 'relative', zIndex: dragging.value ? 20 : undefined },
151
+ }), [
152
+ h(MBox, { motionSurface: surface }, () => h(MColumn, { gap: 'xs' }, () => [
153
+ h('button', {
154
+ type: 'button',
155
+ disabled: props.disabled,
156
+ 'aria-label': props.label,
157
+ 'data-kanban-handle': props.cardId,
158
+ style: {
159
+ touchAction: 'none',
160
+ cursor: props.disabled ? 'default' : dragging.value ? 'grabbing' : 'grab',
161
+ minHeight: '36px',
162
+ width: '100%',
163
+ borderRadius: '8px',
164
+ color: 'inherit',
165
+ background: 'transparent',
166
+ border: '0',
167
+ opacity: props.disabled ? 0.4 : 0.65,
168
+ },
169
+ onPointerdown: (e) => {
170
+ if (props.disabled || e.button !== 0 || !e.isPrimary || pointer !== undefined)
171
+ return;
172
+ e.preventDefault();
173
+ handle = e.currentTarget;
174
+ handle.focus({ preventScroll: true });
175
+ pointer = e.pointerId;
176
+ startX = e.clientX;
177
+ startY = e.clientY;
178
+ handle.setPointerCapture(pointer);
179
+ window.addEventListener('keydown', escape);
180
+ window.addEventListener('scroll', cancel, true);
181
+ window.addEventListener('resize', cancel);
182
+ },
183
+ onPointermove: (e) => {
184
+ if (e.pointerId !== pointer)
185
+ return;
186
+ const x = e.clientX - startX, y = e.clientY - startY;
187
+ if (!dragging.value && Math.hypot(x, y) >= 6) {
188
+ if (!registry.begin(props.cardId, cancel)) {
189
+ cancel();
190
+ return;
191
+ }
192
+ anchor = root.value?.getBoundingClientRect();
193
+ dragging.value = true;
194
+ }
195
+ if (dragging.value && surface.available) {
196
+ const current = root.value?.getBoundingClientRect();
197
+ surface.set({
198
+ x: x + (anchor && current ? anchor.x - current.x : 0),
199
+ y: y + (anchor && current ? anchor.y - current.y : 0),
200
+ scale: 1.02,
201
+ });
202
+ registry.move(x, y);
203
+ }
204
+ },
205
+ onPointerup: (e) => {
206
+ if (e.pointerId === pointer)
207
+ end(true);
208
+ },
209
+ onPointercancel: cancel,
210
+ onLostpointercapture: () => {
211
+ if (pointer !== undefined)
212
+ cancel();
213
+ },
214
+ onKeydown: (e) => {
215
+ const direction = {
216
+ ArrowUp: 'up',
217
+ ArrowDown: 'down',
218
+ ArrowLeft: 'left',
219
+ ArrowRight: 'right',
220
+ }[e.key];
221
+ if (direction && !props.disabled) {
222
+ e.preventDefault();
223
+ registry.keyboard(props.cardId, direction);
224
+ }
225
+ },
226
+ }, '⠿'),
227
+ ...(slots.default?.() ?? []),
228
+ ])),
229
+ ]);
230
+ },
231
+ });
232
+ const Plot = defineComponent({
233
+ inheritAttrs: false,
234
+ props: dashboardPlotProps,
235
+ emits: ['width'],
236
+ setup(props, { attrs, slots, emit }) {
237
+ const root = ref();
238
+ let observer;
239
+ function connect() {
240
+ if (observer || !root.value)
241
+ return;
242
+ const measure = () => emit('width', root.value?.clientWidth ?? 0);
243
+ observer = new ResizeObserver(measure);
244
+ observer.observe(root.value);
245
+ measure();
246
+ }
247
+ function disconnect() {
248
+ observer?.disconnect();
249
+ observer = undefined;
250
+ }
251
+ onMounted(connect);
252
+ onActivated(connect);
253
+ onDeactivated(disconnect);
254
+ onBeforeUnmount(disconnect);
255
+ return () => h('div', mergeProps(attrs, {
256
+ ref: root,
257
+ 'data-sparkline-plot': '',
258
+ style: {
259
+ height: props.height + 'px',
260
+ width: '100%',
261
+ minWidth: 0,
262
+ minHeight: 0,
263
+ display: 'grid',
264
+ position: 'relative',
265
+ overflow: 'hidden',
266
+ },
267
+ }), slots.default?.());
268
+ },
269
+ });
270
+ const ui = {
271
+ Box: MBox,
272
+ Column: MColumn,
273
+ Row: MRow,
274
+ Stack: MStack,
275
+ Text: MText,
276
+ Button: MButton,
277
+ NumberFlow: MNumberFlow,
278
+ Shape: createDashboardShape(MBox, Fallback, 'web'),
279
+ Environment,
280
+ Plot,
281
+ };
282
+ export const MDonutChart = createDonutChart(ui, 'web');
283
+ export const MSparkline = createSparkline(ui, 'web');
284
+ export const { MGradientBackground, MParticleField, MConfetti } = createDashboardEffects(ui, 'web');
285
+ export const MKanban = createKanban({ ...ui, Zone, Drag, Menu: MMenu }, 'web');
286
+ //# sourceMappingURL=dashboard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../src/components/dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,CAAC,EACD,MAAM,EACN,OAAO,EACP,UAAU,EACV,SAAS,EACT,eAAe,EACf,WAAW,EACX,aAAa,EACb,cAAc,EACd,GAAG,EACH,KAAK,GACN,MAAM,KAAK,CAAA;AACZ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AAE,KAAK,CAAC,CAAA;AACtD,MAAM,CAAC,MAAM,UAAU,GAAG,eAAe,CAAC,EAAE,EAAE,KAAK,CAAC,CAAA;AACpD,MAAM,CAAC,MAAM,EAAE,mBAAmB,EAAE,cAAc,EAAE,SAAS,EAAE,GAAG,sBAAsB,CAAC,EAAE,EAAE,KAAK,CAAC,CAAA;AACnG,MAAM,CAAC,MAAM,OAAO,GAAG,YAAY,CAAC,EAAE,GAAG,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,CAAA"}
@@ -101,10 +101,10 @@ export declare const MCalendar: import("vue").DefineComponent<import("vue").Extr
101
101
  locale: import("@getcortexlabs/mavis-core").DateLocale;
102
102
  min: `${number}-${number}-${number}`;
103
103
  max: `${number}-${number}-${number}`;
104
+ mode: "range" | "single";
104
105
  initialMonth: string;
105
106
  unavailableDates: readonly `${number}-${number}-${number}`[];
106
107
  firstDayOfWeek: number;
107
- mode: "range" | "single";
108
108
  invalidRangeLabel: string;
109
109
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, MRating: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
110
110
  label: {
@@ -264,8 +264,8 @@ export declare const MTreeView: import("vue").DefineComponent<import("vue").Extr
264
264
  default: string;
265
265
  };
266
266
  }>> & Readonly<{
267
- "onUpdate:modelValue"?: ((_key: import("@getcortexlabs/mavis-core").ChoiceValue) => any) | undefined;
268
267
  onLoad?: ((_node: import("@getcortexlabs/mavis-core").TreeNode) => any) | undefined;
268
+ "onUpdate:modelValue"?: ((_key: import("@getcortexlabs/mavis-core").ChoiceValue) => any) | undefined;
269
269
  "onUpdate:expanded"?: ((_keys: import("@getcortexlabs/mavis-core").ChoiceValue[]) => any) | undefined;
270
270
  }>, {
271
271
  expandedLabel: string;