@idea-ionic/auth 5.29.2 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/environment.d.ts +3 -0
- package/esm2020/environment.mjs +25 -0
- package/esm2020/idea-ionic-auth.mjs +5 -0
- package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- package/esm2020/src/auth.module.mjs +70 -0
- package/esm2020/src/auth.service.mjs +317 -0
- package/esm2020/src/confirmPassword.page.mjs +59 -0
- package/esm2020/src/forgotPassword.page.mjs +48 -0
- package/esm2020/src/newPassword.page.mjs +52 -0
- package/esm2020/src/resendLink.page.mjs +52 -0
- package/esm2020/src/signIn.page.mjs +91 -0
- package/esm2020/src/signUp.page.mjs +79 -0
- package/fesm2015/idea-ionic-auth.mjs +741 -0
- package/fesm2015/idea-ionic-auth.mjs.map +1 -0
- package/fesm2020/idea-ionic-auth.mjs +726 -0
- package/fesm2020/idea-ionic-auth.mjs.map +1 -0
- package/idea-ionic-auth.d.ts +4 -6
- package/package.json +31 -19
- package/src/auth.module.d.ts +15 -0
- package/src/auth.service.d.ts +67 -3
- package/src/confirmPassword.page.d.ts +24 -0
- package/src/forgotPassword.page.d.ts +15 -0
- package/src/newPassword.page.d.ts +23 -1
- package/src/resendLink.page.d.ts +15 -0
- package/src/signIn.page.d.ts +45 -0
- package/src/signUp.page.d.ts +26 -1
- package/bundles/idea-ionic-auth.umd.js +0 -1009
- package/bundles/idea-ionic-auth.umd.js.map +0 -1
- package/bundles/idea-ionic-auth.umd.min.js +0 -16
- package/bundles/idea-ionic-auth.umd.min.js.map +0 -1
- package/esm2015/environment.js +0 -22
- package/esm2015/environment.ngsummary.json +0 -1
- package/esm2015/idea-ionic-auth.js +0 -8
- package/esm2015/idea-ionic-auth.ngsummary.json +0 -1
- package/esm2015/node_modules/@angular/common/common.ngfactory.js +0 -5
- package/esm2015/node_modules/@angular/common/common.ngsummary.json +0 -1
- package/esm2015/node_modules/@angular/common/http/http.ngsummary.json +0 -1
- package/esm2015/node_modules/@angular/core/core.ngfactory.js +0 -4
- package/esm2015/node_modules/@angular/core/core.ngsummary.json +0 -1
- package/esm2015/node_modules/@angular/forms/forms.ngfactory.js +0 -9
- package/esm2015/node_modules/@angular/forms/forms.ngsummary.json +0 -1
- package/esm2015/node_modules/@angular/router/router.ngfactory.js +0 -12
- package/esm2015/node_modules/@angular/router/router.ngsummary.json +0 -1
- package/esm2015/node_modules/@capacitor/core/dist/esm/core-plugin-definitions.ngsummary.json +0 -1
- package/esm2015/node_modules/@capacitor/core/dist/esm/definitions.ngsummary.json +0 -1
- package/esm2015/node_modules/@capacitor/core/dist/esm/global.ngsummary.json +0 -1
- package/esm2015/node_modules/@capacitor/core/dist/esm/index.ngsummary.json +0 -1
- package/esm2015/node_modules/@capacitor/core/dist/esm/web/accessibility.ngsummary.json +0 -1
- package/esm2015/node_modules/@capacitor/core/dist/esm/web/app.ngsummary.json +0 -1
- package/esm2015/node_modules/@capacitor/core/dist/esm/web/browser.ngsummary.json +0 -1
- package/esm2015/node_modules/@capacitor/core/dist/esm/web/camera.ngsummary.json +0 -1
- package/esm2015/node_modules/@capacitor/core/dist/esm/web/clipboard.ngsummary.json +0 -1
- package/esm2015/node_modules/@capacitor/core/dist/esm/web/device.ngsummary.json +0 -1
- package/esm2015/node_modules/@capacitor/core/dist/esm/web/filesystem.ngsummary.json +0 -1
- package/esm2015/node_modules/@capacitor/core/dist/esm/web/geolocation.ngsummary.json +0 -1
- package/esm2015/node_modules/@capacitor/core/dist/esm/web/index.ngsummary.json +0 -1
- package/esm2015/node_modules/@capacitor/core/dist/esm/web/local-notifications.ngsummary.json +0 -1
- package/esm2015/node_modules/@capacitor/core/dist/esm/web/modals.ngsummary.json +0 -1
- package/esm2015/node_modules/@capacitor/core/dist/esm/web/motion.ngsummary.json +0 -1
- package/esm2015/node_modules/@capacitor/core/dist/esm/web/network.ngsummary.json +0 -1
- package/esm2015/node_modules/@capacitor/core/dist/esm/web/permissions.ngsummary.json +0 -1
- package/esm2015/node_modules/@capacitor/core/dist/esm/web/share.ngsummary.json +0 -1
- package/esm2015/node_modules/@capacitor/core/dist/esm/web/splash-screen.ngsummary.json +0 -1
- package/esm2015/node_modules/@capacitor/core/dist/esm/web/storage.ngsummary.json +0 -1
- package/esm2015/node_modules/@capacitor/core/dist/esm/web/toast.ngsummary.json +0 -1
- package/esm2015/node_modules/@capacitor/core/dist/esm/web-plugins.ngsummary.json +0 -1
- package/esm2015/node_modules/@idea-ionic/common/idea-ionic-common.ngfactory.js +0 -1546
- package/esm2015/node_modules/@idea-ionic/common/idea-ionic-common.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/angular/ionic-angular.ngfactory.js +0 -524
- package/esm2015/node_modules/@ionic/angular/ionic-angular.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/angular/node_modules/tslib/tslib.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/action-sheet/action-sheet-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/alert/alert-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/checkbox/checkbox-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/content/content-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/datetime/datetime-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/input/input-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/loading/loading-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/menu/menu-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/modal/modal-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/nav/constants.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/nav/nav-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/nav/view-controller.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/picker/picker-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/popover/popover-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/radio-group/radio-group-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/range/range-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/refresher/refresher-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/reorder-group/reorder-group-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/route/route-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/router/utils/interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/searchbar/searchbar-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/segment/segment-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/select/select-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/select-popover/select-popover-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/spinner/spinner-configs.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/spinner/spinner-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/tab-bar/tab-bar-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/textarea/textarea-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/toast/toast-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/toggle/toggle-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components/virtual-scroll/virtual-scroll-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/components.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/global/config.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/index.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/stencil-public-runtime.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/utils/animation/animation-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/utils/animation/animation.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/utils/animation/cubic-bezier.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/utils/config.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/utils/gesture/gesture-controller.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/utils/gesture/index.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/utils/menu-controller/index.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/utils/overlays-interface.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/utils/overlays.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/utils/platform.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/utils/sanitization/index.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/utils/transition/index.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/utils/transition/ios.transition.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/core/dist/types/utils/transition/md.transition.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/storage/ionic-storage.ngfactory.js +0 -5
- package/esm2015/node_modules/@ionic/storage/ionic-storage.ngsummary.json +0 -1
- package/esm2015/node_modules/@ionic/storage/node_modules/tslib/tslib.ngsummary.json +0 -1
- package/esm2015/node_modules/amazon-cognito-identity-js/index.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/index.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/APIRequestLog.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/RCAttachedResource.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/RCConfiguredFolder.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/RCFolder.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/RCResource.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/address.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/amazonTranslateLanguages.enum.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/announcement.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/appointment.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/attachment.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/booleanChoices.enum.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/cacheable.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/cacheableResource.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/calendar.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/check.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/clientInfo.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/cognitoUser.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/contactRequest.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/contacts.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/countries.enum.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/customBlockMeta.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/customFieldMeta.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/customFieldTypes.enum.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/customSectionMeta.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/delta.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/emailChangeRequest.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/emailData.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/epoch.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/errorReport.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/errorWhitelisted.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/excelRow.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/invitation.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/ionicons.enum.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/label.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/labelVariable.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/languages.enum.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/languages.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/limitCounter.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/markdown.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/membership.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/notification.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/pdfTemplate.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/projectPlan.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/projectSubscription.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/pushNotificationsDevice.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/pushNotificationsPlatforms.enum.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/resource.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/sentiment.enum.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/signature.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/signedURL.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/stringVariable.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/suggestion.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/team.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/teamModules.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/timeInterval.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/user.model.ngsummary.json +0 -1
- package/esm2015/node_modules/idea-toolbox/dist/src/utils.ngsummary.json +0 -1
- package/esm2015/node_modules/ionicons/dist/types/components/icon/icon.ngsummary.json +0 -1
- package/esm2015/node_modules/ionicons/dist/types/components/icon/utils.ngsummary.json +0 -1
- package/esm2015/node_modules/ionicons/dist/types/components.ngsummary.json +0 -1
- package/esm2015/node_modules/ionicons/dist/types/index.ngsummary.json +0 -1
- package/esm2015/node_modules/ionicons/dist/types/stencil-public-runtime.ngsummary.json +0 -1
- package/esm2015/node_modules/localforage/typings/localforage.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/index.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/AsyncSubject.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/BehaviorSubject.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/InnerSubscriber.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/Notification.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/Observable.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/Operator.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/OuterSubscriber.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/ReplaySubject.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/Scheduler.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/Subject.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/Subscriber.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/Subscription.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/config.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/ConnectableObservable.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/bindCallback.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/bindNodeCallback.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/combineLatest.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/concat.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/defer.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/empty.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/forkJoin.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/from.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/fromEvent.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/fromEventPattern.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/generate.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/iif.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/interval.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/merge.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/never.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/of.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/onErrorResumeNext.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/pairs.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/partition.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/race.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/range.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/throwError.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/timer.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/using.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/observable/zip.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/operators/groupBy.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/scheduled/scheduled.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/scheduler/Action.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/scheduler/AnimationFrameScheduler.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/scheduler/AsapScheduler.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/scheduler/AsyncAction.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/scheduler/AsyncScheduler.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/scheduler/QueueScheduler.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/scheduler/VirtualTimeScheduler.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/scheduler/animationFrame.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/scheduler/asap.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/scheduler/async.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/scheduler/queue.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/symbol/observable.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/types.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/util/ArgumentOutOfRangeError.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/util/EmptyError.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/util/ObjectUnsubscribedError.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/util/TimeoutError.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/util/UnsubscriptionError.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/util/identity.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/util/isObservable.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/util/noop.ngsummary.json +0 -1
- package/esm2015/node_modules/rxjs/internal/util/pipe.ngsummary.json +0 -1
- package/esm2015/node_modules/signature_pad/dist/types/point.ngsummary.json +0 -1
- package/esm2015/node_modules/signature_pad/dist/types/signature_pad.ngsummary.json +0 -1
- package/esm2015/node_modules/tslib/tslib.ngsummary.json +0 -1
- package/esm2015/public-api.ngsummary.json +0 -1
- package/esm2015/src/auth.module.js +0 -42
- package/esm2015/src/auth.module.ngfactory.js +0 -24
- package/esm2015/src/auth.module.ngsummary.json +0 -1
- package/esm2015/src/auth.scss.shim.ngstyle.js +0 -3
- package/esm2015/src/auth.service.js +0 -214
- package/esm2015/src/auth.service.ngsummary.json +0 -1
- package/esm2015/src/confirmPassword.page.js +0 -59
- package/esm2015/src/confirmPassword.page.ngfactory.js +0 -70
- package/esm2015/src/confirmPassword.page.ngsummary.json +0 -1
- package/esm2015/src/forgotPassword.page.js +0 -48
- package/esm2015/src/forgotPassword.page.ngfactory.js +0 -43
- package/esm2015/src/forgotPassword.page.ngsummary.json +0 -1
- package/esm2015/src/newPassword.page.js +0 -54
- package/esm2015/src/newPassword.page.ngfactory.js +0 -42
- package/esm2015/src/newPassword.page.ngsummary.json +0 -1
- package/esm2015/src/resendLink.page.js +0 -54
- package/esm2015/src/resendLink.page.ngfactory.js +0 -42
- package/esm2015/src/resendLink.page.ngsummary.json +0 -1
- package/esm2015/src/signIn.page.js +0 -84
- package/esm2015/src/signIn.page.ngfactory.js +0 -82
- package/esm2015/src/signIn.page.ngsummary.json +0 -1
- package/esm2015/src/signUp.page.js +0 -74
- package/esm2015/src/signUp.page.ngfactory.js +0 -70
- package/esm2015/src/signUp.page.ngsummary.json +0 -1
- package/fesm2015/idea-ionic-auth.js +0 -592
- package/fesm2015/idea-ionic-auth.js.map +0 -1
- package/idea-ionic-auth.metadata.json +0 -1
- package/src/auth.module.ngfactory.d.ts +0 -3
- package/src/auth.scss.shim.ngstyle.d.ts +0 -1
- package/src/confirmPassword.page.ngfactory.d.ts +0 -1
- package/src/forgotPassword.page.ngfactory.d.ts +0 -1
- package/src/newPassword.page.ngfactory.d.ts +0 -1
- package/src/resendLink.page.ngfactory.d.ts +0 -1
- package/src/signIn.page.ngfactory.d.ts +0 -1
- package/src/signUp.page.ngfactory.d.ts +0 -1
|
@@ -1,1009 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@ionic/angular'), require('@angular/router'), require('@idea-ionic/common'), require('@capacitor/core'), require('@ionic/storage'), require('amazon-cognito-identity-js'), require('@env'), require('idea-toolbox')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@idea-ionic/auth', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@ionic/angular', '@angular/router', '@idea-ionic/common', '@capacitor/core', '@ionic/storage', 'amazon-cognito-identity-js', '@env', 'idea-toolbox'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['idea-ionic'] = global['idea-ionic'] || {}, global['idea-ionic'].auth = {}), global.ng.core, global.ng.common, global.ng.forms, global['@ionic/angular'], global.ng.router, global['@idea-ionic/common'], global['@capacitor/core'], global['@ionic/storage'], global['amazon-cognito-identity-js'], global['@env'], global['idea-toolbox']));
|
|
5
|
-
}(this, (function (exports, core, common$1, forms, angular, router, common, core$1, storage, amazonCognitoIdentityJs, _env, ideaToolbox) { 'use strict';
|
|
6
|
-
|
|
7
|
-
/*! *****************************************************************************
|
|
8
|
-
Copyright (c) Microsoft Corporation.
|
|
9
|
-
|
|
10
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
11
|
-
purpose with or without fee is hereby granted.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
14
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
15
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
16
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
17
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
18
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
19
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
20
|
-
***************************************************************************** */
|
|
21
|
-
/* global Reflect, Promise */
|
|
22
|
-
var extendStatics = function (d, b) {
|
|
23
|
-
extendStatics = Object.setPrototypeOf ||
|
|
24
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
25
|
-
function (d, b) { for (var p in b)
|
|
26
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
27
|
-
d[p] = b[p]; };
|
|
28
|
-
return extendStatics(d, b);
|
|
29
|
-
};
|
|
30
|
-
function __extends(d, b) {
|
|
31
|
-
if (typeof b !== "function" && b !== null)
|
|
32
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
33
|
-
extendStatics(d, b);
|
|
34
|
-
function __() { this.constructor = d; }
|
|
35
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36
|
-
}
|
|
37
|
-
var __assign = function () {
|
|
38
|
-
__assign = Object.assign || function __assign(t) {
|
|
39
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
40
|
-
s = arguments[i];
|
|
41
|
-
for (var p in s)
|
|
42
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
43
|
-
t[p] = s[p];
|
|
44
|
-
}
|
|
45
|
-
return t;
|
|
46
|
-
};
|
|
47
|
-
return __assign.apply(this, arguments);
|
|
48
|
-
};
|
|
49
|
-
function __rest(s, e) {
|
|
50
|
-
var t = {};
|
|
51
|
-
for (var p in s)
|
|
52
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
53
|
-
t[p] = s[p];
|
|
54
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
55
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
56
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
57
|
-
t[p[i]] = s[p[i]];
|
|
58
|
-
}
|
|
59
|
-
return t;
|
|
60
|
-
}
|
|
61
|
-
function __decorate(decorators, target, key, desc) {
|
|
62
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
63
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
64
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
65
|
-
else
|
|
66
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
67
|
-
if (d = decorators[i])
|
|
68
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
69
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
70
|
-
}
|
|
71
|
-
function __param(paramIndex, decorator) {
|
|
72
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
73
|
-
}
|
|
74
|
-
function __metadata(metadataKey, metadataValue) {
|
|
75
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
76
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
77
|
-
}
|
|
78
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
79
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
80
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
81
|
-
function fulfilled(value) { try {
|
|
82
|
-
step(generator.next(value));
|
|
83
|
-
}
|
|
84
|
-
catch (e) {
|
|
85
|
-
reject(e);
|
|
86
|
-
} }
|
|
87
|
-
function rejected(value) { try {
|
|
88
|
-
step(generator["throw"](value));
|
|
89
|
-
}
|
|
90
|
-
catch (e) {
|
|
91
|
-
reject(e);
|
|
92
|
-
} }
|
|
93
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
94
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
function __generator(thisArg, body) {
|
|
98
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
99
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
100
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
101
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
102
|
-
function step(op) {
|
|
103
|
-
if (f)
|
|
104
|
-
throw new TypeError("Generator is already executing.");
|
|
105
|
-
while (_)
|
|
106
|
-
try {
|
|
107
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
108
|
-
return t;
|
|
109
|
-
if (y = 0, t)
|
|
110
|
-
op = [op[0] & 2, t.value];
|
|
111
|
-
switch (op[0]) {
|
|
112
|
-
case 0:
|
|
113
|
-
case 1:
|
|
114
|
-
t = op;
|
|
115
|
-
break;
|
|
116
|
-
case 4:
|
|
117
|
-
_.label++;
|
|
118
|
-
return { value: op[1], done: false };
|
|
119
|
-
case 5:
|
|
120
|
-
_.label++;
|
|
121
|
-
y = op[1];
|
|
122
|
-
op = [0];
|
|
123
|
-
continue;
|
|
124
|
-
case 7:
|
|
125
|
-
op = _.ops.pop();
|
|
126
|
-
_.trys.pop();
|
|
127
|
-
continue;
|
|
128
|
-
default:
|
|
129
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
130
|
-
_ = 0;
|
|
131
|
-
continue;
|
|
132
|
-
}
|
|
133
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
134
|
-
_.label = op[1];
|
|
135
|
-
break;
|
|
136
|
-
}
|
|
137
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
138
|
-
_.label = t[1];
|
|
139
|
-
t = op;
|
|
140
|
-
break;
|
|
141
|
-
}
|
|
142
|
-
if (t && _.label < t[2]) {
|
|
143
|
-
_.label = t[2];
|
|
144
|
-
_.ops.push(op);
|
|
145
|
-
break;
|
|
146
|
-
}
|
|
147
|
-
if (t[2])
|
|
148
|
-
_.ops.pop();
|
|
149
|
-
_.trys.pop();
|
|
150
|
-
continue;
|
|
151
|
-
}
|
|
152
|
-
op = body.call(thisArg, _);
|
|
153
|
-
}
|
|
154
|
-
catch (e) {
|
|
155
|
-
op = [6, e];
|
|
156
|
-
y = 0;
|
|
157
|
-
}
|
|
158
|
-
finally {
|
|
159
|
-
f = t = 0;
|
|
160
|
-
}
|
|
161
|
-
if (op[0] & 5)
|
|
162
|
-
throw op[1];
|
|
163
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
167
|
-
if (k2 === undefined)
|
|
168
|
-
k2 = k;
|
|
169
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
170
|
-
}) : (function (o, m, k, k2) {
|
|
171
|
-
if (k2 === undefined)
|
|
172
|
-
k2 = k;
|
|
173
|
-
o[k2] = m[k];
|
|
174
|
-
});
|
|
175
|
-
function __exportStar(m, o) {
|
|
176
|
-
for (var p in m)
|
|
177
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
178
|
-
__createBinding(o, m, p);
|
|
179
|
-
}
|
|
180
|
-
function __values(o) {
|
|
181
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
182
|
-
if (m)
|
|
183
|
-
return m.call(o);
|
|
184
|
-
if (o && typeof o.length === "number")
|
|
185
|
-
return {
|
|
186
|
-
next: function () {
|
|
187
|
-
if (o && i >= o.length)
|
|
188
|
-
o = void 0;
|
|
189
|
-
return { value: o && o[i++], done: !o };
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
193
|
-
}
|
|
194
|
-
function __read(o, n) {
|
|
195
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
196
|
-
if (!m)
|
|
197
|
-
return o;
|
|
198
|
-
var i = m.call(o), r, ar = [], e;
|
|
199
|
-
try {
|
|
200
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
201
|
-
ar.push(r.value);
|
|
202
|
-
}
|
|
203
|
-
catch (error) {
|
|
204
|
-
e = { error: error };
|
|
205
|
-
}
|
|
206
|
-
finally {
|
|
207
|
-
try {
|
|
208
|
-
if (r && !r.done && (m = i["return"]))
|
|
209
|
-
m.call(i);
|
|
210
|
-
}
|
|
211
|
-
finally {
|
|
212
|
-
if (e)
|
|
213
|
-
throw e.error;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
return ar;
|
|
217
|
-
}
|
|
218
|
-
/** @deprecated */
|
|
219
|
-
function __spread() {
|
|
220
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
221
|
-
ar = ar.concat(__read(arguments[i]));
|
|
222
|
-
return ar;
|
|
223
|
-
}
|
|
224
|
-
/** @deprecated */
|
|
225
|
-
function __spreadArrays() {
|
|
226
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
227
|
-
s += arguments[i].length;
|
|
228
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
229
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
230
|
-
r[k] = a[j];
|
|
231
|
-
return r;
|
|
232
|
-
}
|
|
233
|
-
function __spreadArray(to, from, pack) {
|
|
234
|
-
if (pack || arguments.length === 2)
|
|
235
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
236
|
-
if (ar || !(i in from)) {
|
|
237
|
-
if (!ar)
|
|
238
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
239
|
-
ar[i] = from[i];
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
243
|
-
}
|
|
244
|
-
function __await(v) {
|
|
245
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
246
|
-
}
|
|
247
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
248
|
-
if (!Symbol.asyncIterator)
|
|
249
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
250
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
251
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
252
|
-
function verb(n) { if (g[n])
|
|
253
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
254
|
-
function resume(n, v) { try {
|
|
255
|
-
step(g[n](v));
|
|
256
|
-
}
|
|
257
|
-
catch (e) {
|
|
258
|
-
settle(q[0][3], e);
|
|
259
|
-
} }
|
|
260
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
261
|
-
function fulfill(value) { resume("next", value); }
|
|
262
|
-
function reject(value) { resume("throw", value); }
|
|
263
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
264
|
-
resume(q[0][0], q[0][1]); }
|
|
265
|
-
}
|
|
266
|
-
function __asyncDelegator(o) {
|
|
267
|
-
var i, p;
|
|
268
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
269
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
270
|
-
}
|
|
271
|
-
function __asyncValues(o) {
|
|
272
|
-
if (!Symbol.asyncIterator)
|
|
273
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
274
|
-
var m = o[Symbol.asyncIterator], i;
|
|
275
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
276
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
277
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
278
|
-
}
|
|
279
|
-
function __makeTemplateObject(cooked, raw) {
|
|
280
|
-
if (Object.defineProperty) {
|
|
281
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
282
|
-
}
|
|
283
|
-
else {
|
|
284
|
-
cooked.raw = raw;
|
|
285
|
-
}
|
|
286
|
-
return cooked;
|
|
287
|
-
}
|
|
288
|
-
;
|
|
289
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
290
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
291
|
-
}) : function (o, v) {
|
|
292
|
-
o["default"] = v;
|
|
293
|
-
};
|
|
294
|
-
function __importStar(mod) {
|
|
295
|
-
if (mod && mod.__esModule)
|
|
296
|
-
return mod;
|
|
297
|
-
var result = {};
|
|
298
|
-
if (mod != null)
|
|
299
|
-
for (var k in mod)
|
|
300
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
301
|
-
__createBinding(result, mod, k);
|
|
302
|
-
__setModuleDefault(result, mod);
|
|
303
|
-
return result;
|
|
304
|
-
}
|
|
305
|
-
function __importDefault(mod) {
|
|
306
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
307
|
-
}
|
|
308
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
309
|
-
if (kind === "a" && !f)
|
|
310
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
311
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
312
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
313
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
314
|
-
}
|
|
315
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
316
|
-
if (kind === "m")
|
|
317
|
-
throw new TypeError("Private method is not writable");
|
|
318
|
-
if (kind === "a" && !f)
|
|
319
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
320
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
321
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
322
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
var DEVICE_KEY_ATTRIBUTE = 'custom:'.concat(_env.environment.idea.project);
|
|
326
|
-
var IDEAAuthService = /** @class */ (function () {
|
|
327
|
-
function IDEAAuthService(storage) {
|
|
328
|
-
this.storage = storage;
|
|
329
|
-
this.userPool = new amazonCognitoIdentityJs.CognitoUserPool({
|
|
330
|
-
UserPoolId: _env.environment.aws.cognito.userPoolId,
|
|
331
|
-
ClientId: _env.environment.aws.cognito.userPoolClientId
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
IDEAAuthService.prototype.prepareAuthDetails = function (username, pwd) {
|
|
335
|
-
return new amazonCognitoIdentityJs.AuthenticationDetails({ Username: username, Password: pwd });
|
|
336
|
-
};
|
|
337
|
-
IDEAAuthService.prototype.prepareCognitoUser = function (username) {
|
|
338
|
-
return new amazonCognitoIdentityJs.CognitoUser({ Username: username, Pool: this.userPool });
|
|
339
|
-
};
|
|
340
|
-
IDEAAuthService.prototype.prepareUserAttribute = function (name, value) {
|
|
341
|
-
return new amazonCognitoIdentityJs.CognitoUserAttribute({ Name: name, Value: value });
|
|
342
|
-
};
|
|
343
|
-
IDEAAuthService.prototype.login = function (username, password) {
|
|
344
|
-
var _this = this;
|
|
345
|
-
return new Promise(function (resolve, reject) {
|
|
346
|
-
_this.prepareCognitoUser(username).authenticateUser(_this.prepareAuthDetails(username, password), {
|
|
347
|
-
onSuccess: function () { return resolve(false); },
|
|
348
|
-
onFailure: function (err) { return reject(err); },
|
|
349
|
-
newPasswordRequired: function () { return resolve(true); }
|
|
350
|
-
});
|
|
351
|
-
});
|
|
352
|
-
};
|
|
353
|
-
IDEAAuthService.prototype.confirmNewPassword = function (username, tempPassword, newPassword) {
|
|
354
|
-
var _this = this;
|
|
355
|
-
return new Promise(function (resolve, reject) {
|
|
356
|
-
var user = _this.prepareCognitoUser(username);
|
|
357
|
-
user.authenticateUser(_this.prepareAuthDetails(username, tempPassword), {
|
|
358
|
-
onSuccess: function () { return resolve(); },
|
|
359
|
-
onFailure: function (err) { return reject(err); },
|
|
360
|
-
newPasswordRequired: function () { return user.completeNewPasswordChallenge(newPassword, {}, {
|
|
361
|
-
onSuccess: function () { return resolve(); },
|
|
362
|
-
onFailure: function (err) { return reject(err); }
|
|
363
|
-
}); }
|
|
364
|
-
});
|
|
365
|
-
});
|
|
366
|
-
};
|
|
367
|
-
IDEAAuthService.prototype.register = function (username, password, attributes) {
|
|
368
|
-
var _this = this;
|
|
369
|
-
attributes = attributes || {};
|
|
370
|
-
return new Promise(function (resolve, reject) {
|
|
371
|
-
var attrs = [];
|
|
372
|
-
for (var prop in attributes)
|
|
373
|
-
if (attributes[prop])
|
|
374
|
-
attrs.push(_this.prepareUserAttribute(prop, attributes[prop]));
|
|
375
|
-
if (!attributes.email)
|
|
376
|
-
attrs.push(_this.prepareUserAttribute('email', username));
|
|
377
|
-
_this.userPool.signUp(username, password, attrs, null, function (err, res) { return err ? reject(err) : resolve(res.user); });
|
|
378
|
-
});
|
|
379
|
-
};
|
|
380
|
-
IDEAAuthService.prototype.confirmRegistration = function (username, code) {
|
|
381
|
-
var _this = this;
|
|
382
|
-
return new Promise(function (resolve, reject) {
|
|
383
|
-
_this.prepareCognitoUser(username).confirmRegistration(code, true, function (err) { return err ? reject(err) : resolve(); });
|
|
384
|
-
});
|
|
385
|
-
};
|
|
386
|
-
IDEAAuthService.prototype.resendConfirmationCode = function (username) {
|
|
387
|
-
var _this = this;
|
|
388
|
-
return new Promise(function (resolve, reject) {
|
|
389
|
-
_this.prepareCognitoUser(username).resendConfirmationCode(function (err) { return (err ? reject(err) : resolve()); });
|
|
390
|
-
});
|
|
391
|
-
};
|
|
392
|
-
IDEAAuthService.prototype.logout = function (options) {
|
|
393
|
-
var _this = this;
|
|
394
|
-
options = Object.assign({ global: false }, options);
|
|
395
|
-
return new Promise(function (resolve, reject) {
|
|
396
|
-
_this.storage.remove('AuthRefreshToken').then(function () { return _this.storage.remove('AuthUserDetails').then(function () {
|
|
397
|
-
var user = _this.userPool.getCurrentUser();
|
|
398
|
-
user.getSession(function (err) { return __awaiter(_this, void 0, void 0, function () {
|
|
399
|
-
return __generator(this, function (_a) {
|
|
400
|
-
switch (_a.label) {
|
|
401
|
-
case 0:
|
|
402
|
-
if (err)
|
|
403
|
-
return [2 /*return*/, resolve()];
|
|
404
|
-
if (!_env.environment.idea.auth.singleSimultaneousSession) return [3 /*break*/, 2];
|
|
405
|
-
return [4 /*yield*/, this.setCurrentDeviceForProject(null)];
|
|
406
|
-
case 1:
|
|
407
|
-
_a.sent();
|
|
408
|
-
_a.label = 2;
|
|
409
|
-
case 2:
|
|
410
|
-
if (options.global)
|
|
411
|
-
user.globalSignOut({ onSuccess: function () { return resolve(); }, onFailure: function (err) { return reject(err); } });
|
|
412
|
-
else {
|
|
413
|
-
user.signOut();
|
|
414
|
-
resolve();
|
|
415
|
-
}
|
|
416
|
-
return [2 /*return*/];
|
|
417
|
-
}
|
|
418
|
-
});
|
|
419
|
-
}); });
|
|
420
|
-
}); });
|
|
421
|
-
});
|
|
422
|
-
};
|
|
423
|
-
IDEAAuthService.prototype.forgotPassword = function (username) {
|
|
424
|
-
var _this = this;
|
|
425
|
-
return new Promise(function (resolve, reject) {
|
|
426
|
-
_this.prepareCognitoUser(username).forgotPassword({
|
|
427
|
-
onSuccess: function () { return resolve(); },
|
|
428
|
-
onFailure: function (err) { return reject(err); }
|
|
429
|
-
});
|
|
430
|
-
});
|
|
431
|
-
};
|
|
432
|
-
IDEAAuthService.prototype.confirmPassword = function (username, code, newPwd) {
|
|
433
|
-
var _this = this;
|
|
434
|
-
return new Promise(function (resolve, reject) {
|
|
435
|
-
_this.prepareCognitoUser(username).confirmPassword(code, newPwd, {
|
|
436
|
-
onSuccess: function () { return resolve(); },
|
|
437
|
-
onFailure: function (err) { return reject(err); }
|
|
438
|
-
});
|
|
439
|
-
});
|
|
440
|
-
};
|
|
441
|
-
IDEAAuthService.prototype.isAuthenticated = function (offlineAllowed, getFreshIdTokenOnExp) {
|
|
442
|
-
var _this = this;
|
|
443
|
-
return new Promise(function (resolve, reject) {
|
|
444
|
-
if (offlineAllowed && !navigator.onLine) {
|
|
445
|
-
_this.storage.get('AuthUserDetails').then(function (userDetails) { return resolve({ idToken: null, userDetails: userDetails }); });
|
|
446
|
-
window.addEventListener('online', function () { return _this.isAuthenticated(true, getFreshIdTokenOnExp)
|
|
447
|
-
.then(function (result) { return getFreshIdTokenOnExp(result.idToken); }); });
|
|
448
|
-
}
|
|
449
|
-
else {
|
|
450
|
-
var user_1 = _this.userPool.getCurrentUser();
|
|
451
|
-
if (!user_1)
|
|
452
|
-
return reject();
|
|
453
|
-
user_1.getSession(function (err, session) {
|
|
454
|
-
if (err)
|
|
455
|
-
return reject(err);
|
|
456
|
-
user_1.getUserAttributes(function (e, attributes) {
|
|
457
|
-
if (e)
|
|
458
|
-
return reject(e);
|
|
459
|
-
var userDetails = {};
|
|
460
|
-
attributes.forEach(function (a) { return (userDetails[a.getName()] = a.getValue()); });
|
|
461
|
-
var sessionInfo = session.getAccessToken().decodePayload();
|
|
462
|
-
var groups = sessionInfo['cognito:groups'] || [];
|
|
463
|
-
userDetails['groups'] = groups;
|
|
464
|
-
_this.runPostAuthChecks(userDetails, function (err) {
|
|
465
|
-
if (err)
|
|
466
|
-
return reject(err);
|
|
467
|
-
_this.storage.set('AuthRefreshToken', session.getRefreshToken().getToken());
|
|
468
|
-
setTimeout(function () { return _this.refreshSession(user_1, session.getRefreshToken().getToken(), getFreshIdTokenOnExp); }, 15 * 60 * 1000);
|
|
469
|
-
if (offlineAllowed)
|
|
470
|
-
_this.storage.set('AuthUserDetails', userDetails);
|
|
471
|
-
resolve({ idToken: session.getIdToken().getJwtToken(), userDetails: userDetails });
|
|
472
|
-
});
|
|
473
|
-
});
|
|
474
|
-
});
|
|
475
|
-
}
|
|
476
|
-
});
|
|
477
|
-
};
|
|
478
|
-
IDEAAuthService.prototype.refreshSession = function (user, refreshToken, callback) {
|
|
479
|
-
var _this = this;
|
|
480
|
-
user.refreshSession(new amazonCognitoIdentityJs.CognitoRefreshToken({ RefreshToken: refreshToken }), function (err, session) {
|
|
481
|
-
if (err) {
|
|
482
|
-
setTimeout(function () { return _this.refreshSession(user, refreshToken, callback); }, 1 * 60 * 1000);
|
|
483
|
-
}
|
|
484
|
-
else {
|
|
485
|
-
_this.storage.set('AuthRefreshToken', session.getRefreshToken().getToken());
|
|
486
|
-
setTimeout(function () { return _this.refreshSession(user, session.getRefreshToken().getToken(), callback); }, 15 * 60 * 1000);
|
|
487
|
-
if (callback)
|
|
488
|
-
callback(session.getIdToken().getJwtToken());
|
|
489
|
-
}
|
|
490
|
-
});
|
|
491
|
-
};
|
|
492
|
-
IDEAAuthService.prototype.runPostAuthChecks = function (userDetails, callback) {
|
|
493
|
-
var groups = userDetails['groups'];
|
|
494
|
-
var isAdmin = groups.some(function (x) { return x === 'admins'; });
|
|
495
|
-
if (isAdmin)
|
|
496
|
-
return callback();
|
|
497
|
-
var isRobot = groups.some(function (x) { return x === 'robots'; });
|
|
498
|
-
if (isRobot)
|
|
499
|
-
return callback(new Error('ROBOT_USER'));
|
|
500
|
-
if (_env.environment.idea.auth.singleSimultaneousSession)
|
|
501
|
-
return this.checkForSimultaneousSessions(userDetails, callback);
|
|
502
|
-
callback();
|
|
503
|
-
};
|
|
504
|
-
IDEAAuthService.prototype.checkForSimultaneousSessions = function (userDetails, callback) {
|
|
505
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
506
|
-
var currentDeviceKey, randomKey, lastDeviceToSignIntoThisProject;
|
|
507
|
-
return __generator(this, function (_a) {
|
|
508
|
-
switch (_a.label) {
|
|
509
|
-
case 0: return [4 /*yield*/, this.storage.get('AuthDeviceKey')];
|
|
510
|
-
case 1:
|
|
511
|
-
currentDeviceKey = _a.sent();
|
|
512
|
-
if (!!currentDeviceKey) return [3 /*break*/, 3];
|
|
513
|
-
randomKey = Math.random().toString(36).substring(10);
|
|
514
|
-
currentDeviceKey = randomKey.concat(String(Date.now()));
|
|
515
|
-
return [4 /*yield*/, this.storage.set('AuthDeviceKey', currentDeviceKey)];
|
|
516
|
-
case 2:
|
|
517
|
-
_a.sent();
|
|
518
|
-
_a.label = 3;
|
|
519
|
-
case 3:
|
|
520
|
-
lastDeviceToSignIntoThisProject = userDetails[DEVICE_KEY_ATTRIBUTE];
|
|
521
|
-
if (!lastDeviceToSignIntoThisProject) {
|
|
522
|
-
this.setCurrentDeviceForProject(currentDeviceKey)
|
|
523
|
-
.then(function () { return callback(); })
|
|
524
|
-
.catch(function () { return callback(new Error('CANT_SET_DEVICE')); });
|
|
525
|
-
}
|
|
526
|
-
else if (lastDeviceToSignIntoThisProject === currentDeviceKey)
|
|
527
|
-
callback();
|
|
528
|
-
else
|
|
529
|
-
callback(new Error('SIMULTANEOUS_SESSION'));
|
|
530
|
-
return [2 /*return*/];
|
|
531
|
-
}
|
|
532
|
-
});
|
|
533
|
-
});
|
|
534
|
-
};
|
|
535
|
-
IDEAAuthService.prototype.setCurrentDeviceForProject = function (deviceKey) {
|
|
536
|
-
var attributes = {};
|
|
537
|
-
attributes[DEVICE_KEY_ATTRIBUTE] = deviceKey || '';
|
|
538
|
-
return this.updateUserAttributes(attributes);
|
|
539
|
-
};
|
|
540
|
-
IDEAAuthService.prototype.updateUserAttributes = function (attributes) {
|
|
541
|
-
var _this = this;
|
|
542
|
-
return new Promise(function (resolve, reject) {
|
|
543
|
-
var attrs = new Array();
|
|
544
|
-
for (var prop in attributes)
|
|
545
|
-
if (attributes[prop] !== undefined)
|
|
546
|
-
attrs.push(_this.prepareUserAttribute(prop, attributes[prop]));
|
|
547
|
-
var user = _this.userPool.getCurrentUser();
|
|
548
|
-
if (!user)
|
|
549
|
-
return reject();
|
|
550
|
-
user.getSession(function (err) {
|
|
551
|
-
if (err)
|
|
552
|
-
reject(err);
|
|
553
|
-
else
|
|
554
|
-
user.updateAttributes(attrs, function (e) { return (e ? reject(e) : resolve()); });
|
|
555
|
-
});
|
|
556
|
-
});
|
|
557
|
-
};
|
|
558
|
-
return IDEAAuthService;
|
|
559
|
-
}());
|
|
560
|
-
IDEAAuthService.decorators = [
|
|
561
|
-
{ type: core.Injectable }
|
|
562
|
-
];
|
|
563
|
-
IDEAAuthService.ctorParameters = function () { return [
|
|
564
|
-
{ type: storage.Storage }
|
|
565
|
-
]; };
|
|
566
|
-
|
|
567
|
-
var Browser = core$1.Plugins.Browser;
|
|
568
|
-
var IDEASignInPage = /** @class */ (function () {
|
|
569
|
-
function IDEASignInPage(navCtrl, tc, message, loading, auth, t) {
|
|
570
|
-
this.navCtrl = navCtrl;
|
|
571
|
-
this.tc = tc;
|
|
572
|
-
this.message = message;
|
|
573
|
-
this.loading = loading;
|
|
574
|
-
this.auth = auth;
|
|
575
|
-
this.t = t;
|
|
576
|
-
this.title = _env.environment.idea.app.title;
|
|
577
|
-
this.registrationPossible = _env.environment.idea.auth.registrationIsPossible;
|
|
578
|
-
this.hasIntroPage = _env.environment.idea.app.hasIntroPage;
|
|
579
|
-
this.website = _env.environment.idea.website;
|
|
580
|
-
this.agreementsCheck = true;
|
|
581
|
-
}
|
|
582
|
-
IDEASignInPage.prototype.ionViewDidEnter = function () {
|
|
583
|
-
if (this.tc.get('newAccountRegistered')) {
|
|
584
|
-
this.newAccountRegistered = true;
|
|
585
|
-
this.email = this.tc.get('newAccountRegistered', true);
|
|
586
|
-
}
|
|
587
|
-
};
|
|
588
|
-
IDEASignInPage.prototype.login = function () {
|
|
589
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
590
|
-
var _this = this;
|
|
591
|
-
return __generator(this, function (_a) {
|
|
592
|
-
switch (_a.label) {
|
|
593
|
-
case 0:
|
|
594
|
-
if (!this.agreementsCheck)
|
|
595
|
-
return [2 /*return*/];
|
|
596
|
-
this.errorMsg = null;
|
|
597
|
-
return [4 /*yield*/, this.loading.show()];
|
|
598
|
-
case 1:
|
|
599
|
-
_a.sent();
|
|
600
|
-
this.auth
|
|
601
|
-
.login(this.email, this.password)
|
|
602
|
-
.then(function (needNewPassword) {
|
|
603
|
-
if (needNewPassword) {
|
|
604
|
-
_this.tc.set('email', _this.email);
|
|
605
|
-
_this.tc.set('password', _this.password);
|
|
606
|
-
_this.navCtrl.navigateForward(['auth/new-password']);
|
|
607
|
-
}
|
|
608
|
-
else
|
|
609
|
-
window.location.assign('');
|
|
610
|
-
})
|
|
611
|
-
.catch(function (err) {
|
|
612
|
-
if (err.name === 'UserNotConfirmedException')
|
|
613
|
-
_this.errorMsg = _this.t._('IDEA_AUTH.CONFIRM_YOUR_EMAIL_TO_LOGIN');
|
|
614
|
-
_this.message.error('IDEA_AUTH.AUTHENTICATION_FAILED');
|
|
615
|
-
})
|
|
616
|
-
.finally(function () { return _this.loading.hide(); });
|
|
617
|
-
return [2 /*return*/];
|
|
618
|
-
}
|
|
619
|
-
});
|
|
620
|
-
});
|
|
621
|
-
};
|
|
622
|
-
IDEASignInPage.prototype.goToIntro = function () {
|
|
623
|
-
this.navCtrl.navigateBack(['intro']);
|
|
624
|
-
};
|
|
625
|
-
IDEASignInPage.prototype.goToForgotPassword = function () {
|
|
626
|
-
this.navCtrl.navigateForward(['auth/forgot-password']);
|
|
627
|
-
};
|
|
628
|
-
IDEASignInPage.prototype.goToRegistration = function () {
|
|
629
|
-
this.tc.set('email', this.email);
|
|
630
|
-
this.tc.set('password', this.password);
|
|
631
|
-
this.navCtrl.navigateForward(['auth', 'sign-up']);
|
|
632
|
-
};
|
|
633
|
-
IDEASignInPage.prototype.openLink = function (url) {
|
|
634
|
-
Browser.open({ url: url });
|
|
635
|
-
};
|
|
636
|
-
return IDEASignInPage;
|
|
637
|
-
}());
|
|
638
|
-
IDEASignInPage.decorators = [
|
|
639
|
-
{ type: core.Component, args: [{
|
|
640
|
-
selector: 'idea-sign-in',
|
|
641
|
-
template: "<ion-content>\n <ion-card color=\"warning\" *ngIf=\"newAccountRegistered\">\n <ion-card-content>{{ 'IDEA_AUTH.CONFIRM_YOUR_EMAIL_TO_LOGIN' | translate }}</ion-card-content>\n </ion-card>\n <form class=\"flexBox\">\n <div>\n <ion-card class=\"authCard\">\n <ion-img\n [title]=\"t._('IDEA_AUTH.SERVICE_LOGO')\"\n [src]=\"tc.get('darkMode') ? 'assets/icons/icon-auth-alt.svg' : 'assets/icons/icon-auth.svg'\"\n ></ion-img>\n <ion-card-header>\n <ion-card-title color=\"primary\" *ngIf=\"title\">{{ title }}</ion-card-title>\n <ion-card-subtitle *ngIf=\"t._('IDEA_VARIABLES.TAGLINE')\">\n {{ 'IDEA_VARIABLES.TAGLINE' | translate }}\n </ion-card-subtitle>\n </ion-card-header>\n <ion-card-content>\n <p class=\"errorBox\" *ngIf=\"errorMsg\">\n <b> {{ 'IDEA_AUTH.ERROR' | translate }}. </b>\n {{ errorMsg }}\n </p>\n <ion-item>\n <ion-label position=\"inline\">\n <ion-icon name=\"person-circle\" color=\"primary\"> </ion-icon>\n </ion-label>\n <ion-input\n type=\"email\"\n inputmode=\"email\"\n pattern=\"[A-Za-z0-9._%+-]{2,}@[a-zA-Z-_.]{2,}[.]{1}[a-zA-Z]{2,}\"\n spellcheck=\"false\"\n autocorrect=\"off\"\n autocapitalize=\"off\"\n autocomplete=\"email\"\n [placeholder]=\"t._('IDEA_AUTH.EMAIL')\"\n [title]=\"t._('IDEA_AUTH.EMAIL_HINT')\"\n [ngModelOptions]=\"{ standalone: true }\"\n [(ngModel)]=\"email\"\n (keyup.enter)=\"login()\"\n ></ion-input>\n </ion-item>\n <ion-item>\n <ion-label position=\"inline\">\n <ion-icon name=\"key\" color=\"primary\"></ion-icon>\n </ion-label>\n <ion-input\n id=\"current-password\"\n type=\"password\"\n pattern=\".{8,}\"\n spellcheck=\"false\"\n autocorrect=\"off\"\n autocapitalize=\"off\"\n autocomplete=\"current-password\"\n [clearOnEdit]=\"false\"\n [placeholder]=\"t._('IDEA_AUTH.PASSWORD')\"\n [title]=\"t._('IDEA_AUTH.PASSWORD_HINT')\"\n [ngModelOptions]=\"{ standalone: true }\"\n [(ngModel)]=\"password\"\n (keyup.enter)=\"login()\"\n ></ion-input>\n </ion-item>\n <ion-row\n class=\"agreementsAcceptanceRow\"\n *ngIf=\"\n !registrationPossible &&\n (t._('IDEA_VARIABLES.TERMS_AND_CONDITIONS_URL') || t._('IDEA_VARIABLES.PRIVACY_POLICY_URL'))\n \"\n >\n <ion-col>\n <ion-checkbox\n size=\"small\"\n [ngModelOptions]=\"{ standalone: true }\"\n [(ngModel)]=\"agreementsCheck\"\n ></ion-checkbox>\n {{ 'IDEA_AUTH.AGREEMENTS_CHECK_LOGIN' | translate }}:\n <a\n ion-text\n color=\"primary\"\n target=\"_blank\"\n *ngIf=\"t._('IDEA_VARIABLES.TERMS_AND_CONDITIONS_URL')\"\n [title]=\"t._('IDEA_AUTH.TERMS_AND_CONDITIONS_HINT')\"\n [href]=\"t._('IDEA_VARIABLES.TERMS_AND_CONDITIONS_URL')\"\n >\n {{ 'IDEA_AUTH.TERMS_AND_CONDITIONS' | translate }}\n </a>\n <ion-text\n *ngIf=\"\n t._('IDEA_VARIABLES.PRIVACY_POLICY_URL') && t._('IDEA_VARIABLES.TERMS_AND_CONDITIONS_URL')\n \"\n >\n &\n </ion-text>\n <a\n ion-text\n color=\"primary\"\n target=\"_blank\"\n *ngIf=\"t._('IDEA_VARIABLES.PRIVACY_POLICY_URL')\"\n [title]=\"t._('IDEA_AUTH.PRIVACY_POLICY_HINT')\"\n [href]=\"t._('IDEA_VARIABLES.PRIVACY_POLICY_URL')\"\n >\n {{ 'IDEA_AUTH.PRIVACY_POLICY' | translate }}\n </a>\n </ion-col>\n </ion-row>\n <ion-button\n expand=\"block\"\n [disabled]=\"!agreementsCheck\"\n [title]=\"t._('IDEA_AUTH.SIGN_IN_HINT')\"\n (click)=\"login()\"\n >\n {{ 'IDEA_AUTH.SIGN_IN' | translate }}\n </ion-button>\n <ion-button\n fill=\"clear\"\n expand=\"block\"\n class=\"smallCaseButton\"\n *ngIf=\"registrationPossible\"\n [title]=\"t._('IDEA_AUTH.CREATE_AN_ACCOUNT_HINT')\"\n (click)=\"goToRegistration()\"\n >\n {{ 'IDEA_AUTH.CREATE_AN_ACCOUNT' | translate }}\n </ion-button>\n <ion-button\n fill=\"clear\"\n expand=\"block\"\n class=\"smallCaseButton\"\n [title]=\"t._('IDEA_AUTH.I_FORGOT_MY_PASSWORD_HINT')\"\n (click)=\"goToForgotPassword()\"\n >\n {{ 'IDEA_AUTH.I_FORGOT_MY_PASSWORD' | translate }}\n </ion-button>\n <ion-button\n fill=\"clear\"\n expand=\"block\"\n color=\"medium\"\n class=\"smallCaseButton\"\n *ngIf=\"hasIntroPage\"\n [title]=\"t._('IDEA_AUTH.BACK_TO_INTRO_HINT')\"\n (click)=\"goToIntro()\"\n >\n {{ 'IDEA_AUTH.BACK_TO_INTRO' | translate }}\n </ion-button>\n </ion-card-content>\n </ion-card>\n <ion-img\n class=\"ideaLogo\"\n *ngIf=\"website\"\n [src]=\"tc.get('darkMode') ? './assets/icons/idea-alt.png' : './assets/icons/idea.png'\"\n [title]=\"t._('IDEA_AUTH.IDEA_TAGLINE')\"\n (click)=\"openLink(website)\"\n ></ion-img>\n </div>\n </form>\n</ion-content>\n",
|
|
642
|
-
styles: [".flexBox{background:var(--ion-color-white-shade)}.authCard{min-width:400px;max-width:550px;margin:0 10px;padding:20px;background-color:var(--ion-color-white);border:1px solid var(--ion-color-light);border-radius:10px;box-shadow:none;text-align:center}.authCard ion-img{width:150px;display:block;margin:0 auto}.authCard ion-card-title{font-family:auth-title;font-size:3em}.authCard ion-card-subtitle{font-family:auth-title;font-size:1.2em}.authCard ion-card-content{padding-top:16px}.authCard ion-card-content .errorBox{padding-left:10px;margin-bottom:20px;text-align:left;border-left:2px solid var(--ion-color-danger)}.authCard ion-card-content ion-item{--ion-item-background:var(--ion-color-white);--border-color:var(--ion-color-light)}.authCard ion-card-content ion-icon{padding-top:4px;padding-right:5px;font-size:1.3em}.authCard ion-card-content .agreementsAcceptanceRow{margin-top:15px;font-size:.9em}.authCard ion-card-content .agreementsAcceptanceRow ion-checkbox{vertical-align:bottom;margin-right:3px}.authCard ion-card-content ion-button{margin-top:15px}.authCard ion-card-content .smallCaseButton{text-transform:none;letter-spacing:normal;font-size:1em}@media only screen and (max-width:500px){.authCard{background-color:transparent;border:none}}.ideaLogo{width:65px;margin:40px auto 0;cursor:pointer}"]
|
|
643
|
-
},] }
|
|
644
|
-
];
|
|
645
|
-
IDEASignInPage.ctorParameters = function () { return [
|
|
646
|
-
{ type: angular.NavController },
|
|
647
|
-
{ type: common.IDEATinCanService },
|
|
648
|
-
{ type: common.IDEAMessageService },
|
|
649
|
-
{ type: common.IDEALoadingService },
|
|
650
|
-
{ type: IDEAAuthService },
|
|
651
|
-
{ type: common.IDEATranslationsService }
|
|
652
|
-
]; };
|
|
653
|
-
|
|
654
|
-
var IDEASignUpPage = /** @class */ (function () {
|
|
655
|
-
function IDEASignUpPage(navCtrl, tc, message, loading, auth, t) {
|
|
656
|
-
this.navCtrl = navCtrl;
|
|
657
|
-
this.tc = tc;
|
|
658
|
-
this.message = message;
|
|
659
|
-
this.loading = loading;
|
|
660
|
-
this.auth = auth;
|
|
661
|
-
this.t = t;
|
|
662
|
-
this.email = this.tc.get('email', true);
|
|
663
|
-
this.password = this.tc.get('password', true);
|
|
664
|
-
this.agreementsCheck = false;
|
|
665
|
-
}
|
|
666
|
-
IDEASignUpPage.prototype.ngOnInit = function () {
|
|
667
|
-
if (!_env.environment.idea.auth.registrationIsPossible)
|
|
668
|
-
return this.goToAuth();
|
|
669
|
-
this.agreementsCheck =
|
|
670
|
-
this.t._('IDEA_VARIABLES.TERMS_AND_CONDITIONS_URL') || this.t._('IDEA_VARIABLES.PRIVACY_POLICY_URL')
|
|
671
|
-
? this.agreementsCheck
|
|
672
|
-
: true;
|
|
673
|
-
};
|
|
674
|
-
IDEASignUpPage.prototype.register = function () {
|
|
675
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
676
|
-
var _this = this;
|
|
677
|
-
return __generator(this, function (_a) {
|
|
678
|
-
switch (_a.label) {
|
|
679
|
-
case 0:
|
|
680
|
-
this.errorMsg = null;
|
|
681
|
-
if (ideaToolbox.isEmpty(this.email, 'email'))
|
|
682
|
-
this.errorMsg = this.t._('IDEA_AUTH.VALID_EMAIL_OBLIGATORY');
|
|
683
|
-
else if (!this.password || this.password.length < 8)
|
|
684
|
-
this.errorMsg = this.t._('IDEA_AUTH.PASSWORD_POLICY_VIOLATION', { n: 8 });
|
|
685
|
-
if (this.errorMsg)
|
|
686
|
-
return [2 /*return*/, this.message.error('IDEA_AUTH.REGISTRATION_FAILED')];
|
|
687
|
-
return [4 /*yield*/, this.loading.show()];
|
|
688
|
-
case 1:
|
|
689
|
-
_a.sent();
|
|
690
|
-
this.auth
|
|
691
|
-
.register(this.email, this.password)
|
|
692
|
-
.then(function () {
|
|
693
|
-
_this.message.success('IDEA_AUTH.REGISTRATION_COMPLETED');
|
|
694
|
-
_this.tc.set('newAccountRegistered', _this.email);
|
|
695
|
-
_this.goToAuth();
|
|
696
|
-
})
|
|
697
|
-
.catch(function (err) {
|
|
698
|
-
_this.errorMsg = err.message;
|
|
699
|
-
_this.message.error('IDEA_AUTH.REGISTRATION_FAILED');
|
|
700
|
-
})
|
|
701
|
-
.finally(function () { return _this.loading.hide(); });
|
|
702
|
-
return [2 /*return*/];
|
|
703
|
-
}
|
|
704
|
-
});
|
|
705
|
-
});
|
|
706
|
-
};
|
|
707
|
-
IDEASignUpPage.prototype.goToResendLink = function () {
|
|
708
|
-
this.navCtrl.navigateForward(['auth/resend-link']);
|
|
709
|
-
};
|
|
710
|
-
IDEASignUpPage.prototype.goToAuth = function () {
|
|
711
|
-
this.navCtrl.navigateBack(['auth']);
|
|
712
|
-
};
|
|
713
|
-
return IDEASignUpPage;
|
|
714
|
-
}());
|
|
715
|
-
IDEASignUpPage.decorators = [
|
|
716
|
-
{ type: core.Component, args: [{
|
|
717
|
-
selector: 'idea-sign-up',
|
|
718
|
-
template: "<ion-content>\n <form class=\"flexBox\">\n <ion-card class=\"authCard\">\n <ion-card-header>\n <ion-card-title color=\"primary\">{{ 'IDEA_AUTH.NEW_ACCOUNT' | translate }}</ion-card-title>\n <ion-card-subtitle>{{ 'IDEA_AUTH.REGISTER_A_NEW_ACCOUNT_TO_THE_SYSTEM' | translate }}</ion-card-subtitle>\n </ion-card-header>\n <ion-card-content>\n <p class=\"errorBox\" *ngIf=\"errorMsg\">\n <b> {{ 'IDEA_AUTH.ERROR' | translate }}. </b>\n {{ errorMsg }}\n </p>\n <ion-item>\n <ion-label position=\"inline\">\n <ion-icon name=\"person-circle\" color=\"primary\"> </ion-icon>\n </ion-label>\n <ion-input\n type=\"email\"\n inputmode=\"email\"\n pattern=\"[A-Za-z0-9._%+-]{2,}@[a-zA-Z-_.]{2,}[.]{1}[a-zA-Z]{2,}\"\n spellcheck=\"false\"\n autocorrect=\"off\"\n autocapitalize=\"off\"\n autocomplete=\"off\"\n [placeholder]=\"t._('IDEA_AUTH.EMAIL')\"\n [title]=\"t._('IDEA_AUTH.REGISTRATION_EMAIL_HINT')\"\n [ngModelOptions]=\"{ standalone: true }\"\n [(ngModel)]=\"email\"\n (keyup.enter)=\"register()\"\n ></ion-input>\n </ion-item>\n <ion-item>\n <ion-label position=\"inline\">\n <ion-icon name=\"key\" color=\"primary\"></ion-icon>\n </ion-label>\n <ion-input\n type=\"password\"\n pattern=\".{8,}\"\n spellcheck=\"false\"\n autocorrect=\"off\"\n autocapitalize=\"off\"\n autocomplete=\"off\"\n [clearOnEdit]=\"false\"\n [placeholder]=\"t._('IDEA_AUTH.PASSWORD')\"\n [title]=\"t._('IDEA_AUTH.CHOOSE_A_PASSWORD')\"\n [ngModelOptions]=\"{ standalone: true }\"\n [(ngModel)]=\"password\"\n (keyup.enter)=\"register()\"\n ></ion-input>\n </ion-item>\n <ion-row\n class=\"agreementsAcceptanceRow\"\n *ngIf=\"t._('IDEA_VARIABLES.TERMS_AND_CONDITIONS_URL') || t._('IDEA_VARIABLES.PRIVACY_POLICY_URL')\"\n >\n <ion-col>\n <ion-checkbox\n size=\"small\"\n [ngModelOptions]=\"{ standalone: true }\"\n [(ngModel)]=\"agreementsCheck\"\n ></ion-checkbox>\n {{ 'IDEA_AUTH.AGREEMENTS_CHECK_REGISTRATION' | translate }}:\n <a\n ion-text\n color=\"primary\"\n target=\"_blank\"\n *ngIf=\"t._('IDEA_VARIABLES.TERMS_AND_CONDITIONS_URL')\"\n [title]=\"t._('IDEA_AUTH.TERMS_AND_CONDITIONS_HINT')\"\n [href]=\"t._('IDEA_VARIABLES.TERMS_AND_CONDITIONS_URL')\"\n >\n {{ 'IDEA_AUTH.TERMS_AND_CONDITIONS' | translate }}\n </a>\n <ion-text\n *ngIf=\"\n t._('IDEA_VARIABLES.PRIVACY_POLICY_URL') && t._('IDEA_VARIABLES.TERMS_AND_CONDITIONS_URL')\n \"\n >\n &\n </ion-text>\n <a\n ion-text\n color=\"primary\"\n target=\"_blank\"\n *ngIf=\"t._('IDEA_VARIABLES.PRIVACY_POLICY_URL')\"\n [title]=\"t._('IDEA_AUTH.PRIVACY_POLICY_HINT')\"\n [href]=\"t._('IDEA_VARIABLES.PRIVACY_POLICY_URL')\"\n >\n {{ 'IDEA_AUTH.PRIVACY_POLICY' | translate }}\n </a>\n </ion-col>\n </ion-row>\n <ion-button\n expand=\"block\"\n [disabled]=\"!agreementsCheck\"\n [title]=\"t._('IDEA_AUTH.CREATE_AN_ACCOUNT_HINT')\"\n (click)=\"register()\"\n >\n {{ 'IDEA_AUTH.CREATE_AN_ACCOUNT' | translate }}\n </ion-button>\n <ion-button\n fill=\"clear\"\n expand=\"block\"\n class=\"smallCaseButton\"\n [title]=\"t._('IDEA_AUTH.HAVEN_T_RECEIVED_CONFIRMATION_LINK_HINT')\"\n (click)=\"goToResendLink()\"\n >\n {{ 'IDEA_AUTH.HAVEN_T_RECEIVED_CONFIRMATION_LINK' | translate }}\n </ion-button>\n <ion-button\n fill=\"clear\"\n expand=\"block\"\n class=\"smallCaseButton\"\n [title]=\"t._('IDEA_AUTH.BACK_TO_SIGN_IN_HINT')\"\n (click)=\"goToAuth()\"\n >\n {{ 'IDEA_AUTH.BACK_TO_SIGN_IN' | translate }}\n </ion-button>\n </ion-card-content>\n </ion-card>\n </form>\n</ion-content>\n",
|
|
719
|
-
styles: [".flexBox{background:var(--ion-color-white-shade)}.authCard{min-width:400px;max-width:550px;margin:0 10px;padding:20px;background-color:var(--ion-color-white);border:1px solid var(--ion-color-light);border-radius:10px;box-shadow:none;text-align:center}.authCard ion-img{width:150px;display:block;margin:0 auto}.authCard ion-card-title{font-family:auth-title;font-size:3em}.authCard ion-card-subtitle{font-family:auth-title;font-size:1.2em}.authCard ion-card-content{padding-top:16px}.authCard ion-card-content .errorBox{padding-left:10px;margin-bottom:20px;text-align:left;border-left:2px solid var(--ion-color-danger)}.authCard ion-card-content ion-item{--ion-item-background:var(--ion-color-white);--border-color:var(--ion-color-light)}.authCard ion-card-content ion-icon{padding-top:4px;padding-right:5px;font-size:1.3em}.authCard ion-card-content .agreementsAcceptanceRow{margin-top:15px;font-size:.9em}.authCard ion-card-content .agreementsAcceptanceRow ion-checkbox{vertical-align:bottom;margin-right:3px}.authCard ion-card-content ion-button{margin-top:15px}.authCard ion-card-content .smallCaseButton{text-transform:none;letter-spacing:normal;font-size:1em}@media only screen and (max-width:500px){.authCard{background-color:transparent;border:none}}.ideaLogo{width:65px;margin:40px auto 0;cursor:pointer}"]
|
|
720
|
-
},] }
|
|
721
|
-
];
|
|
722
|
-
IDEASignUpPage.ctorParameters = function () { return [
|
|
723
|
-
{ type: angular.NavController },
|
|
724
|
-
{ type: common.IDEATinCanService },
|
|
725
|
-
{ type: common.IDEAMessageService },
|
|
726
|
-
{ type: common.IDEALoadingService },
|
|
727
|
-
{ type: IDEAAuthService },
|
|
728
|
-
{ type: common.IDEATranslationsService }
|
|
729
|
-
]; };
|
|
730
|
-
|
|
731
|
-
var IDEANewPasswordPage = /** @class */ (function () {
|
|
732
|
-
function IDEANewPasswordPage(navCtrl, tc, message, loading, auth, t) {
|
|
733
|
-
this.navCtrl = navCtrl;
|
|
734
|
-
this.tc = tc;
|
|
735
|
-
this.message = message;
|
|
736
|
-
this.loading = loading;
|
|
737
|
-
this.auth = auth;
|
|
738
|
-
this.t = t;
|
|
739
|
-
}
|
|
740
|
-
IDEANewPasswordPage.prototype.ngOnInit = function () {
|
|
741
|
-
this.email = this.tc.get('email', true);
|
|
742
|
-
this.password = this.tc.get('password', true);
|
|
743
|
-
if (!this.email || !this.password)
|
|
744
|
-
this.goToAuth();
|
|
745
|
-
};
|
|
746
|
-
IDEANewPasswordPage.prototype.confirmNewPassword = function () {
|
|
747
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
748
|
-
var _this = this;
|
|
749
|
-
return __generator(this, function (_a) {
|
|
750
|
-
switch (_a.label) {
|
|
751
|
-
case 0:
|
|
752
|
-
this.errorMsg = null;
|
|
753
|
-
return [4 /*yield*/, this.loading.show()];
|
|
754
|
-
case 1:
|
|
755
|
-
_a.sent();
|
|
756
|
-
this.auth
|
|
757
|
-
.confirmNewPassword(this.email, this.password, this.newPassword)
|
|
758
|
-
.then(function () { return window.location.assign(''); })
|
|
759
|
-
.catch(function () {
|
|
760
|
-
_this.errorMsg = _this.t._('IDEA_AUTH.PASSWORD_POLICY_VIOLATION', { n: 8 });
|
|
761
|
-
_this.message.error(_this.errorMsg, true);
|
|
762
|
-
})
|
|
763
|
-
.finally(function () { return _this.loading.hide(); });
|
|
764
|
-
return [2 /*return*/];
|
|
765
|
-
}
|
|
766
|
-
});
|
|
767
|
-
});
|
|
768
|
-
};
|
|
769
|
-
IDEANewPasswordPage.prototype.goToAuth = function () {
|
|
770
|
-
this.navCtrl.navigateBack(['auth']);
|
|
771
|
-
};
|
|
772
|
-
return IDEANewPasswordPage;
|
|
773
|
-
}());
|
|
774
|
-
IDEANewPasswordPage.decorators = [
|
|
775
|
-
{ type: core.Component, args: [{
|
|
776
|
-
selector: 'idea-new-password',
|
|
777
|
-
template: "<ion-content>\n <form class=\"flexBox\">\n <ion-card class=\"authCard\">\n <ion-card-header>\n <ion-card-title color=\"primary\">{{ 'IDEA_AUTH.CHOOSE_A_PASSWORD' | translate }}</ion-card-title>\n <ion-card-subtitle>{{ 'IDEA_AUTH.YOU_NEED_TO_CHOOSE_A_NEW_PASSWORD' | translate }}</ion-card-subtitle>\n </ion-card-header>\n <ion-card-content>\n <p class=\"errorBox\" *ngIf=\"errorMsg\">\n <b> {{ 'IDEA_AUTH.ERROR' | translate }}. </b>\n {{ errorMsg }}\n </p>\n <ion-item>\n <ion-label position=\"inline\">\n <ion-icon name=\"key\" color=\"primary\"></ion-icon>\n </ion-label>\n <ion-input\n type=\"password\"\n pattern=\".{8,}\"\n spellcheck=\"false\"\n autocorrect=\"off\"\n autocapitalize=\"off\"\n autocomplete=\"new-password\"\n [clearOnEdit]=\"false\"\n [placeholder]=\"t._('IDEA_AUTH.PASSWORD')\"\n [title]=\"t._('IDEA_AUTH.CHOOSE_A_PASSWORD')\"\n [ngModelOptions]=\"{ standalone: true }\"\n [(ngModel)]=\"newPassword\"\n (keyup.enter)=\"confirmNewPassword()\"\n ></ion-input>\n </ion-item>\n <ion-button expand=\"block\" [title]=\"t._('IDEA_AUTH.CONFIRM_NEW_PASSWORD_HINT')\" (click)=\"confirmNewPassword()\">\n {{ 'IDEA_AUTH.CONFIRM_NEW_PASSWORD' | translate }}\n </ion-button>\n <ion-button\n fill=\"clear\"\n expand=\"block\"\n class=\"smallCaseButton\"\n [title]=\"t._('IDEA_AUTH.BACK_TO_SIGN_IN_HINT')\"\n (click)=\"goToAuth()\"\n >\n {{ 'IDEA_AUTH.BACK_TO_SIGN_IN' | translate }}\n </ion-button>\n </ion-card-content>\n </ion-card>\n </form>\n</ion-content>\n",
|
|
778
|
-
styles: [".flexBox{background:var(--ion-color-white-shade)}.authCard{min-width:400px;max-width:550px;margin:0 10px;padding:20px;background-color:var(--ion-color-white);border:1px solid var(--ion-color-light);border-radius:10px;box-shadow:none;text-align:center}.authCard ion-img{width:150px;display:block;margin:0 auto}.authCard ion-card-title{font-family:auth-title;font-size:3em}.authCard ion-card-subtitle{font-family:auth-title;font-size:1.2em}.authCard ion-card-content{padding-top:16px}.authCard ion-card-content .errorBox{padding-left:10px;margin-bottom:20px;text-align:left;border-left:2px solid var(--ion-color-danger)}.authCard ion-card-content ion-item{--ion-item-background:var(--ion-color-white);--border-color:var(--ion-color-light)}.authCard ion-card-content ion-icon{padding-top:4px;padding-right:5px;font-size:1.3em}.authCard ion-card-content .agreementsAcceptanceRow{margin-top:15px;font-size:.9em}.authCard ion-card-content .agreementsAcceptanceRow ion-checkbox{vertical-align:bottom;margin-right:3px}.authCard ion-card-content ion-button{margin-top:15px}.authCard ion-card-content .smallCaseButton{text-transform:none;letter-spacing:normal;font-size:1em}@media only screen and (max-width:500px){.authCard{background-color:transparent;border:none}}.ideaLogo{width:65px;margin:40px auto 0;cursor:pointer}"]
|
|
779
|
-
},] }
|
|
780
|
-
];
|
|
781
|
-
IDEANewPasswordPage.ctorParameters = function () { return [
|
|
782
|
-
{ type: angular.NavController },
|
|
783
|
-
{ type: common.IDEATinCanService },
|
|
784
|
-
{ type: common.IDEAMessageService },
|
|
785
|
-
{ type: common.IDEALoadingService },
|
|
786
|
-
{ type: IDEAAuthService },
|
|
787
|
-
{ type: common.IDEATranslationsService }
|
|
788
|
-
]; };
|
|
789
|
-
|
|
790
|
-
var IDEAResendLinkPage = /** @class */ (function () {
|
|
791
|
-
function IDEAResendLinkPage(navCtrl, message, loading, auth, t) {
|
|
792
|
-
this.navCtrl = navCtrl;
|
|
793
|
-
this.message = message;
|
|
794
|
-
this.loading = loading;
|
|
795
|
-
this.auth = auth;
|
|
796
|
-
this.t = t;
|
|
797
|
-
}
|
|
798
|
-
IDEAResendLinkPage.prototype.resendConfirmationLink = function () {
|
|
799
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
800
|
-
var _this = this;
|
|
801
|
-
return __generator(this, function (_a) {
|
|
802
|
-
switch (_a.label) {
|
|
803
|
-
case 0:
|
|
804
|
-
this.errorMsg = null;
|
|
805
|
-
if (!this.email) {
|
|
806
|
-
this.errorMsg = this.t._('IDEA_AUTH.VALID_EMAIL_OBLIGATORY');
|
|
807
|
-
this.message.error('IDEA_AUTH.SENDING_FAILED');
|
|
808
|
-
return [2 /*return*/];
|
|
809
|
-
}
|
|
810
|
-
return [4 /*yield*/, this.loading.show()];
|
|
811
|
-
case 1:
|
|
812
|
-
_a.sent();
|
|
813
|
-
this.auth
|
|
814
|
-
.resendConfirmationCode(this.email)
|
|
815
|
-
.then(function () {
|
|
816
|
-
_this.message.success('IDEA_AUTH.CONFIRMATION_LINK_SENT');
|
|
817
|
-
_this.goToAuth();
|
|
818
|
-
})
|
|
819
|
-
.catch(function () {
|
|
820
|
-
_this.errorMsg = _this.t._('IDEA_AUTH.IS_THE_EMAIL_CORRECT');
|
|
821
|
-
_this.message.error('IDEA_AUTH.SENDING_FAILED');
|
|
822
|
-
})
|
|
823
|
-
.finally(function () { return _this.loading.hide(); });
|
|
824
|
-
return [2 /*return*/];
|
|
825
|
-
}
|
|
826
|
-
});
|
|
827
|
-
});
|
|
828
|
-
};
|
|
829
|
-
IDEAResendLinkPage.prototype.goToAuth = function () {
|
|
830
|
-
this.navCtrl.navigateBack(['auth']);
|
|
831
|
-
};
|
|
832
|
-
return IDEAResendLinkPage;
|
|
833
|
-
}());
|
|
834
|
-
IDEAResendLinkPage.decorators = [
|
|
835
|
-
{ type: core.Component, args: [{
|
|
836
|
-
selector: 'idea-resend-link',
|
|
837
|
-
template: "<ion-content>\n <form class=\"flexBox\">\n <ion-card class=\"authCard\">\n <ion-card-header>\n <ion-card-title color=\"primary\">{{ 'IDEA_AUTH.CONFIRM_ACCOUNT' | translate }}</ion-card-title>\n <ion-card-subtitle>{{ 'IDEA_AUTH.RESEND_CONFIRMATION_LINK_HINT' | translate }}</ion-card-subtitle>\n </ion-card-header>\n <ion-card-content>\n <p class=\"errorBox\" *ngIf=\"errorMsg\">\n <b> {{ 'IDEA_AUTH.ERROR' | translate }}. </b>\n {{ errorMsg }}\n </p>\n <ion-item>\n <ion-label position=\"inline\">\n <ion-icon name=\"person-circle\" color=\"primary\"> </ion-icon>\n </ion-label>\n <ion-input\n type=\"email\"\n inputmode=\"email\"\n pattern=\"[A-Za-z0-9._%+-]{2,}@[a-zA-Z-_.]{2,}[.]{1}[a-zA-Z]{2,}\"\n spellcheck=\"false\"\n autocorrect=\"off\"\n autocapitalize=\"off\"\n autocomplete=\"email\"\n [placeholder]=\"t._('IDEA_AUTH.EMAIL')\"\n [title]=\"t._('IDEA_AUTH.EMAIL_HINT')\"\n [ngModelOptions]=\"{ standalone: true }\"\n [(ngModel)]=\"email\"\n (keyup.enter)=\"resendConfirmationLink()\"\n ></ion-input>\n </ion-item>\n <ion-button expand=\"block\" [title]=\"t._('IDEA_AUTH.RESEND_LINK_HINT')\" (click)=\"resendConfirmationLink()\">\n {{ 'IDEA_AUTH.RESEND_LINK' | translate }}\n </ion-button>\n <ion-button\n fill=\"clear\"\n expand=\"block\"\n class=\"smallCaseButton\"\n [title]=\"t._('IDEA_AUTH.BACK_TO_SIGN_IN_HINT')\"\n (click)=\"goToAuth()\"\n >\n {{ 'IDEA_AUTH.BACK_TO_SIGN_IN' | translate }}\n </ion-button>\n </ion-card-content>\n </ion-card>\n </form>\n</ion-content>\n",
|
|
838
|
-
styles: [".flexBox{background:var(--ion-color-white-shade)}.authCard{min-width:400px;max-width:550px;margin:0 10px;padding:20px;background-color:var(--ion-color-white);border:1px solid var(--ion-color-light);border-radius:10px;box-shadow:none;text-align:center}.authCard ion-img{width:150px;display:block;margin:0 auto}.authCard ion-card-title{font-family:auth-title;font-size:3em}.authCard ion-card-subtitle{font-family:auth-title;font-size:1.2em}.authCard ion-card-content{padding-top:16px}.authCard ion-card-content .errorBox{padding-left:10px;margin-bottom:20px;text-align:left;border-left:2px solid var(--ion-color-danger)}.authCard ion-card-content ion-item{--ion-item-background:var(--ion-color-white);--border-color:var(--ion-color-light)}.authCard ion-card-content ion-icon{padding-top:4px;padding-right:5px;font-size:1.3em}.authCard ion-card-content .agreementsAcceptanceRow{margin-top:15px;font-size:.9em}.authCard ion-card-content .agreementsAcceptanceRow ion-checkbox{vertical-align:bottom;margin-right:3px}.authCard ion-card-content ion-button{margin-top:15px}.authCard ion-card-content .smallCaseButton{text-transform:none;letter-spacing:normal;font-size:1em}@media only screen and (max-width:500px){.authCard{background-color:transparent;border:none}}.ideaLogo{width:65px;margin:40px auto 0;cursor:pointer}"]
|
|
839
|
-
},] }
|
|
840
|
-
];
|
|
841
|
-
IDEAResendLinkPage.ctorParameters = function () { return [
|
|
842
|
-
{ type: angular.NavController },
|
|
843
|
-
{ type: common.IDEAMessageService },
|
|
844
|
-
{ type: common.IDEALoadingService },
|
|
845
|
-
{ type: IDEAAuthService },
|
|
846
|
-
{ type: common.IDEATranslationsService }
|
|
847
|
-
]; };
|
|
848
|
-
|
|
849
|
-
var IDEAForgotPasswordPage = /** @class */ (function () {
|
|
850
|
-
function IDEAForgotPasswordPage(navCtrl, message, loading, auth, t) {
|
|
851
|
-
this.navCtrl = navCtrl;
|
|
852
|
-
this.message = message;
|
|
853
|
-
this.loading = loading;
|
|
854
|
-
this.auth = auth;
|
|
855
|
-
this.t = t;
|
|
856
|
-
}
|
|
857
|
-
IDEAForgotPasswordPage.prototype.forgotPassword = function () {
|
|
858
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
859
|
-
var _this = this;
|
|
860
|
-
return __generator(this, function (_a) {
|
|
861
|
-
switch (_a.label) {
|
|
862
|
-
case 0: return [4 /*yield*/, this.loading.show()];
|
|
863
|
-
case 1:
|
|
864
|
-
_a.sent();
|
|
865
|
-
this.auth
|
|
866
|
-
.forgotPassword(this.email)
|
|
867
|
-
.then(function () {
|
|
868
|
-
_this.message.success('IDEA_AUTH.PASSWORD_RESET_CODE_SENT');
|
|
869
|
-
_this.goToConfirmPassword();
|
|
870
|
-
})
|
|
871
|
-
.catch(function () { return _this.message.error('IDEA_AUTH.USER_NOT_FOUND'); })
|
|
872
|
-
.finally(function () { return _this.loading.hide(); });
|
|
873
|
-
return [2 /*return*/];
|
|
874
|
-
}
|
|
875
|
-
});
|
|
876
|
-
});
|
|
877
|
-
};
|
|
878
|
-
IDEAForgotPasswordPage.prototype.goToConfirmPassword = function () {
|
|
879
|
-
this.navCtrl.navigateForward(['auth/confirm-password'], { queryParams: { email: this.email || null } });
|
|
880
|
-
};
|
|
881
|
-
IDEAForgotPasswordPage.prototype.goToAuth = function () {
|
|
882
|
-
this.navCtrl.navigateBack(['auth']);
|
|
883
|
-
};
|
|
884
|
-
return IDEAForgotPasswordPage;
|
|
885
|
-
}());
|
|
886
|
-
IDEAForgotPasswordPage.decorators = [
|
|
887
|
-
{ type: core.Component, args: [{
|
|
888
|
-
selector: 'idea-forgot-password',
|
|
889
|
-
template: "<ion-content>\n <form class=\"flexBox\">\n <ion-card class=\"authCard\">\n <ion-card-header>\n <ion-card-title color=\"primary\">{{ 'IDEA_AUTH.PASSWORD_RESET' | translate }}</ion-card-title>\n <ion-card-subtitle>{{ 'IDEA_AUTH.PASSWORD_RESET_HINT' | translate }}</ion-card-subtitle>\n </ion-card-header>\n <ion-card-content>\n <ion-item>\n <ion-label position=\"inline\">\n <ion-icon name=\"person-circle\" color=\"primary\"> </ion-icon>\n </ion-label>\n <ion-input\n type=\"email\"\n inputmode=\"email\"\n pattern=\"[A-Za-z0-9._%+-]{2,}@[a-zA-Z-_.]{2,}[.]{1}[a-zA-Z]{2,}\"\n spellcheck=\"false\"\n autocorrect=\"off\"\n autocapitalize=\"off\"\n autocomplete=\"email\"\n [placeholder]=\"t._('IDEA_AUTH.EMAIL')\"\n [title]=\"t._('IDEA_AUTH.EMAIL_HINT')\"\n [ngModelOptions]=\"{ standalone: true }\"\n [(ngModel)]=\"email\"\n (keyup.enter)=\"forgotPassword()\"\n ></ion-input>\n </ion-item>\n <ion-button expand=\"block\" [title]=\"t._('IDEA_AUTH.RESET_MY_PASSWORD_HINT')\" (click)=\"forgotPassword()\">\n {{ 'IDEA_AUTH.RESET_MY_PASSWORD' | translate }}\n </ion-button>\n <ion-button\n fill=\"clear\"\n expand=\"block\"\n class=\"smallCaseButton\"\n [title]=\"t._('IDEA_AUTH.ALREADY_HAVE_A_RESET_CODE_HINT')\"\n (click)=\"goToConfirmPassword()\"\n >\n {{ 'IDEA_AUTH.ALREADY_HAVE_A_RESET_CODE' | translate }}\n </ion-button>\n <ion-button\n fill=\"clear\"\n expand=\"block\"\n class=\"smallCaseButton\"\n [title]=\"t._('IDEA_AUTH.BACK_TO_SIGN_IN_HINT')\"\n (click)=\"goToAuth()\"\n >\n {{ 'IDEA_AUTH.BACK_TO_SIGN_IN' | translate }}\n </ion-button>\n </ion-card-content>\n </ion-card>\n </form>\n</ion-content>\n",
|
|
890
|
-
styles: [".flexBox{background:var(--ion-color-white-shade)}.authCard{min-width:400px;max-width:550px;margin:0 10px;padding:20px;background-color:var(--ion-color-white);border:1px solid var(--ion-color-light);border-radius:10px;box-shadow:none;text-align:center}.authCard ion-img{width:150px;display:block;margin:0 auto}.authCard ion-card-title{font-family:auth-title;font-size:3em}.authCard ion-card-subtitle{font-family:auth-title;font-size:1.2em}.authCard ion-card-content{padding-top:16px}.authCard ion-card-content .errorBox{padding-left:10px;margin-bottom:20px;text-align:left;border-left:2px solid var(--ion-color-danger)}.authCard ion-card-content ion-item{--ion-item-background:var(--ion-color-white);--border-color:var(--ion-color-light)}.authCard ion-card-content ion-icon{padding-top:4px;padding-right:5px;font-size:1.3em}.authCard ion-card-content .agreementsAcceptanceRow{margin-top:15px;font-size:.9em}.authCard ion-card-content .agreementsAcceptanceRow ion-checkbox{vertical-align:bottom;margin-right:3px}.authCard ion-card-content ion-button{margin-top:15px}.authCard ion-card-content .smallCaseButton{text-transform:none;letter-spacing:normal;font-size:1em}@media only screen and (max-width:500px){.authCard{background-color:transparent;border:none}}.ideaLogo{width:65px;margin:40px auto 0;cursor:pointer}"]
|
|
891
|
-
},] }
|
|
892
|
-
];
|
|
893
|
-
IDEAForgotPasswordPage.ctorParameters = function () { return [
|
|
894
|
-
{ type: angular.NavController },
|
|
895
|
-
{ type: common.IDEAMessageService },
|
|
896
|
-
{ type: common.IDEALoadingService },
|
|
897
|
-
{ type: IDEAAuthService },
|
|
898
|
-
{ type: common.IDEATranslationsService }
|
|
899
|
-
]; };
|
|
900
|
-
|
|
901
|
-
var IDEAConfirmPasswordPage = /** @class */ (function () {
|
|
902
|
-
function IDEAConfirmPasswordPage(navCtrl, route, message, loading, auth, t) {
|
|
903
|
-
this.navCtrl = navCtrl;
|
|
904
|
-
this.route = route;
|
|
905
|
-
this.message = message;
|
|
906
|
-
this.loading = loading;
|
|
907
|
-
this.auth = auth;
|
|
908
|
-
this.t = t;
|
|
909
|
-
this.email = this.route.snapshot.queryParamMap.get('email') || null;
|
|
910
|
-
if (!this.email && this.route.snapshot.queryParams.user)
|
|
911
|
-
this.email = decodeURIComponent(this.route.snapshot.queryParams.user);
|
|
912
|
-
this.code = this.route.snapshot.queryParams.code;
|
|
913
|
-
}
|
|
914
|
-
IDEAConfirmPasswordPage.prototype.confirmPassword = function () {
|
|
915
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
916
|
-
var _this = this;
|
|
917
|
-
return __generator(this, function (_a) {
|
|
918
|
-
switch (_a.label) {
|
|
919
|
-
case 0:
|
|
920
|
-
this.errorMsg = null;
|
|
921
|
-
return [4 /*yield*/, this.loading.show()];
|
|
922
|
-
case 1:
|
|
923
|
-
_a.sent();
|
|
924
|
-
this.auth
|
|
925
|
-
.confirmPassword(this.email, this.code, this.newPassword)
|
|
926
|
-
.then(function () {
|
|
927
|
-
_this.message.success('IDEA_AUTH.PASSWORD_CHANGED');
|
|
928
|
-
_this.goToAuth();
|
|
929
|
-
})
|
|
930
|
-
.catch(function () {
|
|
931
|
-
_this.errorMsg = _this.t._('IDEA_AUTH.CONFIRM_PASSWORD_ERROR', { n: 8 });
|
|
932
|
-
_this.message.error(_this.errorMsg, true);
|
|
933
|
-
})
|
|
934
|
-
.finally(function () { return _this.loading.hide(); });
|
|
935
|
-
return [2 /*return*/];
|
|
936
|
-
}
|
|
937
|
-
});
|
|
938
|
-
});
|
|
939
|
-
};
|
|
940
|
-
IDEAConfirmPasswordPage.prototype.goToForgotPassword = function () {
|
|
941
|
-
this.navCtrl.navigateBack(['auth/forgot-password']);
|
|
942
|
-
};
|
|
943
|
-
IDEAConfirmPasswordPage.prototype.goToAuth = function () {
|
|
944
|
-
this.navCtrl.navigateBack(['auth']);
|
|
945
|
-
};
|
|
946
|
-
return IDEAConfirmPasswordPage;
|
|
947
|
-
}());
|
|
948
|
-
IDEAConfirmPasswordPage.decorators = [
|
|
949
|
-
{ type: core.Component, args: [{
|
|
950
|
-
selector: 'idea-confirm-password',
|
|
951
|
-
template: "<ion-content>\n <form class=\"flexBox\">\n <ion-card class=\"authCard\">\n <ion-card-header>\n <ion-card-title color=\"primary\">{{ 'IDEA_AUTH.CHANGE_THE_PASSWORD' | translate }}</ion-card-title>\n <ion-card-subtitle>{{ 'IDEA_AUTH.CHANGE_THE_PASSWORD_HINT' | translate: { n: 8 } }}</ion-card-subtitle>\n </ion-card-header>\n <ion-card-content>\n <p class=\"errorBox\" *ngIf=\"errorMsg\">\n <b> {{ 'IDEA_AUTH.ERROR' | translate }}. </b>\n {{ errorMsg }}\n </p>\n <ion-item>\n <ion-label position=\"inline\">\n <ion-icon name=\"person-circle\" color=\"primary\"> </ion-icon>\n </ion-label>\n <ion-input\n type=\"email\"\n inputmode=\"email\"\n pattern=\"[A-Za-z0-9._%+-]{2,}@[a-zA-Z-_.]{2,}[.]{1}[a-zA-Z]{2,}\"\n spellcheck=\"false\"\n autocorrect=\"off\"\n autocapitalize=\"off\"\n autocomplete=\"email\"\n [placeholder]=\"t._('IDEA_AUTH.EMAIL')\"\n [title]=\"t._('IDEA_AUTH.EMAIL_HINT')\"\n [ngModelOptions]=\"{ standalone: true }\"\n [(ngModel)]=\"email\"\n (keyup.enter)=\"confirmPassword()\"\n ></ion-input>\n </ion-item>\n <ion-item>\n <ion-label position=\"inline\">\n <ion-icon name=\"disc\" color=\"primary\"></ion-icon>\n </ion-label>\n <ion-input\n type=\"text\"\n spellcheck=\"false\"\n autocorrect=\"off\"\n autocapitalize=\"off\"\n autocomplete=\"off\"\n [placeholder]=\"t._('IDEA_AUTH.RESET_CODE')\"\n [title]=\"t._('IDEA_AUTH.RESET_CODE_HINT')\"\n [ngModelOptions]=\"{ standalone: true }\"\n [(ngModel)]=\"code\"\n (keyup.enter)=\"confirmPassword()\"\n ></ion-input>\n </ion-item>\n <ion-item>\n <ion-label position=\"inline\">\n <ion-icon name=\"key\" color=\"primary\"></ion-icon>\n </ion-label>\n <ion-input\n type=\"password\"\n pattern=\".{8,}\"\n spellcheck=\"false\"\n autocorrect=\"off\"\n autocapitalize=\"off\"\n autocomplete=\"new-password\"\n [clearOnEdit]=\"false\"\n [placeholder]=\"t._('IDEA_AUTH.NEW_PASSWORD')\"\n [title]=\"t._('IDEA_AUTH.CHOOSE_A_PASSWORD')\"\n [ngModelOptions]=\"{ standalone: true }\"\n [(ngModel)]=\"newPassword\"\n (keyup.enter)=\"confirmPassword()\"\n ></ion-input>\n </ion-item>\n <ion-button expand=\"block\" [title]=\"t._('IDEA_AUTH.CHANGE_MY_PASSWORD_HINT')\" (click)=\"confirmPassword()\">\n {{ 'IDEA_AUTH.CHANGE_MY_PASSWORD' | translate }}\n </ion-button>\n <ion-button\n fill=\"clear\"\n expand=\"block\"\n class=\"smallCaseButton\"\n [title]=\"t._('IDEA_AUTH.HAVEN_T_RECEIVED_A_RESET_CODE_HINT')\"\n (click)=\"goToForgotPassword()\"\n >\n {{ 'IDEA_AUTH.HAVEN_T_RECEIVED_A_RESET_CODE' | translate }}\n </ion-button>\n <ion-button\n fill=\"clear\"\n expand=\"block\"\n class=\"smallCaseButton\"\n [title]=\"t._('IDEA_AUTH.BACK_TO_SIGN_IN_HINT')\"\n (click)=\"goToAuth()\"\n >\n {{ 'IDEA_AUTH.BACK_TO_SIGN_IN' | translate }}\n </ion-button>\n </ion-card-content>\n </ion-card>\n </form>\n</ion-content>\n",
|
|
952
|
-
styles: [".flexBox{background:var(--ion-color-white-shade)}.authCard{min-width:400px;max-width:550px;margin:0 10px;padding:20px;background-color:var(--ion-color-white);border:1px solid var(--ion-color-light);border-radius:10px;box-shadow:none;text-align:center}.authCard ion-img{width:150px;display:block;margin:0 auto}.authCard ion-card-title{font-family:auth-title;font-size:3em}.authCard ion-card-subtitle{font-family:auth-title;font-size:1.2em}.authCard ion-card-content{padding-top:16px}.authCard ion-card-content .errorBox{padding-left:10px;margin-bottom:20px;text-align:left;border-left:2px solid var(--ion-color-danger)}.authCard ion-card-content ion-item{--ion-item-background:var(--ion-color-white);--border-color:var(--ion-color-light)}.authCard ion-card-content ion-icon{padding-top:4px;padding-right:5px;font-size:1.3em}.authCard ion-card-content .agreementsAcceptanceRow{margin-top:15px;font-size:.9em}.authCard ion-card-content .agreementsAcceptanceRow ion-checkbox{vertical-align:bottom;margin-right:3px}.authCard ion-card-content ion-button{margin-top:15px}.authCard ion-card-content .smallCaseButton{text-transform:none;letter-spacing:normal;font-size:1em}@media only screen and (max-width:500px){.authCard{background-color:transparent;border:none}}.ideaLogo{width:65px;margin:40px auto 0;cursor:pointer}"]
|
|
953
|
-
},] }
|
|
954
|
-
];
|
|
955
|
-
IDEAConfirmPasswordPage.ctorParameters = function () { return [
|
|
956
|
-
{ type: angular.NavController },
|
|
957
|
-
{ type: router.ActivatedRoute },
|
|
958
|
-
{ type: common.IDEAMessageService },
|
|
959
|
-
{ type: common.IDEALoadingService },
|
|
960
|
-
{ type: IDEAAuthService },
|
|
961
|
-
{ type: common.IDEATranslationsService }
|
|
962
|
-
]; };
|
|
963
|
-
|
|
964
|
-
var IDEAAuthModule = /** @class */ (function () {
|
|
965
|
-
function IDEAAuthModule() {
|
|
966
|
-
}
|
|
967
|
-
return IDEAAuthModule;
|
|
968
|
-
}());
|
|
969
|
-
IDEAAuthModule.decorators = [
|
|
970
|
-
{ type: core.NgModule, args: [{
|
|
971
|
-
imports: [
|
|
972
|
-
common$1.CommonModule,
|
|
973
|
-
forms.FormsModule,
|
|
974
|
-
angular.IonicModule,
|
|
975
|
-
common.IDEATranslationsModule,
|
|
976
|
-
router.RouterModule.forChild([
|
|
977
|
-
{ path: '', redirectTo: 'sign-in', pathMatch: 'full' },
|
|
978
|
-
{ path: 'sign-in', component: IDEASignInPage },
|
|
979
|
-
{ path: 'sign-up', component: IDEASignUpPage },
|
|
980
|
-
{ path: 'new-password', component: IDEANewPasswordPage },
|
|
981
|
-
{ path: 'resend-link', component: IDEAResendLinkPage },
|
|
982
|
-
{ path: 'forgot-password', component: IDEAForgotPasswordPage },
|
|
983
|
-
{ path: 'confirm-password', component: IDEAConfirmPasswordPage }
|
|
984
|
-
])
|
|
985
|
-
],
|
|
986
|
-
declarations: [
|
|
987
|
-
IDEASignInPage,
|
|
988
|
-
IDEASignUpPage,
|
|
989
|
-
IDEANewPasswordPage,
|
|
990
|
-
IDEAResendLinkPage,
|
|
991
|
-
IDEAForgotPasswordPage,
|
|
992
|
-
IDEAConfirmPasswordPage
|
|
993
|
-
]
|
|
994
|
-
},] }
|
|
995
|
-
];
|
|
996
|
-
|
|
997
|
-
exports.IDEAAuthModule = IDEAAuthModule;
|
|
998
|
-
exports.IDEAAuthService = IDEAAuthService;
|
|
999
|
-
exports.ɵa = IDEASignInPage;
|
|
1000
|
-
exports.ɵb = IDEASignUpPage;
|
|
1001
|
-
exports.ɵc = IDEANewPasswordPage;
|
|
1002
|
-
exports.ɵd = IDEAResendLinkPage;
|
|
1003
|
-
exports.ɵe = IDEAForgotPasswordPage;
|
|
1004
|
-
exports.ɵf = IDEAConfirmPasswordPage;
|
|
1005
|
-
|
|
1006
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1007
|
-
|
|
1008
|
-
})));
|
|
1009
|
-
//# sourceMappingURL=idea-ionic-auth.umd.js.map
|