@libs-ui/components-list 0.2.306 → 0.2.307-0
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 -7
- package/esm2022/defines/list.define.mjs +7 -7
- package/esm2022/highlight-key-search/highlight-key-search.directive.mjs +4 -4
- package/esm2022/index.mjs +1 -1
- package/esm2022/interfaces/config-item.interface.mjs +1 -2
- package/esm2022/interfaces/data-emit.interface.mjs +1 -1
- package/esm2022/interfaces/function-control-event.interface.mjs +1 -1
- package/esm2022/interfaces/index.mjs +6 -6
- package/esm2022/interfaces/tab.interface.mjs +1 -1
- package/esm2022/interfaces/templates-type.type.mjs +1 -1
- package/esm2022/list.component.mjs +43 -44
- package/esm2022/pipes/check-selected-by-key.pipe.mjs +3 -3
- package/esm2022/templates/checkbox/checkbox.component.mjs +36 -31
- package/esm2022/templates/group/group.component.mjs +78 -71
- package/esm2022/templates/group/item/item.component.mjs +9 -7
- package/esm2022/templates/group/pipes/calculator-left-line-vertical-item.pipe.mjs +3 -3
- package/esm2022/templates/group/pipes/calculator-margin-left-item.pipe.mjs +3 -3
- package/esm2022/templates/group/pipes/calculator-padding-left-item.pipe.mjs +2 -2
- package/esm2022/templates/radio/radio.component.mjs +23 -18
- package/esm2022/templates/rows/rows.component.mjs +21 -19
- package/esm2022/templates/tag/tag.component.mjs +16 -21
- package/esm2022/templates/templates.component.abstract.mjs +36 -27
- package/esm2022/templates/text/text.component.mjs +27 -20
- package/fesm2022/libs-ui-components-list.mjs +265 -236
- package/fesm2022/libs-ui-components-list.mjs.map +1 -1
- package/interfaces/config-item.interface.d.ts +16 -13
- package/interfaces/data-emit.interface.d.ts +1 -1
- package/interfaces/function-control-event.interface.d.ts +2 -2
- package/interfaces/index.d.ts +5 -5
- package/list.component.d.ts +12 -11
- package/package.json +23 -23
- package/templates/rows/rows.component.d.ts +4 -4
- package/templates/templates.component.abstract.d.ts +9 -9
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { IAvatarConfig } from
|
|
2
|
-
import { IBadge } from
|
|
3
|
-
import { IButton } from
|
|
4
|
-
import { ISort } from
|
|
5
|
-
import { ICheckboxItem } from
|
|
6
|
-
import { ILabel } from
|
|
7
|
-
import { IPopover, IPopoverOverlay, TYPE_POPOVER_EVENT } from
|
|
8
|
-
import { IHttpRequestConfig } from
|
|
9
|
-
import { TYPE_TEMPLATE } from
|
|
10
|
-
import { Observable } from
|
|
11
|
-
import { WritableSignal } from
|
|
12
|
-
import { TYPE_FUNCTION, TYPE_OBJECT } from
|
|
13
|
-
import { LibsUiComponentsComponentOutletComponent } from
|
|
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
|
+
import { TYPE_FUNCTION, TYPE_OBJECT } from '@libs-ui/interfaces-types';
|
|
13
|
+
import { LibsUiComponentsComponentOutletComponent } from '@libs-ui/components-component-outlet';
|
|
14
14
|
export type TYPE_LIST_ITEM = WritableSignal<TYPE_OBJECT>;
|
|
15
15
|
export interface IListConfigItem {
|
|
16
16
|
type: TYPE_TEMPLATE;
|
|
@@ -38,6 +38,7 @@ export interface IListConfigItem {
|
|
|
38
38
|
export interface IListConfigItemText {
|
|
39
39
|
fieldKey: string;
|
|
40
40
|
getValue?: (item: any, itemViewInList?: TYPE_LIST_ITEM) => string;
|
|
41
|
+
getLabelSearch?: (item: any) => string;
|
|
41
42
|
fieldGetImage?: string;
|
|
42
43
|
classIncludeImage?: string;
|
|
43
44
|
getImage?: (data: IDataFunctionCallInConfig) => Observable<string>;
|
|
@@ -79,6 +80,7 @@ export interface IListConfigItemRadio {
|
|
|
79
80
|
hasAvatarPagesSocial?: boolean;
|
|
80
81
|
hasAvatarGroupSocial?: boolean;
|
|
81
82
|
getValue?: (item: any, itemViewInList?: TYPE_LIST_ITEM) => string;
|
|
83
|
+
getLabelSearch?: (item: any) => string;
|
|
82
84
|
getPopover?: (item: any) => IPopover | undefined;
|
|
83
85
|
rowSameLineRadio?: boolean;
|
|
84
86
|
rows?: WritableSignal<Array<WritableSignal<IListConfigItemTextRow>>>;
|
|
@@ -107,6 +109,7 @@ export interface IListConfigItemCheckbox {
|
|
|
107
109
|
classIncludeHasConfigCheckBoxAll?: string;
|
|
108
110
|
fieldKey: string;
|
|
109
111
|
getValue?: (item: any, itemViewInList?: TYPE_LIST_ITEM) => string;
|
|
112
|
+
getLabelSearch?: (item: any) => string;
|
|
110
113
|
getPopover?: (item: any) => IPopover;
|
|
111
114
|
getClassItem?: (item: any) => string;
|
|
112
115
|
getImage?: (data: IDataFunctionCallInConfig) => Observable<string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { WritableSignal } from
|
|
2
|
-
import { IBoundingClientRect } from
|
|
1
|
+
import { WritableSignal } from '@angular/core';
|
|
2
|
+
import { IBoundingClientRect } from '@libs-ui/interfaces-types';
|
|
3
3
|
export interface IListFunctionControlEvent {
|
|
4
4
|
checkIsValid: () => Promise<boolean>;
|
|
5
5
|
refresh: () => Promise<void>;
|
package/interfaces/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
1
|
+
export * from './config-item.interface';
|
|
2
|
+
export * from './data-emit.interface';
|
|
3
|
+
export * from './function-control-event.interface';
|
|
4
|
+
export * from './tab.interface';
|
|
5
|
+
export * from './templates-type.type';
|
package/list.component.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ElementRef, OnDestroy, OnInit, TemplateRef } from
|
|
2
|
-
import { IButton } from
|
|
3
|
-
import { IInputFunctionControlEvent } from
|
|
4
|
-
import { IInputSearchConfig } from
|
|
5
|
-
import { IValidRequired } from
|
|
6
|
-
import { ILabel } from
|
|
7
|
-
import { IFlagMouse } from
|
|
8
|
-
import { IPaging } from
|
|
9
|
-
import { IListConfigItem, IListFunctionControlEvent } from
|
|
10
|
-
import { IListDataEmitKey, IListDataEmitMultiKey } from
|
|
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
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare class LibsUiComponentsListComponent implements OnInit, OnDestroy {
|
|
13
13
|
protected readonly ERROR_MESSAGE_EMPTY_VALID = "i18n_valid_empty_message";
|
|
@@ -56,7 +56,7 @@ export declare class LibsUiComponentsListComponent implements OnInit, OnDestroy
|
|
|
56
56
|
readonly validRequired: import("@angular/core").InputSignal<IValidRequired | undefined>;
|
|
57
57
|
readonly showValidateBottom: import("@angular/core").InputSignal<boolean | undefined>;
|
|
58
58
|
readonly zIndex: import("@angular/core").InputSignal<number | undefined>;
|
|
59
|
-
readonly loadingIconSize: import("@angular/core").InputSignal<"
|
|
59
|
+
readonly loadingIconSize: import("@angular/core").InputSignal<"large" | "medium" | "small" | "smaller" | undefined>;
|
|
60
60
|
readonly templateRefSearchNoData: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
|
|
61
61
|
readonly resetKeyWhenSelectAllKeyDropdown: import("@angular/core").InputSignal<boolean | undefined>;
|
|
62
62
|
readonly ignoreClassDisableDefaultWhenUseKeysDisableItem: import("@angular/core").InputSignal<boolean | undefined>;
|
|
@@ -79,6 +79,7 @@ export declare class LibsUiComponentsListComponent implements OnInit, OnDestroy
|
|
|
79
79
|
private dynamicComponentService;
|
|
80
80
|
constructor();
|
|
81
81
|
ngOnInit(): void;
|
|
82
|
+
get FunctionsControl(): IListFunctionControlEvent;
|
|
82
83
|
protected handlerSearch(keySearch: string): void;
|
|
83
84
|
protected handlerRemoveKeySelected(): Promise<void>;
|
|
84
85
|
protected handlerClickButtonOther(button: IButton): void;
|
package/package.json
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libs-ui/components-list",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.307-0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=18.0.0",
|
|
6
6
|
"@angular/core": ">=18.0.0",
|
|
7
|
-
"@libs-ui/utils": "0.2.
|
|
8
|
-
"@libs-ui/components-avatar": "0.2.
|
|
9
|
-
"@libs-ui/components-badge": "0.2.
|
|
10
|
-
"@libs-ui/components-buttons-button": "0.2.
|
|
11
|
-
"@libs-ui/components-buttons-sort": "0.2.
|
|
12
|
-
"@libs-ui/components-checkbox-group": "0.2.
|
|
13
|
-
"@libs-ui/components-label": "0.2.
|
|
14
|
-
"@libs-ui/components-popover": "0.2.
|
|
15
|
-
"@libs-ui/services-http-request": "0.2.
|
|
7
|
+
"@libs-ui/utils": "0.2.307-0",
|
|
8
|
+
"@libs-ui/components-avatar": "0.2.307-0",
|
|
9
|
+
"@libs-ui/components-badge": "0.2.307-0",
|
|
10
|
+
"@libs-ui/components-buttons-button": "0.2.307-0",
|
|
11
|
+
"@libs-ui/components-buttons-sort": "0.2.307-0",
|
|
12
|
+
"@libs-ui/components-checkbox-group": "0.2.307-0",
|
|
13
|
+
"@libs-ui/components-label": "0.2.307-0",
|
|
14
|
+
"@libs-ui/components-popover": "0.2.307-0",
|
|
15
|
+
"@libs-ui/services-http-request": "0.2.307-0",
|
|
16
16
|
"rxjs": "~7.8.0",
|
|
17
|
-
"@libs-ui/interfaces-types": "0.2.
|
|
18
|
-
"@libs-ui/components-inputs-input": "0.2.
|
|
19
|
-
"@libs-ui/components-inputs-search": "0.2.
|
|
20
|
-
"@libs-ui/components-inputs-valid": "0.2.
|
|
21
|
-
"@libs-ui/services-dynamic-component": "0.2.
|
|
17
|
+
"@libs-ui/interfaces-types": "0.2.307-0",
|
|
18
|
+
"@libs-ui/components-inputs-input": "0.2.307-0",
|
|
19
|
+
"@libs-ui/components-inputs-search": "0.2.307-0",
|
|
20
|
+
"@libs-ui/components-inputs-valid": "0.2.307-0",
|
|
21
|
+
"@libs-ui/services-dynamic-component": "0.2.307-0",
|
|
22
22
|
"@ngx-translate/core": "^15.0.0",
|
|
23
23
|
"@iharbeck/ngx-virtual-scroller": "15.2.0",
|
|
24
|
-
"@libs-ui/components-checkbox-single": "0.2.
|
|
25
|
-
"@libs-ui/components-scroll-overlay": "0.2.
|
|
26
|
-
"@libs-ui/components-spinner": "0.2.
|
|
27
|
-
"@libs-ui/icons": "0.2.
|
|
28
|
-
"@libs-ui/pipes-call-function-in-template": "0.2.
|
|
29
|
-
"@libs-ui/pipes-convert-object-to-signal": "0.2.
|
|
30
|
-
"@libs-ui/components-radio-single": "0.2.
|
|
31
|
-
"@libs-ui/components-switch": "0.2.
|
|
24
|
+
"@libs-ui/components-checkbox-single": "0.2.307-0",
|
|
25
|
+
"@libs-ui/components-scroll-overlay": "0.2.307-0",
|
|
26
|
+
"@libs-ui/components-spinner": "0.2.307-0",
|
|
27
|
+
"@libs-ui/icons": "0.2.307-0",
|
|
28
|
+
"@libs-ui/pipes-call-function-in-template": "0.2.307-0",
|
|
29
|
+
"@libs-ui/pipes-convert-object-to-signal": "0.2.307-0",
|
|
30
|
+
"@libs-ui/components-radio-single": "0.2.307-0",
|
|
31
|
+
"@libs-ui/components-switch": "0.2.307-0"
|
|
32
32
|
},
|
|
33
33
|
"sideEffects": false,
|
|
34
34
|
"module": "fesm2022/libs-ui-components-list.mjs",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { WritableSignal } from
|
|
2
|
-
import { IFlagMouse, TYPE_POPOVER_EVENT } from
|
|
3
|
-
import { Observable } from
|
|
4
|
-
import { IEmitRowsEvent, IListConfigItemCheckbox, IListConfigItemText, IListConfigItemTextRow } from
|
|
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
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class LibsUiComponentsListRowsComponent {
|
|
7
7
|
protected popoverIcon: WritableSignal<string>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ElementRef, OnDestroy, TemplateRef, WritableSignal } from
|
|
2
|
-
import { ISort } from
|
|
3
|
-
import { IInputSearchConfig } from
|
|
4
|
-
import { IFlagMouse } from
|
|
5
|
-
import { IPaging } from
|
|
6
|
-
import { LibsUiHttpRequestService } from
|
|
1
|
+
import { ElementRef, OnDestroy, TemplateRef, WritableSignal } from '@angular/core';
|
|
2
|
+
import { ISort } from '@libs-ui/components-buttons-sort';
|
|
3
|
+
import { IInputSearchConfig } from '@libs-ui/components-inputs-search';
|
|
4
|
+
import { IFlagMouse } from '@libs-ui/components-popover';
|
|
5
|
+
import { IPaging } from '@libs-ui/interfaces-types';
|
|
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 { IDataUpdateToStore, IListDataEmitKey, IListDataEmitMultiKey } from
|
|
10
|
-
import { IListConfigItem, IListConfigItemCheckbox, IListConfigItemRadio, IListConfigItemText } from
|
|
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 timeAnimationScrollToIndexItem: WritableSignal<number>;
|
|
@@ -50,7 +50,7 @@ export declare abstract class LibsUiComponentsListTemplatesComponentAbstract imp
|
|
|
50
50
|
readonly disable: import("@angular/core").InputSignal<boolean | undefined>;
|
|
51
51
|
readonly disableLabel: import("@angular/core").InputSignal<boolean | undefined>;
|
|
52
52
|
readonly zIndex: import("@angular/core").InputSignal<number>;
|
|
53
|
-
readonly loadingIconSize: import("@angular/core").InputSignal<"
|
|
53
|
+
readonly loadingIconSize: import("@angular/core").InputSignal<"large" | "medium" | "small" | "smaller" | undefined>;
|
|
54
54
|
readonly resetKeyWhenSelectAllKeyDropdown: import("@angular/core").InputSignal<boolean | undefined>;
|
|
55
55
|
readonly ignoreClassDisableDefaultWhenUseKeysDisableItem: import("@angular/core").InputSignal<boolean | undefined>;
|
|
56
56
|
readonly templateRefSearchNoData: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
|