@bravobit/bb-foundation 0.15.6 → 0.16.3
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/auth/lib/auth.interceptor.d.ts +1 -1
- package/auth/lib/auth.service.d.ts +1 -1
- package/auth/package.json +5 -5
- package/collections/lib/collection.d.ts +1 -1
- package/collections/package.json +5 -5
- package/controls/bravobit-bb-foundation-controls.d.ts +5 -0
- package/controls/lib/checkbox/checkbox/checkbox.component.d.ts +47 -0
- package/controls/lib/checkbox/checkbox-group/checkbox-group.component.d.ts +18 -0
- package/controls/lib/checkbox/checkbox.module.d.ts +9 -0
- package/controls/lib/controls.module.d.ts +7 -0
- package/controls/package.json +10 -0
- package/controls/public_api.d.ts +4 -0
- package/dashboard/package.json +5 -5
- package/dialog/package.json +5 -5
- package/elements/package.json +5 -5
- package/{esm2015/auth/bravobit-bb-foundation-auth.js → esm2020/auth/bravobit-bb-foundation-auth.mjs} +0 -0
- package/esm2020/auth/lib/auth.interceptor.mjs +94 -0
- package/{esm2015/auth/lib/auth.module.js → esm2020/auth/lib/auth.module.mjs} +5 -5
- package/esm2020/auth/lib/auth.service.mjs +276 -0
- package/esm2020/auth/lib/auth.session.mjs +131 -0
- package/{esm2015/auth/lib/directives/authenticated.directive.js → esm2020/auth/lib/directives/authenticated.directive.mjs} +5 -6
- package/esm2020/auth/lib/directives/permission.directive.mjs +80 -0
- package/esm2020/auth/lib/directives/role.directive.mjs +37 -0
- package/esm2020/auth/lib/guards/anonymous.guard.mjs +34 -0
- package/esm2020/auth/lib/guards/authenticated.guard.mjs +35 -0
- package/{esm2015/auth/lib/helpers/jwt.helper.js → esm2020/auth/lib/helpers/jwt.helper.mjs} +3 -3
- package/{esm2015/auth/lib/helpers/mapper.helper.js → esm2020/auth/lib/helpers/mapper.helper.mjs} +4 -4
- package/{esm2015/auth/lib/interfaces/config.interface.js → esm2020/auth/lib/interfaces/config.interface.mjs} +0 -0
- package/{esm2015/auth/lib/interfaces/mapper.interface.js → esm2020/auth/lib/interfaces/mapper.interface.mjs} +0 -0
- package/{esm2015/auth/lib/interfaces/provider.interface.js → esm2020/auth/lib/interfaces/provider.interface.mjs} +0 -0
- package/{esm2015/auth/lib/interfaces/token.interface.js → esm2020/auth/lib/interfaces/token.interface.mjs} +0 -0
- package/esm2020/auth/lib/permissions.service.mjs +56 -0
- package/esm2020/auth/lib/providers/email.provider.mjs +25 -0
- package/esm2020/auth/lib/providers/verify.provider.mjs +19 -0
- package/{esm2015/auth/lib/tokens/use-authorization.token.js → esm2020/auth/lib/tokens/use-authorization.token.mjs} +0 -0
- package/{esm2015/auth/public_api.js → esm2020/auth/public_api.mjs} +0 -0
- package/{esm2015/bravobit-bb-foundation.js → esm2020/bravobit-bb-foundation.mjs} +0 -0
- package/{esm2015/collections/bravobit-bb-foundation-collections.js → esm2020/collections/bravobit-bb-foundation-collections.mjs} +0 -0
- package/esm2020/collections/lib/collection.mjs +102 -0
- package/{esm2015/collections/lib/collections.module.js → esm2020/collections/lib/collections.module.mjs} +5 -5
- package/esm2020/collections/lib/components/collections-pager/collections-pager.component.mjs +123 -0
- package/esm2020/collections/lib/components/collections-viewer/collections-viewer.component.mjs +31 -0
- package/{esm2015/collections/lib/components/collections.directive.js → esm2020/collections/lib/components/collections.directive.mjs} +13 -13
- package/{esm2015/collections/lib/interfaces/collection.interface.js → esm2020/collections/lib/interfaces/collection.interface.mjs} +0 -0
- package/esm2020/collections/lib/providers/api-collection.provider.mjs +71 -0
- package/esm2020/collections/lib/providers/collection.provider.mjs +13 -0
- package/{esm2015/collections/lib/providers/local-collection.provider.js → esm2020/collections/lib/providers/local-collection.provider.mjs} +0 -0
- package/{esm2015/collections/public_api.js → esm2020/collections/public_api.mjs} +0 -0
- package/esm2020/controls/bravobit-bb-foundation-controls.mjs +5 -0
- package/esm2020/controls/lib/checkbox/checkbox/checkbox.component.mjs +153 -0
- package/esm2020/controls/lib/checkbox/checkbox-group/checkbox-group.component.mjs +48 -0
- package/esm2020/controls/lib/checkbox/checkbox.module.mjs +19 -0
- package/esm2020/controls/lib/controls.module.mjs +16 -0
- package/esm2020/controls/public_api.mjs +5 -0
- package/{esm2015/dashboard/bravobit-bb-foundation-dashboard.js → esm2020/dashboard/bravobit-bb-foundation-dashboard.mjs} +0 -0
- package/esm2020/dashboard/lib/dashboard/dashboard.component.mjs +56 -0
- package/esm2020/dashboard/lib/dashboard-header/dashboard-header.component.mjs +30 -0
- package/esm2020/dashboard/lib/dashboard-menu/dashboard-menu.component.mjs +31 -0
- package/esm2020/dashboard/lib/dashboard-menu-item/dashboard-menu-item.component.mjs +29 -0
- package/esm2020/dashboard/lib/dashboard-sidebar/dashboard-sidebar.component.mjs +75 -0
- package/esm2020/dashboard/lib/dashboard-sidebar-group/dashboard-sidebar-group.component.mjs +99 -0
- package/esm2020/dashboard/lib/dashboard-sidebar-item/dashboard-sidebar-item.component.mjs +62 -0
- package/{esm2015/dashboard/lib/dashboard.module.js → esm2020/dashboard/lib/dashboard.module.mjs} +5 -5
- package/{esm2015/dashboard/public_api.js → esm2020/dashboard/public_api.mjs} +0 -0
- package/{esm2015/dialog/bravobit-bb-foundation-dialog.js → esm2020/dialog/bravobit-bb-foundation-dialog.mjs} +0 -0
- package/esm2020/dialog/lib/dialog-actions/dialog-actions.component.mjs +12 -0
- package/esm2020/dialog/lib/dialog-confirm/dialog-confirm.component.mjs +37 -0
- package/{esm2015/dialog/lib/dialog-container/dialog-container.component.js → esm2020/dialog/lib/dialog-container/dialog-container.component.mjs} +6 -15
- package/esm2020/dialog/lib/dialog-header/dialog-header.component.mjs +25 -0
- package/esm2020/dialog/lib/dialog-link/dialog-link.component.mjs +11 -0
- package/esm2020/dialog/lib/dialog-modal/dialog-modal.component.mjs +46 -0
- package/esm2020/dialog/lib/dialog-overlay/dialog-overlay.component.mjs +134 -0
- package/{esm2015/dialog/lib/dialog.injector.js → esm2020/dialog/lib/dialog.injector.mjs} +0 -0
- package/{esm2015/dialog/lib/dialog.insertion.js → esm2020/dialog/lib/dialog.insertion.mjs} +4 -4
- package/{esm2015/dialog/lib/dialog.interfaces.js → esm2020/dialog/lib/dialog.interfaces.mjs} +0 -0
- package/{esm2015/dialog/lib/dialog.module.js → esm2020/dialog/lib/dialog.module.mjs} +5 -9
- package/{esm2015/dialog/lib/dialog.ref.js → esm2020/dialog/lib/dialog.ref.mjs} +0 -0
- package/{esm2015/dialog/lib/dialog.service.js → esm2020/dialog/lib/dialog.service.mjs} +5 -5
- package/{esm2015/dialog/public_api.js → esm2020/dialog/public_api.mjs} +0 -0
- package/{esm2015/elements/bravobit-bb-foundation-elements.js → esm2020/elements/bravobit-bb-foundation-elements.mjs} +0 -0
- package/esm2020/elements/lib/avatar/avatar.component.mjs +142 -0
- package/esm2020/elements/lib/button/button.component.mjs +61 -0
- package/esm2020/elements/lib/checkbox/checkbox.component.mjs +73 -0
- package/esm2020/elements/lib/date-picker/date-picker.component.mjs +304 -0
- package/{esm2015/elements/lib/directives/addon.directive.js → esm2020/elements/lib/directives/addon.directive.mjs} +7 -7
- package/esm2020/elements/lib/directives/autosize.directive.mjs +72 -0
- package/{esm2015/elements/lib/directives/focus-trap.directive.js → esm2020/elements/lib/directives/focus-trap.directive.mjs} +4 -4
- package/{esm2015/elements/lib/directives/focus.directive.js → esm2020/elements/lib/directives/focus.directive.mjs} +4 -4
- package/esm2020/elements/lib/directives/form-submit.directive.mjs +50 -0
- package/esm2020/elements/lib/directives/input.directive.mjs +136 -0
- package/{esm2015/elements/lib/directives/template.directive.js → esm2020/elements/lib/directives/template.directive.mjs} +4 -4
- package/esm2020/elements/lib/dropdown/dropdown.component.mjs +100 -0
- package/{esm2015/elements/lib/elements.interfaces.js → esm2020/elements/lib/elements.interfaces.mjs} +0 -0
- package/{esm2015/elements/lib/elements.module.js → esm2020/elements/lib/elements.module.mjs} +5 -5
- package/esm2020/elements/lib/file-picker/file-picker.component.mjs +236 -0
- package/esm2020/elements/lib/form-control/form-control.component.mjs +49 -0
- package/esm2020/elements/lib/form-error/form-error.component.mjs +108 -0
- package/esm2020/elements/lib/form-group/form-group.component.mjs +18 -0
- package/esm2020/elements/lib/icon/icon.component.mjs +102 -0
- package/esm2020/elements/lib/image-picker/image-picker.component.mjs +106 -0
- package/esm2020/elements/lib/pipes/file-image.pipe.mjs +42 -0
- package/{esm2015/elements/lib/pipes/file-size.pipe.js → esm2020/elements/lib/pipes/file-size.pipe.mjs} +4 -4
- package/esm2020/elements/lib/pipes/relative-time.pipe.mjs +94 -0
- package/esm2020/elements/lib/spinner/spinner.component.mjs +25 -0
- package/esm2020/elements/lib/tag/tag.component.mjs +18 -0
- package/{esm2015/elements/public_api.js → esm2020/elements/public_api.mjs} +0 -0
- package/{esm2015/http/bravobit-bb-foundation-http.js → esm2020/http/bravobit-bb-foundation-http.mjs} +0 -0
- package/esm2020/http/lib/classes/http.config.mjs +29 -0
- package/esm2020/http/lib/classes/http.error.mjs +20 -0
- package/{esm2015/http/lib/http.interfaces.js → esm2020/http/lib/http.interfaces.mjs} +0 -0
- package/{esm2015/http/lib/http.module.js → esm2020/http/lib/http.module.mjs} +5 -5
- package/esm2020/http/lib/interceptors/base-url.interceptor.mjs +50 -0
- package/esm2020/http/lib/interceptors/error.interceptor.mjs +32 -0
- package/{esm2015/http/public_api.js → esm2020/http/public_api.mjs} +0 -0
- package/{esm2015/lib/core/miscellaneous/regex.js → esm2020/lib/core/miscellaneous/regex.mjs} +0 -0
- package/esm2020/lib/core/miscellaneous/validator.mjs +85 -0
- package/esm2020/lib/core/mixins/can-disable.mjs +16 -0
- package/{esm2015/lib/core/mixins/can-hide-errors.js → esm2020/lib/core/mixins/can-hide-errors.mjs} +2 -2
- package/esm2020/lib/core/mixins/can-load.mjs +16 -0
- package/{esm2015/lib/core/mixins/constructor.js → esm2020/lib/core/mixins/constructor.mjs} +0 -0
- package/esm2020/lib/core/mixins/has-error.mjs +16 -0
- package/esm2020/lib/core/mixins/is-focused.mjs +16 -0
- package/esm2020/lib/core/mixins/is-grouped.mjs +16 -0
- package/esm2020/lib/core/mixins/is-readonly.mjs +16 -0
- package/esm2020/lib/core/mixins/is-required.mjs +16 -0
- package/esm2020/lib/core/services/clipboard.service.mjs +70 -0
- package/esm2020/lib/core/services/exif.service.mjs +163 -0
- package/esm2020/lib/core/services/file-loader.service.mjs +87 -0
- package/esm2020/lib/core/services/image-converter.service.mjs +123 -0
- package/{esm2015/lib/core/services/languages.service.js → esm2020/lib/core/services/languages.service.mjs} +4 -4
- package/{esm2015/lib/core/services/network.service.js → esm2020/lib/core/services/network.service.mjs} +5 -6
- package/esm2020/lib/core/services/patch.service.mjs +63 -0
- package/{esm2015/lib/core/services/platform.service.js → esm2020/lib/core/services/platform.service.mjs} +5 -5
- package/{esm2015/lib/core/tokens/accept-language.token.js → esm2020/lib/core/tokens/accept-language.token.mjs} +0 -0
- package/{esm2015/lib/core/tokens/base-url.token.js → esm2020/lib/core/tokens/base-url.token.mjs} +0 -0
- package/{esm2015/lib/core/tokens/cookie.token.js → esm2020/lib/core/tokens/cookie.token.mjs} +0 -0
- package/{esm2015/lib/core/tokens/location.token.js → esm2020/lib/core/tokens/location.token.mjs} +0 -0
- package/{esm2015/lib/core/tokens/navigator.token.js → esm2020/lib/core/tokens/navigator.token.mjs} +0 -0
- package/{esm2015/lib/core/tokens/window.token.js → esm2020/lib/core/tokens/window.token.mjs} +0 -0
- package/{esm2015/localize/bravobit-bb-foundation-localize.js → esm2020/localize/bravobit-bb-foundation-localize.mjs} +0 -0
- package/{esm2015/localize/lib/functions/date.function.js → esm2020/localize/lib/functions/date.function.mjs} +0 -0
- package/{esm2015/localize/lib/functions/lowercase.function.js → esm2020/localize/lib/functions/lowercase.function.mjs} +0 -0
- package/{esm2015/localize/lib/functions/uppercase.function.js → esm2020/localize/lib/functions/uppercase.function.mjs} +0 -0
- package/{esm2015/localize/lib/handlers/missing.handler.js → esm2020/localize/lib/handlers/missing.handler.mjs} +0 -0
- package/{esm2015/localize/lib/interfaces/config.interfaces.js → esm2020/localize/lib/interfaces/config.interfaces.mjs} +0 -0
- package/{esm2015/localize/lib/interfaces/dictionary.interfaces.js → esm2020/localize/lib/interfaces/dictionary.interfaces.mjs} +0 -0
- package/{esm2015/localize/lib/interfaces/functions.interfaces.js → esm2020/localize/lib/interfaces/functions.interfaces.mjs} +0 -0
- package/{esm2015/localize/lib/interfaces/handlers.interfaces.js → esm2020/localize/lib/interfaces/handlers.interfaces.mjs} +0 -0
- package/{esm2015/localize/lib/interfaces/options.interfaces.js → esm2020/localize/lib/interfaces/options.interfaces.mjs} +0 -0
- package/{esm2015/localize/lib/localizations/dutch.localization.js → esm2020/localize/lib/localizations/dutch.localization.mjs} +0 -0
- package/{esm2015/localize/lib/localizations/english.localization.js → esm2020/localize/lib/localizations/english.localization.mjs} +0 -0
- package/esm2020/localize/lib/localize.dictionary.mjs +135 -0
- package/{esm2015/localize/lib/localize.module.js → esm2020/localize/lib/localize.module.mjs} +5 -5
- package/{esm2015/localize/lib/localize.pipe.js → esm2020/localize/lib/localize.pipe.mjs} +5 -5
- package/esm2020/localize/lib/localize.service.mjs +277 -0
- package/esm2020/localize/lib/views/localize-string/localize-string.component.mjs +88 -0
- package/{esm2015/localize/lib/views/localize-template-or-string.directive.js → esm2020/localize/lib/views/localize-template-or-string.directive.mjs} +4 -4
- package/{esm2015/localize/lib/views/localize-template.directive.js → esm2020/localize/lib/views/localize-template.directive.mjs} +4 -4
- package/{esm2015/localize/public_api.js → esm2020/localize/public_api.mjs} +0 -0
- package/{esm2015/notifications/bravobit-bb-foundation-notifications.js → esm2020/notifications/bravobit-bb-foundation-notifications.mjs} +0 -0
- package/esm2020/notifications/lib/notifications-item/notifications-item.component.mjs +100 -0
- package/esm2020/notifications/lib/notifications-list/notifications-list.component.mjs +47 -0
- package/{esm2015/notifications/lib/notifications.animations.js → esm2020/notifications/lib/notifications.animations.mjs} +0 -0
- package/{esm2015/notifications/lib/notifications.injector.js → esm2020/notifications/lib/notifications.injector.mjs} +0 -0
- package/{esm2015/notifications/lib/notifications.interfaces.js → esm2020/notifications/lib/notifications.interfaces.mjs} +0 -0
- package/{esm2015/notifications/lib/notifications.module.js → esm2020/notifications/lib/notifications.module.mjs} +6 -7
- package/{esm2015/notifications/lib/notifications.service.js → esm2020/notifications/lib/notifications.service.mjs} +5 -5
- package/{esm2015/notifications/public_api.js → esm2020/notifications/public_api.mjs} +0 -0
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +1 -2
- package/{esm2015/recaptcha/bravobit-bb-foundation-recaptcha.js → esm2020/recaptcha/bravobit-bb-foundation-recaptcha.mjs} +0 -0
- package/esm2020/recaptcha/lib/recaptcha/recaptcha.component.mjs +185 -0
- package/esm2020/recaptcha/lib/recaptcha-loader.service.mjs +90 -0
- package/{esm2015/recaptcha/lib/recaptcha.interface.js → esm2020/recaptcha/lib/recaptcha.interface.mjs} +0 -0
- package/{esm2015/recaptcha/lib/recaptcha.module.js → esm2020/recaptcha/lib/recaptcha.module.mjs} +5 -5
- package/{esm2015/recaptcha/public_api.js → esm2020/recaptcha/public_api.mjs} +0 -0
- package/{esm2015/rxjs/bravobit-bb-foundation-rxjs.js → esm2020/rxjs/bravobit-bb-foundation-rxjs.mjs} +0 -0
- package/esm2020/rxjs/lib/operators/combine-latest-map.operator.mjs +10 -0
- package/{esm2015/rxjs/lib/operators/filter-nil.operator.js → esm2020/rxjs/lib/operators/filter-nil.operator.mjs} +0 -0
- package/{esm2015/rxjs/public_api.js → esm2020/rxjs/public_api.mjs} +0 -0
- package/{esm2015/storage/bravobit-bb-foundation-storage.js → esm2020/storage/bravobit-bb-foundation-storage.mjs} +0 -0
- package/{esm2015/storage/lib/interfaces/attributes.interface.js → esm2020/storage/lib/interfaces/attributes.interface.mjs} +0 -0
- package/{esm2015/storage/lib/interfaces/memory.interface.js → esm2020/storage/lib/interfaces/memory.interface.mjs} +0 -0
- package/{esm2015/storage/lib/interfaces/strategy.interface.js → esm2020/storage/lib/interfaces/strategy.interface.mjs} +0 -0
- package/esm2020/storage/lib/storage.service.mjs +109 -0
- package/esm2020/storage/lib/strategies/cookie-storage.strategy.mjs +142 -0
- package/{esm2015/storage/lib/strategies/memory-storage.strategy.js → esm2020/storage/lib/strategies/memory-storage.strategy.mjs} +2 -2
- package/esm2020/storage/lib/strategies/polyfill-storage.strategy.mjs +102 -0
- package/{esm2015/storage/public_api.js → esm2020/storage/public_api.mjs} +0 -0
- package/{esm2015/table/bravobit-bb-foundation-table.js → esm2020/table/bravobit-bb-foundation-table.mjs} +0 -0
- package/esm2020/table/lib/components/table/table.component.mjs +191 -0
- package/esm2020/table/lib/components/table-cell/table-cell.component.mjs +11 -0
- package/esm2020/table/lib/components/table-header-cell/table-header-cell.component.mjs +131 -0
- package/esm2020/table/lib/components/table-pager/table-pager.component.mjs +136 -0
- package/esm2020/table/lib/data/datasource.data.mjs +32 -0
- package/esm2020/table/lib/data/generic.data.mjs +72 -0
- package/{esm2015/table/lib/interfaces/datasource.interface.js → esm2020/table/lib/interfaces/datasource.interface.mjs} +0 -0
- package/{esm2015/table/lib/interfaces/table.interfaces.js → esm2020/table/lib/interfaces/table.interfaces.mjs} +0 -0
- package/{esm2015/table/lib/table.module.js → esm2020/table/lib/table.module.mjs} +5 -5
- package/{esm2015/table/public_api.js → esm2020/table/public_api.mjs} +0 -0
- package/fesm2015/{bravobit-bb-foundation-auth.js → bravobit-bb-foundation-auth.mjs} +79 -68
- package/fesm2015/bravobit-bb-foundation-auth.mjs.map +1 -0
- package/fesm2015/{bravobit-bb-foundation-collections.js → bravobit-bb-foundation-collections.mjs} +45 -57
- package/fesm2015/bravobit-bb-foundation-collections.mjs.map +1 -0
- package/fesm2015/bravobit-bb-foundation-controls.mjs +235 -0
- package/fesm2015/bravobit-bb-foundation-controls.mjs.map +1 -0
- package/fesm2015/bravobit-bb-foundation-dashboard.mjs +416 -0
- package/fesm2015/bravobit-bb-foundation-dashboard.mjs.map +1 -0
- package/fesm2015/{bravobit-bb-foundation-dialog.js → bravobit-bb-foundation-dialog.mjs} +45 -106
- package/fesm2015/bravobit-bb-foundation-dialog.mjs.map +1 -0
- package/fesm2015/{bravobit-bb-foundation-elements.js → bravobit-bb-foundation-elements.mjs} +195 -303
- package/fesm2015/bravobit-bb-foundation-elements.mjs.map +1 -0
- package/fesm2015/{bravobit-bb-foundation-http.js → bravobit-bb-foundation-http.mjs} +18 -16
- package/fesm2015/bravobit-bb-foundation-http.mjs.map +1 -0
- package/fesm2015/{bravobit-bb-foundation-localize.js → bravobit-bb-foundation-localize.mjs} +63 -69
- package/fesm2015/bravobit-bb-foundation-localize.mjs.map +1 -0
- package/fesm2015/bravobit-bb-foundation-notifications.mjs +377 -0
- package/fesm2015/bravobit-bb-foundation-notifications.mjs.map +1 -0
- package/fesm2015/{bravobit-bb-foundation-recaptcha.js → bravobit-bb-foundation-recaptcha.mjs} +40 -47
- package/fesm2015/bravobit-bb-foundation-recaptcha.mjs.map +1 -0
- package/fesm2015/{bravobit-bb-foundation-rxjs.js → bravobit-bb-foundation-rxjs.mjs} +1 -1
- package/fesm2015/bravobit-bb-foundation-rxjs.mjs.map +1 -0
- package/fesm2015/{bravobit-bb-foundation-storage.js → bravobit-bb-foundation-storage.mjs} +12 -10
- package/fesm2015/bravobit-bb-foundation-storage.mjs.map +1 -0
- package/fesm2015/bravobit-bb-foundation-table.mjs +603 -0
- package/fesm2015/bravobit-bb-foundation-table.mjs.map +1 -0
- package/fesm2015/{bravobit-bb-foundation.js → bravobit-bb-foundation.mjs} +76 -69
- package/fesm2015/bravobit-bb-foundation.mjs.map +1 -0
- package/fesm2020/bravobit-bb-foundation-auth.mjs +928 -0
- package/fesm2020/bravobit-bb-foundation-auth.mjs.map +1 -0
- package/fesm2020/bravobit-bb-foundation-collections.mjs +441 -0
- package/fesm2020/bravobit-bb-foundation-collections.mjs.map +1 -0
- package/fesm2020/bravobit-bb-foundation-controls.mjs +233 -0
- package/fesm2020/bravobit-bb-foundation-controls.mjs.map +1 -0
- package/fesm2020/bravobit-bb-foundation-dashboard.mjs +404 -0
- package/fesm2020/bravobit-bb-foundation-dashboard.mjs.map +1 -0
- package/fesm2020/bravobit-bb-foundation-dialog.mjs +584 -0
- package/fesm2020/bravobit-bb-foundation-dialog.mjs.map +1 -0
- package/fesm2020/bravobit-bb-foundation-elements.mjs +1994 -0
- package/fesm2020/bravobit-bb-foundation-elements.mjs.map +1 -0
- package/fesm2020/bravobit-bb-foundation-http.mjs +168 -0
- package/fesm2020/bravobit-bb-foundation-http.mjs.map +1 -0
- package/fesm2020/bravobit-bb-foundation-localize.mjs +832 -0
- package/fesm2020/bravobit-bb-foundation-localize.mjs.map +1 -0
- package/fesm2020/bravobit-bb-foundation-notifications.mjs +375 -0
- package/fesm2020/bravobit-bb-foundation-notifications.mjs.map +1 -0
- package/fesm2020/bravobit-bb-foundation-recaptcha.mjs +300 -0
- package/fesm2020/bravobit-bb-foundation-recaptcha.mjs.map +1 -0
- package/fesm2020/bravobit-bb-foundation-rxjs.mjs +21 -0
- package/fesm2020/bravobit-bb-foundation-rxjs.mjs.map +1 -0
- package/fesm2020/bravobit-bb-foundation-storage.mjs +413 -0
- package/fesm2020/bravobit-bb-foundation-storage.mjs.map +1 -0
- package/fesm2020/bravobit-bb-foundation-table.mjs +592 -0
- package/fesm2020/bravobit-bb-foundation-table.mjs.map +1 -0
- package/fesm2020/bravobit-bb-foundation.mjs +892 -0
- package/fesm2020/bravobit-bb-foundation.mjs.map +1 -0
- package/http/package.json +5 -5
- package/localize/package.json +5 -5
- package/notifications/package.json +5 -5
- package/package.json +126 -8
- package/public_api.d.ts +0 -1
- package/recaptcha/package.json +5 -5
- package/rxjs/package.json +5 -5
- package/storage/package.json +5 -5
- package/table/package.json +5 -5
- package/bundles/bravobit-bb-foundation-auth.umd.js +0 -1483
- package/bundles/bravobit-bb-foundation-auth.umd.js.map +0 -1
- package/bundles/bravobit-bb-foundation-collections.umd.js +0 -868
- package/bundles/bravobit-bb-foundation-collections.umd.js.map +0 -1
- package/bundles/bravobit-bb-foundation-dashboard.umd.js +0 -876
- package/bundles/bravobit-bb-foundation-dashboard.umd.js.map +0 -1
- package/bundles/bravobit-bb-foundation-dialog.umd.js +0 -716
- package/bundles/bravobit-bb-foundation-dialog.umd.js.map +0 -1
- package/bundles/bravobit-bb-foundation-elements.umd.js +0 -2768
- package/bundles/bravobit-bb-foundation-elements.umd.js.map +0 -1
- package/bundles/bravobit-bb-foundation-http.umd.js +0 -535
- package/bundles/bravobit-bb-foundation-http.umd.js.map +0 -1
- package/bundles/bravobit-bb-foundation-localize.umd.js +0 -1292
- package/bundles/bravobit-bb-foundation-localize.umd.js.map +0 -1
- package/bundles/bravobit-bb-foundation-notifications.umd.js +0 -794
- package/bundles/bravobit-bb-foundation-notifications.umd.js.map +0 -1
- package/bundles/bravobit-bb-foundation-recaptcha.umd.js +0 -683
- package/bundles/bravobit-bb-foundation-recaptcha.umd.js.map +0 -1
- package/bundles/bravobit-bb-foundation-rxjs.umd.js +0 -29
- package/bundles/bravobit-bb-foundation-rxjs.umd.js.map +0 -1
- package/bundles/bravobit-bb-foundation-storage.umd.js +0 -799
- package/bundles/bravobit-bb-foundation-storage.umd.js.map +0 -1
- package/bundles/bravobit-bb-foundation-table.umd.js +0 -1084
- package/bundles/bravobit-bb-foundation-table.umd.js.map +0 -1
- package/bundles/bravobit-bb-foundation.umd.js +0 -1440
- package/bundles/bravobit-bb-foundation.umd.js.map +0 -1
- package/esm2015/auth/lib/auth.interceptor.js +0 -95
- package/esm2015/auth/lib/auth.service.js +0 -299
- package/esm2015/auth/lib/auth.session.js +0 -136
- package/esm2015/auth/lib/directives/permission.directive.js +0 -81
- package/esm2015/auth/lib/directives/role.directive.js +0 -38
- package/esm2015/auth/lib/guards/anonymous.guard.js +0 -35
- package/esm2015/auth/lib/guards/authenticated.guard.js +0 -36
- package/esm2015/auth/lib/permissions.service.js +0 -58
- package/esm2015/auth/lib/providers/email.provider.js +0 -26
- package/esm2015/auth/lib/providers/verify.provider.js +0 -20
- package/esm2015/collections/lib/collection.js +0 -104
- package/esm2015/collections/lib/components/collections-pager/collections-pager.component.js +0 -136
- package/esm2015/collections/lib/components/collections-viewer/collections-viewer.component.js +0 -39
- package/esm2015/collections/lib/providers/api-collection.provider.js +0 -69
- package/esm2015/collections/lib/providers/collection.provider.js +0 -14
- package/esm2015/dashboard/lib/dashboard/dashboard.component.js +0 -64
- package/esm2015/dashboard/lib/dashboard-header/dashboard-header.component.js +0 -41
- package/esm2015/dashboard/lib/dashboard-menu/dashboard-menu.component.js +0 -39
- package/esm2015/dashboard/lib/dashboard-menu-item/dashboard-menu-item.component.js +0 -38
- package/esm2015/dashboard/lib/dashboard-sidebar/dashboard-sidebar.component.js +0 -83
- package/esm2015/dashboard/lib/dashboard-sidebar-group/dashboard-sidebar-group.component.js +0 -110
- package/esm2015/dashboard/lib/dashboard-sidebar-item/dashboard-sidebar-item.component.js +0 -71
- package/esm2015/dialog/lib/dialog-actions/dialog-actions.component.js +0 -20
- package/esm2015/dialog/lib/dialog-confirm/dialog-confirm.component.js +0 -45
- package/esm2015/dialog/lib/dialog-header/dialog-header.component.js +0 -33
- package/esm2015/dialog/lib/dialog-link/dialog-link.component.js +0 -19
- package/esm2015/dialog/lib/dialog-modal/dialog-modal.component.js +0 -54
- package/esm2015/dialog/lib/dialog-overlay/dialog-overlay.component.js +0 -143
- package/esm2015/elements/lib/avatar/avatar.component.js +0 -151
- package/esm2015/elements/lib/button/button.component.js +0 -79
- package/esm2015/elements/lib/checkbox/checkbox.component.js +0 -83
- package/esm2015/elements/lib/date-picker/date-picker.component.js +0 -322
- package/esm2015/elements/lib/directives/autosize.directive.js +0 -74
- package/esm2015/elements/lib/directives/form-submit.directive.js +0 -53
- package/esm2015/elements/lib/directives/input.directive.js +0 -139
- package/esm2015/elements/lib/dropdown/dropdown.component.js +0 -111
- package/esm2015/elements/lib/file-picker/file-picker.component.js +0 -247
- package/esm2015/elements/lib/form-control/form-control.component.js +0 -58
- package/esm2015/elements/lib/form-error/form-error.component.js +0 -116
- package/esm2015/elements/lib/form-group/form-group.component.js +0 -27
- package/esm2015/elements/lib/icon/icon.component.js +0 -110
- package/esm2015/elements/lib/image-picker/image-picker.component.js +0 -119
- package/esm2015/elements/lib/pipes/file-image.pipe.js +0 -45
- package/esm2015/elements/lib/pipes/relative-time.pipe.js +0 -96
- package/esm2015/elements/lib/spinner/spinner.component.js +0 -34
- package/esm2015/elements/lib/tag/tag.component.js +0 -26
- package/esm2015/http/lib/classes/http.config.js +0 -31
- package/esm2015/http/lib/classes/http.error.js +0 -21
- package/esm2015/http/lib/interceptors/base-url.interceptor.js +0 -52
- package/esm2015/http/lib/interceptors/error.interceptor.js +0 -33
- package/esm2015/lib/core/coercions/boolean-coercion.js +0 -4
- package/esm2015/lib/core/miscellaneous/validator.js +0 -86
- package/esm2015/lib/core/mixins/can-disable.js +0 -16
- package/esm2015/lib/core/mixins/can-load.js +0 -16
- package/esm2015/lib/core/mixins/has-error.js +0 -16
- package/esm2015/lib/core/mixins/is-focused.js +0 -16
- package/esm2015/lib/core/mixins/is-grouped.js +0 -16
- package/esm2015/lib/core/mixins/is-readonly.js +0 -16
- package/esm2015/lib/core/mixins/is-required.js +0 -16
- package/esm2015/lib/core/services/clipboard.service.js +0 -72
- package/esm2015/lib/core/services/exif.service.js +0 -168
- package/esm2015/lib/core/services/file-loader.service.js +0 -90
- package/esm2015/lib/core/services/image-converter.service.js +0 -130
- package/esm2015/lib/core/services/patch.service.js +0 -65
- package/esm2015/localize/lib/localize.dictionary.js +0 -137
- package/esm2015/localize/lib/localize.service.js +0 -282
- package/esm2015/localize/lib/views/localize-string/localize-string.component.js +0 -99
- package/esm2015/notifications/lib/notifications-item/notifications-item.component.js +0 -108
- package/esm2015/notifications/lib/notifications-list/notifications-list.component.js +0 -56
- package/esm2015/recaptcha/lib/recaptcha/recaptcha.component.js +0 -199
- package/esm2015/recaptcha/lib/recaptcha-loader.service.js +0 -93
- package/esm2015/rxjs/lib/operators/combine-latest-map.operator.js +0 -7
- package/esm2015/storage/lib/storage.service.js +0 -111
- package/esm2015/storage/lib/strategies/cookie-storage.strategy.js +0 -143
- package/esm2015/storage/lib/strategies/polyfill-storage.strategy.js +0 -102
- package/esm2015/table/lib/components/table/table.component.js +0 -204
- package/esm2015/table/lib/components/table-cell/table-cell.component.js +0 -19
- package/esm2015/table/lib/components/table-header-cell/table-header-cell.component.js +0 -143
- package/esm2015/table/lib/components/table-pager/table-pager.component.js +0 -146
- package/esm2015/table/lib/data/datasource.data.js +0 -32
- package/esm2015/table/lib/data/generic.data.js +0 -73
- package/fesm2015/bravobit-bb-foundation-auth.js.map +0 -1
- package/fesm2015/bravobit-bb-foundation-collections.js.map +0 -1
- package/fesm2015/bravobit-bb-foundation-dashboard.js +0 -468
- package/fesm2015/bravobit-bb-foundation-dashboard.js.map +0 -1
- package/fesm2015/bravobit-bb-foundation-dialog.js.map +0 -1
- package/fesm2015/bravobit-bb-foundation-elements.js.map +0 -1
- package/fesm2015/bravobit-bb-foundation-http.js.map +0 -1
- package/fesm2015/bravobit-bb-foundation-localize.js.map +0 -1
- package/fesm2015/bravobit-bb-foundation-notifications.js +0 -393
- package/fesm2015/bravobit-bb-foundation-notifications.js.map +0 -1
- package/fesm2015/bravobit-bb-foundation-recaptcha.js.map +0 -1
- package/fesm2015/bravobit-bb-foundation-rxjs.js.map +0 -1
- package/fesm2015/bravobit-bb-foundation-storage.js.map +0 -1
- package/fesm2015/bravobit-bb-foundation-table.js +0 -636
- package/fesm2015/bravobit-bb-foundation-table.js.map +0 -1
- package/fesm2015/bravobit-bb-foundation.js.map +0 -1
- package/lib/core/coercions/boolean-coercion.d.ts +0 -1
|
@@ -1,794 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/animations'), require('@bravobit/bb-foundation'), require('@angular/common'), require('@bravobit/bb-foundation/localize'), require('rxjs'), require('rxjs/operators')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@bravobit/bb-foundation/notifications', ['exports', '@angular/core', '@angular/animations', '@bravobit/bb-foundation', '@angular/common', '@bravobit/bb-foundation/localize', 'rxjs', 'rxjs/operators'], factory) :
|
|
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"].notifications = {}), global.ng.core, global.ng.animations, global.bravobit["bb-foundation"], global.ng.common, global.bravobit["bb-foundation"].localize, global.rxjs, global.rxjs.operators));
|
|
5
|
-
})(this, (function (exports, i0, animations, i1, i2, i2$1, rxjs, operators) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () { return e[k]; }
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
n["default"] = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
27
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
28
|
-
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
29
|
-
|
|
30
|
-
exports.NotificationType = void 0;
|
|
31
|
-
(function (NotificationType) {
|
|
32
|
-
NotificationType["Success"] = "success";
|
|
33
|
-
NotificationType["Error"] = "error";
|
|
34
|
-
NotificationType["Warning"] = "warning";
|
|
35
|
-
NotificationType["Info"] = "info";
|
|
36
|
-
NotificationType["Custom"] = "custom";
|
|
37
|
-
})(exports.NotificationType || (exports.NotificationType = {}));
|
|
38
|
-
var NotificationsConfig = /** @class */ (function () {
|
|
39
|
-
function NotificationsConfig() {
|
|
40
|
-
}
|
|
41
|
-
return NotificationsConfig;
|
|
42
|
-
}());
|
|
43
|
-
exports.NotificationsPosition = void 0;
|
|
44
|
-
(function (NotificationsPosition) {
|
|
45
|
-
NotificationsPosition["TopRight"] = "flex-start|flex-end";
|
|
46
|
-
NotificationsPosition["BottomRight"] = "flex-end|flex-end";
|
|
47
|
-
NotificationsPosition["TopLeft"] = "flex-start|flex-start";
|
|
48
|
-
NotificationsPosition["BottomLeft"] = "flex-end|flex-start";
|
|
49
|
-
})(exports.NotificationsPosition || (exports.NotificationsPosition = {}));
|
|
50
|
-
var NotificationsData = /** @class */ (function () {
|
|
51
|
-
function NotificationsData() {
|
|
52
|
-
}
|
|
53
|
-
return NotificationsData;
|
|
54
|
-
}());
|
|
55
|
-
|
|
56
|
-
/*! *****************************************************************************
|
|
57
|
-
Copyright (c) Microsoft Corporation.
|
|
58
|
-
|
|
59
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
60
|
-
purpose with or without fee is hereby granted.
|
|
61
|
-
|
|
62
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
63
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
64
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
65
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
66
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
67
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
68
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
69
|
-
***************************************************************************** */
|
|
70
|
-
/* global Reflect, Promise */
|
|
71
|
-
var extendStatics = function (d, b) {
|
|
72
|
-
extendStatics = Object.setPrototypeOf ||
|
|
73
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
74
|
-
function (d, b) { for (var p in b)
|
|
75
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
76
|
-
d[p] = b[p]; };
|
|
77
|
-
return extendStatics(d, b);
|
|
78
|
-
};
|
|
79
|
-
function __extends(d, b) {
|
|
80
|
-
if (typeof b !== "function" && b !== null)
|
|
81
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
82
|
-
extendStatics(d, b);
|
|
83
|
-
function __() { this.constructor = d; }
|
|
84
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
85
|
-
}
|
|
86
|
-
var __assign = function () {
|
|
87
|
-
__assign = Object.assign || function __assign(t) {
|
|
88
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
89
|
-
s = arguments[i];
|
|
90
|
-
for (var p in s)
|
|
91
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
92
|
-
t[p] = s[p];
|
|
93
|
-
}
|
|
94
|
-
return t;
|
|
95
|
-
};
|
|
96
|
-
return __assign.apply(this, arguments);
|
|
97
|
-
};
|
|
98
|
-
function __rest(s, e) {
|
|
99
|
-
var t = {};
|
|
100
|
-
for (var p in s)
|
|
101
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
102
|
-
t[p] = s[p];
|
|
103
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
104
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
105
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
106
|
-
t[p[i]] = s[p[i]];
|
|
107
|
-
}
|
|
108
|
-
return t;
|
|
109
|
-
}
|
|
110
|
-
function __decorate(decorators, target, key, desc) {
|
|
111
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
112
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
113
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
114
|
-
else
|
|
115
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
116
|
-
if (d = decorators[i])
|
|
117
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
118
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
119
|
-
}
|
|
120
|
-
function __param(paramIndex, decorator) {
|
|
121
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
122
|
-
}
|
|
123
|
-
function __metadata(metadataKey, metadataValue) {
|
|
124
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
125
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
126
|
-
}
|
|
127
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
128
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
129
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
130
|
-
function fulfilled(value) { try {
|
|
131
|
-
step(generator.next(value));
|
|
132
|
-
}
|
|
133
|
-
catch (e) {
|
|
134
|
-
reject(e);
|
|
135
|
-
} }
|
|
136
|
-
function rejected(value) { try {
|
|
137
|
-
step(generator["throw"](value));
|
|
138
|
-
}
|
|
139
|
-
catch (e) {
|
|
140
|
-
reject(e);
|
|
141
|
-
} }
|
|
142
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
143
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
function __generator(thisArg, body) {
|
|
147
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
148
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
149
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
150
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
151
|
-
function step(op) {
|
|
152
|
-
if (f)
|
|
153
|
-
throw new TypeError("Generator is already executing.");
|
|
154
|
-
while (_)
|
|
155
|
-
try {
|
|
156
|
-
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)
|
|
157
|
-
return t;
|
|
158
|
-
if (y = 0, t)
|
|
159
|
-
op = [op[0] & 2, t.value];
|
|
160
|
-
switch (op[0]) {
|
|
161
|
-
case 0:
|
|
162
|
-
case 1:
|
|
163
|
-
t = op;
|
|
164
|
-
break;
|
|
165
|
-
case 4:
|
|
166
|
-
_.label++;
|
|
167
|
-
return { value: op[1], done: false };
|
|
168
|
-
case 5:
|
|
169
|
-
_.label++;
|
|
170
|
-
y = op[1];
|
|
171
|
-
op = [0];
|
|
172
|
-
continue;
|
|
173
|
-
case 7:
|
|
174
|
-
op = _.ops.pop();
|
|
175
|
-
_.trys.pop();
|
|
176
|
-
continue;
|
|
177
|
-
default:
|
|
178
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
179
|
-
_ = 0;
|
|
180
|
-
continue;
|
|
181
|
-
}
|
|
182
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
183
|
-
_.label = op[1];
|
|
184
|
-
break;
|
|
185
|
-
}
|
|
186
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
187
|
-
_.label = t[1];
|
|
188
|
-
t = op;
|
|
189
|
-
break;
|
|
190
|
-
}
|
|
191
|
-
if (t && _.label < t[2]) {
|
|
192
|
-
_.label = t[2];
|
|
193
|
-
_.ops.push(op);
|
|
194
|
-
break;
|
|
195
|
-
}
|
|
196
|
-
if (t[2])
|
|
197
|
-
_.ops.pop();
|
|
198
|
-
_.trys.pop();
|
|
199
|
-
continue;
|
|
200
|
-
}
|
|
201
|
-
op = body.call(thisArg, _);
|
|
202
|
-
}
|
|
203
|
-
catch (e) {
|
|
204
|
-
op = [6, e];
|
|
205
|
-
y = 0;
|
|
206
|
-
}
|
|
207
|
-
finally {
|
|
208
|
-
f = t = 0;
|
|
209
|
-
}
|
|
210
|
-
if (op[0] & 5)
|
|
211
|
-
throw op[1];
|
|
212
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
216
|
-
if (k2 === undefined)
|
|
217
|
-
k2 = k;
|
|
218
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
219
|
-
}) : (function (o, m, k, k2) {
|
|
220
|
-
if (k2 === undefined)
|
|
221
|
-
k2 = k;
|
|
222
|
-
o[k2] = m[k];
|
|
223
|
-
});
|
|
224
|
-
function __exportStar(m, o) {
|
|
225
|
-
for (var p in m)
|
|
226
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
227
|
-
__createBinding(o, m, p);
|
|
228
|
-
}
|
|
229
|
-
function __values(o) {
|
|
230
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
231
|
-
if (m)
|
|
232
|
-
return m.call(o);
|
|
233
|
-
if (o && typeof o.length === "number")
|
|
234
|
-
return {
|
|
235
|
-
next: function () {
|
|
236
|
-
if (o && i >= o.length)
|
|
237
|
-
o = void 0;
|
|
238
|
-
return { value: o && o[i++], done: !o };
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
242
|
-
}
|
|
243
|
-
function __read(o, n) {
|
|
244
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
245
|
-
if (!m)
|
|
246
|
-
return o;
|
|
247
|
-
var i = m.call(o), r, ar = [], e;
|
|
248
|
-
try {
|
|
249
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
250
|
-
ar.push(r.value);
|
|
251
|
-
}
|
|
252
|
-
catch (error) {
|
|
253
|
-
e = { error: error };
|
|
254
|
-
}
|
|
255
|
-
finally {
|
|
256
|
-
try {
|
|
257
|
-
if (r && !r.done && (m = i["return"]))
|
|
258
|
-
m.call(i);
|
|
259
|
-
}
|
|
260
|
-
finally {
|
|
261
|
-
if (e)
|
|
262
|
-
throw e.error;
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
return ar;
|
|
266
|
-
}
|
|
267
|
-
/** @deprecated */
|
|
268
|
-
function __spread() {
|
|
269
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
270
|
-
ar = ar.concat(__read(arguments[i]));
|
|
271
|
-
return ar;
|
|
272
|
-
}
|
|
273
|
-
/** @deprecated */
|
|
274
|
-
function __spreadArrays() {
|
|
275
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
276
|
-
s += arguments[i].length;
|
|
277
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
278
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
279
|
-
r[k] = a[j];
|
|
280
|
-
return r;
|
|
281
|
-
}
|
|
282
|
-
function __spreadArray(to, from, pack) {
|
|
283
|
-
if (pack || arguments.length === 2)
|
|
284
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
285
|
-
if (ar || !(i in from)) {
|
|
286
|
-
if (!ar)
|
|
287
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
288
|
-
ar[i] = from[i];
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
292
|
-
}
|
|
293
|
-
function __await(v) {
|
|
294
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
295
|
-
}
|
|
296
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
297
|
-
if (!Symbol.asyncIterator)
|
|
298
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
299
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
300
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
301
|
-
function verb(n) { if (g[n])
|
|
302
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
303
|
-
function resume(n, v) { try {
|
|
304
|
-
step(g[n](v));
|
|
305
|
-
}
|
|
306
|
-
catch (e) {
|
|
307
|
-
settle(q[0][3], e);
|
|
308
|
-
} }
|
|
309
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
310
|
-
function fulfill(value) { resume("next", value); }
|
|
311
|
-
function reject(value) { resume("throw", value); }
|
|
312
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
313
|
-
resume(q[0][0], q[0][1]); }
|
|
314
|
-
}
|
|
315
|
-
function __asyncDelegator(o) {
|
|
316
|
-
var i, p;
|
|
317
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
318
|
-
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; }
|
|
319
|
-
}
|
|
320
|
-
function __asyncValues(o) {
|
|
321
|
-
if (!Symbol.asyncIterator)
|
|
322
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
323
|
-
var m = o[Symbol.asyncIterator], i;
|
|
324
|
-
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);
|
|
325
|
-
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); }); }; }
|
|
326
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
327
|
-
}
|
|
328
|
-
function __makeTemplateObject(cooked, raw) {
|
|
329
|
-
if (Object.defineProperty) {
|
|
330
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
331
|
-
}
|
|
332
|
-
else {
|
|
333
|
-
cooked.raw = raw;
|
|
334
|
-
}
|
|
335
|
-
return cooked;
|
|
336
|
-
}
|
|
337
|
-
;
|
|
338
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
339
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
340
|
-
}) : function (o, v) {
|
|
341
|
-
o["default"] = v;
|
|
342
|
-
};
|
|
343
|
-
function __importStar(mod) {
|
|
344
|
-
if (mod && mod.__esModule)
|
|
345
|
-
return mod;
|
|
346
|
-
var result = {};
|
|
347
|
-
if (mod != null)
|
|
348
|
-
for (var k in mod)
|
|
349
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
350
|
-
__createBinding(result, mod, k);
|
|
351
|
-
__setModuleDefault(result, mod);
|
|
352
|
-
return result;
|
|
353
|
-
}
|
|
354
|
-
function __importDefault(mod) {
|
|
355
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
356
|
-
}
|
|
357
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
358
|
-
if (kind === "a" && !f)
|
|
359
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
360
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
361
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
362
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
363
|
-
}
|
|
364
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
365
|
-
if (kind === "m")
|
|
366
|
-
throw new TypeError("Private method is not writable");
|
|
367
|
-
if (kind === "a" && !f)
|
|
368
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
369
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
370
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
371
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
var s = '250ms cubic-bezier(0, 0, .2, 1)';
|
|
375
|
-
var l = '400ms cubic-bezier(0, 0, .2, 1)';
|
|
376
|
-
var notificationAnimation = animations.trigger('notificationListAnimation', [
|
|
377
|
-
animations.transition('* => *', [
|
|
378
|
-
animations.query(':enter', animations.group([
|
|
379
|
-
// 1. Set the initial state.
|
|
380
|
-
animations.style({ height: 0, opacity: 0, transform: 'translateX({{ to }}%) scale(0.95)' }),
|
|
381
|
-
// 2. Start the animation to show the item.
|
|
382
|
-
animations.stagger(0, [
|
|
383
|
-
animations.animate(s, animations.style({ height: '*' })),
|
|
384
|
-
animations.animate(l, animations.style({ opacity: 1, transform: 'translateX(0) scale(0.95)' })),
|
|
385
|
-
animations.animate(s, animations.style({ transform: 'translateX(0) scale(1)' }))
|
|
386
|
-
])
|
|
387
|
-
]), { optional: true }),
|
|
388
|
-
animations.query(':leave', animations.group([
|
|
389
|
-
// 1. Set the initial state.
|
|
390
|
-
animations.style({ height: '*', opacity: 1, transform: 'translateX(0) scale(1)' }),
|
|
391
|
-
// 2. Start the animation to hide the item.
|
|
392
|
-
animations.stagger(0, [
|
|
393
|
-
animations.animate(s, animations.style({ transform: 'translateX(0) scale(0.95)' })),
|
|
394
|
-
animations.animate(l, animations.style({ opacity: 0, transform: 'translateX({{ to }}%) scale(0.95)' })),
|
|
395
|
-
animations.animate(s, animations.style({ height: 0 }))
|
|
396
|
-
])
|
|
397
|
-
]), { optional: true })
|
|
398
|
-
])
|
|
399
|
-
]);
|
|
400
|
-
|
|
401
|
-
var BbNotificationsItem = /** @class */ (function () {
|
|
402
|
-
function BbNotificationsItem(_zone, _platform, _changeDetection) {
|
|
403
|
-
var _this = this;
|
|
404
|
-
this._zone = _zone;
|
|
405
|
-
this._platform = _platform;
|
|
406
|
-
this._changeDetection = _changeDetection;
|
|
407
|
-
// Data.
|
|
408
|
-
this._progress = 0;
|
|
409
|
-
this._count = 0;
|
|
410
|
-
// Data.
|
|
411
|
-
this._radius = 19;
|
|
412
|
-
this._circumference = this._radius * 2 * Math.PI;
|
|
413
|
-
this.callActionAndDestroy = function (notification, action) {
|
|
414
|
-
// Perform the callback (if it exists).
|
|
415
|
-
action && action.callback && action.callback();
|
|
416
|
-
// Call the destroy method (if it exists).
|
|
417
|
-
notification && notification.destroy && notification.destroy();
|
|
418
|
-
};
|
|
419
|
-
this.instance = function () {
|
|
420
|
-
// Calculate the difference.
|
|
421
|
-
_this._difference = (Date.now() - _this._startTime) - (_this._count * _this._speed);
|
|
422
|
-
// Add up the count.
|
|
423
|
-
if (_this._count++ === _this._steps) {
|
|
424
|
-
_this.notification.destroy();
|
|
425
|
-
}
|
|
426
|
-
// Add the steps to the progress.
|
|
427
|
-
_this._progress += 100 / _this._steps;
|
|
428
|
-
// Set a new timer.
|
|
429
|
-
_this._timer = _this.setTimeout(_this.instance, _this._speed - _this._difference);
|
|
430
|
-
// Run a new change detection cycle.
|
|
431
|
-
_this._zone.run(function () { return _this._changeDetection.detectChanges(); });
|
|
432
|
-
};
|
|
433
|
-
this.setTimeout = function (method, timeout) {
|
|
434
|
-
// Check if the window and method exist.
|
|
435
|
-
if (!window || !window.setTimeout) {
|
|
436
|
-
return null;
|
|
437
|
-
}
|
|
438
|
-
return window.setTimeout(method, timeout);
|
|
439
|
-
};
|
|
440
|
-
}
|
|
441
|
-
Object.defineProperty(BbNotificationsItem.prototype, "getClass", {
|
|
442
|
-
get: function () {
|
|
443
|
-
return "bb-notifications-item " + this.notification.type;
|
|
444
|
-
},
|
|
445
|
-
enumerable: false,
|
|
446
|
-
configurable: true
|
|
447
|
-
});
|
|
448
|
-
Object.defineProperty(BbNotificationsItem.prototype, "progressStrokeArray", {
|
|
449
|
-
get: function () {
|
|
450
|
-
var value = Math.floor(this._circumference);
|
|
451
|
-
return value + ", " + value;
|
|
452
|
-
},
|
|
453
|
-
enumerable: false,
|
|
454
|
-
configurable: true
|
|
455
|
-
});
|
|
456
|
-
Object.defineProperty(BbNotificationsItem.prototype, "progressStrokeOffset", {
|
|
457
|
-
get: function () {
|
|
458
|
-
return Math.floor(this._circumference - this._progress / 100 * this._circumference);
|
|
459
|
-
},
|
|
460
|
-
enumerable: false,
|
|
461
|
-
configurable: true
|
|
462
|
-
});
|
|
463
|
-
Object.defineProperty(BbNotificationsItem.prototype, "isContentString", {
|
|
464
|
-
get: function () {
|
|
465
|
-
return typeof this.notification.content === 'string';
|
|
466
|
-
},
|
|
467
|
-
enumerable: false,
|
|
468
|
-
configurable: true
|
|
469
|
-
});
|
|
470
|
-
BbNotificationsItem.prototype.ngOnInit = function () {
|
|
471
|
-
// Check if the notification timeout is not 0 and the platform is a browser.
|
|
472
|
-
if (this.notification.timeout <= 0 || !this._platform.isBrowser) {
|
|
473
|
-
this.notification.dismiss = true;
|
|
474
|
-
return;
|
|
475
|
-
}
|
|
476
|
-
// Start the timeout.
|
|
477
|
-
this.startTimeout();
|
|
478
|
-
};
|
|
479
|
-
BbNotificationsItem.prototype.ngOnDestroy = function () {
|
|
480
|
-
// Clear the timeout if it was set.
|
|
481
|
-
this._timer && window && window.clearTimeout && window.clearTimeout(this._timer);
|
|
482
|
-
};
|
|
483
|
-
BbNotificationsItem.prototype.startTimeout = function () {
|
|
484
|
-
var _this = this;
|
|
485
|
-
// Calculate the steps of the timeout.
|
|
486
|
-
this._steps = this.notification.timeout / 10;
|
|
487
|
-
// Calculate the speed of the timeout.
|
|
488
|
-
this._speed = this.notification.timeout / this._steps;
|
|
489
|
-
// Get the start time.
|
|
490
|
-
this._startTime = Date.now();
|
|
491
|
-
// Set a new timer outside of Angular.
|
|
492
|
-
this._zone.runOutsideAngular(function () { return _this._timer = _this.setTimeout(_this.instance, _this._speed); });
|
|
493
|
-
};
|
|
494
|
-
return BbNotificationsItem;
|
|
495
|
-
}());
|
|
496
|
-
BbNotificationsItem.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbNotificationsItem, deps: [{ token: i0__namespace.NgZone }, { token: i1__namespace.Platform }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
497
|
-
BbNotificationsItem.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.11", type: BbNotificationsItem, selector: "bb-notifications-item", inputs: { notification: "notification", dismissButtonText: "dismissButtonText" }, host: { attributes: { "role": "alert" }, properties: { "class": "this.getClass" } }, viewQueries: [{ propertyName: "progressElementRef", first: true, predicate: ["progress"], descendants: true }], ngImport: i0__namespace, template: "<div class=\"notification-content-wrapper\">\n <!--\n The icon for the notification.\n\n The icon is reflected by the type of the\n notification. Same goes for the color and\n background-color.\n -->\n <div [style.color]=\"notification?.color\"\n [style.background-color]=\"notification?.backgroundColor\"\n class=\"notification-icon-wrapper\">\n <svg xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 16 19.5\"\n class=\"notification-icon\">\n <path\n d=\"M8 19.5c1.1 0 2-.9 2-2H6c0 1.1.9 2 2 2zM14 13.5v-5c0-3.1-1.6-5.6-4.5-6.3v-.7C9.5.7 8.8 0 8 0S6.5.7 6.5 1.5v.7C3.6 2.9 2 5.4 2 8.5v5l-2 2v1h16v-1l-2-2z\">\n </path>\n </svg>\n\n <!--\n The circular progress for the notification.\n\n The progress is only visible when a timeout is\n set. The progress adapts to the time remaining\n for the notification.\n -->\n <svg *ngIf=\"notification?.timeout > 0\"\n class=\"notification-progress-ring\"\n viewBox=\"0 0 40 40\"\n role=\"progressbar\">\n <circle #progress\n [attr.stroke-dasharray]=\"progressStrokeArray\"\n [attr.stroke-dashoffset]=\"progressStrokeOffset\"\n [style.stroke]=\"notification?.color\"\n class=\"notification-progress-circle\"\n stroke-width=\"2\"\n fill=\"transparent\"\n r=\"19\"\n cx=\"20\"\n cy=\"20\">\n </circle>\n </svg>\n </div>\n\n <!--\n The content for the notification.\n\n This displays a string or a template based\n on the given parameter by the user.\n -->\n <div class=\"notification-content\">\n <ng-container *ngIf=\"isContentString; else templateContent\"\n [ngSwitch]=\"notification?.localize\">\n <ng-container *ngSwitchCase=\"true\">\n {{ $any(notification?.content) | bbLocalize:{data: notification?.data} }}\n </ng-container>\n <ng-container *ngSwitchDefault>\n {{ notification?.content }}\n </ng-container>\n </ng-container>\n </div>\n</div>\n\n<!--\n The actions of the notification.\n\n All actions are displayed here and are\n based on the actions array the user provided.\n-->\n<div *ngIf=\"notification?.actions?.length > 0 || notification?.dismiss\"\n class=\"notification-actions\">\n <button *ngFor=\"let action of notification?.actions\"\n (click)=\"callActionAndDestroy(notification, action)\"\n type=\"button\"\n [class.destructive]=\"action?.type === 'cancel'\"\n class=\"notification-actions-button\">\n <span [ngSwitch]=\"notification?.localize\"\n class=\"notification-actions-button-highlight\">\n <ng-container *ngSwitchCase=\"true\">\n {{ action?.title | bbLocalize:{data: notification?.data} }}\n </ng-container>\n <ng-container *ngSwitchDefault>\n {{ action?.title }}\n </ng-container>\n </span>\n </button>\n <button *ngIf=\"notification?.dismiss\"\n (click)=\"notification?.destroy()\"\n class=\"notification-actions-button destructive\"\n type=\"button\">\n <span class=\"notification-actions-button-highlight\">\n {{ notification?.dismissText || dismissButtonText }}\n </span>\n </button>\n</div>\n\n<!--\n The outlet for the notification content template ref.\n-->\n<ng-template #templateContent>\n <ng-container *ngTemplateOutlet=\"$any(notification?.content)\"></ng-container>\n</ng-template>\n", styles: [".bb-notifications-item{display:flex;border-radius:4px;flex-direction:column;background-color:#fff;border:1px solid #d6dbe0}.bb-notifications-item.success .notification-icon-wrapper{color:#2dc05d;background-color:#ebfaf0}.bb-notifications-item.success .notification-progress-circle{stroke:#36d068}.bb-notifications-item.error .notification-icon-wrapper{color:#f43e3e;background-color:#feeeee}.bb-notifications-item.error .notification-progress-circle{stroke:#f55656}.bb-notifications-item.warning .notification-icon-wrapper{color:#f1ae00;background-color:#fff8e7}.bb-notifications-item.warning .notification-progress-circle{stroke:#ffbc0b}.bb-notifications-item.info .notification-icon-wrapper{color:#099bf6;background-color:#e9f6fe}.bb-notifications-item.info .notification-progress-circle{stroke:#22a5f7}.bb-notifications-item.custom .notification-icon-wrapper{color:#657385;background-color:#f3f5f6}.bb-notifications-item.custom .notification-progress-circle{stroke:#657385}.notification-content-wrapper{padding:20px;display:flex;align-items:center}.notification-icon-wrapper{width:40px;height:40px;display:flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;border-radius:50%;align-items:center;justify-content:center;color:#657385;background-color:#f3f5f6}.notification-icon{width:100%;height:100%;padding:10px;fill:currentColor}.notification-content{flex:1;font-size:14px;line-height:1.5;font-weight:500;margin-left:20px;color:#000000d9}.notification-content i{font-style:italic}.notification-content,.notification-actions-button{font-family:inherit}.notification-actions{display:flex;margin:0 20px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-top:1px solid #f3f5f6}.notification-actions-button{flex:1;border:none;color:#22a5f7;cursor:pointer;font-size:14px;font-weight:500;padding:12px 2px;text-align:center;background-color:transparent}.notification-actions-button:hover>.notification-actions-button-highlight,.notification-actions-button:focus>.notification-actions-button-highlight{background-color:#22a5f71a}.notification-actions-button:active>.notification-actions-button-highlight{background-color:#22a5f733}.notification-actions-button.destructive{color:#f55656}.notification-actions-button.destructive:hover>.notification-actions-button-highlight,.notification-actions-button.destructive:focus>.notification-actions-button-highlight{background-color:#f556561a}.notification-actions-button.destructive:active>.notification-actions-button-highlight{background-color:#f5565633}.notification-actions-button-highlight{padding:4px 12px;border-radius:12px;display:inline-flex;transition:background-color .15s cubic-bezier(0,0,.2,1)}.notification-progress-ring{top:0;left:0;right:0;bottom:0;width:100%;height:100%;position:absolute}.notification-progress-circle{transform:rotate(-90deg);transform-origin:50% 50%;stroke:#657385}\n"], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i2__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i2__namespace.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "bbLocalize": i2__namespace$1.BbLocalize }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
498
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbNotificationsItem, decorators: [{
|
|
499
|
-
type: i0.Component,
|
|
500
|
-
args: [{
|
|
501
|
-
selector: 'bb-notifications-item',
|
|
502
|
-
templateUrl: './notifications-item.component.html',
|
|
503
|
-
styleUrls: ['./notifications-item.component.scss'],
|
|
504
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
505
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
506
|
-
preserveWhitespaces: false,
|
|
507
|
-
host: {
|
|
508
|
-
'role': 'alert'
|
|
509
|
-
}
|
|
510
|
-
}]
|
|
511
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.NgZone }, { type: i1__namespace.Platform }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { notification: [{
|
|
512
|
-
type: i0.Input
|
|
513
|
-
}], dismissButtonText: [{
|
|
514
|
-
type: i0.Input
|
|
515
|
-
}], progressElementRef: [{
|
|
516
|
-
type: i0.ViewChild,
|
|
517
|
-
args: ['progress']
|
|
518
|
-
}], getClass: [{
|
|
519
|
-
type: i0.HostBinding,
|
|
520
|
-
args: ['class']
|
|
521
|
-
}] } });
|
|
522
|
-
|
|
523
|
-
var BbNotificationsList = /** @class */ (function () {
|
|
524
|
-
function BbNotificationsList(data) {
|
|
525
|
-
this.data = data;
|
|
526
|
-
// Data.
|
|
527
|
-
this.position = null;
|
|
528
|
-
// Track by function.
|
|
529
|
-
this.trackByFn = function (_, item) { return item.id; };
|
|
530
|
-
}
|
|
531
|
-
Object.defineProperty(BbNotificationsList.prototype, "horizontalPosition", {
|
|
532
|
-
get: function () {
|
|
533
|
-
return this.location.horizontal;
|
|
534
|
-
},
|
|
535
|
-
enumerable: false,
|
|
536
|
-
configurable: true
|
|
537
|
-
});
|
|
538
|
-
Object.defineProperty(BbNotificationsList.prototype, "verticalPosition", {
|
|
539
|
-
get: function () {
|
|
540
|
-
return this.location.vertical;
|
|
541
|
-
},
|
|
542
|
-
enumerable: false,
|
|
543
|
-
configurable: true
|
|
544
|
-
});
|
|
545
|
-
Object.defineProperty(BbNotificationsList.prototype, "animation", {
|
|
546
|
-
get: function () {
|
|
547
|
-
var to = this.horizontalPosition === 'flex-start'
|
|
548
|
-
? -50
|
|
549
|
-
: 50;
|
|
550
|
-
return { to: to };
|
|
551
|
-
},
|
|
552
|
-
enumerable: false,
|
|
553
|
-
configurable: true
|
|
554
|
-
});
|
|
555
|
-
Object.defineProperty(BbNotificationsList.prototype, "location", {
|
|
556
|
-
get: function () {
|
|
557
|
-
var _a = __read((this.data.position || '').split('|'), 2), y = _a[0], x = _a[1];
|
|
558
|
-
return { vertical: y || null, horizontal: x || null };
|
|
559
|
-
},
|
|
560
|
-
enumerable: false,
|
|
561
|
-
configurable: true
|
|
562
|
-
});
|
|
563
|
-
return BbNotificationsList;
|
|
564
|
-
}());
|
|
565
|
-
BbNotificationsList.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbNotificationsList, deps: [{ token: NotificationsData }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
566
|
-
BbNotificationsList.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.11", type: BbNotificationsList, selector: "bb-notifications-list", host: { attributes: { "role": "list" }, properties: { "style.justify-content": "this.horizontalPosition", "style.align-items": "this.verticalPosition" }, classAttribute: "bb-notifications-list" }, ngImport: i0__namespace, template: "<!--\n The notifications list.\n\n The list provides the animation effect for the\n incoming notifications.\n-->\n<div *ngIf=\"data?.data | async as notifications\"\n [@notificationListAnimation]=\"{value: notifications?.length, params: animation}\"\n class=\"notifications-list-wrapper\">\n <!--\n The loop for the notifications.\n\n All notifications will be displayed here. They\n are wrapped within a wrapper which separates them.\n -->\n <div *ngFor=\"let notification of notifications; trackBy: trackByFn\"\n class=\"notifications-item-wrapper\">\n <bb-notifications-item [notification]=\"notification\"\n [dismissButtonText]=\"data?.dismissText\">\n </bb-notifications-item>\n </div>\n</div>\n", styles: [".bb-notifications-list{top:0;left:0;right:0;bottom:0;z-index:1100;padding:10px;display:flex;position:fixed;pointer-events:none}.notifications-list-wrapper{width:100%;display:block;max-width:400px;position:relative}.notifications-item-wrapper{padding:0;margin:0 0 10px;pointer-events:all}\n"], components: [{ type: BbNotificationsItem, selector: "bb-notifications-item", inputs: ["notification", "dismissButtonText"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i2__namespace.AsyncPipe }, animations: [notificationAnimation], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
567
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: BbNotificationsList, decorators: [{
|
|
568
|
-
type: i0.Component,
|
|
569
|
-
args: [{
|
|
570
|
-
selector: 'bb-notifications-list',
|
|
571
|
-
templateUrl: './notifications-list.component.html',
|
|
572
|
-
styleUrls: ['./notifications-list.component.scss'],
|
|
573
|
-
animations: [notificationAnimation],
|
|
574
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
575
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
576
|
-
preserveWhitespaces: false,
|
|
577
|
-
host: {
|
|
578
|
-
'class': 'bb-notifications-list',
|
|
579
|
-
'role': 'list'
|
|
580
|
-
}
|
|
581
|
-
}]
|
|
582
|
-
}], ctorParameters: function () { return [{ type: NotificationsData }]; }, propDecorators: { horizontalPosition: [{
|
|
583
|
-
type: i0.HostBinding,
|
|
584
|
-
args: ['style.justify-content']
|
|
585
|
-
}], verticalPosition: [{
|
|
586
|
-
type: i0.HostBinding,
|
|
587
|
-
args: ['style.align-items']
|
|
588
|
-
}] } });
|
|
589
|
-
|
|
590
|
-
var NotificationsInjector = /** @class */ (function () {
|
|
591
|
-
function NotificationsInjector(_parentInjector, _additionalTokens) {
|
|
592
|
-
this._parentInjector = _parentInjector;
|
|
593
|
-
this._additionalTokens = _additionalTokens;
|
|
594
|
-
}
|
|
595
|
-
NotificationsInjector.prototype.get = function (token, notFoundValue) {
|
|
596
|
-
// First check if the additional token
|
|
597
|
-
// contains the token.
|
|
598
|
-
var value = this._additionalTokens.get(token);
|
|
599
|
-
// If that value exists return it.
|
|
600
|
-
if (value) {
|
|
601
|
-
return value;
|
|
602
|
-
}
|
|
603
|
-
// Else query the parent injector.
|
|
604
|
-
return this._parentInjector.get(token, notFoundValue);
|
|
605
|
-
};
|
|
606
|
-
return NotificationsInjector;
|
|
607
|
-
}());
|
|
608
|
-
|
|
609
|
-
var Notifications = /** @class */ (function () {
|
|
610
|
-
function Notifications(_injector, _platform, _applicationRef, _localize, _config, _componentFactoryResolver) {
|
|
611
|
-
this._injector = _injector;
|
|
612
|
-
this._platform = _platform;
|
|
613
|
-
this._applicationRef = _applicationRef;
|
|
614
|
-
this._localize = _localize;
|
|
615
|
-
this._config = _config;
|
|
616
|
-
this._componentFactoryResolver = _componentFactoryResolver;
|
|
617
|
-
// The data containing the notifications.
|
|
618
|
-
this._notifications$ = new rxjs.BehaviorSubject([]);
|
|
619
|
-
this.getProperty = function (property, defaultValue) {
|
|
620
|
-
return typeof property === 'undefined'
|
|
621
|
-
? defaultValue
|
|
622
|
-
: property;
|
|
623
|
-
};
|
|
624
|
-
// Get the config.
|
|
625
|
-
var config = this._config || {};
|
|
626
|
-
// Set the config.
|
|
627
|
-
this._defaultMode = this.getProperty(config.mode, 'prepend');
|
|
628
|
-
this._defaultTimeout = this.getProperty(config.timeout, 8000);
|
|
629
|
-
this._defaultLocalize = this.getProperty(config.localize, false);
|
|
630
|
-
this._defaultDismiss = this.getProperty(config.dismiss, true);
|
|
631
|
-
this._defaultDismissText = this.getProperty(config.dismissText, 'Dismiss');
|
|
632
|
-
this._defaultPosition = this.getProperty(config.position, exports.NotificationsPosition.TopRight);
|
|
633
|
-
// Create the element that holds all notifications.
|
|
634
|
-
this.createElement();
|
|
635
|
-
}
|
|
636
|
-
Notifications.prototype.success = function (content, actions, timeout) {
|
|
637
|
-
if (actions === void 0) { actions = []; }
|
|
638
|
-
if (timeout === void 0) { timeout = this._defaultTimeout; }
|
|
639
|
-
return this.create({ content: content, timeout: timeout, actions: actions, type: exports.NotificationType.Success });
|
|
640
|
-
};
|
|
641
|
-
Notifications.prototype.error = function (content, actions, timeout) {
|
|
642
|
-
if (actions === void 0) { actions = []; }
|
|
643
|
-
if (timeout === void 0) { timeout = this._defaultTimeout; }
|
|
644
|
-
return this.create({ content: content, timeout: timeout, actions: actions, type: exports.NotificationType.Error });
|
|
645
|
-
};
|
|
646
|
-
Notifications.prototype.warn = function (content, actions, timeout) {
|
|
647
|
-
if (actions === void 0) { actions = []; }
|
|
648
|
-
if (timeout === void 0) { timeout = this._defaultTimeout; }
|
|
649
|
-
return this.create({ content: content, timeout: timeout, actions: actions, type: exports.NotificationType.Warning });
|
|
650
|
-
};
|
|
651
|
-
Notifications.prototype.info = function (content, actions, timeout) {
|
|
652
|
-
if (actions === void 0) { actions = []; }
|
|
653
|
-
if (timeout === void 0) { timeout = this._defaultTimeout; }
|
|
654
|
-
return this.create({ content: content, timeout: timeout, actions: actions, type: exports.NotificationType.Info });
|
|
655
|
-
};
|
|
656
|
-
Notifications.prototype.create = function (notification) {
|
|
657
|
-
var _this = this;
|
|
658
|
-
// Compose a new notification item.
|
|
659
|
-
var item = this.compose(notification);
|
|
660
|
-
// Add the destroy function to the notification.
|
|
661
|
-
item.destroy = function () { return _this.pull(item); };
|
|
662
|
-
// Add the notification to the list
|
|
663
|
-
// and return the item.
|
|
664
|
-
return this.push(item);
|
|
665
|
-
};
|
|
666
|
-
Notifications.prototype.push = function (notification) {
|
|
667
|
-
// Get the current list.
|
|
668
|
-
var oldList = this._notifications$.getValue();
|
|
669
|
-
// Check which mode is activated.
|
|
670
|
-
var newList;
|
|
671
|
-
switch (this._defaultMode) {
|
|
672
|
-
case 'append':
|
|
673
|
-
newList = __spreadArray(__spreadArray([], __read(oldList)), [notification]);
|
|
674
|
-
break;
|
|
675
|
-
case 'prepend':
|
|
676
|
-
default:
|
|
677
|
-
newList = __spreadArray([notification], __read(oldList));
|
|
678
|
-
}
|
|
679
|
-
// Push the new notifications.
|
|
680
|
-
this._notifications$.next(newList);
|
|
681
|
-
// Return the notification for further use.
|
|
682
|
-
return notification;
|
|
683
|
-
};
|
|
684
|
-
Notifications.prototype.pull = function (notification) {
|
|
685
|
-
// Get the current list.
|
|
686
|
-
var newList = this._notifications$
|
|
687
|
-
.getValue()
|
|
688
|
-
.filter(function (item) { return item.id !== notification.id; });
|
|
689
|
-
// Push a new list.
|
|
690
|
-
this._notifications$.next(newList);
|
|
691
|
-
};
|
|
692
|
-
Notifications.prototype.compose = function (notification) {
|
|
693
|
-
// Attach a random id to the notification.
|
|
694
|
-
notification.id = Math.random().toString(36).substr(2, 10);
|
|
695
|
-
// Set all properties.
|
|
696
|
-
notification.type = this.getProperty(notification.type, exports.NotificationType.Custom);
|
|
697
|
-
notification.content = this.getProperty(notification.content, null);
|
|
698
|
-
notification.data = this.getProperty(notification.data, {});
|
|
699
|
-
notification.timeout = this.getProperty(notification.timeout, this._defaultTimeout);
|
|
700
|
-
notification.localize = this.getProperty(notification.localize, this._defaultLocalize);
|
|
701
|
-
notification.dismiss = this.getProperty(notification.dismiss, this._defaultDismiss);
|
|
702
|
-
// Dismiss text localization.
|
|
703
|
-
var dismissText = this.getProperty(notification.dismissText, this._defaultDismissText);
|
|
704
|
-
notification.dismissText = this._defaultLocalize && this._localize
|
|
705
|
-
? this._localize.translate(dismissText)
|
|
706
|
-
: dismissText;
|
|
707
|
-
// Return the composed notification.
|
|
708
|
-
return notification;
|
|
709
|
-
};
|
|
710
|
-
Notifications.prototype.createElement = function () {
|
|
711
|
-
// Create a map with the config.
|
|
712
|
-
var map = new WeakMap();
|
|
713
|
-
map.set(NotificationsData, {
|
|
714
|
-
data: this._notifications$.pipe(operators.share()),
|
|
715
|
-
dismissText: this._defaultDismissText,
|
|
716
|
-
position: this._defaultPosition
|
|
717
|
-
});
|
|
718
|
-
// Create a custom injector.
|
|
719
|
-
var notificationsInjector = new NotificationsInjector(this._injector, map);
|
|
720
|
-
// Create the notification list and
|
|
721
|
-
// get a reference to the component.
|
|
722
|
-
this._ref = this._componentFactoryResolver
|
|
723
|
-
.resolveComponentFactory(BbNotificationsList)
|
|
724
|
-
.create(notificationsInjector);
|
|
725
|
-
// Detect the changes.
|
|
726
|
-
this._ref.changeDetectorRef.detectChanges();
|
|
727
|
-
// Attach the component's view to the application
|
|
728
|
-
// so that the change detection will run properly.
|
|
729
|
-
this._applicationRef.attachView(this._ref.hostView);
|
|
730
|
-
// If the platform is not a browser return.
|
|
731
|
-
if (!this._platform.isBrowser) {
|
|
732
|
-
return;
|
|
733
|
-
}
|
|
734
|
-
try {
|
|
735
|
-
// Append the element to the DOM.
|
|
736
|
-
document.body.appendChild(this._ref.location.nativeElement);
|
|
737
|
-
}
|
|
738
|
-
catch (_a) {
|
|
739
|
-
// Don't do anything, because it must've failed.
|
|
740
|
-
}
|
|
741
|
-
};
|
|
742
|
-
return Notifications;
|
|
743
|
-
}());
|
|
744
|
-
Notifications.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: Notifications, deps: [{ token: i0__namespace.Injector }, { token: i1__namespace.Platform }, { token: i0__namespace.ApplicationRef }, { token: i2__namespace$1.Localize, optional: true }, { token: NotificationsConfig, optional: true }, { token: i0__namespace.ComponentFactoryResolver }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
745
|
-
Notifications.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: Notifications });
|
|
746
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: Notifications, decorators: [{
|
|
747
|
-
type: i0.Injectable
|
|
748
|
-
}], ctorParameters: function () {
|
|
749
|
-
return [{ type: i0__namespace.Injector }, { type: i1__namespace.Platform }, { type: i0__namespace.ApplicationRef }, { type: i2__namespace$1.Localize, decorators: [{
|
|
750
|
-
type: i0.Optional
|
|
751
|
-
}] }, { type: NotificationsConfig, decorators: [{
|
|
752
|
-
type: i0.Optional
|
|
753
|
-
}] }, { type: i0__namespace.ComponentFactoryResolver }];
|
|
754
|
-
} });
|
|
755
|
-
|
|
756
|
-
var NotificationsModule = /** @class */ (function () {
|
|
757
|
-
function NotificationsModule() {
|
|
758
|
-
}
|
|
759
|
-
NotificationsModule.forRoot = function (config) {
|
|
760
|
-
return {
|
|
761
|
-
ngModule: NotificationsModule,
|
|
762
|
-
providers: [
|
|
763
|
-
{ provide: NotificationsConfig, useValue: config },
|
|
764
|
-
Notifications
|
|
765
|
-
]
|
|
766
|
-
};
|
|
767
|
-
};
|
|
768
|
-
return NotificationsModule;
|
|
769
|
-
}());
|
|
770
|
-
NotificationsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: NotificationsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
771
|
-
NotificationsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: NotificationsModule, declarations: [BbNotificationsList, BbNotificationsItem], imports: [i2.CommonModule, i2$1.LocalizeModule] });
|
|
772
|
-
NotificationsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: NotificationsModule, imports: [[i2.CommonModule, i2$1.LocalizeModule]] });
|
|
773
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: NotificationsModule, decorators: [{
|
|
774
|
-
type: i0.NgModule,
|
|
775
|
-
args: [{
|
|
776
|
-
imports: [i2.CommonModule, i2$1.LocalizeModule],
|
|
777
|
-
declarations: [BbNotificationsList, BbNotificationsItem],
|
|
778
|
-
entryComponents: [BbNotificationsList]
|
|
779
|
-
}]
|
|
780
|
-
}] });
|
|
781
|
-
|
|
782
|
-
/**
|
|
783
|
-
* Generated bundle index. Do not edit.
|
|
784
|
-
*/
|
|
785
|
-
|
|
786
|
-
exports.Notifications = Notifications;
|
|
787
|
-
exports.NotificationsConfig = NotificationsConfig;
|
|
788
|
-
exports.NotificationsData = NotificationsData;
|
|
789
|
-
exports.NotificationsModule = NotificationsModule;
|
|
790
|
-
|
|
791
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
792
|
-
|
|
793
|
-
}));
|
|
794
|
-
//# sourceMappingURL=bravobit-bb-foundation-notifications.umd.js.map
|