@ngrdt/gov 0.0.92 → 0.0.95
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/ngrdt-gov.mjs +13 -5
- package/fesm2022/ngrdt-gov.mjs.map +1 -1
- package/index.d.ts +8 -6
- package/package.json +7 -7
package/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { RdtCssSize, Nullable } from '@ngrdt/utils';
|
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
3
|
import { Provider, EnvironmentProviders, Injector, ElementRef, Type, WritableSignal, InjectionToken, OnDestroy } from '@angular/core';
|
|
4
4
|
import { RdtButtonBase } from '@ngrdt/button';
|
|
5
|
-
import { RdtBooleanResult, RdtDialogServiceInt, RdtAlertDialogConfig, RdtConfirmDialogConfig, RdtNotificationServiceInt } from '@ngrdt/core';
|
|
5
|
+
import { RdtBooleanResult, RdtDialogServiceInt, RdtAlertDialogConfig, RdtConfirmDialogConfig, RdtNotificationServiceInt, RdtNotificationSimpleConfig } from '@ngrdt/core';
|
|
6
6
|
import { RdtIcon, RdtIconComponent } from '@ngrdt/icon';
|
|
7
7
|
import { GovFormCheckbox, GovFormInput } from '@gov-design-system-ce/angular';
|
|
8
8
|
import { RdtCheckboxComponent, RdtDateComponent, RdtNumericInputComponent, RdtSelectOfflineDatasourceProviderDirective, RdtBaseSelectCommonComponent, RdtTextInputComponent } from '@ngrdt/forms';
|
|
@@ -14,7 +14,7 @@ import { RdtSpinnerComponent } from '@ngrdt/loading';
|
|
|
14
14
|
|
|
15
15
|
type GovSize = 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
16
16
|
type GovColor = 'primary' | 'secondary' | 'neutral' | 'success' | 'warning' | 'error';
|
|
17
|
-
type GovMessageVariant = '
|
|
17
|
+
type GovMessageVariant = 'primary' | 'neutral' | 'success' | 'error' | 'warning';
|
|
18
18
|
type GovButtonType = 'solid' | 'outlined' | 'base' | 'link';
|
|
19
19
|
type GovLabelPosition = 'left' | 'right' | 'top';
|
|
20
20
|
type GovDialogSize = 'content' | 'fullscreen' | RdtCssSize;
|
|
@@ -349,8 +349,9 @@ declare const RDT_GOV_NOTIFICATION_DEFAULT_CONFIG: RdtGovNotificationConfigBase;
|
|
|
349
349
|
*/
|
|
350
350
|
interface RdtGovNotificationConfig extends Partial<RdtGovNotificationConfigBase> {
|
|
351
351
|
icon?: RdtIcon;
|
|
352
|
+
header?: string;
|
|
352
353
|
message: string;
|
|
353
|
-
color:
|
|
354
|
+
color: GovMessageVariant;
|
|
354
355
|
}
|
|
355
356
|
|
|
356
357
|
/**
|
|
@@ -364,9 +365,10 @@ declare class RdtGovNotificationService implements RdtNotificationServiceInt {
|
|
|
364
365
|
private readonly t;
|
|
365
366
|
private readonly config;
|
|
366
367
|
show(partialConfig: RdtGovNotificationConfig): void;
|
|
367
|
-
success(message?: string): void;
|
|
368
|
-
warn(message?: string): void;
|
|
369
|
-
error(message?: string): void;
|
|
368
|
+
success(message?: RdtNotificationSimpleConfig | string): void;
|
|
369
|
+
warn(message?: RdtNotificationSimpleConfig | string): void;
|
|
370
|
+
error(message?: RdtNotificationSimpleConfig | string): void;
|
|
371
|
+
private showSimple;
|
|
370
372
|
private mergeConfig;
|
|
371
373
|
private createPortal;
|
|
372
374
|
private createOverlayRef;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngrdt/gov",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.95",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/core": ">=20.0.0",
|
|
6
6
|
"@angular/forms": ">=20.0.0",
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
"@gov-design-system-ce/angular": ">=1.3.1",
|
|
10
10
|
"@gov-design-system-ce/components": ">=4.2.0",
|
|
11
11
|
"rxjs": "~7.8.0",
|
|
12
|
-
"@ngrdt/core": "^0.0.
|
|
13
|
-
"@ngrdt/forms": "^0.0.
|
|
14
|
-
"@ngrdt/icon": "^0.0.
|
|
15
|
-
"@ngrdt/utils": "^0.0.
|
|
12
|
+
"@ngrdt/core": "^0.0.95",
|
|
13
|
+
"@ngrdt/forms": "^0.0.95",
|
|
14
|
+
"@ngrdt/icon": "^0.0.95",
|
|
15
|
+
"@ngrdt/utils": "^0.0.95",
|
|
16
16
|
"@angular/cdk": ">=20.0.0",
|
|
17
|
-
"@ngrdt/button": "^0.0.
|
|
18
|
-
"@ngrdt/loading": "^0.0.
|
|
17
|
+
"@ngrdt/button": "^0.0.95",
|
|
18
|
+
"@ngrdt/loading": "^0.0.95",
|
|
19
19
|
"@angular/material-date-fns-adapter": ">=20.0.0",
|
|
20
20
|
"date-fns": ">=4.1.0",
|
|
21
21
|
"@angular/material": ">=20.0.0"
|