@libs-ui/components-list 0.2.40 → 0.2.43
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/interfaces/data-emit.interface.mjs +1 -1
- package/esm2022/list.component.mjs +3 -12
- package/esm2022/templates/rows/rows.component.mjs +70 -0
- package/esm2022/templates/templates.component.abstract.mjs +7 -17
- package/esm2022/templates/text/text.component.mjs +13 -6
- package/fesm2022/libs-ui-components-list.mjs +83 -62
- package/fesm2022/libs-ui-components-list.mjs.map +1 -1
- package/interfaces/config-item.interface.d.ts +18 -12
- package/interfaces/data-emit.interface.d.ts +6 -0
- package/list.component.d.ts +1 -2
- package/package.json +1 -1
- package/templates/rows/rows.component.d.ts +23 -0
- package/templates/templates.component.abstract.d.ts +1 -1
- package/esm2022/pipes/call-function-in-template.pipe.mjs +0 -28
- package/pipes/call-function-in-template.pipe.d.ts +0 -8
|
@@ -7,6 +7,8 @@ import { ILabel } from "@libs-ui/components-label";
|
|
|
7
7
|
import { IPopover, IPopoverOverlay, TYPE_POPOVER_EVENT } from "@libs-ui/components-popover";
|
|
8
8
|
import { IHttpRequestConfig } from "@libs-ui/services-http-request";
|
|
9
9
|
import { TYPE_TEMPLATE } from "./templates-type.type";
|
|
10
|
+
import { Observable } from "rxjs";
|
|
11
|
+
import { WritableSignal } from "@angular/core";
|
|
10
12
|
export interface IListViewConfigItem {
|
|
11
13
|
type: TYPE_TEMPLATE;
|
|
12
14
|
httpRequestData?: IHttpRequestConfig;
|
|
@@ -33,8 +35,8 @@ export interface IListViewConfigItemText {
|
|
|
33
35
|
getValue?: (item: any) => string;
|
|
34
36
|
fieldGetImage?: string;
|
|
35
37
|
classIncludeImage?: string;
|
|
36
|
-
getImage?: (
|
|
37
|
-
getImageError?: (
|
|
38
|
+
getImage?: (data: any) => Observable<string>;
|
|
39
|
+
getImageError?: (data: any) => Observable<string>;
|
|
38
40
|
imgTypeIcon?: boolean;
|
|
39
41
|
ignoreIconSelected?: boolean;
|
|
40
42
|
classIncludeIconSelected?: string;
|
|
@@ -94,6 +96,8 @@ export interface IListViewConfigItemCheckbox {
|
|
|
94
96
|
getValue?: (item: any) => string;
|
|
95
97
|
getPopover?: (item: any) => IPopover;
|
|
96
98
|
getClassItem?: (item: any) => string;
|
|
99
|
+
getImage?: (data: any) => Observable<string>;
|
|
100
|
+
getImageError?: (data: any) => Observable<string>;
|
|
97
101
|
fieldGetImage?: string;
|
|
98
102
|
hasAvatarPagesSocial?: boolean;
|
|
99
103
|
hasAvatarGroupSocial?: boolean;
|
|
@@ -104,7 +108,6 @@ export interface IListViewConfigItemCheckbox {
|
|
|
104
108
|
ignoreClickItemUnChecked?: boolean;
|
|
105
109
|
classLabelInclude?: string;
|
|
106
110
|
fieldGetLinkImageError?: string;
|
|
107
|
-
zIndexLabel?: number;
|
|
108
111
|
zIndexPopover?: number;
|
|
109
112
|
classItemInclude?: string;
|
|
110
113
|
getAvatarConfig?: (item: any) => IAvatarConfig;
|
|
@@ -122,22 +125,25 @@ interface IListViewConfigItemTextRow {
|
|
|
122
125
|
getRowStylesDynamicCols?: (item: any) => string;
|
|
123
126
|
cols?: Array<IListViewConfigItemTextCol>;
|
|
124
127
|
action?: (item: any) => void;
|
|
125
|
-
getImage?: (item: any) =>
|
|
126
|
-
getClassImage?: (item: any) => string
|
|
127
|
-
getImageError?: (item: any) =>
|
|
128
|
-
getPopoverConfig?: (item: any) => IPopoverOverlay
|
|
128
|
+
getImage?: (item: any) => Observable<string>;
|
|
129
|
+
getClassImage?: (item: any) => Observable<string>;
|
|
130
|
+
getImageError?: (item: any) => Observable<string>;
|
|
131
|
+
getPopoverConfig?: (item: any) => Observable<IPopoverOverlay>;
|
|
129
132
|
getAvatarConfig?: (item: any) => IAvatarConfig;
|
|
130
133
|
}
|
|
134
|
+
export interface IListViewConfigItemTextRowSignal extends Omit<IListViewConfigItemTextRow, 'cols'> {
|
|
135
|
+
cols?: WritableSignal<Array<WritableSignal<IListViewConfigItemTextCol>>>;
|
|
136
|
+
}
|
|
131
137
|
export interface IListViewConfigItemTextCol {
|
|
132
138
|
classCol?: string;
|
|
133
|
-
getValue?: (item: any, index: number) => string
|
|
139
|
+
getValue?: (item: any, index: number) => Observable<string>;
|
|
134
140
|
getPopover?: (item: any, index: number) => IPopover | undefined;
|
|
135
141
|
action?: (item: any) => void;
|
|
136
|
-
getImage?: (item: any) =>
|
|
137
|
-
getClassImage?: (item: any) => string
|
|
138
|
-
getImageError?: (item: any) =>
|
|
142
|
+
getImage?: (item: any) => Observable<string>;
|
|
143
|
+
getClassImage?: (item: any) => Observable<string>;
|
|
144
|
+
getImageError?: (item: any) => Observable<string>;
|
|
139
145
|
getConfigBadge?: (item: any, index: number) => IBadge | undefined;
|
|
140
|
-
getStylesDynamicCol?: (item: any) =>
|
|
146
|
+
getStylesDynamicCol?: (item: any, index: number) => Observable<string>;
|
|
141
147
|
getButton?: (item: any, index: number) => IButton | undefined;
|
|
142
148
|
getLabelSwitch?: (item: any, index: number) => ILabel | undefined;
|
|
143
149
|
getAvatarConfig?: (item: any) => IAvatarConfig;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TYPE_POPOVER_EVENT } from "@libs-ui/components-popover";
|
|
1
2
|
export interface IListDataEmitKey {
|
|
2
3
|
key: unknown;
|
|
3
4
|
item: any;
|
|
@@ -8,3 +9,8 @@ export interface IListDataEmitMultiKey {
|
|
|
8
9
|
mapKeys: Array<IListDataEmitKey>;
|
|
9
10
|
isClickManual: boolean;
|
|
10
11
|
}
|
|
12
|
+
export interface IEmitRowsEvent {
|
|
13
|
+
event: TYPE_POPOVER_EVENT;
|
|
14
|
+
item: any;
|
|
15
|
+
action: any;
|
|
16
|
+
}
|
package/list.component.d.ts
CHANGED
|
@@ -50,7 +50,6 @@ export declare class LibsUiComponentsListComponent implements OnInit, OnDestroy
|
|
|
50
50
|
readonly multiKeySelected: import("@angular/core").InputSignal<unknown[] | undefined>;
|
|
51
51
|
readonly keysDisableItem: import("@angular/core").InputSignal<unknown[] | undefined>;
|
|
52
52
|
readonly keysHiddenItem: import("@angular/core").InputSignal<unknown[] | undefined>;
|
|
53
|
-
readonly data: import("@angular/core").InputSignal<any[] | undefined>;
|
|
54
53
|
readonly focusInputSearch: import("@angular/core").InputSignal<boolean | undefined>;
|
|
55
54
|
readonly skipFocusInputWhenKeySearchStoreUndefined: import("@angular/core").InputSignal<boolean | undefined>;
|
|
56
55
|
readonly functionCustomAddDataToStore: import("@angular/core").InputSignal<((data: any, store: any) => void) | undefined>;
|
|
@@ -89,5 +88,5 @@ export declare class LibsUiComponentsListComponent implements OnInit, OnDestroy
|
|
|
89
88
|
private cloneConfig;
|
|
90
89
|
ngOnDestroy(): void;
|
|
91
90
|
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": 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; }; "
|
|
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; }; "functionCustomAddDataToStore": { "alias": "functionCustomAddDataToStore"; "required": false; "isSignal": true; }; "functionGetItemAutoAddList": { "alias": "functionGetItemAutoAddList"; "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
92
|
}
|
package/package.json
CHANGED
|
@@ -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, IListViewConfigItemCheckbox, IListViewConfigItemText, IListViewConfigItemTextRowSignal } from "../../interfaces";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class LibsUiComponentsListRowsComponent {
|
|
7
|
+
protected popoverIcon: WritableSignal<string>;
|
|
8
|
+
protected configItemTextRows: WritableSignal<WritableSignal<IListViewConfigItemTextRowSignal>[]>;
|
|
9
|
+
readonly configTemplate: import("@angular/core").InputSignal<IListViewConfigItemText | IListViewConfigItemCheckbox>;
|
|
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
|
+
}
|
|
@@ -49,7 +49,7 @@ export declare abstract class LibsUiComponentsListTemplatesComponentAbstract imp
|
|
|
49
49
|
readonly keysHiddenItem: import("@angular/core").ModelSignal<unknown[] | undefined>;
|
|
50
50
|
readonly disable: import("@angular/core").InputSignal<boolean | undefined>;
|
|
51
51
|
readonly disableLabel: import("@angular/core").InputSignal<boolean | undefined>;
|
|
52
|
-
readonly zIndex: import("@angular/core").InputSignal<number
|
|
52
|
+
readonly zIndex: import("@angular/core").InputSignal<number>;
|
|
53
53
|
readonly loadingIconSize: import("@angular/core").InputSignal<"small" | "large" | "medium" | "smaller" | undefined>;
|
|
54
54
|
readonly resetKeyWhenSelectAllKeyDropdown: import("@angular/core").InputSignal<boolean | undefined>;
|
|
55
55
|
readonly ignoreClassDisableDefaultWhenUseKeysDisableItem: import("@angular/core").InputSignal<boolean | undefined>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import { Pipe } from '@angular/core';
|
|
3
|
-
import { CHARACTER_DATA_EMPTY } from '@libs-ui/utils';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export class MoLibsSharedPipesCallFunctionInTemplatePipe {
|
|
6
|
-
async transform(value, functionCall, item, lang, otherData) {
|
|
7
|
-
if (!functionCall) {
|
|
8
|
-
return this.getValueOfType(value);
|
|
9
|
-
}
|
|
10
|
-
return this.getValueOfType(await functionCall(value, item, lang, otherData));
|
|
11
|
-
}
|
|
12
|
-
async getValueOfType(value) {
|
|
13
|
-
if ('object' === typeof value || value instanceof Array || typeof value === 'boolean') {
|
|
14
|
-
return value !== null ? value : CHARACTER_DATA_EMPTY;
|
|
15
|
-
}
|
|
16
|
-
return value ? `${value}` : value === 0 ? '0' : CHARACTER_DATA_EMPTY;
|
|
17
|
-
}
|
|
18
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MoLibsSharedPipesCallFunctionInTemplatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
19
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: MoLibsSharedPipesCallFunctionInTemplatePipe, isStandalone: true, name: "MoLibsSharedPipesCallFunctionInTemplate" });
|
|
20
|
-
}
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MoLibsSharedPipesCallFunctionInTemplatePipe, decorators: [{
|
|
22
|
-
type: Pipe,
|
|
23
|
-
args: [{
|
|
24
|
-
name: 'MoLibsSharedPipesCallFunctionInTemplate',
|
|
25
|
-
standalone: true
|
|
26
|
-
}]
|
|
27
|
-
}] });
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsbC1mdW5jdGlvbi1pbi10ZW1wbGF0ZS5waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy11aS9jb21wb25lbnRzL2xpc3Qvc3JjL3BpcGVzL2NhbGwtZnVuY3Rpb24taW4tdGVtcGxhdGUucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1REFBdUQ7QUFDdkQsT0FBTyxFQUFFLElBQUksRUFBaUIsTUFBTSxlQUFlLENBQUM7QUFDcEQsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7O0FBTXRELE1BQ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SEFSQUNURVJfREFUQV9FTVBUWTtcbiAgICB9XG5cbiAgICByZXR1cm4gdmFsdWUgPyBgJHt2YWx1ZX1gIDogdmFsdWUgPT09IDAgPyAnMCcgOiBDSEFSQUNURVJfREFUQV9FTVBUWTtcbiAgfVxufVxuIl19
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class MoLibsSharedPipesCallFunctionInTemplatePipe implements PipeTransform {
|
|
4
|
-
transform(value: any, functionCall?: (value: any, item?: any, lang?: string, otherData?: any) => any, item?: any, lang?: string, otherData?: unknown): Promise<any>;
|
|
5
|
-
private getValueOfType;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MoLibsSharedPipesCallFunctionInTemplatePipe, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<MoLibsSharedPipesCallFunctionInTemplatePipe, "MoLibsSharedPipesCallFunctionInTemplate", true>;
|
|
8
|
-
}
|