eehitus-building-project-file-ui 0.13.3
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.
- package/README.md +41 -0
- package/dist/index.cjs.js +2 -0
- package/dist/index.cjs.js.LICENSE.txt +9 -0
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.LICENSE.txt +9 -0
- package/dist/index.umd.js +2 -0
- package/dist/index.umd.js.LICENSE.txt +9 -0
- package/dist/l10n/eehitus-building-project-file-ui-combined_translations_en.json +1 -0
- package/dist/l10n/eehitus-building-project-file-ui-combined_translations_et.json +1 -0
- package/dist/l10n/eehitus-building-project-file-ui-combined_translations_ru.json +1 -0
- package/dist/main.css +1 -0
- package/dist/static/media/ak.dfcba293e2e8c288237a85a4f823087c.svg +6 -0
- package/dist/static/media/arrow_down.6220e5a4885b3d8220b156ba0cfe2c07.svg +3 -0
- package/dist/static/media/arrow_up.46b80f22009e4099899b4477c1b0ac49.svg +3 -0
- package/dist/static/media/check_circle.dc750a2af8aca9eb433c166883bbe99c.svg +4 -0
- package/dist/static/media/delete.47af269c4d6503daf5024d1eb416b0cb.svg +3 -0
- package/dist/static/media/download.0334e60198d3d8eed8c72e8702b0e39b.svg +3 -0
- package/dist/static/media/edit.e7f8e441b583cb9380c3048cb9296b88.svg +3 -0
- package/dist/static/media/error_circle.2603215ea0cd250f60da46bf6d2f9e3b.svg +4 -0
- package/dist/static/media/error_filled.421a0ef396d8b16437eb535e9dcd5cd7.svg +3 -0
- package/dist/static/media/lock.fc819f1420d8194c412c6e9555d30ab7.svg +3 -0
- package/dist/static/media/upload.821f5e1a467c8021af41433aa0f0ef0e.svg +3 -0
- package/dist/static/media/warning_circle.1b7b67b715cb51e77763ab8b1a86b8e1.svg +4 -0
- package/dist/types/App.d.ts +3 -0
- package/dist/types/Reducer.d.ts +4 -0
- package/dist/types/__mocks__/fileMock.d.ts +2 -0
- package/dist/types/ehr-minimal-frame/App.d.ts +5 -0
- package/dist/types/ehr-minimal-frame/NavBar/CreatePortal.d.ts +6 -0
- package/dist/types/ehr-minimal-frame/NavBar/NavBar.d.ts +8 -0
- package/dist/types/ehr-minimal-frame/NavBar/NavBarWrapper.d.ts +15 -0
- package/dist/types/ehr-minimal-frame/NavBar/components/ActiveUser.d.ts +5 -0
- package/dist/types/ehr-minimal-frame/NavBar/components/NavBarRight.d.ts +2 -0
- package/dist/types/ehr-minimal-frame/Reducer.d.ts +16 -0
- package/dist/types/ehr-minimal-frame/index.d.ts +1 -0
- package/dist/types/ehr-minimal-frame/types/common-types.d.ts +7 -0
- package/dist/types/ehr-minimal-frame/util/url-constants.d.ts +8 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/indexExport.d.ts +3 -0
- package/dist/types/library/App.d.ts +28 -0
- package/dist/types/library/actions/BaseProjectActions.d.ts +29 -0
- package/dist/types/library/actions/CodeToTextActions.d.ts +20 -0
- package/dist/types/library/actions/EditFileActions.d.ts +50 -0
- package/dist/types/library/actions/FiltersActions.d.ts +34 -0
- package/dist/types/library/actions/PermissionsActions.d.ts +12 -0
- package/dist/types/library/actions/ProjectActions.d.ts +142 -0
- package/dist/types/library/actions/ReplaceFileActions.d.ts +33 -0
- package/dist/types/library/actions/RestrictFilesActions.d.ts +33 -0
- package/dist/types/library/actions/SignActions.d.ts +24 -0
- package/dist/types/library/actions/SignPopupActions.d.ts +53 -0
- package/dist/types/library/actions/UiActions.d.ts +43 -0
- package/dist/types/library/common/Phone.d.ts +13 -0
- package/dist/types/library/components/Alert/Alert.d.ts +10 -0
- package/dist/types/library/components/Alert/AlertContainer.d.ts +7 -0
- package/dist/types/library/components/Alert/index.d.ts +1 -0
- package/dist/types/library/components/CodeToTexts/GrupiMarksona/GrupiMarksona.d.ts +6 -0
- package/dist/types/library/components/CodeToTexts/GrupiMarksona/index.d.ts +1 -0
- package/dist/types/library/components/CodeToTexts/Grupp/Grupp.d.ts +7 -0
- package/dist/types/library/components/CodeToTexts/Grupp/index.d.ts +1 -0
- package/dist/types/library/components/CodeToTexts/ProjektiOsa/ProjektiOsa.d.ts +6 -0
- package/dist/types/library/components/CodeToTexts/ProjektiOsa/index.d.ts +1 -0
- package/dist/types/library/components/CodeToTexts/ProjektiStaadium/ProjektiStaadium.d.ts +6 -0
- package/dist/types/library/components/CodeToTexts/ProjektiStaadium/index.d.ts +1 -0
- package/dist/types/library/components/CodeToTexts/TemplateCodeToText/TemplateCodeToText.d.ts +20 -0
- package/dist/types/library/components/CodeToTexts/TemplateCodeToText/TemplateCodeToTextContainer.d.ts +14 -0
- package/dist/types/library/components/CodeToTexts/TemplateCodeToText/index.d.ts +1 -0
- package/dist/types/library/components/CodeToTexts/index.d.ts +4 -0
- package/dist/types/library/components/Filters/Filters.d.ts +19 -0
- package/dist/types/library/components/Filters/FiltersContainer.d.ts +7 -0
- package/dist/types/library/components/Filters/index.d.ts +1 -0
- package/dist/types/library/components/Input/Input.d.ts +7 -0
- package/dist/types/library/components/Input/index.d.ts +1 -0
- package/dist/types/library/components/Main/Main.d.ts +21 -0
- package/dist/types/library/components/Main/MainContainer.d.ts +9 -0
- package/dist/types/library/components/Main/index.d.ts +1 -0
- package/dist/types/library/components/PaginatedTable/PaginatedTable.d.ts +35 -0
- package/dist/types/library/components/PaginatedTable/PaginatedTableContainer.d.ts +7 -0
- package/dist/types/library/components/PaginatedTable/RestrictedMessage/RestrictedMessage.d.ts +9 -0
- package/dist/types/library/components/PaginatedTable/RestrictedMessage/index.d.ts +1 -0
- package/dist/types/library/components/PaginatedTable/SortableRow/SortableRow.d.ts +11 -0
- package/dist/types/library/components/PaginatedTable/SortableRow/index.d.ts +1 -0
- package/dist/types/library/components/PaginatedTable/index.d.ts +1 -0
- package/dist/types/library/components/PopupEditFile/PopupEditFile.d.ts +23 -0
- package/dist/types/library/components/PopupEditFile/PopupEditFileContainer.d.ts +7 -0
- package/dist/types/library/components/PopupEditFile/PopupEditFileError.d.ts +7 -0
- package/dist/types/library/components/PopupEditFile/index.d.ts +1 -0
- package/dist/types/library/components/PopupMakeConfidential/PopupMakeConfidential.d.ts +9 -0
- package/dist/types/library/components/PopupMakeConfidential/PopupMakeConfidentialContainer.d.ts +7 -0
- package/dist/types/library/components/PopupMakeConfidential/index.d.ts +1 -0
- package/dist/types/library/components/PopupModal/PopupModal.d.ts +20 -0
- package/dist/types/library/components/PopupModal/PopupModalContainer.d.ts +9 -0
- package/dist/types/library/components/PopupModal/index.d.ts +1 -0
- package/dist/types/library/components/PopupReleaseAccess/PopupReleaseAccess.d.ts +14 -0
- package/dist/types/library/components/PopupReleaseAccess/PopupReleaseAccessContainer.d.ts +7 -0
- package/dist/types/library/components/PopupReleaseAccess/index.d.ts +1 -0
- package/dist/types/library/components/PopupReplaceFile/PopupReplaceFile.d.ts +12 -0
- package/dist/types/library/components/PopupReplaceFile/PopupReplaceFileContainer.d.ts +7 -0
- package/dist/types/library/components/PopupReplaceFile/index.d.ts +1 -0
- package/dist/types/library/components/PopupRestrictAccess/PopupRestrictAccess.d.ts +14 -0
- package/dist/types/library/components/PopupRestrictAccess/PopupRestrictAccessContainer.d.ts +7 -0
- package/dist/types/library/components/PopupRestrictAccess/index.d.ts +1 -0
- package/dist/types/library/components/PopupSignDocumentsList/PopupSignDocumentsList.d.ts +20 -0
- package/dist/types/library/components/PopupSignDocumentsList/PopupSignDocumentsListContainer.d.ts +7 -0
- package/dist/types/library/components/PopupSignDocumentsList/index.d.ts +1 -0
- package/dist/types/library/components/ProjectCreator/ProjectCreator.d.ts +26 -0
- package/dist/types/library/components/ProjectCreator/ProjectCreatorContainer.d.ts +7 -0
- package/dist/types/library/components/ProjectCreator/index.d.ts +1 -0
- package/dist/types/library/components/ProjectCreator/steps/CreationLegacy.d.ts +11 -0
- package/dist/types/library/components/ProjectCreator/steps/CreationStep1.d.ts +14 -0
- package/dist/types/library/components/ProjectTypeFilter/ProjectTypeFilter.d.ts +10 -0
- package/dist/types/library/components/ProjectTypeFilter/ProjectTypeFilterContainer.d.ts +1 -0
- package/dist/types/library/components/ProjectTypeFilter/index.d.ts +1 -0
- package/dist/types/library/components/SignPopup/SignPopup.d.ts +18 -0
- package/dist/types/library/components/SignPopup/SignPopupContainer.d.ts +7 -0
- package/dist/types/library/components/SignPopup/index.d.ts +1 -0
- package/dist/types/library/components/SimpleTable/SimpleTable.d.ts +8 -0
- package/dist/types/library/components/SimpleTable/index.d.ts +1 -0
- package/dist/types/library/components/TableFooter/TableFooter.d.ts +36 -0
- package/dist/types/library/components/TableFooter/TableFooter.test.d.ts +1 -0
- package/dist/types/library/components/TableFooter/TableFooterContainer.d.ts +8 -0
- package/dist/types/library/components/TableFooter/index.d.ts +1 -0
- package/dist/types/library/components/helpers/generateId.d.ts +1 -0
- package/dist/types/library/components/helpers/printDate.d.ts +2 -0
- package/dist/types/library/components/utils/test-utils.d.ts +9 -0
- package/dist/types/library/configureStore.d.ts +17 -0
- package/dist/types/library/featureFlags.d.ts +7 -0
- package/dist/types/library/helpers/RegString.d.ts +3 -0
- package/dist/types/library/helpers/errorHandler.d.ts +3 -0
- package/dist/types/library/helpers/fileDownload.d.ts +2 -0
- package/dist/types/library/helpers/index.d.ts +3 -0
- package/dist/types/library/hooks.d.ts +17 -0
- package/dist/types/library/reducers/baseProjectReducer.d.ts +15 -0
- package/dist/types/library/reducers/codeToTextReducer.d.ts +14 -0
- package/dist/types/library/reducers/editFileReducer.d.ts +32 -0
- package/dist/types/library/reducers/filtersReducer.d.ts +12 -0
- package/dist/types/library/reducers/index.d.ts +51 -0
- package/dist/types/library/reducers/permissionsReducer.d.ts +16 -0
- package/dist/types/library/reducers/projectReducer.d.ts +64 -0
- package/dist/types/library/reducers/replaceFileReducer.d.ts +7 -0
- package/dist/types/library/reducers/restrictFilesReducer.d.ts +7 -0
- package/dist/types/library/reducers/signPopupReducer.d.ts +16 -0
- package/dist/types/library/reducers/signReducer.d.ts +13 -0
- package/dist/types/library/reducers/uiReducer.d.ts +35 -0
- package/dist/types/mocks/storeMocks.d.ts +25 -0
- package/dist/types/rbac-rules.d.ts +57 -0
- package/dist/types/setupProxy.d.ts +2 -0
- package/dist/types/setupTests.d.ts +1 -0
- package/package.json +219 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { AlertInput } from '../reducers/uiReducer';
|
|
2
|
+
export declare enum uiActionType {
|
|
3
|
+
TOGGLE_SIGN_REFUSAL_POPUP = "TOGGLE_SIGN_REFUSAL_POPUP",
|
|
4
|
+
TOGGLE_MAKE_CONFIDENTIAL_POPUP = "TOGGLE_MAKE_CONFIDENTIAL_POPUP",
|
|
5
|
+
TOGGLE_SIGN_DOCUMENT_LIST = "TOGGLE_SIGN_DOCUMENT_LIST",
|
|
6
|
+
TOGGLE_REPLACE_FILE_POPUP = "TOGGLE_REPLACE_FILE_POPUP",
|
|
7
|
+
ADD_ALERT = "ADD_ALERT",
|
|
8
|
+
REMOVE_ALERT = "REMOVE_ALERT",
|
|
9
|
+
TOGGLE_FILTERS = "TOGGLE_FILTERS",
|
|
10
|
+
CLOSE_ALL_POPUPS = "CLOSE_ALL_POPUPS"
|
|
11
|
+
}
|
|
12
|
+
interface ToggleAction {
|
|
13
|
+
type: uiActionType.TOGGLE_SIGN_DOCUMENT_LIST | uiActionType.TOGGLE_SIGN_REFUSAL_POPUP | uiActionType.TOGGLE_MAKE_CONFIDENTIAL_POPUP | uiActionType.TOGGLE_FILTERS | uiActionType.TOGGLE_REPLACE_FILE_POPUP;
|
|
14
|
+
payload: {
|
|
15
|
+
toggled: boolean;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export declare function toggleSignRefusalPopup(toggled: boolean): ToggleAction;
|
|
19
|
+
export declare function toggleMakeConfidentialPopup(toggled: boolean): ToggleAction;
|
|
20
|
+
export declare function toggleSignDocumentListPopup(toggled: boolean): ToggleAction;
|
|
21
|
+
interface AddAlert {
|
|
22
|
+
type: uiActionType.ADD_ALERT;
|
|
23
|
+
payload: {
|
|
24
|
+
alert: AlertInput;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export declare function addAlert(alert: AlertInput): AddAlert;
|
|
28
|
+
interface RemoveAlert {
|
|
29
|
+
type: uiActionType.REMOVE_ALERT;
|
|
30
|
+
payload: {
|
|
31
|
+
id: string;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export declare function removerAlert(id: string | undefined): RemoveAlert;
|
|
35
|
+
export declare function toggleFilters(toggled: boolean): ToggleAction;
|
|
36
|
+
export declare function toggleReplaceFilePopup(toggled: boolean): ToggleAction;
|
|
37
|
+
interface EmptyAction {
|
|
38
|
+
type: uiActionType.CLOSE_ALL_POPUPS;
|
|
39
|
+
payload: {};
|
|
40
|
+
}
|
|
41
|
+
export declare function closeAllPopups(): EmptyAction;
|
|
42
|
+
export type UiActions = ToggleAction | AddAlert | RemoveAlert | EmptyAction;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const isPhoneNrCheckValid: (text: any) => boolean;
|
|
3
|
+
interface PhoneProps {
|
|
4
|
+
value: string;
|
|
5
|
+
placeholder: string;
|
|
6
|
+
onChange: any;
|
|
7
|
+
onBlur: any;
|
|
8
|
+
locale: string;
|
|
9
|
+
useValidation: boolean;
|
|
10
|
+
id: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const Phone: (props: PhoneProps) => JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Alert } from '../../reducers/uiReducer';
|
|
3
|
+
export interface AlertState {
|
|
4
|
+
alerts: Alert[];
|
|
5
|
+
}
|
|
6
|
+
export interface AlertDispatch {
|
|
7
|
+
removeAlert: (id: string | undefined) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const AlertList: React.FC<AlertState & AlertDispatch>;
|
|
10
|
+
export default AlertList;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AlertDispatch, AlertState } from './Alert';
|
|
3
|
+
declare const _default: import("react-redux").ConnectedComponent<import("react").FC<AlertState & AlertDispatch>, {
|
|
4
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
5
|
+
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
6
|
+
}>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './AlertContainer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './GrupiMarksona';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Grupp';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ProjektiOsa';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ProjektiStaadium';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CodeTextDTO } from '../../../reducers/codeToTextReducer';
|
|
3
|
+
export interface TemplateCodeToTextState {
|
|
4
|
+
codes: CodeTextDTO[];
|
|
5
|
+
code: string | null | undefined;
|
|
6
|
+
}
|
|
7
|
+
export interface TemplateCodeToTextProps {
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface TemplateCodeToTextDispatch {
|
|
11
|
+
}
|
|
12
|
+
export declare function mapCodeToText(codes: CodeTextDTO[], code: string | null | undefined): string;
|
|
13
|
+
/**
|
|
14
|
+
* Returns the parent code of a specific code, if no parent exist it returns the code itself.
|
|
15
|
+
* @param codes
|
|
16
|
+
* @param code
|
|
17
|
+
*/
|
|
18
|
+
export declare function getParentCode(codes: CodeTextDTO[], code: string | null | undefined): string | null | undefined;
|
|
19
|
+
declare const TemplateCodeToText: React.FC<TemplateCodeToTextState & TemplateCodeToTextProps & TemplateCodeToTextDispatch>;
|
|
20
|
+
export default TemplateCodeToText;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TemplateCodeToTextDispatch, TemplateCodeToTextState } from './TemplateCodeToText';
|
|
3
|
+
export interface TemplateCodeToTextProps {
|
|
4
|
+
type: string;
|
|
5
|
+
code: string | undefined | null;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import("react-redux").ConnectedComponent<import("react").FC<TemplateCodeToTextState & import("./TemplateCodeToText").TemplateCodeToTextProps & TemplateCodeToTextDispatch>, {
|
|
8
|
+
className?: string | undefined;
|
|
9
|
+
type: string;
|
|
10
|
+
code: string | null | undefined;
|
|
11
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
12
|
+
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
13
|
+
}>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './TemplateCodeToTextContainer';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FileFilter, FileFilterValues } from '../../reducers/filtersReducer';
|
|
3
|
+
import { BuildingFileKeys } from '../../reducers/projectReducer';
|
|
4
|
+
import { CodeTextDTO } from '../../reducers/codeToTextReducer';
|
|
5
|
+
export interface FiltersState {
|
|
6
|
+
activeFilters: readonly FileFilter[];
|
|
7
|
+
possibleValues: FileFilterValues;
|
|
8
|
+
projektiOsa: CodeTextDTO[];
|
|
9
|
+
projektiStaadium: CodeTextDTO[];
|
|
10
|
+
grupp: CodeTextDTO[];
|
|
11
|
+
}
|
|
12
|
+
export interface FiltersDispatch {
|
|
13
|
+
addFilter: (filter: FileFilter) => void;
|
|
14
|
+
removeFilter: (filter: FileFilter) => void;
|
|
15
|
+
setFilter: (filter: FileFilter) => void;
|
|
16
|
+
clearFilter: (selector: BuildingFileKeys) => void;
|
|
17
|
+
}
|
|
18
|
+
declare const Filters: React.FC<FiltersState & FiltersDispatch>;
|
|
19
|
+
export default Filters;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FiltersDispatch, FiltersState } from './Filters';
|
|
3
|
+
declare const _default: import("react-redux").ConnectedComponent<import("react").FC<FiltersState & FiltersDispatch>, {
|
|
4
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
5
|
+
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
6
|
+
}>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './FiltersContainer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Input';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GlobalPermissions } from '../../reducers/permissionsReducer';
|
|
3
|
+
import { BuildingFile } from '../../reducers/projectReducer';
|
|
4
|
+
import { ButtonConfig } from '../../App';
|
|
5
|
+
export interface MainState {
|
|
6
|
+
applicationId: string | undefined;
|
|
7
|
+
projectCreation: boolean;
|
|
8
|
+
projectFiles: readonly BuildingFile[];
|
|
9
|
+
isCurrentProjectLoading: boolean;
|
|
10
|
+
permissions: GlobalPermissions;
|
|
11
|
+
}
|
|
12
|
+
export interface MainProps {
|
|
13
|
+
onFilesChange?: (files: readonly BuildingFile[]) => void;
|
|
14
|
+
buttonConfig?: [ButtonConfig];
|
|
15
|
+
}
|
|
16
|
+
export interface MainDispatch {
|
|
17
|
+
loadCurrentProject: () => void;
|
|
18
|
+
loadClassifiers: () => void;
|
|
19
|
+
}
|
|
20
|
+
declare const Main: React.FC<MainState & MainProps & MainDispatch>;
|
|
21
|
+
export default Main;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MainDispatch, MainState } from './Main';
|
|
3
|
+
declare const _default: import("react-redux").ConnectedComponent<import("react").FC<MainState & import("./Main").MainProps & MainDispatch>, {
|
|
4
|
+
buttonConfig?: [import("../../App").ButtonConfig] | undefined;
|
|
5
|
+
onFilesChange?: ((files: readonly import("../../reducers/projectReducer").BuildingFile[]) => void) | undefined;
|
|
6
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
7
|
+
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
8
|
+
}>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './MainContainer';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BuildingFile } from '../../reducers/projectReducer';
|
|
3
|
+
import { FileFilter } from '../../reducers/filtersReducer';
|
|
4
|
+
import { CodeTextDTO } from '../../reducers/codeToTextReducer';
|
|
5
|
+
import { GlobalPermissions } from '../../reducers/permissionsReducer';
|
|
6
|
+
export interface PaginatedTableState {
|
|
7
|
+
files: readonly BuildingFile[];
|
|
8
|
+
activeFilters: readonly FileFilter[];
|
|
9
|
+
openPopoverId: string | undefined;
|
|
10
|
+
applicationId: string | undefined;
|
|
11
|
+
isAudit: boolean;
|
|
12
|
+
projektiOsa: CodeTextDTO[];
|
|
13
|
+
selectedFilesIds: string[];
|
|
14
|
+
permissions: GlobalPermissions;
|
|
15
|
+
isProjectContainerSignedByAnyone: boolean;
|
|
16
|
+
isBlockingRequestInProgress: boolean;
|
|
17
|
+
isLegacy: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface PaginatedTableDispatch {
|
|
20
|
+
loadFiles: () => void;
|
|
21
|
+
selectFile: (id: string) => void;
|
|
22
|
+
deselectFile: (id: string) => void;
|
|
23
|
+
setEditFile: (file: BuildingFile) => void;
|
|
24
|
+
requestDeleteFile: (ids: string[]) => void;
|
|
25
|
+
toggleFilePopover: (id: string) => void;
|
|
26
|
+
toggleRestrictAccessPopupWith: (fileIds: string[]) => void;
|
|
27
|
+
toggleReleaseAccessPopupWith: (fileIds: string[]) => void;
|
|
28
|
+
downloadFiles: (file: BuildingFile[]) => void;
|
|
29
|
+
onReplaceFile: (id: string, name: string) => void;
|
|
30
|
+
selectAllFiles: () => void;
|
|
31
|
+
clearAllFiles: () => void;
|
|
32
|
+
unlockFile: (projektiOsa: string) => void;
|
|
33
|
+
}
|
|
34
|
+
declare const PaginatedTable: React.FC<PaginatedTableState & PaginatedTableDispatch>;
|
|
35
|
+
export default PaginatedTable;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PaginatedTableDispatch, PaginatedTableState } from './PaginatedTable';
|
|
3
|
+
declare const _default: import("react-redux").ConnectedComponent<import("react").FC<PaginatedTableState & PaginatedTableDispatch>, {
|
|
4
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
5
|
+
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
6
|
+
}>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BuildingFile } from '../../../reducers/projectReducer';
|
|
3
|
+
export interface RestrictedMessageProps {
|
|
4
|
+
file: BuildingFile;
|
|
5
|
+
className?: string;
|
|
6
|
+
titleClassName?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const RestrictedMessage: React.FC<RestrictedMessageProps>;
|
|
9
|
+
export default RestrictedMessage;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './RestrictedMessage';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SortableRowProps {
|
|
3
|
+
title: string;
|
|
4
|
+
index: number | string;
|
|
5
|
+
isAccenting: boolean;
|
|
6
|
+
isDescending: boolean;
|
|
7
|
+
onAccenting: (index: number | string) => void;
|
|
8
|
+
onDescending: (index: number | string) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const SortableRow: React.FC<SortableRowProps>;
|
|
11
|
+
export default SortableRow;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './SortableRow';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './PaginatedTableContainer';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { EditBuildingFile, EditError, EditErrorInput } from '../../reducers/editFileReducer';
|
|
3
|
+
import { CodeTextDTO } from '../../reducers/codeToTextReducer';
|
|
4
|
+
export interface PopupEditFileProps {
|
|
5
|
+
file: EditBuildingFile | undefined;
|
|
6
|
+
errors: EditError[];
|
|
7
|
+
grupiMarksona: CodeTextDTO[];
|
|
8
|
+
grupp: CodeTextDTO[];
|
|
9
|
+
projektiOsa: CodeTextDTO[];
|
|
10
|
+
projektiStaadium: CodeTextDTO[];
|
|
11
|
+
ehitised: CodeTextDTO[];
|
|
12
|
+
responsePending: boolean;
|
|
13
|
+
isAudit: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface PopupEditFileDispatch {
|
|
16
|
+
setFile: (file: EditBuildingFile) => void;
|
|
17
|
+
addError: (error: EditErrorInput) => void;
|
|
18
|
+
clearErrors: () => void;
|
|
19
|
+
clearFile: () => void;
|
|
20
|
+
sendFile: () => void;
|
|
21
|
+
}
|
|
22
|
+
declare const PopupEditFile: React.FC<PopupEditFileProps & PopupEditFileDispatch>;
|
|
23
|
+
export default PopupEditFile;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PopupEditFileDispatch, PopupEditFileProps } from './PopupEditFile';
|
|
3
|
+
declare const _default: import("react-redux").ConnectedComponent<import("react").FC<PopupEditFileProps & PopupEditFileDispatch>, {
|
|
4
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
5
|
+
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
6
|
+
}>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { EditError } from '../../reducers/editFileReducer';
|
|
3
|
+
export type PopupEditFileErrorProps = {
|
|
4
|
+
error: EditError;
|
|
5
|
+
};
|
|
6
|
+
declare const PopupEditFileError: ({ error }: PopupEditFileErrorProps) => JSX.Element;
|
|
7
|
+
export default PopupEditFileError;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './PopupEditFileContainer';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface PopupMakeConfidentialState {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface PopupMakeConfidentialDispatch {
|
|
6
|
+
togglePopup: (b: boolean) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const PopupMakeConfidential: React.FC<PopupMakeConfidentialState & PopupMakeConfidentialDispatch>;
|
|
9
|
+
export default PopupMakeConfidential;
|
package/dist/types/library/components/PopupMakeConfidential/PopupMakeConfidentialContainer.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PopupMakeConfidentialDispatch, PopupMakeConfidentialState } from './PopupMakeConfidential';
|
|
3
|
+
declare const _default: import("react-redux").ConnectedComponent<import("react").FC<PopupMakeConfidentialState & PopupMakeConfidentialDispatch>, {
|
|
4
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
5
|
+
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
6
|
+
}>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './PopupMakeConfidentialContainer';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
import { GlobalPermissions } from '../../reducers/permissionsReducer';
|
|
3
|
+
export interface PopupState {
|
|
4
|
+
isLegacyProject: boolean;
|
|
5
|
+
permissions: GlobalPermissions;
|
|
6
|
+
}
|
|
7
|
+
export interface PopupProps extends React.ComponentProps<any> {
|
|
8
|
+
title: string | JSX.Element;
|
|
9
|
+
compound?: boolean;
|
|
10
|
+
lockAccept?: boolean;
|
|
11
|
+
onAccept?: () => void;
|
|
12
|
+
onUnlock?: () => void;
|
|
13
|
+
onSecondary?: () => void;
|
|
14
|
+
onCancel: () => void;
|
|
15
|
+
actionsDisabled?: boolean;
|
|
16
|
+
disableAccept?: boolean;
|
|
17
|
+
css?: CSSProperties;
|
|
18
|
+
}
|
|
19
|
+
declare const PopupModal: React.FC<PopupState & PopupProps>;
|
|
20
|
+
export default PopupModal;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PopupState } from './PopupModal';
|
|
3
|
+
declare const _default: import("react-redux").ConnectedComponent<import("react").FC<PopupState & import("./PopupModal").PopupProps>, {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
[x: number]: any;
|
|
6
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
7
|
+
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
8
|
+
}>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './PopupModalContainer';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BuildingFile } from '../../reducers/projectReducer';
|
|
2
|
+
import { GlobalPermissions } from '../../reducers/permissionsReducer';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export interface PopupReleaseAccessState {
|
|
5
|
+
files: BuildingFile[] | undefined;
|
|
6
|
+
permissions: GlobalPermissions;
|
|
7
|
+
requestsInProgress: number;
|
|
8
|
+
}
|
|
9
|
+
export interface PopupReleaseAccessDispatch {
|
|
10
|
+
closePopup: () => void;
|
|
11
|
+
requestReleaseFiles: (files: BuildingFile[]) => void;
|
|
12
|
+
}
|
|
13
|
+
declare const PopupReleaseAccess: React.FC<PopupReleaseAccessState & PopupReleaseAccessDispatch>;
|
|
14
|
+
export default PopupReleaseAccess;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PopupReleaseAccessDispatch, PopupReleaseAccessState } from './PopupReleaseAccess';
|
|
3
|
+
declare const _default: import("react-redux").ConnectedComponent<import("react").FC<PopupReleaseAccessState & PopupReleaseAccessDispatch>, {
|
|
4
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
5
|
+
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
6
|
+
}>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './PopupReleaseAccessContainer';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface PopupReplaceFileState {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
name: string;
|
|
5
|
+
uploadInProgress: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface PopupReplaceFileDispatch {
|
|
8
|
+
togglePopup: (b: boolean) => void;
|
|
9
|
+
replaceFile: (file: File) => void;
|
|
10
|
+
}
|
|
11
|
+
declare const PopupReplaceFile: React.FC<PopupReplaceFileState & PopupReplaceFileDispatch>;
|
|
12
|
+
export default PopupReplaceFile;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PopupReplaceFileDispatch, PopupReplaceFileState } from './PopupReplaceFile';
|
|
3
|
+
declare const _default: import("react-redux").ConnectedComponent<import("react").FC<PopupReplaceFileState & PopupReplaceFileDispatch>, {
|
|
4
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
5
|
+
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
6
|
+
}>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './PopupReplaceFileContainer';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GlobalPermissions } from '../../reducers/permissionsReducer';
|
|
3
|
+
import { BuildingFile } from '../../reducers/projectReducer';
|
|
4
|
+
export interface PopupRestrictAccessState {
|
|
5
|
+
files: BuildingFile[] | undefined;
|
|
6
|
+
permissions: GlobalPermissions;
|
|
7
|
+
requestsInProgress: number;
|
|
8
|
+
}
|
|
9
|
+
export interface PopupRestrictAccessDispatch {
|
|
10
|
+
closePopup: () => void;
|
|
11
|
+
requestRestrictFiles: (files: BuildingFile[], basis: string, description: string, endDateString: string) => void;
|
|
12
|
+
}
|
|
13
|
+
declare const PopupRestrictAccess: React.FC<PopupRestrictAccessState & PopupRestrictAccessDispatch>;
|
|
14
|
+
export default PopupRestrictAccess;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PopupRestrictAccessDispatch, PopupRestrictAccessState } from './PopupRestrictAccess';
|
|
3
|
+
declare const _default: import("react-redux").ConnectedComponent<import("react").FC<PopupRestrictAccessState & PopupRestrictAccessDispatch>, {
|
|
4
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
5
|
+
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
6
|
+
}>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './PopupRestrictAccessContainer';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AlertInput } from '../../reducers/uiReducer';
|
|
3
|
+
import { SignState } from '../../reducers/signReducer';
|
|
4
|
+
import { GlobalPermissions } from '../../reducers/permissionsReducer';
|
|
5
|
+
export interface PopupSignDocumentsListState {
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
signState: SignState;
|
|
8
|
+
projectId: string | undefined;
|
|
9
|
+
permissions: GlobalPermissions;
|
|
10
|
+
isBlockingRequestInProgress: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface PopupSignDocumentsListDispatch {
|
|
13
|
+
togglePopup: (b: boolean) => void;
|
|
14
|
+
addAlert: (alert: AlertInput) => void;
|
|
15
|
+
enableSignPopup: (revision: string, projektiOsa: string) => void;
|
|
16
|
+
unlockContainer: (then: () => void) => void;
|
|
17
|
+
downloadProjektiOsaContainer: (projektiOsa?: string) => void;
|
|
18
|
+
}
|
|
19
|
+
declare const PopupSignDocumentsList: React.FC<PopupSignDocumentsListState & PopupSignDocumentsListDispatch>;
|
|
20
|
+
export default PopupSignDocumentsList;
|
package/dist/types/library/components/PopupSignDocumentsList/PopupSignDocumentsListContainer.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PopupSignDocumentsListDispatch, PopupSignDocumentsListState } from './PopupSignDocumentsList';
|
|
3
|
+
declare const _default: import("react-redux").ConnectedComponent<import("react").FC<PopupSignDocumentsListState & PopupSignDocumentsListDispatch>, {
|
|
4
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
5
|
+
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
6
|
+
}>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './PopupSignDocumentsListContainer';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AlertInput } from '../../reducers/uiReducer';
|
|
3
|
+
import { ProjectCreationType } from '../../reducers/projectReducer';
|
|
4
|
+
import { BaseProjectInfo } from '../../reducers/baseProjectReducer';
|
|
5
|
+
export interface ProjectCreatorState {
|
|
6
|
+
applicationId: string | undefined;
|
|
7
|
+
step: number;
|
|
8
|
+
type: ProjectCreationType | undefined;
|
|
9
|
+
requestsInProgress: number;
|
|
10
|
+
canCreateNewVersion: boolean;
|
|
11
|
+
baseProjectInfo: BaseProjectInfo | null;
|
|
12
|
+
canAddAudit: boolean;
|
|
13
|
+
canReferenceBaseProject: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface ProjectCreatorDispatch {
|
|
16
|
+
endProjectCreation: () => void;
|
|
17
|
+
addAlert: (alert: AlertInput) => void;
|
|
18
|
+
sendCreateProject: () => void;
|
|
19
|
+
sendCreateAudit: () => void;
|
|
20
|
+
setProjectCreationType: (type: ProjectCreationType | undefined) => void;
|
|
21
|
+
uploadContainer: (container: File, then?: () => void) => void;
|
|
22
|
+
loadCreateProjectOptions: () => void;
|
|
23
|
+
referenceBaseProject: () => Promise<unknown>;
|
|
24
|
+
}
|
|
25
|
+
declare const ProjectCreator: React.FC<ProjectCreatorState & ProjectCreatorDispatch>;
|
|
26
|
+
export default ProjectCreator;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ProjectCreatorDispatch, ProjectCreatorState } from './ProjectCreator';
|
|
3
|
+
declare const _default: import("react-redux").ConnectedComponent<import("react").FC<ProjectCreatorState & ProjectCreatorDispatch>, {
|
|
4
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
5
|
+
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
6
|
+
}>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ProjectCreatorContainer';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface CreationLegacyProps {
|
|
3
|
+
navigateForward: () => void;
|
|
4
|
+
navigateBackward: () => void;
|
|
5
|
+
allowedExtensions: string[];
|
|
6
|
+
uploadFile: (file: File, then: () => void) => void;
|
|
7
|
+
uploadInProgress: boolean;
|
|
8
|
+
isDisabled: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const CreationLegacy: React.FC<CreationLegacyProps>;
|
|
11
|
+
export default CreationLegacy;
|