@sapphire-ion/framework 1.0.34 → 1.0.36

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,6 +1,6 @@
1
1
  import { FormBuilder } from '@angular/forms';
2
2
  import { ElementRef, OnInit } from '@angular/core';
3
- import { ActivatedRoute } from '@angular/router';
3
+ import { ActivatedRoute, UrlTree } from '@angular/router';
4
4
  import { NavController } from '@ionic/angular';
5
5
  import { HttpServiceAtivo } from '../../../services/web/http.ativo.service';
6
6
  import { HttpService } from '../../../services/web/http.service';
@@ -22,7 +22,11 @@ export declare class DefaultViewComponent<T extends HttpService | HttpServiceAti
22
22
  /** Remove os breadcrumbs da listagem */
23
23
  noBreadcrumbs: boolean;
24
24
  InputType: typeof InputType;
25
+ /**
26
+ * Rota para voltar, caso não seja definida, o componente irá tentar usar rota do ionic
27
+ */
28
+ backRouterLink: string | any[] | UrlTree | undefined;
25
29
  constructor(fb: FormBuilder, elementRef: ElementRef, activatedRoute: ActivatedRoute, genericService: GenericService, navController: NavController);
26
30
  static ɵfac: i0.ɵɵFactoryDeclaration<DefaultViewComponent<any>, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<DefaultViewComponent<any>, "default-view", never, { "noBack": { "alias": "noBack"; "required": false; }; "noNew": { "alias": "noNew"; "required": false; }; "noBreadcrumbs": { "alias": "noBreadcrumbs"; "required": false; }; }, {}, never, never, false, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<DefaultViewComponent<any>, "default-view", never, { "noBack": { "alias": "noBack"; "required": false; }; "noNew": { "alias": "noNew"; "required": false; }; "noBreadcrumbs": { "alias": "noBreadcrumbs"; "required": false; }; "backRouterLink": { "alias": "backRouterLink"; "required": false; }; }, {}, never, never, false, never>;
28
32
  }
@@ -1,6 +1,6 @@
1
1
  import { ElementRef, EventEmitter, OnInit } from '@angular/core';
2
2
  import { IonBackButton, NavController } from '@ionic/angular';
