@libs-ui/components-list 0.2.55 → 0.2.57
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/defines/list.define.d.ts +7 -4
- package/esm2022/defines/list.define.mjs +8 -5
- package/esm2022/interfaces/config-item.interface.mjs +1 -1
- package/esm2022/interfaces/function-control-event.interface.mjs +1 -1
- package/esm2022/list.component.mjs +38 -40
- package/esm2022/templates/checkbox/checkbox.component.mjs +287 -0
- package/esm2022/templates/radio/radio.component.mjs +189 -0
- package/esm2022/templates/rows/rows.component.mjs +3 -3
- package/esm2022/templates/tag/tag.component.mjs +151 -0
- package/esm2022/templates/templates.component.abstract.mjs +19 -21
- package/esm2022/templates/text/text.component.mjs +9 -10
- package/fesm2022/libs-ui-components-list.mjs +661 -80
- package/fesm2022/libs-ui-components-list.mjs.map +1 -1
- package/interfaces/config-item.interface.d.ts +22 -20
- package/interfaces/function-control-event.interface.d.ts +6 -0
- package/list.component.d.ts +6 -6
- package/package.json +1 -1
- package/templates/checkbox/checkbox.component.d.ts +22 -0
- package/templates/radio/radio.component.d.ts +21 -0
- package/templates/rows/rows.component.d.ts +3 -3
- package/templates/tag/tag.component.d.ts +17 -0
- package/templates/templates.component.abstract.d.ts +8 -7
- package/templates/text/text.component.d.ts +3 -3
|
@@ -9,14 +9,14 @@ 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
|
-
export interface
|
|
12
|
+
export interface IListConfigItem {
|
|
13
13
|
type: TYPE_TEMPLATE;
|
|
14
14
|
httpRequestData?: IHttpRequestConfig;
|
|
15
|
-
configTemplateText?:
|
|
16
|
-
configTemplateRadio?:
|
|
17
|
-
configTemplateCheckbox?:
|
|
18
|
-
configTemplateGroup?:
|
|
19
|
-
configTemplateTag?:
|
|
15
|
+
configTemplateText?: IListConfigItemText;
|
|
16
|
+
configTemplateRadio?: IListConfigItemRadio;
|
|
17
|
+
configTemplateCheckbox?: IListConfigItemCheckbox;
|
|
18
|
+
configTemplateGroup?: IListConfigItemGroup;
|
|
19
|
+
configTemplateTag?: IListConfigItemTag;
|
|
20
20
|
configDescriptionGroup?: IConfigDescriptionGroup;
|
|
21
21
|
textNoData?: string;
|
|
22
22
|
textNoDataClassInclude?: string;
|
|
@@ -30,7 +30,7 @@ export interface IListViewConfigItem {
|
|
|
30
30
|
ignoreFixHeightShowDataWhenNotSearch?: boolean | undefined;
|
|
31
31
|
highlightTextSearchInResult?: boolean | undefined;
|
|
32
32
|
}
|
|
33
|
-
export interface
|
|
33
|
+
export interface IListConfigItemText {
|
|
34
34
|
fieldKey: string;
|
|
35
35
|
getValue?: (item: any) => string;
|
|
36
36
|
fieldGetImage?: string;
|
|
@@ -48,7 +48,7 @@ export interface IListViewConfigItemText {
|
|
|
48
48
|
getClassIconLeft?: (item: any) => string;
|
|
49
49
|
getConfigHoverDanger?: (item: any) => boolean;
|
|
50
50
|
getPopover?: (item: any) => IPopover | undefined;
|
|
51
|
-
rows?: Array<
|
|
51
|
+
rows?: Array<IListConfigItemTextRow>;
|
|
52
52
|
classRowsWrapper?: string;
|
|
53
53
|
classRows?: string;
|
|
54
54
|
configLabelPopover?: IPopoverOverlay;
|
|
@@ -60,12 +60,12 @@ export interface IListViewConfigItemText {
|
|
|
60
60
|
getConfigAlignStart?: (item: any) => boolean;
|
|
61
61
|
stylePaddingRightItemOther?: boolean;
|
|
62
62
|
}
|
|
63
|
-
export interface
|
|
63
|
+
export interface IListConfigItemTag extends IListConfigItemText {
|
|
64
64
|
fieldKey: string;
|
|
65
65
|
ignoreItemFlexWrap?: boolean;
|
|
66
66
|
classIncludeContainer?: string;
|
|
67
67
|
}
|
|
68
|
-
export interface
|
|
68
|
+
export interface IListConfigItemRadio {
|
|
69
69
|
fieldKey: string;
|
|
70
70
|
fieldGetImage?: string;
|
|
71
71
|
classIncludeImage?: string;
|
|
@@ -73,15 +73,17 @@ export interface IListViewConfigItemRadio {
|
|
|
73
73
|
hasAvatarGroupSocial?: boolean;
|
|
74
74
|
getValue?: (item: any) => string;
|
|
75
75
|
getPopover?: (item: any) => IPopover | undefined;
|
|
76
|
-
rows?: Array<
|
|
76
|
+
rows?: Array<IListConfigItemTextRow>;
|
|
77
77
|
classRows?: string;
|
|
78
78
|
autoScrollToItemSelected?: boolean;
|
|
79
79
|
zIndexPopover?: number;
|
|
80
80
|
getAvatarConfig?: (item: any) => IAvatarConfig;
|
|
81
81
|
getClassItem?: (item: any) => string;
|
|
82
82
|
classItemInclude?: string;
|
|
83
|
+
getImage?: (data: IDataFunctionCallInConfig) => Observable<string>;
|
|
84
|
+
getImageError?: (data: IDataFunctionCallInConfig) => Observable<string>;
|
|
83
85
|
}
|
|
84
|
-
export interface
|
|
86
|
+
export interface IListConfigItemCheckbox {
|
|
85
87
|
autoSelectAllItem?: boolean;
|
|
86
88
|
classListInclude?: string;
|
|
87
89
|
httpRequestAllIdSelectOrUnSelect?: IHttpRequestConfig;
|
|
@@ -102,7 +104,7 @@ export interface IListViewConfigItemCheckbox {
|
|
|
102
104
|
hasAvatarPagesSocial?: boolean;
|
|
103
105
|
hasAvatarGroupSocial?: boolean;
|
|
104
106
|
classIncludeImage?: string;
|
|
105
|
-
rows?: Array<
|
|
107
|
+
rows?: Array<IListConfigItemTextRow>;
|
|
106
108
|
classRowsWrapper?: string;
|
|
107
109
|
classRows?: string;
|
|
108
110
|
ignoreClickItemUnChecked?: boolean;
|
|
@@ -116,14 +118,14 @@ export interface IListViewConfigItemCheckbox {
|
|
|
116
118
|
classIncludeLastViewItem?: string;
|
|
117
119
|
classInclude?: string;
|
|
118
120
|
}
|
|
119
|
-
interface
|
|
121
|
+
interface IListConfigItemTextRow {
|
|
120
122
|
classRow?: string;
|
|
121
123
|
classItemSelected?: string;
|
|
122
124
|
getValue?: (data: IDataFunctionCallInConfig) => Observable<string>;
|
|
123
125
|
classGetValue?: string;
|
|
124
126
|
classCols?: string;
|
|
125
127
|
getRowStylesDynamicCols?: (item: any) => string;
|
|
126
|
-
cols?: Array<
|
|
128
|
+
cols?: Array<IListConfigItemTextCol>;
|
|
127
129
|
action?: (item: any) => void;
|
|
128
130
|
getImage?: (item: IDataFunctionCallInConfig) => Observable<string>;
|
|
129
131
|
getClassImage?: (item: IDataFunctionCallInConfig) => Observable<string>;
|
|
@@ -136,11 +138,11 @@ export interface IDataFunctionCallInConfig {
|
|
|
136
138
|
item?: any;
|
|
137
139
|
otherData?: any;
|
|
138
140
|
}
|
|
139
|
-
export interface
|
|
140
|
-
cols?: WritableSignal<Array<WritableSignal<
|
|
141
|
+
export interface IListConfigItemTextRowSignal extends Omit<IListConfigItemTextRow, 'cols'> {
|
|
142
|
+
cols?: WritableSignal<Array<WritableSignal<IListConfigItemTextCol>>>;
|
|
141
143
|
}
|
|
142
|
-
export interface
|
|
143
|
-
|
|
144
|
+
export interface IListConfigItemTextCol {
|
|
145
|
+
getClassCol?: (item: any, index: number) => string | undefined;
|
|
144
146
|
getValue?: (data: IDataFunctionCallInConfig) => Observable<string>;
|
|
145
147
|
getPopover?: (item: any, index: number) => IPopover | undefined;
|
|
146
148
|
action?: (item: any) => void;
|
|
@@ -153,7 +155,7 @@ export interface IListViewConfigItemTextCol {
|
|
|
153
155
|
getLabelSwitch?: (item: any, index: number) => ILabel | undefined;
|
|
154
156
|
getAvatarConfig?: (item: any) => IAvatarConfig;
|
|
155
157
|
}
|
|
156
|
-
export interface
|
|
158
|
+
export interface IListConfigItemGroup {
|
|
157
159
|
flatItemsSupportAutoSelect?: (data: Array<any>) => Array<any>;
|
|
158
160
|
fieldKey?: string;
|
|
159
161
|
isViewRadio?: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { WritableSignal } from "@angular/core";
|
|
1
2
|
import { IBoundingClientRect } from "@libs-ui/interfaces-types";
|
|
2
3
|
export interface IListFunctionControlEvent {
|
|
3
4
|
checkIsValid: () => Promise<boolean>;
|
|
@@ -5,5 +6,10 @@ export interface IListFunctionControlEvent {
|
|
|
5
6
|
resetKeySelected: () => Promise<void>;
|
|
6
7
|
getRectListView: () => Promise<IBoundingClientRect>;
|
|
7
8
|
removeItems: (keys: Array<string>) => Promise<void>;
|
|
9
|
+
updateData: (data: IDataUpdateToStore) => Promise<void>;
|
|
8
10
|
setMessageError?: (message: string) => Promise<void>;
|
|
9
11
|
}
|
|
12
|
+
export interface IDataUpdateToStore {
|
|
13
|
+
newData: Array<any>;
|
|
14
|
+
functionCustomAddDataToStore: (newData: Array<any>, store: WritableSignal<Array<WritableSignal<any>>>) => void;
|
|
15
|
+
}
|
package/list.component.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { IValidRequired } from "@libs-ui/components-inputs-valid";
|
|
|
6
6
|
import { ILabel } from "@libs-ui/components-label";
|
|
7
7
|
import { IFlagMouse } from "@libs-ui/components-popover";
|
|
8
8
|
import { IPaging } from "@libs-ui/interfaces-types";
|
|
9
|
-
import { IListFunctionControlEvent,
|
|
9
|
+
import { IListFunctionControlEvent, IListConfigItem } from "./interfaces";
|
|
10
10
|
import { IListDataEmitKey, IListDataEmitMultiKey } from "./interfaces/data-emit.interface";
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare class LibsUiComponentsListComponent implements OnInit, OnDestroy {
|
|
@@ -19,10 +19,10 @@ export declare class LibsUiComponentsListComponent implements OnInit, OnDestroy
|
|
|
19
19
|
private onSearch;
|
|
20
20
|
private onRefresh;
|
|
21
21
|
private onSetHiddenItemByKey;
|
|
22
|
-
private onSetDataStore;
|
|
23
22
|
private onItemChangeUnSelect;
|
|
24
23
|
private onUpdateMultiKeySelectedGroup;
|
|
25
24
|
private onRemoveItems;
|
|
25
|
+
private onUpdateData;
|
|
26
26
|
private componentRef?;
|
|
27
27
|
private configData;
|
|
28
28
|
private groupMultiKeySelected;
|
|
@@ -32,7 +32,7 @@ export declare class LibsUiComponentsListComponent implements OnInit, OnDestroy
|
|
|
32
32
|
readonly keySearch: import("@angular/core").InputSignal<string | undefined>;
|
|
33
33
|
readonly itemChangeUnSelect: import("@angular/core").InputSignal<any>;
|
|
34
34
|
readonly paddingLeftItem: import("@angular/core").InputSignal<boolean | undefined>;
|
|
35
|
-
readonly config: import("@angular/core").InputSignal<
|
|
35
|
+
readonly config: import("@angular/core").InputSignal<IListConfigItem | undefined>;
|
|
36
36
|
readonly isSearchOnline: import("@angular/core").InputSignal<boolean | undefined>;
|
|
37
37
|
readonly disable: import("@angular/core").InputSignal<boolean | undefined>;
|
|
38
38
|
readonly disableLabel: import("@angular/core").InputSignal<boolean | undefined>;
|
|
@@ -52,7 +52,6 @@ export declare class LibsUiComponentsListComponent implements OnInit, OnDestroy
|
|
|
52
52
|
readonly keysHiddenItem: import("@angular/core").InputSignal<unknown[] | undefined>;
|
|
53
53
|
readonly focusInputSearch: import("@angular/core").InputSignal<boolean | undefined>;
|
|
54
54
|
readonly skipFocusInputWhenKeySearchStoreUndefined: import("@angular/core").InputSignal<boolean | undefined>;
|
|
55
|
-
readonly functionCustomAddDataToStore: import("@angular/core").InputSignal<((data: any, store: any) => void) | undefined>;
|
|
56
55
|
readonly functionGetItemsAutoAddList: import("@angular/core").InputSignal<(() => Array<any>) | undefined>;
|
|
57
56
|
readonly validRequired: import("@angular/core").InputSignal<IValidRequired | undefined>;
|
|
58
57
|
readonly showValidateBottom: import("@angular/core").InputSignal<boolean | undefined>;
|
|
@@ -65,7 +64,7 @@ export declare class LibsUiComponentsListComponent implements OnInit, OnDestroy
|
|
|
65
64
|
readonly outSelectMultiKey: import("@angular/core").OutputEmitterRef<IListDataEmitMultiKey | undefined>;
|
|
66
65
|
readonly outUnSelectMultiKey: import("@angular/core").OutputEmitterRef<unknown[]>;
|
|
67
66
|
readonly outClickButtonOther: import("@angular/core").OutputEmitterRef<IButton>;
|
|
68
|
-
readonly outFieldKey: import("@angular/core").OutputEmitterRef<
|
|
67
|
+
readonly outFieldKey: import("@angular/core").OutputEmitterRef<string | undefined>;
|
|
69
68
|
readonly outChangeView: import("@angular/core").OutputEmitterRef<any[]>;
|
|
70
69
|
readonly outLoading: import("@angular/core").OutputEmitterRef<boolean>;
|
|
71
70
|
readonly outFunctionsControl: import("@angular/core").OutputEmitterRef<IListFunctionControlEvent>;
|
|
@@ -79,6 +78,7 @@ export declare class LibsUiComponentsListComponent implements OnInit, OnDestroy
|
|
|
79
78
|
private dynamicComponentService;
|
|
80
79
|
constructor();
|
|
81
80
|
ngOnInit(): void;
|
|
81
|
+
private changeSignal;
|
|
82
82
|
protected handlerSearch(keySearch: string): void;
|
|
83
83
|
protected handlerRemoveKeySelected(): Promise<void>;
|
|
84
84
|
protected handlerClickButtonOther(button: IButton): void;
|
|
@@ -88,5 +88,5 @@ export declare class LibsUiComponentsListComponent implements OnInit, OnDestroy
|
|
|
88
88
|
private cloneConfig;
|
|
89
89
|
ngOnDestroy(): void;
|
|
90
90
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibsUiComponentsListComponent, never>;
|
|
91
|
-
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": true; "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; }; "
|
|
91
|
+
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": true; "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>;
|
|
92
92
|
}
|
package/package.json
CHANGED
|
@@ -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<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,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
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { WritableSignal } from "@angular/core";
|
|
2
2
|
import { IFlagMouse, TYPE_POPOVER_EVENT } from "@libs-ui/components-popover";
|
|
3
3
|
import { Observable } from "rxjs";
|
|
4
|
-
import { IEmitRowsEvent,
|
|
4
|
+
import { IEmitRowsEvent, IListConfigItemCheckbox, IListConfigItemText, IListConfigItemTextRowSignal } from "../../interfaces";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class LibsUiComponentsListRowsComponent {
|
|
7
7
|
protected popoverIcon: WritableSignal<string>;
|
|
8
|
-
protected configItemTextRows: WritableSignal<WritableSignal<
|
|
9
|
-
readonly configTemplate: import("@angular/core").InputSignal<
|
|
8
|
+
protected configItemTextRows: WritableSignal<WritableSignal<IListConfigItemTextRowSignal>[]>;
|
|
9
|
+
readonly configTemplate: import("@angular/core").InputSignal<IListConfigItemText | IListConfigItemCheckbox>;
|
|
10
10
|
readonly item: import("@angular/core").InputSignal<any>;
|
|
11
11
|
readonly keySelected: import("@angular/core").InputSignal<unknown>;
|
|
12
12
|
readonly fieldKey: import("@angular/core").InputSignal<string>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OnInit, WritableSignal } from '@angular/core';
|
|
2
|
+
import { IListConfigItemTag } from '../../interfaces/config-item.interface';
|
|
3
|
+
import { LibsUiComponentsListTemplatesComponentAbstract } from '../templates.component.abstract';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class LibsUiComponentsListTagComponent extends LibsUiComponentsListTemplatesComponentAbstract implements OnInit {
|
|
6
|
+
protected configTemplateTag: WritableSignal<IListConfigItemTag | undefined>;
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
protected handlerSelectItem(e: Event, item: any): void;
|
|
9
|
+
private emitMoSelectMultiKey;
|
|
10
|
+
protected handlerScrollBottom(): void;
|
|
11
|
+
protected processSearch(): void;
|
|
12
|
+
protected processData(replace?: boolean): void;
|
|
13
|
+
protected getLengthItem(): number;
|
|
14
|
+
protected processKeyChangeUnSelect(item: any): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibsUiComponentsListTagComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibsUiComponentsListTagComponent, "libs_ui-components-list-templates_tag", never, {}, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -6,8 +6,8 @@ import { IPaging } from "@libs-ui/interfaces-types";
|
|
|
6
6
|
import { LibsUiHttpRequestService } from "@libs-ui/services-http-request";
|
|
7
7
|
import { TranslateService } from '@ngx-translate/core';
|
|
8
8
|
import { Subject, Subscription } from 'rxjs';
|
|
9
|
-
import { IListDataEmitKey, IListDataEmitMultiKey } from "../interfaces";
|
|
10
|
-
import {
|
|
9
|
+
import { IDataUpdateToStore, IListDataEmitKey, IListDataEmitMultiKey } from "../interfaces";
|
|
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
13
|
protected loading: WritableSignal<boolean>;
|
|
@@ -26,12 +26,11 @@ export declare abstract class LibsUiComponentsListTemplatesComponentAbstract imp
|
|
|
26
26
|
protected onDestroy: Subject<void>;
|
|
27
27
|
protected intervalSetHeightViewPortSubscription: Subscription;
|
|
28
28
|
protected intervalCheckScrollSubscription: Subscription;
|
|
29
|
-
readonly functionCustomAddDataToStore: import("@angular/core").InputSignal<((data: any, store: any) => void) | undefined>;
|
|
30
29
|
readonly functionGetItemsAutoAddList: import("@angular/core").InputSignal<(() => Array<any>) | undefined>;
|
|
31
30
|
readonly paddingLeftItem: import("@angular/core").InputSignal<boolean | undefined>;
|
|
32
31
|
readonly maxItemShow: import("@angular/core").InputSignal<number>;
|
|
33
32
|
readonly searchConfig: import("@angular/core").InputSignal<IInputSearchConfig | undefined>;
|
|
34
|
-
readonly config: import("@angular/core").InputSignal<
|
|
33
|
+
readonly config: import("@angular/core").InputSignal<IListConfigItem | undefined>;
|
|
35
34
|
readonly keySearch: import("@angular/core").ModelSignal<string>;
|
|
36
35
|
readonly dropdownTabKeyActive: import("@angular/core").InputSignal<string | undefined>;
|
|
37
36
|
readonly isSearchOnline: import("@angular/core").InputSignal<boolean>;
|
|
@@ -42,6 +41,7 @@ export declare abstract class LibsUiComponentsListTemplatesComponentAbstract imp
|
|
|
42
41
|
readonly onSetDataStore: import("@angular/core").InputSignal<Subject<any[]> | undefined>;
|
|
43
42
|
readonly onUpdateMultiKeySelectedGroup: import("@angular/core").InputSignal<Subject<void> | undefined>;
|
|
44
43
|
readonly onItemChangeUnSelect: import("@angular/core").InputSignal<Subject<any> | undefined>;
|
|
44
|
+
readonly onUpdateData: import("@angular/core").InputSignal<Subject<IDataUpdateToStore> | undefined>;
|
|
45
45
|
readonly clickExactly: import("@angular/core").InputSignal<boolean | undefined>;
|
|
46
46
|
readonly keySelected: import("@angular/core").ModelSignal<unknown>;
|
|
47
47
|
readonly multiKeySelected: import("@angular/core").ModelSignal<unknown[] | undefined>;
|
|
@@ -58,7 +58,7 @@ export declare abstract class LibsUiComponentsListTemplatesComponentAbstract imp
|
|
|
58
58
|
readonly outSelectKey: import("@angular/core").OutputEmitterRef<IListDataEmitKey | undefined>;
|
|
59
59
|
readonly outSelectMultiKey: import("@angular/core").OutputEmitterRef<IListDataEmitMultiKey>;
|
|
60
60
|
readonly outUnSelectMultiKey: import("@angular/core").OutputEmitterRef<unknown[]>;
|
|
61
|
-
readonly outFieldKey: import("@angular/core").OutputEmitterRef<
|
|
61
|
+
readonly outFieldKey: import("@angular/core").OutputEmitterRef<string | undefined>;
|
|
62
62
|
readonly outChangeView: import("@angular/core").OutputEmitterRef<any[]>;
|
|
63
63
|
readonly outLoading: import("@angular/core").OutputEmitterRef<boolean>;
|
|
64
64
|
readonly outChangStageFlagMousePopover: import("@angular/core").OutputEmitterRef<IFlagMouse>;
|
|
@@ -71,6 +71,7 @@ export declare abstract class LibsUiComponentsListTemplatesComponentAbstract imp
|
|
|
71
71
|
protected httpRequestService: LibsUiHttpRequestService;
|
|
72
72
|
constructor();
|
|
73
73
|
ngOnInit(): void;
|
|
74
|
+
private updateData;
|
|
74
75
|
private getFieldKey;
|
|
75
76
|
private removeItems;
|
|
76
77
|
private removeItem;
|
|
@@ -79,7 +80,7 @@ export declare abstract class LibsUiComponentsListTemplatesComponentAbstract imp
|
|
|
79
80
|
protected checkViewPortScroll(callBack?: (pre: boolean, current: boolean) => void): void;
|
|
80
81
|
protected callApiByService(firstCall?: boolean): Promise<void>;
|
|
81
82
|
protected fakeResponseApi(): Record<string, any>;
|
|
82
|
-
protected buildValueByConfig(item: WritableSignal<any>, configTemplate?:
|
|
83
|
+
protected buildValueByConfig(item: WritableSignal<any>, configTemplate?: IListConfigItemText | IListConfigItemRadio | IListConfigItemCheckbox): string;
|
|
83
84
|
protected handlerChangStageFlagMouse(flag: IFlagMouse): void;
|
|
84
85
|
protected abstract processData(isReplace?: boolean): any;
|
|
85
86
|
protected abstract processSearch(): any;
|
|
@@ -88,5 +89,5 @@ export declare abstract class LibsUiComponentsListTemplatesComponentAbstract imp
|
|
|
88
89
|
protected abstract processKeyChangeUnSelect(item: any): void;
|
|
89
90
|
ngOnDestroy(): void;
|
|
90
91
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibsUiComponentsListTemplatesComponentAbstract, never>;
|
|
91
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LibsUiComponentsListTemplatesComponentAbstract, never, never, { "
|
|
92
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LibsUiComponentsListTemplatesComponentAbstract, never, never, { "functionGetItemsAutoAddList": { "alias": "functionGetItemsAutoAddList"; "required": false; "isSignal": true; }; "paddingLeftItem": { "alias": "paddingLeftItem"; "required": false; "isSignal": true; }; "maxItemShow": { "alias": "maxItemShow"; "required": false; "isSignal": true; }; "searchConfig": { "alias": "searchConfig"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "keySearch": { "alias": "keySearch"; "required": false; "isSignal": true; }; "dropdownTabKeyActive": { "alias": "dropdownTabKeyActive"; "required": false; "isSignal": true; }; "isSearchOnline": { "alias": "isSearchOnline"; "required": false; "isSignal": true; }; "onSearch": { "alias": "onSearch"; "required": false; "isSignal": true; }; "onRefresh": { "alias": "onRefresh"; "required": false; "isSignal": true; }; "onSetHiddenItemByKey": { "alias": "onSetHiddenItemByKey"; "required": false; "isSignal": true; }; "onRemoveItems": { "alias": "onRemoveItems"; "required": false; "isSignal": true; }; "onSetDataStore": { "alias": "onSetDataStore"; "required": false; "isSignal": true; }; "onUpdateMultiKeySelectedGroup": { "alias": "onUpdateMultiKeySelectedGroup"; "required": false; "isSignal": true; }; "onItemChangeUnSelect": { "alias": "onItemChangeUnSelect"; "required": false; "isSignal": true; }; "onUpdateData": { "alias": "onUpdateData"; "required": false; "isSignal": true; }; "clickExactly": { "alias": "clickExactly"; "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; }; "disable": { "alias": "disable"; "required": false; "isSignal": true; }; "disableLabel": { "alias": "disableLabel"; "required": false; "isSignal": true; }; "zIndex": { "alias": "zIndex"; "required": false; "isSignal": true; }; "loadingIconSize": { "alias": "loadingIconSize"; "required": false; "isSignal": true; }; "resetKeyWhenSelectAllKeyDropdown": { "alias": "resetKeyWhenSelectAllKeyDropdown"; "required": false; "isSignal": true; }; "ignoreClassDisableDefaultWhenUseKeysDisableItem": { "alias": "ignoreClassDisableDefaultWhenUseKeysDisableItem"; "required": false; "isSignal": true; }; "templateRefSearchNoData": { "alias": "templateRefSearchNoData"; "required": false; "isSignal": true; }; }, { "keySearch": "keySearchChange"; "keySelected": "keySelectedChange"; "multiKeySelected": "multiKeySelectedChange"; "keysHiddenItem": "keysHiddenItemChange"; "outSortSingleSelect": "outSortSingleSelect"; "outSelectKey": "outSelectKey"; "outSelectMultiKey": "outSelectMultiKey"; "outUnSelectMultiKey": "outUnSelectMultiKey"; "outFieldKey": "outFieldKey"; "outChangeView": "outChangeView"; "outLoading": "outLoading"; "outChangStageFlagMousePopover": "outChangStageFlagMousePopover"; "outLoadItemsComplete": "outLoadItemsComplete"; }, never, never, false, never>;
|
|
92
93
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { OnInit, WritableSignal } from '@angular/core';
|
|
2
2
|
import { ISort } from '@libs-ui/components-buttons-sort';
|
|
3
3
|
import { LibsUiComponentsListTemplatesComponentAbstract } from '../templates.component.abstract';
|
|
4
|
-
import {
|
|
4
|
+
import { IListConfigItemText } from './../../interfaces/config-item.interface';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class LibsUiComponentsListTextComponent extends LibsUiComponentsListTemplatesComponentAbstract implements OnInit {
|
|
7
|
-
protected configTemplateText: WritableSignal<
|
|
7
|
+
protected configTemplateText: WritableSignal<IListConfigItemText | undefined>;
|
|
8
8
|
private readonly virtualScrollerComponent;
|
|
9
9
|
ngOnInit(): void;
|
|
10
10
|
protected handlerScrollBottom(): void;
|
|
11
11
|
protected processSearch(): void;
|
|
12
12
|
protected handlerClickRelative(e: Event, item: any): void;
|
|
13
13
|
protected processKeyChangeUnSelect(item: any): void;
|
|
14
|
-
protected handlerSelectItem(e: Event | string, item: any, action?: (item: any) => void, ignoreDisable?: boolean): void;
|
|
14
|
+
protected handlerSelectItem(e: Event | string, item: any, action?: (item: any) => void, ignoreDisable?: boolean, isClickManual?: boolean): void;
|
|
15
15
|
protected handlerSort(itemSort: ISort): void;
|
|
16
16
|
protected processData(replace?: boolean): void;
|
|
17
17
|
private scrollToItemSelected;
|