@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,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var clientLayout = require('./client-layout-
|
|
3
|
+
var clientLayout = require('./client-layout-CqVuJumR.js');
|
|
4
4
|
|
|
5
5
|
function formatNumber(value, locale, options) {
|
|
6
6
|
if (value === null || value === undefined || isNaN(value))
|
|
@@ -162,6 +162,21 @@ const translations = {
|
|
|
162
162
|
merge_confirm_heading: 'Bevestig samenvoegen',
|
|
163
163
|
merge_confirm_warning: 'Dit kan niet ongedaan worden gemaakt: de kandidaat wordt definitief verwijderd.',
|
|
164
164
|
merge_confirm_button: 'Samenvoegen bevestigen',
|
|
165
|
+
// mrd-invoice-view
|
|
166
|
+
invoice_title: 'Factuur',
|
|
167
|
+
invoice_date: 'Factuurdatum',
|
|
168
|
+
invoice_due_date: 'Vervaldatum',
|
|
169
|
+
invoice_subtotal: 'Subtotaal',
|
|
170
|
+
invoice_tax: 'BTW',
|
|
171
|
+
invoice_total: 'Totaal',
|
|
172
|
+
invoice_customer: 'Klant',
|
|
173
|
+
invoice_supplier: 'Leverancier',
|
|
174
|
+
// mrd-email-view
|
|
175
|
+
email_from: 'Van',
|
|
176
|
+
email_to: 'Aan',
|
|
177
|
+
email_cc: 'Cc',
|
|
178
|
+
email_date: 'Datum',
|
|
179
|
+
email_show_headers: 'Toon technische headers',
|
|
165
180
|
},
|
|
166
181
|
en: {
|
|
167
182
|
required: 'This field is required',
|
|
@@ -249,6 +264,21 @@ const translations = {
|
|
|
249
264
|
merge_confirm_heading: 'Confirm merge',
|
|
250
265
|
merge_confirm_warning: 'This cannot be undone: the candidate will be permanently deleted.',
|
|
251
266
|
merge_confirm_button: 'Confirm merge',
|
|
267
|
+
// mrd-invoice-view
|
|
268
|
+
invoice_title: 'Invoice',
|
|
269
|
+
invoice_date: 'Invoice date',
|
|
270
|
+
invoice_due_date: 'Due date',
|
|
271
|
+
invoice_subtotal: 'Subtotal',
|
|
272
|
+
invoice_tax: 'Tax',
|
|
273
|
+
invoice_total: 'Total',
|
|
274
|
+
invoice_customer: 'Customer',
|
|
275
|
+
invoice_supplier: 'Supplier',
|
|
276
|
+
// mrd-email-view
|
|
277
|
+
email_from: 'From',
|
|
278
|
+
email_to: 'To',
|
|
279
|
+
email_cc: 'Cc',
|
|
280
|
+
email_date: 'Date',
|
|
281
|
+
email_show_headers: 'Show technical headers',
|
|
252
282
|
},
|
|
253
283
|
ar: {
|
|
254
284
|
required: 'هذا الحقل مطلوب',
|
|
@@ -330,6 +360,21 @@ const translations = {
|
|
|
330
360
|
merge_confirm_heading: 'تأكيد الدمج',
|
|
331
361
|
merge_confirm_warning: 'لا يمكن التراجع عن هذا الإجراء: سيتم حذف المرشح نهائياً.',
|
|
332
362
|
merge_confirm_button: 'تأكيد الدمج',
|
|
363
|
+
// mrd-invoice-view
|
|
364
|
+
invoice_title: 'فاتورة',
|
|
365
|
+
invoice_date: 'تاريخ الفاتورة',
|
|
366
|
+
invoice_due_date: 'تاريخ الاستحقاق',
|
|
367
|
+
invoice_subtotal: 'المجموع الفرعي',
|
|
368
|
+
invoice_tax: 'الضريبة',
|
|
369
|
+
invoice_total: 'الإجمالي',
|
|
370
|
+
invoice_customer: 'العميل',
|
|
371
|
+
invoice_supplier: 'المورد',
|
|
372
|
+
// mrd-email-view
|
|
373
|
+
email_from: 'من',
|
|
374
|
+
email_to: 'إلى',
|
|
375
|
+
email_cc: 'نسخة',
|
|
376
|
+
email_date: 'التاريخ',
|
|
377
|
+
email_show_headers: 'إظهار الترويسات التقنية',
|
|
333
378
|
},
|
|
334
379
|
fr: {
|
|
335
380
|
required: 'Ce champ est obligatoire',
|
|
@@ -411,6 +456,21 @@ const translations = {
|
|
|
411
456
|
merge_confirm_heading: 'Confirmer la fusion',
|
|
412
457
|
merge_confirm_warning: 'Cette action est irréversible : le candidat sera définitivement supprimé.',
|
|
413
458
|
merge_confirm_button: 'Confirmer la fusion',
|
|
459
|
+
// mrd-invoice-view
|
|
460
|
+
invoice_title: 'Facture',
|
|
461
|
+
invoice_date: 'Date de facture',
|
|
462
|
+
invoice_due_date: "Date d'échéance",
|
|
463
|
+
invoice_subtotal: 'Sous-total',
|
|
464
|
+
invoice_tax: 'TVA',
|
|
465
|
+
invoice_total: 'Total',
|
|
466
|
+
invoice_customer: 'Client',
|
|
467
|
+
invoice_supplier: 'Fournisseur',
|
|
468
|
+
// mrd-email-view
|
|
469
|
+
email_from: 'De',
|
|
470
|
+
email_to: 'À',
|
|
471
|
+
email_cc: 'Cc',
|
|
472
|
+
email_date: 'Date',
|
|
473
|
+
email_show_headers: 'Afficher les en-têtes techniques',
|
|
414
474
|
},
|
|
415
475
|
de: {
|
|
416
476
|
required: 'Dieses Feld ist erforderlich',
|
|
@@ -492,6 +552,21 @@ const translations = {
|
|
|
492
552
|
merge_confirm_heading: 'Zusammenführung bestätigen',
|
|
493
553
|
merge_confirm_warning: 'Dies kann nicht rückgängig gemacht werden: der Kandidat wird endgültig gelöscht.',
|
|
494
554
|
merge_confirm_button: 'Zusammenführung bestätigen',
|
|
555
|
+
// mrd-invoice-view
|
|
556
|
+
invoice_title: 'Rechnung',
|
|
557
|
+
invoice_date: 'Rechnungsdatum',
|
|
558
|
+
invoice_due_date: 'Fälligkeitsdatum',
|
|
559
|
+
invoice_subtotal: 'Zwischensumme',
|
|
560
|
+
invoice_tax: 'MwSt.',
|
|
561
|
+
invoice_total: 'Gesamt',
|
|
562
|
+
invoice_customer: 'Kunde',
|
|
563
|
+
invoice_supplier: 'Lieferant',
|
|
564
|
+
// mrd-email-view
|
|
565
|
+
email_from: 'Von',
|
|
566
|
+
email_to: 'An',
|
|
567
|
+
email_cc: 'Cc',
|
|
568
|
+
email_date: 'Datum',
|
|
569
|
+
email_show_headers: 'Technische Header anzeigen',
|
|
495
570
|
},
|
|
496
571
|
es: {
|
|
497
572
|
required: 'Este campo es obligatorio',
|
|
@@ -573,6 +648,21 @@ const translations = {
|
|
|
573
648
|
merge_confirm_heading: 'Confirmar fusión',
|
|
574
649
|
merge_confirm_warning: 'Esto no se puede deshacer: el candidato se eliminará permanentemente.',
|
|
575
650
|
merge_confirm_button: 'Confirmar fusión',
|
|
651
|
+
// mrd-invoice-view
|
|
652
|
+
invoice_title: 'Factura',
|
|
653
|
+
invoice_date: 'Fecha de factura',
|
|
654
|
+
invoice_due_date: 'Fecha de vencimiento',
|
|
655
|
+
invoice_subtotal: 'Subtotal',
|
|
656
|
+
invoice_tax: 'Impuesto',
|
|
657
|
+
invoice_total: 'Total',
|
|
658
|
+
invoice_customer: 'Cliente',
|
|
659
|
+
invoice_supplier: 'Proveedor',
|
|
660
|
+
// mrd-email-view
|
|
661
|
+
email_from: 'De',
|
|
662
|
+
email_to: 'Para',
|
|
663
|
+
email_cc: 'Cc',
|
|
664
|
+
email_date: 'Fecha',
|
|
665
|
+
email_show_headers: 'Mostrar encabezados técnicos',
|
|
576
666
|
},
|
|
577
667
|
it: {
|
|
578
668
|
required: 'Questo campo è obbligatorio',
|
|
@@ -654,6 +744,21 @@ const translations = {
|
|
|
654
744
|
merge_confirm_heading: 'Conferma unione',
|
|
655
745
|
merge_confirm_warning: "Questa azione non può essere annullata: il candidato verrà eliminato definitivamente.",
|
|
656
746
|
merge_confirm_button: 'Conferma unione',
|
|
747
|
+
// mrd-invoice-view
|
|
748
|
+
invoice_title: 'Fattura',
|
|
749
|
+
invoice_date: 'Data fattura',
|
|
750
|
+
invoice_due_date: 'Data di scadenza',
|
|
751
|
+
invoice_subtotal: 'Subtotale',
|
|
752
|
+
invoice_tax: 'IVA',
|
|
753
|
+
invoice_total: 'Totale',
|
|
754
|
+
invoice_customer: 'Cliente',
|
|
755
|
+
invoice_supplier: 'Fornitore',
|
|
756
|
+
// mrd-email-view
|
|
757
|
+
email_from: 'Da',
|
|
758
|
+
email_to: 'A',
|
|
759
|
+
email_cc: 'Cc',
|
|
760
|
+
email_date: 'Data',
|
|
761
|
+
email_show_headers: 'Mostra intestazioni tecniche',
|
|
657
762
|
},
|
|
658
763
|
uk: {
|
|
659
764
|
required: "Це поле обов'язкове",
|
|
@@ -735,6 +840,21 @@ const translations = {
|
|
|
735
840
|
merge_confirm_heading: 'Підтвердити об\'єднання',
|
|
736
841
|
merge_confirm_warning: 'Цю дію не можна скасувати: кандидат буде остаточно видалено.',
|
|
737
842
|
merge_confirm_button: 'Підтвердити об\'єднання',
|
|
843
|
+
// mrd-invoice-view
|
|
844
|
+
invoice_title: 'Рахунок-фактура',
|
|
845
|
+
invoice_date: 'Дата рахунку',
|
|
846
|
+
invoice_due_date: 'Термін оплати',
|
|
847
|
+
invoice_subtotal: 'Проміжний підсумок',
|
|
848
|
+
invoice_tax: 'ПДВ',
|
|
849
|
+
invoice_total: 'Разом',
|
|
850
|
+
invoice_customer: 'Клієнт',
|
|
851
|
+
invoice_supplier: 'Постачальник',
|
|
852
|
+
// mrd-email-view
|
|
853
|
+
email_from: 'Від',
|
|
854
|
+
email_to: 'Кому',
|
|
855
|
+
email_cc: 'Копія',
|
|
856
|
+
email_date: 'Дата',
|
|
857
|
+
email_show_headers: 'Показати технічні заголовки',
|
|
738
858
|
},
|
|
739
859
|
};
|
|
740
860
|
function t(key, locale) {
|
|
@@ -856,6 +976,7 @@ class CellRenderer {
|
|
|
856
976
|
exports.CellRenderer = CellRenderer;
|
|
857
977
|
exports.formatCurrency = formatCurrency;
|
|
858
978
|
exports.formatDate = formatDate;
|
|
979
|
+
exports.formatDateTime = formatDateTime;
|
|
859
980
|
exports.formatNumber = formatNumber;
|
|
860
981
|
exports.formatPercentage = formatPercentage;
|
|
861
982
|
exports.parseLocalizedNumber = parseLocalizedNumber;
|
|
@@ -74,6 +74,12 @@ exports.ClientLayoutNavigateBehaviour = void 0;
|
|
|
74
74
|
})(exports.ClientLayoutNavigateBehaviour || (exports.ClientLayoutNavigateBehaviour = {}));
|
|
75
75
|
/** Well-known archetype ids the client renders specially. */
|
|
76
76
|
const ARCHETYPE_DOCUMENT = 'commons.document';
|
|
77
|
+
const ARCHETYPE_INVOICE = 'commons.invoice';
|
|
78
|
+
const ARCHETYPE_EMAIL = 'commons.email';
|
|
79
|
+
/** Bound by a `commons.invoice`'s `lines` relation target class. Used to find the
|
|
80
|
+
* RELATED_VIEW item for the line items generically, by archetype id rather than
|
|
81
|
+
* by name/class string. */
|
|
82
|
+
const ARCHETYPE_INVOICE_LINE = 'commons.invoiceLine';
|
|
77
83
|
/**
|
|
78
84
|
* Find a binding for `archetypeId` in a published `archetypes` list.
|
|
79
85
|
* Returns `undefined` when the archetype is absent — callers fall back to the
|
|
@@ -84,4 +90,7 @@ function resolveArchetype(archetypes, archetypeId) {
|
|
|
84
90
|
}
|
|
85
91
|
|
|
86
92
|
exports.ARCHETYPE_DOCUMENT = ARCHETYPE_DOCUMENT;
|
|
93
|
+
exports.ARCHETYPE_EMAIL = ARCHETYPE_EMAIL;
|
|
94
|
+
exports.ARCHETYPE_INVOICE = ARCHETYPE_INVOICE;
|
|
95
|
+
exports.ARCHETYPE_INVOICE_LINE = ARCHETYPE_INVOICE_LINE;
|
|
87
96
|
exports.resolveArchetype = resolveArchetype;
|