jp.ui.app.toolkit 1.0.3 → 1.0.5
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/dist/index.d.ts +94 -13
- package/dist/index.js +777 -1
- package/dist/index.js.map +1 -1
- package/dist/src/data/hooks.d.ts +2 -12
- package/dist/src/data/middleware/index.d.ts +1 -1
- package/dist/src/data/slices/index.d.ts +91 -11
- package/dist/src/data/store.d.ts +2 -12
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import React__default, { JSX, Component } from 'react';
|
|
|
3
3
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
4
4
|
import { Store, PayloadAction } from '@reduxjs/toolkit';
|
|
5
5
|
import * as immer from 'immer';
|
|
6
|
+
import * as jp_common_view from 'jp.common.view';
|
|
6
7
|
import { AppScreenTypes, AppScreenSectionListItem } from 'jp.common.view';
|
|
7
8
|
import * as redux_thunk from 'redux-thunk';
|
|
8
9
|
import * as redux from 'redux';
|
|
@@ -146,17 +147,97 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppSlice, {
|
|
|
146
147
|
isError: (sliceState: AppSlice) => boolean;
|
|
147
148
|
}>;
|
|
148
149
|
|
|
149
|
-
declare
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
150
|
+
declare function getBaseSlices(): (_reduxjs_toolkit.Slice<AppSlice, {
|
|
151
|
+
initApp: (state: AppSlice) => {
|
|
152
|
+
isLoading: boolean;
|
|
153
|
+
isError: boolean;
|
|
154
|
+
isInit: boolean;
|
|
155
|
+
};
|
|
156
|
+
deactivateApp: (state: AppSlice) => {
|
|
157
|
+
isInit: boolean;
|
|
158
|
+
isLoading: boolean;
|
|
159
|
+
isError: boolean;
|
|
160
|
+
};
|
|
161
|
+
errorApp: (state: AppSlice) => {
|
|
162
|
+
isLoading: boolean;
|
|
163
|
+
isInit: boolean;
|
|
164
|
+
isError: boolean;
|
|
165
|
+
};
|
|
166
|
+
successApp: (state: AppSlice) => {
|
|
167
|
+
isLoading: boolean;
|
|
168
|
+
isInit: boolean;
|
|
169
|
+
isError: boolean;
|
|
170
|
+
};
|
|
171
|
+
}, "appSlice", "appSlice", {
|
|
172
|
+
isInit: (sliceState: AppSlice) => boolean;
|
|
173
|
+
isLoading: (sliceState: AppSlice) => boolean;
|
|
174
|
+
isError: (sliceState: AppSlice) => boolean;
|
|
175
|
+
}> | _reduxjs_toolkit.Slice<MenuScreenState, {
|
|
176
|
+
start: (state: MenuScreenState) => {
|
|
177
|
+
isLoading: boolean;
|
|
178
|
+
isError: null;
|
|
179
|
+
data: null;
|
|
180
|
+
};
|
|
181
|
+
error: (state: MenuScreenState) => {
|
|
182
|
+
isLoading: boolean;
|
|
183
|
+
isError: boolean;
|
|
184
|
+
data?: jp_common_view.AppScreenTypes;
|
|
185
|
+
};
|
|
186
|
+
success: (state: MenuScreenState, action: _reduxjs_toolkit.PayloadAction<jp_common_view.AppScreenTypes | undefined>) => {
|
|
187
|
+
isLoading: boolean;
|
|
188
|
+
isError: boolean;
|
|
189
|
+
data: jp_common_view.AppScreenTypes | undefined;
|
|
190
|
+
};
|
|
191
|
+
init: (state: Map<immer.Draft<K>, immer.Draft<V>>) => Map<immer.Draft<K>, immer.Draft<V>>;
|
|
192
|
+
listItemClick: (state: Map<immer.Draft<K>, immer.Draft<V>>, action: _reduxjs_toolkit.PayloadAction<jp_common_view.AppScreenSectionListItem>) => Map<immer.Draft<K>, immer.Draft<V>>;
|
|
193
|
+
}, "menuScreenSlice", "menuScreenSlice", {
|
|
194
|
+
getScreen: (sliceState: MenuScreenState) => jp_common_view.AppScreenTypes | undefined;
|
|
195
|
+
isLoading: (sliceState: MenuScreenState) => boolean;
|
|
196
|
+
isError: (sliceState: MenuScreenState) => boolean;
|
|
197
|
+
}> | _reduxjs_toolkit.Slice<ShopScreenState, {
|
|
198
|
+
start: (state: ShopScreenState) => {
|
|
199
|
+
isLoading: boolean;
|
|
200
|
+
isError: null;
|
|
201
|
+
data: null;
|
|
202
|
+
};
|
|
203
|
+
error: (state: ShopScreenState) => {
|
|
204
|
+
isLoading: boolean;
|
|
205
|
+
isError: boolean;
|
|
206
|
+
data?: jp_common_view.AppScreenTypes;
|
|
207
|
+
};
|
|
208
|
+
success: (state: ShopScreenState, action: _reduxjs_toolkit.PayloadAction<jp_common_view.AppScreenTypes | undefined>) => {
|
|
209
|
+
isLoading: boolean;
|
|
210
|
+
isError: boolean;
|
|
211
|
+
data: jp_common_view.AppScreenTypes | undefined;
|
|
212
|
+
};
|
|
213
|
+
init: (state: Map<immer.Draft<K>, immer.Draft<V>>) => Map<immer.Draft<K>, immer.Draft<V>>;
|
|
214
|
+
}, "shopScreenSlice", "shopScreenSlice", {
|
|
215
|
+
getScreen: (sliceState: ShopScreenState) => jp_common_view.AppScreenTypes | undefined;
|
|
216
|
+
isLoading: (sliceState: ShopScreenState) => boolean;
|
|
217
|
+
isError: (sliceState: ShopScreenState) => boolean;
|
|
218
|
+
}> | _reduxjs_toolkit.Slice<TablesScreenState, {
|
|
219
|
+
start: (state: TablesScreenState) => {
|
|
220
|
+
isLoading: boolean;
|
|
221
|
+
isError: null;
|
|
222
|
+
data: null;
|
|
223
|
+
};
|
|
224
|
+
error: (state: TablesScreenState) => {
|
|
225
|
+
isLoading: boolean;
|
|
226
|
+
isError: boolean;
|
|
227
|
+
data?: jp_common_view.AppScreenTypes;
|
|
228
|
+
};
|
|
229
|
+
success: (state: TablesScreenState, action: _reduxjs_toolkit.PayloadAction<jp_common_view.AppScreenTypes | undefined>) => {
|
|
230
|
+
isLoading: boolean;
|
|
231
|
+
isError: boolean;
|
|
232
|
+
data: jp_common_view.AppScreenTypes | undefined;
|
|
233
|
+
};
|
|
234
|
+
init: (state: Map<immer.Draft<K>, immer.Draft<V>>) => Map<immer.Draft<K>, immer.Draft<V>>;
|
|
235
|
+
listItemClick: (state: Map<immer.Draft<K>, immer.Draft<V>>, action: _reduxjs_toolkit.PayloadAction<jp_common_view.AppScreenSectionListItem>) => Map<immer.Draft<K>, immer.Draft<V>>;
|
|
236
|
+
}, "tablesScreenSlice", "tablesScreenSlice", {
|
|
237
|
+
getScreen: (sliceState: TablesScreenState) => jp_common_view.AppScreenTypes | undefined;
|
|
238
|
+
isLoading: (sliceState: TablesScreenState) => boolean;
|
|
239
|
+
isError: (sliceState: TablesScreenState) => boolean;
|
|
240
|
+
}>)[];
|
|
160
241
|
|
|
161
242
|
declare const appListenerMiddleware: _reduxjs_toolkit.ListenerMiddlewareInstance<unknown, redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction>, unknown>;
|
|
162
243
|
|
|
@@ -168,7 +249,7 @@ declare const shopScreenListenerMiddleware: _reduxjs_toolkit.ListenerMiddlewareI
|
|
|
168
249
|
|
|
169
250
|
declare const tablesScreenListenerMiddleware: _reduxjs_toolkit.ListenerMiddlewareInstance<unknown, redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction>, unknown>;
|
|
170
251
|
|
|
171
|
-
declare function
|
|
252
|
+
declare function getBaseMiddlewares(): _reduxjs_toolkit.ListenerMiddleware<unknown, redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction>, unknown>[];
|
|
172
253
|
|
|
173
254
|
type ScreenResponse = {
|
|
174
255
|
screen?: AppScreenTypes;
|
|
@@ -239,4 +320,4 @@ declare class Navigator {
|
|
|
239
320
|
back(): void;
|
|
240
321
|
}
|
|
241
322
|
|
|
242
|
-
export { BaseApplication, GlobalStorage, GlobalStorageEnum, MenuScreen, Navigator, ShopScreen, TablesScreen, appListenerMiddleware, appSlice, config_d as config,
|
|
323
|
+
export { BaseApplication, GlobalStorage, GlobalStorageEnum, MenuScreen, Navigator, ShopScreen, TablesScreen, appListenerMiddleware, appSlice, config_d as config, getBaseMiddlewares, getBaseSlices, getMenuRequest, getShopRequest, getTablesRequest, menuScreenItemListenerMiddleware, menuScreenListenerMiddleware, menuScreenSlice, shopScreenListenerMiddleware, shopScreenSlice, tablesScreenListenerMiddleware, tablesScreenSlice };
|