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

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.
@@ -0,0 +1,10 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { BayanCoreTranslateService } from '../services/translate.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BayanCoreTranslatePipe implements PipeTransform {
5
+ private translateService;
6
+ constructor(translateService: BayanCoreTranslateService);
7
+ transform(key?: string): string;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<BayanCoreTranslatePipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<BayanCoreTranslatePipe, "BayanCoreTranslate", true>;
10
+ }
@@ -0,0 +1,12 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class BayanCoreTranslateService {
3
+ private currentLanguage;
4
+ private lexicon;
5
+ setLanguage(language: string): void;
6
+ getLanguage(): string;
7
+ setLexicon(lexicon: Record<string, string>): void;
8
+ getLexicon(): Record<string, string>;
9
+ translateBuiltIn(key: string): string;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<BayanCoreTranslateService, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<BayanCoreTranslateService>;
12
+ }
@@ -5,16 +5,15 @@ import * as i0 from "@angular/core";
5
5
  export declare class BayanCoreChangePasswordWidgetComponent {
6
6
  private readonly menuService;
7
7
  private readonly alertToastService;
8
- private readonly translate;
9
8
  baseUrl: string;
10
9
  visible: boolean;
11
10
  config: TopMenuWidgetChangePasswordDialogConfig;
12
11
  isSubmitting: boolean;
13
12
  visibleChange: EventEmitter<boolean>;
14
13
  changePasswordForm?: DxFormComponent;
15
- readonly currentPasswordMode: WritableSignal<"password" | "text">;
16
- readonly newPasswordMode: WritableSignal<"password" | "text">;
17
- readonly confirmNewPasswordMode: WritableSignal<"password" | "text">;
14
+ readonly currentPasswordMode: WritableSignal<"text" | "password">;
15
+ readonly newPasswordMode: WritableSignal<"text" | "password">;
16
+ readonly confirmNewPasswordMode: WritableSignal<"text" | "password">;
18
17
  formData: TopMenuWidgetChangePasswordPayload;
19
18
  errorMessage: WritableSignal<string>;
20
19
  closeDialog(): void;
@@ -1,9 +1,13 @@
1
+ import { ElementRef } from '@angular/core';
1
2
  import { TopMenuShortcut, PropertyOption, SystemModule, EmployeeNamesModeOption } from '../shared/menu.dtos';
2
3
  import { EventEmitter, OnInit } from '@angular/core';
3
4
  import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
4
5
  import { BayanCoreGlobalSearchWidgetComponent } from './components/global-search-widget/global-search-widget.component';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class BayanCoreTopMenuWidgetComponent implements OnInit {
8
+ private elementRef;
9
+ constructor(elementRef: ElementRef);
10
+ onDocumentClick(event: MouseEvent): void;
7
11
  globalSearchWidget?: BayanCoreGlobalSearchWidgetComponent;
8
12
  private readonly document;
9
13
  private readonly router;
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@skysoftware-co/bayan-core-widgets-ui",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "19.2.14",
6
6
  "@angular/core": "19.2.14",
7
7
  "@ngx-translate/core": ">=15.0.0",
8
8
  "@skysoftware-co/bayan-components-ui": ">=1.1.0",
9
9
  "@skysoftware-co/sky-components-ui": ">=1.3.3",
10
- "devextreme-angular": ">=23.0.0",
10
+ "devextreme": ">=24.0.0",
11
+ "devextreme-angular": ">=24.0.0",
11
12
  "@fortawesome/angular-fontawesome": ">=0.14.0",
12
13
  "@fortawesome/pro-light-svg-icons": ">=6.0.0",
13
14
  "@fortawesome/pro-solid-svg-icons": ">=6.0.0"
@@ -20,9 +21,6 @@
20
21
  "@ngx-translate/core": {
21
22
  "optional": true
22
23
  },
23
- "devextreme-angular": {
24
- "optional": true
25
- },
26
24
  "@fortawesome/angular-fontawesome": {
27
25
  "optional": true
28
26
  },
@@ -31,7 +29,17 @@
31
29
  },
32
30
  "@fortawesome/pro-solid-svg-icons": {
33
31
  "optional": true
34
- }
32
+ },
33
+ "devextreme": {
34
+ "optional": true
35
+ },
36
+ "devextreme-angular": {
37
+ "optional": true
38
+ },
39
+ "dependencies": {
40
+ "tslib": "^2.3.0"
41
+ },
42
+ "sideEffects": false
35
43
  },
36
44
  "exports": {
37
45
  "./package.json": {
package/public-api.d.ts CHANGED
@@ -8,3 +8,5 @@ export * from './lib/top-menu-widget/components/settings-widget/settings-widget.
8
8
  export * from './lib/top-menu-widget/components/user-panel-widget/user-panel-widget.component';
9
9
  export * from './lib/shared/menu.dtos';
10
10
  export * from './lib/shared/menu.service';
11
+ export * from './lib/shared/pipes/translate.pipe';
12
+ export * from './lib/shared/services/translate.service';