@piveau/dpi 0.2.0-alpha.5 → 0.2.0-alpha.50

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 (200) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/DPIMenu.vue.js +2 -2
  3. package/dist/packages/dpi/src/data-provider-interface/DataProviderInterface.vue.js +22 -16
  4. package/dist/packages/dpi/src/data-provider-interface/DataProviderInterface.vue2.js +50 -47
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/AboutProject.vue.js +4 -96
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/AboutProject.vue2.js +117 -0
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ComponentLibrary.vue.js +1 -1
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +80 -47
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +124 -72
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue.js +4 -53
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue2.js +77 -0
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ResourceTable.vue.js +7 -0
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ResourceTable.vue2.js +199 -0
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +63 -75
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ActionCard.vue.js +2 -2
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ActionCard.vue2.js +39 -31
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/Autocomplete.vue.js +2 -2
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/Autocomplete.vue2.js +70 -55
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +2 -2
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +88 -65
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectDescriptionStep.vue.js +18 -18
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectNameStep.vue.js +16 -13
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +1 -1
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +157 -103
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectStatusStep.vue.js +19 -22
  26. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ButtonV3.vue.js +117 -84
  27. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Card.vue.js +3 -3
  28. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Card.vue2.js +30 -27
  29. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Chip.vue.js +56 -44
  30. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ChipToggleList/ChipToggleList.vue.js +2 -2
  31. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ChipToggleList/ChipToggleList.vue2.js +30 -24
  32. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/CloseOpenButtonV3.vue.js +11 -10
  33. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +2 -2
  34. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +141 -142
  35. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue.js +7 -0
  36. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue2.js +205 -0
  37. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue.js +7 -0
  38. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue2.js +204 -0
  39. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue.js +7 -0
  40. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +235 -0
  41. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +2 -2
  42. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue2.js +46 -36
  43. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +179 -127
  44. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue.js +2 -2
  45. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue2.js +152 -149
  46. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue.js +2 -2
  47. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue2.js +66 -37
  48. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/DiscoverabilityStep.vue.js +50 -40
  49. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js +5 -3
  50. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +53 -41
  51. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldVeeValidate.vue.js +72 -0
  52. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldVeeValidate.vue2.js +4 -0
  53. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +149 -135
  54. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxDefinition.js +8 -3
  55. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxFormKit.vue.js +65 -37
  56. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/Listbox.vue.js +2 -2
  57. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/Listbox.vue2.js +21 -22
  58. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListboxVeeValidate.vue.js +48 -0
  59. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListboxVeeValidate.vue2.js +4 -0
  60. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +11 -11
  61. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +444 -355
  62. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +2 -2
  63. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +190 -160
  64. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +64 -28
  65. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +108 -74
  66. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js +13 -13
  67. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
  68. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +122 -85
  69. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
  70. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +170 -99
  71. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js +7 -10
  72. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +110 -52
  73. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +65 -86
  74. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
  75. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/AreYouSureToSkipCard.vue.js +31 -0
  76. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/AreYouSureToSkipCard.vue2.js +4 -0
  77. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +5 -72
  78. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +101 -2
  79. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js +2 -2
  80. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +94 -73
  81. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/FunctionalityForm.vue.js +7 -0
  82. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/FunctionalityForm.vue2.js +122 -0
  83. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/GetResource.vue.js +38 -0
  84. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/GetResource.vue2.js +4 -0
  85. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  86. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +442 -482
  87. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue.js +2 -2
  88. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue2.js +158 -132
  89. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/ProcessStepBase.vue.js +55 -37
  90. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/ProcessStepsOverviewStep.vue.js +11 -11
  91. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/RichOption.vue.js +2 -2
  92. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/RichOption.vue2.js +33 -23
  93. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
  94. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +134 -197
  95. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue.js +1 -1
  96. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue2.js +115 -113
  97. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/utils.js +40 -41
  98. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/InitiierenStep.vue.js +39 -33
  99. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/PlanenStep.vue.js +39 -32
  100. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/ProjektPhasenOverviewStep.vue.js +7 -7
  101. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/UmstezenStep.vue.js +36 -30
  102. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/WeiterdenkenStep.vue.js +71 -30
  103. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +159 -103
  104. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +7 -0
  105. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +1115 -0
  106. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsModal.vue.js +48 -48
  107. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +566 -207
  108. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +82 -62
  109. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue2.js +4 -0
  110. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +46 -94
  111. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +329 -100
  112. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +51 -28
  113. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +70 -42
  114. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/StateTag.vue.js +16 -12
  115. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SummaryBox.vue.js +1 -1
  116. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SummaryBox.vue2.js +14 -10
  117. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +228 -115
  118. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaDefinition.js +4 -3
  119. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaFormKit.vue.js +35 -31
  120. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaVeeValidate.vue.js +55 -0
  121. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaVeeValidate.vue2.js +4 -0
  122. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +63 -56
  123. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextButtonSmall.vue.js +1 -1
  124. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +30 -29
  125. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/UrlField.vue.js +30 -0
  126. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/UrlField.vue2.js +4 -0
  127. package/dist/packages/dpi/src/data-provider-interface/components/ContactPage.vue.js +176 -115
  128. package/dist/packages/dpi/src/data-provider-interface/components/DiscoverabilityPage.vue.js +32 -32
  129. package/dist/packages/dpi/src/data-provider-interface/components/DistLicense.vue.js +296 -102
  130. package/dist/packages/dpi/src/data-provider-interface/components/DistributionSimplePage.vue.js +711 -600
  131. package/dist/packages/dpi/src/data-provider-interface/components/Dropup.vue.js +6 -6
  132. package/dist/packages/dpi/src/data-provider-interface/components/HVDPage.vue.js +106 -86
  133. package/dist/packages/dpi/src/data-provider-interface/components/InfoSlot.vue.js +5 -5
  134. package/dist/packages/dpi/src/data-provider-interface/components/ProgressSteps.vue.js +2 -2
  135. package/dist/packages/dpi/src/data-provider-interface/components/ProgressSteps.vue2.js +61 -54
  136. package/dist/packages/dpi/src/data-provider-interface/components/PublisherPage.vue.js +177 -116
  137. package/dist/packages/dpi/src/data-provider-interface/components/ReviewAndPublishPage.vue.js +402 -265
  138. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue.js +7 -0
  139. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue2.js +184 -0
  140. package/dist/packages/dpi/src/{stories/components/MethodsCard.vue.js → data-provider-interface/components/SpatialPage.vue.js} +2 -2
  141. package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue2.js +59 -0
  142. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +2 -2
  143. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +155 -89
  144. package/dist/packages/dpi/src/data-provider-interface/components/TempResPage.vue.js +267 -187
  145. package/dist/packages/dpi/src/data-provider-interface/components/TempResPageInModal.vue.js +392 -0
  146. package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue.js +7 -0
  147. package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue2.js +56 -0
  148. package/dist/packages/dpi/src/data-provider-interface/components/TheErrorDialog.vue.js +67 -53
  149. package/dist/packages/dpi/src/data-provider-interface/components/TitelPage.vue.js +4 -4
  150. package/dist/packages/dpi/src/data-provider-interface/components/UpdateDate.vue.js +33 -29
  151. package/dist/packages/dpi/src/data-provider-interface/components/VisibilityPage.vue.js +121 -0
  152. package/dist/packages/dpi/src/data-provider-interface/components/dev-tools/ProjectDpiDevTools.vue.js +7 -0
  153. package/dist/packages/dpi/src/data-provider-interface/components/dev-tools/ProjectDpiDevTools.vue2.js +292 -0
  154. package/dist/packages/dpi/src/data-provider-interface/components/dev-tools/fixtures.js +287 -0
  155. package/dist/packages/dpi/src/data-provider-interface/components/dpiV3Description.vue.js +7 -6
  156. package/dist/packages/dpi/src/data-provider-interface/components/icons/PhCircleInCircle.vue.js +26 -0
  157. package/dist/packages/dpi/src/data-provider-interface/components/icons/PhCircleInCircle.vue2.js +4 -0
  158. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/decodeProject.js +263 -0
  159. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/encodeProject.js +373 -0
  160. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/shared.js +37 -0
  161. package/dist/packages/dpi/src/data-provider-interface/composables/useDebouncedLoading.js +11 -0
  162. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiContext.js +9 -10
  163. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiEditMode.js +89 -65
  164. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +423 -241
  165. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiStepper.js +82 -82
  166. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiUtils.js +18 -9
  167. package/dist/packages/dpi/src/data-provider-interface/composables/useFormKitMessages.js +14 -0
  168. package/dist/packages/dpi/src/data-provider-interface/composables/useFormKitSummary.js +46 -0
  169. package/dist/packages/dpi/src/data-provider-interface/composables/useOrganizationInfo.js +48 -0
  170. package/dist/packages/dpi/src/data-provider-interface/composables/useProjectActions.js +95 -0
  171. package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyHome.js +83 -0
  172. package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyUser.js +132 -0
  173. package/dist/packages/dpi/src/data-provider-interface/config/dcatapde/vocab-prefixes.js +1 -1
  174. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +497 -156
  175. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +108 -152
  176. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +10 -3
  177. package/dist/packages/dpi/src/data-provider-interface/schema/projectLdSchema.js +122 -0
  178. package/dist/packages/dpi/src/data-provider-interface/store/modules/authStore.js +11 -11
  179. package/dist/packages/dpi/src/data-provider-interface/utils/useSteps.js +35 -29
  180. package/dist/packages/dpi/src/data-provider-interface/views/DraftsPage.vue.js +3 -3
  181. package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +477 -390
  182. package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +494 -433
  183. package/dist/packages/dpi/src/form/inputDefinitions.js +57 -53
  184. package/dist/packages/dpi/src/stories/components/LinkCard.vue.js +4 -4
  185. package/dist/packages/dpi/src/stories/components/LinkCard.vue2.js +24 -26
  186. package/dist/packages/dpi/src/stories/components/PartnerCard.vue.js +3 -3
  187. package/dist/packages/dpi/src/stories/components/PartnerCard.vue2.js +19 -20
  188. package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue.js +2 -2
  189. package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue2.js +13 -16
  190. package/dist/packages/dpi/src/utils/schema/schemaProject.js +210 -0
  191. package/dist/packages/dpi/src/utils/schema/shared.js +23 -0
  192. package/dist/packages/dpi/src/utils/twinbyUtils.js +33 -0
  193. package/dist/styles/_dpi.scss +1630 -0
  194. package/dist/styles/_maps.scss +24 -0
  195. package/dist/styles/_variables.scss +973 -0
  196. package/package.json +34 -23
  197. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue.js +0 -96
  198. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LicenseAttributionByText.vue.js +0 -46
  199. package/dist/packages/dpi/src/data-provider-interface/components/PolGeoUriPage.vue.js +0 -81
  200. package/dist/packages/dpi/src/stories/components/MethodsCard.vue2.js +0 -45
