@libs-ui/components-list 0.2.197 → 0.2.199
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 +8 -6
- package/esm2022/templates/group/group.component.mjs +6 -4
- package/esm2022/templates/group/item/item.component.mjs +6 -4
- package/esm2022/templates/radio/radio.component.mjs +9 -7
- package/esm2022/templates/rows/rows.component.mjs +5 -5
- package/esm2022/templates/text/text.component.mjs +9 -6
- package/fesm2022/libs-ui-components-list.mjs +28 -21
- package/fesm2022/libs-ui-components-list.mjs.map +1 -1
- package/interfaces/config-item.interface.d.ts +14 -5
- package/package.json +23 -23
|
@@ -10,6 +10,8 @@ import { TYPE_TEMPLATE } from "./templates-type.type";
|
|
|
10
10
|
import { Observable } from "rxjs";
|
|
11
11
|
import { WritableSignal } from "@angular/core";
|
|
12
12
|
import { TYPE_OBJECT } from "@libs-ui/interfaces-types";
|
|
13
|
+
import { LibsUiComponentsComponnentOutletComponent } from "@libs-ui/components-component-outlet";
|
|
14
|
+
export type TYPE_LIST_ITEM = WritableSignal<TYPE_OBJECT>;
|
|
13
15
|
export interface IListConfigItem {
|
|
14
16
|
type: TYPE_TEMPLATE;
|
|
15
17
|
httpRequestData?: WritableSignal<IHttpRequestConfig>;
|
|
@@ -35,7 +37,7 @@ export interface IListConfigItem {
|
|
|
35
37
|
}
|
|
36
38
|
export interface IListConfigItemText {
|
|
37
39
|
fieldKey: string;
|
|
38
|
-
getValue?: (item: any, itemViewInList?:
|
|
40
|
+
getValue?: (item: any, itemViewInList?: TYPE_LIST_ITEM) => string;
|
|
39
41
|
fieldGetImage?: string;
|
|
40
42
|
classIncludeImage?: string;
|
|
41
43
|
getImage?: (data: IDataFunctionCallInConfig) => Observable<string>;
|
|
@@ -62,6 +64,7 @@ export interface IListConfigItemText {
|
|
|
62
64
|
getAvatarConfig?: (item: any) => IAvatarConfig;
|
|
63
65
|
getConfigAlignStart?: (item: any) => boolean;
|
|
64
66
|
stylePaddingRightItemOther?: boolean;
|
|
67
|
+
getComponentOutlet?: () => Observable<LibsUiComponentsComponnentOutletComponent | any>;
|
|
65
68
|
}
|
|
66
69
|
export interface IListConfigItemTag extends IListConfigItemText {
|
|
67
70
|
fieldKey: string;
|
|
@@ -74,7 +77,7 @@ export interface IListConfigItemRadio {
|
|
|
74
77
|
classIncludeImage?: string;
|
|
75
78
|
hasAvatarPagesSocial?: boolean;
|
|
76
79
|
hasAvatarGroupSocial?: boolean;
|
|
77
|
-
getValue?: (item: any, itemViewInList?:
|
|
80
|
+
getValue?: (item: any, itemViewInList?: TYPE_LIST_ITEM) => string;
|
|
78
81
|
getPopover?: (item: any) => IPopover | undefined;
|
|
79
82
|
rows?: WritableSignal<Array<WritableSignal<IListConfigItemTextRow>>>;
|
|
80
83
|
classRows?: string;
|
|
@@ -85,6 +88,7 @@ export interface IListConfigItemRadio {
|
|
|
85
88
|
classItemInclude?: string;
|
|
86
89
|
getImage?: (data: IDataFunctionCallInConfig) => Observable<string>;
|
|
87
90
|
getImageError?: (data: IDataFunctionCallInConfig) => Observable<string>;
|
|
91
|
+
getComponentOutlet?: () => Observable<LibsUiComponentsComponnentOutletComponent | any>;
|
|
88
92
|
}
|
|
89
93
|
export interface IListConfigItemCheckbox {
|
|
90
94
|
autoSelectAllItem?: boolean;
|
|
@@ -98,7 +102,7 @@ export interface IListConfigItemCheckbox {
|
|
|
98
102
|
configCheckboxCheckAll?: WritableSignal<ICheckboxItem>;
|
|
99
103
|
classIncludeHasConfigCheckBoxAll?: string;
|
|
100
104
|
fieldKey: string;
|
|
101
|
-
getValue?: (item: any, itemViewInList?:
|
|
105
|
+
getValue?: (item: any, itemViewInList?: TYPE_LIST_ITEM) => string;
|
|
102
106
|
getPopover?: (item: any) => IPopover;
|
|
103
107
|
getClassItem?: (item: any) => string;
|
|
104
108
|
getImage?: (data: IDataFunctionCallInConfig) => Observable<string>;
|
|
@@ -121,11 +125,12 @@ export interface IListConfigItemCheckbox {
|
|
|
121
125
|
classIncludeLastViewItem?: string;
|
|
122
126
|
classInclude?: string;
|
|
123
127
|
autoScrollToItemSelected?: boolean;
|
|
128
|
+
getComponentOutlet?: () => Observable<LibsUiComponentsComponnentOutletComponent | any>;
|
|
124
129
|
}
|
|
125
130
|
export interface IListConfigItemTextRow {
|
|
126
131
|
classRow?: string;
|
|
127
132
|
classItemSelected?: string;
|
|
128
|
-
getValue?: (item: any, itemViewInList?:
|
|
133
|
+
getValue?: (item: any, itemViewInList?: TYPE_LIST_ITEM) => Observable<string>;
|
|
129
134
|
classGetValue?: string;
|
|
130
135
|
classCols?: string;
|
|
131
136
|
cols?: WritableSignal<Array<WritableSignal<IListConfigItemTextCol>>>;
|
|
@@ -136,6 +141,7 @@ export interface IListConfigItemTextRow {
|
|
|
136
141
|
getImageError?: (item: IDataFunctionCallInConfig) => Observable<string>;
|
|
137
142
|
getPopoverConfig?: (item: any) => Observable<IPopoverOverlay>;
|
|
138
143
|
getAvatarConfig?: (item: any) => IAvatarConfig;
|
|
144
|
+
getComponentOutlet?: () => Observable<LibsUiComponentsComponnentOutletComponent | any>;
|
|
139
145
|
}
|
|
140
146
|
export interface IDataFunctionCallInConfig {
|
|
141
147
|
value?: any;
|
|
@@ -144,7 +150,7 @@ export interface IDataFunctionCallInConfig {
|
|
|
144
150
|
}
|
|
145
151
|
export interface IListConfigItemTextCol {
|
|
146
152
|
getClassCol?: (item: any, index: number) => string | undefined;
|
|
147
|
-
getValue?: (data: IDataFunctionCallInConfig, itemViewInList?:
|
|
153
|
+
getValue?: (data: IDataFunctionCallInConfig, itemViewInList?: TYPE_LIST_ITEM) => Observable<string>;
|
|
148
154
|
getPopover?: (item: any, index: number) => IPopover | undefined;
|
|
149
155
|
action?: (item: any) => void;
|
|
150
156
|
getImage?: (item: any) => Observable<string>;
|
|
@@ -155,6 +161,7 @@ export interface IListConfigItemTextCol {
|
|
|
155
161
|
getButton?: (item: any, index: number) => IButton | undefined;
|
|
156
162
|
getLabelSwitch?: (item: any, index: number) => ILabel | undefined;
|
|
157
163
|
getAvatarConfig?: (item: any) => IAvatarConfig;
|
|
164
|
+
getComponentOutlet?: () => Observable<LibsUiComponentsComponnentOutletComponent | any>;
|
|
158
165
|
}
|
|
159
166
|
export interface IListConfigItemGroup {
|
|
160
167
|
flatItemsSupportAutoSelect?: (data: Array<any>) => Array<any>;
|
|
@@ -176,6 +183,7 @@ export interface IListConfigItemGroup {
|
|
|
176
183
|
getDescriptionGroupWhenNoData?: (group: any) => string | undefined;
|
|
177
184
|
getButtonGroup?: (group: any) => IButton;
|
|
178
185
|
getIconEmptyDataInGroup?: (group: any) => boolean;
|
|
186
|
+
getComponentOutletGroup?: () => Observable<LibsUiComponentsComponnentOutletComponent | any>;
|
|
179
187
|
ignoreCheckboxGroup?: boolean;
|
|
180
188
|
classIncludeNodata?: string;
|
|
181
189
|
classIncludeGroup?: string;
|
|
@@ -196,6 +204,7 @@ export interface IListConfigItemGroup {
|
|
|
196
204
|
getExpandItem?: (group: any) => boolean;
|
|
197
205
|
getBonusPaddingLeftItem?: (item: any, parentItem?: any) => number;
|
|
198
206
|
getClassIncludeItemNoData?: (item: any, parentItem?: any) => string;
|
|
207
|
+
getComponentOutletItem?: () => Observable<LibsUiComponentsComponnentOutletComponent | any>;
|
|
199
208
|
ignoreCheckboxItem?: boolean;
|
|
200
209
|
ignoreRadioItem?: boolean;
|
|
201
210
|
notChangeStateItemCheckOther?: boolean;
|
package/package.json
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libs-ui/components-list",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.199",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^18.2.0",
|
|
6
6
|
"@angular/core": "^18.2.0",
|
|
7
|
-
"@libs-ui/utils": "^0.2.
|
|
8
|
-
"@libs-ui/components-avatar": "^0.2.
|
|
9
|
-
"@libs-ui/components-badge": "^0.2.
|
|
10
|
-
"@libs-ui/components-buttons-button": "^0.2.
|
|
11
|
-
"@libs-ui/components-buttons-sort": "^0.2.
|
|
12
|
-
"@libs-ui/components-checkbox-group": "^0.2.
|
|
13
|
-
"@libs-ui/components-label": "^0.2.
|
|
14
|
-
"@libs-ui/components-popover": "^0.2.
|
|
15
|
-
"@libs-ui/services-http-request": "^0.2.
|
|
7
|
+
"@libs-ui/utils": "^0.2.199",
|
|
8
|
+
"@libs-ui/components-avatar": "^0.2.199",
|
|
9
|
+
"@libs-ui/components-badge": "^0.2.199",
|
|
10
|
+
"@libs-ui/components-buttons-button": "^0.2.199",
|
|
11
|
+
"@libs-ui/components-buttons-sort": "^0.2.199",
|
|
12
|
+
"@libs-ui/components-checkbox-group": "^0.2.199",
|
|
13
|
+
"@libs-ui/components-label": "^0.2.199",
|
|
14
|
+
"@libs-ui/components-popover": "^0.2.199",
|
|
15
|
+
"@libs-ui/services-http-request": "^0.2.199",
|
|
16
16
|
"rxjs": "~7.8.0",
|
|
17
|
-
"@libs-ui/interfaces-types": "^0.2.
|
|
18
|
-
"@libs-ui/components-inputs-input": "^0.2.
|
|
19
|
-
"@libs-ui/components-inputs-search": "^0.2.
|
|
20
|
-
"@libs-ui/components-inputs-valid": "^0.2.
|
|
21
|
-
"@libs-ui/services-dynamic-component": "^0.2.
|
|
17
|
+
"@libs-ui/interfaces-types": "^0.2.199",
|
|
18
|
+
"@libs-ui/components-inputs-input": "^0.2.199",
|
|
19
|
+
"@libs-ui/components-inputs-search": "^0.2.199",
|
|
20
|
+
"@libs-ui/components-inputs-valid": "^0.2.199",
|
|
21
|
+
"@libs-ui/services-dynamic-component": "^0.2.199",
|
|
22
22
|
"@ngx-translate/core": "^15.0.0",
|
|
23
23
|
"@iharbeck/ngx-virtual-scroller": "15.2.0",
|
|
24
|
-
"@libs-ui/components-checkbox-single": "^0.2.
|
|
25
|
-
"@libs-ui/components-scroll-overlay": "^0.2.
|
|
26
|
-
"@libs-ui/components-spinner": "^0.2.
|
|
27
|
-
"@libs-ui/icons": "^0.2.
|
|
28
|
-
"@libs-ui/pipes-call-function-in-template": "^0.2.
|
|
29
|
-
"@libs-ui/pipes-convert-object-to-signal": "^0.2.
|
|
30
|
-
"@libs-ui/components-radio-single": "^0.2.
|
|
31
|
-
"@libs-ui/components-switch": "^0.2.
|
|
24
|
+
"@libs-ui/components-checkbox-single": "^0.2.199",
|
|
25
|
+
"@libs-ui/components-scroll-overlay": "^0.2.199",
|
|
26
|
+
"@libs-ui/components-spinner": "^0.2.199",
|
|
27
|
+
"@libs-ui/icons": "^0.2.199",
|
|
28
|
+
"@libs-ui/pipes-call-function-in-template": "^0.2.199",
|
|
29
|
+
"@libs-ui/pipes-convert-object-to-signal": "^0.2.199",
|
|
30
|
+
"@libs-ui/components-radio-single": "^0.2.199",
|
|
31
|
+
"@libs-ui/components-switch": "^0.2.199"
|
|
32
32
|
},
|
|
33
33
|
"sideEffects": false,
|
|
34
34
|
"module": "fesm2022/libs-ui-components-list.mjs",
|