@getcortexlabs/mavis-core 0.1.0-alpha.3 → 0.1.0-alpha.5

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 (242) hide show
  1. package/README.md +2 -2
  2. package/dist/accordion.d.ts +17 -0
  3. package/dist/accordion.d.ts.map +1 -0
  4. package/dist/accordion.js +42 -0
  5. package/dist/accordion.js.map +1 -0
  6. package/dist/alert.d.ts +21 -0
  7. package/dist/alert.d.ts.map +1 -0
  8. package/dist/alert.js +13 -0
  9. package/dist/alert.js.map +1 -0
  10. package/dist/avatar.d.ts +10 -0
  11. package/dist/avatar.d.ts.map +1 -0
  12. package/dist/avatar.js +11 -0
  13. package/dist/avatar.js.map +1 -0
  14. package/dist/badge.d.ts +7 -0
  15. package/dist/badge.d.ts.map +1 -0
  16. package/dist/badge.js +11 -0
  17. package/dist/badge.js.map +1 -0
  18. package/dist/capabilities.d.ts +119 -0
  19. package/dist/capabilities.d.ts.map +1 -0
  20. package/dist/capabilities.js +142 -0
  21. package/dist/capabilities.js.map +1 -0
  22. package/dist/chip.d.ts +9 -0
  23. package/dist/chip.d.ts.map +1 -0
  24. package/dist/chip.js +16 -0
  25. package/dist/chip.js.map +1 -0
  26. package/dist/choice.d.ts +15 -0
  27. package/dist/choice.d.ts.map +1 -0
  28. package/dist/choice.js +27 -0
  29. package/dist/choice.js.map +1 -0
  30. package/dist/combobox.d.ts +42 -0
  31. package/dist/combobox.d.ts.map +1 -0
  32. package/dist/combobox.js +159 -0
  33. package/dist/combobox.js.map +1 -0
  34. package/dist/contracts.d.ts +1201 -0
  35. package/dist/contracts.d.ts.map +1 -0
  36. package/dist/contracts.js +242 -0
  37. package/dist/contracts.js.map +1 -0
  38. package/dist/date.d.ts +96 -0
  39. package/dist/date.d.ts.map +1 -0
  40. package/dist/date.js +235 -0
  41. package/dist/date.js.map +1 -0
  42. package/dist/dialog.d.ts +4 -0
  43. package/dist/dialog.d.ts.map +1 -0
  44. package/dist/dialog.js +20 -0
  45. package/dist/dialog.js.map +1 -0
  46. package/dist/empty-state.d.ts +2 -0
  47. package/dist/empty-state.d.ts.map +1 -0
  48. package/dist/empty-state.js +5 -0
  49. package/dist/empty-state.js.map +1 -0
  50. package/dist/experimental-regions.d.ts +142 -0
  51. package/dist/experimental-regions.d.ts.map +1 -0
  52. package/dist/experimental-regions.js +315 -0
  53. package/dist/experimental-regions.js.map +1 -0
  54. package/dist/experimental.d.ts +134 -0
  55. package/dist/experimental.d.ts.map +1 -0
  56. package/dist/experimental.js +502 -0
  57. package/dist/experimental.js.map +1 -0
  58. package/dist/files.d.ts +87 -0
  59. package/dist/files.d.ts.map +1 -0
  60. package/dist/files.js +328 -0
  61. package/dist/files.js.map +1 -0
  62. package/dist/form.d.ts +39 -0
  63. package/dist/form.d.ts.map +1 -0
  64. package/dist/form.js +170 -0
  65. package/dist/form.js.map +1 -0
  66. package/dist/index.d.ts +38 -4
  67. package/dist/index.d.ts.map +1 -1
  68. package/dist/index.js +23 -1
  69. package/dist/index.js.map +1 -1
  70. package/dist/input.d.ts +10 -0
  71. package/dist/input.d.ts.map +1 -1
  72. package/dist/input.js +12 -0
  73. package/dist/input.js.map +1 -1
  74. package/dist/list-item.d.ts +3 -0
  75. package/dist/list-item.d.ts.map +1 -0
  76. package/dist/list-item.js +7 -0
  77. package/dist/list-item.js.map +1 -0
  78. package/dist/motion.d.ts +33 -0
  79. package/dist/motion.d.ts.map +1 -0
  80. package/dist/motion.js +21 -0
  81. package/dist/motion.js.map +1 -0
  82. package/dist/navigation.d.ts +22 -0
  83. package/dist/navigation.d.ts.map +1 -0
  84. package/dist/navigation.js +54 -0
  85. package/dist/navigation.js.map +1 -0
  86. package/dist/progress.d.ts +19 -0
  87. package/dist/progress.d.ts.map +1 -0
  88. package/dist/progress.js +19 -0
  89. package/dist/progress.js.map +1 -0
  90. package/dist/segmented.d.ts +11 -0
  91. package/dist/segmented.d.ts.map +1 -0
  92. package/dist/segmented.js +30 -0
  93. package/dist/segmented.js.map +1 -0
  94. package/dist/sheet.d.ts +8 -1
  95. package/dist/sheet.d.ts.map +1 -1
  96. package/dist/sheet.js +4 -3
  97. package/dist/sheet.js.map +1 -1
  98. package/dist/tabs.d.ts +11 -0
  99. package/dist/tabs.d.ts.map +1 -0
  100. package/dist/tabs.js +28 -0
  101. package/dist/tabs.js.map +1 -0
  102. package/dist/theme/themes.d.ts.map +1 -1
  103. package/dist/theme/themes.js +84 -11
  104. package/dist/theme/themes.js.map +1 -1
  105. package/dist/theme/types.d.ts +52 -1
  106. package/dist/theme/types.d.ts.map +1 -1
  107. package/dist/theme/typography.d.ts +10 -0
  108. package/dist/theme/typography.d.ts.map +1 -0
  109. package/dist/theme/typography.js +90 -0
  110. package/dist/theme/typography.js.map +1 -0
  111. package/dist/toast.d.ts +43 -0
  112. package/dist/toast.d.ts.map +1 -0
  113. package/dist/toast.js +228 -0
  114. package/dist/toast.js.map +1 -0
  115. package/dist/vue/button-content.d.ts +10 -0
  116. package/dist/vue/button-content.d.ts.map +1 -0
  117. package/dist/vue/button-content.js +54 -0
  118. package/dist/vue/button-content.js.map +1 -0
  119. package/dist/vue/cached-activity.d.ts +3 -0
  120. package/dist/vue/cached-activity.d.ts.map +1 -0
  121. package/dist/vue/cached-activity.js +13 -0
  122. package/dist/vue/cached-activity.js.map +1 -0
  123. package/dist/vue/combobox.d.ts +155 -0
  124. package/dist/vue/combobox.d.ts.map +1 -0
  125. package/dist/vue/combobox.js +195 -0
  126. package/dist/vue/combobox.js.map +1 -0
  127. package/dist/vue/component-props.d.ts +1989 -0
  128. package/dist/vue/component-props.d.ts.map +1 -0
  129. package/dist/vue/component-props.js +18 -0
  130. package/dist/vue/component-props.js.map +1 -0
  131. package/dist/vue/contracts.d.ts +18 -0
  132. package/dist/vue/contracts.d.ts.map +1 -0
  133. package/dist/vue/contracts.js +18 -0
  134. package/dist/vue/contracts.js.map +1 -0
  135. package/dist/vue/date-calendar.d.ts +64 -0
  136. package/dist/vue/date-calendar.d.ts.map +1 -0
  137. package/dist/vue/date-calendar.js +65 -0
  138. package/dist/vue/date-calendar.js.map +1 -0
  139. package/dist/vue/date-picker.d.ts +927 -0
  140. package/dist/vue/date-picker.d.ts.map +1 -0
  141. package/dist/vue/date-picker.js +319 -0
  142. package/dist/vue/date-picker.js.map +1 -0
  143. package/dist/vue/date-props.d.ts +254 -0
  144. package/dist/vue/date-props.d.ts.map +1 -0
  145. package/dist/vue/date-props.js +74 -0
  146. package/dist/vue/date-props.js.map +1 -0
  147. package/dist/vue/dialog.d.ts +21 -0
  148. package/dist/vue/dialog.d.ts.map +1 -0
  149. package/dist/vue/dialog.js +58 -0
  150. package/dist/vue/dialog.js.map +1 -0
  151. package/dist/vue/files.d.ts +53 -0
  152. package/dist/vue/files.d.ts.map +1 -0
  153. package/dist/vue/files.js +40 -0
  154. package/dist/vue/files.js.map +1 -0
  155. package/dist/vue/forms.d.ts +4 -0
  156. package/dist/vue/forms.d.ts.map +1 -0
  157. package/dist/vue/forms.js +15 -0
  158. package/dist/vue/forms.js.map +1 -0
  159. package/dist/vue/global-components.d.ts +129 -3
  160. package/dist/vue/global-components.d.ts.map +1 -1
  161. package/dist/vue/index.d.ts +28 -2
  162. package/dist/vue/index.d.ts.map +1 -1
  163. package/dist/vue/index.js +24 -1
  164. package/dist/vue/index.js.map +1 -1
  165. package/dist/vue/inline-content.d.ts +54 -0
  166. package/dist/vue/inline-content.d.ts.map +1 -0
  167. package/dist/vue/inline-content.js +64 -0
  168. package/dist/vue/inline-content.js.map +1 -0
  169. package/dist/vue/props.d.ts +2654 -637
  170. package/dist/vue/props.d.ts.map +1 -1
  171. package/dist/vue/props.js +228 -86
  172. package/dist/vue/props.js.map +1 -1
  173. package/dist/vue/theme-provider.d.ts +58 -0
  174. package/dist/vue/theme-provider.d.ts.map +1 -0
  175. package/dist/vue/theme-provider.js +69 -0
  176. package/dist/vue/theme-provider.js.map +1 -0
  177. package/dist/vue/theme.d.ts +962 -12
  178. package/dist/vue/theme.d.ts.map +1 -1
  179. package/dist/vue/theme.js +17 -7
  180. package/dist/vue/theme.js.map +1 -1
  181. package/dist/vue/toast.d.ts +29 -0
  182. package/dist/vue/toast.d.ts.map +1 -0
  183. package/dist/vue/toast.js +79 -0
  184. package/dist/vue/toast.js.map +1 -0
  185. package/dist/vue/workflow-props.d.ts +110 -0
  186. package/dist/vue/workflow-props.d.ts.map +1 -0
  187. package/dist/vue/workflow-props.js +37 -0
  188. package/dist/vue/workflow-props.js.map +1 -0
  189. package/dist/vue/workflows.d.ts +267 -0
  190. package/dist/vue/workflows.d.ts.map +1 -0
  191. package/dist/vue/workflows.js +200 -0
  192. package/dist/vue/workflows.js.map +1 -0
  193. package/package.json +5 -1
  194. package/src/accordion.ts +66 -0
  195. package/src/alert.ts +16 -0
  196. package/src/avatar.ts +11 -0
  197. package/src/badge.ts +11 -0
  198. package/src/capabilities.ts +145 -0
  199. package/src/chip.ts +20 -0
  200. package/src/choice.ts +41 -0
  201. package/src/combobox.ts +198 -0
  202. package/src/contracts.ts +295 -0
  203. package/src/date.ts +280 -0
  204. package/src/dialog.ts +20 -0
  205. package/src/empty-state.ts +4 -0
  206. package/src/experimental-regions.ts +463 -0
  207. package/src/experimental.ts +643 -0
  208. package/src/files.ts +408 -0
  209. package/src/form.ts +190 -0
  210. package/src/index.ts +64 -3
  211. package/src/input.ts +22 -0
  212. package/src/list-item.ts +5 -0
  213. package/src/motion.ts +22 -0
  214. package/src/navigation.ts +61 -0
  215. package/src/progress.ts +22 -0
  216. package/src/segmented.ts +39 -0
  217. package/src/sheet.ts +6 -3
  218. package/src/tabs.ts +35 -0
  219. package/src/theme/themes.ts +88 -11
  220. package/src/theme/types.ts +42 -1
  221. package/src/theme/typography.ts +84 -0
  222. package/src/toast.ts +249 -0
  223. package/src/vue/button-content.ts +60 -0
  224. package/src/vue/cached-activity.ts +13 -0
  225. package/src/vue/combobox.ts +238 -0
  226. package/src/vue/component-props.ts +24 -0
  227. package/src/vue/contracts.ts +33 -0
  228. package/src/vue/date-calendar.ts +76 -0
  229. package/src/vue/date-picker.ts +387 -0
  230. package/src/vue/date-props.ts +81 -0
  231. package/src/vue/dialog.ts +63 -0
  232. package/src/vue/files.ts +53 -0
  233. package/src/vue/forms.ts +20 -0
  234. package/src/vue/global-components.ts +120 -3
  235. package/src/vue/index.ts +46 -2
  236. package/src/vue/inline-content.ts +71 -0
  237. package/src/vue/props.ts +258 -95
  238. package/src/vue/theme-provider.ts +74 -0
  239. package/src/vue/theme.ts +17 -6
  240. package/src/vue/toast.ts +99 -0
  241. package/src/vue/workflow-props.ts +41 -0
  242. package/src/vue/workflows.ts +257 -0
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/vue/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAEnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,YAAY,CAAC,CAAA;AACjD,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,QAAQ,CAAA;AAElD,gHAAgH;AAChH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,IAAI,UAAU,GAAG,SAAS,CAAA;IACjC,OAAO,CAAC,QAAQ,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,GAAG,MAAM,IAAI,CAAA;CAChE;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,SAAS,CAAC,EAAE,UAAU,CAAA;IACtB,UAAU,CAAC,EAAE,cAAc,CAAA;IAC3B,MAAM,CAAC,EAAE,gBAAgB,CAAA;CAC1B;AASD,wBAAgB,kBAAkB,CAAC,OAAO,GAAE,UAAU,GAAG,mBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;IA+B7E,6FAA6F;;wBAEzE,cAAc;IAIlC,2EAA2E;mBAC5D,UAAU;;EAS5B;AACD,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAErE,eAAO,MAAM,QAAQ,EAAE,YAAY,CAAC,iBAAiB,CAAyB,CAAA;AAE9E,kFAAkF;AAClF,wBAAgB,aAAa,IAAI,iBAAiB,CAEjD"}
package/dist/vue/theme.js CHANGED
@@ -9,24 +9,34 @@ function checkMode(mode) {
9
9
  export function createThemeContext(options = {}) {
10
10
  const config = 'colors' in options ? { theme: options } : options;
11
11
  const initial = config.theme ?? mavis;
12
- const themes = { [initial.appearance]: initial };
13
- if (config.darkTheme)
14
- themes.dark = config.darkTheme;
12
+ const themes = shallowRef({
13
+ [initial.appearance]: initial,
14
+ });
15
+ if (config.darkTheme) {
16
+ if (config.darkTheme.appearance !== 'dark')
17
+ throw new RangeError('darkTheme must have dark appearance');
18
+ themes.value.dark = config.darkTheme;
19
+ }
15
20
  const appearance = shallowRef(checkMode(config.appearance ?? 'system'));
16
21
  const theme = shallowRef(initial);
22
+ const systemAppearance = shallowRef(config.source?.current());
17
23
  const resolve = () => {
18
24
  const wanted = appearance.value === 'system'
19
- ? (config.source?.current() ?? initial.appearance)
25
+ ? (systemAppearance.value ?? initial.appearance)
20
26
  : appearance.value;
21
- theme.value = themes[wanted] ?? themes[wanted === 'dark' ? 'light' : 'dark'] ?? initial;
27
+ theme.value =
28
+ themes.value[wanted] ?? themes.value[wanted === 'dark' ? 'light' : 'dark'] ?? initial;
22
29
  };
23
30
  resolve();
24
- const stop = config.source?.observe(() => {
31
+ const stop = config.source?.observe((next) => {
32
+ systemAppearance.value = next;
25
33
  if (appearance.value === 'system')
26
34
  resolve();
27
35
  });
28
36
  return {
29
37
  theme: readonly(theme),
38
+ themes: readonly(themes),
39
+ systemAppearance: readonly(systemAppearance),
30
40
  /** The selection: `system` follows the device; `light` and `dark` are explicit overrides. */
31
41
  appearance: readonly(appearance),
32
42
  setAppearance(mode) {
@@ -35,7 +45,7 @@ export function createThemeContext(options = {}) {
35
45
  },
36
46
  /** Registers the theme for its own appearance and pins that appearance. */
37
47
  setTheme(next) {
38
- themes[next.appearance] = next;
48
+ themes.value = { ...themes.value, [next.appearance]: next };
39
49
  appearance.value = next.appearance;
40
50
  resolve();
41
51
  },
@@ -1 +1 @@
1
- {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../src/vue/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAqB,MAAM,mBAAmB,CAAA;AACnF,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAmB1C,MAAM,KAAK,GAA8B,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;AAEpE,SAAS,SAAS,CAAC,IAAoB;IACrC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;QAAE,MAAM,IAAI,UAAU,CAAC,4BAA4B,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IAC3F,OAAO,IAAI,CAAA;AACb,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,UAA4C,EAAE;IAC/E,MAAM,MAAM,GAAwB,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,OAAO,CAAA;IACtF,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,IAAI,KAAK,CAAA;IACrC,MAAM,MAAM,GAA4C,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,CAAA;IACzF,IAAI,MAAM,CAAC,SAAS;QAAE,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,SAAS,CAAA;IACpD,MAAM,UAAU,GAAG,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,UAAU,IAAI,QAAQ,CAAC,CAAC,CAAA;IACvE,MAAM,KAAK,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,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAA;YAC3D,UAAU,CAAC,KAAK,GAAG,IAAI,CAAC,UAAU,CAAA;YAClC,OAAO,EAAE,CAAA;QACX,CAAC;QACD,OAAO;YACL,IAAI,EAAE,EAAE,CAAA;QACV,CAAC;KACF,CAAA;AACH,CAAC;AAGD,MAAM,CAAC,MAAM,QAAQ,GAAoC,MAAM,CAAC,aAAa,CAAC,CAAA;AAE9E,kFAAkF;AAClF,MAAM,UAAU,aAAa;IAC3B,OAAO,MAAM,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAA;AAChE,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { type App, type Ref } from '@vue/runtime-core';
2
+ import { type ToastController, type ToastSnapshot } from '../toast.js';
3
+ type AppToast = {
4
+ controller: ToastController;
5
+ requested: Ref<boolean>;
6
+ closeLabel: string;
7
+ };
8
+ /** @internal Each plugin instance owns one queue, never a process-wide SSR singleton. */
9
+ export declare function installAppToast(app: App, options?: {
10
+ closeLabel?: string;
11
+ }): void;
12
+ /** @internal Screens only mount their application host after an app queue is requested. */
13
+ export declare function useAppToastHost(): AppToast | undefined;
14
+ /** Local by default. The app queue is owned by createMavis and hosted by each active Screen. */
15
+ export declare function useToast(options?: {
16
+ scope?: 'local' | 'app';
17
+ }): ToastController;
18
+ /** @internal Shared renderer binding; platform lifecycles activate and pause its clock. */
19
+ export declare function useToastHost(controller: () => ToastController): {
20
+ snapshot: import("@vue/reactivity").ShallowRef<ToastSnapshot, ToastSnapshot>;
21
+ activate(): void;
22
+ deactivate(): void;
23
+ pause(reason: string, paused: boolean): void;
24
+ begin(id: number): void;
25
+ entered(id: number): void;
26
+ left(id: number): void;
27
+ };
28
+ export {};
29
+ //# sourceMappingURL=toast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../src/vue/toast.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,GAAG,EAER,KAAK,GAAG,EACT,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAIL,KAAK,eAAe,EAEpB,KAAK,aAAa,EACnB,MAAM,aAAa,CAAA;AAEpB,KAAK,QAAQ,GAAG;IAAE,UAAU,EAAE,eAAe,CAAC;IAAC,SAAS,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAA;AAG5F,yFAAyF;AACzF,wBAAgB,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,GAAE;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAO,QAQ9E;AAED,2FAA2F;AAC3F,wBAAgB,eAAe,yBAE9B;AAED,gGAAgG;AAChG,wBAAgB,QAAQ,CAAC,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;CAAO,GAAG,eAAe,CAWnF;AAED,2FAA2F;AAC3F,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,eAAe;;;;kBA6B5C,MAAM,UAAU,OAAO;cAK3B,MAAM;gBAGJ,MAAM;aAGT,MAAM;EAIlB"}
@@ -0,0 +1,79 @@
1
+ import { getCurrentScope, inject, onScopeDispose, ref, shallowRef, watch, } from '@vue/runtime-core';
2
+ import { createToastController, connectToast, disposeToast, } from '../toast.js';
3
+ const appToastKey = Symbol('mavis.appToast');
4
+ /** @internal Each plugin instance owns one queue, never a process-wide SSR singleton. */
5
+ export function installAppToast(app, options = {}) {
6
+ const controller = createToastController({ persistent: true });
7
+ app.provide(appToastKey, {
8
+ controller,
9
+ requested: ref(false),
10
+ closeLabel: options.closeLabel ?? 'Dismiss notification',
11
+ });
12
+ app.onUnmount(() => disposeToast(controller));
13
+ }
14
+ /** @internal Screens only mount their application host after an app queue is requested. */
15
+ export function useAppToastHost() {
16
+ return inject(appToastKey, undefined);
17
+ }
18
+ /** Local by default. The app queue is owned by createMavis and hosted by each active Screen. */
19
+ export function useToast(options = {}) {
20
+ if (!getCurrentScope())
21
+ throw new Error('useToast must run inside a Vue setup or effect scope');
22
+ if (options.scope === 'app') {
23
+ const app = inject(appToastKey, undefined);
24
+ if (!app)
25
+ throw new Error('App Toast needs createMavis on the current Vue app');
26
+ app.requested.value = true;
27
+ return app.controller;
28
+ }
29
+ const controller = createToastController();
30
+ onScopeDispose(() => disposeToast(controller));
31
+ return controller;
32
+ }
33
+ /** @internal Shared renderer binding; platform lifecycles activate and pause its clock. */
34
+ export function useToastHost(controller) {
35
+ const snapshot = shallowRef({ visible: false });
36
+ let connection;
37
+ let active = false;
38
+ const pauses = new Set();
39
+ watch(controller, (next) => {
40
+ connection?.dispose();
41
+ connection = connectToast(next, (value) => {
42
+ snapshot.value = value;
43
+ });
44
+ for (const reason of pauses)
45
+ connection.pause(reason, true);
46
+ if (active)
47
+ connection.activate();
48
+ }, { immediate: true, flush: 'sync' });
49
+ onScopeDispose(() => connection?.dispose());
50
+ return {
51
+ snapshot,
52
+ activate() {
53
+ active = true;
54
+ connection?.activate();
55
+ },
56
+ deactivate() {
57
+ active = false;
58
+ pauses.clear();
59
+ connection?.deactivate();
60
+ },
61
+ pause(reason, paused) {
62
+ if (paused)
63
+ pauses.add(reason);
64
+ else
65
+ pauses.delete(reason);
66
+ connection?.pause(reason, paused);
67
+ },
68
+ begin(id) {
69
+ connection?.begin(id);
70
+ },
71
+ entered(id) {
72
+ connection?.entered(id);
73
+ },
74
+ left(id) {
75
+ connection?.left(id);
76
+ },
77
+ };
78
+ }
79
+ //# sourceMappingURL=toast.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast.js","sourceRoot":"","sources":["../../src/vue/toast.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,MAAM,EACN,cAAc,EACd,GAAG,EACH,UAAU,EACV,KAAK,GAIN,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EACL,qBAAqB,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AAK,CAAC,EAAU;YACd,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,CAAA;QACvB,CAAC;QACD,OAAO,CAAC,EAAU;YAChB,UAAU,EAAE,OAAO,CAAC,EAAE,CAAC,CAAA;QACzB,CAAC;QACD,IAAI,CAAC,EAAU;YACb,UAAU,EAAE,IAAI,CAAC,EAAE,CAAC,CAAA;QACtB,CAAC;KACF,CAAA;AACH,CAAC"}
@@ -0,0 +1,110 @@
1
+ import type { PropType } from '@vue/runtime-core';
2
+ import type { FormController } from '../form.js';
3
+ import type { StepOption } from '../navigation.js';
4
+ import type { ChoiceValue } from '../choice.js';
5
+ export declare const formGroupProps: {
6
+ label: {
7
+ type: StringConstructor;
8
+ required: true;
9
+ };
10
+ description: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ id: {
15
+ type: StringConstructor;
16
+ default: undefined;
17
+ };
18
+ };
19
+ export declare const formErrorsProps: {
20
+ form: {
21
+ type: PropType<FormController>;
22
+ required: true;
23
+ };
24
+ title: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ announce: BooleanConstructor;
29
+ };
30
+ export declare const stepsProps: {
31
+ steps: {
32
+ type: PropType<readonly StepOption[]>;
33
+ required: true;
34
+ };
35
+ modelValue: {
36
+ type: PropType<ChoiceValue | null>;
37
+ default: null;
38
+ };
39
+ label: {
40
+ type: StringConstructor;
41
+ required: true;
42
+ };
43
+ disabled: BooleanConstructor;
44
+ loading: BooleanConstructor;
45
+ currentLabel: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ };
49
+ completeLabel: {
50
+ type: StringConstructor;
51
+ default: string;
52
+ };
53
+ errorLabel: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ };
58
+ export declare const paginationProps: {
59
+ modelValue: {
60
+ type: NumberConstructor;
61
+ default: number;
62
+ };
63
+ total: {
64
+ type: NumberConstructor;
65
+ required: true;
66
+ };
67
+ pageSize: {
68
+ type: NumberConstructor;
69
+ default: number;
70
+ };
71
+ siblingCount: {
72
+ type: NumberConstructor;
73
+ default: number;
74
+ };
75
+ label: {
76
+ type: StringConstructor;
77
+ default: string;
78
+ };
79
+ previousLabel: {
80
+ type: StringConstructor;
81
+ default: string;
82
+ };
83
+ nextLabel: {
84
+ type: StringConstructor;
85
+ default: string;
86
+ };
87
+ pageLabel: {
88
+ type: StringConstructor;
89
+ default: string;
90
+ };
91
+ currentLabel: {
92
+ type: StringConstructor;
93
+ default: string;
94
+ };
95
+ statusText: {
96
+ type: StringConstructor;
97
+ default: string;
98
+ };
99
+ emptyLabel: {
100
+ type: StringConstructor;
101
+ default: string;
102
+ };
103
+ invalidPageLabel: {
104
+ type: StringConstructor;
105
+ default: string;
106
+ };
107
+ loading: BooleanConstructor;
108
+ disabled: BooleanConstructor;
109
+ };
110
+ //# sourceMappingURL=workflow-props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-props.d.ts","sourceRoot":"","sources":["../../src/vue/workflow-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE/C,eAAO,MAAM,cAAc;;;;;;;;;;;;;CAI1B,CAAA;AACD,eAAO,MAAM,eAAe;;cACF,QAAQ,CAAC,cAAc,CAAC;;;;;;;;CAGjD,CAAA;AACD,eAAO,MAAM,UAAU;;cACG,QAAQ,CAAC,SAAS,UAAU,EAAE,CAAC;;;;cACf,QAAQ,CAAC,WAAW,GAAG,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;CAOrE,CAAA;AACD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe3B,CAAA"}
@@ -0,0 +1,37 @@
1
+ export const formGroupProps = {
2
+ label: { type: String, required: true },
3
+ description: { type: String, default: '' },
4
+ id: { type: String, default: undefined },
5
+ };
6
+ export const formErrorsProps = {
7
+ form: { type: Object, required: true },
8
+ title: { type: String, default: 'Review these fields' },
9
+ announce: Boolean,
10
+ };
11
+ export const stepsProps = {
12
+ steps: { type: Array, required: true },
13
+ modelValue: { type: [String, Number], default: null },
14
+ label: { type: String, required: true },
15
+ disabled: Boolean,
16
+ loading: Boolean,
17
+ currentLabel: { type: String, default: 'Current' },
18
+ completeLabel: { type: String, default: 'Complete' },
19
+ errorLabel: { type: String, default: 'Needs attention' },
20
+ };
21
+ export const paginationProps = {
22
+ modelValue: { type: Number, default: 1 },
23
+ total: { type: Number, required: true },
24
+ pageSize: { type: Number, default: 20 },
25
+ siblingCount: { type: Number, default: 1 },
26
+ label: { type: String, default: 'Result pages' },
27
+ previousLabel: { type: String, default: 'Previous' },
28
+ nextLabel: { type: String, default: 'Next' },
29
+ pageLabel: { type: String, default: 'Page' },
30
+ currentLabel: { type: String, default: 'Current' },
31
+ statusText: { type: String, default: '' },
32
+ emptyLabel: { type: String, default: 'No results' },
33
+ invalidPageLabel: { type: String, default: 'This page is no longer available.' },
34
+ loading: Boolean,
35
+ disabled: Boolean,
36
+ };
37
+ //# sourceMappingURL=workflow-props.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-props.js","sourceRoot":"","sources":["../../src/vue/workflow-props.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAa,EAAE;IAChD,WAAW,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IAC1C,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE;CACzC,CAAA;AACD,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IA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AAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE;IAC5C,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE;IAC5C,YAAY,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE;IAClD,UAAU,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IACzC,UAAU,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE;IACnD,gBAAgB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,mCAAmC,EAAE;IAChF,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,OAAO;CAClB,CAAA"}
@@ -0,0 +1,267 @@
1
+ import { type Component } from '@vue/runtime-core';
2
+ import { type ChoiceValue } from '../choice.js';
3
+ interface Primitives {
4
+ Column: Component;
5
+ Row: Component;
6
+ Text: Component;
7
+ Button: Component;
8
+ preserveFocus?: (root: unknown, currentId: string) => () => void;
9
+ }
10
+ /** Composed controls share behavior; each supplied primitive owns its platform rendering. */
11
+ export declare function createWorkflows(ui: Primitives, platform: 'web' | 'native'): {
12
+ MFormGroup: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
13
+ label: {
14
+ type: StringConstructor;
15
+ required: true;
16
+ };
17
+ description: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ id: {
22
+ type: StringConstructor;
23
+ default: undefined;
24
+ };
25
+ }>, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
26
+ [key: string]: any;
27
+ }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
28
+ label: {
29
+ type: StringConstructor;
30
+ required: true;
31
+ };
32
+ description: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ id: {
37
+ type: StringConstructor;
38
+ default: undefined;
39
+ };
40
+ }>> & Readonly<{}>, {
41
+ id: string;
42
+ description: string;
43
+ }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
44
+ MFormErrors: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
45
+ form: {
46
+ type: import("@vue/runtime-core").PropType<import("../form.js").FormController>;
47
+ required: true;
48
+ };
49
+ title: {
50
+ type: StringConstructor;
51
+ default: string;
52
+ };
53
+ announce: BooleanConstructor;
54
+ }>, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
55
+ [key: string]: any;
56
+ }> | null, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
57
+ focus: (_field: string, _focused: boolean) => true;
58
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
59
+ form: {
60
+ type: import("@vue/runtime-core").PropType<import("../form.js").FormController>;
61
+ required: true;
62
+ };
63
+ title: {
64
+ type: StringConstructor;
65
+ default: string;
66
+ };
67
+ announce: BooleanConstructor;
68
+ }>> & Readonly<{
69
+ onFocus?: ((_field: string, _focused: boolean) => any) | undefined;
70
+ }>, {
71
+ title: string;
72
+ announce: boolean;
73
+ }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
74
+ MSteps: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
75
+ steps: {
76
+ type: import("@vue/runtime-core").PropType<readonly import("../navigation.js").StepOption[]>;
77
+ required: true;
78
+ };
79
+ modelValue: {
80
+ type: import("@vue/runtime-core").PropType<ChoiceValue | null>;
81
+ default: null;
82
+ };
83
+ label: {
84
+ type: StringConstructor;
85
+ required: true;
86
+ };
87
+ disabled: BooleanConstructor;
88
+ loading: BooleanConstructor;
89
+ currentLabel: {
90
+ type: StringConstructor;
91
+ default: string;
92
+ };
93
+ completeLabel: {
94
+ type: StringConstructor;
95
+ default: string;
96
+ };
97
+ errorLabel: {
98
+ type: StringConstructor;
99
+ default: string;
100
+ };
101
+ }>, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
102
+ [key: string]: any;
103
+ }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
104
+ 'update:modelValue': (_value: ChoiceValue) => true;
105
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
106
+ steps: {
107
+ type: import("@vue/runtime-core").PropType<readonly import("../navigation.js").StepOption[]>;
108
+ required: true;
109
+ };
110
+ modelValue: {
111
+ type: import("@vue/runtime-core").PropType<ChoiceValue | null>;
112
+ default: null;
113
+ };
114
+ label: {
115
+ type: StringConstructor;
116
+ required: true;
117
+ };
118
+ disabled: BooleanConstructor;
119
+ loading: BooleanConstructor;
120
+ currentLabel: {
121
+ type: StringConstructor;
122
+ default: string;
123
+ };
124
+ completeLabel: {
125
+ type: StringConstructor;
126
+ default: string;
127
+ };
128
+ errorLabel: {
129
+ type: StringConstructor;
130
+ default: string;
131
+ };
132
+ }>> & Readonly<{
133
+ "onUpdate:modelValue"?: ((_value: ChoiceValue) => any) | undefined;
134
+ }>, {
135
+ loading: boolean;
136
+ disabled: boolean;
137
+ modelValue: ChoiceValue | null;
138
+ currentLabel: string;
139
+ completeLabel: string;
140
+ errorLabel: string;
141
+ }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
142
+ MPagination: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
143
+ modelValue: {
144
+ type: NumberConstructor;
145
+ default: number;
146
+ };
147
+ total: {
148
+ type: NumberConstructor;
149
+ required: true;
150
+ };
151
+ pageSize: {
152
+ type: NumberConstructor;
153
+ default: number;
154
+ };
155
+ siblingCount: {
156
+ type: NumberConstructor;
157
+ default: number;
158
+ };
159
+ label: {
160
+ type: StringConstructor;
161
+ default: string;
162
+ };
163
+ previousLabel: {
164
+ type: StringConstructor;
165
+ default: string;
166
+ };
167
+ nextLabel: {
168
+ type: StringConstructor;
169
+ default: string;
170
+ };
171
+ pageLabel: {
172
+ type: StringConstructor;
173
+ default: string;
174
+ };
175
+ currentLabel: {
176
+ type: StringConstructor;
177
+ default: string;
178
+ };
179
+ statusText: {
180
+ type: StringConstructor;
181
+ default: string;
182
+ };
183
+ emptyLabel: {
184
+ type: StringConstructor;
185
+ default: string;
186
+ };
187
+ invalidPageLabel: {
188
+ type: StringConstructor;
189
+ default: string;
190
+ };
191
+ loading: BooleanConstructor;
192
+ disabled: BooleanConstructor;
193
+ }>, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
194
+ [key: string]: any;
195
+ }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
196
+ 'update:modelValue': (_page: number) => true;
197
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
198
+ modelValue: {
199
+ type: NumberConstructor;
200
+ default: number;
201
+ };
202
+ total: {
203
+ type: NumberConstructor;
204
+ required: true;
205
+ };
206
+ pageSize: {
207
+ type: NumberConstructor;
208
+ default: number;
209
+ };
210
+ siblingCount: {
211
+ type: NumberConstructor;
212
+ default: number;
213
+ };
214
+ label: {
215
+ type: StringConstructor;
216
+ default: string;
217
+ };
218
+ previousLabel: {
219
+ type: StringConstructor;
220
+ default: string;
221
+ };
222
+ nextLabel: {
223
+ type: StringConstructor;
224
+ default: string;
225
+ };
226
+ pageLabel: {
227
+ type: StringConstructor;
228
+ default: string;
229
+ };
230
+ currentLabel: {
231
+ type: StringConstructor;
232
+ default: string;
233
+ };
234
+ statusText: {
235
+ type: StringConstructor;
236
+ default: string;
237
+ };
238
+ emptyLabel: {
239
+ type: StringConstructor;
240
+ default: string;
241
+ };
242
+ invalidPageLabel: {
243
+ type: StringConstructor;
244
+ default: string;
245
+ };
246
+ loading: BooleanConstructor;
247
+ disabled: BooleanConstructor;
248
+ }>> & Readonly<{
249
+ "onUpdate:modelValue"?: ((_page: number) => any) | undefined;
250
+ }>, {
251
+ label: string;
252
+ loading: boolean;
253
+ disabled: boolean;
254
+ modelValue: number;
255
+ emptyLabel: string;
256
+ currentLabel: string;
257
+ pageSize: number;
258
+ siblingCount: number;
259
+ previousLabel: string;
260
+ nextLabel: string;
261
+ pageLabel: string;
262
+ statusText: string;
263
+ invalidPageLabel: string;
264
+ }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
265
+ };
266
+ export {};
267
+ //# sourceMappingURL=workflows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/vue/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAWL,KAAK,SAAS,EACf,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAa,KAAK,WAAW,EAAE,MAAM,cAAc,CAAA;AAK1D,UAAU,UAAU;IAClB,MAAM,EAAE,SAAS,CAAA;IACjB,GAAG,EAAE,SAAS,CAAA;IACd,IAAI,EAAE,SAAS,CAAA;IACf,MAAM,EAAE,SAAS,CAAA;IACjB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,KAAK,MAAM,IAAI,CAAA;CACjE;AAED,6FAA6F;AAC7F,wBAAgB,eAAe,CAAC,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,GAAG,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAsC7C,MAAM,YAAY,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sCAuDX,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAuDZ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiF/C"}