@quazardous/qdadm 2.47.0 → 2.49.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.
- package/dist/styles/qdadm.css +1 -1
- package/package.json +1 -1
- package/src/chain/StackHydrator.ts +82 -0
- package/src/components/index.ts +3 -0
- package/src/components/layout/EntityItemLayout.vue +120 -0
- package/src/components/layout/PageNav.vue +24 -2
- package/src/components/tasks/TaskDialog.vue +13 -157
- package/src/components/tasks/TaskHost.vue +15 -2
- package/src/components/tasks/TaskRunView.vue +197 -0
- package/src/components/tasks/TaskSequenceDialog.vue +157 -0
- package/src/components/tasks/TaskTray.vue +33 -13
- package/src/composables/useLiveEntity.ts +3 -1
- package/src/composables/useNavigation.ts +3 -4
- package/src/entity/EntityManager.cache.ts +49 -8
- package/src/entity/EntityManager.interface.ts +6 -0
- package/src/entity/EntityManager.ts +8 -0
- package/src/i18n/defaults/core.en.generated.ts +13 -0
- package/src/i18n/defaults/core.en.yml +13 -0
- package/src/i18n/defaults/core.fr.generated.ts +13 -0
- package/src/i18n/defaults/core.fr.yml +13 -0
- package/src/index.ts +7 -0
- package/src/kernel/Kernel.routing.ts +22 -31
- package/src/kernel/KernelContext.routing.ts +9 -0
- package/src/kernel/KernelContext.ts +3 -0
- package/src/kernel/KernelContext.types.ts +6 -0
- package/src/kernel/itemTabs.ts +99 -0
- package/src/module/moduleRegistry.ts +26 -0
- package/src/security/index.ts +1 -0
- package/src/security/routeAccess.ts +94 -0
- package/src/styles/_item-tabs.scss +52 -0
- package/src/styles/_tasks.scss +102 -0
- package/src/styles/index.scss +1 -0
- package/src/tasks/taskStore.ts +503 -14
- package/src/tasks/useTaskNotifications.ts +6 -2
- package/src/tasks/useTaskRunner.ts +15 -1
|
@@ -24,6 +24,14 @@
|
|
|
24
24
|
* tasks.run({ kind: 'stock-check', label, start, meta: { supplierId: id } })
|
|
25
25
|
* const check = computed(() => tasks.runFor('stock-check', { supplierId: id }))
|
|
26
26
|
*
|
|
27
|
+
* // Tasks chained in one window: the list of steps, each step's detail on a click (#4934).
|
|
28
|
+
* // A step's start gets the previous step's run; a failure stops the rest.
|
|
29
|
+
* const seq = await tasks.sequence('Verify', [
|
|
30
|
+
* { kind: 'check', label: 'Check', start: () => api.check(box) },
|
|
31
|
+
* { kind: 'conf-check', label: 'Conf check', start: (prev) => api.confCheck(box, prev?.result) },
|
|
32
|
+
* ], { meta: { box } })
|
|
33
|
+
* const busy = computed(() => tasks.isActive(tasks.sequenceFor({ box })))
|
|
34
|
+
*
|
|
27
35
|
* // As a row action, with a typed confirmation
|
|
28
36
|
* list.addAction('destroy', {
|
|
29
37
|
* icon: 'pi pi-trash', severity: 'danger',
|
|
@@ -57,8 +65,14 @@ export function useTaskRunner() {
|
|
|
57
65
|
runFor: store.runFor,
|
|
58
66
|
/** The runs matching `{ kind, taskId, meta }`, newest first. */
|
|
59
67
|
runsFor: store.runsFor,
|
|
60
|
-
/** A run
|
|
68
|
+
/** A run or a sequence still going, false for none (#4695). */
|
|
61
69
|
isActive: store.isActive,
|
|
70
|
+
/** Run tasks one after another, followed in one window (#4934). Resolves once under way; await `sequence.finished`. */
|
|
71
|
+
sequence: store.sequence,
|
|
72
|
+
cancelSequence: store.cancelSequence,
|
|
73
|
+
/** The latest sequence about a record (its meta), or null. */
|
|
74
|
+
sequenceFor: store.sequenceFor,
|
|
75
|
+
sequencesFor: store.sequencesFor,
|
|
62
76
|
}
|
|
63
77
|
}
|
|
64
78
|
|