@wemake4u/form-player-se 1.0.21 → 1.0.23

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.
@@ -0,0 +1,11 @@
1
+ import { ConfirmationController } from '@wemake4u/interact';
2
+ import { DialogService } from '../services/dialog.service';
3
+ import { Observable } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export declare class DefaultConfirmationController implements ConfirmationController {
6
+ private dialogService;
7
+ constructor(dialogService: DialogService);
8
+ confirm(message?: string, title?: string): Observable<boolean>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<DefaultConfirmationController, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<DefaultConfirmationController>;
11
+ }
@@ -0,0 +1,10 @@
1
+ import { NotificationController, NotifyTypes } from '@wemake4u/interact';
2
+ import { ToastService } from '../services/toast.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class DefaultNotificationController implements NotificationController {
5
+ private toast;
6
+ constructor(toast: ToastService);
7
+ notify(type: NotifyTypes, message: string, title?: string): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<DefaultNotificationController, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<DefaultNotificationController>;
10
+ }
@@ -0,0 +1,11 @@
1
+ import { PromptController } from '@wemake4u/interact';
2
+ import { DialogService } from '../services/dialog.service';
3
+ import { Observable } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export declare class DefaultPromptController implements PromptController {
6
+ private dialogService;
7
+ constructor(dialogService: DialogService);
8
+ prompt(message?: string, defaultValue?: string, title?: string): Observable<string | null>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<DefaultPromptController, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<DefaultPromptController>;
11
+ }
@@ -9,9 +9,11 @@ export declare class DialogService implements IEvaluatorProvider {
9
9
  alert(text: string, options?: DialogOptions): void;
10
10
  info(text: string, options?: DialogOptions): void;
11
11
  confirm(text: string, options?: DialogOptions): void;
12
+ prompt(text: string, defaultValue?: string, options?: DialogOptions): void;
12
13
  getContext(): Record<string, any>;
13
14
  private showDialog;
14
15
  private createTextSchema;
16
+ private createInputSchema;
15
17
  static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
16
18
  static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
17
19
  }
@@ -30,6 +30,9 @@ export declare class GridService {
30
30
  private setValueFormatter;
31
31
  private getRowSelection;
32
32
  private onRowSelectable;
33
+ private onRowSelected;
34
+ private onRowSelecting;
35
+ private hasSelection;
33
36
  private getPaginable;
34
37
  private getPageSize;
35
38
  private getTexts;
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export declare class ToastService implements IEvaluatorProvider {
5
5
  private sirioToast;
6
6
  constructor(sirioToast: SirioToastService);
7
- notifyInfo(message: string, delay?: number): void;
8
- notifySuccess(message: string, delay?: number): void;
9
- notifyWarning(message: string, delay?: number): void;
10
- notifyError(message: string, delay?: number): void;
7
+ notifyInfo(message: string, title?: string, delay?: number): void;
8
+ notifySuccess(message: string, title?: string, delay?: number): void;
9
+ notifyWarning(message: string, title?: string, delay?: number): void;
10
+ notifyError(message: string, title?: string, delay?: number): void;
11
11
  getContext(): Record<string, any>;
12
12
  private notify;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wemake4u/form-player-se",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "^18.2.0",
6
6
  "@angular/common": "^18.2.0",
@@ -14,7 +14,8 @@
14
14
  "ag-charts-angular": "^11.3.2",
15
15
  "ag-charts-community": "^11.3.2",
16
16
  "ngx-sirio-lib": "^1.2.6-A16",
17
- "util": "^0.12.5"
17
+ "util": "^0.12.5",
18
+ "@wemake4u/interact": "^1.0.0"
18
19
  },
19
20
  "dependencies": {
20
21
  "tslib": "^2.3.0",
package/public-api.d.ts CHANGED
@@ -7,3 +7,6 @@ export * from './lib/services/markdown.service';
7
7
  export * from './lib/services/data.service';
8
8
  export * from './lib/services/scope.service';
9
9
  export * from './lib/services/dialog.service';
10
+ export * from './lib/interact/confirmation';
11
+ export * from './lib/interact/notification';
12
+ export * from './lib/interact/prompt';