@libs-ui/components-table 0.2.274 → 0.2.276
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/esm2022/interfaces/template-config.interface.mjs +1 -1
- package/esm2022/table.component.mjs +10 -11
- package/esm2022/templates/templates.component.mjs +3 -3
- package/fesm2022/libs-ui-components-table.mjs +88 -89
- package/fesm2022/libs-ui-components-table.mjs.map +1 -1
- package/interfaces/template-config.interface.d.ts +1 -6
- package/package.json +25 -25
- package/table.component.d.ts +2 -2
|
@@ -7,7 +7,6 @@ import { IListConfigItem } from "@libs-ui/components-list";
|
|
|
7
7
|
import { IPopover } from "@libs-ui/components-popover";
|
|
8
8
|
import { ISwitchEvent } from "@libs-ui/components-switch";
|
|
9
9
|
import { TYPE_FUNCTION, TYPE_OBJECT } from "@libs-ui/interfaces-types";
|
|
10
|
-
import { IHttpRequestConfig } from "@libs-ui/services-http-request";
|
|
11
10
|
import { Observable } from "rxjs";
|
|
12
11
|
import { LibsUiComponentsComponentOutletComponent } from "@libs-ui/components-component-outlet";
|
|
13
12
|
import { TYPE_ITEM_DATA_TABLE } from "./table.type";
|
|
@@ -17,11 +16,8 @@ export interface ITableTemplateConfig {
|
|
|
17
16
|
}
|
|
18
17
|
export interface ITableFieldTemplateConfig {
|
|
19
18
|
instance?: 'tooltip' | 'line-clamp' | 'buttons' | 'button-status' | 'switch' | 'badge' | 'other-action-show-popup' | 'shape-style' | 'image' | 'avatar' | 'button-action-show-popup';
|
|
20
|
-
instanceTooltipSpanInnerHtml?: boolean;
|
|
21
19
|
field: string;
|
|
22
20
|
parseValue?: TYPE_FUNCTION;
|
|
23
|
-
httpDetailByValue?: IHttpRequestConfig;
|
|
24
|
-
hasCallHttpDetailInContentTooltip?: boolean;
|
|
25
21
|
getTooltipIconClass?: TYPE_FUNCTION;
|
|
26
22
|
getTooltipConfig?: TYPE_FUNCTION;
|
|
27
23
|
action?: (dataField: any, item: TYPE_ITEM_DATA_TABLE, itemTableSelected?: TYPE_ITEM_DATA_TABLE) => any;
|
|
@@ -29,10 +25,9 @@ export interface ITableFieldTemplateConfig {
|
|
|
29
25
|
ngStyle?: TYPE_OBJECT;
|
|
30
26
|
getNgStyle?: TYPE_FUNCTION;
|
|
31
27
|
ngClass?: TYPE_OBJECT;
|
|
28
|
+
getNgClass?: TYPE_FUNCTION;
|
|
32
29
|
ignoreClassMarginLeft?: boolean;
|
|
33
30
|
lineClampConfig?: ILineClampConfig;
|
|
34
|
-
maxWidthTooltip?: number;
|
|
35
|
-
maxHeightTooltip?: number;
|
|
36
31
|
getDisableValueSwitch?: TYPE_FUNCTION;
|
|
37
32
|
getActiveValueSwitch?: TYPE_FUNCTION;
|
|
38
33
|
switchAction?: (switchData: ISwitchEvent, item: TYPE_ITEM_DATA_TABLE) => void;
|
package/package.json
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libs-ui/components-table",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.276",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^18.2.0",
|
|
6
6
|
"@angular/core": "^18.2.0",
|
|
7
|
-
"@libs-ui/components-buttons-button": "^0.2.
|
|
7
|
+
"@libs-ui/components-buttons-button": "^0.2.276",
|
|
8
8
|
"@iharbeck/ngx-virtual-scroller": "15.2.0",
|
|
9
|
-
"@libs-ui/interfaces-types": "^0.2.
|
|
10
|
-
"@libs-ui/components-buttons-sort": "^0.2.
|
|
11
|
-
"@libs-ui/components-popover": "^0.2.
|
|
12
|
-
"@libs-ui/components-avatar": "^0.2.
|
|
13
|
-
"@libs-ui/components-dropdown": "^0.2.
|
|
14
|
-
"@libs-ui/components-line-clamp": "^0.2.
|
|
15
|
-
"@libs-ui/components-list": "^0.2.
|
|
16
|
-
"@libs-ui/components-switch": "^0.2.
|
|
17
|
-
"@libs-ui/services-http-request": "^0.2.
|
|
9
|
+
"@libs-ui/interfaces-types": "^0.2.276",
|
|
10
|
+
"@libs-ui/components-buttons-sort": "^0.2.276",
|
|
11
|
+
"@libs-ui/components-popover": "^0.2.276",
|
|
12
|
+
"@libs-ui/components-avatar": "^0.2.276",
|
|
13
|
+
"@libs-ui/components-dropdown": "^0.2.276",
|
|
14
|
+
"@libs-ui/components-line-clamp": "^0.2.276",
|
|
15
|
+
"@libs-ui/components-list": "^0.2.276",
|
|
16
|
+
"@libs-ui/components-switch": "^0.2.276",
|
|
17
|
+
"@libs-ui/services-http-request": "^0.2.276",
|
|
18
18
|
"rxjs": "~7.8.0",
|
|
19
|
-
"@libs-ui/components-checkbox-group": "^0.2.
|
|
20
|
-
"@libs-ui/components-checkbox-single": "^0.2.
|
|
21
|
-
"@libs-ui/components-scroll-overlay": "^0.2.
|
|
22
|
-
"@libs-ui/components-spinner": "^0.2.
|
|
23
|
-
"@libs-ui/icons": "^0.2.
|
|
24
|
-
"@libs-ui/pipes-call-function-in-template": "^0.2.
|
|
25
|
-
"@libs-ui/pipes-check-selected-by-key": "^0.2.
|
|
26
|
-
"@libs-ui/utils": "^0.2.
|
|
19
|
+
"@libs-ui/components-checkbox-group": "^0.2.276",
|
|
20
|
+
"@libs-ui/components-checkbox-single": "^0.2.276",
|
|
21
|
+
"@libs-ui/components-scroll-overlay": "^0.2.276",
|
|
22
|
+
"@libs-ui/components-spinner": "^0.2.276",
|
|
23
|
+
"@libs-ui/icons": "^0.2.276",
|
|
24
|
+
"@libs-ui/pipes-call-function-in-template": "^0.2.276",
|
|
25
|
+
"@libs-ui/pipes-check-selected-by-key": "^0.2.276",
|
|
26
|
+
"@libs-ui/utils": "^0.2.276",
|
|
27
27
|
"@ngx-translate/core": "^15.0.0",
|
|
28
|
-
"@libs-ui/components-buttons-status": "^0.2.
|
|
29
|
-
"@libs-ui/pipes-clone-object": "^0.2.
|
|
30
|
-
"@libs-ui/pipes-security-trust": "^0.2.
|
|
31
|
-
"@libs-ui/components-badge": "^0.2.
|
|
32
|
-
"@libs-ui/pipes-convert-object-to-signal": "^0.2.
|
|
33
|
-
"@libs-ui/pipes-get-value-of-object": "^0.2.
|
|
28
|
+
"@libs-ui/components-buttons-status": "^0.2.276",
|
|
29
|
+
"@libs-ui/pipes-clone-object": "^0.2.276",
|
|
30
|
+
"@libs-ui/pipes-security-trust": "^0.2.276",
|
|
31
|
+
"@libs-ui/components-badge": "^0.2.276",
|
|
32
|
+
"@libs-ui/pipes-convert-object-to-signal": "^0.2.276",
|
|
33
|
+
"@libs-ui/pipes-get-value-of-object": "^0.2.276"
|
|
34
34
|
},
|
|
35
35
|
"sideEffects": false,
|
|
36
36
|
"module": "fesm2022/libs-ui-components-table.mjs",
|
package/table.component.d.ts
CHANGED
|
@@ -4,13 +4,13 @@ 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
|
+
import { IListConfigItem } from "@libs-ui/components-list";
|
|
7
8
|
import { TYPE_POPOVER_EVENT } from "@libs-ui/components-popover";
|
|
8
9
|
import { IHttpResponseError, IPaging, TYPE_OBJECT } from "@libs-ui/interfaces-types";
|
|
9
10
|
import { IHttpRequestConfig } from "@libs-ui/services-http-request";
|
|
10
11
|
import { IButtonBarEvent, IConfigSelectMoreItem, IConfigTemplateItemCollapseExpand, IHoverButtonActionEvent, ILoadMoreEvent, ISortEvent, ITabelButtonActionEvent, ITableFooterConfig, ITableHeaderConfig, TYPE_DATA_FILTER_TABLE, TYPE_ITEM_DATA_TABLE, TYPE_NEW_DATA_TABLE, TYPE_TABLE_FILTER } from "./interfaces";
|
|
11
12
|
import { ITableFunctionControlEvent } from "./interfaces/function-control-event.interface";
|
|
12
13
|
import { ITableNoDataConfig } from "./interfaces/no-data-config.interface";
|
|
13
|
-
import { IListConfigItem } from "@libs-ui/components-list";
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
15
15
|
export declare class LibsUiComponentsTableComponent implements OnInit, OnDestroy {
|
|
16
16
|
/** PROPERTY */
|
|
@@ -36,7 +36,6 @@ export declare class LibsUiComponentsTableComponent implements OnInit, OnDestroy
|
|
|
36
36
|
private timeoutLeaveItem;
|
|
37
37
|
private functionControlSelectMoreItem?;
|
|
38
38
|
private mouseEnterHeader;
|
|
39
|
-
private onDestroy;
|
|
40
39
|
/** INPUT */
|
|
41
40
|
readonly timeHighlighNewItem: import("@angular/core").InputSignalWithTransform<number, number | undefined>;
|
|
42
41
|
readonly headerLeft: import("@angular/core").InputSignalWithTransform<ITableHeaderConfig[], ITableHeaderConfig[] | undefined>;
|
|
@@ -118,6 +117,7 @@ export declare class LibsUiComponentsTableComponent implements OnInit, OnDestroy
|
|
|
118
117
|
private bodyComponentRef;
|
|
119
118
|
/**INJECT */
|
|
120
119
|
private httpRequestService;
|
|
120
|
+
private destroyRef;
|
|
121
121
|
private cdr;
|
|
122
122
|
constructor();
|
|
123
123
|
ngOnInit(): void;
|