@sgcloud-sgsistemas/angular-components 0.0.8 → 0.0.9

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
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { SimpleChanges, EventEmitter, ElementRef, TemplateRef, AfterContentInit, QueryList } from '@angular/core';
2
+ import { SimpleChanges, EventEmitter, ElementRef, TemplateRef, OnInit, AfterContentInit, QueryList, ChangeDetectorRef } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import { Subject, Observable } from 'rxjs';
5
5
  import * as i26 from '@angular/cdk/scrolling';
@@ -407,79 +407,75 @@ declare class AcSideMenu {
407
407
  static ɵcmp: i0.ɵɵComponentDeclaration<AcSideMenu, "ac-side-menu", never, { "routes": { "alias": "routes"; "required": false; }; "goTo": { "alias": "goTo"; "required": false; }; "forcedShowModules": { "alias": "forcedShowModules"; "required": false; }; }, {}, never, never, true, never>;
408
408
  }
409
409
 
410
- interface AcListColumn {
411
- param: string;
412
- label: string;
413
- direction?: string;
414
- hide?: boolean;
415
- sortable?: boolean;
416
- size?: number;
417
- }
418
-
419
- type AcListSortDirection = "ASC" | "DESC" | "NONE";
420
-
421
- type IconDirection = {
422
- icon: string;
423
- next: AcListSortDirection;
424
- };
425
- type Direction = {
426
- NONE: IconDirection;
427
- ASC: IconDirection;
428
- DESC: IconDirection;
429
- };
430
- declare class AcList {
431
- direction: Direction;
432
- columns: AcListColumn[];
433
- list: any[];
434
- rowTemplate?: TemplateRef<any>;
435
- sortColumn: string;
436
- sortDirection: AcListSortDirection;
437
- constructor();
438
- ngOnInit(): void;
439
- ngOnChanges(changes: SimpleChanges): void;
440
- onSortDirection(colIndex: number): void;
441
- getSortDirection(colIndex: number): AcListSortDirection;
442
- static ɵfac: i0.ɵɵFactoryDeclaration<AcList, never>;
443
- static ɵcmp: i0.ɵɵComponentDeclaration<AcList, "ac-list", never, { "columns": { "alias": "columns"; "required": false; }; "list": { "alias": "list"; "required": false; }; "rowTemplate": { "alias": "rowTemplate"; "required": false; }; "sortColumn": { "alias": "sortColumn"; "required": false; }; "sortDirection": { "alias": "sortDirection"; "required": false; }; }, {}, never, never, true, never>;
444
- }
445
-
446
- declare class AcListV2Column {
410
+ declare class AcListColumn {
447
411
  name: string;
448
412
  label?: string;
449
413
  sortable: boolean;
414
+ sortField?: string;
450
415
  alignColumn: string;
451
416
  alignRow: string;
417
+ width?: string;
418
+ minWidth?: string;
419
+ maxWidth?: string;
420
+ wrap: boolean;
421
+ ellipsis: boolean;
452
422
  contentTpl?: TemplateRef<any>;
453
- static ɵfac: i0.ɵɵFactoryDeclaration<AcListV2Column, never>;
454
- static ɵcmp: i0.ɵɵComponentDeclaration<AcListV2Column, "ac-list-v2-column", never, { "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "alignColumn": { "alias": "alignColumn"; "required": false; }; "alignRow": { "alias": "alignRow"; "required": false; }; }, {}, ["contentTpl"], never, true, never>;
423
+ static ɵfac: i0.ɵɵFactoryDeclaration<AcListColumn, never>;
424
+ static ɵcmp: i0.ɵɵComponentDeclaration<AcListColumn, "ac-list-column", never, { "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "sortField": { "alias": "sortField"; "required": false; }; "alignColumn": { "alias": "alignColumn"; "required": false; }; "alignRow": { "alias": "alignRow"; "required": false; }; "width": { "alias": "width"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "wrap": { "alias": "wrap"; "required": false; }; "ellipsis": { "alias": "ellipsis"; "required": false; }; }, {}, ["contentTpl"], never, true, never>;
455
425
  }
456
426
 
457
- declare class AcListV2 implements AfterContentInit {
427
+ declare class AcListSub implements OnInit {
428
+ private elementRef;
429
+ private list;
430
+ name: string;
431
+ alignSub: string;
432
+ alignRow: string;
433
+ hidden: boolean;
434
+ onOpen: EventEmitter<any>;
435
+ subEl: HTMLElement;
436
+ constructor(elementRef: ElementRef, list: AcList);
437
+ ngOnInit(): void;
438
+ private __initializeSubList;
439
+ get element(): HTMLElement;
440
+ triggerOnOpen(data: any): Promise<void>;
441
+ static ɵfac: i0.ɵɵFactoryDeclaration<AcListSub, never>;
442
+ static ɵcmp: i0.ɵɵComponentDeclaration<AcListSub, "ac-list-sub", never, { "name": { "alias": "name"; "required": false; }; "alignSub": { "alias": "alignSub"; "required": false; }; "alignRow": { "alias": "alignRow"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; }, { "onOpen": "onOpen"; }, never, ["*"], true, never>;
443
+ }
444
+
445
+ declare class AcList implements AfterContentInit {
446
+ private elementRef;
447
+ private cdr;
458
448
  list: any[];
459
449
  itemSize: number;
460
- columns: QueryList<AcListV2Column>;
461
- columnsArr: AcListV2Column[];
450
+ enableVirtualScroll: boolean;
451
+ columns: QueryList<AcListColumn>;
452
+ onSortEmitter: EventEmitter<any>;
453
+ columnsArr: AcListColumn[];
462
454
  sortColumn: string;
463
455
  sortDirection: 'ASC' | 'DESC' | 'NONE';
456
+ subList: AcListSub | null;
457
+ constructor(elementRef: ElementRef, cdr: ChangeDetectorRef);
464
458
  ngAfterContentInit(): void;
465
- onSort(column: AcListV2Column): void;
466
- getSortedList(): any[];
459
+ onSort(column: AcListColumn): void;
467
460
  get shouldUseVirtualScroll(): boolean;
468
- static ɵfac: i0.ɵɵFactoryDeclaration<AcListV2, never>;
469
- static ɵcmp: i0.ɵɵComponentDeclaration<AcListV2, "ac-list-v2", never, { "list": { "alias": "list"; "required": false; }; "itemSize": { "alias": "itemSize"; "required": false; }; }, {}, ["columns"], never, true, never>;
461
+ registerSubList(subList: AcListSub): void;
462
+ renderSubList(position: number): Promise<void>;
463
+ isRowExpanded(index: number): boolean;
464
+ static ɵfac: i0.ɵɵFactoryDeclaration<AcList, never>;
465
+ static ɵcmp: i0.ɵɵComponentDeclaration<AcList, "ac-list", never, { "list": { "alias": "list"; "required": false; }; "itemSize": { "alias": "itemSize"; "required": false; }; "enableVirtualScroll": { "alias": "enableVirtualScroll"; "required": false; }; }, { "onSortEmitter": "onSortEmitter"; }, ["columns"], ["ac-list-sub"], true, never>;
470
466
  }
471
467
 
472
- declare class AcListV2Content {
468
+ declare class AcListContent {
473
469
  template: TemplateRef<any>;
474
470
  constructor(template: TemplateRef<any>);
475
- static ɵfac: i0.ɵɵFactoryDeclaration<AcListV2Content, never>;
476
- static ɵdir: i0.ɵɵDirectiveDeclaration<AcListV2Content, "[ac-list-v2-content]", never, {}, {}, never, never, true, never>;
471
+ static ɵfac: i0.ɵɵFactoryDeclaration<AcListContent, never>;
472
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AcListContent, "[ac-list-content]", never, {}, {}, never, never, true, never>;
477
473
  }
478
474
 
479
475
  declare class ComponentsModule {
480
476
  static ɵfac: i0.ɵɵFactoryDeclaration<ComponentsModule, never>;
481
- static ɵmod: i0.ɵɵNgModuleDeclaration<ComponentsModule, never, [typeof i1.CommonModule, typeof AcButton, typeof AcSwitch, typeof AcCheckBox, typeof AcInputPassword, typeof AcInputText, typeof AcInputDocumentNumber, typeof AcInputPhoneNumber, typeof AcInputDateTime, typeof AcInputDate, typeof AcInputTime, typeof AcInputFile, typeof AcInputPercentage, typeof AcInputNumber, typeof AcInputMoney, typeof AcActionLink, typeof AcSelect, typeof AcPagination, typeof AcNotification, typeof AcProgressBar, typeof AcSideMenu, typeof AcList, typeof AcListV2, typeof AcListV2Column, typeof AcListV2Content, typeof i26.ScrollingModule], [typeof AcButton, typeof AcSwitch, typeof AcCheckBox, typeof AcInputPassword, typeof AcInputText, typeof AcInputDocumentNumber, typeof AcInputPhoneNumber, typeof AcInputDateTime, typeof AcInputDate, typeof AcInputTime, typeof AcInputFile, typeof AcInputPercentage, typeof AcInputNumber, typeof AcInputMoney, typeof AcActionLink, typeof AcSelect, typeof AcPagination, typeof AcNotification, typeof AcProgressBar, typeof AcSideMenu, typeof AcList, typeof AcListV2, typeof AcListV2Column, typeof AcListV2Content]>;
477
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ComponentsModule, never, [typeof i1.CommonModule, typeof AcButton, typeof AcSwitch, typeof AcCheckBox, typeof AcInputPassword, typeof AcInputText, typeof AcInputDocumentNumber, typeof AcInputPhoneNumber, typeof AcInputDateTime, typeof AcInputDate, typeof AcInputTime, typeof AcInputFile, typeof AcInputPercentage, typeof AcInputNumber, typeof AcInputMoney, typeof AcActionLink, typeof AcSelect, typeof AcPagination, typeof AcNotification, typeof AcProgressBar, typeof AcSideMenu, typeof AcList, typeof AcListColumn, typeof AcListContent, typeof AcListSub, typeof i26.ScrollingModule], [typeof AcButton, typeof AcSwitch, typeof AcCheckBox, typeof AcInputPassword, typeof AcInputText, typeof AcInputDocumentNumber, typeof AcInputPhoneNumber, typeof AcInputDateTime, typeof AcInputDate, typeof AcInputTime, typeof AcInputFile, typeof AcInputPercentage, typeof AcInputNumber, typeof AcInputMoney, typeof AcActionLink, typeof AcSelect, typeof AcPagination, typeof AcNotification, typeof AcProgressBar, typeof AcSideMenu, typeof AcList, typeof AcListColumn, typeof AcListContent, typeof AcListSub]>;
482
478
  static ɵinj: i0.ɵɵInjectorDeclaration<ComponentsModule>;
483
479
  }
484
480
 
485
- export { AcActionLink, AcButton, AcCheckBox, AcInputDate, AcInputDateTime, AcInputDocumentNumber, AcInputFile, AcInputMoney, AcInputNumber, AcInputPassword, AcInputPercentage, AcInputPhoneNumber, AcInputText, AcInputTime, AcList, AcListV2, AcListV2Column, AcListV2Content, AcNotification, AcPagination, AcProgressBar, AcSelect, AcSideMenu, AcSwitch, ComponentsModule };
481
+ export { AcActionLink, AcButton, AcCheckBox, AcInputDate, AcInputDateTime, AcInputDocumentNumber, AcInputFile, AcInputMoney, AcInputNumber, AcInputPassword, AcInputPercentage, AcInputPhoneNumber, AcInputText, AcInputTime, AcList, AcListColumn, AcListContent, AcListSub, AcNotification, AcPagination, AcProgressBar, AcSelect, AcSideMenu, AcSwitch, ComponentsModule };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sgcloud-sgsistemas/angular-components",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.0.0",
6
6
  "@angular/core": "^20.0.0",