@@ -51,7 +52,7 @@ function DlgChangeLocation({ hideWindow, initial, onChangeLocation }: DlgChangeL
id='dlg_cst_body'
label='Путь'
className='w-[23rem]'
- rows={5}
+ rows={3}
value={body}
onChange={event => setBody(event.target.value)}
/>
diff --git a/rsconcept/frontend/src/pages/LibraryPage/LibraryPage.tsx b/rsconcept/frontend/src/pages/LibraryPage/LibraryPage.tsx
index c13bca17..e404ef1f 100644
--- a/rsconcept/frontend/src/pages/LibraryPage/LibraryPage.tsx
+++ b/rsconcept/frontend/src/pages/LibraryPage/LibraryPage.tsx
@@ -10,8 +10,8 @@ import { ILibraryFilter } from '@/models/miscellaneous';
import { storage } from '@/utils/constants';
import { toggleTristateFlag } from '@/utils/utils';
+import LibraryTable from './LibraryTable';
import SearchPanel from './SearchPanel';
-import ViewLibrary from './ViewLibrary';
function LibraryPage() {
const library = useLibrary();
@@ -63,7 +63,7 @@ function LibraryPage() {
const view = useMemo(
() => (
-
diff --git a/rsconcept/frontend/src/pages/LibraryPage/ViewLibrary.tsx b/rsconcept/frontend/src/pages/LibraryPage/LibraryTable.tsx
similarity index 88%
rename from rsconcept/frontend/src/pages/LibraryPage/ViewLibrary.tsx
rename to rsconcept/frontend/src/pages/LibraryPage/LibraryTable.tsx
index 06fb79df..838a8da0 100644
--- a/rsconcept/frontend/src/pages/LibraryPage/ViewLibrary.tsx
+++ b/rsconcept/frontend/src/pages/LibraryPage/LibraryTable.tsx
@@ -7,7 +7,7 @@ import { urls } from '@/app/urls';
import { IconFolder } from '@/components/Icons';
import BadgeLocation from '@/components/info/BadgeLocation';
import { CProps } from '@/components/props';
-import DataTable, { createColumnHelper, VisibilityState } from '@/components/ui/DataTable';
+import DataTable, { createColumnHelper, IConditionalStyle, VisibilityState } from '@/components/ui/DataTable';
import FlexColumn from '@/components/ui/FlexColumn';
import TextURL from '@/components/ui/TextURL';
import { useConceptNavigation } from '@/context/NavigationContext';
@@ -18,18 +18,18 @@ import useWindowSize from '@/hooks/useWindowSize';
import { ILibraryItem, LibraryItemType } from '@/models/library';
import { storage } from '@/utils/constants';
-interface ViewLibraryProps {
+interface LibraryTableProps {
items: ILibraryItem[];
resetQuery: () => void;
}
const columnHelper = createColumnHelper
();
-function ViewLibrary({ items, resetQuery }: ViewLibraryProps) {
+function LibraryTable({ items, resetQuery }: LibraryTableProps) {
const router = useConceptNavigation();
const intl = useIntl();
const { getUserLabel } = useUsers();
- const { calculateHeight } = useConceptOptions();
+ const { calculateHeight, colors } = useConceptOptions();
const [itemsPerPage, setItemsPerPage] = useLocalStorage(storage.libraryPagination, 50);
function handleOpenItem(item: ILibraryItem, event: CProps.EventMouse) {
@@ -121,6 +121,18 @@ function ViewLibrary({ items, resetQuery }: ViewLibraryProps) {
const tableHeight = useMemo(() => calculateHeight('2.2rem'), [calculateHeight]);
+ const conditionalRowStyles = useMemo(
+ (): IConditionalStyle[] => [
+ {
+ when: (item: ILibraryItem) => item.item_type === LibraryItemType.OSS,
+ style: {
+ backgroundColor: colors.bgGreen50
+ }
+ }
+ ],
+ [colors]
+ );
+
return (
);
}
-export default ViewLibrary;
+export default LibraryTable;
diff --git a/rsconcept/frontend/src/pages/OssPage/OssTabs.tsx b/rsconcept/frontend/src/pages/OssPage/OssTabs.tsx
index 460b605c..f790f751 100644
--- a/rsconcept/frontend/src/pages/OssPage/OssTabs.tsx
+++ b/rsconcept/frontend/src/pages/OssPage/OssTabs.tsx
@@ -154,7 +154,7 @@ function ProcessError({ error }: { error: ErrorData }): React.ReactElement {
if (error.response.status === 404) {
return (
-
{`Схема с указанным идентификатором отсутствует`}
+
{`Операционная схема с указанным идентификатором отсутствует`}
diff --git a/rsconcept/frontend/src/pages/RSFormPage/RSTabs.tsx b/rsconcept/frontend/src/pages/RSFormPage/RSTabs.tsx
index 89c2c4b1..ef2a2162 100644
--- a/rsconcept/frontend/src/pages/RSFormPage/RSTabs.tsx
+++ b/rsconcept/frontend/src/pages/RSFormPage/RSTabs.tsx
@@ -291,7 +291,7 @@ function ProcessError({
if (error.response.status === 404) {
return (
-
{`Схема с указанным идентификатором ${isArchive ? 'и версией ' : ''}отсутствует`}
+
{`Концептуальная схема с указанным идентификатором ${isArchive ? 'и версией ' : ''}отсутствует`}
{isArchive ?
: null}
diff --git a/rsconcept/frontend/src/pages/RSFormPage/ViewConstituents/ViewConstituents.tsx b/rsconcept/frontend/src/pages/RSFormPage/ViewConstituents/ViewConstituents.tsx
index ee6282c4..f002448f 100644
--- a/rsconcept/frontend/src/pages/RSFormPage/ViewConstituents/ViewConstituents.tsx
+++ b/rsconcept/frontend/src/pages/RSFormPage/ViewConstituents/ViewConstituents.tsx
@@ -48,7 +48,7 @@ function ViewConstituents({ expression, schema, activeCst, isBottom, onOpenEdit
return (