@venite/components 0.16.5 → 0.16.9

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.
Files changed (105) hide show
  1. package/dist/cjs/{index-5e2cc9e9.js → book-1a92678a.js} +1 -92
  2. package/dist/cjs/{heading-d3809e59.js → heading-5afc2b24.js} +2 -2
  3. package/dist/cjs/{image-f0ace076.js → image-3bee3e73.js} +2 -2
  4. package/dist/cjs/ion-button_13.cjs.entry.js +1 -2
  5. package/dist/cjs/ion-card-content_6.cjs.entry.js +2 -3
  6. package/dist/cjs/ion-checkbox_3.cjs.entry.js +1 -2
  7. package/dist/cjs/ion-input_2.cjs.entry.js +1 -1
  8. package/dist/cjs/ion-segment_16.cjs.entry.js +25 -23
  9. package/dist/cjs/ldf-day-name_5.cjs.entry.js +73 -71
  10. package/dist/cjs/ldf-editable-add-block-menu.cjs.entry.js +9 -10
  11. package/dist/cjs/ldf-editable-condition-piece.cjs.entry.js +5 -6
  12. package/dist/cjs/ldf-editable-condition.cjs.entry.js +3 -4
  13. package/dist/cjs/ldf-editable-filter-documents.cjs.entry.js +10 -11
  14. package/dist/cjs/ldf-editable-lookup_2.cjs.entry.js +8 -9
  15. package/dist/cjs/ldf-editable-metadata.cjs.entry.js +9 -10
  16. package/dist/cjs/ldf-editable-preference-option.cjs.entry.js +1 -2
  17. package/dist/cjs/ldf-editable-preference.cjs.entry.js +1 -2
  18. package/dist/cjs/ldf-editable-preferences.cjs.entry.js +1 -2
  19. package/dist/cjs/ldf-editable-string-list.cjs.entry.js +1 -2
  20. package/dist/cjs/ldf-editor.cjs.entry.js +12 -12
  21. package/dist/cjs/{option-961df0f2.js → option-e2221398.js} +3 -3
  22. package/dist/cjs/{refrain-a605892e.js → refrain-91fb446b.js} +2 -2
  23. package/dist/cjs/{rubric-662d8baa.js → rubric-5b467a6a.js} +8 -8
  24. package/dist/cjs/{specific-class-94e41d45.js → specific-class-c586a541.js} +5 -5
  25. package/dist/cjs/{text-c5e8ca0a.js → text-5edb80f3.js} +2 -2
  26. package/dist/collection/components/bible-reading/bible-reading.js +6 -3
  27. package/dist/collection/components/bible-reading/dist/bible-reading.js +354 -0
  28. package/dist/collection/components/option/dist/option.js +318 -0
  29. package/dist/collection/components/psalm/dist/psalm.js +0 -1
  30. package/dist/collection/components/psalm/psalm.js +0 -1
  31. package/dist/collection/components/string/dist/string.js +2 -3
  32. package/dist/collection/components/string/string.js +3 -4
  33. package/dist/collection/components/text/dist/text.js +3 -2
  34. package/dist/collection/components/text/text.js +6 -3
  35. package/dist/esm/{index-f5b9b789.js → book-31b8cdde.js} +1 -92
  36. package/dist/esm/{heading-c9eb7d89.js → heading-cc5ffa8a.js} +1 -1
  37. package/dist/esm/{image-f0e35b01.js → image-c6a3f0c5.js} +1 -1
  38. package/dist/esm/ion-button_13.entry.js +1 -2
  39. package/dist/esm/ion-card-content_6.entry.js +2 -3
  40. package/dist/esm/ion-checkbox_3.entry.js +1 -2
  41. package/dist/esm/ion-input_2.entry.js +1 -1
  42. package/dist/esm/ion-segment_16.entry.js +12 -10
  43. package/dist/esm/ldf-day-name_5.entry.js +12 -10
  44. package/dist/esm/ldf-editable-add-block-menu.entry.js +7 -8
  45. package/dist/esm/ldf-editable-condition-piece.entry.js +1 -2
  46. package/dist/esm/ldf-editable-condition.entry.js +1 -2
  47. package/dist/esm/ldf-editable-filter-documents.entry.js +2 -3
  48. package/dist/esm/ldf-editable-lookup_2.entry.js +7 -8
  49. package/dist/esm/ldf-editable-metadata.entry.js +7 -8
  50. package/dist/esm/ldf-editable-preference-option.entry.js +1 -2
  51. package/dist/esm/ldf-editable-preference.entry.js +1 -2
  52. package/dist/esm/ldf-editable-preferences.entry.js +1 -2
  53. package/dist/esm/ldf-editable-string-list.entry.js +1 -2
  54. package/dist/esm/ldf-editor.entry.js +1 -1
  55. package/dist/esm/{option-b80b12c6.js → option-d0361d23.js} +2 -2
  56. package/dist/esm/{refrain-810c4de5.js → refrain-75a412cb.js} +1 -1
  57. package/dist/esm/{rubric-2330a030.js → rubric-91bf7fed.js} +1 -1
  58. package/dist/esm/{specific-class-c2f505d5.js → specific-class-943fc789.js} +5 -5
  59. package/dist/esm/{text-ce1ed17d.js → text-ed75fbd4.js} +1 -1
  60. package/dist/ldf/ldf.esm.js +1 -1
  61. package/dist/ldf/p-03afc8cb.entry.js +1 -0
  62. package/dist/ldf/{p-c77ce7bf.js → p-161be025.js} +1 -1
  63. package/dist/ldf/{p-db435131.entry.js → p-23af1bc3.entry.js} +1 -1
  64. package/dist/ldf/p-2ae548b3.entry.js +1 -0
  65. package/dist/ldf/p-3b31b6af.entry.js +1 -0
  66. package/dist/ldf/p-3f8ef67b.entry.js +1 -0
  67. package/dist/ldf/p-476327d6.js +1 -0
  68. package/dist/ldf/p-48aafa34.entry.js +1 -0
  69. package/dist/ldf/p-4aa9a6f2.js +1 -0
  70. package/dist/ldf/p-594fa9d4.entry.js +1 -0
  71. package/dist/ldf/{p-937ffc85.js → p-5b43e6be.js} +1 -1
  72. package/dist/ldf/p-65563763.entry.js +1 -0
  73. package/dist/ldf/p-65d26c45.js +1 -0
  74. package/dist/ldf/p-65ea7ab3.entry.js +1 -0
  75. package/dist/ldf/p-800a115c.entry.js +1 -0
  76. package/dist/ldf/{p-9e82b403.js → p-8f67abb8.js} +1 -1
  77. package/dist/ldf/p-932f9f17.entry.js +1 -0
  78. package/dist/ldf/p-9c1973a6.entry.js +1 -0
  79. package/dist/ldf/p-a1729dbd.js +1 -0
  80. package/dist/ldf/p-b4bbe638.js +1 -0
  81. package/dist/ldf/{p-4a60affd.entry.js → p-d41efada.entry.js} +1 -1
  82. package/dist/ldf/p-e4f0cd91.entry.js +1 -0
  83. package/dist/ldf/p-f0de7628.entry.js +1 -0
  84. package/dist/ldf/{p-c1bcd0a9.entry.js → p-fa191f47.entry.js} +1 -1
  85. package/dist/ldf/p-fb2e5aa0.entry.js +1 -0
  86. package/package.json +2 -2
  87. package/dist/ldf/p-0d44076e.entry.js +0 -1
  88. package/dist/ldf/p-1504379f.entry.js +0 -1
  89. package/dist/ldf/p-2fa1c501.entry.js +0 -1
  90. package/dist/ldf/p-3174f69c.entry.js +0 -1
  91. package/dist/ldf/p-31d27100.js +0 -1
  92. package/dist/ldf/p-37f356a4.entry.js +0 -1
  93. package/dist/ldf/p-4d392128.entry.js +0 -1
  94. package/dist/ldf/p-626a614d.entry.js +0 -1
  95. package/dist/ldf/p-673e7c2c.entry.js +0 -1
  96. package/dist/ldf/p-698a3399.entry.js +0 -1
  97. package/dist/ldf/p-73a16936.entry.js +0 -1
  98. package/dist/ldf/p-8ee9ccd3.js +0 -1
  99. package/dist/ldf/p-972e4f2a.entry.js +0 -1
  100. package/dist/ldf/p-9cf557f9.js +0 -1
  101. package/dist/ldf/p-b355bfa2.js +0 -1
  102. package/dist/ldf/p-b667a7c2.entry.js +0 -1
  103. package/dist/ldf/p-d49a739d.js +0 -1
  104. package/dist/ldf/p-d7fa99cc.entry.js +0 -1
  105. 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 index$1 = require('./index-5e2cc9e9.js');
