Skip to content

Commit

Permalink
chore: use cdh-vue-lib 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tymees committed Oct 20, 2023
1 parent 0854871 commit 3b14659
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion assets/vue/uu-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": "vite preview"
},
"dependencies": {
"cdh-vue-lib": "git+https://github.com/CentreForDigitalHumanities/Vue-lib.git#v0.2.0"
"cdh-vue-lib": "git+https://github.com/CentreForDigitalHumanities/Vue-lib.git#v0.2.2"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.3.4",
Expand Down
6 changes: 3 additions & 3 deletions assets/vue/uu-list/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ bootstrap@5.3.1:
resolved "https://registry.yarnpkg.com/bootstrap/-/bootstrap-5.3.1.tgz#8ca07040ad15d7f75891d1504cf14c5dedfb1cfe"
integrity sha512-jzwza3Yagduci2x0rr9MeFSORjcHpt0lRZukZPZQJT1Dth5qzV7XcgGqYzi39KGAVYR8QEDVoO0ubFKOxzMG+g==

"cdh-vue-lib@git+https://github.com/CentreForDigitalHumanities/Vue-lib.git#v0.2.0":
version "0.2.0"
resolved "git+https://github.com/CentreForDigitalHumanities/Vue-lib.git#844da7418fced8fa6702656de0e9693ff3bcfc69"
"cdh-vue-lib@git+https://github.com/CentreForDigitalHumanities/Vue-lib.git#v0.2.2":
version "0.2.2"
resolved "git+https://github.com/CentreForDigitalHumanities/Vue-lib.git#00025fd15143fdfdd3131d927b64cf0c2112aa73"
dependencies:
uu-bootstrap "git+ssh://git@github.com/DH-IT-Portal-Development/bootstrap-theme.git#1.5.0-alpha.0"
uuid "^9.0.0"
Expand Down
30 changes: 15 additions & 15 deletions src/cdh/vue3/static/cdh.vue3/components/uu-list/UUList.iife.js
Original file line number Diff line number Diff line change
Expand Up @@ -5536,9 +5536,9 @@ ${codeFrame}` : message);
setup(i) {
const t2 = i, o = vue.ref(t2.config.pageSize), n = vue.ref(1), e = vue.ref(""), l = vue.ref("id"), a = vue.ref(true);
function u() {
var f;
var m;
let p = {};
return (f = t2.config.filters) == null || f.forEach(($) => {
return (m = t2.config.filters) == null || m.forEach(($) => {
var O;
if ($.initial) {
p[$.field] = $.initial;
Expand All @@ -5562,14 +5562,14 @@ ${codeFrame}` : message);
const E = vue.computed(() => {
let p = [];
p.push("page_size=" + encodeURIComponent(o.value));
for (const [f, $] of Object.entries(_.value))
for (const [m, $] of Object.entries(_.value))
$ != null && (typeof $ == "object" ? $.forEach(
(O) => p.push(f + "=" + encodeURIComponent(O))
) : p.push(f + "=" + encodeURIComponent($)));
(O) => p.push(m + "=" + encodeURIComponent(O))
) : p.push(m + "=" + encodeURIComponent($)));
return e.value && p.push("search=" + encodeURIComponent(e.value)), p.push("ordering=" + encodeURIComponent(l.value)), n.value = 1, p;
}), P = vue.computed(() => {
let p = E.value, f = "page=" + encodeURIComponent(n.value);
return p.length !== 0 && (f = "&" + f), "?" + p.join("&") + f;
let p = E.value, m = "page=" + encodeURIComponent(n.value);
return p.length !== 0 && (m = "&" + m), "?" + p.join("&") + m;
}), D = vue.computed(() => {
let p = new URL(window.location.protocol + "//" + window.location.host);
return p.pathname = t2.config.dataUri, p.search = P.value, console.log(p.toString()), p.toString();
Expand All @@ -5580,16 +5580,16 @@ ${codeFrame}` : message);
const y = vue.ref(null);
function F() {
y.value && y.value.abort(), y.value = new AbortController(), a.value = true, fetch(D.value, { signal: y.value.signal }).then((p) => {
p.json().then((f) => {
b.value = f, a.value = false, y.value = null;
p.json().then((m) => {
b.value = m, a.value = false, m.ordering && (l.value = m.ordering), y.value = null;
});
}).catch((p) => {
console.log(p);
});
}
return vue.onMounted(() => {
F();
}), (p, f) => {
}), (p, m) => {
var $, O, Z;
return vue.openBlock(), vue.createBlock(ct, {
"is-loading": a.value,
Expand All @@ -5607,11 +5607,11 @@ ${codeFrame}` : message);
filters: p.config.filters ?? [],
"filter-values": _.value,
container: p.config.container,
"onUpdate:search": f[0] || (f[0] = (C) => e.value = C),
"onUpdate:currentSort": f[1] || (f[1] = (C) => l.value = C),
"onUpdate:pageSize": f[2] || (f[2] = (C) => o.value = C),
"onUpdate:currentPage": f[3] || (f[3] = (C) => n.value = C),
"onUpdate:filterValues": f[4] || (f[4] = (C) => _.value = C)
"onUpdate:search": m[0] || (m[0] = (C) => e.value = C),
"onUpdate:currentSort": m[1] || (m[1] = (C) => l.value = C),
"onUpdate:pageSize": m[2] || (m[2] = (C) => o.value = C),
"onUpdate:currentPage": m[3] || (m[3] = (C) => n.value = C),
"onUpdate:filterValues": m[4] || (m[4] = (C) => _.value = C)
}, {
data: vue.withCtx(({ data: C, isLoading: oe }) => [
vue.createVNode(ne, {
Expand Down

0 comments on commit 3b14659

Please sign in to comment.