@dev-tcloud/tcloud-ui 6.12.4 → 6.13.0

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,3 @@
1
+ export interface LocaleServiceInterface {
2
+ getLocale(): string;
3
+ }
@@ -10,6 +10,7 @@ export declare class TCloudUiInputSearchComponent {
10
10
  * @param base_object object - Objeto onde ser procurado
11
11
  * @param found - Emite o valor encontrado
12
12
  */
13
+ private _PLACEHOLDER;
13
14
  placeholder: string;
14
15
  mirror: boolean;
15
16
  search_text: string;
@@ -18,7 +19,9 @@ export declare class TCloudUiInputSearchComponent {
18
19
  get base_object(): any;
19
20
  result_object: any | undefined;
20
21
  found: EventEmitter<any>;
22
+ private readonly i18nService;
21
23
  constructor(searchInObjectService: TCloudUiSearchInObjectService);
24
+ ngOnInit(): void;
22
25
  buscar(value: string): void;
23
26
  clean(): void;
24
27
  toFound(): void;
@@ -3,9 +3,11 @@ import { OnInit, EventEmitter, OnDestroy } from '@angular/core';
3
3
  import { TcloudModalService } from './services/tcloud-modal.service';
4
4
  import { IConfirm } from './tcloud-ui-modal';
5
5
  import { TCloudUiLayoutService } from '../../_services/tcloud-ui-layout.services';
6
+ import { TCloudUiLocaleService } from '../../_services/tcloud-ui-locale.service';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class TCloudUiModalComponent implements OnInit, OnDestroy {
8
9
  private _tCloudUiLayoutService;
10
+ private _tCloudUiLocaleService;
9
11
  private tcloudModalService;
10
12
  /**
11
13
  * tcloud-ui-modal - Cria e exibe um modal
@@ -89,8 +91,9 @@ export declare class TCloudUiModalComponent implements OnInit, OnDestroy {
89
91
  toConfirm: EventEmitter<boolean>;
90
92
  toCancel: EventEmitter<boolean>;
91
93
  toAction: EventEmitter<"close" | "cancel" | "confirmed">;
92
- constructor(_tCloudUiLayoutService: TCloudUiLayoutService, tcloudModalService: TcloudModalService);
94
+ constructor(_tCloudUiLayoutService: TCloudUiLayoutService, _tCloudUiLocaleService: TCloudUiLocaleService, tcloudModalService: TcloudModalService);
93
95
  get layout(): string;
96
+ get locale(): string;
94
97
  ngOnInit(): void;
95
98
  toClose(action?: any | undefined): void;
96
99
  checkIsOpen(): void;
@@ -2,6 +2,7 @@ import { EventEmitter, OnInit, OnDestroy } from '@angular/core';
2
2
  import { FormControl, Validator } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class TCloudUiMultiSelectComponent implements OnInit, OnDestroy, Validator {
5
+ private _PLACEHOLDER;
5
6
  tcList: any[] | undefined;
6
7
  placeholder: string;
7
8
  disabled: boolean;
@@ -15,6 +16,7 @@ export declare class TCloudUiMultiSelectComponent implements OnInit, OnDestroy,
15
16
  values: any[] | undefined;
16
17
  count_actives: number;
17
18
  item_value: any | undefined;
19
+ private readonly i18nService;
18
20
  constructor();
19
21
  ngOnInit(): void;
20
22
  addItem(item: any): void;
@@ -1,5 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class TCloudUiNotFoundComponent {
3
+ private readonly i18nService;
4
+ private _MESSAGE;
3
5
  message: string;
4
6
  styleIcon: any;
5
7
  ngOnInit(): void;
@@ -36,6 +36,8 @@ export interface ImageItem {
36
36
  file: File;
37
37
  }
38
38
  export declare class TCloudUiUploadAreaComponent {
39
+ private _MESSAGE;
40
+ message: string;
39
41
  isHovering: boolean;
40
42
  draggedIndex: number | null;
41
43
  images: ImageItem[];
@@ -55,6 +57,8 @@ export declare class TCloudUiUploadAreaComponent {
55
57
  currentProgress: number;
56
58
  isLoading: boolean;
57
59
  set preloadedImages(images: PreloadedImage[] | string[]);
60
+ private readonly i18nService;
61
+ ngOnInit(): void;
58
62
  onDragOver(event: DragEvent): void;
59
63
  onDragLeave(event: DragEvent): void;
60
64
  onDrop(event: DragEvent): void;
@@ -81,5 +85,5 @@ export declare class TCloudUiUploadAreaComponent {
81
85
  hasImageError(index: number): boolean;
82
86
  private validateImageDimensions;
83
87
  static ɵfac: i0.ɵɵFactoryDeclaration<TCloudUiUploadAreaComponent, never>;
84
- static ɵcmp: i0.ɵɵComponentDeclaration<TCloudUiUploadAreaComponent, "tcloud-ui-upload-area", never, { "maxFiles": { "alias": "maxFiles"; "required": false; }; "acceptedFileTypes": { "alias": "acceptedFileTypes"; "required": false; }; "imageDimensions": { "alias": "imageDimensions"; "required": false; }; "showProgress": { "alias": "showProgress"; "required": false; }; "preloadedImages": { "alias": "preloadedImages"; "required": false; }; }, { "onChange": "onChange"; "filesSelected": "filesSelected"; "imagesReordered": "imagesReordered"; "imagesRemoved": "imagesRemoved"; "onError": "onError"; "onProgress": "onProgress"; }, never, never, true, never>;
88
+ static ɵcmp: i0.ɵɵComponentDeclaration<TCloudUiUploadAreaComponent, "tcloud-ui-upload-area", never, { "message": { "alias": "message"; "required": false; }; "maxFiles": { "alias": "maxFiles"; "required": false; }; "acceptedFileTypes": { "alias": "acceptedFileTypes"; "required": false; }; "imageDimensions": { "alias": "imageDimensions"; "required": false; }; "showProgress": { "alias": "showProgress"; "required": false; }; "preloadedImages": { "alias": "preloadedImages"; "required": false; }; }, { "onChange": "onChange"; "filesSelected": "filesSelected"; "imagesReordered": "imagesReordered"; "imagesRemoved": "imagesRemoved"; "onError": "onError"; "onProgress": "onProgress"; }, never, never, true, never>;
85
89
  }
@@ -0,0 +1,13 @@
1
+ import { ChangeDetectorRef, OnDestroy, PipeTransform } from '@angular/core';
2
+ import { I18nService } from './services/i18n.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class I18nTranslatePipe implements PipeTransform, OnDestroy {
5
+ private i18n;
6
+ private cdr;
7
+ private eventHandler;
8
+ constructor(i18n: I18nService, cdr: ChangeDetectorRef);
9
+ transform(key: string | null | undefined, fallback?: string): string;
10
+ ngOnDestroy(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<I18nTranslatePipe, never>;
12
+ static ɵpipe: i0.ɵɵPipeDeclaration<I18nTranslatePipe, "i18nTranslate", true>;
13
+ }
@@ -0,0 +1,15 @@
1
+ import * as i0 from "@angular/core";
2
+ export type MessagesMap = Record<string, any>;
3
+ export declare class I18nService {
4
+ private readonly localeService;
5
+ private readonly _messages;
6
+ readonly messages: import("@angular/core").Signal<MessagesMap>;
7
+ private readonly _locale;
8
+ readonly locale: import("@angular/core").Signal<string>;
9
+ constructor();
10
+ private loadMessages;
11
+ setMessages(messages: MessagesMap): void;
12
+ i18nTranslate(key: string, fallback?: string): string;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<I18nService, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<I18nService>;
15
+ }
@@ -0,0 +1,10 @@
1
+ import { LocaleServiceInterface } from '../_interfaces/locale.service.interface';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TCloudUiLocaleService {
4
+ private _LocaleService;
5
+ private localeService;
6
+ constructor(_LocaleService: LocaleServiceInterface);
7
+ getLocale(): string;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<TCloudUiLocaleService, [{ optional: true; }]>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<TCloudUiLocaleService>;
10
+ }
@@ -5,5 +5,6 @@ export interface TCloudUiConfig {
5
5
  export interface TCloudUiCustomServices {
6
6
  userService?: any;
7
7
  layoutService?: any;
8
+ localeService?: any;
8
9
  viewportService?: any;
9
10
  }
@@ -11,6 +11,10 @@ export declare const TCLOUD_UI_USER_SERVICE: InjectionToken<any>;
11
11
  * Token de injeção para o serviço de tema customizado
12
12
  */
13
13
  export declare const TCLOUD_UI_LAYOUT_SERVICE: InjectionToken<any>;
14
+ /**
15
+ * Token de injeção para o serviço de locale - i18n
16
+ */
17
+ export declare const TCLOUD_UI_LOCALE_SERVICE: InjectionToken<any>;
14
18
  /**
15
19
  * Token de injeção para o serviço de viewport customizado
16
20
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-tcloud/tcloud-ui",
3
- "version": "6.12.4",
3
+ "version": "6.13.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.14",
6
6
  "@angular/core": "^19.2.14"