@piveau/dpi 0.1.0-beta.8 → 0.1.0-twinby.0

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 (49) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/data-provider-interface/DPIMenu.vue.js +7 -7
  3. package/dist/data-provider-interface/DataProviderInterface.vue2.js +18 -17
  4. package/dist/data-provider-interface/HappyFlowComponents/ui/Autocomplete/Autocomplete.vue.js +7 -0
  5. package/dist/data-provider-interface/HappyFlowComponents/ui/Autocomplete/Autocomplete.vue2.js +122 -0
  6. package/dist/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteInputDefinition.js +14 -0
  7. package/dist/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocabFormKit.vue.js +75 -0
  8. package/dist/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocabFormKit.vue2.js +4 -0
  9. package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectNameStep.vue.js +29 -0
  10. package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +7 -0
  11. package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +70 -0
  12. package/dist/data-provider-interface/HappyFlowComponents/ui/Chip.vue.js +19 -20
  13. package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +1 -1
  14. package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue2.js +32 -28
  15. package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +1 -1
  16. package/dist/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js +21 -0
  17. package/dist/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +60 -0
  18. package/dist/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue2.js +4 -0
  19. package/dist/data-provider-interface/HappyFlowComponents/ui/ListBox/Listbox.vue.js +7 -0
  20. package/dist/data-provider-interface/HappyFlowComponents/ui/ListBox/Listbox.vue2.js +98 -0
  21. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js +16 -21
  22. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +83 -81
  23. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +2 -4
  24. package/dist/data-provider-interface/components/DistLicense.vue.js +61 -63
  25. package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +791 -779
  26. package/dist/data-provider-interface/components/HVDPage.vue.js +45 -43
  27. package/dist/data-provider-interface/components/InputPageStep.vue.js +9 -11
  28. package/dist/data-provider-interface/components/ProgressSteps.vue.js +7 -0
  29. package/dist/data-provider-interface/components/ProgressSteps.vue2.js +106 -0
  30. package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +204 -204
  31. package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +211 -212
  32. package/dist/data-provider-interface/composables/useDpiStepper.js +80 -39
  33. package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +145 -105
  34. package/dist/data-provider-interface/store/modules/conversionStore.js +130 -0
  35. package/dist/data-provider-interface/store/modules/dpiStore.js +18 -16
  36. package/dist/data-provider-interface/utils/RDFconverter.js +226 -0
  37. package/dist/data-provider-interface/utils/inputConverter.js +255 -0
  38. package/dist/data-provider-interface/utils/useSteps.js +39 -30
  39. package/dist/data-provider-interface/views/InputPage.vue.js +80 -92
  40. package/dist/data-provider-interface/views/InputPageProject.vue.js +528 -0
  41. package/dist/index.js +31 -27
  42. package/dist/stories/components/DemoStep.vue.js +331 -0
  43. package/dist/stories/components/DemoStepper.vue.js +7 -0
  44. package/dist/stories/components/DemoStepper.vue2.js +160 -0
  45. package/dist/stories/components/PartnerCard.vue.js +7 -0
  46. package/dist/stories/components/PartnerCard.vue2.js +32 -0
  47. package/dist/stories/components/ReviewStepDemo.vue.js +7 -0
  48. package/dist/stories/components/ReviewStepDemo.vue2.js +98 -0
  49. package/package.json +11 -4
