@sapphire-ion/framework 1.0.33 → 1.0.35
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/default/default-table/th-filter/th-filter.component.mjs +1 -1
- package/esm2022/lib/components/default/default-view/default-view.component.mjs +9 -3
- package/esm2022/lib/components/default/default-view/header-view/header-view.component.mjs +8 -5
- package/esm2022/lib/components/drawer/drawer.component.mjs +2 -2
- package/esm2022/lib/components/inputs/input-color/input-color.component.mjs +1 -1
- package/esm2022/lib/components/inputs/input-date/input-date.component.mjs +3 -3
- package/esm2022/lib/components/inputs/input-select/input-select.component.mjs +22 -6
- package/esm2022/lib/components/inputs/input-select/input.select.configuration.mjs +16 -1
- package/esm2022/lib/components/main-content/main-content.component.mjs +1 -1
- package/esm2022/lib/components/popover/sion-popover/sion-popover.component.mjs +118 -108
- package/esm2022/lib/components/popover/sion-popover.module.mjs +3 -6
- package/fesm2022/sapphire-ion-framework.mjs +177 -130
- package/fesm2022/sapphire-ion-framework.mjs.map +1 -1
- package/lib/components/default/default-view/default-view.component.d.ts +6 -2
- package/lib/components/default/default-view/header-view/header-view.component.d.ts +6 -3
- package/lib/components/inputs/input-select/input-select.component.d.ts +4 -1
- package/lib/components/inputs/input-select/input.select.configuration.d.ts +19 -0
- package/lib/components/popover/sion-popover/sion-popover.component.d.ts +21 -13
- package/lib/components/stepper/step/step.component.d.ts +1 -1
- package/package.json +1 -1
- package/themes/components/popover/sion-popover/sion-popover.component.scss +14 -32
|
@@ -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
|
-
|
|
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; }; "
|
|
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
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, InputSignal, ModelSignal, Signal, TemplateRef, WritableSignal } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
|
-
import { IonModal } from '@ionic/angular';
|
|
3
|
+
import { InfiniteScrollCustomEvent, IonContent, IonModal } from '@ionic/angular';
|
|
4
4
|
import { InputSelectConfiguration } from './input.select.configuration';
|
|
5
5
|
import { SIonPopoverComponent } from '../../popover/sion-popover/sion-popover.component';
|
|
6
6
|
import { CustomInput } from '../custom-input';
|
|
@@ -19,6 +19,8 @@ export declare class InputSelectComponent<T = any> extends CustomInput<T | T[]>
|
|
|
19
19
|
SetCurrentItemLabel(): void;
|
|
20
20
|
lstOptionsItemValue: Signal<ItemValue<any>[]>;
|
|
21
21
|
lstOptions: ItemValue<any>[];
|
|
22
|
+
infiniteScrollPage: WritableSignal<number>;
|
|
23
|
+
AddPage(event: InfiniteScrollCustomEvent): void;
|
|
22
24
|
UpdateLstOptions(search: string): void;
|
|
23
25
|
UpdateSelected(): void;
|
|
24
26
|
labelTemplate: TemplateRef<LabelTemplateContext<T>>;
|
|
@@ -50,6 +52,7 @@ export declare class InputSelectComponent<T = any> extends CustomInput<T | T[]>
|
|
|
50
52
|
popover: SIonPopoverComponent;
|
|
51
53
|
modal: IonModal;
|
|
52
54
|
floatingVisible: boolean;
|
|
55
|
+
ionContent: IonContent;
|
|
53
56
|
Present(event: Event): Promise<void>;
|
|
54
57
|
Dismiss(): Promise<void>;
|
|
55
58
|
OnDismiss(): void;
|
|
@@ -28,6 +28,24 @@ export declare class InputSelectConfiguration {
|
|
|
28
28
|
multiple: boolean;
|
|
29
29
|
/** Desativa os items que estão de acordo com a função */
|
|
30
30
|
disableConditional: ((obj: any) => boolean) | null;
|
|
31
|
+
static Create(options: {
|
|
32
|
+
bindLabel: string | ((obj: any) => string);
|
|
33
|
+
bindValue: string | ((obj: any) => any);
|
|
34
|
+
clearable?: boolean;
|
|
35
|
+
searcheable?: boolean;
|
|
36
|
+
loadFrom?: HttpService | Observable<ViewRetorno> | any[];
|
|
37
|
+
multiple?: boolean;
|
|
38
|
+
vFiltros?: Partial<{
|
|
39
|
+
search: string;
|
|
40
|
+
orderByProperty: string;
|
|
41
|
+
ascending: boolean;
|
|
42
|
+
filter: Comparison[];
|
|
43
|
+
}>;
|
|
44
|
+
disableConditional?: ((obj: any) => boolean);
|
|
45
|
+
useInfiniteScroll?: boolean;
|
|
46
|
+
placeholder?: string;
|
|
47
|
+
noItensFoundText?: string;
|
|
48
|
+
}): InputSelectConfiguration;
|
|
31
49
|
placeholder: string;
|
|
32
50
|
noItensFoundText: string;
|
|
33
51
|
loader: InputSelectDataLoader;
|
|
@@ -39,6 +57,7 @@ export declare class InputSelectConfiguration {
|
|
|
39
57
|
placement: Placement;
|
|
40
58
|
};
|
|
41
59
|
vFiltros: ViewFiltros | null;
|
|
60
|
+
useInfiniteScroll: boolean;
|
|
42
61
|
constructor(
|
|
43
62
|
/** Valor que será setado no formControl */
|
|
44
63
|
bindValue?: string | ((obj: any) => any),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, NgZone, OnDestroy, OnInit,
|
|
1
|
+
import { ElementRef, EventEmitter, NgZone, OnDestroy, OnInit, TemplateRef, ViewContainerRef, 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
|
|
5
|
+
export declare class SIonPopoverComponent implements OnInit, OnDestroy {
|
|
6
6
|
private viewContainerRef;
|
|
7
7
|
private ngZone;
|
|
8
8
|
fill: Fill;
|
|
@@ -20,21 +20,29 @@ export declare class SIonPopoverComponent implements OnDestroy, OnInit {
|
|
|
20
20
|
popoverTemplate: TemplateRef<any>;
|
|
21
21
|
contentContainer: ElementRef<HTMLDivElement>;
|
|
22
22
|
arrowElement: ElementRef<HTMLElement>;
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
documentClickListener: (event: MouseEvent) => void;
|
|
25
|
+
viewRef?: ViewRef;
|
|
26
|
+
private _embeddedView?;
|
|
27
|
+
CreateEmbeddedView(): void;
|
|
28
|
+
private _instance?;
|
|
29
|
+
CreateInstance(): void;
|
|
30
|
+
get arrowEl(): HTMLElement | undefined;
|
|
25
31
|
private cleanupAutoUpdate?;
|
|
26
|
-
|
|
27
|
-
isVisibleChange: EventEmitter<boolean>;
|
|
28
|
-
private lock;
|
|
32
|
+
state: POPOVER_STATE;
|
|
29
33
|
present(event?: Event): Promise<void>;
|
|
30
|
-
|
|
31
|
-
private CreatePopoverInBody;
|
|
32
|
-
onClick(event: MouseEvent): void;
|
|
33
|
-
documentClickListener: (event: MouseEvent) => void;
|
|
34
|
-
ngOnInit(): void;
|
|
34
|
+
private update;
|
|
35
35
|
dismiss(): Promise<void>;
|
|
36
|
+
HandleComputePositionReturn(computePositionReturn: ComputePositionReturn, arrowEl: HTMLElement): void;
|
|
36
37
|
ngOnDestroy(): void;
|
|
38
|
+
GetComputePositionReturn(refEl: HTMLElement, popEl: HTMLElement, arrowEl: HTMLElement): Promise<ComputePositionReturn>;
|
|
37
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<SIonPopoverComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SIonPopoverComponent, "sion-popover", never, { "fill": { "alias": "fill"; "required": false; }; "arrow": { "alias": "arrow"; "required": false; }; "flip": { "alias": "flip"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "height": { "alias": "height"; "required": false; }; "width": { "alias": "width"; "required": false; }; "anchor": { "alias": "anchor"; "required": false; }; }, { "onWillPresent": "onWillPresent"; "onDidPresent": "onDidPresent"; "onWillDismiss": "onWillDismiss"; "onDidDismiss": "onDidDismiss";
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SIonPopoverComponent, "sion-popover", never, { "fill": { "alias": "fill"; "required": false; }; "arrow": { "alias": "arrow"; "required": false; }; "flip": { "alias": "flip"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "height": { "alias": "height"; "required": false; }; "width": { "alias": "width"; "required": false; }; "anchor": { "alias": "anchor"; "required": false; }; }, { "onWillPresent": "onWillPresent"; "onDidPresent": "onDidPresent"; "onWillDismiss": "onWillDismiss"; "onDidDismiss": "onDidDismiss"; }, never, ["*"], false, never>;
|
|
41
|
+
}
|
|
42
|
+
declare enum POPOVER_STATE {
|
|
43
|
+
IDLE = 1,
|
|
44
|
+
PRESENTING = 2,
|
|
45
|
+
DISMISSING = 3,
|
|
46
|
+
VISIBLE = 4
|
|
39
47
|
}
|
|
40
48
|
export {};
|
|
@@ -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():
|
|
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
|
}
|
package/package.json
CHANGED
|
@@ -3,8 +3,14 @@
|
|
|
3
3
|
width: max-content;
|
|
4
4
|
position: absolute;
|
|
5
5
|
will-change: left, top, bottom, right, auto, opacity, filter;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
opacity: 0;
|
|
7
|
+
transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out, filter 0.15s ease-in-out;
|
|
8
|
+
// display: none;
|
|
9
|
+
min-width: 2rem;
|
|
10
|
+
min-height: 2rem;
|
|
11
|
+
|
|
12
|
+
filter: grayscale(0.9);
|
|
13
|
+
transform: scale(0.95);
|
|
8
14
|
}
|
|
9
15
|
.popover-arrow{
|
|
10
16
|
@apply rounded-sm;
|
|
@@ -12,35 +18,11 @@
|
|
|
12
18
|
transform: scale(1) rotate(var(--rotation)) !important;
|
|
13
19
|
clip-path: var(--clip-path-triangle, polygon(0% 0%,0% 100%,100% 100%));
|
|
14
20
|
}
|
|
15
|
-
.
|
|
16
|
-
|
|
21
|
+
.show {
|
|
22
|
+
filter: grayscale(0);
|
|
23
|
+
transform: scale(1);
|
|
24
|
+
opacity: 1;
|
|
17
25
|
}
|
|
18
|
-
.
|
|
26
|
+
.popover-wrapper:not(.show) {
|
|
19
27
|
pointer-events: none;
|
|
20
|
-
|
|
21
|
-
opacity: 0;
|
|
22
|
-
}
|
|
23
|
-
@keyframes visible {
|
|
24
|
-
from {
|
|
25
|
-
opacity: 0 !important;
|
|
26
|
-
filter: grayscale(0.9);
|
|
27
|
-
transform: scale(0.95);
|
|
28
|
-
}
|
|
29
|
-
to {
|
|
30
|
-
opacity: 1 !important;
|
|
31
|
-
filter: grayscale(0);
|
|
32
|
-
transform: scale(1);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
@keyframes invisible {
|
|
36
|
-
from {
|
|
37
|
-
opacity: 1;
|
|
38
|
-
filter: grayscale(0);
|
|
39
|
-
transform: scale(1);
|
|
40
|
-
}
|
|
41
|
-
to {
|
|
42
|
-
opacity: 0 !important;
|
|
43
|
-
filter: grayscale(0.9);
|
|
44
|
-
transform: scale(0.95);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
28
|
+
}
|