6
+ const book = require('./book-1a92678a.js');
7
7
  const change = require('./change-cdb1e8c0.js');
8
- const specificClass = require('./specific-class-94e41d45.js');
8
+ const specificClass = require('./specific-class-c586a541.js');
9
9
  const locale = require('./locale-d4e925b1.js');
10
- require('./_commonjsHelpers-bcc1208a.js');
11
- require('./rubric-662d8baa.js');
12
- require('./heading-d3809e59.js');
13
- require('./option-961df0f2.js');
14
- require('./refrain-a605892e.js');
15
- require('./text-c5e8ca0a.js');
10
+ require('./rubric-5b467a6a.js');
11
+ require('./heading-5afc2b24.js');
12
+ require('./option-e2221398.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 index$1.LiturgicalDocument();
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 index$1.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() }))))))))));
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('./index-5e2cc9e9.js');
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('./index-5e2cc9e9.js');
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('./index-5e2cc9e9.js');
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('./index-5e2cc9e9.js');
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 index$1 = require('./index-5e2cc9e9.js');
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$2 = require('./index-de13bd01.js');
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 index$1.LiturgicalDocument(JSON.parse(newDoc));
32
+ this.obj = new book.LiturgicalDocument(JSON.parse(newDoc));
33
33
  }
34
34
  else {
35
- this.obj = new index$1.LiturgicalDocument(newDoc);
35
+ this.obj = new book.LiturgicalDocument(newDoc);
36
36
  }
