iguazio.dashboard-react-controls 1.3.2 → 1.3.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.
|
@@ -473,7 +473,7 @@ FormInput.propTypes = {
|
|
|
473
473
|
pattern: _propTypes.default.string,
|
|
474
474
|
placeholder: _propTypes.default.string,
|
|
475
475
|
required: _propTypes.default.bool,
|
|
476
|
-
step: _propTypes.default.string,
|
|
476
|
+
step: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
|
|
477
477
|
suggestionList: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
478
478
|
tip: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.element]),
|
|
479
479
|
type: _propTypes.default.string,
|
|
@@ -124,7 +124,12 @@ var useFormTable = function useFormTable(formState) {
|
|
|
124
124
|
applyOrDiscardOrDelete(event);
|
|
125
125
|
}
|
|
126
126
|
exitEditMode();
|
|
127
|
-
formState.
|
|
127
|
+
var values = (0, _lodash.get)(formState.values, fieldsPath);
|
|
128
|
+
if ((values === null || values === void 0 ? void 0 : values.length) > 1) {
|
|
129
|
+
formState.form.mutators.remove(fieldsPath, index);
|
|
130
|
+
} else {
|
|
131
|
+
formState.form.change(fieldsPath, []);
|
|
132
|
+
}
|
|
128
133
|
event && event.stopPropagation();
|
|
129
134
|
};
|
|
130
135
|
var discardChanges = function discardChanges(event, fieldsPath, index) {
|
package/dist/scss/common.scss
CHANGED
|
@@ -139,6 +139,7 @@ textarea {
|
|
|
139
139
|
min-height: $tableHeaderHeight;
|
|
140
140
|
border-bottom: $primaryBorder;
|
|
141
141
|
background-color: $white;
|
|
142
|
+
padding: 5px 0;
|
|
142
143
|
|
|
143
144
|
&:not(.no-hover):hover {
|
|
144
145
|
background-color: $alabaster;
|
|
@@ -307,7 +308,8 @@ textarea {
|
|
|
307
308
|
}
|
|
308
309
|
|
|
309
310
|
&_left {
|
|
310
|
-
&::before,
|
|
311
|
+
&::before,
|
|
312
|
+
&::after {
|
|
311
313
|
right: 15px;
|
|
312
314
|
}
|
|
313
315
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iguazio.dashboard-react-controls",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "Collection of resources (such as CSS styles, fonts and images) and ReactJS 17.x components to share among different Iguazio React repos.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|