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