@venite/components 0.16.8 → 0.16.14
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/{index-5e2cc9e9.js → book-1a92678a.js} +1 -92
- package/dist/cjs/{heading-d3809e59.js → heading-5afc2b24.js} +2 -2
- package/dist/cjs/{image-f0ace076.js → image-3bee3e73.js} +2 -2
- package/dist/cjs/ion-button_13.cjs.entry.js +1 -2
- package/dist/cjs/ion-card-content_6.cjs.entry.js +2 -3
- package/dist/cjs/ion-checkbox_3.cjs.entry.js +1 -2
- package/dist/cjs/ion-input_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment_16.cjs.entry.js +38 -32
- package/dist/cjs/ldf-day-name_5.cjs.entry.js +69 -66
- package/dist/cjs/ldf-editable-add-block-menu.cjs.entry.js +9 -10
- package/dist/cjs/ldf-editable-condition-piece.cjs.entry.js +5 -6
- package/dist/cjs/ldf-editable-condition.cjs.entry.js +3 -4
- package/dist/cjs/ldf-editable-filter-documents.cjs.entry.js +10 -11
- package/dist/cjs/ldf-editable-lookup_2.cjs.entry.js +8 -9
- package/dist/cjs/ldf-editable-metadata.cjs.entry.js +9 -10
- package/dist/cjs/ldf-editable-preference-option.cjs.entry.js +1 -2
- package/dist/cjs/ldf-editable-preference.cjs.entry.js +1 -2
- package/dist/cjs/ldf-editable-preferences.cjs.entry.js +1 -2
- package/dist/cjs/ldf-editable-string-list.cjs.entry.js +1 -2
- package/dist/cjs/ldf-editor.cjs.entry.js +12 -12
- package/dist/cjs/{option-1ebd4514.js → option-24f3d13a.js} +7 -2
- package/dist/cjs/{refrain-a605892e.js → refrain-91fb446b.js} +2 -2
- package/dist/cjs/{rubric-662d8baa.js → rubric-5b467a6a.js} +8 -8
- package/dist/cjs/{specific-class-d80d272a.js → specific-class-a1112e78.js} +5 -5
- package/dist/cjs/{text-c5e8ca0a.js → text-5edb80f3.js} +2 -2
- package/dist/collection/components/bible-reading/bible-reading.js +15 -9
- package/dist/collection/components/bible-reading/dist/bible-reading.js +355 -0
- package/dist/collection/components/psalm/dist/psalm.js +3 -3
- package/dist/collection/components/psalm/psalm.css +8 -1
- package/dist/collection/components/psalm/psalm.js +3 -3
- package/dist/collection/components/text/dist/text.js +2 -1
- package/dist/collection/components/text/text.js +5 -2
- package/dist/esm/{index-f5b9b789.js → book-31b8cdde.js} +1 -92
- package/dist/esm/{heading-c9eb7d89.js → heading-cc5ffa8a.js} +1 -1
- package/dist/esm/{image-f0e35b01.js → image-c6a3f0c5.js} +1 -1
- package/dist/esm/ion-button_13.entry.js +1 -2
- package/dist/esm/ion-card-content_6.entry.js +2 -3
- package/dist/esm/ion-checkbox_3.entry.js +1 -2
- package/dist/esm/ion-input_2.entry.js +1 -1
- package/dist/esm/ion-segment_16.entry.js +25 -19
- package/dist/esm/ldf-day-name_5.entry.js +8 -5
- package/dist/esm/ldf-editable-add-block-menu.entry.js +7 -8
- package/dist/esm/ldf-editable-condition-piece.entry.js +1 -2
- package/dist/esm/ldf-editable-condition.entry.js +1 -2
- package/dist/esm/ldf-editable-filter-documents.entry.js +2 -3
- package/dist/esm/ldf-editable-lookup_2.entry.js +7 -8
- package/dist/esm/ldf-editable-metadata.entry.js +7 -8
- package/dist/esm/ldf-editable-preference-option.entry.js +1 -2
- package/dist/esm/ldf-editable-preference.entry.js +1 -2
- package/dist/esm/ldf-editable-preferences.entry.js +1 -2
- package/dist/esm/ldf-editable-string-list.entry.js +1 -2
- package/dist/esm/ldf-editor.entry.js +1 -1
- package/dist/esm/{option-47d50244.js → option-da8390ad.js} +6 -1
- package/dist/esm/{refrain-810c4de5.js → refrain-75a412cb.js} +1 -1
- package/dist/esm/{rubric-2330a030.js → rubric-91bf7fed.js} +1 -1
- package/dist/esm/{specific-class-28e26e40.js → specific-class-ef83cfb6.js} +5 -5
- package/dist/esm/{text-ce1ed17d.js → text-ed75fbd4.js} +1 -1
- package/dist/ldf/ldf.esm.js +1 -1
- package/dist/ldf/p-03afc8cb.entry.js +1 -0
- package/dist/ldf/p-1902f41e.entry.js +1 -0
- package/dist/ldf/p-1e8c8a66.entry.js +1 -0
- package/dist/ldf/p-1ff665a7.entry.js +1 -0
- package/dist/ldf/{p-db435131.entry.js → p-23af1bc3.entry.js} +1 -1
- package/dist/ldf/p-2ae548b3.entry.js +1 -0
- package/dist/ldf/p-3f8ef67b.entry.js +1 -0
- package/dist/ldf/p-476327d6.js +1 -0
- package/dist/ldf/p-4aa9a6f2.js +1 -0
- package/dist/ldf/p-594fa9d4.entry.js +1 -0
- package/dist/ldf/{p-937ffc85.js → p-5b43e6be.js} +1 -1
- package/dist/ldf/p-5ea6de28.entry.js +1 -0
- package/dist/ldf/p-65563763.entry.js +1 -0
- package/dist/ldf/p-65d26c45.js +1 -0
- package/dist/ldf/p-65ea7ab3.entry.js +1 -0
- package/dist/ldf/p-800a115c.entry.js +1 -0
- package/dist/ldf/{p-9e82b403.js → p-8f67abb8.js} +1 -1
- package/dist/ldf/p-9155f066.js +1 -0
- package/dist/ldf/p-9c1973a6.entry.js +1 -0
- package/dist/ldf/p-a1729dbd.js +1 -0
- package/dist/ldf/p-bdcf2b02.entry.js +1 -0
- package/dist/ldf/p-c60a875b.js +1 -0
- package/dist/ldf/p-e4f0cd91.entry.js +1 -0
- package/dist/ldf/p-f0de7628.entry.js +1 -0
- package/dist/ldf/{p-c1bcd0a9.entry.js → p-fa191f47.entry.js} +1 -1
- package/package.json +2 -2
- package/dist/ldf/p-0651768a.entry.js +0 -1
- package/dist/ldf/p-0f69db87.entry.js +0 -1
- package/dist/ldf/p-1504379f.entry.js +0 -1
- package/dist/ldf/p-2fa1c501.entry.js +0 -1
- package/dist/ldf/p-37f356a4.entry.js +0 -1
- package/dist/ldf/p-4d392128.entry.js +0 -1
- package/dist/ldf/p-53c807a4.js +0 -1
- package/dist/ldf/p-5bf20b51.js +0 -1
- package/dist/ldf/p-698a3399.entry.js +0 -1
- package/dist/ldf/p-73a16936.entry.js +0 -1
- package/dist/ldf/p-7df11f48.entry.js +0 -1
- package/dist/ldf/p-8ee9ccd3.js +0 -1
- package/dist/ldf/p-91b61b55.entry.js +0 -1
- package/dist/ldf/p-972e4f2a.entry.js +0 -1
- package/dist/ldf/p-9cf557f9.js +0 -1
- package/dist/ldf/p-a98c89d1.entry.js +0 -1
- package/dist/ldf/p-b355bfa2.js +0 -1
- package/dist/ldf/p-ca7e0de9.entry.js +0 -1
- package/dist/ldf/p-d49a739d.js +0 -1
- package/dist/ldf/p-d7fa99cc.entry.js +0 -1
- package/dist/ldf/p-ff51dbd0.entry.js +0 -1
|
@@ -3,16 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-8fe0df8d.js');
|
|
6
|
-
const
|
|
6
|
+
const book = require('./book-1a92678a.js');
|
|
7
7
|
const change = require('./change-cdb1e8c0.js');
|
|
8
|
-
const specificClass = require('./specific-class-
|
|
8
|
+
const specificClass = require('./specific-class-a1112e78.js');
|
|
9
9
|
const locale = require('./locale-d4e925b1.js');
|
|
10
|
-
require('./
|
|
11
|
-
require('./
|
|
12
|
-
require('./
|
|
13
|
-
require('./
|
|
14
|
-
require('./
|
|
15
|
-
require('./text-c5e8ca0a.js');
|
|
10
|
+
require('./rubric-5b467a6a.js');
|
|
11
|
+
require('./heading-5afc2b24.js');
|
|
12
|
+
require('./option-24f3d13a.js');
|
|
13
|
+
require('./refrain-91fb446b.js');
|
|
14
|
+
require('./text-5edb80f3.js');
|
|
16
15
|
|
|
17
16
|
const abbreviated = "Abbreviated";
|
|
18
17
|
const advanced = "Advanced Settings";
|
|
@@ -131,7 +130,7 @@ const EditableMetadataComponent = class {
|
|
|
131
130
|
}
|
|
132
131
|
catch (e) {
|
|
133
132
|
console.warn(e);
|
|
134
|
-
this.obj = new
|
|
133
|
+
this.obj = new book.LiturgicalDocument();
|
|
135
134
|
}
|
|
136
135
|
}
|
|
137
136
|
// Lifecycle events
|
|
@@ -175,7 +174,7 @@ const EditableMetadataComponent = class {
|
|
|
175
174
|
const bipartiteName = name.includes('/'), nameParts = name.split('/'), text = bipartiteName ? (this.obj[nameParts[0]] || {})[nameParts[1]] : this.obj[name];
|
|
176
175
|
return (index.h("ion-item", { lines: 'none' }, index.h("ion-label", { "aria-label": localeStrings[name], position: 'stacked' }, localeStrings[name]), index.h("ldf-editable-text", { id: name, short: true, path: `${this.path}/${name}`, text: text, placeholder: localeStrings[name] })));
|
|
177
176
|
};
|
|
178
|
-
return (index.h(index.Host, null, index.h("ion-header", null, index.h("ion-toolbar", null, index.h("ion-title", null, localeStrings.modalTitle), index.h("ion-buttons", { slot: "primary" }, index.h("ion-button", { onClick: () => this.modal.dismiss(null) }, index.h("ion-icon", { slot: "icon-only", name: "close" }))))), index.h("ion-content", null, index.h("form", { class: { metadata: true, hidden: this.collapsedState, visible: !this.collapsedState } }, index.h("ldf-editable-metadata-metadata-fields", { path: this.path, doc: this.obj }), index.h("ion-card", null, index.h("ion-card-header", null, index.h("ion-card-title", null, localeStrings.title)), index.h("ion-card", null, index.h("ion-grid", null, index.h("ion-row", null, index.h("ion-col", null, index.h(TextField, { name: "label" })), index.h("ion-col", null, (availableDisplayFormats === null || availableDisplayFormats === void 0 ? void 0 : availableDisplayFormats.length) > 0 && index.h(SelectField, { field: 'display_format', types: availableDisplayFormats }))), index.h("ion-row", null, index.h("ion-col", null, index.h(TextField, { name: "source/source" })), index.h("ion-col", null, index.h(TextField, { name: "source/citation" })), index.h("ion-col", null, index.h(TextField, { name: "citation" })))))), index.h("ion-card", null, index.h("ion-card-header", { class: "advanced", onClick: () => this.showAdvanced = !this.showAdvanced }, index.h("ion-buttons", null, index.h("ion-button", null, !this.showAdvanced && index.h("ion-icon", { slot: "icon-only", name: "chevron-forward" }), this.showAdvanced && index.h("ion-icon", { slot: "icon-only", name: "chevron-down" }))), index.h("ion-card-title", null, localeStrings.advanced)), this.showAdvanced && index.h("ion-card-content", null, index.h("ion-grid", null, index.h("ion-row", null, index.h("ion-col", { size: "4" }, index.h(SelectField, { field: 'type', types: availableTypes, onChange: (type) => this.obj = specificClass.specificClass(new
|
|
177
|
+
return (index.h(index.Host, null, index.h("ion-header", null, index.h("ion-toolbar", null, index.h("ion-title", null, localeStrings.modalTitle), index.h("ion-buttons", { slot: "primary" }, index.h("ion-button", { onClick: () => this.modal.dismiss(null) }, index.h("ion-icon", { slot: "icon-only", name: "close" }))))), index.h("ion-content", null, index.h("form", { class: { metadata: true, hidden: this.collapsedState, visible: !this.collapsedState } }, index.h("ldf-editable-metadata-metadata-fields", { path: this.path, doc: this.obj }), index.h("ion-card", null, index.h("ion-card-header", null, index.h("ion-card-title", null, localeStrings.title)), index.h("ion-card", null, index.h("ion-grid", null, index.h("ion-row", null, index.h("ion-col", null, index.h(TextField, { name: "label" })), index.h("ion-col", null, (availableDisplayFormats === null || availableDisplayFormats === void 0 ? void 0 : availableDisplayFormats.length) > 0 && index.h(SelectField, { field: 'display_format', types: availableDisplayFormats }))), index.h("ion-row", null, index.h("ion-col", null, index.h(TextField, { name: "source/source" })), index.h("ion-col", null, index.h(TextField, { name: "source/citation" })), index.h("ion-col", null, index.h(TextField, { name: "citation" })))))), index.h("ion-card", null, index.h("ion-card-header", { class: "advanced", onClick: () => this.showAdvanced = !this.showAdvanced }, index.h("ion-buttons", null, index.h("ion-button", null, !this.showAdvanced && index.h("ion-icon", { slot: "icon-only", name: "chevron-forward" }), this.showAdvanced && index.h("ion-icon", { slot: "icon-only", name: "chevron-down" }))), index.h("ion-card-title", null, localeStrings.advanced)), this.showAdvanced && index.h("ion-card-content", null, index.h("ion-grid", null, index.h("ion-row", null, index.h("ion-col", { size: "4" }, index.h(SelectField, { field: 'type', types: availableTypes, onChange: (type) => this.obj = specificClass.specificClass(new book.LiturgicalDocument(Object.assign(Object.assign({}, this.obj), { type }))) })), index.h("ion-col", null, (availableStyles === null || availableStyles === void 0 ? void 0 : availableStyles.length) > 0 && index.h(SelectField, { field: 'style', types: availableStyles }))), index.h("ion-row", null, index.h("ion-col", null, index.h(TextField, { name: "tradition" })), index.h("ion-col", null, index.h(TextField, { name: "language" })), index.h("ion-col", null, index.h(TextField, { name: "version" }))), index.h("ion-row", null, index.h("ion-col", null, index.h(TextField, { name: "version_label" })), index.h("ion-col", null, index.h(TextField, { name: "slug" }))), index.h("ion-row", null, index.h("ion-col", { size: "12" }, index.h("ldf-editable-string-list", { path: this.path, property: "category", value: this.obj.category }))), index.h("ion-row", null, index.h("ion-col", { size: "12" }, index.h("ldf-editable-lookup", { path: `${this.path}/lookup`, lookup: (_a = this.obj) === null || _a === void 0 ? void 0 : _a.lookup, types: (_b = this.obj) === null || _b === void 0 ? void 0 : _b.availableLookupTypes() }))))))))));
|
|
179
178
|
}
|
|
180
179
|
get element() { return index.getElement(this); }
|
|
181
180
|
static get watchers() { return {
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-8fe0df8d.js');
|
|
6
|
-
require('./
|
|
6
|
+
require('./book-1a92678a.js');
|
|
7
7
|
const preference = require('./preference-a4bd51c4.js');
|
|
8
8
|
const change = require('./change-cdb1e8c0.js');
|
|
9
9
|
const locale = require('./locale-d4e925b1.js');
|
|
10
|
-
require('./_commonjsHelpers-bcc1208a.js');
|
|
11
10
|
|
|
12
11
|
const additional = "Advanced Settings";
|
|
13
12
|
const alternateYear = "“Alternate Year” Reading";
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-8fe0df8d.js');
|
|
6
|
-
require('./
|
|
6
|
+
require('./book-1a92678a.js');
|
|
7
7
|
const preference$1 = require('./preference-a4bd51c4.js');
|
|
8
8
|
const change = require('./change-cdb1e8c0.js');
|
|
9
9
|
const locale = require('./locale-d4e925b1.js');
|
|
10
|
-
require('./_commonjsHelpers-bcc1208a.js');
|
|
11
10
|
|
|
12
11
|
const add = "Add an Option";
|
|
13
12
|
const category = "Category";
|
|
@@ -4,13 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-8fe0df8d.js');
|
|
6
6
|
const overlays = require('./overlays-eb464d6d.js');
|
|
7
|
-
require('./
|
|
7
|
+
require('./book-1a92678a.js');
|
|
8
8
|
const preference = require('./preference-a4bd51c4.js');
|
|
9
9
|
const change = require('./change-cdb1e8c0.js');
|
|
10
10
|
const locale = require('./locale-d4e925b1.js');
|
|
11
11
|
require('./ionic-global-581fb4f8.js');
|
|
12
12
|
require('./hardware-back-button-8c2f48d2.js');
|
|
13
|
-
require('./_commonjsHelpers-bcc1208a.js');
|
|
14
13
|
|
|
15
14
|
function categoriesToPreferenceTree(categories, preferences) {
|
|
16
15
|
return categories.reduce((obj, category) => (Object.assign(Object.assign({}, obj), { [category]: Object.entries(preferences)
|
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-8fe0df8d.js');
|
|
6
|
-
require('./
|
|
6
|
+
require('./book-1a92678a.js');
|
|
7
7
|
const change = require('./change-cdb1e8c0.js');
|
|
8
8
|
const locale = require('./locale-d4e925b1.js');
|
|
9
|
-
require('./_commonjsHelpers-bcc1208a.js');
|
|
10
9
|
|
|
11
10
|
const category = {
|
|
12
11
|
add: "Add a Category",
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-8fe0df8d.js');
|
|
6
|
-
const
|
|
6
|
+
const book = require('./book-1a92678a.js');
|
|
7
7
|
const cursor = require('./cursor-81bfd01e.js');
|
|
8
8
|
const change = require('./change-cdb1e8c0.js');
|
|
9
|
-
const index$
|
|
9
|
+
const index$1 = require('./index-de13bd01.js');
|
|
10
10
|
require('./_commonjsHelpers-bcc1208a.js');
|
|
11
11
|
|
|
12
12
|
const editorCss = "ldf-editor.sc-ldf-editor, .sc-ldf-editor-h {\n display: block;\n}\n\n.sc-ldf-editor-h textarea.sc-ldf-editor {\n display: block;\n\n width: 100%;\n max-width: 100%;\n max-height: 100%;\n\n border: 1px solid grey;\n\n outline: none;\n\n background: transparent;\n box-sizing: border-box;\n resize: none;\n appearance: none;\n\n font-family: inherit;\n}\n\n@keyframes \"blink\" {\n from, to {\n opacity: 0;\n }\n 50% {\n opacity: 1;\n }\n}\n\n.user.sc-ldf-editor {\n padding-top: 3px;\n padding-bottom: 3px;\n border-left-width: 2px;\n border-right-width: 2px;\n border-style: solid;\n border-top-width: 0;\n border-bottom-width: 0;\n}";
|
|
@@ -29,15 +29,15 @@ const EditorComponent = class {
|
|
|
29
29
|
async docChanged(newDoc) {
|
|
30
30
|
try {
|
|
31
31
|
if (typeof newDoc == 'string') {
|
|
32
|
-
this.obj = new
|
|
32
|
+
this.obj = new book.LiturgicalDocument(JSON.parse(newDoc));
|
|
33
33
|
}
|
|
34
34
|
else {
|
|
35
|
-
this.obj = new
|
|
35
|
+
this.obj = new book.LiturgicalDocument(newDoc);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
catch (e) {
|
|
39
39
|
console.warn(e);
|
|
40
|
-
this.obj = new
|
|
40
|
+
this.obj = new book.LiturgicalDocument();
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
// Life Cycle
|
|
@@ -83,7 +83,7 @@ const EditorComponent = class {
|
|
|
83
83
|
// if we've fired this on the first element, do nothing
|
|
84
84
|
if (previousIndex >= 0) {
|
|
85
85
|
// otherwise, look up the value of the previous element
|
|
86
|
-
const previousElement = index$
|
|
86
|
+
const previousElement = index$1.elementFromPath(this.el, previousPath), textarea = ((_a = previousElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('textarea')) || previousElement.querySelector('textarea'), previousValue = textarea === null || textarea === void 0 ? void 0 : textarea.value,
|
|
87
87
|
// delete the deleted node
|
|
88
88
|
deleteOp = {
|
|
89
89
|
type: 'deleteAt',
|
|
@@ -118,10 +118,10 @@ const EditorComponent = class {
|
|
|
118
118
|
this.editorAskForBibleIntros.emit(ev.target.querySelector('ldf-editable-metadata-metadata-fields'));
|
|
119
119
|
}
|
|
120
120
|
onAskForCanticleOptions() {
|
|
121
|
-
this.editorAskForCanticleOptions.emit(index$
|
|
121
|
+
this.editorAskForCanticleOptions.emit(index$1.querySelectorDeep('ldf-editable-filter-documents'));
|
|
122
122
|
}
|
|
123
123
|
onAskForPT( /*ev : CustomEvent*/) {
|
|
124
|
-
this.editorAskForPrayersAndThanksgivings.emit(index$
|
|
124
|
+
this.editorAskForPrayersAndThanksgivings.emit(index$1.querySelectorDeep('ldf-prayers-and-thanksgivings'));
|
|
125
125
|
}
|
|
126
126
|
onShouldAddGloriaPatri(ev) {
|
|
127
127
|
this.editorShouldAddGloriaPatri.emit(ev.detail);
|
|
@@ -221,11 +221,11 @@ const EditorComponent = class {
|
|
|
221
221
|
// TODO #auth -- replace this with real user info
|
|
222
222
|
const users = this.users || {}, user = users[this.uid], otherUsers = Object.entries(users).filter(u => u[0] !== this.uid);
|
|
223
223
|
return (index.h(index.Host, null, this.listUsers && index.h("ldf-label-bar", null, index.h("div", { slot: 'start' }, user && index.h("span", null, "Logged in as ", index.h("span", { class: 'user', style: {
|
|
224
|
-
backgroundColor: new index$
|
|
225
|
-
borderColor: new index$
|
|
224
|
+
backgroundColor: new index$1.values_js(user.color).tint(40).hexString(),
|
|
225
|
+
borderColor: new index$1.values_js(user.color).shade(10).hexString()
|
|
226
226
|
} }, user.displayName), ". "), otherUsers && otherUsers.length > 0 && otherUsers.map(([, u]) => (index.h("span", null, index.h("span", { class: 'user', style: {
|
|
227
|
-
backgroundColor: new index$
|
|
228
|
-
borderColor: new index$
|
|
227
|
+
backgroundColor: new index$1.values_js(u.color).tint(40).hexString(),
|
|
228
|
+
borderColor: new index$1.values_js(u.color).shade(10).hexString()
|
|
229
229
|
} }, u.displayName)))).reduce((acc, x) => acc === null ? [x] : [acc, ', ', x], null)), index.h("slot", { name: 'controls', slot: 'end' })), index.h("ldf-editor-cursors", { parent: this.el, cursors: this.cursors, users: this.users, uid: this.uid }), this.obj && index.h("ldf-liturgical-document", { editable: true, preview: this.preview, path: '/', doc: this.obj })));
|
|
230
230
|
}
|
|
231
231
|
get el() { return index.getElement(this); }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const book = require('./book-1a92678a.js');
|
|
4
4
|
|
|
5
5
|
function versionToString(version) {
|
|
6
6
|
if (typeof version === 'string') {
|
|
@@ -18,13 +18,15 @@ const VERSIONS = {
|
|
|
18
18
|
eow: 'EOW',
|
|
19
19
|
coverdale: 'Coverdale',
|
|
20
20
|
rite_i: 'Rite I',
|
|
21
|
+
bhs: 'Hebrew',
|
|
22
|
+
hebrew: 'Hebrew',
|
|
21
23
|
};
|
|
22
24
|
function modifiedVersion(option) {
|
|
23
25
|
return option.type === 'psalm' && option.style === 'psalm' && option.version === 'bcp1979'
|
|
24
26
|
? 'bcp1979_psalm'
|
|
25
27
|
: option.version;
|
|
26
28
|
}
|
|
27
|
-
class Option extends
|
|
29
|
+
class Option extends book.LiturgicalDocument {
|
|
28
30
|
//** Constructor takes a Javascript object containing the class's properties */
|
|
29
31
|
constructor(data = {}) {
|
|
30
32
|
super(data);
|
|
@@ -66,6 +68,9 @@ class Option extends index.LiturgicalDocument {
|
|
|
66
68
|
(((_a = option.slug) === null || _a === void 0 ? void 0 : _a.match(/psalm_119_/)) || ((_b = option.citation) === null || _b === void 0 ? void 0 : _b.toString().match(/Ps[^\d]+119/)))) {
|
|
67
69
|
label = option.label;
|
|
68
70
|
}
|
|
71
|
+
else if (option.type == 'psalm' && uniqueVersions > 1) {
|
|
72
|
+
label = option.version_label || VERSIONS[versionToString(option.version)];
|
|
73
|
+
}
|
|
69
74
|
// Other psalms: Psalm 121
|
|
70
75
|
else if (option.type == 'psalm' &&
|
|
71
76
|
option.style == 'psalm' &&
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const book = require('./book-1a92678a.js');
|
|
4
4
|
|
|
5
5
|
const STYLES = ['normal', 'antiphon', 'gloria'];
|
|
6
6
|
/** Refrain represents a short text like the Gloria Patri, Hail Mary, or an Antiphon */
|
|
7
|
-
class Refrain extends
|
|
7
|
+
class Refrain extends book.LiturgicalDocument {
|
|
8
8
|
//** Constructor takes a Javascript object containing the class's properties */
|
|
9
9
|
constructor(data = {}) {
|
|
10
10
|
super(data);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const book = require('./book-1a92678a.js');
|
|
4
4
|
|
|
5
5
|
const BIBLE_BOOK_ABBREVIATIONS = [
|
|
6
6
|
{
|
|
@@ -920,7 +920,7 @@ function ordinalSuffix(i) {
|
|
|
920
920
|
|
|
921
921
|
const STYLES$2 = ['long', 'short'];
|
|
922
922
|
/** BibleReading represents liturgical instructions. */
|
|
923
|
-
class BibleReading extends
|
|
923
|
+
class BibleReading extends book.LiturgicalDocument {
|
|
924
924
|
//** Constructor takes a Javascript object containing the class's properties */
|
|
925
925
|
constructor(data = {}) {
|
|
926
926
|
super(data);
|
|
@@ -950,7 +950,7 @@ class BibleReading extends index.LiturgicalDocument {
|
|
|
950
950
|
newValue.push(process(introValue));
|
|
951
951
|
}
|
|
952
952
|
});
|
|
953
|
-
this.metadata.compiled_intro = new
|
|
953
|
+
this.metadata.compiled_intro = new book.LiturgicalDocument(Object.assign(Object.assign({}, this.metadata.intro), { value: newValue }));
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
956
|
/** Generates an abbreviated book name from citation
|
|
@@ -1044,14 +1044,14 @@ class BibleReading extends index.LiturgicalDocument {
|
|
|
1044
1044
|
}
|
|
1045
1045
|
|
|
1046
1046
|
/** Represents the "recipe" to compile a liturgy */
|
|
1047
|
-
class Liturgy extends
|
|
1047
|
+
class Liturgy extends book.LiturgicalDocument {
|
|
1048
1048
|
/** No meaningful differences in display format for liturgies */
|
|
1049
1049
|
availableDisplayFormats() {
|
|
1050
1050
|
return [];
|
|
1051
1051
|
}
|
|
1052
1052
|
}
|
|
1053
1053
|
|
|
1054
|
-
class Meditation extends
|
|
1054
|
+
class Meditation extends book.LiturgicalDocument {
|
|
1055
1055
|
//** Constructor takes a Javascript object containing the class's properties */
|
|
1056
1056
|
constructor(data = {}) {
|
|
1057
1057
|
super(data);
|
|
@@ -1060,7 +1060,7 @@ class Meditation extends index.LiturgicalDocument {
|
|
|
1060
1060
|
|
|
1061
1061
|
const STYLES$1 = ['psalm', 'canticle', 'invitatory'];
|
|
1062
1062
|
/** Psalm represents liturgical instructions. */
|
|
1063
|
-
class Psalm extends
|
|
1063
|
+
class Psalm extends book.LiturgicalDocument {
|
|
1064
1064
|
//** Constructor takes a Javascript object containing the class's properties */
|
|
1065
1065
|
constructor(data = {}) {
|
|
1066
1066
|
super(data);
|
|
@@ -1187,7 +1187,7 @@ class Psalm extends index.LiturgicalDocument {
|
|
|
1187
1187
|
|
|
1188
1188
|
const STYLES = ['preces', 'litany', 'responsive'];
|
|
1189
1189
|
/** Text represents collect or any other short prayer. */
|
|
1190
|
-
class ResponsivePrayer extends
|
|
1190
|
+
class ResponsivePrayer extends book.LiturgicalDocument {
|
|
1191
1191
|
//** Constructor takes a Javascript object containing the class's properties */
|
|
1192
1192
|
constructor(data = {}) {
|
|
1193
1193
|
super(data);
|
|
@@ -1202,7 +1202,7 @@ class ResponsivePrayer extends index.LiturgicalDocument {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
|
|
1204
1204
|
/** Rubric represents liturgical instructions. */
|
|
1205
|
-
class Rubric extends
|
|
1205
|
+
class Rubric extends book.LiturgicalDocument {
|
|
1206
1206
|
//** Constructor takes a Javascript object containing the class's properties */
|
|
1207
1207
|
constructor(data = {}) {
|
|
1208
1208
|
super(data);
|
|
@@ -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-5b467a6a.js');
|
|
4
|
+
const heading = require('./heading-5afc2b24.js');
|
|
5
|
+
const option = require('./option-24f3d13a.js');
|
|
6
|
+
const refrain = require('./refrain-91fb446b.js');
|
|
7
|
+
const text = require('./text-5edb80f3.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 */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const book = require('./book-1a92678a.js');
|
|
4
4
|
|
|
5
5
|
const STYLES = ['text', 'prayer', 'markdown', 'authorized-prayers'];
|
|
6
6
|
/** Text represents collect or any other short prayer. */
|
|
7
|
-
class Text extends
|
|
7
|
+
class Text extends book.LiturgicalDocument {
|
|
8
8
|
//** Constructor takes a Javascript object containing the class's properties */
|
|
9
9
|
constructor(data = {}) {
|
|
10
10
|
super(data);
|
|
@@ -181,9 +181,12 @@ export class BibleReadingComponent {
|
|
|
181
181
|
((_l = this.obj) === null || _l === void 0 ? void 0 : _l.label) && h("ldf-heading", { doc: new Heading({ type: 'heading', metadata: { level: 3 }, value: [this.obj.label] }) }),
|
|
182
182
|
h("div", { lang: (_m = this.obj) === null || _m === void 0 ? void 0 : _m.language, class: `bible-reading ${((_o = this.obj) === null || _o === void 0 ? void 0 : _o.display_format) || 'default'}` },
|
|
183
183
|
h("p", null,
|
|
184
|
-
this.verses.map(verse
|
|
185
|
-
|
|
186
|
-
|
|
184
|
+
this.verses.map((verse, verseIndex) => {
|
|
185
|
+
var _a;
|
|
186
|
+
return verse.hasOwnProperty('type') && verse.type === 'heading'
|
|
187
|
+
? h("ldf-heading", { doc: new Heading(verse) })
|
|
188
|
+
: h("ldf-string", { citation: { book: verse.book, chapter: verse.chapter, verse: verse.verse }, id: this.obj.uid, text: verse.text, fragment: this.path, dropcap: ((_a = this.obj) === null || _a === void 0 ? void 0 : _a.display_format) == "force_dropcap" && verseIndex === 0 ? "force" : "disabled" });
|
|
189
|
+
}),
|
|
187
190
|
shortResponse && !((_q = (_p = this.obj) === null || _p === void 0 ? void 0 : _p.metadata) === null || _q === void 0 ? void 0 : _q.omit_response) && responseNode,
|
|
188
191
|
h("span", { class: "citation" }, this.obj.citation)),
|
|
189
192
|
!shortResponse && !((_s = (_r = this.obj) === null || _r === void 0 ? void 0 : _r.metadata) === null || _s === void 0 ? void 0 : _s.omit_response) && h("p", null, responseNode))));
|
|
@@ -194,12 +197,15 @@ export class BibleReadingComponent {
|
|
|
194
197
|
return (h("div", { lang: (_t = this.obj) === null || _t === void 0 ? void 0 : _t.language, class: `bible-reading ${((_u = this.obj) === null || _u === void 0 ? void 0 : _u.display_format) || 'default'}` },
|
|
195
198
|
h("ldf-heading", { doc: new Heading({ type: 'heading', metadata: { level: 3 }, value: [this.obj.label], citation: this.obj.citation }) }),
|
|
196
199
|
((_w = (_v = this.obj) === null || _v === void 0 ? void 0 : _v.metadata) === null || _w === void 0 ? void 0 : _w.compiled_intro) && h("ldf-liturgical-document", { doc: this.obj.metadata.compiled_intro }),
|
|
197
|
-
paragraphs.map((paragraph, paragraphIndex) => h("p", { lang: this.obj.language }, paragraph.map((verse, verseIndex) =>
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
h("
|
|
201
|
-
|
|
202
|
-
|
|
200
|
+
paragraphs.map((paragraph, paragraphIndex) => h("p", { lang: this.obj.language }, paragraph.map((verse, verseIndex) => {
|
|
201
|
+
var _a;
|
|
202
|
+
return verse.hasOwnProperty('type') && verse.type === 'heading'
|
|
203
|
+
? h("ldf-heading", { doc: new Heading(verse) })
|
|
204
|
+
: [
|
|
205
|
+
h("sup", null, verse.verse),
|
|
206
|
+
h("ldf-string", { citation: verse, dropcap: paragraphIndex == 0 && verseIndex == 0 && ((_a = this.obj) === null || _a === void 0 ? void 0 : _a.language) !== 'iu' ? 'force' : 'disabled', id: `${verse.chapter}-${verse.book}-${verse.verse}`, text: verse.text, index: verseIndex, fragment: this.path })
|
|
207
|
+
];
|
|
208
|
+
})))));
|
|
203
209
|
}
|
|
204
210
|
}
|
|
205
211
|
else {
|