@venite/components 0.16.24 → 0.16.27
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/{index-b22a8b22.js → index-de13bd01.js} +0 -0
- package/dist/cjs/ion-segment_16.cjs.entry.js +81 -41
- package/dist/cjs/ldf-day-name_5.cjs.entry.js +21 -15
- package/dist/cjs/ldf-editable-filter-documents.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editor-cursors.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editor.cjs.entry.js +1 -1
- package/dist/collection/components/bible-reading/bible-reading.i18n.es.json +11 -2
- package/dist/collection/components/bible-reading/bible-reading.js +12 -12
- package/dist/collection/components/bible-reading/dist/bible-reading.js +12 -12
- package/dist/collection/components/editable-add-block/editable-add-block.i18n.es.json +5 -0
- package/dist/collection/components/editable-add-block-menu/editable-add-block-menu.i18n.es.json +48 -0
- package/dist/collection/components/editable-antiphon-field/editable-antiphon-field.i18n.es.json +11 -0
- package/dist/collection/components/editable-condition/editable-condition.i18n.es.json +7 -0
- package/dist/collection/components/editable-condition-piece/editable-condition-piece.i18n.es.json +21 -0
- package/dist/collection/components/editable-delete/editable-delete.i18n.es.json +6 -0
- package/dist/collection/components/editable-filter-documents/dist/editable-filter-documents.js +1 -1
- package/dist/collection/components/editable-filter-documents/editable-filter-documents.i18n.es.json +9 -0
- package/dist/collection/components/editable-filter-documents/editable-filter-documents.js +1 -1
- package/dist/collection/components/editable-metadata/editable-metadata.i18n.es.json +51 -0
- package/dist/collection/components/editable-metadata-buttons/editable-metadata-buttons.i18n.es.json +31 -0
- package/dist/collection/components/editable-metadata-metadata-fields/editable-metadata-metadata-fields.i18n.es.json +48 -0
- package/dist/collection/components/editable-preference-option/editable-preference-option.i18n.es.json +9 -0
- package/dist/collection/components/editable-preferences/editable-preferences.i18n.es.json +10 -0
- package/dist/collection/components/editable-string-list/editable-string-list.i18n.es.json +18 -0
- package/dist/collection/components/editable-text/editable-text.i18n.es.json +3 -0
- package/dist/collection/components/heading/heading.i18n.es.json +4 -0
- package/dist/collection/components/image/image.i18n.es.json +4 -0
- package/dist/collection/components/liturgical-document/liturgical-document.i18n.es.json +45 -0
- package/dist/collection/components/meditation/meditation.i18n.es.json +8 -0
- package/dist/collection/components/psalm/dist/psalm.js +3 -1
- package/dist/collection/components/psalm/psalm.i18n.es.json +10 -0
- package/dist/collection/components/psalm/psalm.js +2 -0
- package/dist/collection/components/responsive-prayer/responsive-prayer.i18n.es.json +7 -0
- package/dist/collection/components/string/dist/string.js +4 -4
- package/dist/collection/components/string/string.js +6 -6
- package/dist/collection/components/text/text.i18n.es.json +6 -3
- package/dist/collection/i18n/bible-reading.i18n.es.json +11 -2
- package/dist/collection/i18n/editable-add-block-menu.i18n.es.json +48 -0
- package/dist/collection/i18n/editable-add-block.i18n.es.json +5 -0
- package/dist/collection/i18n/editable-antiphon-field.i18n.es.json +11 -0
- package/dist/collection/i18n/editable-condition-piece.i18n.es.json +21 -0
- package/dist/collection/i18n/editable-condition.i18n.es.json +7 -0
- package/dist/collection/i18n/editable-delete.i18n.es.json +6 -0
- package/dist/collection/i18n/editable-filter-documents.i18n.es.json +9 -0
- package/dist/collection/i18n/editable-metadata-buttons.i18n.es.json +31 -0
- package/dist/collection/i18n/editable-metadata-metadata-fields.i18n.es.json +48 -0
- package/dist/collection/i18n/editable-metadata.i18n.es.json +51 -0
- package/dist/collection/i18n/editable-preference-option.i18n.es.json +9 -0
- package/dist/collection/i18n/editable-preferences.i18n.es.json +10 -0
- package/dist/collection/i18n/editable-string-list.i18n.es.json +18 -0
- package/dist/collection/i18n/editable-text.i18n.es.json +3 -0
- package/dist/collection/i18n/heading.i18n.es.json +4 -0
- package/dist/collection/i18n/image.i18n.es.json +4 -0
- package/dist/collection/i18n/liturgical-document.i18n.es.json +45 -0
- package/dist/collection/i18n/meditation.i18n.es.json +8 -0
- package/dist/collection/i18n/psalm.i18n.es.json +10 -0
- package/dist/collection/i18n/responsive-prayer.i18n.es.json +7 -0
- package/dist/collection/i18n/text.i18n.es.json +6 -3
- package/dist/esm/{index-a3645557.js → index-1bf6d100.js} +0 -0
- package/dist/esm/ion-segment_16.entry.js +69 -29
- package/dist/esm/ldf-day-name_5.entry.js +21 -15
- package/dist/esm/ldf-editable-filter-documents.entry.js +1 -1
- package/dist/esm/ldf-editor-cursors.entry.js +1 -1
- package/dist/esm/ldf-editor.entry.js +1 -1
- package/dist/ldf/i18n/bible-reading.i18n.es.json +11 -2
- package/dist/ldf/i18n/editable-add-block-menu.i18n.es.json +48 -0
- package/dist/ldf/i18n/editable-add-block.i18n.es.json +5 -0
- package/dist/ldf/i18n/editable-antiphon-field.i18n.es.json +11 -0
- package/dist/ldf/i18n/editable-condition-piece.i18n.es.json +21 -0
- package/dist/ldf/i18n/editable-condition.i18n.es.json +7 -0
- package/dist/ldf/i18n/editable-delete.i18n.es.json +6 -0
- package/dist/ldf/i18n/editable-filter-documents.i18n.es.json +9 -0
- package/dist/ldf/i18n/editable-metadata-buttons.i18n.es.json +31 -0
- package/dist/ldf/i18n/editable-metadata-metadata-fields.i18n.es.json +48 -0
- package/dist/ldf/i18n/editable-metadata.i18n.es.json +51 -0
- package/dist/ldf/i18n/editable-preference-option.i18n.es.json +9 -0
- package/dist/ldf/i18n/editable-preferences.i18n.es.json +10 -0
- package/dist/ldf/i18n/editable-string-list.i18n.es.json +18 -0
- package/dist/ldf/i18n/editable-text.i18n.es.json +3 -0
- package/dist/ldf/i18n/heading.i18n.es.json +4 -0
- package/dist/ldf/i18n/image.i18n.es.json +4 -0
- package/dist/ldf/i18n/liturgical-document.i18n.es.json +45 -0
- package/dist/ldf/i18n/meditation.i18n.es.json +8 -0
- package/dist/ldf/i18n/psalm.i18n.es.json +10 -0
- package/dist/ldf/i18n/responsive-prayer.i18n.es.json +7 -0
- package/dist/ldf/i18n/text.i18n.es.json +6 -3
- package/dist/ldf/ldf.esm.js +1 -1
- package/dist/ldf/{p-ba9eda0b.entry.js → p-23af1bc3.entry.js} +1 -1
- package/dist/ldf/{p-8e00a6ae.js → p-3ca74c80.js} +0 -0
- package/dist/ldf/{p-39d4be39.entry.js → p-70e47f8b.entry.js} +1 -1
- package/dist/ldf/p-94949614.entry.js +1 -0
- package/dist/ldf/p-be040ae6.entry.js +1 -0
- package/dist/ldf/{p-304a2bdb.entry.js → p-c1a86b14.entry.js} +1 -1
- package/package.json +2 -2
- package/dist/ldf/p-95650471.entry.js +0 -1
- package/dist/ldf/p-e301606a.entry.js +0 -1
|
File without changes
|
|
@@ -7,7 +7,7 @@ const ionicGlobal = require('./ionic-global-581fb4f8.js');
|
|
|
7
7
|
const helpers = require('./helpers-41dfb43a.js');
|
|
8
8
|
const theme = require('./theme-81caa5b0.js');
|
|
9
9
|
const overlays = require('./overlays-eb464d6d.js');
|
|
10
|
-
const book$
|
|
10
|
+
const book$2 = require('./book-1a92678a.js');
|
|
11
11
|
const rubric = require('./rubric-0afbe4c0.js');
|
|
12
12
|
const heading$1 = require('./heading-5afc2b24.js');
|
|
13
13
|
const option$1 = require('./option-a078d432.js');
|
|
@@ -417,23 +417,48 @@ const SkeletonText = class {
|
|
|
417
417
|
SkeletonText.style = skeletonTextCss;
|
|
418
418
|
|
|
419
419
|
const amen$1 = "Amen.";
|
|
420
|
+
const book$1 = "Book";
|
|
421
|
+
const chapter$1 = "Chapter";
|
|
422
|
+
const citation$5 = "Citation (e.g., John 1:1)";
|
|
423
|
+
const label$5 = "Label";
|
|
424
|
+
const loading$1 = "Loading...";
|
|
425
|
+
const verse$1 = "Verse";
|
|
426
|
+
const changeReading$1 = "Change Reading";
|
|
427
|
+
const newCitation$1 = "Biblical citation.";
|
|
428
|
+
const cancel$2 = "Cancel";
|
|
429
|
+
const ok$2 = "OK";
|
|
430
|
+
const EN$8 = {
|
|
431
|
+
amen: amen$1,
|
|
432
|
+
book: book$1,
|
|
433
|
+
chapter: chapter$1,
|
|
434
|
+
citation: citation$5,
|
|
435
|
+
label: label$5,
|
|
436
|
+
loading: loading$1,
|
|
437
|
+
verse: verse$1,
|
|
438
|
+
changeReading: changeReading$1,
|
|
439
|
+
newCitation: newCitation$1,
|
|
440
|
+
cancel: cancel$2,
|
|
441
|
+
ok: ok$2
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
const amen = "Amen.";
|
|
420
445
|
const book = "Book";
|
|
421
446
|
const chapter = "Chapter";
|
|
422
|
-
const citation$
|
|
423
|
-
const label$
|
|
424
|
-
const loading
|
|
447
|
+
const citation$4 = "Citation (e.g., John 1:1)";
|
|
448
|
+
const label$4 = "Label";
|
|
449
|
+
const loading = "Loading...";
|
|
425
450
|
const verse = "Verse";
|
|
426
451
|
const changeReading = "Change Reading";
|
|
427
452
|
const newCitation = "Biblical citation.";
|
|
428
453
|
const cancel$1 = "Cancel";
|
|
429
454
|
const ok$1 = "OK";
|
|
430
|
-
const
|
|
431
|
-
amen: amen
|
|
455
|
+
const ES$1 = {
|
|
456
|
+
amen: amen,
|
|
432
457
|
book: book,
|
|
433
458
|
chapter: chapter,
|
|
434
|
-
citation: citation$
|
|
435
|
-
label: label$
|
|
436
|
-
loading: loading
|
|
459
|
+
citation: citation$4,
|
|
460
|
+
label: label$4,
|
|
461
|
+
loading: loading,
|
|
437
462
|
verse: verse,
|
|
438
463
|
changeReading: changeReading,
|
|
439
464
|
newCitation: newCitation,
|
|
@@ -441,13 +466,6 @@ const EN$8 = {
|
|
|
441
466
|
ok: ok$1
|
|
442
467
|
};
|
|
443
468
|
|
|
444
|
-
const amen = "Amén.";
|
|
445
|
-
const loading = "Se está cargando...";
|
|
446
|
-
const ES = {
|
|
447
|
-
amen: amen,
|
|
448
|
-
loading: loading
|
|
449
|
-
};
|
|
450
|
-
|
|
451
469
|
async function fetchReading(citation, version = 'NRSV', api = 'https://us-central1-venite-2.cloudfunctions.net') {
|
|
452
470
|
const findURL = new URL(`${api}/bible`);
|
|
453
471
|
findURL.searchParams.append('citation', citation);
|
|
@@ -470,7 +488,7 @@ const bibleReadingCss = "ldf-bible-reading.sc-ldf-bible-reading,.sc-ldf-bible-re
|
|
|
470
488
|
|
|
471
489
|
const LOCALE$8 = {
|
|
472
490
|
'en': EN$8,
|
|
473
|
-
'es': ES
|
|
491
|
+
'es': ES$1
|
|
474
492
|
};
|
|
475
493
|
const BibleReadingComponent = class {
|
|
476
494
|
constructor(hostRef) {
|
|
@@ -600,7 +618,7 @@ const BibleReadingComponent = class {
|
|
|
600
618
|
}
|
|
601
619
|
// Render
|
|
602
620
|
render() {
|
|
603
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
621
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
604
622
|
const localeStrings = this.localeStrings || {};
|
|
605
623
|
if (this.verses) {
|
|
606
624
|
/* Editable version */
|
|
@@ -614,25 +632,27 @@ const BibleReadingComponent = class {
|
|
|
614
632
|
}
|
|
615
633
|
/* `short` renders a few verses, with a response and citation. */
|
|
616
634
|
else if (this.obj.style == 'short') {
|
|
617
|
-
const shortResponse = (((_h = (_g = this.obj) === null || _g === void 0 ? void 0 : _g.metadata) === null || _h === void 0 ? void 0 : _h.response) || localeStrings.amen).length <= 5;
|
|
635
|
+
const shortResponse = ((_j = (((_h = (_g = this.obj) === null || _g === void 0 ? void 0 : _g.metadata) === null || _h === void 0 ? void 0 : _h.response) || (localeStrings === null || localeStrings === void 0 ? void 0 : localeStrings.amen))) === null || _j === void 0 ? void 0 : _j.length) <= 5;
|
|
618
636
|
let responseNode;
|
|
619
|
-
if (!((
|
|
620
|
-
responseNode = index.h("span", { class: "response" }, " ", localeStrings
|
|
637
|
+
if (!((_l = (_k = this.obj) === null || _k === void 0 ? void 0 : _k.metadata) === null || _l === void 0 ? void 0 : _l.response)) {
|
|
638
|
+
responseNode = index.h("span", { class: "response" }, " ", localeStrings === null || localeStrings === void 0 ? void 0 :
|
|
639
|
+
localeStrings.amen);
|
|
621
640
|
}
|
|
622
641
|
else {
|
|
623
|
-
responseNode = index.h("span", { class: "response" }, " ", this.obj.metadata
|
|
642
|
+
responseNode = index.h("span", { class: "response" }, " ", (_o = (_m = this.obj) === null || _m === void 0 ? void 0 : _m.metadata) === null || _o === void 0 ? void 0 :
|
|
643
|
+
_o.response);
|
|
624
644
|
}
|
|
625
|
-
return (index.h(index.Host, null, ((
|
|
645
|
+
return (index.h(index.Host, null, ((_p = this.obj) === null || _p === void 0 ? void 0 : _p.label) && index.h("ldf-heading", { doc: new heading$1.Heading({ type: 'heading', metadata: { level: 3 }, value: [this.obj.label] }) }), index.h("div", { lang: (_q = this.obj) === null || _q === void 0 ? void 0 : _q.language, class: `bible-reading ${((_r = this.obj) === null || _r === void 0 ? void 0 : _r.display_format) || 'default'}` }, index.h("p", null, this.verses.map((verse, verseIndex) => {
|
|
626
646
|
var _a;
|
|
627
647
|
return verse.hasOwnProperty('type') && verse.type === 'heading'
|
|
628
648
|
? index.h("ldf-heading", { doc: new heading$1.Heading(verse) })
|
|
629
649
|
: index.h("ldf-string", { citation: { book: verse.book, chapter: verse.chapter, verse: verse.verse }, id: this.obj.uid, text: verse.text, fragment: this.path, dropcap: ((_a = this.obj) === null || _a === void 0 ? void 0 : _a.display_format) == "force_dropcap" && verseIndex === 0 ? "force" : "disabled" });
|
|
630
|
-
}), shortResponse && !((
|
|
650
|
+
}), shortResponse && !((_t = (_s = this.obj) === null || _s === void 0 ? void 0 : _s.metadata) === null || _t === void 0 ? void 0 : _t.omit_response) && responseNode, index.h("span", { class: "citation" }, this.obj.citation)), !shortResponse && !((_v = (_u = this.obj) === null || _u === void 0 ? void 0 : _u.metadata) === null || _v === void 0 ? void 0 : _v.omit_response) && index.h("p", null, responseNode))));
|
|
631
651
|
}
|
|
632
652
|
/* `long` render a typical Bible reading in the liturgy */
|
|
633
653
|
else {
|
|
634
654
|
const paragraphs = this.paragraphs();
|
|
635
|
-
return (index.h("div", { lang: (
|
|
655
|
+
return (index.h("div", { lang: (_w = this.obj) === null || _w === void 0 ? void 0 : _w.language, class: `bible-reading ${((_x = this.obj) === null || _x === void 0 ? void 0 : _x.display_format) || 'default'}` }, index.h("ldf-heading", { doc: new heading$1.Heading({ type: 'heading', metadata: { level: 3 }, value: [this.obj.label], citation: this.obj.citation }) }), ((_z = (_y = this.obj) === null || _y === void 0 ? void 0 : _y.metadata) === null || _z === void 0 ? void 0 : _z.compiled_intro) && index.h("ldf-liturgical-document", { doc: this.obj.metadata.compiled_intro }), paragraphs.map((paragraph, paragraphIndex) => index.h("p", { lang: this.obj.language }, paragraph.map((verse, verseIndex) => {
|
|
636
656
|
var _a;
|
|
637
657
|
return verse.hasOwnProperty('type') && verse.type === 'heading'
|
|
638
658
|
? index.h("ldf-heading", { doc: new heading$1.Heading(verse) })
|
|
@@ -655,12 +675,12 @@ const BibleReadingComponent = class {
|
|
|
655
675
|
BibleReadingComponent.style = bibleReadingCss;
|
|
656
676
|
|
|
657
677
|
const add = "Add";
|
|
658
|
-
const label$
|
|
659
|
-
const citation$
|
|
678
|
+
const label$3 = "Label";
|
|
679
|
+
const citation$3 = "Citation";
|
|
660
680
|
const EN$7 = {
|
|
661
681
|
add: add,
|
|
662
|
-
label: label$
|
|
663
|
-
citation: citation$
|
|
682
|
+
label: label$3,
|
|
683
|
+
citation: citation$3
|
|
664
684
|
};
|
|
665
685
|
|
|
666
686
|
const editableAddBlockCss = ".sc-ldf-editable-add-block-h{display:flex;flex-direction:column;align-items:center;width:100%}.sc-ldf-editable-add-block-h .button-container.sc-ldf-editable-add-block{display:flex;align-items:center;height:0;justify-content:center;width:100%}.sc-ldf-editable-add-block-h button.sc-ldf-editable-add-block{background-color:var(--ldf-background-color);color:var(--ldf-color);font-family:var(--ldf-controls-font-family);font-weight:lighter}.sc-ldf-editable-add-block-h button.sc-ldf-editable-add-block:hover{cursor:pointer}.sc-ldf-editable-add-block-h .visible.sc-ldf-editable-add-block{height:0;opacity:1;transition:0.25s}.sc-ldf-editable-add-block-h .hidden.sc-ldf-editable-add-block{height:0;opacity:0;transition:2s}.sc-ldf-editable-add-block-h .underlying.sc-ldf-editable-add-block{width:100%;border-top:1px solid #a0a0a0;border-bottom:1px solid #a0a0a0;min-height:1em;position:relative;bottom:0.5em;z-index:-1}.sc-ldf-editable-add-block-h .underlying.visible.sc-ldf-editable-add-block{opacity:0.5;transition:0.25s}.sc-ldf-editable-add-block-h .underlying.visible.expanded.sc-ldf-editable-add-block{z-index:1}.sc-ldf-editable-add-block-h .underlying.collapsed.sc-ldf-editable-add-block{height:1em}.sc-ldf-editable-add-block-h .underlying.hidden.sc-ldf-editable-add-block{opacity:0;transition:1s}.sc-ldf-editable-add-block-h .underlying.hidden.sc-ldf-editable-add-block button.sc-ldf-editable-add-block{z-index:-1}.sc-ldf-editable-add-block-h .visually-hidden.sc-ldf-editable-add-block{position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);white-space:nowrap}.button.sc-ldf-editable-add-block{position:absolute;display:flex;flex-direction:row;align-items:center;justify-content:center;opacity:1;transition:all 0.25s}.hidden.sc-ldf-editable-add-block{display:none;height:0;opacity:0;transition:all 0.25s}";
|
|
@@ -802,19 +822,19 @@ const EditableMetadataButtonsComponent = class {
|
|
|
802
822
|
{
|
|
803
823
|
name: 'value',
|
|
804
824
|
type: 'radio',
|
|
805
|
-
value: book$
|
|
825
|
+
value: book$2.Responsive.AllSizes,
|
|
806
826
|
label: this.localeStrings.responsiveAll
|
|
807
827
|
},
|
|
808
828
|
{
|
|
809
829
|
name: 'value',
|
|
810
830
|
type: 'radio',
|
|
811
|
-
value: book$
|
|
831
|
+
value: book$2.Responsive.SmallOnly,
|
|
812
832
|
label: this.localeStrings.responsiveSmallOnly
|
|
813
833
|
},
|
|
814
834
|
{
|
|
815
835
|
name: 'value',
|
|
816
836
|
type: 'radio',
|
|
817
|
-
value: book$
|
|
837
|
+
value: book$2.Responsive.SmallHidden,
|
|
818
838
|
label: this.localeStrings.responsiveSmallHidden
|
|
819
839
|
}
|
|
820
840
|
],
|
|
@@ -1446,17 +1466,17 @@ const LiturgicalDocumentComponent = class {
|
|
|
1446
1466
|
let provisionalObj;
|
|
1447
1467
|
try {
|
|
1448
1468
|
if (typeof newDoc == 'string') {
|
|
1449
|
-
provisionalObj = new book$
|
|
1469
|
+
provisionalObj = new book$2.LiturgicalDocument(JSON.parse(newDoc));
|
|
1450
1470
|
}
|
|
1451
1471
|
else {
|
|
1452
|
-
provisionalObj = new book$
|
|
1472
|
+
provisionalObj = new book$2.LiturgicalDocument(newDoc);
|
|
1453
1473
|
}
|
|
1454
1474
|
}
|
|
1455
1475
|
catch (e) {
|
|
1456
1476
|
console.warn(e);
|
|
1457
|
-
provisionalObj = new book$
|
|
1477
|
+
provisionalObj = new book$2.LiturgicalDocument();
|
|
1458
1478
|
}
|
|
1459
|
-
this.obj = provisionalObj || new book$
|
|
1479
|
+
this.obj = provisionalObj || new book$2.LiturgicalDocument();
|
|
1460
1480
|
}
|
|
1461
1481
|
// Listeners
|
|
1462
1482
|
onDragOver() {
|
|
@@ -1616,9 +1636,9 @@ const LiturgicalDocumentComponent = class {
|
|
|
1616
1636
|
return (node && index.h(index.Host, { lang: ((_a = this.obj) === null || _a === void 0 ? void 0 : _a.language) || 'en' }, index.h("div", { class: {
|
|
1617
1637
|
container: true,
|
|
1618
1638
|
editable: this.editable || this.preview,
|
|
1619
|
-
"small-only": !this.editable && !this.preview && ((_b = this.obj) === null || _b === void 0 ? void 0 : _b.responsive) !== undefined && ((_c = this.obj) === null || _c === void 0 ? void 0 : _c.responsive) == book$
|
|
1620
|
-
"small-hidden": !this.editable && !this.preview && ((_d = this.obj) === null || _d === void 0 ? void 0 : _d.responsive) !== undefined && ((_e = this.obj) === null || _e === void 0 ? void 0 : _e.responsive) == book$
|
|
1621
|
-
} }, (this.editable || this.preview) && index.h("ldf-editable-metadata-buttons", { visible: this.hasFocus, base: this.base, index: this.index, obj: this.obj, parentType: this.parentType, preview: this.preview, onLdfTogglePreview: (e) => this.setPreview(e.detail), class: { 'top-level': ((_f = this.obj) === null || _f === void 0 ? void 0 : _f.type) === 'liturgy' || ((_g = this.obj) === null || _g === void 0 ? void 0 : _g.type) === 'option' } }), (this.editable || this.preview) && (((_h = this.obj) === null || _h === void 0 ? void 0 : _h.responsive) === book$
|
|
1639
|
+
"small-only": !this.editable && !this.preview && ((_b = this.obj) === null || _b === void 0 ? void 0 : _b.responsive) !== undefined && ((_c = this.obj) === null || _c === void 0 ? void 0 : _c.responsive) == book$2.Responsive.SmallOnly,
|
|
1640
|
+
"small-hidden": !this.editable && !this.preview && ((_d = this.obj) === null || _d === void 0 ? void 0 : _d.responsive) !== undefined && ((_e = this.obj) === null || _e === void 0 ? void 0 : _e.responsive) == book$2.Responsive.SmallHidden,
|
|
1641
|
+
} }, (this.editable || this.preview) && index.h("ldf-editable-metadata-buttons", { visible: this.hasFocus, base: this.base, index: this.index, obj: this.obj, parentType: this.parentType, preview: this.preview, onLdfTogglePreview: (e) => this.setPreview(e.detail), class: { 'top-level': ((_f = this.obj) === null || _f === void 0 ? void 0 : _f.type) === 'liturgy' || ((_g = this.obj) === null || _g === void 0 ? void 0 : _g.type) === 'option' } }), (this.editable || this.preview) && (((_h = this.obj) === null || _h === void 0 ? void 0 : _h.responsive) === book$2.Responsive.SmallHidden || ((_j = this.obj) === null || _j === void 0 ? void 0 : _j.responsive) === book$2.Responsive.SmallOnly) && index.h("ion-chip", { class: "responsive-banner" }, index.h("ion-icon", { name: "phone-portrait-outline" }), ((_k = this.obj) === null || _k === void 0 ? void 0 : _k.responsive) === book$2.Responsive.SmallOnly && index.h("ion-label", null, this.localeStrings.smallOnly), ((_l = this.obj) === null || _l === void 0 ? void 0 : _l.responsive) === book$2.Responsive.SmallHidden && index.h("ion-label", null, this.localeStrings.smallHidden)), index.h("div", { id: (this.path || '').replace(/\//g, '-'), class: {
|
|
1622
1642
|
doc: true,
|
|
1623
1643
|
editable: this.editable || this.preview
|
|
1624
1644
|
}, style: { padding: this.padding } }, node))));
|
|
@@ -2041,6 +2061,25 @@ const OptionComponent = class {
|
|
|
2041
2061
|
};
|
|
2042
2062
|
OptionComponent.style = optionCss;
|
|
2043
2063
|
|
|
2064
|
+
const changeCanticle$1 = "Change Canticle";
|
|
2065
|
+
const citation$2 = "(Biblical) Citation";
|
|
2066
|
+
const label$2 = "Label";
|
|
2067
|
+
const latinname$1 = "Latin Name";
|
|
2068
|
+
const section_break_insert$1 = "+ insert section break";
|
|
2069
|
+
const section_break_remove$1 = "x remove section break";
|
|
2070
|
+
const source$2 = "Source";
|
|
2071
|
+
const source_citation$1 = "Citation";
|
|
2072
|
+
const EN$1 = {
|
|
2073
|
+
changeCanticle: changeCanticle$1,
|
|
2074
|
+
citation: citation$2,
|
|
2075
|
+
label: label$2,
|
|
2076
|
+
latinname: latinname$1,
|
|
2077
|
+
section_break_insert: section_break_insert$1,
|
|
2078
|
+
section_break_remove: section_break_remove$1,
|
|
2079
|
+
source: source$2,
|
|
2080
|
+
source_citation: source_citation$1
|
|
2081
|
+
};
|
|
2082
|
+
|
|
2044
2083
|
const changeCanticle = "Change Canticle";
|
|
2045
2084
|
const citation$1 = "(Biblical) Citation";
|
|
2046
2085
|
const label$1 = "Label";
|
|
@@ -2049,7 +2088,7 @@ const section_break_insert = "+ insert section break";
|
|
|
2049
2088
|
const section_break_remove = "x remove section break";
|
|
2050
2089
|
const source$1 = "Source";
|
|
2051
2090
|
const source_citation = "Citation";
|
|
2052
|
-
const
|
|
2091
|
+
const ES = {
|
|
2053
2092
|
changeCanticle: changeCanticle,
|
|
2054
2093
|
citation: citation$1,
|
|
2055
2094
|
label: label$1,
|
|
@@ -2064,6 +2103,7 @@ const psalmCss = "ldf-psalm.sc-ldf-psalm,.sc-ldf-psalm-h{font-family:var(--ldf-f
|
|
|
2064
2103
|
|
|
2065
2104
|
const LOCALE$1 = {
|
|
2066
2105
|
'en': EN$1,
|
|
2106
|
+
'es': ES
|
|
2067
2107
|
};
|
|
2068
2108
|
const PsalmComponent = class {
|
|
2069
2109
|
constructor(hostRef) {
|
|
@@ -2141,7 +2181,7 @@ const PsalmComponent = class {
|
|
|
2141
2181
|
// antiphon is something like an O antiphon tree:
|
|
2142
2182
|
// dates can be either MM/DD or MM-DD
|
|
2143
2183
|
// { '12/23': '...', '12/24': '...' }
|
|
2144
|
-
const date = this.obj.day ? book$
|
|
2184
|
+
const date = this.obj.day ? book$2.dateFromYMDString((_b = (_a = this.obj) === null || _a === void 0 ? void 0 : _a.day) === null || _b === void 0 ? void 0 : _b.date) : new Date();
|
|
2145
2185
|
return this.antiphonNode(antiphon[`${date.getMonth() + 1}/${date.getDate()}`] || antiphon[`${date.getMonth() + 1}-${date.getDate()}`], true);
|
|
2146
2186
|
}
|
|
2147
2187
|
}
|
|
@@ -375,7 +375,7 @@ const StringComponent = class {
|
|
|
375
375
|
/**
|
|
376
376
|
* Minimum length (in characters) a string must be to have a dropcap.
|
|
377
377
|
*/
|
|
378
|
-
this.dropcapMinLength =
|
|
378
|
+
this.dropcapMinLength = 180;
|
|
379
379
|
/**
|
|
380
380
|
* Enable or disable replacement of tetragrammaton.
|
|
381
381
|
*/
|
|
@@ -391,7 +391,7 @@ const StringComponent = class {
|
|
|
391
391
|
if (this.replaceTetragrammaton) {
|
|
392
392
|
processed = processed.map(node => typeof node === 'string' ? this.processTetragrammaton(node) : node).flat();
|
|
393
393
|
}
|
|
394
|
-
if (this.dropcap == 'force' || (this.dropcap == 'enabled' && (this.index == 0 || !this.index) && this.text && this.text.length
|
|
394
|
+
if (this.dropcap == 'force' || (this.dropcap == 'enabled' && (this.index == 0 || !this.index) && this.text && this.text.length >= this.dropcapMinLength)) {
|
|
395
395
|
processed = this.processDropcap(processed);
|
|
396
396
|
}
|
|
397
397
|
this.processedString = processed;
|
|
@@ -480,9 +480,9 @@ const StringComponent = class {
|
|
|
480
480
|
if (firstChunk) {
|
|
481
481
|
const splitTest = (firstChunk || '').split(/[\s.!?\\]/);
|
|
482
482
|
const firstWord = splitTest ? splitTest[0] : '', re = firstWord.length > 2
|
|
483
|
-
? /^ ?([\"\'
|
|
484
|
-
: /^ ?([\"\'
|
|
485
|
-
? /^ ?([\"\'
|
|
483
|
+
? /^ ?([\"\'“”‘’¡\!\?\[\]\(\)\,\wñáéíóú\u0590-\u05ff\u0370-\u03ff])([\wñáéíóú\u0590-\u05ff\u0370-\u03ff\,]*)/
|
|
484
|
+
: /^ ?([\"\'“”‘’¡\!\?\[\]\(\)\,\wñáéíóú\u0590-\u05ff\u0370-\u03ff])([\wñáéíóú\u0590-\u05ff\u0370-\u03ff\,]*[\s.!?]*[\wñáéíóú\u0590-\u05ff\u0370-\u03ff]*)/, reIncludingPunctuation = ((_a = firstWord[0]) === null || _a === void 0 ? void 0 : _a.match(/[\"\'“”‘’¡\!\?\[\]\(\)]/))
|
|
485
|
+
? /^ ?([\"\'“”‘’¡\!\?\[\]\(\)\,\wñáéíóú\u0590-\u05ff\u0370-\u03ff]{2})\s*([\wñáéíóú\u0590-\u05ff\u0370-\u03ff]*)/
|
|
486
486
|
: re, buffer = firstWord.length == 1, split = firstChunk.split(reIncludingPunctuation).filter(s => s !== ''), [match1, match2, nextWord] = split;
|
|
487
487
|
final = new Array(index.h("span", { class: 'firstword' }, index.h("span", { class: buffer ? `drop buffered-drop drop-${match1}` : `drop drop-${match1}` }, match1), this.maintainCasing(match2) ? match2 : match2 === null || match2 === void 0 ? void 0 : match2.toLowerCase()))
|
|
488
488
|
.concat(nextWord)
|
|
@@ -5548,24 +5548,30 @@ if (module.exports) {
|
|
|
5548
5548
|
|
|
5549
5549
|
const amen$1 = "Amen.";
|
|
5550
5550
|
const authorized_prayers$1 = "Prayers and Thanksgivings";
|
|
5551
|
-
const label = "Label";
|
|
5552
|
-
const source = "Source";
|
|
5553
|
-
const source_citation = "Citation";
|
|
5551
|
+
const label$1 = "Label";
|
|
5552
|
+
const source$1 = "Source";
|
|
5553
|
+
const source_citation$1 = "Citation";
|
|
5554
5554
|
const EN = {
|
|
5555
5555
|
amen: amen$1,
|
|
5556
5556
|
authorized_prayers: authorized_prayers$1,
|
|
5557
|
-
label: label,
|
|
5558
|
-
source: source,
|
|
5559
|
-
source_citation: source_citation,
|
|
5557
|
+
label: label$1,
|
|
5558
|
+
source: source$1,
|
|
5559
|
+
source_citation: source_citation$1,
|
|
5560
5560
|
"prayer-list": "Prayer List"
|
|
5561
5561
|
};
|
|
5562
5562
|
|
|
5563
|
-
const amen = "
|
|
5564
|
-
const authorized_prayers = "
|
|
5563
|
+
const amen = "Amen.";
|
|
5564
|
+
const authorized_prayers = "Prayers and Thanksgivings";
|
|
5565
|
+
const label = "Label";
|
|
5566
|
+
const source = "Source";
|
|
5567
|
+
const source_citation = "Citation";
|
|
5565
5568
|
const ES = {
|
|
5566
5569
|
amen: amen,
|
|
5567
|
-
|
|
5568
|
-
|
|
5570
|
+
authorized_prayers: authorized_prayers,
|
|
5571
|
+
label: label,
|
|
5572
|
+
source: source,
|
|
5573
|
+
source_citation: source_citation,
|
|
5574
|
+
"prayer-list": "Prayer List"
|
|
5569
5575
|
};
|
|
5570
5576
|
|
|
5571
5577
|
const textCss = "ldf-label-bar.sc-ldf-text{min-height:0}p.sc-ldf-text{font-family:var(--ldf-font-face);text-align:var(--ldf-text-align);text-justify:inter-character}li.sc-ldf-text,h1.sc-ldf-text,h2.sc-ldf-text,h3.sc-ldf-text,h4.sc-ldf-text,h5.sc-ldf-text,h6.sc-ldf-text,ol.sc-ldf-text,span.sc-ldf-text,em.sc-ldf-text,strong.sc-ldf-text{font-family:var(--ldf-font-face)}.response.sc-ldf-text{font-weight:var(--ldf-response-font-weight);font-style:var(--ldf-response-font-style)}.text.omit.sc-ldf-text .text-body.sc-ldf-text{display:none}.text.editable.omit.sc-ldf-text .text-body.sc-ldf-text{display:block}.text.unison.sc-ldf-text .text-body.sc-ldf-text{font-weight:var(--ldf-unison-font-weight);font-style:var(--ldf-unison-font-style)}h3.editable-label.sc-ldf-text{text-align:var(--ldf-h3-text-align);font-weight:var(--ldf-h3-font-weight);font-style:var(--ldf-h3-font-style);font-variant:var(--ldf-h3-font-variant);font-size:var(--ldf-h3-font-size);text-transform:var(--ldf-h3-text-transform)}.prayer-list.sc-ldf-text{display:block;margin:0;padding:0;text-align:center}.prayer-list.sc-ldf-text li.sc-ldf-text{list-style-type:none;text-align:center;margin:0.5em 0;padding:0}";
|
|
@@ -133,7 +133,7 @@ const EditableFilterDocumentsComponent = class {
|
|
|
133
133
|
}
|
|
134
134
|
render() {
|
|
135
135
|
const localeStrings = this.localeStrings || {};
|
|
136
|
-
return (index.h(index.Host, null, this.modal && index.h("ion-header", null, index.h("ion-toolbar", null, index.h("ion-buttons", { slot: "end" }, index.h("ion-button", { onClick: () => this.modal.dismiss() }, index.h("ion-icon", { name: "close", slot: "icon-only" }))))), index.h("ion-content", null, index.h("form", null, index.h("ion-list", null, index.h("ion-button", { fill: "clear", onClick: () => { this.chooseDoc(docsToOption(this.filteredOptions)); this.choose(); } }, index.h("ion-label", null, localeStrings.includeAll)), this.versions && index.h("ion-item", null, index.h("ion-label", null, localeStrings.version), index.h("ion-select", { value: this.version, onIonChange: (ev) => this.chooseVersion(ev.detail.value) }, Object.entries(this.versions)
|
|
136
|
+
return (index.h(index.Host, null, this.modal && index.h("ion-header", null, index.h("ion-toolbar", null, index.h("ion-buttons", { slot: "end" }, index.h("ion-button", { onClick: () => this.modal.dismiss() }, index.h("ion-icon", { name: "close", slot: "icon-only" }))))), index.h("ion-content", null, index.h("form", null, index.h("ion-list", null, index.h("ion-button", { fill: "clear", onClick: () => { this.chooseDoc(docsToOption(this.filteredOptions)); this.choose(); } }, index.h("ion-label", null, localeStrings.includeAll)), this.versions && Object.values(this.versions).length > 1 && index.h("ion-item", null, index.h("ion-label", null, localeStrings.version), index.h("ion-select", { value: this.version, onIonChange: (ev) => this.chooseVersion(ev.detail.value) }, Object.entries(this.versions)
|
|
137
137
|
.sort((a, b) => a[0] > b[0] ? 1 : -1)
|
|
138
138
|
.map(([versionKey, versionLabel]) => index.h("ion-select-option", { value: versionKey }, versionLabel)))), index.h("ion-searchbar", { onIonChange: (ev) => this.filter(ev.detail.value) }), this.filteredOptions && this.filteredOptions.map(doc => {
|
|
139
139
|
var _a, _b, _c, _d;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-8fe0df8d.js');
|
|
6
6
|
const index$2 = require('./index-7aa21373.js');
|
|
7
|
-
const index$1 = require('./index-
|
|
7
|
+
const index$1 = require('./index-de13bd01.js');
|
|
8
8
|
const _commonjsHelpers = require('./_commonjsHelpers-bcc1208a.js');
|
|
9
9
|
|
|
10
10
|
var textareaCaret = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
@@ -6,7 +6,7 @@ const index = require('./index-8fe0df8d.js');
|
|
|
6
6
|
const book = require('./book-1a92678a.js');
|
|
7
7
|
const cursor = require('./cursor-81bfd01e.js');
|
|
8
8
|
const change = require('./change-cdb1e8c0.js');
|
|
9
|
-
const index$1 = require('./index-
|
|
9
|
+
const index$1 = require('./index-de13bd01.js');
|
|
10
10
|
require('./_commonjsHelpers-bcc1208a.js');
|
|
11
11
|
|
|
12
12
|
const editorCss = "ldf-editor.sc-ldf-editor, .sc-ldf-editor-h {\n display: block;\n}\n\n.sc-ldf-editor-h textarea.sc-ldf-editor {\n display: block;\n\n width: 100%;\n max-width: 100%;\n max-height: 100%;\n\n border: 1px solid grey;\n\n outline: none;\n\n background: transparent;\n box-sizing: border-box;\n resize: none;\n appearance: none;\n\n font-family: inherit;\n}\n\n@keyframes \"blink\" {\n from, to {\n opacity: 0;\n }\n 50% {\n opacity: 1;\n }\n}\n\n.user.sc-ldf-editor {\n padding-top: 3px;\n padding-bottom: 3px;\n border-left-width: 2px;\n border-right-width: 2px;\n border-style: solid;\n border-top-width: 0;\n border-bottom-width: 0;\n}";
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"amen": "
|
|
3
|
-
"
|
|
2
|
+
"amen": "Amen.",
|
|
3
|
+
"book": "Book",
|
|
4
|
+
"chapter": "Chapter",
|
|
5
|
+
"citation": "Citation (e.g., John 1:1)",
|
|
6
|
+
"label": "Label",
|
|
7
|
+
"loading": "Loading...",
|
|
8
|
+
"verse": "Verse",
|
|
9
|
+
"changeReading": "Change Reading",
|
|
10
|
+
"newCitation": "Biblical citation.",
|
|
11
|
+
"cancel": "Cancel",
|
|
12
|
+
"ok": "OK"
|
|
4
13
|
}
|
|
@@ -133,7 +133,7 @@ export class BibleReadingComponent {
|
|
|
133
133
|
}
|
|
134
134
|
// Render
|
|
135
135
|
render() {
|
|
136
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
136
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
137
137
|
const localeStrings = this.localeStrings || {};
|
|
138
138
|
if (this.verses) {
|
|
139
139
|
/* Editable version */
|
|
@@ -165,21 +165,21 @@ export class BibleReadingComponent {
|
|
|
165
165
|
}
|
|
166
166
|
/* `short` renders a few verses, with a response and citation. */
|
|
167
167
|
else if (this.obj.style == 'short') {
|
|
168
|
-
const shortResponse = (((_h = (_g = this.obj) === null || _g === void 0 ? void 0 : _g.metadata) === null || _h === void 0 ? void 0 : _h.response) || localeStrings.amen).length <= 5;
|
|
168
|
+
const shortResponse = ((_j = (((_h = (_g = this.obj) === null || _g === void 0 ? void 0 : _g.metadata) === null || _h === void 0 ? void 0 : _h.response) || (localeStrings === null || localeStrings === void 0 ? void 0 : localeStrings.amen))) === null || _j === void 0 ? void 0 : _j.length) <= 5;
|
|
169
169
|
let responseNode;
|
|
170
|
-
if (!((
|
|
170
|
+
if (!((_l = (_k = this.obj) === null || _k === void 0 ? void 0 : _k.metadata) === null || _l === void 0 ? void 0 : _l.response)) {
|
|
171
171
|
responseNode = h("span", { class: "response" },
|
|
172
|
-
" ",
|
|
172
|
+
" ", localeStrings === null || localeStrings === void 0 ? void 0 :
|
|
173
173
|
localeStrings.amen);
|
|
174
174
|
}
|
|
175
175
|
else {
|
|
176
176
|
responseNode = h("span", { class: "response" },
|
|
177
|
-
" ",
|
|
178
|
-
|
|
177
|
+
" ", (_o = (_m = this.obj) === null || _m === void 0 ? void 0 : _m.metadata) === null || _o === void 0 ? void 0 :
|
|
178
|
+
_o.response);
|
|
179
179
|
}
|
|
180
180
|
return (h(Host, null,
|
|
181
|
-
((
|
|
182
|
-
h("div", { lang: (
|
|
181
|
+
((_p = this.obj) === null || _p === void 0 ? void 0 : _p.label) && h("ldf-heading", { doc: new Heading({ type: 'heading', metadata: { level: 3 }, value: [this.obj.label] }) }),
|
|
182
|
+
h("div", { lang: (_q = this.obj) === null || _q === void 0 ? void 0 : _q.language, class: `bible-reading ${((_r = this.obj) === null || _r === void 0 ? void 0 : _r.display_format) || 'default'}` },
|
|
183
183
|
h("p", null,
|
|
184
184
|
this.verses.map((verse, verseIndex) => {
|
|
185
185
|
var _a;
|
|
@@ -187,16 +187,16 @@ export class BibleReadingComponent {
|
|
|
187
187
|
? h("ldf-heading", { doc: new Heading(verse) })
|
|
188
188
|
: h("ldf-string", { citation: { book: verse.book, chapter: verse.chapter, verse: verse.verse }, id: this.obj.uid, text: verse.text, fragment: this.path, dropcap: ((_a = this.obj) === null || _a === void 0 ? void 0 : _a.display_format) == "force_dropcap" && verseIndex === 0 ? "force" : "disabled" });
|
|
189
189
|
}),
|
|
190
|
-
shortResponse && !((
|
|
190
|
+
shortResponse && !((_t = (_s = this.obj) === null || _s === void 0 ? void 0 : _s.metadata) === null || _t === void 0 ? void 0 : _t.omit_response) && responseNode,
|
|
191
191
|
h("span", { class: "citation" }, this.obj.citation)),
|
|
192
|
-
!shortResponse && !((
|
|
192
|
+
!shortResponse && !((_v = (_u = this.obj) === null || _u === void 0 ? void 0 : _u.metadata) === null || _v === void 0 ? void 0 : _v.omit_response) && h("p", null, responseNode))));
|
|
193
193
|
}
|
|
194
194
|
/* `long` render a typical Bible reading in the liturgy */
|
|
195
195
|
else {
|
|
196
196
|
const paragraphs = this.paragraphs();
|
|
197
|
-
return (h("div", { lang: (
|
|
197
|
+
return (h("div", { lang: (_w = this.obj) === null || _w === void 0 ? void 0 : _w.language, class: `bible-reading ${((_x = this.obj) === null || _x === void 0 ? void 0 : _x.display_format) || 'default'}` },
|
|
198
198
|
h("ldf-heading", { doc: new Heading({ type: 'heading', metadata: { level: 3 }, value: [this.obj.label], citation: this.obj.citation }) }),
|
|
199
|
-
((
|
|
199
|
+
((_z = (_y = this.obj) === null || _y === void 0 ? void 0 : _y.metadata) === null || _z === void 0 ? void 0 : _z.compiled_intro) && h("ldf-liturgical-document", { doc: this.obj.metadata.compiled_intro }),
|
|
200
200
|
paragraphs.map((paragraph, paragraphIndex) => h("p", { lang: this.obj.language }, paragraph.map((verse, verseIndex) => {
|
|
201
201
|
var _a;
|
|
202
202
|
return verse.hasOwnProperty('type') && verse.type === 'heading'
|
|
@@ -231,7 +231,7 @@ var BibleReadingComponent = /** @class */ (function () {
|
|
|
231
231
|
// Render
|
|
232
232
|
BibleReadingComponent.prototype.render = function () {
|
|
233
233
|
var _this = this;
|
|
234
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
234
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
235
235
|
var localeStrings = this.localeStrings || {};
|
|
236
236
|
if (this.verses) {
|
|
237
237
|
/* Editable version */
|
|
@@ -263,21 +263,21 @@ var BibleReadingComponent = /** @class */ (function () {
|
|
|
263
263
|
}
|
|
264
264
|
/* `short` renders a few verses, with a response and citation. */
|
|
265
265
|
else if (this.obj.style == 'short') {
|
|
266
|
-
var shortResponse = (((_h = (_g = this.obj) === null || _g === void 0 ? void 0 : _g.metadata) === null || _h === void 0 ? void 0 : _h.response) || localeStrings.amen).length <= 5;
|
|
266
|
+
var shortResponse = ((_j = (((_h = (_g = this.obj) === null || _g === void 0 ? void 0 : _g.metadata) === null || _h === void 0 ? void 0 : _h.response) || (localeStrings === null || localeStrings === void 0 ? void 0 : localeStrings.amen))) === null || _j === void 0 ? void 0 : _j.length) <= 5;
|
|
267
267
|
var responseNode = void 0;
|
|
268
|
-
if (!((
|
|
268
|
+
if (!((_l = (_k = this.obj) === null || _k === void 0 ? void 0 : _k.metadata) === null || _l === void 0 ? void 0 : _l.response)) {
|
|
269
269
|
responseNode = React.createElement("span", { "class": "response" },
|
|
270
|
-
" ",
|
|
270
|
+
" ", localeStrings === null || localeStrings === void 0 ? void 0 :
|
|
271
271
|
localeStrings.amen);
|
|
272
272
|
}
|
|
273
273
|
else {
|
|
274
274
|
responseNode = React.createElement("span", { "class": "response" },
|
|
275
|
-
" ",
|
|
276
|
-
|
|
275
|
+
" ", (_o = (_m = this.obj) === null || _m === void 0 ? void 0 : _m.metadata) === null || _o === void 0 ? void 0 :
|
|
276
|
+
_o.response);
|
|
277
277
|
}
|
|
278
278
|
return (React.createElement(core_2.Host, null,
|
|
279
|
-
((
|
|
280
|
-
React.createElement("div", { lang: (
|
|
279
|
+
((_p = this.obj) === null || _p === void 0 ? void 0 : _p.label) && React.createElement("ldf-heading", { doc: new ldf_1.Heading({ type: 'heading', metadata: { level: 3 }, value: [this.obj.label] }) }),
|
|
280
|
+
React.createElement("div", { lang: (_q = this.obj) === null || _q === void 0 ? void 0 : _q.language, "class": "bible-reading " + (((_r = this.obj) === null || _r === void 0 ? void 0 : _r.display_format) || 'default') },
|
|
281
281
|
React.createElement("p", null,
|
|
282
282
|
this.verses.map(function (verse, verseIndex) {
|
|
283
283
|
var _a;
|
|
@@ -285,16 +285,16 @@ var BibleReadingComponent = /** @class */ (function () {
|
|
|
285
285
|
? React.createElement("ldf-heading", { doc: new ldf_1.Heading(verse) })
|
|
286
286
|
: React.createElement("ldf-string", { citation: { book: verse.book, chapter: verse.chapter, verse: verse.verse }, id: _this.obj.uid, text: verse.text, fragment: _this.path, dropcap: ((_a = _this.obj) === null || _a === void 0 ? void 0 : _a.display_format) == "force_dropcap" && verseIndex === 0 ? "force" : "disabled" });
|
|
287
287
|
}),
|
|
288
|
-
shortResponse && !((
|
|
288
|
+
shortResponse && !((_t = (_s = this.obj) === null || _s === void 0 ? void 0 : _s.metadata) === null || _t === void 0 ? void 0 : _t.omit_response) && responseNode,
|
|
289
289
|
React.createElement("span", { "class": "citation" }, this.obj.citation)),
|
|
290
|
-
!shortResponse && !((
|
|
290
|
+
!shortResponse && !((_v = (_u = this.obj) === null || _u === void 0 ? void 0 : _u.metadata) === null || _v === void 0 ? void 0 : _v.omit_response) && React.createElement("p", null, responseNode))));
|
|
291
291
|
}
|
|
292
292
|
/* `long` render a typical Bible reading in the liturgy */
|
|
293
293
|
else {
|
|
294
294
|
var paragraphs = this.paragraphs();
|
|
295
|
-
return (React.createElement("div", { lang: (
|
|
295
|
+
return (React.createElement("div", { lang: (_w = this.obj) === null || _w === void 0 ? void 0 : _w.language, "class": "bible-reading " + (((_x = this.obj) === null || _x === void 0 ? void 0 : _x.display_format) || 'default') },
|
|
296
296
|
React.createElement("ldf-heading", { doc: new ldf_1.Heading({ type: 'heading', metadata: { level: 3 }, value: [this.obj.label], citation: this.obj.citation }) }),
|
|
297
|
-
((
|
|
297
|
+
((_z = (_y = this.obj) === null || _y === void 0 ? void 0 : _y.metadata) === null || _z === void 0 ? void 0 : _z.compiled_intro) && React.createElement("ldf-liturgical-document", { doc: this.obj.metadata.compiled_intro }),
|
|
298
298
|
paragraphs.map(function (paragraph, paragraphIndex) { return React.createElement("p", { lang: _this.obj.language }, paragraph.map(function (verse, verseIndex) {
|
|
299
299
|
var _a;
|
|
300
300
|
return verse.hasOwnProperty('type') && verse.type === 'heading'
|
package/dist/collection/components/editable-add-block-menu/editable-add-block-menu.i18n.es.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"alleluia": "Alleluia",
|
|
3
|
+
"antiphon": "Antiphon",
|
|
4
|
+
"anthem": "Anthem",
|
|
5
|
+
"authorized-prayers": "Intercessions & Thanksgivings",
|
|
6
|
+
"bible": "Reading",
|
|
7
|
+
"canticle": "Canticle",
|
|
8
|
+
"canticle-blank": "Canticle (Custom)",
|
|
9
|
+
"closing-sentence": "Closing Sentence",
|
|
10
|
+
"collect_of_the_day": "Collect of the Day",
|
|
11
|
+
"confession": "Confession",
|
|
12
|
+
"date": "Date",
|
|
13
|
+
"day": "Liturgical Day",
|
|
14
|
+
"eucharistic-prayer": "Eucharistic Prayer",
|
|
15
|
+
"gloria_patri": "Gloria Patri",
|
|
16
|
+
"heading": "Heading",
|
|
17
|
+
"hymn": "Hymn",
|
|
18
|
+
"image": "Image",
|
|
19
|
+
"invitatory": "Invitatory",
|
|
20
|
+
"lectionary-reading": "Lectionary Reading",
|
|
21
|
+
"litany": "Litany",
|
|
22
|
+
"liturgy": "Liturgy",
|
|
23
|
+
"liturgy-template": "Liturgy (for Templates)",
|
|
24
|
+
"meditation": "Meditation",
|
|
25
|
+
"option": "Option",
|
|
26
|
+
"offertory-sentence": "Offertory Sentence",
|
|
27
|
+
"opening-sentence": "Opening Sentence",
|
|
28
|
+
"our-father": "Lord’s Prayer",
|
|
29
|
+
"postlude": "Postlude",
|
|
30
|
+
"prayer": "Prayer",
|
|
31
|
+
"preces": "Preces",
|
|
32
|
+
"prelude": "Prelude",
|
|
33
|
+
"prayers-of-the-people": "Prayers of the People",
|
|
34
|
+
"proper-preface": "Proper Preface",
|
|
35
|
+
"psalm": "Psalm",
|
|
36
|
+
"psalm-template": "Psalm (for Templates)",
|
|
37
|
+
"psalter": "Lectionary Psalms",
|
|
38
|
+
"refrain": "Refrain",
|
|
39
|
+
"responsive": "Responsive Prayer",
|
|
40
|
+
"rich-text": "Rich Text",
|
|
41
|
+
"rubric": "Rubric",
|
|
42
|
+
"text": "Text",
|
|
43
|
+
"title": "Add a Block",
|
|
44
|
+
"Reading": "Reading",
|
|
45
|
+
"Prayer": "Prayer",
|
|
46
|
+
"Liturgy": "Liturgy",
|
|
47
|
+
"Music": "Music"
|
|
48
|
+
}
|
package/dist/collection/components/editable-antiphon-field/editable-antiphon-field.i18n.es.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"antiphon": "Antiphon",
|
|
3
|
+
"omit": "Omit Antiphon",
|
|
4
|
+
"insert": "Insert Seasonal Antiphon",
|
|
5
|
+
"text": "Text",
|
|
6
|
+
"table": "Table",
|
|
7
|
+
"add_table_value_header": "Add Antiphon for Date",
|
|
8
|
+
"add_table_value_message": "What date should the antiphon appear? (MM-DD)",
|
|
9
|
+
"cancel": "Cancel",
|
|
10
|
+
"ok": "Okay"
|
|
11
|
+
}
|
package/dist/collection/components/editable-condition-piece/editable-condition-piece.i18n.es.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"date": "Date (Month/Day)",
|
|
3
|
+
"day": "Liturgical Day",
|
|
4
|
+
"dayOfMonth": "Day of Month",
|
|
5
|
+
"dayOfMonthIs": "Day of Month Is",
|
|
6
|
+
"dayOfMonthIsNot": "Day of Month Is Not",
|
|
7
|
+
"except": "Except",
|
|
8
|
+
"feastDay": "Only on Holy Days and Sundays",
|
|
9
|
+
"gt": "After",
|
|
10
|
+
"gte": "On or After",
|
|
11
|
+
"lt": "Before",
|
|
12
|
+
"lte": "Before or On",
|
|
13
|
+
"only": "Only",
|
|
14
|
+
"preference": "Preference",
|
|
15
|
+
"preferenceIs": "=",
|
|
16
|
+
"preferenceIsNot": "≠",
|
|
17
|
+
"preferenceKey": "Key",
|
|
18
|
+
"preferenceValue": "Value",
|
|
19
|
+
"season": "Season",
|
|
20
|
+
"weekday": "Day of the Week"
|
|
21
|
+
}
|