@piveau/dpi 0.1.0-beta.5 → 0.1.0-beta.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 (74) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/data-provider-interface/DPIMenu.vue.js +2 -2
  3. package/dist/data-provider-interface/DataProviderInterface.vue2.js +45 -40
  4. package/dist/data-provider-interface/HappyFlowComponents/ComponentLibrary.vue.js +1 -1
  5. package/dist/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +58 -53
  6. package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +78 -66
  7. package/dist/data-provider-interface/HappyFlowComponents/ui/CloseOpenButtonV3.vue.js +11 -10
  8. package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +100 -76
  9. package/dist/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
  10. package/dist/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +7 -7
  11. package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +434 -360
  12. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +103 -71
  13. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js +17 -22
  14. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
  15. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +91 -61
  16. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
  17. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +170 -99
  18. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +109 -52
  19. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +65 -86
  20. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
  21. package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +153 -102
  22. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +571 -207
  23. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +100 -53
  24. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +34 -56
  25. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +301 -100
  26. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +46 -27
  27. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +70 -39
  28. package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +182 -105
  29. package/dist/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +19 -14
  30. package/dist/data-provider-interface/HappyFlowComponents/ui/TextButtonSmall.vue.js +1 -1
  31. package/dist/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +30 -29
  32. package/dist/data-provider-interface/components/ContactPage.vue.js +153 -105
  33. package/dist/data-provider-interface/components/DiscoverabilityPage.vue.js +32 -32
  34. package/dist/data-provider-interface/components/DistLicense.vue.js +198 -99
  35. package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +856 -790
  36. package/dist/data-provider-interface/components/Dropup.vue.js +6 -6
  37. package/dist/data-provider-interface/components/HVDPage.vue.js +105 -82
  38. package/dist/data-provider-interface/components/InfoSlot.vue.js +5 -5
  39. package/dist/data-provider-interface/components/PolGeoUriPage.vue.js +89 -46
  40. package/dist/data-provider-interface/components/PublisherPage.vue.js +111 -81
  41. package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +302 -251
  42. package/dist/data-provider-interface/components/TempResPage.vue.js +267 -187
  43. package/dist/data-provider-interface/components/TempResPageInModal.vue.js +395 -0
  44. package/dist/data-provider-interface/components/UpdateDate.vue.js +33 -29
  45. package/dist/data-provider-interface/components/dpiV3Description.vue.js +7 -6
  46. package/dist/data-provider-interface/composables/useDpiContext.js +5 -7
  47. package/dist/data-provider-interface/composables/useDpiEditMode.js +15 -13
  48. package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +397 -244
  49. package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.js +1 -1
  50. package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +478 -91
  51. package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +104 -152
  52. package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +10 -3
  53. package/dist/data-provider-interface/store/index.js +32 -0
  54. package/dist/data-provider-interface/store/modules/authStore.js +301 -0
  55. package/dist/data-provider-interface/store/modules/catalogueDetailsStore.js +34 -0
  56. package/dist/data-provider-interface/store/modules/cataloguesStore.js +256 -0
  57. package/dist/data-provider-interface/store/modules/datasetDetailsStore.js +644 -0
  58. package/dist/data-provider-interface/store/modules/datasetsStore.js +361 -0
  59. package/dist/data-provider-interface/store/{dpiStore.js → modules/dpiStore.js} +11 -12
  60. package/dist/data-provider-interface/store/modules/snackbarStore.js +45 -0
  61. package/dist/data-provider-interface/views/DraftsPage.vue.js +3 -3
  62. package/dist/data-provider-interface/views/InputPage.vue.js +378 -752
  63. package/dist/index.js +4 -4
  64. package/dist/styles/_dpi.scss +1614 -0
  65. package/dist/styles/_maps.scss +24 -0
  66. package/dist/styles/_variables.scss +973 -0
  67. package/dist/utils/draftApi.js +33 -0
  68. package/dist/utils/helpers.js +36 -22
  69. package/dist/utils/identifiersApi.js +16 -0
  70. package/dist/utils/jwt.js +7 -0
  71. package/package.json +12 -7
  72. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +0 -41
  73. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LicenseAttributionByText.vue.js +0 -46
  74. package/dist/data-provider-interface/store/modules/formSchemaStore.js +0 -94
