@piveau/piveau-hub-ui-modules 4.5.6 → 4.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/composables/useDataInfoBox.mjs +21 -20
  2. package/dist/composables/useDataInfoBox.mjs.map +1 -1
  3. package/dist/configurations/configureModules.d.ts +4 -0
  4. package/dist/configurations/configureModules.mjs +6 -4
  5. package/dist/configurations/configureModules.mjs.map +1 -1
  6. package/dist/data-provider-interface/CatalogueMQA.vue.d.ts +2 -0
  7. package/dist/data-provider-interface/CatalogueMQA.vue.mjs +292 -0
  8. package/dist/data-provider-interface/CatalogueMQA.vue.mjs.map +1 -0
  9. package/dist/data-provider-interface/CatalogueMQA.vue2.mjs +5 -0
  10. package/dist/data-provider-interface/CatalogueMQA.vue2.mjs.map +1 -0
  11. package/dist/data-provider-interface/DPIMenu.vue.d.ts +2 -2
  12. package/dist/data-provider-interface/views/UserCataloguesPage.vue.mjs +116 -51
  13. package/dist/data-provider-interface/views/UserCataloguesPage.vue.mjs.map +1 -1
  14. package/dist/datasetDetails/DatasetDetailsDataset.vue.mjs +1 -1
  15. package/dist/datasetDetails/DatasetDetailsDataset.vue.mjs.map +1 -1
  16. package/dist/datasetDetails/DatasetDetailsDataset.vue2.mjs.map +1 -1
  17. package/dist/datasetDetails/DatasetDetailsDescription.vue.d.ts +1 -1
  18. package/dist/datasetDetails/distributions/DistributionFormat.vue.d.ts +2 -2
  19. package/dist/datasetDetails/distributions/DistributionsHeader.vue.mjs +10 -7
  20. package/dist/datasetDetails/distributions/DistributionsHeader.vue.mjs.map +1 -1
  21. package/dist/datasetDetails/distributions/DownloadAllDistributions.vue.d.ts +2 -2
  22. package/dist/datasetDetails/distributions/DownloadAllDistributions.vue.mjs.map +1 -1
  23. package/dist/datasetDetails/distributions/distributionActions/DistributionDownload.vue.d.ts +2 -2
  24. package/dist/datasetDetails/distributions/distributionDetails/DistributionContent.vue.mjs +34 -31
  25. package/dist/datasetDetails/distributions/distributionDetails/DistributionContent.vue.mjs.map +1 -1
  26. package/dist/datasetDetails/header/DatasetDetailsHeaderTitle.vue.d.ts +1 -1
  27. package/dist/datasetDetails/navigation/DatasetDetailsNavigation.vue.d.ts +1 -1
  28. package/dist/datasetDetails/navigation/DatasetDetailsNavigationLinks.vue.d.ts +1 -1
  29. package/dist/datasets/Datasets.vue.mjs +80 -80
  30. package/dist/datasets/Datasets.vue.mjs.map +1 -1
  31. package/dist/facets_2.0/Facets.vue.d.ts +19 -0
  32. package/dist/facets_2.0/Facets.vue.mjs +31 -0
  33. package/dist/facets_2.0/Facets.vue.mjs.map +1 -0
  34. package/dist/facets_2.0/Facets.vue2.mjs +5 -0
  35. package/dist/facets_2.0/Facets.vue2.mjs.map +1 -0
  36. package/dist/facets_2.0/facets/DataServicesFacet.vue.d.ts +75 -0
  37. package/dist/facets_2.0/facets/DataServicesFacet.vue.mjs +49 -0
  38. package/dist/facets_2.0/facets/DataServicesFacet.vue.mjs.map +1 -0
  39. package/dist/facets_2.0/facets/ExpandableSelectFacet.vue.d.ts +93 -0
  40. package/dist/facets_2.0/facets/ExpandableSelectFacet.vue.mjs +143 -0
  41. package/dist/facets_2.0/facets/ExpandableSelectFacet.vue.mjs.map +1 -0
  42. package/dist/facets_2.0/facets/ExpandableSelectFacet.vue2.mjs +5 -0
  43. package/dist/facets_2.0/facets/ExpandableSelectFacet.vue2.mjs.map +1 -0
  44. package/dist/facets_2.0/facets/FacetTitle.vue.d.ts +18 -0
  45. package/dist/facets_2.0/facets/FacetTitle.vue.mjs +38 -0
  46. package/dist/facets_2.0/facets/FacetTitle.vue.mjs.map +1 -0
  47. package/dist/facets_2.0/facets/FacetTitle.vue2.mjs +5 -0
  48. package/dist/facets_2.0/facets/FacetTitle.vue2.mjs.map +1 -0
  49. package/dist/facets_2.0/facets/RadioFacet.vue.d.ts +58 -0
  50. package/dist/facets_2.0/facets/RadioFacet.vue.mjs +92 -0
  51. package/dist/facets_2.0/facets/RadioFacet.vue.mjs.map +1 -0
  52. package/dist/facets_2.0/facets/SelectFacetsItem.vue.d.ts +34 -0
  53. package/dist/facets_2.0/facets/SelectFacetsItem.vue.mjs +45 -0
  54. package/dist/facets_2.0/facets/SelectFacetsItem.vue.mjs.map +1 -0
  55. package/dist/facets_2.0/getFacet.d.ts +3 -0
  56. package/dist/facets_2.0/getFacet.mjs +20 -0
  57. package/dist/facets_2.0/getFacet.mjs.map +1 -0
  58. package/dist/facets_2.0/toggleQueryParam.d.ts +9 -0
  59. package/dist/facets_2.0/toggleQueryParam.mjs +11 -0
  60. package/dist/facets_2.0/toggleQueryParam.mjs.map +1 -0
  61. package/dist/facets_2.0/types.d.ts +9 -0
  62. package/dist/facets_2.0/useFacets.d.ts +5 -0
  63. package/dist/facets_2.0/useFacets.mjs +14 -0
  64. package/dist/facets_2.0/useFacets.mjs.map +1 -0
  65. package/dist/index.d.ts +4 -2
  66. package/dist/index.mjs +285 -280
  67. package/dist/index.mjs.map +1 -1
  68. package/dist/piveau-hub-ui-modules.css +1 -1
  69. package/dist/search/Search.vue.d.ts +2 -0
  70. package/dist/search/Search.vue.mjs +20 -0
  71. package/dist/search/Search.vue.mjs.map +1 -0
  72. package/dist/services/datasetService.d.ts +5 -0
  73. package/dist/services/datasetService.mjs +2 -1
  74. package/dist/services/datasetService.mjs.map +1 -1
  75. package/dist/store/modules/cataloguesStore.d.ts +6 -0
  76. package/dist/store/modules/cataloguesStore.mjs +10 -4
  77. package/dist/store/modules/cataloguesStore.mjs.map +1 -1
  78. package/dist/store/modules/datasetsStore.d.ts +12 -0
  79. package/dist/store/modules/datasetsStore.mjs +26 -14
  80. package/dist/store/modules/datasetsStore.mjs.map +1 -1
  81. package/package.json +1 -1
