@xosue-utils/inputs 0.1.8 → 0.1.10

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.
package/index.d.ts CHANGED
@@ -2,4 +2,46 @@
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
4
  /// <amd-module name="@xosue-utils/inputs" />
5
- export * from './public-api';
5
+ export * from './lib/lucide-icon/lucide-icon.component';
6
+ export * from './lib/text-entry/text-entry.component';
7
+ export * from './lib/text-area-entry/text-area-entry.component';
8
+ export * from './lib/email-entry/email-entry.component';
9
+ export * from './lib/url-entry/url-entry.component';
10
+ export * from './lib/password-entry/password-entry.component';
11
+ export * from './lib/search-entry/search-entry.component';
12
+ export * from './lib/tags-entry/tags-entry.component';
13
+ export * from './lib/integer-entry/integer-entry.component';
14
+ export * from './lib/decimal-entry/decimal-entry.component';
15
+ export * from './lib/counter-entry/counter-entry.component';
16
+ export * from './lib/price-entry/price-entry.component';
17
+ export * from './lib/range-entry/range-entry.component';
18
+ export * from './lib/slider-entry/slider-entry.component';
19
+ export * from './lib/rating-entry/rating-entry.component';
20
+ export * from './lib/date-picker/date-picker.component';
21
+ export * from './lib/time-picker/time-picker.component';
22
+ export * from './lib/month-picker/month-picker.component';
23
+ export * from './lib/datetime-picker/datetime-picker.component';
24
+ export * from './lib/only-select/only-select.component';
25
+ export * from './lib/multiselect-combobox/multiselect-combobox.component';
26
+ export * from './lib/boolean-entry/boolean-entry.component';
27
+ export * from './lib/multichoice-entry/multichoice-entry.component';
28
+ export * from './lib/onlychoice-entry/onlychoice-entry.component';
29
+ export * from './lib/switch-entry/switch-entry.component';
30
+ export * from './lib/phone-entry/phone-entry.component';
31
+ export * from './lib/color-picker/color-picker.component';
32
+ export * from './lib/otp-entry/otp-entry.component';
33
+ export * from './lib/rich-text-entry/rich-text-entry.component';
34
+ export * from './lib/signature-entry/signature-entry.component';
35
+ export * from './lib/media-entry/media-entry.component';
36
+ export * from './lib/list-reorder/list-reorder';
37
+ export * from './lib/input-modal-service-components';
38
+ export * from './lib/input-modal-services.component';
39
+ export * from './config/inputs-config';
40
+ export * from './config/media-adapters';
41
+ export * from './lib/only-select/only-select.types';
42
+ export * from './lib/phone-entry/phone-display.util';
43
+ export * from './vendor/field-help-tooltip/field-help-tooltip.component';
44
+ export * from './vendor/context-menu-service/context-menu.service';
45
+ export * from './vendor/context-menu-service/context-menu-service.component';
46
+ export * from './vendor/drag-scroll.directive';
47
+ export * from './vendor/file-size.pipe';
package/lib/index.d.ts CHANGED
@@ -85,4 +85,4 @@ import { MediaEntryComponent } from './media-entry/media-entry.component';
85
85
  * imports: [...ALL_INPUT_COMPONENTS]
86
86
  * })
87
87
  */
88
- export declare const ALL_INPUT_COMPONENTS: (typeof TextEntryComponent | typeof TextAreaEntryComponent | typeof EmailEntryComponent | typeof UrlEntryComponent | typeof PasswordEntryComponent | typeof SearchEntryComponent | typeof TagsEntryComponent | typeof IntegerEntryComponent | typeof DecimalEntryComponent | typeof CounterEntryComponent | typeof PriceEntryComponent | typeof RangeEntryComponent | typeof SliderEntryComponent | typeof RatingEntryComponent | typeof DatePickerComponent | typeof TimePickerComponent | typeof MonthPickerComponent | typeof DatetimePickerComponent | typeof OnlySelectComponent | typeof MultiselectComboboxComponent | typeof BooleanEntryComponent | typeof MultichoiceEntryComponent | typeof OnlychoiceEntryComponent | typeof SwitchEntryComponent | typeof PhoneEntryComponent | typeof ColorPickerComponent | typeof OtpEntryComponent | typeof RichTextEntryComponent | typeof SignatureEntryComponent | typeof MediaEntryComponent)[];
88
+ export declare const ALL_INPUT_COMPONENTS: (typeof PhoneEntryComponent | typeof MultiselectComboboxComponent | typeof TextEntryComponent | typeof TextAreaEntryComponent | typeof EmailEntryComponent | typeof UrlEntryComponent | typeof PasswordEntryComponent | typeof SearchEntryComponent | typeof TagsEntryComponent | typeof IntegerEntryComponent | typeof DecimalEntryComponent | typeof CounterEntryComponent | typeof PriceEntryComponent | typeof RangeEntryComponent | typeof SliderEntryComponent | typeof RatingEntryComponent | typeof DatePickerComponent | typeof TimePickerComponent | typeof MonthPickerComponent | typeof DatetimePickerComponent | typeof OnlySelectComponent | typeof BooleanEntryComponent | typeof MultichoiceEntryComponent | typeof OnlychoiceEntryComponent | typeof SwitchEntryComponent | typeof ColorPickerComponent | typeof OtpEntryComponent | typeof RichTextEntryComponent | typeof SignatureEntryComponent | typeof MediaEntryComponent)[];
@@ -56,20 +56,7 @@ export declare class MultiselectComboboxComponent implements ControlValueAccesso
56
56
  ngOnChanges(changes: SimpleChanges): void;
