@piveau/dpi 0.2.0-alpha.26 → 0.2.0-alpha.27

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.
@@ -1,7 +1,7 @@
1
1
  import o from "./Spatial.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7e1645b3"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4797bd26"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as B, mergeModels as C, useModel as L, ref as m, computed as v, watch as z, createElementBlock as c, openBlock as s, createCommentVNode as b, createBlock as h, Fragment as R, renderList as G, withDirectives as $, createElementVNode as y, vModelCheckbox as I, withCtx as U, createVNode as p } from "vue";
2
- import M from "../HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js";
1
+ import { defineComponent as B, mergeModels as C, useModel as L, ref as m, computed as v, watch as z, createElementBlock as c, openBlock as i, createCommentVNode as b, createBlock as h, Fragment as R, renderList as G, withDirectives as M, createElementVNode as y, vModelCheckbox as $, withCtx as U, createVNode as p } from "vue";
2
+ import I from "../HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js";
3
3
  import N from "../HappyFlowComponents/ui/ButtonV3.vue.js";
4
4
  import x from "../HappyFlowComponents/ui/Chip.vue.js";
5
5
  import E from "../HappyFlowComponents/ui/InputField.vue.js";
@@ -8,7 +8,7 @@ import T from "../HappyFlowComponents/ui/ProcessSteps/GetResource.vue.js";
8
8
  import W from "../HappyFlowComponents/ui/ProcessSteps/ProcessStepInputCard.vue.js";
9
9
  const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
10
10
  key: 2,
