@getcortexlabs/mavis-core 0.1.0-rc.12 → 0.1.0-rc.12.2
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 +2 -2
- package/dist/advanced-collections.d.ts +74 -0
- package/dist/advanced-collections.d.ts.map +1 -0
- package/dist/advanced-collections.js +129 -0
- package/dist/advanced-collections.js.map +1 -0
- package/dist/capabilities.d.ts +7 -7
- package/dist/capabilities.d.ts.map +1 -1
- package/dist/capabilities.js +10 -4
- package/dist/capabilities.js.map +1 -1
- package/dist/image-crop.d.ts +49 -0
- package/dist/image-crop.d.ts.map +1 -0
- package/dist/image-crop.js +71 -0
- package/dist/image-crop.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/scheduler.d.ts +45 -0
- package/dist/scheduler.d.ts.map +1 -0
- package/dist/scheduler.js +142 -0
- package/dist/scheduler.js.map +1 -0
- package/dist/vue/advanced-collections.d.ts +486 -0
- package/dist/vue/advanced-collections.d.ts.map +1 -0
- package/dist/vue/advanced-collections.js +476 -0
- package/dist/vue/advanced-collections.js.map +1 -0
- package/dist/vue/advanced-props.d.ts +398 -0
- package/dist/vue/advanced-props.d.ts.map +1 -0
- package/dist/vue/advanced-props.js +128 -0
- package/dist/vue/advanced-props.js.map +1 -0
- package/dist/vue/animated-text.d.ts +1 -1
- package/dist/vue/chart.d.ts +1 -1
- package/dist/vue/command-palette.d.ts +3 -3
- package/dist/vue/component-props.d.ts +359 -3
- package/dist/vue/component-props.d.ts.map +1 -1
- package/dist/vue/component-props.js +7 -0
- package/dist/vue/component-props.js.map +1 -1
- package/dist/vue/composer.d.ts +1 -1
- package/dist/vue/configurator.d.ts +4 -4
- package/dist/vue/creative-controls.d.ts +1 -1
- package/dist/vue/dashboard-charts.d.ts +1 -1
- package/dist/vue/dashboard-effects.d.ts +2 -2
- package/dist/vue/date-picker.d.ts +8 -8
- package/dist/vue/discovery-controls.d.ts +1 -1
- package/dist/vue/global-components.d.ts +46 -0
- package/dist/vue/global-components.d.ts.map +1 -1
- package/dist/vue/image-cropper.d.ts +187 -0
- package/dist/vue/image-cropper.d.ts.map +1 -0
- package/dist/vue/image-cropper.js +310 -0
- package/dist/vue/image-cropper.js.map +1 -0
- package/dist/vue/index.d.ts +4 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +4 -0
- package/dist/vue/index.js.map +1 -1
- package/dist/vue/kanban.d.ts +2 -2
- package/dist/vue/menu.d.ts +2 -2
- package/dist/vue/navigation-controls.d.ts +1 -1
- package/dist/vue/props.d.ts +6 -6
- package/dist/vue/scheduler.d.ts +229 -0
- package/dist/vue/scheduler.d.ts.map +1 -0
- package/dist/vue/scheduler.js +363 -0
- package/dist/vue/scheduler.js.map +1 -0
- package/dist/vue/scroll-frame.d.ts +1 -1
- package/dist/vue/speed-dial.d.ts +2 -2
- package/dist/vue/swipe-actions.d.ts +1 -1
- package/dist/vue/swipe-deck.d.ts +1 -1
- package/dist/vue/time-picker.d.ts +4 -4
- package/dist/vue/tour.d.ts +1 -1
- package/dist/vue/wayfinding-controls.d.ts +2 -2
- package/dist/vue/workflows.d.ts +3 -3
- package/package.json +1 -1
- package/src/advanced-collections.ts +199 -0
- package/src/capabilities.ts +10 -4
- package/src/image-crop.ts +125 -0
- package/src/index.ts +6 -0
- package/src/scheduler.ts +194 -0
- package/src/vue/advanced-collections.ts +679 -0
- package/src/vue/advanced-props.ts +144 -0
- package/src/vue/component-props.ts +14 -0
- package/src/vue/global-components.ts +46 -0
- package/src/vue/image-cropper.ts +413 -0
- package/src/vue/index.ts +8 -0
- package/src/vue/scheduler.ts +505 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { addCivilDays, civilDate, parseCivilDate, formatCivilDate } from './date.js';
|
|
2
|
+
import { uniqueAdvanced } from './advanced-collections.js';
|
|
3
|
+
function civilMilliseconds(value) {
|
|
4
|
+
const parts = parseCivilDate(value.date);
|
|
5
|
+
if (!parts || !Number.isInteger(value.minute) || value.minute < 0 || value.minute >= 1440)
|
|
6
|
+
throw new RangeError('Invalid scheduler civil time.');
|
|
7
|
+
const date = new Date(0);
|
|
8
|
+
date.setUTCFullYear(parts.year, parts.month - 1, parts.day);
|
|
9
|
+
date.setUTCHours(0, value.minute, 0, 0);
|
|
10
|
+
return date.getTime();
|
|
11
|
+
}
|
|
12
|
+
export function schedulerCivilFromUTC(value) {
|
|
13
|
+
const date = new Date(value);
|
|
14
|
+
return {
|
|
15
|
+
date: formatCivilDate({
|
|
16
|
+
year: date.getUTCFullYear(),
|
|
17
|
+
month: date.getUTCMonth() + 1,
|
|
18
|
+
day: date.getUTCDate(),
|
|
19
|
+
}),
|
|
20
|
+
minute: date.getUTCHours() * 60 + date.getUTCMinutes(),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/** Resolve wall time by testing actual zone offsets around the date; never guess a DST gap. */
|
|
24
|
+
export function schedulerInstant(value, timeZone, clock, disambiguation = 'reject') {
|
|
25
|
+
if (!['reject', 'earlier', 'later'].includes(disambiguation))
|
|
26
|
+
throw new RangeError('Invalid scheduler disambiguation.');
|
|
27
|
+
if (!timeZone.trim())
|
|
28
|
+
throw new RangeError('Scheduler requires an explicit timeZone.');
|
|
29
|
+
const nominal = civilMilliseconds(value), offsets = new Set();
|
|
30
|
+
for (let hours = -36; hours <= 36; hours += 6) {
|
|
31
|
+
const instant = nominal + hours * 3600000;
|
|
32
|
+
offsets.add(civilMilliseconds(clock.parts(instant, timeZone)) - instant);
|
|
33
|
+
}
|
|
34
|
+
const matches = [...offsets]
|
|
35
|
+
.map((offset) => nominal - offset)
|
|
36
|
+
.filter((instant) => {
|
|
37
|
+
const parts = clock.parts(instant, timeZone);
|
|
38
|
+
return parts.date === value.date && parts.minute === value.minute;
|
|
39
|
+
})
|
|
40
|
+
.sort((a, b) => a - b);
|
|
41
|
+
if (!matches.length)
|
|
42
|
+
throw new RangeError('This local time does not exist in the selected time zone.');
|
|
43
|
+
if (matches.length > 1 && disambiguation === 'reject')
|
|
44
|
+
throw new RangeError('This local time occurs twice. Choose earlier or later explicitly.');
|
|
45
|
+
return matches[disambiguation === 'later' ? matches.length - 1 : 0];
|
|
46
|
+
}
|
|
47
|
+
export function validateSchedulerEvents(events) {
|
|
48
|
+
uniqueAdvanced(events, 'Scheduler', 500);
|
|
49
|
+
for (const event of events)
|
|
50
|
+
if (!event.title.trim() ||
|
|
51
|
+
!Number.isFinite(event.start) ||
|
|
52
|
+
!Number.isFinite(event.end) ||
|
|
53
|
+
event.end <= event.start ||
|
|
54
|
+
event.end - event.start > 31 * 86400000 ||
|
|
55
|
+
Math.abs(event.start) > 8640000000000000 ||
|
|
56
|
+
Math.abs(event.end) > 8640000000000000 ||
|
|
57
|
+
(event.color && !/^#[\da-f]{6}$/i.test(event.color)))
|
|
58
|
+
throw new RangeError('Scheduler events require a title, ordered epoch milliseconds (duration <=31 days) and optional HEX color.');
|
|
59
|
+
}
|
|
60
|
+
export function changeSchedulerEvent(events, change) {
|
|
61
|
+
validateSchedulerEvents(events);
|
|
62
|
+
const event = events.find((event) => event.id === change.id);
|
|
63
|
+
if (!event || event.disabled)
|
|
64
|
+
return [...events];
|
|
65
|
+
const next = events.map((event) => event.id === change.id ? { ...event, start: change.start, end: change.end } : event);
|
|
66
|
+
validateSchedulerEvents(next);
|
|
67
|
+
return next;
|
|
68
|
+
}
|
|
69
|
+
export function schedulerLayout(events, date, days, timeZone, clock, startHour = 0, endHour = 24) {
|
|
70
|
+
civilDate(date);
|
|
71
|
+
clock.parts(new Date(`${date}T12:00:00.000Z`).getTime(), timeZone);
|
|
72
|
+
validateSchedulerEvents(events);
|
|
73
|
+
if (![1, 7].includes(days) ||
|
|
74
|
+
!Number.isInteger(startHour) ||
|
|
75
|
+
!Number.isInteger(endHour) ||
|
|
76
|
+
startHour < 0 ||
|
|
77
|
+
endHour > 24 ||
|
|
78
|
+
startHour >= endHour)
|
|
79
|
+
throw new RangeError('Scheduler needs a day/week and ordered whole-hour bounds.');
|
|
80
|
+
return Array.from({ length: days }, (_, day) => {
|
|
81
|
+
const civil = addCivilDays(date, day);
|
|
82
|
+
const segments = events
|
|
83
|
+
.flatMap((event) => {
|
|
84
|
+
const start = clock.parts(event.start, timeZone), end = clock.parts(event.end, timeZone);
|
|
85
|
+
if (start.date > civil || end.date < civil || (end.date === civil && end.minute === 0))
|
|
86
|
+
return [];
|
|
87
|
+
const top = Math.max(startHour * 60, start.date < civil ? 0 : start.minute), bottom = Math.min(endHour * 60, end.date > civil ? 1440 : end.minute);
|
|
88
|
+
// A repeated-hour event may finish at an earlier wall time; retain its elapsed duration.
|
|
89
|
+
const finish = end.minute <= start.minute &&
|
|
90
|
+
start.minute >= startHour * 60 &&
|
|
91
|
+
start.minute < endHour * 60 &&
|
|
92
|
+
event.end > event.start &&
|
|
93
|
+
start.date === civil &&
|
|
94
|
+
end.date === civil
|
|
95
|
+
? Math.min(endHour * 60, top + (event.end - event.start) / 60000)
|
|
96
|
+
: bottom;
|
|
97
|
+
return finish > top
|
|
98
|
+
? [
|
|
99
|
+
{
|
|
100
|
+
event,
|
|
101
|
+
day,
|
|
102
|
+
date: civil,
|
|
103
|
+
top,
|
|
104
|
+
bottom: finish,
|
|
105
|
+
lane: 0,
|
|
106
|
+
lanes: 1,
|
|
107
|
+
startsHere: start.date === civil,
|
|
108
|
+
endsHere: end.date === civil,
|
|
109
|
+
},
|
|
110
|
+
]
|
|
111
|
+
: [];
|
|
112
|
+
})
|
|
113
|
+
.sort((a, b) => a.top - b.top || a.event.start - b.event.start || a.event.id.localeCompare(b.event.id));
|
|
114
|
+
let group = [], ends = [], groupEnd = 0;
|
|
115
|
+
function finish() {
|
|
116
|
+
for (const segment of group)
|
|
117
|
+
segment.lanes = ends.length;
|
|
118
|
+
group = [];
|
|
119
|
+
ends = [];
|
|
120
|
+
}
|
|
121
|
+
for (const segment of segments) {
|
|
122
|
+
if (group.length && segment.top >= groupEnd)
|
|
123
|
+
finish();
|
|
124
|
+
let lane = ends.findIndex((end) => end <= segment.top);
|
|
125
|
+
if (lane < 0)
|
|
126
|
+
lane = ends.length;
|
|
127
|
+
ends[lane] = segment.bottom;
|
|
128
|
+
segment.lane = lane;
|
|
129
|
+
group.push(segment);
|
|
130
|
+
groupEnd = Math.max(...ends);
|
|
131
|
+
}
|
|
132
|
+
finish();
|
|
133
|
+
return { date: civil, segments };
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
/** Offset distinguishes the two occurrences of a repeated local time. */
|
|
137
|
+
export function schedulerOffset(instant, timeZone, clock) {
|
|
138
|
+
const minutes = Math.round((civilMilliseconds(clock.parts(instant, timeZone)) - Math.floor(instant / 60000) * 60000) /
|
|
139
|
+
60000);
|
|
140
|
+
return `UTC${minutes >= 0 ? '+' : '−'}${String(Math.floor(Math.abs(minutes) / 60)).padStart(2, '0')}:${String(Math.abs(minutes) % 60).padStart(2, '0')}`;
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=scheduler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scheduler.js","sourceRoot":"","sources":["../src/scheduler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,cAAc,EAAE,eAAe,EAAkB,MAAM,WAAW,CAAA;AACpG,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAuB1D,SAAS,iBAAiB,CAAC,KAAyB;IAClD,MAAM,KAAK,GAAG,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IACxC,IAAI,CAAC,KAAK,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,KAAK,CAAC,MAAM,IAAI,IAAI;QACvF,MAAM,IAAI,UAAU,CAAC,+BAA+B,CAAC,CAAA;IACvD,MAAM,IAAI,GAA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CACxB,CAAC,iBAAiB,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,GAAG,KAAK,CAAC;QACvF,KAAK,CACR,CAAA;IACD,OAAO,MAAM,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAA;AAC1J,CAAC"}
|
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
import { type Component } from '@vue/runtime-core';
|
|
2
|
+
import { type MavisNotification } from '../advanced-collections.js';
|
|
3
|
+
import type { CivilDate } from '../date.js';
|
|
4
|
+
export interface AdvancedUI {
|
|
5
|
+
Box: Component;
|
|
6
|
+
Column: Component;
|
|
7
|
+
Row: Component;
|
|
8
|
+
Stack: Component;
|
|
9
|
+
Card: Component;
|
|
10
|
+
Text: Component;
|
|
11
|
+
Button: Component;
|
|
12
|
+
Input: Component;
|
|
13
|
+
Checkbox: Component;
|
|
14
|
+
Slider: Component;
|
|
15
|
+
Popover: Component;
|
|
16
|
+
Segmented: Component;
|
|
17
|
+
Image: Component;
|
|
18
|
+
Host: Component;
|
|
19
|
+
Measure: Component;
|
|
20
|
+
Canvas: Component;
|
|
21
|
+
Cell: Component;
|
|
22
|
+
Scroll: Component;
|
|
23
|
+
Gesture: Component;
|
|
24
|
+
}
|
|
25
|
+
export interface AdvancedFocus {
|
|
26
|
+
focus(id?: string): void;
|
|
27
|
+
}
|
|
28
|
+
export declare function createAdvancedPaint(ui: AdvancedUI): import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
|
|
29
|
+
color: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
animated: BooleanConstructor;
|
|
34
|
+
}>, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
}>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
37
|
+
color: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
animated: BooleanConstructor;
|
|
42
|
+
}>> & Readonly<{}>, {
|
|
43
|
+
animated: boolean;
|
|
44
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
|
|
45
|
+
export declare function createTreeSelect(ui: AdvancedUI, platform: 'web' | 'native'): import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
|
|
46
|
+
id: StringConstructor;
|
|
47
|
+
label: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
nodes: {
|
|
52
|
+
type: import("@vue/runtime-core").PropType<readonly import("../advanced-collections.js").TreeSelectNode[]>;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
modelValue: {
|
|
56
|
+
type: import("@vue/runtime-core").PropType<readonly string[]>;
|
|
57
|
+
default: () => never[];
|
|
58
|
+
};
|
|
59
|
+
expanded: {
|
|
60
|
+
type: import("@vue/runtime-core").PropType<readonly string[]>;
|
|
61
|
+
default: () => never[];
|
|
62
|
+
};
|
|
63
|
+
multiple: BooleanConstructor;
|
|
64
|
+
disabled: BooleanConstructor;
|
|
65
|
+
animated: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
placeholder: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
searchLabel: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
clearLabel: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
emptyLabel: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
expandLabel: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
collapseLabel: {
|
|
90
|
+
type: StringConstructor;
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
}>, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
94
|
+
[key: string]: any;
|
|
95
|
+
}>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
96
|
+
'update:modelValue': (_v: string[]) => true;
|
|
97
|
+
'update:expanded': (_v: string[]) => true;
|
|
98
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
99
|
+
id: StringConstructor;
|
|
100
|
+
label: {
|
|
101
|
+
type: StringConstructor;
|
|
102
|
+
required: true;
|
|
103
|
+
};
|
|
104
|
+
nodes: {
|
|
105
|
+
type: import("@vue/runtime-core").PropType<readonly import("../advanced-collections.js").TreeSelectNode[]>;
|
|
106
|
+
required: true;
|
|
107
|
+
};
|
|
108
|
+
modelValue: {
|
|
109
|
+
type: import("@vue/runtime-core").PropType<readonly string[]>;
|
|
110
|
+
default: () => never[];
|
|
111
|
+
};
|
|
112
|
+
expanded: {
|
|
113
|
+
type: import("@vue/runtime-core").PropType<readonly string[]>;
|
|
114
|
+
default: () => never[];
|
|
115
|
+
};
|
|
116
|
+
multiple: BooleanConstructor;
|
|
117
|
+
disabled: BooleanConstructor;
|
|
118
|
+
animated: {
|
|
119
|
+
type: BooleanConstructor;
|
|
120
|
+
default: boolean;
|
|
121
|
+
};
|
|
122
|
+
placeholder: {
|
|
123
|
+
type: StringConstructor;
|
|
124
|
+
default: string;
|
|
125
|
+
};
|
|
126
|
+
searchLabel: {
|
|
127
|
+
type: StringConstructor;
|
|
128
|
+
default: string;
|
|
129
|
+
};
|
|
130
|
+
clearLabel: {
|
|
131
|
+
type: StringConstructor;
|
|
132
|
+
default: string;
|
|
133
|
+
};
|
|
134
|
+
emptyLabel: {
|
|
135
|
+
type: StringConstructor;
|
|
136
|
+
default: string;
|
|
137
|
+
};
|
|
138
|
+
expandLabel: {
|
|
139
|
+
type: StringConstructor;
|
|
140
|
+
default: string;
|
|
141
|
+
};
|
|
142
|
+
collapseLabel: {
|
|
143
|
+
type: StringConstructor;
|
|
144
|
+
default: string;
|
|
145
|
+
};
|
|
146
|
+
}>> & Readonly<{
|
|
147
|
+
"onUpdate:modelValue"?: ((_v: string[]) => any) | undefined;
|
|
148
|
+
"onUpdate:expanded"?: ((_v: string[]) => any) | undefined;
|
|
149
|
+
}>, {
|
|
150
|
+
disabled: boolean;
|
|
151
|
+
expanded: readonly string[];
|
|
152
|
+
modelValue: readonly string[];
|
|
153
|
+
placeholder: string;
|
|
154
|
+
animated: boolean;
|
|
155
|
+
multiple: boolean;
|
|
156
|
+
searchLabel: string;
|
|
157
|
+
clearLabel: string;
|
|
158
|
+
emptyLabel: string;
|
|
159
|
+
expandLabel: string;
|
|
160
|
+
collapseLabel: string;
|
|
161
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
|
|
162
|
+
export declare function createMasonry(ui: AdvancedUI, platform: 'web' | 'native'): import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
|
|
163
|
+
id: StringConstructor;
|
|
164
|
+
label: {
|
|
165
|
+
type: StringConstructor;
|
|
166
|
+
required: true;
|
|
167
|
+
};
|
|
168
|
+
items: {
|
|
169
|
+
type: import("@vue/runtime-core").PropType<readonly import("../advanced-collections.js").MasonryItem[]>;
|
|
170
|
+
required: true;
|
|
171
|
+
};
|
|
172
|
+
minColumnWidth: {
|
|
173
|
+
type: NumberConstructor;
|
|
174
|
+
default: number;
|
|
175
|
+
};
|
|
176
|
+
columns: {
|
|
177
|
+
type: NumberConstructor;
|
|
178
|
+
default: number;
|
|
179
|
+
};
|
|
180
|
+
gap: {
|
|
181
|
+
default: string;
|
|
182
|
+
type: import("@vue/runtime-core").PropType<import("../index.js").Spacing>;
|
|
183
|
+
};
|
|
184
|
+
animated: {
|
|
185
|
+
type: BooleanConstructor;
|
|
186
|
+
default: boolean;
|
|
187
|
+
};
|
|
188
|
+
emptyLabel: {
|
|
189
|
+
type: StringConstructor;
|
|
190
|
+
default: string;
|
|
191
|
+
};
|
|
192
|
+
}>, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
193
|
+
[key: string]: any;
|
|
194
|
+
}>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
195
|
+
id: StringConstructor;
|
|
196
|
+
label: {
|
|
197
|
+
type: StringConstructor;
|
|
198
|
+
required: true;
|
|
199
|
+
};
|
|
200
|
+
items: {
|
|
201
|
+
type: import("@vue/runtime-core").PropType<readonly import("../advanced-collections.js").MasonryItem[]>;
|
|
202
|
+
required: true;
|
|
203
|
+
};
|
|
204
|
+
minColumnWidth: {
|
|
205
|
+
type: NumberConstructor;
|
|
206
|
+
default: number;
|
|
207
|
+
};
|
|
208
|
+
columns: {
|
|
209
|
+
type: NumberConstructor;
|
|
210
|
+
default: number;
|
|
211
|
+
};
|
|
212
|
+
gap: {
|
|
213
|
+
default: string;
|
|
214
|
+
type: import("@vue/runtime-core").PropType<import("../index.js").Spacing>;
|
|
215
|
+
};
|
|
216
|
+
animated: {
|
|
217
|
+
type: BooleanConstructor;
|
|
218
|
+
default: boolean;
|
|
219
|
+
};
|
|
220
|
+
emptyLabel: {
|
|
221
|
+
type: StringConstructor;
|
|
222
|
+
default: string;
|
|
223
|
+
};
|
|
224
|
+
}>> & Readonly<{}>, {
|
|
225
|
+
gap: import("../index.js").Spacing;
|
|
226
|
+
animated: boolean;
|
|
227
|
+
emptyLabel: string;
|
|
228
|
+
minColumnWidth: number;
|
|
229
|
+
columns: number;
|
|
230
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
|
|
231
|
+
export declare function createHeatmap(ui: AdvancedUI, platform: 'web' | 'native'): import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
|
|
232
|
+
id: StringConstructor;
|
|
233
|
+
label: {
|
|
234
|
+
type: StringConstructor;
|
|
235
|
+
required: true;
|
|
236
|
+
};
|
|
237
|
+
start: {
|
|
238
|
+
type: import("@vue/runtime-core").PropType<CivilDate>;
|
|
239
|
+
required: true;
|
|
240
|
+
};
|
|
241
|
+
end: {
|
|
242
|
+
type: import("@vue/runtime-core").PropType<CivilDate>;
|
|
243
|
+
required: true;
|
|
244
|
+
};
|
|
245
|
+
values: {
|
|
246
|
+
type: import("@vue/runtime-core").PropType<readonly import("../advanced-collections.js").HeatmapValue[]>;
|
|
247
|
+
required: true;
|
|
248
|
+
};
|
|
249
|
+
modelValue: {
|
|
250
|
+
type: import("@vue/runtime-core").PropType<CivilDate | null>;
|
|
251
|
+
default: null;
|
|
252
|
+
};
|
|
253
|
+
colors: {
|
|
254
|
+
type: import("@vue/runtime-core").PropType<readonly string[]>;
|
|
255
|
+
default: () => string[];
|
|
256
|
+
};
|
|
257
|
+
cellSize: {
|
|
258
|
+
type: NumberConstructor;
|
|
259
|
+
default: number;
|
|
260
|
+
};
|
|
261
|
+
weekStartsOn: {
|
|
262
|
+
type: import("@vue/runtime-core").PropType<0 | 1>;
|
|
263
|
+
default: number;
|
|
264
|
+
};
|
|
265
|
+
animated: {
|
|
266
|
+
type: BooleanConstructor;
|
|
267
|
+
default: boolean;
|
|
268
|
+
};
|
|
269
|
+
disabled: BooleanConstructor;
|
|
270
|
+
missingLabel: {
|
|
271
|
+
type: StringConstructor;
|
|
272
|
+
default: string;
|
|
273
|
+
};
|
|
274
|
+
dataLabel: {
|
|
275
|
+
type: StringConstructor;
|
|
276
|
+
default: string;
|
|
277
|
+
};
|
|
278
|
+
lessLabel: {
|
|
279
|
+
type: StringConstructor;
|
|
280
|
+
default: string;
|
|
281
|
+
};
|
|
282
|
+
moreLabel: {
|
|
283
|
+
type: StringConstructor;
|
|
284
|
+
default: string;
|
|
285
|
+
};
|
|
286
|
+
formatValue: import("@vue/runtime-core").PropType<(value: number) => string>;
|
|
287
|
+
}>, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
288
|
+
[key: string]: any;
|
|
289
|
+
}>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
290
|
+
'update:modelValue': (_v: CivilDate) => true;
|
|
291
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
292
|
+
id: StringConstructor;
|
|
293
|
+
label: {
|
|
294
|
+
type: StringConstructor;
|
|
295
|
+
required: true;
|
|
296
|
+
};
|
|
297
|
+
start: {
|
|
298
|
+
type: import("@vue/runtime-core").PropType<CivilDate>;
|
|
299
|
+
required: true;
|
|
300
|
+
};
|
|
301
|
+
end: {
|
|
302
|
+
type: import("@vue/runtime-core").PropType<CivilDate>;
|
|
303
|
+
required: true;
|
|
304
|
+
};
|
|
305
|
+
values: {
|
|
306
|
+
type: import("@vue/runtime-core").PropType<readonly import("../advanced-collections.js").HeatmapValue[]>;
|
|
307
|
+
required: true;
|
|
308
|
+
};
|
|
309
|
+
modelValue: {
|
|
310
|
+
type: import("@vue/runtime-core").PropType<CivilDate | null>;
|
|
311
|
+
default: null;
|
|
312
|
+
};
|
|
313
|
+
colors: {
|
|
314
|
+
type: import("@vue/runtime-core").PropType<readonly string[]>;
|
|
315
|
+
default: () => string[];
|
|
316
|
+
};
|
|
317
|
+
cellSize: {
|
|
318
|
+
type: NumberConstructor;
|
|
319
|
+
default: number;
|
|
320
|
+
};
|
|
321
|
+
weekStartsOn: {
|
|
322
|
+
type: import("@vue/runtime-core").PropType<0 | 1>;
|
|
323
|
+
default: number;
|
|
324
|
+
};
|
|
325
|
+
animated: {
|
|
326
|
+
type: BooleanConstructor;
|
|
327
|
+
default: boolean;
|
|
328
|
+
};
|
|
329
|
+
disabled: BooleanConstructor;
|
|
330
|
+
missingLabel: {
|
|
331
|
+
type: StringConstructor;
|
|
332
|
+
default: string;
|
|
333
|
+
};
|
|
334
|
+
dataLabel: {
|
|
335
|
+
type: StringConstructor;
|
|
336
|
+
default: string;
|
|
337
|
+
};
|
|
338
|
+
lessLabel: {
|
|
339
|
+
type: StringConstructor;
|
|
340
|
+
default: string;
|
|
341
|
+
};
|
|
342
|
+
moreLabel: {
|
|
343
|
+
type: StringConstructor;
|
|
344
|
+
default: string;
|
|
345
|
+
};
|
|
346
|
+
formatValue: import("@vue/runtime-core").PropType<(value: number) => string>;
|
|
347
|
+
}>> & Readonly<{
|
|
348
|
+
"onUpdate:modelValue"?: ((_v: `${number}-${number}-${number}`) => any) | undefined;
|
|
349
|
+
}>, {
|
|
350
|
+
disabled: boolean;
|
|
351
|
+
colors: readonly string[];
|
|
352
|
+
modelValue: `${number}-${number}-${number}` | null;
|
|
353
|
+
animated: boolean;
|
|
354
|
+
cellSize: number;
|
|
355
|
+
weekStartsOn: 0 | 1;
|
|
356
|
+
missingLabel: string;
|
|
357
|
+
dataLabel: string;
|
|
358
|
+
lessLabel: string;
|
|
359
|
+
moreLabel: string;
|
|
360
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
|
|
361
|
+
export declare function createNotificationCenter(ui: AdvancedUI, platform: 'web' | 'native'): import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
|
|
362
|
+
id: StringConstructor;
|
|
363
|
+
label: {
|
|
364
|
+
type: StringConstructor;
|
|
365
|
+
required: true;
|
|
366
|
+
};
|
|
367
|
+
modelValue: {
|
|
368
|
+
type: import("@vue/runtime-core").PropType<readonly MavisNotification[]>;
|
|
369
|
+
required: true;
|
|
370
|
+
};
|
|
371
|
+
disabled: BooleanConstructor;
|
|
372
|
+
animated: {
|
|
373
|
+
type: BooleanConstructor;
|
|
374
|
+
default: boolean;
|
|
375
|
+
};
|
|
376
|
+
filter: {
|
|
377
|
+
type: import("@vue/runtime-core").PropType<"all" | "unread">;
|
|
378
|
+
default: string;
|
|
379
|
+
};
|
|
380
|
+
allLabel: {
|
|
381
|
+
type: StringConstructor;
|
|
382
|
+
default: string;
|
|
383
|
+
};
|
|
384
|
+
unreadLabel: {
|
|
385
|
+
type: StringConstructor;
|
|
386
|
+
default: string;
|
|
387
|
+
};
|
|
388
|
+
readLabel: {
|
|
389
|
+
type: StringConstructor;
|
|
390
|
+
default: string;
|
|
391
|
+
};
|
|
392
|
+
unreadActionLabel: {
|
|
393
|
+
type: StringConstructor;
|
|
394
|
+
default: string;
|
|
395
|
+
};
|
|
396
|
+
readAllLabel: {
|
|
397
|
+
type: StringConstructor;
|
|
398
|
+
default: string;
|
|
399
|
+
};
|
|
400
|
+
dismissLabel: {
|
|
401
|
+
type: StringConstructor;
|
|
402
|
+
default: string;
|
|
403
|
+
};
|
|
404
|
+
emptyLabel: {
|
|
405
|
+
type: StringConstructor;
|
|
406
|
+
default: string;
|
|
407
|
+
};
|
|
408
|
+
ungroupedLabel: {
|
|
409
|
+
type: StringConstructor;
|
|
410
|
+
default: string;
|
|
411
|
+
};
|
|
412
|
+
}>, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
413
|
+
[key: string]: any;
|
|
414
|
+
}>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
415
|
+
'update:modelValue': (_v: MavisNotification[]) => true;
|
|
416
|
+
'update:filter': (_v: "all" | "unread") => true;
|
|
417
|
+
action: (_id: string) => true;
|
|
418
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
419
|
+
id: StringConstructor;
|
|
420
|
+
label: {
|
|
421
|
+
type: StringConstructor;
|
|
422
|
+
required: true;
|
|
423
|
+
};
|
|
424
|
+
modelValue: {
|
|
425
|
+
type: import("@vue/runtime-core").PropType<readonly MavisNotification[]>;
|
|
426
|
+
required: true;
|
|
427
|
+
};
|
|
428
|
+
disabled: BooleanConstructor;
|
|
429
|
+
animated: {
|
|
430
|
+
type: BooleanConstructor;
|
|
431
|
+
default: boolean;
|
|
432
|
+
};
|
|
433
|
+
filter: {
|
|
434
|
+
type: import("@vue/runtime-core").PropType<"all" | "unread">;
|
|
435
|
+
default: string;
|
|
436
|
+
};
|
|
437
|
+
allLabel: {
|
|
438
|
+
type: StringConstructor;
|
|
439
|
+
default: string;
|
|
440
|
+
};
|
|
441
|
+
unreadLabel: {
|
|
442
|
+
type: StringConstructor;
|
|
443
|
+
default: string;
|
|
444
|
+
};
|
|
445
|
+
readLabel: {
|
|
446
|
+
type: StringConstructor;
|
|
447
|
+
default: string;
|
|
448
|
+
};
|
|
449
|
+
unreadActionLabel: {
|
|
450
|
+
type: StringConstructor;
|
|
451
|
+
default: string;
|
|
452
|
+
};
|
|
453
|
+
readAllLabel: {
|
|
454
|
+
type: StringConstructor;
|
|
455
|
+
default: string;
|
|
456
|
+
};
|
|
457
|
+
dismissLabel: {
|
|
458
|
+
type: StringConstructor;
|
|
459
|
+
default: string;
|
|
460
|
+
};
|
|
461
|
+
emptyLabel: {
|
|
462
|
+
type: StringConstructor;
|
|
463
|
+
default: string;
|
|
464
|
+
};
|
|
465
|
+
ungroupedLabel: {
|
|
466
|
+
type: StringConstructor;
|
|
467
|
+
default: string;
|
|
468
|
+
};
|
|
469
|
+
}>> & Readonly<{
|
|
470
|
+
"onUpdate:modelValue"?: ((_v: MavisNotification[]) => any) | undefined;
|
|
471
|
+
"onUpdate:filter"?: ((_v: "unread" | "all") => any) | undefined;
|
|
472
|
+
onAction?: ((_id: string) => any) | undefined;
|
|
473
|
+
}>, {
|
|
474
|
+
filter: "unread" | "all";
|
|
475
|
+
disabled: boolean;
|
|
476
|
+
animated: boolean;
|
|
477
|
+
emptyLabel: string;
|
|
478
|
+
allLabel: string;
|
|
479
|
+
unreadLabel: string;
|
|
480
|
+
readLabel: string;
|
|
481
|
+
unreadActionLabel: string;
|
|
482
|
+
readAllLabel: string;
|
|
483
|
+
dismissLabel: string;
|
|
484
|
+
ungroupedLabel: string;
|
|
485
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
|
|
486
|
+
//# sourceMappingURL=advanced-collections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advanced-collections.d.ts","sourceRoot":"","sources":["../../src/vue/advanced-collections.ts"],"names":[],"mappings":"AAAA,OAAO,EAWL,KAAK,SAAS,EACf,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EASL,KAAK,iBAAiB,EACvB,MAAM,4BAA4B,CAAA;AAInC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAS3C,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,SAAS,CAAA;IACd,MAAM,EAAE,SAAS,CAAA;IACjB,GAAG,EAAE,SAAS,CAAA;IACd,KAAK,EAAE,SAAS,CAAA;IAChB,IAAI,EAAE,SAA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