@@ -0,0 +1,528 @@
1
+ import { getNode as N } from "@formkit/core";
2
+ import "@formkit/vue";
3
+ import { getValidationMessages as ne } from "@formkit/validation";
4
+ import { PhCheckCircle as se, PhLightbulb as re } from "@phosphor-icons/vue";
5
+ import { useWindowScroll as ae } from "@vueuse/core";
6
+ import "jquery";
7
+ import { has as $, isNil as O } from "lodash-es";
8
+ import { defineComponent as le, resolveComponent as p, createElementBlock as r, openBlock as i, createCommentVNode as h, createElementVNode as s, createVNode as o, createBlock as q, withModifiers as de, withCtx as k, Fragment as K, renderList as W, normalizeClass as pe, createTextVNode as L, toDisplayString as v, ref as y, computed as ue, markRaw as ce, toRef as me, watch as fe, nextTick as he } from "vue";
9
+ import { useI18n as ve } from "vue-i18n";
10
+ import { mapActions as j, mapGetters as z } from "vuex";
11
+ import ge from "../components/InputPageStep.vue.js";
12
+ import { useFormValues as Se } from "../composables/useDpiFormValues.js";
13
+ import { useDpiStepper as be } from "../composables/useDpiStepper.js";
14
+ import ke from "../config/dcatapdeHappyFlow/converter.js";
15
+ import { eventBus as ye } from "../HappyFlowComponents/services/eventBus.js";
16
+ import Ve from "../HappyFlowComponents/ui/ButtonV3.vue.js";
17
+ import Ce from "../HappyFlowComponents/ui/Illustration.vue.js";
18
+ import we from "../HappyFlowComponents/ui/LogoV3.vue.js";
19
+ import Ie from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
20
+ import Te from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
21
+ import De from "./DistributionInputPage.vue.js";
22
+ import $e from "./OverviewPage.vue.js";
23
+ import Pe from "../../stories/components/DemoStepper.vue.js";
24
+ import _e from "../../stories/components/DemoStep.vue.js";
25
+ import Fe from "../components/ProgressSteps.vue.js";
26
+ import Me from "../../stories/components/ReviewStepDemo.vue.js";
27
+ /* empty css */
28
+ /* empty css */
29
+ /* empty css */
30
+ import Re from "../../_virtual/_plugin-vue_export-helper.js";
31
+ import { useDpiContext as Ae } from "../composables/useDpiContext.js";
32
+ import { useEditModeInfo as Le } from "../composables/useDpiEditMode.js";
33
+ import { useFormSchema as Be } from "../composables/useFormSchema.js";
34
+ const He = le({
35
+ props: {
36
+ property: {
37
+ required: !0,
38
+ type: String
39
+ },
40
+ context: {},
41
+ id: {
42
+ type: String
43
+ }
44
+ },
45
+ data() {
46
+ return {
47
+ modalSimpleConf: {
48
+ button: "Ja, abbrechen",
49
+ header: "Wollen Sie wirklich abbrechen?",
50
+ text: "Beim Abbrechen gehen alle eingegebenen Daten unwiderruflich verloren und können nicht wiederhergestellt werden.",
51
+ action: "cancel"
52
+ }
53
+ };
54
+ },
55
+ components: {
56
+ InputPageStep: ge,
57
+ DistributionInputPage: De,
58
+ LogoV3: we,
59
+ ButtonV3: Ve,
60
+ TextButtonSmall: Te,
61
+ Illustration: Ce,
62
+ PhLightbulb: re,
63
+ PhCheckCircle: se,
64
+ ModalSimpleV3: Ie,
65
+ DemoStepper: Pe,
66
+ DemoStep: _e,
67
+ ProgressSteps: Fe,
68
+ ReviewStepDemo: Me
69
+ },
70
+ computed: {
71
+ ...z("auth", [
72
+ "getIsEditMode",
73
+ "getUserCatalogIds",
74
+ "getUserData"
75
+ ]),
76
+ ...z("dpiStore", ["getNavSteps", "getDeleteDistributionInline"]),
77
+ getTitleStep() {
78
+ return Object.keys(this.formValues).filter(
79
+ (e) => $(this.formValues[e], "dct:title")
80
+ )[0];
81
+ },
82
+ createIDFromTitle() {
83
+ const e = this.formValues[this.getTitleStep]["dct:title"][0]["@value"];
84
+ if (e != null)
85
+ return e.toLowerCase().replace(/ /g, "-");
86
+ },
87
+ getFirstTitleFromForm() {
88
+ try {
89
+ const e = this.formValues[this.getTitleStep];
90
+ return $(e, "dct:title") && e["dct:title"].length > 0 && $(e["dct:title"][0], "@value") && !O(e["dct:title"][0], "@value") ? e["dct:title"][0]["@value"] : "";
91
+ } catch {
92
+ }
93
+ },
94
+ isInput() {
95
+ return this.$route.params.page !== "overview" && this.$route.params.page !== "distoverview";
96
+ }
97
+ },
98
+ methods: {
99
+ ...j("auth", ["setIsEditMode", "setIsDraft"]),
100
+ ...j("dpiStore", [
101
+ "saveFormValues",
102
+ "saveLocalstorageValues",
103
+ "clearAll"
104
+ ]),
105
+ update() {
106
+ this.$forceUpdate();
107
+ },
108
+ // Route to the RAP Page
109
+ goToRAP() {
110
+ this.fillData(), this.activeStep = "ReviewAndPublish", this.activeSubStep = Object.keys(N(this.activeStep).value)[0];
111
+ },
112
+ handleDistributionsValidation(e) {
113
+ ye.emit("nextClicked", e);
114
+ },
115
+ gotToHome() {
116
+ window.location.href = this.$router.resolve({
117
+ name: "DPI-Home-HappyFlow"
118
+ }).href;
119
+ },
120
+ async dispatchDataToDPI(e, t, l, S) {
121
+ var V, u;
122
+ console.log("body:", e, t, "params:", l, S);
123
+ try {
124
+ S === "publish" && (l.token = this.getUserData.rtpToken, console.log(l.token), l.url = `${this.$env.api.hubUrl}catalogues/${l.catalog}/datasets/origin?originalId=${l.id}`, await this.$store.dispatch(t, l)), S === "draft" && await this.$store.dispatch(t, l), (V = this.$Progress) == null || V.finish(), this.clearAll();
125
+ } catch (b) {
126
+ console.error(b), (u = this.$Progress) == null || u.fail();
127
+ }
128
+ },
129
+ clearForm() {
130
+ this.$formkit.reset("dpi");
131
+ },
132
+ scrollToTop() {
133
+ window.scrollTo(0, 0);
134
+ },
135
+ createDatasetID() {
136
+ const e = this.formValues[this.getTitleStep];
137
+ !$(e, "datasetID") || O(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);
138
+ },
139
+ generateandTranslateSchema(e) {
140
+ for (let t = 0; t < this.getNavSteps(this.$env.content.dataProviderInterface.specification)[e].length; t++)
141
+ this.createSchema({
142
+ property: e,
143
+ page: this.getNavSteps(
144
+ this.$env.content.dataProviderInterface.specification
145
+ )[e][t],
146
+ specification: this.$env.content.dataProviderInterface.specification
147
+ }), this.translateSchema({
148
+ property: e,
149
+ page: this.getNavSteps(
150
+ this.$env.content.dataProviderInterface.specification
151
+ )[e][t]
152
+ });
153
+ }
154
+ },
155
+ created() {
156
+ this.$route.query.edit === "false" && this.clearAll();
157
+ },
158
+ // mounted() {
159
+ // this.initInputPage()
160
+ // },
161
+ watch: {
162
+ // 'activeStep': {
163
+ // handler() {
164
+ // this.scrollToTop()
165
+ // },
166
+ // },
167
+ // 'getFirstTitleFromForm': {
168
+ // handler(newVal, oldVal) {
169
+ // if (newVal === oldVal)
170
+ // return
171
+ // if (localStorage.getItem('dpi_editmode') === 'false') {
172
+ // this.setIsDraft(false)
173
+ // this.setIsEditMode(false)
174
+ // }
175
+ // // only create id from title if the user is not editing an existing dataset with an existing datasetID
176
+ // if (!this.isEditMode) {
177
+ // // this.createDatasetID();
178
+ // }
179
+ // },
180
+ // },
181
+ // the schema is a computed value which gets computed only once so on language change this value must be re-computed
182
+ // '$i18n.locale': {
183
+ // handler() {
184
+ // this.generateandTranslateSchema(this.property)
185
+ // if (this.property === 'datasets')
186
+ // this.generateandTranslateSchema('distributions')
187
+ // },
188
+ // },
189
+ },
190
+ // beforeRouteEnter(to, from, next) {
191
+ // // Always clear storage when entering DPI
192
+ // next((vm) => {
193
+ // if (from.name && !from.name.startsWith('DataProviderInterface')) {
194
+ // vm.clearAll()
195
+ // }
196
+ // })
197
+ // },
198
+ setup() {
199
+ const e = Ae(), { isEditMode: t } = Le(), {
200
+ steps: l,
201
+ stepList: S,
202
+ visitedSteps: V,
203
+ activeStep: u,
204
+ stepPlugin: b,
205
+ goToNextStep: c,
206
+ goToPreviousStep: C,
207
+ subSteps: P,
208
+ previousStep: _,
209
+ nextStep: F,
210
+ current: f,
211
+ isLast: g,
212
+ triggerValidationCurrentStep: M
213
+ } = be(), { formValues: w } = Se(), { t: n, te: m } = ve(), I = y(!1), R = y(!1), T = y([]), J = ue(() => u.value ? N(u.value) : null), G = (a) => {
214
+ if (!a) return;
215
+ const d = ne(a);
216
+ T.value = [], d.forEach((D) => {
217
+ T.value = T.value.concat(
218
+ D.map((ie) => ie.value)
219
+ );
220
+ });
221
+ }, { translateSchema: Z, createSchema: Q, getSchema: X } = Be({
222
+ t: n,
223
+ te: m
224
+ }), Y = () => {
225
+ let { x: a, y: d } = ae({ behavior: "smooth" });
226
+ d.value = 0;
227
+ }, x = ce({ OverviewPage: $e }), B = y("");
228
+ t.value && (u.value = "ReviewAndPublish", B.value = "reviewAndPublishPage");
229
+ const ee = me(l), A = (a) => {
230
+ var D;
231
+ const d = (D = ee.value) == null ? void 0 : D[a];
232
+ return d ? d.valid : !1;
233
+ }, H = y(!1), E = y(0);
234
+ fe(u, (a) => {
235
+ a === "review" && (H.value = !0, E.value++);
236
+ });
237
+ const te = async () => {
238
+ try {
239
+ const a = "auth/createDataset", d = await ke(
240
+ w.value,
241
+ e,
242
+ // We'll need to access getUserData somehow - for now using a placeholder
243
+ {},
244
+ // We'll need to access $env.api.hubUrl - for now using a placeholder
245
+ ""
246
+ );
247
+ console.log("Publishing:", d), setTimeout(() => {
248
+ window.location.href = "/dpi-home-happyflow";
249
+ }, 1e3);
250
+ } catch (a) {
251
+ console.error("Fehler beim Veröffentlichen:", a);
252
+ }
253
+ };
254
+ function U() {
255
+ A(f.value) && c();
256
+ }
257
+ async function oe() {
258
+ M(), await he();
259
+ const a = J.value, d = a ? !A(f.value) : !1;
260
+ d && G(a), R.value = d, g.value ? console.log("Form submitted", values.value) : U();
261
+ }
262
+ return {
263
+ steps: l,
264
+ visitedSteps: V,
265
+ activeStep: u,
266
+ activeSubStep: B,
267
+ subSteps: P,
268
+ previousStep: _,
269
+ stepList: S,
270
+ nextStep: F,
271
+ stepPlugin: b,
272
+ checkStepValidity: A,
273
+ goToNextStep: c,
274
+ goToNextStepIfValid: U,
275
+ goToPreviousStep: C,
276
+ scrollToTop: Y,
277
+ library: x,
278
+ isEditMode: t,
279
+ translateSchema: Z,
280
+ createSchema: Q,
281
+ getSchema: X,
282
+ dpiContext: e,
283
+ formValues: w,
284
+ activeSimpleModal: I,
285
+ shouldRenderReviewStep: H,
286
+ renderViewStepKey: E,
287
+ handlePublish: te,
288
+ handleSubmit: oe,
289
+ showErrorSummary: R,
290
+ validationMessages: T
291
+ };
292
+ }
293
+ }), Ee = { class: "form-container V3-typography" }, Ue = {
294
+ key: 0,
295
+ ref: "fkInputContainer",
296
+ class: "inputContainer"
297
+ }, Ne = { class: "formContainer formkit" }, Oe = { key: 0 }, qe = { class: "dpiV3_stepper draftStepper" }, Ke = {
298
+ key: 0,
299
+ class: "draftCTA"
300
+ }, We = {
301
+ key: 1,
302
+ class: "draftCTA"
303
+ }, je = { key: 1 }, ze = {
304
+ key: 0,
305
+ class: "dpiV3_stepper"
306
+ }, Je = {
307
+ key: 1,
308
+ class: "dpiV3_stepperLanding"
309
+ }, Ge = { class: "dpiV3_bydata_logo_wordmark" }, Ze = { class: "dpiV3_Illustration-Start" }, Qe = {
310
+ key: 2,
311
+ class: "steps"
312
+ }, Xe = ["data-step-active", "data-step-valid", "onClick"], Ye = { class: "stepBubbleWrap" }, xe = { class: "circle stepCircle" }, et = ["textContent"], tt = {
313
+ key: 0,
314
+ class: "seperatorHorizontalStepper"
315
+ }, ot = {
316
+ key: 0,
317
+ class: "step inactiveStep"
318
+ }, it = { class: "demo-stepper" }, nt = { style: { "margin-bottom": "1rem", padding: "1rem", background: "#f5f5f5", "border-radius": "8px" } }, st = { class: "dev-actions" }, rt = {
319
+ key: 0,
320
+ class: "dpiV3_Card_Tips--error dpiV3_Card_Tips"
321
+ }, at = { class: "validation-errors" };
322
+ function lt(e, t, l, S, V, u) {
323
+ const b = p("TextButtonSmall"), c = p("ButtonV3"), C = p("LogoV3"), P = p("ProgressSteps"), _ = p("Illustration"), F = p("DemoStep"), f = p("InputPageStep"), g = p("FormKit"), M = p("ReviewStepDemo"), w = p("ModalSimpleV3");
324
+ return i(), r("div", Ee, [
325
+ e.isInput ? (i(), r("div", Ue, [
326
+ s("div", Ne, [
327
+ o(g, {
328
+ id: "dpiForm",
329
+ modelValue: e.formValues,
330
+ "onUpdate:modelValue": t[2] || (t[2] = (n) => e.formValues = n),
331
+ type: "form",
332
+ actions: !1,
333
+ plugins: [e.stepPlugin],
334
+ class: "d-flex",
335
+ onSubmit: t[3] || (t[3] = de(() => {
336
+ }, ["prevent"]))
337
+ }, {
338
+ default: k(() => [
339
+ e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (i(), r("div", Oe, [
340
+ s("div", qe, [
341
+ o(b, {
342
+ "button-text": "Übersicht",
343
+ "icon-start": "CaretLeft",
344
+ "icon-name": "caretLeft",
345
+ onClick: e.gotToHome
346
+ }, null, 8, ["onClick"]),
347
+ s("div", null, [
348
+ e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (i(), r("div", Ke, [
349
+ o(c, {
350
+ "button-text": "Veröffentlichung aufheben",
351
+ size: "large",
352
+ onClick: e.todoHandler
353
+ }, null, 8, ["onClick"]),
354
+ o(c, {
355
+ "button-text": "Veröffentlicht ansehen",
356
+ variant: "secondary",
357
+ size: "large",
358
+ "icon-end": "Out",
359
+ onClick: e.todoHandler
360
+ }, null, 8, ["onClick"])
361
+ ])) : (i(), r("div", We, [
362
+ o(c, {
363
+ "button-text": "Veröffentlichen",
364
+ size: "large",
365
+ onClick: e.handlePublish
366
+ }, null, 8, ["onClick"])
367
+ ]))
368
+ ])
369
+ ])
370
+ ])) : (i(), r("div", je, [
371
+ e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (i(), r("div", ze, [
372
+ o(C),
373
+ o(P, {
374
+ steps: e.stepList || [],
375
+ checked: e.visitedSteps,
376
+ "onUpdate:checked": t[0] || (t[0] = (n) => e.visitedSteps = n),
377
+ current: e.activeStep,
378
+ "onUpdate:current": t[1] || (t[1] = (n) => e.activeStep = n)
379
+ }, null, 8, ["steps", "checked", "current"])
380
+ ])) : (i(), r("div", Je, [
381
+ s("div", Ge, [
382
+ o(C)
383
+ ]),
384
+ s("div", Ze, [
385
+ o(_, { "illustration-name": "start" })
386
+ ])
387
+ ]))
388
+ ])),
389
+ e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (i(), r("ul", Qe, [
390
+ (i(!0), r(K, null, W(e.steps, (n, m, I) => (i(), r("li", {
391
+ key: n,
392
+ class: pe(["step", {
393
+ activeItem: e.activeStep === m,
394
+ inactiveStep: m != e.activeStep,
395
+ "has-errors": e.checkStepValidity(m)
396
+ }]),
397
+ "data-step-active": e.activeStep === m,
398
+ "data-step-valid": n.valid && n.errorCount === 0,
399
+ onClick: (R) => {
400
+ e.activeStep = m, e.update(), e.scrollToTop();
401
+ }
402
+ }, [
403
+ s("div", Ye, [
404
+ s("div", xe, v(I + 1), 1),
405
+ e.checkStepValidity(m) ? (i(), r("span", {
406
+ key: 0,
407
+ class: "step--errors",
408
+ textContent: v(n.errorCount + n.blockingCount)
409
+ }, null, 8, et)) : h("", !0),
410
+ L(v(e.$t(`message.dataupload.steps.${m}Step`)), 1)
411
+ ]),
412
+ I != Object.keys(e.steps).length ? (i(), r("div", tt)) : h("", !0)
413
+ ], 10, Xe))), 128)),
414
+ e.activeStep === "Overview" ? (i(), r("li", ot, t[6] || (t[6] = [
415
+ s("div", { class: "circle stepCircle" }, null, -1)
416
+ ]))) : h("", !0)
417
+ ])) : h("", !0),
418
+ s("div", null, [
419
+ L(" hello " + v(e.activeStep) + " ", 1),
420
+ s("div", it, [
421
+ s("div", nt, [
422
+ t[7] || (t[7] = s("strong", null, "Form Values:", -1)),
423
+ s("pre", null, v(JSON.stringify(e.formValues, null, 2)), 1)
424
+ ]),
425
+ s("div", null, [
426
+ o(f, { name: "auffindbarkeit" }, {
427
+ default: k(() => [
428
+ o(F)
429
+ ]),
430
+ _: 1
431
+ }),
432
+ o(f, { name: "grundlegende-informationen/discoverability" }, {
433
+ default: k(() => [
434
+ o(g, {
435
+ type: "text",
436
+ label: "Name",
437
+ name: "name",
438
+ validation: "required"
439
+ })
440
+ ]),
441
+ _: 1
442
+ }),
443
+ o(f, { name: "grundlegende-informationen/essentials" }, {
444
+ default: k(() => [
445
+ o(g, {
446
+ type: "text",
447
+ label: "Mail",
448
+ name: "mail",
449
+ validation: "required|email"
450
+ }),
451
+ o(g, {
452
+ type: "text",
453
+ label: "Homepage",
454
+ name: "homepage",
455
+ validation: "url"
456
+ })
457
+ ]),
458
+ _: 1
459
+ }),
460
+ o(f, { name: "optionale-daten" }, {
461
+ default: k(() => [
462
+ o(g, {
463
+ type: "textarea",
464
+ label: "Description",
465
+ name: "description"
466
+ })
467
+ ]),
468
+ _: 1
469
+ }),
470
+ o(f, { name: "review" }, {
471
+ default: k(() => [
472
+ L(" shouldRender " + v(e.shouldRenderReviewStep) + " renderViewStepKey " + v(e.renderViewStepKey) + " ", 1),
473
+ e.shouldRenderReviewStep ? (i(), q(M, {
474
+ key: e.renderViewStepKey,
475
+ values: e.formValues
476
+ }, null, 8, ["values"])) : h("", !0)
477
+ ]),
478
+ _: 1
479
+ })
480
+ ]),
481
+ t[9] || (t[9] = s("hr", null, null, -1)),
482
+ s("div", st, [
483
+ o(c, {
484
+ variant: "tertiary",
485
+ type: "button",
486
+ onClick: e.goToPreviousStep,
487
+ "button-text": "Abbrechen"
488
+ }, null, 8, ["onClick"]),
489
+ o(c, {
490
+ variant: "secondary",
491
+ type: "button",
492
+ onClick: e.goToPreviousStep,
493
+ "button-text": "Zurück"
494
+ }, null, 8, ["onClick"]),
495
+ o(c, {
496
+ type: "button",
497
+ onClick: e.handleSubmit,
498
+ "button-text": "Weiter"
499
+ }, null, 8, ["onClick"])
500
+ ]),
501
+ e.showErrorSummary && e.validationMessages.length ? (i(), r("div", rt, [
502
+ t[8] || (t[8] = s("h4", null, "Bitte korrigieren Sie die folgenden Fehler:", -1)),
503
+ s("ul", at, [
504
+ (i(!0), r(K, null, W(e.validationMessages, (n) => (i(), r("li", { key: n }, v(n), 1))), 128))
505
+ ])
506
+ ])) : h("", !0)
507
+ ])
508
+ ])
509
+ ]),
510
+ _: 1
511
+ }, 8, ["modelValue", "plugins"]),
512
+ e.activeSimpleModal ? (i(), q(w, {
513
+ key: 0,
514
+ buttons: e.modalSimpleConf.button,
515
+ "header-text": e.modalSimpleConf.header,
516
+ text: e.modalSimpleConf.text,
517
+ action: e.modalSimpleConf.action,
518
+ onClose: t[4] || (t[4] = (n) => e.activeSimpleModal = !1),
519
+ onActionHandling: t[5] || (t[5] = (n) => e.gotToHome())
520
+ }, null, 8, ["buttons", "header-text", "text", "action"])) : h("", !0)
521
+ ])
522
+ ], 512)) : h("", !0)
523
+ ]);
524
+ }
525
+ const qt = /* @__PURE__ */ Re(He, [["render", lt]]);
526
+ export {
527
+ qt as default
528
+ };
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import i from "./data-provider-interface/components/FileUpload.vue.js";
7
7
  import n from "./data-provider-interface/components/InfoSlot.vue.js";
