@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
|
@@ -0,0 +1,832 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-8fe0df8d.js');
|
|
6
|
+
const helpers = require('./helpers-41dfb43a.js');
|
|
7
|
+
const cubicBezier = require('./cubic-bezier-f3b34d27.js');
|
|
8
|
+
const ionicGlobal = require('./ionic-global-581fb4f8.js');
|
|
9
|
+
const animation = require('./animation-34a434a2.js');
|
|
10
|
+
|
|
11
|
+
const HapticEngine = {
|
|
12
|
+
getEngine() {
|
|
13
|
+
const win = window;
|
|
14
|
+
return (win.TapticEngine) || (win.Capacitor && win.Capacitor.isPluginAvailable('Haptics') && win.Capacitor.Plugins.Haptics);
|
|
15
|
+
},
|
|
16
|
+
available() {
|
|
17
|
+
return !!this.getEngine();
|
|
18
|
+
},
|
|
19
|
+
isCordova() {
|
|
20
|
+
return !!window.TapticEngine;
|
|
21
|
+
},
|
|
22
|
+
isCapacitor() {
|
|
23
|
+
const win = window;
|
|
24
|
+
return !!win.Capacitor;
|
|
25
|
+
},
|
|
26
|
+
impact(options) {
|
|
27
|
+
const engine = this.getEngine();
|
|
28
|
+
if (!engine) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
const style = this.isCapacitor() ? options.style.toUpperCase() : options.style;
|
|
32
|
+
engine.impact({ style });
|
|
33
|
+
},
|
|
34
|
+
notification(options) {
|
|
35
|
+
const engine = this.getEngine();
|
|
36
|
+
if (!engine) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const style = this.isCapacitor() ? options.style.toUpperCase() : options.style;
|
|
40
|
+
engine.notification({ style });
|
|
41
|
+
},
|
|
42
|
+
selection() {
|
|
43
|
+
this.impact({ style: 'light' });
|
|
44
|
+
},
|
|
45
|
+
selectionStart() {
|
|
46
|
+
const engine = this.getEngine();
|
|
47
|
+
if (!engine) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
if (this.isCapacitor()) {
|
|
51
|
+
engine.selectionStart();
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
engine.gestureSelectionStart();
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
selectionChanged() {
|
|
58
|
+
const engine = this.getEngine();
|
|
59
|
+
if (!engine) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
if (this.isCapacitor()) {
|
|
63
|
+
engine.selectionChanged();
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
engine.gestureSelectionChanged();
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
selectionEnd() {
|
|
70
|
+
const engine = this.getEngine();
|
|
71
|
+
if (!engine) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
if (this.isCapacitor()) {
|
|
75
|
+
engine.selectionChanged();
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
engine.gestureSelectionChanged();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Use this to indicate success/failure/warning to the user.
|
|
84
|
+
* options should be of the type `{ style: 'light' }` (or `medium`/`heavy`)
|
|
85
|
+
*/
|
|
86
|
+
const hapticImpact = (options) => {
|
|
87
|
+
HapticEngine.impact(options);
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const getRefresherAnimationType = (contentEl) => {
|
|
91
|
+
const previousSibling = contentEl.previousElementSibling;
|
|
92
|
+
const hasHeader = previousSibling !== null && previousSibling.tagName === 'ION-HEADER';
|
|
93
|
+
return hasHeader ? 'translate' : 'scale';
|
|
94
|
+
};
|
|
95
|
+
const createPullingAnimation = (type, pullingSpinner) => {
|
|
96
|
+
return type === 'scale' ? createScaleAnimation(pullingSpinner) : createTranslateAnimation(pullingSpinner);
|
|
97
|
+
};
|
|
98
|
+
const createBaseAnimation = (pullingRefresherIcon) => {
|
|
99
|
+
const spinner = pullingRefresherIcon.querySelector('ion-spinner');
|
|
100
|
+
const circle = spinner.shadowRoot.querySelector('circle');
|
|
101
|
+
const spinnerArrowContainer = pullingRefresherIcon.querySelector('.spinner-arrow-container');
|
|
102
|
+
const arrowContainer = pullingRefresherIcon.querySelector('.arrow-container');
|
|
103
|
+
const arrow = (arrowContainer) ? arrowContainer.querySelector('ion-icon') : null;
|
|
104
|
+
const baseAnimation = animation.createAnimation()
|
|
105
|
+
.duration(1000)
|
|
106
|
+
.easing('ease-out');
|
|
107
|
+
const spinnerArrowContainerAnimation = animation.createAnimation()
|
|
108
|
+
.addElement(spinnerArrowContainer)
|
|
109
|
+
.keyframes([
|
|
110
|
+
{ offset: 0, opacity: '0.3' },
|
|
111
|
+
{ offset: 0.45, opacity: '0.3' },
|
|
112
|
+
{ offset: 0.55, opacity: '1' },
|
|
113
|
+
{ offset: 1, opacity: '1' }
|
|
114
|
+
]);
|
|
115
|
+
const circleInnerAnimation = animation.createAnimation()
|
|
116
|
+
.addElement(circle)
|
|
117
|
+
.keyframes([
|
|
118
|
+
{ offset: 0, strokeDasharray: '1px, 200px' },
|
|
119
|
+
{ offset: 0.20, strokeDasharray: '1px, 200px' },
|
|
120
|
+
{ offset: 0.55, strokeDasharray: '100px, 200px' },
|
|
121
|
+
{ offset: 1, strokeDasharray: '100px, 200px' }
|
|
122
|
+
]);
|
|
123
|
+
const circleOuterAnimation = animation.createAnimation()
|
|
124
|
+
.addElement(spinner)
|
|
125
|
+
.keyframes([
|
|
126
|
+
{ offset: 0, transform: 'rotate(-90deg)' },
|
|
127
|
+
{ offset: 1, transform: 'rotate(210deg)' }
|
|
128
|
+
]);
|
|
129
|
+
/**
|
|
130
|
+
* Only add arrow animation if present
|
|
131
|
+
* this allows users to customize the spinners
|
|
132
|
+
* without errors being thrown
|
|
133
|
+
*/
|
|
134
|
+
if (arrowContainer && arrow) {
|
|
135
|
+
const arrowContainerAnimation = animation.createAnimation()
|
|
136
|
+
.addElement(arrowContainer)
|
|
137
|
+
.keyframes([
|
|
138
|
+
{ offset: 0, transform: 'rotate(0deg)' },
|
|
139
|
+
{ offset: 0.30, transform: 'rotate(0deg)' },
|
|
140
|
+
{ offset: 0.55, transform: 'rotate(280deg)' },
|
|
141
|
+
{ offset: 1, transform: 'rotate(400deg)' }
|
|
142
|
+
]);
|
|
143
|
+
const arrowAnimation = animation.createAnimation()
|
|
144
|
+
.addElement(arrow)
|
|
145
|
+
.keyframes([
|
|
146
|
+
{ offset: 0, transform: 'translateX(2px) scale(0)' },
|
|
147
|
+
{ offset: 0.30, transform: 'translateX(2px) scale(0)' },
|
|
148
|
+
{ offset: 0.55, transform: 'translateX(-1.5px) scale(1)' },
|
|
149
|
+
{ offset: 1, transform: 'translateX(-1.5px) scale(1)' }
|
|
150
|
+
]);
|
|
151
|
+
baseAnimation.addAnimation([arrowContainerAnimation, arrowAnimation]);
|
|
152
|
+
}
|
|
153
|
+
return baseAnimation.addAnimation([spinnerArrowContainerAnimation, circleInnerAnimation, circleOuterAnimation]);
|
|
154
|
+
};
|
|
155
|
+
const createScaleAnimation = (pullingRefresherIcon) => {
|
|
156
|
+
const height = pullingRefresherIcon.clientHeight;
|
|
157
|
+
const spinnerAnimation = animation.createAnimation()
|
|
158
|
+
.addElement(pullingRefresherIcon)
|
|
159
|
+
.keyframes([
|
|
160
|
+
{ offset: 0, transform: `scale(0) translateY(-${height + 20}px)` },
|
|
161
|
+
{ offset: 1, transform: 'scale(1) translateY(100px)' }
|
|
162
|
+
]);
|
|
163
|
+
return createBaseAnimation(pullingRefresherIcon).addAnimation([spinnerAnimation]);
|
|
164
|
+
};
|
|
165
|
+
const createTranslateAnimation = (pullingRefresherIcon) => {
|
|
166
|
+
const height = pullingRefresherIcon.clientHeight;
|
|
167
|
+
const spinnerAnimation = animation.createAnimation()
|
|
168
|
+
.addElement(pullingRefresherIcon)
|
|
169
|
+
.keyframes([
|
|
170
|
+
{ offset: 0, transform: `translateY(-${height + 20}px)` },
|
|
171
|
+
{ offset: 1, transform: 'translateY(100px)' }
|
|
172
|
+
]);
|
|
173
|
+
return createBaseAnimation(pullingRefresherIcon).addAnimation([spinnerAnimation]);
|
|
174
|
+
};
|
|
175
|
+
const createSnapBackAnimation = (pullingRefresherIcon) => {
|
|
176
|
+
return animation.createAnimation()
|
|
177
|
+
.duration(125)
|
|
178
|
+
.addElement(pullingRefresherIcon)
|
|
179
|
+
.fromTo('transform', 'translateY(var(--ion-pulling-refresher-translate, 100px))', 'translateY(0px)');
|
|
180
|
+
};
|
|
181
|
+
// iOS Native Refresher
|
|
182
|
+
// -----------------------------
|
|
183
|
+
const setSpinnerOpacity = (spinner, opacity) => {
|
|
184
|
+
spinner.style.setProperty('opacity', opacity.toString());
|
|
185
|
+
};
|
|
186
|
+
const handleScrollWhilePulling = (spinner, ticks, opacity, currentTickToShow) => {
|
|
187
|
+
index.writeTask(() => {
|
|
188
|
+
setSpinnerOpacity(spinner, opacity);
|
|
189
|
+
ticks.forEach((el, i) => el.style.setProperty('opacity', (i <= currentTickToShow) ? '0.99' : '0'));
|
|
190
|
+
});
|
|
191
|
+
};
|
|
192
|
+
const handleScrollWhileRefreshing = (spinner, lastVelocityY) => {
|
|
193
|
+
index.writeTask(() => {
|
|
194
|
+
// If user pulls down quickly, the spinner should spin faster
|
|
195
|
+
spinner.style.setProperty('--refreshing-rotation-duration', (lastVelocityY >= 1.0) ? '0.5s' : '2s');
|
|
196
|
+
spinner.style.setProperty('opacity', '1');
|
|
197
|
+
});
|
|
198
|
+
};
|
|
199
|
+
const translateElement = (el, value) => {
|
|
200
|
+
if (!el) {
|
|
201
|
+
return Promise.resolve();
|
|
202
|
+
}
|
|
203
|
+
const trans = transitionEndAsync(el);
|
|
204
|
+
index.writeTask(() => {
|
|
205
|
+
el.style.setProperty('transition', '0.2s all ease-out');
|
|
206
|
+
if (value === undefined) {
|
|
207
|
+
el.style.removeProperty('transform');
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
el.style.setProperty('transform', `translate3d(0px, ${value}, 0px)`);
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
return trans;
|
|
214
|
+
};
|
|
215
|
+
// Utils
|
|
216
|
+
// -----------------------------
|
|
217
|
+
const shouldUseNativeRefresher = (referenceEl, mode) => {
|
|
218
|
+
const pullingSpinner = referenceEl.querySelector('ion-refresher-content .refresher-pulling ion-spinner');
|
|
219
|
+
const refreshingSpinner = referenceEl.querySelector('ion-refresher-content .refresher-refreshing ion-spinner');
|
|
220
|
+
return (pullingSpinner !== null &&
|
|
221
|
+
refreshingSpinner !== null &&
|
|
222
|
+
((mode === 'ios' && ionicGlobal.isPlatform('mobile') && referenceEl.style.webkitOverflowScrolling !== undefined) ||
|
|
223
|
+
mode === 'md'));
|
|
224
|
+
};
|
|
225
|
+
const transitionEndAsync = (el) => {
|
|
226
|
+
return new Promise(resolve => {
|
|
227
|
+
transitionEnd(el, resolve);
|
|
228
|
+
});
|
|
229
|
+
};
|
|
230
|
+
const transitionEnd = (el, callback) => {
|
|
231
|
+
let unRegTrans;
|
|
232
|
+
const opts = { passive: true };
|
|
233
|
+
const unregister = () => {
|
|
234
|
+
if (unRegTrans) {
|
|
235
|
+
unRegTrans();
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
const onTransitionEnd = (ev) => {
|
|
239
|
+
if (el === ev.target) {
|
|
240
|
+
unregister();
|
|
241
|
+
callback(ev);
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
if (el) {
|
|
245
|
+
el.addEventListener('webkitTransitionEnd', onTransitionEnd, opts);
|
|
246
|
+
el.addEventListener('transitionend', onTransitionEnd, opts);
|
|
247
|
+
unRegTrans = () => {
|
|
248
|
+
el.removeEventListener('webkitTransitionEnd', onTransitionEnd, opts);
|
|
249
|
+
el.removeEventListener('transitionend', onTransitionEnd, opts);
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
return unregister;
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
const refresherIosCss = "ion-refresher{left:0;top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}[dir=rtl] ion-refresher,:host-context([dir=rtl]) ion-refresher{left:unset;right:unset;right:0}ion-refresher.refresher-active{display:block}ion-refresher-content{display:flex;flex-direction:column;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{transform-origin:center;transition:200ms;font-size:30px;text-align:center}[dir=rtl] .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{transform-origin:calc(100% - center)}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-ios .refresher-pulling-icon,.refresher-ios .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-ios .refresher-pulling-text,.refresher-ios .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-lines-ios line,.refresher-ios .refresher-refreshing .spinner-lines-small-ios line,.refresher-ios .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-bubbles circle,.refresher-ios .refresher-refreshing .spinner-circles circle,.refresher-ios .refresher-refreshing .spinner-dots circle{fill:var(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){ion-refresher.refresher-native ion-spinner{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.refresher-native .refresher-refreshing ion-spinner{--refreshing-rotation-duration:2s;display:none;animation:var(--refreshing-rotation-duration) ease-out refresher-rotate forwards}.refresher-native .refresher-refreshing{display:none;animation:250ms linear refresher-pop forwards}.refresher-native.refresher-refreshing .refresher-pulling ion-spinner,.refresher-native.refresher-completing .refresher-pulling ion-spinner{display:none}.refresher-native.refresher-refreshing .refresher-refreshing ion-spinner,.refresher-native.refresher-completing .refresher-refreshing ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-pulling ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-refreshing ion-spinner{display:none}@keyframes refresher-pop{0%{transform:scale(1);animation-timing-function:ease-in}50%{transform:scale(1.2);animation-timing-function:ease-out}100%{transform:scale(1)}}@keyframes refresher-rotate{from{transform:rotate(0deg)}to{transform:rotate(180deg)}}";
|
|
256
|
+
|
|
257
|
+
const refresherMdCss = "ion-refresher{left:0;top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}[dir=rtl] ion-refresher,:host-context([dir=rtl]) ion-refresher{left:unset;right:unset;right:0}ion-refresher.refresher-active{display:block}ion-refresher-content{display:flex;flex-direction:column;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{transform-origin:center;transition:200ms;font-size:30px;text-align:center}[dir=rtl] .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{transform-origin:calc(100% - center)}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-md .refresher-pulling-icon,.refresher-md .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-md .refresher-pulling-text,.refresher-md .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-lines-md line,.refresher-md .refresher-refreshing .spinner-lines-small-md line,.refresher-md .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-bubbles circle,.refresher-md .refresher-refreshing .spinner-circles circle,.refresher-md .refresher-refreshing .spinner-dots circle{fill:var(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;width:24px;height:24px;color:var(--ion-color-primary, #3880ff)}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){ion-refresher.refresher-native ion-spinner{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}ion-refresher.refresher-native .spinner-arrow-container{display:inherit}ion-refresher.refresher-native .arrow-container{display:block;position:absolute;width:24px;height:24px}ion-refresher.refresher-native .arrow-container ion-icon{margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;left:0;right:0;bottom:-4px;position:absolute;color:var(--ion-color-primary, #3880ff);font-size:12px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){ion-refresher.refresher-native .arrow-container ion-icon{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}ion-refresher.refresher-native.refresher-pulling ion-refresher-content .refresher-pulling,ion-refresher.refresher-native.refresher-ready ion-refresher-content .refresher-pulling{display:flex}ion-refresher.refresher-native.refresher-refreshing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-cancelling ion-refresher-content .refresher-refreshing{display:flex}ion-refresher.refresher-native .refresher-pulling-icon{transform:translateY(calc(-100% - 10px))}ion-refresher.refresher-native .refresher-pulling-icon,ion-refresher.refresher-native .refresher-refreshing-icon{margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;border-radius:100%;padding-left:8px;padding-right:8px;padding-top:8px;padding-bottom:8px;display:flex;border:1px solid #ececec;background:white;box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1)}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){ion-refresher.refresher-native .refresher-pulling-icon,ion-refresher.refresher-native .refresher-refreshing-icon{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){ion-refresher.refresher-native .refresher-pulling-icon,ion-refresher.refresher-native .refresher-refreshing-icon{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}";
|
|
258
|
+
|
|
259
|
+
const Refresher = class {
|
|
260
|
+
constructor(hostRef) {
|
|
261
|
+
index.registerInstance(this, hostRef);
|
|
262
|
+
this.ionRefresh = index.createEvent(this, "ionRefresh", 7);
|
|
263
|
+
this.ionPull = index.createEvent(this, "ionPull", 7);
|
|
264
|
+
this.ionStart = index.createEvent(this, "ionStart", 7);
|
|
265
|
+
this.appliedStyles = false;
|
|
266
|
+
this.didStart = false;
|
|
267
|
+
this.progress = 0;
|
|
268
|
+
this.pointerDown = false;
|
|
269
|
+
this.needsCompletion = false;
|
|
270
|
+
this.didRefresh = false;
|
|
271
|
+
this.lastVelocityY = 0;
|
|
272
|
+
this.animations = [];
|
|
273
|
+
this.nativeRefresher = false;
|
|
274
|
+
/**
|
|
275
|
+
* The current state which the refresher is in. The refresher's states include:
|
|
276
|
+
*
|
|
277
|
+
* - `inactive` - The refresher is not being pulled down or refreshing and is currently hidden.
|
|
278
|
+
* - `pulling` - The user is actively pulling down the refresher, but has not reached the point yet that if the user lets go, it'll refresh.
|
|
279
|
+
* - `cancelling` - The user pulled down the refresher and let go, but did not pull down far enough to kick off the `refreshing` state. After letting go, the refresher is in the `cancelling` state while it is closing, and will go back to the `inactive` state once closed.
|
|
280
|
+
* - `ready` - The user has pulled down the refresher far enough that if they let go, it'll begin the `refreshing` state.
|
|
281
|
+
* - `refreshing` - The refresher is actively waiting on the async operation to end. Once the refresh handler calls `complete()` it will begin the `completing` state.
|
|
282
|
+
* - `completing` - The `refreshing` state has finished and the refresher is in the way of closing itself. Once closed, the refresher will go back to the `inactive` state.
|
|
283
|
+
*/
|
|
284
|
+
this.state = 1 /* Inactive */;
|
|
285
|
+
/**
|
|
286
|
+
* The minimum distance the user must pull down until the
|
|
287
|
+
* refresher will go into the `refreshing` state.
|
|
288
|
+
* Does not apply when the refresher content uses a spinner,
|
|
289
|
+
* enabling the native refresher.
|
|
290
|
+
*/
|
|
291
|
+
this.pullMin = 60;
|
|
292
|
+
/**
|
|
293
|
+
* The maximum distance of the pull until the refresher
|
|
294
|
+
* will automatically go into the `refreshing` state.
|
|
295
|
+
* Defaults to the result of `pullMin + 60`.
|
|
296
|
+
* Does not apply when the refresher content uses a spinner,
|
|
297
|
+
* enabling the native refresher.
|
|
298
|
+
*/
|
|
299
|
+
this.pullMax = this.pullMin + 60;
|
|
300
|
+
/**
|
|
301
|
+
* Time it takes to close the refresher.
|
|
302
|
+
* Does not apply when the refresher content uses a spinner,
|
|
303
|
+
* enabling the native refresher.
|
|
304
|
+
*/
|
|
305
|
+
this.closeDuration = '280ms';
|
|
306
|
+
/**
|
|
307
|
+
* Time it takes the refresher to to snap back to the `refreshing` state.
|
|
308
|
+
* Does not apply when the refresher content uses a spinner,
|
|
309
|
+
* enabling the native refresher.
|
|
310
|
+
*/
|
|
311
|
+
this.snapbackDuration = '280ms';
|
|
312
|
+
/**
|
|
313
|
+
* How much to multiply the pull speed by. To slow the pull animation down,
|
|
314
|
+
* pass a number less than `1`. To speed up the pull, pass a number greater
|
|
315
|
+
* than `1`. The default value is `1` which is equal to the speed of the cursor.
|
|
316
|
+
* If a negative value is passed in, the factor will be `1` instead.
|
|
317
|
+
*
|
|
318
|
+
* For example: If the value passed is `1.2` and the content is dragged by
|
|
319
|
+
* `10` pixels, instead of `10` pixels the content will be pulled by `12` pixels
|
|
320
|
+
* (an increase of 20 percent). If the value passed is `0.8`, the dragged amount
|
|
321
|
+
* will be `8` pixels, less than the amount the cursor has moved.
|
|
322
|
+
*
|
|
323
|
+
* Does not apply when the refresher content uses a spinner,
|
|
324
|
+
* enabling the native refresher.
|
|
325
|
+
*/
|
|
326
|
+
this.pullFactor = 1;
|
|
327
|
+
/**
|
|
328
|
+
* If `true`, the refresher will be hidden.
|
|
329
|
+
*/
|
|
330
|
+
this.disabled = false;
|
|
331
|
+
}
|
|
332
|
+
disabledChanged() {
|
|
333
|
+
if (this.gesture) {
|
|
334
|
+
this.gesture.enable(!this.disabled);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
checkNativeRefresher() {
|
|
338
|
+
const useNativeRefresher = shouldUseNativeRefresher(this.el, ionicGlobal.getIonMode(this));
|
|
339
|
+
if (useNativeRefresher && !this.nativeRefresher) {
|
|
340
|
+
const contentEl = this.el.closest('ion-content');
|
|
341
|
+
this.setupNativeRefresher(contentEl);
|
|
342
|
+
}
|
|
343
|
+
else if (!useNativeRefresher) {
|
|
344
|
+
this.destroyNativeRefresher();
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
destroyNativeRefresher() {
|
|
348
|
+
if (this.scrollEl && this.scrollListenerCallback) {
|
|
349
|
+
this.scrollEl.removeEventListener('scroll', this.scrollListenerCallback);
|
|
350
|
+
this.scrollListenerCallback = undefined;
|
|
351
|
+
}
|
|
352
|
+
this.nativeRefresher = false;
|
|
353
|
+
}
|
|
354
|
+
async resetNativeRefresher(el, state) {
|
|
355
|
+
this.state = state;
|
|
356
|
+
if (ionicGlobal.getIonMode(this) === 'ios') {
|
|
357
|
+
await translateElement(el, undefined);
|
|
358
|
+
}
|
|
359
|
+
else {
|
|
360
|
+
await transitionEndAsync(this.el.querySelector('.refresher-refreshing-icon'));
|
|
361
|
+
}
|
|
362
|
+
this.didRefresh = false;
|
|
363
|
+
this.needsCompletion = false;
|
|
364
|
+
this.pointerDown = false;
|
|
365
|
+
this.animations.forEach(ani => ani.destroy());
|
|
366
|
+
this.animations = [];
|
|
367
|
+
this.progress = 0;
|
|
368
|
+
this.state = 1 /* Inactive */;
|
|
369
|
+
}
|
|
370
|
+
async setupiOSNativeRefresher(pullingSpinner, refreshingSpinner) {
|
|
371
|
+
this.elementToTransform = this.scrollEl;
|
|
372
|
+
const ticks = pullingSpinner.shadowRoot.querySelectorAll('svg');
|
|
373
|
+
const MAX_PULL = this.scrollEl.clientHeight * 0.16;
|
|
374
|
+
const NUM_TICKS = ticks.length;
|
|
375
|
+
index.writeTask(() => ticks.forEach(el => el.style.setProperty('animation', 'none')));
|
|
376
|
+
this.scrollListenerCallback = () => {
|
|
377
|
+
// If pointer is not on screen or refresher is not active, ignore scroll
|
|
378
|
+
if (!this.pointerDown && this.state === 1 /* Inactive */) {
|
|
379
|
+
return;
|
|
380
|
+
}
|
|
381
|
+
index.readTask(() => {
|
|
382
|
+
// PTR should only be active when overflow scrolling at the top
|
|
383
|
+
const scrollTop = this.scrollEl.scrollTop;
|
|
384
|
+
const refresherHeight = this.el.clientHeight;
|
|
385
|
+
if (scrollTop > 0) {
|
|
386
|
+
/**
|
|
387
|
+
* If refresher is refreshing and user tries to scroll
|
|
388
|
+
* progressively fade refresher out/in
|
|
389
|
+
*/
|
|
390
|
+
if (this.state === 8 /* Refreshing */) {
|
|
391
|
+
const ratio = helpers.clamp(0, scrollTop / (refresherHeight * 0.5), 1);
|
|
392
|
+
index.writeTask(() => setSpinnerOpacity(refreshingSpinner, 1 - ratio));
|
|
393
|
+
return;
|
|
394
|
+
}
|
|
395
|
+
index.writeTask(() => setSpinnerOpacity(pullingSpinner, 0));
|
|
396
|
+
return;
|
|
397
|
+
}
|
|
398
|
+
if (this.pointerDown) {
|
|
399
|
+
if (!this.didStart) {
|
|
400
|
+
this.didStart = true;
|
|
401
|
+
this.ionStart.emit();
|
|
402
|
+
}
|
|
403
|
+
// emit "pulling" on every move
|
|
404
|
+
if (this.pointerDown) {
|
|
405
|
+
this.ionPull.emit();
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
// delay showing the next tick marks until user has pulled 30px
|
|
409
|
+
const opacity = helpers.clamp(0, Math.abs(scrollTop) / refresherHeight, 0.99);
|
|
410
|
+
const pullAmount = this.progress = helpers.clamp(0, (Math.abs(scrollTop) - 30) / MAX_PULL, 1);
|
|
411
|
+
const currentTickToShow = helpers.clamp(0, Math.floor(pullAmount * NUM_TICKS), NUM_TICKS - 1);
|
|
412
|
+
const shouldShowRefreshingSpinner = this.state === 8 /* Refreshing */ || currentTickToShow === NUM_TICKS - 1;
|
|
413
|
+
if (shouldShowRefreshingSpinner) {
|
|
414
|
+
if (this.pointerDown) {
|
|
415
|
+
handleScrollWhileRefreshing(refreshingSpinner, this.lastVelocityY);
|
|
416
|
+
}
|
|
417
|
+
if (!this.didRefresh) {
|
|
418
|
+
this.beginRefresh();
|
|
419
|
+
this.didRefresh = true;
|
|
420
|
+
hapticImpact({ style: 'light' });
|
|
421
|
+
/**
|
|
422
|
+
* Translate the content element otherwise when pointer is removed
|
|
423
|
+
* from screen the scroll content will bounce back over the refresher
|
|
424
|
+
*/
|
|
425
|
+
if (!this.pointerDown) {
|
|
426
|
+
translateElement(this.elementToTransform, `${refresherHeight}px`);
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
else {
|
|
431
|
+
this.state = 2 /* Pulling */;
|
|
432
|
+
handleScrollWhilePulling(pullingSpinner, ticks, opacity, currentTickToShow);
|
|
433
|
+
}
|
|
434
|
+
});
|
|
435
|
+
};
|
|
436
|
+
this.scrollEl.addEventListener('scroll', this.scrollListenerCallback);
|
|
437
|
+
this.gesture = (await Promise.resolve().then(function () { return require('./index-8197bb45.js'); })).createGesture({
|
|
438
|
+
el: this.scrollEl,
|
|
439
|
+
gestureName: 'refresher',
|
|
440
|
+
gesturePriority: 10,
|
|
441
|
+
direction: 'y',
|
|
442
|
+
threshold: 5,
|
|
443
|
+
onStart: () => {
|
|
444
|
+
this.pointerDown = true;
|
|
445
|
+
if (!this.didRefresh) {
|
|
446
|
+
translateElement(this.elementToTransform, '0px');
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
onMove: ev => {
|
|
450
|
+
this.lastVelocityY = ev.velocityY;
|
|
451
|
+
},
|
|
452
|
+
onEnd: () => {
|
|
453
|
+
this.pointerDown = false;
|
|
454
|
+
this.didStart = false;
|
|
455
|
+
if (this.needsCompletion) {
|
|
456
|
+
this.resetNativeRefresher(this.elementToTransform, 32 /* Completing */);
|
|
457
|
+
this.needsCompletion = false;
|
|
458
|
+
}
|
|
459
|
+
else if (this.didRefresh) {
|
|
460
|
+
index.readTask(() => translateElement(this.elementToTransform, `${this.el.clientHeight}px`));
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
});
|
|
464
|
+
this.disabledChanged();
|
|
465
|
+
}
|
|
466
|
+
async setupMDNativeRefresher(contentEl, pullingSpinner, refreshingSpinner) {
|
|
467
|
+
const circle = pullingSpinner.shadowRoot.querySelector('circle');
|
|
468
|
+
const pullingRefresherIcon = this.el.querySelector('ion-refresher-content .refresher-pulling-icon');
|
|
469
|
+
const refreshingCircle = refreshingSpinner.shadowRoot.querySelector('circle');
|
|
470
|
+
if (circle !== null && refreshingCircle !== null) {
|
|
471
|
+
index.writeTask(() => {
|
|
472
|
+
circle.style.setProperty('animation', 'none');
|
|
473
|
+
// This lines up the animation on the refreshing spinner with the pulling spinner
|
|
474
|
+
refreshingSpinner.style.setProperty('animation-delay', '-655ms');
|
|
475
|
+
refreshingCircle.style.setProperty('animation-delay', '-655ms');
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
this.gesture = (await Promise.resolve().then(function () { return require('./index-8197bb45.js'); })).createGesture({
|
|
479
|
+
el: this.scrollEl,
|
|
480
|
+
gestureName: 'refresher',
|
|
481
|
+
gesturePriority: 10,
|
|
482
|
+
direction: 'y',
|
|
483
|
+
threshold: 5,
|
|
484
|
+
canStart: () => this.state !== 8 /* Refreshing */ && this.state !== 32 /* Completing */ && this.scrollEl.scrollTop === 0,
|
|
485
|
+
onStart: (ev) => {
|
|
486
|
+
ev.data = { animation: undefined, didStart: false, cancelled: false };
|
|
487
|
+
},
|
|
488
|
+
onMove: (ev) => {
|
|
489
|
+
if ((ev.velocityY < 0 && this.progress === 0 && !ev.data.didStart) || ev.data.cancelled) {
|
|
490
|
+
ev.data.cancelled = true;
|
|
491
|
+
return;
|
|
492
|
+
}
|
|
493
|
+
if (!ev.data.didStart) {
|
|
494
|
+
ev.data.didStart = true;
|
|
495
|
+
this.state = 2 /* Pulling */;
|
|
496
|
+
index.writeTask(() => {
|
|
497
|
+
const animationType = getRefresherAnimationType(contentEl);
|
|
498
|
+
const animation = createPullingAnimation(animationType, pullingRefresherIcon);
|
|
499
|
+
ev.data.animation = animation;
|
|
500
|
+
this.scrollEl.style.setProperty('--overflow', 'hidden');
|
|
501
|
+
animation.progressStart(false, 0);
|
|
502
|
+
this.ionStart.emit();
|
|
503
|
+
this.animations.push(animation);
|
|
504
|
+
});
|
|
505
|
+
return;
|
|
506
|
+
}
|
|
507
|
+
// Since we are using an easing curve, slow the gesture tracking down a bit
|
|
508
|
+
this.progress = helpers.clamp(0, (ev.deltaY / 180) * 0.5, 1);
|
|
509
|
+
ev.data.animation.progressStep(this.progress);
|
|
510
|
+
this.ionPull.emit();
|
|
511
|
+
},
|
|
512
|
+
onEnd: (ev) => {
|
|
513
|
+
if (!ev.data.didStart) {
|
|
514
|
+
return;
|
|
515
|
+
}
|
|
516
|
+
index.writeTask(() => this.scrollEl.style.removeProperty('--overflow'));
|
|
517
|
+
if (this.progress <= 0.4) {
|
|
518
|
+
this.gesture.enable(false);
|
|
519
|
+
ev.data.animation
|
|
520
|
+
.progressEnd(0, this.progress, 500)
|
|
521
|
+
.onFinish(() => {
|
|
522
|
+
this.animations.forEach(ani => ani.destroy());
|
|
523
|
+
this.animations = [];
|
|
524
|
+
this.gesture.enable(true);
|
|
525
|
+
this.state = 1 /* Inactive */;
|
|
526
|
+
});
|
|
527
|
+
return;
|
|
528
|
+
}
|
|
529
|
+
const progress = cubicBezier.getTimeGivenProgression([0, 0], [0, 0], [1, 1], [1, 1], this.progress)[0];
|
|
530
|
+
const snapBackAnimation = createSnapBackAnimation(pullingRefresherIcon);
|
|
531
|
+
this.animations.push(snapBackAnimation);
|
|
532
|
+
index.writeTask(async () => {
|
|
533
|
+
pullingRefresherIcon.style.setProperty('--ion-pulling-refresher-translate', `${(progress * 100)}px`);
|
|
534
|
+
ev.data.animation.progressEnd();
|
|
535
|
+
await snapBackAnimation.play();
|
|
536
|
+
this.beginRefresh();
|
|
537
|
+
ev.data.animation.destroy();
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
});
|
|
541
|
+
this.disabledChanged();
|
|
542
|
+
}
|
|
543
|
+
async setupNativeRefresher(contentEl) {
|
|
544
|
+
if (this.scrollListenerCallback || !contentEl || this.nativeRefresher || !this.scrollEl) {
|
|
545
|
+
return;
|
|
546
|
+
}
|
|
547
|
+
this.nativeRefresher = true;
|
|
548
|
+
const pullingSpinner = this.el.querySelector('ion-refresher-content .refresher-pulling ion-spinner');
|
|
549
|
+
const refreshingSpinner = this.el.querySelector('ion-refresher-content .refresher-refreshing ion-spinner');
|
|
550
|
+
await contentEl.componentOnReady();
|
|
551
|
+
if (ionicGlobal.getIonMode(this) === 'ios') {
|
|
552
|
+
this.setupiOSNativeRefresher(pullingSpinner, refreshingSpinner);
|
|
553
|
+
}
|
|
554
|
+
else {
|
|
555
|
+
this.setupMDNativeRefresher(contentEl, pullingSpinner, refreshingSpinner);
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
componentDidUpdate() {
|
|
559
|
+
this.checkNativeRefresher();
|
|
560
|
+
}
|
|
561
|
+
async connectedCallback() {
|
|
562
|
+
if (this.el.getAttribute('slot') !== 'fixed') {
|
|
563
|
+
console.error('Make sure you use: <ion-refresher slot="fixed">');
|
|
564
|
+
return;
|
|
565
|
+
}
|
|
566
|
+
const contentEl = this.el.closest('ion-content');
|
|
567
|
+
if (!contentEl) {
|
|
568
|
+
console.error('<ion-refresher> must be used inside an <ion-content>');
|
|
569
|
+
return;
|
|
570
|
+
}
|
|
571
|
+
this.scrollEl = await contentEl.getScrollElement();
|
|
572
|
+
this.backgroundContentEl = contentEl.shadowRoot.querySelector('#background-content');
|
|
573
|
+
if (shouldUseNativeRefresher(this.el, ionicGlobal.getIonMode(this))) {
|
|
574
|
+
this.setupNativeRefresher(contentEl);
|
|
575
|
+
}
|
|
576
|
+
else {
|
|
577
|
+
this.gesture = (await Promise.resolve().then(function () { return require('./index-8197bb45.js'); })).createGesture({
|
|
578
|
+
el: contentEl,
|
|
579
|
+
gestureName: 'refresher',
|
|
580
|
+
gesturePriority: 10,
|
|
581
|
+
direction: 'y',
|
|
582
|
+
threshold: 20,
|
|
583
|
+
passive: false,
|
|
584
|
+
canStart: () => this.canStart(),
|
|
585
|
+
onStart: () => this.onStart(),
|
|
586
|
+
onMove: ev => this.onMove(ev),
|
|
587
|
+
onEnd: () => this.onEnd(),
|
|
588
|
+
});
|
|
589
|
+
this.disabledChanged();
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
disconnectedCallback() {
|
|
593
|
+
this.destroyNativeRefresher();
|
|
594
|
+
this.scrollEl = undefined;
|
|
595
|
+
if (this.gesture) {
|
|
596
|
+
this.gesture.destroy();
|
|
597
|
+
this.gesture = undefined;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* Call `complete()` when your async operation has completed.
|
|
602
|
+
* For example, the `refreshing` state is while the app is performing
|
|
603
|
+
* an asynchronous operation, such as receiving more data from an
|
|
604
|
+
* AJAX request. Once the data has been received, you then call this
|
|
605
|
+
* method to signify that the refreshing has completed and to close
|
|
606
|
+
* the refresher. This method also changes the refresher's state from
|
|
607
|
+
* `refreshing` to `completing`.
|
|
608
|
+
*/
|
|
609
|
+
async complete() {
|
|
610
|
+
if (this.nativeRefresher) {
|
|
611
|
+
this.needsCompletion = true;
|
|
612
|
+
// Do not reset scroll el until user removes pointer from screen
|
|
613
|
+
if (!this.pointerDown) {
|
|
614
|
+
helpers.raf(() => helpers.raf(() => this.resetNativeRefresher(this.elementToTransform, 32 /* Completing */)));
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
else {
|
|
618
|
+
this.close(32 /* Completing */, '120ms');
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* Changes the refresher's state from `refreshing` to `cancelling`.
|
|
623
|
+
*/
|
|
624
|
+
async cancel() {
|
|
625
|
+
if (this.nativeRefresher) {
|
|
626
|
+
// Do not reset scroll el until user removes pointer from screen
|
|
627
|
+
if (!this.pointerDown) {
|
|
628
|
+
helpers.raf(() => helpers.raf(() => this.resetNativeRefresher(this.elementToTransform, 16 /* Cancelling */)));
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
else {
|
|
632
|
+
this.close(16 /* Cancelling */, '');
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* A number representing how far down the user has pulled.
|
|
637
|
+
* The number `0` represents the user hasn't pulled down at all. The
|
|
638
|
+
* number `1`, and anything greater than `1`, represents that the user
|
|
639
|
+
* has pulled far enough down that when they let go then the refresh will
|
|
640
|
+
* happen. If they let go and the number is less than `1`, then the
|
|
641
|
+
* refresh will not happen, and the content will return to it's original
|
|
642
|
+
* position.
|
|
643
|
+
*/
|
|
644
|
+
getProgress() {
|
|
645
|
+
return Promise.resolve(this.progress);
|
|
646
|
+
}
|
|
647
|
+
canStart() {
|
|
648
|
+
if (!this.scrollEl) {
|
|
649
|
+
return false;
|
|
650
|
+
}
|
|
651
|
+
if (this.state !== 1 /* Inactive */) {
|
|
652
|
+
return false;
|
|
653
|
+
}
|
|
654
|
+
// if the scrollTop is greater than zero then it's
|
|
655
|
+
// not possible to pull the content down yet
|
|
656
|
+
if (this.scrollEl.scrollTop > 0) {
|
|
657
|
+
return false;
|
|
658
|
+
}
|
|
659
|
+
return true;
|
|
660
|
+
}
|
|
661
|
+
onStart() {
|
|
662
|
+
this.progress = 0;
|
|
663
|
+
this.state = 1 /* Inactive */;
|
|
664
|
+
}
|
|
665
|
+
onMove(detail) {
|
|
666
|
+
if (!this.scrollEl) {
|
|
667
|
+
return;
|
|
668
|
+
}
|
|
669
|
+
// this method can get called like a bazillion times per second,
|
|
670
|
+
// so it's built to be as efficient as possible, and does its
|
|
671
|
+
// best to do any DOM read/writes only when absolutely necessary
|
|
672
|
+
// if multi-touch then get out immediately
|
|
673
|
+
const ev = detail.event;
|
|
674
|
+
if (ev.touches && ev.touches.length > 1) {
|
|
675
|
+
return;
|
|
676
|
+
}
|
|
677
|
+
// do nothing if it's actively refreshing
|
|
678
|
+
// or it's in the way of closing
|
|
679
|
+
// or this was never a startY
|
|
680
|
+
if ((this.state & 56 /* _BUSY_ */) !== 0) {
|
|
681
|
+
return;
|
|
682
|
+
}
|
|
683
|
+
const pullFactor = (Number.isNaN(this.pullFactor) || this.pullFactor < 0) ? 1 : this.pullFactor;
|
|
684
|
+
const deltaY = detail.deltaY * pullFactor;
|
|
685
|
+
// don't bother if they're scrolling up
|
|
686
|
+
// and have not already started dragging
|
|
687
|
+
if (deltaY <= 0) {
|
|
688
|
+
// the current Y is higher than the starting Y
|
|
689
|
+
// so they scrolled up enough to be ignored
|
|
690
|
+
this.progress = 0;
|
|
691
|
+
this.state = 1 /* Inactive */;
|
|
692
|
+
if (this.appliedStyles) {
|
|
693
|
+
// reset the styles only if they were applied
|
|
694
|
+
this.setCss(0, '', false, '');
|
|
695
|
+
return;
|
|
696
|
+
}
|
|
697
|
+
return;
|
|
698
|
+
}
|
|
699
|
+
if (this.state === 1 /* Inactive */) {
|
|
700
|
+
// this refresh is not already actively pulling down
|
|
701
|
+
// get the content's scrollTop
|
|
702
|
+
const scrollHostScrollTop = this.scrollEl.scrollTop;
|
|
703
|
+
// if the scrollTop is greater than zero then it's
|
|
704
|
+
// not possible to pull the content down yet
|
|
705
|
+
if (scrollHostScrollTop > 0) {
|
|
706
|
+
this.progress = 0;
|
|
707
|
+
return;
|
|
708
|
+
}
|
|
709
|
+
// content scrolled all the way to the top, and dragging down
|
|
710
|
+
this.state = 2 /* Pulling */;
|
|
711
|
+
}
|
|
712
|
+
// prevent native scroll events
|
|
713
|
+
if (ev.cancelable) {
|
|
714
|
+
ev.preventDefault();
|
|
715
|
+
}
|
|
716
|
+
// the refresher is actively pulling at this point
|
|
717
|
+
// move the scroll element within the content element
|
|
718
|
+
this.setCss(deltaY, '0ms', true, '');
|
|
719
|
+
if (deltaY === 0) {
|
|
720
|
+
// don't continue if there's no delta yet
|
|
721
|
+
this.progress = 0;
|
|
722
|
+
return;
|
|
723
|
+
}
|
|
724
|
+
const pullMin = this.pullMin;
|
|
725
|
+
// set pull progress
|
|
726
|
+
this.progress = deltaY / pullMin;
|
|
727
|
+
// emit "start" if it hasn't started yet
|
|
728
|
+
if (!this.didStart) {
|
|
729
|
+
this.didStart = true;
|
|
730
|
+
this.ionStart.emit();
|
|
731
|
+
}
|
|
732
|
+
// emit "pulling" on every move
|
|
733
|
+
this.ionPull.emit();
|
|
734
|
+
// do nothing if the delta is less than the pull threshold
|
|
735
|
+
if (deltaY < pullMin) {
|
|
736
|
+
// ensure it stays in the pulling state, cuz its not ready yet
|
|
737
|
+
this.state = 2 /* Pulling */;
|
|
738
|
+
return;
|
|
739
|
+
}
|
|
740
|
+
if (deltaY > this.pullMax) {
|
|
741
|
+
// they pulled farther than the max, so kick off the refresh
|
|
742
|
+
this.beginRefresh();
|
|
743
|
+
return;
|
|
744
|
+
}
|
|
745
|
+
// pulled farther than the pull min!!
|
|
746
|
+
// it is now in the `ready` state!!
|
|
747
|
+
// if they let go then it'll refresh, kerpow!!
|
|
748
|
+
this.state = 4 /* Ready */;
|
|
749
|
+
return;
|
|
750
|
+
}
|
|
751
|
+
onEnd() {
|
|
752
|
+
// only run in a zone when absolutely necessary
|
|
753
|
+
if (this.state === 4 /* Ready */) {
|
|
754
|
+
// they pulled down far enough, so it's ready to refresh
|
|
755
|
+
this.beginRefresh();
|
|
756
|
+
}
|
|
757
|
+
else if (this.state === 2 /* Pulling */) {
|
|
758
|
+
// they were pulling down, but didn't pull down far enough
|
|
759
|
+
// set the content back to it's original location
|
|
760
|
+
// and close the refresher
|
|
761
|
+
// set that the refresh is actively cancelling
|
|
762
|
+
this.cancel();
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
beginRefresh() {
|
|
766
|
+
// assumes we're already back in a zone
|
|
767
|
+
// they pulled down far enough, so it's ready to refresh
|
|
768
|
+
this.state = 8 /* Refreshing */;
|
|
769
|
+
// place the content in a hangout position while it thinks
|
|
770
|
+
this.setCss(this.pullMin, this.snapbackDuration, true, '');
|
|
771
|
+
// emit "refresh" because it was pulled down far enough
|
|
772
|
+
// and they let go to begin refreshing
|
|
773
|
+
this.ionRefresh.emit({
|
|
774
|
+
complete: this.complete.bind(this)
|
|
775
|
+
});
|
|
776
|
+
}
|
|
777
|
+
close(state, delay) {
|
|
778
|
+
// create fallback timer incase something goes wrong with transitionEnd event
|
|
779
|
+
setTimeout(() => {
|
|
780
|
+
this.state = 1 /* Inactive */;
|
|
781
|
+
this.progress = 0;
|
|
782
|
+
this.didStart = false;
|
|
783
|
+
this.setCss(0, '0ms', false, '');
|
|
784
|
+
}, 600);
|
|
785
|
+
// reset set the styles on the scroll element
|
|
786
|
+
// set that the refresh is actively cancelling/completing
|
|
787
|
+
this.state = state;
|
|
788
|
+
this.setCss(0, this.closeDuration, true, delay);
|
|
789
|
+
// TODO: stop gesture
|
|
790
|
+
}
|
|
791
|
+
setCss(y, duration, overflowVisible, delay) {
|
|
792
|
+
if (this.nativeRefresher) {
|
|
793
|
+
return;
|
|
794
|
+
}
|
|
795
|
+
this.appliedStyles = (y > 0);
|
|
796
|
+
index.writeTask(() => {
|
|
797
|
+
if (this.scrollEl && this.backgroundContentEl) {
|
|
798
|
+
const scrollStyle = this.scrollEl.style;
|
|
799
|
+
const backgroundStyle = this.backgroundContentEl.style;
|
|
800
|
+
scrollStyle.transform = backgroundStyle.transform = ((y > 0) ? `translateY(${y}px) translateZ(0px)` : '');
|
|
801
|
+
scrollStyle.transitionDuration = backgroundStyle.transitionDuration = duration;
|
|
802
|
+
scrollStyle.transitionDelay = backgroundStyle.transitionDelay = delay;
|
|
803
|
+
scrollStyle.overflow = (overflowVisible ? 'hidden' : '');
|
|
804
|
+
}
|
|
805
|
+
});
|
|
806
|
+
}
|
|
807
|
+
render() {
|
|
808
|
+
const mode = ionicGlobal.getIonMode(this);
|
|
809
|
+
return (index.h(index.Host, { slot: "fixed", class: {
|
|
810
|
+
[mode]: true,
|
|
811
|
+
// Used internally for styling
|
|
812
|
+
[`refresher-${mode}`]: true,
|
|
813
|
+
'refresher-native': this.nativeRefresher,
|
|
814
|
+
'refresher-active': this.state !== 1 /* Inactive */,
|
|
815
|
+
'refresher-pulling': this.state === 2 /* Pulling */,
|
|
816
|
+
'refresher-ready': this.state === 4 /* Ready */,
|
|
817
|
+
'refresher-refreshing': this.state === 8 /* Refreshing */,
|
|
818
|
+
'refresher-cancelling': this.state === 16 /* Cancelling */,
|
|
819
|
+
'refresher-completing': this.state === 32 /* Completing */,
|
|
820
|
+
} }));
|
|
821
|
+
}
|
|
822
|
+
get el() { return index.getElement(this); }
|
|
823
|
+
static get watchers() { return {
|
|
824
|
+
"disabled": ["disabledChanged"]
|
|
825
|
+
}; }
|
|
826
|
+
};
|
|
827
|
+
Refresher.style = {
|
|
828
|
+
ios: refresherIosCss,
|
|
829
|
+
md: refresherMdCss
|
|
830
|
+
};
|
|
831
|
+
|
|
832
|
+
exports.ion_refresher = Refresher;
|