valtech-components 4.0.256 → 4.0.259

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,34 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export interface PickerV2Option {
4
+ value: string;
5
+ label: string;
6
+ prefix?: string;
7
+ disabled?: boolean;
8
+ }
9
+ export interface PickerV2Metadata {
10
+ options: PickerV2Option[];
11
+ selectedValue?: string;
12
+ placeholder?: string;
13
+ disabled?: boolean;
14
+ ariaLabel?: string;
15
+ }
16
+ /**
17
+ * `val-picker-v2`
18
+ *
19
+ * Dropdown propio para pickers simples. Evita el trigger de `ion-select`, que en
20
+ * popovers de settings podía deformar el borde activo del botón.
21
+ */
22
+ export declare class PickerV2Component {
23
+ props: PickerV2Metadata;
24
+ selectionChange: EventEmitter<string>;
25
+ private host;
26
+ readonly open: import("@angular/core").WritableSignal<boolean>;
27
+ readonly selectedOption: import("@angular/core").Signal<PickerV2Option>;
28
+ readonly displayText: import("@angular/core").Signal<string>;
29
+ toggle(): void;
30
+ select(option: PickerV2Option): void;
31
+ onDocumentClick(event: MouseEvent): void;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<PickerV2Component, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<PickerV2Component, "val-picker-v2", never, { "props": { "alias": "props"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, never, true, never>;
34
+ }
@@ -6,6 +6,7 @@
6
6
  */
7
7
  export declare const TICKET_CARD_I18N: {
8
8
  readonly es: {
9
+ readonly cardLabel: "Cartón de bingo";
9
10
  readonly folio: "Folio";
10
11
  readonly statusSold: "Vendida";
11
12
  readonly statusCheckedIn: "Canjeada";
@@ -15,6 +16,7 @@ export declare const TICKET_CARD_I18N: {
15
16
  readonly copiedUrl: "Link copiado";
16
17
  };
17
18
  readonly en: {
19
+ readonly cardLabel: "Bingo card";
18
20
  readonly folio: "Folio";
19
21
  readonly statusSold: "Sold";
20
22
  readonly statusCheckedIn: "Checked in";
@@ -1,5 +1,4 @@
1
- import { LanguageSelectorV2Metadata } from '../../molecules/language-selector-v2/language-selector-v2.component';
2
- import { PopoverSelectorMetadata } from '../../molecules/popover-selector/types';
1
+ import { PickerV2Metadata } from '../../molecules/picker-v2/picker-v2.component';
3
2
  import { PreferencesService } from '../../../services/preferences/preferences.service';
4
3
  import { PreferencesViewConfig } from './types';
5
4
  import * as i0 from "@angular/core";
@@ -43,9 +42,9 @@ export declare class PreferencesViewComponent {
43
42
  readonly langHint: import("@angular/core").Signal<string>;
44
43
  readonly fontSizeTitle: import("@angular/core").Signal<string>;
45
44
  readonly fontSizeHint: import("@angular/core").Signal<string>;
46
- readonly langProps: import("@angular/core").Signal<LanguageSelectorV2Metadata>;
47
- readonly themePickerProps: import("@angular/core").Signal<PopoverSelectorMetadata>;
48
- readonly fontSizePickerProps: import("@angular/core").Signal<PopoverSelectorMetadata>;
45
+ readonly themePickerProps: import("@angular/core").Signal<PickerV2Metadata>;
46
+ readonly languagePickerProps: import("@angular/core").Signal<PickerV2Metadata>;
47
+ readonly fontSizePickerProps: import("@angular/core").Signal<PickerV2Metadata>;
49
48
  constructor();
50
49
  onThemeChange(value: string | string[]): Promise<void>;
51
50
  onFontSizeChange(value: string | string[]): Promise<void>;
@@ -53,6 +52,7 @@ export declare class PreferencesViewComponent {
53
52
  private dispatch;
54
53
  /** Lee del namespace configurado. */
55
54
  protected t(key: string): string;
55
+ private languageName;
56
56
  static ɵfac: i0.ɵɵFactoryDeclaration<PreferencesViewComponent, never>;
57
57
  static ɵcmp: i0.ɵɵComponentDeclaration<PreferencesViewComponent, "val-preferences-view", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
58
58
  }
package/lib/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export declare const VERSION = "4.0.256";
5
+ export declare const VERSION = "4.0.259";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.256",
3
+ "version": "4.0.259",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"
package/public-api.d.ts CHANGED
@@ -118,6 +118,7 @@ export * from './lib/components/molecules/action-header/action-header.component'
118
118
  export * from './lib/components/molecules/action-header/types';
119
119
  export * from './lib/components/molecules/pill/pill.component';
120
120
  export * from './lib/components/molecules/pill/types';
121
+ export * from './lib/components/molecules/picker-v2/picker-v2.component';
121
122
  export * from './lib/components/molecules/command-display/command-display.component';
122
123
  export * from './lib/components/molecules/command-display/types';
123
124
  export * from './lib/components/molecules/info/info.component';