@mmlogic/components 0.5.2 → 0.5.3
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/{cell-renderer-CmaO0CZT.js → cell-renderer-7KX9Qbml.js} +122 -1
- package/dist/cjs/{client-layout-RZ3Ix-4a.js → client-layout-CqVuJumR.js} +9 -0
- package/dist/cjs/{index-DzRfoAPz.js → index-DVbdkYO3.js} +468 -6
- package/dist/cjs/index.cjs.js +4 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mosterdcomponents.cjs.js +2 -2
- package/dist/cjs/{mrd-boolean-field_23.cjs.entry.js → mrd-boolean-field_25.cjs.entry.js} +5618 -5225
- package/dist/cjs/mrd-merge-view.cjs.entry.js +5 -5
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/documents/mrd-document-view/mrd-document-view.js +7 -8
- package/dist/collection/components/email/mrd-email-view/mrd-email-view.css +126 -0
- package/dist/collection/components/email/mrd-email-view/mrd-email-view.js +247 -0
- package/dist/collection/components/fields/file-upload-common.js +23 -7
- package/dist/collection/components/fields/mrd-boolean-field/mrd-boolean-field.js +1 -1
- package/dist/collection/components/fields/mrd-currency-field/mrd-currency-field.js +1 -1
- package/dist/collection/components/fields/mrd-date-field/mrd-date-field.js +1 -1
- package/dist/collection/components/fields/mrd-datetime-field/mrd-datetime-field.js +1 -1
- package/dist/collection/components/fields/mrd-email-field/mrd-email-field.js +1 -1
- package/dist/collection/components/fields/mrd-file-field/mrd-file-field.css +20 -1
- package/dist/collection/components/fields/mrd-file-field/mrd-file-field.js +108 -47
- package/dist/collection/components/fields/mrd-image-field/mrd-image-field.css +44 -0
- package/dist/collection/components/fields/mrd-image-field/mrd-image-field.js +126 -58
- package/dist/collection/components/fields/mrd-longtext-field/mrd-longtext-field.js +1 -1
- package/dist/collection/components/fields/mrd-number-field/mrd-number-field.js +1 -1
- package/dist/collection/components/fields/mrd-secret-field/mrd-secret-field.js +2 -2
- package/dist/collection/components/fields/mrd-text-field/mrd-text-field.js +1 -1
- package/dist/collection/components/fields/mrd-textarea-field/mrd-textarea-field.js +1 -1
- package/dist/collection/components/fields/mrd-time-field/mrd-time-field.js +1 -1
- package/dist/collection/components/form/mrd-field/mrd-field.js +5 -5
- package/dist/collection/components/form/mrd-form/mrd-form.js +55 -6
- package/dist/collection/components/invoice/mrd-invoice-view/mrd-invoice-view.css +145 -0
- package/dist/collection/components/invoice/mrd-invoice-view/mrd-invoice-view.js +281 -0
- package/dist/collection/components/layout/mrd-layout-section/field-value.js +5 -1
- package/dist/collection/components/layout/mrd-layout-section/mrd-layout-section.css +10 -0
- package/dist/collection/components/layout/mrd-layout-section/mrd-layout-section.js +38 -8
- package/dist/collection/components/merge/mrd-merge-view/mrd-merge-view.js +2 -2
- package/dist/collection/dev/api.js +20 -5
- package/dist/collection/dev/app.js +51 -13
- package/dist/collection/dev/example-data.js +126 -2
- package/dist/collection/types/client-layout.js +6 -0
- package/dist/collection/utils/document-attachments.js +27 -14
- package/dist/collection/utils/i18n.js +120 -0
- package/dist/components/cell-renderer.js +1 -1
- package/dist/components/client-layout.js +1 -1
- package/dist/components/document-attachments.js +1 -1
- package/dist/components/file-upload-common.js +1 -1
- package/dist/components/format.js +1 -1
- package/dist/components/i18n.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/mrd-boolean-field2.js +1 -1
- package/dist/components/mrd-currency-field2.js +1 -1
- package/dist/components/mrd-date-field2.js +1 -1
- package/dist/components/mrd-datetime-field2.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-email-view.d.ts +11 -0
- package/dist/components/mrd-email-view.js +1 -0
- package/dist/components/mrd-email-view2.js +1 -0
- package/dist/components/mrd-field2.js +1 -1
- package/dist/components/mrd-file-field2.js +1 -1
- package/dist/components/mrd-form.js +1 -1
- package/dist/components/mrd-image-field2.js +1 -1
- package/dist/components/mrd-invoice-view.d.ts +11 -0
- package/dist/components/mrd-invoice-view.js +1 -0
- package/dist/components/mrd-invoice-view2.js +1 -0
- package/dist/components/mrd-layout-section.js +1 -1
- package/dist/components/mrd-longtext-field2.js +1 -1
- package/dist/components/mrd-merge-view.js +1 -1
- package/dist/components/mrd-number-field2.js +1 -1
- package/dist/components/mrd-secret-field2.js +1 -1
- package/dist/components/mrd-table2.js +1 -1
- package/dist/components/mrd-text-field2.js +1 -1
- package/dist/components/mrd-textarea-field2.js +1 -2
- package/dist/components/mrd-time-field2.js +1 -1
- package/dist/components/purify.es.js +2 -0
- package/dist/esm/{cell-renderer-D63AUZxa.js → cell-renderer-DIsNX9D7.js} +122 -2
- package/dist/esm/{client-layout-DCOAAH92.js → client-layout-Bc42CfJB.js} +7 -1
- package/dist/esm/{index-DiSe6vjv.js → index-CDiBvvJU.js} +468 -6
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mosterdcomponents.js +3 -3
- package/dist/esm/{mrd-boolean-field_23.entry.js → mrd-boolean-field_25.entry.js} +5617 -5226
- package/dist/esm/mrd-merge-view.entry.js +5 -5
- package/dist/mosterdcomponents/index.esm.js +1 -1
- package/dist/mosterdcomponents/mosterdcomponents.esm.js +1 -1
- package/dist/mosterdcomponents/{p-2e16a7d0.entry.js → p-4e061416.entry.js} +1 -1
- package/dist/mosterdcomponents/p-910ebfee.entry.js +3 -0
- package/dist/mosterdcomponents/{p-DCOAAH92.js → p-Bc42CfJB.js} +1 -1
- package/dist/mosterdcomponents/p-CDiBvvJU.js +2 -0
- package/dist/mosterdcomponents/p-Ce2QDq0t.js +1 -0
- package/dist/types/components/documents/mrd-document-view/mrd-document-view.d.ts +2 -2
- package/dist/types/components/email/mrd-email-view/mrd-email-view.d.ts +52 -0
- package/dist/types/components/fields/file-upload-common.d.ts +19 -1
- package/dist/types/components/fields/mrd-file-field/mrd-file-field.d.ts +24 -10
- package/dist/types/components/fields/mrd-image-field/mrd-image-field.d.ts +27 -11
- package/dist/types/components/form/mrd-form/mrd-form.d.ts +16 -1
- package/dist/types/components/invoice/mrd-invoice-view/mrd-invoice-view.d.ts +60 -0
- package/dist/types/components/layout/mrd-layout-section/mrd-layout-section.d.ts +13 -0
- package/dist/types/components.d.ts +294 -19
- package/dist/types/types/client-layout.d.ts +6 -0
- package/dist/types/utils/document-attachments.d.ts +12 -5
- package/package.json +1 -1
- package/dist/mosterdcomponents/p-CnqDM0Gb.js +0 -1
- package/dist/mosterdcomponents/p-DiSe6vjv.js +0 -2
- package/dist/mosterdcomponents/p-b5f38707.entry.js +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ClientLayoutItemType } from './client-layout-
|
|
1
|
+
import { a as ClientLayoutItemType } from './client-layout-Bc42CfJB.js';
|
|
2
2
|
|
|
3
3
|
function formatNumber(value, locale, options) {
|
|
4
4
|
if (value === null || value === undefined || isNaN(value))
|
|
@@ -160,6 +160,21 @@ const translations = {
|
|
|
160
160
|
merge_confirm_heading: 'Bevestig samenvoegen',
|
|
161
161
|
merge_confirm_warning: 'Dit kan niet ongedaan worden gemaakt: de kandidaat wordt definitief verwijderd.',
|
|
162
162
|
merge_confirm_button: 'Samenvoegen bevestigen',
|
|
163
|
+
// mrd-invoice-view
|
|
164
|
+
invoice_title: 'Factuur',
|
|
165
|
+
invoice_date: 'Factuurdatum',
|
|
166
|
+
invoice_due_date: 'Vervaldatum',
|
|
167
|
+
invoice_subtotal: 'Subtotaal',
|
|
168
|
+
invoice_tax: 'BTW',
|
|
169
|
+
invoice_total: 'Totaal',
|
|
170
|
+
invoice_customer: 'Klant',
|
|
171
|
+
invoice_supplier: 'Leverancier',
|
|
172
|
+
// mrd-email-view
|
|
173
|
+
email_from: 'Van',
|
|
174
|
+
email_to: 'Aan',
|
|
175
|
+
email_cc: 'Cc',
|
|
176
|
+
email_date: 'Datum',
|
|
177
|
+
email_show_headers: 'Toon technische headers',
|
|
163
178
|
},
|
|
164
179
|
en: {
|
|
165
180
|
required: 'This field is required',
|
|
@@ -247,6 +262,21 @@ const translations = {
|
|
|
247
262
|
merge_confirm_heading: 'Confirm merge',
|
|
248
263
|
merge_confirm_warning: 'This cannot be undone: the candidate will be permanently deleted.',
|
|
249
264
|
merge_confirm_button: 'Confirm merge',
|
|
265
|
+
// mrd-invoice-view
|
|
266
|
+
invoice_title: 'Invoice',
|
|
267
|
+
invoice_date: 'Invoice date',
|
|
268
|
+
invoice_due_date: 'Due date',
|
|
269
|
+
invoice_subtotal: 'Subtotal',
|
|
270
|
+
invoice_tax: 'Tax',
|
|
271
|
+
invoice_total: 'Total',
|
|
272
|
+
invoice_customer: 'Customer',
|
|
273
|
+
invoice_supplier: 'Supplier',
|
|
274
|
+
// mrd-email-view
|
|
275
|
+
email_from: 'From',
|
|
276
|
+
email_to: 'To',
|
|
277
|
+
email_cc: 'Cc',
|
|
278
|
+
email_date: 'Date',
|
|
279
|
+
email_show_headers: 'Show technical headers',
|
|
250
280
|
},
|
|
251
281
|
ar: {
|
|
252
282
|
required: 'هذا الحقل مطلوب',
|
|
@@ -328,6 +358,21 @@ const translations = {
|
|
|
328
358
|
merge_confirm_heading: 'تأكيد الدمج',
|
|
329
359
|
merge_confirm_warning: 'لا يمكن التراجع عن هذا الإجراء: سيتم حذف المرشح نهائياً.',
|
|
330
360
|
merge_confirm_button: 'تأكيد الدمج',
|
|
361
|
+
// mrd-invoice-view
|
|
362
|
+
invoice_title: 'فاتورة',
|
|
363
|
+
invoice_date: 'تاريخ الفاتورة',
|
|
364
|
+
invoice_due_date: 'تاريخ الاستحقاق',
|
|
365
|
+
invoice_subtotal: 'المجموع الفرعي',
|
|
366
|
+
invoice_tax: 'الضريبة',
|
|
367
|
+
invoice_total: 'الإجمالي',
|
|
368
|
+
invoice_customer: 'العميل',
|
|
369
|
+
invoice_supplier: 'المورد',
|
|
370
|
+
// mrd-email-view
|
|
371
|
+
email_from: 'من',
|
|
372
|
+
email_to: 'إلى',
|
|
373
|
+
email_cc: 'نسخة',
|
|
374
|
+
email_date: 'التاريخ',
|
|
375
|
+
email_show_headers: 'إظهار الترويسات التقنية',
|
|
331
376
|
},
|
|
332
377
|
fr: {
|
|
333
378
|
required: 'Ce champ est obligatoire',
|
|
@@ -409,6 +454,21 @@ const translations = {
|
|
|
409
454
|
merge_confirm_heading: 'Confirmer la fusion',
|
|
410
455
|
merge_confirm_warning: 'Cette action est irréversible : le candidat sera définitivement supprimé.',
|
|
411
456
|
merge_confirm_button: 'Confirmer la fusion',
|
|
457
|
+
// mrd-invoice-view
|
|
458
|
+
invoice_title: 'Facture',
|
|
459
|
+
invoice_date: 'Date de facture',
|
|
460
|
+
invoice_due_date: "Date d'échéance",
|
|
461
|
+
invoice_subtotal: 'Sous-total',
|
|
462
|
+
invoice_tax: 'TVA',
|
|
463
|
+
invoice_total: 'Total',
|
|
464
|
+
invoice_customer: 'Client',
|
|
465
|
+
invoice_supplier: 'Fournisseur',
|
|
466
|
+
// mrd-email-view
|
|
467
|
+
email_from: 'De',
|
|
468
|
+
email_to: 'À',
|
|
469
|
+
email_cc: 'Cc',
|
|
470
|
+
email_date: 'Date',
|
|
471
|
+
email_show_headers: 'Afficher les en-têtes techniques',
|
|
412
472
|
},
|
|
413
473
|
de: {
|
|
414
474
|
required: 'Dieses Feld ist erforderlich',
|
|
@@ -490,6 +550,21 @@ const translations = {
|
|
|
490
550
|
merge_confirm_heading: 'Zusammenführung bestätigen',
|
|
491
551
|
merge_confirm_warning: 'Dies kann nicht rückgängig gemacht werden: der Kandidat wird endgültig gelöscht.',
|
|
492
552
|
merge_confirm_button: 'Zusammenführung bestätigen',
|
|
553
|
+
// mrd-invoice-view
|
|
554
|
+
invoice_title: 'Rechnung',
|
|
555
|
+
invoice_date: 'Rechnungsdatum',
|
|
556
|
+
invoice_due_date: 'Fälligkeitsdatum',
|
|
557
|
+
invoice_subtotal: 'Zwischensumme',
|
|
558
|
+
invoice_tax: 'MwSt.',
|
|
559
|
+
invoice_total: 'Gesamt',
|
|
560
|
+
invoice_customer: 'Kunde',
|
|
561
|
+
invoice_supplier: 'Lieferant',
|
|
562
|
+
// mrd-email-view
|
|
563
|
+
email_from: 'Von',
|
|
564
|
+
email_to: 'An',
|
|
565
|
+
email_cc: 'Cc',
|
|
566
|
+
email_date: 'Datum',
|
|
567
|
+
email_show_headers: 'Technische Header anzeigen',
|
|
493
568
|
},
|
|
494
569
|
es: {
|
|
495
570
|
required: 'Este campo es obligatorio',
|
|
@@ -571,6 +646,21 @@ const translations = {
|
|
|
571
646
|
merge_confirm_heading: 'Confirmar fusión',
|
|
572
647
|
merge_confirm_warning: 'Esto no se puede deshacer: el candidato se eliminará permanentemente.',
|
|
573
648
|
merge_confirm_button: 'Confirmar fusión',
|
|
649
|
+
// mrd-invoice-view
|
|
650
|
+
invoice_title: 'Factura',
|
|
651
|
+
invoice_date: 'Fecha de factura',
|
|
652
|
+
invoice_due_date: 'Fecha de vencimiento',
|
|
653
|
+
invoice_subtotal: 'Subtotal',
|
|
654
|
+
invoice_tax: 'Impuesto',
|
|
655
|
+
invoice_total: 'Total',
|
|
656
|
+
invoice_customer: 'Cliente',
|
|
657
|
+
invoice_supplier: 'Proveedor',
|
|
658
|
+
// mrd-email-view
|
|
659
|
+
email_from: 'De',
|
|
660
|
+
email_to: 'Para',
|
|
661
|
+
email_cc: 'Cc',
|
|
662
|
+
email_date: 'Fecha',
|
|
663
|
+
email_show_headers: 'Mostrar encabezados técnicos',
|
|
574
664
|
},
|
|
575
665
|
it: {
|
|
576
666
|
required: 'Questo campo è obbligatorio',
|
|
@@ -652,6 +742,21 @@ const translations = {
|
|
|
652
742
|
merge_confirm_heading: 'Conferma unione',
|
|
653
743
|
merge_confirm_warning: "Questa azione non può essere annullata: il candidato verrà eliminato definitivamente.",
|
|
654
744
|
merge_confirm_button: 'Conferma unione',
|
|
745
|
+
// mrd-invoice-view
|
|
746
|
+
invoice_title: 'Fattura',
|
|
747
|
+
invoice_date: 'Data fattura',
|
|
748
|
+
invoice_due_date: 'Data di scadenza',
|
|
749
|
+
invoice_subtotal: 'Subtotale',
|
|
750
|
+
invoice_tax: 'IVA',
|
|
751
|
+
invoice_total: 'Totale',
|
|
752
|
+
invoice_customer: 'Cliente',
|
|
753
|
+
invoice_supplier: 'Fornitore',
|
|
754
|
+
// mrd-email-view
|
|
755
|
+
email_from: 'Da',
|
|
756
|
+
email_to: 'A',
|
|
757
|
+
email_cc: 'Cc',
|
|
758
|
+
email_date: 'Data',
|
|
759
|
+
email_show_headers: 'Mostra intestazioni tecniche',
|
|
655
760
|
},
|
|
656
761
|
uk: {
|
|
657
762
|
required: "Це поле обов'язкове",
|
|
@@ -733,6 +838,21 @@ const translations = {
|
|
|
733
838
|
merge_confirm_heading: 'Підтвердити об\'єднання',
|
|
734
839
|
merge_confirm_warning: 'Цю дію не можна скасувати: кандидат буде остаточно видалено.',
|
|
735
840
|
merge_confirm_button: 'Підтвердити об\'єднання',
|
|
841
|
+
// mrd-invoice-view
|
|
842
|
+
invoice_title: 'Рахунок-фактура',
|
|
843
|
+
invoice_date: 'Дата рахунку',
|
|
844
|
+
invoice_due_date: 'Термін оплати',
|
|
845
|
+
invoice_subtotal: 'Проміжний підсумок',
|
|
846
|
+
invoice_tax: 'ПДВ',
|
|
847
|
+
invoice_total: 'Разом',
|
|
848
|
+
invoice_customer: 'Клієнт',
|
|
849
|
+
invoice_supplier: 'Постачальник',
|
|
850
|
+
// mrd-email-view
|
|
851
|
+
email_from: 'Від',
|
|
852
|
+
email_to: 'Кому',
|
|
853
|
+
email_cc: 'Копія',
|
|
854
|
+
email_date: 'Дата',
|
|
855
|
+
email_show_headers: 'Показати технічні заголовки',
|
|
736
856
|
},
|
|
737
857
|
};
|
|
738
858
|
function t(key, locale) {
|
|
@@ -851,4 +971,4 @@ class CellRenderer {
|
|
|
851
971
|
}
|
|
852
972
|
}
|
|
853
973
|
|
|
854
|
-
export { CellRenderer as C,
|
|
974
|
+
export { CellRenderer as C, formatDateTime as a, formatCurrency as b, formatNumber as c, formatPercentage as d, formatDate as f, parseLocalizedNumber as p, t };
|
|
@@ -72,6 +72,12 @@ var ClientLayoutNavigateBehaviour;
|
|
|
72
72
|
})(ClientLayoutNavigateBehaviour || (ClientLayoutNavigateBehaviour = {}));
|
|
73
73
|
/** Well-known archetype ids the client renders specially. */
|
|
74
74
|
const ARCHETYPE_DOCUMENT = 'commons.document';
|
|
75
|
+
const ARCHETYPE_INVOICE = 'commons.invoice';
|
|
76
|
+
const ARCHETYPE_EMAIL = 'commons.email';
|
|
77
|
+
/** Bound by a `commons.invoice`'s `lines` relation target class. Used to find the
|
|
78
|
+
* RELATED_VIEW item for the line items generically, by archetype id rather than
|
|
79
|
+
* by name/class string. */
|
|
80
|
+
const ARCHETYPE_INVOICE_LINE = 'commons.invoiceLine';
|
|
75
81
|
/**
|
|
76
82
|
* Find a binding for `archetypeId` in a published `archetypes` list.
|
|
77
83
|
* Returns `undefined` when the archetype is absent — callers fall back to the
|
|
@@ -81,4 +87,4 @@ function resolveArchetype(archetypes, archetypeId) {
|
|
|
81
87
|
return (archetypes !== null && archetypes !== void 0 ? archetypes : []).find(a => a.archetype === archetypeId);
|
|
82
88
|
}
|
|
83
89
|
|
|
84
|
-
export { ARCHETYPE_DOCUMENT as A, ClientLayoutType as C, ClientLayoutItemType as a, ClientLayoutItemFieldDataType as b, ClientLayoutItemRelationDisplayType as c, ClientLayoutItemRelationEditBehavior as d, ClientLayoutNavigateBehaviour as e, resolveArchetype as r };
|
|
90
|
+
export { ARCHETYPE_DOCUMENT as A, ClientLayoutType as C, ClientLayoutItemType as a, ClientLayoutItemFieldDataType as b, ClientLayoutItemRelationDisplayType as c, ClientLayoutItemRelationEditBehavior as d, ClientLayoutNavigateBehaviour as e, ARCHETYPE_INVOICE as f, ARCHETYPE_EMAIL as g, ARCHETYPE_INVOICE_LINE as h, resolveArchetype as r };
|