@getcortexlabs/mavis-web 0.1.0-alpha.10 → 0.1.0-alpha.11
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 +4 -4
- package/dist/components/ChartPlot.d.ts +65 -0
- package/dist/components/ChartPlot.d.ts.map +1 -0
- package/dist/components/ChartPlot.js +135 -0
- package/dist/components/ChartPlot.js.map +1 -0
- package/dist/components/DateCalendar.d.ts +16 -1
- package/dist/components/DateCalendar.d.ts.map +1 -1
- package/dist/components/DateCalendar.js +17 -8
- package/dist/components/DateCalendar.js.map +1 -1
- package/dist/components/MAccordion.d.ts +1 -1
- package/dist/components/MChip.d.ts +1 -1
- package/dist/components/MCombobox.d.ts +3 -3
- package/dist/components/MDatePicker.d.ts +16 -16
- package/dist/components/MDialog.d.ts +3 -3
- package/dist/components/MEmptyState.d.ts +1 -1
- package/dist/components/MFilePicker.d.ts +2 -2
- package/dist/components/MImage.d.ts +1 -1
- package/dist/components/MInput.d.ts +1 -1
- package/dist/components/MListItem.d.ts +1 -1
- package/dist/components/MRangeSlider.d.ts +104 -0
- package/dist/components/MRangeSlider.d.ts.map +1 -0
- package/dist/components/MRangeSlider.js +95 -0
- package/dist/components/MRangeSlider.js.map +1 -0
- package/dist/components/MReveal.d.ts +8 -8
- package/dist/components/MSelect.d.ts +2 -2
- package/dist/components/MSheet.d.ts +4 -4
- package/dist/components/MStack.d.ts +8 -8
- package/dist/components/MText.d.ts +1 -1
- package/dist/components/MTimePicker.d.ts +4 -4
- package/dist/components/MTooltip.d.ts +65 -0
- package/dist/components/MTooltip.d.ts.map +1 -0
- package/dist/components/MTooltip.js +259 -0
- package/dist/components/MTooltip.js.map +1 -0
- package/dist/components/configurator.d.ts +2 -2
- package/dist/components/discovery.d.ts +282 -0
- package/dist/components/discovery.d.ts.map +1 -0
- package/dist/components/discovery.js +113 -0
- package/dist/components/discovery.js.map +1 -0
- package/dist/components/layout.d.ts +24 -24
- package/dist/components/navigation.d.ts +1 -1
- package/dist/components/wayfinding.d.ts +441 -0
- package/dist/components/wayfinding.d.ts.map +1 -0
- package/dist/components/wayfinding.js +56 -0
- package/dist/components/wayfinding.js.map +1 -0
- package/dist/components/workflows.d.ts +2 -2
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/base.css +117 -0
- package/src/components/ChartPlot.ts +139 -0
- package/src/components/DateCalendar.ts +20 -8
- package/src/components/MRangeSlider.ts +115 -0
- package/src/components/MTooltip.ts +293 -0
- package/src/components/discovery.ts +163 -0
- package/src/components/wayfinding.ts +68 -0
- package/src/index.ts +34 -0
|
@@ -238,12 +238,12 @@ export declare const MFormGroup: import("vue").DefineComponent<import("vue").Ext
|
|
|
238
238
|
loading: boolean;
|
|
239
239
|
disabled: boolean;
|
|
240
240
|
modelValue: number;
|
|
241
|
+
previousLabel: string;
|
|
242
|
+
nextLabel: string;
|
|
241
243
|
emptyLabel: string;
|
|
242
244
|
currentLabel: string;
|
|
243
245
|
pageSize: number;
|
|
244
246
|
siblingCount: number;
|
|
245
|
-
previousLabel: string;
|
|
246
|
-
nextLabel: string;
|
|
247
247
|
pageLabel: string;
|
|
248
248
|
statusText: string;
|
|
249
249
|
invalidPageLabel: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { MCommandPalette, MNavigationRail, MBreadcrumb, MTimeline, MChart } from './components/wayfinding.js';
|
|
2
|
+
import { MTooltip } from './components/MTooltip.js';
|
|
3
|
+
import { MDataTable, MCarousel, MCalendar, MRating, MTreeView } from './components/discovery.js';
|
|
4
|
+
import { MRangeSlider } from './components/MRangeSlider.js';
|
|
1
5
|
import { MPopover } from './components/MPopover.js';
|
|
2
6
|
import { MMenu, MAppBar, MTabBar } from './components/navigation.js';
|
|
3
7
|
import { MTimePicker } from './components/MTimePicker.js';
|
|
@@ -45,7 +49,7 @@ import { MInput } from './components/MInput.js';
|
|
|
45
49
|
import { MIcon } from './components/MIcon.js';
|
|
46
50
|
import { MReveal } from './components/MReveal.js';
|
|
47
51
|
import { MSheet } from './components/MSheet.js';
|
|
48
|
-
export { MThemeProvider, MPlatform, MSpan, MScreen, MBox, MRow, MColumn, MStack, MGrid, 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, MNumberInput, MMultiSelect, MImage, MCombobox, MFilePicker, MFormGroup, MFormErrors, MSteps, MPagination, MPopover, MMenu, MAppBar, MTabBar, MTimePicker, MVirtualList, };
|
|
52
|
+
export { MThemeProvider, MPlatform, MSpan, MScreen, MBox, MRow, MColumn, MStack, MGrid, 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, MNumberInput, MMultiSelect, MImage, MCombobox, MFilePicker, MFormGroup, MFormErrors, MSteps, MPagination, MPopover, MMenu, MAppBar, MTabBar, MTimePicker, MVirtualList, MDataTable, MCarousel, MRangeSlider, MCalendar, MRating, MTreeView, MCommandPalette, MNavigationRail, MBreadcrumb, MTooltip, MTimeline, MChart, };
|
|
49
53
|
export { useMavisTheme, useMavisPlatform, useMavisListMotion, useToast, useFormController, useFormField, useFileSelection, useMavisNavigation, } from '@getcortexlabs/mavis-core/vue';
|
|
50
54
|
export type { MavisThemeContext, MavisPlatform, MavisPlatformTarget, MavisPlatformContext, Appearance, AppearanceMode, AppearanceSource, } from '@getcortexlabs/mavis-core/vue';
|
|
51
55
|
export type { Align, Justify } from './components/layout.js';
|
package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O,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAE/C,OAAO,EACL,cAAc,EACd,SAAS,EACT,KAAK,EACL,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,MAAM,EACN,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,OAAO,EACP,OAAO,EACP,OAAO,EACP,SAAS,EACT,WAAW,EACX,OAAO,EACP,MAAM,EACN,OAAO,EACP,KAAK,EACL,SAAS,EACT,KAAK,EACL,WAAW,EACX,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,MAAM,EACN,SAAS,EACT,UAAU,EACV,OAAO,EACP,MAAM,EACN,MAAM,EACN,KAAK,EACL,OAAO,EACP,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,MAAM,EACN,SAAS,EACT,WAAW,EACX,UAAU,EACV,WAAW,EACX,MAAM,EACN,WAAW,EACX,QAAQ,EACR,KAAK,EACL,OAAO,EACP,OAAO,EACP,WAAW,EACX,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,eAAe,EACf,WAAW,EACX,SAAS,EACT,MAAM,EACP,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAChG,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAE,QAAQ,EAAE,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,GAAG;IAAE,UAAU,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;CAAE,CAAA;AAEnG,6FAA6F;AAC7F,wBAAgB,WAAW,CAAC,OAAO,GAAE,YAAiB;iBAErC,GAAG;EA6EnB;AAED,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAEtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { MCommandPalette, MNavigationRail, MBreadcrumb, MTimeline, MChart, } from './components/wayfinding.js';
|
|
2
|
+
import { MTooltip } from './components/MTooltip.js';
|
|
3
|
+
import { MDataTable, MCarousel, MCalendar, MRating, MTreeView } from './components/discovery.js';
|
|
4
|
+
import { MRangeSlider } from './components/MRangeSlider.js';
|
|
1
5
|
import { MPopover } from './components/MPopover.js';
|
|
2
6
|
import { MMenu, MAppBar, MTabBar } from './components/navigation.js';
|
|
3
7
|
import { MTimePicker } from './components/MTimePicker.js';
|
|
@@ -43,7 +47,7 @@ import { MInput } from './components/MInput.js';
|
|
|
43
47
|
import { MIcon } from './components/MIcon.js';
|
|
44
48
|
import { MReveal } from './components/MReveal.js';
|
|
45
49
|
import { MSheet } from './components/MSheet.js';
|
|
46
|
-
export { MThemeProvider, MPlatform, MSpan, MScreen, MBox, MRow, MColumn, MStack, MGrid, 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, MNumberInput, MMultiSelect, MImage, MCombobox, MFilePicker, MFormGroup, MFormErrors, MSteps, MPagination, MPopover, MMenu, MAppBar, MTabBar, MTimePicker, MVirtualList, };
|
|
50
|
+
export { MThemeProvider, MPlatform, MSpan, MScreen, MBox, MRow, MColumn, MStack, MGrid, 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, MNumberInput, MMultiSelect, MImage, MCombobox, MFilePicker, MFormGroup, MFormErrors, MSteps, MPagination, MPopover, MMenu, MAppBar, MTabBar, MTimePicker, MVirtualList, MDataTable, MCarousel, MRangeSlider, MCalendar, MRating, MTreeView, MCommandPalette, MNavigationRail, MBreadcrumb, MTooltip, MTimeline, MChart, };
|
|
47
51
|
export { useMavisTheme, useMavisPlatform, useMavisListMotion, useToast, useFormController, useFormField, useFileSelection, useMavisNavigation, } from '@getcortexlabs/mavis-core/vue';
|
|
48
52
|
export * from '@getcortexlabs/mavis-core';
|
|
49
53
|
/** Create one plugin per application; `system` appearance follows `prefers-color-scheme`. */
|
|
@@ -108,6 +112,18 @@ export function createMavis(options = {}) {
|
|
|
108
112
|
MTabBar,
|
|
109
113
|
MTimePicker,
|
|
110
114
|
MVirtualList,
|
|
115
|
+
MDataTable,
|
|
116
|
+
MCarousel,
|
|
117
|
+
MRangeSlider,
|
|
118
|
+
MCalendar,
|
|
119
|
+
MRating,
|
|
120
|
+
MTreeView,
|
|
121
|
+
MCommandPalette,
|
|
122
|
+
MNavigationRail,
|
|
123
|
+
MBreadcrumb,
|
|
124
|
+
MTooltip,
|
|
125
|
+
MTimeline,
|
|
126
|
+
MChart,
|
|
111
127
|
})) {
|
|
112
128
|
app.component(name, component);
|
|
113
129
|
}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],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/C,OAAO,EACL,cAAc,EACd,SAAS,EACT,KAAK,EACL,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,MAAM,EACN,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,OAAO,EACP,OAAO,EACP,OAAO,EACP,SAAS,EACT,WAAW,EACX,OAAO,EACP,MAAM,EACN,OAAO,EACP,KAAK,EACL,SAAS,EACT,KAAK,EACL,WAAW,EACX,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,MAAM,EACN,SAAS,EACT,UAAU,EACV,OAAO,EACP,MAAM,EACN,MAAM,EACN,KAAK,EACL,OAAO,EACP,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,MAAM,EACN,SAAS,EACT,WAAW,EACX,UAAU,EACV,WAAW,EACX,MAAM,EACN,WAAW,EACX,QAAQ,EACR,KAAK,EACL,OAAO,EACP,OAAO,EACP,WAAW,EACX,YAAY,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,eAAe,EACf,WAAW,EACX,SAAS,EACT,MAAM,GACP,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAChG,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AACnD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,M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N,OAAO;gBACP,KAAK;gBACL,SAAS;gBACT,KAAK;gBACL,WAAW;gBACX,SAAS;gBACT,UAAU;gBACV,iBAAiB;gBACjB,MAAM;gBACN,SAAS;gBACT,UAAU;gBACV,OAAO;gBACP,MAAM;gBACN,MAAM;gBACN,KAAK;gBACL,OAAO;gBACP,MAAM;gBACN,WAAW;gBACX,gBAAgB;gBAChB,YAAY;gBACZ,YAAY;gBACZ,MAAM;gBACN,SAAS;gBACT,WAAW;gBACX,UAAU;gBACV,WAAW;gBACX,MAAM;gBACN,WAAW;gBACX,QAAQ;gBACR,KAAK;gBACL,OAAO;gBACP,OAAO;gBACP,WAAW;gBACX,YAAY;gBACZ,UAAU;gBACV,SAAS;gBACT,YAAY;gBACZ,SAAS;gBACT,OAAO;gBACP,SAAS;gBACT,eAAe;gBACf,eAAe;gBACf,WAAW;gBACX,QAAQ;gBACR,SAAS;gBACT,MAAM;aACP,CACF,EAAE,CAAC;gBACF,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,CAAA;YAChC,CAAC;QACH,CAAC;KACF,CAAA;AACH,CAAC;AAED,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAEtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getcortexlabs/mavis-web",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.11",
|
|
4
4
|
"description": "Mavis components for Vue Web.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"build": "tsc -p tsconfig.build.json"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@getcortexlabs/mavis-core": "0.1.0-alpha.
|
|
51
|
+
"@getcortexlabs/mavis-core": "0.1.0-alpha.11"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"vue": "^3.5.42",
|
|
55
|
-
"@rafaelaugusto/jolt": "^0.1.0-rc.
|
|
55
|
+
"@rafaelaugusto/jolt": "^0.1.0-rc.11"
|
|
56
56
|
},
|
|
57
57
|
"license": "MIT",
|
|
58
58
|
"author": "Rafael Augusto",
|
package/src/base.css
CHANGED
|
@@ -996,3 +996,120 @@ button.m-chip-label:disabled {
|
|
|
996
996
|
outline: 2px solid currentColor;
|
|
997
997
|
outline-offset: 2px;
|
|
998
998
|
}
|
|
999
|
+
|
|
1000
|
+
.m-range-track {
|
|
1001
|
+
position: relative;
|
|
1002
|
+
height: 48px;
|
|
1003
|
+
margin: 0 12px;
|
|
1004
|
+
}
|
|
1005
|
+
.m-range-track::before {
|
|
1006
|
+
content: '';
|
|
1007
|
+
position: absolute;
|
|
1008
|
+
inset-inline: 0;
|
|
1009
|
+
top: 21px;
|
|
1010
|
+
height: 6px;
|
|
1011
|
+
border-radius: 999px;
|
|
1012
|
+
background: linear-gradient(
|
|
1013
|
+
to right,
|
|
1014
|
+
var(--m-range-track) var(--m-range-from),
|
|
1015
|
+
var(--m-range-color) var(--m-range-from),
|
|
1016
|
+
var(--m-range-color) var(--m-range-to),
|
|
1017
|
+
var(--m-range-track) var(--m-range-to)
|
|
1018
|
+
);
|
|
1019
|
+
}
|
|
1020
|
+
.m-range-track input {
|
|
1021
|
+
position: absolute;
|
|
1022
|
+
inset: 0 -12px;
|
|
1023
|
+
width: calc(100% + 24px);
|
|
1024
|
+
height: 48px;
|
|
1025
|
+
margin: 0;
|
|
1026
|
+
padding: 0;
|
|
1027
|
+
appearance: none;
|
|
1028
|
+
background: transparent;
|
|
1029
|
+
pointer-events: none;
|
|
1030
|
+
}
|
|
1031
|
+
.m-range-track input::-webkit-slider-runnable-track {
|
|
1032
|
+
height: 6px;
|
|
1033
|
+
background: transparent;
|
|
1034
|
+
}
|
|
1035
|
+
.m-range-track input::-moz-range-track {
|
|
1036
|
+
height: 6px;
|
|
1037
|
+
background: transparent;
|
|
1038
|
+
}
|
|
1039
|
+
.m-range-track input::-webkit-slider-thumb {
|
|
1040
|
+
appearance: none;
|
|
1041
|
+
pointer-events: auto;
|
|
1042
|
+
cursor: grab;
|
|
1043
|
+
width: 24px;
|
|
1044
|
+
height: 24px;
|
|
1045
|
+
margin-top: -9px;
|
|
1046
|
+
border-radius: 50%;
|
|
1047
|
+
background: var(--m-range-color);
|
|
1048
|
+
border: 3px solid var(--m-range-surface);
|
|
1049
|
+
box-shadow: 0 0 0 1px var(--m-range-color);
|
|
1050
|
+
}
|
|
1051
|
+
.m-range-track input::-moz-range-thumb {
|
|
1052
|
+
pointer-events: auto;
|
|
1053
|
+
cursor: grab;
|
|
1054
|
+
width: 20px;
|
|
1055
|
+
height: 20px;
|
|
1056
|
+
border-radius: 50%;
|
|
1057
|
+
background: var(--m-range-color);
|
|
1058
|
+
border: 3px solid var(--m-range-surface);
|
|
1059
|
+
box-shadow: 0 0 0 1px var(--m-range-color);
|
|
1060
|
+
}
|
|
1061
|
+
.m-range-track input:focus-visible {
|
|
1062
|
+
outline: 2px solid var(--m-range-color);
|
|
1063
|
+
outline-offset: 2px;
|
|
1064
|
+
border-radius: 8px;
|
|
1065
|
+
}
|
|
1066
|
+
.m-range-track input:disabled {
|
|
1067
|
+
opacity: 0.45;
|
|
1068
|
+
}
|
|
1069
|
+
.m-range-track input:disabled::-webkit-slider-thumb {
|
|
1070
|
+
pointer-events: none;
|
|
1071
|
+
}
|
|
1072
|
+
.m-range-track input:disabled::-moz-range-thumb {
|
|
1073
|
+
pointer-events: none;
|
|
1074
|
+
}
|
|
1075
|
+
[dir='rtl'] .m-range-track {
|
|
1076
|
+
direction: ltr;
|
|
1077
|
+
}
|
|
1078
|
+
.m-data-table th,
|
|
1079
|
+
.m-data-table td {
|
|
1080
|
+
border-bottom: 1px solid var(--m-color-border, #d5d5d5);
|
|
1081
|
+
}
|
|
1082
|
+
.m-data-table tr:last-child td {
|
|
1083
|
+
border-bottom: 0;
|
|
1084
|
+
}
|
|
1085
|
+
.m-data-table-selection > span:last-child {
|
|
1086
|
+
position: absolute;
|
|
1087
|
+
clip-path: inset(50%);
|
|
1088
|
+
width: 1px;
|
|
1089
|
+
height: 1px;
|
|
1090
|
+
overflow: hidden;
|
|
1091
|
+
white-space: nowrap;
|
|
1092
|
+
}
|
|
1093
|
+
.m-data-table tr[data-selected='true'] {
|
|
1094
|
+
background: var(--m-color-primarySoft, #e5edf5);
|
|
1095
|
+
}
|
|
1096
|
+
.m-data-table-scroll:focus-visible,
|
|
1097
|
+
.m-tree-view [role='treeitem']:focus-visible,
|
|
1098
|
+
.m-carousel [tabindex='0']:focus-visible {
|
|
1099
|
+
outline: 2px solid currentColor;
|
|
1100
|
+
outline-offset: -2px;
|
|
1101
|
+
border-radius: 8px;
|
|
1102
|
+
}
|
|
1103
|
+
@media (forced-colors: active) {
|
|
1104
|
+
.m-range-track::before {
|
|
1105
|
+
background: CanvasText;
|
|
1106
|
+
}
|
|
1107
|
+
.m-range-track input::-webkit-slider-thumb {
|
|
1108
|
+
background: Highlight;
|
|
1109
|
+
border-color: Canvas;
|
|
1110
|
+
}
|
|
1111
|
+
.m-range-track input::-moz-range-thumb {
|
|
1112
|
+
background: Highlight;
|
|
1113
|
+
border-color: Canvas;
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { defineComponent, h, onBeforeUnmount, onMounted, ref } from 'vue'
|
|
2
|
+
import { chartPlotProps, useMavisTheme } from '@getcortexlabs/mavis-core/vue'
|
|
3
|
+
import { chartHitTest, type ChartPoint } from '@getcortexlabs/mavis-core'
|
|
4
|
+
|
|
5
|
+
/** SVG is presentation only; the shared selects and data list own assistive interaction. */
|
|
6
|
+
export const ChartPlot = defineComponent({
|
|
7
|
+
name: 'MChartPlot',
|
|
8
|
+
props: chartPlotProps,
|
|
9
|
+
emits: { select: (_category: number, _series: number) => true },
|
|
10
|
+
setup(props, { emit }) {
|
|
11
|
+
const { theme } = useMavisTheme()
|
|
12
|
+
const plot = ref<SVGSVGElement>()
|
|
13
|
+
const measuredWidth = ref(600)
|
|
14
|
+
let observer: ResizeObserver | undefined
|
|
15
|
+
onMounted(() => {
|
|
16
|
+
const element = plot.value
|
|
17
|
+
if (!element) return
|
|
18
|
+
const measure = () => {
|
|
19
|
+
const width = element.getBoundingClientRect().width
|
|
20
|
+
if (width > 0 && width !== measuredWidth.value) measuredWidth.value = width
|
|
21
|
+
}
|
|
22
|
+
measure()
|
|
23
|
+
observer = new ResizeObserver(measure)
|
|
24
|
+
observer.observe(element)
|
|
25
|
+
})
|
|
26
|
+
onBeforeUnmount(() => observer?.disconnect())
|
|
27
|
+
return () => {
|
|
28
|
+
const width = measuredWidth.value,
|
|
29
|
+
height = props.height
|
|
30
|
+
const x = (point: ChartPoint) => point.x * width
|
|
31
|
+
const y = (point: ChartPoint) => 8 + point.y * (height - 16)
|
|
32
|
+
const zero = 8 + props.geometry.zero * (height - 16)
|
|
33
|
+
const count = props.geometry.series[0]?.points.length ?? 0
|
|
34
|
+
const groupWidth = (width / Math.max(1, count)) * 0.7
|
|
35
|
+
const barWidth = groupWidth / Math.max(1, props.geometry.series.length)
|
|
36
|
+
return h(
|
|
37
|
+
'svg',
|
|
38
|
+
{
|
|
39
|
+
ref: plot,
|
|
40
|
+
class: 'm-chart-plot',
|
|
41
|
+
viewBox: `0 0 ${width} ${height}`,
|
|
42
|
+
preserveAspectRatio: 'none',
|
|
43
|
+
'aria-hidden': 'true',
|
|
44
|
+
focusable: 'false',
|
|
45
|
+
style: { display: 'block', width: '100%', height: `${height}px`, overflow: 'visible' },
|
|
46
|
+
},
|
|
47
|
+
[
|
|
48
|
+
...props.geometry.ticks.map((_, i) =>
|
|
49
|
+
h('line', {
|
|
50
|
+
key: `grid:${i}`,
|
|
51
|
+
x1: 0,
|
|
52
|
+
x2: width,
|
|
53
|
+
y1: 8 + ((height - 16) * i) / 4,
|
|
54
|
+
y2: 8 + ((height - 16) * i) / 4,
|
|
55
|
+
stroke: theme.value.colors.border,
|
|
56
|
+
'stroke-dasharray': '3 6',
|
|
57
|
+
'vector-effect': 'non-scaling-stroke',
|
|
58
|
+
}),
|
|
59
|
+
),
|
|
60
|
+
...props.geometry.series.flatMap((series, seriesIndex) => {
|
|
61
|
+
const color = props.colors[seriesIndex]
|
|
62
|
+
const paths: string[] = []
|
|
63
|
+
let path = ''
|
|
64
|
+
for (const point of series.points) {
|
|
65
|
+
if (!point) {
|
|
66
|
+
if (path) paths.push(path)
|
|
67
|
+
path = ''
|
|
68
|
+
} else path += `${path ? ' L' : 'M'}${x(point)} ${y(point)}`
|
|
69
|
+
}
|
|
70
|
+
if (path) paths.push(path)
|
|
71
|
+
return [
|
|
72
|
+
...(props.type === 'line'
|
|
73
|
+
? paths.map((d, i) =>
|
|
74
|
+
h('path', {
|
|
75
|
+
key: `path:${seriesIndex}:${i}`,
|
|
76
|
+
d,
|
|
77
|
+
fill: 'none',
|
|
78
|
+
stroke: color,
|
|
79
|
+
'stroke-width': 2.5,
|
|
80
|
+
'stroke-linecap': 'round',
|
|
81
|
+
'stroke-linejoin': 'round',
|
|
82
|
+
'vector-effect': 'non-scaling-stroke',
|
|
83
|
+
}),
|
|
84
|
+
)
|
|
85
|
+
: []),
|
|
86
|
+
...series.points.map((point) => {
|
|
87
|
+
if (!point) return null
|
|
88
|
+
const selected =
|
|
89
|
+
props.selected?.category === point.index && props.selected.series === seriesIndex
|
|
90
|
+
return props.type === 'bar'
|
|
91
|
+
? h('rect', {
|
|
92
|
+
key: `bar:${seriesIndex}:${point.index}`,
|
|
93
|
+
x: x(point) - groupWidth / 2 + seriesIndex * barWidth,
|
|
94
|
+
y: Math.min(y(point), zero),
|
|
95
|
+
width: barWidth * 0.82,
|
|
96
|
+
height: Math.max(1, Math.abs(zero - y(point))),
|
|
97
|
+
rx: 3,
|
|
98
|
+
fill: color,
|
|
99
|
+
opacity: props.selected && !selected ? 0.45 : 1,
|
|
100
|
+
})
|
|
101
|
+
: h('circle', {
|
|
102
|
+
key: `point:${seriesIndex}:${point.index}`,
|
|
103
|
+
cx: x(point),
|
|
104
|
+
cy: y(point),
|
|
105
|
+
r: selected ? 5 : 3,
|
|
106
|
+
fill: color,
|
|
107
|
+
stroke: theme.value.colors.surface,
|
|
108
|
+
'stroke-width': 2,
|
|
109
|
+
'vector-effect': 'non-scaling-stroke',
|
|
110
|
+
})
|
|
111
|
+
}),
|
|
112
|
+
]
|
|
113
|
+
}),
|
|
114
|
+
// A full-height hit area works for short and zero-valued bars as well as points.
|
|
115
|
+
...Array.from({ length: count }, (_, index) =>
|
|
116
|
+
h('rect', {
|
|
117
|
+
key: `hit:${index}`,
|
|
118
|
+
x: (index * width) / count,
|
|
119
|
+
y: 0,
|
|
120
|
+
width: width / count,
|
|
121
|
+
height,
|
|
122
|
+
fill: 'transparent',
|
|
123
|
+
style: { cursor: props.disabled ? undefined : 'pointer' },
|
|
124
|
+
onClick: (event: MouseEvent) => {
|
|
125
|
+
if (props.disabled) return
|
|
126
|
+
const rect = (event.currentTarget as SVGElement).getBoundingClientRect()
|
|
127
|
+
const localX = (index + (event.clientX - rect.left) / rect.width) / count
|
|
128
|
+
const localY =
|
|
129
|
+
(((event.clientY - rect.top) / rect.height) * height - 8) / (height - 16)
|
|
130
|
+
const hit = chartHitTest(props.geometry, props.type, localX, localY)
|
|
131
|
+
if (hit) emit('select', hit.category, hit.series)
|
|
132
|
+
},
|
|
133
|
+
}),
|
|
134
|
+
),
|
|
135
|
+
],
|
|
136
|
+
)
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
})
|
|
@@ -25,7 +25,9 @@ export const DateCalendar = defineComponent({
|
|
|
25
25
|
if (alive) days.get(props.activeDate)?.focus({ preventScroll: true })
|
|
26
26
|
})
|
|
27
27
|
}
|
|
28
|
-
onMounted(
|
|
28
|
+
onMounted(() => {
|
|
29
|
+
if (props.autofocus) focusDay()
|
|
30
|
+
})
|
|
29
31
|
onBeforeUnmount(() => {
|
|
30
32
|
alive = false
|
|
31
33
|
days.clear()
|
|
@@ -57,7 +59,7 @@ export const DateCalendar = defineComponent({
|
|
|
57
59
|
icon: 'chevron-left',
|
|
58
60
|
variant: 'ghost',
|
|
59
61
|
accessibilityLabel: calendar.words.value.previous,
|
|
60
|
-
disabled: !calendar.canPage(-1),
|
|
62
|
+
disabled: props.disabled || !calendar.canPage(-1),
|
|
61
63
|
onClick: () => calendar.page(-1),
|
|
62
64
|
}),
|
|
63
65
|
h(
|
|
@@ -77,7 +79,7 @@ export const DateCalendar = defineComponent({
|
|
|
77
79
|
icon: 'chevron-right',
|
|
78
80
|
variant: 'ghost',
|
|
79
81
|
accessibilityLabel: calendar.words.value.next,
|
|
80
|
-
disabled: !calendar.canPage(1),
|
|
82
|
+
disabled: props.disabled || !calendar.canPage(1),
|
|
81
83
|
onClick: () => calendar.page(1),
|
|
82
84
|
}),
|
|
83
85
|
],
|
|
@@ -101,12 +103,18 @@ export const DateCalendar = defineComponent({
|
|
|
101
103
|
borderSpacing: 0,
|
|
102
104
|
tableLayout: 'fixed',
|
|
103
105
|
width: '100%',
|
|
104
|
-
minWidth: '
|
|
106
|
+
minWidth: 'max(308px, 17.5em)',
|
|
105
107
|
fontFamily: fontFamily(typography.body.fontFamily, 'web'),
|
|
106
108
|
fontSize: `${typography.body.fontSize}px`,
|
|
107
109
|
},
|
|
108
110
|
onKeydown: (event: KeyboardEvent) => {
|
|
109
|
-
if (
|
|
111
|
+
if (
|
|
112
|
+
props.disabled ||
|
|
113
|
+
event.altKey ||
|
|
114
|
+
event.ctrlKey ||
|
|
115
|
+
event.metaKey ||
|
|
116
|
+
event.isComposing
|
|
117
|
+
)
|
|
110
118
|
return
|
|
111
119
|
if (
|
|
112
120
|
calendar.key(
|
|
@@ -145,8 +153,12 @@ export const DateCalendar = defineComponent({
|
|
|
145
153
|
{ key: index },
|
|
146
154
|
week.map((date, column) => {
|
|
147
155
|
if (!date) return h('td', { key: column })
|
|
148
|
-
const selected =
|
|
149
|
-
|
|
156
|
+
const selected =
|
|
157
|
+
date === props.selected ||
|
|
158
|
+
date === props.rangeStart ||
|
|
159
|
+
date === props.rangeEnd
|
|
160
|
+
const available =
|
|
161
|
+
!props.disabled && !props.readonly && calendar.available(date)
|
|
150
162
|
const active = date === props.activeDate
|
|
151
163
|
return h(
|
|
152
164
|
'td',
|
|
@@ -190,7 +202,7 @@ export const DateCalendar = defineComponent({
|
|
|
190
202
|
if (props.activeDate !== date) emit('update:activeDate', date)
|
|
191
203
|
},
|
|
192
204
|
onClick: () => {
|
|
193
|
-
if (
|
|
205
|
+
if (available) emit('select', date)
|
|
194
206
|
},
|
|
195
207
|
},
|
|
196
208
|
String(Number(date.slice(8))),
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { computed, defineComponent, h, mergeProps, nextTick, useId } from 'vue'
|
|
2
|
+
import { moveRange, rangeValue, sliderScale, type RangeValue } from '@getcortexlabs/mavis-core'
|
|
3
|
+
import { rangeSliderProps, useMavisTheme } from '@getcortexlabs/mavis-core/vue'
|
|
4
|
+
import { MColumn, MRow } from './layout.js'
|
|
5
|
+
import { MText } from './MText.js'
|
|
6
|
+
import { useHydrationEdit } from '../hydration.js'
|
|
7
|
+
export const MRangeSlider = defineComponent({
|
|
8
|
+
name: 'MRangeSlider',
|
|
9
|
+
inheritAttrs: false,
|
|
10
|
+
props: rangeSliderProps,
|
|
11
|
+
emits: { 'update:modelValue': (_value: RangeValue) => true },
|
|
12
|
+
setup(props, { attrs, emit }) {
|
|
13
|
+
const { theme } = useMavisTheme()
|
|
14
|
+
const id = `m-range-${useId()}`
|
|
15
|
+
const pair = computed(() => rangeValue(props.modelValue, props.min, props.max, props.step))
|
|
16
|
+
const format = (value: number) => props.formatValue?.(value) ?? String(value)
|
|
17
|
+
const pending = useHydrationEdit(
|
|
18
|
+
(root) => {
|
|
19
|
+
if (props.disabled || props.readonly) return
|
|
20
|
+
const inputs = [...root.querySelectorAll<HTMLInputElement>('input[type="range"]')]
|
|
21
|
+
if (inputs.length !== 2) return
|
|
22
|
+
const scale = sliderScale(props.min, props.max, props.step)
|
|
23
|
+
if (
|
|
24
|
+
!inputs.every(
|
|
25
|
+
(input, thumb) => Number(input.defaultValue) === scale.toNative(pair.value[thumb]!),
|
|
26
|
+
)
|
|
27
|
+
)
|
|
28
|
+
return
|
|
29
|
+
if (inputs.every((input) => input.value === input.defaultValue)) return
|
|
30
|
+
const upper = scale.fromNative(inputs[1]!.valueAsNumber)
|
|
31
|
+
const value: [number, number] = [
|
|
32
|
+
Math.min(scale.fromNative(inputs[0]!.valueAsNumber), upper),
|
|
33
|
+
upper,
|
|
34
|
+
]
|
|
35
|
+
// Match the hydrated value attribute to the user's existing edit. Paint and
|
|
36
|
+
// accessible values update together after the owner accepts the pair.
|
|
37
|
+
inputs.forEach((input, thumb) => {
|
|
38
|
+
input.defaultValue = String(scale.toNative(value[thumb]!))
|
|
39
|
+
})
|
|
40
|
+
return value
|
|
41
|
+
},
|
|
42
|
+
(value) => emit('update:modelValue', value),
|
|
43
|
+
)
|
|
44
|
+
return () => {
|
|
45
|
+
const scale = sliderScale(props.min, props.max, props.step)
|
|
46
|
+
const shown = pending() ?? pair.value
|
|
47
|
+
const lower = scale.toNative(pair.value[0]),
|
|
48
|
+
upper = scale.toNative(pair.value[1])
|
|
49
|
+
return h(
|
|
50
|
+
MColumn,
|
|
51
|
+
mergeProps({ id: props.id, gap: 'sm' }, attrs, {
|
|
52
|
+
class: 'm-range-slider',
|
|
53
|
+
role: 'group',
|
|
54
|
+
'aria-labelledby': id,
|
|
55
|
+
style: {
|
|
56
|
+
'--m-range-color': theme.value.colors.primary,
|
|
57
|
+
'--m-range-track': theme.value.colors.border,
|
|
58
|
+
'--m-range-surface': theme.value.colors.surface,
|
|
59
|
+
'--m-range-from': `${(lower / scale.steps) * 100}%`,
|
|
60
|
+
'--m-range-to': `${(upper / scale.steps) * 100}%`,
|
|
61
|
+
},
|
|
62
|
+
}),
|
|
63
|
+
() => [
|
|
64
|
+
h(MRow, { justify: 'between', gap: 'md', wrap: true }, () => [
|
|
65
|
+
h(MText, { id, text: props.label, weight: '600' }),
|
|
66
|
+
h(MText, {
|
|
67
|
+
text: `${format(pair.value[0])} – ${format(pair.value[1])}`,
|
|
68
|
+
tone: 'muted',
|
|
69
|
+
}),
|
|
70
|
+
]),
|
|
71
|
+
h(
|
|
72
|
+
'div',
|
|
73
|
+
{ class: 'm-range-track' },
|
|
74
|
+
([0, 1] as const).map((thumb) =>
|
|
75
|
+
h('input', {
|
|
76
|
+
type: 'range',
|
|
77
|
+
min: 0,
|
|
78
|
+
max: scale.steps,
|
|
79
|
+
step: 1,
|
|
80
|
+
value: scale.toNative(shown[thumb]),
|
|
81
|
+
disabled: props.disabled,
|
|
82
|
+
'aria-readonly': props.readonly || undefined,
|
|
83
|
+
'aria-label': `${props.label}: ${thumb === 0 ? props.lowerLabel : props.upperLabel}`,
|
|
84
|
+
'aria-valuemin': thumb === 0 ? props.min : pair.value[0],
|
|
85
|
+
'aria-valuemax': thumb === 0 ? pair.value[1] : props.max,
|
|
86
|
+
'aria-valuenow': pair.value[thumb],
|
|
87
|
+
'aria-valuetext': format(pair.value[thumb]),
|
|
88
|
+
style: { zIndex: thumb === 0 && lower === scale.steps ? 3 : thumb + 1 },
|
|
89
|
+
onKeydown: (event: KeyboardEvent) => {
|
|
90
|
+
if (props.readonly) event.preventDefault()
|
|
91
|
+
},
|
|
92
|
+
onInput: (event: Event) => {
|
|
93
|
+
const input = event.target as HTMLInputElement
|
|
94
|
+
const next = moveRange(
|
|
95
|
+
pair.value,
|
|
96
|
+
thumb,
|
|
97
|
+
scale.fromNative(input.valueAsNumber),
|
|
98
|
+
props.min,
|
|
99
|
+
props.max,
|
|
100
|
+
props.step,
|
|
101
|
+
)
|
|
102
|
+
if (!props.disabled && !props.readonly && next[thumb] !== pair.value[thumb])
|
|
103
|
+
emit('update:modelValue', next)
|
|
104
|
+
void nextTick(() => {
|
|
105
|
+
input.value = String(scale.toNative(pair.value[thumb]))
|
|
106
|
+
})
|
|
107
|
+
},
|
|
108
|
+
}),
|
|
109
|
+
),
|
|
110
|
+
),
|
|
111
|
+
],
|
|
112
|
+
)
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
})
|