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.
Files changed (147) hide show
  1. package/README.md +41 -0
  2. package/dist/index.cjs.js +2 -0
  3. package/dist/index.cjs.js.LICENSE.txt +9 -0
  4. package/dist/index.esm.js +2 -0
  5. package/dist/index.esm.js.LICENSE.txt +9 -0
  6. package/dist/index.umd.js +2 -0
  7. package/dist/index.umd.js.LICENSE.txt +9 -0
  8. package/dist/l10n/eehitus-building-project-file-ui-combined_translations_en.json +1 -0
  9. package/dist/l10n/eehitus-building-project-file-ui-combined_translations_et.json +1 -0
  10. package/dist/l10n/eehitus-building-project-file-ui-combined_translations_ru.json +1 -0
  11. package/dist/main.css +1 -0
  12. package/dist/static/media/ak.dfcba293e2e8c288237a85a4f823087c.svg +6 -0
  13. package/dist/static/media/arrow_down.6220e5a4885b3d8220b156ba0cfe2c07.svg +3 -0
  14. package/dist/static/media/arrow_up.46b80f22009e4099899b4477c1b0ac49.svg +3 -0
  15. package/dist/static/media/check_circle.dc750a2af8aca9eb433c166883bbe99c.svg +4 -0
  16. package/dist/static/media/delete.47af269c4d6503daf5024d1eb416b0cb.svg +3 -0
  17. package/dist/static/media/download.0334e60198d3d8eed8c72e8702b0e39b.svg +3 -0
  18. package/dist/static/media/edit.e7f8e441b583cb9380c3048cb9296b88.svg +3 -0
  19. package/dist/static/media/error_circle.2603215ea0cd250f60da46bf6d2f9e3b.svg +4 -0
  20. package/dist/static/media/error_filled.421a0ef396d8b16437eb535e9dcd5cd7.svg +3 -0
  21. package/dist/static/media/lock.fc819f1420d8194c412c6e9555d30ab7.svg +3 -0
  22. package/dist/static/media/upload.821f5e1a467c8021af41433aa0f0ef0e.svg +3 -0
  23. package/dist/static/media/warning_circle.1b7b67b715cb51e77763ab8b1a86b8e1.svg +4 -0
  24. package/dist/types/App.d.ts +3 -0
  25. package/dist/types/Reducer.d.ts +4 -0
  26. package/dist/types/__mocks__/fileMock.d.ts +2 -0
  27. package/dist/types/ehr-minimal-frame/App.d.ts +5 -0
  28. package/dist/types/ehr-minimal-frame/NavBar/CreatePortal.d.ts +6 -0
  29. package/dist/types/ehr-minimal-frame/NavBar/NavBar.d.ts +8 -0
  30. package/dist/types/ehr-minimal-frame/NavBar/NavBarWrapper.d.ts +15 -0
  31. package/dist/types/ehr-minimal-frame/NavBar/components/ActiveUser.d.ts +5 -0
  32. package/dist/types/ehr-minimal-frame/NavBar/components/NavBarRight.d.ts +2 -0
  33. package/dist/types/ehr-minimal-frame/Reducer.d.ts +16 -0
  34. package/dist/types/ehr-minimal-frame/index.d.ts +1 -0
  35. package/dist/types/ehr-minimal-frame/types/common-types.d.ts +7 -0
  36. package/dist/types/ehr-minimal-frame/util/url-constants.d.ts +8 -0
  37. package/dist/types/index.d.ts +1 -0
  38. package/dist/types/indexExport.d.ts +3 -0
  39. package/dist/types/library/App.d.ts +28 -0
  40. package/dist/types/library/actions/BaseProjectActions.d.ts +29 -0
  41. package/dist/types/library/actions/CodeToTextActions.d.ts +20 -0
  42. package/dist/types/library/actions/EditFileActions.d.ts +50 -0
  43. package/dist/types/library/actions/FiltersActions.d.ts +34 -0
  44. package/dist/types/library/actions/PermissionsActions.d.ts +12 -0
  45. package/dist/types/library/actions/ProjectActions.d.ts +142 -0
  46. package/dist/types/library/actions/ReplaceFileActions.d.ts +33 -0
  47. package/dist/types/library/actions/RestrictFilesActions.d.ts +33 -0
  48. package/dist/types/library/actions/SignActions.d.ts +24 -0
  49. package/dist/types/library/actions/SignPopupActions.d.ts +53 -0
  50. package/dist/types/library/actions/UiActions.d.ts +43 -0
  51. package/dist/types/library/common/Phone.d.ts +13 -0
  52. package/dist/types/library/components/Alert/Alert.d.ts +10 -0
  53. package/dist/types/library/components/Alert/AlertContainer.d.ts +7 -0
  54. package/dist/types/library/components/Alert/index.d.ts +1 -0
  55. package/dist/types/library/components/CodeToTexts/GrupiMarksona/GrupiMarksona.d.ts +6 -0
  56. package/dist/types/library/components/CodeToTexts/GrupiMarksona/index.d.ts +1 -0
  57. package/dist/types/library/components/CodeToTexts/Grupp/Grupp.d.ts +7 -0
  58. package/dist/types/library/components/CodeToTexts/Grupp/index.d.ts +1 -0
  59. package/dist/types/library/components/CodeToTexts/ProjektiOsa/ProjektiOsa.d.ts +6 -0
  60. package/dist/types/library/components/CodeToTexts/ProjektiOsa/index.d.ts +1 -0
  61. package/dist/types/library/components/CodeToTexts/ProjektiStaadium/ProjektiStaadium.d.ts +6 -0
  62. package/dist/types/library/components/CodeToTexts/ProjektiStaadium/index.d.ts +1 -0
  63. package/dist/types/library/components/CodeToTexts/TemplateCodeToText/TemplateCodeToText.d.ts +20 -0
  64. package/dist/types/library/components/CodeToTexts/TemplateCodeToText/TemplateCodeToTextContainer.d.ts +14 -0
  65. package/dist/types/library/components/CodeToTexts/TemplateCodeToText/index.d.ts +1 -0
  66. package/dist/types/library/components/CodeToTexts/index.d.ts +4 -0
  67. package/dist/types/library/components/Filters/Filters.d.ts +19 -0
  68. package/dist/types/library/components/Filters/FiltersContainer.d.ts +7 -0
  69. package/dist/types/library/components/Filters/index.d.ts +1 -0
  70. package/dist/types/library/components/Input/Input.d.ts +7 -0
  71. package/dist/types/library/components/Input/index.d.ts +1 -0
  72. package/dist/types/library/components/Main/Main.d.ts +21 -0
  73. package/dist/types/library/components/Main/MainContainer.d.ts +9 -0
  74. package/dist/types/library/components/Main/index.d.ts +1 -0
  75. package/dist/types/library/components/PaginatedTable/PaginatedTable.d.ts +35 -0
  76. package/dist/types/library/components/PaginatedTable/PaginatedTableContainer.d.ts +7 -0
  77. package/dist/types/library/components/PaginatedTable/RestrictedMessage/RestrictedMessage.d.ts +9 -0
  78. package/dist/types/library/components/PaginatedTable/RestrictedMessage/index.d.ts +1 -0
  79. package/dist/types/library/components/PaginatedTable/SortableRow/SortableRow.d.ts +11 -0
  80. package/dist/types/library/components/PaginatedTable/SortableRow/index.d.ts +1 -0
  81. package/dist/types/library/components/PaginatedTable/index.d.ts +1 -0
  82. package/dist/types/library/components/PopupEditFile/PopupEditFile.d.ts +23 -0
  83. package/dist/types/library/components/PopupEditFile/PopupEditFileContainer.d.ts +7 -0
  84. package/dist/types/library/components/PopupEditFile/PopupEditFileError.d.ts +7 -0
  85. package/dist/types/library/components/PopupEditFile/index.d.ts +1 -0
  86. package/dist/types/library/components/PopupMakeConfidential/PopupMakeConfidential.d.ts +9 -0
  87. package/dist/types/library/components/PopupMakeConfidential/PopupMakeConfidentialContainer.d.ts +7 -0
  88. package/dist/types/library/components/PopupMakeConfidential/index.d.ts +1 -0
  89. package/dist/types/library/components/PopupModal/PopupModal.d.ts +20 -0
  90. package/dist/types/library/components/PopupModal/PopupModalContainer.d.ts +9 -0
  91. package/dist/types/library/components/PopupModal/index.d.ts +1 -0
  92. package/dist/types/library/components/PopupReleaseAccess/PopupReleaseAccess.d.ts +14 -0
  93. package/dist/types/library/components/PopupReleaseAccess/PopupReleaseAccessContainer.d.ts +7 -0
  94. package/dist/types/library/components/PopupReleaseAccess/index.d.ts +1 -0
  95. package/dist/types/library/components/PopupReplaceFile/PopupReplaceFile.d.ts +12 -0
  96. package/dist/types/library/components/PopupReplaceFile/PopupReplaceFileContainer.d.ts +7 -0
  97. package/dist/types/library/components/PopupReplaceFile/index.d.ts +1 -0
  98. package/dist/types/library/components/PopupRestrictAccess/PopupRestrictAccess.d.ts +14 -0
  99. package/dist/types/library/components/PopupRestrictAccess/PopupRestrictAccessContainer.d.ts +7 -0
  100. package/dist/types/library/components/PopupRestrictAccess/index.d.ts +1 -0
  101. package/dist/types/library/components/PopupSignDocumentsList/PopupSignDocumentsList.d.ts +20 -0
  102. package/dist/types/library/components/PopupSignDocumentsList/PopupSignDocumentsListContainer.d.ts +7 -0
  103. package/dist/types/library/components/PopupSignDocumentsList/index.d.ts +1 -0
  104. package/dist/types/library/components/ProjectCreator/ProjectCreator.d.ts +26 -0
  105. package/dist/types/library/components/ProjectCreator/ProjectCreatorContainer.d.ts +7 -0
  106. package/dist/types/library/components/ProjectCreator/index.d.ts +1 -0
  107. package/dist/types/library/components/ProjectCreator/steps/CreationLegacy.d.ts +11 -0
  108. package/dist/types/library/components/ProjectCreator/steps/CreationStep1.d.ts +14 -0
  109. package/dist/types/library/components/ProjectTypeFilter/ProjectTypeFilter.d.ts +10 -0
  110. package/dist/types/library/components/ProjectTypeFilter/ProjectTypeFilterContainer.d.ts +1 -0
  111. package/dist/types/library/components/ProjectTypeFilter/index.d.ts +1 -0
  112. package/dist/types/library/components/SignPopup/SignPopup.d.ts +18 -0
  113. package/dist/types/library/components/SignPopup/SignPopupContainer.d.ts +7 -0
  114. package/dist/types/library/components/SignPopup/index.d.ts +1 -0
  115. package/dist/types/library/components/SimpleTable/SimpleTable.d.ts +8 -0
  116. package/dist/types/library/components/SimpleTable/index.d.ts +1 -0
  117. package/dist/types/library/components/TableFooter/TableFooter.d.ts +36 -0
  118. package/dist/types/library/components/TableFooter/TableFooter.test.d.ts +1 -0
  119. package/dist/types/library/components/TableFooter/TableFooterContainer.d.ts +8 -0
  120. package/dist/types/library/components/TableFooter/index.d.ts +1 -0
  121. package/dist/types/library/components/helpers/generateId.d.ts +1 -0
  122. package/dist/types/library/components/helpers/printDate.d.ts +2 -0
  123. package/dist/types/library/components/utils/test-utils.d.ts +9 -0
  124. package/dist/types/library/configureStore.d.ts +17 -0
  125. package/dist/types/library/featureFlags.d.ts +7 -0
  126. package/dist/types/library/helpers/RegString.d.ts +3 -0
  127. package/dist/types/library/helpers/errorHandler.d.ts +3 -0
  128. package/dist/types/library/helpers/fileDownload.d.ts +2 -0
  129. package/dist/types/library/helpers/index.d.ts +3 -0
  130. package/dist/types/library/hooks.d.ts +17 -0
  131. package/dist/types/library/reducers/baseProjectReducer.d.ts +15 -0
  132. package/dist/types/library/reducers/codeToTextReducer.d.ts +14 -0
  133. package/dist/types/library/reducers/editFileReducer.d.ts +32 -0
  134. package/dist/types/library/reducers/filtersReducer.d.ts +12 -0
  135. package/dist/types/library/reducers/index.d.ts +51 -0
  136. package/dist/types/library/reducers/permissionsReducer.d.ts +16 -0
  137. package/dist/types/library/reducers/projectReducer.d.ts +64 -0
  138. package/dist/types/library/reducers/replaceFileReducer.d.ts +7 -0
  139. package/dist/types/library/reducers/restrictFilesReducer.d.ts +7 -0
  140. package/dist/types/library/reducers/signPopupReducer.d.ts +16 -0
  141. package/dist/types/library/reducers/signReducer.d.ts +13 -0
  142. package/dist/types/library/reducers/uiReducer.d.ts +35 -0
  143. package/dist/types/mocks/storeMocks.d.ts +25 -0
  144. package/dist/types/rbac-rules.d.ts +57 -0
  145. package/dist/types/setupProxy.d.ts +2 -0
  146. package/dist/types/setupTests.d.ts +1 -0
  147. package/package.json +219 -0
