@abgov/jsonforms-components 2.67.8 → 2.67.10

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
@@ -4312,7 +4312,7 @@ styled.div(_t$c || (_t$c = _$b`
4312
4312
  const Visible = styled.div(_t2$6 || (_t2$6 = _$b`
4313
4313
  display: ${0};
4314
4314
  width: 100%;
4315
- `), p => p.visible ? 'block' : 'none');
4315
+ `), p => p.$visible !== false ? 'block' : 'none');
4316
4316
 
4317
4317
  var uncurryThis$i = functionUncurryThis;
4318
4318
 
@@ -7129,14 +7129,14 @@ const GoAInputBaseControl = props => {
7129
7129
  return jsx(JsonFormRegisterProvider, {
7130
7130
  defaultRegisters: undefined,
7131
7131
  children: jsx(Visible, {
7132
- visible: visible,
7132
+ "$visible": visible,
7133
7133
  children: jsx(FormFieldWrapper$1, {
7134
7134
  ref: controlRef,
7135
7135
  className: "jsonforms-elements-wrapper",
7136
7136
  id: isStepperReview === true ? `review-base-${path}-element-wrapper` : `${path}-element-wrapper`,
7137
7137
  children: jsx(GoabFormItem, {
7138
7138
  requirement: (_uischema$options$com = uischema == null || (_uischema$options = uischema.options) == null || (_uischema$options = _uischema$options.componentProps) == null ? void 0 : _uischema$options.requirement) != null ? _uischema$options$com : requiredNow ? 'required' : undefined,
7139
- error: (currentCategory == null ? void 0 : currentCategory.isVisited) === true || hasValue ? modifiedErrors : undefined,
7139
+ error: (currentCategory == null ? void 0 : currentCategory.isVisited) === true || isVisited || hasValue ? modifiedErrors : undefined,
7140
7140
  testId: isStepperReview === true ? `review-base-${path}` : path,
7141
7141
  label: (props == null ? void 0 : props.noLabel) === true ? '' : labelToUpdate,
7142
7142
  helpText: typeof (uischema == null || (_uischema$options2 = uischema.options) == null ? void 0 : _uischema$options2.help) === 'string' && !isStepperReview ? uischema == null || (_uischema$options3 = uischema.options) == null ? void 0 : _uischema$options3.help : '',
@@ -7584,6 +7584,13 @@ const MultiLineText = props => {
7584
7584
  setIsVisited();
7585
7585
  }
7586
7586
  },
7587
+ onBlur: detail => {
7588
+ const newValue = autoCapitalize ? detail.value.toUpperCase() : detail.value;
7589
+ setTextAreaValue(newValue);
7590
+ if (isVisited === false && setIsVisited) {
7591
+ setIsVisited();
7592
+ }
7593
+ },
7587
7594
  onChange: detail => {}
7588
7595
  }, uischema == null || (_uischema$options5 = uischema.options) == null ? void 0 : _uischema$options5.componentProps));
7589
7596
  return txtAreaComponent;
@@ -8179,7 +8186,7 @@ const GoACalloutController = props => {
8179
8186
  }
8180
8187
  const calloutProps = (uischema == null || (_uischema$options = uischema.options) == null ? void 0 : _uischema$options.componentProps) || {};
8181
8188
  return jsx(Visible, {
8182
- visible: showCallout,
8189
+ "$visible": showCallout,
8183
8190
  children: callout(calloutProps)
8184
8191
  });
8185
8192
  };
@@ -10216,7 +10223,7 @@ class ListWithDetailControl extends React.Component {
10216
10223
  this.state.currentListPage === 0 && data === 0;
10217
10224
  const editMode = this.state.currentListPage !== 0 && !withLeftTab;
10218
10225
  return jsxs(Visible, {
10219
- visible: visible,
10226
+ "$visible": visible,
10220
10227
  "data-testid": "jsonforms-object-list-wrapper",
10221
10228
  children: [jsxs(ToolBarHeader, {
10222
10229
  children: [listTitle && jsx(MarginTop, {
@@ -10713,7 +10720,7 @@ const GoAEmailInput = props => {
10713
10720
  // eslint-disable-next-line react-hooks/exhaustive-deps
10714
10721
  }, [schema.default, data]);
10715
10722
  return jsx(Visible, {
10716
- visible: visible,
10723
+ "$visible": visible,
10717
10724
  children: jsx(JsonFormRegisterProvider, {
10718
10725
  defaultRegisters: undefined,
10719
10726
  children: jsx(FormFieldWrapper$1, {
@@ -10794,7 +10801,7 @@ const LayoutRenderer = ({
10794
10801
  } else {
10795
10802
  if (direction === 'row') {
10796
10803
  return jsx(Visible, {
10797
- visible: visible,
10804
+ "$visible": visible,
10798
10805
  children: jsx(GoabGrid, {
10799
10806
  minChildWidth: width || '10ch',
10800
10807
  children: renderLayoutElements(elements, schema, path, enabled, renderers, cells)
@@ -10802,7 +10809,7 @@ const LayoutRenderer = ({
10802
10809
  });
10803
10810
  } else {
10804
10811
  return jsx(Visible, {
10805
- visible: visible,
10812
+ "$visible": visible,
10806
10813
  children: renderLayoutElements(elements, schema, path, enabled, renderers, cells)
10807
10814
  });
10808
10815
  }
@@ -10824,14 +10831,14 @@ const ReviewLayoutRenderer = ({
10824
10831
  } else {
10825
10832
  if (direction === 'row') {
10826
10833
  return jsx(Visible, {
10827
- visible: visible,
10834
+ "$visible": visible,
10828
10835
  children: jsx(ReviewGrid, {
10829
10836
  children: renderLayoutElements(elements, schema, path, enabled, renderers, cells)
10830
10837
  })
10831
10838
  });
10832
10839
  } else {
10833
10840
  return jsx(Visible, {
10834
- visible: visible,
10841
+ "$visible": visible,
10835
10842
  children: renderLayoutElements(elements, schema, path, enabled, renderers, cells)
10836
10843
  });
10837
10844
  }
@@ -11220,7 +11227,7 @@ const RenderStepElements = props => {
11220
11227
  var _props$category;
11221
11228
  const memoizedSchema = useMemo(() => Object.assign({}, props.schema), [props.schema]);
11222
11229
  return jsx(Visible, {
11223
- visible: props.visible,
11230
+ "$visible": props.visible,
11224
11231
  "data-testid": `${(props == null ? void 0 : props.path) || ((_props$category = props.category) == null ? void 0 : _props$category.label)}-categories-${props.categoryIndex}`,
11225
11232
  children: props.category.elements.map((uiSchema, index) => {
11226
11233
  var _props$category2;
@@ -11423,7 +11430,7 @@ const PhoneNumberWithTypeControl = props => {
11423
11430
  handleChange(path, updated);
11424
11431
  };
11425
11432
  return jsx(Visible, {
11426
- visible: visible,
11433
+ "$visible": visible,
11427
11434
  children: jsxs(PhoneGrid, {
11428
11435
  children: [jsx(GoabFormItem, {
11429
11436
  label: "Phone type",
@@ -11481,7 +11488,7 @@ const PhoneNumberControl = props => {
11481
11488
  handleChange(path, value);
11482
11489
  };
11483
11490
  return jsx(Visible, {
11484
- visible: visible,
11491
+ "$visible": visible,
11485
11492
  children: jsx(GoabFormItem, {
11486
11493
  label: (schema == null ? void 0 : schema.title) || 'Phone number',
11487
11494
  requirement: required ? 'required' : undefined,
@@ -12749,7 +12756,7 @@ const ObjectArrayControl = props => {
12749
12756
  });
12750
12757
  }
12751
12758
  const content = jsxs(Visible, {
12752
- visible: visible,
12759
+ "$visible": visible,
12753
12760
  "data-testid": "jsonforms-object-list-wrapper",
12754
12761
  children: [jsxs(ToolBarHeader, {
12755
12762
  children: [listTitle && jsxs(ObjectArrayTitle, {
@@ -12805,7 +12812,7 @@ const ArrayControl = props => {
12805
12812
  handleChange
12806
12813
  } = props;
12807
12814
  return jsx(Visible, {
12808
- visible: visible,
12815
+ "$visible": visible,
12809
12816
  children: jsx(ObjectArrayControl, Object.assign({}, props, {
12810
12817
  handleChange: handleChange
12811
12818
  }))
@@ -12818,7 +12825,7 @@ const ArrayControlBase = props => {
12818
12825
  visible
12819
12826
  } = props;
12820
12827
  return jsx(Visible, {
12821
- visible: visible,
12828
+ "$visible": visible,
12822
12829
  children: jsx(ArrayControl, Object.assign({
12823
12830
  arraySchema: {}
12824
12831
  }, props, {
@@ -12908,7 +12915,7 @@ const PrimitiveArrayControl = props => {
12908
12915
  if (options.format === 'checkboxes') {
12909
12916
  const checkboxOptions = getPrimitiveArrayOptions(schema);
12910
12917
  return jsxs(Visible, {
12911
- visible: visible,
12918
+ "$visible": visible,
12912
12919
  children: [jsx("h4", {
12913
12920
  children: prettyLabel
12914
12921
  }), jsx("div", {
@@ -12942,7 +12949,7 @@ const PrimitiveArrayControl = props => {
12942
12949
  });
12943
12950
  }
12944
12951
  return jsxs(Visible, {
12945
- visible: visible,
12952
+ "$visible": visible,
12946
12953
  children: [jsx("div", {
12947
12954
  style: {
12948
12955
  marginBottom: '8px'
@@ -13085,7 +13092,7 @@ const ListWithDetailsControl = props => {
13085
13092
  // eslint-disable-next-line
13086
13093
  }, [core == null ? void 0 : core.data, deleteTrigger, fileList, handleChange, path, props.data, props.schema, removeItems, rowData]);
13087
13094
  return jsxs(Visible, {
13088
- visible: visible,
13095
+ "$visible": visible,
13089
13096
  children: [jsx(ListWithDetailControl, Object.assign({}, props, {
13090
13097
  openDeleteDialog: openDeleteDialog,
13091
13098
  enabled: props.enabled,
@@ -13509,7 +13516,7 @@ const GoAGroupControlComponent = props => {
13509
13516
  const componentProps = (_group$options = group.options) == null ? void 0 : _group$options.componentProps;
13510
13517
  const accent = componentProps == null ? void 0 : componentProps.accent;
13511
13518
  return jsxs(Visible, {
13512
- visible: visible,
13519
+ "$visible": visible,
13513
13520
  children: [accent === 'thick' && jsx(GoabContainer, Object.assign({
13514
13521
  heading: group.label
13515
13522
  }, componentProps, {
@@ -13846,7 +13853,7 @@ const HelpContentComponent = _ref2 => {
13846
13853
  if (markdown && ((_uischema$options7 = uischema.options) == null ? void 0 : _uischema$options7.variant) === 'details') {
13847
13854
  var _uischema$options8, _uischema$options9, _uischema$elements;
13848
13855
  return jsx(Visible, {
13849
- visible: visible,
13856
+ "$visible": visible,
13850
13857
  children: jsx(HelpContentDiv, {
13851
13858
  "aria-label": (_uischema$options8 = uischema.options) == null ? void 0 : _uischema$options8.ariaLabel,
13852
13859
  children: jsx("div", {
@@ -13871,7 +13878,7 @@ const HelpContentComponent = _ref2 => {
13871
13878
  if (markdown) {
13872
13879
  var _uischema$options0;
13873
13880
  return jsx(Visible, {
13874
- visible: visible,
13881
+ "$visible": visible,
13875
13882
  children: jsx("div", {
13876
13883
  className: "help-content-markdown",
13877
13884
  children: MarkdownComponent({
@@ -13881,7 +13888,7 @@ const HelpContentComponent = _ref2 => {
13881
13888
  });
13882
13889
  }
13883
13890
  return jsx(Visible, {
13884
- visible: visible,
13891
+ "$visible": visible,
13885
13892
  children: jsx(HelpContentDiv, {
13886
13893
  "aria-label": (_uischema$options1 = uischema.options) == null ? void 0 : _uischema$options1.ariaLabel,
13887
13894
  children: jsxs("div", {
@@ -14305,7 +14312,7 @@ const FormStepperView = props => {
14305
14312
  return jsxs("div", {
14306
14313
  "data-testid": "form-stepper-test-wrapper",
14307
14314
  children: [jsx(Visible, {
14308
- visible: visible,
14315
+ "$visible": visible,
14309
14316
  children: jsxs("div", {
14310
14317
  id: `${path || `goa`}-form-stepper`,
14311
14318
  className: "formStepper",
@@ -14871,7 +14878,7 @@ const RenderPages = props => {
14871
14878
  "data-testid": "form-stepper-test-wrapper",
14872
14879
  ref: topElementRef,
14873
14880
  children: [jsx(Visible, {
14874
- visible: visible,
14881
+ "$visible": visible,
14875
14882
  children: jsx("div", {
14876
14883
  id: `${path || `goa`}-form-pages`,
14877
14884
  children: jsxs(PageBorder, {
@@ -14884,7 +14891,7 @@ const RenderPages = props => {
14884
14891
  },
14885
14892
  testId: "back-to-tasks"
14886
14893
  }), !isOnReview && jsx(Visible, {
14887
- visible: true,
14894
+ "$visible": true,
14888
14895
  children: jsxs("div", {
14889
14896
  "data-testid": `step_${activeId}-content-pages`,
14890
14897
  style: {
@@ -15298,7 +15305,7 @@ const FileUploader = _ref => {
15298
15305
  });
15299
15306
  };
15300
15307
  return jsx(Visible, {
15301
- visible: visible,
15308
+ "$visible": visible,
15302
15309
  children: jsxs(FileUploaderStyle, {
15303
15310
  className: "FileUploader",
15304
15311
  children: [jsx(GoabFormItem, {
@@ -17802,7 +17809,7 @@ const AddressLookUpControl = props => {
17802
17809
  }, [formStepperCtx, uischema == null ? void 0 : uischema.scope]);
17803
17810
  const readOnly = (_uischema$options$com = uischema == null || (_uischema$options2 = uischema.options) == null || (_uischema$options2 = _uischema$options2.componentProps) == null ? void 0 : _uischema$options2.readOnly) != null ? _uischema$options$com : false;
17804
17811
  return jsx(Visible, {
17805
- visible: visible,
17812
+ "$visible": visible,
17806
17813
  children: jsxs("div", {
17807
17814
  ref: addressContainerRef,
17808
17815
  children: [renderHelp(), jsx("h3", {
@@ -18123,7 +18130,7 @@ const FullNameControl = props => {
18123
18130
  }
18124
18131
  }, [stepperState == null ? void 0 : stepperState.targetScope, uischema.scope]);
18125
18132
  return jsx(Visible, {
18126
- visible: visible,
18133
+ "$visible": visible,
18127
18134
  children: jsx("div", {
18128
18135
  ref: controlRef,
18129
18136
  children: jsx(NameInputs, {
@@ -18272,7 +18279,7 @@ const FullNameDobControl = props => {
18272
18279
  }
18273
18280
  }, [stepperState == null ? void 0 : stepperState.targetScope, uischema.scope]);
18274
18281
  return jsx(Visible, {
18275
- visible: visible,
18282
+ "$visible": visible,
18276
18283
  children: jsxs("div", {
18277
18284
  ref: controlRef,
18278
18285
  children: [jsx(NameInputs, {
@@ -18555,7 +18562,7 @@ const GoACalculation = props => {
18555
18562
  const isConfigError = !!error && (error.toLowerCase().includes('invalid scope') || error.toLowerCase().includes('expression syntax'));
18556
18563
  const showError = !!error && (isConfigError || hasInteracted);
18557
18564
  return jsx(Visible, {
18558
- visible: visible,
18565
+ "$visible": visible,
18559
18566
  children: jsx(GoabFormItem, {
18560
18567
  label: label,
18561
18568
  error: showError ? error : '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "2.67.8",
3
+ "version": "2.67.10",
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",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-06-25T21:22:05.583Z",
4
- "sourceCommit": "a25b638498bc63728b41889ca6e86a9972cfde8a",
3
+ "generatedAt": "2026-06-29T21:40:54.421Z",
4
+ "sourceCommit": "ba77cdf919ad3793b0dc0195919846e304dd5da0",
5
5
  "sourcePath": "libs/jsonforms-components/src/index.ts",
6
6
  "rendererCount": 33,
7
7
  "renderers": [
@@ -1,6 +1,6 @@
1
1
  export declare const VerticalLayout: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
2
- export declare const Visible: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "visible"> & {
3
- visible: boolean | undefined;
4
- }, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "visible"> & {
5
- visible: boolean | undefined;
2
+ export declare const Visible: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$visible"> & {
3
+ $visible?: boolean;
4
+ }, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$visible"> & {
5
+ $visible?: boolean;
6
6
  }, never>>> & string;