@react-typed-forms/schemas-html 4.0.1 → 4.1.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/lib/index.cjs +6 -4
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +7 -5
- package/lib/index.js.map +1 -1
- package/package.json +3 -3
package/lib/index.cjs
CHANGED
|
@@ -763,21 +763,23 @@ function createTabsRenderer(options) {
|
|
|
763
763
|
renderType: schemas.GroupRenderType.Tabs
|
|
764
764
|
});
|
|
765
765
|
function renderAllTabs(_ref, isVisible) {
|
|
766
|
+
var _tabIndex$value;
|
|
766
767
|
var options = _ref.options,
|
|
767
768
|
_ref$groupProps = _ref.groupProps,
|
|
768
769
|
designMode = _ref$groupProps.designMode,
|
|
769
770
|
formNode = _ref$groupProps.formNode,
|
|
770
771
|
className = _ref$groupProps.className,
|
|
771
772
|
renderChild = _ref$groupProps.renderChild,
|
|
773
|
+
state = _ref$groupProps.state,
|
|
772
774
|
tabOptions = _ref.tabOptions;
|
|
773
|
-
var tabIndex =
|
|
775
|
+
var tabIndex = state.meta.fields.tabIndex.as();
|
|
774
776
|
var tabClass = options.tabClass,
|
|
775
777
|
labelClass = options.labelClass,
|
|
776
778
|
tabListClass = options.tabListClass,
|
|
777
779
|
inactiveClass = options.inactiveClass,
|
|
778
780
|
activeClass = options.activeClass,
|
|
779
781
|
contentClass = options.contentClass;
|
|
780
|
-
var currentTab = tabIndex.value;
|
|
782
|
+
var currentTab = (_tabIndex$value = tabIndex.value) != null ? _tabIndex$value : 0;
|
|
781
783
|
return designMode ? /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
782
784
|
children: formNode.getChildNodes().map(function (x, i) {
|
|
783
785
|
return renderTabs([x], i);
|
|
@@ -1865,7 +1867,7 @@ function createOptionalAdornment(options) {
|
|
|
1865
1867
|
function OptionalEditRenderer(_ref2) {
|
|
1866
1868
|
var _effect = core.useComponentTracking();
|
|
1867
1869
|
try {
|
|
1868
|
-
var _options$setNullText;
|
|
1870
|
+
var _renderMultiValues, _options$setNullText;
|
|
1869
1871
|
var children = _ref2.children,
|
|
1870
1872
|
options = _ref2.options,
|
|
1871
1873
|
adornment = _ref2.adornment,
|
|
@@ -1873,7 +1875,7 @@ function OptionalEditRenderer(_ref2) {
|
|
|
1873
1875
|
renderMultiValues = _ref2.renderMultiValues,
|
|
1874
1876
|
allValues = _ref2.allValues,
|
|
1875
1877
|
nullToggler = _ref2.nullToggler;
|
|
1876
|
-
renderMultiValues != null ?
|
|
1878
|
+
(_renderMultiValues = renderMultiValues) != null ? _renderMultiValues : renderMultiValues = function renderMultiValues() {
|
|
1877
1879
|
var _options$multiValuesT;
|
|
1878
1880
|
return (_options$multiValuesT = options.multiValuesText) != null ? _options$multiValuesT : "Differing values";
|
|
1879
1881
|
};
|