8
8
  import p from "./data-provider-interface/components/LanguageSelector.vue.js";
9
9
  import a from "./data-provider-interface/components/Navigation.vue.js";
10
- import { default as Po } from "./data-provider-interface/components/ReviewAndPublishPage.vue.js";
10
+ import { default as Co } from "./data-provider-interface/components/ReviewAndPublishPage.vue.js";
11
11
  import f from "./data-provider-interface/components/UniqueIdentifierInput.vue.js";
12
12
  import s from "./data-provider-interface/DataProviderInterface.vue.js";
13
13
  import u from "./data-provider-interface/DPIMenu.vue.js";
@@ -16,22 +16,24 @@ import { default as Oo } from "./data-provider-interface/HappyFlowComponents/DPI
16
16
  import x from "./data-provider-interface/views/DistributionOverview.vue.js";
17
17
  import c from "./data-provider-interface/views/DraftsPage.vue.js";
18
18
  import l from "./data-provider-interface/views/InputPage.vue.js";
19
+ import { default as Mo } from "./data-provider-interface/views/InputPageProject.vue.js";
19
20
  import g from "./data-provider-interface/views/LinkedDataViewer.vue.js";
20
21
  import d from "./data-provider-interface/views/OverviewPage.vue.js";
21
22
  import D from "./data-provider-interface/views/OverviewPage/CatalogueOverview.vue.js";
