@recursyve/nice-ui-kit.v2 14.0.0-beta.96 → 14.0.0-beta.98
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/esm2020/lib/components/base-form/base-form.component.mjs +14 -3
- package/esm2020/lib/components/sweet-alert/public-api.mjs +2 -1
- package/esm2020/lib/components/sweet-alert/sweet-alert.directive.mjs +37 -0
- package/esm2020/lib/components/sweet-alert/sweet-alert.module.mjs +6 -4
- package/esm2020/lib/components/sweet-alert/sweet-alert.service.mjs +21 -4
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs +69 -8
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs +69 -8
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/lib/components/base-form/base-form.component.d.ts +1 -0
- package/lib/components/sweet-alert/public-api.d.ts +1 -0
- package/lib/components/sweet-alert/sweet-alert.directive.d.ts +13 -0
- package/lib/components/sweet-alert/sweet-alert.module.d.ts +7 -6
- package/lib/components/sweet-alert/sweet-alert.service.d.ts +11 -0
- package/package.json +2 -2
|
@@ -11,6 +11,7 @@ export declare abstract class NiceBaseFormComponent<Form> implements OnInit, OnD
|
|
|
11
11
|
protected unsubscribeAll$: Subject<void>;
|
|
12
12
|
private propagate;
|
|
13
13
|
constructor(formGroup: GeneratedFormGroup<Form>);
|
|
14
|
+
onChange(event: KeyboardEvent): void;
|
|
14
15
|
ngOnInit(): void;
|
|
15
16
|
ngOnDestroy(): void;
|
|
16
17
|
registerOnChange(fn: (form: Form) => void): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { NiceSweetAlertParams, NiceSweetAlertService } from "./sweet-alert.service";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NiceSweetAlertDirective {
|
|
5
|
+
private service;
|
|
6
|
+
sweetAlertType: "success" | "warning" | "info";
|
|
7
|
+
sweetAlertOptions: NiceSweetAlertParams;
|
|
8
|
+
sweetAlertAfterClosed: EventEmitter<boolean>;
|
|
9
|
+
constructor(service: NiceSweetAlertService);
|
|
10
|
+
onClick(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceSweetAlertDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NiceSweetAlertDirective, "[niceSweetAlert]", never, { "sweetAlertType": "sweetAlertType"; "sweetAlertOptions": "sweetAlertOptions"; }, { "sweetAlertAfterClosed": "sweetAlertAfterClosed"; }, never, never, false>;
|
|
13
|
+
}
|
|
@@ -2,14 +2,15 @@ import { ModuleWithProviders } from "@angular/core";
|
|
|
2
2
|
import { NiceSweetAlertOptions } from "./sweet-alert.service";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "./sweet-alert.component";
|
|
5
|
-
import * as i2 from "
|
|
6
|
-
import * as i3 from "@
|
|
7
|
-
import * as i4 from "@
|
|
8
|
-
import * as i5 from "@angular/material/
|
|
9
|
-
import * as i6 from "
|
|
5
|
+
import * as i2 from "./sweet-alert.directive";
|
|
6
|
+
import * as i3 from "@angular/common";
|
|
7
|
+
import * as i4 from "@ngx-translate/core";
|
|
8
|
+
import * as i5 from "@angular/material/dialog";
|
|
9
|
+
import * as i6 from "@angular/material/button";
|
|
10
|
+
import * as i7 from "../lottie/lottie.module";
|
|
10
11
|
export declare class NiceSweetAlertModule {
|
|
11
12
|
static forRoot(options?: NiceSweetAlertOptions): ModuleWithProviders<NiceSweetAlertModule>;
|
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceSweetAlertModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NiceSweetAlertModule, [typeof i1.NiceSweetAlertComponent], [typeof
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NiceSweetAlertModule, [typeof i1.NiceSweetAlertComponent, typeof i2.NiceSweetAlertDirective], [typeof i3.CommonModule, typeof i4.TranslateModule, typeof i5.MatDialogModule, typeof i6.MatButtonModule, typeof i7.NiceLottieModule], [typeof i2.NiceSweetAlertDirective]>;
|
|
14
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<NiceSweetAlertModule>;
|
|
15
16
|
}
|
|
@@ -6,16 +6,27 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export interface NiceSweetAlertOptions {
|
|
7
7
|
customModal?: Type<any>;
|
|
8
8
|
}
|
|
9
|
+
export interface NiceSweetAlertParams {
|
|
10
|
+
translationPath?: string;
|
|
11
|
+
titleKey: string;
|
|
12
|
+
messageKey?: string;
|
|
13
|
+
buttonsKey: string[];
|
|
14
|
+
params?: object;
|
|
15
|
+
}
|
|
9
16
|
export declare class NiceSweetAlertService {
|
|
10
17
|
private options;
|
|
11
18
|
private matDialog;
|
|
12
19
|
private translateService;
|
|
13
20
|
private readonly modal;
|
|
14
21
|
constructor(options: NiceSweetAlertOptions, matDialog: MatDialog, translateService: TranslateService);
|
|
22
|
+
success(params: NiceSweetAlertParams): Observable<boolean>;
|
|
15
23
|
success(titleKey: string, messageKey: string, buttonsKey: string[], params?: object): Observable<boolean>;
|
|
24
|
+
warning(params: NiceSweetAlertParams): Observable<boolean>;
|
|
16
25
|
warning(titleKey: string, messageKey: string, buttonsKey: string[], params?: object): Observable<boolean>;
|
|
26
|
+
info(params: NiceSweetAlertParams): Observable<boolean>;
|
|
17
27
|
info(titleKey: string, messageKey: string, buttonsKey: string[], params?: object): Observable<boolean>;
|
|
18
28
|
private getTranslations;
|
|
29
|
+
private transformArgs;
|
|
19
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceSweetAlertService, [{ optional: true; }, null, null]>;
|
|
20
31
|
static ɵprov: i0.ɵɵInjectableDeclaration<NiceSweetAlertService>;
|
|
21
32
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@recursyve/nice-ui-kit.v2",
|
|
3
|
-
"version": "14.0.0-beta.
|
|
3
|
+
"version": "14.0.0-beta.98",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"sass": "./_index.scss",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@recursyve/ngx-form-generator": ">= 14.0.0-beta.36",
|
|
26
26
|
"ngx-mask": "^14.0.0",
|
|
27
27
|
"perfect-scrollbar": "^1.5.3",
|
|
28
|
-
"uuid": "
|
|
28
|
+
"uuid": ">= 9.0.0"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"tslib": "^2.0.0",
|