angular-dumb-lib 0.0.5 → 0.0.8
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/angular-dumb-lib.mjs +5 -0
- package/esm2022/lib/angular-dumb-lib.component.mjs +20 -0
- package/esm2022/lib/angular-dumb-lib.module.mjs +32 -0
- package/esm2022/lib/angular-dumb-lib.service.mjs +15 -0
- package/esm2022/lib/components/atoms/button/button.component.mjs +34 -0
- package/esm2022/lib/components/atoms/input/input.component.mjs +57 -0
- package/esm2022/lib/components/molecules/content-design/content-design.component.mjs +32 -0
- package/esm2022/lib/shared/enums/enum.mjs +69 -0
- package/esm2022/lib/shared/interfaces/interface.mjs +2 -0
- package/esm2022/public-api.mjs +10 -0
- package/fesm2022/angular-dumb-lib.mjs +243 -0
- package/fesm2022/angular-dumb-lib.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/angular-dumb-lib.component.d.ts +5 -0
- package/lib/angular-dumb-lib.module.d.ts +9 -0
- package/lib/angular-dumb-lib.service.d.ts +6 -0
- package/lib/components/atoms/button/button.component.d.ts +12 -0
- package/lib/components/atoms/input/input.component.d.ts +19 -0
- package/lib/components/molecules/content-design/content-design.component.d.ts +12 -0
- package/lib/shared/enums/enum.d.ts +59 -0
- package/lib/shared/interfaces/interface.d.ts +58 -0
- package/package.json +16 -3
- package/{src/public-api.ts → public-api.d.ts} +1 -5
- package/ng-package.json +0 -7
- package/src/lib/angular-dumb-lib.component.spec.ts +0 -21
- package/src/lib/angular-dumb-lib.component.ts +0 -15
- package/src/lib/angular-dumb-lib.module.ts +0 -19
- package/src/lib/angular-dumb-lib.service.spec.ts +0 -16
- package/src/lib/angular-dumb-lib.service.ts +0 -9
- package/src/lib/components/atoms/button/button.component.html +0 -15
- package/src/lib/components/atoms/button/button.component.scss +0 -76
- package/src/lib/components/atoms/button/button.component.ts +0 -33
- package/src/lib/components/atoms/datetime-picker/datetime-picker.component.html +0 -7
- package/src/lib/components/atoms/datetime-picker/datetime-picker.component.scss +0 -24
- package/src/lib/components/atoms/datetime-picker/datetime-picker.component.ts +0 -59
- package/src/lib/components/atoms/file-selection/file-selection.component.html +0 -24
- package/src/lib/components/atoms/file-selection/file-selection.component.scss +0 -35
- package/src/lib/components/atoms/file-selection/file-selection.component.ts +0 -86
- package/src/lib/components/atoms/input/input.component.html +0 -28
- package/src/lib/components/atoms/input/input.component.scss +0 -64
- package/src/lib/components/atoms/input/input.component.ts +0 -57
- package/src/lib/components/atoms/loading/loading.component.html +0 -3
- package/src/lib/components/atoms/loading/loading.component.scss +0 -36
- package/src/lib/components/atoms/loading/loading.component.ts +0 -21
- package/src/lib/components/atoms/selection/selection.component.html +0 -38
- package/src/lib/components/atoms/selection/selection.component.scss +0 -65
- package/src/lib/components/atoms/selection/selection.component.ts +0 -84
- package/src/lib/components/atoms/slider/slider.component.html +0 -14
- package/src/lib/components/atoms/slider/slider.component.scss +0 -50
- package/src/lib/components/atoms/slider/slider.component.ts +0 -37
- package/src/lib/components/atoms/tags/tags.component.html +0 -25
- package/src/lib/components/atoms/tags/tags.component.scss +0 -58
- package/src/lib/components/atoms/tags/tags.component.ts +0 -62
- package/src/lib/components/molecules/cards/cards.component.html +0 -12
- package/src/lib/components/molecules/cards/cards.component.scss +0 -14
- package/src/lib/components/molecules/cards/cards.component.ts +0 -19
- package/src/lib/components/molecules/content-design/content-design.component.html +0 -14
- package/src/lib/components/molecules/content-design/content-design.component.scss +0 -68
- package/src/lib/components/molecules/content-design/content-design.component.ts +0 -32
- package/src/lib/components/molecules/form/form.component.html +0 -22
- package/src/lib/components/molecules/form/form.component.scss +0 -17
- package/src/lib/components/molecules/form/form.component.ts +0 -64
- package/src/lib/components/molecules/modal/modal.component.html +0 -16
- package/src/lib/components/molecules/modal/modal.component.scss +0 -83
- package/src/lib/components/molecules/modal/modal.component.ts +0 -48
- package/src/lib/components/molecules/paginator/paginator.component.html +0 -25
- package/src/lib/components/molecules/paginator/paginator.component.scss +0 -27
- package/src/lib/components/molecules/paginator/paginator.component.ts +0 -126
- package/src/lib/components/molecules/table/table.component.html +0 -45
- package/src/lib/components/molecules/table/table.component.scss +0 -169
- package/src/lib/components/molecules/table/table.component.ts +0 -40
- package/src/lib/components/pages/footer/footer.component.html +0 -32
- package/src/lib/components/pages/footer/footer.component.scss +0 -69
- package/src/lib/components/pages/footer/footer.component.ts +0 -16
- package/src/lib/components/pages/login/login.component.html +0 -10
- package/src/lib/components/pages/login/login.component.scss +0 -32
- package/src/lib/components/pages/login/login.component.ts +0 -32
- package/src/lib/components/pages/menu/menu.component.html +0 -18
- package/src/lib/components/pages/menu/menu.component.scss +0 -87
- package/src/lib/components/pages/menu/menu.component.ts +0 -26
- package/src/lib/components/pages/version/version.component.html +0 -3
- package/src/lib/components/pages/version/version.component.scss +0 -0
- package/src/lib/components/pages/version/version.component.ts +0 -28
- package/src/lib/shared/constants/constant.ts +0 -7
- package/src/lib/shared/enums/enum.ts +0 -68
- package/src/lib/shared/interfaces/interface.ts +0 -64
- package/tsconfig.lib.json +0 -14
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -14
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
-
import { IMenuItem } from '../../../shared/interfaces/interface';
|
|
3
|
-
import { MenuDirection } from '../../../shared/enums/enum';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
selector: 'app-menu',
|
|
8
|
-
standalone: true,
|
|
9
|
-
templateUrl: './menu.component.html',
|
|
10
|
-
styleUrls: ['./menu.component.scss'],
|
|
11
|
-
imports: [CommonModule]
|
|
12
|
-
})
|
|
13
|
-
export class MenuComponent implements OnInit {
|
|
14
|
-
@Input() menuItems: IMenuItem[] = [];
|
|
15
|
-
@Input() logoUrl: string = "";
|
|
16
|
-
@Input() direction: MenuDirection = MenuDirection.horizontal;
|
|
17
|
-
|
|
18
|
-
constructor() { }
|
|
19
|
-
|
|
20
|
-
ngOnInit() {
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
get isVertical(): boolean {
|
|
24
|
-
return this.direction === MenuDirection.vertical;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
File without changes
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { Component, OnInit } from '@angular/core';
|
|
3
|
-
import { ContentDesignComponent } from 'angular-dumb-lib';
|
|
4
|
-
import { IContentDesign } from '../../../shared/interfaces/interface';
|
|
5
|
-
import { ContentDirection } from '../../../shared/enums/enum';
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: 'app-version',
|
|
9
|
-
standalone: true,
|
|
10
|
-
templateUrl: './version.component.html',
|
|
11
|
-
styleUrls: ['./version.component.scss'],
|
|
12
|
-
imports: [CommonModule, ContentDesignComponent]
|
|
13
|
-
})
|
|
14
|
-
export class VersionComponent implements OnInit {
|
|
15
|
-
content: IContentDesign;
|
|
16
|
-
constructor() {
|
|
17
|
-
this.content = {
|
|
18
|
-
title: 'Card 2 Title',
|
|
19
|
-
content: 'This is an example of left-aligned content.',
|
|
20
|
-
coverImage: 'https://via.placeholder.com/150',
|
|
21
|
-
contentDirection: ContentDirection.right,
|
|
22
|
-
template: null
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
ngOnInit() {
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { InputType } from "../enums/enum";
|
|
2
|
-
|
|
3
|
-
export const textualInputTypes: InputType[] =
|
|
4
|
-
[InputType.text, InputType.password, InputType.email, InputType.url,
|
|
5
|
-
InputType.tel, InputType.search, InputType.number, InputType.range,
|
|
6
|
-
InputType.hidden, InputType.textarea, InputType.richText, InputType.image];
|
|
7
|
-
export const selectionInputTypes: InputType[] = [InputType.checkbox, InputType.radio, InputType.select]
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export enum DesignType {
|
|
3
|
-
normal = 'normal',
|
|
4
|
-
contrast = 'contrast'
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export enum ButtonType {
|
|
8
|
-
submit = 'submit',
|
|
9
|
-
button = 'button'
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export enum InputGroupType {
|
|
13
|
-
textual = 'textual',
|
|
14
|
-
datetime = 'datetime',
|
|
15
|
-
selection = 'selection',
|
|
16
|
-
file = 'file'
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export enum InputDirection {
|
|
20
|
-
horizontal = 'horizontal',
|
|
21
|
-
vertical = 'vertical'
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export enum InputType {
|
|
25
|
-
image = 'image',
|
|
26
|
-
text = 'text',
|
|
27
|
-
richText = 'richText',
|
|
28
|
-
password = 'password',
|
|
29
|
-
email = 'email',
|
|
30
|
-
url = 'url',
|
|
31
|
-
tel = 'tel',
|
|
32
|
-
search = 'search',
|
|
33
|
-
number = 'number',
|
|
34
|
-
range = 'range',
|
|
35
|
-
hidden = 'hidden',
|
|
36
|
-
textarea = 'textarea',
|
|
37
|
-
datetime = 'datetime',
|
|
38
|
-
checkbox = 'checkbox',
|
|
39
|
-
radio = 'radio',
|
|
40
|
-
select = 'select',
|
|
41
|
-
file = 'file'
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export enum ContentDirection {
|
|
45
|
-
left = 'left',
|
|
46
|
-
right = 'right',
|
|
47
|
-
up = 'up',
|
|
48
|
-
down = 'down'
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export enum SelectionType {
|
|
52
|
-
dropdown = 'dropdown',
|
|
53
|
-
radio = 'radio',
|
|
54
|
-
checkbox = 'checkbox'
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export enum LoadingSize {
|
|
58
|
-
Xbig = 'xbig',
|
|
59
|
-
Big = 'big',
|
|
60
|
-
Medium = 'medium',
|
|
61
|
-
Small = 'small',
|
|
62
|
-
Xsmall = 'xsmall'
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export enum MenuDirection {
|
|
66
|
-
vertical = 'vertical',
|
|
67
|
-
horizontal = 'horizontal'
|
|
68
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { TemplateRef } from "@angular/core";
|
|
2
|
-
import { ButtonType, ContentDirection, DesignType, InputDirection, InputType } from "../enums/enum";
|
|
3
|
-
|
|
4
|
-
export interface IButtonConfig {
|
|
5
|
-
isDisabled?: boolean;
|
|
6
|
-
isActive?: boolean;
|
|
7
|
-
designType?: DesignType;
|
|
8
|
-
label?: string;
|
|
9
|
-
iconValue?: string;
|
|
10
|
-
type?: ButtonType;
|
|
11
|
-
action?: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface IInputConfig {
|
|
15
|
-
required: boolean;
|
|
16
|
-
label?: string;
|
|
17
|
-
name: string;
|
|
18
|
-
placeholder?: string;
|
|
19
|
-
type?: InputType; // Optional, defaults to InputType.text
|
|
20
|
-
direction?: InputDirection; // Optional, defaults to InputDirection.vertical
|
|
21
|
-
isValid?: boolean;
|
|
22
|
-
options?: IDropdownOption[];
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface IContentDesign {
|
|
26
|
-
name?: string;
|
|
27
|
-
coverImage?: string;
|
|
28
|
-
issuedDate?: string;
|
|
29
|
-
title?: string;
|
|
30
|
-
contentDirection?: ContentDirection;
|
|
31
|
-
content?: string;
|
|
32
|
-
template: TemplateRef<unknown> | null;
|
|
33
|
-
button?: IButtonConfig;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface IDropdownOption {
|
|
37
|
-
label: string; // The display label of the option
|
|
38
|
-
value: any; // The underlying value of the option
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export interface IMenuItem {
|
|
42
|
-
label: string,
|
|
43
|
-
route: string
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export interface IModalEvent {
|
|
47
|
-
isDialog: boolean;
|
|
48
|
-
isModalVisible: boolean;
|
|
49
|
-
template: TemplateRef<unknown> | null;
|
|
50
|
-
title: string;
|
|
51
|
-
params?: { [key: string]: any };
|
|
52
|
-
onOk?: ()=> void;
|
|
53
|
-
onCancel?: ()=> void;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface IPaginator {
|
|
57
|
-
itemsPerPage: number;
|
|
58
|
-
selectedPage: number;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export interface IDataColumnConfig {
|
|
62
|
-
field: string;
|
|
63
|
-
name: string
|
|
64
|
-
}
|
package/tsconfig.lib.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
-
{
|
|
3
|
-
"extends": "../../tsconfig.json",
|
|
4
|
-
"compilerOptions": {
|
|
5
|
-
"outDir": "../../out-tsc/lib",
|
|
6
|
-
"declaration": true,
|
|
7
|
-
"declarationMap": true,
|
|
8
|
-
"inlineSources": true,
|
|
9
|
-
"types": []
|
|
10
|
-
},
|
|
11
|
-
"exclude": [
|
|
12
|
-
"**/*.spec.ts"
|
|
13
|
-
]
|
|
14
|
-
}
|
package/tsconfig.lib.prod.json
DELETED
package/tsconfig.spec.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
-
{
|
|
3
|
-
"extends": "../../tsconfig.json",
|
|
4
|
-
"compilerOptions": {
|
|
5
|
-
"outDir": "../../out-tsc/spec",
|
|
6
|
-
"types": [
|
|
7
|
-
"jasmine"
|
|
8
|
-
]
|
|
9
|
-
},
|
|
10
|
-
"include": [
|
|
11
|
-
"**/*.spec.ts",
|
|
12
|
-
"**/*.d.ts"
|
|
13
|
-
]
|
|
14
|
-
}
|