@ngrdt/gov 0.0.98 → 0.0.99
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 +502 -230
- package/fesm2022/ngrdt-gov.mjs.map +1 -1
- package/package.json +17 -16
- package/styles.css +1 -0
- package/{index.d.ts → types/ngrdt-gov.d.ts} +41 -4
package/package.json
CHANGED
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngrdt/gov",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.99",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/core": ">=
|
|
6
|
-
"@angular/forms": ">=
|
|
7
|
-
"@angular/common": ">=
|
|
8
|
-
"@angular/router": ">=
|
|
5
|
+
"@angular/core": ">=21.0.0",
|
|
6
|
+
"@angular/forms": ">=21.0.0",
|
|
7
|
+
"@angular/common": ">=21.0.0",
|
|
8
|
+
"@angular/router": ">=21.0.0",
|
|
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.
|
|
16
|
-
"@angular/cdk": ">=
|
|
17
|
-
"@ngrdt/button": "^0.0.
|
|
18
|
-
"@ngrdt/loading": "^0.0.
|
|
19
|
-
"@angular/material-date-fns-adapter": ">=
|
|
12
|
+
"@ngrdt/core": "^0.0.99",
|
|
13
|
+
"@ngrdt/forms": "^0.0.99",
|
|
14
|
+
"@ngrdt/icon": "^0.0.99",
|
|
15
|
+
"@ngrdt/utils": "^0.0.99",
|
|
16
|
+
"@angular/cdk": ">=21.0.0",
|
|
17
|
+
"@ngrdt/button": "^0.0.99",
|
|
18
|
+
"@ngrdt/loading": "^0.0.99",
|
|
19
|
+
"@angular/material-date-fns-adapter": ">=21.0.0",
|
|
20
20
|
"date-fns": ">=4.1.0",
|
|
21
|
-
"@angular/material": ">=
|
|
21
|
+
"@angular/material": ">=21.0.0"
|
|
22
22
|
},
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"exports": {
|
|
25
25
|
"./rdt-gov-menu.css": "./src/lib/gov/ui/menu/rdt-gov-menu.css",
|
|
26
|
+
"./rdt-gov-sidemenu.css": "./src/lib/gov/ui/sidemenu/rdt-gov-sidemenu.css",
|
|
26
27
|
"./rdt-gov-table.css": "./src/lib/gov/ui/table/rdt-gov-table.css",
|
|
27
28
|
"./rdt-gov-tab.css": "./src/lib/gov/ui/tab/rdt-gov-tab.css",
|
|
28
29
|
"./package.json": {
|
|
29
30
|
"default": "./package.json"
|
|
30
31
|
},
|
|
31
32
|
".": {
|
|
32
|
-
"types": "./
|
|
33
|
+
"types": "./types/ngrdt-gov.d.ts",
|
|
33
34
|
"default": "./fesm2022/ngrdt-gov.mjs"
|
|
34
35
|
}
|
|
35
36
|
},
|
|
36
37
|
"module": "fesm2022/ngrdt-gov.mjs",
|
|
37
|
-
"typings": "
|
|
38
|
+
"typings": "types/ngrdt-gov.d.ts",
|
|
38
39
|
"dependencies": {
|
|
39
40
|
"tslib": "^2.3.0"
|
|
40
41
|
}
|
package/styles.css
CHANGED
|
@@ -10,10 +10,11 @@ import * as date_fns from 'date-fns';
|
|
|
10
10
|
import { MatDatepickerInputEvent } from '@angular/material/datepicker';
|
|
11
11
|
import { Observable } from 'rxjs';
|
|
12
12
|
import { Nullable as Nullable$1 } from '@gov-design-system-ce/components';
|
|
13
|
+
import * as i1 from '@angular/cdk/drag-drop';
|
|
13
14
|
import { RdtSpinnerComponent } from '@ngrdt/loading';
|
|
14
15
|
|
|
15
|
-
type GovSize = 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
16
|
-
type GovColor = 'primary' | 'secondary' | 'neutral' | 'success' | 'warning' | 'error';
|
|
16
|
+
type GovSize = 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl';
|
|
17
|
+
type GovColor = 'primary' | 'secondary' | 'neutral' | 'success' | 'warning' | 'error' | 'white' | 'black' | 'disabled' | 'default';
|
|
17
18
|
type GovMessageVariant = 'primary' | 'neutral' | 'success' | 'error' | 'warning';
|
|
18
19
|
type GovButtonType = 'solid' | 'outlined' | 'base' | 'link';
|
|
19
20
|
type GovLabelPosition = 'left' | 'right' | 'top';
|
|
@@ -168,6 +169,7 @@ interface RdtGovDialogConfigInt<TIn, TOut> {
|
|
|
168
169
|
injector?: Injector;
|
|
169
170
|
hasBackdrop?: boolean;
|
|
170
171
|
isDraggable?: boolean;
|
|
172
|
+
dragIcon?: RdtGovIcon;
|
|
171
173
|
isResizable?: boolean;
|
|
172
174
|
}
|
|
173
175
|
|
|
@@ -185,6 +187,7 @@ interface RdtGovDialogData<TIn = any, TOut = TIn> {
|
|
|
185
187
|
maxHeight: RdtCssSize | undefined;
|
|
186
188
|
header: string | undefined;
|
|
187
189
|
headerIcons: RdtDialogHeaderIconsInt | undefined;
|
|
190
|
+
dragIcon: RdtGovIcon | undefined;
|
|
188
191
|
inputData: TIn;
|
|
189
192
|
}
|
|
190
193
|
|
|
@@ -211,6 +214,7 @@ declare class RdtGovDialogRef<TIn = any, TOut = TIn> implements RdtGovDialogRefI
|
|
|
211
214
|
readonly size: GovDialogSize;
|
|
212
215
|
readonly hasBackdrop: boolean;
|
|
213
216
|
readonly isDraggable: boolean;
|
|
217
|
+
readonly dragIcon: RdtGovIcon | undefined;
|
|
214
218
|
readonly isResizable: boolean;
|
|
215
219
|
private readonly _close$;
|
|
216
220
|
private readonly _open$;
|
|
@@ -323,6 +327,20 @@ declare class RdtGovDialogService implements RdtDialogServiceInt {
|
|
|
323
327
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<RdtGovDialogService>;
|
|
324
328
|
}
|
|
325
329
|
|
|
330
|
+
declare class RdtGovDragDirective implements OnDestroy {
|
|
331
|
+
private readonly viewContainerRef;
|
|
332
|
+
private readonly renderer;
|
|
333
|
+
private readonly hostRef;
|
|
334
|
+
private handleRef?;
|
|
335
|
+
readonly icon: _angular_core.InputSignal<RdtGovIcon | null | undefined>;
|
|
336
|
+
private readonly iconEffect;
|
|
337
|
+
ngOnDestroy(): void;
|
|
338
|
+
private ensureHandle;
|
|
339
|
+
private destroyHandle;
|
|
340
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdtGovDragDirective, never>;
|
|
341
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdtGovDragDirective, "[rdtGovDrag]", never, { "icon": { "alias": "rdtGovDragIcon"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.CdkDrag; inputs: { "cdkDragDisabled": "cdkDragDisabled"; "cdkDragBoundary": "cdkDragBoundary"; "cdkDragLockAxis": "cdkDragLockAxis"; "cdkDragRootElement": "cdkDragRootElement"; "cdkDragStartDelay": "cdkDragStartDelay"; "cdkDragFreeDragPosition": "cdkDragFreeDragPosition"; "cdkDragConstrainPosition": "cdkDragConstrainPosition"; "cdkDragPreviewClass": "cdkDragPreviewClass"; "cdkDragScale": "cdkDragScale"; "cdkDragData": "cdkDragData"; }; outputs: { "cdkDragStarted": "cdkDragStarted"; "cdkDragReleased": "cdkDragReleased"; "cdkDragEnded": "cdkDragEnded"; "cdkDragEntered": "cdkDragEntered"; "cdkDragExited": "cdkDragExited"; "cdkDragDropped": "cdkDragDropped"; "cdkDragMoved": "cdkDragMoved"; }; }]>;
|
|
342
|
+
}
|
|
343
|
+
|
|
326
344
|
declare class RdtGovIconComponent extends RdtIconComponent<RdtGovIcon> {
|
|
327
345
|
readonly size: _angular_core.InputSignal<GovSize>;
|
|
328
346
|
readonly color: _angular_core.InputSignal<GovColor | undefined>;
|
|
@@ -463,6 +481,25 @@ declare class RdtGovSpinnerComponent extends RdtSpinnerComponent {
|
|
|
463
481
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RdtGovSpinnerComponent, "rdt-gov-spinner", never, { "messageInput": { "alias": "message"; "required": false; "isSignal": true; }; "sizeInput": { "alias": "size"; "required": false; "isSignal": true; }; "modeInput": { "alias": "mode"; "required": false; "isSignal": true; }; "messagePositionInput": { "alias": "messagePosition"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
464
482
|
}
|
|
465
483
|
|
|
484
|
+
type GovStateSize = 's' | 'm' | 'l';
|
|
485
|
+
type GovStateAlign = 'left' | 'center' | 'right';
|
|
486
|
+
declare class RdtGovStateComponent {
|
|
487
|
+
readonly header: _angular_core.InputSignal<string>;
|
|
488
|
+
readonly message: _angular_core.InputSignal<string>;
|
|
489
|
+
readonly code: _angular_core.InputSignal<Nullable<number>>;
|
|
490
|
+
readonly align: _angular_core.InputSignal<GovStateAlign>;
|
|
491
|
+
readonly size: _angular_core.InputSignal<GovStateSize>;
|
|
492
|
+
readonly icon: _angular_core.InputSignal<Nullable<RdtGovIcon>>;
|
|
493
|
+
readonly color: _angular_core.InputSignal<Nullable<GovColor>>;
|
|
494
|
+
private static readonly ICON_SIZE_MAP;
|
|
495
|
+
readonly resolvedIcon: _angular_core.Signal<Nullable<RdtGovIcon>>;
|
|
496
|
+
readonly resolvedColor: _angular_core.Signal<GovColor>;
|
|
497
|
+
readonly resolvedIconSize: _angular_core.Signal<GovSize>;
|
|
498
|
+
get hostClass(): string;
|
|
499
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdtGovStateComponent, never>;
|
|
500
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RdtGovStateComponent, "rdt-gov-state", never, { "header": { "alias": "header"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "code": { "alias": "code"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
501
|
+
}
|
|
502
|
+
|
|
466
503
|
declare class RdtGovTextInputComponent extends RdtTextInputComponent {
|
|
467
504
|
private readonly renderer;
|
|
468
505
|
protected readonly govInput: _angular_core.Signal<ElementRef<GovFormInput> | undefined>;
|
|
@@ -496,5 +533,5 @@ declare class RdtGovThemeService {
|
|
|
496
533
|
|
|
497
534
|
declare function forceFocus(input: HTMLInputElement): void;
|
|
498
535
|
|
|
499
|
-
export { DEFAULT_GOV_BUTTON_COLOR, DEFAULT_GOV_BUTTON_SIZE, DEFAULT_GOV_BUTTON_TYPE, RDT_GOV_ALERT_DIALOG_CONFIG_PROVIDER, RDT_GOV_BASE_DIALOG_CONFIG_PROVIDER, RDT_GOV_CONFIRM_DIALOG_CONFIG_PROVIDER, RDT_GOV_NOTIFICATION_CONFIG_PROVIDER, RDT_GOV_NOTIFICATION_DEFAULT_CONFIG, RdtGovButtonComponent, RdtGovCheckboxComponent, RdtGovDateComponent, RdtGovDialogBase, RdtGovDialogComponent, RdtGovDialogContentComponent, RdtGovDialogFooterComponent, RdtGovDialogHeaderComponent, RdtGovDialogLoadingComponent, RdtGovDialogRef, RdtGovDialogService, RdtGovIconComponent, RdtGovNotificationService, RdtGovNumberInputComponent, RdtGovSelectComponent, RdtGovSelectOfflineProviderDirective, RdtGovSpinnerComponent, RdtGovStandardDialogComponent, RdtGovTextInputComponent, RdtGovThemeService, forceFocus, initRdtGov, provideNgrdtGov };
|
|
500
|
-
export type { GovButtonType, GovColor, GovDialogSize, GovLabelPosition, GovMessageVariant, GovSize, RdtDialogHeaderIconsInt, RdtGovConfig, RdtGovDialogConfigInt, RdtGovDialogRefInt, RdtGovNotificationConfig, RdtGovNotificationConfigBase };
|
|
536
|
+
export { DEFAULT_GOV_BUTTON_COLOR, DEFAULT_GOV_BUTTON_SIZE, DEFAULT_GOV_BUTTON_TYPE, RDT_GOV_ALERT_DIALOG_CONFIG_PROVIDER, RDT_GOV_BASE_DIALOG_CONFIG_PROVIDER, RDT_GOV_CONFIRM_DIALOG_CONFIG_PROVIDER, RDT_GOV_NOTIFICATION_CONFIG_PROVIDER, RDT_GOV_NOTIFICATION_DEFAULT_CONFIG, RdtGovButtonComponent, RdtGovCheckboxComponent, RdtGovDateComponent, RdtGovDialogBase, RdtGovDialogComponent, RdtGovDialogContentComponent, RdtGovDialogFooterComponent, RdtGovDialogHeaderComponent, RdtGovDialogLoadingComponent, RdtGovDialogRef, RdtGovDialogService, RdtGovDragDirective, RdtGovIconComponent, RdtGovNotificationService, RdtGovNumberInputComponent, RdtGovSelectComponent, RdtGovSelectOfflineProviderDirective, RdtGovSpinnerComponent, RdtGovStandardDialogComponent, RdtGovStateComponent, RdtGovTextInputComponent, RdtGovThemeService, forceFocus, initRdtGov, provideNgrdtGov };
|
|
537
|
+
export type { GovButtonType, GovColor, GovDialogSize, GovLabelPosition, GovMessageVariant, GovSize, GovStateSize, RdtDialogHeaderIconsInt, RdtGovConfig, RdtGovDialogConfigInt, RdtGovDialogRefInt, RdtGovNotificationConfig, RdtGovNotificationConfigBase };
|