@bindu-dashing/dam-solution-v2 5.9.211 → 5.9.212
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.
|
@@ -165,8 +165,6 @@ function AssetTemplatesTable({ assetTemplates, totalPages, totalCount, filters =
|
|
|
165
165
|
}
|
|
166
166
|
: false, onChange: handleTableChange, scroll: { x: "100%" } }), _jsx(DeleteConfirmationModal, { showDeleteModal: showConfirmPopup, toggleDeleteModal: toggleDeletConfirm, okText: updateAssetId ? DEACTIVATE_OK_TEXT : DELETE_OK_TEXT, onOk: updateAssetId
|
|
167
167
|
? () => onUpdateTemplate({ isActive: false }, get(selectedAsset, "_id"))
|
|
168
|
-
: onDeleteTemplate, loading: actionLoading, description: DELETE_CONFIRMATION_MESSAGE.replace(":action", updateAssetId ? "deactivate" : "delete").replace(":entity", `${get(selectedAsset, "name", "this asset template")}`)
|
|
169
|
-
? ""
|
|
170
|
-
: "Deleting this template might result in loosing all the meta data associated with this asset type. This change is irreversible." })] }));
|
|
168
|
+
: onDeleteTemplate, loading: actionLoading, description: DELETE_CONFIRMATION_MESSAGE.replace(":action", updateAssetId ? "deactivate" : "delete").replace(":entity", `${get(selectedAsset, "name", "this asset template")}`) })] }));
|
|
171
169
|
}
|
|
172
170
|
export default AssetTemplatesTable;
|
|
@@ -12,14 +12,13 @@ export declare function CustomFormFooter({ onCancel, onSave, loading, okButtonLa
|
|
|
12
12
|
icon?: any;
|
|
13
13
|
deleteAction?: boolean;
|
|
14
14
|
}): JSX.Element;
|
|
15
|
-
export declare const DeleteConfirmationModal: ({ showDeleteModal, toggleDeleteModal, onOk, description, okText, loading,
|
|
15
|
+
export declare const DeleteConfirmationModal: ({ showDeleteModal, toggleDeleteModal, onOk, description, okText, loading, restore, icon, }: {
|
|
16
16
|
showDeleteModal: boolean;
|
|
17
17
|
toggleDeleteModal: () => void;
|
|
18
18
|
onOk: () => void;
|
|
19
19
|
description: string;
|
|
20
20
|
okText: string;
|
|
21
21
|
loading: boolean;
|
|
22
|
-
subHeading?: string;
|
|
23
22
|
restore?: boolean;
|
|
24
23
|
icon?: JSX.Element;
|
|
25
24
|
}) => JSX.Element;
|
|
@@ -22,8 +22,8 @@ import { NOT_FOUND_IMAGE_URL } from "../utilities/constants/imageUrls";
|
|
|
22
22
|
export function CustomFormFooter({ onCancel, onSave = () => { }, loading, okButtonLabel = "Save", icon, deleteAction, }) {
|
|
23
23
|
return (_jsxs("div", { className: "md-lib-flex md-lib-gap-2 md-lib-justify-end", children: [_jsx(CustomButton, { type: "default", onClick: onCancel, label: "Cancel" }), _jsx(CustomButton, { type: "primary", onClick: onSave, label: okButtonLabel, loading: loading, htmlType: "submit", icon: icon ? icon : _jsx(_Fragment, {}), danger: !!deleteAction })] }));
|
|
24
24
|
}
|
|
25
|
-
export const DeleteConfirmationModal = ({ showDeleteModal, toggleDeleteModal, onOk, description, okText, loading,
|
|
26
|
-
return (_jsx(Modal, { maskClosable: false, centered: true, open: showDeleteModal, onCancel: toggleDeleteModal, footer: _jsx(CustomFormFooter, { onCancel: toggleDeleteModal, onSave: onOk, okButtonLabel: okText, loading: loading, icon: icon ? icon : restore ? _jsx(RedoOutlined, {}) : _jsx(DeleteOutlined, {}), deleteAction: !restore }), className: "setting-modal-style remove-modal", children: _jsx("div", { className: "body-content", children:
|
|
25
|
+
export const DeleteConfirmationModal = ({ showDeleteModal, toggleDeleteModal, onOk, description, okText, loading, restore, icon, }) => {
|
|
26
|
+
return (_jsx(Modal, { maskClosable: false, centered: true, open: showDeleteModal, onCancel: toggleDeleteModal, footer: _jsx(CustomFormFooter, { onCancel: toggleDeleteModal, onSave: onOk, okButtonLabel: okText, loading: loading, icon: icon ? icon : restore ? _jsx(RedoOutlined, {}) : _jsx(DeleteOutlined, {}), deleteAction: !restore }), className: "setting-modal-style remove-modal", children: _jsx("div", { className: "body-content", children: _jsx("div", { children: _jsx("h4", { className: "md-lib-text-lg md-lib-truncate md-lib-font-semibold md-lib-mb-2 md-lib-text-textColor md-lib-dark:text-darkTextColor md-lib-capitalize", children: description }) }) }) }));
|
|
27
27
|
};
|
|
28
28
|
export const RenderTableSearchFilters = ({ value, placeholder, onChange, onPressEnter, onClick, onClear, }) => {
|
|
29
29
|
return (_jsxs("div", { className: "md-lib-bg-white dark:md-lib-bg-darkPrimary md-lib-border md-lib-border-borderColor dark:md-lib-border-darkBorderColor md-lib-rounded-md md-lib-shadow-lg md-lib-min-w-[200px]", style: { padding: "5px" }, children: [_jsx("div", { className: "md-lib-mb-4", children: _jsx(Input, { placeholder: placeholder, value: value, onChange: onChange, onPressEnter: onPressEnter, className: "md-lib-w-full md-lib-h-10 md-lib-px-3 md-lib-border md-lib-border-borderColor dark:md-lib-border-darkBorderColor md-lib-rounded-md focus:md-lib-outline-none focus:md-lib-ring-2 focus:md-lib-ring-blue-500" }) }), _jsx(RenderTableFilterFooter, { onClear: onClear, onClick: onClick })] }));
|