@bcgov/nr-ngx-component-lib 21.0.94 → 21.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/package.json
CHANGED
package/styles/global.scss
CHANGED
|
@@ -81,23 +81,36 @@ html {
|
|
|
81
81
|
|
|
82
82
|
.cdk-overlay-pane:has( .nrcl-application-menu ) {
|
|
83
83
|
.nrcl-application-menu {
|
|
84
|
-
.
|
|
85
|
-
|
|
86
|
-
display: flex;
|
|
87
|
-
gap: 8px;
|
|
84
|
+
.mat-mdc-menu-content {
|
|
85
|
+
padding: 4px;
|
|
88
86
|
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
.nrcl-application-menu-item {
|
|
88
|
+
.mat-mdc-menu-item-text {
|
|
89
|
+
display: flex;
|
|
90
|
+
gap: 8px;
|
|
91
|
+
|
|
92
|
+
.nrcl-icon {
|
|
93
|
+
flex-grow: 0;
|
|
94
|
+
|
|
95
|
+
.mat-icon {
|
|
96
|
+
margin: 0;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
91
99
|
|
|
92
|
-
.
|
|
93
|
-
|
|
100
|
+
.label {
|
|
101
|
+
flex-grow: 1;
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
94
104
|
}
|
|
95
105
|
}
|
|
96
106
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
107
|
+
&.cdk-keyboard-focused {
|
|
108
|
+
background-color: #ffffff;
|
|
109
|
+
outline: 2px solid #2E5DD7;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&:hover {
|
|
113
|
+
background-color: #EDEBE9;
|
|
101
114
|
}
|
|
102
115
|
}
|
|
103
116
|
}
|
|
@@ -2,6 +2,9 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { OnInit, ElementRef, EventEmitter, OnDestroy, ChangeDetectorRef, OnChanges, NgZone, SimpleChanges, AfterContentInit, TemplateRef, AfterViewInit, ViewContainerRef, Renderer2, AfterContentChecked, QueryList } from '@angular/core';
|
|
3
3
|
import { Observable, Subscription } from 'rxjs';
|
|
4
4
|
import { MatExpansionPanel } from '@angular/material/expansion';
|
|
5
|
+
import { MatInput } from '@angular/material/input';
|
|
6
|
+
import { Moment } from 'moment';
|
|
7
|
+
import { MatDatepicker } from '@angular/material/datepicker';
|
|
5
8
|
import { Overlay, OverlayRef } from '@angular/cdk/overlay';
|
|
6
9
|
import { FormControl } from '@angular/forms';
|
|
7
10
|
import { MatSelectionListChange } from '@angular/material/list';
|
|
@@ -13,8 +16,6 @@ import * as _angular_material_dialog from '@angular/material/dialog';
|
|
|
13
16
|
import { MatDialogRef, MatDialog, MatDialogConfig } from '@angular/material/dialog';
|
|
14
17
|
import { MatTabGroup } from '@angular/material/tabs';
|
|
15
18
|
import { MatMenuPanel } from '@angular/material/menu';
|
|
16
|
-
import { MatDatepicker } from '@angular/material/datepicker';
|
|
17
|
-
import { Moment } from 'moment';
|
|
18
19
|
import { ComponentType } from '@angular/cdk/portal';
|
|
19
20
|
|
|
20
21
|
declare class NrclBase implements OnInit {
|
|
@@ -82,10 +83,11 @@ declare class ApplicationMenuComponent extends ConfigurationSubscriberBase {
|
|
|
82
83
|
label?: string;
|
|
83
84
|
icon: string;
|
|
84
85
|
items: MenuItem[];
|
|
86
|
+
currentItemId?: string;
|
|
85
87
|
menuItemClick: EventEmitter<string>;
|
|
86
88
|
onMenuItemClick(item: MenuItem): void;
|
|
87
89
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApplicationMenuComponent, never>;
|
|
88
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ApplicationMenuComponent, "nrcl-application-menu", never, { "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "menuItemClick": "menuItemClick"; }, never, never, true, never>;
|
|
90
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ApplicationMenuComponent, "nrcl-application-menu", never, { "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "items": { "alias": "items"; "required": false; }; "currentItemId": { "alias": "currentItemId"; "required": false; }; }, { "menuItemClick": "menuItemClick"; }, never, never, true, never>;
|
|
89
91
|
}
|
|
90
92
|
|
|
91
93
|
declare class ButtonComponent extends ConfigurationSubscriberBase implements OnChanges {
|
|
@@ -201,16 +203,25 @@ declare class FilterContainerComponent extends NrclBase {
|
|
|
201
203
|
static ɵcmp: i0.ɵɵComponentDeclaration<FilterContainerComponent, "nrcl-filter-container", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "wide": { "alias": "wide"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
202
204
|
}
|
|
203
205
|
|
|
204
|
-
declare class FilterDateComponent extends NrclBase {
|
|
206
|
+
declare class FilterDateComponent extends NrclBase implements OnChanges {
|
|
205
207
|
label: string;
|
|
206
208
|
placeholder: string;
|
|
207
|
-
hint
|
|
208
|
-
value: string;
|
|
209
|
-
wide
|
|
209
|
+
hint?: string;
|
|
210
|
+
value: string | null;
|
|
211
|
+
wide?: string;
|
|
212
|
+
clear: boolean;
|
|
210
213
|
valueChange: EventEmitter<string>;
|
|
211
|
-
|
|
214
|
+
picker?: MatDatepicker<Moment>;
|
|
215
|
+
input?: MatInput;
|
|
216
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
217
|
+
onDateChange(ev: Moment): void;
|
|
218
|
+
onInputFocus(): void;
|
|
219
|
+
onCancelClick(): void;
|
|
220
|
+
get isOpen(): boolean;
|
|
221
|
+
get hasValue(): boolean;
|
|
212
222
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterDateComponent, never>;
|
|
213
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FilterDateComponent, "nrcl-filter-date", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "value": { "alias": "value"; "required": false; }; "wide": { "alias": "wide"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
223
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterDateComponent, "nrcl-filter-date", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "value": { "alias": "value"; "required": false; }; "wide": { "alias": "wide"; "required": false; }; "clear": { "alias": "clear"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
224
|
+
static ngAcceptInputType_clear: unknown;
|
|
214
225
|
}
|
|
215
226
|
|
|
216
227
|
declare class FilterSearchComponent extends NrclBase {
|
|
@@ -356,27 +367,33 @@ declare class FormLayoutComponent extends NrclBase {
|
|
|
356
367
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormLayoutComponent, "nrcl-form-layout", never, {}, {}, never, ["*"], true, never>;
|
|
357
368
|
}
|
|
358
369
|
|
|
370
|
+
declare class IconService {
|
|
371
|
+
domSanitizer: DomSanitizer;
|
|
372
|
+
private _icon;
|
|
373
|
+
constructor();
|
|
374
|
+
defineIcon(name: string, svg: string): void;
|
|
375
|
+
getIcon(name: string): SafeHtml;
|
|
376
|
+
isIcon(name: string): boolean;
|
|
377
|
+
private _predefinedIcons;
|
|
378
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconService, never>;
|
|
379
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IconService>;
|
|
380
|
+
}
|
|
381
|
+
|
|
359
382
|
declare class IconComponent extends NrclBase implements AfterContentInit {
|
|
383
|
+
iconService: IconService;
|
|
360
384
|
small: boolean;
|
|
361
385
|
large: boolean;
|
|
362
|
-
|
|
363
|
-
svg
|
|
364
|
-
|
|
365
|
-
domSanitizer: DomSanitizer;
|
|
386
|
+
fill: boolean;
|
|
387
|
+
svg?: SafeHtml;
|
|
388
|
+
icon?: string;
|
|
366
389
|
ngAfterContentInit(): void;
|
|
390
|
+
showIcon(name: string): void;
|
|
367
391
|
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
368
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "nrcl-icon", never, { "small": { "alias": "small"; "required": false; }; "large": { "alias": "large"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
392
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "nrcl-icon", never, { "small": { "alias": "small"; "required": false; }; "large": { "alias": "large"; "required": false; }; "fill": { "alias": "fill"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
369
393
|
static ngAcceptInputType_small: unknown;
|
|
370
394
|
static ngAcceptInputType_large: unknown;
|
|
395
|
+
static ngAcceptInputType_fill: unknown;
|
|
371
396
|
}
|
|
372
|
-
declare const ICON: {
|
|
373
|
-
empty: string;
|
|
374
|
-
'clear-filters': string;
|
|
375
|
-
'user-clock': string;
|
|
376
|
-
roster: string;
|
|
377
|
-
'home-outline': string;
|
|
378
|
-
'mcp-server': string;
|
|
379
|
-
};
|
|
380
397
|
|
|
381
398
|
declare class IndicatorComponent extends NrclBase implements AfterContentChecked {
|
|
382
399
|
private _content;
|