@sapphire-ion/framework 1.2.59 → 1.2.61
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/esm2022/lib/components/carousel/carousel-image/carousel-image.component.mjs +3 -3
- package/esm2022/lib/components/carousel/carousel-item/carousel-item.component.mjs +3 -3
- package/esm2022/lib/components/carousel/carousel.component.mjs +3 -3
- package/esm2022/lib/components/carousel/carousel.module.mjs +4 -4
- package/esm2022/lib/components/carousel/i-carousel-item.component.mjs +3 -3
- package/esm2022/lib/components/content-block/content-block.component.mjs +3 -3
- package/esm2022/lib/components/default/default-list/abstract-list.mjs +3 -3
- package/esm2022/lib/components/default/default-list/default-list.component.mjs +3 -3
- package/esm2022/lib/components/default/default-list/header-list/header-list.component.mjs +3 -3
- package/esm2022/lib/components/default/default-list/list.mjs +3 -3
- package/esm2022/lib/components/default/default-pagination/default-pagination.component.mjs +3 -3
- package/esm2022/lib/components/default/default-table/default-table.component.mjs +3 -3
- package/esm2022/lib/components/default/default-table/th-filter/th-filter.component.mjs +3 -3
- package/esm2022/lib/components/default/default-view/abstract-view.mjs +3 -3
- package/esm2022/lib/components/default/default-view/default-view.component.mjs +3 -3
- package/esm2022/lib/components/default/default-view/header-view/header-view.component.mjs +11 -18
- package/esm2022/lib/components/default/default-view/view.mjs +3 -3
- package/esm2022/lib/components/default/default.module.mjs +4 -4
- package/esm2022/lib/components/default-page/default.page.mjs +3 -3
- package/esm2022/lib/components/drag-drop-file/drag-drop-file.directive.mjs +3 -3
- package/esm2022/lib/components/drag-drop-file/drag-drop-file.module.mjs +4 -4
- package/esm2022/lib/components/drag-drop-file/drag-drop-overlay/drag-drop-overlay.component.mjs +3 -3
- package/esm2022/lib/components/drawer/default-drawer-end/default-drawer-end.component.mjs +3 -3
- package/esm2022/lib/components/drawer/drawer-group/drawer-group.component.mjs +3 -3
- package/esm2022/lib/components/drawer/drawer.component.mjs +3 -3
- package/esm2022/lib/components/filter/filter.component.mjs +3 -3
- package/esm2022/lib/components/http-responses-pages/forbidden-403/forbidden-403.component.mjs +3 -3
- package/esm2022/lib/components/image/image.component.mjs +3 -3
- package/esm2022/lib/components/info-popover/info-popover.component.mjs +3 -3
- package/esm2022/lib/components/inputs/custom-input.mjs +3 -3
- package/esm2022/lib/components/inputs/input-bool/input-bool.component.mjs +3 -3
- package/esm2022/lib/components/inputs/input-cep/input-cep.component.mjs +3 -3
- package/esm2022/lib/components/inputs/input-color/input-color.component.mjs +3 -3
- package/esm2022/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.mjs +3 -3
- package/esm2022/lib/components/inputs/input-date/input-date.component.mjs +27 -7
- package/esm2022/lib/components/inputs/input-date/input-date.configuration.mjs +5 -2
- package/esm2022/lib/components/inputs/input-decimal/input-decimal.component.mjs +42 -9
- package/esm2022/lib/components/inputs/input-file/download-button/download-button.component.mjs +3 -3
- package/esm2022/lib/components/inputs/input-file/input-file.component.mjs +3 -3
- package/esm2022/lib/components/inputs/input-icon/input-icon.component.mjs +3 -3
- package/esm2022/lib/components/inputs/input-select/directives/sion-label-template.directive.mjs +3 -3
- package/esm2022/lib/components/inputs/input-select/directives/sion-option-template.directive.mjs +3 -3
- package/esm2022/lib/components/inputs/input-select/directives/sion-placeholder-template.directive.mjs +3 -3
- package/esm2022/lib/components/inputs/input-select/input-select.component.mjs +13 -10
- package/esm2022/lib/components/inputs/input-select/input.select.configuration.mjs +7 -3
- package/esm2022/lib/components/inputs/input-string/input-string.component.mjs +3 -3
- package/esm2022/lib/components/inputs/input-telefone/input-telefone.component.mjs +3 -3
- package/esm2022/lib/components/inputs/input-textarea/input-textarea.component.mjs +3 -3
- package/esm2022/lib/components/inputs/inputs.module.mjs +4 -4
- package/esm2022/lib/components/loading/loading.component.mjs +3 -3
- package/esm2022/lib/components/login/login-admin/login-admin.component.mjs +3 -3
- package/esm2022/lib/components/login/login.component.mjs +3 -3
- package/esm2022/lib/components/main-content/main-content.component.mjs +3 -3
- package/esm2022/lib/components/popover/sion-popover/sion-popover.component.mjs +3 -3
- package/esm2022/lib/components/popover/sion-popover.module.mjs +4 -4
- package/esm2022/lib/components/sion-card/sion-card.component.mjs +3 -3
- package/esm2022/lib/components/stepper/step/step.component.mjs +3 -3
- package/esm2022/lib/components/stepper/stepper.component.mjs +3 -3
- package/esm2022/lib/components/stepper/stepper.module.mjs +4 -4
- package/esm2022/lib/components/tabs/tab/tab.component.mjs +3 -3
- package/esm2022/lib/components/tabs/tabs/tabs.component.mjs +3 -3
- package/esm2022/lib/components/tabs/tabs.module.mjs +4 -4
- package/esm2022/lib/components/text-tooltip/text-tooltip.component.mjs +3 -3
- package/esm2022/lib/components/tooltip/tooltip.component.mjs +3 -3
- package/esm2022/lib/core.module.mjs +4 -4
- package/esm2022/lib/directives/ng-var.directive.mjs +3 -3
- package/esm2022/lib/guards/auth.guard.mjs +3 -3
- package/esm2022/lib/guards/error.interceptor.mjs +3 -3
- package/esm2022/lib/guards/token.interceptor.mjs +3 -3
- package/esm2022/lib/index.mjs +2 -1
- package/esm2022/lib/pipes/secure.pipe.mjs +3 -3
- package/esm2022/lib/services/auth.service.mjs +3 -3
- package/esm2022/lib/services/environment.service.mjs +3 -3
- package/esm2022/lib/services/generic.service.mjs +3 -3
- package/esm2022/lib/services/modal-focus-trap.service.mjs +3 -3
- package/esm2022/lib/services/navigation-context.service.mjs +100 -0
- package/esm2022/lib/services/popover-focus-trap.service.mjs +3 -3
- package/esm2022/lib/services/route/route.provider.service.mjs +3 -3
- package/esm2022/lib/services/usuario.service.mjs +3 -3
- package/esm2022/lib/services/utils.service.mjs +3 -3
- package/esm2022/lib/services/web/api-url-provider.service.mjs +3 -3
- package/esm2022/lib/services/web/http.ativo.service.mjs +3 -3
- package/esm2022/lib/services/web/http.service.mjs +11 -6
- package/esm2022/lib/services/web/storage.service.mjs +3 -3
- package/fesm2022/sapphire-ion-framework.mjs +437 -283
- package/fesm2022/sapphire-ion-framework.mjs.map +1 -1
- package/lib/components/default/default-view/header-view/header-view.component.d.ts +3 -1
- package/lib/components/inputs/input-date/input-date.configuration.d.ts +5 -1
- package/lib/components/inputs/input-decimal/input-decimal.component.d.ts +4 -3
- package/lib/components/inputs/input-select/input-select.component.d.ts +1 -1
- package/lib/components/inputs/input-select/input.select.configuration.d.ts +6 -1
- package/lib/index.d.ts +1 -0
- package/lib/services/navigation-context.service.d.ts +14 -0
- package/package.json +1 -1
- package/themes/components/inputs/input-decimal/input-decimal.component.scss +1 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { IonBackButton, NavController } from '@ionic/angular';
|
|
3
3
|
import { ActivatedRoute, UrlTree } from '@angular/router';
|
|
4
|
+
import { NavigationContextService } from '../../../../services/navigation-context.service';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class HeaderViewComponent implements OnInit {
|
|
6
7
|
private navController;
|
|
7
8
|
private activatedRoute;
|
|
9
|
+
private navContext;
|
|
8
10
|
novo: boolean;
|
|
9
11
|
loading: boolean;
|
|
10
12
|
progress: number | null;
|
|
@@ -21,7 +23,7 @@ export declare class HeaderViewComponent implements OnInit {
|
|
|
21
23
|
* Rota para voltar, caso não seja definida, o componente irá tentar usar rota do ionic
|
|
22
24
|
*/
|
|
23
25
|
backRouterLink: string | any[] | UrlTree | undefined;
|
|
24
|
-
constructor(navController: NavController, activatedRoute: ActivatedRoute);
|
|
26
|
+
constructor(navController: NavController, activatedRoute: ActivatedRoute, navContext: NavigationContextService);
|
|
25
27
|
ngOnInit(): void;
|
|
26
28
|
protected get DefaultBackRoute(): string;
|
|
27
29
|
IonBackButtonElement: IonBackButton;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
export declare class InputDateConfiguration {
|
|
2
2
|
/** Habilita o botão de limpar os dados */
|
|
3
3
|
clearable: boolean;
|
|
4
|
+
/** Caso o Input for DateTime, pode inserir o parametro para setar hora do momento atual */
|
|
5
|
+
setHourMoment: boolean;
|
|
4
6
|
constructor(
|
|
5
7
|
/** Habilita o botão de limpar os dados */
|
|
6
|
-
clearable?: boolean
|
|
8
|
+
clearable?: boolean,
|
|
9
|
+
/** Caso o Input for DateTime, pode inserir o parametro para setar hora do momento atual */
|
|
10
|
+
setHourMoment?: boolean);
|
|
7
11
|
}
|
|
@@ -2,17 +2,18 @@ import { ElementRef, ModelSignal, Signal } from '@angular/core';
|
|
|
2
2
|
import { InputDecimalConfiguration } from './input-decimal.configuration';
|
|
3
3
|
import { CustomInput } from '../custom-input';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class InputDecimalComponent extends CustomInput<number> {
|
|
5
|
+
export declare class InputDecimalComponent extends CustomInput<number | null> {
|
|
6
6
|
elementRef: ElementRef;
|
|
7
7
|
configuration: ModelSignal<InputDecimalConfiguration>;
|
|
8
8
|
digitsInfo: Signal<string>;
|
|
9
9
|
divider: Signal<number>;
|
|
10
|
+
placeholder: Signal<string>;
|
|
10
11
|
input: ElementRef<HTMLInputElement>;
|
|
11
12
|
inputContainer: ElementRef<HTMLDivElement>;
|
|
12
13
|
setFocus(event: MouseEvent | null): void;
|
|
13
14
|
constructor(elementRef: ElementRef);
|
|
14
|
-
writeValue(obj: number): void
|
|
15
|
-
SetValue(obj: number): void;
|
|
15
|
+
writeValue(obj: number | null): void;
|
|
16
|
+
SetValue(obj: number | null): void;
|
|
16
17
|
SetValueString(): void;
|
|
17
18
|
valueString: string;
|
|
18
19
|
onPaste(event: ClipboardEvent): void;
|
|
@@ -40,7 +40,7 @@ export declare class InputSelectComponent<T = any> extends CustomInput<T | T[]>
|
|
|
40
40
|
setFocus(event: MouseEvent | null): void;
|
|
41
41
|
constructor(cdr: ChangeDetectorRef);
|
|
42
42
|
ngOnInit(): Promise<void>;
|
|
43
|
-
|
|
43
|
+
hasAtivo: Signal<boolean>;
|
|
44
44
|
somenteAtivos: WritableSignal<boolean>;
|
|
45
45
|
HandleKeyboardEvent(event: KeyboardEvent): void;
|
|
46
46
|
selectedIndex: number | undefined;
|
|
@@ -37,6 +37,8 @@ export declare class InputSelectConfiguration {
|
|
|
37
37
|
multiple: boolean;
|
|
38
38
|
/** Desativa os items que estão de acordo com a função */
|
|
39
39
|
disableConditional: ((obj: any) => boolean) | null;
|
|
40
|
+
/** Habilita o filtro de somente ativos */
|
|
41
|
+
hasAtivo: boolean;
|
|
40
42
|
static Create(options: {
|
|
41
43
|
bindLabel: string | ((obj: any) => string);
|
|
42
44
|
bindValue: string | ((obj: any) => any);
|
|
@@ -55,6 +57,7 @@ export declare class InputSelectConfiguration {
|
|
|
55
57
|
placeholder?: string;
|
|
56
58
|
noItensFoundText?: string;
|
|
57
59
|
interface?: SelectInterfaces;
|
|
60
|
+
hasAtivo?: boolean;
|
|
58
61
|
}): InputSelectConfiguration;
|
|
59
62
|
placeholder: string;
|
|
60
63
|
noItensFoundText: string;
|
|
@@ -99,7 +102,9 @@ export declare class InputSelectConfiguration {
|
|
|
99
102
|
filter: Comparison[];
|
|
100
103
|
}> | null,
|
|
101
104
|
/** Desativa os items que estão de acordo com a função */
|
|
102
|
-
disableConditional?: ((obj: any) => boolean) | null
|
|
105
|
+
disableConditional?: ((obj: any) => boolean) | null,
|
|
106
|
+
/** Habilita o filtro de somente ativos */
|
|
107
|
+
hasAtivo?: boolean);
|
|
103
108
|
}
|
|
104
109
|
export declare class InputSelectDataLoader {
|
|
105
110
|
private lstComponents;
|
package/lib/index.d.ts
CHANGED
|
@@ -114,4 +114,5 @@ export * from '../lib/services/environment.service';
|
|
|
114
114
|
export * from './services/generic.service';
|
|
115
115
|
export * from '../lib/services/usuario.service';
|
|
116
116
|
export * from '../lib/services/utils.service';
|
|
117
|
+
export * from '../lib/services/navigation-context.service';
|
|
117
118
|
export * from '../lib/core.module';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NavigationContextService {
|
|
4
|
+
private router;
|
|
5
|
+
private previousUrl;
|
|
6
|
+
private currentUrl;
|
|
7
|
+
constructor(router: Router);
|
|
8
|
+
private getBaseRoute;
|
|
9
|
+
private getListRoute;
|
|
10
|
+
private getParentRoute;
|
|
11
|
+
getBackRoute(): string | null;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationContextService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NavigationContextService>;
|
|
14
|
+
}
|
package/package.json
CHANGED