22
23
  import v from "./data-provider-interface/views/OverviewPage/DatasetOverview.vue.js";
23
- import C from "./data-provider-interface/views/OverviewPage/DistributionOverview.vue.js";
24
- import P from "./data-provider-interface/views/OverviewPage/PropertyEntry.vue.js";
24
+ import P from "./data-provider-interface/views/OverviewPage/DistributionOverview.vue.js";
25
+ import C from "./data-provider-interface/views/OverviewPage/PropertyEntry.vue.js";
25
26
  import I from "./data-provider-interface/views/UserCataloguesPage.vue.js";
26
27
  import w from "./data-provider-interface/views/UserProfilePage.vue.js";
27
- import { config as Mo } from "./data-provider-interface/config/dpi-spec-config.js";
28
- import { default as ho } from "./data-provider-interface/store/index.js";
29
- import { injectionKey as Bo, userConfigShimPlugin as Lo } from "./data-provider-interface/plugins/userConfigShimPlugin.js";
30
- import { dpiContextKey as Fo, setupDpiContext as To, useDpiContext as _o } from "./data-provider-interface/composables/useDpiContext.js";
31
- import { useDpiStepper as Ao } from "./data-provider-interface/composables/useDpiStepper.js";
32
- import { useDpiEditMode as ko, useEditModeInfo as qo } from "./data-provider-interface/composables/useDpiEditMode.js";
33
- import { useRequestUriName as No } from "./data-provider-interface/composables/useRequestUriName.js";
34
- import { useFormSchema as $o } from "./data-provider-interface/composables/useFormSchema.js";
28
+ import { default as ho } from "./stories/components/DemoStepper.vue.js";
29
+ import { config as Bo } from "./data-provider-interface/config/dpi-spec-config.js";
30
+ import { default as bo } from "./data-provider-interface/store/index.js";
31
+ import { injectionKey as To, userConfigShimPlugin as _o } from "./data-provider-interface/plugins/userConfigShimPlugin.js";
32
+ import { dpiContextKey as Ao, setupDpiContext as Eo, useDpiContext as jo } from "./data-provider-interface/composables/useDpiContext.js";
33
+ import { useDpiStepper as qo } from "./data-provider-interface/composables/useDpiStepper.js";
34
+ import { useDpiEditMode as No, useEditModeInfo as $o } from "./data-provider-interface/composables/useDpiEditMode.js";
35
+ import { useRequestUriName as zo } from "./data-provider-interface/composables/useRequestUriName.js";
36
+ import { useFormSchema as Jo } from "./data-provider-interface/composables/useFormSchema.js";
35
37
  import * as H from "./data-provider-interface/HappyFlowComponents/ui/ButtonV3.vue.js";
