@venite/components 0.16.23 → 0.16.26
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-b22a8b22.js → index-de13bd01.js} +0 -0
- package/dist/cjs/ion-segment_16.cjs.entry.js +12 -6
- package/dist/cjs/ldf-day-name_5.cjs.entry.js +5 -5
- package/dist/cjs/ldf-editable-filter-documents.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editor-cursors.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editor.cjs.entry.js +1 -1
- package/dist/collection/components/bible-reading/dist/bible-reading.js +3 -0
- package/dist/collection/components/editable-filter-documents/dist/editable-filter-documents.js +1 -1
- package/dist/collection/components/editable-filter-documents/editable-filter-documents.js +1 -1
- package/dist/collection/components/option/dist/option.js +2 -2
- package/dist/collection/components/option/option.js +2 -2
- package/dist/collection/components/psalm/dist/psalm.js +3 -1
- package/dist/collection/components/psalm/psalm.i18n.es.json +3 -0
- package/dist/collection/components/psalm/psalm.js +2 -0
- package/dist/collection/components/string/dist/string.js +4 -4
- package/dist/collection/components/string/string.js +6 -6
- package/dist/collection/i18n/psalm.i18n.es.json +3 -0
- package/dist/esm/{index-a3645557.js → index-1bf6d100.js} +0 -0
- package/dist/esm/ion-segment_16.entry.js +12 -6
- package/dist/esm/ldf-day-name_5.entry.js +5 -5
- package/dist/esm/ldf-editable-filter-documents.entry.js +1 -1
- package/dist/esm/ldf-editor-cursors.entry.js +1 -1
- package/dist/esm/ldf-editor.entry.js +1 -1
- package/dist/ldf/i18n/psalm.i18n.es.json +3 -0
- package/dist/ldf/ldf.esm.js +1 -1
- package/dist/ldf/{p-ba9eda0b.entry.js → p-23af1bc3.entry.js} +1 -1
- package/dist/ldf/{p-8e00a6ae.js → p-3ca74c80.js} +0 -0
- package/dist/ldf/p-66d56f86.entry.js +1 -0
- package/dist/ldf/{p-39d4be39.entry.js → p-70e47f8b.entry.js} +1 -1
- package/dist/ldf/{p-592ea68f.entry.js → p-8f60db69.entry.js} +1 -1
- package/dist/ldf/{p-304a2bdb.entry.js → p-c1a86b14.entry.js} +1 -1
- package/package.json +1 -1
- package/dist/ldf/p-e301606a.entry.js +0 -1
|
File without changes
|
|
@@ -443,7 +443,7 @@ const EN$8 = {
|
|
|
443
443
|
|
|
444
444
|
const amen = "Amén.";
|
|
445
445
|
const loading = "Se está cargando...";
|
|
446
|
-
const ES = {
|
|
446
|
+
const ES$1 = {
|
|
447
447
|
amen: amen,
|
|
448
448
|
loading: loading
|
|
449
449
|
};
|
|
@@ -470,7 +470,7 @@ const bibleReadingCss = "ldf-bible-reading.sc-ldf-bible-reading,.sc-ldf-bible-re
|
|
|
470
470
|
|
|
471
471
|
const LOCALE$8 = {
|
|
472
472
|
'en': EN$8,
|
|
473
|
-
'es': ES
|
|
473
|
+
'es': ES$1
|
|
474
474
|
};
|
|
475
475
|
const BibleReadingComponent = class {
|
|
476
476
|
constructor(hostRef) {
|
|
@@ -1998,8 +1998,8 @@ const OptionComponent = class {
|
|
|
1998
1998
|
const optionsAreLong = (((_m = this.obj) === null || _m === void 0 ? void 0 : _m.value) || [])
|
|
1999
1999
|
.map((option, optionIndex) => { var _a; return ((_a = this.versionLabel(option, optionIndex)) === null || _a === void 0 ? void 0 : _a.length) > 20; })
|
|
2000
2000
|
.reduce((a, b) => a || b, false);
|
|
2001
|
-
// <=
|
|
2002
|
-
if (!optionsAreLong && ((_o = this.obj) === null || _o === void 0 ? void 0 : _o.value.length) <=
|
|
2001
|
+
// <= 3, short options
|
|
2002
|
+
if (!optionsAreLong && ((_o = this.obj) === null || _o === void 0 ? void 0 : _o.value.length) <= 3) {
|
|
2003
2003
|
return (index.h("ion-segment", { color: "primary", value: currentlySelected.toString() }, (_p = this.obj) === null || _p === void 0 ? void 0 :
|
|
2004
2004
|
_p.value.map((option, optionIndex) => index.h("ion-segment-button", { value: optionIndex.toString(), onClick: () => this.select(optionIndex, true) }, index.h("ion-label", null, this.versionLabel(option, optionIndex)))), this.editable && index.h("ion-segment-button", { value: 'add', class: 'add', onClick: () => this.select('add', true) }, index.h("ion-label", null, "+"))));
|
|
2005
2005
|
}
|
|
@@ -2041,7 +2041,7 @@ const OptionComponent = class {
|
|
|
2041
2041
|
};
|
|
2042
2042
|
OptionComponent.style = optionCss;
|
|
2043
2043
|
|
|
2044
|
-
const changeCanticle = "Change Canticle";
|
|
2044
|
+
const changeCanticle$1 = "Change Canticle";
|
|
2045
2045
|
const citation$1 = "(Biblical) Citation";
|
|
2046
2046
|
const label$1 = "Label";
|
|
2047
2047
|
const latinname = "Latin Name";
|
|
@@ -2050,7 +2050,7 @@ const section_break_remove = "x remove section break";
|
|
|
2050
2050
|
const source$1 = "Source";
|
|
2051
2051
|
const source_citation = "Citation";
|
|
2052
2052
|
const EN$1 = {
|
|
2053
|
-
changeCanticle: changeCanticle,
|
|
2053
|
+
changeCanticle: changeCanticle$1,
|
|
2054
2054
|
citation: citation$1,
|
|
2055
2055
|
label: label$1,
|
|
2056
2056
|
latinname: latinname,
|
|
@@ -2060,10 +2060,16 @@ const EN$1 = {
|
|
|
2060
2060
|
source_citation: source_citation
|
|
2061
2061
|
};
|
|
2062
2062
|
|
|
2063
|
+
const changeCanticle = "Elige otro Cántico";
|
|
2064
|
+
const ES = {
|
|
2065
|
+
changeCanticle: changeCanticle
|
|
2066
|
+
};
|
|
2067
|
+
|
|
2063
2068
|
const psalmCss = "ldf-psalm.sc-ldf-psalm,.sc-ldf-psalm-h{font-family:var(--ldf-font-face);--ldf-drop-margin-right:var(--ldf-drop-psalm-margin-right)}ldf-psalm[lang=he].sc-ldf-psalm .verse.sc-ldf-psalm,[lang=he].sc-ldf-psalm-h .verse.sc-ldf-psalm{text-align:right;--ldf-drop-float:right}.psalm-set.sc-ldf-psalm{margin-top:0.5em;margin-bottom:0.5em}.psalm-set.sc-ldf-psalm .psalm.sc-ldf-psalm{display:var(--ldf-psalm-grid-display);grid-template-columns:var(--ldf-psalm-grid-template-columns);grid-template-rows:auto;grid-template-areas:var(--ldf-psalm-grid-template-areas);margin:0;text-indent:var(--ldf-psalm-verse-indentation)}.psalm-set.sc-ldf-psalm .psalm.sc-ldf-psalm br.sc-ldf-psalm{display:var(--ldf-psalm-line-break-display)}.psalm-set.sc-ldf-psalm .psalm.sc-ldf-psalm sup.sc-ldf-psalm{float:var(--ldf-psalm-number-float);display:var(--ldf-psalm-number-display);grid-area:var(--ldf-psalm-number-grid-area);margin-right:var(--ldf-psalm-number-margin-right)}.psalm-set.sc-ldf-psalm .psalm.sc-ldf-psalm .text.sc-ldf-psalm{display:var(--ldf-psalm-text-display);grid-area:var(--ldf-psalm-text-grid-area)}.psalm-set.sc-ldf-psalm .psalm.sc-ldf-psalm .halfverse.sc-ldf-psalm{margin-left:var(--ldf-psalm-halfverse-margin-left)}.psalm-set.sc-ldf-psalm .psalm.sc-ldf-psalm .verse.sc-ldf-psalm,.psalm-set.sc-ldf-psalm .psalm.sc-ldf-psalm .halfverse.sc-ldf-psalm{display:var(--ldf-psalm-verse-display)}.psalm-set.sc-ldf-psalm .psalm.sc-ldf-psalm .halfverse.sc-ldf-psalm{display:var(--ldf-psalm-halfverse-display, var(--ldf-psalm-verse-display))}.editable.sc-ldf-psalm .verse.sc-ldf-psalm,.editable.sc-ldf-psalm .halfverse.sc-ldf-psalm{width:100%}.psalm-parent.no-numbers.sc-ldf-psalm{display:block;text-align:left;grid-template-columns:none;grid-template-rows:none;grid-template-areas:none}.psalm-parent.no-numbers.sc-ldf-psalm .psalm.sc-ldf-psalm{display:block;grid-template-columns:none;grid-template-rows:none;grid-template-areas:none}.psalm-parent.no-numbers.sc-ldf-psalm .psalm.sc-ldf-psalm .text.sc-ldf-psalm{text-align:left;grid-area:none;display:var(--ldf-psalm-text-display);width:100%}.psalm-set.sc-ldf-psalm .psalm.sc-ldf-psalm:nth-of-type(1) sup.sc-ldf-psalm{display:var(--ldf-psalm-set-first-verse-number-display)}.psalm-set.sc-ldf-psalm .psalm.sc-ldf-psalm:nth-of-type(1) .text.sc-ldf-psalm:nth-of-type(1) .verse.sc-ldf-psalm:nth-of-type(1){display:var(--ldf-psalm-set-first-verse-display)}.psalm-set.sc-ldf-psalm .psalm.sc-ldf-psalm:nth-of-type(1) .text.sc-ldf-psalm:nth-of-type(1) .halfverse.sc-ldf-psalm:nth-of-type(2){display:var(--ldf-psalm-set-first-half-verse-display, inline-block)}.psalm-set.sc-ldf-psalm:nth-of-type(1) .psalm.sc-ldf-psalm:nth-of-type(1) sup.sc-ldf-psalm{display:var(--ldf-psalm-first-verse-number-display)}.psalm-set.sc-ldf-psalm:nth-of-type(1) .psalm.sc-ldf-psalm:nth-of-type(1) .text.sc-ldf-psalm:nth-of-type(1) .verse.sc-ldf-psalm:nth-of-type(1){display:var(--ldf-psalm-first-verse-display)}.psalm-set.sc-ldf-psalm:nth-of-type(1) .psalm.sc-ldf-psalm:nth-of-type(1) .text.sc-ldf-psalm:nth-of-type(1) .halfverse.sc-ldf-psalm:nth-of-type(2){display:var(--ldf-psalm-first-half-verse-display, inline-block)}.antiphon.sc-ldf-psalm{display:var(--ldf-psalm-antiphon-display);font-style:var(--ldf-antiphon-font-style);font-weight:var(--ldf-antiphon-font-weight);margin-top:0.5em}.repeat-antiphon.sc-ldf-psalm{display:var(--ldf-psalm-repeat-antiphon-display)}h5.sc-ldf-psalm{font-size:1em;font-style:italic;font-weight:normal;margin-right:1em}.psalm.unison.sc-ldf-psalm .text.sc-ldf-psalm{font-weight:var(--ldf-unison-font-weight);font-style:var(--ldf-unison-font-style)}.psalm.omit.sc-ldf-psalm .text.sc-ldf-psalm{display:none}.psalm.wholeverse.sc-ldf-psalm .psalm.sc-ldf-psalm:nth-child(even),.psalm-parent.wholeverse.sc-ldf-psalm .psalm.sc-ldf-psalm:nth-child(even){font-weight:var(--ldf-response-font-weight);font-style:var(--ldf-response-font-style)}.psalm.halfverse.sc-ldf-psalm .halfverse.sc-ldf-psalm,.psalm-parent.halfverse.sc-ldf-psalm .halfverse.sc-ldf-psalm{font-weight:var(--ldf-response-font-weight);font-style:var(--ldf-response-font-style)}h3.editable-label.sc-ldf-psalm{text-align:var(--ldf-h3-text-align);font-weight:var(--ldf-h3-font-weight);font-style:var(--ldf-h3-font-style);font-variant:var(--ldf-h3-font-variant);font-size:var(--ldf-h3-font-size);text-transform:var(--ldf-h3-text-transform)}.section-break.sc-ldf-psalm{display:block;text-align:center;width:100%}.section-break.hidden.sc-ldf-psalm{display:none}";
|
|
2064
2069
|
|
|
2065
2070
|
const LOCALE$1 = {
|
|
2066
2071
|
'en': EN$1,
|
|
2072
|
+
'es': ES
|
|
2067
2073
|
};
|
|
2068
2074
|
const PsalmComponent = class {
|
|
2069
2075
|
constructor(hostRef) {
|
|
@@ -375,7 +375,7 @@ const StringComponent = class {
|
|
|
375
375
|
/**
|
|
376
376
|
* Minimum length (in characters) a string must be to have a dropcap.
|
|
377
377
|
*/
|
|
378
|
-
this.dropcapMinLength =
|
|
378
|
+
this.dropcapMinLength = 180;
|
|
379
379
|
/**
|
|
380
380
|
* Enable or disable replacement of tetragrammaton.
|
|
381
381
|
*/
|
|
@@ -391,7 +391,7 @@ const StringComponent = class {
|
|
|
391
391
|
if (this.replaceTetragrammaton) {
|
|
392
392
|
processed = processed.map(node => typeof node === 'string' ? this.processTetragrammaton(node) : node).flat();
|
|
393
393
|
}
|
|
394
|
-
if (this.dropcap == 'force' || (this.dropcap == 'enabled' && (this.index == 0 || !this.index) && this.text && this.text.length
|
|
394
|
+
if (this.dropcap == 'force' || (this.dropcap == 'enabled' && (this.index == 0 || !this.index) && this.text && this.text.length >= this.dropcapMinLength)) {
|
|
395
395
|
processed = this.processDropcap(processed);
|
|
396
396
|
}
|
|
397
397
|
this.processedString = processed;
|
|
@@ -480,9 +480,9 @@ const StringComponent = class {
|
|
|
480
480
|
if (firstChunk) {
|
|
481
481
|
const splitTest = (firstChunk || '').split(/[\s.!?\\]/);
|
|
482
482
|
const firstWord = splitTest ? splitTest[0] : '', re = firstWord.length > 2
|
|
483
|
-
? /^ ?([\"\'
|
|
484
|
-
: /^ ?([\"\'
|
|
485
|
-
? /^ ?([\"\'
|
|
483
|
+
? /^ ?([\"\'“”‘’¡\!\?\[\]\(\)\,\wñáéíóú\u0590-\u05ff\u0370-\u03ff])([\wñáéíóú\u0590-\u05ff\u0370-\u03ff\,]*)/
|
|
484
|
+
: /^ ?([\"\'“”‘’¡\!\?\[\]\(\)\,\wñáéíóú\u0590-\u05ff\u0370-\u03ff])([\wñáéíóú\u0590-\u05ff\u0370-\u03ff\,]*[\s.!?]*[\wñáéíóú\u0590-\u05ff\u0370-\u03ff]*)/, reIncludingPunctuation = ((_a = firstWord[0]) === null || _a === void 0 ? void 0 : _a.match(/[\"\'“”‘’¡\!\?\[\]\(\)]/))
|
|
485
|
+
? /^ ?([\"\'“”‘’¡\!\?\[\]\(\)\,\wñáéíóú\u0590-\u05ff\u0370-\u03ff]{2})\s*([\wñáéíóú\u0590-\u05ff\u0370-\u03ff]*)/
|
|
486
486
|
: re, buffer = firstWord.length == 1, split = firstChunk.split(reIncludingPunctuation).filter(s => s !== ''), [match1, match2, nextWord] = split;
|
|
487
487
|
final = new Array(index.h("span", { class: 'firstword' }, index.h("span", { class: buffer ? `drop buffered-drop drop-${match1}` : `drop drop-${match1}` }, match1), this.maintainCasing(match2) ? match2 : match2 === null || match2 === void 0 ? void 0 : match2.toLowerCase()))
|
|
488
488
|
.concat(nextWord)
|
|
@@ -133,7 +133,7 @@ const EditableFilterDocumentsComponent = class {
|
|
|
133
133
|
}
|
|
134
134
|
render() {
|
|
135
135
|
const localeStrings = this.localeStrings || {};
|
|
136
|
-
return (index.h(index.Host, null, this.modal && index.h("ion-header", null, index.h("ion-toolbar", null, index.h("ion-buttons", { slot: "end" }, index.h("ion-button", { onClick: () => this.modal.dismiss() }, index.h("ion-icon", { name: "close", slot: "icon-only" }))))), index.h("ion-content", null, index.h("form", null, index.h("ion-list", null, index.h("ion-button", { fill: "clear", onClick: () => { this.chooseDoc(docsToOption(this.filteredOptions)); this.choose(); } }, index.h("ion-label", null, localeStrings.includeAll)), this.versions && index.h("ion-item", null, index.h("ion-label", null, localeStrings.version), index.h("ion-select", { value: this.version, onIonChange: (ev) => this.chooseVersion(ev.detail.value) }, Object.entries(this.versions)
|
|
136
|
+
return (index.h(index.Host, null, this.modal && index.h("ion-header", null, index.h("ion-toolbar", null, index.h("ion-buttons", { slot: "end" }, index.h("ion-button", { onClick: () => this.modal.dismiss() }, index.h("ion-icon", { name: "close", slot: "icon-only" }))))), index.h("ion-content", null, index.h("form", null, index.h("ion-list", null, index.h("ion-button", { fill: "clear", onClick: () => { this.chooseDoc(docsToOption(this.filteredOptions)); this.choose(); } }, index.h("ion-label", null, localeStrings.includeAll)), this.versions && Object.values(this.versions).length > 1 && index.h("ion-item", null, index.h("ion-label", null, localeStrings.version), index.h("ion-select", { value: this.version, onIonChange: (ev) => this.chooseVersion(ev.detail.value) }, Object.entries(this.versions)
|
|
137
137
|
.sort((a, b) => a[0] > b[0] ? 1 : -1)
|
|
138
138
|
.map(([versionKey, versionLabel]) => index.h("ion-select-option", { value: versionKey }, versionLabel)))), index.h("ion-searchbar", { onIonChange: (ev) => this.filter(ev.detail.value) }), this.filteredOptions && this.filteredOptions.map(doc => {
|
|
139
139
|
var _a, _b, _c, _d;
|
|
@@ -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-de13bd01.js');
|
|
8
8
|
const _commonjsHelpers = require('./_commonjsHelpers-bcc1208a.js');
|
|
9
9
|
|
|
10
10
|
var textareaCaret = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
@@ -6,7 +6,7 @@ const index = require('./index-8fe0df8d.js');
|
|
|
6
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$1 = require('./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}";
|
|
@@ -76,13 +76,16 @@ var BibleReadingComponent = /** @class */ (function () {
|
|
|
76
76
|
else {
|
|
77
77
|
this.obj = new ldf_1.BibleReading(newDoc);
|
|
78
78
|
}
|
|
79
|
+
console.log("(BibleReading) docChanged => this.obj = ", this.obj);
|
|
79
80
|
this.processIntro();
|
|
81
|
+
console.log("(BibleReading) processIntro => this.obj = ", this.obj);
|
|
80
82
|
}
|
|
81
83
|
catch (e) {
|
|
82
84
|
console.warn(e);
|
|
83
85
|
this.obj = new ldf_1.BibleReading();
|
|
84
86
|
}
|
|
85
87
|
this.loadVerses();
|
|
88
|
+
console.log("(BibleReading) loadVerses => this.obj = ", this.obj);
|
|
86
89
|
};
|
|
87
90
|
// Lifecycle events
|
|
88
91
|
BibleReadingComponent.prototype.componentWillLoad = function () {
|
package/dist/collection/components/editable-filter-documents/dist/editable-filter-documents.js
CHANGED
|
@@ -168,7 +168,7 @@ var EditableFilterDocumentsComponent = /** @class */ (function () {
|
|
|
168
168
|
React.createElement("ion-list", null,
|
|
169
169
|
React.createElement("ion-button", { fill: "clear", onClick: function () { _this.chooseDoc(ldf_1.docsToOption(_this.filteredOptions)); _this.choose(); } },
|
|
170
170
|
React.createElement("ion-label", null, localeStrings.includeAll)),
|
|
171
|
-
this.versions && React.createElement("ion-item", null,
|
|
171
|
+
this.versions && Object.values(this.versions).length > 1 && React.createElement("ion-item", null,
|
|
172
172
|
React.createElement("ion-label", null, localeStrings.version),
|
|
173
173
|
React.createElement("ion-select", { value: this.version, onIonChange: function (ev) { return _this.chooseVersion(ev.detail.value); } }, Object.entries(this.versions)
|
|
174
174
|
.sort(function (a, b) { return a[0] > b[0] ? 1 : -1; })
|
|
@@ -90,7 +90,7 @@ export class EditableFilterDocumentsComponent {
|
|
|
90
90
|
h("ion-list", null,
|
|
91
91
|
h("ion-button", { fill: "clear", onClick: () => { this.chooseDoc(docsToOption(this.filteredOptions)); this.choose(); } },
|
|
92
92
|
h("ion-label", null, localeStrings.includeAll)),
|
|
93
|
-
this.versions && h("ion-item", null,
|
|
93
|
+
this.versions && Object.values(this.versions).length > 1 && h("ion-item", null,
|
|
94
94
|
h("ion-label", null, localeStrings.version),
|
|
95
95
|
h("ion-select", { value: this.version, onIonChange: (ev) => this.chooseVersion(ev.detail.value) }, Object.entries(this.versions)
|
|
96
96
|
.sort((a, b) => a[0] > b[0] ? 1 : -1)
|
|
@@ -209,8 +209,8 @@ var OptionComponent = /** @class */ (function () {
|
|
|
209
209
|
var optionsAreLong = (((_m = this.obj) === null || _m === void 0 ? void 0 : _m.value) || [])
|
|
210
210
|
.map(function (option, optionIndex) { var _a; return ((_a = _this.versionLabel(option, optionIndex)) === null || _a === void 0 ? void 0 : _a.length) > 20; })
|
|
211
211
|
.reduce(function (a, b) { return a || b; }, false);
|
|
212
|
-
// <=
|
|
213
|
-
if (!optionsAreLong && ((_o = this.obj) === null || _o === void 0 ? void 0 : _o.value.length) <=
|
|
212
|
+
// <= 3, short options
|
|
213
|
+
if (!optionsAreLong && ((_o = this.obj) === null || _o === void 0 ? void 0 : _o.value.length) <= 3) {
|
|
214
214
|
return (React.createElement("ion-segment", { color: "primary", value: currentlySelected.toString() }, (_p = this.obj) === null || _p === void 0 ? void 0 :
|
|
215
215
|
_p.value.map(function (option, optionIndex) {
|
|
216
216
|
return React.createElement("ion-segment-button", { value: optionIndex.toString(), onClick: function () { return _this.select(optionIndex, true); } },
|
|
@@ -138,8 +138,8 @@ export class OptionComponent {
|
|
|
138
138
|
const optionsAreLong = (((_m = this.obj) === null || _m === void 0 ? void 0 : _m.value) || [])
|
|
139
139
|
.map((option, optionIndex) => { var _a; return ((_a = this.versionLabel(option, optionIndex)) === null || _a === void 0 ? void 0 : _a.length) > 20; })
|
|
140
140
|
.reduce((a, b) => a || b, false);
|
|
141
|
-
// <=
|
|
142
|
-
if (!optionsAreLong && ((_o = this.obj) === null || _o === void 0 ? void 0 : _o.value.length) <=
|
|
141
|
+
// <= 3, short options
|
|
142
|
+
if (!optionsAreLong && ((_o = this.obj) === null || _o === void 0 ? void 0 : _o.value.length) <= 3) {
|
|
143
143
|
return (h("ion-segment", { color: "primary", value: currentlySelected.toString() }, (_p = this.obj) === null || _p === void 0 ? void 0 :
|
|
144
144
|
_p.value.map((option, optionIndex) => h("ion-segment-button", { value: optionIndex.toString(), onClick: () => this.select(optionIndex, true) },
|
|
145
145
|
h("ion-label", null, this.versionLabel(option, optionIndex)))),
|
|
@@ -59,8 +59,10 @@ var core_2 = require("@stencil/core");
|
|
|
59
59
|
var ldf_1 = require("@venite/ldf");
|
|
60
60
|
var locale_1 = require("../../utils/locale");
|
|
61
61
|
var psalm_i18n_en_json_1 = require("./psalm.i18n.en.json");
|
|
62
|
+
var psalm_i18n_es_json_1 = require("./psalm.i18n.es.json");
|
|
62
63
|
var LOCALE = {
|
|
63
|
-
'en': psalm_i18n_en_json_1["default"]
|
|
64
|
+
'en': psalm_i18n_en_json_1["default"],
|
|
65
|
+
'es': psalm_i18n_es_json_1["default"]
|
|
64
66
|
};
|
|
65
67
|
var PsalmComponent = /** @class */ (function () {
|
|
66
68
|
function PsalmComponent() {
|
|
@@ -3,8 +3,10 @@ import { Component, Element, Prop, Event, Watch, State, h, Host } from '@stencil
|
|
|
3
3
|
import { Psalm, Refrain, Heading, dateFromYMDString, Change } from '@venite/ldf';
|
|
4
4
|
import { getComponentClosestLanguage } from '../../utils/locale';
|
|
5
5
|
import EN from './psalm.i18n.en.json';
|
|
6
|
+
import ES from './psalm.i18n.es.json';
|
|
6
7
|
const LOCALE = {
|
|
7
8
|
'en': EN,
|
|
9
|
+
'es': ES
|
|
8
10
|
};
|
|
9
11
|
export class PsalmComponent {
|
|
10
12
|
constructor() {
|
|
@@ -17,7 +17,7 @@ var StringComponent = /** @class */ (function () {
|
|
|
17
17
|
/**
|
|
18
18
|
* Minimum length (in characters) a string must be to have a dropcap.
|
|
19
19
|
*/
|
|
20
|
-
this.dropcapMinLength =
|
|
20
|
+
this.dropcapMinLength = 180;
|
|
21
21
|
/**
|
|
22
22
|
* Enable or disable replacement of tetragrammaton.
|
|
23
23
|
*/
|
|
@@ -34,7 +34,7 @@ var StringComponent = /** @class */ (function () {
|
|
|
34
34
|
if (this.replaceTetragrammaton) {
|
|
35
35
|
processed = processed.map(function (node) { return typeof node === 'string' ? _this.processTetragrammaton(node) : node; }).flat();
|
|
36
36
|
}
|
|
37
|
-
if (this.dropcap == 'force' || (this.dropcap == 'enabled' && (this.index == 0 || !this.index) && this.text && this.text.length
|
|
37
|
+
if (this.dropcap == 'force' || (this.dropcap == 'enabled' && (this.index == 0 || !this.index) && this.text && this.text.length >= this.dropcapMinLength)) {
|
|
38
38
|
processed = this.processDropcap(processed);
|
|
39
39
|
}
|
|
40
40
|
this.processedString = processed;
|
|
@@ -128,8 +128,8 @@ var StringComponent = /** @class */ (function () {
|
|
|
128
128
|
if (firstChunk) {
|
|
129
129
|
var splitTest = (firstChunk || '').split(/[\s.!?\\]/);
|
|
130
130
|
var firstWord = splitTest ? splitTest[0] : '', re = firstWord.length > 2
|
|
131
|
-
? /^ ?([\"\'
|
|
132
|
-
: /^ ?([\"\'
|
|
131
|
+
? /^ ?([\"\'“”‘’¡\!\?\[\]\(\)\,\wñáéíóú\u0590-\u05ff\u0370-\u03ff])([\wñáéíóú\u0590-\u05ff\u0370-\u03ff\,]*)/
|
|
132
|
+
: /^ ?([\"\'“”‘’¡\!\?\[\]\(\)\,\wñáéíóú\u0590-\u05ff\u0370-\u03ff])([\wñáéíóú\u0590-\u05ff\u0370-\u03ff\,]*[\s.!?]*[\wñáéíóú\u0590-\u05ff\u0370-\u03ff]*)/, reIncludingPunctuation = ((_a = firstWord[0]) === null || _a === void 0 ? void 0 : _a.match(/[\"\'“”‘’¡\!\?\[\]\(\)]/)) ? /^ ?([\"\'“”‘’¡\!\?\[\]\(\)\,\wñáéíóú\u0590-\u05ff\u0370-\u03ff]{2})\s*([\wñáéíóú\u0590-\u05ff\u0370-\u03ff]*)/
|
|
133
133
|
: re, buffer = firstWord.length == 1, split = firstChunk.split(reIncludingPunctuation).filter(function (s) { return s !== ''; }), match1 = split[0], match2 = split[1], nextWord = split[2];
|
|
134
134
|
final = new Array(React.createElement("span", { "class": 'firstword' },
|
|
135
135
|
React.createElement("span", { "class": buffer ? "drop buffered-drop drop-" + match1 : "drop drop-" + match1 }, match1),
|
|
@@ -8,7 +8,7 @@ export class StringComponent {
|
|
|
8
8
|
/**
|
|
9
9
|
* Minimum length (in characters) a string must be to have a dropcap.
|
|
10
10
|
*/
|
|
11
|
-
this.dropcapMinLength =
|
|
11
|
+
this.dropcapMinLength = 180;
|
|
12
12
|
/**
|
|
13
13
|
* Enable or disable replacement of tetragrammaton.
|
|
14
14
|
*/
|
|
@@ -24,7 +24,7 @@ export class StringComponent {
|
|
|
24
24
|
if (this.replaceTetragrammaton) {
|
|
25
25
|
processed = processed.map(node => typeof node === 'string' ? this.processTetragrammaton(node) : node).flat();
|
|
26
26
|
}
|
|
27
|
-
if (this.dropcap == 'force' || (this.dropcap == 'enabled' && (this.index == 0 || !this.index) && this.text && this.text.length
|
|
27
|
+
if (this.dropcap == 'force' || (this.dropcap == 'enabled' && (this.index == 0 || !this.index) && this.text && this.text.length >= this.dropcapMinLength)) {
|
|
28
28
|
processed = this.processDropcap(processed);
|
|
29
29
|
}
|
|
30
30
|
this.processedString = processed;
|
|
@@ -117,9 +117,9 @@ export class StringComponent {
|
|
|
117
117
|
if (firstChunk) {
|
|
118
118
|
const splitTest = (firstChunk || '').split(/[\s.!?\\]/);
|
|
119
119
|
const firstWord = splitTest ? splitTest[0] : '', re = firstWord.length > 2
|
|
120
|
-
? /^ ?([\"\'
|
|
121
|
-
: /^ ?([\"\'
|
|
122
|
-
? /^ ?([\"\'
|
|
120
|
+
? /^ ?([\"\'“”‘’¡\!\?\[\]\(\)\,\wñáéíóú\u0590-\u05ff\u0370-\u03ff])([\wñáéíóú\u0590-\u05ff\u0370-\u03ff\,]*)/
|
|
121
|
+
: /^ ?([\"\'“”‘’¡\!\?\[\]\(\)\,\wñáéíóú\u0590-\u05ff\u0370-\u03ff])([\wñáéíóú\u0590-\u05ff\u0370-\u03ff\,]*[\s.!?]*[\wñáéíóú\u0590-\u05ff\u0370-\u03ff]*)/, reIncludingPunctuation = ((_a = firstWord[0]) === null || _a === void 0 ? void 0 : _a.match(/[\"\'“”‘’¡\!\?\[\]\(\)]/))
|
|
122
|
+
? /^ ?([\"\'“”‘’¡\!\?\[\]\(\)\,\wñáéíóú\u0590-\u05ff\u0370-\u03ff]{2})\s*([\wñáéíóú\u0590-\u05ff\u0370-\u03ff]*)/
|
|
123
123
|
: re, buffer = firstWord.length == 1, split = firstChunk.split(reIncludingPunctuation).filter(s => s !== ''), [match1, match2, nextWord] = split;
|
|
124
124
|
final = new Array(h("span", { class: 'firstword' },
|
|
125
125
|
h("span", { class: buffer ? `drop buffered-drop drop-${match1}` : `drop drop-${match1}` }, match1),
|
|
@@ -217,7 +217,7 @@ export class StringComponent {
|
|
|
217
217
|
},
|
|
218
218
|
"attribute": "dropcap-min-length",
|
|
219
219
|
"reflect": false,
|
|
220
|
-
"defaultValue": "
|
|
220
|
+
"defaultValue": "180"
|
|
221
221
|
},
|
|
222
222
|
"replaceTetragrammaton": {
|
|
223
223
|
"type": "boolean",
|
|
File without changes
|
|
@@ -439,7 +439,7 @@ const EN$8 = {
|
|
|
439
439
|
|
|
440
440
|
const amen = "Amén.";
|
|
441
441
|
const loading = "Se está cargando...";
|
|
442
|
-
const ES = {
|
|
442
|
+
const ES$1 = {
|
|
443
443
|
amen: amen,
|
|
444
444
|
loading: loading
|
|
445
445
|
};
|
|
@@ -466,7 +466,7 @@ const bibleReadingCss = "ldf-bible-reading.sc-ldf-bible-reading,.sc-ldf-bible-re
|
|
|
466
466
|
|
|
467
467
|
const LOCALE$8 = {
|
|
468
468
|
'en': EN$8,
|
|
469
|
-
'es': ES
|
|
469
|
+
'es': ES$1
|
|
470
470
|
};
|
|
471
471
|
const BibleReadingComponent = class {
|
|
472
472
|
constructor(hostRef) {
|
|
@@ -1994,8 +1994,8 @@ const OptionComponent = class {
|
|
|
1994
1994
|
const optionsAreLong = (((_m = this.obj) === null || _m === void 0 ? void 0 : _m.value) || [])
|
|
1995
1995
|
.map((option, optionIndex) => { var _a; return ((_a = this.versionLabel(option, optionIndex)) === null || _a === void 0 ? void 0 : _a.length) > 20; })
|
|
1996
1996
|
.reduce((a, b) => a || b, false);
|
|
1997
|
-
// <=
|
|
1998
|
-
if (!optionsAreLong && ((_o = this.obj) === null || _o === void 0 ? void 0 : _o.value.length) <=
|
|
1997
|
+
// <= 3, short options
|
|
1998
|
+
if (!optionsAreLong && ((_o = this.obj) === null || _o === void 0 ? void 0 : _o.value.length) <= 3) {
|
|
1999
1999
|
return (h("ion-segment", { color: "primary", value: currentlySelected.toString() }, (_p = this.obj) === null || _p === void 0 ? void 0 :
|
|
2000
2000
|
_p.value.map((option, optionIndex) => h("ion-segment-button", { value: optionIndex.toString(), onClick: () => this.select(optionIndex, true) }, h("ion-label", null, this.versionLabel(option, optionIndex)))), this.editable && h("ion-segment-button", { value: 'add', class: 'add', onClick: () => this.select('add', true) }, h("ion-label", null, "+"))));
|
|
2001
2001
|
}
|
|
@@ -2037,7 +2037,7 @@ const OptionComponent = class {
|
|
|
2037
2037
|
};
|
|
2038
2038
|
OptionComponent.style = optionCss;
|
|
2039
2039
|
|
|
2040
|
-
const changeCanticle = "Change Canticle";
|
|
2040
|
+
const changeCanticle$1 = "Change Canticle";
|
|
2041
2041
|
const citation$1 = "(Biblical) Citation";
|
|
2042
2042
|
const label$1 = "Label";
|
|
2043
2043
|
const latinname = "Latin Name";
|
|
@@ -2046,7 +2046,7 @@ const section_break_remove = "x remove section break";
|
|
|
2046
2046
|
const source$1 = "Source";
|
|
2047
2047
|
const source_citation = "Citation";
|
|
2048
2048
|
const EN$1 = {
|
|
2049
|
-
changeCanticle: changeCanticle,
|
|
2049
|
+
changeCanticle: changeCanticle$1,
|
|
2050
2050
|
citation: citation$1,
|
|
2051
2051
|
label: label$1,
|
|
2052
2052
|
latinname: latinname,
|
|
@@ -2056,10 +2056,16 @@ const EN$1 = {
|
|
|
2056
2056
|
source_citation: source_citation
|
|
2057
2057
|
};
|
|
2058
2058
|
|
|
2059
|
+
const changeCanticle = "Elige otro Cántico";
|
|
2060
|
+
const ES = {
|
|
2061
|
+
changeCanticle: changeCanticle
|
|
2062
|
+
};
|
|
2063
|
+
|
|
2059
2064
|
const psalmCss = "ldf-psalm.sc-ldf-psalm,.sc-ldf-psalm-h{font-family:var(--ldf-font-face);--ldf-drop-margin-right:var(--ldf-drop-psalm-margin-right)}ldf-psalm[lang=he].sc-ldf-psalm .verse.sc-ldf-psalm,[lang=he].sc-ldf-psalm-h .verse.sc-ldf-psalm{text-align:right;--ldf-drop-float:right}.psalm-set.sc-ldf-psalm{margin-top:0.5em;margin-bottom:0.5em}.psalm-set.sc-ldf-psalm .psalm.sc-ldf-psalm{display:var(--ldf-psalm-grid-display);grid-template-columns:var(--ldf-psalm-grid-template-columns);grid-template-rows:auto;grid-template-areas:var(--ldf-psalm-grid-template-areas);margin:0;text-indent:var(--ldf-psalm-verse-indentation)}.psalm-set.sc-ldf-psalm .psalm.sc-ldf-psalm br.sc-ldf-psalm{display:var(--ldf-psalm-line-break-display)}.psalm-set.sc-ldf-psalm .psalm.sc-ldf-psalm sup.sc-ldf-psalm{float:var(--ldf-psalm-number-float);display:var(--ldf-psalm-number-display);grid-area:var(--ldf-psalm-number-grid-area);margin-right:var(--ldf-psalm-number-margin-right)}.psalm-set.sc-ldf-psalm .psalm.sc-ldf-psalm .text.sc-ldf-psalm{display:var(--ldf-psalm-text-display);grid-area:var(--ldf-psalm-text-grid-area)}.psalm-set.sc-ldf-psalm .psalm.sc-ldf-psalm .halfverse.sc-ldf-psalm{margin-left:var(--ldf-psalm-halfverse-margin-left)}.psalm-set.sc-ldf-psalm .psalm.sc-ldf-psalm .verse.sc-ldf-psalm,.psalm-set.sc-ldf-psalm .psalm.sc-ldf-psalm .halfverse.sc-ldf-psalm{display:var(--ldf-psalm-verse-display)}.psalm-set.sc-ldf-psalm .psalm.sc-ldf-psalm .halfverse.sc-ldf-psalm{display:var(--ldf-psalm-halfverse-display, var(--ldf-psalm-verse-display))}.editable.sc-ldf-psalm .verse.sc-ldf-psalm,.editable.sc-ldf-psalm .halfverse.sc-ldf-psalm{width:100%}.psalm-parent.no-numbers.sc-ldf-psalm{display:block;text-align:left;grid-template-columns:none;grid-template-rows:none;grid-template-areas:none}.psalm-parent.no-numbers.sc-ldf-psalm .psalm.sc-ldf-psalm{display:block;grid-template-columns:none;grid-template-rows:none;grid-template-areas:none}.psalm-parent.no-numbers.sc-ldf-psalm .psalm.sc-ldf-psalm .text.sc-ldf-psalm{text-align:left;grid-area:none;display:var(--ldf-psalm-text-display);width:100%}.psalm-set.sc-ldf-psalm .psalm.sc-ldf-psalm:nth-of-type(1) sup.sc-ldf-psalm{display:var(--ldf-psalm-set-first-verse-number-display)}.psalm-set.sc-ldf-psalm .psalm.sc-ldf-psalm:nth-of-type(1) .text.sc-ldf-psalm:nth-of-type(1) .verse.sc-ldf-psalm:nth-of-type(1){display:var(--ldf-psalm-set-first-verse-display)}.psalm-set.sc-ldf-psalm .psalm.sc-ldf-psalm:nth-of-type(1) .text.sc-ldf-psalm:nth-of-type(1) .halfverse.sc-ldf-psalm:nth-of-type(2){display:var(--ldf-psalm-set-first-half-verse-display, inline-block)}.psalm-set.sc-ldf-psalm:nth-of-type(1) .psalm.sc-ldf-psalm:nth-of-type(1) sup.sc-ldf-psalm{display:var(--ldf-psalm-first-verse-number-display)}.psalm-set.sc-ldf-psalm:nth-of-type(1) .psalm.sc-ldf-psalm:nth-of-type(1) .text.sc-ldf-psalm:nth-of-type(1) .verse.sc-ldf-psalm:nth-of-type(1){display:var(--ldf-psalm-first-verse-display)}.psalm-set.sc-ldf-psalm:nth-of-type(1) .psalm.sc-ldf-psalm:nth-of-type(1) .text.sc-ldf-psalm:nth-of-type(1) .halfverse.sc-ldf-psalm:nth-of-type(2){display:var(--ldf-psalm-first-half-verse-display, inline-block)}.antiphon.sc-ldf-psalm{display:var(--ldf-psalm-antiphon-display);font-style:var(--ldf-antiphon-font-style);font-weight:var(--ldf-antiphon-font-weight);margin-top:0.5em}.repeat-antiphon.sc-ldf-psalm{display:var(--ldf-psalm-repeat-antiphon-display)}h5.sc-ldf-psalm{font-size:1em;font-style:italic;font-weight:normal;margin-right:1em}.psalm.unison.sc-ldf-psalm .text.sc-ldf-psalm{font-weight:var(--ldf-unison-font-weight);font-style:var(--ldf-unison-font-style)}.psalm.omit.sc-ldf-psalm .text.sc-ldf-psalm{display:none}.psalm.wholeverse.sc-ldf-psalm .psalm.sc-ldf-psalm:nth-child(even),.psalm-parent.wholeverse.sc-ldf-psalm .psalm.sc-ldf-psalm:nth-child(even){font-weight:var(--ldf-response-font-weight);font-style:var(--ldf-response-font-style)}.psalm.halfverse.sc-ldf-psalm .halfverse.sc-ldf-psalm,.psalm-parent.halfverse.sc-ldf-psalm .halfverse.sc-ldf-psalm{font-weight:var(--ldf-response-font-weight);font-style:var(--ldf-response-font-style)}h3.editable-label.sc-ldf-psalm{text-align:var(--ldf-h3-text-align);font-weight:var(--ldf-h3-font-weight);font-style:var(--ldf-h3-font-style);font-variant:var(--ldf-h3-font-variant);font-size:var(--ldf-h3-font-size);text-transform:var(--ldf-h3-text-transform)}.section-break.sc-ldf-psalm{display:block;text-align:center;width:100%}.section-break.hidden.sc-ldf-psalm{display:none}";
|
|
2060
2065
|
|
|
2061
2066
|
const LOCALE$1 = {
|
|
2062
2067
|
'en': EN$1,
|
|
2068
|
+
'es': ES
|
|
2063
2069
|
};
|
|
2064
2070
|
const PsalmComponent = class {
|
|
2065
2071
|
constructor(hostRef) {
|
|
@@ -371,7 +371,7 @@ const StringComponent = class {
|
|
|
371
371
|
/**
|
|
372
372
|
* Minimum length (in characters) a string must be to have a dropcap.
|
|
373
373
|
*/
|
|
374
|
-
this.dropcapMinLength =
|
|
374
|
+
this.dropcapMinLength = 180;
|
|
375
375
|
/**
|
|
376
376
|
* Enable or disable replacement of tetragrammaton.
|
|
377
377
|
*/
|
|
@@ -387,7 +387,7 @@ const StringComponent = class {
|
|
|
387
387
|
if (this.replaceTetragrammaton) {
|
|
388
388
|
processed = processed.map(node => typeof node === 'string' ? this.processTetragrammaton(node) : node).flat();
|
|
389
389
|
}
|
|
390
|
-
if (this.dropcap == 'force' || (this.dropcap == 'enabled' && (this.index == 0 || !this.index) && this.text && this.text.length
|
|
390
|
+
if (this.dropcap == 'force' || (this.dropcap == 'enabled' && (this.index == 0 || !this.index) && this.text && this.text.length >= this.dropcapMinLength)) {
|
|
391
391
|
processed = this.processDropcap(processed);
|
|
392
392
|
}
|
|
393
393
|
this.processedString = processed;
|
|
@@ -476,9 +476,9 @@ const StringComponent = class {
|
|
|
476
476
|
if (firstChunk) {
|
|
477
477
|
const splitTest = (firstChunk || '').split(/[\s.!?\\]/);
|
|
478
478
|
const firstWord = splitTest ? splitTest[0] : '', re = firstWord.length > 2
|
|
479
|
-
? /^ ?([\"\'
|
|
480
|
-
: /^ ?([\"\'
|
|
481
|
-
? /^ ?([\"\'
|
|
479
|
+
? /^ ?([\"\'“”‘’¡\!\?\[\]\(\)\,\wñáéíóú\u0590-\u05ff\u0370-\u03ff])([\wñáéíóú\u0590-\u05ff\u0370-\u03ff\,]*)/
|
|
480
|
+
: /^ ?([\"\'“”‘’¡\!\?\[\]\(\)\,\wñáéíóú\u0590-\u05ff\u0370-\u03ff])([\wñáéíóú\u0590-\u05ff\u0370-\u03ff\,]*[\s.!?]*[\wñáéíóú\u0590-\u05ff\u0370-\u03ff]*)/, reIncludingPunctuation = ((_a = firstWord[0]) === null || _a === void 0 ? void 0 : _a.match(/[\"\'“”‘’¡\!\?\[\]\(\)]/))
|
|
481
|
+
? /^ ?([\"\'“”‘’¡\!\?\[\]\(\)\,\wñáéíóú\u0590-\u05ff\u0370-\u03ff]{2})\s*([\wñáéíóú\u0590-\u05ff\u0370-\u03ff]*)/
|
|
482
482
|
: re, buffer = firstWord.length == 1, split = firstChunk.split(reIncludingPunctuation).filter(s => s !== ''), [match1, match2, nextWord] = split;
|
|
483
483
|
final = new Array(h("span", { class: 'firstword' }, h("span", { class: buffer ? `drop buffered-drop drop-${match1}` : `drop drop-${match1}` }, match1), this.maintainCasing(match2) ? match2 : match2 === null || match2 === void 0 ? void 0 : match2.toLowerCase()))
|
|
484
484
|
.concat(nextWord)
|
|
@@ -129,7 +129,7 @@ const EditableFilterDocumentsComponent = class {
|
|
|
129
129
|
}
|
|
130
130
|
render() {
|
|
131
131
|
const localeStrings = this.localeStrings || {};
|
|
132
|
-
return (h(Host, null, this.modal && h("ion-header", null, h("ion-toolbar", null, h("ion-buttons", { slot: "end" }, h("ion-button", { onClick: () => this.modal.dismiss() }, h("ion-icon", { name: "close", slot: "icon-only" }))))), h("ion-content", null, h("form", null, h("ion-list", null, h("ion-button", { fill: "clear", onClick: () => { this.chooseDoc(docsToOption(this.filteredOptions)); this.choose(); } }, h("ion-label", null, localeStrings.includeAll)), this.versions && h("ion-item", null, h("ion-label", null, localeStrings.version), h("ion-select", { value: this.version, onIonChange: (ev) => this.chooseVersion(ev.detail.value) }, Object.entries(this.versions)
|
|
132
|
+
return (h(Host, null, this.modal && h("ion-header", null, h("ion-toolbar", null, h("ion-buttons", { slot: "end" }, h("ion-button", { onClick: () => this.modal.dismiss() }, h("ion-icon", { name: "close", slot: "icon-only" }))))), h("ion-content", null, h("form", null, h("ion-list", null, h("ion-button", { fill: "clear", onClick: () => { this.chooseDoc(docsToOption(this.filteredOptions)); this.choose(); } }, h("ion-label", null, localeStrings.includeAll)), this.versions && Object.values(this.versions).length > 1 && h("ion-item", null, h("ion-label", null, localeStrings.version), h("ion-select", { value: this.version, onIonChange: (ev) => this.chooseVersion(ev.detail.value) }, Object.entries(this.versions)
|
|
133
133
|
.sort((a, b) => a[0] > b[0] ? 1 : -1)
|
|
134
134
|
.map(([versionKey, versionLabel]) => h("ion-select-option", { value: versionKey }, versionLabel)))), h("ion-searchbar", { onIonChange: (ev) => this.filter(ev.detail.value) }), this.filteredOptions && this.filteredOptions.map(doc => {
|
|
135
135
|
var _a, _b, _c, _d;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-f0f6a379.js';
|
|
2
2
|
import { D as Debounce } from './index-f08f6130.js';
|
|
3
|
-
import { e as elementFromPath, v as values_js } from './index-
|
|
3
|
+
import { e as elementFromPath, v as values_js } from './index-1bf6d100.js';
|
|
4
4
|
import { c as createCommonjsModule } from './_commonjsHelpers-ba3f0406.js';
|
|
5
5
|
|
|
6
6
|
var textareaCaret = createCommonjsModule(function (module) {
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement
|
|
|
2
2
|
import { L as LiturgicalDocument } from './book-31b8cdde.js';
|
|
3
3
|
import { C as Cursor } from './cursor-0e47f111.js';
|
|
4
4
|
import { C as Change } from './change-ea574d32.js';
|
|
5
|
-
import { e as elementFromPath, q as querySelectorDeep, v as values_js } from './index-
|
|
5
|
+
import { e as elementFromPath, q as querySelectorDeep, v as values_js } from './index-1bf6d100.js';
|
|
6
6
|
import './_commonjsHelpers-ba3f0406.js';
|
|
7
7
|
|
|
8
8
|
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}";
|