@@ -1,39 +1,40 @@
1
- import { getCurrentInstance as I, computed as C, unref as u } from "vue";
2
- import { getImg as b, getTranslationFor as i, truncate as D } from "../utils/helpers.mjs";
3
- import { has as g, toPairs as B, groupBy as A, uniqBy as s } from "lodash-es";
4
- function x({ datasets: l, locale: d }) {
5
- const n = I().proxy.$env;
6
- function m(e) {
7
- return n.content.catalogs.useCatalogCountries ? `${n.content.catalogs.defaultCatalogImagePath}/${g(e, "country.id") ? e.country.id : n.content.catalogs.defaultCatalogCountryID}` : `${n.content.catalogs.defaultCatalogImagePath}/${g(e, "id") ? e.id : n.content.catalogs.defaultCatalogID}`;
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 c(e) {
10
- return D(e, 8, !0);
10
+ function u(e) {
11
+ return I(e, 8, !0);
11
12
  }
12
13
  function f(e) {
13
- const o = e.map((a) => ({
14
+ const r = e.map((a) => ({
14
15
  ...a,
15
- id: c(a.id),
16
- label: c(a.label)
17
- })), r = B(A(o, "id")).sort((a, y) => y[1].length - a[1].length).map((a) => a[1][0]), p = s(r, "id");
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 = u(l), o = u(d);
22
+ const e = c(l), r = c(m);
22
23
  return !l || !e ? null : e.map((t) => ({
23
24
  id: t.id,
24
- src: b(m(t.catalog)),
25
+ src: D(d(t.catalog)),
25
26
  dataset: {
26
- title: i(t.title, o, t.languages) || t.id,
27
- description: i(t.description, o, t.languages),
28
- catalog: i(t.catalog.title, o, []),
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((r) => r.id || r.label)
32
+ formats: f(t.distributionFormats).filter((n) => n.id || n.label)
32
33
  }
33
34
  }));
34
35
  });
35
36
  }
36
37
  export {
37
- x as useDataInfoBox
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 { computed, getCurrentInstance, unref } from \"vue\";\nimport { getTranslationFor, truncate, getImg } from \"../utils/helpers\";\nimport { toPairs, uniqBy, groupBy, has } from \"lodash-es\";\n\nexport function useDataInfoBox({ datasets, locale }) {\n\n const vm = getCurrentInstance();\n const $env = vm.proxy.$env;\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 const uniqByIdAndLabel = uniqBy(uniqById, \"label\");\n return uniqByIdAndLabel;\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}"],"names":["useDataInfoBox","datasets","locale","$env","getCurrentInstance","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":";;;AAIO,SAASA,EAAe,EAAE,UAAAC,GAAU,QAAAC,KAAU;AAGnD,QAAMC,IADKC,IACK,MAAM;AAEtB,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;AAEpD,WADyBM,EAAOD,GAAU,OAAO;AAAA,EAElD;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;"}
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 i } from "./configureServices.mjs";
1
+ import { configureServices as t } from "./configureServices.mjs";
2
2
  import { configureComponents as m } from "./configureComponents.mjs";
3
- function f(e, r, o) {
4
- r.$app = e, o && (i(r, o.serviceParams), m(e, o.components));
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
- f as configureModules
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.serviceParams);\n configureComponents(app, config.components);\n }\n}\n"],"names":["configureModules","app","store","config","configureServices","configureComponents"],"mappings":";;AAQgB,SAAAA,EAAiBC,GAAUC,GAAYC,GAAwB;AAC7E,EAAAD,EAAM,OAAOD,GACTE,MACgBC,EAAAF,GAAOC,EAAO,aAAa,GACzBE,EAAAJ,GAAKE,EAAO,UAAU;AAE9C;"}
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;"}
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,292 @@
1
+ import { ref as r, openBlock as p, createElementBlock as f, createElementVNode as l, createTextVNode as e, toDisplayString as B, unref as s, Fragment as D, renderList as L, normalizeClass as y, createCommentVNode as w, withDirectives as W, vModelText as A, isRef as k } from "vue";
2
+ import { onClickOutside as U } from "../external/@vueuse/core/index";
3
+ import "./CatalogueMQA.vue2.mjs";
4
+ import Z from "../_virtual/_plugin-vue_export-helper.mjs";
5
+ const j = { class: "container mb-3" }, O = { key: 0 }, P = { class: "mqaWrapper" }, G = { class: "mailItems" }, H = ["value", "readonly", "onInput"], J = ["onClick"], K = ["onClick"], X = {
6
+ key: 0,
7
+ class: "errormsg"
8
+ }, Y = { class: "my-3 d-flex" }, h = ["disabled"], _ = {
9
+ key: 1,
10
+ class: "errormsg"
11
+ }, c = { class: "mqaWrapper" }, tt = { class: "d-flex" }, lt = { class: "mr-3 my-3" }, et = ["onClick"], nt = ["disabled"], st = { class: "my-3" }, it = ["disabled"], ot = { class: "caretWrap" }, at = { class: "mqaWrapper" }, ut = { class: "w-50" }, dt = { class: "actionWrapper" }, rt = {
12
+ __name: "CatalogueMQA",
13
+ setup(vt) {
14
+ let a = r(!1), u = r(!1), v = r({ mail: "", valid: !0 }), I = r(null);
15
+ r(!0);
16
+ let x = r("Activate"), g = r(!1), C = r(!1), m = r(), N = ["Mo", "Tue", "We", "Th", "Fr", "Sa", "Su"], o = r(1);
17
+ const M = r(0), R = /^(2[0-8]|[1-9])$/;
18
+ m.value = [{ mail: "mail@mail2.com", readonly: !0, valid: !0 }, { mail: "mail@mail1.com", readonly: !0, valid: !0 }], U(I, (i) => {
19
+ m.value.forEach((t) => {
20
+ t.readonly = !0;
21
+ });
22
+ });
23
+ const q = () => {
24
+ const i = document.getElementsByClassName("dayButtons");
25
+ for (let t = 0; t < i.length; t++)
26
+ i[t].classList.remove("activeItem");
27
+ }, E = (i) => {
28
+ i === "up" && o.value < 28 ? (o.value > 8 && (g.value = !0), o.value++) : o.value > 1 && (o.value < 11 && (g.value = !1), o.value--);
29
+ }, z = (i, t) => {
30
+ t.target.classList.toggle("activeItem");
31
+ }, S = () => {
32
+ R.test(o.value) || (o.value = "28"), o.value > 8 ? g.value = !0 : g.value = !1;
33
+ }, T = () => {
34
+ v.value.mail != "" && (m.value.push({ mail: v.value.mail, readonly: !0, valid: !0 }), v.value = { mail: "", valid: !0 });
35
+ }, V = () => {
36
+ C.value ? (C.value = !1, x.value = "Activate") : (C.value = !0, x.value = "Deactivate");
37
+ }, Q = (i) => {
38
+ m.value.forEach((t) => {
39
+ t.readonly = !0;
40
+ }), i.readonly = !i.readonly;
41
+ }, $ = (i, t) => {
42
+ const n = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, d = i.target.value;
43
+ n.test(d) || d === "" ? (m.value.forEach((b) => {
44
+ b.mail === t && (b.mail = d, b.valid = !0);
45
+ }), t === void 0 && (v.value.valid = !0)) : (m.value.forEach((b) => {
46
+ b.mail === t && (b.valid = !1);
47
+ }), t === void 0 && (v.value.valid = !1));
48
+ }, F = (i) => {
49
+ let t = -1;
50
+ m.value.forEach((n, d) => {
51
+ n.mail === i && (t = d);
52
+ }), t !== -1 && m.value.splice(t, 1);
53
+ };
54
+ return (i, t) => (p(), f("div", j, [
55
+ l("div", null, [
56
+ t[13] || (t[13] = l("div", null, [
57
+ l("h1", null, "MQA Report Settings"),
58
+ e(),
59
+ l("p", null, "Configuration for"),
60
+ e(),
61
+ l("p", null, [
62
+ e("For this Catalogue the "),
63
+ l("b", null, "MQA Rating Checks "),
64
+ e("are currently "),
65
+ l("b", null, "deactivated"),
66
+ e(".")
67
+ ])
68
+ ], -1)),
69
+ t[14] || (t[14] = e()),
70
+ l("button", {
71
+ type: "button",
72
+ class: "btn btn-secondary",
73
+ onClick: t[0] || (t[0] = (n) => V())
74
+ }, B(s(x)), 1)
75
+ ]),
76
+ t[53] || (t[53] = e()),
77
+ s(C) ? (p(), f("div", O, [
78
+ l("div", P, [
79
+ t[21] || (t[21] = l("h3", null, "Recipients Mail", -1)),
80
+ t[22] || (t[22] = e()),
81
+ t[23] || (t[23] = l("span", null, "Add and edit mail addresses for recieving the MQA report", -1)),
82
+ t[24] || (t[24] = e()),
83
+ s(m).length != 0 ? (p(), f("table", {
84
+ key: 0,
85
+ ref_key: "mailButtonWrap",
86
+ ref: I
87
+ }, [
88
+ t[18] || (t[18] = l("tr", null, [
89
+ l("th", null, "Mail")
90
+ ], -1)),
91
+ t[19] || (t[19] = e()),
92
+ (p(!0), f(D, null, L(s(m), (n) => (p(), f("tr", G, [
93
+ l("td", null, [
94
+ l("input", {
95
+ type: "text",
96
+ value: n.mail,
97
+ readonly: n.readonly,
98
+ class: y({ editable: !n.readonly, invalid: !n.valid }),
99
+ onInput: (d) => $(d, n.mail)
100
+ }, null, 42, H),
101
+ t[16] || (t[16] = e()),
102
+ l("div", null, [
103
+ l("button", {
104
+ type: "button",
105
+ class: "btn btn-secondary",
106
+ onClick: (d) => Q(n)
107
+ }, "Edit", 8, J),
108
+ t[15] || (t[15] = e()),
109
+ l("button", {
110
+ type: "button",
111
+ class: "btn btn-secondary",
112
+ onClick: (d) => F(n.mail)
113
+ }, "Delete", 8, K)
114
+ ])
115
+ ]),
116
+ t[17] || (t[17] = e()),
117
+ n.valid ? w("", !0) : (p(), f("span", X, "*Invalid email format"))
118
+ ]))), 256))
119
+ ], 512)) : w("", !0),
120
+ t[25] || (t[25] = e()),
121
+ l("div", Y, [
122
+ W(l("input", {
123
+ type: "text",
124
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => s(v).mail = n),
125
+ onInput: t[2] || (t[2] = (n) => $(n)),
126
+ class: y({ invalidNewMail: !s(v).valid }),
127
+ style: { padding: "0.25rem" }
128
+ }, null, 34), [
129
+ [A, s(v).mail]
130
+ ]),
131
+ t[20] || (t[20] = e()),
132
+ l("button", {
133
+ type: "button",
134
+ class: "btn btn-secondary mx-3",
135
+ disabled: !s(v).valid,
136
+ onClick: t[3] || (t[3] = (n) => T())
137
+ }, `+
138
+ add Mail`, 8, h)
139
+ ]),
140
+ t[26] || (t[26] = e()),
141
+ s(v).valid ? w("", !0) : (p(), f("span", _, "*Invalid email format"))
142
+ ]),
143
+ t[50] || (t[50] = e()),
144
+ l("div", c, [
145
+ t[36] || (t[36] = l("h3", null, "Frequency of Rating Checks", -1)),
146
+ t[37] || (t[37] = e()),
147
+ t[38] || (t[38] = l("span", null, `Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
148
+ labore et dolore magna aliquyam erat, sed diam voluptua`, -1)),
149
+ t[39] || (t[39] = e()),
150
+ l("div", tt, [
151
+ l("div", lt, [
152
+ l("button", {
153
+ type: "button",
154
+ class: y(["btn btn-secondary", { activeChoiceButton: s(u) === !0 }]),
155
+ onClick: t[4] || (t[4] = (n) => {
156
+ k(u) ? u.value = !s(u) : u = !s(u), k(a) ? a.value = !1 : a = !1;
157
+ })
158
+ }, "Weekly", 2),
159
+ t[27] || (t[27] = e()),
160
+ l("div", {
161
+ class: y(["weekdays", { blur: !s(u) }])
162
+ }, [
163
+ (p(!0), f(D, null, L(s(N), (n) => (p(), f("span", {
164
+ onClick: (d) => z(n, d)
165
+ }, [
166
+ l("button", {
167
+ disabled: !s(u),
168
+ class: "dayButtons"
169
+ }, B(n), 9, nt)
170
+ ], 8, et))), 256))
171
+ ], 2)
172
+ ]),
173
+ t[35] || (t[35] = e()),
174
+ l("div", st, [
175
+ l("button", {
176
+ type: "button",
177
+ class: y([{ activeChoiceButton: s(a) === !0 }, "btn btn-secondary"]),
178
+ onClick: t[5] || (t[5] = (n) => {
179
+ k(a) ? a.value = !s(a) : a = !s(a), k(u) ? u.value = !1 : u = !1, q();
180
+ })
181
+ }, "Monthly", 2),
182
+ t[34] || (t[34] = e()),
183
+ l("div", {
184
+ class: y(["d-flex daypicker my-3", { blur: !s(a) }])
185
+ }, [
186
+ W(l("input", {
187
+ "onUpdate:modelValue": t[6] || (t[6] = (n) => k(o) ? o.value = n : o = n),
188
+ onInput: t[7] || (t[7] = (n) => S()),
189
+ class: y({ dynamicWidth: s(g) }),
190
+ disabled: !s(a)
191
+ }, null, 42, it), [
192
+ [A, s(o)]
193
+ ]),
194
+ t[31] || (t[31] = e(`.
195
+ `)),
196
+ l("div", ot, [
197
+ l("button", {
198
+ onClick: t[8] || (t[8] = (n) => E("up")),
199
+ class: "caretButtons ml-1"
200
+ }, t[28] || (t[28] = [
201
+ l("svg", {
202
+ xmlns: "http://www.w3.org/2000/svg",
203
+ width: "12",
204
+ height: "12",
205
+ fill: "currentColor",
206
+ class: "bi bi-caret-up-fill",
207
+ viewBox: "0 0 16 16"
208
+ }, [
209
+ 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
+ ], -1)
211
+ ])),
212
+ t[30] || (t[30] = e()),
213
+ l("button", {
214
+ onClick: t[9] || (t[9] = (n) => E()),
215
+ class: "caretButtons mr-1"
216
+ }, t[29] || (t[29] = [
217
+ l("svg", {
218
+ xmlns: "http://www.w3.org/2000/svg",
219
+ width: "12",
220
+ height: "12",
221
+ fill: "currentColor",
222
+ class: "bi bi-caret-down-fill",
223
+ viewBox: "0 0 16 16"
224
+ }, [
225
+ l("path", { d: "M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z" })
226
+ ], -1)
227
+ ]))
228
+ ]),
229
+ t[32] || (t[32] = e()),
230
+ t[33] || (t[33] = l("span", null, "day of the month", -1))
231
+ ], 2)
232
+ ])
233
+ ])
234
+ ]),
235
+ t[51] || (t[51] = e()),
236
+ l("div", at, [
237
+ t[45] || (t[45] = l("h3", null, "Notification Treshold", -1)),
238
+ t[46] || (t[46] = e()),
239
+ t[47] || (t[47] = l("span", null, `Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
240
+ labore et dolore magna aliquyam erat, sed diam voluptua`, -1)),
241
+ t[48] || (t[48] = e()),
242
+ l("div", ut, [
243
+ t[42] || (t[42] = l("div", { class: "d-flex justify-content-between" }, [
244
+ l("span", null, [
245
+ l("b", null, "0")
246
+ ]),
247
+ e(),
248
+ l("span", null, [
249
+ l("b", null, "400")
250
+ ])
251
+ ], -1)),
252
+ t[43] || (t[43] = e()),
253
+ W(l("input", {
254
+ type: "range",
255
+ "onUpdate:modelValue": t[10] || (t[10] = (n) => M.value = n),
256
+ min: "0",
257
+ max: "400"
258
+ }, null, 512), [
259
+ [A, M.value]
260
+ ]),
261
+ t[44] || (t[44] = e()),
262
+ l("p", null, [
263
+ t[40] || (t[40] = e("Lower than ")),
264
+ l("b", null, B(M.value), 1),
265
+ t[41] || (t[41] = e(" Points"))
266
+ ])
267
+ ])
268
+ ]),
269
+ t[52] || (t[52] = e()),
270
+ l("div", dt, [
271
+ l("button", {
272
+ type: "button",
273
+ class: "btn btn-secondary",
274
+ onClick: t[11] || (t[11] = () => {
275
+ })
276
+ }, "Save"),
277
+ t[49] || (t[49] = e()),
278
+ l("button", {
279
+ type: "button",
280
+ class: "btn btn-secondary",
281
+ onClick: t[12] || (t[12] = () => {
282
+ })
283
+ }, "Cancel")
284
+ ])
285
+ ])) : w("", !0)
286
+ ]));
287
+ }
288
+ }, bt = /* @__PURE__ */ Z(rt, [["__scopeId", "data-v-f00ed272"]]);
289
+ export {
290
+ bt as default
291
+ };
292
+ //# sourceMappingURL=CatalogueMQA.vue.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CatalogueMQA.vue.mjs","sources":["../../lib/data-provider-interface/CatalogueMQA.vue"],"sourcesContent":["<template>\n <div class=\"container mb-3\">\n <div>\n <div>\n <h1>MQA Report Settings</h1>\n <p>Configuration for</p>\n <p>For this Catalogue the <b>MQA Rating Checks </b>are currently <b>deactivated</b>.</p>\n </div>\n\n <button type=\"button\" class=\"btn btn-secondary\" @click=\"handleActivate()\">{{ activatedString }}</button>\n </div>\n <div v-if=\"active\">\n <div class=\"mqaWrapper\">\n <h3>Recipients Mail</h3>\n <span>Add and edit mail addresses for recieving the MQA report</span>\n <table ref=\"mailButtonWrap\" v-if=\"mailList.length != 0\">\n <tr>\n <th>Mail</th>\n </tr>\n <tr v-for=\"item in mailList\" class=\"mailItems\">\n <td>\n <input type=\"text\" :value=\"item.mail\" :readonly=\"item.readonly\"\n :class=\"{ 'editable': !item.readonly, 'invalid': !item.valid }\"\n @input=\"handleMailinput($event, item.mail)\">\n <div>\n <button type=\"button\" class=\"btn btn-secondary\"\n @click=\"handleReadonly(item)\">Edit</button>\n <button type=\"button\" class=\"btn btn-secondary\"\n @click=\"handleDelete(item.mail)\">Delete</button>\n </div>\n </td>\n <span class=\"errormsg\" v-if=\"!item.valid\">*Invalid email format</span>\n </tr>\n </table>\n <div class=\"my-3 d-flex\">\n <input type=\"text\" v-model=\"newMail.mail\" @input=\"handleMailinput($event)\"\n :class=\"{ 'invalidNewMail': !newMail.valid }\" style=\"padding:0.25rem\">\n <button type=\"button\" class=\"btn btn-secondary mx-3\" :disabled=\"!newMail.valid\"\n @click=\"addNewMail()\">+\n add Mail</button>\n </div>\n \n <span class=\"errormsg\" v-if=\"!newMail.valid\">*Invalid email format</span>\n </div>\n <div class=\"mqaWrapper\">\n <h3>Frequency of Rating Checks</h3>\n <span>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut\n labore et dolore magna aliquyam erat, sed diam voluptua</span>\n <div class=\"d-flex\">\n <div class=\"mr-3 my-3\">\n <button type=\"button\" class=\"btn btn-secondary\" @click=\"weekly = !weekly; monthly = false\"\n :class=\"{ 'activeChoiceButton': weekly === true }\">Weekly</button>\n <div class=\"weekdays\" :class=\"{ 'blur': !weekly }\">\n <span v-for=\"day in week\" @click=\"currentday(day, $event)\">\n <button :disabled=\"!weekly\" class=\"dayButtons\">{{ day }}</button>\n </span>\n </div>\n </div>\n <div class=\"my-3\">\n <button type=\"button\" :class=\"{ 'activeChoiceButton': monthly === true }\"\n class=\"btn btn-secondary\"\n @click=\"monthly = !monthly; weekly = false; resetWeekdays()\">Monthly</button>\n <div class=\"d-flex daypicker my-3\" :class=\"{ 'blur': !monthly }\">\n <input v-model=\"daysInMonth\" @input=\"adjustWidth()\" :class=\"{ dynamicWidth: inputWidth }\"\n :disabled=\"!monthly\">.\n <div class=\"caretWrap\">\n <button @click=\"editDate('up')\" class=\"caretButtons ml-1\"><svg\n xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" fill=\"currentColor\"\n class=\"bi bi-caret-up-fill\" viewBox=\"0 0 16 16\">\n <path\n 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\" />\n </svg></button>\n <button @click=\"editDate()\" class=\"caretButtons mr-1\"><svg\n xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" fill=\"currentColor\"\n class=\"bi bi-caret-down-fill\" viewBox=\"0 0 16 16\">\n <path\n d=\"M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z\" />\n </svg></button>\n </div>\n <span>day of the month</span>\n </div>\n </div>\n </div>\n </div>\n <div class=\"mqaWrapper\">\n <h3>Notification Treshold</h3>\n <span>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut\n labore et dolore magna aliquyam erat, sed diam voluptua</span>\n <div class=\"w-50\">\n <div class=\"d-flex justify-content-between\">\n <span><b>0</b></span>\n <span><b>400</b></span>\n </div>\n <input type=\"range\" v-model=\"value\" min=\"0\" max=\"400\" />\n <p>Lower than <b>{{ value }}</b> Points</p>\n </div>\n </div>\n <div class=\"actionWrapper\">\n <button type=\"button\" class=\"btn btn-secondary\" @click=\"\">Save</button>\n <button type=\"button\" class=\"btn btn-secondary\" @click=\"\">Cancel</button>\n </div>\n </div>\n </div>\n\n</template>\n<script setup>\nimport { ref } from 'vue';\nimport { onClickOutside } from '@vueuse/core'\n\nlet monthly = ref(false)\nlet weekly = ref(false)\nlet newMail = ref({ 'mail': '', 'valid': true })\nlet mailButtonWrap = ref(null)\nlet isReadonly = ref(true)\nlet activatedString = ref('Activate')\nlet inputWidth = ref(false)\nlet active = ref(false)\nlet mailList = ref()\nlet week = ['Mo', 'Tue', 'We', 'Th', 'Fr', 'Sa', 'Su']\nlet daysInMonth = ref(1)\n\nconst value = ref(0);\nconst regex = /^(2[0-8]|[1-9])$/;\n\nmailList.value = [{ 'mail': \"mail@mail2.com\", readonly: true, valid: true }, { 'mail': \"mail@mail1.com\", readonly: true, valid: true }]\n\n\nonClickOutside(mailButtonWrap, event => {\n mailList.value.forEach(element => {\n element.readonly = true\n })\n});\nconst resetWeekdays = () => {\n const arr = document.getElementsByClassName('dayButtons')\n for (let index = 0; index < arr.length; index++) {\n arr[index].classList.remove('activeItem')\n }\n\n\n}\nconst editDate = (count) => {\n if (count === \"up\" && daysInMonth.value < 28) {\n if (daysInMonth.value > 8) {\n inputWidth.value = true\n }\n daysInMonth.value++\n }\n else if (daysInMonth.value > 1) {\n if (daysInMonth.value < 11) {\n inputWidth.value = false\n }\n daysInMonth.value--\n }\n}\nconst currentday = (day, event) => {\n event.target.classList.toggle('activeItem')\n}\nconst adjustWidth = () => {\n\n if (!regex.test(daysInMonth.value)) {\n daysInMonth.value = '28';\n }\n if (daysInMonth.value > 8) {\n inputWidth.value = true\n }\n else inputWidth.value = false\n}\nconst addNewMail = () => {\n if (newMail.value.mail != '') {\n mailList.value.push({ 'mail': newMail.value.mail, readonly: true, valid: true })\n newMail.value = { 'mail': '', 'valid': true }\n }\n\n}\nconst handleActivate = () => {\n if (!active.value) {\n active.value = true\n activatedString.value = 'Deactivate'\n } else {\n active.value = false\n activatedString.value = 'Activate'\n }\n}\nconst handleReadonly = (item) => {\n mailList.value.forEach(element => {\n element.readonly = true\n });\n item.readonly = !item.readonly\n}\nconst handleMailinput = (e, mail) => {\n const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$/;\n const newEmail = e.target.value;\n if (emailRegex.test(newEmail) || newEmail === '') {\n mailList.value.forEach(element => {\n if (element.mail === mail) {\n element.mail = newEmail\n element.valid = true\n }\n });\n if (mail === undefined) {\n newMail.value.valid = true\n\n\n }\n } else {\n mailList.value.forEach(element => {\n if (element.mail === mail) {\n element.valid = false\n }\n });\n if (mail === undefined) {\n newMail.value.valid = false\n\n\n }\n }\n\n}\nconst handleDelete = (mail) => {\n let indexToDelete = -1; // Variable zum Speichern des Index\n\n mailList.value.forEach((element, index) => {\n if (element.mail === mail) {\n indexToDelete = index; // Speichere den Index, wenn die Bedingung erfüllt ist\n }\n });\n\n // Wenn ein gültiger Index gefunden wurde, lösche das Element\n if (indexToDelete !== -1) {\n mailList.value.splice(indexToDelete, 1);\n }\n}\n</script>\n<style scoped>\n.errormsg {\n color: red;\n font-size: 10px;\n}\n\n.activeChoiceButton {\n background-color: var(--primary);\n color: white;\n\n &:active {\n background-color: #3E6CD5 !important;\n }\n\n &:focus {\n outline: none;\n background-color: #3E6CD5;\n }\n\n &:focus-visible {\n outline: none;\n background-color: #3E6CD5;\n }\n}\n\n.blur {\n opacity: 0.3;\n}\n\n.mailItems {\n input {\n outline: none;\n background: none;\n border: none;\n width: 20rem;\n }\n}\n\n.invalidNewMail {\n\n border-radius: 2px;\n border: 2px solid rgba(255, 0, 0, 0.336);\n\n &:focus {\n border-radius: 2px;\n box-shadow: 0 0 0 0.1rem rgba(255, 0, 0, 0.774);\n border: 1px solid rgba(255, 0, 0, 0.336);\n }\n\n &:focus-visible {\n outline: 0;\n border-radius: 2px;\n box-shadow: 0 0 0 0.1rem rgba(255, 0, 0, 0.774);\n border: 1px solid rgba(255, 0, 0, 0.336);\n }\n}\n\n.editable {\n transition: all 200ms ease-in-out;\n padding-left: 0.5rem;\n border-bottom: 2px solid var(--primary) !important;\n}\n\n.invalid {\n border-bottom: 1px solid red !important;\n}\n\n.caretButtons {\n all: unset;\n cursor: pointer;\n}\n\n.caretWrap {\n display: contents;\n\n}\n\n.actionWrapper {\n display: flex;\n flex-direction: row-reverse;\n\n button {\n margin-left: 1rem;\n }\n}\n\ninput[type=\"range\"] {\n width: 100%;\n}\n\n.mqaWrapper {\n margin: 3rem 0;\n}\n\ntable {\n margin-top: 1rem;\n min-width: 50%;\n}\n\nth {\n border-bottom: 1px solid lightgray;\n}\n\ntd {\n display: flex;\n justify-content: space-between;\n padding: 1rem 0;\n}\n\n.daypicker {\n padding: 1rem;\n border: 1px solid lightgray;\n border-radius: 15px;\n\n input {\n width: 13px;\n border: none;\n background-color: unset;\n }\n\n}\n\n.dynamicWidth {\n width: 22px !important;\n}\n\n.activeItem {\n background-color: var(--primary);\n color: white;\n}\n\n.weekdays {\n border: 1px solid lightgray;\n border-radius: 15px;\n margin: 1rem 0;\n overflow: hidden;\n\n .dayButtons {\n border: none;\n display: inline-block;\n text-align: center;\n flex-direction: row;\n min-width: 60px;\n padding: 1rem;\n border-right: 1px solid lightgray;\n cursor: pointer;\n\n &:focus-visible {\n outline: unset;\n background-color: #3E6CD5;\n color: white;\n }\n\n &:hover {\n background-color: #3E6CD5;\n color: white;\n }\n }\n\n span:last-child button {\n border: none;\n }\n}\n\n.mqaWrapper {\n padding: 1rem;\n background-color: #FBFBFB;\n}\n\nbutton {\n background-color: unset;\n border: 1px solid var(--primary);\n color: black;\n\n &:hover {\n background-color: #3E6CD5;\n color: white;\n }\n}\n\nbutton,\nspan {\n transition: all 100ms ease-in-out;\n}\n</style>"],"names":["monthly","ref","weekly","newMail","mailButtonWrap","activatedString","inputWidth","active","mailList","week","daysInMonth","value","regex","onClickOutside","event","element","resetWeekdays","arr","index","editDate","count","currentday","day","adjustWidth","addNewMail","handleActivate","handleReadonly","item","handleMailinput","e","mail","emailRegex","newEmail","handleDelete","indexToDelete"],"mappings":"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"}
@@ -0,0 +1,5 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
5
+ //# sourceMappingURL=CatalogueMQA.vue2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CatalogueMQA.vue2.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -124,11 +124,11 @@ declare const _default: import('vue').DefineComponent<{}, {
124
124
  isLocatedOnAuthorizedDatasetPage(): any;
125
125
  isLocatedOnAuthorizedCatalogPage(): boolean;
126
126
  getUserData: import('vuex').Computed;
127
- getTitle: import('vuex').Computed;
128
- getDescription: import('vuex').Computed;
129
127
  getCatalog: import('vuex').Computed;
130
128
  getLoading: import('vuex').Computed;
129
+ getDescription: import('vuex').Computed;
131
130
  getID: import('vuex').Computed;
131
+ getTitle: import('vuex').Computed;
132
132
  }, {
133
133
  setupKeycloakWatcher(): void;
134
134
  handleConfirm(action: any, argsObj: any, { successMessage, errorMessage }: {