@bravobit/bb-foundation 0.25.2 → 0.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/collections/lib/interfaces/collection.interface.d.ts +1 -1
- package/controls/lib/control-error/control-error.interface.d.ts +3 -3
- package/dialog/lib/dialog.service.d.ts +1 -1
- package/elements/lib/elements.interfaces.d.ts +2 -2
- package/esm2020/auth/lib/auth.interceptor.mjs +3 -3
- package/esm2020/auth/lib/auth.module.mjs +4 -4
- package/esm2020/auth/lib/auth.service.mjs +3 -3
- package/esm2020/auth/lib/directives/authenticated.directive.mjs +9 -9
- package/esm2020/auth/lib/guards/anonymous.guard.mjs +3 -3
- package/esm2020/auth/lib/guards/authenticated.guard.mjs +3 -3
- package/esm2020/collections/lib/collections.module.mjs +4 -4
- package/esm2020/collections/lib/components/collections-pager/collections-pager.component.mjs +3 -3
- package/esm2020/collections/lib/components/collections-viewer/collections-viewer.component.mjs +3 -3
- package/esm2020/collections/lib/components/collections.directive.mjs +12 -12
- package/esm2020/controls/lib/checkbox/checkbox/checkbox.component.mjs +22 -22
- package/esm2020/controls/lib/checkbox/checkbox-group/checkbox-group.component.mjs +12 -12
- package/esm2020/controls/lib/checkbox/checkbox.module.mjs +4 -4
- package/esm2020/controls/lib/control-error/control-error/control-error.component.mjs +8 -8
- package/esm2020/controls/lib/control-error/control-error-submit.directive.mjs +3 -3
- package/esm2020/controls/lib/control-error/control-error.module.mjs +4 -4
- package/esm2020/controls/lib/controls.module.mjs +4 -4
- package/esm2020/controls/lib/form-control/form-control/form-control.component.mjs +15 -15
- package/esm2020/controls/lib/form-control/form-control-addon/form-control-addon.component.mjs +3 -3
- package/esm2020/controls/lib/form-control/form-control-input.directive.mjs +3 -3
- package/esm2020/controls/lib/form-control/form-control.module.mjs +4 -4
- package/esm2020/controls/lib/radio/radio-button/radio-button.component.mjs +12 -12
- package/esm2020/controls/lib/radio/radio-group/radio-group.component.mjs +25 -25
- package/esm2020/controls/lib/radio/radio.module.mjs +4 -4
- package/esm2020/controls/lib/toggle/toggle/toggle.component.mjs +20 -20
- package/esm2020/controls/lib/toggle/toggle-group/toggle-group.component.mjs +12 -12
- package/esm2020/controls/lib/toggle/toggle.module.mjs +4 -4
- package/esm2020/dashboard/lib/dashboard/dashboard.component.mjs +3 -3
- package/esm2020/dashboard/lib/dashboard-header/dashboard-header.component.mjs +3 -3
- package/esm2020/dashboard/lib/dashboard-menu/dashboard-menu.component.mjs +3 -3
- package/esm2020/dashboard/lib/dashboard-menu-item/dashboard-menu-item.component.mjs +3 -3
- package/esm2020/dashboard/lib/dashboard-sidebar/dashboard-sidebar.component.mjs +3 -3
- package/esm2020/dashboard/lib/dashboard-sidebar-group/dashboard-sidebar-group.component.mjs +3 -3
- package/esm2020/dashboard/lib/dashboard-sidebar-item/dashboard-sidebar-item.component.mjs +3 -3
- package/esm2020/dashboard/lib/dashboard.module.mjs +4 -4
- package/esm2020/dialog/lib/dialog-actions/dialog-actions.component.mjs +3 -3
- package/esm2020/dialog/lib/dialog-confirm/dialog-confirm.component.mjs +3 -3
- package/esm2020/dialog/lib/dialog-container/dialog-container.component.mjs +7 -7
- package/esm2020/dialog/lib/dialog-header/dialog-header.component.mjs +3 -3
- package/esm2020/dialog/lib/dialog-link/dialog-link.component.mjs +3 -3
- package/esm2020/dialog/lib/dialog-modal/dialog-modal.component.mjs +7 -7
- package/esm2020/dialog/lib/dialog-overlay/dialog-overlay.component.mjs +3 -3
- package/esm2020/dialog/lib/dialog.insertion.mjs +3 -3
- package/esm2020/dialog/lib/dialog.module.mjs +4 -4
- package/esm2020/dialog/lib/dialog.service.mjs +8 -6
- package/esm2020/elements/lib/avatar/avatar.component.mjs +3 -3
- package/esm2020/elements/lib/button/button.component.mjs +10 -10
- package/esm2020/elements/lib/checkbox/checkbox.component.mjs +11 -11
- package/esm2020/elements/lib/date-picker/date-picker.component.mjs +14 -14
- package/esm2020/elements/lib/directives/addon.directive.mjs +6 -6
- package/esm2020/elements/lib/directives/form-submit.directive.mjs +3 -3
- package/esm2020/elements/lib/directives/form-submitter.directive.mjs +3 -3
- package/esm2020/elements/lib/directives/input.directive.mjs +6 -6
- package/esm2020/elements/lib/dropdown/dropdown.component.mjs +6 -6
- package/esm2020/elements/lib/elements.module.mjs +4 -4
- package/esm2020/elements/lib/file-picker/file-picker.component.mjs +3 -3
- package/esm2020/elements/lib/form-control/form-control.component.mjs +3 -3
- package/esm2020/elements/lib/form-error/form-error.component.mjs +11 -11
- package/esm2020/elements/lib/form-group/form-group.component.mjs +3 -3
- package/esm2020/elements/lib/icon/icon.component.mjs +17 -17
- package/esm2020/elements/lib/image-picker/image-picker.component.mjs +3 -3
- package/esm2020/elements/lib/pipes/file-image.pipe.mjs +3 -3
- package/esm2020/elements/lib/pipes/file-size.pipe.mjs +3 -3
- package/esm2020/elements/lib/pipes/relative-time.pipe.mjs +3 -3
- package/esm2020/elements/lib/spinner/spinner.component.mjs +3 -3
- package/esm2020/elements/lib/tag/tag.component.mjs +3 -3
- package/esm2020/http/lib/http.module.mjs +4 -4
- package/esm2020/http/lib/interceptors/base-url.interceptor.mjs +3 -3
- package/esm2020/http/lib/interceptors/error.interceptor.mjs +3 -3
- package/esm2020/lib/core/mixins/can-disable.mjs +5 -5
- package/esm2020/lib/core/mixins/can-hide-errors.mjs +5 -5
- package/esm2020/lib/core/mixins/can-load.mjs +5 -5
- package/esm2020/lib/core/mixins/has-error.mjs +5 -5
- package/esm2020/lib/core/mixins/is-focused.mjs +5 -5
- package/esm2020/lib/core/mixins/is-grouped.mjs +5 -5
- package/esm2020/lib/core/mixins/is-readonly.mjs +5 -5
- package/esm2020/lib/core/mixins/is-required.mjs +5 -5
- package/esm2020/lib/core/services/clipboard.service.mjs +3 -3
- package/esm2020/lib/core/services/exif.service.mjs +3 -3
- package/esm2020/lib/core/services/file-loader.service.mjs +3 -3
- package/esm2020/lib/core/services/image-converter.service.mjs +3 -3
- package/esm2020/lib/core/services/languages.service.mjs +3 -3
- package/esm2020/lib/core/services/network.service.mjs +3 -3
- package/esm2020/lib/core/services/patch.service.mjs +3 -3
- package/esm2020/localize/lib/localize.module.mjs +4 -4
- package/esm2020/localize/lib/localize.pipe.mjs +3 -3
- package/esm2020/localize/lib/localize.service.mjs +3 -3
- package/esm2020/localize/lib/views/localize-string/localize-string.component.mjs +11 -11
- package/esm2020/localize/lib/views/localize-template.directive.mjs +3 -3
- package/esm2020/masking/lib/directives/currency-mask.directive.mjs +3 -3
- package/esm2020/masking/lib/directives/date-mask.directive.mjs +5 -5
- package/esm2020/masking/lib/directives/input-mask.directive.mjs +11 -11
- package/esm2020/masking/lib/masking.module.mjs +4 -4
- package/esm2020/masking/lib/masking.service.mjs +3 -3
- package/esm2020/notifications/lib/notifications-item/notifications-item.component.mjs +7 -7
- package/esm2020/notifications/lib/notifications-list/notifications-list.component.mjs +3 -3
- package/esm2020/notifications/lib/notifications.module.mjs +4 -4
- package/esm2020/notifications/lib/notifications.service.mjs +3 -3
- package/esm2020/permissions/lib/directives/permission.directive.mjs +17 -17
- package/esm2020/permissions/lib/guards/permission.guard.mjs +3 -3
- package/esm2020/permissions/lib/permissions.module.mjs +4 -4
- package/esm2020/permissions/lib/permissions.service.mjs +3 -3
- package/esm2020/recaptcha/lib/recaptcha/recaptcha.component.mjs +3 -3
- package/esm2020/recaptcha/lib/recaptcha-loader.service.mjs +3 -3
- package/esm2020/recaptcha/lib/recaptcha.module.mjs +4 -4
- package/esm2020/storage/lib/storage.service.mjs +3 -3
- package/esm2020/table/lib/components/table/table.component.mjs +9 -9
- package/esm2020/table/lib/components/table-cell/table-cell.component.mjs +3 -3
- package/esm2020/table/lib/components/table-header-cell/table-header-cell.component.mjs +15 -15
- package/esm2020/table/lib/components/table-pager/table-pager.component.mjs +3 -3
- package/esm2020/table/lib/table.module.mjs +4 -4
- package/esm2020/theming/lib/theming.directive.mjs +9 -9
- package/esm2020/theming/lib/theming.module.mjs +4 -4
- package/esm2020/tooltip/bravobit-bb-foundation-tooltip.mjs +5 -0
- package/esm2020/tooltip/lib/tooltip-container/tooltip-container.component.mjs +31 -0
- package/esm2020/tooltip/lib/tooltip.directive.mjs +140 -0
- package/esm2020/tooltip/lib/tooltip.interfaces.mjs +4 -0
- package/esm2020/tooltip/lib/tooltip.module.mjs +31 -0
- package/esm2020/tooltip/public_api.mjs +5 -0
- package/esm2020/utils/lib/directives/autosize.directive.mjs +3 -3
- package/esm2020/utils/lib/directives/focus-trap.directive.mjs +3 -3
- package/esm2020/utils/lib/directives/focus.directive.mjs +3 -3
- package/esm2020/utils/lib/directives/template.directive.mjs +8 -8
- package/esm2020/utils/lib/utils.module.mjs +4 -4
- package/fesm2015/bravobit-bb-foundation-auth.mjs +24 -25
- package/fesm2015/bravobit-bb-foundation-auth.mjs.map +1 -1
- package/fesm2015/bravobit-bb-foundation-collections.mjs +22 -22
- package/fesm2015/bravobit-bb-foundation-controls.mjs +151 -152
- package/fesm2015/bravobit-bb-foundation-controls.mjs.map +1 -1
- package/fesm2015/bravobit-bb-foundation-dashboard.mjs +25 -26
- package/fesm2015/bravobit-bb-foundation-dialog.mjs +44 -41
- package/fesm2015/bravobit-bb-foundation-dialog.mjs.map +1 -1
- package/fesm2015/bravobit-bb-foundation-elements.mjs +117 -118
- package/fesm2015/bravobit-bb-foundation-elements.mjs.map +1 -1
- package/fesm2015/bravobit-bb-foundation-http.mjs +10 -11
- package/fesm2015/bravobit-bb-foundation-localize.mjs +23 -24
- package/fesm2015/bravobit-bb-foundation-localize.mjs.map +1 -1
- package/fesm2015/bravobit-bb-foundation-masking.mjs +24 -25
- package/fesm2015/bravobit-bb-foundation-masking.mjs.map +1 -1
- package/fesm2015/bravobit-bb-foundation-notifications.mjs +16 -17
- package/fesm2015/bravobit-bb-foundation-notifications.mjs.map +1 -1
- package/fesm2015/bravobit-bb-foundation-permissions.mjs +26 -27
- package/fesm2015/bravobit-bb-foundation-permissions.mjs.map +1 -1
- package/fesm2015/bravobit-bb-foundation-recaptcha.mjs +10 -11
- package/fesm2015/bravobit-bb-foundation-rxjs.mjs +0 -1
- package/fesm2015/bravobit-bb-foundation-storage.mjs +3 -4
- package/fesm2015/bravobit-bb-foundation-table.mjs +33 -34
- package/fesm2015/bravobit-bb-foundation-table.mjs.map +1 -1
- package/fesm2015/bravobit-bb-foundation-theming.mjs +12 -13
- package/fesm2015/bravobit-bb-foundation-theming.mjs.map +1 -1
- package/fesm2015/bravobit-bb-foundation-tooltip.mjs +210 -0
- package/fesm2015/bravobit-bb-foundation-tooltip.mjs.map +1 -0
- package/fesm2015/bravobit-bb-foundation-utils.mjs +20 -21
- package/fesm2015/bravobit-bb-foundation-utils.mjs.map +1 -1
- package/fesm2015/bravobit-bb-foundation.mjs +53 -54
- package/fesm2015/bravobit-bb-foundation.mjs.map +1 -1
- package/fesm2020/bravobit-bb-foundation-auth.mjs +24 -25
- package/fesm2020/bravobit-bb-foundation-auth.mjs.map +1 -1
- package/fesm2020/bravobit-bb-foundation-collections.mjs +22 -22
- package/fesm2020/bravobit-bb-foundation-controls.mjs +151 -152
- package/fesm2020/bravobit-bb-foundation-controls.mjs.map +1 -1
- package/fesm2020/bravobit-bb-foundation-dashboard.mjs +25 -26
- package/fesm2020/bravobit-bb-foundation-dialog.mjs +41 -41
- package/fesm2020/bravobit-bb-foundation-dialog.mjs.map +1 -1
- package/fesm2020/bravobit-bb-foundation-elements.mjs +116 -117
- package/fesm2020/bravobit-bb-foundation-elements.mjs.map +1 -1
- package/fesm2020/bravobit-bb-foundation-http.mjs +10 -11
- package/fesm2020/bravobit-bb-foundation-localize.mjs +23 -24
- package/fesm2020/bravobit-bb-foundation-localize.mjs.map +1 -1
- package/fesm2020/bravobit-bb-foundation-masking.mjs +24 -25
- package/fesm2020/bravobit-bb-foundation-masking.mjs.map +1 -1
- package/fesm2020/bravobit-bb-foundation-notifications.mjs +16 -17
- package/fesm2020/bravobit-bb-foundation-notifications.mjs.map +1 -1
- package/fesm2020/bravobit-bb-foundation-permissions.mjs +26 -27
- package/fesm2020/bravobit-bb-foundation-permissions.mjs.map +1 -1
- package/fesm2020/bravobit-bb-foundation-recaptcha.mjs +10 -11
- package/fesm2020/bravobit-bb-foundation-rxjs.mjs +0 -1
- package/fesm2020/bravobit-bb-foundation-storage.mjs +3 -4
- package/fesm2020/bravobit-bb-foundation-table.mjs +33 -34
- package/fesm2020/bravobit-bb-foundation-table.mjs.map +1 -1
- package/fesm2020/bravobit-bb-foundation-theming.mjs +12 -13
- package/fesm2020/bravobit-bb-foundation-theming.mjs.map +1 -1
- package/fesm2020/bravobit-bb-foundation-tooltip.mjs +203 -0
- package/fesm2020/bravobit-bb-foundation-tooltip.mjs.map +1 -0
- package/fesm2020/bravobit-bb-foundation-utils.mjs +20 -21
- package/fesm2020/bravobit-bb-foundation-utils.mjs.map +1 -1
- package/fesm2020/bravobit-bb-foundation.mjs +53 -54
- package/fesm2020/bravobit-bb-foundation.mjs.map +1 -1
- package/http/lib/http.interfaces.d.ts +1 -1
- package/lib/core/mixins/can-disable.d.ts +1 -1
- package/lib/core/mixins/can-hide-errors.d.ts +1 -1
- package/lib/core/mixins/can-load.d.ts +1 -1
- package/lib/core/mixins/constructor.d.ts +1 -1
- package/lib/core/mixins/has-error.d.ts +1 -1
- package/lib/core/mixins/is-focused.d.ts +1 -1
- package/lib/core/mixins/is-grouped.d.ts +1 -1
- package/lib/core/mixins/is-readonly.d.ts +1 -1
- package/lib/core/mixins/is-required.d.ts +1 -1
- package/localize/lib/dictionary/dictionary.data.d.ts +1 -1
- package/masking/lib/input-mask.interface.d.ts +3 -3
- package/package.json +13 -5
- package/permissions/lib/permissions.interface.d.ts +2 -2
- package/recaptcha/lib/recaptcha.interface.d.ts +2 -2
- package/rxjs/lib/operators/combine-latest-map.operator.d.ts +1 -1
- package/table/lib/interfaces/table.interfaces.d.ts +1 -1
- package/theming/lib/theming.interface.d.ts +6 -6
- package/theming/lib/utils/theming.variable.d.ts +1 -1
- package/tooltip/index.d.ts +5 -0
- package/tooltip/lib/tooltip-container/tooltip-container.component.d.ts +10 -0
- package/tooltip/lib/tooltip.directive.d.ts +32 -0
- package/tooltip/lib/tooltip.interfaces.d.ts +4 -0
- package/tooltip/lib/tooltip.module.d.ts +10 -0
- package/tooltip/public_api.d.ts +4 -0
|
@@ -2,5 +2,5 @@ import { Constructor } from './constructor';
|
|
|
2
2
|
export interface IsReadonly {
|
|
3
3
|
readonly: boolean;
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export type IsReadonlyConstructor = Constructor<IsReadonly>;
|
|
6
6
|
export declare function mixinReadonly<T extends Constructor<{}>>(base: T): IsReadonlyConstructor & T;
|
|
@@ -2,5 +2,5 @@ import { Constructor } from './constructor';
|
|
|
2
2
|
export interface IsRequired {
|
|
3
3
|
required: boolean;
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export type IsRequiredConstructor = Constructor<IsRequired>;
|
|
6
6
|
export declare function mixinRequired<T extends Constructor<{}>>(base: T): IsRequiredConstructor & T;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type Inputmask from 'inputmask';
|
|
2
|
-
export
|
|
2
|
+
export type InputMaskOptions<T> = Inputmask.Options & {
|
|
3
3
|
parser?: (value: any) => T;
|
|
4
4
|
};
|
|
5
|
-
export
|
|
5
|
+
export type CurrencyMaskOptions = {
|
|
6
6
|
symbol: string;
|
|
7
7
|
symbolFormat: 'wide' | 'narrow';
|
|
8
8
|
spacer: string;
|
|
@@ -15,5 +15,5 @@ export declare type CurrencyMaskOptions = {
|
|
|
15
15
|
allowMinus: boolean;
|
|
16
16
|
nullable: boolean;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type DateMaskFormat = 'day-month-year' | 'month-day-year' | 'year-month-day' | 'year-day-month';
|
|
19
19
|
export declare const createMask: <T>(options: string | InputMaskOptions<T>) => InputMaskOptions<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bravobit/bb-foundation",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.1",
|
|
4
4
|
"description": "The Angular core foundation of the Bravobit team.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Stan van Heumen",
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
"url": "https://bravobit.nl"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@angular/common": "^15.
|
|
12
|
-
"@angular/core": "^15.
|
|
13
|
-
"@angular/cdk": "^15.
|
|
11
|
+
"@angular/common": "^15.2.0",
|
|
12
|
+
"@angular/core": "^15.2.0",
|
|
13
|
+
"@angular/cdk": "^15.2.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"tslib": "^2.
|
|
16
|
+
"tslib": "^2.5.0",
|
|
17
17
|
"inputmask": "^5.0.7",
|
|
18
18
|
"@types/grecaptcha": "^3.0.4"
|
|
19
19
|
},
|
|
@@ -163,6 +163,14 @@
|
|
|
163
163
|
"node": "./fesm2015/bravobit-bb-foundation-theming.mjs",
|
|
164
164
|
"default": "./fesm2020/bravobit-bb-foundation-theming.mjs"
|
|
165
165
|
},
|
|
166
|
+
"./tooltip": {
|
|
167
|
+
"types": "./tooltip/index.d.ts",
|
|
168
|
+
"esm2020": "./esm2020/tooltip/bravobit-bb-foundation-tooltip.mjs",
|
|
169
|
+
"es2020": "./fesm2020/bravobit-bb-foundation-tooltip.mjs",
|
|
170
|
+
"es2015": "./fesm2015/bravobit-bb-foundation-tooltip.mjs",
|
|
171
|
+
"node": "./fesm2015/bravobit-bb-foundation-tooltip.mjs",
|
|
172
|
+
"default": "./fesm2020/bravobit-bb-foundation-tooltip.mjs"
|
|
173
|
+
},
|
|
166
174
|
"./utils": {
|
|
167
175
|
"types": "./utils/index.d.ts",
|
|
168
176
|
"esm2020": "./esm2020/utils/bravobit-bb-foundation-utils.mjs",
|
|
@@ -8,5 +8,5 @@ export declare class PermissionsConfig {
|
|
|
8
8
|
export interface PermissionsOptions {
|
|
9
9
|
mode?: PermissionsMode;
|
|
10
10
|
}
|
|
11
|
-
export
|
|
12
|
-
export
|
|
11
|
+
export type PermissionsMode = 'and' | 'or' | 'not';
|
|
12
|
+
export type LocalPermissionsData<T extends string = any> = Record<string, T[] | '*'>;
|
|
@@ -10,5 +10,5 @@ export interface RecaptchaConfig {
|
|
|
10
10
|
size?: ReCaptchaV2.Size;
|
|
11
11
|
badge?: ReCaptchaV2.Badge;
|
|
12
12
|
}
|
|
13
|
-
export
|
|
14
|
-
export
|
|
13
|
+
export type NeverUndefined<T> = T extends undefined ? never : T;
|
|
14
|
+
export type RecaptchaErrorParameters = Parameters<NeverUndefined<ReCaptchaV2.Parameters['error-callback']>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
|
|
2
|
+
type ExtractObservableType<A> = A extends Observable<infer B> ? B : never;
|
|
3
3
|
export declare function combineLatestMap<TIn extends {
|
|
4
4
|
[key: string]: Observable<any>;
|
|
5
5
|
}, TOut extends {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type TableColumnSortStrategy = 'asc' | 'desc' | 'none';
|
|
@@ -7,8 +7,8 @@ import { RadioButtonTheme } from './themes/radio-button.theme';
|
|
|
7
7
|
import { RadioGroupTheme } from './themes/radio-group.theme';
|
|
8
8
|
import { CheckboxTheme } from './themes/checkbox.theme';
|
|
9
9
|
import { ToggleTheme } from './themes/toggle.theme';
|
|
10
|
-
export
|
|
11
|
-
export
|
|
10
|
+
export type ThemeDataRecord = Record<string, string> | string;
|
|
11
|
+
export type ColorString = `#${string}`;
|
|
12
12
|
export interface GlobalTheme {
|
|
13
13
|
accentColor: ColorString;
|
|
14
14
|
errorColor: ColorString;
|
|
@@ -25,10 +25,10 @@ export interface GlobalTheme {
|
|
|
25
25
|
[key: string]: ThemeDataRecord;
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
type Subset<K> = {
|
|
29
29
|
[attr in keyof K]?: K[attr] extends object ? Subset<K[attr]> : K[attr];
|
|
30
30
|
};
|
|
31
|
-
export
|
|
32
|
-
export
|
|
33
|
-
export
|
|
31
|
+
export type PartialGlobalTheme = Subset<GlobalTheme>;
|
|
32
|
+
export type GlobalVariables = Pick<GlobalTheme, 'accentColor' | 'errorColor'>;
|
|
33
|
+
export type GlobalVariablesKey = keyof GlobalVariables;
|
|
34
34
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GlobalVariables, GlobalVariablesKey } from '../theming.interface';
|
|
2
|
-
export
|
|
2
|
+
export type ThemeVariable = ThemeVariableFunction | string;
|
|
3
3
|
export declare abstract class ThemeVariableFunction {
|
|
4
4
|
private _key;
|
|
5
5
|
protected constructor(_key: GlobalVariablesKey);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TooltipData } from '../tooltip.interfaces';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TooltipContainerComponent {
|
|
4
|
+
data: TooltipData;
|
|
5
|
+
classes: string;
|
|
6
|
+
constructor(data: TooltipData, classes: string);
|
|
7
|
+
get classBinding(): string;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipContainerComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipContainerComponent, "bb-tooltip-container", never, {}, {}, never, never, false, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { ConnectedPosition, Overlay } from '@angular/cdk/overlay';
|
|
3
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TooltipDirective implements OnDestroy {
|
|
6
|
+
private _overlay;
|
|
7
|
+
private _viewContainer;
|
|
8
|
+
private _elementRef;
|
|
9
|
+
private _changeDetectorRef;
|
|
10
|
+
bbTooltip: string | TemplateRef<void>;
|
|
11
|
+
bbTooltipClass: string | null;
|
|
12
|
+
bbTooltipOrigin: HTMLElement | null;
|
|
13
|
+
bbTooltipPositions: ConnectedPosition[];
|
|
14
|
+
get bbTooltipDisabled(): boolean;
|
|
15
|
+
set bbTooltipDisabled(value: BooleanInput);
|
|
16
|
+
private _bbTooltipDisabled;
|
|
17
|
+
private _overlayRef;
|
|
18
|
+
constructor(_overlay: Overlay, _viewContainer: ViewContainerRef, _elementRef: ElementRef<HTMLElement>, _changeDetectorRef: ChangeDetectorRef);
|
|
19
|
+
showTooltip(): void;
|
|
20
|
+
hideTooltip(): void;
|
|
21
|
+
ngOnDestroy(): void;
|
|
22
|
+
private attachTooltip;
|
|
23
|
+
private getPositionStrategy;
|
|
24
|
+
private getPositions;
|
|
25
|
+
static ngAcceptInputType_bbTooltip: string | TemplateRef<void>;
|
|
26
|
+
static ngAcceptInputType_bbTooltipClass: string | null;
|
|
27
|
+
static ngAcceptInputType_bbTooltipOrigin: HTMLElement | null;
|
|
28
|
+
static ngAcceptInputType_bbTooltipDisabled: BooleanInput;
|
|
29
|
+
static ngAcceptInputType_bbTooltipPositions: ConnectedPosition[];
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, never>;
|
|
31
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[bbTooltip]", never, { "bbTooltip": "bbTooltip"; "bbTooltipClass": "bbTooltipClass"; "bbTooltipOrigin": "bbTooltipOrigin"; "bbTooltipPositions": "bbTooltipPositions"; "bbTooltipDisabled": "bbTooltipDisabled"; }, {}, never, never, false, never>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./tooltip-container/tooltip-container.component";
|
|
3
|
+
import * as i2 from "./tooltip.directive";
|
|
4
|
+
import * as i3 from "@bravobit/bb-foundation/utils";
|
|
5
|
+
import * as i4 from "@angular/cdk/overlay";
|
|
6
|
+
export declare class TooltipModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TooltipModule, [typeof i1.TooltipContainerComponent, typeof i2.TooltipDirective], [typeof i3.UtilsModule, typeof i4.OverlayModule], [typeof i2.TooltipDirective]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TooltipModule>;
|
|
10
|
+
}
|