@libs-ui/components-list 0.2.198 → 0.2.200

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.
@@ -9,7 +9,9 @@ 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
+ import { TYPE_FUNCTION, 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?: WritableSignal<TYPE_OBJECT>) => string;
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,8 @@ export interface IListConfigItemText {
62
64
  getAvatarConfig?: (item: any) => IAvatarConfig;
63
65
  getConfigAlignStart?: (item: any) => boolean;
64
66
  stylePaddingRightItemOther?: boolean;
67
+ getComponentOutlet?: () => Observable<LibsUiComponentsComponnentOutletComponent | any>;
68
+ getDataComponentOutlet?: TYPE_FUNCTION;
65
69
  }
66
70
  export interface IListConfigItemTag extends IListConfigItemText {
67
71
  fieldKey: string;
@@ -74,7 +78,7 @@ export interface IListConfigItemRadio {
74
78
  classIncludeImage?: string;
75
79
  hasAvatarPagesSocial?: boolean;
76
80
  hasAvatarGroupSocial?: boolean;
77
- getValue?: (item: any, itemViewInList?: WritableSignal<TYPE_OBJECT>) => string;
81
+ getValue?: (item: any, itemViewInList?: TYPE_LIST_ITEM) => string;
78
82
  getPopover?: (item: any) => IPopover | undefined;
79
83
  rows?: WritableSignal<Array<WritableSignal<IListConfigItemTextRow>>>;
80
84
  classRows?: string;
@@ -85,6 +89,8 @@ export interface IListConfigItemRadio {
85
89
  classItemInclude?: string;
86
90
  getImage?: (data: IDataFunctionCallInConfig) => Observable<string>;
87
91
  getImageError?: (data: IDataFunctionCallInConfig) => Observable<string>;
92
+ getComponentOutlet?: () => Observable<LibsUiComponentsComponnentOutletComponent | any>;
93
+ getDataComponentOutlet?: TYPE_FUNCTION;
88
94
  }
89
95
  export interface IListConfigItemCheckbox {
90
96
  autoSelectAllItem?: boolean;
@@ -98,7 +104,7 @@ export interface IListConfigItemCheckbox {
98
104
  configCheckboxCheckAll?: WritableSignal<ICheckboxItem>;
99
105
  classIncludeHasConfigCheckBoxAll?: string;
100
106
  fieldKey: string;
101
- getValue?: (item: any, itemViewInList?: WritableSignal<TYPE_OBJECT>) => string;
107
+ getValue?: (item: any, itemViewInList?: TYPE_LIST_ITEM) => string;
102
108
  getPopover?: (item: any) => IPopover;
103
109
  getClassItem?: (item: any) => string;
104
110
  getImage?: (data: IDataFunctionCallInConfig) => Observable<string>;
@@ -121,11 +127,13 @@ export interface IListConfigItemCheckbox {
121
127
  classIncludeLastViewItem?: string;
122
128
  classInclude?: string;
123
129
  autoScrollToItemSelected?: boolean;
130
+ getComponentOutlet?: () => Observable<LibsUiComponentsComponnentOutletComponent | any>;
131
+ getDataComponentOutlet?: TYPE_FUNCTION;
124
132
  }
125
133
  export interface IListConfigItemTextRow {
126
134
  classRow?: string;
127
135
  classItemSelected?: string;
128
- getValue?: (item: any, itemViewInList?: WritableSignal<TYPE_OBJECT>) => Observable<string>;
136
+ getValue?: (item: any, itemViewInList?: TYPE_LIST_ITEM) => Observable<string>;
129
137
  classGetValue?: string;
130
138
  classCols?: string;
131
139
  cols?: WritableSignal<Array<WritableSignal<IListConfigItemTextCol>>>;
@@ -136,6 +144,8 @@ export interface IListConfigItemTextRow {
136
144
  getImageError?: (item: IDataFunctionCallInConfig) => Observable<string>;
137
145
  getPopoverConfig?: (item: any) => Observable<IPopoverOverlay>;
138
146
  getAvatarConfig?: (item: any) => IAvatarConfig;
147
+ getComponentOutlet?: () => Observable<LibsUiComponentsComponnentOutletComponent | any>;
148
+ getDataComponentOutlet?: TYPE_FUNCTION;
139
149
  }
140
150
  export interface IDataFunctionCallInConfig {
141
151
  value?: any;
@@ -144,7 +154,7 @@ export interface IDataFunctionCallInConfig {
144
154
  }
145
155
  export interface IListConfigItemTextCol {
146
156
  getClassCol?: (item: any, index: number) => string | undefined;
147
- getValue?: (data: IDataFunctionCallInConfig, itemViewInList?: WritableSignal<TYPE_OBJECT>) => Observable<string>;
157
+ getValue?: (data: IDataFunctionCallInConfig, itemViewInList?: TYPE_LIST_ITEM) => Observable<string>;
148
158
  getPopover?: (item: any, index: number) => IPopover | undefined;
149
159
  action?: (item: any) => void;
150
160
  getImage?: (item: any) => Observable<string>;
@@ -155,6 +165,8 @@ export interface IListConfigItemTextCol {
155
165
  getButton?: (item: any, index: number) => IButton | undefined;
156
166
  getLabelSwitch?: (item: any, index: number) => ILabel | undefined;
157
167
  getAvatarConfig?: (item: any) => IAvatarConfig;
168
+ getComponentOutlet?: () => Observable<LibsUiComponentsComponnentOutletComponent | any>;
169
+ getDataComponentOutlet?: TYPE_FUNCTION;
158
170
  }
159
171
  export interface IListConfigItemGroup {
160
172
  flatItemsSupportAutoSelect?: (data: Array<any>) => Array<any>;
@@ -176,6 +188,8 @@ export interface IListConfigItemGroup {
176
188
  getDescriptionGroupWhenNoData?: (group: any) => string | undefined;
177
189
  getButtonGroup?: (group: any) => IButton;
178
190
  getIconEmptyDataInGroup?: (group: any) => boolean;
191
+ getComponentOutletGroup?: () => Observable<LibsUiComponentsComponnentOutletComponent | any>;
192
+ getDataComponentOutletGroup?: TYPE_FUNCTION;
179
193
  ignoreCheckboxGroup?: boolean;
180
194
  classIncludeNodata?: string;
181
195
  classIncludeGroup?: string;
@@ -196,6 +210,8 @@ export interface IListConfigItemGroup {
196
210
  getExpandItem?: (group: any) => boolean;
197
211
  getBonusPaddingLeftItem?: (item: any, parentItem?: any) => number;
198
212
  getClassIncludeItemNoData?: (item: any, parentItem?: any) => string;
213
+ getComponentOutletItem?: () => Observable<LibsUiComponentsComponnentOutletComponent | any>;
214
+ getDataComponentOutletItem?: TYPE_FUNCTION;
199
215
  ignoreCheckboxItem?: boolean;
200
216
  ignoreRadioItem?: boolean;
201
217
  notChangeStateItemCheckOther?: boolean;
@@ -56,7 +56,7 @@ export declare class LibsUiComponentsListComponent implements OnInit, OnDestroy
56
56
  readonly validRequired: import("@angular/core").InputSignal<IValidRequired | undefined>;
57
57
  readonly showValidateBottom: import("@angular/core").InputSignal<boolean | undefined>;
58
58
  readonly zIndex: import("@angular/core").InputSignal<number | undefined>;
59
- readonly loadingIconSize: import("@angular/core").InputSignal<"small" | "large" | "medium" | "smaller" | undefined>;
59
+ readonly loadingIconSize: import("@angular/core").InputSignal<"large" | "medium" | "small" | "smaller" | undefined>;
60
60
  readonly templateRefSearchNoData: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
61
61
  readonly resetKeyWhenSelectAllKeyDropdown: import("@angular/core").InputSignal<boolean | undefined>;
62
62
  readonly ignoreClassDisableDefaultWhenUseKeysDisableItem: import("@angular/core").InputSignal<boolean | undefined>;
package/package.json CHANGED
@@ -1,34 +1,34 @@
1
1
  {
2
2
  "name": "@libs-ui/components-list",
3
- "version": "0.2.198",
3
+ "version": "0.2.200",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.0",
6
6
  "@angular/core": "^18.2.0",
7
- "@libs-ui/utils": "^0.2.198",
8
- "@libs-ui/components-avatar": "^0.2.198",
9
- "@libs-ui/components-badge": "^0.2.198",
10
- "@libs-ui/components-buttons-button": "^0.2.198",
11
- "@libs-ui/components-buttons-sort": "^0.2.198",
12
- "@libs-ui/components-checkbox-group": "^0.2.198",
13
- "@libs-ui/components-label": "^0.2.198",
14
- "@libs-ui/components-popover": "^0.2.198",
15
- "@libs-ui/services-http-request": "^0.2.198",
7
+ "@libs-ui/utils": "^0.2.200",
8
+ "@libs-ui/components-avatar": "^0.2.200",
9
+ "@libs-ui/components-badge": "^0.2.200",
10
+ "@libs-ui/components-buttons-button": "^0.2.200",
11
+ "@libs-ui/components-buttons-sort": "^0.2.200",
12
+ "@libs-ui/components-checkbox-group": "^0.2.200",
13
+ "@libs-ui/components-label": "^0.2.200",
14
+ "@libs-ui/components-popover": "^0.2.200",
15
+ "@libs-ui/services-http-request": "^0.2.200",
16
16
  "rxjs": "~7.8.0",
17
- "@libs-ui/interfaces-types": "^0.2.198",
18
- "@libs-ui/components-inputs-input": "^0.2.198",
19
- "@libs-ui/components-inputs-search": "^0.2.198",
20
- "@libs-ui/components-inputs-valid": "^0.2.198",
21
- "@libs-ui/services-dynamic-component": "^0.2.198",
17
+ "@libs-ui/interfaces-types": "^0.2.200",
18
+ "@libs-ui/components-inputs-input": "^0.2.200",
19
+ "@libs-ui/components-inputs-search": "^0.2.200",
20
+ "@libs-ui/components-inputs-valid": "^0.2.200",
21
+ "@libs-ui/services-dynamic-component": "^0.2.200",
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.198",
25
- "@libs-ui/components-scroll-overlay": "^0.2.198",
26
- "@libs-ui/components-spinner": "^0.2.198",
27
- "@libs-ui/icons": "^0.2.198",
28
- "@libs-ui/pipes-call-function-in-template": "^0.2.198",
29
- "@libs-ui/pipes-convert-object-to-signal": "^0.2.198",
30
- "@libs-ui/components-radio-single": "^0.2.198",
31
- "@libs-ui/components-switch": "^0.2.198"
24
+ "@libs-ui/components-checkbox-single": "^0.2.200",
25
+ "@libs-ui/components-scroll-overlay": "^0.2.200",
26
+ "@libs-ui/components-spinner": "^0.2.200",
27
+ "@libs-ui/icons": "^0.2.200",
28
+ "@libs-ui/pipes-call-function-in-template": "^0.2.200",
29
+ "@libs-ui/pipes-convert-object-to-signal": "^0.2.200",
30
+ "@libs-ui/components-radio-single": "^0.2.200",
31
+ "@libs-ui/components-switch": "^0.2.200"
32
32
  },
33
33
  "sideEffects": false,
34
34
  "module": "fesm2022/libs-ui-components-list.mjs",
@@ -50,7 +50,7 @@ export declare abstract class LibsUiComponentsListTemplatesComponentAbstract imp
50
50
  readonly disable: import("@angular/core").InputSignal<boolean | undefined>;
51
51
  readonly disableLabel: import("@angular/core").InputSignal<boolean | undefined>;
52
52
  readonly zIndex: import("@angular/core").InputSignal<number>;
53
- readonly loadingIconSize: import("@angular/core").InputSignal<"small" | "large" | "medium" | "smaller" | undefined>;
53
+ readonly loadingIconSize: import("@angular/core").InputSignal<"large" | "medium" | "small" | "smaller" | undefined>;
54
54
  readonly resetKeyWhenSelectAllKeyDropdown: import("@angular/core").InputSignal<boolean | undefined>;
55
55
  readonly ignoreClassDisableDefaultWhenUseKeysDisableItem: import("@angular/core").InputSignal<boolean | undefined>;
56
56
  readonly templateRefSearchNoData: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;