36
38
  import * as z from "./data-provider-interface/HappyFlowComponents/ui/CheckboxV3.vue.js";
37
39
  import * as G from "./data-provider-interface/HappyFlowComponents/ui/Chip.vue.js";
@@ -56,7 +58,7 @@ import * as uo from "./data-provider-interface/HappyFlowComponents/ui/TextButton
56
58
  import * as xo from "./data-provider-interface/HappyFlowComponents/ui/TextButtonSmall.vue.js";
57
59
  import * as co from "./data-provider-interface/HappyFlowComponents/ui/Toast.vue.js";
58
60
  function lo(o) {
59
- o.component("AutocompleteInput", t), o.component("ConditionalInput", e), o.component("DataFetchingComponent", r), o.component("Dropup", m), o.component("FileUpload", i), o.component("InfoSlot", n), o.component("LanguageSelector", p), o.component("Navigation", a), o.component("UniqueIdentifierInput", f), o.component("CatalogueOverview", D), o.component("DatasetOverview", v), o.component("DistributionOverview", C), o.component("PropertyEntry", P), o.component("DistOverview", x), o.component("DraftsPage", c), o.component("InputPage", l), o.component("LinkedDataViewer", g), o.component("OverviewPage", d), o.component("UserCataloguesPage", I), o.component("UserProfilePage", w), o.component("DataProviderInterface", s), o.component("DpiMenu", u);
61
+ o.component("AutocompleteInput", t), o.component("ConditionalInput", e), o.component("DataFetchingComponent", r), o.component("Dropup", m), o.component("FileUpload", i), o.component("InfoSlot", n), o.component("LanguageSelector", p), o.component("Navigation", a), o.component("UniqueIdentifierInput", f), o.component("CatalogueOverview", D), o.component("DatasetOverview", v), o.component("DistributionOverview", P), o.component("PropertyEntry", C), o.component("DistOverview", x), o.component("DraftsPage", c), o.component("InputPage", l), o.component("LinkedDataViewer", g), o.component("OverviewPage", d), o.component("UserCataloguesPage", I), o.component("UserProfilePage", w), o.component("DataProviderInterface", s), o.component("DpiMenu", u);
60
62
  }
