@venite/components 0.16.19 → 0.16.20

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 (117) hide show
  1. package/dist/cjs/{change-cdb1e8c0.js → change-deff223a.js} +0 -0
  2. package/dist/cjs/{cursor-81bfd01e.js → cursor-849a5372.js} +0 -0
  3. package/dist/cjs/{heading-5afc2b24.js → heading-fae3ce98.js} +2 -2
  4. package/dist/cjs/{image-3bee3e73.js → image-41000c7b.js} +2 -2
  5. package/dist/cjs/{book-1a92678a.js → index-c9b940c7.js} +96 -2
  6. package/dist/cjs/ion-button_13.cjs.entry.js +3 -2
  7. package/dist/cjs/ion-card-content_6.cjs.entry.js +4 -3
  8. package/dist/cjs/ion-checkbox_3.cjs.entry.js +3 -2
  9. package/dist/cjs/ion-input_2.cjs.entry.js +3 -3
  10. package/dist/cjs/ion-segment_16.cjs.entry.js +20 -20
  11. package/dist/cjs/ldf-day-name_5.cjs.entry.js +79 -77
  12. package/dist/cjs/ldf-editable-add-block-menu.cjs.entry.js +10 -9
  13. package/dist/cjs/ldf-editable-condition-piece.cjs.entry.js +7 -6
  14. package/dist/cjs/ldf-editable-condition.cjs.entry.js +5 -4
  15. package/dist/cjs/ldf-editable-filter-documents.cjs.entry.js +11 -10
  16. package/dist/cjs/ldf-editable-lookup_2.cjs.entry.js +10 -9
  17. package/dist/cjs/ldf-editable-metadata.cjs.entry.js +11 -10
  18. package/dist/cjs/ldf-editable-preference-option.cjs.entry.js +4 -3
  19. package/dist/cjs/ldf-editable-preference.cjs.entry.js +4 -3
  20. package/dist/cjs/ldf-editable-preferences.cjs.entry.js +4 -3
  21. package/dist/cjs/ldf-editable-string-list.cjs.entry.js +3 -2
  22. package/dist/cjs/ldf-editor.cjs.entry.js +14 -14
  23. package/dist/cjs/{option-a078d432.js → option-6fb78f5c.js} +5 -17
  24. package/dist/cjs/{preference-a4bd51c4.js → preference-1365e161.js} +0 -0
  25. package/dist/cjs/{refrain-91fb446b.js → refrain-f51fd88d.js} +2 -2
  26. package/dist/cjs/{rubric-0afbe4c0.js → rubric-ad2f926f.js} +16 -485
  27. package/dist/cjs/{specific-class-76b4d343.js → specific-class-071762e7.js} +5 -5
  28. package/dist/cjs/{text-5edb80f3.js → text-8d8d32e7.js} +2 -2
  29. package/dist/collection/components/text/dist/text.js +15 -15
  30. package/dist/collection/components/text/text.css +14 -1
  31. package/dist/collection/components/text/text.i18n.en.json +2 -1
  32. package/dist/collection/components/text/text.i18n.es.json +2 -1
  33. package/dist/collection/components/text/text.js +16 -16
  34. package/dist/collection/i18n/text.i18n.en.json +2 -1
  35. package/dist/collection/i18n/text.i18n.es.json +2 -1
  36. package/dist/esm/{change-ea574d32.js → change-b077b77c.js} +0 -0
  37. package/dist/esm/{cursor-0e47f111.js → cursor-cb97384b.js} +0 -0
  38. package/dist/esm/{heading-cc5ffa8a.js → heading-c03fbe8b.js} +1 -1
  39. package/dist/esm/{image-c6a3f0c5.js → image-a1336f0a.js} +1 -1
  40. package/dist/esm/{book-31b8cdde.js → index-2e220677.js} +96 -2
  41. package/dist/esm/ion-button_13.entry.js +3 -2
  42. package/dist/esm/ion-card-content_6.entry.js +4 -3
  43. package/dist/esm/ion-checkbox_3.entry.js +3 -2
  44. package/dist/esm/ion-input_2.entry.js +3 -3
  45. package/dist/esm/ion-segment_16.entry.js +7 -7
  46. package/dist/esm/ldf-day-name_5.entry.js +19 -17
  47. package/dist/esm/ldf-editable-add-block-menu.entry.js +8 -7
  48. package/dist/esm/ldf-editable-condition-piece.entry.js +3 -2
  49. package/dist/esm/ldf-editable-condition.entry.js +3 -2
  50. package/dist/esm/ldf-editable-filter-documents.entry.js +3 -2
  51. package/dist/esm/ldf-editable-lookup_2.entry.js +9 -8
  52. package/dist/esm/ldf-editable-metadata.entry.js +9 -8
  53. package/dist/esm/ldf-editable-preference-option.entry.js +4 -3
  54. package/dist/esm/ldf-editable-preference.entry.js +4 -3
  55. package/dist/esm/ldf-editable-preferences.entry.js +4 -3
  56. package/dist/esm/ldf-editable-string-list.entry.js +3 -2
  57. package/dist/esm/ldf-editor.entry.js +3 -3
  58. package/dist/esm/{option-c16af13a.js → option-e130a4b2.js} +4 -16
  59. package/dist/esm/{preference-d070d4cb.js → preference-60cdfde3.js} +0 -0
  60. package/dist/esm/{refrain-75a412cb.js → refrain-9b9f05cc.js} +1 -1
  61. package/dist/esm/{rubric-f779c469.js → rubric-0d2b870d.js} +9 -478
  62. package/dist/esm/{specific-class-09c98625.js → specific-class-3f0e0c45.js} +5 -5
  63. package/dist/esm/{text-ed75fbd4.js → text-801eb7de.js} +1 -1
  64. package/dist/ldf/i18n/text.i18n.en.json +2 -1
  65. package/dist/ldf/i18n/text.i18n.es.json +2 -1
  66. package/dist/ldf/ldf.esm.js +1 -1
  67. package/dist/ldf/{p-95650471.entry.js → p-05ac8045.entry.js} +1 -1
  68. package/dist/ldf/{p-23af1bc3.entry.js → p-0d9b71a8.entry.js} +1 -1
  69. package/dist/ldf/{p-8ec26587.js → p-12d81208.js} +0 -0
  70. package/dist/ldf/{p-991c0877.js → p-2a08ff25.js} +0 -0
  71. package/dist/ldf/p-31a1f740.js +1 -0
  72. package/dist/ldf/p-34e37c39.entry.js +1 -0
  73. package/dist/ldf/p-37d9f551.entry.js +1 -0
  74. package/dist/ldf/p-3a7cb4d5.entry.js +1 -0
  75. package/dist/ldf/p-3e0814c2.entry.js +1 -0
  76. package/dist/ldf/p-405928d1.js +1 -0
  77. package/dist/ldf/p-4ed034a1.js +1 -0
  78. package/dist/ldf/p-5eef960d.entry.js +1 -0
  79. package/dist/ldf/p-67c52455.entry.js +1 -0
  80. package/dist/ldf/p-69d493f3.entry.js +1 -0
  81. package/dist/ldf/{p-5066eaa5.js → p-6a68fa7b.js} +0 -0
  82. package/dist/ldf/p-80f6ec9f.js +1 -0
  83. package/dist/ldf/p-82f2facb.entry.js +1 -0
  84. package/dist/ldf/{p-5b43e6be.js → p-93911ad1.js} +1 -1
  85. package/dist/ldf/p-9424ca03.entry.js +1 -0
  86. package/dist/ldf/p-952f8992.entry.js +1 -0
  87. package/dist/ldf/p-9b008ca8.entry.js +1 -0
  88. package/dist/ldf/p-a712728b.js +1 -0
  89. package/dist/ldf/p-b3b245a2.entry.js +1 -0
  90. package/dist/ldf/p-bc84c531.entry.js +1 -0
  91. package/dist/ldf/p-be6c5df8.entry.js +1 -0
  92. package/dist/ldf/p-c02098e2.entry.js +1 -0
  93. package/dist/ldf/p-cec60628.js +1 -0
  94. package/dist/ldf/p-ff0452c1.js +3 -0
  95. package/package.json +1 -1
  96. package/dist/ldf/p-005ad01b.entry.js +0 -1
  97. package/dist/ldf/p-00e5ee6b.js +0 -1
  98. package/dist/ldf/p-03afc8cb.entry.js +0 -1
  99. package/dist/ldf/p-2ae548b3.entry.js +0 -1
  100. package/dist/ldf/p-2c39ce94.entry.js +0 -1
  101. package/dist/ldf/p-304a2bdb.entry.js +0 -1
  102. package/dist/ldf/p-476327d6.js +0 -1
  103. package/dist/ldf/p-4aa9a6f2.js +0 -1
  104. package/dist/ldf/p-594fa9d4.entry.js +0 -1
  105. package/dist/ldf/p-59683bec.entry.js +0 -1
  106. package/dist/ldf/p-65563763.entry.js +0 -1
  107. package/dist/ldf/p-65d26c45.js +0 -1
  108. package/dist/ldf/p-65ea7ab3.entry.js +0 -1
  109. package/dist/ldf/p-800a115c.entry.js +0 -1
  110. package/dist/ldf/p-9c1973a6.entry.js +0 -1
  111. package/dist/ldf/p-a1729dbd.js +0 -1
  112. package/dist/ldf/p-c0ef6296.entry.js +0 -1
  113. package/dist/ldf/p-d56dff05.js +0 -3
  114. package/dist/ldf/p-e4f0cd91.entry.js +0 -1
  115. package/dist/ldf/p-e7a449d7.js +0 -1
  116. package/dist/ldf/p-f0de7628.entry.js +0 -1
  117. package/dist/ldf/p-fa191f47.entry.js +0 -1
