@getcortexlabs/mavis-web 0.1.0-alpha.4 → 0.1.0-alpha.6
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 +5 -3
- package/dist/components/DateCalendar.d.ts +95 -0
- package/dist/components/DateCalendar.d.ts.map +1 -0
- package/dist/components/DateCalendar.js +157 -0
- package/dist/components/DateCalendar.js.map +1 -0
- package/dist/components/MAccordion.d.ts +19 -9
- package/dist/components/MAccordion.d.ts.map +1 -1
- package/dist/components/MAlert.d.ts +20 -10
- package/dist/components/MAlert.d.ts.map +1 -1
- package/dist/components/MAvatar.d.ts +13 -7
- package/dist/components/MAvatar.d.ts.map +1 -1
- package/dist/components/MBadge.d.ts +12 -6
- package/dist/components/MBadge.d.ts.map +1 -1
- package/dist/components/MButton.d.ts +129 -41
- package/dist/components/MButton.d.ts.map +1 -1
- package/dist/components/MButton.js +13 -8
- package/dist/components/MButton.js.map +1 -1
- package/dist/components/MCard.d.ts +89 -15
- package/dist/components/MCard.d.ts.map +1 -1
- package/dist/components/MCard.js +36 -30
- package/dist/components/MCard.js.map +1 -1
- package/dist/components/MCheckbox.d.ts +20 -10
- package/dist/components/MCheckbox.d.ts.map +1 -1
- package/dist/components/MCheckbox.js +22 -3
- package/dist/components/MCheckbox.js.map +1 -1
- package/dist/components/MChip.d.ts +22 -12
- package/dist/components/MChip.d.ts.map +1 -1
- package/dist/components/MCombobox.d.ts +282 -0
- package/dist/components/MCombobox.d.ts.map +1 -0
- package/dist/components/MCombobox.js +440 -0
- package/dist/components/MCombobox.js.map +1 -0
- package/dist/components/MDatePicker.d.ts +1302 -0
- package/dist/components/MDatePicker.d.ts.map +1 -0
- package/dist/components/MDatePicker.js +31 -0
- package/dist/components/MDatePicker.js.map +1 -0
- package/dist/components/MDialog.d.ts +7 -5
- package/dist/components/MDialog.d.ts.map +1 -1
- package/dist/components/MEmptyState.d.ts +19 -9
- package/dist/components/MEmptyState.d.ts.map +1 -1
- package/dist/components/MFilePicker.d.ts +112 -0
- package/dist/components/MFilePicker.d.ts.map +1 -0
- package/dist/components/MFilePicker.js +193 -0
- package/dist/components/MFilePicker.js.map +1 -0
- package/dist/components/MIcon.d.ts +4 -2
- package/dist/components/MIcon.d.ts.map +1 -1
- package/dist/components/MInput.d.ts +135 -63
- package/dist/components/MInput.d.ts.map +1 -1
- package/dist/components/MInput.js +20 -4
- package/dist/components/MInput.js.map +1 -1
- package/dist/components/MLink.d.ts +120 -0
- package/dist/components/MLink.d.ts.map +1 -0
- package/dist/components/MLink.js +75 -0
- package/dist/components/MLink.js.map +1 -0
- package/dist/components/MListItem.d.ts +26 -12
- package/dist/components/MListItem.d.ts.map +1 -1
- package/dist/components/MProgress.d.ts +18 -8
- package/dist/components/MProgress.d.ts.map +1 -1
- package/dist/components/MRadioGroup.d.ts +19 -9
- package/dist/components/MRadioGroup.d.ts.map +1 -1
- package/dist/components/MRadioGroup.js +22 -0
- package/dist/components/MRadioGroup.js.map +1 -1
- package/dist/components/MReveal.d.ts +71 -35
- package/dist/components/MReveal.d.ts.map +1 -1
- package/dist/components/MReveal.js +39 -50
- package/dist/components/MReveal.js.map +1 -1
- package/dist/components/MScreen.d.ts +12 -6
- package/dist/components/MScreen.d.ts.map +1 -1
- package/dist/components/MSegmentedControl.d.ts +19 -9
- package/dist/components/MSegmentedControl.d.ts.map +1 -1
- package/dist/components/MSelect.d.ts +21 -11
- package/dist/components/MSelect.d.ts.map +1 -1
- package/dist/components/MSeparator.d.ts +4 -2
- package/dist/components/MSeparator.d.ts.map +1 -1
- package/dist/components/MSheet.d.ts +18 -12
- package/dist/components/MSheet.d.ts.map +1 -1
- package/dist/components/MSheet.js +1 -1
- package/dist/components/MSheet.js.map +1 -1
- package/dist/components/MSkeleton.d.ts +16 -8
- package/dist/components/MSkeleton.d.ts.map +1 -1
- package/dist/components/MSlider.d.ts +10 -6
- package/dist/components/MSlider.d.ts.map +1 -1
- package/dist/components/MSlider.js +12 -1
- package/dist/components/MSlider.js.map +1 -1
- package/dist/components/MStack.d.ts +198 -0
- package/dist/components/MStack.d.ts.map +1 -0
- package/dist/components/MStack.js +62 -0
- package/dist/components/MStack.js.map +1 -0
- package/dist/components/MSwitch.d.ts +19 -9
- package/dist/components/MSwitch.d.ts.map +1 -1
- package/dist/components/MSwitch.js +3 -3
- package/dist/components/MSwitch.js.map +1 -1
- package/dist/components/MTabs.d.ts +19 -9
- package/dist/components/MTabs.d.ts.map +1 -1
- package/dist/components/MText.d.ts +44 -28
- package/dist/components/MText.d.ts.map +1 -1
- package/dist/components/MText.js +6 -6
- package/dist/components/MText.js.map +1 -1
- package/dist/components/layout.d.ts +367 -81
- package/dist/components/layout.d.ts.map +1 -1
- package/dist/components/layout.js +14 -12
- package/dist/components/layout.js.map +1 -1
- package/dist/components/workflows.d.ts +251 -0
- package/dist/components/workflows.d.ts.map +1 -0
- package/dist/components/workflows.js +23 -0
- package/dist/components/workflows.js.map +1 -0
- package/dist/connected-motion.d.ts +6 -0
- package/dist/connected-motion.d.ts.map +1 -0
- package/dist/connected-motion.js +18 -0
- package/dist/connected-motion.js.map +1 -0
- package/dist/experimental.d.ts +9 -0
- package/dist/experimental.d.ts.map +1 -0
- package/dist/experimental.js +27 -0
- package/dist/experimental.js.map +1 -0
- package/dist/files.d.ts +6 -0
- package/dist/files.d.ts.map +1 -0
- package/dist/files.js +82 -0
- package/dist/files.js.map +1 -0
- package/dist/hydration.d.ts +3 -0
- package/dist/hydration.d.ts.map +1 -0
- package/dist/hydration.js +20 -0
- package/dist/hydration.js.map +1 -0
- package/dist/index.d.ts +10 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -2
- package/dist/index.js.map +1 -1
- package/dist/motion-context.d.ts +13 -0
- package/dist/motion-context.d.ts.map +1 -0
- package/dist/motion-context.js +33 -0
- package/dist/motion-context.js.map +1 -0
- package/dist/motion-region.d.ts +16 -0
- package/dist/motion-region.d.ts.map +1 -0
- package/dist/motion-region.js +164 -0
- package/dist/motion-region.js.map +1 -0
- package/dist/motion-surface.d.ts +6 -2
- package/dist/motion-surface.d.ts.map +1 -1
- package/dist/motion-surface.js +71 -11
- package/dist/motion-surface.js.map +1 -1
- package/dist/motion.d.ts +3 -3
- package/dist/motion.d.ts.map +1 -1
- package/dist/motion.js +47 -30
- package/dist/motion.js.map +1 -1
- package/dist/navigation.d.ts +12 -0
- package/dist/navigation.d.ts.map +1 -0
- package/dist/navigation.js +38 -0
- package/dist/navigation.js.map +1 -0
- package/dist/reveal-motion.d.ts +5 -0
- package/dist/reveal-motion.d.ts.map +1 -0
- package/dist/reveal-motion.js +53 -0
- package/dist/reveal-motion.js.map +1 -0
- package/dist/screen-viewport.d.ts.map +1 -1
- package/dist/screen-viewport.js +5 -0
- package/dist/screen-viewport.js.map +1 -1
- package/dist/scroll-motion.d.ts.map +1 -1
- package/dist/scroll-motion.js +16 -14
- package/dist/scroll-motion.js.map +1 -1
- package/dist/sheet-motion.d.ts.map +1 -1
- package/dist/sheet-motion.js +96 -62
- package/dist/sheet-motion.js.map +1 -1
- package/dist/tokens.d.ts +7 -0
- package/dist/tokens.d.ts.map +1 -0
- package/dist/tokens.js +29 -0
- package/dist/tokens.js.map +1 -0
- package/package.json +7 -3
- package/src/components/DateCalendar.ts +213 -0
- package/src/components/MButton.ts +17 -7
- package/src/components/MCard.ts +45 -27
- package/src/components/MCheckbox.ts +25 -3
- package/src/components/MCombobox.ts +510 -0
- package/src/components/MDatePicker.ts +31 -0
- package/src/components/MFilePicker.ts +233 -0
- package/src/components/MInput.ts +24 -4
- package/src/components/MLink.ts +85 -0
- package/src/components/MRadioGroup.ts +26 -0
- package/src/components/MReveal.ts +57 -64
- package/src/components/MSheet.ts +1 -1
- package/src/components/MSlider.ts +18 -1
- package/src/components/MStack.ts +90 -0
- package/src/components/MSwitch.ts +3 -3
- package/src/components/MText.ts +6 -6
- package/src/components/layout.ts +15 -12
- package/src/components/workflows.ts +27 -0
- package/src/connected-motion.ts +23 -0
- package/src/experimental.ts +29 -0
- package/src/files.ts +77 -0
- package/src/hydration.ts +21 -0
- package/src/index.ts +36 -1
- package/src/motion-context.ts +35 -0
- package/src/motion-region.ts +198 -0
- package/src/motion-surface.ts +87 -12
- package/src/motion.ts +53 -47
- package/src/navigation.ts +44 -0
- package/src/reveal-motion.ts +59 -0
- package/src/screen-viewport.ts +4 -0
- package/src/scroll-motion.ts +16 -15
- package/src/sheet-motion.ts +86 -57
- package/src/style.css +6 -0
- package/src/tokens.ts +29 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/components/layout.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/components/layout.ts"],"names":[],"mappings":"AAcA,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAA;AAgBnE,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,GAAG,QAAQ,EAAE,GAAG,SAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EA8BlF;AAED,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAA8B,CAAA;AAC/C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAAoC,CAAA;AACxD,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAsBf,CAAA"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { rowProps, columnProps, viewAttrs, useMavisTheme, layoutDirection,
|
|
1
|
+
import { rowProps, columnProps, viewAttrs, useMavisTheme, layoutDirection, useLayoutShrink, motionBoxProps, } from '@getcortexlabs/mavis-core/vue';
|
|
2
2
|
import { defineComponent, h, mergeProps, provide } from 'vue';
|
|
3
3
|
import { resolveSpace } from '@getcortexlabs/mavis-core';
|
|
4
4
|
import { boxStyle, webAttrs } from '../style.js';
|
|
5
|
+
import { useMotionRegion } from '../motion-region.js';
|
|
5
6
|
const alignment = {
|
|
6
7
|
start: 'flex-start',
|
|
7
8
|
center: 'center',
|
|
@@ -15,24 +16,24 @@ const distribution = {
|
|
|
15
16
|
between: 'space-between',
|
|
16
17
|
around: 'space-around',
|
|
17
18
|
};
|
|
18
|
-
function createLayout(name, direction) {
|
|
19
|
+
export function createLayout(name, direction, tag = 'div') {
|
|
19
20
|
return defineComponent({
|
|
20
21
|
name,
|
|
21
22
|
inheritAttrs: false,
|
|
22
23
|
props: direction === 'row' ? rowProps : columnProps,
|
|
23
24
|
setup(props, { attrs, slots }) {
|
|
24
25
|
const { theme } = useMavisTheme();
|
|
25
|
-
const shrink =
|
|
26
|
+
const shrink = useLayoutShrink();
|
|
26
27
|
provide(layoutDirection, direction);
|
|
27
|
-
return () => h(
|
|
28
|
+
return () => h(tag, mergeProps({
|
|
28
29
|
style: {
|
|
29
|
-
...boxStyle(theme.value, props, shrink),
|
|
30
|
+
...boxStyle(theme.value, props, shrink.value),
|
|
30
31
|
display: 'flex',
|
|
31
32
|
flexDirection: direction,
|
|
32
|
-
alignItems: alignment[props.align]
|
|
33
|
-
justifyContent: distribution[props.justify]
|
|
33
|
+
alignItems: `var(--m-layout-align, ${alignment[props.align]})`,
|
|
34
|
+
justifyContent: `var(--m-layout-justify, ${distribution[props.justify]})`,
|
|
34
35
|
flexWrap: props.wrap ? 'wrap' : 'nowrap',
|
|
35
|
-
gap:
|
|
36
|
+
gap: `var(--m-layout-gap, ${resolveSpace(theme.value, props.gap ?? 'none')}px)`,
|
|
36
37
|
},
|
|
37
38
|
}, webAttrs({ ...attrs, ...viewAttrs(props) })), slots.default?.());
|
|
38
39
|
},
|
|
@@ -43,14 +44,15 @@ export const MColumn = createLayout('MColumn', 'column');
|
|
|
43
44
|
export const MBox = defineComponent({
|
|
44
45
|
name: 'MBox',
|
|
45
46
|
inheritAttrs: false,
|
|
46
|
-
props:
|
|
47
|
+
props: motionBoxProps,
|
|
47
48
|
setup(props, { attrs, slots }) {
|
|
49
|
+
const region = useMotionRegion(() => props.motionRegion);
|
|
48
50
|
const { theme } = useMavisTheme();
|
|
49
|
-
const shrink =
|
|
51
|
+
const shrink = useLayoutShrink();
|
|
50
52
|
return () => h('div', mergeProps({
|
|
51
53
|
class: 'm-box',
|
|
52
|
-
style: { ...boxStyle(theme.value, props, shrink), display: 'grid' },
|
|
53
|
-
}, webAttrs({ ...attrs, ...viewAttrs(props) })), slots.default?.());
|
|
54
|
+
style: { ...boxStyle(theme.value, props, shrink.value), display: 'grid' },
|
|
55
|
+
}, webAttrs({ ...attrs, ...viewAttrs(props) }), region), slots.default?.());
|
|
54
56
|
},
|
|
55
57
|
});
|
|
56
58
|
//# sourceMappingURL=layout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../src/components/layout.ts"],"names":[],"mappings":"AA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Ae,EAAE,CAAA;QAChC,OAAO,GAAG,EAAE,CACV,CAAC,CACC,KAAK,EACL,UAAU,CACR;YACE,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,EAAE,GAAG,QAAQ,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE;SAC1E,EACD,QAAQ,CAAC,EAAE,GAAG,KAAK,EAAE,GAAG,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,EAC3C,MAAM,CACP,EACD,KAAK,CAAC,OAAO,EAAE,EAAE,CAClB,CAAA;IACL,CAAC;CACF,CAAC,CAAA"}
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
export declare const MFormGroup: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
label: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
description: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
id: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
label: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
description: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
id: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: undefined;
|
|
28
|
+
};
|
|
29
|
+
}>> & Readonly<{}>, {
|
|
30
|
+
id: string;
|
|
31
|
+
description: string;
|
|
32
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, MFormErrors: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
33
|
+
form: {
|
|
34
|
+
type: import("vue").PropType<import("@getcortexlabs/mavis-core").FormController>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
title: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
announce: BooleanConstructor;
|
|
42
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
|
+
focus: (_field: string, _focused: boolean) => true;
|
|
46
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
47
|
+
form: {
|
|
48
|
+
type: import("vue").PropType<import("@getcortexlabs/mavis-core").FormController>;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
title: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
announce: BooleanConstructor;
|
|
56
|
+
}>> & Readonly<{
|
|
57
|
+
onFocus?: ((_field: string, _focused: boolean) => any) | undefined;
|
|
58
|
+
}>, {
|
|
59
|
+
title: string;
|
|
60
|
+
announce: boolean;
|
|
61
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, MSteps: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
62
|
+
steps: {
|
|
63
|
+
type: import("vue").PropType<readonly import("@getcortexlabs/mavis-core").StepOption[]>;
|
|
64
|
+
required: true;
|
|
65
|
+
};
|
|
66
|
+
modelValue: {
|
|
67
|
+
type: import("vue").PropType<import("@getcortexlabs/mavis-core").ChoiceValue | null>;
|
|
68
|
+
default: null;
|
|
69
|
+
};
|
|
70
|
+
label: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
required: true;
|
|
73
|
+
};
|
|
74
|
+
disabled: BooleanConstructor;
|
|
75
|
+
loading: BooleanConstructor;
|
|
76
|
+
currentLabel: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
completeLabel: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
errorLabel: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
89
|
+
[key: string]: any;
|
|
90
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
91
|
+
'update:modelValue': (_value: import("@getcortexlabs/mavis-core").ChoiceValue) => true;
|
|
92
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
93
|
+
steps: {
|
|
94
|
+
type: import("vue").PropType<readonly import("@getcortexlabs/mavis-core").StepOption[]>;
|
|
95
|
+
required: true;
|
|
96
|
+
};
|
|
97
|
+
modelValue: {
|
|
98
|
+
type: import("vue").PropType<import("@getcortexlabs/mavis-core").ChoiceValue | null>;
|
|
99
|
+
default: null;
|
|
100
|
+
};
|
|
101
|
+
label: {
|
|
102
|
+
type: StringConstructor;
|
|
103
|
+
required: true;
|
|
104
|
+
};
|
|
105
|
+
disabled: BooleanConstructor;
|
|
106
|
+
loading: BooleanConstructor;
|
|
107
|
+
currentLabel: {
|
|
108
|
+
type: StringConstructor;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
completeLabel: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
115
|
+
errorLabel: {
|
|
116
|
+
type: StringConstructor;
|
|
117
|
+
default: string;
|
|
118
|
+
};
|
|
119
|
+
}>> & Readonly<{
|
|
120
|
+
"onUpdate:modelValue"?: ((_value: import("@getcortexlabs/mavis-core").ChoiceValue) => any) | undefined;
|
|
121
|
+
}>, {
|
|
122
|
+
loading: boolean;
|
|
123
|
+
disabled: boolean;
|
|
124
|
+
modelValue: import("@getcortexlabs/mavis-core").ChoiceValue | null;
|
|
125
|
+
currentLabel: string;
|
|
126
|
+
completeLabel: string;
|
|
127
|
+
errorLabel: string;
|
|
128
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, MPagination: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
129
|
+
modelValue: {
|
|
130
|
+
type: NumberConstructor;
|
|
131
|
+
default: number;
|
|
132
|
+
};
|
|
133
|
+
total: {
|
|
134
|
+
type: NumberConstructor;
|
|
135
|
+
required: true;
|
|
136
|
+
};
|
|
137
|
+
pageSize: {
|
|
138
|
+
type: NumberConstructor;
|
|
139
|
+
default: number;
|
|
140
|
+
};
|
|
141
|
+
siblingCount: {
|
|
142
|
+
type: NumberConstructor;
|
|
143
|
+
default: number;
|
|
144
|
+
};
|
|
145
|
+
label: {
|
|
146
|
+
type: StringConstructor;
|
|
147
|
+
default: string;
|
|
148
|
+
};
|
|
149
|
+
previousLabel: {
|
|
150
|
+
type: StringConstructor;
|
|
151
|
+
default: string;
|
|
152
|
+
};
|
|
153
|
+
nextLabel: {
|
|
154
|
+
type: StringConstructor;
|
|
155
|
+
default: string;
|
|
156
|
+
};
|
|
157
|
+
pageLabel: {
|
|
158
|
+
type: StringConstructor;
|
|
159
|
+
default: string;
|
|
160
|
+
};
|
|
161
|
+
currentLabel: {
|
|
162
|
+
type: StringConstructor;
|
|
163
|
+
default: string;
|
|
164
|
+
};
|
|
165
|
+
statusText: {
|
|
166
|
+
type: StringConstructor;
|
|
167
|
+
default: string;
|
|
168
|
+
};
|
|
169
|
+
emptyLabel: {
|
|
170
|
+
type: StringConstructor;
|
|
171
|
+
default: string;
|
|
172
|
+
};
|
|
173
|
+
invalidPageLabel: {
|
|
174
|
+
type: StringConstructor;
|
|
175
|
+
default: string;
|
|
176
|
+
};
|
|
177
|
+
loading: BooleanConstructor;
|
|
178
|
+
disabled: BooleanConstructor;
|
|
179
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
180
|
+
[key: string]: any;
|
|
181
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
182
|
+
'update:modelValue': (_page: number) => true;
|
|
183
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
184
|
+
modelValue: {
|
|
185
|
+
type: NumberConstructor;
|
|
186
|
+
default: number;
|
|
187
|
+
};
|
|
188
|
+
total: {
|
|
189
|
+
type: NumberConstructor;
|
|
190
|
+
required: true;
|
|
191
|
+
};
|
|
192
|
+
pageSize: {
|
|
193
|
+
type: NumberConstructor;
|
|
194
|
+
default: number;
|
|
195
|
+
};
|
|
196
|
+
siblingCount: {
|
|
197
|
+
type: NumberConstructor;
|
|
198
|
+
default: number;
|
|
199
|
+
};
|
|
200
|
+
label: {
|
|
201
|
+
type: StringConstructor;
|
|
202
|
+
default: string;
|
|
203
|
+
};
|
|
204
|
+
previousLabel: {
|
|
205
|
+
type: StringConstructor;
|
|
206
|
+
default: string;
|
|
207
|
+
};
|
|
208
|
+
nextLabel: {
|
|
209
|
+
type: StringConstructor;
|
|
210
|
+
default: string;
|
|
211
|
+
};
|
|
212
|
+
pageLabel: {
|
|
213
|
+
type: StringConstructor;
|
|
214
|
+
default: string;
|
|
215
|
+
};
|
|
216
|
+
currentLabel: {
|
|
217
|
+
type: StringConstructor;
|
|
218
|
+
default: string;
|
|
219
|
+
};
|
|
220
|
+
statusText: {
|
|
221
|
+
type: StringConstructor;
|
|
222
|
+
default: string;
|
|
223
|
+
};
|
|
224
|
+
emptyLabel: {
|
|
225
|
+
type: StringConstructor;
|
|
226
|
+
default: string;
|
|
227
|
+
};
|
|
228
|
+
invalidPageLabel: {
|
|
229
|
+
type: StringConstructor;
|
|
230
|
+
default: string;
|
|
231
|
+
};
|
|
232
|
+
loading: BooleanConstructor;
|
|
233
|
+
disabled: BooleanConstructor;
|
|
234
|
+
}>> & Readonly<{
|
|
235
|
+
"onUpdate:modelValue"?: ((_page: number) => any) | undefined;
|
|
236
|
+
}>, {
|
|
237
|
+
label: string;
|
|
238
|
+
loading: boolean;
|
|
239
|
+
disabled: boolean;
|
|
240
|
+
modelValue: number;
|
|
241
|
+
emptyLabel: string;
|
|
242
|
+
currentLabel: string;
|
|
243
|
+
pageSize: number;
|
|
244
|
+
siblingCount: number;
|
|
245
|
+
previousLabel: string;
|
|
246
|
+
nextLabel: string;
|
|
247
|
+
pageLabel: string;
|
|
248
|
+
statusText: string;
|
|
249
|
+
invalidPageLabel: string;
|
|
250
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
251
|
+
//# sourceMappingURL=workflows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/components/workflows.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAQ,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAG1D,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createWorkflows } from '@getcortexlabs/mavis-core/vue';
|
|
2
|
+
import { MColumn, MRow } from './layout.js';
|
|
3
|
+
import { MText } from './MText.js';
|
|
4
|
+
import { MButton } from './MButton.js';
|
|
5
|
+
/** Restore only a focus lost because pagination removed/disabled its own action. */
|
|
6
|
+
function preserveFocus(root, currentId) {
|
|
7
|
+
const element = root?.$el;
|
|
8
|
+
const previous = element?.ownerDocument.activeElement;
|
|
9
|
+
if (!element || !previous || !element.contains(previous))
|
|
10
|
+
return () => { };
|
|
11
|
+
return () => {
|
|
12
|
+
const document = element.ownerDocument;
|
|
13
|
+
if (element.isConnected &&
|
|
14
|
+
(document.activeElement === document.body || document.activeElement === previous) &&
|
|
15
|
+
(!previous.isConnected || previous.disabled)) {
|
|
16
|
+
const target = document.getElementById(currentId);
|
|
17
|
+
if (target && element.contains(target))
|
|
18
|
+
target.focus({ preventScroll: true });
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export const { MFormGroup, MFormErrors, MSteps, MPagination } = createWorkflows({ Column: MColumn, Row: MRow, Text: MText, Button: MButton, preserveFocus }, 'web');
|
|
23
|
+
//# sourceMappingURL=workflows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflows.js","sourceRoot":"","sources":["../../src/components/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,oFAAoF;AACpF,SAAS,aAAa,CAAC,IAAa,EAAE,SAAiB;IACrD,MAAM,OAAO,GAAI,IAA0C,EAAE,GAAG,CAAA;IAChE,MAAM,QAAQ,GAAG,OAAO,EAAE,aAAa,CAAC,aAAyC,CAAA;IACjF,IAAI,CAAC,OAAO,IAAI,CAAC,QAAQ,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAAE,OAAO,GAAG,EAAE,GAAE,CAAC,CAAA;IACzE,OAAO,GAAG,EAAE;QACV,MAAM,QAAQ,GAAG,OAAO,CAAC,aAAa,CAAA;QACtC,IACE,OAAO,CAAC,WAAW;YACnB,CAAC,QAAQ,CAAC,aAAa,KAAK,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,aAAa,KAAK,QAAQ,CAAC;YACjF,CAAC,CAAC,QAAQ,CAAC,WAAW,IAAI,QAAQ,CAAC,QAAQ,CAAC,EAC5C,CAAC;YACD,MAAM,MAAM,GAAG,QAAQ,CAAC,cAAc,CAAC,SAAS,CAAC,CAAA;YACjD,IAAI,MAAM,IAAI,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC;gBAAE,MAAM,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAA;QAC/E,CAAC;IACH,CAAC,CAAA;AACH,CAAC;AAED,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,eAAe,CAC7E,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,EAC3E,KAAK,CACN,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import type { WebRuntime } from '@rafaelaugusto/jolt/web';
|
|
3
|
+
import type { WebMotionContext } from './motion-context.js';
|
|
4
|
+
/** Jolt owns deferred insertion and KeepAlive; the presentation borrows its region's runtime. */
|
|
5
|
+
export declare function useConnectedMotion(element: Readonly<Ref<HTMLElement | null | undefined>>, context: WebMotionContext, setup: (runtime: WebRuntime, target: HTMLElement) => () => void): void;
|
|
6
|
+
//# sourceMappingURL=connected-motion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connected-motion.d.ts","sourceRoot":"","sources":["../src/connected-motion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAE9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAE3D,iGAAiG;AACjG,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,QAAQ,CAAC,GAAG,CAAC,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC,EACtD,OAAO,EAAE,gBAAgB,EACzB,KAAK,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,KAAK,MAAM,IAAI,QAahE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { onScopeDispose } from 'vue';
|
|
2
|
+
import { useWebMotion } from '@rafaelaugusto/jolt/web/vue';
|
|
3
|
+
/** Jolt owns deferred insertion and KeepAlive; the presentation borrows its region's runtime. */
|
|
4
|
+
export function useConnectedMotion(element, context, setup) {
|
|
5
|
+
let lease;
|
|
6
|
+
const motion = useWebMotion(element, {
|
|
7
|
+
get runtime() {
|
|
8
|
+
// Evaluated only by Jolt after attachment, never during SSR or pending Suspense.
|
|
9
|
+
if (!lease && element.value)
|
|
10
|
+
lease = context.acquire(element.value.ownerDocument);
|
|
11
|
+
return lease?.runtime;
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
motion.use((_, target) => setup(lease.runtime, target));
|
|
15
|
+
// Registered after Jolt: dispose its scopes before releasing the borrowed runtime.
|
|
16
|
+
onScopeDispose(() => lease?.release());
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=connected-motion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connected-motion.js","sourceRoot":"","sources":["../src/connected-motion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAY,MAAM,KAAK,CAAA;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAI1D,iGAAiG;AACjG,MAAM,UAAU,kBAAkB,CAChC,OAAsD,EACtD,OAAyB,EACzB,KAA+D;IAE/D,IAAI,KAA0D,CAAA;IAC9D,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,EAAE;QACnC,IAAI,OAAO;YACT,iFAAiF;YACjF,IAAI,CAAC,KAAK,IAAI,OAAO,CAAC,KAAK;gBAAE,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,CAAA;YACjF,OAAO,KAAK,EAAE,OAAO,CAAA;QACvB,CAAC;KACF,CAAC,CAAA;IACF,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,KAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IACxD,mFAAmF;IACnF,cAAc,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,CAAA;AACxC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { WebMotionScope, WebMotionResource } from '@rafaelaugusto/jolt/web';
|
|
2
|
+
import { type MotionRegion } from '@getcortexlabs/mavis-core/experimental';
|
|
3
|
+
/**
|
|
4
|
+
* Web-only composition for application HTML/SVG inside a declared MBox region.
|
|
5
|
+
* Borrows the very same Jolt context as the region's component press surfaces.
|
|
6
|
+
* Setup is absent during SSR and recreated with its region and document lifecycle.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useMavisWebMotion(region: MotionRegion, setup: (scope: WebMotionScope, element: HTMLElement) => void | WebMotionResource): () => void;
|
|
9
|
+
//# sourceMappingURL=experimental.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAChF,OAAO,EAAe,KAAK,YAAY,EAAE,MAAM,wCAAwC,CAAA;AAGvF;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,YAAY,EACpB,KAAK,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,WAAW,KAAK,IAAI,GAAG,iBAAiB,GAC/E,MAAM,IAAI,CAeZ"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { getCurrentScope, onScopeDispose } from 'vue';
|
|
2
|
+
import { regionState } from '@getcortexlabs/mavis-core/experimental';
|
|
3
|
+
import { webRegion } from './motion-region.js';
|
|
4
|
+
/**
|
|
5
|
+
* Web-only composition for application HTML/SVG inside a declared MBox region.
|
|
6
|
+
* Borrows the very same Jolt context as the region's component press surfaces.
|
|
7
|
+
* Setup is absent during SSR and recreated with its region and document lifecycle.
|
|
8
|
+
*/
|
|
9
|
+
export function useMavisWebMotion(region, setup) {
|
|
10
|
+
if (!getCurrentScope())
|
|
11
|
+
throw new Error('useMavisWebMotion requires a Vue setup scope.');
|
|
12
|
+
const stop = region.onAvailable(() => {
|
|
13
|
+
const { runtime, target } = webRegion(regionState(region).adapter);
|
|
14
|
+
const owner = runtime.scope();
|
|
15
|
+
try {
|
|
16
|
+
owner.use((scope) => setup(scope, target));
|
|
17
|
+
}
|
|
18
|
+
catch (error) {
|
|
19
|
+
owner.dispose();
|
|
20
|
+
throw error;
|
|
21
|
+
}
|
|
22
|
+
return () => owner.dispose();
|
|
23
|
+
});
|
|
24
|
+
onScopeDispose(stop);
|
|
25
|
+
return stop;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=experimental.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experimental.js","sourceRoot":"","sources":["../src/experimental.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAErD,OAAO,EAAE,WAAW,EAAqB,MAAM,wCAAwC,CAAA;AACvF,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAE9C;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAC/B,MAAoB,EACpB,KAAgF;IAEhF,IAAI,CAAC,eAAe,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAA;IACxF,MAAM,IAAI,GAAG,MAAM,CAAC,WAAW,CAAC,GAAG,EAAE;QACnC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;QAClE,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,EAAE,CAAA;QAC7B,IAAI,CAAC;YACH,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAA;QAC5C,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,KAAK,CAAC,OAAO,EAAE,CAAA;YACf,MAAM,KAAK,CAAA;QACb,CAAC;QACD,OAAO,GAAG,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,CAAA;IAC9B,CAAC,CAAC,CAAA;IACF,cAAc,CAAC,IAAI,CAAC,CAAA;IACpB,OAAO,IAAI,CAAA;AACb,CAAC"}
|
package/dist/files.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { FileHandle, FilePickerAdapter } from '@getcortexlabs/mavis-core';
|
|
2
|
+
/** The host may read/send the File while the selection owns its resource. */
|
|
3
|
+
export declare function getWebFile(handle: FileHandle): File;
|
|
4
|
+
/** Creating the adapter is SSR-safe. The input exists only during user-triggered selection. */
|
|
5
|
+
export declare function createWebFilePicker(): FilePickerAdapter;
|
|
6
|
+
//# sourceMappingURL=files.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../src/files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAgB,MAAM,2BAA2B,CAAA;AAI5F,6EAA6E;AAC7E,wBAAgB,UAAU,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAInD;AA0BD,+FAA+F;AAC/F,wBAAgB,mBAAmB,IAAI,iBAAiB,CAwCvD"}
|
package/dist/files.js
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
const handles = new WeakMap();
|
|
2
|
+
/** The host may read/send the File while the selection owns its resource. */
|
|
3
|
+
export function getWebFile(handle) {
|
|
4
|
+
const file = handles.get(handle);
|
|
5
|
+
if (!file)
|
|
6
|
+
throw new Error('This Web file handle is unavailable or has been released');
|
|
7
|
+
return file;
|
|
8
|
+
}
|
|
9
|
+
function resource(file) {
|
|
10
|
+
const handle = Object.freeze({});
|
|
11
|
+
handles.set(handle, file);
|
|
12
|
+
let source;
|
|
13
|
+
let released = false;
|
|
14
|
+
return {
|
|
15
|
+
name: file.name,
|
|
16
|
+
size: file.size,
|
|
17
|
+
type: file.type || undefined,
|
|
18
|
+
handle,
|
|
19
|
+
async preview() {
|
|
20
|
+
if (released || !file.type.startsWith('image/'))
|
|
21
|
+
return;
|
|
22
|
+
source ??= URL.createObjectURL(file);
|
|
23
|
+
return source;
|
|
24
|
+
},
|
|
25
|
+
release() {
|
|
26
|
+
if (released)
|
|
27
|
+
return;
|
|
28
|
+
released = true;
|
|
29
|
+
if (source)
|
|
30
|
+
URL.revokeObjectURL(source);
|
|
31
|
+
handles.delete(handle);
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/** Creating the adapter is SSR-safe. The input exists only during user-triggered selection. */
|
|
36
|
+
export function createWebFilePicker() {
|
|
37
|
+
return {
|
|
38
|
+
pick(request, cancellation) {
|
|
39
|
+
if (typeof document === 'undefined')
|
|
40
|
+
return Promise.reject(new Error('File selection requires a mounted browser'));
|
|
41
|
+
if (cancellation.cancelled)
|
|
42
|
+
return Promise.resolve(null);
|
|
43
|
+
return new Promise((resolve, reject) => {
|
|
44
|
+
const input = document.createElement('input');
|
|
45
|
+
input.type = 'file';
|
|
46
|
+
input.multiple = request.multiple;
|
|
47
|
+
input.accept = request.accept.join(',');
|
|
48
|
+
input.tabIndex = -1;
|
|
49
|
+
input.setAttribute('aria-hidden', 'true');
|
|
50
|
+
input.style.display = 'none';
|
|
51
|
+
let done = false;
|
|
52
|
+
let unsubscribe = () => { };
|
|
53
|
+
const finish = (files, error) => {
|
|
54
|
+
if (done)
|
|
55
|
+
return;
|
|
56
|
+
done = true;
|
|
57
|
+
unsubscribe();
|
|
58
|
+
input.removeEventListener('change', change);
|
|
59
|
+
input.removeEventListener('cancel', cancel);
|
|
60
|
+
input.remove();
|
|
61
|
+
if (error)
|
|
62
|
+
reject(error);
|
|
63
|
+
else
|
|
64
|
+
resolve(files);
|
|
65
|
+
};
|
|
66
|
+
const change = () => finish(Array.from(input.files ?? []).map(resource));
|
|
67
|
+
const cancel = () => finish(null);
|
|
68
|
+
input.addEventListener('change', change);
|
|
69
|
+
input.addEventListener('cancel', cancel);
|
|
70
|
+
document.body.append(input);
|
|
71
|
+
unsubscribe = cancellation.onCancel(cancel);
|
|
72
|
+
try {
|
|
73
|
+
input.click();
|
|
74
|
+
}
|
|
75
|
+
catch (error) {
|
|
76
|
+
finish(null, error);
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=files.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../src/files.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAA;AAE/C,6EAA6E;AAC7E,MAAM,UAAU,UAAU,CAAC,MAAkB;IAC3C,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;IAChC,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAA;IACtF,OAAO,IAAI,C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,MAAM,CAAC,CAAA;gBACxC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;gBAC3B,WAAW,GAAG,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;gBAC3C,IAAI,CAAC;oBACH,KAAK,CAAC,KAAK,EAAE,CAAA;gBACf,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;gBACrB,CAAC;YACH,CAAC,CAAC,CAAA;QACJ,CAAC;KACF,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hydration.d.ts","sourceRoot":"","sources":["../src/hydration.ts"],"names":[],"mappings":"AAEA,yFAAyF;AACzF,wBAAgB,gBAAgB,CAAC,CAAC,EAChC,IAAI,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,CAAC,GAAG,SAAS,EACtC,KAAK,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,uBAe1B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { getCurrentInstance, onBeforeMount, onMounted, shallowRef } from 'vue';
|
|
2
|
+
/** Read only this component's existing server root, before Vue patches editor values. */
|
|
3
|
+
export function useHydrationEdit(read, adopt) {
|
|
4
|
+
const instance = getCurrentInstance();
|
|
5
|
+
let edit;
|
|
6
|
+
const mounted = shallowRef(false);
|
|
7
|
+
onBeforeMount(() => {
|
|
8
|
+
const root = instance.vnode.el;
|
|
9
|
+
if (root?.nodeType === 1)
|
|
10
|
+
edit = read(root);
|
|
11
|
+
});
|
|
12
|
+
onMounted(() => {
|
|
13
|
+
if (edit !== undefined)
|
|
14
|
+
adopt(edit);
|
|
15
|
+
// A rerender also restores controlled values when the parent rejects the edit.
|
|
16
|
+
mounted.value = true;
|
|
17
|
+
});
|
|
18
|
+
return () => (mounted.value ? undefined : edit);
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=hydration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hydration.js","sourceRoot":"","sources":["../src/hydration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAE9E,yFAAyF;AACzF,MAAM,UAAU,gBAAgB,CAC9B,IAAsC,EACtC,KAAyB;IAEzB,MAAM,QAAQ,GAAG,kBAAkB,EAAG,CAAA;IACtC,IAAI,IAAmB,CAAA;IACvB,MAAM,OAAO,GAAG,UAAU,CAAC,KAAK,CAAC,CAAA;IACjC,aAAa,CAAC,GAAG,EAAE;QACjB,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAA;QAC9B,IAAI,IAAI,EAAE,QAAQ,KAAK,CAAC;YAAE,IAAI,GAAG,IAAI,CAAC,IAAe,CAAC,CAAA;IACxD,CAAC,CAAC,CAAA;IACF,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,IAAI,KAAK,SAAS;YAAE,KAAK,CAAC,IAAI,CAAC,CAAA;QACnC,+EAA+E;QAC/E,OAAO,CAAC,KAAK,GAAG,IAAI,CAAA;IACtB,CAAC,CAAC,CAAA;IACF,OAAO,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;AACjD,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { MStack } from './components/MStack.js';
|
|
2
|
+
export { themeVariables, useMavisTokens } from './tokens.js';
|
|
3
|
+
import { MLink } from './components/MLink.js';
|
|
4
|
+
import { MDatePicker, MDateRangePicker } from './components/MDatePicker.js';
|
|
5
|
+
import { MCombobox } from './components/MCombobox.js';
|
|
6
|
+
import { MFilePicker } from './components/MFilePicker.js';
|
|
7
|
+
import { MFormGroup, MFormErrors, MSteps, MPagination } from './components/workflows.js';
|
|
1
8
|
import { MChip } from './components/MChip.js';
|
|
2
9
|
import { MEmptyState } from './components/MEmptyState.js';
|
|
3
10
|
import type { App } from 'vue';
|
|
@@ -28,8 +35,8 @@ import { MInput } from './components/MInput.js';
|
|
|
28
35
|
import { MIcon } from './components/MIcon.js';
|
|
29
36
|
import { MReveal } from './components/MReveal.js';
|
|
30
37
|
import { MSheet } from './components/MSheet.js';
|
|
31
|
-
export { MThemeProvider, MSpan, MScreen, MBox, MRow, MColumn, MCard, MText, MButton, MSlider, MSwitch, MCheckbox, MRadioGroup, MSelect, MToast, MDialog, MTabs, MSkeleton, MChip, MEmptyState, MProgress, MAccordion, MSegmentedControl, MAlert, MListItem, MSeparator, MAvatar, MBadge, MInput, MIcon, MReveal, MSheet, };
|
|
32
|
-
export { useMavisTheme, useToast } from '@getcortexlabs/mavis-core/vue';
|
|
38
|
+
export { MThemeProvider, MSpan, MScreen, MBox, MRow, MColumn, MStack, MLink, MCard, MText, MButton, MSlider, MSwitch, MCheckbox, MRadioGroup, MSelect, MToast, MDialog, MTabs, MSkeleton, MChip, MEmptyState, MProgress, MAccordion, MSegmentedControl, MAlert, MListItem, MSeparator, MAvatar, MBadge, MInput, MIcon, MReveal, MSheet, MDatePicker, MDateRangePicker, MCombobox, MFilePicker, MFormGroup, MFormErrors, MSteps, MPagination, };
|
|
39
|
+
export { useMavisTheme, useToast, useFormController, useFormField, useFileSelection, } from '@getcortexlabs/mavis-core/vue';
|
|
33
40
|
export type { MavisThemeContext, Appearance, AppearanceMode, AppearanceSource, } from '@getcortexlabs/mavis-core/vue';
|
|
34
41
|
export type { Align, Justify } from './components/layout.js';
|
|
35
42
|
export * from '@getcortexlabs/mavis-core';
|
|
@@ -42,4 +49,5 @@ export type MavisOptions = Omit<ThemeContextOptions, 'source'> & {
|
|
|
42
49
|
export declare function createMavis(options?: MavisOptions): {
|
|
43
50
|
install(app: App): void;
|
|
44
51
|
};
|
|
52
|
+
export * from './files.js';
|
|
45
53
|
//# sourceMapp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