61
63
  export {
62
64
  t as AutocompleteInput,
@@ -73,8 +75,9 @@ export {
73
75
  s as DataProviderInterface,
74
76
  v as DatasetOverview,
75
77
  W as DatasetStatus,
78
+ ho as DemoStepper,
76
79
  x as DistOverview,
77
- C as DistributionOverview,
80
+ P as DistributionOverview,
78
81
  u as DpiMenu,
79
82
  X as DpiModalBase,
80
83
  c as DraftsPage,
@@ -85,6 +88,7 @@ export {
85
88
  n as InfoSlot,
86
89
  oo as InputField,
87
90
  l as InputPage,
91
+ Mo as InputPageProject,
88
92
  to as InputV3,
89
93
  p as LanguageSelector,
90
94
  g as LinkedDataViewer,
@@ -94,9 +98,9 @@ export {
94
98
  io as MoreButton,
95
99
  a as Navigation,
96
100
  d as OverviewPage,
97
- P as PropertyEntry,
101
+ C as PropertyEntry,
98
102
  no as RapModal,
99
- Po as ReviewAndPublishPage,
103
+ Co as ReviewAndPublishPage,
100
104
  po as StateTag,
101
105
  ao as SwitchV3,
102
106
  fo as TableRowV3,
@@ -107,18 +111,18 @@ export {
107
111
  f as UniqueIdentifierInput,
108
112
  I as UserCataloguesPage,
109
113
  w as UserProfilePage,
110
- Fo as dpiContextKey,
111
- Mo as dpiSpecConfig,
112
- Bo as injectionKeyRuntimeConfig,
114
+ Ao as dpiContextKey,
115
+ Bo as dpiSpecConfig,
116
+ To as injectionKeyRuntimeConfig,
113
117
  vo as inputDefinitions,
114
118
  lo as registerComponents,
115
- To as setupDpiContext,
116
- ho as store,
117
- _o as useDpiContext,
118
- ko as useDpiEditMode,
119
- Ao as useDpiStepper,
120
- qo as useEditModeInfo,
121
- $o as useFormSchema,
122
- No as useRequestUriName,
123
- Lo as userConfigShimPlugin
119
+ Eo as setupDpiContext,
120
+ bo as store,
121
+ jo as useDpiContext,
122
+ No as useDpiEditMode,
123
+ qo as useDpiStepper,
124
+ $o as useEditModeInfo,
125
+ Jo as useFormSchema,
126
+ zo as useRequestUriName,
127
+ _o as userConfigShimPlugin
124
128
  };