@@ -3,15 +3,16 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-8fe0df8d.js');
6
- const book = require('./book-1a92678a.js');
7
- const change = require('./change-cdb1e8c0.js');
8
- const option = require('./option-a078d432.js');
9
- const specificClass = require('./specific-class-76b4d343.js');
6
+ const index$1 = require('./index-c9b940c7.js');
7
+ const change = require('./change-deff223a.js');
8
+ const option = require('./option-6fb78f5c.js');
9
+ const specificClass = require('./specific-class-071762e7.js');
10
10
  const locale = require('./locale-d4e925b1.js');
11
- require('./rubric-0afbe4c0.js');
12
- require('./heading-5afc2b24.js');
13
- require('./refrain-91fb446b.js');
14
- require('./text-5edb80f3.js');
11
+ require('./_commonjsHelpers-bcc1208a.js');
12
+ require('./rubric-ad2f926f.js');
13
+ require('./heading-fae3ce98.js');
14
+ require('./refrain-f51fd88d.js');
15
+ require('./text-8d8d32e7.js');
15
16
 
16
17
  const LOCALE_STRINGS = {
17
18
  "allowMultiple": "Allow multiple options",
@@ -261,7 +262,7 @@ const EditableMetadataMetadataFieldsComponent = class {
261
262
  }
262
263
  catch (e) {
263
264
  console.warn(e);
264
- this.obj = new book.LiturgicalDocument();
265
+ this.obj = new index$1.LiturgicalDocument();
265
266
  }
266
267
  }
