@venite/components 0.16.13 → 0.16.17

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.
Files changed (39) hide show
  1. package/dist/cjs/ion-segment_16.cjs.entry.js +14 -11
  2. package/dist/cjs/ldf-day-name_5.cjs.entry.js +3 -3
  3. package/dist/cjs/ldf-editable-add-block-menu.cjs.entry.js +2 -2
  4. package/dist/cjs/ldf-editable-filter-documents.cjs.entry.js +1 -1
  5. package/dist/cjs/ldf-editable-lookup_2.cjs.entry.js +3 -3
  6. package/dist/cjs/ldf-editable-metadata.cjs.entry.js +3 -3
  7. package/dist/cjs/{option-24f3d13a.js → option-a078d432.js} +4 -1
  8. package/dist/cjs/{rubric-5b467a6a.js → rubric-9cc04cb0.js} +428 -0
  9. package/dist/cjs/{specific-class-a1112e78.js → specific-class-36a74859.js} +2 -2
  10. package/dist/collection/components/bible-reading/bible-reading.js +9 -6
  11. package/dist/collection/components/bible-reading/dist/bible-reading.js +2 -1
  12. package/dist/collection/components/psalm/dist/psalm.js +3 -3
  13. package/dist/collection/components/psalm/psalm.js +3 -3
  14. package/dist/collection/components/string/dist/string.js +2 -2
  15. package/dist/collection/components/string/string.js +3 -3
  16. package/dist/esm/ion-segment_16.entry.js +14 -11
  17. package/dist/esm/ldf-day-name_5.entry.js +3 -3
  18. package/dist/esm/ldf-editable-add-block-menu.entry.js +2 -2
  19. package/dist/esm/ldf-editable-filter-documents.entry.js +1 -1
  20. package/dist/esm/ldf-editable-lookup_2.entry.js +3 -3
  21. package/dist/esm/ldf-editable-metadata.entry.js +3 -3
  22. package/dist/esm/{option-da8390ad.js → option-c16af13a.js} +4 -1
  23. package/dist/esm/{rubric-91bf7fed.js → rubric-09337f3c.js} +428 -0
  24. package/dist/esm/{specific-class-ef83cfb6.js → specific-class-e890ce29.js} +2 -2
  25. package/dist/ldf/ldf.esm.js +1 -1
  26. package/dist/ldf/{p-1ff665a7.entry.js → p-304a2bdb.entry.js} +1 -1
  27. package/dist/ldf/{p-c60a875b.js → p-30b07706.js} +1 -1
  28. package/dist/ldf/{p-5ea6de28.entry.js → p-8d1a3849.entry.js} +1 -1
  29. package/dist/ldf/p-935cb02a.entry.js +1 -0
  30. package/dist/ldf/p-9d09f906.js +3 -0
  31. package/dist/ldf/{p-1902f41e.entry.js → p-cc383802.entry.js} +1 -1
  32. package/dist/ldf/p-e7a449d7.js +1 -0
  33. package/dist/ldf/p-f184d804.entry.js +1 -0
  34. package/dist/ldf/{p-bdcf2b02.entry.js → p-f529ee3c.entry.js} +1 -1
  35. package/package.json +2 -2
  36. package/dist/ldf/p-1c8cc5bf.entry.js +0 -1
  37. package/dist/ldf/p-3f8ef67b.entry.js +0 -1
  38. package/dist/ldf/p-8f67abb8.js +0 -3
  39. package/dist/ldf/p-9155f066.js +0 -1
@@ -8,9 +8,9 @@ const helpers = require('./helpers-41dfb43a.js');
8
8
  const theme = require('./theme-81caa5b0.js');
9
9
  const overlays = require('./overlays-eb464d6d.js');
10
10
  const book$1 = require('./book-1a92678a.js');
11
- const rubric = require('./rubric-5b467a6a.js');
11
+ const rubric = require('./rubric-9cc04cb0.js');
12
12
  const heading$1 = require('./heading-5afc2b24.js');
13
- const option$1 = require('./option-24f3d13a.js');
13
+ const option$1 = require('./option-a078d432.js');
14
14
  const change = require('./change-cdb1e8c0.js');
15
15
  const locale = require('./locale-d4e925b1.js');
16
16
  const image = require('./image-3bee3e73.js');
