@sgcloud-sgsistemas/angular-components 0.0.7 → 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';
|
|
@@ -368,12 +368,14 @@ type AcModule = {
|
|
|
368
368
|
icon: string;
|
|
369
369
|
path: string;
|
|
370
370
|
modules: AcModule[];
|
|
371
|
+
show: boolean;
|
|
371
372
|
};
|
|
372
373
|
|
|
373
374
|
type AcRoute = {
|
|
374
375
|
title: string;
|
|
375
376
|
icon: string;
|
|
376
377
|
modulesType: AcModule[];
|
|
378
|
+
show: boolean;
|
|
377
379
|
};
|
|
378
380
|
|
|
379
381
|
declare class AcSideMenu {
|
|
@@ -405,79 +407,75 @@ declare class AcSideMenu {
|
|
|
405
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>;
|
|
406
408
|
}
|
|
407
409
|
|
|
408
|
-
|
|
409
|
-
param: string;
|
|
410
|
-
label: string;
|
|
411
|
-
direction?: string;
|
|
412
|
-
hide?: boolean;
|
|
413
|
-
sortable?: boolean;
|
|
414
|
-
size?: number;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
type AcListSortDirection = "ASC" | "DESC" | "NONE";
|
|
418
|
-
|
|
419
|
-
type IconDirection = {
|
|
420
|
-
icon: string;
|
|
421
|
-
next: AcListSortDirection;
|
|
422
|
-
};
|
|
423
|
-
type Direction = {
|
|
424
|
-
NONE: IconDirection;
|
|
425
|
-
ASC: IconDirection;
|
|
426
|
-
DESC: IconDirection;
|
|
427
|
-
};
|
|
428
|
-
declare class AcList {
|
|
429
|
-
direction: Direction;
|
|
430
|
-
columns: AcListColumn[];
|
|
431
|
-
list: any[];
|
|
432
|
-
rowTemplate?: TemplateRef<any>;
|
|
433
|
-
sortColumn: string;
|
|
434
|
-
sortDirection: AcListSortDirection;
|
|
435
|
-
constructor();
|
|
436
|
-
ngOnInit(): void;
|
|
437
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
438
|
-
onSortDirection(colIndex: number): void;
|
|
439
|
-
getSortDirection(colIndex: number): AcListSortDirection;
|
|
440
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AcList, never>;
|
|
441
|
-
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>;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
declare class AcListV2Column {
|
|
410
|
+
declare class AcListColumn {
|
|
445
411
|
name: string;
|
|
446
412
|
label?: string;
|
|
447
413
|
sortable: boolean;
|
|
414
|
+
sortField?: string;
|
|
448
415
|
alignColumn: string;
|
|
449
416
|
alignRow: string;
|
|
417
|
+
width?: string;
|
|
418
|
+
minWidth?: string;
|
|
419
|
+
maxWidth?: string;
|
|
420
|
+
wrap: boolean;
|
|
421
|
+
ellipsis: boolean;
|
|
450
422
|
contentTpl?: TemplateRef<any>;
|
|
451
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
452
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
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>;
|
|
453
425
|
}
|
|
454
426
|
|
|
455
|
-
declare class
|
|
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;
|
|
456
448
|
list: any[];
|
|
457
449
|
itemSize: number;
|
|
458
|
-
|
|
459
|
-
|
|
450
|
+
enableVirtualScroll: boolean;
|
|
451
|
+
columns: QueryList<AcListColumn>;
|
|
452
|
+
onSortEmitter: EventEmitter<any>;
|
|
453
|
+
columnsArr: AcListColumn[];
|
|
460
454
|
sortColumn: string;
|
|
461
455
|
sortDirection: 'ASC' | 'DESC' | 'NONE';
|
|
456
|
+
subList: AcListSub | null;
|
|
457
|
+
constructor(elementRef: ElementRef, cdr: ChangeDetectorRef);
|
|
462
458
|
ngAfterContentInit(): void;
|
|
463
|
-
onSort(column:
|
|
464
|
-
getSortedList(): any[];
|
|
459
|
+
onSort(column: AcListColumn): void;
|
|
465
460
|
get shouldUseVirtualScroll(): boolean;
|
|
466
|
-
|
|
467
|
-
|
|
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>;
|
|
468
466
|
}
|
|
469
467
|
|
|
470
|
-
declare class
|
|
468
|
+
declare class AcListContent {
|
|
471
469
|
template: TemplateRef<any>;
|
|
472
470
|
constructor(template: TemplateRef<any>);
|
|
473
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
474
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
471
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AcListContent, never>;
|
|
472
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AcListContent, "[ac-list-content]", never, {}, {}, never, never, true, never>;
|
|
475
473
|
}
|
|
476
474
|
|
|
477
475
|
declare class ComponentsModule {
|
|
478
476
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentsModule, never>;
|
|
479
|
-
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
|
|
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]>;
|
|
480
478
|
static ɵinj: i0.ɵɵInjectorDeclaration<ComponentsModule>;
|
|
481
479
|
}
|
|
482
480
|
|
|
483
|
-
export { AcActionLink, AcButton, AcCheckBox, AcInputDate, AcInputDateTime, AcInputDocumentNumber, AcInputFile, AcInputMoney, AcInputNumber, AcInputPassword, AcInputPercentage, AcInputPhoneNumber, AcInputText, AcInputTime, AcList,
|
|
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 };
|