@sphereon/ui-components.ssi-react 0.4.1-unstable.71 → 0.4.1-unstable.73

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.
@@ -18,7 +18,7 @@ const CustomArrayControl = (props) => {
18
18
  };
19
19
  const getItemElements = () => {
20
20
  return data.map((item, index) => _jsx("div", { style: { display: 'flex', flexDirection: 'row', gap: 12 }, children: _jsx("div", { style: { display: 'flex', flexDirection: 'row', borderRadius: 8, overflow: 'hidden', width: '100%' }, children: _jsxs("div", { style: { display: 'flex', flexDirection: 'column', gap: 24, width: '100%' }, children: [_jsxs("div", { style: { display: 'flex', flexDirection: 'row', alignItems: 'center', gap: 12 }, children: [_jsx("div", { style: { display: 'flex', flexDirection: 'row', gap: 24, padding: 24, border: '1px solid #C4C4C4', borderRadius: 8, flexGrow: 1, alignItems: 'center' }, children: getFieldElements(elements, `${path}.${index}`) }), _jsx(IconButton, { icon: ButtonIcon.DELETE, onClick: () => handleRemove(index) })] }), item?.type === 'object' &&
21
- _jsx("div", { style: { marginLeft: 24, display: 'flex', flexDirection: 'row' }, children: getChildFieldElements(elements, `${path}.${index}`) })] }) }) }, index));
21
+ _jsx("div", { style: { marginLeft: 24, display: 'flex', flexDirection: 'row' }, children: getChildFieldElements(elements, `${path}.${index}.properties`) })] }) }) }, index));
22
22
  };
23
23
  const getFieldElements = (elements, path) => {
24
24
  return elements
@@ -7,15 +7,6 @@ import addFormats from "ajv-formats";
7
7
  import { formatDate } from '../../../helpers';
8
8
  const defaultAjv = new Ajv({ useDefaults: true });
9
9
  addFormats(defaultAjv);
10
- defaultAjv.addFormat('date', {
11
- type: 'string',
12
- validate: (data) => {
13
- const date = data === 'now' ? new Date() : new Date(data);
14
- return !isNaN(date.getTime());
15
- },
16
- compare: undefined,
17
- async: false
18
- });
19
10
  defaultAjv.addKeyword({
20
11
  keyword: 'isoDateFormat',
21
12
  modifying: true,
@@ -35,9 +26,6 @@ defaultAjv.addKeyword({
35
26
  });
36
27
  const FormView = (props) => {
37
28
  const { data, schema, uiSchema, validationMode = 'ValidateAndShow', renderers = jsonFormsMaterialRenderers, cells = materialCells, style, middleware, ajv = defaultAjv, onFormStateChange, readonly = false, config, } = props;
38
- const onFormStateChanged = (state) => {
39
- void onFormStateChange?.(state);
40
- };
41
- return (_jsx("div", { style: style, children: _jsx(JsonForms, { schema: schema, uischema: uiSchema, data: data, renderers: renderers, onChange: onFormStateChanged, ajv: ajv }) }));
29
+ return (_jsx("div", { style: style, children: _jsx(JsonForms, { schema: schema, uischema: uiSchema, data: data, renderers: renderers, cells: cells, onChange: onFormStateChange, validationMode: validationMode, middleware: middleware, ajv: ajv, readonly: readonly, config: config }) }));
42
30
  };
43
31
  export default FormView;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sphereon/ui-components.ssi-react",
3
3
  "private": false,
4
- "version": "0.4.1-unstable.71+0ff72a7",
4
+ "version": "0.4.1-unstable.73+1104ba0",
5
5
  "description": "SSI UI components for React",
6
6
  "repository": "git@github.com:Sphereon-Opensource/UI-Components.git",
7
7
  "author": "Sphereon <dev@sphereon.com>",
@@ -50,7 +50,7 @@
50
50
  "@mui/x-date-pickers": "^6.19.5",
51
51
  "@sphereon/ssi-sdk.data-store": "0.34.1-feature.SSISDK.45.94",
52
52
  "@sphereon/ssi-types": "0.34.1-feature.SSISDK.45.94",
53
- "@sphereon/ui-components.core": "0.4.1-unstable.71+0ff72a7",
53
+ "@sphereon/ui-components.core": "0.4.1-unstable.73+1104ba0",
54
54
  "@tanstack/react-table": "^8.9.3",
55
55
  "ajv": "^8.17.1",
56
56
  "ajv-formats": "^3.0.1",
@@ -71,5 +71,5 @@
71
71
  "peerDependencies": {
72
72
  "react": ">= 18"
73
73
  },
74
- "gitHead": "0ff72a740cbe666a90e94033506696cf8079de61"
74
+ "gitHead": "1104ba037015a5d1b3d426221ad8d329f0f08fed"
75
75
  }