@abgov/jsonforms-components 2.46.2 → 2.46.3

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
@@ -8695,8 +8695,8 @@ const FlexForm = styled.div(_t11$1 || (_t11$1 = _$7`
8695
8695
  flex-direction: column;
8696
8696
  flex: 3;
8697
8697
  flex-shrink: 0;
8698
- overflow-y: ${0};
8699
- `), props => props.overflow);
8698
+ overflow-y: visible;
8699
+ `));
8700
8700
  const TabName = styled.div(_t12$1 || (_t12$1 = _$7`
8701
8701
  margin: 1rem 0 1rem 1rem;
8702
8702
  font-weight: 400;
@@ -9409,7 +9409,7 @@ const ObjectArrayList$1 = ({
9409
9409
  listTitle,
9410
9410
  errors
9411
9411
  }) => {
9412
- var _uischema$options12, _uischema$options13, _uischema$options14;
9412
+ var _uischema$options12, _uischema$options13;
9413
9413
  const isEmptyList = data === 0;
9414
9414
  const minHeight = 100;
9415
9415
  const totalContentRef = useRef(null);
@@ -9439,7 +9439,6 @@ const ObjectArrayList$1 = ({
9439
9439
  };
9440
9440
  const continueButtonTitle = uischema == null || (_uischema$options12 = uischema.options) == null || (_uischema$options12 = _uischema$options12.componentProps) == null ? void 0 : _uischema$options12.listWithDetailsContinueButtonTitle;
9441
9441
  const withLeftTab = uischema == null || (_uischema$options13 = uischema.options) == null || (_uischema$options13 = _uischema$options13.componentProps) == null ? void 0 : _uischema$options13.withLeftTab;
9442
- const containerOverflow = (uischema == null || (_uischema$options14 = uischema.options) == null || (_uischema$options14 = _uischema$options14.componentProps) == null ? void 0 : _uischema$options14.containerOverflow) || 'auto';
9443
9442
  return jsx(ListContainer, {
9444
9443
  children: jsx("div", {
9445
9444
  children: withLeftTab ? jsxs(RowFlex, {
@@ -9466,7 +9465,6 @@ const ObjectArrayList$1 = ({
9466
9465
  }), jsx(FlexForm, {
9467
9466
  tabIndex: -1,
9468
9467
  ref: rightRef,
9469
- overflow: containerOverflow,
9470
9468
  children: jsx(NonEmptyList$1, {
9471
9469
  childPath: Paths.compose(path, `${currentIndex}`),
9472
9470
  rowIndex: currentIndex,
@@ -9503,7 +9501,6 @@ const ObjectArrayList$1 = ({
9503
9501
  }), currentListPage > 0 && jsxs(UpdateListContainer, {
9504
9502
  children: [jsxs(FlexForm, {
9505
9503
  tabIndex: -1,
9506
- overflow: containerOverflow,
9507
9504
  children: [jsx(ObjectArrayTitle, {
9508
9505
  children: listTitle
9509
9506
  }), jsx(NonEmptyList$1, {
@@ -9541,7 +9538,7 @@ class ListWithDetailControl extends React.Component {
9541
9538
  };
9542
9539
  // eslint-disable-next-line
9543
9540
  this.addItem = (path, value) => {
9544
- var _uischema$options$det, _uischema$options15;
9541
+ var _uischema$options$det, _uischema$options14;
9545
9542
  const {
9546
9543
  data,
9547
9544
  addItem,
@@ -9550,7 +9547,7 @@ class ListWithDetailControl extends React.Component {
9550
9547
  } = this.props;
9551
9548
  const isNonEmpty = data !== undefined && data !== null;
9552
9549
  const newIndex = isNonEmpty ? data != null ? data : 0 : 0;
9553
- const maxItems = (_uischema$options$det = uischema == null || (_uischema$options15 = uischema.options) == null || (_uischema$options15 = _uischema$options15.detail) == null ? void 0 : _uischema$options15.maxItems) != null ? _uischema$options$det : DEFAULT_MAX_ITEMS;
9550
+ const maxItems = (_uischema$options$det = uischema == null || (_uischema$options14 = uischema.options) == null || (_uischema$options14 = _uischema$options14.detail) == null ? void 0 : _uischema$options14.maxItems) != null ? _uischema$options$det : DEFAULT_MAX_ITEMS;
9554
9551
  if (data < maxItems) {
9555
9552
  if (addItem) {
9556
9553
  addItem(path, value)();
@@ -9571,7 +9568,7 @@ class ListWithDetailControl extends React.Component {
9571
9568
  };
9572
9569
  }
9573
9570
  render() {
9574
- var _ref, _ref2, _ref3, _uischema$label, _uischema$options16, _uischema$options17;
9571
+ var _ref, _ref2, _ref3, _uischema$label, _uischema$options15, _uischema$options16;
9575
9572
  const _this$props = this.props,
9576
9573
  {
9577
9574
  label,
@@ -9590,8 +9587,8 @@ class ListWithDetailControl extends React.Component {
9590
9587
  additionalProps = _objectWithoutPropertiesLoose(_this$props, _excluded$4);
9591
9588
  const controlElement = uischema;
9592
9589
  // eslint-disable-next-line
9593
- const listTitle = (_ref = (_ref2 = (_ref3 = (_uischema$label = uischema == null ? void 0 : uischema.label) != null ? _uischema$label : uischema == null || (_uischema$options16 = uischema.options) == null ? void 0 : _uischema$options16.title) != null ? _ref3 : getItemsTitle(schema)) != null ? _ref2 : schema == null ? void 0 : schema.title) != null ? _ref : label;
9594
- const withLeftTab = uischema == null || (_uischema$options17 = uischema.options) == null || (_uischema$options17 = _uischema$options17.componentProps) == null ? void 0 : _uischema$options17.withLeftTab;
9590
+ const listTitle = (_ref = (_ref2 = (_ref3 = (_uischema$label = uischema == null ? void 0 : uischema.label) != null ? _uischema$label : uischema == null || (_uischema$options15 = uischema.options) == null ? void 0 : _uischema$options15.title) != null ? _ref3 : getItemsTitle(schema)) != null ? _ref2 : schema == null ? void 0 : schema.title) != null ? _ref : label;
9591
+ const withLeftTab = uischema == null || (_uischema$options16 = uischema.options) == null || (_uischema$options16 = _uischema$options16.componentProps) == null ? void 0 : _uischema$options16.withLeftTab;
9595
9592
  const noLeftTabBlankButton = this.state.currentListPage === 0 && data === 0;
9596
9593
  const showMainItems = withLeftTab || this.state.currentListPage === 0;
9597
9594
  const showSecondaryButton = withLeftTab || noLeftTabBlankButton;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "2.46.2",
3
+ "version": "2.46.3",
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",
@@ -10,10 +10,7 @@ export declare const RowFlex: import("styled-components/dist/types").IStyledComp
10
10
  export declare const RowFlexMenu: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
11
11
  export declare const FlexTabs: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
12
12
  export declare const FlexTabsWithMargin: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
13
- interface FlexFormProps {
14
- overflow: string;
15
- }
16
- export declare const FlexForm: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, FlexFormProps>> & string;
13
+ export declare const FlexForm: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
17
14
  export declare const TabName: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
18
15
  export declare const Trash: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
19
16
  export declare const ListContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -29,4 +26,3 @@ export declare const HasErrorLabel: import("styled-components/dist/types").IStyl
29
26
  export declare const HilightCellWarning: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
30
27
  export declare const FixTableHeaderAlignment: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
31
28
  export declare const ListWithDetailsReviewCellDiv: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
32
- export {};