58e4d3c868
Убраны редактируемые поля «Должность» и «Подразделение». Должность и подразделение подтягиваются из Employee/ByEmail и показываются таблицей «Организация · Должность · Подразделение» — своё подразделение на каждую организацию. В скалярные колонки Position/Department/DepartmentId пишется основная (первая) запись — их читают документ и ЭДО. Должность больше не обязательное поле формы. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
61 lines
2.9 KiB
TypeScript
61 lines
2.9 KiB
TypeScript
// Единая точка импорта примитивов формы.
|
|
// Перенесённые компоненты берём из общего пакета @tnsu/ui-kit; остальные
|
|
// (бизнес-логика/SharePoint/отложенные) — пока локальные. Все формы импортят
|
|
// отсюда, поэтому переключение источника не требует правок в самих формах.
|
|
|
|
// --- Из общего пакета @tnsu/ui-kit ---
|
|
export {
|
|
Button,
|
|
Alert,
|
|
FormCard,
|
|
FormGrid,
|
|
TextInput,
|
|
PhoneInput,
|
|
MoneyInput,
|
|
TextArea,
|
|
Select,
|
|
Toggle,
|
|
Checkbox,
|
|
CollapseSection,
|
|
FormActions,
|
|
FileDropzone,
|
|
FormModeProvider,
|
|
useFormReadOnly,
|
|
Icon,
|
|
ConfirmHost,
|
|
confirmModal,
|
|
RequestNumber,
|
|
PrintButton
|
|
} from '@tnsu/ui-kit';
|
|
export type { ISelectOption, IConfirmOptions } from '@tnsu/ui-kit';
|
|
|
|
// --- Пока локальные (не перенесены: SP/бизнес/отложенные) ---
|
|
// FormField — обёртка над ui-kit с подсветкой правок согласующего (журнал в
|
|
// FieldChangesProvider); без журнала ведёт себя как FormField из ui-kit.
|
|
export { FormField } from './FormField/FormField';
|
|
// AttachmentList — обёртка над ui-kit с кнопкой «Скачать все» (без архива, файлы по очереди).
|
|
export { AttachmentList } from './AttachmentList/AttachmentList';
|
|
export { FieldChangesProvider } from './FieldChanges/FieldChangesContext';
|
|
export { FieldChangesBanner } from './FieldChanges/FieldChangesBanner';
|
|
export { MultiChoiceField } from './MultiChoiceField/MultiChoiceField';
|
|
export { ItemsTable } from './ItemsTable/ItemsTable';
|
|
export type { IItemsTableProps } from './ItemsTable/ItemsTable';
|
|
export type { ILineItem } from './ItemsTable/ILineItem';
|
|
export { EMPTY_LINE_ITEM } from './ItemsTable/ILineItem';
|
|
export { parseExcelRows } from './ItemsTable/parseExcelRows';
|
|
export { PeopleField } from './PeopleField/PeopleField';
|
|
export { PeopleFieldMulti } from './PeopleField/PeopleFieldMulti';
|
|
export { PeopleTextField } from './PeopleField/PeopleTextField';
|
|
export { OrganizationField } from './OrganizationField/OrganizationField';
|
|
export { OrganizationTable } from './OrganizationField/OrganizationTable';
|
|
export { PrintSplitButton } from './PrintSplitButton/PrintSplitButton';
|
|
export { OrgLetterhead } from './OrgLetterhead/OrgLetterhead';
|
|
export { LinkField } from './LinkField/LinkField';
|
|
export { ErrorOverlay } from './ErrorOverlay/ErrorOverlay';
|
|
export { SubmitActions } from './SubmitActions/SubmitActions';
|
|
export { getDraftDeleteHandler } from './SubmitActions/getDraftDeleteHandler';
|
|
export { InitiatorLine } from './InitiatorLine/InitiatorLine';
|
|
export type { IInitiatorLineProps } from './InitiatorLine/InitiatorLine';
|
|
export { useRequestSubmit } from './useRequestSubmit';
|
|
export type { IRequestSubmit, SubmitKind } from './useRequestSubmit';
|