├── .github └── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── .gitignore ├── .prettierrc ├── .vscode ├── extensions.json └── launch.json ├── CHANGELOG.md ├── DisableBounce.m ├── LICENSE.md ├── README.md ├── angular.json ├── banner.svg ├── config.xml ├── e2e ├── protractor.conf.js ├── src │ ├── app.e2e-spec.ts │ └── app.po.ts └── tsconfig.e2e.json ├── ionic.config.json ├── package-lock.json ├── package.json ├── projects └── core │ ├── LICENSE.md │ ├── karma.conf.js │ ├── ng-package.json │ ├── ng-package.prod.json │ ├── package-lock.json │ ├── package.json │ ├── src │ ├── lib │ │ ├── animations │ │ │ └── animations.ts │ │ ├── app-bar │ │ │ ├── app-bar-fab.directive.ts │ │ │ ├── app-bar-tab │ │ │ │ ├── app-bar-tab.component.html │ │ │ │ ├── app-bar-tab.component.scss │ │ │ │ ├── app-bar-tab.component.spec.ts │ │ │ │ └── app-bar-tab.component.ts │ │ │ ├── app-bar.component.html │ │ │ ├── app-bar.component.scss │ │ │ ├── app-bar.component.spec.ts │ │ │ ├── app-bar.component.ts │ │ │ └── app-bar.module.ts │ │ ├── back-button │ │ │ ├── back-button.component.html │ │ │ ├── back-button.component.scss │ │ │ ├── back-button.component.ts │ │ │ ├── back-button.module.ts │ │ │ └── routing-state.service.ts │ │ ├── bottom-sheet │ │ │ ├── bottom-sheet-content │ │ │ │ ├── bottom-sheet-content.component.html │ │ │ │ ├── bottom-sheet-content.component.scss │ │ │ │ ├── bottom-sheet-content.component.spec.ts │ │ │ │ └── bottom-sheet-content.component.ts │ │ │ ├── bottom-sheet.component.html │ │ │ ├── bottom-sheet.component.scss │ │ │ ├── bottom-sheet.component.spec.ts │ │ │ ├── bottom-sheet.component.ts │ │ │ ├── bottom-sheet.module.ts │ │ │ └── drawer-state.ts │ │ ├── center │ │ │ ├── center.directive.ts │ │ │ └── center.module.ts │ │ ├── collapsable-menu │ │ │ ├── collapsable-menu-button │ │ │ │ ├── collapsable-menu-button.component.html │ │ │ │ ├── collapsable-menu-button.component.scss │ │ │ │ ├── collapsable-menu-button.component.spec.ts │ │ │ │ └── collapsable-menu-button.component.ts │ │ │ ├── collapsable-menu.directive.ts │ │ │ └── collapsable-menu.module.ts │ │ ├── dialog │ │ │ ├── dialog.component.html │ │ │ ├── dialog.component.scss │ │ │ ├── dialog.component.spec.ts │ │ │ ├── dialog.component.ts │ │ │ ├── dialog.module.ts │ │ │ └── dialog.service.ts │ │ ├── editable-label │ │ │ ├── editable-label.component.html │ │ │ ├── editable-label.component.scss │ │ │ ├── editable-label.component.spec.ts │ │ │ ├── editable-label.component.ts │ │ │ └── editable-label.module.ts │ │ ├── expandable │ │ │ ├── expandable-indicator │ │ │ │ ├── expandable-indicator.component.html │ │ │ │ ├── expandable-indicator.component.scss │ │ │ │ ├── expandable-indicator.component.spec.ts │ │ │ │ └── expandable-indicator.component.ts │ │ │ ├── expandable.component.html │ │ │ ├── expandable.component.scss │ │ │ ├── expandable.component.spec.ts │ │ │ ├── expandable.component.ts │ │ │ └── expandable.module.ts │ │ ├── fab │ │ │ ├── fab.component.html │ │ │ ├── fab.component.scss │ │ │ ├── fab.component.spec.ts │ │ │ ├── fab.component.ts │ │ │ └── fab.module.ts │ │ ├── feature-discovery │ │ │ ├── feature-discovery.component.html │ │ │ ├── feature-discovery.component.scss │ │ │ ├── feature-discovery.component.spec.ts │ │ │ ├── feature-discovery.component.ts │ │ │ ├── feature-discovery.module.ts │ │ │ └── feature.directive.ts │ │ ├── gallery │ │ │ ├── gallery-image │ │ │ │ ├── gallery-image.component.html │ │ │ │ ├── gallery-image.component.scss │ │ │ │ └── gallery-image.component.ts │ │ │ ├── gallery-toolbar-content │ │ │ │ ├── README.md │ │ │ │ ├── gallery-toolbar-content.component.html │ │ │ │ ├── gallery-toolbar-content.component.scss │ │ │ │ ├── gallery-toolbar-content.component.spec.ts │ │ │ │ └── gallery-toolbar-content.component.ts │ │ │ ├── gallery-toolbar │ │ │ │ ├── gallery-toolbar.component.html │ │ │ │ ├── gallery-toolbar.component.scss │ │ │ │ ├── gallery-toolbar.component.spec.ts │ │ │ │ └── gallery-toolbar.component.ts │ │ │ ├── gallery.component.html │ │ │ ├── gallery.component.scss │ │ │ ├── gallery.component.ts │ │ │ ├── gallery.module.ts │ │ │ ├── image.service.ts │ │ │ └── keycodes.enum.ts │ │ ├── icon │ │ │ ├── icon.component.html │ │ │ ├── icon.component.scss │ │ │ ├── icon.component.spec.ts │ │ │ ├── icon.component.ts │ │ │ └── icon.module.ts │ │ ├── if-platform │ │ │ ├── if-platform.directive.ts │ │ │ └── if-platform.module.ts │ │ ├── interfaces.d.ts │ │ ├── lazy-image │ │ │ ├── README.md │ │ │ ├── lazy-image.directive.ts │ │ │ └── lazy-image.module.ts │ │ ├── loading-progress-bar │ │ │ ├── loading-progress-bar.component.html │ │ │ ├── loading-progress-bar.component.scss │ │ │ ├── loading-progress-bar.component.spec.ts │ │ │ ├── loading-progress-bar.component.ts │ │ │ ├── loading-progress-bar.module.ts │ │ │ └── loading.service.ts │ │ ├── network-status │ │ │ ├── network-status.component.html │ │ │ ├── network-status.component.scss │ │ │ ├── network-status.component.ts │ │ │ └── network-status.module.ts │ │ ├── overlay │ │ │ ├── overlay-content │ │ │ │ ├── overlay-content.component.html │ │ │ │ ├── overlay-content.component.scss │ │ │ │ ├── overlay-content.component.spec.ts │ │ │ │ └── overlay-content.component.ts │ │ │ ├── overlay.component.html │ │ │ ├── overlay.component.scss │ │ │ ├── overlay.component.spec.ts │ │ │ ├── overlay.component.ts │ │ │ ├── overlay.module.ts │ │ │ └── overlay.service.ts │ │ ├── password-input │ │ │ ├── password-input.component.html │ │ │ ├── password-input.component.scss │ │ │ ├── password-input.component.spec.ts │ │ │ ├── password-input.component.ts │ │ │ └── password-input.module.ts │ │ ├── permissions │ │ │ ├── permissions.directive.ts │ │ │ └── permissions.module.ts │ │ ├── popover │ │ │ ├── popover-element.directive.ts │ │ │ ├── popover.animations.ts │ │ │ ├── popover.component.html │ │ │ ├── popover.component.scss │ │ │ ├── popover.component.spec.ts │ │ │ ├── popover.component.ts │ │ │ ├── popover.module.ts │ │ │ └── popover.types.ts │ │ ├── pull │ │ │ ├── pull.directive.ts │ │ │ └── pull.module.ts │ │ ├── refresher │ │ │ ├── refresher-content │ │ │ │ ├── refresher-content.component.html │ │ │ │ ├── refresher-content.component.scss │ │ │ │ └── refresher-content.component.ts │ │ │ ├── refresher.component.html │ │ │ ├── refresher.component.scss │ │ │ ├── refresher.component.spec.ts │ │ │ ├── refresher.component.ts │ │ │ └── refresher.module.ts │ │ ├── router-item │ │ │ ├── router-item.component.html │ │ │ ├── router-item.component.scss │ │ │ ├── router-item.component.spec.ts │ │ │ ├── router-item.component.ts │ │ │ └── router-item.module.ts │ │ ├── searchbar │ │ │ ├── searchbar.component.html │ │ │ ├── searchbar.component.scss │ │ │ ├── searchbar.component.ts │ │ │ └── searchbar.module.ts │ │ ├── spinner │ │ │ ├── spinner.component.html │ │ │ ├── spinner.component.scss │ │ │ ├── spinner.component.spec.ts │ │ │ ├── spinner.component.ts │ │ │ └── spinner.module.ts │ │ ├── stepper │ │ │ ├── step-content │ │ │ │ ├── step-content.component.html │ │ │ │ ├── step-content.component.scss │ │ │ │ ├── step-content.component.spec.ts │ │ │ │ └── step-content.component.ts │ │ │ ├── step-header │ │ │ │ ├── step-header.component.html │ │ │ │ ├── step-header.component.scss │ │ │ │ ├── step-header.component.spec.ts │ │ │ │ └── step-header.component.ts │ │ │ ├── step │ │ │ │ ├── step.component.html │ │ │ │ ├── step.component.scss │ │ │ │ ├── step.component.spec.ts │ │ │ │ └── step.component.ts │ │ │ ├── stepper-horizontal │ │ │ │ ├── stepper-horizontal.component.html │ │ │ │ ├── stepper-horizontal.component.scss │ │ │ │ ├── stepper-horizontal.component.spec.ts │ │ │ │ └── stepper-horizontal.component.ts │ │ │ ├── stepper.component.html │ │ │ ├── stepper.component.scss │ │ │ ├── stepper.component.spec.ts │ │ │ ├── stepper.component.ts │ │ │ └── stepper.module.ts │ │ └── viewport │ │ │ ├── viewport.directive.ts │ │ │ └── viewport.module.ts │ ├── public_api.ts │ └── test.ts │ ├── tsconfig.lib.json │ ├── tsconfig.spec.json │ └── tslint.json ├── renovate.json ├── resources ├── README.md ├── android │ ├── icon │ │ ├── drawable-hdpi-icon.png │ │ ├── drawable-ldpi-icon.png │ │ ├── drawable-mdpi-icon.png │ │ ├── drawable-xhdpi-icon.png │ │ ├── drawable-xxhdpi-icon.png │ │ └── drawable-xxxhdpi-icon.png │ └── splash │ │ ├── drawable-land-hdpi-screen.png │ │ ├── drawable-land-ldpi-screen.png │ │ ├── drawable-land-mdpi-screen.png │ │ ├── drawable-land-xhdpi-screen.png │ │ ├── drawable-land-xxhdpi-screen.png │ │ ├── drawable-land-xxxhdpi-screen.png │ │ ├── drawable-port-hdpi-screen.png │ │ ├── drawable-port-ldpi-screen.png │ │ ├── drawable-port-mdpi-screen.png │ │ ├── drawable-port-xhdpi-screen.png │ │ ├── drawable-port-xxhdpi-screen.png │ │ └── drawable-port-xxxhdpi-screen.png ├── icon.png ├── ios │ ├── icon │ │ ├── icon-1024.png │ │ ├── icon-40.png │ │ ├── icon-40@2x.png │ │ ├── icon-40@3x.png │ │ ├── icon-50.png │ │ ├── icon-50@2x.png │ │ ├── icon-60.png │ │ ├── icon-60@2x.png │ │ ├── icon-60@3x.png │ │ ├── icon-72.png │ │ ├── icon-72@2x.png │ │ ├── icon-76.png │ │ ├── icon-76@2x.png │ │ ├── icon-83.5@2x.png │ │ ├── icon-small.png │ │ ├── icon-small@2x.png │ │ ├── icon-small@3x.png │ │ ├── icon.png │ │ └── icon@2x.png │ └── splash │ │ ├── Default-568h@2x~iphone.png │ │ ├── Default-667h.png │ │ ├── Default-736h.png │ │ ├── Default-Landscape-736h.png │ │ ├── Default-Landscape@2x~ipad.png │ │ ├── Default-Landscape@~ipadpro.png │ │ ├── Default-Landscape~ipad.png │ │ ├── Default-Portrait@2x~ipad.png │ │ ├── Default-Portrait@~ipadpro.png │ │ ├── Default-Portrait~ipad.png │ │ ├── Default@2x~iphone.png │ │ ├── Default@2x~universal~anyany.png │ │ └── Default~iphone.png └── splash.png ├── sketch.sketch ├── src ├── app │ ├── app-routing.module.ts │ ├── app.component.html │ ├── app.component.scss │ ├── app.component.spec.ts │ ├── app.component.ts │ ├── app.module.ts │ ├── components │ │ ├── components.module.ts │ │ ├── docs-footer │ │ │ ├── docs-footer.component.html │ │ │ ├── docs-footer.component.scss │ │ │ ├── docs-footer.component.spec.ts │ │ │ └── docs-footer.component.ts │ │ ├── example │ │ │ ├── example.component.html │ │ │ ├── example.component.scss │ │ │ ├── example.component.spec.ts │ │ │ └── example.component.ts │ │ ├── footer │ │ │ ├── footer.component.html │ │ │ ├── footer.component.scss │ │ │ ├── footer.component.spec.ts │ │ │ └── footer.component.ts │ │ ├── header │ │ │ ├── header.component.html │ │ │ ├── header.component.scss │ │ │ ├── header.component.spec.ts │ │ │ └── header.component.ts │ │ └── touch-field │ │ │ ├── touch-field.component.html │ │ │ ├── touch-field.component.scss │ │ │ ├── touch-field.component.spec.ts │ │ │ └── touch-field.component.ts │ ├── pages │ │ ├── app-bar │ │ │ ├── app-bar.module.ts │ │ │ ├── app-bar.page.html │ │ │ ├── app-bar.page.scss │ │ │ ├── app-bar.page.spec.ts │ │ │ ├── app-bar.page.ts │ │ │ ├── tabs.router.module.ts │ │ │ └── tabs │ │ │ │ ├── four │ │ │ │ ├── four.module.ts │ │ │ │ ├── four.page.html │ │ │ │ ├── four.page.scss │ │ │ │ ├── four.page.spec.ts │ │ │ │ └── four.page.ts │ │ │ │ ├── one │ │ │ │ ├── one.module.ts │ │ │ │ ├── one.page.html │ │ │ │ ├── one.page.scss │ │ │ │ ├── one.page.spec.ts │ │ │ │ └── one.page.ts │ │ │ │ ├── three │ │ │ │ ├── three.module.ts │ │ │ │ ├── three.page.html │ │ │ │ ├── three.page.scss │ │ │ │ ├── three.page.spec.ts │ │ │ │ └── three.page.ts │ │ │ │ └── two │ │ │ │ ├── two.module.ts │ │ │ │ ├── two.page.html │ │ │ │ ├── two.page.scss │ │ │ │ ├── two.page.spec.ts │ │ │ │ └── two.page.ts │ │ ├── bottom-sheet │ │ │ ├── bottom-sheet.module.ts │ │ │ ├── bottom-sheet.page.html │ │ │ ├── bottom-sheet.page.scss │ │ │ ├── bottom-sheet.page.spec.ts │ │ │ └── bottom-sheet.page.ts │ │ ├── components │ │ │ ├── components.module.ts │ │ │ ├── components.page.html │ │ │ ├── components.page.scss │ │ │ ├── components.page.spec.ts │ │ │ └── components.page.ts │ │ ├── developer-tools │ │ │ ├── developer-tools.module.ts │ │ │ ├── developer-tools.page.html │ │ │ ├── developer-tools.page.scss │ │ │ ├── developer-tools.page.spec.ts │ │ │ └── developer-tools.page.ts │ │ ├── dialog │ │ │ ├── dialog.module.ts │ │ │ ├── dialog.page.html │ │ │ ├── dialog.page.scss │ │ │ ├── dialog.page.spec.ts │ │ │ └── dialog.page.ts │ │ ├── editable-label │ │ │ ├── editable-label.module.ts │ │ │ ├── editable-label.page.html │ │ │ ├── editable-label.page.scss │ │ │ ├── editable-label.page.spec.ts │ │ │ └── editable-label.page.ts │ │ ├── expandable │ │ │ ├── expandable.module.ts │ │ │ ├── expandable.page.html │ │ │ ├── expandable.page.scss │ │ │ ├── expandable.page.spec.ts │ │ │ └── expandable.page.ts │ │ ├── fab │ │ │ ├── fab.module.ts │ │ │ ├── fab.page.html │ │ │ ├── fab.page.scss │ │ │ ├── fab.page.spec.ts │ │ │ └── fab.page.ts │ │ ├── feature-discovery │ │ │ ├── feature-discovery.module.ts │ │ │ ├── feature-discovery.page.html │ │ │ ├── feature-discovery.page.scss │ │ │ └── feature-discovery.page.ts │ │ ├── gallery │ │ │ ├── gallery.module.ts │ │ │ ├── gallery.page.html │ │ │ ├── gallery.page.scss │ │ │ ├── gallery.page.spec.ts │ │ │ └── gallery.page.ts │ │ ├── home │ │ │ ├── home.module.ts │ │ │ ├── home.page.html │ │ │ ├── home.page.scss │ │ │ ├── home.page.spec.ts │ │ │ └── home.page.ts │ │ ├── icon │ │ │ ├── icon.module.ts │ │ │ ├── icon.page.html │ │ │ ├── icon.page.scss │ │ │ ├── icon.page.spec.ts │ │ │ └── icon.page.ts │ │ ├── installation │ │ │ ├── installation.module.ts │ │ │ ├── installation.page.html │ │ │ ├── installation.page.scss │ │ │ ├── installation.page.spec.ts │ │ │ └── installation.page.ts │ │ ├── loading │ │ │ ├── loading.module.ts │ │ │ ├── loading.page.html │ │ │ ├── loading.page.scss │ │ │ ├── loading.page.spec.ts │ │ │ └── loading.page.ts │ │ ├── page-not-found │ │ │ ├── page-not-found.module.ts │ │ │ ├── page-not-found.page.html │ │ │ ├── page-not-found.page.scss │ │ │ ├── page-not-found.page.spec.ts │ │ │ └── page-not-found.page.ts │ │ ├── password │ │ │ ├── password.module.ts │ │ │ ├── password.page.html │ │ │ ├── password.page.scss │ │ │ ├── password.page.spec.ts │ │ │ └── password.page.ts │ │ ├── popover │ │ │ ├── popover-routing.module.ts │ │ │ ├── popover.module.ts │ │ │ ├── popover.page.html │ │ │ ├── popover.page.scss │ │ │ ├── popover.page.spec.ts │ │ │ └── popover.page.ts │ │ ├── refresh │ │ │ ├── refresh.module.ts │ │ │ ├── refresh.page.html │ │ │ ├── refresh.page.scss │ │ │ ├── refresh.page.spec.ts │ │ │ └── refresh.page.ts │ │ ├── searchbar │ │ │ ├── searchbar.module.ts │ │ │ ├── searchbar.page.html │ │ │ ├── searchbar.page.scss │ │ │ ├── searchbar.page.spec.ts │ │ │ └── searchbar.page.ts │ │ ├── stepper │ │ │ ├── stepper.module.ts │ │ │ ├── stepper.page.html │ │ │ ├── stepper.page.scss │ │ │ ├── stepper.page.spec.ts │ │ │ └── stepper.page.ts │ │ └── viewport │ │ │ ├── viewport.module.ts │ │ │ ├── viewport.page.html │ │ │ ├── viewport.page.scss │ │ │ ├── viewport.page.spec.ts │ │ │ └── viewport.page.ts │ └── services │ │ ├── icons.ts │ │ ├── seo.service.ts │ │ └── util.service.ts ├── assets │ ├── banners │ │ ├── banner.png │ │ ├── bottom-sheet.svg │ │ ├── components.svg │ │ ├── feature-discovery.svg │ │ ├── gallery.svg │ │ ├── refresher.svg │ │ └── tools.svg │ ├── components.png │ ├── docs │ │ ├── components │ │ │ ├── app-bar.md │ │ │ ├── bottom-sheet.md │ │ │ ├── dialog.md │ │ │ ├── expandable.md │ │ │ ├── fab.md │ │ │ ├── feature-discovery.md │ │ │ ├── gallery.md │ │ │ ├── icon.md │ │ │ ├── password.md │ │ │ ├── progress-bar │ │ │ ├── refresher.md │ │ │ ├── searchbar.md │ │ │ └── stepper.md │ │ ├── developer-tools │ │ │ └── developer-tools.md │ │ ├── installation │ │ │ └── installation.md │ │ └── snippets │ │ │ ├── dialog │ │ │ ├── api.md │ │ │ ├── css.md │ │ │ ├── html.md │ │ │ └── ts.md │ │ │ ├── editable-label │ │ │ ├── api.md │ │ │ ├── css.md │ │ │ ├── html.md │ │ │ └── ts.md │ │ │ └── image-gallery │ │ │ ├── api.md │ │ │ ├── css.md │ │ │ ├── html.md │ │ │ └── ts.md │ ├── favicon │ │ ├── android-icon-144x144.png │ │ ├── android-icon-192x192.png │ │ ├── android-icon-36x36.png │ │ ├── android-icon-48x48.png │ │ ├── android-icon-72x72.png │ │ ├── android-icon-96x96.png │ │ ├── apple-icon-114x114.png │ │ ├── apple-icon-120x120.png │ │ ├── apple-icon-144x144.png │ │ ├── apple-icon-152x152.png │ │ ├── apple-icon-180x180.png │ │ ├── apple-icon-57x57.png │ │ ├── apple-icon-60x60.png │ │ ├── apple-icon-72x72.png │ │ ├── apple-icon-76x76.png │ │ ├── apple-icon-precomposed.png │ │ ├── apple-icon.png │ │ ├── browserconfig.xml │ │ ├── favicon-16x16.png │ │ ├── favicon-32x32.png │ │ ├── favicon-96x96.png │ │ ├── favicon.ico │ │ ├── ms-icon-144x144.png │ │ ├── ms-icon-150x150.png │ │ ├── ms-icon-310x310.png │ │ └── ms-icon-70x70.png │ ├── gif │ │ ├── bottomsheet.gif │ │ ├── dialog.gif │ │ ├── feature.gif │ │ ├── gallery.gif │ │ └── pulltorefresh.gif │ ├── icon │ │ ├── cursor.png │ │ ├── cursor.svg │ │ └── favicon.png │ ├── icons │ │ ├── icon-128x128.png │ │ ├── icon-144x144.png │ │ ├── icon-152x152.png │ │ ├── icon-192x192.png │ │ ├── icon-384x384.png │ │ ├── icon-512x512.png │ │ ├── icon-72x72.png │ │ └── icon-96x96.png │ ├── images │ │ ├── photo_1.jpeg │ │ ├── photo_2.jpeg │ │ ├── photo_3.jpeg │ │ ├── photo_4.jpeg │ │ ├── photo_5.jpeg │ │ ├── photo_6.jpeg │ │ ├── photo_7.jpeg │ │ ├── photo_8.jpeg │ │ └── photo_9.jpeg │ ├── logo.png │ ├── logo.svg │ └── lottie │ │ └── empty_box.json ├── configs │ └── config.ts ├── environments │ ├── environment.prod.ts │ └── environment.ts ├── global.scss ├── index.html ├── karma.conf.js ├── main.ts ├── manifest.webmanifest ├── ngsw-config.json ├── polyfills.ts ├── test.ts ├── theme │ ├── markdown.scss │ ├── material-theme.scss │ └── variables.scss └── zone-flags.ts ├── tsconfig.app.json ├── tsconfig.json ├── tsconfig.spec.json └── tslint.json /.gitignore: -------------------------------------------------------------------------------- 1 | # Specifies intentionally untracked files to ignore when using Git 2 | # http://git-scm.com/docs/gitignore 3 | 4 | *~ 5 | *.sw[mnpcod] 6 | *.log 7 | *.tmp 8 | *.tmp.* 9 | log.txt 10 | *.sublime-project 11 | *.sublime-workspace 12 | npm-debug.log* 13 | 14 | .idea/ 15 | .ionic/ 16 | .sourcemaps/ 17 | .sass-cache/ 18 | .tmp/ 19 | .versions/ 20 | coverage/ 21 | www/ 22 | node_modules/ 23 | tmp/ 24 | temp/ 25 | platforms/ 26 | plugins/ 27 | plugins/android.json 28 | plugins/ios.json 29 | $RECYCLE.BIN/ 30 | dist/ 31 | 32 | .DS_Store 33 | Thumbs.db 34 | UserInterfaceState.xcuserstate 35 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true 3 | } 4 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": [ 3 | "Mikael.Angular-BeastCode", 4 | "johnpapa.Angular2", 5 | "fivethree.vscode-ionic-snippets", 6 | "angular.ng-template", 7 | "ms-vscode.vscode-typescript-tslint-plugin", 8 | "esbenp.prettier-vscode", 9 | "msjsdiag.debugger-for-chrome" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "type": "chrome", 9 | "request": "launch", 10 | "name": "Debug Fivethree Core in Chrome", 11 | "url": "http://localhost:8100", 12 | "webRoot": "${workspaceFolder}" 13 | } 14 | ] 15 | } -------------------------------------------------------------------------------- /DisableBounce.m: -------------------------------------------------------------------------------- 1 | // 2 | // DisableBounce.m 3 | // Fivethree 4 | // 5 | // Created by Gary Großgarten on 26.04.19. 6 | // 7 | 8 | #import 9 | #import 10 | 11 | @implementation UIScrollView (NoBounce) 12 | - (void)didMoveToWindow { 13 | [super didMoveToWindow]; 14 | self.bounces = NO; 15 | } 16 | @end 17 | -------------------------------------------------------------------------------- /e2e/protractor.conf.js: -------------------------------------------------------------------------------- 1 | // Protractor configuration file, see link for more information 2 | // https://github.com/angular/protractor/blob/master/lib/config.ts 3 | 4 | const { SpecReporter } = require('jasmine-spec-reporter'); 5 | 6 | exports.config = { 7 | allScriptsTimeout: 11000, 8 | specs: [ 9 | './src/**/*.e2e-spec.ts' 10 | ], 11 | capabilities: { 12 | 'browserName': 'chrome' 13 | }, 14 | directConnect: true, 15 | baseUrl: 'http://localhost:4200/', 16 | framework: 'jasmine', 17 | jasmineNodeOpts: { 18 | showColors: true, 19 | defaultTimeoutInterval: 30000, 20 | print: function() {} 21 | }, 22 | onPrepare() { 23 | require('ts-node').register({ 24 | project: 'e2e/tsconfig.e2e.json' 25 | }); 26 | jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); 27 | } 28 | }; 29 | -------------------------------------------------------------------------------- /e2e/src/app.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import { AppPage } from './app.po'; 2 | 3 | describe('new App', () => { 4 | let page: AppPage; 5 | 6 | beforeEach(() => { 7 | page = new AppPage(); 8 | }); 9 | describe('default screen', () => { 10 | beforeEach(() => { 11 | page.navigateTo('/home'); 12 | }); 13 | it('should have a title saying Home', () => { 14 | page.getPageOneTitleText().then(title => { 15 | expect(title).toEqual('Home'); 16 | }); 17 | }); 18 | }); 19 | }); 20 | -------------------------------------------------------------------------------- /e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo(destination) { 5 | return browser.get(destination); 6 | } 7 | 8 | getTitle() { 9 | return browser.getTitle(); 10 | } 11 | 12 | getPageOneTitleText() { 13 | return element(by.tagName('app-home')).element(by.deepCss('ion-title')).getText(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /e2e/tsconfig.e2e.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/e2e", 5 | "baseUrl": "./", 6 | "module": "commonjs", 7 | "target": "es5" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /ionic.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fivethree", 3 | "integrations": { 4 | "cordova": {} 5 | }, 6 | "type": "angular" 7 | } -------------------------------------------------------------------------------- /projects/core/ng-package.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", 3 | "dest": "../../dist/@fivethree/core", 4 | "deleteDestPath": true, 5 | "lib": { 6 | "entryFile": "src/public_api.ts", 7 | "umdModuleIds": { 8 | "@fivethree/ngx-rxjs-animations": "ngx-rxjs-animations", 9 | "@ionic/angular": "ionic-angular" 10 | } 11 | }, 12 | "whitelistedNonPeerDependencies": [ 13 | "@fivethree/ngx-rxjs-animations" 14 | ] 15 | } -------------------------------------------------------------------------------- /projects/core/ng-package.prod.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", 3 | "dest": "../../dist/@fivethree/core", 4 | "deleteDestPath": true, 5 | "lib": { 6 | "flatModuleFile": "fivethree-core", 7 | "entryFile": "src/public_api.ts", 8 | "umdModuleIds": { 9 | "@fivethree/ngx-rxjs-animations": "ngx-rxjs-animations", 10 | "@ionic/angular": "ionic-angular" 11 | } 12 | }, 13 | "whitelistedNonPeerDependencies": [ 14 | "@fivethree/ngx-rxjs-animations" 15 | ] 16 | } -------------------------------------------------------------------------------- /projects/core/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@fivethree/core", 3 | "version": "0.9.6", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@fivethree/ngx-rxjs-animations": { 8 | "version": "0.0.2", 9 | "resolved": "https://registry.npmjs.org/@fivethree/ngx-rxjs-animations/-/ngx-rxjs-animations-0.0.2.tgz", 10 | "integrity": "sha512-1QcGRo/ESZvhlvb6Vp3KFM8KTeXugpik5XKf5DnXJ2CpO3Nm7/QCvit0lTsVON6XYPyn1sMIdPFE7ZLN4WuJ5Q==", 11 | "requires": { 12 | "tslib": "^1.9.0" 13 | } 14 | }, 15 | "tslib": { 16 | "version": "1.10.0", 17 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", 18 | "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /projects/core/src/lib/animations/animations.ts: -------------------------------------------------------------------------------- 1 | import { animation, animate, style } from '@angular/animations'; 2 | 3 | export const fade = animation([ 4 | style({ 5 | opacity: '{{ fromOpacity }}' 6 | }), 7 | animate( 8 | '{{ time }}', 9 | style({ 10 | opacity: '{{ toOpacity }}' 11 | }) 12 | ) 13 | ]); 14 | 15 | export const translate = animation([ 16 | animate( 17 | '{{ time }}', 18 | style({ 19 | transform: 'translate({{toX}},{{toY}})' 20 | }) 21 | ) 22 | ]); 23 | -------------------------------------------------------------------------------- /projects/core/src/lib/app-bar/app-bar-fab.directive.ts: -------------------------------------------------------------------------------- 1 | import { Directive, Input } from '@angular/core'; 2 | import { AppBarFabPosition } from '../interfaces'; 3 | 4 | @Directive({ 5 | selector: '[fivAppBarFab]', 6 | exportAs: 'fivAppBarFab' 7 | }) 8 | export class FivAppBarFabDirective { 9 | @Input() fivAppBarFab: AppBarFabPosition; 10 | } 11 | -------------------------------------------------------------------------------- /projects/core/src/lib/app-bar/app-bar-tab/app-bar-tab.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 |
-------------------------------------------------------------------------------- /projects/core/src/lib/app-bar/app-bar-tab/app-bar-tab.component.scss: -------------------------------------------------------------------------------- 1 | :host { 2 | width: 50%; 3 | height: 100%; 4 | display: inline-block; 5 | position: relative; 6 | 7 | .tab { 8 | width: 100%; 9 | height: 100%; 10 | display: flex; 11 | position: relative; 12 | flex-direction: column; 13 | align-items: center; 14 | justify-content: center; 15 | overflow: visible; 16 | } 17 | 18 | .tab.active { 19 | --fiv-icon-color: var(--fiv-icon-activ-color, var(--ion-color-primary)); 20 | ::ng-deep ion-label { 21 | color: var(--ion-color-primary); 22 | } 23 | } 24 | } 25 | 26 | :host(.label-hide) { 27 | ::ng-deep ion-label { 28 | display: none; 29 | } 30 | } 31 | 32 | :host(.label-active-only) { 33 | .tab:not(.active) { 34 | ::ng-deep ion-label { 35 | display: none; 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /projects/core/src/lib/app-bar/app-bar-tab/app-bar-tab.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { FivAppBarTab } from './app-bar-tab.component'; 4 | 5 | describe('AppBarTabComponent', () => { 6 | let component: FivAppBarTab; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [FivAppBarTab] 12 | }).compileComponents(); 13 | })); 14 | 15 | beforeEach(() => { 16 | fixture = TestBed.createComponent(FivAppBarTab); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | }); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /projects/core/src/lib/app-bar/app-bar.component.html: -------------------------------------------------------------------------------- 1 |
3 |
4 |
5 | 6 |
7 |
8 | 9 | 10 |
11 |
12 |
13 | 14 |
15 |
16 |
-------------------------------------------------------------------------------- /projects/core/src/lib/app-bar/app-bar.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { FivAppBar } from './app-bar.component'; 4 | 5 | describe('AppBarComponent', () => { 6 | let component: FivAppBar; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [FivAppBar] 12 | }).compileComponents(); 13 | })); 14 | 15 | beforeEach(() => { 16 | fixture = TestBed.createComponent(FivAppBar); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | }); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /projects/core/src/lib/app-bar/app-bar.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, ContentChild, Input } from '@angular/core'; 2 | import { FivAppBarFabDirective } from './app-bar-fab.directive'; 3 | import { AppBarTitleMode } from '../interfaces'; 4 | 5 | @Component({ 6 | selector: 'fiv-app-bar', 7 | templateUrl: './app-bar.component.html', 8 | styleUrls: ['./app-bar.component.scss'] 9 | }) 10 | export class FivAppBar { 11 | cutoutVisible = true; 12 | 13 | @Input() titleMode: AppBarTitleMode; 14 | 15 | @ContentChild(FivAppBarFabDirective, { static: false }) 16 | fivFab: FivAppBarFabDirective; 17 | 18 | constructor() {} 19 | } 20 | -------------------------------------------------------------------------------- /projects/core/src/lib/app-bar/app-bar.module.ts: -------------------------------------------------------------------------------- 1 | import { FivIconModule } from './../icon/icon.module'; 2 | import { NgModule } from '@angular/core'; 3 | import { CommonModule } from '@angular/common'; 4 | import { FivAppBar } from './app-bar.component'; 5 | import { FivAppBarTab } from './app-bar-tab/app-bar-tab.component'; 6 | import { IonicModule } from '@ionic/angular'; 7 | import { FivFabModule } from '../fab/fab.module'; 8 | import { FivAppBarFabDirective } from './app-bar-fab.directive'; 9 | 10 | @NgModule({ 11 | declarations: [FivAppBar, FivAppBarTab, FivAppBarFabDirective], 12 | imports: [CommonModule, FivIconModule, FivFabModule, IonicModule], 13 | exports: [FivAppBar, FivAppBarTab, FivAppBarFabDirective], 14 | providers: [] 15 | }) 16 | export class FivAppBarModule {} 17 | -------------------------------------------------------------------------------- /projects/core/src/lib/back-button/back-button.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /projects/core/src/lib/back-button/back-button.component.scss: -------------------------------------------------------------------------------- 1 | :host { 2 | display: block; 3 | padding-top: 0.2em; 4 | } 5 | -------------------------------------------------------------------------------- /projects/core/src/lib/back-button/back-button.component.ts: -------------------------------------------------------------------------------- 1 | import { FivRoutingStateService } from './routing-state.service'; 2 | import { Component, Input } from '@angular/core'; 3 | 4 | @Component({ 5 | selector: 'fiv-back-button', 6 | templateUrl: './back-button.component.html', 7 | styleUrls: ['./back-button.component.scss'] 8 | }) 9 | export class FivBackButton { 10 | @Input() icon = 'arrow-back'; 11 | @Input() color; 12 | @Input() defaultHref = '/'; 13 | 14 | constructor(public routingState: FivRoutingStateService) {} 15 | 16 | buttonClick() { 17 | this.routingState.goBack(this.defaultHref); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /projects/core/src/lib/back-button/back-button.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FivBackButton } from './back-button.component'; 4 | import { FivIconModule } from '../icon/icon.module'; 5 | import { IonicModule } from '@ionic/angular'; 6 | 7 | @NgModule({ 8 | declarations: [FivBackButton], 9 | imports: [CommonModule, FivIconModule, IonicModule], 10 | exports: [FivBackButton], 11 | providers: [] 12 | }) 13 | export class FivBackButtonModule {} 14 | -------------------------------------------------------------------------------- /projects/core/src/lib/bottom-sheet/bottom-sheet-content/bottom-sheet-content.component.html: -------------------------------------------------------------------------------- 1 |
2 | 4 |
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
-------------------------------------------------------------------------------- /projects/core/src/lib/bottom-sheet/bottom-sheet-content/bottom-sheet-content.component.scss: -------------------------------------------------------------------------------- 1 | :host { 2 | display: block; 3 | width: 100%; 4 | height: 100%; 5 | --fiv-border-radius: 12px; 6 | --fiv-padding: 20px; 7 | padding-top: var(--fiv-padding); 8 | --fiv-background: var(--ion-background-color); 9 | --fiv-handle-background: var(--ion-color-light-shade); 10 | background: var(--fiv-background); 11 | } 12 | 13 | .bsc-wrapper { 14 | width: 100%; 15 | height: 100%; 16 | } 17 | 18 | :host.rounded { 19 | border-top-left-radius: var(--fiv-border-radius); 20 | border-top-right-radius: var(--fiv-border-radius); 21 | } 22 | 23 | .handle { 24 | display: block; 25 | background: var(--fiv-handle-background); 26 | border-radius: 12px; 27 | top: 8px; 28 | width: 32px; 29 | height: 8px; 30 | position: absolute; 31 | } 32 | 33 | .content { 34 | height: 100%; 35 | } 36 | -------------------------------------------------------------------------------- /projects/core/src/lib/bottom-sheet/bottom-sheet-content/bottom-sheet-content.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { FivBottomSheetContent } from './bottom-sheet-content.component'; 4 | 5 | describe('BottomSheetContentComponent', () => { 6 | let component: FivBottomSheetContent; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [FivBottomSheetContent] 12 | }).compileComponents(); 13 | })); 14 | 15 | beforeEach(() => { 16 | fixture = TestBed.createComponent(FivBottomSheetContent); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | }); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /projects/core/src/lib/bottom-sheet/bottom-sheet.component.html: -------------------------------------------------------------------------------- 1 |
2 | 3 |
-------------------------------------------------------------------------------- /projects/core/src/lib/bottom-sheet/bottom-sheet.component.scss: -------------------------------------------------------------------------------- 1 | :host { 2 | width: 100%; 3 | height: 100%; 4 | position: absolute; 5 | left: 0; 6 | z-index: 11 !important; 7 | background-color: rgba(0, 0, 0, 0); 8 | transform: translateY(100vh); 9 | } 10 | 11 | .fiv-bottom-drawer-scrollable-content { 12 | width: 100%; 13 | height: 100%; 14 | } 15 | -------------------------------------------------------------------------------- /projects/core/src/lib/bottom-sheet/bottom-sheet.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { FivBottomSheet } from './bottom-sheet.component'; 4 | 5 | describe('BottomSheetComponent', () => { 6 | let component: FivBottomSheet; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [FivBottomSheet] 12 | }).compileComponents(); 13 | })); 14 | 15 | beforeEach(() => { 16 | fixture = TestBed.createComponent(FivBottomSheet); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | }); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /projects/core/src/lib/bottom-sheet/bottom-sheet.module.ts: -------------------------------------------------------------------------------- 1 | import { IonicModule } from '@ionic/angular'; 2 | import { FivBottomSheetContent } from './bottom-sheet-content/bottom-sheet-content.component'; 3 | import { FivBottomSheet } from './bottom-sheet.component'; 4 | import { NgModule } from '@angular/core'; 5 | import { CommonModule } from '@angular/common'; 6 | import { FivCenterModule } from '../center/center.module'; 7 | 8 | @NgModule({ 9 | declarations: [FivBottomSheet, FivBottomSheetContent], 10 | imports: [CommonModule, FivCenterModule, IonicModule], 11 | exports: [FivBottomSheet, FivBottomSheetContent] 12 | }) 13 | export class FivBottomSheetModule {} 14 | -------------------------------------------------------------------------------- /projects/core/src/lib/bottom-sheet/drawer-state.ts: -------------------------------------------------------------------------------- 1 | export enum DrawerState { 2 | Bottom, 3 | Docked, 4 | Top 5 | } 6 | -------------------------------------------------------------------------------- /projects/core/src/lib/center/center.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FivCenter } from './center.directive'; 4 | 5 | @NgModule({ 6 | declarations: [FivCenter], 7 | imports: [CommonModule], 8 | exports: [FivCenter] 9 | }) 10 | export class FivCenterModule {} 11 | -------------------------------------------------------------------------------- /projects/core/src/lib/collapsable-menu/collapsable-menu-button/collapsable-menu-button.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /projects/core/src/lib/collapsable-menu/collapsable-menu-button/collapsable-menu-button.component.scss: -------------------------------------------------------------------------------- 1 | :host { 2 | display: block; 3 | padding-top: 0.2em; 4 | } 5 | -------------------------------------------------------------------------------- /projects/core/src/lib/collapsable-menu/collapsable-menu-button/collapsable-menu-button.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { FivCollapsableMenuButton } from './collapsable-menu-button.component'; 4 | 5 | describe('CollapsableMenuButtonComponent', () => { 6 | let component: FivCollapsableMenuButton; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [FivCollapsableMenuButton] 12 | }).compileComponents(); 13 | })); 14 | 15 | beforeEach(() => { 16 | fixture = TestBed.createComponent(FivCollapsableMenuButton); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | }); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /projects/core/src/lib/collapsable-menu/collapsable-menu-button/collapsable-menu-button.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit, Input } from '@angular/core'; 2 | import { FivCollapsableMenu } from '../collapsable-menu.directive'; 3 | 4 | @Component({ 5 | selector: 'fiv-collapsable-menu-button', 6 | templateUrl: './collapsable-menu-button.component.html', 7 | styleUrls: ['./collapsable-menu-button.component.scss'] 8 | }) 9 | export class FivCollapsableMenuButton implements OnInit { 10 | @Input() menu: FivCollapsableMenu; 11 | @Input() icon = 'menu'; 12 | @Input() color: string; 13 | 14 | constructor() {} 15 | 16 | ngOnInit() {} 17 | 18 | onClick() { 19 | this.menu.toggleMenu(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /projects/core/src/lib/collapsable-menu/collapsable-menu.module.ts: -------------------------------------------------------------------------------- 1 | import { IonicModule } from '@ionic/angular'; 2 | import { NgModule } from '@angular/core'; 3 | import { CommonModule } from '@angular/common'; 4 | import { FivCollapsableMenu } from './collapsable-menu.directive'; 5 | import { FivCollapsableMenuButton } from './collapsable-menu-button/collapsable-menu-button.component'; 6 | import { FivIconModule } from '../icon/icon.module'; 7 | 8 | @NgModule({ 9 | declarations: [FivCollapsableMenu, FivCollapsableMenuButton], 10 | imports: [CommonModule, FivIconModule, IonicModule], 11 | exports: [FivCollapsableMenu, FivCollapsableMenuButton] 12 | }) 13 | export class FivCollapsableModule {} 14 | -------------------------------------------------------------------------------- /projects/core/src/lib/dialog/dialog.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { FivDialog } from './dialog.component'; 4 | 5 | describe('DialogComponent', () => { 6 | let component: FivDialog; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [FivDialog] 12 | }).compileComponents(); 13 | })); 14 | 15 | beforeEach(() => { 16 | fixture = TestBed.createComponent(FivDialog); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | }); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /projects/core/src/lib/dialog/dialog.module.ts: -------------------------------------------------------------------------------- 1 | import { FivPullModule } from './../pull/pull.module'; 2 | import { FivDialogService } from './dialog.service'; 3 | import { FivOverlayModule } from './../overlay/overlay.module'; 4 | import { NgModule } from '@angular/core'; 5 | import { CommonModule } from '@angular/common'; 6 | import { FivDialog } from './dialog.component'; 7 | import { IonicModule } from '@ionic/angular'; 8 | import { FivLoadingProgressBarModule } from '../loading-progress-bar/loading-progress-bar.module'; 9 | 10 | @NgModule({ 11 | declarations: [FivDialog], 12 | imports: [ 13 | CommonModule, 14 | FivLoadingProgressBarModule, 15 | FivOverlayModule, 16 | IonicModule, 17 | FivPullModule 18 | ], 19 | exports: [FivDialog], 20 | entryComponents: [FivDialog], 21 | providers: [FivDialogService] 22 | }) 23 | export class FivDialogModule {} 24 | -------------------------------------------------------------------------------- /projects/core/src/lib/editable-label/editable-label.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | {{value}} 4 | 5 | {{value}} 6 | 8 | -------------------------------------------------------------------------------- /projects/core/src/lib/editable-label/editable-label.component.scss: -------------------------------------------------------------------------------- 1 | :host { 2 | width: 100%; 3 | } 4 | 5 | .label { 6 | max-width: 100%; 7 | } 8 | 9 | :host * { 10 | pointer-events: auto; 11 | } 12 | 13 | :host(.editable-label-disabled) { 14 | pointer-events: none; 15 | } 16 | 17 | .title-input { 18 | font-size: 20px; 19 | font-weight: 500; 20 | color: var(--color); 21 | } 22 | -------------------------------------------------------------------------------- /projects/core/src/lib/editable-label/editable-label.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { FivEditableLabel } from './editable-label.component'; 5 | 6 | describe('FivEditableLabel', () => { 7 | let component: FivEditableLabel; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [FivEditableLabel], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(FivEditableLabel); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /projects/core/src/lib/editable-label/editable-label.module.ts: -------------------------------------------------------------------------------- 1 | import { FormsModule } from '@angular/forms'; 2 | import { IonicModule } from '@ionic/angular'; 3 | import { FivEditableLabel } from './editable-label.component'; 4 | import { NgModule } from '@angular/core'; 5 | import { CommonModule } from '@angular/common'; 6 | 7 | @NgModule({ 8 | declarations: [FivEditableLabel], 9 | imports: [CommonModule, FormsModule, IonicModule], 10 | exports: [FivEditableLabel] 11 | }) 12 | export class FivEditableLabelModule {} 13 | -------------------------------------------------------------------------------- /projects/core/src/lib/expandable/expandable-indicator/expandable-indicator.component.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /projects/core/src/lib/expandable/expandable-indicator/expandable-indicator.component.scss: -------------------------------------------------------------------------------- 1 | :host { 2 | display: flex; 3 | } 4 | 5 | .indicator { 6 | transition: 125ms ease; 7 | } 8 | 9 | .indicator.rotate { 10 | transform: rotateZ(180deg); 11 | } 12 | -------------------------------------------------------------------------------- /projects/core/src/lib/expandable/expandable-indicator/expandable-indicator.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { FivExpandableIndicator } from './expandable-indicator.component'; 4 | 5 | describe('ExpandableIndicatorComponent', () => { 6 | let component: FivExpandableIndicator; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [FivExpandableIndicator] 12 | }).compileComponents(); 13 | })); 14 | 15 | beforeEach(() => { 16 | fixture = TestBed.createComponent(FivExpandableIndicator); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | }); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /projects/core/src/lib/expandable/expandable-indicator/expandable-indicator.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit, Input } from '@angular/core'; 2 | import { FivExpandable } from '../expandable.component'; 3 | 4 | @Component({ 5 | selector: 'fiv-expandable-indicator', 6 | templateUrl: './expandable-indicator.component.html', 7 | styleUrls: ['./expandable-indicator.component.scss'] 8 | }) 9 | export class FivExpandableIndicator implements OnInit { 10 | @Input() icon = 'chevron-down'; 11 | 12 | constructor(public expandable: FivExpandable) {} 13 | 14 | ngOnInit() {} 15 | } 16 | -------------------------------------------------------------------------------- /projects/core/src/lib/expandable/expandable.component.html: -------------------------------------------------------------------------------- 1 |
2 | 3 |
5 | 6 |
7 |
-------------------------------------------------------------------------------- /projects/core/src/lib/expandable/expandable.component.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/projects/core/src/lib/expandable/expandable.component.scss -------------------------------------------------------------------------------- /projects/core/src/lib/expandable/expandable.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { FivExpandable } from './expandable.component'; 4 | 5 | describe('ExpandableComponent', () => { 6 | let component: FivExpandable; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [FivExpandable] 12 | }).compileComponents(); 13 | })); 14 | 15 | beforeEach(() => { 16 | fixture = TestBed.createComponent(FivExpandable); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | }); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /projects/core/src/lib/expandable/expandable.module.ts: -------------------------------------------------------------------------------- 1 | import { IonicModule } from '@ionic/angular'; 2 | import { FivExpandable } from './expandable.component'; 3 | import { NgModule } from '@angular/core'; 4 | import { CommonModule } from '@angular/common'; 5 | import { FivExpandableIndicator } from './expandable-indicator/expandable-indicator.component'; 6 | 7 | @NgModule({ 8 | declarations: [FivExpandable, FivExpandableIndicator], 9 | imports: [CommonModule, IonicModule], 10 | exports: [FivExpandable, FivExpandableIndicator] 11 | }) 12 | export class FivExpandableModule {} 13 | -------------------------------------------------------------------------------- /projects/core/src/lib/fab/fab.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { FivFab } from './fab.component'; 4 | 5 | describe('LoadingFabComponent', () => { 6 | let component: FivFab; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [FivFab] 12 | }).compileComponents(); 13 | })); 14 | 15 | beforeEach(() => { 16 | fixture = TestBed.createComponent(FivFab); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | }); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /projects/core/src/lib/fab/fab.module.ts: -------------------------------------------------------------------------------- 1 | import { FivLoadingProgressBarModule } from './../loading-progress-bar/loading-progress-bar.module'; 2 | import { FivCenterModule } from '../center/center.module'; 3 | import { FivIconModule } from './../icon/icon.module'; 4 | import { IonicModule } from '@ionic/angular'; 5 | import { NgModule } from '@angular/core'; 6 | import { CommonModule } from '@angular/common'; 7 | import { FivFab } from './fab.component'; 8 | import { FivSpinnerModule } from '../spinner/spinner.module'; 9 | 10 | @NgModule({ 11 | declarations: [FivFab], 12 | imports: [ 13 | CommonModule, 14 | FivCenterModule, 15 | FivIconModule, 16 | FivSpinnerModule, 17 | IonicModule, 18 | FivLoadingProgressBarModule 19 | ], 20 | exports: [FivFab], 21 | providers: [] 22 | }) 23 | export class FivFabModule {} 24 | -------------------------------------------------------------------------------- /projects/core/src/lib/feature-discovery/feature-discovery.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { FivFeatureDiscovery } from './feature-discovery.component'; 5 | 6 | describe('FivFeatureDiscovery', () => { 7 | let component: FivFeatureDiscovery; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [FivFeatureDiscovery], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(FivFeatureDiscovery); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /projects/core/src/lib/feature-discovery/feature-discovery.module.ts: -------------------------------------------------------------------------------- 1 | import { FivFeature } from './feature.directive'; 2 | import { NgModule } from '@angular/core'; 3 | import { CommonModule } from '@angular/common'; 4 | import { FivFeatureDiscovery } from './feature-discovery.component'; 5 | import { FivIconModule } from '../icon/icon.module'; 6 | import { IonicModule } from '@ionic/angular'; 7 | 8 | @NgModule({ 9 | declarations: [FivFeature, FivFeatureDiscovery], 10 | imports: [CommonModule, IonicModule, FivIconModule], 11 | exports: [FivFeature, FivFeatureDiscovery], 12 | entryComponents: [FivFeatureDiscovery] 13 | }) 14 | export class FivFeatureDiscoveryModule {} 15 | -------------------------------------------------------------------------------- /projects/core/src/lib/gallery/gallery-image/gallery-image.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 | 7 |
-------------------------------------------------------------------------------- /projects/core/src/lib/gallery/gallery-image/gallery-image.component.scss: -------------------------------------------------------------------------------- 1 | :host { 2 | display: block; 3 | --max-height: 100%; 4 | --border-radius: 0px; 5 | min-height: var(--max-height); 6 | --background: var(--ion-color-light); 7 | background: var(--background); 8 | } 9 | 10 | .thumbnail { 11 | object-position: center; 12 | object-fit: cover; 13 | display: block; 14 | height: var(--height, auto); 15 | max-height: var(--max-height); 16 | width: var(--width, 100%); 17 | border-radius: var(--border-radius); 18 | } 19 | 20 | .ion-activatable { 21 | position: relative; 22 | --ripple-color: rgba(0, 0, 0, 0.5); 23 | } 24 | -------------------------------------------------------------------------------- /projects/core/src/lib/gallery/gallery-image/gallery-image.component.ts: -------------------------------------------------------------------------------- 1 | import { 2 | Component, 3 | OnInit, 4 | Input, 5 | ElementRef, 6 | ViewChild, 7 | Output, 8 | EventEmitter 9 | } from '@angular/core'; 10 | import { SafeResourceUrl } from '@angular/platform-browser'; 11 | 12 | @Component({ 13 | selector: 'fiv-gallery-image', 14 | templateUrl: './gallery-image.component.html', 15 | styleUrls: ['./gallery-image.component.scss'] 16 | }) 17 | export class FivGalleryImage implements OnInit { 18 | @Input() src: string | SafeResourceUrl; 19 | originalSrc: string | SafeResourceUrl; 20 | index: number; 21 | 22 | @ViewChild('thumbnail', { static: true }) thumbnail: ElementRef; 23 | @Output() click = new EventEmitter(); 24 | 25 | open() { 26 | this.click.emit(this); 27 | } 28 | constructor() {} 29 | 30 | ngOnInit() {} 31 | } 32 | -------------------------------------------------------------------------------- /projects/core/src/lib/gallery/gallery-toolbar-content/README.md: -------------------------------------------------------------------------------- 1 | # fiv-gallery-toolbar-content 2 | 3 | ```html 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | ``` -------------------------------------------------------------------------------- /projects/core/src/lib/gallery/gallery-toolbar-content/gallery-toolbar-content.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /projects/core/src/lib/gallery/gallery-toolbar-content/gallery-toolbar-content.component.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/projects/core/src/lib/gallery/gallery-toolbar-content/gallery-toolbar-content.component.scss -------------------------------------------------------------------------------- /projects/core/src/lib/gallery/gallery-toolbar-content/gallery-toolbar-content.component.ts: -------------------------------------------------------------------------------- 1 | import { FivGallery } from './../gallery.component'; 2 | import { Component, OnInit, Host } from '@angular/core'; 3 | 4 | @Component({ 5 | selector: 'fiv-gallery-toolbar-content', 6 | templateUrl: './gallery-toolbar-content.component.html', 7 | styleUrls: ['./gallery-toolbar-content.component.scss'] 8 | }) 9 | export class FivGalleryToolbarContent implements OnInit { 10 | constructor(@Host() public gallery: FivGallery) {} 11 | 12 | ngOnInit() {} 13 | } 14 | -------------------------------------------------------------------------------- /projects/core/src/lib/gallery/gallery-toolbar/gallery-toolbar.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /projects/core/src/lib/gallery/gallery-toolbar/gallery-toolbar.component.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/projects/core/src/lib/gallery/gallery-toolbar/gallery-toolbar.component.scss -------------------------------------------------------------------------------- /projects/core/src/lib/gallery/gallery-toolbar/gallery-toolbar.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { FivGalleryToolbar } from './gallery-toolbar.component'; 5 | 6 | describe('FivGalleryToolbar', () => { 7 | let component: FivGalleryToolbar; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [FivGalleryToolbar], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(FivGalleryToolbar); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /projects/core/src/lib/gallery/gallery-toolbar/gallery-toolbar.component.ts: -------------------------------------------------------------------------------- 1 | import { 2 | Component, 3 | OnInit, 4 | TemplateRef, 5 | ViewChild, 6 | Input 7 | } from '@angular/core'; 8 | 9 | @Component({ 10 | selector: 'fiv-gallery-toolbar', 11 | templateUrl: './gallery-toolbar.component.html', 12 | styleUrls: ['./gallery-toolbar.component.scss'] 13 | }) 14 | export class FivGalleryToolbar implements OnInit { 15 | @ViewChild(TemplateRef, { static: true }) content: TemplateRef; 16 | @Input() position: 'top' | 'bottom' = 'top'; 17 | 18 | constructor() {} 19 | 20 | ngOnInit() {} 21 | } 22 | -------------------------------------------------------------------------------- /projects/core/src/lib/icon/icon.component.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | {{badge}} 12 | 9+ 13 | -------------------------------------------------------------------------------- /projects/core/src/lib/icon/icon.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { FivIcon } from './icon.component'; 4 | 5 | describe('IconComponent', () => { 6 | let component: FivIcon; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [FivIcon] 12 | }).compileComponents(); 13 | })); 14 | 15 | beforeEach(() => { 16 | fixture = TestBed.createComponent(FivIcon); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | }); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /projects/core/src/lib/icon/icon.module.ts: -------------------------------------------------------------------------------- 1 | import { FivIcon } from './icon.component'; 2 | import { NgModule } from '@angular/core'; 3 | import { CommonModule } from '@angular/common'; 4 | import { IonicModule } from '@ionic/angular'; 5 | 6 | @NgModule({ 7 | declarations: [FivIcon], 8 | imports: [CommonModule, IonicModule], 9 | exports: [FivIcon] 10 | }) 11 | export class FivIconModule {} 12 | -------------------------------------------------------------------------------- /projects/core/src/lib/if-platform/if-platform.directive.ts: -------------------------------------------------------------------------------- 1 | import { Directive, Input, ViewContainerRef, TemplateRef } from '@angular/core'; 2 | import { Platform } from '@ionic/angular'; 3 | import { Platforms } from '@ionic/core'; 4 | 5 | @Directive({ 6 | selector: '[fivIf]' 7 | }) 8 | export class FivIfPlatform { 9 | constructor( 10 | private platform: Platform, 11 | private viewContainer: ViewContainerRef, 12 | private templateRef: TemplateRef 13 | ) {} 14 | 15 | @Input() 16 | set fivIf(platforms: Platforms[]) { 17 | let show = true; 18 | platforms.forEach(p => { 19 | if (!this.platform.is(p)) { 20 | show = false; 21 | } 22 | }); 23 | 24 | if (show) { 25 | this.viewContainer.createEmbeddedView(this.templateRef); 26 | } else { 27 | this.viewContainer.clear(); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /projects/core/src/lib/if-platform/if-platform.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FivIfPlatform } from './if-platform.directive'; 4 | 5 | @NgModule({ 6 | declarations: [FivIfPlatform], 7 | imports: [CommonModule], 8 | exports: [FivIfPlatform] 9 | }) 10 | export class FivIfModule {} 11 | -------------------------------------------------------------------------------- /projects/core/src/lib/interfaces.d.ts: -------------------------------------------------------------------------------- 1 | export type AppBarTitleMode = 'hide' | 'show' | 'active-only'; 2 | export type AppBarFabPosition = 'right' | 'left' | 'center'; 3 | export class FeaturePosition { 4 | top: number; 5 | left: number; 6 | height: number; 7 | width: number; 8 | } 9 | 10 | export interface Navigateable { 11 | dismiss(); 12 | } 13 | -------------------------------------------------------------------------------- /projects/core/src/lib/lazy-image/README.md: -------------------------------------------------------------------------------- 1 | # [fivLazyImage] 2 | 3 | use polyfill for safari 4 | https://github.com/w3c/IntersectionObserver/tree/master/polyfill 5 | 6 | in polyfills.ts like: 7 | 8 | ```typescript 9 | /*************************************************************************************************** 10 | * BROWSER POLYFILLS 11 | */ 12 | 13 | import 'intersection-observer'; 14 | ``` 15 | 16 | -------------------------------------------------------------------------------- /projects/core/src/lib/lazy-image/lazy-image.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FivLazyImage } from './lazy-image.directive'; 4 | 5 | @NgModule({ 6 | declarations: [FivLazyImage], 7 | imports: [CommonModule], 8 | exports: [FivLazyImage] 9 | }) 10 | export class FivLazyImageModule {} 11 | -------------------------------------------------------------------------------- /projects/core/src/lib/loading-progress-bar/loading-progress-bar.component.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 | 5 |
6 |
7 |
8 | -------------------------------------------------------------------------------- /projects/core/src/lib/loading-progress-bar/loading-progress-bar.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { FivLoadingProgressBar } from './loading-progress-bar.component'; 4 | 5 | describe('LoadingProgressBarComponent', () => { 6 | let component: FivLoadingProgressBar; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [FivLoadingProgressBar] 12 | }).compileComponents(); 13 | })); 14 | 15 | beforeEach(() => { 16 | fixture = TestBed.createComponent(FivLoadingProgressBar); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | }); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /projects/core/src/lib/loading-progress-bar/loading-progress-bar.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FivLoadingProgressBar } from './loading-progress-bar.component'; 4 | import { FivLoadingService } from './loading.service'; 5 | 6 | @NgModule({ 7 | declarations: [FivLoadingProgressBar], 8 | imports: [CommonModule], 9 | exports: [FivLoadingProgressBar], 10 | providers: [FivLoadingService] 11 | }) 12 | export class FivLoadingProgressBarModule {} 13 | -------------------------------------------------------------------------------- /projects/core/src/lib/network-status/network-status.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /projects/core/src/lib/network-status/network-status.component.scss: -------------------------------------------------------------------------------- 1 | :host { 2 | position: absolute; 3 | top: 66px; 4 | right: 8px; 5 | } 6 | 7 | ion-chip { 8 | width: 56px; 9 | } 10 | 11 | fiv-icon { 12 | --fiv-icon-color: var(--ion-color-dark); 13 | } 14 | -------------------------------------------------------------------------------- /projects/core/src/lib/network-status/network-status.module.ts: -------------------------------------------------------------------------------- 1 | import { FivCenterModule } from '../center/center.module'; 2 | import { NgModule } from '@angular/core'; 3 | import { CommonModule } from '@angular/common'; 4 | import { FivNetworkStatus } from './network-status.component'; 5 | import { IonicModule } from '@ionic/angular'; 6 | import { FivIconModule } from '../icon/icon.module'; 7 | 8 | @NgModule({ 9 | declarations: [FivNetworkStatus], 10 | imports: [CommonModule, FivCenterModule, FivIconModule, IonicModule], 11 | exports: [FivNetworkStatus], 12 | entryComponents: [FivNetworkStatus] 13 | }) 14 | export class FivNetworkStatusModule {} 15 | -------------------------------------------------------------------------------- /projects/core/src/lib/overlay/overlay-content/overlay-content.component.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /projects/core/src/lib/overlay/overlay-content/overlay-content.component.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/projects/core/src/lib/overlay/overlay-content/overlay-content.component.scss -------------------------------------------------------------------------------- /projects/core/src/lib/overlay/overlay-content/overlay-content.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { FivOverlayContent } from './overlay-content.component'; 5 | 6 | describe('FivOverlayContent', () => { 7 | let component: FivOverlayContent; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [FivOverlayContent], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(FivOverlayContent); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /projects/core/src/lib/overlay/overlay-content/overlay-content.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, HostBinding } from '@angular/core'; 2 | import { SafeStyle, DomSanitizer } from '@angular/platform-browser'; 3 | 4 | @Component({ 5 | selector: 'fiv-overlay-content', 6 | templateUrl: './overlay-content.component.html', 7 | styleUrls: ['./overlay-content.component.scss'] 8 | }) 9 | export class FivOverlayContent { 10 | @HostBinding('style') 11 | get myStyle(): SafeStyle { 12 | return this.priority 13 | ? this.sanitizer.bypassSecurityTrustStyle(`z-index: ${this.priority}`) 14 | : null; 15 | } 16 | 17 | priority: number; 18 | 19 | constructor(private sanitizer: DomSanitizer) {} 20 | } 21 | -------------------------------------------------------------------------------- /projects/core/src/lib/overlay/overlay.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /projects/core/src/lib/overlay/overlay.component.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/projects/core/src/lib/overlay/overlay.component.scss -------------------------------------------------------------------------------- /projects/core/src/lib/overlay/overlay.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { FivOverlay } from './overlay.component'; 5 | 6 | describe('FivOverlay', () => { 7 | let component: FivOverlay; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [FivOverlay], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(FivOverlay); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /projects/core/src/lib/overlay/overlay.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FivOverlay } from './overlay.component'; 4 | import { FivOverlayContent } from './overlay-content/overlay-content.component'; 5 | import { FivOverlayService } from './overlay.service'; 6 | 7 | @NgModule({ 8 | declarations: [FivOverlay, FivOverlayContent], 9 | imports: [CommonModule], 10 | exports: [FivOverlay, FivOverlayContent], 11 | entryComponents: [FivOverlayContent], 12 | providers: [FivOverlayService] 13 | }) 14 | export class FivOverlayModule {} 15 | -------------------------------------------------------------------------------- /projects/core/src/lib/password-input/password-input.component.html: -------------------------------------------------------------------------------- 1 | 2 | {{ placeholder }} 3 | 5 | 6 | -------------------------------------------------------------------------------- /projects/core/src/lib/password-input/password-input.component.scss: -------------------------------------------------------------------------------- 1 | :host(.password-disabled) { 2 | pointer-events: none; 3 | } 4 | 5 | // FIXME: https://github.com/ionic-team/ionic/issues/18681#issuecomment-507288178 6 | ion-icon { 7 | align-self: center; 8 | } 9 | -------------------------------------------------------------------------------- /projects/core/src/lib/password-input/password-input.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { FivPasswordInput } from './password-input.component'; 4 | 5 | describe('FivPasswordInput', () => { 6 | let component: FivPasswordInput; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [FivPasswordInput] 12 | }).compileComponents(); 13 | })); 14 | 15 | beforeEach(() => { 16 | fixture = TestBed.createComponent(FivPasswordInput); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | }); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /projects/core/src/lib/password-input/password-input.module.ts: -------------------------------------------------------------------------------- 1 | import { FormsModule } from '@angular/forms'; 2 | import { IonicModule } from '@ionic/angular'; 3 | import { NgModule } from '@angular/core'; 4 | import { CommonModule } from '@angular/common'; 5 | import { FivPasswordInput } from './password-input.component'; 6 | 7 | @NgModule({ 8 | declarations: [FivPasswordInput], 9 | imports: [CommonModule, FormsModule, IonicModule], 10 | exports: [FivPasswordInput] 11 | }) 12 | export class FivPasswordInputModule {} 13 | -------------------------------------------------------------------------------- /projects/core/src/lib/permissions/permissions.module.ts: -------------------------------------------------------------------------------- 1 | import { FivPermissions } from './permissions.directive'; 2 | import { NgModule } from '@angular/core'; 3 | import { CommonModule } from '@angular/common'; 4 | 5 | @NgModule({ 6 | declarations: [FivPermissions], 7 | imports: [CommonModule], 8 | exports: [FivPermissions] 9 | }) 10 | export class FivPermissionsModule {} 11 | -------------------------------------------------------------------------------- /projects/core/src/lib/popover/popover.component.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
5 |
6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 |
14 | 15 |
-------------------------------------------------------------------------------- /projects/core/src/lib/popover/popover.component.scss: -------------------------------------------------------------------------------- 1 | :host { 2 | --fiv-popover-backdrop-color: rgba(0, 0, 0, 0.2); 3 | } 4 | 5 | .popover-container { 6 | position: absolute; 7 | display: block; 8 | } 9 | 10 | .animation-container { 11 | height: 100%; 12 | position: relative; 13 | } 14 | 15 | svg.arrow { 16 | position: absolute; 17 | fill: var(--ion-item-background); 18 | } 19 | 20 | .fiv-popover-backdrop { 21 | position: absolute; 22 | display: block; 23 | width: 100vw; 24 | height: 100vh; 25 | background: var(--fiv-popover-backdrop-color); 26 | } 27 | -------------------------------------------------------------------------------- /projects/core/src/lib/popover/popover.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | import { IonicModule } from '@ionic/angular'; 3 | 4 | import { FivPopover } from './popover.component'; 5 | 6 | describe('FivPopover', () => { 7 | let component: FivPopover; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [FivPopover], 13 | imports: [IonicModule.forRoot()] 14 | }).compileComponents(); 15 | 16 | fixture = TestBed.createComponent(FivPopover); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | })); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /projects/core/src/lib/popover/popover.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FivPopover } from './popover.component'; 4 | import { FivOverlayModule } from '../overlay/overlay.module'; 5 | import { AnimationsModule } from '@fivethree/ngx-rxjs-animations'; 6 | import { FivPopoverElementDirective } from './popover-element.directive'; 7 | 8 | @NgModule({ 9 | declarations: [FivPopover, FivPopoverElementDirective], 10 | imports: [CommonModule, AnimationsModule, FivOverlayModule], 11 | exports: [FivPopover, FivPopoverElementDirective] 12 | }) 13 | export class FivPopoverModule {} 14 | -------------------------------------------------------------------------------- /projects/core/src/lib/popover/popover.types.ts: -------------------------------------------------------------------------------- 1 | export interface PopoverPosition { 2 | top: number; 3 | left: number; 4 | bottom: number; 5 | right: number; 6 | targetWidth: number; 7 | targetHeight: number; 8 | vertical: PopoverVerticalAlign; 9 | horizontal: PopoverHorizontalAlign; 10 | } 11 | 12 | export type PopoverHorizontalAlign = 'left' | 'right'; 13 | export type PopoverVerticalAlign = 'top' | 'bottom'; 14 | export type PopoverPositioning = 'auto' | 'above' | 'below' | 'left' | 'right'; 15 | export type PopoverArrowPositioning = 'auto' | 'center'; 16 | -------------------------------------------------------------------------------- /projects/core/src/lib/pull/pull.module.ts: -------------------------------------------------------------------------------- 1 | import { FivPull } from './pull.directive'; 2 | import { NgModule } from '@angular/core'; 3 | import { CommonModule } from '@angular/common'; 4 | 5 | @NgModule({ 6 | declarations: [FivPull], 7 | imports: [CommonModule], 8 | exports: [FivPull] 9 | }) 10 | export class FivPullModule {} 11 | -------------------------------------------------------------------------------- /projects/core/src/lib/refresher/refresher-content/refresher-content.component.html: -------------------------------------------------------------------------------- 1 |
2 | 4 |
-------------------------------------------------------------------------------- /projects/core/src/lib/refresher/refresher-content/refresher-content.component.scss: -------------------------------------------------------------------------------- 1 | :host { 2 | --fiv-spinner-size: 40px; 3 | position: absolute; 4 | width: var(--fiv-spinner-size); 5 | height: var(--fiv-spinner-size); 6 | top: calc(-1 * var(--fiv-spinner-size)); 7 | left: calc(50% - var(--fiv-spinner-size) / 2); 8 | z-index: 9; 9 | } 10 | 11 | .spinner-background:not(.hidden) { 12 | box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.14), 0 4px 5px rgba(0, 0, 0, 0.1); 13 | } 14 | 15 | .spinner-background { 16 | position: absolute; 17 | width: 40px; 18 | height: 40px; 19 | background: var(--fiv-spin-background); 20 | border-radius: 50%; 21 | 22 | fiv-spinner { 23 | position: absolute; 24 | top: 10px; 25 | left: 10px; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /projects/core/src/lib/refresher/refresher.component.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 7 | 8 | {{hintText}} 9 | -------------------------------------------------------------------------------- /projects/core/src/lib/refresher/refresher.component.scss: -------------------------------------------------------------------------------- 1 | :host { 2 | --fiv-spin-color: var(--ion-color-primary); 3 | --fiv-hint-color: var(--fiv-spin-color, var(--ion-color-primary)); 4 | --fiv-spin-background: var(--ion-color-light); 5 | } 6 | 7 | .icon { 8 | height: 20px; 9 | width: 20px; 10 | background: transparent; 11 | color: var(--fiv-hint-color); 12 | } 13 | 14 | .text { 15 | font-size: 1em; 16 | color: var(--fiv-hint-color); 17 | } 18 | 19 | .text.hidden { 20 | opacity: 0; 21 | } 22 | 23 | .gg-hint-wrapper { 24 | position: absolute; 25 | z-index: 8; 26 | opacity: 1; 27 | left: 50%; 28 | top: -40px; 29 | transform: translateY(72px) translateX(-50%); 30 | height: 40px; 31 | padding-left: 8px; 32 | padding-right: 8px; 33 | background: var(--fiv-spin-background); 34 | border-radius: 40px; 35 | box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.14), 0 4px 5px rgba(0, 0, 0, 0.1); 36 | margin: 0; 37 | } 38 | -------------------------------------------------------------------------------- /projects/core/src/lib/refresher/refresher.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { FivRefresher } from './refresher.component'; 4 | 5 | describe('LoadingContentComponent', () => { 6 | let component: FivRefresher; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [FivRefresher] 12 | }).compileComponents(); 13 | })); 14 | 15 | beforeEach(() => { 16 | fixture = TestBed.createComponent(FivRefresher); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | }); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /projects/core/src/lib/refresher/refresher.module.ts: -------------------------------------------------------------------------------- 1 | import { FivSpinnerModule } from './../spinner/spinner.module'; 2 | import { FivPullModule } from '../pull/pull.module'; 3 | import { NgModule } from '@angular/core'; 4 | import { CommonModule } from '@angular/common'; 5 | import { FivRefresher } from './refresher.component'; 6 | import { IonicModule } from '@ionic/angular'; 7 | import { FivRefresherContent } from './refresher-content/refresher-content.component'; 8 | 9 | @NgModule({ 10 | declarations: [FivRefresher, FivRefresherContent], 11 | imports: [CommonModule, FivSpinnerModule, FivPullModule, IonicModule], 12 | exports: [FivRefresher, FivRefresherContent] 13 | }) 14 | export class FivRefresherModule {} 15 | -------------------------------------------------------------------------------- /projects/core/src/lib/router-item/router-item.component.html: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 |
12 | 13 | {{ text }} 14 | 15 |
16 |
17 | 18 | -------------------------------------------------------------------------------- /projects/core/src/lib/router-item/router-item.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { FivRouterItem } from './router-item.component'; 4 | 5 | describe('RouterItemComponent', () => { 6 | let component: FivRouterItem; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [FivRouterItem] 12 | }).compileComponents(); 13 | })); 14 | 15 | beforeEach(() => { 16 | fixture = TestBed.createComponent(FivRouterItem); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | }); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /projects/core/src/lib/router-item/router-item.module.ts: -------------------------------------------------------------------------------- 1 | import { FivExpandableModule } from './../expandable/expandable.module'; 2 | import { FivIconModule } from './../icon/icon.module'; 3 | import { IonicModule } from '@ionic/angular'; 4 | import { NgModule } from '@angular/core'; 5 | import { CommonModule } from '@angular/common'; 6 | import { FivRouterItem } from './router-item.component'; 7 | 8 | @NgModule({ 9 | declarations: [FivRouterItem], 10 | imports: [CommonModule, IonicModule, FivExpandableModule, FivIconModule], 11 | exports: [FivRouterItem] 12 | }) 13 | export class FivRouterItemModule {} 14 | -------------------------------------------------------------------------------- /projects/core/src/lib/searchbar/searchbar.component.scss: -------------------------------------------------------------------------------- 1 | :host { 2 | position: relative; 3 | display: block; 4 | width: 100%; 5 | --fiv-toolbar-background: var(--ion-color-light); 6 | } 7 | 8 | ion-toolbar { 9 | box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); 10 | transition: border-bottom-right-radius ease 85ms; 11 | margin-top: env(safe-area-inset-top); 12 | --background: var(--fiv-toolbar-background); 13 | } 14 | 15 | ion-toolbar.small { 16 | border-bottom-right-radius: 12px; 17 | } 18 | 19 | .searchbarbar { 20 | float: right; 21 | } 22 | -------------------------------------------------------------------------------- /projects/core/src/lib/searchbar/searchbar.module.ts: -------------------------------------------------------------------------------- 1 | import { FivSearchbar } from './searchbar.component'; 2 | import { NgModule } from '@angular/core'; 3 | import { CommonModule } from '@angular/common'; 4 | import { IonicModule } from '@ionic/angular'; 5 | import { FivIconModule } from '../icon/icon.module'; 6 | 7 | @NgModule({ 8 | declarations: [FivSearchbar], 9 | imports: [CommonModule, IonicModule, FivIconModule], 10 | exports: [FivSearchbar] 11 | }) 12 | export class FivSearchbarModule {} 13 | -------------------------------------------------------------------------------- /projects/core/src/lib/spinner/spinner.component.html: -------------------------------------------------------------------------------- 1 | 3 | 7 | 8 | 11 | -------------------------------------------------------------------------------- /projects/core/src/lib/spinner/spinner.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { FivSpinner } from './spinner.component'; 4 | 5 | describe('LoadingSpinnerComponent', () => { 6 | let component: FivSpinner; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [FivSpinner] 12 | }).compileComponents(); 13 | })); 14 | 15 | beforeEach(() => { 16 | fixture = TestBed.createComponent(FivSpinner); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | }); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /projects/core/src/lib/spinner/spinner.module.ts: -------------------------------------------------------------------------------- 1 | import { FivSpinner } from './spinner.component'; 2 | import { NgModule } from '@angular/core'; 3 | import { CommonModule } from '@angular/common'; 4 | 5 | @NgModule({ 6 | declarations: [FivSpinner], 7 | imports: [CommonModule], 8 | exports: [FivSpinner] 9 | }) 10 | export class FivSpinnerModule {} 11 | -------------------------------------------------------------------------------- /projects/core/src/lib/stepper/step-content/step-content.component.html: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | 5 |
{{title}}
6 |
{{subtitle}}
7 | 8 | 9 |
10 |
11 | 12 |
13 | 14 |
15 |
16 |
-------------------------------------------------------------------------------- /projects/core/src/lib/stepper/step-content/step-content.component.scss: -------------------------------------------------------------------------------- 1 | :host { 2 | display: block; 3 | width: 100%; 4 | position: relative; 5 | } 6 | 7 | .step-content { 8 | padding-left: 44px; 9 | padding-bottom: 24px; 10 | } 11 | 12 | .timeline { 13 | width: 1px; 14 | height: calc(100% - 32px); 15 | position: absolute; 16 | background: var(--fiv-color-timeline, var(--ion-color-medium)); 17 | left: 27.5px; 18 | top: 36px; 19 | } 20 | 21 | .ion-activatable { 22 | position: relative; 23 | overflow: hidden; 24 | } 25 | 26 | .header-title { 27 | color: var(--fiv-color-title, var(--ion-color-dark)); 28 | } 29 | 30 | .header-subtitle { 31 | color: var(--fiv-color-subtitle, var(--ion-color-medium)); 32 | font-size: 0.8em; 33 | } 34 | -------------------------------------------------------------------------------- /projects/core/src/lib/stepper/step-content/step-content.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { FivStepContent } from './step-content.component'; 4 | 5 | describe('StepContentComponent', () => { 6 | let component: FivStepContent; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [FivStepContent] 12 | }).compileComponents(); 13 | })); 14 | 15 | beforeEach(() => { 16 | fixture = TestBed.createComponent(FivStepContent); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | }); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /projects/core/src/lib/stepper/step-header/step-header.component.html: -------------------------------------------------------------------------------- 1 |
2 | {{index}} 4 | 6 |
7 |
8 | 9 | 10 |
-------------------------------------------------------------------------------- /projects/core/src/lib/stepper/step-header/step-header.component.scss: -------------------------------------------------------------------------------- 1 | :host { 2 | display: block; 3 | width: 100%; 4 | height: 72px; 5 | align-items: center; 6 | position: relative; 7 | padding-top: 8px; 8 | } 9 | 10 | .number-container { 11 | width: 24px; 12 | height: 24px; 13 | border-radius: 100%; 14 | position: absolute; 15 | left: 16px; 16 | background: var(--fiv-color-circle, var(--ion-color-primary)); 17 | color: var(--fiv-color-circle-color, var(--ion-color-light)); 18 | * { 19 | position: absolute; 20 | left: 50%; 21 | top: 50%; 22 | transform: translate(-50%, -50%) rotateZ(0deg); 23 | } 24 | } 25 | 26 | .step-content { 27 | padding-left: 56px; 28 | } 29 | -------------------------------------------------------------------------------- /projects/core/src/lib/stepper/step-header/step-header.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { FivStepHeader } from './step-header.component'; 4 | 5 | describe('StepHeaderComponent', () => { 6 | let component: FivStepHeader; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [FivStepHeader] 12 | }).compileComponents(); 13 | })); 14 | 15 | beforeEach(() => { 16 | fixture = TestBed.createComponent(FivStepHeader); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | }); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /projects/core/src/lib/stepper/step/step.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /projects/core/src/lib/stepper/step/step.component.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/projects/core/src/lib/stepper/step/step.component.scss -------------------------------------------------------------------------------- /projects/core/src/lib/stepper/step/step.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { FivStep } from './step.component'; 4 | 5 | describe('StepComponent', () => { 6 | let component: FivStep; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [FivStep] 12 | }).compileComponents(); 13 | })); 14 | 15 | beforeEach(() => { 16 | fixture = TestBed.createComponent(FivStep); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | }); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /projects/core/src/lib/stepper/step/step.component.ts: -------------------------------------------------------------------------------- 1 | import { 2 | Component, 3 | OnInit, 4 | Input, 5 | ViewChild, 6 | TemplateRef 7 | } from '@angular/core'; 8 | 9 | @Component({ 10 | selector: 'fiv-step', 11 | templateUrl: './step.component.html', 12 | styleUrls: ['./step.component.scss'] 13 | }) 14 | export class FivStep implements OnInit { 15 | @Input() index: number; 16 | @Input() icon: string; 17 | @Input() isLast = false; 18 | @Input() open = false; 19 | @Input() title = ''; 20 | @Input() subtitle = ''; 21 | 22 | @ViewChild(TemplateRef, { static: false }) content: TemplateRef; 23 | 24 | constructor() {} 25 | 26 | ngOnInit() {} 27 | } 28 | -------------------------------------------------------------------------------- /projects/core/src/lib/stepper/stepper-horizontal/stepper-horizontal.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | import { FivStepperHorizontal } from './stepper-horizontal.component'; 3 | 4 | describe('StepperHeaderHorizontalComponent', () => { 5 | let component: FivStepperHorizontal; 6 | let fixture: ComponentFixture; 7 | 8 | beforeEach(async(() => { 9 | TestBed.configureTestingModule({ 10 | declarations: [FivStepperHorizontal] 11 | }).compileComponents(); 12 | })); 13 | 14 | beforeEach(() => { 15 | fixture = TestBed.createComponent(FivStepperHorizontal); 16 | component = fixture.componentInstance; 17 | fixture.detectChanges(); 18 | }); 19 | 20 | it('should create', () => { 21 | expect(component).toBeTruthy(); 22 | }); 23 | }); 24 | -------------------------------------------------------------------------------- /projects/core/src/lib/stepper/stepper.component.html: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 |
8 | 9 |
-------------------------------------------------------------------------------- /projects/core/src/lib/stepper/stepper.component.scss: -------------------------------------------------------------------------------- 1 | :host { 2 | display: block; 3 | width: 100%; 4 | } 5 | -------------------------------------------------------------------------------- /projects/core/src/lib/stepper/stepper.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { FivStepper } from './stepper.component'; 4 | 5 | describe('StepperComponent', () => { 6 | let component: FivStepper; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [FivStepper] 12 | }).compileComponents(); 13 | })); 14 | 15 | beforeEach(() => { 16 | fixture = TestBed.createComponent(FivStepper); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | }); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /projects/core/src/lib/viewport/viewport.module.ts: -------------------------------------------------------------------------------- 1 | import { FivViewport } from './viewport.directive'; 2 | import { NgModule } from '@angular/core'; 3 | import { CommonModule } from '@angular/common'; 4 | 5 | @NgModule({ 6 | declarations: [FivViewport], 7 | imports: [CommonModule], 8 | exports: [FivViewport] 9 | }) 10 | export class FivViewportModule {} 11 | -------------------------------------------------------------------------------- /projects/core/src/test.ts: -------------------------------------------------------------------------------- 1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files 2 | 3 | import 'core-js/es7/reflect'; 4 | import 'zone.js/dist/zone'; 5 | import 'zone.js/dist/zone-testing'; 6 | import { getTestBed } from '@angular/core/testing'; 7 | import { 8 | BrowserDynamicTestingModule, 9 | platformBrowserDynamicTesting 10 | } from '@angular/platform-browser-dynamic/testing'; 11 | 12 | declare const require: any; 13 | 14 | // First, initialize the Angular testing environment. 15 | getTestBed().initTestEnvironment( 16 | BrowserDynamicTestingModule, 17 | platformBrowserDynamicTesting() 18 | ); 19 | // Then we find all the tests. 20 | const context = require.context('./', true, /\.spec\.ts$/); 21 | // And load the modules. 22 | context.keys().map(context); 23 | -------------------------------------------------------------------------------- /projects/core/tsconfig.lib.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../../out-tsc/lib", 5 | "target": "es2015", 6 | "module": "es2015", 7 | "moduleResolution": "node", 8 | "declaration": true, 9 | "sourceMap": true, 10 | "inlineSources": true, 11 | "emitDecoratorMetadata": true, 12 | "experimentalDecorators": true, 13 | "importHelpers": true, 14 | "types": [], 15 | "lib": [ 16 | "dom", 17 | "es2015" 18 | ] 19 | }, 20 | "angularCompilerOptions": { 21 | "annotateForClosureCompiler": true, 22 | "skipTemplateCodegen": true, 23 | "strictMetadataEmit": true, 24 | "fullTemplateTypeCheck": true, 25 | "strictInjectionParameters": true, 26 | "flatModuleId": "AUTOGENERATED", 27 | "flatModuleOutFile": "AUTOGENERATED" 28 | }, 29 | "exclude": [ 30 | "src/test.ts", 31 | "**/*.spec.ts" 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /projects/core/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../../out-tsc/spec", 5 | "types": [ 6 | "jasmine", 7 | "node" 8 | ] 9 | }, 10 | "files": [ 11 | "src/test.ts" 12 | ], 13 | "include": [ 14 | "**/*.spec.ts", 15 | "**/*.d.ts" 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /projects/core/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tslint.json", 3 | "rules": { 4 | "directive-selector": [ 5 | true, 6 | "attribute", 7 | "fiv", 8 | "camelCase" 9 | ], 10 | "component-selector": [ 11 | true, 12 | "element", 13 | "fiv", 14 | "kebab-case" 15 | ] 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "config:base" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /resources/README.md: -------------------------------------------------------------------------------- 1 | These are Cordova resources. You can replace icon.png and splash.png and run 2 | `ionic cordova resources` to generate custom icons and splash screens for your 3 | app. See `ionic cordova resources --help` for details. 4 | 5 | Cordova reference documentation: 6 | 7 | - Icons: https://cordova.apache.org/docs/en/latest/config_ref/images.html 8 | - Splash Screens: https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-splashscreen/ 9 | -------------------------------------------------------------------------------- /resources/android/icon/drawable-hdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/android/icon/drawable-hdpi-icon.png -------------------------------------------------------------------------------- /resources/android/icon/drawable-ldpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/android/icon/drawable-ldpi-icon.png -------------------------------------------------------------------------------- /resources/android/icon/drawable-mdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/android/icon/drawable-mdpi-icon.png -------------------------------------------------------------------------------- /resources/android/icon/drawable-xhdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/android/icon/drawable-xhdpi-icon.png -------------------------------------------------------------------------------- /resources/android/icon/drawable-xxhdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/android/icon/drawable-xxhdpi-icon.png -------------------------------------------------------------------------------- /resources/android/icon/drawable-xxxhdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/android/icon/drawable-xxxhdpi-icon.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-land-hdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/android/splash/drawable-land-hdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-land-ldpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/android/splash/drawable-land-ldpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-land-mdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/android/splash/drawable-land-mdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-land-xhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/android/splash/drawable-land-xhdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-land-xxhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/android/splash/drawable-land-xxhdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-land-xxxhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/android/splash/drawable-land-xxxhdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-port-hdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/android/splash/drawable-port-hdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-port-ldpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/android/splash/drawable-port-ldpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-port-mdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/android/splash/drawable-port-mdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-port-xhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/android/splash/drawable-port-xhdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-port-xxhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/android/splash/drawable-port-xxhdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-port-xxxhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/android/splash/drawable-port-xxxhdpi-screen.png -------------------------------------------------------------------------------- /resources/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/icon.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/icon/icon-1024.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/icon/icon-40.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/icon/icon-40@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/icon/icon-40@3x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/icon/icon-50.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/icon/icon-50@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/icon/icon-60.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/icon/icon-60@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/icon/icon-60@3x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/icon/icon-72.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/icon/icon-72@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/icon/icon-76.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/icon/icon-76@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/icon/icon-83.5@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/icon/icon-small.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/icon/icon-small@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/icon/icon-small@3x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/icon/icon.png -------------------------------------------------------------------------------- /resources/ios/icon/icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/icon/icon@2x.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-568h@2x~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/splash/Default-568h@2x~iphone.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-667h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/splash/Default-667h.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-736h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/splash/Default-736h.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-Landscape-736h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/splash/Default-Landscape-736h.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-Landscape@2x~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/splash/Default-Landscape@2x~ipad.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-Landscape@~ipadpro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/splash/Default-Landscape@~ipadpro.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-Landscape~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/splash/Default-Landscape~ipad.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-Portrait@2x~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/splash/Default-Portrait@2x~ipad.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-Portrait@~ipadpro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/splash/Default-Portrait@~ipadpro.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-Portrait~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/splash/Default-Portrait~ipad.png -------------------------------------------------------------------------------- /resources/ios/splash/Default@2x~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/splash/Default@2x~iphone.png -------------------------------------------------------------------------------- /resources/ios/splash/Default@2x~universal~anyany.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/splash/Default@2x~universal~anyany.png -------------------------------------------------------------------------------- /resources/ios/splash/Default~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/ios/splash/Default~iphone.png -------------------------------------------------------------------------------- /resources/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/resources/splash.png -------------------------------------------------------------------------------- /sketch.sketch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/sketch.sketch -------------------------------------------------------------------------------- /src/app/app.component.scss: -------------------------------------------------------------------------------- 1 | ion-item:hover { 2 | cursor: pointer; 3 | --background: var(--ion-color-light); 4 | ion-label { 5 | --color: var(--ion-color-primary); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/app/components/docs-footer/docs-footer.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Edit this page 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/app/components/docs-footer/docs-footer.component.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/app/components/docs-footer/docs-footer.component.scss -------------------------------------------------------------------------------- /src/app/components/docs-footer/docs-footer.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { DocsFooterComponent } from './docs-footer.component'; 5 | 6 | describe('DocsFooterComponent', () => { 7 | let component: DocsFooterComponent; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [DocsFooterComponent], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(DocsFooterComponent); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/components/docs-footer/docs-footer.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit, Input } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-docs-footer', 5 | templateUrl: './docs-footer.component.html', 6 | styleUrls: ['./docs-footer.component.scss'] 7 | }) 8 | export class DocsFooterComponent implements OnInit { 9 | @Input() path: string; 10 | 11 | editHref: string; 12 | 13 | constructor() {} 14 | 15 | ngOnInit() { 16 | this.editHref = `https://github.com/fivethree-team/ionic-4-components/edit/master/src/${this.path}`; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/app/components/example/example.component.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
5 | 6 |
7 |
8 | 9 | 10 | 11 |
12 |
-------------------------------------------------------------------------------- /src/app/components/example/example.component.scss: -------------------------------------------------------------------------------- 1 | :host { 2 | position: relative; 3 | display: block; 4 | } 5 | 6 | .swiper-slide { 7 | text-align: left; 8 | } 9 | 10 | .content-container { 11 | width: 100%; 12 | height: 100%; 13 | padding: 16px; 14 | } 15 | 16 | @media (max-width: 411px) { 17 | .example { 18 | margin: 0px; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/app/components/example/example.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { ExampleComponent } from './example.component'; 4 | 5 | describe('ExampleComponent', () => { 6 | let component: ExampleComponent; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [ExampleComponent] 12 | }).compileComponents(); 13 | })); 14 | 15 | beforeEach(() => { 16 | fixture = TestBed.createComponent(ExampleComponent); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | }); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /src/app/components/example/example.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit, Input } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-example', 5 | templateUrl: './example.component.html', 6 | styleUrls: ['./example.component.scss'] 7 | }) 8 | export class ExampleComponent implements OnInit { 9 | @Input() docs: string; 10 | 11 | constructor() {} 12 | 13 | ngOnInit() {} 14 | } 15 | -------------------------------------------------------------------------------- /src/app/components/footer/footer.component.scss: -------------------------------------------------------------------------------- 1 | ion-footer { 2 | background: var(--ion-color-dark); 3 | padding: 24px 0 24px 0; 4 | } 5 | 6 | h4 { 7 | color: var(--ion-color-dark-contrast); 8 | } 9 | 10 | .links { 11 | display: block; 12 | margin-bottom: 8px; 13 | font-size: 16px; 14 | line-height: 1.3; 15 | color: var(--ion-color-light); 16 | } 17 | 18 | a:hover { 19 | color: var(--ion-color-light-shade); 20 | } 21 | 22 | a { 23 | text-decoration: none; 24 | } 25 | 26 | #social { 27 | display: flex; 28 | justify-content: center; 29 | align-items: center; 30 | 31 | a { 32 | color: var(--ion-color-light); 33 | font-size: 2rem; 34 | padding: 0 12px 0 12px; 35 | } 36 | 37 | a:first-child { 38 | padding-left: 0; 39 | } 40 | 41 | a:last-child { 42 | padding-right: 0; 43 | } 44 | } 45 | 46 | @media screen and (max-width: 991px) { 47 | #social { 48 | order: -1; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/app/components/footer/footer.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { FooterComponent } from './footer.component'; 4 | 5 | describe('FooterComponent', () => { 6 | let component: FooterComponent; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [FooterComponent] 12 | }).compileComponents(); 13 | })); 14 | 15 | beforeEach(() => { 16 | fixture = TestBed.createComponent(FooterComponent); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | }); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /src/app/components/header/header.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | {{title}} 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/app/components/header/header.component.scss: -------------------------------------------------------------------------------- 1 | ion-title { 2 | cursor: pointer; 3 | } 4 | 5 | #github { 6 | color: var(--ion-color-light-contrast); 7 | } 8 | -------------------------------------------------------------------------------- /src/app/components/header/header.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { HeaderComponent } from './header.component'; 4 | 5 | describe('HeaderComponent', () => { 6 | let component: HeaderComponent; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [HeaderComponent] 12 | }).compileComponents(); 13 | })); 14 | 15 | beforeEach(() => { 16 | fixture = TestBed.createComponent(HeaderComponent); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | }); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /src/app/components/header/header.component.ts: -------------------------------------------------------------------------------- 1 | import { NavController } from '@ionic/angular'; 2 | import { Component, OnInit, Input } from '@angular/core'; 3 | 4 | @Component({ 5 | selector: 'app-header', 6 | templateUrl: './header.component.html', 7 | styleUrls: ['./header.component.scss'] 8 | }) 9 | export class HeaderComponent implements OnInit { 10 | @Input() title = ''; 11 | @Input() backbutton = true; 12 | 13 | constructor(private navController: NavController) {} 14 | 15 | ngOnInit() {} 16 | 17 | onTitleClicked() { 18 | this.navController.navigateRoot('/'); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/app/components/touch-field/touch-field.component.html: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/app/components/touch-field/touch-field.component.scss: -------------------------------------------------------------------------------- 1 | .desktop { 2 | min-height: 70vh; 3 | max-width: 411px; 4 | display: block; 5 | position: relative; 6 | margin: 0 auto; 7 | border: 2px solid var(--ion-color-dark); 8 | cursor: url(/assets/icon/cursor.png), auto; 9 | } 10 | -------------------------------------------------------------------------------- /src/app/components/touch-field/touch-field.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { TouchFieldComponent } from './touch-field.component'; 5 | 6 | describe('TouchFieldComponent', () => { 7 | let component: TouchFieldComponent; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [TouchFieldComponent], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(TouchFieldComponent); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/components/touch-field/touch-field.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit, ViewEncapsulation } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-touch-field', 5 | templateUrl: './touch-field.component.html', 6 | styleUrls: ['./touch-field.component.scss'], 7 | encapsulation: ViewEncapsulation.None 8 | }) 9 | export class TouchFieldComponent implements OnInit { 10 | constructor() {} 11 | 12 | ngOnInit() {} 13 | } 14 | -------------------------------------------------------------------------------- /src/app/pages/app-bar/app-bar.page.scss: -------------------------------------------------------------------------------- 1 | .container.min { 2 | min-height: 70vh; 3 | max-width: 411px; 4 | display: block; 5 | position: relative; 6 | margin: 0 auto; 7 | border: 2px solid var(--ion-color-dark); 8 | cursor: url(/assets/icon/cursor.png), auto; 9 | } 10 | 11 | fiv-app-bar { 12 | // --fiv-icon-color: var(--ion-color-dark); 13 | // --fiv-small-icon-background-color: yellow; 14 | // --fiv-small-icon-color: red; 15 | 16 | // --fiv-badge-background-color: yellow; 17 | // --fiv-badge-color: red; 18 | 19 | // --fiv-dot-background-color: yellow; 20 | 21 | // --fiv-icon-activ-color: red; 22 | } 23 | -------------------------------------------------------------------------------- /src/app/pages/app-bar/app-bar.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { AppBarPage } from './app-bar.page'; 5 | 6 | describe('AppBarPage', () => { 7 | let component: AppBarPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [AppBarPage], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(AppBarPage); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/pages/app-bar/tabs/four/four.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FormsModule } from '@angular/forms'; 4 | import { Routes, RouterModule } from '@angular/router'; 5 | 6 | import { IonicModule } from '@ionic/angular'; 7 | 8 | import { FourPage } from './four.page'; 9 | 10 | const routes: Routes = [ 11 | { 12 | path: '', 13 | component: FourPage 14 | } 15 | ]; 16 | 17 | @NgModule({ 18 | imports: [ 19 | CommonModule, 20 | FormsModule, 21 | IonicModule, 22 | RouterModule.forChild(routes) 23 | ], 24 | declarations: [FourPage] 25 | }) 26 | export class FourPageModule {} 27 | -------------------------------------------------------------------------------- /src/app/pages/app-bar/tabs/four/four.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Tab 4 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | This is Tab 4 12 | 13 |
14 | 15 |
-------------------------------------------------------------------------------- /src/app/pages/app-bar/tabs/four/four.page.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/app/pages/app-bar/tabs/four/four.page.scss -------------------------------------------------------------------------------- /src/app/pages/app-bar/tabs/four/four.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { FourPage } from './four.page'; 5 | 6 | describe('FourPage', () => { 7 | let component: FourPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [FourPage], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(FourPage); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/pages/app-bar/tabs/four/four.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-four', 5 | templateUrl: './four.page.html', 6 | styleUrls: ['./four.page.scss'] 7 | }) 8 | export class FourPage implements OnInit { 9 | constructor() {} 10 | 11 | ngOnInit() {} 12 | } 13 | -------------------------------------------------------------------------------- /src/app/pages/app-bar/tabs/one/one.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FormsModule } from '@angular/forms'; 4 | import { Routes, RouterModule } from '@angular/router'; 5 | 6 | import { IonicModule } from '@ionic/angular'; 7 | 8 | import { OnePage } from './one.page'; 9 | 10 | const routes: Routes = [ 11 | { 12 | path: '', 13 | component: OnePage 14 | } 15 | ]; 16 | 17 | @NgModule({ 18 | imports: [ 19 | CommonModule, 20 | FormsModule, 21 | IonicModule, 22 | RouterModule.forChild(routes) 23 | ], 24 | declarations: [OnePage] 25 | }) 26 | export class OnePageModule {} 27 | -------------------------------------------------------------------------------- /src/app/pages/app-bar/tabs/one/one.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Tab 1 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | This is Tab 1 12 | 13 |
14 | 15 |
-------------------------------------------------------------------------------- /src/app/pages/app-bar/tabs/one/one.page.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/app/pages/app-bar/tabs/one/one.page.scss -------------------------------------------------------------------------------- /src/app/pages/app-bar/tabs/one/one.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { OnePage } from './one.page'; 5 | 6 | describe('OnePage', () => { 7 | let component: OnePage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [OnePage], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(OnePage); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/pages/app-bar/tabs/one/one.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-one', 5 | templateUrl: './one.page.html', 6 | styleUrls: ['./one.page.scss'] 7 | }) 8 | export class OnePage implements OnInit { 9 | constructor() {} 10 | 11 | ngOnInit() {} 12 | } 13 | -------------------------------------------------------------------------------- /src/app/pages/app-bar/tabs/three/three.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FormsModule } from '@angular/forms'; 4 | import { Routes, RouterModule } from '@angular/router'; 5 | 6 | import { IonicModule } from '@ionic/angular'; 7 | 8 | import { ThreePage } from './three.page'; 9 | 10 | const routes: Routes = [ 11 | { 12 | path: '', 13 | component: ThreePage 14 | } 15 | ]; 16 | 17 | @NgModule({ 18 | imports: [ 19 | CommonModule, 20 | FormsModule, 21 | IonicModule, 22 | RouterModule.forChild(routes) 23 | ], 24 | declarations: [ThreePage] 25 | }) 26 | export class ThreePageModule {} 27 | -------------------------------------------------------------------------------- /src/app/pages/app-bar/tabs/three/three.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Tab 3 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | This is Tab 3 12 | 13 |
14 | 15 |
-------------------------------------------------------------------------------- /src/app/pages/app-bar/tabs/three/three.page.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/app/pages/app-bar/tabs/three/three.page.scss -------------------------------------------------------------------------------- /src/app/pages/app-bar/tabs/three/three.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { ThreePage } from './three.page'; 5 | 6 | describe('ThreePage', () => { 7 | let component: ThreePage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [ThreePage], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(ThreePage); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/pages/app-bar/tabs/three/three.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-three', 5 | templateUrl: './three.page.html', 6 | styleUrls: ['./three.page.scss'] 7 | }) 8 | export class ThreePage implements OnInit { 9 | constructor() {} 10 | 11 | ngOnInit() {} 12 | } 13 | -------------------------------------------------------------------------------- /src/app/pages/app-bar/tabs/two/two.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FormsModule } from '@angular/forms'; 4 | import { Routes, RouterModule } from '@angular/router'; 5 | 6 | import { IonicModule } from '@ionic/angular'; 7 | 8 | import { TwoPage } from './two.page'; 9 | 10 | const routes: Routes = [ 11 | { 12 | path: '', 13 | component: TwoPage 14 | } 15 | ]; 16 | 17 | @NgModule({ 18 | imports: [ 19 | CommonModule, 20 | FormsModule, 21 | IonicModule, 22 | RouterModule.forChild(routes) 23 | ], 24 | declarations: [TwoPage] 25 | }) 26 | export class TwoPageModule {} 27 | -------------------------------------------------------------------------------- /src/app/pages/app-bar/tabs/two/two.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Tab 2 4 | 5 | 6 | 7 | 8 |
9 | 10 | This is Tab 2 11 | 12 |
13 | 14 |
-------------------------------------------------------------------------------- /src/app/pages/app-bar/tabs/two/two.page.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/app/pages/app-bar/tabs/two/two.page.scss -------------------------------------------------------------------------------- /src/app/pages/app-bar/tabs/two/two.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { TwoPage } from './two.page'; 5 | 6 | describe('TwoPage', () => { 7 | let component: TwoPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [TwoPage], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(TwoPage); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/pages/app-bar/tabs/two/two.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-two', 5 | templateUrl: './two.page.html', 6 | styleUrls: ['./two.page.scss'] 7 | }) 8 | export class TwoPage implements OnInit { 9 | constructor() {} 10 | 11 | ngOnInit() {} 12 | } 13 | -------------------------------------------------------------------------------- /src/app/pages/bottom-sheet/bottom-sheet.page.scss: -------------------------------------------------------------------------------- 1 | .drawer-content { 2 | border-top: 0.5px solid #e5e5e5; 3 | padding: 10px; 4 | } 5 | 6 | .flex-scroll { 7 | display: flex; 8 | overflow-x: scroll; 9 | width: 100%; 10 | ion-card { 11 | flex: 1 0 auto; 12 | } 13 | } 14 | 15 | fiv-bottom-sheet-content { 16 | --fiv-border-radius: 12px; 17 | --fiv-padding: 20px; 18 | } 19 | 20 | ion-item { 21 | --background: var(--ion-item-background); 22 | } 23 | -------------------------------------------------------------------------------- /src/app/pages/bottom-sheet/bottom-sheet.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { BottomSheetPage } from './bottom-sheet.page'; 5 | 6 | describe('BottomSheetPage', () => { 7 | let component: BottomSheetPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [BottomSheetPage], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(BottomSheetPage); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/pages/components/components.module.ts: -------------------------------------------------------------------------------- 1 | import { ComponentsModule } from 'src/app/components/components.module'; 2 | import { NgModule } from '@angular/core'; 3 | import { CommonModule } from '@angular/common'; 4 | import { FormsModule } from '@angular/forms'; 5 | import { Routes, RouterModule } from '@angular/router'; 6 | 7 | import { IonicModule } from '@ionic/angular'; 8 | 9 | import { ComponentsPage } from './components.page'; 10 | 11 | const routes: Routes = [ 12 | { 13 | path: '', 14 | component: ComponentsPage 15 | } 16 | ]; 17 | 18 | @NgModule({ 19 | imports: [ 20 | CommonModule, 21 | FormsModule, 22 | IonicModule, 23 | RouterModule.forChild(routes), 24 | ComponentsModule 25 | ], 26 | declarations: [ComponentsPage] 27 | }) 28 | export class ComponentsPageModule {} 29 | -------------------------------------------------------------------------------- /src/app/pages/components/components.page.scss: -------------------------------------------------------------------------------- 1 | .docs-cards { 2 | display: grid; 3 | font-size: 12px; 4 | grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 5 | grid-gap: 0.6rem; 6 | } 7 | 8 | .docs-cards > ion-card { 9 | font-size: inherit; 10 | max-width: none; 11 | } 12 | 13 | .docs-cards > ion-card.tall { 14 | grid-row: span 2; 15 | } 16 | 17 | .docs-cards > ion-card.wide { 18 | grid-column: span 2; 19 | } 20 | -------------------------------------------------------------------------------- /src/app/pages/components/components.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { ComponentsPage } from './components.page'; 5 | 6 | describe('ComponentsPage', () => { 7 | let component: ComponentsPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [ComponentsPage], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(ComponentsPage); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/pages/components/components.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-components', 5 | templateUrl: './components.page.html', 6 | styleUrls: ['./components.page.scss'] 7 | }) 8 | export class ComponentsPage implements OnInit { 9 | iconState = true; 10 | 11 | constructor() {} 12 | 13 | ngOnInit() {} 14 | 15 | toggleIcon() { 16 | this.iconState = !this.iconState; 17 | } 18 | 19 | stepperClick(event) {} 20 | } 21 | -------------------------------------------------------------------------------- /src/app/pages/developer-tools/developer-tools.module.ts: -------------------------------------------------------------------------------- 1 | import { ComponentsModule } from 'src/app/components/components.module'; 2 | import { NgModule } from '@angular/core'; 3 | import { CommonModule } from '@angular/common'; 4 | import { FormsModule } from '@angular/forms'; 5 | import { Routes, RouterModule } from '@angular/router'; 6 | 7 | import { IonicModule } from '@ionic/angular'; 8 | 9 | import { DeveloperToolsPage } from './developer-tools.page'; 10 | 11 | const routes: Routes = [ 12 | { 13 | path: '', 14 | component: DeveloperToolsPage 15 | } 16 | ]; 17 | 18 | @NgModule({ 19 | imports: [ 20 | CommonModule, 21 | FormsModule, 22 | IonicModule, 23 | RouterModule.forChild(routes), 24 | ComponentsModule 25 | ], 26 | declarations: [DeveloperToolsPage] 27 | }) 28 | export class DeveloperToolsPageModule {} 29 | -------------------------------------------------------------------------------- /src/app/pages/developer-tools/developer-tools.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 |
-------------------------------------------------------------------------------- /src/app/pages/developer-tools/developer-tools.page.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/app/pages/developer-tools/developer-tools.page.scss -------------------------------------------------------------------------------- /src/app/pages/developer-tools/developer-tools.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { DeveloperToolsPage } from './developer-tools.page'; 5 | 6 | describe('DeveloperToolsPage', () => { 7 | let component: DeveloperToolsPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [DeveloperToolsPage], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(DeveloperToolsPage); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/pages/developer-tools/developer-tools.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-developer-tools', 5 | templateUrl: './developer-tools.page.html', 6 | styleUrls: ['./developer-tools.page.scss'] 7 | }) 8 | export class DeveloperToolsPage implements OnInit { 9 | path = 'assets/docs/developer-tools/developer-tools.md'; 10 | 11 | constructor() {} 12 | 13 | ngOnInit() {} 14 | } 15 | -------------------------------------------------------------------------------- /src/app/pages/dialog/dialog.module.ts: -------------------------------------------------------------------------------- 1 | import { ComponentsModule } from '@components/components.module'; 2 | import { NgModule } from '@angular/core'; 3 | import { CommonModule } from '@angular/common'; 4 | import { FormsModule } from '@angular/forms'; 5 | import { Routes, RouterModule } from '@angular/router'; 6 | 7 | import { IonicModule } from '@ionic/angular'; 8 | 9 | import { DialogPage } from './dialog.page'; 10 | import { FivDialogModule } from '@fivethree/core'; 11 | 12 | const routes: Routes = [ 13 | { 14 | path: '', 15 | component: DialogPage 16 | } 17 | ]; 18 | 19 | @NgModule({ 20 | imports: [ 21 | CommonModule, 22 | FormsModule, 23 | IonicModule, 24 | FivDialogModule, 25 | RouterModule.forChild(routes), 26 | ComponentsModule 27 | ], 28 | declarations: [DialogPage] 29 | }) 30 | export class DialogPageModule {} 31 | -------------------------------------------------------------------------------- /src/app/pages/dialog/dialog.page.scss: -------------------------------------------------------------------------------- 1 | ion-item { 2 | --background: var(--ion-item-background); 3 | } 4 | -------------------------------------------------------------------------------- /src/app/pages/dialog/dialog.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { DialogPage } from './dialog.page'; 5 | 6 | describe('DialogPage', () => { 7 | let component: DialogPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [DialogPage], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(DialogPage); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/pages/dialog/dialog.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit, ViewChild } from '@angular/core'; 2 | import { FivDialog } from '@fivethree/core'; 3 | 4 | @Component({ 5 | selector: 'app-dialog', 6 | templateUrl: './dialog.page.html', 7 | styleUrls: ['./dialog.page.scss'] 8 | }) 9 | export class DialogPage implements OnInit { 10 | @ViewChild('dialog', { static: false }) dialog: FivDialog; 11 | 12 | backdrop = true; 13 | pull = true; 14 | verticalAlign = 'top'; 15 | horizontalAlign = 'left'; 16 | shape = 'card'; 17 | duration = 3600; 18 | inDuration = '220'; 19 | outDuration = '180'; 20 | 21 | constructor() {} 22 | 23 | ngOnInit() {} 24 | 25 | close() {} 26 | 27 | over() {} 28 | } 29 | -------------------------------------------------------------------------------- /src/app/pages/editable-label/editable-label.page.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/app/pages/editable-label/editable-label.page.scss -------------------------------------------------------------------------------- /src/app/pages/editable-label/editable-label.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { EditableLabelPage } from './editable-label.page'; 5 | 6 | describe('EditableLabelPage', () => { 7 | let component: EditableLabelPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [EditableLabelPage], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(EditableLabelPage); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/pages/editable-label/editable-label.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { FormGroup, FormBuilder, Validators } from '@angular/forms'; 3 | 4 | @Component({ 5 | selector: 'app-editable-label', 6 | templateUrl: './editable-label.page.html', 7 | styleUrls: ['./editable-label.page.scss'] 8 | }) 9 | export class EditableLabelPage implements OnInit { 10 | editing: boolean; 11 | model: string; 12 | 13 | form: FormGroup; 14 | 15 | constructor(public formBuilder: FormBuilder) { 16 | this.setupForm(); 17 | } 18 | 19 | ngOnInit() {} 20 | 21 | setupForm() { 22 | this.form = this.formBuilder.group({ 23 | title: ['', [Validators.required]], 24 | name: ['', [Validators.required]], 25 | email: ['', [Validators.email, Validators.required]], 26 | password: ['', [Validators.minLength(6), Validators.required]] 27 | }); 28 | } 29 | 30 | onSubmit() {} 31 | } 32 | -------------------------------------------------------------------------------- /src/app/pages/expandable/expandable.page.scss: -------------------------------------------------------------------------------- 1 | div[content] { 2 | min-height: 200px; 3 | background: var(--ion-color-light); 4 | position: relative; 5 | } 6 | 7 | ion-item { 8 | border: 1px solid var(--ion-color-light); 9 | --inner-border-width: 0px; 10 | } 11 | 12 | fiv-ripple { 13 | margin-top: 16px; 14 | } 15 | 16 | .content { 17 | color: var(--ion-color-primary); 18 | } 19 | -------------------------------------------------------------------------------- /src/app/pages/expandable/expandable.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { ExpandablePage } from './expandable.page'; 5 | 6 | describe('ExpandablePage', () => { 7 | let component: ExpandablePage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [ExpandablePage], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(ExpandablePage); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/pages/expandable/expandable.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-expandable', 5 | templateUrl: './expandable.page.html', 6 | styleUrls: ['./expandable.page.scss'] 7 | }) 8 | export class ExpandablePage implements OnInit { 9 | constructor() {} 10 | 11 | ngOnInit() {} 12 | } 13 | -------------------------------------------------------------------------------- /src/app/pages/fab/fab.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FormsModule } from '@angular/forms'; 4 | import { Routes, RouterModule } from '@angular/router'; 5 | 6 | import { IonicModule } from '@ionic/angular'; 7 | 8 | import { FabPage } from './fab.page'; 9 | import { FivFabModule, FivIconModule } from '@fivethree/core'; 10 | import { ComponentsModule } from '@components/components.module'; 11 | 12 | const routes: Routes = [ 13 | { 14 | path: '', 15 | component: FabPage 16 | } 17 | ]; 18 | 19 | @NgModule({ 20 | imports: [ 21 | CommonModule, 22 | FormsModule, 23 | IonicModule, 24 | RouterModule.forChild(routes), 25 | FivFabModule, 26 | ComponentsModule, 27 | FivIconModule 28 | ], 29 | declarations: [FabPage] 30 | }) 31 | export class FabPageModule {} 32 | -------------------------------------------------------------------------------- /src/app/pages/fab/fab.page.scss: -------------------------------------------------------------------------------- 1 | .scroll { 2 | height: 100vh; 3 | } 4 | ion-item { 5 | --background: var(--ion-item-background); 6 | } 7 | 8 | fiv-fab { 9 | --background-fab-progress-bar: red; 10 | --background-fab-progress: yellow; 11 | } 12 | -------------------------------------------------------------------------------- /src/app/pages/fab/fab.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { FabPage } from './fab.page'; 5 | 6 | describe('FabPage', () => { 7 | let component: FabPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [FabPage], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(FabPage); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/pages/fab/fab.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-fab', 5 | templateUrl: './fab.page.html', 6 | styleUrls: ['./fab.page.scss'] 7 | }) 8 | export class FabPage implements OnInit { 9 | pulse = false; 10 | 11 | icon = 'color-wand'; 12 | 13 | vertical = 'bottom'; 14 | horizontal = 'end'; 15 | extended = true; 16 | visible = true; 17 | scroll = true; 18 | mode = 'normal'; 19 | 20 | constructor() {} 21 | 22 | ngOnInit() {} 23 | } 24 | -------------------------------------------------------------------------------- /src/app/pages/feature-discovery/feature-discovery.page.scss: -------------------------------------------------------------------------------- 1 | ion-item { 2 | --background: var(--ion-item-background); 3 | } 4 | -------------------------------------------------------------------------------- /src/app/pages/feature-discovery/feature-discovery.page.ts: -------------------------------------------------------------------------------- 1 | import { NavController } from '@ionic/angular'; 2 | import { Component, OnInit } from '@angular/core'; 3 | 4 | @Component({ 5 | selector: 'app-feature-discovery', 6 | templateUrl: './feature-discovery.page.html', 7 | styleUrls: ['./feature-discovery.page.scss'] 8 | }) 9 | export class FeatureDiscoveryPage implements OnInit { 10 | fp = 20; 11 | co = 20; 12 | 13 | constructor(private navController: NavController) {} 14 | 15 | ngOnInit() {} 16 | 17 | async log(s: string) {} 18 | 19 | navigateBack() { 20 | this.navController.back(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/app/pages/gallery/gallery.page.scss: -------------------------------------------------------------------------------- 1 | ion-row.big { 2 | fiv-gallery-image { 3 | --max-height: 86px; 4 | } 5 | } 6 | 7 | ion-row.small { 8 | fiv-gallery-image { 9 | --max-height: 60px; 10 | } 11 | } 12 | 13 | ion-row.large { 14 | fiv-gallery-image { 15 | --max-height: 120px; 16 | } 17 | } 18 | 19 | .loop { 20 | fiv-gallery-image { 21 | --max-height: 90px; 22 | --width: auto; 23 | display: inline-block; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/app/pages/gallery/gallery.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { GalleryPage } from './gallery.page'; 5 | 6 | describe('GalleryPage', () => { 7 | let component: GalleryPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [GalleryPage], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(GalleryPage); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/pages/gallery/gallery.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-gallery', 5 | templateUrl: './gallery.page.html', 6 | styleUrls: ['./gallery.page.scss'] 7 | }) 8 | export class GalleryPage implements OnInit { 9 | picsum: string[] = Array.from( 10 | new Array(12), 11 | (x, i) => `https://source.unsplash.com/random/1080x720?${i}` 12 | ); 13 | 14 | constructor() {} 15 | 16 | ngOnInit() {} 17 | } 18 | -------------------------------------------------------------------------------- /src/app/pages/home/home.module.ts: -------------------------------------------------------------------------------- 1 | import { ComponentsModule } from './../../components/components.module'; 2 | import { NgModule } from '@angular/core'; 3 | import { CommonModule } from '@angular/common'; 4 | import { FormsModule } from '@angular/forms'; 5 | import { Routes, RouterModule } from '@angular/router'; 6 | 7 | import { IonicModule } from '@ionic/angular'; 8 | 9 | import { HomePage } from './home.page'; 10 | import { MdoButtonModule } from '@ctrl/ngx-github-buttons'; 11 | 12 | const routes: Routes = [ 13 | { 14 | path: '', 15 | component: HomePage 16 | } 17 | ]; 18 | 19 | @NgModule({ 20 | imports: [ 21 | CommonModule, 22 | FormsModule, 23 | IonicModule, 24 | RouterModule.forChild(routes), 25 | ComponentsModule, 26 | MdoButtonModule 27 | ], 28 | declarations: [HomePage] 29 | }) 30 | export class HomePageModule {} 31 | -------------------------------------------------------------------------------- /src/app/pages/home/home.page.scss: -------------------------------------------------------------------------------- 1 | .docs-cards { 2 | display: grid; 3 | font-size: 12px; 4 | grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 5 | grid-gap: 0.6rem; 6 | } 7 | 8 | .docs-cards > ion-card { 9 | font-size: inherit; 10 | max-width: none; 11 | } 12 | 13 | .docs-cards > ion-card.tall { 14 | grid-row: span 2; 15 | } 16 | 17 | .docs-cards > ion-card.wide { 18 | grid-column: span 2; 19 | } 20 | -------------------------------------------------------------------------------- /src/app/pages/home/home.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { HomePage } from './home.page'; 5 | 6 | describe('HomePage', () => { 7 | let component: HomePage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [HomePage], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(HomePage); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/pages/home/home.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { NavController } from '@ionic/angular'; 3 | import { environment } from '@environments/environment'; 4 | 5 | @Component({ 6 | selector: 'app-home', 7 | templateUrl: './home.page.html', 8 | styleUrls: ['./home.page.scss'] 9 | }) 10 | export class HomePage implements OnInit { 11 | production = environment.production; 12 | constructor(private nav: NavController) {} 13 | 14 | ngOnInit() {} 15 | 16 | navigate(url: string) { 17 | this.nav.navigateForward(url); 18 | } 19 | open(url: string) { 20 | window.open(url, '_blank'); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/app/pages/icon/icon.module.ts: -------------------------------------------------------------------------------- 1 | import { FivIconModule, FivCenterModule } from '@fivethree/core'; 2 | import { NgModule } from '@angular/core'; 3 | import { CommonModule } from '@angular/common'; 4 | import { FormsModule } from '@angular/forms'; 5 | import { Routes, RouterModule } from '@angular/router'; 6 | 7 | import { IonicModule } from '@ionic/angular'; 8 | 9 | import { IconPage } from './icon.page'; 10 | import { ComponentsModule } from '@components/components.module'; 11 | 12 | const routes: Routes = [ 13 | { 14 | path: '', 15 | component: IconPage 16 | } 17 | ]; 18 | 19 | @NgModule({ 20 | imports: [ 21 | CommonModule, 22 | FormsModule, 23 | IonicModule, 24 | RouterModule.forChild(routes), 25 | ComponentsModule, 26 | FivIconModule, 27 | FivCenterModule 28 | ], 29 | declarations: [IconPage] 30 | }) 31 | export class IconPageModule {} 32 | -------------------------------------------------------------------------------- /src/app/pages/icon/icon.page.scss: -------------------------------------------------------------------------------- 1 | :host { 2 | --fiv-dot-background-color: var(--ion-color-danger); 3 | } 4 | 5 | .example { 6 | position: relative; 7 | height: 120px; 8 | } 9 | 10 | ion-item { 11 | --background: var(--ion-item-background); 12 | } 13 | -------------------------------------------------------------------------------- /src/app/pages/icon/icon.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { IconPage } from './icon.page'; 5 | 6 | describe('IconPage', () => { 7 | let component: IconPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [IconPage], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(IconPage); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/pages/icon/icon.page.ts: -------------------------------------------------------------------------------- 1 | import { UtilService } from './../../services/util.service'; 2 | import { Component, OnInit } from '@angular/core'; 3 | 4 | @Component({ 5 | selector: 'app-icon', 6 | templateUrl: './icon.page.html', 7 | styleUrls: ['./icon.page.scss'] 8 | }) 9 | export class IconPage implements OnInit { 10 | icon = 'notifications'; 11 | badge = 0; 12 | off = false; 13 | dot = false; 14 | 15 | constructor(private util: UtilService) {} 16 | 17 | ngOnInit() {} 18 | 19 | decrement() { 20 | if (this.badge > 0) { 21 | this.badge--; 22 | } 23 | } 24 | increment() { 25 | this.badge++; 26 | } 27 | 28 | getNewIcon() { 29 | const icon = this.util.getRandomIcon(); 30 | this.icon = icon.icons[1] || icon.icons[0]; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/app/pages/installation/installation.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FormsModule } from '@angular/forms'; 4 | import { Routes, RouterModule } from '@angular/router'; 5 | 6 | import { IonicModule } from '@ionic/angular'; 7 | 8 | import { InstallationPage } from './installation.page'; 9 | import { ComponentsModule } from '@components/components.module'; 10 | 11 | const routes: Routes = [ 12 | { 13 | path: '', 14 | component: InstallationPage 15 | } 16 | ]; 17 | 18 | @NgModule({ 19 | imports: [ 20 | CommonModule, 21 | FormsModule, 22 | IonicModule, 23 | RouterModule.forChild(routes), 24 | ComponentsModule 25 | ], 26 | declarations: [InstallationPage] 27 | }) 28 | export class InstallationPageModule {} 29 | -------------------------------------------------------------------------------- /src/app/pages/installation/installation.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 | 7 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 |
-------------------------------------------------------------------------------- /src/app/pages/installation/installation.page.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/app/pages/installation/installation.page.scss -------------------------------------------------------------------------------- /src/app/pages/installation/installation.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { InstallationPage } from './installation.page'; 5 | 6 | describe('InstallationPage', () => { 7 | let component: InstallationPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [InstallationPage], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(InstallationPage); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/pages/installation/installation.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-installation', 5 | templateUrl: './installation.page.html', 6 | styleUrls: ['./installation.page.scss'] 7 | }) 8 | export class InstallationPage implements OnInit { 9 | path = 'assets/docs/installation/installation.md'; 10 | 11 | constructor() {} 12 | 13 | ngOnInit() {} 14 | } 15 | -------------------------------------------------------------------------------- /src/app/pages/loading/loading.page.scss: -------------------------------------------------------------------------------- 1 | ion-card { 2 | top: 16px; 3 | } 4 | 5 | ion-list { 6 | padding-bottom: 8px; 7 | } 8 | 9 | .progress-bar { 10 | width: 80%; 11 | height: 5px; 12 | background: var(--ion-color-light); 13 | } 14 | 15 | :host { 16 | --fiv-color-fab: var(--ion-color-light); 17 | } 18 | 19 | fiv-loading-progress-bar { 20 | --background-progress-bar: purple; 21 | --color-spin-0: red; 22 | --color-spin-50: green; 23 | --color-spin-100: yellow; 24 | } 25 | 26 | ion-item-divider { 27 | border-bottom: 0; 28 | } 29 | ion-item { 30 | --border-style: none; 31 | } 32 | -------------------------------------------------------------------------------- /src/app/pages/loading/loading.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { LoadingPage } from './loading.page'; 5 | 6 | describe('LoadingPage', () => { 7 | let component: LoadingPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [LoadingPage], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(LoadingPage); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/pages/loading/loading.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-loading', 5 | templateUrl: './loading.page.html', 6 | styleUrls: ['./loading.page.scss'] 7 | }) 8 | export class LoadingPage implements OnInit { 9 | mode = 'determinate'; 10 | value = 0; 11 | 12 | constructor() {} 13 | 14 | ngOnInit() {} 15 | 16 | fabComplete() {} 17 | 18 | buttonComplete() {} 19 | 20 | showHint(refresher) { 21 | refresher.showHint(); 22 | } 23 | 24 | onRefresh(refresher) { 25 | setTimeout(() => { 26 | refresher.completeRefresh(); 27 | }, 2000); 28 | } 29 | 30 | complete() {} 31 | } 32 | -------------------------------------------------------------------------------- /src/app/pages/page-not-found/page-not-found.module.ts: -------------------------------------------------------------------------------- 1 | import { FivCenterModule } from '@fivethree/core'; 2 | import { NgModule } from '@angular/core'; 3 | import { CommonModule } from '@angular/common'; 4 | import { FormsModule } from '@angular/forms'; 5 | import { Routes, RouterModule } from '@angular/router'; 6 | 7 | import { IonicModule } from '@ionic/angular'; 8 | 9 | import { PageNotFoundPage } from './page-not-found.page'; 10 | import { ComponentsModule } from 'src/app/components/components.module'; 11 | 12 | const routes: Routes = [ 13 | { 14 | path: '', 15 | component: PageNotFoundPage 16 | } 17 | ]; 18 | 19 | @NgModule({ 20 | imports: [ 21 | CommonModule, 22 | FormsModule, 23 | IonicModule, 24 | RouterModule.forChild(routes), 25 | ComponentsModule, 26 | FivCenterModule 27 | ], 28 | declarations: [PageNotFoundPage] 29 | }) 30 | export class PageNotFoundPageModule {} 31 | -------------------------------------------------------------------------------- /src/app/pages/page-not-found/page-not-found.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | 9 | 10 |

Oops, we couldn't find the page you are looking for.

11 | 12 | Go to homepage 13 | 14 |
15 |
16 |
-------------------------------------------------------------------------------- /src/app/pages/page-not-found/page-not-found.page.scss: -------------------------------------------------------------------------------- 1 | #page-not-found-container { 2 | height: 100vh; 3 | } 4 | -------------------------------------------------------------------------------- /src/app/pages/page-not-found/page-not-found.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { PageNotFoundPage } from './page-not-found.page'; 5 | 6 | describe('PageNotFoundPage', () => { 7 | let component: PageNotFoundPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [PageNotFoundPage], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(PageNotFoundPage); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/pages/page-not-found/page-not-found.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-page-not-found', 5 | templateUrl: './page-not-found.page.html', 6 | styleUrls: ['./page-not-found.page.scss'] 7 | }) 8 | export class PageNotFoundPage implements OnInit { 9 | lottieConfig: Object; 10 | animation: any; 11 | 12 | constructor() { 13 | this.lottieConfig = { 14 | path: 'assets/lottie/empty_box.json', 15 | renderer: 'canvas', 16 | autoplay: false, 17 | loop: false 18 | }; 19 | } 20 | 21 | ngOnInit() {} 22 | 23 | handleAnimation(animation) { 24 | this.animation = animation; 25 | this.animation.setSpeed(0.8); 26 | this.animation.play(); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/app/pages/password/password.module.ts: -------------------------------------------------------------------------------- 1 | import { FivPasswordInputModule } from '@fivethree/core'; 2 | import { ComponentsModule } from './../../components/components.module'; 3 | import { NgModule } from '@angular/core'; 4 | import { CommonModule } from '@angular/common'; 5 | import { FormsModule, ReactiveFormsModule } from '@angular/forms'; 6 | import { Routes, RouterModule } from '@angular/router'; 7 | 8 | import { IonicModule } from '@ionic/angular'; 9 | 10 | import { PasswordPage } from './password.page'; 11 | 12 | const routes: Routes = [ 13 | { 14 | path: '', 15 | component: PasswordPage 16 | } 17 | ]; 18 | 19 | @NgModule({ 20 | imports: [ 21 | CommonModule, 22 | FormsModule, 23 | IonicModule, 24 | FivPasswordInputModule, 25 | ReactiveFormsModule, 26 | RouterModule.forChild(routes), 27 | ComponentsModule 28 | ], 29 | declarations: [PasswordPage] 30 | }) 31 | export class PasswordPageModule {} 32 | -------------------------------------------------------------------------------- /src/app/pages/password/password.page.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/app/pages/password/password.page.scss -------------------------------------------------------------------------------- /src/app/pages/password/password.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { PasswordPage } from './password.page'; 5 | 6 | describe('PasswordPage', () => { 7 | let component: PasswordPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [PasswordPage], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(PasswordPage); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/pages/popover/popover-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { Routes, RouterModule } from '@angular/router'; 3 | 4 | import { PopoverPage } from './popover.page'; 5 | 6 | const routes: Routes = [ 7 | { 8 | path: '', 9 | component: PopoverPage 10 | } 11 | ]; 12 | 13 | @NgModule({ 14 | imports: [RouterModule.forChild(routes)], 15 | exports: [RouterModule], 16 | }) 17 | export class PopoverPageRoutingModule {} 18 | -------------------------------------------------------------------------------- /src/app/pages/popover/popover.module.ts: -------------------------------------------------------------------------------- 1 | import { ComponentsModule } from './../../components/components.module'; 2 | import { NgModule } from '@angular/core'; 3 | import { CommonModule } from '@angular/common'; 4 | import { FormsModule } from '@angular/forms'; 5 | 6 | import { IonicModule } from '@ionic/angular'; 7 | 8 | import { PopoverPageRoutingModule } from './popover-routing.module'; 9 | 10 | import { PopoverPage } from './popover.page'; 11 | import { FivPopoverModule } from '@fivethree/core'; 12 | 13 | @NgModule({ 14 | imports: [ 15 | CommonModule, 16 | FormsModule, 17 | IonicModule, 18 | PopoverPageRoutingModule, 19 | FivPopoverModule, 20 | ComponentsModule 21 | ], 22 | declarations: [PopoverPage] 23 | }) 24 | export class PopoverPageModule {} 25 | -------------------------------------------------------------------------------- /src/app/pages/popover/popover.page.scss: -------------------------------------------------------------------------------- 1 | .spacer { 2 | min-height: 200vh; 3 | } 4 | ion-card { 5 | height: 100%; 6 | } 7 | .overflow { 8 | ion-item, 9 | ion-item-divider { 10 | --background: transparent; 11 | } 12 | ion-item:hover { 13 | --background: var(--ion-color-light-shade); 14 | ion-label { 15 | --color: var(--ion-color-primary); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/app/pages/popover/popover.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | import { IonicModule } from '@ionic/angular'; 3 | 4 | import { PopoverPage } from './popover.page'; 5 | 6 | describe('PopoverPage', () => { 7 | let component: PopoverPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [ PopoverPage ], 13 | imports: [IonicModule.forRoot()] 14 | }).compileComponents(); 15 | 16 | fixture = TestBed.createComponent(PopoverPage); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | })); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /src/app/pages/popover/popover.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-popover', 5 | templateUrl: './popover.page.html', 6 | styleUrls: ['./popover.page.scss'] 7 | }) 8 | export class PopoverPage implements OnInit { 9 | constructor() {} 10 | 11 | ngOnInit() {} 12 | 13 | actionClicked(n: number) {} 14 | 15 | open(url) { 16 | window.open( 17 | 'https://www.npmjs.com/package/@fivethree/core/v/1.0.0-alpha.0' 18 | ); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/app/pages/refresh/refresh.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FormsModule } from '@angular/forms'; 4 | import { Routes, RouterModule } from '@angular/router'; 5 | 6 | import { IonicModule } from '@ionic/angular'; 7 | 8 | import { RefreshPage } from './refresh.page'; 9 | import { FivRefresherModule } from '@fivethree/core'; 10 | import { ComponentsModule } from '@components/components.module'; 11 | 12 | const routes: Routes = [ 13 | { 14 | path: '', 15 | component: RefreshPage 16 | } 17 | ]; 18 | 19 | @NgModule({ 20 | imports: [ 21 | CommonModule, 22 | FormsModule, 23 | IonicModule, 24 | RouterModule.forChild(routes), 25 | ComponentsModule, 26 | FivRefresherModule 27 | ], 28 | declarations: [RefreshPage] 29 | }) 30 | export class RefreshPageModule {} 31 | -------------------------------------------------------------------------------- /src/app/pages/refresh/refresh.page.scss: -------------------------------------------------------------------------------- 1 | ion-grid { 2 | margin-top: 56px; 3 | } 4 | 5 | .flex-scroll { 6 | display: flex; 7 | overflow-x: scroll; 8 | width: 100%; 9 | ion-card { 10 | flex: 1 0 auto; 11 | } 12 | } 13 | 14 | .scroll { 15 | height: 100vh; 16 | } 17 | 18 | fiv-refresher { 19 | --fiv-spin-color: var(--ion-color-secondary); 20 | --fiv-hint-color: var(--ion-color-secondary); 21 | --fiv-spin-background: var(--ion-item-background); 22 | } 23 | ion-item, 24 | ion-list { 25 | --background: var(--ion-item-background); 26 | } 27 | -------------------------------------------------------------------------------- /src/app/pages/refresh/refresh.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { RefreshPage } from './refresh.page'; 5 | 6 | describe('RefreshPage', () => { 7 | let component: RefreshPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [RefreshPage], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(RefreshPage); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/pages/refresh/refresh.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-refresh', 5 | templateUrl: './refresh.page.html', 6 | styleUrls: ['./refresh.page.scss'] 7 | }) 8 | export class RefreshPage implements OnInit { 9 | header = true; 10 | constructor() {} 11 | 12 | ngOnInit() {} 13 | } 14 | -------------------------------------------------------------------------------- /src/app/pages/searchbar/searchbar.module.ts: -------------------------------------------------------------------------------- 1 | import { ComponentsModule } from './../../components/components.module'; 2 | import { FivSearchbarModule } from '@fivethree/core'; 3 | import { NgModule } from '@angular/core'; 4 | import { CommonModule } from '@angular/common'; 5 | import { FormsModule } from '@angular/forms'; 6 | import { Routes, RouterModule } from '@angular/router'; 7 | 8 | import { IonicModule } from '@ionic/angular'; 9 | 10 | import { SearchbarPage } from './searchbar.page'; 11 | 12 | const routes: Routes = [ 13 | { 14 | path: '', 15 | component: SearchbarPage 16 | } 17 | ]; 18 | 19 | @NgModule({ 20 | imports: [ 21 | CommonModule, 22 | FormsModule, 23 | IonicModule, 24 | RouterModule.forChild(routes), 25 | FivSearchbarModule, 26 | ComponentsModule 27 | ], 28 | declarations: [SearchbarPage] 29 | }) 30 | export class SearchbarPageModule {} 31 | -------------------------------------------------------------------------------- /src/app/pages/searchbar/searchbar.page.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/app/pages/searchbar/searchbar.page.scss -------------------------------------------------------------------------------- /src/app/pages/searchbar/searchbar.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { SearchbarPage } from './searchbar.page'; 5 | 6 | describe('SearchbarPage', () => { 7 | let component: SearchbarPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [SearchbarPage], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(SearchbarPage); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/pages/stepper/stepper.module.ts: -------------------------------------------------------------------------------- 1 | import { ComponentsModule } from './../../components/components.module'; 2 | import { NgModule } from '@angular/core'; 3 | import { CommonModule } from '@angular/common'; 4 | import { FormsModule } from '@angular/forms'; 5 | import { Routes, RouterModule } from '@angular/router'; 6 | 7 | import { IonicModule } from '@ionic/angular'; 8 | 9 | import { StepperPage } from './stepper.page'; 10 | import { FivStepperModule } from '@fivethree/core'; 11 | 12 | const routes: Routes = [ 13 | { 14 | path: '', 15 | component: StepperPage 16 | } 17 | ]; 18 | 19 | @NgModule({ 20 | imports: [ 21 | CommonModule, 22 | FormsModule, 23 | IonicModule, 24 | RouterModule.forChild(routes), 25 | ComponentsModule, 26 | FivStepperModule 27 | ], 28 | declarations: [StepperPage] 29 | }) 30 | export class StepperPageModule {} 31 | -------------------------------------------------------------------------------- /src/app/pages/stepper/stepper.page.scss: -------------------------------------------------------------------------------- 1 | ion-item-divider { 2 | border-bottom: 0; 3 | } 4 | 5 | ion-item { 6 | --border-style: none; 7 | } 8 | 9 | .card-horizontal { 10 | min-width: 80%; 11 | text-align: left; 12 | } 13 | -------------------------------------------------------------------------------- /src/app/pages/stepper/stepper.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { StepperPage } from './stepper.page'; 5 | 6 | describe('StepperPage', () => { 7 | let component: StepperPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [StepperPage], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(StepperPage); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/pages/stepper/stepper.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit, ViewChild } from '@angular/core'; 2 | import { FivStepper } from '@fivethree/core'; 3 | 4 | @Component({ 5 | selector: 'app-stepper', 6 | templateUrl: './stepper.page.html', 7 | styleUrls: ['./stepper.page.scss'] 8 | }) 9 | export class StepperPage implements OnInit { 10 | @ViewChild('stepperV', { static: false }) stepperV: FivStepper; 11 | 12 | constructor() {} 13 | 14 | ngOnInit() {} 15 | 16 | ionViewDidEnter() { 17 | // this.stepperV.openLast(); 18 | // timer(1000).subscribe(() => this.stepperV.closeLast()); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/app/pages/viewport/viewport.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FormsModule } from '@angular/forms'; 4 | import { Routes, RouterModule } from '@angular/router'; 5 | 6 | import { IonicModule } from '@ionic/angular'; 7 | 8 | import { ViewportPage } from './viewport.page'; 9 | import { FivViewportModule, FivCenterModule } from '@fivethree/core'; 10 | 11 | const routes: Routes = [ 12 | { 13 | path: '', 14 | component: ViewportPage 15 | } 16 | ]; 17 | 18 | @NgModule({ 19 | imports: [ 20 | CommonModule, 21 | FormsModule, 22 | IonicModule, 23 | RouterModule.forChild(routes), 24 | FivViewportModule, 25 | FivCenterModule 26 | ], 27 | declarations: [ViewportPage] 28 | }) 29 | export class ViewportPageModule {} 30 | -------------------------------------------------------------------------------- /src/app/pages/viewport/viewport.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | In Viewport: {{visible}} 4 | 5 | 6 | 7 | 8 |

9 | scroll to reveal the button 10 |

11 |
12 | 13 | 14 | Click me 15 | 16 | 17 |
18 | 19 | 20 | 21 |
-------------------------------------------------------------------------------- /src/app/pages/viewport/viewport.page.scss: -------------------------------------------------------------------------------- 1 | .container { 2 | min-height: 300vh; 3 | position: relative; 4 | 5 | ion-button { 6 | bottom: 50px; 7 | position: absolute; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/app/pages/viewport/viewport.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; 2 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 3 | 4 | import { ViewportPage } from './viewport.page'; 5 | 6 | describe('ViewportPage', () => { 7 | let component: ViewportPage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [ViewportPage], 13 | schemas: [CUSTOM_ELEMENTS_SCHEMA] 14 | }).compileComponents(); 15 | })); 16 | 17 | beforeEach(() => { 18 | fixture = TestBed.createComponent(ViewportPage); 19 | component = fixture.componentInstance; 20 | fixture.detectChanges(); 21 | }); 22 | 23 | it('should create', () => { 24 | expect(component).toBeTruthy(); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /src/app/pages/viewport/viewport.page.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-viewport', 5 | templateUrl: './viewport.page.html', 6 | styleUrls: ['./viewport.page.scss'] 7 | }) 8 | export class ViewportPage implements OnInit { 9 | visible = false; 10 | 11 | constructor() {} 12 | 13 | ngOnInit() {} 14 | 15 | appear(event) { 16 | this.visible = true; 17 | } 18 | disappear(event) { 19 | this.visible = false; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/app/services/seo.service.ts: -------------------------------------------------------------------------------- 1 | import { Injectable } from '@angular/core'; 2 | import { Title, Meta } from '@angular/platform-browser'; 3 | 4 | @Injectable({ 5 | providedIn: 'root' 6 | }) 7 | export class SeoService { 8 | constructor(private title: Title, private meta: Meta) {} 9 | 10 | addTwitterCard(title, description, img) { 11 | // Set HTML Document Title 12 | this.title.setTitle(title); 13 | 14 | // Add Twitter Card Metatags 15 | this.meta.updateTag({ name: 'twitter:card', content: 'summary' }); 16 | this.meta.updateTag({ name: 'twitter:site', content: '@fivethreeteam' }); 17 | this.meta.updateTag({ name: 'twitter:title', content: title }); 18 | this.meta.updateTag({ name: 'twitter:description', content: description }); 19 | this.meta.updateTag({ name: 'twitter:image', content: img }); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/app/services/util.service.ts: -------------------------------------------------------------------------------- 1 | import { Injectable } from '@angular/core'; 2 | import { icons, Icon } from './icons'; 3 | 4 | @Injectable({ 5 | providedIn: 'root' 6 | }) 7 | export class UtilService { 8 | constructor() {} 9 | 10 | getRandomIcon(): Icon { 11 | return icons.icons[Math.floor(Math.random() * icons.icons.length)]; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/assets/banners/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/banners/banner.png -------------------------------------------------------------------------------- /src/assets/banners/gallery.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | gallery 5 | Created with Sketch. 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/assets/components.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/components.png -------------------------------------------------------------------------------- /src/assets/docs/components/dialog.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/docs/components/dialog.md -------------------------------------------------------------------------------- /src/assets/docs/components/expandable.md: -------------------------------------------------------------------------------- 1 | ```html 2 | 3 | 4 | Expandable Header 5 | 6 | 7 |
8 | put content here... 9 |
10 |
11 | ``` 12 | -------------------------------------------------------------------------------- /src/assets/docs/components/fab.md: -------------------------------------------------------------------------------- 1 | documentation coming soon 2 | -------------------------------------------------------------------------------- /src/assets/docs/components/icon.md: -------------------------------------------------------------------------------- 1 | ```css 2 | fiv-icon { 3 | --fiv-padding-end: 0; 4 | --fiv-padding-start: 0; 5 | --fiv-icon-color: var(--ion-color-dark); 6 | } 7 | ``` 8 | 9 | ```html 10 | 11 | ``` 12 | -------------------------------------------------------------------------------- /src/assets/docs/components/progress-bar: -------------------------------------------------------------------------------- 1 | documentation coming soon 2 | -------------------------------------------------------------------------------- /src/assets/docs/components/refresher.md: -------------------------------------------------------------------------------- 1 | ```typescript 2 | ... 3 | import { FivLoadingContentModule } from '@fivethree/core'; 4 | 5 | @NgModule({ 6 | imports: [ 7 | ... 8 | FivLoadingContentModule 9 | ], 10 | declarations: [HomePage] 11 | }) 12 | export class HomePageModule {} 13 | ``` 14 | 15 | ```html 16 | 17 | ... 18 | 19 | 20 | Show hint 21 | 22 | 23 | Refresh 24 | 25 | 26 | complete 27 | 28 | 29 | ... 30 | 31 | ``` 32 | -------------------------------------------------------------------------------- /src/assets/docs/components/searchbar.md: -------------------------------------------------------------------------------- 1 | documentation coming soon 2 | -------------------------------------------------------------------------------- /src/assets/docs/snippets/dialog/api.md: -------------------------------------------------------------------------------- 1 | ```typescript 2 | ... 3 | import { FivDialogModule } from '@fivethree/core'; 4 | 5 | @NgModule({ 6 | imports: [ 7 | ... 8 | FivDialogModule 9 | ], 10 | ... 11 | }) 12 | export class DialogPageModule {} 13 | ``` -------------------------------------------------------------------------------- /src/assets/docs/snippets/dialog/css.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/docs/snippets/dialog/css.md -------------------------------------------------------------------------------- /src/assets/docs/snippets/dialog/ts.md: -------------------------------------------------------------------------------- 1 | ```typescript 2 | import { Component, OnInit, ViewChild } from '@angular/core'; 3 | import { FivDialog } from '@fivethree/core'; 4 | 5 | @Component({ 6 | selector: 'app-dialog', 7 | templateUrl: './dialog.page.html', 8 | styleUrls: ['./dialog.page.scss'] 9 | }) 10 | export class DialogPage implements OnInit { 11 | @ViewChild('dialog') dialog: FivDialog; 12 | 13 | backdrop = true; 14 | pull = true; 15 | verticalAlign = 'top'; 16 | horizontalAlign = 'left'; 17 | shape = 'card'; 18 | duration = 3600; 19 | inDuration = '220'; 20 | outDuration = '180'; 21 | 22 | constructor() {} 23 | 24 | ngOnInit() {} 25 | 26 | close() {} 27 | 28 | over() {} 29 | } 30 | 31 | ``` 32 | -------------------------------------------------------------------------------- /src/assets/docs/snippets/editable-label/api.md: -------------------------------------------------------------------------------- 1 | ```typescript 2 | ... 3 | import { FivEditableLabelModule } from '@fivethree/core'; 4 | 5 | @NgModule({ 6 | imports: [ 7 | ... 8 | FivEditableLabelModule 9 | ], 10 | ... 11 | }) 12 | export class DialogPageModule {} 13 | ``` -------------------------------------------------------------------------------- /src/assets/docs/snippets/editable-label/css.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/docs/snippets/editable-label/css.md -------------------------------------------------------------------------------- /src/assets/docs/snippets/editable-label/html.md: -------------------------------------------------------------------------------- 1 | ```html 2 | ... 3 |
4 | 5 | 6 | 12 | 13 | 14 | 15 | 16 | 21 | 22 | 23 | 24 | 25 | Login 26 | 27 |
28 | ... 29 | ``` 30 | -------------------------------------------------------------------------------- /src/assets/docs/snippets/editable-label/ts.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/docs/snippets/editable-label/ts.md -------------------------------------------------------------------------------- /src/assets/docs/snippets/image-gallery/api.md: -------------------------------------------------------------------------------- 1 | ```typescript 2 | ... 3 | import { FivGalleryModule } from '@fivethree/core'; 4 | 5 | @NgModule({ 6 | imports: [ 7 | ... 8 | FivGalleryModule 9 | ], 10 | ... 11 | }) 12 | export class DialogPageModule {} 13 | ``` -------------------------------------------------------------------------------- /src/assets/docs/snippets/image-gallery/css.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/docs/snippets/image-gallery/css.md -------------------------------------------------------------------------------- /src/assets/docs/snippets/image-gallery/ts.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/docs/snippets/image-gallery/ts.md -------------------------------------------------------------------------------- /src/assets/favicon/android-icon-144x144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/favicon/android-icon-144x144.png -------------------------------------------------------------------------------- /src/assets/favicon/android-icon-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/favicon/android-icon-192x192.png -------------------------------------------------------------------------------- /src/assets/favicon/android-icon-36x36.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/favicon/android-icon-36x36.png -------------------------------------------------------------------------------- /src/assets/favicon/android-icon-48x48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/favicon/android-icon-48x48.png -------------------------------------------------------------------------------- /src/assets/favicon/android-icon-72x72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/favicon/android-icon-72x72.png -------------------------------------------------------------------------------- /src/assets/favicon/android-icon-96x96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/favicon/android-icon-96x96.png -------------------------------------------------------------------------------- /src/assets/favicon/apple-icon-114x114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/favicon/apple-icon-114x114.png -------------------------------------------------------------------------------- /src/assets/favicon/apple-icon-120x120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/favicon/apple-icon-120x120.png -------------------------------------------------------------------------------- /src/assets/favicon/apple-icon-144x144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/favicon/apple-icon-144x144.png -------------------------------------------------------------------------------- /src/assets/favicon/apple-icon-152x152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/favicon/apple-icon-152x152.png -------------------------------------------------------------------------------- /src/assets/favicon/apple-icon-180x180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/favicon/apple-icon-180x180.png -------------------------------------------------------------------------------- /src/assets/favicon/apple-icon-57x57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/favicon/apple-icon-57x57.png -------------------------------------------------------------------------------- /src/assets/favicon/apple-icon-60x60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/favicon/apple-icon-60x60.png -------------------------------------------------------------------------------- /src/assets/favicon/apple-icon-72x72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/favicon/apple-icon-72x72.png -------------------------------------------------------------------------------- /src/assets/favicon/apple-icon-76x76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/favicon/apple-icon-76x76.png -------------------------------------------------------------------------------- /src/assets/favicon/apple-icon-precomposed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/favicon/apple-icon-precomposed.png -------------------------------------------------------------------------------- /src/assets/favicon/apple-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/favicon/apple-icon.png -------------------------------------------------------------------------------- /src/assets/favicon/browserconfig.xml: -------------------------------------------------------------------------------- 1 | 2 | #ffffff -------------------------------------------------------------------------------- /src/assets/favicon/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/favicon/favicon-16x16.png -------------------------------------------------------------------------------- /src/assets/favicon/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/favicon/favicon-32x32.png -------------------------------------------------------------------------------- /src/assets/favicon/favicon-96x96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/favicon/favicon-96x96.png -------------------------------------------------------------------------------- /src/assets/favicon/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/favicon/favicon.ico -------------------------------------------------------------------------------- /src/assets/favicon/ms-icon-144x144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/favicon/ms-icon-144x144.png -------------------------------------------------------------------------------- /src/assets/favicon/ms-icon-150x150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/favicon/ms-icon-150x150.png -------------------------------------------------------------------------------- /src/assets/favicon/ms-icon-310x310.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/favicon/ms-icon-310x310.png -------------------------------------------------------------------------------- /src/assets/favicon/ms-icon-70x70.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/favicon/ms-icon-70x70.png -------------------------------------------------------------------------------- /src/assets/gif/bottomsheet.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/gif/bottomsheet.gif -------------------------------------------------------------------------------- /src/assets/gif/dialog.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/gif/dialog.gif -------------------------------------------------------------------------------- /src/assets/gif/feature.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/gif/feature.gif -------------------------------------------------------------------------------- /src/assets/gif/gallery.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/gif/gallery.gif -------------------------------------------------------------------------------- /src/assets/gif/pulltorefresh.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/gif/pulltorefresh.gif -------------------------------------------------------------------------------- /src/assets/icon/cursor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/icon/cursor.png -------------------------------------------------------------------------------- /src/assets/icon/cursor.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Oval 5 | Created with Sketch. 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/assets/icon/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/icon/favicon.png -------------------------------------------------------------------------------- /src/assets/icons/icon-128x128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/icons/icon-128x128.png -------------------------------------------------------------------------------- /src/assets/icons/icon-144x144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/icons/icon-144x144.png -------------------------------------------------------------------------------- /src/assets/icons/icon-152x152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/icons/icon-152x152.png -------------------------------------------------------------------------------- /src/assets/icons/icon-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/icons/icon-192x192.png -------------------------------------------------------------------------------- /src/assets/icons/icon-384x384.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/icons/icon-384x384.png -------------------------------------------------------------------------------- /src/assets/icons/icon-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/icons/icon-512x512.png -------------------------------------------------------------------------------- /src/assets/icons/icon-72x72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/icons/icon-72x72.png -------------------------------------------------------------------------------- /src/assets/icons/icon-96x96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/icons/icon-96x96.png -------------------------------------------------------------------------------- /src/assets/images/photo_1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/images/photo_1.jpeg -------------------------------------------------------------------------------- /src/assets/images/photo_2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/images/photo_2.jpeg -------------------------------------------------------------------------------- /src/assets/images/photo_3.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/images/photo_3.jpeg -------------------------------------------------------------------------------- /src/assets/images/photo_4.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/images/photo_4.jpeg -------------------------------------------------------------------------------- /src/assets/images/photo_5.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/images/photo_5.jpeg -------------------------------------------------------------------------------- /src/assets/images/photo_6.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/images/photo_6.jpeg -------------------------------------------------------------------------------- /src/assets/images/photo_7.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/images/photo_7.jpeg -------------------------------------------------------------------------------- /src/assets/images/photo_8.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/images/photo_8.jpeg -------------------------------------------------------------------------------- /src/assets/images/photo_9.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/images/photo_9.jpeg -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivethree-team/ionic-4-components/1734af1089b4b20bd49f80a3bda5e00d30451c1b/src/assets/logo.png -------------------------------------------------------------------------------- /src/configs/config.ts: -------------------------------------------------------------------------------- 1 | export const config = { 2 | language: { 3 | default: 'en', 4 | support: ['en', 'de'] 5 | } 6 | }; 7 | -------------------------------------------------------------------------------- /src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /src/environments/environment.ts: -------------------------------------------------------------------------------- 1 | // The file contents for the current environment will overwrite these during build. 2 | // The build system defaults to the dev environment which uses `environment.ts`, but if you do 3 | // `ng build --env=prod` then `environment.prod.ts` will be used instead. 4 | // The list of which env maps to which file can be found in `.angular-cli.json`. 5 | export const environment = { 6 | production: false 7 | }; 8 | 9 | /* 10 | * In development mode, to ignore zone related error stack frames such as 11 | * `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can 12 | * import the following file, but please comment it out in production mode 13 | * because it will have performance impact when throw error 14 | */ 15 | // import 'zone.js/dist/zone-error'; // Included with Angular CLI. 16 | -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | import { environment } from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic() 12 | .bootstrapModule(AppModule) 13 | .catch(err => console.log(err)); 14 | -------------------------------------------------------------------------------- /src/ngsw-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "index": "/index.html", 3 | "assetGroups": [ 4 | { 5 | "name": "app", 6 | "installMode": "prefetch", 7 | "resources": { 8 | "files": [ 9 | "/favicon.ico", 10 | "/index.html", 11 | "/*.css", 12 | "/*.js" 13 | ] 14 | } 15 | }, { 16 | "name": "assets", 17 | "installMode": "lazy", 18 | "updateMode": "prefetch", 19 | "resources": { 20 | "files": [ 21 | "/assets/**", 22 | "/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)" 23 | ] 24 | } 25 | } 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /src/test.ts: -------------------------------------------------------------------------------- 1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files 2 | 3 | import 'zone.js/dist/zone-testing'; 4 | import { getTestBed } from '@angular/core/testing'; 5 | import { 6 | BrowserDynamicTestingModule, 7 | platformBrowserDynamicTesting 8 | } from '@angular/platform-browser-dynamic/testing'; 9 | 10 | declare const require: any; 11 | 12 | // First, initialize the Angular testing environment. 13 | getTestBed().initTestEnvironment( 14 | BrowserDynamicTestingModule, 15 | platformBrowserDynamicTesting() 16 | ); 17 | // Then we find all the tests. 18 | const context = require.context('./', true, /\.spec\.ts$/); 19 | // And load the modules. 20 | context.keys().map(context); 21 | -------------------------------------------------------------------------------- /src/theme/markdown.scss: -------------------------------------------------------------------------------- 1 | markdown { 2 | :not(pre) > code[class*='language-'], 3 | pre[class*='language-'] { 4 | background: var(--ion-item-background); 5 | } 6 | 7 | .token.function, 8 | .token.class-name { 9 | color: var(--ion-color-secondary); 10 | } 11 | 12 | .token.string { 13 | color: var(--ion-color-tertiary); 14 | } 15 | 16 | .token.attr-name { 17 | color: var(--ion-color-tertiary); 18 | } 19 | .token.attr-value { 20 | color: var(--ion-color-tertiary); 21 | } 22 | .token.tag { 23 | color: var(--ion-color-secondary); 24 | } 25 | 26 | h1 { 27 | color: var(--ion-color-primary); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/zone-flags.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Prevents Angular change detection from 3 | * running with certain Web Component callbacks 4 | */ 5 | (window as any).__Zone_disable_customElements = true; 6 | -------------------------------------------------------------------------------- /tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./out-tsc/app", 5 | "types": [] 6 | }, 7 | "include": ["src/**/*.ts"], 8 | "exclude": ["src/test.ts", "src/**/*.spec.ts"] 9 | } 10 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compileOnSave": false, 3 | "compilerOptions": { 4 | "baseUrl": "./", 5 | "outDir": "./dist/out-tsc", 6 | "sourceMap": true, 7 | "declaration": false, 8 | "module": "esnext", 9 | "moduleResolution": "node", 10 | "emitDecoratorMetadata": true, 11 | "experimentalDecorators": true, 12 | "importHelpers": true, 13 | "target": "es2015", 14 | "typeRoots": ["node_modules/@types"], 15 | "lib": ["es2018", "dom"], 16 | "paths": { 17 | "@configs/*": ["src/configs/*"], 18 | "@environments/*": ["src/environments/*"], 19 | "@services/*": ["src/app/services/*"], 20 | "@pipes/*": ["src/app/pipes/*"], 21 | "@components/*": ["src/app/components/*"], 22 | "@fivethree/core": ["projects/core/src/public_api"] 23 | } 24 | }, 25 | "angularCompilerOptions": { 26 | "fullTemplateTypeCheck": true, 27 | "strictInjectionParameters": true 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./out-tsc/spec", 5 | "types": ["jasmine", "node"] 6 | }, 7 | "files": ["src/test.ts", "src/zone-flags.ts", "src/polyfills.ts"], 8 | "include": ["src/**/*.spec.ts", "src/**/*.d.ts"] 9 | } 10 | --------------------------------------------------------------------------------