@venite/components 0.16.7 → 0.16.13
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/_commonjsHelpers-bcc1208a.js +25 -0
- package/dist/cjs/animation-34a434a2.js +957 -0
- package/dist/cjs/app-globals-60a4f972.js +7 -0
- package/dist/cjs/book-1a92678a.js +287 -0
- package/dist/cjs/change-cdb1e8c0.js +16 -0
- package/dist/cjs/cubic-bezier-f3b34d27.js +91 -0
- package/dist/cjs/cursor-81bfd01e.js +12 -0
- package/dist/cjs/focus-visible-5621d6b1.js +45 -0
- package/dist/cjs/framework-delegate-84d33ff0.js +37 -0
- package/dist/cjs/gesture-controller-5bd9d825.js +193 -0
- package/dist/cjs/haptic-88c261ab.js +49 -0
- package/dist/cjs/hardware-back-button-8c2f48d2.js +59 -0
- package/dist/cjs/heading-5afc2b24.js +21 -0
- package/dist/cjs/helpers-41dfb43a.js +110 -0
- package/dist/cjs/image-3bee3e73.js +21 -0
- package/dist/cjs/index-1a73a70c.js +211 -0
- package/dist/cjs/index-4b7e4228.js +135 -0
- package/dist/cjs/index-7aa21373.js +92 -0
- package/dist/cjs/index-8197bb45.js +441 -0
- package/dist/{ldf/index-ea7a35b9.js → cjs/index-8fe0df8d.js} +213 -1242
- package/dist/cjs/index-c5bdf2bc.js +167 -0
- package/dist/cjs/index-de13bd01.js +463 -0
- package/dist/cjs/index-e4c51e4d.js +307 -0
- package/dist/cjs/index.cjs.js +8 -0
- package/dist/cjs/input-shims-9c2d56bd.js +357 -0
- package/dist/cjs/ion-action-sheet.cjs.entry.js +230 -0
- package/dist/cjs/ion-alert.cjs.entry.js +386 -0
- package/dist/cjs/ion-app.cjs.entry.js +60 -0
- package/dist/cjs/ion-avatar.cjs.entry.js +25 -0
- package/dist/cjs/ion-back-button.cjs.entry.js +79 -0
- package/dist/cjs/ion-backdrop.cjs.entry.js +67 -0
- package/dist/cjs/ion-badge.cjs.entry.js +27 -0
- package/dist/cjs/ion-button_13.cjs.entry.js +1786 -0
- package/dist/cjs/ion-card-content_6.cjs.entry.js +405 -0
- package/dist/cjs/ion-card-subtitle.cjs.entry.js +27 -0
- package/dist/cjs/ion-card_2.cjs.entry.js +91 -0
- package/dist/cjs/ion-checkbox_3.cjs.entry.js +234 -0
- package/dist/cjs/ion-chip.cjs.entry.js +31 -0
- package/dist/cjs/ion-datetime_2.cjs.entry.js +1125 -0
- package/dist/cjs/ion-fab-button.cjs.entry.js +74 -0
- package/dist/cjs/ion-fab-list.cjs.entry.js +45 -0
- package/dist/cjs/ion-fab.cjs.entry.js +74 -0
- package/dist/cjs/ion-footer.cjs.entry.js +43 -0
- package/dist/cjs/ion-img.cjs.entry.js +72 -0
- package/dist/cjs/ion-infinite-scroll-content.cjs.entry.js +37 -0
- package/dist/cjs/ion-infinite-scroll.cjs.entry.js +206 -0
- package/dist/cjs/ion-input_2.cjs.entry.js +2645 -0
- package/dist/cjs/ion-item-divider.cjs.entry.js +36 -0
- package/dist/cjs/ion-item-group.cjs.entry.js +31 -0
- package/dist/cjs/ion-item-option.cjs.entry.js +55 -0
- package/dist/cjs/ion-item-options.cjs.entry.js +47 -0
- package/dist/cjs/ion-item-sliding.cjs.entry.js +359 -0
- package/dist/cjs/ion-list-header.cjs.entry.js +28 -0
- package/dist/cjs/ion-loading.cjs.entry.js +213 -0
- package/dist/cjs/ion-menu-button.cjs.entry.js +61 -0
- package/dist/cjs/ion-menu-toggle.cjs.entry.js +47 -0
- package/dist/cjs/ion-menu.cjs.entry.js +456 -0
- package/dist/cjs/ion-modal.cjs.entry.js +488 -0
- package/dist/cjs/ion-nav-link.cjs.entry.js +44 -0
- package/dist/cjs/ion-nav.cjs.entry.js +812 -0
- package/dist/cjs/ion-note.cjs.entry.js +27 -0
- package/dist/cjs/ion-picker-column.cjs.entry.js +327 -0
- package/dist/cjs/ion-picker.cjs.entry.js +214 -0
- package/dist/cjs/ion-popover.cjs.entry.js +363 -0
- package/dist/cjs/ion-progress-bar.cjs.entry.js +67 -0
- package/dist/cjs/ion-radio_2.cjs.entry.js +149 -0
- package/dist/cjs/ion-range.cjs.entry.js +395 -0
- package/dist/cjs/ion-refresher-content.cjs.entry.js +40 -0
- package/dist/cjs/ion-refresher.cjs.entry.js +832 -0
- package/dist/cjs/ion-reorder-group.cjs.entry.js +281 -0
- package/dist/cjs/ion-reorder.cjs.entry.js +31 -0
- package/dist/cjs/ion-route-redirect.cjs.entry.js +24 -0
- package/dist/cjs/ion-route.cjs.entry.js +49 -0
- package/dist/cjs/ion-router-link.cjs.entry.js +35 -0
- package/dist/cjs/ion-router-outlet.cjs.entry.js +160 -0
- package/dist/cjs/ion-router.cjs.entry.js +631 -0
- package/dist/cjs/ion-segment_16.cjs.entry.js +2507 -0
- package/dist/cjs/ion-select-popover.cjs.entry.js +33 -0
- package/dist/cjs/ion-select_2.cjs.entry.js +444 -0
- package/dist/cjs/ion-slide.cjs.entry.js +25 -0
- package/dist/cjs/ion-slides.cjs.entry.js +404 -0
- package/dist/cjs/ion-spinner.cjs.entry.js +60 -0
- package/dist/cjs/ion-split-pane.cjs.entry.js +150 -0
- package/dist/cjs/ion-tab-bar.cjs.entry.js +58 -0
- package/dist/cjs/ion-tab-button.cjs.entry.js +99 -0
- package/dist/cjs/ion-tab.cjs.entry.js +58 -0
- package/dist/cjs/ion-tabs.cjs.entry.js +155 -0
- package/dist/cjs/ion-text.cjs.entry.js +22 -0
- package/dist/cjs/ion-textarea.cjs.entry.js +217 -0
- package/dist/cjs/ion-thumbnail.cjs.entry.js +20 -0
- package/dist/cjs/ion-toast.cjs.entry.js +280 -0
- package/dist/cjs/ion-virtual-scroll.cjs.entry.js +544 -0
- package/dist/cjs/ionic-global-581fb4f8.js +204 -0
- package/dist/cjs/ios.transition-7244ac4e.js +459 -0
- package/dist/cjs/ldf-day-name_5.cjs.entry.js +5682 -0
- package/dist/cjs/ldf-editable-add-block-menu.cjs.entry.js +573 -0
- package/dist/cjs/ldf-editable-condition-piece.cjs.entry.js +220 -0
- package/dist/cjs/ldf-editable-condition.cjs.entry.js +106 -0
- package/dist/cjs/ldf-editable-filter-documents.cjs.entry.js +152 -0
- package/dist/cjs/ldf-editable-lookup_2.cjs.entry.js +496 -0
- package/dist/cjs/ldf-editable-metadata.cjs.entry.js +186 -0
- package/dist/cjs/ldf-editable-preference-option.cjs.entry.js +72 -0
- package/dist/cjs/ldf-editable-preference.cjs.entry.js +89 -0
- package/dist/cjs/ldf-editable-preferences.cjs.entry.js +200 -0
- package/dist/cjs/ldf-editable-string-list.cjs.entry.js +134 -0
- package/dist/cjs/ldf-editor-cursors.cjs.entry.js +276 -0
- package/dist/cjs/ldf-editor.cjs.entry.js +238 -0
- package/dist/cjs/ldf.cjs.js +22 -0
- package/dist/cjs/loader.cjs.js +24 -0
- package/dist/cjs/locale-d4e925b1.js +8 -0
- package/dist/cjs/md.transition-d86b1ef0.js +62 -0
- package/dist/cjs/menu-toggle-util-293e388b.js +11 -0
- package/dist/cjs/option-24f3d13a.js +167 -0
- package/dist/cjs/overlays-eb464d6d.js +228 -0
- package/dist/cjs/preference-a4bd51c4.js +23 -0
- package/dist/cjs/refrain-91fb446b.js +21 -0
- package/dist/cjs/rubric-5b467a6a.js +1220 -0
- package/dist/cjs/specific-class-a1112e78.js +38 -0
- package/dist/cjs/spinner-configs-b0bec093.js +112 -0
- package/dist/cjs/status-tap-7afb25f5.js +25 -0
- package/dist/cjs/swipe-back-f887168e.js +52 -0
- package/dist/cjs/swiper.bundle-cb0f61f7.js +6246 -0
- package/dist/cjs/tap-click-e0af5237.js +169 -0
- package/dist/cjs/text-5edb80f3.js +18 -0
- package/dist/cjs/theme-81caa5b0.js +47 -0
- package/dist/collection/collection-manifest.json +146 -0
- package/dist/collection/components/bible-reading/bible-reading.css +84 -0
- package/dist/collection/components/bible-reading/bible-reading.i18n.en.json +13 -0
- package/dist/collection/components/bible-reading/bible-reading.i18n.es.json +4 -0
- package/dist/collection/components/bible-reading/bible-reading.js +328 -0
- package/dist/collection/components/bible-reading/dist/bible-reading.js +354 -0
- package/dist/collection/components/bible-reading/fetch-reading.js +17 -0
- package/dist/collection/components/day-name/day-name.css +18 -0
- package/dist/collection/components/day-name/day-name.i18n.en.json +4 -0
- package/dist/{ldf/ldf-day-name.entry.js → collection/components/day-name/day-name.js} +54 -27
- package/dist/collection/components/editable-add-block/editable-add-block.css +93 -0
- package/dist/collection/components/editable-add-block/editable-add-block.i18n.en.json +5 -0
- package/dist/collection/components/editable-add-block/editable-add-block.js +135 -0
- package/dist/collection/components/editable-add-block-menu/dist/menu-options.js +230 -0
- package/dist/collection/components/editable-add-block-menu/editable-add-block-menu.css +33 -0
- package/dist/collection/components/editable-add-block-menu/editable-add-block-menu.i18n.en.json +48 -0
- package/dist/collection/components/editable-add-block-menu/editable-add-block-menu.js +101 -0
- package/dist/collection/components/editable-add-block-menu/menu-options.js +423 -0
- package/dist/collection/components/editable-antiphon-field/editable-antiphon-field.i18n.en.json +11 -0
- package/dist/collection/components/editable-antiphon-field/editable-antiphon-field.js +332 -0
- package/dist/collection/components/editable-antiphon-field/ldf-editable-antiphon-field.css +7 -0
- package/dist/collection/components/editable-boolean/editable-boolean.js +117 -0
- package/dist/collection/components/editable-condition/editable-condition.i18n.en.json +7 -0
- package/dist/collection/components/editable-condition/editable-condition.js +192 -0
- package/dist/collection/components/editable-condition-piece/dist/editable-condition-piece.js +257 -0
- package/dist/collection/components/editable-condition-piece/editable-condition-piece.css +34 -0
- package/dist/collection/components/editable-condition-piece/editable-condition-piece.i18n.en.json +21 -0
- package/dist/collection/components/editable-condition-piece/editable-condition-piece.js +233 -0
- package/dist/collection/components/editable-condition-piece/except-only-strings.js +12 -0
- package/dist/collection/components/editable-condition-piece/except-only.js +20 -0
- package/dist/collection/components/editable-delete/editable-delete.i18n.en.json +6 -0
- package/dist/collection/components/editable-delete/editable-delete.js +175 -0
- package/dist/collection/components/editable-filter-documents/dist/editable-filter-documents.js +242 -0
- package/dist/collection/components/editable-filter-documents/editable-filter-documents.css +11 -0
- package/dist/collection/components/editable-filter-documents/editable-filter-documents.i18n.en.json +9 -0
- package/dist/collection/components/editable-filter-documents/editable-filter-documents.js +294 -0
- package/dist/collection/components/editable-lookup/editable-lookup.js +210 -0
- package/dist/collection/components/editable-metadata/editable-metadata.css +44 -0
- package/dist/collection/components/editable-metadata/editable-metadata.i18n.en.json +51 -0
- package/dist/collection/components/editable-metadata/editable-metadata.js +261 -0
- package/dist/collection/components/editable-metadata-buttons/dist/editable-metadata-buttons.js +444 -0
- package/dist/collection/components/editable-metadata-buttons/editable-metadata-buttons.css +37 -0
- package/dist/collection/components/editable-metadata-buttons/editable-metadata-buttons.i18n.en.json +31 -0
- package/dist/collection/components/editable-metadata-buttons/editable-metadata-buttons.js +433 -0
- package/dist/collection/components/editable-metadata-metadata-fields/dist/editable-metadata-metadata-fields.js +399 -0
- package/dist/collection/components/editable-metadata-metadata-fields/editable-metadata-metadata-fields.i18n.en.json +48 -0
- package/dist/collection/components/editable-metadata-metadata-fields/editable-metadata-metadata-fields.js +438 -0
- package/dist/collection/components/editable-preference/editable-preference.i18n.en.json +8 -0
- package/dist/collection/components/editable-preference/editable-preference.js +166 -0
- package/dist/collection/components/editable-preference-option/editable-preference-option.i18n.en.json +9 -0
- package/dist/collection/components/editable-preference-option/editable-preference-option.js +128 -0
- package/dist/collection/components/editable-preferences/dist/editable-preferences.js +281 -0
- package/dist/collection/components/editable-preferences/editable-preferences.css +3 -0
- package/dist/collection/components/editable-preferences/editable-preferences.i18n.en.json +10 -0
- package/dist/collection/components/editable-preferences/editable-preferences.js +230 -0
- package/dist/collection/components/editable-preferences/preference-tree.js +24 -0
- package/dist/collection/components/editable-select/dist/editable-select.js +69 -0
- package/dist/collection/components/editable-select/editable-select.css +0 -0
- package/dist/collection/components/editable-select/editable-select.js +157 -0
- package/dist/collection/components/editable-string-list/dist/editable-string-list.js +207 -0
- package/dist/collection/components/editable-string-list/editable-string-list.css +21 -0
- package/dist/collection/components/editable-string-list/editable-string-list.i18n.en.json +18 -0
- package/dist/collection/components/editable-string-list/editable-string-list.js +194 -0
- package/dist/collection/components/editable-text/dist/editable-text.js +300 -0
- package/dist/collection/components/editable-text/dist/handle-input.js +52 -0
- package/dist/collection/components/editable-text/editable-text.css +53 -0
- package/dist/collection/components/editable-text/editable-text.i18n.en.json +3 -0
- package/dist/collection/components/editable-text/editable-text.js +473 -0
- package/dist/collection/components/editable-text/handle-input.js +47 -0
- package/dist/collection/components/editor/dist/editor.js +403 -0
- package/dist/collection/components/editor/editor.css +41 -0
- package/dist/collection/components/editor/editor.js +579 -0
- package/dist/collection/components/editor-cursors/editor-cursors.css +43 -0
- package/dist/collection/components/editor-cursors/editor-cursors.js +228 -0
- package/dist/collection/components/heading/dist/heading.js +210 -0
- package/dist/collection/components/heading/editable-node.js +2 -0
- package/dist/collection/components/heading/heading.css +96 -0
- package/dist/collection/components/heading/heading.i18n.en.json +4 -0
- package/dist/collection/components/heading/heading.js +198 -0
- package/dist/collection/components/image/image.css +75 -0
- package/dist/collection/components/image/image.i18n.en.json +4 -0
- package/dist/collection/components/image/image.js +303 -0
- package/dist/collection/components/label-bar/label-bar.css +40 -0
- package/dist/collection/components/label-bar/label-bar.js +49 -0
- package/dist/collection/components/liturgical-document/condition-node.js +86 -0
- package/dist/collection/components/liturgical-document/dist/liturgical-document.js +341 -0
- package/dist/collection/components/liturgical-document/liturgical-document.css +73 -0
- package/dist/collection/components/liturgical-document/liturgical-document.i18n.en.json +45 -0
- package/dist/collection/components/liturgical-document/liturgical-document.js +465 -0
- package/dist/collection/components/liturgical-document/lookup-node.js +80 -0
- package/dist/collection/components/liturgy/liturgy.js +138 -0
- package/dist/collection/components/meditation/dist/meditation.js +345 -0
- package/dist/collection/components/meditation/meditation.css +63 -0
- package/dist/collection/components/meditation/meditation.i18n.en.json +8 -0
- package/dist/collection/components/meditation/meditation.js +409 -0
- package/dist/collection/components/option/dist/option.js +318 -0
- package/dist/collection/components/option/option.css +8 -0
- package/dist/collection/components/option/option.i18n.en.json +3 -0
- package/dist/{ldf/ldf-option.entry.js → collection/components/option/option.js} +214 -31
- package/dist/collection/components/prayers-and-thanksgivings/dist/prayers-and-thanksgivings.js +258 -0
- package/dist/collection/components/prayers-and-thanksgivings/prayers-and-thanksgivings.css +3 -0
- package/dist/collection/components/prayers-and-thanksgivings/prayers-and-thanksgivings.i18n.en.json +3 -0
- package/dist/collection/components/prayers-and-thanksgivings/prayers-and-thanksgivings.js +265 -0
- package/dist/collection/components/psalm/dist/psalm.js +383 -0
- package/dist/collection/components/psalm/psalm.css +152 -0
- package/dist/collection/components/psalm/psalm.i18n.en.json +10 -0
- package/dist/collection/components/psalm/psalm.js +361 -0
- package/dist/collection/components/refrain/refrain.css +42 -0
- package/dist/collection/components/refrain/refrain.js +105 -0
- package/dist/collection/components/responsive-prayer/responsive-prayer.css +83 -0
- package/dist/collection/components/responsive-prayer/responsive-prayer.i18n.en.json +7 -0
- package/dist/collection/components/responsive-prayer/responsive-prayer.js +215 -0
- package/dist/collection/components/rubric/rubric.css +9 -0
- package/dist/collection/components/rubric/rubric.js +104 -0
- package/dist/collection/components/string/dist/string.js +194 -0
- package/dist/collection/components/string/string.css +60 -0
- package/dist/{ldf/ldf-string.entry.js → collection/components/string/string.js} +179 -18
- package/dist/collection/components/text/dist/text.js +234 -0
- package/dist/collection/components/text/text.css +52 -0
- package/dist/collection/components/text/text.i18n.en.json +7 -0
- package/dist/collection/components/text/text.i18n.es.json +3 -0
- package/dist/collection/components/text/text.js +224 -0
- package/dist/collection/i18n/bible-reading.i18n.en.json +13 -0
- package/dist/collection/i18n/bible-reading.i18n.es.json +4 -0
- package/dist/collection/i18n/day-name.i18n.en.json +4 -0
- package/dist/collection/i18n/editable-add-block-menu.i18n.en.json +48 -0
- package/dist/collection/i18n/editable-add-block.i18n.en.json +5 -0
- package/dist/collection/i18n/editable-antiphon-field.i18n.en.json +11 -0
- package/dist/collection/i18n/editable-condition-piece.i18n.en.json +21 -0
- package/dist/collection/i18n/editable-condition.i18n.en.json +7 -0
- package/dist/collection/i18n/editable-delete.i18n.en.json +6 -0
- package/dist/collection/i18n/editable-filter-documents.i18n.en.json +9 -0
- package/dist/collection/i18n/editable-metadata-buttons.i18n.en.json +31 -0
- package/dist/collection/i18n/editable-metadata-metadata-fields.i18n.en.json +48 -0
- package/dist/collection/i18n/editable-metadata.i18n.en.json +51 -0
- package/dist/collection/i18n/editable-preference-option.i18n.en.json +9 -0
- package/dist/collection/i18n/editable-preference.i18n.en.json +8 -0
- package/dist/collection/i18n/editable-preferences.i18n.en.json +10 -0
- package/dist/collection/i18n/editable-string-list.i18n.en.json +18 -0
- package/dist/collection/i18n/editable-text.i18n.en.json +3 -0
- package/dist/collection/i18n/heading.i18n.en.json +4 -0
- package/dist/collection/i18n/image.i18n.en.json +4 -0
- package/dist/collection/i18n/liturgical-document.i18n.en.json +45 -0
- package/dist/collection/i18n/meditation.i18n.en.json +8 -0
- package/dist/collection/i18n/option.i18n.en.json +3 -0
- package/dist/collection/i18n/prayers-and-thanksgivings.i18n.en.json +3 -0
- package/dist/collection/i18n/psalm.i18n.en.json +10 -0
- package/dist/collection/i18n/responsive-prayer.i18n.en.json +7 -0
- package/dist/collection/i18n/text.i18n.en.json +7 -0
- package/dist/collection/i18n/text.i18n.es.json +3 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/interfaces/add-option-to-doc.js +1 -0
- package/dist/collection/interfaces/dist/menu-option.js +9 -0
- package/dist/collection/interfaces/index.js +2 -0
- package/dist/collection/interfaces/menu-option.js +2 -0
- package/dist/collection/utils/element-from-path.js +14 -0
- package/dist/{ldf/locale-d595f8f6.js → collection/utils/locale.js} +2 -4
- package/dist/esm/_commonjsHelpers-ba3f0406.js +21 -0
- package/dist/{ldf/animation-6b850b6a.js → esm/animation-7a1025d0.js} +1 -1
- package/dist/{ldf/app-globals-d4376e8c.js → esm/app-globals-729b03cf.js} +1 -1
- package/dist/esm/book-31b8cdde.js +282 -0
- package/dist/esm/change-ea574d32.js +14 -0
- package/dist/{ldf → esm}/cubic-bezier-89113939.js +0 -0
- package/dist/esm/cursor-0e47f111.js +10 -0
- package/dist/{ldf → esm}/focus-visible-571e113e.js +0 -0
- package/dist/{ldf → esm}/framework-delegate-7af2c551.js +0 -0
- package/dist/esm/gesture-controller-5bf8565e.js +191 -0
- package/dist/{ldf/haptic-0d102c16.js → esm/haptic-fc16a4d8.js} +0 -24
- package/dist/{ldf → esm}/hardware-back-button-b3b61715.js +0 -0
- package/dist/esm/heading-cc5ffa8a.js +19 -0
- package/dist/{ldf/helpers-e9bf4204.js → esm/helpers-8c93393b.js} +0 -3
- package/dist/esm/image-c6a3f0c5.js +19 -0
- package/dist/{ldf/index-dd274afe.js → esm/index-1bf6d100.js} +3 -31
- package/dist/{ldf/index-4505cc02.js → esm/index-734a6b69.js} +2 -2
- package/dist/{ldf/index-9b41fcc6.js → esm/index-82044e24.js} +3 -190
- package/dist/{ldf → esm}/index-86d5f3ab.js +0 -0
- package/dist/{ldf/index-fc8c2f30.js → esm/index-9579282b.js} +3 -3
- package/dist/{ldf → esm}/index-c7ecbd63.js +0 -0
- package/dist/{ldf/index-7845c707.js → esm/index-f08f6130.js} +1 -6
- package/dist/esm/index-f0f6a379.js +1765 -0
- package/dist/esm/index.js +4 -0
- package/dist/{ldf/input-shims-b58afc2a.js → esm/input-shims-a4ad2743.js} +5 -7
- package/dist/{ldf → esm}/ion-action-sheet.entry.js +5 -5
- package/dist/{ldf → esm}/ion-alert.entry.js +5 -5
- package/dist/{ldf → esm}/ion-app.entry.js +6 -6
- package/dist/{ldf → esm}/ion-avatar.entry.js +2 -2
- package/dist/{ldf → esm}/ion-back-button.entry.js +2 -2
- package/dist/{ldf → esm}/ion-backdrop.entry.js +3 -3
- package/dist/{ldf → esm}/ion-badge.entry.js +2 -2
- package/dist/esm/ion-button_13.entry.js +1770 -0
- package/dist/esm/ion-card-content_6.entry.js +396 -0
- package/dist/{ldf → esm}/ion-card-subtitle.entry.js +2 -2
- package/dist/{ldf/ion-card.entry.js → esm/ion-card_2.entry.js} +27 -3
- package/dist/{ldf/ion-checkbox.entry.js → esm/ion-checkbox_3.entry.js} +123 -4
- package/dist/{ldf → esm}/ion-chip.entry.js +2 -2
- package/dist/{ldf/ion-datetime.entry.js → esm/ion-datetime_2.entry.js} +152 -6
- package/dist/{ldf → esm}/ion-fab-button.entry.js +3 -3
- package/dist/{ldf → esm}/ion-fab-list.entry.js +2 -2
- package/dist/{ldf → esm}/ion-fab.entry.js +2 -2
- package/dist/{ldf → esm}/ion-footer.entry.js +2 -2
- package/dist/{ldf → esm}/ion-img.entry.js +2 -2
- package/dist/{ldf → esm}/ion-infinite-scroll-content.entry.js +2 -2
- package/dist/{ldf → esm}/ion-infinite-scroll.entry.js +2 -2
- package/dist/{ldf/ldf-editable-text.entry.js → esm/ion-input_2.entry.js} +222 -12
- package/dist/{ldf → esm}/ion-item-divider.entry.js +2 -2
- package/dist/{ldf → esm}/ion-item-group.entry.js +2 -2
- package/dist/{ldf → esm}/ion-item-option.entry.js +2 -2
- package/dist/{ldf → esm}/ion-item-options.entry.js +3 -3
- package/dist/{ldf → esm}/ion-item-sliding.entry.js +4 -4
- package/dist/{ldf → esm}/ion-list-header.entry.js +2 -2
- package/dist/{ldf → esm}/ion-loading.entry.js +5 -5
- package/dist/{ldf → esm}/ion-menu-button.entry.js +6 -6
- package/dist/{ldf → esm}/ion-menu-toggle.entry.js +6 -6
- package/dist/{ldf → esm}/ion-menu.entry.js +7 -11
- package/dist/{ldf → esm}/ion-modal.entry.js +8 -7
- package/dist/{ldf → esm}/ion-nav-link.entry.js +1 -1
- package/dist/{ldf → esm}/ion-nav.entry.js +5 -9
- package/dist/{ldf → esm}/ion-note.entry.js +2 -2
- package/dist/{ldf → esm}/ion-picker-column.entry.js +5 -5
- package/dist/{ldf → esm}/ion-picker.entry.js +5 -5
- package/dist/{ldf → esm}/ion-popover.entry.js +6 -6
- package/dist/{ldf → esm}/ion-progress-bar.entry.js +3 -3
- package/dist/{ldf/ion-radio.entry.js → esm/ion-radio_2.entry.js} +57 -4
- package/dist/{ldf → esm}/ion-range.entry.js +4 -4
- package/dist/{ldf → esm}/ion-refresher-content.entry.js +2 -2
- package/dist/{ldf → esm}/ion-refresher.entry.js +7 -57
- package/dist/{ldf → esm}/ion-reorder-group.entry.js +4 -4
- package/dist/{ldf → esm}/ion-reorder.entry.js +2 -2
- package/dist/{ldf → esm}/ion-route-redirect.entry.js +1 -1
- package/dist/{ldf → esm}/ion-route.entry.js +1 -1
- package/dist/{ldf → esm}/ion-router-link.entry.js +2 -2
- package/dist/{ldf → esm}/ion-router-outlet.entry.js +4 -4
- package/dist/{ldf → esm}/ion-router.entry.js +2 -2
- package/dist/esm/ion-segment_16.entry.js +2488 -0
- package/dist/{ldf → esm}/ion-select-popover.entry.js +3 -3
- package/dist/{ldf/ion-select.entry.js → esm/ion-select_2.entry.js} +24 -5
- package/dist/{ldf → esm}/ion-slide.entry.js +2 -2
- package/dist/{ldf → esm}/ion-slides.entry.js +3 -3
- package/dist/{ldf → esm}/ion-spinner.entry.js +2 -2
- package/dist/{ldf → esm}/ion-split-pane.entry.js +2 -8
- package/dist/{ldf → esm}/ion-tab-bar.entry.js +2 -2
- package/dist/{ldf → esm}/ion-tab-button.entry.js +2 -2
- package/dist/{ldf → esm}/ion-tab.entry.js +1 -9
- package/dist/{ldf → esm}/ion-tabs.entry.js +1 -1
- package/dist/{ldf → esm}/ion-text.entry.js +2 -2
- package/dist/{ldf → esm}/ion-textarea.entry.js +5 -5
- package/dist/{ldf → esm}/ion-thumbnail.entry.js +2 -2
- package/dist/{ldf → esm}/ion-toast.entry.js +5 -5
- package/dist/{ldf → esm}/ion-virtual-scroll.entry.js +1 -1
- package/dist/{ldf/ionic-global-98eeb119.js → esm/ionic-global-ef89a0a5.js} +1 -2
- package/dist/{ldf/ios.transition-1d534d59.js → esm/ios.transition-b1be0863.js} +4 -4
- package/dist/{ldf/ldf-text.entry.js → esm/ldf-day-name_5.entry.js} +508 -126
- package/dist/{ldf → esm}/ldf-editable-add-block-menu.entry.js +9 -4
- package/dist/{ldf → esm}/ldf-editable-condition-piece.entry.js +24 -4
- package/dist/{ldf → esm}/ldf-editable-condition.entry.js +4 -4
- package/dist/{ldf → esm}/ldf-editable-filter-documents.entry.js +32 -4
- package/dist/{ldf/ldf-editable-metadata-metadata-fields.entry.js → esm/ldf-editable-lookup_2.entry.js} +121 -5
- package/dist/{ldf → esm}/ldf-editable-metadata.entry.js +10 -4
- package/dist/{ldf → esm}/ldf-editable-preference-option.entry.js +5 -4
- package/dist/{ldf → esm}/ldf-editable-preference.entry.js +5 -4
- package/dist/{ldf → esm}/ldf-editable-preferences.entry.js +20 -17
- package/dist/{ldf → esm}/ldf-editable-string-list.entry.js +4 -4
- package/dist/{ldf → esm}/ldf-editor-cursors.entry.js +5 -9
- package/dist/{ldf → esm}/ldf-editor.entry.js +6 -4
- package/dist/esm/ldf.js +20 -0
- package/dist/esm/loader.js +20 -0
- package/dist/esm/locale-ec8e14e6.js +6 -0
- package/dist/{ldf/md.transition-a8cd439c.js → esm/md.transition-1763f475.js} +4 -4
- package/dist/{ldf/menu-toggle-util-9f807d31.js → esm/menu-toggle-util-29e61ff3.js} +1 -1
- package/dist/esm/option-da8390ad.js +164 -0
- package/dist/{ldf/overlays-10805282.js → esm/overlays-06b43b65.js} +2 -2
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/preference-d070d4cb.js +20 -0
- package/dist/esm/refrain-75a412cb.js +19 -0
- package/dist/esm/rubric-91bf7fed.js +1213 -0
- package/dist/esm/specific-class-ef83cfb6.js +36 -0
- package/dist/{ldf → esm}/spinner-configs-5dd6891e.js +0 -0
- package/dist/{ldf/status-tap-b8afd87d.js → esm/status-tap-7458bd71.js} +1 -1
- package/dist/{ldf/swipe-back-2b2f4e51.js → esm/swipe-back-762284df.js} +3 -2
- package/dist/{ldf/swiper.bundle-49d79db9.js → esm/swiper.bundle-13b9da83.js} +2 -2
- package/dist/{ldf/tap-click-fccc5499.js → esm/tap-click-9b3d603b.js} +1 -1
- package/dist/esm/text-ed75fbd4.js +16 -0
- package/dist/{ldf → esm}/theme-74c22054.js +0 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/ldf/index.esm.js +1 -4
- package/dist/ldf/ldf.css +3 -122
- package/dist/ldf/ldf.esm.js +1 -123
- package/dist/ldf/p-018e57db.entry.js +1 -0
- package/dist/ldf/p-03389897.js +1 -0
- package/dist/ldf/p-03afc8cb.entry.js +1 -0
- package/dist/ldf/p-04715bf0.entry.js +1 -0
- package/dist/ldf/p-0491d1d2.js +1 -0
- package/dist/ldf/p-07d6d3ad.entry.js +1 -0
- package/dist/ldf/p-08584ccc.entry.js +1 -0
- package/dist/ldf/p-0873a34a.entry.js +1 -0
- package/dist/ldf/p-0ab55cf6.js +1 -0
- package/dist/ldf/p-1482a707.js +1 -0
- package/dist/ldf/p-177ede88.js +1 -0
- package/dist/ldf/p-1902f41e.entry.js +1 -0
- package/dist/ldf/p-1a8e2899.entry.js +1 -0
- package/dist/ldf/p-1c8cc5bf.entry.js +1 -0
- package/dist/ldf/p-1ff665a7.entry.js +1 -0
- package/dist/ldf/p-21e2f0a3.entry.js +1 -0
- package/dist/ldf/p-23af1bc3.entry.js +1 -0
- package/dist/ldf/p-25a736f1.entry.js +1 -0
- package/dist/ldf/p-2ae548b3.entry.js +1 -0
- package/dist/ldf/p-2c36a583.entry.js +1 -0
- package/dist/ldf/p-302dc0d5.entry.js +1 -0
- package/dist/ldf/p-327b14ac.entry.js +1 -0
- package/dist/ldf/p-32f7ba8e.entry.js +1 -0
- package/dist/ldf/p-3545fcdc.entry.js +1 -0
- package/dist/ldf/p-374118d7.entry.js +1 -0
- package/dist/ldf/p-380f8655.entry.js +1 -0
- package/dist/ldf/p-3c9930ff.entry.js +1 -0
- package/dist/ldf/p-3ca74c80.js +8 -0
- package/dist/ldf/p-3e8ff66b.js +1 -0
- package/dist/ldf/p-3f39c2ad.entry.js +1 -0
- package/dist/ldf/p-3f8ef67b.entry.js +1 -0
- package/dist/ldf/p-402c811f.js +1 -0
- package/dist/ldf/p-430c418a.entry.js +1 -0
- package/dist/ldf/p-476327d6.js +1 -0
- package/dist/ldf/p-48e44122.js +1 -0
- package/dist/ldf/p-4a4380fa.entry.js +1 -0
- package/dist/ldf/p-4aa9a6f2.js +1 -0
- package/dist/ldf/p-4b80de48.js +1 -0
- package/dist/ldf/p-4e0b3c0f.entry.js +1 -0
- package/dist/ldf/p-5066eaa5.js +1 -0
- package/dist/ldf/p-52656429.entry.js +1 -0
- package/dist/ldf/p-55d797c1.js +1 -0
- package/dist/ldf/p-59340423.entry.js +1 -0
- package/dist/ldf/p-594fa9d4.entry.js +1 -0
- package/dist/ldf/p-5b43e6be.js +1 -0
- package/dist/ldf/p-5b51185b.js +1 -0
- package/dist/ldf/p-5be7ff17.entry.js +1 -0
- package/dist/ldf/p-5ea6de28.entry.js +1 -0
- package/dist/ldf/p-63b5daf6.entry.js +1 -0
- package/dist/ldf/p-65563763.entry.js +1 -0
- package/dist/ldf/p-65d26c45.js +1 -0
- package/dist/ldf/p-65ea7ab3.entry.js +1 -0
- package/dist/ldf/p-66a7385e.entry.js +1 -0
- package/dist/ldf/p-6857574d.js +1 -0
- package/dist/ldf/p-69f85ad3.entry.js +1 -0
- package/dist/ldf/p-6fe24d85.entry.js +1 -0
- package/dist/ldf/p-70e47f8b.entry.js +1 -0
- package/dist/ldf/p-714cf0b2.js +1 -0
- package/dist/ldf/p-718ae824.js +1 -0
- package/dist/ldf/p-78da8fe1.js +1 -0
- package/dist/ldf/p-79a526a1.entry.js +1 -0
- package/dist/ldf/p-7abeb82c.entry.js +1 -0
- package/dist/ldf/p-7efa633b.entry.js +1 -0
- package/dist/ldf/p-800a115c.entry.js +1 -0
- package/dist/ldf/p-84f38db6.entry.js +1 -0
- package/dist/ldf/p-8767a74e.entry.js +1 -0
- package/dist/ldf/p-88dbd8b6.js +1 -0
- package/dist/ldf/p-8932ec85.entry.js +1 -0
- package/dist/ldf/p-8c2727db.entry.js +1 -0
- package/dist/ldf/p-8ec26587.js +1 -0
- package/dist/ldf/p-8f67abb8.js +3 -0
- package/dist/ldf/p-9155f066.js +1 -0
- package/dist/ldf/p-978e2c6d.js +1 -0
- package/dist/ldf/p-991c0877.js +1 -0
- package/dist/ldf/p-9bd5d1d4.entry.js +1 -0
- package/dist/ldf/p-9c1973a6.entry.js +1 -0
- package/dist/ldf/p-9c397c49.entry.js +1 -0
- package/dist/ldf/p-9e2c172e.entry.js +1 -0
- package/dist/ldf/p-a1729dbd.js +1 -0
- package/dist/ldf/p-ac7a17ce.entry.js +1 -0
- package/dist/ldf/p-acbbd1ec.js +1 -0
- package/dist/ldf/p-afc1a02c.js +1 -0
- package/dist/ldf/p-b1242016.js +1 -0
- package/dist/ldf/p-b62e8f49.js +1 -0
- package/dist/ldf/p-b7388aec.entry.js +1 -0
- package/dist/ldf/p-b78336d7.entry.js +1 -0
- package/dist/ldf/p-ba021918.entry.js +1 -0
- package/dist/ldf/p-bdcf2b02.entry.js +1 -0
- package/dist/ldf/p-c1df632d.entry.js +1 -0
- package/dist/ldf/p-c3042920.entry.js +1 -0
- package/dist/ldf/p-c3807857.entry.js +1 -0
- package/dist/ldf/p-c3841978.entry.js +1 -0
- package/dist/ldf/p-c41e055c.entry.js +1 -0
- package/dist/ldf/p-c60a875b.js +1 -0
- package/dist/ldf/p-c6163f81.entry.js +1 -0
- package/dist/ldf/p-c6a8f4aa.js +1 -0
- package/dist/ldf/p-c6b42618.entry.js +1 -0
- package/dist/ldf/p-c74d3fd0.entry.js +1 -0
- package/dist/ldf/p-c82dd468.entry.js +1 -0
- package/dist/ldf/p-ca698b8f.entry.js +1 -0
- package/dist/ldf/p-cbfbb80c.entry.js +1 -0
- package/dist/ldf/p-d195c957.entry.js +1 -0
- package/dist/ldf/p-d282d4f9.js +1 -0
- package/dist/ldf/p-d7966e9b.entry.js +1 -0
- package/dist/ldf/p-d7f8c770.js +1 -0
- package/dist/ldf/p-d9c1c1f6.js +1 -0
- package/dist/ldf/p-dc445c36.entry.js +1 -0
- package/dist/ldf/p-dd99e42a.entry.js +1 -0
- package/dist/ldf/p-de5bb5ad.js +1 -0
- package/dist/ldf/p-e0e12ae3.entry.js +1 -0
- package/dist/ldf/p-e215fd02.entry.js +1 -0
- package/dist/ldf/p-e4be11ad.entry.js +1 -0
- package/dist/ldf/p-e4f0cd91.entry.js +1 -0
- package/dist/ldf/p-e911e60d.js +1 -0
- package/dist/ldf/p-ea66c343.entry.js +1 -0
- package/dist/ldf/p-ec5eecdc.entry.js +1 -0
- package/dist/ldf/p-ed3327fa.js +1 -0
- package/dist/ldf/p-f0de7628.entry.js +1 -0
- package/dist/ldf/p-f2ce126e.js +1 -0
- package/dist/ldf/p-f3a0c163.js +1 -0
- package/dist/ldf/p-fa191f47.entry.js +1 -0
- package/dist/ldf/p-fe59a676.entry.js +1 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.ios.css +363 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.md.css +285 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.ios.css +483 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.md.css +501 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/app/app.css +7 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.ios.css +22 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.md.css +22 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.ios.css +277 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.md.css +305 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.ios.css +26 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.md.css +26 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.ios.css +58 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.md.css +62 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/button/button.ios.css +440 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/button/button.md.css +428 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.ios.css +128 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.md.css +151 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card/card.ios.css +101 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card/card.md.css +95 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.ios.css +61 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.md.css +63 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.ios.css +37 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.md.css +35 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.ios.css +28 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.md.css +26 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.ios.css +27 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.md.css +27 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.ios.css +147 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.md.css +150 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.ios.css +194 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.md.css +194 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/col/col.css +108 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/content/content.css +167 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.ios.css +106 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.md.css +106 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/fab/fab.css +61 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.ios.css +324 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.md.css +293 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/fab-list/fab-list.css +116 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.ios.css +33 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.md.css +37 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/grid/grid.css +151 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/header/header.ios.css +92 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/header/header.md.css +40 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/img/img.css +12 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll/infinite-scroll.css +8 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +54 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +54 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/input/input.ios.css +172 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/input/input.md.css +172 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item/item.ios.css +563 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item/item.md.css +630 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.ios.css +204 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.md.css +297 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.ios.css +3 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.md.css +3 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.ios.css +186 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.md.css +180 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.ios.css +88 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.md.css +85 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-sliding/item-sliding.css +42 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/label/label.ios.css +152 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/label/label.md.css +163 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/list/list.ios.css +91 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/list/list.md.css +114 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.ios.css +118 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.md.css +94 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.ios.css +113 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.md.css +104 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.ios.css +131 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.md.css +127 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.ios.css +175 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.md.css +178 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/menu-toggle/menu-toggle.css +3 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.ios.css +158 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.md.css +104 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/nav/nav.css +10 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/note/note.ios.css +16 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/note/note.md.css +17 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.ios.css +216 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.md.css +203 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.ios.css +122 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.md.css +123 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.ios.css +117 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.md.css +82 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.ios.css +191 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.md.css +191 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.ios.css +151 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.md.css +152 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/range/range.ios.css +275 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/range/range.md.css +320 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.ios.css +177 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.md.css +210 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.ios.css +15 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.md.css +15 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/reorder-group/reorder-group.css +33 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/ripple-effect/ripple-effect.css +58 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/router-link/router-link.css +29 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/router-outlet/route-outlet.css +10 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/row/row.css +4 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.ios.css +348 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.md.css +279 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.ios.css +64 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.md.css +35 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.ios.css +442 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.md.css +424 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/select/select.ios.css +123 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/select/select.md.css +123 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/select-option/select-option.css +3 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.css +14 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/skeleton-text/skeleton-text.css +53 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/slide/slide.css +31 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/slides/slides.ios.css +764 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/slides/slides.md.css +764 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/spinner/spinner.css +154 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.ios.css +108 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.md.css +108 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/tab/tab.css +4 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.ios.css +96 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.md.css +81 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.ios.css +308 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.md.css +331 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/tabs/tabs.css +19 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/text/text.css +3 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.ios.css +142 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.md.css +146 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/thumbnail/thumbnail.css +21 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/title/title.ios.css +110 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/title/title.md.css +55 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.ios.css +249 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.md.css +282 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.ios.css +214 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.md.css +211 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.ios.css +174 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.md.css +167 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/virtual-scroll/virtual-scroll.css +21 -0
- package/dist/node_modules/ionicons/dist/collection/components/icon/icon.css +101 -0
- package/package.json +2 -2
- package/dist/ldf/_commonjsHelpers-8fe71198.js +0 -44
- package/dist/ldf/css-shim-5630fd5e.js +0 -4
- package/dist/ldf/dom-bd0bf1dc.js +0 -73
- package/dist/ldf/index-f441adec.js +0 -2901
- package/dist/ldf/index-f4e3260e.js +0 -36
- package/dist/ldf/ion-button.entry.js +0 -109
- package/dist/ldf/ion-buttons.entry.js +0 -38
- package/dist/ldf/ion-card-content.entry.js +0 -26
- package/dist/ldf/ion-card-header.entry.js +0 -29
- package/dist/ldf/ion-card-title.entry.js +0 -23
- package/dist/ldf/ion-col.entry.js +0 -114
- package/dist/ldf/ion-content.entry.js +0 -299
- package/dist/ldf/ion-grid.entry.js +0 -24
- package/dist/ldf/ion-header.entry.js +0 -255
- package/dist/ldf/ion-icon.entry.js +0 -172
- package/dist/ldf/ion-input.entry.js +0 -216
- package/dist/ldf/ion-item.entry.js +0 -119
- package/dist/ldf/ion-label.entry.js +0 -51
- package/dist/ldf/ion-list.entry.js +0 -48
- package/dist/ldf/ion-radio-group.entry.js +0 -57
- package/dist/ldf/ion-ripple-effect.entry.js +0 -89
- package/dist/ldf/ion-row.entry.js +0 -16
- package/dist/ldf/ion-searchbar.entry.js +0 -326
- package/dist/ldf/ion-segment-button.entry.js +0 -88
- package/dist/ldf/ion-segment.entry.js +0 -296
- package/dist/ldf/ion-select-option.entry.js +0 -23
- package/dist/ldf/ion-skeleton-text.entry.js +0 -29
- package/dist/ldf/ion-title.entry.js +0 -44
- package/dist/ldf/ion-toggle.entry.js +0 -152
- package/dist/ldf/ion-toolbar.entry.js +0 -67
- package/dist/ldf/ldf-bible-reading.entry.js +0 -252
- package/dist/ldf/ldf-editable-add-block.entry.js +0 -49
- package/dist/ldf/ldf-editable-antiphon-field.entry.js +0 -223
- package/dist/ldf/ldf-editable-boolean.entry.js +0 -42
- package/dist/ldf/ldf-editable-delete.entry.js +0 -97
- package/dist/ldf/ldf-editable-lookup.entry.js +0 -115
- package/dist/ldf/ldf-editable-metadata-buttons.entry.js +0 -293
- package/dist/ldf/ldf-editable-select.entry.js +0 -33
- package/dist/ldf/ldf-heading.entry.js +0 -124
- package/dist/ldf/ldf-image.entry.js +0 -195
- package/dist/ldf/ldf-label-bar.entry.js +0 -22
- package/dist/ldf/ldf-liturgical-document.entry.js +0 -462
- package/dist/ldf/ldf-liturgy.entry.js +0 -49
- package/dist/ldf/ldf-meditation.entry.js +0 -180
- package/dist/ldf/ldf-prayers-and-thanksgivings.entry.js +0 -136
- package/dist/ldf/ldf-psalm.entry.js +0 -267
- package/dist/ldf/ldf-refrain.entry.js +0 -42
- package/dist/ldf/ldf-responsive-prayer.entry.js +0 -137
- package/dist/ldf/ldf-rubric.entry.js +0 -41
- package/dist/ldf/shadow-css-10669ec3.js +0 -383
- package/dist/ldf/utils-8d15f916.js +0 -91
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, f as createEvent, h, i as Host, j as getElement } from './index-ea7a35b9.js';
|
|
2
|
-
import './index-f4e3260e.js';
|
|
3
|
-
import { j as Responsive, C as Change } from './index-f441adec.js';
|
|
4
|
-
import { g as getComponentClosestLanguage } from './locale-d595f8f6.js';
|
|
5
|
-
import { c as alertController, m as modalController, t as toastController } from './overlays-10805282.js';
|
|
6
|
-
import './utils-8d15f916.js';
|
|
7
|
-
import './animation-6b850b6a.js';
|
|
8
|
-
import './helpers-e9bf4204.js';
|
|
9
|
-
import './ios.transition-1d534d59.js';
|
|
10
|
-
import './index-fc8c2f30.js';
|
|
11
|
-
import './md.transition-a8cd439c.js';
|
|
12
|
-
import './cubic-bezier-89113939.js';
|
|
13
|
-
import './index-9b41fcc6.js';
|
|
14
|
-
import './ionic-global-98eeb119.js';
|
|
15
|
-
import './index-86d5f3ab.js';
|
|
16
|
-
import './index-4505cc02.js';
|
|
17
|
-
import './hardware-back-button-b3b61715.js';
|
|
18
|
-
import './_commonjsHelpers-8fe71198.js';
|
|
19
|
-
|
|
20
|
-
const abbreviated = "Abbreviated";
|
|
21
|
-
const addOption = "Add an Option";
|
|
22
|
-
const cancel = "Cancel";
|
|
23
|
-
const condition = "Conditions";
|
|
24
|
-
const copy = "Copy";
|
|
25
|
-
const copied = "Copied to Clipboard";
|
|
26
|
-
const displayFormat = "Display";
|
|
27
|
-
const halfverse = "By Half Verse";
|
|
28
|
-
const heading = "Heading Level";
|
|
29
|
-
const heading1 = "1. Title";
|
|
30
|
-
const heading2 = "2. Section Title";
|
|
31
|
-
const heading3 = "3. Label";
|
|
32
|
-
const heading4 = "4. Sub-Section Label";
|
|
33
|
-
const move_down = "Move Down";
|
|
34
|
-
const move_up = "Move Up";
|
|
35
|
-
const ok = "OK";
|
|
36
|
-
const omit = "Omit";
|
|
37
|
-
const preferences = "Preferences";
|
|
38
|
-
const settings = "Settings";
|
|
39
|
-
const edit = "Edit";
|
|
40
|
-
const preview = "Preview";
|
|
41
|
-
const responsive = "Responsive Display Settings";
|
|
42
|
-
const responsiveMsg = "What size devices should this appear on?";
|
|
43
|
-
const responsiveAll = "All devices";
|
|
44
|
-
const responsiveSmallOnly = "Only on small screens";
|
|
45
|
-
const responsiveSmallHidden = "Not on small screens";
|
|
46
|
-
const unison = "Unison";
|
|
47
|
-
const wholeverse = "By Whole Verse";
|
|
48
|
-
const EN = {
|
|
49
|
-
abbreviated: abbreviated,
|
|
50
|
-
addOption: addOption,
|
|
51
|
-
cancel: cancel,
|
|
52
|
-
condition: condition,
|
|
53
|
-
copy: copy,
|
|
54
|
-
copied: copied,
|
|
55
|
-
"default": "Default",
|
|
56
|
-
displayFormat: displayFormat,
|
|
57
|
-
halfverse: halfverse,
|
|
58
|
-
heading: heading,
|
|
59
|
-
heading1: heading1,
|
|
60
|
-
heading2: heading2,
|
|
61
|
-
heading3: heading3,
|
|
62
|
-
heading4: heading4,
|
|
63
|
-
move_down: move_down,
|
|
64
|
-
move_up: move_up,
|
|
65
|
-
ok: ok,
|
|
66
|
-
omit: omit,
|
|
67
|
-
preferences: preferences,
|
|
68
|
-
settings: settings,
|
|
69
|
-
edit: edit,
|
|
70
|
-
preview: preview,
|
|
71
|
-
responsive: responsive,
|
|
72
|
-
responsiveMsg: responsiveMsg,
|
|
73
|
-
responsiveAll: responsiveAll,
|
|
74
|
-
responsiveSmallOnly: responsiveSmallOnly,
|
|
75
|
-
responsiveSmallHidden: responsiveSmallHidden,
|
|
76
|
-
unison: unison,
|
|
77
|
-
wholeverse: wholeverse
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
const editableMetadataButtonsCss = ".buttons.sc-ldf-editable-metadata-buttons{position:absolute;height:0;width:100%;display:flex;flex-direction:row;align-items:center;justify-content:flex-end;opacity:1;transition:all 0.25s}.buttons.sc-ldf-editable-metadata-buttons ion-buttons.sc-ldf-editable-metadata-buttons{background-color:var(--ion-color-light, #f4f5f8);border-radius:3px;flex-wrap:wrap;max-width:100%}.hidden.sc-ldf-editable-metadata-buttons{display:none;height:0;opacity:0;transition:all 0.25s}@media (max-width: 767px){.sm-hidden.sc-ldf-editable-metadata-buttons{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}}";
|
|
81
|
-
|
|
82
|
-
const LOCALE = {
|
|
83
|
-
'en': EN
|
|
84
|
-
};
|
|
85
|
-
const EditableMetadataButtonsComponent = class {
|
|
86
|
-
constructor(hostRef) {
|
|
87
|
-
registerInstance(this, hostRef);
|
|
88
|
-
this.ldfAddOptionToDoc = createEvent(this, "ldfAddOptionToDoc", 7);
|
|
89
|
-
this.ldfTogglePreview = createEvent(this, "ldfTogglePreview", 7);
|
|
90
|
-
this.ldfDocShouldMove = createEvent(this, "ldfDocShouldMove", 7);
|
|
91
|
-
this.ldfDocShouldChange = createEvent(this, "ldfDocShouldChange", 7);
|
|
92
|
-
/** Documents in `preview` mode will display as if they're not editable, unless the user explicitly chooses to edit them */
|
|
93
|
-
this.preview = false;
|
|
94
|
-
}
|
|
95
|
-
objChange(newObj) {
|
|
96
|
-
if (this.modal) {
|
|
97
|
-
this.modal.componentProps = Object.assign(Object.assign({}, this.modal.componentProps), { obj: newObj });
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
// Lifecycle events
|
|
101
|
-
componentWillLoad() {
|
|
102
|
-
this.loadLocaleStrings();
|
|
103
|
-
}
|
|
104
|
-
// Private methods
|
|
105
|
-
async loadLocaleStrings() {
|
|
106
|
-
try {
|
|
107
|
-
this.localeStrings = LOCALE[getComponentClosestLanguage(this.element)];
|
|
108
|
-
}
|
|
109
|
-
catch (e) {
|
|
110
|
-
console.warn(e);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
/** Display an alert to set responsiveness */
|
|
114
|
-
async openResponsive() {
|
|
115
|
-
var _a;
|
|
116
|
-
const alert = await alertController.create({
|
|
117
|
-
header: this.localeStrings.responsive,
|
|
118
|
-
message: this.localeStrings.responsiveMsg,
|
|
119
|
-
inputs: [
|
|
120
|
-
{
|
|
121
|
-
name: 'value',
|
|
122
|
-
type: 'radio',
|
|
123
|
-
value: Responsive.AllSizes,
|
|
124
|
-
label: this.localeStrings.responsiveAll
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
name: 'value',
|
|
128
|
-
type: 'radio',
|
|
129
|
-
value: Responsive.SmallOnly,
|
|
130
|
-
label: this.localeStrings.responsiveSmallOnly
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
name: 'value',
|
|
134
|
-
type: 'radio',
|
|
135
|
-
value: Responsive.SmallHidden,
|
|
136
|
-
label: this.localeStrings.responsiveSmallHidden
|
|
137
|
-
}
|
|
138
|
-
],
|
|
139
|
-
buttons: [
|
|
140
|
-
{
|
|
141
|
-
role: 'cancel',
|
|
142
|
-
text: this.localeStrings.cancel
|
|
143
|
-
},
|
|
144
|
-
this.localeStrings.ok
|
|
145
|
-
]
|
|
146
|
-
});
|
|
147
|
-
await alert.present();
|
|
148
|
-
const { data } = await alert.onDidDismiss();
|
|
149
|
-
const { values } = data;
|
|
150
|
-
if (values) {
|
|
151
|
-
this.ldfDocShouldChange.emit(new Change({
|
|
152
|
-
path: `${this.base}/${this.index}/responsive`,
|
|
153
|
-
op: [{
|
|
154
|
-
type: 'set',
|
|
155
|
-
oldValue: (_a = this.obj) === null || _a === void 0 ? void 0 : _a.responsive,
|
|
156
|
-
value: values
|
|
157
|
-
}]
|
|
158
|
-
}));
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
/** Display a modal `EditableMetadataComponent` */
|
|
162
|
-
async openSettings() {
|
|
163
|
-
this.modal = await this.openModal('ldf-editable-metadata');
|
|
164
|
-
}
|
|
165
|
-
/** Display a modal `EditableConditionComponent` */
|
|
166
|
-
async openCondition() {
|
|
167
|
-
this.modal = await this.openModal('ldf-editable-condition', `${this.base}/${this.index}/condition`, { obj: this.obj });
|
|
168
|
-
}
|
|
169
|
-
/** Display a modal `EditablePreferencesComponent` */
|
|
170
|
-
async openPreferences() {
|
|
171
|
-
const path = this.base && this.index ? `${this.base}/${this.index}` : '';
|
|
172
|
-
this.modal = await this.openModal('ldf-editable-preferences', `${path}/metadata`, {
|
|
173
|
-
obj: this.obj
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
async openModal(component, componentPath = undefined, componentProps = undefined) {
|
|
177
|
-
const modal = await modalController.create({
|
|
178
|
-
component
|
|
179
|
-
});
|
|
180
|
-
const path = componentPath || (this.base && this.index >= 0 ? `${this.base}/${this.index}` : '/');
|
|
181
|
-
modal.componentProps = Object.assign(Object.assign({}, componentProps), { modal, doc: this.obj, path, visible: true, collapsed: false });
|
|
182
|
-
// present the modal
|
|
183
|
-
await modal.present();
|
|
184
|
-
return modal;
|
|
185
|
-
}
|
|
186
|
-
/** Emit an event with information about this document’s location in the tree and current state */
|
|
187
|
-
addOption() {
|
|
188
|
-
this.ldfAddOptionToDoc.emit({
|
|
189
|
-
base: this.base,
|
|
190
|
-
index: this.index,
|
|
191
|
-
obj: this.obj
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
move(diff) {
|
|
195
|
-
this.ldfDocShouldMove.emit({
|
|
196
|
-
base: this.base,
|
|
197
|
-
oldIndex: this.index,
|
|
198
|
-
diff
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
async headingLevel() {
|
|
202
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
203
|
-
const alert = await alertController.create({
|
|
204
|
-
header: (_a = this.localeStrings) === null || _a === void 0 ? void 0 : _a.heading,
|
|
205
|
-
inputs: [
|
|
206
|
-
{
|
|
207
|
-
name: 'level',
|
|
208
|
-
type: 'radio',
|
|
209
|
-
value: 1,
|
|
210
|
-
label: (_b = this.localeStrings) === null || _b === void 0 ? void 0 : _b.heading1
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
name: 'level',
|
|
214
|
-
type: 'radio',
|
|
215
|
-
value: 2,
|
|
216
|
-
label: (_c = this.localeStrings) === null || _c === void 0 ? void 0 : _c.heading2
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
name: 'level',
|
|
220
|
-
type: 'radio',
|
|
221
|
-
value: 3,
|
|
222
|
-
label: (_d = this.localeStrings) === null || _d === void 0 ? void 0 : _d.heading3
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
name: 'level',
|
|
226
|
-
type: 'radio',
|
|
227
|
-
value: 4,
|
|
228
|
-
label: (_e = this.localeStrings) === null || _e === void 0 ? void 0 : _e.heading4
|
|
229
|
-
},
|
|
230
|
-
],
|
|
231
|
-
buttons: [
|
|
232
|
-
{
|
|
233
|
-
text: (_f = this.localeStrings) === null || _f === void 0 ? void 0 : _f.cancel,
|
|
234
|
-
role: 'cancel',
|
|
235
|
-
cssClass: 'secondary'
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
text: (_g = this.localeStrings) === null || _g === void 0 ? void 0 : _g.ok,
|
|
239
|
-
}
|
|
240
|
-
]
|
|
241
|
-
});
|
|
242
|
-
await alert.present();
|
|
243
|
-
const { data } = await alert.onDidDismiss(), { values } = data;
|
|
244
|
-
if ((_h = this.obj) === null || _h === void 0 ? void 0 : _h.metadata) {
|
|
245
|
-
this.ldfDocShouldChange.emit(new Change({
|
|
246
|
-
path: `${this.base}/${this.index}/metadata/level`,
|
|
247
|
-
op: [{
|
|
248
|
-
type: 'set',
|
|
249
|
-
value: values,
|
|
250
|
-
oldValue: (_k = (_j = this.obj) === null || _j === void 0 ? void 0 : _j.metadata) === null || _k === void 0 ? void 0 : _k.level
|
|
251
|
-
}]
|
|
252
|
-
}));
|
|
253
|
-
}
|
|
254
|
-
else {
|
|
255
|
-
this.ldfDocShouldChange.emit(new Change({
|
|
256
|
-
path: `${this.base}/${this.index}/metadata`,
|
|
257
|
-
op: [{
|
|
258
|
-
type: 'set',
|
|
259
|
-
value: { level: values }
|
|
260
|
-
}]
|
|
261
|
-
}));
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
async copyDoc() {
|
|
265
|
-
try {
|
|
266
|
-
navigator.clipboard.writeText(JSON.stringify(this.obj));
|
|
267
|
-
const toast = await toastController.create({
|
|
268
|
-
message: this.localeStrings.copied,
|
|
269
|
-
duration: 1000,
|
|
270
|
-
color: "success"
|
|
271
|
-
});
|
|
272
|
-
await toast.present();
|
|
273
|
-
}
|
|
274
|
-
catch (e) {
|
|
275
|
-
console.warn('Clipboard operation not allowed.', e);
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
// Render
|
|
279
|
-
render() {
|
|
280
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
281
|
-
const localeStrings = this.localeStrings || {}, hasIndex = this.index !== undefined && this.index >= 0;
|
|
282
|
-
return h(Host, null, h("div", { class: { buttons: true, hidden: !this.visible || !this.preview } }, h("ion-buttons", { slot: "end" }, (navigator === null || navigator === void 0 ? void 0 : navigator.clipboard) && h("ion-button", { onClick: () => this.copyDoc(), "aria-role": 'button', "aria-label": localeStrings.copy }, h("ion-label", { class: "sm-hidden" }, localeStrings.copy), h("ion-icon", { slot: 'end', name: 'clipboard' })), h("ion-button", { onClick: () => this.ldfTogglePreview.emit(false) }, h("ion-label", { class: "sm-hidden" }, (_a = this.localeStrings) === null || _a === void 0 ? void 0 : _a.edit), h("ion-icon", { slot: "end", name: "create" })))), h("div", { class: { buttons: true, hidden: !this.visible || this.preview } }, h("ion-buttons", { slot: 'end' }, h("ion-button", { onClick: () => this.ldfTogglePreview.emit(true) }, h("ion-label", { class: "sm-hidden" }, (_b = this.localeStrings) === null || _b === void 0 ? void 0 : _b.preview), h("ion-icon", { slot: "end", name: "eye" })), ((_c = this.obj) === null || _c === void 0 ? void 0 : _c.type) !== 'option' && this.parentType !== 'option' && this.base &&
|
|
283
|
-
h("ion-button", { onClick: () => this.addOption(), "aria-role": 'button', "aria-label": localeStrings.addOption }, h("ion-icon", { slot: 'icon-only', name: 'add' })), ((_d = this.obj) === null || _d === void 0 ? void 0 : _d.type) == 'liturgy' && h("ion-button", { onClick: () => this.openPreferences(), "aria-role": 'button', "aria-label": localeStrings.preferences }, h("ion-icon", { slot: 'icon-only', name: 'list' })), ((_e = this.obj) === null || _e === void 0 ? void 0 : _e.type) == 'heading' && h("ion-button", { onClick: () => this.headingLevel() }, h("ion-label", null, localeStrings[`heading${((_g = (_f = this.obj) === null || _f === void 0 ? void 0 : _f.metadata) === null || _g === void 0 ? void 0 : _g.level) || 3}`] || 'Heading')), ((_j = (_h = this.obj) === null || _h === void 0 ? void 0 : _h.availableDisplayFormats()) === null || _j === void 0 ? void 0 : _j.length) > 0 && h("ldf-editable-select", { placeholder: localeStrings.displayFormat, value: this.obj.display_format, path: `${this.base}/${this.index}`, property: "display_format", options: this.obj.availableDisplayFormats().map(value => ({ value, label: localeStrings[value] || value })) }), (this.base && hasIndex || ((_k = this.obj) === null || _k === void 0 ? void 0 : _k.type) !== 'liturgy') && h("ion-button", { onClick: () => this.openCondition(), "aria-role": 'button', "aria-label": localeStrings.condition }, h("ion-icon", { slot: 'icon-only', name: 'calendar' })), (this.base && hasIndex || ((_l = this.obj) === null || _l === void 0 ? void 0 : _l.type) !== 'liturgy') && h("ion-button", { onClick: () => this.openResponsive(), "aria-role": 'button', "aria-label": localeStrings.responsive }, h("ion-icon", { slot: 'icon-only', name: 'phone-portrait' })), (navigator === null || navigator === void 0 ? void 0 : navigator.clipboard) && h("ion-button", { onClick: () => this.copyDoc(), "aria-role": 'button', "aria-label": localeStrings.copy }, h("ion-icon", { slot: 'icon-only', name: 'clipboard' })), h("ion-button", { onClick: () => this.openSettings(), "aria-role": 'button', "aria-label": localeStrings.settings }, h("ion-icon", { slot: 'icon-only', name: 'cog' })), (this.base && hasIndex && this.index > 0) && h("ion-button", { onClick: () => this.move(-1), "aria-role": 'button', "aria-label": localeStrings.move_up }, h("ion-icon", { slot: 'icon-only', name: 'arrow-up' })), (this.base && hasIndex) && h("ion-button", { onClick: () => this.move(1), "aria-role": 'button', "aria-label": localeStrings.move_down }, h("ion-icon", { slot: 'icon-only', name: 'arrow-down' })), hasIndex &&
|
|
284
|
-
h("ldf-editable-delete", { base: this.base, index: this.index, obj: this.obj }))));
|
|
285
|
-
}
|
|
286
|
-
get element() { return getElement(this); }
|
|
287
|
-
static get watchers() { return {
|
|
288
|
-
"obj": ["objChange"]
|
|
289
|
-
}; }
|
|
290
|
-
};
|
|
291
|
-
EditableMetadataButtonsComponent.style = editableMetadataButtonsCss;
|
|
292
|
-
|
|
293
|
-
export { EditableMetadataButtonsComponent as ldf_editable_metadata_buttons };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, f as createEvent, h, j as getElement } from './index-ea7a35b9.js';
|
|
2
|
-
import { C as Change } from './index-f441adec.js';
|
|
3
|
-
import './_commonjsHelpers-8fe71198.js';
|
|
4
|
-
|
|
5
|
-
const editableSelectCss = "";
|
|
6
|
-
|
|
7
|
-
const EditableSelectComponent = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
registerInstance(this, hostRef);
|
|
10
|
-
this.ldfChange = createEvent(this, "ldfChange", 7);
|
|
11
|
-
this.ldfDocShouldChange = createEvent(this, "ldfDocShouldChange", 7);
|
|
12
|
-
}
|
|
13
|
-
// Listeners
|
|
14
|
-
onChange(ev) {
|
|
15
|
-
const oldValue = this.value, value = ev.detail.value;
|
|
16
|
-
if (value !== oldValue) {
|
|
17
|
-
this.ldfDocShouldChange.emit(new Change({
|
|
18
|
-
path: this.path,
|
|
19
|
-
op: [
|
|
20
|
-
{ type: 'set', index: this.property, oldValue, value }
|
|
21
|
-
]
|
|
22
|
-
}));
|
|
23
|
-
this.ldfChange.emit(value);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
render() {
|
|
27
|
-
return (h("ion-select", { value: this.value, placeholder: this.placeholder }, this.options.map(option => h("ion-select-option", { value: option.value }, option.label))));
|
|
28
|
-
}
|
|
29
|
-
get element() { return getElement(this); }
|
|
30
|
-
};
|
|
31
|
-
EditableSelectComponent.style = editableSelectCss;
|
|
32
|
-
|
|
33
|
-
export { EditableSelectComponent as ldf_editable_select };
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { h, r as registerInstance, i as Host, j as getElement } from './index-ea7a35b9.js';
|
|
2
|
-
import { H as Heading, k as dateFromYMDString, m as Citation, T as Text } from './index-f441adec.js';
|
|
3
|
-
import { g as getComponentClosestLanguage } from './locale-d595f8f6.js';
|
|
4
|
-
import './_commonjsHelpers-8fe71198.js';
|
|
5
|
-
|
|
6
|
-
const EditableNode = ({ uidOrSlug, path, text, index, bodyText }) => h("ldf-editable-text", { class: { 'body-text': bodyText }, id: `${uidOrSlug}-heading-${index}`, text: text, path: `${path}/value/${index}`, short: true, inputType: "text" });
|
|
7
|
-
|
|
8
|
-
const date = "The Date of the Liturgy";
|
|
9
|
-
const day = "The Name of the Liturgical Day";
|
|
10
|
-
const EN = {
|
|
11
|
-
date: date,
|
|
12
|
-
day: day
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const headingCss = "ldf-heading,:host{font-family:var(--ldf-font-face)}ldf-heading ldf-string,:host ldf-string{display:block}ldf-heading ldf-label-bar.text,:host ldf-label-bar.text{margin-top:var(--ldf-heading-margin-top)}ldf-heading h1,:host h1{text-align:var(--ldf-title-text-align);font-weight:var(--ldf-title-font-weight);font-style:var(--ldf-title-font-style);font-variant:var(--ldf-title-font-variant);font-size:var(--ldf-title-font-size);text-transform:var(--ldf-title-text-transform)}ldf-heading h2,:host h2{text-align:var(--ldf-subtitle-text-align);font-weight:var(--ldf-subtitle-font-weight);font-style:var(--ldf-subtitle-font-style);font-variant:var(--ldf-subtitle-font-variant);font-size:var(--ldf-subtitle-font-size);text-transform:var(--ldf-subtitle-text-transform)}ldf-heading h3,:host h3{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)}ldf-heading h4,:host h4{text-align:var(--ldf-h4-text-align);font-weight:var(--ldf-h4-font-weight);font-style:var(--ldf-h4-font-style);font-variant:var(--ldf-h4-font-variant);font-size:var(--ldf-h4-font-size);text-transform:var(--ldf-h4-text-transform)}ldf-heading h5,:host h5{text-align:var(--ldf-h5-text-align);font-weight:var(--ldf-h5-font-weight);font-style:var(--ldf-h5-font-style);font-variant:var(--ldf-h5-font-variant);font-size:var(--ldf-h5-font-size);text-transform:var(--ldf-h5-text-transform)}ldf-heading .date,ldf-heading .holy-days,ldf-heading .holy-day,:host .date,:host .holy-days,:host .holy-day{font-size:var(--ldf-date-font-size);text-transform:var(--ldf-date-text-transform);text-align:var(--ldf-date-text-align);font-style:var(--ldf-date-font-style)}ldf-heading .holy-days,:host .holy-days{list-style-type:none;margin:0;padding:0;text-align:center}ldf-heading .holy-day,:host .holy-day{margin:var(--ldf-holy-day-margin);padding:0}.lookup{background-color:var(--ldf-editable-lookup-background-color);color:var(--ldf-editable-lookup-color);border-radius:4px;padding:1em;width:100%}::slotted[slot=citation]{text-align:right;width:100%}.citation{font-style:var(--ldf-heading-citation-font-style, italic);display:var(--ldf-heading-citation-display, block)}.source{width:100%}ldf-editable-text.body-text{display:block;padding-bottom:1em}";
|
|
16
|
-
|
|
17
|
-
const LOCALE = {
|
|
18
|
-
'en': EN
|
|
19
|
-
};
|
|
20
|
-
const HeadingComponent = class {
|
|
21
|
-
constructor(hostRef) {
|
|
22
|
-
registerInstance(this, hostRef);
|
|
23
|
-
}
|
|
24
|
-
docChanged(newDoc) {
|
|
25
|
-
try {
|
|
26
|
-
if (typeof newDoc == 'string') {
|
|
27
|
-
this.obj = new Heading(JSON.parse(newDoc));
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
this.obj = new Heading(newDoc);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
catch (e) {
|
|
34
|
-
console.warn('HEADING ERROR', e);
|
|
35
|
-
this.obj = new Heading();
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
// Lifecycle events
|
|
39
|
-
componentWillLoad() {
|
|
40
|
-
this.docChanged(this.doc);
|
|
41
|
-
this.loadLocaleStrings();
|
|
42
|
-
}
|
|
43
|
-
async loadLocaleStrings() {
|
|
44
|
-
try {
|
|
45
|
-
this.localeStrings = LOCALE[getComponentClosestLanguage(this.element)];
|
|
46
|
-
}
|
|
47
|
-
catch (e) {
|
|
48
|
-
console.warn(e);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
// Convert level/text into an H... node
|
|
52
|
-
headerNode(level, contentNode, display = true) {
|
|
53
|
-
let node;
|
|
54
|
-
switch (level) {
|
|
55
|
-
case 1:
|
|
56
|
-
node = h("h1", null, contentNode);
|
|
57
|
-
break;
|
|
58
|
-
case 2:
|
|
59
|
-
node = h("h2", null, contentNode);
|
|
60
|
-
break;
|
|
61
|
-
case 3:
|
|
62
|
-
node = h("h3", { slot: 'start' }, contentNode);
|
|
63
|
-
break;
|
|
64
|
-
case 4:
|
|
65
|
-
node = h("h4", { slot: 'start' }, contentNode);
|
|
66
|
-
break;
|
|
67
|
-
case 5:
|
|
68
|
-
node = h("h5", { slot: 'start' }, contentNode);
|
|
69
|
-
break;
|
|
70
|
-
default:
|
|
71
|
-
node = h("h6", null, contentNode);
|
|
72
|
-
}
|
|
73
|
-
return display && node;
|
|
74
|
-
}
|
|
75
|
-
textNode(text, index, bodyText) {
|
|
76
|
-
return this.editable
|
|
77
|
-
? h(EditableNode, { uidOrSlug: this.obj.uid || this.obj.slug || '', path: this.path, text: text, index: index, bodyText: Boolean(bodyText) })
|
|
78
|
-
: h("ldf-string", { text: text, fragment: this.path });
|
|
79
|
-
}
|
|
80
|
-
dateNode() {
|
|
81
|
-
var _a, _b, _c, _d, _e, _f;
|
|
82
|
-
const hasDate = !!((_b = (_a = this.obj) === null || _a === void 0 ? void 0 : _a.day) === null || _b === void 0 ? void 0 : _b.date);
|
|
83
|
-
if (hasDate) {
|
|
84
|
-
const date = dateFromYMDString((_d = (_c = this.obj) === null || _c === void 0 ? void 0 : _c.day) === null || _d === void 0 ? void 0 : _d.date), locale = ((_f = (_e = this.element) === null || _e === void 0 ? void 0 : _e.closest('[lang]')) === null || _f === void 0 ? void 0 : _f.lang) || 'en';
|
|
85
|
-
return h("div", { class: "date" }, date.toLocaleDateString(locale, { year: 'numeric', month: 'long', day: 'numeric' }));
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
return [];
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
citationNode(c, slot = 'end') {
|
|
92
|
-
return (h("div", { class: 'citation', slot: slot }, this.editable ?
|
|
93
|
-
h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-citation`, text: c, path: `${this.path}/citation` }) :
|
|
94
|
-
c));
|
|
95
|
-
}
|
|
96
|
-
sourceNode(c) {
|
|
97
|
-
const text = new Citation(c).toString().replace('bcp1979', 'BCP');
|
|
98
|
-
return (h("div", { slot: 'end', class: 'source' }, this.editable ?
|
|
99
|
-
[
|
|
100
|
-
h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-source-source`, text: c === null || c === void 0 ? void 0 : c.source, path: `${this.path}/source/source` }),
|
|
101
|
-
h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-source-citation`, text: c === null || c === void 0 ? void 0 : c.citation, path: `${this.path}/source/citation` }),
|
|
102
|
-
] :
|
|
103
|
-
text));
|
|
104
|
-
}
|
|
105
|
-
// Render
|
|
106
|
-
render() {
|
|
107
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
108
|
-
const localeStrings = this.localeStrings || {};
|
|
109
|
-
const level = this.obj.metadata ? this.obj.metadata.level : 4, hasCitation = Boolean((_a = this.obj) === null || _a === void 0 ? void 0 : _a.citation), hasSource = Boolean((_b = this.obj) === null || _b === void 0 ? void 0 : _b.source), isDate = ((_c = this.obj) === null || _c === void 0 ? void 0 : _c.style) == 'date', isDay = ((_d = this.obj) === null || _d === void 0 ? void 0 : _d.style) == 'day', isText = ((_e = this.obj) === null || _e === void 0 ? void 0 : _e.style) == undefined || ((_f = this.obj) === null || _f === void 0 ? void 0 : _f.style) == 'text' || (!isDate && !isDay);
|
|
110
|
-
// Render
|
|
111
|
-
return (h(Host, { lang: ((_g = this.obj) === null || _g === void 0 ? void 0 : _g.language) || 'en' }, this.editable && h("ldf-label-bar", null, h("slot", { slot: 'end', name: 'controls' })), h("ldf-label-bar", { center: ((_j = (_h = this.obj) === null || _h === void 0 ? void 0 : _h.metadata) === null || _j === void 0 ? void 0 : _j.level) <= 2, class: {
|
|
112
|
-
'text': isText && (((_k = this === null || this === void 0 ? void 0 : this.obj) === null || _k === void 0 ? void 0 : _k.value) || []).filter(n => Boolean(n)).length > 0
|
|
113
|
-
} }, isText && ((_m = (_l = this.obj) === null || _l === void 0 ? void 0 : _l.value) === null || _m === void 0 ? void 0 : _m.length) > 0 && this.headerNode(level, this.textNode(this.obj.value[0], 0), true), isDate && !this.editable && this.dateNode(), isDate && this.editable && h("code", { class: "lookup" }, localeStrings.date), isDay && !this.editable && h("div", { class: "date" }, h("ldf-day-name", { day: (_o = this.obj) === null || _o === void 0 ? void 0 : _o.day })), isDay && !this.editable && ((_r = (_q = (_p = this.obj) === null || _p === void 0 ? void 0 : _p.day) === null || _q === void 0 ? void 0 : _q.holy_days) === null || _r === void 0 ? void 0 : _r.length) > 0 && h("ul", { class: "holy-days" }, (_t = (_s = this.obj) === null || _s === void 0 ? void 0 : _s.day) === null || _t === void 0 ? void 0 : _t.holy_days.filter(day => { var _a; return ((_a = day.type) === null || _a === void 0 ? void 0 : _a.rank) < 3; }).map(day => day.bio
|
|
114
|
-
? h("li", { class: "holy-day" }, h("details", null, h("summary", null, day.name), h("ldf-text", { doc: new Text({ type: "text", style: "text", value: day.bio }) })))
|
|
115
|
-
: h("li", { class: "holy-day" }, day.name))), isDay && this.editable && h("code", { class: "lookup" }, localeStrings.day), ((_v = (_u = this.obj) === null || _u === void 0 ? void 0 : _u.value) === null || _v === void 0 ? void 0 : _v.length) > 1 && this.textNode(this.obj.value[1], 1), h("slot", { name: 'additional' }), h("slot", { name: 'citation', slot: 'end' }, hasSource && this.sourceNode(this.obj.source), hasCitation && !hasSource && this.obj.citation !== this.obj.label && this.obj.citation !== this.obj.value[0] && this.citationNode(this.obj.citation))), h("div", null, hasSource && hasCitation && this.obj.citation !== this.obj.label && this.citationNode(this.obj.citation, 'none')), ((_x = (_w = this.obj) === null || _w === void 0 ? void 0 : _w.value) === null || _x === void 0 ? void 0 : _x.length) > 2 && this.obj.value.slice(2, this.obj.value.length).map((text, index) => this.textNode(text, index + 2, true))));
|
|
116
|
-
}
|
|
117
|
-
get element() { return getElement(this); }
|
|
118
|
-
static get watchers() { return {
|
|
119
|
-
"doc": ["docChanged"]
|
|
120
|
-
}; }
|
|
121
|
-
};
|
|
122
|
-
HeadingComponent.style = headingCss;
|
|
123
|
-
|
|
124
|
-
export { HeadingComponent as ldf_heading };
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, f as createEvent, h, i as Host, j as getElement } from './index-ea7a35b9.js';
|
|
2
|
-
import './index-f4e3260e.js';
|
|
3
|
-
import { I as Image, C as Change } from './index-f441adec.js';
|
|
4
|
-
import { D as Debounce } from './index-7845c707.js';
|
|
5
|
-
import { g as getComponentClosestLanguage } from './locale-d595f8f6.js';
|
|
6
|
-
import { m as modalController } from './overlays-10805282.js';
|
|
7
|
-
import './utils-8d15f916.js';
|
|
8
|
-
import './animation-6b850b6a.js';
|
|
9
|
-
import './helpers-e9bf4204.js';
|
|
10
|
-
import './ios.transition-1d534d59.js';
|
|
11
|
-
import './index-fc8c2f30.js';
|
|
12
|
-
import './md.transition-a8cd439c.js';
|
|
13
|
-
import './cubic-bezier-89113939.js';
|
|
14
|
-
import './index-9b41fcc6.js';
|
|
15
|
-
import './ionic-global-98eeb119.js';
|
|
16
|
-
import './index-86d5f3ab.js';
|
|
17
|
-
import './index-4505cc02.js';
|
|
18
|
-
import './hardware-back-button-b3b61715.js';
|
|
19
|
-
import './_commonjsHelpers-8fe71198.js';
|
|
20
|
-
|
|
21
|
-
const close = "Return to Bulletin";
|
|
22
|
-
const url = "URL";
|
|
23
|
-
const EN = {
|
|
24
|
-
close: close,
|
|
25
|
-
url: url
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
const imageCss = "img.sc-ldf-image{height:auto;max-width:100%;z-index:1}figcaption.sc-ldf-image{background-color:var(--ldf-editable-lookup-background-color);border-radius:4px;color:var(--ldf-editable-lookup-color);display:block;margin:auto;text-align:center}.left.sc-ldf-image{text-align:left}.center.sc-ldf-image{text-align:center}.right.sc-ldf-image{text-align:right}.img-wrapper.sc-ldf-image{margin:0;padding:12px;display:inline-block;position:relative}img.editable.sc-ldf-image{border:3px solid var(--ldf-color)}button.resize.sc-ldf-image{height:30px;width:30px;margin:0;padding:0;background-color:var(--ldf-editable-lookup-background-color);border-radius:50%;border:3px solid var(--ldf-color)}.resize.top-left.sc-ldf-image{position:absolute;left:0;top:-3px;cursor:nwse-resize}.resize.bottom-left.sc-ldf-image{position:absolute;left:-3px;bottom:0;cursor:nesw-resize}.resize.top-right.sc-ldf-image{position:absolute;right:-6px;top:-3px;cursor:nesw-resize}.resize.bottom-right.sc-ldf-image{position:absolute;right:-6px;bottom:0;cursor:nwse-resize}";
|
|
29
|
-
|
|
30
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
31
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
32
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
33
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
34
|
-
else
|
|
35
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
36
|
-
if (d = decorators[i])
|
|
37
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
38
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
39
|
-
};
|
|
40
|
-
const LOCALE = {
|
|
41
|
-
'en': EN
|
|
42
|
-
};
|
|
43
|
-
const ImageComponent = class {
|
|
44
|
-
constructor(hostRef) {
|
|
45
|
-
registerInstance(this, hostRef);
|
|
46
|
-
this.ldfDocShouldChange = createEvent(this, "ldfDocShouldChange", 7);
|
|
47
|
-
this.isResizing = false;
|
|
48
|
-
this.resizingStartPoint = null;
|
|
49
|
-
this.resizingCorner = null;
|
|
50
|
-
}
|
|
51
|
-
docChanged(newDoc) {
|
|
52
|
-
var _a, _b, _c, _d;
|
|
53
|
-
try {
|
|
54
|
-
if (typeof newDoc == 'string') {
|
|
55
|
-
this.obj = new Image(JSON.parse(newDoc));
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
this.obj = new Image(newDoc);
|
|
59
|
-
}
|
|
60
|
-
this.height = ((_b = (_a = this.obj) === null || _a === void 0 ? void 0 : _a.metadata) === null || _b === void 0 ? void 0 : _b.height) || null;
|
|
61
|
-
this.width = ((_d = (_c = this.obj) === null || _c === void 0 ? void 0 : _c.metadata) === null || _d === void 0 ? void 0 : _d.width) || null;
|
|
62
|
-
}
|
|
63
|
-
catch (e) {
|
|
64
|
-
console.warn(e);
|
|
65
|
-
this.obj = new Image();
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
// Lifecycle events
|
|
69
|
-
componentWillLoad() {
|
|
70
|
-
this.docChanged(this.doc);
|
|
71
|
-
this.loadLocaleStrings();
|
|
72
|
-
}
|
|
73
|
-
async loadLocaleStrings() {
|
|
74
|
-
try {
|
|
75
|
-
this.localeStrings = LOCALE[getComponentClosestLanguage(this.element)];
|
|
76
|
-
}
|
|
77
|
-
catch (e) {
|
|
78
|
-
console.warn(e);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
async showZoomed() {
|
|
82
|
-
const modal = await modalController.create({
|
|
83
|
-
component: 'ldf-image'
|
|
84
|
-
});
|
|
85
|
-
modal.componentProps = {
|
|
86
|
-
modal,
|
|
87
|
-
doc: this.obj
|
|
88
|
-
};
|
|
89
|
-
await modal.present();
|
|
90
|
-
}
|
|
91
|
-
startResizing(corner, x, y) {
|
|
92
|
-
this.resizingCorner = corner;
|
|
93
|
-
this.resizingStartPoint = { x, y };
|
|
94
|
-
}
|
|
95
|
-
stopResizing() {
|
|
96
|
-
// clear status of resizing
|
|
97
|
-
console.log('stopResizing');
|
|
98
|
-
this.resizingCorner = null;
|
|
99
|
-
}
|
|
100
|
-
resizingMove(ev) {
|
|
101
|
-
if (this.resizingCorner && this.resizingStartPoint) {
|
|
102
|
-
this.processResizingMove(this.resizingCorner, ev.clientX, ev.clientY);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
processResizingMove(corner, clientX, clientY) {
|
|
106
|
-
const { x } = this.resizingStartPoint;
|
|
107
|
-
const xDiff = corner === 'nw' || corner === 'sw' ? clientX - x : x - clientX;
|
|
108
|
-
this.resizingStartPoint = { x: clientX, y: clientY };
|
|
109
|
-
// force fixed aspect ratio by nulling out `height`
|
|
110
|
-
this.width = this.imgElement.clientWidth - xDiff;
|
|
111
|
-
this.height = null;
|
|
112
|
-
this.updateDoc();
|
|
113
|
-
}
|
|
114
|
-
touchStart(corner, ev) {
|
|
115
|
-
ev.preventDefault();
|
|
116
|
-
const touch = ev.touches[0];
|
|
117
|
-
if (touch) {
|
|
118
|
-
this.startResizing(corner, touch.clientX, touch.clientY);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
touchMove(corner, ev) {
|
|
122
|
-
ev.preventDefault();
|
|
123
|
-
const touch = ev.touches[0];
|
|
124
|
-
if (touch) {
|
|
125
|
-
this.processResizingMove(corner, touch.clientX, touch.clientY);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
// debounce saving the change by 500ms, preventing sending multiple changes as the mouse moves
|
|
129
|
-
updateDoc() {
|
|
130
|
-
var _a, _b, _c, _d, _e, _f;
|
|
131
|
-
if (!((_a = this.obj) === null || _a === void 0 ? void 0 : _a.metadata)) {
|
|
132
|
-
this.ldfDocShouldChange.emit(new Change({
|
|
133
|
-
path: this.path,
|
|
134
|
-
op: [{ type: 'set', index: 'metadata', oldValue: (_b = this.obj) === null || _b === void 0 ? void 0 : _b.metadata, value: {} }]
|
|
135
|
-
}));
|
|
136
|
-
}
|
|
137
|
-
this.ldfDocShouldChange.emit(new Change({
|
|
138
|
-
path: `${this.path}/metadata`,
|
|
139
|
-
op: [
|
|
140
|
-
{
|
|
141
|
-
type: 'set',
|
|
142
|
-
index: 'height',
|
|
143
|
-
oldValue: (_d = (_c = this.obj) === null || _c === void 0 ? void 0 : _c.metadata) === null || _d === void 0 ? void 0 : _d.height,
|
|
144
|
-
value: this.imgElement.clientHeight
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
type: 'set',
|
|
148
|
-
index: 'width',
|
|
149
|
-
oldValue: (_f = (_e = this.obj) === null || _e === void 0 ? void 0 : _e.metadata) === null || _f === void 0 ? void 0 : _f.width,
|
|
150
|
-
value: this.imgElement.clientWidth
|
|
151
|
-
}
|
|
152
|
-
]
|
|
153
|
-
}));
|
|
154
|
-
}
|
|
155
|
-
// Render
|
|
156
|
-
render() {
|
|
157
|
-
var _a, _b, _c, _d, _e;
|
|
158
|
-
const localeStrings = this.localeStrings || {};
|
|
159
|
-
const imageDisplay = [
|
|
160
|
-
this.editable && h("ldf-label-bar", null, h("slot", { slot: 'end', name: 'controls' })),
|
|
161
|
-
h("div", { class: `${((_a = this.obj) === null || _a === void 0 ? void 0 : _a.style) || ''} ${((_c = (_b = this.obj) === null || _b === void 0 ? void 0 : _b.metadata) === null || _c === void 0 ? void 0 : _c.align) || 'center'}` }, this.obj.value && this.obj.value.map((url, ii) => {
|
|
162
|
-
var _a;
|
|
163
|
-
return this.editable ?
|
|
164
|
-
h("figure", null, h("div", { class: "img-wrapper" }, h("img", { src: url, ref: el => this.imgElement = el, alt: (_a = this.obj) === null || _a === void 0 ? void 0 : _a.label, style: {
|
|
165
|
-
height: this.height ? `${this.height}px` : 'auto',
|
|
166
|
-
width: this.width ? `${this.width}px` : 'auto'
|
|
167
|
-
}, class: "editable" }), h("button", { class: "resize top-left", onMouseDown: (ev) => this.startResizing('nw', ev.clientX, ev.clientY), onTouchStart: (ev) => this.touchStart('nw', ev), onTouchMove: (ev) => this.touchMove('nw', ev), onTouchEnd: () => this.stopResizing() }), h("button", { class: "resize bottom-left", onMouseDown: (ev) => this.startResizing('sw', ev.clientX, ev.clientY), onTouchStart: (ev) => this.touchStart('sw', ev), onTouchMove: (ev) => this.touchMove('sw', ev), onTouchEnd: () => this.stopResizing() }), h("button", { class: "resize top-right", onMouseDown: (ev) => this.startResizing('ne', ev.clientX, ev.clientY), onTouchStart: (ev) => this.touchStart('ne', ev), onTouchMove: (ev) => this.touchMove('ne', ev), onTouchEnd: () => this.stopResizing() }), h("button", { class: "resize bottom-right", onMouseDown: (ev) => this.startResizing('se', ev.clientX, ev.clientY), onTouchStart: (ev) => this.touchStart('se', ev), onTouchMove: (ev) => this.touchMove('se', ev), onTouchEnd: () => this.stopResizing() })), h("figcaption", null, h("code", null, localeStrings.url), h("ldf-editable-text", { id: `${this.obj.uid || this.obj.slug}-${ii}`, text: url, path: `${this.path}/value/${ii}` })))
|
|
168
|
-
:
|
|
169
|
-
h("img", { src: url, onClick: () => this.showZoomed(), style: {
|
|
170
|
-
height: this.height ? `${this.height}px` : 'auto',
|
|
171
|
-
width: this.width ? `${this.width}px` : 'auto'
|
|
172
|
-
} });
|
|
173
|
-
}))
|
|
174
|
-
];
|
|
175
|
-
if (!this.modal) {
|
|
176
|
-
return h(Host, { lang: (_d = this.obj) === null || _d === void 0 ? void 0 : _d.language }, imageDisplay);
|
|
177
|
-
}
|
|
178
|
-
else {
|
|
179
|
-
return [
|
|
180
|
-
h("ion-header", null, h("ion-toolbar", null, h("ion-buttons", { slot: "end" }, h("ion-button", { onClick: () => this.modal.dismiss() }, h("ion-label", { slot: "start" }, localeStrings.close), h("ion-icon", { slot: "end", name: "close" }))))),
|
|
181
|
-
h("ion-content", { class: "ion-padding", scrollX: true, lang: (_e = this.obj) === null || _e === void 0 ? void 0 : _e.language }, imageDisplay)
|
|
182
|
-
];
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
get element() { return getElement(this); }
|
|
186
|
-
static get watchers() { return {
|
|
187
|
-
"doc": ["docChanged"]
|
|
188
|
-
}; }
|
|
189
|
-
};
|
|
190
|
-
__decorate([
|
|
191
|
-
Debounce(250)
|
|
192
|
-
], ImageComponent.prototype, "updateDoc", null);
|
|
193
|
-
ImageComponent.style = imageCss;
|
|
194
|
-
|
|
195
|
-
export { ImageComponent as ldf_image };
|