@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/http'), require('rxjs/operators'), require('rxjs')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@bravobit/bb-foundation/http', ['exports', '@angular/core', '@angular/common/http', 'rxjs/operators', 'rxjs'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.bravobit = global.bravobit || {}, global.bravobit[
|
|
5
|
-
}(this, (function (exports, i0, http, operators, rxjs) { '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"].http = {}), global.ng.core, global.ng.common.http, global.rxjs.operators, global.rxjs));
|
|
5
|
+
})(this, (function (exports, i0, http, operators, rxjs) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -13,514 +13,512 @@
|
|
|
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
|
|
|
27
25
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
26
|
|
|
29
|
-
var HttpConfig = /** @class */ (function () {
|
|
30
|
-
function HttpConfig(data) {
|
|
31
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
32
|
-
this.parseAliases = function (value, standardAlias) {
|
|
33
|
-
var _h;
|
|
34
|
-
var _a;
|
|
35
|
-
if (typeof value === 'string') {
|
|
36
|
-
value = (_h = {}, _h[standardAlias] = value, _h);
|
|
37
|
-
}
|
|
38
|
-
if (i0.isDevMode()) {
|
|
39
|
-
var stringRegex = /^[a-zA-Z]+$/;
|
|
40
|
-
for (var alias in value) {
|
|
41
|
-
if (value.hasOwnProperty(alias) && !stringRegex.test(alias)) {
|
|
42
|
-
(_a = console === null || console === void 0 ? void 0 : console.warn) === null || _a === void 0 ? void 0 : _a.call(console, "[HttpModule]: Invalid HTTP-alias in HttpConfig named \"" + alias + "\"; only latin characters should be used.");
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
return value;
|
|
47
|
-
};
|
|
48
|
-
// Get the data from the config.
|
|
49
|
-
this.prefix = (_b = (_a = data === null || data === void 0 ? void 0 : data.alias) === null || _a === void 0 ? void 0 : _a.prefix) !== null && _b !== void 0 ? _b : '$';
|
|
50
|
-
this.disableErrorParsing = (_c = data === null || data === void 0 ? void 0 : data.disableErrorParsing) !== null && _c !== void 0 ? _c : false;
|
|
51
|
-
// Parse the aliases.
|
|
52
|
-
var standardAlias = (_e = (_d = data === null || data === void 0 ? void 0 : data.alias) === null || _d === void 0 ? void 0 : _d.standard) !== null && _e !== void 0 ? _e : 'api';
|
|
53
|
-
this.aliases = this.parseAliases(data === null || data === void 0 ? void 0 : data.url, standardAlias);
|
|
54
|
-
// Get the default alias.
|
|
55
|
-
var firstAvailableAlias = (_g = Object.keys((_f = this.aliases) !== null && _f !== void 0 ? _f : {})) === null || _g === void 0 ? void 0 : _g[0];
|
|
56
|
-
this.defaultAlias = "" + this.prefix + firstAvailableAlias;
|
|
57
|
-
}
|
|
58
|
-
return HttpConfig;
|
|
27
|
+
var HttpConfig = /** @class */ (function () {
|
|
28
|
+
function HttpConfig(data) {
|
|
29
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
30
|
+
this.parseAliases = function (value, standardAlias) {
|
|
31
|
+
var _h;
|
|
32
|
+
var _a;
|
|
33
|
+
if (typeof value === 'string') {
|
|
34
|
+
value = (_h = {}, _h[standardAlias] = value, _h);
|
|
35
|
+
}
|
|
36
|
+
if (i0.isDevMode()) {
|
|
37
|
+
var stringRegex = /^[a-zA-Z]+$/;
|
|
38
|
+
for (var alias in value) {
|
|
39
|
+
if (value.hasOwnProperty(alias) && !stringRegex.test(alias)) {
|
|
40
|
+
(_a = console === null || console === void 0 ? void 0 : console.warn) === null || _a === void 0 ? void 0 : _a.call(console, "[HttpModule]: Invalid HTTP-alias in HttpConfig named \"" + alias + "\"; only latin characters should be used.");
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return value;
|
|
45
|
+
};
|
|
46
|
+
// Get the data from the config.
|
|
47
|
+
this.prefix = (_b = (_a = data === null || data === void 0 ? void 0 : data.alias) === null || _a === void 0 ? void 0 : _a.prefix) !== null && _b !== void 0 ? _b : '$';
|
|
48
|
+
this.disableErrorParsing = (_c = data === null || data === void 0 ? void 0 : data.disableErrorParsing) !== null && _c !== void 0 ? _c : false;
|
|
49
|
+
// Parse the aliases.
|
|
50
|
+
var standardAlias = (_e = (_d = data === null || data === void 0 ? void 0 : data.alias) === null || _d === void 0 ? void 0 : _d.standard) !== null && _e !== void 0 ? _e : 'api';
|
|
51
|
+
this.aliases = this.parseAliases(data === null || data === void 0 ? void 0 : data.url, standardAlias);
|
|
52
|
+
// Get the default alias.
|
|
53
|
+
var firstAvailableAlias = (_g = Object.keys((_f = this.aliases) !== null && _f !== void 0 ? _f : {})) === null || _g === void 0 ? void 0 : _g[0];
|
|
54
|
+
this.defaultAlias = "" + this.prefix + firstAvailableAlias;
|
|
55
|
+
}
|
|
56
|
+
return HttpConfig;
|
|
59
57
|
}());
|
|
60
58
|
|
|
61
|
-
/*! *****************************************************************************
|
|
62
|
-
Copyright (c) Microsoft Corporation.
|
|
63
|
-
|
|
64
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
65
|
-
purpose with or without fee is hereby granted.
|
|
66
|
-
|
|
67
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
68
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
69
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
70
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
71
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
72
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
73
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
74
|
-
***************************************************************************** */
|
|
75
|
-
/* global Reflect, Promise */
|
|
76
|
-
var extendStatics = function (d, b) {
|
|
77
|
-
extendStatics = Object.setPrototypeOf ||
|
|
78
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
79
|
-
function (d, b) { for (var p in b)
|
|
80
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
81
|
-
d[p] = b[p]; };
|
|
82
|
-
return extendStatics(d, b);
|
|
83
|
-
};
|
|
84
|
-
function __extends(d, b) {
|
|
85
|
-
if (typeof b !== "function" && b !== null)
|
|
86
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
87
|
-
extendStatics(d, b);
|
|
88
|
-
function __() { this.constructor = d; }
|
|
89
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
90
|
-
}
|
|
91
|
-
var __assign = function () {
|
|
92
|
-
__assign = Object.assign || function __assign(t) {
|
|
93
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
94
|
-
s = arguments[i];
|
|
95
|
-
for (var p in s)
|
|
96
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
97
|
-
t[p] = s[p];
|
|
98
|
-
}
|
|
99
|
-
return t;
|
|
100
|
-
};
|
|
101
|
-
return __assign.apply(this, arguments);
|
|
102
|
-
};
|
|
103
|
-
function __rest(s, e) {
|
|
104
|
-
var t = {};
|
|
105
|
-
for (var p in s)
|
|
106
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
107
|
-
t[p] = s[p];
|
|
108
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
109
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
110
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
111
|
-
t[p[i]] = s[p[i]];
|
|
112
|
-
}
|
|
113
|
-
return t;
|
|
114
|
-
}
|
|
115
|
-
function __decorate(decorators, target, key, desc) {
|
|
116
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
117
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
118
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
119
|
-
else
|
|
120
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
121
|
-
if (d = decorators[i])
|
|
122
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
123
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
124
|
-
}
|
|
125
|
-
function __param(paramIndex, decorator) {
|
|
126
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
127
|
-
}
|
|
128
|
-
function __metadata(metadataKey, metadataValue) {
|
|
129
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
130
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
131
|
-
}
|
|
132
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
133
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
134
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
135
|
-
function fulfilled(value) { try {
|
|
136
|
-
step(generator.next(value));
|
|
137
|
-
}
|
|
138
|
-
catch (e) {
|
|
139
|
-
reject(e);
|
|
140
|
-
} }
|
|
141
|
-
function rejected(value) { try {
|
|
142
|
-
step(generator["throw"](value));
|
|
143
|
-
}
|
|
144
|
-
catch (e) {
|
|
145
|
-
reject(e);
|
|
146
|
-
} }
|
|
147
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
148
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
function __generator(thisArg, body) {
|
|
152
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
153
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
154
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
155
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
156
|
-
function step(op) {
|
|
157
|
-
if (f)
|
|
158
|
-
throw new TypeError("Generator is already executing.");
|
|
159
|
-
while (_)
|
|
160
|
-
try {
|
|
161
|
-
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)
|
|
162
|
-
return t;
|
|
163
|
-
if (y = 0, t)
|
|
164
|
-
op = [op[0] & 2, t.value];
|
|
165
|
-
switch (op[0]) {
|
|
166
|
-
case 0:
|
|
167
|
-
case 1:
|
|
168
|
-
t = op;
|
|
169
|
-
break;
|
|
170
|
-
case 4:
|
|
171
|
-
_.label++;
|
|
172
|
-
return { value: op[1], done: false };
|
|
173
|
-
case 5:
|
|
174
|
-
_.label++;
|
|
175
|
-
y = op[1];
|
|
176
|
-
op = [0];
|
|
177
|
-
continue;
|
|
178
|
-
case 7:
|
|
179
|
-
op = _.ops.pop();
|
|
180
|
-
_.trys.pop();
|
|
181
|
-
continue;
|
|
182
|
-
default:
|
|
183
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
184
|
-
_ = 0;
|
|
185
|
-
continue;
|
|
186
|
-
}
|
|
187
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
188
|
-
_.label = op[1];
|
|
189
|
-
break;
|
|
190
|
-
}
|
|
191
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
192
|
-
_.label = t[1];
|
|
193
|
-
t = op;
|
|
194
|
-
break;
|
|
195
|
-
}
|
|
196
|
-
if (t && _.label < t[2]) {
|
|
197
|
-
_.label = t[2];
|
|
198
|
-
_.ops.push(op);
|
|
199
|
-
break;
|
|
200
|
-
}
|
|
201
|
-
if (t[2])
|
|
202
|
-
_.ops.pop();
|
|
203
|
-
_.trys.pop();
|
|
204
|
-
continue;
|
|
205
|
-
}
|
|
206
|
-
op = body.call(thisArg, _);
|
|
207
|
-
}
|
|
208
|
-
catch (e) {
|
|
209
|
-
op = [6, e];
|
|
210
|
-
y = 0;
|
|
211
|
-
}
|
|
212
|
-
finally {
|
|
213
|
-
f = t = 0;
|
|
214
|
-
}
|
|
215
|
-
if (op[0] & 5)
|
|
216
|
-
throw op[1];
|
|
217
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
221
|
-
if (k2 === undefined)
|
|
222
|
-
k2 = k;
|
|
223
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
224
|
-
}) : (function (o, m, k, k2) {
|
|
225
|
-
if (k2 === undefined)
|
|
226
|
-
k2 = k;
|
|
227
|
-
o[k2] = m[k];
|
|
228
|
-
});
|
|
229
|
-
function __exportStar(m, o) {
|
|
230
|
-
for (var p in m)
|
|
231
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
232
|
-
__createBinding(o, m, p);
|
|
233
|
-
}
|
|
234
|
-
function __values(o) {
|
|
235
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
236
|
-
if (m)
|
|
237
|
-
return m.call(o);
|
|
238
|
-
if (o && typeof o.length === "number")
|
|
239
|
-
return {
|
|
240
|
-
next: function () {
|
|
241
|
-
if (o && i >= o.length)
|
|
242
|
-
o = void 0;
|
|
243
|
-
return { value: o && o[i++], done: !o };
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
247
|
-
}
|
|
248
|
-
function __read(o, n) {
|
|
249
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
250
|
-
if (!m)
|
|
251
|
-
return o;
|
|
252
|
-
var i = m.call(o), r, ar = [], e;
|
|
253
|
-
try {
|
|
254
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
255
|
-
ar.push(r.value);
|
|
256
|
-
}
|
|
257
|
-
catch (error) {
|
|
258
|
-
e = { error: error };
|
|
259
|
-
}
|
|
260
|
-
finally {
|
|
261
|
-
try {
|
|
262
|
-
if (r && !r.done && (m = i["return"]))
|
|
263
|
-
m.call(i);
|
|
264
|
-
}
|
|
265
|
-
finally {
|
|
266
|
-
if (e)
|
|
267
|
-
throw e.error;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
return ar;
|
|
271
|
-
}
|
|
272
|
-
/** @deprecated */
|
|
273
|
-
function __spread() {
|
|
274
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
275
|
-
ar = ar.concat(__read(arguments[i]));
|
|
276
|
-
return ar;
|
|
277
|
-
}
|
|
278
|
-
/** @deprecated */
|
|
279
|
-
function __spreadArrays() {
|
|
280
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
281
|
-
s += arguments[i].length;
|
|
282
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
283
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
284
|
-
r[k] = a[j];
|
|
285
|
-
return r;
|
|
286
|
-
}
|
|
287
|
-
function __spreadArray(to, from, pack) {
|
|
288
|
-
if (pack || arguments.length === 2)
|
|
289
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
290
|
-
if (ar || !(i in from)) {
|
|
291
|
-
if (!ar)
|
|
292
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
293
|
-
ar[i] = from[i];
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
return to.concat(ar || from);
|
|
297
|
-
}
|
|
298
|
-
function __await(v) {
|
|
299
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
300
|
-
}
|
|
301
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
302
|
-
if (!Symbol.asyncIterator)
|
|
303
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
304
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
305
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
306
|
-
function verb(n) { if (g[n])
|
|
307
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
308
|
-
function resume(n, v) { try {
|
|
309
|
-
step(g[n](v));
|
|
310
|
-
}
|
|
311
|
-
catch (e) {
|
|
312
|
-
settle(q[0][3], e);
|
|
313
|
-
} }
|
|
314
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
315
|
-
function fulfill(value) { resume("next", value); }
|
|
316
|
-
function reject(value) { resume("throw", value); }
|
|
317
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
318
|
-
resume(q[0][0], q[0][1]); }
|
|
319
|
-
}
|
|
320
|
-
function __asyncDelegator(o) {
|
|
321
|
-
var i, p;
|
|
322
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
323
|
-
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; }
|
|
324
|
-
}
|
|
325
|
-
function __asyncValues(o) {
|
|
326
|
-
if (!Symbol.asyncIterator)
|
|
327
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
328
|
-
var m = o[Symbol.asyncIterator], i;
|
|
329
|
-
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);
|
|
330
|
-
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); }); }; }
|
|
331
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
332
|
-
}
|
|
333
|
-
function __makeTemplateObject(cooked, raw) {
|
|
334
|
-
if (Object.defineProperty) {
|
|
335
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
336
|
-
}
|
|
337
|
-
else {
|
|
338
|
-
cooked.raw = raw;
|
|
339
|
-
}
|
|
340
|
-
return cooked;
|
|
341
|
-
}
|
|
342
|
-
;
|
|
343
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
344
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
345
|
-
}) : function (o, v) {
|
|
346
|
-
o["default"] = v;
|
|
347
|
-
};
|
|
348
|
-
function __importStar(mod) {
|
|
349
|
-
if (mod && mod.__esModule)
|
|
350
|
-
return mod;
|
|
351
|
-
var result = {};
|
|
352
|
-
if (mod != null)
|
|
353
|
-
for (var k in mod)
|
|
354
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
355
|
-
__createBinding(result, mod, k);
|
|
356
|
-
__setModuleDefault(result, mod);
|
|
357
|
-
return result;
|
|
358
|
-
}
|
|
359
|
-
function __importDefault(mod) {
|
|
360
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
361
|
-
}
|
|
362
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
363
|
-
if (kind === "a" && !f)
|
|
364
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
365
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
366
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
367
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
368
|
-
}
|
|
369
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
370
|
-
if (kind === "m")
|
|
371
|
-
throw new TypeError("Private method is not writable");
|
|
372
|
-
if (kind === "a" && !f)
|
|
373
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
374
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
375
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
376
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
59
|
+
/*! *****************************************************************************
|
|
60
|
+
Copyright (c) Microsoft Corporation.
|
|
61
|
+
|
|
62
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
63
|
+
purpose with or without fee is hereby granted.
|
|
64
|
+
|
|
65
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
66
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
67
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
68
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
69
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
70
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
71
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
72
|
+
***************************************************************************** */
|
|
73
|
+
/* global Reflect, Promise */
|
|
74
|
+
var extendStatics = function (d, b) {
|
|
75
|
+
extendStatics = Object.setPrototypeOf ||
|
|
76
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
77
|
+
function (d, b) { for (var p in b)
|
|
78
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
79
|
+
d[p] = b[p]; };
|
|
80
|
+
return extendStatics(d, b);
|
|
81
|
+
};
|
|
82
|
+
function __extends(d, b) {
|
|
83
|
+
if (typeof b !== "function" && b !== null)
|
|
84
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
85
|
+
extendStatics(d, b);
|
|
86
|
+
function __() { this.constructor = d; }
|
|
87
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
88
|
+
}
|
|
89
|
+
var __assign = function () {
|
|
90
|
+
__assign = Object.assign || function __assign(t) {
|
|
91
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
92
|
+
s = arguments[i];
|
|
93
|
+
for (var p in s)
|
|
94
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
95
|
+
t[p] = s[p];
|
|
96
|
+
}
|
|
97
|
+
return t;
|
|
98
|
+
};
|
|
99
|
+
return __assign.apply(this, arguments);
|
|
100
|
+
};
|
|
101
|
+
function __rest(s, e) {
|
|
102
|
+
var t = {};
|
|
103
|
+
for (var p in s)
|
|
104
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
105
|
+
t[p] = s[p];
|
|
106
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
107
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
108
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
109
|
+
t[p[i]] = s[p[i]];
|
|
110
|
+
}
|
|
111
|
+
return t;
|
|
112
|
+
}
|
|
113
|
+
function __decorate(decorators, target, key, desc) {
|
|
114
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
115
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
116
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
117
|
+
else
|
|
118
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
119
|
+
if (d = decorators[i])
|
|
120
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
121
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
122
|
+
}
|
|
123
|
+
function __param(paramIndex, decorator) {
|
|
124
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
125
|
+
}
|
|
126
|
+
function __metadata(metadataKey, metadataValue) {
|
|
127
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
128
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
129
|
+
}
|
|
130
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
131
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
132
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
133
|
+
function fulfilled(value) { try {
|
|
134
|
+
step(generator.next(value));
|
|
135
|
+
}
|
|
136
|
+
catch (e) {
|
|
137
|
+
reject(e);
|
|
138
|
+
} }
|
|
139
|
+
function rejected(value) { try {
|
|
140
|
+
step(generator["throw"](value));
|
|
141
|
+
}
|
|
142
|
+
catch (e) {
|
|
143
|
+
reject(e);
|
|
144
|
+
} }
|
|
145
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
146
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
function __generator(thisArg, body) {
|
|
150
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
151
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
152
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
153
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
154
|
+
function step(op) {
|
|
155
|
+
if (f)
|
|
156
|
+
throw new TypeError("Generator is already executing.");
|
|
157
|
+
while (_)
|
|
158
|
+
try {
|
|
159
|
+
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)
|
|
160
|
+
return t;
|
|
161
|
+
if (y = 0, t)
|
|
162
|
+
op = [op[0] & 2, t.value];
|
|
163
|
+
switch (op[0]) {
|
|
164
|
+
case 0:
|
|
165
|
+
case 1:
|
|
166
|
+
t = op;
|
|
167
|
+
break;
|
|
168
|
+
case 4:
|
|
169
|
+
_.label++;
|
|
170
|
+
return { value: op[1], done: false };
|
|
171
|
+
case 5:
|
|
172
|
+
_.label++;
|
|
173
|
+
y = op[1];
|
|
174
|
+
op = [0];
|
|
175
|
+
continue;
|
|
176
|
+
case 7:
|
|
177
|
+
op = _.ops.pop();
|
|
178
|
+
_.trys.pop();
|
|
179
|
+
continue;
|
|
180
|
+
default:
|
|
181
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
182
|
+
_ = 0;
|
|
183
|
+
continue;
|
|
184
|
+
}
|
|
185
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
186
|
+
_.label = op[1];
|
|
187
|
+
break;
|
|
188
|
+
}
|
|
189
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
190
|
+
_.label = t[1];
|
|
191
|
+
t = op;
|
|
192
|
+
break;
|
|
193
|
+
}
|
|
194
|
+
if (t && _.label < t[2]) {
|
|
195
|
+
_.label = t[2];
|
|
196
|
+
_.ops.push(op);
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
if (t[2])
|
|
200
|
+
_.ops.pop();
|
|
201
|
+
_.trys.pop();
|
|
202
|
+
continue;
|
|
203
|
+
}
|
|
204
|
+
op = body.call(thisArg, _);
|
|
205
|
+
}
|
|
206
|
+
catch (e) {
|
|
207
|
+
op = [6, e];
|
|
208
|
+
y = 0;
|
|
209
|
+
}
|
|
210
|
+
finally {
|
|
211
|
+
f = t = 0;
|
|
212
|
+
}
|
|
213
|
+
if (op[0] & 5)
|
|
214
|
+
throw op[1];
|
|
215
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
219
|
+
if (k2 === undefined)
|
|
220
|
+
k2 = k;
|
|
221
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
222
|
+
}) : (function (o, m, k, k2) {
|
|
223
|
+
if (k2 === undefined)
|
|
224
|
+
k2 = k;
|
|
225
|
+
o[k2] = m[k];
|
|
226
|
+
});
|
|
227
|
+
function __exportStar(m, o) {
|
|
228
|
+
for (var p in m)
|
|
229
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
230
|
+
__createBinding(o, m, p);
|
|
231
|
+
}
|
|
232
|
+
function __values(o) {
|
|
233
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
234
|
+
if (m)
|
|
235
|
+
return m.call(o);
|
|
236
|
+
if (o && typeof o.length === "number")
|
|
237
|
+
return {
|
|
238
|
+
next: function () {
|
|
239
|
+
if (o && i >= o.length)
|
|
240
|
+
o = void 0;
|
|
241
|
+
return { value: o && o[i++], done: !o };
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
245
|
+
}
|
|
246
|
+
function __read(o, n) {
|
|
247
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
248
|
+
if (!m)
|
|
249
|
+
return o;
|
|
250
|
+
var i = m.call(o), r, ar = [], e;
|
|
251
|
+
try {
|
|
252
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
253
|
+
ar.push(r.value);
|
|
254
|
+
}
|
|
255
|
+
catch (error) {
|
|
256
|
+
e = { error: error };
|
|
257
|
+
}
|
|
258
|
+
finally {
|
|
259
|
+
try {
|
|
260
|
+
if (r && !r.done && (m = i["return"]))
|
|
261
|
+
m.call(i);
|
|
262
|
+
}
|
|
263
|
+
finally {
|
|
264
|
+
if (e)
|
|
265
|
+
throw e.error;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
return ar;
|
|
269
|
+
}
|
|
270
|
+
/** @deprecated */
|
|
271
|
+
function __spread() {
|
|
272
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
273
|
+
ar = ar.concat(__read(arguments[i]));
|
|
274
|
+
return ar;
|
|
275
|
+
}
|
|
276
|
+
/** @deprecated */
|
|
277
|
+
function __spreadArrays() {
|
|
278
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
279
|
+
s += arguments[i].length;
|
|
280
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
281
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
282
|
+
r[k] = a[j];
|
|
283
|
+
return r;
|
|
284
|
+
}
|
|
285
|
+
function __spreadArray(to, from, pack) {
|
|
286
|
+
if (pack || arguments.length === 2)
|
|
287
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
288
|
+
if (ar || !(i in from)) {
|
|
289
|
+
if (!ar)
|
|
290
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
291
|
+
ar[i] = from[i];
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
295
|
+
}
|
|
296
|
+
function __await(v) {
|
|
297
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
298
|
+
}
|
|
299
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
300
|
+
if (!Symbol.asyncIterator)
|
|
301
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
302
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
303
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
304
|
+
function verb(n) { if (g[n])
|
|
305
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
306
|
+
function resume(n, v) { try {
|
|
307
|
+
step(g[n](v));
|
|
308
|
+
}
|
|
309
|
+
catch (e) {
|
|
310
|
+
settle(q[0][3], e);
|
|
311
|
+
} }
|
|
312
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
313
|
+
function fulfill(value) { resume("next", value); }
|
|
314
|
+
function reject(value) { resume("throw", value); }
|
|
315
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
316
|
+
resume(q[0][0], q[0][1]); }
|
|
317
|
+
}
|
|
318
|
+
function __asyncDelegator(o) {
|
|
319
|
+
var i, p;
|
|
320
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
321
|
+
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; }
|
|
322
|
+
}
|
|
323
|
+
function __asyncValues(o) {
|
|
324
|
+
if (!Symbol.asyncIterator)
|
|
325
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
326
|
+
var m = o[Symbol.asyncIterator], i;
|
|
327
|
+
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);
|
|
328
|
+
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); }); }; }
|
|
329
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
330
|
+
}
|
|
331
|
+
function __makeTemplateObject(cooked, raw) {
|
|
332
|
+
if (Object.defineProperty) {
|
|
333
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
334
|
+
}
|
|
335
|
+
else {
|
|
336
|
+
cooked.raw = raw;
|
|
337
|
+
}
|
|
338
|
+
return cooked;
|
|
339
|
+
}
|
|
340
|
+
;
|
|
341
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
342
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
343
|
+
}) : function (o, v) {
|
|
344
|
+
o["default"] = v;
|
|
345
|
+
};
|
|
346
|
+
function __importStar(mod) {
|
|
347
|
+
if (mod && mod.__esModule)
|
|
348
|
+
return mod;
|
|
349
|
+
var result = {};
|
|
350
|
+
if (mod != null)
|
|
351
|
+
for (var k in mod)
|
|
352
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
353
|
+
__createBinding(result, mod, k);
|
|
354
|
+
__setModuleDefault(result, mod);
|
|
355
|
+
return result;
|
|
356
|
+
}
|
|
357
|
+
function __importDefault(mod) {
|
|
358
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
359
|
+
}
|
|
360
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
361
|
+
if (kind === "a" && !f)
|
|
362
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
363
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
364
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
365
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
366
|
+
}
|
|
367
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
368
|
+
if (kind === "m")
|
|
369
|
+
throw new TypeError("Private method is not writable");
|
|
370
|
+
if (kind === "a" && !f)
|
|
371
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
372
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
373
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
374
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
377
375
|
}
|
|
378
376
|
|
|
379
|
-
var HttpError = /** @class */ (function (_super) {
|
|
380
|
-
__extends(HttpError, _super);
|
|
381
|
-
function HttpError(error) {
|
|
382
|
-
return _super.call(this, error) || this;
|
|
383
|
-
}
|
|
384
|
-
HttpError.prototype.get = function (token, delimiter) {
|
|
385
|
-
if (delimiter === void 0) { delimiter = '.'; }
|
|
386
|
-
var _a;
|
|
387
|
-
var error = (_a = this.error) !== null && _a !== void 0 ? _a : {};
|
|
388
|
-
return (token !== null && token !== void 0 ? token : '')
|
|
389
|
-
.split(delimiter)
|
|
390
|
-
.reduce(function (previous, current) { return (previous === null || previous === void 0 ? void 0 : previous[current]) ? previous === null || previous === void 0 ? void 0 : previous[current] : null; }, error);
|
|
391
|
-
};
|
|
392
|
-
HttpError.prototype.has = function (token, delimiter) {
|
|
393
|
-
if (delimiter === void 0) { delimiter = '.'; }
|
|
394
|
-
return !!this.get(token, delimiter);
|
|
395
|
-
};
|
|
396
|
-
HttpError.prototype.includes = function (token, value) {
|
|
397
|
-
var array = this.get(token);
|
|
398
|
-
return (array !== null && array !== void 0 ? array : []).includes(value);
|
|
399
|
-
};
|
|
400
|
-
return HttpError;
|
|
377
|
+
var HttpError = /** @class */ (function (_super) {
|
|
378
|
+
__extends(HttpError, _super);
|
|
379
|
+
function HttpError(error) {
|
|
380
|
+
return _super.call(this, error) || this;
|
|
381
|
+
}
|
|
382
|
+
HttpError.prototype.get = function (token, delimiter) {
|
|
383
|
+
if (delimiter === void 0) { delimiter = '.'; }
|
|
384
|
+
var _a;
|
|
385
|
+
var error = (_a = this.error) !== null && _a !== void 0 ? _a : {};
|
|
386
|
+
return (token !== null && token !== void 0 ? token : '')
|
|
387
|
+
.split(delimiter)
|
|
388
|
+
.reduce(function (previous, current) { return (previous === null || previous === void 0 ? void 0 : previous[current]) ? previous === null || previous === void 0 ? void 0 : previous[current] : null; }, error);
|
|
389
|
+
};
|
|
390
|
+
HttpError.prototype.has = function (token, delimiter) {
|
|
391
|
+
if (delimiter === void 0) { delimiter = '.'; }
|
|
392
|
+
return !!this.get(token, delimiter);
|
|
393
|
+
};
|
|
394
|
+
HttpError.prototype.includes = function (token, value) {
|
|
395
|
+
var array = this.get(token);
|
|
396
|
+
return (array !== null && array !== void 0 ? array : []).includes(value);
|
|
397
|
+
};
|
|
398
|
+
return HttpError;
|
|
401
399
|
}(http.HttpErrorResponse));
|
|
402
400
|
|
|
403
|
-
var BaseUrlInterceptor = /** @class */ (function () {
|
|
404
|
-
function BaseUrlInterceptor(_config) {
|
|
405
|
-
var _a, _b;
|
|
406
|
-
this._config = _config;
|
|
407
|
-
// Aliases.
|
|
408
|
-
this._aliases = (_a = this._config) === null || _a === void 0 ? void 0 : _a.aliases;
|
|
409
|
-
this._prefix = (_b = this._config) === null || _b === void 0 ? void 0 : _b.prefix;
|
|
410
|
-
this._extractRegex = new RegExp("\\" + this._prefix + "[a-zA-Z]+");
|
|
411
|
-
}
|
|
412
|
-
BaseUrlInterceptor.prototype.intercept = function (request, next) {
|
|
413
|
-
var url = this.getUrlBasedOnAlias(request.url);
|
|
414
|
-
var modified = request.clone({ url: url });
|
|
415
|
-
return next.handle(modified);
|
|
416
|
-
};
|
|
417
|
-
BaseUrlInterceptor.prototype.getUrlBasedOnAlias = function (url) {
|
|
418
|
-
var _this = this;
|
|
419
|
-
var matches = this._extractRegex.exec(url);
|
|
420
|
-
if (!matches) {
|
|
421
|
-
return url;
|
|
422
|
-
}
|
|
423
|
-
return matches.reduce(function (previous, current) {
|
|
424
|
-
var alias = _this.getAlias(current);
|
|
425
|
-
if (!alias) {
|
|
426
|
-
return previous;
|
|
427
|
-
}
|
|
428
|
-
return previous.replace(current, alias);
|
|
429
|
-
}, url);
|
|
430
|
-
};
|
|
431
|
-
BaseUrlInterceptor.prototype.getAlias = function (value) {
|
|
432
|
-
var _a, _b, _c;
|
|
433
|
-
var alias = value.replace(this._prefix, '');
|
|
434
|
-
var fetched = (_b = (_a = this._aliases) === null || _a === void 0 ? void 0 : _a[alias]) !== null && _b !== void 0 ? _b : null;
|
|
435
|
-
if (fetched) {
|
|
436
|
-
return fetched;
|
|
437
|
-
}
|
|
438
|
-
if (i0.isDevMode()) {
|
|
439
|
-
var available = Object.keys(this._aliases)
|
|
440
|
-
.map(function (item) { return "$" + item; })
|
|
441
|
-
.join(', ');
|
|
442
|
-
(_c = console === null || console === void 0 ? void 0 : console.warn) === null || _c === void 0 ? void 0 : _c.call(console, "[HttpModule]: Used an invalid HTTP-alias named \"" + value + "\", skipped parsing; Available aliases is one of (" + available + ").");
|
|
443
|
-
}
|
|
444
|
-
return null;
|
|
445
|
-
};
|
|
446
|
-
return BaseUrlInterceptor;
|
|
447
|
-
}());
|
|
448
|
-
BaseUrlInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
449
|
-
BaseUrlInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.
|
|
450
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
451
|
-
type: i0.Injectable
|
|
401
|
+
var BaseUrlInterceptor = /** @class */ (function () {
|
|
402
|
+
function BaseUrlInterceptor(_config) {
|
|
403
|
+
var _a, _b;
|
|
404
|
+
this._config = _config;
|
|
405
|
+
// Aliases.
|
|
406
|
+
this._aliases = (_a = this._config) === null || _a === void 0 ? void 0 : _a.aliases;
|
|
407
|
+
this._prefix = (_b = this._config) === null || _b === void 0 ? void 0 : _b.prefix;
|
|
408
|
+
this._extractRegex = new RegExp("\\" + this._prefix + "[a-zA-Z]+");
|
|
409
|
+
}
|
|
410
|
+
BaseUrlInterceptor.prototype.intercept = function (request, next) {
|
|
411
|
+
var url = this.getUrlBasedOnAlias(request.url);
|
|
412
|
+
var modified = request.clone({ url: url });
|
|
413
|
+
return next.handle(modified);
|
|
414
|
+
};
|
|
415
|
+
BaseUrlInterceptor.prototype.getUrlBasedOnAlias = function (url) {
|
|
416
|
+
var _this = this;
|
|
417
|
+
var matches = this._extractRegex.exec(url);
|
|
418
|
+
if (!matches) {
|
|
419
|
+
return url;
|
|
420
|
+
}
|
|
421
|
+
return matches.reduce(function (previous, current) {
|
|
422
|
+
var alias = _this.getAlias(current);
|
|
423
|
+
if (!alias) {
|
|
424
|
+
return previous;
|
|
425
|
+
}
|
|
426
|
+
return previous.replace(current, alias);
|
|
427
|
+
}, url);
|
|
428
|
+
};
|
|
429
|
+
BaseUrlInterceptor.prototype.getAlias = function (value) {
|
|
430
|
+
var _a, _b, _c;
|
|
431
|
+
var alias = value.replace(this._prefix, '');
|
|
432
|
+
var fetched = (_b = (_a = this._aliases) === null || _a === void 0 ? void 0 : _a[alias]) !== null && _b !== void 0 ? _b : null;
|
|
433
|
+
if (fetched) {
|
|
434
|
+
return fetched;
|
|
435
|
+
}
|
|
436
|
+
if (i0.isDevMode()) {
|
|
437
|
+
var available = Object.keys(this._aliases)
|
|
438
|
+
.map(function (item) { return "$" + item; })
|
|
439
|
+
.join(', ');
|
|
440
|
+
(_c = console === null || console === void 0 ? void 0 : console.warn) === null || _c === void 0 ? void 0 : _c.call(console, "[HttpModule]: Used an invalid HTTP-alias named \"" + value + "\", skipped parsing; Available aliases is one of (" + available + ").");
|
|
441
|
+
}
|
|
442
|
+
return null;
|
|
443
|
+
};
|
|
444
|
+
return BaseUrlInterceptor;
|
|
445
|
+
}());
|
|
446
|
+
BaseUrlInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BaseUrlInterceptor, deps: [{ token: HttpConfig }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
447
|
+
BaseUrlInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BaseUrlInterceptor });
|
|
448
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BaseUrlInterceptor, decorators: [{
|
|
449
|
+
type: i0.Injectable
|
|
452
450
|
}], ctorParameters: function () { return [{ type: HttpConfig }]; } });
|
|
453
451
|
|
|
454
|
-
var ErrorInterceptor = /** @class */ (function () {
|
|
455
|
-
function ErrorInterceptor(_config) {
|
|
456
|
-
var _a, _b;
|
|
457
|
-
this._config = _config;
|
|
458
|
-
// State.
|
|
459
|
-
this._disabled = (_b = (_a = this._config) === null || _a === void 0 ? void 0 : _a.disableErrorParsing) !== null && _b !== void 0 ? _b : false;
|
|
460
|
-
}
|
|
461
|
-
ErrorInterceptor.prototype.intercept = function (request, next) {
|
|
462
|
-
var _this = this;
|
|
463
|
-
return next.handle(request).pipe(operators.catchError(function (error) {
|
|
464
|
-
// If we have a matching http error response
|
|
465
|
-
// re-map it with our custom class (if not disabled).
|
|
466
|
-
if (!_this._disabled && error instanceof http.HttpErrorResponse) {
|
|
467
|
-
var parsed = new HttpError(error);
|
|
468
|
-
return rxjs.throwError(parsed);
|
|
469
|
-
}
|
|
470
|
-
// We did not match anything, just re-trow the error.
|
|
471
|
-
return rxjs.throwError(error);
|
|
472
|
-
}));
|
|
473
|
-
};
|
|
474
|
-
return ErrorInterceptor;
|
|
475
|
-
}());
|
|
476
|
-
ErrorInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
477
|
-
ErrorInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.
|
|
478
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
479
|
-
type: i0.Injectable
|
|
452
|
+
var ErrorInterceptor = /** @class */ (function () {
|
|
453
|
+
function ErrorInterceptor(_config) {
|
|
454
|
+
var _a, _b;
|
|
455
|
+
this._config = _config;
|
|
456
|
+
// State.
|
|
457
|
+
this._disabled = (_b = (_a = this._config) === null || _a === void 0 ? void 0 : _a.disableErrorParsing) !== null && _b !== void 0 ? _b : false;
|
|
458
|
+
}
|
|
459
|
+
ErrorInterceptor.prototype.intercept = function (request, next) {
|
|
460
|
+
var _this = this;
|
|
461
|
+
return next.handle(request).pipe(operators.catchError(function (error) {
|
|
462
|
+
// If we have a matching http error response
|
|
463
|
+
// re-map it with our custom class (if not disabled).
|
|
464
|
+
if (!_this._disabled && error instanceof http.HttpErrorResponse) {
|
|
465
|
+
var parsed = new HttpError(error);
|
|
466
|
+
return rxjs.throwError(parsed);
|
|
467
|
+
}
|
|
468
|
+
// We did not match anything, just re-trow the error.
|
|
469
|
+
return rxjs.throwError(error);
|
|
470
|
+
}));
|
|
471
|
+
};
|
|
472
|
+
return ErrorInterceptor;
|
|
473
|
+
}());
|
|
474
|
+
ErrorInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: ErrorInterceptor, deps: [{ token: HttpConfig }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
475
|
+
ErrorInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: ErrorInterceptor });
|
|
476
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: ErrorInterceptor, decorators: [{
|
|
477
|
+
type: i0.Injectable
|
|
480
478
|
}], ctorParameters: function () { return [{ type: HttpConfig }]; } });
|
|
481
479
|
|
|
482
|
-
var HttpModule = /** @class */ (function () {
|
|
483
|
-
function HttpModule(_parent) {
|
|
484
|
-
this._parent = _parent;
|
|
485
|
-
if (this._parent) {
|
|
486
|
-
throw new Error('HttpModule is already loaded; Import it in the core module only.');
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
HttpModule.forRoot = function (config) {
|
|
490
|
-
return {
|
|
491
|
-
ngModule: HttpModule,
|
|
492
|
-
providers: [
|
|
493
|
-
{ provide: HTTP_CONFIGURATION_DATA, useValue: config },
|
|
494
|
-
{ provide: HttpConfig, useFactory: createHttpConfig, deps: [HTTP_CONFIGURATION_DATA] },
|
|
495
|
-
{ provide: http.HTTP_INTERCEPTORS, useClass: BaseUrlInterceptor, multi: true },
|
|
496
|
-
{ provide: http.HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true }
|
|
497
|
-
]
|
|
498
|
-
};
|
|
499
|
-
};
|
|
500
|
-
return HttpModule;
|
|
501
|
-
}());
|
|
502
|
-
HttpModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
503
|
-
HttpModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.
|
|
504
|
-
HttpModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.
|
|
505
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
506
|
-
type: i0.NgModule,
|
|
507
|
-
args: [{
|
|
508
|
-
imports: [http.HttpClientModule]
|
|
509
|
-
}]
|
|
510
|
-
}], ctorParameters: function () {
|
|
511
|
-
return [{ type: HttpModule, decorators: [{
|
|
512
|
-
type: i0.Optional
|
|
513
|
-
}, {
|
|
514
|
-
type: i0.SkipSelf
|
|
515
|
-
}] }];
|
|
516
|
-
} });
|
|
517
|
-
var HTTP_CONFIGURATION_DATA = new i0.InjectionToken('HTTP_CONFIGURATION_DATA');
|
|
518
|
-
function createHttpConfig(data) {
|
|
519
|
-
return new HttpConfig(data);
|
|
480
|
+
var HttpModule = /** @class */ (function () {
|
|
481
|
+
function HttpModule(_parent) {
|
|
482
|
+
this._parent = _parent;
|
|
483
|
+
if (this._parent) {
|
|
484
|
+
throw new Error('HttpModule is already loaded; Import it in the core module only.');
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
HttpModule.forRoot = function (config) {
|
|
488
|
+
return {
|
|
489
|
+
ngModule: HttpModule,
|
|
490
|
+
providers: [
|
|
491
|
+
{ provide: HTTP_CONFIGURATION_DATA, useValue: config },
|
|
492
|
+
{ provide: HttpConfig, useFactory: createHttpConfig, deps: [HTTP_CONFIGURATION_DATA] },
|
|
493
|
+
{ provide: http.HTTP_INTERCEPTORS, useClass: BaseUrlInterceptor, multi: true },
|
|
494
|
+
{ provide: http.HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true }
|
|
495
|
+
]
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
return HttpModule;
|
|
499
|
+
}());
|
|
500
|
+
HttpModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: HttpModule, deps: [{ token: HttpModule, optional: true, skipSelf: true }], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
501
|
+
HttpModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: HttpModule, imports: [http.HttpClientModule] });
|
|
502
|
+
HttpModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: HttpModule, imports: [[http.HttpClientModule]] });
|
|
503
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: HttpModule, decorators: [{
|
|
504
|
+
type: i0.NgModule,
|
|
505
|
+
args: [{
|
|
506
|
+
imports: [http.HttpClientModule]
|
|
507
|
+
}]
|
|
508
|
+
}], ctorParameters: function () {
|
|
509
|
+
return [{ type: HttpModule, decorators: [{
|
|
510
|
+
type: i0.Optional
|
|
511
|
+
}, {
|
|
512
|
+
type: i0.SkipSelf
|
|
513
|
+
}] }];
|
|
514
|
+
} });
|
|
515
|
+
var HTTP_CONFIGURATION_DATA = new i0.InjectionToken('HTTP_CONFIGURATION_DATA');
|
|
516
|
+
function createHttpConfig(data) {
|
|
517
|
+
return new HttpConfig(data);
|
|
520
518
|
}
|
|
521
519
|
|
|
522
|
-
/**
|
|
523
|
-
* Generated bundle index. Do not edit.
|
|
520
|
+
/**
|
|
521
|
+
* Generated bundle index. Do not edit.
|
|
524
522
|
*/
|
|
525
523
|
|
|
526
524
|
exports.BaseUrlInterceptor = BaseUrlInterceptor;
|
|
@@ -533,5 +531,5 @@
|
|
|
533
531
|
|
|
534
532
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
535
533
|
|
|
536
|
-
}))
|
|
534
|
+
}));
|
|
537
535
|
//# sourceMappingURL=bravobit-bb-foundation-http.umd.js.map
|