@skysoftware-co/bayan-core-widgets-ui 0.0.6 → 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/.editorconfig +17 -0
- package/.github/copilot/WidgetDevelopmentGuide.md +632 -0
- package/.github/copilot/WidgetProjectStructure.md +81 -0
- package/.github/copilot/git.md +176 -0
- package/.github/copilot/guideline.md +466 -0
- package/.github/copilot-instructions.md +697 -0
- package/.github/prompts/As world class developer, create unit tests for.prompt.md +7 -0
- package/README.md +1 -337
- package/Web.config +7 -0
- package/angular.json +43 -0
- package/package.json +54 -31
- package/projects/bayan-core-ui/README.md +522 -0
- package/projects/bayan-core-ui/package.json +36 -0
- package/{src → projects/bayan-core-ui/src}/lib/shared/menu.service.ts +1 -1
- package/{src → projects/bayan-core-ui/src}/lib/top-menu-widget/components/about-dialog-widget/about-dialog-widget.component.html +1 -1
- package/{src → projects/bayan-core-ui/src}/lib/top-menu-widget/components/about-dialog-widget/about-dialog-widget.component.ts +4 -4
- package/{src → projects/bayan-core-ui/src}/lib/top-menu-widget/components/change-password-widget/change-password-widget.component.ts +1 -1
- package/{src → projects/bayan-core-ui/src}/lib/top-menu-widget/components/global-search-widget/global-search-widget.component.ts +9 -10
- package/{src → projects/bayan-core-ui/src}/lib/top-menu-widget/components/item-widget/item-widget.component.html +2 -2
- package/{src → projects/bayan-core-ui/src}/lib/top-menu-widget/components/item-widget/item-widget.component.ts +8 -23
- package/{src → projects/bayan-core-ui/src}/lib/top-menu-widget/components/notifications-widget/notifications-widget.component.html +1 -1
- package/{src → projects/bayan-core-ui/src}/lib/top-menu-widget/components/notifications-widget/notifications-widget.component.ts +3 -3
- package/projects/bayan-core-ui/src/lib/top-menu-widget/components/settings-widget/settings-widget.component.html +111 -0
- package/{src → projects/bayan-core-ui/src}/lib/top-menu-widget/components/settings-widget/settings-widget.component.ts +7 -5
- package/{src → projects/bayan-core-ui/src}/lib/top-menu-widget/components/user-panel-widget/user-panel-widget.component.html +2 -1
- package/{src → projects/bayan-core-ui/src}/lib/top-menu-widget/components/user-panel-widget/user-panel-widget.component.ts +1 -1
- package/{src → projects/bayan-core-ui/src}/lib/top-menu-widget/top-menu-widget.component.html +6 -2
- package/{src → projects/bayan-core-ui/src}/lib/top-menu-widget/top-menu-widget.component.ts +21 -5
- package/projects/bayan-core-ui/src/lib/top-menu-widget/top-menu-widget.styles.css +1378 -0
- package/projects/bayan-core-ui/src/public-api.ts +14 -0
- package/tsconfig.json +40 -0
- package/src/lib/top-menu-widget/components/settings-widget/settings-widget.component.html +0 -119
- package/src/lib/top-menu-widget/top-menu-widget.styles.css +0 -576
- package/src/public-api.ts +0 -7
- /package/{ng-package.json → projects/bayan-core-ui/ng-package.json} +0 -0
- /package/{src → projects/bayan-core-ui/src}/assets/i18n/ar.json +0 -0
- /package/{src → projects/bayan-core-ui/src}/assets/i18n/en.json +0 -0
- /package/{src → projects/bayan-core-ui/src}/assets/i18n/fr.json +0 -0
- /package/{src → projects/bayan-core-ui/src}/lib/shared/common-methods/navigation.utils.ts +0 -0
- /package/{src → projects/bayan-core-ui/src}/lib/shared/menu.dtos.ts +0 -0
- /package/{src → projects/bayan-core-ui/src}/lib/top-menu-widget/components/change-password-widget/change-password-widget.component.html +0 -0
- /package/{src → projects/bayan-core-ui/src}/lib/top-menu-widget/components/global-search-widget/global-search-widget.component.html +0 -0
- /package/{src → projects/bayan-core-ui/src}/lib/top-menu-widget/top-menu-widget.models.ts +0 -0
- /package/{tsconfig.lib.json → projects/bayan-core-ui/tsconfig.lib.json} +0 -0
- /package/{tsconfig.lib.prod.json → projects/bayan-core-ui/tsconfig.lib.prod.json} +0 -0
- /package/{tsconfig.spec.json → projects/bayan-core-ui/tsconfig.spec.json} +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Public API Surface of bayan-core-ui
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export * from './lib/top-menu-widget/top-menu-widget.component';
|
|
6
|
+
export * from './lib/top-menu-widget/components/about-dialog-widget/about-dialog-widget.component';
|
|
7
|
+
export * from './lib/top-menu-widget/components/change-password-widget/change-password-widget.component';
|
|
8
|
+
export * from './lib/top-menu-widget/components/global-search-widget/global-search-widget.component';
|
|
9
|
+
export * from './lib/top-menu-widget/components/item-widget/item-widget.component';
|
|
10
|
+
export * from './lib/top-menu-widget/components/notifications-widget/notifications-widget.component';
|
|
11
|
+
export * from './lib/top-menu-widget/components/settings-widget/settings-widget.component';
|
|
12
|
+
export * from './lib/top-menu-widget/components/user-panel-widget/user-panel-widget.component';
|
|
13
|
+
export * from './lib/shared/menu.dtos';
|
|
14
|
+
export * from './lib/shared/menu.service';
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
"paths": {
|
|
7
|
+
"BayanCoreComponents": [
|
|
8
|
+
"./dist/bayan-core-ui"
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
"rootDir": "./projects/bayan-core-ui/src",
|
|
12
|
+
"outDir": "./dist/out-tsc",
|
|
13
|
+
"strict": true,
|
|
14
|
+
"noImplicitOverride": true,
|
|
15
|
+
"noPropertyAccessFromIndexSignature": true,
|
|
16
|
+
"noImplicitReturns": true,
|
|
17
|
+
"noFallthroughCasesInSwitch": true,
|
|
18
|
+
"skipLibCheck": true,
|
|
19
|
+
"isolatedModules": true,
|
|
20
|
+
"esModuleInterop": true,
|
|
21
|
+
"resolveJsonModule": true,
|
|
22
|
+
"sourceMap": true,
|
|
23
|
+
"declaration": false,
|
|
24
|
+
"experimentalDecorators": true,
|
|
25
|
+
"moduleResolution": "bundler",
|
|
26
|
+
"importHelpers": true,
|
|
27
|
+
"target": "ES2022",
|
|
28
|
+
"module": "ES2022",
|
|
29
|
+
"lib": [
|
|
30
|
+
"ES2022",
|
|
31
|
+
"dom"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"angularCompilerOptions": {
|
|
35
|
+
"enableI18nLegacyMessageIdFormat": false,
|
|
36
|
+
"strictInjectionParameters": true,
|
|
37
|
+
"strictInputAccessModifiers": true,
|
|
38
|
+
"strictTemplates": true
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
<div [class]="dropdownHostClass" [class.open]="dropdownOpen()">
|
|
2
|
-
<a href="#" [class]="toggleBtnClass" (click)="toggleDropdown($event)" [title]="'Settings' | translate">
|
|
3
|
-
<fa-icon [icon]="cogIcon" class="fs-6"></fa-icon>
|
|
4
|
-
</a>
|
|
5
|
-
|
|
6
|
-
@if (dropdownOpen()) {
|
|
7
|
-
<ul [class]="menuPanelClass">
|
|
8
|
-
@if (preferences?.UseAlternateNames) {
|
|
9
|
-
<li>
|
|
10
|
-
<a [class]="alternateNamesLinkClass" (click)="onAlternateNamesClick($event)">
|
|
11
|
-
@if (preferences?.UseAlternateNames) {
|
|
12
|
-
<fa-icon [class]="indicatorActiveClass" [icon]="checkIcon"></fa-icon>
|
|
13
|
-
} @else {
|
|
14
|
-
<fa-icon [class]="indicatorInvisibleClass" [icon]="checkIcon"></fa-icon>
|
|
15
|
-
}
|
|
16
|
-
{{ 'DisplayAlternateNames' | translate }}
|
|
17
|
-
</a>
|
|
18
|
-
</li>
|
|
19
|
-
<li><hr class="dropdown-divider"></li>
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@if (hrBlockState?.UserCanBlockModule) {
|
|
23
|
-
<li>
|
|
24
|
-
@if (hrBlockState?.IsBlocked) {
|
|
25
|
-
<a [class]="alternateNamesLinkClass" (click)="releaseModule(BlockableModule.HumanResources, $event)">
|
|
26
|
-
<fa-icon [class]="indicatorActiveClass" [icon]="checkIcon"></fa-icon>
|
|
27
|
-
{{ 'ReleaseHR' | translate }}
|
|
28
|
-
</a>
|
|
29
|
-
} @else {
|
|
30
|
-
<a [class]="alternateNamesLinkClass" (click)="blockModule(BlockableModule.HumanResources, $event)">
|
|
31
|
-
<fa-icon [class]="indicatorInvisibleClass" [icon]="checkIcon"></fa-icon>
|
|
32
|
-
{{ 'BlockHR' | translate }}
|
|
33
|
-
</a>
|
|
34
|
-
}
|
|
35
|
-
</li>
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@if (tkBlockState?.UserCanBlockModule) {
|
|
39
|
-
<li>
|
|
40
|
-
@if (tkBlockState?.IsBlocked) {
|
|
41
|
-
<a [class]="alternateNamesLinkClass" (click)="releaseModule(BlockableModule.Timekeeping, $event)">
|
|
42
|
-
<fa-icon [class]="indicatorActiveClass" [icon]="checkIcon"></fa-icon>
|
|
43
|
-
{{ 'ReleaseTK' | translate }}
|
|
44
|
-
</a>
|
|
45
|
-
} @else {
|
|
46
|
-
<a [class]="alternateNamesLinkClass" (click)="blockModule(BlockableModule.Timekeeping, $event)">
|
|
47
|
-
<fa-icon [class]="indicatorInvisibleClass" [icon]="checkIcon"></fa-icon>
|
|
48
|
-
{{ 'BlockTK' | translate }}
|
|
49
|
-
</a>
|
|
50
|
-
}
|
|
51
|
-
</li>
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
@if (hrBlockState?.UserCanBlockModule || tkBlockState?.UserCanBlockModule) {
|
|
55
|
-
<li><hr class="dropdown-divider"></li>
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
<li>
|
|
59
|
-
<span [class]="sectionLabelClass">{{ 'EmployeeNamesMode' | translate }}</span>
|
|
60
|
-
</li>
|
|
61
|
-
<li>
|
|
62
|
-
<a [class]="menuRowClass" (click)="onNameModeClick(EmployeeNamesModeOption.ShortNames, $event); $event.stopPropagation()">
|
|
63
|
-
@if (preferences?.EmployeeNamesMode === EmployeeNamesModeOption.ShortNames) {
|
|
64
|
-
<fa-icon [class]="indicatorClass" [icon]="checkIcon"></fa-icon>
|
|
65
|
-
}
|
|
66
|
-
{{ 'ShortNames' | translate }}
|
|
67
|
-
</a>
|
|
68
|
-
</li>
|
|
69
|
-
<li>
|
|
70
|
-
<a [class]="menuRowClass" (click)="onNameModeClick(EmployeeNamesModeOption.StandardNames, $event); $event.stopPropagation()">
|
|
71
|
-
@if (preferences?.EmployeeNamesMode === EmployeeNamesModeOption.StandardNames) {
|
|
72
|
-
<fa-icon [class]="indicatorClass" [icon]="checkIcon"></fa-icon>
|
|
73
|
-
}
|
|
74
|
-
{{ 'StandardNames' | translate }}
|
|
75
|
-
</a>
|
|
76
|
-
</li>
|
|
77
|
-
<li>
|
|
78
|
-
<a [class]="menuRowClass" (click)="onNameModeClick(EmployeeNamesModeOption.FullNames, $event); $event.stopPropagation()">
|
|
79
|
-
@if (preferences?.EmployeeNamesMode === EmployeeNamesModeOption.FullNames) {
|
|
80
|
-
<fa-icon [class]="indicatorClass" [icon]="checkIcon"></fa-icon>
|
|
81
|
-
}
|
|
82
|
-
{{ 'FullNames' | translate }}
|
|
83
|
-
</a>
|
|
84
|
-
</li>
|
|
85
|
-
<li><hr [class]="dividerClass"></li>
|
|
86
|
-
|
|
87
|
-
<li>
|
|
88
|
-
<a [class]="menuRowClass" (click)="onChangePasswordClick($event)">
|
|
89
|
-
<span [class]="indicatorClass"></span>
|
|
90
|
-
{{ 'ChangePassword' | translate }}
|
|
91
|
-
</a>
|
|
92
|
-
</li>
|
|
93
|
-
|
|
94
|
-
<li><hr [class]="dividerClass"></li>
|
|
95
|
-
|
|
96
|
-
<li>
|
|
97
|
-
<a [class]="menuRowClass" (click)="onOpenAboutClick($event)">
|
|
98
|
-
<fa-icon [class]="indicatorClass" [icon]="infoIcon"></fa-icon>
|
|
99
|
-
{{ 'About' | translate }}
|
|
100
|
-
</a>
|
|
101
|
-
</li>
|
|
102
|
-
</ul>
|
|
103
|
-
}
|
|
104
|
-
</div>
|
|
105
|
-
|
|
106
|
-
<bayan-core-change-password-widget
|
|
107
|
-
[visible]="showChangePassword"
|
|
108
|
-
[config]="changePasswordDialog"
|
|
109
|
-
(visibleChange)="showChangePassword = !!$event">
|
|
110
|
-
</bayan-core-change-password-widget>
|
|
111
|
-
|
|
112
|
-
<bayan-core-about-dialog-widget
|
|
113
|
-
[visible]="showAbout"
|
|
114
|
-
[config]="aboutDialog"
|
|
115
|
-
[licenseUrl]="licenseUrl"
|
|
116
|
-
[releaseNotesUrl]="releaseNotesUrl"
|
|
117
|
-
[supportUrl]="supportUrl"
|
|
118
|
-
(visibleChange)="showAbout = !!$event">
|
|
119
|
-
</bayan-core-about-dialog-widget>
|