orbiq-neural-ui-kit 1.1.26 → 1.1.28
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.
|
@@ -10616,6 +10616,15 @@ class NeuralDialogComponent {
|
|
|
10616
10616
|
this.dialogRef.close();
|
|
10617
10617
|
}
|
|
10618
10618
|
}
|
|
10619
|
+
onContainerClick(event) {
|
|
10620
|
+
const target = event.target;
|
|
10621
|
+
// Close if the click is on the scroll container or the flex wrapper (not inside the dialog card)
|
|
10622
|
+
if (target.classList.contains('dialog-scroll-container') || target.classList.contains('min-h-screen')) {
|
|
10623
|
+
if (this.dismissible()) {
|
|
10624
|
+
this.close();
|
|
10625
|
+
}
|
|
10626
|
+
}
|
|
10627
|
+
}
|
|
10619
10628
|
ngOnDestroy() {
|
|
10620
10629
|
if (this.dialogRef) {
|
|
10621
10630
|
this.dialogRef.close();
|
|
@@ -10737,6 +10746,7 @@ class NeuralDialogComponent {
|
|
|
10737
10746
|
<ng-template #dialogTemplate>
|
|
10738
10747
|
<div
|
|
10739
10748
|
class="fixed inset-0 z-50 overflow-y-auto dialog-scroll-container"
|
|
10749
|
+
(click)="onContainerClick($event)"
|
|
10740
10750
|
>
|
|
10741
10751
|
<div
|
|
10742
10752
|
class="flex min-h-screen flex-col items-center px-4 py-4 text-center"
|
|
@@ -10846,6 +10856,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
|
|
|
10846
10856
|
<ng-template #dialogTemplate>
|
|
10847
10857
|
<div
|
|
10848
10858
|
class="fixed inset-0 z-50 overflow-y-auto dialog-scroll-container"
|
|
10859
|
+
(click)="onContainerClick($event)"
|
|
10849
10860
|
>
|
|
10850
10861
|
<div
|
|
10851
10862
|
class="flex min-h-screen flex-col items-center px-4 py-4 text-center"
|
|
@@ -13841,6 +13852,8 @@ class NeuralSettingsDialogComponent {
|
|
|
13841
13852
|
...(ngDevMode ? [{ debugName: "hasTitleSlot" }] : /* istanbul ignore next */ []));
|
|
13842
13853
|
hasDescriptionSlot = input(false, /* @ts-ignore */
|
|
13843
13854
|
...(ngDevMode ? [{ debugName: "hasDescriptionSlot" }] : /* istanbul ignore next */ []));
|
|
13855
|
+
dismissible = input(true, /* @ts-ignore */
|
|
13856
|
+
...(ngDevMode ? [{ debugName: "dismissible" }] : /* istanbul ignore next */ []));
|
|
13844
13857
|
dialogTemplate;
|
|
13845
13858
|
dialogRef = null;
|
|
13846
13859
|
constructor(dialog, viewContainerRef) {
|
|
@@ -13859,7 +13872,7 @@ class NeuralSettingsDialogComponent {
|
|
|
13859
13872
|
}
|
|
13860
13873
|
openDialog() {
|
|
13861
13874
|
this.dialogRef = this.dialog.open(this.dialogTemplate, {
|
|
13862
|
-
disableClose:
|
|
13875
|
+
disableClose: !this.dismissible(),
|
|
13863
13876
|
backdropClass: 'bg-black-overlay-200',
|
|
13864
13877
|
panelClass: ['w-full', 'h-full', 'bg-transparent', 'shadow-none'],
|
|
13865
13878
|
hasBackdrop: true,
|
|
@@ -13872,11 +13885,22 @@ class NeuralSettingsDialogComponent {
|
|
|
13872
13885
|
}
|
|
13873
13886
|
});
|
|
13874
13887
|
}
|
|
13875
|
-
|
|
13888
|
+
close() {
|
|
13876
13889
|
if (this.dialogRef) {
|
|
13877
13890
|
this.dialogRef.close();
|
|
13878
13891
|
}
|
|
13879
13892
|
}
|
|
13893
|
+
onContainerClick(event) {
|
|
13894
|
+
const target = event.target;
|
|
13895
|
+
if (target.classList.contains('dialog-scroll-container') || target.classList.contains('min-h-screen')) {
|
|
13896
|
+
if (this.dismissible()) {
|
|
13897
|
+
this.close();
|
|
13898
|
+
}
|
|
13899
|
+
}
|
|
13900
|
+
}
|
|
13901
|
+
ngOnDestroy() {
|
|
13902
|
+
this.close();
|
|
13903
|
+
}
|
|
13880
13904
|
sizeClass = computed(() => {
|
|
13881
13905
|
const map = {
|
|
13882
13906
|
xs: 'max-w-xs',
|
|
@@ -13895,9 +13919,9 @@ class NeuralSettingsDialogComponent {
|
|
|
13895
13919
|
}, /* @ts-ignore */
|
|
13896
13920
|
...(ngDevMode ? [{ debugName: "sizeClass" }] : /* istanbul ignore next */ []));
|
|
13897
13921
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: NeuralSettingsDialogComponent, deps: [{ token: i1$3.Dialog }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
13898
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", type: NeuralSettingsDialogComponent, isStandalone: true, selector: "neural-settings-dialog", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, hasTitleSlot: { classPropertyName: "hasTitleSlot", publicName: "hasTitleSlot", isSignal: true, isRequired: false, transformFunction: null }, hasDescriptionSlot: { classPropertyName: "hasDescriptionSlot", publicName: "hasDescriptionSlot", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange" }, viewQueries: [{ propertyName: "dialogTemplate", first: true, predicate: ["dialogTemplate"], descendants: true }], ngImport: i0, template: `
|
|
13922
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", type: NeuralSettingsDialogComponent, isStandalone: true, selector: "neural-settings-dialog", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, hasTitleSlot: { classPropertyName: "hasTitleSlot", publicName: "hasTitleSlot", isSignal: true, isRequired: false, transformFunction: null }, hasDescriptionSlot: { classPropertyName: "hasDescriptionSlot", publicName: "hasDescriptionSlot", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange" }, viewQueries: [{ propertyName: "dialogTemplate", first: true, predicate: ["dialogTemplate"], descendants: true }], ngImport: i0, template: `
|
|
13899
13923
|
<ng-template #dialogTemplate>
|
|
13900
|
-
<div class="fixed inset-0 z-50 overflow-y-auto dialog-scroll-container">
|
|
13924
|
+
<div class="fixed inset-0 z-50 overflow-y-auto dialog-scroll-container" (click)="onContainerClick($event)">
|
|
13901
13925
|
<div class="flex min-h-screen flex-col items-center justify-center px-4 py-4 text-center">
|
|
13902
13926
|
<div
|
|
13903
13927
|
class="my-8 inline-block w-full transform overflow-hidden rounded-7 bg-surface-elevation-1 text-start align-middle shadow-xl dialog-content focus-visible:outline-none"
|
|
@@ -13934,7 +13958,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
|
|
|
13934
13958
|
imports: [CommonModule, DialogModule],
|
|
13935
13959
|
template: `
|
|
13936
13960
|
<ng-template #dialogTemplate>
|
|
13937
|
-
<div class="fixed inset-0 z-50 overflow-y-auto dialog-scroll-container">
|
|
13961
|
+
<div class="fixed inset-0 z-50 overflow-y-auto dialog-scroll-container" (click)="onContainerClick($event)">
|
|
13938
13962
|
<div class="flex min-h-screen flex-col items-center justify-center px-4 py-4 text-center">
|
|
13939
13963
|
<div
|
|
13940
13964
|
class="my-8 inline-block w-full transform overflow-hidden rounded-7 bg-surface-elevation-1 text-start align-middle shadow-xl dialog-content focus-visible:outline-none"
|
|
@@ -13963,7 +13987,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
|
|
|
13963
13987
|
</ng-template>
|
|
13964
13988
|
`
|
|
13965
13989
|
}]
|
|
13966
|
-
}], ctorParameters: () => [{ type: i1$3.Dialog }, { type: i0.ViewContainerRef }], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], hasTitleSlot: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasTitleSlot", required: false }] }], hasDescriptionSlot: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasDescriptionSlot", required: false }] }], dialogTemplate: [{
|
|
13990
|
+
}], ctorParameters: () => [{ type: i1$3.Dialog }, { type: i0.ViewContainerRef }], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], hasTitleSlot: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasTitleSlot", required: false }] }], hasDescriptionSlot: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasDescriptionSlot", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], dialogTemplate: [{
|
|
13967
13991
|
type: ViewChild,
|
|
13968
13992
|
args: ['dialogTemplate']
|
|
13969
13993
|
}] } });
|