@ieeesa-npm/presentation 0.16.9 → 0.17.0
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 +79 -4
- package/esm2022/lib/components/color-picker/color-picker.component.mjs +160 -9
- package/esm2022/lib/models/color-format.model.mjs +1 -1
- package/fesm2022/ieeesa-npm-presentation.mjs +426 -11
- package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
- package/lib/components/chips/chips.component.d.ts +17 -3
- package/lib/components/color-picker/color-picker.component.d.ts +27 -4
- package/lib/components/file-upload/file-upload.component.d.ts +18 -7
- package/lib/models/color-format.model.d.ts +4 -0
- package/lib/services/file-upload.service.d.ts +17 -8
- package/package.json +1 -1
- package/src/lib/assets/constants.json +79 -4
|
@@ -185,12 +185,26 @@ export declare class ChipsComponent implements OnInit, OnDestroy {
|
|
|
185
185
|
defaultTimeFormat: number;
|
|
186
186
|
};
|
|
187
187
|
colorPicker: {
|
|
188
|
-
|
|
189
|
-
|
|
188
|
+
label: {
|
|
189
|
+
select: string;
|
|
190
|
+
cancel: string;
|
|
191
|
+
};
|
|
192
|
+
ariaLabel: {
|
|
193
|
+
colorPicker: string;
|
|
194
|
+
next: string;
|
|
195
|
+
back: string;
|
|
196
|
+
select: string;
|
|
197
|
+
cancel: string;
|
|
198
|
+
hexCodeInput: string;
|
|
199
|
+
palette: string;
|
|
200
|
+
};
|
|
190
201
|
defaultColor: string;
|
|
191
|
-
ariaLabel: string;
|
|
192
202
|
ariaDescription: string;
|
|
193
203
|
ariaDescribedById: string;
|
|
204
|
+
paletteColors: {
|
|
205
|
+
name: string;
|
|
206
|
+
hexCode: string;
|
|
207
|
+
}[];
|
|
194
208
|
};
|
|
195
209
|
fileUpload: {
|
|
196
210
|
label: {
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { NgxColorsTriggerDirective } from 'ngx-colors';
|
|
3
3
|
import { FormGroup } from '@angular/forms';
|
|
4
|
-
import { ColorFormat, ColorsAnimation } from '../../models/color-format.model';
|
|
4
|
+
import { ColorFormat, ColorsAnimation, PaletteColor } from '../../models/color-format.model';
|
|
5
5
|
import { FieldConfig } from '../../models/field-config.model';
|
|
6
6
|
import { FormUtilityService } from '../../services/form-utility.service';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class ColorPickerComponent implements OnInit {
|
|
8
|
+
export declare class ColorPickerComponent implements OnInit, OnDestroy {
|
|
9
|
+
private elementRef;
|
|
9
10
|
private formUtilityService;
|
|
10
11
|
colorPickerDirective: NgxColorsTriggerDirective;
|
|
11
12
|
colorPickerTexts: any;
|
|
13
|
+
paletteColors: PaletteColor[];
|
|
12
14
|
group: FormGroup;
|
|
13
15
|
config: FieldConfig;
|
|
14
16
|
colorPickerChange: EventEmitter<string>;
|
|
@@ -27,7 +29,7 @@ export declare class ColorPickerComponent implements OnInit {
|
|
|
27
29
|
isArrowIconNeeded: boolean;
|
|
28
30
|
canHideTextInput: boolean;
|
|
29
31
|
canHideColorPicker: boolean;
|
|
30
|
-
constructor(formUtilityService: FormUtilityService);
|
|
32
|
+
constructor(elementRef: ElementRef, formUtilityService: FormUtilityService);
|
|
31
33
|
ngOnInit(): void;
|
|
32
34
|
/**
|
|
33
35
|
* Sets the color to form group control.
|
|
@@ -59,6 +61,27 @@ export declare class ColorPickerComponent implements OnInit {
|
|
|
59
61
|
* @returns {void}
|
|
60
62
|
*/
|
|
61
63
|
togglePalette(): void;
|
|
64
|
+
/**
|
|
65
|
+
* Listening the color picker events to achieve the accessibility for color palette.
|
|
66
|
+
* canAddListener false remove the event listeners which we calls in ngDestroy,
|
|
67
|
+
* canAddListener true adding the event listeners while opening the color palette.
|
|
68
|
+
* @memberof ColorPickerComponent
|
|
69
|
+
* @param {boolean} canAddListener
|
|
70
|
+
* @returns {void}
|
|
71
|
+
*/
|
|
72
|
+
colorPickerEventHandlers(canAddListener: boolean): void;
|
|
73
|
+
/**
|
|
74
|
+
* Listens keydown event handles to make the palette focusable.
|
|
75
|
+
* @memberof ColorPickerComponent
|
|
76
|
+
* @param {HTMLElement[]} colorPallettesList
|
|
77
|
+
* @param {KeyboardEvent} event
|
|
78
|
+
* @returns {void}
|
|
79
|
+
*/
|
|
80
|
+
colorPickerKeyDownHandler(colorPallettesList: HTMLElement[], event: KeyboardEvent): void;
|
|
81
|
+
/**
|
|
82
|
+
* Removing the active listeners while component get destroyed.
|
|
83
|
+
*/
|
|
84
|
+
ngOnDestroy(): void;
|
|
62
85
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerComponent, never>;
|
|
63
86
|
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPickerComponent, "ieeesa-color-picker", never, { "defaultColor": { "alias": "defaultColor"; "required": false; }; "palette": { "alias": "palette"; "required": false; }; "overlayClassName": { "alias": "overlayClassName"; "required": false; }; "colorFormat": { "alias": "colorFormat"; "required": false; }; "colorAnimation": { "alias": "colorAnimation"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "paletteSelectLabel": { "alias": "paletteSelectLabel"; "required": false; }; "paletteCancelLabel": { "alias": "paletteCancelLabel"; "required": false; }; "colorPickerLabel": { "alias": "colorPickerLabel"; "required": false; }; "isColorCodeLabelNeeded": { "alias": "isColorCodeLabelNeeded"; "required": false; }; "isArrowIconNeeded": { "alias": "isArrowIconNeeded"; "required": false; }; "canHideTextInput": { "alias": "canHideTextInput"; "required": false; }; "canHideColorPicker": { "alias": "canHideColorPicker"; "required": false; }; }, { "colorPickerChange": "colorPickerChange"; "colorPickerSliderChange": "colorPickerSliderChange"; }, never, never, true, never>;
|
|
64
87
|
}
|
|
@@ -182,12 +182,26 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
182
182
|
defaultTimeFormat: number;
|
|
183
183
|
};
|
|
184
184
|
colorPicker: {
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
label: {
|
|
186
|
+
select: string;
|
|
187
|
+
cancel: string;
|
|
188
|
+
};
|
|
189
|
+
ariaLabel: {
|
|
190
|
+
colorPicker: string;
|
|
191
|
+
next: string;
|
|
192
|
+
back: string;
|
|
193
|
+
select: string;
|
|
194
|
+
cancel: string;
|
|
195
|
+
hexCodeInput: string;
|
|
196
|
+
palette: string;
|
|
197
|
+
};
|
|
187
198
|
defaultColor: string;
|
|
188
|
-
ariaLabel: string;
|
|
189
199
|
ariaDescription: string;
|
|
190
200
|
ariaDescribedById: string;
|
|
201
|
+
paletteColors: {
|
|
202
|
+
name: string;
|
|
203
|
+
hexCode: string;
|
|
204
|
+
}[];
|
|
191
205
|
};
|
|
192
206
|
fileUpload: {
|
|
193
207
|
label: {
|
|
@@ -227,10 +241,7 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
227
241
|
"2025": string;
|
|
228
242
|
"2026": string;
|
|
229
243
|
};
|
|
230
|
-
};
|
|
231
|
-
* Initiates the file upload process for independent file upload component.
|
|
232
|
-
* @memberof FileUploadComponent
|
|
233
|
-
*/
|
|
244
|
+
};
|
|
234
245
|
};
|
|
235
246
|
list: {
|
|
236
247
|
defaultIndentation: number;
|
|
@@ -181,17 +181,26 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
181
181
|
defaultTimeFormat: number;
|
|
182
182
|
};
|
|
183
183
|
colorPicker: {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
184
|
+
label: {
|
|
185
|
+
select: string;
|
|
186
|
+
cancel: string;
|
|
187
|
+
};
|
|
188
|
+
ariaLabel: {
|
|
189
|
+
colorPicker: string;
|
|
190
|
+
next: string;
|
|
191
|
+
back: string;
|
|
192
|
+
select: string;
|
|
193
|
+
cancel: string;
|
|
194
|
+
hexCodeInput: string;
|
|
195
|
+
palette: string;
|
|
196
|
+
};
|
|
191
197
|
defaultColor: string;
|
|
192
|
-
ariaLabel: string;
|
|
193
198
|
ariaDescription: string;
|
|
194
199
|
ariaDescribedById: string;
|
|
200
|
+
paletteColors: {
|
|
201
|
+
name: string;
|
|
202
|
+
hexCode: string;
|
|
203
|
+
}[];
|
|
195
204
|
};
|
|
196
205
|
fileUpload: {
|
|
197
206
|
label: {
|
package/package.json
CHANGED
|
@@ -252,12 +252,87 @@
|
|
|
252
252
|
"defaultTimeFormat": 12
|
|
253
253
|
},
|
|
254
254
|
"colorPicker": {
|
|
255
|
-
"
|
|
256
|
-
|
|
255
|
+
"label": {
|
|
256
|
+
"select": "Select",
|
|
257
|
+
"cancel": "Cancel"
|
|
258
|
+
},
|
|
259
|
+
"ariaLabel": {
|
|
260
|
+
"colorPicker": "Color picker.",
|
|
261
|
+
"next": "More colors.",
|
|
262
|
+
"back": "Back to color palettes.",
|
|
263
|
+
"select": "Select color.",
|
|
264
|
+
"cancel": "Closes the color picker.",
|
|
265
|
+
"hexCodeInput": "Input your color hex code.",
|
|
266
|
+
"palette": "Color palettes."
|
|
267
|
+
},
|
|
257
268
|
"defaultColor": "#F4F3F3",
|
|
258
|
-
"ariaLabel": "Color Picker",
|
|
259
269
|
"ariaDescription": "Choose background color.",
|
|
260
|
-
"ariaDescribedById": "ariaColorPicker"
|
|
270
|
+
"ariaDescribedById": "ariaColorPicker",
|
|
271
|
+
"paletteColors": [
|
|
272
|
+
{ "name": "IEEE SA Blue", "hexCode": "#00B5E2" },
|
|
273
|
+
{ "name": "IEEE Master Brand Blue", "hexCode": "#00629B" },
|
|
274
|
+
{ "name": "IEEE SA Medium Blue", "hexCode": "#4AC9E3" },
|
|
275
|
+
{ "name": "IEEE SA Dark Grey", "hexCode": "#63666A" },
|
|
276
|
+
{ "name": "IEEE SA Medium Grey", "hexCode": "#A7A8AA" },
|
|
277
|
+
{ "name": "IEEE SA Light Grey", "hexCode": "#D9D9D6" },
|
|
278
|
+
{ "name": "IEEE Brand Yellow", "hexCode": "#FFD100" },
|
|
279
|
+
{ "name": "IEEE Brand Orange", "hexCode": "#FFA300" },
|
|
280
|
+
{ "name": "IEEE Brand Red", "hexCode": "#BA0C2F" },
|
|
281
|
+
{ "name": "IEEE White", "hexCode": "#FFFFFF" },
|
|
282
|
+
{ "name": "IEEE Neutral 95", "hexCode": "#F1F1F1" },
|
|
283
|
+
{ "name": "IEEE Neutral Variant 95", "hexCode": "#F0F0F0" },
|
|
284
|
+
{ "name": "IEEE Primary Brand 95", "hexCode": "#EAF3F9" },
|
|
285
|
+
{ "name": "IEEE Primary 95", "hexCode": "#DAE9F1" },
|
|
286
|
+
{ "name": "IEEE SA Medium Blue 95", "hexCode": "#F8FCFF" },
|
|
287
|
+
{ "name": "IEEE Brand Yellow 95", "hexCode": "#FFFBEB" },
|
|
288
|
+
{ "name": "IEEE Brand Orange 95", "hexCode": "#FFF8EB" },
|
|
289
|
+
{ "name": "IEEE Error 99", "hexCode": "#FFFBF9" },
|
|
290
|
+
{ "name": "IEEE SA Dark Grey 90", "hexCode": "#CCD2DA" },
|
|
291
|
+
{ "name": "IEEE Neutral 90", "hexCode": "#DDDCE2" },
|
|
292
|
+
{ "name": "IEEE Neutral Variant 90", "hexCode": "#E3E3E3" },
|
|
293
|
+
{ "name": "IEEE Primary Brand 90", "hexCode": "#D2F0F8" },
|
|
294
|
+
{ "name": "IEEE primary 90", "hexCode": "#C0DEEF" },
|
|
295
|
+
{ "name": "IEEE SA Medium Blue 90", "hexCode": "#EDFAFC" },
|
|
296
|
+
{ "name": "IEEE Brand Yellow 90", "hexCode": "#FFF8D6" },
|
|
297
|
+
{ "name": "IEEE brand orange 90", "hexCode": "#FFEFD3" },
|
|
298
|
+
{ "name": "IEEE Error 90", "hexCode": "#F9DEDC" },
|
|
299
|
+
{ "name": "IEEE SA Dark Grey 80", "hexCode": "#B2B7BE" },
|
|
300
|
+
{ "name": "IEEE Neutral 80", "hexCode": "#C6C5CA" },
|
|
301
|
+
{ "name": "IEEE Neutral Variant 80", "hexCode": "#D1D1D1" },
|
|
302
|
+
{ "name": "IEEE Primary Brand 80", "hexCode": "#9EE3F4" },
|
|
303
|
+
{ "name": "IEEE Primary 80", "hexCode": "#8CBDDA" },
|
|
304
|
+
{ "name": "IEEE SA Medium Blue 80", "hexCode": "#DBF4F9" },
|
|
305
|
+
{ "name": "IEEE Brand Yellow 80", "hexCode": "#FFF0AA" },
|
|
306
|
+
{ "name": "IEEE Brand Orange 80", "hexCode": "#FFE0AA" },
|
|
307
|
+
{ "name": "IEEE Error 80", "hexCode": "#F2B8B5" },
|
|
308
|
+
{ "name": "IEEE SA Dark Grey 60", "hexCode": "#878B8F" },
|
|
309
|
+
{ "name": "IEEE Neutral 60", "hexCode": "#939094" },
|
|
310
|
+
{ "name": "IEEE Neutral Variant 60", "hexCode": "#9B9B9B" },
|
|
311
|
+
{ "name": "IEEE Primary Brand 60", "hexCode": "#52D2F1" },
|
|
312
|
+
{ "name": "IEEE Primary 60", "hexCode": "#4393C1" },
|
|
313
|
+
{ "name": "IEEE SA Medium Blue 60", "hexCode": "#B7E9F4" },
|
|
314
|
+
{ "name": "IEEE Brand Yellow 60", "hexCode": "#FFE156" },
|
|
315
|
+
{ "name": "IEEE Brand Orange 60", "hexCode": "#FFC256" },
|
|
316
|
+
{ "name": "IEEE Error 60", "hexCode": "#E46962" },
|
|
317
|
+
{ "name": "IEEE SA Dark Grey 30", "hexCode": "#4A4D50" },
|
|
318
|
+
{ "name": "IEEE Neutral 30", "hexCode": "#484649" },
|
|
319
|
+
{ "name": "IEEE Neutral Variant 30", "hexCode": "#49454F" },
|
|
320
|
+
{ "name": "IEEE Primary Brand 30", "hexCode": "#0188AA" },
|
|
321
|
+
{ "name": "IEEE Primary 30", "hexCode": "#004982" },
|
|
322
|
+
{ "name": "IEEE SA Medium Blue", "hexCode": "#3BA1B6" },
|
|
323
|
+
{ "name": "IEEE Brand Yellow 30", "hexCode": "#C2A002" },
|
|
324
|
+
{ "name": "IEEE Brand Orange 30", "hexCode": "#BC7902" },
|
|
325
|
+
{ "name": "IEEE Error 40", "hexCode": "#B3261E" },
|
|
326
|
+
{ "name": "IEEE SA Dark Grey 20", "hexCode": "#333436" },
|
|
327
|
+
{ "name": "IEEE Neutral 20", "hexCode": "#313033" },
|
|
328
|
+
{ "name": "IEEE Neutral Variant 20", "hexCode": "#322F37" },
|
|
329
|
+
{ "name": "IEEE Primary Brand 20", "hexCode": "#015E75" },
|
|
330
|
+
{ "name": "IEEE Primary 20", "hexCode": "#00314E" },
|
|
331
|
+
{ "name": "IEEE SA Medium Blue", "hexCode": "#2C7988" },
|
|
332
|
+
{ "name": "IEEE Brand Yellow 20", "hexCode": "#866E02" },
|
|
333
|
+
{ "name": "IEEE Brand Orange 20", "hexCode": "#825300" },
|
|
334
|
+
{ "name": "IEEE Error 20", "hexCode": "#680015" }
|
|
335
|
+
]
|
|
261
336
|
},
|
|
262
337
|
"fileUpload": {
|
|
263
338
|
"label": {
|