@piveau/piveau-hub-ui-modules 4.4.6 → 4.4.8
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/data-provider-interface/components/AutocompleteInput.vue.mjs +146 -133
- package/dist/data-provider-interface/components/AutocompleteInput.vue.mjs.map +1 -1
- package/dist/modal/AppConfirmationDialog.vue.d.ts +3 -3
- package/dist/modal/AppConfirmationDialog.vue.mjs +38 -41
- package/dist/modal/AppConfirmationDialog.vue.mjs.map +1 -1
- package/dist/piveau-hub-ui-modules.css +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as l, computed as r, openBlock as m, createElementBlock as f, createElementVNode as a, toDisplayString as d, createTextVNode as s, renderSlot as p, withDirectives as u, vShow as b } from "vue";
|
|
2
|
+
import { useI18n as c } from "vue-i18n";
|
|
3
|
+
import g from "jquery";
|
|
3
4
|
import "./AppConfirmationDialog.vue2.mjs";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
5
|
+
import v from "../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
|
+
const C = l({
|
|
6
7
|
name: "ConfirmationDialog",
|
|
7
8
|
inheritAttrs: !1,
|
|
8
9
|
props: {
|
|
@@ -15,20 +16,16 @@ const u = i({
|
|
|
15
16
|
default: !1
|
|
16
17
|
}
|
|
17
18
|
},
|
|
18
|
-
data() {
|
|
19
|
-
return {
|
|
20
|
-
resolvedConfirm: this.confirm
|
|
21
|
-
};
|
|
22
|
-
},
|
|
23
19
|
methods: {
|
|
24
20
|
handleHeader() {
|
|
25
|
-
|
|
21
|
+
g("#navbar-toggle").css("z-index", "99");
|
|
26
22
|
}
|
|
27
23
|
},
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
setup(e) {
|
|
25
|
+
const { t: o, te: t } = c();
|
|
26
|
+
return { resolvedConfirm: r(() => e.confirm === "Confirm" && t("message.dataupload.modal.confirmModal") ? o("message.dataupload.modal.confirmModal") : e.confirm) };
|
|
30
27
|
}
|
|
31
|
-
}),
|
|
28
|
+
}), $ = {
|
|
32
29
|
id: "modal",
|
|
33
30
|
class: "modal fade modalWrapper",
|
|
34
31
|
tabindex: "-1",
|
|
@@ -36,67 +33,67 @@ const u = i({
|
|
|
36
33
|
"aria-labelledby": "confirmationDialogLabel",
|
|
37
34
|
"data-backdrop": "false",
|
|
38
35
|
"data-cy": "create-doi-modal"
|
|
39
|
-
},
|
|
36
|
+
}, y = {
|
|
40
37
|
class: "modal-dialog modal-lg",
|
|
41
38
|
role: "document"
|
|
42
|
-
},
|
|
39
|
+
}, h = { class: "modal-content" }, D = { class: "modal-header" }, k = {
|
|
43
40
|
class: "modal-title",
|
|
44
41
|
id: "confirmationDialogLabel"
|
|
45
|
-
},
|
|
42
|
+
}, H = { class: "modal-body" }, S = { class: "modal-footer" }, A = ["disabled"], B = {
|
|
46
43
|
class: "spinner-border spinner-border-sm",
|
|
47
44
|
role: "status",
|
|
48
45
|
"aria-hidden": "true"
|
|
49
|
-
},
|
|
50
|
-
function
|
|
51
|
-
return
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
46
|
+
}, w = ["disabled"];
|
|
47
|
+
function E(e, o, t, i, L, M) {
|
|
48
|
+
return m(), f("div", $, [
|
|
49
|
+
a("div", y, [
|
|
50
|
+
a("div", h, [
|
|
51
|
+
a("div", D, [
|
|
52
|
+
a("h2", k, d(e.$t("message.dataupload.modal.confirmHead")), 1),
|
|
56
53
|
o[2] || (o[2] = s()),
|
|
57
|
-
o[3] || (o[3] =
|
|
54
|
+
o[3] || (o[3] = a("button", {
|
|
58
55
|
type: "button",
|
|
59
56
|
class: "close",
|
|
60
57
|
"data-dismiss": "modal",
|
|
61
58
|
"aria-label": "Close"
|
|
62
59
|
}, [
|
|
63
|
-
|
|
60
|
+
a("span", { "aria-hidden": "true" }, "×")
|
|
64
61
|
], -1))
|
|
65
62
|
]),
|
|
66
63
|
o[6] || (o[6] = s()),
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
a("div", H, [
|
|
65
|
+
p(e.$slots, "default", {}, () => [
|
|
69
66
|
o[4] || (o[4] = s(`
|
|
70
67
|
Are you sure? This process can not be reverted.
|
|
71
68
|
`))
|
|
72
69
|
])
|
|
73
70
|
]),
|
|
74
71
|
o[7] || (o[7] = s()),
|
|
75
|
-
|
|
76
|
-
|
|
72
|
+
a("div", S, [
|
|
73
|
+
a("button", {
|
|
77
74
|
class: "btn btn-link",
|
|
78
|
-
onClick: o[0] || (o[0] = (
|
|
79
|
-
disabled:
|
|
75
|
+
onClick: o[0] || (o[0] = (n) => e.$emit("confirm")),
|
|
76
|
+
disabled: e.loading
|
|
80
77
|
}, [
|
|
81
|
-
|
|
82
|
-
[
|
|
78
|
+
u(a("span", B, null, 512), [
|
|
79
|
+
[b, e.loading]
|
|
83
80
|
]),
|
|
84
|
-
s(" " +
|
|
85
|
-
], 8,
|
|
81
|
+
s(" " + d(e.resolvedConfirm), 1)
|
|
82
|
+
], 8, A),
|
|
86
83
|
o[5] || (o[5] = s()),
|
|
87
|
-
|
|
84
|
+
a("button", {
|
|
88
85
|
class: "btn btn-secondary",
|
|
89
86
|
"data-dismiss": "modal",
|
|
90
|
-
onClick: o[1] || (o[1] = (...
|
|
91
|
-
disabled:
|
|
92
|
-
},
|
|
87
|
+
onClick: o[1] || (o[1] = (...n) => e.handleHeader && e.handleHeader(...n)),
|
|
88
|
+
disabled: e.loading
|
|
89
|
+
}, d(e.$t("message.datasetDetails.datasets.modal.close")), 9, w)
|
|
93
90
|
])
|
|
94
91
|
])
|
|
95
92
|
])
|
|
96
93
|
]);
|
|
97
94
|
}
|
|
98
|
-
const
|
|
95
|
+
const I = /* @__PURE__ */ v(C, [["render", E]]);
|
|
99
96
|
export {
|
|
100
|
-
|
|
97
|
+
I as default
|
|
101
98
|
};
|
|
102
99
|
//# sourceMappingURL=AppConfirmationDialog.vue.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppConfirmationDialog.vue.mjs","sources":["../../lib/modal/AppConfirmationDialog.vue"],"sourcesContent":["<template>\n <!-- Modals -->\n <div id=\"modal\" class=\"modal fade modalWrapper\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"confirmationDialogLabel\"\n data-backdrop=\"false\" data-cy=\"create-doi-modal\">\n <div class=\"modal-dialog modal-lg\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h2 class=\"modal-title\" id=\"confirmationDialogLabel\">\n {{$t('message.dataupload.modal.confirmHead')}}\n </h2>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">×</span>\n </button>\n </div>\n <div class=\"modal-body\">\n <slot>\n Are you sure? This process can not be reverted.\n </slot>\n </div>\n <!-- Export options -->\n <!-- Currently unused but might be useful in the future -->\n <div class=\"modal-footer\">\n <!-- <div class=\"alert alert-danger mr-auto\" v-if=\"modal.error\">\n {{ modal.error.message || \"An unexpected network error occured.\" }}\n </div> -->\n <button class=\"btn btn-link\" @click=\"$emit('confirm')\" :disabled=\"loading\">\n <span v-show=\"loading\" class=\"spinner-border spinner-border-sm\" role=\"status\" aria-hidden=\"true\" />\n {{ resolvedConfirm }}\n </button>\n <button class=\"btn btn-secondary\" data-dismiss=\"modal\" @click=\"handleHeader\" :disabled=\"loading\">{{ $t('message.datasetDetails.datasets.modal.close') }}</button>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport { defineComponent } from 'vue'\nimport $ from 'jquery';\n\nexport default defineComponent({\n name: 'ConfirmationDialog',\n inheritAttrs: false,\n props: {\n confirm: {\n type: String,\n default: 'Confirm'\n },\n loading: {\n type: Boolean,\n default: false,\n },\n },\n
|
|
1
|
+
{"version":3,"file":"AppConfirmationDialog.vue.mjs","sources":["../../lib/modal/AppConfirmationDialog.vue"],"sourcesContent":["<template>\n <!-- Modals -->\n <div id=\"modal\" class=\"modal fade modalWrapper\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"confirmationDialogLabel\"\n data-backdrop=\"false\" data-cy=\"create-doi-modal\">\n <div class=\"modal-dialog modal-lg\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h2 class=\"modal-title\" id=\"confirmationDialogLabel\">\n {{$t('message.dataupload.modal.confirmHead')}}\n </h2>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">×</span>\n </button>\n </div>\n <div class=\"modal-body\">\n <slot>\n Are you sure? This process can not be reverted.\n </slot>\n </div>\n <!-- Export options -->\n <!-- Currently unused but might be useful in the future -->\n <div class=\"modal-footer\">\n <!-- <div class=\"alert alert-danger mr-auto\" v-if=\"modal.error\">\n {{ modal.error.message || \"An unexpected network error occured.\" }}\n </div> -->\n <button class=\"btn btn-link\" @click=\"$emit('confirm')\" :disabled=\"loading\">\n <span v-show=\"loading\" class=\"spinner-border spinner-border-sm\" role=\"status\" aria-hidden=\"true\" />\n {{ resolvedConfirm }}\n </button>\n <button class=\"btn btn-secondary\" data-dismiss=\"modal\" @click=\"handleHeader\" :disabled=\"loading\">{{ $t('message.datasetDetails.datasets.modal.close') }}</button>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport { computed, defineComponent } from 'vue'\nimport { useI18n } from 'vue-i18n';\nimport $ from 'jquery';\n\nexport default defineComponent({\n name: 'ConfirmationDialog',\n inheritAttrs: false,\n props: {\n confirm: {\n type: String,\n default: 'Confirm'\n },\n loading: {\n type: Boolean,\n default: false,\n },\n },\n methods:{\n handleHeader(){\n $('#navbar-toggle').css(\"z-index\", \"99\")\n }\n },\n setup(props) {\n const { t, te } = useI18n();\n const resolvedConfirm = computed(() => props.confirm === 'Confirm' && te('message.dataupload.modal.confirmModal') ? t('message.dataupload.modal.confirmModal') : props.confirm);\n\n return { resolvedConfirm };\n }\n});\n</script>\n\n<style>\n/* If the display:block is active, the modal will appear in the bavaria hub-ui and makes it unusable. But it's actually not needed here.*/\n.modalWrapper {\n backdrop-filter: brightness(0.5);\n /* display: block; */\n align-items: center;\n z-index: 100;\n}\n</style>"],"names":["_sfc_main","defineComponent","$","props","t","te","useI18n","computed","_hoisted_3","_hoisted_4","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_10","_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_5","_toDisplayString","_ctx","_cache","_createTextVNode","_renderSlot","_withDirectives","_hoisted_9","args"],"mappings":";;;;;AAyCA,MAAKA,IAAaC,EAAa;AAAA,EAC7B,MAAM;AAAA,EACN,cAAc;AAAA,EACd,OAAO;AAAA,IACL,SAAS;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,IACD,SAAS;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,EACF;AAAA,EACD,SAAQ;AAAA,IACN,eAAc;AACZ,MAAAC,EAAE,gBAAgB,EAAE,IAAI,WAAW,IAAI;AAAA,IACzC;AAAA,EACD;AAAA,EACD,MAAMC,GAAO;AACX,UAAM,EAAE,GAAAC,GAAG,IAAAC,MAAOC,EAAO;AAGzB,WAAO,EAAE,iBAFeC,EAAS,MAAMJ,EAAM,YAAY,aAAaE,EAAG,uCAAuC,IAAID,EAAE,uCAAuC,IAAID,EAAM,OAAO,EAEvJ;AAAA,EACzB;AACF,CAAC;EA/DM,IAAG;AAAA,EAAQ,OAAM;AAAA,EAA0B,UAAS;AAAA,EAAK,MAAK;AAAA,EAAS,mBAAgB;AAAA,EAC1F,iBAAc;AAAA,EAAQ,WAAQ;;EACzB,OAAM;AAAA,EAAwB,MAAK;GACjCK,IAAA,EAAA,OAAM,gBAAe,GACnBC,IAAA,EAAA,OAAM,eAAc;EACnB,OAAM;AAAA,EAAc,IAAG;GAOxBC,IAAA,EAAA,OAAM,aAAY,GAOlBC,IAAA,EAAA,OAAM,eAAc,GArBjCC,IA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