@sapphire-ion/framework 1.0.1 → 1.0.3
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/inputs/input-date/input-date.component.mjs +1 -1
- package/esm2022/lib/components/inputs/input-file/input-file.component.mjs +2 -2
- package/esm2022/lib/components/inputs/input-select/input-select.component.mjs +12 -10
- package/esm2022/lib/components/inputs/input-select/input.select.configuration.mjs +11 -6
- package/esm2022/lib/components/popover/sion-popover/sion-popover.component.mjs +73 -34
- package/esm2022/lib/services/web/http.service.mjs +4 -7
- package/fesm2022/sapphire-ion-framework.mjs +98 -55
- package/fesm2022/sapphire-ion-framework.mjs.map +1 -1
- package/lib/components/inputs/input-select/input-select.component.d.ts +2 -2
- package/lib/components/popover/sion-popover/sion-popover.component.d.ts +16 -10
- 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 +1 -3
- package/esm2022/lib/components/popover/sion-popover.service.mjs +0 -33
- package/lib/components/popover/sion-popover.service.d.ts +0 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef,
|
|
1
|
+
import { AfterViewInit, ElementRef, InputSignal, ModelSignal, Signal, TemplateRef, WritableSignal } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { IonModal } from '@ionic/angular';
|
|
4
4
|
import { InputSelectConfiguration } from './input.select.configuration';
|
|
@@ -38,7 +38,7 @@ export declare class NewInputSelectComponent<T = any> extends CustomInput<T | T[
|
|
|
38
38
|
searchValue: WritableSignal<string>;
|
|
39
39
|
private searchBarSubscription;
|
|
40
40
|
private destroy$;
|
|
41
|
-
|
|
41
|
+
destroyed: boolean;
|
|
42
42
|
ngAfterViewInit(): void;
|
|
43
43
|
ClearSearchBar(): void;
|
|
44
44
|
ngOnDestroy(): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
-
import { Placement } from '@floating-ui/dom';
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy, QueryList, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
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 {
|
|
6
|
-
private
|
|
5
|
+
export declare class SIonPopoverComponent implements OnDestroy {
|
|
6
|
+
private viewContainerRef;
|
|
7
7
|
fill: Fill;
|
|
8
8
|
arrow: boolean;
|
|
9
9
|
flip: boolean;
|
|
@@ -15,16 +15,22 @@ export declare class SIonPopoverComponent {
|
|
|
15
15
|
onWillDismiss: EventEmitter<void>;
|
|
16
16
|
onDidDismiss: EventEmitter<void>;
|
|
17
17
|
anchor: HTMLElement | undefined;
|
|
18
|
-
constructor(
|
|
19
|
-
|
|
18
|
+
constructor(viewContainerRef: ViewContainerRef);
|
|
19
|
+
popoverTemplate: TemplateRef<any>;
|
|
20
|
+
contentContainer: ElementRef<HTMLDivElement>;
|
|
20
21
|
arrowElement: ElementRef<HTMLElement>;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
contentChildren: QueryList<any>;
|
|
23
|
+
isVisible: boolean;
|
|
24
|
+
private cleanupAutoUpdate?;
|
|
25
|
+
private popoverInstance?;
|
|
26
|
+
isVisibleChange: EventEmitter<boolean>;
|
|
24
27
|
present(event?: Event): Promise<void>;
|
|
28
|
+
GetComputePositionReturn(refEl: HTMLElement, popEl: HTMLElement, arrowEl: HTMLElement): Promise<ComputePositionReturn>;
|
|
29
|
+
private CreatePopoverInBody;
|
|
25
30
|
HandleClicks(event: MouseEvent): void;
|
|
26
31
|
dismiss(): Promise<void>;
|
|
32
|
+
ngOnDestroy(): void;
|
|
27
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<SIonPopoverComponent, never>;
|
|
28
|
-
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"; "
|
|
34
|
+
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"; "isVisibleChange": "isVisibleChange"; }, ["contentChildren"], ["*"], false, never>;
|
|
29
35
|
}
|
|
30
36
|
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(): 0 | 1;
|
|
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
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class SionPopoverService {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.lstPopovers = [];
|
|
6
|
-
}
|
|
7
|
-
Register(popoverComponent) {
|
|
8
|
-
this.lstPopovers.push(popoverComponent);
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
Unregister(popoverComponent) {
|
|
12
|
-
const index = this.lstPopovers.indexOf(popoverComponent);
|
|
13
|
-
if (index > -1) {
|
|
14
|
-
this.lstPopovers.splice(index, 1);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
HandlePresent(popoverComponent) {
|
|
18
|
-
console.log(this.lstPopovers);
|
|
19
|
-
this.lstPopovers.filter(p => p != popoverComponent).forEach((popover) => { popover.dismiss(); });
|
|
20
|
-
}
|
|
21
|
-
HandleDismiss(popoverComponent) {
|
|
22
|
-
this.lstPopovers.filter(p => p != popoverComponent).forEach((popover) => { popover.dismiss(); });
|
|
23
|
-
}
|
|
24
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SionPopoverService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
25
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SionPopoverService, providedIn: 'root' }); }
|
|
26
|
-
}
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SionPopoverService, decorators: [{
|
|
28
|
-
type: Injectable,
|
|
29
|
-
args: [{
|
|
30
|
-
providedIn: 'root'
|
|
31
|
-
}]
|
|
32
|
-
}], ctorParameters: () => [] });
|
|
33
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lvbi1wb3BvdmVyLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8u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hpcy5sc3RQb3BvdmVycy5pbmRleE9mKHBvcG92ZXJDb21wb25lbnQpO1xyXG4gICAgaWYgKGluZGV4ID4gLTEpIHtcclxuICAgICAgdGhpcy5sc3RQb3BvdmVycy5zcGxpY2UoaW5kZXgsIDEpO1xyXG4gICAgfVxyXG4gIH1cclxuXHJcbiAgSGFuZGxlUHJlc2VudChwb3BvdmVyQ29tcG9uZW50OiBTSW9uUG9wb3ZlckNvbXBvbmVudCk6IHZvaWQge1xyXG4gICAgY29uc29sZS5sb2codGhpcy5sc3RQb3BvdmVycyk7XHJcbiAgICB0aGlzLmxzdFBvcG92ZXJzLmZpbHRlcihwID0+IHAgIT0gcG9wb3ZlckNvbXBvbmVudCkuZm9yRWFjaCgocG9wb3ZlcikgPT4geyBwb3BvdmVyLmRpc21pc3MoKTsgfSk7XHJcbiAgfVxyXG4gIEhhbmRsZURpc21pc3MocG9wb3ZlckNvbXBvbmVudDogU0lvblBvcG92ZXJDb21wb25lbnQpOiB2b2lkIHtcclxuICAgIHRoaXMubHN0UG9wb3ZlcnMuZmlsdGVyKHAgPT4gcCAhPSBwb3BvdmVyQ29tcG9uZW50KS5mb3JFYWNoKChwb3BvdmVyKSA9PiB7IHBvcG92ZXIuZGlzbWlzcygpOyB9KTtcclxuICB9XHJcbn1cclxuIl19
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SIonPopoverComponent } from './sion-popover/sion-popover.component';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class SionPopoverService {
|
|
4
|
-
lstPopovers: SIonPopoverComponent[];
|
|
5
|
-
constructor();
|
|
6
|
-
Register(popoverComponent: SIonPopoverComponent): void;
|
|
7
|
-
Unregister(popoverComponent: SIonPopoverComponent): void;
|
|
8
|
-
HandlePresent(popoverComponent: SIonPopoverComponent): void;
|
|
9
|
-
HandleDismiss(popoverComponent: SIonPopoverComponent): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SionPopoverService, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SionPopoverService>;
|
|
12
|
-
}
|