@ieeesa-npm/presentation 0.5.3 → 0.5.5
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/esm2022/lib/components/autocomplete/autocomplete.component.mjs +3 -3
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +3 -3
- package/esm2022/lib/components/chips/chips.component.mjs +33 -15
- package/esm2022/lib/components/data-table/data-table.component.mjs +7 -3
- package/esm2022/lib/components/date-picker/date-picker.component.mjs +3 -3
- package/esm2022/lib/components/date-picker-header/date-picker-header.component.mjs +3 -3
- package/esm2022/lib/components/dynamic-form/dynamic-form.component.mjs +3 -3
- package/esm2022/lib/components/filter/filter.component.mjs +20 -9
- package/esm2022/lib/components/footer/footer.component.mjs +3 -3
- package/esm2022/lib/components/form-error/form-error.component.mjs +3 -3
- package/esm2022/lib/components/form-support-text/form-support-text.component.mjs +3 -3
- package/esm2022/lib/components/header/header.component.mjs +3 -3
- package/esm2022/lib/components/input/input.component.mjs +3 -3
- package/esm2022/lib/components/legend/legend.component.mjs +3 -3
- package/esm2022/lib/components/menu/menu.component.mjs +3 -3
- package/esm2022/lib/components/modal/modal.component.mjs +3 -3
- package/esm2022/lib/components/modal-confirmation/modal-confirmation.component.mjs +3 -3
- package/esm2022/lib/components/navigation-menu/navigation-menu.component.mjs +3 -3
- package/esm2022/lib/components/notification/notification.component.mjs +3 -3
- package/esm2022/lib/components/radio/radio.component.mjs +3 -3
- package/esm2022/lib/components/search/search.component.mjs +3 -3
- package/esm2022/lib/components/select/select.component.mjs +3 -3
- package/esm2022/lib/components/text-area/text-area.component.mjs +3 -3
- package/esm2022/lib/components/toggle-button/toggle-button.component.mjs +3 -3
- package/esm2022/lib/components/welcome/welcome.component.mjs +4 -4
- package/esm2022/lib/directives/text-truncated/text-truncated.directive.mjs +35 -0
- package/esm2022/lib/models/chip-option.model.mjs +1 -1
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/ieeesa-npm-presentation.mjs +144 -79
- package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
- package/lib/components/chips/chips.component.d.ts +15 -9
- package/lib/components/filter/filter.component.d.ts +4 -4
- package/lib/directives/text-truncated/text-truncated.directive.d.ts +17 -0
- package/lib/models/chip-option.model.d.ts +1 -0
- package/package.json +3 -3
- package/public-api.d.ts +1 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EventEmitter, OnInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { MatChipListbox } from '@angular/material/chips';
|
|
2
3
|
import { Subject } from 'rxjs';
|
|
3
4
|
import { BreakpointObserverService } from '@ieeesa-npm/utility';
|
|
4
5
|
import { ChipOption, ChipOrientation, ChipsType } from '../../models/chip-option.model';
|
|
@@ -14,7 +15,6 @@ import * as i0 from "@angular/core";
|
|
|
14
15
|
export declare class ChipsComponent implements OnInit, OnDestroy {
|
|
15
16
|
breakpointObserverService: BreakpointObserverService;
|
|
16
17
|
defaultVisibleChips: ChipOption[];
|
|
17
|
-
isViewMoreActive: boolean;
|
|
18
18
|
isMobileView: boolean;
|
|
19
19
|
labelViewAllOrLess: string;
|
|
20
20
|
constants: {
|
|
@@ -44,6 +44,13 @@ export declare class ChipsComponent implements OnInit, OnDestroy {
|
|
|
44
44
|
arrow: {
|
|
45
45
|
id: number;
|
|
46
46
|
iconURL: string;
|
|
47
|
+
/**
|
|
48
|
+
* Chips component allow users to view information, make selections, filter content.
|
|
49
|
+
* @export
|
|
50
|
+
* @class ChipComponent
|
|
51
|
+
* @implements {OnInit}
|
|
52
|
+
* @implements {OnDestroy}
|
|
53
|
+
*/
|
|
47
54
|
toolTip: string;
|
|
48
55
|
ariaLabel: string;
|
|
49
56
|
};
|
|
@@ -108,10 +115,6 @@ export declare class ChipsComponent implements OnInit, OnDestroy {
|
|
|
108
115
|
ariaLabel: {
|
|
109
116
|
helpLink: string;
|
|
110
117
|
userProfile: string;
|
|
111
|
-
/**
|
|
112
|
-
* Shows list of chips on the basis of view more/less button state.
|
|
113
|
-
* @memberof ChipComponent
|
|
114
|
-
*/
|
|
115
118
|
hamburgerMenu: string;
|
|
116
119
|
};
|
|
117
120
|
label: {
|
|
@@ -147,6 +150,7 @@ export declare class ChipsComponent implements OnInit, OnDestroy {
|
|
|
147
150
|
};
|
|
148
151
|
chipsType: typeof ChipsType;
|
|
149
152
|
orientations: typeof ChipOrientation;
|
|
153
|
+
activeLabel: string;
|
|
150
154
|
destroy$: Subject<boolean>;
|
|
151
155
|
private chips;
|
|
152
156
|
set chipGroup(value: ChipOption[]);
|
|
@@ -157,9 +161,11 @@ export declare class ChipsComponent implements OnInit, OnDestroy {
|
|
|
157
161
|
hasViewMoreForMobile: boolean;
|
|
158
162
|
avatar: IconButton;
|
|
159
163
|
arrow: IconButton;
|
|
160
|
-
|
|
164
|
+
chipListBox: MatChipListbox;
|
|
161
165
|
isViewMoreNeeded: boolean;
|
|
162
|
-
|
|
166
|
+
private hasChipToggledInfo;
|
|
167
|
+
get hasChipToggled(): boolean;
|
|
168
|
+
set hasChipToggled(value: boolean);
|
|
163
169
|
viewAllLabel: string;
|
|
164
170
|
viewLessLabel: string;
|
|
165
171
|
selectedChip: EventEmitter<any>;
|
|
@@ -175,7 +181,7 @@ export declare class ChipsComponent implements OnInit, OnDestroy {
|
|
|
175
181
|
* Shows list of chips on the basis of view more/less button state.
|
|
176
182
|
* @memberof ChipComponent
|
|
177
183
|
*/
|
|
178
|
-
viewChips(): void;
|
|
184
|
+
viewChips(clickedLabel: string): void;
|
|
179
185
|
/**
|
|
180
186
|
* Sets the isViewMoreNeeded value based on hasViewMore and isMobileView values.
|
|
181
187
|
* @memberof ChipsComponent
|
|
@@ -195,5 +201,5 @@ export declare class ChipsComponent implements OnInit, OnDestroy {
|
|
|
195
201
|
*/
|
|
196
202
|
ngOnDestroy(): void;
|
|
197
203
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChipsComponent, never>;
|
|
198
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChipsComponent, "ieeesa-chips", never, { "chipGroup": { "alias": "chipGroup"; "required": false; }; "chipOrientation": { "alias": "chipOrientation"; "required": false; }; "noOfDefaultVisibleChips": { "alias": "noOfDefaultVisibleChips"; "required": false; }; "hasViewMoreForDesktop": { "alias": "hasViewMoreForDesktop"; "required": false; }; "hasViewMoreForMobile": { "alias": "hasViewMoreForMobile"; "required": false; }; "avatar": { "alias": "avatar"; "required": false; }; "arrow": { "alias": "arrow"; "required": false; }; "
|
|
204
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChipsComponent, "ieeesa-chips", never, { "chipGroup": { "alias": "chipGroup"; "required": false; }; "chipOrientation": { "alias": "chipOrientation"; "required": false; }; "noOfDefaultVisibleChips": { "alias": "noOfDefaultVisibleChips"; "required": false; }; "hasViewMoreForDesktop": { "alias": "hasViewMoreForDesktop"; "required": false; }; "hasViewMoreForMobile": { "alias": "hasViewMoreForMobile"; "required": false; }; "avatar": { "alias": "avatar"; "required": false; }; "arrow": { "alias": "arrow"; "required": false; }; "isViewMoreNeeded": { "alias": "isViewMoreNeeded"; "required": false; }; "hasChipToggled": { "alias": "hasChipToggled"; "required": false; }; "viewAllLabel": { "alias": "viewAllLabel"; "required": false; }; "viewLessLabel": { "alias": "viewLessLabel"; "required": false; }; }, { "selectedChip": "selectedChip"; }, never, never, true, never>;
|
|
199
205
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnDestroy, ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { BreakpointObserverService } from '@ieeesa-npm/utility';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { CheckboxOption } from '../../models/checkbox-option.model';
|
|
5
5
|
import { IconButton } from '../../models/icon-button.model';
|
|
6
|
-
import { ChipOption
|
|
6
|
+
import { ChipOption } from '../../models/chip-option.model';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
9
|
* Provides an implementation for group of filter.
|
|
@@ -13,6 +13,7 @@ import * as i0 from "@angular/core";
|
|
|
13
13
|
*/
|
|
14
14
|
export declare class FilterComponent implements OnDestroy {
|
|
15
15
|
private breakpointObserverService;
|
|
16
|
+
private changeDetectorReference;
|
|
16
17
|
constants: any;
|
|
17
18
|
arrow: IconButton;
|
|
18
19
|
removeIcon: IconButton;
|
|
@@ -22,7 +23,6 @@ export declare class FilterComponent implements OnDestroy {
|
|
|
22
23
|
isFilterActive: boolean;
|
|
23
24
|
isMobileView: boolean;
|
|
24
25
|
isApplyButtonDisabled: boolean;
|
|
25
|
-
typeOfChip: ChipsType;
|
|
26
26
|
destroy$: Subject<boolean>;
|
|
27
27
|
private filteredTypeOptionsInfo;
|
|
28
28
|
set appliedFilterOptions(options: ChipOption[]);
|
|
@@ -33,7 +33,7 @@ export declare class FilterComponent implements OnDestroy {
|
|
|
33
33
|
selectedFilter: EventEmitter<ChipOption>;
|
|
34
34
|
filteredOptions: EventEmitter<CheckboxOption[]>;
|
|
35
35
|
removeFilteredOption: EventEmitter<ChipOption>;
|
|
36
|
-
constructor(breakpointObserverService: BreakpointObserverService);
|
|
36
|
+
constructor(breakpointObserverService: BreakpointObserverService, changeDetectorReference: ChangeDetectorRef);
|
|
37
37
|
/**
|
|
38
38
|
* OnFilterSelected receives the selected filter from chip component, emits the selected filter and toggle the isFilterByOptionsVisible state.
|
|
39
39
|
* @param {ChipOption} type
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit } from '@angular/core';
|
|
2
|
+
import { MatTooltip } from '@angular/material/tooltip';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Checks the text is truncated
|
|
6
|
+
* @export
|
|
7
|
+
* @class TextTruncatedDirective
|
|
8
|
+
* @implements {AfterViewInit}
|
|
9
|
+
*/
|
|
10
|
+
export declare class TextTruncatedDirective implements AfterViewInit {
|
|
11
|
+
tooltip: MatTooltip;
|
|
12
|
+
elementRef: ElementRef<HTMLElement>;
|
|
13
|
+
constructor(tooltip: MatTooltip, elementRef: ElementRef<HTMLElement>);
|
|
14
|
+
ngAfterViewInit(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextTruncatedDirective, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TextTruncatedDirective, "[matTooltip][ieeesaTextTruncated]", never, {}, {}, never, never, true, never>;
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ieeesa-npm/presentation",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^16.1.0",
|
|
6
6
|
"@angular/core": "^16.1.0",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"moment": "^2.29.4",
|
|
19
19
|
"rxjs": "~7.8.0",
|
|
20
20
|
"zone.js": "~0.13.0",
|
|
21
|
-
"@ieeesa-npm/shared-styles": "^0.1.
|
|
22
|
-
"@ieeesa-npm/feature": "^0.3.
|
|
21
|
+
"@ieeesa-npm/shared-styles": "^0.1.4",
|
|
22
|
+
"@ieeesa-npm/feature": "^0.3.7"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"tslib": "^2.3.0"
|
package/public-api.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * from './lib/components/data-table/data-table.component';
|
|
|
27
27
|
export * from './lib/directives/dynamic-form-field/dynamic-form-field.directive';
|
|
28
28
|
export * from './lib/directives/focus-invalid-form-field/focus-invalid-form-field.directive';
|
|
29
29
|
export * from './lib/directives/set-background/set-background.directive';
|
|
30
|
+
export * from './lib/directives/text-truncated/text-truncated.directive';
|
|
30
31
|
export * from './lib/models/align-type.model';
|
|
31
32
|
export * from './lib/models/app-config-info.model';
|
|
32
33
|
export * from './lib/models/autocomplete-option.model';
|