From cc79fffd34e540e1653b215125b93dd2f1b5fce7 Mon Sep 17 00:00:00 2001 From: IRBorisov <8611739+IRBorisov@users.noreply.github.com> Date: Mon, 6 Nov 2023 18:03:23 +0300 Subject: [PATCH] Refactor data tables and implement argument selection --- .../src/components/Common/MiniButton.tsx | 5 +- .../src/components/Common/TextInput.tsx | 4 +- .../frontend/src/components/RSInput/index.tsx | 4 +- .../components/Shared/ConstituentaBadge.tsx | 40 +++++ .../components/Shared/ConstituentaPicker.tsx | 108 ++++++++++++ .../DlgConstituentaTemplate/ArgumentsTab.tsx | 157 +++++++++++++++++- .../DlgConstituentaTemplate/TemplateTab.tsx | 102 ++---------- .../dialogs/DlgConstituentaTemplate/index.tsx | 17 +- .../src/dialogs/DlgEditReference/index.tsx | 109 ++---------- rsconcept/frontend/src/models/rsform.ts | 6 +- rsconcept/frontend/src/models/rslang.ts | 3 +- .../src/pages/RSFormPage/EditorItems.tsx | 36 +--- .../elements/ViewSideConstituents.tsx | 36 +--- rsconcept/frontend/src/utils/constants.ts | 1 + 14 files changed, 365 insertions(+), 263 deletions(-) create mode 100644 rsconcept/frontend/src/components/Shared/ConstituentaBadge.tsx create mode 100644 rsconcept/frontend/src/components/Shared/ConstituentaPicker.tsx diff --git a/rsconcept/frontend/src/components/Common/MiniButton.tsx b/rsconcept/frontend/src/components/Common/MiniButton.tsx index aaf09909..79983ca3 100644 --- a/rsconcept/frontend/src/components/Common/MiniButton.tsx +++ b/rsconcept/frontend/src/components/Common/MiniButton.tsx @@ -7,14 +7,15 @@ extends Omit, 'className' | 'title } function MiniButton({ - icon, tooltip, noHover, tabIndex, dimensions, + icon, tooltip, noHover, tabIndex, + dimensions='w-fit h-fit', ...props }: MiniButtonProps) { return (