@abgov/jsonforms-components 1.50.6 → 1.52.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/index.esm.js +6 -5
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ import styled from 'styled-components';
|
|
|
5
5
|
import React, { createContext, useContext, useReducer, useMemo, useEffect, useState, useRef, useCallback } from 'react';
|
|
6
6
|
import axios from 'axios';
|
|
7
7
|
import get$1 from 'lodash/get';
|
|
8
|
-
import { rankWith, isStringControl, and, optionIs, uiTypeIs, isDateControl, isNumberControl, isIntegerControl, isDateTimeControl, isTimeControl, isEnumControl, isBooleanControl, getAjv, isVisible, toDataPath, deriveLabelForUISchemaElement, isEnabled, schemaTypeIs, formatIs, createDefaultValue, Paths, or, isObjectArrayControl, isPrimitiveArrayControl, schemaMatches, hasType, isControl, isCategorization, isLayout } from '@jsonforms/core';
|
|
8
|
+
import { rankWith, isStringControl, and, optionIs, uiTypeIs, isDateControl, isNumberControl, isIntegerControl, isDateTimeControl, isTimeControl, isEnumControl, isBooleanControl, getAjv, isVisible, toDataPath, getControlPath, deriveLabelForUISchemaElement, isEnabled, schemaTypeIs, formatIs, createDefaultValue, Paths, or, isObjectArrayControl, isPrimitiveArrayControl, schemaMatches, hasType, isControl, isCategorization, isLayout } from '@jsonforms/core';
|
|
9
9
|
import { withJsonFormsControlProps, withJsonFormsRendererProps, withJsonFormsEnumProps, withTranslateProps, useJsonForms, JsonFormsDispatch, withJsonFormsLayoutProps, withJsonFormsArrayLayoutProps, withJsonFormsCellProps } from '@jsonforms/react';
|
|
10
10
|
import * as _$b from 'lodash';
|
|
11
11
|
import { isEqual, isObject as isObject$f } from 'lodash';
|
|
@@ -5952,8 +5952,7 @@ const isErrorPathIncluded = (errorPaths, path) => {
|
|
|
5952
5952
|
const getIncompletePaths = (ajv, scopes) => {
|
|
5953
5953
|
var _a;
|
|
5954
5954
|
const requiredErrorPaths = (_a = ajv === null || ajv === void 0 ? void 0 : ajv.errors) === null || _a === void 0 ? void 0 : _a.filter(e => e.keyword === 'required').map(e => {
|
|
5955
|
-
|
|
5956
|
-
return (_a = e === null || e === void 0 ? void 0 : e.schema) === null || _a === void 0 ? void 0 : _a[0];
|
|
5955
|
+
return getControlPath(e);
|
|
5957
5956
|
});
|
|
5958
5957
|
const _scopes = scopes.map(scope => toDataPath(scope)).filter(path => requiredErrorPaths && isErrorPathIncluded(requiredErrorPaths, path));
|
|
5959
5958
|
return _scopes;
|
|
@@ -6073,7 +6072,9 @@ const JsonFormsStepperContextProvider = ({
|
|
|
6073
6072
|
stepperDispatch({
|
|
6074
6073
|
type: 'update/uischema',
|
|
6075
6074
|
payload: {
|
|
6076
|
-
state: createStepperContextInitData(StepperProps)
|
|
6075
|
+
state: createStepperContextInitData(Object.assign(Object.assign({}, StepperProps), {
|
|
6076
|
+
activeId: stepperState === null || stepperState === void 0 ? void 0 : stepperState.activeId
|
|
6077
|
+
}))
|
|
6077
6078
|
}
|
|
6078
6079
|
});
|
|
6079
6080
|
}
|
|
@@ -8566,7 +8567,7 @@ const AddressLookUpControl = props => {
|
|
|
8566
8567
|
setTimeout(() => {
|
|
8567
8568
|
handleSuggestionClick(suggestion);
|
|
8568
8569
|
setOpen(false);
|
|
8569
|
-
},
|
|
8570
|
+
}, 50);
|
|
8570
8571
|
}
|
|
8571
8572
|
}
|
|
8572
8573
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.52.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Government of Alberta - React renderers for JSON Forms based on the design system.",
|
|
6
6
|
"repository": "https://github.com/GovAlta/adsp-monorepo",
|