@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,191 @@
1
+ import { defineComponent, h, mergeProps, nextTick, onMounted, onBeforeUnmount, onActivated, onDeactivated, ref, watch, } from 'vue';
2
+ import { createColorPicker, createGauge, createSwipeDeck, createTransferList, createTour, createMarquee, tourHostProps, marqueeHostProps, } from '@getcortexlabs/mavis-core/vue';
3
+ import { MBox, MColumn, MRow } from './layout.js';
4
+ import { MStack } from './MStack.js';
5
+ import { MCard } from './MCard.js';
6
+ import { MText } from './MText.js';
7
+ import { MInput } from './MInput.js';
8
+ import { MImage } from './MImage.js';
9
+ import { MButton } from './MButton.js';
10
+ import { MSlider } from './MSlider.js';
11
+ import { MCheckbox } from './MCheckbox.js';
12
+ import { MNumberFlow } from './interactive.js';
13
+ import { MPopover } from './MPopover.js';
14
+ const GaugeFallback = defineComponent({
15
+ props: {
16
+ geometry: { type: Object, required: true },
17
+ size: Number,
18
+ strokeWidth: Number,
19
+ color: String,
20
+ track: String,
21
+ hidden: Boolean,
22
+ },
23
+ setup(props) {
24
+ return () => h('svg', {
25
+ viewBox: props.geometry.viewBox.join(' '),
26
+ width: '100%',
27
+ height: '100%',
28
+ 'aria-hidden': true,
29
+ style: { gridArea: '1 / 1', visibility: props.hidden ? 'hidden' : 'visible' },
30
+ }, [
31
+ h('path', {
32
+ d: props.geometry.path,
33
+ fill: 'none',
34
+ stroke: props.track,
35
+ 'stroke-width': props.strokeWidth,
36
+ 'stroke-linecap': 'round',
37
+ }),
38
+ h('path', {
39
+ d: props.geometry.path,
40
+ fill: 'none',
41
+ stroke: props.color,
42
+ 'stroke-width': props.strokeWidth,
43
+ 'stroke-linecap': 'round',
44
+ pathLength: 1,
45
+ 'stroke-dasharray': `${props.geometry.ratio} 1`,
46
+ }),
47
+ ]);
48
+ },
49
+ });
50
+ const TourHost = defineComponent({
51
+ inheritAttrs: false,
52
+ props: tourHostProps,
53
+ setup(props, { attrs, slots }) {
54
+ let saved = null, lastFocused = null;
55
+ const remember = (event) => {
56
+ if (props.active)
57
+ return;
58
+ const element = event.target instanceof Element
59
+ ? event.target.closest('button, a[href], input, select, textarea, [tabindex]')
60
+ : null;
61
+ if (element)
62
+ lastFocused = element;
63
+ };
64
+ onMounted(() => {
65
+ document.addEventListener('focusin', remember, true);
66
+ document.addEventListener('pointerdown', remember, true);
67
+ });
68
+ onBeforeUnmount(() => {
69
+ document.removeEventListener('focusin', remember, true);
70
+ document.removeEventListener('pointerdown', remember, true);
71
+ });
72
+ watch(() => props.active, (active, wasActive) => {
73
+ if (typeof document === 'undefined')
74
+ return;
75
+ if (active && !wasActive)
76
+ saved =
77
+ document.activeElement instanceof HTMLElement &&
78
+ document.activeElement !== document.body
79
+ ? document.activeElement
80
+ : lastFocused;
81
+ else if (!active)
82
+ void nextTick(() => {
83
+ if (!props.active && props.restoreFocus && saved?.isConnected)
84
+ saved.focus({ preventScroll: true });
85
+ saved = null;
86
+ });
87
+ }, { immediate: true, flush: 'pre' });
88
+ return () => h('div', attrs, slots.default?.());
89
+ },
90
+ });
91
+ const TargetHost = defineComponent({
92
+ inheritAttrs: false,
93
+ props: tourHostProps,
94
+ setup(props, { attrs, slots }) {
95
+ const root = ref();
96
+ const reveal = () => {
97
+ if (props.active)
98
+ root.value?.scrollIntoView({ block: 'nearest', inline: 'nearest', behavior: 'instant' });
99
+ };
100
+ watch(() => props.active, () => void nextTick(reveal), { flush: 'post' });
101
+ onMounted(reveal);
102
+ return () => h('div', mergeProps(attrs, { ref: root }), slots.default?.());
103
+ },
104
+ });
105
+ const MarqueeHost = defineComponent({
106
+ inheritAttrs: false,
107
+ props: marqueeHostProps,
108
+ emits: ['environment'],
109
+ setup(_props, { attrs, slots, emit }) {
110
+ const root = ref();
111
+ let media, resize, intersection;
112
+ let hovered = false, focused = false, visible = true, attached = false;
113
+ const update = () => emit('environment', {
114
+ reduced: media?.matches ?? true,
115
+ paused: !attached || document.hidden || hovered || focused || !visible,
116
+ width: root.value?.clientWidth ?? 0,
117
+ });
118
+ function attach() {
119
+ if (attached || !root.value)
120
+ return;
121
+ attached = true;
122
+ media = matchMedia('(prefers-reduced-motion: reduce)');
123
+ media.addEventListener('change', update);
124
+ resize = new ResizeObserver(update);
125
+ resize.observe(root.value);
126
+ intersection = new IntersectionObserver(([entry]) => {
127
+ visible = entry?.isIntersecting ?? false;
128
+ update();
129
+ });
130
+ intersection.observe(root.value);
131
+ document.addEventListener('visibilitychange', update);
132
+ update();
133
+ }
134
+ function detach() {
135
+ attached = false;
136
+ media?.removeEventListener('change', update);
137
+ resize?.disconnect();
138
+ intersection?.disconnect();
139
+ document.removeEventListener('visibilitychange', update);
140
+ update();
141
+ }
142
+ onMounted(attach);
143
+ onActivated(attach);
144
+ onDeactivated(detach);
145
+ onBeforeUnmount(detach);
146
+ return () => h('div', mergeProps(attrs, {
147
+ ref: root,
148
+ style: { overflow: 'hidden', minWidth: 0, width: '100%' },
149
+ onMouseenter: () => {
150
+ hovered = true;
151
+ update();
152
+ },
153
+ onMouseleave: () => {
154
+ hovered = false;
155
+ update();
156
+ },
157
+ onFocusin: () => {
158
+ focused = true;
159
+ update();
160
+ },
161
+ onFocusout: (event) => {
162
+ focused =
163
+ event.relatedTarget instanceof Node && !!root.value?.contains(event.relatedTarget);
164
+ update();
165
+ },
166
+ }), slots.default?.());
167
+ },
168
+ });
169
+ const ui = {
170
+ Box: MBox,
171
+ Column: MColumn,
172
+ Row: MRow,
173
+ Stack: MStack,
174
+ Card: MCard,
175
+ Text: MText,
176
+ Input: MInput,
177
+ Image: MImage,
178
+ Button: MButton,
179
+ Slider: MSlider,
180
+ Checkbox: MCheckbox,
181
+ NumberFlow: MNumberFlow,
182
+ GaugeFallback,
183
+ MarqueeHost,
184
+ };
185
+ export const MColorPicker = createColorPicker(ui, 'web');
186
+ export const MGauge = createGauge(ui, 'web');
187
+ export const MSwipeDeck = createSwipeDeck(ui, 'web');
188
+ export const MTransferList = createTransferList(ui, 'web');
189
+ export const MMarquee = createMarquee(ui, 'web');
190
+ export const { MTour, MTourTarget } = createTour({ ...ui, Popover: MPopover, Host: TourHost, TargetHost }, 'web');
191
+ //# sourceMappingURL=creative.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"creative.js","sourceRoot":"","sources":["../../src/components/creative.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,CAAC,EACD,UAAU,EACV,QAAQ,EACR,SAAS,EACT,eAAe,EACf,WAAW,EACX,aAAa,EACb,GAAG,EACH,KAAK,GAEN,MAAM,KAAK,CAAA;AACZ,OAAO,EACL,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,UAAU,EACV,aAAa,EACb,aAAa,EACb,gBAAgB,GACjB,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC,MAAM,aAAa,GAAG,eAAe,CAAC;IACpC,KAAK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,CAAC,CAAA;gBACpF,MAAM,EAAE,CAAA;YACV,CAAC;SACF,CAAC,EACF,KAAK,CAAC,OAAO,EAAE,EAAE,CAClB,CAAA;IACL,CAAC;CACF,CAAC,CAAA;AACF,MAAM,EAAE,GAAG;IACT,GAAG,EAAE,IAAI;IACT,MAAM,EAAE,OAAO;IACf,GAAG,EAAE,IAAI;IACT,KAAK,EAAE,MAAM;IACb,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,KAAK;IACX,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,OAAO;IACf,MAAM,EAAE,OAAO;IACf,QAAQ,EAAE,SAAS;IACnB,UAAU,EAAE,WAAW;IACvB,aAAa;IACb,WAAW;CACZ,CAAA;AACD,MAAM,CAAC,MAAM,YAAY,GAAG,iBAAiB,CAAC,EAAE,EAAE,KAAK,CAAC,CAAA;AACxD,MAAM,CAAC,MAAM,MAAM,GAAG,WAAW,CAAC,EAAE,EAAE,KAAK,CAAC,CAAA;AAC5C,MAAM,CAAC,MAAM,UAAU,GAAG,eAAe,CAAC,EAAE,EAAE,KAAK,CAAC,CAAA;AACpD,MAAM,CAAC,MAAM,aAAa,GAAG,kBAAkB,CAAC,EAAE,EAAE,KAAK,CAAC,CAAA;AAC1D,MAAM,CAAC,MAAM,QAAQ,GAAG,aAAa,CAAC,EAAE,EAAE,KAAK,CAAC,CAAA;AAChD,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,UAAU,CAC9C,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EACxD,KAAK,CACN,CAAA"}
@@ -0,0 +1,474 @@
1
+ export declare const MDonutChart: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ id: StringConstructor;
3
+ label: {
4
+ type: StringConstructor;
5
+ required: true;
6
+ };
7
+ segments: {
8
+ type: import("vue").PropType<readonly import("@getcortexlabs/mavis-core").DonutSegment[]>;
9
+ required: true;
10
+ };
11
+ modelValue: {
12
+ type: import("vue").PropType<string | null>;
13
+ default: null;
14
+ };
15
+ size: {
16
+ type: NumberConstructor;
17
+ default: number;
18
+ };
19
+ strokeWidth: {
20
+ type: NumberConstructor;
21
+ default: number;
22
+ };
23
+ animated: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ animateNumber: BooleanConstructor;
28
+ disabled: BooleanConstructor;
29
+ totalLabel: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ emptyLabel: {
34
+ type: StringConstructor;
35
+ default: string;
36
+ };
37
+ formatValue: import("vue").PropType<(value: number) => string>;
38
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
39
+ [key: string]: any;
40
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
41
+ 'update:modelValue': (_value: string | null) => true;
42
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
43
+ id: StringConstructor;
44
+ label: {
45
+ type: StringConstructor;
46
+ required: true;
47
+ };
48
+ segments: {
49
+ type: import("vue").PropType<readonly import("@getcortexlabs/mavis-core").DonutSegment[]>;
50
+ required: true;
51
+ };
52
+ modelValue: {
53
+ type: import("vue").PropType<string | null>;
54
+ default: null;
55
+ };
56
+ size: {
57
+ type: NumberConstructor;
58
+ default: number;
59
+ };
60
+ strokeWidth: {
61
+ type: NumberConstructor;
62
+ default: number;
63
+ };
64
+ animated: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ };
68
+ animateNumber: BooleanConstructor;
69
+ disabled: BooleanConstructor;
70
+ totalLabel: {
71
+ type: StringConstructor;
72
+ default: string;
73
+ };
74
+ emptyLabel: {
75
+ type: StringConstructor;
76
+ default: string;
77
+ };
78
+ formatValue: import("vue").PropType<(value: number) => string>;
79
+ }>> & Readonly<{
80
+ "onUpdate:modelValue"?: ((_value: string | null) => any) | undefined;
81
+ }>, {
82
+ disabled: boolean;
83
+ size: number;
84
+ modelValue: string | null;
85
+ animated: boolean;
86
+ emptyLabel: string;
87
+ strokeWidth: number;
88
+ animateNumber: boolean;
89
+ totalLabel: string;
90
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
91
+ export declare const MSparkline: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
92
+ id: StringConstructor;
93
+ label: {
94
+ type: StringConstructor;
95
+ required: true;
96
+ };
97
+ points: {
98
+ type: import("vue").PropType<readonly import("@getcortexlabs/mavis-core").SparklinePoint[]>;
99
+ required: true;
100
+ };
101
+ domain: import("vue").PropType<readonly [number, number]>;
102
+ height: {
103
+ type: NumberConstructor;
104
+ default: number;
105
+ };
106
+ color: StringConstructor;
107
+ animated: {
108
+ type: BooleanConstructor;
109
+ default: boolean;
110
+ };
111
+ showData: BooleanConstructor;
112
+ dataLabel: {
113
+ type: StringConstructor;
114
+ default: string;
115
+ };
116
+ emptyLabel: {
117
+ type: StringConstructor;
118
+ default: string;
119
+ };
120
+ formatValue: import("vue").PropType<(value: number) => string>;
121
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
122
+ [key: string]: any;
123
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
124
+ id: StringConstructor;
125
+ label: {
126
+ type: StringConstructor;
127
+ required: true;
128
+ };
129
+ points: {
130
+ type: import("vue").PropType<readonly import("@getcortexlabs/mavis-core").SparklinePoint[]>;
131
+ required: true;
132
+ };
133
+ domain: import("vue").PropType<readonly [number, number]>;
134
+ height: {
135
+ type: NumberConstructor;
136
+ default: number;
137
+ };
138
+ color: StringConstructor;
139
+ animated: {
140
+ type: BooleanConstructor;
141
+ default: boolean;
142
+ };
143
+ showData: BooleanConstructor;
144
+ dataLabel: {
145
+ type: StringConstructor;
146
+ default: string;
147
+ };
148
+ emptyLabel: {
149
+ type: StringConstructor;
150
+ default: string;
151
+ };
152
+ formatValue: import("vue").PropType<(value: number) => string>;
153
+ }>> & Readonly<{}>, {
154
+ height: number;
155
+ animated: boolean;
156
+ emptyLabel: string;
157
+ showData: boolean;
158
+ dataLabel: string;
159
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
160
+ export declare const MGradientBackground: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
161
+ angle: {
162
+ type: NumberConstructor;
163
+ default: number;
164
+ };
165
+ animated: {
166
+ type: BooleanConstructor;
167
+ default: boolean;
168
+ };
169
+ active: BooleanConstructor;
170
+ duration: {
171
+ type: NumberConstructor;
172
+ default: number;
173
+ };
174
+ id: StringConstructor;
175
+ colors: {
176
+ type: import("vue").PropType<readonly string[]>;
177
+ default: () => string[];
178
+ };
179
+ height: {
180
+ type: NumberConstructor;
181
+ default: number;
182
+ };
183
+ radius: {
184
+ type: import("vue").PropType<"none" | "sm" | "md" | "lg" | "full">;
185
+ default: string;
186
+ };
187
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
188
+ [key: string]: any;
189
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
190
+ angle: {
191
+ type: NumberConstructor;
192
+ default: number;
193
+ };
194
+ animated: {
195
+ type: BooleanConstructor;
196
+ default: boolean;
197
+ };
198
+ active: BooleanConstructor;
199
+ duration: {
200
+ type: NumberConstructor;
201
+ default: number;
202
+ };
203
+ id: StringConstructor;
204
+ colors: {
205
+ type: import("vue").PropType<readonly string[]>;
206
+ default: () => string[];
207
+ };
208
+ height: {
209
+ type: NumberConstructor;
210
+ default: number;
211
+ };
212
+ radius: {
213
+ type: import("vue").PropType<"none" | "sm" | "md" | "lg" | "full">;
214
+ default: string;
215
+ };
216
+ }>> & Readonly<{}>, {
217
+ angle: number;
218
+ radius: "sm" | "md" | "lg" | "none" | "full";
219
+ colors: readonly string[];
220
+ active: boolean;
221
+ duration: number;
222
+ height: number;
223
+ animated: boolean;
224
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, MParticleField: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
225
+ active: BooleanConstructor;
226
+ density: {
227
+ type: NumberConstructor;
228
+ default: number;
229
+ };
230
+ speed: {
231
+ type: NumberConstructor;
232
+ default: number;
233
+ };
234
+ lifetime: {
235
+ type: NumberConstructor;
236
+ default: number;
237
+ };
238
+ duration: NumberConstructor;
239
+ size: {
240
+ type: NumberConstructor;
241
+ default: number;
242
+ };
243
+ shape: {
244
+ type: import("vue").PropType<"circle" | "rectangle" | "ring">;
245
+ default: string;
246
+ };
247
+ backgroundColor: {
248
+ type: StringConstructor;
249
+ default: string;
250
+ };
251
+ id: StringConstructor;
252
+ colors: {
253
+ type: import("vue").PropType<readonly string[]>;
254
+ default: () => string[];
255
+ };
256
+ height: {
257
+ type: NumberConstructor;
258
+ default: number;
259
+ };
260
+ radius: {
261
+ type: import("vue").PropType<"none" | "sm" | "md" | "lg" | "full">;
262
+ default: string;
263
+ };
264
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
265
+ [key: string]: any;
266
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
267
+ active: BooleanConstructor;
268
+ density: {
269
+ type: NumberConstructor;
270
+ default: number;
271
+ };
272
+ speed: {
273
+ type: NumberConstructor;
274
+ default: number;
275
+ };
276
+ lifetime: {
277
+ type: NumberConstructor;
278
+ default: number;
279
+ };
280
+ duration: NumberConstructor;
281
+ size: {
282
+ type: NumberConstructor;
283
+ default: number;
284
+ };
285
+ shape: {
286
+ type: import("vue").PropType<"circle" | "rectangle" | "ring">;
287
+ default: string;
288
+ };
289
+ backgroundColor: {
290
+ type: StringConstructor;
291
+ default: string;
292
+ };
293
+ id: StringConstructor;
294
+ colors: {
295
+ type: import("vue").PropType<readonly string[]>;
296
+ default: () => string[];
297
+ };
298
+ height: {
299
+ type: NumberConstructor;
300
+ default: number;
301
+ };
302
+ radius: {
303
+ type: import("vue").PropType<"none" | "sm" | "md" | "lg" | "full">;
304
+ default: string;
305
+ };
306
+ }>> & Readonly<{}>, {
307
+ radius: "sm" | "md" | "lg" | "none" | "full";
308
+ colors: readonly string[];
309
+ shape: "circle" | "rectangle" | "ring";
310
+ active: boolean;
311
+ size: number;
312
+ backgroundColor: string;
313
+ height: number;
314
+ density: number;
315
+ speed: number;
316
+ lifetime: number;
317
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, MConfetti: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
318
+ id: StringConstructor;
319
+ colors: {
320
+ type: import("vue").PropType<readonly string[]>;
321
+ default: () => string[];
322
+ };
323
+ trigger: {
324
+ type: (NumberConstructor | StringConstructor)[];
325
+ default: number;
326
+ };
327
+ count: {
328
+ type: NumberConstructor;
329
+ default: number;
330
+ };
331
+ disabled: BooleanConstructor;
332
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
333
+ [key: string]: any;
334
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
335
+ burst: () => true;
336
+ skipped: (_reason: "disabled" | "reduced-motion" | "unavailable") => true;
337
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
338
+ id: StringConstructor;
339
+ colors: {
340
+ type: import("vue").PropType<readonly string[]>;
341
+ default: () => string[];
342
+ };
343
+ trigger: {
344
+ type: (NumberConstructor | StringConstructor)[];
345
+ default: number;
346
+ };
347
+ count: {
348
+ type: NumberConstructor;
349
+ default: number;
350
+ };
351
+ disabled: BooleanConstructor;
352
+ }>> & Readonly<{
353
+ onBurst?: (() => any) | undefined;
354
+ onSkipped?: ((_reason: "unavailable" | "reduced-motion" | "disabled") => any) | undefined;
355
+ }>, {
356
+ colors: readonly string[];
357
+ disabled: boolean;
358
+ count: number;
359
+ trigger: string | number;
360
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
361
+ export declare const MKanban: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
362
+ id: StringConstructor;
363
+ label: {
364
+ type: StringConstructor;
365
+ required: true;
366
+ };
367
+ columns: {
368
+ type: import("vue").PropType<readonly import("@getcortexlabs/mavis-core").KanbanColumn[]>;
369
+ required: true;
370
+ };
371
+ modelValue: {
372
+ type: import("vue").PropType<readonly import("@getcortexlabs/mavis-core").KanbanCard[]>;
373
+ required: true;
374
+ };
375
+ query: {
376
+ type: StringConstructor;
377
+ default: string;
378
+ };
379
+ disabled: BooleanConstructor;
380
+ animated: {
381
+ type: BooleanConstructor;
382
+ default: boolean;
383
+ };
384
+ draggable: {
385
+ type: BooleanConstructor;
386
+ default: boolean;
387
+ };
388
+ moveLabel: {
389
+ type: StringConstructor;
390
+ default: string;
391
+ };
392
+ upLabel: {
393
+ type: StringConstructor;
394
+ default: string;
395
+ };
396
+ downLabel: {
397
+ type: StringConstructor;
398
+ default: string;
399
+ };
400
+ emptyLabel: {
401
+ type: StringConstructor;
402
+ default: string;
403
+ };
404
+ fullLabel: {
405
+ type: StringConstructor;
406
+ default: string;
407
+ };
408
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
409
+ [key: string]: any;
410
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
411
+ 'update:modelValue': (_cards: import("@getcortexlabs/mavis-core").KanbanCard[]) => true;
412
+ move: (_move: import("@getcortexlabs/mavis-core").KanbanMove) => true;
413
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
414
+ id: StringConstructor;
415
+ label: {
416
+ type: StringConstructor;
417
+ required: true;
418
+ };
419
+ columns: {
420
+ type: import("vue").PropType<readonly import("@getcortexlabs/mavis-core").KanbanColumn[]>;
421
+ required: true;
422
+ };
423
+ modelValue: {
424
+ type: import("vue").PropType<readonly import("@getcortexlabs/mavis-core").KanbanCard[]>;
425
+ required: true;
426
+ };
427
+ query: {
428
+ type: StringConstructor;
429
+ default: string;
430
+ };
431
+ disabled: BooleanConstructor;
432
+ animated: {
433
+ type: BooleanConstructor;
434
+ default: boolean;
435
+ };
436
+ draggable: {
437
+ type: BooleanConstructor;
438
+ default: boolean;
439
+ };
440
+ moveLabel: {
441
+ type: StringConstructor;
442
+ default: string;
443
+ };
444
+ upLabel: {
445
+ type: StringConstructor;
446
+ default: string;
447
+ };
448
+ downLabel: {
449
+ type: StringConstructor;
450
+ default: string;
451
+ };
452
+ emptyLabel: {
453
+ type: StringConstructor;
454
+ default: string;
455
+ };
456
+ fullLabel: {
457
+ type: StringConstructor;
458
+ default: string;
459
+ };
460
+ }>> & Readonly<{
461
+ onMove?: ((_move: import("@getcortexlabs/mavis-core").KanbanMove) => any) | undefined;
462
+ "onUpdate:modelValue"?: ((_cards: import("@getcortexlabs/mavis-core").KanbanCard[]) => any) | undefined;
463
+ }>, {
464
+ query: string;
465
+ disabled: boolean;
466
+ animated: boolean;
467
+ emptyLabel: string;
468
+ draggable: boolean;
469
+ moveLabel: string;
470
+ upLabel: string;
471
+ downLabel: string;
472
+ fullLabel: string;
473
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
474
+ //# sourceMappingURL=dashboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../src/components/dashboard.ts"],"names":[],"mappings":"AA6VA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAA8B,CAAA;AACtD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAA6B,CAAA;AACpD,eAAO,MAAQ,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8EAAE,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAAsC,CAAA;AACnG,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAA0D,CAAA"}