@sapphire-ion/framework 1.0.36 → 1.0.37

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,7 +1,7 @@
1
1
  import { AfterViewInit, ElementRef, InputSignal, ModelSignal, Signal, TemplateRef, WritableSignal } from '@angular/core';
2
2
  import { FormControl } from '@angular/forms';
3
- import { InfiniteScrollCustomEvent, IonContent, IonModal } from '@ionic/angular';
4
- import { InputSelectConfiguration } from './input.select.configuration';
3
+ import { ActionSheetButton, AlertInput, InfiniteScrollCustomEvent, IonActionSheet, IonAlert, IonContent, IonModal } from '@ionic/angular';
4
+ import { InputSelectConfiguration, SelectInterfaces } from './input.select.configuration';
5
5
  import { SIonPopoverComponent } from '../../popover/sion-popover/sion-popover.component';
6
6
  import { CustomInput } from '../custom-input';
7
7
  import { PlaceholderTemplateContext } from './directives/sion-placeholder-template.directive';
@@ -9,6 +9,7 @@ import { OptionTemplateContext } from './directives/sion-option-template.directi
9
9
  import { LabelTemplateContext } from './directives/sion-label-template.directive';
10
10
  import * as i0 from "@angular/core";
11
11
  export declare class InputSelectComponent<T = any> extends CustomInput<T | T[]> implements AfterViewInit {
12
+ SelectInterfaces: typeof SelectInterfaces;
12
13
  /** Items disponíveis no select */
13
14
  items: ModelSignal<any[]>;
14
15
  /** Configuração do select */
@@ -19,6 +20,8 @@ export declare class InputSelectComponent<T = any> extends CustomInput<T | T[]>
19
20
  SetCurrentItemLabel(): void;
20
21
  lstOptionsItemValue: Signal<ItemValue<any>[]>;
21
22
  lstOptions: ItemValue<any>[];
23
+ lstOptionsAlert: AlertInput[];
24
+ lstOptionsActionSheet: ActionSheetButton[];
22
25
  infiniteScrollPage: WritableSignal<number>;
23
26
  AddPage(event: InfiniteScrollCustomEvent): void;
24
27
  UpdateLstOptions(search: string): void;
@@ -51,6 +54,8 @@ export declare class InputSelectComponent<T = any> extends CustomInput<T | T[]>
51
54
  selectContent: ElementRef<HTMLDivElement>;
52
55
  popover: SIonPopoverComponent;
53
56
  modal: IonModal;
57
+ alert: IonAlert;
58
+ actionSheet: IonActionSheet;
54
59
  floatingVisible: boolean;
55
60
  ionContent: IonContent;
56
61
  Present(event: Event): Promise<void>;
@@ -9,6 +9,16 @@ export type DefaultModelOptions = {
9
9
  value: string;
10
10
  label: string;
11
11
  };
12
+ export declare enum SelectInterfaces {
13
+ /** Interface padrão do select
14
+ * Popover quando web, Modal quando mobile
15
+ */
16
+ Dynamic = 0,
17
+ Popover = 0,
18
+ Modal = 1,
19
+ Alert = 2,
20
+ ActionSheet = 3
21
+ }
12
22
  export declare class InputSelectConfiguration {
13
23
  /** Valor que será setado no formControl */
14
24
  bindValue: string | ((obj: any) => any);
@@ -45,6 +55,7 @@ export declare class InputSelectConfiguration {
45
55
  useInfiniteScroll?: boolean;
46
56
  placeholder?: string;
47
57
  noItensFoundText?: string;
58
+ interface?: SelectInterfaces;
48
59
  }): InputSelectConfiguration;
49
60
  placeholder: string;
50
61
  noItensFoundText: string;
@@ -58,6 +69,8 @@ export declare class InputSelectConfiguration {
58
69
  };
59
70
  vFiltros: ViewFiltros | null;
60
71
  useInfiniteScroll: boolean;
72
+ /** Interface do select */
73
+ interface: SelectInterfaces;
61
74
  constructor(
62
75
  /** Valor que será setado no formControl */
63
76
  bindValue?: string | ((obj: any) => any),
@@ -1,4 +1,8 @@
1
1
  import * as i0 from "@angular/core";
2
+ /**
3
+ * Corrige o focus trap em modais do Ionic, permite que o foco não fique preso dentro do modal.
4
+ * Utilizado para concertar interatividade com popovers e outros elementos que podem ser interativos fora do modal.
5
+ */
2
6
  export declare class ModalFocusTrapService {
3
7
  constructor();
4
8
  private initGlobalFocusTrapDisable;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapphire-ion/framework",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^18.2.8",