@getcortexlabs/mavis-core 0.1.0-rc.11.1 → 0.1.0-rc.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/README.md +2 -2
  2. package/dist/advanced-collections.d.ts +74 -0
  3. package/dist/advanced-collections.d.ts.map +1 -0
  4. package/dist/advanced-collections.js +129 -0
  5. package/dist/advanced-collections.js.map +1 -0
  6. package/dist/capabilities.d.ts +7 -7
  7. package/dist/capabilities.d.ts.map +1 -1
  8. package/dist/capabilities.js +29 -4
  9. package/dist/capabilities.js.map +1 -1
  10. package/dist/creative-controls.d.ts +47 -0
  11. package/dist/creative-controls.d.ts.map +1 -0
  12. package/dist/creative-controls.js +112 -0
  13. package/dist/creative-controls.js.map +1 -0
  14. package/dist/dashboard.d.ts +72 -0
  15. package/dist/dashboard.d.ts.map +1 -0
  16. package/dist/dashboard.js +115 -0
  17. package/dist/dashboard.js.map +1 -0
  18. package/dist/image-crop.d.ts +49 -0
  19. package/dist/image-crop.d.ts.map +1 -0
  20. package/dist/image-crop.js +71 -0
  21. package/dist/image-crop.js.map +1 -0
  22. package/dist/index.d.ts +6 -0
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +6 -0
  25. package/dist/index.js.map +1 -1
  26. package/dist/scheduler.d.ts +45 -0
  27. package/dist/scheduler.d.ts.map +1 -0
  28. package/dist/scheduler.js +142 -0
  29. package/dist/scheduler.js.map +1 -0
  30. package/dist/screen-components.d.ts +45 -0
  31. package/dist/screen-components.d.ts.map +1 -0
  32. package/dist/screen-components.js +23 -0
  33. package/dist/screen-components.js.map +1 -0
  34. package/dist/vue/advanced-collections.d.ts +486 -0
  35. package/dist/vue/advanced-collections.d.ts.map +1 -0
  36. package/dist/vue/advanced-collections.js +476 -0
  37. package/dist/vue/advanced-collections.js.map +1 -0
  38. package/dist/vue/advanced-props.d.ts +398 -0
  39. package/dist/vue/advanced-props.d.ts.map +1 -0
  40. package/dist/vue/advanced-props.js +128 -0
  41. package/dist/vue/advanced-props.js.map +1 -0
  42. package/dist/vue/animated-text.d.ts +101 -0
  43. package/dist/vue/animated-text.d.ts.map +1 -0
  44. package/dist/vue/animated-text.js +56 -0
  45. package/dist/vue/animated-text.js.map +1 -0
  46. package/dist/vue/chart.d.ts +1 -1
  47. package/dist/vue/command-palette.d.ts +3 -3
  48. package/dist/vue/component-props.d.ts +1045 -0
  49. package/dist/vue/component-props.d.ts.map +1 -1
  50. package/dist/vue/component-props.js +29 -0
  51. package/dist/vue/component-props.js.map +1 -1
  52. package/dist/vue/composer.d.ts +159 -0
  53. package/dist/vue/composer.d.ts.map +1 -0
  54. package/dist/vue/composer.js +142 -0
  55. package/dist/vue/composer.js.map +1 -0
  56. package/dist/vue/configurator.d.ts +5 -5
  57. package/dist/vue/creative-controls.d.ts +328 -0
  58. package/dist/vue/creative-controls.d.ts.map +1 -0
  59. package/dist/vue/creative-controls.js +396 -0
  60. package/dist/vue/creative-controls.js.map +1 -0
  61. package/dist/vue/creative-props.d.ts +260 -0
  62. package/dist/vue/creative-props.d.ts.map +1 -0
  63. package/dist/vue/creative-props.js +92 -0
  64. package/dist/vue/creative-props.js.map +1 -0
  65. package/dist/vue/dashboard-charts.d.ts +240 -0
  66. package/dist/vue/dashboard-charts.d.ts.map +1 -0
  67. package/dist/vue/dashboard-charts.js +263 -0
  68. package/dist/vue/dashboard-charts.js.map +1 -0
  69. package/dist/vue/dashboard-effects.d.ts +211 -0
  70. package/dist/vue/dashboard-effects.d.ts.map +1 -0
  71. package/dist/vue/dashboard-effects.js +235 -0
  72. package/dist/vue/dashboard-effects.js.map +1 -0
  73. package/dist/vue/dashboard-props.d.ts +244 -0
  74. package/dist/vue/dashboard-props.d.ts.map +1 -0
  75. package/dist/vue/dashboard-props.js +94 -0
  76. package/dist/vue/dashboard-props.js.map +1 -0
  77. package/dist/vue/date-picker.d.ts +8 -8
  78. package/dist/vue/discovery-controls.d.ts +2 -2
  79. package/dist/vue/global-components.d.ts +152 -0
  80. package/dist/vue/global-components.d.ts.map +1 -1
  81. package/dist/vue/image-cropper.d.ts +187 -0
  82. package/dist/vue/image-cropper.d.ts.map +1 -0
  83. package/dist/vue/image-cropper.js +310 -0
  84. package/dist/vue/image-cropper.js.map +1 -0
  85. package/dist/vue/index.d.ts +20 -0
  86. package/dist/vue/index.d.ts.map +1 -1
  87. package/dist/vue/index.js +20 -0
  88. package/dist/vue/index.js.map +1 -1
  89. package/dist/vue/kanban.d.ts +150 -0
  90. package/dist/vue/kanban.d.ts.map +1 -0
  91. package/dist/vue/kanban.js +267 -0
  92. package/dist/vue/kanban.js.map +1 -0
  93. package/dist/vue/marquee.d.ts +96 -0
  94. package/dist/vue/marquee.d.ts.map +1 -0
  95. package/dist/vue/marquee.js +186 -0
  96. package/dist/vue/marquee.js.map +1 -0
  97. package/dist/vue/menu.d.ts +2 -2
  98. package/dist/vue/navigation-controls.d.ts +1 -1
  99. package/dist/vue/pin-cell.d.ts +14 -0
  100. package/dist/vue/pin-cell.d.ts.map +1 -0
  101. package/dist/vue/pin-cell.js +19 -0
  102. package/dist/vue/pin-cell.js.map +1 -0
  103. package/dist/vue/pin-input.d.ts +14 -0
  104. package/dist/vue/pin-input.d.ts.map +1 -0
  105. package/dist/vue/pin-input.js +23 -0
  106. package/dist/vue/pin-input.js.map +1 -0
  107. package/dist/vue/scheduler.d.ts +229 -0
  108. package/dist/vue/scheduler.d.ts.map +1 -0
  109. package/dist/vue/scheduler.js +363 -0
  110. package/dist/vue/scheduler.js.map +1 -0
  111. package/dist/vue/screen-component-props.d.ts +236 -0
  112. package/dist/vue/screen-component-props.d.ts.map +1 -0
  113. package/dist/vue/screen-component-props.js +90 -0
  114. package/dist/vue/screen-component-props.js.map +1 -0
  115. package/dist/vue/scroll-frame.d.ts +223 -0
  116. package/dist/vue/scroll-frame.d.ts.map +1 -0
  117. package/dist/vue/scroll-frame.js +346 -0
  118. package/dist/vue/scroll-frame.js.map +1 -0
  119. package/dist/vue/speed-dial.d.ts +73 -0
  120. package/dist/vue/speed-dial.d.ts.map +1 -0
  121. package/dist/vue/speed-dial.js +78 -0
  122. package/dist/vue/speed-dial.js.map +1 -0
  123. package/dist/vue/swipe-actions.d.ts +1 -1
  124. package/dist/vue/swipe-deck.d.ts +120 -0
  125. package/dist/vue/swipe-deck.d.ts.map +1 -0
  126. package/dist/vue/swipe-deck.js +229 -0
  127. package/dist/vue/swipe-deck.js.map +1 -0
  128. package/dist/vue/time-picker.d.ts +6 -6
  129. package/dist/vue/tour.d.ts +120 -0
  130. package/dist/vue/tour.d.ts.map +1 -0
  131. package/dist/vue/tour.js +165 -0
  132. package/dist/vue/tour.js.map +1 -0
  133. package/dist/vue/tree-view.d.ts +1 -1
  134. package/dist/vue/wayfinding-controls.d.ts +2 -2
  135. package/dist/vue/workflows.d.ts +3 -3
  136. package/package.json +1 -1
  137. package/src/advanced-collections.ts +199 -0
  138. package/src/capabilities.ts +30 -4
  139. package/src/creative-controls.ts +169 -0
  140. package/src/dashboard.ts +164 -0
  141. package/src/image-crop.ts +125 -0
  142. package/src/index.ts +11 -0
  143. package/src/scheduler.ts +194 -0
  144. package/src/screen-components.ts +59 -0
  145. package/src/vue/advanced-collections.ts +679 -0
  146. package/src/vue/advanced-props.ts +144 -0
  147. package/src/vue/animated-text.ts +72 -0
  148. package/src/vue/component-props.ts +61 -0
  149. package/src/vue/composer.ts +192 -0
  150. package/src/vue/creative-controls.ts +524 -0
  151. package/src/vue/creative-props.ts +94 -0
  152. package/src/vue/dashboard-charts.ts +346 -0
  153. package/src/vue/dashboard-effects.ts +304 -0
  154. package/src/vue/dashboard-props.ts +95 -0
  155. package/src/vue/global-components.ts +162 -0
  156. package/src/vue/image-cropper.ts +413 -0
  157. package/src/vue/index.ts +28 -0
  158. package/src/vue/kanban.ts +360 -0
  159. package/src/vue/marquee.ts +248 -0
  160. package/src/vue/pin-cell.ts +26 -0
  161. package/src/vue/pin-input.ts +31 -0
  162. package/src/vue/scheduler.ts +505 -0
  163. package/src/vue/screen-component-props.ts +92 -0
  164. package/src/vue/scroll-frame.ts +429 -0
  165. package/src/vue/speed-dial.ts +108 -0
  166. package/src/vue/swipe-deck.ts +277 -0
  167. package/src/vue/tour.ts +239 -0
