create-aiaui-module 0.1.1-TEST → 0.1.2-TEST

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 (30) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/runtime/_runtime/host.py +7 -15
  4. package/templates/JobInformation/CUSTOMIZATION.md +98 -148
  5. package/templates/JobInformation/README.md +13 -0
  6. package/templates/JobInformation/api.py +63 -19
  7. package/templates/JobInformation/resources/dist/modules.js +1548 -954
  8. package/templates/JobInformation/resources/src/contract.ts +109 -37
  9. package/templates/JobInformation/resources/src/customization.ts +15 -10
  10. package/templates/JobInformation/resources/src/defaults/DefaultPanel.vue +122 -15
  11. package/templates/JobInformation/resources/src/defaults/Icons.vue +49 -0
  12. package/templates/JobInformation/resources/src/defaults/InputCarriers.vue +12 -9
  13. package/templates/JobInformation/resources/src/defaults/JobBottom.vue +32 -0
  14. package/templates/JobInformation/resources/src/defaults/JobCard.vue +48 -0
  15. package/templates/JobInformation/resources/src/defaults/JobHeader.vue +41 -0
  16. package/templates/JobInformation/resources/src/defaults/JobMiddle.vue +41 -0
  17. package/templates/JobInformation/resources/src/defaults/JobName.vue +9 -0
  18. package/templates/JobInformation/resources/src/defaults/LotId.vue +14 -0
  19. package/templates/JobInformation/resources/src/defaults/OutputCarriers.vue +15 -8
  20. package/templates/JobInformation/resources/src/defaults/Recipe.vue +6 -12
  21. package/templates/JobInformation/resources/src/defaults/Status.vue +29 -0
  22. package/templates/JobInformation/resources/src/defaults/Timeline.vue +57 -14
  23. package/templates/JobInformation/resources/src/defaults/board-data.ts +36 -0
  24. package/templates/JobInformation/resources/src/defaults/config-defaults.ts +36 -0
  25. package/templates/JobInformation/resources/src/defaults/format.ts +51 -0
  26. package/templates/JobInformation/resources/src/defaults/slots.ts +16 -6
  27. package/templates/JobInformation/resources/src/defaults/styles.css +576 -47
  28. package/templates/JobInformation/resources/src/index.ts +10 -18
  29. package/templates/JobInformation/resources/src/bus.ts +0 -38
  30. package/templates/JobInformation/resources/src/defaults/Header.vue +0 -12
@@ -1,38 +0,0 @@
1
- import type { ModuleBus, ModuleBusListener } from "./contract";
2
-
3
- /**
4
- * Create a per-mount communication bus.
5
- *
6
- * Not a singleton: `index.ts` creates one bus per `mount`, so it dies with
7
- * unmount and is re-born on the next mount of the same module (for example
8
- * when the user switches Instance in the UI).
9
- */
10
- export function createBus(): ModuleBus {
11
- const listeners = new Map<string, Set<ModuleBusListener>>();
12
- const handles = new Map<string, object>();
13
-
14
- return {
15
- emit(event, payload) {
16
- for (const listener of [...(listeners.get(event) ?? [])]) {
17
- listener(payload);
18
- }
19
- },
20
- on(event, listener) {
21
- const current = listeners.get(event) ?? new Set<ModuleBusListener>();
22
- current.add(listener);
23
- listeners.set(event, current);
24
- },
25
- off(event, listener) {
26
- listeners.get(event)?.delete(listener);
27
- },
28
- expose(name, handle) {
29
- handles.set(name, handle);
30
- },
31
- release(name) {
32
- handles.delete(name);
33
- },
34
- peer(name) {
35
- return handles.get(name);
36
- },
37
- };
38
- }
@@ -1,12 +0,0 @@
1
- <script setup lang="ts">
2
- import type { ModuleContext } from "../contract";
3
-
4
- defineProps<{ context: ModuleContext }>();
5
- </script>
6
-
7
- <template>
8
- <section class="aiaji-slot aiaji-header">
9
- <div class="aiaji-crumb">OB-260920-014 <span aria-hidden="true">&gt;</span> LOT-A3471</div>
10
- <div class="aiaji-state">WaitingForStart</div>
11
- </section>
12
- </template>