@ldmjs/ui 1.0.63 → 1.0.64
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/README.md +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/types/dialogs.d.ts +8 -4
- package/package.json +2 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -153,7 +153,7 @@ export declare const ValidateMixinOptions: Record<string, any>;
|
|
|
153
153
|
|
|
154
154
|
export declare class DialogManager {
|
|
155
155
|
static exec<T>(modal: Dialog, fetchData?: () => Promise<any>): Promise<T>;
|
|
156
|
-
static id: (value: string) => DialogManager
|
|
156
|
+
static id: (value: string) => typeof DialogManager
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
declare const ldmui: {
|
package/dist/types/dialogs.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export interface IModalResult<T> {
|
|
|
17
17
|
|
|
18
18
|
export interface IModalData<T> {
|
|
19
19
|
component: string;
|
|
20
|
-
componentProps: T
|
|
20
|
+
componentProps: T;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export interface IModalInfo {
|
|
@@ -64,6 +64,7 @@ export interface IModalInfo {
|
|
|
64
64
|
height: string | number;
|
|
65
65
|
noModal?: boolean;
|
|
66
66
|
};
|
|
67
|
+
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
67
68
|
resolveFunction?: (data?: any) => void;
|
|
68
69
|
/**
|
|
69
70
|
* ф-ция, вызываемая для определения того, были ли изменения в диалоге
|
|
@@ -71,7 +72,7 @@ export interface IModalInfo {
|
|
|
71
72
|
isChanged?: () => boolean;
|
|
72
73
|
}
|
|
73
74
|
|
|
74
|
-
export interface IModalWindow
|
|
75
|
+
export interface IModalWindow extends IModalInfo {
|
|
75
76
|
id: number;
|
|
76
77
|
type: ModalType;
|
|
77
78
|
show: boolean;
|
|
@@ -91,7 +92,10 @@ export interface IModalWindow<T> extends IModalInfo {
|
|
|
91
92
|
export type ModalWindow = IModalWindow<IViewModel<number | string>>;
|
|
92
93
|
|
|
93
94
|
export class Dialog {
|
|
94
|
-
constructor(
|
|
95
|
+
constructor(
|
|
96
|
+
public title: string,
|
|
97
|
+
public content?: string
|
|
98
|
+
) {}
|
|
95
99
|
}
|
|
96
100
|
|
|
97
101
|
export class AlertDialog extends Dialog {
|
|
@@ -105,7 +109,7 @@ export class PromptDialog extends Dialog {
|
|
|
105
109
|
title: string;
|
|
106
110
|
width?: string;
|
|
107
111
|
hostObject?: IHostObject;
|
|
108
|
-
constructor(data: { title: string; width?: string; hostObject?: IHostObject
|
|
112
|
+
constructor(data: { title: string; width?: string; hostObject?: IHostObject });
|
|
109
113
|
}
|
|
110
114
|
|
|
111
115
|
export class ConfirmDialog extends Dialog {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ldmjs/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.64",
|
|
4
4
|
"description": "ldm ui",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"engines": {
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"dev": "cross-env NODE_ENV=development webpack serve --config config/webpack.config.dev.js --progress --profile --stats-error-details",
|
|
12
12
|
"build": "cross-env NODE_ENV=production webpack --config config/webpack.config.build.js --stats-error-details",
|
|
13
13
|
"build:demo": "cross-env NODE_ENV=production webpack --config config/webpack.config.build.demo.js --stats-error-details",
|
|
14
|
+
"build:all": "npm run build && npm run build:demo",
|
|
14
15
|
"demo": "cross-env NODE_ENV=development webpack serve --config config/webpack.config.demo.js --progress --profile",
|
|
15
16
|
"test": "jest --runInBand --no-cache",
|
|
16
17
|
"version": "node config/version.js",
|