@elxjs/ui 0.0.235 → 0.0.237

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/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,27 @@ 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
+ showPaginatorInfo: boolean;
146
+ itemLabel: string;
147
+ showingLabel: string;
148
+ ofLabel: string;
149
+ itemsPerPageLabel: string;
141
150
  paginationEvents: EventEmitter<PaginationEvent>;
151
+ itemsPerPageChange: EventEmitter<number>;
142
152
  pages: number[];
143
153
  previousPages: number[];
144
154
  nextPages: number[];
155
+ itemsPerPageOptionsList: DropdownOption[];
145
156
  constructor();
146
157
  ngOnInit(): void;
147
158
  ngOnChanges(changes: SimpleChanges): void;
159
+ buildItemsPerPageOptions(): void;
160
+ onItemsPerPageSelected(value: number): void;
161
+ get rangeStart(): number;
162
+ get rangeEnd(): number;
148
163
  scrollToElement(event: any): void;
149
164
  goLast(): void;
150
165
  goFirst(): void;
@@ -154,7 +169,8 @@ declare class EluxPaginator implements OnInit, OnChanges {
154
169
  goToSpecPage(page: number, event: any): void;
155
170
  showPages(): void;
156
171
  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>;
172
+ 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; }; "showPaginatorInfo": { "alias": "showPaginatorInfo"; "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>;
173
+ static ngAcceptInputType_showPaginatorInfo: unknown;
158
174
  }
159
175
 