@@ -0,0 +1,4 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="12" cy="12" r="9" fill="white"/>
3
+ <path d="M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z" fill="#00B649"/>
4
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="23" height="23" viewBox="0 0 23 23" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M15.3333 8.625V18.2083H7.66663V8.625H15.3333ZM13.8958 2.875H9.10413L8.14579 3.83333H4.79163V5.75H18.2083V3.83333H14.8541L13.8958 2.875ZM17.25 6.70833H5.74996V18.2083C5.74996 19.2625 6.61246 20.125 7.66663 20.125H15.3333C16.3875 20.125 17.25 19.2625 17.25 18.2083V6.70833Z" fill="#34394C"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="23" height="23" viewBox="0 0 23 23" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M17.9312 9.785C17.3363 6.76625 14.685 4.5 11.5 4.5C8.97125 4.5 6.775 5.935 5.68125 8.035C3.0475 8.315 1 10.5462 1 13.25C1 16.1462 3.35375 18.5 6.25 18.5H17.625C20.04 18.5 22 16.54 22 14.125C22 11.815 20.2063 9.9425 17.9312 9.785ZM17.625 16.75H6.25C4.31625 16.75 2.75 15.1838 2.75 13.25C2.75 11.4563 4.08875 9.96 5.865 9.77625L6.80125 9.68L7.23875 8.84875C8.07 7.2475 9.6975 6.25 11.5 6.25C13.7925 6.25 15.77 7.8775 16.2162 10.1263L16.4788 11.4388L17.8175 11.535C19.1825 11.6225 20.25 12.7688 20.25 14.125C20.25 15.5688 19.0688 16.75 17.625 16.75ZM12.7688 9.75H10.2312V12.375H8L11.5 15.875L15 12.375H12.7688V9.75Z" fill="#34394C"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="23" height="23" viewBox="0 0 23 23" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M13.4742 8.64417L14.3558 9.52583L5.67333 18.2083H4.79167V17.3267L13.4742 8.64417ZM16.9242 2.875C16.6846 2.875 16.4354 2.97083 16.2533 3.15292L14.4996 4.90667L18.0933 8.50042L19.8471 6.74667C20.2208 6.37292 20.2208 5.76917 19.8471 5.39542L17.6046 3.15292C17.4129 2.96125 17.1733 2.875 16.9242 2.875ZM13.4742 5.93208L2.875 16.5312V20.125H6.46875L17.0679 9.52583L13.4742 5.93208Z" fill="#34394C"/>
3
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="12" cy="12" r="9" fill="white"/>
3
+ <path d="M9.00003 15H11H13H15V17H13V15H11V17H9.00003V15ZM9.00003 7H11H13H15V13H13V7H11V13H9.00003V7ZM11.99 2C6.47 2 2 6.48 2 12C2 17.52 6.47 22 11.99 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 11.99 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z" fill="#FF7373"/>
4
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M10 0C8.0222 0 6.08881 0.586489 4.44432 1.6853C2.79983 2.78412 1.51809 4.3459 0.761212 6.17316C0.00433564 8.00043 -0.193701 10.0111 0.192151 11.9509C0.578003 13.8907 1.53041 15.6725 2.92894 17.0711C4.32746 18.4696 6.10931 19.422 8.04912 19.8079C9.98892 20.1937 11.9996 19.9957 13.8269 19.2388C15.6541 18.4819 17.2159 17.2002 18.3147 15.5557C19.4135 13.9112 20 11.9778 20 10C20 7.34784 18.9465 4.8043 17.0711 2.92893C15.1957 1.05357 12.6522 0 10 0ZM9.00001 15H7.00001V13H9.00001V15H11V13H13V15H9.00001ZM9.00001 11H7.00001V5H13V11H11V5H9.00001V11Z" fill="#FF7373"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <g fill="none"><path d="M0 0h24v24H0V0z"/><path d="M0 0h24v24H0V0z" opacity=".87"/></g><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="23" height="23" viewBox="0 0 23 23" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M17.9312 9.285C17.3363 6.26625 14.685 4 11.5 4C8.97125 4 6.775 5.435 5.68125 7.535C3.0475 7.815 1 10.0462 1 12.75C1 15.6462 3.35375 18 6.25 18H17.625C20.04 18 22 16.04 22 13.625C22 11.315 20.2063 9.4425 17.9312 9.285ZM17.625 16.25H6.25C4.31625 16.25 2.75 14.6838 2.75 12.75C2.75 10.9563 4.08875 9.46 5.865 9.27625L6.80125 9.18L7.23875 8.34875C8.07 6.7475 9.6975 5.75 11.5 5.75C13.7925 5.75 15.77 7.3775 16.2162 9.62625L16.4788 10.9388L17.8175 11.035C19.1825 11.1225 20.25 12.2688 20.25 13.625C20.25 15.0688 19.0688 16.25 17.625 16.25ZM8 11.875H10.2312V14.5H12.7688V11.875H15L11.5 8.375L8 11.875Z" fill="#34394C"/>
3
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="12" cy="12" r="9" fill="white"/>
3
+ <path d="M9.00003 15H11H13H15V17H13V15H11V17H9.00003V15ZM9.00003 7H11H13H15V13H13V7H11V13H9.00003V7ZM11.99 2C6.47 2 2 6.48 2 12C2 17.52 6.47 22 11.99 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 11.99 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z" fill="#FDEBA4"/>
4
+ </svg>
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare function App(): JSX.Element;
3
+ export default App;
@@ -0,0 +1,4 @@
1
+ declare const _default: import("redux").Reducer<import("redux").CombinedState<{
2
+ [x: string]: unknown;
3
+ }>, never>;
4
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _exports: string;
2
+ export = _exports;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ declare const EhrMinimalFrame: React.FC<{
3
+ children: React.ReactNode[];
4
+ }>;
5
+ export default EhrMinimalFrame;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ declare const CreatePortal: ({ children, targetId, }: {
3
+ children: any;
4
+ targetId: any;
5
+ }) => import("react").ReactPortal | null;
6
+ export default CreatePortal;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import './static/navbar.css';
3
+ type Props = {
4
+ expanded: boolean;
5
+ toggleNavBar: () => void;
6
+ };
7
+ export declare const NavBar: ({ expanded, toggleNavBar }: Props) => JSX.Element;
8
+ export {};
@@ -0,0 +1,15 @@
1
+ import React, { Component } from 'react';
2
+ import { RouteComponentProps } from 'react-router-dom';
3
+ type Props = {} & RouteComponentProps;
4
+ type State = {
5
+ expanded: boolean;
6
+ };
7
+ export declare class DashboardFrame extends Component<Props, State> {
8
+ state: {
9
+ expanded: boolean;
10
+ };
11
+ toggleNavBar: () => void;
12
+ render(): JSX.Element;
13
+ }
14
+ declare const _default: React.ComponentClass<Pick<RouteComponentProps<{}, import("react-router").StaticContext, unknown>, never>, any> & import("react-router").WithRouterStatics<typeof DashboardFrame>;
15
+ export default _default;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export type ActiveUserProps = {
3
+ user: any;
4
+ };
5
+ export declare const ActiveUser: ({ user }: ActiveUserProps) => JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const NavBarRight: () => JSX.Element;
@@ -0,0 +1,16 @@
1
+ declare const _default: import("redux").Reducer<import("redux").CombinedState<{
2
+ uiState: import("../library/reducers/uiReducer").UiState;
3
+ filtersState: import("../library/reducers/filtersReducer").FiltersState;
4
+ projectState: import("../library/reducers/projectReducer").ProjectState;
5
+ baseProjectState: import("../library/reducers/baseProjectReducer").BaseProjectState;
6
+ editFileState: import("../library/reducers/editFileReducer").EditFileState;
7
+ restrictFilesState: import("../library/reducers/restrictFilesReducer").RestrictFilesState;
8
+ signState: import("../library/reducers/signReducer").SignState;
9
+ codeToTextState: import("../library/reducers/codeToTextReducer").CodeToTextState;
10
+ replaceFileState: import("../library/reducers/replaceFileReducer").ReplaceFileState;
11
+ signPopup: import("../library/reducers/signPopupReducer").SignPopupState;
12
+ permissions: import("../library/reducers/permissionsReducer").PermissionsState;
13
+ keycloak: unknown;
14
+ profile: unknown;
15
+ }>, import("redux").Action<any>>;
16
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default } from './App';
@@ -0,0 +1,7 @@
1
+ declare global {
2
+ interface Window {
3
+ role: string;
4
+ }
5
+ }
6
+ export type Locale = 'et' | 'en' | 'ru';
7
+ export type Role = any;
@@ -0,0 +1,8 @@
1
+ export declare const LOGIN_PATH = "/login";
2
+ export declare const LOGOUT_PATH = "/logout";
3
+ export declare const FRONTPAGE_PATH = "/";
4
+ export declare const PROCEEDINGS_PATH = "/myproceedings";
5
+ export declare const PROCEEDING_PATH = "/proceeding";
6
+ export declare const DOCUMENTS_PATH = "/mydocuments";
7
+ export declare const HELP_PATH = "/help";
8
+ export declare const LOGIN_DISABLED_PATH = "/login-disabled";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { BuildingFile as BuildingFileType } from './library/reducers/projectReducer';
2
+ export { default as EhrDoc } from './library/App';
3
+ export type BuildingFile = BuildingFileType;
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import './App.scss';
3
+ import { BuildingFile } from './reducers/projectReducer';
4
+ interface AppProps {
5
+ applicationId: string;
6
+ applicationNumber?: string;
7
+ onFilesChange?: (files: readonly BuildingFile[]) => void;
8
+ buttonConfig?: [ButtonConfig];
9
+ isProceeding?: boolean;
10
+ }
11
+ export interface ButtonConfig {
12
+ id: string;
13
+ text: string;
14
+ disabled?: boolean;
15
+ theme?: string;
16
+ popover?: TableFooterButtonPopoverConfig;
17
+ onClick?: () => void;
18
+ }
19
+ export interface TableFooterButtonPopoverConfig {
20
+ id: string;
21
+ title: string;
22
+ text: string;
23
+ cancelText: string;
24
+ confirmText: string;
25
+ onConfirm: () => void;
26
+ }
27
+ declare const App: React.FC<AppProps>;
28
+ export default App;
@@ -0,0 +1,29 @@
1
+ import { ThunkAction } from 'redux-thunk';
2
+ import { Doc2State } from '../reducers';
3
+ import { FiltersActions } from './FiltersActions';
4
+ import { ProjectActions } from './ProjectActions';
5
+ import { BaseProjectInfo } from '../reducers/baseProjectReducer';
6
+ export declare enum BaseProjectActionType {
7
+ SET_INFO = "SET_INFO",
8
+ TOGGLE_REFERENCE_CREATING = "TOGGLE_REFERENCE_CREATING",
9
+ TOGGLE_REFERENCE_CLONING = "TOGGLE_REFERENCE_CLONING"
10
+ }
11
+ interface ToggleAction {
12
+ type: BaseProjectActionType.TOGGLE_REFERENCE_CREATING | BaseProjectActionType.TOGGLE_REFERENCE_CLONING;
13
+ payload: {
14
+ toggled: boolean;
15
+ };
16
+ }
17
+ interface SetBaseProjectInfo {
18
+ type: BaseProjectActionType.SET_INFO;
19
+ payload: {
20
+ info: BaseProjectInfo;
21
+ };
22
+ }
23
+ export type BaseProjectActions = SetBaseProjectInfo | ToggleAction;
24
+ export declare function toggleReferenceCreating(toggled: boolean): ToggleAction;
25
+ export declare function toggleReferenceCloning(toggled: boolean): ToggleAction;
26
+ export declare function setBaseProjectInfo(info: BaseProjectInfo): SetBaseProjectInfo;
27
+ export declare function referenceBaseProject(): ThunkAction<Promise<unknown>, Doc2State, unknown, BaseProjectActions | ProjectActions | FiltersActions>;
28
+ export declare function cloneReferencedForEditing(): ThunkAction<Promise<unknown>, Doc2State, unknown, BaseProjectActions | ProjectActions | FiltersActions>;
29
+ export {};
@@ -0,0 +1,20 @@
1
+ import { CodeTextDTO } from '../reducers/codeToTextReducer';
2
+ export declare enum CodeToTextActionsType {
3
+ SET_GRUPI_MARKSONA_CODE_TO_TEXTS = "SET_GRUPI_MARKSONA_CODE_TO_TEXTS",
4
+ SET_GRUPP_CODE_TO_TEXTS = "SET_GRUPP_CODE_TO_TEXTS",
5
+ SET_PROJEKTI_OSA_CODE_TO_TEXTS = "SET_PROJEKTI_OSA_CODE_TO_TEXTS",
6
+ SET_PROJEKTI_STAADIUM_CODE_TO_TEXTS = "SET_PROJEKTI_STAADIUM_CODE_TO_TEXTS",
7
+ SET_EHITISED_CODE_TO_TEXTS = "SET_EHITISED_CODE_TO_TEXTS"
8
+ }
9
+ export interface SetCodeToText {
10
+ type: CodeToTextActionsType;
11
+ payload: {
12
+ codes: CodeTextDTO[];
13
+ };
14
+ }
15
+ export declare function setGrupiMarksonaCodesToText(codes: CodeTextDTO[]): SetCodeToText;
16
+ export declare function setGruppCodesToText(codes: CodeTextDTO[]): SetCodeToText;
17
+ export declare function setProjektiOsaCodesToText(codes: CodeTextDTO[]): SetCodeToText;
18
+ export declare function setProjektiStaadiumCodesToText(codes: CodeTextDTO[]): SetCodeToText;
19
+ export declare function setEhitisedCodeToTexts(codes: CodeTextDTO[]): SetCodeToText;
20
+ export type CodeToTextActions = SetCodeToText;
@@ -0,0 +1,50 @@
1
+ import { ThunkAction } from 'redux-thunk';
2
+ import { Doc2State } from '../reducers';
3
+ import { EditBuildingFile, EditErrorInput } from '../reducers/editFileReducer';
4
+ import { ProjectActions } from './ProjectActions';
5
+ export declare enum EditFileActionsType {
6
+ SET_EDIT_FILE = "SET_EDIT_FILE",
7
+ CLEAR_EDIT_FILE = "CLEAR_EDIT_FILE",
8
+ ADD_EDIT_ERROR = "ADD_EDIT_ERROR",
9
+ REMOVE_EDIT_ERROR = "REMOVE_EDIT_ERROR",
10
+ CLEAR_EDIT_ERRORS = "CLEAR_EDIT_ERRORS",
11
+ TOGGLE_EDIT_RESPONSE_PENDING = "TOGGLE_EDIT_RESPONSE_PENDING"
12
+ }
13
+ interface SetEditFile {
14
+ type: EditFileActionsType.SET_EDIT_FILE;
15
+ payload: {
16
+ file: EditBuildingFile;
17
+ };
18
+ }
19
+ export declare function setEditFile(file: EditBuildingFile): SetEditFile;
20
+ interface ClearEditFile {
21
+ type: EditFileActionsType.CLEAR_EDIT_FILE | EditFileActionsType.CLEAR_EDIT_ERRORS;
22
+ payload: {};
23
+ }
24
+ export declare function clearEditFile(): ClearEditFile;
25
+ interface AddEditError {
26
+ type: EditFileActionsType.ADD_EDIT_ERROR;
27
+ payload: {
28
+ error: EditErrorInput;
29
+ };
30
+ }
31
+ export declare function addEditError(error: EditErrorInput): AddEditError;
32
+ interface RemoveEditError {
33
+ type: EditFileActionsType.REMOVE_EDIT_ERROR;
34
+ payload: {
35
+ id: string;
36
+ };
37
+ }
38
+ export declare function removeEditError(id: string): RemoveEditError;
39
+ export declare function clearEditErrors(): ClearEditFile;
40
+ interface ToggleAction {
41
+ type: EditFileActionsType.TOGGLE_EDIT_RESPONSE_PENDING;
42
+ payload: {
43
+ toggled: boolean;
44
+ };
45
+ }
46
+ export declare function toggleEditResponsePending(toggled: boolean): ToggleAction;
47
+ export type EditFileActions = SetEditFile | ClearEditFile | AddEditError | RemoveEditError | ToggleAction;
48
+ export declare function getEditFileData(): ThunkAction<void, Doc2State, unknown, EditFileActions>;
49
+ export declare function sendEditFileChanges(): ThunkAction<void, Doc2State, unknown, EditFileActions | ProjectActions>;
50
+ export {};
@@ -0,0 +1,34 @@
1
+ import { FileFilter } from '../reducers/filtersReducer';
2
+ import { BuildingFileKeys } from '../reducers/projectReducer';
3
+ export declare enum FiltersActionType {
4
+ ADD_FILTER = "ADD_FILTER",
5
+ REMOVE_FILTER = "REMOVE_FILTER",
6
+ SET_FILTER = "SET_FILTER",
7
+ CLEAR_FILTER = "CLEAR_FILTER",
8
+ POPULATE_FILTER = "POPULATE_FILTER",
9
+ CLEAR_ALL_FILTERS = "CLEAR_ALL_FILTERS"
10
+ }
11
+ interface ToggleFilter {
12
+ type: FiltersActionType.ADD_FILTER | FiltersActionType.REMOVE_FILTER | FiltersActionType.SET_FILTER | FiltersActionType.POPULATE_FILTER;
13
+ payload: {
14
+ filter: FileFilter;
15
+ };
16
+ }
17
+ export declare function addFilter(filter: FileFilter): ToggleFilter;
18
+ export declare function removeFilter(filter: FileFilter): ToggleFilter;
19
+ export declare function setFilter(filter: FileFilter): ToggleFilter;
20
+ interface ClearFilter {
21
+ type: FiltersActionType.CLEAR_FILTER;
22
+ payload: {
23
+ selector: BuildingFileKeys;
24
+ };
25
+ }
26
+ export declare function clearFilter(selector: BuildingFileKeys): ClearFilter;
27
+ export declare function populateFilter(filter: FileFilter): ToggleFilter;
28
+ interface EmptyAction {
29
+ type: FiltersActionType.CLEAR_ALL_FILTERS;
30
+ payload: {};
31
+ }
32
+ export declare function clearAllFilters(): EmptyAction;
33
+ export type FiltersActions = ToggleFilter | ClearFilter | EmptyAction;
34
+ export {};
@@ -0,0 +1,12 @@
1
+ import { GlobalPermissions } from '../reducers/permissionsReducer';
2
+ export declare enum PermissionsActionsType {
3
+ SET_PERMISSIONS = "SET_PERMISSIONS"
4
+ }
5
+ export interface SetPermissions {
6
+ type: PermissionsActionsType.SET_PERMISSIONS;
7
+ payload: {
8
+ permissions: GlobalPermissions;
9
+ };
10
+ }
11
+ export declare function setPermissions(permissions: GlobalPermissions): SetPermissions;
12
+ export type PermissionsActions = SetPermissions;
@@ -0,0 +1,142 @@
1
+ import { BuildingFile, ProjectCreationType } from '../reducers/projectReducer';
2
+ import { ThunkAction } from 'redux-thunk';
3
+ import { Doc2State } from '../reducers';
4
+ import { UiActions } from './UiActions';
5
+ import { CodeToTextActions } from './CodeToTextActions';
6
+ import { SignActions } from './SignActions';
7
+ import { FiltersActions } from './FiltersActions';
8
+ import { PermissionsActions } from './PermissionsActions';
9
+ import { BaseProjectActions } from './BaseProjectActions';
10
+ export declare enum ProjectActionType {
11
+ TOGGLE_PROJECT_CREATION = "TOGGLE_PROJECT_CREATION",
12
+ NAVIGATE_FORWARD_PROJECT_CREATION = "NAVIGATE_FORWARD_PROJECT_CREATION",
13
+ NAVIGATE_BACKWARD_PROJECT_CREATION = "NAVIGATE_BACKWARD_PROJECT_CREATION",
14
+ SET_CREATION_TYPE = "SET_CREATION_TYPE",
15
+ SET_PROJECT_ID = "SET_PROJECT_ID",
16
+ SET_APPLICATION_TYPE = "SET_APPLICATION_TYPE",
17
+ SET_REFERENCE = "SET_REFERENCE",
18
+ SET_FILES = "SET_FILES",
19
+ ADD_FILE = "ADD_FILE",
20
+ EDIT_FILE = "EDIT_FILE",
21
+ SELECT_FILE = "SELECT_FILE",
22
+ DESELECT_FILE = "DESELECT_FILE",
23
+ SELECT_ALL_FILES = "SELECT_ALL_FILES",
24
+ CLEAR_SELECTED_FILES = "CLEAR_SELECTED_FILES",
25
+ MODIFY_REQUESTS_IN_PROGRESS = "MODIFY_REQUESTS_IN_PROGRESS",
26
+ MODIFY_BLOCKING_REQUESTS_IN_PROGRESS = "MODIFY_BLOCKING_REQUESTS_IN_PROGRESS",
27
+ TOGGLE_FILE_POPOVER_OPEN = "TOGGLE_FILE_POPOVER_OPEN",
28
+ SET_APPLICATION_ID = "SET_APPLICATION_ID",
29
+ TOGGLE_IS_LOADING_CURRENT_PROJECT = "TOGGLE_IS_LOADING_CURRENT_PROJECT",
30
+ TOGGLE_PROJECT_NAME_SENDING = "TOGGLE_PROJECT_NAME_SENDING",
31
+ TOGGLE_DELETION_PENDING = "TOGGLE_DELETION_PENDING",
32
+ SET_ALLOWED_EXTENSIONS = "SET_ALLOWED_EXTENSIONS",
33
+ TOGGLE_IS_PROJECT_READ_ONLY = "TOGGLE_IS_PROJECT_READ_ONLY",
34
+ TOGGLE_IS_PROJECT_LEGACY = "TOGGLE_IS_PROJECT_LEGACY",
35
+ SET_CAN_ADD_AUDIT = "SET_CAN_ADD_AUDIT",
36
+ SET_CAN_REFERENCE_BASE_PROJECT = "SET_CAN_REFERENCE_BASE_PROJECT"
37
+ }
38
+ interface ToggleAction {
39
+ type: ProjectActionType.TOGGLE_PROJECT_CREATION | ProjectActionType.TOGGLE_IS_LOADING_CURRENT_PROJECT | ProjectActionType.TOGGLE_PROJECT_NAME_SENDING | ProjectActionType.TOGGLE_DELETION_PENDING | ProjectActionType.TOGGLE_IS_PROJECT_READ_ONLY | ProjectActionType.TOGGLE_IS_PROJECT_LEGACY;
40
+ payload: {
41
+ toggled: boolean;
42
+ };
43
+ }
44
+ interface IncrementDecrementAction {
45
+ type: ProjectActionType.MODIFY_REQUESTS_IN_PROGRESS | ProjectActionType.MODIFY_BLOCKING_REQUESTS_IN_PROGRESS;
46
+ payload: {
47
+ delta: 1 | -1;
48
+ };
49
+ }
50
+ export declare function toggleProjectCreation(toggled: boolean): ToggleAction;
51
+ interface NavigationAction {
52
+ type: ProjectActionType.NAVIGATE_BACKWARD_PROJECT_CREATION | ProjectActionType.NAVIGATE_FORWARD_PROJECT_CREATION;
53
+ payload: {};
54
+ }
55
+ export declare function navigateForwardProjectCreation(): NavigationAction;
56
+ export declare function navigateBackwardProjectCreation(): NavigationAction;
57
+ interface SetString {
58
+ type: ProjectActionType.SET_APPLICATION_ID | ProjectActionType.SET_PROJECT_ID | ProjectActionType.SET_APPLICATION_TYPE;
59
+ payload: {
60
+ value?: string;
61
+ };
62
+ }
63
+ interface SetBoolean {
64
+ type: ProjectActionType.SET_CAN_ADD_AUDIT | ProjectActionType.SET_CAN_REFERENCE_BASE_PROJECT | ProjectActionType.SET_REFERENCE;
65
+ payload: {
66
+ value: boolean;
67
+ };
68
+ }
69
+ export declare function setProjectId(value?: string): SetString;
70
+ export declare function setApplicationType(value?: string): SetString;
71
+ export declare function setReference(value: boolean): SetBoolean;
72
+ export declare function setCanAddAudit(value: boolean): SetBoolean;
73
+ export declare function setCanReferenceBaseProject(value: boolean): SetBoolean;
74
+ interface SetFiles {
75
+ type: ProjectActionType.SET_FILES;
76
+ payload: {
77
+ files: readonly BuildingFile[];
78
+ };
79
+ }
80
+ export declare function setFiles(files: readonly BuildingFile[]): SetFiles;
81
+ interface AddFile {
82
+ type: ProjectActionType.ADD_FILE | ProjectActionType.EDIT_FILE;
83
+ payload: {
84
+ file: BuildingFile;
85
+ };
86
+ }
87
+ export declare function addFile(file: BuildingFile): AddFile;
88
+ export declare function editFile(file: BuildingFile): AddFile;
89
+ interface ToggleFile {
90
+ type: ProjectActionType.SELECT_FILE | ProjectActionType.DESELECT_FILE | ProjectActionType.TOGGLE_FILE_POPOVER_OPEN;
91
+ payload: {
92
+ id: string;
93
+ };
94
+ }
95
+ export declare function selectFile(id: string): ToggleFile;
96
+ export declare function deselectFile(id: string): ToggleFile;
97
+ export declare function modifyRequestsInProgress(delta: 1 | -1): IncrementDecrementAction;
98
+ export declare function modifyBlockingRequestsInProgress(delta: 1 | -1): IncrementDecrementAction;
99
+ export declare function toggleFilePopoverOpen(id: string): ToggleFile;
100
+ export declare function setApplicationId(value: string): SetString;
101
+ export declare function toggleIsCurrentProjectLoading(toggled: boolean): ToggleAction;
102
+ export declare function toggleCreateProjectSending(toggled: boolean): ToggleAction;
103
+ export declare function toggleDeletionPending(toggled: boolean): ToggleAction;
104
+ export declare function toggleProjectReadOnly(toggled: boolean): ToggleAction;
105
+ export declare function toggleProjectLegacy(toggled: boolean): ToggleAction;
106
+ interface SetAllowedExtensions {
107
+ type: ProjectActionType.SET_ALLOWED_EXTENSIONS;
108
+ payload: {
109
+ extensions: string[];
110
+ };
111
+ }
112
+ export declare function setAllowedExtensions(extensions: string[]): SetAllowedExtensions;
113
+ interface EmptyAction {
114
+ type: ProjectActionType.CLEAR_SELECTED_FILES | ProjectActionType.SELECT_ALL_FILES;
115
+ payload: {};
116
+ }
117
+ export declare function selectAllFiles(): EmptyAction;
118
+ export declare function clearSelectedFiles(): EmptyAction;
119
+ interface SetCreationType {
120
+ type: ProjectActionType.SET_CREATION_TYPE;
121
+ payload: {
122
+ type: ProjectCreationType | undefined;
123
+ };
124
+ }
125
+ export declare function setCreationType(type: ProjectCreationType | undefined): SetCreationType;
126
+ export type ProjectActions = ToggleAction | IncrementDecrementAction | NavigationAction | SetString | SetBoolean | SetFiles | ToggleFile | AddFile | SetAllowedExtensions | EmptyAction | SetCreationType;
127
+ export declare function loadCurrentProject(): ThunkAction<Promise<unknown>, Doc2State, unknown, ProjectActions | UiActions | PermissionsActions>;
128
+ export declare function sendCreateProject(): ThunkAction<Promise<unknown>, Doc2State, unknown, ProjectActions | FiltersActions>;
129
+ export declare function sendCreateAudit(): ThunkAction<Promise<unknown>, Doc2State, unknown, ProjectActions | FiltersActions>;
130
+ export declare function requestProjectDeletion(): ThunkAction<Promise<unknown>, Doc2State, unknown, ProjectActions | UiActions>;
131
+ export declare function loadClassifiers(): ThunkAction<Promise<unknown>, Doc2State, unknown, ProjectActions | CodeToTextActions | FiltersActions>;
132
+ export declare function loadBuildings(): ThunkAction<Promise<unknown>, Doc2State, unknown, ProjectActions | CodeToTextActions | FiltersActions>;
133
+ export declare function loadProjectFiles(): ThunkAction<Promise<unknown>, Doc2State, unknown, ProjectActions | CodeToTextActions | SignActions | FiltersActions>;
134
+ export declare function uploadContainer(container: File, then?: () => void): ThunkAction<Promise<unknown>, Doc2State, unknown, ProjectActions | UiActions>;
135
+ export declare function downloadLegacyContainer(then?: () => void): ThunkAction<Promise<unknown>, Doc2State, unknown, ProjectActions>;
136
+ export declare function uploadFiles(files: File[], then?: () => void): ThunkAction<Promise<unknown>, Doc2State, unknown, ProjectActions | UiActions>;
137
+ export declare function requestDeleteContainer(projektiOsa?: string, then?: () => void): ThunkAction<Promise<unknown>, Doc2State, unknown, ProjectActions>;
138
+ export declare function requestDeleteFile(ids?: string[], then?: () => void): ThunkAction<Promise<unknown>, Doc2State, unknown, ProjectActions>;
139
+ export declare function downloadProjektiOsaContainer(projektiOsa?: string): (dispatch: any, getState: any) => Promise<void>;
140
+ export declare function downloadFiles(files?: BuildingFile[], then?: () => void): ThunkAction<Promise<unknown>, Doc2State, unknown, ProjectActions>;
141
+ export declare function loadCreateProjectOptions(): ThunkAction<Promise<unknown>, Doc2State, unknown, ProjectActions | BaseProjectActions>;
142
+ export {};
@@ -0,0 +1,33 @@
1
+ import { ThunkAction } from 'redux-thunk';
2
+ import { Doc2State } from '../reducers';
3
+ import { ProjectActions } from './ProjectActions';
4
+ import { UiActions } from './UiActions';
5
+ export declare enum ReplaceFileActionsType {
6
+ SET_FILE_REPLACE_NAME = "TOGGLE_FILE_REPLACE_NAME",
7
+ SET_FILE_REPLACE_ID = "TOGGLE_FILE_REPLACE_ID",
8
+ TOGGLE_FILE_REPLACE_UPLOAD_IN_PROGRESS = "TOGGLE_FILE_REPLACE_UPLOAD_IN_PROGRESS",
9
+ CLEAR_FILE_REPLACE = "CLEAR_FILE_REPLACE"
10
+ }
11
+ interface ToggleAction {
12
+ type: ReplaceFileActionsType.TOGGLE_FILE_REPLACE_UPLOAD_IN_PROGRESS;
13
+ payload: {
14
+ toggled: boolean;
15
+ };
16
+ }
17
+ export declare function toggleFileReplaceUploadInProgress(toggled: boolean): ToggleAction;
18
+ interface SetAction {
19
+ type: ReplaceFileActionsType.SET_FILE_REPLACE_ID | ReplaceFileActionsType.SET_FILE_REPLACE_NAME;
20
+ payload: {
21
+ value: string;
22
+ };
23
+ }
24
+ export declare function setFileReplaceId(value: string): SetAction;
25
+ export declare function setFileReplaceName(value: string): SetAction;
26
+ interface EmptyAction {
27
+ type: ReplaceFileActionsType.CLEAR_FILE_REPLACE;
28
+ payload: {};
29
+ }
30
+ export declare function clearReplaceFile(): EmptyAction;
31
+ export type ReplaceFileActions = ToggleAction | SetAction | EmptyAction;
32
+ export declare function replaceFile(file: File): ThunkAction<void, Doc2State, unknown, ReplaceFileActions | ProjectActions | UiActions>;
33
+ export {};
@@ -0,0 +1,33 @@
1
+ import { ThunkAction } from 'redux-thunk';
2
+ import { Doc2State } from '../reducers';
3
+ import { BuildingFile } from '../reducers/projectReducer';
4
+ export declare enum RestrictFilesActionsType {
5
+ SET_FILE_IDS = "SET_FILE_IDS",
6
+ RELEASE_FILE_IDS = "RELEASE_FILE_IDS",
7
+ MODIFY_REQUESTS_IN_PROGRESS = "MODIFY_REQUESTS_IN_PROGRESS"
8
+ }
9
+ interface SetFiles {
10
+ type: RestrictFilesActionsType.SET_FILE_IDS;
11
+ payload: {
12
+ fileIds: string[] | undefined;
13
+ };
14
+ }
15
+ interface ReleaseFiles {
16
+ type: RestrictFilesActionsType.RELEASE_FILE_IDS;
17
+ payload: {
18
+ fileIds: string[] | undefined;
19
+ };
20
+ }
21
+ interface IncrementDecrementAction {
22
+ type: RestrictFilesActionsType.MODIFY_REQUESTS_IN_PROGRESS;
23
+ payload: {
24
+ delta: 1 | -1;
25
+ };
26
+ }
27
+ export declare function setRestrictFiles(fileIds: string[] | undefined): SetFiles;
28
+ export declare function setReleaseFiles(fileIds: string[] | undefined): ReleaseFiles;
29
+ export declare function modifyRequestsInProgress(delta: 1 | -1): IncrementDecrementAction;
30
+ export declare function requestRestrictFiles(files: BuildingFile[], basis: string, description: string, endDateString: string): ThunkAction<Promise<unknown>, Doc2State, unknown, RestrictFilesActions>;
31
+ export declare function requestReleaseFiles(files: BuildingFile[]): ThunkAction<Promise<unknown>, Doc2State, unknown, RestrictFilesActions>;
32
+ export type RestrictFilesActions = SetFiles | ReleaseFiles | IncrementDecrementAction;
33
+ export {};
@@ -0,0 +1,24 @@
1
+ import { TypeSignerTuple } from '../reducers/signReducer';
2
+ import { ThunkAction } from 'redux-thunk';
3
+ import { Doc2State } from '../reducers';
4
+ export declare enum SignActionsType {
5
+ SET_PROJECT_TYPES = "SET_PROJECT_TYPES",
6
+ SET_PROJECT_CONTAINER = "SET_PROJECT_CONTAINER"
7
+ }
8
+ interface SetProjectTypes {
9
+ type: SignActionsType.SET_PROJECT_TYPES;
10
+ payload: {
11
+ projectType: readonly TypeSignerTuple[];
12
+ };
13
+ }
14
+ interface SetProjectContainer {
15
+ type: SignActionsType.SET_PROJECT_CONTAINER;
16
+ payload: {
17
+ projectContainer: TypeSignerTuple;
18
+ };
19
+ }
20
+ export declare function setProjectTypes(projectType: readonly TypeSignerTuple[]): SetProjectTypes;
21
+ export declare function setProjectContainer(projectContainer: TypeSignerTuple): SetProjectContainer;
22
+ export type SignActions = SetProjectTypes | SetProjectContainer;
23
+ export declare function loadProjectContainers(): ThunkAction<Promise<unknown>, Doc2State, unknown, SignActions>;
24
+ export {};
@@ -0,0 +1,53 @@
1
+ import { ThunkAction } from 'redux-thunk';
2
+ import { Doc2State } from '../reducers';
3
+ import { SignMethod } from '../reducers/signPopupReducer';
4
+ export declare enum SignPopupActionsType {
5
+ ENABLE_SIGN_PROJEKTI_OSA = "ENABLE_SIGN_PROJEKTI_OSA",
6
+ SET_SIGN_CHALLENGE = "SET_SIGN_CHALLENGE",
7
+ SET_SIGN_SESSION = "SET_SIGN_SESSION",
8
+ COMPLETE_SIGNING = "COMPLETE_SIGNING",
9
+ TOGGLE_SIGN_IN_PROGRESS = "TOGGLE_SIGN_IN_PROGRESS",
10
+ CANCEL_SIGN_PROJEKTI_OSA = "CANCEL_SIGN_PROJEKTI_OSA",
11
+ SET_SIGN_METHOD = "SET_SIGN_METHOD",
12
+ SET_MOBILE_NUMBER = "SET_MOBILE_NUMBER"
13
+ }
14
+ interface EnableSignProjektiOsa {
15
+ type: SignPopupActionsType.ENABLE_SIGN_PROJEKTI_OSA;
16
+ payload: {
17
+ revision: string;
18
+ projektiOsa: string;
19
+ };
20
+ }
21
+ export declare function enableSignProjektiOsa(revision: string, projektiOsa: string): EnableSignProjektiOsa;
22
+ interface SetSignMethod {
23
+ type: SignPopupActionsType.SET_SIGN_METHOD;
24
+ payload: {
25
+ method: SignMethod;
26
+ };
27
+ }
28
+ export declare function setSignMethod(method: SignMethod): SetSignMethod;
29
+ interface TextAction {
30
+ type: SignPopupActionsType.SET_SIGN_CHALLENGE | SignPopupActionsType.SET_SIGN_SESSION | SignPopupActionsType.SET_MOBILE_NUMBER;
31
+ payload: {
32
+ text: string;
33
+ };
34
+ }
35
+ export declare function setSignChallenge(text: string): TextAction;
36
+ export declare function setSignSession(text: string): TextAction;
37
+ export declare function setMobileNumber(text: string): TextAction;
38
+ interface EmptyAction {
39
+ type: SignPopupActionsType.COMPLETE_SIGNING | SignPopupActionsType.CANCEL_SIGN_PROJEKTI_OSA;
40
+ payload: {};
41
+ }
42
+ export declare function completeSigning(): EmptyAction;
43
+ interface ToggleAction {
44
+ type: SignPopupActionsType.TOGGLE_SIGN_IN_PROGRESS;
45
+ payload: {
46
+ toggled: boolean;
47
+ };
48
+ }
49
+ export declare function toggleSignInProgress(toggled: boolean): ToggleAction;
50
+ export declare function cancelSignProjektiOsa(): EmptyAction;
51
+ export type SignPopupActions = EnableSignProjektiOsa | TextAction | EmptyAction | ToggleAction | SetSignMethod;
52
+ export declare function continueSignToNextStep(): ThunkAction<void, Doc2State, unknown, any>;
53
+ export {};