11
- class: "step-section-actions"
11
+ class: "step-section-actions dpiV3_tempAddMore"
12
12
  }, ee = /* @__PURE__ */ B({
13
13
  __name: "Spatial",
14
14
  props: /* @__PURE__ */ C({
@@ -23,8 +23,8 @@ const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
23
23
  modelModifiers: {}
24
24
  }),
25
25
  emits: ["update:modelValue"],
26
- setup(g) {
27
- const r = g, i = L(g, "modelValue"), d = m(r.options.find((a) => a.id === "place") || r.options[0]), u = m(void 0), n = m(""), f = v(() => {
26
+ setup(V) {
27
+ const r = V, s = L(V, "modelValue"), d = m(r.options.find((a) => a.id === "place") || r.options[0]), u = m(void 0), n = m(""), f = v(() => {
28
28
  try {
29
29
  if (!n.value)
30
30
  return !1;
@@ -43,29 +43,29 @@ const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
43
43
  function _(a) {
44
44
  return a.startsWith("http://publications.europa.eu/resource/authority");
45
45
  }
46
- const w = v(() => f.value || !!u.value);
47
- function A() {
46
+ const A = v(() => f.value || !!u.value);
47
+ function w() {
48
48
  var o;
49
- const a = (o = n.value) == null ? void 0 : o.trim(), l = f.value, e = u.value, t = l ? a : e;
50
- t && (i.value = [t], n.value = "", u.value = void 0);
49
+ const a = (o = n.value) == null ? void 0 : o.trim(), t = f.value, e = u.value, l = t ? a : e;
50
+ l && (s.value = [l], n.value = "", u.value = void 0);
51
51
  }
52
- return (a, l) => (s(), c("section", D, [
53
- i.value.length > 0 ? (s(), c("div", K, [
54
- (s(!0), c(R, null, G(i.value, (e, t) => (s(), c("div", {
55
- key: `spatial-${t}`,
52
+ return (a, t) => (i(), c("section", D, [
53
+ s.value.length > 0 ? (i(), c("div", K, [
54
+ (i(!0), c(R, null, G(s.value, (e, l) => (i(), c("div", {
55
+ key: `spatial-${l}`,
56
56
  class: "functionalities"
57
57
  }, [
58
- $(y("input", {
59
- id: `spatial-${t}`,
60
- "onUpdate:modelValue": l[0] || (l[0] = (o) => i.value = o),
58
+ M(y("input", {
59
+ id: `spatial-${l}`,
60
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => s.value = o),
61
61
  hidden: "",
62
62
  value: e,
63
63
  name: "spatial",
64
64
  type: "checkbox"
65
65
  }, null, 8, O), [
66
- [I, i.value]
66
+ [$, s.value]
67
67
  ]),
68
- _(e) ? (s(), h(T, {
68
+ _(e) ? (i(), h(T, {
69
69
  key: 0,
70
70
  "base-url": r.baseUrl,
71
71
  vocabulary: e == null ? void 0 : e.split("/").slice(-2)[0],
@@ -73,12 +73,12 @@ const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
73
73
  "setup-fn": (o) => o
74
74
  }, {
75
75
  default: U(({ result: o }) => {
76
- var V, k;
76
+ var g, k;
77
77
  return [
78
78
  p(x, {
79
79
  as: "label",
80
- for: `spatial-${t}`,
81
- text: ((V = o == null ? void 0 : o.pref_label) == null ? void 0 : V.de) || ((k = o == null ? void 0 : o.pref_label) == null ? void 0 : k.en),
80
+ for: `spatial-${l}`,
81
+ text: ((g = o == null ? void 0 : o.pref_label) == null ? void 0 : g.de) || ((k = o == null ? void 0 : o.pref_label) == null ? void 0 : k.en),
82
82
  setup: {
83
83
  "@type": "select",
84
84
  "@icon": "suffix",
@@ -91,10 +91,10 @@ const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
91
91
  ];
92
92
  }),
93
93
  _: 2
94
- }, 1032, ["base-url", "vocabulary", "resource-id", "setup-fn"])) : (s(), h(x, {
94
+ }, 1032, ["base-url", "vocabulary", "resource-id", "setup-fn"])) : (i(), h(x, {
95
95
  key: 1,
96
96
  as: "label",
97
- for: `spatial-${t}`,
97
+ for: `spatial-${l}`,
98
98
  text: e,
99
99
  setup: {
100
100
  "@type": "select",
@@ -107,7 +107,7 @@ const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
107
107
  }, null, 8, ["for", "text", "data"]))
108
108
  ]))), 128))
109
109
  ])) : b("", !0),
110
- i.value.length === 0 ? (s(), h(W, {
110
+ s.value.length === 0 ? (i(), h(W, {
111
111
  key: 1,
112
112
  class: "step-section",
113
113
  "no-delete": ""
@@ -115,17 +115,17 @@ const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
115
115
  default: U(() => {
116
116
  var e;
117
117
  return [
118
- l[4] || (l[4] = y("h5", null, "Administrativer Bezug", -1)),
118
+ t[4] || (t[4] = y("h5", null, "Administrativer Bezug", -1)),
119
119
  p(F, {
120
120
  modelValue: d.value,
121
- "onUpdate:modelValue": l[1] || (l[1] = (t) => d.value = t),
121
+ "onUpdate:modelValue": t[1] || (t[1] = (l) => d.value = l),
122
122
  options: r.options,
123
123
  label: "Gebiet der Abdeckung",
124
124
  placeholder: "Wählen Sie das Gebiet der Abdeckung."
125
125
  }, null, 8, ["modelValue", "options"]),
126
- p(M, {
126
+ p(I, {
127
127
  modelValue: u.value,
128
- "onUpdate:modelValue": l[2] || (l[2] = (t) => u.value = t),
128
+ "onUpdate:modelValue": t[2] || (t[2] = (l) => u.value = l),
129
129
  by: "vocabulary",
130
130
  label: (e = d.value) == null ? void 0 : e.name,
131
131
  "base-url": r.baseUrl,
@@ -133,10 +133,10 @@ const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
133
133
  placeholder: "Legen Sie die räumliche Abdeckung fest.",
134
134
  name: "spatial"
135
135
  }, null, 8, ["modelValue", "label", "base-url", "vocabulary"]),
136
- l[5] || (l[5] = y("h5", null, "oder Geodatensatz", -1)),
136
+ t[5] || (t[5] = y("h5", null, "oder Geodatensatz", -1)),
137
137
  p(E, {
138
138
  modelValue: n.value,
139
- "onUpdate:modelValue": l[3] || (l[3] = (t) => n.value = t),
139
+ "onUpdate:modelValue": t[3] || (t[3] = (l) => n.value = l),
140
140
  "add-on-text": !1,
141
141
  "date-picker": !1,
142
142
  "info-icon": !1,
@@ -154,14 +154,14 @@ const D = { class: "step-section" }, K = { key: 0 }, O = ["id", "value"], P = {
154
154
  _: 1,
155
155
  __: [4, 5]
156
156
  })) : b("", !0),
157
- i.value.length === 0 ? (s(), c("div", P, [
157
+ s.value.length === 0 ? (i(), c("div", P, [
158
158
  p(N, {
159
159
  "button-text": "Räumliche Abdeckung hinzufügen",
160
160
  size: "medium",
161
161
  variant: "tertiary",
162
162
  "icon-start": "plus",
163
- disabled: !w.value,
164
- onClick: A
163
+ disabled: !A.value,
164
+ onClick: w
165
165
  }, null, 8, ["disabled"])
166
166
  ])) : b("", !0)
167
167
  ]));
@@ -1,7 +1,7 @@
1
- import a from "./SpatialPage.vue2.js";
1
+ import o from "./SpatialPage.vue2.js";
2
2
  /* empty css */
3
- import o from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ o(a, [["__scopeId", "data-v-6bcbb49a"]]);
3
+ import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-56c592dd"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,43 +1,59 @@
1
- import { defineComponent as r, computed as u, createElementBlock as p, openBlock as c, createElementVNode as l, createVNode as m } from "vue";
2
- import { useFormValues as f } from "../composables/useDpiFormValues.js";
3
- import g from "./Spatial.vue.js";
4
- import { useEditModeInfo as v } from "../composables/useDpiEditMode.js";
5
- const h = { class: "dpiV3InnerComponentWrap" }, V = { class: "dropdown-container" }, S = /* @__PURE__ */ r({
1
+ import { defineComponent as p, computed as u, createElementBlock as c, openBlock as m, createElementVNode as i, createVNode as r, unref as g } from "vue";
2
+ import { PhLightbulb as f } from "@phosphor-icons/vue";
3
+ import { useFormValues as _ } from "../composables/useDpiFormValues.js";
4
+ import v from "./Spatial.vue.js";
5
+ import { useEditModeInfo as V } from "../composables/useDpiEditMode.js";
6
+ const h = { class: "dpiV3InnerComponentWrap" }, z = { class: "dropdown-container" }, b = { class: "dpiV3_Content_InputPage" }, A = { class: "dpiV3_Card_Tips" }, I = { class: "dpiV3_Icon_Title" }, E = /* @__PURE__ */ p({
6
7
  __name: "SpatialPage",
7
8
  props: {
8
9
  context: Object
9
10
  },
10
- setup(z) {
11
+ setup(k) {
11
12
  var d;
12
- const { isEditMode: s } = v(), { formValues: i } = f();
13
- s.value || (i.value.Additionals || (i.value.Additionals = {}), (d = i.value.Additionals)["dct:spatial"] || (d["dct:spatial"] = [
13
+ const { isEditMode: l } = V(), { formValues: t } = _();
14
+ l.value || (t.value.Additionals || (t.value.Additionals = {}), (d = t.value.Additionals)["dct:spatial"] || (d["dct:spatial"] = [
14
15
  { isValid: !0 }
15
- ])), s.value || (i.value.Covering["dcatde:politicalGeocodingURI"] = [
16
+ ])), l.value || (t.value.Covering["dcatde:politicalGeocodingURI"] = [
16
17
  { isValid: !0 }
17
18
  ]);
18
19
  const o = u({
19
20
  get() {
20
- var t, e, n;
21
- return ((n = (e = (t = i.value.Additionals) == null ? void 0 : t["dct:spatial"]) == null ? void 0 : e.filter((a) => !(a.isValid && Object.keys(a).length === 1))) == null ? void 0 : n.map((a) => a["@id"])) || [];
21
+ var s, e, n;
22
+ return ((n = (e = (s = t.value.Additionals) == null ? void 0 : s["dct:spatial"]) == null ? void 0 : e.filter((a) => !(a.isValid && Object.keys(a).length === 1))) == null ? void 0 : n.map((a) => a["@id"])) || [];
22
23
  },
23
- set(t) {
24
- i.value.Additionals || (i.value.Additionals = {}), i.value.Additionals["dct:spatial"] = [
25
- ...t.map((e) => ({ "@id": e }))
24
+ set(s) {
25
+ t.value.Additionals || (t.value.Additionals = {}), t.value.Additionals["dct:spatial"] = [
26
+ ...s.map((e) => ({ "@id": e }))
26
27
  ];
27
28
  }
28
29
  });
29
- return (t, e) => (c(), p("div", h, [
30
- e[1] || (e[1] = l("h4", null, " Legen Sie die räumliche Abdeckung Ihres Datensatzes fest (optional) ", -1)),
31
- e[2] || (e[2] = l("div", { class: "copy-large-regular" }, " Bitte geben Sie an, auf welches geografische oder politische Gebiet sich Ihr Datensatz bezieht. Dies kann beispielsweise eine Stadt, eine Region, ein Land oder eine spezifische Verwaltungseinheit sein. Die Angabe des räumlichen Bezugs hilft anderen Nutzenden, Ihren Datensatz schnell im passenden Kontext zu finden und gezielt für ihre Zwecke einzusetzen. ", -1)),
32
- l("div", V, [
33
- m(g, {
30
+ return (s, e) => (m(), c("div", h, [
31
+ e[3] || (e[3] = i("h4", null, " Legen Sie die räumliche Abdeckung Ihres Datensatzes fest (optional) ", -1)),
32
+ e[4] || (e[4] = i("div", { class: "copy-large-regular" }, " Bitte geben Sie an, auf welches geografische oder politische Gebiet sich Ihr Datensatz bezieht. Dies kann beispielsweise eine Stadt, eine Region, ein Land oder eine spezifische Verwaltungseinheit sein. Die Angabe des räumlichen Bezugs hilft anderen Nutzenden, Ihren Datensatz schnell im passenden Kontext zu finden und gezielt für ihre Zwecke einzusetzen. ", -1)),
33
+ i("div", z, [
34
+ r(v, {
34
35
  modelValue: o.value,
35
36
  "onUpdate:modelValue": e[0] || (e[0] = (n) => o.value = n)
36
- }, null, 8, ["modelValue"])
37
+ }, null, 8, ["modelValue"]),
38
+ i("div", b, [
39
+ i("div", A, [
40
+ i("div", I, [
41
+ r(g(f), {
42
+ size: 32,
43
+ color: "#009fe3"
44
+ }),
45
+ e[1] || (e[1] = i("div", { class: "dpiV3_Info-Text dpiV3_activeStepName" }, " Beispiele ", -1))
46
+ ]),
47
+ e[2] || (e[2] = i("div", { class: "dpiV3_CT-Content" }, [
48
+ i("div", { class: "dpiV3_copy_large_regular link_text" }, " Würzburg: http://publications.europa.eu/resource/authority/place/DEU-WUE "),
49
+ i("div", { class: "dpiV3_copy_large_regular link_text" }, " Deutschland: http://sws.geonames.org/2921044/ ")
50
+ ], -1))
51
+ ])
52
+ ])
37
53
  ])
38
54
  ]));
39
55
  }
40
56
  });
41
57
  export {
42
- S as default
58
+ E as default
43
59
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./StepActionsSection.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a44124be"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-768749b1"]]);
5
5
  export {
6
- a as default
6
+ e as default
7
7
  };