160
176
  declare class EluxStepBar {
@@ -304,7 +320,23 @@ interface DataTableInputNumber extends DefaultCell {
304
320
  min: number;
305
321
  max: number;
306
322
  }
307
- type DataTableCell = DataTableRedirect | DataTableCheckbox | DataTableValue | DataTableInput | DataTableInputNumber;
323
+ interface DataTableInputQuantity extends DefaultCell {
324
+ type: 'input-quantity';
325
+ value?: number;
326
+ min?: number;
327
+ max?: number;
328
+ step?: number;
329
+ disabled?: boolean;
330
+ }
331
+ interface DataTableAction extends DefaultCell {
332
+ type: 'action';
333
+ icon: string;
334
+ name?: string;
335
+ action?: string;
336
+ disabled?: boolean;
337
+ value?: undefined;
338
+ }
339
+ type DataTableCell = DataTableRedirect | DataTableCheckbox | DataTableValue | DataTableInput | DataTableInputNumber | DataTableInputQuantity | DataTableAction;
308
340
  type DataTableRow = DataTableCell[];
309
341
  interface DataTableRowClickEvent {
310
342
  event: Event;
@@ -326,6 +358,12 @@ interface DatatableInputEvent {
326
358
  cell: DataTableCell;
327
359
  index: number;
328
360
  }
361
+ interface DataTableActionEvent {
362
+ event: Event;
363
+ row: DataTableRow;
364
+ cell: DataTableAction;
365
+ index: number;
366
+ }
329
367
  type DataTableClickEvent = DataTableRowClickEvent | DataTableCellClickEvent;
330
368
 
331
369
  declare class EluxDataTable implements OnInit, OnChanges {
@@ -339,20 +377,30 @@ declare class EluxDataTable implements OnInit, OnChanges {
339
377
  isRowClickable: boolean;
340
378
  isCellClickable: boolean;
341
379
  hasPaginator: boolean;
380
+ showPaginatorInfo: boolean;
342
381
  currentPageChange: EventEmitter<number>;
382
+ itemsPerPageChange: EventEmitter<number>;
343
383
  onClick: EventEmitter<DataTableClickEvent>;
344
384
  onChecked: EventEmitter<DataTableCheckEvent>;
345
385
  ontInputChange: EventEmitter<DatatableInputEvent>;
386
+ onAction: EventEmitter<DataTableActionEvent>;
346
387
  currentPage: number;
347
388
  paginatorTotalPages: number;
348
389
  displayRows: DataTableRow[];
390
+ hoveredActionCell: DataTableAction | null;
349
391
  ngOnInit(): void;
350
392
  ngOnChanges(changes: SimpleChanges): void;
351
393
  onPageChange(event: PaginationEvent): void;
394
+ onItemsPerPageChange(itemsPerPage: number): void;
352
395
  refreshPaginator(): void;
353
396
  populateTable(): void;
354
397
  onCheckboxChange(event: Event, row: any, cell: any, index: number): void;
355
398
  onInputChange(event: Event, row: any, cell: any, index: number): void;
399
+ onQuantityDecrease(event: Event, row: any, cell: any, index: number): void;
400
+ onQuantityIncrease(event: Event, row: any, cell: any, index: number): void;
401
+ onQuantityInputChange(event: Event, row: any, cell: any, index: number): void;
402
+ onActionClick(event: Event, row: DataTableRow, cell: DataTableAction, index: number): void;
403
+ getActionIconColor(cell: DataTableAction): string;
356
404
  onRowClick(event: Event, row: DataTableRow, index: number): void;
357
405
  onCellClick(event: Event, row: DataTableRow, cell: DataTableCell, index: number): void;
358
406
  getCellClasses(cell: DataTableCell): {
@@ -362,10 +410,11 @@ declare class EluxDataTable implements OnInit, OnChanges {
362
410
  [key: string]: boolean;
363
411
  };
364
412
  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>;
413
+ 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; }; "showPaginatorInfo": { "alias": "showPaginatorInfo"; "required": false; }; }, { "currentPageChange": "currentPageChange"; "itemsPerPageChange": "itemsPerPageChange"; "onClick": "onClick"; "onChecked": "onChecked"; "ontInputChange": "ontInputChange"; "onAction": "onAction"; }, never, never, true, never>;
366
414
  static ngAcceptInputType_isRowClickable: unknown;
367
415
  static ngAcceptInputType_isCellClickable: unknown;
368
416
  static ngAcceptInputType_hasPaginator: unknown;
417
+ static ngAcceptInputType_showPaginatorInfo: unknown;
369
418
  }
370
419
 
371
420
  declare class EluxAccordion {
@@ -480,21 +529,28 @@ declare class EluxDropdownMultiple implements OnInit, OnChanges {
480
529
  text: string;
481
530
  }[];
482
531
  selectedOptions: any[];
532
+ showSearch: boolean;
483
533
  optionSelected: EventEmitter<any[]>;
484
534
  isOpen: boolean;
485
535
  selectedOptionsText: string[];
536
+ optionsFiltered: {
537
+ value: any;
538
+ text: string;
539
+ }[];
540
+ inputValue: string;
486
541
  constructor();
487
542
  ngOnInit(): void;
488
543
  ngOnChanges(changes: SimpleChanges): void;
489
544
  updateSelectedOptions(): void;
490
545
  toggleDropdown(): void;
546
+ onChangeFilter(event: any): void;
491
547
  selectOption(option: {
492
548
  value: any;
493
549
  text: string;
494
550
  }): void;
495
551
  onDocumentClick(event: MouseEvent): void;
496
552
  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>;
553
+ 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
554
  }
499
555
 
500
556
  declare class EluxLoading2 {
@@ -961,13 +1017,29 @@ declare class EluxToDoList {
961
1017
  static ɵcmp: i0.ɵɵComponentDeclaration<EluxToDoList, "lib-elux-to-do-list", never, { "items": { "alias": "items"; "required": false; }; }, {}, never, never, true, never>;
962
1018
  }
963
1019
 
1020
+ interface PopoverPosition {
1021
+ top: string;
1022
+ left: string;
1023
+ }
1024
+ declare class EluxPopover {
1025
+ private readonly elementRef;
1026
+ open: boolean;
1027
+ position: PopoverPosition;
1028
+ closed: EventEmitter<void>;
1029
+ constructor(elementRef: ElementRef<HTMLElement>);
1030
+ onDocumentClick(event: MouseEvent): void;
1031
+ close(): void;
1032
+ static ɵfac: i0.ɵɵFactoryDeclaration<EluxPopover, never>;
1033
+ static ɵcmp: i0.ɵɵComponentDeclaration<EluxPopover, "lib-elux-popover", never, { "open": { "alias": "open"; "required": false; }; "position": { "alias": "position"; "required": false; }; }, { "closed": "closed"; }, never, ["*"], true, never>;
1034
+ }
1035
+
964
1036
  declare const ElectroluxComponents: Type<any>[];
965
1037
 
966
1038
  declare class ElectroluxDesignSystemModule {
967
1039
  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]>;
1040
+ 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
1041
  static ɵinj: i0.ɵɵInjectorDeclaration<ElectroluxDesignSystemModule>;
970
1042
  }
971
1043
 
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 };
1044
+ 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 };
1045
+ 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@elxjs/ui",
3
- "version": "0.0.235",
3
+ "version": "0.0.237",
4
4
  "license": "UNLICENSED",
5
5
  "peerDependencies": {
6
6
  "@angular/common": ">=18.2.13",