@libs-ui/components-table 0.2.304 → 0.2.306-10
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 +26 -28
- package/esm2022/index.mjs +1 -1
- package/esm2022/interfaces/button-action-event.interface.mjs +1 -1
- package/esm2022/interfaces/button-bar-event.interface.mjs +1 -1
- package/esm2022/interfaces/function-control-event.interface.mjs +1 -1
- package/esm2022/interfaces/hover-button-action-event.interface.mjs +1 -1
- package/esm2022/interfaces/load-more-event.interface.mjs +1 -1
- package/esm2022/interfaces/no-data-config.interface.mjs +1 -1
- package/esm2022/interfaces/sort-event.interface.mjs +1 -1
- package/esm2022/interfaces/table-config.interface.mjs +1 -1
- package/esm2022/interfaces/table.type.mjs +1 -1
- package/esm2022/interfaces/template-config.interface.mjs +1 -1
- package/esm2022/pipes/calculator-column.pipe.mjs +4 -4
- package/esm2022/table.component.mjs +124 -97
- package/esm2022/templates/templates.component.mjs +21 -10
- package/fesm2022/libs-ui-components-table.mjs +128 -90
- package/fesm2022/libs-ui-components-table.mjs.map +1 -1
- package/interfaces/button-action-event.interface.d.ts +1 -1
- package/interfaces/button-bar-event.interface.d.ts +1 -1
- package/interfaces/load-more-event.interface.d.ts +1 -1
- package/interfaces/no-data-config.interface.d.ts +1 -1
- package/interfaces/sort-event.interface.d.ts +1 -1
- package/interfaces/table-config.interface.d.ts +4 -4
- package/interfaces/table.type.d.ts +2 -2
- package/interfaces/template-config.interface.d.ts +12 -12
- package/package.json +25 -25
- package/table.component.d.ts +11 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TYPE_SORT_TYPE } from
|
|
2
|
-
import { IPopover, TYPE_POPOVER_TYPE } from
|
|
3
|
-
import { TYPE_FUNCTION, TYPE_OBJECT } from
|
|
4
|
-
import { ITableTemplateConfig } from
|
|
1
|
+
import { TYPE_SORT_TYPE } from '@libs-ui/components-buttons-sort';
|
|
2
|
+
import { IPopover, TYPE_POPOVER_TYPE } from '@libs-ui/components-popover';
|
|
3
|
+
import { TYPE_FUNCTION, TYPE_OBJECT } from '@libs-ui/interfaces-types';
|
|
4
|
+
import { ITableTemplateConfig } from './template-config.interface';
|
|
5
5
|
export interface ITableHeaderConfig {
|
|
6
6
|
ngStyle?: TYPE_OBJECT;
|
|
7
7
|
keepWidthIsPxColumnIfTableWidthGrandTotalColumnsHeader?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { WritableSignal } from
|
|
2
|
-
import { TYPE_OBJECT } from
|
|
1
|
+
import { WritableSignal } from '@angular/core';
|
|
2
|
+
import { TYPE_OBJECT } from '@libs-ui/interfaces-types';
|
|
3
3
|
export type TYPE_TABLE_FILTER = ((items: TYPE_DATA_TABLE, filter: Record<string, unknown>) => Array<WritableSignal<Record<string, unknown>>>) | undefined;
|
|
4
4
|
export type TYPE_DATA_FILTER_TABLE = {
|
|
5
5
|
filterData: TYPE_OBJECT;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { WritableSignal } from
|
|
2
|
-
import { IAvatarConfig } from
|
|
3
|
-
import { IButton } from
|
|
4
|
-
import { IDropdown } from
|
|
5
|
-
import { ILineClampConfig } from
|
|
6
|
-
import { IListConfigItem } from
|
|
7
|
-
import { IPopover } from
|
|
8
|
-
import { ISwitchEvent } from
|
|
9
|
-
import { TYPE_FUNCTION, TYPE_OBJECT } from
|
|
10
|
-
import { Observable } from
|
|
11
|
-
import { LibsUiComponentsComponentOutletComponent } from
|
|
12
|
-
import { TYPE_ITEM_DATA_TABLE } from
|
|
1
|
+
import { WritableSignal } from '@angular/core';
|
|
2
|
+
import { IAvatarConfig } from '@libs-ui/components-avatar';
|
|
3
|
+
import { IButton } from '@libs-ui/components-buttons-button';
|
|
4
|
+
import { IDropdown } from '@libs-ui/components-dropdown';
|
|
5
|
+
import { ILineClampConfig } from '@libs-ui/components-line-clamp';
|
|
6
|
+
import { IListConfigItem } from '@libs-ui/components-list';
|
|
7
|
+
import { IPopover } from '@libs-ui/components-popover';
|
|
8
|
+
import { ISwitchEvent } from '@libs-ui/components-switch';
|
|
9
|
+
import { TYPE_FUNCTION, TYPE_OBJECT } from '@libs-ui/interfaces-types';
|
|
10
|
+
import { Observable } from 'rxjs';
|
|
11
|
+
import { LibsUiComponentsComponentOutletComponent } from '@libs-ui/components-component-outlet';
|
|
12
|
+
import { TYPE_ITEM_DATA_TABLE } from './table.type';
|
|
13
13
|
export interface ITableTemplateConfig {
|
|
14
14
|
cssWrapper: string;
|
|
15
15
|
fieldsConfig: Array<ITableFieldTemplateConfig>;
|
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.306-10",
|
|
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.
|
|
7
|
+
"@libs-ui/components-buttons-button": "0.2.306-10",
|
|
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.306-10",
|
|
10
|
+
"@libs-ui/components-buttons-sort": "0.2.306-10",
|
|
11
|
+
"@libs-ui/components-popover": "0.2.306-10",
|
|
12
|
+
"@libs-ui/components-avatar": "0.2.306-10",
|
|
13
|
+
"@libs-ui/components-dropdown": "0.2.306-10",
|
|
14
|
+
"@libs-ui/components-line-clamp": "0.2.306-10",
|
|
15
|
+
"@libs-ui/components-list": "0.2.306-10",
|
|
16
|
+
"@libs-ui/components-switch": "0.2.306-10",
|
|
17
|
+
"@libs-ui/services-http-request": "0.2.306-10",
|
|
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.306-10",
|
|
20
|
+
"@libs-ui/components-checkbox-single": "0.2.306-10",
|
|
21
|
+
"@libs-ui/components-scroll-overlay": "0.2.306-10",
|
|
22
|
+
"@libs-ui/components-spinner": "0.2.306-10",
|
|
23
|
+
"@libs-ui/icons": "0.2.306-10",
|
|
24
|
+
"@libs-ui/pipes-call-function-in-template": "0.2.306-10",
|
|
25
|
+
"@libs-ui/pipes-check-selected-by-key": "0.2.306-10",
|
|
26
|
+
"@libs-ui/utils": "0.2.306-10",
|
|
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.306-10",
|
|
29
|
+
"@libs-ui/pipes-clone-object": "0.2.306-10",
|
|
30
|
+
"@libs-ui/pipes-security-trust": "0.2.306-10",
|
|
31
|
+
"@libs-ui/components-badge": "0.2.306-10",
|
|
32
|
+
"@libs-ui/pipes-convert-object-to-signal": "0.2.306-10",
|
|
33
|
+
"@libs-ui/pipes-get-value-of-object": "0.2.306-10"
|
|
34
34
|
},
|
|
35
35
|
"sideEffects": false,
|
|
36
36
|
"module": "fesm2022/libs-ui-components-table.mjs",
|
package/table.component.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ElementRef, OnDestroy, OnInit, WritableSignal } from
|
|
1
|
+
import { ElementRef, 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
|
-
import { ICheckboxItem } from
|
|
5
|
-
import { ICheckboxEvent } from
|
|
4
|
+
import { ICheckboxItem } from '@libs-ui/components-checkbox-group';
|
|
5
|
+
import { ICheckboxEvent } from '@libs-ui/components-checkbox-single';
|
|
6
6
|
import { IDropdownFunctionControlEvent, IEmitSelectKey } from '@libs-ui/components-dropdown';
|
|
7
|
-
import { IListConfigItem } from
|
|
8
|
-
import { TYPE_POPOVER_EVENT } from
|
|
9
|
-
import { IHttpResponseError, IPaging, TYPE_OBJECT } from
|
|
10
|
-
import { IHttpRequestConfig } from
|
|
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
|
|
12
|
-
import { ITableFunctionControlEvent } from
|
|
13
|
-
import { ITableNoDataConfig } from
|
|
7
|
+
import { IListConfigItem } from '@libs-ui/components-list';
|
|
8
|
+
import { TYPE_POPOVER_EVENT } from '@libs-ui/components-popover';
|
|
9
|
+
import { IHttpResponseError, IPaging, TYPE_OBJECT } from '@libs-ui/interfaces-types';
|
|
10
|
+
import { IHttpRequestConfig } from '@libs-ui/services-http-request';
|
|
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';
|
|
12
|
+
import { ITableFunctionControlEvent } from './interfaces/function-control-event.interface';
|
|
13
|
+
import { ITableNoDataConfig } from './interfaces/no-data-config.interface';
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
15
15
|
export declare class LibsUiComponentsTableComponent implements OnInit, OnDestroy {
|
|
16
16
|
/** PROPERTY */
|
|
@@ -121,6 +121,7 @@ export declare class LibsUiComponentsTableComponent implements OnInit, OnDestroy
|
|
|
121
121
|
private cdr;
|
|
122
122
|
constructor();
|
|
123
123
|
ngOnInit(): void;
|
|
124
|
+
get FunctionsControl(): ITableFunctionControlEvent;
|
|
124
125
|
protected getIndexRow: (data: {
|
|
125
126
|
value: TYPE_ITEM_DATA_TABLE;
|
|
126
127
|
}) => import("rxjs").Observable<number>;
|