@bcgov/nr-ngx-component-lib 0.0.1
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/components/button/button.component.d.ts +22 -0
- package/components/cell-content/cell-content.component.d.ts +12 -0
- package/components/device-view/device-view.component.d.ts +12 -0
- package/components/expansion-panel/expansion-panel.component.d.ts +26 -0
- package/components/filter-container/filter-container.component.d.ts +7 -0
- package/components/filter-date/filter-date.component.d.ts +12 -0
- package/components/filter-search/filter-search.component.d.ts +18 -0
- package/components/filter-select/filter-select.component.d.ts +63 -0
- package/components/filters-panel/filters-panel.component.d.ts +13 -0
- package/components/form-field/form-field.component.d.ts +13 -0
- package/components/form-layout/form-layout.component.d.ts +5 -0
- package/components/gap/gap.component.d.ts +9 -0
- package/components/page-container/page-container.component.d.ts +5 -0
- package/components/page-header/page-header.component.d.ts +6 -0
- package/components/row-list-desktop/row-list-desktop.component.d.ts +5 -0
- package/components/row-list-mobile/row-list-mobile.component.d.ts +5 -0
- package/components/row-list-pagination/row-list-pagination.component.d.ts +31 -0
- package/components/row-list-sorting/row-list-sorting.component.d.ts +18 -0
- package/components/snackbar/snackbar.component.d.ts +15 -0
- package/directives/configuration-subscriber.base.d.ts +14 -0
- package/directives/row-list.base.d.ts +55 -0
- package/esm2022/bcgov-nr-ngx-component-lib.mjs +5 -0
- package/esm2022/components/button/button.component.mjs +69 -0
- package/esm2022/components/cell-content/cell-content.component.mjs +34 -0
- package/esm2022/components/device-view/device-view.component.mjs +34 -0
- package/esm2022/components/expansion-panel/expansion-panel.component.mjs +144 -0
- package/esm2022/components/filter-container/filter-container.component.mjs +20 -0
- package/esm2022/components/filter-date/filter-date.component.mjs +43 -0
- package/esm2022/components/filter-search/filter-search.component.mjs +52 -0
- package/esm2022/components/filter-select/filter-select.component.mjs +269 -0
- package/esm2022/components/filters-panel/filters-panel.component.mjs +39 -0
- package/esm2022/components/form-field/form-field.component.mjs +103 -0
- package/esm2022/components/form-layout/form-layout.component.mjs +11 -0
- package/esm2022/components/gap/gap.component.mjs +21 -0
- package/esm2022/components/page-container/page-container.component.mjs +11 -0
- package/esm2022/components/page-header/page-header.component.mjs +19 -0
- package/esm2022/components/row-list-desktop/row-list-desktop.component.mjs +11 -0
- package/esm2022/components/row-list-mobile/row-list-mobile.component.mjs +11 -0
- package/esm2022/components/row-list-pagination/row-list-pagination.component.mjs +106 -0
- package/esm2022/components/row-list-sorting/row-list-sorting.component.mjs +44 -0
- package/esm2022/components/snackbar/snackbar.component.mjs +26 -0
- package/esm2022/directives/configuration-subscriber.base.mjs +28 -0
- package/esm2022/directives/row-list.base.mjs +150 -0
- package/esm2022/nr-ngx-component-lib.module.mjs +227 -0
- package/esm2022/public-api.mjs +33 -0
- package/esm2022/services/configuration.service.mjs +38 -0
- package/esm2022/services/page-state.service.mjs +28 -0
- package/esm2022/services/snackbar-util.service.mjs +69 -0
- package/esm2022/utils/code-table.util.mjs +23 -0
- package/esm2022/utils/date.util.mjs +15 -0
- package/esm2022/utils/filter.util.mjs +25 -0
- package/esm2022/utils/row-list.util.mjs +44 -0
- package/fesm2022/bcgov-nr-ngx-component-lib.mjs +1617 -0
- package/fesm2022/bcgov-nr-ngx-component-lib.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/nr-ngx-component-lib.module.d.ts +46 -0
- package/package.json +22 -0
- package/public-api.d.ts +29 -0
- package/services/configuration.service.d.ts +16 -0
- package/services/page-state.service.d.ts +9 -0
- package/services/snackbar-util.service.d.ts +16 -0
- package/styles/bc-sans/FONTLOG_README.txt +30 -0
- package/styles/bc-sans/LICENSE_OFL.txt +94 -0
- package/styles/bc-sans/css/BCSans.css +28 -0
- package/styles/bc-sans/fonts/BCSans-Bold.woff +0 -0
- package/styles/bc-sans/fonts/BCSans-Bold.woff2 +0 -0
- package/styles/bc-sans/fonts/BCSans-BoldItalic.woff +0 -0
- package/styles/bc-sans/fonts/BCSans-BoldItalic.woff2 +0 -0
- package/styles/bc-sans/fonts/BCSans-Italic.woff +0 -0
- package/styles/bc-sans/fonts/BCSans-Italic.woff2 +0 -0
- package/styles/bc-sans/fonts/BCSans-Regular.woff +0 -0
- package/styles/bc-sans/fonts/BCSans-Regular.woff2 +0 -0
- package/styles/global.scss +34 -0
- package/styles/include/mat-button.scss +71 -0
- package/styles/include/mat-checkbox.scss +44 -0
- package/styles/include/mat-icon.scss +30 -0
- package/styles/include/mat-radio-button.scss +19 -0
- package/styles/material.scss +40 -0
- package/utils/code-table.util.d.ts +12 -0
- package/utils/date.util.d.ts +14 -0
- package/utils/filter.util.d.ts +4 -0
- package/utils/row-list.util.d.ts +16 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EventEmitter, NgZone } from '@angular/core';
|
|
2
|
+
import { ConfigurationSubscriberBase } from '../../directives/configuration-subscriber.base';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ButtonComponent extends ConfigurationSubscriberBase {
|
|
5
|
+
label: any;
|
|
6
|
+
icon: any;
|
|
7
|
+
iconRight: any;
|
|
8
|
+
iconCompact: any;
|
|
9
|
+
tooltip: any;
|
|
10
|
+
compact: any;
|
|
11
|
+
primary: boolean;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
click: EventEmitter<PointerEvent>;
|
|
14
|
+
isCompact: any;
|
|
15
|
+
zone: NgZone;
|
|
16
|
+
onClick(ev: PointerEvent): void;
|
|
17
|
+
onConfigurationChange(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "nrcl-button", never, { "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconRight": { "alias": "iconRight"; "required": false; }; "iconCompact": { "alias": "iconCompact"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "primary": { "alias": "primary"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "click": "click"; }, never, ["*"], false, never>;
|
|
20
|
+
static ngAcceptInputType_primary: unknown;
|
|
21
|
+
static ngAcceptInputType_disabled: unknown;
|
|
22
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AfterContentInit, ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CellContentComponent implements AfterContentInit {
|
|
4
|
+
tooltip: any;
|
|
5
|
+
content: any;
|
|
6
|
+
elementRef: ElementRef<any>;
|
|
7
|
+
changeDetectorRef: ChangeDetectorRef;
|
|
8
|
+
tooltipContent: any;
|
|
9
|
+
ngAfterContentInit(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CellContentComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CellContentComponent, "nrcl-cell-content", never, { "tooltip": { "alias": "tooltip"; "required": false; }; "content": { "alias": "content"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ConfigurationSubscriberBase } from "../../directives/configuration-subscriber.base";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DesktopViewComponent extends ConfigurationSubscriberBase {
|
|
4
|
+
get visible(): boolean;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DesktopViewComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DesktopViewComponent, "nrcl-desktop-view", never, {}, {}, never, ["*"], false, never>;
|
|
7
|
+
}
|
|
8
|
+
export declare class MobileViewComponent extends ConfigurationSubscriberBase {
|
|
9
|
+
get visible(): boolean;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MobileViewComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MobileViewComponent, "nrcl-mobile-view", never, {}, {}, never, ["*"], false, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { MatExpansionPanel } from "@angular/material/expansion";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ExpansionPanelComponent {
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
expanded: boolean;
|
|
8
|
+
expandedChange: EventEmitter<boolean>;
|
|
9
|
+
matExpansionPanel: MatExpansionPanel;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExpansionPanelComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExpansionPanelComponent, "nrcl-expansion-panel", never, { "isLoading": { "alias": "isLoading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; }, { "expandedChange": "expandedChange"; }, never, ["nrcl-expansion-panel-header", "*", "nrcl-expansion-panel-footer"], false, never>;
|
|
12
|
+
}
|
|
13
|
+
export declare class ExpansionPanelHeaderComponent {
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExpansionPanelHeaderComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExpansionPanelHeaderComponent, "nrcl-expansion-panel-header", never, {}, {}, never, ["[left-side],h2,h3", "*"], false, never>;
|
|
16
|
+
}
|
|
17
|
+
export declare class ExpansionPanelFooterComponent {
|
|
18
|
+
saveEnabled: any;
|
|
19
|
+
cancelEnabled: any;
|
|
20
|
+
warningMessage: string;
|
|
21
|
+
showWarning: boolean;
|
|
22
|
+
saveClick: EventEmitter<PointerEvent>;
|
|
23
|
+
cancelClick: EventEmitter<PointerEvent>;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExpansionPanelFooterComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExpansionPanelFooterComponent, "nrcl-expansion-panel-footer", never, { "saveEnabled": { "alias": "saveEnabled"; "required": false; }; "cancelEnabled": { "alias": "cancelEnabled"; "required": false; }; "warningMessage": { "alias": "warningMessage"; "required": false; }; "showWarning": { "alias": "showWarning"; "required": false; }; }, { "saveClick": "saveClick"; "cancelClick": "cancelClick"; }, never, ["*"], false, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FilterContainerComponent {
|
|
3
|
+
label: string;
|
|
4
|
+
hint: any;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterContainerComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterContainerComponent, "nrcl-filter-container", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FilterDateComponent {
|
|
4
|
+
label: string;
|
|
5
|
+
placeholder: string;
|
|
6
|
+
hint: any;
|
|
7
|
+
value: string;
|
|
8
|
+
valueChange: EventEmitter<string>;
|
|
9
|
+
onDateChange(ev: any): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterDateComponent, never>;
|
|
11
|
+
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; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FilterSearchComponent {
|
|
4
|
+
label: string;
|
|
5
|
+
placeholder: string;
|
|
6
|
+
hint: any;
|
|
7
|
+
value: string;
|
|
8
|
+
valueChange: EventEmitter<string>;
|
|
9
|
+
inputEl: ElementRef;
|
|
10
|
+
hasValue: boolean;
|
|
11
|
+
changeDetectorRef: ChangeDetectorRef;
|
|
12
|
+
emitValueChange(val?: any): void;
|
|
13
|
+
onInput(ev: any): void;
|
|
14
|
+
onCancelClick(): void;
|
|
15
|
+
focus(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterSearchComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterSearchComponent, "nrcl-filter-search", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Overlay, OverlayRef } from "@angular/cdk/overlay";
|
|
2
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, SimpleChanges, TemplateRef, ViewContainerRef } from "@angular/core";
|
|
3
|
+
import { FormControl } from "@angular/forms";
|
|
4
|
+
import { MatSelectionListChange } from "@angular/material/list";
|
|
5
|
+
import { CodeDescription } from "../../utils/code-table.util";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* A filter select component that allows users to select multiple options from a list.
|
|
9
|
+
*
|
|
10
|
+
* Features:
|
|
11
|
+
* - Multi-select with optional maximum selection limit
|
|
12
|
+
* - Search/filter functionality
|
|
13
|
+
* - Tooltips for long descriptions
|
|
14
|
+
* - Summary display of selected items
|
|
15
|
+
*/
|
|
16
|
+
export declare class FilterSelectComponent implements OnChanges {
|
|
17
|
+
label: any;
|
|
18
|
+
placeholder: string;
|
|
19
|
+
hint: any;
|
|
20
|
+
options: CodeDescription[];
|
|
21
|
+
value: string[];
|
|
22
|
+
selectMax: number;
|
|
23
|
+
tooltips: boolean;
|
|
24
|
+
summary: boolean;
|
|
25
|
+
clear: boolean;
|
|
26
|
+
valueChange: EventEmitter<string[]>;
|
|
27
|
+
floatLabel: string;
|
|
28
|
+
inputValue: any;
|
|
29
|
+
openingValue: any;
|
|
30
|
+
isFiltered: boolean;
|
|
31
|
+
isOpen: boolean;
|
|
32
|
+
hasValue: boolean;
|
|
33
|
+
overlayRef: OverlayRef;
|
|
34
|
+
selection: FormControl<any>;
|
|
35
|
+
match: (option: CodeDescription) => boolean;
|
|
36
|
+
clickSubscription: any;
|
|
37
|
+
changeDetectorRef: ChangeDetectorRef;
|
|
38
|
+
overlay: Overlay;
|
|
39
|
+
viewContainerRef: ViewContainerRef;
|
|
40
|
+
trigger: ElementRef;
|
|
41
|
+
filterInput: ElementRef;
|
|
42
|
+
overlayTemplate: TemplateRef<any>;
|
|
43
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
44
|
+
get single(): boolean;
|
|
45
|
+
emitValueChange(): void;
|
|
46
|
+
open(): void;
|
|
47
|
+
close(): void;
|
|
48
|
+
setInputToSelection(): void;
|
|
49
|
+
onInput(ev?: any): void;
|
|
50
|
+
setFilter(text?: string): void;
|
|
51
|
+
matchesFilter(option: CodeDescription): boolean;
|
|
52
|
+
onSelectionChange(ev: any): void;
|
|
53
|
+
onUpperSelectionChange(ev: MatSelectionListChange): void;
|
|
54
|
+
onCancelClick(): void;
|
|
55
|
+
onInputFocus(): void;
|
|
56
|
+
descriptionForCode(code: string): string;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterSelectComponent, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterSelectComponent, "nrcl-filter-select", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "options": { "alias": "options"; "required": false; }; "value": { "alias": "value"; "required": false; }; "selectMax": { "alias": "selectMax"; "required": false; }; "tooltips": { "alias": "tooltips"; "required": false; }; "summary": { "alias": "summary"; "required": false; }; "clear": { "alias": "clear"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
|
|
59
|
+
static ngAcceptInputType_selectMax: unknown;
|
|
60
|
+
static ngAcceptInputType_tooltips: unknown;
|
|
61
|
+
static ngAcceptInputType_summary: unknown;
|
|
62
|
+
static ngAcceptInputType_clear: unknown;
|
|
63
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FiltersPanelComponent {
|
|
4
|
+
showClear: boolean;
|
|
5
|
+
showFilters: boolean;
|
|
6
|
+
clearFilters: EventEmitter<any>;
|
|
7
|
+
showFiltersChange: EventEmitter<boolean>;
|
|
8
|
+
onClearClick(): void;
|
|
9
|
+
onHideClick(): void;
|
|
10
|
+
onShowClick(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FiltersPanelComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FiltersPanelComponent, "nrcl-filters-panel", never, { "showClear": { "alias": "showClear"; "required": false; }; "showFilters": { "alias": "showFilters"; "required": false; }; }, { "clearFilters": "clearFilters"; "showFiltersChange": "showFiltersChange"; }, never, ["*"], false, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ElementRef, OnChanges, Renderer2, SimpleChanges } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FormFieldComponent implements OnChanges {
|
|
4
|
+
required: any;
|
|
5
|
+
readonly: any;
|
|
6
|
+
element: ElementRef<any>;
|
|
7
|
+
renderer: Renderer2;
|
|
8
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "nrcl-form-field", never, { "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
11
|
+
static ngAcceptInputType_required: unknown;
|
|
12
|
+
static ngAcceptInputType_readonly: unknown;
|
|
13
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FormLayoutComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormLayoutComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormLayoutComponent, "nrcl-form-layout", never, {}, {}, never, ["*"], false, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class GapComponent {
|
|
3
|
+
horizontal: boolean;
|
|
4
|
+
vertical: boolean;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GapComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GapComponent, "nrcl-gap", never, { "horizontal": { "alias": "horizontal"; "required": false; }; "vertical": { "alias": "vertical"; "required": false; }; }, {}, never, never, false, never>;
|
|
7
|
+
static ngAcceptInputType_horizontal: unknown;
|
|
8
|
+
static ngAcceptInputType_vertical: unknown;
|
|
9
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class PageContainerComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageContainerComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageContainerComponent, "nrcl-page-container", never, {}, {}, never, ["*"], false, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class PageHeaderComponent {
|
|
3
|
+
isLoading: boolean;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageHeaderComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageHeaderComponent, "nrcl-page-header", never, { "isLoading": { "alias": "isLoading"; "required": false; }; }, {}, never, ["[left-side],h1,h2", "[right-side]", "*"], false, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class RowListDesktopComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RowListDesktopComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RowListDesktopComponent, "nrcl-row-list-desktop", never, {}, {}, never, ["*"], false, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class RowListMobileComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RowListMobileComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RowListMobileComponent, "nrcl-row-list-mobile", never, {}, {}, never, ["*"], false, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export type RowListPaginationWidth = 'sufficient' | 'tight' | 'restrictive';
|
|
4
|
+
export declare class RowListPaginationComponent implements AfterViewInit {
|
|
5
|
+
paginationId: string;
|
|
6
|
+
pageSizeOptions: {
|
|
7
|
+
code: number;
|
|
8
|
+
description: string;
|
|
9
|
+
}[];
|
|
10
|
+
pageSize: number;
|
|
11
|
+
pageNumber: any;
|
|
12
|
+
rowCount: any;
|
|
13
|
+
showPageSize: boolean;
|
|
14
|
+
pageSizeChange: EventEmitter<number>;
|
|
15
|
+
pageNumberChange: EventEmitter<number>;
|
|
16
|
+
componentWidth: RowListPaginationWidth;
|
|
17
|
+
paginationMaxSize: number;
|
|
18
|
+
elementRef: ElementRef<any>;
|
|
19
|
+
changeDetectorRef: ChangeDetectorRef;
|
|
20
|
+
ngAfterViewInit(): void;
|
|
21
|
+
onPageSizeChange(ev: any): void;
|
|
22
|
+
onPageNumberChange(ev: any): void;
|
|
23
|
+
onResize(event: any): void;
|
|
24
|
+
checkWidth(): void;
|
|
25
|
+
get pageCount(): number;
|
|
26
|
+
get firstRow(): number;
|
|
27
|
+
get lastRow(): number;
|
|
28
|
+
get hasRows(): number;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RowListPaginationComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RowListPaginationComponent, "nrcl-row-list-pagination", never, { "paginationId": { "alias": "paginationId"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageNumber": { "alias": "pageNumber"; "required": false; }; "rowCount": { "alias": "rowCount"; "required": false; }; "showPageSize": { "alias": "showPageSize"; "required": false; }; }, { "pageSizeChange": "pageSizeChange"; "pageNumberChange": "pageNumberChange"; }, never, never, false, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { CodeDescription } from "../../utils/code-table.util";
|
|
3
|
+
import { Sort, SortDirection } from "@angular/material/sort";
|
|
4
|
+
import { unwrapFilterValue, wrapFilterValue } from "../../utils/filter.util";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class RowListSortingComponent {
|
|
7
|
+
sortColumn: string;
|
|
8
|
+
sortColumnOptions: CodeDescription[];
|
|
9
|
+
sortDirection: SortDirection;
|
|
10
|
+
sortChange: EventEmitter<Sort>;
|
|
11
|
+
wrapFilterValue: typeof wrapFilterValue;
|
|
12
|
+
unwrapFilterValue: typeof unwrapFilterValue;
|
|
13
|
+
onSortColumnChange(ev: any): void;
|
|
14
|
+
onSortDirectionChange(): void;
|
|
15
|
+
emitSortChange(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RowListSortingComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RowListSortingComponent, "nrcl-row-list-sorting", never, { "sortColumn": { "alias": "sortColumn"; "required": false; }; "sortColumnOptions": { "alias": "sortColumnOptions"; "required": false; }; "sortDirection": { "alias": "sortDirection"; "required": false; }; }, { "sortChange": "sortChange"; }, never, never, false, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MatSnackBarRef } from "@angular/material/snack-bar";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export type SnackbarType = 'success' | 'error' | 'info' | 'update';
|
|
4
|
+
export type SnackbarConfig = {
|
|
5
|
+
message: string;
|
|
6
|
+
type: SnackbarType;
|
|
7
|
+
};
|
|
8
|
+
export declare class SnackbarComponent {
|
|
9
|
+
snackBarRef: MatSnackBarRef<SnackbarComponent>;
|
|
10
|
+
config: SnackbarConfig;
|
|
11
|
+
constructor(snackBarRef: MatSnackBarRef<SnackbarComponent>, config: SnackbarConfig);
|
|
12
|
+
get className(): string;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SnackbarComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SnackbarComponent, "nrcl-snackbar", never, {}, {}, never, never, false, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import { Configuration, ConfigurationService } from "../services/configuration.service";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ConfigurationSubscriberBase implements OnInit, OnDestroy {
|
|
5
|
+
configurationSubscription: any;
|
|
6
|
+
configuration: Configuration;
|
|
7
|
+
configurationService: ConfigurationService;
|
|
8
|
+
changeDetectorRef: ChangeDetectorRef;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
ngOnDestroy(): void;
|
|
11
|
+
onConfigurationChange(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationSubscriberBase, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ConfigurationSubscriberBase, never, never, {}, {}, never, never, false, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, EventEmitter } from "@angular/core";
|
|
2
|
+
import { SortDirection } from "@angular/material/sort";
|
|
3
|
+
import { Observable } from "rxjs";
|
|
4
|
+
import { PageStateService } from "../services/page-state.service";
|
|
5
|
+
import { CodeDescription } from "../public-api";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export type RowListState<F> = {
|
|
8
|
+
filter: F;
|
|
9
|
+
pageSize: number;
|
|
10
|
+
pageNumber: number;
|
|
11
|
+
sortActive: string;
|
|
12
|
+
sortDirection: SortDirection;
|
|
13
|
+
};
|
|
14
|
+
export type LoadRowListResult<R> = {
|
|
15
|
+
rows: R[];
|
|
16
|
+
totalRowCount: number;
|
|
17
|
+
};
|
|
18
|
+
export declare class RowListBase<F, R, L = any> implements RowListState<F>, AfterViewInit {
|
|
19
|
+
isLoadingChange: EventEmitter<boolean>;
|
|
20
|
+
private _isLoading;
|
|
21
|
+
get isLoading(): boolean;
|
|
22
|
+
set isLoading(v: boolean);
|
|
23
|
+
rows: R[];
|
|
24
|
+
totalRowCount: number;
|
|
25
|
+
filter: F;
|
|
26
|
+
pageSize: number;
|
|
27
|
+
pageNumber: number;
|
|
28
|
+
sortActive: string;
|
|
29
|
+
sortDirection: SortDirection;
|
|
30
|
+
sortColumns: CodeDescription[];
|
|
31
|
+
summaryMobile: string;
|
|
32
|
+
showPagingMobile: boolean;
|
|
33
|
+
pageStateService: PageStateService;
|
|
34
|
+
changeDetectorRef: ChangeDetectorRef;
|
|
35
|
+
private _loadRowListRequest;
|
|
36
|
+
constructor();
|
|
37
|
+
initializeRowList(): void;
|
|
38
|
+
ngAfterViewInit(): void;
|
|
39
|
+
refreshRowList(): Promise<void>;
|
|
40
|
+
loadRowList(): Promise<LoadRowListResult<R>>;
|
|
41
|
+
fetchRowListPage(): Observable<L>;
|
|
42
|
+
displayRowListPage(res: L): LoadRowListResult<R>;
|
|
43
|
+
loadRowListPageFailed(error: any): void;
|
|
44
|
+
onFilterChange(ev: any): void;
|
|
45
|
+
onSortChange(ev: any): void;
|
|
46
|
+
onPageNumberChange(ev: any): void;
|
|
47
|
+
onPageSizeChange(ev: any): void;
|
|
48
|
+
updateSummaryMobile(): void;
|
|
49
|
+
get initialPageState(): RowListState<F>;
|
|
50
|
+
loadPageState(): void;
|
|
51
|
+
savePageState(): void;
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RowListBase<any, any, any>, never>;
|
|
53
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RowListBase<any, any, any>, never, never, {}, { "isLoadingChange": "isLoadingChange"; }, never, never, false, never>;
|
|
54
|
+
}
|
|
55
|
+
export declare function makeSummary(rowCount: any, pageNumber: any, pageSize: any): [string, boolean];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmNnb3YtbnItbmd4LWNvbXBvbmVudC1saWIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9uci1uZ3gtY29tcG9uZW50LWxpYi9zcmMvYmNnb3YtbnItbmd4LWNvbXBvbmVudC1saWIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { booleanAttribute, Component, EventEmitter, inject, Input, NgZone, Output } from '@angular/core';
|
|
2
|
+
import { ConfigurationSubscriberBase } from '../../directives/configuration-subscriber.base';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/material/icon";
|
|
5
|
+
import * as i2 from "@angular/material/core";
|
|
6
|
+
import * as i3 from "@angular/material/tooltip";
|
|
7
|
+
export class ButtonComponent extends ConfigurationSubscriberBase {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.primary = false;
|
|
11
|
+
this.disabled = false;
|
|
12
|
+
this.click = new EventEmitter();
|
|
13
|
+
this.zone = inject(NgZone);
|
|
14
|
+
}
|
|
15
|
+
onClick(ev) {
|
|
16
|
+
if (this.disabled)
|
|
17
|
+
return;
|
|
18
|
+
this.click.emit(ev);
|
|
19
|
+
}
|
|
20
|
+
onConfigurationChange() {
|
|
21
|
+
// apparently this is needed to ensure that the host binding updates properly
|
|
22
|
+
this.zone.run(() => {
|
|
23
|
+
if (this.compact == null || this.compact === false) {
|
|
24
|
+
this.isCompact = false;
|
|
25
|
+
}
|
|
26
|
+
else if (this.compact == '' || this.compact === true) {
|
|
27
|
+
this.isCompact = true;
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
this.isCompact = this.compact == this.configuration.displayMode;
|
|
31
|
+
}
|
|
32
|
+
this.changeDetectorRef.markForCheck();
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
36
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ButtonComponent, selector: "nrcl-button", inputs: { label: "label", icon: "icon", iconRight: "iconRight", iconCompact: "iconCompact", tooltip: "tooltip", compact: "compact", primary: ["primary", "primary", booleanAttribute], disabled: ["disabled", "disabled", booleanAttribute] }, outputs: { click: "click" }, host: { properties: { "class.primary": "primary", "class.disabled": "disabled", "class.compact": "isCompact", "class.icon-left": "!isCompact && icon", "class.icon-right": "!isCompact && iconRight && label", "class.label": "label" } }, usesInheritance: true, ngImport: i0, template: "<button \n matRipple\n (click)=\"onClick( $event )\"\n [disabled]=\"disabled\"\n [matTooltip]=\"tooltip\"\n>\n @if ( icon || iconRight || iconCompact || label ) {\n @if ( icon && ( !isCompact || !iconCompact ) ) { \n <mat-icon class=\"left\">{{ icon }}</mat-icon> \n }\n\n @if ( !isCompact && iconRight && label ) { \n <mat-icon class=\"right\">{{ iconRight }}</mat-icon> \n }\n\n @if ( isCompact && iconCompact ) { \n <mat-icon class=\"compact\">{{ iconCompact }}</mat-icon> \n }\n\n @if ( label ) {\n <span class=\"label\">{{ label }}</span> \n }\n }\n @else {\n <div class=\"content\">\n <ng-content></ng-content>\n </div>\n }\n</button>\n", styles: ["::ng-deep :root{--nrcl-button-height: 36px;--nrcl-compact-button-height: 44px;--nrcl-button-foreground-color: black;--nrcl-button-background-color: white;--nrcl-button-border-color: #003366;--nrcl-button-hover-background-color: #f5f5f5;--nrcl-button-primary-foreground-color: white;--nrcl-button-primary-background-color: #003366;--nrcl-button-primary-border-color: #003366;--nrcl-button-primary-hover-background-color: #144a89cc;--nrcl-button-disabled-foreground-color: #7E7E7E;--nrcl-button-disabled-background-color: #CCCCCC;--nrcl-button-disabled-border-color: #CCCCCC;--nrcl-button-disabled-hover-background-color: #CCCCCC}:host ::ng-deep .material-icons{font-family:Material Symbols Outlined;font-feature-settings:\"liga\"}:host ::ng-deep .mat-icon{width:var(--nrcl-icon-size);height:var(--nrcl-icon-size);font-size:var(--nrcl-icon-size);line-height:var(--nrcl-icon-size)}:host ::ng-deep button.mat-mdc-fab>.mat-icon,:host ::ng-deep button.mat-mdc-raised-button>.mat-icon,:host ::ng-deep button.mat-mdc-button>.mat-icon,:host ::ng-deep button.mat-mdc-icon-button>.mat-icon,:host ::ng-deep button.mat-mdc-outlined-button>.mat-icon,:host ::ng-deep button.mat-mdc-unelevated-button>.mat-icon,:host ::ng-deep button.mat-mdc-mini-fab .mat-mdc-menu-item>.mat-icon{width:var(--nrcl-icon-size);height:var(--nrcl-icon-size);font-size:var(--nrcl-icon-size);line-height:var(--nrcl-icon-size)}:host button{height:var(--nrcl-button-height);cursor:pointer;margin:0;padding:0;display:flex;align-items:center;position:relative;background-color:var(--nrcl-button-background-color);color:var(--nrcl-button-foreground-color);border-color:var(--nrcl-button-border-color);border-width:1px;border-style:solid;border-radius:4px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}:host button .label,:host button .content{font-family:var(--nrcl-font-family);font-size:var(--nrcl-font-size);white-space:nowrap;font-weight:500}:host button:hover{background-color:var(--nrcl-button-hover-background-color)}:host.label button{padding-left:16px;padding-right:16px}:host.icon-left button{padding-left:var(--nrcl-button-height)}:host.icon-left button .mat-icon.left{position:absolute;left:calc((var(--nrcl-button-height) - var(--nrcl-icon-size)) / 2)}:host.icon-right button{padding-right:var(--nrcl-button-height)}:host.icon-right button .mat-icon.right{position:absolute;right:calc((var(--nrcl-button-height) - var(--nrcl-icon-size)) / 2)}:host.primary button{background-color:var(--nrcl-button-primary-background-color);color:var(--nrcl-button-primary-foreground-color);border-color:var(--nrcl-button-primary-border-color)}:host.primary button:hover{background-color:var(--nrcl-button-primary-hover-background-color)}:host.compact button{height:var(--nrcl-compact-button-height);border:none;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 8px;box-shadow:none;background-color:transparent;color:var(--nrcl-button-foreground-color)}:host.compact button:hover{background-color:var(--nrcl-button-hover-background-color)}:host.compact button .label{line-height:20px;font-size:var(--nrcl-font-size-small)}:host button .content{padding-left:16px;padding-right:16px}:host.disabled button{background-color:var(--nrcl-button-disabled-background-color);color:var(--nrcl-button-disabled-foreground-color);border-color:var(--nrcl-button-disabled-border-color)}:host.disabled button:hover{background-color:var(--nrcl-button-disabled-hover-background-color)}\n"], dependencies: [{ kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i2.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }] }); }
|
|
37
|
+
}
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
39
|
+
type: Component,
|
|
40
|
+
args: [{ selector: 'nrcl-button', host: {
|
|
41
|
+
'[class.primary]': 'primary',
|
|
42
|
+
'[class.disabled]': 'disabled',
|
|
43
|
+
'[class.compact]': 'isCompact',
|
|
44
|
+
'[class.icon-left]': '!isCompact && icon',
|
|
45
|
+
'[class.icon-right]': '!isCompact && iconRight && label',
|
|
46
|
+
'[class.label]': 'label'
|
|
47
|
+
}, template: "<button \n matRipple\n (click)=\"onClick( $event )\"\n [disabled]=\"disabled\"\n [matTooltip]=\"tooltip\"\n>\n @if ( icon || iconRight || iconCompact || label ) {\n @if ( icon && ( !isCompact || !iconCompact ) ) { \n <mat-icon class=\"left\">{{ icon }}</mat-icon> \n }\n\n @if ( !isCompact && iconRight && label ) { \n <mat-icon class=\"right\">{{ iconRight }}</mat-icon> \n }\n\n @if ( isCompact && iconCompact ) { \n <mat-icon class=\"compact\">{{ iconCompact }}</mat-icon> \n }\n\n @if ( label ) {\n <span class=\"label\">{{ label }}</span> \n }\n }\n @else {\n <div class=\"content\">\n <ng-content></ng-content>\n </div>\n }\n</button>\n", styles: ["::ng-deep :root{--nrcl-button-height: 36px;--nrcl-compact-button-height: 44px;--nrcl-button-foreground-color: black;--nrcl-button-background-color: white;--nrcl-button-border-color: #003366;--nrcl-button-hover-background-color: #f5f5f5;--nrcl-button-primary-foreground-color: white;--nrcl-button-primary-background-color: #003366;--nrcl-button-primary-border-color: #003366;--nrcl-button-primary-hover-background-color: #144a89cc;--nrcl-button-disabled-foreground-color: #7E7E7E;--nrcl-button-disabled-background-color: #CCCCCC;--nrcl-button-disabled-border-color: #CCCCCC;--nrcl-button-disabled-hover-background-color: #CCCCCC}:host ::ng-deep .material-icons{font-family:Material Symbols Outlined;font-feature-settings:\"liga\"}:host ::ng-deep .mat-icon{width:var(--nrcl-icon-size);height:var(--nrcl-icon-size);font-size:var(--nrcl-icon-size);line-height:var(--nrcl-icon-size)}:host ::ng-deep button.mat-mdc-fab>.mat-icon,:host ::ng-deep button.mat-mdc-raised-button>.mat-icon,:host ::ng-deep button.mat-mdc-button>.mat-icon,:host ::ng-deep button.mat-mdc-icon-button>.mat-icon,:host ::ng-deep button.mat-mdc-outlined-button>.mat-icon,:host ::ng-deep button.mat-mdc-unelevated-button>.mat-icon,:host ::ng-deep button.mat-mdc-mini-fab .mat-mdc-menu-item>.mat-icon{width:var(--nrcl-icon-size);height:var(--nrcl-icon-size);font-size:var(--nrcl-icon-size);line-height:var(--nrcl-icon-size)}:host button{height:var(--nrcl-button-height);cursor:pointer;margin:0;padding:0;display:flex;align-items:center;position:relative;background-color:var(--nrcl-button-background-color);color:var(--nrcl-button-foreground-color);border-color:var(--nrcl-button-border-color);border-width:1px;border-style:solid;border-radius:4px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}:host button .label,:host button .content{font-family:var(--nrcl-font-family);font-size:var(--nrcl-font-size);white-space:nowrap;font-weight:500}:host button:hover{background-color:var(--nrcl-button-hover-background-color)}:host.label button{padding-left:16px;padding-right:16px}:host.icon-left button{padding-left:var(--nrcl-button-height)}:host.icon-left button .mat-icon.left{position:absolute;left:calc((var(--nrcl-button-height) - var(--nrcl-icon-size)) / 2)}:host.icon-right button{padding-right:var(--nrcl-button-height)}:host.icon-right button .mat-icon.right{position:absolute;right:calc((var(--nrcl-button-height) - var(--nrcl-icon-size)) / 2)}:host.primary button{background-color:var(--nrcl-button-primary-background-color);color:var(--nrcl-button-primary-foreground-color);border-color:var(--nrcl-button-primary-border-color)}:host.primary button:hover{background-color:var(--nrcl-button-primary-hover-background-color)}:host.compact button{height:var(--nrcl-compact-button-height);border:none;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 8px;box-shadow:none;background-color:transparent;color:var(--nrcl-button-foreground-color)}:host.compact button:hover{background-color:var(--nrcl-button-hover-background-color)}:host.compact button .label{line-height:20px;font-size:var(--nrcl-font-size-small)}:host button .content{padding-left:16px;padding-right:16px}:host.disabled button{background-color:var(--nrcl-button-disabled-background-color);color:var(--nrcl-button-disabled-foreground-color);border-color:var(--nrcl-button-disabled-border-color)}:host.disabled button:hover{background-color:var(--nrcl-button-disabled-hover-background-color)}\n"] }]
|
|
48
|
+
}], propDecorators: { label: [{
|
|
49
|
+
type: Input
|
|
50
|
+
}], icon: [{
|
|
51
|
+
type: Input
|
|
52
|
+
}], iconRight: [{
|
|
53
|
+
type: Input
|
|
54
|
+
}], iconCompact: [{
|
|
55
|
+
type: Input
|
|
56
|
+
}], tooltip: [{
|
|
57
|
+
type: Input
|
|
58
|
+
}], compact: [{
|
|
59
|
+
type: Input
|
|
60
|
+
}], primary: [{
|
|
61
|
+
type: Input,
|
|
62
|
+
args: [{ transform: booleanAttribute }]
|
|
63
|
+
}], disabled: [{
|
|
64
|
+
type: Input,
|
|
65
|
+
args: [{ transform: booleanAttribute }]
|
|
66
|
+
}], click: [{
|
|
67
|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biAgICAgICAgICAgICAgICB0aGlzLmlzQ29tcGFjdCA9IGZhbHNlXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIGlmICggdGhpcy5jb21wYWN0ID09ICcnIHx8IHRoaXMuY29tcGFjdCA9PT0gdHJ1ZSApIHtcbiAgICAgICAgICAgICAgICB0aGlzLmlzQ29tcGFjdCA9IHRydWVcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgIHRoaXMuaXNDb21wYWN0ID0gdGhpcy5jb21wYWN0ID09IHRoaXMuY29uZmlndXJhdGlvbi5kaXNwbGF5TW9kZVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICB0aGlzLmNoYW5nZURldGVjdG9yUmVmLm1hcmtGb3JDaGVjaygpXG4gICAgICAgIH0gKVxuICAgIH1cbn1cbiIsIjxidXR0b24gXG4gICAgbWF0UmlwcGxlXG4gICAgKGNsaWNrKT1cIm9uQ2xpY2soICRldmVudCApXCJcbiAgICBbZGlzYWJsZWRdPVwiZGlzYWJsZWRcIlxuICAgIFttYXRUb29sdGlwXT1cInRvb2x0aXBcIlxuPlxuICAgIEBpZiAoIGljb24gfHwgaWNvblJpZ2h0IHx8IGljb25Db21wYWN0IHx8IGxhYmVsICkge1xuICAgICAgICBAaWYgKCBpY29uICYmICggIWlzQ29tcGFjdCB8fCAhaWNvbkNvbXBhY3QgKSApIHsgXG4gICAgICAgICAgICA8bWF0LWljb24gY2xhc3M9XCJsZWZ0XCI+e3sgaWNvbiB9fTwvbWF0LWljb24+IFxuICAgICAgICB9XG5cbiAgICAgICAgQGlmICggIWlzQ29tcGFjdCAmJiBpY29uUmlnaHQgJiYgbGFiZWwgKSB7IFxuICAgICAgICAgICAgPG1hdC1pY29uIGNsYXNzPVwicmlnaHRcIj57eyBpY29uUmlnaHQgfX08L21hdC1pY29uPiBcbiAgICAgICAgfVxuXG4gICAgICAgIEBpZiAoIGlzQ29tcGFjdCAmJiBpY29uQ29tcGFjdCApIHsgXG4gICAgICAgICAgICA8bWF0LWljb24gY2xhc3M9XCJjb21wYWN0XCI+e3sgaWNvbkNvbXBhY3QgfX08L21hdC1pY29uPiBcbiAgICAgICAgfVxuXG4gICAgICAgIEBpZiAoIGxhYmVsICkge1xuICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJsYWJlbFwiPnt7IGxhYmVsIH19PC9zcGFuPiAgICAgICAgXG4gICAgICAgIH1cbiAgICB9XG4gICAgQGVsc2Uge1xuICAgICAgICA8ZGl2IGNsYXNzPVwiY29udGVudFwiPlxuICAgICAgICAgICAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxuICAgICAgICA8L2Rpdj5cbiAgICB9XG48L2J1dHRvbj5cbiJdfQ==
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ChangeDetectorRef, Component, ElementRef, inject, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/material/tooltip";
|
|
4
|
+
export class CellContentComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.elementRef = inject(ElementRef);
|
|
7
|
+
this.changeDetectorRef = inject(ChangeDetectorRef);
|
|
8
|
+
}
|
|
9
|
+
ngAfterContentInit() {
|
|
10
|
+
setTimeout(() => {
|
|
11
|
+
if (this.tooltip == null || this.tooltip === false) {
|
|
12
|
+
// no tooltip
|
|
13
|
+
}
|
|
14
|
+
else if (this.tooltip == '' || this.tooltip === true) {
|
|
15
|
+
this.tooltipContent = this.content || this.elementRef?.nativeElement?.textContent;
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
this.tooltipContent = this.tooltip;
|
|
19
|
+
}
|
|
20
|
+
this.changeDetectorRef.detectChanges();
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CellContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
24
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: CellContentComponent, selector: "nrcl-cell-content", inputs: { tooltip: "tooltip", content: "content" }, ngImport: i0, template: "<div [matTooltip]=\"tooltipContent\" class=\"content\">\n @if ( content ) {\n {{ content }}\n }\n @else {\n <ng-content></ng-content>\n }\n</div>\n", styles: [":host{display:block;width:100%;font-family:var(--nrcl-font-family);font-size:var(--nrcl-font-size)}:host .content{width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}\n"], dependencies: [{ kind: "directive", type: i1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }] }); }
|
|
25
|
+
}
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CellContentComponent, decorators: [{
|
|
27
|
+
type: Component,
|
|
28
|
+
args: [{ selector: 'nrcl-cell-content', template: "<div [matTooltip]=\"tooltipContent\" class=\"content\">\n @if ( content ) {\n {{ content }}\n }\n @else {\n <ng-content></ng-content>\n }\n</div>\n", styles: [":host{display:block;width:100%;font-family:var(--nrcl-font-family);font-size:var(--nrcl-font-size)}:host .content{width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}\n"] }]
|
|
29
|
+
}], propDecorators: { tooltip: [{
|
|
30
|
+
type: Input
|
|
31
|
+
}], content: [{
|
|
32
|
+
type: Input
|
|
33
|
+
}] } });
|
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2VsbC1jb250ZW50LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3R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PT0gbnVsbCB8fCB0aGlzLnRvb2x0aXAgPT09IGZhbHNlICkge1xuICAgICAgICAgICAgICAgIC8vIG5vIHRvb2x0aXAgICAgICAgICAgICAgICAgXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIGlmICggdGhpcy50b29sdGlwID09ICcnIHx8IHRoaXMudG9vbHRpcCA9PT0gdHJ1ZSApIHtcbiAgICAgICAgICAgICAgICB0aGlzLnRvb2x0aXBDb250ZW50ID0gdGhpcy5jb250ZW50IHx8IHRoaXMuZWxlbWVudFJlZj8ubmF0aXZlRWxlbWVudD8udGV4dENvbnRlbnRcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgIHRoaXMudG9vbHRpcENvbnRlbnQgPSB0aGlzLnRvb2x0aXBcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIFxuICAgICAgICAgICAgdGhpcy5jaGFuZ2VEZXRlY3RvclJlZi5kZXRlY3RDaGFuZ2VzKClcbiAgICAgICAgfSApXG4gICAgfVxufVxuIiwiPGRpdiBbbWF0VG9vbHRpcF09XCJ0b29sdGlwQ29udGVudFwiIGNsYXNzPVwiY29udGVudFwiPlxuICAgIEBpZiAoIGNvbnRlbnQgKSB7XG4gICAgICAgIHt7IGNvbnRlbnQgfX1cbiAgICB9XG4gICAgQGVsc2Uge1xuICAgICAgICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XG4gICAgfVxuPC9kaXY+XG4iXX0=
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Component } from "@angular/core";
|
|
2
|
+
import { ConfigurationSubscriberBase } from "../../directives/configuration-subscriber.base";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class DesktopViewComponent extends ConfigurationSubscriberBase {
|
|
5
|
+
get visible() { return this.configuration.displayMode == 'desktop'; }
|
|
6
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DesktopViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
7
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: DesktopViewComponent, selector: "nrcl-desktop-view", host: { properties: { "class.nrcl-device-desktop": "true" } }, usesInheritance: true, ngImport: i0, template: '@if ( visible ) { <ng-content></ng-content> }', isInline: true }); }
|
|
8
|
+
}
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DesktopViewComponent, decorators: [{
|
|
10
|
+
type: Component,
|
|
11
|
+
args: [{
|
|
12
|
+
selector: "nrcl-desktop-view",
|
|
13
|
+
template: '@if ( visible ) { <ng-content></ng-content> }',
|
|
14
|
+
host: {
|
|
15
|
+
'[class.nrcl-device-desktop]': 'true'
|
|
16
|
+
}
|
|
17
|
+
}]
|
|
18
|
+
}] });
|
|
19
|
+
export class MobileViewComponent extends ConfigurationSubscriberBase {
|
|
20
|
+
get visible() { return this.configuration.displayMode == 'mobile'; }
|
|
21
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MobileViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
22
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: MobileViewComponent, selector: "nrcl-mobile-view", host: { properties: { "class.nrcl-device-mobile": "true" } }, usesInheritance: true, ngImport: i0, template: '@if ( visible ) { <ng-content></ng-content> }', isInline: true }); }
|
|
23
|
+
}
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MobileViewComponent, decorators: [{
|
|
25
|
+
type: Component,
|
|
26
|
+
args: [{
|
|
27
|
+
selector: "nrcl-mobile-view",
|
|
28
|
+
template: '@if ( visible ) { <ng-content></ng-content> }',
|
|
29
|
+
host: {
|
|
30
|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