@piveau/dpi 0.1.0-beta.7 → 0.1.0-beta.71
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.
- package/dist/assets/dpi.css +1 -1
- package/dist/data-provider-interface/DPIMenu.vue.js +2 -2
- package/dist/data-provider-interface/HappyFlowComponents/ComponentLibrary.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +58 -53
- package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +88 -68
- package/dist/data-provider-interface/HappyFlowComponents/ui/CloseOpenButtonV3.vue.js +11 -10
- package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +2 -2
- package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +101 -76
- package/dist/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +11 -11
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +444 -355
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +64 -28
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +108 -74
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js +17 -22
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +122 -85
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +170 -99
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js +7 -10
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +110 -52
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +65 -86
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
- package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +159 -103
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsModal.vue.js +48 -48
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +566 -207
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +100 -53
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +43 -89
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +329 -100
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +43 -26
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +70 -38
- package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +181 -107
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +19 -14
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextButtonSmall.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +30 -29
- package/dist/data-provider-interface/components/ContactPage.vue.js +148 -100
- package/dist/data-provider-interface/components/DiscoverabilityPage.vue.js +32 -32
- package/dist/data-provider-interface/components/DistLicense.vue.js +198 -99
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +950 -833
- package/dist/data-provider-interface/components/Dropup.vue.js +6 -6
- package/dist/data-provider-interface/components/HVDPage.vue.js +107 -85
- package/dist/data-provider-interface/components/InfoSlot.vue.js +5 -5
- package/dist/data-provider-interface/components/PolGeoUriPage.vue.js +89 -46
- package/dist/data-provider-interface/components/PublisherPage.vue.js +111 -81
- package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +314 -260
- package/dist/data-provider-interface/components/TempResPage.vue.js +267 -187
- package/dist/data-provider-interface/components/TempResPageInModal.vue.js +392 -0
- package/dist/data-provider-interface/components/TitelPage.vue.js +4 -4
- package/dist/data-provider-interface/components/UpdateDate.vue.js +33 -29
- package/dist/data-provider-interface/components/dpiV3Description.vue.js +7 -6
- package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +397 -244
- package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.js +1 -1
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +477 -96
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +104 -152
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +9 -2
- package/dist/data-provider-interface/store/modules/authStore.js +11 -11
- package/dist/data-provider-interface/views/DraftsPage.vue.js +3 -3
- package/dist/data-provider-interface/views/InputPage.vue.js +384 -758
- package/dist/styles/_dpi.scss +1614 -0
- package/dist/styles/_maps.scss +24 -0
- package/dist/styles/_variables.scss +973 -0
- package/package.json +28 -19
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LicenseAttributionByText.vue.js +0 -46
|
@@ -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
|
-
|
|
75
|
+
$formkit: "repeatable",
|
|
77
76
|
voc: "political-geocoding-level",
|
|
78
|
-
|
|
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
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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: "
|
|
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": "
|
|
229
|
+
"vcard:Organization": "Organisation"
|
|
217
230
|
}
|
|
218
231
|
},
|
|
219
232
|
{
|
|
220
233
|
identifier: "contributorEmail",
|
|
221
|
-
$formkit: "
|
|
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": "
|
|
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
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
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
|
-
|
|
561
|
+
identifier: "spatialHeader",
|
|
562
|
+
$formkit: "group",
|
|
549
563
|
name: "dct:spatial",
|
|
550
|
-
|
|
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": "
|
|
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: "
|
|
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: "
|
|
689
|
-
name: "dct:title"
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
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: "
|
|
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
|
-
|
|
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: "
|
|
896
|
+
$formkit: "repeatable",
|
|
928
897
|
name: "dct:language",
|
|
929
898
|
class: "property",
|
|
930
|
-
|
|
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
|
-
|
|
1109
|
-
|
|
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: "
|
|
1214
|
+
identifier: "versionNotesGroup",
|
|
1263
1215
|
$formkit: "group",
|
|
1264
1216
|
name: "adms:versionNotes",
|
|
1265
1217
|
children: [
|
|
1266
|
-
{
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
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
|
-
"
|
|
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,7 +51,7 @@ 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",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import n from "axios";
|
|
2
2
|
import { cloneDeep as u, get as T } from "lodash-es";
|
|
3
3
|
import i from "../../../utils/draftApi.js";
|
|
4
4
|
import f from "../../../utils/identifiersApi.js";
|
|
@@ -68,14 +68,14 @@ const d = {
|
|
|
68
68
|
e("UPDATE_USER_DATA_PENDING");
|
|
69
69
|
try {
|
|
70
70
|
if (!s) throw new Error("Failed to retrieve RTP token");
|
|
71
|
-
const E = R(s), D = T(E, "authorization.permissions", []),
|
|
71
|
+
const E = R(s), D = T(E, "authorization.permissions", []), o = T(E, "realm_access.roles", []);
|
|
72
72
|
e("SET_USER_DATA", {
|
|
73
73
|
authToken: a,
|
|
74
74
|
rtpToken: s,
|
|
75
75
|
userName: E.preferred_username,
|
|
76
76
|
permissions: D,
|
|
77
77
|
drafts: [],
|
|
78
|
-
roles:
|
|
78
|
+
roles: o
|
|
79
79
|
}), _ = i({ baseURL: r, authToken: s }), A = f({
|
|
80
80
|
baseURL: r,
|
|
81
81
|
authToken: s
|
|
@@ -101,7 +101,7 @@ const d = {
|
|
|
101
101
|
data: t.body
|
|
102
102
|
};
|
|
103
103
|
console.log("############", a);
|
|
104
|
-
const s = await
|
|
104
|
+
const s = await n.request(a);
|
|
105
105
|
(s.status === 201 || s.status === 204) && (e("CHANGE_IS_EDIT_MODE", !1), e("CHANGE_IS_DRAFT", !1));
|
|
106
106
|
},
|
|
107
107
|
/**
|
|
@@ -131,8 +131,8 @@ const d = {
|
|
|
131
131
|
title: r,
|
|
132
132
|
body: E
|
|
133
133
|
}), e("UPDATE_USER_DATA_SUCCESS");
|
|
134
|
-
} catch (
|
|
135
|
-
throw e("UPDATE_USER_DATA_ERROR"),
|
|
134
|
+
} catch (o) {
|
|
135
|
+
throw e("UPDATE_USER_DATA_ERROR"), o;
|
|
136
136
|
}
|
|
137
137
|
return D;
|
|
138
138
|
},
|
|
@@ -150,7 +150,7 @@ const d = {
|
|
|
150
150
|
},
|
|
151
151
|
async publishUserDraftById({ commit: e, state: t }, { id: a, catalog: s, body: r = {} }) {
|
|
152
152
|
if (!_) return {};
|
|
153
|
-
if (!t.userData.drafts.find((
|
|
153
|
+
if (!t.userData.drafts.find((o) => o.id === a)) return {};
|
|
154
154
|
e("UPDATE_USER_DATA_PENDING");
|
|
155
155
|
let D;
|
|
156
156
|
try {
|
|
@@ -159,8 +159,8 @@ const d = {
|
|
|
159
159
|
catalogue: s,
|
|
160
160
|
body: r
|
|
161
161
|
}), e("DELETE_USER_DRAFT", a), e("UPDATE_USER_DATA_SUCCESS"), e("CHANGE_IS_DRAFT", !1), e("CHANGE_IS_EDIT_MODE", !1);
|
|
162
|
-
} catch (
|
|
163
|
-
throw e("UPDATE_USER_DATA_ERROR"),
|
|
162
|
+
} catch (o) {
|
|
163
|
+
throw console.log("error"), e("UPDATE_USER_DATA_ERROR"), o;
|
|
164
164
|
}
|
|
165
165
|
return D;
|
|
166
166
|
},
|
|
@@ -170,7 +170,7 @@ const d = {
|
|
|
170
170
|
method: "GET",
|
|
171
171
|
url: E + "drafts/datasets/" + a + ".nt?catalogue=" + r
|
|
172
172
|
};
|
|
173
|
-
await
|
|
173
|
+
await n.request(D);
|
|
174
174
|
},
|
|
175
175
|
async publishUserDraft({ dispatch: e }, { id: t, catalog: a, body: s }) {
|
|
176
176
|
return e("publishUserDraftById", { id: t, catalog: a, body: s });
|
|
@@ -224,7 +224,7 @@ const d = {
|
|
|
224
224
|
Authorization: `Bearer ${t.token}`
|
|
225
225
|
},
|
|
226
226
|
data: t.data
|
|
227
|
-
}, s = await
|
|
227
|
+
}, s = await n.request(a);
|
|
228
228
|
if (s.status === 201 | s.status === 204) {
|
|
229
229
|
e("CHANGE_IS_EDIT_MODE", !1), e("CHANGE_IS_DRAFT", !1);
|
|
230
230
|
const r = u(d.userData), E = {
|
|
@@ -163,14 +163,14 @@ function Q(a, e, m, _, p, r) {
|
|
|
163
163
|
fragment: "#",
|
|
164
164
|
role: "button",
|
|
165
165
|
id: "linkedDataDropdown",
|
|
166
|
-
"data-toggle": "dropdown",
|
|
166
|
+
"data-bs-toggle": "dropdown",
|
|
167
167
|
"aria-haspopup": "true",
|
|
168
168
|
"aria-expanded": "false"
|
|
169
169
|
}, {
|
|
170
170
|
default: i(() => [
|
|
171
171
|
t("span", {
|
|
172
172
|
title: a.$t("message.metadata.linkedData"),
|
|
173
|
-
"data-toggle": "tooltip",
|
|
173
|
+
"data-bs-toggle": "tooltip",
|
|
174
174
|
"data-placement": "top"
|
|
175
175
|
}, o(a.$t("message.metadata.linkedData")), 9, H)
|
|
176
176
|
]),
|
|
@@ -272,7 +272,7 @@ function Q(a, e, m, _, p, r) {
|
|
|
272
272
|
}, 8, ["loading", "onConfirm"])
|
|
273
273
|
]);
|
|
274
274
|
}
|
|
275
|
-
const rt = /* @__PURE__ */ I(C, [["render", Q], ["__scopeId", "data-v-
|
|
275
|
+
const rt = /* @__PURE__ */ I(C, [["render", Q], ["__scopeId", "data-v-f3a8f6a6"]]);
|
|
276
276
|
export {
|
|
277
277
|
rt as default
|
|
278
278
|
};
|