@revenexx/cover 0.14.0 → 0.16.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/app/api/account.ts +1 -0
- package/app/components/RevenexxForm.vue +183 -19
- package/app/components/account/address/AccountAddressCard.vue +8 -2
- package/app/components/account/address/AccountAddressView.vue +5 -1
- package/app/components/account/carts/AccountCartsTable.vue +85 -3
- package/app/components/account/dashboard/AccountDashboardBudgets.vue +2 -1
- package/app/components/account/dashboard/AccountDashboardRecentOrders.vue +2 -1
- package/app/components/account/dashboard/AccountDashboardRequisitions.vue +2 -1
- package/app/components/account/directorder/AccountDirectOrder.vue +100 -12
- package/app/components/account/governance/AccountApprovalLimitsTable.vue +124 -8
- package/app/components/account/governance/AccountCostCenterDetail.vue +3 -2
- package/app/components/account/governance/AccountCostCentersTable.vue +133 -6
- package/app/components/account/governance/AccountRequisitionDetail.vue +2 -1
- package/app/components/account/governance/AccountRequisitionsTable.vue +102 -6
- package/app/components/account/governance/AccountWorkflowDetail.vue +3 -2
- package/app/components/account/governance/AccountWorkflowsTable.vue +76 -1
- package/app/components/account/governance/GovernanceApprovalLimitModal.vue +8 -0
- package/app/components/account/governance/GovernanceCostCenterModal.vue +7 -0
- package/app/components/account/governance/GovernanceWorkflowModal.vue +7 -0
- package/app/components/account/orderlists/AccountOrderListDetail.vue +14 -4
- package/app/components/account/orderlists/AccountOrderListsTable.vue +115 -7
- package/app/components/account/orders/AccountOrderDetail.vue +67 -3
- package/app/components/account/orders/AccountOrderPay.vue +211 -0
- package/app/components/account/orders/AccountOrdersTable.vue +119 -10
- package/app/components/account/organization/AccountOrganization.vue +6 -0
- package/app/components/account/profile/AccountPasswordForm.vue +2 -0
- package/app/components/account/profile/AccountProfileForm.vue +4 -0
- package/app/components/account/quotes/AccountQuoteDetail.vue +7 -10
- package/app/components/account/team/AccountTeam.vue +91 -0
- package/app/components/auth/AuthLoginTeaser.vue +1 -1
- package/app/components/auth/AuthRegisterPanel.vue +22 -3
- package/app/components/cart/manage/CartNameModal.vue +4 -0
- package/app/components/checkout/onepage/CheckoutAddressSection.vue +5 -1
- package/app/components/checkout/onepage/CheckoutGuestDetailsSection.vue +9 -1
- package/app/components/checkout/onepage/CheckoutSummarySection.vue +6 -1
- package/app/components/form/FormPage.vue +7 -4
- package/app/components/layout/footer/Footer.vue +15 -2
- package/app/components/layout/header/LocaleSwitcher.vue +79 -12
- package/app/components/ui/forms/PasswordInput.vue +2 -0
- package/app/components/ui/forms/SearchInput.vue +205 -8
- package/app/components/ui/table/TableCardList.vue +69 -0
- package/app/components/ui/table/TableSortButton.vue +1 -1
- package/app/components/ui/table/TableToolbar.vue +2 -0
- package/app/components/withdrawal/WithdrawalDeclaration.vue +286 -0
- package/app/composables/useCheckoutOnePage.ts +22 -0
- package/app/composables/useMobileTableSort.ts +82 -0
- package/app/composables/useProductCard.ts +14 -0
- package/app/composables/useProductListing.ts +27 -1
- package/app/composables/useSearchEvents.ts +67 -0
- package/app/config/forms.ts +8 -0
- package/app/config/navigation.ts +8 -0
- package/app/formkit.config.ts +21 -0
- package/app/interfaces/account/order-list.ts +11 -0
- package/app/interfaces/account/quotes.ts +7 -3
- package/app/interfaces/market.ts +7 -0
- package/app/pages/punchout/transfer.vue +36 -1
- package/app/pages/widerruf.vue +33 -0
- package/app/plugins/search-events.client.ts +41 -0
- package/app/shared/addressLines.ts +66 -0
- package/app/shared/checkoutAddressRefusal.ts +63 -0
- package/app/shared/locale.ts +133 -0
- package/app/shared/searchAttribution.ts +91 -0
- package/app/shared/themeEvents.ts +1 -1
- package/i18n/locales/de/account.json +13 -1
- package/i18n/locales/de/cart.json +1 -0
- package/i18n/locales/de/checkout.json +1 -1
- package/i18n/locales/de/common.json +7 -0
- package/i18n/locales/de/search.json +7 -0
- package/i18n/locales/de/withdrawal.json +34 -0
- package/i18n/locales/en/account.json +13 -1
- package/i18n/locales/en/cart.json +1 -0
- package/i18n/locales/en/checkout.json +1 -1
- package/i18n/locales/en/common.json +7 -0
- package/i18n/locales/en/search.json +7 -0
- package/i18n/locales/en/withdrawal.json +34 -0
- package/nuxt.config.ts +3 -0
- package/package.json +1 -1
- package/server/api/account/orders/[id]/pay.post.ts +100 -0
- package/server/api/account/orders/[id].get.ts +5 -1
- package/server/api/account/quotes/[id]/order.post.ts +22 -22
- package/server/api/brands.get.ts +3 -2
- package/server/api/categories/[slug]/subcategories.get.ts +9 -6
- package/server/api/forms/[slug].get.ts +1 -3
- package/server/api/orders/index.post.ts +33 -50
- package/server/api/products/index.get.ts +6 -1
- package/server/api/punchout/return.post.ts +3 -1
- package/server/api/search/events.post.ts +65 -0
- package/server/api/typesense/search.post.ts +12 -1
- package/server/api/typesense/suggest.post.ts +43 -22
- package/server/data/forms/authored.json +69 -8
- package/server/dev/errorHandler.ts +47 -0
- package/server/interfaces/brand.ts +3 -2
- package/server/interfaces/product.ts +5 -0
- package/server/interfaces/punchout.ts +5 -0
- package/server/middleware/missing-media.ts +35 -0
- package/server/middleware/punchout-hand-back-csp.ts +17 -0
- package/server/plugins/vue-devtools-sink.ts +28 -0
- package/server/services/ApiBrandService.ts +8 -8
- package/server/services/ApiMarketService.ts +9 -2
- package/server/services/ApiProductService.ts +1 -1
- package/server/services/MockFormsService.ts +3 -1
- package/server/utils/addressRefusal.ts +63 -0
- package/server/utils/country.ts +23 -0
- package/server/utils/forms.ts +23 -1
- package/server/utils/liveOrders.ts +44 -2
- package/server/utils/locale.ts +58 -4
- package/server/utils/orderPayment.ts +155 -0
- package/server/utils/punchoutFormAction.ts +44 -0
- package/server/utils/searchClient.ts +27 -4
- package/server/utils/searchEvents.ts +46 -0
- package/server/utils/searchMultiSearchFallback.ts +2 -0
- package/server/utils/searchSuggest.ts +207 -0
- package/server/utils/suggestTiles.ts +141 -0
|
@@ -61,11 +61,17 @@ const sorting = ref([{ id: "requestedAt", desc: true }]);
|
|
|
61
61
|
|
|
62
62
|
const columns = computed<TableColumn<Requisition>[]>(() => [
|
|
63
63
|
{ accessorKey: "id", header: t("governance.requisitions.columns.id") },
|
|
64
|
-
|
|
64
|
+
// Below lg the workflow and requester fold into the id cell as a second line.
|
|
65
|
+
{
|
|
66
|
+
accessorKey: "workflowName",
|
|
67
|
+
header: t("governance.requisitions.columns.workflow"),
|
|
68
|
+
meta: { class: { th: "max-lg:hidden", td: "max-lg:hidden" } },
|
|
69
|
+
},
|
|
65
70
|
{
|
|
66
71
|
id: "requestedBy",
|
|
67
72
|
accessorFn: row => row.requestedBy.name,
|
|
68
73
|
header: t("governance.requisitions.columns.requestedBy"),
|
|
74
|
+
meta: { class: { th: "max-lg:hidden", td: "max-lg:hidden" } },
|
|
69
75
|
},
|
|
70
76
|
{ accessorKey: "requestedAt", header: t("governance.requisitions.columns.requestedAt") },
|
|
71
77
|
{
|
|
@@ -114,6 +120,14 @@ async function loadIntoCart(requisition: Requisition): Promise<void> {
|
|
|
114
120
|
}
|
|
115
121
|
|
|
116
122
|
const formatDate = (value: string) => d(new Date(value), { dateStyle: "medium" });
|
|
123
|
+
|
|
124
|
+
/* ---- mobile card list (below md) ---------------------------------------- */
|
|
125
|
+
const { items: sortItems, model: mobileSort, sorted: sortedRequisitions } = useMobileTableSort(filtered, sorting, () => [
|
|
126
|
+
{ id: "requestedAt", label: t("governance.requisitions.columns.requestedAt"), kind: "date", value: requisition => requisition.requestedAt },
|
|
127
|
+
{ id: "id", label: t("governance.requisitions.columns.id"), kind: "text", value: requisition => requisition.id },
|
|
128
|
+
{ id: "totalValue", label: t("governance.requisitions.columns.totalValue"), kind: "number", value: requisition => requisition.totalValue },
|
|
129
|
+
{ id: "positions", label: t("governance.requisitions.columns.positions"), kind: "number", value: requisition => requisition.items.length },
|
|
130
|
+
]);
|
|
117
131
|
</script>
|
|
118
132
|
|
|
119
133
|
<template>
|
|
@@ -125,12 +139,86 @@ const formatDate = (value: string) => d(new Date(value), { dateStyle: "medium" }
|
|
|
125
139
|
:filter-items="filterItems"
|
|
126
140
|
/>
|
|
127
141
|
|
|
142
|
+
<UiTableCardList
|
|
143
|
+
v-model:sort="mobileSort"
|
|
144
|
+
:rows="sortedRequisitions"
|
|
145
|
+
:row-key="requisition => requisition.id"
|
|
146
|
+
:sort-items="sortItems"
|
|
147
|
+
:loading="status === 'pending'"
|
|
148
|
+
>
|
|
149
|
+
<template #item="{ row }">
|
|
150
|
+
<div class="flex items-start justify-between gap-2">
|
|
151
|
+
<div class="min-w-0 -mt-1">
|
|
152
|
+
<ULink
|
|
153
|
+
class="inline-flex min-h-11 items-center font-semibold text-highlighted hover:text-primary transition-colors break-all"
|
|
154
|
+
:to="localePath(`/account/requisitions/${row.id}`)"
|
|
155
|
+
>
|
|
156
|
+
{{ row.id }}
|
|
157
|
+
</ULink>
|
|
158
|
+
<p class="-mt-2 text-xs text-muted break-words">
|
|
159
|
+
{{ row.workflowName }}
|
|
160
|
+
</p>
|
|
161
|
+
</div>
|
|
162
|
+
<div class="flex items-center shrink-0 -my-2 -me-2.5">
|
|
163
|
+
<UButton
|
|
164
|
+
color="neutral"
|
|
165
|
+
variant="ghost"
|
|
166
|
+
class="size-11 justify-center"
|
|
167
|
+
:icon="icon('eye')"
|
|
168
|
+
:aria-label="t('governance.requisitions.details')"
|
|
169
|
+
:to="localePath(`/account/requisitions/${row.id}`)"
|
|
170
|
+
/>
|
|
171
|
+
<UButton
|
|
172
|
+
v-if="canLoad && row.status === 'open' && !isLoaded(row)"
|
|
173
|
+
color="primary"
|
|
174
|
+
variant="soft"
|
|
175
|
+
class="size-11 justify-center"
|
|
176
|
+
:icon="icon('cart')"
|
|
177
|
+
:aria-label="t('cart.requisition.load')"
|
|
178
|
+
@click="loadIntoCart(row)"
|
|
179
|
+
/>
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
<div class="mt-2">
|
|
183
|
+
<UBadge
|
|
184
|
+
:color="statusColors[row.status]"
|
|
185
|
+
variant="subtle"
|
|
186
|
+
size="sm"
|
|
187
|
+
:label="t(`governance.requisitions.status.${row.status}`)"
|
|
188
|
+
/>
|
|
189
|
+
</div>
|
|
190
|
+
<p class="mt-2 text-sm tabular-nums">
|
|
191
|
+
<span class="text-muted">{{ t('governance.requisitions.columns.positions') }}: {{ row.items.length }}</span>
|
|
192
|
+
<span class="text-dimmed"> · </span>
|
|
193
|
+
<span class="text-highlighted">{{ formatCurrency(row.totalValue) }}</span>
|
|
194
|
+
</p>
|
|
195
|
+
<p class="mt-1 text-xs text-muted">
|
|
196
|
+
{{ row.requestedBy.name }} · {{ formatDate(row.requestedAt) }}
|
|
197
|
+
</p>
|
|
198
|
+
</template>
|
|
199
|
+
<template #empty>
|
|
200
|
+
<UiFeedbackEmptyState
|
|
201
|
+
v-if="search || statusFilter !== 'all'"
|
|
202
|
+
:icon="icon('no-results')"
|
|
203
|
+
:title="t('table.noResults.title')"
|
|
204
|
+
:description="t('table.noResults.description')"
|
|
205
|
+
/>
|
|
206
|
+
<UiFeedbackEmptyState
|
|
207
|
+
v-else
|
|
208
|
+
:icon="icon('empty')"
|
|
209
|
+
:title="t('governance.requisitions.empty.title')"
|
|
210
|
+
:description="t('governance.requisitions.empty.description')"
|
|
211
|
+
/>
|
|
212
|
+
</template>
|
|
213
|
+
</UiTableCardList>
|
|
214
|
+
|
|
128
215
|
<UTable
|
|
129
216
|
v-model:sorting="sorting"
|
|
217
|
+
class="hidden md:block"
|
|
130
218
|
:data="filtered"
|
|
131
219
|
:columns="columns"
|
|
132
220
|
:loading="status === 'pending'"
|
|
133
|
-
:ui="tableUi"
|
|
221
|
+
:ui="{ ...tableUi, th: `${tableUi.th} px-3 max-lg:px-2`, td: `${tableUi.td} px-3 max-lg:px-2` }"
|
|
134
222
|
>
|
|
135
223
|
<template #id-header="{ column }">
|
|
136
224
|
<UiTableSortButton
|
|
@@ -171,17 +259,23 @@ const formatDate = (value: string) => d(new Date(value), { dateStyle: "medium" }
|
|
|
171
259
|
|
|
172
260
|
<template #id-cell="{ row }">
|
|
173
261
|
<ULink
|
|
174
|
-
class="font-semibold text-highlighted hover:text-primary transition-colors"
|
|
262
|
+
class="font-semibold text-highlighted hover:text-primary transition-colors whitespace-normal break-all max-lg:inline-block max-lg:py-3 max-lg:-my-3"
|
|
175
263
|
:to="localePath(`/account/requisitions/${row.original.id}`)"
|
|
176
264
|
>
|
|
177
265
|
{{ row.original.id }}
|
|
178
266
|
</ULink>
|
|
267
|
+
<p class="mt-1 whitespace-normal text-xs text-muted lg:hidden">
|
|
268
|
+
{{ row.original.workflowName }} · {{ row.original.requestedBy.name }}
|
|
269
|
+
</p>
|
|
270
|
+
</template>
|
|
271
|
+
<template #workflowName-cell="{ row }">
|
|
272
|
+
<span class="whitespace-normal block">{{ row.original.workflowName }}</span>
|
|
179
273
|
</template>
|
|
180
274
|
<template #requestedBy-cell="{ row }">
|
|
181
|
-
{{ row.original.requestedBy.name }}
|
|
275
|
+
<span class="whitespace-normal block">{{ row.original.requestedBy.name }}</span>
|
|
182
276
|
</template>
|
|
183
277
|
<template #requestedAt-cell="{ row }">
|
|
184
|
-
{{ formatDate(row.original.requestedAt) }}
|
|
278
|
+
<span class="whitespace-normal">{{ formatDate(row.original.requestedAt) }}</span>
|
|
185
279
|
</template>
|
|
186
280
|
<template #positions-cell="{ row }">
|
|
187
281
|
<span class="tabular-nums">{{ row.original.items.length }}</span>
|
|
@@ -198,13 +292,14 @@ const formatDate = (value: string) => d(new Date(value), { dateStyle: "medium" }
|
|
|
198
292
|
/>
|
|
199
293
|
</template>
|
|
200
294
|
<template #actions-cell="{ row }">
|
|
201
|
-
<div class="flex items-center justify-end gap-1">
|
|
295
|
+
<div class="flex items-center justify-end gap-1 max-lg:gap-0">
|
|
202
296
|
<UTooltip :text="t('governance.requisitions.details')">
|
|
203
297
|
<UButton
|
|
204
298
|
color="neutral"
|
|
205
299
|
variant="ghost"
|
|
206
300
|
size="sm"
|
|
207
301
|
tabindex="0"
|
|
302
|
+
class="max-lg:size-11 max-lg:justify-center"
|
|
208
303
|
:icon="icon('eye')"
|
|
209
304
|
:aria-label="t('governance.requisitions.details')"
|
|
210
305
|
:to="localePath(`/account/requisitions/${row.original.id}`)"
|
|
@@ -219,6 +314,7 @@ const formatDate = (value: string) => d(new Date(value), { dateStyle: "medium" }
|
|
|
219
314
|
variant="soft"
|
|
220
315
|
size="sm"
|
|
221
316
|
tabindex="0"
|
|
317
|
+
class="max-lg:size-11 max-lg:justify-center"
|
|
222
318
|
:icon="icon('cart')"
|
|
223
319
|
:aria-label="t('cart.requisition.load')"
|
|
224
320
|
@click="loadIntoCart(row.original)"
|
|
@@ -98,7 +98,7 @@ const editOpen = ref(false);
|
|
|
98
98
|
</div>
|
|
99
99
|
<UButton
|
|
100
100
|
v-if="canManage"
|
|
101
|
-
class="ms-auto"
|
|
101
|
+
class="ms-auto max-lg:min-h-11"
|
|
102
102
|
color="neutral"
|
|
103
103
|
variant="outline"
|
|
104
104
|
size="sm"
|
|
@@ -160,7 +160,8 @@ const editOpen = ref(false);
|
|
|
160
160
|
{{ t('governance.workflows.requisitionsTitle') }}
|
|
161
161
|
</h2>
|
|
162
162
|
<ULink
|
|
163
|
-
class="text-xs font-medium text-primary hover:underline
|
|
163
|
+
class="inline-flex shrink-0 items-center whitespace-nowrap text-xs font-medium text-primary hover:underline
|
|
164
|
+
max-lg:-my-3 max-lg:min-h-11"
|
|
164
165
|
:to="localePath('/account/requisitions')"
|
|
165
166
|
>
|
|
166
167
|
{{ t('account.dashboard.viewAll') }} →
|
|
@@ -54,6 +54,12 @@ const columns = computed<TableColumn<ApprovalWorkflow>[]>(() => [
|
|
|
54
54
|
{ id: "actions", header: "", enableSorting: false },
|
|
55
55
|
]);
|
|
56
56
|
|
|
57
|
+
/* ---- mobile card list (below md) ---------------------------------------- */
|
|
58
|
+
const { items: sortItems, model: mobileSort, sorted: sortedWorkflows } = useMobileTableSort(filtered, sorting, () => [
|
|
59
|
+
{ id: "name", label: t("governance.workflows.columns.name"), kind: "text", value: workflow => workflow.name },
|
|
60
|
+
{ id: "steps", label: t("governance.workflows.columns.steps"), kind: "number", value: workflow => workflow.steps.length },
|
|
61
|
+
]);
|
|
62
|
+
|
|
57
63
|
const modalOpen = ref(false);
|
|
58
64
|
|
|
59
65
|
async function onSaved(): Promise<void> {
|
|
@@ -74,6 +80,7 @@ async function onSaved(): Promise<void> {
|
|
|
74
80
|
<UButton
|
|
75
81
|
color="primary"
|
|
76
82
|
tabindex="0"
|
|
83
|
+
class="max-lg:min-h-11"
|
|
77
84
|
:icon="icon('plus')"
|
|
78
85
|
:label="t('governance.workflows.add')"
|
|
79
86
|
@click="modalOpen = true"
|
|
@@ -81,8 +88,75 @@ async function onSaved(): Promise<void> {
|
|
|
81
88
|
</template>
|
|
82
89
|
</UiTableToolbar>
|
|
83
90
|
|
|
91
|
+
<UiTableCardList
|
|
92
|
+
v-model:sort="mobileSort"
|
|
93
|
+
:rows="sortedWorkflows"
|
|
94
|
+
:row-key="workflow => workflow.id"
|
|
95
|
+
:sort-items="sortItems"
|
|
96
|
+
:loading="status === 'pending'"
|
|
97
|
+
>
|
|
98
|
+
<template #item="{ row }">
|
|
99
|
+
<div class="flex items-start justify-between gap-2">
|
|
100
|
+
<div class="min-w-0 -mt-1">
|
|
101
|
+
<ULink
|
|
102
|
+
class="inline-flex min-h-11 items-center font-semibold text-highlighted hover:text-primary transition-colors break-words"
|
|
103
|
+
:to="localePath(`/account/workflows/${row.id}`)"
|
|
104
|
+
>
|
|
105
|
+
{{ row.name }}
|
|
106
|
+
</ULink>
|
|
107
|
+
<p class="-mt-2 text-xs text-muted">
|
|
108
|
+
{{ t('governance.workflows.columns.steps') }}: {{ row.steps.length }}
|
|
109
|
+
</p>
|
|
110
|
+
</div>
|
|
111
|
+
<div class="flex items-center shrink-0 -my-2 -me-2.5">
|
|
112
|
+
<UButton
|
|
113
|
+
color="neutral"
|
|
114
|
+
variant="ghost"
|
|
115
|
+
class="size-11 justify-center"
|
|
116
|
+
:icon="icon('eye')"
|
|
117
|
+
:aria-label="t('governance.requisitions.details')"
|
|
118
|
+
:to="localePath(`/account/workflows/${row.id}`)"
|
|
119
|
+
/>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
<dl class="mt-2 space-y-1 text-sm">
|
|
123
|
+
<div class="flex flex-wrap items-baseline gap-x-2">
|
|
124
|
+
<dt class="text-xs text-muted">
|
|
125
|
+
{{ t('governance.workflows.columns.requesters') }}
|
|
126
|
+
</dt>
|
|
127
|
+
<dd class="min-w-0">
|
|
128
|
+
{{ names(row, 'request') || '—' }}
|
|
129
|
+
</dd>
|
|
130
|
+
</div>
|
|
131
|
+
<div class="flex flex-wrap items-baseline gap-x-2">
|
|
132
|
+
<dt class="text-xs text-muted">
|
|
133
|
+
{{ t('governance.workflows.columns.orderers') }}
|
|
134
|
+
</dt>
|
|
135
|
+
<dd class="min-w-0">
|
|
136
|
+
{{ names(row, 'order') || '—' }}
|
|
137
|
+
</dd>
|
|
138
|
+
</div>
|
|
139
|
+
</dl>
|
|
140
|
+
</template>
|
|
141
|
+
<template #empty>
|
|
142
|
+
<UiFeedbackEmptyState
|
|
143
|
+
v-if="search"
|
|
144
|
+
:icon="icon('no-results')"
|
|
145
|
+
:title="t('table.noResults.title')"
|
|
146
|
+
:description="t('table.noResults.description')"
|
|
147
|
+
/>
|
|
148
|
+
<UiFeedbackEmptyState
|
|
149
|
+
v-else
|
|
150
|
+
:icon="icon('empty')"
|
|
151
|
+
:title="t('governance.workflows.empty.title')"
|
|
152
|
+
:description="t('governance.workflows.empty.description')"
|
|
153
|
+
/>
|
|
154
|
+
</template>
|
|
155
|
+
</UiTableCardList>
|
|
156
|
+
|
|
84
157
|
<UTable
|
|
85
158
|
v-model:sorting="sorting"
|
|
159
|
+
class="hidden md:block"
|
|
86
160
|
:data="filtered"
|
|
87
161
|
:columns="columns"
|
|
88
162
|
:loading="status === 'pending'"
|
|
@@ -103,7 +177,7 @@ async function onSaved(): Promise<void> {
|
|
|
103
177
|
|
|
104
178
|
<template #name-cell="{ row }">
|
|
105
179
|
<ULink
|
|
106
|
-
class="font-semibold text-highlighted hover:text-primary transition-colors"
|
|
180
|
+
class="font-semibold text-highlighted hover:text-primary transition-colors max-lg:inline-block max-lg:py-3 max-lg:-my-3"
|
|
107
181
|
:to="localePath(`/account/workflows/${row.original.id}`)"
|
|
108
182
|
>
|
|
109
183
|
{{ row.original.name }}
|
|
@@ -126,6 +200,7 @@ async function onSaved(): Promise<void> {
|
|
|
126
200
|
variant="ghost"
|
|
127
201
|
size="sm"
|
|
128
202
|
tabindex="0"
|
|
203
|
+
class="max-lg:size-11 max-lg:justify-center"
|
|
129
204
|
:icon="icon('eye')"
|
|
130
205
|
:aria-label="t('governance.requisitions.details')"
|
|
131
206
|
:to="localePath(`/account/workflows/${row.original.id}`)"
|
|
@@ -97,6 +97,7 @@ async function save(): Promise<void> {
|
|
|
97
97
|
<UModal
|
|
98
98
|
v-model:open="open"
|
|
99
99
|
:title="t('governance.approvals.addTitle')"
|
|
100
|
+
:close="{ class: 'max-lg:size-11 max-lg:justify-center' }"
|
|
100
101
|
>
|
|
101
102
|
<template #body>
|
|
102
103
|
<div class="space-y-4">
|
|
@@ -108,6 +109,7 @@ async function save(): Promise<void> {
|
|
|
108
109
|
v-model="type"
|
|
109
110
|
:items="TYPES.map(value => ({ value, label: t(`governance.approvals.types.${value}`) }))"
|
|
110
111
|
class="w-full"
|
|
112
|
+
:ui="{ base: 'max-lg:min-h-11' }"
|
|
111
113
|
/>
|
|
112
114
|
</UFormField>
|
|
113
115
|
<UFormField
|
|
@@ -118,6 +120,7 @@ async function save(): Promise<void> {
|
|
|
118
120
|
v-model="userId"
|
|
119
121
|
:items="userItems"
|
|
120
122
|
class="w-full"
|
|
123
|
+
:ui="{ base: 'max-lg:min-h-11' }"
|
|
121
124
|
:placeholder="t('governance.selectUser')"
|
|
122
125
|
/>
|
|
123
126
|
</UFormField>
|
|
@@ -128,6 +131,7 @@ async function save(): Promise<void> {
|
|
|
128
131
|
<UInput
|
|
129
132
|
v-model="label"
|
|
130
133
|
class="w-full"
|
|
134
|
+
:ui="{ base: 'max-lg:min-h-11' }"
|
|
131
135
|
/>
|
|
132
136
|
</UFormField>
|
|
133
137
|
<UFormField
|
|
@@ -142,6 +146,7 @@ async function save(): Promise<void> {
|
|
|
142
146
|
type="number"
|
|
143
147
|
min="1"
|
|
144
148
|
class="w-full"
|
|
149
|
+
:ui="{ base: 'max-lg:min-h-11' }"
|
|
145
150
|
>
|
|
146
151
|
<template #trailing>
|
|
147
152
|
<span class="text-xs text-dimmed">€</span>
|
|
@@ -153,6 +158,7 @@ async function save(): Promise<void> {
|
|
|
153
158
|
v-model="approverId"
|
|
154
159
|
:items="approverItems"
|
|
155
160
|
class="w-full"
|
|
161
|
+
:ui="{ base: 'max-lg:min-h-11' }"
|
|
156
162
|
:placeholder="t('governance.selectApprover')"
|
|
157
163
|
/>
|
|
158
164
|
</UFormField>
|
|
@@ -167,12 +173,14 @@ async function save(): Promise<void> {
|
|
|
167
173
|
color="neutral"
|
|
168
174
|
variant="ghost"
|
|
169
175
|
tabindex="0"
|
|
176
|
+
class="max-lg:min-h-11"
|
|
170
177
|
:label="t('cart.item.cancel')"
|
|
171
178
|
@click="open = false"
|
|
172
179
|
/>
|
|
173
180
|
<UButton
|
|
174
181
|
color="primary"
|
|
175
182
|
tabindex="0"
|
|
183
|
+
class="max-lg:min-h-11"
|
|
176
184
|
:disabled="!valid"
|
|
177
185
|
:loading="saving"
|
|
178
186
|
:label="t('governance.save')"
|
|
@@ -102,6 +102,7 @@ async function save(): Promise<void> {
|
|
|
102
102
|
<UModal
|
|
103
103
|
v-model:open="open"
|
|
104
104
|
:title="isEdit ? t('governance.costCenters.editTitle') : t('governance.costCenters.addTitle')"
|
|
105
|
+
:close="{ class: 'max-lg:size-11 max-lg:justify-center' }"
|
|
105
106
|
>
|
|
106
107
|
<template #body>
|
|
107
108
|
<div class="space-y-4">
|
|
@@ -113,6 +114,7 @@ async function save(): Promise<void> {
|
|
|
113
114
|
<UInput
|
|
114
115
|
v-model="code"
|
|
115
116
|
class="w-full"
|
|
117
|
+
:ui="{ base: 'max-lg:min-h-11' }"
|
|
116
118
|
placeholder="CC-400"
|
|
117
119
|
/>
|
|
118
120
|
</UFormField>
|
|
@@ -123,6 +125,7 @@ async function save(): Promise<void> {
|
|
|
123
125
|
<UInput
|
|
124
126
|
v-model="label"
|
|
125
127
|
class="w-full"
|
|
128
|
+
:ui="{ base: 'max-lg:min-h-11' }"
|
|
126
129
|
/>
|
|
127
130
|
</UFormField>
|
|
128
131
|
</div>
|
|
@@ -145,6 +148,7 @@ async function save(): Promise<void> {
|
|
|
145
148
|
type="number"
|
|
146
149
|
min="1"
|
|
147
150
|
class="w-full"
|
|
151
|
+
:ui="{ base: 'max-lg:min-h-11' }"
|
|
148
152
|
>
|
|
149
153
|
<template #trailing>
|
|
150
154
|
<span class="text-xs text-dimmed">€</span>
|
|
@@ -156,6 +160,7 @@ async function save(): Promise<void> {
|
|
|
156
160
|
v-model="approverId"
|
|
157
161
|
:items="approverItems"
|
|
158
162
|
class="w-full"
|
|
163
|
+
:ui="{ base: 'max-lg:min-h-11' }"
|
|
159
164
|
:placeholder="t('governance.selectApprover')"
|
|
160
165
|
/>
|
|
161
166
|
</UFormField>
|
|
@@ -172,12 +177,14 @@ async function save(): Promise<void> {
|
|
|
172
177
|
color="neutral"
|
|
173
178
|
variant="ghost"
|
|
174
179
|
tabindex="0"
|
|
180
|
+
class="max-lg:min-h-11"
|
|
175
181
|
:label="t('cart.item.cancel')"
|
|
176
182
|
@click="open = false"
|
|
177
183
|
/>
|
|
178
184
|
<UButton
|
|
179
185
|
color="primary"
|
|
180
186
|
tabindex="0"
|
|
187
|
+
class="max-lg:min-h-11"
|
|
181
188
|
:disabled="!valid"
|
|
182
189
|
:loading="saving"
|
|
183
190
|
:label="t('governance.save')"
|
|
@@ -113,6 +113,7 @@ async function save(): Promise<void> {
|
|
|
113
113
|
<UModal
|
|
114
114
|
v-model:open="open"
|
|
115
115
|
:title="workflow ? t('governance.workflows.editTitle') : t('governance.workflows.addTitle')"
|
|
116
|
+
:close="{ class: 'max-lg:size-11 max-lg:justify-center' }"
|
|
116
117
|
>
|
|
117
118
|
<template #body>
|
|
118
119
|
<div class="space-y-4">
|
|
@@ -123,6 +124,7 @@ async function save(): Promise<void> {
|
|
|
123
124
|
<UInput
|
|
124
125
|
v-model="name"
|
|
125
126
|
class="w-full"
|
|
127
|
+
:ui="{ base: 'max-lg:min-h-11' }"
|
|
126
128
|
:placeholder="t('governance.workflows.namePlaceholder')"
|
|
127
129
|
/>
|
|
128
130
|
</UFormField>
|
|
@@ -146,6 +148,7 @@ async function save(): Promise<void> {
|
|
|
146
148
|
variant="ghost"
|
|
147
149
|
size="xs"
|
|
148
150
|
tabindex="0"
|
|
151
|
+
class="max-lg:size-11 max-lg:justify-center"
|
|
149
152
|
:aria-label="t('governance.workflows.removeStep')"
|
|
150
153
|
@click="removeStep(index)"
|
|
151
154
|
/>
|
|
@@ -155,6 +158,7 @@ async function save(): Promise<void> {
|
|
|
155
158
|
:items="personaItems"
|
|
156
159
|
multiple
|
|
157
160
|
class="w-full"
|
|
161
|
+
:ui="{ base: 'max-lg:min-h-11' }"
|
|
158
162
|
:placeholder="t('governance.workflows.usersPlaceholder')"
|
|
159
163
|
/>
|
|
160
164
|
</div>
|
|
@@ -163,6 +167,7 @@ async function save(): Promise<void> {
|
|
|
163
167
|
variant="outline"
|
|
164
168
|
size="xs"
|
|
165
169
|
tabindex="0"
|
|
170
|
+
class="max-lg:min-h-11"
|
|
166
171
|
:icon="icon('plus')"
|
|
167
172
|
:label="t('governance.workflows.addStep')"
|
|
168
173
|
@click="addStep"
|
|
@@ -175,12 +180,14 @@ async function save(): Promise<void> {
|
|
|
175
180
|
color="neutral"
|
|
176
181
|
variant="ghost"
|
|
177
182
|
tabindex="0"
|
|
183
|
+
class="max-lg:min-h-11"
|
|
178
184
|
:label="t('cart.item.cancel')"
|
|
179
185
|
@click="open = false"
|
|
180
186
|
/>
|
|
181
187
|
<UButton
|
|
182
188
|
color="primary"
|
|
183
189
|
tabindex="0"
|
|
190
|
+
class="max-lg:min-h-11"
|
|
184
191
|
:disabled="!valid"
|
|
185
192
|
:loading="saving"
|
|
186
193
|
:label="t('governance.save')"
|
|
@@ -236,6 +236,7 @@ async function addToCart(): Promise<void> {
|
|
|
236
236
|
variant="outline"
|
|
237
237
|
size="sm"
|
|
238
238
|
tabindex="0"
|
|
239
|
+
class="max-lg:min-h-11"
|
|
239
240
|
:icon="icon('edit')"
|
|
240
241
|
:label="t('governance.edit')"
|
|
241
242
|
@click="openEdit"
|
|
@@ -245,6 +246,7 @@ async function addToCart(): Promise<void> {
|
|
|
245
246
|
variant="soft"
|
|
246
247
|
size="sm"
|
|
247
248
|
tabindex="0"
|
|
249
|
+
class="max-lg:min-h-11"
|
|
248
250
|
:icon="icon('delete')"
|
|
249
251
|
:label="t('orderLists.delete')"
|
|
250
252
|
@click="deleteList"
|
|
@@ -271,7 +273,7 @@ async function addToCart(): Promise<void> {
|
|
|
271
273
|
<li
|
|
272
274
|
v-for="(position, index) in list.positions"
|
|
273
275
|
:key="`${list.id}-${index}`"
|
|
274
|
-
class="flex items-center gap-3 py-3"
|
|
276
|
+
class="flex items-center gap-3 py-3 max-md:flex-wrap"
|
|
275
277
|
:class="position.available === false ? 'opacity-60' : ''"
|
|
276
278
|
>
|
|
277
279
|
<span
|
|
@@ -283,8 +285,8 @@ async function addToCart(): Promise<void> {
|
|
|
283
285
|
:alt="position.name"
|
|
284
286
|
/>
|
|
285
287
|
</span>
|
|
286
|
-
<div class="min-w-0 flex-1">
|
|
287
|
-
<p class="text-sm font-medium text-highlighted truncate">
|
|
288
|
+
<div class="min-w-0 flex-1 max-md:basis-0">
|
|
289
|
+
<p class="text-sm font-medium text-highlighted md:truncate">
|
|
288
290
|
{{ position.name }}
|
|
289
291
|
</p>
|
|
290
292
|
<!-- A part the shop no longer carries. Said on the list rather
|
|
@@ -308,7 +310,7 @@ async function addToCart(): Promise<void> {
|
|
|
308
310
|
</div>
|
|
309
311
|
<div
|
|
310
312
|
v-if="mayEditPositions"
|
|
311
|
-
class="flex items-center gap-1 shrink-0"
|
|
313
|
+
class="flex items-center gap-1 shrink-0 max-lg:gap-0 max-md:basis-full max-md:justify-end"
|
|
312
314
|
>
|
|
313
315
|
<UButton
|
|
314
316
|
:icon="icon('minus')"
|
|
@@ -316,6 +318,7 @@ async function addToCart(): Promise<void> {
|
|
|
316
318
|
variant="ghost"
|
|
317
319
|
size="xs"
|
|
318
320
|
tabindex="0"
|
|
321
|
+
class="max-lg:size-11 max-lg:justify-center"
|
|
319
322
|
:disabled="position.quantity <= 1"
|
|
320
323
|
:aria-label="t('cart.item.ariaDecreaseQuantity', { name: position.name })"
|
|
321
324
|
@click="changeQuantity(index, -1)"
|
|
@@ -327,6 +330,7 @@ async function addToCart(): Promise<void> {
|
|
|
327
330
|
variant="ghost"
|
|
328
331
|
size="xs"
|
|
329
332
|
tabindex="0"
|
|
333
|
+
class="max-lg:size-11 max-lg:justify-center"
|
|
330
334
|
:aria-label="t('cart.item.ariaIncreaseQuantity', { name: position.name })"
|
|
331
335
|
@click="changeQuantity(index, 1)"
|
|
332
336
|
/>
|
|
@@ -336,6 +340,7 @@ async function addToCart(): Promise<void> {
|
|
|
336
340
|
variant="ghost"
|
|
337
341
|
size="xs"
|
|
338
342
|
tabindex="0"
|
|
343
|
+
class="max-lg:size-11 max-lg:justify-center"
|
|
339
344
|
:aria-label="t('cart.item.remove')"
|
|
340
345
|
@click="removePosition(index)"
|
|
341
346
|
/>
|
|
@@ -352,6 +357,7 @@ async function addToCart(): Promise<void> {
|
|
|
352
357
|
v-if="list.kind === 'shopping' && list.positions.length"
|
|
353
358
|
color="primary"
|
|
354
359
|
tabindex="0"
|
|
360
|
+
class="max-lg:min-h-11"
|
|
355
361
|
:icon="icon('cart')"
|
|
356
362
|
:label="t('cart.requisition.load')"
|
|
357
363
|
@click="addToCart"
|
|
@@ -362,6 +368,7 @@ async function addToCart(): Promise<void> {
|
|
|
362
368
|
<UModal
|
|
363
369
|
v-model:open="editOpen"
|
|
364
370
|
:title="t('orderLists.editTitle')"
|
|
371
|
+
:close="{ class: 'max-lg:size-11 max-lg:justify-center' }"
|
|
365
372
|
>
|
|
366
373
|
<template #body>
|
|
367
374
|
<div class="space-y-4">
|
|
@@ -372,6 +379,7 @@ async function addToCart(): Promise<void> {
|
|
|
372
379
|
<UInput
|
|
373
380
|
v-model="formName"
|
|
374
381
|
class="w-full"
|
|
382
|
+
:ui="{ base: 'max-lg:min-h-11' }"
|
|
375
383
|
/>
|
|
376
384
|
</UFormField>
|
|
377
385
|
<UCheckbox
|
|
@@ -386,12 +394,14 @@ async function addToCart(): Promise<void> {
|
|
|
386
394
|
color="neutral"
|
|
387
395
|
variant="ghost"
|
|
388
396
|
tabindex="0"
|
|
397
|
+
class="max-lg:min-h-11"
|
|
389
398
|
:label="t('cart.item.cancel')"
|
|
390
399
|
@click="editOpen = false"
|
|
391
400
|
/>
|
|
392
401
|
<UButton
|
|
393
402
|
color="primary"
|
|
394
403
|
tabindex="0"
|
|
404
|
+
class="max-lg:min-h-11"
|
|
395
405
|
:disabled="!formName.trim()"
|
|
396
406
|
:loading="saving"
|
|
397
407
|
:label="t('governance.save')"
|