@elxjs/ui 0.0.234 → 0.0.236
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/assets/icons/Moving_Squares.svg +6 -0
- package/assets/icons/Stopwatch.svg +4 -0
- package/assets/styles/inputs.scss +6 -3
- package/fesm2022/elxjs-ui.mjs +274 -116
- package/fesm2022/elxjs-ui.mjs.map +1 -1
- package/index.d.ts +75 -8
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -69,6 +69,7 @@ declare class EluxDropdown implements OnInit, OnChanges, ControlValueAccessor {
|
|
|
69
69
|
disabled: boolean;
|
|
70
70
|
idInput: string;
|
|
71
71
|
showSearch: boolean;
|
|
72
|
+
hidePlaceholder: boolean;
|
|
72
73
|
optionSelected: EventEmitter<any>;
|
|
73
74
|
isOpen: boolean;
|
|
74
75
|
selectedOptionText: string;
|
|
@@ -94,7 +95,7 @@ declare class EluxDropdown implements OnInit, OnChanges, ControlValueAccessor {
|
|
|
94
95
|
get isTouched(): boolean;
|
|
95
96
|
get isInvalid(): boolean;
|
|
96
97
|
static ɵfac: i0.ɵɵFactoryDeclaration<EluxDropdown, never>;
|
|
97
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EluxDropdown, "lib-elux-dropdown", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "options": { "alias": "options"; "required": false; }; "selectedOption": { "alias": "selectedOption"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "idInput": { "alias": "idInput"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; }, { "optionSelected": "optionSelected"; }, never, never, true, never>;
|
|
98
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EluxDropdown, "lib-elux-dropdown", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "options": { "alias": "options"; "required": false; }; "selectedOption": { "alias": "selectedOption"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "idInput": { "alias": "idInput"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "hidePlaceholder": { "alias": "hidePlaceholder"; "required": false; }; }, { "optionSelected": "optionSelected"; }, never, never, true, never>;
|
|
98
99
|
}
|
|
99
100
|
|
|
100
101
|
declare class EluxIcon {
|
|
@@ -138,13 +139,26 @@ declare class EluxPaginator implements OnInit, OnChanges {
|
|
|
138
139
|
current: number;
|
|
139
140
|
anchor: boolean;
|
|
140
141
|
scrollTo?: string;
|
|
142
|
+
totalItems?: number;
|
|
143
|
+
itemsPerPage: number;
|
|
144
|
+
itemsPerPageOptions: number[];
|
|
145
|
+
itemLabel: string;
|
|
146
|
+
showingLabel: string;
|
|
147
|
+
ofLabel: string;
|
|
148
|
+
itemsPerPageLabel: string;
|
|
141
149
|
paginationEvents: EventEmitter<PaginationEvent>;
|
|
150
|
+
itemsPerPageChange: EventEmitter<number>;
|
|
142
151
|
pages: number[];
|
|
143
152
|
previousPages: number[];
|
|
144
153
|
nextPages: number[];
|
|
154
|
+
itemsPerPageOptionsList: DropdownOption[];
|
|
145
155
|
constructor();
|
|
146
156
|
ngOnInit(): void;
|
|
147
157
|
ngOnChanges(changes: SimpleChanges): void;
|
|
158
|
+
buildItemsPerPageOptions(): void;
|
|
159
|
+
onItemsPerPageSelected(value: number): void;
|
|
160
|
+
get rangeStart(): number;
|
|
161
|
+
get rangeEnd(): number;
|
|
148
162
|
scrollToElement(event: any): void;
|
|
149
163
|
goLast(): void;
|
|
150
164
|
goFirst(): void;
|
|
@@ -154,7 +168,7 @@ declare class EluxPaginator implements OnInit, OnChanges {
|
|
|
154
168
|
goToSpecPage(page: number, event: any): void;
|
|
155
169
|
showPages(): void;
|
|
156
170
|
static ɵfac: i0.ɵɵFactoryDeclaration<EluxPaginator, never>;
|
|
157
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EluxPaginator, "lib-elux-paginator", never, { "length": { "alias": "length"; "required": false; }; "current": { "alias": "current"; "required": false; }; "anchor": { "alias": "anchor"; "required": false; }; "scrollTo": { "alias": "scrollTo"; "required": false; }; }, { "paginationEvents": "paginationEvents"; }, never, never, true, never>;
|
|
171
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EluxPaginator, "lib-elux-paginator", never, { "length": { "alias": "length"; "required": false; }; "current": { "alias": "current"; "required": false; }; "anchor": { "alias": "anchor"; "required": false; }; "scrollTo": { "alias": "scrollTo"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; }; "itemsPerPageOptions": { "alias": "itemsPerPageOptions"; "required": false; }; "itemLabel": { "alias": "itemLabel"; "required": false; }; "showingLabel": { "alias": "showingLabel"; "required": false; }; "ofLabel": { "alias": "ofLabel"; "required": false; }; "itemsPerPageLabel": { "alias": "itemsPerPageLabel"; "required": false; }; }, { "paginationEvents": "paginationEvents"; "itemsPerPageChange": "itemsPerPageChange"; }, never, never, true, never>;
|
|
158
172
|
}
|
|
159
173
|
|
|
160
174
|
declare class EluxStepBar {
|
|
@@ -304,7 +318,22 @@ interface DataTableInputNumber extends DefaultCell {
|
|
|
304
318
|
min: number;
|
|
305
319
|
max: number;
|
|
306
320
|
}
|
|
307
|
-
|
|
321
|
+
interface DataTableInputQuantity extends DefaultCell {
|
|
322
|
+
type: 'input-quantity';
|
|
323
|
+
value?: number;
|
|
324
|
+
min?: number;
|
|
325
|
+
max?: number;
|
|
326
|
+
step?: number;
|
|
327
|
+
disabled?: boolean;
|
|
328
|
+
}
|
|
329
|
+
interface DataTableAction extends DefaultCell {
|
|
330
|
+
type: 'action';
|
|
331
|
+
icon: string;
|
|
332
|
+
name?: string;
|
|
333
|
+
action?: string;
|
|
334
|
+
disabled?: boolean;
|
|
335
|
+
}
|
|
336
|
+
type DataTableCell = DataTableRedirect | DataTableCheckbox | DataTableValue | DataTableInput | DataTableInputNumber | DataTableInputQuantity | DataTableAction;
|
|
308
337
|
type DataTableRow = DataTableCell[];
|
|
309
338
|
interface DataTableRowClickEvent {
|
|
310
339
|
event: Event;
|
|
@@ -326,6 +355,12 @@ interface DatatableInputEvent {
|
|
|
326
355
|
cell: DataTableCell;
|
|
327
356
|
index: number;
|
|
328
357
|
}
|
|
358
|
+
interface DataTableActionEvent {
|
|
359
|
+
event: Event;
|
|
360
|
+
row: DataTableRow;
|
|
361
|
+
cell: DataTableAction;
|
|
362
|
+
index: number;
|
|
363
|
+
}
|
|
329
364
|
type DataTableClickEvent = DataTableRowClickEvent | DataTableCellClickEvent;
|
|
330
365
|
|
|
331
366
|
declare class EluxDataTable implements OnInit, OnChanges {
|
|
@@ -340,19 +375,28 @@ declare class EluxDataTable implements OnInit, OnChanges {
|
|
|
340
375
|
isCellClickable: boolean;
|
|
341
376
|
hasPaginator: boolean;
|
|
342
377
|
currentPageChange: EventEmitter<number>;
|
|
378
|
+
itemsPerPageChange: EventEmitter<number>;
|
|
343
379
|
onClick: EventEmitter<DataTableClickEvent>;
|
|
344
380
|
onChecked: EventEmitter<DataTableCheckEvent>;
|
|
345
381
|
ontInputChange: EventEmitter<DatatableInputEvent>;
|
|
382
|
+
onAction: EventEmitter<DataTableActionEvent>;
|
|
346
383
|
currentPage: number;
|
|
347
384
|
paginatorTotalPages: number;
|
|
348
385
|
displayRows: DataTableRow[];
|
|
386
|
+
hoveredActionCell: DataTableAction | null;
|
|
349
387
|
ngOnInit(): void;
|
|
350
388
|
ngOnChanges(changes: SimpleChanges): void;
|
|
351
389
|
onPageChange(event: PaginationEvent): void;
|
|
390
|
+
onItemsPerPageChange(itemsPerPage: number): void;
|
|
352
391
|
refreshPaginator(): void;
|
|
353
392
|
populateTable(): void;
|
|
354
393
|
onCheckboxChange(event: Event, row: any, cell: any, index: number): void;
|
|
355
394
|
onInputChange(event: Event, row: any, cell: any, index: number): void;
|
|
395
|
+
onQuantityDecrease(event: Event, row: any, cell: any, index: number): void;
|
|
396
|
+
onQuantityIncrease(event: Event, row: any, cell: any, index: number): void;
|
|
397
|
+
onQuantityInputChange(event: Event, row: any, cell: any, index: number): void;
|
|
398
|
+
onActionClick(event: Event, row: DataTableRow, cell: DataTableAction, index: number): void;
|
|
399
|
+
getActionIconColor(cell: DataTableAction): string;
|
|
356
400
|
onRowClick(event: Event, row: DataTableRow, index: number): void;
|
|
357
401
|
onCellClick(event: Event, row: DataTableRow, cell: DataTableCell, index: number): void;
|
|
358
402
|
getCellClasses(cell: DataTableCell): {
|
|
@@ -362,7 +406,7 @@ declare class EluxDataTable implements OnInit, OnChanges {
|
|
|
362
406
|
[key: string]: boolean;
|
|
363
407
|
};
|
|
364
408
|
static ɵfac: i0.ɵɵFactoryDeclaration<EluxDataTable, never>;
|
|
365
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EluxDataTable, "lib-elux-datatable", never, { "columns": { "alias": "columns"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "totalRows": { "alias": "totalRows"; "required": false; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; }; "backendPagination": { "alias": "backendPagination"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "isRowClickable": { "alias": "isRowClickable"; "required": false; }; "isCellClickable": { "alias": "isCellClickable"; "required": false; }; "hasPaginator": { "alias": "hasPaginator"; "required": false; }; }, { "currentPageChange": "currentPageChange"; "onClick": "onClick"; "onChecked": "onChecked"; "ontInputChange": "ontInputChange"; }, never, never, true, never>;
|
|
409
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EluxDataTable, "lib-elux-datatable", never, { "columns": { "alias": "columns"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "totalRows": { "alias": "totalRows"; "required": false; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; }; "backendPagination": { "alias": "backendPagination"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "isRowClickable": { "alias": "isRowClickable"; "required": false; }; "isCellClickable": { "alias": "isCellClickable"; "required": false; }; "hasPaginator": { "alias": "hasPaginator"; "required": false; }; }, { "currentPageChange": "currentPageChange"; "itemsPerPageChange": "itemsPerPageChange"; "onClick": "onClick"; "onChecked": "onChecked"; "ontInputChange": "ontInputChange"; "onAction": "onAction"; }, never, never, true, never>;
|
|
366
410
|
static ngAcceptInputType_isRowClickable: unknown;
|
|
367
411
|
static ngAcceptInputType_isCellClickable: unknown;
|
|
368
412
|
static ngAcceptInputType_hasPaginator: unknown;
|
|
@@ -480,21 +524,28 @@ declare class EluxDropdownMultiple implements OnInit, OnChanges {
|
|
|
480
524
|
text: string;
|
|
481
525
|
}[];
|
|
482
526
|
selectedOptions: any[];
|
|
527
|
+
showSearch: boolean;
|
|
483
528
|
optionSelected: EventEmitter<any[]>;
|
|
484
529
|
isOpen: boolean;
|
|
485
530
|
selectedOptionsText: string[];
|
|
531
|
+
optionsFiltered: {
|
|
532
|
+
value: any;
|
|
533
|
+
text: string;
|
|
534
|
+
}[];
|
|
535
|
+
inputValue: string;
|
|
486
536
|
constructor();
|
|
487
537
|
ngOnInit(): void;
|
|
488
538
|
ngOnChanges(changes: SimpleChanges): void;
|
|
489
539
|
updateSelectedOptions(): void;
|
|
490
540
|
toggleDropdown(): void;
|
|
541
|
+
onChangeFilter(event: any): void;
|
|
491
542
|
selectOption(option: {
|
|
492
543
|
value: any;
|
|
493
544
|
text: string;
|
|
494
545
|
}): void;
|
|
495
546
|
onDocumentClick(event: MouseEvent): void;
|
|
496
547
|
static ɵfac: i0.ɵɵFactoryDeclaration<EluxDropdownMultiple, never>;
|
|
497
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EluxDropdownMultiple, "lib-elux-dropdown-multiple", never, { "disabled": { "alias": "disabled"; "required": false; }; "idInput": { "alias": "idInput"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "options": { "alias": "options"; "required": false; }; "selectedOptions": { "alias": "selectedOptions"; "required": false; }; }, { "optionSelected": "optionSelected"; }, never, never, true, never>;
|
|
548
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EluxDropdownMultiple, "lib-elux-dropdown-multiple", never, { "disabled": { "alias": "disabled"; "required": false; }; "idInput": { "alias": "idInput"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "options": { "alias": "options"; "required": false; }; "selectedOptions": { "alias": "selectedOptions"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; }, { "optionSelected": "optionSelected"; }, never, never, true, never>;
|
|
498
549
|
}
|
|
499
550
|
|
|
500
551
|
declare class EluxLoading2 {
|
|
@@ -961,13 +1012,29 @@ declare class EluxToDoList {
|
|
|
961
1012
|
static ɵcmp: i0.ɵɵComponentDeclaration<EluxToDoList, "lib-elux-to-do-list", never, { "items": { "alias": "items"; "required": false; }; }, {}, never, never, true, never>;
|
|
962
1013
|
}
|
|
963
1014
|
|
|
1015
|
+
interface PopoverPosition {
|
|
1016
|
+
top: string;
|
|
1017
|
+
left: string;
|
|
1018
|
+
}
|
|
1019
|
+
declare class EluxPopover {
|
|
1020
|
+
private readonly elementRef;
|
|
1021
|
+
open: boolean;
|
|
1022
|
+
position: PopoverPosition;
|
|
1023
|
+
closed: EventEmitter<void>;
|
|
1024
|
+
constructor(elementRef: ElementRef<HTMLElement>);
|
|
1025
|
+
onDocumentClick(event: MouseEvent): void;
|
|
1026
|
+
close(): void;
|
|
1027
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EluxPopover, never>;
|
|
1028
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EluxPopover, "lib-elux-popover", never, { "open": { "alias": "open"; "required": false; }; "position": { "alias": "position"; "required": false; }; }, { "closed": "closed"; }, never, ["*"], true, never>;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
964
1031
|
declare const ElectroluxComponents: Type<any>[];
|
|
965
1032
|
|
|
966
1033
|
declare class ElectroluxDesignSystemModule {
|
|
967
1034
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElectroluxDesignSystemModule, never>;
|
|
968
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ElectroluxDesignSystemModule, never, [typeof i1.CommonModule, typeof EluxBreadcrumb, typeof EluxButton, typeof EluxDatepicker, typeof EluxDropdown, typeof EluxIcon, typeof EluxPaginator, typeof EluxStepBar, typeof EluxToast, typeof EluxDataTable, typeof EluxAccordion, typeof EluxModal, typeof EluxInputSearchComponent, typeof EluxInputSearchModalComponent, typeof EluxLoading, typeof EluxDropdownMultiple, typeof EluxCarouselComponent, typeof EluxSwitch, typeof EluxChip], [typeof EluxBreadcrumb, typeof EluxButton, typeof EluxDatepicker, typeof EluxDropdown, typeof EluxIcon, typeof EluxPaginator, typeof EluxStepBar, typeof EluxToast, typeof EluxDataTable, typeof EluxAccordion, typeof EluxModal, typeof EluxInputSearchComponent, typeof EluxInputSearchModalComponent, typeof EluxLoading, typeof EluxDropdownMultiple, typeof EluxCarouselComponent, typeof EluxSwitch, typeof EluxChip]>;
|
|
1035
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ElectroluxDesignSystemModule, never, [typeof i1.CommonModule, typeof EluxBreadcrumb, typeof EluxButton, typeof EluxDatepicker, typeof EluxDropdown, typeof EluxIcon, typeof EluxPaginator, typeof EluxStepBar, typeof EluxToast, typeof EluxDataTable, typeof EluxAccordion, typeof EluxModal, typeof EluxInputSearchComponent, typeof EluxInputSearchModalComponent, typeof EluxLoading, typeof EluxDropdownMultiple, typeof EluxCarouselComponent, typeof EluxSwitch, typeof EluxChip, typeof EluxPopover], [typeof EluxBreadcrumb, typeof EluxButton, typeof EluxDatepicker, typeof EluxDropdown, typeof EluxIcon, typeof EluxPaginator, typeof EluxStepBar, typeof EluxToast, typeof EluxDataTable, typeof EluxAccordion, typeof EluxModal, typeof EluxInputSearchComponent, typeof EluxInputSearchModalComponent, typeof EluxLoading, typeof EluxDropdownMultiple, typeof EluxCarouselComponent, typeof EluxSwitch, typeof EluxChip, typeof EluxPopover]>;
|
|
969
1036
|
static ɵinj: i0.ɵɵInjectorDeclaration<ElectroluxDesignSystemModule>;
|
|
970
1037
|
}
|
|
971
1038
|
|
|
972
|
-
export { ElectroluxComponents, ElectroluxDesignSystemModule, EluxAccordion, EluxArrowLink, EluxBreadcrumb, EluxButton, EluxCard1, EluxCard2, EluxCard3, EluxCard4, EluxCardArticle, EluxCardBenefit, EluxCardManual, EluxCardProduct, EluxCardProduct2, EluxCardRoutine, EluxCardServiceOrder, EluxCarouselBleedComponent, EluxCarouselComponent, EluxCarouselFixedComponent, EluxChip, EluxDataTable, EluxDatepicker, EluxDropdown, EluxDropdownMultiple, EluxIcon, EluxInputSearchComponent, EluxInputSearchModalComponent, EluxLoading, EluxLoading2, EluxModal, EluxPaginator, EluxStepBar, EluxSwitch, EluxToDoList, EluxToast, ToasterService };
|
|
973
|
-
export type { BreadCrumbRoute, CarouselBleedTheme, CarouselTheme, DataTableCell, DataTableCellClickEvent, DataTableCheckEvent, DataTableCheckbox, DataTableClickEvent, DataTableHeader, DataTableInput, DataTableInputNumber, DataTableRedirect, DataTableRow, DataTableRowClickEvent, DataTableValue, DatatableInputEvent, Day, DefaultCell, DropdownOption, EluxToDoItems, Month, Page, PaginationEvent, ProductItem, ServiceOrderCardData, Year };
|
|
1039
|
+
export { ElectroluxComponents, ElectroluxDesignSystemModule, EluxAccordion, EluxArrowLink, EluxBreadcrumb, EluxButton, EluxCard1, EluxCard2, EluxCard3, EluxCard4, EluxCardArticle, EluxCardBenefit, EluxCardManual, EluxCardProduct, EluxCardProduct2, EluxCardRoutine, EluxCardServiceOrder, EluxCarouselBleedComponent, EluxCarouselComponent, EluxCarouselFixedComponent, EluxChip, EluxDataTable, EluxDatepicker, EluxDropdown, EluxDropdownMultiple, EluxIcon, EluxInputSearchComponent, EluxInputSearchModalComponent, EluxLoading, EluxLoading2, EluxModal, EluxPaginator, EluxPopover, EluxStepBar, EluxSwitch, EluxToDoList, EluxToast, ToasterService };
|
|
1040
|
+
export type { BreadCrumbRoute, CarouselBleedTheme, CarouselTheme, DataTableAction, DataTableActionEvent, DataTableCell, DataTableCellClickEvent, DataTableCheckEvent, DataTableCheckbox, DataTableClickEvent, DataTableHeader, DataTableInput, DataTableInputNumber, DataTableInputQuantity, DataTableRedirect, DataTableRow, DataTableRowClickEvent, DataTableValue, DatatableInputEvent, Day, DefaultCell, DropdownOption, EluxToDoItems, Month, Page, PaginationEvent, PopoverPosition, ProductItem, ServiceOrderCardData, Year };
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elxjs/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.236",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@angular/common": "
|
|
7
|
-
"@angular/core": "
|
|
6
|
+
"@angular/common": ">=18.2.13",
|
|
7
|
+
"@angular/core": ">=18.2.13"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"tslib": "^2.3.0"
|