@limetech/lime-elements 37.61.1 → 37.61.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/CHANGELOG.md +16 -0
- package/dist/cjs/limel-form.cjs.entry.js +19 -3
- package/dist/cjs/limel-form.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-icon_2.cjs.entry.js +17 -15
- package/dist/cjs/limel-icon_2.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-info-tile.cjs.entry.js +1 -1
- package/dist/cjs/limel-info-tile.cjs.entry.js.map +1 -1
- package/dist/collection/components/form/templates/array-field-collapsible-item.js +19 -3
- package/dist/collection/components/form/templates/array-field-collapsible-item.js.map +1 -1
- package/dist/collection/components/info-tile/info-tile.js +1 -1
- package/dist/collection/components/info-tile/info-tile.js.map +1 -1
- package/dist/collection/components/portal/portal.js +17 -15
- package/dist/collection/components/portal/portal.js.map +1 -1
- package/dist/esm/limel-form.entry.js +19 -3
- package/dist/esm/limel-form.entry.js.map +1 -1
- package/dist/esm/limel-icon_2.entry.js +17 -15
- package/dist/esm/limel-icon_2.entry.js.map +1 -1
- package/dist/esm/limel-info-tile.entry.js +1 -1
- package/dist/esm/limel-info-tile.entry.js.map +1 -1
- package/dist/lime-elements/lime-elements.css +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-5862b851.entry.js +2 -0
- package/dist/lime-elements/p-5862b851.entry.js.map +1 -0
- package/dist/lime-elements/{p-c93ece44.entry.js → p-66bea69a.entry.js} +2 -2
- package/dist/lime-elements/p-66bea69a.entry.js.map +1 -0
- package/dist/lime-elements/{p-9bb104b1.entry.js → p-b852d3f5.entry.js} +2 -2
- package/dist/lime-elements/{p-9bb104b1.entry.js.map → p-b852d3f5.entry.js.map} +1 -1
- package/dist/types/components/form/templates/array-field-collapsible-item.d.ts +4 -1
- package/dist/types/components/portal/portal.d.ts +3 -1
- package/package.json +1 -1
- package/dist/lime-elements/p-c93ece44.entry.js.map +0 -1
- package/dist/lime-elements/p-d7c6ba55.entry.js +0 -2
- package/dist/lime-elements/p-d7c6ba55.entry.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## [37.61.3](https://github.com/Lundalogik/lime-elements/compare/v37.61.2...v37.61.3) (2024-09-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
* **info-tile:** improve accessibility while loading ([66a54f5](https://github.com/Lundalogik/lime-elements/commit/66a54f5d71d513f4ee2dbd9ee36051595cd25c61))
|
|
8
|
+
|
|
9
|
+
## [37.61.2](https://github.com/Lundalogik/lime-elements/compare/v37.61.1...v37.61.2) (2024-09-19)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Performance Improvements
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
* **form:** render collapsed children when they become visible ([6a2ffa0](https://github.com/Lundalogik/lime-elements/commit/6a2ffa050c3186043186d7d8f16cd5cd246b0698))
|
|
16
|
+
|
|
1
17
|
## [37.61.1](https://github.com/Lundalogik/lime-elements/compare/v37.61.0...v37.61.1) (2024-09-19)
|
|
2
18
|
|
|
3
19
|
|
|
@@ -23714,13 +23714,24 @@ class CollapsibleItemTemplate extends react.Component {
|
|
|
23714
23714
|
constructor(props) {
|
|
23715
23715
|
super(props);
|
|
23716
23716
|
this.props = props;
|
|
23717
|
+
this.state = {
|
|
23718
|
+
isOpen: false,
|
|
23719
|
+
};
|
|
23720
|
+
this.handleOpen = () => {
|
|
23721
|
+
this.setState({
|
|
23722
|
+
isOpen: true,
|
|
23723
|
+
});
|
|
23724
|
+
};
|
|
23717
23725
|
this.handleAction = this.handleAction.bind(this);
|
|
23718
23726
|
this.isDeepEmpty = this.isDeepEmpty.bind(this);
|
|
23719
|
-
this.
|
|
23727
|
+
this.setState({
|
|
23728
|
+
isOpen: this.isDeepEmpty(props.data),
|
|
23729
|
+
});
|
|
23720
23730
|
}
|
|
23721
23731
|
componentDidMount() {
|
|
23722
23732
|
const section = this.refs.section;
|
|
23723
23733
|
section.addEventListener('action', this.handleAction);
|
|
23734
|
+
section.addEventListener('open', this.handleOpen);
|
|
23724
23735
|
this.setActions(section);
|
|
23725
23736
|
}
|
|
23726
23737
|
componentDidUpdate() {
|
|
@@ -23730,15 +23741,20 @@ class CollapsibleItemTemplate extends react.Component {
|
|
|
23730
23741
|
componentWillUnmount() {
|
|
23731
23742
|
const section = this.refs.section;
|
|
23732
23743
|
section.removeEventListener('action', this.handleAction);
|
|
23744
|
+
section.removeEventListener('open', this.handleOpen);
|
|
23733
23745
|
}
|
|
23734
23746
|
render() {
|
|
23735
23747
|
const { data, schema, formSchema } = this.props;
|
|
23748
|
+
let children;
|
|
23749
|
+
if (this.state.isOpen) {
|
|
23750
|
+
children = this.props.item.children;
|
|
23751
|
+
}
|
|
23736
23752
|
return react.createElement('limel-collapsible-section', {
|
|
23737
23753
|
header: findTitle(data, schema, formSchema) || 'New item',
|
|
23738
23754
|
class: 'limel-form-array-item--object',
|
|
23739
23755
|
ref: 'section',
|
|
23740
|
-
'is-open': this.isOpen,
|
|
23741
|
-
},
|
|
23756
|
+
'is-open': this.state.isOpen,
|
|
23757
|
+
}, children);
|
|
23742
23758
|
}
|
|
23743
23759
|
setActions(element) {
|
|
23744
23760
|
const { item, index } = this.props;
|