@venite/components 0.16.2 → 0.16.6
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/ion-button_13.cjs.entry.js +1787 -0
- package/dist/cjs/ion-checkbox_3.cjs.entry.js +235 -0
- package/dist/cjs/ion-segment_16.cjs.entry.js +5 -4
- package/dist/cjs/ldf-day-name_5.cjs.entry.js +1 -2
- package/dist/cjs/ldf-editable-add-block-menu.cjs.entry.js +2 -2
- package/dist/cjs/ldf-editable-filter-documents.cjs.entry.js +1 -1
- package/dist/cjs/ldf-editable-lookup_2.cjs.entry.js +3 -3
- package/dist/cjs/ldf-editable-metadata.cjs.entry.js +3 -3
- package/dist/cjs/ldf.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{option-a9f12c93.js → option-1ebd4514.js} +6 -2
- package/dist/cjs/{rubric-85fc7418.js → rubric-662d8baa.js} +44 -5
- package/dist/cjs/{specific-class-acf1bb37.js → specific-class-d80d272a.js} +2 -2
- package/dist/collection/components/liturgical-document/dist/liturgical-document.js +6 -1
- package/dist/collection/components/liturgical-document/liturgical-document.js +21 -1
- package/dist/collection/components/option/dist/option.js +318 -0
- package/dist/collection/components/prayers-and-thanksgivings/dist/prayers-and-thanksgivings.js +258 -0
- package/dist/collection/components/prayers-and-thanksgivings/prayers-and-thanksgivings.js +55 -36
- package/dist/collection/components/psalm/dist/psalm.js +0 -1
- package/dist/collection/components/psalm/psalm.js +0 -1
- package/dist/collection/components/string/dist/string.js +0 -1
- package/dist/collection/components/string/string.js +0 -1
- package/dist/collection/components/text/dist/text.js +1 -1
- package/dist/collection/components/text/text.js +1 -1
- package/dist/esm/{app-globals-2b41bd8d.js → app-globals-729b03cf.js} +1 -1
- package/dist/esm/{index-1885f1b8.js → index-734a6b69.js} +1 -1
- package/dist/esm/{index-8b9e221a.js → index-9579282b.js} +3 -3
- package/dist/esm/{index-dcd553ac.js → index-f0f6a379.js} +1 -1
- package/dist/esm/ion-action-sheet.entry.js +3 -3
- package/dist/esm/ion-alert.entry.js +3 -3
- package/dist/esm/ion-app.entry.js +3 -3
- package/dist/esm/ion-avatar.entry.js +2 -2
- package/dist/esm/ion-back-button.entry.js +2 -2
- package/dist/esm/ion-backdrop.entry.js +2 -2
- package/dist/esm/ion-badge.entry.js +2 -2
- package/dist/esm/ion-button_13.entry.js +1771 -0
- package/dist/esm/ion-card-content_6.entry.js +3 -3
- package/dist/esm/ion-card-subtitle.entry.js +2 -2
- package/dist/esm/ion-card_2.entry.js +2 -2
- package/dist/esm/ion-checkbox_3.entry.js +229 -0
- package/dist/esm/ion-chip.entry.js +2 -2
- package/dist/esm/ion-datetime_2.entry.js +3 -3
- package/dist/esm/ion-fab-button.entry.js +2 -2
- package/dist/esm/ion-fab-list.entry.js +2 -2
- package/dist/esm/ion-fab.entry.js +2 -2
- package/dist/esm/ion-footer.entry.js +2 -2
- package/dist/esm/ion-img.entry.js +2 -2
- package/dist/esm/ion-infinite-scroll-content.entry.js +2 -2
- package/dist/esm/ion-infinite-scroll.entry.js +2 -2
- package/dist/esm/ion-input_2.entry.js +2 -2
- package/dist/esm/ion-item-divider.entry.js +2 -2
- package/dist/esm/ion-item-group.entry.js +2 -2
- package/dist/esm/ion-item-option.entry.js +2 -2
- package/dist/esm/ion-item-options.entry.js +2 -2
- package/dist/esm/ion-item-sliding.entry.js +2 -2
- package/dist/esm/ion-list-header.entry.js +2 -2
- package/dist/esm/ion-loading.entry.js +3 -3
- 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 +3 -3
- package/dist/esm/ion-modal.entry.js +4 -4
- package/dist/esm/ion-nav-link.entry.js +1 -1
- package/dist/esm/ion-nav.entry.js +3 -3
- package/dist/esm/ion-note.entry.js +2 -2
- package/dist/esm/ion-picker-column.entry.js +2 -2
- package/dist/esm/ion-picker.entry.js +3 -3
- package/dist/esm/ion-popover.entry.js +4 -4
- package/dist/esm/ion-progress-bar.entry.js +2 -2
- package/dist/esm/ion-radio_2.entry.js +2 -2
- package/dist/esm/ion-range.entry.js +2 -2
- package/dist/esm/ion-refresher-content.entry.js +2 -2
- package/dist/esm/ion-refresher.entry.js +2 -2
- package/dist/esm/ion-reorder-group.entry.js +2 -2
- package/dist/esm/ion-reorder.entry.js +2 -2
- package/dist/esm/ion-route-redirect.entry.js +1 -1
- package/dist/esm/ion-route.entry.js +1 -1
- package/dist/esm/ion-router-link.entry.js +2 -2
- package/dist/esm/ion-router-outlet.entry.js +3 -3
- package/dist/esm/ion-router.entry.js +1 -1
- package/dist/esm/ion-segment_16.entry.js +8 -7
- package/dist/esm/ion-select-popover.entry.js +3 -3
- package/dist/esm/ion-select_2.entry.js +3 -3
- package/dist/esm/ion-slide.entry.js +2 -2
- package/dist/esm/ion-slides.entry.js +2 -2
- package/dist/esm/ion-spinner.entry.js +2 -2
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar.entry.js +2 -2
- package/dist/esm/ion-tab-button.entry.js +2 -2
- package/dist/esm/ion-tab.entry.js +1 -1
- package/dist/esm/ion-tabs.entry.js +1 -1
- package/dist/esm/ion-text.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +2 -2
- package/dist/esm/ion-thumbnail.entry.js +2 -2
- package/dist/esm/ion-toast.entry.js +3 -3
- package/dist/esm/ion-virtual-scroll.entry.js +1 -1
- package/dist/esm/{ionic-global-fef4299f.js → ionic-global-ef89a0a5.js} +1 -1
- package/dist/esm/{ios.transition-2460f61e.js → ios.transition-b1be0863.js} +2 -2
- package/dist/esm/ldf-day-name_5.entry.js +4 -5
- package/dist/esm/ldf-editable-add-block-menu.entry.js +3 -3
- package/dist/esm/ldf-editable-condition-piece.entry.js +1 -1
- package/dist/esm/ldf-editable-condition.entry.js +1 -1
- package/dist/esm/ldf-editable-filter-documents.entry.js +2 -2
- package/dist/esm/ldf-editable-lookup_2.entry.js +4 -4
- package/dist/esm/ldf-editable-metadata.entry.js +4 -4
- package/dist/esm/ldf-editable-preference-option.entry.js +1 -1
- package/dist/esm/ldf-editable-preference.entry.js +1 -1
- package/dist/esm/ldf-editable-preferences.entry.js +3 -3
- package/dist/esm/ldf-editable-string-list.entry.js +1 -1
- package/dist/esm/ldf-editor-cursors.entry.js +1 -1
- package/dist/esm/ldf-editor.entry.js +1 -1
- package/dist/esm/ldf.js +4 -4
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{md.transition-7eb37dd1.js → md.transition-1763f475.js} +2 -2
- package/dist/esm/{menu-toggle-util-d6bed342.js → menu-toggle-util-29e61ff3.js} +1 -1
- package/dist/esm/{option-042c9673.js → option-47d50244.js} +6 -2
- package/dist/esm/{overlays-e1d5aa58.js → overlays-06b43b65.js} +2 -2
- package/dist/esm/{rubric-9c750946.js → rubric-2330a030.js} +44 -5
- package/dist/esm/{specific-class-2df4b72a.js → specific-class-28e26e40.js} +2 -2
- package/dist/esm/{status-tap-900b721a.js → status-tap-7458bd71.js} +1 -1
- package/dist/ldf/ldf.esm.js +1 -1
- package/dist/ldf/{p-a7a10747.entry.js → p-018e57db.entry.js} +1 -1
- package/dist/ldf/p-02ef484e.entry.js +1 -0
- package/dist/ldf/{p-5bfa9969.entry.js → p-04715bf0.entry.js} +1 -1
- package/dist/ldf/{p-8cb241a8.entry.js → p-0651768a.entry.js} +1 -1
- package/dist/ldf/{p-a80bce6a.entry.js → p-07d6d3ad.entry.js} +1 -1
- package/dist/ldf/p-08584ccc.entry.js +1 -0
- package/dist/ldf/{p-d3a17399.entry.js → p-0873a34a.entry.js} +1 -1
- package/dist/ldf/{p-5febfbde.entry.js → p-0f69db87.entry.js} +1 -1
- package/dist/ldf/{p-6b6b9f77.entry.js → p-1504379f.entry.js} +1 -1
- package/dist/ldf/{p-110c6e85.entry.js → p-1a8e2899.entry.js} +1 -1
- package/dist/ldf/p-21e2f0a3.entry.js +1 -0
- package/dist/ldf/{p-6c3d4341.entry.js → p-25a736f1.entry.js} +1 -1
- package/dist/ldf/{p-43d7a734.entry.js → p-2c36a583.entry.js} +1 -1
- package/dist/ldf/{p-4c8f895f.entry.js → p-2fa1c501.entry.js} +1 -1
- package/dist/ldf/{p-a0b9b689.entry.js → p-302dc0d5.entry.js} +1 -1
- package/dist/ldf/{p-54f83929.entry.js → p-327b14ac.entry.js} +1 -1
- package/dist/ldf/{p-4d5b52ad.entry.js → p-32f7ba8e.entry.js} +1 -1
- package/dist/ldf/{p-8a064810.entry.js → p-3545fcdc.entry.js} +1 -1
- package/dist/ldf/{p-8c8bf861.entry.js → p-374118d7.entry.js} +1 -1
- package/dist/ldf/p-37f356a4.entry.js +1 -0
- package/dist/ldf/{p-7f7de09a.entry.js → p-380f8655.entry.js} +1 -1
- package/dist/ldf/{p-7df0687c.entry.js → p-3c9930ff.entry.js} +1 -1
- package/dist/ldf/{p-dbdb2b0a.entry.js → p-3f39c2ad.entry.js} +1 -1
- package/dist/ldf/{p-35680ca6.entry.js → p-430c418a.entry.js} +1 -1
- package/dist/ldf/{p-986921d2.js → p-48e44122.js} +1 -1
- package/dist/ldf/{p-4b154310.entry.js → p-4a4380fa.entry.js} +1 -1
- package/dist/ldf/p-4b80de48.js +1 -0
- package/dist/ldf/{p-06bc76d9.entry.js → p-4d392128.entry.js} +1 -1
- package/dist/ldf/p-4e0b3c0f.entry.js +1 -0
- package/dist/ldf/{p-b631cadf.entry.js → p-52656429.entry.js} +1 -1
- package/dist/ldf/p-53c807a4.js +1 -0
- package/dist/ldf/{p-91969280.js → p-55d797c1.js} +1 -1
- package/dist/ldf/{p-71ed0c0f.entry.js → p-59340423.entry.js} +1 -1
- package/dist/ldf/{p-0c8f1542.entry.js → p-5be7ff17.entry.js} +1 -1
- package/dist/ldf/p-5bf20b51.js +1 -0
- package/dist/ldf/{p-ae3cd06a.entry.js → p-63b5daf6.entry.js} +1 -1
- package/dist/ldf/{p-0afd3d32.entry.js → p-66a7385e.entry.js} +1 -1
- package/dist/ldf/p-698a3399.entry.js +1 -0
- package/dist/ldf/{p-4d92e32b.entry.js → p-69f85ad3.entry.js} +1 -1
- package/dist/ldf/{p-0cb749f6.entry.js → p-6fe24d85.entry.js} +1 -1
- package/dist/ldf/{p-ceb4c199.entry.js → p-70e47f8b.entry.js} +1 -1
- package/dist/ldf/{p-e778bf3c.entry.js → p-73a16936.entry.js} +1 -1
- package/dist/ldf/{p-bacac874.entry.js → p-79a526a1.entry.js} +1 -1
- package/dist/ldf/{p-20f5f7c0.entry.js → p-7abeb82c.entry.js} +1 -1
- package/dist/ldf/{p-79997a72.entry.js → p-7df11f48.entry.js} +1 -1
- package/dist/ldf/{p-91cef52f.entry.js → p-7efa633b.entry.js} +1 -1
- package/dist/ldf/{p-8ed588f7.entry.js → p-84f38db6.entry.js} +1 -1
- package/dist/ldf/{p-5a74ad40.entry.js → p-8767a74e.entry.js} +1 -1
- package/dist/ldf/{p-7fba586d.entry.js → p-8932ec85.entry.js} +1 -1
- package/dist/ldf/{p-74e1596c.entry.js → p-8c2727db.entry.js} +1 -1
- package/dist/ldf/{p-913c92ca.entry.js → p-972e4f2a.entry.js} +1 -1
- package/dist/ldf/{p-0ce10dcd.js → p-978e2c6d.js} +1 -1
- package/dist/ldf/p-9bd5d1d4.entry.js +1 -0
- package/dist/ldf/{p-5fa1dcfb.entry.js → p-9c397c49.entry.js} +1 -1
- package/dist/ldf/p-9e2c172e.entry.js +1 -0
- package/dist/ldf/{p-6b0fab5d.js → p-9e82b403.js} +2 -2
- package/dist/ldf/{p-2b9556d3.entry.js → p-a98c89d1.entry.js} +1 -1
- package/dist/ldf/{p-c3dbb344.entry.js → p-ac7a17ce.entry.js} +1 -1
- package/dist/ldf/{p-3b236b73.js → p-acbbd1ec.js} +1 -1
- package/dist/ldf/p-b1242016.js +1 -0
- package/dist/ldf/{p-50d56c76.entry.js → p-b7388aec.entry.js} +1 -1
- package/dist/ldf/{p-37ead536.entry.js → p-b78336d7.entry.js} +1 -1
- package/dist/ldf/{p-9282f514.entry.js → p-ba021918.entry.js} +1 -1
- package/dist/ldf/{p-65c80b87.entry.js → p-c1bcd0a9.entry.js} +1 -1
- package/dist/ldf/{p-4c825920.entry.js → p-c1df632d.entry.js} +1 -1
- package/dist/ldf/{p-a467efd9.entry.js → p-c3042920.entry.js} +1 -1
- package/dist/ldf/{p-860e2e8c.entry.js → p-c3807857.entry.js} +1 -1
- package/dist/ldf/{p-faf3cb15.entry.js → p-c3841978.entry.js} +1 -1
- package/dist/ldf/{p-b7fe7b29.entry.js → p-c41e055c.entry.js} +1 -1
- package/dist/ldf/{p-5cefe450.entry.js → p-c6163f81.entry.js} +1 -1
- package/dist/ldf/{p-944c44a7.entry.js → p-c6b42618.entry.js} +1 -1
- package/dist/ldf/{p-1d8e06c7.entry.js → p-c74d3fd0.entry.js} +1 -1
- package/dist/ldf/{p-741e1b4e.entry.js → p-c82dd468.entry.js} +1 -1
- package/dist/ldf/{p-342e45c0.entry.js → p-ca698b8f.entry.js} +1 -1
- package/dist/ldf/p-ca7e0de9.entry.js +1 -0
- package/dist/ldf/{p-059fcd05.entry.js → p-cbfbb80c.entry.js} +1 -1
- package/dist/ldf/{p-a8264864.entry.js → p-d195c957.entry.js} +1 -1
- package/dist/ldf/{p-664b2872.js → p-d282d4f9.js} +1 -1
- package/dist/ldf/{p-bc59e89e.entry.js → p-d7966e9b.entry.js} +1 -1
- package/dist/ldf/{p-f562ae50.js → p-d7f8c770.js} +1 -1
- package/dist/ldf/{p-396025ba.entry.js → p-d7fa99cc.entry.js} +1 -1
- package/dist/ldf/{p-ae136041.entry.js → p-db435131.entry.js} +1 -1
- package/dist/ldf/{p-ae287f67.entry.js → p-dc445c36.entry.js} +1 -1
- package/dist/ldf/{p-385a3ecf.entry.js → p-dd99e42a.entry.js} +1 -1
- package/dist/ldf/{p-b8a8f9c8.js → p-de5bb5ad.js} +1 -1
- package/dist/ldf/{p-7e388cb7.entry.js → p-e0e12ae3.entry.js} +1 -1
- package/dist/ldf/{p-128ac9e9.entry.js → p-e215fd02.entry.js} +1 -1
- package/dist/ldf/{p-4b7027b1.entry.js → p-e4be11ad.entry.js} +1 -1
- package/dist/ldf/{p-8d6f1d6b.entry.js → p-ea66c343.entry.js} +1 -1
- package/dist/ldf/{p-ac9a93aa.entry.js → p-ec5eecdc.entry.js} +1 -1
- package/dist/ldf/{p-64c46765.js → p-f2ce126e.js} +1 -1
- package/dist/ldf/{p-186eed18.entry.js → p-fe59a676.entry.js} +1 -1
- package/dist/ldf/p-ff51dbd0.entry.js +1 -0
- package/dist/types/components/liturgical-document/liturgical-document.d.ts +2 -0
- package/dist/types/components/prayers-and-thanksgivings/prayers-and-thanksgivings.d.ts +1 -1
- package/dist/types/components.d.ts +8 -0
- package/package.json +2 -2
- package/dist/cjs/ion-button_3.cjs.entry.js +0 -413
- package/dist/cjs/ion-buttons_6.cjs.entry.js +0 -584
- package/dist/cjs/ion-content.cjs.entry.js +0 -303
- package/dist/cjs/ion-item_2.cjs.entry.js +0 -168
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +0 -93
- package/dist/cjs/ion-searchbar.cjs.entry.js +0 -330
- package/dist/cjs/ion-title.cjs.entry.js +0 -48
- package/dist/cjs/ldf-prayers-and-thanksgivings.cjs.entry.js +0 -108
- package/dist/esm/ion-button_3.entry.js +0 -407
- package/dist/esm/ion-buttons_6.entry.js +0 -575
- package/dist/esm/ion-content.entry.js +0 -299
- package/dist/esm/ion-item_2.entry.js +0 -163
- package/dist/esm/ion-ripple-effect.entry.js +0 -89
- package/dist/esm/ion-searchbar.entry.js +0 -326
- package/dist/esm/ion-title.entry.js +0 -44
- package/dist/esm/ldf-prayers-and-thanksgivings.entry.js +0 -104
- package/dist/ldf/p-01655d40.js +0 -1
- package/dist/ldf/p-07e48862.entry.js +0 -1
- package/dist/ldf/p-2471a9c7.entry.js +0 -1
- package/dist/ldf/p-356f9ee6.entry.js +0 -1
- package/dist/ldf/p-68f963c7.entry.js +0 -1
- package/dist/ldf/p-72718314.entry.js +0 -1
- package/dist/ldf/p-78ed7ef0.entry.js +0 -1
- package/dist/ldf/p-7aecb410.js +0 -1
- package/dist/ldf/p-7ccf2257.entry.js +0 -1
- package/dist/ldf/p-867f7c02.js +0 -1
- package/dist/ldf/p-8e1286c3.entry.js +0 -1
- package/dist/ldf/p-92461769.entry.js +0 -1
- package/dist/ldf/p-9382bbe1.entry.js +0 -1
- package/dist/ldf/p-96967103.entry.js +0 -1
- package/dist/ldf/p-accacaed.entry.js +0 -1
- package/dist/ldf/p-bcb82c8e.js +0 -1
- package/dist/ldf/p-c7c0acf1.entry.js +0 -1
- package/dist/ldf/p-cee7604d.entry.js +0 -1
- package/dist/ldf/p-e3ce57d7.entry.js +0 -1
- package/dist/ldf/p-ecb2e631.entry.js +0 -1
|
@@ -1,330 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-8fe0df8d.js');
|
|
6
|
-
const ionicGlobal = require('./ionic-global-581fb4f8.js');
|
|
7
|
-
const helpers = require('./helpers-41dfb43a.js');
|
|
8
|
-
const theme = require('./theme-81caa5b0.js');
|
|
9
|
-
|
|
10
|
-
const searchbarIosCss = ".sc-ion-searchbar-ios-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:.5;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);box-sizing:border-box}.ion-color.sc-ion-searchbar-ios-h{color:var(--ion-color-contrast)}.ion-color.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{background:var(--ion-color-base)}.ion-color.sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios,.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.ion-color.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{color:inherit}.searchbar-search-icon.sc-ion-searchbar-ios{color:var(--icon-color);pointer-events:none}.searchbar-input-container.sc-ion-searchbar-ios{display:block;position:relative;flex-shrink:1;width:100%}.searchbar-input.sc-ion-searchbar-ios{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;border-radius:var(--border-radius);display:block;width:100%;border:0;outline:none;background:var(--background);font-family:inherit;box-shadow:var(--box-shadow);box-sizing:border-box;appearance:none}.searchbar-input.sc-ion-searchbar-ios::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-webkit-search-cancel-button,.searchbar-input.sc-ion-searchbar-ios::-ms-clear{display:none}.searchbar-cancel-button.sc-ion-searchbar-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:none;height:100%;border:0;outline:none;color:var(--cancel-button-color);cursor:pointer;appearance:none}.searchbar-cancel-button.sc-ion-searchbar-ios>div.sc-ion-searchbar-ios{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.searchbar-clear-button.sc-ion-searchbar-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:none;min-height:0;outline:none;color:var(--clear-button-color);appearance:none}.searchbar-has-value.searchbar-has-focus.sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios{display:block}.searchbar-disabled.sc-ion-searchbar-ios-h{cursor:default;opacity:0.4;pointer-events:none}.sc-ion-searchbar-ios-h{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.07);--border-radius:10px;--box-shadow:none;--cancel-button-color:var(--ion-color-primary, #3880ff);--clear-button-color:var(--ion-color-step-600, #666666);--color:var(--ion-text-color, #000);--icon-color:var(--ion-color-step-600, #666666);padding-left:12px;padding-right:12px;padding-top:12px;padding-bottom:12px;height:60px;contain:strict}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.sc-ion-searchbar-ios-h{padding-left:unset;padding-right:unset;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px}}.searchbar-input-container.sc-ion-searchbar-ios{height:36px}.searchbar-search-icon.sc-ion-searchbar-ios{margin-left:calc(50% - 60px);left:5px;top:0;position:absolute;width:22px;height:100%;contain:strict}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.searchbar-search-icon.sc-ion-searchbar-ios{margin-left:unset;-webkit-margin-start:calc(50% - 60px);margin-inline-start:calc(50% - 60px)}}[dir=rtl].sc-ion-searchbar-ios .searchbar-search-icon.sc-ion-searchbar-ios,[dir=rtl].sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,[dir=rtl] .sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{left:unset;right:unset;right:5px}.searchbar-input.sc-ion-searchbar-ios{padding-left:28px;padding-right:28px;padding-top:0;padding-bottom:0;height:100%;font-size:17px;font-weight:400;contain:strict}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.searchbar-input.sc-ion-searchbar-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:28px;padding-inline-start:28px;-webkit-padding-end:28px;padding-inline-end:28px}}.searchbar-clear-button.sc-ion-searchbar-ios{right:0;top:0;background-position:center;position:absolute;width:30px;height:100%;border:0;background-color:transparent}[dir=rtl].sc-ion-searchbar-ios .searchbar-clear-button.sc-ion-searchbar-ios,[dir=rtl].sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios,[dir=rtl] .sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios{left:unset;right:unset;left:0}.searchbar-clear-icon.sc-ion-searchbar-ios{width:18px;height:100%}.searchbar-cancel-button.sc-ion-searchbar-ios{padding-left:8px;padding-right:0;padding-top:0;padding-bottom:0;flex-shrink:0;background-color:transparent;font-size:16px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.searchbar-cancel-button.sc-ion-searchbar-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:0;padding-inline-end:0}}.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{margin-left:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{margin-left:unset;-webkit-margin-start:0;margin-inline-start:0}}.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{padding-left:30px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{padding-left:unset;-webkit-padding-start:30px;padding-inline-start:30px}}.searchbar-has-focus.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-should-show-cancel.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{display:block}.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{transition:all 300ms ease}.searchbar-animated.searchbar-has-focus.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-animated.searchbar-should-show-cancel.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{opacity:1;pointer-events:auto}.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{margin-right:-100%;transform:translate3d(0, 0, 0);transition:all 300ms ease;opacity:0;pointer-events:none}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{margin-right:unset;-webkit-margin-end:-100%;margin-inline-end:-100%}}.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios,.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{transition-duration:0ms}.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{color:var(--ion-color-base)}@media (any-hover: hover){.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios:hover{color:var(--ion-color-tint)}}ion-toolbar.sc-ion-searchbar-ios-h,ion-toolbar .sc-ion-searchbar-ios-h{padding-top:1px;padding-bottom:15px;height:52px}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color),ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color){color:inherit}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-cancel-button.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-cancel-button.sc-ion-searchbar-ios{color:currentColor}ion-toolbar.ion-color.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{color:currentColor;opacity:0.5}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-input.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-input.sc-ion-searchbar-ios{background:rgba(var(--ion-color-contrast-rgb), 0.07);color:currentColor}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-clear-button.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-clear-button.sc-ion-searchbar-ios{color:currentColor;opacity:0.5}";
|
|
11
|
-
|
|
12
|
-
const searchbarMdCss = ".sc-ion-searchbar-md-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:.5;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);box-sizing:border-box}.ion-color.sc-ion-searchbar-md-h{color:var(--ion-color-contrast)}.ion-color.sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md{background:var(--ion-color-base)}.ion-color.sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md,.ion-color.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,.ion-color.sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{color:inherit}.searchbar-search-icon.sc-ion-searchbar-md{color:var(--icon-color);pointer-events:none}.searchbar-input-container.sc-ion-searchbar-md{display:block;position:relative;flex-shrink:1;width:100%}.searchbar-input.sc-ion-searchbar-md{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;border-radius:var(--border-radius);display:block;width:100%;border:0;outline:none;background:var(--background);font-family:inherit;box-shadow:var(--box-shadow);box-sizing:border-box;appearance:none}.searchbar-input.sc-ion-searchbar-md::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-webkit-search-cancel-button,.searchbar-input.sc-ion-searchbar-md::-ms-clear{display:none}.searchbar-cancel-button.sc-ion-searchbar-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:none;height:100%;border:0;outline:none;color:var(--cancel-button-color);cursor:pointer;appearance:none}.searchbar-cancel-button.sc-ion-searchbar-md>div.sc-ion-searchbar-md{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.searchbar-clear-button.sc-ion-searchbar-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:none;min-height:0;outline:none;color:var(--clear-button-color);appearance:none}.searchbar-has-value.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md{display:block}.searchbar-disabled.sc-ion-searchbar-md-h{cursor:default;opacity:0.4;pointer-events:none}.sc-ion-searchbar-md-h{--background:var(--ion-background-color, #fff);--border-radius:2px;--box-shadow:0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);--cancel-button-color:var(--ion-color-step-900, #1a1a1a);--clear-button-color:initial;--color:var(--ion-color-step-850, #262626);--icon-color:var(--ion-color-step-600, #666666);padding-left:8px;padding-right:8px;padding-top:8px;padding-bottom:8px;background:inherit}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.sc-ion-searchbar-md-h{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}.searchbar-search-icon.sc-ion-searchbar-md{left:16px;top:11px;width:21px;height:21px}[dir=rtl].sc-ion-searchbar-md .searchbar-search-icon.sc-ion-searchbar-md,[dir=rtl].sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{left:unset;right:unset;right:16px}.searchbar-cancel-button.sc-ion-searchbar-md{left:5px;top:0;background-color:transparent;font-size:1.6em}[dir=rtl].sc-ion-searchbar-md .searchbar-cancel-button.sc-ion-searchbar-md,[dir=rtl].sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md{left:unset;right:unset;right:5px}.searchbar-search-icon.sc-ion-searchbar-md,.searchbar-cancel-button.sc-ion-searchbar-md{position:absolute}.searchbar-search-icon.ion-activated.sc-ion-searchbar-md,.searchbar-cancel-button.ion-activated.sc-ion-searchbar-md{background-color:transparent}.searchbar-input.sc-ion-searchbar-md{padding-left:55px;padding-right:55px;padding-top:6px;padding-bottom:6px;background-position:left 8px center;height:auto;font-size:16px;font-weight:400;line-height:30px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.searchbar-input.sc-ion-searchbar-md{padding-left:unset;padding-right:unset;-webkit-padding-start:55px;padding-inline-start:55px;-webkit-padding-end:55px;padding-inline-end:55px}}[dir=rtl].sc-ion-searchbar-md .searchbar-input.sc-ion-searchbar-md,[dir=rtl].sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md{background-position:right 8px center}.searchbar-clear-button.sc-ion-searchbar-md{right:13px;top:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;position:absolute;height:100%;border:0;background-color:transparent}[dir=rtl].sc-ion-searchbar-md .searchbar-clear-button.sc-ion-searchbar-md,[dir=rtl].sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md{left:unset;right:unset;left:13px}.searchbar-clear-button.ion-activated.sc-ion-searchbar-md{background-color:transparent}.searchbar-clear-icon.sc-ion-searchbar-md{width:22px;height:100%}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{display:block}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,.searchbar-should-show-cancel.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md{display:block}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md+.searchbar-search-icon.sc-ion-searchbar-md,.searchbar-should-show-cancel.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md+.searchbar-search-icon.sc-ion-searchbar-md{display:none}ion-toolbar.sc-ion-searchbar-md-h,ion-toolbar .sc-ion-searchbar-md-h{padding-left:7px;padding-right:7px;padding-top:3px;padding-bottom:3px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){ion-toolbar.sc-ion-searchbar-md-h,ion-toolbar .sc-ion-searchbar-md-h{padding-left:unset;padding-right:unset;-webkit-padding-start:7px;padding-inline-start:7px;-webkit-padding-end:7px;padding-inline-end:7px}}";
|
|
13
|
-
|
|
14
|
-
const Searchbar = class {
|
|
15
|
-
constructor(hostRef) {
|
|
16
|
-
index.registerInstance(this, hostRef);
|
|
17
|
-
this.ionInput = index.createEvent(this, "ionInput", 7);
|
|
18
|
-
this.ionChange = index.createEvent(this, "ionChange", 7);
|
|
19
|
-
this.ionCancel = index.createEvent(this, "ionCancel", 7);
|
|
20
|
-
this.ionClear = index.createEvent(this, "ionClear", 7);
|
|
21
|
-
this.ionBlur = index.createEvent(this, "ionBlur", 7);
|
|
22
|
-
this.ionFocus = index.createEvent(this, "ionFocus", 7);
|
|
23
|
-
this.ionStyle = index.createEvent(this, "ionStyle", 7);
|
|
24
|
-
this.isCancelVisible = false;
|
|
25
|
-
this.shouldAlignLeft = true;
|
|
26
|
-
this.focused = false;
|
|
27
|
-
this.noAnimate = true;
|
|
28
|
-
/**
|
|
29
|
-
* If `true`, enable searchbar animation.
|
|
30
|
-
*/
|
|
31
|
-
this.animated = false;
|
|
32
|
-
/**
|
|
33
|
-
* Set the input's autocomplete property.
|
|
34
|
-
*/
|
|
35
|
-
this.autocomplete = 'off';
|
|
36
|
-
/**
|
|
37
|
-
* Set the input's autocorrect property.
|
|
38
|
-
*/
|
|
39
|
-
this.autocorrect = 'off';
|
|
40
|
-
/**
|
|
41
|
-
* Set the cancel button icon. Only applies to `md` mode.
|
|
42
|
-
* Defaults to `"arrow-back-sharp"`.
|
|
43
|
-
*/
|
|
44
|
-
this.cancelButtonIcon = ionicGlobal.config.get('backButtonIcon', 'arrow-back-sharp');
|
|
45
|
-
/**
|
|
46
|
-
* Set the the cancel button text. Only applies to `ios` mode.
|
|
47
|
-
*/
|
|
48
|
-
this.cancelButtonText = 'Cancel';
|
|
49
|
-
/**
|
|
50
|
-
* Set the amount of time, in milliseconds, to wait to trigger the `ionChange` event after each keystroke.
|
|
51
|
-
*/
|
|
52
|
-
this.debounce = 250;
|
|
53
|
-
/**
|
|
54
|
-
* If `true`, the user cannot interact with the input.
|
|
55
|
-
*/
|
|
56
|
-
this.disabled = false;
|
|
57
|
-
/**
|
|
58
|
-
* Set the input's placeholder.
|
|
59
|
-
* `placeholder` can accept either plaintext or HTML as a string.
|
|
60
|
-
* To display characters normally reserved for HTML, they
|
|
61
|
-
* must be escaped. For example `<Ionic>` would become
|
|
62
|
-
* `<Ionic>`
|
|
63
|
-
*
|
|
64
|
-
* For more information: [Security Documentation](https://ionicframework.com/docs/faq/security)
|
|
65
|
-
*/
|
|
66
|
-
this.placeholder = 'Search';
|
|
67
|
-
/**
|
|
68
|
-
* Sets the behavior for the cancel button. Defaults to `"never"`.
|
|
69
|
-
* Setting to `"focus"` shows the cancel button on focus.
|
|
70
|
-
* Setting to `"never"` hides the cancel button.
|
|
71
|
-
* Setting to `"always"` shows the cancel button regardless
|
|
72
|
-
* of focus state.
|
|
73
|
-
*/
|
|
74
|
-
this.showCancelButton = 'never';
|
|
75
|
-
/**
|
|
76
|
-
* If `true`, enable spellcheck on the input.
|
|
77
|
-
*/
|
|
78
|
-
this.spellcheck = false;
|
|
79
|
-
/**
|
|
80
|
-
* Set the type of the input.
|
|
81
|
-
*/
|
|
82
|
-
this.type = 'search';
|
|
83
|
-
/**
|
|
84
|
-
* the value of the searchbar.
|
|
85
|
-
*/
|
|
86
|
-
this.value = '';
|
|
87
|
-
/**
|
|
88
|
-
* Clears the input field and triggers the control change.
|
|
89
|
-
*/
|
|
90
|
-
this.onClearInput = (ev) => {
|
|
91
|
-
this.ionClear.emit();
|
|
92
|
-
if (ev) {
|
|
93
|
-
ev.preventDefault();
|
|
94
|
-
ev.stopPropagation();
|
|
95
|
-
}
|
|
96
|
-
// setTimeout() fixes https://github.com/ionic-team/ionic/issues/7527
|
|
97
|
-
// wait for 4 frames
|
|
98
|
-
setTimeout(() => {
|
|
99
|
-
const value = this.getValue();
|
|
100
|
-
if (value !== '') {
|
|
101
|
-
this.value = '';
|
|
102
|
-
this.ionInput.emit();
|
|
103
|
-
}
|
|
104
|
-
}, 16 * 4);
|
|
105
|
-
};
|
|
106
|
-
/**
|
|
107
|
-
* Clears the input field and tells the input to blur since
|
|
108
|
-
* the clearInput function doesn't want the input to blur
|
|
109
|
-
* then calls the custom cancel function if the user passed one in.
|
|
110
|
-
*/
|
|
111
|
-
this.onCancelSearchbar = (ev) => {
|
|
112
|
-
if (ev) {
|
|
113
|
-
ev.preventDefault();
|
|
114
|
-
ev.stopPropagation();
|
|
115
|
-
}
|
|
116
|
-
this.ionCancel.emit();
|
|
117
|
-
this.onClearInput();
|
|
118
|
-
if (this.nativeInput) {
|
|
119
|
-
this.nativeInput.blur();
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
/**
|
|
123
|
-
* Update the Searchbar input value when the input changes
|
|
124
|
-
*/
|
|
125
|
-
this.onInput = (ev) => {
|
|
126
|
-
const input = ev.target;
|
|
127
|
-
if (input) {
|
|
128
|
-
this.value = input.value;
|
|
129
|
-
}
|
|
130
|
-
this.ionInput.emit(ev);
|
|
131
|
-
};
|
|
132
|
-
/**
|
|
133
|
-
* Sets the Searchbar to not focused and checks if it should align left
|
|
134
|
-
* based on whether there is a value in the searchbar or not.
|
|
135
|
-
*/
|
|
136
|
-
this.onBlur = () => {
|
|
137
|
-
this.focused = false;
|
|
138
|
-
this.ionBlur.emit();
|
|
139
|
-
this.positionElements();
|
|
140
|
-
};
|
|
141
|
-
/**
|
|
142
|
-
* Sets the Searchbar to focused and active on input focus.
|
|
143
|
-
*/
|
|
144
|
-
this.onFocus = () => {
|
|
145
|
-
this.focused = true;
|
|
146
|
-
this.ionFocus.emit();
|
|
147
|
-
this.positionElements();
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
debounceChanged() {
|
|
151
|
-
this.ionChange = helpers.debounceEvent(this.ionChange, this.debounce);
|
|
152
|
-
}
|
|
153
|
-
valueChanged() {
|
|
154
|
-
const inputEl = this.nativeInput;
|
|
155
|
-
const value = this.getValue();
|
|
156
|
-
if (inputEl && inputEl.value !== value) {
|
|
157
|
-
inputEl.value = value;
|
|
158
|
-
}
|
|
159
|
-
this.ionChange.emit({ value });
|
|
160
|
-
}
|
|
161
|
-
showCancelButtonChanged() {
|
|
162
|
-
requestAnimationFrame(() => {
|
|
163
|
-
this.positionElements();
|
|
164
|
-
index.forceUpdate(this);
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
connectedCallback() {
|
|
168
|
-
this.emitStyle();
|
|
169
|
-
}
|
|
170
|
-
componentDidLoad() {
|
|
171
|
-
this.positionElements();
|
|
172
|
-
this.debounceChanged();
|
|
173
|
-
setTimeout(() => {
|
|
174
|
-
this.noAnimate = false;
|
|
175
|
-
}, 300);
|
|
176
|
-
}
|
|
177
|
-
emitStyle() {
|
|
178
|
-
this.ionStyle.emit({
|
|
179
|
-
'searchbar': true
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* Sets focus on the specified `ion-searchbar`. Use this method instead of the global
|
|
184
|
-
* `input.focus()`.
|
|
185
|
-
*/
|
|
186
|
-
async setFocus() {
|
|
187
|
-
if (this.nativeInput) {
|
|
188
|
-
this.nativeInput.focus();
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* Returns the native `<input>` element used under the hood.
|
|
193
|
-
*/
|
|
194
|
-
getInputElement() {
|
|
195
|
-
return Promise.resolve(this.nativeInput);
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* Positions the input search icon, placeholder, and the cancel button
|
|
199
|
-
* based on the input value and if it is focused. (ios only)
|
|
200
|
-
*/
|
|
201
|
-
positionElements() {
|
|
202
|
-
const value = this.getValue();
|
|
203
|
-
const prevAlignLeft = this.shouldAlignLeft;
|
|
204
|
-
const mode = ionicGlobal.getIonMode(this);
|
|
205
|
-
const shouldAlignLeft = (!this.animated || value.trim() !== '' || !!this.focused);
|
|
206
|
-
this.shouldAlignLeft = shouldAlignLeft;
|
|
207
|
-
if (mode !== 'ios') {
|
|
208
|
-
return;
|
|
209
|
-
}
|
|
210
|
-
if (prevAlignLeft !== shouldAlignLeft) {
|
|
211
|
-
this.positionPlaceholder();
|
|
212
|
-
}
|
|
213
|
-
if (this.animated) {
|
|
214
|
-
this.positionCancelButton();
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* Positions the input placeholder
|
|
219
|
-
*/
|
|
220
|
-
positionPlaceholder() {
|
|
221
|
-
const inputEl = this.nativeInput;
|
|
222
|
-
if (!inputEl) {
|
|
223
|
-
return;
|
|
224
|
-
}
|
|
225
|
-
const isRTL = document.dir === 'rtl';
|
|
226
|
-
const iconEl = (this.el.shadowRoot || this.el).querySelector('.searchbar-search-icon');
|
|
227
|
-
if (this.shouldAlignLeft) {
|
|
228
|
-
inputEl.removeAttribute('style');
|
|
229
|
-
iconEl.removeAttribute('style');
|
|
230
|
-
}
|
|
231
|
-
else {
|
|
232
|
-
// Create a dummy span to get the placeholder width
|
|
233
|
-
const doc = document;
|
|
234
|
-
const tempSpan = doc.createElement('span');
|
|
235
|
-
tempSpan.innerText = this.placeholder || '';
|
|
236
|
-
doc.body.appendChild(tempSpan);
|
|
237
|
-
// Get the width of the span then remove it
|
|
238
|
-
helpers.raf(() => {
|
|
239
|
-
const textWidth = tempSpan.offsetWidth;
|
|
240
|
-
tempSpan.remove();
|
|
241
|
-
// Calculate the input padding
|
|
242
|
-
const inputLeft = 'calc(50% - ' + (textWidth / 2) + 'px)';
|
|
243
|
-
// Calculate the icon margin
|
|
244
|
-
const iconLeft = 'calc(50% - ' + ((textWidth / 2) + 30) + 'px)';
|
|
245
|
-
// Set the input padding start and icon margin start
|
|
246
|
-
if (isRTL) {
|
|
247
|
-
inputEl.style.paddingRight = inputLeft;
|
|
248
|
-
iconEl.style.marginRight = iconLeft;
|
|
249
|
-
}
|
|
250
|
-
else {
|
|
251
|
-
inputEl.style.paddingLeft = inputLeft;
|
|
252
|
-
iconEl.style.marginLeft = iconLeft;
|
|
253
|
-
}
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* Show the iOS Cancel button on focus, hide it offscreen otherwise
|
|
259
|
-
*/
|
|
260
|
-
positionCancelButton() {
|
|
261
|
-
const isRTL = document.dir === 'rtl';
|
|
262
|
-
const cancelButton = (this.el.shadowRoot || this.el).querySelector('.searchbar-cancel-button');
|
|
263
|
-
const shouldShowCancel = this.shouldShowCancelButton();
|
|
264
|
-
if (cancelButton && shouldShowCancel !== this.isCancelVisible) {
|
|
265
|
-
const cancelStyle = cancelButton.style;
|
|
266
|
-
this.isCancelVisible = shouldShowCancel;
|
|
267
|
-
if (shouldShowCancel) {
|
|
268
|
-
if (isRTL) {
|
|
269
|
-
cancelStyle.marginLeft = '0';
|
|
270
|
-
}
|
|
271
|
-
else {
|
|
272
|
-
cancelStyle.marginRight = '0';
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
else {
|
|
276
|
-
const offset = cancelButton.offsetWidth;
|
|
277
|
-
if (offset > 0) {
|
|
278
|
-
if (isRTL) {
|
|
279
|
-
cancelStyle.marginLeft = -offset + 'px';
|
|
280
|
-
}
|
|
281
|
-
else {
|
|
282
|
-
cancelStyle.marginRight = -offset + 'px';
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
getValue() {
|
|
289
|
-
return this.value || '';
|
|
290
|
-
}
|
|
291
|
-
hasValue() {
|
|
292
|
-
return this.getValue() !== '';
|
|
293
|
-
}
|
|
294
|
-
/**
|
|
295
|
-
* Determines whether or not the cancel button should be visible onscreen.
|
|
296
|
-
* Cancel button should be shown if one of two conditions applies:
|
|
297
|
-
* 1. `showCancelButton` is set to `always`.
|
|
298
|
-
* 2. `showCancelButton` is set to `focus`, and the searchbar has been focused.
|
|
299
|
-
*/
|
|
300
|
-
shouldShowCancelButton() {
|
|
301
|
-
if ((this.showCancelButton === 'never') || (this.showCancelButton === 'focus' && !this.focused)) {
|
|
302
|
-
return false;
|
|
303
|
-
}
|
|
304
|
-
return true;
|
|
305
|
-
}
|
|
306
|
-
render() {
|
|
307
|
-
const { cancelButtonText } = this;
|
|
308
|
-
const animated = this.animated && ionicGlobal.config.getBoolean('animated', true);
|
|
309
|
-
const mode = ionicGlobal.getIonMode(this);
|
|
310
|
-
const clearIcon = this.clearIcon || (mode === 'ios' ? 'close-circle' : 'close-sharp');
|
|
311
|
-
const searchIcon = this.searchIcon || (mode === 'ios' ? 'search-outline' : 'search-sharp');
|
|
312
|
-
const shouldShowCancelButton = this.shouldShowCancelButton();
|
|
313
|
-
const cancelButton = (this.showCancelButton !== 'never') && (index.h("button", { "aria-label": cancelButtonText, "aria-hidden": shouldShowCancelButton ? undefined : 'true', type: "button", tabIndex: mode === 'ios' && !shouldShowCancelButton ? -1 : undefined, onMouseDown: this.onCancelSearchbar, onTouchStart: this.onCancelSearchbar, class: "searchbar-cancel-button" }, index.h("div", { "aria-hidden": "true" }, mode === 'md'
|
|
314
|
-
? index.h("ion-icon", { "aria-hidden": "true", mode: mode, icon: this.cancelButtonIcon, lazy: false })
|
|
315
|
-
: cancelButtonText)));
|
|
316
|
-
return (index.h(index.Host, { role: "search", "aria-disabled": this.disabled ? 'true' : null, class: Object.assign(Object.assign({}, theme.createColorClasses(this.color)), { [mode]: true, 'searchbar-animated': animated, 'searchbar-disabled': this.disabled, 'searchbar-no-animate': animated && this.noAnimate, 'searchbar-has-value': this.hasValue(), 'searchbar-left-aligned': this.shouldAlignLeft, 'searchbar-has-focus': this.focused, 'searchbar-should-show-cancel': this.shouldShowCancelButton() }) }, index.h("div", { class: "searchbar-input-container" }, index.h("input", { "aria-label": "search text", disabled: this.disabled, ref: el => this.nativeInput = el, class: "searchbar-input", inputMode: this.inputmode, enterKeyHint: this.enterkeyhint, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, placeholder: this.placeholder, type: this.type, value: this.getValue(), autoComplete: this.autocomplete, autoCorrect: this.autocorrect, spellCheck: this.spellcheck }), mode === 'md' && cancelButton, index.h("ion-icon", { "aria-hidden": "true", mode: mode, icon: searchIcon, lazy: false, class: "searchbar-search-icon" }), index.h("button", { "aria-label": "reset", type: "button", "no-blur": true, class: "searchbar-clear-button", onMouseDown: this.onClearInput, onTouchStart: this.onClearInput }, index.h("ion-icon", { "aria-hidden": "true", mode: mode, icon: clearIcon, lazy: false, class: "searchbar-clear-icon" }))), mode === 'ios' && cancelButton));
|
|
317
|
-
}
|
|
318
|
-
get el() { return index.getElement(this); }
|
|
319
|
-
static get watchers() { return {
|
|
320
|
-
"debounce": ["debounceChanged"],
|
|
321
|
-
"value": ["valueChanged"],
|
|
322
|
-
"showCancelButton": ["showCancelButtonChanged"]
|
|
323
|
-
}; }
|
|
324
|
-
};
|
|
325
|
-
Searchbar.style = {
|
|
326
|
-
ios: searchbarIosCss,
|
|
327
|
-
md: searchbarMdCss
|
|
328
|
-
};
|
|
329
|
-
|
|
330
|
-
exports.ion_searchbar = Searchbar;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-8fe0df8d.js');
|
|
6
|
-
const ionicGlobal = require('./ionic-global-581fb4f8.js');
|
|
7
|
-
const theme = require('./theme-81caa5b0.js');
|
|
8
|
-
|
|
9
|
-
const titleIosCss = ":host{--color:initial;display:flex;flex:1;align-items:center;transform:translateZ(0);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}.toolbar-title{display:block;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;pointer-events:auto}:host(.title-small) .toolbar-title{white-space:normal}:host{left:0;top:0;padding-left:90px;padding-right:90px;padding-top:0;padding-bottom:0;position:absolute;width:100%;height:100%;transform:translateZ(0);font-size:17px;font-weight:600;text-align:center;box-sizing:border-box;pointer-events:none}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:90px;padding-inline-start:90px;-webkit-padding-end:90px;padding-inline-end:90px}}:host(.title-small){padding-left:9px;padding-right:9px;padding-top:6px;padding-bottom:16px;position:relative;font-size:13px;font-weight:normal}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.title-small){padding-left:unset;padding-right:unset;-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px}}:host(.title-large){padding-left:16px;padding-right:16px;padding-top:0;padding-bottom:0;bottom:0;align-items:flex-end;min-width:100%;padding-bottom:6px;font-size:34px;font-weight:700;text-align:start}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.title-large){padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}:host(.title-large.ion-cloned-element){--color:var(--ion-text-color, #000)}";
|
|
10
|
-
|
|
11
|
-
const titleMdCss = ":host{--color:initial;display:flex;flex:1;align-items:center;transform:translateZ(0);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}.toolbar-title{display:block;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;pointer-events:auto}:host(.title-small) .toolbar-title{white-space:normal}:host{padding-left:20px;padding-right:20px;padding-top:0;padding-bottom:0;font-size:20px;font-weight:500;letter-spacing:0.0125em}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px}}:host(.title-small){width:100%;height:100%;font-size:15px;font-weight:normal}";
|
|
12
|
-
|
|
13
|
-
const ToolbarTitle = class {
|
|
14
|
-
constructor(hostRef) {
|
|
15
|
-
index.registerInstance(this, hostRef);
|
|
16
|
-
this.ionStyle = index.createEvent(this, "ionStyle", 7);
|
|
17
|
-
}
|
|
18
|
-
sizeChanged() {
|
|
19
|
-
this.emitStyle();
|
|
20
|
-
}
|
|
21
|
-
connectedCallback() {
|
|
22
|
-
this.emitStyle();
|
|
23
|
-
}
|
|
24
|
-
emitStyle() {
|
|
25
|
-
const size = this.getSize();
|
|
26
|
-
this.ionStyle.emit({
|
|
27
|
-
[`title-${size}`]: true
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
getSize() {
|
|
31
|
-
return (this.size !== undefined) ? this.size : 'default';
|
|
32
|
-
}
|
|
33
|
-
render() {
|
|
34
|
-
const mode = ionicGlobal.getIonMode(this);
|
|
35
|
-
const size = this.getSize();
|
|
36
|
-
return (index.h(index.Host, { class: Object.assign({ [mode]: true, [`title-${size}`]: true }, theme.createColorClasses(this.color)) }, index.h("div", { class: "toolbar-title" }, index.h("slot", null))));
|
|
37
|
-
}
|
|
38
|
-
get el() { return index.getElement(this); }
|
|
39
|
-
static get watchers() { return {
|
|
40
|
-
"size": ["sizeChanged"]
|
|
41
|
-
}; }
|
|
42
|
-
};
|
|
43
|
-
ToolbarTitle.style = {
|
|
44
|
-
ios: titleIosCss,
|
|
45
|
-
md: titleMdCss
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
exports.ion_title = ToolbarTitle;
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-8fe0df8d.js');
|
|
6
|
-
require('./index-5e2cc9e9.js');
|
|
7
|
-
const change = require('./change-cdb1e8c0.js');
|
|
8
|
-
const locale = require('./locale-d4e925b1.js');
|
|
9
|
-
require('./_commonjsHelpers-bcc1208a.js');
|
|
10
|
-
|
|
11
|
-
const title = "Prayers and Thanksgivings";
|
|
12
|
-
const EN = {
|
|
13
|
-
title: title
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
const prayersAndThanksgivingsCss = ".padded.sc-ldf-prayers-and-thanksgivings{padding-left:14px}";
|
|
17
|
-
|
|
18
|
-
const LOCALE = {
|
|
19
|
-
'en': EN,
|
|
20
|
-
};
|
|
21
|
-
const PrayersAndThanksgivingsComponent = class {
|
|
22
|
-
constructor(hostRef) {
|
|
23
|
-
index.registerInstance(this, hostRef);
|
|
24
|
-
this.ldfAskForPrayersAndThanksgivings = index.createEvent(this, "ldfAskForPrayersAndThanksgivings", 7);
|
|
25
|
-
this.localeStrings = {};
|
|
26
|
-
this.filter = '';
|
|
27
|
-
}
|
|
28
|
-
optionsChange(newOptions) {
|
|
29
|
-
this.currentOptions = newOptions;
|
|
30
|
-
}
|
|
31
|
-
/** Set the list of available prayers */
|
|
32
|
-
async setOptions(options) {
|
|
33
|
-
this.optionsChange(options);
|
|
34
|
-
if (this.loading) {
|
|
35
|
-
this.loading.dismiss();
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
// Lifecycle events
|
|
39
|
-
async componentWillLoad() {
|
|
40
|
-
this.ldfAskForPrayersAndThanksgivings.emit(true);
|
|
41
|
-
this.loadLocaleStrings();
|
|
42
|
-
}
|
|
43
|
-
// Private methods
|
|
44
|
-
async loadLocaleStrings() {
|
|
45
|
-
try {
|
|
46
|
-
this.localeStrings = LOCALE[locale.getComponentClosestLanguage(this.element)];
|
|
47
|
-
}
|
|
48
|
-
catch (e) {
|
|
49
|
-
console.warn(e);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
addPrayer(value) {
|
|
53
|
-
var _a;
|
|
54
|
-
this.parent.ldfDocShouldChange.emit(new change.Change({
|
|
55
|
-
path: this.base,
|
|
56
|
-
op: [{
|
|
57
|
-
type: 'insertAt',
|
|
58
|
-
index: this.index,
|
|
59
|
-
value
|
|
60
|
-
}]
|
|
61
|
-
}));
|
|
62
|
-
(_a = this.modal) === null || _a === void 0 ? void 0 : _a.dismiss();
|
|
63
|
-
}
|
|
64
|
-
buildTree() {
|
|
65
|
-
function groupBy(list, keyGetter) {
|
|
66
|
-
const map = new Map();
|
|
67
|
-
list.forEach((item) => {
|
|
68
|
-
const key = keyGetter(item);
|
|
69
|
-
const collection = map.get(key);
|
|
70
|
-
if (!collection) {
|
|
71
|
-
map.set(key, [item]);
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
collection.push(item);
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
return map;
|
|
78
|
-
}
|
|
79
|
-
const categories = Array.from(groupBy((this.currentOptions || []), (item) => (item.category || [])[1]));
|
|
80
|
-
const subcategories = categories.map(([categoryLabel, values]) => [categoryLabel, Array.from(groupBy(values, (item) => (item.category || [])[2]))]);
|
|
81
|
-
return subcategories;
|
|
82
|
-
}
|
|
83
|
-
// Render
|
|
84
|
-
render() {
|
|
85
|
-
const localeStrings = this.localeStrings || {};
|
|
86
|
-
const tree = this.buildTree();
|
|
87
|
-
return [
|
|
88
|
-
index.h("ion-header", null, index.h("ion-toolbar", null, index.h("ion-title", null, localeStrings.title), index.h("ion-buttons", { slot: "end" }, index.h("ion-button", { onClick: () => this.modal.dismiss() }, index.h("ion-icon", { slot: "icon-only", name: "close" }))))),
|
|
89
|
-
index.h("ion-content", { class: "ion-padding" }, index.h("ion-searchbar", { debounce: 100, onIonChange: (ev) => this.filter = ev.detail.value }), tree.map(([category, values]) => [
|
|
90
|
-
index.h("h2", { class: "padded" }, category),
|
|
91
|
-
...values.map(([subcategory, subvalues]) => [
|
|
92
|
-
index.h("h3", { class: "padded" }, subcategory),
|
|
93
|
-
...subvalues
|
|
94
|
-
.sort((a, b) => { var _a, _b; return Number((_a = a.label) === null || _a === void 0 ? void 0 : _a.split('.')[0]) < Number((_b = b.label) === null || _b === void 0 ? void 0 : _b.split('.')[0]) ? -1 : 1; })
|
|
95
|
-
.filter(option => !this.filter || option.label.includes(this.filter) || option.value[0].includes(this.filter))
|
|
96
|
-
.map(option => index.h("ion-item", { button: true, onClick: () => this.addPrayer(option) }, index.h("ion-label", null, index.h("h3", null, option.label), index.h("p", null, option.value[0].replace(/\*/g, '')))))
|
|
97
|
-
])
|
|
98
|
-
]), index.h("ion-list", null))
|
|
99
|
-
];
|
|
100
|
-
}
|
|
101
|
-
get element() { return index.getElement(this); }
|
|
102
|
-
static get watchers() { return {
|
|
103
|
-
"options": ["optionsChange"]
|
|
104
|
-
}; }
|
|
105
|
-
};
|
|
106
|
-
PrayersAndThanksgivingsComponent.style = prayersAndThanksgivingsCss;
|
|
107
|
-
|
|
108
|
-
exports.ldf_prayers_and_thanksgivings = PrayersAndThanksgivingsComponent;
|