@elurjs/ionic 1.6.1
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/CHANGELOG.md +287 -0
- package/MIGRATION.md +221 -0
- package/README.md +695 -0
- package/dist/lib/IonRouterOutlet.d.ts +154 -0
- package/dist/lib/__tests__/IonRouterOutlet.test.d.ts +1 -0
- package/dist/lib/__tests__/bundles.test.d.ts +1 -0
- package/dist/lib/__tests__/cache-policy.test.d.ts +1 -0
- package/dist/lib/__tests__/capacitor.test.d.ts +1 -0
- package/dist/lib/__tests__/components.test.d.ts +1 -0
- package/dist/lib/__tests__/devtools.test.d.ts +1 -0
- package/dist/lib/__tests__/lifecycle.test.d.ts +1 -0
- package/dist/lib/__tests__/mocks/ionic.d.ts +61 -0
- package/dist/lib/__tests__/navigation.test.d.ts +1 -0
- package/dist/lib/__tests__/overlays.test.d.ts +1 -0
- package/dist/lib/__tests__/page-state.test.d.ts +1 -0
- package/dist/lib/__tests__/phase0-bugs.test.d.ts +1 -0
- package/dist/lib/__tests__/setup.d.ts +1 -0
- package/dist/lib/__tests__/setup.test.d.ts +1 -0
- package/dist/lib/__tests__/tabs.test.d.ts +1 -0
- package/dist/lib/__tests__/vite-plugin.test.d.ts +1 -0
- package/dist/lib/bundles/all.cjs +2 -0
- package/dist/lib/bundles/all.cjs.map +1 -0
- package/dist/lib/bundles/all.d.ts +16 -0
- package/dist/lib/bundles/all.js +21 -0
- package/dist/lib/bundles/all.js.map +1 -0
- package/dist/lib/bundles/buttons.cjs +2 -0
- package/dist/lib/bundles/buttons.cjs.map +1 -0
- package/dist/lib/bundles/buttons.d.ts +7 -0
- package/dist/lib/bundles/buttons.js +17 -0
- package/dist/lib/bundles/buttons.js.map +1 -0
- package/dist/lib/bundles/feedback.cjs +2 -0
- package/dist/lib/bundles/feedback.cjs.map +1 -0
- package/dist/lib/bundles/feedback.d.ts +8 -0
- package/dist/lib/bundles/feedback.js +19 -0
- package/dist/lib/bundles/feedback.js.map +1 -0
- package/dist/lib/bundles/forms.cjs +2 -0
- package/dist/lib/bundles/forms.cjs.map +1 -0
- package/dist/lib/bundles/forms.d.ts +11 -0
- package/dist/lib/bundles/forms.js +47 -0
- package/dist/lib/bundles/forms.js.map +1 -0
- package/dist/lib/bundles/layout.cjs +2 -0
- package/dist/lib/bundles/layout.cjs.map +1 -0
- package/dist/lib/bundles/layout.d.ts +9 -0
- package/dist/lib/bundles/layout.js +33 -0
- package/dist/lib/bundles/layout.js.map +1 -0
- package/dist/lib/bundles/lists.cjs +2 -0
- package/dist/lib/bundles/lists.cjs.map +1 -0
- package/dist/lib/bundles/lists.d.ts +15 -0
- package/dist/lib/bundles/lists.js +65 -0
- package/dist/lib/bundles/lists.js.map +1 -0
- package/dist/lib/bundles/navigation.cjs +2 -0
- package/dist/lib/bundles/navigation.cjs.map +1 -0
- package/dist/lib/bundles/navigation.d.ts +9 -0
- package/dist/lib/bundles/navigation.js +29 -0
- package/dist/lib/bundles/navigation.js.map +1 -0
- package/dist/lib/bundles/overlays.cjs +2 -0
- package/dist/lib/bundles/overlays.cjs.map +1 -0
- package/dist/lib/bundles/overlays.d.ts +9 -0
- package/dist/lib/bundles/overlays.js +25 -0
- package/dist/lib/bundles/overlays.js.map +1 -0
- package/dist/lib/capacitor.cjs +2 -0
- package/dist/lib/capacitor.cjs.map +1 -0
- package/dist/lib/capacitor.d.ts +217 -0
- package/dist/lib/capacitor.js +223 -0
- package/dist/lib/capacitor.js.map +1 -0
- package/dist/lib/components/accordion-group.cjs +1 -0
- package/dist/lib/components/accordion-group.d.ts +11 -0
- package/dist/lib/components/accordion-group.js +2 -0
- package/dist/lib/components/accordion.cjs +1 -0
- package/dist/lib/components/accordion.d.ts +11 -0
- package/dist/lib/components/accordion.js +2 -0
- package/dist/lib/components/action-sheet.cjs +1 -0
- package/dist/lib/components/action-sheet.d.ts +11 -0
- package/dist/lib/components/action-sheet.js +2 -0
- package/dist/lib/components/alert.cjs +1 -0
- package/dist/lib/components/alert.d.ts +11 -0
- package/dist/lib/components/alert.js +2 -0
- package/dist/lib/components/avatar.cjs +1 -0
- package/dist/lib/components/avatar.d.ts +11 -0
- package/dist/lib/components/avatar.js +2 -0
- package/dist/lib/components/backdrop.cjs +1 -0
- package/dist/lib/components/backdrop.d.ts +11 -0
- package/dist/lib/components/backdrop.js +2 -0
- package/dist/lib/components/badge.cjs +1 -0
- package/dist/lib/components/badge.d.ts +11 -0
- package/dist/lib/components/badge.js +2 -0
- package/dist/lib/components/breadcrumb.cjs +1 -0
- package/dist/lib/components/breadcrumb.d.ts +11 -0
- package/dist/lib/components/breadcrumb.js +2 -0
- package/dist/lib/components/breadcrumbs.cjs +1 -0
- package/dist/lib/components/breadcrumbs.d.ts +11 -0
- package/dist/lib/components/breadcrumbs.js +2 -0
- package/dist/lib/components/button.cjs +1 -0
- package/dist/lib/components/button.d.ts +11 -0
- package/dist/lib/components/button.js +2 -0
- package/dist/lib/components/buttons.cjs +1 -0
- package/dist/lib/components/buttons.d.ts +11 -0
- package/dist/lib/components/buttons.js +2 -0
- package/dist/lib/components/card-content.cjs +1 -0
- package/dist/lib/components/card-content.d.ts +11 -0
- package/dist/lib/components/card-content.js +2 -0
- package/dist/lib/components/card-header.cjs +1 -0
- package/dist/lib/components/card-header.d.ts +11 -0
- package/dist/lib/components/card-header.js +2 -0
- package/dist/lib/components/card-subtitle.cjs +1 -0
- package/dist/lib/components/card-subtitle.d.ts +11 -0
- package/dist/lib/components/card-subtitle.js +2 -0
- package/dist/lib/components/card-title.cjs +1 -0
- package/dist/lib/components/card-title.d.ts +11 -0
- package/dist/lib/components/card-title.js +2 -0
- package/dist/lib/components/card.cjs +1 -0
- package/dist/lib/components/card.d.ts +11 -0
- package/dist/lib/components/card.js +2 -0
- package/dist/lib/components/checkbox.cjs +1 -0
- package/dist/lib/components/checkbox.d.ts +11 -0
- package/dist/lib/components/checkbox.js +2 -0
- package/dist/lib/components/chip.cjs +1 -0
- package/dist/lib/components/chip.d.ts +11 -0
- package/dist/lib/components/chip.js +2 -0
- package/dist/lib/components/col.cjs +1 -0
- package/dist/lib/components/col.d.ts +11 -0
- package/dist/lib/components/col.js +2 -0
- package/dist/lib/components/content.cjs +1 -0
- package/dist/lib/components/content.d.ts +11 -0
- package/dist/lib/components/content.js +2 -0
- package/dist/lib/components/datetime-button.cjs +1 -0
- package/dist/lib/components/datetime-button.d.ts +11 -0
- package/dist/lib/components/datetime-button.js +2 -0
- package/dist/lib/components/datetime.cjs +1 -0
- package/dist/lib/components/datetime.d.ts +11 -0
- package/dist/lib/components/datetime.js +2 -0
- package/dist/lib/components/fab-button.cjs +1 -0
- package/dist/lib/components/fab-button.d.ts +11 -0
- package/dist/lib/components/fab-button.js +2 -0
- package/dist/lib/components/fab-list.cjs +1 -0
- package/dist/lib/components/fab-list.d.ts +11 -0
- package/dist/lib/components/fab-list.js +2 -0
- package/dist/lib/components/fab.cjs +1 -0
- package/dist/lib/components/fab.d.ts +11 -0
- package/dist/lib/components/fab.js +2 -0
- package/dist/lib/components/footer.cjs +1 -0
- package/dist/lib/components/footer.d.ts +11 -0
- package/dist/lib/components/footer.js +2 -0
- package/dist/lib/components/grid.cjs +1 -0
- package/dist/lib/components/grid.d.ts +11 -0
- package/dist/lib/components/grid.js +2 -0
- package/dist/lib/components/header.cjs +1 -0
- package/dist/lib/components/header.d.ts +11 -0
- package/dist/lib/components/header.js +2 -0
- package/dist/lib/components/img.cjs +1 -0
- package/dist/lib/components/img.d.ts +11 -0
- package/dist/lib/components/img.js +2 -0
- package/dist/lib/components/infinite-scroll-content.cjs +1 -0
- package/dist/lib/components/infinite-scroll-content.d.ts +11 -0
- package/dist/lib/components/infinite-scroll-content.js +2 -0
- package/dist/lib/components/infinite-scroll.cjs +1 -0
- package/dist/lib/components/infinite-scroll.d.ts +11 -0
- package/dist/lib/components/infinite-scroll.js +2 -0
- package/dist/lib/components/input-otp.cjs +1 -0
- package/dist/lib/components/input-otp.d.ts +11 -0
- package/dist/lib/components/input-otp.js +2 -0
- package/dist/lib/components/input-password-toggle.cjs +1 -0
- package/dist/lib/components/input-password-toggle.d.ts +11 -0
- package/dist/lib/components/input-password-toggle.js +2 -0
- package/dist/lib/components/input.cjs +1 -0
- package/dist/lib/components/input.d.ts +11 -0
- package/dist/lib/components/input.js +2 -0
- package/dist/lib/components/item-divider.cjs +1 -0
- package/dist/lib/components/item-divider.d.ts +11 -0
- package/dist/lib/components/item-divider.js +2 -0
- package/dist/lib/components/item-group.cjs +1 -0
- package/dist/lib/components/item-group.d.ts +11 -0
- package/dist/lib/components/item-group.js +2 -0
- package/dist/lib/components/item-option.cjs +1 -0
- package/dist/lib/components/item-option.d.ts +11 -0
- package/dist/lib/components/item-option.js +2 -0
- package/dist/lib/components/item-options.cjs +1 -0
- package/dist/lib/components/item-options.d.ts +11 -0
- package/dist/lib/components/item-options.js +2 -0
- package/dist/lib/components/item-sliding.cjs +1 -0
- package/dist/lib/components/item-sliding.d.ts +11 -0
- package/dist/lib/components/item-sliding.js +2 -0
- package/dist/lib/components/item.cjs +1 -0
- package/dist/lib/components/item.d.ts +11 -0
- package/dist/lib/components/item.js +2 -0
- package/dist/lib/components/label.cjs +1 -0
- package/dist/lib/components/label.d.ts +11 -0
- package/dist/lib/components/label.js +2 -0
- package/dist/lib/components/list-header.cjs +1 -0
- package/dist/lib/components/list-header.d.ts +11 -0
- package/dist/lib/components/list-header.js +2 -0
- package/dist/lib/components/list.cjs +1 -0
- package/dist/lib/components/list.d.ts +11 -0
- package/dist/lib/components/list.js +2 -0
- package/dist/lib/components/loading.cjs +1 -0
- package/dist/lib/components/loading.d.ts +11 -0
- package/dist/lib/components/loading.js +2 -0
- package/dist/lib/components/manifest.cjs +2 -0
- package/dist/lib/components/manifest.cjs.map +1 -0
- package/dist/lib/components/manifest.d.ts +43 -0
- package/dist/lib/components/manifest.js +647 -0
- package/dist/lib/components/manifest.js.map +1 -0
- package/dist/lib/components/menu-button.cjs +1 -0
- package/dist/lib/components/menu-button.d.ts +11 -0
- package/dist/lib/components/menu-button.js +2 -0
- package/dist/lib/components/menu-toggle.cjs +1 -0
- package/dist/lib/components/menu-toggle.d.ts +11 -0
- package/dist/lib/components/menu-toggle.js +2 -0
- package/dist/lib/components/menu.cjs +1 -0
- package/dist/lib/components/menu.d.ts +11 -0
- package/dist/lib/components/menu.js +2 -0
- package/dist/lib/components/modal.cjs +1 -0
- package/dist/lib/components/modal.d.ts +11 -0
- package/dist/lib/components/modal.js +2 -0
- package/dist/lib/components/nav-link.cjs +1 -0
- package/dist/lib/components/nav-link.d.ts +11 -0
- package/dist/lib/components/nav-link.js +2 -0
- package/dist/lib/components/nav.cjs +1 -0
- package/dist/lib/components/nav.d.ts +11 -0
- package/dist/lib/components/nav.js +2 -0
- package/dist/lib/components/note.cjs +1 -0
- package/dist/lib/components/note.d.ts +11 -0
- package/dist/lib/components/note.js +2 -0
- package/dist/lib/components/picker-column-option.cjs +1 -0
- package/dist/lib/components/picker-column-option.d.ts +11 -0
- package/dist/lib/components/picker-column-option.js +2 -0
- package/dist/lib/components/picker-column.cjs +1 -0
- package/dist/lib/components/picker-column.d.ts +11 -0
- package/dist/lib/components/picker-column.js +2 -0
- package/dist/lib/components/picker.cjs +1 -0
- package/dist/lib/components/picker.d.ts +11 -0
- package/dist/lib/components/picker.js +2 -0
- package/dist/lib/components/popover.cjs +1 -0
- package/dist/lib/components/popover.d.ts +11 -0
- package/dist/lib/components/popover.js +2 -0
- package/dist/lib/components/progress-bar.cjs +1 -0
- package/dist/lib/components/progress-bar.d.ts +11 -0
- package/dist/lib/components/progress-bar.js +2 -0
- package/dist/lib/components/radio-group.cjs +1 -0
- package/dist/lib/components/radio-group.d.ts +11 -0
- package/dist/lib/components/radio-group.js +2 -0
- package/dist/lib/components/radio.cjs +1 -0
- package/dist/lib/components/radio.d.ts +11 -0
- package/dist/lib/components/radio.js +2 -0
- package/dist/lib/components/range.cjs +1 -0
- package/dist/lib/components/range.d.ts +11 -0
- package/dist/lib/components/range.js +2 -0
- package/dist/lib/components/refresher-content.cjs +1 -0
- package/dist/lib/components/refresher-content.d.ts +11 -0
- package/dist/lib/components/refresher-content.js +2 -0
- package/dist/lib/components/refresher.cjs +1 -0
- package/dist/lib/components/refresher.d.ts +11 -0
- package/dist/lib/components/refresher.js +2 -0
- package/dist/lib/components/reorder-group.cjs +1 -0
- package/dist/lib/components/reorder-group.d.ts +11 -0
- package/dist/lib/components/reorder-group.js +2 -0
- package/dist/lib/components/reorder.cjs +1 -0
- package/dist/lib/components/reorder.d.ts +11 -0
- package/dist/lib/components/reorder.js +2 -0
- package/dist/lib/components/ripple-effect.cjs +1 -0
- package/dist/lib/components/ripple-effect.d.ts +11 -0
- package/dist/lib/components/ripple-effect.js +2 -0
- package/dist/lib/components/router-link.cjs +1 -0
- package/dist/lib/components/router-link.d.ts +11 -0
- package/dist/lib/components/router-link.js +2 -0
- package/dist/lib/components/row.cjs +1 -0
- package/dist/lib/components/row.d.ts +11 -0
- package/dist/lib/components/row.js +2 -0
- package/dist/lib/components/searchbar.cjs +1 -0
- package/dist/lib/components/searchbar.d.ts +11 -0
- package/dist/lib/components/searchbar.js +2 -0
- package/dist/lib/components/segment-button.cjs +1 -0
- package/dist/lib/components/segment-button.d.ts +11 -0
- package/dist/lib/components/segment-button.js +2 -0
- package/dist/lib/components/segment-content.cjs +1 -0
- package/dist/lib/components/segment-content.d.ts +11 -0
- package/dist/lib/components/segment-content.js +2 -0
- package/dist/lib/components/segment-view.cjs +1 -0
- package/dist/lib/components/segment-view.d.ts +11 -0
- package/dist/lib/components/segment-view.js +2 -0
- package/dist/lib/components/segment.cjs +1 -0
- package/dist/lib/components/segment.d.ts +11 -0
- package/dist/lib/components/segment.js +2 -0
- package/dist/lib/components/select-modal.cjs +1 -0
- package/dist/lib/components/select-modal.d.ts +11 -0
- package/dist/lib/components/select-modal.js +2 -0
- package/dist/lib/components/select-option.cjs +1 -0
- package/dist/lib/components/select-option.d.ts +11 -0
- package/dist/lib/components/select-option.js +2 -0
- package/dist/lib/components/select-popover.cjs +1 -0
- package/dist/lib/components/select-popover.d.ts +11 -0
- package/dist/lib/components/select-popover.js +2 -0
- package/dist/lib/components/select.cjs +1 -0
- package/dist/lib/components/select.d.ts +11 -0
- package/dist/lib/components/select.js +2 -0
- package/dist/lib/components/skeleton-text.cjs +1 -0
- package/dist/lib/components/skeleton-text.d.ts +11 -0
- package/dist/lib/components/skeleton-text.js +2 -0
- package/dist/lib/components/spinner.cjs +1 -0
- package/dist/lib/components/spinner.d.ts +11 -0
- package/dist/lib/components/spinner.js +2 -0
- package/dist/lib/components/split-pane.cjs +1 -0
- package/dist/lib/components/split-pane.d.ts +11 -0
- package/dist/lib/components/split-pane.js +2 -0
- package/dist/lib/components/tab-bar.cjs +1 -0
- package/dist/lib/components/tab-bar.d.ts +11 -0
- package/dist/lib/components/tab-bar.js +2 -0
- package/dist/lib/components/tab-button.cjs +1 -0
- package/dist/lib/components/tab-button.d.ts +11 -0
- package/dist/lib/components/tab-button.js +2 -0
- package/dist/lib/components/tab.cjs +1 -0
- package/dist/lib/components/tab.d.ts +11 -0
- package/dist/lib/components/tab.js +2 -0
- package/dist/lib/components/tabs.cjs +1 -0
- package/dist/lib/components/tabs.d.ts +11 -0
- package/dist/lib/components/tabs.js +2 -0
- package/dist/lib/components/text.cjs +1 -0
- package/dist/lib/components/text.d.ts +11 -0
- package/dist/lib/components/text.js +2 -0
- package/dist/lib/components/textarea.cjs +1 -0
- package/dist/lib/components/textarea.d.ts +11 -0
- package/dist/lib/components/textarea.js +2 -0
- package/dist/lib/components/thumbnail.cjs +1 -0
- package/dist/lib/components/thumbnail.d.ts +11 -0
- package/dist/lib/components/thumbnail.js +2 -0
- package/dist/lib/components/title.cjs +1 -0
- package/dist/lib/components/title.d.ts +11 -0
- package/dist/lib/components/title.js +2 -0
- package/dist/lib/components/toast.cjs +1 -0
- package/dist/lib/components/toast.d.ts +11 -0
- package/dist/lib/components/toast.js +2 -0
- package/dist/lib/components/toggle.cjs +1 -0
- package/dist/lib/components/toggle.d.ts +11 -0
- package/dist/lib/components/toggle.js +2 -0
- package/dist/lib/components/toolbar.cjs +1 -0
- package/dist/lib/components/toolbar.d.ts +11 -0
- package/dist/lib/components/toolbar.js +2 -0
- package/dist/lib/components.cjs +1 -0
- package/dist/lib/components.d.ts +110 -0
- package/dist/lib/components.js +94 -0
- package/dist/lib/definitions-CmPIrLhr.js +282 -0
- package/dist/lib/definitions-CmPIrLhr.js.map +1 -0
- package/dist/lib/definitions-CrcjkKEd.cjs +2 -0
- package/dist/lib/definitions-CrcjkKEd.cjs.map +1 -0
- package/dist/lib/devtools.cjs +2 -0
- package/dist/lib/devtools.cjs.map +1 -0
- package/dist/lib/devtools.d.ts +54 -0
- package/dist/lib/devtools.js +46 -0
- package/dist/lib/devtools.js.map +1 -0
- package/dist/lib/elur-ionic.cjs +1 -0
- package/dist/lib/elur-ionic.cjs.map +1 -0
- package/dist/lib/elur-ionic.js +1 -0
- package/dist/lib/elur-ionic.js.map +1 -0
- package/dist/lib/index.d.ts +47 -0
- package/dist/lib/lifecycle.d.ts +62 -0
- package/dist/lib/navigation.cjs +2 -0
- package/dist/lib/navigation.cjs.map +1 -0
- package/dist/lib/navigation.d.ts +214 -0
- package/dist/lib/navigation.js +205 -0
- package/dist/lib/navigation.js.map +1 -0
- package/dist/lib/overlays.cjs +2 -0
- package/dist/lib/overlays.cjs.map +1 -0
- package/dist/lib/overlays.d.ts +400 -0
- package/dist/lib/overlays.js +161 -0
- package/dist/lib/overlays.js.map +1 -0
- package/dist/lib/page-state.cjs +2 -0
- package/dist/lib/page-state.cjs.map +1 -0
- package/dist/lib/page-state.d.ts +160 -0
- package/dist/lib/page-state.js +91 -0
- package/dist/lib/page-state.js.map +1 -0
- package/dist/lib/setup.d.ts +105 -0
- package/dist/lib/tabs-ByPLrzax.cjs +50 -0
- package/dist/lib/tabs-ByPLrzax.cjs.map +1 -0
- package/dist/lib/tabs-DjD1_PTM.js +178 -0
- package/dist/lib/tabs-DjD1_PTM.js.map +1 -0
- package/dist/lib/tabs.cjs +1 -0
- package/dist/lib/tabs.d.ts +83 -0
- package/dist/lib/tabs.js +2 -0
- package/dist/lib/vite-plugin.cjs +38 -0
- package/dist/lib/vite-plugin.cjs.map +1 -0
- package/dist/lib/vite-plugin.d.ts +61 -0
- package/dist/lib/vite-plugin.js +25411 -0
- package/dist/lib/vite-plugin.js.map +1 -0
- package/dist/lib/web-Bnz2Zs_W.cjs +2 -0
- package/dist/lib/web-Bnz2Zs_W.cjs.map +1 -0
- package/dist/lib/web-Ce5OM4dv.js +56 -0
- package/dist/lib/web-Ce5OM4dv.js.map +1 -0
- package/package.json +216 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require("./definitions-CrcjkKEd.cjs");var t=class extends e.r{constructor(){super(...arguments),this.selectionStarted=!1}async impact(e){let t=this.patternForImpact(e?.style);this.vibrateWithPattern(t)}async notification(e){let t=this.patternForNotification(e?.type);this.vibrateWithPattern(t)}async vibrate(e){let t=e?.duration||300;this.vibrateWithPattern([t])}async selectionStart(){this.selectionStarted=!0}async selectionChanged(){this.selectionStarted&&this.vibrateWithPattern([70])}async selectionEnd(){this.selectionStarted=!1}patternForImpact(t=e.t.Heavy){return t===e.t.Medium?[43]:t===e.t.Light?[20]:[61]}patternForNotification(t=e.n.Success){return t===e.n.Warning?[30,40,30,50,60]:t===e.n.Error?[27,45,50]:[35,65,21]}vibrateWithPattern(e){if(navigator.vibrate)navigator.vibrate(e);else throw this.unavailable(`Browser does not support the vibrate API`)}};exports.HapticsWeb=t;
|
|
2
|
+
//# sourceMappingURL=web-Bnz2Zs_W.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-Bnz2Zs_W.cjs","names":["WebPlugin","ImpactStyle","NotificationType"],"sources":["../../node_modules/@capacitor/haptics/dist/esm/web.js"],"sourcesContent":["import { WebPlugin } from '@capacitor/core';\nimport { ImpactStyle, NotificationType } from './definitions';\nexport class HapticsWeb extends WebPlugin {\n constructor() {\n super(...arguments);\n this.selectionStarted = false;\n }\n async impact(options) {\n const pattern = this.patternForImpact(options === null || options === void 0 ? void 0 : options.style);\n this.vibrateWithPattern(pattern);\n }\n async notification(options) {\n const pattern = this.patternForNotification(options === null || options === void 0 ? void 0 : options.type);\n this.vibrateWithPattern(pattern);\n }\n async vibrate(options) {\n const duration = (options === null || options === void 0 ? void 0 : options.duration) || 300;\n this.vibrateWithPattern([duration]);\n }\n async selectionStart() {\n this.selectionStarted = true;\n }\n async selectionChanged() {\n if (this.selectionStarted) {\n this.vibrateWithPattern([70]);\n }\n }\n async selectionEnd() {\n this.selectionStarted = false;\n }\n patternForImpact(style = ImpactStyle.Heavy) {\n if (style === ImpactStyle.Medium) {\n return [43];\n }\n else if (style === ImpactStyle.Light) {\n return [20];\n }\n return [61];\n }\n patternForNotification(type = NotificationType.Success) {\n if (type === NotificationType.Warning) {\n return [30, 40, 30, 50, 60];\n }\n else if (type === NotificationType.Error) {\n return [27, 45, 50];\n }\n return [35, 65, 21];\n }\n vibrateWithPattern(pattern) {\n if (navigator.vibrate) {\n navigator.vibrate(pattern);\n }\n else {\n throw this.unavailable('Browser does not support the vibrate API');\n }\n }\n}\n//# sourceMappingURL=web.js.map"],"x_google_ignoreList":[0],"mappings":"8CAEA,IAAa,EAAb,cAAgCA,EAAAA,CAAU,CACtC,aAAc,CACV,MAAM,GAAG,SAAS,EAClB,KAAK,iBAAmB,EAC5B,CACA,MAAM,OAAO,EAAS,CAClB,IAAM,EAAU,KAAK,iBAAiB,GAA0D,KAAK,EACrG,KAAK,mBAAmB,CAAO,CACnC,CACA,MAAM,aAAa,EAAS,CACxB,IAAM,EAAU,KAAK,uBAAuB,GAA0D,IAAI,EAC1G,KAAK,mBAAmB,CAAO,CACnC,CACA,MAAM,QAAQ,EAAS,CACnB,IAAM,EAAY,GAA0D,UAAa,IACzF,KAAK,mBAAmB,CAAC,CAAQ,CAAC,CACtC,CACA,MAAM,gBAAiB,CACnB,KAAK,iBAAmB,EAC5B,CACA,MAAM,kBAAmB,CACjB,KAAK,kBACL,KAAK,mBAAmB,CAAC,EAAE,CAAC,CAEpC,CACA,MAAM,cAAe,CACjB,KAAK,iBAAmB,EAC5B,CACA,iBAAiB,EAAQC,EAAAA,EAAY,MAAO,CAOxC,OANI,IAAUA,EAAAA,EAAY,OACf,CAAC,EAAE,EAEL,IAAUA,EAAAA,EAAY,MACpB,CAAC,EAAE,EAEP,CAAC,EAAE,CACd,CACA,uBAAuB,EAAOC,EAAAA,EAAiB,QAAS,CAOpD,OANI,IAASA,EAAAA,EAAiB,QACnB,CAAC,GAAI,GAAI,GAAI,GAAI,EAAE,EAErB,IAASA,EAAAA,EAAiB,MACxB,CAAC,GAAI,GAAI,EAAE,EAEf,CAAC,GAAI,GAAI,EAAE,CACtB,CACA,mBAAmB,EAAS,CACxB,GAAI,UAAU,QACV,UAAU,QAAQ,CAAO,OAGzB,MAAM,KAAK,YAAY,0CAA0C,CAEzE,CACJ"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { n as e, r as t, t as n } from "./definitions-CmPIrLhr.js";
|
|
2
|
+
//#region node_modules/@capacitor/haptics/dist/esm/web.js
|
|
3
|
+
var r = class extends t {
|
|
4
|
+
constructor() {
|
|
5
|
+
super(...arguments), this.selectionStarted = !1;
|
|
6
|
+
}
|
|
7
|
+
async impact(e) {
|
|
8
|
+
let t = this.patternForImpact(e?.style);
|
|
9
|
+
this.vibrateWithPattern(t);
|
|
10
|
+
}
|
|
11
|
+
async notification(e) {
|
|
12
|
+
let t = this.patternForNotification(e?.type);
|
|
13
|
+
this.vibrateWithPattern(t);
|
|
14
|
+
}
|
|
15
|
+
async vibrate(e) {
|
|
16
|
+
let t = e?.duration || 300;
|
|
17
|
+
this.vibrateWithPattern([t]);
|
|
18
|
+
}
|
|
19
|
+
async selectionStart() {
|
|
20
|
+
this.selectionStarted = !0;
|
|
21
|
+
}
|
|
22
|
+
async selectionChanged() {
|
|
23
|
+
this.selectionStarted && this.vibrateWithPattern([70]);
|
|
24
|
+
}
|
|
25
|
+
async selectionEnd() {
|
|
26
|
+
this.selectionStarted = !1;
|
|
27
|
+
}
|
|
28
|
+
patternForImpact(e = n.Heavy) {
|
|
29
|
+
return e === n.Medium ? [43] : e === n.Light ? [20] : [61];
|
|
30
|
+
}
|
|
31
|
+
patternForNotification(t = e.Success) {
|
|
32
|
+
return t === e.Warning ? [
|
|
33
|
+
30,
|
|
34
|
+
40,
|
|
35
|
+
30,
|
|
36
|
+
50,
|
|
37
|
+
60
|
|
38
|
+
] : t === e.Error ? [
|
|
39
|
+
27,
|
|
40
|
+
45,
|
|
41
|
+
50
|
|
42
|
+
] : [
|
|
43
|
+
35,
|
|
44
|
+
65,
|
|
45
|
+
21
|
|
46
|
+
];
|
|
47
|
+
}
|
|
48
|
+
vibrateWithPattern(e) {
|
|
49
|
+
if (navigator.vibrate) navigator.vibrate(e);
|
|
50
|
+
else throw this.unavailable("Browser does not support the vibrate API");
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
//#endregion
|
|
54
|
+
export { r as HapticsWeb };
|
|
55
|
+
|
|
56
|
+
//# sourceMappingURL=web-Ce5OM4dv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-Ce5OM4dv.js","names":[],"sources":["../../node_modules/@capacitor/haptics/dist/esm/web.js"],"sourcesContent":["import { WebPlugin } from '@capacitor/core';\nimport { ImpactStyle, NotificationType } from './definitions';\nexport class HapticsWeb extends WebPlugin {\n constructor() {\n super(...arguments);\n this.selectionStarted = false;\n }\n async impact(options) {\n const pattern = this.patternForImpact(options === null || options === void 0 ? void 0 : options.style);\n this.vibrateWithPattern(pattern);\n }\n async notification(options) {\n const pattern = this.patternForNotification(options === null || options === void 0 ? void 0 : options.type);\n this.vibrateWithPattern(pattern);\n }\n async vibrate(options) {\n const duration = (options === null || options === void 0 ? void 0 : options.duration) || 300;\n this.vibrateWithPattern([duration]);\n }\n async selectionStart() {\n this.selectionStarted = true;\n }\n async selectionChanged() {\n if (this.selectionStarted) {\n this.vibrateWithPattern([70]);\n }\n }\n async selectionEnd() {\n this.selectionStarted = false;\n }\n patternForImpact(style = ImpactStyle.Heavy) {\n if (style === ImpactStyle.Medium) {\n return [43];\n }\n else if (style === ImpactStyle.Light) {\n return [20];\n }\n return [61];\n }\n patternForNotification(type = NotificationType.Success) {\n if (type === NotificationType.Warning) {\n return [30, 40, 30, 50, 60];\n }\n else if (type === NotificationType.Error) {\n return [27, 45, 50];\n }\n return [35, 65, 21];\n }\n vibrateWithPattern(pattern) {\n if (navigator.vibrate) {\n navigator.vibrate(pattern);\n }\n else {\n throw this.unavailable('Browser does not support the vibrate API');\n }\n }\n}\n//# sourceMappingURL=web.js.map"],"x_google_ignoreList":[0],"mappings":";;AAEA,IAAa,IAAb,cAAgC,EAAU;CACtC,cAAc;EAEV,AADA,MAAM,GAAG,SAAS,GAClB,KAAK,mBAAmB;CAC5B;CACA,MAAM,OAAO,GAAS;EAClB,IAAM,IAAU,KAAK,iBAAiB,GAA0D,KAAK;EACrG,KAAK,mBAAmB,CAAO;CACnC;CACA,MAAM,aAAa,GAAS;EACxB,IAAM,IAAU,KAAK,uBAAuB,GAA0D,IAAI;EAC1G,KAAK,mBAAmB,CAAO;CACnC;CACA,MAAM,QAAQ,GAAS;EACnB,IAAM,IAAY,GAA0D,YAAa;EACzF,KAAK,mBAAmB,CAAC,CAAQ,CAAC;CACtC;CACA,MAAM,iBAAiB;EACnB,KAAK,mBAAmB;CAC5B;CACA,MAAM,mBAAmB;EACrB,AAAI,KAAK,oBACL,KAAK,mBAAmB,CAAC,EAAE,CAAC;CAEpC;CACA,MAAM,eAAe;EACjB,KAAK,mBAAmB;CAC5B;CACA,iBAAiB,IAAQ,EAAY,OAAO;EAOxC,OANI,MAAU,EAAY,SACf,CAAC,EAAE,IAEL,MAAU,EAAY,QACpB,CAAC,EAAE,IAEP,CAAC,EAAE;CACd;CACA,uBAAuB,IAAO,EAAiB,SAAS;EAOpD,OANI,MAAS,EAAiB,UACnB;GAAC;GAAI;GAAI;GAAI;GAAI;EAAE,IAErB,MAAS,EAAiB,QACxB;GAAC;GAAI;GAAI;EAAE,IAEf;GAAC;GAAI;GAAI;EAAE;CACtB;CACA,mBAAmB,GAAS;EACxB,IAAI,UAAU,SACV,UAAU,QAAQ,CAAO;OAGzB,MAAM,KAAK,YAAY,0CAA0C;CAEzE;AACJ"}
|
package/package.json
ADDED
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@elurjs/ionic",
|
|
3
|
+
"version": "1.6.1",
|
|
4
|
+
"description": "Ionic lifecycle & router bridge for Elur",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Deiver Vasquez",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"homepage": "https://github.com/elurjs/elur-ionic",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/elurjs/elur-ionic.git"
|
|
12
|
+
},
|
|
13
|
+
"main": "./dist/lib/elur-ionic.cjs",
|
|
14
|
+
"module": "./dist/lib/elur-ionic.js",
|
|
15
|
+
"types": "./dist/lib/index.d.ts",
|
|
16
|
+
"keywords": [
|
|
17
|
+
"ionic",
|
|
18
|
+
"elur",
|
|
19
|
+
"bridge",
|
|
20
|
+
"routing",
|
|
21
|
+
"navigation",
|
|
22
|
+
"lifecycle",
|
|
23
|
+
"capacitor",
|
|
24
|
+
"mobile",
|
|
25
|
+
"native",
|
|
26
|
+
"ios",
|
|
27
|
+
"android",
|
|
28
|
+
"web-components",
|
|
29
|
+
"reactive",
|
|
30
|
+
"signals",
|
|
31
|
+
"typescript",
|
|
32
|
+
"framework",
|
|
33
|
+
"ui",
|
|
34
|
+
"frontend",
|
|
35
|
+
"tree-shaking",
|
|
36
|
+
"modular"
|
|
37
|
+
],
|
|
38
|
+
"exports": {
|
|
39
|
+
".": {
|
|
40
|
+
"import": "./dist/lib/elur-ionic.js",
|
|
41
|
+
"require": "./dist/lib/elur-ionic.cjs",
|
|
42
|
+
"types": "./dist/lib/index.d.ts"
|
|
43
|
+
},
|
|
44
|
+
"./components": {
|
|
45
|
+
"import": "./dist/lib/components.js",
|
|
46
|
+
"require": "./dist/lib/components.cjs",
|
|
47
|
+
"types": "./dist/lib/components.d.ts"
|
|
48
|
+
},
|
|
49
|
+
"./components/manifest": {
|
|
50
|
+
"import": "./dist/lib/components/manifest.js",
|
|
51
|
+
"require": "./dist/lib/components/manifest.cjs",
|
|
52
|
+
"types": "./dist/lib/components/manifest.d.ts"
|
|
53
|
+
},
|
|
54
|
+
"./devtools": {
|
|
55
|
+
"import": "./dist/lib/devtools.js",
|
|
56
|
+
"require": "./dist/lib/devtools.cjs",
|
|
57
|
+
"types": "./dist/lib/devtools.d.ts"
|
|
58
|
+
},
|
|
59
|
+
"./components/*": {
|
|
60
|
+
"import": "./dist/lib/components/*.js",
|
|
61
|
+
"require": "./dist/lib/components/*.cjs",
|
|
62
|
+
"types": "./dist/lib/components/*.d.ts"
|
|
63
|
+
},
|
|
64
|
+
"./bundles/layout": {
|
|
65
|
+
"import": "./dist/lib/bundles/layout.js",
|
|
66
|
+
"require": "./dist/lib/bundles/layout.cjs",
|
|
67
|
+
"types": "./dist/lib/bundles/layout.d.ts"
|
|
68
|
+
},
|
|
69
|
+
"./bundles/forms": {
|
|
70
|
+
"import": "./dist/lib/bundles/forms.js",
|
|
71
|
+
"require": "./dist/lib/bundles/forms.cjs",
|
|
72
|
+
"types": "./dist/lib/bundles/forms.d.ts"
|
|
73
|
+
},
|
|
74
|
+
"./bundles/lists": {
|
|
75
|
+
"import": "./dist/lib/bundles/lists.js",
|
|
76
|
+
"require": "./dist/lib/bundles/lists.cjs",
|
|
77
|
+
"types": "./dist/lib/bundles/lists.d.ts"
|
|
78
|
+
},
|
|
79
|
+
"./bundles/feedback": {
|
|
80
|
+
"import": "./dist/lib/bundles/feedback.js",
|
|
81
|
+
"require": "./dist/lib/bundles/feedback.cjs",
|
|
82
|
+
"types": "./dist/lib/bundles/feedback.d.ts"
|
|
83
|
+
},
|
|
84
|
+
"./bundles/buttons": {
|
|
85
|
+
"import": "./dist/lib/bundles/buttons.js",
|
|
86
|
+
"require": "./dist/lib/bundles/buttons.cjs",
|
|
87
|
+
"types": "./dist/lib/bundles/buttons.d.ts"
|
|
88
|
+
},
|
|
89
|
+
"./bundles/overlays": {
|
|
90
|
+
"import": "./dist/lib/bundles/overlays.js",
|
|
91
|
+
"require": "./dist/lib/bundles/overlays.cjs",
|
|
92
|
+
"types": "./dist/lib/bundles/overlays.d.ts"
|
|
93
|
+
},
|
|
94
|
+
"./bundles/navigation": {
|
|
95
|
+
"import": "./dist/lib/bundles/navigation.js",
|
|
96
|
+
"require": "./dist/lib/bundles/navigation.cjs",
|
|
97
|
+
"types": "./dist/lib/bundles/navigation.d.ts"
|
|
98
|
+
},
|
|
99
|
+
"./bundles/all": {
|
|
100
|
+
"import": "./dist/lib/bundles/all.js",
|
|
101
|
+
"require": "./dist/lib/bundles/all.cjs",
|
|
102
|
+
"types": "./dist/lib/bundles/all.d.ts"
|
|
103
|
+
},
|
|
104
|
+
"./tabs": {
|
|
105
|
+
"import": "./dist/lib/tabs.js",
|
|
106
|
+
"require": "./dist/lib/tabs.cjs",
|
|
107
|
+
"types": "./dist/lib/tabs.d.ts"
|
|
108
|
+
},
|
|
109
|
+
"./overlays": {
|
|
110
|
+
"import": "./dist/lib/overlays.js",
|
|
111
|
+
"require": "./dist/lib/overlays.cjs",
|
|
112
|
+
"types": "./dist/lib/overlays.d.ts"
|
|
113
|
+
},
|
|
114
|
+
"./vite-plugin": {
|
|
115
|
+
"import": "./dist/lib/vite-plugin.js",
|
|
116
|
+
"require": "./dist/lib/vite-plugin.cjs",
|
|
117
|
+
"types": "./dist/lib/vite-plugin.d.ts"
|
|
118
|
+
},
|
|
119
|
+
"./capacitor": {
|
|
120
|
+
"import": "./dist/lib/capacitor.js",
|
|
121
|
+
"require": "./dist/lib/capacitor.cjs",
|
|
122
|
+
"types": "./dist/lib/capacitor.d.ts"
|
|
123
|
+
},
|
|
124
|
+
"./page-state": {
|
|
125
|
+
"import": "./dist/lib/page-state.js",
|
|
126
|
+
"require": "./dist/lib/page-state.cjs",
|
|
127
|
+
"types": "./dist/lib/page-state.d.ts"
|
|
128
|
+
},
|
|
129
|
+
"./navigation": {
|
|
130
|
+
"import": "./dist/lib/navigation.js",
|
|
131
|
+
"require": "./dist/lib/navigation.cjs",
|
|
132
|
+
"types": "./dist/lib/navigation.d.ts"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"files": [
|
|
136
|
+
"dist/lib",
|
|
137
|
+
"README.md",
|
|
138
|
+
"CHANGELOG.md",
|
|
139
|
+
"MIGRATION.md"
|
|
140
|
+
],
|
|
141
|
+
"sideEffects": false,
|
|
142
|
+
"engines": {
|
|
143
|
+
"node": ">=18.0.0"
|
|
144
|
+
},
|
|
145
|
+
"scripts": {
|
|
146
|
+
"dev": "vite",
|
|
147
|
+
"build": "tsc && vite build",
|
|
148
|
+
"preview": "vite preview",
|
|
149
|
+
"clean:lib": "rm -rf dist/lib",
|
|
150
|
+
"build:lib": "vite build --config vite.lib.config.ts && tsc --project tsconfig.lib.json && terser dist/lib/elur-ionic.js -c -m -o dist/lib/elur-ionic.js && terser dist/lib/elur-ionic.cjs -c -m -o dist/lib/elur-ionic.cjs",
|
|
151
|
+
"prepack": "npm run clean:lib && npm run build:lib",
|
|
152
|
+
"typecheck": "tsc --noEmit",
|
|
153
|
+
"test": "vitest run",
|
|
154
|
+
"test:coverage": "vitest run --coverage",
|
|
155
|
+
"e2e:serve": "vite --config vite.e2e.config.ts",
|
|
156
|
+
"e2e": "npx playwright test",
|
|
157
|
+
"e2e:headed": "npx playwright test --headed",
|
|
158
|
+
"measure-bundles": "node scripts/measure-bundles.mjs"
|
|
159
|
+
},
|
|
160
|
+
"peerDependencies": {
|
|
161
|
+
"@capacitor/app": "^8.0.0",
|
|
162
|
+
"@capacitor/core": "^8.0.0",
|
|
163
|
+
"@capacitor/haptics": "^8.0.0",
|
|
164
|
+
"@capacitor/keyboard": "^8.0.0",
|
|
165
|
+
"@capacitor/splash-screen": "^8.0.0",
|
|
166
|
+
"@capacitor/status-bar": "^8.0.0",
|
|
167
|
+
"@elurjs/core": "^3.0.0 || ^3.7.0-beta.0 || ^4.0.0",
|
|
168
|
+
"@ionic/core": "^9.0.0",
|
|
169
|
+
"ionicons": "^8.0.0"
|
|
170
|
+
},
|
|
171
|
+
"peerDependenciesMeta": {
|
|
172
|
+
"@capacitor/core": {
|
|
173
|
+
"optional": true
|
|
174
|
+
},
|
|
175
|
+
"@capacitor/app": {
|
|
176
|
+
"optional": true
|
|
177
|
+
},
|
|
178
|
+
"@capacitor/status-bar": {
|
|
179
|
+
"optional": true
|
|
180
|
+
},
|
|
181
|
+
"@capacitor/splash-screen": {
|
|
182
|
+
"optional": true
|
|
183
|
+
},
|
|
184
|
+
"@capacitor/keyboard": {
|
|
185
|
+
"optional": true
|
|
186
|
+
},
|
|
187
|
+
"@capacitor/haptics": {
|
|
188
|
+
"optional": true
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"devDependencies": {
|
|
192
|
+
"@babel/parser": "^8.0.4",
|
|
193
|
+
"@babel/traverse": "^8.0.4",
|
|
194
|
+
"@babel/types": "^8.0.4",
|
|
195
|
+
"@capacitor/app": "^8.1.1",
|
|
196
|
+
"@capacitor/core": "^8.5.0",
|
|
197
|
+
"@capacitor/haptics": "^8.0.2",
|
|
198
|
+
"@capacitor/keyboard": "^8.0.5",
|
|
199
|
+
"@capacitor/splash-screen": "^8.0.2",
|
|
200
|
+
"@capacitor/status-bar": "^8.0.3",
|
|
201
|
+
"@elurjs/core": "^4.0.0",
|
|
202
|
+
"@elurjs/core-testing": "^0.1.4",
|
|
203
|
+
"@ionic/core": "^8.8.1",
|
|
204
|
+
"@playwright/test": "^1.62.1",
|
|
205
|
+
"@types/babel__traverse": "^7.28.0",
|
|
206
|
+
"@typescript/typescript6": "^6.0.2",
|
|
207
|
+
"@vitest/coverage-v8": "^5.0.0",
|
|
208
|
+
"happy-dom": "^20.8.3",
|
|
209
|
+
"ionicons": "^8.0.13",
|
|
210
|
+
"terser": "^5.46.0",
|
|
211
|
+
"typescript": "~7.0.2",
|
|
212
|
+
"vite": "^8.0.0",
|
|
213
|
+
"vite-plugin-dts": "^5.1.0",
|
|
214
|
+
"vitest": "^5.0.0"
|
|
215
|
+
}
|
|
216
|
+
}
|