@genpact/genome.mfe.mgtwin-app 1.1.118-alpha → 1.1.119-alpha
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/{ArrowLeftCircleIcon-29dc66c7.mjs → ArrowLeftCircleIcon-82fe4214.mjs} +1 -1
- package/dist/{EditSkillAdminData-de6d6833.mjs → EditSkillAdminData-b1c2f037.mjs} +3 -3
- package/dist/{EditSkillData-f871031c.mjs → EditSkillData-b3fd12fd.mjs} +83 -93
- package/dist/{HomeView-baec0cf4.mjs → HomeView-056be4b0.mjs} +5 -5
- package/dist/{Loading-0ac4d98e.mjs → Loading-9050d4b5.mjs} +2 -2
- package/dist/{MagnifyingGlassIcon-4e988db3.mjs → MagnifyingGlassIcon-d9f2fb85.mjs} +1 -1
- package/dist/{PaperAirplaneIcon-aa67df04.mjs → PaperAirplaneIcon-4ce85f50.mjs} +1 -1
- package/dist/{PromptTesting-01a64d79.mjs → PromptTesting-a6538f81.mjs} +3 -3
- package/dist/{SkillAutomation-a399caf8.mjs → SkillAutomation-459265eb.mjs} +3 -3
- package/dist/{SkillData-bb4e4e4c.mjs → SkillData-cebd8858.mjs} +4 -4
- package/dist/{TestCase-e3893141.mjs → TestCase-f23d03b2.mjs} +1 -1
- package/dist/{UnderMaintenance-051ef89a.mjs → UnderMaintenance-b99fe554.mjs} +1 -1
- package/dist/{loadernew-55a7601a.mjs → loadernew-b4b98d69.mjs} +1 -1
- package/dist/{main-0e535048.mjs → main-b257c9c3.mjs} +757 -757
- package/dist/mgtwin.es.min.js +1 -1
- package/dist/mgtwin.umd.min.js +6 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as q, J as z, o as n, c as d, a as e, b as L, e as c, u as H, j as O, h as r, p as h, v as k, n as S, q as $, F as B, r as P, t as b, i as D, G as T, B as J, C as Y, g as j } from "./main-
|
|
2
|
-
import { _ as Q, p as G, g as X, a as F } from "./loadernew-
|
|
3
|
-
import { r as Z } from "./ArrowLeftCircleIcon-
|
|
1
|
+
import { d as q, J as z, o as n, c as d, a as e, b as L, e as c, u as H, j as O, h as r, p as h, v as k, n as S, q as $, F as B, r as P, t as b, i as D, G as T, B as J, C as Y, g as j } from "./main-b257c9c3.mjs";
|
|
2
|
+
import { _ as Q, p as G, g as X, a as F } from "./loadernew-b4b98d69.mjs";
|
|
3
|
+
import { r as Z } from "./ArrowLeftCircleIcon-82fe4214.mjs";
|
|
4
4
|
import { _ as ee } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
5
5
|
const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /* @__PURE__ */ e("div", { class: "font-bold text-base md:text-xl" }, "Back", -1), oe = /* @__PURE__ */ e("div", { class: "text-white font-bold md:text-xl text-base" }, "AI Guru Edit Skill Admin Data", -1), le = /* @__PURE__ */ e("img", {
|
|
6
6
|
class: "md:w-36 w-20",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as $, J as
|
|
2
|
-
import { _ as X, p as j, a as K } from "./loadernew-
|
|
3
|
-
import { r as Z } from "./ArrowLeftCircleIcon-
|
|
1
|
+
import { d as $, J as W, o as r, c, a as e, b as q, e as a, K as G, u as z, j as P, h as i, p as y, v as k, n as S, f as g, F as A, r as H, q as O, t as x, i as B, G as J, B as Y, C as Q, g as D } from "./main-b257c9c3.mjs";
|
|
2
|
+
import { _ as X, p as j, a as K } from "./loadernew-b4b98d69.mjs";
|
|
3
|
+
import { r as Z } from "./ArrowLeftCircleIcon-82fe4214.mjs";
|
|
4
4
|
import { _ as ee } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
5
5
|
const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /* @__PURE__ */ e("div", { class: "font-bold text-base md:text-xl" }, "Back", -1), oe = /* @__PURE__ */ e("div", { class: "text-white font-bold md:text-xl text-base" }, "AI Guru Edit Skill Data", -1), ae = /* @__PURE__ */ e("img", {
|
|
6
6
|
class: "md:w-36 w-20",
|
|
@@ -8,24 +8,24 @@ const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /
|
|
|
8
8
|
}, null, -1), le = /* @__PURE__ */ $({
|
|
9
9
|
__name: "HeaderForEditSkillData",
|
|
10
10
|
setup(_) {
|
|
11
|
-
const
|
|
11
|
+
const s = W(), d = () => {
|
|
12
12
|
G(() => {
|
|
13
13
|
sessionStorage.removeItem("dataViewAccess");
|
|
14
|
-
}),
|
|
14
|
+
}), s.push({ name: "SkillData" }), sessionStorage.removeItem("dataViewAccess"), sessionStorage.removeItem("role");
|
|
15
15
|
};
|
|
16
|
-
return (b, m) => (
|
|
16
|
+
return (b, m) => (r(), c("div", te, [
|
|
17
17
|
e("div", {
|
|
18
|
-
onClick:
|
|
18
|
+
onClick: d,
|
|
19
19
|
class: "flex justify-start items-center text-white cursor-pointer"
|
|
20
20
|
}, [
|
|
21
|
-
q(
|
|
21
|
+
q(a(Z), { class: "md:w-9 w-5 h-5 md:h-9 mr-1" }),
|
|
22
22
|
se
|
|
23
23
|
]),
|
|
24
24
|
oe,
|
|
25
25
|
ae
|
|
26
26
|
]));
|
|
27
27
|
}
|
|
28
|
-
}), n = (_) => (Y("data-v-
|
|
28
|
+
}), n = (_) => (Y("data-v-18de1cf9"), _ = _(), Q(), _), re = { class: "bg-genpact-blue-box w-full px-5 mb-6" }, ce = { class: "grid grid-cols-5 gap-8 p-10 items-stretch" }, ie = /* @__PURE__ */ n(() => /* @__PURE__ */ e("div", { class: "col-span-1 text-right" }, [
|
|
29
29
|
/* @__PURE__ */ e("label", {
|
|
30
30
|
for: "topic",
|
|
31
31
|
class: "block text-lg font-bold text-gray-900 mb-1 italic"
|
|
@@ -75,7 +75,7 @@ const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /
|
|
|
75
75
|
], Ne = {
|
|
76
76
|
key: 0,
|
|
77
77
|
class: "pl-16 pr-8 py-2"
|
|
78
|
-
}, Ce = {
|
|
78
|
+
}, Ce = { class: "w-full relative overflow-x-auto rounded-lg border border-gray-200 max-h-[550px]" }, Ve = { class: "table-auto w-full text-sm text-left rtl:text-right rounded-lg" }, Ae = /* @__PURE__ */ n(() => /* @__PURE__ */ e("thead", { class: "text-sm text-center md:text-base text-gray-700 uppercase bg-gray-200 top-0 sticky z-10" }, [
|
|
79
79
|
/* @__PURE__ */ e("tr", null, [
|
|
80
80
|
/* @__PURE__ */ e("th", {
|
|
81
81
|
scope: "col",
|
|
@@ -94,93 +94,87 @@ const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /
|
|
|
94
94
|
class: "px-6 py-3"
|
|
95
95
|
}, "Score")
|
|
96
96
|
])
|
|
97
|
-
], -1)),
|
|
97
|
+
], -1)), Be = {
|
|
98
98
|
key: 0,
|
|
99
99
|
class: "px-3 py-4 font-medium text-gray-900 text-center"
|
|
100
|
-
},
|
|
100
|
+
}, je = {
|
|
101
101
|
key: 1,
|
|
102
102
|
class: "px-3 py-4"
|
|
103
|
-
},
|
|
103
|
+
}, $e = {
|
|
104
104
|
key: 2,
|
|
105
105
|
class: "px-3 py-4 text-center"
|
|
106
|
-
},
|
|
106
|
+
}, qe = {
|
|
107
107
|
key: 3,
|
|
108
108
|
class: "px-3 py-4 text-center"
|
|
109
|
-
}, Ke = {
|
|
110
|
-
key: 1,
|
|
111
|
-
class: "w-7/12 mx-auto"
|
|
112
|
-
}, Le = {
|
|
113
|
-
key: 0,
|
|
114
|
-
class: "p-2 items-center text-lg font-bold bg-gray-200"
|
|
115
|
-
}, Re = { class: "absolute top-0 md:left-20 md:right-20 left-12 right-12 flex justify-center items-center mx-auto z-[100]" }, Me = { class: "w-full rounded-md px-3 text-center mt-4 bg-green-500 py-2 text-white" }, Pe = /* @__PURE__ */ $({
|
|
109
|
+
}, Ge = { class: "absolute top-0 md:left-20 md:right-20 left-12 right-12 flex justify-center items-center mx-auto z-[100]" }, Ke = { class: "w-full rounded-md px-3 text-center mt-4 bg-green-500 py-2 text-white" }, Le = /* @__PURE__ */ $({
|
|
116
110
|
__name: "EditSkillData",
|
|
117
111
|
setup(_) {
|
|
118
|
-
const
|
|
119
|
-
var
|
|
112
|
+
const s = z(), d = P(), b = i(!0), m = i(!0), v = i(!1), T = i(""), L = i(""), F = i(!1), u = i(!1), I = i(), w = i(), E = i([]), R = async () => {
|
|
113
|
+
var p, o, t, f, N, C, V;
|
|
120
114
|
try {
|
|
121
|
-
const
|
|
122
|
-
question:
|
|
115
|
+
const h = {
|
|
116
|
+
question: s.descriptionForSkillData
|
|
123
117
|
};
|
|
124
118
|
console.log("question", L.value), b.value = !1;
|
|
125
|
-
const
|
|
126
|
-
console.log("abc", (
|
|
127
|
-
} catch (
|
|
128
|
-
if (console.error(
|
|
129
|
-
const
|
|
130
|
-
|
|
119
|
+
const l = await j("/SearchSkillTags", h);
|
|
120
|
+
console.log("abc", (p = l == null ? void 0 : l.data) == null ? void 0 : p.body), w.value = (t = (o = l == null ? void 0 : l.data) == null ? void 0 : o.body) == null ? void 0 : t.length, console.log("ARRAY LENGTH", w.value), I.value = ((f = l == null ? void 0 : l.data) == null ? void 0 : f.body) || [], E.value = I.value, console.log("length", (C = (N = l == null ? void 0 : l.data) == null ? void 0 : N.body) == null ? void 0 : C.length), console.log("data", l), b.value = !0, F.value = !0, u.value = !0, console.log("showSubmitButton", u.value);
|
|
121
|
+
} catch (h) {
|
|
122
|
+
if (console.error(h), b.value = !0, B.isAxiosError(h)) {
|
|
123
|
+
const l = h;
|
|
124
|
+
d.setError(((V = l.response) == null ? void 0 : V.data).message);
|
|
131
125
|
} else
|
|
132
|
-
|
|
126
|
+
d.setError("We ran into an issue while fetching duplicate values.");
|
|
133
127
|
}
|
|
134
128
|
}, M = async () => {
|
|
135
|
-
var
|
|
129
|
+
var p;
|
|
136
130
|
try {
|
|
137
131
|
const o = {
|
|
138
|
-
Topic:
|
|
139
|
-
Description:
|
|
140
|
-
OfferingType:
|
|
141
|
-
DuplicateExists:
|
|
132
|
+
Topic: s.topicNameForSkillData,
|
|
133
|
+
Description: s.descriptionForSkillData,
|
|
134
|
+
OfferingType: s.offeringTypeForSkillData,
|
|
135
|
+
DuplicateExists: w.value > 0 ? 1 : 0
|
|
142
136
|
};
|
|
143
137
|
m.value = !1, console.log("payload-=====>", o);
|
|
144
|
-
const
|
|
145
|
-
console.log("data",
|
|
138
|
+
const t = await j("/InsertIntoTempSkillFile", o);
|
|
139
|
+
console.log("data", t), T.value = "Data Submitted Successfully!", m.value = !0, U();
|
|
146
140
|
} catch (o) {
|
|
147
141
|
if (console.error(o), m.value = !0, B.isAxiosError(o)) {
|
|
148
|
-
const
|
|
149
|
-
|
|
142
|
+
const t = o;
|
|
143
|
+
d.setError(((p = t.response) == null ? void 0 : p.data).message);
|
|
150
144
|
} else
|
|
151
|
-
|
|
145
|
+
d.setError("There was an issue while inserting data");
|
|
152
146
|
}
|
|
153
|
-
},
|
|
154
|
-
|
|
155
|
-
|
|
147
|
+
}, U = () => {
|
|
148
|
+
v.value = !0, setTimeout(() => {
|
|
149
|
+
v.value = !1, G(() => {
|
|
156
150
|
sessionStorage.removeItem("dataViewAccess");
|
|
157
151
|
}), J.push({ name: "SkillData" }), sessionStorage.removeItem("dataViewAccess"), sessionStorage.removeItem("role");
|
|
158
|
-
}, 3e3),
|
|
152
|
+
}, 3e3), u.value = !1;
|
|
159
153
|
};
|
|
160
|
-
return (
|
|
154
|
+
return (p, o) => (r(), c(A, null, [
|
|
161
155
|
e("nav", re, [
|
|
162
156
|
q(le)
|
|
163
157
|
]),
|
|
164
158
|
e("div", ce, [
|
|
165
159
|
ie,
|
|
166
160
|
e("div", ne, [
|
|
167
|
-
|
|
168
|
-
disabled:
|
|
169
|
-
class: S([
|
|
161
|
+
y(e("input", {
|
|
162
|
+
disabled: a(s).enableInputbox !== !0,
|
|
163
|
+
class: S([a(s).enableInputbox !== !0 ? "cursor-not-allowed fill-gray-400" : "", "w-full p-2.5 text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 shadow-sm focus:outline-none focus:border-genpact-blue-box focus:ring-genpact-blue-box focus:ring-1"]),
|
|
170
164
|
type: "text",
|
|
171
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
165
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => a(s).topicNameForSkillData = t),
|
|
172
166
|
id: "topic",
|
|
173
167
|
placeholder: "Write here...",
|
|
174
168
|
required: ""
|
|
175
169
|
}, null, 10, de), [
|
|
176
|
-
[k,
|
|
170
|
+
[k, a(s).topicNameForSkillData]
|
|
177
171
|
])
|
|
178
172
|
]),
|
|
179
173
|
ue,
|
|
180
174
|
e("div", pe, [
|
|
181
|
-
|
|
182
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
|
183
|
-
onInput: o[2] || (o[2] = (
|
|
175
|
+
y(e("textarea", {
|
|
176
|
+
"onUpdate:modelValue": o[1] || (o[1] = (t) => a(s).descriptionForSkillData = t),
|
|
177
|
+
onInput: o[2] || (o[2] = (t) => u.value = !1),
|
|
184
178
|
type: "text",
|
|
185
179
|
id: "description",
|
|
186
180
|
rows: "5",
|
|
@@ -188,81 +182,77 @@ const te = { className: "flex justify-between items-center gap-4 h-14" }, se = /
|
|
|
188
182
|
placeholder: "Write here...",
|
|
189
183
|
required: ""
|
|
190
184
|
}, null, 544), [
|
|
191
|
-
[k,
|
|
185
|
+
[k, a(s).descriptionForSkillData]
|
|
192
186
|
])
|
|
193
187
|
]),
|
|
194
188
|
ge,
|
|
195
189
|
e("div", _e, [
|
|
196
|
-
|
|
197
|
-
"onUpdate:modelValue": o[3] || (o[3] = (
|
|
190
|
+
y(e("input", {
|
|
191
|
+
"onUpdate:modelValue": o[3] || (o[3] = (t) => a(s).offeringTypeForSkillData = t),
|
|
198
192
|
type: "text",
|
|
199
193
|
id: "offeringType",
|
|
200
194
|
class: "w-full p-2.5 text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 shadow-sm focus:outline-none focus:border-genpact-blue-box focus:ring-genpact-blue-box focus:ring-1",
|
|
201
195
|
placeholder: "Write here...",
|
|
202
196
|
required: ""
|
|
203
197
|
}, null, 512), [
|
|
204
|
-
[k,
|
|
198
|
+
[k, a(s).offeringTypeForSkillData]
|
|
205
199
|
])
|
|
206
200
|
]),
|
|
207
201
|
be,
|
|
208
202
|
e("div", me, [
|
|
209
203
|
e("div", he, [
|
|
210
|
-
b.value ? (
|
|
204
|
+
b.value ? (r(), c("button", {
|
|
211
205
|
key: 0,
|
|
212
|
-
disabled:
|
|
206
|
+
disabled: a(s).isTopicPending === !0,
|
|
213
207
|
class: S([
|
|
214
|
-
|
|
208
|
+
a(s).isTopicPending === !0 ? "cursor-not-allowed bg-gray-600" : "cursor-pointer bg-genpact-darkest-blue",
|
|
215
209
|
"text-center whitespace-nowrap text-white w-40 px-4 py-2 rounded-md font-bold"
|
|
216
210
|
]),
|
|
217
211
|
onClick: R,
|
|
218
212
|
type: "button"
|
|
219
|
-
}, " Duplicate Check ", 10, xe)) : (
|
|
220
|
-
m.value ? (
|
|
213
|
+
}, " Duplicate Check ", 10, xe)) : (r(), c("div", fe, ve)),
|
|
214
|
+
m.value ? (r(), c("button", {
|
|
221
215
|
key: 2,
|
|
222
|
-
disabled:
|
|
216
|
+
disabled: u.value !== !0,
|
|
223
217
|
class: S([
|
|
224
|
-
|
|
218
|
+
u.value !== !0 ? "cursor-not-allowed bg-gray-600" : "cursor-pointer bg-genpact-darkest-blue",
|
|
225
219
|
"text-center text-white w-40 px-10 py-2 rounded-md font-bold"
|
|
226
220
|
]),
|
|
227
221
|
onClick: M,
|
|
228
222
|
type: "submit"
|
|
229
|
-
}, " Submit ", 10, we)) : (
|
|
223
|
+
}, " Submit ", 10, we)) : (r(), c("div", ke, De))
|
|
230
224
|
])
|
|
231
225
|
]),
|
|
232
226
|
Te,
|
|
233
|
-
|
|
227
|
+
a(s).isTopicPending ? (r(), c("div", Fe, Ee)) : g("", !0)
|
|
234
228
|
]),
|
|
235
|
-
F.value
|
|
236
|
-
|
|
237
|
-
e("
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
]))), 128))
|
|
250
|
-
])
|
|
229
|
+
F.value ? (r(), c("div", Ne, [
|
|
230
|
+
e("div", Ce, [
|
|
231
|
+
e("table", Ve, [
|
|
232
|
+
Ae,
|
|
233
|
+
e("tbody", null, [
|
|
234
|
+
(r(!0), c(A, null, H(E.value, (t, f) => (r(), c("tr", {
|
|
235
|
+
key: f,
|
|
236
|
+
class: "odd:bg-white even:bg-gray-100"
|
|
237
|
+
}, [
|
|
238
|
+
t.Topic !== a(s).topicNameForSkillData ? (r(), c("th", Be, x(t.Topic || "title"), 1)) : g("", !0),
|
|
239
|
+
t.Topic !== a(s).topicNameForSkillData ? (r(), c("td", je, x(t.Description || "desc"), 1)) : g("", !0),
|
|
240
|
+
t.Topic !== a(s).topicNameForSkillData ? (r(), c("td", $e, x(t.OfferingType || "Knowledge Corpus"), 1)) : g("", !0),
|
|
241
|
+
t.Topic !== a(s).topicNameForSkillData ? (r(), c("td", qe, x(t.new_tag), 1)) : g("", !0)
|
|
242
|
+
]))), 128))
|
|
251
243
|
])
|
|
252
244
|
])
|
|
253
|
-
])
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
v(e("div", Re, [
|
|
258
|
-
e("div", Me, f(T.value), 1)
|
|
245
|
+
])
|
|
246
|
+
])) : g("", !0),
|
|
247
|
+
y(e("div", Ge, [
|
|
248
|
+
e("div", Ke, x(T.value), 1)
|
|
259
249
|
], 512), [
|
|
260
|
-
[O,
|
|
250
|
+
[O, v.value]
|
|
261
251
|
])
|
|
262
252
|
], 64));
|
|
263
253
|
}
|
|
264
254
|
});
|
|
265
|
-
const
|
|
255
|
+
const ze = /* @__PURE__ */ ee(Le, [["__scopeId", "data-v-18de1cf9"]]);
|
|
266
256
|
export {
|
|
267
|
-
|
|
257
|
+
ze as default
|
|
268
258
|
};
|