@venite/components 0.16.20 → 0.16.24
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-c9b940c7.js → book-1a92678a.js} +2 -96
- package/dist/cjs/{change-deff223a.js → change-cdb1e8c0.js} +0 -0
- package/dist/cjs/{cursor-849a5372.js → cursor-81bfd01e.js} +0 -0
- package/dist/cjs/{heading-fae3ce98.js → heading-5afc2b24.js} +2 -2
- package/dist/cjs/{image-41000c7b.js → image-3bee3e73.js} +2 -2
- package/dist/cjs/{index-de13bd01.js → index-b22a8b22.js} +0 -0
- package/dist/cjs/ion-button_13.cjs.entry.js +25 -6
- package/dist/cjs/ion-card-content_6.cjs.entry.js +3 -4
- package/dist/cjs/ion-checkbox_3.cjs.entry.js +2 -3
- 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 +73 -71
- package/dist/cjs/ldf-editable-add-block-menu.cjs.entry.js +9 -10
- package/dist/cjs/ldf-editable-condition-piece.cjs.entry.js +6 -7
- package/dist/cjs/ldf-editable-condition.cjs.entry.js +4 -5
- package/dist/cjs/ldf-editable-filter-documents.cjs.entry.js +10 -11
- package/dist/cjs/ldf-editable-lookup_2.cjs.entry.js +9 -10
- package/dist/cjs/ldf-editable-metadata.cjs.entry.js +10 -11
- package/dist/cjs/ldf-editable-preference-option.cjs.entry.js +3 -4
- package/dist/cjs/ldf-editable-preference.cjs.entry.js +3 -4
- package/dist/cjs/ldf-editable-preferences.cjs.entry.js +3 -4
- package/dist/cjs/ldf-editable-string-list.cjs.entry.js +2 -3
- package/dist/cjs/ldf-editor-cursors.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editor.cjs.entry.js +14 -14
- package/dist/cjs/{option-6fb78f5c.js → option-a078d432.js} +17 -5
- package/dist/cjs/{preference-1365e161.js → preference-a4bd51c4.js} +0 -0
- package/dist/cjs/{refrain-f51fd88d.js → refrain-91fb446b.js} +2 -2
- package/dist/cjs/{rubric-ad2f926f.js → rubric-0afbe4c0.js} +485 -16
- package/dist/cjs/{specific-class-071762e7.js → specific-class-76b4d343.js} +5 -5
- package/dist/cjs/{text-8d8d32e7.js → text-5edb80f3.js} +2 -2
- package/dist/collection/components/prayers-and-thanksgivings/dist/prayers-and-thanksgivings.js +22 -6
- 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 +21 -5
- package/dist/collection/components/text/text.i18n.es.json +2 -1
- package/dist/collection/i18n/prayers-and-thanksgivings.i18n.es.json +3 -0
- package/dist/collection/i18n/text.i18n.es.json +2 -1
- package/dist/esm/{index-2e220677.js → book-31b8cdde.js} +2 -96
- package/dist/esm/{change-b077b77c.js → change-ea574d32.js} +0 -0
- package/dist/esm/{cursor-cb97384b.js → cursor-0e47f111.js} +0 -0
- package/dist/esm/{heading-c03fbe8b.js → heading-cc5ffa8a.js} +1 -1
- package/dist/esm/{image-a1336f0a.js → image-c6a3f0c5.js} +1 -1
- package/dist/esm/{index-1bf6d100.js → index-a3645557.js} +0 -0
- package/dist/esm/ion-button_13.entry.js +25 -6
- package/dist/esm/ion-card-content_6.entry.js +3 -4
- package/dist/esm/ion-checkbox_3.entry.js +2 -3
- 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 +9 -7
- package/dist/esm/ldf-editable-add-block-menu.entry.js +7 -8
- package/dist/esm/ldf-editable-condition-piece.entry.js +2 -3
- package/dist/esm/ldf-editable-condition.entry.js +2 -3
- package/dist/esm/ldf-editable-filter-documents.entry.js +2 -3
- package/dist/esm/ldf-editable-lookup_2.entry.js +8 -9
- package/dist/esm/ldf-editable-metadata.entry.js +8 -9
- package/dist/esm/ldf-editable-preference-option.entry.js +3 -4
- package/dist/esm/ldf-editable-preference.entry.js +3 -4
- package/dist/esm/ldf-editable-preferences.entry.js +3 -4
- package/dist/esm/ldf-editable-string-list.entry.js +2 -3
- package/dist/esm/ldf-editor-cursors.entry.js +1 -1
- package/dist/esm/ldf-editor.entry.js +4 -4
- package/dist/esm/{option-e130a4b2.js → option-c16af13a.js} +16 -4
- package/dist/esm/{preference-60cdfde3.js → preference-d070d4cb.js} +0 -0
- package/dist/esm/{refrain-9b9f05cc.js → refrain-75a412cb.js} +1 -1
- package/dist/esm/{rubric-0d2b870d.js → rubric-f779c469.js} +478 -9
- package/dist/esm/{specific-class-3f0e0c45.js → specific-class-09c98625.js} +5 -5
- package/dist/esm/{text-801eb7de.js → text-ed75fbd4.js} +1 -1
- package/dist/ldf/i18n/prayers-and-thanksgivings.i18n.es.json +3 -0
- package/dist/ldf/i18n/text.i18n.es.json +2 -1
- package/dist/ldf/ldf.esm.js +1 -1
- package/dist/ldf/p-005ad01b.entry.js +1 -0
- package/dist/ldf/p-00e5ee6b.js +1 -0
- package/dist/ldf/p-03afc8cb.entry.js +1 -0
- package/dist/ldf/p-2ae548b3.entry.js +1 -0
- package/dist/ldf/p-2c39ce94.entry.js +1 -0
- package/dist/ldf/p-304a2bdb.entry.js +1 -0
- package/dist/ldf/{p-70e47f8b.entry.js → p-39d4be39.entry.js} +1 -1
- package/dist/ldf/p-476327d6.js +1 -0
- package/dist/ldf/p-4aa9a6f2.js +1 -0
- package/dist/ldf/{p-6a68fa7b.js → p-5066eaa5.js} +0 -0
- package/dist/ldf/p-594fa9d4.entry.js +1 -0
- package/dist/ldf/{p-93911ad1.js → p-5b43e6be.js} +1 -1
- 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-7a9ab85c.entry.js +1 -0
- package/dist/ldf/p-800a115c.entry.js +1 -0
- package/dist/ldf/{p-3ca74c80.js → p-8e00a6ae.js} +0 -0
- package/dist/ldf/{p-12d81208.js → p-8ec26587.js} +0 -0
- package/dist/ldf/{p-05ac8045.entry.js → p-95650471.entry.js} +1 -1
- package/dist/ldf/{p-2a08ff25.js → p-991c0877.js} +0 -0
- package/dist/ldf/p-9c1973a6.entry.js +1 -0
- package/dist/ldf/p-a1729dbd.js +1 -0
- package/dist/ldf/{p-0d9b71a8.entry.js → p-ba9eda0b.entry.js} +1 -1
- package/dist/ldf/p-c0ef6296.entry.js +1 -0
- package/dist/ldf/p-d56dff05.js +3 -0
- package/dist/ldf/p-e301606a.entry.js +1 -0
- package/dist/ldf/p-e7a449d7.js +1 -0
- package/dist/ldf/p-f0de7628.entry.js +1 -0
- package/dist/ldf/p-fa191f47.entry.js +1 -0
- package/package.json +1 -1
- package/dist/ldf/p-31a1f740.js +0 -1
- package/dist/ldf/p-34e37c39.entry.js +0 -1
- package/dist/ldf/p-37d9f551.entry.js +0 -1
- package/dist/ldf/p-3a7cb4d5.entry.js +0 -1
- package/dist/ldf/p-3e0814c2.entry.js +0 -1
- package/dist/ldf/p-405928d1.js +0 -1
- package/dist/ldf/p-4ed034a1.js +0 -1
- package/dist/ldf/p-5eef960d.entry.js +0 -1
- package/dist/ldf/p-67c52455.entry.js +0 -1
- package/dist/ldf/p-69d493f3.entry.js +0 -1
- package/dist/ldf/p-80f6ec9f.js +0 -1
- package/dist/ldf/p-82f2facb.entry.js +0 -1
- package/dist/ldf/p-9424ca03.entry.js +0 -1
- package/dist/ldf/p-952f8992.entry.js +0 -1
- package/dist/ldf/p-9b008ca8.entry.js +0 -1
- package/dist/ldf/p-a712728b.js +0 -1
- package/dist/ldf/p-b3b245a2.entry.js +0 -1
- package/dist/ldf/p-bc84c531.entry.js +0 -1
- package/dist/ldf/p-be6c5df8.entry.js +0 -1
- package/dist/ldf/p-c02098e2.entry.js +0 -1
- package/dist/ldf/p-cec60628.js +0 -1
- package/dist/ldf/p-ff0452c1.js +0 -3
|
@@ -3,16 +3,15 @@
|
|
|
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-
|
|
8
|
-
const specificClass = require('./specific-class-
|
|
6
|
+
const book = require('./book-1a92678a.js');
|
|
7
|
+
const change = require('./change-cdb1e8c0.js');
|
|
8
|
+
const specificClass = require('./specific-class-76b4d343.js');
|
|
9
9
|
const locale = require('./locale-d4e925b1.js');
|
|
10
|
-
require('./
|
|
11
|
-
require('./
|
|
12
|
-
require('./
|
|
13
|
-
require('./
|
|
14
|
-
require('./
|
|
15
|
-
require('./text-8d8d32e7.js');
|
|
10
|
+
require('./rubric-0afbe4c0.js');
|
|
11
|
+
require('./heading-5afc2b24.js');
|
|
12
|
+
require('./option-a078d432.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('./
|
|
7
|
-
const preference = require('./preference-
|
|
8
|
-
const change = require('./change-
|
|
6
|
+
require('./book-1a92678a.js');
|
|
7
|
+
const preference = require('./preference-a4bd51c4.js');
|
|
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('./
|
|
7
|
-
const preference$1 = require('./preference-
|
|
8
|
-
const change = require('./change-
|
|
6
|
+
require('./book-1a92678a.js');
|
|
7
|
+
const preference$1 = require('./preference-a4bd51c4.js');
|
|
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('./
|
|
8
|
-
const preference = require('./preference-
|
|
9
|
-
const change = require('./change-
|
|
7
|
+
require('./book-1a92678a.js');
|
|
8
|
+
const preference = require('./preference-a4bd51c4.js');
|
|
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('./
|
|
7
|
-
const change = require('./change-
|
|
6
|
+
require('./book-1a92678a.js');
|
|
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",
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-8fe0df8d.js');
|
|
6
6
|
const index$2 = require('./index-7aa21373.js');
|
|
7
|
-
const index$1 = require('./index-
|
|
7
|
+
const index$1 = require('./index-b22a8b22.js');
|
|
8
8
|
const _commonjsHelpers = require('./_commonjsHelpers-bcc1208a.js');
|
|
9
9
|
|
|
10
10
|
var textareaCaret = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-8fe0df8d.js');
|
|
6
|
-
const
|
|
7
|
-
const cursor = require('./cursor-
|
|
8
|
-
const change = require('./change-
|
|
9
|
-
const index$
|
|
6
|
+
const book = require('./book-1a92678a.js');
|
|
7
|
+
const cursor = require('./cursor-81bfd01e.js');
|
|
8
|
+
const change = require('./change-cdb1e8c0.js');
|
|
9
|
+
const index$1 = require('./index-b22a8b22.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);
|
|
@@ -56,7 +58,10 @@ class Option extends index.LiturgicalDocument {
|
|
|
56
58
|
var _a, _b, _c;
|
|
57
59
|
const uniqueVersions = this.uniqueVersions(), uniqueLabels = this.uniqueLabels(), uniqueCitations = this.uniqueCitations(), uniqueCanticleNumbers = this.uniqueCanticleNumbers();
|
|
58
60
|
let label = '';
|
|
59
|
-
if (option.
|
|
61
|
+
if (option.version_label) {
|
|
62
|
+
label = option.version_label;
|
|
63
|
+
}
|
|
64
|
+
else if (option.type == 'liturgy') {
|
|
60
65
|
label = option.label || option.version_label || 'Option';
|
|
61
66
|
}
|
|
62
67
|
// Psalm 119 parts => Psalm 119: Aleph
|
|
@@ -66,6 +71,9 @@ class Option extends index.LiturgicalDocument {
|
|
|
66
71
|
(((_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
72
|
label = option.label;
|
|
68
73
|
}
|
|
74
|
+
else if (option.type == 'psalm' && uniqueVersions > 1) {
|
|
75
|
+
label = option.version_label || VERSIONS[versionToString(option.version)];
|
|
76
|
+
}
|
|
69
77
|
// Other psalms: Psalm 121
|
|
70
78
|
else if (option.type == 'psalm' &&
|
|
71
79
|
option.style == 'psalm' &&
|
|
@@ -90,13 +98,17 @@ class Option extends index.LiturgicalDocument {
|
|
|
90
98
|
label = `${option.citation.toString()}${formattedText}`;
|
|
91
99
|
}
|
|
92
100
|
}
|
|
101
|
+
// Readings with same citation + different versions => Version
|
|
102
|
+
else if (option.type == 'bible-reading' && uniqueCitations == 1) {
|
|
103
|
+
label = versionToString(option.version);
|
|
104
|
+
}
|
|
93
105
|
// Readings with one version => John 1:1-4
|
|
94
106
|
else if (option.type == 'bible-reading' && option.citation && uniqueVersions == 1) {
|
|
95
107
|
label = option.citation.toString();
|
|
96
108
|
}
|
|
97
|
-
// Readings with multiple versions => John 1:1-4
|
|
109
|
+
// Readings with multiple versions => John 1:1-4 (Version)
|
|
98
110
|
else if (option.type == 'bible-reading' && option.citation && uniqueVersions > 1) {
|
|
99
|
-
label = `${option.citation.toString()} (${option.version})`;
|
|
111
|
+
label = `${option.citation.toString()} (${versionToString(option.version)})`;
|
|
100
112
|
}
|
|
101
113
|
// Canticles, if only one version
|
|
102
114
|
else if (uniqueVersions == 1 &&
|
|
File without changes
|
|
@@ -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);
|