valtech-components 2.0.41 → 2.0.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/lib/components/organisms/item-list/item-list.component.mjs +23 -5
- package/esm2022/lib/components/organisms/item-list/types.mjs +2 -0
- package/esm2022/lib/components/templates/simple/simple.component.mjs +5 -5
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/valtech-components.mjs +25 -8
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/item-list/item-list.component.d.ts +3 -37
- package/lib/components/organisms/item-list/types.d.ts +38 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -1,43 +1,7 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { Color } from '@ionic/core';
|
|
3
|
-
import { ComponentState } from '../../types';
|
|
4
2
|
import { IconService } from '../../../services/icons.service';
|
|
3
|
+
import { ListMetadata } from './types';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
export type ItemAction = {
|
|
7
|
-
token: string;
|
|
8
|
-
icon?: string;
|
|
9
|
-
description: string;
|
|
10
|
-
state: ComponentState;
|
|
11
|
-
};
|
|
12
|
-
export interface ItemMetadata {
|
|
13
|
-
token?: string;
|
|
14
|
-
mode: 'justext' | 'subtitule' | 'avatar' | 'icon' | 'route' | 'actionable';
|
|
15
|
-
text: string;
|
|
16
|
-
image?: string;
|
|
17
|
-
icon?: string;
|
|
18
|
-
comments?: string;
|
|
19
|
-
subtitle?: string;
|
|
20
|
-
endNote?: string;
|
|
21
|
-
actions?: ItemAction[];
|
|
22
|
-
color?: string;
|
|
23
|
-
lines?: 'full' | 'inset' | 'none';
|
|
24
|
-
button?: boolean;
|
|
25
|
-
detail?: boolean;
|
|
26
|
-
clickable?: boolean;
|
|
27
|
-
detailIcon?: string;
|
|
28
|
-
disabled?: boolean;
|
|
29
|
-
ellipsis?: boolean;
|
|
30
|
-
href?: string;
|
|
31
|
-
routerLink?: string | any[];
|
|
32
|
-
unreadIndicator?: boolean;
|
|
33
|
-
}
|
|
34
|
-
export interface ListMetadata {
|
|
35
|
-
color: Color;
|
|
36
|
-
rounded: boolean;
|
|
37
|
-
shadowed: boolean;
|
|
38
|
-
title: string;
|
|
39
|
-
items: ItemMetadata[];
|
|
40
|
-
}
|
|
41
5
|
export declare class ItemListComponent implements OnInit {
|
|
42
6
|
states: {
|
|
43
7
|
ENABLED: "ENABLED";
|
|
@@ -45,6 +9,7 @@ export declare class ItemListComponent implements OnInit {
|
|
|
45
9
|
WORKING: "WORKING";
|
|
46
10
|
ERROR: "ERROR";
|
|
47
11
|
};
|
|
12
|
+
defaultColor: string;
|
|
48
13
|
props: ListMetadata;
|
|
49
14
|
onClick: EventEmitter<string>;
|
|
50
15
|
onActionClick: EventEmitter<string>;
|
|
@@ -52,6 +17,7 @@ export declare class ItemListComponent implements OnInit {
|
|
|
52
17
|
ngOnInit(): void;
|
|
53
18
|
clickHandler(token?: string): void;
|
|
54
19
|
onActionClickHandler(token?: string): void;
|
|
20
|
+
color(): string;
|
|
55
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<ItemListComponent, never>;
|
|
56
22
|
static ɵcmp: i0.ɵɵComponentDeclaration<ItemListComponent, "val-item-list", never, { "props": { "alias": "props"; "required": false; }; }, { "onClick": "onClick"; "onActionClick": "onActionClick"; }, never, never, true, never>;
|
|
57
23
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Color } from '@ionic/core';
|
|
2
|
+
import { ComponentState } from '../../types';
|
|
3
|
+
export type ItemAction = {
|
|
4
|
+
token: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
description: string;
|
|
7
|
+
state: ComponentState;
|
|
8
|
+
};
|
|
9
|
+
export interface ItemMetadata {
|
|
10
|
+
token?: string;
|
|
11
|
+
mode: 'justext' | 'subtitule' | 'avatar' | 'icon' | 'route' | 'actionable';
|
|
12
|
+
text: string;
|
|
13
|
+
image?: string;
|
|
14
|
+
icon?: string;
|
|
15
|
+
comments?: string;
|
|
16
|
+
subtitle?: string;
|
|
17
|
+
endNote?: string;
|
|
18
|
+
actions?: ItemAction[];
|
|
19
|
+
color?: string;
|
|
20
|
+
lines?: 'full' | 'inset' | 'none';
|
|
21
|
+
button?: boolean;
|
|
22
|
+
detail?: boolean;
|
|
23
|
+
clickable?: boolean;
|
|
24
|
+
detailIcon?: string;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
ellipsis?: boolean;
|
|
27
|
+
href?: string;
|
|
28
|
+
routerLink?: string | any[];
|
|
29
|
+
unreadIndicator?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface ListMetadata {
|
|
32
|
+
color: Color;
|
|
33
|
+
bordered: boolean;
|
|
34
|
+
rounded: boolean;
|
|
35
|
+
shadowed: boolean;
|
|
36
|
+
title: string;
|
|
37
|
+
items: ItemMetadata[];
|
|
38
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export * from './lib/components/molecules/text-input/text-input.component';
|
|
|
54
54
|
export * from './lib/components/molecules/title-block/title-block.component';
|
|
55
55
|
export * from './lib/components/molecules/title-block/types';
|
|
56
56
|
export * from './lib/components/molecules/expandable-text/expandable-text.component';
|
|
57
|
+
export * from './lib/components/molecules/expandable-text/types';
|
|
57
58
|
export * from './lib/components/organisms/banner/banner.component';
|
|
58
59
|
export * from './lib/components/organisms/banner/types';
|
|
59
60
|
export * from './lib/components/organisms/footer/footer.component';
|
|
@@ -70,6 +71,7 @@ export * from './lib/components/organisms/wizard/types';
|
|
|
70
71
|
export * from './lib/components/organisms/wizard/wizard-footer/wizard-footer.component';
|
|
71
72
|
export * from './lib/components/organisms/wizard/wizard.component';
|
|
72
73
|
export * from './lib/components/organisms/item-list/item-list.component';
|
|
74
|
+
export * from './lib/components/organisms/item-list/types';
|
|
73
75
|
export * from './lib/components/templates/layout/layout.component';
|
|
74
76
|
export * from './lib/components/templates/simple/simple.component';
|
|
75
77
|
export * from './lib/components/templates/simple/types';
|