@@ -1,46 +1,50 @@
1
- import { getNode as K } from "@formkit/core";
1
+ import { getNode as pe } from "@formkit/core";
2
2
  import "@formkit/vue";
3
- import { PhNumberCircleFive as Z, PhCheckCircle as G, PhLightbulb as X } from "@phosphor-icons/vue";
4
- import { useWindowScroll as Y } from "@vueuse/core";
5
- import J from "jquery";
6
- import { has as I, isNil as B } from "lodash-es";
7
- import { defineComponent as N, resolveComponent as f, createElementBlock as o, openBlock as s, createCommentVNode as n, createElementVNode as a, createVNode as h, createBlock as S, withModifiers as Q, withCtx as U, Fragment as k, renderList as V, withDirectives as F, normalizeClass as C, toDisplayString as u, vShow as O, createTextVNode as z, ref as M, markRaw as x, getCurrentInstance as ee } from "vue";
8
- import { useI18n as te } from "vue-i18n";
9
- import { mapActions as j, mapGetters as H } from "vuex";
10
- import ie from "../components/InputPageStep.vue.js";
11
- import se from "../components/Navigation.vue.js";
12
- import { useFormValues as ae } from "../composables/useDpiFormValues.js";
13
- import { useDpiStepper as oe } from "../composables/useDpiStepper.js";
14
- import W from "../config/dcatapdeHappyFlow/converter.js";
15
- import re from "../HappyFlowComponents/img/Circle.svg.js";
16
- import le from "../HappyFlowComponents/img/CircleFill.svg.js";
17
- import de from "../HappyFlowComponents/img/Selected1.svg.js";
18
- import ne from "../HappyFlowComponents/img/Selected1_2.svg.js";
19
- import ce from "../HappyFlowComponents/img/Selected2.svg.js";
20
- import pe from "../HappyFlowComponents/img/Selected2_2.svg.js";
21
- import ue from "../HappyFlowComponents/img/Selected3.svg.js";
22
- import he from "../HappyFlowComponents/img/Selected3_2.svg.js";
23
- import me from "../HappyFlowComponents/img/Selected4.svg.js";
24
- import fe from "../HappyFlowComponents/img/Selected4_2.svg.js";
25
- import ge from "../HappyFlowComponents/img/Selected5.svg.js";
26
- import ve from "../HappyFlowComponents/img/Selected5_2.svg.js";
27
- import { eventBus as be } from "../HappyFlowComponents/services/eventBus.js";
28
- import Se from "../HappyFlowComponents/ui/ButtonV3.vue.js";
29
- import ye from "../HappyFlowComponents/ui/Illustration.vue.js";
30
- import Ce from "../HappyFlowComponents/ui/LogoV3.vue.js";
31
- import ke from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
32
- import Ve from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
33
- import _e from "./DistributionInputPage.vue.js";
34
- import De from "./OverviewPage.vue.js";
35
- import Ie from "./PropertyChooser.vue.js";
3
+ import { PhNumberCircleFive as ue, PhCheckCircle as he, PhLightbulb as me } from "@phosphor-icons/vue";
4
+ import { putDataset as ge } from "@piveau/sdk-core/hubRepo";
5
+ import { useWindowScroll as ve } from "@vueuse/core";
6
+ import fe from "jquery";
7
+ import { has as w, isNil as x } from "lodash-es";
8
+ import { defineComponent as be, resolveComponent as h, createElementBlock as a, openBlock as s, createCommentVNode as p, createElementVNode as i, createVNode as m, createBlock as v, toDisplayString as n, withModifiers as Se, withCtx as ee, Fragment as k, renderList as I, withDirectives as te, normalizeClass as C, vShow as ie, createTextVNode as _, ref as se, markRaw as ye, getCurrentInstance as _e } from "vue";
9
+ import { useI18n as Ce } from "vue-i18n";
10
+ import { useRoute as Ve } from "vue-router";
11
+ import { mapActions as ae, mapGetters as oe } from "vuex";
12
+ import { useRuntimeEnv as ke } from "../../composables/useRuntimeEnv.js";
13
+ import Ie from "../components/InputPageStep.vue.js";
14
+ import De from "../components/Navigation.vue.js";
15
+ import { useFormValues as Te } from "../composables/useDpiFormValues.js";
16
+ import { useDpiStepper as Pe } from "../composables/useDpiStepper.js";
17
+ import { useTwinbyUser as we } from "../composables/useTwinbyUser.js";
18
+ import M from "../config/dcatapdeHappyFlow/converter.js";
19
+ import Le from "../HappyFlowComponents/img/Circle.svg.js";
20
+ import $e from "../HappyFlowComponents/img/CircleFill.svg.js";
21
+ import Ae from "../HappyFlowComponents/img/Selected1.svg.js";
22
+ import Re from "../HappyFlowComponents/img/Selected1_2.svg.js";
23
+ import Ue from "../HappyFlowComponents/img/Selected2.svg.js";
24
+ import Ee from "../HappyFlowComponents/img/Selected2_2.svg.js";
25
+ import Be from "../HappyFlowComponents/img/Selected3.svg.js";
26
+ import Fe from "../HappyFlowComponents/img/Selected3_2.svg.js";
27
+ import ze from "../HappyFlowComponents/img/Selected4.svg.js";
28
+ import Me from "../HappyFlowComponents/img/Selected4_2.svg.js";
29
+ import Oe from "../HappyFlowComponents/img/Selected5.svg.js";
30
+ import je from "../HappyFlowComponents/img/Selected5_2.svg.js";
31
+ import { eventBus as He } from "../HappyFlowComponents/services/eventBus.js";
32
+ import We from "../HappyFlowComponents/ui/ButtonV3.vue.js";
33
+ import Ge from "../HappyFlowComponents/ui/Illustration.vue.js";
34
+ import qe from "../HappyFlowComponents/ui/LogoV3.vue.js";
35
+ import Ke from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
36
+ import Ze from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
37
+ import Ne from "./DistributionInputPage.vue.js";
38
+ import Xe from "./OverviewPage.vue.js";
39
+ import Je from "./PropertyChooser.vue.js";
36
40
  /* empty css */
37
41
  /* empty css */
38
42
  /* empty css */