267
268
  introsChanged() {
@@ -3,15 +3,16 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-8fe0df8d.js');
6
- const book = require('./book-1a92678a.js');
7
- const change = require('./change-cdb1e8c0.js');
8
- const specificClass = require('./specific-class-76b4d343.js');
6
+ const index$1 = require('./index-c9b940c7.js');
7
+ const change = require('./change-deff223a.js');
8
+ const specificClass = require('./specific-class-071762e7.js');
9
9
  const locale = require('./locale-d4e925b1.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');
10
+ require('./_commonjsHelpers-bcc1208a.js');
11
+ require('./rubric-ad2f926f.js');
12
+ require('./heading-fae3ce98.js');
13
+ require('./option-6fb78f5c.js');
14
+ require('./refrain-f51fd88d.js');
15
+ require('./text-8d8d32e7.js');
15
16
 
16
17
  const abbreviated = "Abbreviated";
17
18
  const advanced = "Advanced Settings";
@@ -130,7 +131,7 @@ const EditableMetadataComponent = class {
130
131
  }
131
132
  catch (e) {
132
133
  console.warn(e);
133
- this.obj = new book.LiturgicalDocument();
134
+ this.obj = new index$1.LiturgicalDocument();
134
135
  }
135
136
  }
136
137
  // Lifecycle events
