@anji-dashing/dam-solution-v2 5.8.177 → 5.8.178

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.
@@ -108,13 +108,13 @@ function AssetTemplatesTable({ assetTemplates, totalPages, totalCount, filters =
108
108
  ? getSortOrder(filters.sortOrder)
109
109
  : undefined,
110
110
  width: 200,
111
- render: (date) => (_jsx("span", { className: "md-lib-text-secondaryTextColor dark:md-lib-text-darkSecondaryTextColor md-lib-text-sm md-lib-cursor-default", children: moment.utc(date).tz(LOCAL_TIMEZONE).format(APP_DATE_TIME_FORMAT) })),
111
+ render: (date) => (_jsx("span", { className: "md-lib-text-secondaryTextColor dark:md-lib-text-darkSecondaryTextColor md-lib-text-base md-lib-cursor-default", children: moment.utc(date).tz(LOCAL_TIMEZONE).format(APP_DATE_TIME_FORMAT) })),
112
112
  },
113
113
  {
114
114
  title: "Description",
115
115
  dataIndex: "description",
116
116
  key: "description",
117
- render: (text) => (_jsx("span", { className: "md-lib-text-secondaryTextColor dark:md-lib-text-darkSecondaryTextColor md-lib-max-w-[240px] md-lib-truncate md-lib-inline-block md-lib-text-sm md-lib-cursor-default", title: text, children: text })),
117
+ render: (text) => (_jsx("span", { className: "md-lib-text-secondaryTextColor dark:md-lib-text-darkSecondaryTextColor md-lib-max-w-[240px] md-lib-truncate md-lib-inline-block md-lib-text-base md-lib-cursor-default", title: text, children: text })),
118
118
  },
119
119
  {
120
120
  title: "Active",
@@ -324,7 +324,7 @@ const CreateClientForm = ({ teamsApi, username, password, toggleShow, onSuccess,
324
324
  }
325
325
  });
326
326
  const shouldShowExternalFields = damLocationType === "external" || isEditMode;
327
- return (_jsx(Drawer, { open: true, title: isEditMode ? "Edit Client" : "Create Client", onClose: toggleShow, width: 500, maskClosable: false, children: fetchingClientData ? (_jsx("div", { style: { textAlign: "center", padding: "20px" }, children: _jsx(Typography.Text, { children: "Loading client data..." }) })) : (_jsxs(Form, { layout: "vertical", form: form, onFinish: onFinish, children: [_jsx(Form.Item, { label: "Name", name: "name", rules: [
327
+ return (_jsx(Drawer, { open: true, title: isEditMode ? "Edit Client" : "Create Client", onClose: toggleShow, width: 500, maskClosable: false, zIndex: 99999, children: fetchingClientData ? (_jsx("div", { style: { textAlign: "center", padding: "20px" }, children: _jsx(Typography.Text, { children: "Loading client data..." }) })) : (_jsxs(Form, { layout: "vertical", form: form, onFinish: onFinish, children: [_jsx(Form.Item, { label: "Name", name: "name", rules: [
328
328
  {
329
329
  required: true,
330
330
  message: "Name is required",
@@ -95,7 +95,7 @@ function FileDownloadHistory({ open, onClose, file, }) {
95
95
  },
96
96
  ];
97
97
  const fileOrFolderName = get(file, "name", "File/Folder");
98
- return (_jsx(Drawer, { title: _jsxs("span", { className: "md-lib-font-semibold md-lib-text-textColor dark:md-lib-text-darkTextColor md-lib-truncate md-lib-block md-lib-max-w-[280px]", title: `${fileOrFolderName} - Download history`, children: [fileOrFolderName, " - Download history"] }), onClose: onClose, open: open, footer: null, closable: true, closeIcon: _jsx(CloseOutlined, { className: "md-lib-text-textColor dark:md-lib-text-darkTextColor md-lib-text-lg", "aria-label": "Close" }), children: _jsx(Table, { rowKey: "_id", dataSource: logs, columns: columns, loading: { indicator: _jsx(CustomLoader, {}), spinning: loading }, pagination: totalPages > 1
98
+ return (_jsx(Drawer, { title: _jsxs("span", { className: "md-lib-font-semibold md-lib-text-textColor dark:md-lib-text-darkTextColor md-lib-truncate md-lib-block md-lib-max-w-[280px]", title: `${fileOrFolderName} - Download history`, children: [fileOrFolderName, " - Download history"] }), onClose: onClose, open: open, footer: null, closable: true, closeIcon: _jsx(CloseOutlined, { className: "md-lib-text-textColor dark:md-lib-text-darkTextColor md-lib-text-lg", "aria-label": "Close" }), zIndex: 99999, children: _jsx(Table, { rowKey: "_id", dataSource: logs, columns: columns, loading: { indicator: _jsx(CustomLoader, {}), spinning: loading }, pagination: totalPages > 1
99
99
  ? {
100
100
  current: currentPage,
101
101
  total: totalCount,
@@ -32,7 +32,7 @@ const getStatusProps = (status) => {
32
32
  }
33
33
  };
34
34
  const UploadStatusModal = ({ open, statusList, onClose }) => {
35
- return (_jsx(Drawer, { title: "Uploading File", open: open, onClose: onClose, placement: "right", width: 400, mask: false, maskClosable: true, closable: true, destroyOnClose: false, children: _jsx("div", { className: "md-lib-space-y-4 md-lib-max-h-[calc(100vh-100px)] md-lib-overflow-y-auto md-lib-pr-2", children: map(statusList, ({ name, status }) => {
35
+ return (_jsx(Drawer, { title: "Uploading File", open: open, onClose: onClose, placement: "right", width: 400, mask: false, maskClosable: true, closable: true, destroyOnClose: false, zIndex: 99999, children: _jsx("div", { className: "md-lib-space-y-4 md-lib-max-h-[calc(100vh-100px)] md-lib-overflow-y-auto md-lib-pr-2", children: map(statusList, ({ name, status }) => {
36
36
  const { percent, status: progressStatus, icon, } = getStatusProps(status);
37
37
  return (_jsxs("div", { className: "md-lib-mb-4 md-lib-p-3 md-lib-border md-lib-border-gray-200 md-lib-rounded", children: [_jsxs("div", { className: "md-lib-flex md-lib-justify-between md-lib-items-center md-lib-mb-2", children: [_jsx("span", { className: "md-lib-truncate md-lib-w-4/5 md-lib-text-sm md-lib-font-medium", children: name }), icon] }), _jsx(Progress, { percent: status === FileUploadStatus.PENDING ? undefined : percent, status: progressStatus, showInfo: true, strokeColor: status === FileUploadStatus.PENDING
38
38
  ? ThemeModes.PENDING
@@ -240,6 +240,6 @@ function MapFile({ open, handleCancel, filesList, fromUpload, parentFolderId, ca
240
240
  }
241
241
  };
242
242
  const getMetadataForm = (_jsxs(Form, { layout: "vertical", form: form, scrollToFirstError: true, onFinish: fromUpload ? handleSubmit : handleUpdate, onKeyDown: preventEnterSubmit, className: "md-lib-m-2", disabled: !canEdit, children: [_jsx(AssetSelectionFormItem, { handleAssetTemplateChange: handleAssetTemplateChange, assetOptions: assetOptions, assetsLoading: assetsLoading }), selectedAssetTemplate && (_jsxs(_Fragment, { children: [_jsx(Form.Item, { name: "teamIds", label: "Teams", children: _jsx(Select, { options: teamOptions, placeholder: "Select teams", mode: "multiple", onChange: (val) => onChangeTeams(val), style: { width: "100%" }, showSearch: true, optionFilterProp: "key" }) }), _jsx(Form.Item, { name: "expiryDate", label: "Expiry Date", children: _jsx(DatePicker, { placeholder: "Expiry Date", style: { width: "100%" } }) }), _jsx(Metadata, { asset: selectedAssetTemplate, form: form, file: (filesList === null || filesList === void 0 ? void 0 : filesList[0]) || null })] })), _jsxs("div", { className: "md-lib-flex md-lib-items-center md-lib-justify-end md-lib-gap-3", children: [_jsx(Button, { onClick: handleCancelWithConfirmation, children: canEdit ? "Cancel" : "Close" }), canEdit && (_jsx(Button, { disabled: !selectedAssetTemplate, type: "primary", loading: loading || updateFileMutation.isLoading, htmlType: "submit", children: "Save" }))] })] }));
243
- return (_jsx(_Fragment, { children: fromUpload ? (_jsx(Drawer, { title: "Metadata", open: open, onClose: handleCancelWithConfirmation, maskClosable: false, children: getMetadataForm })) : (_jsxs("div", { className: "md-lib-p-2 md-lib-overflow-y-scroll md-lib-max-h-[calc(100vh-65px)]", children: [_jsx("p", { className: "md-lib-text-lg md-lib-font-semibold", children: "Metadata" }), getMetadataForm] })) }));
243
+ return (_jsx(_Fragment, { children: fromUpload ? (_jsx(Drawer, { title: "Metadata", open: open, onClose: handleCancelWithConfirmation, maskClosable: false, zIndex: 99999, children: getMetadataForm })) : (_jsxs("div", { className: "md-lib-p-2 md-lib-overflow-y-scroll md-lib-max-h-[calc(100vh-65px)]", children: [_jsx("p", { className: "md-lib-text-lg md-lib-font-semibold", children: "Metadata" }), getMetadataForm] })) }));
244
244
  }
245
245
  export default MapFile;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anji-dashing/dam-solution-v2",
3
- "version": "5.8.177",
3
+ "version": "5.8.178",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.0.1",
6
6
  "@emoji-mart/data": "^1.2.1",