valtech-components 2.0.528 → 2.0.530

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.
@@ -1,8 +1,8 @@
1
- import { ToastController } from '@ionic/angular';
2
1
  import { CommandDisplayMetadata } from './types';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class CommandDisplayComponent {
5
- toast: ToastController;
4
+ private toast;
5
+ private i18n;
6
6
  props: CommandDisplayMetadata;
7
7
  copyCommand(): Promise<void>;
8
8
  presentToast(message: string): Promise<void>;
@@ -1,5 +1,4 @@
1
- import { AfterViewInit, ChangeDetectorRef, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
2
- import { ToastController } from '@ionic/angular';
1
+ import { AfterViewInit, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
3
2
  import 'prismjs/components/prism-bash';
4
3
  import 'prismjs/components/prism-css';
5
4
  import 'prismjs/components/prism-javascript';
@@ -8,8 +7,9 @@ import 'prismjs/components/prism-typescript';
8
7
  import { PlainCodeBoxMetadata } from './types';
9
8
  import * as i0 from "@angular/core";
10
9
  export declare class PlainCodeBoxComponent implements AfterViewInit, OnChanges {
11
- toast: ToastController;
12
- cdr: ChangeDetectorRef;
10
+ private toast;
11
+ private cdr;
12
+ private i18n;
13
13
  props: PlainCodeBoxMetadata;
14
14
  codeBlock: ElementRef<HTMLElement>;
15
15
  ngOnChanges(changes: SimpleChanges): void;
@@ -5,6 +5,7 @@ export declare class ShareButtonsComponent {
5
5
  props: ShareButtonsMetadata;
6
6
  shareComplete: EventEmitter<ShareEvent>;
7
7
  private toastController;
8
+ private i18n;
8
9
  getButtons(): ShareButtonConfig[];
9
10
  getButtonFill(): 'solid' | 'outline' | 'clear';
10
11
  getButtonIcon(button: ShareButtonConfig): string;
@@ -3,6 +3,7 @@ import { CommentSectionMetadata, CommentSortOption, CommentSortChangeEvent, Comm
3
3
  import { CommentAuthorClickEvent, CommentReactionClickEvent, CommentActionClickEvent, CommentMenuItemClickEvent, CommentLoadMoreEvent } from '../../molecules/comment/types';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class CommentSectionComponent implements OnInit {
6
+ private i18n;
6
7
  props: CommentSectionMetadata;
7
8
  sortChange: EventEmitter<CommentSortChangeEvent>;
8
9
  commentSubmit: EventEmitter<CommentSubmitEvent>;
@@ -25,6 +26,7 @@ export declare class CommentSectionComponent implements OnInit {
25
26
  displayLoadMoreLabel: string;
26
27
  ngOnInit(): void;
27
28
  private updateDisplayTexts;
29
+ getSortByLabel(): string;
28
30
  formatCount(count: number): string;
29
31
  getSortOptionLabel(option: CommentSortOption): string;
30
32
  getInputPlaceholder(): string;
@@ -1,4 +1,5 @@
1
1
  import { EventEmitter, OnInit, OnDestroy } from '@angular/core';
2
+ import { I18nService } from '../../../services/i18n';
2
3
  import { IonInfiniteScroll } from '@ionic/angular/standalone';
3
4
  import { InfiniteListMetadata, InfiniteListState, LoadMoreEvent } from './types';
4
5
  import { RefreshEvent, RefresherMetadata } from '../../molecules/refresher/types';
@@ -44,6 +45,7 @@ import * as i0 from "@angular/core";
44
45
  export declare class InfiniteListComponent<T = unknown> implements OnInit, OnDestroy {
45
46
  private readonly skeletonService;
46
47
  private readonly cdr;
48
+ protected readonly i18n: I18nService;
47
49
  infiniteScroll?: IonInfiniteScroll;
48
50
  /** Configuracion del componente */
49
51
  props: InfiniteListMetadata<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.528",
3
+ "version": "2.0.530",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"