@goat-bravos/intern-hub-layout 1.0.1 → 1.0.3
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/dist/intern-hub-layout/README.md +267 -0
- package/dist/intern-hub-layout/fesm2022/goat-bravos-intern-hub-layout.mjs +561 -0
- package/dist/intern-hub-layout/fesm2022/goat-bravos-intern-hub-layout.mjs.map +1 -0
- package/dist/intern-hub-layout/types/goat-bravos-intern-hub-layout.d.ts +189 -0
- package/package.json +46 -33
- package/.editorconfig +0 -17
- package/.vscode/extensions.json +0 -4
- package/.vscode/launch.json +0 -20
- package/.vscode/mcp.json +0 -9
- package/.vscode/tasks.json +0 -42
- package/angular.json +0 -131
- package/ng-package.json +0 -6
- package/projects/layout-templates/README.md +0 -63
- package/projects/layout-templates/ng-package.json +0 -7
- package/projects/layout-templates/package.json +0 -12
- package/projects/layout-templates/src/lib/layout-templates.spec.ts +0 -23
- package/projects/layout-templates/src/lib/layout-templates.ts +0 -15
- package/projects/layout-templates/src/public-api.ts +0 -5
- package/projects/layout-templates/tsconfig.lib.json +0 -17
- package/projects/layout-templates/tsconfig.lib.prod.json +0 -11
- package/projects/layout-templates/tsconfig.spec.json +0 -15
- package/projects/ui-components/README.md +0 -63
- package/projects/ui-components/ng-package.json +0 -7
- package/projects/ui-components/package.json +0 -12
- package/projects/ui-components/src/lib/ui-components.spec.ts +0 -23
- package/projects/ui-components/src/lib/ui-components.ts +0 -15
- package/projects/ui-components/src/public-api.ts +0 -5
- package/projects/ui-components/tsconfig.lib.json +0 -17
- package/projects/ui-components/tsconfig.lib.prod.json +0 -11
- package/projects/ui-components/tsconfig.spec.json +0 -15
- package/public/B/341/273/231 icon message (1).svg" +0 -87
- package/public/B/341/273/231 icon message (2).svg" +0 -104
- package/public/B/341/273/231 icon message.svg" +0 -98
- package/public/FPT-IS-Logo.png +0 -0
- package/public/FPT_IS_Logo.svg +0 -12
- package/public/favicon.ico +0 -0
- package/public/federation.manifest.json +0 -8
- package/src/app/app.config.ts +0 -22
- package/src/app/app.html +0 -1
- package/src/app/app.routes.ts +0 -24
- package/src/app/app.scss +0 -0
- package/src/app/app.spec.ts +0 -23
- package/src/app/app.ts +0 -19
- package/src/index.html +0 -15
- package/src/libs/layouts/header/header.component.html +0 -27
- package/src/libs/layouts/header/header.component.scss +0 -96
- package/src/libs/layouts/header/header.component.ts +0 -13
- package/src/libs/layouts/main-layout/main-layout.component.html +0 -15
- package/src/libs/layouts/main-layout/main-layout.component.scss +0 -35
- package/src/libs/layouts/main-layout/main-layout.component.ts +0 -17
- package/src/libs/layouts/main-layout-test/main-layout-test.component.html +0 -296
- package/src/libs/layouts/main-layout-test/main-layout-test.component.scss +0 -94
- package/src/libs/layouts/main-layout-test/main-layout-test.component.ts +0 -121
- package/src/libs/layouts/sidebar/sidebar.component.html +0 -7
- package/src/libs/layouts/sidebar/sidebar.component.scss +0 -38
- package/src/libs/layouts/sidebar/sidebar.component.ts +0 -19
- package/src/libs/shared/components/approval/approval-list/approval-list.component.html +0 -19
- package/src/libs/shared/components/approval/approval-list/approval-list.component.scss +0 -24
- package/src/libs/shared/components/approval/approval-list/approval-list.component.ts +0 -19
- package/src/libs/shared/components/approval/approval-list-item/approval-list-item.component.html +0 -21
- package/src/libs/shared/components/approval/approval-list-item/approval-list-item.component.scss +0 -28
- package/src/libs/shared/components/approval/approval-list-item/approval-list-item.component.ts +0 -20
- package/src/libs/shared/components/approval/approval-list-item/approval-list-item.model.ts +0 -8
- package/src/libs/shared/components/button/button-container/button-container.component.html +0 -20
- package/src/libs/shared/components/button/button-container/button-container.component.scss +0 -49
- package/src/libs/shared/components/button/button-container/button-container.component.ts +0 -38
- package/src/libs/shared/components/button/button-container/button-container.model.ts +0 -58
- package/src/libs/shared/components/button/label-button/label-button.component.html +0 -11
- package/src/libs/shared/components/button/label-button/label-button.component.scss +0 -13
- package/src/libs/shared/components/button/label-button/label-button.component.ts +0 -18
- package/src/libs/shared/components/functional-label/functional-label.component.html +0 -4
- package/src/libs/shared/components/functional-label/functional-label.component.scss +0 -58
- package/src/libs/shared/components/functional-label/functional-label.component.ts +0 -15
- package/src/libs/shared/components/input/input-calendar/input-calendar.component.html +0 -52
- package/src/libs/shared/components/input/input-calendar/input-calendar.component.scss +0 -98
- package/src/libs/shared/components/input/input-calendar/input-calendar.component.ts +0 -102
- package/src/libs/shared/components/input/input-label/input-label.component.html +0 -0
- package/src/libs/shared/components/input/input-label/input-label.component.scss +0 -0
- package/src/libs/shared/components/input/input-label/input-label.component.ts +0 -0
- package/src/libs/shared/components/input/input-stepper/input-stepper.component.html +0 -62
- package/src/libs/shared/components/input/input-stepper/input-stepper.component.scss +0 -211
- package/src/libs/shared/components/input/input-stepper/input-stepper.component.ts +0 -73
- package/src/libs/shared/components/input/input-text/input-text.component.html +0 -40
- package/src/libs/shared/components/input/input-text/input-text.component.scss +0 -143
- package/src/libs/shared/components/input/input-text/input-text.component.ts +0 -63
- package/src/libs/shared/components/pop-up/pop-up-confirm/pop-up-confirm.component.html +0 -15
- package/src/libs/shared/components/pop-up/pop-up-confirm/pop-up-confirm.component.scss +0 -70
- package/src/libs/shared/components/pop-up/pop-up-confirm/pop-up-confirm.component.ts +0 -29
- package/src/libs/shared/components/table/table-body/table-body.component.html +0 -18
- package/src/libs/shared/components/table/table-body/table-body.component.scss +0 -6
- package/src/libs/shared/components/table/table-body/table-body.component.ts +0 -17
- package/src/libs/shared/components/table/table-header/table-header.component.html +0 -27
- package/src/libs/shared/components/table/table-header/table-header.component.scss +0 -91
- package/src/libs/shared/components/table/table-header/table-header.component.ts +0 -25
- package/src/main.ts +0 -6
- package/src/public-api.ts +0 -22
- package/src/styles.scss +0 -27
- package/tsconfig.app.json +0 -15
- package/tsconfig.json +0 -53
- package/tsconfig.spec.json +0 -15
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
@for (col of columns; track col.key) {
|
|
2
|
-
<th
|
|
3
|
-
scope="col"
|
|
4
|
-
[style.width]="col.width"
|
|
5
|
-
[style.backgroundColor]="backgroundColor"
|
|
6
|
-
[style.color]="textColor"
|
|
7
|
-
>
|
|
8
|
-
<div class="header-container">
|
|
9
|
-
<div class="header-content">
|
|
10
|
-
@if (headerIconLeft) {
|
|
11
|
-
<div class="icon-left">
|
|
12
|
-
<i [class]="headerIconLeft"></i>
|
|
13
|
-
</div>
|
|
14
|
-
}
|
|
15
|
-
<div class="header-text" [style.font-size]="fontSize">
|
|
16
|
-
{{ col.header }}
|
|
17
|
-
</div>
|
|
18
|
-
@if (headerIconRight) {
|
|
19
|
-
<div class="icon-right">
|
|
20
|
-
<i [class]="headerIconRight"></i>
|
|
21
|
-
</div>
|
|
22
|
-
}
|
|
23
|
-
</div>
|
|
24
|
-
<p class="divider">|</p>
|
|
25
|
-
</div>
|
|
26
|
-
</th>
|
|
27
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
th {
|
|
2
|
-
padding: 0;
|
|
3
|
-
vertical-align: middle;
|
|
4
|
-
height: 44px;
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
|
|
7
|
-
.header-content {
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
width: 100%;
|
|
11
|
-
gap: 8px;
|
|
12
|
-
border-collapse: collapse;
|
|
13
|
-
|
|
14
|
-
.header-text {
|
|
15
|
-
font-weight: 600;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.icon-left,
|
|
19
|
-
.icon-right {
|
|
20
|
-
display: flex;
|
|
21
|
-
align-items: center;
|
|
22
|
-
justify-content: center;
|
|
23
|
-
flex-shrink: 0;
|
|
24
|
-
width: 20px;
|
|
25
|
-
height: 20px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// Khi chỉ có text (không có icons)
|
|
29
|
-
&:has(.header-text:only-child) {
|
|
30
|
-
justify-content: flex-start;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// Khi có icons
|
|
34
|
-
&:has(.icon-left),
|
|
35
|
-
&:has(.icon-right) {
|
|
36
|
-
justify-content: space-between;
|
|
37
|
-
background-color: var(--brand-900);
|
|
38
|
-
.header-text {
|
|
39
|
-
flex: 1;
|
|
40
|
-
text-align: center;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// Khi chỉ có icon bên trái
|
|
45
|
-
&:has(.icon-left):not(:has(.icon-right)) {
|
|
46
|
-
justify-content: flex-start;
|
|
47
|
-
|
|
48
|
-
.header-text {
|
|
49
|
-
flex: 1;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
// Khi chỉ có icon bên phải
|
|
54
|
-
&:has(.icon-right):not(:has(.icon-left)) {
|
|
55
|
-
justify-content: space-between;
|
|
56
|
-
|
|
57
|
-
.header-text {
|
|
58
|
-
flex: 1;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/* Separator line between columns */
|
|
65
|
-
th:not(:last-child) {
|
|
66
|
-
border-right: 1px solid rgba(0, 0, 0, 0.1);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.table-header {
|
|
70
|
-
width: 100%;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.header-container {
|
|
74
|
-
display: flex;
|
|
75
|
-
align-items: center;
|
|
76
|
-
width: 100%;
|
|
77
|
-
padding: 0 8px;
|
|
78
|
-
box-sizing: border-box;
|
|
79
|
-
height: 100%;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.divider {
|
|
83
|
-
display: flex;
|
|
84
|
-
align-items: center;
|
|
85
|
-
justify-content: center;
|
|
86
|
-
height: 20px;
|
|
87
|
-
width: 1px;
|
|
88
|
-
background-color: rgba(0, 0, 0, 0.1);
|
|
89
|
-
margin: 0 8px;
|
|
90
|
-
color: transparent; /* Text content '|' hidden or style it */
|
|
91
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
|
|
4
|
-
export interface ColumnConfig {
|
|
5
|
-
header: string;
|
|
6
|
-
key: string;
|
|
7
|
-
width: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@Component({
|
|
11
|
-
selector: 'tr[app-table-header]', // ✅ Attribute selector on tr
|
|
12
|
-
standalone: true,
|
|
13
|
-
imports: [CommonModule],
|
|
14
|
-
templateUrl: './table-header.component.html',
|
|
15
|
-
styleUrl: './table-header.component.scss',
|
|
16
|
-
})
|
|
17
|
-
export class TableHeaderComponent {
|
|
18
|
-
@Input() columns: ColumnConfig[] = [];
|
|
19
|
-
@Input() backgroundColor?: string;
|
|
20
|
-
@Input({ transform: (value: string | undefined) => value || '#ffffff' })
|
|
21
|
-
textColor: string = '#ffffff';
|
|
22
|
-
@Input() headerIconLeft?: string;
|
|
23
|
-
@Input() headerIconRight?: string;
|
|
24
|
-
@Input() fontSize: string = 'var(--font-xs)';
|
|
25
|
-
}
|
package/src/main.ts
DELETED
package/src/public-api.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Public API Surface of intern-hub-layout
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
export * from './libs/layouts/main-layout/main-layout.component';
|
|
6
|
-
export * from './libs/layouts/header/header.component';
|
|
7
|
-
export * from './libs/layouts/sidebar/sidebar.component';
|
|
8
|
-
|
|
9
|
-
export * from './libs/shared/components/button/button-container/button-container.component';
|
|
10
|
-
export * from './libs/shared/components/button/label-button/label-button.component';
|
|
11
|
-
|
|
12
|
-
export * from './libs/shared/components/input/input-text/input-text.component';
|
|
13
|
-
export * from './libs/shared/components/input/input-stepper/input-stepper.component';
|
|
14
|
-
export * from './libs/shared/components/input/input-calendar/input-calendar.component';
|
|
15
|
-
|
|
16
|
-
export * from './libs/shared/components/table/table-header/table-header.component';
|
|
17
|
-
export * from './libs/shared/components/table/table-body/table-body.component';
|
|
18
|
-
|
|
19
|
-
export * from './libs/shared/components/approval/approval-list/approval-list.component';
|
|
20
|
-
export * from './libs/shared/components/approval/approval-list-item/approval-list-item.model';
|
|
21
|
-
|
|
22
|
-
export * from './libs/shared/components/pop-up/pop-up-confirm/pop-up-confirm.component';
|
package/src/styles.scss
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
@use 'dynamic-ds/src/lib/styles/system-design';
|
|
2
|
-
|
|
3
|
-
@import url('https://rsms.me/inter/inter.css');
|
|
4
|
-
|
|
5
|
-
// Apply Inter font globally
|
|
6
|
-
:root {
|
|
7
|
-
font-family: 'Inter', sans-serif;
|
|
8
|
-
font-feature-settings:
|
|
9
|
-
'liga' 1,
|
|
10
|
-
'calt' 1; /* fix for Chrome */
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@supports (font-variation-settings: normal) {
|
|
14
|
-
:root {
|
|
15
|
-
font-family: 'InterVariable', sans-serif;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
* {
|
|
20
|
-
font-family: 'Inter', sans-serif;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
body {
|
|
24
|
-
font-family: 'Inter', sans-serif;
|
|
25
|
-
margin: 0;
|
|
26
|
-
padding: 0;
|
|
27
|
-
}
|
package/tsconfig.app.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
|
2
|
-
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
|
3
|
-
{
|
|
4
|
-
"extends": "./tsconfig.json",
|
|
5
|
-
"compilerOptions": {
|
|
6
|
-
"outDir": "./out-tsc/app",
|
|
7
|
-
"types": []
|
|
8
|
-
},
|
|
9
|
-
"include": [
|
|
10
|
-
"src/**/*.ts"
|
|
11
|
-
],
|
|
12
|
-
"exclude": [
|
|
13
|
-
"src/**/*.spec.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
|
2
|
-
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
|
3
|
-
{
|
|
4
|
-
"compileOnSave": false,
|
|
5
|
-
"compilerOptions": {
|
|
6
|
-
"strict": true,
|
|
7
|
-
"noImplicitOverride": true,
|
|
8
|
-
"noPropertyAccessFromIndexSignature": true,
|
|
9
|
-
"noImplicitReturns": true,
|
|
10
|
-
"noFallthroughCasesInSwitch": true,
|
|
11
|
-
"skipLibCheck": true,
|
|
12
|
-
"isolatedModules": true,
|
|
13
|
-
"experimentalDecorators": true,
|
|
14
|
-
"importHelpers": true,
|
|
15
|
-
"target": "ES2022",
|
|
16
|
-
"module": "preserve",
|
|
17
|
-
"paths": {
|
|
18
|
-
"layout-templates": [
|
|
19
|
-
"./dist/layout-templates"
|
|
20
|
-
],
|
|
21
|
-
"ui-components": [
|
|
22
|
-
"./dist/ui-components"
|
|
23
|
-
]
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"angularCompilerOptions": {
|
|
27
|
-
"enableI18nLegacyMessageIdFormat": false,
|
|
28
|
-
"strictInjectionParameters": true,
|
|
29
|
-
"strictInputAccessModifiers": true,
|
|
30
|
-
"strictTemplates": true
|
|
31
|
-
},
|
|
32
|
-
"files": [],
|
|
33
|
-
"references": [
|
|
34
|
-
{
|
|
35
|
-
"path": "./tsconfig.app.json"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"path": "./tsconfig.spec.json"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"path": "./projects/ui-components/tsconfig.lib.json"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"path": "./projects/ui-components/tsconfig.spec.json"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"path": "./projects/layout-templates/tsconfig.lib.json"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"path": "./projects/layout-templates/tsconfig.spec.json"
|
|
51
|
-
}
|
|
52
|
-
]
|
|
53
|
-
}
|
package/tsconfig.spec.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
|
2
|
-
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
|
3
|
-
{
|
|
4
|
-
"extends": "./tsconfig.json",
|
|
5
|
-
"compilerOptions": {
|
|
6
|
-
"outDir": "./out-tsc/spec",
|
|
7
|
-
"types": [
|
|
8
|
-
"vitest/globals"
|
|
9
|
-
]
|
|
10
|
-
},
|
|
11
|
-
"include": [
|
|
12
|
-
"src/**/*.d.ts",
|
|
13
|
-
"src/**/*.spec.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|