@@ -71,11 +71,24 @@ const a = {
71
71
  // Dcatap.de Properties #### Start ####
72
72
  politicalGeocodingLevelURI: {
73
73
  identifier: "politicalGeocodingLevelURI",
74
- $formkit: "auto",
75
74
  name: "dcatde:politicalGeocodingLevelURI",
76
- class: "property",
75
+ $formkit: "repeatable",
77
76
  voc: "political-geocoding-level",
78
- multiple: !0
77
+ children: [
78
+ {
79
+ identifier: "politicalGeocodingLevelURI",
80
+ name: "dcatde:politicalGeocodingLevelURI",
81
+ $formkit: "group",
82
+ children: [
83
+ {
84
+ name: "dcatde:politicalGeocodingLevelURI",
85
+ identifier: "politicalGeocodingLevelURI",
86
+ class: "property",
87
+ $formkit: "auto"
88
+ }
89
+ ]
90
+ }
91
+ ]
79
92
  },
80
93
  politicalGeocodingURI: {
81
94
  identifier: "politicalGeocodingURI",
@@ -107,16 +120,16 @@ const a = {
107
120
  name: "dcatde:geocodingDescription",
108
121
  class: "property langDescriptionInput",
109
122
  children: [
110
- {
111
- identifier: "language",
112
- value: "de",
113
- $formkit: "select",
114
- options: e,
115
- name: "@language",
116
- classes: {
117
- outer: "w25-textfield"
118
- }
119
- },
123
+ // {
124
+ // identifier: "language",
125
+ // value: "de",
126
+ // $formkit: "select",
127
+ // options: language,
128
+ // name: "@language",
129
+ // classes: {
130
+ // outer: "w25-textfield",
131
+ // },
132
+ // },
120
133
  {
121
134
  identifier: "geocodingDescription",
122
135
  $formkit: "textarea",
@@ -184,7 +197,7 @@ const a = {
184
197
  {
185
198
  name: "@id",
186
199
  identifier: "references",
187
- $formkit: "simpleInput",
200
+ $formkit: "url",
188
201
  validationType: "url",
189
202
  insideRepeatable: !0,
190
203
  classes: {
@@ -213,12 +226,12 @@ const a = {
213
226
  options: {
214
227
  "": "---",
215
228
  "vcard:Individual": "Person",
216
- "vcard:Organization": "Organization"
229
+ "vcard:Organization": "Organisation"
217
230
  }
218
231
  },
219
232
  {
220
233
  identifier: "contributorEmail",
221
- $formkit: "email",
234
+ $formkit: "text",
222
235
  name: "foaf:mbox",
223
236
  validation: "optional|email"
224
237
  },
@@ -263,7 +276,7 @@ const a = {
263
276
  options: {
264
277
  "": "---",
265
278
  "vcard:Individual": "Person",
266
- "vcard:Organization": "Organization"
279
+ "vcard:Organization": "Organisation"
267
280
  }
268
281
  },
269
282
  {
@@ -509,16 +522,16 @@ const a = {
509
522
  name: "dcat:keyword",
510
523
  class: "property langStringInput",
511
524
  children: [
512
- {
513
- identifier: "keywordsLanguage",
514
- value: "en",
515
- $formkit: "select",
516
- name: "@language",
517
- classes: {
518
- outer: "w25-textfield"
519
- },
520
- options: e
521
- },
525
+ // {
526
+ // identifier: "keywordsLanguage",
527
+ // value: "en",
528
+ // $formkit: "select",
529
+ // name: "@language",
530
+ // classes: {
531
+ // outer: "w25-textfield",
532
+ // },
533
+ // options: language,
534
+ // },
522
535
  {
523
536
  identifier: "keyword",
524
537
  $formkit: "text",
@@ -545,9 +558,20 @@ const a = {
545
558
  name: "dct:spatial",
546
559
  children: [
547
560
  {
548
- $formkit: "spatialinput",
561
+ identifier: "spatialHeader",
562
+ $formkit: "group",
549
563
  name: "dct:spatial",
550
- identifier: "spatial"
564
+ class: "property",
565
+ children: [
566
+ {
567
+ $formkit: "url",
568
+ name: "@id",
569
+ identifier: "spatial",
570
+ classes: {
571
+ outer: "w75-descField"
572
+ }
573
+ }
574
+ ]
551
575
  }
552
576
  ]
553
577
  },
@@ -618,7 +642,7 @@ const a = {
618
642
  options: {
619
643
  "": "---",
620
644
  "foaf:Person": "Person",
621
- "foaf:Organization": "Organization"
645
+ "foaf:Organization": "Organisation"
622
646
  }
623
647
  },
624
648
  {
@@ -628,7 +652,7 @@ const a = {
628
652
  },
629
653
  {
630
654
  identifier: "creatorEmail",
631
- $formkit: "email",
655
+ $formkit: "text",
632
656
  name: "foaf:mbox",
633
657
  validation: "optional|email"
634
658
  },
@@ -677,6 +701,8 @@ const a = {
677
701
  identifier: "page",
678
702
  $formkit: "repeatable",
679
703
  name: "foaf:page",
704
+ class: "property",
705
+ voc: "file-type",
680
706
  children: [
681
707
  {
682
708
  identifier: "page",
@@ -685,88 +711,23 @@ const a = {
685
711
  children: [
686
712
  {
687
713
  identifier: "pageTitle",
688
- $formkit: "repeatable",
689
- name: "dct:title",
690
- children: [
691
- {
692
- identifier: "pageTitle",
693
- $formkit: "group",
694
- name: "dct:title",
695
- children: [
696
- {
697
- identifier: "language",
698
- value: "en",
699
- $formkit: "select",
700
- options: e,
701
- name: "@language",
702
- classes: {
703
- outer: "w25-textfield"
704
- }
705
- },
706
- {
707
- identifier: "pageTitleSub",
708
- $formkit: "text",
709
- name: "@value",
710
- classes: {
711
- outer: "w75-textfield"
712
- }
713
- }
714
- ]
715
- }
716
- ]
714
+ $formkit: "text",
715
+ name: "dct:title"
716
+ },
717
+ {
718
+ $formkit: "url",
719
+ name: "foaf:homepage",
720
+ validation: "optional|url"
717
721
  },
718
722
  {
719
723
  identifier: "pageDescription",
720
- $formkit: "repeatable",
721
- name: "dct:description",
722
- children: [
723
- {
724
- identifier: "pageDescription",
725
- $formkit: "group",
726
- name: "dct:description",
727
- children: [
728
- {
729
- identifier: "language",
730
- value: "en",
731
- $formkit: "select",
732
- options: e,
733
- name: "@language",
734
- classes: {
735
- outer: "w25-textfield"
736
- }
737
- },
738
- {
739
- identifier: "pageDescription",
740
- $formkit: "textarea",
741
- name: "@value",
742
- classes: {
743
- outer: "w75-textfield"
744
- }
745
- }
746
- ]
747
- }
748
- ]
724
+ $formkit: "textarea",
725
+ name: "dct:description"
749
726
  },
750
727
  {
751
728
  $formkit: "auto",
752
729
  identifier: "pageFormat",
753
- voc: "file-type",
754
- class: "property",
755
- name: "dct:format",
756
- id: "pageFormat",
757
- classes: {
758
- outer: "w97-textfield"
759
- }
760
- },
761
- {
762
- identifier: "pageUrl",
763
- $formkit: "url",
764
- name: "@id",
765
- validation: "optional|url",
766
- class: "property",
767
- classes: {
768
- outer: "w97-textfield"
769
- }
730
+ name: "dct:format"
770
731
  }
771
732
  ]
772
733
  }
@@ -922,12 +883,33 @@ const a = {
922
883
  }
923
884
  ]
924
885
  },
886
+ // language: {
887
+ // identifier: "language",
888
+ // $formkit: "auto",
889
+ // name: "dct:language",
890
+ // class: "property",
891
+ // multiple: true,
892
+ // voc: "language",
893
+ // },
925
894
  language: {
926
895
  identifier: "language",
927
- $formkit: "auto",
896
+ $formkit: "repeatable",
928
897
  name: "dct:language",
929
898
  class: "property",
930
- multiple: !0,
899
+ children: [
900
+ {
901
+ $formkit: "group",
902
+ name: "dct:language",
903
+ identifier: "language",
904
+ children: [
905
+ {
906
+ name: "dct:language",
907
+ identifier: "language",
908
+ $formkit: "auto"
909
+ }
910
+ ]
911
+ }
912
+ ],
931
913
  voc: "language"
932
914
  },
933
915
  admsIdentifier: {
@@ -1102,42 +1084,12 @@ const a = {
1102
1084
  identifier: "issued",
1103
1085
  $formkit: "formkitGroup",
1104
1086
  name: "dct:issued",
1087
+ class: "property",
1105
1088
  children: [
1106
1089
  {
1107
1090
  identifier: "issued",
1108
- id: "issuedCondDataset",
1109
- classes: {
1110
- outer: "w-100"
1111
- },
1112
- $formkit: "select",
1113
- name: "@type",
1114
- options: { date: "Date", datetime: "Datetime" }
1115
- },
1116
- {
1117
- identifier: "issued",
1118
- $cmp: "FormKit",
1119
- if: "$get(issuedCondDataset).value",
1120
- props: {
1121
- if: "$get(issuedCondDataset).value === date",
1122
- then: {
1123
- type: "date",
1124
- name: "@value",
1125
- // validation: 'optional|date_after:' + new Date(new Date().getTime() - (24 * 60 * 60 * 1000)),
1126
- // 'validation-visibility': 'live',
1127
- classes: {
1128
- outer: "w-100"
1129
- }
1130
- },
1131
- else: {
1132
- type: "datetime-local",
1133
- name: "@value",
1134
- // validation: 'optional|date_after:' + new Date(new Date().getTime() - (24 * 60 * 60 * 1000)),
1135
- // 'validation-visibility': 'live',
1136
- classes: {
1137
- outer: "w-100"
1138
- }
1139
- }
1140
- }
1091
+ $formkit: "date",
1092
+ name: "@value"
1141
1093
  }
1142
1094
  ]
1143
1095
  },
@@ -1259,20 +1211,20 @@ const a = {
1259
1211
  name: "adms:versionNotes",
1260
1212
  children: [
1261
1213
  {
1262
- identifier: "versionNotes",
1214
+ identifier: "versionNotesGroup",
1263
1215
  $formkit: "group",
1264
1216
  name: "adms:versionNotes",
1265
1217
  children: [
1266
- {
1267
- identifier: "language",
1268
- value: "en",
1269
- $formkit: "select",
1270
- name: "@language",
1271
- options: e,
1272
- classes: {
1273
- outer: "w25-textfield"
1274
- }
1275
- },
1218
+ // {
1219
+ // identifier: "language",
1220
+ // value: "en",
1221
+ // $formkit: "select",
1222
+ // name: "@language",
1223
+ // options: language,
1224
+ // classes: {
1225
+ // outer: "w25-textfield",
1226
+ // },
1227
+ // },
1276
1228
  {
1277
1229
  identifier: "versionNotes",
1278
1230
  $formkit: "textarea",
@@ -13,15 +13,21 @@ const e = {
13
13
  DistributionSimple: ["distributionsimplepage", "distLicense"],
14
14
  ReviewAndPublish: ["reviewandpublishpage"],
15
15
  Additionals: [
16
+ "spatial",
17
+ "keyword",
18
+ "availabilityDE",
19
+ "issued",
16
20
  "contributorID",
17
21
  "geocodingDescription",
18
- "identifier",
22
+ "politicalGeocodingLevelURI",
23
+ // 'identifier',
19
24
  "admsIdentifier",
20
25
  "versionInfo",
21
26
  "versionNotes",
22
27
  "legalBasis",
23
28
  "relation",
24
29
  "landingPage",
30
+ "page",
25
31
  "language",
26
32
  "conformsTo",
27
33
  "accessRights",
@@ -34,6 +40,7 @@ const e = {
34
40
  "qualifiedAttribution",
35
41
  "qualifiedRelation",
36
42
  "isReferencedBy",
43
+ "references",
37
44
  "source",
38
45
  "hasVersion",
39
46
  "isVersionOf",
@@ -44,13 +51,13 @@ const e = {
44
51
  distributions: {
45
52
  Recommended: ["dct:modified", "dct:description"],
46
53
  Advanced: [
47
- "dcatde:licenseAttributionByText",
54
+ // "dcatde:licenseAttributionByText",
48
55
  "dcatap:availability",
49
56
  "dcat:byteSize",
50
57
  "dct:issued",
51
58
  "dct:language",
52
59
  "foaf:page",
53
- "dct:accessRights",
60
+ // 'dct:accessRights',
54
61
  "dct:conformsTo",
55
62
  "dcat:mediaType",
56
63
  "dcat:compressFormat",
@@ -0,0 +1,32 @@
1
+ import { createStore as o } from "vuex";
2
+ import r from "./modules/cataloguesStore.js";
3
+ import e from "./modules/catalogueDetailsStore.js";
4
+ import m from "./modules/datasetsStore.js";
5
+ import a from "./modules/datasetDetailsStore.js";
6
+ import s from "./modules/authStore.js";
7
+ import i from "./modules/snackbarStore.js";
8
+ import u from "./modules/dpiStore.js";
9
+ const l = {}, d = {}, c = {}, p = {
10
+ /**
11
+ * @description Returns the current route (name).
12
+ * @param state
13
+ */
14
+ getCurrentRoute: (t) => t.route
15
+ }, k = o({
16
+ state: l,
17
+ actions: d,
18
+ mutations: c,
19
+ getters: p,
20
+ modules: {
21
+ catalogs: r,
22
+ catalogDetails: e,
23
+ datasets: m,
24
+ datasetDetails: a,
25
+ dpiStore: u,
26
+ auth: s,
27
+ snackbar: i
28
+ }
29
+ });
30
+ export {
31
+ k as default
32
+ };