@skysoftware-co/bayan-core-widgets-ui 0.0.6 → 0.0.9

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.
Files changed (47) hide show
  1. package/README.md +183 -0
  2. package/fesm2022/skysoftware-co-bayan-core-widgets-ui.mjs +1232 -0
  3. package/fesm2022/skysoftware-co-bayan-core-widgets-ui.mjs.map +1 -0
  4. package/index.d.ts +5 -0
  5. package/lib/shared/common-methods/navigation.utils.d.ts +3 -0
  6. package/lib/shared/menu.dtos.d.ts +90 -0
  7. package/lib/shared/menu.service.d.ts +23 -0
  8. package/lib/top-menu-widget/components/about-dialog-widget/about-dialog-widget.component.d.ts +36 -0
  9. package/lib/top-menu-widget/components/change-password-widget/change-password-widget.component.d.ts +33 -0
  10. package/lib/top-menu-widget/components/global-search-widget/global-search-widget.component.d.ts +58 -0
  11. package/lib/top-menu-widget/components/item-widget/item-widget.component.d.ts +28 -0
  12. package/lib/top-menu-widget/components/notifications-widget/notifications-widget.component.d.ts +22 -0
  13. package/lib/top-menu-widget/components/settings-widget/settings-widget.component.d.ts +73 -0
  14. package/lib/top-menu-widget/components/user-panel-widget/user-panel-widget.component.d.ts +42 -0
  15. package/lib/top-menu-widget/top-menu-widget.component.d.ts +57 -0
  16. package/lib/top-menu-widget/top-menu-widget.models.d.ts +24 -0
  17. package/package.json +48 -36
  18. package/public-api.d.ts +10 -0
  19. package/ng-package.json +0 -7
  20. package/src/assets/i18n/ar.json +0 -725
  21. package/src/assets/i18n/en.json +0 -683
  22. package/src/assets/i18n/fr.json +0 -687
  23. package/src/lib/shared/common-methods/navigation.utils.ts +0 -21
  24. package/src/lib/shared/menu.dtos.ts +0 -107
  25. package/src/lib/shared/menu.service.ts +0 -157
  26. package/src/lib/top-menu-widget/components/about-dialog-widget/about-dialog-widget.component.html +0 -37
  27. package/src/lib/top-menu-widget/components/about-dialog-widget/about-dialog-widget.component.ts +0 -68
  28. package/src/lib/top-menu-widget/components/change-password-widget/change-password-widget.component.html +0 -56
  29. package/src/lib/top-menu-widget/components/change-password-widget/change-password-widget.component.ts +0 -158
  30. package/src/lib/top-menu-widget/components/global-search-widget/global-search-widget.component.html +0 -39
  31. package/src/lib/top-menu-widget/components/global-search-widget/global-search-widget.component.ts +0 -153
  32. package/src/lib/top-menu-widget/components/item-widget/item-widget.component.html +0 -39
  33. package/src/lib/top-menu-widget/components/item-widget/item-widget.component.ts +0 -95
  34. package/src/lib/top-menu-widget/components/notifications-widget/notifications-widget.component.html +0 -10
  35. package/src/lib/top-menu-widget/components/notifications-widget/notifications-widget.component.ts +0 -89
  36. package/src/lib/top-menu-widget/components/settings-widget/settings-widget.component.html +0 -119
  37. package/src/lib/top-menu-widget/components/settings-widget/settings-widget.component.ts +0 -233
  38. package/src/lib/top-menu-widget/components/user-panel-widget/user-panel-widget.component.html +0 -53
  39. package/src/lib/top-menu-widget/components/user-panel-widget/user-panel-widget.component.ts +0 -140
  40. package/src/lib/top-menu-widget/top-menu-widget.component.html +0 -103
  41. package/src/lib/top-menu-widget/top-menu-widget.component.ts +0 -148
  42. package/src/lib/top-menu-widget/top-menu-widget.models.ts +0 -29
  43. package/src/lib/top-menu-widget/top-menu-widget.styles.css +0 -576
  44. package/src/public-api.ts +0 -7
  45. package/tsconfig.lib.json +0 -16
  46. package/tsconfig.lib.prod.json +0 -9
  47. package/tsconfig.spec.json +0 -13
