@crowdfarming/oliva-ds 1.84.0 → 1.85.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/fesm2022/crowdfarming-oliva-ds.mjs +67 -3
- package/fesm2022/crowdfarming-oliva-ds.mjs.map +1 -1
- package/lib/modal/src/lib/modal/modal.component.d.ts +4 -0
- package/lib/modal/src/lib/modal/modal.interfaces.d.ts +3 -0
- package/lib/modal/src/lib/modal/modal.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@ export declare class ModalComponent implements OnDestroy {
|
|
|
13
13
|
private _isContentScrollableSignal;
|
|
14
14
|
private _safeAreaInsetBottomSignal;
|
|
15
15
|
private _autoFocusSignal;
|
|
16
|
+
private _hasHeaderSlotSignal;
|
|
16
17
|
modalContentRef: import("@angular/core").Signal<ElementRef<HTMLDivElement>>;
|
|
17
18
|
private bodyContentRef;
|
|
18
19
|
constructor();
|
|
@@ -28,6 +29,8 @@ export declare class ModalComponent implements OnDestroy {
|
|
|
28
29
|
isContentScrollable(): boolean;
|
|
29
30
|
getSafeAreaInsetBottom(): boolean;
|
|
30
31
|
getAutoFocus(): boolean;
|
|
32
|
+
hasHeaderSlot(): boolean;
|
|
33
|
+
setHasHeaderSlot(hasHeaderSlot: boolean): void;
|
|
31
34
|
setOpen(open: boolean): void;
|
|
32
35
|
setConfig(config: {
|
|
33
36
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
@@ -59,6 +62,7 @@ export declare class ModalComponent implements OnDestroy {
|
|
|
59
62
|
private checkContentScrollable;
|
|
60
63
|
getFooterClasses(): string;
|
|
61
64
|
getHeaderClasses(): string;
|
|
65
|
+
shouldRenderHeader(): boolean;
|
|
62
66
|
getContentBodyContentClasses(): string;
|
|
63
67
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, never>;
|
|
64
68
|
static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "lib-modal", never, {}, {}, never, ["*"], true, never>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
1
2
|
export interface ModalConfig<T> {
|
|
2
3
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
3
4
|
title?: string;
|
|
@@ -10,6 +11,8 @@ export interface ModalConfig<T> {
|
|
|
10
11
|
autoFocus?: boolean;
|
|
11
12
|
safeAreaInsetBottom?: boolean;
|
|
12
13
|
persist?: boolean;
|
|
14
|
+
headerComponent?: Type<unknown>;
|
|
15
|
+
headerData?: Record<string, unknown>;
|
|
13
16
|
onPrimaryClick?: (result: T, closeModal: (result?: T) => void) => void;
|
|
14
17
|
onSecondaryClick?: (closeModal: (result?: T) => void) => void;
|
|
15
18
|
onClose?: (closeModal: (result?: T) => void) => void;
|