@bravobit/bb-foundation 0.14.2 → 0.15.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/README.md +47 -47
- package/auth/bravobit-bb-foundation-auth.d.ts +5 -5
- package/auth/lib/auth.interceptor.d.ts +21 -21
- package/auth/lib/auth.module.d.ts +15 -15
- package/auth/lib/auth.service.d.ts +59 -59
- package/auth/lib/auth.session.d.ts +34 -34
- package/auth/lib/directives/authenticated.directive.d.ts +14 -14
- package/auth/lib/directives/permission.directive.d.ts +24 -24
- package/auth/lib/directives/role.directive.d.ts +16 -16
- package/auth/lib/guards/anonymous.guard.d.ts +11 -11
- package/auth/lib/guards/authenticated.guard.d.ts +11 -11
- package/auth/lib/helpers/jwt.helper.d.ts +8 -8
- package/auth/lib/helpers/mapper.helper.d.ts +23 -23
- package/auth/lib/interfaces/config.interface.d.ts +12 -12
- package/auth/lib/interfaces/mapper.interface.d.ts +19 -19
- package/auth/lib/interfaces/provider.interface.d.ts +16 -16
- package/auth/lib/interfaces/token.interface.d.ts +11 -11
- package/auth/lib/permissions.service.d.ts +14 -14
- package/auth/lib/providers/email.provider.d.ts +15 -15
- package/auth/lib/providers/verify.provider.d.ts +13 -13
- package/auth/lib/tokens/use-authorization.token.d.ts +2 -2
- package/auth/public_api.d.ts +18 -18
- package/bravobit-bb-foundation.d.ts +5 -5
- package/bundles/bravobit-bb-foundation-auth.umd.js +1400 -1402
- package/bundles/bravobit-bb-foundation-auth.umd.js.map +1 -1
- package/bundles/bravobit-bb-foundation-collections.umd.js +851 -0
- package/bundles/bravobit-bb-foundation-collections.umd.js.map +1 -0
- package/bundles/bravobit-bb-foundation-dashboard.umd.js +817 -819
- package/bundles/bravobit-bb-foundation-dashboard.umd.js.map +1 -1
- package/bundles/bravobit-bb-foundation-dialog.umd.js +649 -651
- package/bundles/bravobit-bb-foundation-dialog.umd.js.map +1 -1
- package/bundles/bravobit-bb-foundation-elements.umd.js +2651 -2653
- package/bundles/bravobit-bb-foundation-elements.umd.js.map +1 -1
- package/bundles/bravobit-bb-foundation-http.umd.js +488 -490
- package/bundles/bravobit-bb-foundation-http.umd.js.map +1 -1
- package/bundles/bravobit-bb-foundation-localize.umd.js +1208 -1210
- package/bundles/bravobit-bb-foundation-localize.umd.js.map +1 -1
- package/bundles/bravobit-bb-foundation-notifications.umd.js +743 -745
- package/bundles/bravobit-bb-foundation-notifications.umd.js.map +1 -1
- package/bundles/bravobit-bb-foundation-recaptcha.umd.js +640 -642
- package/bundles/bravobit-bb-foundation-recaptcha.umd.js.map +1 -1
- package/bundles/bravobit-bb-foundation-rxjs.umd.js +13 -13
- package/bundles/bravobit-bb-foundation-rxjs.umd.js.map +1 -1
- package/bundles/bravobit-bb-foundation-storage.umd.js +756 -758
- package/bundles/bravobit-bb-foundation-storage.umd.js.map +1 -1
- package/bundles/bravobit-bb-foundation-table.umd.js +993 -995
- package/bundles/bravobit-bb-foundation-table.umd.js.map +1 -1
- package/bundles/bravobit-bb-foundation.umd.js +1336 -1263
- package/bundles/bravobit-bb-foundation.umd.js.map +1 -1
- package/collections/bravobit-bb-foundation-collections.d.ts +5 -0
- package/collections/lib/collection.d.ts +40 -0
- package/collections/lib/collections.module.d.ts +10 -0
- package/collections/lib/components/collections-pager/collections-pager.component.d.ts +34 -0
- package/collections/lib/components/collections-viewer/collections-viewer.component.d.ts +12 -0
- package/collections/lib/components/collections.directive.d.ts +17 -0
- package/collections/lib/interfaces/collection.interface.d.ts +26 -0
- package/collections/lib/providers/api-collection.provider.d.ts +15 -0
- package/collections/lib/providers/collection.provider.d.ts +6 -0
- package/collections/lib/providers/local-collection.provider.d.ts +8 -0
- package/collections/package.json +10 -0
- package/collections/public_api.d.ts +9 -0
- package/dashboard/bravobit-bb-foundation-dashboard.d.ts +5 -5
- package/dashboard/lib/dashboard/dashboard.component.d.ts +19 -19
- package/dashboard/lib/dashboard-header/dashboard-header.component.d.ts +11 -11
- package/dashboard/lib/dashboard-menu/dashboard-menu.component.d.ts +9 -9
- package/dashboard/lib/dashboard-menu-item/dashboard-menu-item.component.d.ts +11 -11
- package/dashboard/lib/dashboard-sidebar/dashboard-sidebar.component.d.ts +21 -21
- package/dashboard/lib/dashboard-sidebar-group/dashboard-sidebar-group.component.d.ts +27 -27
- package/dashboard/lib/dashboard-sidebar-item/dashboard-sidebar-item.component.d.ts +16 -16
- package/dashboard/lib/dashboard.module.d.ts +16 -16
- package/dashboard/public_api.d.ts +8 -8
- package/dialog/bravobit-bb-foundation-dialog.d.ts +5 -5
- package/dialog/lib/dialog-actions/dialog-actions.component.d.ts +5 -5
- package/dialog/lib/dialog-confirm/dialog-confirm.component.d.ts +16 -16
- package/dialog/lib/dialog-container/dialog-container.component.d.ts +24 -24
- package/dialog/lib/dialog-header/dialog-header.component.d.ts +9 -9
- package/dialog/lib/dialog-link/dialog-link.component.d.ts +5 -5
- package/dialog/lib/dialog-modal/dialog-modal.component.d.ts +12 -12
- package/dialog/lib/dialog-overlay/dialog-overlay.component.d.ts +22 -22
- package/dialog/lib/dialog.injector.d.ts +8 -8
- package/dialog/lib/dialog.insertion.d.ts +8 -8
- package/dialog/lib/dialog.interfaces.d.ts +3 -3
- package/dialog/lib/dialog.module.d.ts +19 -19
- package/dialog/lib/dialog.ref.d.ts +8 -8
- package/dialog/lib/dialog.service.d.ts +19 -19
- package/dialog/public_api.d.ts +9 -9
- package/elements/bravobit-bb-foundation-elements.d.ts +5 -5
- package/elements/lib/avatar/avatar.component.d.ts +25 -25
- package/elements/lib/button/button.component.d.ts +23 -23
- package/elements/lib/checkbox/checkbox.component.d.ts +27 -27
- package/elements/lib/date-picker/date-picker.component.d.ts +69 -69
- package/elements/lib/directives/addon.directive.d.ts +9 -9
- package/elements/lib/directives/autosize.directive.d.ts +18 -18
- package/elements/lib/directives/focus-trap.directive.d.ts +17 -17
- package/elements/lib/directives/focus.directive.d.ts +14 -14
- package/elements/lib/directives/form-submit.directive.d.ts +17 -17
- package/elements/lib/directives/input.directive.d.ts +38 -38
- package/elements/lib/directives/template.directive.d.ts +10 -10
- package/elements/lib/dropdown/dropdown.component.d.ts +21 -21
- package/elements/lib/elements.interfaces.d.ts +25 -25
- package/elements/lib/elements.module.d.ts +116 -116
- package/elements/lib/file-picker/file-picker.component.d.ts +49 -49
- package/elements/lib/form-control/form-control.component.d.ts +21 -21
- package/elements/lib/form-error/form-error.component.d.ts +29 -29
- package/elements/lib/form-group/form-group.component.d.ts +10 -10
- package/elements/lib/icon/icon.component.d.ts +22 -22
- package/elements/lib/image-picker/image-picker.component.d.ts +38 -38
- package/elements/lib/pipes/file-image.pipe.d.ts +13 -13
- package/elements/lib/pipes/file-size.pipe.d.ts +8 -8
- package/elements/lib/pipes/relative-time.pipe.d.ts +19 -19
- package/elements/lib/spinner/spinner.component.d.ts +12 -12
- package/elements/lib/tag/tag.component.d.ts +7 -7
- package/elements/public_api.d.ts +25 -25
- package/esm2015/auth/bravobit-bb-foundation-auth.js +4 -4
- package/esm2015/auth/lib/auth.interceptor.js +95 -95
- package/esm2015/auth/lib/auth.module.js +54 -54
- package/esm2015/auth/lib/auth.service.js +299 -299
- package/esm2015/auth/lib/auth.session.js +136 -136
- package/esm2015/auth/lib/directives/authenticated.directive.js +32 -32
- package/esm2015/auth/lib/directives/permission.directive.js +81 -81
- package/esm2015/auth/lib/directives/role.directive.js +38 -38
- package/esm2015/auth/lib/guards/anonymous.guard.js +35 -35
- package/esm2015/auth/lib/guards/authenticated.guard.js +36 -36
- package/esm2015/auth/lib/helpers/jwt.helper.js +69 -69
- package/esm2015/auth/lib/helpers/mapper.helper.js +35 -35
- package/esm2015/auth/lib/interfaces/config.interface.js +3 -3
- package/esm2015/auth/lib/interfaces/mapper.interface.js +2 -2
- package/esm2015/auth/lib/interfaces/provider.interface.js +2 -2
- package/esm2015/auth/lib/interfaces/token.interface.js +2 -2
- package/esm2015/auth/lib/permissions.service.js +58 -58
- package/esm2015/auth/lib/providers/email.provider.js +26 -26
- package/esm2015/auth/lib/providers/verify.provider.js +20 -20
- package/esm2015/auth/lib/tokens/use-authorization.token.js +3 -3
- package/esm2015/auth/public_api.js +19 -19
- package/esm2015/bravobit-bb-foundation.js +4 -4
- package/esm2015/collections/bravobit-bb-foundation-collections.js +5 -0
- package/esm2015/collections/lib/collection.js +88 -0
- package/esm2015/collections/lib/collections.module.js +54 -0
- package/esm2015/collections/lib/components/collections-pager/collections-pager.component.js +136 -0
- package/esm2015/collections/lib/components/collections-viewer/collections-viewer.component.js +39 -0
- package/esm2015/collections/lib/components/collections.directive.js +43 -0
- package/esm2015/collections/lib/interfaces/collection.interface.js +2 -0
- package/esm2015/collections/lib/providers/api-collection.provider.js +69 -0
- package/esm2015/collections/lib/providers/collection.provider.js +14 -0
- package/esm2015/collections/lib/providers/local-collection.provider.js +16 -0
- package/esm2015/collections/public_api.js +10 -0
- package/esm2015/dashboard/bravobit-bb-foundation-dashboard.js +4 -4
- package/esm2015/dashboard/lib/dashboard/dashboard.component.js +64 -64
- package/esm2015/dashboard/lib/dashboard-header/dashboard-header.component.js +41 -41
- package/esm2015/dashboard/lib/dashboard-menu/dashboard-menu.component.js +39 -39
- package/esm2015/dashboard/lib/dashboard-menu-item/dashboard-menu-item.component.js +38 -38
- package/esm2015/dashboard/lib/dashboard-sidebar/dashboard-sidebar.component.js +83 -83
- package/esm2015/dashboard/lib/dashboard-sidebar-group/dashboard-sidebar-group.component.js +110 -110
- package/esm2015/dashboard/lib/dashboard-sidebar-item/dashboard-sidebar-item.component.js +71 -71
- package/esm2015/dashboard/lib/dashboard.module.js +47 -47
- package/esm2015/dashboard/public_api.js +9 -9
- package/esm2015/dialog/bravobit-bb-foundation-dialog.js +4 -4
- package/esm2015/dialog/lib/dialog-actions/dialog-actions.component.js +20 -20
- package/esm2015/dialog/lib/dialog-confirm/dialog-confirm.component.js +45 -45
- package/esm2015/dialog/lib/dialog-container/dialog-container.component.js +162 -162
- package/esm2015/dialog/lib/dialog-header/dialog-header.component.js +33 -33
- package/esm2015/dialog/lib/dialog-link/dialog-link.component.js +19 -19
- package/esm2015/dialog/lib/dialog-modal/dialog-modal.component.js +54 -54
- package/esm2015/dialog/lib/dialog-overlay/dialog-overlay.component.js +143 -143
- package/esm2015/dialog/lib/dialog.injector.js +18 -18
- package/esm2015/dialog/lib/dialog.insertion.js +16 -16
- package/esm2015/dialog/lib/dialog.interfaces.js +3 -3
- package/esm2015/dialog/lib/dialog.module.js +74 -74
- package/esm2015/dialog/lib/dialog.ref.js +22 -22
- package/esm2015/dialog/lib/dialog.service.js +77 -77
- package/esm2015/dialog/public_api.js +10 -10
- package/esm2015/elements/bravobit-bb-foundation-elements.js +4 -4
- package/esm2015/elements/lib/avatar/avatar.component.js +151 -151
- package/esm2015/elements/lib/button/button.component.js +79 -79
- package/esm2015/elements/lib/checkbox/checkbox.component.js +83 -83
- package/esm2015/elements/lib/date-picker/date-picker.component.js +322 -322
- package/esm2015/elements/lib/directives/addon.directive.js +29 -29
- package/esm2015/elements/lib/directives/autosize.directive.js +74 -74
- package/esm2015/elements/lib/directives/focus-trap.directive.js +77 -77
- package/esm2015/elements/lib/directives/focus.directive.js +39 -39
- package/esm2015/elements/lib/directives/form-submit.directive.js +53 -53
- package/esm2015/elements/lib/directives/input.directive.js +139 -139
- package/esm2015/elements/lib/directives/template.directive.js +28 -28
- package/esm2015/elements/lib/dropdown/dropdown.component.js +111 -111
- package/esm2015/elements/lib/elements.interfaces.js +4 -4
- package/esm2015/elements/lib/elements.module.js +177 -177
- package/esm2015/elements/lib/file-picker/file-picker.component.js +247 -247
- package/esm2015/elements/lib/form-control/form-control.component.js +58 -58
- package/esm2015/elements/lib/form-error/form-error.component.js +116 -116
- package/esm2015/elements/lib/form-group/form-group.component.js +27 -27
- package/esm2015/elements/lib/icon/icon.component.js +110 -110
- package/esm2015/elements/lib/image-picker/image-picker.component.js +119 -119
- package/esm2015/elements/lib/pipes/file-image.pipe.js +45 -45
- package/esm2015/elements/lib/pipes/file-size.pipe.js +28 -28
- package/esm2015/elements/lib/pipes/relative-time.pipe.js +96 -96
- package/esm2015/elements/lib/spinner/spinner.component.js +34 -34
- package/esm2015/elements/lib/tag/tag.component.js +26 -26
- package/esm2015/elements/public_api.js +26 -26
- package/esm2015/http/bravobit-bb-foundation-http.js +4 -4
- package/esm2015/http/lib/classes/http.config.js +31 -31
- package/esm2015/http/lib/classes/http.error.js +21 -21
- package/esm2015/http/lib/http.interfaces.js +2 -2
- package/esm2015/http/lib/http.module.js +43 -43
- package/esm2015/http/lib/interceptors/base-url.interceptor.js +52 -52
- package/esm2015/http/lib/interceptors/error.interceptor.js +33 -33
- package/esm2015/http/public_api.js +7 -7
- package/esm2015/lib/core/coercions/boolean-coercion.js +4 -4
- package/esm2015/lib/core/miscellaneous/regex.js +5 -5
- package/esm2015/lib/core/miscellaneous/validator.js +86 -86
- package/esm2015/lib/core/mixins/can-disable.js +16 -16
- package/esm2015/lib/core/mixins/can-hide-errors.js +16 -16
- package/esm2015/lib/core/mixins/can-load.js +16 -16
- package/esm2015/lib/core/mixins/constructor.js +2 -2
- package/esm2015/lib/core/mixins/has-error.js +16 -16
- package/esm2015/lib/core/mixins/is-focused.js +16 -16
- package/esm2015/lib/core/mixins/is-grouped.js +16 -16
- package/esm2015/lib/core/mixins/is-readonly.js +16 -16
- package/esm2015/lib/core/mixins/is-required.js +16 -16
- package/esm2015/lib/core/services/clipboard.service.js +72 -0
- package/esm2015/lib/core/services/exif.service.js +168 -168
- package/esm2015/lib/core/services/file-loader.service.js +90 -90
- package/esm2015/lib/core/services/image-converter.service.js +130 -130
- package/esm2015/lib/core/services/languages.service.js +74 -74
- package/esm2015/lib/core/services/network.service.js +56 -56
- package/esm2015/lib/core/services/patch.service.js +65 -65
- package/esm2015/lib/core/services/platform.service.js +42 -42
- package/esm2015/lib/core/tokens/accept-language.token.js +3 -3
- package/esm2015/lib/core/tokens/base-url.token.js +3 -3
- package/esm2015/lib/core/tokens/cookie.token.js +3 -3
- package/esm2015/lib/core/tokens/location.token.js +6 -6
- package/esm2015/lib/core/tokens/navigator.token.js +6 -6
- package/esm2015/lib/core/tokens/window.token.js +12 -12
- package/esm2015/localize/bravobit-bb-foundation-localize.js +4 -4
- package/esm2015/localize/lib/functions/date.function.js +18 -18
- package/esm2015/localize/lib/functions/lowercase.function.js +13 -13
- package/esm2015/localize/lib/functions/uppercase.function.js +13 -13
- package/esm2015/localize/lib/handlers/missing.handler.js +17 -17
- package/esm2015/localize/lib/interfaces/config.interfaces.js +10 -10
- package/esm2015/localize/lib/interfaces/dictionary.interfaces.js +8 -8
- package/esm2015/localize/lib/interfaces/functions.interfaces.js +8 -8
- package/esm2015/localize/lib/interfaces/handlers.interfaces.js +2 -2
- package/esm2015/localize/lib/interfaces/options.interfaces.js +6 -6
- package/esm2015/localize/lib/localizations/dutch.localization.js +53 -53
- package/esm2015/localize/lib/localizations/english.localization.js +53 -53
- package/esm2015/localize/lib/localize.dictionary.js +137 -137
- package/esm2015/localize/lib/localize.module.js +69 -69
- package/esm2015/localize/lib/localize.pipe.js +49 -49
- package/esm2015/localize/lib/localize.service.js +282 -282
- package/esm2015/localize/lib/views/localize-string/localize-string.component.js +99 -99
- package/esm2015/localize/lib/views/localize-template-or-string.directive.js +28 -28
- package/esm2015/localize/lib/views/localize-template.directive.js +21 -21
- package/esm2015/localize/public_api.js +18 -18
- package/esm2015/notifications/bravobit-bb-foundation-notifications.js +4 -4
- package/esm2015/notifications/lib/notifications-item/notifications-item.component.js +108 -108
- package/esm2015/notifications/lib/notifications-list/notifications-list.component.js +56 -56
- package/esm2015/notifications/lib/notifications.animations.js +28 -28
- package/esm2015/notifications/lib/notifications.injector.js +18 -18
- package/esm2015/notifications/lib/notifications.interfaces.js +20 -20
- package/esm2015/notifications/lib/notifications.module.js +31 -31
- package/esm2015/notifications/lib/notifications.service.js +145 -145
- package/esm2015/notifications/public_api.js +4 -4
- package/esm2015/public_api.js +30 -29
- package/esm2015/recaptcha/bravobit-bb-foundation-recaptcha.js +4 -4
- package/esm2015/recaptcha/lib/recaptcha/recaptcha.component.js +199 -199
- package/esm2015/recaptcha/lib/recaptcha-loader.service.js +93 -93
- package/esm2015/recaptcha/lib/recaptcha.interface.js +3 -3
- package/esm2015/recaptcha/lib/recaptcha.module.js +27 -27
- package/esm2015/recaptcha/public_api.js +5 -5
- package/esm2015/rxjs/bravobit-bb-foundation-rxjs.js +4 -4
- package/esm2015/rxjs/lib/operators/combine-latest-map.operator.js +7 -7
- package/esm2015/rxjs/lib/operators/filter-nil.operator.js +5 -5
- package/esm2015/rxjs/public_api.js +3 -3
- package/esm2015/storage/bravobit-bb-foundation-storage.js +4 -4
- package/esm2015/storage/lib/interfaces/attributes.interface.js +2 -2
- package/esm2015/storage/lib/interfaces/memory.interface.js +2 -2
- package/esm2015/storage/lib/interfaces/strategy.interface.js +2 -2
- package/esm2015/storage/lib/storage.service.js +111 -111
- package/esm2015/storage/lib/strategies/cookie-storage.strategy.js +143 -143
- package/esm2015/storage/lib/strategies/memory-storage.strategy.js +56 -56
- package/esm2015/storage/lib/strategies/polyfill-storage.strategy.js +102 -102
- package/esm2015/storage/public_api.js +8 -8
- package/esm2015/table/bravobit-bb-foundation-table.js +4 -4
- package/esm2015/table/lib/components/table/table.component.js +183 -183
- package/esm2015/table/lib/components/table-cell/table-cell.component.js +19 -19
- package/esm2015/table/lib/components/table-header-cell/table-header-cell.component.js +141 -141
- package/esm2015/table/lib/components/table-pager/table-pager.component.js +146 -146
- package/esm2015/table/lib/data/datasource.data.js +32 -32
- package/esm2015/table/lib/data/generic.data.js +73 -73
- package/esm2015/table/lib/interfaces/datasource.interface.js +2 -2
- package/esm2015/table/lib/interfaces/table.interfaces.js +2 -2
- package/esm2015/table/lib/table.module.js +39 -39
- package/esm2015/table/public_api.js +10 -10
- package/fesm2015/bravobit-bb-foundation-auth.js +915 -915
- package/fesm2015/bravobit-bb-foundation-auth.js.map +1 -1
- package/fesm2015/bravobit-bb-foundation-collections.js +447 -0
- package/fesm2015/bravobit-bb-foundation-collections.js.map +1 -0
- package/fesm2015/bravobit-bb-foundation-dashboard.js +434 -434
- package/fesm2015/bravobit-bb-foundation-dashboard.js.map +1 -1
- package/fesm2015/bravobit-bb-foundation-dialog.js +603 -603
- package/fesm2015/bravobit-bb-foundation-dialog.js.map +1 -1
- package/fesm2015/bravobit-bb-foundation-elements.js +2076 -2076
- package/fesm2015/bravobit-bb-foundation-elements.js.map +1 -1
- package/fesm2015/bravobit-bb-foundation-http.js +154 -154
- package/fesm2015/bravobit-bb-foundation-http.js.map +1 -1
- package/fesm2015/bravobit-bb-foundation-localize.js +796 -796
- package/fesm2015/bravobit-bb-foundation-localize.js.map +1 -1
- package/fesm2015/bravobit-bb-foundation-notifications.js +364 -364
- package/fesm2015/bravobit-bb-foundation-notifications.js.map +1 -1
- package/fesm2015/bravobit-bb-foundation-recaptcha.js +297 -297
- package/fesm2015/bravobit-bb-foundation-recaptcha.js.map +1 -1
- package/fesm2015/bravobit-bb-foundation-rxjs.js +7 -7
- package/fesm2015/bravobit-bb-foundation-rxjs.js.map +1 -1
- package/fesm2015/bravobit-bb-foundation-storage.js +399 -399
- package/fesm2015/bravobit-bb-foundation-storage.js.map +1 -1
- package/fesm2015/bravobit-bb-foundation-table.js +578 -578
- package/fesm2015/bravobit-bb-foundation-table.js.map +1 -1
- package/fesm2015/bravobit-bb-foundation.js +854 -785
- package/fesm2015/bravobit-bb-foundation.js.map +1 -1
- package/http/bravobit-bb-foundation-http.d.ts +5 -5
- package/http/lib/classes/http.config.d.ts +9 -9
- package/http/lib/classes/http.error.d.ts +7 -7
- package/http/lib/http.interfaces.d.ts +12 -12
- package/http/lib/http.module.d.ts +15 -15
- package/http/lib/interceptors/base-url.interceptor.d.ts +15 -15
- package/http/lib/interceptors/error.interceptor.d.ts +11 -11
- package/http/public_api.d.ts +6 -6
- package/lib/core/coercions/boolean-coercion.d.ts +1 -1
- package/lib/core/miscellaneous/regex.d.ts +4 -4
- package/lib/core/miscellaneous/validator.d.ts +13 -13
- package/lib/core/mixins/can-disable.d.ts +6 -6
- package/lib/core/mixins/can-hide-errors.d.ts +6 -6
- package/lib/core/mixins/can-load.d.ts +6 -6
- package/lib/core/mixins/constructor.d.ts +1 -1
- package/lib/core/mixins/has-error.d.ts +6 -6
- package/lib/core/mixins/is-focused.d.ts +6 -6
- package/lib/core/mixins/is-grouped.d.ts +6 -6
- package/lib/core/mixins/is-readonly.d.ts +6 -6
- package/lib/core/mixins/is-required.d.ts +6 -6
- package/lib/core/services/clipboard.service.d.ts +18 -0
- package/lib/core/services/exif.service.d.ts +15 -15
- package/lib/core/services/file-loader.service.d.ts +13 -13
- package/lib/core/services/image-converter.service.d.ts +21 -21
- package/lib/core/services/languages.service.d.ts +16 -16
- package/lib/core/services/network.service.d.ts +14 -14
- package/lib/core/services/patch.service.d.ts +16 -16
- package/lib/core/services/platform.service.d.ts +18 -18
- package/lib/core/tokens/accept-language.token.d.ts +2 -2
- package/lib/core/tokens/base-url.token.d.ts +2 -2
- package/lib/core/tokens/cookie.token.d.ts +2 -2
- package/lib/core/tokens/location.token.d.ts +2 -2
- package/lib/core/tokens/navigator.token.d.ts +2 -2
- package/lib/core/tokens/window.token.d.ts +2 -2
- package/localize/bravobit-bb-foundation-localize.d.ts +5 -5
- package/localize/lib/functions/date.function.d.ts +5 -5
- package/localize/lib/functions/lowercase.function.d.ts +5 -5
- package/localize/lib/functions/uppercase.function.d.ts +5 -5
- package/localize/lib/handlers/missing.handler.d.ts +6 -6
- package/localize/lib/interfaces/config.interfaces.d.ts +8 -8
- package/localize/lib/interfaces/dictionary.interfaces.d.ts +12 -12
- package/localize/lib/interfaces/functions.interfaces.d.ts +9 -9
- package/localize/lib/interfaces/handlers.interfaces.d.ts +6 -6
- package/localize/lib/interfaces/options.interfaces.d.ts +10 -10
- package/localize/lib/localizations/dutch.localization.d.ts +51 -51
- package/localize/lib/localizations/english.localization.d.ts +51 -51
- package/localize/lib/localize.dictionary.d.ts +24 -24
- package/localize/lib/localize.module.d.ts +18 -18
- package/localize/lib/localize.pipe.d.ts +12 -12
- package/localize/lib/localize.service.d.ts +51 -51
- package/localize/lib/views/localize-string/localize-string.component.d.ts +23 -23
- package/localize/lib/views/localize-template-or-string.directive.d.ts +10 -10
- package/localize/lib/views/localize-template.directive.d.ts +9 -9
- package/localize/public_api.d.ts +17 -17
- package/notifications/bravobit-bb-foundation-notifications.d.ts +5 -5
- package/notifications/lib/notifications-item/notifications-item.component.d.ts +34 -34
- package/notifications/lib/notifications-list/notifications-list.component.d.ts +16 -16
- package/notifications/lib/notifications.animations.d.ts +1 -1
- package/notifications/lib/notifications.injector.d.ts +8 -8
- package/notifications/lib/notifications.interfaces.d.ts +49 -49
- package/notifications/lib/notifications.module.d.ts +13 -13
- package/notifications/lib/notifications.service.d.ts +34 -34
- package/notifications/public_api.d.ts +3 -3
- package/package.json +5 -5
- package/public_api.d.ts +26 -25
- package/recaptcha/bravobit-bb-foundation-recaptcha.d.ts +5 -5
- package/recaptcha/lib/recaptcha/recaptcha.component.d.ts +47 -47
- package/recaptcha/lib/recaptcha-loader.service.d.ts +22 -22
- package/recaptcha/lib/recaptcha.interface.d.ts +14 -14
- package/recaptcha/lib/recaptcha.module.d.ts +10 -10
- package/recaptcha/public_api.d.ts +4 -4
- package/rxjs/bravobit-bb-foundation-rxjs.d.ts +5 -5
- package/rxjs/lib/operators/combine-latest-map.operator.d.ts +8 -8
- package/rxjs/lib/operators/filter-nil.operator.d.ts +1 -1
- package/rxjs/public_api.d.ts +2 -2
- package/storage/bravobit-bb-foundation-storage.d.ts +5 -5
- package/storage/lib/interfaces/attributes.interface.d.ts +13 -13
- package/storage/lib/interfaces/memory.interface.d.ts +7 -7
- package/storage/lib/interfaces/strategy.interface.d.ts +17 -17
- package/storage/lib/storage.service.d.ts +26 -26
- package/storage/lib/strategies/cookie-storage.strategy.d.ts +20 -20
- package/storage/lib/strategies/memory-storage.strategy.d.ts +11 -11
- package/storage/lib/strategies/polyfill-storage.strategy.d.ts +15 -15
- package/storage/public_api.d.ts +7 -7
- package/table/bravobit-bb-foundation-table.d.ts +5 -5
- package/table/lib/components/table/table.component.d.ts +48 -48
- package/table/lib/components/table-cell/table-cell.component.d.ts +5 -5
- package/table/lib/components/table-header-cell/table-header-cell.component.d.ts +29 -29
- package/table/lib/components/table-pager/table-pager.component.d.ts +41 -41
- package/table/lib/data/datasource.data.d.ts +14 -14
- package/table/lib/data/generic.data.d.ts +23 -23
- package/table/lib/interfaces/datasource.interface.d.ts +17 -17
- package/table/lib/interfaces/table.interfaces.d.ts +1 -1
- package/table/lib/table.module.d.ts +14 -14
- package/table/public_api.d.ts +9 -9
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('rxjs'), require('@bravobit/bb-foundation'), require('@angular/forms')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@bravobit/bb-foundation/recaptcha', ['exports', '@angular/core', '@angular/common', 'rxjs', '@bravobit/bb-foundation', '@angular/forms'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.bravobit = global.bravobit || {}, global.bravobit[
|
|
5
|
-
}(this, (function (exports, i0, common, rxjs, i1, forms) { 'use strict';
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.bravobit = global.bravobit || {}, global.bravobit["bb-foundation"] = global.bravobit["bb-foundation"] || {}, global.bravobit["bb-foundation"].recaptcha = {}), global.ng.core, global.ng.common, global.rxjs, global.bravobit["bb-foundation"], global.ng.forms));
|
|
5
|
+
})(this, (function (exports, i0, common, rxjs, i1, forms) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -13,14 +13,12 @@
|
|
|
13
13
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
14
|
Object.defineProperty(n, k, d.get ? d : {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return e[k];
|
|
18
|
-
}
|
|
16
|
+
get: function () { return e[k]; }
|
|
19
17
|
});
|
|
20
18
|
}
|
|
21
19
|
});
|
|
22
20
|
}
|
|
23
|
-
n[
|
|
21
|
+
n["default"] = e;
|
|
24
22
|
return Object.freeze(n);
|
|
25
23
|
}
|
|
26
24
|
|
|
@@ -29,649 +27,649 @@
|
|
|
29
27
|
|
|
30
28
|
var RECAPTCHA_CONFIG = new i0.InjectionToken('bb-recaptcha-config');
|
|
31
29
|
|
|
32
|
-
var RecaptchaLoader = /** @class */ (function () {
|
|
33
|
-
function RecaptchaLoader(_platform, _renderFactory, _document, _localeId, _config) {
|
|
34
|
-
var _this = this;
|
|
35
|
-
this._platform = _platform;
|
|
36
|
-
this._renderFactory = _renderFactory;
|
|
37
|
-
this._document = _document;
|
|
38
|
-
this._localeId = _localeId;
|
|
39
|
-
this._config = _config;
|
|
40
|
-
// Ready state.
|
|
41
|
-
this.ready$ = null;
|
|
42
|
-
// Data.
|
|
43
|
-
this._windowLoadFn = 'bbRecaptchaLoad';
|
|
44
|
-
this._renderer = null;
|
|
45
|
-
// Create a renderer.
|
|
46
|
-
this._renderer = this._renderFactory.createRenderer(null, null);
|
|
47
|
-
// Set the ready subject if not exists.
|
|
48
|
-
if (this.ready$) {
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
this.ready$ = new rxjs.BehaviorSubject(null);
|
|
52
|
-
// Create the script.
|
|
53
|
-
this.createScript(function (captcha) { return _this.ready$.next(captcha); });
|
|
54
|
-
}
|
|
55
|
-
RecaptchaLoader.prototype.createScript = function (callback) {
|
|
56
|
-
var _a;
|
|
57
|
-
// Validate we are on a browser.
|
|
58
|
-
if (!this._platform.isBrowser) {
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
// Create the script.
|
|
62
|
-
var script = this._renderer.createElement('script');
|
|
63
|
-
// Set properties on the script.
|
|
64
|
-
this._renderer.setProperty(script, 'src', this.getUrl());
|
|
65
|
-
this._renderer.setProperty(script, 'async', true);
|
|
66
|
-
this._renderer.setProperty(script, 'defer', true);
|
|
67
|
-
// Set the nonce.
|
|
68
|
-
if (this._config.nonce) {
|
|
69
|
-
this._renderer.setAttribute(script, 'nonce', this._config.nonce);
|
|
70
|
-
}
|
|
71
|
-
// Set the loading function.
|
|
72
|
-
if (this._platform.isBrowser) {
|
|
73
|
-
window[this._windowLoadFn] = function () { return callback(grecaptcha); };
|
|
74
|
-
}
|
|
75
|
-
// Append the script tag.
|
|
76
|
-
this._renderer.appendChild((_a = this._document) === null || _a === void 0 ? void 0 : _a.body, script);
|
|
77
|
-
};
|
|
78
|
-
RecaptchaLoader.prototype.getUrl = function () {
|
|
79
|
-
var _a, _b;
|
|
80
|
-
var baseUrl = (_b = (_a = this._config) === null || _a === void 0 ? void 0 : _a.baseUrl) !== null && _b !== void 0 ? _b : 'https://www.google.com/recaptcha/api.js';
|
|
81
|
-
return [baseUrl, this.getQueryParams()]
|
|
82
|
-
.filter(function (item) { return !!item; })
|
|
83
|
-
.join('?');
|
|
84
|
-
};
|
|
85
|
-
RecaptchaLoader.prototype.getQueryParams = function () {
|
|
86
|
-
var _a, _b;
|
|
87
|
-
var params = {
|
|
88
|
-
render: 'explicit',
|
|
89
|
-
onload: (_a = this._windowLoadFn) !== null && _a !== void 0 ? _a : null,
|
|
90
|
-
hl: (_b = this._localeId) !== null && _b !== void 0 ? _b : null
|
|
91
|
-
};
|
|
92
|
-
return Object.keys(params)
|
|
93
|
-
.map(function (key) { return ({ key: key, value: params[key] }); })
|
|
94
|
-
.filter(function (item) { return !!item.value; })
|
|
95
|
-
.map(function (item) { return (item === null || item === void 0 ? void 0 : item.key) + "=" + (item === null || item === void 0 ? void 0 : item.value); })
|
|
96
|
-
.join('&');
|
|
97
|
-
};
|
|
98
|
-
return RecaptchaLoader;
|
|
99
|
-
}());
|
|
100
|
-
RecaptchaLoader.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
101
|
-
RecaptchaLoader.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.
|
|
102
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
103
|
-
type: i0.Injectable
|
|
104
|
-
}], ctorParameters: function () {
|
|
105
|
-
return [{ type: i1__namespace.Platform }, { type: i0__namespace.RendererFactory2 }, { type: undefined, decorators: [{
|
|
106
|
-
type: i0.Optional
|
|
107
|
-
}, {
|
|
108
|
-
type: i0.Inject,
|
|
109
|
-
args: [common.DOCUMENT]
|
|
110
|
-
}] }, { type: undefined, decorators: [{
|
|
111
|
-
type: i0.Optional
|
|
112
|
-
}, {
|
|
113
|
-
type: i0.Inject,
|
|
114
|
-
args: [i0.LOCALE_ID]
|
|
115
|
-
}] }, { type: undefined, decorators: [{
|
|
116
|
-
type: i0.Optional
|
|
117
|
-
}, {
|
|
118
|
-
type: i0.Inject,
|
|
119
|
-
args: [RECAPTCHA_CONFIG]
|
|
120
|
-
}] }];
|
|
30
|
+
var RecaptchaLoader = /** @class */ (function () {
|
|
31
|
+
function RecaptchaLoader(_platform, _renderFactory, _document, _localeId, _config) {
|
|
32
|
+
var _this = this;
|
|
33
|
+
this._platform = _platform;
|
|
34
|
+
this._renderFactory = _renderFactory;
|
|
35
|
+
this._document = _document;
|
|
36
|
+
this._localeId = _localeId;
|
|
37
|
+
this._config = _config;
|
|
38
|
+
// Ready state.
|
|
39
|
+
this.ready$ = null;
|
|
40
|
+
// Data.
|
|
41
|
+
this._windowLoadFn = 'bbRecaptchaLoad';
|
|
42
|
+
this._renderer = null;
|
|
43
|
+
// Create a renderer.
|
|
44
|
+
this._renderer = this._renderFactory.createRenderer(null, null);
|
|
45
|
+
// Set the ready subject if not exists.
|
|
46
|
+
if (this.ready$) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
this.ready$ = new rxjs.BehaviorSubject(null);
|
|
50
|
+
// Create the script.
|
|
51
|
+
this.createScript(function (captcha) { return _this.ready$.next(captcha); });
|
|
52
|
+
}
|
|
53
|
+
RecaptchaLoader.prototype.createScript = function (callback) {
|
|
54
|
+
var _a;
|
|
55
|
+
// Validate we are on a browser.
|
|
56
|
+
if (!this._platform.isBrowser) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
// Create the script.
|
|
60
|
+
var script = this._renderer.createElement('script');
|
|
61
|
+
// Set properties on the script.
|
|
62
|
+
this._renderer.setProperty(script, 'src', this.getUrl());
|
|
63
|
+
this._renderer.setProperty(script, 'async', true);
|
|
64
|
+
this._renderer.setProperty(script, 'defer', true);
|
|
65
|
+
// Set the nonce.
|
|
66
|
+
if (this._config.nonce) {
|
|
67
|
+
this._renderer.setAttribute(script, 'nonce', this._config.nonce);
|
|
68
|
+
}
|
|
69
|
+
// Set the loading function.
|
|
70
|
+
if (this._platform.isBrowser) {
|
|
71
|
+
window[this._windowLoadFn] = function () { return callback(grecaptcha); };
|
|
72
|
+
}
|
|
73
|
+
// Append the script tag.
|
|
74
|
+
this._renderer.appendChild((_a = this._document) === null || _a === void 0 ? void 0 : _a.body, script);
|
|
75
|
+
};
|
|
76
|
+
RecaptchaLoader.prototype.getUrl = function () {
|
|
77
|
+
var _a, _b;
|
|
78
|
+
var baseUrl = (_b = (_a = this._config) === null || _a === void 0 ? void 0 : _a.baseUrl) !== null && _b !== void 0 ? _b : 'https://www.google.com/recaptcha/api.js';
|
|
79
|
+
return [baseUrl, this.getQueryParams()]
|
|
80
|
+
.filter(function (item) { return !!item; })
|
|
81
|
+
.join('?');
|
|
82
|
+
};
|
|
83
|
+
RecaptchaLoader.prototype.getQueryParams = function () {
|
|
84
|
+
var _a, _b;
|
|
85
|
+
var params = {
|
|
86
|
+
render: 'explicit',
|
|
87
|
+
onload: (_a = this._windowLoadFn) !== null && _a !== void 0 ? _a : null,
|
|
88
|
+
hl: (_b = this._localeId) !== null && _b !== void 0 ? _b : null
|
|
89
|
+
};
|
|
90
|
+
return Object.keys(params)
|
|
91
|
+
.map(function (key) { return ({ key: key, value: params[key] }); })
|
|
92
|
+
.filter(function (item) { return !!item.value; })
|
|
93
|
+
.map(function (item) { return (item === null || item === void 0 ? void 0 : item.key) + "=" + (item === null || item === void 0 ? void 0 : item.value); })
|
|
94
|
+
.join('&');
|
|
95
|
+
};
|
|
96
|
+
return RecaptchaLoader;
|
|
97
|
+
}());
|
|
98
|
+
RecaptchaLoader.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: RecaptchaLoader, deps: [{ token: i1__namespace.Platform }, { token: i0__namespace.RendererFactory2 }, { token: common.DOCUMENT, optional: true }, { token: i0.LOCALE_ID, optional: true }, { token: RECAPTCHA_CONFIG, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
99
|
+
RecaptchaLoader.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: RecaptchaLoader });
|
|
100
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: RecaptchaLoader, decorators: [{
|
|
101
|
+
type: i0.Injectable
|
|
102
|
+
}], ctorParameters: function () {
|
|
103
|
+
return [{ type: i1__namespace.Platform }, { type: i0__namespace.RendererFactory2 }, { type: undefined, decorators: [{
|
|
104
|
+
type: i0.Optional
|
|
105
|
+
}, {
|
|
106
|
+
type: i0.Inject,
|
|
107
|
+
args: [common.DOCUMENT]
|
|
108
|
+
}] }, { type: undefined, decorators: [{
|
|
109
|
+
type: i0.Optional
|
|
110
|
+
}, {
|
|
111
|
+
type: i0.Inject,
|
|
112
|
+
args: [i0.LOCALE_ID]
|
|
113
|
+
}] }, { type: undefined, decorators: [{
|
|
114
|
+
type: i0.Optional
|
|
115
|
+
}, {
|
|
116
|
+
type: i0.Inject,
|
|
117
|
+
args: [RECAPTCHA_CONFIG]
|
|
118
|
+
}] }];
|
|
121
119
|
} });
|
|
122
120
|
|
|
123
|
-
/*! *****************************************************************************
|
|
124
|
-
Copyright (c) Microsoft Corporation.
|
|
125
|
-
|
|
126
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
127
|
-
purpose with or without fee is hereby granted.
|
|
128
|
-
|
|
129
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
130
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
131
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
132
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
133
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
134
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
135
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
136
|
-
***************************************************************************** */
|
|
137
|
-
/* global Reflect, Promise */
|
|
138
|
-
var extendStatics = function (d, b) {
|
|
139
|
-
extendStatics = Object.setPrototypeOf ||
|
|
140
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
141
|
-
function (d, b) { for (var p in b)
|
|
142
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
143
|
-
d[p] = b[p]; };
|
|
144
|
-
return extendStatics(d, b);
|
|
145
|
-
};
|
|
146
|
-
function __extends(d, b) {
|
|
147
|
-
if (typeof b !== "function" && b !== null)
|
|
148
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
149
|
-
extendStatics(d, b);
|
|
150
|
-
function __() { this.constructor = d; }
|
|
151
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
152
|
-
}
|
|
153
|
-
var __assign = function () {
|
|
154
|
-
__assign = Object.assign || function __assign(t) {
|
|
155
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
156
|
-
s = arguments[i];
|
|
157
|
-
for (var p in s)
|
|
158
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
159
|
-
t[p] = s[p];
|
|
160
|
-
}
|
|
161
|
-
return t;
|
|
162
|
-
};
|
|
163
|
-
return __assign.apply(this, arguments);
|
|
164
|
-
};
|
|
165
|
-
function __rest(s, e) {
|
|
166
|
-
var t = {};
|
|
167
|
-
for (var p in s)
|
|
168
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
169
|
-
t[p] = s[p];
|
|
170
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
171
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
172
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
173
|
-
t[p[i]] = s[p[i]];
|
|
174
|
-
}
|
|
175
|
-
return t;
|
|
176
|
-
}
|
|
177
|
-
function __decorate(decorators, target, key, desc) {
|
|
178
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
179
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
180
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
181
|
-
else
|
|
182
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
183
|
-
if (d = decorators[i])
|
|
184
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
185
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
186
|
-
}
|
|
187
|
-
function __param(paramIndex, decorator) {
|
|
188
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
189
|
-
}
|
|
190
|
-
function __metadata(metadataKey, metadataValue) {
|
|
191
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
192
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
193
|
-
}
|
|
194
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
195
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
196
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
197
|
-
function fulfilled(value) { try {
|
|
198
|
-
step(generator.next(value));
|
|
199
|
-
}
|
|
200
|
-
catch (e) {
|
|
201
|
-
reject(e);
|
|
202
|
-
} }
|
|
203
|
-
function rejected(value) { try {
|
|
204
|
-
step(generator["throw"](value));
|
|
205
|
-
}
|
|
206
|
-
catch (e) {
|
|
207
|
-
reject(e);
|
|
208
|
-
} }
|
|
209
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
210
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
function __generator(thisArg, body) {
|
|
214
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
215
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
216
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
217
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
218
|
-
function step(op) {
|
|
219
|
-
if (f)
|
|
220
|
-
throw new TypeError("Generator is already executing.");
|
|
221
|
-
while (_)
|
|
222
|
-
try {
|
|
223
|
-
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)
|
|
224
|
-
return t;
|
|
225
|
-
if (y = 0, t)
|
|
226
|
-
op = [op[0] & 2, t.value];
|
|
227
|
-
switch (op[0]) {
|
|
228
|
-
case 0:
|
|
229
|
-
case 1:
|
|
230
|
-
t = op;
|
|
231
|
-
break;
|
|
232
|
-
case 4:
|
|
233
|
-
_.label++;
|
|
234
|
-
return { value: op[1], done: false };
|
|
235
|
-
case 5:
|
|
236
|
-
_.label++;
|
|
237
|
-
y = op[1];
|
|
238
|
-
op = [0];
|
|
239
|
-
continue;
|
|
240
|
-
case 7:
|
|
241
|
-
op = _.ops.pop();
|
|
242
|
-
_.trys.pop();
|
|
243
|
-
continue;
|
|
244
|
-
default:
|
|
245
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
246
|
-
_ = 0;
|
|
247
|
-
continue;
|
|
248
|
-
}
|
|
249
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
250
|
-
_.label = op[1];
|
|
251
|
-
break;
|
|
252
|
-
}
|
|
253
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
254
|
-
_.label = t[1];
|
|
255
|
-
t = op;
|
|
256
|
-
break;
|
|
257
|
-
}
|
|
258
|
-
if (t && _.label < t[2]) {
|
|
259
|
-
_.label = t[2];
|
|
260
|
-
_.ops.push(op);
|
|
261
|
-
break;
|
|
262
|
-
}
|
|
263
|
-
if (t[2])
|
|
264
|
-
_.ops.pop();
|
|
265
|
-
_.trys.pop();
|
|
266
|
-
continue;
|
|
267
|
-
}
|
|
268
|
-
op = body.call(thisArg, _);
|
|
269
|
-
}
|
|
270
|
-
catch (e) {
|
|
271
|
-
op = [6, e];
|
|
272
|
-
y = 0;
|
|
273
|
-
}
|
|
274
|
-
finally {
|
|
275
|
-
f = t = 0;
|
|
276
|
-
}
|
|
277
|
-
if (op[0] & 5)
|
|
278
|
-
throw op[1];
|
|
279
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
283
|
-
if (k2 === undefined)
|
|
284
|
-
k2 = k;
|
|
285
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
286
|
-
}) : (function (o, m, k, k2) {
|
|
287
|
-
if (k2 === undefined)
|
|
288
|
-
k2 = k;
|
|
289
|
-
o[k2] = m[k];
|
|
290
|
-
});
|
|
291
|
-
function __exportStar(m, o) {
|
|
292
|
-
for (var p in m)
|
|
293
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
294
|
-
__createBinding(o, m, p);
|
|
295
|
-
}
|
|
296
|
-
function __values(o) {
|
|
297
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
298
|
-
if (m)
|
|
299
|
-
return m.call(o);
|
|
300
|
-
if (o && typeof o.length === "number")
|
|
301
|
-
return {
|
|
302
|
-
next: function () {
|
|
303
|
-
if (o && i >= o.length)
|
|
304
|
-
o = void 0;
|
|
305
|
-
return { value: o && o[i++], done: !o };
|
|
306
|
-
}
|
|
307
|
-
};
|
|
308
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
309
|
-
}
|
|
310
|
-
function __read(o, n) {
|
|
311
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
312
|
-
if (!m)
|
|
313
|
-
return o;
|
|
314
|
-
var i = m.call(o), r, ar = [], e;
|
|
315
|
-
try {
|
|
316
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
317
|
-
ar.push(r.value);
|
|
318
|
-
}
|
|
319
|
-
catch (error) {
|
|
320
|
-
e = { error: error };
|
|
321
|
-
}
|
|
322
|
-
finally {
|
|
323
|
-
try {
|
|
324
|
-
if (r && !r.done && (m = i["return"]))
|
|
325
|
-
m.call(i);
|
|
326
|
-
}
|
|
327
|
-
finally {
|
|
328
|
-
if (e)
|
|
329
|
-
throw e.error;
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
return ar;
|
|
333
|
-
}
|
|
334
|
-
/** @deprecated */
|
|
335
|
-
function __spread() {
|
|
336
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
337
|
-
ar = ar.concat(__read(arguments[i]));
|
|
338
|
-
return ar;
|
|
339
|
-
}
|
|
340
|
-
/** @deprecated */
|
|
341
|
-
function __spreadArrays() {
|
|
342
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
343
|
-
s += arguments[i].length;
|
|
344
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
345
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
346
|
-
r[k] = a[j];
|
|
347
|
-
return r;
|
|
348
|
-
}
|
|
349
|
-
function __spreadArray(to, from, pack) {
|
|
350
|
-
if (pack || arguments.length === 2)
|
|
351
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
352
|
-
if (ar || !(i in from)) {
|
|
353
|
-
if (!ar)
|
|
354
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
355
|
-
ar[i] = from[i];
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
return to.concat(ar || from);
|
|
359
|
-
}
|
|
360
|
-
function __await(v) {
|
|
361
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
362
|
-
}
|
|
363
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
364
|
-
if (!Symbol.asyncIterator)
|
|
365
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
366
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
367
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
368
|
-
function verb(n) { if (g[n])
|
|
369
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
370
|
-
function resume(n, v) { try {
|
|
371
|
-
step(g[n](v));
|
|
372
|
-
}
|
|
373
|
-
catch (e) {
|
|
374
|
-
settle(q[0][3], e);
|
|
375
|
-
} }
|
|
376
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
377
|
-
function fulfill(value) { resume("next", value); }
|
|
378
|
-
function reject(value) { resume("throw", value); }
|
|
379
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
380
|
-
resume(q[0][0], q[0][1]); }
|
|
381
|
-
}
|
|
382
|
-
function __asyncDelegator(o) {
|
|
383
|
-
var i, p;
|
|
384
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
385
|
-
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; }
|
|
386
|
-
}
|
|
387
|
-
function __asyncValues(o) {
|
|
388
|
-
if (!Symbol.asyncIterator)
|
|
389
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
390
|
-
var m = o[Symbol.asyncIterator], i;
|
|
391
|
-
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);
|
|
392
|
-
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); }); }; }
|
|
393
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
394
|
-
}
|
|
395
|
-
function __makeTemplateObject(cooked, raw) {
|
|
396
|
-
if (Object.defineProperty) {
|
|
397
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
398
|
-
}
|
|
399
|
-
else {
|
|
400
|
-
cooked.raw = raw;
|
|
401
|
-
}
|
|
402
|
-
return cooked;
|
|
403
|
-
}
|
|
404
|
-
;
|
|
405
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
406
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
407
|
-
}) : function (o, v) {
|
|
408
|
-
o["default"] = v;
|
|
409
|
-
};
|
|
410
|
-
function __importStar(mod) {
|
|
411
|
-
if (mod && mod.__esModule)
|
|
412
|
-
return mod;
|
|
413
|
-
var result = {};
|
|
414
|
-
if (mod != null)
|
|
415
|
-
for (var k in mod)
|
|
416
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
417
|
-
__createBinding(result, mod, k);
|
|
418
|
-
__setModuleDefault(result, mod);
|
|
419
|
-
return result;
|
|
420
|
-
}
|
|
421
|
-
function __importDefault(mod) {
|
|
422
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
423
|
-
}
|
|
424
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
425
|
-
if (kind === "a" && !f)
|
|
426
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
427
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
428
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
429
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
430
|
-
}
|
|
431
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
432
|
-
if (kind === "m")
|
|
433
|
-
throw new TypeError("Private method is not writable");
|
|
434
|
-
if (kind === "a" && !f)
|
|
435
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
436
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
437
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
438
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
121
|
+
/*! *****************************************************************************
|
|
122
|
+
Copyright (c) Microsoft Corporation.
|
|
123
|
+
|
|
124
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
125
|
+
purpose with or without fee is hereby granted.
|
|
126
|
+
|
|
127
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
128
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
129
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
130
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
131
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
132
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
133
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
134
|
+
***************************************************************************** */
|
|
135
|
+
/* global Reflect, Promise */
|
|
136
|
+
var extendStatics = function (d, b) {
|
|
137
|
+
extendStatics = Object.setPrototypeOf ||
|
|
138
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
139
|
+
function (d, b) { for (var p in b)
|
|
140
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
141
|
+
d[p] = b[p]; };
|
|
142
|
+
return extendStatics(d, b);
|
|
143
|
+
};
|
|
144
|
+
function __extends(d, b) {
|
|
145
|
+
if (typeof b !== "function" && b !== null)
|
|
146
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
147
|
+
extendStatics(d, b);
|
|
148
|
+
function __() { this.constructor = d; }
|
|
149
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
150
|
+
}
|
|
151
|
+
var __assign = function () {
|
|
152
|
+
__assign = Object.assign || function __assign(t) {
|
|
153
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
154
|
+
s = arguments[i];
|
|
155
|
+
for (var p in s)
|
|
156
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
157
|
+
t[p] = s[p];
|
|
158
|
+
}
|
|
159
|
+
return t;
|
|
160
|
+
};
|
|
161
|
+
return __assign.apply(this, arguments);
|
|
162
|
+
};
|
|
163
|
+
function __rest(s, e) {
|
|
164
|
+
var t = {};
|
|
165
|
+
for (var p in s)
|
|
166
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
167
|
+
t[p] = s[p];
|
|
168
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
169
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
170
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
171
|
+
t[p[i]] = s[p[i]];
|
|
172
|
+
}
|
|
173
|
+
return t;
|
|
174
|
+
}
|
|
175
|
+
function __decorate(decorators, target, key, desc) {
|
|
176
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
177
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
178
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
179
|
+
else
|
|
180
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
181
|
+
if (d = decorators[i])
|
|
182
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
183
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
184
|
+
}
|
|
185
|
+
function __param(paramIndex, decorator) {
|
|
186
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
187
|
+
}
|
|
188
|
+
function __metadata(metadataKey, metadataValue) {
|
|
189
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
190
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
191
|
+
}
|
|
192
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
193
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
194
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
195
|
+
function fulfilled(value) { try {
|
|
196
|
+
step(generator.next(value));
|
|
197
|
+
}
|
|
198
|
+
catch (e) {
|
|
199
|
+
reject(e);
|
|
200
|
+
} }
|
|
201
|
+
function rejected(value) { try {
|
|
202
|
+
step(generator["throw"](value));
|
|
203
|
+
}
|
|
204
|
+
catch (e) {
|
|
205
|
+
reject(e);
|
|
206
|
+
} }
|
|
207
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
208
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
function __generator(thisArg, body) {
|
|
212
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
213
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
214
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
215
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
216
|
+
function step(op) {
|
|
217
|
+
if (f)
|
|
218
|
+
throw new TypeError("Generator is already executing.");
|
|
219
|
+
while (_)
|
|
220
|
+
try {
|
|
221
|
+
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)
|
|
222
|
+
return t;
|
|
223
|
+
if (y = 0, t)
|
|
224
|
+
op = [op[0] & 2, t.value];
|
|
225
|
+
switch (op[0]) {
|
|
226
|
+
case 0:
|
|
227
|
+
case 1:
|
|
228
|
+
t = op;
|
|
229
|
+
break;
|
|
230
|
+
case 4:
|
|
231
|
+
_.label++;
|
|
232
|
+
return { value: op[1], done: false };
|
|
233
|
+
case 5:
|
|
234
|
+
_.label++;
|
|
235
|
+
y = op[1];
|
|
236
|
+
op = [0];
|
|
237
|
+
continue;
|
|
238
|
+
case 7:
|
|
239
|
+
op = _.ops.pop();
|
|
240
|
+
_.trys.pop();
|
|
241
|
+
continue;
|
|
242
|
+
default:
|
|
243
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
244
|
+
_ = 0;
|
|
245
|
+
continue;
|
|
246
|
+
}
|
|
247
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
248
|
+
_.label = op[1];
|
|
249
|
+
break;
|
|
250
|
+
}
|
|
251
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
252
|
+
_.label = t[1];
|
|
253
|
+
t = op;
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
if (t && _.label < t[2]) {
|
|
257
|
+
_.label = t[2];
|
|
258
|
+
_.ops.push(op);
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
if (t[2])
|
|
262
|
+
_.ops.pop();
|
|
263
|
+
_.trys.pop();
|
|
264
|
+
continue;
|
|
265
|
+
}
|
|
266
|
+
op = body.call(thisArg, _);
|
|
267
|
+
}
|
|
268
|
+
catch (e) {
|
|
269
|
+
op = [6, e];
|
|
270
|
+
y = 0;
|
|
271
|
+
}
|
|
272
|
+
finally {
|
|
273
|
+
f = t = 0;
|
|
274
|
+
}
|
|
275
|
+
if (op[0] & 5)
|
|
276
|
+
throw op[1];
|
|
277
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
281
|
+
if (k2 === undefined)
|
|
282
|
+
k2 = k;
|
|
283
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
284
|
+
}) : (function (o, m, k, k2) {
|
|
285
|
+
if (k2 === undefined)
|
|
286
|
+
k2 = k;
|
|
287
|
+
o[k2] = m[k];
|
|
288
|
+
});
|
|
289
|
+
function __exportStar(m, o) {
|
|
290
|
+
for (var p in m)
|
|
291
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
292
|
+
__createBinding(o, m, p);
|
|
293
|
+
}
|
|
294
|
+
function __values(o) {
|
|
295
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
296
|
+
if (m)
|
|
297
|
+
return m.call(o);
|
|
298
|
+
if (o && typeof o.length === "number")
|
|
299
|
+
return {
|
|
300
|
+
next: function () {
|
|
301
|
+
if (o && i >= o.length)
|
|
302
|
+
o = void 0;
|
|
303
|
+
return { value: o && o[i++], done: !o };
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
307
|
+
}
|
|
308
|
+
function __read(o, n) {
|
|
309
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
310
|
+
if (!m)
|
|
311
|
+
return o;
|
|
312
|
+
var i = m.call(o), r, ar = [], e;
|
|
313
|
+
try {
|
|
314
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
315
|
+
ar.push(r.value);
|
|
316
|
+
}
|
|
317
|
+
catch (error) {
|
|
318
|
+
e = { error: error };
|
|
319
|
+
}
|
|
320
|
+
finally {
|
|
321
|
+
try {
|
|
322
|
+
if (r && !r.done && (m = i["return"]))
|
|
323
|
+
m.call(i);
|
|
324
|
+
}
|
|
325
|
+
finally {
|
|
326
|
+
if (e)
|
|
327
|
+
throw e.error;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
return ar;
|
|
331
|
+
}
|
|
332
|
+
/** @deprecated */
|
|
333
|
+
function __spread() {
|
|
334
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
335
|
+
ar = ar.concat(__read(arguments[i]));
|
|
336
|
+
return ar;
|
|
337
|
+
}
|
|
338
|
+
/** @deprecated */
|
|
339
|
+
function __spreadArrays() {
|
|
340
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
341
|
+
s += arguments[i].length;
|
|
342
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
343
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
344
|
+
r[k] = a[j];
|
|
345
|
+
return r;
|
|
346
|
+
}
|
|
347
|
+
function __spreadArray(to, from, pack) {
|
|
348
|
+
if (pack || arguments.length === 2)
|
|
349
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
350
|
+
if (ar || !(i in from)) {
|
|
351
|
+
if (!ar)
|
|
352
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
353
|
+
ar[i] = from[i];
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
357
|
+
}
|
|
358
|
+
function __await(v) {
|
|
359
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
360
|
+
}
|
|
361
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
362
|
+
if (!Symbol.asyncIterator)
|
|
363
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
364
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
365
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
366
|
+
function verb(n) { if (g[n])
|
|
367
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
368
|
+
function resume(n, v) { try {
|
|
369
|
+
step(g[n](v));
|
|
370
|
+
}
|
|
371
|
+
catch (e) {
|
|
372
|
+
settle(q[0][3], e);
|
|
373
|
+
} }
|
|
374
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
375
|
+
function fulfill(value) { resume("next", value); }
|
|
376
|
+
function reject(value) { resume("throw", value); }
|
|
377
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
378
|
+
resume(q[0][0], q[0][1]); }
|
|
379
|
+
}
|
|
380
|
+
function __asyncDelegator(o) {
|
|
381
|
+
var i, p;
|
|
382
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
383
|
+
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; }
|
|
384
|
+
}
|
|
385
|
+
function __asyncValues(o) {
|
|
386
|
+
if (!Symbol.asyncIterator)
|
|
387
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
388
|
+
var m = o[Symbol.asyncIterator], i;
|
|
389
|
+
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);
|
|
390
|
+
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); }); }; }
|
|
391
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
392
|
+
}
|
|
393
|
+
function __makeTemplateObject(cooked, raw) {
|
|
394
|
+
if (Object.defineProperty) {
|
|
395
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
396
|
+
}
|
|
397
|
+
else {
|
|
398
|
+
cooked.raw = raw;
|
|
399
|
+
}
|
|
400
|
+
return cooked;
|
|
401
|
+
}
|
|
402
|
+
;
|
|
403
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
404
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
405
|
+
}) : function (o, v) {
|
|
406
|
+
o["default"] = v;
|
|
407
|
+
};
|
|
408
|
+
function __importStar(mod) {
|
|
409
|
+
if (mod && mod.__esModule)
|
|
410
|
+
return mod;
|
|
411
|
+
var result = {};
|
|
412
|
+
if (mod != null)
|
|
413
|
+
for (var k in mod)
|
|
414
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
415
|
+
__createBinding(result, mod, k);
|
|
416
|
+
__setModuleDefault(result, mod);
|
|
417
|
+
return result;
|
|
418
|
+
}
|
|
419
|
+
function __importDefault(mod) {
|
|
420
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
421
|
+
}
|
|
422
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
423
|
+
if (kind === "a" && !f)
|
|
424
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
425
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
426
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
427
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
428
|
+
}
|
|
429
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
430
|
+
if (kind === "m")
|
|
431
|
+
throw new TypeError("Private method is not writable");
|
|
432
|
+
if (kind === "a" && !f)
|
|
433
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
434
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
435
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
436
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
439
437
|
}
|
|
440
438
|
|
|
441
|
-
var nextUniqueId = 0;
|
|
442
|
-
var BbRecaptchaBase = /** @class */ (function () {
|
|
443
|
-
function BbRecaptchaBase() {
|
|
444
|
-
}
|
|
445
|
-
return BbRecaptchaBase;
|
|
446
|
-
}());
|
|
447
|
-
var BbRecaptchaMixinBase = i1.mixinGrouped(BbRecaptchaBase);
|
|
448
|
-
var RecaptchaComponent = /** @class */ (function (_super) {
|
|
449
|
-
__extends(RecaptchaComponent, _super);
|
|
450
|
-
function RecaptchaComponent(_zone, _elementRef, _loader, _config) {
|
|
451
|
-
var _this = _super.call(this) || this;
|
|
452
|
-
_this._zone = _zone;
|
|
453
|
-
_this._elementRef = _elementRef;
|
|
454
|
-
_this._loader = _loader;
|
|
455
|
-
_this._config = _config;
|
|
456
|
-
// Host bindings.
|
|
457
|
-
_this.id = "bb-recaptcha-" + nextUniqueId++;
|
|
458
|
-
// Inputs.
|
|
459
|
-
_this.siteKey = null;
|
|
460
|
-
_this.tabIndex = null;
|
|
461
|
-
_this.type = null;
|
|
462
|
-
_this.size = null;
|
|
463
|
-
_this.theme = null;
|
|
464
|
-
_this.badge = null;
|
|
465
|
-
_this.errorMode = 'default';
|
|
466
|
-
// Outputs.
|
|
467
|
-
_this.resolved = new i0.EventEmitter();
|
|
468
|
-
_this.error = new i0.EventEmitter();
|
|
469
|
-
// Data.
|
|
470
|
-
_this._widgetId = null;
|
|
471
|
-
_this._grecaptcha = null;
|
|
472
|
-
_this._executeRequested = false;
|
|
473
|
-
// Form methods.
|
|
474
|
-
_this._onChange = null;
|
|
475
|
-
_this._onTouched = null;
|
|
476
|
-
// Subscriptions.
|
|
477
|
-
_this._subscriptions = new rxjs.Subscription();
|
|
478
|
-
_this.initializeProperties();
|
|
479
|
-
return _this;
|
|
480
|
-
}
|
|
481
|
-
RecaptchaComponent.prototype.ngAfterViewInit = function () {
|
|
482
|
-
var _this = this;
|
|
483
|
-
var subscription = this._loader.ready$.subscribe(function (grecaptcha) {
|
|
484
|
-
if (grecaptcha == null || !(grecaptcha.render instanceof Function)) {
|
|
485
|
-
return;
|
|
486
|
-
}
|
|
487
|
-
_this._grecaptcha = grecaptcha;
|
|
488
|
-
_this.renderCaptchaElement();
|
|
489
|
-
});
|
|
490
|
-
this._subscriptions.add(subscription);
|
|
491
|
-
};
|
|
492
|
-
RecaptchaComponent.prototype.ngOnDestroy = function () {
|
|
493
|
-
var _a;
|
|
494
|
-
// Reset the captcha.
|
|
495
|
-
this.resetCaptchaElement();
|
|
496
|
-
// Unsubscribe of ready data.
|
|
497
|
-
(_a = this._subscriptions) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
498
|
-
};
|
|
499
|
-
RecaptchaComponent.prototype.execute = function () {
|
|
500
|
-
// Check if the captcha is invisible.
|
|
501
|
-
if (this.size !== 'invisible') {
|
|
502
|
-
return;
|
|
503
|
-
}
|
|
504
|
-
// Check if the widget exists else return.
|
|
505
|
-
if (this._widgetId == null) {
|
|
506
|
-
this._executeRequested = true;
|
|
507
|
-
return;
|
|
508
|
-
}
|
|
509
|
-
// Execute the captcha.
|
|
510
|
-
this._grecaptcha.execute(this._widgetId);
|
|
511
|
-
};
|
|
512
|
-
RecaptchaComponent.prototype.reset = function () {
|
|
513
|
-
if (this._widgetId == null) {
|
|
514
|
-
return;
|
|
515
|
-
}
|
|
516
|
-
if (this._grecaptcha.getResponse(this._widgetId)) {
|
|
517
|
-
this.resolved.emit(null);
|
|
518
|
-
}
|
|
519
|
-
this.resetCaptchaElement();
|
|
520
|
-
};
|
|
521
|
-
RecaptchaComponent.prototype.writeValue = function (value) {
|
|
522
|
-
if (value) {
|
|
523
|
-
return;
|
|
524
|
-
}
|
|
525
|
-
this.reset();
|
|
526
|
-
};
|
|
527
|
-
RecaptchaComponent.prototype.registerOnChange = function (fn) {
|
|
528
|
-
this._onChange = fn;
|
|
529
|
-
};
|
|
530
|
-
RecaptchaComponent.prototype.registerOnTouched = function (fn) {
|
|
531
|
-
this._onTouched = fn;
|
|
532
|
-
};
|
|
533
|
-
RecaptchaComponent.prototype.onResolve = function (event) {
|
|
534
|
-
var _a, _b;
|
|
535
|
-
// Emit the value.
|
|
536
|
-
this.resolved.emit(event);
|
|
537
|
-
// Call the form functions.
|
|
538
|
-
(_a = this._onChange) === null || _a === void 0 ? void 0 : _a.call(this, event);
|
|
539
|
-
(_b = this._onTouched) === null || _b === void 0 ? void 0 : _b.call(this);
|
|
540
|
-
};
|
|
541
|
-
RecaptchaComponent.prototype.renderCaptchaElement = function () {
|
|
542
|
-
var _this = this;
|
|
543
|
-
var parameters = {
|
|
544
|
-
badge: this.badge,
|
|
545
|
-
sitekey: this.siteKey,
|
|
546
|
-
size: this.size,
|
|
547
|
-
tabindex: this.tabIndex,
|
|
548
|
-
theme: this.theme,
|
|
549
|
-
type: this.type,
|
|
550
|
-
'callback': function (response) { return _this._zone.run(function () { return _this.onResolve(response); }); },
|
|
551
|
-
'expired-callback': function () { return _this._zone.run(function () { return _this.onResolve(null); }); }
|
|
552
|
-
};
|
|
553
|
-
if (this.errorMode === 'handled') {
|
|
554
|
-
parameters['error-callback'] = function () {
|
|
555
|
-
var args = [];
|
|
556
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
557
|
-
args[_i] = arguments[_i];
|
|
558
|
-
}
|
|
559
|
-
return _this._zone.run(function () { return _this.error.emit(args); });
|
|
560
|
-
};
|
|
561
|
-
}
|
|
562
|
-
this._widgetId = this._grecaptcha.render(this._elementRef.nativeElement, parameters);
|
|
563
|
-
if (this._executeRequested) {
|
|
564
|
-
this._executeRequested = false;
|
|
565
|
-
this.execute();
|
|
566
|
-
}
|
|
567
|
-
};
|
|
568
|
-
RecaptchaComponent.prototype.resetCaptchaElement = function () {
|
|
569
|
-
var _this = this;
|
|
570
|
-
if (this._widgetId == null) {
|
|
571
|
-
return;
|
|
572
|
-
}
|
|
573
|
-
this._zone.runOutsideAngular(function () { return _this._grecaptcha.reset(_this._widgetId); });
|
|
574
|
-
};
|
|
575
|
-
RecaptchaComponent.prototype.initializeProperties = function () {
|
|
576
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
577
|
-
this.siteKey = (_a = this.siteKey) !== null && _a !== void 0 ? _a : (_b = this._config) === null || _b === void 0 ? void 0 : _b.siteKey;
|
|
578
|
-
this.theme = (_c = this.theme) !== null && _c !== void 0 ? _c : (_d = this._config) === null || _d === void 0 ? void 0 : _d.theme;
|
|
579
|
-
this.size = (_e = this.size) !== null && _e !== void 0 ? _e : (_f = this._config) === null || _f === void 0 ? void 0 : _f.size;
|
|
580
|
-
this.type = (_g = this.type) !== null && _g !== void 0 ? _g : (_h = this._config) === null || _h === void 0 ? void 0 : _h.type;
|
|
581
|
-
this.badge = (_j = this.badge) !== null && _j !== void 0 ? _j : (_k = this._config) === null || _k === void 0 ? void 0 : _k.badge;
|
|
582
|
-
};
|
|
583
|
-
return RecaptchaComponent;
|
|
584
|
-
}(BbRecaptchaMixinBase));
|
|
585
|
-
RecaptchaComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
586
|
-
RecaptchaComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.
|
|
587
|
-
{
|
|
588
|
-
provide: forms.NG_VALUE_ACCESSOR,
|
|
589
|
-
useExisting: i0.forwardRef(function () { return RecaptchaComponent; }),
|
|
590
|
-
multi: true
|
|
591
|
-
}
|
|
592
|
-
], exportAs: ["bbRecaptcha"], usesInheritance: true, ngImport: i0__namespace, template: "", styles: [".bb-recaptcha{display:block}.bb-recaptcha.grouped{margin-bottom:20px}"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
593
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
594
|
-
type: i0.Component,
|
|
595
|
-
args: [{
|
|
596
|
-
selector: 'bb-recaptcha',
|
|
597
|
-
templateUrl: './recaptcha.component.html',
|
|
598
|
-
styleUrls: ['./recaptcha.component.scss'],
|
|
599
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
600
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
601
|
-
exportAs: 'bbRecaptcha',
|
|
602
|
-
providers: [
|
|
603
|
-
{
|
|
604
|
-
provide: forms.NG_VALUE_ACCESSOR,
|
|
605
|
-
useExisting: i0.forwardRef(function () { return RecaptchaComponent; }),
|
|
606
|
-
multi: true
|
|
607
|
-
}
|
|
608
|
-
],
|
|
609
|
-
host: {
|
|
610
|
-
'class': 'bb-recaptcha',
|
|
611
|
-
'[class.grouped]': 'grouped'
|
|
612
|
-
},
|
|
613
|
-
inputs: ['grouped'],
|
|
614
|
-
preserveWhitespaces: false
|
|
615
|
-
}]
|
|
616
|
-
}], ctorParameters: function () {
|
|
617
|
-
return [{ type: i0__namespace.NgZone }, { type: i0__namespace.ElementRef }, { type: RecaptchaLoader }, { type: undefined, decorators: [{
|
|
618
|
-
type: i0.Optional
|
|
619
|
-
}, {
|
|
620
|
-
type: i0.Inject,
|
|
621
|
-
args: [RECAPTCHA_CONFIG]
|
|
622
|
-
}] }];
|
|
623
|
-
}, propDecorators: { id: [{
|
|
624
|
-
type: i0.HostBinding,
|
|
625
|
-
args: ['attr.id']
|
|
626
|
-
}, {
|
|
627
|
-
type: i0.Input
|
|
628
|
-
}], siteKey: [{
|
|
629
|
-
type: i0.Input
|
|
630
|
-
}], tabIndex: [{
|
|
631
|
-
type: i0.Input
|
|
632
|
-
}], type: [{
|
|
633
|
-
type: i0.Input
|
|
634
|
-
}], size: [{
|
|
635
|
-
type: i0.Input
|
|
636
|
-
}], theme: [{
|
|
637
|
-
type: i0.Input
|
|
638
|
-
}], badge: [{
|
|
639
|
-
type: i0.Input
|
|
640
|
-
}], errorMode: [{
|
|
641
|
-
type: i0.Input
|
|
642
|
-
}], resolved: [{
|
|
643
|
-
type: i0.Output
|
|
644
|
-
}], error: [{
|
|
645
|
-
type: i0.Output
|
|
439
|
+
var nextUniqueId = 0;
|
|
440
|
+
var BbRecaptchaBase = /** @class */ (function () {
|
|
441
|
+
function BbRecaptchaBase() {
|
|
442
|
+
}
|
|
443
|
+
return BbRecaptchaBase;
|
|
444
|
+
}());
|
|
445
|
+
var BbRecaptchaMixinBase = i1.mixinGrouped(BbRecaptchaBase);
|
|
446
|
+
var RecaptchaComponent = /** @class */ (function (_super) {
|
|
447
|
+
__extends(RecaptchaComponent, _super);
|
|
448
|
+
function RecaptchaComponent(_zone, _elementRef, _loader, _config) {
|
|
449
|
+
var _this = _super.call(this) || this;
|
|
450
|
+
_this._zone = _zone;
|
|
451
|
+
_this._elementRef = _elementRef;
|
|
452
|
+
_this._loader = _loader;
|
|
453
|
+
_this._config = _config;
|
|
454
|
+
// Host bindings.
|
|
455
|
+
_this.id = "bb-recaptcha-" + nextUniqueId++;
|
|
456
|
+
// Inputs.
|
|
457
|
+
_this.siteKey = null;
|
|
458
|
+
_this.tabIndex = null;
|
|
459
|
+
_this.type = null;
|
|
460
|
+
_this.size = null;
|
|
461
|
+
_this.theme = null;
|
|
462
|
+
_this.badge = null;
|
|
463
|
+
_this.errorMode = 'default';
|
|
464
|
+
// Outputs.
|
|
465
|
+
_this.resolved = new i0.EventEmitter();
|
|
466
|
+
_this.error = new i0.EventEmitter();
|
|
467
|
+
// Data.
|
|
468
|
+
_this._widgetId = null;
|
|
469
|
+
_this._grecaptcha = null;
|
|
470
|
+
_this._executeRequested = false;
|
|
471
|
+
// Form methods.
|
|
472
|
+
_this._onChange = null;
|
|
473
|
+
_this._onTouched = null;
|
|
474
|
+
// Subscriptions.
|
|
475
|
+
_this._subscriptions = new rxjs.Subscription();
|
|
476
|
+
_this.initializeProperties();
|
|
477
|
+
return _this;
|
|
478
|
+
}
|
|
479
|
+
RecaptchaComponent.prototype.ngAfterViewInit = function () {
|
|
480
|
+
var _this = this;
|
|
481
|
+
var subscription = this._loader.ready$.subscribe(function (grecaptcha) {
|
|
482
|
+
if (grecaptcha == null || !(grecaptcha.render instanceof Function)) {
|
|
483
|
+
return;
|
|
484
|
+
}
|
|
485
|
+
_this._grecaptcha = grecaptcha;
|
|
486
|
+
_this.renderCaptchaElement();
|
|
487
|
+
});
|
|
488
|
+
this._subscriptions.add(subscription);
|
|
489
|
+
};
|
|
490
|
+
RecaptchaComponent.prototype.ngOnDestroy = function () {
|
|
491
|
+
var _a;
|
|
492
|
+
// Reset the captcha.
|
|
493
|
+
this.resetCaptchaElement();
|
|
494
|
+
// Unsubscribe of ready data.
|
|
495
|
+
(_a = this._subscriptions) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
496
|
+
};
|
|
497
|
+
RecaptchaComponent.prototype.execute = function () {
|
|
498
|
+
// Check if the captcha is invisible.
|
|
499
|
+
if (this.size !== 'invisible') {
|
|
500
|
+
return;
|
|
501
|
+
}
|
|
502
|
+
// Check if the widget exists else return.
|
|
503
|
+
if (this._widgetId == null) {
|
|
504
|
+
this._executeRequested = true;
|
|
505
|
+
return;
|
|
506
|
+
}
|
|
507
|
+
// Execute the captcha.
|
|
508
|
+
this._grecaptcha.execute(this._widgetId);
|
|
509
|
+
};
|
|
510
|
+
RecaptchaComponent.prototype.reset = function () {
|
|
511
|
+
if (this._widgetId == null) {
|
|
512
|
+
return;
|
|
513
|
+
}
|
|
514
|
+
if (this._grecaptcha.getResponse(this._widgetId)) {
|
|
515
|
+
this.resolved.emit(null);
|
|
516
|
+
}
|
|
517
|
+
this.resetCaptchaElement();
|
|
518
|
+
};
|
|
519
|
+
RecaptchaComponent.prototype.writeValue = function (value) {
|
|
520
|
+
if (value) {
|
|
521
|
+
return;
|
|
522
|
+
}
|
|
523
|
+
this.reset();
|
|
524
|
+
};
|
|
525
|
+
RecaptchaComponent.prototype.registerOnChange = function (fn) {
|
|
526
|
+
this._onChange = fn;
|
|
527
|
+
};
|
|
528
|
+
RecaptchaComponent.prototype.registerOnTouched = function (fn) {
|
|
529
|
+
this._onTouched = fn;
|
|
530
|
+
};
|
|
531
|
+
RecaptchaComponent.prototype.onResolve = function (event) {
|
|
532
|
+
var _a, _b;
|
|
533
|
+
// Emit the value.
|
|
534
|
+
this.resolved.emit(event);
|
|
535
|
+
// Call the form functions.
|
|
536
|
+
(_a = this._onChange) === null || _a === void 0 ? void 0 : _a.call(this, event);
|
|
537
|
+
(_b = this._onTouched) === null || _b === void 0 ? void 0 : _b.call(this);
|
|
538
|
+
};
|
|
539
|
+
RecaptchaComponent.prototype.renderCaptchaElement = function () {
|
|
540
|
+
var _this = this;
|
|
541
|
+
var parameters = {
|
|
542
|
+
badge: this.badge,
|
|
543
|
+
sitekey: this.siteKey,
|
|
544
|
+
size: this.size,
|
|
545
|
+
tabindex: this.tabIndex,
|
|
546
|
+
theme: this.theme,
|
|
547
|
+
type: this.type,
|
|
548
|
+
'callback': function (response) { return _this._zone.run(function () { return _this.onResolve(response); }); },
|
|
549
|
+
'expired-callback': function () { return _this._zone.run(function () { return _this.onResolve(null); }); }
|
|
550
|
+
};
|
|
551
|
+
if (this.errorMode === 'handled') {
|
|
552
|
+
parameters['error-callback'] = function () {
|
|
553
|
+
var args = [];
|
|
554
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
555
|
+
args[_i] = arguments[_i];
|
|
556
|
+
}
|
|
557
|
+
return _this._zone.run(function () { return _this.error.emit(args); });
|
|
558
|
+
};
|
|
559
|
+
}
|
|
560
|
+
this._widgetId = this._grecaptcha.render(this._elementRef.nativeElement, parameters);
|
|
561
|
+
if (this._executeRequested) {
|
|
562
|
+
this._executeRequested = false;
|
|
563
|
+
this.execute();
|
|
564
|
+
}
|
|
565
|
+
};
|
|
566
|
+
RecaptchaComponent.prototype.resetCaptchaElement = function () {
|
|
567
|
+
var _this = this;
|
|
568
|
+
if (this._widgetId == null) {
|
|
569
|
+
return;
|
|
570
|
+
}
|
|
571
|
+
this._zone.runOutsideAngular(function () { return _this._grecaptcha.reset(_this._widgetId); });
|
|
572
|
+
};
|
|
573
|
+
RecaptchaComponent.prototype.initializeProperties = function () {
|
|
574
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
575
|
+
this.siteKey = (_a = this.siteKey) !== null && _a !== void 0 ? _a : (_b = this._config) === null || _b === void 0 ? void 0 : _b.siteKey;
|
|
576
|
+
this.theme = (_c = this.theme) !== null && _c !== void 0 ? _c : (_d = this._config) === null || _d === void 0 ? void 0 : _d.theme;
|
|
577
|
+
this.size = (_e = this.size) !== null && _e !== void 0 ? _e : (_f = this._config) === null || _f === void 0 ? void 0 : _f.size;
|
|
578
|
+
this.type = (_g = this.type) !== null && _g !== void 0 ? _g : (_h = this._config) === null || _h === void 0 ? void 0 : _h.type;
|
|
579
|
+
this.badge = (_j = this.badge) !== null && _j !== void 0 ? _j : (_k = this._config) === null || _k === void 0 ? void 0 : _k.badge;
|
|
580
|
+
};
|
|
581
|
+
return RecaptchaComponent;
|
|
582
|
+
}(BbRecaptchaMixinBase));
|
|
583
|
+
RecaptchaComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: RecaptchaComponent, deps: [{ token: i0__namespace.NgZone }, { token: i0__namespace.ElementRef }, { token: RecaptchaLoader }, { token: RECAPTCHA_CONFIG, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
584
|
+
RecaptchaComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.10", type: RecaptchaComponent, selector: "bb-recaptcha", inputs: { grouped: "grouped", id: "id", siteKey: "siteKey", tabIndex: "tabIndex", type: "type", size: "size", theme: "theme", badge: "badge", errorMode: "errorMode" }, outputs: { resolved: "resolved", error: "error" }, host: { properties: { "class.grouped": "grouped", "attr.id": "this.id" }, classAttribute: "bb-recaptcha" }, providers: [
|
|
585
|
+
{
|
|
586
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
587
|
+
useExisting: i0.forwardRef(function () { return RecaptchaComponent; }),
|
|
588
|
+
multi: true
|
|
589
|
+
}
|
|
590
|
+
], exportAs: ["bbRecaptcha"], usesInheritance: true, ngImport: i0__namespace, template: "", styles: [".bb-recaptcha{display:block}.bb-recaptcha.grouped{margin-bottom:20px}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
591
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: RecaptchaComponent, decorators: [{
|
|
592
|
+
type: i0.Component,
|
|
593
|
+
args: [{
|
|
594
|
+
selector: 'bb-recaptcha',
|
|
595
|
+
templateUrl: './recaptcha.component.html',
|
|
596
|
+
styleUrls: ['./recaptcha.component.scss'],
|
|
597
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
598
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
599
|
+
exportAs: 'bbRecaptcha',
|
|
600
|
+
providers: [
|
|
601
|
+
{
|
|
602
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
603
|
+
useExisting: i0.forwardRef(function () { return RecaptchaComponent; }),
|
|
604
|
+
multi: true
|
|
605
|
+
}
|
|
606
|
+
],
|
|
607
|
+
host: {
|
|
608
|
+
'class': 'bb-recaptcha',
|
|
609
|
+
'[class.grouped]': 'grouped'
|
|
610
|
+
},
|
|
611
|
+
inputs: ['grouped'],
|
|
612
|
+
preserveWhitespaces: false
|
|
613
|
+
}]
|
|
614
|
+
}], ctorParameters: function () {
|
|
615
|
+
return [{ type: i0__namespace.NgZone }, { type: i0__namespace.ElementRef }, { type: RecaptchaLoader }, { type: undefined, decorators: [{
|
|
616
|
+
type: i0.Optional
|
|
617
|
+
}, {
|
|
618
|
+
type: i0.Inject,
|
|
619
|
+
args: [RECAPTCHA_CONFIG]
|
|
620
|
+
}] }];
|
|
621
|
+
}, propDecorators: { id: [{
|
|
622
|
+
type: i0.HostBinding,
|
|
623
|
+
args: ['attr.id']
|
|
624
|
+
}, {
|
|
625
|
+
type: i0.Input
|
|
626
|
+
}], siteKey: [{
|
|
627
|
+
type: i0.Input
|
|
628
|
+
}], tabIndex: [{
|
|
629
|
+
type: i0.Input
|
|
630
|
+
}], type: [{
|
|
631
|
+
type: i0.Input
|
|
632
|
+
}], size: [{
|
|
633
|
+
type: i0.Input
|
|
634
|
+
}], theme: [{
|
|
635
|
+
type: i0.Input
|
|
636
|
+
}], badge: [{
|
|
637
|
+
type: i0.Input
|
|
638
|
+
}], errorMode: [{
|
|
639
|
+
type: i0.Input
|
|
640
|
+
}], resolved: [{
|
|
641
|
+
type: i0.Output
|
|
642
|
+
}], error: [{
|
|
643
|
+
type: i0.Output
|
|
646
644
|
}] } });
|
|
647
645
|
|
|
648
|
-
var RecaptchaModule = /** @class */ (function () {
|
|
649
|
-
function RecaptchaModule() {
|
|
650
|
-
}
|
|
651
|
-
RecaptchaModule.forRoot = function (config) {
|
|
652
|
-
return {
|
|
653
|
-
ngModule: RecaptchaModule,
|
|
654
|
-
providers: [
|
|
655
|
-
{ provide: RECAPTCHA_CONFIG, useValue: config },
|
|
656
|
-
RecaptchaLoader
|
|
657
|
-
]
|
|
658
|
-
};
|
|
659
|
-
};
|
|
660
|
-
return RecaptchaModule;
|
|
661
|
-
}());
|
|
662
|
-
RecaptchaModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
663
|
-
RecaptchaModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.
|
|
664
|
-
RecaptchaModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.
|
|
665
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
666
|
-
type: i0.NgModule,
|
|
667
|
-
args: [{
|
|
668
|
-
declarations: [RecaptchaComponent],
|
|
669
|
-
exports: [RecaptchaComponent]
|
|
670
|
-
}]
|
|
646
|
+
var RecaptchaModule = /** @class */ (function () {
|
|
647
|
+
function RecaptchaModule() {
|
|
648
|
+
}
|
|
649
|
+
RecaptchaModule.forRoot = function (config) {
|
|
650
|
+
return {
|
|
651
|
+
ngModule: RecaptchaModule,
|
|
652
|
+
providers: [
|
|
653
|
+
{ provide: RECAPTCHA_CONFIG, useValue: config },
|
|
654
|
+
RecaptchaLoader
|
|
655
|
+
]
|
|
656
|
+
};
|
|
657
|
+
};
|
|
658
|
+
return RecaptchaModule;
|
|
659
|
+
}());
|
|
660
|
+
RecaptchaModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: RecaptchaModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
661
|
+
RecaptchaModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: RecaptchaModule, declarations: [RecaptchaComponent], exports: [RecaptchaComponent] });
|
|
662
|
+
RecaptchaModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: RecaptchaModule });
|
|
663
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: RecaptchaModule, decorators: [{
|
|
664
|
+
type: i0.NgModule,
|
|
665
|
+
args: [{
|
|
666
|
+
declarations: [RecaptchaComponent],
|
|
667
|
+
exports: [RecaptchaComponent]
|
|
668
|
+
}]
|
|
671
669
|
}] });
|
|
672
670
|
|
|
673
|
-
/**
|
|
674
|
-
* Generated bundle index. Do not edit.
|
|
671
|
+
/**
|
|
672
|
+
* Generated bundle index. Do not edit.
|
|
675
673
|
*/
|
|
676
674
|
|
|
677
675
|
exports.RECAPTCHA_CONFIG = RECAPTCHA_CONFIG;
|
|
@@ -681,5 +679,5 @@
|
|
|
681
679
|
|
|
682
680
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
683
681
|
|
|
684
|
-
}))
|
|
682
|
+
}));
|
|
685
683
|
//# sourceMappingURL=bravobit-bb-foundation-recaptcha.umd.js.map
|