39
- import Te from "../../../../../_virtual/_plugin-vue_export-helper.js";
40
- import { useDpiContext as Le } from "../composables/useDpiContext.js";
41
- import { useEditModeInfo as Pe } from "../composables/useDpiEditMode.js";
42
- import { useFormSchema as we } from "../composables/useFormSchema.js";
43
- const Ae = N({
43
+ import Ye from "../../../../../_virtual/_plugin-vue_export-helper.js";
44
+ import { useDpiContext as Qe } from "../composables/useDpiContext.js";
45
+ import { useEditModeInfo as xe } from "../composables/useDpiEditMode.js";
46
+ import { useFormSchema as et } from "../composables/useFormSchema.js";
47
+ const tt = be({
44
48
  props: {
45
49
  property: {
46
50
  required: !0,
@@ -53,16 +57,15 @@ const Ae = N({
53
57
  },
54
58
  data() {
55
59
  return {
56
- circles: [re, le],
57
- images: [de, ce, ue, me, ge],
60
+ circles: [Le, $e],
61
+ images: [Ae, Ue, Be, ze, Oe],
58
62
  selectedImages: [
59
- ne,
60
- pe,
61
- he,
62
- fe,
63
- ve
63
+ Re,
64
+ Ee,
65
+ Fe,
66
+ Me,
67
+ je
64
68
  ],
65
- instance: ee(),
66
69
  heightActiveSec: "10vh",
67
70
  // formValues: {},
68
71
  offsetTopStepper: "60px",
@@ -84,29 +87,29 @@ const Ae = N({
84
87
  };
85
88
  },
86
89
  components: {
87
- InputPageStep: ie,
88
- DistributionInputPage: _e,
89
- PropertyChooser: Ie,
90
- Navigation: se,
91
- LogoV3: Ce,
92
- ButtonV3: Se,
93
- TextButtonSmall: Ve,
94
- Illustration: ye,
95
- PhLightbulb: X,
96
- PhCheckCircle: G,
97
- PhNumberCircleFive: Z,
98
- ModalSimpleV3: ke
90
+ InputPageStep: Ie,
91
+ DistributionInputPage: Ne,
92
+ PropertyChooser: Je,
93
+ Navigation: De,
94
+ LogoV3: qe,
95
+ ButtonV3: We,
96
+ TextButtonSmall: Ze,
97
+ Illustration: Ge,
98
+ PhLightbulb: me,
99
+ PhCheckCircle: he,
100
+ PhNumberCircleFive: ue,
101
+ ModalSimpleV3: Ke
99
102
  },
100
103
  computed: {
101
- ...H("auth", [
104
+ ...oe("auth", [
102
105
  "getIsEditMode",
103
106
  "getUserCatalogIds",
104
107
  "getUserData"
105
108
  ]),
106
- ...H("dpiStore", ["getNavSteps", "getDeleteDistributionInline"]),
109
+ ...oe("dpiStore", ["getNavSteps", "getDeleteDistributionInline"]),
107
110
  getTitleStep() {
108
111
  return Object.keys(this.formValues).filter(
109
- (e) => I(this.formValues[e], "dct:title")
112
+ (e) => w(this.formValues[e], "dct:title")
110
113
  )[0];
111
114
  },
112
115
  createIDFromTitle() {
@@ -117,7 +120,7 @@ const Ae = N({
117
120
  getFirstTitleFromForm() {
118
121
  try {
119
122
  const e = this.formValues[this.getTitleStep];
120
- return I(e, "dct:title") && e["dct:title"].length > 0 && I(e["dct:title"][0], "@value") && !B(e["dct:title"][0], "@value") ? e["dct:title"][0]["@value"] : "";
123
+ return w(e, "dct:title") && e["dct:title"].length > 0 && w(e["dct:title"][0], "@value") && !x(e["dct:title"][0], "@value") ? e["dct:title"][0]["@value"] : "";
121
124
  } catch {
122
125
  }
123
126
  },
@@ -126,8 +129,8 @@ const Ae = N({
126
129
  }
127
130
  },
128
131
  methods: {
129
- ...j("auth", ["setIsEditMode", "setIsDraft"]),
130
- ...j("dpiStore", [
132
+ ...ae("auth", ["setIsEditMode", "setIsDraft"]),
133
+ ...ae("dpiStore", [
131
134
  "saveFormValues",
132
135
  "saveLocalstorageValues",
133
136
  "clearAll"
@@ -137,7 +140,7 @@ const Ae = N({
137
140
  },
138
141
  // Route to the RAP Page
139
142
  goToRAP() {
140
- this.fillData(), this.activeStep = "ReviewAndPublish", this.activeSubStep = Object.keys(K(this.activeStep).value)[0];
143
+ this.fillData(), this.activeStep = "ReviewAndPublish", this.activeSubStep = Object.keys(pe(this.activeStep).value)[0];
141
144
  },
142
145
  // Remove after DPI development is finished - just fills all fields with dummy Data
143
146
  fillData() {
@@ -474,7 +477,7 @@ const Ae = N({
474
477
  }
475
478
  ]
476
479
  },
477
- ReviewAndPublish: { reviewAndPublishPage: [{ isValid: !0 }] },
480
+ ReviewAndPublish: { isValid: !0 },
478
481
  Additionals: {
479
482
  "dcatde:geocodingDescription": [{ "@value": "Geocoding Desc" }],
480
483
  "dct:identifier": [{ "@value": "Identifier" }],
@@ -548,8 +551,12 @@ const Ae = N({
548
551
  getCircles(e) {
549
552
  return e === this.substepCounter ? this.circles[1] : this.circles[0];
550
553
  },
554
+ validateStep() {
555
+ var e, t, o, l, r;
556
+ ((o = (t = (e = this.formValues[this.activeStep]) == null ? void 0 : e[this.activeSubStep]) == null ? void 0 : t[0]) == null ? void 0 : o.isValid) === !0 || ((l = this.formValues[this.activeStep][this.activeSubStep]) == null ? void 0 : l.isValid) === !0 ? this.navTrigger("next") : ((r = this.formValues[this.activeStep][this.activeSubStep]) != null && r[0] ? this.formValues[this.activeStep][this.activeSubStep][0].isValid = !1 : this.formValues[this.activeStep][this.activeSubStep].isValid = !1, this.handleDistributionsValidation(this.activeSubStep));
557
+ },
551
558
  handleDistributionsValidation(e) {
552
- be.emit("nextClicked", e);
559
+ He.emit("nextClicked", e);
553
560
  },
554
561
  gotToHome() {
555
562
  window.location.href = this.$router.resolve({
@@ -558,42 +565,64 @@ const Ae = N({
558
565
  },
559
566
  navTrigger(e, t) {
560
567
  try {
561
- let i = [];
562
- if (Object.keys(this.steps).forEach((d, p) => {
563
- let b = {
564
- step: d,
565
- substeps: this.subSteps[p],
566
- substepCount: Object.keys(this.subSteps[p]).length
568
+ let o = [];
569
+ if (Object.keys(this.steps).forEach((l, r) => {
570
+ let f = {
571
+ step: l,
572
+ substeps: this.subSteps[r],
573
+ substepCount: Object.keys(this.subSteps[r]).length
567
574
  };
568
- i.push(b);
569
- }), e === "next" && (i[this.stepCounter].substepCount > 1 ? (this.substepCounter + 1 === i[this.stepCounter].substepCount ? (this.stepCounter++, this.activeStep = i[this.stepCounter].step, this.activeSubStep = Object.keys(
570
- i[this.stepCounter].substeps
575
+ o.push(f);
576
+ }), e === "next" && (o[this.stepCounter].substepCount > 1 ? (this.substepCounter + 1 === o[this.stepCounter].substepCount ? (this.stepCounter++, this.activeStep = o[this.stepCounter].step, this.activeSubStep = Object.keys(
577
+ o[this.stepCounter].substeps
571
578
  )[0], this.substepCounter = 0) : (this.substepCounter++, this.activeSubStep = Object.keys(
572
- i[this.stepCounter].substeps
573
- )[this.substepCounter]), this.handleDistributionsValidation(this.activeSubStep), this.activeStep === "ReviewAndPublish" && (this.formValues.ReviewAndPublish.reviewAndPublishPage.isValid = !0)) : this.stepCounter != i.length - 1 && (this.stepCounter++, this.activeSubStep = Object.keys(
574
- i[this.stepCounter].substeps
575
- )[0], this.activeStep = i[this.stepCounter].step)), e === "prev" && (i[this.stepCounter].substepCount > 1 ? this.substepCounter > 0 ? (this.substepCounter--, this.activeSubStep = Object.keys(
576
- i[this.stepCounter].substeps
577
- )[this.substepCounter]) : (this.stepCounter--, this.activeStep = i[this.stepCounter].step, this.substepCounter = Object.keys(i[this.stepCounter].substeps).length - 1, this.activeSubStep = Object.keys(
578
- i[this.stepCounter].substeps
579
- )[this.substepCounter]) : (this.substepCounter = Object.keys(i[this.stepCounter - 1].substeps).length - 1, this.stepCounter--, this.activeSubStep = Object.keys(
580
- i[this.stepCounter].substeps
581
- )[this.substepCounter], this.activeStep = i[this.stepCounter].step)), e === "publish") {
582
- let d = "auth/createDataset";
583
- W(
579
+ o[this.stepCounter].substeps
580
+ )[this.substepCounter]), this.handleDistributionsValidation(this.activeSubStep), this.activeStep === "ReviewAndPublish" && (this.formValues.ReviewAndPublish.reviewAndPublishPage = [{ isValid: !0 }])) : this.stepCounter != o.length - 1 && (this.stepCounter++, this.activeSubStep = Object.keys(
581
+ o[this.stepCounter].substeps
582
+ )[0], this.activeStep = o[this.stepCounter].step)), e === "prev" && (o[this.stepCounter].substepCount > 1 ? this.substepCounter > 0 ? (this.substepCounter--, this.activeSubStep = Object.keys(
583
+ o[this.stepCounter].substeps
584
+ )[this.substepCounter]) : (this.stepCounter--, this.activeStep = o[this.stepCounter].step, this.substepCounter = Object.keys(o[this.stepCounter].substeps).length - 1, this.activeSubStep = Object.keys(
585
+ o[this.stepCounter].substeps
586
+ )[this.substepCounter]) : (this.substepCounter = Object.keys(o[this.stepCounter - 1].substeps).length - 1, this.stepCounter--, this.activeSubStep = Object.keys(
587
+ o[this.stepCounter].substeps
588
+ )[this.substepCounter], this.activeStep = o[this.stepCounter].step)), e === "publish") {
589
+ let l = "auth/createDataset";
590
+ M(
584
591
  this.formValues,
585
592
  this.dpiContext,
586
593
  this.getUserData,
587
594
  this.$env.api.hubUrl
588
- ).then((p) => {
595
+ ).then((r) => {
589
596
  this.dispatchDataToDPI(
590
- p.body,
591
- d,
592
- p.actionParams,
597
+ r.body,
598
+ l,
599
+ r.actionParams,
593
600
  "publish"
594
601
  );
595
- }).catch((p) => {
596
- console.error("Fehler beim Senden der Daten:", p);
602
+ }).catch((r) => {
603
+ console.error("Fehler beim Senden der Daten:", r);
604
+ }), setTimeout(() => {
605
+ window.location.href = this.$router.resolve({
606
+ name: "DPI-Home-HappyFlow"
607
+ }).href;
608
+ }, 1e3);
609
+ }
610
+ if (e === "depublish") {
611
+ let l = "auth/depublishById";
612
+ M(
613
+ this.formValues,
614
+ this.dpiContext,
615
+ this.getUserData,
616
+ this.$env.api.hubUrl
617
+ ).then((r) => {
618
+ this.dispatchDataToDPI(
619
+ r.body,
620
+ l,
621
+ r.actionParams,
622
+ "depublish"
623
+ );
624
+ }).catch((r) => {
625
+ console.error("Fehler beim Senden der Daten:", r);
597
626
  }), setTimeout(() => {
598
627
  window.location.href = this.$router.resolve({
599
628
  name: "DPI-Home-HappyFlow"
@@ -601,45 +630,36 @@ const Ae = N({
601
630
  }, 1e3);
602
631
  }
603
632
  if (e === "draft") {
604
- let d = "auth/createUserDraft";
605
- W(
633
+ let l = "auth/createUserDraft";
634
+ M(
606
635
  this.formValues,
607
636
  this.dpiContext,
608
637
  this.getUserData,
609
638
  this.$env.api.hubUrl
610
- ).then((p) => {
639
+ ).then((r) => {
611
640
  this.dispatchDataToDPI(
612
- p.body,
613
- d,
614
- p.actionParams,
641
+ r.body,
642
+ l,
643
+ r.actionParams,
615
644
  "draft"
616
645
  );
617
- }).catch((p) => {
618
- console.error("Fehler beim Senden der Daten:", p);
646
+ }).catch((r) => {
647
+ console.error("Fehler beim Senden der Daten:", r);
619
648
  }), setTimeout(() => {
620
649
  window.location.href = this.$router.resolve({
621
650
  name: "DPI-Home-HappyFlow"
622
651
  }).href;
623
652
  }, 1e3);
624
653
  }
625
- } catch (i) {
626
- console.log(i);
627
- }
628
- },
629
- async dispatchDataToDPI(e, t, i, d) {
630
- var p, b;
631
- console.log("body:", e, t, "params:", i, d);
632
- try {
633
- d === "publish" && (i.token = this.getUserData.rtpToken, console.log(i.token), i.url = `${this.$env.api.hubUrl}catalogues/${i.catalog}/datasets/origin?originalId=${i.id}`, await this.$store.dispatch(t, i)), d === "draft" && await this.$store.dispatch(t, i), (p = this.$Progress) == null || p.finish(), this.clearAll();
634
- } catch (y) {
635
- console.error(y), (b = this.$Progress) == null || b.fail();
654
+ } catch (o) {
655
+ console.log(o);
636
656
  }
637
657
  },
638
658
  dropdownCLick() {
639
659
  const e = document.querySelectorAll(".formkitProperty h4");
640
- this.expandall && e.forEach((t, i) => {
660
+ this.expandall && e.forEach((t, o) => {
641
661
  t.classList.add("dpiChevUp"), t.nextElementSibling.classList.remove("d-none");
642
- }), this.expandall || e.forEach((t, i) => {
662
+ }), this.expandall || e.forEach((t, o) => {
643
663
  t.classList.remove("dpiChevUp"), t.nextElementSibling.classList.add("d-none");
644
664
  });
645
665
  },
@@ -650,29 +670,33 @@ const Ae = N({
650
670
  window.scrollTo(0, 0);
651
671
  },
652
672
  initInputPage() {
653
- this.activeSubStep = this.activeSubStep || "Landing";
654
- const e = this.getSchema(this.property).value, t = Object.keys(e).find(
655
- (i) => e[i].map((d) => d.name).includes("dct:issued") || e[i].map((d) => d.name).includes("dct:modified")
673
+ this.activeSubStep = this.activeSubStep || "Landing", _e().appContext.app.config.globalProperties.$env;
674
+ const t = this.getSchema(this.property).value, o = Object.keys(t).find(
675
+ (l) => t[l].map((r) => r.name).includes("dct:issued") || t[l].map((r) => r.name).includes("dct:modified")
656
676
  );
657
- this.$formkit.setLocale("de"), localStorage.getItem("dpi_editmode") === "true" && t != null && e[t].forEach((i) => {
658
- (i.identifier === "issued" || i.identifier === "modified") && (i.children[1].props.else.validation = "", i.children[1].props.else["validation-visibility"] = "", i.children[1].props.then.validation = "", i.children[1].props.then["validation-visibility"] = "", i.children[1].props.then.validation = "", i.children[1].props.then["validation-visibility"] = "");
677
+ this.$formkit.setLocale("de"), localStorage.getItem("dpi_editmode") === "true" && o != null && t[o].forEach((l) => {
678
+ (l.identifier === "issued" || l.identifier === "modified") && (l.children[1].props.else.validation = "", l.children[1].props.else["validation-visibility"] = "", l.children[1].props.then.validation = "", l.children[1].props.then["validation-visibility"] = "", l.children[1].props.then.validation = "", l.children[1].props.then["validation-visibility"] = "");
659
679
  }), localStorage.getItem("dpi_editmode") === "false" && (this.setIsDraft(!1), this.setIsEditMode(!1)), this.$nextTick(() => {
660
- J('[data-toggle="tooltip"]').tooltip({
680
+ fe('[data-bs-toggle="tooltip"]').tooltip({
661
681
  container: "body"
662
682
  }), setTimeout(() => {
663
- document.querySelectorAll(".formkitProperty h4").forEach((d, p) => {
664
- d.parentElement.parentElement.classList.contains(
683
+ document.querySelectorAll(".formkitProperty h4").forEach((r, f) => {
684
+ r.parentElement.parentElement.classList.contains(
665
685
  "formkitWrapRepeatable"
666
- ) || (p != 0 && p != 1 && p != 2 && p != 3 && d.nextElementSibling.classList.toggle("d-none"), d.addEventListener("click", () => {
667
- d.classList.toggle("dpiChevUp"), d.nextElementSibling.classList.toggle("d-none");
686
+ ) || (f != 0 && f != 1 && f != 2 && f != 3 && r.nextElementSibling.classList.toggle("d-none"), r.addEventListener("click", () => {
687
+ r.classList.toggle("dpiChevUp"), r.nextElementSibling.classList.toggle("d-none");
668
688
  }));
669
689
  }), document.querySelectorAll(".formkitProperty");
670
690
  });
671
691
  });
672
692
  },
693
+ handlePublishedRoute() {
694
+ const e = this.formValues[this.getTitleStep].datasetID, t = `${new URL(this.$env.api.baseUrl).origin}/`;
695
+ window.location.href = `${t}datasets/${e}?locale=de`;
696
+ },
673
697
  createDatasetID() {
674
698
  const e = this.formValues[this.getTitleStep];
675
- !I(e, "datasetID") || B(e.datasetID) ? this.formValues[this.getTitleStep].datasetID = this.createIDFromTitle : (this.createIDFromTitle.startsWith(e.datasetID) || e.datasetID.startsWith(this.createIDFromTitle)) && (this.formValues[this.getTitleStep].datasetID = this.createIDFromTitle);
699
+ !w(e, "datasetID") || x(e.datasetID) ? this.formValues[this.getTitleStep].datasetID = this.createIDFromTitle : (this.createIDFromTitle.startsWith(e.datasetID) || e.datasetID.startsWith(this.createIDFromTitle)) && (this.formValues[this.getTitleStep].datasetID = this.createIDFromTitle);
676
700
  },
677
701
  generateandTranslateSchema(e) {
678
702
  for (let t = 0; t < this.getNavSteps(this.$env.content.dataProviderInterface.specification)[e].length; t++)
@@ -714,455 +738,518 @@ const Ae = N({
714
738
  }
715
739
  }
716
740
  },
717
- beforeRouteEnter(e, t, i) {
718
- i((d) => {
719
- t.name && !t.name.startsWith("DataProviderInterface") && d.clearAll();
741
+ beforeRouteEnter(e, t, o) {
742
+ o((l) => {
743
+ t.name && !t.name.startsWith("DataProviderInterface") && l.clearAll();
720
744
  });
721
745
  },
722
746
  setup() {
723
- const e = Le(), { isEditMode: t } = Pe(), {
724
- steps: i,
725
- activeStep: d,
726
- subSteps: p,
727
- visitedSteps: b,
728
- previousStep: y,
729
- nextStep: m,
730
- stepPlugin: _,
731
- goToNextStep: T,
732
- goToPreviousStep: D
733
- } = oe(), { formValues: L } = ae(), { t: P, te: w } = te(), A = M(!1), { translateSchema: $, createSchema: R, getSchema: E } = we({
734
- t: P,
735
- te: w
736
- }), r = () => {
737
- let { x: g, y: q } = Y({ behavior: "smooth" });
738
- q.value = 0;
739
- }, c = (g) => (i[g].errorCount > 0 || i[g].blockingCount > 0) && b.value.includes(g), l = x({ OverviewPage: De }), v = M("");
740
- return t.value && (d.value = "ReviewAndPublish", v.value = "reviewAndPublishPage"), {
741
- steps: i,
742
- visitedSteps: b,
743
- activeStep: d,
744
- activeSubStep: v,
745
- subSteps: p,
746
- previousStep: y,
747
- nextStep: m,
748
- stepPlugin: _,
747
+ var j, H, W, G;
748
+ const e = Qe(), { isEditMode: t } = xe(), o = ke(), {
749
+ steps: l,
750
+ activeStep: r,
751
+ subSteps: f,
752
+ visitedSteps: D,
753
+ previousStep: T,
754
+ nextStep: L,
755
+ stepPlugin: P,
756
+ goToNextStep: $,
757
+ goToPreviousStep: A
758
+ } = Pe(), { formValues: g } = Te(), { t: V, te: R } = Ce(), U = se(!1), { translateSchema: E, createSchema: B, getSchema: d } = et({
759
+ t: V,
760
+ te: R
761
+ }), u = () => {
762
+ let { x: y, y: F } = ve({ behavior: "smooth" });
763
+ F.value = 0;
764
+ }, c = (y) => (l[y].errorCount > 0 || l[y].blockingCount > 0) && D.value.includes(y), b = ye({ OverviewPage: Xe }), S = se("");
765
+ t.value && (r.value = "ReviewAndPublish", S.value = "reviewAndPublishPage");
766
+ const { organization: re, catalogDataset: O, startFetchPermissions: le, authToken: ne } = we({
767
+ keycloak: ((H = (j = o.authentication) == null ? void 0 : j.keycloak) == null ? void 0 : H.url) || "https://keycloak.twin.bydata.de",
768
+ realm: ((G = (W = o.authentication) == null ? void 0 : W.keycloak) == null ? void 0 : G.realm) || "piveau",
769
+ audience: "piveau-hub-repo"
770
+ });
771
+ le();
772
+ const de = Ve();
773
+ async function ce(y, F, z, q) {
774
+ var K, Z, N, X, J, Y;
775
+ console.log("body:", y, F, "params:", z, q);
776
+ try {
777
+ await ge({
778
+ baseUrl: o.api.hubUrl,
779
+ id: z.id,
780
+ catalogId: O.value || z.catalog || "",
781
+ data: y,
782
+ authToken: ne.value,
783
+ publicationStatus: q === "publish" ? "published" : "draft",
784
+ accessLevel: ((X = (N = (Z = (K = g.value) == null ? void 0 : K.Discoverability) == null ? void 0 : Z.visibilityPage) == null ? void 0 : N[0]) == null ? void 0 : X.visibility) || de.query.visibility || "public",
785
+ type: "dataset"
786
+ }), (J = this.$Progress) == null || J.finish(), this.clearAll();
787
+ } catch (Q) {
788
+ console.error(Q), (Y = this.$Progress) == null || Y.fail();
789
+ }
790
+ }
791
+ return {
792
+ steps: l,
793
+ visitedSteps: D,
794
+ activeStep: r,
795
+ activeSubStep: S,
796
+ subSteps: f,
797
+ previousStep: T,
798
+ nextStep: L,
799
+ stepPlugin: P,
749
800
  checkStepValidity: c,
750
- goToNextStep: T,
751
- goToPreviousStep: D,
752
- scrollToTop: r,
753
- library: l,
801
+ goToNextStep: $,
802
+ goToPreviousStep: A,
803
+ scrollToTop: u,
804
+ library: b,
754
805
  isEditMode: t,
755
- translateSchema: $,
756
- createSchema: R,
757
- getSchema: E,
806
+ translateSchema: E,
807
+ createSchema: B,
808
+ getSchema: d,
758
809
  dpiContext: e,
759
- formValues: L,
760
- activeSimpleModal: A
810
+ formValues: g,
811
+ activeSimpleModal: U,
812
+ organization: re,
813
+ catalogDataset: O,
814
+ dispatchDataToDPI: ce
761
815
  };
762
816
  }
763
- }), $e = { class: "form-container V3-typography" }, Re = {
817
+ }), it = { class: "form-container V3-typography" }, st = {
764
818
  key: 0,
765
819
  ref: "fkInputContainer",
766
820
  class: "inputContainer"
767
- }, Ee = { class: "formContainer formkit" }, Be = { key: 0 }, Ue = { class: "dpiV3_stepper draftStepper" }, Fe = {
768
- key: 0,
769
- class: "draftCTA"
770
- }, Oe = {
771
- key: 1,
772
- class: "draftCTA"
773
- }, ze = { key: 1 }, Me = {
821
+ }, at = { class: "formContainer formkit" }, ot = { key: 0 }, rt = { class: "dpiV3_stepper draftStepper" }, lt = { key: 1 }, nt = {
774
822
  key: 0,
775
823
  class: "dpiV3_stepper"
776
- }, je = { class: "dpiV3_steps" }, He = ["data-step-active", "data-step-valid"], We = { class: "dpiV3_stepBubbleWrap" }, qe = ["src"], Ke = ["src"], Ze = ["textContent"], Ge = { style: { "vertical-align": "middle" } }, Xe = { class: "dpiV3_subStepWrapper" }, Ye = {
824
+ }, dt = { class: "dpiV3_steps" }, ct = ["data-step-active", "data-step-valid"], pt = { class: "dpiV3_stepBubbleWrap" }, ut = ["src"], ht = ["src"], mt = ["textContent"], gt = { style: { "vertical-align": "middle" } }, vt = { class: "dpiV3_subStepWrapper" }, ft = {
777
825
  key: 0,
778
826
  class: "dpiV3_seperatorHorizontalStepper"
779
- }, Je = {
827
+ }, bt = {
780
828
  key: 1,
781
829
  class: "dpiV3_seperatorHorizontalStepperFat"
782
- }, Ne = {
830
+ }, St = {
783
831
  key: 2,
784
832
  class: "dpiV3_subStep"
785
- }, Qe = { class: "dpiV3_subStepInner" }, xe = { class: "dpiV3_subStepCircleWrap" }, et = ["src"], tt = { style: { height: "20px", display: "flex", "align-items": "center" } }, it = {
833
+ }, yt = { class: "dpiV3_subStepInner" }, _t = { class: "dpiV3_subStepCircleWrap" }, Ct = ["src"], Vt = { style: { height: "20px", display: "flex", "align-items": "center" } }, kt = {
786
834
  key: 0,
787
835
  class: "dpiV3_step dpiV3_inactiveStep"
788
- }, st = {
836
+ }, It = {
789
837
  key: 1,
790
838
  class: "dpiV3_stepperLanding"
791
- }, at = { class: "dpiV3_bydata_logo_wordmark" }, ot = { class: "dpiV3_Illustration-Start" }, rt = {
839
+ }, Dt = { class: "dpiV3_bydata_logo_wordmark" }, Tt = { class: "dpiV3_Illustration-Start" }, Pt = {
792
840
  key: 2,
793
841
  class: "steps"
794
- }, lt = ["data-step-active", "data-step-valid", "onClick"], dt = { class: "stepBubbleWrap" }, nt = { class: "circle stepCircle" }, ct = ["textContent"], pt = {
842
+ }, wt = ["data-step-active", "data-step-valid", "onClick"], Lt = { class: "stepBubbleWrap" }, $t = { class: "circle stepCircle" }, At = ["textContent"], Rt = {
795
843
  key: 0,
796
844
  class: "seperatorHorizontalStepper"
797
- }, ut = {
845
+ }, Ut = {
798
846
  key: 0,
799
847
  class: "step inactiveStep"
800
- }, ht = { style: { width: "100%" } }, mt = {
848
+ }, Et = { style: { width: "100%" } }, Bt = {
801
849
  key: 0,
802
850
  class: "dpiV3_CTALanding"
803
- }, ft = {
851
+ }, Ft = {
804
852
  key: 1,
805
853
  class: "dpiV3_CTA_RaP"
806
- }, gt = { class: "dpiV3_CTANav" }, vt = { class: "dpiV3_CTANav" }, bt = {
854
+ }, zt = { class: "dpiV3_CTANav" }, Mt = { class: "dpiV3_CTANav" }, Ot = {
807
855
  key: 3,
808
856
  class: "dpiV3_Content_InputPage"
809
- }, St = { class: "dpiV3_Card_Tips" }, yt = { class: "dpiV3_Icon_Title" }, Ct = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, kt = { class: "dpiV3_CT-Content" }, Vt = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, _t = { class: "dpiV3_hvd_frame3846" }, Dt = { class: "dpiV3_copy_large_semi_bold" }, It = { class: "dpiV3_copy_large_regular" }, Tt = { class: "dpiV3_hvd_frame3846" }, Lt = { class: "dpiV3_copy_large_semi_bold" }, Pt = { class: "dpiV3_copy_large_regular" }, wt = { class: "dpiV3_hvd_frame3846" }, At = { class: "dpiV3_copy_large_semi_bold" }, $t = { class: "dpiV3_copy_large_regular" }, Rt = { class: "dpiV3_hvd_frame3846" }, Et = { class: "dpiV3_copy_large_semi_bold" }, Bt = { class: "dpiV3_copy_large_regular" }, Ut = {
857
+ }, jt = { class: "dpiV3_Card_Tips" }, Ht = { class: "dpiV3_Icon_Title" }, Wt = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, Gt = { class: "dpiV3_CT-Content" }, qt = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, Kt = { class: "dpiV3_hvd_frame3846" }, Zt = { class: "dpiV3_copy_large_semi_bold" }, Nt = { class: "dpiV3_copy_large_regular" }, Xt = { class: "dpiV3_hvd_frame3846" }, Jt = { class: "dpiV3_copy_large_semi_bold" }, Yt = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, Qt = { class: "dpiV3_hvd_frame3846" }, xt = { class: "dpiV3_copy_large_semi_bold" }, ei = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, ti = { class: "dpiV3_hvd_frame3846" }, ii = { class: "dpiV3_copy_large_semi_bold" }, si = { class: "dpiV3_copy_large_regular" }, ai = {
858
+ key: 4,
859
+ class: "dpiV3_Content_InputPage"
860
+ }, oi = { class: "dpiV3_Card_Tips" }, ri = { class: "dpiV3_Icon_Title" }, li = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, ni = { class: "dpiV3_CT-Content" }, di = { class: "dpiV3_copy_large_regular cleanPaddingMargins" }, ci = { class: "dpiV3_Info-Text" }, pi = { class: "dpiV3_copy_large_regular cleanPaddingMargins" }, ui = { class: "dpiV3_Info-Text" }, hi = {
810
861
  key: 5,
862
+ class: "dpiV3_Content_InputPage"
863
+ }, mi = { class: "dpiV3_Card_Tips" }, gi = { class: "dpiV3_Icon_Title" }, vi = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, fi = {
864
+ key: 7,
811
865
  class: "p-1"
812
866
  };
813
- function Ft(e, t, i, d, p, b) {
814
- const y = f("TextButtonSmall"), m = f("ButtonV3"), _ = f("LogoV3"), T = f("PhNumberCircleFive"), D = f("PhCheckCircle"), L = f("Illustration"), P = f("FormKitSchema"), w = f("PhLightbulb"), A = f("DistributionInputPage"), $ = f("InputPageStep"), R = f("FormKit"), E = f("ModalSimpleV3");
815
- return s(), o("div", $e, [
816
- e.isInput ? (s(), o("div", Re, [
817
- a("div", Ee, [
818
- h(R, {
867
+ function bi(e, t, o, l, r, f) {
868
+ const D = h("TextButtonSmall"), T = h("LogoV3"), L = h("PhNumberCircleFive"), P = h("PhCheckCircle"), $ = h("Illustration"), A = h("FormKitSchema"), g = h("ButtonV3"), V = h("PhLightbulb"), R = h("DistributionInputPage"), U = h("InputPageStep"), E = h("FormKit"), B = h("ModalSimpleV3");
869
+ return s(), a("div", it, [
870
+ e.isInput ? (s(), a("div", st, [
871
+ i("div", at, [
872
+ i("details", null, [
873
+ i("pre", null, n(JSON.stringify(e.formValues, null, 2)), 1)
874
+ ]),
875
+ m(E, {
819
876
  id: "dpiForm",
820
877
  modelValue: e.formValues,
821
- "onUpdate:modelValue": t[7] || (t[7] = (r) => e.formValues = r),
878
+ "onUpdate:modelValue": t[7] || (t[7] = (d) => e.formValues = d),
822
879
  type: "form",
823
880
  actions: !1,
824
881
  plugins: [e.stepPlugin],
825
882
  class: "d-flex",
826
- onSubmit: t[8] || (t[8] = Q(() => {
883
+ onSubmit: t[8] || (t[8] = Se(() => {
827
884
  }, ["prevent"]))
828
885
  }, {
829
- default: U(() => [
830
- e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (s(), o("div", Be, [
831
- a("div", Ue, [
832
- h(y, {
886
+ default: ee(() => [
887
+ e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (s(), a("div", ot, [
888
+ i("div", rt, [
889
+ m(D, {
833
890
  "button-text": "Übersicht",
834
891
  "icon-start": "CaretLeft",
835
892
  "icon-name": "caretLeft",
836
893
  onClick: e.gotToHome
837
- }, null, 8, ["onClick"]),
838
- a("div", null, [
839
- e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (s(), o("div", Fe, [
840
- h(m, {
841
- "button-text": "Veröffentlichung aufheben",
842
- size: "large",
843
- onClick: e.todoHandler
844
- }, null, 8, ["onClick"]),
845
- h(m, {
846
- "button-text": "Veröffentlicht ansehen",
847
- variant: "secondary",
848
- size: "large",
849
- "icon-end": "Out",
850
- onClick: e.todoHandler
851
- }, null, 8, ["onClick"])
852
- ])) : (s(), o("div", Oe, [
853
- h(m, {
854
- "button-text": "Veröffentlichen",
855
- size: "large",
856
- onClick: t[0] || (t[0] = (r) => e.navTrigger("publish"))
857
- })
858
- ]))
859
- ])
894
+ }, null, 8, ["onClick"])
860
895
  ])
861
- ])) : (s(), o("div", ze, [
862
- e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (s(), o("div", Me, [
863
- h(_),
864
- a("ul", je, [
865
- (s(!0), o(k, null, V(e.steps, (r, c, l) => F((s(), o("li", {
866
- key: r,
896
+ ])) : (s(), a("div", lt, [
897
+ e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (s(), a("div", nt, [
898
+ m(T),
899
+ i("ul", dt, [
900
+ (s(!0), a(k, null, I(e.steps, (d, u, c) => te((s(), a("li", {
901
+ key: d,
867
902
  class: C(["dpiV3_step", {
868
- dpiV3_activeItem: e.activeStep === c,
869
- inactiveStep: c != e.activeStep,
870
- "has-errors": e.checkStepValidity(c)
903
+ dpiV3_activeItem: e.activeStep === u,
904
+ inactiveStep: u != e.activeStep,
905
+ "has-errors": e.checkStepValidity(u)
871
906
  }]),
872
- "data-step-active": e.activeStep === c,
873
- "data-step-valid": r.valid && r.errorCount === 0
907
+ "data-step-active": e.activeStep === u,
908
+ "data-step-valid": d.valid && d.errorCount === 0
874
909
  }, [
875
- a("div", We, [
876
- a("div", {
877
- class: C({
878
- dpiV3_activeStepName: c === e.activeStep,
879
- formerlyVisitedStep: e.stepCounter > l,
880
- "copy-small-regular": e.stepCounter > l
881
- })
910
+ i("div", pt, [
911
+ i("div", {
912
+ class: C(["firstRowWrapper", {
913
+ dpiV3_activeStepName: u === e.activeStep,
914
+ formerlyVisitedStep: e.stepCounter > c,
915
+ "copy-small-regular": e.stepCounter > c
916
+ }])
882
917
  }, [
883
- e.activeStep === c && l < 5 ? (s(), o("img", {
918
+ e.activeStep === u && c < 5 ? (s(), a("img", {
884
919
  key: 0,
885
920
  class: "dpiV3_circle dpiV3_stepCircle",
886
- src: e.selectedImages[l - 1],
921
+ src: e.selectedImages[c - 1],
887
922
  alt: "Selected Icon"
888
- }, null, 8, qe)) : n("", !0),
889
- e.activeStep === c && l === 5 ? (s(), S(T, {
923
+ }, null, 8, ut)) : p("", !0),
924
+ e.activeStep === u && c === 5 ? (s(), v(L, {
890
925
  key: 1,
891
926
  size: 28,
892
927
  color: "#009FE3",
893
928
  weight: "fill"
894
- })) : n("", !0),
895
- l < e.stepCounter ? (s(), S(D, {
929
+ })) : p("", !0),
930
+ c < e.stepCounter ? (s(), v(P, {
896
931
  key: 2,
897
932
  size: 28,
898
933
  color: "#70CC44",
899
934
  weight: "fill"
900
- })) : n("", !0),
901
- l > e.stepCounter ? (s(), o("img", {
935
+ })) : p("", !0),
936
+ c > e.stepCounter ? (s(), a("img", {
902
937
  key: 3,
903
938
  class: "dpiV3_circle dpiV3_stepCircle",
904
- src: e.images[l - 1],
939
+ src: e.images[c - 1],
905
940
  alt: "Selected Icon"
906
- }, null, 8, Ke)) : n("", !0),
907
- e.checkStepValidity(c) ? (s(), o("span", {
941
+ }, null, 8, ht)) : p("", !0),
942
+ e.checkStepValidity(u) ? (s(), a("span", {
908
943
  key: 4,
909
944
  class: "dpiV3_step--errors",
910
- textContent: u(r.errorCount + r.blockingCount)
911
- }, null, 8, Ze)) : n("", !0),
912
- a("span", Ge, u(e.$t(`message.dataupload.steps.${c}Step`)), 1)
945
+ textContent: n(d.errorCount + d.blockingCount)
946
+ }, null, 8, mt)) : p("", !0),
947
+ i("span", gt, n(e.$t(`message.dataupload.steps.${u}Step`)), 1)
913
948
  ], 2),
914
- a("div", Xe, [
915
- l + 1 != Object.keys(e.steps).length - 1 && l >= e.stepCounter ? (s(), o("div", Ye)) : n("", !0),
916
- l + 1 != Object.keys(e.steps).length - 1 && l < e.stepCounter ? (s(), o("div", Je)) : n("", !0),
917
- e.activeStep === c ? (s(), o("div", Ne, [
918
- e.stepCounter < 5 ? (s(!0), o(k, { key: 0 }, V(Object.keys(
919
- e.subSteps[l]
920
- ), (v, g) => (s(), o("div", Qe, [
921
- a("div", xe, [
922
- e.substepCounter > g ? (s(), S(D, {
949
+ i("div", vt, [
950
+ c + 1 != Object.keys(e.steps).length - 1 && c >= e.stepCounter ? (s(), a("div", ft)) : p("", !0),
951
+ c + 1 != Object.keys(e.steps).length - 1 && c < e.stepCounter ? (s(), a("div", bt)) : p("", !0),
952
+ e.activeStep === u ? (s(), a("div", St, [
953
+ e.stepCounter < 5 ? (s(!0), a(k, { key: 0 }, I(Object.keys(
954
+ e.subSteps[c]
955
+ ), (b, S) => (s(), a("div", yt, [
956
+ i("div", _t, [
957
+ e.substepCounter > S ? (s(), v(P, {
923
958
  key: 0,
924
959
  size: 20,
925
960
  color: "#009FE3"
926
- })) : (s(), o("img", {
961
+ })) : (s(), a("img", {
927
962
  key: 1,
928
- src: e.getCircles(g),
963
+ src: e.getCircles(S),
929
964
  alt: "circle"
930
- }, null, 8, et)),
931
- g != Object.keys(e.subSteps[l]).length - 1 ? (s(), o("div", {
965
+ }, null, 8, Ct)),
966
+ S != Object.keys(e.subSteps[c]).length - 1 ? (s(), a("div", {
932
967
  key: 2,
933
968
  class: C(["dpiV3_seperatorHorizontalStepperInner", {
934
- dpiV3_seperatorHorizontalStepperInnerVisited: e.substepCounter > g
969
+ dpiV3_seperatorHorizontalStepperInnerVisited: e.substepCounter > S
935
970
  }])
936
- }, null, 2)) : n("", !0)
971
+ }, null, 2)) : p("", !0)
937
972
  ]),
938
- a("div", tt, [
939
- a("span", {
973
+ i("div", Vt, [
974
+ i("span", {
940
975
  class: C(["large-regular dpiV3_substepText", {
941
- dpiV3_activeStepDesc: v === e.activeSubStep,
942
- formerlyVisitedStep: e.substepCounter > g
976
+ dpiV3_activeStepDesc: b === e.activeSubStep,
977
+ formerlyVisitedStep: e.substepCounter > S
943
978
  }])
944
- }, u(e.$t(
945
- `message.dataupload.steps.${v.replace(/_\d+$/, "")}`
979
+ }, n(e.$t(
980
+ `message.dataupload.steps.${b.replace(
981
+ /_\d+$/,
982
+ ""
983
+ )}`
946
984
  )), 3)
947
985
  ])
948
- ]))), 256)) : n("", !0)
949
- ])) : n("", !0)
986
+ ]))), 256)) : p("", !0)
987
+ ])) : p("", !0)
950
988
  ])
951
989
  ])
952
- ], 10, He)), [
953
- [O, c !== "Landing" && c !== "Additionals"]
990
+ ], 10, ct)), [
991
+ [ie, u !== "Landing" && u !== "Additionals"]
954
992
  ])), 128)),
955
- e.activeStep === "Overview" ? (s(), o("li", it, t[11] || (t[11] = [
956
- a("div", { class: "dpiV3_circle dpiV3_stepCircle" }, null, -1)
957
- ]))) : n("", !0)
993
+ e.activeStep === "Overview" ? (s(), a("li", kt, t[11] || (t[11] = [
994
+ i("div", { class: "dpiV3_circle dpiV3_stepCircle" }, null, -1)
995
+ ]))) : p("", !0)
958
996
  ])
959
- ])) : (s(), o("div", st, [
960
- a("div", at, [
961
- h(_)
997
+ ])) : (s(), a("div", It, [
998
+ i("div", Dt, [
999
+ m(T)
962
1000
  ]),
963
- a("div", ot, [
964
- h(L, { "illustration-name": "start" })
1001
+ i("div", Tt, [
1002
+ m($, { "illustration-name": "start" })
965
1003
  ])
966
1004
  ]))
967
1005
  ])),
968
- e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (s(), o("ul", rt, [
969
- (s(!0), o(k, null, V(e.steps, (r, c, l) => (s(), o("li", {
970
- key: r,
1006
+ e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (s(), a("ul", Pt, [
1007
+ (s(!0), a(k, null, I(e.steps, (d, u, c) => (s(), a("li", {
1008
+ key: d,
971
1009
  class: C(["step", {
972
- activeItem: e.activeStep === c,
973
- inactiveStep: c != e.activeStep,
974
- "has-errors": e.checkStepValidity(c)
1010
+ activeItem: e.activeStep === u,
1011
+ inactiveStep: u != e.activeStep,
1012
+ "has-errors": e.checkStepValidity(u)
975
1013
  }]),
976
- "data-step-active": e.activeStep === c,
977
- "data-step-valid": r.valid && r.errorCount === 0,
978
- onClick: (v) => {
979
- e.activeStep = c, e.update(), e.scrollToTop();
1014
+ "data-step-active": e.activeStep === u,
1015
+ "data-step-valid": d.valid && d.errorCount === 0,
1016
+ onClick: (b) => {
1017
+ e.activeStep = u, e.update(), e.scrollToTop();
980
1018
  }
981
1019
  }, [
982
- a("div", dt, [
983
- a("div", nt, u(l + 1), 1),
984
- e.checkStepValidity(c) ? (s(), o("span", {
1020
+ i("div", Lt, [
1021
+ i("div", $t, n(c + 1), 1),
1022
+ e.checkStepValidity(u) ? (s(), a("span", {
985
1023
  key: 0,
986
1024
  class: "step--errors",
987
- textContent: u(r.errorCount + r.blockingCount)
988
- }, null, 8, ct)) : n("", !0),
989
- z(u(e.$t(`message.dataupload.steps.${c}Step`)), 1)
1025
+ textContent: n(d.errorCount + d.blockingCount)
1026
+ }, null, 8, At)) : p("", !0),
1027
+ _(n(e.$t(`message.dataupload.steps.${u}Step`)), 1)
990
1028
  ]),
991
- l != Object.keys(e.steps).length ? (s(), o("div", pt)) : n("", !0)
992
- ], 10, lt))), 128)),
993
- e.activeStep === "Overview" ? (s(), o("li", ut, t[12] || (t[12] = [
994
- a("div", { class: "circle stepCircle" }, null, -1)
995
- ]))) : n("", !0)
996
- ])) : n("", !0),
997
- (s(!0), o(k, null, V(e.getNavSteps(
1029
+ c != Object.keys(e.steps).length ? (s(), a("div", Rt)) : p("", !0)
1030
+ ], 10, wt))), 128)),
1031
+ e.activeStep === "Overview" ? (s(), a("li", Ut, t[12] || (t[12] = [
1032
+ i("div", { class: "circle stepCircle" }, null, -1)
1033
+ ]))) : p("", !0)
1034
+ ])) : p("", !0),
1035
+ (s(!0), a(k, null, I(e.getNavSteps(
998
1036
  e.$env.content.dataProviderInterface.specification
999
- )[e.property], (r, c) => (s(), S($, {
1000
- key: c,
1001
- name: r
1037
+ )[e.property], (d, u) => (s(), v(U, {
1038
+ key: u,
1039
+ name: d
1002
1040
  }, {
1003
- default: U(() => [
1004
- (s(!0), o(k, null, V(Object.keys(
1005
- e.getSchema(e.property).value[r]
1006
- ).length, (l, v) => F((s(), o("div", ht, [
1007
- r !== "Distributions" && r !== "Additionals" ? (s(), S(P, {
1041
+ default: ee(() => [
1042
+ (s(!0), a(k, null, I(Object.keys(
1043
+ e.getSchema(e.property).value[d]
1044
+ ).length, (c, b) => te((s(), a("div", Et, [
1045
+ d !== "Distributions" && d !== "Additionals" ? (s(), v(A, {
1008
1046
  key: 0,
1009
- schema: e.getSchema(e.property).value[r][v],
1047
+ schema: e.getSchema(e.property).value[d][b],
1010
1048
  library: e.library,
1011
1049
  "final-values": e.formValues,
1012
1050
  onHandleNav: () => {
1013
1051
  }
1014
- }, null, 8, ["schema", "library", "final-values"])) : n("", !0)
1052
+ }, null, 8, ["schema", "library", "final-values"])) : p("", !0)
1015
1053
  ], 512)), [
1016
1054
  [
1017
- O,
1055
+ ie,
1018
1056
  Object.values(
1019
- e.getSchema(e.property).value[r][v]
1020
- )[0] === e.activeSubStep.replace(/_\d+$/, "") || r === "Landing"
1057
+ e.getSchema(e.property).value[d][b]
1058
+ )[0] === e.activeSubStep.replace(/_\d+$/, "") || d === "Landing"
1021
1059
  ]
1022
1060
  ])), 256)),
1023
- e.activeStep === "Landing" ? (s(), o("div", mt, [
1024
- h(m, {
1061
+ e.activeStep === "Landing" ? (s(), a("div", Bt, [
1062
+ m(g, {
1025
1063
  "button-text": "Abbrechen",
1026
1064
  size: "large",
1027
1065
  variant: "tertiary",
1028
- onClick: t[1] || (t[1] = (l) => e.activeSimpleModal = !0)
1066
+ onClick: t[0] || (t[0] = (c) => {
1067
+ e.activeSimpleModal = !0, console.log(e.activeSimpleModal);
1068
+ })
1029
1069
  }),
1030
- h(m, {
1070
+ m(g, {
1031
1071
  "button-text": "Datenbereitstellung starten",
1032
1072
  size: "large",
1033
- onClick: t[2] || (t[2] = (l) => e.navTrigger("next"))
1073
+ onClick: t[1] || (t[1] = (c) => e.navTrigger("next"))
1034
1074
  })
1035
- ])) : n("", !0),
1036
- e.activeStep === "ReviewAndPublish" ? (s(), o("div", ft, [
1037
- a("div", gt, [
1038
- h(m, {
1039
- "button-text": "Als Entwurf speichern",
1075
+ ])) : p("", !0),
1076
+ e.activeStep === "ReviewAndPublish" ? (s(), a("div", Ft, [
1077
+ i("div", zt, [
1078
+ e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (s(), v(g, {
1079
+ key: 0,
1080
+ "button-text": "Veröffentlichung aufheben",
1040
1081
  size: "large",
1041
1082
  variant: "secondary",
1042
- onClick: t[3] || (t[3] = (l) => e.navTrigger("draft"))
1043
- }),
1044
- h(m, {
1045
- "button-text": "Veröffentlichen",
1083
+ onClick: t[2] || (t[2] = (c) => e.navTrigger("depublish"))
1084
+ })) : (s(), v(g, {
1085
+ key: 1,
1086
+ "button-text": "Als Entwurf speichern",
1046
1087
  size: "large",
1047
- onClick: t[4] || (t[4] = (l) => e.formValues[e.activeStep][e.activeSubStep][0].isValid === !0 ? e.navTrigger("publish") : e.formValues[e.activeStep][e.activeSubStep][0].isValid = !1)
1048
- })
1088
+ onClick: t[3] || (t[3] = (c) => e.navTrigger("draft"))
1089
+ }))
1049
1090
  ])
1050
- ])) : n("", !0),
1051
- e.activeStep !== "Landing" && e.activeStep !== "ReviewAndPublish" ? (s(), o("div", {
1091
+ ])) : p("", !0),
1092
+ e.activeStep !== "Landing" && e.activeStep !== "ReviewAndPublish" ? (s(), a("div", {
1052
1093
  key: 2,
1053
1094
  class: C(["dpiV3_CTA", {
1054
- dpiV3_activeInfobox: e.activeSubStep.includes("hvdPage")
1095
+ dpiV3_activeInfobox: ["hvdPage", "visibilityPage", "dcatde:politicalGeocodingURI"].includes(e.activeSubStep)
1055
1096
  }])
1056
1097
  }, [
1057
- h(m, {
1098
+ m(g, {
1058
1099
  "button-text": "Abbrechen",
1059
1100
  size: "large",
1060
1101
  variant: "tertiary",
1061
- onClick: e.cancelWizard
1062
- }, null, 8, ["onClick"]),
1063
- a("div", vt, [
1064
- e.activeStep !== "Landing" ? (s(), S(m, {
1102
+ onClick: t[4] || (t[4] = (c) => e.activeSimpleModal = !0)
1103
+ }),
1104
+ i("div", Mt, [
1105
+ e.activeStep !== "Landing" ? (s(), v(g, {
1065
1106
  key: 0,
1066
1107
  "icon-start": "CaretLeft",
1067
1108
  "button-text": "Zurück",
1068
1109
  size: "large",
1069
1110
  variant: "secondary",
1070
- onClick: t[5] || (t[5] = (l) => e.navTrigger("prev"))
1071
- })) : n("", !0),
1072
- h(m, {
1111
+ onClick: t[5] || (t[5] = (c) => e.navTrigger("prev"))
1112
+ })) : p("", !0),
1113
+ m(g, {
1073
1114
  "icon-end": "CaretRight",
1074
1115
  "button-text": "Weiter",
1075
1116
  size: "large",
1076
- onClick: t[6] || (t[6] = (l) => e.formValues[e.activeStep][e.activeSubStep][0].isValid === !0 ? e.navTrigger("next") : (e.formValues[e.activeStep][e.activeSubStep][0].isValid = !1, e.handleDistributionsValidation(e.activeSubStep)))
1117
+ onClick: t[6] || (t[6] = (c) => e.validateStep())
1077
1118
  })
1078
1119
  ])
1079
- ], 2)) : n("", !0),
1080
- e.activeSubStep.includes("hvdPage") ? (s(), o("div", bt, [
1081
- a("div", St, [
1082
- a("div", yt, [
1083
- h(w, {
1120
+ ], 2)) : p("", !0),
1121
+ e.activeSubStep.includes("hvdPage") ? (s(), a("div", Ot, [
1122
+ i("div", jt, [
1123
+ i("div", Ht, [
1124
+ m(V, {
1084
1125
  size: 32,
1085
1126
  color: "#009fe3"
1086
1127
  }),
1087
- a("div", Ct, u(e.$t("message.dataupload.datasets.hvdPage.tips-hvd")), 1)
1128
+ i("div", Wt, n(e.$t("message.dataupload.datasets.hvdPage.tips-hvd")), 1)
1088
1129
  ]),
1089
- a("div", kt, [
1090
- a("div", Vt, u(e.$t("message.dataupload.datasets.hvdPage.tips-text")), 1),
1091
- a("div", _t, [
1092
- a("div", Dt, " 1. " + u(e.$t(
1130
+ i("div", Gt, [
1131
+ i("div", qt, n(e.$t("message.dataupload.datasets.hvdPage.tips-text")), 1),
1132
+ i("div", Kt, [
1133
+ i("div", Zt, " 1. " + n(e.$t(
1093
1134
  "message.dataupload.datasets.hvdPage.tips-question-1"
1094
1135
  )), 1),
1095
- a("ul", It, [
1096
- a("li", null, u(e.$t(
1136
+ i("ul", Nt, [
1137
+ i("li", null, n(e.$t(
1097
1138
  "message.dataupload.datasets.hvdPage.hvd-category-1"
1098
1139
  )), 1),
1099
- a("li", null, u(e.$t(
1140
+ i("li", null, n(e.$t(
1100
1141
  "message.dataupload.datasets.hvdPage.hvd-category-2"
1101
1142
  )), 1),
1102
- a("li", null, u(e.$t(
1143
+ i("li", null, n(e.$t(
1103
1144
  "message.dataupload.datasets.hvdPage.hvd-category-3"
1104
1145
  )), 1),
1105
- a("li", null, u(e.$t(
1146
+ i("li", null, n(e.$t(
1106
1147
  "message.dataupload.datasets.hvdPage.hvd-category-4"
1107
1148
  )), 1),
1108
- a("li", null, u(e.$t(
1149
+ i("li", null, n(e.$t(
1109
1150
  "message.dataupload.datasets.hvdPage.hvd-category-5"
1110
1151
  )), 1),
1111
- a("li", null, u(e.$t(
1152
+ i("li", null, n(e.$t(
1112
1153
  "message.dataupload.datasets.hvdPage.hvd-category-6"
1113
1154
  )), 1)
1114
1155
  ])
1115
1156
  ]),
1116
- a("div", Tt, [
1117
- a("div", Lt, " 2. " + u(e.$t(
1157
+ i("div", Xt, [
1158
+ i("div", Jt, " 2. " + n(e.$t(
1118
1159
  "message.dataupload.datasets.hvdPage.tips-question-2"
1119
1160
  )), 1),
1120
- a("p", Pt, u(e.$t("message.dataupload.datasets.hvdPage.tips-example-2")), 1)
1161
+ i("p", Yt, n(e.$t("message.dataupload.datasets.hvdPage.tips-example-2")), 1)
1121
1162
  ]),
1122
- a("div", wt, [
1123
- a("div", At, " 3. " + u(e.$t(
1163
+ i("div", Qt, [
1164
+ i("div", xt, " 3. " + n(e.$t(
1124
1165
  "message.dataupload.datasets.hvdPage.tips-question-3"
1125
1166
  )), 1),
1126
- a("p", $t, u(e.$t("message.dataupload.datasets.hvdPage.tips-example-3")), 1)
1167
+ i("p", ei, n(e.$t("message.dataupload.datasets.hvdPage.tips-example-3")), 1)
1127
1168
  ]),
1128
- a("div", Rt, [
1129
- a("div", Et, " 4. " + u(e.$t(
1169
+ i("div", ti, [
1170
+ i("div", ii, " 4. " + n(e.$t(
1130
1171
  "message.dataupload.datasets.hvdPage.tips-question-4"
1131
1172
  )), 1),
1132
- a("p", Bt, u(e.$t("message.dataupload.datasets.hvdPage.tips-example-4")), 1)
1173
+ i("p", si, n(e.$t("message.dataupload.datasets.hvdPage.tips-example-4")), 1)
1133
1174
  ])
1134
1175
  ])
1135
1176
  ])
1136
- ])) : n("", !0),
1137
- r === "Distributions" ? (s(), S(A, {
1138
- key: 4,
1177
+ ])) : p("", !0),
1178
+ e.activeSubStep.includes("visibilityPage") ? (s(), a("div", ai, [
1179
+ i("div", oi, [
1180
+ i("div", ri, [
1181
+ m(V, {
1182
+ size: 32,
1183
+ color: "#009fe3"
1184
+ }),
1185
+ i("div", li, n(e.$t("message.dataupload.datasets.visibilityPage.info-title")), 1)
1186
+ ]),
1187
+ i("div", ni, [
1188
+ i("p", di, [
1189
+ i("span", ci, n(e.$t("message.dataupload.datasets.visibilityPage.metadata-label")), 1),
1190
+ _(" " + n(e.$t("message.dataupload.datasets.visibilityPage.metadata-explanation")), 1)
1191
+ ]),
1192
+ i("p", pi, [
1193
+ _(n(e.$t("message.dataupload.datasets.visibilityPage.distribution-explanation-prefix")) + " ", 1),
1194
+ i("span", ui, n(e.$t("message.dataupload.datasets.visibilityPage.distribution-label")), 1),
1195
+ _(" " + n(e.$t("message.dataupload.datasets.visibilityPage.distribution-explanation-suffix")), 1)
1196
+ ])
1197
+ ])
1198
+ ])
1199
+ ])) : p("", !0),
1200
+ e.activeSubStep.includes("dcatde:politicalGeocodingURI") ? (s(), a("div", hi, [
1201
+ i("div", mi, [
1202
+ i("div", gi, [
1203
+ m(V, {
1204
+ size: 32,
1205
+ color: "#009fe3"
1206
+ }),
1207
+ i("div", vi, n(e.$t("message.dataupload.datasets.visibilityPage.info-title")), 1)
1208
+ ]),
1209
+ t[13] || (t[13] = i("div", { class: "dpiV3_CT-Content dpiV3_CT-Content--tips" }, [
1210
+ i("p", { class: "dpiV3_copy_large_regular cleanPaddingMargins" }, " Je nachdem, wie sich der räumliche Bezug Ihres Datensatzes gestaltet, stehen Ihnen zwei Möglichkeiten zur Auswahl: "),
1211
+ i("ul", { class: "dpiV3_copy_large_regular cleanPaddingMargins" }, [
1212
+ i("li", null, [
1213
+ i("strong", null, "Administrativer Bezug:"),
1214
+ _(" Wenn sich Ihr Datensatz auf eine bestimmte administrative bzw. politische Einheit bezieht, wählen Sie die entsprechende Gebietseinheit aus den angebotenen Vokabularlisten aus. ")
1215
+ ]),
1216
+ i("li", null, [
1217
+ i("strong", null, "Geodatensatz:"),
1218
+ _(" Falls Ihr Datensatz auf einem konkreten geografischen Gebiet basiert, tragen Sie bitte die entsprechende URI ein, die Sie über den Dienst https://sws.geonames.org/ generieren können. ")
1219
+ ])
1220
+ ])
1221
+ ], -1))
1222
+ ])
1223
+ ])) : p("", !0),
1224
+ d === "Distributions" ? (s(), v(R, {
1225
+ key: 6,
1139
1226
  schema: e.getSchema("distributions"),
1140
1227
  values: e.formValues
1141
- }, null, 8, ["schema", "values"])) : n("", !0),
1142
- r === "Mandatory" ? (s(), o("p", Ut, [
1143
- t[13] || (t[13] = a("b", null, "*", -1)),
1144
- z(" " + u(e.$t("message.dataupload.info.mandatory")), 1)
1145
- ])) : n("", !0)
1228
+ }, null, 8, ["schema", "values"])) : p("", !0),
1229
+ d === "Mandatory" ? (s(), a("p", fi, [
1230
+ t[14] || (t[14] = i("b", null, "*", -1)),
1231
+ _(" " + n(e.$t("message.dataupload.info.mandatory")), 1)
1232
+ ])) : p("", !0)
1146
1233
  ]),
1147
1234
  _: 2
1148
1235
  }, 1032, ["name"]))), 128))
1149
1236
  ]),
1150
1237
  _: 1
1151
1238
  }, 8, ["modelValue", "plugins"]),
1152
- e.activeSimpleModal ? (s(), S(E, {
1239
+ e.activeSimpleModal ? (s(), v(B, {
1153
1240
  key: 0,
1154
1241
  buttons: e.modalSimpleConf.button,
1155
1242
  "header-text": e.modalSimpleConf.header,
1156
1243
  text: e.modalSimpleConf.text,
1157
1244
  action: e.modalSimpleConf.action,
1158
- onClose: t[9] || (t[9] = (r) => e.activeSimpleModal = !1),
1159
- onActionHandling: t[10] || (t[10] = (r) => e.gotToHome())
1160
- }, null, 8, ["buttons", "header-text", "text", "action"])) : n("", !0)
1245
+ onClose: t[9] || (t[9] = (d) => e.activeSimpleModal = !1),
1246
+ onActionHandling: t[10] || (t[10] = (d) => e.gotToHome())
1247
+ }, null, 8, ["buttons", "header-text", "text", "action"])) : p("", !0)
1161
1248
  ])
1162
- ], 512)) : n("", !0)
1249
+ ], 512)) : p("", !0)
1163
1250
  ]);
1164
1251
  }
1165
- const Ii = /* @__PURE__ */ Te(Ae, [["render", Ft]]);
1252
+ const ps = /* @__PURE__ */ Ye(tt, [["render", bi]]);
1166
1253
  export {
1167
- Ii as default
1254
+ ps as default
1168
1255
  };