@piveau/piveau-hub-ui-modules 4.5.9 → 4.5.11

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 (48) hide show
  1. package/dist/configurations/configureModules.mjs +5 -7
  2. package/dist/configurations/configureModules.mjs.map +1 -1
  3. package/dist/data-provider-interface/CatalogueMQA.vue.mjs +235 -206
  4. package/dist/data-provider-interface/CatalogueMQA.vue.mjs.map +1 -1
  5. package/dist/data-provider-interface/DPIMenu.vue.d.ts +2 -2
  6. package/dist/data-provider-interface/views/UserCataloguesPage.vue.mjs +62 -107
  7. package/dist/data-provider-interface/views/UserCataloguesPage.vue.mjs.map +1 -1
  8. package/dist/datasetDetails/DatasetDetailsDescription.vue.d.ts +1 -1
  9. package/dist/datasetDetails/distributions/DistributionFormat.vue.d.ts +2 -2
  10. package/dist/datasetDetails/distributions/DownloadAllDistributions.vue.d.ts +2 -2
  11. package/dist/datasetDetails/distributions/distributionActions/DistributionDownload.vue.d.ts +2 -2
  12. package/dist/datasetDetails/header/DatasetDetailsHeaderTitle.vue.d.ts +1 -1
  13. package/dist/datasetDetails/navigation/DatasetDetailsNavigation.vue.d.ts +1 -1
  14. package/dist/datasetDetails/navigation/DatasetDetailsNavigationLinks.vue.d.ts +1 -1
  15. package/dist/datasets/Datasets.vue.mjs +87 -87
  16. package/dist/datasets/Datasets.vue.mjs.map +1 -1
  17. package/dist/piveau-hub-ui-modules.css +1 -1
  18. package/package.json +1 -1
  19. package/dist/facets_2.0/Facets.vue.d.ts +0 -19
  20. package/dist/facets_2.0/Facets.vue.mjs +0 -31
  21. package/dist/facets_2.0/Facets.vue.mjs.map +0 -1
  22. package/dist/facets_2.0/Facets.vue2.mjs +0 -5
  23. package/dist/facets_2.0/Facets.vue2.mjs.map +0 -1
  24. package/dist/facets_2.0/facets/DataServicesFacet.vue.d.ts +0 -75
  25. package/dist/facets_2.0/facets/DataServicesFacet.vue.mjs +0 -49
  26. package/dist/facets_2.0/facets/DataServicesFacet.vue.mjs.map +0 -1
  27. package/dist/facets_2.0/facets/ExpandableSelectFacet.vue.d.ts +0 -93
  28. package/dist/facets_2.0/facets/ExpandableSelectFacet.vue.mjs +0 -143
  29. package/dist/facets_2.0/facets/ExpandableSelectFacet.vue.mjs.map +0 -1
  30. package/dist/facets_2.0/facets/ExpandableSelectFacet.vue2.mjs +0 -5
  31. package/dist/facets_2.0/facets/ExpandableSelectFacet.vue2.mjs.map +0 -1
  32. package/dist/facets_2.0/facets/FacetTitle.vue.d.ts +0 -18
  33. package/dist/facets_2.0/facets/FacetTitle.vue.mjs +0 -38
  34. package/dist/facets_2.0/facets/FacetTitle.vue.mjs.map +0 -1
  35. package/dist/facets_2.0/facets/FacetTitle.vue2.mjs +0 -5
  36. package/dist/facets_2.0/facets/FacetTitle.vue2.mjs.map +0 -1
  37. package/dist/facets_2.0/facets/RadioFacet.vue.d.ts +0 -58
  38. package/dist/facets_2.0/facets/RadioFacet.vue.mjs +0 -92
  39. package/dist/facets_2.0/facets/RadioFacet.vue.mjs.map +0 -1
  40. package/dist/facets_2.0/facets/SelectFacetsItem.vue.d.ts +0 -34
  41. package/dist/facets_2.0/facets/SelectFacetsItem.vue.mjs +0 -45
  42. package/dist/facets_2.0/facets/SelectFacetsItem.vue.mjs.map +0 -1
  43. package/dist/facets_2.0/getFacet.mjs +0 -20
  44. package/dist/facets_2.0/getFacet.mjs.map +0 -1
  45. package/dist/facets_2.0/toggleQueryParam.mjs +0 -11
  46. package/dist/facets_2.0/toggleQueryParam.mjs.map +0 -1
  47. package/dist/facets_2.0/useFacets.mjs +0 -14
  48. package/dist/facets_2.0/useFacets.mjs.map +0 -1