@@ -0,0 +1,73 @@
1
+ import { ModuleBlockState, AppFramePreferences, EmployeeNamesModeOption, BlockableModule, SystemModule } from '../../../shared/menu.dtos';
2
+ import { ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BayanCoreSettingsWidgetComponent implements OnInit, OnChanges {
5
+ private readonly elementRef;
6
+ private readonly menuService;
7
+ private readonly alertToastService;
8
+ baseUrl: string;
9
+ licenseUrl: string;
10
+ releaseNotesUrl: string;
11
+ supportUrl: string;
12
+ ActivePropertyChanged: boolean;
13
+ systemModule: SystemModule | null;
14
+ checkIcon: any;
15
+ cogIcon: any;
16
+ infoIcon: any;
17
+ dropdownOpen: import("@angular/core").WritableSignal<boolean>;
18
+ showChangePassword: boolean;
19
+ showAbout: boolean;
20
+ currentModule: SystemModule | null;
21
+ SystemModule: typeof SystemModule;
22
+ dropdownHostClass: string;
23
+ toggleBtnClass: string;
24
+ menuPanelClass: string;
25
+ sectionLabelClass: string;
26
+ menuRowClass: string;
27
+ dividerClass: string;
28
+ indicatorClass: string;
29
+ indicatorActiveClass: string;
30
+ indicatorInvisibleClass: string;
31
+ alternateNamesChange: EventEmitter<boolean>;
32
+ nameModeChange: EventEmitter<EmployeeNamesModeOption>;
33
+ preferences: AppFramePreferences | null;
34
+ BlockableModule: typeof BlockableModule;
35
+ EmployeeNamesModeOption: typeof EmployeeNamesModeOption;
36
+ hrBlockState: ModuleBlockState | null;
37
+ tkBlockState: ModuleBlockState | null;
38
+ changePasswordDialog: {
39
+ title: string;
40
+ currentPasswordLabel: string;
41
+ newPasswordLabel: string;
42
+ confirmNewPasswordLabel: string;
43
+ primaryButtonText: string;
44
+ };
45
+ aboutDialog: {
46
+ title: string;
47
+ logoUrl: string;
48
+ version: string;
49
+ versionLabel: string;
50
+ copyright: string;
51
+ statusLabel: string;
52
+ licenseButtonLabel: string;
53
+ releaseNotesButtonLabel: string;
54
+ supportButtonLabel: string;
55
+ closeButtonLabel: string;
56
+ };
57
+ constructor(elementRef: ElementRef<HTMLElement>);
58
+ showAlert(message: string, type?: string): void;
59
+ ngOnInit(): void;
60
+ loadModuleBlockStates(): void;
61
+ loadPreferences(): void;
62
+ ngOnChanges(changes: SimpleChanges): void;
63
+ onDocumentClick(event: MouseEvent): void;
64
+ toggleDropdown(event: Event): void;
65
+ onAlternateNamesClick(event: Event): Promise<void>;
66
+ onNameModeClick(nameMode: EmployeeNamesModeOption, event: Event): Promise<void>;
67
+ onChangePasswordClick(event: Event): void;
68
+ onOpenAboutClick(event: Event): void;
69
+ blockModule(module: BlockableModule, event: Event): Promise<void>;
70
+ releaseModule(module: BlockableModule, event: Event): Promise<void>;
71
+ static ɵfac: i0.ɵɵFactoryDeclaration<BayanCoreSettingsWidgetComponent, never>;
72
+ static ɵcmp: i0.ɵɵComponentDeclaration<BayanCoreSettingsWidgetComponent, "bayan-core-settings-widget", never, { "baseUrl": { "alias": "baseUrl"; "required": false; }; "licenseUrl": { "alias": "licenseUrl"; "required": false; }; "releaseNotesUrl": { "alias": "releaseNotesUrl"; "required": false; }; "supportUrl": { "alias": "supportUrl"; "required": false; }; "ActivePropertyChanged": { "alias": "ActivePropertyChanged"; "required": false; }; "systemModule": { "alias": "systemModule"; "required": false; }; "checkIcon": { "alias": "checkIcon"; "required": false; }; "cogIcon": { "alias": "cogIcon"; "required": false; }; "infoIcon": { "alias": "infoIcon"; "required": false; }; "dropdownOpen": { "alias": "dropdownOpen"; "required": false; }; "dropdownHostClass": { "alias": "dropdownHostClass"; "required": false; }; "toggleBtnClass": { "alias": "toggleBtnClass"; "required": false; }; "menuPanelClass": { "alias": "menuPanelClass"; "required": false; }; "sectionLabelClass": { "alias": "sectionLabelClass"; "required": false; }; "menuRowClass": { "alias": "menuRowClass"; "required": false; }; "dividerClass": { "alias": "dividerClass"; "required": false; }; "indicatorClass": { "alias": "indicatorClass"; "required": false; }; "indicatorActiveClass": { "alias": "indicatorActiveClass"; "required": false; }; "indicatorInvisibleClass": { "alias": "indicatorInvisibleClass"; "required": false; }; }, { "alternateNamesChange": "alternateNamesChange"; "nameModeChange": "nameModeChange"; }, never, never, true, never>;
73
+ }
@@ -0,0 +1,42 @@
1
+ import { ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
+ import { BayanEmployeeBadgeDTO } from '@skysoftware-co/bayan-components-ui';
3
+ import { UserPanel, PropertyOption } from '../../../shared/menu.dtos';
4
+ import * as i0 from "@angular/core";
5
+ export declare class BayanCoreUserPanelWidgetComponent implements OnInit, OnChanges {
6
+ private readonly elementRef;
7
+ private readonly topMenuService;
8
+ baseUrl: string;
9
+ wrapperClass: string;
10
+ dropdownOpenClass: string;
11
+ toggleButtonClass: string;
12
+ employeeInfoClass: string;
13
+ userNameClass: string;
14
+ propertyNameClass: string;
15
+ caretClass: string;
16
+ menuClass: string;
17
+ sectionLabelClass: string;
18
+ menuItemClass: string;
19
+ menuItemActiveClass: string;
20
+ indicatorClass: string;
21
+ invisibleIndicatorClass: string;
22
+ dividerClass: string;
23
+ signOutButtonClass: string;
24
+ showSignOutIcon: boolean;
25
+ signOutIconClass: string;
26
+ propertyChanged: EventEmitter<PropertyOption>;
27
+ signOutClick: EventEmitter<void>;
28
+ readonly signOutIcon: import("@fortawesome/fontawesome-common-types").IconDefinition;
29
+ readonly dropdownOpen: import("@angular/core").WritableSignal<boolean>;
30
+ readonly userPanel: import("@angular/core").WritableSignal<UserPanel | null>;
31
+ readonly badge: import("@angular/core").Signal<BayanEmployeeBadgeDTO>;
32
+ constructor(elementRef: ElementRef<HTMLElement>);
33
+ ngOnInit(): void;
34
+ ngOnChanges(changes: SimpleChanges): void;
35
+ onDocumentClick(event: MouseEvent): void;
36
+ toggleDropdown(event: Event): void;
37
+ selectProperty(event: Event, property: PropertyOption): void;
38
+ signOut(event: Event): void;
39
+ private loadUserPanel;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<BayanCoreUserPanelWidgetComponent, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<BayanCoreUserPanelWidgetComponent, "bayan-core-user-panel-widget", never, { "baseUrl": { "alias": "baseUrl"; "required": false; }; "wrapperClass": { "alias": "wrapperClass"; "required": false; }; "dropdownOpenClass": { "alias": "dropdownOpenClass"; "required": false; }; "toggleButtonClass": { "alias": "toggleButtonClass"; "required": false; }; "employeeInfoClass": { "alias": "employeeInfoClass"; "required": false; }; "userNameClass": { "alias": "userNameClass"; "required": false; }; "propertyNameClass": { "alias": "propertyNameClass"; "required": false; }; "caretClass": { "alias": "caretClass"; "required": false; }; "menuClass": { "alias": "menuClass"; "required": false; }; "sectionLabelClass": { "alias": "sectionLabelClass"; "required": false; }; "menuItemClass": { "alias": "menuItemClass"; "required": false; }; "menuItemActiveClass": { "alias": "menuItemActiveClass"; "required": false; }; "indicatorClass": { "alias": "indicatorClass"; "required": false; }; "invisibleIndicatorClass": { "alias": "invisibleIndicatorClass"; "required": false; }; "dividerClass": { "alias": "dividerClass"; "required": false; }; "signOutButtonClass": { "alias": "signOutButtonClass"; "required": false; }; "showSignOutIcon": { "alias": "showSignOutIcon"; "required": false; }; "signOutIconClass": { "alias": "signOutIconClass"; "required": false; }; }, { "propertyChanged": "propertyChanged"; "signOutClick": "signOutClick"; }, never, never, true, never>;
42
+ }
@@ -0,0 +1,57 @@
1
+ import { TopMenuShortcut, PropertyOption, SystemModule, EmployeeNamesModeOption } from '../shared/menu.dtos';
2
+ import { EventEmitter, OnInit } from '@angular/core';
3
+ import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
4
+ import { BayanCoreGlobalSearchWidgetComponent } from './components/global-search-widget/global-search-widget.component';
5
+ import * as i0 from "@angular/core";
6
+ export declare class BayanCoreTopMenuWidgetComponent implements OnInit {
7
+ globalSearchWidget?: BayanCoreGlobalSearchWidgetComponent;
8
+ private readonly document;
9
+ private readonly router;
10
+ private readonly menuService;
11
+ openDropdownIndex: number | null;
12
+ baseUrl: string;
13
+ systemModule: SystemModule | null;
14
+ menuItems: TopMenuShortcut[];
15
+ sidebarCollapsed: boolean;
16
+ homeUrl: string | null;
17
+ logoUrl: string;
18
+ collapsedLogoUrl: string;
19
+ logoClick: EventEmitter<void>;
20
+ isSsoLogin: boolean;
21
+ showGlobalSearch: boolean;
22
+ showUserPanel: boolean;
23
+ showSettings: boolean;
24
+ showShortcutMenus: boolean;
25
+ showNotifications: boolean;
26
+ notificationsTitle: string;
27
+ showHelp: boolean;
28
+ helpTitle: string;
29
+ helpUrl: string | null;
30
+ helpIcon: IconDefinition;
31
+ helpAnchorClass: string;
32
+ helpUrlTarget: '_self' | '_blank' | string;
33
+ licenseUrl: string;
34
+ releaseNotesUrl: string;
35
+ supportUrl: string;
36
+ helpClick: EventEmitter<void>;
37
+ menuItemClick: EventEmitter<TopMenuShortcut>;
38
+ searchSubmit: EventEmitter<string>;
39
+ propertyChanged: EventEmitter<PropertyOption>;
40
+ signOutClick: EventEmitter<void>;
41
+ alternateNamesChange: EventEmitter<boolean>;
42
+ employeeNameModeChange: EventEmitter<EmployeeNamesModeOption>;
43
+ readonly aboutVisible: import("@angular/core").WritableSignal<boolean>;
44
+ readonly changePasswordVisible: import("@angular/core").WritableSignal<boolean>;
45
+ ActivePropertyChanged: boolean;
46
+ ActivePropertyId: number;
47
+ ngOnInit(): void;
48
+ ngOnChanges(changes: any): void;
49
+ onEmployeeNameModeChange(event: any): void;
50
+ getLogoSrc(): string | null;
51
+ onLogoClicked(event?: Event): void;
52
+ onHelpClicked(event?: Event): void;
53
+ onPropertyChanged(property: PropertyOption): void;
54
+ private loadShortcutMenus;
55
+ static ɵfac: i0.ɵɵFactoryDeclaration<BayanCoreTopMenuWidgetComponent, never>;
56
+ static ɵcmp: i0.ɵɵComponentDeclaration<BayanCoreTopMenuWidgetComponent, "bayan-core-top-menu-widget", never, { "baseUrl": { "alias": "baseUrl"; "required": false; }; "systemModule": { "alias": "systemModule"; "required": false; }; "sidebarCollapsed": { "alias": "sidebarCollapsed"; "required": false; }; "homeUrl": { "alias": "homeUrl"; "required": false; }; "logoUrl": { "alias": "logoUrl"; "required": false; }; "collapsedLogoUrl": { "alias": "collapsedLogoUrl"; "required": false; }; "isSsoLogin": { "alias": "isSsoLogin"; "required": false; }; "showGlobalSearch": { "alias": "showGlobalSearch"; "required": false; }; "showUserPanel": { "alias": "showUserPanel"; "required": false; }; "showSettings": { "alias": "showSettings"; "required": false; }; "showShortcutMenus": { "alias": "showShortcutMenus"; "required": false; }; "showNotifications": { "alias": "showNotifications"; "required": false; }; "notificationsTitle": { "alias": "notificationsTitle"; "required": false; }; "showHelp": { "alias": "showHelp"; "required": false; }; "helpTitle": { "alias": "helpTitle"; "required": false; }; "helpUrl": { "alias": "helpUrl"; "required": false; }; "helpIcon": { "alias": "helpIcon"; "required": false; }; "helpAnchorClass": { "alias": "helpAnchorClass"; "required": false; }; "helpUrlTarget": { "alias": "helpUrlTarget"; "required": false; }; "licenseUrl": { "alias": "licenseUrl"; "required": false; }; "releaseNotesUrl": { "alias": "releaseNotesUrl"; "required": false; }; "supportUrl": { "alias": "supportUrl"; "required": false; }; }, { "logoClick": "logoClick"; "helpClick": "helpClick"; "menuItemClick": "menuItemClick"; "searchSubmit": "searchSubmit"; "propertyChanged": "propertyChanged"; "signOutClick": "signOutClick"; "alternateNamesChange": "alternateNamesChange"; "employeeNameModeChange": "employeeNameModeChange"; }, never, never, true, never>;
57
+ }
@@ -0,0 +1,24 @@
1
+ export interface TopMenuWidgetAboutDialogConfig {
2
+ title?: string;
3
+ logoUrl?: string;
4
+ version?: string;
5
+ versionLabel?: string;
6
+ copyright?: string;
7
+ statusLabel?: string;
8
+ licenseButtonLabel?: string;
9
+ releaseNotesButtonLabel?: string;
10
+ supportButtonLabel?: string;
11
+ closeButtonLabel?: string;
12
+ }
13
+ export interface TopMenuWidgetChangePasswordPayload {
14
+ currentPassword: string;
15
+ newPassword: string;
16
+ confirmNewPassword: string;
17
+ }
18
+ export interface TopMenuWidgetChangePasswordDialogConfig {
19
+ title: string;
20
+ currentPasswordLabel: string;
21
+ newPasswordLabel: string;
22
+ confirmNewPasswordLabel: string;
23
+ primaryButtonText: string;
24
+ }
package/package.json CHANGED
@@ -1,36 +1,48 @@
1
- {
2
- "name": "@skysoftware-co/bayan-core-widgets-ui",
3
- "version": "0.0.6",
4
- "peerDependencies": {
5
- "@angular/common": "19.2.14",
6
- "@angular/core": "19.2.14",
7
- "@ngx-translate/core": ">=15.0.0",
8
- "@skysoftware-co/bayan-components-ui": ">=1.1.0",
9
- "@skysoftware-co/sky-components-ui": ">=1.3.3",
10
- "devextreme-angular": ">=23.0.0",
11
- "@fortawesome/angular-fontawesome": ">=0.14.0",
12
- "@fortawesome/pro-light-svg-icons": ">=6.0.0",
13
- "@fortawesome/pro-solid-svg-icons": ">=6.0.0"
14
- },
15
- "main": "fesm2022/skysoftware-co-bayan-core-widgets-ui.mjs",
16
- "module": "fesm2022/skysoftware-co-bayan-core-widgets-ui.mjs",
17
- "typings": "index.d.ts",
18
- "sideEffects": false,
19
- "peerDependenciesMeta": {
20
- "@ngx-translate/core": {
21
- "optional": true
22
- },
23
- "devextreme-angular": {
24
- "optional": true
25
- },
26
- "@fortawesome/angular-fontawesome": {
27
- "optional": true
28
- },
29
- "@fortawesome/pro-light-svg-icons": {
30
- "optional": true
31
- },
32
- "@fortawesome/pro-solid-svg-icons": {
33
- "optional": true
34
- }
35
- }
36
- }
1
+ {
2
+ "name": "@skysoftware-co/bayan-core-widgets-ui",
3
+ "version": "0.0.9",
4
+ "peerDependencies": {
5
+ "@angular/common": "19.2.14",
6
+ "@angular/core": "19.2.14",
7
+ "@ngx-translate/core": ">=15.0.0",
8
+ "@skysoftware-co/bayan-components-ui": ">=1.1.0",
9
+ "@skysoftware-co/sky-components-ui": ">=1.3.3",
10
+ "devextreme-angular": ">=23.0.0",
11
+ "@fortawesome/angular-fontawesome": ">=0.14.0",
12
+ "@fortawesome/pro-light-svg-icons": ">=6.0.0",
13
+ "@fortawesome/pro-solid-svg-icons": ">=6.0.0"
14
+ },
15
+ "main": "fesm2022/skysoftware-co-bayan-core-widgets-ui.mjs",
16
+ "module": "fesm2022/skysoftware-co-bayan-core-widgets-ui.mjs",
17
+ "typings": "index.d.ts",
18
+ "sideEffects": false,
19
+ "peerDependenciesMeta": {
20
+ "@ngx-translate/core": {
21
+ "optional": true
22
+ },
23
+ "devextreme-angular": {
24
+ "optional": true
25
+ },
26
+ "@fortawesome/angular-fontawesome": {
27
+ "optional": true
28
+ },
29
+ "@fortawesome/pro-light-svg-icons": {
30
+ "optional": true
31
+ },
32
+ "@fortawesome/pro-solid-svg-icons": {
33
+ "optional": true
34
+ }
35
+ },
36
+ "exports": {
37
+ "./package.json": {
38
+ "default": "./package.json"
39
+ },
40
+ ".": {
41
+ "types": "./index.d.ts",
42
+ "default": "./fesm2022/skysoftware-co-bayan-core-widgets-ui.mjs"
43
+ }
44
+ },
45
+ "dependencies": {
46
+ "tslib": "^2.3.0"
47
+ }
48
+ }
@@ -0,0 +1,10 @@
1
+ export * from './lib/top-menu-widget/top-menu-widget.component';
2
+ export * from './lib/top-menu-widget/components/about-dialog-widget/about-dialog-widget.component';
3
+ export * from './lib/top-menu-widget/components/change-password-widget/change-password-widget.component';
4
+ export * from './lib/top-menu-widget/components/global-search-widget/global-search-widget.component';
5
+ export * from './lib/top-menu-widget/components/item-widget/item-widget.component';
6
+ export * from './lib/top-menu-widget/components/notifications-widget/notifications-widget.component';
7
+ export * from './lib/top-menu-widget/components/settings-widget/settings-widget.component';
8
+ export * from './lib/top-menu-widget/components/user-panel-widget/user-panel-widget.component';
9
+ export * from './lib/shared/menu.dtos';
10
+ export * from './lib/shared/menu.service';
package/ng-package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../dist/bayan-core-ui",
4
- "lib": {
5
- "entryFile": "src/public-api.ts"
6
- }
7
- }