@@ -0,0 +1,398 @@
1
+ import type { PropType } from '@vue/runtime-core';
2
+ import type { TreeSelectNode, MasonryItem, HeatmapValue, MavisNotification } from '../advanced-collections.js';
3
+ import type { ImageCrop, CropExportOptions } from '../image-crop.js';
4
+ import type { CivilDate } from '../date.js';
5
+ import type { SchedulerEvent, SchedulerDisambiguation } from '../scheduler.js';
6
+ export declare const treeSelectProps: {
7
+ id: StringConstructor;
8
+ label: {
9
+ type: StringConstructor;
10
+ required: true;
11
+ };
12
+ nodes: {
13
+ type: PropType<readonly TreeSelectNode[]>;
14
+ required: true;
15
+ };
16
+ modelValue: {
17
+ type: PropType<readonly string[]>;
18
+ default: () => never[];
19
+ };
20
+ expanded: {
21
+ type: PropType<readonly string[]>;
22
+ default: () => never[];
23
+ };
24
+ multiple: BooleanConstructor;
25
+ disabled: BooleanConstructor;
26
+ animated: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ placeholder: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ searchLabel: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ };
38
+ clearLabel: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ };
42
+ emptyLabel: {
43
+ type: StringConstructor;
44
+ default: string;
45
+ };
46
+ expandLabel: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ };
50
+ collapseLabel: {
51
+ type: StringConstructor;
52
+ default: string;
53
+ };
54
+ };
55
+ export declare const masonryProps: {
56
+ id: StringConstructor;
57
+ label: {
58
+ type: StringConstructor;
59
+ required: true;
60
+ };
61
+ items: {
62
+ type: PropType<readonly MasonryItem[]>;
63
+ required: true;
64
+ };
65
+ minColumnWidth: {
66
+ type: NumberConstructor;
67
+ default: number;
68
+ };
69
+ columns: {
70
+ type: NumberConstructor;
71
+ default: number;
72
+ };
73
+ gap: {
74
+ default: string;
75
+ type: PropType<import("../index.js").Spacing>;
76
+ };
77
+ animated: {
78
+ type: BooleanConstructor;
79
+ default: boolean;
80
+ };
81
+ emptyLabel: {
82
+ type: StringConstructor;
83
+ default: string;
84
+ };
85
+ };
86
+ export declare const heatmapProps: {
87
+ id: StringConstructor;
88
+ label: {
89
+ type: StringConstructor;
90
+ required: true;
91
+ };
92
+ start: {
93
+ type: PropType<CivilDate>;
94
+ required: true;
95
+ };
96
+ end: {
97
+ type: PropType<CivilDate>;
98
+ required: true;
99
+ };
100
+ values: {
101
+ type: PropType<readonly HeatmapValue[]>;
102
+ required: true;
103
+ };
104
+ modelValue: {
105
+ type: PropType<CivilDate | null>;
106
+ default: null;
107
+ };
108
+ colors: {
109
+ type: PropType<readonly string[]>;
110
+ default: () => string[];
111
+ };
112
+ cellSize: {
113
+ type: NumberConstructor;
114
+ default: number;
115
+ };
116
+ weekStartsOn: {
117
+ type: PropType<0 | 1>;
118
+ default: number;
119
+ };
120
+ animated: {
121
+ type: BooleanConstructor;
122
+ default: boolean;
123
+ };
124
+ disabled: BooleanConstructor;
125
+ missingLabel: {
126
+ type: StringConstructor;
127
+ default: string;
128
+ };
129
+ dataLabel: {
130
+ type: StringConstructor;
131
+ default: string;
132
+ };
133
+ lessLabel: {
134
+ type: StringConstructor;
135
+ default: string;
136
+ };
137
+ moreLabel: {
138
+ type: StringConstructor;
139
+ default: string;
140
+ };
141
+ formatValue: PropType<(value: number) => string>;
142
+ };
143
+ export declare const notificationCenterProps: {
144
+ id: StringConstructor;
145
+ label: {
146
+ type: StringConstructor;
147
+ required: true;
148
+ };
149
+ modelValue: {
150
+ type: PropType<readonly MavisNotification[]>;
151
+ required: true;
152
+ };
153
+ disabled: BooleanConstructor;
154
+ animated: {
155
+ type: BooleanConstructor;
156
+ default: boolean;
157
+ };
158
+ filter: {
159
+ type: PropType<"all" | "unread">;
160
+ default: string;
161
+ };
162
+ allLabel: {
163
+ type: StringConstructor;
164
+ default: string;
165
+ };
166
+ unreadLabel: {
167
+ type: StringConstructor;
168
+ default: string;
169
+ };
170
+ readLabel: {
171
+ type: StringConstructor;
172
+ default: string;
173
+ };
174
+ unreadActionLabel: {
175
+ type: StringConstructor;
176
+ default: string;
177
+ };
178
+ readAllLabel: {
179
+ type: StringConstructor;
180
+ default: string;
181
+ };
182
+ dismissLabel: {
183
+ type: StringConstructor;
184
+ default: string;
185
+ };
186
+ emptyLabel: {
187
+ type: StringConstructor;
188
+ default: string;
189
+ };
190
+ ungroupedLabel: {
191
+ type: StringConstructor;
192
+ default: string;
193
+ };
194
+ };
195
+ export declare const imageCropperProps: {
196
+ id: StringConstructor;
197
+ label: {
198
+ type: StringConstructor;
199
+ required: true;
200
+ };
201
+ src: {
202
+ type: StringConstructor;
203
+ required: true;
204
+ };
205
+ modelValue: {
206
+ type: PropType<ImageCrop | null>;
207
+ default: null;
208
+ };
209
+ aspectRatio: {
210
+ type: NumberConstructor;
211
+ default: number;
212
+ };
213
+ animated: {
214
+ type: BooleanConstructor;
215
+ default: boolean;
216
+ };
217
+ disabled: BooleanConstructor;
218
+ output: {
219
+ type: PropType<CropExportOptions>;
220
+ default: () => {
221
+ mimeType: string;
222
+ quality: number;
223
+ };
224
+ };
225
+ zoomLabel: {
226
+ type: StringConstructor;
227
+ default: string;
228
+ };
229
+ rotateLabel: {
230
+ type: StringConstructor;
231
+ default: string;
232
+ };
233
+ resetLabel: {
234
+ type: StringConstructor;
235
+ default: string;
236
+ };
237
+ exportLabel: {
238
+ type: StringConstructor;
239
+ default: string;
240
+ };
241
+ loadingLabel: {
242
+ type: StringConstructor;
243
+ default: string;
244
+ };
245
+ moveLabel: {
246
+ type: StringConstructor;
247
+ default: string;
248
+ };
249
+ leftLabel: {
250
+ type: StringConstructor;
251
+ default: string;
252
+ };
253
+ rightLabel: {
254
+ type: StringConstructor;
255
+ default: string;
256
+ };
257
+ upLabel: {
258
+ type: StringConstructor;
259
+ default: string;
260
+ };
261
+ downLabel: {
262
+ type: StringConstructor;
263
+ default: string;
264
+ };
265
+ };
266
+ export declare const schedulerProps: {
267
+ id: StringConstructor;
268
+ label: {
269
+ type: StringConstructor;
270
+ required: true;
271
+ };
272
+ modelValue: {
273
+ type: PropType<readonly SchedulerEvent[]>;
274
+ required: true;
275
+ };
276
+ date: {
277
+ type: PropType<CivilDate>;
278
+ required: true;
279
+ };
280
+ timeZone: {
281
+ type: StringConstructor;
282
+ required: true;
283
+ };
284
+ days: {
285
+ type: PropType<1 | 7>;
286
+ default: number;
287
+ };
288
+ startHour: {
289
+ type: NumberConstructor;
290
+ default: number;
291
+ };
292
+ endHour: {
293
+ type: NumberConstructor;
294
+ default: number;
295
+ };
296
+ slotMinutes: {
297
+ type: NumberConstructor;
298
+ default: number;
299
+ };
300
+ hourHeight: {
301
+ type: NumberConstructor;
302
+ default: number;
303
+ };
304
+ dayWidth: {
305
+ type: NumberConstructor;
306
+ default: number;
307
+ };
308
+ animated: {
309
+ type: BooleanConstructor;
310
+ default: boolean;
311
+ };
312
+ disabled: BooleanConstructor;
313
+ disambiguation: {
314
+ type: PropType<SchedulerDisambiguation>;
315
+ default: string;
316
+ };
317
+ previousLabel: {
318
+ type: StringConstructor;
319
+ default: string;
320
+ };
321
+ nextLabel: {
322
+ type: StringConstructor;
323
+ default: string;
324
+ };
325
+ moveLabel: {
326
+ type: StringConstructor;
327
+ default: string;
328
+ };
329
+ resizeLabel: {
330
+ type: StringConstructor;
331
+ default: string;
332
+ };
333
+ earlierLabel: {
334
+ type: StringConstructor;
335
+ default: string;
336
+ };
337
+ laterLabel: {
338
+ type: StringConstructor;
339
+ default: string;
340
+ };
341
+ previousDayLabel: {
342
+ type: StringConstructor;
343
+ default: string;
344
+ };
345
+ nextDayLabel: {
346
+ type: StringConstructor;
347
+ default: string;
348
+ };
349
+ shorterLabel: {
350
+ type: StringConstructor;
351
+ default: string;
352
+ };
353
+ longerLabel: {
354
+ type: StringConstructor;
355
+ default: string;
356
+ };
357
+ emptyLabel: {
358
+ type: StringConstructor;
359
+ default: string;
360
+ };
361
+ };
362
+ export declare const advancedCellProps: {
363
+ x: {
364
+ type: NumberConstructor;
365
+ default: number;
366
+ };
367
+ y: {
368
+ type: NumberConstructor;
369
+ default: number;
370
+ };
371
+ width: {
372
+ type: NumberConstructor;
373
+ required: true;
374
+ };
375
+ height: NumberConstructor;
376
+ measure: BooleanConstructor;
377
+ };
378
+ export declare const advancedCanvasProps: {
379
+ height: {
380
+ type: NumberConstructor;
381
+ required: true;
382
+ };
383
+ width: NumberConstructor;
384
+ };
385
+ export declare const advancedGestureProps: {
386
+ label: {
387
+ type: StringConstructor;
388
+ required: true;
389
+ };
390
+ disabled: BooleanConstructor;
391
+ };
392
+ export interface AdvancedGesture {
393
+ phase: 'start' | 'move' | 'end' | 'cancel';
394
+ x: number;
395
+ y: number;
396
+ scale: number;
397
+ }
398
+ //# sourceMappingURL=advanced-props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"advanced-props.d.ts","sourceRoot":"","sources":["../../src/vue/advanced-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,YAAY,EACZ,iBAAiB,EAClB,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAA;AAI9E,eAAO,MAAM,eAAe;;;;;;;cAGF,QAAQ,CAAC,SAAS,cAAc,EAAE,CAAC;;;;cAC9B,QAAQ,CAAC,SAAS,MAAM,EAAE,CAAC;;;;cAC7B,QAAQ,CAAC,SAAS,MAAM,EAAE,CAAC;;;;;;;;;;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AACD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;CAM7B,CAAA;AACD,eAAO,MAAM,mBAAmB;;;;;;CAG/B,CAAA;AACD,eAAO,MAAM,oBAAoB;;;;;;CAA+B,CAAA;AAChE,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAA;IAC1C,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,KAAK,EAAE,MAAM,CAAA;CACd"}
@@ -0,0 +1,128 @@
1
+ import { spacingProp } from './props.js';
2
+ const label = { type: String, required: true }, animated = { type: Boolean, default: true };
3
+ export const treeSelectProps = {
4
+ id: String,
5
+ label,
6
+ nodes: { type: Array, required: true },
7
+ modelValue: { type: Array, default: () => [] },
8
+ expanded: { type: Array, default: () => [] },
9
+ multiple: Boolean,
10
+ disabled: Boolean,
11
+ animated,
12
+ placeholder: { type: String, default: 'Choose items' },
13
+ searchLabel: { type: String, default: 'Search' },
14
+ clearLabel: { type: String, default: 'Clear selection' },
15
+ emptyLabel: { type: String, default: 'No matches' },
16
+ expandLabel: { type: String, default: 'Expand' },
17
+ collapseLabel: { type: String, default: 'Collapse' },
18
+ };
19
+ export const masonryProps = {
20
+ id: String,
21
+ label,
22
+ items: { type: Array, required: true },
23
+ minColumnWidth: { type: Number, default: 220 },
24
+ columns: { type: Number, default: 4 },
25
+ gap: { ...spacingProp, default: 'md' },
26
+ animated,
27
+ emptyLabel: { type: String, default: 'No items' },
28
+ };
29
+ export const heatmapProps = {
30
+ id: String,
31
+ label,
32
+ start: { type: String, required: true },
33
+ end: { type: String, required: true },
34
+ values: { type: Array, required: true },
35
+ modelValue: { type: String, default: null },
36
+ colors: {
37
+ type: Array,
38
+ default: () => ['#E6E4EB', '#C6ABCD', '#9B6AA9', '#704080', '#4C245C'],
39
+ },
40
+ cellSize: { type: Number, default: 40 },
41
+ weekStartsOn: { type: Number, default: 1 },
42
+ animated,
43
+ disabled: Boolean,
44
+ missingLabel: { type: String, default: 'No data' },
45
+ dataLabel: { type: String, default: 'View data' },
46
+ lessLabel: { type: String, default: 'Less' },
47
+ moreLabel: { type: String, default: 'More' },
48
+ formatValue: Function,
49
+ };
50
+ export const notificationCenterProps = {
51
+ id: String,
52
+ label,
53
+ modelValue: { type: Array, required: true },
54
+ disabled: Boolean,
55
+ animated,
56
+ filter: { type: String, default: 'all' },
57
+ allLabel: { type: String, default: 'All' },
58
+ unreadLabel: { type: String, default: 'Unread' },
59
+ readLabel: { type: String, default: 'Mark as read' },
60
+ unreadActionLabel: { type: String, default: 'Mark as unread' },
61
+ readAllLabel: { type: String, default: 'Mark all as read' },
62
+ dismissLabel: { type: String, default: 'Dismiss' },
63
+ emptyLabel: { type: String, default: 'You are all caught up' },
64
+ ungroupedLabel: { type: String, default: 'Notifications' },
65
+ };
66
+ export const imageCropperProps = {
67
+ id: String,
68
+ label,
69
+ src: { type: String, required: true },
70
+ modelValue: { type: Object, default: null },
71
+ aspectRatio: { type: Number, default: 1 },
72
+ animated,
73
+ disabled: Boolean,
74
+ output: {
75
+ type: Object,
76
+ default: () => ({ mimeType: 'image/png', quality: 0.92 }),
77
+ },
78
+ zoomLabel: { type: String, default: 'Zoom' },
79
+ rotateLabel: { type: String, default: 'Rotate clockwise' },
80
+ resetLabel: { type: String, default: 'Reset' },
81
+ exportLabel: { type: String, default: 'Export image' },
82
+ loadingLabel: { type: String, default: 'Loading image' },
83
+ moveLabel: { type: String, default: 'Move image' },
84
+ leftLabel: { type: String, default: 'Move left' },
85
+ rightLabel: { type: String, default: 'Move right' },
86
+ upLabel: { type: String, default: 'Move up' },
87
+ downLabel: { type: String, default: 'Move down' },
88
+ };
89
+ export const schedulerProps = {
90
+ id: String,
91
+ label,
92
+ modelValue: { type: Array, required: true },
93
+ date: { type: String, required: true },
94
+ timeZone: { type: String, required: true },
95
+ days: { type: Number, default: 7 },
96
+ startHour: { type: Number, default: 8 },
97
+ endHour: { type: Number, default: 19 },
98
+ slotMinutes: { type: Number, default: 15 },
99
+ hourHeight: { type: Number, default: 80 },
100
+ dayWidth: { type: Number, default: 180 },
101
+ animated,
102
+ disabled: Boolean,
103
+ disambiguation: { type: String, default: 'reject' },
104
+ previousLabel: { type: String, default: 'Previous' },
105
+ nextLabel: { type: String, default: 'Next' },
106
+ moveLabel: { type: String, default: 'Move event' },
107
+ resizeLabel: { type: String, default: 'Resize event' },
108
+ earlierLabel: { type: String, default: 'Earlier' },
109
+ laterLabel: { type: String, default: 'Later' },
110
+ previousDayLabel: { type: String, default: 'Previous day' },
111
+ nextDayLabel: { type: String, default: 'Next day' },
112
+ shorterLabel: { type: String, default: 'Shorter' },
113
+ longerLabel: { type: String, default: 'Longer' },
114
+ emptyLabel: { type: String, default: 'No events' },
115
+ };
116
+ export const advancedCellProps = {
117
+ x: { type: Number, default: 0 },
118
+ y: { type: Number, default: 0 },
119
+ width: { type: Number, required: true },
120
+ height: Number,
121
+ measure: Boolean,
122
+ };
123
+ export const advancedCanvasProps = {
124
+ height: { type: Number, required: true },
125
+ width: Number,
126
+ };
127
+ export const advancedGestureProps = { label, disabled: Boolean };
128
+ //# sourceMappingURL=advanced-props.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"advanced-props.js","sourceRoot":"","sources":["../../src/vue/advanced-props.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAa,EAAE,EACrD,QAAQ,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;AAC7C,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,EAAE,EAAE,MAAM;IACV,KAAK;IACL,KAAK,EAAE,EAAE,IAAI,EAAE,KAA4C,EAAE,QAAQ,EAAE,IAAa,EAAE;IACtF,UAAU,EAAE,EAAE,IAAI,EAAE,KAAoC,EAA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AAM;IACd,OAAO,EAAE,OAAO;CACjB,CAAA;AACD,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAa,EAAE;IACjD,KAAK,EAAE,MAAM;CACd,CAAA;AACD,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAA"}
@@ -0,0 +1,101 @@
1
+ import { type Component } from '@vue/runtime-core';
2
+ export declare function createAnimatedText(Text: Component): import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
3
+ id: StringConstructor;
4
+ text: {
5
+ type: StringConstructor;
6
+ required: true;
7
+ };
8
+ variant: {
9
+ default: string;
10
+ type: import("@vue/runtime-core").PropType<"display" | "title" | "heading" | "body" | "caption" | "overline">;
11
+ };
12
+ tone: {
13
+ type: import("@vue/runtime-core").PropType<keyof import("../index.js").Palette>;
14
+ } & {
15
+ default: keyof import("../index.js").Palette;
16
+ };
17
+ by: {
18
+ type: import("@vue/runtime-core").PropType<"word" | "letter">;
19
+ default: string;
20
+ };
21
+ duration: {
22
+ type: NumberConstructor;
23
+ default: number;
24
+ };
25
+ stagger: {
26
+ type: NumberConstructor;
27
+ default: number;
28
+ };
29
+ distance: {
30
+ type: NumberConstructor;
31
+ default: number;
32
+ };
33
+ animated: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ appear: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ replayKey: {
42
+ type: (NumberConstructor | StringConstructor)[];
43
+ default: number;
44
+ };
45
+ }>, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
46
+ [key: string]: any;
47
+ }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
48
+ id: StringConstructor;
49
+ text: {
50
+ type: StringConstructor;
51
+ required: true;
52
+ };
53
+ variant: {
54
+ default: string;
55
+ type: import("@vue/runtime-core").PropType<"display" | "title" | "heading" | "body" | "caption" | "overline">;
56
+ };
57
+ tone: {
58
+ type: import("@vue/runtime-core").PropType<keyof import("../index.js").Palette>;
59
+ } & {
60
+ default: keyof import("../index.js").Palette;
61
+ };
62
+ by: {
63
+ type: import("@vue/runtime-core").PropType<"word" | "letter">;
64
+ default: string;
65
+ };
66
+ duration: {
67
+ type: NumberConstructor;
68
+ default: number;
69
+ };
70
+ stagger: {
71
+ type: NumberConstructor;
72
+ default: number;
73
+ };
74
+ distance: {
75
+ type: NumberConstructor;
76
+ default: number;
77
+ };
78
+ animated: {
79
+ type: BooleanConstructor;
80
+ default: boolean;
81
+ };
82
+ appear: {
83
+ type: BooleanConstructor;
84
+ default: boolean;
85
+ };
86
+ replayKey: {
87
+ type: (NumberConstructor | StringConstructor)[];
88
+ default: number;
89
+ };
90
+ }>> & Readonly<{}>, {
91
+ stagger: number;
92
+ duration: number;
93
+ variant: "display" | "title" | "heading" | "body" | "caption" | "overline";
94
+ tone: keyof import("../index.js").Palette;
95
+ animated: boolean;
96
+ by: "letter" | "word";
97
+ distance: number;
98
+ appear: boolean;
99
+ replayKey: string | number;
100
+ }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
101
+ //# sourceMappingURL=animated-text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"animated-text.d.ts","sourceRoot":"","sources":["../../src/vue/animated-text.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,mBAAmB,CAAA;AAI1B,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2FA2DjD"}
@@ -0,0 +1,56 @@
1
+ import { defineComponent, h, markRaw, mergeProps, onScopeDispose, watch, } from '@vue/runtime-core';
2
+ import { createMotionSurface } from '../experimental.js';
3
+ import { animatedTextProps } from './screen-component-props.js';
4
+ export function createAnimatedText(Text) {
5
+ return defineComponent({
6
+ name: 'MAnimatedText',
7
+ inheritAttrs: false,
8
+ props: animatedTextProps,
9
+ setup(props, { attrs, expose }) {
10
+ const surface = markRaw(createMotionSurface());
11
+ let playback;
12
+ const validate = () => {
13
+ if (!Number.isFinite(props.duration) ||
14
+ props.duration <= 0 ||
15
+ !Number.isFinite(props.stagger) ||
16
+ props.stagger < 0 ||
17
+ !Number.isFinite(props.distance) ||
18
+ !['word', 'letter'].includes(props.by))
19
+ throw new RangeError('MAnimatedText requires a positive duration, nonnegative stagger and finite distance.');
20
+ };
21
+ function play() {
22
+ validate();
23
+ playback?.stop();
24
+ if (surface.available && props.animated && props.text)
25
+ playback = surface.animateText({
26
+ by: props.by,
27
+ duration: props.duration,
28
+ stagger: props.stagger,
29
+ y: props.distance,
30
+ });
31
+ }
32
+ onScopeDispose(surface.use(() => {
33
+ if (props.appear)
34
+ play();
35
+ return () => {
36
+ playback?.stop();
37
+ playback = undefined;
38
+ };
39
+ }));
40
+ watch(() => [props.text, props.replayKey, props.by, props.animated], play, { flush: 'post' });
41
+ onScopeDispose(() => playback?.stop());
42
+ expose({ replay: play });
43
+ return () => {
44
+ validate();
45
+ return h(Text, mergeProps(attrs, {
46
+ id: props.id,
47
+ text: props.text,
48
+ variant: props.variant,
49
+ tone: props.tone,
50
+ motionSurface: surface,
51
+ }));
52
+ };
53
+ },
54
+ });
55
+ }
56
+ //# sourceMappingURL=animated-text.js.map