eleven-solutions-common-website-unique-web 5.0.6 → 5.0.8
Sign up to get free protection for your applications and to get access to all the features.
@@ -261,7 +261,7 @@ const TaxonomyForm = () => {
|
|
261
261
|
handleEditClick(index, taxonomy.id);
|
262
262
|
}, className: "text-gray-500 transition-colors duration-200 dark:hover:text-yellow-500 dark:text-gray-300 hover:text-yellow-500 focus:outline-none", children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", className: "w-5 h-5", children: _jsx("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10" }) }) }), _jsx("button", { type: "button", onClick: () => {
|
263
263
|
handleAddSubType(index, taxonomy.id);
|
264
|
-
}, className: "text-gray-500 transition-colors duration-200 dark:hover:text-blue-500 dark:text-gray-300 hover:text-blue-500 focus:outline-none", children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", className: "w-5 h-5", children: _jsx("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M12 4.5v15m7.5-7.5h-15" }) }) })] }) })), _jsx("td", { className: "px-4 py-4 text-sm text-gray-500 dark:text-gray-400", children: taxonomy.code }), _jsx("td", { className: "px-4 py-4 text-sm font-medium text-gray-900 dark:text-white", children: _jsxs("div", { className: "flex justify-between items-center", children: [_jsx("span", { children: taxonomy.value }), _jsx("button", { type: "button",
|
264
|
+
}, className: "text-gray-500 transition-colors duration-200 dark:hover:text-blue-500 dark:text-gray-300 hover:text-blue-500 focus:outline-none", children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", className: "w-5 h-5", children: _jsx("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M12 4.5v15m7.5-7.5h-15" }) }) })] }) })), _jsx("td", { className: "px-4 py-4 text-sm text-gray-500 dark:text-gray-400", children: taxonomy.code }), _jsx("td", { className: "px-4 py-4 text-sm font-medium text-gray-900 dark:text-white", children: _jsxs("div", { className: "flex justify-between items-center", children: [_jsx("span", { children: taxonomy.value }), taxonomy.parentId === null ? ("") : (_jsx("button", { type: "button", className: "text-gray-500 transition-colors duration-200 dark:hover:text-blue-600 dark:text-gray-300 hover:text-blue-500 focus:outline-none", children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: "1.5", stroke: "currentColor", className: "w-5 h-5", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) }) })), _jsx("button", { type: "button", className: "text-gray-500 transition-colors duration-200 dark:hover:text-red-600 dark:text-gray-300 hover:text-red-500 focus:outline-none", children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: "1.5", stroke: "currentColor", className: "w-5 h-5", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) }) })] }) })] }, index))) })] }) }), similarTaxonomies.some((taxonomy) => taxonomy.isEdit) && (_jsx("div", { className: "flex space-x-4 mt-6 justify-start", children: _jsxs("button", { type: "button", onClick: handleOpenModal, className: "flex items-center justify-center px-6 py-2 font-medium tracking-wide text-white capitalize transition-colors duration-300 transform bg-blue-600 rounded-lg hover:bg-blue-500 focus:outline-none focus:ring focus:ring-blue-300 focus:ring-opacity-80", children: [_jsx(FaPlus, { className: "mr-2 font-medium" }), "Add Multiple Values"] }) }))] })), isEditMode && (_jsx(_Fragment, { children: tempTaxonomy.length > 0 && (_jsxs("div", { className: "flex-grow ml-0 mt-4 w-full", children: [_jsx("div", { className: "overflow-hidden border border-gray-200 dark:border-gray-700 md:rounded-lg mt-6", children: _jsxs("table", { className: "min-w-full divide-y divide-gray-200 dark:divide-gray-700", children: [_jsx("thead", { className: "bg-gray-50 dark:bg-gray-800", children: _jsxs("tr", { children: [_jsx("th", { scope: "col", className: "px-4 py-3.5 text-md font-normal text-left rtl:text-right text-gray-500 dark:text-gray-400", children: "Edit/Delete" }), _jsx("th", { scope: "col", className: "px-4 py-3.5 text-md font-normal text-left text-gray-500 dark:text-gray-400", children: "Code" }), _jsx("th", { scope: "col", className: "px-4 py-3.5 text-md font-normal text-left text-gray-500 dark:text-gray-400", children: "Value" })] }) }), _jsx("tbody", { className: "bg-white divide-y divide-gray-200 dark:bg-gray-800 dark:divide-gray-700", children: [...tempTaxonomy].map((item, index) => (_jsxs("tr", { children: [_jsx("td", { className: "px-4 py-4 text-sm whitespace-nowrap", children: _jsxs("div", { className: "flex items-center gap-x-6", children: [_jsx("button", { type: "button", onClick: () => {
|
265
265
|
const newTempTaxonomy = [...tempTaxonomy];
|
266
266
|
newTempTaxonomy.splice(index, 1);
|
267
267
|
setTempTaxonomy(newTempTaxonomy);
|
package/package.json
CHANGED
@@ -541,16 +541,35 @@ const TaxonomyForm = () => {
|
|
541
541
|
<td className="px-4 py-4 text-sm text-gray-500 dark:text-gray-400">
|
542
542
|
{taxonomy.code}
|
543
543
|
</td>
|
544
|
-
{/* <td className="px-4 py-4 text-sm font-medium text-gray-900 dark:text-white">
|
545
|
-
{taxonomy.value}
|
546
|
-
</td> */}
|
547
544
|
|
548
545
|
<td className="px-4 py-4 text-sm font-medium text-gray-900 dark:text-white">
|
549
546
|
<div className="flex justify-between items-center">
|
550
547
|
<span>{taxonomy.value}</span>
|
548
|
+
{taxonomy.parentId === null ? (
|
549
|
+
""
|
550
|
+
) : (
|
551
|
+
<button
|
552
|
+
type="button"
|
553
|
+
className="text-gray-500 transition-colors duration-200 dark:hover:text-blue-600 dark:text-gray-300 hover:text-blue-500 focus:outline-none"
|
554
|
+
>
|
555
|
+
<svg
|
556
|
+
xmlns="http://www.w3.org/2000/svg"
|
557
|
+
fill="none"
|
558
|
+
viewBox="0 0 24 24"
|
559
|
+
strokeWidth="1.5"
|
560
|
+
stroke="currentColor"
|
561
|
+
className="w-5 h-5"
|
562
|
+
>
|
563
|
+
<path
|
564
|
+
strokeLinecap="round"
|
565
|
+
strokeLinejoin="round"
|
566
|
+
d="M19.5 8.25l-7.5 7.5-7.5-7.5"
|
567
|
+
/>
|
568
|
+
</svg>
|
569
|
+
</button>
|
570
|
+
)}
|
551
571
|
<button
|
552
572
|
type="button"
|
553
|
-
onClick={() => handleDeleteClick(taxonomy.id)}
|
554
573
|
className="text-gray-500 transition-colors duration-200 dark:hover:text-red-600 dark:text-gray-300 hover:text-red-500 focus:outline-none"
|
555
574
|
>
|
556
575
|
<svg
|
@@ -564,7 +583,7 @@ const TaxonomyForm = () => {
|
|
564
583
|
<path
|
565
584
|
strokeLinecap="round"
|
566
585
|
strokeLinejoin="round"
|
567
|
-
d="
|
586
|
+
d="M19.5 8.25l-7.5 7.5-7.5-7.5"
|
568
587
|
/>
|
569
588
|
</svg>
|
570
589
|
</button>
|