ui-core-abv 0.0.1

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.
Files changed (48) hide show
  1. package/README.md +63 -0
  2. package/fesm2022/ui-core-abv.mjs +1492 -0
  3. package/fesm2022/ui-core-abv.mjs.map +1 -0
  4. package/index.d.ts +5 -0
  5. package/lib/animations/animatedRow.animation.d.ts +1 -0
  6. package/lib/animations/animatios.index.d.ts +6 -0
  7. package/lib/animations/fadeAndRise.animation.d.ts +1 -0
  8. package/lib/animations/highlightRow.animation.d.ts +1 -0
  9. package/lib/animations/pushTop.animation.d.ts +1 -0
  10. package/lib/animations/sideModal.animation.d.ts +2 -0
  11. package/lib/animations/simpleFade.animation.d.ts +1 -0
  12. package/lib/base-value-accessot.d.ts +12 -0
  13. package/lib/button/button.component.d.ts +17 -0
  14. package/lib/checkbox/checkbox.component.d.ts +22 -0
  15. package/lib/dynamic-form/form/dynamic-form.component.d.ts +10 -0
  16. package/lib/dynamic-form/form-wrapper/form-wrapper.component.d.ts +26 -0
  17. package/lib/dynamic-form/form.models.d.ts +36 -0
  18. package/lib/inputs/input/input.component.d.ts +17 -0
  19. package/lib/inputs/searcher/searcher.component.d.ts +46 -0
  20. package/lib/inputs/select/select.component.d.ts +46 -0
  21. package/lib/modal/floating-modal/modal.component.d.ts +21 -0
  22. package/lib/modal/floating-modal/modalconfig.model.d.ts +7 -0
  23. package/lib/modal/modaRef.d.ts +15 -0
  24. package/lib/modal/modal.constant.d.ts +5 -0
  25. package/lib/modal/modal.service.d.ts +22 -0
  26. package/lib/modal/side-modal/side-modal.component.d.ts +30 -0
  27. package/lib/modal/side-modal/sideModalConfig.model.d.ts +11 -0
  28. package/lib/pipes/name-inits.pipe.d.ts +7 -0
  29. package/lib/push-alerts/alert/alert.component.d.ts +16 -0
  30. package/lib/push-alerts/alert-container/alert-container.component.d.ts +13 -0
  31. package/lib/push-alerts/alert.helpers.d.ts +5 -0
  32. package/lib/push-alerts/alert.model.d.ts +29 -0
  33. package/lib/push-alerts/push-alert.service.d.ts +12 -0
  34. package/lib/skeleton-loader/skeleton-loader.component.d.ts +10 -0
  35. package/lib/table/table-list/table-list.component.d.ts +7 -0
  36. package/lib/table/table-pagination/table-pagination.component.d.ts +16 -0
  37. package/lib/table/table-searcher/table-searcher.component.d.ts +13 -0
  38. package/lib/table/table-user/table-user.component.d.ts +7 -0
  39. package/lib/table/table.component.d.ts +49 -0
  40. package/lib/table/table.models.d.ts +56 -0
  41. package/lib/tiny-alert/tiny-alert.component.d.ts +15 -0
  42. package/lib/tiny-alert/tiny-alert.model.d.ts +32 -0
  43. package/lib/tiny-alert/tiny-alert.service.d.ts +8 -0
  44. package/lib/toggle-button/toggle-button.component.d.ts +11 -0
  45. package/lib/tooltip/tool-tip.directive.d.ts +17 -0
  46. package/lib/tooltip/tooltip.component.d.ts +8 -0
  47. package/package.json +26 -0
  48. package/public-api.d.ts +22 -0
