@ngrdt/gov 0.0.78 → 0.0.81
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 +439 -13
- package/fesm2022/ngrdt-gov.mjs.map +1 -1
- package/index.d.ts +265 -5
- package/package.json +8 -7
- package/rdt-gov-menu.css +88 -0
- package/rdt-gov-table.css +73 -0
- package/styles.css +8 -0
- package/lib/gov/ui/button/rdt-gov-button.component.scss +0 -0
- package/lib/gov/ui/checkbox/rdt-gov-checkbox.component.scss +0 -11
- package/lib/gov/ui/gov-shared-styles.scss +0 -23
- package/lib/gov/ui/icon/rdt-gov-icon.component.scss +0 -13
- package/lib/gov/ui/select/rdt-gov-select.component.scss +0 -288
package/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import * as _ngrdt_loading from '@ngrdt/loading';
|
|
2
|
+
import { RdtSpinnerComponent } from '@ngrdt/loading';
|
|
3
|
+
import * as _ngrdt_gov from '@ngrdt/gov';
|
|
1
4
|
import * as _ngrdt_button from '@ngrdt/button';
|
|
2
5
|
import { RdtButtonBase } from '@ngrdt/button';
|
|
3
6
|
import * as _ngrdt_forms from '@ngrdt/forms';
|
|
@@ -5,17 +8,19 @@ import { RdtCheckboxComponent, RdtDateComponent, RdtNumericInputComponent, RdtSe
|
|
|
5
8
|
import * as _ngrdt_icon from '@ngrdt/icon';
|
|
6
9
|
import { RdtIcon, RdtIconComponent } from '@ngrdt/icon';
|
|
7
10
|
import * as _angular_core from '@angular/core';
|
|
8
|
-
import { Injector, ElementRef, OnDestroy } from '@angular/core';
|
|
11
|
+
import { Injector, ElementRef, Type, WritableSignal, InjectionToken, OnDestroy } from '@angular/core';
|
|
9
12
|
import { RdtBooleanResult } from '@ngrdt/core';
|
|
10
13
|
import { Nullable } from '@ngrdt/utils';
|
|
11
14
|
import { GovFormInput } from '@gov-design-system-ce/angular';
|
|
12
|
-
import { GovFormInputCustomEvent, FormInputEvent } from '@gov-design-system-ce/components';
|
|
15
|
+
import { GovFormInputCustomEvent, FormInputEvent, Nullable as Nullable$1 } from '@gov-design-system-ce/components';
|
|
16
|
+
import { Observable } from 'rxjs';
|
|
13
17
|
|
|
14
18
|
type GovSize = 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
15
19
|
type GovColor = 'primary' | 'secondary' | 'neutral' | 'success' | 'warning' | 'error';
|
|
16
20
|
type GovMessageVariant = 'success' | 'error' | 'warning' | 'secondary';
|
|
17
21
|
type GovButtonType = 'solid' | 'outlined' | 'base' | 'link';
|
|
18
22
|
type GovLabelPosition = 'left' | 'right' | 'top';
|
|
23
|
+
type GovDialogSize = 'content' | 'fullscreen' | `${number}px`;
|
|
19
24
|
|
|
20
25
|
declare const DEFAULT_GOV_BUTTON_COLOR: GovColor;
|
|
21
26
|
declare const DEFAULT_GOV_BUTTON_TYPE: GovButtonType;
|
|
@@ -65,6 +70,19 @@ declare class RdtGovIconComponent extends RdtIconComponent<string> {
|
|
|
65
70
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RdtGovIconComponent, "rdt-gov-icon", never, {}, {}, never, never, true, never>;
|
|
66
71
|
}
|
|
67
72
|
|
|
73
|
+
declare class RdtGovSpinnerComponent extends RdtSpinnerComponent {
|
|
74
|
+
readonly message: _angular_core.WritableSignal<string>;
|
|
75
|
+
readonly messageInput: _angular_core.InputSignal<string>;
|
|
76
|
+
readonly size: _angular_core.WritableSignal<"s" | "m" | "l">;
|
|
77
|
+
readonly sizeInput: _angular_core.InputSignal<"s" | "m" | "l">;
|
|
78
|
+
readonly mode: _angular_core.WritableSignal<"overlay" | "local">;
|
|
79
|
+
readonly modeInput: _angular_core.InputSignal<"overlay" | "local">;
|
|
80
|
+
readonly messagePositionInput: _angular_core.InputSignal<"right" | "left" | "below" | "above">;
|
|
81
|
+
readonly messagePosition: _angular_core.WritableSignal<"right" | "left" | "below" | "above">;
|
|
82
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdtGovSpinnerComponent, never>;
|
|
83
|
+
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>;
|
|
84
|
+
}
|
|
85
|
+
|
|
68
86
|
declare function provideNgrdtGov(options?: {}): (_angular_core.EnvironmentProviders | {
|
|
69
87
|
provide: _angular_core.InjectionToken<_angular_core.Type<_ngrdt_icon.RdtIconBaseInt>>;
|
|
70
88
|
useValue: typeof RdtGovIconComponent;
|
|
@@ -85,8 +103,82 @@ declare function provideNgrdtGov(options?: {}): (_angular_core.EnvironmentProvid
|
|
|
85
103
|
"chevron-right": string;
|
|
86
104
|
"sort-down": string;
|
|
87
105
|
"sort-up": string;
|
|
88
|
-
|
|
106
|
+
filter: string;
|
|
107
|
+
duration?: undefined;
|
|
108
|
+
positionVert?: undefined;
|
|
109
|
+
positionHoriz?: undefined;
|
|
110
|
+
successMsg?: undefined;
|
|
111
|
+
warningMsg?: undefined;
|
|
112
|
+
errorMsg?: undefined;
|
|
113
|
+
minHeight?: undefined;
|
|
114
|
+
isDraggable?: undefined;
|
|
115
|
+
};
|
|
116
|
+
} | {
|
|
117
|
+
provide: _angular_core.InjectionToken<_ngrdt_gov.RdtGovNotificationDefaultConfig>;
|
|
118
|
+
useValue: {
|
|
119
|
+
duration: number;
|
|
120
|
+
positionVert: string;
|
|
121
|
+
positionHoriz: string;
|
|
122
|
+
successMsg: string;
|
|
123
|
+
warningMsg: string;
|
|
124
|
+
errorMsg: string;
|
|
125
|
+
"arrow-right"?: undefined;
|
|
126
|
+
"arrow-down"?: undefined;
|
|
127
|
+
"chevron-double-left"?: undefined;
|
|
128
|
+
"chevron-double-right"?: undefined;
|
|
129
|
+
"chevron-left"?: undefined;
|
|
130
|
+
"chevron-right"?: undefined;
|
|
131
|
+
"sort-down"?: undefined;
|
|
132
|
+
"sort-up"?: undefined;
|
|
133
|
+
filter?: undefined;
|
|
134
|
+
minHeight?: undefined;
|
|
135
|
+
isDraggable?: undefined;
|
|
136
|
+
};
|
|
137
|
+
} | {
|
|
138
|
+
provide: _angular_core.InjectionToken<Partial<_ngrdt_gov.RdtGovDialogAlertConfigInt>>;
|
|
139
|
+
useValue: {
|
|
140
|
+
minHeight: string;
|
|
141
|
+
"arrow-right"?: undefined;
|
|
142
|
+
"arrow-down"?: undefined;
|
|
143
|
+
"chevron-double-left"?: undefined;
|
|
144
|
+
"chevron-double-right"?: undefined;
|
|
145
|
+
"chevron-left"?: undefined;
|
|
146
|
+
"chevron-right"?: undefined;
|
|
147
|
+
"sort-down"?: undefined;
|
|
148
|
+
"sort-up"?: undefined;
|
|
149
|
+
filter?: undefined;
|
|
150
|
+
duration?: undefined;
|
|
151
|
+
positionVert?: undefined;
|
|
152
|
+
positionHoriz?: undefined;
|
|
153
|
+
successMsg?: undefined;
|
|
154
|
+
warningMsg?: undefined;
|
|
155
|
+
errorMsg?: undefined;
|
|
156
|
+
isDraggable?: undefined;
|
|
157
|
+
};
|
|
158
|
+
} | {
|
|
159
|
+
provide: _angular_core.InjectionToken<Partial<_ngrdt_gov.RdtGovDialogConfigInt<any, any>>>;
|
|
160
|
+
useValue: {
|
|
161
|
+
isDraggable: boolean;
|
|
162
|
+
minHeight: string;
|
|
163
|
+
"arrow-right"?: undefined;
|
|
164
|
+
"arrow-down"?: undefined;
|
|
165
|
+
"chevron-double-left"?: undefined;
|
|
166
|
+
"chevron-double-right"?: undefined;
|
|
167
|
+
"chevron-left"?: undefined;
|
|
168
|
+
"chevron-right"?: undefined;
|
|
169
|
+
"sort-down"?: undefined;
|
|
170
|
+
"sort-up"?: undefined;
|
|
171
|
+
filter?: undefined;
|
|
172
|
+
duration?: undefined;
|
|
173
|
+
positionVert?: undefined;
|
|
174
|
+
positionHoriz?: undefined;
|
|
175
|
+
successMsg?: undefined;
|
|
176
|
+
warningMsg?: undefined;
|
|
177
|
+
errorMsg?: undefined;
|
|
89
178
|
};
|
|
179
|
+
} | {
|
|
180
|
+
provide: _angular_core.InjectionToken<_angular_core.Type<_ngrdt_loading.RdtSpinnerComponent>>;
|
|
181
|
+
useValue: typeof RdtGovSpinnerComponent;
|
|
90
182
|
})[];
|
|
91
183
|
|
|
92
184
|
interface RdtGovConfig {
|
|
@@ -127,6 +219,174 @@ declare class RdtGovDateComponent extends RdtDateComponent {
|
|
|
127
219
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RdtGovDateComponent, "rdt-gov-date", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "outputMode": { "alias": "outputMode"; "required": false; "isSignal": true; }; "labelPositionInput": { "alias": "labelPosition"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
128
220
|
}
|
|
129
221
|
|
|
222
|
+
declare class RdtGovDialogContentComponent {
|
|
223
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdtGovDialogContentComponent, never>;
|
|
224
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RdtGovDialogContentComponent, "rdt-gov-dialog-content", never, {}, {}, never, ["*"], true, never>;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
declare abstract class RdtGovBaseDialog<TIn = any, TOut = any> {
|
|
228
|
+
protected readonly dialogRef: RdtGovDialogRef<TIn, TOut, any>;
|
|
229
|
+
constructor();
|
|
230
|
+
protected ready(): void;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
interface RdtDialogHeaderIconsInt {
|
|
234
|
+
iconStart?: RdtIcon;
|
|
235
|
+
iconStartColor?: GovColor;
|
|
236
|
+
icon?: RdtIcon;
|
|
237
|
+
iconColor?: GovColor;
|
|
238
|
+
}
|
|
239
|
+
interface RdtGovDialogConfigInt<TIn, TOut> {
|
|
240
|
+
component: Type<RdtGovBaseDialog<TIn, TOut>>;
|
|
241
|
+
size?: GovDialogSize;
|
|
242
|
+
minWidth?: `${number}px`;
|
|
243
|
+
maxWidth?: `${number}px`;
|
|
244
|
+
minHeight?: `${number}px`;
|
|
245
|
+
maxHeight?: `${number}px`;
|
|
246
|
+
header?: string;
|
|
247
|
+
headerIcons?: RdtDialogHeaderIconsInt;
|
|
248
|
+
inputData?: TIn;
|
|
249
|
+
initialLoading?: boolean;
|
|
250
|
+
injector?: Injector;
|
|
251
|
+
hasBackdrop?: boolean;
|
|
252
|
+
isDraggable?: boolean;
|
|
253
|
+
isResizable?: boolean;
|
|
254
|
+
}
|
|
255
|
+
interface RdtDialogInfoButtonInt {
|
|
256
|
+
text?: string;
|
|
257
|
+
icon?: RdtIcon;
|
|
258
|
+
iconStart?: RdtIcon;
|
|
259
|
+
size?: GovSize;
|
|
260
|
+
color?: GovColor;
|
|
261
|
+
appearance?: GovButtonType;
|
|
262
|
+
isAutofocused?: boolean;
|
|
263
|
+
}
|
|
264
|
+
interface RdtGovDialogAlertConfigInt {
|
|
265
|
+
minWidth?: `${number}px`;
|
|
266
|
+
maxWidth?: `${number}px`;
|
|
267
|
+
minHeight?: `${number}px`;
|
|
268
|
+
maxHeight?: `${number}px`;
|
|
269
|
+
message: string;
|
|
270
|
+
header?: string;
|
|
271
|
+
headerIcons?: RdtDialogHeaderIconsInt;
|
|
272
|
+
okBtn?: RdtDialogInfoButtonInt;
|
|
273
|
+
}
|
|
274
|
+
interface RdtGovDialogConfimConfigInt {
|
|
275
|
+
minWidth?: `${number}px`;
|
|
276
|
+
maxWidth?: `${number}px`;
|
|
277
|
+
minHeight?: `${number}px`;
|
|
278
|
+
maxHeight?: `${number}px`;
|
|
279
|
+
message: string;
|
|
280
|
+
header?: string;
|
|
281
|
+
headerIcons?: RdtDialogHeaderIconsInt;
|
|
282
|
+
yesBtn?: RdtDialogInfoButtonInt;
|
|
283
|
+
noBtn?: RdtDialogInfoButtonInt;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
interface RdtGovDialogRefInt<TIn, TOut, TConfig extends RdtGovDialogConfigInt<TIn, TOut>> {
|
|
287
|
+
close(data?: TOut): void;
|
|
288
|
+
ready(): void;
|
|
289
|
+
close$: Observable<TOut | undefined>;
|
|
290
|
+
open$: Observable<void>;
|
|
291
|
+
header: WritableSignal<string | null>;
|
|
292
|
+
isLoading: WritableSignal<boolean>;
|
|
293
|
+
hasBackdrop: WritableSignal<boolean>;
|
|
294
|
+
isDraggable: WritableSignal<boolean>;
|
|
295
|
+
isResizable: WritableSignal<boolean>;
|
|
296
|
+
inputData: WritableSignal<TIn>;
|
|
297
|
+
config: WritableSignal<TConfig>;
|
|
298
|
+
}
|
|
299
|
+
declare class RdtGovDialogRef<TIn = any, TOut = any, TConfig extends RdtGovDialogConfigInt<TIn, TOut> = any> implements RdtGovDialogRefInt<TIn, TOut, TConfig> {
|
|
300
|
+
config: WritableSignal<TConfig>;
|
|
301
|
+
private readonly _close$;
|
|
302
|
+
private readonly _open$;
|
|
303
|
+
readonly close$: Observable<TOut | undefined>;
|
|
304
|
+
readonly open$: Observable<void>;
|
|
305
|
+
readonly header: WritableSignal<string | null>;
|
|
306
|
+
readonly headerIcons: WritableSignal<RdtDialogHeaderIconsInt | null>;
|
|
307
|
+
readonly isLoading: WritableSignal<boolean>;
|
|
308
|
+
readonly hasBackdrop: WritableSignal<boolean>;
|
|
309
|
+
readonly isDraggable: WritableSignal<boolean>;
|
|
310
|
+
readonly isResizable: WritableSignal<boolean>;
|
|
311
|
+
readonly inputData: WritableSignal<TIn>;
|
|
312
|
+
constructor(config: TConfig);
|
|
313
|
+
ready(): void;
|
|
314
|
+
close(data?: TOut): void;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
declare class RdtGovDialogFooterComponent {
|
|
318
|
+
readonly dialogRef: RdtGovDialogRef<any, any, any>;
|
|
319
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdtGovDialogFooterComponent, never>;
|
|
320
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RdtGovDialogFooterComponent, "rdt-gov-dialog-footer", never, {}, {}, never, ["*"], true, never>;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
declare class RdtGovDialogHeaderComponent {
|
|
324
|
+
readonly dialogRef: RdtGovDialogRef<any, any, any>;
|
|
325
|
+
readonly govIcon = RdtIcon.Close;
|
|
326
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdtGovDialogHeaderComponent, never>;
|
|
327
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RdtGovDialogHeaderComponent, "rdt-gov-dialog-header", never, {}, {}, never, never, true, never>;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
declare class RdtGovDialogLoadingComponent {
|
|
331
|
+
readonly messageInput: _angular_core.InputSignal<Nullable$1<string>>;
|
|
332
|
+
readonly message: _angular_core.WritableSignal<Nullable$1<string>>;
|
|
333
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdtGovDialogLoadingComponent, never>;
|
|
334
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RdtGovDialogLoadingComponent, "rdt-gov-dialog-loading", never, { "messageInput": { "alias": "message"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
declare const RDT_BASE_DIALOG_PROVIDER: InjectionToken<Partial<RdtGovDialogConfigInt<any, any>>>;
|
|
338
|
+
declare const RDT_ALERT_DIALOG_PROVIDER: InjectionToken<Partial<RdtGovDialogAlertConfigInt>>;
|
|
339
|
+
declare const RDT_CONFIRM_DIALOG_PROVIDER: InjectionToken<Partial<RdtGovDialogConfimConfigInt>>;
|
|
340
|
+
|
|
341
|
+
declare class RdtGovDialogService {
|
|
342
|
+
private overlay;
|
|
343
|
+
private confirmDefaults;
|
|
344
|
+
private alertDefaults;
|
|
345
|
+
private baseDefaults;
|
|
346
|
+
open<TIn = any, TOut = any, TConfig extends RdtGovDialogConfigInt<TIn, TOut> = RdtGovDialogConfigInt<TIn, TOut>>(config: TConfig): RdtGovDialogRef<TIn, TOut>;
|
|
347
|
+
alert(config: RdtGovDialogAlertConfigInt): RdtGovDialogRef<any, any, any>;
|
|
348
|
+
confirm(config: RdtGovDialogConfimConfigInt): RdtGovDialogRef<any, any, any>;
|
|
349
|
+
private parseInternalConfig;
|
|
350
|
+
private getOverlayConfig;
|
|
351
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdtGovDialogService, never>;
|
|
352
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<RdtGovDialogService>;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
interface RdtGovNotificationBase {
|
|
356
|
+
duration: number;
|
|
357
|
+
positionVert: 'top' | 'bottom';
|
|
358
|
+
positionHoriz: 'left' | 'center' | 'right';
|
|
359
|
+
}
|
|
360
|
+
interface RdtGovNotificationDefaultConfig extends RdtGovNotificationBase {
|
|
361
|
+
successMsg: string;
|
|
362
|
+
errorMsg: string;
|
|
363
|
+
warningMsg: string;
|
|
364
|
+
}
|
|
365
|
+
interface RdtGovNotificationCustomConfig extends RdtGovNotificationBase {
|
|
366
|
+
icon?: RdtIcon;
|
|
367
|
+
message: string;
|
|
368
|
+
color: 'success' | 'warning' | 'error' | 'primary' | 'neutral';
|
|
369
|
+
closeLabel?: string;
|
|
370
|
+
type: 'bold' | 'subtle';
|
|
371
|
+
}
|
|
372
|
+
declare class RdtGovNotificationService {
|
|
373
|
+
private overlay;
|
|
374
|
+
private injector;
|
|
375
|
+
private translateService;
|
|
376
|
+
private govDefaults;
|
|
377
|
+
show(cfg: RdtGovNotificationCustomConfig): void;
|
|
378
|
+
success(customMsg?: string): void;
|
|
379
|
+
warning(customMsg?: string): void;
|
|
380
|
+
error(customMsg?: string): void;
|
|
381
|
+
private openDefault;
|
|
382
|
+
private open;
|
|
383
|
+
private close;
|
|
384
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdtGovNotificationService, never>;
|
|
385
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<RdtGovNotificationService>;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
declare const RDT_BASE_NOTIFICATION_PROVIDER: InjectionToken<RdtGovNotificationDefaultConfig>;
|
|
389
|
+
|
|
130
390
|
declare class RdtGovNumberInputComponent extends RdtNumericInputComponent {
|
|
131
391
|
private readonly renderer;
|
|
132
392
|
protected readonly govInput: _angular_core.Signal<ElementRef<GovFormInput> | undefined>;
|
|
@@ -232,5 +492,5 @@ declare class RdtGovThemeService {
|
|
|
232
492
|
|
|
233
493
|
declare function forceFocus(input: HTMLInputElement): void;
|
|
234
494
|
|
|
235
|
-
export { DEFAULT_GOV_BUTTON_COLOR, DEFAULT_GOV_BUTTON_SIZE, DEFAULT_GOV_BUTTON_TYPE, RDT_DATE_MIN_YEAR, RdtGovButtonComponent, RdtGovCheckboxComponent, RdtGovDateComponent, RdtGovIconComponent, RdtGovNumberInputComponent, RdtGovSelectComponent, RdtGovSelectOfflineProviderDirective, RdtGovTextInputComponent, RdtGovThemeService, forceFocus, initRdtGov, provideNgrdtGov };
|
|
236
|
-
export type { GovButtonType, GovColor, GovLabelPosition, GovMessageVariant, GovSize, RdtGovConfig };
|
|
495
|
+
export { DEFAULT_GOV_BUTTON_COLOR, DEFAULT_GOV_BUTTON_SIZE, DEFAULT_GOV_BUTTON_TYPE, RDT_ALERT_DIALOG_PROVIDER, RDT_BASE_DIALOG_PROVIDER, RDT_BASE_NOTIFICATION_PROVIDER, RDT_CONFIRM_DIALOG_PROVIDER, RDT_DATE_MIN_YEAR, RdtGovBaseDialog, RdtGovButtonComponent, RdtGovCheckboxComponent, RdtGovDateComponent, RdtGovDialogContentComponent, RdtGovDialogFooterComponent, RdtGovDialogHeaderComponent, RdtGovDialogLoadingComponent, RdtGovDialogService, RdtGovIconComponent, RdtGovNotificationService, RdtGovNumberInputComponent, RdtGovSelectComponent, RdtGovSelectOfflineProviderDirective, RdtGovSpinnerComponent, RdtGovTextInputComponent, RdtGovThemeService, forceFocus, initRdtGov, provideNgrdtGov };
|
|
496
|
+
export type { GovButtonType, GovColor, GovDialogSize, GovLabelPosition, GovMessageVariant, GovSize, RdtGovConfig, RdtGovDialogAlertConfigInt, RdtGovDialogConfigInt, RdtGovDialogConfimConfigInt, RdtGovNotificationCustomConfig, RdtGovNotificationDefaultConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngrdt/gov",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.81",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/core": "^20.0.0",
|
|
6
6
|
"@angular/forms": "^20.0.0",
|
|
@@ -9,18 +9,19 @@
|
|
|
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.81",
|
|
13
|
+
"@ngrdt/forms": "^0.0.81",
|
|
14
|
+
"@ngrdt/icon": "^0.0.81",
|
|
15
|
+
"@ngrdt/utils": "^0.0.81",
|
|
16
16
|
"@angular/cdk": "^20.2.0",
|
|
17
|
-
"@ngrdt/button": "^0.0.
|
|
18
|
-
"@ngrdt/router": "^0.0.
|
|
17
|
+
"@ngrdt/button": "^0.0.81",
|
|
18
|
+
"@ngrdt/router": "^0.0.81"
|
|
19
19
|
},
|
|
20
20
|
"sideEffects": false,
|
|
21
21
|
"exports": {
|
|
22
22
|
"./rdt-gov-menu.css": "./src/lib/gov/ui/menu/rdt-gov-menu.css",
|
|
23
23
|
"./rdt-gov-table.css": "./src/lib/gov/ui/table/rdt-gov-table.css",
|
|
24
|
+
"./rdt-gov-tab.css": "./src/lib/gov/ui/tab/rdt-gov-tab.css",
|
|
24
25
|
"./package.json": {
|
|
25
26
|
"default": "./package.json"
|
|
26
27
|
},
|
package/rdt-gov-menu.css
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--rdt-menu-background: var(--background-block-primary);
|
|
3
|
+
--rdt-menu-border-radius: 0 0 var(--corner-radius-m) var(--corner-radius-m);
|
|
4
|
+
--rdt-menu-bar-item-background: transparent;
|
|
5
|
+
--rdt-menu-bar-item-text-color: var(--text-primary-color);
|
|
6
|
+
--rdt-menu-bar-item-padding: var(--spacing-s) var(--spacing-m) !important;
|
|
7
|
+
--rdt-menu-bar-item-border-radius: var(
|
|
8
|
+
--outline-border-radius,
|
|
9
|
+
var(--corner-radius-xs-nudge)
|
|
10
|
+
);
|
|
11
|
+
--rdt-menu-bar-item-border: none;
|
|
12
|
+
--rdt-menu-bar-item-outline: none;
|
|
13
|
+
--rdt-menu-bar-item-margin: 0;
|
|
14
|
+
--rdt-menu-bar-item-font-size: var(--font-size-body-m);
|
|
15
|
+
--rdt-menu-bar-item-font-weight: 500;
|
|
16
|
+
--rdt-menu-item-font-size: var(--font-size-body-s);
|
|
17
|
+
--rdt-menu-item-padding: var(--spacing-xs) 0 var(--spacing-xs)
|
|
18
|
+
var(--spacing-xs);
|
|
19
|
+
--rdt-menu-bar-item-hover-background: var(--button-outlined-primary-hover);
|
|
20
|
+
--rdt-menu-bar-item-hover-text-color: var(--text-primary-color);
|
|
21
|
+
--rdt-menu-bar-item-hover-border: none;
|
|
22
|
+
--rdt-menu-bar-item-hover-outline: none;
|
|
23
|
+
--rdt-menu-bar-item-expanded-background: var(--button-outlined-primary-hover);
|
|
24
|
+
--rdt-menu-bar-item-expanded-text-color: var(--text-primary-color);
|
|
25
|
+
--rdt-menu-bar-item-expanded-border: none;
|
|
26
|
+
--rdt-menu-bar-item-expanded-outline: none;
|
|
27
|
+
--rdt-menu-bar-item-focus-background: transparent;
|
|
28
|
+
--rdt-menu-bar-item-focus-text-color: var(--text-primary-color);
|
|
29
|
+
--rdt-menu-bar-item-focus-border: none;
|
|
30
|
+
--rdt-menu-bar-item-focus-outline: var(--outline-width, 0.125rem) solid
|
|
31
|
+
var(--status-focus);
|
|
32
|
+
--rdt-menu-bar-item-route-active-background: var(
|
|
33
|
+
--button-outlined-primary-active
|
|
34
|
+
);
|
|
35
|
+
--rdt-menu-bar-item-route-active-text-color: var(--text-primary-color);
|
|
36
|
+
--rdt-menu-bar-item-route-active-border: none;
|
|
37
|
+
--rdt-menu-bar-item-route-active-outline: none;
|
|
38
|
+
--rdt-menu-bar-item-disabled-background: var(
|
|
39
|
+
--disabled-background,
|
|
40
|
+
var(--button-solid-disabled)
|
|
41
|
+
);
|
|
42
|
+
--rdt-menu-bar-item-disabled-text-color: var(
|
|
43
|
+
--disabled-color,
|
|
44
|
+
var(--text-disabled)
|
|
45
|
+
);
|
|
46
|
+
--rdt-menu-bar-item-disabled-border: none;
|
|
47
|
+
--rdt-menu-bar-item-disabled-outline: none;
|
|
48
|
+
}
|
|
49
|
+
:root ul {
|
|
50
|
+
justify-content: space-between;
|
|
51
|
+
}
|
|
52
|
+
:root ul li:before {
|
|
53
|
+
content: none;
|
|
54
|
+
}
|
|
55
|
+
:root .menu-item:hover {
|
|
56
|
+
text-decoration: underline;
|
|
57
|
+
}
|
|
58
|
+
:root ul.menu-item-container {
|
|
59
|
+
min-width: 280px;
|
|
60
|
+
padding: var(--spacing-s) var(--spacing-m) !important;
|
|
61
|
+
}
|
|
62
|
+
:root .menu-bar-item-content {
|
|
63
|
+
gap: var(--spacing-m);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@media only screen and (max-width: 767px) {
|
|
67
|
+
:root {
|
|
68
|
+
--rdt-menu-background: transparent;
|
|
69
|
+
}
|
|
70
|
+
:root .menu-bar-item {
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
}
|
|
73
|
+
:root .menu-bar-item-container {
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
}
|
|
76
|
+
:root .menu-bar-item-content {
|
|
77
|
+
width: 100%;
|
|
78
|
+
background-color: var(--background-block-primary);
|
|
79
|
+
}
|
|
80
|
+
:root rdt-menu-overlay {
|
|
81
|
+
height: 0px;
|
|
82
|
+
width: 100%;
|
|
83
|
+
position: unset;
|
|
84
|
+
}
|
|
85
|
+
:root rdt-menu-overlay.expanded {
|
|
86
|
+
height: unset;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
.action-btn {
|
|
2
|
+
background-color: transparent !important;
|
|
3
|
+
color: var(--text-primary-color);
|
|
4
|
+
font-size: var(--font-size-body-s);
|
|
5
|
+
line-height: 150%;
|
|
6
|
+
font-weight: 700;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
select.action-btn {
|
|
10
|
+
background-color: var(--background-block-primary) !important;
|
|
11
|
+
border: 1px solid var(--border-subtle) !important;
|
|
12
|
+
color: var(--text-primary);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.action-btn:hover {
|
|
16
|
+
background-color: var(
|
|
17
|
+
--hover-background,
|
|
18
|
+
var(--button-outlined-primary-hover)
|
|
19
|
+
) !important;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.action-btn.selected {
|
|
23
|
+
background-color: var(
|
|
24
|
+
--hover-background,
|
|
25
|
+
var(--button-outlined-primary-hover)
|
|
26
|
+
) !important;
|
|
27
|
+
color: var(--text-primary-color) !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
rdt-table {
|
|
31
|
+
table {
|
|
32
|
+
border-radius: var(--border-radius, var(--corner-radius-s));
|
|
33
|
+
border-spacing: 0px;
|
|
34
|
+
thead {
|
|
35
|
+
tr {
|
|
36
|
+
th {
|
|
37
|
+
padding: 0.25rem 0.5rem;
|
|
38
|
+
border-bottom: 1px solid var(--border-subtlest);
|
|
39
|
+
background-color: var(
|
|
40
|
+
--form-bg-color,
|
|
41
|
+
var(--background-block-primary)
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
tbody {
|
|
47
|
+
background-color: var(--form-bg-color, var(--background-block-primary));
|
|
48
|
+
border: 1px solid var(--border-subtle) !important;
|
|
49
|
+
tr {
|
|
50
|
+
td {
|
|
51
|
+
border-bottom: 1px solid var(--border-subtlest);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
tr.row-selected {
|
|
55
|
+
td {
|
|
56
|
+
background-color: var(--background-primary-subtle) !important;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
.rdt-select-column-cell {
|
|
60
|
+
border-right: 1px solid var(--border-subtlest);
|
|
61
|
+
background-color: var(
|
|
62
|
+
--form-bg-color,
|
|
63
|
+
var(--background-block-primary)
|
|
64
|
+
) !important;
|
|
65
|
+
.rdt-select-column-cell-wrapper {
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
justify-content: center;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
package/styles.css
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
@import '@gov-design-system-ce/styles/tokens.css';
|
|
2
|
+
@import '@gov-design-system-ce/styles/styles.css';
|
|
3
|
+
@import '@gov-design-system-ce/styles/layout.css';
|
|
4
|
+
@import '@gov-design-system-ce/styles/components.css';
|
|
5
|
+
|
|
6
|
+
@import '@ngrdt/gov/rdt-gov-menu.css';
|
|
7
|
+
@import '@ngrdt/gov/rdt-gov-table.css';
|
|
8
|
+
@import '@ngrdt/gov/rdt-gov-tab.css'; /* './lib/gov/ui/tab/rdt-gov.tab.css'; */
|
|
File without changes
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
.warning-color {
|
|
2
|
-
&-icon {
|
|
3
|
-
color: var(--icon-error) !important;
|
|
4
|
-
}
|
|
5
|
-
&-text {
|
|
6
|
-
color: var(--text-status-error) !important;
|
|
7
|
-
}
|
|
8
|
-
&-gov-label {
|
|
9
|
-
.gov-form-label__label {
|
|
10
|
-
color: var(--form-state-label-error, var(--text-status-error)) !important;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.s_label {
|
|
16
|
-
font-size: var(--font-size-body-s);
|
|
17
|
-
line-height: 150%;
|
|
18
|
-
font-weight: 400;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
gov-form-message {
|
|
22
|
-
font-size: var(--font-size-body-s);
|
|
23
|
-
}
|