@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.
Files changed (56) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/esm/constants/LayoutHintConfig.js +0 -9
  3. package/esm/constants/LayoutHintConfig.js.map +1 -1
  4. package/esm/constants/LayoutHints.js +0 -4
  5. package/esm/constants/LayoutHints.js.map +1 -1
  6. package/esm/constants/Settings.js +0 -4
  7. package/esm/constants/Settings.js.map +1 -1
  8. package/esm/models/attributes/DatetimeAttributeModel.js +3 -29
  9. package/esm/models/attributes/DatetimeAttributeModel.js.map +1 -1
  10. package/esm/react-client/Init.js +2 -2
  11. package/esm/react-client/Init.js.map +1 -1
  12. package/esm/react-client/client.js +80 -52
  13. package/esm/react-client/client.js.map +1 -1
  14. package/esm/redux/store/configureStore.js +4 -4
  15. package/esm/redux/store/configureStore.js.map +1 -1
  16. package/lib/constants/LayoutHintConfig.js +0 -9
  17. package/lib/constants/LayoutHintConfig.js.flow +0 -9
  18. package/lib/constants/LayoutHintConfig.js.map +1 -1
  19. package/lib/constants/LayoutHints.js +2 -7
  20. package/lib/constants/LayoutHints.js.flow +0 -4
  21. package/lib/constants/LayoutHints.js.map +1 -1
  22. package/lib/constants/Settings.js +0 -4
  23. package/lib/constants/Settings.js.flow +0 -6
  24. package/lib/constants/Settings.js.map +1 -1
  25. package/lib/models/attributes/DatetimeAttributeModel.js +3 -29
  26. package/lib/models/attributes/DatetimeAttributeModel.js.flow +7 -41
  27. package/lib/models/attributes/DatetimeAttributeModel.js.map +1 -1
  28. package/lib/models/attributes/__tests__/DateAttributeModel.spec.js.flow +1 -35
  29. package/lib/models/attributes/__tests__/DatetimeAttributeModel.spec.js.flow +158 -216
  30. package/lib/models/attributes/__tests__/TimestampModel.spec.js.flow +0 -5
  31. package/lib/react-client/Init.js +2 -2
  32. package/lib/react-client/Init.js.flow +3 -3
  33. package/lib/react-client/Init.js.map +1 -1
  34. package/lib/react-client/client.js +83 -53
  35. package/lib/react-client/client.js.flow +106 -67
  36. package/lib/react-client/client.js.map +1 -1
  37. package/lib/redux/store/configureStore.js +4 -4
  38. package/lib/redux/store/configureStore.js.flow +5 -5
  39. package/lib/redux/store/configureStore.js.map +1 -1
  40. package/package.json +17 -19
  41. package/src/constants/LayoutHintConfig.js +0 -9
  42. package/src/constants/LayoutHints.js +0 -4
  43. package/src/constants/Settings.js +0 -6
  44. package/src/models/attributes/DatetimeAttributeModel.js +7 -41
  45. package/src/models/attributes/__tests__/DateAttributeModel.spec.js +1 -35
  46. package/src/models/attributes/__tests__/DatetimeAttributeModel.spec.js +158 -216
  47. package/src/models/attributes/__tests__/TimestampModel.spec.js +0 -5
  48. package/src/react-client/Init.js +3 -3
  49. package/src/react-client/client.js +106 -67
  50. package/src/redux/store/configureStore.js +5 -5
  51. package/types/constants/LayoutHintConfig.d.ts +8 -23
  52. package/types/constants/LayoutHints.d.ts +0 -4
  53. package/types/models/actions/ActionCollection.d.ts +1 -1
  54. package/types/models/attributes/DatetimeAttributeModel.d.ts +8 -2
  55. package/types/redux/_modularui/types.d.ts +4 -0
  56. 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
- history: RouterHistory,
23
+ routerHistory: RouterHistory,
24
24
  customReducers?: Object,
25
25
  initialState?: $Shape<ReduxState>
26
- ): { history: RouterHistory, store: ReduxStore } => {
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(history),
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(history.location, "PUSH"));
53
+ store.dispatch(locationChange(routerHistory.location, "PUSH"));
54
54
  }
55
- return { history, store };
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 IGNORE_FORMAT_SETTING {
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 CREATE_ACTION {
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 UPDATE_ACTION {
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 DELETE_ACTION {
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 SORT_OPTIONS {
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 CASEVIEW_LINK {
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
  */
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export default class ActionCollection extends BaseCollection<ActionModel> {
5
5
  constructor(actions?: Object, actionsContributions?: Object);
6
- collection: any;
6
+ collection: any[];
7
7
  /**
8
8
  * Retrieve action by key
9
9
  */
@@ -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 = {
@@ -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 = {};