@venite/components 0.16.29 → 0.16.32
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/{book-1a92678a.js → book-b04f6553.js} +115 -3
- package/dist/cjs/{heading-5afc2b24.js → heading-1243cde5.js} +1 -1
- package/dist/cjs/{image-3bee3e73.js → image-7ff56371.js} +1 -1
- package/dist/cjs/ion-button_13.cjs.entry.js +1 -1
- package/dist/cjs/ion-card-content_6.cjs.entry.js +2 -2
- 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 +6 -6
- package/dist/cjs/ldf-day-name_5.cjs.entry.js +14 -124
- package/dist/cjs/ldf-editable-add-block-menu.cjs.entry.js +7 -7
- 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 +2 -2
- package/dist/cjs/ldf-editable-lookup_2.cjs.entry.js +7 -7
- package/dist/cjs/ldf-editable-metadata.cjs.entry.js +7 -7
- 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/ldf-editor.cjs.entry.js +1 -1
- package/dist/cjs/{option-a078d432.js → option-491b2cc7.js} +5 -1
- package/dist/cjs/{refrain-91fb446b.js → refrain-2089062b.js} +1 -1
- package/dist/cjs/{rubric-0afbe4c0.js → rubric-3ef36eea.js} +1 -1
- package/dist/cjs/{specific-class-76b4d343.js → specific-class-3e56392a.js} +5 -5
- package/dist/cjs/{text-5edb80f3.js → text-67a354ff.js} +1 -1
- package/dist/collection/components/text/dist/text.js +6 -4
- package/dist/collection/components/text/text.css +5 -0
- package/dist/collection/components/text/text.js +7 -5
- package/dist/esm/{book-31b8cdde.js → book-4795ea34.js} +115 -3
- package/dist/esm/{heading-cc5ffa8a.js → heading-dedd87c7.js} +1 -1
- package/dist/esm/{image-c6a3f0c5.js → image-374f5ed7.js} +1 -1
- package/dist/esm/ion-button_13.entry.js +1 -1
- package/dist/esm/ion-card-content_6.entry.js +2 -2
- 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 +6 -6
- package/dist/esm/ldf-day-name_5.entry.js +10 -120
- package/dist/esm/ldf-editable-add-block-menu.entry.js +7 -7
- 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 +2 -2
- package/dist/esm/ldf-editable-lookup_2.entry.js +7 -7
- package/dist/esm/ldf-editable-metadata.entry.js +7 -7
- 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/ldf-editor.entry.js +1 -1
- package/dist/esm/{option-c16af13a.js → option-4e49f550.js} +5 -1
- package/dist/esm/{refrain-75a412cb.js → refrain-984f9410.js} +1 -1
- package/dist/esm/{rubric-f779c469.js → rubric-5c072ba1.js} +1 -1
- package/dist/esm/{specific-class-09c98625.js → specific-class-23168094.js} +5 -5
- package/dist/esm/{text-ed75fbd4.js → text-2ec5b6b3.js} +1 -1
- package/dist/ldf/ldf.esm.js +1 -1
- package/dist/ldf/{p-f0de7628.entry.js → p-068e9f88.entry.js} +1 -1
- package/dist/ldf/{p-23af1bc3.entry.js → p-1411d9f8.entry.js} +1 -1
- package/dist/ldf/{p-7a9ab85c.entry.js → p-30ffc0cd.entry.js} +1 -1
- package/dist/ldf/{p-2ae548b3.entry.js → p-35bfe3eb.entry.js} +1 -1
- package/dist/ldf/{p-d56dff05.js → p-47600061.js} +1 -1
- package/dist/ldf/p-49174004.js +1 -0
- package/dist/ldf/{p-594fa9d4.entry.js → p-5642949a.entry.js} +1 -1
- package/dist/ldf/{p-005ad01b.entry.js → p-79eb1b06.entry.js} +1 -1
- package/dist/ldf/p-97ada7f4.js +1 -0
- package/dist/ldf/{p-9c1973a6.entry.js → p-9d849fad.entry.js} +1 -1
- package/dist/ldf/p-a2e30644.js +1 -0
- package/dist/ldf/p-a3b9dc24.entry.js +1 -0
- package/dist/ldf/{p-03afc8cb.entry.js → p-a6a44bf6.entry.js} +1 -1
- package/dist/ldf/p-a97ca6c2.js +1 -0
- package/dist/ldf/p-aea73748.entry.js +1 -0
- package/dist/ldf/{p-5b43e6be.js → p-b0ceb153.js} +1 -1
- package/dist/ldf/{p-468d36d0.entry.js → p-b923eab2.entry.js} +1 -1
- package/dist/ldf/{p-fa191f47.entry.js → p-b971af53.entry.js} +1 -1
- package/dist/ldf/{p-65ea7ab3.entry.js → p-c3279ab4.entry.js} +1 -1
- package/dist/ldf/{p-c0ef6296.entry.js → p-c8389a67.entry.js} +1 -1
- package/dist/ldf/p-cb1922dc.js +1 -0
- package/dist/ldf/{p-c1a86b14.entry.js → p-cd2e39ca.entry.js} +1 -1
- package/dist/ldf/p-d9994330.js +1 -0
- package/dist/ldf/{p-94949614.entry.js → p-f43df90f.entry.js} +1 -1
- package/dist/ldf/{p-2c39ce94.entry.js → p-f6afaa8f.entry.js} +1 -1
- package/dist/types/components/text/text.d.ts +2 -2
- package/dist/types/components.d.ts +1 -1
- package/package.json +2 -2
- package/dist/ldf/p-00e5ee6b.js +0 -1
- package/dist/ldf/p-476327d6.js +0 -1
- package/dist/ldf/p-4aa9a6f2.js +0 -1
- package/dist/ldf/p-60fc0157.entry.js +0 -1
- package/dist/ldf/p-65d26c45.js +0 -1
- package/dist/ldf/p-800a115c.entry.js +0 -1
- package/dist/ldf/p-a1729dbd.js +0 -1
- package/dist/ldf/p-e7a449d7.js +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const rubric = require('./rubric-
|
|
4
|
-
const heading = require('./heading-
|
|
5
|
-
const option = require('./option-
|
|
6
|
-
const refrain = require('./refrain-
|
|
7
|
-
const text = require('./text-
|
|
3
|
+
const rubric = require('./rubric-3ef36eea.js');
|
|
4
|
+
const heading = require('./heading-1243cde5.js');
|
|
5
|
+
const option = require('./option-491b2cc7.js');
|
|
6
|
+
const refrain = require('./refrain-2089062b.js');
|
|
7
|
+
const text = require('./text-67a354ff.js');
|
|
8
8
|
|
|
9
9
|
/** Transforms a generic `LiturgicalDocument` (either a class instance or an `Object` that matches the type),
|
|
10
10
|
* into an instance of a more-specific inherited class */
|
|
@@ -57,12 +57,11 @@ var LOCALE = {
|
|
|
57
57
|
var TextComponent = /** @class */ (function () {
|
|
58
58
|
function TextComponent() {
|
|
59
59
|
// prayer list for authorized prayers
|
|
60
|
-
this.intentions =
|
|
60
|
+
this.intentions = "";
|
|
61
61
|
}
|
|
62
62
|
TextComponent.prototype.setPrayerList = function (intentions) {
|
|
63
63
|
return __awaiter(this, void 0, Promise, function () {
|
|
64
64
|
return __generator(this, function (_a) {
|
|
65
|
-
console.log("(PrayerList) setPrayerList", intentions);
|
|
66
65
|
this.intentions = intentions;
|
|
67
66
|
return [2 /*return*/];
|
|
68
67
|
});
|
|
@@ -157,19 +156,22 @@ var TextComponent = /** @class */ (function () {
|
|
|
157
156
|
return React.createElement(core_1.Host, null,
|
|
158
157
|
React.createElement("ldf-label-bar", null,
|
|
159
158
|
React.createElement("ion-button", { onClick: function () { return _this.addPAndT(base_1, index_1); }, fill: "clear" }, localeStrings.authorized_prayers)), (_c = ((_b = this.intentions) === null || _b === void 0 ? void 0 : _b.length) > 0) !== null && _c !== void 0 ? _c : React.createElement("strong", { "class": "prayer-list" }, localeStrings['prayer-list']),
|
|
160
|
-
|
|
159
|
+
Array.isArray(this.intentions)
|
|
160
|
+
? React.createElement("ul", { "class": "prayer-list" }, this.intentions.map(function (intention) { return React.createElement("li", null, intention); }))
|
|
161
|
+
: React.createElement("p", { "class": "prayer-list formatted" }, this.intentions));
|
|
161
162
|
}
|
|
162
163
|
else {
|
|
163
164
|
var value = ((_e = (_d = this.obj) === null || _d === void 0 ? void 0 : _d.metadata) === null || _e === void 0 ? void 0 : _e.rollup) ? (((_f = this.obj) === null || _f === void 0 ? void 0 : _f.value) || []).map(function (s) { return s.replace(/\s+/g, ' '); })
|
|
164
165
|
: (((_g = this.obj) === null || _g === void 0 ? void 0 : _g.value) || []);
|
|
165
166
|
var compiledValue_1 = value.map(function (s) {
|
|
166
|
-
return s.split(/([\*\w\n\s,:;\.\-–—'“☩✠”‘’\!\?”\[\]\%\(\)\/\u0041-\u024F]+([^\*\w\n\s,;:\.'“”☩✠‘’”\-–—\!\?\[\]\%\(\)\/\u0041-\u024F]))/g);
|
|
167
|
+
return s.split(/([\*\w\n\s,:;\.\-–—'“☩✠”‘’\!\?”\[\]\%\(\)\/\u0041-\u024F\u1400-\u167f]+([^\*\w\n\s,;:\.'“”☩✠‘’”\-–—\!\?\[\]\%\(\)\/\u0041-\u024F\u1400-\u167f]))/g);
|
|
167
168
|
});
|
|
168
169
|
if (!this.editable && ((_h = this.obj) === null || _h === void 0 ? void 0 : _h.display_format) === 'abbreviated') {
|
|
169
170
|
var firstSection = compiledValue_1[0], lastSection = compiledValue_1[compiledValue_1.length - 1];
|
|
170
171
|
var firstChunk = this.truncate(firstSection[0]), lastChunk = this.truncate(lastSection[lastSection.length - 1], true);
|
|
171
172
|
compiledValue_1 = [[firstChunk], [lastChunk]];
|
|
172
173
|
}
|
|
174
|
+
console.log("compiledValue = ", compiledValue_1);
|
|
173
175
|
if (this.editable) {
|
|
174
176
|
return (React.createElement(core_1.Host, { lang: this.obj.language },
|
|
175
177
|
React.createElement("ldf-label-bar", null,
|
|
@@ -12,10 +12,9 @@ const LOCALE = {
|
|
|
12
12
|
export class TextComponent {
|
|
13
13
|
constructor() {
|
|
14
14
|
// prayer list for authorized prayers
|
|
15
|
-
this.intentions =
|
|
15
|
+
this.intentions = "";
|
|
16
16
|
}
|
|
17
17
|
async setPrayerList(intentions) {
|
|
18
|
-
console.log("(PrayerList) setPrayerList", intentions);
|
|
19
18
|
this.intentions = intentions;
|
|
20
19
|
}
|
|
21
20
|
docChanged(newDoc) {
|
|
@@ -82,20 +81,23 @@ export class TextComponent {
|
|
|
82
81
|
return h(Host, null,
|
|
83
82
|
h("ldf-label-bar", null,
|
|
84
83
|
h("ion-button", { onClick: () => this.addPAndT(base, index), fill: "clear" }, localeStrings.authorized_prayers)), (_c = ((_b = this.intentions) === null || _b === void 0 ? void 0 : _b.length) > 0) !== null && _c !== void 0 ? _c : h("strong", { class: "prayer-list" }, localeStrings['prayer-list']),
|
|
85
|
-
|
|
84
|
+
Array.isArray(this.intentions)
|
|
85
|
+
? h("ul", { class: "prayer-list" }, this.intentions.map(intention => h("li", null, intention)))
|
|
86
|
+
: h("p", { class: "prayer-list formatted" }, this.intentions));
|
|
86
87
|
}
|
|
87
88
|
else {
|
|
88
89
|
let value = ((_e = (_d = this.obj) === null || _d === void 0 ? void 0 : _d.metadata) === null || _e === void 0 ? void 0 : _e.rollup)
|
|
89
90
|
? (((_f = this.obj) === null || _f === void 0 ? void 0 : _f.value) || []).map(s => s.replace(/\s+/g, ' '))
|
|
90
91
|
: (((_g = this.obj) === null || _g === void 0 ? void 0 : _g.value) || []);
|
|
91
92
|
let compiledValue = value.map(s => {
|
|
92
|
-
return s.split(/([\*\w\n\s,:;\.\-–—'“☩✠”‘’\!\?”\[\]\%\(\)\/\u0041-\u024F]+([^\*\w\n\s,;:\.'“”☩✠‘’”\-–—\!\?\[\]\%\(\)\/\u0041-\u024F]))/g);
|
|
93
|
+
return s.split(/([\*\w\n\s,:;\.\-–—'“☩✠”‘’\!\?”\[\]\%\(\)\/\u0041-\u024F\u1400-\u167f]+([^\*\w\n\s,;:\.'“”☩✠‘’”\-–—\!\?\[\]\%\(\)\/\u0041-\u024F\u1400-\u167f]))/g);
|
|
93
94
|
});
|
|
94
95
|
if (!this.editable && ((_h = this.obj) === null || _h === void 0 ? void 0 : _h.display_format) === 'abbreviated') {
|
|
95
96
|
const firstSection = compiledValue[0], lastSection = compiledValue[compiledValue.length - 1];
|
|
96
97
|
const firstChunk = this.truncate(firstSection[0]), lastChunk = this.truncate(lastSection[lastSection.length - 1], true);
|
|
97
98
|
compiledValue = [[firstChunk], [lastChunk]];
|
|
98
99
|
}
|
|
100
|
+
console.log("compiledValue = ", compiledValue);
|
|
99
101
|
if (this.editable) {
|
|
100
102
|
return (h(Host, { lang: this.obj.language },
|
|
101
103
|
h("ldf-label-bar", null,
|
|
@@ -250,7 +252,7 @@ export class TextComponent {
|
|
|
250
252
|
static get methods() { return {
|
|
251
253
|
"setPrayerList": {
|
|
252
254
|
"complexType": {
|
|
253
|
-
"signature": "(intentions: string[]) => Promise<void>",
|
|
255
|
+
"signature": "(intentions: string[] | string) => Promise<void>",
|
|
254
256
|
"parameters": [{
|
|
255
257
|
"tags": [],
|
|
256
258
|
"text": ""
|
|
@@ -24,6 +24,118 @@ function dateFromYMDString(ymd) {
|
|
|
24
24
|
return dateFromYMD(y, m, d);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
* LiturgicalDay represents a particular moment in the liturgical calendar,
|
|
29
|
+
* like "Monday in Holy Week" or "The Eve of the Epiphany."
|
|
30
|
+
*/
|
|
31
|
+
class LiturgicalDay {
|
|
32
|
+
//** Constructor takes a Javascript object containing the class's properties */
|
|
33
|
+
constructor(data = {}) {
|
|
34
|
+
/** True if this moment is the evening. Used to indicate the eve of feasts. */
|
|
35
|
+
this.evening = false;
|
|
36
|
+
Object.assign(this, data);
|
|
37
|
+
}
|
|
38
|
+
/** Returns a native Date from the day's date string */
|
|
39
|
+
getDate() {
|
|
40
|
+
return dateFromYMDString(this.date);
|
|
41
|
+
}
|
|
42
|
+
/** Given a LiturgicalDay, returns a new LiturgicalDay that includes the feasts passed */
|
|
43
|
+
addHolyDays(holydays) {
|
|
44
|
+
var _a, _b, _c, _d;
|
|
45
|
+
const day = this;
|
|
46
|
+
holydays = holydays
|
|
47
|
+
// filter out eves if it's not evening
|
|
48
|
+
.filter((feast) => !feast.eve || this.evening)
|
|
49
|
+
// filter out days that are supposed to stop after a certain Sunday
|
|
50
|
+
// viz., the 1979 daily lectionary for January 8, 9, 10, 11, etc., stops at the 1st Sunday after the Epiphany
|
|
51
|
+
.filter((feast) => feast.stops_at_sunday !== day.week.slug)
|
|
52
|
+
.map((feast) => {
|
|
53
|
+
// if a feast has an `evening` field and it's evening, use that
|
|
54
|
+
if (feast.hasOwnProperty('evening') && this.evening == true) {
|
|
55
|
+
return feast.evening;
|
|
56
|
+
}
|
|
57
|
+
// if a feast has a `morning` field and it's morning, use that
|
|
58
|
+
else if (feast.hasOwnProperty('morning') && this.evening == false) {
|
|
59
|
+
return feast.morning;
|
|
60
|
+
}
|
|
61
|
+
// if a feast is the eve of something and it's evening, use that feast
|
|
62
|
+
else if (feast && feast.eve && this.evening == true) {
|
|
63
|
+
return feast;
|
|
64
|
+
}
|
|
65
|
+
// if none of these, just return the feast
|
|
66
|
+
else {
|
|
67
|
+
return feast;
|
|
68
|
+
}
|
|
69
|
+
})
|
|
70
|
+
.filter((feast) => !!feast);
|
|
71
|
+
// Determine whether a holy day takes precedence over the ordinary day
|
|
72
|
+
const observed = this.observedDay(this, (this.holy_days || new Array()).concat(holydays));
|
|
73
|
+
// overwrite the day's slug with the observed day's slug if they differ
|
|
74
|
+
const holy_day_rank = Number((_b = (_a = observed) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.rank), holy_day_is_observed = (observed === null || observed === void 0 ? void 0 : observed.slug) && ((observed === null || observed === void 0 ? void 0 : observed.slug) !== day.slug || holy_day_rank > 2), slug = holy_day_is_observed && holy_day_rank > 2 ? observed.slug : day.slug;
|
|
75
|
+
let propers = this.propers;
|
|
76
|
+
if (slug !== this.slug) {
|
|
77
|
+
propers = slug;
|
|
78
|
+
}
|
|
79
|
+
const color = observed.color || this.color, collect = observed.collect || this.collect, season = observed.season || this.season, octave = (_d = (_c = (this.holy_days || [])) === null || _c === void 0 ? void 0 : _c.concat(holydays)) === null || _d === void 0 ? void 0 : _d.map((holyday) => holyday.octave).filter((octave) => Boolean(octave)).reduce((acc, curr) => (acc ? acc : curr || acc), undefined);
|
|
80
|
+
return new LiturgicalDay(Object.assign(Object.assign({}, this), { slug, propers: holy_day_is_observed && holy_day_rank > 2 ? (observed === null || observed === void 0 ? void 0 : observed.propers) || (observed === null || observed === void 0 ? void 0 : observed.slug) : propers, color,
|
|
81
|
+
season,
|
|
82
|
+
octave,
|
|
83
|
+
collect, holy_days: (this.holy_days || new Array()).concat(holydays), holy_day_observed: holy_day_is_observed ? observed : this.holy_day_observed }));
|
|
84
|
+
}
|
|
85
|
+
/** Given a `LiturgicalDay` and a set of `HolyDay`s, it returns whichever option takes precedence */
|
|
86
|
+
observedDay(day, holydays) {
|
|
87
|
+
// rank: Principal Feast (5), Sunday (4), Holy Day (3), random other days (2), ferial weekday (1)
|
|
88
|
+
function getRank(item, type) {
|
|
89
|
+
var _a;
|
|
90
|
+
// ranked items => go with rank
|
|
91
|
+
if (type == 'holyday') {
|
|
92
|
+
return ((_a = item === null || item === void 0 ? void 0 : item.type) === null || _a === void 0 ? void 0 : _a.rank) || 2;
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
// if `day.date` is defined, used it to generate a date
|
|
96
|
+
// otherwise, use the current date
|
|
97
|
+
const date = day.date ? dateFromYMDString(day.date) : dateOnly(new Date());
|
|
98
|
+
// Sundays => 4
|
|
99
|
+
if (date.getDay() == 0) {
|
|
100
|
+
return 4;
|
|
101
|
+
}
|
|
102
|
+
// weekdays => 1
|
|
103
|
+
else {
|
|
104
|
+
return 1;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
const sorted = holydays
|
|
109
|
+
.map((holyday) => ({ rank: getRank(holyday, 'holyday'), obj: holyday }))
|
|
110
|
+
.concat({ rank: getRank(day, 'weekday'), obj: day })
|
|
111
|
+
.sort((a, b) => {
|
|
112
|
+
// equal rank => choose earlier feast (probably )
|
|
113
|
+
if (a.rank === b.rank && a.obj.mmdd && b.obj.mmdd) {
|
|
114
|
+
const [bMM, bDD] = b.obj.mmdd.split('/'), [aMM, aDD] = a.obj.mmdd.split('/'), bDate = new Date(), aDate = new Date();
|
|
115
|
+
bDate.setMonth(parseInt(bMM) - 1);
|
|
116
|
+
bDate.setDate(parseInt(bDD));
|
|
117
|
+
aDate.setMonth(parseInt(aMM) - 1);
|
|
118
|
+
aDate.setDate(parseInt(aDD));
|
|
119
|
+
return a.obj.mmdd === b.obj.mmdd && a.obj.kalendar !== b.obj.kalendar
|
|
120
|
+
? a.obj.kalendar === day.kalendar
|
|
121
|
+
? -1
|
|
122
|
+
: 1
|
|
123
|
+
: aDate.getTime() - bDate.getTime();
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
return b.rank - a.rank;
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
return Object.assign({}, sorted[0].obj);
|
|
130
|
+
}
|
|
131
|
+
// whether this day is ranked as a Major Feast
|
|
132
|
+
isFeast() {
|
|
133
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
134
|
+
const isSunday = this.getDate().getDay() === 0, hasRank = (((_b = (_a = this.holy_day_observed) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.rank) || 1) >= 3, holyWeek = ((_c = this.slug) === null || _c === void 0 ? void 0 : _c.includes('holy-week')) || ((_d = this.slug) === null || _d === void 0 ? void 0 : _d.includes('palm-sunday')), ashWednesdayWeek = (_e = this.slug) === null || _e === void 0 ? void 0 : _e.includes('last-epiphany'), ascensionWeek = (_f = this.slug) === null || _f === void 0 ? void 0 : _f.includes('6th-easter'), easterWeek = (_g = this.slug) === null || _g === void 0 ? void 0 : _g.includes('easter'), ember = (_h = this.season) === null || _h === void 0 ? void 0 : _h.includes('Ember');
|
|
135
|
+
return isSunday || (hasRank && !holyWeek && !easterWeek && !ashWednesdayWeek && !ascensionWeek && !ember);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
27
139
|
class Condition {
|
|
28
140
|
//** Constructor takes a Javascript object containing the class's properties */
|
|
29
141
|
constructor(data = {}) {
|
|
@@ -55,11 +167,11 @@ class Condition {
|
|
|
55
167
|
}
|
|
56
168
|
// `feastDay`
|
|
57
169
|
if (this.hasOwnProperty('feastDay') && this.feastDay !== undefined) {
|
|
58
|
-
|
|
170
|
+
Math.max(
|
|
59
171
|
// highest rank of holy days given
|
|
60
172
|
...(day.holy_days || [])
|
|
61
173
|
.filter((a) => !!a) // exclude any null or undefined from array
|
|
62
|
-
.map((a) => (a && a.type && a.type.rank ? a.type.rank : 3)))
|
|
174
|
+
.map((a) => (a && a.type && a.type.rank ? a.type.rank : 3))); dateFromYMDString(day.date).getDay() == 0; const isFeast = new LiturgicalDay(day).isFeast();
|
|
63
175
|
evaluatedConditions.push(isFeast == this.feastDay);
|
|
64
176
|
}
|
|
65
177
|
// `date`
|
|
@@ -279,4 +391,4 @@ var Book;
|
|
|
279
391
|
Book["Bel"] = "Bel";
|
|
280
392
|
})(Book || (Book = {}));
|
|
281
393
|
|
|
282
|
-
export { Condition as C, LiturgicalDocument as L, Responsive as R,
|
|
394
|
+
export { Condition as C, LiturgicalDocument as L, Responsive as R, LiturgicalDay as a, dateFromYMDString as d };
|
|
@@ -3,7 +3,7 @@ import { g as getIonMode$1, i as isPlatform, c as config } from './ionic-global-
|
|
|
3
3
|
import { h as hasShadowDom, c as clamp, d as debounceEvent, r as raf } from './helpers-8c93393b.js';
|
|
4
4
|
import { o as openURL, c as createColorClasses$1, h as hostContext } from './theme-74c22054.js';
|
|
5
5
|
import { p as popoverController } from './overlays-06b43b65.js';
|
|
6
|
-
import './book-
|
|
6
|
+
import './book-4795ea34.js';
|
|
7
7
|
import { C as Change } from './change-ea574d32.js';
|
|
8
8
|
import { g as getComponentClosestLanguage } from './locale-ec8e14e6.js';
|
|
9
9
|
import './hardware-back-button-b3b61715.js';
|
|
@@ -2,8 +2,8 @@ import { r as registerInstance, h, H as Host, f as forceUpdate, c as createEvent
|
|
|
2
2
|
import { g as getIonMode } from './ionic-global-ef89a0a5.js';
|
|
3
3
|
import { c as createColorClasses } from './theme-74c22054.js';
|
|
4
4
|
import { f as alertController } from './overlays-06b43b65.js';
|
|
5
|
-
import './book-
|
|
6
|
-
import { R as Refrain } from './refrain-
|
|
5
|
+
import './book-4795ea34.js';
|
|
6
|
+
import { R as Refrain } from './refrain-984f9410.js';
|
|
7
7
|
import { C as Change } from './change-ea574d32.js';
|
|
8
8
|
import { g as getComponentClosestLanguage } from './locale-ec8e14e6.js';
|
|
9
9
|
import './hardware-back-button-b3b61715.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement
|
|
|
2
2
|
import { g as getIonMode } from './ionic-global-ef89a0a5.js';
|
|
3
3
|
import { f as findItemLabel, b as renderHiddenInput } from './helpers-8c93393b.js';
|
|
4
4
|
import { c as createColorClasses, h as hostContext } from './theme-74c22054.js';
|
|
5
|
-
import './book-
|
|
5
|
+
import './book-4795ea34.js';
|
|
6
6
|
import { C as Change } from './change-ea574d32.js';
|
|
7
7
|
import { f as alertController } from './overlays-06b43b65.js';
|
|
8
8
|
import { g as getComponentClosestLanguage } from './locale-ec8e14e6.js';
|
|
@@ -3,7 +3,7 @@ import { g as getIonMode } from './ionic-global-ef89a0a5.js';
|
|
|
3
3
|
import { d as debounceEvent, f as findItemLabel } from './helpers-8c93393b.js';
|
|
4
4
|
import { c as createColorClasses } from './theme-74c22054.js';
|
|
5
5
|
import { D as Debounce } from './index-f08f6130.js';
|
|
6
|
-
import './book-
|
|
6
|
+
import './book-4795ea34.js';
|
|
7
7
|
import { C as Cursor } from './cursor-0e47f111.js';
|
|
8
8
|
import { C as Change } from './change-ea574d32.js';
|
|
9
9
|
import { c as createCommonjsModule } from './_commonjsHelpers-ba3f0406.js';
|
|
@@ -3,15 +3,15 @@ import { c as config, g as getIonMode } from './ionic-global-ef89a0a5.js';
|
|
|
3
3
|
import { p as pointerCoord } from './helpers-8c93393b.js';
|
|
4
4
|
import { c as createColorClasses, h as hostContext } from './theme-74c22054.js';
|
|
5
5
|
import { f as alertController, l as loadingController, m as modalController, t as toastController } from './overlays-06b43b65.js';
|
|
6
|
-
import { R as Responsive, L as LiturgicalDocument, d as dateFromYMDString } from './book-
|
|
7
|
-
import { B as BibleReading, L as Liturgy, M as Meditation, P as Psalm, R as ResponsivePrayer, a as Rubric } from './rubric-
|
|
8
|
-
import { H as Heading } from './heading-
|
|
9
|
-
import { v as versionToString, O as Option } from './option-
|
|
6
|
+
import { R as Responsive, L as LiturgicalDocument, d as dateFromYMDString } from './book-4795ea34.js';
|
|
7
|
+
import { B as BibleReading, L as Liturgy, M as Meditation, P as Psalm, R as ResponsivePrayer, a as Rubric } from './rubric-5c072ba1.js';
|
|
8
|
+
import { H as Heading } from './heading-dedd87c7.js';
|
|
9
|
+
import { v as versionToString, O as Option } from './option-4e49f550.js';
|
|
10
10
|
import { C as Change } from './change-ea574d32.js';
|
|
11
11
|
import { g as getComponentClosestLanguage } from './locale-ec8e14e6.js';
|
|
12
|
-
import { I as Image } from './image-
|
|
12
|
+
import { I as Image } from './image-374f5ed7.js';
|
|
13
13
|
import { D as Debounce } from './index-f08f6130.js';
|
|
14
|
-
import { R as Refrain } from './refrain-
|
|
14
|
+
import { R as Refrain } from './refrain-984f9410.js';
|
|
15
15
|
import './hardware-back-button-b3b61715.js';
|
|
16
16
|
import './_commonjsHelpers-ba3f0406.js';
|
|
17
17
|
|
|
@@ -1,125 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, a as getElement, c as createEvent } from './index-f0f6a379.js';
|
|
2
|
-
import {
|
|
3
|
-
import { T as Text } from './text-
|
|
2
|
+
import { a as LiturgicalDay, d as dateFromYMDString } from './book-4795ea34.js';
|
|
3
|
+
import { T as Text } from './text-2ec5b6b3.js';
|
|
4
4
|
import { g as getComponentClosestLanguage } from './locale-ec8e14e6.js';
|
|
5
|
-
import { H as Heading } from './heading-
|
|
5
|
+
import { H as Heading } from './heading-dedd87c7.js';
|
|
6
6
|
import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-ba3f0406.js';
|
|
7
7
|
import { m as modalController } from './overlays-06b43b65.js';
|
|
8
8
|
import './ionic-global-ef89a0a5.js';
|
|
9
9
|
import './hardware-back-button-b3b61715.js';
|
|
10
10
|
|
|
11
|
-
/**
|
|
12
|
-
* LiturgicalDay represents a particular moment in the liturgical calendar,
|
|
13
|
-
* like "Monday in Holy Week" or "The Eve of the Epiphany."
|
|
14
|
-
*/
|
|
15
|
-
class LiturgicalDay {
|
|
16
|
-
//** Constructor takes a Javascript object containing the class's properties */
|
|
17
|
-
constructor(data = {}) {
|
|
18
|
-
/** True if this moment is the evening. Used to indicate the eve of feasts. */
|
|
19
|
-
this.evening = false;
|
|
20
|
-
Object.assign(this, data);
|
|
21
|
-
}
|
|
22
|
-
/** Returns a native Date from the day's date string */
|
|
23
|
-
getDate() {
|
|
24
|
-
return dateFromYMDString(this.date);
|
|
25
|
-
}
|
|
26
|
-
/** Given a LiturgicalDay, returns a new LiturgicalDay that includes the feasts passed */
|
|
27
|
-
addHolyDays(holydays) {
|
|
28
|
-
var _a, _b, _c, _d;
|
|
29
|
-
const day = this;
|
|
30
|
-
holydays = holydays
|
|
31
|
-
// filter out eves if it's not evening
|
|
32
|
-
.filter((feast) => !feast.eve || this.evening)
|
|
33
|
-
// filter out days that are supposed to stop after a certain Sunday
|
|
34
|
-
// viz., the 1979 daily lectionary for January 8, 9, 10, 11, etc., stops at the 1st Sunday after the Epiphany
|
|
35
|
-
.filter((feast) => feast.stops_at_sunday !== day.week.slug)
|
|
36
|
-
.map((feast) => {
|
|
37
|
-
// if a feast has an `evening` field and it's evening, use that
|
|
38
|
-
if (feast.hasOwnProperty('evening') && this.evening == true) {
|
|
39
|
-
return feast.evening;
|
|
40
|
-
}
|
|
41
|
-
// if a feast has a `morning` field and it's morning, use that
|
|
42
|
-
else if (feast.hasOwnProperty('morning') && this.evening == false) {
|
|
43
|
-
return feast.morning;
|
|
44
|
-
}
|
|
45
|
-
// if a feast is the eve of something and it's evening, use that feast
|
|
46
|
-
else if (feast && feast.eve && this.evening == true) {
|
|
47
|
-
return feast;
|
|
48
|
-
}
|
|
49
|
-
// if none of these, just return the feast
|
|
50
|
-
else {
|
|
51
|
-
return feast;
|
|
52
|
-
}
|
|
53
|
-
})
|
|
54
|
-
.filter((feast) => !!feast);
|
|
55
|
-
// Determine whether a holy day takes precedence over the ordinary day
|
|
56
|
-
const observed = this.observedDay(this, (this.holy_days || new Array()).concat(holydays));
|
|
57
|
-
// overwrite the day's slug with the observed day's slug if they differ
|
|
58
|
-
const holy_day_rank = Number((_b = (_a = observed) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.rank), holy_day_is_observed = (observed === null || observed === void 0 ? void 0 : observed.slug) && ((observed === null || observed === void 0 ? void 0 : observed.slug) !== day.slug || holy_day_rank > 2), slug = holy_day_is_observed && holy_day_rank > 2 ? observed.slug : day.slug;
|
|
59
|
-
let propers = this.propers;
|
|
60
|
-
if (slug !== this.slug) {
|
|
61
|
-
propers = slug;
|
|
62
|
-
}
|
|
63
|
-
const color = observed.color || this.color, collect = observed.collect || this.collect, season = observed.season || this.season, octave = (_d = (_c = (this.holy_days || [])) === null || _c === void 0 ? void 0 : _c.concat(holydays)) === null || _d === void 0 ? void 0 : _d.map((holyday) => holyday.octave).filter((octave) => Boolean(octave)).reduce((acc, curr) => (acc ? acc : curr || acc), undefined);
|
|
64
|
-
return new LiturgicalDay(Object.assign(Object.assign({}, this), { slug, propers: holy_day_is_observed && holy_day_rank > 2 ? (observed === null || observed === void 0 ? void 0 : observed.propers) || (observed === null || observed === void 0 ? void 0 : observed.slug) : propers, color,
|
|
65
|
-
season,
|
|
66
|
-
octave,
|
|
67
|
-
collect, holy_days: (this.holy_days || new Array()).concat(holydays), holy_day_observed: holy_day_is_observed ? observed : this.holy_day_observed }));
|
|
68
|
-
}
|
|
69
|
-
/** Given a `LiturgicalDay` and a set of `HolyDay`s, it returns whichever option takes precedence */
|
|
70
|
-
observedDay(day, holydays) {
|
|
71
|
-
// rank: Principal Feast (5), Sunday (4), Holy Day (3), random other days (2), ferial weekday (1)
|
|
72
|
-
function getRank(item, type) {
|
|
73
|
-
var _a;
|
|
74
|
-
// ranked items => go with rank
|
|
75
|
-
if (type == 'holyday') {
|
|
76
|
-
return ((_a = item === null || item === void 0 ? void 0 : item.type) === null || _a === void 0 ? void 0 : _a.rank) || 2;
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
// if `day.date` is defined, used it to generate a date
|
|
80
|
-
// otherwise, use the current date
|
|
81
|
-
const date = day.date ? dateFromYMDString(day.date) : dateOnly(new Date());
|
|
82
|
-
// Sundays => 4
|
|
83
|
-
if (date.getDay() == 0) {
|
|
84
|
-
return 4;
|
|
85
|
-
}
|
|
86
|
-
// weekdays => 1
|
|
87
|
-
else {
|
|
88
|
-
return 1;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
const sorted = holydays
|
|
93
|
-
.map((holyday) => ({ rank: getRank(holyday, 'holyday'), obj: holyday }))
|
|
94
|
-
.concat({ rank: getRank(day, 'weekday'), obj: day })
|
|
95
|
-
.sort((a, b) => {
|
|
96
|
-
// equal rank => choose earlier feast (probably )
|
|
97
|
-
if (a.rank === b.rank && a.obj.mmdd && b.obj.mmdd) {
|
|
98
|
-
const [bMM, bDD] = b.obj.mmdd.split('/'), [aMM, aDD] = a.obj.mmdd.split('/'), bDate = new Date(), aDate = new Date();
|
|
99
|
-
bDate.setMonth(parseInt(bMM) - 1);
|
|
100
|
-
bDate.setDate(parseInt(bDD));
|
|
101
|
-
aDate.setMonth(parseInt(aMM) - 1);
|
|
102
|
-
aDate.setDate(parseInt(aDD));
|
|
103
|
-
return a.obj.mmdd === b.obj.mmdd && a.obj.kalendar !== b.obj.kalendar
|
|
104
|
-
? a.obj.kalendar === day.kalendar
|
|
105
|
-
? -1
|
|
106
|
-
: 1
|
|
107
|
-
: aDate.getTime() - bDate.getTime();
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
return b.rank - a.rank;
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
return Object.assign({}, sorted[0].obj);
|
|
114
|
-
}
|
|
115
|
-
// whether this day is ranked as a Major Feast
|
|
116
|
-
isFeast() {
|
|
117
|
-
var _a, _b, _c, _d;
|
|
118
|
-
const isSunday = this.getDate().getDay() === 0, hasRank = (((_b = (_a = this.holy_day_observed) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.rank) || 1) >= 3, holyWeek = (_c = this.slug) === null || _c === void 0 ? void 0 : _c.includes('holy-week'), easterWeek = ((_d = this.week) === null || _d === void 0 ? void 0 : _d.slug) === 'easter';
|
|
119
|
-
return isSunday || (hasRank && !holyWeek && !easterWeek);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
11
|
class Citation {
|
|
124
12
|
//** Constructor takes a Javascript object containing the class's properties */
|
|
125
13
|
constructor(data = {}) {
|
|
@@ -5570,7 +5458,7 @@ const ES = {
|
|
|
5570
5458
|
"prayer-list": "Prayer List"
|
|
5571
5459
|
};
|
|
5572
5460
|
|
|
5573
|
-
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}";
|
|
5461
|
+
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.formatted.sc-ldf-text{text-align:left;white-space:pre-wrap}.prayer-list.sc-ldf-text li.sc-ldf-text{list-style-type:none;text-align:center;margin:0.5em 0;padding:0}";
|
|
5574
5462
|
|
|
5575
5463
|
const LOCALE = {
|
|
5576
5464
|
'en': EN,
|
|
@@ -5582,10 +5470,9 @@ const TextComponent = class {
|
|
|
5582
5470
|
this.ldfDocShouldChange = createEvent(this, "ldfDocShouldChange", 7);
|
|
5583
5471
|
this.ldfAskForPrayerList = createEvent(this, "ldfAskForPrayerList", 7);
|
|
5584
5472
|
// prayer list for authorized prayers
|
|
5585
|
-
this.intentions =
|
|
5473
|
+
this.intentions = "";
|
|
5586
5474
|
}
|
|
5587
5475
|
async setPrayerList(intentions) {
|
|
5588
|
-
console.log("(PrayerList) setPrayerList", intentions);
|
|
5589
5476
|
this.intentions = intentions;
|
|
5590
5477
|
}
|
|
5591
5478
|
docChanged(newDoc) {
|
|
@@ -5649,20 +5536,23 @@ const TextComponent = class {
|
|
|
5649
5536
|
/** `authorized-prayer` type */
|
|
5650
5537
|
if (((_a = this.obj) === null || _a === void 0 ? void 0 : _a.style) === 'authorized-prayers') {
|
|
5651
5538
|
const splits = this.path.split('/'), index = Number(splits[splits.length - 1]), base = splits.slice(0, splits.length - 1).join('/');
|
|
5652
|
-
return h(Host, null, h("ldf-label-bar", null, h("ion-button", { onClick: () => this.addPAndT(base, index), fill: "clear" }, localeStrings.authorized_prayers)), (_c = ((_b = this.intentions) === null || _b === void 0 ? void 0 : _b.length) > 0) !== null && _c !== void 0 ? _c : h("strong", { class: "prayer-list" }, localeStrings['prayer-list']),
|
|
5539
|
+
return h(Host, null, h("ldf-label-bar", null, h("ion-button", { onClick: () => this.addPAndT(base, index), fill: "clear" }, localeStrings.authorized_prayers)), (_c = ((_b = this.intentions) === null || _b === void 0 ? void 0 : _b.length) > 0) !== null && _c !== void 0 ? _c : h("strong", { class: "prayer-list" }, localeStrings['prayer-list']), Array.isArray(this.intentions)
|
|
5540
|
+
? h("ul", { class: "prayer-list" }, this.intentions.map(intention => h("li", null, intention)))
|
|
5541
|
+
: h("p", { class: "prayer-list formatted" }, this.intentions));
|
|
5653
5542
|
}
|
|
5654
5543
|
else {
|
|
5655
5544
|
let value = ((_e = (_d = this.obj) === null || _d === void 0 ? void 0 : _d.metadata) === null || _e === void 0 ? void 0 : _e.rollup)
|
|
5656
5545
|
? (((_f = this.obj) === null || _f === void 0 ? void 0 : _f.value) || []).map(s => s.replace(/\s+/g, ' '))
|
|
5657
5546
|
: (((_g = this.obj) === null || _g === void 0 ? void 0 : _g.value) || []);
|
|
5658
5547
|
let compiledValue = value.map(s => {
|
|
5659
|
-
return s.split(/([\*\w\n\s,:;\.\-–—'“☩✠”‘’\!\?”\[\]\%\(\)\/\u0041-\u024F]+([^\*\w\n\s,;:\.'“”☩✠‘’”\-–—\!\?\[\]\%\(\)\/\u0041-\u024F]))/g);
|
|
5548
|
+
return s.split(/([\*\w\n\s,:;\.\-–—'“☩✠”‘’\!\?”\[\]\%\(\)\/\u0041-\u024F\u1400-\u167f]+([^\*\w\n\s,;:\.'“”☩✠‘’”\-–—\!\?\[\]\%\(\)\/\u0041-\u024F\u1400-\u167f]))/g);
|
|
5660
5549
|
});
|
|
5661
5550
|
if (!this.editable && ((_h = this.obj) === null || _h === void 0 ? void 0 : _h.display_format) === 'abbreviated') {
|
|
5662
5551
|
const firstSection = compiledValue[0], lastSection = compiledValue[compiledValue.length - 1];
|
|
5663
5552
|
const firstChunk = this.truncate(firstSection[0]), lastChunk = this.truncate(lastSection[lastSection.length - 1], true);
|
|
5664
5553
|
compiledValue = [[firstChunk], [lastChunk]];
|
|
5665
5554
|
}
|
|
5555
|
+
console.log("compiledValue = ", compiledValue);
|
|
5666
5556
|
if (this.editable) {
|
|
5667
5557
|
return (h(Host, { lang: this.obj.language }, h("ldf-label-bar", null, h("slot", { slot: 'end', name: 'controls' })), !this.editable && h("ldf-heading", { path: `${this.path}/label`, doc: new Heading({ type: 'heading', metadata: { level: 3 }, value: [this.obj.label], citation: this.obj.citation, source: this.obj.source }) }), this.editable && h("ldf-label-bar", null, !((_k = (_j = this.obj) === null || _j === void 0 ? void 0 : _j.metadata) === null || _k === void 0 ? void 0 : _k.omit_label) && h("h3", { class: "editable-label", slot: "start" }, h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-label`, text: (_l = this.obj) === null || _l === void 0 ? void 0 : _l.label, placeholder: localeStrings.label, path: `${this.path}/label` })), h("ldf-editable-text", { slot: "end", id: "source-source", text: (_o = (_m = this.obj) === null || _m === void 0 ? void 0 : _m.source) === null || _o === void 0 ? void 0 : _o.source, path: `${this.path}/source/source`, placeholder: (_p = this.localeStrings) === null || _p === void 0 ? void 0 : _p.source }), h("ldf-editable-text", { slot: "end", id: "source-citation", text: (_r = (_q = this.obj) === null || _q === void 0 ? void 0 : _q.source) === null || _r === void 0 ? void 0 : _r.citation, path: `${this.path}/source/citation`, placeholder: (_s = this.localeStrings) === null || _s === void 0 ? void 0 : _s.source_citation })), h("div", { class: `text ${this.editable ? 'editable' : ''} ${((_t = this.obj) === null || _t === void 0 ? void 0 : _t.display_format) || 'default'}` }, this.obj.value.map((prayer, prayerIndex) => h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-${prayerIndex}`, text: prayer, path: `${this.path}/value/${prayerIndex}` })), (((_u = this.obj) === null || _u === void 0 ? void 0 : _u.style) === 'prayer' || (((_w = (_v = this.obj) === null || _v === void 0 ? void 0 : _v.metadata) === null || _w === void 0 ? void 0 : _w.response) && !((_y = (_x = this.obj) === null || _x === void 0 ? void 0 : _x.metadata) === null || _y === void 0 ? void 0 : _y.omit_response))) && h("span", { class: 'response' }, h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-response`, text: this.obj.metadata && this.obj.metadata.response, path: `${this.path}/response`, placeholder: localeStrings.amen })))));
|
|
5668
5558
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent, H as Host, a as getElement } from './index-f0f6a379.js';
|
|
2
|
-
import { L as LiturgicalDocument } from './book-
|
|
3
|
-
import { B as BibleReading, P as Psalm, L as Liturgy$1, M as Meditation, R as ResponsivePrayer, a as Rubric } from './rubric-
|
|
4
|
-
import { H as Heading } from './heading-
|
|
5
|
-
import { I as Image } from './image-
|
|
6
|
-
import { O as Option } from './option-
|
|
7
|
-
import { R as Refrain } from './refrain-
|
|
8
|
-
import { T as Text } from './text-
|
|
2
|
+
import { L as LiturgicalDocument } from './book-4795ea34.js';
|
|
3
|
+
import { B as BibleReading, P as Psalm, L as Liturgy$1, M as Meditation, R as ResponsivePrayer, a as Rubric } from './rubric-5c072ba1.js';
|
|
4
|
+
import { H as Heading } from './heading-dedd87c7.js';
|
|
5
|
+
import { I as Image } from './image-374f5ed7.js';
|
|
6
|
+
import { O as Option } from './option-4e49f550.js';
|
|
7
|
+
import { R as Refrain } from './refrain-984f9410.js';
|
|
8
|
+
import { T as Text } from './text-2ec5b6b3.js';
|
|
9
9
|
import { g as getComponentClosestLanguage } from './locale-ec8e14e6.js';
|
|
10
10
|
|
|
11
11
|
const MENU = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent, H as Host, a as getElement } from './index-f0f6a379.js';
|
|
2
|
-
import { C as Condition } from './book-
|
|
2
|
+
import { C as Condition } from './book-4795ea34.js';
|
|
3
3
|
import { C as Change } from './change-ea574d32.js';
|
|
4
4
|
import { g as getComponentClosestLanguage } from './locale-ec8e14e6.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-f0f6a379.js';
|
|
2
|
-
import { C as Condition } from './book-
|
|
2
|
+
import { C as Condition } from './book-4795ea34.js';
|
|
3
3
|
import { C as Change } from './change-ea574d32.js';
|
|
4
4
|
import { g as getComponentClosestLanguage } from './locale-ec8e14e6.js';
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-f0f6a379.js';
|
|
2
|
-
import { L as LiturgicalDocument } from './book-
|
|
3
|
-
import { v as versionToString, O as Option } from './option-
|
|
2
|
+
import { L as LiturgicalDocument } from './book-4795ea34.js';
|
|
3
|
+
import { v as versionToString, O as Option } from './option-4e49f550.js';
|
|
4
4
|
import { g as getComponentClosestLanguage } from './locale-ec8e14e6.js';
|
|
5
5
|
|
|
6
6
|
/* Converts a list of documents into a single document showing options in parallel */
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-f0f6a379.js';
|
|
2
|
-
import { L as LiturgicalDocument } from './book-
|
|
2
|
+
import { L as LiturgicalDocument } from './book-4795ea34.js';
|
|
3
3
|
import { C as Change } from './change-ea574d32.js';
|
|
4
|
-
import { v as versionToString } from './option-
|
|
5
|
-
import { s as specificClass } from './specific-class-
|
|
4
|
+
import { v as versionToString } from './option-4e49f550.js';
|
|
5
|
+
import { s as specificClass } from './specific-class-23168094.js';
|
|
6
6
|
import { g as getComponentClosestLanguage } from './locale-ec8e14e6.js';
|
|
7
|
-
import './rubric-
|
|
8
|
-
import './heading-
|
|
9
|
-
import './refrain-
|
|
10
|
-
import './text-
|
|
7
|
+
import './rubric-5c072ba1.js';
|
|
8
|
+
import './heading-dedd87c7.js';
|
|
9
|
+
import './refrain-984f9410.js';
|
|
10
|
+
import './text-2ec5b6b3.js';
|
|
11
11
|
|
|
12
12
|
const LOCALE_STRINGS = {
|
|
13
13
|
"allowMultiple": "Allow multiple options",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-f0f6a379.js';
|
|
2
|
-
import { L as LiturgicalDocument } from './book-
|
|
2
|
+
import { L as LiturgicalDocument } from './book-4795ea34.js';
|
|
3
3
|
import { C as Change } from './change-ea574d32.js';
|
|
4
|
-
import { s as specificClass } from './specific-class-
|
|
4
|
+
import { s as specificClass } from './specific-class-23168094.js';
|
|
5
5
|
import { g as getComponentClosestLanguage } from './locale-ec8e14e6.js';
|
|
6
|
-
import './rubric-
|
|
7
|
-
import './heading-
|
|
8
|
-
import './option-
|
|
9
|
-
import './refrain-
|
|
10
|
-
import './text-
|
|
6
|
+
import './rubric-5c072ba1.js';
|
|
7
|
+
import './heading-dedd87c7.js';
|
|
8
|
+
import './option-4e49f550.js';
|
|
9
|
+
import './refrain-984f9410.js';
|
|
10
|
+
import './text-2ec5b6b3.js';
|
|
11
11
|
|
|
12
12
|
const abbreviated = "Abbreviated";
|
|
13
13
|
const advanced = "Advanced Settings";
|