@ieeesa-npm/presentation 0.4.2 → 0.4.4
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/assets/constants.json +72 -0
- package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +3 -3
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +23 -4
- 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/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/icon-button/icon-button.component.mjs +4 -4
- package/esm2022/lib/components/input/input.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 +3 -3
- package/esm2022/lib/models/checkbox-option.model.mjs +1 -1
- package/esm2022/lib/models/icon-button.model.mjs +1 -1
- package/fesm2022/ieeesa-npm-presentation.mjs +144 -48
- package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
- package/lib/components/checkbox/checkbox.component.d.ts +15 -4
- package/lib/models/checkbox-option.model.d.ts +1 -1
- package/lib/models/icon-button.model.d.ts +1 -0
- package/package.json +3 -3
- package/src/lib/assets/constants.json +72 -0
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
4
|
+
import { Subject } from 'rxjs';
|
|
3
5
|
import { FieldConfig } from '../../models/field-config.model';
|
|
4
6
|
import { FormField } from '../../models/form-field.model';
|
|
5
7
|
import { CheckboxOption } from '../../models/checkbox-option.model';
|
|
@@ -12,7 +14,7 @@ import * as i0 from "@angular/core";
|
|
|
12
14
|
* @implements {OnInit}
|
|
13
15
|
* @implements {FormField}
|
|
14
16
|
*/
|
|
15
|
-
export declare class CheckboxComponent implements OnInit, FormField {
|
|
17
|
+
export declare class CheckboxComponent implements OnInit, FormField, OnDestroy {
|
|
16
18
|
private formUtilityService;
|
|
17
19
|
config: FieldConfig;
|
|
18
20
|
group: FormGroup;
|
|
@@ -24,10 +26,14 @@ export declare class CheckboxComponent implements OnInit, FormField {
|
|
|
24
26
|
*/
|
|
25
27
|
set checkboxes(value: CheckboxOption[]);
|
|
26
28
|
get checkboxes(): CheckboxOption[];
|
|
29
|
+
selectedCheckboxesInfo: SelectionModel<CheckboxOption>;
|
|
27
30
|
checkboxSelection: EventEmitter<CheckboxOption>;
|
|
31
|
+
selectedCheckboxes: EventEmitter<CheckboxOption[]>;
|
|
32
|
+
destroy$: Subject<boolean>;
|
|
28
33
|
constructor(formUtilityService: FormUtilityService);
|
|
29
34
|
/**
|
|
30
|
-
* Implementation of ngOnInit lifecycle hook method of component to initialize component instance properties
|
|
35
|
+
* Implementation of ngOnInit lifecycle hook method of component to initialize component instance properties
|
|
36
|
+
* and emits whenever the checkboxes selection state changes
|
|
31
37
|
* @memberof CheckboxComponent
|
|
32
38
|
*/
|
|
33
39
|
ngOnInit(): void;
|
|
@@ -50,6 +56,11 @@ export declare class CheckboxComponent implements OnInit, FormField {
|
|
|
50
56
|
* @memberof CheckboxComponent
|
|
51
57
|
*/
|
|
52
58
|
trackById(index: number, option: CheckboxOption): number | string;
|
|
59
|
+
/**
|
|
60
|
+
* NgOnDestroy performs necessary cleanup tasks, such as unsubscribing from subscription when the component is being destroyed.
|
|
61
|
+
* @memberof CheckboxComponent
|
|
62
|
+
*/
|
|
63
|
+
ngOnDestroy(): void;
|
|
53
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
54
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "ieeesa-checkbox", never, { "checkboxes": { "alias": "checkboxes"; "required": false; }; }, { "checkboxSelection": "checkboxSelection"; }, never, never, true, never>;
|
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "ieeesa-checkbox", never, { "checkboxes": { "alias": "checkboxes"; "required": false; }; }, { "checkboxSelection": "checkboxSelection"; "selectedCheckboxes": "selectedCheckboxes"; }, never, never, true, never>;
|
|
55
66
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ieeesa-npm/presentation",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
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.
|
|
22
|
-
"@ieeesa-npm/feature": "^0.2.
|
|
21
|
+
"@ieeesa-npm/shared-styles": "^0.1.1",
|
|
22
|
+
"@ieeesa-npm/feature": "^0.2.6"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"tslib": "^2.3.0"
|
|
@@ -11,6 +11,64 @@
|
|
|
11
11
|
"cancel": "Cancel",
|
|
12
12
|
"ok": "Ok"
|
|
13
13
|
},
|
|
14
|
+
"chips": {
|
|
15
|
+
"noOfDefaultVisibleChips": 3,
|
|
16
|
+
"label" : {
|
|
17
|
+
"viewAll": "View all",
|
|
18
|
+
"viewLess": "View less"
|
|
19
|
+
},
|
|
20
|
+
"ariaLabel": {
|
|
21
|
+
"chipsList": "List of chips"
|
|
22
|
+
},
|
|
23
|
+
"icons": {
|
|
24
|
+
"arrow": {
|
|
25
|
+
"id": 0,
|
|
26
|
+
"iconURL": "assets/images/sprites/sprites.svg#icon-arrow-drop-down",
|
|
27
|
+
"toolTip": "",
|
|
28
|
+
"ariaLabel": "Drop Down"
|
|
29
|
+
},
|
|
30
|
+
"remove": {
|
|
31
|
+
"id": 1,
|
|
32
|
+
"iconURL": "assets/images/sprites/sprites.svg#icon-trailing",
|
|
33
|
+
"toolTip": "",
|
|
34
|
+
"ariaLabel": "Remove"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"dataTable" : {
|
|
39
|
+
"label": {
|
|
40
|
+
"clearAll": "Clear All"
|
|
41
|
+
},
|
|
42
|
+
"ariaLabel": {
|
|
43
|
+
"search": "Search",
|
|
44
|
+
"selectAll": "Select All",
|
|
45
|
+
"select": "Select",
|
|
46
|
+
"link": "Link",
|
|
47
|
+
"pagination": "Pagination"
|
|
48
|
+
},
|
|
49
|
+
"buttons": [
|
|
50
|
+
{
|
|
51
|
+
"id": 1,
|
|
52
|
+
"iconURL": "assets/images/sprites/sprites.svg#icon-data-table-edit",
|
|
53
|
+
"toolTip": "",
|
|
54
|
+
"ariaLabel": "Edit",
|
|
55
|
+
"disabled": true
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": 2,
|
|
59
|
+
"iconURL": "assets/images/sprites/sprites.svg#icon-data-table-delete",
|
|
60
|
+
"toolTip": "",
|
|
61
|
+
"ariaLabel": "Delete",
|
|
62
|
+
"disabled": true
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": 3,
|
|
66
|
+
"iconURL": "assets/images/sprites/sprites.svg#icon-add-member",
|
|
67
|
+
"toolTip": "",
|
|
68
|
+
"ariaLabel": "Add user(s)"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
},
|
|
14
72
|
"datePicker": {
|
|
15
73
|
"selectDateLabel": "Select Date",
|
|
16
74
|
"dateFormatLabel": "DD-MMM-YYYY",
|
|
@@ -20,6 +78,20 @@
|
|
|
20
78
|
"dropdown": {
|
|
21
79
|
"placeholderText": "Select your option(s)"
|
|
22
80
|
},
|
|
81
|
+
"filter": {
|
|
82
|
+
"label": {
|
|
83
|
+
"filterBy": "Filter By:",
|
|
84
|
+
"applyButton": "Apply"
|
|
85
|
+
},
|
|
86
|
+
"buttons": [
|
|
87
|
+
{
|
|
88
|
+
"id": 4,
|
|
89
|
+
"iconURL": "assets/images/sprites/sprites.svg#icon-filter-list",
|
|
90
|
+
"toolTip": "",
|
|
91
|
+
"ariaLabel": "Filter"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
},
|
|
23
95
|
"textarea": {
|
|
24
96
|
"maxLengthDefault": 1000
|
|
25
97
|
},
|