@7365admin1/layer-common 4.97.1-staging.597 → 4.97.1-staging.598
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.
|
@@ -16,8 +16,11 @@
|
|
|
16
16
|
</button>
|
|
17
17
|
</template>
|
|
18
18
|
|
|
19
|
-
<template
|
|
20
|
-
<DashboardEmptyState error />
|
|
19
|
+
<template #no-data>
|
|
20
|
+
<DashboardEmptyState v-if="error" error />
|
|
21
|
+
<div v-else class="tc-ro-empty" data-test="task-calendar-agent-empty">
|
|
22
|
+
{{ EMPTY_TEXT[status] || EMPTY_TEXT.planned }}
|
|
23
|
+
</div>
|
|
21
24
|
</template>
|
|
22
25
|
|
|
23
26
|
<template v-slot:item.dateTime="{ item }">{{ dueDate(item.dateTime) }}</template>
|
|
@@ -59,6 +62,12 @@ const props = defineProps({
|
|
|
59
62
|
});
|
|
60
63
|
|
|
61
64
|
const LIMIT = 20;
|
|
65
|
+
// Per tab, in plain words (owner 24 Oct): never a bare "No data available".
|
|
66
|
+
const EMPTY_TEXT: Record<string, string> = {
|
|
67
|
+
planned: "No jobs from the managing agent yet. When they give your company a job at this site, it shows here.",
|
|
68
|
+
overdue: "Nothing overdue. Jobs from the managing agent that pass their due date show here.",
|
|
69
|
+
completed: "No finished jobs yet. Jobs the managing agent marks done show here.",
|
|
70
|
+
};
|
|
62
71
|
const TABS = [
|
|
63
72
|
{ name: "Open", status: "planned" },
|
|
64
73
|
{ name: "Overdue", status: "overdue" },
|
|
@@ -115,3 +124,11 @@ function taskState(task: Record<string, any>) {
|
|
|
115
124
|
return { label: "Upcoming", color: "primary" };
|
|
116
125
|
}
|
|
117
126
|
</script>
|
|
127
|
+
|
|
128
|
+
<style scoped>
|
|
129
|
+
.tc-ro-empty {
|
|
130
|
+
padding: 24px 16px;
|
|
131
|
+
font-size: var(--fs-cell);
|
|
132
|
+
color: var(--text2);
|
|
133
|
+
}
|
|
134
|
+
</style>
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@7365admin1/layer-common",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "4.97.1-staging.
|
|
5
|
+
"version": "4.97.1-staging.598",
|
|
6
6
|
"author": "7365admin1",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
8
8
|
"//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",
|