@ascentgl/ads-ui 21.4.0 → 21.5.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/package.json
CHANGED
|
@@ -224,7 +224,7 @@ declare class AdsButtonModule {
|
|
|
224
224
|
|
|
225
225
|
declare class AdsButtonContainerComponent {
|
|
226
226
|
/** How buttons in the container should be placed */
|
|
227
|
-
justify: i0.InputSignal<"
|
|
227
|
+
justify: i0.InputSignal<"flex-start" | "flex-end" | "center">;
|
|
228
228
|
/** The gap between elements */
|
|
229
229
|
gap: i0.InputSignal<number>;
|
|
230
230
|
static ɵfac: i0.ɵɵFactoryDeclaration<AdsButtonContainerComponent, never>;
|
|
@@ -2112,13 +2112,19 @@ type SnackBarData = {
|
|
|
2112
2112
|
buttonCaption?: string;
|
|
2113
2113
|
closeOnClick?: boolean;
|
|
2114
2114
|
onButtonClick?: () => void;
|
|
2115
|
+
/**
|
|
2116
|
+
* Optional duration in milliseconds to auto-close the snackbar.
|
|
2117
|
+
* If not set and panel class is 'success', defaults to 4000ms.
|
|
2118
|
+
*/
|
|
2119
|
+
autoCloseDuration?: number;
|
|
2115
2120
|
};
|
|
2116
|
-
declare class AdsSnackbarComponent implements AfterViewInit {
|
|
2121
|
+
declare class AdsSnackbarComponent implements AfterViewInit, OnDestroy {
|
|
2117
2122
|
private elementRef;
|
|
2118
2123
|
data: SnackBarData;
|
|
2119
2124
|
snackBarRef: MatSnackBarRef<any>;
|
|
2120
2125
|
readonly defaultButtonCaption = "Close";
|
|
2121
2126
|
protected readonly PanelClass: typeof PanelClass;
|
|
2127
|
+
private autoCloseTimeoutId?;
|
|
2122
2128
|
/** @ignore */
|
|
2123
2129
|
constructor(elementRef: ElementRef<HTMLElement>);
|
|
2124
2130
|
get buttonPanelClass(): Variant;
|
|
@@ -2126,9 +2132,15 @@ declare class AdsSnackbarComponent implements AfterViewInit {
|
|
|
2126
2132
|
get id(): string;
|
|
2127
2133
|
/** @ignore */
|
|
2128
2134
|
ngAfterViewInit(): void;
|
|
2135
|
+
/**
|
|
2136
|
+
* Sets up the auto-close timer if required.
|
|
2137
|
+
* If autoCloseDuration is 0, null, or undefined, disables auto-close even for 'success'.
|
|
2138
|
+
*/
|
|
2139
|
+
private setupAutoCloseTimer;
|
|
2140
|
+
/** @ignore */
|
|
2141
|
+
ngOnDestroy(): void;
|
|
2129
2142
|
/** @ignore */
|
|
2130
2143
|
onSnackbarClick(): void;
|
|
2131
|
-
protected readonly indexedDB: IDBFactory;
|
|
2132
2144
|
static ɵfac: i0.ɵɵFactoryDeclaration<AdsSnackbarComponent, never>;
|
|
2133
2145
|
static ɵcmp: i0.ɵɵComponentDeclaration<AdsSnackbarComponent, "ads-snackbar", never, {}, {}, never, never, false, never>;
|
|
2134
2146
|
}
|
|
@@ -2327,7 +2339,7 @@ declare class AdsExpansionPanelComponent implements AfterContentInit {
|
|
|
2327
2339
|
/** Component width. Must include units of measure: px, %, em, rem, etc. */
|
|
2328
2340
|
width: i0.InputSignal<string>;
|
|
2329
2341
|
/** The Chevron Icon size () */
|
|
2330
|
-
chevronSize: i0.InputSignal<"
|
|
2342
|
+
chevronSize: i0.InputSignal<"base" | "xs">;
|
|
2331
2343
|
/** Header padding size size () */
|
|
2332
2344
|
headerPadding: i0.InputSignal<string>;
|
|
2333
2345
|
/** Content padding size size () */
|