57
57
  ngOnDestroy(): void;
58
58
  onSearchChange(e: Event): void;
59
- /**
60
- * Filtra opciones locales (método auxiliar para búsqueda con debounce)
61
- */
62
59
  private filterLocalOptions;
63
- /**
64
- * Calcula un score de relevancia para una opción basado en la búsqueda.
65
- * - Score más alto = mejor coincidencia
66
- * - Coincidencia exacta: 100
67
- * - Comienza con la búsqueda: 80
68
- * - Contiene la búsqueda: 60
69
- * - Coincidencia en descripción: 40
70
- * - Sin coincidencia: 0
71
- */
72
- private calculateRelevanceScore;
73
60
  /**
74
61
  * Obtiene los headers de autenticación para las peticiones HTTP.
75
62
  */
@@ -1,15 +1,18 @@
1
- import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
1
+ import { AfterViewChecked, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { MultiselectComboboxModalService, MultiselectComboboxModalSession } from './multiselect-combobox-modal.service';
4
4
  import { SelectOption } from '../../../only-select/only-select.types';
5
5
  import * as i0 from "@angular/core";
6
- export declare class MultiselectComboboxModalServiceComponent implements OnInit, OnDestroy {
6
+ export declare class MultiselectComboboxModalServiceComponent implements OnInit, AfterViewChecked, OnDestroy {
7
7
  private multiselectModal;
8
8
  private cdr;
9
9
  readonly vm$: Observable<MultiselectComboboxModalSession | null>;
10
10
  private sub?;
11
+ private readonly host;
12
+ private readonly chrome;
11
13
  constructor(multiselectModal: MultiselectComboboxModalService, cdr: ChangeDetectorRef);
12
14
  ngOnInit(): void;
15
+ ngAfterViewChecked(): void;
13
16
  ngOnDestroy(): void;
14
17
  isSelected(option: SelectOption, selected: SelectOption[]): boolean;
15
18
  static ɵfac: i0.ɵɵFactoryDeclaration<MultiselectComboboxModalServiceComponent, never>;
@@ -52,20 +52,7 @@ export declare class OnlySelectComponent implements ControlValueAccessor, OnInit
52
52
  ngOnChanges(changes: SimpleChanges): void;
53
53
  ngOnDestroy(): void;
54
54
  onSearchChange(e: Event): void;
55
- /**
56
- * Filtra opciones locales (método auxiliar para búsqueda con debounce)
57
- */
58
55
  private filterLocalOptions;
59
- /**
60
- * Calcula un score de relevancia para una opción basado en la búsqueda.
61
- * - Score más alto = mejor coincidencia
62
- * - Coincidencia exacta: 100
63
- * - Comienza con la búsqueda: 80
64
- * - Contiene la búsqueda: 60
65
- * - Coincidencia en descripción: 40
66
- * - Sin coincidencia: 0
67
- */
68
- private calculateRelevanceScore;
69
56
  private fetchFromApi;
70
57
  private loadLocalOptions;
71
58
  private buildModalView;
@@ -1,14 +1,17 @@
1
- import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
1
+ import { AfterViewChecked, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { OnlySelectModalService, OnlySelectModalSession } from './only-select-modal.service';
4
4
  import * as i0 from "@angular/core";
5
- export declare class OnlySelectModalServiceComponent implements OnInit, OnDestroy {
5
+ export declare class OnlySelectModalServiceComponent implements OnInit, AfterViewChecked, OnDestroy {
6
6
  private onlySelectModal;
7
7
  private cdr;
8
8
  readonly vm$: Observable<OnlySelectModalSession | null>;
9
9
  private sub?;
10
+ private readonly host;
11
+ private readonly chrome;
10
12
  constructor(onlySelectModal: OnlySelectModalService, cdr: ChangeDetectorRef);
11
13
  ngOnInit(): void;
14
+ ngAfterViewChecked(): void;
12
15
  ngOnDestroy(): void;
13
16
  static ɵfac: i0.ɵɵFactoryDeclaration<OnlySelectModalServiceComponent, never>;
14
17
  static ɵcmp: i0.ɵɵComponentDeclaration<OnlySelectModalServiceComponent, "only-select-modal-service", never, {}, {}, never, never, true, never>;
@@ -0,0 +1,11 @@
1
+ export declare function focusOverlaySearch(host: HTMLElement): boolean;
2
+ export declare function scrollOverlayOptionsToTop(host: HTMLElement): void;
3
+ export declare class OverlaySearchChrome {
4
+ private lastOpen;
5
+ private lastQuery;
6
+ private lastOptions;
7
+ pendingFocus: boolean;
8
+ pendingScroll: boolean;
9
+ onSession(open: boolean, query: string | null, options: unknown, canFocus: boolean): void;
10
+ flush(host: HTMLElement): void;
11
+ }
@@ -1,14 +1,17 @@
1
- import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
1
+ import { AfterViewChecked, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { PhoneEntryModalService, PhoneEntryModalSession } from './phone-entry-modal.service';
4
4
  import * as i0 from "@angular/core";
5
- export declare class PhoneEntryModalServiceComponent implements OnInit, OnDestroy {
5
+ export declare class PhoneEntryModalServiceComponent implements OnInit, AfterViewChecked, OnDestroy {
6
6
  private phoneModal;
7
7
  private cdr;
8
8
  readonly vm$: Observable<PhoneEntryModalSession | null>;
9
9
  private sub?;
10
+ private readonly host;
11
+ private readonly chrome;
10
12
  constructor(phoneModal: PhoneEntryModalService, cdr: ChangeDetectorRef);
11
13
  ngOnInit(): void;
14
+ ngAfterViewChecked(): void;
12
15
  ngOnDestroy(): void;
13
16
  static ɵfac: i0.ɵɵFactoryDeclaration<PhoneEntryModalServiceComponent, never>;
14
17
  static ɵcmp: i0.ɵɵComponentDeclaration<PhoneEntryModalServiceComponent, "phone-entry-modal-service", never, {}, {}, never, never, true, never>;
@@ -1,14 +1,17 @@
1
- import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
1
+ import { AfterViewChecked, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { SearchEntryModalService, SearchEntryModalSession } from './search-entry-modal.service';
4
4
  import * as i0 from "@angular/core";
5
- export declare class SearchEntryModalServiceComponent implements OnInit, OnDestroy {
5
+ export declare class SearchEntryModalServiceComponent implements OnInit, AfterViewChecked, OnDestroy {
6
6
  private searchEntryModal;
7
7
  private cdr;
8
8
  readonly vm$: Observable<SearchEntryModalSession | null>;
9
9
  private sub?;
10
+ private readonly host;
11
+ private readonly chrome;
10
12
  constructor(searchEntryModal: SearchEntryModalService, cdr: ChangeDetectorRef);
11
13
  ngOnInit(): void;
14
+ ngAfterViewChecked(): void;
12
15
  ngOnDestroy(): void;
13
16
  static ɵfac: i0.ɵɵFactoryDeclaration<SearchEntryModalServiceComponent, never>;
14
17
  static ɵcmp: i0.ɵɵComponentDeclaration<SearchEntryModalServiceComponent, "search-entry-modal-service", never, {}, {}, never, never, true, never>;
@@ -0,0 +1,9 @@
1
+ export declare function foldSearchText(value: unknown): string;
2
+ export interface SearchableSelectOption {
3
+ name?: string;
4
+ description?: string;
5
+ symbol?: unknown;
6
+ value?: unknown;
7
+ }
8
+ export declare function scoreSelectOption(option: SearchableSelectOption, query: string): number;
9
+ export declare function filterSelectOptions<T extends SearchableSelectOption>(options: T[], query: string): T[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xosue-utils/inputs",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "Angular standalone form inputs (text, select, date, media, rich-text, ...) shared across apps.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,