@@ -1,11 +1,9 @@
1
- import { configureServices as t } from "./configureServices.mjs";
2
- import { configureComponents as m } from "./configureComponents.mjs";
3
- const u = {};
4
- function v(r, s, e) {
5
- s.$app = r, e && (t(s, e == null ? void 0 : e.serviceParams), m(r, e == null ? void 0 : e.components)), u.customFacets = e == null ? void 0 : e.customFacets;
1
+ import { configureServices as s } from "./configureServices.mjs";
2
+ import { configureComponents as t } from "./configureComponents.mjs";
3
+ function a(r, m, e) {
4
+ m.$app = r, e && (s(m, e == null ? void 0 : e.serviceParams), t(r, e == null ? void 0 : e.components)), e == null || e.customFacets;
6
5
  }
7
6
  export {
8
- v as configureModules,
9
- u as extras
7
+ a as configureModules
10
8
  };
11
9
  //# sourceMappingURL=configureModules.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"configureModules.mjs","sources":["../../lib/configurations/configureModules.ts"],"sourcesContent":["import { configureServices } from \"./configureServices\";\nimport { ComponentMap, configureComponents } from \"./configureComponents\";\n\ntype ModulesConfig = {\n components: ComponentMap,\n serviceParams: {[key: string]: unknown},\n customFacets: any\n};\n\nexport const extras: {[key:string]: any} = {};\n\nexport function configureModules(app: any, store: any, config?: ModulesConfig) {\n store.$app = app;\n if (config) {\n configureServices(store, config?.serviceParams);\n configureComponents(app, config?.components);\n }\n extras.customFacets = config?.customFacets\n}\n"],"names":["extras","configureModules","app","store","config","configureServices","configureComponents"],"mappings":";;AASO,MAAMA,IAA8B,CAAC;AAE5B,SAAAC,EAAiBC,GAAUC,GAAYC,GAAwB;AAC7E,EAAAD,EAAM,OAAOD,GACTE,MACgBC,EAAAF,GAAOC,KAAA,gBAAAA,EAAQ,aAAa,GAC1BE,EAAAJ,GAAKE,KAAA,gBAAAA,EAAQ,UAAU,IAE7CJ,EAAO,eAAeI,KAAA,gBAAAA,EAAQ;AAChC;"}
1
+ {"version":3,"file":"configureModules.mjs","sources":["../../lib/configurations/configureModules.ts"],"sourcesContent":["import { configureServices } from \"./configureServices\";\nimport { ComponentMap, configureComponents } from \"./configureComponents\";\n\ntype ModulesConfig = {\n components: ComponentMap,\n serviceParams: {[key: string]: unknown},\n customFacets: any\n};\n\nexport const extras: {[key:string]: any} = {};\n\nexport function configureModules(app: any, store: any, config?: ModulesConfig) {\n store.$app = app;\n if (config) {\n configureServices(store, config?.serviceParams);\n configureComponents(app, config?.components);\n }\n extras.customFacets = config?.customFacets\n}\n"],"names":["configureModules","app","store","config","configureServices","configureComponents"],"mappings":";;AAWgB,SAAAA,EAAiBC,GAAUC,GAAYC,GAAwB;AAC7E,EAAAD,EAAM,OAAOD,GACTE,MACgBC,EAAAF,GAAOC,KAAA,gBAAAA,EAAQ,aAAa,GAC1BE,EAAAJ,GAAKE,KAAA,gBAAAA,EAAQ,UAAU,IAEvBA,KAAA,QAAAA,EAAQ;AAChC;"}
@@ -1,46 +1,58 @@
1
- import { ref as a, getCurrentInstance as X, openBlock as p, createElementBlock as m, createElementVNode as l, createTextVNode as e, toDisplayString as x, unref as o, createCommentVNode as C, Fragment as z, renderList as R, normalizeClass as b, withDirectives as B, vModelText as S, isRef as A } from "vue";
2
- import { onClickOutside as Y } from "../external/@vueuse/core/index";
3
- import { useRoute as c } from "vue-router";
4
- import D from "axios";
1
+ import { ref as u, getCurrentInstance as ot, openBlock as a, createElementBlock as v, createElementVNode as l, createTextVNode as e, toDisplayString as i, unref as n, createCommentVNode as w, Fragment as Q, renderList as j, withDirectives as B, normalizeClass as A, vModelText as N, isRef as L } from "vue";
2
+ import { useRouter as ut, useRoute as it } from "vue-router";
3
+ import { useStore as rt } from "vuex";
4
+ import O from "axios";
5
5
  import "./CatalogueMQA.vue2.mjs";
6
- import h from "../_virtual/_plugin-vue_export-helper.mjs";
7
- const _ = { class: "container mb-3" }, tt = { key: 0 }, lt = { key: 1 }, et = { key: 0 }, nt = { class: "mqaWrapper" }, ot = { class: "mailItems" }, st = ["value", "readonly", "onInput"], it = ["onClick"], at = ["onClick"], rt = {
6
+ import at from "../_virtual/_plugin-vue_export-helper.mjs";
7
+ const vt = { class: "container mb-3" }, dt = { class: "debug" }, pt = { key: 0 }, mt = { key: 1 }, ft = { key: 0 }, bt = { class: "mqaWrapper" }, yt = { key: 0 }, gt = ["onUpdate:modelValue", "onInput"], kt = ["onClick"], Ct = ["onClick"], wt = {
8
8
  key: 0,
9
9
  class: "errormsg"
10
- }, ut = { class: "my-3 d-flex" }, dt = ["disabled"], vt = {
10
+ }, At = { class: "d-flex mt-3" }, Mt = {
11
11
  key: 1,
12
12
  class: "errormsg"
13
- }, pt = { class: "mqaWrapper" }, mt = { class: "d-flex" }, ft = { class: "mr-3 my-3" }, yt = ["onClick"], bt = ["disabled"], gt = { class: "my-3" }, Ct = ["disabled"], kt = { class: "caretWrap" }, wt = { class: "mqaWrapper" }, At = { class: "w-50" }, xt = { class: "actionWrapper" }, Mt = {
13
+ }, St = { class: "mqaWrapper" }, It = { class: "d-flex mt-3" }, Vt = { class: "mr-3 my-3" }, $t = ["disabled", "onClick"], qt = { class: "my-3" }, Bt = ["disabled"], Nt = { class: "caretWrap" }, Wt = { class: "mqaWrapper" }, Et = { class: "w-50 mt-3" }, xt = { class: "actionWrapper" }, Dt = {
14
14
  __name: "CatalogueMQA",
15
- setup(It) {
16
- const L = c();
17
- let r = a(!1), u = a(!1), f = a({ mail: "", valid: !0 }), E = a(null);
18
- a(!0);
19
- let k = a("Activate"), w = a(!1), y = a(!1), d = a(), j = ["Mo", "Tue", "We", "Th", "Fr", "Sa", "Su"], i = a(1);
20
- const M = L.params.id, W = X(), O = W.appContext.app.config.globalProperties.$env.api.notificationBaseUrl, N = W.appContext.app.config.globalProperties.$env.api.apiKey, I = a({}), $ = a(0), P = /^(2[0-8]|[1-9])$/;
21
- d.value = [{ mail: "mail@mail2.com", readonly: !0, valid: !0 }, { mail: "mail@mail1.com", readonly: !0, valid: !0 }];
22
- const V = async () => {
23
- const s = {
15
+ setup(Ut) {
16
+ const K = rt(), x = ut(), D = (o) => {
17
+ K.dispatch("snackbar/showSnackbar", o);
18
+ }, U = () => {
19
+ D({
20
+ message: "Saved Successfully",
21
+ variant: "success"
22
+ });
23
+ }, G = it();
24
+ let y = u(!1), m = u(!1), H = u(null), $ = u("Activate"), W = u(!1), g = u(!1), f = u(), J = ["Mo", "Tue", "We", "Th", "Fr", "Sa", "Su"], d = u(1), I = u(!1), k = u(0), M = u(""), b = u(""), S = u(null);
25
+ const E = G.params.id, T = ot(), X = T.appContext.app.config.globalProperties.$env.api.notificationBaseUrl, P = T.appContext.app.config.globalProperties.$env.api.apiKey, R = (o) => {
26
+ m.value && (S.value = o, b.value = S);
27
+ }, Y = () => {
28
+ m.value = !0, y.value = !1, S.value = b.value;
29
+ }, Z = () => {
30
+ m.value = !1, y.value = !0, S.value = b.value;
31
+ }, C = u({}), z = (o) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o);
32
+ let p = u({ mail: "", isValid: !0 }), V = u({});
33
+ const h = async () => {
34
+ const o = {
24
35
  method: "get",
25
- url: `${O}/catalogue/${M}/setting`,
36
+ url: `${X}/catalogue/${E}/setting`,
26
37
  headers: {
27
- Authorization: N,
38
+ Authorization: P,
28
39
  Accept: "application/json"
29
40
  },
30
41
  withCredentials: !0
31
42
  };
32
43
  try {
33
- const t = await D.request(s);
34
- I.value = t.data, I.value.activeStatus === !0 && (y.value = !0, k.value = "Deactivate"), I.value.activeStatus === !1 && (y.value = !1, k.value = "Activate"), console.log("Response:", t);
44
+ const t = await O.request(o);
45
+ C.value = t.data, C.value.activeStatus === !0 && (g.value = !0, $.value = "Deactivate"), C.value.activeStatus === !1 && (g.value = !1, $.value = "Activate"), f.value = C.value.receiverEmailList, M.value = C.value.frequency.unit, b.value = C.value.frequency.value, k.value = C.value.threshold, M.value === "week" ? (m.value = !0, y.value = !1, S.value = b.value) : M.value === "month" && (m.value = !1, y.value = !0, d.value = b.value), console.log("Response:", t);
35
46
  } catch (t) {
36
47
  console.log("Full error:", t);
37
48
  }
38
- }, F = async () => {
39
- const s = {
49
+ }, c = async () => {
50
+ m.value === !0 ? (M.value = "week", b.value = S.value) : y.value === !0 && (M.value = "month", b.value = d.value);
51
+ const o = {
40
52
  method: "post",
41
- url: `https://piveau-metrics-notifications-piveau.apps.osc.fokus.fraunhofer.de/catalogue/${M}/setting`,
53
+ url: `https://piveau-metrics-notifications-piveau.apps.osc.fokus.fraunhofer.de/catalogue/${E}/setting`,
42
54
  headers: {
43
- Authorization: N,
55
+ Authorization: P,
44
56
  Accept: "application/json",
45
57
  "Content-Type": "application/json",
46
58
  "Access-Control-Allow-Origin": "*",
@@ -49,221 +61,239 @@ const _ = { class: "container mb-3" }, tt = { key: 0 }, lt = { key: 1 }, et = {
49
61
  },
50
62
  withCredentials: !0,
51
63
  data: JSON.stringify({
52
- receiverEmailList: d.value,
64
+ receiverEmailList: f.value,
65
+ threshold: Number(k.value),
53
66
  frequency: {
54
- unit: "week",
55
- value: 9
67
+ unit: M.value,
68
+ value: b.value
56
69
  },
57
70
  activeStatus: !0
58
71
  })
59
72
  };
60
73
  try {
61
- const t = await D.request(s);
62
- return console.log("Settings updated:", t.data), t.data;
74
+ const t = await O.request(o);
75
+ return console.log("Settings updated:", t.data), U(), x.push({ name: "DataProviderInterface-UserCatalogues" }), t.data;
63
76
  } catch (t) {
64
- throw console.log("Error updating settings:", t), t;
77
+ throw U(), console.log("Error updating settings:", t), t;
65
78
  }
66
79
  };
67
- V(), Y(E, (s) => {
68
- d.value.forEach((t) => {
69
- t.readonly = !0;
80
+ h();
81
+ const _ = () => {
82
+ I.value = !0, D({
83
+ message: "Email added successfully.",
84
+ variant: "success"
70
85
  });
71
- });
72
- const Q = () => {
73
- const s = document.getElementsByClassName("dayButtons");
74
- for (let t = 0; t < s.length; t++)
75
- s[t].classList.remove("activeItem");
76
- }, T = (s) => {
77
- s === "up" && i.value < 28 ? (i.value > 8 && (w.value = !0), i.value++) : i.value > 1 && (i.value < 11 && (w.value = !1), i.value--);
78
- }, U = (s, t) => {
79
- t.target.classList.toggle("activeItem");
80
- }, Z = () => {
81
- P.test(i.value) || (i.value = "28"), i.value > 8 ? w.value = !0 : w.value = !1;
82
- }, K = () => {
83
- f.value.mail != "" && (d.value.push({ mail: f.value.mail, readonly: !0, valid: !0 }), f.value = { mail: "", valid: !0 });
84
- }, G = () => {
85
- y.value ? (y.value = !1, k.value = "Activate") : (y.value = !0, k.value = "Deactivate");
86
- }, H = (s) => {
87
- d.value.forEach((t) => {
88
- t.readonly = !0;
89
- }), s.readonly = !s.readonly;
90
- }, q = (s, t) => {
91
- const n = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, v = s.target.value;
92
- n.test(v) || v === "" ? (d.value.forEach((g) => {
93
- g.mail === t && (g.mail = v, g.valid = !0);
94
- }), t === void 0 && (f.value.valid = !0)) : (d.value.forEach((g) => {
95
- g.mail === t && (g.valid = !1);
96
- }), t === void 0 && (f.value.valid = !1));
97
- }, J = (s) => {
98
- let t = -1;
99
- d.value.forEach((n, v) => {
100
- n.mail === s && (t = v);
101
- }), t !== -1 && d.value.splice(t, 1);
86
+ }, tt = (o) => {
87
+ const t = f.value[o].trim();
88
+ z(t) ? (I.value = !1, delete V.value[o]) : V.value[o] = "*Invalid email format";
89
+ }, lt = (o) => {
90
+ f.value.splice(o, 1);
91
+ }, F = (o) => {
92
+ o === "up" && d.value < 28 ? (d.value > 8 && (W.value = !0), d.value++) : d.value > 1 && (d.value < 11 && (W.value = !1), d.value--);
93
+ }, et = () => {
94
+ if (p.value.mail.trim() === "") {
95
+ p.value.isValid = !1;
96
+ return;
97
+ }
98
+ z(p.value.mail) ? (f.value.push(p.value.mail), p.value.mail = "", p.value.isValid = !0) : p.value.isValid = !1;
99
+ }, nt = () => {
100
+ g.value ? (g.value = !1, $.value = "Activate") : (g.value = !0, $.value = "Deactivate");
101
+ }, st = () => {
102
+ x.push({ name: "DataProviderInterface-UserCatalogues" });
102
103
  };
103
- return (s, t) => (p(), m("div", _, [
104
+ return (o, t) => (a(), v("div", vt, [
104
105
  l("div", null, [
105
106
  l("div", null, [
106
- t[18] || (t[18] = l("div", { class: "debug" }, [
107
- l("strong", null, " API object:"),
108
- e(),
109
- l("br"),
110
- l("br")
111
- ], -1)),
112
- t[19] || (t[19] = e()),
113
- t[20] || (t[20] = l("h1", null, "MQA Report Settings", -1)),
114
- t[21] || (t[21] = e()),
107
+ l("div", dt, [
108
+ t[12] || (t[12] = l("strong", null, " API object:", -1)),
109
+ t[13] || (t[13] = e()),
110
+ t[14] || (t[14] = l("br", null, null, -1)),
111
+ t[15] || (t[15] = l("br", null, null, -1)),
112
+ e(" " + i(C.value) + " ", 1),
113
+ t[16] || (t[16] = l("br", null, null, -1)),
114
+ t[17] || (t[17] = e(" --- ")),
115
+ t[18] || (t[18] = l("br", null, null, -1)),
116
+ e(" " + i(n(f)) + " ", 1),
117
+ t[19] || (t[19] = l("br", null, null, -1)),
118
+ t[20] || (t[20] = e("---")),
119
+ t[21] || (t[21] = l("br", null, null, -1)),
120
+ t[22] || (t[22] = e()),
121
+ t[23] || (t[23] = l("strong", null, "Fequency:", -1)),
122
+ t[24] || (t[24] = e()),
123
+ t[25] || (t[25] = l("br", null, null, -1)),
124
+ e(`
125
+ weekly: ` + i(n(m)), 1),
126
+ t[26] || (t[26] = l("br", null, null, -1)),
127
+ e(`
128
+ monthly: ` + i(n(y)) + " ", 1),
129
+ t[27] || (t[27] = l("br", null, null, -1)),
130
+ t[28] || (t[28] = e()),
131
+ t[29] || (t[29] = l("p", null, null, -1)),
132
+ e(`
133
+ unit: ` + i(n(M)) + " ", 1),
134
+ t[30] || (t[30] = l("br", null, null, -1)),
135
+ e(`
136
+ value: ` + i(n(b)) + " ", 1),
137
+ t[31] || (t[31] = l("br", null, null, -1)),
138
+ t[32] || (t[32] = e("---")),
139
+ t[33] || (t[33] = l("br", null, null, -1)),
140
+ e(`
141
+ treshold: ` + i(n(k)), 1)
142
+ ]),
143
+ t[40] || (t[40] = e()),
144
+ t[41] || (t[41] = l("h1", null, "MQA Report Settings", -1)),
145
+ t[42] || (t[42] = e()),
115
146
  l("p", null, [
116
- t[12] || (t[12] = e(`Configuration for
117
-
118
-
119
- `)),
120
- l("strong", null, x(o(M)), 1)
147
+ t[34] || (t[34] = e(`Configuration for
148
+
149
+ `)),
150
+ l("strong", null, i(n(E)), 1)
121
151
  ]),
122
- t[22] || (t[22] = e()),
152
+ t[43] || (t[43] = e()),
123
153
  l("p", null, [
124
- t[14] || (t[14] = e("For this Catalogue the ")),
125
- t[15] || (t[15] = l("b", null, "MQA Rating Checks ", -1)),
126
- t[16] || (t[16] = e("are currently ")),
154
+ t[36] || (t[36] = e("For this Catalogue the ")),
155
+ t[37] || (t[37] = l("b", null, "MQA Rating Checks ", -1)),
156
+ t[38] || (t[38] = e("are currently ")),
127
157
  l("b", null, [
128
- o(y) ? C("", !0) : (p(), m("span", tt, "deactivated")),
129
- t[13] || (t[13] = e()),
130
- o(y) ? (p(), m("span", lt, "activated")) : C("", !0)
158
+ n(g) ? w("", !0) : (a(), v("span", pt, "deactivated")),
159
+ t[35] || (t[35] = e()),
160
+ n(g) ? (a(), v("span", mt, "activated")) : w("", !0)
131
161
  ]),
132
- t[17] || (t[17] = e("."))
162
+ t[39] || (t[39] = e("."))
133
163
  ])
134
164
  ]),
135
- t[23] || (t[23] = e()),
165
+ t[44] || (t[44] = e()),
136
166
  l("button", {
137
167
  type: "button",
138
168
  class: "btn btn-secondary",
139
- onClick: t[0] || (t[0] = (n) => G())
140
- }, x(o(k)), 1)
169
+ onClick: t[0] || (t[0] = (s) => nt())
170
+ }, i(n($)), 1)
141
171
  ]),
142
- t[62] || (t[62] = e()),
143
- o(y) ? (p(), m("div", et, [
144
- l("div", nt, [
145
- t[30] || (t[30] = l("h3", null, "Recipients Mail", -1)),
146
- t[31] || (t[31] = e()),
147
- t[32] || (t[32] = l("span", null, "Add and edit mail addresses for recieving the MQA report", -1)),
148
- t[33] || (t[33] = e()),
149
- o(d).length != 0 ? (p(), m("table", {
172
+ t[84] || (t[84] = e()),
173
+ n(g) ? (a(), v("div", ft, [
174
+ l("div", bt, [
175
+ t[52] || (t[52] = l("h3", null, "Recipients Mail", -1)),
176
+ t[53] || (t[53] = e()),
177
+ t[54] || (t[54] = l("span", null, "Add and edit mail addresses for recieving the MQA report", -1)),
178
+ t[55] || (t[55] = e()),
179
+ n(f).length != 0 ? (a(), v("table", {
150
180
  key: 0,
181
+ class: "mt-4",
151
182
  ref_key: "mailButtonWrap",
152
- ref: E
183
+ ref: H
153
184
  }, [
154
- t[27] || (t[27] = l("tr", null, [
185
+ t[49] || (t[49] = l("tr", null, [
155
186
  l("th", null, "Mail")
156
187
  ], -1)),
157
- t[28] || (t[28] = e()),
158
- (p(!0), m(z, null, R(o(d), (n) => (p(), m("tr", ot, [
188
+ t[50] || (t[50] = e()),
189
+ (a(!0), v(Q, null, j(n(f), (s, r) => (a(), v("tr", {
190
+ class: "mailItems",
191
+ key: r
192
+ }, [
159
193
  l("td", null, [
160
- l("input", {
194
+ n(I) ? w("", !0) : (a(), v("span", yt, i(s), 1)),
195
+ t[46] || (t[46] = e()),
196
+ n(I) ? B((a(), v("input", {
197
+ key: 1,
161
198
  type: "text",
162
- value: n.mail,
163
- readonly: n.readonly,
164
- class: b({ editable: !n.readonly, invalid: !n.valid }),
165
- onInput: (v) => q(v, n.mail)
166
- }, null, 42, st),
167
- t[25] || (t[25] = e()),
199
+ "onUpdate:modelValue": (q) => n(f)[r] = q,
200
+ class: A(["mail-input", { invalidNewMail: n(V)[r] }]),
201
+ onInput: (q) => n(V)[r] = ""
202
+ }, null, 42, gt)), [
203
+ [N, n(f)[r]]
204
+ ]) : w("", !0),
205
+ t[47] || (t[47] = e()),
168
206
  l("div", null, [
169
207
  l("button", {
170
208
  type: "button",
171
- class: "btn btn-secondary",
172
- onClick: (v) => H(n)
173
- }, "Edit", 8, it),
174
- t[24] || (t[24] = e()),
209
+ class: "btn btn-simple",
210
+ onClick: (q) => n(I) ? tt(r) : _()
211
+ }, i(n(I) ? "Save" : "Edit"), 9, kt),
212
+ t[45] || (t[45] = e()),
175
213
  l("button", {
176
214
  type: "button",
177
- class: "btn btn-secondary",
178
- onClick: (v) => J(n.mail)
179
- }, "Delete", 8, at)
215
+ class: "btn btn-simple",
216
+ onClick: (q) => lt(r)
217
+ }, "Delete", 8, Ct)
180
218
  ])
181
219
  ]),
182
- t[26] || (t[26] = e()),
183
- n.valid ? C("", !0) : (p(), m("span", rt, "*Invalid email format"))
184
- ]))), 256))
185
- ], 512)) : C("", !0),
186
- t[34] || (t[34] = e()),
187
- l("div", ut, [
220
+ t[48] || (t[48] = e()),
221
+ n(V)[r] ? (a(), v("span", wt, i(n(V)[r]), 1)) : w("", !0)
222
+ ]))), 128))
223
+ ], 512)) : w("", !0),
224
+ t[56] || (t[56] = e()),
225
+ l("div", At, [
188
226
  B(l("input", {
189
227
  type: "text",
190
- "onUpdate:modelValue": t[1] || (t[1] = (n) => o(f).mail = n),
191
- onInput: t[2] || (t[2] = (n) => q(n)),
192
- class: b({ invalidNewMail: !o(f).valid }),
228
+ "onUpdate:modelValue": t[1] || (t[1] = (s) => n(p).mail = s),
229
+ onInput: t[2] || (t[2] = (s) => n(p).isValid = !0),
230
+ class: A({ invalidNewMail: !n(p).isValid }),
231
+ placeholder: "Enter email address",
193
232
  style: { padding: "0.25rem" }
194
233
  }, null, 34), [
195
- [S, o(f).mail]
234
+ [N, n(p).mail]
196
235
  ]),
197
- t[29] || (t[29] = e()),
236
+ t[51] || (t[51] = e()),
198
237
  l("button", {
199
238
  type: "button",
200
- class: "btn btn-secondary mx-3",
201
- disabled: !o(f).valid,
202
- onClick: t[3] || (t[3] = (n) => K())
203
- }, `+
204
- add Mail`, 8, dt)
239
+ class: "btn btn-simple mx-3",
240
+ onClick: t[3] || (t[3] = (s) => et())
241
+ }, "+ Add Mail")
205
242
  ]),
206
- t[35] || (t[35] = e()),
207
- o(f).valid ? C("", !0) : (p(), m("span", vt, "*Invalid email format"))
243
+ t[57] || (t[57] = e()),
244
+ n(p).isValid ? w("", !0) : (a(), v("span", Mt, "*Invalid email format"))
208
245
  ]),
209
- t[59] || (t[59] = e()),
210
- l("div", pt, [
211
- t[45] || (t[45] = l("h3", null, "Frequency of Rating Checks", -1)),
212
- t[46] || (t[46] = e()),
213
- t[47] || (t[47] = l("span", null, `Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
214
- labore et dolore magna aliquyam erat, sed diam voluptua`, -1)),
215
- t[48] || (t[48] = e()),
216
- l("div", mt, [
217
- l("div", ft, [
246
+ t[81] || (t[81] = e()),
247
+ l("div", St, [
248
+ t[67] || (t[67] = l("h3", null, "Frequency of Rating Checks", -1)),
249
+ t[68] || (t[68] = e()),
250
+ t[69] || (t[69] = l("span", null, "Configure the frequency of the MQA rating checks.", -1)),
251
+ t[70] || (t[70] = e()),
252
+ l("div", It, [
253
+ l("div", Vt, [
218
254
  l("button", {
219
255
  type: "button",
220
- class: b(["btn btn-secondary", { activeChoiceButton: o(u) === !0 }]),
221
- onClick: t[4] || (t[4] = (n) => {
222
- A(u) ? u.value = !o(u) : u = !o(u), A(r) ? r.value = !1 : r = !1;
223
- })
256
+ class: A(["btn btn-secondary", { activeChoiceButton: n(m) }]),
257
+ onClick: t[4] || (t[4] = (s) => Y())
224
258
  }, "Weekly", 2),
225
- t[36] || (t[36] = e()),
259
+ t[58] || (t[58] = e()),
226
260
  l("div", {
227
- class: b(["weekdays", { blur: !o(u) }])
261
+ class: A(["weekdays", { blur: !n(m) }])
228
262
  }, [
229
- (p(!0), m(z, null, R(o(j), (n) => (p(), m("span", {
230
- onClick: (v) => U(n, v)
231
- }, [
263
+ (a(!0), v(Q, null, j(n(J), (s, r) => (a(), v("span", { key: r }, [
232
264
  l("button", {
233
- disabled: !o(u),
234
- class: "dayButtons"
235
- }, x(n), 9, bt)
236
- ], 8, yt))), 256))
265
+ disabled: !n(m),
266
+ class: A(["dayButtons", { activeItem: n(S) === r }]),
267
+ onClick: (q) => R(r)
268
+ }, i(s), 11, $t)
269
+ ]))), 128))
237
270
  ], 2)
238
271
  ]),
239
- t[44] || (t[44] = e()),
240
- l("div", gt, [
272
+ t[66] || (t[66] = e()),
273
+ l("div", qt, [
241
274
  l("button", {
242
275
  type: "button",
243
- class: b([{ activeChoiceButton: o(r) === !0 }, "btn btn-secondary"]),
244
- onClick: t[5] || (t[5] = (n) => {
245
- A(r) ? r.value = !o(r) : r = !o(r), A(u) ? u.value = !1 : u = !1, Q();
246
- })
276
+ class: A([{ activeChoiceButton: n(y) }, "btn btn-secondary"]),
277
+ onClick: t[5] || (t[5] = (s) => Z())
247
278
  }, "Monthly", 2),
248
- t[43] || (t[43] = e()),
279
+ t[65] || (t[65] = e()),
249
280
  l("div", {
250
- class: b(["d-flex daypicker my-3", { blur: !o(r) }])
281
+ class: A(["d-flex daypicker my-3", { blur: !n(y) }])
251
282
  }, [
252
283
  B(l("input", {
253
- "onUpdate:modelValue": t[6] || (t[6] = (n) => A(i) ? i.value = n : i = n),
254
- onInput: t[7] || (t[7] = (n) => Z()),
255
- class: b({ dynamicWidth: o(w) }),
256
- disabled: !o(r)
257
- }, null, 42, Ct), [
258
- [S, o(i)]
284
+ "onUpdate:modelValue": t[6] || (t[6] = (s) => L(d) ? d.value = s : d = s),
285
+ onInput: t[7] || (t[7] = (s) => R(o.index)),
286
+ class: A({ dynamicWidth: n(W) }),
287
+ disabled: !n(y)
288
+ }, null, 42, Bt), [
289
+ [N, n(d)]
259
290
  ]),
260
- t[40] || (t[40] = e(`.
261
- `)),
262
- l("div", kt, [
291
+ t[62] || (t[62] = e()),
292
+ l("div", Nt, [
263
293
  l("button", {
264
- onClick: t[8] || (t[8] = (n) => T("up")),
294
+ onClick: t[8] || (t[8] = (s) => F("up")),
265
295
  class: "caretButtons ml-1"
266
- }, t[37] || (t[37] = [
296
+ }, t[59] || (t[59] = [
267
297
  l("svg", {
268
298
  xmlns: "http://www.w3.org/2000/svg",
269
299
  width: "12",
@@ -275,11 +305,11 @@ const _ = { class: "container mb-3" }, tt = { key: 0 }, lt = { key: 1 }, et = {
275
305
  l("path", { d: "m7.247 4.86-4.796 5.481c-.566.647-.106 1.659.753 1.659h9.592a1 1 0 0 0 .753-1.659l-4.796-5.48a1 1 0 0 0-1.506 0z" })
276
306
  ], -1)
277
307
  ])),
278
- t[39] || (t[39] = e()),
308
+ t[61] || (t[61] = e()),
279
309
  l("button", {
280
- onClick: t[9] || (t[9] = (n) => T()),
310
+ onClick: t[9] || (t[9] = (s) => F()),
281
311
  class: "caretButtons mr-1"
282
- }, t[38] || (t[38] = [
312
+ }, t[60] || (t[60] = [
283
313
  l("svg", {
284
314
  xmlns: "http://www.w3.org/2000/svg",
285
315
  width: "12",
@@ -292,21 +322,20 @@ const _ = { class: "container mb-3" }, tt = { key: 0 }, lt = { key: 1 }, et = {
292
322
  ], -1)
293
323
  ]))
294
324
  ]),
295
- t[41] || (t[41] = e()),
296
- t[42] || (t[42] = l("span", null, "day of the month", -1))
325
+ t[63] || (t[63] = e()),
326
+ t[64] || (t[64] = l("span", null, "day of the month", -1))
297
327
  ], 2)
298
328
  ])
299
329
  ])
300
330
  ]),
301
- t[60] || (t[60] = e()),
302
- l("div", wt, [
303
- t[54] || (t[54] = l("h3", null, "Notification Treshold", -1)),
304
- t[55] || (t[55] = e()),
305
- t[56] || (t[56] = l("span", null, `Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
306
- labore et dolore magna aliquyam erat, sed diam voluptua`, -1)),
307
- t[57] || (t[57] = e()),
308
- l("div", At, [
309
- t[51] || (t[51] = l("div", { class: "d-flex justify-content-between" }, [
331
+ t[82] || (t[82] = e()),
332
+ l("div", Wt, [
333
+ t[76] || (t[76] = l("h3", null, "Notification Treshold", -1)),
334
+ t[77] || (t[77] = e()),
335
+ t[78] || (t[78] = l("span", null, "Set the threshold after which the report should be sent.", -1)),
336
+ t[79] || (t[79] = e()),
337
+ l("div", Et, [
338
+ t[73] || (t[73] = l("div", { class: "d-flex justify-content-between" }, [
310
339
  l("span", null, [
311
340
  l("b", null, "0")
312
341
  ]),
@@ -315,42 +344,42 @@ const _ = { class: "container mb-3" }, tt = { key: 0 }, lt = { key: 1 }, et = {
315
344
  l("b", null, "400")
316
345
  ])
317
346
  ], -1)),
318
- t[52] || (t[52] = e()),
347
+ t[74] || (t[74] = e()),
319
348
  B(l("input", {
320
349
  type: "range",
321
- "onUpdate:modelValue": t[10] || (t[10] = (n) => $.value = n),
350
+ "onUpdate:modelValue": t[10] || (t[10] = (s) => L(k) ? k.value = s : k = s),
322
351
  min: "0",
323
352
  max: "400"
324
353
  }, null, 512), [
325
- [S, $.value]
354
+ [N, n(k)]
326
355
  ]),
327
- t[53] || (t[53] = e()),
356
+ t[75] || (t[75] = e()),
328
357
  l("p", null, [
329
- t[49] || (t[49] = e("Lower than ")),
330
- l("b", null, x($.value), 1),
331
- t[50] || (t[50] = e(" Points"))
358
+ t[71] || (t[71] = e("Lower than ")),
359
+ l("b", null, i(n(k)), 1),
360
+ t[72] || (t[72] = e(" Points"))
332
361
  ])
333
362
  ])
334
363
  ]),
335
- t[61] || (t[61] = e()),
364
+ t[83] || (t[83] = e()),
336
365
  l("div", xt, [
337
366
  l("button", {
338
367
  type: "button",
339
- class: "btn btn-secondary",
340
- onClick: F
368
+ class: "btn btn-primary",
369
+ onClick: c
341
370
  }, "Save"),
342
- t[58] || (t[58] = e()),
371
+ t[80] || (t[80] = e()),
343
372
  l("button", {
344
373
  type: "button",
345
- class: "btn btn-secondary",
346
- onClick: t[11] || (t[11] = (n) => s.back())
374
+ class: "btn btn-cancel",
375
+ onClick: t[11] || (t[11] = (s) => st())
347
376
  }, "Cancel")
348
377
  ])
349
- ])) : C("", !0)
378
+ ])) : w("", !0)
350
379
  ]));
351
380
  }
352
- }, Tt = /* @__PURE__ */ h(Mt, [["__scopeId", "data-v-dd84825d"]]);
381
+ }, jt = /* @__PURE__ */ at(Dt, [["__scopeId", "data-v-1e7e2d40"]]);
353
382
  export {
354
- Tt as default
383
+ jt as default
355
384
  };
356
385
  //# sourceMappingURL=CatalogueMQA.vue.mjs.map