@abgov/jsonforms-components 2.8.0 → 2.9.1

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 CHANGED
@@ -5991,6 +5991,9 @@ const CalloutControl = props => {
5991
5991
  var _a, _b;
5992
5992
  return callout(((_b = (_a = props === null || props === void 0 ? void 0 : props.uischema) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.componentProps) || {});
5993
5993
  };
5994
+ const CalloutReviewControl = () => {
5995
+ return jsx(Fragment, {});
5996
+ };
5994
5997
  const GoACalloutControlTester = rankWith(1, uiTypeIs('Callout'));
5995
5998
  var GoACalloutControl = withJsonFormsRendererProps(CalloutControl);
5996
5999
 
@@ -10073,6 +10076,7 @@ const ObjectArrayList = ({
10073
10076
  currentIndex,
10074
10077
  setCurrentIndex
10075
10078
  }) => {
10079
+ var _a, _b;
10076
10080
  const isEmptyList = data === 0;
10077
10081
  const rightRef = useRef(null);
10078
10082
  const current = rightRef.current;
@@ -10093,6 +10097,9 @@ const ObjectArrayList = ({
10093
10097
  // eslint-disable-next-line react-hooks/exhaustive-deps
10094
10098
  }, [current, rightHeight, rightRef]);
10095
10099
  if (isEmptyList) {
10100
+ if (((_a = uischema.options) === null || _a === void 0 ? void 0 : _a.noDataMessage) !== undefined) {
10101
+ translations.noDataMessage = (_b = uischema.options) === null || _b === void 0 ? void 0 : _b.noDataMessage;
10102
+ }
10096
10103
  return jsx(EmptyList, {
10097
10104
  numColumns: getValidColumnProps(schema).length + 1,
10098
10105
  translations: translations
@@ -12270,6 +12277,9 @@ const GoABaseReviewRenderers = [
12270
12277
  }, {
12271
12278
  tester: HelpContentTester,
12272
12279
  renderer: HelpReviewContent
12280
+ }, {
12281
+ tester: GoACalloutControlTester,
12282
+ renderer: CalloutReviewControl
12273
12283
  }];
12274
12284
  const GoABaseTableReviewRenderers = [
12275
12285
  // controls
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "2.8.0",
3
+ "version": "2.9.1",
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",
@@ -7,6 +7,7 @@ export interface CalloutProps {
7
7
  message?: string;
8
8
  }
9
9
  export declare const callout: (props: CalloutProps) => JSX.Element;
10
+ export declare const CalloutReviewControl: () => import("react/jsx-runtime").JSX.Element;
10
11
  export declare const GoACalloutControlTester: RankedTester;
11
12
  declare const _default: React.ComponentType<import("@jsonforms/core").OwnPropsOfJsonFormsRenderer>;
12
13
  export default _default;