@open-mercato/core 0.6.7-develop.6595.1.e93ecd3cfa → 0.6.7-develop.6600.1.49a5df927f
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/.turbo/turbo-build.log +1 -1
- package/dist/modules/attachments/backend/storage/attachments/page.meta.js +2 -2
- package/dist/modules/attachments/backend/storage/attachments/page.meta.js.map +1 -1
- package/dist/modules/auth/lib/backendChrome.js +1 -1
- package/dist/modules/auth/lib/backendChrome.js.map +1 -1
- package/dist/modules/customers/components/calendar/CalendarTabs.js +1 -1
- package/dist/modules/customers/components/calendar/CalendarTabs.js.map +2 -2
- package/dist/modules/sales/backend/sales/documents/[id]/page.js +2 -17
- package/dist/modules/sales/backend/sales/documents/[id]/page.js.map +2 -2
- package/dist/modules/sales/components/ContactEmailDisplay.js +24 -0
- package/dist/modules/sales/components/ContactEmailDisplay.js.map +7 -0
- package/package.json +7 -7
- package/src/modules/attachments/backend/storage/attachments/page.meta.ts +2 -2
- package/src/modules/attachments/i18n/de.json +1 -1
- package/src/modules/attachments/i18n/en.json +1 -1
- package/src/modules/attachments/i18n/es.json +1 -1
- package/src/modules/attachments/i18n/pl.json +1 -1
- package/src/modules/auth/lib/backendChrome.tsx +1 -1
- package/src/modules/customers/components/calendar/CalendarTabs.tsx +1 -1
- package/src/modules/customers/i18n/de.json +0 -1
- package/src/modules/customers/i18n/en.json +0 -1
- package/src/modules/customers/i18n/es.json +0 -1
- package/src/modules/customers/i18n/pl.json +0 -1
- package/src/modules/sales/backend/sales/documents/[id]/page.tsx +4 -15
- package/src/modules/sales/components/ContactEmailDisplay.tsx +27 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Mail } from "lucide-react";
|
|
4
|
+
function ContactEmailDisplay({ value, emptyLabel }) {
|
|
5
|
+
const emailValue = typeof value === "string" ? value.trim() : "";
|
|
6
|
+
if (!emailValue.length) {
|
|
7
|
+
return /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: emptyLabel });
|
|
8
|
+
}
|
|
9
|
+
return /* @__PURE__ */ jsxs(
|
|
10
|
+
"a",
|
|
11
|
+
{
|
|
12
|
+
className: "inline-flex max-w-full items-center gap-2 text-sm text-primary hover:text-primary/80 hover:underline",
|
|
13
|
+
href: `mailto:${emailValue}`,
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ jsx(Mail, { className: "h-4 w-4 shrink-0", "aria-hidden": true }),
|
|
16
|
+
/* @__PURE__ */ jsx("span", { className: "min-w-0 truncate", title: emailValue, children: emailValue })
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
ContactEmailDisplay
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=ContactEmailDisplay.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/modules/sales/components/ContactEmailDisplay.tsx"],
|
|
4
|
+
"sourcesContent": ["\"use client\"\n\nimport * as React from 'react'\nimport { Mail } from 'lucide-react'\n\ntype ContactEmailDisplayProps = {\n value: string | null | undefined\n emptyLabel: string\n}\n\nexport function ContactEmailDisplay({ value, emptyLabel }: ContactEmailDisplayProps) {\n const emailValue = typeof value === 'string' ? value.trim() : ''\n if (!emailValue.length) {\n return <span className=\"text-sm text-muted-foreground\">{emptyLabel}</span>\n }\n return (\n <a\n className=\"inline-flex max-w-full items-center gap-2 text-sm text-primary hover:text-primary/80 hover:underline\"\n href={`mailto:${emailValue}`}\n >\n <Mail className=\"h-4 w-4 shrink-0\" aria-hidden />\n <span className=\"min-w-0 truncate\" title={emailValue}>\n {emailValue}\n </span>\n </a>\n )\n}\n"],
|
|
5
|
+
"mappings": ";AAaW,cAGP,YAHO;AAVX,SAAS,YAAY;AAOd,SAAS,oBAAoB,EAAE,OAAO,WAAW,GAA6B;AACnF,QAAM,aAAa,OAAO,UAAU,WAAW,MAAM,KAAK,IAAI;AAC9D,MAAI,CAAC,WAAW,QAAQ;AACtB,WAAO,oBAAC,UAAK,WAAU,iCAAiC,sBAAW;AAAA,EACrE;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,MAAM,UAAU,UAAU;AAAA,MAE1B;AAAA,4BAAC,QAAK,WAAU,oBAAmB,eAAW,MAAC;AAAA,QAC/C,oBAAC,UAAK,WAAU,oBAAmB,OAAO,YACvC,sBACH;AAAA;AAAA;AAAA,EACF;AAEJ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-mercato/core",
|
|
3
|
-
"version": "0.6.7-develop.
|
|
3
|
+
"version": "0.6.7-develop.6600.1.49a5df927f",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -254,16 +254,16 @@
|
|
|
254
254
|
"zod": "^4.4.3"
|
|
255
255
|
},
|
|
256
256
|
"peerDependencies": {
|
|
257
|
-
"@open-mercato/ai-assistant": "0.6.7-develop.
|
|
258
|
-
"@open-mercato/shared": "0.6.7-develop.
|
|
259
|
-
"@open-mercato/ui": "0.6.7-develop.
|
|
257
|
+
"@open-mercato/ai-assistant": "0.6.7-develop.6600.1.49a5df927f",
|
|
258
|
+
"@open-mercato/shared": "0.6.7-develop.6600.1.49a5df927f",
|
|
259
|
+
"@open-mercato/ui": "0.6.7-develop.6600.1.49a5df927f",
|
|
260
260
|
"react": "^19.0.0",
|
|
261
261
|
"react-dom": "^19.0.0"
|
|
262
262
|
},
|
|
263
263
|
"devDependencies": {
|
|
264
|
-
"@open-mercato/ai-assistant": "0.6.7-develop.
|
|
265
|
-
"@open-mercato/shared": "0.6.7-develop.
|
|
266
|
-
"@open-mercato/ui": "0.6.7-develop.
|
|
264
|
+
"@open-mercato/ai-assistant": "0.6.7-develop.6600.1.49a5df927f",
|
|
265
|
+
"@open-mercato/shared": "0.6.7-develop.6600.1.49a5df927f",
|
|
266
|
+
"@open-mercato/ui": "0.6.7-develop.6600.1.49a5df927f",
|
|
267
267
|
"@testing-library/dom": "^10.4.1",
|
|
268
268
|
"@testing-library/jest-dom": "^6.9.1",
|
|
269
269
|
"@testing-library/react": "^16.3.1",
|
|
@@ -3,8 +3,8 @@ export const metadata = {
|
|
|
3
3
|
requireFeatures: ['attachments.view'],
|
|
4
4
|
pageTitle: 'Attachments',
|
|
5
5
|
pageTitleKey: 'attachments.library.title',
|
|
6
|
-
pageGroup: '
|
|
7
|
-
pageGroupKey: '
|
|
6
|
+
pageGroup: 'Media',
|
|
7
|
+
pageGroupKey: 'attachments.nav.group',
|
|
8
8
|
pagePriority: 20,
|
|
9
9
|
pageOrder: 110,
|
|
10
10
|
icon: 'archive',
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"attachments.customers.storage.nav.group": "Speicher",
|
|
3
2
|
"attachments.errors.activeContentBlocked": "Das Hochladen aktiver Inhalte ist nicht erlaubt.",
|
|
4
3
|
"attachments.errors.dangerousExecutable": "Ausführbare Dateitypen sind als Anhänge nicht erlaubt.",
|
|
5
4
|
"attachments.errors.maxUploadSize": "Der Anhang überschreitet die maximal zulässige Upload-Größe.",
|
|
@@ -94,6 +93,7 @@
|
|
|
94
93
|
"attachments.library.upload.success": "Anhang hochgeladen.",
|
|
95
94
|
"attachments.library.upload.tagsPlaceholder": "Tags hinzufügen",
|
|
96
95
|
"attachments.library.upload.title": "Anhang hochladen",
|
|
96
|
+
"attachments.nav.group": "Medien",
|
|
97
97
|
"attachments.partitions.actions.add": "Partition hinzufügen",
|
|
98
98
|
"attachments.partitions.actions.cancel": "Abbrechen",
|
|
99
99
|
"attachments.partitions.actions.create": "Partition erstellen",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"attachments.customers.storage.nav.group": "Storage",
|
|
3
2
|
"attachments.errors.activeContentBlocked": "Active content uploads are not allowed.",
|
|
4
3
|
"attachments.errors.dangerousExecutable": "Executable file types are not allowed as attachments.",
|
|
5
4
|
"attachments.errors.maxUploadSize": "Attachment exceeds the maximum upload size.",
|
|
@@ -94,6 +93,7 @@
|
|
|
94
93
|
"attachments.library.upload.success": "Attachment uploaded.",
|
|
95
94
|
"attachments.library.upload.tagsPlaceholder": "Add tags",
|
|
96
95
|
"attachments.library.upload.title": "Upload attachment",
|
|
96
|
+
"attachments.nav.group": "Media",
|
|
97
97
|
"attachments.partitions.actions.add": "Add partition",
|
|
98
98
|
"attachments.partitions.actions.cancel": "Cancel",
|
|
99
99
|
"attachments.partitions.actions.create": "Create partition",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"attachments.customers.storage.nav.group": "Almacenamiento",
|
|
3
2
|
"attachments.errors.activeContentBlocked": "No se permite la carga de contenido activo.",
|
|
4
3
|
"attachments.errors.dangerousExecutable": "No se permiten archivos ejecutables como adjuntos.",
|
|
5
4
|
"attachments.errors.maxUploadSize": "El archivo adjunto supera el tamaño máximo de carga permitido.",
|
|
@@ -94,6 +93,7 @@
|
|
|
94
93
|
"attachments.library.upload.success": "Archivo adjunto subido.",
|
|
95
94
|
"attachments.library.upload.tagsPlaceholder": "Agregar etiquetas",
|
|
96
95
|
"attachments.library.upload.title": "Subir archivo adjunto",
|
|
96
|
+
"attachments.nav.group": "Medios",
|
|
97
97
|
"attachments.partitions.actions.add": "Agregar partición",
|
|
98
98
|
"attachments.partitions.actions.cancel": "Cancelar",
|
|
99
99
|
"attachments.partitions.actions.create": "Crear partición",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"attachments.customers.storage.nav.group": "Magazyn",
|
|
3
2
|
"attachments.errors.activeContentBlocked": "Przesyłanie treści aktywnych nie jest dozwolone.",
|
|
4
3
|
"attachments.errors.dangerousExecutable": "Pliki wykonywalne nie są dozwolone jako załączniki.",
|
|
5
4
|
"attachments.errors.maxUploadSize": "Załącznik przekracza maksymalny dopuszczalny rozmiar przesyłania.",
|
|
@@ -94,6 +93,7 @@
|
|
|
94
93
|
"attachments.library.upload.success": "Załącznik przesłany.",
|
|
95
94
|
"attachments.library.upload.tagsPlaceholder": "Dodaj tagi",
|
|
96
95
|
"attachments.library.upload.title": "Prześlij załącznik",
|
|
96
|
+
"attachments.nav.group": "Media",
|
|
97
97
|
"attachments.partitions.actions.add": "Dodaj partycję",
|
|
98
98
|
"attachments.partitions.actions.cancel": "Anuluj",
|
|
99
99
|
"attachments.partitions.actions.create": "Utwórz partycję",
|
|
@@ -156,7 +156,7 @@ function normalizeGroupWeights(groups: NavGroupWithWeight[]): NavGroupWithWeight
|
|
|
156
156
|
'staff.nav.group',
|
|
157
157
|
'entities.nav.group',
|
|
158
158
|
'directory.nav.group',
|
|
159
|
-
'
|
|
159
|
+
'attachments.nav.group',
|
|
160
160
|
]
|
|
161
161
|
const groupOrderIndex = new Map(defaultGroupOrder.map((id, index) => [id, index]))
|
|
162
162
|
groups.sort((a, b) => {
|
|
@@ -24,7 +24,7 @@ export function CalendarTabs({ tab, counts, view, onTabChange, onViewChange }: C
|
|
|
24
24
|
variant="underline"
|
|
25
25
|
>
|
|
26
26
|
<div className="flex flex-wrap items-stretch justify-between gap-x-3 gap-y-2">
|
|
27
|
-
<div className="min-w-0 max-w-full overflow-x-auto">
|
|
27
|
+
<div className="min-w-0 max-w-full overflow-x-auto scrollbar-hide [mask-image:linear-gradient(to_right,black_calc(100%-1.5rem),transparent)] sm:[mask-image:none]">
|
|
28
28
|
<TabsList className="shrink-0">
|
|
29
29
|
<TabsTrigger value="all" leading={<LayoutGrid className="size-4" />}>
|
|
30
30
|
{t('customers.calendar.tabs.all', 'All Scheduled')}
|
|
@@ -2607,7 +2607,6 @@
|
|
|
2607
2607
|
"customers.schedule.visibility": "Visibility",
|
|
2608
2608
|
"customers.schedule.visibility.public": "Public",
|
|
2609
2609
|
"customers.schedule.visibility.team": "Team only",
|
|
2610
|
-
"customers.storage.nav.group": "Speicher",
|
|
2611
2610
|
"customers.tags.manage.addCategory": "Neue Kategorie",
|
|
2612
2611
|
"customers.tags.manage.addCategoryPlaceholder": "Kategoriename...",
|
|
2613
2612
|
"customers.tags.manage.addCategoryRequired": "Geben Sie zuerst einen Kategorienamen ein.",
|
|
@@ -2607,7 +2607,6 @@
|
|
|
2607
2607
|
"customers.schedule.visibility": "Visibility",
|
|
2608
2608
|
"customers.schedule.visibility.public": "Public",
|
|
2609
2609
|
"customers.schedule.visibility.team": "Team only",
|
|
2610
|
-
"customers.storage.nav.group": "Storage",
|
|
2611
2610
|
"customers.tags.manage.addCategory": "New category",
|
|
2612
2611
|
"customers.tags.manage.addCategoryPlaceholder": "Category name...",
|
|
2613
2612
|
"customers.tags.manage.addCategoryRequired": "Enter a category name first.",
|
|
@@ -2607,7 +2607,6 @@
|
|
|
2607
2607
|
"customers.schedule.visibility": "Visibility",
|
|
2608
2608
|
"customers.schedule.visibility.public": "Public",
|
|
2609
2609
|
"customers.schedule.visibility.team": "Team only",
|
|
2610
|
-
"customers.storage.nav.group": "Almacenamiento",
|
|
2611
2610
|
"customers.tags.manage.addCategory": "Nueva categoría",
|
|
2612
2611
|
"customers.tags.manage.addCategoryPlaceholder": "Nombre de la categoría...",
|
|
2613
2612
|
"customers.tags.manage.addCategoryRequired": "Primero introduce un nombre de categoría.",
|
|
@@ -2607,7 +2607,6 @@
|
|
|
2607
2607
|
"customers.schedule.visibility": "Widoczność",
|
|
2608
2608
|
"customers.schedule.visibility.public": "Publiczny",
|
|
2609
2609
|
"customers.schedule.visibility.team": "Tylko zespół",
|
|
2610
|
-
"customers.storage.nav.group": "Magazyn",
|
|
2611
2610
|
"customers.tags.manage.addCategory": "Nowa kategoria",
|
|
2612
2611
|
"customers.tags.manage.addCategoryPlaceholder": "Nazwa kategorii...",
|
|
2613
2612
|
"customers.tags.manage.addCategoryRequired": "Najpierw wpisz nazwę kategorii.",
|
|
@@ -37,6 +37,7 @@ import { mapCrudServerErrorToFormErrors } from '@open-mercato/ui/backend/utils/s
|
|
|
37
37
|
import { useT } from '@open-mercato/shared/lib/i18n/context'
|
|
38
38
|
import { useConfirmDialog } from '@open-mercato/ui/backend/confirm-dialog'
|
|
39
39
|
import { cn } from '@open-mercato/shared/lib/utils'
|
|
40
|
+
import { ContactEmailDisplay } from '@open-mercato/core/modules/sales/components/ContactEmailDisplay'
|
|
40
41
|
import { DocumentCustomerCard } from '@open-mercato/core/modules/sales/components/DocumentCustomerCard'
|
|
41
42
|
import { SalesDocumentAddressesSection } from '@open-mercato/core/modules/sales/components/documents/AddressesSection'
|
|
42
43
|
import { SalesDocumentItemsSection } from '@open-mercato/core/modules/sales/components/documents/ItemsSection'
|
|
@@ -3976,21 +3977,9 @@ export default function SalesDocumentDetailPage({
|
|
|
3976
3977
|
]
|
|
3977
3978
|
|
|
3978
3979
|
const renderEmailDisplay = React.useCallback(
|
|
3979
|
-
({ value, emptyLabel }: { value: string | null | undefined; emptyLabel: string }) =>
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
return <span className="text-sm text-muted-foreground">{emptyLabel}</span>
|
|
3983
|
-
}
|
|
3984
|
-
return (
|
|
3985
|
-
<a
|
|
3986
|
-
className="inline-flex items-center gap-2 text-sm text-primary hover:text-primary/80 hover:underline"
|
|
3987
|
-
href={`mailto:${emailValue}`}
|
|
3988
|
-
>
|
|
3989
|
-
<Mail className="h-4 w-4" aria-hidden />
|
|
3990
|
-
<span className="truncate">{emailValue}</span>
|
|
3991
|
-
</a>
|
|
3992
|
-
)
|
|
3993
|
-
},
|
|
3980
|
+
({ value, emptyLabel }: { value: string | null | undefined; emptyLabel: string }) => (
|
|
3981
|
+
<ContactEmailDisplay value={value} emptyLabel={emptyLabel} />
|
|
3982
|
+
),
|
|
3994
3983
|
[]
|
|
3995
3984
|
)
|
|
3996
3985
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import * as React from 'react'
|
|
4
|
+
import { Mail } from 'lucide-react'
|
|
5
|
+
|
|
6
|
+
type ContactEmailDisplayProps = {
|
|
7
|
+
value: string | null | undefined
|
|
8
|
+
emptyLabel: string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function ContactEmailDisplay({ value, emptyLabel }: ContactEmailDisplayProps) {
|
|
12
|
+
const emailValue = typeof value === 'string' ? value.trim() : ''
|
|
13
|
+
if (!emailValue.length) {
|
|
14
|
+
return <span className="text-sm text-muted-foreground">{emptyLabel}</span>
|
|
15
|
+
}
|
|
16
|
+
return (
|
|
17
|
+
<a
|
|
18
|
+
className="inline-flex max-w-full items-center gap-2 text-sm text-primary hover:text-primary/80 hover:underline"
|
|
19
|
+
href={`mailto:${emailValue}`}
|
|
20
|
+
>
|
|
21
|
+
<Mail className="h-4 w-4 shrink-0" aria-hidden />
|
|
22
|
+
<span className="min-w-0 truncate" title={emailValue}>
|
|
23
|
+
{emailValue}
|
|
24
|
+
</span>
|
|
25
|
+
</a>
|
|
26
|
+
)
|
|
27
|
+
}
|