@bravobit/bb-foundation 0.32.1 → 0.40.0
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.config.d.ts +5 -0
- package/auth/lib/auth.interceptor.d.ts +2 -2
- package/auth/lib/auth.module.d.ts +1 -4
- package/auth/lib/auth.service.d.ts +2 -2
- package/auth/lib/directives/authenticated.directive.d.ts +11 -4
- package/auth/lib/guards/anonymous.guard.d.ts +2 -15
- package/auth/lib/guards/authenticated.guard.d.ts +2 -15
- package/auth/lib/interfaces/config.interface.d.ts +2 -1
- package/auth/public_api.d.ts +1 -0
- package/collections/lib/collections.module.d.ts +12 -3
- package/collections/lib/components/collections-actions/collections-actions.component.d.ts +10 -0
- package/collections/lib/components/collections-grid/collections-grid.component.d.ts +18 -0
- package/collections/lib/components/collections-pager/collections-pager.component.d.ts +15 -14
- package/collections/lib/components/collections-table/collections-table.component.d.ts +24 -0
- package/collections/lib/components/collections-table-label/collections-table-label.component.d.ts +11 -0
- package/collections/lib/components/collections-table-sorting/collections-table-sorting.component.d.ts +18 -0
- package/collections/lib/components/collections-viewer/collections-viewer.component.d.ts +9 -5
- package/collections/lib/directives/collections-data-row.directive.d.ts +14 -0
- package/collections/lib/directives/collections-data.directive.d.ts +14 -0
- package/collections/lib/directives/collections-empty.directive.d.ts +14 -0
- package/collections/lib/directives/collections-error.directive.d.ts +14 -0
- package/collections/lib/directives/collections-initial.directive.d.ts +11 -0
- package/collections/lib/directives/collections-item.directive.d.ts +14 -0
- package/collections/public_api.d.ts +11 -1
- package/dashboard/lib/dashboard/dashboard.component.d.ts +5 -8
- package/dashboard/lib/dashboard-header/dashboard-header.component.d.ts +3 -5
- package/dashboard/lib/dashboard-menu/dashboard-menu.component.d.ts +1 -1
- package/dashboard/lib/dashboard-menu-item/dashboard-menu-item.component.d.ts +4 -7
- package/dashboard/lib/dashboard-sidebar/dashboard-sidebar.component.d.ts +3 -5
- package/dashboard/lib/dashboard-sidebar-group/dashboard-sidebar-group.component.d.ts +6 -11
- package/dashboard/lib/dashboard-sidebar-item/dashboard-sidebar-item.component.d.ts +2 -2
- package/dashboard/lib/dashboard.module.d.ts +1 -4
- package/dialog/lib/dialog-actions/dialog-actions.component.d.ts +1 -1
- package/dialog/lib/dialog-confirm/dialog-confirm.component.d.ts +2 -2
- package/dialog/lib/dialog-container/dialog-container.component.d.ts +2 -2
- package/dialog/lib/dialog-header/dialog-header.component.d.ts +1 -1
- package/dialog/lib/dialog-link/dialog-link.component.d.ts +1 -1
- package/dialog/lib/dialog-modal/dialog-modal.component.d.ts +1 -1
- package/dialog/lib/dialog-overlay/dialog-overlay.component.d.ts +2 -2
- package/dialog/lib/dialog.config.d.ts +3 -0
- package/dialog/lib/dialog.insertion.d.ts +1 -1
- package/dialog/lib/dialog.interfaces.d.ts +2 -0
- package/dialog/lib/dialog.module.d.ts +2 -4
- package/dialog/lib/directives/confirm.directive.d.ts +13 -0
- package/dialog/public_api.d.ts +2 -0
- package/elements/lib/avatar/avatar.component.d.ts +2 -1
- package/elements/lib/button/button.component.d.ts +12 -14
- package/elements/lib/checkbox/checkbox.component.d.ts +29 -22
- package/elements/lib/checkbox-group/checkbox-group.component.d.ts +13 -0
- package/elements/lib/date-picker/date-picker.component.d.ts +17 -10
- package/elements/lib/directives/addon.directive.d.ts +2 -2
- package/elements/lib/directives/extra-error-controls.directive.d.ts +13 -0
- package/elements/lib/directives/form-submit.directive.d.ts +1 -1
- package/elements/lib/directives/form-submitter.directive.d.ts +1 -1
- package/elements/lib/directives/image-upload.directive.d.ts +28 -0
- package/elements/lib/directives/input.directive.d.ts +9 -31
- package/elements/lib/elements.config.d.ts +84 -0
- package/elements/lib/elements.module.d.ts +21 -102
- package/elements/lib/file-picker/file-picker.component.d.ts +14 -10
- package/elements/lib/form-control/form-control.component.d.ts +8 -9
- package/elements/lib/form-error/form-error.component.d.ts +12 -9
- package/elements/lib/form-group/form-group.component.d.ts +4 -7
- package/elements/lib/icon/icon.component.d.ts +4 -4
- package/elements/lib/image-picker/image-picker.component.d.ts +9 -9
- package/elements/lib/multi-file-control/multi-file-control.component.d.ts +58 -0
- package/elements/lib/pipes/date.pipe.d.ts +9 -0
- package/elements/lib/pipes/file-image.pipe.d.ts +1 -1
- package/elements/lib/pipes/file-size.pipe.d.ts +1 -1
- package/elements/lib/pipes/relative-time.pipe.d.ts +1 -1
- package/elements/lib/radio-button/radio-button.component.d.ts +18 -0
- package/elements/lib/radio-group/radio-group.component.d.ts +38 -0
- package/elements/lib/spinner/spinner.component.d.ts +4 -7
- package/elements/public_api.d.ts +9 -3
- package/esm2022/auth/lib/auth.config.mjs +16 -0
- package/esm2022/auth/lib/auth.interceptor.mjs +10 -7
- package/esm2022/auth/lib/auth.module.mjs +9 -19
- package/esm2022/auth/lib/auth.service.mjs +22 -13
- package/esm2022/auth/lib/directives/authenticated.directive.mjs +45 -11
- package/esm2022/auth/lib/guards/anonymous.guard.mjs +27 -51
- package/esm2022/auth/lib/guards/authenticated.guard.mjs +30 -54
- package/esm2022/auth/lib/helpers/jwt.helper.mjs +2 -2
- package/esm2022/auth/lib/interfaces/config.interface.mjs +2 -3
- package/esm2022/auth/public_api.mjs +2 -1
- package/esm2022/collections/lib/collections.module.mjs +53 -23
- package/esm2022/collections/lib/components/collections-actions/collections-actions.component.mjs +39 -0
- package/esm2022/collections/lib/components/collections-grid/collections-grid.component.mjs +52 -0
- package/esm2022/collections/lib/components/collections-pager/collections-pager.component.mjs +51 -60
- package/esm2022/collections/lib/components/collections-table/collections-table.component.mjs +86 -0
- package/esm2022/collections/lib/components/collections-table-label/collections-table-label.component.mjs +33 -0
- package/esm2022/collections/lib/components/collections-table-sorting/collections-table-sorting.component.mjs +62 -0
- package/esm2022/collections/lib/components/collections-viewer/collections-viewer.component.mjs +10 -7
- package/esm2022/collections/lib/directives/collections-data-row.directive.mjs +26 -0
- package/esm2022/collections/lib/directives/collections-data.directive.mjs +26 -0
- package/esm2022/collections/lib/directives/collections-empty.directive.mjs +26 -0
- package/esm2022/collections/lib/directives/collections-error.directive.mjs +26 -0
- package/esm2022/collections/lib/directives/collections-initial.directive.mjs +22 -0
- package/esm2022/collections/lib/directives/collections-item.directive.mjs +26 -0
- package/esm2022/collections/public_api.mjs +12 -2
- package/esm2022/combobox/combobox/combobox-container.directive.mjs +3 -3
- package/esm2022/combobox/combobox/combobox.component.mjs +6 -6
- package/esm2022/combobox/combobox-label.directive.mjs +3 -3
- package/esm2022/combobox/combobox-option.directive.mjs +3 -3
- package/esm2022/combobox/combobox-panel/combobox-panel.component.mjs +5 -5
- package/esm2022/dashboard/lib/dashboard/dashboard.component.mjs +17 -24
- package/esm2022/dashboard/lib/dashboard-header/dashboard-header.component.mjs +12 -15
- package/esm2022/dashboard/lib/dashboard-menu/dashboard-menu.component.mjs +7 -8
- package/esm2022/dashboard/lib/dashboard-menu-item/dashboard-menu-item.component.mjs +20 -15
- package/esm2022/dashboard/lib/dashboard-sidebar/dashboard-sidebar.component.mjs +15 -14
- package/esm2022/dashboard/lib/dashboard-sidebar-group/dashboard-sidebar-group.component.mjs +20 -27
- package/esm2022/dashboard/lib/dashboard-sidebar-item/dashboard-sidebar-item.component.mjs +6 -10
- package/esm2022/dashboard/lib/dashboard.module.mjs +30 -27
- package/esm2022/dialog/lib/dialog-actions/dialog-actions.component.mjs +6 -6
- package/esm2022/dialog/lib/dialog-confirm/dialog-confirm.component.mjs +12 -15
- package/esm2022/dialog/lib/dialog-container/dialog-container.component.mjs +10 -7
- package/esm2022/dialog/lib/dialog-header/dialog-header.component.mjs +5 -6
- package/esm2022/dialog/lib/dialog-link/dialog-link.component.mjs +5 -5
- package/esm2022/dialog/lib/dialog-modal/dialog-modal.component.mjs +7 -7
- package/esm2022/dialog/lib/dialog-overlay/dialog-overlay.component.mjs +11 -7
- package/esm2022/dialog/lib/dialog.config.mjs +8 -0
- package/esm2022/dialog/lib/dialog.insertion.mjs +6 -5
- package/esm2022/dialog/lib/dialog.interfaces.mjs +3 -1
- package/esm2022/dialog/lib/dialog.module.mjs +17 -25
- package/esm2022/dialog/lib/dialog.service.mjs +8 -5
- package/esm2022/dialog/lib/directives/confirm.directive.mjs +50 -0
- package/esm2022/dialog/public_api.mjs +3 -1
- package/esm2022/elements/lib/avatar/avatar.component.mjs +15 -14
- package/esm2022/elements/lib/button/button.component.mjs +37 -32
- package/esm2022/elements/lib/checkbox/checkbox.component.mjs +86 -47
- package/esm2022/elements/lib/checkbox-group/checkbox-group.component.mjs +36 -0
- package/esm2022/elements/lib/date-picker/date-picker.component.mjs +64 -51
- package/esm2022/elements/lib/directives/addon.directive.mjs +11 -13
- package/esm2022/elements/lib/directives/extra-error-controls.directive.mjs +43 -0
- package/esm2022/elements/lib/directives/form-submit.directive.mjs +6 -5
- package/esm2022/elements/lib/directives/form-submitter.directive.mjs +6 -5
- package/esm2022/elements/lib/directives/image-upload.directive.mjs +140 -0
- package/esm2022/elements/lib/directives/input.directive.mjs +21 -110
- package/esm2022/elements/lib/elements.config.mjs +42 -0
- package/esm2022/elements/lib/elements.module.mjs +42 -77
- package/esm2022/elements/lib/file-picker/file-picker.component.mjs +36 -24
- package/esm2022/elements/lib/form-control/form-control.component.mjs +21 -24
- package/esm2022/elements/lib/form-error/form-error.component.mjs +35 -60
- package/esm2022/elements/lib/form-group/form-group.component.mjs +15 -12
- package/esm2022/elements/lib/icon/icon.component.mjs +19 -24
- package/esm2022/elements/lib/image-picker/image-picker.component.mjs +33 -19
- package/esm2022/elements/lib/multi-file-control/multi-file-control.component.mjs +165 -0
- package/esm2022/elements/lib/pipes/date.pipe.mjs +30 -0
- package/esm2022/elements/lib/pipes/file-image.pipe.mjs +6 -5
- package/esm2022/elements/lib/pipes/file-size.pipe.mjs +6 -5
- package/esm2022/elements/lib/pipes/relative-time.pipe.mjs +6 -5
- package/esm2022/elements/lib/radio-button/radio-button.component.mjs +59 -0
- package/esm2022/elements/lib/radio-group/radio-group.component.mjs +102 -0
- package/esm2022/elements/lib/spinner/spinner.component.mjs +12 -13
- package/esm2022/elements/public_api.mjs +10 -4
- package/esm2022/http/lib/http.config.mjs +18 -0
- package/esm2022/http/lib/http.interfaces.mjs +4 -2
- package/esm2022/http/lib/http.module.mjs +9 -22
- package/esm2022/http/lib/interceptors/base-url.interceptor.mjs +9 -5
- package/esm2022/http/lib/interceptors/error.interceptor.mjs +10 -6
- package/esm2022/http/public_api.mjs +2 -1
- package/esm2022/lib/core/functions/array.utils.mjs +7 -0
- package/esm2022/lib/core/miscellaneous/coercion.mjs +5 -0
- package/esm2022/lib/core/miscellaneous/regex.mjs +41 -2
- package/esm2022/lib/core/services/exif.service.mjs +3 -3
- package/esm2022/lib/core/services/file-loader.service.mjs +3 -3
- package/esm2022/lib/core/services/files.service.mjs +86 -0
- package/esm2022/lib/core/services/image-converter.service.mjs +3 -3
- package/esm2022/lib/core/services/languages.service.mjs +3 -3
- package/esm2022/lib/core/services/network.service.mjs +5 -5
- package/esm2022/lib/core/services/patch.service.mjs +3 -3
- package/esm2022/localize/lib/interfaces/config.interfaces.mjs +2 -7
- package/esm2022/localize/lib/interfaces/functions.interfaces.mjs +6 -6
- package/esm2022/localize/lib/localizations/dutch.localization.mjs +19 -1
- package/esm2022/localize/lib/localizations/english.localization.mjs +19 -1
- package/esm2022/localize/lib/localize.config.mjs +43 -0
- package/esm2022/localize/lib/localize.module.mjs +10 -54
- package/esm2022/localize/lib/localize.pipe.mjs +6 -5
- package/esm2022/localize/lib/localize.service.mjs +26 -13
- package/esm2022/localize/lib/localize.tokens.mjs +18 -0
- package/esm2022/localize/lib/transforms/interpolate.transform.mjs +3 -2
- package/esm2022/localize/lib/transforms/plural.transform.mjs +5 -3
- package/esm2022/localize/lib/transforms/reference.transform.mjs +5 -3
- package/esm2022/localize/lib/views/localize-string/localize-string.component.mjs +6 -10
- package/esm2022/localize/lib/views/localize-template.directive.mjs +6 -5
- package/esm2022/localize/public_api.mjs +3 -3
- package/esm2022/masking/lib/directives/currency-mask.directive.mjs +6 -5
- package/esm2022/masking/lib/directives/date-mask.directive.mjs +6 -5
- package/esm2022/masking/lib/directives/input-mask.directive.mjs +6 -5
- package/esm2022/masking/lib/masking.module.mjs +6 -6
- package/esm2022/masking/lib/masking.service.mjs +3 -3
- package/esm2022/notifications/lib/notifications-item/notifications-item.component.mjs +7 -9
- package/esm2022/notifications/lib/notifications-list/notifications-list.component.mjs +8 -8
- package/esm2022/notifications/lib/notifications.config.mjs +8 -0
- package/esm2022/notifications/lib/notifications.interfaces.mjs +3 -1
- package/esm2022/notifications/lib/notifications.module.mjs +8 -18
- package/esm2022/notifications/lib/notifications.service.mjs +14 -8
- package/esm2022/notifications/public_api.mjs +2 -1
- package/esm2022/permissions/lib/directives/permission.directive.mjs +6 -5
- package/esm2022/permissions/lib/guards/permission.guard.mjs +23 -54
- package/esm2022/permissions/lib/permissions.config.mjs +20 -0
- package/esm2022/permissions/lib/permissions.interface.mjs +3 -1
- package/esm2022/permissions/lib/permissions.module.mjs +9 -23
- package/esm2022/permissions/lib/permissions.service.mjs +8 -5
- package/esm2022/permissions/public_api.mjs +2 -1
- package/esm2022/public_api.mjs +4 -11
- package/esm2022/recaptcha/lib/recaptcha/recaptcha.component.mjs +12 -13
- package/esm2022/recaptcha/lib/recaptcha-loader.service.mjs +21 -36
- package/esm2022/recaptcha/lib/recaptcha.config.mjs +8 -0
- package/esm2022/recaptcha/lib/recaptcha.module.mjs +8 -8
- package/esm2022/recaptcha/public_api.mjs +2 -1
- package/esm2022/rxjs/lib/observables/get-route-param.observable.mjs +5 -0
- package/esm2022/rxjs/public_api.mjs +2 -1
- package/esm2022/select/bravobit-bb-foundation-select.mjs +5 -0
- package/esm2022/select/lib/select/select.component.mjs +210 -0
- package/esm2022/select/lib/select-label.directive.mjs +17 -0
- package/esm2022/select/lib/select-option-group.directive.mjs +17 -0
- package/esm2022/select/lib/select-option.directive.mjs +17 -0
- package/esm2022/select/lib/select.module.mjs +35 -0
- package/esm2022/select/public_api.mjs +6 -0
- package/esm2022/storage/lib/storage.service.mjs +3 -3
- package/esm2022/storage/lib/strategies/polyfill-storage.strategy.mjs +2 -5
- package/esm2022/table/lib/components/table/table.component.mjs +21 -22
- package/esm2022/table/lib/components/table-cell/table-cell.component.mjs +5 -5
- package/esm2022/table/lib/components/table-header-cell/table-header-cell.component.mjs +14 -14
- package/esm2022/table/lib/components/table-pager/table-pager.component.mjs +15 -17
- package/esm2022/table/lib/table.module.mjs +23 -21
- package/esm2022/tooltip/lib/tooltip-container/tooltip-container.component.mjs +11 -17
- package/esm2022/tooltip/lib/tooltip.directive.mjs +17 -27
- package/esm2022/tooltip/lib/tooltip.module.mjs +7 -22
- package/esm2022/tooltip/public_api.mjs +2 -2
- package/esm2022/utils/lib/directives/autosize.directive.mjs +9 -7
- package/esm2022/utils/lib/directives/focus-trap.directive.mjs +6 -5
- package/esm2022/utils/lib/directives/focus.directive.mjs +6 -5
- package/esm2022/utils/lib/directives/template.directive.mjs +6 -5
- package/esm2022/utils/lib/utils.module.mjs +6 -6
- package/fesm2022/bravobit-bb-foundation-auth.mjs +140 -175
- package/fesm2022/bravobit-bb-foundation-auth.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-collections.mjs +451 -106
- package/fesm2022/bravobit-bb-foundation-collections.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-combobox.mjs +18 -18
- package/fesm2022/bravobit-bb-foundation-combobox.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-dashboard.mjs +106 -116
- package/fesm2022/bravobit-bb-foundation-dashboard.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-dialog.mjs +125 -70
- package/fesm2022/bravobit-bb-foundation-dialog.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-elements.mjs +1780 -1368
- package/fesm2022/bravobit-bb-foundation-elements.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-http.mjs +38 -27
- package/fesm2022/bravobit-bb-foundation-http.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-localize.mjs +310 -264
- package/fesm2022/bravobit-bb-foundation-localize.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-masking.mjs +23 -20
- package/fesm2022/bravobit-bb-foundation-masking.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-notifications.mjs +67 -62
- package/fesm2022/bravobit-bb-foundation-notifications.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-permissions.mjs +54 -72
- package/fesm2022/bravobit-bb-foundation-permissions.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-recaptcha.mjs +44 -54
- package/fesm2022/bravobit-bb-foundation-recaptcha.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-rxjs.mjs +5 -1
- package/fesm2022/bravobit-bb-foundation-rxjs.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-select.mjs +288 -0
- package/fesm2022/bravobit-bb-foundation-select.mjs.map +1 -0
- package/fesm2022/bravobit-bb-foundation-storage.mjs +4 -7
- package/fesm2022/bravobit-bb-foundation-storage.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-table.mjs +67 -66
- package/fesm2022/bravobit-bb-foundation-table.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-tooltip.mjs +31 -61
- package/fesm2022/bravobit-bb-foundation-tooltip.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-utils.mjs +28 -23
- package/fesm2022/bravobit-bb-foundation-utils.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation.mjs +166 -222
- package/fesm2022/bravobit-bb-foundation.mjs.map +1 -1
- package/http/lib/http.config.d.ts +5 -0
- package/http/lib/http.interfaces.d.ts +3 -0
- package/http/lib/http.module.d.ts +2 -6
- package/http/public_api.d.ts +1 -0
- package/lib/core/functions/array.utils.d.ts +1 -0
- package/lib/core/miscellaneous/coercion.d.ts +2 -0
- package/lib/core/miscellaneous/regex.d.ts +1 -0
- package/lib/core/services/files.service.d.ts +19 -0
- package/localize/lib/interfaces/config.interfaces.d.ts +1 -1
- package/localize/lib/interfaces/functions.interfaces.d.ts +0 -2
- package/localize/lib/localizations/dutch.localization.d.ts +18 -0
- package/localize/lib/localizations/english.localization.d.ts +18 -0
- package/localize/lib/localize.config.d.ts +6 -0
- package/localize/lib/localize.module.d.ts +2 -7
- package/localize/lib/localize.pipe.d.ts +1 -1
- package/localize/lib/localize.service.d.ts +4 -4
- package/localize/lib/localize.tokens.d.ts +11 -0
- package/localize/lib/views/localize-string/localize-string.component.d.ts +1 -1
- package/localize/lib/views/localize-template.directive.d.ts +1 -1
- package/localize/public_api.d.ts +2 -2
- package/masking/lib/directives/currency-mask.directive.d.ts +1 -1
- package/masking/lib/directives/date-mask.directive.d.ts +1 -1
- package/masking/lib/directives/input-mask.directive.d.ts +1 -1
- package/masking/lib/masking.module.d.ts +1 -1
- package/notifications/lib/notifications-item/notifications-item.component.d.ts +1 -1
- package/notifications/lib/notifications-list/notifications-list.component.d.ts +1 -1
- package/notifications/lib/notifications.config.d.ts +3 -0
- package/notifications/lib/notifications.interfaces.d.ts +2 -1
- package/notifications/lib/notifications.module.d.ts +1 -5
- package/notifications/public_api.d.ts +1 -0
- package/package.json +31 -36
- package/permissions/lib/directives/permission.directive.d.ts +1 -1
- package/permissions/lib/guards/permission.guard.d.ts +3 -15
- package/permissions/lib/permissions.config.d.ts +3 -0
- package/permissions/lib/permissions.interface.d.ts +2 -1
- package/permissions/lib/permissions.module.d.ts +1 -1
- package/permissions/public_api.d.ts +1 -0
- package/public_api.d.ts +3 -10
- package/recaptcha/lib/recaptcha/recaptcha.component.d.ts +4 -7
- package/recaptcha/lib/recaptcha-loader.service.d.ts +9 -13
- package/recaptcha/lib/recaptcha.config.d.ts +3 -0
- package/recaptcha/lib/recaptcha.module.d.ts +2 -2
- package/recaptcha/public_api.d.ts +1 -0
- package/rxjs/lib/observables/get-route-param.observable.d.ts +3 -0
- package/rxjs/public_api.d.ts +1 -0
- package/{theming → select}/index.d.ts +1 -1
- package/select/lib/select/select.component.d.ts +75 -0
- package/select/lib/select-label.directive.d.ts +8 -0
- package/select/lib/select-option-group.directive.d.ts +8 -0
- package/select/lib/select-option.directive.d.ts +8 -0
- package/select/lib/select.module.d.ts +10 -0
- package/select/public_api.d.ts +5 -0
- package/styles/colors.scss +20 -0
- package/styles/grid.scss +98 -0
- package/styles/reset.scss +65 -0
- package/styles/theme.scss +88 -0
- package/table/lib/components/table/table.component.d.ts +4 -6
- package/table/lib/components/table-cell/table-cell.component.d.ts +1 -1
- package/table/lib/components/table-header-cell/table-header-cell.component.d.ts +4 -7
- package/table/lib/components/table-pager/table-pager.component.d.ts +4 -8
- package/table/lib/table.module.d.ts +1 -5
- package/tooltip/lib/tooltip-container/tooltip-container.component.d.ts +3 -4
- package/tooltip/lib/tooltip.directive.d.ts +8 -17
- package/tooltip/lib/tooltip.module.d.ts +2 -5
- package/tooltip/public_api.d.ts +1 -1
- package/utils/lib/directives/autosize.directive.d.ts +2 -1
- package/utils/lib/directives/focus-trap.directive.d.ts +1 -1
- package/utils/lib/directives/focus.directive.d.ts +1 -1
- package/utils/lib/directives/template.directive.d.ts +1 -1
- package/utils/lib/utils.module.d.ts +1 -1
- package/auth/lib/directives/abstract.directive.d.ts +0 -12
- package/collections/lib/components/collections.directive.d.ts +0 -17
- package/controls/index.d.ts +0 -5
- package/controls/lib/checkbox/checkbox/checkbox.component.d.ts +0 -51
- package/controls/lib/checkbox/checkbox-group/checkbox-group.component.d.ts +0 -23
- package/controls/lib/checkbox/checkbox.module.d.ts +0 -10
- package/controls/lib/control-error/control-error/control-error.animation.d.ts +0 -1
- package/controls/lib/control-error/control-error/control-error.component.d.ts +0 -17
- package/controls/lib/control-error/control-error-submit.directive.d.ts +0 -15
- package/controls/lib/control-error/control-error.defaults.d.ts +0 -2
- package/controls/lib/control-error/control-error.interface.d.ts +0 -12
- package/controls/lib/control-error/control-error.module.d.ts +0 -9
- package/controls/lib/control-error/control-error.utils.d.ts +0 -3
- package/controls/lib/controls.interfaces.d.ts +0 -4
- package/controls/lib/controls.module.d.ts +0 -14
- package/controls/lib/form-control/form-control/form-control.component.d.ts +0 -29
- package/controls/lib/form-control/form-control-addon/form-control-addon.component.d.ts +0 -6
- package/controls/lib/form-control/form-control-input.directive.d.ts +0 -35
- package/controls/lib/form-control/form-control.module.d.ts +0 -12
- package/controls/lib/radio/radio-button/radio-button.component.d.ts +0 -24
- package/controls/lib/radio/radio-group/radio-group.component.d.ts +0 -53
- package/controls/lib/radio/radio.module.d.ts +0 -11
- package/controls/lib/toggle/toggle/toggle.component.d.ts +0 -45
- package/controls/lib/toggle/toggle-group/toggle-group.component.d.ts +0 -23
- package/controls/lib/toggle/toggle.module.d.ts +0 -10
- package/controls/public_api.d.ts +0 -20
- package/elements/lib/dropdown/dropdown.component.d.ts +0 -21
- package/elements/lib/tag/tag.component.d.ts +0 -7
- package/esm2022/auth/lib/directives/abstract.directive.mjs +0 -40
- package/esm2022/collections/lib/components/collections.directive.mjs +0 -43
- package/esm2022/controls/bravobit-bb-foundation-controls.mjs +0 -5
- package/esm2022/controls/lib/checkbox/checkbox/checkbox.component.mjs +0 -178
- package/esm2022/controls/lib/checkbox/checkbox-group/checkbox-group.component.mjs +0 -68
- package/esm2022/controls/lib/checkbox/checkbox.module.mjs +0 -20
- package/esm2022/controls/lib/control-error/control-error/control-error.animation.mjs +0 -14
- package/esm2022/controls/lib/control-error/control-error/control-error.component.mjs +0 -63
- package/esm2022/controls/lib/control-error/control-error-submit.directive.mjs +0 -47
- package/esm2022/controls/lib/control-error/control-error.defaults.mjs +0 -26
- package/esm2022/controls/lib/control-error/control-error.interface.mjs +0 -3
- package/esm2022/controls/lib/control-error/control-error.module.mjs +0 -19
- package/esm2022/controls/lib/control-error/control-error.utils.mjs +0 -20
- package/esm2022/controls/lib/controls.interfaces.mjs +0 -2
- package/esm2022/controls/lib/controls.module.mjs +0 -62
- package/esm2022/controls/lib/form-control/form-control/form-control.component.mjs +0 -79
- package/esm2022/controls/lib/form-control/form-control-addon/form-control-addon.component.mjs +0 -22
- package/esm2022/controls/lib/form-control/form-control-input.directive.mjs +0 -124
- package/esm2022/controls/lib/form-control/form-control.module.mjs +0 -34
- package/esm2022/controls/lib/radio/radio-button/radio-button.component.mjs +0 -75
- package/esm2022/controls/lib/radio/radio-group/radio-group.component.mjs +0 -168
- package/esm2022/controls/lib/radio/radio.module.mjs +0 -21
- package/esm2022/controls/lib/toggle/toggle/toggle.component.mjs +0 -153
- package/esm2022/controls/lib/toggle/toggle-group/toggle-group.component.mjs +0 -62
- package/esm2022/controls/lib/toggle/toggle.module.mjs +0 -20
- package/esm2022/controls/public_api.mjs +0 -21
- package/esm2022/elements/lib/dropdown/dropdown.component.mjs +0 -100
- package/esm2022/elements/lib/tag/tag.component.mjs +0 -18
- package/esm2022/lib/core/mixins/can-disable.mjs +0 -16
- package/esm2022/lib/core/mixins/can-hide-errors.mjs +0 -16
- package/esm2022/lib/core/mixins/can-load.mjs +0 -16
- package/esm2022/lib/core/mixins/constructor.mjs +0 -2
- package/esm2022/lib/core/mixins/has-error.mjs +0 -16
- package/esm2022/lib/core/mixins/is-focused.mjs +0 -16
- package/esm2022/lib/core/mixins/is-grouped.mjs +0 -16
- package/esm2022/lib/core/mixins/is-readonly.mjs +0 -16
- package/esm2022/lib/core/mixins/is-required.mjs +0 -16
- package/esm2022/lib/core/services/clipboard.service.mjs +0 -70
- package/esm2022/localize/lib/interfaces/transforms.interfaces.mjs +0 -3
- package/esm2022/localize/lib/locale.token.mjs +0 -14
- package/esm2022/theming/bravobit-bb-foundation-theming.mjs +0 -5
- package/esm2022/theming/lib/themes/checkbox-group.theme.mjs +0 -17
- package/esm2022/theming/lib/themes/checkbox.theme.mjs +0 -35
- package/esm2022/theming/lib/themes/control-error.theme.mjs +0 -11
- package/esm2022/theming/lib/themes/form-control-addon.theme.mjs +0 -6
- package/esm2022/theming/lib/themes/form-control.theme.mjs +0 -45
- package/esm2022/theming/lib/themes/radio-button.theme.mjs +0 -29
- package/esm2022/theming/lib/themes/radio-group.theme.mjs +0 -20
- package/esm2022/theming/lib/themes/toggle-group.theme.mjs +0 -17
- package/esm2022/theming/lib/themes/toggle.theme.mjs +0 -28
- package/esm2022/theming/lib/theming.data.mjs +0 -90
- package/esm2022/theming/lib/theming.directive.mjs +0 -38
- package/esm2022/theming/lib/theming.interface.mjs +0 -2
- package/esm2022/theming/lib/theming.module.mjs +0 -16
- package/esm2022/theming/lib/utils/theming.variable.mjs +0 -41
- package/esm2022/theming/public_api.mjs +0 -10
- package/fesm2022/bravobit-bb-foundation-controls.mjs +0 -1191
- package/fesm2022/bravobit-bb-foundation-controls.mjs.map +0 -1
- package/fesm2022/bravobit-bb-foundation-theming.mjs +0 -381
- package/fesm2022/bravobit-bb-foundation-theming.mjs.map +0 -1
- package/lib/core/mixins/can-disable.d.ts +0 -6
- package/lib/core/mixins/can-hide-errors.d.ts +0 -6
- package/lib/core/mixins/can-load.d.ts +0 -6
- package/lib/core/mixins/constructor.d.ts +0 -1
- package/lib/core/mixins/has-error.d.ts +0 -6
- package/lib/core/mixins/is-focused.d.ts +0 -6
- package/lib/core/mixins/is-grouped.d.ts +0 -6
- package/lib/core/mixins/is-readonly.d.ts +0 -6
- package/lib/core/mixins/is-required.d.ts +0 -6
- package/lib/core/services/clipboard.service.d.ts +0 -18
- package/localize/lib/interfaces/transforms.interfaces.d.ts +0 -3
- package/localize/lib/locale.token.d.ts +0 -3
- package/theming/lib/themes/checkbox-group.theme.d.ts +0 -16
- package/theming/lib/themes/checkbox.theme.d.ts +0 -32
- package/theming/lib/themes/control-error.theme.d.ts +0 -9
- package/theming/lib/themes/form-control-addon.theme.d.ts +0 -5
- package/theming/lib/themes/form-control.theme.d.ts +0 -32
- package/theming/lib/themes/radio-button.theme.d.ts +0 -26
- package/theming/lib/themes/radio-group.theme.d.ts +0 -17
- package/theming/lib/themes/toggle-group.theme.d.ts +0 -16
- package/theming/lib/themes/toggle.theme.d.ts +0 -25
- package/theming/lib/theming.data.d.ts +0 -17
- package/theming/lib/theming.directive.d.ts +0 -13
- package/theming/lib/theming.interface.d.ts +0 -34
- package/theming/lib/theming.module.d.ts +0 -7
- package/theming/lib/utils/theming.variable.d.ts +0 -16
- package/theming/public_api.d.ts +0 -9
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, InjectionToken, Optional, Inject
|
|
2
|
+
import { Injectable, InjectionToken, inject, Optional, Inject } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/cdk/platform';
|
|
4
|
-
import { map, distinctUntilChanged, shareReplay, debounceTime, startWith } from 'rxjs/operators';
|
|
5
|
-
import { of, fromEvent, Observable, merge, Subscription } from 'rxjs';
|
|
6
4
|
import { DOCUMENT, formatDate } from '@angular/common';
|
|
7
|
-
import {
|
|
5
|
+
import { map, distinctUntilChanged, shareReplay, debounceTime, startWith } from 'rxjs/operators';
|
|
6
|
+
import { of, fromEvent, Observable, merge, Subscription, isObservable } from 'rxjs';
|
|
8
7
|
|
|
9
8
|
class FileLoader {
|
|
10
9
|
constructor() {
|
|
@@ -81,10 +80,10 @@ class FileLoader {
|
|
|
81
80
|
const blobFile = new Blob([blob], { type: blob?.type });
|
|
82
81
|
return this.blobToFile(blobFile, name);
|
|
83
82
|
}
|
|
84
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
85
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
83
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: FileLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
84
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: FileLoader, providedIn: 'root' }); }
|
|
86
85
|
}
|
|
87
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: FileLoader, decorators: [{
|
|
88
87
|
type: Injectable,
|
|
89
88
|
args: [{
|
|
90
89
|
providedIn: 'root'
|
|
@@ -240,10 +239,10 @@ class Exif {
|
|
|
240
239
|
image.onload = () => resolve(image);
|
|
241
240
|
});
|
|
242
241
|
}
|
|
243
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
244
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
242
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: Exif, deps: [{ token: i1.Platform }, { token: FileLoader }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
243
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: Exif, providedIn: 'root' }); }
|
|
245
244
|
}
|
|
246
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
245
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: Exif, decorators: [{
|
|
247
246
|
type: Injectable,
|
|
248
247
|
args: [{
|
|
249
248
|
providedIn: 'root'
|
|
@@ -358,16 +357,108 @@ class ImageConverter {
|
|
|
358
357
|
// If the contents is a string convert it to an HTML image element.
|
|
359
358
|
return this.stringToImage(contents);
|
|
360
359
|
}
|
|
361
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
362
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
360
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: ImageConverter, deps: [{ token: Exif }, { token: i1.Platform }, { token: FileLoader }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
361
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: ImageConverter, providedIn: 'root' }); }
|
|
363
362
|
}
|
|
364
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
363
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: ImageConverter, decorators: [{
|
|
365
364
|
type: Injectable,
|
|
366
365
|
args: [{
|
|
367
366
|
providedIn: 'root'
|
|
368
367
|
}]
|
|
369
368
|
}], ctorParameters: () => [{ type: Exif }, { type: i1.Platform }, { type: FileLoader }] });
|
|
370
369
|
|
|
370
|
+
const WINDOW = new InjectionToken('An abstraction over global window object', {
|
|
371
|
+
factory: () => {
|
|
372
|
+
const { defaultView } = inject(DOCUMENT);
|
|
373
|
+
if (!defaultView) {
|
|
374
|
+
throw new Error('Window is not available');
|
|
375
|
+
}
|
|
376
|
+
return defaultView;
|
|
377
|
+
}
|
|
378
|
+
});
|
|
379
|
+
|
|
380
|
+
class Files {
|
|
381
|
+
constructor(_platform, _rendererFactory, _window) {
|
|
382
|
+
this._platform = _platform;
|
|
383
|
+
this._rendererFactory = _rendererFactory;
|
|
384
|
+
this._window = _window;
|
|
385
|
+
this._renderer = this._rendererFactory.createRenderer(null, null);
|
|
386
|
+
}
|
|
387
|
+
download(blobOrFile, name) {
|
|
388
|
+
if (!this._platform.isBrowser) {
|
|
389
|
+
return;
|
|
390
|
+
}
|
|
391
|
+
const anchor = this.createAnchorElement(blobOrFile, name);
|
|
392
|
+
this.revokeUrlAndPressAnchor(anchor);
|
|
393
|
+
}
|
|
394
|
+
fromDataUri(dataUri, name) {
|
|
395
|
+
if (!dataUri) {
|
|
396
|
+
return null;
|
|
397
|
+
}
|
|
398
|
+
try {
|
|
399
|
+
const byteString = this._window.atob(dataUri.split(',')[1]);
|
|
400
|
+
// Separate out the mime component.
|
|
401
|
+
const mimeString = dataUri
|
|
402
|
+
.split(',')[0]
|
|
403
|
+
.split(':')[1]
|
|
404
|
+
.split(';')[0];
|
|
405
|
+
// Write the bytes of the string to an ArrayBuffer.
|
|
406
|
+
const arrayBuffer = new ArrayBuffer(byteString.length);
|
|
407
|
+
const uint8Array = new Uint8Array(arrayBuffer);
|
|
408
|
+
for (let index = 0; index < byteString.length; index++) {
|
|
409
|
+
uint8Array[index] = byteString.charCodeAt(index);
|
|
410
|
+
}
|
|
411
|
+
const dataView = new DataView(arrayBuffer);
|
|
412
|
+
const blob = new Blob([dataView.buffer], { type: mimeString });
|
|
413
|
+
return this.create(blob, name);
|
|
414
|
+
}
|
|
415
|
+
catch {
|
|
416
|
+
return null;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
create(blob, name) {
|
|
420
|
+
if (!navigator['msSaveBlob']) {
|
|
421
|
+
return new File([blob], name, { lastModified: Date.now(), type: blob?.type });
|
|
422
|
+
}
|
|
423
|
+
const anyBlob = new Blob([blob], { type: blob?.type });
|
|
424
|
+
anyBlob.lastModifiedDate = new Date();
|
|
425
|
+
anyBlob.name = name;
|
|
426
|
+
return anyBlob;
|
|
427
|
+
}
|
|
428
|
+
createAnchorElement(blobOrFile, name) {
|
|
429
|
+
const anchor = this._renderer.createElement('a');
|
|
430
|
+
this._renderer.setProperty(anchor, 'download', name ?? blobOrFile?.['name']);
|
|
431
|
+
this._renderer.setProperty(anchor, 'rel', 'noopener');
|
|
432
|
+
this._renderer.setProperty(anchor, 'href', URL.createObjectURL(blobOrFile));
|
|
433
|
+
return anchor;
|
|
434
|
+
}
|
|
435
|
+
revokeUrlAndPressAnchor(anchor) {
|
|
436
|
+
setTimeout(() => URL.revokeObjectURL(anchor?.href), 40_000);
|
|
437
|
+
setTimeout(() => this.pressAnchor(anchor), 0);
|
|
438
|
+
}
|
|
439
|
+
pressAnchor(anchor) {
|
|
440
|
+
try {
|
|
441
|
+
anchor.dispatchEvent(new MouseEvent('click'));
|
|
442
|
+
}
|
|
443
|
+
catch {
|
|
444
|
+
anchor.click();
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: Files, deps: [{ token: i1.Platform }, { token: i0.RendererFactory2 }, { token: WINDOW, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
448
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: Files, providedIn: 'root' }); }
|
|
449
|
+
}
|
|
450
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: Files, decorators: [{
|
|
451
|
+
type: Injectable,
|
|
452
|
+
args: [{
|
|
453
|
+
providedIn: 'root'
|
|
454
|
+
}]
|
|
455
|
+
}], ctorParameters: () => [{ type: i1.Platform }, { type: i0.RendererFactory2 }, { type: Window, decorators: [{
|
|
456
|
+
type: Optional
|
|
457
|
+
}, {
|
|
458
|
+
type: Inject,
|
|
459
|
+
args: [WINDOW]
|
|
460
|
+
}] }] });
|
|
461
|
+
|
|
371
462
|
const ACCEPT_LANGUAGE = new InjectionToken('AcceptLanguage');
|
|
372
463
|
|
|
373
464
|
class Languages {
|
|
@@ -426,10 +517,10 @@ class Languages {
|
|
|
426
517
|
.filter(item => !!item)
|
|
427
518
|
.sort((a, b) => b.quality - a.quality);
|
|
428
519
|
}
|
|
429
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
430
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
520
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: Languages, deps: [{ token: ACCEPT_LANGUAGE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
521
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: Languages, providedIn: 'root' }); }
|
|
431
522
|
}
|
|
432
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
523
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: Languages, decorators: [{
|
|
433
524
|
type: Injectable,
|
|
434
525
|
args: [{
|
|
435
526
|
providedIn: 'root'
|
|
@@ -441,16 +532,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.1", ngImpor
|
|
|
441
532
|
args: [ACCEPT_LANGUAGE]
|
|
442
533
|
}] }] });
|
|
443
534
|
|
|
444
|
-
const WINDOW = new InjectionToken('An abstraction over global window object', {
|
|
445
|
-
factory: () => {
|
|
446
|
-
const { defaultView } = inject(DOCUMENT);
|
|
447
|
-
if (!defaultView) {
|
|
448
|
-
throw new Error('Window is not available');
|
|
449
|
-
}
|
|
450
|
-
return defaultView;
|
|
451
|
-
}
|
|
452
|
-
});
|
|
453
|
-
|
|
454
535
|
const NAVIGATOR = new InjectionToken('An abstraction over window.navigator object', {
|
|
455
536
|
factory: () => inject(WINDOW).navigator
|
|
456
537
|
});
|
|
@@ -481,12 +562,12 @@ class Network {
|
|
|
481
562
|
});
|
|
482
563
|
// Merge all event so we get notified when
|
|
483
564
|
// a user is online/offline.
|
|
484
|
-
this._online$ = merge(now$, online$, offline$).pipe(
|
|
565
|
+
this._online$ = merge(now$, online$, offline$).pipe(distinctUntilChanged(), shareReplay({ refCount: true, bufferSize: 1 }));
|
|
485
566
|
}
|
|
486
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
487
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
567
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: Network, deps: [{ token: i1.Platform }, { token: WINDOW, optional: true }, { token: NAVIGATOR, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
568
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: Network, providedIn: 'root' }); }
|
|
488
569
|
}
|
|
489
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
570
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: Network, decorators: [{
|
|
490
571
|
type: Injectable,
|
|
491
572
|
args: [{
|
|
492
573
|
providedIn: 'root'
|
|
@@ -539,10 +620,10 @@ class Patch {
|
|
|
539
620
|
// Save the subscription so we can destroy it later.
|
|
540
621
|
this._subscription.add(subscription);
|
|
541
622
|
}
|
|
542
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
543
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
623
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: Patch, deps: [{ token: i1.Platform }, { token: WINDOW, optional: true }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
624
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: Patch, providedIn: 'root' }); }
|
|
544
625
|
}
|
|
545
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
626
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: Patch, decorators: [{
|
|
546
627
|
type: Injectable,
|
|
547
628
|
args: [{
|
|
548
629
|
providedIn: 'root'
|
|
@@ -559,193 +640,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.1", ngImpor
|
|
|
559
640
|
args: [DOCUMENT]
|
|
560
641
|
}] }] });
|
|
561
642
|
|
|
562
|
-
class Clipboard {
|
|
563
|
-
constructor(_document) {
|
|
564
|
-
this._document = _document;
|
|
565
|
-
}
|
|
566
|
-
copy(text) {
|
|
567
|
-
const pendingCopy = this.beginCopy(text);
|
|
568
|
-
const successful = pendingCopy.copy();
|
|
569
|
-
pendingCopy.destroy();
|
|
570
|
-
return successful;
|
|
571
|
-
}
|
|
572
|
-
beginCopy(text) {
|
|
573
|
-
return new ClipboardCopy(text, this._document);
|
|
574
|
-
}
|
|
575
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: Clipboard, deps: [{ token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
576
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: Clipboard, providedIn: 'root' }); }
|
|
577
|
-
}
|
|
578
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: Clipboard, decorators: [{
|
|
579
|
-
type: Injectable,
|
|
580
|
-
args: [{
|
|
581
|
-
providedIn: 'root'
|
|
582
|
-
}]
|
|
583
|
-
}], ctorParameters: () => [{ type: Document, decorators: [{
|
|
584
|
-
type: Optional
|
|
585
|
-
}, {
|
|
586
|
-
type: Inject,
|
|
587
|
-
args: [DOCUMENT]
|
|
588
|
-
}] }] });
|
|
589
|
-
class ClipboardCopy {
|
|
590
|
-
constructor(_text, _document) {
|
|
591
|
-
this._text = _text;
|
|
592
|
-
this._document = _document;
|
|
593
|
-
this.initialize();
|
|
594
|
-
}
|
|
595
|
-
copy() {
|
|
596
|
-
const textarea = this._textarea;
|
|
597
|
-
let successful = false;
|
|
598
|
-
try {
|
|
599
|
-
const currentFocus = this._document.activeElement;
|
|
600
|
-
textarea?.select?.();
|
|
601
|
-
textarea?.setSelectionRange?.(0, textarea?.value?.length);
|
|
602
|
-
successful = this._document?.execCommand?.('copy');
|
|
603
|
-
currentFocus?.focus?.();
|
|
604
|
-
}
|
|
605
|
-
catch {
|
|
606
|
-
// Do nothing.
|
|
607
|
-
}
|
|
608
|
-
return successful;
|
|
609
|
-
}
|
|
610
|
-
destroy() {
|
|
611
|
-
this._textarea?.parentNode?.removeChild?.(this._textarea);
|
|
612
|
-
this._textarea = undefined;
|
|
613
|
-
}
|
|
614
|
-
initialize() {
|
|
615
|
-
const textarea = this._textarea = this._document.createElement('textarea');
|
|
616
|
-
const styles = textarea.style;
|
|
617
|
-
// Hide the element for display and accessibility. Set a fixed position so the page layout
|
|
618
|
-
// isn't affected. We use `fixed` with `top: 0`, because focus is moved into the textarea
|
|
619
|
-
// for a split second and if it's off-screen, some browsers will attempt to scroll it into view.
|
|
620
|
-
styles.position = 'fixed';
|
|
621
|
-
styles.top = styles.opacity = '0';
|
|
622
|
-
styles.left = '-999em';
|
|
623
|
-
textarea.setAttribute('aria-hidden', 'true');
|
|
624
|
-
textarea.value = this._text;
|
|
625
|
-
this._document.body.appendChild(textarea);
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
function mixinDisabled(base) {
|
|
630
|
-
return class extends base {
|
|
631
|
-
get disabled() {
|
|
632
|
-
return this._disable;
|
|
633
|
-
}
|
|
634
|
-
set disabled(value) {
|
|
635
|
-
this._disable = coerceBooleanProperty(value);
|
|
636
|
-
}
|
|
637
|
-
constructor(...args) {
|
|
638
|
-
super(...args);
|
|
639
|
-
this._disable = false;
|
|
640
|
-
}
|
|
641
|
-
};
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
function mixinLoad(base) {
|
|
645
|
-
return class extends base {
|
|
646
|
-
get loading() {
|
|
647
|
-
return this._loading;
|
|
648
|
-
}
|
|
649
|
-
set loading(value) {
|
|
650
|
-
this._loading = coerceBooleanProperty(value);
|
|
651
|
-
}
|
|
652
|
-
constructor(...args) {
|
|
653
|
-
super(...args);
|
|
654
|
-
this._loading = false;
|
|
655
|
-
}
|
|
656
|
-
};
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
function mixinError(base) {
|
|
660
|
-
return class extends base {
|
|
661
|
-
get error() {
|
|
662
|
-
return this._error;
|
|
663
|
-
}
|
|
664
|
-
set error(value) {
|
|
665
|
-
this._error = coerceBooleanProperty(value);
|
|
666
|
-
}
|
|
667
|
-
constructor(...args) {
|
|
668
|
-
super(...args);
|
|
669
|
-
this._error = false;
|
|
670
|
-
}
|
|
671
|
-
};
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
function mixinHideErrors(base) {
|
|
675
|
-
return class extends base {
|
|
676
|
-
get hideErrors() {
|
|
677
|
-
return this._hideErrors;
|
|
678
|
-
}
|
|
679
|
-
set hideErrors(value) {
|
|
680
|
-
this._hideErrors = coerceBooleanProperty(value);
|
|
681
|
-
}
|
|
682
|
-
constructor(...args) {
|
|
683
|
-
super(...args);
|
|
684
|
-
this._hideErrors = false;
|
|
685
|
-
}
|
|
686
|
-
};
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
function mixinFocused(base) {
|
|
690
|
-
return class extends base {
|
|
691
|
-
get focused() {
|
|
692
|
-
return this._focused;
|
|
693
|
-
}
|
|
694
|
-
set focused(value) {
|
|
695
|
-
this._focused = coerceBooleanProperty(value);
|
|
696
|
-
}
|
|
697
|
-
constructor(...args) {
|
|
698
|
-
super(...args);
|
|
699
|
-
this._focused = false;
|
|
700
|
-
}
|
|
701
|
-
};
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
function mixinGrouped(base) {
|
|
705
|
-
return class extends base {
|
|
706
|
-
get grouped() {
|
|
707
|
-
return this._grouped;
|
|
708
|
-
}
|
|
709
|
-
set grouped(value) {
|
|
710
|
-
this._grouped = coerceBooleanProperty(value);
|
|
711
|
-
}
|
|
712
|
-
constructor(...args) {
|
|
713
|
-
super(...args);
|
|
714
|
-
this._grouped = false;
|
|
715
|
-
}
|
|
716
|
-
};
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
function mixinReadonly(base) {
|
|
720
|
-
return class extends base {
|
|
721
|
-
get readonly() {
|
|
722
|
-
return this._readonly;
|
|
723
|
-
}
|
|
724
|
-
set readonly(value) {
|
|
725
|
-
this._readonly = coerceBooleanProperty(value);
|
|
726
|
-
}
|
|
727
|
-
constructor(...args) {
|
|
728
|
-
super(...args);
|
|
729
|
-
this._readonly = false;
|
|
730
|
-
}
|
|
731
|
-
};
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
function mixinRequired(base) {
|
|
735
|
-
return class extends base {
|
|
736
|
-
get required() {
|
|
737
|
-
return this._required;
|
|
738
|
-
}
|
|
739
|
-
set required(value) {
|
|
740
|
-
this._required = coerceBooleanProperty(value);
|
|
741
|
-
}
|
|
742
|
-
constructor(...args) {
|
|
743
|
-
super(...args);
|
|
744
|
-
this._required = false;
|
|
745
|
-
}
|
|
746
|
-
};
|
|
747
|
-
}
|
|
748
|
-
|
|
749
643
|
const BASE_URL = new InjectionToken('BaseUrl');
|
|
750
644
|
|
|
751
645
|
const COOKIE = new InjectionToken('Cookie');
|
|
@@ -756,7 +650,46 @@ const LOCATION = new InjectionToken('An abstraction over window.location object'
|
|
|
756
650
|
|
|
757
651
|
const BbRegex = {
|
|
758
652
|
email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
|
|
759
|
-
fullNumber: /^\d*[1-9]\d
|
|
653
|
+
fullNumber: /^\d*[1-9]\d*$/,
|
|
654
|
+
url: new RegExp('^' +
|
|
655
|
+
// protocol identifier (optional)
|
|
656
|
+
// short syntax // still required
|
|
657
|
+
'(?:(?:(?:https?|ftp):)?\\/\\/)' +
|
|
658
|
+
// user:pass BasicAuth (optional)
|
|
659
|
+
'(?:\\S+(?::\\S*)?@)?' +
|
|
660
|
+
'(?:' +
|
|
661
|
+
// IP address exclusion
|
|
662
|
+
// private & local networks
|
|
663
|
+
'(?!(?:10|127)(?:\\.\\d{1,3}){3})' +
|
|
664
|
+
'(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})' +
|
|
665
|
+
'(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})' +
|
|
666
|
+
// IP address dotted notation octets
|
|
667
|
+
// excludes loopback network 0.0.0.0
|
|
668
|
+
// excludes reserved space >= 224.0.0.0
|
|
669
|
+
// excludes network & broadcast addresses
|
|
670
|
+
// (first & last IP address of each class)
|
|
671
|
+
'(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])' +
|
|
672
|
+
'(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}' +
|
|
673
|
+
'(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))' +
|
|
674
|
+
'|' +
|
|
675
|
+
// host & domain names, may end with dot
|
|
676
|
+
// can be replaced by a shortest alternative
|
|
677
|
+
// (?![-_])(?:[-\\w\\u00a1-\\uffff]{0,63}[^-_]\\.)+
|
|
678
|
+
'(?:' +
|
|
679
|
+
'(?:' +
|
|
680
|
+
'[a-z0-9\\u00a1-\\uffff]' +
|
|
681
|
+
'[a-z0-9\\u00a1-\\uffff_-]{0,62}' +
|
|
682
|
+
')?' +
|
|
683
|
+
'[a-z0-9\\u00a1-\\uffff]\\.' +
|
|
684
|
+
')+' +
|
|
685
|
+
// TLD identifier name, may end with dot
|
|
686
|
+
'(?:[a-z\\u00a1-\\uffff]{2,}\\.?)' +
|
|
687
|
+
')' +
|
|
688
|
+
// port number (optional)
|
|
689
|
+
'(?::\\d{2,5})?' +
|
|
690
|
+
// resource path (optional)
|
|
691
|
+
'(?:[/?#]\\S*)?' +
|
|
692
|
+
'$', 'i')
|
|
760
693
|
};
|
|
761
694
|
|
|
762
695
|
class BbValidator {
|
|
@@ -842,6 +775,10 @@ function isEmptyInputValue(value) {
|
|
|
842
775
|
return value == null || value.length === 0;
|
|
843
776
|
}
|
|
844
777
|
|
|
778
|
+
function observableAttribute(value) {
|
|
779
|
+
return isObservable(value) ? value : of(value);
|
|
780
|
+
}
|
|
781
|
+
|
|
845
782
|
function parseDate(value) {
|
|
846
783
|
if (value === undefined || value === null) {
|
|
847
784
|
return null;
|
|
@@ -890,6 +827,13 @@ function generatePassword(length = 12) {
|
|
|
890
827
|
return generatedPassword;
|
|
891
828
|
}
|
|
892
829
|
|
|
830
|
+
function arrayToMap(items, value) {
|
|
831
|
+
return items.reduce((previous, current) => {
|
|
832
|
+
const key = current?.[value];
|
|
833
|
+
return { ...previous, [key]: current };
|
|
834
|
+
}, {});
|
|
835
|
+
}
|
|
836
|
+
|
|
893
837
|
/*
|
|
894
838
|
* Public API Surface of bb-foundation
|
|
895
839
|
*/
|
|
@@ -898,5 +842,5 @@ function generatePassword(length = 12) {
|
|
|
898
842
|
* Generated bundle index. Do not edit.
|
|
899
843
|
*/
|
|
900
844
|
|
|
901
|
-
export { ACCEPT_LANGUAGE, BASE_URL, BbRegex, BbValidator, COOKIE,
|
|
845
|
+
export { ACCEPT_LANGUAGE, BASE_URL, BbRegex, BbValidator, COOKIE, Exif, FileLoader, Files, ImageConverter, LOCATION, Languages, NAVIGATOR, Network, Patch, WINDOW, arrayToMap, createDate, generatePassword, isDate, isValidDate, observableAttribute, parseDate };
|
|
902
846
|
//# sourceMappingURL=bravobit-bb-foundation.mjs.map
|