@nuxt-customer-portal/invoices 0.3.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/CHANGELOG.md +16 -0
- package/LICENSE +21 -0
- package/README.md +4 -0
- package/app/assets/invoices.css +332 -0
- package/app/components/InvoicesAdminEmptyState.vue +28 -0
- package/app/components/InvoicesAdminInvoices.vue +950 -0
- package/app/components/InvoicesAdminListToolbar.vue +19 -0
- package/app/components/InvoicesAdminPaginatedList.vue +95 -0
- package/app/components/InvoicesClientAccessPanel.vue +63 -0
- package/app/components/InvoicesClientSettingsPanel.vue +150 -0
- package/app/components/InvoicesDashboardCard.vue +29 -0
- package/app/components/InvoicesDashboardReceivedInvoices.vue +1 -0
- package/app/components/InvoicesDashboardSalesInvoices.vue +1 -0
- package/app/components/InvoicesInvoiceDetail.vue +1109 -0
- package/app/components/InvoicesInvoiceEmailModal.vue +223 -0
- package/app/components/InvoicesPageShell.vue +7 -0
- package/app/components/InvoicesSenderDetailsForm.vue +229 -0
- package/app/composables/useInvoiceSources.ts +9 -0
- package/app/composables/useInvoices.ts +68 -0
- package/app/composables/useInvoicesAdminList.ts +113 -0
- package/app/pages/admin/invoices/[id].vue +36 -0
- package/app/pages/admin/invoices/index.vue +61 -0
- package/app/pages/admin/invoices/new.vue +18 -0
- package/app/pages/admin/invoices/settings.vue +86 -0
- package/app/pages/invoices/[id].vue +37 -0
- package/app/pages/invoices/index.vue +131 -0
- package/app/pages/invoices/viewers.vue +115 -0
- package/app/plugins/invoices-feature.ts +60 -0
- package/i18n/locales/en.json +306 -0
- package/i18n/locales/nl.json +306 -0
- package/migrations/0000_baseline.sql +235 -0
- package/migrations/meta/0000_snapshot.json +1318 -0
- package/migrations/meta/_journal.json +13 -0
- package/nuxt.config.ts +15 -0
- package/package.json +60 -0
- package/portal.manifest.mjs +9 -0
- package/server/api/invoices/admin/bootstrap.get.ts +17 -0
- package/server/api/invoices/admin/clients/[clientId]/access.get.ts +11 -0
- package/server/api/invoices/admin/clients/[clientId]/contacts/[id].delete.ts +8 -0
- package/server/api/invoices/admin/clients/[clientId]/contacts/[id].patch.ts +13 -0
- package/server/api/invoices/admin/clients/[clientId]/contacts/index.get.ts +8 -0
- package/server/api/invoices/admin/clients/[clientId]/contacts/index.post.ts +12 -0
- package/server/api/invoices/admin/email-domain.get.ts +17 -0
- package/server/api/invoices/admin/invoices/[id]/attachments/[attachmentId].delete.ts +23 -0
- package/server/api/invoices/admin/invoices/[id]/attachments/[attachmentId].get.ts +30 -0
- package/server/api/invoices/admin/invoices/[id]/attachments.post.ts +27 -0
- package/server/api/invoices/admin/invoices/[id]/email-preview.get.ts +22 -0
- package/server/api/invoices/admin/invoices/[id]/email-status.post.ts +18 -0
- package/server/api/invoices/admin/invoices/[id]/email.post.ts +24 -0
- package/server/api/invoices/admin/invoices/[id]/index.get.ts +17 -0
- package/server/api/invoices/admin/invoices/[id]/issue.post.ts +24 -0
- package/server/api/invoices/admin/invoices/[id]/payments.post.ts +24 -0
- package/server/api/invoices/admin/invoices/[id]/pdf.get.ts +29 -0
- package/server/api/invoices/admin/invoices/[id]/reminder-preview.get.ts +24 -0
- package/server/api/invoices/admin/invoices/[id]/reminder.post.ts +25 -0
- package/server/api/invoices/admin/invoices/[id].patch.ts +24 -0
- package/server/api/invoices/admin/invoices/index.get.ts +20 -0
- package/server/api/invoices/admin/invoices/index.post.ts +19 -0
- package/server/api/invoices/admin/invoices/next-number.get.ts +16 -0
- package/server/api/invoices/admin/settings.put.ts +9 -0
- package/server/api/invoices/capabilities.get.ts +25 -0
- package/server/api/invoices/client/[accessId]/viewers.get.ts +10 -0
- package/server/api/invoices/client/[accessId]/viewers.put.ts +17 -0
- package/server/api/invoices/client/invoices/[id]/attachments/[attachmentId].get.ts +20 -0
- package/server/api/invoices/client/invoices/[id]/index.get.ts +12 -0
- package/server/api/invoices/client/invoices/[id]/pdf.get.ts +23 -0
- package/server/api/invoices/client/invoices/index.get.ts +14 -0
- package/server/api/invoices/client/suppliers.get.ts +8 -0
- package/server/db/schema/invoices.ts +251 -0
- package/server/plugins/openapi-contracts.ts +55 -0
- package/server/utils/invoice-email-status.ts +64 -0
- package/server/utils/invoice-email.ts +240 -0
- package/server/utils/invoice-listing.ts +71 -0
- package/server/utils/invoice-pdf.ts +358 -0
- package/server/utils/invoice-repository.ts +821 -0
- package/server/utils/invoice-validation.ts +112 -0
- package/shared/email-delivery-status.ts +23 -0
- package/shared/feature.ts +148 -0
- package/shared/invoice-introduction.ts +21 -0
- package/shared/invoice-number.ts +24 -0
- package/shared/types/invoice.ts +251 -0
- package/tokens.css +25 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# @nuxt-customer-portal/invoices
|
|
2
|
+
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ca166fd: Extract invoices into an independent Nuxt layer and add an optional Timesheets source bridge.
|
|
8
|
+
|
|
9
|
+
This removes the legacy `/timesheets/invoices`, `/admin/timesheets/invoices`, and Timesheets invoice API routes without redirects or delegates. Use `/invoices`, `/admin/invoices`, `/api/invoices`, and `/api/invoice-timesheets` instead.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- @nuxt-customer-portal/clients@0.3.0
|
|
14
|
+
- @nuxt-customer-portal/core@0.3.0
|
|
15
|
+
- @nuxt-customer-portal/organizations@0.3.0
|
|
16
|
+
- @nuxt-customer-portal/ui@0.3.0
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Nuxt Customer Portal contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4 */
|
|
2
|
+
/* Hallmark · genre: modern-minimal · macrostructure: Workbench · theme: portal-native · enrichment: none · contrast: pass (40–41) · mobile: pass (34, 49–57) */
|
|
3
|
+
@import '../../tokens.css';
|
|
4
|
+
|
|
5
|
+
html,
|
|
6
|
+
body {
|
|
7
|
+
overflow-x: clip;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.invoice-workbench {
|
|
11
|
+
min-width: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.invoice-workbench button,
|
|
15
|
+
.invoice-workbench a,
|
|
16
|
+
.invoice-admin button,
|
|
17
|
+
.invoice-admin a {
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.invoice-grid {
|
|
22
|
+
display: grid;
|
|
23
|
+
grid-template-columns: minmax(16rem, 2.2fr) repeat(7, minmax(3.5rem, 0.65fr)) minmax(4rem, 0.65fr);
|
|
24
|
+
min-width: 47rem;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.invoice-grid__cell {
|
|
28
|
+
min-width: 0;
|
|
29
|
+
padding: var(--invoices-space-cell);
|
|
30
|
+
border-right: 1px solid var(--invoices-rule);
|
|
31
|
+
border-bottom: 1px solid var(--invoices-rule);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.invoice-grid__cell--weekend {
|
|
35
|
+
background: var(--invoices-color-weekend);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.invoice-grid__identity {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
gap: 0.125rem;
|
|
43
|
+
overflow-wrap: anywhere;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.invoice-grid__client,
|
|
47
|
+
.invoice-grid__project,
|
|
48
|
+
.invoice-grid__activity {
|
|
49
|
+
display: block;
|
|
50
|
+
min-width: 0;
|
|
51
|
+
white-space: normal;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.invoice-grid__client {
|
|
55
|
+
color: var(--ui-text-muted);
|
|
56
|
+
font-size: 0.75rem;
|
|
57
|
+
line-height: 1rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.invoice-grid__project {
|
|
61
|
+
color: var(--ui-text-highlighted);
|
|
62
|
+
font-weight: 600;
|
|
63
|
+
line-height: 1.25rem;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.invoice-grid__activity {
|
|
67
|
+
color: var(--ui-primary);
|
|
68
|
+
font-size: 0.75rem;
|
|
69
|
+
line-height: 1rem;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.invoice-timer {
|
|
73
|
+
border-inline-start: 3px solid var(--invoices-color-running);
|
|
74
|
+
background: var(--invoices-color-running-soft);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.invoice-row-action {
|
|
78
|
+
transition:
|
|
79
|
+
opacity var(--invoices-duration-fast) var(--invoices-ease-out),
|
|
80
|
+
transform var(--invoices-duration-fast) var(--invoices-ease-out);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.invoice-row-action:active {
|
|
84
|
+
transform: translateY(1px);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.invoice-row-action:focus-visible {
|
|
88
|
+
outline: 3px solid var(--ui-primary);
|
|
89
|
+
outline-offset: 2px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.invoice-grid .invoice-row-action:disabled {
|
|
93
|
+
cursor: not-allowed;
|
|
94
|
+
background: var(--ui-bg-accented);
|
|
95
|
+
color: var(--ui-text-dimmed);
|
|
96
|
+
opacity: 1;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.invoice-grid .invoice-row-action:disabled:hover {
|
|
100
|
+
background: var(--ui-bg-accented);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.invoice-mobile {
|
|
104
|
+
overflow: clip;
|
|
105
|
+
border: 1px solid var(--invoices-rule);
|
|
106
|
+
border-radius: var(--invoices-radius);
|
|
107
|
+
background: var(--ui-bg);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.invoice-mobile__loading,
|
|
111
|
+
.invoice-mobile__empty {
|
|
112
|
+
display: grid;
|
|
113
|
+
min-height: 9rem;
|
|
114
|
+
place-items: center;
|
|
115
|
+
padding: 1.5rem;
|
|
116
|
+
text-align: center;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.invoice-mobile__empty {
|
|
120
|
+
align-content: center;
|
|
121
|
+
gap: 0.5rem;
|
|
122
|
+
color: var(--ui-text-muted);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.invoice-mobile__empty span {
|
|
126
|
+
max-width: 18rem;
|
|
127
|
+
color: var(--ui-text-muted);
|
|
128
|
+
font-size: 0.8125rem;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.invoice-mobile__days {
|
|
132
|
+
display: grid;
|
|
133
|
+
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
134
|
+
border-block-end: 1px solid var(--invoices-rule);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.invoice-mobile__day {
|
|
138
|
+
display: grid;
|
|
139
|
+
min-width: 0;
|
|
140
|
+
min-height: 5.25rem;
|
|
141
|
+
place-items: center;
|
|
142
|
+
align-content: center;
|
|
143
|
+
gap: 0.125rem;
|
|
144
|
+
padding: 0.5rem 0.125rem;
|
|
145
|
+
border-inline-end: 1px solid var(--invoices-rule);
|
|
146
|
+
color: var(--ui-text-muted);
|
|
147
|
+
transition: background-color var(--invoices-duration-fast) var(--invoices-ease-out);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.invoice-mobile__day:last-child {
|
|
151
|
+
border-inline-end: 0;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.invoice-mobile__day span,
|
|
155
|
+
.invoice-mobile__day small {
|
|
156
|
+
overflow: hidden;
|
|
157
|
+
max-width: 100%;
|
|
158
|
+
font-size: 0.625rem;
|
|
159
|
+
line-height: 1rem;
|
|
160
|
+
text-overflow: ellipsis;
|
|
161
|
+
white-space: nowrap;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.invoice-mobile__day strong {
|
|
165
|
+
color: var(--ui-text-highlighted);
|
|
166
|
+
font-size: 0.875rem;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.invoice-mobile__day--weekend {
|
|
170
|
+
background: var(--invoices-color-weekend);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.invoice-mobile__day--active {
|
|
174
|
+
background: var(--ui-primary);
|
|
175
|
+
color: var(--ui-bg);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.invoice-mobile__day--active strong {
|
|
179
|
+
color: var(--ui-bg);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.invoice-mobile__day:focus-visible,
|
|
183
|
+
.invoice-mobile__entry:focus-visible {
|
|
184
|
+
position: relative;
|
|
185
|
+
z-index: 1;
|
|
186
|
+
outline: 3px solid var(--ui-primary);
|
|
187
|
+
outline-offset: -3px;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.invoice-mobile__summary {
|
|
191
|
+
display: flex;
|
|
192
|
+
min-width: 0;
|
|
193
|
+
align-items: center;
|
|
194
|
+
justify-content: space-between;
|
|
195
|
+
gap: 1rem;
|
|
196
|
+
padding: 1rem;
|
|
197
|
+
border-block-end: 1px solid var(--invoices-rule);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.invoice-mobile__date,
|
|
201
|
+
.invoice-mobile__total {
|
|
202
|
+
color: var(--ui-text-highlighted);
|
|
203
|
+
font-weight: 650;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.invoice-mobile__day-total {
|
|
207
|
+
display: grid;
|
|
208
|
+
justify-items: end;
|
|
209
|
+
gap: 0.125rem;
|
|
210
|
+
text-align: end;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.invoice-mobile__day-total > span {
|
|
214
|
+
color: var(--ui-text-muted);
|
|
215
|
+
font-size: 0.6875rem;
|
|
216
|
+
font-weight: 500;
|
|
217
|
+
line-height: 1rem;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.invoice-mobile__total {
|
|
221
|
+
font-size: 1.25rem;
|
|
222
|
+
line-height: 1.5rem;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.invoice-mobile__total,
|
|
226
|
+
.invoice-mobile__duration {
|
|
227
|
+
font-variant-numeric: tabular-nums;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.invoice-mobile__entries {
|
|
231
|
+
display: grid;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.invoice-mobile__entry {
|
|
235
|
+
display: grid;
|
|
236
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
237
|
+
min-width: 0;
|
|
238
|
+
min-height: 4.75rem;
|
|
239
|
+
align-items: center;
|
|
240
|
+
gap: 0.75rem;
|
|
241
|
+
padding: 0.875rem 1rem;
|
|
242
|
+
border-block-end: 1px solid var(--invoices-rule);
|
|
243
|
+
cursor: pointer;
|
|
244
|
+
text-align: start;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.invoice-mobile__entry-copy {
|
|
248
|
+
display: grid;
|
|
249
|
+
min-width: 0;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.invoice-mobile__entry-copy small,
|
|
253
|
+
.invoice-mobile__entry-copy strong,
|
|
254
|
+
.invoice-mobile__entry-copy span {
|
|
255
|
+
overflow: hidden;
|
|
256
|
+
text-overflow: ellipsis;
|
|
257
|
+
white-space: nowrap;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.invoice-mobile__entry-copy small {
|
|
261
|
+
color: var(--ui-text-muted);
|
|
262
|
+
font-size: 0.6875rem;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.invoice-mobile__entry-copy strong {
|
|
266
|
+
color: var(--ui-text-highlighted);
|
|
267
|
+
font-size: 0.875rem;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.invoice-mobile__entry-copy span {
|
|
271
|
+
color: var(--ui-primary);
|
|
272
|
+
font-size: 0.75rem;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.invoice-mobile__entry-copy .invoice-mobile__entry-note {
|
|
276
|
+
margin-block-start: 0.125rem;
|
|
277
|
+
color: var(--ui-text-muted);
|
|
278
|
+
font-size: 0.75rem;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.invoice-mobile__entry-meta {
|
|
282
|
+
display: flex;
|
|
283
|
+
align-items: center;
|
|
284
|
+
justify-content: flex-end;
|
|
285
|
+
gap: 0.5rem;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.invoice-mobile__edit-cue {
|
|
289
|
+
width: 0.875rem;
|
|
290
|
+
height: 0.875rem;
|
|
291
|
+
color: var(--ui-primary);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.invoice-mobile__duration {
|
|
295
|
+
color: var(--ui-text-highlighted);
|
|
296
|
+
font-size: 1rem;
|
|
297
|
+
font-weight: 650;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.invoice-mobile__add {
|
|
301
|
+
margin: 0.75rem;
|
|
302
|
+
width: calc(100% - 1.5rem);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.invoice-mobile button:disabled {
|
|
306
|
+
cursor: not-allowed;
|
|
307
|
+
opacity: 0.55;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
@media (hover: hover) and (pointer: fine) {
|
|
311
|
+
.invoice-mobile__day:hover,
|
|
312
|
+
.invoice-mobile__entry:hover {
|
|
313
|
+
background: var(--ui-bg-elevated);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.invoice-mobile__day--active:hover {
|
|
317
|
+
background: var(--ui-primary);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
@media (pointer: coarse) {
|
|
322
|
+
.invoice-mobile button {
|
|
323
|
+
min-height: 3rem;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
@media (prefers-reduced-motion: reduce) {
|
|
328
|
+
.invoice-row-action,
|
|
329
|
+
.invoice-mobile__day {
|
|
330
|
+
transition-duration: 0ms;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
withDefaults(
|
|
3
|
+
defineProps<{
|
|
4
|
+
icon: string
|
|
5
|
+
title: string
|
|
6
|
+
description: string
|
|
7
|
+
actionLabel: string
|
|
8
|
+
actionIcon?: string
|
|
9
|
+
actionDisabled?: boolean
|
|
10
|
+
}>(),
|
|
11
|
+
{
|
|
12
|
+
actionIcon: 'i-lucide-plus',
|
|
13
|
+
actionDisabled: false
|
|
14
|
+
}
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
defineEmits<{ action: [] }>()
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<template>
|
|
21
|
+
<UEmpty :icon="icon" :title="title" :description="description" variant="outline" size="lg" class="min-h-72">
|
|
22
|
+
<template #actions>
|
|
23
|
+
<UButton size="lg" :icon="actionIcon" :disabled="actionDisabled" @click="$emit('action')">
|
|
24
|
+
{{ actionLabel }}
|
|
25
|
+
</UButton>
|
|
26
|
+
</template>
|
|
27
|
+
</UEmpty>
|
|
28
|
+
</template>
|