@trackunit/custom-field-components 1.13.32 → 1.13.33
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.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +5 -5
package/index.cjs.js
CHANGED
|
@@ -314,7 +314,7 @@ const StringListField = ({ defaultValue = [], label, description, disabled, vali
|
|
|
314
314
|
handleRemoveValue(index);
|
|
315
315
|
}
|
|
316
316
|
};
|
|
317
|
-
return (jsxRuntime.jsxs(reactComponents.Card, { ...props, className: "w-full", "data-testid": dataTestId, children: [jsxRuntime.jsx(reactComponents.CardHeader, { accessories: jsxRuntime.jsx(reactComponents.Tooltip, {
|
|
317
|
+
return (jsxRuntime.jsxs(reactComponents.Card, { ...props, className: "w-full", "data-testid": dataTestId, children: [jsxRuntime.jsx(reactComponents.CardHeader, { accessories: jsxRuntime.jsx(reactComponents.Tooltip, { label: description }), heading: label, headingVariant: "secondary" }), jsxRuntime.jsx(reactComponents.CardBody, { children: field.value.length === 0 ? (jsxRuntime.jsx(reactComponents.Text, { children: t("customfield.stringlistfield.noValuesAddedYet") })) : (jsxRuntime.jsx("div", { className: "flex flex-wrap gap-2", children: field.value.map((value, index) => (jsxRuntime.jsx(StringListInput, { disabled: disabled, id: id, index: index, onDelete: () => handleRemoveValueConfirmation(index), onSave: newValue => handleFieldChange(index, newValue), value: value }, `${id}-${index}`))) })) }), !disabled ? (jsxRuntime.jsx(reactComponents.CardFooter, { children: jsxRuntime.jsx(reactComponents.Button, { disabled: disabled, onClick: () => setIsEditing(true), variant: "secondary", children: t("customfield.stringlistfield.add", { label: label }) }) })) : null, jsxRuntime.jsx(AddStringListField, { id: id, isEditing: isEditing, label: label, onAdd: (newItem) => {
|
|
318
318
|
field.onChange([...field.value, newItem]);
|
|
319
319
|
}, setIsEditing: setIsEditing })] }));
|
|
320
320
|
}, rules: validationRules }));
|
package/index.esm.js
CHANGED
|
@@ -312,7 +312,7 @@ const StringListField = ({ defaultValue = [], label, description, disabled, vali
|
|
|
312
312
|
handleRemoveValue(index);
|
|
313
313
|
}
|
|
314
314
|
};
|
|
315
|
-
return (jsxs(Card, { ...props, className: "w-full", "data-testid": dataTestId, children: [jsx(CardHeader, { accessories: jsx(Tooltip, {
|
|
315
|
+
return (jsxs(Card, { ...props, className: "w-full", "data-testid": dataTestId, children: [jsx(CardHeader, { accessories: jsx(Tooltip, { label: description }), heading: label, headingVariant: "secondary" }), jsx(CardBody, { children: field.value.length === 0 ? (jsx(Text, { children: t("customfield.stringlistfield.noValuesAddedYet") })) : (jsx("div", { className: "flex flex-wrap gap-2", children: field.value.map((value, index) => (jsx(StringListInput, { disabled: disabled, id: id, index: index, onDelete: () => handleRemoveValueConfirmation(index), onSave: newValue => handleFieldChange(index, newValue), value: value }, `${id}-${index}`))) })) }), !disabled ? (jsx(CardFooter, { children: jsx(Button, { disabled: disabled, onClick: () => setIsEditing(true), variant: "secondary", children: t("customfield.stringlistfield.add", { label: label }) }) })) : null, jsx(AddStringListField, { id: id, isEditing: isEditing, label: label, onAdd: (newItem) => {
|
|
316
316
|
field.onChange([...field.value, newItem]);
|
|
317
317
|
}, setIsEditing: setIsEditing })] }));
|
|
318
318
|
}, rules: validationRules }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/custom-field-components",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.33",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"react": "19.0.0",
|
|
11
11
|
"react-hook-form": "7.62.0",
|
|
12
12
|
"react-select": "^5.10.2",
|
|
13
|
-
"@trackunit/react-form-components": "1.14.
|
|
13
|
+
"@trackunit/react-form-components": "1.14.28",
|
|
14
14
|
"@trackunit/shared-utils": "1.13.43",
|
|
15
|
-
"@trackunit/custom-field-api": "1.13.
|
|
15
|
+
"@trackunit/custom-field-api": "1.13.31",
|
|
16
16
|
"@trackunit/iris-app-runtime-core": "1.13.26",
|
|
17
|
-
"@trackunit/react-components": "1.17.
|
|
18
|
-
"@trackunit/react-modal": "1.14.
|
|
17
|
+
"@trackunit/react-components": "1.17.25",
|
|
18
|
+
"@trackunit/react-modal": "1.14.30",
|
|
19
19
|
"@trackunit/react-core-hooks": "1.12.27",
|
|
20
20
|
"@trackunit/i18n-library-translation": "1.12.28",
|
|
21
21
|
"@trackunit/iris-app-runtime-core-api": "1.12.24"
|