@venite/components 0.16.17 → 0.16.21
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/{change-cdb1e8c0.js → change-deff223a.js} +0 -0
- package/dist/cjs/{cursor-81bfd01e.js → cursor-849a5372.js} +0 -0
- package/dist/cjs/{heading-5afc2b24.js → heading-fae3ce98.js} +2 -2
- package/dist/cjs/{image-3bee3e73.js → image-41000c7b.js} +2 -2
- package/dist/cjs/{book-1a92678a.js → index-c9b940c7.js} +96 -2
- package/dist/cjs/ion-button_13.cjs.entry.js +25 -4
- package/dist/cjs/ion-card-content_6.cjs.entry.js +4 -3
- package/dist/cjs/ion-checkbox_3.cjs.entry.js +3 -2
- package/dist/cjs/ion-input_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-segment_16.cjs.entry.js +20 -20
- package/dist/cjs/ldf-day-name_5.cjs.entry.js +90 -76
- package/dist/cjs/ldf-editable-add-block-menu.cjs.entry.js +10 -9
- package/dist/cjs/ldf-editable-condition-piece.cjs.entry.js +7 -6
- package/dist/cjs/ldf-editable-condition.cjs.entry.js +5 -4
- package/dist/cjs/ldf-editable-filter-documents.cjs.entry.js +11 -10
- package/dist/cjs/ldf-editable-lookup_2.cjs.entry.js +10 -9
- package/dist/cjs/ldf-editable-metadata.cjs.entry.js +11 -10
- package/dist/cjs/ldf-editable-preference-option.cjs.entry.js +4 -3
- package/dist/cjs/ldf-editable-preference.cjs.entry.js +4 -3
- package/dist/cjs/ldf-editable-preferences.cjs.entry.js +4 -3
- package/dist/cjs/ldf-editable-string-list.cjs.entry.js +3 -2
- package/dist/cjs/ldf-editor.cjs.entry.js +14 -14
- package/dist/cjs/ldf.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{option-a078d432.js → option-6fb78f5c.js} +5 -17
- package/dist/cjs/{preference-a4bd51c4.js → preference-1365e161.js} +0 -0
- package/dist/cjs/{refrain-91fb446b.js → refrain-f51fd88d.js} +2 -2
- package/dist/cjs/{rubric-9cc04cb0.js → rubric-ad2f926f.js} +15 -482
- package/dist/cjs/{specific-class-36a74859.js → specific-class-071762e7.js} +5 -5
- package/dist/cjs/{text-5edb80f3.js → text-8d8d32e7.js} +2 -2
- package/dist/collection/components/prayers-and-thanksgivings/dist/prayers-and-thanksgivings.js +21 -5
- package/dist/collection/components/prayers-and-thanksgivings/prayers-and-thanksgivings.i18n.es.json +3 -0
- package/dist/collection/components/prayers-and-thanksgivings/prayers-and-thanksgivings.js +20 -4
- package/dist/collection/components/text/dist/text.js +43 -16
- package/dist/collection/components/text/text.css +14 -1
- package/dist/collection/components/text/text.i18n.en.json +2 -1
- package/dist/collection/components/text/text.i18n.es.json +2 -1
- package/dist/collection/components/text/text.js +71 -19
- package/dist/collection/i18n/prayers-and-thanksgivings.i18n.es.json +3 -0
- package/dist/collection/i18n/text.i18n.en.json +2 -1
- package/dist/collection/i18n/text.i18n.es.json +2 -1
- package/dist/esm/{change-ea574d32.js → change-b077b77c.js} +0 -0
- package/dist/esm/{cursor-0e47f111.js → cursor-cb97384b.js} +0 -0
- package/dist/esm/{heading-cc5ffa8a.js → heading-c03fbe8b.js} +1 -1
- package/dist/esm/{image-c6a3f0c5.js → image-a1336f0a.js} +1 -1
- package/dist/esm/{book-31b8cdde.js → index-2e220677.js} +96 -2
- package/dist/esm/ion-button_13.entry.js +25 -4
- package/dist/esm/ion-card-content_6.entry.js +4 -3
- package/dist/esm/ion-checkbox_3.entry.js +3 -2
- package/dist/esm/ion-input_2.entry.js +3 -3
- package/dist/esm/ion-segment_16.entry.js +7 -7
- package/dist/esm/ldf-day-name_5.entry.js +31 -17
- package/dist/esm/ldf-editable-add-block-menu.entry.js +8 -7
- package/dist/esm/ldf-editable-condition-piece.entry.js +3 -2
- package/dist/esm/ldf-editable-condition.entry.js +3 -2
- package/dist/esm/ldf-editable-filter-documents.entry.js +3 -2
- package/dist/esm/ldf-editable-lookup_2.entry.js +9 -8
- package/dist/esm/ldf-editable-metadata.entry.js +9 -8
- package/dist/esm/ldf-editable-preference-option.entry.js +4 -3
- package/dist/esm/ldf-editable-preference.entry.js +4 -3
- package/dist/esm/ldf-editable-preferences.entry.js +4 -3
- package/dist/esm/ldf-editable-string-list.entry.js +3 -2
- package/dist/esm/ldf-editor.entry.js +3 -3
- package/dist/esm/ldf.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{option-c16af13a.js → option-e130a4b2.js} +4 -16
- package/dist/esm/{preference-d070d4cb.js → preference-60cdfde3.js} +0 -0
- package/dist/esm/{refrain-75a412cb.js → refrain-9b9f05cc.js} +1 -1
- package/dist/esm/{rubric-09337f3c.js → rubric-0d2b870d.js} +8 -475
- package/dist/esm/{specific-class-e890ce29.js → specific-class-3f0e0c45.js} +5 -5
- package/dist/esm/{text-ed75fbd4.js → text-801eb7de.js} +1 -1
- package/dist/ldf/i18n/prayers-and-thanksgivings.i18n.es.json +3 -0
- package/dist/ldf/i18n/text.i18n.en.json +2 -1
- package/dist/ldf/i18n/text.i18n.es.json +2 -1
- package/dist/ldf/ldf.esm.js +1 -1
- package/dist/ldf/{p-935cb02a.entry.js → p-05ac8045.entry.js} +1 -1
- package/dist/ldf/{p-23af1bc3.entry.js → p-0d9b71a8.entry.js} +1 -1
- package/dist/ldf/{p-8ec26587.js → p-12d81208.js} +0 -0
- package/dist/ldf/{p-991c0877.js → p-2a08ff25.js} +0 -0
- package/dist/ldf/p-31a1f740.js +1 -0
- package/dist/ldf/p-34e37c39.entry.js +1 -0
- package/dist/ldf/p-37d9f551.entry.js +1 -0
- package/dist/ldf/p-3a7cb4d5.entry.js +1 -0
- package/dist/ldf/p-3e0814c2.entry.js +1 -0
- package/dist/ldf/p-405928d1.js +1 -0
- package/dist/ldf/p-4ed034a1.js +1 -0
- package/dist/ldf/p-5eef960d.entry.js +1 -0
- package/dist/ldf/p-67c52455.entry.js +1 -0
- package/dist/ldf/p-69d493f3.entry.js +1 -0
- package/dist/ldf/{p-5066eaa5.js → p-6a68fa7b.js} +0 -0
- package/dist/ldf/p-80f6ec9f.js +1 -0
- package/dist/ldf/p-82f2facb.entry.js +1 -0
- package/dist/ldf/{p-5b43e6be.js → p-93911ad1.js} +1 -1
- package/dist/ldf/p-9424ca03.entry.js +1 -0
- package/dist/ldf/p-952f8992.entry.js +1 -0
- package/dist/ldf/p-9b008ca8.entry.js +1 -0
- package/dist/ldf/p-a712728b.js +1 -0
- package/dist/ldf/p-b37dd77a.entry.js +1 -0
- package/dist/ldf/p-b3b245a2.entry.js +1 -0
- package/dist/ldf/p-bc84c531.entry.js +1 -0
- package/dist/ldf/p-c02098e2.entry.js +1 -0
- package/dist/ldf/p-cec60628.js +1 -0
- package/dist/ldf/p-ff0452c1.js +3 -0
- package/dist/types/components/text/text.d.ts +4 -0
- package/dist/types/components.d.ts +5 -0
- package/package.json +2 -2
- package/dist/ldf/p-03afc8cb.entry.js +0 -1
- package/dist/ldf/p-2ae548b3.entry.js +0 -1
- package/dist/ldf/p-304a2bdb.entry.js +0 -1
- package/dist/ldf/p-30b07706.js +0 -1
- package/dist/ldf/p-476327d6.js +0 -1
- package/dist/ldf/p-4aa9a6f2.js +0 -1
- package/dist/ldf/p-594fa9d4.entry.js +0 -1
- package/dist/ldf/p-65563763.entry.js +0 -1
- package/dist/ldf/p-65d26c45.js +0 -1
- package/dist/ldf/p-65ea7ab3.entry.js +0 -1
- package/dist/ldf/p-800a115c.entry.js +0 -1
- package/dist/ldf/p-8d1a3849.entry.js +0 -1
- package/dist/ldf/p-9c1973a6.entry.js +0 -1
- package/dist/ldf/p-9d09f906.js +0 -3
- package/dist/ldf/p-a1729dbd.js +0 -1
- package/dist/ldf/p-cc383802.entry.js +0 -1
- package/dist/ldf/p-e4f0cd91.entry.js +0 -1
- package/dist/ldf/p-e7a449d7.js +0 -1
- package/dist/ldf/p-f0de7628.entry.js +0 -1
- package/dist/ldf/p-f184d804.entry.js +0 -1
- package/dist/ldf/p-f529ee3c.entry.js +0 -1
- package/dist/ldf/p-fa191f47.entry.js +0 -1
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-8fe0df8d.js');
|
|
6
|
-
const
|
|
7
|
-
const text = require('./text-
|
|
5
|
+
const index$1 = require('./index-8fe0df8d.js');
|
|
6
|
+
const index = require('./index-c9b940c7.js');
|
|
7
|
+
const text = require('./text-8d8d32e7.js');
|
|
8
8
|
const locale = require('./locale-d4e925b1.js');
|
|
9
|
-
const heading = require('./heading-
|
|
9
|
+
const heading = require('./heading-fae3ce98.js');
|
|
10
10
|
const _commonjsHelpers = require('./_commonjsHelpers-bcc1208a.js');
|
|
11
11
|
const overlays = require('./overlays-eb464d6d.js');
|
|
12
12
|
require('./ionic-global-581fb4f8.js');
|
|
@@ -25,7 +25,7 @@ class LiturgicalDay {
|
|
|
25
25
|
}
|
|
26
26
|
/** Returns a native Date from the day's date string */
|
|
27
27
|
getDate() {
|
|
28
|
-
return
|
|
28
|
+
return index.dateFromYMDString(this.date);
|
|
29
29
|
}
|
|
30
30
|
/** Given a LiturgicalDay, returns a new LiturgicalDay that includes the feasts passed */
|
|
31
31
|
addHolyDays(holydays) {
|
|
@@ -65,7 +65,7 @@ class LiturgicalDay {
|
|
|
65
65
|
propers = slug;
|
|
66
66
|
}
|
|
67
67
|
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);
|
|
68
|
-
return new LiturgicalDay(Object.assign(Object.assign({}, this), { slug, propers: holy_day_is_observed && holy_day_rank > 2 ?
|
|
68
|
+
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.slug : propers, color,
|
|
69
69
|
season,
|
|
70
70
|
octave,
|
|
71
71
|
collect, holy_days: (this.holy_days || new Array()).concat(holydays), holy_day_observed: holy_day_is_observed ? observed : this.holy_day_observed }));
|
|
@@ -82,7 +82,7 @@ class LiturgicalDay {
|
|
|
82
82
|
else {
|
|
83
83
|
// if `day.date` is defined, used it to generate a date
|
|
84
84
|
// otherwise, use the current date
|
|
85
|
-
const date = day.date ?
|
|
85
|
+
const date = day.date ? index.dateFromYMDString(day.date) : index.dateOnly(new Date());
|
|
86
86
|
// Sundays => 4
|
|
87
87
|
if (date.getDay() == 0) {
|
|
88
88
|
return 4;
|
|
@@ -151,7 +151,7 @@ const LOCALE$2 = {
|
|
|
151
151
|
};
|
|
152
152
|
const DayNameComponent = class {
|
|
153
153
|
constructor(hostRef) {
|
|
154
|
-
index.registerInstance(this, hostRef);
|
|
154
|
+
index$1.registerInstance(this, hostRef);
|
|
155
155
|
}
|
|
156
156
|
dayChange(newDay) {
|
|
157
157
|
let provisionalObj;
|
|
@@ -188,11 +188,11 @@ const DayNameComponent = class {
|
|
|
188
188
|
// Holy Day => name of day
|
|
189
189
|
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) {
|
|
190
190
|
return !day.holy_day_observed.bio
|
|
191
|
-
? [index.h("p", { class: "holy-day-name" }, (_d = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _d === void 0 ? void 0 : _d.name), ((_e = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _e === void 0 ? void 0 : _e.subtitle) ? index.h("p", { class: "holy-day-subtitle" }, day.holy_day_observed.subtitle) : undefined]
|
|
192
|
-
: index.h("details", null, index.h("summary", null, day.holy_day_observed.name), index.h("ldf-text", { doc: new text.Text({ type: "text", style: "text", value: day.holy_day_observed.bio }) }));
|
|
191
|
+
? [index$1.h("p", { class: "holy-day-name" }, (_d = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _d === void 0 ? void 0 : _d.name), ((_e = day === null || day === void 0 ? void 0 : day.holy_day_observed) === null || _e === void 0 ? void 0 : _e.subtitle) ? index$1.h("p", { class: "holy-day-subtitle" }, day.holy_day_observed.subtitle) : undefined]
|
|
192
|
+
: index$1.h("details", null, index$1.h("summary", null, day.holy_day_observed.name), index$1.h("ldf-text", { doc: new text.Text({ type: "text", style: "text", value: day.holy_day_observed.bio }) }));
|
|
193
193
|
}
|
|
194
194
|
else {
|
|
195
|
-
const date =
|
|
195
|
+
const date = index.dateFromYMDString(day === null || day === void 0 ? void 0 : day.date), locale = ((_g = (_f = this.el) === null || _f === void 0 ? void 0 : _f.closest('[lang]')) === null || _g === void 0 ? void 0 : _g.lang) || 'en';
|
|
196
196
|
// Sunday => name of week
|
|
197
197
|
if (date.getDay() == 0) {
|
|
198
198
|
const the = localeStrings.the || ' the ';
|
|
@@ -216,16 +216,16 @@ const DayNameComponent = class {
|
|
|
216
216
|
render() {
|
|
217
217
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
218
218
|
const 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'];
|
|
219
|
-
return (index.h(index.Host, null, this.localeStrings && this.dayToNodes(this.obj, this.localeStrings), image && imageUrl && index.h("a", { href: imageUrl, target: "_system" }, index.h("img", { class: "icon", src: image })), image && !imageUrl && index.h("img", { class: "icon", src: image })));
|
|
219
|
+
return (index$1.h(index$1.Host, null, this.localeStrings && this.dayToNodes(this.obj, this.localeStrings), image && imageUrl && index$1.h("a", { href: imageUrl, target: "_system" }, index$1.h("img", { class: "icon", src: image })), image && !imageUrl && index$1.h("img", { class: "icon", src: image })));
|
|
220
220
|
}
|
|
221
|
-
get el() { return index.getElement(this); }
|
|
221
|
+
get el() { return index$1.getElement(this); }
|
|
222
222
|
static get watchers() { return {
|
|
223
223
|
"day": ["dayChange"]
|
|
224
224
|
}; }
|
|
225
225
|
};
|
|
226
226
|
DayNameComponent.style = dayNameCss;
|
|
227
227
|
|
|
228
|
-
const EditableNode = ({ uidOrSlug, path, text, index
|
|
228
|
+
const EditableNode = ({ uidOrSlug, path, text, index, bodyText }) => index$1.h("ldf-editable-text", { class: { 'body-text': bodyText }, id: `${uidOrSlug}-heading-${index}`, text: text, path: `${path}/value/${index}`, short: true, inputType: "text" });
|
|
229
229
|
|
|
230
230
|
const date = "The Date of the Liturgy";
|
|
231
231
|
const day = "The Name of the Liturgical Day";
|
|
@@ -241,7 +241,7 @@ const LOCALE$1 = {
|
|
|
241
241
|
};
|
|
242
242
|
const HeadingComponent = class {
|
|
243
243
|
constructor(hostRef) {
|
|
244
|
-
index.registerInstance(this, hostRef);
|
|
244
|
+
index$1.registerInstance(this, hostRef);
|
|
245
245
|
}
|
|
246
246
|
docChanged(newDoc) {
|
|
247
247
|
try {
|
|
@@ -275,52 +275,52 @@ const HeadingComponent = class {
|
|
|
275
275
|
let node;
|
|
276
276
|
switch (level) {
|
|
277
277
|
case 1:
|
|
278
|
-
node = index.h("h1", null, contentNode);
|
|
278
|
+
node = index$1.h("h1", null, contentNode);
|
|
279
279
|
break;
|
|
280
280
|
case 2:
|
|
281
|
-
node = index.h("h2", null, contentNode);
|
|
281
|
+
node = index$1.h("h2", null, contentNode);
|
|
282
282
|
break;
|
|
283
283
|
case 3:
|
|
284
|
-
node = index.h("h3", { slot: 'start' }, contentNode);
|
|
284
|
+
node = index$1.h("h3", { slot: 'start' }, contentNode);
|
|
285
285
|
break;
|
|
286
286
|
case 4:
|
|
287
|
-
node = index.h("h4", { slot: 'start' }, contentNode);
|
|
287
|
+
node = index$1.h("h4", { slot: 'start' }, contentNode);
|
|
288
288
|
break;
|
|
289
289
|
case 5:
|
|
290
|
-
node = index.h("h5", { slot: 'start' }, contentNode);
|
|
290
|
+
node = index$1.h("h5", { slot: 'start' }, contentNode);
|
|
291
291
|
break;
|
|
292
292
|
default:
|
|
293
|
-
node = index.h("h6", null, contentNode);
|
|
293
|
+
node = index$1.h("h6", null, contentNode);
|
|
294
294
|
}
|
|
295
295
|
return display && node;
|
|
296
296
|
}
|
|
297
|
-
textNode(text, index
|
|
297
|
+
textNode(text, index, bodyText) {
|
|
298
298
|
return this.editable
|
|
299
|
-
? index.h(EditableNode, { uidOrSlug: this.obj.uid || this.obj.slug || '', path: this.path, text: text, index: index
|
|
300
|
-
: index.h("ldf-string", { text: text, fragment: this.path });
|
|
299
|
+
? index$1.h(EditableNode, { uidOrSlug: this.obj.uid || this.obj.slug || '', path: this.path, text: text, index: index, bodyText: Boolean(bodyText) })
|
|
300
|
+
: index$1.h("ldf-string", { text: text, fragment: this.path });
|
|
301
301
|
}
|
|
302
302
|
dateNode() {
|
|
303
303
|
var _a, _b, _c, _d, _e, _f;
|
|
304
304
|
const hasDate = !!((_b = (_a = this.obj) === null || _a === void 0 ? void 0 : _a.day) === null || _b === void 0 ? void 0 : _b.date);
|
|
305
305
|
if (hasDate) {
|
|
306
|
-
const date =
|
|
307
|
-
return index.h("div", { class: "date" }, date.toLocaleDateString(locale, { year: 'numeric', month: 'long', day: 'numeric' }));
|
|
306
|
+
const date = index.dateFromYMDString((_d = (_c = this.obj) === null || _c === void 0 ? void 0 : _c.day) === null || _d === void 0 ? void 0 : _d.date), locale = ((_f = (_e = this.element) === null || _e === void 0 ? void 0 : _e.closest('[lang]')) === null || _f === void 0 ? void 0 : _f.lang) || 'en';
|
|
307
|
+
return index$1.h("div", { class: "date" }, date.toLocaleDateString(locale, { year: 'numeric', month: 'long', day: 'numeric' }));
|
|
308
308
|
}
|
|
309
309
|
else {
|
|
310
310
|
return [];
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
citationNode(c, slot = 'end') {
|
|
314
|
-
return (index.h("div", { class: 'citation', slot: slot }, this.editable ?
|
|
315
|
-
index.h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-citation`, text: c, path: `${this.path}/citation` }) :
|
|
314
|
+
return (index$1.h("div", { class: 'citation', slot: slot }, this.editable ?
|
|
315
|
+
index$1.h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-citation`, text: c, path: `${this.path}/citation` }) :
|
|
316
316
|
c));
|
|
317
317
|
}
|
|
318
318
|
sourceNode(c) {
|
|
319
319
|
const text = new Citation(c).toString().replace('bcp1979', 'BCP');
|
|
320
|
-
return (index.h("div", { slot: 'end', class: 'source' }, this.editable ?
|
|
320
|
+
return (index$1.h("div", { slot: 'end', class: 'source' }, this.editable ?
|
|
321
321
|
[
|
|
322
|
-
index.h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-source-source`, text: c === null || c === void 0 ? void 0 : c.source, path: `${this.path}/source/source` }),
|
|
323
|
-
index.h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-source-citation`, text: c === null || c === void 0 ? void 0 : c.citation, path: `${this.path}/source/citation` }),
|
|
322
|
+
index$1.h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-source-source`, text: c === null || c === void 0 ? void 0 : c.source, path: `${this.path}/source/source` }),
|
|
323
|
+
index$1.h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-source-citation`, text: c === null || c === void 0 ? void 0 : c.citation, path: `${this.path}/source/citation` }),
|
|
324
324
|
] :
|
|
325
325
|
text));
|
|
326
326
|
}
|
|
@@ -330,13 +330,13 @@ const HeadingComponent = class {
|
|
|
330
330
|
const localeStrings = this.localeStrings || {};
|
|
331
331
|
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);
|
|
332
332
|
// Render
|
|
333
|
-
return (index.h(index.Host, { lang: ((_g = this.obj) === null || _g === void 0 ? void 0 : _g.language) || 'en' }, this.editable && index.h("ldf-label-bar", null, index.h("slot", { slot: 'end', name: 'controls' })), index.h("ldf-label-bar", { center: ((_j = (_h = this.obj) === null || _h === void 0 ? void 0 : _h.metadata) === null || _j === void 0 ? void 0 : _j.level) <= 2, class: {
|
|
333
|
+
return (index$1.h(index$1.Host, { lang: ((_g = this.obj) === null || _g === void 0 ? void 0 : _g.language) || 'en' }, this.editable && index$1.h("ldf-label-bar", null, index$1.h("slot", { slot: 'end', name: 'controls' })), index$1.h("ldf-label-bar", { center: ((_j = (_h = this.obj) === null || _h === void 0 ? void 0 : _h.metadata) === null || _j === void 0 ? void 0 : _j.level) <= 2, class: {
|
|
334
334
|
'text': isText && (((_k = this === null || this === void 0 ? void 0 : this.obj) === null || _k === void 0 ? void 0 : _k.value) || []).filter(n => Boolean(n)).length > 0
|
|
335
|
-
} }, isText && ((_m = (_l = this.obj) === null || _l === void 0 ? void 0 : _l.value) === null || _m === void 0 ? void 0 : _m.length) > 0 && this.headerNode(level, this.textNode(this.obj.value[0], 0), true), isDate && !this.editable && this.dateNode(), isDate && this.editable && index.h("code", { class: "lookup" }, localeStrings.date), isDay && !this.editable && index.h("div", { class: "date" }, index.h("ldf-day-name", { day: (_o = this.obj) === null || _o === void 0 ? void 0 : _o.day })), isDay && !this.editable && ((_r = (_q = (_p = this.obj) === null || _p === void 0 ? void 0 : _p.day) === null || _q === void 0 ? void 0 : _q.holy_days) === null || _r === void 0 ? void 0 : _r.length) > 0 && index.h("ul", { class: "holy-days" }, (_t = (_s = this.obj) === null || _s === void 0 ? void 0 : _s.day) === null || _t === void 0 ? void 0 : _t.holy_days.filter(day => { var _a; return ((_a = day.type) === null || _a === void 0 ? void 0 : _a.rank) < 3; }).map(day => day.bio
|
|
336
|
-
? index.h("li", { class: "holy-day" }, index.h("details", null, index.h("summary", null, day.name), index.h("ldf-text", { doc: new text.Text({ type: "text", style: "text", value: day.bio }) })))
|
|
337
|
-
: index.h("li", { class: "holy-day" }, day.name))), isDay && this.editable && index.h("code", { class: "lookup" }, localeStrings.day), ((_v = (_u = this.obj) === null || _u === void 0 ? void 0 : _u.value) === null || _v === void 0 ? void 0 : _v.length) > 1 && this.textNode(this.obj.value[1], 1), index.h("slot", { name: 'additional' }), index.h("slot", { name: 'citation', slot: 'end' }, hasSource && this.sourceNode(this.obj.source), hasCitation && !hasSource && this.obj.citation !== this.obj.label && this.obj.citation !== this.obj.value[0] && this.citationNode(this.obj.citation))), index.h("div", null, hasSource && hasCitation && this.obj.citation !== this.obj.label && this.citationNode(this.obj.citation, 'none')), ((_x = (_w = this.obj) === null || _w === void 0 ? void 0 : _w.value) === null || _x === void 0 ? void 0 : _x.length) > 2 && this.obj.value.slice(2, this.obj.value.length).map((text, index) => this.textNode(text, index + 2, true))));
|
|
335
|
+
} }, isText && ((_m = (_l = this.obj) === null || _l === void 0 ? void 0 : _l.value) === null || _m === void 0 ? void 0 : _m.length) > 0 && this.headerNode(level, this.textNode(this.obj.value[0], 0), true), isDate && !this.editable && this.dateNode(), isDate && this.editable && index$1.h("code", { class: "lookup" }, localeStrings.date), isDay && !this.editable && index$1.h("div", { class: "date" }, index$1.h("ldf-day-name", { day: (_o = this.obj) === null || _o === void 0 ? void 0 : _o.day })), isDay && !this.editable && ((_r = (_q = (_p = this.obj) === null || _p === void 0 ? void 0 : _p.day) === null || _q === void 0 ? void 0 : _q.holy_days) === null || _r === void 0 ? void 0 : _r.length) > 0 && index$1.h("ul", { class: "holy-days" }, (_t = (_s = this.obj) === null || _s === void 0 ? void 0 : _s.day) === null || _t === void 0 ? void 0 : _t.holy_days.filter(day => { var _a; return ((_a = day.type) === null || _a === void 0 ? void 0 : _a.rank) < 3; }).map(day => day.bio
|
|
336
|
+
? index$1.h("li", { class: "holy-day" }, index$1.h("details", null, index$1.h("summary", null, day.name), index$1.h("ldf-text", { doc: new text.Text({ type: "text", style: "text", value: day.bio }) })))
|
|
337
|
+
: index$1.h("li", { class: "holy-day" }, day.name))), isDay && this.editable && index$1.h("code", { class: "lookup" }, localeStrings.day), ((_v = (_u = this.obj) === null || _u === void 0 ? void 0 : _u.value) === null || _v === void 0 ? void 0 : _v.length) > 1 && this.textNode(this.obj.value[1], 1), index$1.h("slot", { name: 'additional' }), index$1.h("slot", { name: 'citation', slot: 'end' }, hasSource && this.sourceNode(this.obj.source), hasCitation && !hasSource && this.obj.citation !== this.obj.label && this.obj.citation !== this.obj.value[0] && this.citationNode(this.obj.citation))), index$1.h("div", null, hasSource && hasCitation && this.obj.citation !== this.obj.label && this.citationNode(this.obj.citation, 'none')), ((_x = (_w = this.obj) === null || _w === void 0 ? void 0 : _w.value) === null || _x === void 0 ? void 0 : _x.length) > 2 && this.obj.value.slice(2, this.obj.value.length).map((text, index) => this.textNode(text, index + 2, true))));
|
|
338
338
|
}
|
|
339
|
-
get element() { return index.getElement(this); }
|
|
339
|
+
get element() { return index$1.getElement(this); }
|
|
340
340
|
static get watchers() { return {
|
|
341
341
|
"doc": ["docChanged"]
|
|
342
342
|
}; }
|
|
@@ -347,16 +347,16 @@ const labelBarCss = ".label-bar{display:flex;flex-direction:row;flex-wrap:wrap;a
|
|
|
347
347
|
|
|
348
348
|
const LabelBarComponent = class {
|
|
349
349
|
constructor(hostRef) {
|
|
350
|
-
index.registerInstance(this, hostRef);
|
|
350
|
+
index$1.registerInstance(this, hostRef);
|
|
351
351
|
this.center = false;
|
|
352
352
|
}
|
|
353
353
|
// Render
|
|
354
354
|
render() {
|
|
355
355
|
if (this.center) {
|
|
356
|
-
return (index.h("div", { class: 'label-bar center' }, index.h("slot", { name: 'start' }), index.h("slot", null), index.h("slot", { name: 'end' })));
|
|
356
|
+
return (index$1.h("div", { class: 'label-bar center' }, index$1.h("slot", { name: 'start' }), index$1.h("slot", null), index$1.h("slot", { name: 'end' })));
|
|
357
357
|
}
|
|
358
358
|
else {
|
|
359
|
-
return (index.h("div", { class: 'label-bar left' }, index.h("slot", { name: 'start' }), index.h("slot", null), index.h("slot", { name: 'end' })));
|
|
359
|
+
return (index$1.h("div", { class: 'label-bar left' }, index$1.h("slot", { name: 'start' }), index$1.h("slot", null), index$1.h("slot", { name: 'end' })));
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
};
|
|
@@ -366,8 +366,8 @@ const stringCss = "span.sc-ldf-string{font-family:var(--ldf-font-face);font-weig
|
|
|
366
366
|
|
|
367
367
|
const StringComponent = class {
|
|
368
368
|
constructor(hostRef) {
|
|
369
|
-
index.registerInstance(this, hostRef);
|
|
370
|
-
this.ldfStringClicked = index.createEvent(this, "ldfStringClicked", 7);
|
|
369
|
+
index$1.registerInstance(this, hostRef);
|
|
370
|
+
this.ldfStringClicked = index$1.createEvent(this, "ldfStringClicked", 7);
|
|
371
371
|
/**
|
|
372
372
|
* Enable, disable, or force dropcap on the first letter of the text.
|
|
373
373
|
*/
|
|
@@ -418,14 +418,14 @@ const StringComponent = class {
|
|
|
418
418
|
return '';
|
|
419
419
|
}
|
|
420
420
|
else if ((node.startsWith('*') && node.endsWith('*')) || node.startsWith('%') && node.endsWith('%')) {
|
|
421
|
-
return index.h("em", null, node.slice(1, node.length - 1));
|
|
421
|
+
return index$1.h("em", null, node.slice(1, node.length - 1));
|
|
422
422
|
}
|
|
423
423
|
else if (node.startsWith('^') && node.endsWith('^')) {
|
|
424
424
|
if (this.maintainCasing(node)) {
|
|
425
425
|
return node.replace(/\^/g, '');
|
|
426
426
|
}
|
|
427
427
|
else {
|
|
428
|
-
return index.h("span", { class: "sc" }, node[1], node.slice(2, node.length - 1).toLowerCase());
|
|
428
|
+
return index$1.h("span", { class: "sc" }, node[1], node.slice(2, node.length - 1).toLowerCase());
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
else {
|
|
@@ -437,20 +437,20 @@ const StringComponent = class {
|
|
|
437
437
|
processTetragrammaton(s) {
|
|
438
438
|
if (s) {
|
|
439
439
|
const replacements = {
|
|
440
|
-
'\n': () => index.h("br", null),
|
|
440
|
+
'\n': () => index$1.h("br", null),
|
|
441
441
|
'’S': () => '’s',
|
|
442
442
|
'\'S': () => '’s',
|
|
443
443
|
'LORD’S': () => 'LORD’s',
|
|
444
444
|
"LORD'S": () => 'LORD’s',
|
|
445
|
-
'LORD': () => index.h("span", { class: "sc" }, "Lord"),
|
|
446
|
-
'Lord GOD': () => index.h("span", null, "Lord ", index.h("span", { class: "sc" }, "God")),
|
|
447
|
-
'GOD': () => index.h("span", { class: "sc" }, "God"),
|
|
448
|
-
'YHWH': () => index.h("span", { class: "sc" }, "Yhwh"),
|
|
449
|
-
'Yhwh': () => index.h("span", { class: "sc" }, "Yhwh"),
|
|
450
|
-
'YAHWEH': () => index.h("span", { class: "sc" }, "Yhwh"),
|
|
451
|
-
'Yahweh': () => index.h("span", { class: "sc" }, "Yhwh"),
|
|
452
|
-
'\t': () => index.h("span", { class: 'tab' }, "\u00A0"),
|
|
453
|
-
' ': () => index.h("span", { class: 'half-tab' }, "\u00A0")
|
|
445
|
+
'LORD': () => index$1.h("span", { class: "sc" }, "Lord"),
|
|
446
|
+
'Lord GOD': () => index$1.h("span", null, "Lord ", index$1.h("span", { class: "sc" }, "God")),
|
|
447
|
+
'GOD': () => index$1.h("span", { class: "sc" }, "God"),
|
|
448
|
+
'YHWH': () => index$1.h("span", { class: "sc" }, "Yhwh"),
|
|
449
|
+
'Yhwh': () => index$1.h("span", { class: "sc" }, "Yhwh"),
|
|
450
|
+
'YAHWEH': () => index$1.h("span", { class: "sc" }, "Yhwh"),
|
|
451
|
+
'Yahweh': () => index$1.h("span", { class: "sc" }, "Yhwh"),
|
|
452
|
+
'\t': () => index$1.h("span", { class: 'tab' }, "\u00A0"),
|
|
453
|
+
' ': () => index$1.h("span", { class: 'half-tab' }, "\u00A0")
|
|
454
454
|
};
|
|
455
455
|
const split = s.split(/(( )|\n|LORD[\'’]S|[\'’]S|LORD|Lord GOD|GOD|YHWH|YAHWEH|Yhwh|Yahweh|\t)/g);
|
|
456
456
|
return split.map(phrase => replacements.hasOwnProperty(phrase) ? replacements[phrase]() : phrase);
|
|
@@ -484,7 +484,7 @@ const StringComponent = class {
|
|
|
484
484
|
: /^ ?([\"\'“”‘’\!\?\[\]\(\)\,\wñáéíóú\u0590-\u05ff\u0370-\u03ff])([\wñáéíóú\u0590-\u05ff\u0370-\u03ff\,]*[\s.!?]*[\wñáéíóú\u0590-\u05ff\u0370-\u03ff]*)/, reIncludingPunctuation = ((_a = firstWord[0]) === null || _a === void 0 ? void 0 : _a.match(/[\"\'“”‘’\!\?\[\]\(\)]/))
|
|
485
485
|
? /^ ?([\"\'“”‘’\!\?\[\]\(\)\,\wñáéíóú\u0590-\u05ff\u0370-\u03ff]{2})\s*([\wñáéíóú\u0590-\u05ff\u0370-\u03ff]*)/
|
|
486
486
|
: re, buffer = firstWord.length == 1, split = firstChunk.split(reIncludingPunctuation).filter(s => s !== ''), [match1, match2, nextWord] = split;
|
|
487
|
-
final = new Array(index.h("span", { class: 'firstword' }, index.h("span", { class: buffer ? `drop buffered-drop drop-${match1}` : `drop drop-${match1}` }, match1), this.maintainCasing(match2) ? match2 : match2 === null || match2 === void 0 ? void 0 : match2.toLowerCase()))
|
|
487
|
+
final = new Array(index$1.h("span", { class: 'firstword' }, index$1.h("span", { class: buffer ? `drop buffered-drop drop-${match1}` : `drop drop-${match1}` }, match1), this.maintainCasing(match2) ? match2 : match2 === null || match2 === void 0 ? void 0 : match2.toLowerCase()))
|
|
488
488
|
.concat(nextWord)
|
|
489
489
|
.concat(processed.slice(1));
|
|
490
490
|
}
|
|
@@ -496,9 +496,9 @@ const StringComponent = class {
|
|
|
496
496
|
}
|
|
497
497
|
// Render
|
|
498
498
|
render() {
|
|
499
|
-
return this.text && index.h("span", { onClick: () => this.ldfStringClicked.emit({ target: this.element, text: this.text, citation: this.citation, fragment: this.fragment }) }, this.processedString);
|
|
499
|
+
return this.text && index$1.h("span", { onClick: () => this.ldfStringClicked.emit({ target: this.element, text: this.text, citation: this.citation, fragment: this.fragment }) }, this.processedString);
|
|
500
500
|
}
|
|
501
|
-
get element() { return index.getElement(this); }
|
|
501
|
+
get element() { return index$1.getElement(this); }
|
|
502
502
|
static get watchers() { return {
|
|
503
503
|
"text": ["textChanged"]
|
|
504
504
|
}; }
|
|
@@ -5556,15 +5556,17 @@ const EN = {
|
|
|
5556
5556
|
authorized_prayers: authorized_prayers,
|
|
5557
5557
|
label: label,
|
|
5558
5558
|
source: source,
|
|
5559
|
-
source_citation: source_citation
|
|
5559
|
+
source_citation: source_citation,
|
|
5560
|
+
"prayer-list": "Prayer List"
|
|
5560
5561
|
};
|
|
5561
5562
|
|
|
5562
5563
|
const amen = "Amén.";
|
|
5563
5564
|
const ES = {
|
|
5564
|
-
amen: amen
|
|
5565
|
+
amen: amen,
|
|
5566
|
+
"prayer-list": "Oraciones"
|
|
5565
5567
|
};
|
|
5566
5568
|
|
|
5567
|
-
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)}";
|
|
5569
|
+
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}";
|
|
5568
5570
|
|
|
5569
5571
|
const LOCALE = {
|
|
5570
5572
|
'en': EN,
|
|
@@ -5572,10 +5574,18 @@ const LOCALE = {
|
|
|
5572
5574
|
};
|
|
5573
5575
|
const TextComponent = class {
|
|
5574
5576
|
constructor(hostRef) {
|
|
5575
|
-
index.registerInstance(this, hostRef);
|
|
5576
|
-
this.ldfDocShouldChange = index.createEvent(this, "ldfDocShouldChange", 7);
|
|
5577
|
+
index$1.registerInstance(this, hostRef);
|
|
5578
|
+
this.ldfDocShouldChange = index$1.createEvent(this, "ldfDocShouldChange", 7);
|
|
5579
|
+
this.ldfAskForPrayerList = index$1.createEvent(this, "ldfAskForPrayerList", 7);
|
|
5580
|
+
// prayer list for authorized prayers
|
|
5581
|
+
this.intentions = [];
|
|
5582
|
+
}
|
|
5583
|
+
async setPrayerList(intentions) {
|
|
5584
|
+
console.log("(PrayerList) setPrayerList", intentions);
|
|
5585
|
+
this.intentions = intentions;
|
|
5577
5586
|
}
|
|
5578
5587
|
docChanged(newDoc) {
|
|
5588
|
+
var _a;
|
|
5579
5589
|
try {
|
|
5580
5590
|
if (typeof newDoc == 'string') {
|
|
5581
5591
|
this.obj = new text.Text(JSON.parse(newDoc));
|
|
@@ -5583,6 +5593,10 @@ const TextComponent = class {
|
|
|
5583
5593
|
else {
|
|
5584
5594
|
this.obj = new text.Text(newDoc);
|
|
5585
5595
|
}
|
|
5596
|
+
if (((_a = this.obj) === null || _a === void 0 ? void 0 : _a.style) == "authorized-prayers") {
|
|
5597
|
+
console.log("(PrayerList) ldfAskForPrayerList");
|
|
5598
|
+
this.ldfAskForPrayerList.emit(true);
|
|
5599
|
+
}
|
|
5586
5600
|
}
|
|
5587
5601
|
catch (e) {
|
|
5588
5602
|
console.warn(e);
|
|
@@ -5626,49 +5640,49 @@ const TextComponent = class {
|
|
|
5626
5640
|
}
|
|
5627
5641
|
// Render
|
|
5628
5642
|
render() {
|
|
5629
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5;
|
|
5643
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7;
|
|
5630
5644
|
const localeStrings = this.localeStrings || {};
|
|
5631
5645
|
/** `authorized-prayer` type */
|
|
5632
5646
|
if (((_a = this.obj) === null || _a === void 0 ? void 0 : _a.style) === 'authorized-prayers') {
|
|
5633
|
-
const splits = this.path.split('/'), index
|
|
5634
|
-
return index.h("ldf-label-bar", null, index.h("ion-button", { onClick: () => this.addPAndT(base, index
|
|
5647
|
+
const splits = this.path.split('/'), index = Number(splits[splits.length - 1]), base = splits.slice(0, splits.length - 1).join('/');
|
|
5648
|
+
return index$1.h(index$1.Host, null, index$1.h("ldf-label-bar", null, index$1.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 : index$1.h("strong", { class: "prayer-list" }, localeStrings['prayer-list']), index$1.h("ul", { class: "prayer-list" }, (this.intentions || []).map(intention => index$1.h("li", null, intention))));
|
|
5635
5649
|
}
|
|
5636
5650
|
else {
|
|
5637
|
-
let value = ((
|
|
5638
|
-
? (((
|
|
5639
|
-
: (((
|
|
5651
|
+
let value = ((_e = (_d = this.obj) === null || _d === void 0 ? void 0 : _d.metadata) === null || _e === void 0 ? void 0 : _e.rollup)
|
|
5652
|
+
? (((_f = this.obj) === null || _f === void 0 ? void 0 : _f.value) || []).map(s => s.replace(/\s+/g, ' '))
|
|
5653
|
+
: (((_g = this.obj) === null || _g === void 0 ? void 0 : _g.value) || []);
|
|
5640
5654
|
let compiledValue = value.map(s => {
|
|
5641
5655
|
return s.split(/([\*\w\n\s,:;\.\-–—'“☩✠”‘’\!\?”\[\]\%\(\)\/\u0041-\u024F]+([^\*\w\n\s,;:\.'“”☩✠‘’”\-–—\!\?\[\]\%\(\)\/\u0041-\u024F]))/g);
|
|
5642
5656
|
});
|
|
5643
|
-
if (!this.editable && ((
|
|
5657
|
+
if (!this.editable && ((_h = this.obj) === null || _h === void 0 ? void 0 : _h.display_format) === 'abbreviated') {
|
|
5644
5658
|
const firstSection = compiledValue[0], lastSection = compiledValue[compiledValue.length - 1];
|
|
5645
5659
|
const firstChunk = this.truncate(firstSection[0]), lastChunk = this.truncate(lastSection[lastSection.length - 1], true);
|
|
5646
5660
|
compiledValue = [[firstChunk], [lastChunk]];
|
|
5647
5661
|
}
|
|
5648
5662
|
if (this.editable) {
|
|
5649
|
-
return (index.h(index.Host, { lang: this.obj.language }, index.h("ldf-label-bar", null, index.h("slot", { slot: 'end', name: 'controls' })), !this.editable && index.h("ldf-heading", { path: `${this.path}/label`, doc: new heading.Heading({ type: 'heading', metadata: { level: 3 }, value: [this.obj.label], citation: this.obj.citation, source: this.obj.source }) }), this.editable && index.h("ldf-label-bar", null, !((
|
|
5663
|
+
return (index$1.h(index$1.Host, { lang: this.obj.language }, index$1.h("ldf-label-bar", null, index$1.h("slot", { slot: 'end', name: 'controls' })), !this.editable && index$1.h("ldf-heading", { path: `${this.path}/label`, doc: new heading.Heading({ type: 'heading', metadata: { level: 3 }, value: [this.obj.label], citation: this.obj.citation, source: this.obj.source }) }), this.editable && index$1.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) && index$1.h("h3", { class: "editable-label", slot: "start" }, index$1.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` })), index$1.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 }), index$1.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 })), index$1.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) => index$1.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))) && index$1.h("span", { class: 'response' }, index$1.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 })))));
|
|
5650
5664
|
}
|
|
5651
5665
|
else {
|
|
5652
5666
|
/** `markdown` types */
|
|
5653
|
-
if (((
|
|
5667
|
+
if (((_z = this.obj) === null || _z === void 0 ? void 0 : _z.style) === 'markdown') {
|
|
5654
5668
|
const converter = new showdown.Converter();
|
|
5655
|
-
return (((
|
|
5669
|
+
return (((_0 = this.obj) === null || _0 === void 0 ? void 0 : _0.value) || []).map(value => index$1.h("div", { innerHTML: converter.makeHtml(value) }));
|
|
5656
5670
|
}
|
|
5657
5671
|
/** `text` and `prayer` types */
|
|
5658
5672
|
else {
|
|
5659
|
-
return (index.h("div", { lang: ((
|
|
5673
|
+
return (index$1.h("div", { lang: ((_1 = this.obj) === null || _1 === void 0 ? void 0 : _1.language) || 'en', class: `text ${((_2 = this.obj) === null || _2 === void 0 ? void 0 : _2.display_format) || 'default'}` }, ((((_3 = this.obj) === null || _3 === void 0 ? void 0 : _3.label) && !((_5 = (_4 = this.obj) === null || _4 === void 0 ? void 0 : _4.metadata) === null || _5 === void 0 ? void 0 : _5.omit_label)) || ((_6 = this.obj) === null || _6 === void 0 ? void 0 : _6.citation)) && index$1.h("ldf-heading", { path: this.path, doc: new heading.Heading({ type: 'heading', metadata: { level: 3 }, value: [((_7 = this.obj.metadata) === null || _7 === void 0 ? void 0 : _7.omit_label) ? '' : this.obj.label], citation: this.obj.citation, source: this.obj.source }) }), compiledValue.map((prayer, prayerIndex) => {
|
|
5660
5674
|
var _a, _b, _c, _d;
|
|
5661
|
-
return index.h("p", { class: "text-body", id: `${this.obj.uid || this.obj.slug}-prayerIndex` }, prayer === null || prayer === void 0 ? void 0 :
|
|
5675
|
+
return index$1.h("p", { class: "text-body", id: `${this.obj.uid || this.obj.slug}-prayerIndex` }, prayer === null || prayer === void 0 ? void 0 :
|
|
5662
5676
|
prayer.map((chunk, chunkIndex) => {
|
|
5663
5677
|
var _a;
|
|
5664
|
-
return index.h("span", { id: `${this.obj.uid || this.obj.slug}-${prayerIndex}-${chunkIndex}` }, index.h("ldf-string", { text: chunk, citation: { label: this.obj.label }, dropcap: ((_a = this.obj) === null || _a === void 0 ? void 0 : _a.display_format) == "force_dropcap" && prayerIndex === 0 && chunkIndex === 0 ? "force" : (prayerIndex === 0 && chunkIndex <= 1 ? "enabled" : "disabled"), index: prayerIndex + chunkIndex, fragment: this.path }));
|
|
5665
|
-
}), ((_b = (_a = this.obj) === null || _a === void 0 ? void 0 : _a.metadata) === null || _b === void 0 ? void 0 : _b.response) && prayerIndex == compiledValue.length - 1 && index.h("span", { class: "response" }, " ", this.obj.metadata.response), !((_d = (_c = this.obj) === null || _c === void 0 ? void 0 : _c.metadata) === null || _d === void 0 ? void 0 : _d.response) && this.obj.style == 'prayer' && prayerIndex == compiledValue.length - 1 && index.h("span", { class: "response" }, " ", localeStrings.amen));
|
|
5678
|
+
return index$1.h("span", { id: `${this.obj.uid || this.obj.slug}-${prayerIndex}-${chunkIndex}` }, index$1.h("ldf-string", { text: chunk, citation: { label: this.obj.label }, dropcap: ((_a = this.obj) === null || _a === void 0 ? void 0 : _a.display_format) == "force_dropcap" && prayerIndex === 0 && chunkIndex === 0 ? "force" : (prayerIndex === 0 && chunkIndex <= 1 ? "enabled" : "disabled"), index: prayerIndex + chunkIndex, fragment: this.path }));
|
|
5679
|
+
}), ((_b = (_a = this.obj) === null || _a === void 0 ? void 0 : _a.metadata) === null || _b === void 0 ? void 0 : _b.response) && prayerIndex == compiledValue.length - 1 && index$1.h("span", { class: "response" }, " ", this.obj.metadata.response), !((_d = (_c = this.obj) === null || _c === void 0 ? void 0 : _c.metadata) === null || _d === void 0 ? void 0 : _d.response) && this.obj.style == 'prayer' && prayerIndex == compiledValue.length - 1 && index$1.h("span", { class: "response" }, " ", localeStrings.amen));
|
|
5666
5680
|
})));
|
|
5667
5681
|
}
|
|
5668
5682
|
}
|
|
5669
5683
|
}
|
|
5670
5684
|
}
|
|
5671
|
-
get element() { return index.getElement(this); }
|
|
5685
|
+
get element() { return index$1.getElement(this); }
|
|
5672
5686
|
static get watchers() { return {
|
|
5673
5687
|
"doc": ["docChanged"]
|
|
5674
5688
|
}; }
|
|
@@ -3,14 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-8fe0df8d.js');
|
|
6
|
-
const
|
|
7
|
-
const rubric$1 = require('./rubric-
|
|
8
|
-
const heading$1 = require('./heading-
|
|
9
|
-
const image$1 = require('./image-
|
|
10
|
-
const option$1 = require('./option-
|
|
11
|
-
const refrain$1 = require('./refrain-
|
|
12
|
-
const text$1 = require('./text-
|
|
6
|
+
const index$1 = require('./index-c9b940c7.js');
|
|
7
|
+
const rubric$1 = require('./rubric-ad2f926f.js');
|
|
8
|
+
const heading$1 = require('./heading-fae3ce98.js');
|
|
9
|
+
const image$1 = require('./image-41000c7b.js');
|
|
10
|
+
const option$1 = require('./option-6fb78f5c.js');
|
|
11
|
+
const refrain$1 = require('./refrain-f51fd88d.js');
|
|
12
|
+
const text$1 = require('./text-8d8d32e7.js');
|
|
13
13
|
const locale = require('./locale-d4e925b1.js');
|
|
14
|
+
require('./_commonjsHelpers-bcc1208a.js');
|
|
14
15
|
|
|
15
16
|
const MENU = [
|
|
16
17
|
{
|
|
@@ -335,7 +336,7 @@ const MENU = [
|
|
|
335
336
|
/* SVG is Font Awesome 'fa-praying-hands' */
|
|
336
337
|
icon: () => (index.h("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "praying-hands", class: "svg-inline--fa fa-praying-hands fa-w-20", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 640 512" },
|
|
337
338
|
index.h("path", { fill: "currentColor", d: "M272 191.91c-17.6 0-32 14.4-32 32v80c0 8.84-7.16 16-16 16s-16-7.16-16-16v-76.55c0-17.39 4.72-34.47 13.69-49.39l77.75-129.59c9.09-15.16 4.19-34.81-10.97-43.91-14.45-8.67-32.72-4.3-42.3 9.21-.2.23-.62.21-.79.48l-117.26 175.9C117.56 205.9 112 224.31 112 243.29v80.23l-90.12 30.04A31.974 31.974 0 0 0 0 383.91v96c0 10.82 8.52 32 32 32 2.69 0 5.41-.34 8.06-1.03l179.19-46.62C269.16 449.99 304 403.8 304 351.91v-128c0-17.6-14.4-32-32-32zm346.12 161.73L528 323.6v-80.23c0-18.98-5.56-37.39-16.12-53.23L394.62 14.25c-.18-.27-.59-.24-.79-.48-9.58-13.51-27.85-17.88-42.3-9.21-15.16 9.09-20.06 28.75-10.97 43.91l77.75 129.59c8.97 14.92 13.69 32 13.69 49.39V304c0 8.84-7.16 16-16 16s-16-7.16-16-16v-80c0-17.6-14.4-32-32-32s-32 14.4-32 32v128c0 51.89 34.84 98.08 84.75 112.34l179.19 46.62c2.66.69 5.38 1.03 8.06 1.03 23.48 0 32-21.18 32-32v-96c0-13.77-8.81-25.99-21.88-30.35z" }))),
|
|
338
|
-
template: [new
|
|
339
|
+
template: [new index$1.LiturgicalDocument({ type: 'text', style: 'prayer', value: [''] })]
|
|
339
340
|
},
|
|
340
341
|
{
|
|
341
342
|
label: 'authorized-prayers',
|
|
@@ -343,7 +344,7 @@ const MENU = [
|
|
|
343
344
|
/* SVG is Font Awesome 'fa-praying-hands' */
|
|
344
345
|
icon: () => (index.h("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "praying-hands", class: "svg-inline--fa fa-praying-hands fa-w-20", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 640 512" },
|
|
345
346
|
index.h("path", { fill: "currentColor", d: "M272 191.91c-17.6 0-32 14.4-32 32v80c0 8.84-7.16 16-16 16s-16-7.16-16-16v-76.55c0-17.39 4.72-34.47 13.69-49.39l77.75-129.59c9.09-15.16 4.19-34.81-10.97-43.91-14.45-8.67-32.72-4.3-42.3 9.21-.2.23-.62.21-.79.48l-117.26 175.9C117.56 205.9 112 224.31 112 243.29v80.23l-90.12 30.04A31.974 31.974 0 0 0 0 383.91v96c0 10.82 8.52 32 32 32 2.69 0 5.41-.34 8.06-1.03l179.19-46.62C269.16 449.99 304 403.8 304 351.91v-128c0-17.6-14.4-32-32-32zm346.12 161.73L528 323.6v-80.23c0-18.98-5.56-37.39-16.12-53.23L394.62 14.25c-.18-.27-.59-.24-.79-.48-9.58-13.51-27.85-17.88-42.3-9.21-15.16 9.09-20.06 28.75-10.97 43.91l77.75 129.59c8.97 14.92 13.69 32 13.69 49.39V304c0 8.84-7.16 16-16 16s-16-7.16-16-16v-80c0-17.6-14.4-32-32-32s-32 14.4-32 32v128c0 51.89 34.84 98.08 84.75 112.34l179.19 46.62c2.66.69 5.38 1.03 8.06 1.03 23.48 0 32-21.18 32-32v-96c0-13.77-8.81-25.99-21.88-30.35z" }))),
|
|
346
|
-
template: [new
|
|
347
|
+
template: [new index$1.LiturgicalDocument({ type: 'text', style: 'authorized-prayers' })]
|
|
347
348
|
},
|
|
348
349
|
{
|
|
349
350
|
label: 'preces',
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-8fe0df8d.js');
|
|
6
|
-
const
|
|
7
|
-
const change = require('./change-
|
|
6
|
+
const index$1 = require('./index-c9b940c7.js');
|
|
7
|
+
const change = require('./change-deff223a.js');
|
|
8
8
|
const locale = require('./locale-d4e925b1.js');
|
|
9
|
+
require('./_commonjsHelpers-bcc1208a.js');
|
|
9
10
|
|
|
10
11
|
//import { PROPERS } from './propers';
|
|
11
12
|
const WEEKDAYS = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
|
|
@@ -128,7 +129,7 @@ const EditableConditionComponent = class {
|
|
|
128
129
|
// Sets or clears one of the `Condition.___` fields (`season`, `day`, etc.)
|
|
129
130
|
toggleSubcondition(subcondition, active, template) {
|
|
130
131
|
if (active && this.workingCondition[subcondition] == undefined) {
|
|
131
|
-
this.workingCondition = new
|
|
132
|
+
this.workingCondition = new index$1.Condition(Object.assign(Object.assign({}, this.workingCondition), { [subcondition]: template }));
|
|
132
133
|
this.ldfDocShouldChange.emit(new change.Change({
|
|
133
134
|
path: `${this.path}/${subcondition}`,
|
|
134
135
|
op: [{
|
|
@@ -147,7 +148,7 @@ const EditableConditionComponent = class {
|
|
|
147
148
|
}]
|
|
148
149
|
}));
|
|
149
150
|
this.workingCondition[subcondition] = undefined;
|
|
150
|
-
this.workingCondition = new
|
|
151
|
+
this.workingCondition = new index$1.Condition(this.workingCondition);
|
|
151
152
|
}
|
|
152
153
|
}
|
|
153
154
|
toggleExceptOnly(field, subfield, value) {
|
|
@@ -175,7 +176,7 @@ const EditableConditionComponent = class {
|
|
|
175
176
|
}]
|
|
176
177
|
}));
|
|
177
178
|
}
|
|
178
|
-
this.workingCondition = new
|
|
179
|
+
this.workingCondition = new index$1.Condition(Object.assign({}, this.workingCondition));
|
|
179
180
|
}
|
|
180
181
|
setDateField(field, dateString) {
|
|
181
182
|
var _a;
|
|
@@ -192,7 +193,7 @@ const EditableConditionComponent = class {
|
|
|
192
193
|
preferenceIs(value) {
|
|
193
194
|
var _a, _b;
|
|
194
195
|
const oldValue = (_b = (_a = this.workingCondition) === null || _a === void 0 ? void 0 : _a.preference) === null || _b === void 0 ? void 0 : _b.is;
|
|
195
|
-
this.workingCondition = new
|
|
196
|
+
this.workingCondition = new index$1.Condition(Object.assign(Object.assign({}, this.workingCondition), { preference: Object.assign(Object.assign({}, this.workingCondition.preference), { is: value }) }));
|
|
196
197
|
this.ldfDocShouldChange.emit(new change.Change({
|
|
197
198
|
path: `${this.path}/preference`,
|
|
198
199
|
op: [{
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-8fe0df8d.js');
|
|
6
|
-
const
|
|
7
|
-
const change = require('./change-
|
|
6
|
+
const index$1 = require('./index-c9b940c7.js');
|
|
7
|
+
const change = require('./change-deff223a.js');
|
|
8
8
|
const locale = require('./locale-d4e925b1.js');
|
|
9
|
+
require('./_commonjsHelpers-bcc1208a.js');
|
|
9
10
|
|
|
10
11
|
const addCondition = "Add a Condition";
|
|
11
12
|
const and = "All of the following are true";
|
|
@@ -80,11 +81,11 @@ const EditableConditionComponent = class {
|
|
|
80
81
|
}));
|
|
81
82
|
}
|
|
82
83
|
// add to the array
|
|
83
|
-
this.currentCondition = Object.assign(Object.assign({}, this.currentCondition), { conditions: this.currentCondition.conditions.concat(new
|
|
84
|
+
this.currentCondition = Object.assign(Object.assign({}, this.currentCondition), { conditions: this.currentCondition.conditions.concat(new index$1.Condition()) });
|
|
84
85
|
const index = this.currentCondition.conditions.length - 1;
|
|
85
86
|
this.ldfDocShouldChange.emit(new change.Change({
|
|
86
87
|
path: `${this.path}/conditions`,
|
|
87
|
-
op: [{ type: 'insertAt', index: index < 0 ? 0 : index, value: new
|
|
88
|
+
op: [{ type: 'insertAt', index: index < 0 ? 0 : index, value: new index$1.Condition() }]
|
|
88
89
|
}));
|
|
89
90
|
}
|
|
90
91
|
render() {
|
|
@@ -2,16 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-8fe0df8d.js');
|
|
6
|
-
const
|
|
7
|
-
const option = require('./option-
|
|
5
|
+
const index$1 = require('./index-8fe0df8d.js');
|
|
6
|
+
const index = require('./index-c9b940c7.js');
|
|
7
|
+
const option = require('./option-6fb78f5c.js');
|
|
8
8
|
const locale = require('./locale-d4e925b1.js');
|
|
9
|
+
require('./_commonjsHelpers-bcc1208a.js');
|
|
9
10
|
|
|
10
11
|
/* Converts a list of documents into a single document showing options in parallel */
|
|
11
12
|
function docsToOption(d, versions = undefined) {
|
|
12
13
|
if (Array.isArray(d)) {
|
|
13
14
|
// remove duplicates if literally same JSON
|
|
14
|
-
const docs = Array.from(new Set(d.map((doc) => JSON.stringify(doc)))).map((doc) => new
|
|
15
|
+
const docs = Array.from(new Set(d.map((doc) => JSON.stringify(doc)))).map((doc) => new index.LiturgicalDocument(JSON.parse(doc)));
|
|
15
16
|
// sort by preferred version
|
|
16
17
|
let sorted;
|
|
17
18
|
if (versions !== undefined && versions.length > 0) {
|
|
@@ -59,8 +60,8 @@ const LOCALE = {
|
|
|
59
60
|
};
|
|
60
61
|
const EditableFilterDocumentsComponent = class {
|
|
61
62
|
constructor(hostRef) {
|
|
62
|
-
index.registerInstance(this, hostRef);
|
|
63
|
-
this.ldfDocumentSelected = index.createEvent(this, "ldfDocumentSelected", 7);
|
|
63
|
+
index$1.registerInstance(this, hostRef);
|
|
64
|
+
this.ldfDocumentSelected = index$1.createEvent(this, "ldfDocumentSelected", 7);
|
|
64
65
|
this.filteredOptions = [];
|
|
65
66
|
/** Whether to include a `LiturgicalDocument.version` field with the selection */
|
|
66
67
|
this.versions = {};
|
|
@@ -133,14 +134,14 @@ const EditableFilterDocumentsComponent = class {
|
|
|
133
134
|
}
|
|
134
135
|
render() {
|
|
135
136
|
const localeStrings = this.localeStrings || {};
|
|
136
|
-
return (index.h(index.Host, null, this.modal && index.h("ion-header", null, index.h("ion-toolbar", null, index.h("ion-buttons", { slot: "end" }, index.h("ion-button", { onClick: () => this.modal.dismiss() }, index.h("ion-icon", { name: "close", slot: "icon-only" }))))), index.h("ion-content", null, index.h("form", null, index.h("ion-list", null, index.h("ion-button", { fill: "clear", onClick: () => { this.chooseDoc(docsToOption(this.filteredOptions)); this.choose(); } }, index.h("ion-label", null, localeStrings.includeAll)), this.versions && index.h("ion-item", null, index.h("ion-label", null, localeStrings.version), index.h("ion-select", { value: this.version, onIonChange: (ev) => this.chooseVersion(ev.detail.value) }, Object.entries(this.versions)
|
|
137
|
+
return (index$1.h(index$1.Host, null, this.modal && index$1.h("ion-header", null, index$1.h("ion-toolbar", null, index$1.h("ion-buttons", { slot: "end" }, index$1.h("ion-button", { onClick: () => this.modal.dismiss() }, index$1.h("ion-icon", { name: "close", slot: "icon-only" }))))), index$1.h("ion-content", null, index$1.h("form", null, index$1.h("ion-list", null, index$1.h("ion-button", { fill: "clear", onClick: () => { this.chooseDoc(docsToOption(this.filteredOptions)); this.choose(); } }, index$1.h("ion-label", null, localeStrings.includeAll)), this.versions && index$1.h("ion-item", null, index$1.h("ion-label", null, localeStrings.version), index$1.h("ion-select", { value: this.version, onIonChange: (ev) => this.chooseVersion(ev.detail.value) }, Object.entries(this.versions)
|
|
137
138
|
.sort((a, b) => a[0] > b[0] ? 1 : -1)
|
|
138
|
-
.map(([versionKey, versionLabel]) => index.h("ion-select-option", { value: versionKey }, versionLabel)))), index.h("ion-searchbar", { onIonChange: (ev) => this.filter(ev.detail.value) }), this.filteredOptions && this.filteredOptions.map(doc => {
|
|
139
|
+
.map(([versionKey, versionLabel]) => index$1.h("ion-select-option", { value: versionKey }, versionLabel)))), index$1.h("ion-searchbar", { onIonChange: (ev) => this.filter(ev.detail.value) }), this.filteredOptions && this.filteredOptions.map(doc => {
|
|
139
140
|
var _a, _b, _c, _d;
|
|
140
|
-
return index.h("ion-item", { button: true, onClick: () => { this.chooseDoc(doc); this.choose(); }, color: doc == this.doc ? 'primary' : undefined }, (_b = (_a = doc.label) !== null && _a !== void 0 ? _a : doc.version_label) !== null && _b !== void 0 ? _b : `${(_d = (_c = (((doc.value || [])[0] || {}).text)) !== null && _c !== void 0 ? _c : (doc.value || [])[0]) !== null && _d !== void 0 ? _d : ''}${doc.citation ? ` (${doc.citation})` : ''}`);
|
|
141
|
+
return index$1.h("ion-item", { button: true, onClick: () => { this.chooseDoc(doc); this.choose(); }, color: doc == this.doc ? 'primary' : undefined }, (_b = (_a = doc.label) !== null && _a !== void 0 ? _a : doc.version_label) !== null && _b !== void 0 ? _b : `${(_d = (_c = (((doc.value || [])[0] || {}).text)) !== null && _c !== void 0 ? _c : (doc.value || [])[0]) !== null && _d !== void 0 ? _d : ''}${doc.citation ? ` (${doc.citation})` : ''}`);
|
|
141
142
|
}))))));
|
|
142
143
|
}
|
|
143
|
-
get element() { return index.getElement(this); }
|
|
144
|
+
get element() { return index$1.getElement(this); }
|
|
144
145
|
static get watchers() { return {
|
|
145
146
|
"version": ["versionChange"],
|
|
146
147
|
"versions": ["versionsChange"],
|