@bravobit/bb-foundation 0.50.7 → 0.50.9
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/dialog/lib/dialog-modal/dialog-modal.component.d.ts +3 -1
- package/fesm2022/bravobit-bb-foundation-collections.mjs +2 -2
- package/fesm2022/bravobit-bb-foundation-collections.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-dialog.mjs +12 -7
- package/fesm2022/bravobit-bb-foundation-dialog.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-elements.mjs +16 -16
- package/fesm2022/bravobit-bb-foundation-elements.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-notifications.mjs +8 -13
- package/fesm2022/bravobit-bb-foundation-notifications.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-permissions.mjs +7 -11
- package/fesm2022/bravobit-bb-foundation-permissions.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-recaptcha.mjs +12 -28
- package/fesm2022/bravobit-bb-foundation-recaptcha.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-select.mjs +19 -27
- package/fesm2022/bravobit-bb-foundation-select.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-storage.mjs +8 -14
- package/fesm2022/bravobit-bb-foundation-storage.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-table.mjs +4 -4
- package/fesm2022/bravobit-bb-foundation-table.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-utils.mjs +22 -36
- package/fesm2022/bravobit-bb-foundation-utils.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation.mjs +31 -69
- package/fesm2022/bravobit-bb-foundation.mjs.map +1 -1
- package/lib/core/services/exif.service.d.ts +2 -5
- package/lib/core/services/image-converter.service.d.ts +3 -7
- package/lib/core/services/languages.service.d.ts +3 -3
- package/lib/core/services/network.service.d.ts +5 -6
- package/lib/core/services/patch.service.d.ts +4 -6
- package/localize/lib/transforms/interpolate.transform.d.ts +1 -1
- package/localize/lib/transforms/reference.transform.d.ts +1 -1
- package/notifications/lib/notifications-item/notifications-item.component.d.ts +4 -6
- package/package.json +21 -21
- package/permissions/lib/directives/permission.directive.d.ts +4 -6
- package/recaptcha/lib/recaptcha/recaptcha.component.d.ts +10 -14
- package/select/lib/select-label.directive.d.ts +0 -1
- package/select/lib/select-multi-label.directive.d.ts +0 -1
- package/select/lib/select-option-group.directive.d.ts +0 -1
- package/select/lib/select-option.directive.d.ts +0 -1
- package/storage/lib/storage.service.d.ts +4 -5
- package/styles/theme.scss +29 -14
- package/utils/lib/directives/autosize.directive.d.ts +3 -4
- package/utils/lib/directives/focus-trap.directive.d.ts +2 -5
- package/utils/lib/directives/focus.directive.d.ts +4 -6
- package/utils/lib/directives/template.directive.d.ts +3 -4
|
@@ -2,7 +2,6 @@ import { TemplateRef } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class BbSelectMultiLabel {
|
|
4
4
|
template: TemplateRef<any>;
|
|
5
|
-
constructor(template: TemplateRef<any>);
|
|
6
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<BbSelectMultiLabel, never>;
|
|
7
6
|
static ɵdir: i0.ɵɵDirectiveDeclaration<BbSelectMultiLabel, "ng-template[bbSelectMultiLabel]", never, {}, {}, never, never, true, never>;
|
|
8
7
|
}
|
|
@@ -2,7 +2,6 @@ import { TemplateRef } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class BbSelectOptionGroup {
|
|
4
4
|
template: TemplateRef<any>;
|
|
5
|
-
constructor(template: TemplateRef<any>);
|
|
6
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<BbSelectOptionGroup, never>;
|
|
7
6
|
static ɵdir: i0.ɵɵDirectiveDeclaration<BbSelectOptionGroup, "ng-template[bbSelectOptionGroup]", never, {}, {}, never, never, true, never>;
|
|
8
7
|
}
|
|
@@ -2,7 +2,6 @@ import { TemplateRef } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class BbSelectOption {
|
|
4
4
|
template: TemplateRef<any>;
|
|
5
|
-
constructor(template: TemplateRef<any>);
|
|
6
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<BbSelectOption, never>;
|
|
7
6
|
static ɵdir: i0.ɵɵDirectiveDeclaration<BbSelectOption, "ng-template[bbSelectOption]", never, {}, {}, never, never, true, never>;
|
|
8
7
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { StorageOption, StorageStrategy } from './interfaces/strategy.interface';
|
|
2
2
|
import { StorageAttributes } from './interfaces/attributes.interface';
|
|
3
|
-
import { Platform } from '@angular/cdk/platform';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class Storage implements StorageStrategy {
|
|
6
|
-
private _platform;
|
|
7
|
-
private _cookieString?;
|
|
5
|
+
private readonly _platform;
|
|
6
|
+
private readonly _cookieString?;
|
|
8
7
|
private readonly _strategies;
|
|
9
8
|
private readonly _current;
|
|
10
|
-
constructor(
|
|
9
|
+
constructor();
|
|
11
10
|
select(option: StorageOption | StorageOption[]): StorageStrategy;
|
|
12
11
|
get local(): StorageStrategy;
|
|
13
12
|
get cookie(): StorageStrategy;
|
|
@@ -21,6 +20,6 @@ export declare class Storage implements StorageStrategy {
|
|
|
21
20
|
private findBestStorageStrategy;
|
|
22
21
|
private getLocalStorage;
|
|
23
22
|
private getSessionStorage;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<Storage,
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Storage, never>;
|
|
25
24
|
static ɵprov: i0.ɵɵInjectableDeclaration<Storage>;
|
|
26
25
|
}
|
package/styles/theme.scss
CHANGED
|
@@ -51,53 +51,68 @@
|
|
|
51
51
|
--bb-form-label-font-size: 0.875rem;
|
|
52
52
|
--bb-form-label-required-color: hsla(2, 58%, 48%, 1);
|
|
53
53
|
|
|
54
|
+
// Controls.
|
|
55
|
+
--bb-control-border-color: hsla(213, 8%, 74%, 1);
|
|
56
|
+
--bb-control-focus-border-color: hsla(213, 8%, 50%, 1);
|
|
57
|
+
--bb-control-error-color: hsl(0, 80%, 25%);
|
|
58
|
+
--bb-control-error-placeholder-color: hsl(0, 80%, 70%);
|
|
59
|
+
--bb-control-error-border-color: hsl(0, 80%, 30%);
|
|
60
|
+
--bb-control-error-background-color: hsl(0, 80%, 90%);
|
|
61
|
+
--bb-control-error-box-shadow: 0 0.375rem 0.375rem -0.375rem hsla(0, 0%, 0%, 0.1), 0 0 0 0.1875rem hsl(0, 80%, 90%);
|
|
62
|
+
|
|
54
63
|
// Checkbox.
|
|
55
|
-
--bb-checkbox-border-
|
|
64
|
+
--bb-checkbox-border-radius: 0.25rem;
|
|
65
|
+
--bb-checkbox-border-color: var(--bb-control-border-color);
|
|
66
|
+
--bb-checkbox-active-border-color: var(--bb-primary-color-550);
|
|
56
67
|
--bb-checkbox-background-color: var(--bb-primary-color-550);
|
|
57
68
|
--bb-checkbox-outline-color: var(--bb-primary-color-100);
|
|
58
69
|
|
|
59
70
|
// Radio button.
|
|
60
|
-
--bb-radio-border-color: var(--bb-
|
|
71
|
+
--bb-radio-border-color: var(--bb-control-border-color);
|
|
72
|
+
--bb-radio-active-border-color: var(--bb-primary-color-550);
|
|
61
73
|
--bb-radio-indicator-color: var(--bb-primary-color-550);
|
|
62
74
|
--bb-radio-outline-color: var(--bb-primary-color-100);
|
|
63
75
|
|
|
64
76
|
// Form control
|
|
65
|
-
--bb-form-control-border-color: hsla(213, 8%, 74%, 1);
|
|
66
|
-
--bb-form-control-focus-border-color: hsla(213, 8%, 50%, 1);
|
|
67
77
|
--bb-form-control-border-radius: 0.5rem;
|
|
68
78
|
--bb-form-control-background-color: white;
|
|
79
|
+
--bb-form-control-border-color: var(--bb-control-border-color);
|
|
80
|
+
--bb-form-control-focus-border-color: var(--bb-control-focus-border-color);
|
|
69
81
|
--bb-form-control-box-shadow: 0 0.375rem 0.375rem -0.375rem hsla(0, 0%, 0%, 0.1);
|
|
70
82
|
--bb-form-control-focus-box-shadow: 0 0.375rem 0.375rem -0.375rem hsla(0, 0%, 0%, 0.1), 0 0 0 0.1875rem var(--bb-primary-color-100);
|
|
71
83
|
|
|
72
84
|
// Select
|
|
73
|
-
--bb-select-border-radius:
|
|
74
|
-
--bb-select-background-color:
|
|
75
|
-
--bb-select-border-color:
|
|
76
|
-
--bb-select-
|
|
77
|
-
--bb-select-
|
|
85
|
+
--bb-select-border-radius: var(--bb-form-control-border-radius);
|
|
86
|
+
--bb-select-background-color: var(--bb-form-control-background-color);
|
|
87
|
+
--bb-select-border-color: var(--bb-control-border-color);
|
|
88
|
+
--bb-select-focus-border-color: var(--bb-control-focus-border-color);
|
|
89
|
+
--bb-select-box-shadow: var(--bb-form-control-box-shadow);
|
|
90
|
+
--bb-select-focus-box-shadow: var(--bb-form-control-focus-box-shadow);
|
|
78
91
|
|
|
79
92
|
// File picker.
|
|
80
93
|
--bb-file-picker-color: var(--bb-primary-color-550);
|
|
81
|
-
--bb-file-picker-border-radius:
|
|
94
|
+
--bb-file-picker-border-radius: var(--bb-form-control-border-radius);
|
|
82
95
|
--bb-file-picker-box-shadow: 0 0 0 0.1875rem var(--bb-primary-color-100);
|
|
83
|
-
--bb-file-picker-border-color:
|
|
84
|
-
--bb-file-picker-background-color:
|
|
96
|
+
--bb-file-picker-border-color: var(--bb-control-border-color);
|
|
97
|
+
--bb-file-picker-background-color: var(--bb-form-control-background-color);
|
|
85
98
|
|
|
86
99
|
// Multi file control.
|
|
87
100
|
--bb-multi-file-control-color: var(--bb-primary-color-550);
|
|
88
101
|
--bb-multi-file-control-box-shadow: 0 0 0 0.1875rem var(--bb-primary-color-100);
|
|
102
|
+
--bb-multi-file-control-border-color: var(--bb-control-border-color);
|
|
103
|
+
--bb-multi-file-control-focus-border-color: var(--bb-control-focus-border-color);
|
|
89
104
|
|
|
90
105
|
// Collections pager.
|
|
91
106
|
--bb-collections-pager-color: var(--bb-primary-color-550);
|
|
92
|
-
--bb-collections-pager-border-color: var(--bb-primary-color-700);
|
|
93
107
|
--bb-collections-pager-outline-color: var(--bb-primary-color-550);
|
|
108
|
+
--bb-collections-pager-border-color: var(--bb-control-border-color);
|
|
94
109
|
--bb-collections-pager-hover-background-color: var(--bb-primary-color-50);
|
|
95
110
|
--bb-collections-pager-focus-box-shadow: 0 0 0 0.1875rem var(--bb-primary-color-100);
|
|
96
111
|
--bb-collections-pager-active-background-color: var(--bb-primary-color-100);
|
|
97
112
|
|
|
98
113
|
// Collections table label.
|
|
99
114
|
--bb-collections-table-label-color: var(--bb-primary-color-550);
|
|
100
|
-
--bb-collections-table-loader-color: var(--bb-primary-color-500);
|
|
115
|
+
--bb-collections-table-loader-color: red; //var(--bb-primary-color-500);
|
|
101
116
|
|
|
102
117
|
// Spinner.
|
|
103
118
|
--bb-spinner-color: var(--bb-primary-color-500);
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { AfterViewInit
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class BbAutosize implements AfterViewInit {
|
|
4
|
-
private _renderer;
|
|
5
|
-
private _elementRef;
|
|
4
|
+
private readonly _renderer;
|
|
5
|
+
private readonly _elementRef;
|
|
6
6
|
minHeight: string | null;
|
|
7
7
|
maxHeight: string | null;
|
|
8
8
|
rows: number;
|
|
9
|
-
constructor(_renderer: Renderer2, _elementRef: ElementRef);
|
|
10
9
|
get element(): HTMLTextAreaElement;
|
|
11
10
|
ngAfterViewInit(): void;
|
|
12
11
|
onWindowResize(): void;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { Platform } from '@angular/cdk/platform';
|
|
3
1
|
import * as i0 from "@angular/core";
|
|
4
2
|
export declare class BbFocusTrap {
|
|
5
|
-
private _platform;
|
|
6
|
-
private _elementRef;
|
|
3
|
+
private readonly _platform;
|
|
4
|
+
private readonly _elementRef;
|
|
7
5
|
private readonly _focusableElements;
|
|
8
|
-
constructor(_platform: Platform, _elementRef: ElementRef);
|
|
9
6
|
onKeydown(event: KeyboardEvent): void;
|
|
10
7
|
trapFocus(event: KeyboardEvent): void;
|
|
11
8
|
private get element();
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { AfterViewInit
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
|
2
2
|
import { FocusMode } from '@bravobit/bb-foundation';
|
|
3
|
-
import { Platform } from '@angular/cdk/platform';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class BbFocus implements AfterViewInit {
|
|
6
|
-
private _zone;
|
|
7
|
-
private _platform;
|
|
8
|
-
private _elementRef;
|
|
5
|
+
private readonly _zone;
|
|
6
|
+
private readonly _platform;
|
|
7
|
+
private readonly _elementRef;
|
|
9
8
|
private readonly _globalFocusMode;
|
|
10
9
|
bbFocusMode: FocusMode | null;
|
|
11
|
-
constructor(_zone: NgZone, _platform: Platform, _elementRef: ElementRef);
|
|
12
10
|
private get nativeElement();
|
|
13
11
|
ngAfterViewInit(): void;
|
|
14
12
|
private isMobile;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { TemplateRef
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class BbTemplate {
|
|
4
|
-
private _templateRef;
|
|
5
|
-
private _viewContainerRef;
|
|
4
|
+
private readonly _templateRef;
|
|
5
|
+
private readonly _viewContainerRef;
|
|
6
6
|
set bbTemplate(content: string | TemplateRef<any>);
|
|
7
|
-
constructor(_templateRef: TemplateRef<any>, _viewContainerRef: ViewContainerRef);
|
|
8
7
|
static ngAcceptInputType_bbTemplate: string | TemplateRef<any>;
|
|
9
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<BbTemplate, never>;
|
|
10
9
|
static ɵdir: i0.ɵɵDirectiveDeclaration<BbTemplate, "[bbTemplate]", never, { "bbTemplate": { "alias": "bbTemplate"; "required": false; }; }, {}, never, never, true, never>;
|