@libs-ui/components-list 0.2.134 → 0.2.136
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/config-item.interface.mjs +1 -1
- package/esm2022/templates/checkbox/checkbox.component.mjs +26 -7
- package/esm2022/templates/radio/radio.component.mjs +8 -7
- package/esm2022/templates/templates.component.abstract.mjs +6 -4
- package/esm2022/templates/text/text.component.mjs +8 -7
- package/fesm2022/libs-ui-components-list.mjs +43 -20
- package/fesm2022/libs-ui-components-list.mjs.map +1 -1
- package/interfaces/config-item.interface.d.ts +6 -4
- package/package.json +1 -1
- package/templates/checkbox/checkbox.component.d.ts +3 -0
- package/templates/templates.component.abstract.d.ts +2 -0
|
@@ -9,6 +9,7 @@ import { IHttpRequestConfig } from "@libs-ui/services-http-request";
|
|
|
9
9
|
import { TYPE_TEMPLATE } from "./templates-type.type";
|
|
10
10
|
import { Observable } from "rxjs";
|
|
11
11
|
import { WritableSignal } from "@angular/core";
|
|
12
|
+
import { TYPE_OBJECT } from "@libs-ui/interfaces-types";
|
|
12
13
|
export interface IListConfigItem {
|
|
13
14
|
type: TYPE_TEMPLATE;
|
|
14
15
|
httpRequestData?: WritableSignal<IHttpRequestConfig>;
|
|
@@ -73,7 +74,7 @@ export interface IListConfigItemRadio {
|
|
|
73
74
|
classIncludeImage?: string;
|
|
74
75
|
hasAvatarPagesSocial?: boolean;
|
|
75
76
|
hasAvatarGroupSocial?: boolean;
|
|
76
|
-
getValue?: (item: any) => string;
|
|
77
|
+
getValue?: (item: any, itemViewInList?: WritableSignal<TYPE_OBJECT>) => string;
|
|
77
78
|
getPopover?: (item: any) => IPopover | undefined;
|
|
78
79
|
rows?: WritableSignal<Array<WritableSignal<IListConfigItemTextRow>>>;
|
|
79
80
|
classRows?: string;
|
|
@@ -97,7 +98,7 @@ export interface IListConfigItemCheckbox {
|
|
|
97
98
|
configCheckboxCheckAll?: WritableSignal<ICheckboxItem>;
|
|
98
99
|
classIncludeHasConfigCheckBoxAll?: string;
|
|
99
100
|
fieldKey: string;
|
|
100
|
-
getValue?: (item: any) => string;
|
|
101
|
+
getValue?: (item: any, itemViewInList?: WritableSignal<TYPE_OBJECT>) => string;
|
|
101
102
|
getPopover?: (item: any) => IPopover;
|
|
102
103
|
getClassItem?: (item: any) => string;
|
|
103
104
|
getImage?: (data: IDataFunctionCallInConfig) => Observable<string>;
|
|
@@ -119,11 +120,12 @@ export interface IListConfigItemCheckbox {
|
|
|
119
120
|
ignoreItemWidth100?: boolean;
|
|
120
121
|
classIncludeLastViewItem?: string;
|
|
121
122
|
classInclude?: string;
|
|
123
|
+
autoScrollToItemSelected?: boolean;
|
|
122
124
|
}
|
|
123
125
|
export interface IListConfigItemTextRow {
|
|
124
126
|
classRow?: string;
|
|
125
127
|
classItemSelected?: string;
|
|
126
|
-
getValue?: (
|
|
128
|
+
getValue?: (item: any, itemViewInList?: WritableSignal<TYPE_OBJECT>) => Observable<string>;
|
|
127
129
|
classGetValue?: string;
|
|
128
130
|
classCols?: string;
|
|
129
131
|
cols?: WritableSignal<Array<WritableSignal<IListConfigItemTextCol>>>;
|
|
@@ -142,7 +144,7 @@ export interface IDataFunctionCallInConfig {
|
|
|
142
144
|
}
|
|
143
145
|
export interface IListConfigItemTextCol {
|
|
144
146
|
getClassCol?: (item: any, index: number) => string | undefined;
|
|
145
|
-
getValue?: (data: IDataFunctionCallInConfig) => Observable<string>;
|
|
147
|
+
getValue?: (data: IDataFunctionCallInConfig, itemViewInList?: WritableSignal<TYPE_OBJECT>) => Observable<string>;
|
|
146
148
|
getPopover?: (item: any, index: number) => IPopover | undefined;
|
|
147
149
|
action?: (item: any) => void;
|
|
148
150
|
getImage?: (item: any) => Observable<string>;
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { OnInit, WritableSignal } from '@angular/core';
|
|
2
|
+
import { VirtualScrollerComponent } from '@iharbeck/ngx-virtual-scroller';
|
|
2
3
|
import { LibsUiComponentsListTemplatesComponentAbstract } from '../templates.component.abstract';
|
|
3
4
|
import { IListConfigItemCheckbox } from './../../interfaces/config-item.interface';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class LibsUiComponentsListCheckboxComponent extends LibsUiComponentsListTemplatesComponentAbstract implements OnInit {
|
|
6
7
|
protected configTemplateCheckbox: WritableSignal<IListConfigItemCheckbox | undefined>;
|
|
8
|
+
protected readonly virtualScrollerComponent: import("@angular/core").Signal<VirtualScrollerComponent | undefined>;
|
|
7
9
|
ngOnInit(): void;
|
|
8
10
|
protected handlerSelect(isSelectAll: boolean): Promise<void>;
|
|
9
11
|
private processHandlerSelectData;
|
|
@@ -15,6 +17,7 @@ export declare class LibsUiComponentsListCheckboxComponent extends LibsUiCompone
|
|
|
15
17
|
private checkAndEmitMultiKeySelected;
|
|
16
18
|
private emitSelectMultiKey;
|
|
17
19
|
protected processData(replace?: boolean): void;
|
|
20
|
+
private scrollToItemSelected;
|
|
18
21
|
protected autoSelectFirstItem(items: Array<WritableSignal<any>>): void;
|
|
19
22
|
protected getLengthItem(): number;
|
|
20
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibsUiComponentsListCheckboxComponent, never>;
|
|
@@ -10,6 +10,7 @@ import { IDataUpdateToStore, IListDataEmitKey, IListDataEmitMultiKey } from "../
|
|
|
10
10
|
import { IListConfigItem, IListConfigItemCheckbox, IListConfigItemRadio, IListConfigItemText } from "../interfaces/config-item.interface";
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare abstract class LibsUiComponentsListTemplatesComponentAbstract implements OnDestroy {
|
|
13
|
+
protected timeAnimationScrollToIndexItem: WritableSignal<number>;
|
|
13
14
|
protected loading: WritableSignal<boolean>;
|
|
14
15
|
protected heightViewPort: WritableSignal<number>;
|
|
15
16
|
protected store: WritableSignal<WritableSignal<any>[]>;
|
|
@@ -68,6 +69,7 @@ export declare abstract class LibsUiComponentsListTemplatesComponentAbstract imp
|
|
|
68
69
|
paging?: IPaging;
|
|
69
70
|
}>;
|
|
70
71
|
protected itemRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
72
|
+
protected elementScroll: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
71
73
|
protected translateService: TranslateService;
|
|
72
74
|
protected httpRequestService: LibsUiHttpRequestService;
|
|
73
75
|
constructor();
|