@venite/components 0.16.14 → 0.16.15
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/ion-segment_16.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-add-block-menu.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-lookup_2.cjs.entry.js +2 -2
- package/dist/cjs/ldf-editable-metadata.cjs.entry.js +2 -2
- package/dist/cjs/{rubric-5b467a6a.js → rubric-586cf42b.js} +116 -0
- package/dist/cjs/{specific-class-a1112e78.js → specific-class-bec65db8.js} +1 -1
- package/dist/esm/ion-segment_16.entry.js +1 -1
- package/dist/esm/ldf-editable-add-block-menu.entry.js +1 -1
- package/dist/esm/ldf-editable-lookup_2.entry.js +2 -2
- package/dist/esm/ldf-editable-metadata.entry.js +2 -2
- package/dist/esm/{rubric-91bf7fed.js → rubric-54f45eb5.js} +116 -0
- package/dist/esm/{specific-class-ef83cfb6.js → specific-class-b68bdee5.js} +1 -1
- package/dist/ldf/ldf.esm.js +1 -1
- package/dist/ldf/{p-bdcf2b02.entry.js → p-21b1d984.entry.js} +1 -1
- package/dist/ldf/p-3755f069.js +1 -0
- package/dist/ldf/{p-5ea6de28.entry.js → p-7e50fd1d.entry.js} +1 -1
- package/dist/ldf/p-883425cd.js +3 -0
- package/dist/ldf/{p-1e8c8a66.entry.js → p-8f3c4fdb.entry.js} +1 -1
- package/dist/ldf/{p-1902f41e.entry.js → p-93ea522c.entry.js} +1 -1
- package/package.json +2 -2
- package/dist/ldf/p-8f67abb8.js +0 -3
- package/dist/ldf/p-c60a875b.js +0 -1
package/dist/ldf/p-8f67abb8.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{L as e}from"./p-4aa9a6f2.js";const o=[{name:"Genesis",aliases:["Gn","Gen","Genesis"]},{name:"Exodus",aliases:["Exod","Ex","Exo","Exodus"]},{name:"Leviticus",aliases:["Lev","Lv","Leviticus"]},{name:"Numbers",aliases:["Num","Numbers"]},{name:"Deuteronomy",aliases:["Deut","Deuteronomy"]},{name:"Joshua",aliases:["Josh","Joshua"]},{name:"Judges",aliases:["Judg","Jdg","Judges"]},{name:"Ruth",aliases:["Ruth"]},{name:"1 Samuel",aliases:["1Sam","1 Sam","1st Sam","1st Samuel","First Samuel","1 Samuel"]},{name:"2 Samuel",aliases:["2Sam","2 Sam","2nd Sam","2nd Samuel","Second Samuel","2 Samuel"]},{name:"1 Kings",aliases:["1Kgs","1 Kgs","1st Kgs","1st Kings","First Kings","1 Kings"]},{name:"2 Kings",aliases:["2Kgs","2 Kgs","2nd Kgs","2nd Kings","Second Kings","2 Kings"]},{name:"1 Chronicles",aliases:["1Chr","1 Chr","1st Chr","1st Chronicles","First Chronicles","1 Chronicles"]},{name:"2 Chronicles",aliases:["2Chr","2 Chr","2nd Chr","2nd Chronicles","Second Chronicles","2 Chronicles"]},{name:"Ezra",aliases:["Ezra"]},{name:"Nehemiah",aliases:["Neh","Nehemiah"]},{name:"Esther",aliases:["Esth","Est","Esther"]},{name:"Job",aliases:["Jb","Job"]},{name:"Psalms",aliases:["Ps","Psalm","Psalms"]},{name:"Proverbs",aliases:["Prov","Pro","Proverbs"]},{name:"Ecclesiastes",aliases:["Eccl","Ecc","Ecclesiastes"]},{name:"The Song of Solomon",aliases:["Song","Song of Songs","Song of Solomon","Cant"]},{name:"Isaiah",aliases:["Isa","Is","Isaiah"]},{name:"Jeremiah",aliases:["Jer","Jeremiah"]},{name:"Letter of Jeremiah",aliases:["EJer","EpJer","Epistle of Jeremiah"]},{name:"Lamentations",aliases:["Lam","Lamentations"]},{name:"Ezekiel",aliases:["Ezek","Ezekiel"]},{name:"Daniel",aliases:["Dan","Daniel"]},{name:"Hosea",aliases:["Hos","Hosea"]},{name:"Joel",aliases:["Joel"]},{name:"Amos",aliases:["Amos"]},{name:"Obadiah",aliases:["Obad","Oba","Obadiah"]},{name:"Jonah",aliases:["Jon","Jonah"]},{name:"Micah",aliases:["Mic","Micah"]},{name:"Nahum",aliases:["Nah","Nahum"]},{name:"Habakkuk",aliases:["Hab","Habakkuk"]},{name:"Zephaniah",aliases:["Zeph","Zephaniah"]},{name:"Haggai",aliases:["Hag","Haggai"]},{name:"Zechariah",aliases:["Zech","Zechariah"]},{name:"Malachi",aliases:["Mal","Malachi"]},{name:"Tobit",aliases:["Tob","Tobit"]},{name:"Judith",aliases:["Jdt","Judith"]},{name:"Baruch",aliases:["Bar","Baruch"]},{name:"1 Maccabees",aliases:["1Macc","1 Maccabees","First Maccabees","1 Macc"]},{name:"2 Maccabees",aliases:["2Macc","2 Maccabees","Second Maccabees","2 Macc"]},{name:"Wisdom",aliases:["Wis","Wisdom"]},{name:"Sirach",aliases:["Sir","Ecclus","Ben Sira","Ecclesiasticus"]},{name:"1 Esdras",aliases:["1 Esdr","1 Esdras","1 Esd","1Esdras","1Esdr","1Esd"]},{name:"2 Esdras",aliases:["2 Esdr","2 Esdras","2 Esd","2Esdras","2Esdr","2Esd"]},{name:"Bel",aliases:["Bel","Bel & the Dragon"]},{name:"Azariah",aliases:["Azariah","Song of the Three Young Men","Song of the Three Childr.","Song of the Three Children"]},{name:"Matthew",aliases:["Matt","Matthew","Mt"]},{name:"Mark",aliases:["Mark","Mk"]},{name:"Luke",aliases:["Luke","Lk"]},{name:"John",aliases:["Jn","John","Joh"]},{name:"Acts",aliases:["Acts"]},{name:"Romans",aliases:["Rom","Romans"]},{name:"1 Corinthians",aliases:["1Cor","1 Cor","1st Cor","1st Corinthians","First Corinthians","1 Corinthians"]},{name:"2 Corinthians",aliases:["2Cor","2 Cor","2nd Cor","2nd Corinthians","Second Corinthians","2 Corinthians"]},{name:"Galatians",aliases:["Gal","Galatians"]},{name:"Ephesians",aliases:["Eph","Ephesians"]},{name:"Philippians",aliases:["Phil","Philippians"]},{name:"Colossians",aliases:["Col","Colossians"]},{name:"1 Thessalonians",aliases:["1Thess","1 Thess","1st Thess","1st Thessalonians","First Thessalonians","1 Thessalonians"]},{name:"2 Thessalonians",aliases:["2Thess","2 Thess","2nd Thess","2nd Thessalonians","Second Thessalonians","2 Thessalonians"]},{name:"1 Timothy",aliases:["1 Tim","1Tim","1st Tim","1st Timothy","First Timothy","1 Timothy"]},{name:"2 Timothy",aliases:["2 Tim","2Tim","2nd Tim","2nd Timothy","Second Timothy","2 Timothy"]},{name:"Titus",aliases:["Titus"]},{name:"Philemon",aliases:["Phlm","Philemon"]},{name:"Hebrews",aliases:["Heb","Hebrews"]},{name:"James",aliases:["Jas","James"]},{name:"1 Peter",aliases:["1Pet","1 Pet","1st Pet","1st Peter","First Peter","1 Peter"]},{name:"2 Peter",aliases:["2Pet","2 Pet","2nd Pet","2nd Peter","Second Peter","2 Peter"]},{name:"1 John",aliases:["1John","1 John","1st John","First John","1 Joh"]},{name:"2 John",aliases:["2John","2 John","2nd John","Second John","2 Joh"]},{name:"3 John",aliases:["3John","3 John","3rd John","Third John","3 Joh"]},{name:"Jude",aliases:["Jude","Jd"]},{name:"Revelation",aliases:["Rev","Revelation","Revelations","Apocalypse","Apoc"]}],s={Genesis:{en:{short:"Genesis",long:"The Book of Genesis"}},Exodus:{en:{short:"Exodus",long:"The Book of Exodus"}},Leviticus:{en:{short:"Leviticus",long:"The Book of Leviticus"}},Numbers:{en:{short:"Numbers",long:"The Book of Numbers"}},Deuteronomy:{en:{short:"Deuteronomy",long:"The Book of Deuteronomy"}},Joshua:{en:{short:"Joshua",long:"The Book of Joshua"}},Judges:{en:{short:"Judges",long:"The Book of Judges"}},Ruth:{en:{short:"Ruth",long:"The Book of Ruth"}},"1 Samuel":{en:{short:"1 Samuel",long:"The First Book of Samuel"}},"2 Samuel":{en:{short:"2 Samuel",long:"The Second Book of Samuel"}},"1 Kings":{en:{short:"1 Kings",long:"The First Book of Kings"}},"2 Kings":{en:{short:"2 Kings",long:"The Second Book of Kings"}},"1 Chronicles":{en:{short:"1 Chronicles",long:"The First Book of Chronicles"}},"2 Chronicles":{en:{short:"2 Chronicles",long:"The Second Book of Chronicles"}},Ezra:{en:{short:"Ezra",long:"The Book of Ezra"}},Nehemiah:{en:{short:"Nehemiah",long:"The Book of Nehemiah"}},Esther:{en:{short:"Esther",long:"The Book of Esther"}},Job:{en:{short:"Job",long:"The Book of Job"}},Psalms:{en:{short:"Psalms",long:"The Psalms"}},Proverbs:{en:{short:"Proverbs",long:"The Book of Proverbs"}},Ecclesiastes:{en:{short:"Ecclesiastes",long:"The Book of Ecclesiastes"}},"The Song of Solomon":{en:{short:"The Song of Solomon",long:"The Song of Solomon"}},Isaiah:{en:{short:"Isaiah",long:"The Book of the Prophet Isaiah"}},Jeremiah:{en:{short:"Jeremiah",long:"The Book of the Prophet Jeremiah"}},Lamentations:{en:{short:"Lamentations",long:"The Book of Lamentations"}},Ezekiel:{en:{short:"Ezekiel",long:"The Book of the Prophet Ezekiel"}},Daniel:{en:{short:"Daniel",long:"The Book of Daniel"},"en-CA":{short:"Daniel",long:"The Book of the Prophet Daniel"}},Hosea:{en:{short:"Hosea",long:"The Book of the Prophet Hosea"}},Joel:{en:{short:"Joel",long:"The Book of the Prophet Joel"}},Amos:{en:{short:"Amos",long:"The Book of the Prophet Amos"}},Obadiah:{en:{short:"Obadiah",long:"The Book of the Prophet Obadiah"}},Jonah:{en:{short:"Jonah",long:"The Book of the Prophet Jonah"}},Micah:{en:{short:"Micah",long:"The Book of the Prophet Micah"}},Nahum:{en:{short:"Nahum",long:"The Book of the Prophet Nahum"}},Habakkuk:{en:{short:"Habakkuk",long:"The Book of the Prophet Habakkuk"}},Zephaniah:{en:{short:"Zephaniah",long:"The Book of the Prophet Zephaniah"}},Haggai:{en:{short:"Haggai",long:"The Book of the Prophet Haggai"}},Zechariah:{en:{short:"Zechariah",long:"The Book of the Prophet Zechariah"}},Malachi:{en:{short:"Malachi",long:"The Book of the Prophet Malachi"}},Tobit:{en:{short:"Tobit",long:"The Book of Tobit"}},Azariah:{en:{short:"The Song of the Three Children",long:"The Song of the Three Children"}},Judith:{en:{short:"Judith",long:"The Book of Judith"}},Baruch:{en:{short:"Baruch",long:"The Book of Baruch"}},"1 Maccabees":{en:{short:"1 Maccabees",long:"The First Book of Maccabees"}},"2 Maccabees":{en:{short:"2 Maccabees",long:"The Second Book of Maccabees"}},Wisdom:{en:{short:"Wisdom",long:"The Wisdom of Solomon"}},Sirach:{en:{short:"Sirach",long:"The Wisdom of Ben Sira"},"en-CA":{short:"Sirach",long:"The Book of Ecclesiasticus"}},Matthew:{en:{short:"Matthew",long:"The Gospel According to Matthew"},"en-CA":{short:"Matthew",long:"The Gospel According to St. Matthew"}},Mark:{en:{short:"Mark",long:"The Gospel According to Mark"},"en-CA":{short:"Mark",long:"The Gospel According to St. Mark"}},Luke:{en:{short:"Luke",long:"The Gospel According to Luke"},"en-CA":{short:"Luke",long:"The Gospel According to St. Luke"}},John:{en:{short:"John",long:"The Gospel According to John"},"en-CA":{short:"John",long:"The Gospel According to St. John"}},Acts:{en:{short:"Acts",long:"The Acts of the Apostles"},"en-CA":{short:"Acts",long:"The Book of the Acts of the Apostles"}},Romans:{en:{short:"Romans",long:"The Letter to the Romans"},"en-CA":{short:"Romans",long:"The Epistle of St. Paul the Apostle to the Romans"}},"1 Corinthians":{en:{short:"1 Corinthians",long:"The First Letter to the Corinthians"},"en-CA":{short:"1 Corinthians",long:"The First Epistle of St. Paul the Apostle to the Corinthians"}},"2 Corinthians":{en:{short:"2 Corinthians",long:"The Second Letter to the Corinthians"},"en-CA":{short:"2 Corinthians",long:"The Second Epistle of St. Paul the Apostle to the Corinthians"}},Galatians:{en:{short:"Galatians",long:"The Letter to the Galatians"},"en-CA":{short:"Galatians",long:"The Epistle of St. Paul the Apostle to the Galatians"}},Ephesians:{en:{short:"Ephesians",long:"The Letter to the Ephesians"},"en-CA":{short:"Ephesians",long:"The Epistle of St. Paul the Apostle to the Ephesians"}},Philippians:{en:{short:"Philippians",long:"The Letter to the Philippians"},"en-CA":{short:"Philippians",long:"The Epistle of St. Paul the Apostle to the Philippians"}},Colossians:{en:{short:"Colossians",long:"The Letter to the Colossians"},"en-CA":{short:"Colossians",long:"The Epistle of St. Paul the Apostle to the Colossians"}},"1 Thessalonians":{en:{short:"1 Thessalonians",long:"The First Letter to the Thessalonians"},"en-CA":{short:"1 Thessalonians",long:"The First Epistle of St. Paul the Apostle to the Thessalonians"}},"2 Thessalonians":{en:{short:"2 Thessalonians",long:"The Second Letter to the Thessalonians"},"en-CA":{short:"2 Thessalonians",long:"The Second Epistle of St. Paul the Apostle to the Thessalonians"}},"1 Timothy":{en:{short:"1 Timothy",long:"The First Letter to Timothy"},"en-CA":{short:"1 Timothy",long:"The First Epistle of St. Paul the Apostle to Timothy"}},"2 Timothy":{en:{short:"2 Timothy",long:"The Second Letter to Timothy"},"en-CA":{short:"2 Timothy",long:"The Second Epistle of St. Paul the Apostle to Timothy"}},Titus:{en:{short:"Titus",long:"The Letter to Titus"},"en-CA":{short:"Titus",long:"The Epistle of St. Paul the Apostle to Titus"}},Philemon:{en:{short:"Philemon",long:"The Letter to Philemon"},"en-CA":{short:"Philemon",long:"The Epistle of St. Paul the Apostle to Philemon"}},Hebrews:{en:{short:"Hebrews",long:"The Book of Hebrews"},"en-CA":{short:"Hebrews",long:"The Epistle to the Hebrews"}},James:{en:{short:"James",long:"The Letter of James"},"en-CA":{short:"James",long:"The Epistle General of St. James"}},"1 Peter":{en:{short:"1 Peter",long:"The First Letter of Peter"},"en-CA":{short:"1 Peter",long:"The First Epistle General of St. Peter"}},"2 Peter":{en:{short:"2 Peter",long:"The Second Letter of Peter"},"en-CA":{short:"2 Peter",long:"The Second Epistle General of St. Peter"}},"1 John":{en:{short:"1 John",long:"The First Letter of John"},"en-CA":{short:"2 John",long:"The First Epistle General of St. John"}},"2 John":{en:{short:"2 John",long:"The Second Letter of John"},"en-CA":{short:"2 John",long:"The Second Epistle General of St. John"}},"3 John":{en:{short:"3 John",long:"The Third Letter of John"},"en-CA":{short:"3 John",long:"The Third Epistle General of St. John"}},Jude:{en:{short:"Jude",long:"The Letter of Jude"},"en-CA":{short:"Jude",long:"The Epistle General of St. Jude"}},Revelation:{en:{short:"Revelation",long:"The Book of Revelation"},"en-CA":{short:"Revelation",long:"The Revelation to St. John the Divine"}},"1 Esdras":{en:{short:"1 Esdras",long:"The Second Book of Esdras"}},"2 Esdras":{en:{short:"2 Esdras",long:"The Second Book of Esdras"}},Bel:{en:{short:"Bel",long:"Bel and the Dragon"}},"Letter of Jeremiah":{en:{short:"Letter of Jeremiah",long:"The Letter of Jeremiah"}}};function a(e){var o=e%10,s=e%100;return 1==o&&11!=s?e+"st":2==o&&12!=s?e+"nd":3==o&&13!=s?e+"rd":e+"th"}const n=["long","short"];class t extends e{constructor(e={}){super(e)}compileIntro(){var o,s,n,t;if(this.metadata&&this.metadata.intro){const h=null!==(o=this.abbrevFromCitation())&&void 0!==o?o:this.citation,i=this.bookCodeFromAbbrev(null!=h?h:""),r=h?this.longNameFromBookCode(null!=i?i:"",this.language||"en"):"—",l=h?this.shortNameFromBookCode(null!=i?i:"",this.language||"en"):"—",m=this.chapterFromCitation(),c=this.verseFromCitation(),g=new Array,T=e=>e.replace(/\$\{longName\}/g,(null!=r?r:h).replace("The","the")).replace(/\$\{shortName\}/g,null!=l?l:h).replace(/\$\{chapter\}/g,`${a(Number(m)||1)}`).replace(/\$\{verse\}/g,`${a(Number(c)||1)}`);null===(t=null===(n=null===(s=this.metadata)||void 0===s?void 0:s.intro)||void 0===n?void 0:n.value)||void 0===t||t.forEach((e=>{"string"==typeof e?g.push(T(e)):e.hasOwnProperty("text")?g.push(Object.assign(Object.assign({},e),{text:T(e.text)})):g.push(T(e))})),this.metadata.compiled_intro=new e(Object.assign(Object.assign({},this.metadata.intro),{value:g}))}}abbrevFromCitation(){let e;try{const o=(this.citation||"").match(/(\d*\s*[a-zA-Z]+)/);e=o?o[0]:""}catch(o){e=this.citation}return e.replace(/\./g,"")}chapterFromCitation(){var e;const o=null===(e=(this.citation||"").split(";")[0])||void 0===e?void 0:e.match(/[\s\.:](\d+)/g);if(o){const[e]=o;return"string"==typeof e?e.trim().replace(/[\.,:]/g,""):void 0}}verseFromCitation(){var e;const o=null===(e=(this.citation||"").split(";")[0])||void 0===e?void 0:e.match(/[\s\.:](\d+)/g);if(o){const[,e]=o;return"string"==typeof e?e.trim().replace(/[\.,:]/g,""):void 0}}bookCodeFromAbbrev(e){if(e){const s=e.replace(/\./g,""),a=o.find((e=>e.name==s||e.aliases.includes(s)||e.name.includes(s)));return a?a.name:e}}longNameFromBookCode(e,o="en"){const a=this.bookCodeFromAbbrev(e);if(a){const n=s[a];let t=(n||{})[o];return t||(t=(n||{}).en),t?t.long:e}}shortNameFromBookCode(e,o="en"){var a;const n=(s[null!==(a=this.bookCodeFromAbbrev(e))&&void 0!==a?a:""]||{})[o];return n?n.short:e}availableStyles(){return n}availableDisplayFormats(){return["default","omit"]}}class h extends e{availableDisplayFormats(){return[]}}class i extends e{constructor(e={}){super(e)}}const r=["psalm","canticle","invitatory"];class l extends e{constructor(e={}){super(e)}filteredVerses(){let e=new Array;if(this.citation&&(this.citation.match(/Ps[^\s]*\s*\d+/)||""==this.citation)){const o=this.versesInCitation(this.citation);0==o.length?e=this.value:(this.value||[]).forEach((s=>{const a=new Array;(s.value||[]).forEach((e=>{!e.number||o.includes(e.number)?a.push(e):o.includes(`[${e.number}`)?a.push(Object.assign(Object.assign({},e),{verse:"["+e.verse})):o.includes(`${e.number}]`)?a.push(Object.assign(Object.assign({},e),{halfverse:e.halfverse+"]"})):o.includes(`[${e.number}]`)&&a.push(Object.assign(Object.assign({},e),{verse:"["+e.verse,halfverse:e.halfverse+"]"}))})),e.push(Object.assign(Object.assign({},s),{value:a}))}))}else e=this.value;return e}versesInCitation(e){function o(e,o,s){return e&&o?"["+s+"]":e?"["+s:o?s+"]":s}const s=e.replace(/Ps[\w\.]*\s*/g,"").split(/\s*([\[\]\(\),:\s])\s*/).slice(1);let a=new Array,n=!1,t=!1;return(s||[]).forEach(((e,h)=>{"["!==e&&"("!==e||(n=!0),"]"!==s[h+1]&&")"!==s[h+1]||(t=!0);const[i,r]=e.replace(/[^\d-s–]/g,"").split(/-|–/);if(i&&r){const e=t;for(let s=parseInt(i);s<=parseInt(r);s++)t=e&&s==parseInt(r),a.push(o(n,t,s.toString())),n=!1}else i&&(a.push(o(n,t,i)),n=!1),t=!1})),a}includeAntiphon(){const e=this.metadata||{};return!!e.antiphon&&!e.omit_antiphon;
|
|
2
|
-
//!(this.style == 'canticle' && !metadata.omit_gloria);
|
|
3
|
-
}repeatAntiphon(e,o=0){const s=this.metadata||{};return 0==o&&(o=this.filteredVerses().length),this.includeAntiphon()&&!(s.omit_gloria&&e==o-1)}availableStyles(){return r}availableDisplayFormats(){return["default","omit","unison","wholeverse","halfverse"]}}const m=["preces","litany","responsive"];class c extends e{constructor(e={}){super(e)}availableStyles(){return m}availableDisplayFormats(){return[]}}class g extends e{constructor(e={}){super(e)}availableDisplayFormats(){return[]}}export{t as B,h as L,i as M,l as P,c as R,g as a}
|
package/dist/ldf/p-c60a875b.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{M as e,P as r,B as s,R as a,a as n,L as t}from"./p-8f67abb8.js";import{H as i}from"./p-a1729dbd.js";import{O as o}from"./p-9155f066.js";import{R as u}from"./p-5b43e6be.js";import{T as c}from"./p-65d26c45.js";function p(p){switch(p.type){case"liturgy":return new t(p);case"heading":return new i(p);case"option":return new o(p);case"refrain":return new u(p);case"rubric":return new n(p);case"text":return new c(p);case"responsive":return new a(p);case"bible-reading":return new s(p);case"psalm":return new r(p);case"meditation":return new e(p);default:return p}}export{p as s}
|