@libs-ui/components-list 0.2.10-6.2
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 +3 -0
- package/defines/list.define.d.ts +10 -0
- package/esm2022/defines/list.define.mjs +70 -0
- package/esm2022/highlight-key-search/highlight-key-search.directive.mjs +82 -0
- package/esm2022/index.mjs +4 -0
- package/esm2022/interfaces/config-item.interface.mjs +3 -0
- package/esm2022/interfaces/data-emit.interface.mjs +3 -0
- package/esm2022/interfaces/function-control-event.interface.mjs +2 -0
- package/esm2022/interfaces/index.mjs +6 -0
- package/esm2022/interfaces/tab.interface.mjs +2 -0
- package/esm2022/interfaces/templates-type.type.mjs +2 -0
- package/esm2022/libs-ui-components-list.mjs +5 -0
- package/esm2022/list.component.mjs +351 -0
- package/esm2022/pipes/check-selected-by-key.pipe.mjs +21 -0
- package/esm2022/templates/checkbox/checkbox.component.mjs +288 -0
- package/esm2022/templates/group/group.component.mjs +775 -0
- package/esm2022/templates/group/item/item.component.mjs +80 -0
- package/esm2022/templates/group/pipes/calculator-left-line-vertical-item.pipe.mjs +38 -0
- package/esm2022/templates/group/pipes/calculator-margin-left-item.pipe.mjs +40 -0
- package/esm2022/templates/group/pipes/calculator-padding-left-item.pipe.mjs +26 -0
- package/esm2022/templates/radio/radio.component.mjs +189 -0
- package/esm2022/templates/rows/rows.component.mjs +70 -0
- package/esm2022/templates/tag/tag.component.mjs +151 -0
- package/esm2022/templates/templates.component.abstract.mjs +340 -0
- package/esm2022/templates/text/text.component.mjs +238 -0
- package/fesm2022/libs-ui-components-list.mjs +2650 -0
- package/fesm2022/libs-ui-components-list.mjs.map +1 -0
- package/highlight-key-search/highlight-key-search.directive.d.ts +13 -0
- package/index.d.ts +3 -0
- package/interfaces/config-item.interface.d.ts +233 -0
- package/interfaces/data-emit.interface.d.ts +16 -0
- package/interfaces/function-control-event.interface.d.ts +15 -0
- package/interfaces/index.d.ts +5 -0
- package/interfaces/tab.interface.d.ts +4 -0
- package/interfaces/templates-type.type.d.ts +1 -0
- package/list.component.d.ts +93 -0
- package/package.json +25 -0
- package/pipes/check-selected-by-key.pipe.d.ts +7 -0
- package/templates/checkbox/checkbox.component.d.ts +22 -0
- package/templates/group/group.component.d.ts +49 -0
- package/templates/group/item/item.component.d.ts +27 -0
- package/templates/group/pipes/calculator-left-line-vertical-item.pipe.d.ts +7 -0
- package/templates/group/pipes/calculator-margin-left-item.pipe.d.ts +7 -0
- package/templates/group/pipes/calculator-padding-left-item.pipe.d.ts +7 -0
- package/templates/radio/radio.component.d.ts +21 -0
- package/templates/rows/rows.component.d.ts +23 -0
- package/templates/tag/tag.component.d.ts +17 -0
- package/templates/templates.component.abstract.d.ts +94 -0
- package/templates/text/text.component.d.ts +24 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LibsUiComponentsListHighlightKeySearchDirective implements AfterViewInit {
|
|
4
|
+
readonly isHighlight: import("@angular/core").InputSignal<boolean | undefined>;
|
|
5
|
+
readonly keySearch: import("@angular/core").InputSignal<string | undefined>;
|
|
6
|
+
readonly classHighlight: import("@angular/core").InputSignal<string>;
|
|
7
|
+
private elementRef;
|
|
8
|
+
ngAfterViewInit(): void;
|
|
9
|
+
protected handlerHighlight(element: Node): void;
|
|
10
|
+
protected checkAndReplace(node: Node): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibsUiComponentsListHighlightKeySearchDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LibsUiComponentsListHighlightKeySearchDirective, "[LibsUiComponentsListHighlightKeySearchDirective]", never, { "isHighlight": { "alias": "isHighlight"; "required": false; "isSignal": true; }; "keySearch": { "alias": "keySearch"; "required": false; "isSignal": true; }; "classHighlight": { "alias": "classHighlight"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { IAvatarConfig } from "@libs-ui/components-avatar";
|
|
2
|
+
import { IBadge } from "@libs-ui/components-badge";
|
|
3
|
+
import { IButton } from "@libs-ui/components-buttons-button";
|
|
4
|
+
import { ISort } from "@libs-ui/components-buttons-sort";
|
|
5
|
+
import { ICheckboxItem } from "@libs-ui/components-checkbox-group";
|
|
6
|
+
import { ILabel } from "@libs-ui/components-label";
|
|
7
|
+
import { IPopover, IPopoverOverlay, TYPE_POPOVER_EVENT } from "@libs-ui/components-popover";
|
|
8
|
+
import { IHttpRequestConfig } from "@libs-ui/services-http-request";
|
|
9
|
+
import { TYPE_TEMPLATE } from "./templates-type.type";
|
|
10
|
+
import { Observable } from "rxjs";
|
|
11
|
+
import { WritableSignal } from "@angular/core";
|
|
12
|
+
export interface IListConfigItem {
|
|
13
|
+
type: TYPE_TEMPLATE;
|
|
14
|
+
httpRequestData?: WritableSignal<IHttpRequestConfig>;
|
|
15
|
+
configTemplateText?: WritableSignal<IListConfigItemText>;
|
|
16
|
+
configTemplateRadio?: WritableSignal<IListConfigItemRadio>;
|
|
17
|
+
configTemplateCheckbox?: WritableSignal<IListConfigItemCheckbox>;
|
|
18
|
+
configTemplateGroup?: WritableSignal<IListConfigItemGroup>;
|
|
19
|
+
configTemplateTag?: WritableSignal<IListConfigItemTag>;
|
|
20
|
+
configDescriptionGroup?: WritableSignal<IConfigDescriptionGroup>;
|
|
21
|
+
textNoData?: string;
|
|
22
|
+
textNoDataClassInclude?: string;
|
|
23
|
+
textSearchNoData?: string;
|
|
24
|
+
autoSelectFirstItem?: boolean;
|
|
25
|
+
backgroundListCustom?: string;
|
|
26
|
+
paddingLeftItem?: boolean;
|
|
27
|
+
sort?: (items: Array<any>) => void;
|
|
28
|
+
hasIconNoData?: boolean;
|
|
29
|
+
ignoreShowDataWhenNotSearch?: boolean | undefined;
|
|
30
|
+
ignoreFixHeightShowDataWhenNotSearch?: boolean | undefined;
|
|
31
|
+
highlightTextSearchInResult?: boolean | undefined;
|
|
32
|
+
}
|
|
33
|
+
export interface IListConfigItemText {
|
|
34
|
+
fieldKey: string;
|
|
35
|
+
getValue?: (item: any) => string;
|
|
36
|
+
fieldGetImage?: string;
|
|
37
|
+
classIncludeImage?: string;
|
|
38
|
+
getImage?: (data: IDataFunctionCallInConfig) => Observable<string>;
|
|
39
|
+
getImageError?: (data: IDataFunctionCallInConfig) => Observable<string>;
|
|
40
|
+
imgTypeIcon?: boolean;
|
|
41
|
+
ignoreIconSelected?: boolean;
|
|
42
|
+
classIncludeIconSelected?: string;
|
|
43
|
+
ignoreShowFieldLabel?: boolean;
|
|
44
|
+
getHrefButton?: (item: any) => string;
|
|
45
|
+
getClassItem?: (item: any) => string;
|
|
46
|
+
getClassIncludePopover?: (item: any) => string;
|
|
47
|
+
getConfigButtonLeft?: (item: any) => IButton;
|
|
48
|
+
getClassIconLeft?: (item: any) => string;
|
|
49
|
+
getConfigHoverDanger?: (item: any) => boolean;
|
|
50
|
+
getPopover?: (item: any) => IPopover | undefined;
|
|
51
|
+
rows?: WritableSignal<Array<WritableSignal<IListConfigItemTextRow>>>;
|
|
52
|
+
classRowsWrapper?: string;
|
|
53
|
+
classRows?: string;
|
|
54
|
+
configLabelPopover?: WritableSignal<IPopoverOverlay>;
|
|
55
|
+
autoScrollToItemSelected?: boolean;
|
|
56
|
+
itemSort?: WritableSignal<ISort>;
|
|
57
|
+
actionSort?: (itemSort: ISort) => void;
|
|
58
|
+
notUseVirtualScroll?: boolean;
|
|
59
|
+
getAvatarConfig?: (item: any) => IAvatarConfig;
|
|
60
|
+
getConfigAlignStart?: (item: any) => boolean;
|
|
61
|
+
stylePaddingRightItemOther?: boolean;
|
|
62
|
+
}
|
|
63
|
+
export interface IListConfigItemTag extends IListConfigItemText {
|
|
64
|
+
fieldKey: string;
|
|
65
|
+
ignoreItemFlexWrap?: boolean;
|
|
66
|
+
classIncludeContainer?: string;
|
|
67
|
+
}
|
|
68
|
+
export interface IListConfigItemRadio {
|
|
69
|
+
fieldKey: string;
|
|
70
|
+
fieldGetImage?: string;
|
|
71
|
+
classIncludeImage?: string;
|
|
72
|
+
hasAvatarPagesSocial?: boolean;
|
|
73
|
+
hasAvatarGroupSocial?: boolean;
|
|
74
|
+
getValue?: (item: any) => string;
|
|
75
|
+
getPopover?: (item: any) => IPopover | undefined;
|
|
76
|
+
rows?: WritableSignal<Array<WritableSignal<IListConfigItemTextRow>>>;
|
|
77
|
+
classRows?: string;
|
|
78
|
+
autoScrollToItemSelected?: boolean;
|
|
79
|
+
zIndexPopover?: number;
|
|
80
|
+
getAvatarConfig?: (item: any) => IAvatarConfig;
|
|
81
|
+
getClassItem?: (item: any) => string;
|
|
82
|
+
classItemInclude?: string;
|
|
83
|
+
getImage?: (data: IDataFunctionCallInConfig) => Observable<string>;
|
|
84
|
+
getImageError?: (data: IDataFunctionCallInConfig) => Observable<string>;
|
|
85
|
+
}
|
|
86
|
+
export interface IListConfigItemCheckbox {
|
|
87
|
+
autoSelectAllItem?: boolean;
|
|
88
|
+
classListInclude?: string;
|
|
89
|
+
httpRequestAllIdSelectOrUnSelect?: WritableSignal<IHttpRequestConfig>;
|
|
90
|
+
configButtonSelectAndUndSelectItem?: WritableSignal<{
|
|
91
|
+
classInclude?: string;
|
|
92
|
+
buttonCheckAll?: IButton;
|
|
93
|
+
buttonUncheckAll?: IButton;
|
|
94
|
+
}>;
|
|
95
|
+
configCheckboxCheckAll?: WritableSignal<ICheckboxItem>;
|
|
96
|
+
classIncludeHasConfigCheckBoxAll?: string;
|
|
97
|
+
fieldKey: string;
|
|
98
|
+
getValue?: (item: any) => string;
|
|
99
|
+
getPopover?: (item: any) => IPopover;
|
|
100
|
+
getClassItem?: (item: any) => string;
|
|
101
|
+
getImage?: (data: IDataFunctionCallInConfig) => Observable<string>;
|
|
102
|
+
getImageError?: (data: IDataFunctionCallInConfig) => Observable<string>;
|
|
103
|
+
fieldGetImage?: string;
|
|
104
|
+
hasAvatarPagesSocial?: boolean;
|
|
105
|
+
hasAvatarGroupSocial?: boolean;
|
|
106
|
+
classIncludeImage?: string;
|
|
107
|
+
rows?: WritableSignal<Array<WritableSignal<IListConfigItemTextRow>>>;
|
|
108
|
+
classRowsWrapper?: string;
|
|
109
|
+
classRows?: string;
|
|
110
|
+
ignoreClickItemUnChecked?: boolean;
|
|
111
|
+
classLabelInclude?: string;
|
|
112
|
+
fieldGetLinkImageError?: string;
|
|
113
|
+
zIndexPopover?: number;
|
|
114
|
+
classItemInclude?: string;
|
|
115
|
+
getAvatarConfig?: (item: any) => IAvatarConfig;
|
|
116
|
+
classCheckboxItemInclude?: string;
|
|
117
|
+
ignoreItemWidth100?: boolean;
|
|
118
|
+
classIncludeLastViewItem?: string;
|
|
119
|
+
classInclude?: string;
|
|
120
|
+
}
|
|
121
|
+
export interface IListConfigItemTextRow {
|
|
122
|
+
classRow?: string;
|
|
123
|
+
classItemSelected?: string;
|
|
124
|
+
getValue?: (data: IDataFunctionCallInConfig) => Observable<string>;
|
|
125
|
+
classGetValue?: string;
|
|
126
|
+
classCols?: string;
|
|
127
|
+
cols?: WritableSignal<Array<WritableSignal<IListConfigItemTextCol>>>;
|
|
128
|
+
getRowStylesDynamicCols?: (item: any) => string;
|
|
129
|
+
action?: (item: any) => void;
|
|
130
|
+
getImage?: (item: IDataFunctionCallInConfig) => Observable<string>;
|
|
131
|
+
getClassImage?: (item: IDataFunctionCallInConfig) => Observable<string>;
|
|
132
|
+
getImageError?: (item: IDataFunctionCallInConfig) => Observable<string>;
|
|
133
|
+
getPopoverConfig?: (item: any) => Observable<IPopoverOverlay>;
|
|
134
|
+
getAvatarConfig?: (item: any) => IAvatarConfig;
|
|
135
|
+
}
|
|
136
|
+
export interface IDataFunctionCallInConfig {
|
|
137
|
+
value?: any;
|
|
138
|
+
item?: any;
|
|
139
|
+
otherData?: any;
|
|
140
|
+
}
|
|
141
|
+
export interface IListConfigItemTextCol {
|
|
142
|
+
getClassCol?: (item: any, index: number) => string | undefined;
|
|
143
|
+
getValue?: (data: IDataFunctionCallInConfig) => Observable<string>;
|
|
144
|
+
getPopover?: (item: any, index: number) => IPopover | undefined;
|
|
145
|
+
action?: (item: any) => void;
|
|
146
|
+
getImage?: (item: any) => Observable<string>;
|
|
147
|
+
getClassImage?: (item: any) => Observable<string>;
|
|
148
|
+
getImageError?: (item: any) => Observable<string>;
|
|
149
|
+
getConfigBadge?: (item: any, index: number) => IBadge | undefined;
|
|
150
|
+
getStylesDynamicCol?: (data: IDataFunctionCallInConfig) => Observable<string>;
|
|
151
|
+
getButton?: (item: any, index: number) => IButton | undefined;
|
|
152
|
+
getLabelSwitch?: (item: any, index: number) => ILabel | undefined;
|
|
153
|
+
getAvatarConfig?: (item: any) => IAvatarConfig;
|
|
154
|
+
}
|
|
155
|
+
export interface IListConfigItemGroup {
|
|
156
|
+
flatItemsSupportAutoSelect?: (data: Array<any>) => Array<any>;
|
|
157
|
+
fieldKey?: string;
|
|
158
|
+
isViewRadio?: boolean;
|
|
159
|
+
timeIntervalCalculatorHeight?: number;
|
|
160
|
+
configButtonSelectAndUndSelectItem?: WritableSignal<{
|
|
161
|
+
classInclude?: string;
|
|
162
|
+
buttonCheckAll?: IButton;
|
|
163
|
+
buttonUncheckAll?: IButton;
|
|
164
|
+
}>;
|
|
165
|
+
configCheckboxCheckAll?: WritableSignal<ICheckboxItem>;
|
|
166
|
+
classIncludeHasConfigCheckBoxAll?: string;
|
|
167
|
+
getLabelSearch?: (item: any) => string;
|
|
168
|
+
getLabelGroup: (group: any) => string;
|
|
169
|
+
getExpandGroup?: (group: any) => boolean;
|
|
170
|
+
getPopoverGroup?: (group: any) => string;
|
|
171
|
+
getMaxLevelGroup: (group: any) => number;
|
|
172
|
+
getDescriptionGroupWhenNoData?: (group: any) => string | undefined;
|
|
173
|
+
getButtonGroup?: (group: any) => IButton;
|
|
174
|
+
getIconEmptyDataInGroup?: (group: any) => boolean;
|
|
175
|
+
ignoreCheckboxGroup?: boolean;
|
|
176
|
+
classIncludeNodata?: string;
|
|
177
|
+
classIncludeGroup?: string;
|
|
178
|
+
ignoreRadioGroup?: boolean;
|
|
179
|
+
ignoreTextUppercaseLabelGroup?: boolean;
|
|
180
|
+
ignoreGroupLine?: boolean;
|
|
181
|
+
marginTopHasLine?: number;
|
|
182
|
+
ignoreClickLabelGroup?: boolean;
|
|
183
|
+
fieldGetItems: string;
|
|
184
|
+
fieldGetAvatarItem?: string;
|
|
185
|
+
imgTypeIcon?: boolean;
|
|
186
|
+
classImageInclude?: string;
|
|
187
|
+
isViewTree?: boolean;
|
|
188
|
+
isViewTreeJson?: boolean;
|
|
189
|
+
getLabelItem: (item: any) => string;
|
|
190
|
+
getPopoverItem?: (item: any) => IPopover | undefined;
|
|
191
|
+
actionPopoverByItem?: (item: any, event: TYPE_POPOVER_EVENT) => void;
|
|
192
|
+
getExpandItem?: (group: any) => boolean;
|
|
193
|
+
getBonusPaddingLeftItem?: (item: any, parentItem?: any) => number;
|
|
194
|
+
getClassIncludeItemNoData?: (item: any, parentItem?: any) => string;
|
|
195
|
+
ignoreCheckboxItem?: boolean;
|
|
196
|
+
ignoreRadioItem?: boolean;
|
|
197
|
+
notChangeStateItemCheckOther?: boolean;
|
|
198
|
+
searchAllLevel?: boolean;
|
|
199
|
+
emitAllItemChecked?: boolean;
|
|
200
|
+
singleSelectItem?: boolean;
|
|
201
|
+
singleSelectItemByTree?: boolean;
|
|
202
|
+
hasIconCheckSingleSelectItem?: boolean;
|
|
203
|
+
colorBlueWhenItemSelected?: boolean;
|
|
204
|
+
hasBackgroundColorWhenItemSelected?: boolean;
|
|
205
|
+
iconExpand: '' | 'left' | 'right';
|
|
206
|
+
ignoreIconExpandMarginRight?: boolean;
|
|
207
|
+
onlySelectFirstItem?: boolean;
|
|
208
|
+
ignoreChooseParentThenAutoChooseChildren?: boolean;
|
|
209
|
+
chooseChildThenAutoChooseParent?: boolean;
|
|
210
|
+
ignoreUnselectChildrenRemoveSelectParent?: boolean;
|
|
211
|
+
ignoreEmitAllItemCheckedWhenChooseChildThenAutoChooseParent?: boolean;
|
|
212
|
+
disableItemNotLastLevel?: boolean;
|
|
213
|
+
classLabelItem?: string;
|
|
214
|
+
allowDisableLabel?: boolean;
|
|
215
|
+
zIndexLabel?: number;
|
|
216
|
+
expandFirstItem?: boolean;
|
|
217
|
+
widthLabelSub24WhenNotTreeView?: boolean;
|
|
218
|
+
classIncludeItem?: string;
|
|
219
|
+
getClassIncludeItemContent?: (item: any) => string;
|
|
220
|
+
getLinkImageError?: (item: any) => Observable<string>;
|
|
221
|
+
getImage?: (item: any) => Observable<string>;
|
|
222
|
+
getAvatarConfig?: (item: any) => IAvatarConfig;
|
|
223
|
+
getIconImageClass?: (item: any) => string;
|
|
224
|
+
classIncludeLastItem?: string;
|
|
225
|
+
autoCountWhenGroupEmptyItemLevel1?: boolean;
|
|
226
|
+
ignoreChangeChildrenDisableWhenChangeParent?: boolean;
|
|
227
|
+
}
|
|
228
|
+
export interface IConfigDescriptionGroup {
|
|
229
|
+
classInclude?: string;
|
|
230
|
+
tooltipDescription?: WritableSignal<IPopoverOverlay>;
|
|
231
|
+
textDescription: string;
|
|
232
|
+
classTextDescriptionInclude?: string;
|
|
233
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TYPE_POPOVER_EVENT } from "@libs-ui/components-popover";
|
|
2
|
+
export interface IListDataEmitKey {
|
|
3
|
+
key: unknown;
|
|
4
|
+
item: any;
|
|
5
|
+
isClickManual: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface IListDataEmitMultiKey {
|
|
8
|
+
keys: Array<unknown>;
|
|
9
|
+
mapKeys: Array<IListDataEmitKey>;
|
|
10
|
+
isClickManual: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface IEmitRowsEvent {
|
|
13
|
+
event: TYPE_POPOVER_EVENT;
|
|
14
|
+
item: any;
|
|
15
|
+
action: any;
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { WritableSignal } from "@angular/core";
|
|
2
|
+
import { IBoundingClientRect } from "@libs-ui/interfaces-types";
|
|
3
|
+
export interface IListFunctionControlEvent {
|
|
4
|
+
checkIsValid: () => Promise<boolean>;
|
|
5
|
+
refresh: () => Promise<void>;
|
|
6
|
+
resetKeySelected: () => Promise<void>;
|
|
7
|
+
getRectListView: () => Promise<IBoundingClientRect>;
|
|
8
|
+
removeItems: (keys: Array<string>) => Promise<void>;
|
|
9
|
+
updateData: (data: IDataUpdateToStore) => Promise<void>;
|
|
10
|
+
setMessageError?: (message: string) => Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
export interface IDataUpdateToStore {
|
|
13
|
+
newData: WritableSignal<Array<WritableSignal<any>>>;
|
|
14
|
+
functionCustomAddDataToStore: (newData: WritableSignal<Array<WritableSignal<any>>>, store: WritableSignal<Array<WritableSignal<any>>>) => void;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TYPE_TEMPLATE = 'checkbox' | 'group' | 'radio' | 'text' | 'tag';
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit, TemplateRef } from "@angular/core";
|
|
2
|
+
import { IButton } from "@libs-ui/components-buttons-button";
|
|
3
|
+
import { IInputFunctionControlEvent } from "@libs-ui/components-inputs-input";
|
|
4
|
+
import { IInputSearchConfig } from "@libs-ui/components-inputs-search";
|
|
5
|
+
import { IValidRequired } from "@libs-ui/components-inputs-valid";
|
|
6
|
+
import { ILabel } from "@libs-ui/components-label";
|
|
7
|
+
import { IFlagMouse } from "@libs-ui/components-popover";
|
|
8
|
+
import { IPaging } from "@libs-ui/interfaces-types";
|
|
9
|
+
import { IListConfigItem, IListFunctionControlEvent } from "./interfaces";
|
|
10
|
+
import { IListDataEmitKey, IListDataEmitMultiKey } from "./interfaces/data-emit.interface";
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare class LibsUiComponentsListComponent implements OnInit, OnDestroy {
|
|
13
|
+
protected readonly ERROR_MESSAGE_EMPTY_VALID = "i18n_valid_empty_message";
|
|
14
|
+
protected disableButtonUnSelectOption: import("@angular/core").WritableSignal<boolean>;
|
|
15
|
+
protected isErrorRequired: import("@angular/core").WritableSignal<boolean>;
|
|
16
|
+
protected loading: import("@angular/core").WritableSignal<boolean>;
|
|
17
|
+
protected keySearchStore: import("@angular/core").WritableSignal<string | undefined>;
|
|
18
|
+
private onDestroy;
|
|
19
|
+
private onSearch;
|
|
20
|
+
private onRefresh;
|
|
21
|
+
private onSetHiddenItemByKey;
|
|
22
|
+
private onItemChangeUnSelect;
|
|
23
|
+
private onUpdateMultiKeySelectedGroup;
|
|
24
|
+
private onRemoveItems;
|
|
25
|
+
private onUpdateData;
|
|
26
|
+
private cleanUpEffect;
|
|
27
|
+
private componentRef?;
|
|
28
|
+
private configData;
|
|
29
|
+
private groupMultiKeySelected;
|
|
30
|
+
private functionControlInputSearch;
|
|
31
|
+
readonly hiddenInputSearch: import("@angular/core").InputSignalWithTransform<boolean, boolean | undefined>;
|
|
32
|
+
readonly dropdownTabKeyActive: import("@angular/core").InputSignal<string | undefined>;
|
|
33
|
+
readonly keySearch: import("@angular/core").InputSignal<string | undefined>;
|
|
34
|
+
readonly itemChangeUnSelect: import("@angular/core").InputSignal<any>;
|
|
35
|
+
readonly paddingLeftItem: import("@angular/core").InputSignal<boolean | undefined>;
|
|
36
|
+
readonly config: import("@angular/core").InputSignalWithTransform<IListConfigItem | undefined, IListConfigItem | undefined>;
|
|
37
|
+
readonly autoSelectedFirstItemCallOutsideBefore: import("@angular/core").InputSignal<boolean>;
|
|
38
|
+
readonly isSearchOnline: import("@angular/core").InputSignal<boolean | undefined>;
|
|
39
|
+
readonly disable: import("@angular/core").InputSignal<boolean | undefined>;
|
|
40
|
+
readonly disableLabel: import("@angular/core").InputSignal<boolean | undefined>;
|
|
41
|
+
readonly labelConfig: import("@angular/core").InputSignal<ILabel | undefined>;
|
|
42
|
+
readonly searchConfig: import("@angular/core").InputSignalWithTransform<IInputSearchConfig, IInputSearchConfig | undefined>;
|
|
43
|
+
readonly searchPadding: import("@angular/core").InputSignal<boolean | undefined>;
|
|
44
|
+
readonly dividerClassInclude: import("@angular/core").InputSignal<string | undefined>;
|
|
45
|
+
readonly hasDivider: import("@angular/core").InputSignal<boolean>;
|
|
46
|
+
readonly buttonsOther: import("@angular/core").InputSignal<IButton[] | undefined>;
|
|
47
|
+
readonly hasButtonUnSelectOption: import("@angular/core").InputSignal<boolean | undefined>;
|
|
48
|
+
readonly clickExactly: import("@angular/core").InputSignal<boolean | undefined>;
|
|
49
|
+
readonly backgroundListCustom: import("@angular/core").InputSignalWithTransform<string, string | undefined>;
|
|
50
|
+
readonly maxItemShow: import("@angular/core").InputSignal<number | undefined>;
|
|
51
|
+
readonly keySelected: import("@angular/core").InputSignal<unknown>;
|
|
52
|
+
readonly multiKeySelected: import("@angular/core").InputSignal<unknown[] | undefined>;
|
|
53
|
+
readonly keysDisableItem: import("@angular/core").InputSignal<unknown[] | undefined>;
|
|
54
|
+
readonly keysHiddenItem: import("@angular/core").InputSignal<unknown[] | undefined>;
|
|
55
|
+
readonly focusInputSearch: import("@angular/core").InputSignal<boolean | undefined>;
|
|
56
|
+
readonly skipFocusInputWhenKeySearchStoreUndefined: import("@angular/core").InputSignal<boolean | undefined>;
|
|
57
|
+
readonly functionGetItemsAutoAddList: import("@angular/core").InputSignal<(() => Array<any>) | undefined>;
|
|
58
|
+
readonly validRequired: import("@angular/core").InputSignal<IValidRequired | undefined>;
|
|
59
|
+
readonly showValidateBottom: import("@angular/core").InputSignal<boolean | undefined>;
|
|
60
|
+
readonly zIndex: import("@angular/core").InputSignal<number | undefined>;
|
|
61
|
+
readonly loadingIconSize: import("@angular/core").InputSignal<"small" | "large" | "medium" | "smaller" | undefined>;
|
|
62
|
+
readonly templateRefSearchNoData: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
|
|
63
|
+
readonly resetKeyWhenSelectAllKeyDropdown: import("@angular/core").InputSignal<boolean | undefined>;
|
|
64
|
+
readonly ignoreClassDisableDefaultWhenUseKeysDisableItem: import("@angular/core").InputSignal<boolean | undefined>;
|
|
65
|
+
readonly outSelectKey: import("@angular/core").OutputEmitterRef<IListDataEmitKey | undefined>;
|
|
66
|
+
readonly outSelectMultiKey: import("@angular/core").OutputEmitterRef<IListDataEmitMultiKey | undefined>;
|
|
67
|
+
readonly outUnSelectMultiKey: import("@angular/core").OutputEmitterRef<unknown[]>;
|
|
68
|
+
readonly outClickButtonOther: import("@angular/core").OutputEmitterRef<IButton>;
|
|
69
|
+
readonly outFieldKey: import("@angular/core").OutputEmitterRef<string | undefined>;
|
|
70
|
+
readonly outChangeView: import("@angular/core").OutputEmitterRef<any[]>;
|
|
71
|
+
readonly outLoading: import("@angular/core").OutputEmitterRef<boolean>;
|
|
72
|
+
readonly outFunctionsControl: import("@angular/core").OutputEmitterRef<IListFunctionControlEvent>;
|
|
73
|
+
readonly outChangStageFlagMousePopover: import("@angular/core").OutputEmitterRef<IFlagMouse>;
|
|
74
|
+
readonly outLoadItemsComplete: import("@angular/core").OutputEmitterRef<{
|
|
75
|
+
items: Array<any>;
|
|
76
|
+
paging?: IPaging;
|
|
77
|
+
}>;
|
|
78
|
+
protected listViewElementRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
79
|
+
protected contentElementRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
80
|
+
private dynamicComponentService;
|
|
81
|
+
constructor();
|
|
82
|
+
ngOnInit(): void;
|
|
83
|
+
protected handlerSearch(keySearch: string): void;
|
|
84
|
+
protected handlerRemoveKeySelected(): Promise<void>;
|
|
85
|
+
protected handlerClickButtonOther(button: IButton): void;
|
|
86
|
+
protected handlerFunctionControlInputSearch(event: IInputFunctionControlEvent): void;
|
|
87
|
+
private checkIsValid;
|
|
88
|
+
private refresh;
|
|
89
|
+
private cloneConfig;
|
|
90
|
+
ngOnDestroy(): void;
|
|
91
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibsUiComponentsListComponent, never>;
|
|
92
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibsUiComponentsListComponent, "libs_ui-components-list", never, { "hiddenInputSearch": { "alias": "hiddenInputSearch"; "required": false; "isSignal": true; }; "dropdownTabKeyActive": { "alias": "dropdownTabKeyActive"; "required": false; "isSignal": true; }; "keySearch": { "alias": "keySearch"; "required": false; "isSignal": true; }; "itemChangeUnSelect": { "alias": "itemChangeUnSelect"; "required": false; "isSignal": true; }; "paddingLeftItem": { "alias": "paddingLeftItem"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "autoSelectedFirstItemCallOutsideBefore": { "alias": "autoSelectedFirstItemCallOutsideBefore"; "required": false; "isSignal": true; }; "isSearchOnline": { "alias": "isSearchOnline"; "required": false; "isSignal": true; }; "disable": { "alias": "disable"; "required": false; "isSignal": true; }; "disableLabel": { "alias": "disableLabel"; "required": false; "isSignal": true; }; "labelConfig": { "alias": "labelConfig"; "required": false; "isSignal": true; }; "searchConfig": { "alias": "searchConfig"; "required": false; "isSignal": true; }; "searchPadding": { "alias": "searchPadding"; "required": false; "isSignal": true; }; "dividerClassInclude": { "alias": "dividerClassInclude"; "required": false; "isSignal": true; }; "hasDivider": { "alias": "hasDivider"; "required": false; "isSignal": true; }; "buttonsOther": { "alias": "buttonsOther"; "required": false; "isSignal": true; }; "hasButtonUnSelectOption": { "alias": "hasButtonUnSelectOption"; "required": false; "isSignal": true; }; "clickExactly": { "alias": "clickExactly"; "required": false; "isSignal": true; }; "backgroundListCustom": { "alias": "backgroundListCustom"; "required": false; "isSignal": true; }; "maxItemShow": { "alias": "maxItemShow"; "required": false; "isSignal": true; }; "keySelected": { "alias": "keySelected"; "required": false; "isSignal": true; }; "multiKeySelected": { "alias": "multiKeySelected"; "required": false; "isSignal": true; }; "keysDisableItem": { "alias": "keysDisableItem"; "required": false; "isSignal": true; }; "keysHiddenItem": { "alias": "keysHiddenItem"; "required": false; "isSignal": true; }; "focusInputSearch": { "alias": "focusInputSearch"; "required": false; "isSignal": true; }; "skipFocusInputWhenKeySearchStoreUndefined": { "alias": "skipFocusInputWhenKeySearchStoreUndefined"; "required": false; "isSignal": true; }; "functionGetItemsAutoAddList": { "alias": "functionGetItemsAutoAddList"; "required": false; "isSignal": true; }; "validRequired": { "alias": "validRequired"; "required": false; "isSignal": true; }; "showValidateBottom": { "alias": "showValidateBottom"; "required": false; "isSignal": true; }; "zIndex": { "alias": "zIndex"; "required": false; "isSignal": true; }; "loadingIconSize": { "alias": "loadingIconSize"; "required": false; "isSignal": true; }; "templateRefSearchNoData": { "alias": "templateRefSearchNoData"; "required": false; "isSignal": true; }; "resetKeyWhenSelectAllKeyDropdown": { "alias": "resetKeyWhenSelectAllKeyDropdown"; "required": false; "isSignal": true; }; "ignoreClassDisableDefaultWhenUseKeysDisableItem": { "alias": "ignoreClassDisableDefaultWhenUseKeysDisableItem"; "required": false; "isSignal": true; }; }, { "outSelectKey": "outSelectKey"; "outSelectMultiKey": "outSelectMultiKey"; "outUnSelectMultiKey": "outUnSelectMultiKey"; "outClickButtonOther": "outClickButtonOther"; "outFieldKey": "outFieldKey"; "outChangeView": "outChangeView"; "outLoading": "outLoading"; "outFunctionsControl": "outFunctionsControl"; "outChangStageFlagMousePopover": "outChangStageFlagMousePopover"; "outLoadItemsComplete": "outLoadItemsComplete"; }, never, never, true, never>;
|
|
93
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@libs-ui/components-list",
|
|
3
|
+
"version": "0.2.106.2",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^18.2.0",
|
|
6
|
+
"@angular/core": "^18.2.0"
|
|
7
|
+
},
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"module": "fesm2022/libs-ui-components-list.mjs",
|
|
10
|
+
"typings": "index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
"./package.json": {
|
|
13
|
+
"default": "./package.json"
|
|
14
|
+
},
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./index.d.ts",
|
|
17
|
+
"esm2022": "./esm2022/libs-ui-components-list.mjs",
|
|
18
|
+
"esm": "./esm2022/libs-ui-components-list.mjs",
|
|
19
|
+
"default": "./fesm2022/libs-ui-components-list.mjs"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"tslib": "^2.3.0"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LibsUiCheckSelectedByKeyPipe implements PipeTransform {
|
|
4
|
+
transform(value: any, multiKeys: Array<any> | undefined, length: number | undefined): boolean;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibsUiCheckSelectedByKeyPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<LibsUiCheckSelectedByKeyPipe, "LibsUiCheckSelectedByKeyPipe", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OnInit, WritableSignal } from '@angular/core';
|
|
2
|
+
import { LibsUiComponentsListTemplatesComponentAbstract } from '../templates.component.abstract';
|
|
3
|
+
import { IListConfigItemCheckbox } from './../../interfaces/config-item.interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class LibsUiComponentsListCheckboxComponent extends LibsUiComponentsListTemplatesComponentAbstract implements OnInit {
|
|
6
|
+
protected configTemplateCheckbox: WritableSignal<IListConfigItemCheckbox | undefined>;
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
protected handlerSelect(isSelectAll: boolean): Promise<void>;
|
|
9
|
+
private processHandlerSelectData;
|
|
10
|
+
private getIdsByService;
|
|
11
|
+
protected handlerScrollBottom(): void;
|
|
12
|
+
protected processSearch(): void;
|
|
13
|
+
protected processKeyChangeUnSelect(item: any): void;
|
|
14
|
+
protected handlerChange(event: any, item: any, ignoreDisable?: boolean, isClickManual?: boolean): void;
|
|
15
|
+
private checkAndEmitMultiKeySelected;
|
|
16
|
+
private emitSelectMultiKey;
|
|
17
|
+
protected processData(replace?: boolean): void;
|
|
18
|
+
protected autoSelectFirstItem(items: Array<WritableSignal<any>>): void;
|
|
19
|
+
protected getLengthItem(): number;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibsUiComponentsListCheckboxComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibsUiComponentsListCheckboxComponent, "libs_ui-components-list-templates_checkbox", never, {}, {}, never, never, true, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { OnInit, WritableSignal } from '@angular/core';
|
|
2
|
+
import { IButton } from '@libs-ui/components-buttons-button';
|
|
3
|
+
import { IListConfigItemGroup } from '../../interfaces/config-item.interface';
|
|
4
|
+
import { LibsUiComponentsListTemplatesComponentAbstract } from '../templates.component.abstract';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class LibsUiComponentsListGroupComponent extends LibsUiComponentsListTemplatesComponentAbstract implements OnInit {
|
|
7
|
+
protected configTemplateGroup: WritableSignal<IListConfigItemGroup | undefined>;
|
|
8
|
+
protected level: WritableSignal<number>;
|
|
9
|
+
protected keysChecked: WritableSignal<string[]>;
|
|
10
|
+
protected keysStillOtherOptions: WritableSignal<string[]>;
|
|
11
|
+
protected totalItem: WritableSignal<number>;
|
|
12
|
+
protected totalItemChecked: WritableSignal<number>;
|
|
13
|
+
protected calculatorHeighItemSuccess: WritableSignal<boolean>;
|
|
14
|
+
protected keyFetch: WritableSignal<string>;
|
|
15
|
+
private readonly PATTERN_FAKE_ID;
|
|
16
|
+
private mappingItemsChecked;
|
|
17
|
+
private selectFirstItem;
|
|
18
|
+
private firstItemSelected;
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
protected handlerCheckedOrUnCheckedAll(checked: boolean): void;
|
|
21
|
+
protected checkedGroupItems(items?: Array<WritableSignal<any>>, parent?: WritableSignal<any>): void;
|
|
22
|
+
protected handlerClickButtonGroup(buttonInGroup: IButton, item: any): void;
|
|
23
|
+
protected handlerToggleExpand(e: unknown, item: WritableSignal<any>, acceptEvent?: boolean): void;
|
|
24
|
+
protected handlerChangeView(): void;
|
|
25
|
+
protected processKeyChangeUnSelect(item: WritableSignal<any>): void;
|
|
26
|
+
protected handlerChangeItemChecked(item: any): void;
|
|
27
|
+
protected handlerChangeChecked(checked: boolean, item: WritableSignal<any>, isClickManual: boolean, isCheckedByDefaultKey?: boolean): void;
|
|
28
|
+
private getItemsOfGroup;
|
|
29
|
+
private setKeysStillOtherOptions;
|
|
30
|
+
private setKeysCheckedByMappingChecked;
|
|
31
|
+
private emitMultiKeyChecked;
|
|
32
|
+
private recursivelyCheckedParentByTree;
|
|
33
|
+
private setCheckCheckedItemsParent;
|
|
34
|
+
private setCheckCheckedItemsChild;
|
|
35
|
+
private removeCheckedItemsChild;
|
|
36
|
+
protected processSearch(): void;
|
|
37
|
+
protected processData(): void;
|
|
38
|
+
private refreshView;
|
|
39
|
+
private expandAllItemsInGroup;
|
|
40
|
+
private convertDataByGroupInItem;
|
|
41
|
+
private setDisplayItem;
|
|
42
|
+
private filterItemsDisplay;
|
|
43
|
+
protected getLengthItem(): number;
|
|
44
|
+
private getLengthAllGroup;
|
|
45
|
+
protected getHeightGroupHasLine(): number;
|
|
46
|
+
protected buildValueByConfig(item: any): string;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibsUiComponentsListGroupComponent, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibsUiComponentsListGroupComponent, "libs_ui-components-list-templates_group", never, {}, {}, never, never, true, never>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { WritableSignal } from '@angular/core';
|
|
2
|
+
import { IFlagMouse, TYPE_POPOVER_EVENT } from '@libs-ui/components-popover';
|
|
3
|
+
import { IListConfigItem, IListConfigItemGroup } from '../../../interfaces/config-item.interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class LibsUiComponentsListGroupItemComponent {
|
|
6
|
+
readonly items: import("@angular/core").InputSignal<WritableSignal<any>[]>;
|
|
7
|
+
readonly configTemplateGroup: import("@angular/core").InputSignal<IListConfigItemGroup | undefined>;
|
|
8
|
+
readonly keySearch: import("@angular/core").InputSignal<string | undefined>;
|
|
9
|
+
readonly fieldKey: import("@angular/core").InputSignal<string>;
|
|
10
|
+
readonly keysChecked: import("@angular/core").InputSignal<string[]>;
|
|
11
|
+
readonly keysDisableItem: import("@angular/core").InputSignal<any[] | undefined>;
|
|
12
|
+
readonly parentItem: import("@angular/core").InputSignal<any>;
|
|
13
|
+
readonly disable: import("@angular/core").InputSignal<boolean | undefined>;
|
|
14
|
+
readonly disableLabel: import("@angular/core").InputSignal<boolean | undefined>;
|
|
15
|
+
readonly config: import("@angular/core").InputSignal<IListConfigItem | undefined>;
|
|
16
|
+
readonly keysStillOtherOptions: import("@angular/core").InputSignal<string[]>;
|
|
17
|
+
readonly outChangeView: import("@angular/core").OutputEmitterRef<boolean>;
|
|
18
|
+
readonly outChange: import("@angular/core").OutputEmitterRef<any>;
|
|
19
|
+
readonly outChangStageFlagMousePopover: import("@angular/core").OutputEmitterRef<IFlagMouse>;
|
|
20
|
+
protected handlerToggleExpand(e: Event, item: WritableSignal<any>): void;
|
|
21
|
+
protected handlerChangeView(expand: boolean): void;
|
|
22
|
+
protected handlerChangeChecked(item: any, field_key?: string, disable?: boolean): void;
|
|
23
|
+
protected handlerEventPopover(event: TYPE_POPOVER_EVENT, item: any): void;
|
|
24
|
+
protected handlerChangStageFlagMouse(flag: IFlagMouse): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibsUiComponentsListGroupItemComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibsUiComponentsListGroupItemComponent, "libs_ui-components-list-templates_group-item", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "configTemplateGroup": { "alias": "configTemplateGroup"; "required": false; "isSignal": true; }; "keySearch": { "alias": "keySearch"; "required": false; "isSignal": true; }; "fieldKey": { "alias": "fieldKey"; "required": false; "isSignal": true; }; "keysChecked": { "alias": "keysChecked"; "required": false; "isSignal": true; }; "keysDisableItem": { "alias": "keysDisableItem"; "required": false; "isSignal": true; }; "parentItem": { "alias": "parentItem"; "required": false; "isSignal": true; }; "disable": { "alias": "disable"; "required": false; "isSignal": true; }; "disableLabel": { "alias": "disableLabel"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "keysStillOtherOptions": { "alias": "keysStillOtherOptions"; "required": false; "isSignal": true; }; }, { "outChangeView": "outChangeView"; "outChange": "outChange"; "outChangStageFlagMousePopover": "outChangStageFlagMousePopover"; }, never, never, true, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LibsUiComponentsListGroupCalculatorLeftLineVerticalItemPipe implements PipeTransform {
|
|
4
|
+
transform(level: number, maxLevel: number, isTreeView?: boolean, isTreeViewJson?: boolean, hasIcon?: boolean): number;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibsUiComponentsListGroupCalculatorLeftLineVerticalItemPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<LibsUiComponentsListGroupCalculatorLeftLineVerticalItemPipe, "LibsUiComponentsListGroupCalculatorLeftLineVerticalItemPipe", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LibsUiComponentsListGroupCalculatorMarginLeftItemPipe implements PipeTransform {
|
|
4
|
+
transform(level: number, maxLevel: number, isTreeView?: boolean, isViewTreeJson?: boolean, hasIcon?: boolean, isViewLabelEmpty?: boolean): number;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibsUiComponentsListGroupCalculatorMarginLeftItemPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<LibsUiComponentsListGroupCalculatorMarginLeftItemPipe, "LibsUiComponentsListGroupCalculatorMarginLeftItemPipe", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LibsUiComponentsListGroupCalculatorPaddingLeftItemPipe implements PipeTransform {
|
|
4
|
+
transform(level: number, maxLevel: number, isTreeView?: boolean, isTreeViewJson?: boolean, hasChild?: boolean): number;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibsUiComponentsListGroupCalculatorPaddingLeftItemPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<LibsUiComponentsListGroupCalculatorPaddingLeftItemPipe, "LibsUiComponentsListGroupCalculatorPaddingLeftItemPipe", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OnInit, WritableSignal } from '@angular/core';
|
|
2
|
+
import { VirtualScrollerComponent } from '@iharbeck/ngx-virtual-scroller';
|
|
3
|
+
import { LibsUiComponentsListTemplatesComponentAbstract } from '../templates.component.abstract';
|
|
4
|
+
import { IListConfigItemRadio } from './../../interfaces/config-item.interface';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class LibsUiComponentsListRadioComponent extends LibsUiComponentsListTemplatesComponentAbstract implements OnInit {
|
|
7
|
+
protected configTemplateRadio: WritableSignal<IListConfigItemRadio | undefined>;
|
|
8
|
+
protected readonly virtualScrollerComponent: import("@angular/core").Signal<VirtualScrollerComponent | undefined>;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
protected handlerScrollBottom(): void;
|
|
11
|
+
protected processSearch(): void;
|
|
12
|
+
protected processKeyChangeUnSelect(item: any): void;
|
|
13
|
+
protected handlerChange(event: any, item: any, ignoreDisable?: boolean, isClickManual?: boolean): void;
|
|
14
|
+
protected processData(replace?: boolean): void;
|
|
15
|
+
private scrollToItemSelected;
|
|
16
|
+
protected autoSelectFirstItem(items: Array<any>): void;
|
|
17
|
+
protected emitKeySelectedDefaultIfExistItem(items: Array<any>): void;
|
|
18
|
+
protected getLengthItem(): number;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibsUiComponentsListRadioComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibsUiComponentsListRadioComponent, "libs_ui-components-list-templates_radio", never, {}, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { WritableSignal } from "@angular/core";
|
|
2
|
+
import { IFlagMouse, TYPE_POPOVER_EVENT } from "@libs-ui/components-popover";
|
|
3
|
+
import { Observable } from "rxjs";
|
|
4
|
+
import { IEmitRowsEvent, IListConfigItemCheckbox, IListConfigItemText, IListConfigItemTextRow } from "../../interfaces";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class LibsUiComponentsListRowsComponent {
|
|
7
|
+
protected popoverIcon: WritableSignal<string>;
|
|
8
|
+
protected configItemTextRows: WritableSignal<WritableSignal<IListConfigItemTextRow>[]>;
|
|
9
|
+
readonly configTemplate: import("@angular/core").InputSignal<IListConfigItemText | IListConfigItemCheckbox>;
|
|
10
|
+
readonly item: import("@angular/core").InputSignal<any>;
|
|
11
|
+
readonly keySelected: import("@angular/core").InputSignal<unknown>;
|
|
12
|
+
readonly fieldKey: import("@angular/core").InputSignal<string>;
|
|
13
|
+
readonly zIndex: import("@angular/core").InputSignalWithTransform<number, number>;
|
|
14
|
+
readonly outChangStageFlagMousePopover: import("@angular/core").OutputEmitterRef<IFlagMouse>;
|
|
15
|
+
readonly outEvent: import("@angular/core").OutputEmitterRef<IEmitRowsEvent>;
|
|
16
|
+
constructor();
|
|
17
|
+
afterViewInit(): void;
|
|
18
|
+
protected handlerSelectItem(event: TYPE_POPOVER_EVENT, item: any, action: any): void;
|
|
19
|
+
protected handlerErrorImage(event: Event, functionGetImageError?: (item: any) => Observable<string>): Promise<void>;
|
|
20
|
+
protected handlerChangStageFlagMouse(flag: IFlagMouse): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibsUiComponentsListRowsComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibsUiComponentsListRowsComponent, "libs_ui-components-list-templates_rows", never, { "configTemplate": { "alias": "configTemplate"; "required": true; "isSignal": true; }; "item": { "alias": "item"; "required": false; "isSignal": true; }; "keySelected": { "alias": "keySelected"; "required": false; "isSignal": true; }; "fieldKey": { "alias": "fieldKey"; "required": false; "isSignal": true; }; "zIndex": { "alias": "zIndex"; "required": false; "isSignal": true; }; }, { "outChangStageFlagMousePopover": "outChangStageFlagMousePopover"; "outEvent": "outEvent"; }, never, never, true, never>;
|
|
23
|
+
}
|