angular-dumb-lib 0.0.10 → 0.0.12
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/angular-dumb-lib.component.mjs +9 -9
- package/esm2022/lib/angular-dumb-lib.module.mjs +1 -1
- package/esm2022/lib/components/atoms/button/button.component.mjs +3 -3
- package/esm2022/lib/components/atoms/input/input.component.mjs +3 -3
- package/esm2022/lib/components/atoms/loading/loading.component.mjs +17 -5
- package/esm2022/lib/components/atoms/menu-widget/menu-widget.component.mjs +36 -0
- package/esm2022/lib/components/atoms/selection/selection.component.mjs +1 -1
- package/esm2022/lib/components/molecules/cards/cards.component.mjs +12 -4
- package/esm2022/lib/components/molecules/content-design/content-design.component.mjs +18 -9
- package/esm2022/lib/components/molecules/form/form.component.mjs +3 -3
- package/esm2022/lib/components/molecules/modal/modal.component.mjs +3 -3
- package/esm2022/lib/components/molecules/paginator/paginator.component.mjs +4 -3
- package/esm2022/lib/components/molecules/table/table.component.mjs +3 -3
- package/esm2022/lib/components/pages/footer/footer.component.mjs +3 -3
- package/esm2022/lib/components/pages/login/login.component.mjs +5 -5
- package/esm2022/lib/components/pages/menu/menu.component.mjs +76 -7
- package/esm2022/lib/shared/constants/constant.mjs +1 -1
- package/esm2022/lib/shared/enums/enum.mjs +12 -1
- package/esm2022/lib/shared/interfaces/interface.mjs +1 -1
- package/esm2022/public-api.mjs +1 -1
- package/fesm2022/angular-dumb-lib.mjs +184 -44
- package/fesm2022/angular-dumb-lib.mjs.map +1 -1
- package/lib/components/atoms/loading/loading.component.d.ts +3 -2
- package/lib/components/atoms/menu-widget/menu-widget.component.d.ts +14 -0
- package/lib/components/molecules/cards/cards.component.d.ts +4 -2
- package/lib/components/molecules/content-design/content-design.component.d.ts +6 -3
- package/lib/components/pages/menu/menu.component.d.ts +27 -3
- package/lib/shared/enums/enum.d.ts +9 -0
- package/lib/shared/interfaces/interface.d.ts +16 -3
- package/package.json +1 -1
- package/src/lib/assets/icons/Loader-Black.gif +0 -0
- package/src/lib/assets/icons/Loader-White.gif +0 -0
- package/src/lib/assets/styles.scss +12 -0
|
@@ -57,3 +57,12 @@ export declare enum MenuDirection {
|
|
|
57
57
|
vertical = "vertical",
|
|
58
58
|
horizontal = "horizontal"
|
|
59
59
|
}
|
|
60
|
+
export declare enum WidgetPosition {
|
|
61
|
+
top = "top",
|
|
62
|
+
bottom = "bottom",
|
|
63
|
+
auto = "auto"
|
|
64
|
+
}
|
|
65
|
+
export declare enum LoadingType {
|
|
66
|
+
black = "black",
|
|
67
|
+
white = "white"
|
|
68
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TemplateRef } from "@angular/core";
|
|
2
|
-
import { ButtonType, ContentDirection, DesignType, InputDirection, InputType } from "../enums/enum";
|
|
2
|
+
import { ButtonType, ContentDirection, DesignType, InputDirection, InputType, WidgetPosition } from "../enums/enum";
|
|
3
3
|
export interface IButtonConfig {
|
|
4
4
|
isDisabled?: boolean;
|
|
5
5
|
isActive?: boolean;
|
|
@@ -20,14 +20,17 @@ export interface IInputConfig {
|
|
|
20
20
|
options?: IDropdownOption[];
|
|
21
21
|
}
|
|
22
22
|
export interface IContentDesign {
|
|
23
|
+
id?: string;
|
|
23
24
|
name?: string;
|
|
24
25
|
coverImage?: string;
|
|
25
26
|
issuedDate?: string;
|
|
26
27
|
title?: string;
|
|
27
28
|
contentDirection?: ContentDirection;
|
|
29
|
+
contentAction?: string;
|
|
28
30
|
content?: string;
|
|
29
31
|
template: TemplateRef<unknown> | null;
|
|
30
32
|
button?: IButtonConfig;
|
|
33
|
+
mapAddress?: string;
|
|
31
34
|
}
|
|
32
35
|
export interface IDropdownOption {
|
|
33
36
|
label: string;
|
|
@@ -35,13 +38,19 @@ export interface IDropdownOption {
|
|
|
35
38
|
}
|
|
36
39
|
export interface IMenuItem {
|
|
37
40
|
label: string;
|
|
38
|
-
|
|
41
|
+
value: string;
|
|
42
|
+
route?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface IWidgetMenuItem extends IMenuItem {
|
|
45
|
+
stick?: WidgetPosition;
|
|
46
|
+
isToggled?: boolean;
|
|
47
|
+
callback?: () => void;
|
|
39
48
|
}
|
|
40
49
|
export interface IModalEvent {
|
|
41
50
|
isDialog: boolean;
|
|
42
51
|
isModalVisible: boolean;
|
|
43
52
|
template: TemplateRef<unknown> | null;
|
|
44
|
-
title
|
|
53
|
+
title?: string;
|
|
45
54
|
params?: {
|
|
46
55
|
[key: string]: any;
|
|
47
56
|
};
|
|
@@ -56,3 +65,7 @@ export interface IDataColumnConfig {
|
|
|
56
65
|
field: string;
|
|
57
66
|
name: string;
|
|
58
67
|
}
|
|
68
|
+
export interface IItemList<T> {
|
|
69
|
+
totalRecords: number;
|
|
70
|
+
items: T[];
|
|
71
|
+
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
|
|
2
|
+
|
|
3
|
+
/* styles.scss */
|
|
4
|
+
:root {
|
|
5
|
+
--main-font-family: Roboto;
|
|
6
|
+
--main-font-size: 15px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
* {
|
|
10
|
+
font-family: var(--main-font-family);
|
|
11
|
+
font-size: var(--main-font-size);
|
|
12
|
+
}
|