@bravobit/bb-foundation 0.54.3 → 0.55.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/index.d.ts +267 -5
- package/collections/index.d.ts +350 -5
- package/combobox/index.d.ts +58 -5
- package/dashboard/index.d.ts +104 -5
- package/dialog/index.d.ts +168 -5
- package/elements/index.d.ts +838 -5
- package/fesm2022/bravobit-bb-foundation-auth.mjs +22 -22
- package/fesm2022/bravobit-bb-foundation-collections.mjs +44 -44
- package/fesm2022/bravobit-bb-foundation-collections.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-combobox.mjs +15 -15
- package/fesm2022/bravobit-bb-foundation-dashboard.mjs +25 -25
- package/fesm2022/bravobit-bb-foundation-dialog.mjs +33 -33
- package/fesm2022/bravobit-bb-foundation-dialog.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-elements.mjs +102 -102
- package/fesm2022/bravobit-bb-foundation-elements.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-http.mjs +10 -10
- package/fesm2022/bravobit-bb-foundation-localize.mjs +18 -18
- package/fesm2022/bravobit-bb-foundation-localize.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-masking.mjs +16 -16
- package/fesm2022/bravobit-bb-foundation-notifications.mjs +15 -15
- package/fesm2022/bravobit-bb-foundation-notifications.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-permissions.mjs +10 -10
- package/fesm2022/bravobit-bb-foundation-recaptcha.mjs +11 -12
- package/fesm2022/bravobit-bb-foundation-recaptcha.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-select.mjs +21 -21
- package/fesm2022/bravobit-bb-foundation-select.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-storage.mjs +3 -3
- package/fesm2022/bravobit-bb-foundation-table.mjs +22 -22
- package/fesm2022/bravobit-bb-foundation-tooltip.mjs +10 -10
- package/fesm2022/bravobit-bb-foundation-utils.mjs +16 -16
- package/fesm2022/bravobit-bb-foundation.mjs +25 -25
- package/fesm2022/bravobit-bb-foundation.mjs.map +1 -1
- package/http/index.d.ts +78 -5
- package/index.d.ts +215 -5
- package/localize/index.d.ts +546 -5
- package/masking/index.d.ts +104 -5
- package/notifications/index.d.ts +78 -5
- package/package.json +21 -21
- package/permissions/index.d.ts +89 -5
- package/recaptcha/index.d.ts +92 -5
- package/rxjs/index.d.ts +19 -5
- package/select/index.d.ts +129 -5
- package/storage/index.d.ts +109 -5
- package/table/index.d.ts +197 -5
- package/tooltip/index.d.ts +45 -5
- package/utils/index.d.ts +66 -5
- package/auth/lib/acting.interceptor.d.ts +0 -9
- package/auth/lib/acting.service.d.ts +0 -17
- package/auth/lib/auth.config.d.ts +0 -3
- package/auth/lib/auth.interceptor.d.ts +0 -20
- package/auth/lib/auth.module.d.ts +0 -10
- package/auth/lib/auth.service.d.ts +0 -51
- package/auth/lib/auth.session.d.ts +0 -50
- package/auth/lib/directives/anonymous.directive.d.ts +0 -20
- package/auth/lib/directives/authenticated.directive.d.ts +0 -20
- package/auth/lib/guards/anonymous.guard.d.ts +0 -2
- package/auth/lib/guards/authenticated.guard.d.ts +0 -2
- package/auth/lib/helpers/jwt.helper.d.ts +0 -8
- package/auth/lib/interfaces/config.interface.d.ts +0 -27
- package/auth/lib/interfaces/provider.interface.d.ts +0 -23
- package/auth/lib/interfaces/token.interface.d.ts +0 -11
- package/auth/lib/providers/email.provider.d.ts +0 -9
- package/auth/lib/providers/verify.provider.d.ts +0 -9
- package/auth/lib/tokens/use-authorization.token.d.ts +0 -2
- package/auth/public_api.d.ts +0 -17
- package/collections/lib/classes/array.collection.d.ts +0 -17
- package/collections/lib/collection.d.ts +0 -40
- package/collections/lib/collections.config.d.ts +0 -3
- package/collections/lib/collections.interfaces.d.ts +0 -10
- package/collections/lib/collections.module.d.ts +0 -19
- package/collections/lib/components/collections-actions/collections-actions.component.d.ts +0 -13
- package/collections/lib/components/collections-grid/collections-grid.component.d.ts +0 -18
- package/collections/lib/components/collections-pager/collections-pager.component.d.ts +0 -38
- package/collections/lib/components/collections-table/collections-table.component.d.ts +0 -26
- package/collections/lib/components/collections-table-label/collections-table-label.component.d.ts +0 -11
- package/collections/lib/components/collections-table-sorting/collections-table-sorting.component.d.ts +0 -18
- package/collections/lib/components/collections-viewer/collections-viewer.component.d.ts +0 -16
- package/collections/lib/directives/collections-data-row.directive.d.ts +0 -14
- package/collections/lib/directives/collections-data.directive.d.ts +0 -14
- package/collections/lib/directives/collections-empty.directive.d.ts +0 -14
- package/collections/lib/directives/collections-error.directive.d.ts +0 -14
- package/collections/lib/directives/collections-initial.directive.d.ts +0 -11
- package/collections/lib/directives/collections-item.directive.d.ts +0 -14
- package/collections/lib/interfaces/array-collection.interface.d.ts +0 -6
- package/collections/lib/interfaces/collection.interface.d.ts +0 -32
- package/collections/lib/providers/api-collection.provider.d.ts +0 -19
- package/collections/lib/providers/collection.provider.d.ts +0 -9
- package/collections/lib/providers/local-collection.provider.d.ts +0 -16
- package/collections/public_api.d.ts +0 -23
- package/combobox/combobox/combobox-container.directive.d.ts +0 -28
- package/combobox/combobox/combobox.component.d.ts +0 -37
- package/combobox/combobox-label.directive.d.ts +0 -5
- package/combobox/combobox-option.directive.d.ts +0 -7
- package/combobox/combobox-panel/combobox-panel.animation.d.ts +0 -1
- package/combobox/combobox-panel/combobox-panel.component.d.ts +0 -18
- package/combobox/combobox.interface.d.ts +0 -8
- package/combobox/public_api.d.ts +0 -3
- package/dashboard/lib/dashboard/dashboard.component.d.ts +0 -17
- package/dashboard/lib/dashboard-header/dashboard-header.component.d.ts +0 -9
- package/dashboard/lib/dashboard-menu/dashboard-menu.component.d.ts +0 -9
- package/dashboard/lib/dashboard-menu-item/dashboard-menu-item.component.d.ts +0 -8
- package/dashboard/lib/dashboard-sidebar/dashboard-sidebar.component.d.ts +0 -19
- package/dashboard/lib/dashboard-sidebar-group/dashboard-sidebar-group.component.d.ts +0 -22
- package/dashboard/lib/dashboard-sidebar-item/dashboard-sidebar-item.component.d.ts +0 -16
- package/dashboard/lib/dashboard.module.d.ts +0 -13
- package/dashboard/public_api.d.ts +0 -8
- package/dialog/lib/dialog-actions/dialog-actions.component.d.ts +0 -5
- package/dialog/lib/dialog-confirm/dialog-confirm.component.d.ts +0 -22
- package/dialog/lib/dialog-container/dialog-container.component.d.ts +0 -23
- package/dialog/lib/dialog-header/dialog-header.component.d.ts +0 -13
- package/dialog/lib/dialog-modal/dialog-modal.component.d.ts +0 -16
- package/dialog/lib/dialog-overlay/dialog-overlay.component.d.ts +0 -19
- package/dialog/lib/dialog.config.d.ts +0 -3
- package/dialog/lib/dialog.insertion.d.ts +0 -7
- package/dialog/lib/dialog.interfaces.d.ts +0 -21
- package/dialog/lib/dialog.module.d.ts +0 -17
- package/dialog/lib/dialog.ref.d.ts +0 -8
- package/dialog/lib/dialog.service.d.ts +0 -15
- package/dialog/lib/directives/confirm.directive.d.ts +0 -14
- package/dialog/public_api.d.ts +0 -10
- package/elements/lib/avatar/avatar.component.d.ts +0 -31
- package/elements/lib/button/button.component.d.ts +0 -21
- package/elements/lib/checkbox/checkbox.component.d.ts +0 -36
- package/elements/lib/checkbox-group/checkbox-group.component.d.ts +0 -13
- package/elements/lib/color-picker/color-picker.component.d.ts +0 -18
- package/elements/lib/color-slider/color-slider.component.d.ts +0 -24
- package/elements/lib/date-picker/date-picker.component.d.ts +0 -77
- package/elements/lib/directives/color-picker.directive.d.ts +0 -27
- package/elements/lib/directives/extra-error-controls.directive.d.ts +0 -13
- package/elements/lib/directives/file-drop.directive.d.ts +0 -13
- package/elements/lib/directives/form-submit.directive.d.ts +0 -17
- package/elements/lib/directives/form-submitter.directive.d.ts +0 -9
- package/elements/lib/directives/image-upload.directive.d.ts +0 -25
- package/elements/lib/directives/input.directive.d.ts +0 -16
- package/elements/lib/elements.config.d.ts +0 -3
- package/elements/lib/elements.inject.d.ts +0 -3
- package/elements/lib/elements.interfaces.d.ts +0 -41
- package/elements/lib/elements.module.d.ts +0 -39
- package/elements/lib/file-picker/file-picker.component.d.ts +0 -57
- package/elements/lib/form-control/form-control.component.d.ts +0 -20
- package/elements/lib/form-error/form-error.component.d.ts +0 -36
- package/elements/lib/form-group/form-group.component.d.ts +0 -7
- package/elements/lib/icon/icon.component.d.ts +0 -26
- package/elements/lib/image-control/image-control.component.d.ts +0 -44
- package/elements/lib/image-picker/image-picker.component.d.ts +0 -39
- package/elements/lib/multi-file-control/multi-file-control.component.d.ts +0 -72
- package/elements/lib/pincode-control/pincode-control.component.d.ts +0 -65
- package/elements/lib/pipes/date.pipe.d.ts +0 -9
- package/elements/lib/pipes/file-data-url.pipe.d.ts +0 -12
- package/elements/lib/pipes/file-image.pipe.d.ts +0 -14
- package/elements/lib/pipes/file-size.pipe.d.ts +0 -7
- package/elements/lib/pipes/relative-time.pipe.d.ts +0 -19
- package/elements/lib/radio-button/radio-button.component.d.ts +0 -16
- package/elements/lib/radio-group/radio-group.component.d.ts +0 -38
- package/elements/lib/spinner/spinner.component.d.ts +0 -9
- package/elements/public_api.d.ts +0 -35
- package/http/lib/classes/http.config.d.ts +0 -9
- package/http/lib/classes/http.error.d.ts +0 -7
- package/http/lib/http.config.d.ts +0 -5
- package/http/lib/http.interfaces.d.ts +0 -21
- package/http/lib/http.module.d.ts +0 -11
- package/http/lib/interceptors/base-url.interceptor.d.ts +0 -15
- package/http/lib/interceptors/error.interceptor.d.ts +0 -9
- package/http/public_api.d.ts +0 -7
- package/lib/core/colors/hex.d.ts +0 -18
- package/lib/core/colors/hsl.d.ts +0 -7
- package/lib/core/colors/hsv.d.ts +0 -13
- package/lib/core/colors/rgb.d.ts +0 -7
- package/lib/core/functions/array.utils.d.ts +0 -1
- package/lib/core/functions/date.utils.d.ts +0 -4
- package/lib/core/functions/file.utils.d.ts +0 -3
- package/lib/core/functions/format.utils.d.ts +0 -1
- package/lib/core/functions/password.utils.d.ts +0 -1
- package/lib/core/functions/route-cache.utils.d.ts +0 -10
- package/lib/core/functions/utils.d.ts +0 -1
- package/lib/core/miscellaneous/coercion.d.ts +0 -2
- package/lib/core/miscellaneous/regex.d.ts +0 -5
- package/lib/core/miscellaneous/validator.d.ts +0 -13
- package/lib/core/services/exif.service.d.ts +0 -12
- package/lib/core/services/file-loader.service.d.ts +0 -13
- package/lib/core/services/files.service.d.ts +0 -15
- package/lib/core/services/image-converter.service.d.ts +0 -17
- package/lib/core/services/languages.service.d.ts +0 -15
- package/lib/core/services/network.service.d.ts +0 -13
- package/lib/core/services/patch.service.d.ts +0 -14
- package/lib/core/tokens/accept-language.token.d.ts +0 -2
- package/lib/core/tokens/cookie.token.d.ts +0 -2
- package/lib/core/tokens/global-focus-mode.token.d.ts +0 -4
- package/lib/core/tokens/location.token.d.ts +0 -2
- package/lib/core/tokens/navigator.token.d.ts +0 -2
- package/lib/core/tokens/window.token.d.ts +0 -2
- package/localize/lib/dictionary/dictionary.class.d.ts +0 -28
- package/localize/lib/dictionary/dictionary.context.d.ts +0 -7
- package/localize/lib/dictionary/dictionary.data.d.ts +0 -7
- package/localize/lib/functions/date.function.d.ts +0 -5
- package/localize/lib/functions/lowercase.function.d.ts +0 -5
- package/localize/lib/functions/uppercase.function.d.ts +0 -5
- package/localize/lib/handlers/missing.handler.d.ts +0 -6
- package/localize/lib/interfaces/config.interfaces.d.ts +0 -18
- package/localize/lib/interfaces/functions.interfaces.d.ts +0 -7
- package/localize/lib/interfaces/handlers.interfaces.d.ts +0 -6
- package/localize/lib/interfaces/options.interfaces.d.ts +0 -11
- package/localize/lib/localizations/dutch.localization.d.ts +0 -74
- package/localize/lib/localizations/english.localization.d.ts +0 -74
- package/localize/lib/localizations/papiamento.localization.d.ts +0 -74
- package/localize/lib/localizations/spanish.localization.d.ts +0 -74
- package/localize/lib/localize.config.d.ts +0 -5
- package/localize/lib/localize.module.d.ts +0 -12
- package/localize/lib/localize.pipe.d.ts +0 -12
- package/localize/lib/localize.service.d.ts +0 -43
- package/localize/lib/localize.tokens.d.ts +0 -11
- package/localize/lib/transforms/abstract.transform.d.ts +0 -13
- package/localize/lib/transforms/interpolate.transform.d.ts +0 -13
- package/localize/lib/transforms/plural.transform.d.ts +0 -16
- package/localize/lib/transforms/reference.transform.d.ts +0 -9
- package/localize/lib/views/localize-string/localize-string.component.d.ts +0 -23
- package/localize/lib/views/localize-template.directive.d.ts +0 -9
- package/localize/public_api.d.ts +0 -26
- package/masking/lib/directives/currency-mask.directive.d.ts +0 -17
- package/masking/lib/directives/date-mask.directive.d.ts +0 -17
- package/masking/lib/directives/input-mask.directive.d.ts +0 -38
- package/masking/lib/input-mask.interface.d.ts +0 -19
- package/masking/lib/masking.module.d.ts +0 -9
- package/masking/lib/masking.service.d.ts +0 -12
- package/masking/public_api.d.ts +0 -6
- package/notifications/lib/notifications-item/notifications-item.component.d.ts +0 -33
- package/notifications/lib/notifications-list/notifications-list.component.d.ts +0 -18
- package/notifications/lib/notifications.animations.d.ts +0 -1
- package/notifications/lib/notifications.config.d.ts +0 -3
- package/notifications/lib/notifications.interfaces.d.ts +0 -36
- package/notifications/lib/notifications.module.d.ts +0 -9
- package/notifications/lib/notifications.service.d.ts +0 -30
- package/notifications/public_api.d.ts +0 -4
- package/permissions/lib/directives/permission.directive.d.ts +0 -27
- package/permissions/lib/guards/permission.guard.d.ts +0 -3
- package/permissions/lib/handlers/abstract.handler.d.ts +0 -4
- package/permissions/lib/handlers/local.handler.d.ts +0 -10
- package/permissions/lib/permissions.config.d.ts +0 -3
- package/permissions/lib/permissions.interface.d.ts +0 -13
- package/permissions/lib/permissions.module.d.ts +0 -10
- package/permissions/lib/permissions.service.d.ts +0 -23
- package/permissions/public_api.d.ts +0 -8
- package/public_api.d.ts +0 -27
- package/recaptcha/lib/recaptcha/recaptcha.component.d.ts +0 -47
- package/recaptcha/lib/recaptcha-loader.service.d.ts +0 -19
- package/recaptcha/lib/recaptcha.config.d.ts +0 -3
- package/recaptcha/lib/recaptcha.interface.d.ts +0 -13
- package/recaptcha/lib/recaptcha.module.d.ts +0 -10
- package/recaptcha/public_api.d.ts +0 -5
- package/rxjs/lib/observables/get-control-value.observable.d.ts +0 -3
- package/rxjs/lib/observables/get-route-param.observable.d.ts +0 -3
- package/rxjs/lib/operators/combine-latest-map.operator.d.ts +0 -8
- package/rxjs/lib/operators/filter-nil.operator.d.ts +0 -1
- package/rxjs/public_api.d.ts +0 -4
- package/select/lib/select/select.component.d.ts +0 -94
- package/select/lib/select-label.directive.d.ts +0 -7
- package/select/lib/select-multi-label.directive.d.ts +0 -7
- package/select/lib/select-option-group.directive.d.ts +0 -7
- package/select/lib/select-option.directive.d.ts +0 -7
- package/select/lib/select.config.d.ts +0 -2
- package/select/lib/select.module.d.ts +0 -11
- package/select/public_api.d.ts +0 -7
- package/storage/lib/interfaces/attributes.interface.d.ts +0 -13
- package/storage/lib/interfaces/memory.interface.d.ts +0 -7
- package/storage/lib/interfaces/strategy.interface.d.ts +0 -17
- package/storage/lib/storage.service.d.ts +0 -25
- package/storage/lib/strategies/cookie-storage.strategy.d.ts +0 -20
- package/storage/lib/strategies/memory-storage.strategy.d.ts +0 -11
- package/storage/lib/strategies/polyfill-storage.strategy.d.ts +0 -15
- package/storage/public_api.d.ts +0 -7
- package/table/lib/components/table/table.component.d.ts +0 -57
- package/table/lib/components/table-cell/table-cell.component.d.ts +0 -5
- package/table/lib/components/table-header-cell/table-header-cell.component.d.ts +0 -26
- package/table/lib/components/table-pager/table-pager.component.d.ts +0 -40
- package/table/lib/data/datasource.data.d.ts +0 -14
- package/table/lib/data/generic.data.d.ts +0 -25
- package/table/lib/interfaces/datasource.interface.d.ts +0 -17
- package/table/lib/interfaces/table.interfaces.d.ts +0 -11
- package/table/lib/table.config.d.ts +0 -3
- package/table/lib/table.module.d.ts +0 -10
- package/table/public_api.d.ts +0 -10
- package/tooltip/lib/tooltip-container/tooltip-container.component.d.ts +0 -9
- package/tooltip/lib/tooltip.directive.d.ts +0 -23
- package/tooltip/lib/tooltip.interfaces.d.ts +0 -4
- package/tooltip/lib/tooltip.module.d.ts +0 -7
- package/tooltip/public_api.d.ts +0 -4
- package/utils/lib/directives/autosize.directive.d.ts +0 -19
- package/utils/lib/directives/focus-trap.directive.d.ts +0 -14
- package/utils/lib/directives/focus.directive.d.ts +0 -16
- package/utils/lib/directives/template.directive.d.ts +0 -10
- package/utils/lib/utils.module.d.ts +0 -10
- package/utils/public_api.d.ts +0 -5
package/notifications/index.d.ts
CHANGED
|
@@ -1,5 +1,78 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { TemplateRef, InjectionToken, EnvironmentProviders, ModuleWithProviders } from '@angular/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
|
|
5
|
+
interface Notification {
|
|
6
|
+
content: string | TemplateRef<any>;
|
|
7
|
+
type: NotificationType;
|
|
8
|
+
id?: number;
|
|
9
|
+
timeout?: number;
|
|
10
|
+
localize?: boolean;
|
|
11
|
+
dismiss?: boolean;
|
|
12
|
+
dismissText?: string;
|
|
13
|
+
actions?: NotificationAction[];
|
|
14
|
+
color?: string;
|
|
15
|
+
backgroundColor?: string;
|
|
16
|
+
destroy?: () => void;
|
|
17
|
+
}
|
|
18
|
+
interface NotificationAction {
|
|
19
|
+
title: string;
|
|
20
|
+
callback?: () => any;
|
|
21
|
+
type?: 'default' | 'cancel';
|
|
22
|
+
}
|
|
23
|
+
declare enum NotificationType {
|
|
24
|
+
Success = "success",
|
|
25
|
+
Error = "error",
|
|
26
|
+
Warning = "warning",
|
|
27
|
+
Info = "info",
|
|
28
|
+
Custom = "custom"
|
|
29
|
+
}
|
|
30
|
+
declare class NotificationsConfig {
|
|
31
|
+
mode?: 'append' | 'prepend';
|
|
32
|
+
timeout?: number;
|
|
33
|
+
dismiss?: boolean;
|
|
34
|
+
localize?: boolean;
|
|
35
|
+
dismissText?: string;
|
|
36
|
+
}
|
|
37
|
+
declare const NOTIFICATIONS_DATA: InjectionToken<Observable<Notification[]>>;
|
|
38
|
+
declare const NOTIFICATIONS_CONFIG: InjectionToken<NotificationsConfig>;
|
|
39
|
+
|
|
40
|
+
declare class Notifications {
|
|
41
|
+
private _platform;
|
|
42
|
+
private _applicationRef;
|
|
43
|
+
private _environmentInjector;
|
|
44
|
+
private _localize?;
|
|
45
|
+
private _config?;
|
|
46
|
+
private _document?;
|
|
47
|
+
private _componentRef;
|
|
48
|
+
private readonly _defaultMode;
|
|
49
|
+
private readonly _defaultTimeout;
|
|
50
|
+
private readonly _defaultLocalize;
|
|
51
|
+
private readonly _defaultDismiss;
|
|
52
|
+
private readonly _defaultDismissText;
|
|
53
|
+
private _notifications$;
|
|
54
|
+
constructor();
|
|
55
|
+
success(content: string | TemplateRef<any>, actions?: NotificationAction[], timeout?: number): Notification;
|
|
56
|
+
error(content: string | TemplateRef<any>, actions?: NotificationAction[], timeout?: number): Notification;
|
|
57
|
+
warn(content: string | TemplateRef<any>, actions?: NotificationAction[], timeout?: number): Notification;
|
|
58
|
+
info(content: string | TemplateRef<any>, actions?: NotificationAction[], timeout?: number): Notification;
|
|
59
|
+
create(notification: Notification): Notification;
|
|
60
|
+
private push;
|
|
61
|
+
private pull;
|
|
62
|
+
private compose;
|
|
63
|
+
private createElement;
|
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Notifications, never>;
|
|
65
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<Notifications>;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
declare function provideNotificationsConfig(config: NotificationsConfig): EnvironmentProviders;
|
|
69
|
+
|
|
70
|
+
declare class NotificationsModule {
|
|
71
|
+
static forRoot(config?: NotificationsConfig): ModuleWithProviders<NotificationsModule>;
|
|
72
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsModule, never>;
|
|
73
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NotificationsModule, never, never, never>;
|
|
74
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NotificationsModule>;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export { NOTIFICATIONS_CONFIG, NOTIFICATIONS_DATA, NotificationType, Notifications, NotificationsConfig, NotificationsModule, provideNotificationsConfig };
|
|
78
|
+
export type { Notification, NotificationAction };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bravobit/bb-foundation",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.55.0",
|
|
4
4
|
"description": "The Angular core foundation of the Bravobit team.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Stan van Heumen",
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
"url": "https://bravobit.nl"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@angular/common": "^
|
|
12
|
-
"@angular/core": "^
|
|
13
|
-
"@angular/cdk": "^
|
|
11
|
+
"@angular/common": "^20.0.0",
|
|
12
|
+
"@angular/core": "^20.0.0",
|
|
13
|
+
"@angular/cdk": "^20.0.1"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"tslib": "^2.8.1",
|
|
17
17
|
"inputmask": "^5.0.9",
|
|
18
18
|
"@types/grecaptcha": "^3.0.9",
|
|
19
|
-
"@ng-select/ng-select": "^
|
|
19
|
+
"@ng-select/ng-select": "^15.0.2"
|
|
20
20
|
},
|
|
21
21
|
"sideEffects": false,
|
|
22
22
|
"schematics": "./schematics/collection.json",
|
|
@@ -40,6 +40,10 @@
|
|
|
40
40
|
"types": "./auth/index.d.ts",
|
|
41
41
|
"default": "./fesm2022/bravobit-bb-foundation-auth.mjs"
|
|
42
42
|
},
|
|
43
|
+
"./collections": {
|
|
44
|
+
"types": "./collections/index.d.ts",
|
|
45
|
+
"default": "./fesm2022/bravobit-bb-foundation-collections.mjs"
|
|
46
|
+
},
|
|
43
47
|
"./dashboard": {
|
|
44
48
|
"types": "./dashboard/index.d.ts",
|
|
45
49
|
"default": "./fesm2022/bravobit-bb-foundation-dashboard.mjs"
|
|
@@ -48,18 +52,14 @@
|
|
|
48
52
|
"types": "./combobox/index.d.ts",
|
|
49
53
|
"default": "./fesm2022/bravobit-bb-foundation-combobox.mjs"
|
|
50
54
|
},
|
|
51
|
-
"./elements": {
|
|
52
|
-
"types": "./elements/index.d.ts",
|
|
53
|
-
"default": "./fesm2022/bravobit-bb-foundation-elements.mjs"
|
|
54
|
-
},
|
|
55
|
-
"./collections": {
|
|
56
|
-
"types": "./collections/index.d.ts",
|
|
57
|
-
"default": "./fesm2022/bravobit-bb-foundation-collections.mjs"
|
|
58
|
-
},
|
|
59
55
|
"./dialog": {
|
|
60
56
|
"types": "./dialog/index.d.ts",
|
|
61
57
|
"default": "./fesm2022/bravobit-bb-foundation-dialog.mjs"
|
|
62
58
|
},
|
|
59
|
+
"./elements": {
|
|
60
|
+
"types": "./elements/index.d.ts",
|
|
61
|
+
"default": "./fesm2022/bravobit-bb-foundation-elements.mjs"
|
|
62
|
+
},
|
|
63
63
|
"./http": {
|
|
64
64
|
"types": "./http/index.d.ts",
|
|
65
65
|
"default": "./fesm2022/bravobit-bb-foundation-http.mjs"
|
|
@@ -68,14 +68,14 @@
|
|
|
68
68
|
"types": "./localize/index.d.ts",
|
|
69
69
|
"default": "./fesm2022/bravobit-bb-foundation-localize.mjs"
|
|
70
70
|
},
|
|
71
|
-
"./notifications": {
|
|
72
|
-
"types": "./notifications/index.d.ts",
|
|
73
|
-
"default": "./fesm2022/bravobit-bb-foundation-notifications.mjs"
|
|
74
|
-
},
|
|
75
71
|
"./masking": {
|
|
76
72
|
"types": "./masking/index.d.ts",
|
|
77
73
|
"default": "./fesm2022/bravobit-bb-foundation-masking.mjs"
|
|
78
74
|
},
|
|
75
|
+
"./notifications": {
|
|
76
|
+
"types": "./notifications/index.d.ts",
|
|
77
|
+
"default": "./fesm2022/bravobit-bb-foundation-notifications.mjs"
|
|
78
|
+
},
|
|
79
79
|
"./permissions": {
|
|
80
80
|
"types": "./permissions/index.d.ts",
|
|
81
81
|
"default": "./fesm2022/bravobit-bb-foundation-permissions.mjs"
|
|
@@ -96,14 +96,14 @@
|
|
|
96
96
|
"types": "./storage/index.d.ts",
|
|
97
97
|
"default": "./fesm2022/bravobit-bb-foundation-storage.mjs"
|
|
98
98
|
},
|
|
99
|
-
"./table": {
|
|
100
|
-
"types": "./table/index.d.ts",
|
|
101
|
-
"default": "./fesm2022/bravobit-bb-foundation-table.mjs"
|
|
102
|
-
},
|
|
103
99
|
"./tooltip": {
|
|
104
100
|
"types": "./tooltip/index.d.ts",
|
|
105
101
|
"default": "./fesm2022/bravobit-bb-foundation-tooltip.mjs"
|
|
106
102
|
},
|
|
103
|
+
"./table": {
|
|
104
|
+
"types": "./table/index.d.ts",
|
|
105
|
+
"default": "./fesm2022/bravobit-bb-foundation-table.mjs"
|
|
106
|
+
},
|
|
107
107
|
"./utils": {
|
|
108
108
|
"types": "./utils/index.d.ts",
|
|
109
109
|
"default": "./fesm2022/bravobit-bb-foundation-utils.mjs"
|
package/permissions/index.d.ts
CHANGED
|
@@ -1,5 +1,89 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as rxjs from 'rxjs';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Router, ActivatedRouteSnapshot, RouterStateSnapshot, UrlTree, CanActivateFn } from '@angular/router';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { Provider, InjectionToken, OnInit, OnDestroy, TemplateRef, EnvironmentProviders, ModuleWithProviders } from '@angular/core';
|
|
6
|
+
import { Auth } from '@bravobit/bb-foundation/auth';
|
|
7
|
+
|
|
8
|
+
declare abstract class PermissionsHandler {
|
|
9
|
+
abstract get(): Observable<string[]> | string[];
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare class PermissionsConfig {
|
|
13
|
+
provider?: Provider;
|
|
14
|
+
localPermissions?: LocalPermissionsData;
|
|
15
|
+
onPermissionDenied?: (router: Router, snapshot: ActivatedRouteSnapshot, state: RouterStateSnapshot) => UrlTree;
|
|
16
|
+
}
|
|
17
|
+
interface PermissionsOptions {
|
|
18
|
+
mode?: PermissionsMode;
|
|
19
|
+
}
|
|
20
|
+
type PermissionsMode = 'and' | 'or' | 'not';
|
|
21
|
+
type LocalPermissionsData<T extends string = any> = Record<string, T[] | '*'>;
|
|
22
|
+
declare const PERMISSIONS_CONFIG: InjectionToken<PermissionsConfig>;
|
|
23
|
+
|
|
24
|
+
declare class LocalPermissionsHandler extends PermissionsHandler {
|
|
25
|
+
protected auth: Auth;
|
|
26
|
+
protected localPermissions: LocalPermissionsData;
|
|
27
|
+
constructor(auth: Auth, localPermissions: LocalPermissionsData);
|
|
28
|
+
get(): rxjs.Observable<any[]>;
|
|
29
|
+
protected getPermissionsForRole(role: string): any[];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
declare class BbPermission implements OnInit, OnDestroy {
|
|
33
|
+
private readonly _permissions;
|
|
34
|
+
private readonly _templateRef;
|
|
35
|
+
private readonly _viewContainerRef;
|
|
36
|
+
private _elseTemplateRef;
|
|
37
|
+
private _thenViewRef;
|
|
38
|
+
private _elseViewRef;
|
|
39
|
+
private _valid;
|
|
40
|
+
private _permission$;
|
|
41
|
+
private _mode$;
|
|
42
|
+
set bbPermission(value: string | string[]);
|
|
43
|
+
set bbPermissionElse(templateRef: TemplateRef<any>);
|
|
44
|
+
set bbPermissionMode(mode: PermissionsMode);
|
|
45
|
+
private _subscription;
|
|
46
|
+
ngOnInit(): void;
|
|
47
|
+
ngOnDestroy(): void;
|
|
48
|
+
private updateView;
|
|
49
|
+
private assertTemplate;
|
|
50
|
+
static ngAcceptInputType_bbPermission: string | string[];
|
|
51
|
+
static ngAcceptInputType_bbPermissionElse: TemplateRef<any>;
|
|
52
|
+
static ngAcceptInputType_bbPermissionMode: PermissionsMode;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BbPermission, never>;
|
|
54
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BbPermission, "ng-template[bbPermission]", never, { "bbPermission": { "alias": "bbPermission"; "required": false; }; "bbPermissionElse": { "alias": "bbPermissionElse"; "required": false; }; "bbPermissionMode": { "alias": "bbPermissionMode"; "required": false; }; }, {}, never, never, true, never>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
declare const bbPermissionGuard: (value: string | string[], options?: PermissionsOptions) => CanActivateFn;
|
|
58
|
+
|
|
59
|
+
declare class Permissions implements OnDestroy {
|
|
60
|
+
private _handler;
|
|
61
|
+
private _activePermissions$;
|
|
62
|
+
private _subscription;
|
|
63
|
+
constructor(_handler: PermissionsHandler);
|
|
64
|
+
ngOnDestroy(): void;
|
|
65
|
+
all(): rxjs.Observable<string[]>;
|
|
66
|
+
allSync(): string[];
|
|
67
|
+
has(value: string | string[], options?: PermissionsOptions): rxjs.Observable<boolean>;
|
|
68
|
+
hasSync(value: string | string[], options?: PermissionsOptions): boolean;
|
|
69
|
+
private hasPermission;
|
|
70
|
+
private verifyModeAnd;
|
|
71
|
+
private verifyModeNot;
|
|
72
|
+
private verifyModeOr;
|
|
73
|
+
private getRequiredPermissions;
|
|
74
|
+
private trackPermissions;
|
|
75
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Permissions, never>;
|
|
76
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<Permissions>;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
declare function providePermissionsConfig(config?: PermissionsConfig): EnvironmentProviders;
|
|
80
|
+
|
|
81
|
+
declare class PermissionsModule {
|
|
82
|
+
static forRoot(config?: PermissionsConfig): ModuleWithProviders<PermissionsModule>;
|
|
83
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PermissionsModule, never>;
|
|
84
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PermissionsModule, never, [typeof BbPermission], [typeof BbPermission]>;
|
|
85
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PermissionsModule>;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export { BbPermission, LocalPermissionsHandler, PERMISSIONS_CONFIG, Permissions, PermissionsConfig, PermissionsHandler, PermissionsModule, bbPermissionGuard, providePermissionsConfig };
|
|
89
|
+
export type { LocalPermissionsData, PermissionsMode, PermissionsOptions };
|
package/recaptcha/index.d.ts
CHANGED
|
@@ -1,5 +1,92 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, AfterViewInit, OnDestroy, EventEmitter, EnvironmentProviders, ModuleWithProviders } from '@angular/core';
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
4
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
+
|
|
6
|
+
declare const RECAPTCHA_CONFIG: InjectionToken<RecaptchaConfig>;
|
|
7
|
+
interface RecaptchaConfig {
|
|
8
|
+
baseUrl?: string;
|
|
9
|
+
nonce?: string;
|
|
10
|
+
siteKey?: string;
|
|
11
|
+
theme?: ReCaptchaV2.Theme;
|
|
12
|
+
type?: ReCaptchaV2.Type;
|
|
13
|
+
size?: ReCaptchaV2.Size;
|
|
14
|
+
badge?: ReCaptchaV2.Badge;
|
|
15
|
+
}
|
|
16
|
+
type NeverUndefined<T> = T extends undefined ? never : T;
|
|
17
|
+
type RecaptchaErrorParameters = Parameters<NeverUndefined<ReCaptchaV2.Parameters['error-callback']>>;
|
|
18
|
+
|
|
19
|
+
declare class RecaptchaLoader {
|
|
20
|
+
private readonly _platform;
|
|
21
|
+
private readonly _rendererFactory;
|
|
22
|
+
private readonly _config;
|
|
23
|
+
private readonly _localize;
|
|
24
|
+
private readonly _localeId;
|
|
25
|
+
private readonly _document;
|
|
26
|
+
private readonly _renderer;
|
|
27
|
+
readonly ready$: BehaviorSubject<ReCaptchaV2.ReCaptcha | null> | null;
|
|
28
|
+
private readonly _windowLoadFn;
|
|
29
|
+
constructor();
|
|
30
|
+
private createScript;
|
|
31
|
+
private getUrl;
|
|
32
|
+
private getQueryParams;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RecaptchaLoader, never>;
|
|
34
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RecaptchaLoader>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare class RecaptchaComponent implements ControlValueAccessor, AfterViewInit, OnDestroy {
|
|
38
|
+
private readonly _zone;
|
|
39
|
+
private readonly _platform;
|
|
40
|
+
private readonly _renderer;
|
|
41
|
+
private readonly _elementRef;
|
|
42
|
+
private readonly _loader;
|
|
43
|
+
private readonly _localizeId;
|
|
44
|
+
private readonly _config?;
|
|
45
|
+
id: string;
|
|
46
|
+
siteKey: string | null;
|
|
47
|
+
tabIndex: number | null;
|
|
48
|
+
type: ReCaptchaV2.Type | null;
|
|
49
|
+
size: ReCaptchaV2.Size | null;
|
|
50
|
+
theme: ReCaptchaV2.Theme | null;
|
|
51
|
+
badge: ReCaptchaV2.Badge | null;
|
|
52
|
+
errorMode: 'handled' | 'default';
|
|
53
|
+
grouped: boolean;
|
|
54
|
+
resolved: EventEmitter<string>;
|
|
55
|
+
error: EventEmitter<[]>;
|
|
56
|
+
private _widgetId;
|
|
57
|
+
private _grecaptcha;
|
|
58
|
+
private _executeRequested;
|
|
59
|
+
private _onChange;
|
|
60
|
+
private _onTouched;
|
|
61
|
+
private _subscriptions;
|
|
62
|
+
constructor();
|
|
63
|
+
ngAfterViewInit(): void;
|
|
64
|
+
ngOnDestroy(): void;
|
|
65
|
+
execute(): void;
|
|
66
|
+
reset(): void;
|
|
67
|
+
writeValue(value: string): void;
|
|
68
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
69
|
+
registerOnTouched(fn: () => void): void;
|
|
70
|
+
onResolve(event: string): void;
|
|
71
|
+
private renderCaptchaElement;
|
|
72
|
+
private resetCaptchaElement;
|
|
73
|
+
private initializeProperties;
|
|
74
|
+
private handleOnLoad;
|
|
75
|
+
private handleLocaleChanges;
|
|
76
|
+
private onLocaleChanged;
|
|
77
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RecaptchaComponent, never>;
|
|
78
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RecaptchaComponent, "bb-recaptcha", ["bbRecaptcha"], { "id": { "alias": "id"; "required": false; }; "siteKey": { "alias": "siteKey"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "type": { "alias": "type"; "required": false; }; "size": { "alias": "size"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "badge": { "alias": "badge"; "required": false; }; "errorMode": { "alias": "errorMode"; "required": false; }; "grouped": { "alias": "grouped"; "required": false; }; }, { "resolved": "resolved"; "error": "error"; }, never, never, true, never>;
|
|
79
|
+
static ngAcceptInputType_grouped: unknown;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
declare function provideRecaptchaConfig(config: RecaptchaConfig): EnvironmentProviders;
|
|
83
|
+
|
|
84
|
+
declare class RecaptchaModule {
|
|
85
|
+
static forRoot(config?: RecaptchaConfig): ModuleWithProviders<RecaptchaModule>;
|
|
86
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RecaptchaModule, never>;
|
|
87
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RecaptchaModule, never, [typeof RecaptchaComponent], [typeof RecaptchaComponent]>;
|
|
88
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<RecaptchaModule>;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export { RECAPTCHA_CONFIG, RecaptchaComponent, RecaptchaLoader, RecaptchaModule, provideRecaptchaConfig };
|
|
92
|
+
export type { NeverUndefined, RecaptchaConfig, RecaptchaErrorParameters };
|
package/rxjs/index.d.ts
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as rxjs from 'rxjs';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { AbstractControl } from '@angular/forms';
|
|
4
|
+
import { ActivatedRoute } from '@angular/router';
|
|
5
|
+
|
|
6
|
+
type ExtractObservableType<A> = A extends Observable<infer B> ? B : never;
|
|
7
|
+
declare function combineLatestMap<TIn extends {
|
|
8
|
+
[key: string]: Observable<any>;
|
|
9
|
+
}, TOut extends {
|
|
10
|
+
[K in keyof TIn]: ExtractObservableType<TIn[K]>;
|
|
11
|
+
}>(observables: TIn): Observable<TOut>;
|
|
12
|
+
|
|
13
|
+
declare function filterNil<T>(): rxjs.MonoTypeOperatorFunction<T>;
|
|
14
|
+
|
|
15
|
+
declare function getControlValue<T>(control: AbstractControl): Observable<T>;
|
|
16
|
+
|
|
17
|
+
declare function getRouteParam<T>(route: ActivatedRoute, param: string): Observable<T | null>;
|
|
18
|
+
|
|
19
|
+
export { combineLatestMap, filterNil, getControlValue, getRouteParam };
|
package/select/index.d.ts
CHANGED
|
@@ -1,5 +1,129 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { TemplateRef, OnInit, OnDestroy, EventEmitter, EnvironmentProviders } from '@angular/core';
|
|
3
|
+
import { NgSelectComponent } from '@ng-select/ng-select';
|
|
4
|
+
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
5
|
+
import { Observable, Subject } from 'rxjs';
|
|
6
|
+
|
|
7
|
+
declare class BbSelectOptionGroup {
|
|
8
|
+
template: TemplateRef<any>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BbSelectOptionGroup, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BbSelectOptionGroup, "ng-template[bbSelectOptionGroup]", never, {}, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare class BbSelect<T> implements ControlValueAccessor, OnInit, OnDestroy {
|
|
14
|
+
private readonly _elementRef;
|
|
15
|
+
private readonly _window?;
|
|
16
|
+
private readonly _document?;
|
|
17
|
+
readonly labelId: string;
|
|
18
|
+
readonly control: FormControl<any>;
|
|
19
|
+
optionTemplate: TemplateRef<any>;
|
|
20
|
+
optionGroupTemplate: TemplateRef<any>;
|
|
21
|
+
labelTemplate: TemplateRef<any>;
|
|
22
|
+
multiLabelTemplate: TemplateRef<any>;
|
|
23
|
+
selectComponent: NgSelectComponent;
|
|
24
|
+
label: string | TemplateRef<any> | null;
|
|
25
|
+
hint: string | TemplateRef<any> | null;
|
|
26
|
+
data: Observable<T[]> | null;
|
|
27
|
+
required: boolean;
|
|
28
|
+
readonly: boolean;
|
|
29
|
+
grouped: boolean;
|
|
30
|
+
hideErrors: boolean;
|
|
31
|
+
loading: boolean;
|
|
32
|
+
multiple: boolean;
|
|
33
|
+
clearable: boolean;
|
|
34
|
+
searchable: boolean;
|
|
35
|
+
virtualScroll: boolean;
|
|
36
|
+
closeOnSelect: boolean;
|
|
37
|
+
selectableGroup: boolean;
|
|
38
|
+
selectableGroupAsModel: boolean;
|
|
39
|
+
hideArrow: boolean;
|
|
40
|
+
selectOnTab: boolean;
|
|
41
|
+
hideSelected: boolean;
|
|
42
|
+
maxSelectedItems: number | null;
|
|
43
|
+
disablePanelScrolling: boolean;
|
|
44
|
+
bindLabel: string | null;
|
|
45
|
+
bindValue: string | null;
|
|
46
|
+
placeholder: string | null;
|
|
47
|
+
typeahead: Subject<string> | null;
|
|
48
|
+
trackByFn: any | null;
|
|
49
|
+
minTermLength: number;
|
|
50
|
+
groupBy: string | null;
|
|
51
|
+
isOpen: boolean;
|
|
52
|
+
clearSearchOnAdd: boolean;
|
|
53
|
+
addTag: boolean | ((term: string) => any | Promise<any>);
|
|
54
|
+
appendTo: string | null;
|
|
55
|
+
set disabled(value: boolean);
|
|
56
|
+
get disabled(): boolean;
|
|
57
|
+
get value(): any | null;
|
|
58
|
+
valueChange: EventEmitter<any>;
|
|
59
|
+
onBlur: EventEmitter<FocusEvent>;
|
|
60
|
+
onChange: EventEmitter<any>;
|
|
61
|
+
set value(value: any | null);
|
|
62
|
+
error: boolean;
|
|
63
|
+
private _disabled;
|
|
64
|
+
onTouchedCallback: () => void;
|
|
65
|
+
onChangeCallback: (_: T | null) => void;
|
|
66
|
+
private _subscription;
|
|
67
|
+
ngOnInit(): void;
|
|
68
|
+
ngOnDestroy(): void;
|
|
69
|
+
writeValue(value: T | null): void;
|
|
70
|
+
registerOnChange(method: (_: T | null) => void): void;
|
|
71
|
+
registerOnTouched(method: () => void): void;
|
|
72
|
+
setDisabledState(isDisabled: boolean): void;
|
|
73
|
+
onErrorChange(error: {
|
|
74
|
+
token: string;
|
|
75
|
+
data?: any;
|
|
76
|
+
} | null): void;
|
|
77
|
+
private handleValueChanges;
|
|
78
|
+
private handleScrolling;
|
|
79
|
+
private getScrollableContainer;
|
|
80
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BbSelect<any>, never>;
|
|
81
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BbSelect<any>, "bb-select", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "data": { "alias": "data"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "grouped": { "alias": "grouped"; "required": false; }; "hideErrors": { "alias": "hideErrors"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; }; "selectableGroup": { "alias": "selectableGroup"; "required": false; }; "selectableGroupAsModel": { "alias": "selectableGroupAsModel"; "required": false; }; "hideArrow": { "alias": "hideArrow"; "required": false; }; "selectOnTab": { "alias": "selectOnTab"; "required": false; }; "hideSelected": { "alias": "hideSelected"; "required": false; }; "maxSelectedItems": { "alias": "maxSelectedItems"; "required": false; }; "disablePanelScrolling": { "alias": "disablePanelScrolling"; "required": false; }; "bindLabel": { "alias": "bindLabel"; "required": false; }; "bindValue": { "alias": "bindValue"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "typeahead": { "alias": "typeahead"; "required": false; }; "trackByFn": { "alias": "trackByFn"; "required": false; }; "minTermLength": { "alias": "minTermLength"; "required": false; }; "groupBy": { "alias": "groupBy"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "clearSearchOnAdd": { "alias": "clearSearchOnAdd"; "required": false; }; "addTag": { "alias": "addTag"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "onBlur": "onBlur"; "onChange": "onChange"; }, ["optionTemplate", "optionGroupTemplate", "labelTemplate", "multiLabelTemplate"], never, true, never>;
|
|
82
|
+
static ngAcceptInputType_data: unknown;
|
|
83
|
+
static ngAcceptInputType_required: unknown;
|
|
84
|
+
static ngAcceptInputType_readonly: unknown;
|
|
85
|
+
static ngAcceptInputType_grouped: unknown;
|
|
86
|
+
static ngAcceptInputType_hideErrors: unknown;
|
|
87
|
+
static ngAcceptInputType_loading: unknown;
|
|
88
|
+
static ngAcceptInputType_multiple: unknown;
|
|
89
|
+
static ngAcceptInputType_clearable: unknown;
|
|
90
|
+
static ngAcceptInputType_searchable: unknown;
|
|
91
|
+
static ngAcceptInputType_virtualScroll: unknown;
|
|
92
|
+
static ngAcceptInputType_closeOnSelect: unknown;
|
|
93
|
+
static ngAcceptInputType_selectableGroup: unknown;
|
|
94
|
+
static ngAcceptInputType_selectableGroupAsModel: unknown;
|
|
95
|
+
static ngAcceptInputType_hideArrow: unknown;
|
|
96
|
+
static ngAcceptInputType_selectOnTab: unknown;
|
|
97
|
+
static ngAcceptInputType_hideSelected: unknown;
|
|
98
|
+
static ngAcceptInputType_maxSelectedItems: unknown;
|
|
99
|
+
static ngAcceptInputType_disablePanelScrolling: unknown;
|
|
100
|
+
static ngAcceptInputType_disabled: unknown;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
declare class BbSelectOption {
|
|
104
|
+
template: TemplateRef<any>;
|
|
105
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BbSelectOption, never>;
|
|
106
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BbSelectOption, "ng-template[bbSelectOption]", never, {}, {}, never, never, true, never>;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
declare class BbSelectLabel {
|
|
110
|
+
template: TemplateRef<any>;
|
|
111
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BbSelectLabel, never>;
|
|
112
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BbSelectLabel, "ng-template[bbSelectLabel]", never, {}, {}, never, never, true, never>;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
declare class BbSelectMultiLabel {
|
|
116
|
+
template: TemplateRef<any>;
|
|
117
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BbSelectMultiLabel, never>;
|
|
118
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BbSelectMultiLabel, "ng-template[bbSelectMultiLabel]", never, {}, {}, never, never, true, never>;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
declare function provideSelectConfig(): EnvironmentProviders;
|
|
122
|
+
|
|
123
|
+
declare class SelectModule {
|
|
124
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectModule, never>;
|
|
125
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SelectModule, never, [typeof BbSelect, typeof BbSelectLabel, typeof BbSelectOption, typeof BbSelectOptionGroup, typeof BbSelectMultiLabel], [typeof BbSelect, typeof BbSelectLabel, typeof BbSelectOption, typeof BbSelectOptionGroup, typeof BbSelectMultiLabel]>;
|
|
126
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SelectModule>;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export { BbSelect, BbSelectLabel, BbSelectMultiLabel, BbSelectOption, BbSelectOptionGroup, SelectModule, provideSelectConfig };
|
package/storage/index.d.ts
CHANGED
|
@@ -1,5 +1,109 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
|
|
3
|
+
interface StorageAttributes {
|
|
4
|
+
expires?: Date | number;
|
|
5
|
+
}
|
|
6
|
+
interface CookieStorageAttributes extends StorageAttributes {
|
|
7
|
+
domain?: string;
|
|
8
|
+
path?: string;
|
|
9
|
+
secure?: boolean;
|
|
10
|
+
sameSite?: 'None' | 'Lax' | 'Strict';
|
|
11
|
+
}
|
|
12
|
+
interface PolyfillStorageAttributes extends StorageAttributes {
|
|
13
|
+
}
|
|
14
|
+
interface MemoryStorageAttributes extends StorageAttributes {
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface StorageStrategy {
|
|
18
|
+
get<T = any>(token: string): T | undefined;
|
|
19
|
+
set<T = any>(token: string, value: T): void;
|
|
20
|
+
set<T = any>(token: string, value: T, attributes?: StorageAttributes): void;
|
|
21
|
+
remove(token: string): void;
|
|
22
|
+
remove(token: string, attributes?: StorageAttributes): void;
|
|
23
|
+
clear(): void;
|
|
24
|
+
clear(attributes?: StorageAttributes): void;
|
|
25
|
+
isSupported(): boolean;
|
|
26
|
+
}
|
|
27
|
+
declare enum StorageOption {
|
|
28
|
+
Local = "local",
|
|
29
|
+
Cookie = "cookie",
|
|
30
|
+
Session = "session",
|
|
31
|
+
Memory = "memory"
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface MemoryStorageData {
|
|
35
|
+
[token: string]: MemoryStorageItem;
|
|
36
|
+
}
|
|
37
|
+
interface MemoryStorageItem {
|
|
38
|
+
value: any;
|
|
39
|
+
expires?: Date;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare class PolyfillStorage implements StorageStrategy {
|
|
43
|
+
private _storage?;
|
|
44
|
+
private readonly _isSupported;
|
|
45
|
+
constructor(_storage?: Storage);
|
|
46
|
+
get<T = any>(token: string): T;
|
|
47
|
+
set<T = any>(token: string, value: T, attributes?: PolyfillStorageAttributes): void;
|
|
48
|
+
remove(token: string): void;
|
|
49
|
+
clear(): void;
|
|
50
|
+
isSupported(): boolean;
|
|
51
|
+
private decode;
|
|
52
|
+
private encode;
|
|
53
|
+
private testIfSupported;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
declare class CookieStorage implements StorageStrategy {
|
|
57
|
+
private _isBrowser;
|
|
58
|
+
private _cookieString?;
|
|
59
|
+
private readonly _isSupported;
|
|
60
|
+
constructor(_isBrowser: boolean, _cookieString?: string);
|
|
61
|
+
get<T = any>(token: string): T;
|
|
62
|
+
set<T = any>(token: string, value: T, attributes?: CookieStorageAttributes): void;
|
|
63
|
+
remove(token: string, attributes?: CookieStorageAttributes): void;
|
|
64
|
+
clear(attributes?: CookieStorageAttributes): void;
|
|
65
|
+
isSupported(): boolean;
|
|
66
|
+
private all;
|
|
67
|
+
private encode;
|
|
68
|
+
private decode;
|
|
69
|
+
private jsonParse;
|
|
70
|
+
private stringifyCookie;
|
|
71
|
+
private stringifyAttribute;
|
|
72
|
+
private testIfSupported;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
declare class MemoryStorage implements StorageStrategy {
|
|
76
|
+
private _storage;
|
|
77
|
+
get<T = any>(token: string): T;
|
|
78
|
+
set<T = any>(token: string, value: T, attributes?: MemoryStorageAttributes): void;
|
|
79
|
+
remove(token: string): void;
|
|
80
|
+
clear(): void;
|
|
81
|
+
isSupported(): boolean;
|
|
82
|
+
private encode;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
declare class Storage$1 implements StorageStrategy {
|
|
86
|
+
private readonly _platform;
|
|
87
|
+
private readonly _cookieString?;
|
|
88
|
+
private readonly _strategies;
|
|
89
|
+
private readonly _current;
|
|
90
|
+
constructor();
|
|
91
|
+
select(option: StorageOption | StorageOption[]): StorageStrategy;
|
|
92
|
+
get local(): StorageStrategy;
|
|
93
|
+
get cookie(): StorageStrategy;
|
|
94
|
+
get session(): StorageStrategy;
|
|
95
|
+
get memory(): StorageStrategy;
|
|
96
|
+
get<T = any>(token: string): T;
|
|
97
|
+
set<T = any>(token: string, value: T, attributes?: StorageAttributes): void;
|
|
98
|
+
remove(token: string, attributes?: StorageAttributes): void;
|
|
99
|
+
clear(attributes?: StorageAttributes): void;
|
|
100
|
+
isSupported(): boolean;
|
|
101
|
+
private findBestStorageStrategy;
|
|
102
|
+
private getLocalStorage;
|
|
103
|
+
private getSessionStorage;
|
|
104
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Storage$1, never>;
|
|
105
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<Storage$1>;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export { CookieStorage, MemoryStorage, PolyfillStorage, Storage$1 as Storage, StorageOption };
|
|
109
|
+
export type { CookieStorageAttributes, MemoryStorageAttributes, MemoryStorageData, MemoryStorageItem, PolyfillStorageAttributes, StorageAttributes, StorageStrategy };
|