@@ -174,7 +175,7 @@ const EditableMetadataComponent = class {
174
175
  const bipartiteName = name.includes('/'), nameParts = name.split('/'), text = bipartiteName ? (this.obj[nameParts[0]] || {})[nameParts[1]] : this.obj[name];
175
176
  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] })));
176
177
  };
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() }))))))))));
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() }))))))))));
178
179
  }
179
180
  get element() { return index.getElement(this); }
180
181
  static get watchers() { return {
@@ -3,10 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-8fe0df8d.js');
6
- require('./book-1a92678a.js');
7
- const preference = require('./preference-a4bd51c4.js');
8
- const change = require('./change-cdb1e8c0.js');
6
+ require('./index-c9b940c7.js');
7
+ const preference = require('./preference-1365e161.js');
8
+ const change = require('./change-deff223a.js');
9
9
  const locale = require('./locale-d4e925b1.js');
10
+ require('./_commonjsHelpers-bcc1208a.js');
10
11
 
11
12
  const additional = "Advanced Settings";
12
13
  const alternateYear = "“Alternate Year” Reading";
@@ -3,10 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-8fe0df8d.js');
6
- require('./book-1a92678a.js');
7
- const preference$1 = require('./preference-a4bd51c4.js');
8
- const change = require('./change-cdb1e8c0.js');
6
+ require('./index-c9b940c7.js');
7
+ const preference$1 = require('./preference-1365e161.js');
8
+ const change = require('./change-deff223a.js');
9
9
  const locale = require('./locale-d4e925b1.js');
10
+ require('./_commonjsHelpers-bcc1208a.js');
10
11
 
11
12
  const add = "Add an Option";
12
13
  const category = "Category";
@@ -4,12 +4,13 @@ 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('./book-1a92678a.js');
8
- const preference = require('./preference-a4bd51c4.js');
9
- const change = require('./change-cdb1e8c0.js');
7
+ require('./index-c9b940c7.js');
8
+ const preference = require('./preference-1365e161.js');
9
+ const change = require('./change-deff223a.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');
13
14
 
14
15
  function categoriesToPreferenceTree(categories, preferences) {
15
16
  return categories.reduce((obj, category) => (Object.assign(Object.assign({}, obj), { [category]: Object.entries(preferences)
@@ -3,9 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-8fe0df8d.js');
6
- require('./book-1a92678a.js');
7
- const change = require('./change-cdb1e8c0.js');
6
+ 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 category = {
11
12
  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 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-de13bd01.js');
6
+ const index$1 = require('./index-c9b940c7.js');
7
+ const cursor = require('./cursor-849a5372.js');
8
+ const change = require('./change-deff223a.js');
9
+ const index$2 = 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 book.LiturgicalDocument(JSON.parse(newDoc));
32
+ this.obj = new index$1.LiturgicalDocument(JSON.parse(newDoc));
33
33
  }
34
34
  else {
35
- this.obj = new book.LiturgicalDocument(newDoc);
35
+ this.obj = new index$1.LiturgicalDocument(newDoc);
36
36
  }
37
37
  }
38
38
  catch (e) {
39
39
  console.warn(e);
40
- this.obj = new book.LiturgicalDocument();
40
+ this.obj = new index$1.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$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,
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,
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$1.querySelectorDeep('ldf-editable-filter-documents'));
121
+ this.editorAskForCanticleOptions.emit(index$2.querySelectorDeep('ldf-editable-filter-documents'));
122
122
  }
123
123
  onAskForPT( /*ev : CustomEvent*/) {
124
- this.editorAskForPrayersAndThanksgivings.emit(index$1.querySelectorDeep('ldf-prayers-and-thanksgivings'));
124
+ this.editorAskForPrayersAndThanksgivings.emit(index$2.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$1.values_js(user.color).tint(40).hexString(),
225
- borderColor: new index$1.values_js(user.color).shade(10).hexString()
224
+ backgroundColor: new index$2.values_js(user.color).tint(40).hexString(),
225
+ borderColor: new index$2.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$1.values_js(u.color).tint(40).hexString(),
228
- borderColor: new index$1.values_js(u.color).shade(10).hexString()
227
+ backgroundColor: new index$2.values_js(u.color).tint(40).hexString(),
228
+ borderColor: new index$2.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 book = require('./book-1a92678a.js');
3
+ const index = require('./index-c9b940c7.js');
4
4
 
5
5
  function versionToString(version) {
6
6
  if (typeof version === 'string') {
@@ -18,15 +18,13 @@ const VERSIONS = {
18
18
  eow: 'EOW',
19
19
  coverdale: 'Coverdale',
20
20
  rite_i: 'Rite I',
21
- bhs: 'Hebrew',
22
- hebrew: 'Hebrew',
23
21
  };
24
22
  function modifiedVersion(option) {
25
23
  return option.type === 'psalm' && option.style === 'psalm' && option.version === 'bcp1979'
26
24
  ? 'bcp1979_psalm'
27
25
  : option.version;
28
26
  }
29
- class Option extends book.LiturgicalDocument {
27
+ class Option extends index.LiturgicalDocument {
30
28
  //** Constructor takes a Javascript object containing the class's properties */
31
29
  constructor(data = {}) {
32
30
  super(data);
@@ -58,10 +56,7 @@ class Option extends book.LiturgicalDocument {
58
56
  var _a, _b, _c;
59
57
  const uniqueVersions = this.uniqueVersions(), uniqueLabels = this.uniqueLabels(), uniqueCitations = this.uniqueCitations(), uniqueCanticleNumbers = this.uniqueCanticleNumbers();
60
58
  let label = '';
61
- if (option.version_label) {
62
- label = option.version_label;
63
- }
64
- else if (option.type == 'liturgy') {
59
+ if (option.type == 'liturgy') {
65
60
  label = option.label || option.version_label || 'Option';
66
61
  }
67
62
  // Psalm 119 parts => Psalm 119: Aleph
@@ -71,9 +66,6 @@ class Option extends book.LiturgicalDocument {
71
66
  (((_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/)))) {
72
67
  label = option.label;
73
68
  }
74
- else if (option.type == 'psalm' && uniqueVersions > 1) {
75
- label = option.version_label || VERSIONS[versionToString(option.version)];
76
- }
77
69
  // Other psalms: Psalm 121
78
70
  else if (option.type == 'psalm' &&
79
71
  option.style == 'psalm' &&
@@ -98,17 +90,13 @@ class Option extends book.LiturgicalDocument {
98
90
  label = `${option.citation.toString()}${formattedText}`;
99
91
  }
100
92
  }
101
- // Readings with same citation + different versions => Version
102
- else if (option.type == 'bible-reading' && uniqueCitations == 1) {
103
- label = versionToString(option.version);
104
- }
105
93
  // Readings with one version => John 1:1-4
106
94
  else if (option.type == 'bible-reading' && option.citation && uniqueVersions == 1) {
107
95
  label = option.citation.toString();
108
96
  }
109
- // Readings with multiple versions => John 1:1-4 (Version)
97
+ // Readings with multiple versions => John 1:1-4
110
98
  else if (option.type == 'bible-reading' && option.citation && uniqueVersions > 1) {
111
- label = `${option.citation.toString()} (${versionToString(option.version)})`;
99
+ label = `${option.citation.toString()} (${option.version})`;
112
100
  }
113
101
  // Canticles, if only one version
114
102
  else if (uniqueVersions == 1 &&
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- const book = require('./book-1a92678a.js');
3
+ const index = require('./index-c9b940c7.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 book.LiturgicalDocument {
7
+ class Refrain extends index.LiturgicalDocument {
8
8
  //** Constructor takes a Javascript object containing the class's properties */
9
9
  constructor(data = {}) {
10
10
  super(data);