@cratis/event-models 0.329.1 → 0.331.0

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 (43) hide show
  1. package/dist/Board/BoardSelection.d.ts +5 -1
  2. package/dist/Board/scopeClick.d.ts +5 -0
  3. package/dist/Messages/EventModelMessages.d.ts +2 -0
  4. package/dist/Model/Slice.d.ts +2 -0
  5. package/dist/Model/SliceStatus.d.ts +3 -1
  6. package/dist/Slices/SliceHeader.d.ts +1 -1
  7. package/dist/Slices/SliceHeaderSlice.d.ts +1 -1
  8. package/dist/Statuses/SliceStatusPicker.d.ts +2 -1
  9. package/dist/event-model-document.schema.json +10 -1
  10. package/dist/event-models.css +1 -1
  11. package/dist/index.js +2894 -2846
  12. package/dist/index.js.map +1 -1
  13. package/dist/screen-editor/{CollectionEditor-DAZxBd7y.js → CollectionEditor-BvAtXikL.js} +76 -76
  14. package/dist/screen-editor/ScreenEditor/Actions/ActionModel.d.ts +3 -2
  15. package/dist/screen-editor/ScreenEditor/Actions/actionBehavior.d.ts +2 -1
  16. package/dist/screen-editor/ScreenEditor/DesignMode/DesignModeStrings.d.ts +3 -0
  17. package/dist/screen-editor/ScreenEditor/DesignMode/Navigation/navigationDocument.d.ts +2 -2
  18. package/dist/screen-editor/ScreenEditor/DesignMode/Navigation/navigationItemOps.d.ts +10 -10
  19. package/dist/screen-editor/ScreenEditor/DesignMode/designModeTypes.d.ts +1 -0
  20. package/dist/screen-editor/ScreenEditor/DesignMode/outletItemSource.d.ts +10 -0
  21. package/dist/screen-editor/ScreenEditor/DesignMode/resolveDesignMode.d.ts +1 -1
  22. package/dist/screen-editor/ScreenEditor/Destinations/DestinationProblemKind.d.ts +2 -2
  23. package/dist/screen-editor/ScreenEditor/Destinations/destinationProblems.d.ts +1 -1
  24. package/dist/screen-editor/ScreenEditor/Document/upgradeStoredDocument.d.ts +2 -0
  25. package/dist/screen-editor/ScreenEditor/Host/ScreenEditorController.d.ts +2 -2
  26. package/dist/screen-editor/ScreenEditor/Inspector/DestinationReferenceFields.d.ts +2 -2
  27. package/dist/screen-editor/ScreenEditor/Inspector/OutletButtonSection.d.ts +14 -0
  28. package/dist/screen-editor/ScreenEditor/Inspector/ScreenEditorStrings.d.ts +21 -8
  29. package/dist/screen-editor/ScreenEditor/Inspector/SlotListEditor.d.ts +13 -0
  30. package/dist/screen-editor/ScreenEditor/Inspector/ToolbarButtonSection.d.ts +1 -1
  31. package/dist/screen-editor/ScreenEditor/Inspector/localizedDisplay.d.ts +3 -0
  32. package/dist/screen-editor/ScreenEditor/Runtime/withOutletItemKind.d.ts +2 -0
  33. package/dist/screen-editor/ScreenEditor/Surface/designTimePointer.d.ts +1 -1
  34. package/dist/screen-editor/ScreenEditor/Toolbar/toolbarDiagnostics.d.ts +4 -1
  35. package/dist/screen-editor/ScreenTemplates/ApplicationTemplate.d.ts +4 -4
  36. package/dist/screen-editor/iconDiagnostics-BZq0t8-V.js +50 -0
  37. package/dist/screen-editor/index.js +3772 -3449
  38. package/dist/screen-editor/screen-editor.css +1 -1
  39. package/package.json +41 -41
  40. package/dist/screen-editor/ScreenEditor/Actions/ActionPresentation.d.ts +0 -5
  41. package/dist/screen-editor/ScreenEditor/Inspector/OutletListEditor.d.ts +0 -9
  42. package/dist/screen-editor/ScreenEditor/Runtime/withActionPresentation.d.ts +0 -2
  43. package/dist/screen-editor/iconDiagnostics-Ds4CnqD0.js +0 -49
@@ -0,0 +1,50 @@
1
+ import { DiagnosticCode as s, DiagnosticSeverity as r } from "@cratis/scene.model";
2
+ var p = /* @__PURE__ */ (function(t) {
3
+ return t.NoTarget = "noTarget", t.UnknownScreen = "unknownScreen", t.InvalidRoute = "invalidRoute", t.UnknownSlot = "unknownSlot", t.UnknownDialog = "unknownDialog", t.UnknownSlice = "unknownSlice", t.SlotKindWithoutSlot = "slotKindWithoutSlot", t.DialogKindWithoutDialog = "dialogKindWithoutDialog", t.ExternalKindWithoutRoute = "externalKindWithoutRoute", t;
4
+ })({});
5
+ function d(t, e) {
6
+ const n = t.runtime.bundles;
7
+ return {
8
+ screens: i(t.destinations.map((a) => a.id)),
9
+ slots: i([
10
+ ...n.flatMap((a) => (a.layouts ?? []).flatMap((o) => o.slots ?? [])),
11
+ ...n.flatMap((a) => (a.screenTemplates ?? []).flatMap((o) => o.slots ?? [])),
12
+ ...e.layouts.flatMap((a) => a.slots ?? []),
13
+ ...e.screenTemplates.flatMap((a) => a.slots ?? [])
14
+ ].map((a) => a.name)),
15
+ dialogTemplates: i([...n.flatMap((a) => a.dialogTemplates ?? []), ...e.dialogTemplates].map((a) => a.name)),
16
+ slices: i(t.stateChangeSlices.map((a) => a.id))
17
+ };
18
+ }
19
+ function i(t) {
20
+ return [...new Set(t.filter((e) => e.length > 0))].sort((e, n) => e.localeCompare(n));
21
+ }
22
+ var c = /* @__PURE__ */ new Set([
23
+ s.MissingIconLibrary,
24
+ s.MissingIcon,
25
+ s.MissingIconVariant,
26
+ s.IncompatibleIconLibrary,
27
+ s.IconCatalogUnavailable,
28
+ s.IconNotVerified
29
+ ]), l = (t) => c.has(t.code), u = (t) => t.code === s.IconNotVerified;
30
+ function f(t, e, n) {
31
+ const a = t.filter((o) => l(o) && !u(o) && o.path === e && o.itemId === n);
32
+ return (a.find((o) => o.severity === r.Error) ?? a[0])?.message;
33
+ }
34
+ var I = (t) => t.filter((e) => !l(e));
35
+ function S(t, e) {
36
+ const n = {};
37
+ for (const a of t) {
38
+ if (a.itemId === void 0) continue;
39
+ const o = f(t, e, a.itemId);
40
+ o && (n[a.itemId] = { icon: o });
41
+ }
42
+ return n;
43
+ }
44
+ export {
45
+ p as a,
46
+ i,
47
+ I as n,
48
+ d as r,
49
+ S as t
50
+ };