@piveau/piveau-hub-ui-modules 4.5.7 → 4.5.9
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/composables/useDataInfoBox.mjs +21 -20
- package/dist/composables/useDataInfoBox.mjs.map +1 -1
- package/dist/configurations/configureModules.d.ts +4 -0
- package/dist/configurations/configureModules.mjs +6 -4
- package/dist/configurations/configureModules.mjs.map +1 -1
- package/dist/data-provider-interface/CatalogueMQA.vue.mjs +221 -157
- package/dist/data-provider-interface/CatalogueMQA.vue.mjs.map +1 -1
- package/dist/data-provider-interface/DPIMenu.vue.d.ts +2 -2
- package/dist/data-provider-interface/views/UserCataloguesPage.vue.mjs +37 -37
- package/dist/data-provider-interface/views/UserCataloguesPage.vue.mjs.map +1 -1
- package/dist/datasetDetails/DatasetDetailsDescription.vue.d.ts +1 -1
- package/dist/datasetDetails/distributions/DistributionFormat.vue.d.ts +2 -2
- package/dist/datasetDetails/distributions/DownloadAllDistributions.vue.d.ts +2 -2
- package/dist/datasetDetails/distributions/distributionActions/DistributionDownload.vue.d.ts +2 -2
- package/dist/datasetDetails/header/DatasetDetailsHeaderTitle.vue.d.ts +1 -1
- package/dist/datasetDetails/navigation/DatasetDetailsNavigation.vue.d.ts +1 -1
- package/dist/datasetDetails/navigation/DatasetDetailsNavigationLinks.vue.d.ts +1 -1
- package/dist/datasets/Datasets.vue.mjs +80 -80
- package/dist/datasets/Datasets.vue.mjs.map +1 -1
- package/dist/facets_2.0/Facets.vue.d.ts +19 -0
- package/dist/facets_2.0/Facets.vue.mjs +31 -0
- package/dist/facets_2.0/Facets.vue.mjs.map +1 -0
- package/dist/facets_2.0/Facets.vue2.mjs +5 -0
- package/dist/facets_2.0/Facets.vue2.mjs.map +1 -0
- package/dist/facets_2.0/facets/DataServicesFacet.vue.d.ts +75 -0
- package/dist/facets_2.0/facets/DataServicesFacet.vue.mjs +49 -0
- package/dist/facets_2.0/facets/DataServicesFacet.vue.mjs.map +1 -0
- package/dist/facets_2.0/facets/ExpandableSelectFacet.vue.d.ts +93 -0
- package/dist/facets_2.0/facets/ExpandableSelectFacet.vue.mjs +143 -0
- package/dist/facets_2.0/facets/ExpandableSelectFacet.vue.mjs.map +1 -0
- package/dist/facets_2.0/facets/ExpandableSelectFacet.vue2.mjs +5 -0
- package/dist/facets_2.0/facets/ExpandableSelectFacet.vue2.mjs.map +1 -0
- package/dist/facets_2.0/facets/FacetTitle.vue.d.ts +18 -0
- package/dist/facets_2.0/facets/FacetTitle.vue.mjs +38 -0
- package/dist/facets_2.0/facets/FacetTitle.vue.mjs.map +1 -0
- package/dist/facets_2.0/facets/FacetTitle.vue2.mjs +5 -0
- package/dist/facets_2.0/facets/FacetTitle.vue2.mjs.map +1 -0
- package/dist/facets_2.0/facets/RadioFacet.vue.d.ts +58 -0
- package/dist/facets_2.0/facets/RadioFacet.vue.mjs +92 -0
- package/dist/facets_2.0/facets/RadioFacet.vue.mjs.map +1 -0
- package/dist/facets_2.0/facets/SelectFacetsItem.vue.d.ts +34 -0
- package/dist/facets_2.0/facets/SelectFacetsItem.vue.mjs +45 -0
- package/dist/facets_2.0/facets/SelectFacetsItem.vue.mjs.map +1 -0
- package/dist/facets_2.0/getFacet.d.ts +3 -0
- package/dist/facets_2.0/getFacet.mjs +20 -0
- package/dist/facets_2.0/getFacet.mjs.map +1 -0
- package/dist/facets_2.0/toggleQueryParam.d.ts +9 -0
- package/dist/facets_2.0/toggleQueryParam.mjs +11 -0
- package/dist/facets_2.0/toggleQueryParam.mjs.map +1 -0
- package/dist/facets_2.0/types.d.ts +9 -0
- package/dist/facets_2.0/useFacets.d.ts +5 -0
- package/dist/facets_2.0/useFacets.mjs +14 -0
- package/dist/facets_2.0/useFacets.mjs.map +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.mjs +276 -273
- package/dist/index.mjs.map +1 -1
- package/dist/piveau-hub-ui-modules.css +1 -1
- package/dist/search/Search.vue.d.ts +2 -0
- package/dist/search/Search.vue.mjs +20 -0
- package/dist/search/Search.vue.mjs.map +1 -0
- package/dist/services/datasetService.d.ts +5 -0
- package/dist/services/datasetService.mjs +2 -1
- package/dist/services/datasetService.mjs.map +1 -1
- package/dist/store/modules/cataloguesStore.d.ts +6 -0
- package/dist/store/modules/cataloguesStore.mjs +10 -4
- package/dist/store/modules/cataloguesStore.mjs.map +1 -1
- package/dist/store/modules/datasetsStore.d.ts +12 -0
- package/dist/store/modules/datasetsStore.mjs +26 -14
- package/dist/store/modules/datasetsStore.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getImg as
|
|
3
|
-
import { has as g, toPairs as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { computed as C, unref as c } from "vue";
|
|
2
|
+
import { getImg as D, getTranslationFor as i, truncate as I } from "../utils/helpers.mjs";
|
|
3
|
+
import { has as g, toPairs as b, groupBy as h, uniqBy as s } from "lodash-es";
|
|
4
|
+
import { useRuntimeEnv as B } from "./useRuntimeEnv.mjs";
|
|
5
|
+
function P({ datasets: l, locale: m }) {
|
|
6
|
+
const o = B();
|
|
7
|
+
function d(e) {
|
|
8
|
+
return o.content.catalogs.useCatalogCountries ? `${o.content.catalogs.defaultCatalogImagePath}/${g(e, "country.id") ? e.country.id : o.content.catalogs.defaultCatalogCountryID}` : `${o.content.catalogs.defaultCatalogImagePath}/${g(e, "id") ? e.id : o.content.catalogs.defaultCatalogID}`;
|
|
8
9
|
}
|
|
9
|
-
function
|
|
10
|
-
return
|
|
10
|
+
function u(e) {
|
|
11
|
+
return I(e, 8, !0);
|
|
11
12
|
}
|
|
12
13
|
function f(e) {
|
|
13
|
-
const
|
|
14
|
+
const r = e.map((a) => ({
|
|
14
15
|
...a,
|
|
15
|
-
id:
|
|
16
|
-
label:
|
|
17
|
-
})),
|
|
16
|
+
id: u(a.id),
|
|
17
|
+
label: u(a.label)
|
|
18
|
+
})), n = b(h(r, "id")).sort((a, y) => y[1].length - a[1].length).map((a) => a[1][0]), p = s(n, "id");
|
|
18
19
|
return s(p, "label");
|
|
19
20
|
}
|
|
20
21
|
return C(() => {
|
|
21
|
-
const e =
|
|
22
|
+
const e = c(l), r = c(m);
|
|
22
23
|
return !l || !e ? null : e.map((t) => ({
|
|
23
24
|
id: t.id,
|
|
24
|
-
src:
|
|
25
|
+
src: D(d(t.catalog)),
|
|
25
26
|
dataset: {
|
|
26
|
-
title: i(t.title,
|
|
27
|
-
description: i(t.description,
|
|
28
|
-
catalog: i(t.catalog.title,
|
|
27
|
+
title: i(t.title, r, t.languages) || t.id,
|
|
28
|
+
description: i(t.description, r, t.languages),
|
|
29
|
+
catalog: i(t.catalog.title, r, []),
|
|
29
30
|
createdDate: t.releaseDate,
|
|
30
31
|
updatedDate: t.modificationDate,
|
|
31
|
-
formats: f(t.distributionFormats).filter((
|
|
32
|
+
formats: f(t.distributionFormats).filter((n) => n.id || n.label)
|
|
32
33
|
}
|
|
33
34
|
}));
|
|
34
35
|
});
|
|
35
36
|
}
|
|
36
37
|
export {
|
|
37
|
-
|
|
38
|
+
P as useDataInfoBox
|
|
38
39
|
};
|
|
39
40
|
//# sourceMappingURL=useDataInfoBox.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDataInfoBox.mjs","sources":["../../lib/composables/useDataInfoBox.js"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"useDataInfoBox.mjs","sources":["../../lib/composables/useDataInfoBox.js"],"sourcesContent":["import {computed, unref} from \"vue\";\nimport {getImg, getTranslationFor, truncate} from \"../utils/helpers\";\nimport {groupBy, has, toPairs, uniqBy} from \"lodash-es\";\nimport {useRuntimeEnv} from \"./useRuntimeEnv.ts\";\n\nexport function useDataInfoBox({ datasets, locale }) {\n\n // const vm = getCurrentInstance();\n // const $env = vm.proxy.$env;\n const $env = useRuntimeEnv();\n\n function getCatalogImage(catalog) {\n return $env.content.catalogs.useCatalogCountries\n ? `${$env.content.catalogs.defaultCatalogImagePath}/${has(catalog, 'country.id') ? catalog.country.id : $env.content.catalogs.defaultCatalogCountryID}`\n : `${$env.content.catalogs.defaultCatalogImagePath}/${has(catalog, 'id') ? catalog.id : $env.content.catalogs.defaultCatalogID}`;\n }\n\n\n /**\n * @description Cuts badge format string (max 8 chars)\n * @param label {String} - badge label or id (e.g. csv)\n */\n function getBadgeFormat(label) {\n return truncate(label, 8, true);\n }\n\n /**\n * @description Removes the duplicates of the given array\n * @param array {Array} - The array to remove duplicates from\n * @returns {Array}\n */\n function removeDuplicatesOf(array) {\n const correctedFormatArray = array.map(format => (\n {\n ...format,\n id: getBadgeFormat(format.id),\n label: getBadgeFormat(format.label),\n }\n ));\n // sorts after # of occurences (highest occurence first)\n // possibility #1\n const sortedArray = toPairs(groupBy(correctedFormatArray, \"id\")).sort((a, b) => b[1].length - a[1].length);\n const onlyFormatObjectsArray = sortedArray.map(arr => arr[1][0]);\n // lodash uniqBy funtion removes duplicate id´s from array of objects\n const uniqById = uniqBy(onlyFormatObjectsArray, \"id\");\n return uniqBy(uniqById, \"label\");\n }\n\n return computed(() => {\n const dsList = unref(datasets);\n const l = unref(locale);\n\n if (!datasets || !dsList) {\n return null;\n }\n\n return dsList.map((ds) => {\n return {\n id: ds.id,\n src: getImg(getCatalogImage(ds.catalog)),\n dataset: {\n title: getTranslationFor(ds.title, l, ds.languages) || ds.id,\n description: getTranslationFor(ds.description, l, ds.languages),\n catalog: getTranslationFor(ds.catalog.title, l, []),\n createdDate: ds.releaseDate,\n updatedDate: ds.modificationDate,\n formats: removeDuplicatesOf(ds.distributionFormats).filter((format) => format.id || format.label),\n }\n }\n })\n })\n}\n"],"names":["useDataInfoBox","datasets","locale","$env","useRuntimeEnv","getCatalogImage","catalog","has","getBadgeFormat","label","truncate","removeDuplicatesOf","array","correctedFormatArray","format","onlyFormatObjectsArray","toPairs","groupBy","b","arr","uniqById","uniqBy","computed","dsList","unref","l","ds","getImg","getTranslationFor"],"mappings":";;;;AAKO,SAASA,EAAe,EAAE,UAAAC,GAAU,QAAAC,KAAU;AAInD,QAAMC,IAAOC;AAEb,WAASC,EAAgBC,GAAS;AAChC,WAAOH,EAAK,QAAQ,SAAS,sBACzB,GAAGA,EAAK,QAAQ,SAAS,uBAAuB,IAAII,EAAID,GAAS,YAAY,IAAIA,EAAQ,QAAQ,KAAKH,EAAK,QAAQ,SAAS,uBAAuB,KACnJ,GAAGA,EAAK,QAAQ,SAAS,uBAAuB,IAAII,EAAID,GAAS,IAAI,IAAIA,EAAQ,KAAKH,EAAK,QAAQ,SAAS,gBAAgB;AAAA,EACjI;AAOD,WAASK,EAAeC,GAAO;AAC7B,WAAOC,EAASD,GAAO,GAAG,EAAI;AAAA,EAC/B;AAOD,WAASE,EAAmBC,GAAO;AACjC,UAAMC,IAAuBD,EAAM,IAAI,CAAAE,OACrC;AAAA,MACE,GAAGA;AAAA,MACH,IAAIN,EAAeM,EAAO,EAAE;AAAA,MAC5B,OAAON,EAAeM,EAAO,KAAK;AAAA,IACnC,EACF,GAIKC,IADcC,EAAQC,EAAQJ,GAAsB,IAAI,CAAC,EAAE,KAAK,CAAC,GAAGK,MAAMA,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAC9D,IAAI,CAAAC,MAAOA,EAAI,CAAC,EAAE,CAAC,CAAC,GAEzDC,IAAWC,EAAON,GAAwB,IAAI;AACpD,WAAOM,EAAOD,GAAU,OAAO;AAAA,EAChC;AAED,SAAOE,EAAS,MAAM;AACpB,UAAMC,IAASC,EAAMvB,CAAQ,GACvBwB,IAAID,EAAMtB,CAAM;AAEtB,WAAI,CAACD,KAAY,CAACsB,IACT,OAGFA,EAAO,IAAI,CAACG,OACV;AAAA,MACL,IAAIA,EAAG;AAAA,MACP,KAAKC,EAAOtB,EAAgBqB,EAAG,OAAO,CAAC;AAAA,MACvC,SAAS;AAAA,QACP,OAAOE,EAAkBF,EAAG,OAAOD,GAAGC,EAAG,SAAS,KAAKA,EAAG;AAAA,QAC1D,aAAaE,EAAkBF,EAAG,aAAaD,GAAGC,EAAG,SAAS;AAAA,QAC9D,SAASE,EAAkBF,EAAG,QAAQ,OAAOD,GAAG,EAAE;AAAA,QAClD,aAAaC,EAAG;AAAA,QAChB,aAAaA,EAAG;AAAA,QAChB,SAASf,EAAmBe,EAAG,mBAAmB,EAAE,OAAO,CAACZ,MAAWA,EAAO,MAAMA,EAAO,KAAK;AAAA,MACjG;AAAA,IACF,EACF;AAAA,EACL,CAAG;AACH;"}
|
|
@@ -5,6 +5,10 @@ type ModulesConfig = {
|
|
|
5
5
|
serviceParams: {
|
|
6
6
|
[key: string]: unknown;
|
|
7
7
|
};
|
|
8
|
+
customFacets: any;
|
|
9
|
+
};
|
|
10
|
+
export declare const extras: {
|
|
11
|
+
[key: string]: any;
|
|
8
12
|
};
|
|
9
13
|
export declare function configureModules(app: any, store: any, config?: ModulesConfig): void;
|
|
10
14
|
export {};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { configureServices as
|
|
1
|
+
import { configureServices as t } from "./configureServices.mjs";
|
|
2
2
|
import { configureComponents as m } from "./configureComponents.mjs";
|
|
3
|
-
|
|
4
|
-
|
|
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;
|
|
5
6
|
}
|
|
6
7
|
export {
|
|
7
|
-
|
|
8
|
+
v as configureModules,
|
|
9
|
+
u as extras
|
|
8
10
|
};
|
|
9
11
|
//# 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};\n\nexport function configureModules(app: any, store: any, config?: ModulesConfig) {\n store.$app = app;\n if (config) {\n configureServices(store, config
|
|
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,203 +1,269 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { onClickOutside as
|
|
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";
|
|
3
5
|
import "./CatalogueMQA.vue2.mjs";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
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
8
|
key: 0,
|
|
7
9
|
class: "errormsg"
|
|
8
|
-
},
|
|
10
|
+
}, ut = { class: "my-3 d-flex" }, dt = ["disabled"], vt = {
|
|
9
11
|
key: 1,
|
|
10
12
|
class: "errormsg"
|
|
11
|
-
},
|
|
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 = {
|
|
12
14
|
__name: "CatalogueMQA",
|
|
13
|
-
setup(
|
|
14
|
-
|
|
15
|
-
r(!0);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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 = {
|
|
24
|
+
method: "get",
|
|
25
|
+
url: `${O}/catalogue/${M}/setting`,
|
|
26
|
+
headers: {
|
|
27
|
+
Authorization: N,
|
|
28
|
+
Accept: "application/json"
|
|
29
|
+
},
|
|
30
|
+
withCredentials: !0
|
|
31
|
+
};
|
|
32
|
+
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);
|
|
35
|
+
} catch (t) {
|
|
36
|
+
console.log("Full error:", t);
|
|
37
|
+
}
|
|
38
|
+
}, F = async () => {
|
|
39
|
+
const s = {
|
|
40
|
+
method: "post",
|
|
41
|
+
url: `https://piveau-metrics-notifications-piveau.apps.osc.fokus.fraunhofer.de/catalogue/${M}/setting`,
|
|
42
|
+
headers: {
|
|
43
|
+
Authorization: N,
|
|
44
|
+
Accept: "application/json",
|
|
45
|
+
"Content-Type": "application/json",
|
|
46
|
+
"Access-Control-Allow-Origin": "*",
|
|
47
|
+
"Access-Control-Allow-Methods": "GET, POST, OPTIONS",
|
|
48
|
+
"Access-Control-Allow-Headers": "Authorization"
|
|
49
|
+
},
|
|
50
|
+
withCredentials: !0,
|
|
51
|
+
data: JSON.stringify({
|
|
52
|
+
receiverEmailList: d.value,
|
|
53
|
+
frequency: {
|
|
54
|
+
unit: "week",
|
|
55
|
+
value: 9
|
|
56
|
+
},
|
|
57
|
+
activeStatus: !0
|
|
58
|
+
})
|
|
59
|
+
};
|
|
60
|
+
try {
|
|
61
|
+
const t = await D.request(s);
|
|
62
|
+
return console.log("Settings updated:", t.data), t.data;
|
|
63
|
+
} catch (t) {
|
|
64
|
+
throw console.log("Error updating settings:", t), t;
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
V(), Y(E, (s) => {
|
|
68
|
+
d.value.forEach((t) => {
|
|
20
69
|
t.readonly = !0;
|
|
21
70
|
});
|
|
22
71
|
});
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
for (let t = 0; t <
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
},
|
|
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) => {
|
|
30
79
|
t.target.classList.toggle("activeItem");
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
|
|
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) => {
|
|
39
88
|
t.readonly = !0;
|
|
40
|
-
}),
|
|
41
|
-
},
|
|
42
|
-
const n = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,
|
|
43
|
-
n.test(
|
|
44
|
-
|
|
45
|
-
}), t === void 0 && (
|
|
46
|
-
|
|
47
|
-
}), t === void 0 && (
|
|
48
|
-
},
|
|
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) => {
|
|
49
98
|
let t = -1;
|
|
50
|
-
|
|
51
|
-
n.mail ===
|
|
52
|
-
}), t !== -1 &&
|
|
99
|
+
d.value.forEach((n, v) => {
|
|
100
|
+
n.mail === s && (t = v);
|
|
101
|
+
}), t !== -1 && d.value.splice(t, 1);
|
|
53
102
|
};
|
|
54
|
-
return (
|
|
103
|
+
return (s, t) => (p(), m("div", _, [
|
|
55
104
|
l("div", null, [
|
|
56
|
-
|
|
57
|
-
l("
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
105
|
+
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()),
|
|
61
115
|
l("p", null, [
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
116
|
+
t[12] || (t[12] = e(`Configuration for
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
`)),
|
|
120
|
+
l("strong", null, x(o(M)), 1)
|
|
121
|
+
]),
|
|
122
|
+
t[22] || (t[22] = e()),
|
|
123
|
+
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 ")),
|
|
127
|
+
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)
|
|
131
|
+
]),
|
|
132
|
+
t[17] || (t[17] = e("."))
|
|
67
133
|
])
|
|
68
|
-
]
|
|
69
|
-
t[
|
|
134
|
+
]),
|
|
135
|
+
t[23] || (t[23] = e()),
|
|
70
136
|
l("button", {
|
|
71
137
|
type: "button",
|
|
72
138
|
class: "btn btn-secondary",
|
|
73
|
-
onClick: t[0] || (t[0] = (n) =>
|
|
74
|
-
},
|
|
139
|
+
onClick: t[0] || (t[0] = (n) => G())
|
|
140
|
+
}, x(o(k)), 1)
|
|
75
141
|
]),
|
|
76
|
-
t[
|
|
77
|
-
|
|
78
|
-
l("div",
|
|
79
|
-
t[
|
|
80
|
-
t[
|
|
81
|
-
t[
|
|
82
|
-
t[
|
|
83
|
-
|
|
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", {
|
|
84
150
|
key: 0,
|
|
85
151
|
ref_key: "mailButtonWrap",
|
|
86
|
-
ref:
|
|
152
|
+
ref: E
|
|
87
153
|
}, [
|
|
88
|
-
t[
|
|
154
|
+
t[27] || (t[27] = l("tr", null, [
|
|
89
155
|
l("th", null, "Mail")
|
|
90
156
|
], -1)),
|
|
91
|
-
t[
|
|
92
|
-
(p(!0),
|
|
157
|
+
t[28] || (t[28] = e()),
|
|
158
|
+
(p(!0), m(z, null, R(o(d), (n) => (p(), m("tr", ot, [
|
|
93
159
|
l("td", null, [
|
|
94
160
|
l("input", {
|
|
95
161
|
type: "text",
|
|
96
162
|
value: n.mail,
|
|
97
163
|
readonly: n.readonly,
|
|
98
|
-
class:
|
|
99
|
-
onInput: (
|
|
100
|
-
}, null, 42,
|
|
101
|
-
t[
|
|
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()),
|
|
102
168
|
l("div", null, [
|
|
103
169
|
l("button", {
|
|
104
170
|
type: "button",
|
|
105
171
|
class: "btn btn-secondary",
|
|
106
|
-
onClick: (
|
|
107
|
-
}, "Edit", 8,
|
|
108
|
-
t[
|
|
172
|
+
onClick: (v) => H(n)
|
|
173
|
+
}, "Edit", 8, it),
|
|
174
|
+
t[24] || (t[24] = e()),
|
|
109
175
|
l("button", {
|
|
110
176
|
type: "button",
|
|
111
177
|
class: "btn btn-secondary",
|
|
112
|
-
onClick: (
|
|
113
|
-
}, "Delete", 8,
|
|
178
|
+
onClick: (v) => J(n.mail)
|
|
179
|
+
}, "Delete", 8, at)
|
|
114
180
|
])
|
|
115
181
|
]),
|
|
116
|
-
t[
|
|
117
|
-
n.valid ?
|
|
182
|
+
t[26] || (t[26] = e()),
|
|
183
|
+
n.valid ? C("", !0) : (p(), m("span", rt, "*Invalid email format"))
|
|
118
184
|
]))), 256))
|
|
119
|
-
], 512)) :
|
|
120
|
-
t[
|
|
121
|
-
l("div",
|
|
122
|
-
|
|
185
|
+
], 512)) : C("", !0),
|
|
186
|
+
t[34] || (t[34] = e()),
|
|
187
|
+
l("div", ut, [
|
|
188
|
+
B(l("input", {
|
|
123
189
|
type: "text",
|
|
124
|
-
"onUpdate:modelValue": t[1] || (t[1] = (n) =>
|
|
125
|
-
onInput: t[2] || (t[2] = (n) =>
|
|
126
|
-
class:
|
|
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 }),
|
|
127
193
|
style: { padding: "0.25rem" }
|
|
128
194
|
}, null, 34), [
|
|
129
|
-
[
|
|
195
|
+
[S, o(f).mail]
|
|
130
196
|
]),
|
|
131
|
-
t[
|
|
197
|
+
t[29] || (t[29] = e()),
|
|
132
198
|
l("button", {
|
|
133
199
|
type: "button",
|
|
134
200
|
class: "btn btn-secondary mx-3",
|
|
135
|
-
disabled: !
|
|
136
|
-
onClick: t[3] || (t[3] = (n) =>
|
|
201
|
+
disabled: !o(f).valid,
|
|
202
|
+
onClick: t[3] || (t[3] = (n) => K())
|
|
137
203
|
}, `+
|
|
138
|
-
add Mail`, 8,
|
|
204
|
+
add Mail`, 8, dt)
|
|
139
205
|
]),
|
|
140
|
-
t[
|
|
141
|
-
|
|
206
|
+
t[35] || (t[35] = e()),
|
|
207
|
+
o(f).valid ? C("", !0) : (p(), m("span", vt, "*Invalid email format"))
|
|
142
208
|
]),
|
|
143
|
-
t[
|
|
144
|
-
l("div",
|
|
145
|
-
t[
|
|
146
|
-
t[
|
|
147
|
-
t[
|
|
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
|
|
148
214
|
labore et dolore magna aliquyam erat, sed diam voluptua`, -1)),
|
|
149
|
-
t[
|
|
150
|
-
l("div",
|
|
151
|
-
l("div",
|
|
215
|
+
t[48] || (t[48] = e()),
|
|
216
|
+
l("div", mt, [
|
|
217
|
+
l("div", ft, [
|
|
152
218
|
l("button", {
|
|
153
219
|
type: "button",
|
|
154
|
-
class:
|
|
220
|
+
class: b(["btn btn-secondary", { activeChoiceButton: o(u) === !0 }]),
|
|
155
221
|
onClick: t[4] || (t[4] = (n) => {
|
|
156
|
-
|
|
222
|
+
A(u) ? u.value = !o(u) : u = !o(u), A(r) ? r.value = !1 : r = !1;
|
|
157
223
|
})
|
|
158
224
|
}, "Weekly", 2),
|
|
159
|
-
t[
|
|
225
|
+
t[36] || (t[36] = e()),
|
|
160
226
|
l("div", {
|
|
161
|
-
class:
|
|
227
|
+
class: b(["weekdays", { blur: !o(u) }])
|
|
162
228
|
}, [
|
|
163
|
-
(p(!0),
|
|
164
|
-
onClick: (
|
|
229
|
+
(p(!0), m(z, null, R(o(j), (n) => (p(), m("span", {
|
|
230
|
+
onClick: (v) => U(n, v)
|
|
165
231
|
}, [
|
|
166
232
|
l("button", {
|
|
167
|
-
disabled: !
|
|
233
|
+
disabled: !o(u),
|
|
168
234
|
class: "dayButtons"
|
|
169
|
-
},
|
|
170
|
-
], 8,
|
|
235
|
+
}, x(n), 9, bt)
|
|
236
|
+
], 8, yt))), 256))
|
|
171
237
|
], 2)
|
|
172
238
|
]),
|
|
173
|
-
t[
|
|
174
|
-
l("div",
|
|
239
|
+
t[44] || (t[44] = e()),
|
|
240
|
+
l("div", gt, [
|
|
175
241
|
l("button", {
|
|
176
242
|
type: "button",
|
|
177
|
-
class:
|
|
243
|
+
class: b([{ activeChoiceButton: o(r) === !0 }, "btn btn-secondary"]),
|
|
178
244
|
onClick: t[5] || (t[5] = (n) => {
|
|
179
|
-
|
|
245
|
+
A(r) ? r.value = !o(r) : r = !o(r), A(u) ? u.value = !1 : u = !1, Q();
|
|
180
246
|
})
|
|
181
247
|
}, "Monthly", 2),
|
|
182
|
-
t[
|
|
248
|
+
t[43] || (t[43] = e()),
|
|
183
249
|
l("div", {
|
|
184
|
-
class:
|
|
250
|
+
class: b(["d-flex daypicker my-3", { blur: !o(r) }])
|
|
185
251
|
}, [
|
|
186
|
-
|
|
187
|
-
"onUpdate:modelValue": t[6] || (t[6] = (n) =>
|
|
188
|
-
onInput: t[7] || (t[7] = (n) =>
|
|
189
|
-
class:
|
|
190
|
-
disabled: !
|
|
191
|
-
}, null, 42,
|
|
192
|
-
[
|
|
252
|
+
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)]
|
|
193
259
|
]),
|
|
194
|
-
t[
|
|
260
|
+
t[40] || (t[40] = e(`.
|
|
195
261
|
`)),
|
|
196
|
-
l("div",
|
|
262
|
+
l("div", kt, [
|
|
197
263
|
l("button", {
|
|
198
|
-
onClick: t[8] || (t[8] = (n) =>
|
|
264
|
+
onClick: t[8] || (t[8] = (n) => T("up")),
|
|
199
265
|
class: "caretButtons ml-1"
|
|
200
|
-
}, t[
|
|
266
|
+
}, t[37] || (t[37] = [
|
|
201
267
|
l("svg", {
|
|
202
268
|
xmlns: "http://www.w3.org/2000/svg",
|
|
203
269
|
width: "12",
|
|
@@ -209,11 +275,11 @@ const j = { class: "container mb-3" }, O = { key: 0 }, P = { class: "mqaWrapper"
|
|
|
209
275
|
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" })
|
|
210
276
|
], -1)
|
|
211
277
|
])),
|
|
212
|
-
t[
|
|
278
|
+
t[39] || (t[39] = e()),
|
|
213
279
|
l("button", {
|
|
214
|
-
onClick: t[9] || (t[9] = (n) =>
|
|
280
|
+
onClick: t[9] || (t[9] = (n) => T()),
|
|
215
281
|
class: "caretButtons mr-1"
|
|
216
|
-
}, t[
|
|
282
|
+
}, t[38] || (t[38] = [
|
|
217
283
|
l("svg", {
|
|
218
284
|
xmlns: "http://www.w3.org/2000/svg",
|
|
219
285
|
width: "12",
|
|
@@ -226,21 +292,21 @@ const j = { class: "container mb-3" }, O = { key: 0 }, P = { class: "mqaWrapper"
|
|
|
226
292
|
], -1)
|
|
227
293
|
]))
|
|
228
294
|
]),
|
|
229
|
-
t[
|
|
230
|
-
t[
|
|
295
|
+
t[41] || (t[41] = e()),
|
|
296
|
+
t[42] || (t[42] = l("span", null, "day of the month", -1))
|
|
231
297
|
], 2)
|
|
232
298
|
])
|
|
233
299
|
])
|
|
234
300
|
]),
|
|
235
|
-
t[
|
|
236
|
-
l("div",
|
|
237
|
-
t[
|
|
238
|
-
t[
|
|
239
|
-
t[
|
|
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
|
|
240
306
|
labore et dolore magna aliquyam erat, sed diam voluptua`, -1)),
|
|
241
|
-
t[
|
|
242
|
-
l("div",
|
|
243
|
-
t[
|
|
307
|
+
t[57] || (t[57] = e()),
|
|
308
|
+
l("div", At, [
|
|
309
|
+
t[51] || (t[51] = l("div", { class: "d-flex justify-content-between" }, [
|
|
244
310
|
l("span", null, [
|
|
245
311
|
l("b", null, "0")
|
|
246
312
|
]),
|
|
@@ -249,44 +315,42 @@ const j = { class: "container mb-3" }, O = { key: 0 }, P = { class: "mqaWrapper"
|
|
|
249
315
|
l("b", null, "400")
|
|
250
316
|
])
|
|
251
317
|
], -1)),
|
|
252
|
-
t[
|
|
253
|
-
|
|
318
|
+
t[52] || (t[52] = e()),
|
|
319
|
+
B(l("input", {
|
|
254
320
|
type: "range",
|
|
255
|
-
"onUpdate:modelValue": t[10] || (t[10] = (n) =>
|
|
321
|
+
"onUpdate:modelValue": t[10] || (t[10] = (n) => $.value = n),
|
|
256
322
|
min: "0",
|
|
257
323
|
max: "400"
|
|
258
324
|
}, null, 512), [
|
|
259
|
-
[
|
|
325
|
+
[S, $.value]
|
|
260
326
|
]),
|
|
261
|
-
t[
|
|
327
|
+
t[53] || (t[53] = e()),
|
|
262
328
|
l("p", null, [
|
|
263
|
-
t[
|
|
264
|
-
l("b", null,
|
|
265
|
-
t[
|
|
329
|
+
t[49] || (t[49] = e("Lower than ")),
|
|
330
|
+
l("b", null, x($.value), 1),
|
|
331
|
+
t[50] || (t[50] = e(" Points"))
|
|
266
332
|
])
|
|
267
333
|
])
|
|
268
334
|
]),
|
|
269
|
-
t[
|
|
270
|
-
l("div",
|
|
335
|
+
t[61] || (t[61] = e()),
|
|
336
|
+
l("div", xt, [
|
|
271
337
|
l("button", {
|
|
272
338
|
type: "button",
|
|
273
339
|
class: "btn btn-secondary",
|
|
274
|
-
onClick:
|
|
275
|
-
})
|
|
340
|
+
onClick: F
|
|
276
341
|
}, "Save"),
|
|
277
|
-
t[
|
|
342
|
+
t[58] || (t[58] = e()),
|
|
278
343
|
l("button", {
|
|
279
344
|
type: "button",
|
|
280
345
|
class: "btn btn-secondary",
|
|
281
|
-
onClick: t[
|
|
282
|
-
})
|
|
346
|
+
onClick: t[11] || (t[11] = (n) => s.back())
|
|
283
347
|
}, "Cancel")
|
|
284
348
|
])
|
|
285
|
-
])) :
|
|
349
|
+
])) : C("", !0)
|
|
286
350
|
]));
|
|
287
351
|
}
|
|
288
|
-
},
|
|
352
|
+
}, Tt = /* @__PURE__ */ h(Mt, [["__scopeId", "data-v-dd84825d"]]);
|
|
289
353
|
export {
|
|
290
|
-
|
|
354
|
+
Tt as default
|
|
291
355
|
};
|
|
292
356
|
//# sourceMappingURL=CatalogueMQA.vue.mjs.map
|