@beinformed/ui 1.27.6 → 1.28.0
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/CHANGELOG.md +11 -1
- package/esm/constants/LayoutHintConfig.js +0 -9
- package/esm/constants/LayoutHintConfig.js.map +1 -1
- package/esm/constants/LayoutHints.js +0 -4
- package/esm/constants/LayoutHints.js.map +1 -1
- package/esm/constants/Settings.js +0 -4
- package/esm/constants/Settings.js.map +1 -1
- package/esm/models/attributes/DatetimeAttributeModel.js +3 -29
- package/esm/models/attributes/DatetimeAttributeModel.js.map +1 -1
- package/esm/react-client/Init.js +2 -2
- package/esm/react-client/Init.js.map +1 -1
- package/esm/react-client/client.js +80 -52
- package/esm/react-client/client.js.map +1 -1
- package/esm/redux/store/configureStore.js +4 -4
- package/esm/redux/store/configureStore.js.map +1 -1
- package/lib/constants/LayoutHintConfig.js +0 -9
- package/lib/constants/LayoutHintConfig.js.flow +0 -9
- package/lib/constants/LayoutHintConfig.js.map +1 -1
- package/lib/constants/LayoutHints.js +2 -7
- package/lib/constants/LayoutHints.js.flow +0 -4
- package/lib/constants/LayoutHints.js.map +1 -1
- package/lib/constants/Settings.js +0 -4
- package/lib/constants/Settings.js.flow +0 -6
- package/lib/constants/Settings.js.map +1 -1
- package/lib/models/attributes/DatetimeAttributeModel.js +3 -29
- package/lib/models/attributes/DatetimeAttributeModel.js.flow +7 -41
- package/lib/models/attributes/DatetimeAttributeModel.js.map +1 -1
- package/lib/models/attributes/__tests__/DateAttributeModel.spec.js.flow +1 -35
- package/lib/models/attributes/__tests__/DatetimeAttributeModel.spec.js.flow +158 -216
- package/lib/models/attributes/__tests__/TimestampModel.spec.js.flow +0 -5
- package/lib/react-client/Init.js +2 -2
- package/lib/react-client/Init.js.flow +3 -3
- package/lib/react-client/Init.js.map +1 -1
- package/lib/react-client/client.js +83 -53
- package/lib/react-client/client.js.flow +106 -67
- package/lib/react-client/client.js.map +1 -1
- package/lib/redux/store/configureStore.js +4 -4
- package/lib/redux/store/configureStore.js.flow +5 -5
- package/lib/redux/store/configureStore.js.map +1 -1
- package/package.json +17 -19
- package/src/constants/LayoutHintConfig.js +0 -9
- package/src/constants/LayoutHints.js +0 -4
- package/src/constants/Settings.js +0 -6
- package/src/models/attributes/DatetimeAttributeModel.js +7 -41
- package/src/models/attributes/__tests__/DateAttributeModel.spec.js +1 -35
- package/src/models/attributes/__tests__/DatetimeAttributeModel.spec.js +158 -216
- package/src/models/attributes/__tests__/TimestampModel.spec.js +0 -5
- package/src/react-client/Init.js +3 -3
- package/src/react-client/client.js +106 -67
- package/src/redux/store/configureStore.js +5 -5
- package/types/constants/LayoutHintConfig.d.ts +8 -23
- package/types/constants/LayoutHints.d.ts +0 -4
- package/types/models/actions/ActionCollection.d.ts +1 -1
- package/types/models/attributes/DatetimeAttributeModel.d.ts +8 -2
- package/types/redux/_modularui/types.d.ts +4 -0
- package/types/redux/types.d.ts +1 -1
|
@@ -20,10 +20,10 @@ import type { Reducer } from "redux";
|
|
|
20
20
|
/**
|
|
21
21
|
*/
|
|
22
22
|
const configureStore = (
|
|
23
|
-
|
|
23
|
+
routerHistory: RouterHistory,
|
|
24
24
|
customReducers?: Object,
|
|
25
25
|
initialState?: $Shape<ReduxState>
|
|
26
|
-
): {
|
|
26
|
+
): { routerHistory: RouterHistory, store: ReduxStore } => {
|
|
27
27
|
let composeEnhancers = compose;
|
|
28
28
|
|
|
29
29
|
if (process.env.NODE_ENV !== "production" && typeof window !== "undefined") {
|
|
@@ -37,7 +37,7 @@ const configureStore = (
|
|
|
37
37
|
|
|
38
38
|
const middleware = applyMiddleware(
|
|
39
39
|
modularUIMiddleware,
|
|
40
|
-
routerMiddleware(
|
|
40
|
+
routerMiddleware(routerHistory),
|
|
41
41
|
thunk
|
|
42
42
|
);
|
|
43
43
|
|
|
@@ -50,9 +50,9 @@ const configureStore = (
|
|
|
50
50
|
);
|
|
51
51
|
|
|
52
52
|
if (!initialState?.router) {
|
|
53
|
-
store.dispatch(locationChange(
|
|
53
|
+
store.dispatch(locationChange(routerHistory.location, "PUSH"));
|
|
54
54
|
}
|
|
55
|
-
return {
|
|
55
|
+
return { routerHistory, store };
|
|
56
56
|
};
|
|
57
57
|
|
|
58
58
|
export default configureStore;
|
|
@@ -143,7 +143,7 @@ export namespace LayoutHintConfiguration {
|
|
|
143
143
|
const component_9: string[];
|
|
144
144
|
export { component_9 as component };
|
|
145
145
|
}
|
|
146
|
-
namespace
|
|
146
|
+
namespace CREATE_ACTION {
|
|
147
147
|
const hint_10: string;
|
|
148
148
|
export { hint_10 as hint };
|
|
149
149
|
export namespace description_10 {
|
|
@@ -153,12 +153,10 @@ export namespace LayoutHintConfiguration {
|
|
|
153
153
|
export { EN_10 as EN };
|
|
154
154
|
}
|
|
155
155
|
export { description_10 as description };
|
|
156
|
-
const link_10: string;
|
|
157
|
-
export { link_10 as link };
|
|
158
156
|
const component_10: string[];
|
|
159
157
|
export { component_10 as component };
|
|
160
158
|
}
|
|
161
|
-
namespace
|
|
159
|
+
namespace UPDATE_ACTION {
|
|
162
160
|
const hint_11: string;
|
|
163
161
|
export { hint_11 as hint };
|
|
164
162
|
export namespace description_11 {
|
|
@@ -171,7 +169,7 @@ export namespace LayoutHintConfiguration {
|
|
|
171
169
|
const component_11: string[];
|
|
172
170
|
export { component_11 as component };
|
|
173
171
|
}
|
|
174
|
-
namespace
|
|
172
|
+
namespace DELETE_ACTION {
|
|
175
173
|
const hint_12: string;
|
|
176
174
|
export { hint_12 as hint };
|
|
177
175
|
export namespace description_12 {
|
|
@@ -184,7 +182,7 @@ export namespace LayoutHintConfiguration {
|
|
|
184
182
|
const component_12: string[];
|
|
185
183
|
export { component_12 as component };
|
|
186
184
|
}
|
|
187
|
-
namespace
|
|
185
|
+
namespace SORT_OPTIONS {
|
|
188
186
|
const hint_13: string;
|
|
189
187
|
export { hint_13 as hint };
|
|
190
188
|
export namespace description_13 {
|
|
@@ -197,7 +195,7 @@ export namespace LayoutHintConfiguration {
|
|
|
197
195
|
const component_13: string[];
|
|
198
196
|
export { component_13 as component };
|
|
199
197
|
}
|
|
200
|
-
namespace
|
|
198
|
+
namespace CASEVIEW_LINK {
|
|
201
199
|
const hint_14: string;
|
|
202
200
|
export { hint_14 as hint };
|
|
203
201
|
export namespace description_14 {
|
|
@@ -210,7 +208,7 @@ export namespace LayoutHintConfiguration {
|
|
|
210
208
|
const component_14: string[];
|
|
211
209
|
export { component_14 as component };
|
|
212
210
|
}
|
|
213
|
-
namespace
|
|
211
|
+
namespace DISABLED {
|
|
214
212
|
const hint_15: string;
|
|
215
213
|
export { hint_15 as hint };
|
|
216
214
|
export namespace description_15 {
|
|
@@ -220,22 +218,9 @@ export namespace LayoutHintConfiguration {
|
|
|
220
218
|
export { EN_15 as EN };
|
|
221
219
|
}
|
|
222
220
|
export { description_15 as description };
|
|
221
|
+
const link_10: string;
|
|
222
|
+
export { link_10 as link };
|
|
223
223
|
const component_15: string[];
|
|
224
224
|
export { component_15 as component };
|
|
225
225
|
}
|
|
226
|
-
namespace DISABLED {
|
|
227
|
-
const hint_16: string;
|
|
228
|
-
export { hint_16 as hint };
|
|
229
|
-
export namespace description_16 {
|
|
230
|
-
const NL_16: string;
|
|
231
|
-
export { NL_16 as NL };
|
|
232
|
-
const EN_16: string;
|
|
233
|
-
export { EN_16 as EN };
|
|
234
|
-
}
|
|
235
|
-
export { description_16 as description };
|
|
236
|
-
const link_11: string;
|
|
237
|
-
export { link_11 as link };
|
|
238
|
-
const component_16: string[];
|
|
239
|
-
export { component_16 as component };
|
|
240
|
-
}
|
|
241
226
|
}
|
|
@@ -26,10 +26,6 @@ export const SORT_OPTIONS: string;
|
|
|
26
26
|
* Layout-hint: Marks an attribute as a title attribute
|
|
27
27
|
*/
|
|
28
28
|
export const TITLE: string;
|
|
29
|
-
/**
|
|
30
|
-
* Layout-hint: Ignore the global input format for specific attribute
|
|
31
|
-
*/
|
|
32
|
-
export const IGNORE_FORMAT_SETTING: string;
|
|
33
29
|
/**
|
|
34
30
|
* Layout-hint: Mark task as delete task
|
|
35
31
|
*/
|
|
@@ -5,7 +5,8 @@ declare class DatetimeAttributeModel extends StringAttributeModel {
|
|
|
5
5
|
/**
|
|
6
6
|
*/
|
|
7
7
|
get formatUtil(): {
|
|
8
|
-
_isoFormat: string;
|
|
8
|
+
_isoFormat: string; /**
|
|
9
|
+
*/
|
|
9
10
|
getLocale(): Locale;
|
|
10
11
|
getOptions(): {
|
|
11
12
|
weekStartsOn: 0 | 2 | 1 | 3 | 4 | 5 | 6;
|
|
@@ -26,7 +27,9 @@ declare class DatetimeAttributeModel extends StringAttributeModel {
|
|
|
26
27
|
isSameDay(inputDate: string, compareDate: string, inputFormat?: string): boolean;
|
|
27
28
|
isOther(inputDate: string, compareDate: string, inputFormat?: string): boolean;
|
|
28
29
|
isWeekend(inputDate: string): boolean;
|
|
29
|
-
addSeconds(date: string, amount: number): string;
|
|
30
|
+
addSeconds(date: string, amount: number): string; /**
|
|
31
|
+
* Set placeholder text
|
|
32
|
+
*/
|
|
30
33
|
addMinutes(date: string, amount: number): string;
|
|
31
34
|
addHours(date: string, amount: number): string;
|
|
32
35
|
addDays(date: string, amount: number): string;
|
|
@@ -51,6 +54,9 @@ declare class DatetimeAttributeModel extends StringAttributeModel {
|
|
|
51
54
|
setHour(date: string, hour: number): string;
|
|
52
55
|
setMinute(date: string, minute: number): string;
|
|
53
56
|
setSecond(date: string, second: number): string;
|
|
57
|
+
/**
|
|
58
|
+
* Add Date constraints for attribute
|
|
59
|
+
*/
|
|
54
60
|
setMilliseconds(date: string, milliseconds: number): string;
|
|
55
61
|
setTime(date: string, hours: number, minutes: number, seconds: number, milliseconds: number): string;
|
|
56
62
|
};
|
|
@@ -23,6 +23,10 @@ type UpdateModelAction = {
|
|
|
23
23
|
type: "MODULARUI/UPDATE";
|
|
24
24
|
payload: ModularUIModel;
|
|
25
25
|
};
|
|
26
|
+
type UpdateFormAction = {
|
|
27
|
+
type: "MODULARUI/UPDATE_FORM";
|
|
28
|
+
payload: ModularUIModel;
|
|
29
|
+
};
|
|
26
30
|
type SuccessAction = (model: ModularUIModel) => SetModelAction | UpdateModelAction;
|
|
27
31
|
type ErrorAction = (error: FetchException) => UpdateStatusAction | RemoveModelByKeyAction | NoAction;
|
|
28
32
|
type ModularUIAction = {
|
package/types/redux/types.d.ts
CHANGED
|
@@ -84,7 +84,7 @@ type UpdateAutosaveAction = {
|
|
|
84
84
|
model: FormModel;
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
|
-
type ReduxAction = UpdateLocaleAction | SetLocalesAction | SetModelAction | InitModelAction | UpdateModelAction | UpdateStatusAction | RemoveModelByKeyAction | NoAction | ModularUIAction | ResetModularUIAction | LocationChangeAction | PushAction | ReplaceAction | GoAction | GoBackAction | GoForwardAction | SaveErrorAction | ShowModalAction | CloseModalAction | DismissNotificationAction | ShowNotificationAction | SetPreferenceAction | SetPreferencesAction | StartProgressAction | FinishProgressAction | ResetProgressAction | UpdateProgressAction | SendAuthenticationErrorAction | ResetAuthErrorsAction | LoginSuccessAction | ChangePasswordAction | LogoutSuccessAction | UpdateAutosaveAction;
|
|
87
|
+
type ReduxAction = UpdateLocaleAction | SetLocalesAction | SetModelAction | InitModelAction | UpdateModelAction | UpdateFormAction | UpdateStatusAction | RemoveModelByKeyAction | NoAction | ModularUIAction | ResetModularUIAction | LocationChangeAction | PushAction | ReplaceAction | GoAction | GoBackAction | GoForwardAction | SaveErrorAction | ShowModalAction | CloseModalAction | DismissNotificationAction | ShowNotificationAction | SetPreferenceAction | SetPreferencesAction | StartProgressAction | FinishProgressAction | ResetProgressAction | UpdateProgressAction | SendAuthenticationErrorAction | ResetAuthErrorsAction | LoginSuccessAction | ChangePasswordAction | LogoutSuccessAction | UpdateAutosaveAction;
|
|
88
88
|
type AuthState = {};
|
|
89
89
|
type ErrorState = ErrorResponse;
|
|
90
90
|
type ModalState = {};
|