@7365admin1/layer-common 4.97.1-staging.665 → 4.97.1-staging.667

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.
@@ -161,17 +161,26 @@
161
161
 
162
162
  A caller that passes no `loading` renders exactly what it renders
163
163
  today (the prop defaults to false).
164
+
165
+ The icon alone didn't say what it does (DV-0958): a hover tip and
166
+ an accessible name now both say "Refresh".
164
167
  -->
165
- <v-btn
166
- fab
167
- icon
168
- density="comfortable"
169
- variant="text"
170
- :disabled="loading"
171
- @click="emits('refresh')"
172
- >
173
- <v-icon>mdi-refresh</v-icon>
174
- </v-btn>
168
+ <v-tooltip text="Refresh: reload this list" location="top" :open-delay="300">
169
+ <template #activator="{ props: tip }">
170
+ <v-btn
171
+ v-bind="tip"
172
+ fab
173
+ icon
174
+ density="comfortable"
175
+ variant="text"
176
+ aria-label="Refresh"
177
+ :disabled="loading"
178
+ @click="emits('refresh')"
179
+ >
180
+ <v-icon>mdi-refresh</v-icon>
181
+ </v-btn>
182
+ </template>
183
+ </v-tooltip>
175
184
  <slot name="prepend-additional" />
176
185
  </template>
177
186
 
@@ -95,6 +95,27 @@ export default function useCleaningPermission() {
95
95
  "Allows the user to see HID Access in the app and use their own QR code, face, PIN, card and intercom at this site.",
96
96
  },
97
97
  },
98
+ // Marketplace vendor roles (decision #223, build #1100). Mirrored from
99
+ // API-core `src/utils/marketplace-permissions.ts`; manage-orders implies
100
+ // view-orders. Until the API runs `MARKETPLACE_PERMISSION_MODE=enforce`
101
+ // these only prepare roles; existing explicit roles are backfilled.
102
+ "marketplace-mgmt": {
103
+ "manage-listings": {
104
+ check: true,
105
+ description:
106
+ "Allows the user to create, edit, price, publish and delete marketplace listings, add stock, and manage discounts and vendor settings.",
107
+ },
108
+ "view-orders": {
109
+ check: true,
110
+ description:
111
+ "Allows the user to view the marketplace order queue and order chat (read-only).",
112
+ },
113
+ "manage-orders": {
114
+ check: true,
115
+ description:
116
+ "Allows the user to update marketplace order status and bookings, cancel, and post in order chat. Includes viewing orders.",
117
+ },
118
+ },
98
119
  toilet_locations: {
99
120
  "create-toilet-location": {
100
121
  check: true,
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.665",
5
+ "version": "4.97.1-staging.667",
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.",