@apexara/ng-components 1.0.0 → 1.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.
- package/README.md +395 -395
- package/fesm2022/apexara-ng-components-button.mjs +9 -9
- package/fesm2022/apexara-ng-components-button.mjs.map +1 -1
- package/fesm2022/apexara-ng-components-carousel.mjs +6 -6
- package/fesm2022/apexara-ng-components-carousel.mjs.map +1 -1
- package/fesm2022/apexara-ng-components-checkbox.mjs +9 -9
- package/fesm2022/apexara-ng-components-checkbox.mjs.map +1 -1
- package/fesm2022/apexara-ng-components-chip.mjs +6 -6
- package/fesm2022/apexara-ng-components-chip.mjs.map +1 -1
- package/fesm2022/apexara-ng-components-datepicker.mjs +51 -51
- package/fesm2022/apexara-ng-components-datepicker.mjs.map +1 -1
- package/fesm2022/apexara-ng-components-dialog.mjs +7 -7
- package/fesm2022/apexara-ng-components-dialog.mjs.map +1 -1
- package/fesm2022/apexara-ng-components-drawer.mjs +7 -7
- package/fesm2022/apexara-ng-components-drawer.mjs.map +1 -1
- package/fesm2022/apexara-ng-components-expander.mjs +7 -7
- package/fesm2022/apexara-ng-components-expander.mjs.map +1 -1
- package/fesm2022/apexara-ng-components-image.mjs +11 -11
- package/fesm2022/apexara-ng-components-image.mjs.map +1 -1
- package/fesm2022/apexara-ng-components-input.mjs +12 -12
- package/fesm2022/apexara-ng-components-input.mjs.map +1 -1
- package/fesm2022/apexara-ng-components-listbox.mjs +9 -9
- package/fesm2022/apexara-ng-components-listbox.mjs.map +1 -1
- package/fesm2022/apexara-ng-components-radiobutton.mjs +9 -9
- package/fesm2022/apexara-ng-components-radiobutton.mjs.map +1 -1
- package/fesm2022/apexara-ng-components-select.mjs +15 -15
- package/fesm2022/apexara-ng-components-select.mjs.map +1 -1
- package/fesm2022/apexara-ng-components-services.mjs +7 -7
- package/fesm2022/apexara-ng-components-services.mjs.map +1 -1
- package/fesm2022/apexara-ng-components-snackbar.mjs +20 -20
- package/fesm2022/apexara-ng-components-snackbar.mjs.map +1 -1
- package/fesm2022/apexara-ng-components-table.mjs +36 -36
- package/fesm2022/apexara-ng-components-table.mjs.map +1 -1
- package/fesm2022/apexara-ng-components-textarea.mjs +9 -9
- package/fesm2022/apexara-ng-components-textarea.mjs.map +1 -1
- package/fesm2022/apexara-ng-components-tooltip.mjs +9 -9
- package/fesm2022/apexara-ng-components-tooltip.mjs.map +1 -1
- package/package.json +1 -1
- package/types/apexara-ng-components-button.d.ts +7 -7
- package/types/apexara-ng-components-carousel.d.ts +4 -4
- package/types/apexara-ng-components-checkbox.d.ts +7 -7
- package/types/apexara-ng-components-chip.d.ts +4 -4
- package/types/apexara-ng-components-datepicker.d.ts +12 -12
- package/types/apexara-ng-components-dialog.d.ts +4 -4
- package/types/apexara-ng-components-drawer.d.ts +4 -4
- package/types/apexara-ng-components-expander.d.ts +4 -4
- package/types/apexara-ng-components-image.d.ts +8 -8
- package/types/apexara-ng-components-input.d.ts +9 -9
- package/types/apexara-ng-components-listbox.d.ts +12 -12
- package/types/apexara-ng-components-radiobutton.d.ts +11 -11
- package/types/apexara-ng-components-select.d.ts +13 -13
- package/types/apexara-ng-components-services.d.ts +4 -4
- package/types/apexara-ng-components-snackbar.d.ts +12 -12
- package/types/apexara-ng-components-table.d.ts +23 -23
- package/types/apexara-ng-components-textarea.d.ts +9 -9
- package/types/apexara-ng-components-tooltip.d.ts +5 -5
|
@@ -88,9 +88,9 @@ declare class LoaderService {
|
|
|
88
88
|
static ɵprov: i0.ɵɵInjectableDeclaration<LoaderService>;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
declare class
|
|
92
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
93
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
91
|
+
declare class ApexLoaderComponent {
|
|
92
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApexLoaderComponent, never>;
|
|
93
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ApexLoaderComponent, "apex-loader", never, {}, {}, never, never, true, never>;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
export {
|
|
96
|
+
export { ApexLoaderComponent, LoaderService, MobileOS, OSService, OverlayService, ScrollBlockService, Theme, ThemeService };
|
|
@@ -11,7 +11,7 @@ declare enum HorizontalPosition {
|
|
|
11
11
|
Center = 1,
|
|
12
12
|
Right = 2
|
|
13
13
|
}
|
|
14
|
-
interface
|
|
14
|
+
interface ApexSnackbarOptions {
|
|
15
15
|
title?: string;
|
|
16
16
|
icon?: string;
|
|
17
17
|
error: boolean;
|
|
@@ -30,10 +30,10 @@ interface SnackbarPosition {
|
|
|
30
30
|
horizontalPosition?: HorizontalPosition;
|
|
31
31
|
verticalPosition?: VerticalPosition;
|
|
32
32
|
}
|
|
33
|
-
declare class
|
|
33
|
+
declare class ApexSnackbarComponent {
|
|
34
34
|
container: ElementRef<HTMLDivElement>;
|
|
35
35
|
message: String;
|
|
36
|
-
options:
|
|
36
|
+
options: ApexSnackbarOptions;
|
|
37
37
|
positionOptions: SnackbarPosition;
|
|
38
38
|
closing: boolean;
|
|
39
39
|
closed: EventEmitter<void>;
|
|
@@ -41,11 +41,11 @@ declare class IpiSnackbarComponent {
|
|
|
41
41
|
getAnimationParams(): {
|
|
42
42
|
duration: number;
|
|
43
43
|
};
|
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApexSnackbarComponent, never>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ApexSnackbarComponent, "apex-snackbar", never, { "message": { "alias": "message"; "required": false; }; "options": { "alias": "options"; "required": false; }; "positionOptions": { "alias": "positionOptions"; "required": false; }; "closing": { "alias": "closing"; "required": false; }; }, { "closed": "closed"; }, never, never, true, never>;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
declare class
|
|
48
|
+
declare class ApexSnackbarService {
|
|
49
49
|
private appRef;
|
|
50
50
|
private overlayService;
|
|
51
51
|
constructor(appRef: ApplicationRef, overlayService: OverlayService);
|
|
@@ -53,9 +53,9 @@ declare class IpiSnackbarService {
|
|
|
53
53
|
private snackbarContainerMap;
|
|
54
54
|
private defaultSnackbarOptions;
|
|
55
55
|
private snackbarsArray;
|
|
56
|
-
open(message?: string, options?: Partial<
|
|
56
|
+
open(message?: string, options?: Partial<ApexSnackbarOptions>, component?: unknown, data?: Record<string, unknown>): void;
|
|
57
57
|
setMaxSnackbars(length: number): void;
|
|
58
|
-
updateDefaultOptions(options: Partial<
|
|
58
|
+
updateDefaultOptions(options: Partial<ApexSnackbarOptions>): void;
|
|
59
59
|
private createSnackbarContainer;
|
|
60
60
|
private createComponent;
|
|
61
61
|
private applySnackbarStyles;
|
|
@@ -65,9 +65,9 @@ declare class IpiSnackbarService {
|
|
|
65
65
|
private close;
|
|
66
66
|
private generateSnackbarContainerId;
|
|
67
67
|
private findSnackbarElementIndexFromRef;
|
|
68
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
69
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApexSnackbarService, never>;
|
|
69
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApexSnackbarService>;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
export {
|
|
73
|
-
export type {
|
|
72
|
+
export { ApexSnackbarComponent, ApexSnackbarService, HorizontalPosition, VerticalPosition };
|
|
73
|
+
export type { ApexSnackbarOptions, SnackbarPosition };
|
|
@@ -2,21 +2,21 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { ChangeDetectorRef, ElementRef, QueryList, TemplateRef, EventEmitter, SimpleChanges } from '@angular/core';
|
|
3
3
|
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
4
4
|
import { FormBuilder, FormGroup, FormControl } from '@angular/forms';
|
|
5
|
-
import {
|
|
5
|
+
import { ApexSelectOptions } from '@apexara/ng-components/select';
|
|
6
6
|
import { OSService } from '@apexara/ng-components/services';
|
|
7
7
|
import { TooltipPosition } from '@apexara/ng-components/tooltip';
|
|
8
8
|
|
|
9
|
-
interface
|
|
9
|
+
interface ApexTableColumn {
|
|
10
10
|
label?: string;
|
|
11
11
|
value?: string;
|
|
12
|
-
type?:
|
|
12
|
+
type?: ApexTableColumnType;
|
|
13
13
|
width?: string;
|
|
14
14
|
editable?: boolean;
|
|
15
15
|
prefix?: string;
|
|
16
16
|
suffix?: string;
|
|
17
17
|
singleActions?: Action[];
|
|
18
18
|
multipleActions?: Action[];
|
|
19
|
-
dateFormat?:
|
|
19
|
+
dateFormat?: ApexDateFormatOptions;
|
|
20
20
|
chipLabel?: {
|
|
21
21
|
[key: string]: string;
|
|
22
22
|
};
|
|
@@ -24,7 +24,7 @@ interface IpiTableColumn {
|
|
|
24
24
|
[key: string]: string;
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
declare enum
|
|
27
|
+
declare enum ApexTableColumnType {
|
|
28
28
|
Text = 0,
|
|
29
29
|
Date = 1,
|
|
30
30
|
Currency = 2,
|
|
@@ -47,13 +47,13 @@ interface Action {
|
|
|
47
47
|
disabled?: boolean;
|
|
48
48
|
execute?: (row: any) => void;
|
|
49
49
|
}
|
|
50
|
-
interface
|
|
50
|
+
interface ApexTableChange {
|
|
51
51
|
from: number;
|
|
52
52
|
to: number;
|
|
53
53
|
filter?: string;
|
|
54
54
|
sort?: any;
|
|
55
55
|
}
|
|
56
|
-
interface
|
|
56
|
+
interface ApexDateFormatOptions {
|
|
57
57
|
format: string;
|
|
58
58
|
locale: string;
|
|
59
59
|
timezone?: string;
|
|
@@ -64,7 +64,7 @@ interface PageFormControls {
|
|
|
64
64
|
value: number;
|
|
65
65
|
}>;
|
|
66
66
|
}
|
|
67
|
-
declare class
|
|
67
|
+
declare class ApexTableComponent {
|
|
68
68
|
private osService;
|
|
69
69
|
private formBuilder;
|
|
70
70
|
private changeDetectorRef;
|
|
@@ -83,7 +83,7 @@ declare class IpiTableComponent {
|
|
|
83
83
|
actionCellTpl: TemplateRef<any>;
|
|
84
84
|
data: any[];
|
|
85
85
|
dataLength: number;
|
|
86
|
-
columns:
|
|
86
|
+
columns: ApexTableColumn[];
|
|
87
87
|
filter: string;
|
|
88
88
|
serverSide: boolean;
|
|
89
89
|
isLoading: boolean;
|
|
@@ -96,14 +96,14 @@ declare class IpiTableComponent {
|
|
|
96
96
|
pageSizeOptions: number[];
|
|
97
97
|
virtualScroll: boolean;
|
|
98
98
|
tableMaxHeight: number;
|
|
99
|
-
tableChange: EventEmitter<
|
|
99
|
+
tableChange: EventEmitter<ApexTableChange>;
|
|
100
100
|
itemSize: number;
|
|
101
101
|
tooltipPosition: typeof TooltipPosition;
|
|
102
|
-
TableColumnType: typeof
|
|
102
|
+
TableColumnType: typeof ApexTableColumnType;
|
|
103
103
|
totalPages: number;
|
|
104
104
|
visibleRange: string;
|
|
105
105
|
filteredData: any[];
|
|
106
|
-
pageSizeSelectOptions:
|
|
106
|
+
pageSizeSelectOptions: ApexSelectOptions;
|
|
107
107
|
currentActiveRow: any;
|
|
108
108
|
isDropdown: boolean;
|
|
109
109
|
formGroup: FormGroup<PageFormControls>;
|
|
@@ -120,7 +120,7 @@ declare class IpiTableComponent {
|
|
|
120
120
|
trackByIndex(index: number): number;
|
|
121
121
|
getVirtualViewportHeight(): number;
|
|
122
122
|
shouldShowViewportScroll(): boolean;
|
|
123
|
-
getCellTemplate(column:
|
|
123
|
+
getCellTemplate(column: ApexTableColumn): TemplateRef<any>;
|
|
124
124
|
private refreshLayout;
|
|
125
125
|
goToPage(page: number): void;
|
|
126
126
|
goToPreviousPage(): void;
|
|
@@ -128,14 +128,14 @@ declare class IpiTableComponent {
|
|
|
128
128
|
goToFirstPage(): void;
|
|
129
129
|
goToLastPage(): void;
|
|
130
130
|
cellEdit(event: KeyboardEvent, column: string, currentPageRowIndex: number): void;
|
|
131
|
-
formatDate(dateAsString: string | null | undefined, formatDateOptions?:
|
|
132
|
-
getClass(row: any, column:
|
|
131
|
+
formatDate(dateAsString: string | null | undefined, formatDateOptions?: ApexDateFormatOptions): string;
|
|
132
|
+
getClass(row: any, column: ApexTableColumn): {
|
|
133
133
|
[key: string]: boolean;
|
|
134
134
|
} | string;
|
|
135
|
-
getDescendantProp(row: any, column:
|
|
136
|
-
getChipLabel(row: any, column:
|
|
137
|
-
getCheckboxState(row: any, column:
|
|
138
|
-
handleActionShow(action: Action, row: any, column?:
|
|
135
|
+
getDescendantProp(row: any, column: ApexTableColumn): any;
|
|
136
|
+
getChipLabel(row: any, column: ApexTableColumn): string;
|
|
137
|
+
getCheckboxState(row: any, column: ApexTableColumn): boolean;
|
|
138
|
+
handleActionShow(action: Action, row: any, column?: ApexTableColumn): boolean;
|
|
139
139
|
sortColumn(column: any, changeSortDirection?: boolean): void;
|
|
140
140
|
toggleActionDropdown(row: any, event: any): Promise<void>;
|
|
141
141
|
onViewportScroll(): void;
|
|
@@ -149,9 +149,9 @@ declare class IpiTableComponent {
|
|
|
149
149
|
private buildPaginationSelectDependecies;
|
|
150
150
|
private subscribeToFormValueChanges;
|
|
151
151
|
private calculatePages;
|
|
152
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
153
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
152
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApexTableComponent, never>;
|
|
153
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ApexTableComponent, "apex-table", never, { "data": { "alias": "data"; "required": false; }; "dataLength": { "alias": "dataLength"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "serverSide": { "alias": "serverSide"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "sortIndex": { "alias": "sortIndex"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "sortDirection": { "alias": "sortDirection"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "pageable": { "alias": "pageable"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; }; "tableMaxHeight": { "alias": "tableMaxHeight"; "required": false; }; }, { "tableChange": "tableChange"; }, never, never, true, never>;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
export {
|
|
157
|
-
export type { Action, ActionShowType,
|
|
156
|
+
export { ApexTableColumnType, ApexTableComponent };
|
|
157
|
+
export type { Action, ActionShowType, ApexDateFormatOptions, ApexTableChange, ApexTableColumn };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
3
3
|
import { FormGroup, AbstractControl } from '@angular/forms';
|
|
4
|
-
import {
|
|
4
|
+
import { ApexControlErrors } from '@apexara/ng-components/input';
|
|
5
5
|
|
|
6
|
-
interface
|
|
6
|
+
interface ApexTextAreaOptions {
|
|
7
7
|
label: string;
|
|
8
8
|
icon?: string;
|
|
9
9
|
placeholder?: string;
|
|
10
10
|
formGroup?: FormGroup;
|
|
11
11
|
formControlName?: string;
|
|
12
|
-
errors?:
|
|
12
|
+
errors?: ApexControlErrors;
|
|
13
13
|
}
|
|
14
|
-
declare class
|
|
14
|
+
declare class ApexTextAreaComponent {
|
|
15
15
|
private changeDetectorRef;
|
|
16
16
|
constructor(changeDetectorRef: ChangeDetectorRef);
|
|
17
|
-
options:
|
|
17
|
+
options: ApexTextAreaOptions;
|
|
18
18
|
textAreaChange: EventEmitter<string>;
|
|
19
19
|
controlError: string;
|
|
20
20
|
controlInvalid: boolean;
|
|
@@ -26,9 +26,9 @@ declare class IpiTextAreaComponent {
|
|
|
26
26
|
private setControl;
|
|
27
27
|
private setControlInvalid;
|
|
28
28
|
private getErrors;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApexTextAreaComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ApexTextAreaComponent, "apex-textarea", never, { "options": { "alias": "options"; "required": false; }; }, { "textAreaChange": "textAreaChange"; }, never, never, true, never>;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
export {
|
|
34
|
-
export type {
|
|
33
|
+
export { ApexTextAreaComponent };
|
|
34
|
+
export type { ApexTextAreaOptions };
|
|
@@ -8,13 +8,13 @@ declare enum TooltipPosition {
|
|
|
8
8
|
Above = 2,
|
|
9
9
|
Below = 3
|
|
10
10
|
}
|
|
11
|
-
declare class
|
|
11
|
+
declare class ApexTooltipDirective {
|
|
12
12
|
private osService;
|
|
13
13
|
private elementRef;
|
|
14
14
|
private overlayService;
|
|
15
15
|
private document;
|
|
16
16
|
constructor(osService: OSService, elementRef: ElementRef, overlayService: OverlayService, document: Document);
|
|
17
|
-
|
|
17
|
+
apexTooltip: string;
|
|
18
18
|
tooltipPosition: TooltipPosition;
|
|
19
19
|
private platform;
|
|
20
20
|
private tooltip;
|
|
@@ -47,8 +47,8 @@ declare class IpiTooltipDirective {
|
|
|
47
47
|
private positionAbove;
|
|
48
48
|
private positionBelow;
|
|
49
49
|
private repositionTooltip;
|
|
50
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
51
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApexTooltipDirective, never>;
|
|
51
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ApexTooltipDirective, "[apexTooltip]", never, { "apexTooltip": { "alias": "apexTooltip"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; }, {}, never, never, true, never>;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
export {
|
|
54
|
+
export { ApexTooltipDirective, TooltipPosition };
|