37
37
  }
38
38
  catch (e) {
39
39
  console.warn(e);
40
- this.obj = new index$1.LiturgicalDocument();
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$2.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,
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$2.querySelectorDeep('ldf-editable-filter-documents'));
121
+ this.editorAskForCanticleOptions.emit(index$1.querySelectorDeep('ldf-editable-filter-documents'));
122
122
  }
123
123
  onAskForPT( /*ev : CustomEvent*/) {
124
- this.editorAskForPrayersAndThanksgivings.emit(index$2.querySelectorDeep('ldf-prayers-and-thanksgivings'));
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$2.values_js(user.color).tint(40).hexString(),
225
- borderColor: new index$2.values_js(user.color).shade(10).hexString()
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$2.values_js(u.color).tint(40).hexString(),
228
- borderColor: new index$2.values_js(u.color).shade(10).hexString()
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 index = require('./index-5e2cc9e9.js');
3
+ const book = require('./book-1a92678a.js');
4
4
 
5
5
  function versionToString(version) {
6
6
  if (typeof version === 'string') {
@@ -24,7 +24,7 @@ function modifiedVersion(option) {
24
24
  ? 'bcp1979_psalm'
25
25
  : option.version;
26
26
  }
27
- class Option extends index.LiturgicalDocument {
27
+ class Option extends book.LiturgicalDocument {
28
28
  //** Constructor takes a Javascript object containing the class's properties */
29
29
  constructor(data = {}) {
30
30
  super(data);
@@ -91,7 +91,7 @@ class Option extends index.LiturgicalDocument {
91
91
  }
92
92
  }
93
93
  // Readings with same citation + different versions => Version
94
- else if (uniqueCitations == 1) {
94
+ else if (option.type == 'bible-reading' && uniqueCitations == 1) {
95
95
  label = versionToString(option.version);
96
96
  }
97
97
  // Readings with one version => John 1:1-4
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-5e2cc9e9.js');
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 index.LiturgicalDocument {
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 index = require('./index-5e2cc9e9.js');
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 index.LiturgicalDocument {
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 index.LiturgicalDocument(Object.assign(Object.assign({}, this.metadata.intro), { value: newValue }));
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 index.LiturgicalDocument {
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 index.LiturgicalDocument {
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 index.LiturgicalDocument {
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 index.LiturgicalDocument {
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 index.LiturgicalDocument {
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-662d8baa.js');
4
- const heading = require('./heading-d3809e59.js');
5
- const option = require('./option-961df0f2.js');
6
- const refrain = require('./refrain-a605892e.js');
7
- const text = require('./text-c5e8ca0a.js');
3
+ const rubric = require('./rubric-5b467a6a.js');
4
+ const heading = require('./heading-5afc2b24.js');
5
+ const option = require('./option-e2221398.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 index = require('./index-5e2cc9e9.js');
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 index.LiturgicalDocument {
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 => verse.hasOwnProperty('type') && verse.type === 'heading'
185
- ? h("ldf-heading", { doc: new Heading(verse) })
186
- : h("ldf-string", { citation: { book: verse.book, chapter: verse.chapter, verse: verse.verse }, id: this.obj.uid, text: verse.text, fragment: this.path })),
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))));