@@ -0,0 +1,46 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { ConnectedPosition } from '@angular/cdk/overlay';
3
+ import * as i0 from "@angular/core";
4
+ declare const base: abstract new () => {
5
+ value: AppSelectOption | null;
6
+ valueChange: import("@angular/core").EventEmitter<AppSelectOption | null>;
7
+ onChange: (value: AppSelectOption | null) => void;
8
+ onTouched: () => void;
9
+ writeValue(obj: AppSelectOption | null): void;
10
+ registerOnChange(fn: any): void;
11
+ registerOnTouched(fn: any): void;
12
+ setDisabledState?(isDisabled: boolean): void;
13
+ notifyChange(value: AppSelectOption | null): void;
14
+ };
15
+ export declare class SelectComponent extends base {
16
+ icon: string;
17
+ iconColor: 'primary' | 'secondary';
18
+ internalIcon: string;
19
+ size: 's' | 'm' | 'l';
20
+ label: string;
21
+ error: string;
22
+ tip: string;
23
+ disabled: boolean;
24
+ nullable: boolean;
25
+ options: AppSelectOption[];
26
+ showSubtitle: boolean;
27
+ overlayPositions: ConnectedPosition[];
28
+ open: boolean;
29
+ emptyText: string;
30
+ private readonly renderer;
31
+ toggleButton: ElementRef;
32
+ private unlistener;
33
+ ngOnInit(): void;
34
+ openList(): void;
35
+ selectOption(option: AppSelectOption | null): void;
36
+ closeList(): void;
37
+ openListOverlay(): void;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "ui-select", never, { "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "internalIcon": { "alias": "internalIcon"; "required": false; }; "size": { "alias": "size"; "required": false; }; "label": { "alias": "label"; "required": false; }; "error": { "alias": "error"; "required": false; }; "tip": { "alias": "tip"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "nullable": { "alias": "nullable"; "required": false; }; "options": { "alias": "options"; "required": false; }; "showSubtitle": { "alias": "showSubtitle"; "required": false; }; }, {}, never, never, true, never>;
40
+ }
41
+ export interface AppSelectOption {
42
+ id?: string | number | null;
43
+ text: string;
44
+ detail?: string;
45
+ }
46
+ export {};
@@ -0,0 +1,21 @@
1
+ import { Injector, Type } from '@angular/core';
2
+ import { CdkPortalOutlet } from '@angular/cdk/portal';
3
+ import { ModalConfig } from './modalconfig.model';
4
+ import { UiModalRef } from '../modaRef';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ModalComponent {
7
+ private readonly modalRef;
8
+ private readonly component;
9
+ private readonly congif;
10
+ private readonly injector;
11
+ myConfig: ModalConfig;
12
+ ready: boolean;
13
+ title: string;
14
+ portalOutlet: CdkPortalOutlet;
15
+ constructor(modalRef: UiModalRef, component: Type<any>, congif: ModalConfig, injector: Injector);
16
+ ngAfterViewInit(): void;
17
+ closeOuside(): void;
18
+ close(): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "app-modal", never, {}, {}, never, never, true, never>;
21
+ }
@@ -0,0 +1,7 @@
1
+ export interface ModalConfig<T = any> {
2
+ data?: T;
3
+ title?: string;
4
+ preventCloseingOutside?: boolean;
5
+ size?: 'small' | 'medium' | 'large';
6
+ noPadding?: boolean;
7
+ }
@@ -0,0 +1,15 @@
1
+ import { OverlayRef } from "@angular/cdk/overlay";
2
+ import { Observable } from "rxjs";
3
+ import { UiModalService } from "./modal.service";
4
+ export declare class UiModalRef<T = any> {
5
+ private readonly overlayRef;
6
+ private readonly modalService;
7
+ private readonly _afterClosed;
8
+ constructor(overlayRef: OverlayRef, modalService: UiModalService);
9
+ close(result?: T | null): void;
10
+ closeFloating(result?: T | null): void;
11
+ afterClosed(): Observable<{
12
+ status: boolean;
13
+ data: T | null;
14
+ }>;
15
+ }
@@ -0,0 +1,5 @@
1
+ export declare const MODAL_DATA = "MODAL_DATA";
2
+ export declare const MODAL_COMPONENT = "MODAL_COMPONENT";
3
+ export declare const MODAL_CONFIG = "MODAL_CONFIG";
4
+ export declare const MODAL_CLOSE_EVENT = "modalClosed";
5
+ export declare const MODAL_CLOSE_REQUEST = "modalCloserRequested";
@@ -0,0 +1,22 @@
1
+ import { Type } from '@angular/core';
2
+ import { SideModalConfig } from './side-modal/sideModalConfig.model';
3
+ import { ModalConfig } from './floating-modal/modalconfig.model';
4
+ import { OverlayRef } from '@angular/cdk/overlay';
5
+ import { UiModalRef } from './modaRef';
6
+ import * as i0 from "@angular/core";
7
+ export declare class UiModalService {
8
+ private readonly overlay;
9
+ private readonly envInjector;
10
+ openFloatingModal<TComponent>(component: Type<TComponent>, config?: ModalConfig): UiModalRef;
11
+ openSideModal<TComponent>(component: Type<TComponent>, config?: SideModalConfig): UiModalRef;
12
+ private openModal;
13
+ close(overlayRef: OverlayRef, result?: any): void;
14
+ closeFloating(overlayRef: OverlayRef, result?: any): void;
15
+ private readonly _save$;
16
+ save$: import("rxjs").Observable<void>;
17
+ triggerSave(): void;
18
+ private createOverlayConfig;
19
+ private createModalInjector;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiModalService, never>;
21
+ static ɵprov: i0.ɵɵInjectableDeclaration<UiModalService>;
22
+ }
@@ -0,0 +1,30 @@
1
+ import { CdkPortalOutlet } from '@angular/cdk/portal';
2
+ import { Injector, Type } from '@angular/core';
3
+ import { OverlayRef } from '@angular/cdk/overlay';
4
+ import { SideModalConfig } from './sideModalConfig.model';
5
+ import { UiModalRef } from '../modaRef';
6
+ import { UiModalService } from '../modal.service';
7
+ import * as i0 from "@angular/core";
8
+ export declare class SideModalComponent {
9
+ private readonly modalRef;
10
+ private readonly component;
11
+ private readonly congif;
12
+ private readonly injector;
13
+ private readonly modal;
14
+ overlayRef: OverlayRef;
15
+ state: 'visible' | 'hidden';
16
+ show: boolean;
17
+ myConfig: SideModalConfig;
18
+ ready: boolean;
19
+ title: string;
20
+ portalOutlet: CdkPortalOutlet;
21
+ constructor(modalRef: UiModalRef, component: Type<any>, congif: SideModalConfig, injector: Injector, modal: UiModalService);
22
+ ngOnInit(): void;
23
+ ngAfterViewInit(): void;
24
+ closeOuside(): void;
25
+ close(): void;
26
+ onAnimationDone(event: any): void;
27
+ save(): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<SideModalComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<SideModalComponent, "app-side-modal", never, {}, {}, never, never, true, never>;
30
+ }
@@ -0,0 +1,11 @@
1
+ export interface SideModalConfig<T = any> {
2
+ data?: T;
3
+ title?: string;
4
+ preventCloseingOutside?: boolean;
5
+ footerEnabled?: boolean;
6
+ footerOkButtonText?: string;
7
+ showCancelButton?: boolean;
8
+ footerCancelButtonText?: string;
9
+ headerEnabled?: boolean;
10
+ width?: string;
11
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class NameInitsPipe implements PipeTransform {
4
+ transform(value: string): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<NameInitsPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<NameInitsPipe, "nameInitials", true>;
7
+ }
@@ -0,0 +1,16 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { Alert } from '../alert.model';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AlertComponent implements OnInit {
5
+ alert: Alert;
6
+ closeAlert: EventEmitter<number>;
7
+ interval: any;
8
+ progressValue: number;
9
+ animationIntevalMs: number;
10
+ pauseAnimation: boolean;
11
+ id: number;
12
+ ngOnInit(): void;
13
+ close(): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "lib-alert", never, { "alert": { "alias": "alert"; "required": false; }; }, { "closeAlert": "closeAlert"; }, never, never, true, never>;
16
+ }
@@ -0,0 +1,13 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { Alert } from '../alert.model';
3
+ import { PushAlertService } from '../push-alert.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class AlertContainerComponent implements OnInit {
6
+ private readonly alertService;
7
+ alerts: Alert[];
8
+ constructor(alertService: PushAlertService);
9
+ ngOnInit(): void;
10
+ dismis(id: number): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlertContainerComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<AlertContainerComponent, "lib-alert-container", never, {}, {}, never, never, true, never>;
13
+ }
@@ -0,0 +1,5 @@
1
+ import { Alert } from './alert.model';
2
+ export declare function createSuccessAlert(message: string, options?: Partial<Alert>): Alert;
3
+ export declare function createErrorAlert(message: string, options?: Partial<Alert>): Alert;
4
+ export declare function createWarningAlert(message: string, options?: Partial<Alert>): Alert;
5
+ export declare function createInfoAlert(message: string, options?: Partial<Alert>): Alert;
@@ -0,0 +1,29 @@
1
+ export interface Alert {
2
+ id: number;
3
+ message: string;
4
+ title?: string;
5
+ icon?: string;
6
+ okButtonText?: string;
7
+ showProgressBar?: boolean;
8
+ cancelButtonText?: string;
9
+ style?: 'filled' | 'bordered';
10
+ type?: 'success' | 'error' | 'warning' | 'info';
11
+ duration?: number;
12
+ }
13
+ export type AlertConfigParams = Omit<Alert, 'id'>;
14
+ export type SuccessAlert = Omit<Alert, 'type'> & {
15
+ style: 'filled';
16
+ type: 'success';
17
+ };
18
+ export type ErrorAlert = Omit<Alert, 'type'> & {
19
+ style: 'filled';
20
+ type: 'error';
21
+ };
22
+ export type WarningAlert = Omit<Alert, 'type'> & {
23
+ style: 'filled';
24
+ type: 'warning';
25
+ };
26
+ export type InfoAlert = Omit<Alert, 'type'> & {
27
+ style: 'filled';
28
+ type: 'info';
29
+ };
@@ -0,0 +1,12 @@
1
+ import { Alert, AlertConfigParams } from './alert.model';
2
+ import * as i0 from "@angular/core";
3
+ export declare class PushAlertService {
4
+ autoIncId: number;
5
+ private readonly alerts$;
6
+ get stream(): import("rxjs").Observable<Alert>;
7
+ show(alertData: AlertConfigParams): void;
8
+ success(message: string, options?: Partial<Alert>): void;
9
+ error(message: string, options?: Partial<Alert>): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<PushAlertService, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<PushAlertService>;
12
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class SkeletonLoaderComponent {
3
+ inputs: number;
4
+ cols: number;
5
+ get gridStyle(): {
6
+ 'grid-template-columns': string;
7
+ };
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonLoaderComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkeletonLoaderComponent, "ui-skeleton-loader", never, { "inputs": { "alias": "inputs"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; }, {}, never, never, true, never>;
10
+ }
@@ -0,0 +1,7 @@
1
+ import { TableList } from '../table.models';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TableListComponent {
4
+ list: TableList[];
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableListComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableListComponent, "app-table-list", never, { "list": { "alias": "list"; "required": false; }; }, {}, never, never, true, never>;
7
+ }
@@ -0,0 +1,16 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TablePaginationComponent {
4
+ currentPage: number;
5
+ totalPages: number;
6
+ size: number;
7
+ loading: boolean;
8
+ visiblePages: number;
9
+ pagesInView: number[];
10
+ pageChange: EventEmitter<number>;
11
+ sizeChange: EventEmitter<number>;
12
+ get pages(): (number | string)[];
13
+ changePage(newPage: number): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<TablePaginationComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<TablePaginationComponent, "app-table-pagination", never, { "currentPage": { "alias": "currentPage"; "required": false; }; "totalPages": { "alias": "totalPages"; "required": false; }; "size": { "alias": "size"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "pageChange": "pageChange"; "sizeChange": "sizeChange"; }, never, never, true, never>;
16
+ }
@@ -0,0 +1,13 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TableSearcherComponent {
4
+ placeholder: string;
5
+ label: string;
6
+ searchOnKeydown: boolean;
7
+ search: EventEmitter<string>;
8
+ text: string;
9
+ reset(): void;
10
+ updateText(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableSearcherComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableSearcherComponent, "table-searcher", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "searchOnKeydown": { "alias": "searchOnKeydown"; "required": false; }; }, { "search": "search"; }, never, never, true, never>;
13
+ }
@@ -0,0 +1,7 @@
1
+ import { TableUser } from '../table.models';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TableUserComponent {
4
+ user: TableUser | undefined;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableUserComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableUserComponent, "app-table-user", never, { "user": { "alias": "user"; "required": false; }; }, {}, never, never, true, never>;
7
+ }
@@ -0,0 +1,49 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { TableAction, TableColums, TableRow, TableFilters, TableRowData } from './table.models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TableComponent {
5
+ columns: TableColums[];
6
+ data: TableRow[];
7
+ loading: boolean;
8
+ pages: number;
9
+ size: number;
10
+ highlightedId: string | number;
11
+ headerText: string;
12
+ totalItems: number;
13
+ searchEnabled: boolean;
14
+ searchLabel: string;
15
+ searchPlaceholder: string;
16
+ striped: boolean;
17
+ showPagination: boolean;
18
+ showEmptyMessage: boolean;
19
+ emptyMessage: string;
20
+ action: EventEmitter<TableAction>;
21
+ update: EventEmitter<TableFilters>;
22
+ checkedChange: EventEmitter<(string | number)[]>;
23
+ checkedIds: Set<string | number>;
24
+ sortKey: string;
25
+ sortAsc: boolean;
26
+ filter: string;
27
+ page: number;
28
+ getValue(data: TableRowData[], key: string): string | number;
29
+ getFontColor(data: TableRowData[], key: string): string;
30
+ getBackgroundColor(data: TableRowData[], key: string): import("ui-core-abv").BackgroundColors;
31
+ isValidRule(data: TableRowData[], key: string[] | undefined): boolean;
32
+ getIcon(data: TableRowData[], key: string): string;
33
+ getList(data: TableRowData[], key: string): import("ui-core-abv").TableList[];
34
+ getUser(data: TableRowData[], key: string): import("ui-core-abv").TableUser | undefined;
35
+ sortClick(key: string): void;
36
+ sizeChabge(newSize: number): void;
37
+ pageChage(newPage: number): void;
38
+ search(text: string): void;
39
+ updateData(): void;
40
+ toggleSelection(id: string | number, checked: boolean): void;
41
+ toggleAll(checked: boolean): void;
42
+ areAllSelected(): void;
43
+ allSelected: boolean;
44
+ ngOnChanges(): void;
45
+ doAction(rowId: string | number, key: string): void;
46
+ resetCheckedIds(): void;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
48
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "ui-table", never, { "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "pages": { "alias": "pages"; "required": false; }; "size": { "alias": "size"; "required": false; }; "highlightedId": { "alias": "highlightedId"; "required": false; }; "headerText": { "alias": "headerText"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "searchEnabled": { "alias": "searchEnabled"; "required": false; }; "searchLabel": { "alias": "searchLabel"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "striped": { "alias": "striped"; "required": false; }; "showPagination": { "alias": "showPagination"; "required": false; }; "showEmptyMessage": { "alias": "showEmptyMessage"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; }, { "action": "action"; "update": "update"; "checkedChange": "checkedChange"; }, never, ["[actions]"], true, never>;
49
+ }
@@ -0,0 +1,56 @@
1
+ import { ButtonColor } from "../button/button.component";
2
+ export interface TableColums {
3
+ label: string;
4
+ key: string;
5
+ type: ColumnTypes;
6
+ sortEnable?: boolean;
7
+ actions?: TableButton[];
8
+ }
9
+ export interface TableButton {
10
+ key: string;
11
+ color: ButtonColor;
12
+ icon?: string;
13
+ text?: string;
14
+ tooltip?: string;
15
+ rule?: string[];
16
+ }
17
+ export interface TableRow {
18
+ id: number | string;
19
+ data: TableRowData[];
20
+ highlighted?: boolean;
21
+ }
22
+ export interface TableRowData {
23
+ key: string;
24
+ value?: string | number;
25
+ list?: TableList[];
26
+ user?: TableUser;
27
+ icon?: string;
28
+ textColor?: TableTextColors;
29
+ color?: BackgroundColors;
30
+ }
31
+ export interface TableList {
32
+ text: string;
33
+ subtext?: string;
34
+ icon?: string;
35
+ color?: string;
36
+ }
37
+ export interface TableUser {
38
+ name: string;
39
+ id: string;
40
+ photo?: string;
41
+ icon?: string;
42
+ }
43
+ export interface TableAction {
44
+ rowId: number | string;
45
+ key: string;
46
+ }
47
+ export type ColumnTypes = 'actions' | 'text' | 'list' | 'user' | 'checkbox' | 'icon-list';
48
+ export type TableTextColors = 'primary' | 'red' | 'green' | 'blue' | 'yellow' | 'black' | 'grey';
49
+ export type BackgroundColors = 'primary' | 'secondary' | 'red' | 'green' | 'blue' | 'yellow' | 'black' | 'grey' | 'transparent' | 'white';
50
+ export interface TableFilters {
51
+ sortBy: string;
52
+ isSortAscending: boolean;
53
+ pageNumber: number;
54
+ pageSize: number;
55
+ filter: string;
56
+ }
@@ -0,0 +1,15 @@
1
+ import { AlertData, AlertResponseData } from './tiny-alert.model';
2
+ import { UiModalRef } from '../modal/modaRef';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TinyAlertComponent {
5
+ private readonly modalRef;
6
+ data: AlertData;
7
+ constructor(inData: {
8
+ alert: AlertData;
9
+ editing: boolean;
10
+ }, modalRef: UiModalRef);
11
+ response: AlertResponseData;
12
+ close(value: boolean): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<TinyAlertComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<TinyAlertComponent, "lib-tiny-alert", never, {}, {}, never, never, true, never>;
15
+ }
@@ -0,0 +1,32 @@
1
+ import { ButtonColor } from "../button/button.component";
2
+ export interface AlertData {
3
+ title?: string;
4
+ body?: string;
5
+ type?: 'delete' | 'warning' | 'error' | 'info' | 'success';
6
+ iconPath?: string;
7
+ closeOnOutclick?: boolean;
8
+ okButtonColor?: ButtonColor;
9
+ okButtonText?: string;
10
+ showCancelButton?: boolean;
11
+ cancelButtonColor?: ButtonColor;
12
+ cancelButtonText?: string;
13
+ footerHTML?: string;
14
+ showCheckBox?: boolean;
15
+ checkBoxLabel?: string;
16
+ showInput?: boolean;
17
+ inputLabel?: string;
18
+ inputType?: string;
19
+ inputRequired?: boolean;
20
+ inputDefaultValue?: string;
21
+ inputPlaceholder?: string;
22
+ moreDetail?: string;
23
+ errorMessage?: string;
24
+ }
25
+ export interface AlertResponse {
26
+ value: boolean;
27
+ data: AlertResponseData;
28
+ }
29
+ export interface AlertResponseData {
30
+ checkbox?: boolean;
31
+ input?: string;
32
+ }
@@ -0,0 +1,8 @@
1
+ import { AlertData, AlertResponse } from './tiny-alert.model';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TinyAlertService {
4
+ private readonly modal;
5
+ showAlert(data: AlertData): Promise<AlertResponse>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<TinyAlertService, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<TinyAlertService>;
8
+ }
@@ -0,0 +1,11 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ToggleButtonComponent {
4
+ checked: boolean;
5
+ checkedChange: EventEmitter<boolean>;
6
+ disabled: boolean;
7
+ placeholder: string;
8
+ toggle(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToggleButtonComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToggleButtonComponent, "ui-switch", never, { "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, { "checkedChange": "checkedChange"; }, never, never, true, never>;
11
+ }
@@ -0,0 +1,17 @@
1
+ import { ApplicationRef, ElementRef, EnvironmentInjector } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ToolTipDirective {
4
+ private readonly elementRef;
5
+ private readonly appRef;
6
+ private readonly injector;
7
+ tooltip: string;
8
+ private componentRef;
9
+ constructor(elementRef: ElementRef, appRef: ApplicationRef, injector: EnvironmentInjector);
10
+ onMouseEnter(): void;
11
+ private setTooltipComponentProperties;
12
+ onMouseLeave(): void;
13
+ ngOnDestroy(): void;
14
+ destroy(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToolTipDirective, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ToolTipDirective, "[tooltip]", never, { "tooltip": { "alias": "tooltip"; "required": false; }; }, {}, never, never, true, never>;
17
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class TooltipComponent {
3
+ tooltip: string;
4
+ left: number;
5
+ top: number;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "app-tooltip", never, {}, {}, never, never, true, never>;
8
+ }
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "ui-core-abv",
3
+ "version": "0.0.1",
4
+ "peerDependencies": {
5
+ "@angular/common": "^19.2.0",
6
+ "@angular/core": "^19.2.0",
7
+ "@angular/cdk": "^19.2.19",
8
+ "@angular/animations": "^19.2.14",
9
+ "remixicon": "^4.6.0"
10
+ },
11
+ "dependencies": {
12
+ "tslib": "^2.3.0"
13
+ },
14
+ "sideEffects": false,
15
+ "module": "fesm2022/ui-core-abv.mjs",
16
+ "typings": "index.d.ts",
17
+ "exports": {
18
+ "./package.json": {
19
+ "default": "./package.json"
20
+ },
21
+ ".": {
22
+ "types": "./index.d.ts",
23
+ "default": "./fesm2022/ui-core-abv.mjs"
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,22 @@
1
+ export * from './lib/checkbox/checkbox.component';
2
+ export * from './lib/toggle-button/toggle-button.component';
3
+ export * from './lib/skeleton-loader/skeleton-loader.component';
4
+ export * from './lib/push-alerts/push-alert.service';
5
+ export * from './lib/push-alerts/alert-container/alert-container.component';
6
+ export * from './lib/button/button.component';
7
+ export * from './lib/table/table.component';
8
+ export * from './lib/table/table.models';
9
+ export * from './lib/table/table.models';
10
+ export * from './lib/animations/animatios.index';
11
+ export * from './lib/dynamic-form/form-wrapper/form-wrapper.component';
12
+ export * from './lib/dynamic-form/form.models';
13
+ export * from './lib/inputs/input/input.component';
14
+ export * from './lib/inputs/searcher/searcher.component';
15
+ export * from './lib/inputs/select/select.component';
16
+ export * from './lib/modal/modal.service';
17
+ export * from './lib/modal/modaRef';
18
+ export * from './lib/modal/modal.constant';
19
+ export * from './lib/tiny-alert/tiny-alert.service';
20
+ export * from './lib/tiny-alert/tiny-alert.model';
21
+ export * from './lib/pipes/name-inits.pipe';
22
+ export * from './lib/tooltip/tool-tip.directive';