@@ -632,12 +632,15 @@ const BibleReadingComponent = class {
632
632
  /* `long` render a typical Bible reading in the liturgy */
633
633
  else {
634
634
  const paragraphs = this.paragraphs();
635
- return (index.h("div", { lang: (_t = this.obj) === null || _t === void 0 ? void 0 : _t.language, class: `bible-reading ${((_u = this.obj) === null || _u === void 0 ? void 0 : _u.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 }) }), ((_w = (_v = this.obj) === null || _v === void 0 ? void 0 : _v.metadata) === null || _w === void 0 ? void 0 : _w.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) => verse.hasOwnProperty('type') && verse.type === 'heading'
636
- ? index.h("ldf-heading", { doc: new heading$1.Heading(verse) })
637
- : [
638
- index.h("sup", null, verse.verse),
639
- index.h("ldf-string", { citation: verse, dropcap: paragraphIndex == 0 && verseIndex == 0 ? 'force' : 'disabled', id: `${verse.chapter}-${verse.book}-${verse.verse}`, text: verse.text, index: verseIndex, fragment: this.path })
640
- ])))));
635
+ return (index.h("div", { lang: (_t = this.obj) === null || _t === void 0 ? void 0 : _t.language, class: `bible-reading ${((_u = this.obj) === null || _u === void 0 ? void 0 : _u.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 }) }), ((_w = (_v = this.obj) === null || _v === void 0 ? void 0 : _v.metadata) === null || _w === void 0 ? void 0 : _w.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
+ var _a;
637
+ return verse.hasOwnProperty('type') && verse.type === 'heading'
638
+ ? index.h("ldf-heading", { doc: new heading$1.Heading(verse) })
639
+ : [
640
+ index.h("sup", null, verse.verse),
641
+ index.h("ldf-string", { citation: verse, dropcap: paragraphIndex == 0 && verseIndex == 0 && ((_a = this.obj) === null || _a === void 0 ? void 0 : _a.language) !== 'iu' ? 'force' : 'disabled', id: `${verse.chapter}-${verse.book}-${verse.verse}`, text: verse.text, index: verseIndex, fragment: this.path })
642
+ ];
643
+ })))));
641
644
  }
642
645
  }
