@pod-os/elements 0.25.2 → 0.25.3-rc.2f9e99a.0
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/elements.cjs.js +1 -1
- package/dist/cjs/ion-badge_2.cjs.entry.js +92 -0
- package/dist/cjs/ion-badge_2.cjs.entry.js.map +1 -0
- package/dist/cjs/{ion-badge_8.cjs.entry.js → ion-card-title_6.cjs.entry.js} +3 -84
- package/dist/cjs/ion-card-title_6.cjs.entry.js.map +1 -0
- package/dist/cjs/ion-card_34.cjs.entry.js +26 -26
- package/dist/cjs/ion-card_34.cjs.entry.js.map +1 -1
- package/dist/cjs/{ion-checkbox_6.cjs.entry.js → ion-checkbox_7.cjs.entry.js} +274 -1
- package/dist/cjs/ion-checkbox_7.cjs.entry.js.map +1 -0
- package/dist/cjs/{ion-input_2.cjs.entry.js → ion-input.cjs.entry.js} +1 -21
- package/dist/cjs/ion-input.cjs.entry.js.map +1 -0
- package/dist/cjs/ion-note.cjs.entry.js +34 -0
- package/dist/cjs/ion-note.cjs.entry.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pos-app-generic.cjs.entry.js +1 -1
- package/dist/cjs/pos-app-generic.cjs.entry.js.map +1 -1
- package/dist/cjs/pos-app-rdf-document.cjs.entry.js +5 -1
- package/dist/cjs/pos-app-rdf-document.cjs.entry.js.map +1 -1
- package/dist/cjs/pos-container-contents.cjs.entry.js.map +1 -1
- package/dist/cjs/pos-container-item.cjs.entry.js +5 -1
- package/dist/cjs/pos-container-item.cjs.entry.js.map +1 -1
- package/dist/cjs/pos-document.cjs.entry.js +1 -1
- package/dist/cjs/pos-document.cjs.entry.js.map +1 -1
- package/dist/cjs/pos-predicate.cjs.entry.js +28 -0
- package/dist/cjs/pos-predicate.cjs.entry.js.map +1 -0
- package/dist/cjs/pos-relations_2.cjs.entry.js +2 -2
- package/dist/cjs/pos-relations_2.cjs.entry.js.map +1 -1
- package/dist/cjs/pos-subjects.cjs.entry.js +1 -1
- package/dist/cjs/pos-subjects.cjs.entry.js.map +1 -1
- package/dist/collection/apps/pos-app-browser/pos-app-browser.css +5 -4
- package/dist/collection/apps/pos-app-dashboard/pos-app-dashboard.css +0 -2
- package/dist/collection/apps/pos-app-dashboard/pos-example-resources/pos-example-resources.css +2 -2
- package/dist/collection/apps/pos-app-dashboard/pos-getting-started/pos-getting-started.css +2 -3
- package/dist/collection/apps/pos-app-generic/pos-app-generic.css +2 -1
- package/dist/collection/apps/pos-app-rdf-document/pos-app-rdf-document.css +39 -0
- package/dist/collection/apps/pos-app-rdf-document/pos-app-rdf-document.js +13 -2
- package/dist/collection/apps/pos-app-rdf-document/pos-app-rdf-document.js.map +1 -1
- package/dist/collection/apps/pos-app-settings/pos-app-settings.css +0 -2
- package/dist/collection/apps/pos-app-settings/pos-app-settings.js +1 -1
- package/dist/collection/apps/pos-app-settings/pos-setting-offline-cache/pos-setting-offline-cache.css +4 -2
- package/dist/collection/apps/pos-app-settings/pos-setting-offline-cache/pos-setting-offline-cache.js +1 -1
- package/dist/collection/components/pos-add-literal-value/pos-add-literal-value.css +15 -0
- package/dist/collection/components/pos-add-literal-value/pos-add-literal-value.js +2 -2
- package/dist/collection/components/pos-add-literal-value/pos-add-literal-value.js.map +1 -1
- package/dist/collection/components/pos-add-new-thing/pos-add-new-thing.js +1 -1
- package/dist/collection/components/pos-app/pos-app.js +1 -1
- package/dist/collection/components/pos-container-contents/pos-container-contents.css +1 -1
- package/dist/collection/components/pos-container-contents/pos-container-contents.js.map +1 -1
- package/dist/collection/components/pos-container-contents/pos-container-item.css +16 -0
- package/dist/collection/components/pos-container-contents/pos-container-item.js +11 -1
- package/dist/collection/components/pos-container-contents/pos-container-item.js.map +1 -1
- package/dist/collection/components/pos-dialog/pos-dialog.css +35 -3
- package/dist/collection/components/pos-dialog/pos-dialog.js +1 -1
- package/dist/collection/components/pos-document/pos-document.css +5 -8
- package/dist/collection/components/pos-error-toast/pos-error-toast.js +1 -1
- package/dist/collection/components/pos-literals/pos-literals.css +1 -1
- package/dist/collection/components/pos-literals/pos-literals.js +1 -1
- package/dist/collection/components/pos-login/pos-login.js +1 -1
- package/dist/collection/components/pos-login-form/pos-login-form.css +6 -3
- package/dist/collection/components/pos-login-form/pos-login-form.js +1 -1
- package/dist/collection/components/pos-navigation-bar/pos-navigation-bar.css +7 -10
- package/dist/collection/components/pos-navigation-bar/pos-navigation-bar.js +1 -1
- package/dist/collection/components/pos-new-thing-form/pos-new-thing-form.css +11 -6
- package/dist/collection/components/pos-new-thing-form/pos-new-thing-form.js +1 -1
- package/dist/collection/components/pos-relations/pos-relations.css +1 -1
- package/dist/collection/components/pos-reverse-relations/pos-reverse-relations.css +1 -1
- package/dist/collection/components/pos-rich-link/pos-rich-link.css +3 -3
- package/dist/collection/components/pos-rich-link/pos-rich-link.js +2 -2
- package/dist/collection/components/pos-router/pos-router.js +1 -1
- package/dist/collection/components/pos-select-term/pos-select-term.css +2 -0
- package/dist/collection/components/pos-select-term/pos-select-term.js +1 -1
- package/dist/collection/components/pos-subjects/pos-subjects.css +1 -1
- package/dist/components/ion-input.js +566 -1
- package/dist/components/ion-input.js.map +1 -1
- package/dist/components/pos-add-literal-value2.js +5 -11
- package/dist/components/pos-add-literal-value2.js.map +1 -1
- package/dist/components/pos-add-new-thing2.js +1 -1
- package/dist/components/pos-app-browser.js +1 -1
- package/dist/components/pos-app-browser.js.map +1 -1
- package/dist/components/pos-app-dashboard2.js +1 -1
- package/dist/components/pos-app-dashboard2.js.map +1 -1
- package/dist/components/pos-app-document-viewer.js +14 -20
- package/dist/components/pos-app-document-viewer.js.map +1 -1
- package/dist/components/pos-app-generic.js +11 -17
- package/dist/components/pos-app-generic.js.map +1 -1
- package/dist/components/pos-app-image-viewer.js +14 -20
- package/dist/components/pos-app-image-viewer.js.map +1 -1
- package/dist/components/pos-app-ldp-container.js +16 -34
- package/dist/components/pos-app-ldp-container.js.map +1 -1
- package/dist/components/pos-app-rdf-document.js +22 -47
- package/dist/components/pos-app-rdf-document.js.map +1 -1
- package/dist/components/pos-app-settings2.js +2 -2
- package/dist/components/pos-app-settings2.js.map +1 -1
- package/dist/components/pos-app2.js +1 -1
- package/dist/components/pos-container-contents2.js +8 -20
- package/dist/components/pos-container-contents2.js.map +1 -1
- package/dist/components/pos-container-item2.js +7 -21
- package/dist/components/pos-container-item2.js.map +1 -1
- package/dist/components/pos-dialog2.js +2 -2
- package/dist/components/pos-dialog2.js.map +1 -1
- package/dist/components/pos-document2.js +1 -1
- package/dist/components/pos-document2.js.map +1 -1
- package/dist/components/pos-error-toast2.js +1 -1
- package/dist/components/pos-example-resources2.js +1 -1
- package/dist/components/pos-example-resources2.js.map +1 -1
- package/dist/components/pos-getting-started2.js +1 -1
- package/dist/components/pos-getting-started2.js.map +1 -1
- package/dist/components/pos-literals2.js +4 -10
- package/dist/components/pos-literals2.js.map +1 -1
- package/dist/components/pos-login-form2.js +2 -2
- package/dist/components/pos-login-form2.js.map +1 -1
- package/dist/components/pos-login2.js +1 -1
- package/dist/components/pos-navigation-bar2.js +2 -2
- package/dist/components/pos-navigation-bar2.js.map +1 -1
- package/dist/components/pos-new-thing-form2.js +2 -2
- package/dist/components/pos-new-thing-form2.js.map +1 -1
- package/dist/components/pos-relations2.js +1 -1
- package/dist/components/pos-relations2.js.map +1 -1
- package/dist/components/pos-reverse-relations2.js +1 -1
- package/dist/components/pos-reverse-relations2.js.map +1 -1
- package/dist/components/pos-rich-link2.js +3 -3
- package/dist/components/pos-rich-link2.js.map +1 -1
- package/dist/components/pos-router2.js +1 -1
- package/dist/components/pos-select-term2.js +2 -2
- package/dist/components/pos-select-term2.js.map +1 -1
- package/dist/components/pos-setting-offline-cache2.js +2 -2
- package/dist/components/pos-setting-offline-cache2.js.map +1 -1
- package/dist/components/pos-subjects2.js +1 -1
- package/dist/components/pos-subjects2.js.map +1 -1
- package/dist/elements/elements.css +21 -1
- package/dist/elements/elements.esm.js +1 -1
- package/dist/elements/elements.esm.js.map +1 -1
- package/dist/elements/{p-714cb336.entry.js → p-00c0e726.entry.js} +2 -2
- package/dist/elements/{p-34d3ff03.js → p-09c0b7ec.js} +3 -3
- package/dist/elements/p-0c94ec29.entry.js +2 -0
- package/dist/elements/{p-abed69a9.entry.js.map → p-0c94ec29.entry.js.map} +1 -1
- package/dist/elements/p-10bbe079.entry.js +2 -0
- package/dist/elements/p-10bbe079.entry.js.map +1 -0
- package/dist/elements/{p-0ffd76fc.entry.js → p-133e29f8.entry.js} +2 -2
- package/dist/elements/{p-097747f2.entry.js → p-18e5369d.entry.js} +2 -2
- package/dist/elements/{p-b25dd1f1.js → p-19e2dbee.js} +3 -3
- package/dist/elements/{p-a9df5a3a.entry.js → p-1d8d3167.entry.js} +2 -2
- package/dist/elements/{p-dcd16290.js → p-24118aa1.js} +3 -3
- package/dist/elements/p-248a0d89.entry.js +2 -0
- package/dist/elements/p-248a0d89.entry.js.map +1 -0
- package/dist/elements/{p-e11f2e70.entry.js → p-2543ef78.entry.js} +8 -8
- package/dist/elements/{p-e11f2e70.entry.js.map → p-2543ef78.entry.js.map} +1 -1
- package/dist/elements/{p-b725d322.entry.js → p-25b5a86a.entry.js} +2 -2
- package/dist/elements/{p-2d13e141.entry.js → p-27a5048e.entry.js} +2 -2
- package/dist/elements/{p-2d5448aa.entry.js → p-2cce9f72.entry.js} +2 -2
- package/dist/elements/{p-970fce25.entry.js → p-2d89b617.entry.js} +2 -2
- package/dist/elements/{p-66812011.entry.js → p-2e2753e7.entry.js} +2 -2
- package/dist/elements/{p-4cb77968.js → p-3856e0a0.js} +2 -2
- package/dist/elements/{p-e04e65b9.entry.js → p-3bc60b5c.entry.js} +2 -2
- package/dist/elements/{p-ec9d0fd2.entry.js → p-428e79f5.entry.js} +2 -2
- package/dist/elements/p-43d3f9dd.entry.js +2 -0
- package/dist/elements/p-43d3f9dd.entry.js.map +1 -0
- package/dist/elements/{p-62a60344.entry.js → p-489909a3.entry.js} +2 -2
- package/dist/elements/p-4c78c8c9.js +5 -0
- package/dist/elements/p-57740997.entry.js +2 -0
- package/dist/elements/{p-ec0d5d03.entry.js → p-58ad0789.entry.js} +2 -2
- package/dist/elements/{p-b250dee1.entry.js → p-616c23ad.entry.js} +3 -3
- package/dist/elements/{p-8b22dca0.entry.js → p-686bf509.entry.js} +2 -2
- package/dist/elements/{p-1c44ef41.entry.js → p-6bc1057e.entry.js} +2 -2
- package/dist/elements/{p-dcd0a40c.entry.js → p-7105c21a.entry.js} +2 -2
- package/dist/elements/{p-25270f1a.js → p-71ee259b.js} +2 -2
- package/dist/elements/{p-33b22cc6.entry.js → p-73331353.entry.js} +2 -2
- package/dist/elements/{p-df24c396.entry.js → p-77f496ea.entry.js} +2 -2
- package/dist/elements/p-7bef9b1b.entry.js +2 -0
- package/dist/elements/p-7bef9b1b.entry.js.map +1 -0
- package/dist/elements/{p-00c6a8f5.entry.js → p-849fec0f.entry.js} +2 -2
- package/dist/elements/{p-163e3e87.js → p-89aef852.js} +2 -2
- package/dist/elements/{p-a8afe4ef.entry.js → p-8c1eba2d.entry.js} +2 -2
- package/dist/elements/{p-d016e7e0.entry.js → p-8e747572.entry.js} +2 -2
- package/dist/elements/p-91fccb8b.entry.js +2 -0
- package/dist/elements/p-91fccb8b.entry.js.map +1 -0
- package/dist/elements/p-932de51e.js +8 -0
- package/dist/elements/{p-1df0edde.entry.js → p-93dc5bee.entry.js} +2 -2
- package/dist/elements/{p-20e2e8c1.js → p-949b115f.js} +2 -2
- package/dist/elements/p-983da5af.entry.js +2 -0
- package/dist/elements/p-983da5af.entry.js.map +1 -0
- package/dist/elements/{p-a3af481c.js → p-a03499f7.js} +2 -2
- package/dist/elements/{p-d0c67d7c.entry.js → p-a41edaa5.entry.js} +2 -2
- package/dist/elements/{p-34f376f2.entry.js → p-acf6cab4.entry.js} +2 -2
- package/dist/elements/{p-76351ab7.entry.js → p-ad55e9ab.entry.js} +2 -2
- package/dist/elements/p-b3117c79.entry.js +2 -0
- package/dist/elements/p-b3117c79.entry.js.map +1 -0
- package/dist/elements/{p-0cf27008.entry.js → p-b8363813.entry.js} +2 -2
- package/dist/elements/{p-da0cfe0c.entry.js → p-c13052f5.entry.js} +2 -2
- package/dist/elements/{p-bb3054a3.js → p-c191e6df.js} +8 -8
- package/dist/elements/{p-b9e14ed6.entry.js → p-c19ba914.entry.js} +4 -4
- package/dist/elements/{p-bcd11997.entry.js → p-c34f0243.entry.js} +2 -2
- package/dist/elements/p-c452a2e9.js +5 -0
- package/dist/elements/{p-1651e9a7.entry.js → p-c992243d.entry.js} +2 -2
- package/dist/elements/{p-592177e8.js → p-cbf050d6.js} +2 -2
- package/dist/elements/{p-3ab4f8b6.js → p-cdb96cf2.js} +2 -2
- package/dist/elements/p-d03f5902.entry.js +2 -0
- package/dist/elements/p-d03f5902.entry.js.map +1 -0
- package/dist/elements/{p-f7490d6e.js → p-d164af48.js} +2 -2
- package/dist/elements/{p-4d6e48bf.js → p-d1e7b393.js} +2 -2
- package/dist/elements/{p-6189fb02.entry.js → p-d7c83052.entry.js} +2 -2
- package/dist/elements/{p-59feb185.js → p-dd97c7d1.js} +3 -3
- package/dist/elements/p-e5ce5615.entry.js +5 -0
- package/dist/elements/p-e5ce5615.entry.js.map +1 -0
- package/dist/elements/p-e7a69dd3.entry.js +2 -0
- package/dist/elements/p-e7a69dd3.entry.js.map +1 -0
- package/dist/elements/p-eba70ed1.js +6 -0
- package/dist/elements/{p-ab68c761.entry.js → p-ef4ffce6.entry.js} +2 -2
- package/dist/elements/{p-04c9fe91.entry.js → p-ef87f5dd.entry.js} +2 -2
- package/dist/elements/{p-07df0400.entry.js → p-f74b9191.entry.js} +2 -2
- package/dist/elements/p-f74b9191.entry.js.map +1 -0
- package/dist/elements/{p-3e1b5fc4.entry.js → p-f9b993ab.entry.js} +4 -4
- package/dist/elements/p-fb766a59.entry.js.map +1 -1
- package/dist/elements/{p-925bb96a.entry.js → p-fd4ecbf1.entry.js} +2 -2
- package/dist/elements/p-fe4821db.entry.js +2 -0
- package/dist/elements/p-fe4821db.entry.js.map +1 -0
- package/dist/esm/{animation-8c622dae.js → animation-43b39c85.js} +2 -2
- package/dist/esm/{animation-8c622dae.js.map → animation-43b39c85.js.map} +1 -1
- package/dist/esm/elements.js +1 -1
- package/dist/esm/{form-controller-1f70ed52.js → form-controller-3b50bf52.js} +2 -2
- package/dist/esm/{form-controller-1f70ed52.js.map → form-controller-3b50bf52.js.map} +1 -1
- package/dist/esm/{framework-delegate-b5751311.js → framework-delegate-c5179013.js} +2 -2
- package/dist/esm/{framework-delegate-b5751311.js.map → framework-delegate-c5179013.js.map} +1 -1
- package/dist/esm/{helpers-a93a8cd2.js → helpers-c51da066.js} +2 -2
- package/dist/esm/{helpers-a93a8cd2.js.map → helpers-c51da066.js.map} +1 -1
- package/dist/esm/{index-432e7c6f.js → index-12e18dab.js} +2 -2
- package/dist/esm/{index-432e7c6f.js.map → index-12e18dab.js.map} +1 -1
- package/dist/esm/{index-f69a875d.js → index-842e2941.js} +2 -2
- package/dist/esm/{index-f69a875d.js.map → index-842e2941.js.map} +1 -1
- package/dist/esm/{index-2ac08fda.js → index-a753fbce.js} +4 -4
- package/dist/esm/{index-2ac08fda.js.map → index-a753fbce.js.map} +1 -1
- package/dist/esm/{index-d511bcdc.js → index-e268d85c.js} +3 -3
- package/dist/esm/{index-d511bcdc.js.map → index-e268d85c.js.map} +1 -1
- package/dist/esm/{input-shims-212ee02f.js → input-shims-0cb1bad1.js} +3 -3
- package/dist/esm/{input-shims-212ee02f.js.map → input-shims-0cb1bad1.js.map} +1 -1
- package/dist/esm/{input.utils-d2c917c3.js → input.utils-0e2bf61a.js} +2 -2
- package/dist/esm/{input.utils-d2c917c3.js.map → input.utils-0e2bf61a.js.map} +1 -1
- package/dist/esm/ion-accordion.entry.js +1 -1
- package/dist/esm/ion-action-sheet_3.entry.js +4 -4
- package/dist/esm/ion-app.entry.js +3 -3
- package/dist/esm/ion-back-button.entry.js +1 -1
- package/dist/esm/ion-badge_2.entry.js +87 -0
- package/dist/esm/ion-badge_2.entry.js.map +1 -0
- package/dist/esm/ion-breadcrumb.entry.js +1 -1
- package/dist/esm/ion-button_4.entry.js +1 -1
- package/dist/esm/{ion-badge_8.entry.js → ion-card-title_6.entry.js} +4 -83
- package/dist/esm/ion-card-title_6.entry.js.map +1 -0
- package/dist/esm/ion-card_34.entry.js +30 -30
- package/dist/esm/ion-card_34.entry.js.map +1 -1
- package/dist/esm/{ion-checkbox_6.entry.js → ion-checkbox_7.entry.js} +279 -7
- package/dist/esm/ion-checkbox_7.entry.js.map +1 -0
- package/dist/esm/ion-content.entry.js +1 -1
- package/dist/esm/ion-datetime-button.entry.js +1 -1
- package/dist/esm/ion-datetime.entry.js +1 -1
- package/dist/esm/ion-fab-button.entry.js +1 -1
- package/dist/esm/ion-footer.entry.js +2 -2
- package/dist/esm/ion-header.entry.js +2 -2
- package/dist/esm/ion-img.entry.js +1 -1
- package/dist/esm/ion-infinite-scroll.entry.js +2 -2
- package/dist/esm/{ion-input_2.entry.js → ion-input.entry.js} +6 -25
- package/dist/esm/ion-input.entry.js.map +1 -0
- package/dist/esm/ion-item-options.entry.js +1 -1
- package/dist/esm/ion-item-sliding.entry.js +2 -2
- package/dist/esm/ion-loading.entry.js +4 -4
- package/dist/esm/ion-menu-button.entry.js +4 -4
- package/dist/esm/ion-menu-toggle.entry.js +4 -4
- package/dist/esm/ion-menu.entry.js +5 -5
- package/dist/esm/ion-modal.entry.js +6 -6
- package/dist/esm/ion-nav.entry.js +4 -4
- package/dist/esm/ion-note.entry.js +30 -0
- package/dist/esm/ion-note.entry.js.map +1 -0
- package/dist/esm/ion-picker-column.entry.js +1 -1
- package/dist/esm/ion-picker.entry.js +4 -4
- package/dist/esm/ion-popover.entry.js +5 -5
- package/dist/esm/ion-range.entry.js +3 -3
- package/dist/esm/ion-refresher-content.entry.js +3 -3
- package/dist/esm/ion-refresher.entry.js +4 -4
- package/dist/esm/ion-reorder-group.entry.js +2 -2
- package/dist/esm/ion-router-outlet.entry.js +4 -4
- package/dist/esm/ion-router.entry.js +1 -1
- package/dist/esm/ion-segment-button.entry.js +1 -1
- package/dist/esm/ion-segment.entry.js +1 -1
- package/dist/esm/ion-select.entry.js +5 -5
- package/dist/esm/ion-tab-button.entry.js +1 -1
- package/dist/esm/ion-tab.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +4 -4
- package/dist/esm/ion-toggle.entry.js +2 -2
- package/dist/esm/{ios.transition-82aca0a1.js → ios.transition-42a569f1.js} +4 -4
- package/dist/esm/{ios.transition-82aca0a1.js.map → ios.transition-42a569f1.js.map} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{md.transition-8ab6c7b8.js → md.transition-646de6a5.js} +4 -4
- package/dist/esm/{md.transition-8ab6c7b8.js.map → md.transition-646de6a5.js.map} +1 -1
- package/dist/esm/{menu-toggle-util-1b366cd3.js → menu-toggle-util-8d0172e3.js} +2 -2
- package/dist/esm/{menu-toggle-util-1b366cd3.js.map → menu-toggle-util-8d0172e3.js.map} +1 -1
- package/dist/esm/{notch-controller-ae856621.js → notch-controller-79926902.js} +2 -2
- package/dist/esm/{notch-controller-ae856621.js.map → notch-controller-79926902.js.map} +1 -1
- package/dist/esm/{overlays-75a54062.js → overlays-4b3bb757.js} +3 -3
- package/dist/esm/{overlays-75a54062.js.map → overlays-4b3bb757.js.map} +1 -1
- package/dist/esm/pos-app-generic.entry.js +1 -1
- package/dist/esm/pos-app-generic.entry.js.map +1 -1
- package/dist/esm/pos-app-rdf-document.entry.js +6 -2
- package/dist/esm/pos-app-rdf-document.entry.js.map +1 -1
- package/dist/esm/pos-container-contents.entry.js.map +1 -1
- package/dist/esm/pos-container-item.entry.js +5 -1
- package/dist/esm/pos-container-item.entry.js.map +1 -1
- package/dist/esm/pos-document.entry.js +1 -1
- package/dist/esm/pos-document.entry.js.map +1 -1
- package/dist/esm/pos-predicate.entry.js +24 -0
- package/dist/esm/pos-predicate.entry.js.map +1 -0
- package/dist/esm/pos-relations_2.entry.js +2 -2
- package/dist/esm/pos-relations_2.entry.js.map +1 -1
- package/dist/esm/pos-subjects.entry.js +1 -1
- package/dist/esm/pos-subjects.entry.js.map +1 -1
- package/dist/esm/{refresher.utils-b1770bf3.js → refresher.utils-0e6b5f97.js} +3 -3
- package/dist/esm/{refresher.utils-b1770bf3.js.map → refresher.utils-0e6b5f97.js.map} +1 -1
- package/dist/esm/{status-tap-e14d7459.js → status-tap-e90a7a0d.js} +3 -3
- package/dist/esm/{status-tap-e14d7459.js.map → status-tap-e90a7a0d.js.map} +1 -1
- package/dist/esm/{swipe-back-5993fe10.js → swipe-back-698e6532.js} +2 -2
- package/dist/esm/{swipe-back-5993fe10.js.map → swipe-back-698e6532.js.map} +1 -1
- package/package.json +1 -1
- package/dist/cjs/ion-badge_8.cjs.entry.js.map +0 -1
- package/dist/cjs/ion-checkbox_6.cjs.entry.js.map +0 -1
- package/dist/cjs/ion-input_2.cjs.entry.js.map +0 -1
- package/dist/cjs/ion-item_2.cjs.entry.js +0 -309
- package/dist/cjs/ion-item_2.cjs.entry.js.map +0 -1
- package/dist/components/input.js +0 -570
- package/dist/components/input.js.map +0 -1
- package/dist/elements/p-06d453ad.entry.js +0 -2
- package/dist/elements/p-06d453ad.entry.js.map +0 -1
- package/dist/elements/p-07df0400.entry.js.map +0 -1
- package/dist/elements/p-305e6eb1.entry.js +0 -2
- package/dist/elements/p-305e6eb1.entry.js.map +0 -1
- package/dist/elements/p-39c3380c.entry.js +0 -2
- package/dist/elements/p-39c3380c.entry.js.map +0 -1
- package/dist/elements/p-7a563988.js +0 -5
- package/dist/elements/p-8206b1f1.js +0 -6
- package/dist/elements/p-a4b77d8f.entry.js +0 -2
- package/dist/elements/p-a4b77d8f.entry.js.map +0 -1
- package/dist/elements/p-abed69a9.entry.js +0 -2
- package/dist/elements/p-bed596af.entry.js +0 -2
- package/dist/elements/p-bed596af.entry.js.map +0 -1
- package/dist/elements/p-bfaa6328.entry.js +0 -2
- package/dist/elements/p-bfaa6328.entry.js.map +0 -1
- package/dist/elements/p-c2690129.js +0 -5
- package/dist/elements/p-ca453b3d.js +0 -8
- package/dist/elements/p-d80f77af.entry.js +0 -2
- package/dist/elements/p-defde894.entry.js +0 -2
- package/dist/elements/p-defde894.entry.js.map +0 -1
- package/dist/elements/p-e41c7c26.entry.js +0 -5
- package/dist/elements/p-e41c7c26.entry.js.map +0 -1
- package/dist/elements/p-f02106b8.entry.js +0 -2
- package/dist/elements/p-f02106b8.entry.js.map +0 -1
- package/dist/esm/ion-badge_8.entry.js.map +0 -1
- package/dist/esm/ion-checkbox_6.entry.js.map +0 -1
- package/dist/esm/ion-input_2.entry.js.map +0 -1
- package/dist/esm/ion-item_2.entry.js +0 -304
- package/dist/esm/ion-item_2.entry.js.map +0 -1
- /package/dist/elements/{p-714cb336.entry.js.map → p-00c0e726.entry.js.map} +0 -0
- /package/dist/elements/{p-34d3ff03.js.map → p-09c0b7ec.js.map} +0 -0
- /package/dist/elements/{p-0ffd76fc.entry.js.map → p-133e29f8.entry.js.map} +0 -0
- /package/dist/elements/{p-097747f2.entry.js.map → p-18e5369d.entry.js.map} +0 -0
- /package/dist/elements/{p-b25dd1f1.js.map → p-19e2dbee.js.map} +0 -0
- /package/dist/elements/{p-a9df5a3a.entry.js.map → p-1d8d3167.entry.js.map} +0 -0
- /package/dist/elements/{p-dcd16290.js.map → p-24118aa1.js.map} +0 -0
- /package/dist/elements/{p-b725d322.entry.js.map → p-25b5a86a.entry.js.map} +0 -0
- /package/dist/elements/{p-2d13e141.entry.js.map → p-27a5048e.entry.js.map} +0 -0
- /package/dist/elements/{p-2d5448aa.entry.js.map → p-2cce9f72.entry.js.map} +0 -0
- /package/dist/elements/{p-970fce25.entry.js.map → p-2d89b617.entry.js.map} +0 -0
- /package/dist/elements/{p-66812011.entry.js.map → p-2e2753e7.entry.js.map} +0 -0
- /package/dist/elements/{p-4cb77968.js.map → p-3856e0a0.js.map} +0 -0
- /package/dist/elements/{p-e04e65b9.entry.js.map → p-3bc60b5c.entry.js.map} +0 -0
- /package/dist/elements/{p-ec9d0fd2.entry.js.map → p-428e79f5.entry.js.map} +0 -0
- /package/dist/elements/{p-62a60344.entry.js.map → p-489909a3.entry.js.map} +0 -0
- /package/dist/elements/{p-c2690129.js.map → p-4c78c8c9.js.map} +0 -0
- /package/dist/elements/{p-d80f77af.entry.js.map → p-57740997.entry.js.map} +0 -0
- /package/dist/elements/{p-ec0d5d03.entry.js.map → p-58ad0789.entry.js.map} +0 -0
- /package/dist/elements/{p-b250dee1.entry.js.map → p-616c23ad.entry.js.map} +0 -0
- /package/dist/elements/{p-8b22dca0.entry.js.map → p-686bf509.entry.js.map} +0 -0
- /package/dist/elements/{p-1c44ef41.entry.js.map → p-6bc1057e.entry.js.map} +0 -0
- /package/dist/elements/{p-dcd0a40c.entry.js.map → p-7105c21a.entry.js.map} +0 -0
- /package/dist/elements/{p-25270f1a.js.map → p-71ee259b.js.map} +0 -0
- /package/dist/elements/{p-33b22cc6.entry.js.map → p-73331353.entry.js.map} +0 -0
- /package/dist/elements/{p-df24c396.entry.js.map → p-77f496ea.entry.js.map} +0 -0
- /package/dist/elements/{p-00c6a8f5.entry.js.map → p-849fec0f.entry.js.map} +0 -0
- /package/dist/elements/{p-163e3e87.js.map → p-89aef852.js.map} +0 -0
- /package/dist/elements/{p-a8afe4ef.entry.js.map → p-8c1eba2d.entry.js.map} +0 -0
- /package/dist/elements/{p-d016e7e0.entry.js.map → p-8e747572.entry.js.map} +0 -0
- /package/dist/elements/{p-ca453b3d.js.map → p-932de51e.js.map} +0 -0
- /package/dist/elements/{p-1df0edde.entry.js.map → p-93dc5bee.entry.js.map} +0 -0
- /package/dist/elements/{p-20e2e8c1.js.map → p-949b115f.js.map} +0 -0
- /package/dist/elements/{p-a3af481c.js.map → p-a03499f7.js.map} +0 -0
- /package/dist/elements/{p-d0c67d7c.entry.js.map → p-a41edaa5.entry.js.map} +0 -0
- /package/dist/elements/{p-34f376f2.entry.js.map → p-acf6cab4.entry.js.map} +0 -0
- /package/dist/elements/{p-76351ab7.entry.js.map → p-ad55e9ab.entry.js.map} +0 -0
- /package/dist/elements/{p-0cf27008.entry.js.map → p-b8363813.entry.js.map} +0 -0
- /package/dist/elements/{p-da0cfe0c.entry.js.map → p-c13052f5.entry.js.map} +0 -0
- /package/dist/elements/{p-bb3054a3.js.map → p-c191e6df.js.map} +0 -0
- /package/dist/elements/{p-b9e14ed6.entry.js.map → p-c19ba914.entry.js.map} +0 -0
- /package/dist/elements/{p-bcd11997.entry.js.map → p-c34f0243.entry.js.map} +0 -0
- /package/dist/elements/{p-7a563988.js.map → p-c452a2e9.js.map} +0 -0
- /package/dist/elements/{p-1651e9a7.entry.js.map → p-c992243d.entry.js.map} +0 -0
- /package/dist/elements/{p-592177e8.js.map → p-cbf050d6.js.map} +0 -0
- /package/dist/elements/{p-3ab4f8b6.js.map → p-cdb96cf2.js.map} +0 -0
- /package/dist/elements/{p-f7490d6e.js.map → p-d164af48.js.map} +0 -0
- /package/dist/elements/{p-4d6e48bf.js.map → p-d1e7b393.js.map} +0 -0
- /package/dist/elements/{p-6189fb02.entry.js.map → p-d7c83052.entry.js.map} +0 -0
- /package/dist/elements/{p-59feb185.js.map → p-dd97c7d1.js.map} +0 -0
- /package/dist/elements/{p-8206b1f1.js.map → p-eba70ed1.js.map} +0 -0
- /package/dist/elements/{p-ab68c761.entry.js.map → p-ef4ffce6.entry.js.map} +0 -0
- /package/dist/elements/{p-04c9fe91.entry.js.map → p-ef87f5dd.entry.js.map} +0 -0
- /package/dist/elements/{p-3e1b5fc4.entry.js.map → p-f9b993ab.entry.js.map} +0 -0
- /package/dist/elements/{p-925bb96a.entry.js.map → p-fd4ecbf1.entry.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"notch-controller-
|
|
1
|
+
{"file":"notch-controller-79926902.js","mappings":";;;AAAA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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controller.js"],"sourcesContent":["/*!\n * (C) Ionic http://ionicframework.com - MIT License\n */\nimport { win } from \"../browser/index\";\nimport { raf } from \"../helpers\";\n/**\n * A utility to calculate the size of an outline notch\n * width relative to the content passed. This is used in\n * components such as `ion-select` with `fill=\"outline\"`\n * where we need to pass slotted HTML content. This is not\n * needed when rendering plaintext content because we can\n * render the plaintext again hidden with `opacity: 0` inside\n * of the notch. As a result we can rely on the intrinsic size\n * of the element to correctly compute the notch width. We\n * cannot do this with slotted content because we cannot project\n * it into 2 places at once.\n *\n * @internal\n * @param el: The host element\n * @param getNotchSpacerEl: A function that returns a reference to the notch spacer element inside of the component template.\n * @param getLabelSlot: A function that returns a reference to the slotted content.\n */\nexport const createNotchController = (el, getNotchSpacerEl, getLabelSlot) => {\n let notchVisibilityIO;\n const needsExplicitNotchWidth = () => {\n const notchSpacerEl = getNotchSpacerEl();\n if (\n /**\n * If the notch is not being used\n * then we do not need to set the notch width.\n */\n notchSpacerEl === undefined ||\n /**\n * If either the label property is being\n * used or the label slot is not defined,\n * then we do not need to estimate the notch width.\n */\n el.label !== undefined ||\n getLabelSlot() === null) {\n return false;\n }\n return true;\n };\n const calculateNotchWidth = () => {\n if (needsExplicitNotchWidth()) {\n /**\n * Run this the frame after\n * the browser has re-painted the host element.\n * Otherwise, the label element may have a width\n * of 0 and the IntersectionObserver will be used.\n */\n raf(() => {\n setNotchWidth();\n });\n }\n };\n /**\n * When using a label prop we can render\n * the label value inside of the notch and\n * let the browser calculate the size of the notch.\n * However, we cannot render the label slot in multiple\n * places so we need to manually calculate the notch dimension\n * based on the size of the slotted content.\n *\n * This function should only be used to set the notch width\n * on slotted label content. The notch width for label prop\n * content is automatically calculated based on the\n * intrinsic size of the label text.\n */\n const setNotchWidth = () => {\n const notchSpacerEl = getNotchSpacerEl();\n if (notchSpacerEl === undefined) {\n return;\n }\n if (!needsExplicitNotchWidth()) {\n notchSpacerEl.style.removeProperty('width');\n return;\n }\n const width = getLabelSlot().scrollWidth;\n if (\n /**\n * If the computed width of the label is 0\n * and notchSpacerEl's offsetParent is null\n * then that means the element is hidden.\n * As a result, we need to wait for the element\n * to become visible before setting the notch width.\n *\n * We do not check el.offsetParent because\n * that can be null if the host element has\n * position: fixed applied to it.\n * notchSpacerEl does not have position: fixed.\n */\n width === 0 &&\n notchSpacerEl.offsetParent === null &&\n win !== undefined &&\n 'IntersectionObserver' in win) {\n /**\n * If there is an IO already attached\n * then that will update the notch\n * once the element becomes visible.\n * As a result, there is no need to create\n * another one.\n */\n if (notchVisibilityIO !== undefined) {\n return;\n }\n const io = (notchVisibilityIO = new IntersectionObserver((ev) => {\n /**\n * If the element is visible then we\n * can try setting the notch width again.\n */\n if (ev[0].intersectionRatio === 1) {\n setNotchWidth();\n io.disconnect();\n notchVisibilityIO = undefined;\n }\n }, \n /**\n * Set the root to be the host element\n * This causes the IO callback\n * to be fired in WebKit as soon as the element\n * is visible. If we used the default root value\n * then WebKit would only fire the IO callback\n * after any animations (such as a modal transition)\n * finished, and there would potentially be a flicker.\n */\n { threshold: 0.01, root: el }));\n io.observe(notchSpacerEl);\n return;\n }\n /**\n * If the element is visible then we can set the notch width.\n * The notch is only visible when the label is scaled,\n * which is why we multiply the width by 0.75 as this is\n * the same amount the label element is scaled by in the host CSS.\n * (See $form-control-label-stacked-scale in ionic.globals.scss).\n */\n notchSpacerEl.style.setProperty('width', `${width * 0.75}px`);\n };\n const destroy = () => {\n if (notchVisibilityIO) {\n notchVisibilityIO.disconnect();\n notchVisibilityIO = undefined;\n }\n };\n return {\n calculateNotchWidth,\n destroy,\n };\n};\n"],"version":3}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d as doc } from './index-6b94f340.js';
|
|
2
2
|
import { OVERLAY_BACK_BUTTON_PRIORITY, shouldUseCloseWatcher } from './hardware-back-button-41efa076.js';
|
|
3
3
|
import { g as getIonMode, c as config } from './ionic-global-df0a32a5.js';
|
|
4
|
-
import { C as CoreDelegate } from './framework-delegate-
|
|
5
|
-
import { a as componentOnReady, f as focusVisibleElement, b as addEventListener, e as removeEventListener, g as getElementRoot } from './helpers-
|
|
4
|
+
import { C as CoreDelegate } from './framework-delegate-c5179013.js';
|
|
5
|
+
import { a as componentOnReady, f as focusVisibleElement, b as addEventListener, e as removeEventListener, g as getElementRoot } from './helpers-c51da066.js';
|
|
6
6
|
import { p as printIonWarning } from './index-f7ac0403.js';
|
|
7
7
|
|
|
8
8
|
/*!
|
|
@@ -850,4 +850,4 @@ const revealOverlaysToScreenReaders = () => {
|
|
|
850
850
|
|
|
851
851
|
export { BACKDROP as B, GESTURE as G, OVERLAY_GESTURE_PRIORITY as O, createTriggerController as a, present as b, createDelegateController as c, dismiss as d, eventMethod as e, safeCall as f, getPresentedOverlay as g, popoverController as h, isCancel as i, actionSheetController as j, alertController as k, focusFirstDescendant as l, prepareOverlay as p, setOverlayId as s, toastController as t };
|
|
852
852
|
|
|
853
|
-
//# sourceMappingURL=overlays-
|
|
853
|
+
//# sourceMappingURL=overlays-4b3bb757.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"overlays-75a54062.js","mappings":";;;;;;;AAAA;AACA;AACA;AASA,IAAI,gBAAgB,GAAG,CAAC,CAAC;AACzB,IAAI,MAAM,GAAG,CAAC,CAAC;AACR,MAAM,gBAAgB,GAAG,IAAI,OAAO,EAAE,CAAC;AAC9C,MAAM,gBAAgB,GAAG,CAAC,OAAO,KAAK;AACtC,IAAI,OAAO;AACX,QAAQ,MAAM,CAAC,OAAO,EAAE;AACxB,YAAY,OAAO,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AACnD,SAAS;AACT,QAAQ,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE;AAChC,YAAY,OAAO,cAAc,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC;AACrE,SAAS;AACT,QAAQ,MAAM,MAAM,GAAG;AACvB,YAAY,OAAO,mBAAmB,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AAC5C,IAAI,IAAI,GAAG,KAAK,SAAS;AACzB,QAAQ,OAAO;AACf,IAAI,MAAM,QAAQ,GAAG,oBAAoB,CAAC,GAAG,CAAC,CAAC;AAC/C,IAAI,KAAK,IAAI,CAAC,GAAG,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE;AACnD,QAAQ,MAAM,cAAc,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,cAAc,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;AACtD;AACA;AACA;AACA;AACA;AACA,QAAQ,IAAI,cAAc,CAAC,OAAO,KAAK,WAAW,EAAE;AACpD,YAAY,MAAM;AAClB,SAAS;AACT,KAAK;AACL,CAAC;;;;","names":[],"sources":["../node_modules/@ionic/core/dist/collection/utils/overlays.js"],"sourcesContent":["/*!\n * (C) Ionic http://ionicframework.com - MIT License\n */\nimport { doc } from \"./browser/index\";\nimport { shouldUseCloseWatcher } from \"./hardware-back-button\";\nimport { config } from \"../global/config\";\nimport { getIonMode } from \"../global/ionic-global\";\nimport { CoreDelegate } from \"./framework-delegate\";\nimport { OVERLAY_BACK_BUTTON_PRIORITY } from \"./hardware-back-button\";\nimport { addEventListener, componentOnReady, focusVisibleElement, getElementRoot, removeEventListener, } from \"./helpers\";\nimport { printIonWarning } from \"./logging\";\nlet lastOverlayIndex = 0;\nlet lastId = 0;\nexport const activeAnimations = new WeakMap();\nconst createController = (tagName) => {\n return {\n create(options) {\n return createOverlay(tagName, options);\n },\n dismiss(data, role, id) {\n return dismissOverlay(document, data, role, tagName, id);\n },\n async getTop() {\n return getPresentedOverlay(document, tagName);\n },\n };\n};\nexport const alertController = /*@__PURE__*/ createController('ion-alert');\nexport const actionSheetController = /*@__PURE__*/ createController('ion-action-sheet');\nexport const loadingController = /*@__PURE__*/ createController('ion-loading');\nexport const modalController = /*@__PURE__*/ createController('ion-modal');\nexport const pickerController = /*@__PURE__*/ createController('ion-picker');\nexport const popoverController = /*@__PURE__*/ createController('ion-popover');\nexport const toastController = /*@__PURE__*/ createController('ion-toast');\n/**\n * Prepares the overlay element to be presented.\n */\nexport const prepareOverlay = (el) => {\n if (typeof document !== 'undefined') {\n /**\n * Adds a single instance of event listeners for application behaviors:\n *\n * - Escape Key behavior to dismiss an overlay\n * - Trapping focus within an overlay\n * - Back button behavior to dismiss an overlay\n *\n * This only occurs when the first overlay is created.\n */\n connectListeners(document);\n }\n const overlayIndex = lastOverlayIndex++;\n /**\n * overlayIndex is used in the overlay components to set a zIndex.\n * This ensures that the most recently presented overlay will be\n * on top.\n */\n el.overlayIndex = overlayIndex;\n};\n/**\n * Assigns an incrementing id to an overlay element, that does not\n * already have an id assigned to it.\n *\n * Used to track unique instances of an overlay element.\n */\nexport const setOverlayId = (el) => {\n if (!el.hasAttribute('id')) {\n el.id = `ion-overlay-${++lastId}`;\n }\n return el.id;\n};\nexport const createOverlay = (tagName, opts) => {\n // eslint-disable-next-line @typescript-eslint/prefer-optional-chain\n if (typeof window !== 'undefined' && typeof window.customElements !== 'undefined') {\n return window.customElements.whenDefined(tagName).then(() => {\n const element = document.createElement(tagName);\n element.classList.add('overlay-hidden');\n /**\n * Convert the passed in overlay options into props\n * that get passed down into the new overlay.\n */\n Object.assign(element, Object.assign(Object.assign({}, opts), { hasController: true }));\n // append the overlay element to the document body\n getAppRoot(document).appendChild(element);\n return new Promise((resolve) => componentOnReady(element, resolve));\n });\n }\n return Promise.resolve();\n};\n/**\n * This query string selects elements that\n * are eligible to receive focus. We select\n * interactive elements that meet the following\n * criteria:\n * 1. Element does not have a negative tabindex\n * 2. Element does not have `hidden`\n * 3. Element does not have `disabled` for non-Ionic components.\n * 4. Element does not have `disabled` or `disabled=\"true\"` for Ionic components.\n * Note: We need this distinction because `disabled=\"false\"` is\n * valid usage for the disabled property on ion-button.\n */\nconst focusableQueryString = '[tabindex]:not([tabindex^=\"-\"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^=\"-\"]):not([hidden]):not([disabled]), textarea:not([tabindex^=\"-\"]):not([hidden]):not([disabled]), button:not([tabindex^=\"-\"]):not([hidden]):not([disabled]), select:not([tabindex^=\"-\"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^=\"-\"]):not([hidden]):not([disabled]), .ion-focusable[disabled=\"false\"]:not([tabindex^=\"-\"]):not([hidden])';\nconst isOverlayHidden = (overlay) => overlay.classList.contains('overlay-hidden');\n/**\n * Focuses the first descendant in an overlay\n * that can receive focus. If none exists,\n * the entire overlay will be focused.\n */\nexport const focusFirstDescendant = (ref, overlay) => {\n const firstInput = ref.querySelector(focusableQueryString);\n focusElementInOverlay(firstInput, overlay);\n};\n/**\n * Focuses the last descendant in an overlay\n * that can receive focus. If none exists,\n * the entire overlay will be focused.\n */\nconst focusLastDescendant = (ref, overlay) => {\n const inputs = Array.from(ref.querySelectorAll(focusableQueryString));\n const lastInput = inputs.length > 0 ? inputs[inputs.length - 1] : null;\n focusElementInOverlay(lastInput, overlay);\n};\n/**\n * Focuses a particular element in an overlay. If the element\n * doesn't have anything focusable associated with it then\n * the overlay itself will be focused.\n * This should be used instead of the focus() method\n * on most elements because the focusable element\n * may not be the host element.\n *\n * For example, if an ion-button should be focused\n * then we should actually focus the native <button>\n * element inside of ion-button's shadow root, not\n * the host element itself.\n */\nconst focusElementInOverlay = (hostToFocus, overlay) => {\n let elementToFocus = hostToFocus;\n const shadowRoot = hostToFocus === null || hostToFocus === void 0 ? void 0 : hostToFocus.shadowRoot;\n if (shadowRoot) {\n // If there are no inner focusable elements, just focus the host element.\n elementToFocus = shadowRoot.querySelector(focusableQueryString) || hostToFocus;\n }\n if (elementToFocus) {\n focusVisibleElement(elementToFocus);\n }\n else {\n // Focus overlay instead of letting focus escape\n overlay.focus();\n }\n};\n/**\n * Traps keyboard focus inside of overlay components.\n * Based on https://w3c.github.io/aria-practices/examples/dialog-modal/alertdialog.html\n * This includes the following components: Action Sheet, Alert, Loading, Modal,\n * Picker, and Popover.\n * Should NOT include: Toast\n */\nconst trapKeyboardFocus = (ev, doc) => {\n const lastOverlay = getPresentedOverlay(doc, 'ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover');\n const target = ev.target;\n /**\n * If no active overlay, ignore this event.\n *\n * If this component uses the shadow dom,\n * this global listener is pointless\n * since it will not catch the focus\n * traps as they are inside the shadow root.\n * We need to add a listener to the shadow root\n * itself to ensure the focus trap works.\n */\n if (!lastOverlay || !target) {\n return;\n }\n /**\n * If the ion-disable-focus-trap class\n * is present on an overlay, then this component\n * instance has opted out of focus trapping.\n * An example of this is when the sheet modal\n * has a backdrop that is disabled. The content\n * behind the sheet should be focusable until\n * the backdrop is enabled.\n */\n if (lastOverlay.classList.contains('ion-disable-focus-trap')) {\n return;\n }\n const trapScopedFocus = () => {\n /**\n * If we are focusing the overlay, clear\n * the last focused element so that hitting\n * tab activates the first focusable element\n * in the overlay wrapper.\n */\n if (lastOverlay === target) {\n lastOverlay.lastFocus = undefined;\n /**\n * Toasts can be presented from an overlay.\n * However, focus should still be returned to\n * the overlay when clicking a toast. Normally,\n * focus would be returned to the last focusable\n * descendant in the overlay which may not always be\n * the button that the toast was presented from. In this case,\n * the focus may be returned to an unexpected element.\n * To account for this, we make sure to return focus to the\n * last focused element in the overlay if focus is\n * moved to the toast.\n */\n }\n else if (target.tagName === 'ION-TOAST') {\n focusElementInOverlay(lastOverlay.lastFocus, lastOverlay);\n /**\n * Otherwise, we must be focusing an element\n * inside of the overlay. The two possible options\n * here are an input/button/etc or the ion-focus-trap\n * element. The focus trap element is used to prevent\n * the keyboard focus from leaving the overlay when\n * using Tab or screen assistants.\n */\n }\n else {\n /**\n * We do not want to focus the traps, so get the overlay\n * wrapper element as the traps live outside of the wrapper.\n */\n const overlayRoot = getElementRoot(lastOverlay);\n if (!overlayRoot.contains(target)) {\n return;\n }\n const overlayWrapper = overlayRoot.querySelector('.ion-overlay-wrapper');\n if (!overlayWrapper) {\n return;\n }\n /**\n * If the target is inside the wrapper, let the browser\n * focus as normal and keep a log of the last focused element.\n * Additionally, if the backdrop was tapped we should not\n * move focus back inside the wrapper as that could cause\n * an interactive elements focus state to activate.\n */\n if (overlayWrapper.contains(target) || target === overlayRoot.querySelector('ion-backdrop')) {\n lastOverlay.lastFocus = target;\n }\n else {\n /**\n * Otherwise, we must have focused one of the focus traps.\n * We need to wrap the focus to either the first element\n * or the last element.\n */\n /**\n * Once we call `focusFirstDescendant` and focus the first\n * descendant, another focus event will fire which will\n * cause `lastOverlay.lastFocus` to be updated before\n * we can run the code after that. We will cache the value\n * here to avoid that.\n */\n const lastFocus = lastOverlay.lastFocus;\n // Focus the first element in the overlay wrapper\n focusFirstDescendant(overlayWrapper, lastOverlay);\n /**\n * If the cached last focused element is the\n * same as the active element, then we need\n * to wrap focus to the last descendant. This happens\n * when the first descendant is focused, and the user\n * presses Shift + Tab. The previous line will focus\n * the same descendant again (the first one), causing\n * last focus to equal the active element.\n */\n if (lastFocus === doc.activeElement) {\n focusLastDescendant(overlayWrapper, lastOverlay);\n }\n lastOverlay.lastFocus = doc.activeElement;\n }\n }\n };\n const trapShadowFocus = () => {\n /**\n * If the target is inside the wrapper, let the browser\n * focus as normal and keep a log of the last focused element.\n */\n if (lastOverlay.contains(target)) {\n lastOverlay.lastFocus = target;\n /**\n * Toasts can be presented from an overlay.\n * However, focus should still be returned to\n * the overlay when clicking a toast. Normally,\n * focus would be returned to the last focusable\n * descendant in the overlay which may not always be\n * the button that the toast was presented from. In this case,\n * the focus may be returned to an unexpected element.\n * To account for this, we make sure to return focus to the\n * last focused element in the overlay if focus is\n * moved to the toast.\n */\n }\n else if (target.tagName === 'ION-TOAST') {\n focusElementInOverlay(lastOverlay.lastFocus, lastOverlay);\n }\n else {\n /**\n * Otherwise, we are about to have focus\n * go out of the overlay. We need to wrap\n * the focus to either the first element\n * or the last element.\n */\n /**\n * Once we call `focusFirstDescendant` and focus the first\n * descendant, another focus event will fire which will\n * cause `lastOverlay.lastFocus` to be updated before\n * we can run the code after that. We will cache the value\n * here to avoid that.\n */\n const lastFocus = lastOverlay.lastFocus;\n // Focus the first element in the overlay wrapper\n focusFirstDescendant(lastOverlay, lastOverlay);\n /**\n * If the cached last focused element is the\n * same as the active element, then we need\n * to wrap focus to the last descendant. This happens\n * when the first descendant is focused, and the user\n * presses Shift + Tab. The previous line will focus\n * the same descendant again (the first one), causing\n * last focus to equal the active element.\n */\n if (lastFocus === doc.activeElement) {\n focusLastDescendant(lastOverlay, lastOverlay);\n }\n lastOverlay.lastFocus = doc.activeElement;\n }\n };\n if (lastOverlay.shadowRoot) {\n trapShadowFocus();\n }\n else {\n trapScopedFocus();\n }\n};\nconst connectListeners = (doc) => {\n if (lastOverlayIndex === 0) {\n lastOverlayIndex = 1;\n doc.addEventListener('focus', (ev) => {\n trapKeyboardFocus(ev, doc);\n }, true);\n // handle back-button click\n doc.addEventListener('ionBackButton', (ev) => {\n const lastOverlay = getPresentedOverlay(doc);\n if (lastOverlay === null || lastOverlay === void 0 ? void 0 : lastOverlay.backdropDismiss) {\n ev.detail.register(OVERLAY_BACK_BUTTON_PRIORITY, () => {\n /**\n * Do not return this promise otherwise\n * the hardware back button utility will\n * be blocked until the overlay dismisses.\n * This is important for a modal with canDismiss.\n * If the application presents a confirmation alert\n * in the \"canDismiss\" callback, then it will be impossible\n * to use the hardware back button to dismiss the alert\n * dialog because the hardware back button utility\n * is blocked on waiting for the modal to dismiss.\n */\n lastOverlay.dismiss(undefined, BACKDROP);\n });\n }\n });\n /**\n * Handle ESC to close overlay.\n * CloseWatcher also handles pressing the Esc\n * key, so if a browser supports CloseWatcher then\n * this behavior will be handled via the ionBackButton\n * event.\n */\n if (!shouldUseCloseWatcher()) {\n doc.addEventListener('keydown', (ev) => {\n if (ev.key === 'Escape') {\n const lastOverlay = getPresentedOverlay(doc);\n if (lastOverlay === null || lastOverlay === void 0 ? void 0 : lastOverlay.backdropDismiss) {\n lastOverlay.dismiss(undefined, BACKDROP);\n }\n }\n });\n }\n }\n};\nexport const dismissOverlay = (doc, data, role, overlayTag, id) => {\n const overlay = getPresentedOverlay(doc, overlayTag, id);\n if (!overlay) {\n return Promise.reject('overlay does not exist');\n }\n return overlay.dismiss(data, role);\n};\n/**\n * Returns a list of all overlays in the DOM even if they are not presented.\n */\nexport const getOverlays = (doc, selector) => {\n if (selector === undefined) {\n selector = 'ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast';\n }\n return Array.from(doc.querySelectorAll(selector)).filter((c) => c.overlayIndex > 0);\n};\n/**\n * Returns a list of all presented overlays.\n * Inline overlays can exist in the DOM but not be presented,\n * so there are times when we want to exclude those.\n * @param doc The document to find the element within.\n * @param overlayTag The selector for the overlay, defaults to Ionic overlay components.\n */\nconst getPresentedOverlays = (doc, overlayTag) => {\n return getOverlays(doc, overlayTag).filter((o) => !isOverlayHidden(o));\n};\n/**\n * Returns a presented overlay element.\n * @param doc The document to find the element within.\n * @param overlayTag The selector for the overlay, defaults to Ionic overlay components.\n * @param id The unique identifier for the overlay instance.\n * @returns The overlay element or `undefined` if no overlay element is found.\n */\nexport const getPresentedOverlay = (doc, overlayTag, id) => {\n const overlays = getPresentedOverlays(doc, overlayTag);\n return id === undefined ? overlays[overlays.length - 1] : overlays.find((o) => o.id === id);\n};\n/**\n * When an overlay is presented, the main\n * focus is the overlay not the page content.\n * We need to remove the page content from the\n * accessibility tree otherwise when\n * users use \"read screen from top\" gestures with\n * TalkBack and VoiceOver, the screen reader will begin\n * to read the content underneath the overlay.\n *\n * We need a container where all page components\n * exist that is separate from where the overlays\n * are added in the DOM. For most apps, this element\n * is the top most ion-router-outlet. In the event\n * that devs are not using a router,\n * they will need to add the \"ion-view-container-root\"\n * id to the element that contains all of their views.\n *\n * TODO: If Framework supports having multiple top\n * level router outlets we would need to update this.\n * Example: One outlet for side menu and one outlet\n * for main content.\n */\nexport const setRootAriaHidden = (hidden = false) => {\n const root = getAppRoot(document);\n const viewContainer = root.querySelector('ion-router-outlet, ion-nav, #ion-view-container-root');\n if (!viewContainer) {\n return;\n }\n if (hidden) {\n viewContainer.setAttribute('aria-hidden', 'true');\n }\n else {\n viewContainer.removeAttribute('aria-hidden');\n }\n};\nexport const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation, opts) => {\n var _a, _b;\n if (overlay.presented) {\n return;\n }\n setRootAriaHidden(true);\n hideOverlaysFromScreenReaders(overlay.el);\n overlay.presented = true;\n overlay.willPresent.emit();\n (_a = overlay.willPresentShorthand) === null || _a === void 0 ? void 0 : _a.emit();\n const mode = getIonMode(overlay);\n // get the user's animation fn if one was provided\n const animationBuilder = overlay.enterAnimation\n ? overlay.enterAnimation\n : config.get(name, mode === 'ios' ? iosEnterAnimation : mdEnterAnimation);\n const completed = await overlayAnimation(overlay, animationBuilder, overlay.el, opts);\n if (completed) {\n overlay.didPresent.emit();\n (_b = overlay.didPresentShorthand) === null || _b === void 0 ? void 0 : _b.emit();\n }\n /**\n * When an overlay that steals focus\n * is dismissed, focus should be returned\n * to the element that was focused\n * prior to the overlay opening. Toast\n * does not steal focus and is excluded\n * from returning focus as a result.\n */\n if (overlay.el.tagName !== 'ION-TOAST') {\n restoreElementFocus(overlay.el);\n }\n /**\n * If the focused element is already\n * inside the overlay component then\n * focus should not be moved from that\n * to the overlay container.\n */\n if (overlay.keyboardClose && (document.activeElement === null || !overlay.el.contains(document.activeElement))) {\n overlay.el.focus();\n }\n /**\n * If this overlay was previously dismissed without being\n * the topmost one (such as by manually calling dismiss()),\n * it would still have aria-hidden on being presented again.\n * Removing it here ensures the overlay is visible to screen\n * readers.\n */\n overlay.el.removeAttribute('aria-hidden');\n};\n/**\n * When an overlay component is dismissed,\n * focus should be returned to the element\n * that presented the overlay. Otherwise\n * focus will be set on the body which\n * means that people using screen readers\n * or tabbing will need to re-navigate\n * to where they were before they\n * opened the overlay.\n */\nconst restoreElementFocus = async (overlayEl) => {\n let previousElement = document.activeElement;\n if (!previousElement) {\n return;\n }\n const shadowRoot = previousElement === null || previousElement === void 0 ? void 0 : previousElement.shadowRoot;\n if (shadowRoot) {\n // If there are no inner focusable elements, just focus the host element.\n previousElement = shadowRoot.querySelector(focusableQueryString) || previousElement;\n }\n await overlayEl.onDidDismiss();\n /**\n * After onDidDismiss, the overlay loses focus\n * because it is removed from the document\n *\n * > An element will also lose focus [...]\n * > if the element is removed from the document)\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event\n *\n * Additionally, `document.activeElement` returns:\n *\n * > The Element which currently has focus,\n * > `<body>` or null if there is\n * > no focused element.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/Document/activeElement#value\n *\n * However, if the user has already focused\n * an element sometime between onWillDismiss\n * and onDidDismiss (for example, focusing a\n * text box after tapping a button in an\n * action sheet) then don't restore focus to\n * previous element\n */\n if (document.activeElement === null || document.activeElement === document.body) {\n previousElement.focus();\n }\n};\nexport const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnimation, opts) => {\n var _a, _b;\n if (!overlay.presented) {\n return false;\n }\n /**\n * If this is the last visible overlay then\n * we want to re-add the root to the accessibility tree.\n */\n if (doc !== undefined && getPresentedOverlays(doc).length === 1) {\n setRootAriaHidden(false);\n }\n overlay.presented = false;\n try {\n // Overlay contents should not be clickable during dismiss\n overlay.el.style.setProperty('pointer-events', 'none');\n overlay.willDismiss.emit({ data, role });\n (_a = overlay.willDismissShorthand) === null || _a === void 0 ? void 0 : _a.emit({ data, role });\n const mode = getIonMode(overlay);\n const animationBuilder = overlay.leaveAnimation\n ? overlay.leaveAnimation\n : config.get(name, mode === 'ios' ? iosLeaveAnimation : mdLeaveAnimation);\n // If dismissed via gesture, no need to play leaving animation again\n if (role !== GESTURE) {\n await overlayAnimation(overlay, animationBuilder, overlay.el, opts);\n }\n overlay.didDismiss.emit({ data, role });\n (_b = overlay.didDismissShorthand) === null || _b === void 0 ? void 0 : _b.emit({ data, role });\n // Get a reference to all animations currently assigned to this overlay\n // Then tear them down to return the overlay to its initial visual state\n const animations = activeAnimations.get(overlay) || [];\n animations.forEach((ani) => ani.destroy());\n activeAnimations.delete(overlay);\n /**\n * Make overlay hidden again in case it is being reused.\n * We can safely remove pointer-events: none as\n * overlay-hidden will set display: none.\n */\n overlay.el.classList.add('overlay-hidden');\n overlay.el.style.removeProperty('pointer-events');\n /**\n * Clear any focus trapping references\n * when the overlay is dismissed.\n */\n if (overlay.el.lastFocus !== undefined) {\n overlay.el.lastFocus = undefined;\n }\n }\n catch (err) {\n console.error(err);\n }\n overlay.el.remove();\n revealOverlaysToScreenReaders();\n return true;\n};\nconst getAppRoot = (doc) => {\n return doc.querySelector('ion-app') || doc.body;\n};\nconst overlayAnimation = async (overlay, animationBuilder, baseEl, opts) => {\n // Make overlay visible in case it's hidden\n baseEl.classList.remove('overlay-hidden');\n const aniRoot = overlay.el;\n const animation = animationBuilder(aniRoot, opts);\n if (!overlay.animated || !config.getBoolean('animated', true)) {\n animation.duration(0);\n }\n if (overlay.keyboardClose) {\n animation.beforeAddWrite(() => {\n const activeElement = baseEl.ownerDocument.activeElement;\n if (activeElement === null || activeElement === void 0 ? void 0 : activeElement.matches('input,ion-input, ion-textarea')) {\n activeElement.blur();\n }\n });\n }\n const activeAni = activeAnimations.get(overlay) || [];\n activeAnimations.set(overlay, [...activeAni, animation]);\n await animation.play();\n return true;\n};\nexport const eventMethod = (element, eventName) => {\n let resolve;\n const promise = new Promise((r) => (resolve = r));\n onceEvent(element, eventName, (event) => {\n resolve(event.detail);\n });\n return promise;\n};\nexport const onceEvent = (element, eventName, callback) => {\n const handler = (ev) => {\n removeEventListener(element, eventName, handler);\n callback(ev);\n };\n addEventListener(element, eventName, handler);\n};\nexport const isCancel = (role) => {\n return role === 'cancel' || role === BACKDROP;\n};\nconst defaultGate = (h) => h();\n/**\n * Calls a developer provided method while avoiding\n * Angular Zones. Since the handler is provided by\n * the developer, we should throw any errors\n * received so that developer-provided bug\n * tracking software can log it.\n */\nexport const safeCall = (handler, arg) => {\n if (typeof handler === 'function') {\n const jmp = config.get('_zoneGate', defaultGate);\n return jmp(() => {\n try {\n return handler(arg);\n }\n catch (e) {\n throw e;\n }\n });\n }\n return undefined;\n};\nexport const BACKDROP = 'backdrop';\nexport const GESTURE = 'gesture';\nexport const OVERLAY_GESTURE_PRIORITY = 39;\n/**\n * Creates a delegate controller.\n *\n * Requires that the component has the following properties:\n * - `el: HTMLElement`\n * - `hasController: boolean`\n * - `delegate?: FrameworkDelegate`\n *\n * @param ref The component class instance.\n */\nexport const createDelegateController = (ref) => {\n let inline = false;\n let workingDelegate;\n const coreDelegate = CoreDelegate();\n /**\n * Determines whether or not an overlay is being used\n * inline or via a controller/JS and returns the correct delegate.\n * By default, subsequent calls to getDelegate will use\n * a cached version of the delegate.\n * This is useful for calling dismiss after present,\n * so that the correct delegate is given.\n * @param force `true` to force the non-cached version of the delegate.\n * @returns The delegate to use and whether or not the overlay is inline.\n */\n const getDelegate = (force = false) => {\n if (workingDelegate && !force) {\n return {\n delegate: workingDelegate,\n inline,\n };\n }\n const { el, hasController, delegate } = ref;\n /**\n * If using overlay inline\n * we potentially need to use the coreDelegate\n * so that this works in vanilla JS apps.\n * If a developer has presented this component\n * via a controller, then we can assume\n * the component is already in the\n * correct place.\n */\n const parentEl = el.parentNode;\n inline = parentEl !== null && !hasController;\n workingDelegate = inline ? delegate || coreDelegate : delegate;\n return { inline, delegate: workingDelegate };\n };\n /**\n * Attaches a component in the DOM. Teleports the component\n * to the root of the app.\n * @param component The component to optionally construct and append to the element.\n */\n const attachViewToDom = async (component) => {\n const { delegate } = getDelegate(true);\n if (delegate) {\n return await delegate.attachViewToDom(ref.el, component);\n }\n const { hasController } = ref;\n if (hasController && component !== undefined) {\n throw new Error('framework delegate is missing');\n }\n return null;\n };\n /**\n * Moves a component back to its original location in the DOM.\n */\n const removeViewFromDom = () => {\n const { delegate } = getDelegate();\n if (delegate && ref.el !== undefined) {\n delegate.removeViewFromDom(ref.el.parentElement, ref.el);\n }\n };\n return {\n attachViewToDom,\n removeViewFromDom,\n };\n};\n/**\n * Constructs a trigger interaction for an overlay.\n * Presents an overlay when the trigger is clicked.\n *\n * Usage:\n * ```ts\n * triggerController = createTriggerController();\n * triggerController.addClickListener(el, trigger);\n * ```\n */\nexport const createTriggerController = () => {\n let destroyTriggerInteraction;\n /**\n * Removes the click listener from the trigger element.\n */\n const removeClickListener = () => {\n if (destroyTriggerInteraction) {\n destroyTriggerInteraction();\n destroyTriggerInteraction = undefined;\n }\n };\n /**\n * Adds a click listener to the trigger element.\n * Presents the overlay when the trigger is clicked.\n * @param el The overlay element.\n * @param trigger The ID of the element to add a click listener to.\n */\n const addClickListener = (el, trigger) => {\n removeClickListener();\n const triggerEl = trigger !== undefined ? document.getElementById(trigger) : null;\n if (!triggerEl) {\n printIonWarning(`A trigger element with the ID \"${trigger}\" was not found in the DOM. The trigger element must be in the DOM when the \"trigger\" property is set on an overlay component.`, el);\n return;\n }\n const configureTriggerInteraction = (targetEl, overlayEl) => {\n const openOverlay = () => {\n overlayEl.present();\n };\n targetEl.addEventListener('click', openOverlay);\n return () => {\n targetEl.removeEventListener('click', openOverlay);\n };\n };\n destroyTriggerInteraction = configureTriggerInteraction(triggerEl, el);\n };\n return {\n addClickListener,\n removeClickListener,\n };\n};\n/**\n * Ensure that underlying overlays have aria-hidden if necessary so that screen readers\n * cannot move focus to these elements. Note that we cannot rely on focus/focusin/focusout\n * events here because those events do not fire when the screen readers moves to a non-focusable\n * element such as text.\n * Without this logic screen readers would be able to move focus outside of the top focus-trapped overlay.\n *\n * @param newTopMostOverlay - The overlay that is being presented. Since the overlay has not been\n * fully presented yet at the time this function is called it will not be included in the getPresentedOverlays result.\n */\nconst hideOverlaysFromScreenReaders = (newTopMostOverlay) => {\n var _a;\n if (doc === undefined)\n return;\n const overlays = getPresentedOverlays(doc);\n for (let i = overlays.length - 1; i >= 0; i--) {\n const presentedOverlay = overlays[i];\n const nextPresentedOverlay = (_a = overlays[i + 1]) !== null && _a !== void 0 ? _a : newTopMostOverlay;\n /**\n * If next overlay has aria-hidden then all remaining overlays will have it too.\n * Or, if the next overlay is a Toast that does not have aria-hidden then current overlay\n * should not have aria-hidden either so focus can remain in the current overlay.\n */\n if (nextPresentedOverlay.hasAttribute('aria-hidden') || nextPresentedOverlay.tagName !== 'ION-TOAST') {\n presentedOverlay.setAttribute('aria-hidden', 'true');\n }\n }\n};\n/**\n * When dismissing an overlay we need to reveal the new top-most overlay to screen readers.\n * If the top-most overlay is a Toast we potentially need to reveal more overlays since\n * focus is never automatically moved to the Toast.\n */\nconst revealOverlaysToScreenReaders = () => {\n if (doc === undefined)\n return;\n const overlays = getPresentedOverlays(doc);\n for (let i = overlays.length - 1; i >= 0; i--) {\n const currentOverlay = overlays[i];\n /**\n * If the current we are looking at is a Toast then we can remove aria-hidden.\n * However, we potentially need to keep looking at the overlay stack because there\n * could be more Toasts underneath. Additionally, we need to unhide the closest non-Toast\n * overlay too so focus can move there since focus is never automatically moved to the Toast.\n */\n currentOverlay.removeAttribute('aria-hidden');\n /**\n * If we found a non-Toast element then we can just remove aria-hidden and stop searching entirely\n * since this overlay should always receive focus. As a result, all underlying overlays should still\n * be hidden from screen readers.\n */\n if (currentOverlay.tagName !== 'ION-TOAST') {\n break;\n }\n }\n};\n"],"version":3}
|
|
1
|
+
{"file":"overlays-4b3bb757.js","mappings":";;;;;;;AAAA;AACA;AACA;AASA,IAAI,gBAAgB,GAAG,CAAC,CAAC;AACzB,IAAI,MAAM,GAAG,CAAC,CAAC;AACR,MAAM,gBAAgB,GAAG,IAAI,OAAO,EAAE,CAAC;AAC9C,MAAM,gBAAgB,GAAG,CAAC,OAAO,KAAK;AACtC,IAAI,OAAO;AACX,QAAQ,MAAM,CAAC,OAAO,EAAE;AACxB,YAAY,OAAO,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AACnD,SAAS;AACT,QAAQ,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE;AAChC,YAAY,O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,gBAAgB,CAAC,YAAY,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;AACjE,SAAS;AACT,KAAK;AACL,CAAC,CAAC;AACF;AACA;AACA;AACA;AACA;AACA,MAAM,6BAA6B,GAAG,MAAM;AAC5C,IAAI,IAAI,GAAG,KAAK,SAAS;AACzB,QAAQ,OAAO;AACf,IAAI,MAAM,QAAQ,GAAG,oBAAoB,CAAC,GAAG,CAAC,CAAC;AAC/C,IAAI,KAAK,IAAI,CAAC,GAAG,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE;AACnD,QAAQ,MAAM,cAAc,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,cAAc,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;AACtD;AACA;AACA;AACA;AACA;AACA,QAAQ,IAAI,cAAc,CAAC,OAAO,KAAK,WAAW,EAAE;AACpD,YAAY,MAAM;AAClB,SAAS;AACT,KAAK;AACL,CAAC;;;;","names":[],"sources":["../node_modules/@ionic/core/dist/collection/utils/overlays.js"],"sourcesContent":["/*!\n * (C) Ionic http://ionicframework.com - MIT License\n */\nimport { doc } from \"./browser/index\";\nimport { shouldUseCloseWatcher } from \"./hardware-back-button\";\nimport { config } from \"../global/config\";\nimport { getIonMode } from \"../global/ionic-global\";\nimport { CoreDelegate } from \"./framework-delegate\";\nimport { OVERLAY_BACK_BUTTON_PRIORITY } from \"./hardware-back-button\";\nimport { addEventListener, componentOnReady, focusVisibleElement, getElementRoot, removeEventListener, } from \"./helpers\";\nimport { printIonWarning } from \"./logging\";\nlet lastOverlayIndex = 0;\nlet lastId = 0;\nexport const activeAnimations = new WeakMap();\nconst createController = (tagName) => {\n return {\n create(options) {\n return createOverlay(tagName, options);\n },\n dismiss(data, role, id) {\n return dismissOverlay(document, data, role, tagName, id);\n },\n async getTop() {\n return getPresentedOverlay(document, tagName);\n },\n };\n};\nexport const alertController = /*@__PURE__*/ createController('ion-alert');\nexport const actionSheetController = /*@__PURE__*/ createController('ion-action-sheet');\nexport const loadingController = /*@__PURE__*/ createController('ion-loading');\nexport const modalController = /*@__PURE__*/ createController('ion-modal');\nexport const pickerController = /*@__PURE__*/ createController('ion-picker');\nexport const popoverController = /*@__PURE__*/ createController('ion-popover');\nexport const toastController = /*@__PURE__*/ createController('ion-toast');\n/**\n * Prepares the overlay element to be presented.\n */\nexport const prepareOverlay = (el) => {\n if (typeof document !== 'undefined') {\n /**\n * Adds a single instance of event listeners for application behaviors:\n *\n * - Escape Key behavior to dismiss an overlay\n * - Trapping focus within an overlay\n * - Back button behavior to dismiss an overlay\n *\n * This only occurs when the first overlay is created.\n */\n connectListeners(document);\n }\n const overlayIndex = lastOverlayIndex++;\n /**\n * overlayIndex is used in the overlay components to set a zIndex.\n * This ensures that the most recently presented overlay will be\n * on top.\n */\n el.overlayIndex = overlayIndex;\n};\n/**\n * Assigns an incrementing id to an overlay element, that does not\n * already have an id assigned to it.\n *\n * Used to track unique instances of an overlay element.\n */\nexport const setOverlayId = (el) => {\n if (!el.hasAttribute('id')) {\n el.id = `ion-overlay-${++lastId}`;\n }\n return el.id;\n};\nexport const createOverlay = (tagName, opts) => {\n // eslint-disable-next-line @typescript-eslint/prefer-optional-chain\n if (typeof window !== 'undefined' && typeof window.customElements !== 'undefined') {\n return window.customElements.whenDefined(tagName).then(() => {\n const element = document.createElement(tagName);\n element.classList.add('overlay-hidden');\n /**\n * Convert the passed in overlay options into props\n * that get passed down into the new overlay.\n */\n Object.assign(element, Object.assign(Object.assign({}, opts), { hasController: true }));\n // append the overlay element to the document body\n getAppRoot(document).appendChild(element);\n return new Promise((resolve) => componentOnReady(element, resolve));\n });\n }\n return Promise.resolve();\n};\n/**\n * This query string selects elements that\n * are eligible to receive focus. We select\n * interactive elements that meet the following\n * criteria:\n * 1. Element does not have a negative tabindex\n * 2. Element does not have `hidden`\n * 3. Element does not have `disabled` for non-Ionic components.\n * 4. Element does not have `disabled` or `disabled=\"true\"` for Ionic components.\n * Note: We need this distinction because `disabled=\"false\"` is\n * valid usage for the disabled property on ion-button.\n */\nconst focusableQueryString = '[tabindex]:not([tabindex^=\"-\"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^=\"-\"]):not([hidden]):not([disabled]), textarea:not([tabindex^=\"-\"]):not([hidden]):not([disabled]), button:not([tabindex^=\"-\"]):not([hidden]):not([disabled]), select:not([tabindex^=\"-\"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^=\"-\"]):not([hidden]):not([disabled]), .ion-focusable[disabled=\"false\"]:not([tabindex^=\"-\"]):not([hidden])';\nconst isOverlayHidden = (overlay) => overlay.classList.contains('overlay-hidden');\n/**\n * Focuses the first descendant in an overlay\n * that can receive focus. If none exists,\n * the entire overlay will be focused.\n */\nexport const focusFirstDescendant = (ref, overlay) => {\n const firstInput = ref.querySelector(focusableQueryString);\n focusElementInOverlay(firstInput, overlay);\n};\n/**\n * Focuses the last descendant in an overlay\n * that can receive focus. If none exists,\n * the entire overlay will be focused.\n */\nconst focusLastDescendant = (ref, overlay) => {\n const inputs = Array.from(ref.querySelectorAll(focusableQueryString));\n const lastInput = inputs.length > 0 ? inputs[inputs.length - 1] : null;\n focusElementInOverlay(lastInput, overlay);\n};\n/**\n * Focuses a particular element in an overlay. If the element\n * doesn't have anything focusable associated with it then\n * the overlay itself will be focused.\n * This should be used instead of the focus() method\n * on most elements because the focusable element\n * may not be the host element.\n *\n * For example, if an ion-button should be focused\n * then we should actually focus the native <button>\n * element inside of ion-button's shadow root, not\n * the host element itself.\n */\nconst focusElementInOverlay = (hostToFocus, overlay) => {\n let elementToFocus = hostToFocus;\n const shadowRoot = hostToFocus === null || hostToFocus === void 0 ? void 0 : hostToFocus.shadowRoot;\n if (shadowRoot) {\n // If there are no inner focusable elements, just focus the host element.\n elementToFocus = shadowRoot.querySelector(focusableQueryString) || hostToFocus;\n }\n if (elementToFocus) {\n focusVisibleElement(elementToFocus);\n }\n else {\n // Focus overlay instead of letting focus escape\n overlay.focus();\n }\n};\n/**\n * Traps keyboard focus inside of overlay components.\n * Based on https://w3c.github.io/aria-practices/examples/dialog-modal/alertdialog.html\n * This includes the following components: Action Sheet, Alert, Loading, Modal,\n * Picker, and Popover.\n * Should NOT include: Toast\n */\nconst trapKeyboardFocus = (ev, doc) => {\n const lastOverlay = getPresentedOverlay(doc, 'ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover');\n const target = ev.target;\n /**\n * If no active overlay, ignore this event.\n *\n * If this component uses the shadow dom,\n * this global listener is pointless\n * since it will not catch the focus\n * traps as they are inside the shadow root.\n * We need to add a listener to the shadow root\n * itself to ensure the focus trap works.\n */\n if (!lastOverlay || !target) {\n return;\n }\n /**\n * If the ion-disable-focus-trap class\n * is present on an overlay, then this component\n * instance has opted out of focus trapping.\n * An example of this is when the sheet modal\n * has a backdrop that is disabled. The content\n * behind the sheet should be focusable until\n * the backdrop is enabled.\n */\n if (lastOverlay.classList.contains('ion-disable-focus-trap')) {\n return;\n }\n const trapScopedFocus = () => {\n /**\n * If we are focusing the overlay, clear\n * the last focused element so that hitting\n * tab activates the first focusable element\n * in the overlay wrapper.\n */\n if (lastOverlay === target) {\n lastOverlay.lastFocus = undefined;\n /**\n * Toasts can be presented from an overlay.\n * However, focus should still be returned to\n * the overlay when clicking a toast. Normally,\n * focus would be returned to the last focusable\n * descendant in the overlay which may not always be\n * the button that the toast was presented from. In this case,\n * the focus may be returned to an unexpected element.\n * To account for this, we make sure to return focus to the\n * last focused element in the overlay if focus is\n * moved to the toast.\n */\n }\n else if (target.tagName === 'ION-TOAST') {\n focusElementInOverlay(lastOverlay.lastFocus, lastOverlay);\n /**\n * Otherwise, we must be focusing an element\n * inside of the overlay. The two possible options\n * here are an input/button/etc or the ion-focus-trap\n * element. The focus trap element is used to prevent\n * the keyboard focus from leaving the overlay when\n * using Tab or screen assistants.\n */\n }\n else {\n /**\n * We do not want to focus the traps, so get the overlay\n * wrapper element as the traps live outside of the wrapper.\n */\n const overlayRoot = getElementRoot(lastOverlay);\n if (!overlayRoot.contains(target)) {\n return;\n }\n const overlayWrapper = overlayRoot.querySelector('.ion-overlay-wrapper');\n if (!overlayWrapper) {\n return;\n }\n /**\n * If the target is inside the wrapper, let the browser\n * focus as normal and keep a log of the last focused element.\n * Additionally, if the backdrop was tapped we should not\n * move focus back inside the wrapper as that could cause\n * an interactive elements focus state to activate.\n */\n if (overlayWrapper.contains(target) || target === overlayRoot.querySelector('ion-backdrop')) {\n lastOverlay.lastFocus = target;\n }\n else {\n /**\n * Otherwise, we must have focused one of the focus traps.\n * We need to wrap the focus to either the first element\n * or the last element.\n */\n /**\n * Once we call `focusFirstDescendant` and focus the first\n * descendant, another focus event will fire which will\n * cause `lastOverlay.lastFocus` to be updated before\n * we can run the code after that. We will cache the value\n * here to avoid that.\n */\n const lastFocus = lastOverlay.lastFocus;\n // Focus the first element in the overlay wrapper\n focusFirstDescendant(overlayWrapper, lastOverlay);\n /**\n * If the cached last focused element is the\n * same as the active element, then we need\n * to wrap focus to the last descendant. This happens\n * when the first descendant is focused, and the user\n * presses Shift + Tab. The previous line will focus\n * the same descendant again (the first one), causing\n * last focus to equal the active element.\n */\n if (lastFocus === doc.activeElement) {\n focusLastDescendant(overlayWrapper, lastOverlay);\n }\n lastOverlay.lastFocus = doc.activeElement;\n }\n }\n };\n const trapShadowFocus = () => {\n /**\n * If the target is inside the wrapper, let the browser\n * focus as normal and keep a log of the last focused element.\n */\n if (lastOverlay.contains(target)) {\n lastOverlay.lastFocus = target;\n /**\n * Toasts can be presented from an overlay.\n * However, focus should still be returned to\n * the overlay when clicking a toast. Normally,\n * focus would be returned to the last focusable\n * descendant in the overlay which may not always be\n * the button that the toast was presented from. In this case,\n * the focus may be returned to an unexpected element.\n * To account for this, we make sure to return focus to the\n * last focused element in the overlay if focus is\n * moved to the toast.\n */\n }\n else if (target.tagName === 'ION-TOAST') {\n focusElementInOverlay(lastOverlay.lastFocus, lastOverlay);\n }\n else {\n /**\n * Otherwise, we are about to have focus\n * go out of the overlay. We need to wrap\n * the focus to either the first element\n * or the last element.\n */\n /**\n * Once we call `focusFirstDescendant` and focus the first\n * descendant, another focus event will fire which will\n * cause `lastOverlay.lastFocus` to be updated before\n * we can run the code after that. We will cache the value\n * here to avoid that.\n */\n const lastFocus = lastOverlay.lastFocus;\n // Focus the first element in the overlay wrapper\n focusFirstDescendant(lastOverlay, lastOverlay);\n /**\n * If the cached last focused element is the\n * same as the active element, then we need\n * to wrap focus to the last descendant. This happens\n * when the first descendant is focused, and the user\n * presses Shift + Tab. The previous line will focus\n * the same descendant again (the first one), causing\n * last focus to equal the active element.\n */\n if (lastFocus === doc.activeElement) {\n focusLastDescendant(lastOverlay, lastOverlay);\n }\n lastOverlay.lastFocus = doc.activeElement;\n }\n };\n if (lastOverlay.shadowRoot) {\n trapShadowFocus();\n }\n else {\n trapScopedFocus();\n }\n};\nconst connectListeners = (doc) => {\n if (lastOverlayIndex === 0) {\n lastOverlayIndex = 1;\n doc.addEventListener('focus', (ev) => {\n trapKeyboardFocus(ev, doc);\n }, true);\n // handle back-button click\n doc.addEventListener('ionBackButton', (ev) => {\n const lastOverlay = getPresentedOverlay(doc);\n if (lastOverlay === null || lastOverlay === void 0 ? void 0 : lastOverlay.backdropDismiss) {\n ev.detail.register(OVERLAY_BACK_BUTTON_PRIORITY, () => {\n /**\n * Do not return this promise otherwise\n * the hardware back button utility will\n * be blocked until the overlay dismisses.\n * This is important for a modal with canDismiss.\n * If the application presents a confirmation alert\n * in the \"canDismiss\" callback, then it will be impossible\n * to use the hardware back button to dismiss the alert\n * dialog because the hardware back button utility\n * is blocked on waiting for the modal to dismiss.\n */\n lastOverlay.dismiss(undefined, BACKDROP);\n });\n }\n });\n /**\n * Handle ESC to close overlay.\n * CloseWatcher also handles pressing the Esc\n * key, so if a browser supports CloseWatcher then\n * this behavior will be handled via the ionBackButton\n * event.\n */\n if (!shouldUseCloseWatcher()) {\n doc.addEventListener('keydown', (ev) => {\n if (ev.key === 'Escape') {\n const lastOverlay = getPresentedOverlay(doc);\n if (lastOverlay === null || lastOverlay === void 0 ? void 0 : lastOverlay.backdropDismiss) {\n lastOverlay.dismiss(undefined, BACKDROP);\n }\n }\n });\n }\n }\n};\nexport const dismissOverlay = (doc, data, role, overlayTag, id) => {\n const overlay = getPresentedOverlay(doc, overlayTag, id);\n if (!overlay) {\n return Promise.reject('overlay does not exist');\n }\n return overlay.dismiss(data, role);\n};\n/**\n * Returns a list of all overlays in the DOM even if they are not presented.\n */\nexport const getOverlays = (doc, selector) => {\n if (selector === undefined) {\n selector = 'ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast';\n }\n return Array.from(doc.querySelectorAll(selector)).filter((c) => c.overlayIndex > 0);\n};\n/**\n * Returns a list of all presented overlays.\n * Inline overlays can exist in the DOM but not be presented,\n * so there are times when we want to exclude those.\n * @param doc The document to find the element within.\n * @param overlayTag The selector for the overlay, defaults to Ionic overlay components.\n */\nconst getPresentedOverlays = (doc, overlayTag) => {\n return getOverlays(doc, overlayTag).filter((o) => !isOverlayHidden(o));\n};\n/**\n * Returns a presented overlay element.\n * @param doc The document to find the element within.\n * @param overlayTag The selector for the overlay, defaults to Ionic overlay components.\n * @param id The unique identifier for the overlay instance.\n * @returns The overlay element or `undefined` if no overlay element is found.\n */\nexport const getPresentedOverlay = (doc, overlayTag, id) => {\n const overlays = getPresentedOverlays(doc, overlayTag);\n return id === undefined ? overlays[overlays.length - 1] : overlays.find((o) => o.id === id);\n};\n/**\n * When an overlay is presented, the main\n * focus is the overlay not the page content.\n * We need to remove the page content from the\n * accessibility tree otherwise when\n * users use \"read screen from top\" gestures with\n * TalkBack and VoiceOver, the screen reader will begin\n * to read the content underneath the overlay.\n *\n * We need a container where all page components\n * exist that is separate from where the overlays\n * are added in the DOM. For most apps, this element\n * is the top most ion-router-outlet. In the event\n * that devs are not using a router,\n * they will need to add the \"ion-view-container-root\"\n * id to the element that contains all of their views.\n *\n * TODO: If Framework supports having multiple top\n * level router outlets we would need to update this.\n * Example: One outlet for side menu and one outlet\n * for main content.\n */\nexport const setRootAriaHidden = (hidden = false) => {\n const root = getAppRoot(document);\n const viewContainer = root.querySelector('ion-router-outlet, ion-nav, #ion-view-container-root');\n if (!viewContainer) {\n return;\n }\n if (hidden) {\n viewContainer.setAttribute('aria-hidden', 'true');\n }\n else {\n viewContainer.removeAttribute('aria-hidden');\n }\n};\nexport const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation, opts) => {\n var _a, _b;\n if (overlay.presented) {\n return;\n }\n setRootAriaHidden(true);\n hideOverlaysFromScreenReaders(overlay.el);\n overlay.presented = true;\n overlay.willPresent.emit();\n (_a = overlay.willPresentShorthand) === null || _a === void 0 ? void 0 : _a.emit();\n const mode = getIonMode(overlay);\n // get the user's animation fn if one was provided\n const animationBuilder = overlay.enterAnimation\n ? overlay.enterAnimation\n : config.get(name, mode === 'ios' ? iosEnterAnimation : mdEnterAnimation);\n const completed = await overlayAnimation(overlay, animationBuilder, overlay.el, opts);\n if (completed) {\n overlay.didPresent.emit();\n (_b = overlay.didPresentShorthand) === null || _b === void 0 ? void 0 : _b.emit();\n }\n /**\n * When an overlay that steals focus\n * is dismissed, focus should be returned\n * to the element that was focused\n * prior to the overlay opening. Toast\n * does not steal focus and is excluded\n * from returning focus as a result.\n */\n if (overlay.el.tagName !== 'ION-TOAST') {\n restoreElementFocus(overlay.el);\n }\n /**\n * If the focused element is already\n * inside the overlay component then\n * focus should not be moved from that\n * to the overlay container.\n */\n if (overlay.keyboardClose && (document.activeElement === null || !overlay.el.contains(document.activeElement))) {\n overlay.el.focus();\n }\n /**\n * If this overlay was previously dismissed without being\n * the topmost one (such as by manually calling dismiss()),\n * it would still have aria-hidden on being presented again.\n * Removing it here ensures the overlay is visible to screen\n * readers.\n */\n overlay.el.removeAttribute('aria-hidden');\n};\n/**\n * When an overlay component is dismissed,\n * focus should be returned to the element\n * that presented the overlay. Otherwise\n * focus will be set on the body which\n * means that people using screen readers\n * or tabbing will need to re-navigate\n * to where they were before they\n * opened the overlay.\n */\nconst restoreElementFocus = async (overlayEl) => {\n let previousElement = document.activeElement;\n if (!previousElement) {\n return;\n }\n const shadowRoot = previousElement === null || previousElement === void 0 ? void 0 : previousElement.shadowRoot;\n if (shadowRoot) {\n // If there are no inner focusable elements, just focus the host element.\n previousElement = shadowRoot.querySelector(focusableQueryString) || previousElement;\n }\n await overlayEl.onDidDismiss();\n /**\n * After onDidDismiss, the overlay loses focus\n * because it is removed from the document\n *\n * > An element will also lose focus [...]\n * > if the element is removed from the document)\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event\n *\n * Additionally, `document.activeElement` returns:\n *\n * > The Element which currently has focus,\n * > `<body>` or null if there is\n * > no focused element.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/Document/activeElement#value\n *\n * However, if the user has already focused\n * an element sometime between onWillDismiss\n * and onDidDismiss (for example, focusing a\n * text box after tapping a button in an\n * action sheet) then don't restore focus to\n * previous element\n */\n if (document.activeElement === null || document.activeElement === document.body) {\n previousElement.focus();\n }\n};\nexport const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnimation, opts) => {\n var _a, _b;\n if (!overlay.presented) {\n return false;\n }\n /**\n * If this is the last visible overlay then\n * we want to re-add the root to the accessibility tree.\n */\n if (doc !== undefined && getPresentedOverlays(doc).length === 1) {\n setRootAriaHidden(false);\n }\n overlay.presented = false;\n try {\n // Overlay contents should not be clickable during dismiss\n overlay.el.style.setProperty('pointer-events', 'none');\n overlay.willDismiss.emit({ data, role });\n (_a = overlay.willDismissShorthand) === null || _a === void 0 ? void 0 : _a.emit({ data, role });\n const mode = getIonMode(overlay);\n const animationBuilder = overlay.leaveAnimation\n ? overlay.leaveAnimation\n : config.get(name, mode === 'ios' ? iosLeaveAnimation : mdLeaveAnimation);\n // If dismissed via gesture, no need to play leaving animation again\n if (role !== GESTURE) {\n await overlayAnimation(overlay, animationBuilder, overlay.el, opts);\n }\n overlay.didDismiss.emit({ data, role });\n (_b = overlay.didDismissShorthand) === null || _b === void 0 ? void 0 : _b.emit({ data, role });\n // Get a reference to all animations currently assigned to this overlay\n // Then tear them down to return the overlay to its initial visual state\n const animations = activeAnimations.get(overlay) || [];\n animations.forEach((ani) => ani.destroy());\n activeAnimations.delete(overlay);\n /**\n * Make overlay hidden again in case it is being reused.\n * We can safely remove pointer-events: none as\n * overlay-hidden will set display: none.\n */\n overlay.el.classList.add('overlay-hidden');\n overlay.el.style.removeProperty('pointer-events');\n /**\n * Clear any focus trapping references\n * when the overlay is dismissed.\n */\n if (overlay.el.lastFocus !== undefined) {\n overlay.el.lastFocus = undefined;\n }\n }\n catch (err) {\n console.error(err);\n }\n overlay.el.remove();\n revealOverlaysToScreenReaders();\n return true;\n};\nconst getAppRoot = (doc) => {\n return doc.querySelector('ion-app') || doc.body;\n};\nconst overlayAnimation = async (overlay, animationBuilder, baseEl, opts) => {\n // Make overlay visible in case it's hidden\n baseEl.classList.remove('overlay-hidden');\n const aniRoot = overlay.el;\n const animation = animationBuilder(aniRoot, opts);\n if (!overlay.animated || !config.getBoolean('animated', true)) {\n animation.duration(0);\n }\n if (overlay.keyboardClose) {\n animation.beforeAddWrite(() => {\n const activeElement = baseEl.ownerDocument.activeElement;\n if (activeElement === null || activeElement === void 0 ? void 0 : activeElement.matches('input,ion-input, ion-textarea')) {\n activeElement.blur();\n }\n });\n }\n const activeAni = activeAnimations.get(overlay) || [];\n activeAnimations.set(overlay, [...activeAni, animation]);\n await animation.play();\n return true;\n};\nexport const eventMethod = (element, eventName) => {\n let resolve;\n const promise = new Promise((r) => (resolve = r));\n onceEvent(element, eventName, (event) => {\n resolve(event.detail);\n });\n return promise;\n};\nexport const onceEvent = (element, eventName, callback) => {\n const handler = (ev) => {\n removeEventListener(element, eventName, handler);\n callback(ev);\n };\n addEventListener(element, eventName, handler);\n};\nexport const isCancel = (role) => {\n return role === 'cancel' || role === BACKDROP;\n};\nconst defaultGate = (h) => h();\n/**\n * Calls a developer provided method while avoiding\n * Angular Zones. Since the handler is provided by\n * the developer, we should throw any errors\n * received so that developer-provided bug\n * tracking software can log it.\n */\nexport const safeCall = (handler, arg) => {\n if (typeof handler === 'function') {\n const jmp = config.get('_zoneGate', defaultGate);\n return jmp(() => {\n try {\n return handler(arg);\n }\n catch (e) {\n throw e;\n }\n });\n }\n return undefined;\n};\nexport const BACKDROP = 'backdrop';\nexport const GESTURE = 'gesture';\nexport const OVERLAY_GESTURE_PRIORITY = 39;\n/**\n * Creates a delegate controller.\n *\n * Requires that the component has the following properties:\n * - `el: HTMLElement`\n * - `hasController: boolean`\n * - `delegate?: FrameworkDelegate`\n *\n * @param ref The component class instance.\n */\nexport const createDelegateController = (ref) => {\n let inline = false;\n let workingDelegate;\n const coreDelegate = CoreDelegate();\n /**\n * Determines whether or not an overlay is being used\n * inline or via a controller/JS and returns the correct delegate.\n * By default, subsequent calls to getDelegate will use\n * a cached version of the delegate.\n * This is useful for calling dismiss after present,\n * so that the correct delegate is given.\n * @param force `true` to force the non-cached version of the delegate.\n * @returns The delegate to use and whether or not the overlay is inline.\n */\n const getDelegate = (force = false) => {\n if (workingDelegate && !force) {\n return {\n delegate: workingDelegate,\n inline,\n };\n }\n const { el, hasController, delegate } = ref;\n /**\n * If using overlay inline\n * we potentially need to use the coreDelegate\n * so that this works in vanilla JS apps.\n * If a developer has presented this component\n * via a controller, then we can assume\n * the component is already in the\n * correct place.\n */\n const parentEl = el.parentNode;\n inline = parentEl !== null && !hasController;\n workingDelegate = inline ? delegate || coreDelegate : delegate;\n return { inline, delegate: workingDelegate };\n };\n /**\n * Attaches a component in the DOM. Teleports the component\n * to the root of the app.\n * @param component The component to optionally construct and append to the element.\n */\n const attachViewToDom = async (component) => {\n const { delegate } = getDelegate(true);\n if (delegate) {\n return await delegate.attachViewToDom(ref.el, component);\n }\n const { hasController } = ref;\n if (hasController && component !== undefined) {\n throw new Error('framework delegate is missing');\n }\n return null;\n };\n /**\n * Moves a component back to its original location in the DOM.\n */\n const removeViewFromDom = () => {\n const { delegate } = getDelegate();\n if (delegate && ref.el !== undefined) {\n delegate.removeViewFromDom(ref.el.parentElement, ref.el);\n }\n };\n return {\n attachViewToDom,\n removeViewFromDom,\n };\n};\n/**\n * Constructs a trigger interaction for an overlay.\n * Presents an overlay when the trigger is clicked.\n *\n * Usage:\n * ```ts\n * triggerController = createTriggerController();\n * triggerController.addClickListener(el, trigger);\n * ```\n */\nexport const createTriggerController = () => {\n let destroyTriggerInteraction;\n /**\n * Removes the click listener from the trigger element.\n */\n const removeClickListener = () => {\n if (destroyTriggerInteraction) {\n destroyTriggerInteraction();\n destroyTriggerInteraction = undefined;\n }\n };\n /**\n * Adds a click listener to the trigger element.\n * Presents the overlay when the trigger is clicked.\n * @param el The overlay element.\n * @param trigger The ID of the element to add a click listener to.\n */\n const addClickListener = (el, trigger) => {\n removeClickListener();\n const triggerEl = trigger !== undefined ? document.getElementById(trigger) : null;\n if (!triggerEl) {\n printIonWarning(`A trigger element with the ID \"${trigger}\" was not found in the DOM. The trigger element must be in the DOM when the \"trigger\" property is set on an overlay component.`, el);\n return;\n }\n const configureTriggerInteraction = (targetEl, overlayEl) => {\n const openOverlay = () => {\n overlayEl.present();\n };\n targetEl.addEventListener('click', openOverlay);\n return () => {\n targetEl.removeEventListener('click', openOverlay);\n };\n };\n destroyTriggerInteraction = configureTriggerInteraction(triggerEl, el);\n };\n return {\n addClickListener,\n removeClickListener,\n };\n};\n/**\n * Ensure that underlying overlays have aria-hidden if necessary so that screen readers\n * cannot move focus to these elements. Note that we cannot rely on focus/focusin/focusout\n * events here because those events do not fire when the screen readers moves to a non-focusable\n * element such as text.\n * Without this logic screen readers would be able to move focus outside of the top focus-trapped overlay.\n *\n * @param newTopMostOverlay - The overlay that is being presented. Since the overlay has not been\n * fully presented yet at the time this function is called it will not be included in the getPresentedOverlays result.\n */\nconst hideOverlaysFromScreenReaders = (newTopMostOverlay) => {\n var _a;\n if (doc === undefined)\n return;\n const overlays = getPresentedOverlays(doc);\n for (let i = overlays.length - 1; i >= 0; i--) {\n const presentedOverlay = overlays[i];\n const nextPresentedOverlay = (_a = overlays[i + 1]) !== null && _a !== void 0 ? _a : newTopMostOverlay;\n /**\n * If next overlay has aria-hidden then all remaining overlays will have it too.\n * Or, if the next overlay is a Toast that does not have aria-hidden then current overlay\n * should not have aria-hidden either so focus can remain in the current overlay.\n */\n if (nextPresentedOverlay.hasAttribute('aria-hidden') || nextPresentedOverlay.tagName !== 'ION-TOAST') {\n presentedOverlay.setAttribute('aria-hidden', 'true');\n }\n }\n};\n/**\n * When dismissing an overlay we need to reveal the new top-most overlay to screen readers.\n * If the top-most overlay is a Toast we potentially need to reveal more overlays since\n * focus is never automatically moved to the Toast.\n */\nconst revealOverlaysToScreenReaders = () => {\n if (doc === undefined)\n return;\n const overlays = getPresentedOverlays(doc);\n for (let i = overlays.length - 1; i >= 0; i--) {\n const currentOverlay = overlays[i];\n /**\n * If the current we are looking at is a Toast then we can remove aria-hidden.\n * However, we potentially need to keep looking at the overlay stack because there\n * could be more Toasts underneath. Additionally, we need to unhide the closest non-Toast\n * overlay too so focus can move there since focus is never automatically moved to the Toast.\n */\n currentOverlay.removeAttribute('aria-hidden');\n /**\n * If we found a non-Toast element then we can just remove aria-hidden and stop searching entirely\n * since this overlay should always receive focus. As a result, all underlying overlays should still\n * be hidden from screen readers.\n */\n if (currentOverlay.tagName !== 'ION-TOAST') {\n break;\n }\n }\n};\n"],"version":3}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-4fdc2561.js';
|
|
2
2
|
|
|
3
|
-
const posAppGenericCss = ":host {\n --gap-size: var(--size-1);\n display: flex;\n flex-direction: column;\n gap: var(--gap-size);\n margin: var(--gap-size);\n}\n\narticle {\n outline: var(--pos-border-solid);\n border-radius: var(--radius-sm);\n box-shadow: var(--shadow-md);\n\n header {\n display: flex;\n flex-direction: column;\n\n pos-picture {\n --object-fit: contain;\n --width: 100%;\n --height: auto;\n --max-height: 300px;\n border-radius: var(--radius-sm) var(--radius-sm) 0 0;\n --border-radius: var(--radius-sm) var(--radius-sm) 0 0;\n }\n\n h1,\n pos-type-badges {\n margin: var(--size-2);\n }\n }\n\n main {\n padding: var(--size-2);\n\n pos-description {\n color: var(--
|
|
3
|
+
const posAppGenericCss = ":host {\n --gap-size: var(--size-1);\n display: flex;\n flex-direction: column;\n gap: var(--gap-size);\n margin: var(--gap-size);\n}\n\narticle {\n outline: var(--pos-border-solid);\n border-radius: var(--radius-sm);\n box-shadow: var(--shadow-md);\n background-color: var(--pos-card-background);\n\n header {\n display: flex;\n flex-direction: column;\n\n pos-picture {\n --object-fit: contain;\n --width: 100%;\n --height: auto;\n --max-height: 300px;\n border-radius: var(--radius-sm) var(--radius-sm) 0 0;\n --border-radius: var(--radius-sm) var(--radius-sm) 0 0;\n }\n\n h1,\n pos-type-badges {\n margin: var(--size-2);\n }\n }\n\n main {\n padding: var(--size-2);\n\n pos-description {\n color: var(--pos-secondary-text-color);\n font-weight: var(--weight-light);\n }\n }\n}\n\n@media (min-width: 640px) {\n :host {\n flex-direction: row;\n flex-wrap: wrap;\n\n section:first-of-type {\n flex: 0 0 25%;\n }\n\n section:not(:first-of-type) {\n flex: 1;\n }\n }\n}\n";
|
|
4
4
|
const PosAppGenericStyle0 = posAppGenericCss;
|
|
5
5
|
|
|
6
6
|
const PosAppGeneric = class {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"pos-app-generic.entry.js","mappings":";;AAAA,MAAM,gBAAgB,GAAG,
|
|
1
|
+
{"file":"pos-app-generic.entry.js","mappings":";;AAAA,MAAM,gBAAgB,GAAG,mkCAAmkC,CAAC;AAC7lC,4BAAe,gBAAgB;;MCMlB,aAAa;;;;IACxB,MAAM;QACJ,QACE,EAAC,IAAI,uDACH,kEACE,mFAAyB,aAAa,IACpC,iEACE,oEAAa,iBAAiB,EAAE,IAAI,GAAI,EACxC,2DAAI,EAAE,EAAC,aAAa,IAClB,mEAAa,CACV,EACL,yEAAmB,CACZ,EACT,+DACE,yEAAmB,CACd,CACC,CACF,EACV,kEACE,sEAAgB,CACR,EACV,kEACE,uEAAiB,EACjB,+EAAyB,CACjB,CACL,EACP;KACH;;;;;;","names":[],"sources":["src/apps/pos-app-generic/pos-app-generic.css?tag=pos-app-generic&encapsulation=shadow","src/apps/pos-app-generic/pos-app-generic.tsx"],"sourcesContent":[":host {\n --gap-size: var(--size-1);\n display: flex;\n flex-direction: column;\n gap: var(--gap-size);\n margin: var(--gap-size);\n}\n\narticle {\n outline: var(--pos-border-solid);\n border-radius: var(--radius-sm);\n box-shadow: var(--shadow-md);\n background-color: var(--pos-card-background);\n\n header {\n display: flex;\n flex-direction: column;\n\n pos-picture {\n --object-fit: contain;\n --width: 100%;\n --height: auto;\n --max-height: 300px;\n border-radius: var(--radius-sm) var(--radius-sm) 0 0;\n --border-radius: var(--radius-sm) var(--radius-sm) 0 0;\n }\n\n h1,\n pos-type-badges {\n margin: var(--size-2);\n }\n }\n\n main {\n padding: var(--size-2);\n\n pos-description {\n color: var(--pos-secondary-text-color);\n font-weight: var(--weight-light);\n }\n }\n}\n\n@media (min-width: 640px) {\n :host {\n flex-direction: row;\n flex-wrap: wrap;\n\n section:first-of-type {\n flex: 0 0 25%;\n }\n\n section:not(:first-of-type) {\n flex: 1;\n }\n }\n}\n","import { Component, h, Host } from '@stencil/core';\n\n@Component({\n tag: 'pos-app-generic',\n styleUrls: ['./pos-app-generic.css'],\n shadow: true,\n})\nexport class PosAppGeneric {\n render() {\n return (\n <Host>\n <section>\n <article aria-labelledby=\"thing-title\">\n <header>\n <pos-picture blurredBackground={true} />\n <h1 id=\"thing-title\">\n <pos-label />\n </h1>\n <pos-type-badges />\n </header>\n <main>\n <pos-description />\n </main>\n </article>\n </section>\n <section>\n <pos-literals />\n </section>\n <section>\n <pos-relations />\n <pos-reverse-relations />\n </section>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-4fdc2561.js';
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-4fdc2561.js';
|
|
2
|
+
|
|
3
|
+
const posAppRdfDocumentCss = ":host {\n --gap-size: var(--size-1);\n display: flex;\n flex-direction: column;\n gap: var(--gap-size);\n margin: var(--gap-size);\n}\n\narticle {\n outline: var(--pos-border-solid);\n border-radius: var(--radius-sm);\n box-shadow: var(--shadow-md);\n background-color: var(--pos-card-background);\n\n header {\n display: flex;\n flex-direction: column;\n\n h1,\n pos-type-badges {\n margin: var(--size-2);\n }\n }\n}\n\n@media (min-width: 640px) {\n :host {\n flex-direction: row;\n flex-wrap: wrap;\n\n section:first-of-type {\n flex: 1;\n }\n\n section:not(:first-of-type) {\n flex: 0 0 30%;\n }\n }\n}\n";
|
|
4
|
+
const PosAppRdfDocumentStyle0 = posAppRdfDocumentCss;
|
|
2
5
|
|
|
3
6
|
const PosAppRdfDocument = class {
|
|
4
7
|
constructor(hostRef) {
|
|
5
8
|
registerInstance(this, hostRef);
|
|
6
9
|
}
|
|
7
10
|
render() {
|
|
8
|
-
return (h(
|
|
11
|
+
return (h(Host, { key: 'b209eeeee94d4d4caadd3f71eef05a18857e197f' }, h("section", { key: '58cbf98180072b5d72526edf6dbc2b6e25a992ed' }, h("pos-subjects", { key: '161239375b473091d4f5e2289fb6c463092b1754' })), h("section", { key: '7ac570ed89331f02c53a41ad06f8ee55ccaf91ee' }, h("article", { key: 'dc6846858e34c43aec3686df475f321d4d8cfd40', "aria-labelledby": "doc-title" }, h("header", { key: 'b3ac8e6361a42d73db4227cb815c4b02db463106' }, h("h1", { key: 'cb2adb0b71cd5c48d4d190b1b8655feb5e056284', id: "doc-title" }, h("pos-label", { key: '7b334cc5608520302636ebb4594f38e0211a7f4b' })), h("pos-type-badges", { key: '21335056a5d76258d24d5f5c4123d77c85a8a798' })), h("pos-literals", { key: '843e3be07e42010eef901a721b69c6f1f8356c00' })))));
|
|
9
12
|
}
|
|
10
13
|
};
|
|
14
|
+
PosAppRdfDocument.style = PosAppRdfDocumentStyle0;
|
|
11
15
|
|
|
12
16
|
export { PosAppRdfDocument as pos_app_rdf_document };
|
|
13
17
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"pos-app-rdf-document.entry.js","mappings":";;
|
|
1
|
+
{"file":"pos-app-rdf-document.entry.js","mappings":";;AAAA,MAAM,oBAAoB,GAAG,8pBAA8pB,CAAC;AAC5rB,gCAAe,oBAAoB;;MCMtB,iBAAiB;;;;IAC5B,MAAM;QACJ,QACE,EAAC,IAAI,uDACH,kEACE,sEAAgB,CACR,EACV,kEACE,mFAAyB,WAAW,IAClC,iEACE,2DAAI,EAAE,EAAC,WAAW,IAChB,mEAAa,CACV,EACL,yEAAmB,CACZ,EACT,sEAAgB,CACR,CACF,CACL,EACP;KACH;;;;;;","names":[],"sources":["src/apps/pos-app-rdf-document/pos-app-rdf-document.css?tag=pos-app-rdf-document&encapsulation=shadow","src/apps/pos-app-rdf-document/pos-app-rdf-document.tsx"],"sourcesContent":[":host {\n --gap-size: var(--size-1);\n display: flex;\n flex-direction: column;\n gap: var(--gap-size);\n margin: var(--gap-size);\n}\n\narticle {\n outline: var(--pos-border-solid);\n border-radius: var(--radius-sm);\n box-shadow: var(--shadow-md);\n background-color: var(--pos-card-background);\n\n header {\n display: flex;\n flex-direction: column;\n\n h1,\n pos-type-badges {\n margin: var(--size-2);\n }\n }\n}\n\n@media (min-width: 640px) {\n :host {\n flex-direction: row;\n flex-wrap: wrap;\n\n section:first-of-type {\n flex: 1;\n }\n\n section:not(:first-of-type) {\n flex: 0 0 30%;\n }\n }\n}\n","import { Component, h, Host } from '@stencil/core';\n\n@Component({\n tag: 'pos-app-rdf-document',\n styleUrl: 'pos-app-rdf-document.css',\n shadow: true,\n})\nexport class PosAppRdfDocument {\n render() {\n return (\n <Host>\n <section>\n <pos-subjects />\n </section>\n <section>\n <article aria-labelledby=\"doc-title\">\n <header>\n <h1 id=\"doc-title\">\n <pos-label />\n </h1>\n <pos-type-badges />\n </header>\n <pos-literals />\n </article>\n </section>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"pos-container-contents.entry.js","mappings":";;;;AAAA,MAAM,uBAAuB,GAAG,8DAA8D,CAAC;AAC/F,mCAAe,uBAAuB;;MCQzB,oBAAoB;IALjC;;;QAMW,aAAQ,GAAuB,EAAE,CAAC;QAElC,YAAO,GAAG,IAAI,CAAC;QASxB,oBAAe,GAAG,CAAC,QAAe;YAChC,MAAM,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;YAC1C,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;YACrB,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;SAC7E,CAAC;
|
|
1
|
+
{"file":"pos-container-contents.entry.js","mappings":";;;;AAAA,MAAM,uBAAuB,GAAG,8DAA8D,CAAC;AAC/F,mCAAe,uBAAuB;;MCQzB,oBAAoB;IALjC;;;QAMW,aAAQ,GAAuB,EAAE,CAAC;QAElC,YAAO,GAAG,IAAI,CAAC;QASxB,oBAAe,GAAG,CAAC,QAAe;YAChC,MAAM,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;YAC1C,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;YACrB,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;SAC7E,CAAC;KAaH;IArBC,iBAAiB;QACf,iBAAiB,CAAC,IAAI,CAAC,CAAC;KACzB;IAQD,MAAM;QACJ,IAAI,IAAI,CAAC,OAAO;YAAE,OAAO,IAAI,CAAC;QAC9B,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,KAChC,cACE,oBAAc,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,IACnC,8BAAqB,EAAE,CAAC,IAAI,CAAsB,CACrC,CACZ,CACN,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,GAAG,cAAK,KAAK,CAAM,GAAG,sCAA6B,CAAC;KACpF;;;;;;","names":[],"sources":["src/components/pos-container-contents/pos-container-contents.css?tag=pos-container-contents&encapsulation=shadow","src/components/pos-container-contents/pos-container-contents.tsx"],"sourcesContent":["ul {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n\nli {\n padding: 0;\n margin: 0;\n}\n","import { Thing, ContainerContent, LdpContainer } from '@pod-os/core';\nimport { Component, Event, EventEmitter, h, State } from '@stencil/core';\nimport { ResourceAware, subscribeResource } from '../events/ResourceAware';\n\n@Component({\n tag: 'pos-container-contents',\n shadow: true,\n styleUrl: 'pos-container-contents.css',\n})\nexport class PosContainerContents implements ResourceAware {\n @State() contents: ContainerContent[] = [];\n\n @State() loading = true;\n\n @Event({ eventName: 'pod-os:resource' })\n subscribeResource: EventEmitter;\n\n componentWillLoad() {\n subscribeResource(this);\n }\n\n receiveResource = (resource: Thing) => {\n const doc = resource.assume(LdpContainer);\n this.loading = false;\n this.contents = doc.contains().sort((a, b) => a.name.localeCompare(b.name));\n };\n\n render() {\n if (this.loading) return null;\n const items = this.contents.map(it => (\n <li>\n <pos-resource lazy={true} uri={it.uri}>\n <pos-container-item>{it.name}</pos-container-item>\n </pos-resource>\n </li>\n ));\n return this.contents.length > 0 ? <ul>{items}</ul> : <p>The container is empty</p>;\n }\n}\n"],"version":3}
|
|
@@ -17,6 +17,9 @@ function containsType(types, typeUri) {
|
|
|
17
17
|
return types.some(type => type.uri === typeUri);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
const posContainerItemCss = ":host {\n display: flex;\n}\n\na {\n display: flex;\n text-decoration: none;\n padding: var(--size-4);\n width: var(--size-full);\n gap: var(--size-2);\n color: var(--pos-normal-text-color);\n background-color: var(--pos-background-color);\n &:hover {\n background-color: var(--pos-border-color);\n }\n}\n";
|
|
21
|
+
const PosContainerItemStyle0 = posContainerItemCss;
|
|
22
|
+
|
|
20
23
|
const PosContainerItem = class {
|
|
21
24
|
constructor(hostRef) {
|
|
22
25
|
registerInstance(this, hostRef);
|
|
@@ -33,12 +36,13 @@ const PosContainerItem = class {
|
|
|
33
36
|
if (!this.resource)
|
|
34
37
|
return null;
|
|
35
38
|
const iconName = selectIconForTypes(this.resource.types());
|
|
36
|
-
return (h("
|
|
39
|
+
return (h("a", { href: this.resource.uri, onClick: e => {
|
|
37
40
|
e.preventDefault();
|
|
38
41
|
this.linkEmitter.emit(this.resource.uri);
|
|
39
42
|
} }, h("ion-icon", { name: iconName, slot: "start" }), h("slot", null)));
|
|
40
43
|
}
|
|
41
44
|
};
|
|
45
|
+
PosContainerItem.style = PosContainerItemStyle0;
|
|
42
46
|
|
|
43
47
|
export { PosContainerItem as pos_container_item };
|
|
44
48
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"pos-container-item.entry.js","mappings":";;;SAEgB,kBAAkB,CAAC,KAAgB;IACjD,IAAI,YAAY,CAAC,KAAK,EAAE,oCAAoC,CAAC,EAAE;QAC7D,OAAO,gBAAgB,CAAC;KACzB;SAAM,IAAI,YAAY,CAAC,KAAK,EAAE,mCAAmC,CAAC,EAAE;QACnE,OAAO,kBAAkB,CAAC;KAC3B;SAAM;QACL,OAAO,cAAc,CAAC;KACvB;AACH,CAAC;AAED;AACA,SAAS,YAAY,CAAC,KAAgB,EAAE,OAAe;IACrD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI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components/pos-container-contents/selectIconForTypes.ts","src/components/pos-container-contents/pos-container-item.css?tag=pos-container-item&encapsulation=shadow","src/components/pos-container-contents/pos-container-item.tsx"],"sourcesContent":["import { RdfType } from '@pod-os/core';\n\nexport function selectIconForTypes(types: RdfType[]) {\n if (containsType(types, 'http://www.w3.org/ns/ldp#Container')) {\n return 'folder-outline';\n } else if (containsType(types, 'http://www.w3.org/ns/ldp#Resource')) {\n return 'document-outline';\n } else {\n return 'help-outline';\n }\n}\n\n// TODO: remove duplication with pos-type-router/selectAppForTypes\nfunction containsType(types: RdfType[], typeUri: string) {\n return types.some(type => type.uri === typeUri);\n}\n",":host {\n display: flex;\n}\n\na {\n display: flex;\n text-decoration: none;\n padding: var(--size-4);\n width: var(--size-full);\n gap: var(--size-2);\n color: var(--pos-normal-text-color);\n background-color: var(--pos-background-color);\n &:hover {\n background-color: var(--pos-border-color);\n }\n}\n","import { Thing } from '@pod-os/core';\nimport { Component, Event, EventEmitter, h, State } from '@stencil/core';\nimport { ResourceAware, subscribeResource } from '../events/ResourceAware';\nimport { selectIconForTypes } from './selectIconForTypes';\n\n@Component({\n tag: 'pos-container-item',\n shadow: true,\n styleUrl: 'pos-container-item.css',\n})\nexport class PosContainerItem implements ResourceAware {\n @State() resource: Thing;\n\n @Event({ eventName: 'pod-os:link' }) linkEmitter: EventEmitter;\n\n @Event({ eventName: 'pod-os:resource' })\n subscribeResource: EventEmitter;\n\n componentWillLoad() {\n subscribeResource(this);\n }\n\n receiveResource = (resource: Thing) => {\n this.resource = resource;\n };\n\n render() {\n if (!this.resource) return null;\n const iconName = selectIconForTypes(this.resource.types());\n return (\n <a\n href={this.resource.uri}\n onClick={e => {\n e.preventDefault();\n this.linkEmitter.emit(this.resource.uri);\n }}\n >\n <ion-icon name={iconName} slot=\"start\"></ion-icon>\n <slot></slot>\n </a>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, i as createEvent, h } from './index-4fdc2561.js';
|
|
2
2
|
import { s as store, B as BrokenFile } from './BrokenFile-f46cbf25.js';
|
|
3
3
|
|
|
4
|
-
const posDocumentCss = "iframe{width:100%;height:100vh}.error{display:flex;opacity:0.8;background:repeating-linear-gradient(
|
|
4
|
+
const posDocumentCss = "iframe{background-color:white;width:100%;height:100vh}.error{display:flex;opacity:0.8;background:repeating-linear-gradient(-45deg, rgba(150, 0, 0, 0.1), rgba(150, 0, 0, 0.1) 10px, #fff 5px, #fff 25px);flex-direction:column;border:1px solid red;color:black;align-items:center;justify-content:center;word-break:break-all;padding:1rem;box-sizing:border-box}.error ion-icon{color:#282828;--ionicon-stroke-width:calc(var(--width) / 5);font-size:calc(var(--width) / 2)}a{text-decoration:none;width:var(--width);height:var(--height)}.code{font-weight:bold;font-size:calc(var(--width) / 8)}.text{font-size:calc(var(--width) / 20)}";
|
|
5
5
|
const PosDocumentStyle0 = posDocumentCss;
|
|
6
6
|
|
|
7
7
|
const PosDocument = class {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"pos-document.entry.js","mappings":";;;AAAA,MAAM,cAAc,GAAG,
|
|
1
|
+
{"file":"pos-document.entry.js","mappings":";;;AAAA,MAAM,cAAc,GAAG,gnBAAgnB,CAAC;AACxoB,0BAAe,cAAc;;MCShB,WAAW;IALxB;;;;QAsBU,YAAO,GAAY,IAAI,CAAC;QAchC,UAAK,GAAG,OAAO,EAAS;YACtB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;SACd,CAAC;KAkCH;IAzCC,iBAAiB;QACfA,KAAO,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;QACvD,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC3C;IAQD,MAAM,SAAS;QACb,IAAI;YACF,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;YACpB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAC/C,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAC1C,IAAI,IAAI,CAAC,IAAI,EAAE,EAAE;gBACf,IAAI,CAAC,OAAO,GAAG,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;gBAChD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;aACnB;iBAAM;gBACL,IAAI,CAAC,UAAU,GAAG,IAAsB,CAAC;aAC1C;SACF;QAAC,OAAO,GAAG,EAAE;YACZ,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;SAClB;gBAAS;YACR,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;SACtB;KACF;IAED,MAAM;QACJ,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,OAAO,yBAAmB,QAAQ,EAAE,IAAI,GAAsB,CAAC;SAChE;QACD,IAAI,IAAI,CAAC,KAAK,EAAE;YACd,OAAO,WAAK,KAAK,EAAC,OAAO,IAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAO,CAAC;SACtD;QACD,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,OAAO,EAAC,UAAU,IAAC,IAAI,EAAE,IAAI,CAAC,UAAU,GAAI,CAAC;SAC9C;QACD,OAAO,cAAQ,GAAG,EAAE,IAAI,CAAC,OAAO,GAAW,CAAC;KAC7C;;;;;;;;;;","names":["session"],"sources":["src/components/pos-document/pos-document.css?tag=pos-document&encapsulation=shadow","src/components/pos-document/pos-document.tsx"],"sourcesContent":["iframe {\n background-color: white;\n width: 100%;\n height: 100vh;\n}\n\n/* consolidate with styles from pos-image */\n.error {\n display: flex;\n opacity: 0.8;\n background: repeating-linear-gradient(-45deg, rgba(150, 0, 0, 0.1), rgba(150, 0, 0, 0.1) 10px, #fff 5px, #fff 25px);\n flex-direction: column;\n border: 1px solid red;\n color: black;\n align-items: center;\n justify-content: center;\n word-break: break-all;\n padding: 1rem;\n box-sizing: border-box;\n}\n\n.error ion-icon {\n color: #282828;\n --ionicon-stroke-width: calc(var(--width) / 5);\n font-size: calc(var(--width) / 2);\n}\n\na {\n text-decoration: none;\n width: var(--width);\n height: var(--height);\n}\n\n.code {\n font-weight: bold;\n font-size: calc(var(--width) / 8);\n}\n\n.text {\n font-size: calc(var(--width) / 20);\n}\n","import { PodOS, BrokenFile as BrokenFileData } from '@pod-os/core';\nimport { Component, Event, EventEmitter, h, Prop, State, Watch } from '@stencil/core';\nimport session from '../../store/session';\nimport { BrokenFile } from '../broken-file/BrokenFile';\n\n@Component({\n tag: 'pos-document',\n styleUrl: 'pos-document.css',\n shadow: true,\n})\nexport class PosDocument {\n @Prop() src: string;\n\n @Prop() alt: string;\n\n @State() os: PodOS;\n\n @State()\n private dataUri: string;\n\n @State()\n private brokenFile: BrokenFileData;\n\n @State()\n private error: Error;\n\n @State()\n private loading: boolean = true;\n\n @Event({ eventName: 'pod-os:init' }) initializeOsEmitter: EventEmitter;\n\n /**\n * Indicates that the resource given in `src` property has been loaded.\n */\n @Event({ eventName: 'pod-os:resource-loaded' }) resourceLoadedEmitter: EventEmitter<string>;\n\n componentWillLoad() {\n session.onChange('isLoggedIn', () => this.fetchBlob());\n this.initializeOsEmitter.emit(this.setOs);\n }\n\n setOs = async (os: PodOS) => {\n this.os = os;\n };\n\n @Watch('os')\n @Watch('src')\n async fetchBlob() {\n try {\n this.loading = true;\n const file = await this.os.fetchFile(this.src);\n this.resourceLoadedEmitter.emit(this.src);\n if (file.blob()) {\n this.dataUri = URL.createObjectURL(file.blob());\n this.error = null;\n } else {\n this.brokenFile = file as BrokenFileData;\n }\n } catch (err) {\n this.error = err;\n } finally {\n this.loading = false;\n }\n }\n\n render() {\n if (this.loading) {\n return <ion-skeleton-text animated={true}></ion-skeleton-text>;\n }\n if (this.error) {\n return <div class=\"error\">{this.error.message}</div>;\n }\n if (this.brokenFile) {\n return <BrokenFile file={this.brokenFile} />;\n }\n return <iframe src={this.dataUri}></iframe>;\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-4fdc2561.js';
|
|
2
|
+
|
|
3
|
+
const posPredicateCss = ":host{--text-color:var(--pos-primary-color);font-family:var(--font-sans)}button{line-height:var(--scale-0);font-family:inherit;margin:0;padding:0;display:flex;background:none;border:none;cursor:pointer}button,a{color:var(--text-color);font-weight:var(--weight-light);line-height:var(--scale-0);font-size:var(--scale-0);font-family:inherit}.container{display:flex;gap:var(--size-1);flex-direction:row;align-items:center;line-height:var(--scale-0)}";
|
|
4
|
+
const PosPredicateStyle0 = posPredicateCss;
|
|
5
|
+
|
|
6
|
+
const PosPredicate = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.expanded = false;
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
if (this.expanded) {
|
|
13
|
+
return (h("div", { class: "container" }, h("a", { href: this.uri }, this.uri), h("button", { "aria-label": `collapse URI to ${this.label}`, onClick: () => (this.expanded = false) }, h("ion-icon", { name: "chevron-back-circle-outline" }))));
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
return (h("button", { onClick: () => (this.expanded = true), title: this.uri }, this.label));
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
PosPredicate.style = PosPredicateStyle0;
|
|
21
|
+
|
|
22
|
+
export { PosPredicate as pos_predicate };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=pos-predicate.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"pos-predicate.entry.js","mappings":";;AAAA,MAAM,eAAe,GAAG,gcAAgc,CAAC;AACzd,2BAAe,eAAe;;MCMjB,YAAY;IALzB;;QAaE,aAAQ,GAAY,KAAK,CAAC;KAoB3B;IAlBC,MAAM;QACJ,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,QACE,WAAK,KAAK,EAAC,WAAW,IACpB,SAAG,IAAI,EAAE,IAAI,CAAC,GAAG,IAAG,IAAI,CAAC,GAAG,CAAK,EACjC,4BAAoB,mBAAmB,IAAI,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,IACzF,gBAAU,IAAI,EAAC,6BAA6B,GAAY,CACjD,CACL,EACN;SACH;aAAM;YACL,QACE,cAAQ,OAAO,EAAE,OAAO,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,GAAG,IAC3D,IAAI,CAAC,KAAK,CACJ,EACT;SACH;KACF;;;;;;","names":[],"sources":["src/components/pos-predicate/pos-predicate.css?tag=pos-predicate&encapsulation=shadow","src/components/pos-predicate/pos-predicate.tsx"],"sourcesContent":[":host {\n --text-color: var(--pos-primary-color);\n font-family: var(--font-sans);\n}\n\nbutton {\n line-height: var(--scale-0);\n font-family: inherit;\n margin: 0;\n padding: 0;\n display: flex;\n background: none;\n border: none;\n cursor: pointer;\n}\n\nbutton,\na {\n color: var(--text-color);\n font-weight: var(--weight-light);\n line-height: var(--scale-0);\n font-size: var(--scale-0);\n font-family: inherit;\n}\n\n.container {\n display: flex;\n gap: var(--size-1);\n flex-direction: row;\n align-items: center;\n line-height: var(--scale-0);\n}\n","import { Component, h, Prop, State } from '@stencil/core';\n\n@Component({\n tag: 'pos-predicate',\n shadow: true,\n styleUrl: './pos-predicate.css',\n})\nexport class PosPredicate {\n @Prop()\n uri: string;\n\n @Prop()\n label: string;\n\n @State()\n expanded: boolean = false;\n\n render() {\n if (this.expanded) {\n return (\n <div class=\"container\">\n <a href={this.uri}>{this.uri}</a>\n <button aria-label={`collapse URI to ${this.label}`} onClick={() => (this.expanded = false)}>\n <ion-icon name=\"chevron-back-circle-outline\"></ion-icon>\n </button>\n </div>\n );\n } else {\n return (\n <button onClick={() => (this.expanded = true)} title={this.uri}>\n {this.label}\n </button>\n );\n }\n }\n}\n"],"version":3}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, i as createEvent, h } from './index-4fdc2561.js';
|
|
2
2
|
import { s as subscribeResource } from './ResourceAware-5f237305.js';
|
|
3
3
|
|
|
4
|
-
const posRelationsCss = ":host {\n --background-base-color: var(--color-grey-
|
|
4
|
+
const posRelationsCss = ":host {\n --background-base-color: color-mix(in srgb, var(--pos-background-color), var(--color-grey-800) 10%);\n --background-color-even: hsl(from var(--background-base-color) h s calc(l + 7));\n --background-color-odd: hsl(from var(--background-base-color) h s calc(l + 10));\n --border-color: var(--background-base-color);\n}\n\ndd {\n padding: 0;\n margin: 0;\n}\n\ndl {\n display: flex;\n flex-direction: column;\n gap: var(--size-1);\n padding: 0;\n margin: 0;\n}\n\ndt {\n margin-bottom: var(--size-1);\n}\n\n.predicate-values:nth-child(odd) {\n background-color: var(--background-color-odd);\n}\n\n.predicate-values:nth-child(even) {\n background-color: var(--background-color-even);\n}\n\n.predicate-values {\n display: flex;\n flex-direction: column;\n border: var(--size-px) solid var(--border-color);\n padding: var(--size-2);\n gap: var(--size-1);\n\n .values {\n display: flex;\n flex-direction: column;\n gap: var(--size-3);\n }\n}\n\npos-rich-link {\n --background-color: inherit;\n}\n";
|
|
5
5
|
const PosRelationsStyle0 = posRelationsCss;
|
|
6
6
|
|
|
7
7
|
const PosRelations = class {
|
|
@@ -23,7 +23,7 @@ const PosRelations = class {
|
|
|
23
23
|
};
|
|
24
24
|
PosRelations.style = PosRelationsStyle0;
|
|
25
25
|
|
|
26
|
-
const posReverseRelationsCss = ":host {\n --background-base-color: var(--color-grey-
|
|
26
|
+
const posReverseRelationsCss = ":host {\n --background-base-color: color-mix(in srgb, var(--pos-background-color), var(--color-grey-800) 10%);\n --background-color-even: hsl(from var(--background-base-color) h s calc(l + 7));\n --background-color-odd: hsl(from var(--background-base-color) h s calc(l + 10));\n --border-color: var(--background-base-color);\n}\n\ndd {\n padding: 0;\n margin: 0;\n}\n\ndl {\n display: flex;\n flex-direction: column;\n gap: var(--size-1);\n padding: 0;\n margin: 0;\n}\n\ndt {\n margin-bottom: var(--size-1);\n}\n\n.predicate-values:nth-child(odd) {\n background-color: var(--background-color-odd);\n}\n\n.predicate-values:nth-child(even) {\n background-color: var(--background-color-even);\n}\n\n.predicate-values {\n display: flex;\n flex-direction: column;\n border: var(--size-px) solid var(--border-color);\n padding: var(--size-2);\n gap: var(--size-1);\n .values {\n display: flex;\n flex-direction: column;\n gap: var(--size-3);\n }\n}\n\npos-rich-link {\n --background-color: inherit;\n}\n";
|
|
27
27
|
const PosReverseRelationsStyle0 = posReverseRelationsCss;
|
|
28
28
|
|
|
29
29
|
const PosReverseRelations = class {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"pos-relations.pos-reverse-relations.entry.js","mappings":";;;AAAA,MAAM,eAAe,GAAG,
|
|
1
|
+
{"file":"pos-relations.pos-reverse-relations.entry.js","mappings":";;;AAAA,MAAM,eAAe,GAAG,ygCAAygC,CAAC;AACliC,2BAAe,eAAe;;MCQjB,YAAY;IALzB;;;QAMW,SAAI,GAAe,EAAE,CAAC;QAS/B,oBAAe,GAAG,CAAC,QAAe;YAChC,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC,SAAS,EAAE,CAAC;SAClC,CAAC;KAmBH;IAzBC,iBAAiB;QACf,iBAAiB,CAAC,IAAI,CAAC,CAAC;KACzB;IAMD,MAAM;QACJ,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,KAC5B,WAAK,KAAK,EAAC,kBAAkB,IAC3B,cACE,qBAAe,GAAG,EAAE,EAAE,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,GAAI,CAClD,EACL,WAAK,KAAK,EAAC,QAAQ,IAChB,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,KACd,cACE,qBAAe,GAAG,EAAE,GAAG,GAAI,CACxB,CACN,CAAC,CACE,CACF,CACP,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,cAAK,KAAK,CAAM,GAAG,IAAI,CAAC;KACvD;;;;ACvCH,MAAM,sBAAsB,GAAG,ugCAAugC,CAAC;AACviC,kCAAe,sBAAsB;;MCQxB,mBAAmB;IALhC;;;QAMW,SAAI,GAAe,EAAE,CAAC;QAQ/B,oBAAe,GAAG,CAAC,QAAe;YAChC,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC,gBAAgB,EAAE,CAAC;SACzC,CAAC;KAmBH;IAzBC,iBAAiB;QACf,iBAAiB,CAAC,IAAI,CAAC,CAAC;KACzB;IAMD,MAAM;QACJ,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,KAC5B,WAAK,KAAK,EAAC,kBAAkB,IAC3B,cACE,qBAAe,GAAG,EAAE,EAAE,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,KAAK,KAAK,GAAI,CAC7D,EACL,WAAK,KAAK,EAAC,QAAQ,IAChB,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,KACd,cACE,qBAAe,GAAG,EAAE,GAAG,GAAI,CACxB,CACN,CAAC,CACE,CACF,CACP,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,cAAK,KAAK,CAAM,GAAG,IAAI,CAAC;KACvD;;;;;;","names":[],"sources":["src/components/pos-relations/pos-relations.css?tag=pos-relations&encapsulation=shadow","src/components/pos-relations/pos-relations.tsx","src/components/pos-reverse-relations/pos-reverse-relations.css?tag=pos-reverse-relations&encapsulation=shadow","src/components/pos-reverse-relations/pos-reverse-relations.tsx"],"sourcesContent":[":host {\n --background-base-color: color-mix(in srgb, var(--pos-background-color), var(--color-grey-800) 10%);\n --background-color-even: hsl(from var(--background-base-color) h s calc(l + 7));\n --background-color-odd: hsl(from var(--background-base-color) h s calc(l + 10));\n --border-color: var(--background-base-color);\n}\n\ndd {\n padding: 0;\n margin: 0;\n}\n\ndl {\n display: flex;\n flex-direction: column;\n gap: var(--size-1);\n padding: 0;\n margin: 0;\n}\n\ndt {\n margin-bottom: var(--size-1);\n}\n\n.predicate-values:nth-child(odd) {\n background-color: var(--background-color-odd);\n}\n\n.predicate-values:nth-child(even) {\n background-color: var(--background-color-even);\n}\n\n.predicate-values {\n display: flex;\n flex-direction: column;\n border: var(--size-px) solid var(--border-color);\n padding: var(--size-2);\n gap: var(--size-1);\n\n .values {\n display: flex;\n flex-direction: column;\n gap: var(--size-3);\n }\n}\n\npos-rich-link {\n --background-color: inherit;\n}\n","import { Relation, Thing } from '@pod-os/core';\nimport { Component, Event, EventEmitter, h, State } from '@stencil/core';\nimport { ResourceAware, subscribeResource } from '../events/ResourceAware';\n\n@Component({\n tag: 'pos-relations',\n shadow: true,\n styleUrl: 'pos-relations.css',\n})\nexport class PosRelations implements ResourceAware {\n @State() data: Relation[] = [];\n\n @Event({ eventName: 'pod-os:resource' })\n subscribeResource: EventEmitter;\n\n componentWillLoad() {\n subscribeResource(this);\n }\n\n receiveResource = (resource: Thing) => {\n this.data = resource.relations();\n };\n\n render() {\n const items = this.data.map(it => (\n <div class=\"predicate-values\">\n <dt>\n <pos-predicate uri={it.predicate} label={it.label} />\n </dt>\n <div class=\"values\">\n {it.uris.map(uri => (\n <dd>\n <pos-rich-link uri={uri} />\n </dd>\n ))}\n </div>\n </div>\n ));\n return this.data.length > 0 ? <dl>{items}</dl> : null;\n }\n}\n",":host {\n --background-base-color: color-mix(in srgb, var(--pos-background-color), var(--color-grey-800) 10%);\n --background-color-even: hsl(from var(--background-base-color) h s calc(l + 7));\n --background-color-odd: hsl(from var(--background-base-color) h s calc(l + 10));\n --border-color: var(--background-base-color);\n}\n\ndd {\n padding: 0;\n margin: 0;\n}\n\ndl {\n display: flex;\n flex-direction: column;\n gap: var(--size-1);\n padding: 0;\n margin: 0;\n}\n\ndt {\n margin-bottom: var(--size-1);\n}\n\n.predicate-values:nth-child(odd) {\n background-color: var(--background-color-odd);\n}\n\n.predicate-values:nth-child(even) {\n background-color: var(--background-color-even);\n}\n\n.predicate-values {\n display: flex;\n flex-direction: column;\n border: var(--size-px) solid var(--border-color);\n padding: var(--size-2);\n gap: var(--size-1);\n .values {\n display: flex;\n flex-direction: column;\n gap: var(--size-3);\n }\n}\n\npos-rich-link {\n --background-color: inherit;\n}\n","import { Relation, Thing } from '@pod-os/core';\nimport { Component, h, Event, EventEmitter, State } from '@stencil/core';\nimport { ResourceAware, subscribeResource } from '../events/ResourceAware';\n\n@Component({\n tag: 'pos-reverse-relations',\n shadow: true,\n styleUrl: 'pos-reverse-relations.css',\n})\nexport class PosReverseRelations implements ResourceAware {\n @State() data: Relation[] = [];\n\n @Event({ eventName: 'pod-os:resource' }) subscribeResource: EventEmitter;\n\n componentWillLoad() {\n subscribeResource(this);\n }\n\n receiveResource = (resource: Thing) => {\n this.data = resource.reverseRelations();\n };\n\n render() {\n const items = this.data.map(it => (\n <div class=\"predicate-values\">\n <dt>\n <pos-predicate uri={it.predicate} label={`is ${it.label} of`} />\n </dt>\n <div class=\"values\">\n {it.uris.map(uri => (\n <dd>\n <pos-rich-link uri={uri} />\n </dd>\n ))}\n </div>\n </div>\n ));\n return this.data.length > 0 ? <dl>{items}</dl> : null;\n }\n}\n"],"version":3}
|