@mmlogic/components 0.4.2 → 0.5.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/dist/cjs/client-layout-RZ3Ix-4a.js +87 -0
- package/dist/cjs/{index-CAzwGt9u.js → index-DzRfoAPz.js} +36 -9
- package/dist/cjs/index.cjs.js +56 -81
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mosterdcomponents.cjs.js +3 -3
- package/dist/cjs/{mrd-boolean-field_24.cjs.entry.js → mrd-boolean-field_23.cjs.entry.js} +175 -287
- package/dist/collection/collection-manifest.json +1 -2
- package/dist/collection/components/documents/mrd-document-container/mrd-document-container.css +0 -17
- package/dist/collection/components/documents/mrd-document-container/mrd-document-container.js +20 -5
- package/dist/collection/components/documents/mrd-document-list/mrd-document-list.css +9 -43
- package/dist/collection/components/documents/mrd-document-list/mrd-document-list.js +36 -11
- package/dist/collection/components/documents/mrd-document-list/tree-view.js +1 -1
- package/dist/collection/components/documents/mrd-document-view/mrd-document-view.css +3 -44
- package/dist/collection/components/documents/mrd-document-view/mrd-document-view.js +37 -85
- package/dist/collection/components/fields/mrd-boolean-field/mrd-boolean-field.css +0 -10
- package/dist/collection/components/fields/mrd-currency-field/mrd-currency-field.css +0 -7
- package/dist/collection/components/fields/mrd-file-field/mrd-file-field.css +0 -11
- package/dist/collection/components/fields/mrd-hyperlink-field/mrd-hyperlink-field.css +0 -3
- package/dist/collection/components/fields/mrd-image-field/mrd-image-field.css +6 -20
- package/dist/collection/components/fields/mrd-list-field/mrd-list-field.css +0 -4
- package/dist/collection/components/fields/mrd-longtext-field/mrd-longtext-field.css +0 -1
- package/dist/collection/components/fields/mrd-relation-field/mrd-relation-field.css +9 -35
- package/dist/collection/components/fields/mrd-textarea-field/mrd-textarea-field.css +0 -9
- package/dist/collection/components/form/mrd-field/mrd-field.css +0 -13
- package/dist/collection/components/form/mrd-form/mrd-form.css +0 -19
- package/dist/collection/components/layout/mrd-layout-section/mrd-layout-section.css +3 -58
- package/dist/collection/components/layout/mrd-layout-section/mrd-layout-section.js +33 -67
- package/dist/collection/components/table/mrd-table/mrd-table.css +38 -185
- package/dist/collection/components/table/mrd-table/mrd-table.js +20 -6
- package/dist/collection/dev/app.js +80 -43
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/document-attachments.js +20 -0
- package/dist/collection/{components/documents/mrd-file-preview → utils}/file-preview-kind.js +4 -4
- package/dist/collection/utils/i18n.js +0 -32
- package/dist/collection/utils/query-params.js +0 -4
- package/dist/components/document-attachments.js +1 -0
- package/dist/components/field-helpers.js +1 -1
- package/dist/components/i18n.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/mrd-document-container2.js +1 -1
- package/dist/components/mrd-document-list2.js +1 -1
- package/dist/components/mrd-document-view2.js +1 -1
- package/dist/components/mrd-email-field2.js +1 -1
- package/dist/components/mrd-form.js +1 -1
- package/dist/components/mrd-hyperlink-field2.js +1 -1
- package/dist/components/mrd-image-field2.js +1 -1
- package/dist/components/mrd-layout-section.js +1 -1
- package/dist/components/mrd-number-field2.js +1 -1
- package/dist/components/mrd-relation-field2.js +1 -1
- package/dist/components/mrd-table2.js +1 -1
- package/dist/esm/client-layout-DCOAAH92.js +84 -0
- package/dist/esm/{index-DiSEJMA8.js → index-DiSe6vjv.js} +36 -9
- package/dist/esm/index.js +30 -80
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mosterdcomponents.js +4 -4
- package/dist/esm/{mrd-boolean-field_24.entry.js → mrd-boolean-field_23.entry.js} +85 -196
- package/dist/mosterdcomponents/index.esm.js +1 -1
- package/dist/mosterdcomponents/mosterdcomponents.css +7 -1
- package/dist/mosterdcomponents/mosterdcomponents.esm.js +1 -1
- package/dist/mosterdcomponents/p-DCOAAH92.js +1 -0
- package/dist/mosterdcomponents/p-DiSe6vjv.js +2 -0
- package/dist/mosterdcomponents/p-b56f9802.entry.js +1 -0
- package/dist/types/components/documents/mrd-document-container/mrd-document-container.d.ts +6 -2
- package/dist/types/components/documents/mrd-document-list/mrd-document-list.d.ts +13 -2
- package/dist/types/components/documents/mrd-document-list/tree-view.d.ts +1 -1
- package/dist/types/components/documents/mrd-document-view/mrd-document-view.d.ts +21 -27
- package/dist/types/components/layout/mrd-layout-section/mrd-layout-section.d.ts +14 -15
- package/dist/types/components/table/mrd-table/mrd-table.d.ts +8 -2
- package/dist/types/components.d.ts +54 -190
- package/dist/types/index.d.ts +3 -0
- package/dist/types/stencil-public-runtime.d.ts +1 -0
- package/dist/types/types/client-layout.d.ts +8 -0
- package/dist/types/utils/document-attachments.d.ts +8 -0
- package/dist/types/utils/file-preview-kind.d.ts +9 -0
- package/dist/types/utils/query-params.d.ts +14 -0
- package/package.json +10 -12
- package/dist/collection/components/documents/mrd-file-preview/mrd-file-preview.css +0 -59
- package/dist/collection/components/documents/mrd-file-preview/mrd-file-preview.js +0 -212
- package/dist/components/mrd-file-preview.d.ts +0 -11
- package/dist/components/mrd-file-preview.js +0 -1
- package/dist/components/mrd-file-preview2.js +0 -1
- package/dist/mosterdcomponents/cell-renderer-PbcEU4ph.js.map +0 -1
- package/dist/mosterdcomponents/client-layout-DCOAAH92.js.map +0 -1
- package/dist/mosterdcomponents/field-helpers-CASS3akr.js.map +0 -1
- package/dist/mosterdcomponents/file-upload-common-D1ndi6cN.js.map +0 -1
- package/dist/mosterdcomponents/format-BAfsQfy1.js.map +0 -1
- package/dist/mosterdcomponents/i18n-B1IIkRF9.js.map +0 -1
- package/dist/mosterdcomponents/index-AokUFVX0.js.map +0 -1
- package/dist/mosterdcomponents/index-CprJSlzK.js.map +0 -1
- package/dist/mosterdcomponents/index.esm.js.map +0 -1
- package/dist/mosterdcomponents/mosterdcomponents.esm.js.map +0 -1
- package/dist/mosterdcomponents/p-DiSEJMA8.js +0 -2
- package/dist/mosterdcomponents/p-aae8a9dc.entry.js +0 -1
- package/dist/mosterdcomponents/query-params-B1HfnMOl.js.map +0 -1
- package/dist/mosterdcomponents/quill-C9pgw_k-.js.map +0 -1
- package/dist/mosterdcomponents/validation-DbEViuiw.js.map +0 -1
- package/dist/types/components/documents/mrd-file-preview/file-preview-kind.d.ts +0 -9
- package/dist/types/components/documents/mrd-file-preview/mrd-file-preview.d.ts +0 -41
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100%;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.mrd-file-preview__frame {
|
|
8
|
-
display: block;
|
|
9
|
-
width: 100%;
|
|
10
|
-
height: 100%;
|
|
11
|
-
border: none;
|
|
12
|
-
}
|
|
13
|
-
.mrd-file-preview__image {
|
|
14
|
-
display: block;
|
|
15
|
-
max-width: 100%;
|
|
16
|
-
max-height: 100%;
|
|
17
|
-
margin: 0 auto;
|
|
18
|
-
object-fit: contain;
|
|
19
|
-
}
|
|
20
|
-
.mrd-file-preview__error, .mrd-file-preview__unsupported {
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
align-items: center;
|
|
24
|
-
justify-content: center;
|
|
25
|
-
gap: var(--mrd-space-3);
|
|
26
|
-
width: 100%;
|
|
27
|
-
height: 100%;
|
|
28
|
-
min-height: 8rem;
|
|
29
|
-
padding: var(--mrd-space-6);
|
|
30
|
-
color: var(--mrd-color-neutral-500);
|
|
31
|
-
font-size: var(--mrd-font-size-sm);
|
|
32
|
-
text-align: center;
|
|
33
|
-
}
|
|
34
|
-
.mrd-file-preview__error-text {
|
|
35
|
-
color: var(--mrd-color-danger);
|
|
36
|
-
}
|
|
37
|
-
.mrd-file-preview__retry, .mrd-file-preview__download {
|
|
38
|
-
display: inline-flex;
|
|
39
|
-
align-items: center;
|
|
40
|
-
gap: var(--mrd-space-2);
|
|
41
|
-
height: 2rem;
|
|
42
|
-
padding: 0 var(--mrd-space-3);
|
|
43
|
-
border: var(--mrd-border-width) solid var(--mrd-color-neutral-300);
|
|
44
|
-
border-radius: var(--mrd-border-radius);
|
|
45
|
-
background: var(--mrd-color-white);
|
|
46
|
-
color: var(--mrd-color-neutral-700);
|
|
47
|
-
font-family: var(--mrd-font-family);
|
|
48
|
-
font-size: var(--mrd-font-size-sm);
|
|
49
|
-
font-weight: var(--mrd-font-weight-medium);
|
|
50
|
-
cursor: pointer;
|
|
51
|
-
}
|
|
52
|
-
.mrd-file-preview__retry:hover, .mrd-file-preview__download:hover {
|
|
53
|
-
background: var(--mrd-color-neutral-100);
|
|
54
|
-
color: var(--mrd-color-neutral-900);
|
|
55
|
-
}
|
|
56
|
-
.mrd-file-preview__download svg {
|
|
57
|
-
width: 0.9375rem;
|
|
58
|
-
height: 0.9375rem;
|
|
59
|
-
}
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
import { t } from "../../../utils/i18n";
|
|
3
|
-
import { detectPreviewKind } from "./file-preview-kind";
|
|
4
|
-
/**
|
|
5
|
-
* Renders a signed URL inline as a PDF (native browser viewer, via `<iframe>`)
|
|
6
|
-
* or an image (`<img>`), picked from `mimeType`/`fileName`. Purely
|
|
7
|
-
* presentational: the signed URL is used directly as element `src` — a
|
|
8
|
-
* navigation, not a fetch/XHR, so no CORS handling is needed here. Fetching
|
|
9
|
-
* the signed URL itself is the host's responsibility, same as `mrdLoadImage` /
|
|
10
|
-
* `setImagePreview` on mrd-layout-section.
|
|
11
|
-
*/
|
|
12
|
-
export class MrdFilePreview {
|
|
13
|
-
constructor() {
|
|
14
|
-
/** Signed URL to render. */
|
|
15
|
-
this.src = '';
|
|
16
|
-
/** Declared mime type (e.g. 'application/pdf', 'image/png'), when known.
|
|
17
|
-
* Authoritative over `fileName` when present. */
|
|
18
|
-
this.mimeType = '';
|
|
19
|
-
/** Original file name — used for extension-based detection when `mimeType`
|
|
20
|
-
* is absent, and as alt/title text. */
|
|
21
|
-
this.fileName = '';
|
|
22
|
-
/** The file's own reference href (not the signed preview URL in `src`).
|
|
23
|
-
* When set, an unsupported type falls back to the same download button
|
|
24
|
-
* used elsewhere in the library, so hosts need no new wiring. */
|
|
25
|
-
this.href = '';
|
|
26
|
-
this.locale = navigator.language;
|
|
27
|
-
this.imageFailed = false;
|
|
28
|
-
this.onImageError = () => {
|
|
29
|
-
this.imageFailed = true;
|
|
30
|
-
};
|
|
31
|
-
this.retry = () => {
|
|
32
|
-
this.imageFailed = false;
|
|
33
|
-
this.mrdPreviewReload.emit();
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
srcChanged() {
|
|
37
|
-
this.imageFailed = false;
|
|
38
|
-
}
|
|
39
|
-
render() {
|
|
40
|
-
const kind = detectPreviewKind(this.mimeType, this.fileName);
|
|
41
|
-
if (kind === 'pdf') {
|
|
42
|
-
return (h(Host, null, h("iframe", { class: "mrd-file-preview__frame", src: this.src, title: this.fileName || 'preview' })));
|
|
43
|
-
}
|
|
44
|
-
if (kind === 'image') {
|
|
45
|
-
if (this.imageFailed) {
|
|
46
|
-
return (h(Host, null, h("div", { class: "mrd-file-preview__error" }, h("span", { class: "mrd-file-preview__error-text" }, t('preview_error', this.locale)), h("button", { type: "button", class: "mrd-file-preview__retry", onClick: this.retry }, t('retry', this.locale)))));
|
|
47
|
-
}
|
|
48
|
-
return (h(Host, null, h("img", { class: "mrd-file-preview__image", src: this.src, alt: this.fileName || '', onError: this.onImageError })));
|
|
49
|
-
}
|
|
50
|
-
return (h(Host, null, h("div", { class: "mrd-file-preview__unsupported" }, h("span", null, t('preview_unsupported', this.locale)), this.href && (h("button", { type: "button", class: "mrd-file-preview__download", onClick: () => this.mrdDownload.emit({ href: this.href, fileName: this.fileName }) }, h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("path", { d: "M12 3v12m0 0l-4-4m4 4l4-4M4 21h16" })), t('download', this.locale))))));
|
|
51
|
-
}
|
|
52
|
-
static get is() { return "mrd-file-preview"; }
|
|
53
|
-
static get encapsulation() { return "scoped"; }
|
|
54
|
-
static get originalStyleUrls() {
|
|
55
|
-
return {
|
|
56
|
-
"$": ["mrd-file-preview.scss"]
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
static get styleUrls() {
|
|
60
|
-
return {
|
|
61
|
-
"$": ["mrd-file-preview.css"]
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
static get properties() {
|
|
65
|
-
return {
|
|
66
|
-
"src": {
|
|
67
|
-
"type": "string",
|
|
68
|
-
"mutable": false,
|
|
69
|
-
"complexType": {
|
|
70
|
-
"original": "string",
|
|
71
|
-
"resolved": "string",
|
|
72
|
-
"references": {}
|
|
73
|
-
},
|
|
74
|
-
"required": false,
|
|
75
|
-
"optional": false,
|
|
76
|
-
"docs": {
|
|
77
|
-
"tags": [],
|
|
78
|
-
"text": "Signed URL to render."
|
|
79
|
-
},
|
|
80
|
-
"getter": false,
|
|
81
|
-
"setter": false,
|
|
82
|
-
"reflect": false,
|
|
83
|
-
"attribute": "src",
|
|
84
|
-
"defaultValue": "''"
|
|
85
|
-
},
|
|
86
|
-
"mimeType": {
|
|
87
|
-
"type": "string",
|
|
88
|
-
"mutable": false,
|
|
89
|
-
"complexType": {
|
|
90
|
-
"original": "string",
|
|
91
|
-
"resolved": "string",
|
|
92
|
-
"references": {}
|
|
93
|
-
},
|
|
94
|
-
"required": false,
|
|
95
|
-
"optional": false,
|
|
96
|
-
"docs": {
|
|
97
|
-
"tags": [],
|
|
98
|
-
"text": "Declared mime type (e.g. 'application/pdf', 'image/png'), when known.\nAuthoritative over `fileName` when present."
|
|
99
|
-
},
|
|
100
|
-
"getter": false,
|
|
101
|
-
"setter": false,
|
|
102
|
-
"reflect": false,
|
|
103
|
-
"attribute": "mime-type",
|
|
104
|
-
"defaultValue": "''"
|
|
105
|
-
},
|
|
106
|
-
"fileName": {
|
|
107
|
-
"type": "string",
|
|
108
|
-
"mutable": false,
|
|
109
|
-
"complexType": {
|
|
110
|
-
"original": "string",
|
|
111
|
-
"resolved": "string",
|
|
112
|
-
"references": {}
|
|
113
|
-
},
|
|
114
|
-
"required": false,
|
|
115
|
-
"optional": false,
|
|
116
|
-
"docs": {
|
|
117
|
-
"tags": [],
|
|
118
|
-
"text": "Original file name \u2014 used for extension-based detection when `mimeType`\nis absent, and as alt/title text."
|
|
119
|
-
},
|
|
120
|
-
"getter": false,
|
|
121
|
-
"setter": false,
|
|
122
|
-
"reflect": false,
|
|
123
|
-
"attribute": "file-name",
|
|
124
|
-
"defaultValue": "''"
|
|
125
|
-
},
|
|
126
|
-
"href": {
|
|
127
|
-
"type": "string",
|
|
128
|
-
"mutable": false,
|
|
129
|
-
"complexType": {
|
|
130
|
-
"original": "string",
|
|
131
|
-
"resolved": "string",
|
|
132
|
-
"references": {}
|
|
133
|
-
},
|
|
134
|
-
"required": false,
|
|
135
|
-
"optional": false,
|
|
136
|
-
"docs": {
|
|
137
|
-
"tags": [],
|
|
138
|
-
"text": "The file's own reference href (not the signed preview URL in `src`).\nWhen set, an unsupported type falls back to the same download button\nused elsewhere in the library, so hosts need no new wiring."
|
|
139
|
-
},
|
|
140
|
-
"getter": false,
|
|
141
|
-
"setter": false,
|
|
142
|
-
"reflect": false,
|
|
143
|
-
"attribute": "href",
|
|
144
|
-
"defaultValue": "''"
|
|
145
|
-
},
|
|
146
|
-
"locale": {
|
|
147
|
-
"type": "string",
|
|
148
|
-
"mutable": false,
|
|
149
|
-
"complexType": {
|
|
150
|
-
"original": "string",
|
|
151
|
-
"resolved": "string",
|
|
152
|
-
"references": {}
|
|
153
|
-
},
|
|
154
|
-
"required": false,
|
|
155
|
-
"optional": false,
|
|
156
|
-
"docs": {
|
|
157
|
-
"tags": [],
|
|
158
|
-
"text": ""
|
|
159
|
-
},
|
|
160
|
-
"getter": false,
|
|
161
|
-
"setter": false,
|
|
162
|
-
"reflect": false,
|
|
163
|
-
"attribute": "locale",
|
|
164
|
-
"defaultValue": "navigator.language"
|
|
165
|
-
}
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
static get states() {
|
|
169
|
-
return {
|
|
170
|
-
"imageFailed": {}
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
static get events() {
|
|
174
|
-
return [{
|
|
175
|
-
"method": "mrdPreviewReload",
|
|
176
|
-
"name": "mrdPreviewReload",
|
|
177
|
-
"bubbles": true,
|
|
178
|
-
"cancelable": true,
|
|
179
|
-
"composed": true,
|
|
180
|
-
"docs": {
|
|
181
|
-
"tags": [],
|
|
182
|
-
"text": "The image failed to load \u2014 most likely an expired signed URL. Host\nshould fetch a fresh signed URL and update `src`.\nNote: this is only raised for images. Browsers don't reliably surface\nHTTP-level failures (e.g. a 403 on an expired URL) through an iframe's\nload/error events, so the same detection isn't available for PDFs."
|
|
183
|
-
},
|
|
184
|
-
"complexType": {
|
|
185
|
-
"original": "void",
|
|
186
|
-
"resolved": "void",
|
|
187
|
-
"references": {}
|
|
188
|
-
}
|
|
189
|
-
}, {
|
|
190
|
-
"method": "mrdDownload",
|
|
191
|
-
"name": "mrdDownload",
|
|
192
|
-
"bubbles": true,
|
|
193
|
-
"cancelable": true,
|
|
194
|
-
"composed": true,
|
|
195
|
-
"docs": {
|
|
196
|
-
"tags": [],
|
|
197
|
-
"text": "Download the file. Same shape as mrd-document-view / mrd-layout-section's\nmrdDownload \u2014 host resolves `href` to a signed URL."
|
|
198
|
-
},
|
|
199
|
-
"complexType": {
|
|
200
|
-
"original": "{ href: string; fileName: string }",
|
|
201
|
-
"resolved": "{ href: string; fileName: string; }",
|
|
202
|
-
"references": {}
|
|
203
|
-
}
|
|
204
|
-
}];
|
|
205
|
-
}
|
|
206
|
-
static get watchers() {
|
|
207
|
-
return [{
|
|
208
|
-
"propName": "src",
|
|
209
|
-
"methodName": "srcChanged"
|
|
210
|
-
}];
|
|
211
|
-
}
|
|
212
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface MrdFilePreview extends Components.MrdFilePreview, HTMLElement {}
|
|
4
|
-
export const MrdFilePreview: {
|
|
5
|
-
prototype: MrdFilePreview;
|
|
6
|
-
new (): MrdFilePreview;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{M as r,d as e}from"./mrd-file-preview2.js";const o=r,s=e;export{o as MrdFilePreview,s as defineCustomElement}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{proxyCustomElement as e,HTMLElement as r,createEvent as i,h as t,Host as s,transformTag as d}from"@stencil/core/internal/client";import{t as o}from"./i18n.js";const l=new Set(["png","jpg","jpeg","gif","webp","svg","bmp"]),n=e(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.mrdPreviewReload=i(this,"mrdPreviewReload",7),this.mrdDownload=i(this,"mrdDownload",7),this.src="",this.mimeType="",this.fileName="",this.href="",this.locale=navigator.language,this.imageFailed=!1,this.onImageError=()=>{this.imageFailed=!0},this.retry=()=>{this.imageFailed=!1,this.mrdPreviewReload.emit()}}srcChanged(){this.imageFailed=!1}render(){const e=function(e,r){const i=(null!=e?e:"").toLowerCase().trim();if(i)return"application/pdf"===i?"pdf":i.startsWith("image/")?"image":"unsupported";const t=function(e){if(!e)return null;const r=/\.([a-z0-9]+)$/i.exec(e);return r?r[1].toLowerCase():null}(r);return"pdf"===t?"pdf":t&&l.has(t)?"image":"unsupported"}(this.mimeType,this.fileName);return t(s,null,"pdf"===e?t("iframe",{class:"mrd-file-preview__frame",src:this.src,title:this.fileName||"preview"}):"image"===e?this.imageFailed?t("div",{class:"mrd-file-preview__error"},t("span",{class:"mrd-file-preview__error-text"},o("preview_error",this.locale)),t("button",{type:"button",class:"mrd-file-preview__retry",onClick:this.retry},o("retry",this.locale))):t("img",{class:"mrd-file-preview__image",src:this.src,alt:this.fileName||"",onError:this.onImageError}):t("div",{class:"mrd-file-preview__unsupported"},t("span",null,o("preview_unsupported",this.locale)),this.href&&t("button",{type:"button",class:"mrd-file-preview__download",onClick:()=>this.mrdDownload.emit({href:this.href,fileName:this.fileName})},t("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},t("path",{d:"M12 3v12m0 0l-4-4m4 4l4-4M4 21h16"})),o("download",this.locale))))}static get watchers(){return{src:[{srcChanged:0}]}}static get style(){return".sc-mrd-file-preview-h{display:block;width:100%;height:100%}.mrd-file-preview__frame.sc-mrd-file-preview{display:block;width:100%;height:100%;border:none}.mrd-file-preview__image.sc-mrd-file-preview{display:block;max-width:100%;max-height:100%;margin:0 auto;object-fit:contain}.mrd-file-preview__error.sc-mrd-file-preview,.mrd-file-preview__unsupported.sc-mrd-file-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--mrd-space-3);width:100%;height:100%;min-height:8rem;padding:var(--mrd-space-6);color:var(--mrd-color-neutral-500);font-size:var(--mrd-font-size-sm);text-align:center}.mrd-file-preview__error-text.sc-mrd-file-preview{color:var(--mrd-color-danger)}.mrd-file-preview__retry.sc-mrd-file-preview,.mrd-file-preview__download.sc-mrd-file-preview{display:inline-flex;align-items:center;gap:var(--mrd-space-2);height:2rem;padding:0 var(--mrd-space-3);border:var(--mrd-border-width) solid var(--mrd-color-neutral-300);border-radius:var(--mrd-border-radius);background:var(--mrd-color-white);color:var(--mrd-color-neutral-700);font-family:var(--mrd-font-family);font-size:var(--mrd-font-size-sm);font-weight:var(--mrd-font-weight-medium);cursor:pointer}.mrd-file-preview__retry.sc-mrd-file-preview:hover,.mrd-file-preview__download.sc-mrd-file-preview:hover{background:var(--mrd-color-neutral-100);color:var(--mrd-color-neutral-900)}.mrd-file-preview__download.sc-mrd-file-preview svg.sc-mrd-file-preview{width:0.9375rem;height:0.9375rem}"}},[2,"mrd-file-preview",{src:[1],mimeType:[1,"mime-type"],fileName:[1,"file-name"],href:[1],locale:[1],imageFailed:[32]},void 0,{src:[{srcChanged:0}]}]);function a(){"undefined"!=typeof customElements&&["mrd-file-preview"].forEach((e=>{"mrd-file-preview"===e&&(customElements.get(d(e))||customElements.define(d(e),n))}))}export{n as M,a as d}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cell-renderer-PbcEU4ph.js","sources":["src/utils/cell-renderer.ts"],"sourcesContent":["import { formatNumber, formatPercentage, formatCurrency, formatDate, formatDateTime, formatTime } from './format';\nimport { ClientLayoutItem, ClientLayoutItemType } from '../types/client-layout';\n\n/** TableColumn is an alias for ClientLayoutItem — used for table column definitions. */\nexport type TableColumn = ClientLayoutItem;\n\n/** One entry in the alternativeViews array for mrd-table. */\nexport interface AlternativeView {\n /** Named view identifier, emitted in mrdSwitchView. */\n name: string;\n /** Display text; falls back to name when absent. */\n label?: string;\n /** Optional class override (TypeFQN); emitted in mrdSwitchView. */\n class?: string;\n}\n\n/** Defines a toolbar action button for mrd-table. */\nexport interface TableAction {\n /** Machine-readable identifier, e.g. 'create' | 'export'. Emitted in mrdAction event. */\n action: string;\n /** Tooltip text (and label fallback when no icon is provided). */\n label: string;\n /** SVG sprite href, e.g. \"assets/sprites.svg#icon-plus\". Optional. */\n icon?: string;\n /** Button style variant. Defaults to 'secondary'. */\n variant?: 'primary' | 'secondary' | 'danger';\n disabled?: boolean;\n basicType?: string;\n}\n\n/** Represents an active filter on a single column. */\nexport interface ColumnFilter {\n field: string;\n dataType: string;\n /** Text operator — only relevant for text-like data types. */\n operator?: 'contains' | 'startsWith' | 'equals' | 'isEmpty' | 'isNotEmpty';\n /** Single value (boolean, exact text/number/date). */\n value?: string | number | boolean | null;\n /** Range start (≥) — future API support. */\n from?: string | number | null;\n /** Range end (≤) — future API support. */\n to?: string | number | null;\n /** LIST: keys of selected items to include. */\n values?: string[];\n}\n\nexport class CellRenderer {\n static render(column: TableColumn, row: Record<string, any>, locale: string): string {\n if (column.type === ClientLayoutItemType.RELATION) {\n const name = column.name ?? '';\n const link = row?._links?.[name];\n if (!link) return '';\n if (Array.isArray(link)) return link.map((l: any) => l.name ?? '').filter(Boolean).join(', ');\n return link.name ?? '';\n }\n\n if (column.type !== ClientLayoutItemType.FIELD) return '';\n\n const name = column.name ?? '';\n const dataType = column.dataType;\n const listItems = column.listItems;\n const raw = row?.[name];\n if (raw == null || raw === '') return '';\n\n const values = Array.isArray(raw) ? raw : [raw];\n return values\n .map(v => CellRenderer.renderValue(dataType ?? 'TEXT', v, listItems ?? [], locale))\n .filter(s => s !== '')\n .join(', ');\n }\n\n static renderValue(\n dataType: string,\n value: any,\n listItems: Array<{ key: string; label: string }>,\n locale: string,\n ): string {\n switch (dataType) {\n case 'INTEGER':\n return formatNumber(Number(value), locale, { maximumFractionDigits: 0 });\n case 'DECIMAL':\n return formatNumber(Number(value), locale);\n case 'PERCENTAGE':\n return formatPercentage(Number(value), locale);\n case 'CURRENCY': {\n const { amount, currency } = typeof value === 'object' && value !== null\n ? value\n : { amount: value, currency: '' };\n return currency\n ? formatCurrency(Number(amount), currency, locale)\n : formatNumber(Number(amount), locale);\n }\n case 'DATE':\n return formatDate(value, locale);\n case 'DATETIME':\n return formatDateTime(value, locale);\n case 'TIME':\n return formatTime(value, locale);\n case 'BOOLEAN':\n return value ? '✓' : '';\n case 'FILE':\n case 'IMAGE':\n return typeof value === 'object' && value !== null ? (value.fileName ?? '') : '';\n case 'LIST': {\n const item = listItems.find(li => li.key === String(value));\n return item?.label ?? String(value);\n }\n case 'TEXTBLOCK': {\n const stripped = String(value).replace(/<[^>]*>/g, '');\n const txt = document.createElement('textarea');\n txt.innerHTML = stripped;\n return txt.value.trim();\n }\n case 'LONGTEXT':\n return String(value).replace(/[\\r\\n]+/g, ' ').trim();\n case 'JSON': {\n const str = typeof value === 'object' ? JSON.stringify(value) : String(value);\n return str.replace(/[\\r\\n]+/g, ' ').trim();\n }\n case 'SECRET':\n return value ? '••••••••' : '';\n default:\n return String(value);\n }\n }\n\n /**\n * Returns syntax-highlighted JSON as an HTML string with inline styles.\n * compact=true → single line (no indentation); compact=false → pretty-printed.\n */\n static formatJson(value: any, compact = false): string {\n try {\n const parsed = typeof value === 'string' ? JSON.parse(value) : value;\n const json = compact ? JSON.stringify(parsed) : JSON.stringify(parsed, null, 2);\n return json.replace(\n /(\"(\\\\u[a-zA-Z0-9]{4}|\\\\[^u]|[^\\\\\"])*\"(\\s*:)?|\\b(true|false|null)\\b|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?)/g,\n match => {\n let style = 'color:#2aa198';\n if (/^\"/.test(match)) {\n style = /:$/.test(match) ? 'color:#881391' : 'color:#268bd2';\n } else if (/true|false/.test(match)) {\n style = 'color:#b58900';\n } else if (/null/.test(match)) {\n style = 'color:#dc322f';\n }\n return `<span style=\"${style}\">${match}</span>`;\n },\n );\n } catch {\n return String(value);\n }\n }\n}\n"],"names":[],"mappings":";;;MA8Ca,YAAY,CAAA;AACvB,IAAA,OAAO,MAAM,CAAC,MAAmB,EAAE,GAAwB,EAAE,MAAc,EAAA;;QACzE,IAAI,MAAM,CAAC,IAAI,KAAK,oBAAoB,CAAC,QAAQ,EAAE;YACjD,MAAM,IAAI,GAAG,CAAA,EAAA,GAAA,MAAM,CAAC,IAAI,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAI,EAAE;YAC9B,MAAM,IAAI,GAAG,CAAA,EAAA,GAAA,GAAG,KAAA,IAAA,IAAH,GAAG,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAH,GAAG,CAAE,MAAM,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAG,IAAI,CAAC;AAChC,YAAA,IAAI,CAAC,IAAI;AAAE,gBAAA,OAAO,EAAE;AACpB,YAAA,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;gBAAE,OAAO,IAAI,CAAC,GAA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AAC;;;AAI1B;;;AAGG;AACH,IAAA,OAAO,UAAU,CAAC,KAAU,EAAE,OAAO,GAAG,KAAK,EAAA;AAC3C,QAAA,IAAI;AACF,YAAA,MAAM,MAAM,GAAG,OAAO,KAAK,KAAK,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,KAAK;YACpE,MAAM,IAAI,GAAG,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;YAC/E,OAAO,IAAI,CAAC,OAAO,CACjB,wGAAwG,EACxG,KAAK,IAAG;gBACN,IAAI,KAAK,GAAG,eAAe;AAC3B,gBAAA,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;AACpB,oBAAA,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,eAAe,GAAG,eAAe;;AACvD,qBAAA,IAAI,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;oBACnC,KAAK,GAAG,eAAe;;AAClB,qBAAA,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;oBAC7B,KAAK,GAAG,eAAe;;AAEzB,gBAAA,OAAO,CAAA,aAAA,EAAgB,KAAK,CAAA,EAAA,EAAK,KAAK,SAAS;AACjD,aAAC,CACF;;QACD,OAAA,EAAA,EAAM;AACN,YAAA,OAAO,MAAM,CAAC,KAAK,CAAC;;;AAGzB;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client-layout-DCOAAH92.js","sources":["src/types/client-layout.ts"],"sourcesContent":["// ─── Layout type ──────────────────────────────────────────────────────────────\n\nexport enum ClientLayoutType {\n OBJECT_FORM_DASHBOARD = 'OBJECT_FORM_DASHBOARD',\n CLASS_DASHBOARD = 'CLASS_DASHBOARD',\n GENERAL_DASHBOARD = 'GENERAL_DASHBOARD',\n NAVIGATION_PANE = 'NAVIGATION_PANE',\n}\n\n// ─── Item types ───────────────────────────────────────────────────────────────\n\nexport enum ClientLayoutItemType {\n // Form / data input\n FIELD = 'FIELD',\n RELATION = 'RELATION',\n // Layout structure\n SECTION = 'SECTION',\n GROUP = 'GROUP',\n // Read-only / display\n HEADER = 'HEADER',\n TEXT = 'TEXT',\n // Navigation / actions\n NAVIGATE = 'NAVIGATE',\n ACTION = 'ACTION',\n SEARCH = 'SEARCH',\n // Dashboard views\n VIEW = 'VIEW',\n RELATED_VIEW = 'RELATED_VIEW',\n RELATED_OBJECT = 'RELATED_OBJECT',\n}\n\n// ─── Field data types ─────────────────────────────────────────────────────────\n\nexport enum ClientLayoutItemFieldDataType {\n TEXT = 'TEXT',\n TEXTBLOCK = 'TEXTBLOCK',\n INTEGER = 'INTEGER',\n DECIMAL = 'DECIMAL',\n PERCENTAGE = 'PERCENTAGE',\n CURRENCY = 'CURRENCY',\n BOOLEAN = 'BOOLEAN',\n DATE = 'DATE',\n DATETIME = 'DATETIME',\n TIME = 'TIME',\n EMAIL = 'EMAIL',\n HYPERLINK = 'HYPERLINK',\n LIST = 'LIST',\n FILE = 'FILE',\n IMAGE = 'IMAGE',\n LONGTEXT = 'LONGTEXT',\n JSON = 'JSON',\n SECRET = 'SECRET',\n}\n\n// ─── Relation display / edit behaviour ───────────────────────────────────────\n\nexport enum ClientLayoutItemRelationDisplayType {\n SEARCH = 'SEARCH',\n DROPDOWN = 'DROPDOWN',\n CHECKBOX = 'CHECKBOX',\n}\n\nexport enum ClientLayoutItemRelationEditBehavior {\n SEARCH = 'SEARCH',\n DROPDOWN = 'DROPDOWN',\n CHECKBOX = 'CHECKBOX',\n}\n\n// ─── VIEW / RELATED_VIEW navigate behaviour ──────────────────────────────────\n\n/** How navigating from a row/document in this VIEW or RELATED_VIEW should open\n * its target: a full page navigation, or an overlay on top of the current page. */\nexport enum ClientLayoutNavigateBehaviour {\n PAGE = 'PAGE',\n OVERLAY_PAGE = 'OVERLAY_PAGE',\n}\n\n// ─── Data object link types (API _links shape) ───────────────────────────────\n\n/** A single sub-link within a multi-value relation link. */\nexport interface DataObjectSubLink {\n href: string;\n name: string;\n}\n\n/** Link object as returned by the API on a data object's `_links` map. */\nexport interface DataObjectLink {\n href: string;\n name?: string;\n values?: DataObjectSubLink[];\n}\n\n// ─── Shared value types ───────────────────────────────────────────────────────\n\n/** A selectable list item as returned by the API. */\nexport interface ClientListValue {\n /** Raw key stored in the database (API uses `key`, older code used `value`). */\n key: string;\n label: string;\n color?: string | null;\n backgroundColor?: string | null;\n}\n\nexport interface CurrencyValue {\n amount: number | null;\n currency: string;\n decimals?: number;\n}\n\nexport interface HyperlinkValue {\n href: string;\n name?: string;\n}\n\nexport interface RelationSearchResult {\n id: string;\n label: string;\n description?: string;\n}\n\n// ─── Archetypes (semantic type contracts) ────────────────────────────────────\n\n/**\n * A resolved archetype binding as published on a dashboard.\n * `archetype` is the platform-defined id (e.g. `commons.document`); `slots` maps\n * each slot name to the concrete field/relation name on this type. The client\n * keys on the archetype id and reads values from the data endpoint via the map;\n * the slot kind (value vs relation) is known from the archetype id itself and is\n * not published.\n */\nexport interface ClientArchetype {\n archetype: string;\n slots: Record<string, string>;\n}\n\n/** Well-known archetype ids the client renders specially. */\nexport const ARCHETYPE_DOCUMENT = 'commons.document';\n\n/**\n * Find a binding for `archetypeId` in a published `archetypes` list.\n * Returns `undefined` when the archetype is absent — callers fall back to the\n * generic table/field rendering.\n */\nexport function resolveArchetype(\n archetypes: ClientArchetype[] | null | undefined,\n archetypeId: string,\n): ClientArchetype | undefined {\n return (archetypes ?? []).find(a => a.archetype === archetypeId);\n}\n\n// ─── Item definitions ─────────────────────────────────────────────────────────\n\nexport interface ClientLayoutItemField {\n name: string;\n label: string;\n dataType: ClientLayoutItemFieldDataType;\n required: boolean;\n disabled?: boolean;\n multiple?: boolean;\n header?: boolean;\n defaultValue?: string | null;\n listItems?: ClientListValue[] | null;\n // UI hints — optional, not sent by API\n placeholder?: string;\n accept?: string;\n maxSize?: number;\n decimalPrecision?: number;\n currencyCode?: string;\n /** Aggregate function to render in the table totals row. */\n aggregate?: 'sum' | 'avg' | 'count' | null;\n historyEnabled?: boolean;\n}\n\n/** Response shape from the /aggregations endpoint.\n * `count` is a plain number (total record count) when returned at the top level. */\nexport interface AggregationResult {\n total?: number;\n count?: number | Record<string, number>;\n sum?: Record<string, number>;\n avg?: Record<string, number>;\n}\n\nexport interface ClientLayoutItemRelation {\n name: string;\n label: string;\n relatedClass: string;\n mostSignificantClass?: string;\n displayType?: ClientLayoutItemRelationDisplayType;\n editBehavior?: ClientLayoutItemRelationEditBehavior | null;\n commonRelation?: string;\n required: boolean;\n disabled?: boolean;\n multiple?: boolean;\n defaultValue?: string | null;\n dropdownValues?: ClientListValue[];\n}\n\nexport interface ClientLayoutItemNavigate {\n dataClass: string;\n icon?: string | null;\n navigationType?: string | null;\n}\n\nexport interface ClientLayoutItemRelatedView {\n name: string;\n fromClass?: string | null;\n relatedClass: string;\n filterClass?: string | null;\n showTitle: boolean;\n}\n\nexport interface ClientLayoutItemRelatedObject {\n name: string;\n relatedClass: string;\n}\n\nexport interface ClientLayoutItemSearch {\n dataClass: string;\n showTitle: boolean;\n}\n\n// ─── Generic item ─────────────────────────────────────────────────────────────\n\nexport interface ClientCreateType {\n type: string;\n label: string;\n}\n\n/**\n * A single item in a ClientLayout. The `type` discriminator determines which\n * optional fields are present. Components should only act on types they\n * understand and ignore others.\n */\nexport interface ClientLayoutItem {\n type: ClientLayoutItemType;\n label?: string;\n\n // FIELD\n field?: ClientLayoutItemField;\n\n // RELATION\n relation?: ClientLayoutItemRelation;\n\n // SECTION / GROUP — nested items\n items?: ClientLayoutItem[];\n\n // NAVIGATE\n navigate?: ClientLayoutItemNavigate;\n\n // VIEW — embedded view config (new flat format)\n view?: ClientViewMetadata;\n\n // RELATED_VIEW\n relatedView?: ClientLayoutItemRelatedView;\n\n // RELATED_OBJECT\n relatedObject?: ClientLayoutItemRelatedObject;\n\n // SEARCH\n search?: ClientLayoutItemSearch;\n\n /**\n * Archetype bindings for this item. The API publishes them on the item itself\n * (sibling of `view`), for two cases:\n * - object dashboard top-level: the type of the object itself → mrd-layout-section\n * renders a recognisable single-document view instead of generic fields;\n * - a VIEW / RELATED_VIEW item: → mrd-layout-section offers the document\n * collection view (folder tree) alongside the generic table.\n */\n archetypes?: ClientArchetype[];\n\n // ─── Flat API fields ──────────────────────────────────────────────────────\n // Shared / ACTION / VIEW\n name?: string;\n showTitle?: boolean;\n /** Embedded alternative view configs (new flat format). */\n alternativeViews?: Array<{ label?: string; dataClass?: string; fromClass?: string | null; filterClass?: string | null; view?: ClientViewMetadata }>;\n /** Toolbar buttons for embedded views. null/omitted = [\"NEW\",\"EXPORT\"]; [] = none. */\n actions?: string[] | null;\n /** Concrete subtypes available for create. When set, the NEW button expands into one button per entry. */\n createTypes?: ClientCreateType[] | null;\n\n // FIELD (flat)\n dataType?: ClientLayoutItemFieldDataType;\n required?: boolean;\n disabled?: boolean;\n multiple?: boolean;\n header?: boolean;\n defaultValue?: string | null;\n listItems?: ClientListValue[] | null;\n aggregate?: 'sum' | 'avg' | 'count' | null;\n placeholder?: string;\n accept?: string;\n maxSize?: number;\n decimalPrecision?: number;\n currencyCode?: string;\n historyEnabled?: boolean;\n\n // RELATION (flat)\n relatedClass?: string;\n mostSignificantClass?: string;\n displayType?: ClientLayoutItemRelationDisplayType;\n editBehavior?: ClientLayoutItemRelationEditBehavior | null;\n commonRelation?: string;\n dropdownValues?: ClientListValue[];\n\n // VIEW / NAVIGATE / SEARCH (flat) — API sends 'dataClass' (renamed from reserved 'class')\n dataClass?: string;\n\n // RELATED_VIEW (flat)\n fromClass?: string | null;\n filterClass?: string | null;\n /** Name of the relation on the related object that points back to the\n * `fromClass` parent (e.g. a document's `dossier` relation). When it equals\n * the `commons.document` archetype's `container` slot, the view is a single\n * container context (see mrd-document-list seeding). */\n inverseRelation?: string | null;\n /** How navigating out of this VIEW/RELATED_VIEW opens its target. Defaults to\n * `PAGE` (full navigation) when absent. mrd-layout-section reads this off the\n * item and includes it in the mrdNavigate event detail it relays upward. */\n navigateBehaviour?: ClientLayoutNavigateBehaviour;\n\n // NAVIGATE (flat)\n icon?: string | null;\n navigationType?: string | null;\n\n // ACTION (flat)\n actionType?: string;\n}\n\n// ─── Layout ───────────────────────────────────────────────────────────────────\n\nexport interface ClientLayout {\n type?: ClientLayoutType;\n label?: string;\n /** Used as the form title (mrd-form). */\n title?: string;\n tabPage?: boolean;\n items: ClientLayoutItem[];\n}\n\n// ─── ViewMetadata (from DashboardMetadata.views) ─────────────────────────────\n\nexport interface ViewFilter {\n name: string;\n value?: string | null;\n operator?: 'EQUALS' | 'FROM' | 'TO' | 'STARTS_WITH' | 'NOT_EMPTY' | 'EMPTY' | null;\n}\n\nexport interface ClientViewMetadata {\n name: string | null;\n defaultView: boolean;\n defaultSort?: string | null;\n /** Column definitions — each item is a FIELD or RELATION item. */\n values: ClientLayoutItem[];\n /** Static query-param filters baked into the view definition. */\n filter?: ViewFilter[] | null;\n type?: string;\n referenceType?: string | null;\n filterType?: string | null;\n singularLabel?: string;\n pluralLabel?: string;\n /**\n * Archetype bindings published on this VIEW / RELATED_VIEW item. When it\n * contains `commons.document`, mrd-layout-section offers the document\n * collection view (folder tree) alongside the generic table.\n */\n archetypes?: ClientArchetype[];\n}\n\n// ─── DashboardMetadata ────────────────────────────────────────────────────────\n\nexport interface ClientDashboardMetadata {\n layouts: ClientLayout[];\n /** Top-level archetypes on an object dashboard (the object's own type). Drives the\n * single-document view; passed to the main layout's mrd-layout-section. */\n archetypes?: ClientArchetype[];\n /** Legacy: view metadata map keyed by generated name. Absent in new flat format. */\n views?: Record<string, ClientViewMetadata>;\n layoutType: ClientLayoutType;\n _links?: Record<string, { href: string }>;\n}\n"],"names":[],"mappings":"AAAA;AAEA,IAAY;AAAZ,CAAA,UAAY,gBAAgB,EAAA;AAC1B,IAAA,gBAAA,CAAA,uBAAA,CAAA,GAAA,uBAA+C;AAC/C,I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B;AACvB,CAAC,EAJW,oCAAoC,KAApC,oCAAoC,GAAA,EAAA,CAAA,CAAA;AAMhD;AAEA;AACoF;AACpF,IAAY;AAAZ,CAAA,UAAY,6BAA6B,EAAA;AACvC,IAAA,6BAAA,CAAA,MAAA,CAAA,GAAA,MAAqB;AACrB,IAAA,6BAAA,CAAA,cAAA,CAAA,GAAA,cAA6B;AAC/B,CAAC,EAHW,6BAA6B,KAA7B,6BAA6B,GAAA,EAAA,CAAA,CAAA;AA+DzC;AACO,MAAM,kBAAkB,GAAG;AAElC;;;;AAIG;AACG,SAAU,gBAAgB,CAC9B,UAAgD,EAChD,WAAmB,EAAA;AAEnB,IAAA,OAAO,CAAC,UAAU,KAAA,IAAA,IAAV,UAAU,cAAV,UAAU,GAAI,EAAE,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,KAAK,WAAW,CAAC;AAClE;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"field-helpers-CASS3akr.js","sources":["src/components/fields/field-helpers.tsx"],"sourcesContent":["import { FunctionalComponent, h } from '@stencil/core';\nimport { t } from '../../utils/i18n';\nimport { validateRequired } from '../../utils/validation';\n\n/**\n * Shared building blocks for the leaf field components.\n * `base` is the BEM block name, e.g. 'mrd-text-field'.\n */\n\nexport const FieldLabel: FunctionalComponent<{ base: string; label: string; required: boolean }> = ({ base, label, required }) =>\n label ? <label class={`${base}__label${required ? ` ${base}__label--required` : ''}`}>{label}</label> : null;\n\nexport const FieldError: FunctionalComponent<{ base: string; error: string }> = ({ base, error }) =>\n error ? <span class={`${base}__error`}>{error}</span> : null;\n\n/** Class string for the form control, with the --error modifier when applicable. */\nexport function controlClass(base: string, hasError: boolean, element: string = 'input'): string {\n return `${base}__${element}${hasError ? ` ${base}__${element}--error` : ''}`;\n}\n\n/** Returns the localised required-error, or '' when the value passes. */\nexport function requiredError(value: unknown, required: boolean, locale: string): string {\n return required && !validateRequired(value) ? t('required', locale) : '';\n}\n"],"names":[],"mappings":";;;;AAIA;;;AAGG;MAEU,UAAU,GAA4E,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,KAC3H,KAAK,GAAG,aAAO,KAAK,EAAE,CAAA,EAAG,IAAI,CAAA,OAAA,EAAU,QAAQ,GAAG,CAAA,CAAA,EAAI,IAAI,CAAA,iBAAA,CAAmB,GAAG,EAAE,CAAA,CAAE,IAAG,KAAK,CAAS,GAAG;AAEnG,MAAM,UAAU,GAAyD,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAC9F,KAAK,GAAG,CAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAE,GAAG,IAAI,CAAA,OAAA,CAAS,EAAA,EAAG,KAAK,CAAQ,GAAG;AAE1D;AACM,SAAU,YAAY,CAAC,IAAY,EAAE,QAAiB,EAAE,UAAkB,OAAO,EAAA;AACrF,IAAA,OAAO,GAAG,IAAI,CAAA,EAAA,EAAK,OAAO,CAAA,EAAG,QAAQ,GAAG,IAAI,IAAI,CAAA,EAAA,EAAK,OAAO,CAAA,OAAA,CAAS,GAAG,EAAE,EAAE;AAC9E;AAEA;SACgB,aAAa,CAAC,KAAc,EAAE,QAAiB,EAAE,MAAc,EAAA;IAC7E,OAAO,QAAQ,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG,EAAE;AAC1E;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-upload-common-D1ndi6cN.js","sources":["src/components/fields/file-upload-common.ts"],"sourcesContent":["import { t } from '../../utils/i18n';\n\n/**\n * Shared upload behaviour for mrd-file-field and mrd-image-field:\n * file validation, drop-zone class building and drag-drop wiring.\n */\n\n/** Validates a selected/dropped file; returns a localised error message or '' when accepted. */\nexport function validateUploadFile(file: File, maxSize: number, locale: string, requireImage = false): string {\n if (maxSize > 0 && file.size > maxSize) return t('file_too_large', locale);\n if (requireImage && !file.type.startsWith('image/')) return t('invalid_image', locale);\n return '';\n}\n\n/** BEM class string for the drop zone, e.g. base 'mrd-file-field' → 'mrd-file-field__zone …'. */\nexport function uploadZoneClass(base: string, opts: { dragging: boolean; error: boolean; disabled: boolean }): string {\n return [\n `${base}__zone`,\n opts.dragging ? `${base}__zone--dragging` : '',\n opts.error ? `${base}__zone--error` : '',\n opts.disabled ? `${base}__zone--disabled` : '',\n ].filter(Boolean).join(' ');\n}\n\n/** Drag-drop handlers for the drop zone; the component owns the dragging state and file handling. */\nexport function makeDragHandlers(setDragging: (dragging: boolean) => void, onFile: (file: File | null) => void) {\n return {\n onDragOver: (e: DragEvent) => {\n e.preventDefault();\n setDragging(true);\n },\n onDragLeave: () => setDragging(false),\n onDrop: (e: DragEvent) => {\n e.preventDefault();\n setDragging(false);\n onFile(e.dataTransfer?.files?.[0] ?? null);\n },\n };\n}\n"],"names":[],"mappings":";;AAEA;;;AAGG;AAEH;AACM,SAAU,kBAAkB,CAAC,IAAU,EAAE,OAAe,EAAE,MAAc,EAAE,YAAY,GAAG,KAAK,EAAA;IAClG,IAAI,OAAO,GAAG,CAAC,IAAI,IAAI,CAAC,IAAI,GAAG,OAAO;AAAE,QAAA,OAAO,CAAC,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAC1E,IAAI,YAAY,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;AAAE,QAAA,OAAO,CAAC,CAAC,eAAe,EAAE,MAAM,CAAC;AACtF,IAAA,OAAO,EAAE;AACX;AAEA;AACM,SAAU,eAAe,CAAC,IAAY,EAAE,IAA8D,EAAA;IAC1G,OAAO;AACL,QAAA,CAAA,EAAG,IAAI,CAAA,MAAA,CAAQ;QACf,IAAI,CAAC,QAAQ,GAAG,CAAA,EAAG,IAAI,CAAA,gBAAA,CAAkB,GAAG,EAAE;QAC9C,IAAI,CAAC,KAAK,GAAG,CAAA,EAAG,IAAI,CAAA,aAAA,CAAe,GAAG,EAAE;QACxC,IAAI,CAAC,QAAQ,GAAG,CAAA,EAAG,IAAI,CAAA,gBAAA,CAAkB,GAAG,EAAE;KAC/C,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;AAC7B;AAEA;AACM,SAAU,gBAAgB,CAAC,WAAwC,EAAE,MAAmC,EAAA;IAC5G,OAAO;AACL,QAAA,UAAU,EAAE,CAAC,CAAY,KAAI;YAC3B,CAAC,CAAC,cAAc,EAAE;YAClB,WAAW,CAAC,IAAI,CAAC;SAClB;AACD,QAAA,WAAW,EAAE,MAAM,WAAW,CAAC,KAAK,CAAC;AACrC,QAAA,MAAM,EAAE,CAAC,CAAY,KAAI;;YACvB,CAAC,CAAC,cAAc,EAAE;YAClB,WAAW,CAAC,KAAK,CAAC;AAClB,YAAA,MAAM,CAAC,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,CAAC,CAAC,YAAY,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAE,KAAK,0CAAG,CAAC,CAAC,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAI,IAAI,CAAC;SAC3C;KACF;AACH;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"format-BAfsQfy1.js","sources":["src/utils/format.ts"],"sourcesContent":["export function formatNumber(value: number, locale: string, options?: Intl.NumberFormatOptions): string {\n if (value === null || value === undefined || isNaN(value)) return '';\n return new Intl.NumberFormat(locale, options).format(value);\n}\n\nexport function formatCurrency(amount: number, currency: string, locale: string): string {\n if (amount === null || amount === undefined || isNaN(amount)) return '';\n return new Intl.NumberFormat(locale, {\n style: 'currency',\n currency,\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n }).format(amount);\n}\n\nexport function formatPercentage(value: number, locale: string, decimalPrecision = 2): string {\n if (value === null || value === undefined || isNaN(value)) return '';\n return new Intl.NumberFormat(locale, {\n style: 'percent',\n minimumFractionDigits: decimalPrecision,\n maximumFractionDigits: decimalPrecision,\n }).format(value);\n}\n\nexport function formatDate(value: string | Date, locale: string): string {\n if (!value) return '';\n const date = typeof value === 'string' ? new Date(value) : value;\n if (isNaN(date.getTime())) return '';\n return new Intl.DateTimeFormat(locale, { year: 'numeric', month: '2-digit', day: '2-digit' }).format(date);\n}\n\nexport function formatDateTime(value: string | Date, locale: string): string {\n if (!value) return '';\n const date = typeof value === 'string' ? new Date(value) : value;\n if (isNaN(date.getTime())) return '';\n return new Intl.DateTimeFormat(locale, {\n year: 'numeric',\n month: '2-digit',\n day: '2-digit',\n hour: '2-digit',\n minute: '2-digit',\n }).format(date);\n}\n\nexport function formatTime(value: string, locale: string): string {\n if (!value) return '';\n // value is HH:MM or HH:MM:SS\n const [hours, minutes] = value.split(':').map(Number);\n const date = new Date();\n date.setHours(hours, minutes, 0, 0);\n return new Intl.DateTimeFormat(locale, { hour: '2-digit', minute: '2-digit' }).format(date);\n}\n\nexport function parseLocalizedNumber(str: string, locale: string): number | null {\n if (!str || !str.trim()) return null;\n // Detect decimal and thousands separators from the locale\n const parts = new Intl.NumberFormat(locale).formatToParts(1234567.89);\n const groupSep = parts.find((p: Intl.NumberFormatPart) => p.type === 'group')?.value ?? ',';\n const decimalSep = parts.find((p: Intl.NumberFormatPart) => p.type === 'decimal')?.value ?? '.';\n\n // Remove group separators, replace decimal separator with '.'\n const normalized = str\n .replace(new RegExp(`\\\\${groupSep}`, 'g'), '')\n .replace(new RegExp(`\\\\${decimalSep}`), '.')\n .replace('%', '')\n .trim();\n\n const parsed = parseFloat(normalized);\n return isNaN(parsed) ? null : parsed;\n}\n"],"names":[],"mappings":"SAAgB,YAAY,CAAC,KAAa,EAAE,MAAc,EAAE,OAAkC,EAAA;IAC5F,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,KAAK,CAAC;AAAE,QAAA,OAAO,EAAE;AACpE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
|
1
|
-
{"version":3,"file":"i18n-B1IIkRF9.js","sources":["src/utils/i18n.ts"],"sourcesContent":["const translations: Record<string, Record<string, string>> = {\n nl: {\n required: 'Dit veld is verplicht',\n select_placeholder: 'Selecteer een optie',\n search_placeholder: 'Zoeken...',\n upload_file: 'Bestand uploaden',\n choose_file: 'Bestand kiezen',\n clear: 'Wissen',\n today: 'Vandaag',\n invalid_email: 'Voer een geldig e-mailadres in',\n invalid_url: 'Voer een geldige URL in',\n invalid_number: 'Voer een geldig getal in',\n drop_file_here: 'Sleep bestand hierheen of',\n browse: 'bladeren',\n file_too_large: 'Bestand is te groot',\n invalid_image: 'Selecteer een afbeeldingsbestand',\n search_results: 'Zoekresultaten',\n no_results: 'Geen resultaten gevonden',\n load_failed_retry: 'Laden mislukt — opnieuw proberen',\n loading: 'Laden...',\n submit: 'Opslaan',\n cancel: 'Annuleren',\n remove: 'Verwijderen',\n add: 'Toevoegen',\n yes: 'Ja',\n no: 'Nee',\n // mrd-table footer\n table_of: 'van',\n download: 'Downloaden',\n // mrd-table toolbar\n table_filter: 'Filteren',\n table_filter_hide: 'Filter verbergen',\n table_filter_active: 'actief',\n table_filter_clear_all: 'Alle filters wissen',\n table_new_record: 'Nieuw record',\n table_export_excel: 'Exporteer naar Excel',\n doc_view_switch: 'Weergave wisselen',\n doc_view_tree: 'Boomweergave',\n doc_view_list: 'Lijstweergave',\n // mrd-table filter popup\n filter_sorting: 'Sortering',\n filter_ascending: 'Oplopend',\n filter_descending: 'Aflopend',\n filter_section: 'Filter',\n filter_apply: 'Toepassen',\n filter_clear: 'Wissen',\n filter_contains: 'Bevat',\n filter_starts_with: 'Begint met',\n filter_equals: 'Gelijk aan',\n filter_has_value: 'Heeft waarde',\n filter_is_empty: 'Is leeg',\n filter_is_not_empty: 'Is niet leeg',\n filter_exact: 'Exact',\n filter_range: 'Bereik',\n filter_from: 'Van',\n filter_to: 'Tot',\n filter_all: 'Alle',\n filter_select_all: 'Alles',\n filter_select_none: 'Geen',\n filter_search_value: 'Zoekwaarde...',\n filter_no_support: 'Geen filtering beschikbaar voor dit veldtype.',\n // mrd-table textblock\n textblock_show_more: 'Meer tonen',\n close: 'Sluiten',\n // history badge\n history_until: 'tot',\n history_badge_tooltip: 'Vorige waarden',\n hyperlink_name: 'Linktekst (optioneel)',\n // mrd-document-list\n new_folder: 'Nieuwe folder',\n folder_name_placeholder: 'Foldernaam',\n folder_no_slash: \"Een foldernaam mag geen '/' bevatten\",\n folder_duplicate: 'Er bestaat al een folder met deze naam',\n doc_empty_drop: 'Nog geen documenten — sleep bestanden hierheen',\n // mrd-file-preview\n preview_unsupported: 'Geen voorbeeld beschikbaar voor dit bestandstype',\n preview_error: 'Voorbeeld laden mislukt',\n retry: 'Opnieuw proberen',\n },\n en: {\n required: 'This field is required',\n select_placeholder: 'Select an option',\n search_placeholder: 'Search...',\n upload_file: 'Upload file',\n choose_file: 'Choose file',\n clear: 'Clear',\n today: 'Today',\n invalid_email: 'Please enter a valid email address',\n invalid_url: 'Please enter a valid URL',\n invalid_number: 'Please enter a valid number',\n drop_file_here: 'Drop file here or',\n browse: 'browse',\n file_too_large: 'File is too large',\n invalid_image: 'Please select an image file',\n search_results: 'Search results',\n no_results: 'No results found',\n load_failed_retry: 'Failed to load — retry',\n loading: 'Loading...',\n submit: 'Save',\n cancel: 'Cancel',\n remove: 'Remove',\n add: 'Add',\n yes: 'Yes',\n no: 'No',\n // mrd-table footer\n table_of: 'of',\n download: 'Download',\n // mrd-table toolbar\n table_filter: 'Filter',\n table_filter_hide: 'Hide filter',\n table_filter_active: 'active',\n table_filter_clear_all: 'Clear all filters',\n table_new_record: 'New record',\n table_export_excel: 'Export to Excel',\n doc_view_switch: 'Switch view',\n doc_view_tree: 'Tree view',\n doc_view_list: 'List view',\n // mrd-table filter popup\n filter_sorting: 'Sorting',\n filter_ascending: 'Ascending',\n filter_descending: 'Descending',\n filter_section: 'Filter',\n filter_apply: 'Apply',\n filter_clear: 'Clear',\n filter_contains: 'Contains',\n filter_starts_with: 'Starts with',\n filter_equals: 'Equals',\n filter_has_value: 'Has value',\n filter_is_empty: 'Is empty',\n filter_is_not_empty: 'Is not empty',\n filter_exact: 'Exact',\n filter_range: 'Range',\n filter_from: 'From',\n filter_to: 'To',\n filter_all: 'All',\n filter_select_all: 'All',\n filter_select_none: 'None',\n filter_search_value: 'Search value...',\n filter_no_support: 'Filtering is not available for this field type.',\n // mrd-table textblock\n textblock_show_more: 'Show more',\n close: 'Close',\n // history badge\n history_until: 'until',\n history_badge_tooltip: 'Previous values',\n hyperlink_name: 'Link text (optional)',\n // mrd-document-list\n new_folder: 'New folder',\n folder_name_placeholder: 'Folder name',\n folder_no_slash: \"A folder name cannot contain '/'\",\n folder_duplicate: 'A folder with this name already exists',\n doc_empty_drop: 'No documents yet — drop files here',\n // mrd-file-preview\n preview_unsupported: 'No preview available for this file type',\n preview_error: 'Failed to load preview',\n retry: 'Retry',\n },\n ar: {\n required: 'هذا الحقل مطلوب',\n select_placeholder: 'اختر خياراً',\n search_placeholder: 'بحث...',\n upload_file: 'رفع ملف',\n choose_file: 'اختر ملفاً',\n clear: 'مسح',\n today: 'اليوم',\n invalid_email: 'يرجى إدخال عنوان بريد إلكتروني صحيح',\n invalid_url: 'يرجى إدخال رابط صحيح',\n invalid_number: 'يرجى إدخال رقم صحيح',\n drop_file_here: 'اسحب الملف هنا أو',\n browse: 'تصفح',\n file_too_large: 'الملف كبير جداً',\n invalid_image: 'يرجى اختيار ملف صورة',\n search_results: 'نتائج البحث',\n no_results: 'لم يتم العثور على نتائج',\n load_failed_retry: 'فشل التحميل — إعادة المحاولة',\n loading: 'جار التحميل...',\n submit: 'حفظ',\n cancel: 'إلغاء',\n remove: 'إزالة',\n add: 'إضافة',\n yes: 'نعم',\n no: 'لا',\n // mrd-table footer\n table_of: 'من أصل',\n download: 'تنزيل',\n // mrd-table toolbar\n table_filter: 'تصفية',\n table_filter_hide: 'إخفاء التصفية',\n table_filter_active: 'نشط',\n table_filter_clear_all: 'مسح جميع الفلاتر',\n table_new_record: 'سجل جديد',\n table_export_excel: 'تصدير إلى Excel',\n doc_view_switch: 'تبديل العرض',\n doc_view_tree: 'عرض شجري',\n doc_view_list: 'عرض القائمة',\n // mrd-table filter popup\n filter_sorting: 'الترتيب',\n filter_ascending: 'تصاعدي',\n filter_descending: 'تنازلي',\n filter_section: 'تصفية',\n filter_apply: 'تطبيق',\n filter_clear: 'مسح',\n filter_contains: 'يحتوي على',\n filter_starts_with: 'يبدأ بـ',\n filter_equals: 'يساوي',\n filter_has_value: 'له قيمة',\n filter_is_empty: 'فارغ',\n filter_is_not_empty: 'ليس فارغاً',\n filter_exact: 'دقيق',\n filter_range: 'نطاق',\n filter_from: 'من',\n filter_to: 'إلى',\n filter_all: 'الكل',\n filter_select_all: 'الكل',\n filter_select_none: 'لا شيء',\n filter_search_value: 'قيمة البحث...',\n filter_no_support: 'التصفية غير متاحة لهذا النوع من الحقول.',\n // mrd-table textblock\n textblock_show_more: 'عرض المزيد',\n close: 'إغلاق',\n // history badge\n history_until: 'حتى',\n history_badge_tooltip: 'القيم السابقة',\n hyperlink_name: 'نص الرابط (اختياري)',\n // mrd-file-preview\n preview_unsupported: 'لا تتوفر معاينة لهذا النوع من الملفات',\n preview_error: 'فشل تحميل المعاينة',\n retry: 'إعادة المحاولة',\n },\n fr: {\n required: 'Ce champ est obligatoire',\n select_placeholder: 'Sélectionner une option',\n search_placeholder: 'Rechercher...',\n upload_file: 'Télécharger un fichier',\n choose_file: 'Choisir un fichier',\n clear: 'Effacer',\n today: \"Aujourd'hui\",\n invalid_email: 'Veuillez saisir une adresse e-mail valide',\n invalid_url: 'Veuillez saisir une URL valide',\n invalid_number: 'Veuillez saisir un nombre valide',\n drop_file_here: 'Déposez le fichier ici ou',\n browse: 'parcourir',\n file_too_large: 'Le fichier est trop volumineux',\n invalid_image: 'Veuillez sélectionner un fichier image',\n search_results: 'Résultats de recherche',\n no_results: 'Aucun résultat trouvé',\n load_failed_retry: 'Échec du chargement — réessayer',\n loading: 'Chargement...',\n submit: 'Enregistrer',\n cancel: 'Annuler',\n remove: 'Supprimer',\n add: 'Ajouter',\n yes: 'Oui',\n no: 'Non',\n // mrd-table footer\n table_of: 'sur',\n download: 'Télécharger',\n // mrd-table toolbar\n table_filter: 'Filtrer',\n table_filter_hide: 'Masquer le filtre',\n table_filter_active: 'actif',\n table_filter_clear_all: 'Effacer tous les filtres',\n table_new_record: 'Nouvel enregistrement',\n table_export_excel: 'Exporter vers Excel',\n doc_view_switch: 'Changer de vue',\n doc_view_tree: 'Vue arborescente',\n doc_view_list: 'Vue liste',\n // mrd-table filter popup\n filter_sorting: 'Tri',\n filter_ascending: 'Croissant',\n filter_descending: 'Décroissant',\n filter_section: 'Filtre',\n filter_apply: 'Appliquer',\n filter_clear: 'Effacer',\n filter_contains: 'Contient',\n filter_starts_with: 'Commence par',\n filter_equals: 'Égal à',\n filter_has_value: 'A une valeur',\n filter_is_empty: 'Est vide',\n filter_is_not_empty: \"N'est pas vide\",\n filter_exact: 'Exact',\n filter_range: 'Plage',\n filter_from: 'De',\n filter_to: 'À',\n filter_all: 'Tous',\n filter_select_all: 'Tous',\n filter_select_none: 'Aucun',\n filter_search_value: 'Valeur de recherche...',\n filter_no_support: \"Le filtrage n'est pas disponible pour ce type de champ.\",\n // mrd-table textblock\n textblock_show_more: 'Voir plus',\n close: 'Fermer',\n // history badge\n history_until: \"jusqu'au\",\n history_badge_tooltip: 'Valeurs précédentes',\n hyperlink_name: 'Texte du lien (optionnel)',\n // mrd-file-preview\n preview_unsupported: \"Aucun aperçu disponible pour ce type de fichier\",\n preview_error: \"Échec du chargement de l'aperçu\",\n retry: 'Réessayer',\n },\n de: {\n required: 'Dieses Feld ist erforderlich',\n select_placeholder: 'Option auswählen',\n search_placeholder: 'Suchen...',\n upload_file: 'Datei hochladen',\n choose_file: 'Datei auswählen',\n clear: 'Löschen',\n today: 'Heute',\n invalid_email: 'Bitte geben Sie eine gültige E-Mail-Adresse ein',\n invalid_url: 'Bitte geben Sie eine gültige URL ein',\n invalid_number: 'Bitte geben Sie eine gültige Zahl ein',\n drop_file_here: 'Datei hier ablegen oder',\n browse: 'durchsuchen',\n file_too_large: 'Datei ist zu groß',\n invalid_image: 'Bitte eine Bilddatei auswählen',\n search_results: 'Suchergebnisse',\n no_results: 'Keine Ergebnisse gefunden',\n load_failed_retry: 'Laden fehlgeschlagen — erneut versuchen',\n loading: 'Laden...',\n submit: 'Speichern',\n cancel: 'Abbrechen',\n remove: 'Entfernen',\n add: 'Hinzufügen',\n yes: 'Ja',\n no: 'Nein',\n // mrd-table footer\n table_of: 'von',\n download: 'Herunterladen',\n // mrd-table toolbar\n table_filter: 'Filtern',\n table_filter_hide: 'Filter ausblenden',\n table_filter_active: 'aktiv',\n table_filter_clear_all: 'Alle Filter löschen',\n table_new_record: 'Neuer Eintrag',\n table_export_excel: 'Als Excel exportieren',\n doc_view_switch: 'Ansicht wechseln',\n doc_view_tree: 'Baumansicht',\n doc_view_list: 'Listenansicht',\n // mrd-table filter popup\n filter_sorting: 'Sortierung',\n filter_ascending: 'Aufsteigend',\n filter_descending: 'Absteigend',\n filter_section: 'Filter',\n filter_apply: 'Anwenden',\n filter_clear: 'Löschen',\n filter_contains: 'Enthält',\n filter_starts_with: 'Beginnt mit',\n filter_equals: 'Gleich',\n filter_has_value: 'Hat Wert',\n filter_is_empty: 'Ist leer',\n filter_is_not_empty: 'Ist nicht leer',\n filter_exact: 'Genau',\n filter_range: 'Bereich',\n filter_from: 'Von',\n filter_to: 'Bis',\n filter_all: 'Alle',\n filter_select_all: 'Alle',\n filter_select_none: 'Keine',\n filter_search_value: 'Suchwert...',\n filter_no_support: 'Filterung ist für diesen Feldtyp nicht verfügbar.',\n // mrd-table textblock\n textblock_show_more: 'Mehr anzeigen',\n close: 'Schließen',\n // history badge\n history_until: 'bis',\n history_badge_tooltip: 'Vorherige Werte',\n hyperlink_name: 'Linktext (optional)',\n // mrd-file-preview\n preview_unsupported: 'Keine Vorschau für diesen Dateityp verfügbar',\n preview_error: 'Vorschau konnte nicht geladen werden',\n retry: 'Erneut versuchen',\n },\n es: {\n required: 'Este campo es obligatorio',\n select_placeholder: 'Seleccionar una opción',\n search_placeholder: 'Buscar...',\n upload_file: 'Subir archivo',\n choose_file: 'Elegir archivo',\n clear: 'Borrar',\n today: 'Hoy',\n invalid_email: 'Por favor, introduzca una dirección de correo electrónico válida',\n invalid_url: 'Por favor, introduzca una URL válida',\n invalid_number: 'Por favor, introduzca un número válido',\n drop_file_here: 'Suelte el archivo aquí o',\n browse: 'explorar',\n file_too_large: 'El archivo es demasiado grande',\n invalid_image: 'Seleccione un archivo de imagen',\n search_results: 'Resultados de búsqueda',\n no_results: 'No se encontraron resultados',\n load_failed_retry: 'Error al cargar — reintentar',\n loading: 'Cargando...',\n submit: 'Guardar',\n cancel: 'Cancelar',\n remove: 'Eliminar',\n add: 'Añadir',\n yes: 'Sí',\n no: 'No',\n // mrd-table footer\n table_of: 'de',\n download: 'Descargar',\n // mrd-table toolbar\n table_filter: 'Filtrar',\n table_filter_hide: 'Ocultar filtro',\n table_filter_active: 'activo',\n table_filter_clear_all: 'Borrar todos los filtros',\n table_new_record: 'Nuevo registro',\n table_export_excel: 'Exportar a Excel',\n doc_view_switch: 'Cambiar vista',\n doc_view_tree: 'Vista de árbol',\n doc_view_list: 'Vista de lista',\n // mrd-table filter popup\n filter_sorting: 'Ordenación',\n filter_ascending: 'Ascendente',\n filter_descending: 'Descendente',\n filter_section: 'Filtro',\n filter_apply: 'Aplicar',\n filter_clear: 'Borrar',\n filter_contains: 'Contiene',\n filter_starts_with: 'Empieza por',\n filter_equals: 'Igual a',\n filter_has_value: 'Tiene valor',\n filter_is_empty: 'Está vacío',\n filter_is_not_empty: 'No está vacío',\n filter_exact: 'Exacto',\n filter_range: 'Rango',\n filter_from: 'Desde',\n filter_to: 'Hasta',\n filter_all: 'Todos',\n filter_select_all: 'Todos',\n filter_select_none: 'Ninguno',\n filter_search_value: 'Valor de búsqueda...',\n filter_no_support: 'El filtrado no está disponible para este tipo de campo.',\n // mrd-table textblock\n textblock_show_more: 'Mostrar más',\n close: 'Cerrar',\n // history badge\n history_until: 'hasta',\n history_badge_tooltip: 'Valores anteriores',\n hyperlink_name: 'Texto del enlace (opcional)',\n // mrd-file-preview\n preview_unsupported: 'Vista previa no disponible para este tipo de archivo',\n preview_error: 'Error al cargar la vista previa',\n retry: 'Reintentar',\n },\n it: {\n required: 'Questo campo è obbligatorio',\n select_placeholder: \"Seleziona un'opzione\",\n search_placeholder: 'Cerca...',\n upload_file: 'Carica file',\n choose_file: 'Scegli file',\n clear: 'Cancella',\n today: 'Oggi',\n invalid_email: 'Inserisci un indirizzo email valido',\n invalid_url: 'Inserisci un URL valido',\n invalid_number: 'Inserisci un numero valido',\n drop_file_here: 'Trascina il file qui o',\n browse: 'sfoglia',\n file_too_large: 'Il file è troppo grande',\n invalid_image: 'Seleziona un file immagine',\n search_results: 'Risultati della ricerca',\n no_results: 'Nessun risultato trovato',\n load_failed_retry: 'Caricamento non riuscito — riprova',\n loading: 'Caricamento...',\n submit: 'Salva',\n cancel: 'Annulla',\n remove: 'Rimuovi',\n add: 'Aggiungi',\n yes: 'Sì',\n no: 'No',\n // mrd-table footer\n table_of: 'di',\n download: 'Scarica',\n // mrd-table toolbar\n table_filter: 'Filtra',\n table_filter_hide: 'Nascondi filtro',\n table_filter_active: 'attivo',\n table_filter_clear_all: 'Cancella tutti i filtri',\n table_new_record: 'Nuovo record',\n table_export_excel: 'Esporta in Excel',\n doc_view_switch: 'Cambia vista',\n doc_view_tree: 'Vista ad albero',\n doc_view_list: 'Vista elenco',\n // mrd-table filter popup\n filter_sorting: 'Ordinamento',\n filter_ascending: 'Crescente',\n filter_descending: 'Decrescente',\n filter_section: 'Filtro',\n filter_apply: 'Applica',\n filter_clear: 'Cancella',\n filter_contains: 'Contiene',\n filter_starts_with: 'Inizia con',\n filter_equals: 'Uguale a',\n filter_has_value: 'Ha valore',\n filter_is_empty: 'È vuoto',\n filter_is_not_empty: 'Non è vuoto',\n filter_exact: 'Esatto',\n filter_range: 'Intervallo',\n filter_from: 'Da',\n filter_to: 'A',\n filter_all: 'Tutti',\n filter_select_all: 'Tutti',\n filter_select_none: 'Nessuno',\n filter_search_value: 'Valore di ricerca...',\n filter_no_support: 'Il filtro non è disponibile per questo tipo di campo.',\n // mrd-table textblock\n textblock_show_more: 'Mostra altro',\n close: 'Chiudi',\n // history badge\n history_until: 'fino a',\n history_badge_tooltip: 'Valori precedenti',\n hyperlink_name: 'Testo del collegamento (opzionale)',\n // mrd-file-preview\n preview_unsupported: 'Nessuna anteprima disponibile per questo tipo di file',\n preview_error: \"Impossibile caricare l'anteprima\",\n retry: 'Riprova',\n },\n uk: {\n required: \"Це поле обов'язкове\",\n select_placeholder: 'Виберіть варіант',\n search_placeholder: 'Пошук...',\n upload_file: 'Завантажити файл',\n choose_file: 'Вибрати файл',\n clear: 'Очистити',\n today: 'Сьогодні',\n invalid_email: 'Будь ласка, введіть дійсну адресу електронної пошти',\n invalid_url: 'Будь ласка, введіть дійсну URL-адресу',\n invalid_number: 'Будь ласка, введіть дійсне число',\n drop_file_here: 'Перетягніть файл сюди або',\n browse: 'огляд',\n file_too_large: 'Файл занадто великий',\n invalid_image: 'Будь ласка, виберіть файл зображення',\n search_results: 'Результати пошуку',\n no_results: 'Результатів не знайдено',\n load_failed_retry: 'Не вдалося завантажити — повторити',\n loading: 'Завантаження...',\n submit: 'Зберегти',\n cancel: 'Скасувати',\n remove: 'Видалити',\n add: 'Додати',\n yes: 'Так',\n no: 'Ні',\n // mrd-table footer\n table_of: 'з',\n download: 'Завантажити',\n // mrd-table toolbar\n table_filter: 'Фільтрувати',\n table_filter_hide: 'Сховати фільтр',\n table_filter_active: 'активний',\n table_filter_clear_all: 'Очистити всі фільтри',\n table_new_record: 'Новий запис',\n table_export_excel: 'Експортувати до Excel',\n doc_view_switch: 'Змінити вигляд',\n doc_view_tree: 'Деревоподібний вигляд',\n doc_view_list: 'Список',\n // mrd-table filter popup\n filter_sorting: 'Сортування',\n filter_ascending: 'За зростанням',\n filter_descending: 'За спаданням',\n filter_section: 'Фільтр',\n filter_apply: 'Застосувати',\n filter_clear: 'Очистити',\n filter_contains: 'Містить',\n filter_starts_with: 'Починається з',\n filter_equals: 'Дорівнює',\n filter_has_value: 'Має значення',\n filter_is_empty: 'Порожнє',\n filter_is_not_empty: 'Не порожнє',\n filter_exact: 'Точно',\n filter_range: 'Діапазон',\n filter_from: 'Від',\n filter_to: 'До',\n filter_all: 'Всі',\n filter_select_all: 'Всі',\n filter_select_none: 'Жодного',\n filter_search_value: 'Значення для пошуку...',\n filter_no_support: 'Фільтрування недоступне для цього типу поля.',\n // mrd-table textblock\n textblock_show_more: 'Показати більше',\n close: 'Закрити',\n // history badge\n history_until: 'до',\n history_badge_tooltip: 'Попередні значення',\n hyperlink_name: \"Текст посилання (необов'язково)\",\n // mrd-file-preview\n preview_unsupported: 'Попередній перегляд недоступний для цього типу файлу',\n preview_error: 'Не вдалося завантажити попередній перегляд',\n retry: 'Повторити',\n },\n};\n\nexport function t(key: string, locale: string): string {\n const lang = (locale ?? 'en').split('-')[0].toLowerCase();\n const dict = translations[lang] ?? translations['en'];\n return dict[key] ?? translations['en'][key] ?? key;\n}\n"],"names":[],"mappings":"AAAA,MAAM,YAAY,GAA2C;AAC3D,IAAA,EAAE,EAAE;AACF,QAAA,QAAQ,EAAE,uBAAuB;AACjC,QAAA,kBAAkB,EAAE,qBAAqB;AACzC,QAAA,kBAAkB,EAAE,WAAW;AAC/B,QAAA,WAAW,EAAE,kBAAkB;AAC/B,QAAA,WAAW,EAAE,gBAAgB;AAC7B,QAAA,KAAK,EAAE,QAAQ;AACf,QAAA,KAAK,EAAE,SAAS;AAChB,QAAA,aAAa,EAAE,gCAAgC;AAC/C,QAAA,WAAW,EAAE,yBAAyB;AACtC,QAAA,cAAc,EAAE,0BAA0B;AAC1C,QAAA,cAAc,EAAE,2BAA2B;AAC3C,QAAA,MAAM,E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