@etsoo/materialui 1.0.29 → 1.0.30
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/lib/app/ReactApp.d.ts +24 -0
- package/package.json +3 -3
- package/src/app/ReactApp.ts +34 -0
package/lib/app/ReactApp.d.ts
CHANGED
|
@@ -28,6 +28,25 @@ export interface IReactAppBase {
|
|
|
28
28
|
* User state
|
|
29
29
|
*/
|
|
30
30
|
readonly userState: UserState<any>;
|
|
31
|
+
/**
|
|
32
|
+
* Is screen size down 'sm'
|
|
33
|
+
*/
|
|
34
|
+
smDown?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Is screen size up 'md'
|
|
37
|
+
*/
|
|
38
|
+
mdUp?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Get date format props
|
|
41
|
+
* @returns Props
|
|
42
|
+
*/
|
|
43
|
+
getDateFormatProps(): object;
|
|
44
|
+
/**
|
|
45
|
+
* Get money format props
|
|
46
|
+
* @param currency Currency, if undefined, default currency applied
|
|
47
|
+
* @returns Props
|
|
48
|
+
*/
|
|
49
|
+
getMoneyFormatProps(currency?: string): object;
|
|
31
50
|
/**
|
|
32
51
|
* Set page data
|
|
33
52
|
* @param data Page data
|
|
@@ -43,6 +62,11 @@ export interface IReactAppBase {
|
|
|
43
62
|
* @param title Page title
|
|
44
63
|
*/
|
|
45
64
|
setPageTitle(title: string): void;
|
|
65
|
+
/**
|
|
66
|
+
* Show input dialog
|
|
67
|
+
* @param props Props
|
|
68
|
+
*/
|
|
69
|
+
showInputDialog({ title, message, callback, ...rest }: InputDialogProps): INotificationReact;
|
|
46
70
|
}
|
|
47
71
|
/**
|
|
48
72
|
* Core application interface
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/materialui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.30",
|
|
4
4
|
"description": "TypeScript Material-UI Implementation",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"@testing-library/jest-dom": "^5.16.5",
|
|
84
84
|
"@testing-library/react": "^13.4.0",
|
|
85
85
|
"@types/jest": "^29.0.3",
|
|
86
|
-
"@typescript-eslint/eslint-plugin": "^5.38.
|
|
87
|
-
"@typescript-eslint/parser": "^5.38.
|
|
86
|
+
"@typescript-eslint/eslint-plugin": "^5.38.1",
|
|
87
|
+
"@typescript-eslint/parser": "^5.38.1",
|
|
88
88
|
"eslint": "^8.24.0",
|
|
89
89
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
90
90
|
"eslint-plugin-import": "^2.26.0",
|
package/src/app/ReactApp.ts
CHANGED
|
@@ -92,6 +92,29 @@ export interface IReactAppBase {
|
|
|
92
92
|
*/
|
|
93
93
|
readonly userState: UserState<any>;
|
|
94
94
|
|
|
95
|
+
/**
|
|
96
|
+
* Is screen size down 'sm'
|
|
97
|
+
*/
|
|
98
|
+
smDown?: boolean;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Is screen size up 'md'
|
|
102
|
+
*/
|
|
103
|
+
mdUp?: boolean;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Get date format props
|
|
107
|
+
* @returns Props
|
|
108
|
+
*/
|
|
109
|
+
getDateFormatProps(): object;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Get money format props
|
|
113
|
+
* @param currency Currency, if undefined, default currency applied
|
|
114
|
+
* @returns Props
|
|
115
|
+
*/
|
|
116
|
+
getMoneyFormatProps(currency?: string): object;
|
|
117
|
+
|
|
95
118
|
/**
|
|
96
119
|
* Set page data
|
|
97
120
|
* @param data Page data
|
|
@@ -109,6 +132,17 @@ export interface IReactAppBase {
|
|
|
109
132
|
* @param title Page title
|
|
110
133
|
*/
|
|
111
134
|
setPageTitle(title: string): void;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Show input dialog
|
|
138
|
+
* @param props Props
|
|
139
|
+
*/
|
|
140
|
+
showInputDialog({
|
|
141
|
+
title,
|
|
142
|
+
message,
|
|
143
|
+
callback,
|
|
144
|
+
...rest
|
|
145
|
+
}: InputDialogProps): INotificationReact;
|
|
112
146
|
}
|
|
113
147
|
|
|
114
148
|
/**
|