643
646
  else {
@@ -2247,7 +2250,7 @@ const PsalmComponent = class {
2247
2250
  section.label && ((_a = section.value) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.headingNode(section.label, 4, false, true, true),
2248
2251
  // build a set of verses
2249
2252
  index.h("div", { class: 'psalm-set' }, section.value.map((verse, verseIndex) => {
2250
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
2253
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
2251
2254
  // build each verse
2252
2255
  if (verse instanceof heading$1.Heading) {
2253
2256
  // for e.g., the Benedicite, Heading passed at head of section
@@ -2259,12 +2262,12 @@ const PsalmComponent = class {
2259
2262
  // 1st half of verse
2260
2263
  nodes.push(index.h("div", { class: 'verse' }, this.editable ?
2261
2264
  index.h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-${sectionIndex}-${verseIndex}-verse`, text: verse.verse, path: `${this.path}/value/${sectionIndex}/value/${verseIndex}/verse`, placeholder: 'Lorem ipsum sit dolor amet, *', template: pattern, templateMaker: templateMaker }) :
2262
- index.h("ldf-string", { text: verse.verse, citation: { label: (_a = this.obj) === null || _a === void 0 ? void 0 : _a.label, book: ((_b = this.obj) === null || _b === void 0 ? void 0 : _b.style) === 'psalm' ? 'Psalm' : undefined, chapter: (_d = (_c = this.obj) === null || _c === void 0 ? void 0 : _c.metadata) === null || _d === void 0 ? void 0 : _d.number, verse: verse.number }, dropcap: (verseIndex == 0 && ((_e = this.obj) === null || _e === void 0 ? void 0 : _e.language) !== "he") ? 'force' : 'disabled', index: verseIndex, fragment: this.path })));
2265
+ index.h("ldf-string", { text: verse.verse, citation: { label: (_a = this.obj) === null || _a === void 0 ? void 0 : _a.label, book: ((_b = this.obj) === null || _b === void 0 ? void 0 : _b.style) === 'psalm' ? 'Psalm' : undefined, chapter: (_d = (_c = this.obj) === null || _c === void 0 ? void 0 : _c.metadata) === null || _d === void 0 ? void 0 : _d.number, verse: verse.number }, dropcap: (verseIndex == 0 && ((_e = this.obj) === null || _e === void 0 ? void 0 : _e.language) !== "he" && ((_f = this.obj) === null || _f === void 0 ? void 0 : _f.language) !== "iu") ? 'force' : 'disabled', index: verseIndex, fragment: this.path })));
2263
2266
  nodes.push(index.h("br", null));
2264
2267
  // 2nd half of verse
2265
2268
  nodes.push(index.h("div", { class: 'halfverse' }, this.editable ?
2266
2269
  index.h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-${sectionIndex}-${verseIndex}-halfverse`, text: verse.halfverse, path: `${this.path}/value/${sectionIndex}/value/${verseIndex}/halfverse`, placeholder: 'consectetur adipiscing elit.', template: pattern }) :
2267
- index.h("ldf-string", { text: verse.halfverse, citation: { label: (_f = this.obj) === null || _f === void 0 ? void 0 : _f.label, book: ((_g = this.obj) === null || _g === void 0 ? void 0 : _g.style) === 'psalm' ? 'Psalm' : undefined, chapter: (_j = (_h = this.obj) === null || _h === void 0 ? void 0 : _h.metadata) === null || _j === void 0 ? void 0 : _j.number, verse: verse.number }, dropcap: 'disabled', fragment: this.path })));
2270
+ index.h("ldf-string", { text: verse.halfverse, citation: { label: (_g = this.obj) === null || _g === void 0 ? void 0 : _g.label, book: ((_h = this.obj) === null || _h === void 0 ? void 0 : _h.style) === 'psalm' ? 'Psalm' : undefined, chapter: (_k = (_j = this.obj) === null || _j === void 0 ? void 0 : _j.metadata) === null || _k === void 0 ? void 0 : _k.number, verse: verse.number }, dropcap: 'disabled', fragment: this.path })));
2268
2271
  // render the verse
2269
2272
  return (index.h("p", { class: this.editable ? 'psalm editable' : 'psalm', onClick: () => {
2270
2273
  this.focusedVerse = verseIndex;
@@ -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
- ? /^ ?([\"\'“”‘’\!\?\[\]\(\)\,\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]*)/
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)
@@ -4,10 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-8fe0df8d.js');
6
6
  const book = require('./book-1a92678a.js');
7
- const rubric$1 = require('./rubric-5b467a6a.js');
7
+ const rubric$1 = require('./rubric-9cc04cb0.js');
8
8
  const heading$1 = require('./heading-5afc2b24.js');
9
9
  const image$1 = require('./image-3bee3e73.js');
10
- const option$1 = require('./option-24f3d13a.js');
10
+ const option$1 = require('./option-a078d432.js');
11
11
  const refrain$1 = require('./refrain-91fb446b.js');
12
12
  const text$1 = require('./text-5edb80f3.js');
13
13
  const locale = require('./locale-d4e925b1.js');
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-8fe0df8d.js');
6
6
  const book = require('./book-1a92678a.js');
7
- const option = require('./option-24f3d13a.js');
7
+ const option = require('./option-a078d432.js');
8
8
  const locale = require('./locale-d4e925b1.js');
9
9
 
10
10
  /* Converts a list of documents into a single document showing options in parallel */
@@ -5,10 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-8fe0df8d.js');
6
6
  const book = require('./book-1a92678a.js');
7
7
  const change = require('./change-cdb1e8c0.js');
8
- const option = require('./option-24f3d13a.js');
9
- const specificClass = require('./specific-class-a1112e78.js');
8
+ const option = require('./option-a078d432.js');
9
+ const specificClass = require('./specific-class-36a74859.js');
10
10
  const locale = require('./locale-d4e925b1.js');
11
- require('./rubric-5b467a6a.js');
11
+ require('./rubric-9cc04cb0.js');
12
12
  require('./heading-5afc2b24.js');
13
13
  require('./refrain-91fb446b.js');
14
14
  require('./text-5edb80f3.js');
@@ -5,11 +5,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-8fe0df8d.js');
6
6
  const book = require('./book-1a92678a.js');
7
7
  const change = require('./change-cdb1e8c0.js');
8
- const specificClass = require('./specific-class-a1112e78.js');
8
+ const specificClass = require('./specific-class-36a74859.js');
9
9
  const locale = require('./locale-d4e925b1.js');
10
- require('./rubric-5b467a6a.js');
10
+ require('./rubric-9cc04cb0.js');
11
11
  require('./heading-5afc2b24.js');
12
- require('./option-24f3d13a.js');
12
+ require('./option-a078d432.js');
13
13
  require('./refrain-91fb446b.js');
14
14
  require('./text-5edb80f3.js');
15
15
 
@@ -58,7 +58,10 @@ class Option extends book.LiturgicalDocument {
58
58
  var _a, _b, _c;
59
59
  const uniqueVersions = this.uniqueVersions(), uniqueLabels = this.uniqueLabels(), uniqueCitations = this.uniqueCitations(), uniqueCanticleNumbers = this.uniqueCanticleNumbers();
60
60
  let label = '';
61
- if (option.type == 'liturgy') {
61
+ if (option.version_label) {
62
+ label = option.version_label;
63
+ }
64
+ else if (option.type == 'liturgy') {
62
65
  label = option.label || option.version_label || 'Option';
63
66
  }
64
67
  // Psalm 119 parts => Psalm 119: Aleph