3
- import { ActivatedRoute } from '@angular/router';
3
+ import { ActivatedRoute, UrlTree } from '@angular/router';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class HeaderViewComponent implements OnInit {
6
6
  private navController;
@@ -12,7 +12,10 @@ export declare class HeaderViewComponent implements OnInit {
12
12
  noBack: boolean;
13
13
  noNew: boolean;
14
14
  useDefaultRouting: boolean;
15
- backRoute: string | null;
15
+ /**
16
+ * Rota para voltar, caso não seja definida, o componente irá tentar usar rota do ionic
17
+ */
18
+ backRouterLink: string | any[] | UrlTree | undefined;
16
19
  constructor(navController: NavController, activatedRoute: ActivatedRoute);
17
20
  ngOnInit(): void;
18
21
  protected get DefaultBackRoute(): string;
@@ -22,5 +25,5 @@ export declare class HeaderViewComponent implements OnInit {
22
25
  New(): void;
23
26
  Save(): void;
24
27
  static ɵfac: i0.ɵɵFactoryDeclaration<HeaderViewComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<HeaderViewComponent, "header-view", never, { "novo": { "alias": "novo"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "progress": { "alias": "progress"; "required": false; }; "noBack": { "alias": "noBack"; "required": false; }; "noNew": { "alias": "noNew"; "required": false; }; "useDefaultRouting": { "alias": "useDefaultRouting"; "required": false; }; "backRoute": { "alias": "backRoute"; "required": false; }; }, { "saveEmitter": "save"; }, never, ["[slot=start]", "[slot=end]"], false, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<HeaderViewComponent, "header-view", never, { "novo": { "alias": "novo"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "progress": { "alias": "progress"; "required": false; }; "noBack": { "alias": "noBack"; "required": false; }; "noNew": { "alias": "noNew"; "required": false; }; "useDefaultRouting": { "alias": "useDefaultRouting"; "required": false; }; "backRouterLink": { "alias": "backRouterLink"; "required": false; }; }, { "saveEmitter": "save"; }, never, ["[slot=start]", "[slot=end]"], false, never>;
26
29
  }
@@ -23,8 +23,9 @@ import * as i21 from "@maskito/angular";
23
23
  import * as i22 from "../popover/sion-popover.module";
24
24
  import * as i23 from "../loading/loading.component";
25
25
  import * as i24 from "../../directives/ng-var.directive";
26
+ import * as i25 from "@angular/cdk/overlay";
26
27
  export declare class InputsModule {
27
28
  static ɵfac: i0.ɵɵFactoryDeclaration<InputsModule, never>;
28
- static ɵmod: i0.ɵɵNgModuleDeclaration<InputsModule, [typeof i1.InputBoolComponent, typeof i2.InputCepComponent, typeof i3.InputColorComponent, typeof i4.InputCpfCnpjComponent, typeof i5.InputDateComponent, typeof i6.InputDecimalComponent, typeof i7.InputFileComponent, typeof i8.InputIconComponent, typeof i9.InputSelectComponent, typeof i10.SIonLabelTemplateDirective, typeof i11.SIonOptionTemplateDirective, typeof i12.SIonPlaceholderTemplateDirective, typeof i13.InputStringComponent, typeof i14.InputTelefoneComponent, typeof i15.InputTextareaComponent, typeof i16.DownloadButtonComponent], [typeof i17.IonicModule, typeof i18.CommonModule, typeof i19.ReactiveFormsModule, typeof i19.FormsModule, typeof i20.ImageComponent, typeof i21.MaskitoDirective, typeof i22.SIonPopoverModule, typeof i23.LoadingComponent, typeof i24.NgVarDirective], [typeof i1.InputBoolComponent, typeof i2.InputCepComponent, typeof i3.InputColorComponent, typeof i4.InputCpfCnpjComponent, typeof i5.InputDateComponent, typeof i6.InputDecimalComponent, typeof i7.InputFileComponent, typeof i8.InputIconComponent, typeof i9.InputSelectComponent, typeof i10.SIonLabelTemplateDirective, typeof i11.SIonOptionTemplateDirective, typeof i12.SIonPlaceholderTemplateDirective, typeof i13.InputStringComponent, typeof i14.InputTelefoneComponent, typeof i15.InputTextareaComponent, typeof i16.DownloadButtonComponent]>;
29
+ static ɵmod: i0.ɵɵNgModuleDeclaration<InputsModule, [typeof i1.InputBoolComponent, typeof i2.InputCepComponent, typeof i3.InputColorComponent, typeof i4.InputCpfCnpjComponent, typeof i5.InputDateComponent, typeof i6.InputDecimalComponent, typeof i7.InputFileComponent, typeof i8.InputIconComponent, typeof i9.InputSelectComponent, typeof i10.SIonLabelTemplateDirective, typeof i11.SIonOptionTemplateDirective, typeof i12.SIonPlaceholderTemplateDirective, typeof i13.InputStringComponent, typeof i14.InputTelefoneComponent, typeof i15.InputTextareaComponent, typeof i16.DownloadButtonComponent], [typeof i17.IonicModule, typeof i18.CommonModule, typeof i19.ReactiveFormsModule, typeof i19.FormsModule, typeof i20.ImageComponent, typeof i21.MaskitoDirective, typeof i22.SIonPopoverModule, typeof i23.LoadingComponent, typeof i24.NgVarDirective, typeof i25.OverlayModule], [typeof i1.InputBoolComponent, typeof i2.InputCepComponent, typeof i3.InputColorComponent, typeof i4.InputCpfCnpjComponent, typeof i5.InputDateComponent, typeof i6.InputDecimalComponent, typeof i7.InputFileComponent, typeof i8.InputIconComponent, typeof i9.InputSelectComponent, typeof i10.SIonLabelTemplateDirective, typeof i11.SIonOptionTemplateDirective, typeof i12.SIonPlaceholderTemplateDirective, typeof i13.InputStringComponent, typeof i14.InputTelefoneComponent, typeof i15.InputTextareaComponent, typeof i16.DownloadButtonComponent]>;
29
30
  static ɵinj: i0.ɵɵInjectorDeclaration<InputsModule>;
30
31
  }
@@ -1,9 +1,8 @@
1
- import { ElementRef, EventEmitter, NgZone, OnDestroy, OnInit, TemplateRef, ViewContainerRef, ViewRef } from '@angular/core';
1
+ import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnDestroy, ViewRef } from '@angular/core';
2
2
  import { ComputePositionReturn, Placement } from '@floating-ui/dom';
3
3
  import * as i0 from "@angular/core";
4
4
  type Fill = 'solid' | 'outline' | 'blur' | 'clear';
5
- export declare class SIonPopoverComponent implements OnInit, OnDestroy {
6
- private viewContainerRef;
5
+ export declare class SIonPopoverComponent implements AfterViewInit, OnDestroy {
7
6
  private ngZone;
8
7
  fill: Fill;
9
8
  arrow: boolean;
@@ -16,17 +15,13 @@ export declare class SIonPopoverComponent implements OnInit, OnDestroy {
16
15
  onWillDismiss: EventEmitter<void>;
17
16
  onDidDismiss: EventEmitter<void>;
18
17
  anchor: HTMLElement | undefined;
19
- constructor(viewContainerRef: ViewContainerRef, ngZone: NgZone);
20
- popoverTemplate: TemplateRef<any>;
18
+ constructor(ngZone: NgZone);
21
19
  contentContainer: ElementRef<HTMLDivElement>;
22
- arrowElement: ElementRef<HTMLElement>;
23
- ngOnInit(): void;
20
+ ngAfterViewInit(): void;
24
21
  documentClickListener: (event: MouseEvent) => void;
25
22
  viewRef?: ViewRef;
26
23
  private _embeddedView?;
27
- CreateEmbeddedView(): void;
28
24
  private _instance?;
29
- CreateInstance(): void;
30
25
  get arrowEl(): HTMLElement | undefined;
31
26
  private cleanupAutoUpdate?;
32
27
  state: POPOVER_STATE;
@@ -1,8 +1,9 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./sion-popover/sion-popover.component";
3
3
  import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/cdk/overlay";
4
5
  export declare class SIonPopoverModule {
5
6
  static ɵfac: i0.ɵɵFactoryDeclaration<SIonPopoverModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<SIonPopoverModule, [typeof i1.SIonPopoverComponent], [typeof i2.CommonModule], [typeof i1.SIonPopoverComponent]>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SIonPopoverModule, [typeof i1.SIonPopoverComponent], [typeof i2.CommonModule, typeof i3.OverlayModule], [typeof i1.SIonPopoverComponent]>;
7
8
  static ɵinj: i0.ɵɵInjectorDeclaration<SIonPopoverModule>;
8
9
  }
@@ -9,7 +9,7 @@ export declare class StepComponent implements OnInit {
9
9
  get index(): number;
10
10
  get fill(): boolean;
11
11
  get selected(): boolean;
12
- get _fill(): 0 | 1;
12
+ get _fill(): 1 | 0;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<StepComponent, never>;
14
14
  static ɵcmp: i0.ɵɵComponentDeclaration<StepComponent, "step", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, ["ion-icon, ion-text"], false, never>;
15
15
  }
@@ -1,9 +1,12 @@
1
1
  import { InjectionToken, ModuleWithProviders } from '@angular/core';
2
2
  import { Environment } from './classes/environment';
3
+ import { ModalFocusTrapService } from './services/modal-focus-trap.service';
3
4
  import * as i0 from "@angular/core";
4
5
  import * as i1 from "@angular/common";
5
6
  export declare const EnvironmentInjectionToken: InjectionToken<Environment>;
6
7
  export declare class SapphireIonFrameworkModule {
8
+ private mis;
9
+ constructor(mis: ModalFocusTrapService);
7
10
  static forRoot(config: Environment): ModuleWithProviders<SapphireIonFrameworkModule>;
8
11
  static ɵfac: i0.ɵɵFactoryDeclaration<SapphireIonFrameworkModule, never>;
9
12
  static ɵmod: i0.ɵɵNgModuleDeclaration<SapphireIonFrameworkModule, never, [typeof i1.CommonModule], never>;
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ModalFocusTrapService {
3
+ constructor();
4
+ private initGlobalFocusTrapDisable;
5
+ private setupModalObserver;
6
+ private disableFocusTrap;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalFocusTrapService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<ModalFocusTrapService>;
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapphire-ion/framework",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^18.2.8",
@@ -1,7 +1,7 @@
1
1
  .popover-wrapper {
2
- @apply absolute z-50 rounded-xl;
2
+ @apply z-50 rounded-xl;
3
3
  width: max-content;
4
- position: absolute;
4
+ position: fixed;
5
5
  will-change: left, top, bottom, right, auto, opacity, filter;
6
6
  opacity: 0;
7
7
  transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out, filter 0.15s ease-in-out;
@@ -11,6 +11,8 @@
11
11
 
12
12
  filter: grayscale(0.9);
13
13
  transform: scale(0.95);
14
+ pointer-events: auto !important;
15
+ z-index: 10001 !important; // Ensure it's above the modal
14
16
  }
15
17
  .popover-arrow{
16
18
  @apply rounded-sm;
@@ -24,5 +26,5 @@
24
26
  opacity: 1;
25
27
  }
26
28
  .popover-wrapper:not(.show) {
27
- pointer-events: none;
29
+ pointer-events: none !important;
28
30
  }
@@ -467,4 +467,5 @@ text-tooltip{
467
467
  hsl(from var(--color-primary , var(--ion-color-primary)) h s l / var(--step-1-opacity, 0.7)),
468
468
  hsl(from var(--color-primary , var(--ion-color-primary)) h s l / var(--step-2-opacity, 0.3))),
469
469
  hsl(from var(--color-secondary, var(--ion-color-light)) h s l / var(--step-3-opacity, 0.2));
470
- }
470
+ }
471
+
@@ -5,4 +5,4 @@ ion-modal{
5
5
  }
6
6
  overflow: hidden;
7
7
  }
8
- }
8
+ }