@venite/components 0.16.32 → 0.16.33
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-button_13.cjs.entry.js +1 -1
- package/dist/cjs/ion-card-content_6.cjs.entry.js +1 -1
- package/dist/cjs/ion-checkbox_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-input_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment_16.cjs.entry.js +1 -1
- package/dist/cjs/ldf-day-name_5.cjs.entry.js +295 -18
- package/dist/cjs/ldf-editable-add-block-menu.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-condition-piece.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-condition.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-filter-documents.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-lookup_2.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-metadata.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-preference-option.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-preference.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-preferences.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-string-list.cjs.entry.js +1 -1
- package/dist/cjs/{locale-d4e925b1.js → locale-13a47c0e.js} +2 -2
- package/dist/collection/components/day-name/day-name.i18n.es.json +265 -0
- package/dist/collection/components/day-name/day-name.js +18 -11
- package/dist/collection/components/day-name/dist/day-name.js +163 -0
- package/dist/collection/components/heading/dist/heading.js +5 -5
- package/dist/collection/components/heading/heading.js +5 -5
- package/dist/collection/i18n/day-name.i18n.es.json +265 -0
- package/dist/collection/utils/dist/locale.js +82 -0
- package/dist/collection/utils/locale.js +5 -6
- package/dist/esm/ion-button_13.entry.js +1 -1
- package/dist/esm/ion-card-content_6.entry.js +1 -1
- package/dist/esm/ion-checkbox_3.entry.js +1 -1
- package/dist/esm/ion-input_2.entry.js +1 -1
- package/dist/esm/ion-segment_16.entry.js +1 -1
- package/dist/esm/ldf-day-name_5.entry.js +295 -18
- package/dist/esm/ldf-editable-add-block-menu.entry.js +1 -1
- package/dist/esm/ldf-editable-condition-piece.entry.js +1 -1
- package/dist/esm/ldf-editable-condition.entry.js +1 -1
- package/dist/esm/ldf-editable-filter-documents.entry.js +1 -1
- package/dist/esm/ldf-editable-lookup_2.entry.js +1 -1
- package/dist/esm/ldf-editable-metadata.entry.js +1 -1
- package/dist/esm/ldf-editable-preference-option.entry.js +1 -1
- package/dist/esm/ldf-editable-preference.entry.js +1 -1
- package/dist/esm/ldf-editable-preferences.entry.js +1 -1
- package/dist/esm/ldf-editable-string-list.entry.js +1 -1
- package/dist/esm/locale-de430ca1.js +6 -0
- package/dist/ldf/i18n/day-name.i18n.es.json +265 -0
- package/dist/ldf/ldf.esm.js +1 -1
- package/dist/ldf/{p-cd2e39ca.entry.js → p-0f706bcd.entry.js} +1 -1
- package/dist/ldf/p-1d5e9bac.entry.js +1 -0
- package/dist/ldf/{p-30ffc0cd.entry.js → p-31dc4ea7.entry.js} +1 -1
- package/dist/ldf/{p-a3b9dc24.entry.js → p-44c8d30b.entry.js} +1 -1
- package/dist/ldf/{p-0491d1d2.js → p-546bb0de.js} +0 -0
- package/dist/ldf/{p-f43df90f.entry.js → p-56ea465d.entry.js} +1 -1
- package/dist/ldf/{p-c3279ab4.entry.js → p-5906d820.entry.js} +1 -1
- package/dist/ldf/{p-b923eab2.entry.js → p-791369ff.entry.js} +1 -1
- package/dist/ldf/{p-f6afaa8f.entry.js → p-84ab4f0c.entry.js} +1 -1
- package/dist/ldf/{p-35bfe3eb.entry.js → p-8af99fa3.entry.js} +1 -1
- package/dist/ldf/{p-068e9f88.entry.js → p-9e255008.entry.js} +1 -1
- package/dist/ldf/{p-79eb1b06.entry.js → p-ada4d650.entry.js} +1 -1
- package/dist/ldf/{p-5642949a.entry.js → p-aeaa99ba.entry.js} +1 -1
- package/dist/ldf/{p-c8389a67.entry.js → p-c77ba7ad.entry.js} +1 -1
- package/dist/ldf/{p-b971af53.entry.js → p-ebd887c2.entry.js} +1 -1
- package/dist/ldf/{p-9d849fad.entry.js → p-fa135d5f.entry.js} +1 -1
- package/dist/ldf/{p-a6a44bf6.entry.js → p-fddee761.entry.js} +1 -1
- package/package.json +1 -1
- package/dist/esm/locale-ec8e14e6.js +0 -6
- package/dist/ldf/p-aea73748.entry.js +0 -1
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
{
|
|
2
|
+
"after": " después de ",
|
|
3
|
+
"the": " el ",
|
|
4
|
+
"The Holy Name of Our Lord Jesus Christ": "El Santo Nombre de Nuestro Señor Jesucristo",
|
|
5
|
+
"The Epiphany of Our Lord Jesus Christ": "La Epifanía de Nuestro Señor Jesucristo",
|
|
6
|
+
"[Harriet Bedell, Deaconess and Missionary, 1969]": "",
|
|
7
|
+
"Julia Chester Emery, 1922": "Julia Chester Emery, 1922",
|
|
8
|
+
"William Laud, Archbishop of Canterbury, 1645": "Guillermo Laud, Arzobispo de Cantórbery, 1645",
|
|
9
|
+
"Aelred, Abbot of Rievaulx, 1167": "Aelred, Abad de Rievaulx, 1167",
|
|
10
|
+
"Hilary, Bishop of Poitiers, 367": "Hilario, Obispo de Poitiers, 367",
|
|
11
|
+
"Antony, Abbot in Egypt, 356": "Antoine, Abad en Egipto, 356",
|
|
12
|
+
"The Confession of Saint Peter the Apostle": "La Confesión de San Pedro, Apóstol",
|
|
13
|
+
"Wulfstan, Bishop of Worcester, 1095": "Wulfstán, Obispo de Worcester, 1095",
|
|
14
|
+
"Fabian, Bishop and Martyr of Rome, 250": "Fabián, Obispo y Mártir de Roma, 250",
|
|
15
|
+
"Agnes, Martyr at Rome, 304": "Inés, Mártir en Rome, 304",
|
|
16
|
+
"Vincent, Deacon of Saragossa, and Martyr, 304": "Vicente, Diácono de Zaragoza y Mártir, 304",
|
|
17
|
+
"Phillips Brooks, Bishop of Massachusetts, 1893": "Phillips Brooks, Obispo de Massachusetts, 1893",
|
|
18
|
+
"Ordination of Florence Li Tim-Oi, First Woman Priest in the Anglican Communion, 1944": "[La ordenación de Florencia Li Tim-Oi, Primera Mujer Sacerdote en la Comunión Anglicano, 1944]",
|
|
19
|
+
"The Conversion of Saint Paul the Apostle": "La Conversión de San Pablo, Apóstol",
|
|
20
|
+
"Timothy and Titus, Companions of Saint Paul": "Timoteo y Tito, Compañeros de San Pabloe",
|
|
21
|
+
"John Chrysostom, Bishop of Constantinople, 407": "Juan Crisóstomo, Obispo de Constantinopla, 407",
|
|
22
|
+
"Thomas Aquinas, Priest and Friar, 1274": "Tomás de Aquino, Presbítero y Fraile, 1274",
|
|
23
|
+
"Brigid (Bride), 523": "Brigid (Prometida), 523",
|
|
24
|
+
"The Presentation of Our Lord Jesus Christ in the Temple": "La Presentación de Nuestro Señor Jesucristo en el Templo",
|
|
25
|
+
"Anskar, Archbishop of Hamburg, Missionary to Denmark and Sweden, 865": "Anscario, Arzobispo de Hamburgo, Misionero a Dinamarca y Suecia, 865",
|
|
26
|
+
"Cornelius the Centurion": "Cornelio el Centurión",
|
|
27
|
+
"The Martyrs of Japan, 1597": "Los Mártires del Japón, 1597",
|
|
28
|
+
"Absalom Jones, Priest, 1818": "Absalón Jones, Presbítero, 1818",
|
|
29
|
+
"Cyril, Monk, and Methodius, Bishop, Missionaries to the Slavs, 869, 885": "Cirilo, Monje, y Metodio, Obispo, Misioneros a los Eslavos, 869, 885",
|
|
30
|
+
"Thomas Bray, Priest and Missionary, 1730": "Tomás Bray, Presbítero, Misionero, 1730",
|
|
31
|
+
"Janani Luwum, Archbishop of Uganda, and Martyr, 1977": "[Janani Luwum, Arzobispo de Uganda y Mártir, 1977]",
|
|
32
|
+
"Martin Luther, 1546": "Martin Luther, 1546",
|
|
33
|
+
"Polycarp, Bishop and Martyr of Smyrna, 156": "Policarpo, Obispo y Mártir de Esmirna, 156",
|
|
34
|
+
"Saint Matthias the Apostle": "San Matías, Apóstol",
|
|
35
|
+
"George Herbert, Priest, 1633": "Jorge Herbert, Presbítero, 1633",
|
|
36
|
+
"[Anna Julia Haywood Cooper, Educator, 1964]": "",
|
|
37
|
+
"David, Bishop of Menevia, Wales, c. 544": "David, Obispo de Menevia, Gales, c. 544",
|
|
38
|
+
"Chad, Bishop of Lichfield, 672": "Chad, Obispo de Lichfield, 672",
|
|
39
|
+
"John and Charles Wesley, Priests, 1791, 1788": "Juan y Carlos Wesley, Sacerdotes, 1791, 1788",
|
|
40
|
+
"Perpetua and her Companions, Martyrs at Carthage, 202": "Perpetua y sus Compañeros, Mártires en Cartago, 202",
|
|
41
|
+
"Gregory, Bishop of Nyssa, c. 394": "Gregorio, Obispo de Nisa, c. 394",
|
|
42
|
+
"Gregory the Great, Bishop of Rome, 604": "Gregorio Magno, Obispo de Roma, 604",
|
|
43
|
+
"[James Theodore Holly, Bishop of Haiti, and of the Dominican Republic, 1911]": "",
|
|
44
|
+
"Patrick, Bishop and Missionary of Ireland, 461": "Patricio, Obispo y Misionero de Irlanda, 461",
|
|
45
|
+
"Cyril, Bishop of Jerusalem, 386": "Cirilo, Obispo de Jerusalén, 386",
|
|
46
|
+
"Saint Joseph": "San José",
|
|
47
|
+
"Cuthbert, Bishop of Lindisfarne, 687": "Cutberto, Obispo de Lindisfarne, 687",
|
|
48
|
+
"Thomas Ken, Bishop of Bath and Wells, 1711": "Tomás Ken, Obispo de Bath y Wells, 1711",
|
|
49
|
+
"James De Koven, Priest, 1879": "Jaime De Koven, Presbítero, 1879",
|
|
50
|
+
"Gregory the Illuminator, Bishop and Missionary of Armenia, c. 332": "Gregorio el Iluminador, Obispo y Misionero de Armenia, 332",
|
|
51
|
+
"[Óscar Romero, Archbishop of San Salvador, and the Martyrs of San Salvador, 1980]": "",
|
|
52
|
+
"The Annunciation of Our Lord Jesus Christ to the Blessed Virgin Mary": "La Anunciación de Nuestro Señor Jesucristo a la Bienaventurada Virgen María",
|
|
53
|
+
"Charles Henry Brent, Bishop of the Philippines, and of Western New York, 1929": "Carlos Enrique Brent, Obispo de las Filipinas, y del Occidente de Nueva York, 1929",
|
|
54
|
+
"John Keble, Priest, 1866": "Juan Keble, Presbítero, 1866",
|
|
55
|
+
"John Donne, Priest, 1631": "Juan Donne, Presbítero, 1631",
|
|
56
|
+
"Frederick Denison Maurice, Priest, 1872": "Federico Denison Maurice, Presbítero, 1872",
|
|
57
|
+
"James Lloyd Breck, Priest, 1876": "Jaime Lloyd Breck, Presbítero, 1876",
|
|
58
|
+
"Richard, Bishop of Chichester, 1253": "Ricardo, Obispo de Chichester, 1253",
|
|
59
|
+
"Martin Luther King, Jr., Civil Rights Leader, 1968": "Martin Luther King, Jr., Lider de los Derechos Civiles, 1968",
|
|
60
|
+
"[Tikhon, Patriarch of Russia, Confessor and Ecumenist, 1925]": "",
|
|
61
|
+
"William Augustus Muhlenberg, Priest, 1877": "Guillermo Augusto Muhlenberg, Presbítero, 1877",
|
|
62
|
+
"Dietrich Bonhoeffer, 1945": "Dietrich Bonhoeffer, 1945",
|
|
63
|
+
"William Law, Priest, 1761": "Guillermo Law, Presbítero, 1761",
|
|
64
|
+
"George Augustus Selwyn, Bishop of New Zealand, and of Lichfield, 1878": "Jorge Augusto Selwyn, Primer Obispo Misionero de Nueva Zelandia y de Lichfield, 1878",
|
|
65
|
+
"Alphege, Archbishop of Canterbury, and Martyr, 1012": "Alfeo, Arzobispo de Cantórbery y Mártir, 1012",
|
|
66
|
+
"Anselm, Archbishop of Canterbury, 1109": "Anselmo, Arzobispo de Cantórbery, 1109",
|
|
67
|
+
"Saint Mark the Evangelist": "San Marcos, Evangelista",
|
|
68
|
+
"Catherine of Siena, 1380": "Caterina de Siena, 1380",
|
|
69
|
+
"Saint Philip and Saint James, Apostles": "San Felipe y Santiago, Apóstoles",
|
|
70
|
+
"Athanasius, Bishop of Alexandria, 373": "Atanasio, Obispo de Alejandría, 373",
|
|
71
|
+
"Monnica, Mother of Augustine of Hippo, 387": "Mónica, Madre de Agustín de Hipona, 387",
|
|
72
|
+
"Dame Julian of Norwich, c. 1417": "La Dama Juliana de Norwich, c. 1417",
|
|
73
|
+
"Gregory of Nazianzus, Bishop of Constantinople, 389": "Gregorio de Nazianzus, Obispo de Constantinopla, 389",
|
|
74
|
+
"Dunstan, Archbishop of Canterbury, 988": "Dunstán, Arzobispo de Cantórbery, 988",
|
|
75
|
+
"Alcuin, Deacon, and Abbot of Tours, 804": "Alcuino, Diácono y Abad de Tours, 804",
|
|
76
|
+
"Jackson Kemper, First Missionary Bishop in the United States, 1870": "Jackson Kemper, Primer Obispo Misionero en los Estados Unidos, 1870",
|
|
77
|
+
"Bede, the Venerable, Priest, and Monk of Jarrow, 735": "Beda el Venerable, Presbítero y Monje de Jarrow, 735",
|
|
78
|
+
"Augustine, First Archbishop of Canterbury, 605": "Agustín, Primer Arzobispo de Cantórbery, 605",
|
|
79
|
+
"The Visitation of the Blessed Virgin Mary": "La Visitación de la Bienaventurada Virgen María",
|
|
80
|
+
"Justin, Martyr at Rome, c. 167": "Justino, Mártir en Roma, c. 167",
|
|
81
|
+
"The Martyrs of Lyons, 177": "Los Mártires de Lión, 177",
|
|
82
|
+
"The Martyrs of Uganda, 1886": "Los Mártires de Uganda, 1886",
|
|
83
|
+
"Boniface, Archbishop of Mainz, Missionary to Germany, and Martyr, 754": "Bonifacio, Arzobispo de Maguncia, Misionero en Alemania y Mártir, 754",
|
|
84
|
+
"Columba, Abbot of Iona, 597": "Columba, Abad de Iona, 597",
|
|
85
|
+
"Ephrem of Edessa, Syria, Deacon, 373": "Efrén de Edesa, Siria, Diácono, 373",
|
|
86
|
+
"Saint Barnabas the Apostle": "San Bernabé, Apóstol",
|
|
87
|
+
"Enmegahbowh, Priest and Missionary, 1902": "Emmegahbowh, Sacerdote y Misionero, 1902",
|
|
88
|
+
"Basil the Great, Bishop of Caesarea, 379": "Basilio Magno, Obispo de Cesarea, 379",
|
|
89
|
+
"Evelyn Underhill, 1941": "Evelyn Underhill, 1941",
|
|
90
|
+
"Joseph Butler, Bishop of Durham, 1752": "José Butler, Obispo de Durham, 1752",
|
|
91
|
+
"Bernard Mizeki, Catechist and Martyr in Rhodesia, 1896": "Bernard Mizeki, Catequista y Mártir en Rodesia, 1896",
|
|
92
|
+
"Alban, First Martyr of Britain, c. 304": "Albán, Primer Mártir de Bretaña, 304",
|
|
93
|
+
"The Nativity of Saint John the Baptist": "La Natividad de San Juan Bautista",
|
|
94
|
+
"Irenaeus, Bishop of Lyons, c. 202": "Ireneo, Obispo de Lión, c. 202",
|
|
95
|
+
"Saint Peter and Saint Paul, Apostles": "San Pedro y San Pablo, Apóstoles",
|
|
96
|
+
"Independence Day": "Día de la Independencia (EE. UU. AA.)",
|
|
97
|
+
"Benedict of Nursia, Abbot of Monte Cassino, c. 540": "Benito de Nursia, Abad de Monte Casino, c. 540",
|
|
98
|
+
"William White, Bishop of Pennsylvania, 1836": "Guillermo White, Obispo de Pensilvania, 1836",
|
|
99
|
+
"Macrina, Monastic and Teacher, 379": "Macrina, Monastica y Maestra, 379",
|
|
100
|
+
"Elizabeth Cady Stanton, Amelia Bloomer, Sojourner Truth, and Harriet Ross Tubman": "Elisabeth Cady Stanton, Amelia Bloomer, Sojourner Truth, y Harriet Ross Tubman",
|
|
101
|
+
"Saint Mary Magdalene": "Santa María Magdalena",
|
|
102
|
+
"Thomas a Kempis, Priest, 1471": "Tomás de Kempis, Presbítero, 1471",
|
|
103
|
+
"Saint James the Apostle": "Santiago, Apóstol",
|
|
104
|
+
"The Parents of the Blessed Virgin Mary": "Los Padres de la Bienaventurada Virgen María",
|
|
105
|
+
"William Reed Huntington, Priest, 1909": "Guillermo Reed Huntington, Presbítero, 1909",
|
|
106
|
+
"Mary and Martha of Bethany": "María y Marta de Betanía",
|
|
107
|
+
"William Wilberforce, 1833": "Guillermo Wilberforce, 1833",
|
|
108
|
+
"Ignatius of Loyola, 1556": "Ignacio de Loyola, 1556",
|
|
109
|
+
"Joseph of Arimathaea": "José de Arimathaea",
|
|
110
|
+
"The Transfiguration of Our Lord Jesus Christ": "La Transfiguración de Nuestro Señor Jesucristo",
|
|
111
|
+
"John Mason Neale, Priest, 1866": "Juan Mason Neale, Presbítero, 1866",
|
|
112
|
+
"Dominic, Priest and Friar, 1221": "Domingo, Presbítero y Fraile, 1221",
|
|
113
|
+
"Laurence, Deacon, and Martyr at Rome, 258": "Lorenzo, Diácono y Mártir en Roma, 258",
|
|
114
|
+
"Clare, Abbess at Assisi, 1253": "Clara, Abadesa en Asís, 1253",
|
|
115
|
+
"Florence Nightingale, Nurse, Social Reformer, 1910": "Florence Nightingale, Enfermera, Reformadora Social, 1910",
|
|
116
|
+
"Jeremy Taylor, Bishop of Down, Connor, and Dromore, 1667": "Jeremías Taylor, Obispo de Down, Connor y Dromore, 1667",
|
|
117
|
+
"Jonathan Myrick Daniels, Seminarian and Witness for Civil Rights, 1965": "Jonathan Myrick Daniels, Seminarista y Testigo de Derechos Civiles, 1965",
|
|
118
|
+
"Saint Mary the Virgin, Mother of Our Lord Jesus Christ": "Santa María Virgen, Madre de Nuestro Señor Jesucristo",
|
|
119
|
+
"William Porcher DuBose, Priest, 1918": "Guillermo Porcher DuBose, Presbítero, 1918",
|
|
120
|
+
"Bernard, Abbot of Clairvaux, 1153": "Bernardo, Abad de Claraval, 1153",
|
|
121
|
+
"Saint Bartholomew the Apostle": "San Bartolomé, Apóstol",
|
|
122
|
+
"Louis, King of France, 1270": "Luis, Rey de Francia, 1270",
|
|
123
|
+
"Thomas Gallaudet, 1902 with Henry Winter Syle, 1890": "Tomás Gallaudet, 1902, con Henry Winter Syle, 1890",
|
|
124
|
+
"Augustine, Bishop of Hippo, 430": "Agustín, Obispo de Hipona, 430",
|
|
125
|
+
"Aidan, Bishop of Lindisfarne, 651": "Aidán, Obispo de Lindisfarne, 651",
|
|
126
|
+
"David Pendleton Oakerhater, Deacon and Missionary, 1931": "David Pendleton Oakerhater, Diácono y Misionero, 1931",
|
|
127
|
+
"The Martyrs of New Guinea, 1942": "Los Mártires de Nueva Guinea, 1942",
|
|
128
|
+
"Paul Jones, 1941": "Pablo Jones, 1941",
|
|
129
|
+
"Constance, Nun, and her Companions, 1878": "Constancia, Monja, y sus Compañeros, 1878",
|
|
130
|
+
"Alexander Crummell, 1898": "Alexander Crummell, 1898",
|
|
131
|
+
"John Henry Hobart, Bishop of New York, 1830": "Juan Enrique Hobart, Obispo de Nueva York, 1830",
|
|
132
|
+
"Cyprian, Bishop and Martyr of Carthage, 258": "Cipriano, Obispo y Mártir de Cartago, 258",
|
|
133
|
+
"Holy Cross Day": "Día de la Santa Cruz",
|
|
134
|
+
"Ninian, Bishop in Galloway, c. 430": "Ninian, Obispo de Galloway, c. 430",
|
|
135
|
+
"Hildegard, 1179": "Hildegard, 1179",
|
|
136
|
+
"Edward Bouverie Pusey, Priest, 1882": "Eduardo Bouverie Pusey, Presbítero, 1882",
|
|
137
|
+
"Theodore of Tarsus, Archbishop of Canterbury, 690": "Teodoro de Tarso, Arzobispo de Cantórbery, 690",
|
|
138
|
+
"John Coleridge Patteson, Bishop of Melanesia, and his Companions, Martyrs, 1871": "Juan Coleridge Patteson, Obispo de Melanesia, y sus Compañeros, Mártires, 1871",
|
|
139
|
+
"Saint Matthew, Apostle and Evangelist": "San Mateo, Apóstol y Evangelista",
|
|
140
|
+
"Philander Chase, Bishop of Ohio, and of Illinois, 1852": "[Philander Chase, Obispo de Ohio y de Illinois, 1852]",
|
|
141
|
+
"Sergius, Abbot of Holy Trinity, Moscow, 1392": "Sergio, Abad de la Santísima Trinidad, Moscú, 1392",
|
|
142
|
+
"Lancelot Andrewes, Bishop of Winchester, 1626": "Lancelot Andrewes, Obispo de Winchester, 1626",
|
|
143
|
+
"Saint Michael and All Angels": "San Miguel y Todos los Angeles",
|
|
144
|
+
"Jerome, Priest, and Monk of Bethlehem, 420": "Jerónimo, Presbítero y Monje en Belén, 420",
|
|
145
|
+
"Remigius, Bishop of Rheims, c. 530": "Remigio, Obispo de Roma, c. 530",
|
|
146
|
+
"Francis of Assisi, Friar, 1226": "Francisco de Asís, Fraile, 1226",
|
|
147
|
+
"William Tyndale, Priest, 1536": "Guillermo Tyndale, Presbítero, 1536",
|
|
148
|
+
"Robert Grosseteste, Bishop of Lincoln, 1253": "Roberto Grosseteste, Obispo de Lincoln, 1253",
|
|
149
|
+
"[Vida Dutton Scudder, Educator and Witness for Peace, 1954]": "",
|
|
150
|
+
"Philip, Deacon and Evangelist": "Felipe, Diácono y Evangelista",
|
|
151
|
+
"Samuel Isaac Joseph Schereschewsky, Bishop of Shanghai, 1906": "Samuel Isaac José Schereschewsky, Obispo de Shanghai, 1906",
|
|
152
|
+
"Teresa of Avila, Nun, 1582": "Teresa de Avila, Monja, 1582",
|
|
153
|
+
"Hugh Latimer and Nicholas Ridley, Bishops, 1555 and Thomas Cranmer, Archbishop of Canterbury, 1556": "Hugo Latimer y Nicolás Ridley, Obispos, 1555 et Tomás Cranmer, Arzobispo de Cantórbery, 1556",
|
|
154
|
+
"Ignatius, Bishop of Antioch, and Martyr, c. 115": "Ignacio, Obispo de Antioquia y Mártir, c. 115",
|
|
155
|
+
"Saint Luke the Evangelist": "San Lucas, Evangelista",
|
|
156
|
+
"Henry Martyn, Priest, and Missionary to India and Persia, 1812": "Enrique Martyn, Presbítero y Misionero a la India y Persia, 1812",
|
|
157
|
+
"Saint James of Jerusalem, Brother of Our Lord Jesus Christ, and Martyr, c. 62": "Santiago de Jerusalén, Hermano de Nuestro Señor Jesucristo, Mártir, c. 62",
|
|
158
|
+
"Alfred the Great, King of the West Saxons, 899": "Alfredo el Grande, Rey de los Sajones Occidentales, 899",
|
|
159
|
+
"Saint Simon and Saint Jude, Apostles": "San Simón y San Judas, Apóstoles",
|
|
160
|
+
"James Hannington, Bishop of Eastern Equatorial Africa, and his Companions, Martyrs, 1885": "Jaime Hannington, Obispo de Africa del Este Ecuatorial, y sus Compañeros, Mártires, 1885",
|
|
161
|
+
"All Saints": "Todos los Santos",
|
|
162
|
+
"Commemoration of All Faithful Departed": "Conmemoración de los Fieles Difuntos",
|
|
163
|
+
"Richard Hooker, Priest, 1600": "Ricardo Hooker, Presbítero, 1600",
|
|
164
|
+
"William Temple, Archbishop of Canterbury, 1944": "[Guillermo Temple, Arzobispo de Cantórbery, 1944]",
|
|
165
|
+
"Willibrord, Archbishop of Utrecht, Missionary to Frisia, 739": "Willibrord, Arzobispo de Utrecht, Misionero a Frisia, 739",
|
|
166
|
+
"Leo the Great, Bishop of Rome, 461": "Léon Magno, Obispo de Roma, 461",
|
|
167
|
+
"Martin, Bishop of Tours, 397": "Martín, Obispo de Tours, 397",
|
|
168
|
+
"Charles Simeon, Priest, 1836": "Carlos Simeón, Presbítero, 1836",
|
|
169
|
+
"Consecration of Samuel Seabury, First American Bishop, 1784": "Consagración de Samuel Seabury, Primer Obispo de los Estados Unidos, 1784",
|
|
170
|
+
"Margaret, Queen of Scotland, 1093": "Margarita, Reina de Escocia, 1093",
|
|
171
|
+
"Hugh, Bishop of Lincoln, 1200": "Hugo, Obispo de Lincoln, 1200",
|
|
172
|
+
"Hilda, Abbess of Whitby, 680": "Hilda, Abadesa de Whitby, 680",
|
|
173
|
+
"Elizabeth, Princess of Hungary, 1231": "Isabel, Princesa de Hungría, 1231",
|
|
174
|
+
"Edmund, King of East Anglia, 870": "Edmundo, Rey de Anglia del Este, 870",
|
|
175
|
+
"Clive Staples Lewis, Apologist and Spiritual Writer, 1963": "[Clive Staples Lewis, Apologistal y Escritor Espiritual, 1963]",
|
|
176
|
+
"Clement, Bishop of Rome, c. 100": "Clemente, Obispo de Roma, c. 100",
|
|
177
|
+
"James Otis Sargent Huntington, Priest and Monk, 1935": "Jaime Otis Sargent Huntington, Presbítero y Monje, 1935",
|
|
178
|
+
"Kamehameha and Emma, King and Queen of Hawaii, 1864, 1885": "Kamehameha y Emma, Rey y Reina de Hawaii, 1864, 1885",
|
|
179
|
+
"Saint Andrew the Apostle": "San Andrés, Apóstol",
|
|
180
|
+
"Nicholas Ferrar, Deacon, 1637": "Nicolás Ferrar, Diácono, 1637",
|
|
181
|
+
"Channing Moore Williams, Missionary Bishop in China and Japan, 1910": "Channing Moore Williams, Obispo Misionero en China y Japón, 1910",
|
|
182
|
+
"John of Damascus, Priest, c. 760": "Juan Damascena, Presbítero, c. 760",
|
|
183
|
+
"Clement of Alexandria, Priest, c. 210": "Clemente de Alejandría, Presbítero, c. 210",
|
|
184
|
+
"Nicholas, Bishop of Myra, c. 342": "Nicolás, Obispo de Mira, c. 342",
|
|
185
|
+
"Ambrose, Bishop of Milan, 397": "Ambrosio, Obispo de Milán, 397",
|
|
186
|
+
"Saint Thomas the Apostle": "Santo Tomás, Apóstol",
|
|
187
|
+
"The Nativity of Our Lord Jesus Christ": "La Natividad de Nuestro Señor Jesucristo",
|
|
188
|
+
"Saint Stephen, Deacon and Martyr": "San Esteban, Diácono y Mártir",
|
|
189
|
+
"Saint John, Apostle and Evangelist": "San Juan, Apóstol y Evangelista",
|
|
190
|
+
"The Holy Innocents": "Los Santos Inocentes",
|
|
191
|
+
"Thomas Becket, 1170": "Tomás Becket, 1170",
|
|
192
|
+
"First Sunday of Advent": "Primer Domingo de Adviento",
|
|
193
|
+
"Second Sunday of Advent": "Segundo Domingo de Adviento",
|
|
194
|
+
"Third Sunday of Advent": "Tercer Domingo de Adviento",
|
|
195
|
+
"Fourth Sunday of Advent": "Cuarto Domingo de Adviento",
|
|
196
|
+
"Christmas": "La Natividad",
|
|
197
|
+
"First Sunday after Christmas": "Primer Domingo después del Día de Navidad",
|
|
198
|
+
"Second Sunday after Christmas": "Segundo Domingo después del Día de Navidad",
|
|
199
|
+
"Epiphany": "La Epifanía",
|
|
200
|
+
"First Sunday after the Epiphany": "Primer Domingo después de la Epifanía",
|
|
201
|
+
"Second Sunday after the Epiphany": "Segundo Domingo después de la Epifanía",
|
|
202
|
+
"Third Sunday after the Epiphany": "Tercero Domingo después de la Epifanía",
|
|
203
|
+
"Fourth Sunday after the Epiphany": "Cuarto Domingo después de la Epifanía",
|
|
204
|
+
"Fifth Sunday after the Epiphany": "Quinto Domingo después de la Epifanía",
|
|
205
|
+
"Sixth Sunday after the Epiphany": "Sexto Domingo después de la Epifanía",
|
|
206
|
+
"Seventh Sunday after the Epiphany": "Séptimo Domingo después de la Epifanía",
|
|
207
|
+
"Eighth Sunday after the Epiphany": "Octavo Domingo después de la Epifanía",
|
|
208
|
+
"Last Sunday after the Epiphany": "Ultimo Domingo después de la Epifanía",
|
|
209
|
+
"Ash Wednesday": "Miércoles de Ceniza",
|
|
210
|
+
"First Sunday in Lent": "Primer Domingo en Cuaresma",
|
|
211
|
+
"Second Sunday in Lent": "Segundo Domingo en Cuaresma",
|
|
212
|
+
"Third Sunday in Lent": "Tercer Domingo en Cuaresma",
|
|
213
|
+
"Fourth Sunday in Lent": "Cuarto Domingo en Cuaresma",
|
|
214
|
+
"Fifth Sunday in Lent": "Quinto Domingo en Cuaresma",
|
|
215
|
+
"Palm Sunday": "Domingo de Ramos",
|
|
216
|
+
"Monday in Holy Week": "Lunes Santo",
|
|
217
|
+
"Tuesday in Holy Week": "Martes Santo",
|
|
218
|
+
"Wednesday in Holy Week": "Miércoles Santo",
|
|
219
|
+
"Maundy Thursday": "Jueves Santo",
|
|
220
|
+
"Good Friday": "Viernes Santo",
|
|
221
|
+
"Holy Saturday": "Sábado Santo",
|
|
222
|
+
"Easter Day": "Día de Pascua",
|
|
223
|
+
"Monday in Easter Week": "Lunes de Pascua",
|
|
224
|
+
"Tuesday in Easter Week": "Martes de Pascua",
|
|
225
|
+
"Wednesday in Easter Week": "Miércoles de Pascua",
|
|
226
|
+
"Thursday in Easter Week": "Jueves de Pascua",
|
|
227
|
+
"Friday in Easter Week": "Viernes de Pascua",
|
|
228
|
+
"Saturday in Easter Week": "Sábado de Pascua",
|
|
229
|
+
"Second Sunday of Easter": "Segundo Domingo de Pascua",
|
|
230
|
+
"Third Sunday of Easter": "Tercer Domingo de Pascua",
|
|
231
|
+
"Fourth Sunday of Easter": "Cuarto Domingo de Pascua",
|
|
232
|
+
"Fifth Sunday of Easter": "Quinto Domingo de Pascua",
|
|
233
|
+
"Sixth Sunday of Easter": "Sexto Domingo de Pascua",
|
|
234
|
+
"Ascension Day": "Día de la Ascensión",
|
|
235
|
+
"Seventh Sunday of Easter": "Séptimo Domingo de Pascua",
|
|
236
|
+
"Pentecost": "Día de Pentecostés",
|
|
237
|
+
"Trinity Sunday": "Domingo de Trinidad",
|
|
238
|
+
"Second Sunday after Pentecost": "Segundo Domingo después de Pentecostés",
|
|
239
|
+
"Third Sunday after Pentecost": "Tercero Domingo después de Pentecostés",
|
|
240
|
+
"Fourth Sunday after Pentecost": "Cuarto Domingo después de Pentecostés",
|
|
241
|
+
"Fifth Sunday after Pentecost": "Qunto Domingo después de Pentecostés",
|
|
242
|
+
"Sixth Sunday after Pentecost": "Sexto Domingo después de Pentecostés",
|
|
243
|
+
"Seventh Sunday after Pentecost": "Séptimo Domingo después de Pentecostés",
|
|
244
|
+
"Eighth Sunday after Pentecost": "Octavo Domingo después de Pentecostés",
|
|
245
|
+
"Ninth Sunday after Pentecost": "Noveno Domingo después de Pentecostés",
|
|
246
|
+
"Tenth Sunday after Pentecost": "Décimo Domingo después de Pentecostés",
|
|
247
|
+
"Eleventh Sunday after Pentecost": "Undécimo Domingo después de Pentecostés",
|
|
248
|
+
"Twelfth Sunday after Pentecost": "Duodécimo Domingo después de Pentecostés",
|
|
249
|
+
"Thirteenth Sunday after Pentecost": "Decimotercero Domingo después de Pentecostés",
|
|
250
|
+
"Fourteenth Sunday after Pentecost": "Decimocuarto Domingo después de Pentecostés",
|
|
251
|
+
"Fifteenth Sunday after Pentecost": "Decimoquinto Domingo después de Pentecostés",
|
|
252
|
+
"Sixteenth Sunday after Pentecost": "Decimosexto Domingo después de Pentecostés",
|
|
253
|
+
"Seventeenth Sunday after Pentecost": "Decimoséptimo Domingo después de Pentecostés",
|
|
254
|
+
"Eighteenth Sunday after Pentecost": "Decimoctavo Domingo después de Pentecostés",
|
|
255
|
+
"Nineteenth Sunday after Pentecost": "Decimonoveno Domingo después de Pentecostés",
|
|
256
|
+
"Twentieth Sunday after Pentecost": "Vigésimo Domingo después de Pentecostés",
|
|
257
|
+
"Twenty-First Sunday after Pentecost": "Vigésimo Primero Domingo después de Pentecostés",
|
|
258
|
+
"Twenty-Second Sunday after Pentecost": "Vigésimo Segundo Domingo después de Pentecostés",
|
|
259
|
+
"Twenty-Third Sunday after Pentecost": "Vigésimo Tercero Domingo después de Pentecostés",
|
|
260
|
+
"Twenty-Fourth Sunday after Pentecost": "Vigésimo Cuarto Domingo después de Pentecostés",
|
|
261
|
+
"Twenty-Fifth Sunday after Pentecost": "Vigésimo Quinto Domingo después de Pentecostés",
|
|
262
|
+
"Twenty-Sixth Sunday after Pentecost": "Vigésimo Sexto Domingo después de Pentecostés",
|
|
263
|
+
"Twenty-Seventh Sunday after Pentecost": "Vigésimo Séptimo Domingo después de Pentecostés",
|
|
264
|
+
"Last Sunday after Pentecost": "Ultimo Domingo después de Pentecostés"
|
|
265
|
+
}
|
|
@@ -2,8 +2,10 @@ import { Component, Prop, Watch, State, Host, Element, h } from '@stencil/core';
|
|
|
2
2
|
import { LiturgicalDay, dateFromYMDString, Text } from '@venite/ldf';
|
|
3
3
|
import { getComponentClosestLanguage } from '../../utils/locale';
|
|
4
4
|
import EN from './day-name.i18n.en.json';
|
|
5
|
+
import ES from './day-name.i18n.es.json';
|
|
5
6
|
const LOCALE = {
|
|
6
7
|
'en': EN,
|
|
8
|
+
'es': ES
|
|
7
9
|
};
|
|
8
10
|
export class DayNameComponent {
|
|
9
11
|
dayChange(newDay) {
|
|
@@ -37,34 +39,36 @@ export class DayNameComponent {
|
|
|
37
39
|
}
|
|
38
40
|
// Render day as string
|
|
39
41
|
dayToNodes(day, localeStrings) {
|
|
40
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
42
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
41
43
|
// Holy Day => name of day
|
|
42
44
|
if (((_a = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _a === void 0 ? void 0 : _a.name) && ((_c = (_b = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _b === void 0 ? void 0 : _b.type) === null || _c === void 0 ? void 0 : _c.rank) >= 3) {
|
|
45
|
+
console.log("Holy Day name", (_d = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _d === void 0 ? void 0 : _d.name, localeStrings[(_e = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _e === void 0 ? void 0 : _e.name] || localeStrings[(_f = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _f === void 0 ? void 0 : _f.name.replace("St.", "Saint")], localeStrings);
|
|
46
|
+
const name = localeStrings[(_g = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _g === void 0 ? void 0 : _g.name] || localeStrings[(_h = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _h === void 0 ? void 0 : _h.name.replace("St.", "Saint")] || ((_j = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _j === void 0 ? void 0 : _j.name);
|
|
43
47
|
return !day.holy_day_observed.bio
|
|
44
|
-
? [h("p", { class: "holy-day-name" },
|
|
48
|
+
? [h("p", { class: "holy-day-name" }, name), ((_k = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _k === void 0 ? void 0 : _k.subtitle) ? h("p", { class: "holy-day-subtitle" }, day.holy_day_observed.subtitle) : undefined]
|
|
45
49
|
: h("details", null,
|
|
46
|
-
h("summary", null,
|
|
50
|
+
h("summary", null, name),
|
|
47
51
|
h("ldf-text", { doc: new Text({ type: "text", style: "text", value: day.holy_day_observed.bio }) }));
|
|
48
52
|
}
|
|
49
53
|
else {
|
|
50
|
-
const date = dateFromYMDString(day === null || day === void 0 ? void 0 : day.date), locale = ((
|
|
54
|
+
const date = dateFromYMDString(day === null || day === void 0 ? void 0 : day.date), locale = ((_m = (_l = this.el) === null || _l === void 0 ? void 0 : _l.closest('[lang]')) === null || _m === void 0 ? void 0 : _m.lang) || 'en';
|
|
51
55
|
// Sunday => name of week
|
|
52
56
|
if (date.getDay() == 0) {
|
|
53
57
|
const the = localeStrings.the || ' the ';
|
|
54
58
|
return [
|
|
55
|
-
((
|
|
59
|
+
((_o = day === null || day === void 0 ? void 0 : day.week) === null || _o === void 0 ? void 0 : _o.omit_the) ? '' : ` ${the[1].toUpperCase()}${the.slice(2, localeStrings.the.length)} `,
|
|
56
60
|
,
|
|
57
|
-
(
|
|
61
|
+
localeStrings[(_p = day === null || day === void 0 ? void 0 : day.week) === null || _p === void 0 ? void 0 : _p.name] || ((_q = day === null || day === void 0 ? void 0 : day.week) === null || _q === void 0 ? void 0 : _q.name)
|
|
58
62
|
];
|
|
59
63
|
}
|
|
60
64
|
// weekday => [weekday] after (the) [Sunday]
|
|
61
65
|
else {
|
|
62
66
|
return [
|
|
63
|
-
date.toLocaleDateString(locale, { weekday: 'long' }),
|
|
64
|
-
localeStrings.after || ' after
|
|
65
|
-
((
|
|
66
|
-
(
|
|
67
|
-
];
|
|
67
|
+
capitalize(date.toLocaleDateString(locale, { weekday: 'long' })),
|
|
68
|
+
localeStrings.after || ' after ',
|
|
69
|
+
((_r = day === null || day === void 0 ? void 0 : day.week) === null || _r === void 0 ? void 0 : _r.omit_the) ? '' : localeStrings.the,
|
|
70
|
+
localeStrings[(_s = day === null || day === void 0 ? void 0 : day.week) === null || _s === void 0 ? void 0 : _s.name] || ((_t = day === null || day === void 0 ? void 0 : day.week) === null || _t === void 0 ? void 0 : _t.name)
|
|
71
|
+
].join("").replace(/de\s+el/, "del");
|
|
68
72
|
}
|
|
69
73
|
}
|
|
70
74
|
}
|
|
@@ -119,3 +123,6 @@ export class DayNameComponent {
|
|
|
119
123
|
"methodName": "dayChange"
|
|
120
124
|
}]; }
|
|
121
125
|
}
|
|
126
|
+
function capitalize(word) {
|
|
127
|
+
return word[0].toUpperCase() + word.slice(1);
|
|
128
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
9
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
10
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
11
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
12
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
13
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
14
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
18
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
19
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
20
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
21
|
+
function step(op) {
|
|
22
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
23
|
+
while (_) try {
|
|
24
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
25
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
26
|
+
switch (op[0]) {
|
|
27
|
+
case 0: case 1: t = op; break;
|
|
28
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
29
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
30
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
31
|
+
default:
|
|
32
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
33
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
34
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
35
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
36
|
+
if (t[2]) _.ops.pop();
|
|
37
|
+
_.trys.pop(); continue;
|
|
38
|
+
}
|
|
39
|
+
op = body.call(thisArg, _);
|
|
40
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
41
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
exports.__esModule = true;
|
|
45
|
+
exports.DayNameComponent = void 0;
|
|
46
|
+
var core_1 = require("@stencil/core");
|
|
47
|
+
var ldf_1 = require("@venite/ldf");
|
|
48
|
+
var locale_1 = require("../../utils/locale");
|
|
49
|
+
var day_name_i18n_en_json_1 = require("./day-name.i18n.en.json");
|
|
50
|
+
var day_name_i18n_es_json_1 = require("./day-name.i18n.es.json");
|
|
51
|
+
var LOCALE = {
|
|
52
|
+
'en': day_name_i18n_en_json_1["default"],
|
|
53
|
+
'es': day_name_i18n_es_json_1["default"]
|
|
54
|
+
};
|
|
55
|
+
var DayNameComponent = /** @class */ (function () {
|
|
56
|
+
function DayNameComponent() {
|
|
57
|
+
}
|
|
58
|
+
DayNameComponent.prototype.dayChange = function (newDay) {
|
|
59
|
+
var provisionalObj;
|
|
60
|
+
try {
|
|
61
|
+
if (typeof newDay == 'string') {
|
|
62
|
+
provisionalObj = new ldf_1.LiturgicalDay(JSON.parse(newDay));
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
provisionalObj = new ldf_1.LiturgicalDay(newDay);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
catch (e) {
|
|
69
|
+
console.warn('(ldf-day-name)', e);
|
|
70
|
+
provisionalObj = new ldf_1.LiturgicalDay();
|
|
71
|
+
}
|
|
72
|
+
this.obj = provisionalObj || new ldf_1.LiturgicalDay();
|
|
73
|
+
};
|
|
74
|
+
// Lifecycle events
|
|
75
|
+
DayNameComponent.prototype.componentWillLoad = function () {
|
|
76
|
+
this.loadLocaleStrings();
|
|
77
|
+
this.dayChange(this.day);
|
|
78
|
+
};
|
|
79
|
+
DayNameComponent.prototype.loadLocaleStrings = function () {
|
|
80
|
+
return __awaiter(this, void 0, Promise, function () {
|
|
81
|
+
return __generator(this, function (_a) {
|
|
82
|
+
try {
|
|
83
|
+
this.localeStrings = LOCALE[locale_1.getComponentClosestLanguage(this.el)];
|
|
84
|
+
}
|
|
85
|
+
catch (e) {
|
|
86
|
+
console.warn(e);
|
|
87
|
+
}
|
|
88
|
+
return [2 /*return*/];
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
// Render day as string
|
|
93
|
+
DayNameComponent.prototype.dayToNodes = function (day, localeStrings) {
|
|
94
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
95
|
+
// Holy Day => name of day
|
|
96
|
+
if (((_a = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _a === void 0 ? void 0 : _a.name) && ((_c = (_b = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _b === void 0 ? void 0 : _b.type) === null || _c === void 0 ? void 0 : _c.rank) >= 3) {
|
|
97
|
+
console.log("Holy Day name", (_d = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _d === void 0 ? void 0 : _d.name, localeStrings[(_e = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _e === void 0 ? void 0 : _e.name] || localeStrings[(_f = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _f === void 0 ? void 0 : _f.name.replace("St.", "Saint")], localeStrings);
|
|
98
|
+
var name = localeStrings[(_g = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _g === void 0 ? void 0 : _g.name] || localeStrings[(_h = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _h === void 0 ? void 0 : _h.name.replace("St.", "Saint")] || ((_j = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _j === void 0 ? void 0 : _j.name);
|
|
99
|
+
return !day.holy_day_observed.bio
|
|
100
|
+
? [React.createElement("p", { "class": "holy-day-name" }, name), ((_k = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _k === void 0 ? void 0 : _k.subtitle) ? React.createElement("p", { "class": "holy-day-subtitle" }, day.holy_day_observed.subtitle) : undefined]
|
|
101
|
+
: React.createElement("details", null,
|
|
102
|
+
React.createElement("summary", null, name),
|
|
103
|
+
React.createElement("ldf-text", { doc: new ldf_1.Text({ type: "text", style: "text", value: day.holy_day_observed.bio }) }));
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
var date = ldf_1.dateFromYMDString(day === null || day === void 0 ? void 0 : day.date), locale = ((_m = (_l = this.el) === null || _l === void 0 ? void 0 : _l.closest('[lang]')) === null || _m === void 0 ? void 0 : _m.lang) || 'en';
|
|
107
|
+
// Sunday => name of week
|
|
108
|
+
if (date.getDay() == 0) {
|
|
109
|
+
var the = localeStrings.the || ' the ';
|
|
110
|
+
return [
|
|
111
|
+
((_o = day === null || day === void 0 ? void 0 : day.week) === null || _o === void 0 ? void 0 : _o.omit_the) ? '' : " " + the[1].toUpperCase() + the.slice(2, localeStrings.the.length) + " ",
|
|
112
|
+
,
|
|
113
|
+
localeStrings[(_p = day === null || day === void 0 ? void 0 : day.week) === null || _p === void 0 ? void 0 : _p.name] || ((_q = day === null || day === void 0 ? void 0 : day.week) === null || _q === void 0 ? void 0 : _q.name)
|
|
114
|
+
];
|
|
115
|
+
}
|
|
116
|
+
// weekday => [weekday] after (the) [Sunday]
|
|
117
|
+
else {
|
|
118
|
+
return [
|
|
119
|
+
capitalize(date.toLocaleDateString(locale, { weekday: 'long' })),
|
|
120
|
+
localeStrings.after || ' after ',
|
|
121
|
+
((_r = day === null || day === void 0 ? void 0 : day.week) === null || _r === void 0 ? void 0 : _r.omit_the) ? '' : localeStrings.the,
|
|
122
|
+
localeStrings[(_s = day === null || day === void 0 ? void 0 : day.week) === null || _s === void 0 ? void 0 : _s.name] || ((_t = day === null || day === void 0 ? void 0 : day.week) === null || _t === void 0 ? void 0 : _t.name)
|
|
123
|
+
].join("").replace(/de\s+el/, "del");
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
DayNameComponent.prototype.render = function () {
|
|
128
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
129
|
+
var image = (typeof ((_a = this.obj) === null || _a === void 0 ? void 0 : _a.color) !== 'string' && ((_c = (_b = this.obj) === null || _b === void 0 ? void 0 : _b.color) === null || _c === void 0 ? void 0 : _c.image)) || this.obj.image || ((_d = this.obj.holy_day_observed) === null || _d === void 0 ? void 0 : _d.image), imageUrl = (typeof ((_e = this.obj) === null || _e === void 0 ? void 0 : _e.color) !== 'string' && ((_g = (_f = this.obj) === null || _f === void 0 ? void 0 : _f.color) === null || _g === void 0 ? void 0 : _g.imageUrl)) || this.obj.imageURL || this.obj['imageUrl'];
|
|
130
|
+
return (React.createElement(core_1.Host, null,
|
|
131
|
+
this.localeStrings && this.dayToNodes(this.obj, this.localeStrings),
|
|
132
|
+
image && imageUrl && React.createElement("a", { href: imageUrl, target: "_system" },
|
|
133
|
+
React.createElement("img", { "class": "icon", src: image })),
|
|
134
|
+
image && !imageUrl && React.createElement("img", { "class": "icon", src: image })));
|
|
135
|
+
};
|
|
136
|
+
__decorate([
|
|
137
|
+
core_1.Element()
|
|
138
|
+
], DayNameComponent.prototype, "el");
|
|
139
|
+
__decorate([
|
|
140
|
+
core_1.State()
|
|
141
|
+
], DayNameComponent.prototype, "obj");
|
|
142
|
+
__decorate([
|
|
143
|
+
core_1.State()
|
|
144
|
+
], DayNameComponent.prototype, "localeStrings");
|
|
145
|
+
__decorate([
|
|
146
|
+
core_1.Prop()
|
|
147
|
+
], DayNameComponent.prototype, "day");
|
|
148
|
+
__decorate([
|
|
149
|
+
core_1.Watch('day')
|
|
150
|
+
], DayNameComponent.prototype, "dayChange");
|
|
151
|
+
DayNameComponent = __decorate([
|
|
152
|
+
core_1.Component({
|
|
153
|
+
tag: 'ldf-day-name',
|
|
154
|
+
styleUrl: 'day-name.scss',
|
|
155
|
+
scoped: true
|
|
156
|
+
})
|
|
157
|
+
], DayNameComponent);
|
|
158
|
+
return DayNameComponent;
|
|
159
|
+
}());
|
|
160
|
+
exports.DayNameComponent = DayNameComponent;
|
|
161
|
+
function capitalize(word) {
|
|
162
|
+
return word[0].toUpperCase() + word.slice(1);
|
|
163
|
+
}
|
|
@@ -145,7 +145,7 @@ var HeadingComponent = /** @class */ (function () {
|
|
|
145
145
|
// Render
|
|
146
146
|
HeadingComponent.prototype.render = function () {
|
|
147
147
|
var _this = this;
|
|
148
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
148
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
149
149
|
var localeStrings = this.localeStrings || {};
|
|
150
150
|
var level = this.obj.metadata ? this.obj.metadata.level : 4, hasCitation = Boolean((_a = this.obj) === null || _a === void 0 ? void 0 : _a.citation), hasSource = Boolean((_b = this.obj) === null || _b === void 0 ? void 0 : _b.source), isDate = ((_c = this.obj) === null || _c === void 0 ? void 0 : _c.style) == 'date', isDay = ((_d = this.obj) === null || _d === void 0 ? void 0 : _d.style) == 'day', isText = ((_e = this.obj) === null || _e === void 0 ? void 0 : _e.style) == undefined || ((_f = this.obj) === null || _f === void 0 ? void 0 : _f.style) == 'text' || (!isDate && !isDay);
|
|
151
151
|
// Render
|
|
@@ -159,8 +159,8 @@ var HeadingComponent = /** @class */ (function () {
|
|
|
159
159
|
isDate && !this.editable && this.dateNode(),
|
|
160
160
|
isDate && this.editable && React.createElement("code", { "class": "lookup" }, localeStrings.date),
|
|
161
161
|
isDay && !this.editable && React.createElement("div", { "class": "date" },
|
|
162
|
-
React.createElement("ldf-day-name", { day: (_o = this.obj) === null || _o === void 0 ? void 0 : _o.day })),
|
|
163
|
-
isDay && !this.editable && ((
|
|
162
|
+
React.createElement("ldf-day-name", { day: (_o = this.obj) === null || _o === void 0 ? void 0 : _o.day, lang: ((_p = this.obj) === null || _p === void 0 ? void 0 : _p.language) || 'en' })),
|
|
163
|
+
isDay && !this.editable && ((_s = (_r = (_q = this.obj) === null || _q === void 0 ? void 0 : _q.day) === null || _r === void 0 ? void 0 : _r.holy_days) === null || _s === void 0 ? void 0 : _s.length) > 0 && React.createElement("ul", { "class": "holy-days" }, (_u = (_t = this.obj) === null || _t === void 0 ? void 0 : _t.day) === null || _u === void 0 ? void 0 : _u.holy_days.filter(function (day) { var _a; return ((_a = day.type) === null || _a === void 0 ? void 0 : _a.rank) < 3; }).map(function (day) {
|
|
164
164
|
return day.bio
|
|
165
165
|
? React.createElement("li", { "class": "holy-day" },
|
|
166
166
|
React.createElement("details", null,
|
|
@@ -169,13 +169,13 @@ var HeadingComponent = /** @class */ (function () {
|
|
|
169
169
|
: React.createElement("li", { "class": "holy-day" }, day.name);
|
|
170
170
|
})),
|
|
171
171
|
isDay && this.editable && React.createElement("code", { "class": "lookup" }, localeStrings.day),
|
|
172
|
-
((
|
|
172
|
+
((_w = (_v = this.obj) === null || _v === void 0 ? void 0 : _v.value) === null || _w === void 0 ? void 0 : _w.length) > 1 && this.textNode(this.obj.value[1], 1),
|
|
173
173
|
React.createElement("slot", { name: 'additional' }),
|
|
174
174
|
React.createElement("slot", { name: 'citation', slot: 'end' },
|
|
175
175
|
hasSource && this.sourceNode(this.obj.source),
|
|
176
176
|
hasCitation && !hasSource && this.obj.citation !== this.obj.label && this.obj.citation !== this.obj.value[0] && this.citationNode(this.obj.citation))),
|
|
177
177
|
React.createElement("div", null, hasSource && hasCitation && this.obj.citation !== this.obj.label && this.citationNode(this.obj.citation, 'none')),
|
|
178
|
-
((
|
|
178
|
+
((_y = (_x = this.obj) === null || _x === void 0 ? void 0 : _x.value) === null || _y === void 0 ? void 0 : _y.length) > 2 && this.obj.value.slice(2, this.obj.value.length).map(function (text, index) { return _this.textNode(text, index + 2, true); })));
|
|
179
179
|
};
|
|
180
180
|
__decorate([
|
|
181
181
|
core_1.Element()
|
|
@@ -90,7 +90,7 @@ export class HeadingComponent {
|
|
|
90
90
|
}
|
|
91
91
|
// Render
|
|
92
92
|
render() {
|
|
93
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
93
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
94
94
|
const localeStrings = this.localeStrings || {};
|
|
95
95
|
const level = this.obj.metadata ? this.obj.metadata.level : 4, hasCitation = Boolean((_a = this.obj) === null || _a === void 0 ? void 0 : _a.citation), hasSource = Boolean((_b = this.obj) === null || _b === void 0 ? void 0 : _b.source), isDate = ((_c = this.obj) === null || _c === void 0 ? void 0 : _c.style) == 'date', isDay = ((_d = this.obj) === null || _d === void 0 ? void 0 : _d.style) == 'day', isText = ((_e = this.obj) === null || _e === void 0 ? void 0 : _e.style) == undefined || ((_f = this.obj) === null || _f === void 0 ? void 0 : _f.style) == 'text' || (!isDate && !isDay);
|
|
96
96
|
// Render
|
|
@@ -104,21 +104,21 @@ export class HeadingComponent {
|
|
|
104
104
|
isDate && !this.editable && this.dateNode(),
|
|
105
105
|
isDate && this.editable && h("code", { class: "lookup" }, localeStrings.date),
|
|
106
106
|
isDay && !this.editable && h("div", { class: "date" },
|
|
107
|
-
h("ldf-day-name", { day: (_o = this.obj) === null || _o === void 0 ? void 0 : _o.day })),
|
|
108
|
-
isDay && !this.editable && ((
|
|
107
|
+
h("ldf-day-name", { day: (_o = this.obj) === null || _o === void 0 ? void 0 : _o.day, lang: ((_p = this.obj) === null || _p === void 0 ? void 0 : _p.language) || 'en' })),
|
|
108
|
+
isDay && !this.editable && ((_s = (_r = (_q = this.obj) === null || _q === void 0 ? void 0 : _q.day) === null || _r === void 0 ? void 0 : _r.holy_days) === null || _s === void 0 ? void 0 : _s.length) > 0 && h("ul", { class: "holy-days" }, (_u = (_t = this.obj) === null || _t === void 0 ? void 0 : _t.day) === null || _u === void 0 ? void 0 : _u.holy_days.filter(day => { var _a; return ((_a = day.type) === null || _a === void 0 ? void 0 : _a.rank) < 3; }).map(day => day.bio
|
|
109
109
|
? h("li", { class: "holy-day" },
|
|
110
110
|
h("details", null,
|
|
111
111
|
h("summary", null, day.name),
|
|
112
112
|
h("ldf-text", { doc: new Text({ type: "text", style: "text", value: day.bio }) })))
|
|
113
113
|
: h("li", { class: "holy-day" }, day.name))),
|
|
114
114
|
isDay && this.editable && h("code", { class: "lookup" }, localeStrings.day),
|
|
115
|
-
((
|
|
115
|
+
((_w = (_v = this.obj) === null || _v === void 0 ? void 0 : _v.value) === null || _w === void 0 ? void 0 : _w.length) > 1 && this.textNode(this.obj.value[1], 1),
|
|
116
116
|
h("slot", { name: 'additional' }),
|
|
117
117
|
h("slot", { name: 'citation', slot: 'end' },
|
|
118
118
|
hasSource && this.sourceNode(this.obj.source),
|
|
119
119
|
hasCitation && !hasSource && this.obj.citation !== this.obj.label && this.obj.citation !== this.obj.value[0] && this.citationNode(this.obj.citation))),
|
|
120
120
|
h("div", null, hasSource && hasCitation && this.obj.citation !== this.obj.label && this.citationNode(this.obj.citation, 'none')),
|
|
121
|
-
((
|
|
121
|
+
((_y = (_x = this.obj) === null || _x === void 0 ? void 0 : _x.value) === null || _y === void 0 ? void 0 : _y.length) > 2 && this.obj.value.slice(2, this.obj.value.length).map((text, index) => this.textNode(text, index + 2, true))));
|
|
122
122
|
}
|
|
123
123
|
static get is() { return "ldf-heading"; }
|
|
124
124
|
static get encapsulation() { return "shadow"; }
|