@libs-ui/components-table 0.2.356-3 → 0.2.356-30
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 +52 -0
- package/esm2022/interfaces/function-control-event.interface.mjs +1 -1
- package/esm2022/interfaces/table.type.mjs +1 -1
- package/esm2022/interfaces/template-config.interface.mjs +1 -1
- package/esm2022/table.component.mjs +355 -282
- package/esm2022/templates/templates.component.mjs +9 -7
- package/fesm2022/libs-ui-components-table.mjs +362 -287
- package/fesm2022/libs-ui-components-table.mjs.map +1 -1
- package/interfaces/function-control-event.interface.d.ts +4 -3
- package/interfaces/table.type.d.ts +1 -1
- package/interfaces/template-config.interface.d.ts +2 -2
- package/package.json +28 -25
- package/table.component.d.ts +83 -54
- package/templates/templates.component.d.ts +2 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { VirtualScrollerComponent } from '@iharbeck/ngx-virtual-scroller';
|
|
2
|
-
import { TYPE_DATA_TABLE, TYPE_ITEM_DATA_TABLE } from './table.type';
|
|
3
1
|
import { WritableSignal } from '@angular/core';
|
|
2
|
+
import { VirtualScrollerComponent } from '@iharbeck/ngx-virtual-scroller';
|
|
4
3
|
import { TYPE_OBJECT } from '@libs-ui/interfaces-types';
|
|
4
|
+
import { TYPE_DATA_TABLE, TYPE_ITEM_DATA_TABLE } from './table.type';
|
|
5
5
|
export interface ITableFunctionControlEvent {
|
|
6
6
|
reset: (clearSort?: boolean) => void;
|
|
7
7
|
callApiByService: (firstCall: boolean, resetAfterCallApi?: boolean) => void;
|
|
8
8
|
resetScroll: (scrollPositionLeft?: number, scrollPositionTop?: number) => void;
|
|
9
|
-
removeItems: (keys: Array<unknown>, ignoreReCallFooter?: boolean) => void;
|
|
9
|
+
removeItems: (keys: Array<unknown>, ignoreReCallFooter?: boolean, autoCountNewItem?: boolean) => void;
|
|
10
10
|
addItems: (items: TYPE_DATA_TABLE, addFirst: boolean, ignoreHightLight?: boolean, ignoreReCallFooter?: boolean, autoCountNewItem?: boolean) => void;
|
|
11
11
|
getScrollContainer: () => VirtualScrollerComponent;
|
|
12
12
|
hideToolBarBottom: () => void;
|
|
@@ -15,5 +15,6 @@ export interface ITableFunctionControlEvent {
|
|
|
15
15
|
setCountPagingStore: (count: number) => void;
|
|
16
16
|
getCount: () => number;
|
|
17
17
|
getStore: () => Array<WritableSignal<TYPE_OBJECT>>;
|
|
18
|
+
getItems: () => Array<WritableSignal<TYPE_OBJECT>>;
|
|
18
19
|
hightLightItem: (items: Array<TYPE_ITEM_DATA_TABLE>) => Promise<void>;
|
|
19
20
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WritableSignal } from '@angular/core';
|
|
2
2
|
import { TYPE_OBJECT } from '@libs-ui/interfaces-types';
|
|
3
|
-
export type TYPE_TABLE_FILTER<T = TYPE_OBJECT> = ((items: TYPE_DATA_TABLE<T>, filter: Record<string, unknown>) => Array<
|
|
3
|
+
export type TYPE_TABLE_FILTER<T = TYPE_OBJECT> = ((items: TYPE_DATA_TABLE<T>, filter: Record<string, unknown>) => Array<TYPE_ITEM_DATA_TABLE<T>>) | undefined;
|
|
4
4
|
export type TYPE_DATA_FILTER_TABLE<T = TYPE_OBJECT> = {
|
|
5
5
|
filterData: T;
|
|
6
6
|
ignoreCallApiAuto?: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { WritableSignal } from '@angular/core';
|
|
2
2
|
import { IAvatarConfig } from '@libs-ui/components-avatar';
|
|
3
3
|
import { IButton } from '@libs-ui/components-buttons-button';
|
|
4
|
+
import { LibsUiComponentsComponentOutletComponent } from '@libs-ui/components-component-outlet';
|
|
4
5
|
import { IDropdown } from '@libs-ui/components-dropdown';
|
|
5
6
|
import { ILineClampConfig } from '@libs-ui/components-line-clamp';
|
|
6
7
|
import { IListConfigItem } from '@libs-ui/components-list';
|
|
@@ -8,7 +9,6 @@ import { IPopover } from '@libs-ui/components-popover';
|
|
|
8
9
|
import { ISwitchEvent } from '@libs-ui/components-switch';
|
|
9
10
|
import { TYPE_FUNCTION, TYPE_OBJECT } from '@libs-ui/interfaces-types';
|
|
10
11
|
import { Observable } from 'rxjs';
|
|
11
|
-
import { LibsUiComponentsComponentOutletComponent } from '@libs-ui/components-component-outlet';
|
|
12
12
|
import { TYPE_ITEM_DATA_TABLE } from './table.type';
|
|
13
13
|
export interface ITableTemplateConfig {
|
|
14
14
|
cssWrapper: string;
|
|
@@ -36,7 +36,7 @@ export interface ITableFieldTemplateConfig {
|
|
|
36
36
|
showButtonHoverMode?: boolean;
|
|
37
37
|
getDisable?: TYPE_FUNCTION;
|
|
38
38
|
dropdownConfig?: ITableFieldTemplateConfigDropdown;
|
|
39
|
-
getAvatarConfig?: TYPE_FUNCTION<IAvatarConfig>;
|
|
39
|
+
getAvatarConfig?: TYPE_FUNCTION<IAvatarConfig | undefined>;
|
|
40
40
|
getImageSrc?: (value: any, item?: TYPE_OBJECT, lang?: string, isError?: boolean) => Observable<string>;
|
|
41
41
|
rows?: Array<ITableTemplateConfig>;
|
|
42
42
|
rowsTemplateCssWrapper?: string;
|
package/package.json
CHANGED
|
@@ -1,36 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libs-ui/components-table",
|
|
3
|
-
"version": "0.2.356-
|
|
3
|
+
"version": "0.2.356-30",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=18.0.0",
|
|
6
6
|
"@angular/core": ">=18.0.0",
|
|
7
|
-
"@libs-ui/components-buttons-button": "0.2.356-
|
|
7
|
+
"@libs-ui/components-buttons-button": "0.2.356-30",
|
|
8
8
|
"@iharbeck/ngx-virtual-scroller": "15.2.0",
|
|
9
|
-
"@libs-ui/interfaces-types": "0.2.356-
|
|
10
|
-
"@libs-ui/components-buttons-sort": "0.2.356-
|
|
11
|
-
"@libs-ui/components-popover": "0.2.356-
|
|
12
|
-
"@libs-ui/components-avatar": "0.2.356-
|
|
13
|
-
"@libs-ui/components-dropdown": "0.2.356-
|
|
14
|
-
"@libs-ui/components-line-clamp": "0.2.356-
|
|
15
|
-
"@libs-ui/components-list": "0.2.356-
|
|
16
|
-
"@libs-ui/components-switch": "0.2.356-
|
|
17
|
-
"@libs-ui/services-http-request": "0.2.356-
|
|
9
|
+
"@libs-ui/interfaces-types": "0.2.356-30",
|
|
10
|
+
"@libs-ui/components-buttons-sort": "0.2.356-30",
|
|
11
|
+
"@libs-ui/components-popover": "0.2.356-30",
|
|
12
|
+
"@libs-ui/components-avatar": "0.2.356-30",
|
|
13
|
+
"@libs-ui/components-dropdown": "0.2.356-30",
|
|
14
|
+
"@libs-ui/components-line-clamp": "0.2.356-30",
|
|
15
|
+
"@libs-ui/components-list": "0.2.356-30",
|
|
16
|
+
"@libs-ui/components-switch": "0.2.356-30",
|
|
17
|
+
"@libs-ui/services-http-request": "0.2.356-30",
|
|
18
18
|
"rxjs": "~7.8.0",
|
|
19
|
-
"@libs-ui/components-checkbox-group": "0.2.356-
|
|
20
|
-
"@libs-ui/components-checkbox-single": "0.2.356-
|
|
21
|
-
"@libs-ui/components-scroll-overlay": "0.2.356-
|
|
22
|
-
"@libs-ui/components-spinner": "0.2.356-
|
|
23
|
-
"@libs-ui/icons": "0.2.356-
|
|
24
|
-
"@libs-ui/pipes-call-function-in-template": "0.2.356-
|
|
25
|
-
"@libs-ui/pipes-check-selected-by-key": "0.2.356-
|
|
26
|
-
"@libs-ui/utils": "0.2.356-
|
|
19
|
+
"@libs-ui/components-checkbox-group": "0.2.356-30",
|
|
20
|
+
"@libs-ui/components-checkbox-single": "0.2.356-30",
|
|
21
|
+
"@libs-ui/components-scroll-overlay": "0.2.356-30",
|
|
22
|
+
"@libs-ui/components-spinner": "0.2.356-30",
|
|
23
|
+
"@libs-ui/icons": "0.2.356-30",
|
|
24
|
+
"@libs-ui/pipes-call-function-in-template": "0.2.356-30",
|
|
25
|
+
"@libs-ui/pipes-check-selected-by-key": "0.2.356-30",
|
|
26
|
+
"@libs-ui/utils": "0.2.356-30",
|
|
27
27
|
"@ngx-translate/core": "^15.0.0",
|
|
28
|
-
"@libs-ui/components-buttons-status": "0.2.356-
|
|
29
|
-
"@libs-ui/pipes-clone-object": "0.2.356-
|
|
30
|
-
"@libs-ui/pipes-security-trust": "0.2.356-
|
|
31
|
-
"@libs-ui/components-badge": "0.2.356-
|
|
32
|
-
"@libs-ui/pipes-convert-object-to-signal": "0.2.356-
|
|
33
|
-
"@libs-ui/pipes-get-value-of-object": "0.2.356-
|
|
28
|
+
"@libs-ui/components-buttons-status": "0.2.356-30",
|
|
29
|
+
"@libs-ui/pipes-clone-object": "0.2.356-30",
|
|
30
|
+
"@libs-ui/pipes-security-trust": "0.2.356-30",
|
|
31
|
+
"@libs-ui/components-badge": "0.2.356-30",
|
|
32
|
+
"@libs-ui/pipes-convert-object-to-signal": "0.2.356-30",
|
|
33
|
+
"@libs-ui/pipes-get-value-of-object": "0.2.356-30",
|
|
34
|
+
"@libs-ui/components-component-outlet": "0.2.356-30",
|
|
35
|
+
"@libs-ui/components-pagination": "0.2.356-30",
|
|
36
|
+
"@libs-ui/components-scroll-measure-items-direction-horizontal": "0.2.356-30"
|
|
34
37
|
},
|
|
35
38
|
"sideEffects": false,
|
|
36
39
|
"module": "fesm2022/libs-ui-components-table.mjs",
|
package/table.component.d.ts
CHANGED
|
@@ -1,43 +1,45 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnDestroy, OnInit, WritableSignal } from '@angular/core';
|
|
2
2
|
import { IButton } from '@libs-ui/components-buttons-button';
|
|
3
3
|
import { ISort } from '@libs-ui/components-buttons-sort';
|
|
4
4
|
import { ICheckboxItem } from '@libs-ui/components-checkbox-group';
|
|
5
5
|
import { ICheckboxEvent } from '@libs-ui/components-checkbox-single';
|
|
6
6
|
import { IDropdownFunctionControlEvent, IEmitSelectKey } from '@libs-ui/components-dropdown';
|
|
7
7
|
import { IListConfigItem } from '@libs-ui/components-list';
|
|
8
|
-
import {
|
|
9
|
-
import { IHttpResponseError, IPaging, TYPE_OBJECT } from '@libs-ui/interfaces-types';
|
|
8
|
+
import { IHttpResponseError, TYPE_OBJECT } from '@libs-ui/interfaces-types';
|
|
10
9
|
import { IHttpRequestConfig } from '@libs-ui/services-http-request';
|
|
11
|
-
import { IButtonBarEvent, IConfigSelectMoreItem, IConfigTemplateItemCollapseExpand,
|
|
10
|
+
import { IButtonBarEvent, IConfigSelectMoreItem, IConfigTemplateItemCollapseExpand, ILoadMoreEvent, ISortEvent, ITableFooterConfig, ITableHeaderConfig, TYPE_DATA_FILTER_TABLE, TYPE_ITEM_DATA_TABLE, TYPE_NEW_DATA_TABLE, TYPE_TABLE_FILTER } from './interfaces';
|
|
12
11
|
import { ITableFunctionControlEvent } from './interfaces/function-control-event.interface';
|
|
13
12
|
import { ITableNoDataConfig } from './interfaces/no-data-config.interface';
|
|
14
13
|
import * as i0 from "@angular/core";
|
|
15
14
|
export declare class LibsUiComponentsTableComponent implements OnInit, OnDestroy {
|
|
16
|
-
/**
|
|
17
|
-
|
|
18
|
-
protected
|
|
19
|
-
protected keysSelected: WritableSignal<any[]>;
|
|
20
|
-
protected loading: WritableSignal<boolean>;
|
|
21
|
-
protected stores: WritableSignal<WritableSignal<TYPE_OBJECT>[]>;
|
|
22
|
-
protected items: WritableSignal<WritableSignal<TYPE_OBJECT>[]>;
|
|
23
|
-
protected itemFooter: WritableSignal<TYPE_OBJECT | undefined>;
|
|
15
|
+
/** GROUP 1 — private non-signal */
|
|
16
|
+
private functionControlSelectMoreItem?;
|
|
17
|
+
/** GROUP 2 — protected non-signal */
|
|
24
18
|
protected itemOfIndexHover?: TYPE_ITEM_DATA_TABLE;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
protected itemsHightLight: WritableSignal<TYPE_ITEM_DATA_TABLE[]>;
|
|
30
|
-
protected hasItemHightLight: import("@angular/core").Signal<boolean>;
|
|
19
|
+
/** GROUP 3 — private signal */
|
|
20
|
+
private moreItemPopoverConfig;
|
|
21
|
+
private moreItemTextConfig;
|
|
22
|
+
private moreItemHttpData;
|
|
31
23
|
private hasScroll;
|
|
32
24
|
private instanceSort;
|
|
33
|
-
private
|
|
34
|
-
protected pagingStore: WritableSignal<IPaging | undefined>;
|
|
25
|
+
private pagingStore;
|
|
35
26
|
private loadedLastItem;
|
|
36
27
|
private storeParamsCallApi;
|
|
37
28
|
private timeoutLeaveItem;
|
|
38
|
-
private functionControlSelectMoreItem?;
|
|
39
29
|
private mouseEnterHeader;
|
|
40
|
-
|
|
30
|
+
private stores;
|
|
31
|
+
private totalItemInBackend;
|
|
32
|
+
/** GROUP 4 — protected signal */
|
|
33
|
+
protected keysSelected: WritableSignal<any[]>;
|
|
34
|
+
protected loading: WritableSignal<boolean>;
|
|
35
|
+
protected items: WritableSignal<WritableSignal<TYPE_OBJECT>[]>;
|
|
36
|
+
protected itemFooter: WritableSignal<TYPE_OBJECT | undefined>;
|
|
37
|
+
protected keySearch: WritableSignal<string>;
|
|
38
|
+
protected itemsHightLight: WritableSignal<TYPE_ITEM_DATA_TABLE[]>;
|
|
39
|
+
protected headerRightViewPort: WritableSignal<ITableHeaderConfig[]>;
|
|
40
|
+
protected paddingLeftHeaderRight: WritableSignal<number>;
|
|
41
|
+
protected footerRightViewPort: WritableSignal<ITableFooterConfig[]>;
|
|
42
|
+
/** GROUP 5 — input() */
|
|
41
43
|
readonly optimizeTableRenderByOnViewport: import("@angular/core").InputSignal<boolean | undefined>;
|
|
42
44
|
readonly timeHighlighNewItem: import("@angular/core").InputSignalWithTransform<number, number | undefined>;
|
|
43
45
|
readonly headerLeft: import("@angular/core").InputSignalWithTransform<ITableHeaderConfig[], ITableHeaderConfig[] | undefined>;
|
|
@@ -94,65 +96,73 @@ export declare class LibsUiComponentsTableComponent implements OnInit, OnDestroy
|
|
|
94
96
|
disable?: boolean;
|
|
95
97
|
numberPageDisplay?: number;
|
|
96
98
|
showTotalPage?: boolean;
|
|
99
|
+
firstPageStartNumber?: 0 | 1;
|
|
97
100
|
showInputGotoPage?: boolean;
|
|
98
101
|
modeDisplayTotalPageAndGotoPage?: "top" | "bottom" | "left" | "right";
|
|
99
102
|
classDisplayTotalPageAndGotoPage?: string;
|
|
100
103
|
} | undefined>;
|
|
101
104
|
readonly templateNoData: import("@angular/core").InputSignal<any>;
|
|
102
105
|
readonly templateNoResult: import("@angular/core").InputSignal<any>;
|
|
103
|
-
|
|
106
|
+
readonly autoEmitKeysSelectedWithItems: import("@angular/core").InputSignal<boolean | undefined>;
|
|
107
|
+
readonly functionGetWidthItem: import("@angular/core").InputSignal<(() => Promise<number>) | undefined>;
|
|
108
|
+
readonly useScrollMeasureColumn: import("@angular/core").InputSignal<boolean | undefined>;
|
|
109
|
+
/** GROUP 6 — protected computed */
|
|
110
|
+
protected classHeaderContainer: import("@angular/core").Signal<string>;
|
|
111
|
+
protected classHeaderLeftContainer: import("@angular/core").Signal<string>;
|
|
112
|
+
protected totalItemDisplay: import("@angular/core").Signal<any>;
|
|
113
|
+
protected listConfigMoreItem: import("@angular/core").Signal<IListConfigItem>;
|
|
114
|
+
protected hasItemHightLight: import("@angular/core").Signal<boolean>;
|
|
115
|
+
protected classLabelBarNoSelectItemCss: import("@angular/core").Signal<string>;
|
|
116
|
+
protected paginationConfig: import("@angular/core").Signal<{
|
|
117
|
+
modeDisplayTotalPageAndGotoPage: "top" | "bottom" | "left" | "right";
|
|
118
|
+
classDisplayTotalPageAndGotoPage: string;
|
|
119
|
+
classIncludeItem: string;
|
|
120
|
+
classIncludeContainer: string;
|
|
121
|
+
disable: boolean;
|
|
122
|
+
numberPageDisplay: number;
|
|
123
|
+
showTotalPage: boolean;
|
|
124
|
+
showInputGotoPage: boolean;
|
|
125
|
+
firstPageStartNumber: 0 | 1;
|
|
126
|
+
}>;
|
|
127
|
+
protected pagingTotalItems: import("@angular/core").Signal<number>;
|
|
128
|
+
protected pagingPerPage: import("@angular/core").Signal<number>;
|
|
129
|
+
protected pagingCurrentPage: import("@angular/core").Signal<number>;
|
|
130
|
+
protected noDataText: import("@angular/core").Signal<string>;
|
|
131
|
+
protected noDataSearchText: import("@angular/core").Signal<string>;
|
|
132
|
+
/** GROUP 7 — output() */
|
|
104
133
|
readonly outLoadMore: import("@angular/core").OutputEmitterRef<ILoadMoreEvent>;
|
|
105
134
|
readonly outScrollIsGone: import("@angular/core").OutputEmitterRef<ILoadMoreEvent>;
|
|
106
135
|
readonly outLoading: import("@angular/core").OutputEmitterRef<boolean>;
|
|
107
|
-
readonly outClickButtonAction: import("@angular/core").OutputEmitterRef<ITabelButtonActionEvent>;
|
|
108
136
|
readonly outSort: import("@angular/core").OutputEmitterRef<ISortEvent>;
|
|
109
137
|
readonly outClickBarButton: import("@angular/core").OutputEmitterRef<IButtonBarEvent>;
|
|
110
|
-
readonly outHoverButtonAction: import("@angular/core").OutputEmitterRef<IHoverButtonActionEvent>;
|
|
111
138
|
readonly outKeysSelected: import("@angular/core").OutputEmitterRef<{
|
|
112
139
|
keys: Array<any>;
|
|
140
|
+
items?: Array<WritableSignal<any>>;
|
|
113
141
|
}>;
|
|
114
142
|
readonly outFunctionsControl: import("@angular/core").OutputEmitterRef<ITableFunctionControlEvent>;
|
|
115
143
|
readonly outLoadDataComplete: import("@angular/core").OutputEmitterRef<WritableSignal<WritableSignal<any>[]>>;
|
|
116
144
|
readonly outTotalItem: import("@angular/core").OutputEmitterRef<number>;
|
|
117
145
|
readonly outLoadDataError: import("@angular/core").OutputEmitterRef<IHttpResponseError>;
|
|
118
|
-
/**
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
146
|
+
/** GROUP 8 — viewChild() (private) */
|
|
147
|
+
private headerElementRef;
|
|
148
|
+
private footerElementRef;
|
|
149
|
+
private footerLeftElementRef;
|
|
122
150
|
private bodyElementRef;
|
|
123
151
|
private bodyComponentRef;
|
|
124
|
-
/**
|
|
125
|
-
private httpRequestService;
|
|
126
|
-
private destroyRef;
|
|
127
|
-
private cdr;
|
|
152
|
+
/** GROUP 9 — inject() (private readonly) */
|
|
153
|
+
private readonly httpRequestService;
|
|
154
|
+
private readonly destroyRef;
|
|
155
|
+
private readonly cdr;
|
|
128
156
|
constructor();
|
|
129
157
|
ngOnInit(): void;
|
|
130
158
|
get FunctionsControl(): ITableFunctionControlEvent;
|
|
131
|
-
protected getIndexRow: (data: {
|
|
132
|
-
value: TYPE_ITEM_DATA_TABLE;
|
|
133
|
-
}) => import("rxjs").Observable<number>;
|
|
134
|
-
private getScrollContainer;
|
|
135
|
-
private callApiByService;
|
|
136
|
-
protected fakeResponseApi(): TYPE_OBJECT;
|
|
137
|
-
private callApiByServiceFooter;
|
|
138
|
-
private addItems;
|
|
139
|
-
private checkExistItem;
|
|
140
|
-
private removeItems;
|
|
141
|
-
private getCount;
|
|
142
|
-
private loadMoreSuccess;
|
|
143
159
|
protected handlerChangeAllChecked(): void;
|
|
144
|
-
protected handlerChangeCheckedAllItems(event: ICheckboxEvent): void
|
|
145
|
-
private checkCancelConditionCheckedItem;
|
|
160
|
+
protected handlerChangeCheckedAllItems(event: ICheckboxEvent): Promise<void>;
|
|
146
161
|
protected handlerChangeItemChecked(event: ICheckboxItem, item: TYPE_OBJECT): void;
|
|
147
162
|
protected handlerChangeSort(sort: ISort): Promise<void>;
|
|
148
|
-
private handlerSortLocal;
|
|
149
163
|
protected handlerFunctionControlMoreSelectItem(functionControl: IDropdownFunctionControlEvent): void;
|
|
150
164
|
protected handlerSelectedMoreItem(event: IEmitSelectKey | undefined): void;
|
|
151
|
-
private setPerPageSelectMoreItem;
|
|
152
|
-
private onSortSuccess;
|
|
153
|
-
protected handlerButtonClick(type: 'button' | 'button-dropdown', buttonDropdownData: any, button: IButton): void;
|
|
154
165
|
protected handlerBarButtonClick(button: IButton): void;
|
|
155
|
-
protected handlerButtonDropdownEvent(eventName: TYPE_POPOVER_EVENT): void;
|
|
156
166
|
protected setIndexHover(e: Event, item: WritableSignal<TYPE_OBJECT>): void;
|
|
157
167
|
protected resetIndexHoverWhenMouseLeave(e?: Event): void;
|
|
158
168
|
protected resetIndexHover(e?: Event): void;
|
|
@@ -165,12 +175,31 @@ export declare class LibsUiComponentsTableComponent implements OnInit, OnDestroy
|
|
|
165
175
|
protected handlerScrollBody(e: Event): void;
|
|
166
176
|
protected handlerScrollBottom(e: Event): void;
|
|
167
177
|
protected handlerChangePage(page: number): void;
|
|
178
|
+
protected handlerOutViewPortItemHeaderRight(event: Array<any>): void;
|
|
179
|
+
protected handlerOutPaddingLeftHeaderRight(event: number): void;
|
|
180
|
+
protected handlerOutViewPortItemFooterRight(event: Array<any>): void;
|
|
181
|
+
protected getIndexRow: (data: {
|
|
182
|
+
value: TYPE_ITEM_DATA_TABLE;
|
|
183
|
+
}) => import("rxjs").Observable<number>;
|
|
184
|
+
private fakeResponseApi;
|
|
185
|
+
private getScrollContainer;
|
|
186
|
+
private callApiByService;
|
|
187
|
+
private callApiByServiceFooter;
|
|
188
|
+
private addItems;
|
|
189
|
+
private removeItems;
|
|
190
|
+
private getCount;
|
|
191
|
+
private loadMoreSuccess;
|
|
192
|
+
private checkCancelConditionCheckedItem;
|
|
193
|
+
private handlerSortLocal;
|
|
194
|
+
private setPerPageSelectMoreItem;
|
|
195
|
+
private onSortSuccess;
|
|
168
196
|
private resetScroll;
|
|
169
197
|
private reset;
|
|
170
198
|
private checkScroll;
|
|
171
|
-
|
|
199
|
+
private get bodyElement();
|
|
172
200
|
private hightLightItem;
|
|
201
|
+
private emitKeysSelected;
|
|
173
202
|
ngOnDestroy(): void;
|
|
174
203
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibsUiComponentsTableComponent, never>;
|
|
175
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LibsUiComponentsTableComponent, "libs_ui-components-table", never, { "optimizeTableRenderByOnViewport": { "alias": "optimizeTableRenderByOnViewport"; "required": false; "isSignal": true; }; "timeHighlighNewItem": { "alias": "timeHighlighNewItem"; "required": false; "isSignal": true; }; "headerLeft": { "alias": "headerLeft"; "required": false; "isSignal": true; }; "headerRight": { "alias": "headerRight"; "required": false; "isSignal": true; }; "ignoreCalculatorWidthHeader": { "alias": "ignoreCalculatorWidthHeader"; "required": false; "isSignal": true; }; "configTemplateItemCollapseExpand": { "alias": "configTemplateItemCollapseExpand"; "required": false; "isSignal": true; }; "showFooter": { "alias": "showFooter"; "required": false; "isSignal": true; }; "ignoreBorderFooter": { "alias": "ignoreBorderFooter"; "required": false; "isSignal": true; }; "customPositionFooter": { "alias": "customPositionFooter"; "required": false; "isSignal": true; }; "footerLeft": { "alias": "footerLeft"; "required": false; "isSignal": true; }; "footerRight": { "alias": "footerRight"; "required": false; "isSignal": true; }; "disableCheckbox": { "alias": "disableCheckbox"; "required": false; "isSignal": true; }; "enableUnequalChildrenSizes": { "alias": "enableUnequalChildrenSizes"; "required": false; "isSignal": true; }; "bufferAmount": { "alias": "bufferAmount"; "required": false; "isSignal": true; }; "totalItem": { "alias": "totalItem"; "required": false; "isSignal": true; }; "isDashBorder": { "alias": "isDashBorder"; "required": false; "isSignal": true; }; "classHeaderContainerInclude": { "alias": "classHeaderContainerInclude"; "required": false; "isSignal": true; }; "classHeaderLeftInclude": { "alias": "classHeaderLeftInclude"; "required": false; "isSignal": true; }; "classBodyInclude": { "alias": "classBodyInclude"; "required": false; "isSignal": true; }; "classFooterInclude": { "alias": "classFooterInclude"; "required": false; "isSignal": true; }; "classTableContainerInclude": { "alias": "classTableContainerInclude"; "required": false; "isSignal": true; }; "classBarInclude": { "alias": "classBarInclude"; "required": false; "isSignal": true; }; "fieldKey": { "alias": "fieldKey"; "required": false; "isSignal": true; }; "defaultKeysSelected": { "alias": "defaultKeysSelected"; "required": false; "isSignal": true; }; "labelBarNoSelectItem": { "alias": "labelBarNoSelectItem"; "required": false; "isSignal": true; }; "labelBarButtons": { "alias": "labelBarButtons"; "required": false; "isSignal": true; }; "classLabelBarButtons": { "alias": "classLabelBarButtons"; "required": false; "isSignal": true; }; "barButtons": { "alias": "barButtons"; "required": false; "isSignal": true; }; "sortLocal": { "alias": "sortLocal"; "required": false; "isSignal": true; }; "filterOrSortLocal": { "alias": "filterOrSortLocal"; "required": false; "isSignal": true; }; "httpRequestData": { "alias": "httpRequestData"; "required": false; "isSignal": true; }; "httpRequestDataFooter": { "alias": "httpRequestDataFooter"; "required": false; "isSignal": true; }; "newData": { "alias": "newData"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "ignoreBar": { "alias": "ignoreBar"; "required": false; "isSignal": true; }; "classLabelBarNoSelectItem": { "alias": "classLabelBarNoSelectItem"; "required": false; "isSignal": true; }; "ignoreClassBgHeader": { "alias": "ignoreClassBgHeader"; "required": false; "isSignal": true; }; "noDataConfig": { "alias": "noDataConfig"; "required": false; "isSignal": true; }; "showScrollTablePinnedIfNoData": { "alias": "showScrollTablePinnedIfNoData"; "required": false; "isSignal": true; }; "ignoreBorderItemLast": { "alias": "ignoreBorderItemLast"; "required": false; "isSignal": true; }; "isHiddenHeaderWhenNodata": { "alias": "isHiddenHeaderWhenNodata"; "required": false; "isSignal": true; }; "maxItemSelected": { "alias": "maxItemSelected"; "required": false; "isSignal": true; }; "configSelectMoreItem": { "alias": "configSelectMoreItem"; "required": false; "isSignal": true; }; "onlyShowNoResult": { "alias": "onlyShowNoResult"; "required": false; "isSignal": true; }; "ignoreBorderItem": { "alias": "ignoreBorderItem"; "required": false; "isSignal": true; }; "activityLoadData": { "alias": "activityLoadData"; "required": false; "isSignal": true; }; "paginationSetting": { "alias": "paginationSetting"; "required": false; "isSignal": true; }; "templateNoData": { "alias": "templateNoData"; "required": false; "isSignal": true; }; "templateNoResult": { "alias": "templateNoResult"; "required": false; "isSignal": true; }; }
|
|
204
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibsUiComponentsTableComponent, "libs_ui-components-table", never, { "optimizeTableRenderByOnViewport": { "alias": "optimizeTableRenderByOnViewport"; "required": false; "isSignal": true; }; "timeHighlighNewItem": { "alias": "timeHighlighNewItem"; "required": false; "isSignal": true; }; "headerLeft": { "alias": "headerLeft"; "required": false; "isSignal": true; }; "headerRight": { "alias": "headerRight"; "required": false; "isSignal": true; }; "ignoreCalculatorWidthHeader": { "alias": "ignoreCalculatorWidthHeader"; "required": false; "isSignal": true; }; "configTemplateItemCollapseExpand": { "alias": "configTemplateItemCollapseExpand"; "required": false; "isSignal": true; }; "showFooter": { "alias": "showFooter"; "required": false; "isSignal": true; }; "ignoreBorderFooter": { "alias": "ignoreBorderFooter"; "required": false; "isSignal": true; }; "customPositionFooter": { "alias": "customPositionFooter"; "required": false; "isSignal": true; }; "footerLeft": { "alias": "footerLeft"; "required": false; "isSignal": true; }; "footerRight": { "alias": "footerRight"; "required": false; "isSignal": true; }; "disableCheckbox": { "alias": "disableCheckbox"; "required": false; "isSignal": true; }; "enableUnequalChildrenSizes": { "alias": "enableUnequalChildrenSizes"; "required": false; "isSignal": true; }; "bufferAmount": { "alias": "bufferAmount"; "required": false; "isSignal": true; }; "totalItem": { "alias": "totalItem"; "required": false; "isSignal": true; }; "isDashBorder": { "alias": "isDashBorder"; "required": false; "isSignal": true; }; "classHeaderContainerInclude": { "alias": "classHeaderContainerInclude"; "required": false; "isSignal": true; }; "classHeaderLeftInclude": { "alias": "classHeaderLeftInclude"; "required": false; "isSignal": true; }; "classBodyInclude": { "alias": "classBodyInclude"; "required": false; "isSignal": true; }; "classFooterInclude": { "alias": "classFooterInclude"; "required": false; "isSignal": true; }; "classTableContainerInclude": { "alias": "classTableContainerInclude"; "required": false; "isSignal": true; }; "classBarInclude": { "alias": "classBarInclude"; "required": false; "isSignal": true; }; "fieldKey": { "alias": "fieldKey"; "required": false; "isSignal": true; }; "defaultKeysSelected": { "alias": "defaultKeysSelected"; "required": false; "isSignal": true; }; "labelBarNoSelectItem": { "alias": "labelBarNoSelectItem"; "required": false; "isSignal": true; }; "labelBarButtons": { "alias": "labelBarButtons"; "required": false; "isSignal": true; }; "classLabelBarButtons": { "alias": "classLabelBarButtons"; "required": false; "isSignal": true; }; "barButtons": { "alias": "barButtons"; "required": false; "isSignal": true; }; "sortLocal": { "alias": "sortLocal"; "required": false; "isSignal": true; }; "filterOrSortLocal": { "alias": "filterOrSortLocal"; "required": false; "isSignal": true; }; "httpRequestData": { "alias": "httpRequestData"; "required": false; "isSignal": true; }; "httpRequestDataFooter": { "alias": "httpRequestDataFooter"; "required": false; "isSignal": true; }; "newData": { "alias": "newData"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "ignoreBar": { "alias": "ignoreBar"; "required": false; "isSignal": true; }; "classLabelBarNoSelectItem": { "alias": "classLabelBarNoSelectItem"; "required": false; "isSignal": true; }; "ignoreClassBgHeader": { "alias": "ignoreClassBgHeader"; "required": false; "isSignal": true; }; "noDataConfig": { "alias": "noDataConfig"; "required": false; "isSignal": true; }; "showScrollTablePinnedIfNoData": { "alias": "showScrollTablePinnedIfNoData"; "required": false; "isSignal": true; }; "ignoreBorderItemLast": { "alias": "ignoreBorderItemLast"; "required": false; "isSignal": true; }; "isHiddenHeaderWhenNodata": { "alias": "isHiddenHeaderWhenNodata"; "required": false; "isSignal": true; }; "maxItemSelected": { "alias": "maxItemSelected"; "required": false; "isSignal": true; }; "configSelectMoreItem": { "alias": "configSelectMoreItem"; "required": false; "isSignal": true; }; "onlyShowNoResult": { "alias": "onlyShowNoResult"; "required": false; "isSignal": true; }; "ignoreBorderItem": { "alias": "ignoreBorderItem"; "required": false; "isSignal": true; }; "activityLoadData": { "alias": "activityLoadData"; "required": false; "isSignal": true; }; "paginationSetting": { "alias": "paginationSetting"; "required": false; "isSignal": true; }; "templateNoData": { "alias": "templateNoData"; "required": false; "isSignal": true; }; "templateNoResult": { "alias": "templateNoResult"; "required": false; "isSignal": true; }; "autoEmitKeysSelectedWithItems": { "alias": "autoEmitKeysSelectedWithItems"; "required": false; "isSignal": true; }; "functionGetWidthItem": { "alias": "functionGetWidthItem"; "required": false; "isSignal": true; }; "useScrollMeasureColumn": { "alias": "useScrollMeasureColumn"; "required": false; "isSignal": true; }; }, { "outLoadMore": "outLoadMore"; "outScrollIsGone": "outScrollIsGone"; "outLoading": "outLoading"; "outSort": "outSort"; "outClickBarButton": "outClickBarButton"; "outKeysSelected": "outKeysSelected"; "outFunctionsControl": "outFunctionsControl"; "outLoadDataComplete": "outLoadDataComplete"; "outTotalItem": "outTotalItem"; "outLoadDataError": "outLoadDataError"; }, never, ["div.libs-ui-table-bar-left", "div.libs-ui-table-bar-right"], true, never>;
|
|
176
205
|
}
|
|
@@ -8,8 +8,9 @@ import { ITableFieldTemplateConfig, ITableTemplateConfig } from '../interfaces/t
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class LibsUiComponentsTableTemplatesComponent implements OnDestroy {
|
|
10
10
|
private lockClick;
|
|
11
|
+
private lockClickTimeoutId;
|
|
11
12
|
private functionControls;
|
|
12
|
-
protected isImageError: boolean | undefined
|
|
13
|
+
protected isImageError: import("@angular/core").WritableSignal<boolean | undefined>;
|
|
13
14
|
readonly isHover: import("@angular/core").InputSignal<boolean | undefined>;
|
|
14
15
|
readonly configs: import("@angular/core").InputSignal<ITableTemplateConfig[] | undefined>;
|
|
15
16
|
readonly templateCssWrapper: import("@angular/core").InputSignal<string | undefined>;
|