@iamproperty/components 5.3.0-beta2 → 5.3.0-beta3
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/assets/js/components/accordion/accordion.component.min.js +1 -1
- package/assets/js/components/actionbar/actionbar.component.min.js +1 -1
- package/assets/js/components/address-lookup/address-lookup.component.min.js +1 -1
- package/assets/js/components/applied-filters/applied-filters.component.min.js +1 -1
- package/assets/js/components/card/card.component.min.js +1 -1
- package/assets/js/components/collapsible-side/collapsible-side.component.min.js +1 -1
- package/assets/js/components/fileupload/fileupload.component.min.js +1 -1
- package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
- package/assets/js/components/header/header.component.min.js +1 -1
- package/assets/js/components/nav/nav.component.min.js +1 -1
- package/assets/js/components/notification/notification.component.min.js +1 -1
- package/assets/js/components/pagination/pagination.component.min.js +1 -1
- package/assets/js/components/search/search.component.min.js +1 -1
- package/assets/js/components/table/table.component.min.js +1 -1
- package/assets/js/components/tabs/tabs.component.min.js +1 -1
- package/assets/js/dynamic.min.js +1 -1
- package/assets/js/scripts.bundle.js +1 -1
- package/assets/js/scripts.bundle.min.js +1 -1
- package/dist/components.es.js +825 -1335
- package/dist/components.umd.js +134 -148
- package/package.json +1 -1
- package/src/components/Card/Card.vue +1 -1
- package/src/components/Table/Table.vue +17 -7
package/dist/components.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
for (const [
|
|
5
|
-
|
|
6
|
-
return
|
|
7
|
-
},
|
|
1
|
+
import { openBlock as r, createElementBlock as l, normalizeClass as _, createElementVNode as c, toDisplayString as w, createCommentVNode as b, Fragment as x, renderList as L, renderSlot as f, withDirectives as T, mergeProps as A, vModelDynamic as H, vModelText as D, vModelSelect as F, createTextVNode as V, resolveComponent as M, createVNode as k, withModifiers as O } from "vue";
|
|
2
|
+
const p = (t, a) => {
|
|
3
|
+
const e = t.__vccOpts || t;
|
|
4
|
+
for (const [s, o] of a)
|
|
5
|
+
e[s] = o;
|
|
6
|
+
return e;
|
|
7
|
+
}, B = {
|
|
8
8
|
name: "Logo",
|
|
9
9
|
props: {
|
|
10
10
|
id: {
|
|
@@ -29,652 +29,26 @@ const y = (e, a) => {
|
|
|
29
29
|
return "brand brand--" + this.id;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
},
|
|
33
|
-
function
|
|
34
|
-
return
|
|
35
|
-
class:
|
|
32
|
+
}, U = ["xlink:href"], W = ["innerHTML"];
|
|
33
|
+
function K(t, a, e, s, o, n) {
|
|
34
|
+
return r(), l("div", {
|
|
35
|
+
class: _(n.className)
|
|
36
36
|
}, [
|
|
37
|
-
(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"xlink:href":
|
|
41
|
-
}, null, 8,
|
|
37
|
+
(r(), l("svg", null, [
|
|
38
|
+
c("title", null, "iam " + w(e.id), 1),
|
|
39
|
+
c("use", {
|
|
40
|
+
"xlink:href": e.path + n.src
|
|
41
|
+
}, null, 8, U)
|
|
42
42
|
])),
|
|
43
|
-
|
|
43
|
+
e.desc ? (r(), l("span", {
|
|
44
44
|
key: 0,
|
|
45
|
-
innerHTML:
|
|
46
|
-
}, null, 8,
|
|
45
|
+
innerHTML: e.desc
|
|
46
|
+
}, null, 8, W)) : b("", !0)
|
|
47
47
|
], 2);
|
|
48
48
|
}
|
|
49
|
-
const
|
|
50
|
-
return
|
|
51
|
-
|
|
52
|
-
}, At = (e, a) => String(e).padStart(a, "0"), xt = (e) => e.charAt(0).toUpperCase() + e.slice(1), C = (e, a, t) => a.split(/[\.\[\]\'\"]/).filter((i) => i).reduce((i, r) => i ? i[r] : t, e);
|
|
53
|
-
var Lt = globalThis && globalThis.__awaiter || function(e, a, t, i) {
|
|
54
|
-
function r(o) {
|
|
55
|
-
return o instanceof t ? o : new t(function(s) {
|
|
56
|
-
s(o);
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
return new (t || (t = Promise))(function(o, s) {
|
|
60
|
-
function l(u) {
|
|
61
|
-
try {
|
|
62
|
-
n(i.next(u));
|
|
63
|
-
} catch (c) {
|
|
64
|
-
s(c);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
function d(u) {
|
|
68
|
-
try {
|
|
69
|
-
n(i.throw(u));
|
|
70
|
-
} catch (c) {
|
|
71
|
-
s(c);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
function n(u) {
|
|
75
|
-
u.done ? o(u.value) : r(u.value).then(l, d);
|
|
76
|
-
}
|
|
77
|
-
n((i = i.apply(e, a || [])).next());
|
|
78
|
-
});
|
|
79
|
-
};
|
|
80
|
-
const et = (e) => {
|
|
81
|
-
const a = Array.from(e.querySelectorAll("thead th"));
|
|
82
|
-
Array.from(e.querySelectorAll("tbody tr")).forEach((i, r) => {
|
|
83
|
-
const o = Array.from(i.querySelectorAll("th, td")), s = ["0", "low", "medium", "high", "unknown", "n/a", "pending", "verified", "due", "overdue", "incomplete", "complete", "completed", "approval required", "upcoming", "requires approval", "to do", "on track", "not started", "warning", "error"];
|
|
84
|
-
o.forEach((l, d) => {
|
|
85
|
-
const n = a[d];
|
|
86
|
-
if (typeof n < "u") {
|
|
87
|
-
let u = document.createElement("div");
|
|
88
|
-
u.innerHTML = n.innerHTML;
|
|
89
|
-
let c = u.textContent || u.innerText || "";
|
|
90
|
-
l.setAttribute("data-label", c), n.hasAttribute("data-td-class") && l.setAttribute("class", n.getAttribute("data-td-class")), n.hasAttribute("data-format") && (l.setAttribute("data-format", n.getAttribute("data-format")), l.innerHTML = Q(n.getAttribute("data-format"), l.textContent.trim())), s.includes(l.textContent.trim().toLowerCase()) && l.setAttribute("data-content", l.textContent.trim().toLowerCase());
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
}, St = (e) => {
|
|
95
|
-
let a = 0;
|
|
96
|
-
return Array.from(e.querySelectorAll("tbody tr")).forEach((t, i) => {
|
|
97
|
-
let r = window.getComputedStyle(document.querySelector("html")), o = t.querySelector(":scope > *:last-child > *:first-child");
|
|
98
|
-
if (o) {
|
|
99
|
-
o.classList.add("text-nowrap");
|
|
100
|
-
let s = o.offsetWidth / parseFloat(r.fontSize);
|
|
101
|
-
s += 1.7, a = a > s ? a : s;
|
|
102
|
-
}
|
|
103
|
-
}), a;
|
|
104
|
-
}, $t = (e, a) => {
|
|
105
|
-
if (a.classList.contains("table--fullwidth") && !a.hasAttribute("data-expandable") || e.querySelectorAll("thead tr th").length < 4 && !a.hasAttribute("data-expandable"))
|
|
106
|
-
return !1;
|
|
107
|
-
Array.from(e.querySelectorAll("thead tr")).forEach((t, i) => {
|
|
108
|
-
e.querySelectorAll("thead tr th.expand-button-heading").length || t.insertAdjacentHTML("afterbegin", '<th class="th--fixed expand-button-heading"></th>');
|
|
109
|
-
}), Array.from(e.querySelectorAll("tbody tr")).forEach((t, i) => {
|
|
110
|
-
const r = t.getAttribute("data-view") === "full" ? "aria-expanded" : "";
|
|
111
|
-
t.insertAdjacentHTML("afterbegin", `<td class="td--fixed td--expand"><button class="btn btn-compact btn-secondary" data-expand-button ${r}>Expand</button></td>`);
|
|
112
|
-
});
|
|
113
|
-
}, kt = (e) => {
|
|
114
|
-
e.addEventListener("click", (a) => {
|
|
115
|
-
if (a && a.target instanceof HTMLElement && a.target.closest("[data-expand-button]")) {
|
|
116
|
-
let t = a.target.closest("[data-expand-button]"), i = t.closest("tr");
|
|
117
|
-
t.toggleAttribute("aria-expanded"), i.getAttribute("data-view") == "full" ? i.setAttribute("data-view", "default") : i.setAttribute("data-view", "full"), t.blur();
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
}, at = (e, a) => {
|
|
121
|
-
let t = a.querySelector("[data-search]");
|
|
122
|
-
if (!t)
|
|
123
|
-
return !1;
|
|
124
|
-
const i = t.getAttribute("id"), r = t.getAttribute("data-search").split(",");
|
|
125
|
-
let o = t.parentNode, s = {};
|
|
126
|
-
r.forEach((l, d) => {
|
|
127
|
-
Array.from(e.querySelectorAll('td[data-label="' + l.trim() + '"]')).forEach((n, u) => {
|
|
128
|
-
n.querySelector(".td__content") ? s[n.querySelector(".td__content").textContent] = n.querySelector(".td__content").textContent : s[n.textContent] = n.textContent;
|
|
129
|
-
});
|
|
130
|
-
}), t.setAttribute("list", `${i}_list`), t.setAttribute("autocomplete", "off"), o.querySelector("datalist") || (o.innerHTML += `<datalist id="${i}_list"></datalist>`), o.querySelector("datalist").innerHTML = `${Object.keys(s).map((l) => `<option value="${l}"></option>`).join("")}`;
|
|
131
|
-
}, qt = (e, a, t, i, r) => {
|
|
132
|
-
var o;
|
|
133
|
-
let s = function(n, u = !1) {
|
|
134
|
-
if (a.classList.contains("processing"))
|
|
135
|
-
return !1;
|
|
136
|
-
if (n.type == "submit" && (a.classList.add("processing"), Array.from(a.querySelectorAll("[data-duplicate]")).forEach((c, p) => {
|
|
137
|
-
const g = c.getAttribute("data-duplicate"), f = document.getElementById(g), A = document.querySelector(`[for="${g}"] iam-card`);
|
|
138
|
-
if (f.checked != c.checked)
|
|
139
|
-
if (A) {
|
|
140
|
-
let k = new Event("click");
|
|
141
|
-
A.dispatchEvent(k);
|
|
142
|
-
} else
|
|
143
|
-
f.checked = c.checked;
|
|
144
|
-
}), a.classList.remove("processing")), a.hasAttribute("data-ajax")) {
|
|
145
|
-
if (!u) {
|
|
146
|
-
let c = a.querySelector("[data-pagination]");
|
|
147
|
-
c.value = 1, i.setAttribute("data-page", 1);
|
|
148
|
-
}
|
|
149
|
-
nt(e, a, t, i);
|
|
150
|
-
} else
|
|
151
|
-
a.hasAttribute("data-submit") ? a.submit() : (G(e, a, i), B(e, a));
|
|
152
|
-
if (a.hasAttribute("data-ajax-post")) {
|
|
153
|
-
let c = new FormData(a), p = new URLSearchParams(c).toString();
|
|
154
|
-
const g = new XMLHttpRequest();
|
|
155
|
-
g.open("GET", `${window.location.href}?ajax=true&${p}`), g.send();
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
a.addEventListener("keyup", (n) => {
|
|
159
|
-
clearTimeout(o), n && n.target instanceof HTMLElement && n.target.closest("[data-search]") && (o = setTimeout(function() {
|
|
160
|
-
s(n);
|
|
161
|
-
}, 500));
|
|
162
|
-
}), a.addEventListener("change", (n) => {
|
|
163
|
-
clearTimeout(o), n && n.target instanceof HTMLElement && n.target.closest("[data-sort]") && (a.hasAttribute("data-submit") || Z(e, a, r), s(n)), n && n.target instanceof HTMLElement && n.target.closest("[data-search]") && s(n), n && n.target instanceof HTMLElement && n.target.closest("[data-filter][data-no-ajax]") ? (G(e, a, i), B(e, a)) : (n && n.target instanceof HTMLElement && n.target.closest("[data-filter]") && n.target.closest("form .dialog__wrapper > dialog") || n && n.target instanceof HTMLElement && n.target.closest("[data-filter]") && !n.target.closest("form dialog")) && s(n), n && n.target instanceof HTMLElement && n.target.closest("[data-show]") && s(n), n && n.target instanceof HTMLElement && n.target.closest("[data-mimic]") && s(n);
|
|
164
|
-
}), a.addEventListener("click", (n) => {
|
|
165
|
-
if (clearTimeout(o), n && n.target instanceof HTMLElement && n.target.closest('dialog button:not([type="button"])') && n.target.closest('dialog button:not([type="button"])').closest("dialog").close(), n && n.target instanceof HTMLElement && n.target.closest(".dialog__close") && (n.preventDefault(), n.stopPropagation()), n && n.target instanceof HTMLElement && n.target.closest("[data-clear]")) {
|
|
166
|
-
a.classList.add("processing"), Array.from(a.querySelectorAll(".applied-filters")).forEach((c, p) => {
|
|
167
|
-
c.innerHTML = "";
|
|
168
|
-
});
|
|
169
|
-
let u = a.elements;
|
|
170
|
-
for (let c = 0; c < u.length; c++)
|
|
171
|
-
switch (u[c].type.toLowerCase() ? u[c].type.toLowerCase() : "text") {
|
|
172
|
-
case "text":
|
|
173
|
-
case "password":
|
|
174
|
-
case "textarea":
|
|
175
|
-
u[c].value = "";
|
|
176
|
-
break;
|
|
177
|
-
case "radio":
|
|
178
|
-
case "checkbox":
|
|
179
|
-
if (u[c].checked) {
|
|
180
|
-
let g = u[c], f = g.getAttribute("id"), A = document.querySelector(`[for="${f}"`);
|
|
181
|
-
if (A.querySelector("iam-card")) {
|
|
182
|
-
let k = A.querySelector("iam-card"), E = new Event("click");
|
|
183
|
-
k.dispatchEvent(E);
|
|
184
|
-
}
|
|
185
|
-
g.checked = !1;
|
|
186
|
-
}
|
|
187
|
-
break;
|
|
188
|
-
case "select-one":
|
|
189
|
-
case "select-multi":
|
|
190
|
-
u[c].selectedIndex = -1;
|
|
191
|
-
break;
|
|
192
|
-
}
|
|
193
|
-
a.classList.remove("processing"), a.hasAttribute("data-submit") || Z(e, a, r), s(n);
|
|
194
|
-
}
|
|
195
|
-
}), a.addEventListener("submit", (n) => {
|
|
196
|
-
clearTimeout(o), a.hasAttribute("data-submit") || n.preventDefault(), s(n);
|
|
197
|
-
}), a.addEventListener("force", (n) => {
|
|
198
|
-
s(n);
|
|
199
|
-
}), a.addEventListener("paginate", (n) => {
|
|
200
|
-
s(n, !0);
|
|
201
|
-
});
|
|
202
|
-
let l = [], d = [];
|
|
203
|
-
Array.from(a.querySelectorAll("[data-mimic]")).forEach((n, u) => {
|
|
204
|
-
let c = n.getAttribute("data-mimic");
|
|
205
|
-
Array.from(document.querySelectorAll(`[name="${c}"]`)).forEach((p, g) => {
|
|
206
|
-
let f = p.closest("form");
|
|
207
|
-
l.includes(f) || l.push(f), d.includes(c) || d.push(c);
|
|
208
|
-
});
|
|
209
|
-
}), l.forEach((n, u) => {
|
|
210
|
-
const c = function() {
|
|
211
|
-
let p = [], g = new FormData(n);
|
|
212
|
-
for (const [f, A] of g)
|
|
213
|
-
document.querySelector(`[data-mimic="${f}"]`) && !p.includes(f) ? (p.push(f), document.querySelector(`[data-mimic="${f}"]`).value = A) : document.querySelector(`[data-mimic="${f}"]`) && (document.querySelector(`[data-mimic="${f}"]`).value += "," + A);
|
|
214
|
-
for (const f of p) {
|
|
215
|
-
const A = new Event("force");
|
|
216
|
-
a.dispatchEvent(A);
|
|
217
|
-
}
|
|
218
|
-
for (const f of d)
|
|
219
|
-
if (!g.has(f) && n.querySelector(`[name="${f}"]`)) {
|
|
220
|
-
document.querySelector(`[data-mimic="${f}"]`).value = "";
|
|
221
|
-
const A = new Event("force");
|
|
222
|
-
a.dispatchEvent(A);
|
|
223
|
-
}
|
|
224
|
-
};
|
|
225
|
-
n.addEventListener("force", (p) => {
|
|
226
|
-
c();
|
|
227
|
-
}), n.addEventListener("change", (p) => {
|
|
228
|
-
c();
|
|
229
|
-
});
|
|
230
|
-
});
|
|
231
|
-
}, Z = (e, a, t) => {
|
|
232
|
-
if (a.getAttribute("data-ajax"))
|
|
233
|
-
return !1;
|
|
234
|
-
let i = e.querySelector("tbody"), r = a.querySelector("[data-sort]"), o = r.querySelector(`option:nth-child(${r.selectedIndex + 1})`), s = o.getAttribute("data-sort"), l = o.getAttribute("data-order"), d = o.getAttribute("data-format");
|
|
235
|
-
if (!s)
|
|
236
|
-
return i.innerHTML = t.innerHTML, et(e), !1;
|
|
237
|
-
let n = [];
|
|
238
|
-
["asc", "desc", "descending"].includes(l) || (n = l.split(","));
|
|
239
|
-
let u = [];
|
|
240
|
-
Array.from(i.querySelectorAll("tr")).forEach((p, g) => {
|
|
241
|
-
let f = p.querySelector('td[data-label="' + s + '"], th[data-label="' + s + '"]').textContent.trim();
|
|
242
|
-
p.querySelector('[data-label="' + s + '"] .td__content') && (f = p.querySelector('[data-label="' + s + '"] .td__content').textContent.trim()), n.length && n.includes(f) && (f = n.indexOf(f)), _t(f) && (f = At(f, 10)), d && d == "date" && (f = new Date(f));
|
|
243
|
-
const A = {
|
|
244
|
-
index: f,
|
|
245
|
-
row: p
|
|
246
|
-
};
|
|
247
|
-
u.push(A);
|
|
248
|
-
}), u.sort((p, g) => p.index > g.index ? 1 : -1), (l == "descending" || l == "desc") && (u = u.reverse());
|
|
249
|
-
let c = "";
|
|
250
|
-
u.forEach((p, g) => {
|
|
251
|
-
c += p.row.outerHTML;
|
|
252
|
-
}), i.innerHTML = c;
|
|
253
|
-
}, G = (e, a, t) => {
|
|
254
|
-
e.classList.remove("table--filtered");
|
|
255
|
-
let i = st(a), r = [], o = 0, s = a.querySelector("[data-pagination]") ? parseInt(a.querySelector("[data-pagination]").value) : 1, l = a.querySelector("[data-show]") ? parseInt(a.querySelector("[data-show]").value) : 15;
|
|
256
|
-
if (Array.from(e.querySelectorAll("tbody tr")).forEach((n, u) => {
|
|
257
|
-
n.classList.remove("filtered"), n.classList.remove("filtered--matched"), n.classList.remove("filtered--show"), n.removeAttribute("data-filtered-by");
|
|
258
|
-
}), a.querySelector("[data-search]")) {
|
|
259
|
-
let n = a.querySelector("[data-search]");
|
|
260
|
-
a.querySelector("[data-search]").getAttribute("data-search").split(",").forEach((c, p) => {
|
|
261
|
-
r.push({ column: `${c.trim()}`, value: `${n.value}` });
|
|
262
|
-
});
|
|
263
|
-
}
|
|
264
|
-
Array.from(a.querySelectorAll("[data-filter-count]")).forEach((n, u) => {
|
|
265
|
-
n.innerHTML = "", n.parentNode.classList.remove("hover");
|
|
266
|
-
});
|
|
267
|
-
let d = 0;
|
|
268
|
-
Object.values(i).forEach((n, u) => {
|
|
269
|
-
typeof n == "object" && Object.values(n).length ? d += Object.values(n).length : d++;
|
|
270
|
-
}), d && Array.from(a.querySelectorAll("[data-filter-count]")).forEach((n, u) => {
|
|
271
|
-
n.innerHTML += `(${d})`, n.parentNode.classList.add("hover");
|
|
272
|
-
}), e.classList.add("table--filtered");
|
|
273
|
-
for (const [n, u] of Object.entries(i))
|
|
274
|
-
Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((c, p) => {
|
|
275
|
-
let g = !1;
|
|
276
|
-
u.forEach((f, A) => {
|
|
277
|
-
let k = c.querySelector(`[data-label="${n}"]`);
|
|
278
|
-
if (f && f == "$today")
|
|
279
|
-
f = Q("date", /* @__PURE__ */ new Date());
|
|
280
|
-
else if (f && f == "$yesterday") {
|
|
281
|
-
let x = /* @__PURE__ */ new Date();
|
|
282
|
-
x.setDate(x.getDate() - 1), f = Q("date", x);
|
|
283
|
-
} else if (f && (f == "$thisWeek" || f == "$lastWeek")) {
|
|
284
|
-
let x = /* @__PURE__ */ new Date(), L = new Date(x.setDate(x.getDate() - (x.getDay() - 1))), v = new Date(x.setDate(x.getDate() - x.getDay() + 7)), q = new Date(k.textContent.toLowerCase());
|
|
285
|
-
if (x.setHours(0, 0, 0, 0), L.setHours(0, 0, 0, 0), v.setHours(0, 0, 0, 0), q.setHours(0, 0, 0, 0), f == "$thisWeek")
|
|
286
|
-
g = q >= L && q <= v;
|
|
287
|
-
else {
|
|
288
|
-
let T = new Date(L.setDate(L.getDate() - 7)), P = new Date(v.setDate(v.getDate() - 7));
|
|
289
|
-
T.setHours(0, 0, 0, 0), P.setHours(0, 0, 0, 0), g = q >= T && q <= P;
|
|
290
|
-
}
|
|
291
|
-
} else if (f && f == "$thisMonth") {
|
|
292
|
-
let x = /* @__PURE__ */ new Date(), L = x.getFullYear(), v = x.getMonth();
|
|
293
|
-
var E = new Date(L, v, 1), I = new Date(L, v + 1, 0);
|
|
294
|
-
let q = new Date(k.textContent.toLowerCase());
|
|
295
|
-
E.setHours(0, 0, 0, 0), I.setHours(0, 0, 0, 0), q.setHours(0, 0, 0, 0), g = q >= E && q <= I;
|
|
296
|
-
} else if (f && f == "$lastMonth") {
|
|
297
|
-
let x = /* @__PURE__ */ new Date(), L = x.getFullYear(), v = x.getMonth();
|
|
298
|
-
var O = new Date(L, v - 1, 1), H = new Date(L, v, 0);
|
|
299
|
-
let q = new Date(k.textContent.toLowerCase());
|
|
300
|
-
O.setHours(0, 0, 0, 0), H.setHours(0, 0, 0, 0), q.setHours(0, 0, 0, 0), g = q >= O && q <= H;
|
|
301
|
-
}
|
|
302
|
-
k && k.textContent.toLowerCase().includes(f.toLowerCase()) && (g = !0);
|
|
303
|
-
}), g || (c.classList.add("filtered"), c.setAttribute("data-filtered-by", n));
|
|
304
|
-
});
|
|
305
|
-
Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((n, u) => {
|
|
306
|
-
let c = !(r.length > 0 && r[0].value.length >= 3);
|
|
307
|
-
r.forEach((p, g) => {
|
|
308
|
-
let f = n.querySelector(`[data-label="${p.column}"]`);
|
|
309
|
-
f && p.value.length >= 3 && f.textContent.toLowerCase().includes(p.value.toLowerCase()) && (c = !0);
|
|
310
|
-
}), c || n.classList.add("filtered");
|
|
311
|
-
}), Array.from(e.querySelectorAll("tbody tr:not(.filtered")).forEach((n, u) => {
|
|
312
|
-
o++, n.classList.add("filtered--matched"), Math.ceil(o / l) == parseInt(s) && n.classList.add("filtered--show");
|
|
313
|
-
}), t && (t.setAttribute("data-total", o), t.setAttribute("data-show", l), t.setAttribute("data-page", s));
|
|
314
|
-
}, B = (e, a, t) => {
|
|
315
|
-
Array.from(a.querySelectorAll("[data-query]")).forEach((r, o) => {
|
|
316
|
-
let s = r.getAttribute("data-query"), l = 0;
|
|
317
|
-
if (s == "total")
|
|
318
|
-
t.hasAttribute("data-total") ? l = t.getAttribute("data-total") : l = (e.classList.contains("table--filtered"), e.querySelectorAll("tbody tr").length);
|
|
319
|
-
else if (!s.includes(" == ") && s.includes(" & ")) {
|
|
320
|
-
let d = s.split(" & "), n = "";
|
|
321
|
-
d.forEach((u) => {
|
|
322
|
-
n += `:not([data-filtered-by="${u}"])`;
|
|
323
|
-
}), l = Array.from(e.querySelectorAll(`tbody tr${n}`)).length;
|
|
324
|
-
} else if (!s.includes(" == "))
|
|
325
|
-
l = Array.from(e.querySelectorAll(`tbody tr:not([data-filtered-by="${s}"])`)).length;
|
|
326
|
-
else if (s.includes(" && ")) {
|
|
327
|
-
let d = s.split(" && ");
|
|
328
|
-
l = Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).filter(function(n) {
|
|
329
|
-
let u = !0;
|
|
330
|
-
for (const [c, p] of Object.entries(d)) {
|
|
331
|
-
let g = p.split(" == ");
|
|
332
|
-
(!n.querySelector(`td[data-label="${g[0]}"]`) || n.querySelector(`td[data-label="${g[0]}"]`).textContent != `${g[1]}`) && (u = !1);
|
|
333
|
-
}
|
|
334
|
-
return u;
|
|
335
|
-
}).length;
|
|
336
|
-
} else {
|
|
337
|
-
let d = s.split(" == ");
|
|
338
|
-
l = Array.from(e.querySelectorAll(`tbody tr.filtered--matched td[data-label="${d[0]}"], tbody tr[data-filtered-by="${d[0]}"] td[data-label="${d[0]}"]`)).filter(function(n) {
|
|
339
|
-
return n.textContent === d[1];
|
|
340
|
-
}).length;
|
|
341
|
-
}
|
|
342
|
-
r.hasAttribute("data-total") ? r.setAttribute("data-total", l) : r.innerHTML = l;
|
|
343
|
-
});
|
|
344
|
-
}, Et = function(e, a, t, i) {
|
|
345
|
-
t.addEventListener("update-page", (r) => {
|
|
346
|
-
let o = a.querySelector("[data-pagination]"), s = r.detail.page;
|
|
347
|
-
if (o.value = s, a.dispatchEvent(new Event("paginate")), i.setAttribute("data-page", s), e.hasAttribute("data-show-history")) {
|
|
348
|
-
const l = new URL(location);
|
|
349
|
-
l.searchParams.set("page", s), history.pushState({ type: "pagination", form: a.getAttribute("id"), page: s }, "", l);
|
|
350
|
-
}
|
|
351
|
-
if (!i.hasAttribute("data-no-scroll")) {
|
|
352
|
-
const d = e.getBoundingClientRect().top + window.pageYOffset + -250;
|
|
353
|
-
window.scrollTo({ top: d, behavior: "smooth" });
|
|
354
|
-
}
|
|
355
|
-
}), t.addEventListener("update-show", (r) => {
|
|
356
|
-
let o = a.querySelector("[data-show]"), s = r.detail.show;
|
|
357
|
-
o.value = s, i.setAttribute("data-show", s), a.dispatchEvent(new Event("submit"));
|
|
358
|
-
});
|
|
359
|
-
}, Tt = (e, a) => {
|
|
360
|
-
if (!e)
|
|
361
|
-
return !1;
|
|
362
|
-
e.addEventListener("click", (t) => {
|
|
363
|
-
Ht(a);
|
|
364
|
-
});
|
|
365
|
-
}, Ht = function(e) {
|
|
366
|
-
for (var a = [], t = e.getElementsByTagName("tr"), i = 0; i < t.length; i++) {
|
|
367
|
-
for (var r = t[i].querySelectorAll("td,th"), o = [], s = 0; s < r.length; s++)
|
|
368
|
-
o.push(`"${r[s].textContent}"`);
|
|
369
|
-
a.push(o.join(","));
|
|
370
|
-
}
|
|
371
|
-
a = a.join(`
|
|
372
|
-
`);
|
|
373
|
-
let l = new Blob([a], {
|
|
374
|
-
type: "text/csv"
|
|
375
|
-
});
|
|
376
|
-
var d = document.createElement("a");
|
|
377
|
-
d.download = "export.csv";
|
|
378
|
-
var n = window.URL.createObjectURL(l);
|
|
379
|
-
d.href = n, d.style.display = "none", document.body.appendChild(d), d.click(), document.body.removeChild(d);
|
|
380
|
-
}, it = function(e, a, t, i) {
|
|
381
|
-
if (et(e), $t(e, i), B(e, a, i), i && i.classList.contains("table--cta")) {
|
|
382
|
-
let o = function() {
|
|
383
|
-
Array.from(e.querySelectorAll("tr")).forEach((s, l) => {
|
|
384
|
-
let d = s.offsetHeight;
|
|
385
|
-
s.style.setProperty("--row-height", `${d}px`);
|
|
386
|
-
});
|
|
387
|
-
};
|
|
388
|
-
const r = St(e);
|
|
389
|
-
i.style.setProperty("--cta-width", `${r}rem`), new ResizeObserver(o).observe(e);
|
|
390
|
-
}
|
|
391
|
-
}, st = function(e) {
|
|
392
|
-
let a = new Object();
|
|
393
|
-
return Array.from(e.querySelectorAll("[data-filter]")).forEach((i, r) => {
|
|
394
|
-
if (!(i.type == "radio" && !i.checked) && !(i.type == "checkbox" && !i.checked) && i && i.value) {
|
|
395
|
-
let o = i.getAttribute("data-filter");
|
|
396
|
-
a[o] || (a[o] = new Array()), a[o].push(i.value);
|
|
397
|
-
}
|
|
398
|
-
}), a;
|
|
399
|
-
}, nt = function(e, a, t, i) {
|
|
400
|
-
return Lt(this, void 0, void 0, function* () {
|
|
401
|
-
let r = new FormData(a), o = new URLSearchParams(r).toString(), s = e.querySelectorAll("thead tr th:not(.expand-button-heading)"), l = e.querySelector("tbody"), d = a.getAttribute("data-ajax");
|
|
402
|
-
i.classList.add("table--loading");
|
|
403
|
-
let n = st(a);
|
|
404
|
-
Array.from(a.querySelectorAll("[data-filter-count]")).forEach((p, g) => {
|
|
405
|
-
p.innerHTML = "", p.parentNode.classList.remove("hover");
|
|
406
|
-
});
|
|
407
|
-
let u = 0;
|
|
408
|
-
Object.values(n).forEach((p, g) => {
|
|
409
|
-
typeof p == "object" && Object.values(p).length ? u += Object.values(p).length : u++;
|
|
410
|
-
}), u && Array.from(a.querySelectorAll("[data-filter-count]")).forEach((p, g) => {
|
|
411
|
-
p.innerHTML += `(${u})`, p.parentNode.classList.add("hover");
|
|
412
|
-
}), window.controller || (window.controller = []), window.controller[d] && window.controller[d].abort(), window.controller[d] = new AbortController();
|
|
413
|
-
const { signal: c } = controller[d];
|
|
414
|
-
t.setAttribute("data-loading", "true"), a.classList.add("processing");
|
|
415
|
-
try {
|
|
416
|
-
yield fetch(d + "?" + o, {
|
|
417
|
-
signal: c,
|
|
418
|
-
method: "get",
|
|
419
|
-
credentials: "same-origin",
|
|
420
|
-
headers: new Headers({
|
|
421
|
-
"Content-Type": "application/json",
|
|
422
|
-
Accept: "application/json",
|
|
423
|
-
"X-Requested-With": "XMLHttpRequest"
|
|
424
|
-
})
|
|
425
|
-
}).then((p) => p.json()).then((p) => {
|
|
426
|
-
let g = a.hasAttribute("data-schema") ? a.getAttribute("data-schema") : "data", f = a.hasAttribute("data-schema-total") ? a.getAttribute("data-schema-total") : "meta.total", A = a.hasAttribute("data-schema-page") ? a.getAttribute("data-schema-page") : "meta.current_page", k = C(p, f, 15), E = C(p, A, 1), I = C(p, g), O = i.hasAttribute("data-empty-msg") ? i.getAttribute("data-empty-msg") : "No results found";
|
|
427
|
-
I ? (l.innerHTML = "", I.forEach((H, x) => {
|
|
428
|
-
var L = document.createElement("tr");
|
|
429
|
-
s.forEach((v, q) => {
|
|
430
|
-
let T = "";
|
|
431
|
-
var P = document.createElement("td");
|
|
432
|
-
if (P.setAttribute("data-label", v.innerText), v.getAttribute("data-output")) {
|
|
433
|
-
var U = v.getAttribute("data-output");
|
|
434
|
-
T = U.replace(new RegExp(/{(.*?)}/, "gm"), function(X) {
|
|
435
|
-
return C(H, X.replace("{", "").replace("}", ""));
|
|
436
|
-
});
|
|
437
|
-
}
|
|
438
|
-
if (v.hasAttribute("data-output-array")) {
|
|
439
|
-
var U = v.getAttribute("data-output");
|
|
440
|
-
let ct = C(H, U.replace("{", "").replace("}", ""));
|
|
441
|
-
T = "", ct.forEach((J, xi) => {
|
|
442
|
-
let ut = v.getAttribute("data-output-array"), F = "";
|
|
443
|
-
if (v.hasAttribute("data-output-array-property") && v.hasAttribute("data-output-array-transform")) {
|
|
444
|
-
const V = C(J, v.getAttribute("data-output-array-property")), mt = JSON.parse(v.getAttribute("data-output-array-transform"))[V];
|
|
445
|
-
F = ut.replace(`{${v.getAttribute("data-output-array-property")}}`, mt);
|
|
446
|
-
}
|
|
447
|
-
F = F.replace(new RegExp(/{(.*?)}/, "gm"), function(V) {
|
|
448
|
-
return C(J, V.replace("{", "").replace("}", ""));
|
|
449
|
-
}), T += F;
|
|
450
|
-
});
|
|
451
|
-
}
|
|
452
|
-
v.hasAttribute("data-transform") && (T = JSON.parse(v.getAttribute("data-transform"))[T], !T && v.hasAttribute("data-default") && (T = v.getAttribute("data-default"))), P.innerHTML = T, L.appendChild(P);
|
|
453
|
-
}), l.appendChild(L);
|
|
454
|
-
}), at(e, a), i.setAttribute("data-total", parseInt(k)), i.setAttribute("data-page", parseInt(E)), it(e, a, t, i), Array.from(a.querySelectorAll("[data-ajax-query]")).forEach((H, x) => {
|
|
455
|
-
let L = C(p, H.getAttribute("data-ajax-query"), "");
|
|
456
|
-
H.hasAttribute("data-total") ? H.setAttribute("data-total", L) : H.innerHTML = L;
|
|
457
|
-
}), parseInt(k) == 0 && (l.innerHTML = `<tr><td colspan="100%"><span>${O}</span></td></tr>`), i.classList.remove("table--loading"), window.dataLayer = window.dataLayer || [], window.dataLayer.push({
|
|
458
|
-
event: "Ajax table loaded",
|
|
459
|
-
url: d,
|
|
460
|
-
formData: o
|
|
461
|
-
})) : l.innerHTML = '<tr><td colspan="100%"><span>Error loading table</span></td></tr>', t.removeAttribute("data-loading"), a.classList.remove("processing");
|
|
462
|
-
});
|
|
463
|
-
} catch (p) {
|
|
464
|
-
console.log(p);
|
|
465
|
-
}
|
|
466
|
-
});
|
|
467
|
-
}, Q = (e, a) => {
|
|
468
|
-
switch (e) {
|
|
469
|
-
case "datetime":
|
|
470
|
-
return new Date(a).toLocaleDateString("en-gb", { weekday: "short", year: "2-digit", month: "long", day: "numeric" }) + " " + new Date(a).toLocaleTimeString("en-gb", { hour: "2-digit", minute: "2-digit" });
|
|
471
|
-
case "date":
|
|
472
|
-
return new Date(a).toLocaleDateString("en-gb", { year: "2-digit", month: "long", day: "numeric" });
|
|
473
|
-
case "capitalise":
|
|
474
|
-
return a = xt(a);
|
|
475
|
-
}
|
|
476
|
-
};
|
|
477
|
-
class Mt extends HTMLElement {
|
|
478
|
-
constructor() {
|
|
479
|
-
super(), this.attachShadow({ mode: "open" });
|
|
480
|
-
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, i = `@import "${a}/css/components/table.css";`, r = `@import "${a}/css/components/table.global.css";`, o = document.createElement("template");
|
|
481
|
-
o.innerHTML = `
|
|
482
|
-
<style>
|
|
483
|
-
@import "${t}";
|
|
484
|
-
${i}
|
|
485
|
-
|
|
486
|
-
:host(.mh-sm){
|
|
487
|
-
max-height: none!important;
|
|
488
|
-
}
|
|
489
|
-
:host(.mh-md){
|
|
490
|
-
max-height: none!important;
|
|
491
|
-
}
|
|
492
|
-
:host(.mh-lg){
|
|
493
|
-
max-height: none!important;
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
497
|
-
</style>
|
|
498
|
-
<slot name="before"></slot>
|
|
499
|
-
<div class="table--cta">
|
|
500
|
-
<div class="table__wrapper">
|
|
501
|
-
<slot></slot>
|
|
502
|
-
</div>
|
|
503
|
-
</div>
|
|
504
|
-
<iam-pagination class="pagination--table" ${this.hasAttribute("data-page") ? `data-page="${this.getAttribute("data-page")}"` : ""} ></iam-pagination>
|
|
505
|
-
`, this.shadowRoot.appendChild(o.content.cloneNode(!0)), document.getElementById("tableExtras") || document.head.insertAdjacentHTML("beforeend", `<style id="tableExtras">${r}</style>`);
|
|
506
|
-
}
|
|
507
|
-
connectedCallback() {
|
|
508
|
-
const a = new URLSearchParams(window.location.search);
|
|
509
|
-
this.hasAttribute("data-total") || this.setAttribute("data-total", this.querySelectorAll("table tbody tr").length), this.hasAttribute("data-page") || this.setAttribute("data-page", a.has("page") ? a.get("page") : 1), this.hasAttribute("data-show") || this.setAttribute("data-show", a.has("show") ? a.get("show") : 15), this.hasAttribute("data-increment") || this.setAttribute("data-increment", this.getAttribute("data-show"));
|
|
510
|
-
let t = this.classList.toString();
|
|
511
|
-
if (t = t.replace("table--cta", ""), t = t.replace("table--loading", ""), this.shadowRoot.querySelector(".table__wrapper").className += ` ${t}`, this.querySelector(".actionbar__sticky") && this.shadowRoot.querySelector(".table__wrapper").classList.add("has-actionbar"), this.table = this.querySelector("table"), this.savedTableBody = this.table.querySelector("tbody").cloneNode(!0), this.pagination = this.shadowRoot.querySelector("iam-pagination"), this.pagination.setAttribute("data-total", this.getAttribute("data-total")), this.pagination.setAttribute("data-page", this.getAttribute("data-page")), this.pagination.setAttribute("data-show", this.getAttribute("data-show")), this.pagination.setAttribute("data-increment", this.getAttribute("data-show")), this.hasAttribute("data-page-jump") && this.pagination.setAttribute("data-page-jump", "true"), this.hasAttribute("data-per-page") && this.pagination.setAttribute("data-per-page", "true"), this.hasAttribute("data-item-count") && this.pagination.setAttribute("data-item-count", "true"), this.hasAttribute("data-loading") && this.pagination.setAttribute("data-loading", "true"), this.classList.contains("table--fullwidth") && this.pagination.setAttribute("data-minimal", "true"), this.classList.contains("table--cta") || this.shadowRoot.querySelector(".table--cta").classList.remove("table--cta"), this.form = document.createElement("form"), this.hasAttribute("data-filterby") ? this.form = document.querySelector(`#${this.getAttribute("data-filterby")}`) : this.table.parentNode.insertBefore(this.form, this.table.nextSibling), this.form.hasAttribute("data-ajax") && this.table.classList.add("table--ajax"), at(this.table, this.form), this.form.querySelector("[data-pagination]") || (this.form.innerHTML += `<input name="page" type="hidden" value="${this.getAttribute("data-page")}" data-pagination="true" />`), this.form.querySelector("[data-show]") || (this.form.innerHTML += `<input name="show" type="hidden" value="${this.getAttribute("data-show")}" data-show="true" />`), kt(this.table), qt(this.table, this.form, this.pagination, this, this.savedTableBody), Et(this.table, this.form, this.pagination, this), Tt(this.shadowRoot.querySelector("[data-export]"), this.table), this.form.getAttribute("data-ajax"))
|
|
512
|
-
nt(this.table, this.form, this.pagination, this);
|
|
513
|
-
else {
|
|
514
|
-
let r = function(s = 1) {
|
|
515
|
-
return Math.floor(Math.random() * Date.now() * (s + 1));
|
|
516
|
-
};
|
|
517
|
-
if (this.querySelector("iam-actionbar[data-selectall]")) {
|
|
518
|
-
const s = this.querySelector("iam-actionbar[data-selectall]");
|
|
519
|
-
Array.from(this.table.querySelectorAll("thead tr")).forEach((l, d) => {
|
|
520
|
-
l.insertAdjacentHTML("afterbegin", '<th class="th--fixed"></th>');
|
|
521
|
-
}), Array.from(this.table.querySelectorAll("tbody tr")).forEach((l, d) => {
|
|
522
|
-
let n = `row${r(d)}`;
|
|
523
|
-
l.insertAdjacentHTML("afterbegin", `<td class="td--fixed selectrow"><input type="checkbox" name="row" id="${n}"/><label for="${n}"><span class="visually-hidden">Select row</span></label></td>`);
|
|
524
|
-
}), this.table.addEventListener("change", (l) => {
|
|
525
|
-
if (l && l.target instanceof HTMLElement && l.target.closest(".selectrow input")) {
|
|
526
|
-
let d = this.table.querySelectorAll('.selectrow input[type="checkbox"]').length, n = this.table.querySelectorAll('.selectrow input[type="checkbox"]:checked').length;
|
|
527
|
-
s.setAttribute("data-selected", d == n ? "all" : n);
|
|
528
|
-
}
|
|
529
|
-
}), s.addEventListener("selected", (l) => {
|
|
530
|
-
l.detail.selected == "0" ? Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((d, n) => {
|
|
531
|
-
d.checked = !1;
|
|
532
|
-
}) : l.detail.selected == "all" && Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((d, n) => {
|
|
533
|
-
d.checked = !0;
|
|
534
|
-
});
|
|
535
|
-
});
|
|
536
|
-
}
|
|
537
|
-
let o = -1;
|
|
538
|
-
Array.from(this.table.querySelectorAll("tbody tr")).forEach((s, l) => {
|
|
539
|
-
if (s.querySelector(":scope > td > .dialog__wrapper")) {
|
|
540
|
-
let d = s.querySelector(":scope > td > .dialog__wrapper").parentNode;
|
|
541
|
-
d.classList.add("td--fixed"), o = Array.from(d.parentNode.children).indexOf(d);
|
|
542
|
-
}
|
|
543
|
-
}), o != -1 && (this.table.querySelector(`thead tr th:nth-child(${o + 1})`).classList.add("th--fixed"), Array.from(this.table.querySelectorAll(`tbody tr td:nth-child(${o + 1})`)).forEach((s, l) => {
|
|
544
|
-
s.classList.add("td--fixed");
|
|
545
|
-
})), it(this.table, this.form, this.pagination, this), G(this.table, this.form, this), B(this.table, this.form);
|
|
546
|
-
}
|
|
547
|
-
this.shadowRoot.querySelector(".table__wrapper").addEventListener("scroll", (r) => {
|
|
548
|
-
this.table.querySelector("dialog[open]") && (this.table.querySelector("dialog[open]").close(), this.table.querySelector(".dialog__wrapper > button.active").classList.remove("active"));
|
|
549
|
-
});
|
|
550
|
-
}
|
|
551
|
-
static get observedAttributes() {
|
|
552
|
-
return ["data-total", "data-page", "data-show"];
|
|
553
|
-
}
|
|
554
|
-
attributeChangedCallback(a, t, i) {
|
|
555
|
-
switch (this.pagination = this.shadowRoot.querySelector("iam-pagination"), a) {
|
|
556
|
-
case "data-total": {
|
|
557
|
-
t != i && this.pagination.setAttribute("data-total", i);
|
|
558
|
-
break;
|
|
559
|
-
}
|
|
560
|
-
case "data-show": {
|
|
561
|
-
t != i && this.pagination.setAttribute("data-show", i);
|
|
562
|
-
break;
|
|
563
|
-
}
|
|
564
|
-
case "data-page": {
|
|
565
|
-
t != i && this.pagination.setAttribute("data-page", i);
|
|
566
|
-
break;
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
/*!
|
|
572
|
-
* iamKey v5.3.0-beta2
|
|
573
|
-
* Copyright 2022-2024 iamproperty
|
|
574
|
-
*/
|
|
575
|
-
class ot extends HTMLElement {
|
|
576
|
-
constructor() {
|
|
577
|
-
super(), this.attachShadow({ mode: "open" });
|
|
578
|
-
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, i = document.createElement("template");
|
|
579
|
-
i.innerHTML = `
|
|
580
|
-
<style>
|
|
581
|
-
@import "${t}";
|
|
582
|
-
:host{container-type:inline-size;display:block}.pagination{display:block}@container (width > 23.4375em){.pagination{display:flex;align-items:center;justify-content:space-between !important;padding-top:2rem}}.pagination>div{display:flex;align-items:center}.pagination div:is(.page-jump,.per-page){border:1px solid var(--colour-light);height:3.25rem;display:none;align-items:center;padding-inline:1rem}.pagination div:is(.page-jump,.per-page) .select--minimal{height:3.25rem;line-height:3.25rem;margin-left:-1rem;padding-left:1rem;font-weight:bold}.pagination div:is(.page-jump,.per-page) div:has(>select){margin-bottom:0}.page-jump{border-right:none !important}.total-pages{white-space:nowrap}:host([data-page-jump][data-minimal]) .page-jump{display:flex !important}@container (width > 23.4375em){:host([data-page-jump]) .page-jump{display:flex !important}}@container (width > 23.4375em){:host([data-per-page]:not([data-page-jump][data-item-count])) .per-page{display:flex !important}}@container (width > 48em){:host([data-per-page][data-page-jump][data-item-count]) .per-page{display:flex !important}}.pagination>.item-count{display:block;text-align:center;margin-bottom:1rem;margin-inline:auto}@container (width > 23.4375em){.pagination>.item-count{display:none}:host([data-item-count]) .pagination>.item-count{display:flex !important;margin:0}}*:where(.prev,.next){border:1px solid var(--colour-light);line-height:3.25rem;height:3.25rem;margin:0;display:none;background:none;padding-inline:1rem}@container (width > 23.4375em){*:where(.prev,.next){display:inline-block}}*:where(.prev,.next):after{margin-left:.5em;font-size:.8rem;content:"";font-family:"Font Awesome 6 Pro";color:var(--colour-info)}*:where(.prev,.next):is(:hover,:focus):not(:disabled){background-color:var(--colour-light)}*:where(.prev,.next):is(:active):not(:disabled){background-color:#e0e0e0}@media screen and (prefers-color-scheme: dark){*:where(.prev,.next):is(:hover,:focus):not(:disabled){background-color:var(--colour-canvas)}*:where(.prev,.next):is(:active):not(:disabled){background-color:var(--colour-canvas)}}*:where(.prev,.next):disabled:after,*:where(.prev,.next):disabled:before{color:inherit !important}:host([data-minimal]) .pagination{justify-content:flex-end}@container (width > 23.4375em){:host([data-minimal]) .pagination{justify-content:space-between}}:host([data-minimal]) *:where(.prev,.next){display:inline-block !important}.prev{border-right:none}.prev:after{display:none}.prev:before{margin-right:.5em;font-size:.8rem;content:"";font-family:"Font Awesome 6 Pro";color:var(--colour-info)}.mobile-controls{display:block}:host([data-minimal]) .pagination{padding-top:1.5rem;display:flex;align-items:center;justify-content:flex-end}:host([data-minimal]) *:is(.mobile-controls,.item-count){display:none}@container (width > 23.4375em){.mobile-controls{display:none !important}:host([data-item-count]) .item-count{display:flex !important}}.fa-spin{display:none !important;font-size:3rem;color:var(--colour-info)}:host([data-loading]) .mobile-controls{padding-top:2rem}:host([data-loading]) .item-count,:host([data-loading]) .mobile-controls>*:not(.fa-spin){display:none !important}:host([data-loading]) .fa-spin{display:block !important;margin:auto}/*# sourceMappingURL=assets/css/components/pagination.css.map */
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
586
|
-
</style>
|
|
587
|
-
<link rel="stylesheet" href="https://kit.fontawesome.com/26fdbf0179.css" crossorigin="anonymous">
|
|
588
|
-
<div class="pagination d-none">
|
|
589
|
-
|
|
590
|
-
<div class="minimal" part="minimal">
|
|
591
|
-
<div class="page-jump">
|
|
592
|
-
<div><select class="select--minimal"></select></div>
|
|
593
|
-
<span class="total-pages"></span>
|
|
594
|
-
</div>
|
|
595
|
-
|
|
596
|
-
<button class="prev" disabled>Prev</button>
|
|
597
|
-
<button class="next" disabled>Next</button>
|
|
598
|
-
</div>
|
|
599
|
-
|
|
600
|
-
<div class="item-count" part="item-count"></div>
|
|
601
|
-
<div class="per-page" part="per-page">
|
|
602
|
-
<div>
|
|
603
|
-
<select class="select--minimal">
|
|
604
|
-
<option value="15">15</option>
|
|
605
|
-
<option value="25">25</option>
|
|
606
|
-
<option value="40">40</option>
|
|
607
|
-
<option value="50">50</option>
|
|
608
|
-
</select>
|
|
609
|
-
</div>
|
|
610
|
-
<span> / page</span>
|
|
611
|
-
</div>
|
|
612
|
-
<div class="mobile-controls m-auto text-center">
|
|
613
|
-
<i class="fa-solid fa-spinner fa-spin"></i>
|
|
614
|
-
<button class="load-more btn btn-primary m-auto">Load more</a>
|
|
615
|
-
</div>
|
|
616
|
-
</div>
|
|
617
|
-
`, this.shadowRoot.appendChild(i.content.cloneNode(!0));
|
|
618
|
-
}
|
|
619
|
-
connectedCallback() {
|
|
620
|
-
const a = new URLSearchParams(window.location.search);
|
|
621
|
-
this.hasAttribute("data-total") || this.setAttribute("data-total", 15), this.hasAttribute("data-page") || this.setAttribute("data-page", a.has("page") ? a.get("page") : 1), this.hasAttribute("data-show") || this.setAttribute("data-show", a.has("show") ? a.get("show") : 15), this.hasAttribute("data-increment") || this.setAttribute("data-increment", this.getAttribute("data-show"));
|
|
622
|
-
const t = this.shadowRoot.querySelector(".page-jump select"), i = this.shadowRoot.querySelector(".prev"), r = this.shadowRoot.querySelector(".next"), o = this.shadowRoot.querySelector(".per-page select"), s = this.shadowRoot.querySelector(".load-more");
|
|
623
|
-
this.setup(), t.addEventListener("change", (l) => {
|
|
624
|
-
this.setAttribute("data-show", this.getAttribute("data-increment")), this.setAttribute("data-page", l.target.value);
|
|
625
|
-
}), r.addEventListener("click", (l) => {
|
|
626
|
-
t.value = parseInt(t.value) + 1, t.dispatchEvent(new Event("change"));
|
|
627
|
-
}), i.addEventListener("click", (l) => {
|
|
628
|
-
t.value = parseInt(t.value) - 1, t.dispatchEvent(new Event("change"));
|
|
629
|
-
}), o.addEventListener("change", (l) => {
|
|
630
|
-
this.setAttribute("data-increment", l.target.value);
|
|
631
|
-
}), s.addEventListener("click", (l) => {
|
|
632
|
-
let d = parseInt(this.getAttribute("data-show")) + parseInt(this.getAttribute("data-increment"));
|
|
633
|
-
this.setAttribute("data-show", d), d > parseInt(this.getAttribute("data-total")) && s.remove();
|
|
634
|
-
});
|
|
635
|
-
}
|
|
636
|
-
setup() {
|
|
637
|
-
const a = this.shadowRoot.querySelector(".pagination"), t = this.shadowRoot.querySelector(".page-jump select"), i = this.shadowRoot.querySelector(".prev"), r = this.shadowRoot.querySelector(".next"), o = this.shadowRoot.querySelector(".item-count"), s = this.shadowRoot.querySelector(".per-page select"), l = this.shadowRoot.querySelector(".total-pages"), d = parseInt(this.getAttribute("data-page")), n = parseInt(this.getAttribute("data-total")), u = parseInt(this.getAttribute("data-show")), c = parseInt(this.getAttribute("data-increment")), p = Math.ceil(n / c);
|
|
638
|
-
n > u && a.classList.remove("d-none");
|
|
639
|
-
let g = "";
|
|
640
|
-
for (let E = 1; E <= p; E++)
|
|
641
|
-
g += `<option value="${E}" ${E == d ? "selected" : ""}>${E}</option>`;
|
|
642
|
-
t.innerHTML = g, l.innerHTML = `of ${p}`, d == p ? r.setAttribute("disabled", "disabled") : r.removeAttribute("disabled"), d == 1 ? i.setAttribute("disabled", "disabled") : i.removeAttribute("disabled");
|
|
643
|
-
let f = d == 1 ? 1 : (d - 1) * u + 1, A = d == 1 ? u : d * u;
|
|
644
|
-
o.innerHTML = `${f} - ${A > n ? n : A} of ${n} items`;
|
|
645
|
-
const k = [15, 25, 40, 50];
|
|
646
|
-
c && s.value != c && !k.includes(c) && (s.innerHTML = `<option value="${c}">${c}</option>
|
|
647
|
-
<option value="${c * 2}">${c * 2}</option>
|
|
648
|
-
<option value="${c * 3}">${c * 3}</option>
|
|
649
|
-
<option value="${c * 4}">${c * 4}</option>`), s.value = c;
|
|
650
|
-
}
|
|
651
|
-
static get observedAttributes() {
|
|
652
|
-
return ["data-total", "data-increment", "data-page", "data-show"];
|
|
653
|
-
}
|
|
654
|
-
attributeChangedCallback(a, t, i) {
|
|
655
|
-
switch (a) {
|
|
656
|
-
case "data-total": {
|
|
657
|
-
t != i && (this.setAttribute("data-page", 1), this.setup());
|
|
658
|
-
break;
|
|
659
|
-
}
|
|
660
|
-
case "data-show": {
|
|
661
|
-
t != i && (this.setAttribute("data-page", 1), this.setup(), this.dispatchEvent(new CustomEvent("update-show", { detail: { show: i } })));
|
|
662
|
-
break;
|
|
663
|
-
}
|
|
664
|
-
case "data-increment": {
|
|
665
|
-
t != i && (this.setAttribute("data-show", i), this.setAttribute("data-page", 1), this.setup(), this.dispatchEvent(new CustomEvent("update-show", { detail: { show: i } })));
|
|
666
|
-
break;
|
|
667
|
-
}
|
|
668
|
-
case "data-page": {
|
|
669
|
-
t && t != i && (this.setup(), this.dispatchEvent(new CustomEvent("update-page", { detail: { page: i } })));
|
|
670
|
-
break;
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
const Ct = (e) => e.charAt(0).toUpperCase() + e.slice(1), jt = (e) => e.replace(/_/g, " "), Dt = (e) => e.replace(/ /g, "_"), Nt = function(e) {
|
|
676
|
-
return e = e.toLowerCase(), e = Dt(e), e = e.replace(/\W/g, ""), e;
|
|
677
|
-
}, Rt = {
|
|
49
|
+
const Da = /* @__PURE__ */ p(B, [["render", K]]), G = (t) => t.charAt(0).toUpperCase() + t.slice(1), Q = (t) => t.replace(/_/g, " "), Y = (t) => t.replace(/ /g, "_"), J = function(t) {
|
|
50
|
+
return t = t.toLowerCase(), t = Y(t), t = t.replace(/\W/g, ""), t;
|
|
51
|
+
}, X = {
|
|
678
52
|
name: "Table",
|
|
679
53
|
props: {
|
|
680
54
|
items: {
|
|
@@ -688,42 +62,50 @@ const Ct = (e) => e.charAt(0).toUpperCase() + e.slice(1), jt = (e) => e.replace(
|
|
|
688
62
|
},
|
|
689
63
|
computed: {
|
|
690
64
|
cellHeading() {
|
|
691
|
-
return (
|
|
65
|
+
return (t) => `${G(Q(t))}`;
|
|
692
66
|
}
|
|
693
67
|
},
|
|
694
68
|
created() {
|
|
695
69
|
this.$nextTick(function() {
|
|
696
|
-
|
|
70
|
+
import("./table.component.min-b8ec6422.mjs").then((t) => {
|
|
71
|
+
window.customElements.get("iam-table") || window.customElements.define("iam-table", t.default);
|
|
72
|
+
}).catch((t) => {
|
|
73
|
+
console.log(t.message);
|
|
74
|
+
}), Promise.resolve().then(() => Ha).then((t) => {
|
|
75
|
+
window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination", t.default);
|
|
76
|
+
}).catch((t) => {
|
|
77
|
+
console.log(t.message);
|
|
78
|
+
});
|
|
697
79
|
});
|
|
698
80
|
},
|
|
699
81
|
updated() {
|
|
700
82
|
}
|
|
701
|
-
},
|
|
702
|
-
function
|
|
703
|
-
return
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
(
|
|
708
|
-
key:
|
|
709
|
-
},
|
|
83
|
+
}, Z = { key: 0 }, ee = { key: 0 }, te = ["data-row-id"], ae = ["innerHTML"];
|
|
84
|
+
function se(t, a, e, s, o, n) {
|
|
85
|
+
return r(), l("iam-table", null, [
|
|
86
|
+
e.fields ? (r(), l("table", Z, [
|
|
87
|
+
c("thead", null, [
|
|
88
|
+
c("tr", null, [
|
|
89
|
+
(r(!0), l(x, null, L(e.fields, (i) => (r(), l("th", {
|
|
90
|
+
key: i.key
|
|
91
|
+
}, w(n.cellHeading(i.key)), 1))), 128))
|
|
710
92
|
])
|
|
711
93
|
]),
|
|
712
|
-
|
|
713
|
-
(
|
|
714
|
-
key:
|
|
715
|
-
"data-row-id":
|
|
94
|
+
e.items ? (r(), l("tbody", ee, [
|
|
95
|
+
(r(!0), l(x, null, L(e.items, (i, d) => (r(), l("tr", {
|
|
96
|
+
key: d,
|
|
97
|
+
"data-row-id": i.rowid
|
|
716
98
|
}, [
|
|
717
|
-
(
|
|
718
|
-
key:
|
|
719
|
-
innerHTML:
|
|
720
|
-
}, null, 8,
|
|
721
|
-
], 8,
|
|
722
|
-
])) :
|
|
723
|
-
])) :
|
|
99
|
+
(r(!0), l(x, null, L(Object.fromEntries(Object.entries(i).filter(([u]) => u !== "rowid")), (u, h) => (r(), l("td", {
|
|
100
|
+
key: h,
|
|
101
|
+
innerHTML: u
|
|
102
|
+
}, null, 8, ae))), 128))
|
|
103
|
+
], 8, te))), 128))
|
|
104
|
+
])) : b("", !0)
|
|
105
|
+
])) : f(t.$slots, "default", { key: 1 })
|
|
724
106
|
]);
|
|
725
107
|
}
|
|
726
|
-
const
|
|
108
|
+
const N = /* @__PURE__ */ p(X, [["render", se]]), ie = {
|
|
727
109
|
name: "Input",
|
|
728
110
|
props: {
|
|
729
111
|
value: {
|
|
@@ -889,213 +271,213 @@ const rt = /* @__PURE__ */ y(Rt, [["render", Ft]]), Bt = {
|
|
|
889
271
|
get() {
|
|
890
272
|
return this.value == null && this.options != null && this.type == "select" ? this.$attrs.multiple ? [] : this.options[0].value : this.value;
|
|
891
273
|
},
|
|
892
|
-
set(
|
|
893
|
-
this.$emit("input",
|
|
274
|
+
set(t) {
|
|
275
|
+
this.$emit("input", t);
|
|
894
276
|
}
|
|
895
277
|
}
|
|
896
278
|
},
|
|
897
279
|
mounted() {
|
|
898
280
|
this.$nextTick(function() {
|
|
899
|
-
let
|
|
900
|
-
if (
|
|
281
|
+
let t = this.$refs.wrapper;
|
|
282
|
+
if (t.parentNode && t.parentNode.classList.contains("form-check") || t.classList.length == 0) {
|
|
901
283
|
const a = document.createDocumentFragment();
|
|
902
|
-
Array.from(
|
|
284
|
+
Array.from(t.childNodes).forEach((e) => a.appendChild(e)), t.parentNode.insertBefore(a, t), t.parentNode.removeChild(t);
|
|
903
285
|
}
|
|
904
286
|
});
|
|
905
287
|
},
|
|
906
288
|
methods: {
|
|
907
|
-
inputKeyup(
|
|
908
|
-
this.$emit("keyupEvent",
|
|
289
|
+
inputKeyup(t) {
|
|
290
|
+
this.$emit("keyupEvent", t);
|
|
909
291
|
},
|
|
910
292
|
clickEvent() {
|
|
911
293
|
this.$emit("bus");
|
|
912
294
|
}
|
|
913
295
|
}
|
|
914
|
-
},
|
|
296
|
+
}, ne = ["for", "innerHTML", "title"], oe = ["innerHTML"], re = ["innerHTML"], le = ["type", "name", "id", "pattern", "list"], de = ["type", "name", "id", "pattern"], ce = {
|
|
915
297
|
key: 5,
|
|
916
298
|
class: "input-group"
|
|
917
|
-
},
|
|
299
|
+
}, ue = ["type", "name", "id", "pattern", "list"], me = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, pe = {
|
|
918
300
|
key: 6,
|
|
919
301
|
class: "input-group"
|
|
920
|
-
},
|
|
921
|
-
function
|
|
922
|
-
return
|
|
923
|
-
class:
|
|
302
|
+
}, he = ["type", "name", "id", "pattern", "list"], fe = { class: "input-group-text flex-fill" }, be = ["type", "name", "id", "pattern"], ge = ["value"], ye = ["type", "name", "id"], ve = ["for", "innerHTML"], _e = ["type", "name", "id"], we = ["for", "innerHTML"], $e = ["innerHTML"], ke = ["id"], Ae = ["value"];
|
|
303
|
+
function xe(t, a, e, s, o, n) {
|
|
304
|
+
return r(), l("div", {
|
|
305
|
+
class: _(n.wrapperClass()),
|
|
924
306
|
ref: "wrapper"
|
|
925
307
|
}, [
|
|
926
|
-
|
|
308
|
+
n.needsLabel() ? (r(), l("label", {
|
|
927
309
|
key: 0,
|
|
928
|
-
class:
|
|
929
|
-
for:
|
|
930
|
-
innerHTML:
|
|
931
|
-
title:
|
|
932
|
-
}, null, 10,
|
|
933
|
-
|
|
310
|
+
class: _(`form-label${e.labelclass ? ` ${e.labelclass}` : ""}`),
|
|
311
|
+
for: e.id,
|
|
312
|
+
innerHTML: n.displayLabel(),
|
|
313
|
+
title: e.title
|
|
314
|
+
}, null, 10, ne)) : b("", !0),
|
|
315
|
+
e.prefix ? (r(), l("span", {
|
|
934
316
|
key: 1,
|
|
935
|
-
class:
|
|
936
|
-
innerHTML:
|
|
317
|
+
class: _(`prefix ${this.prefixClass} ${e.size ? `prefix-${e.size}` : ""}`),
|
|
318
|
+
innerHTML: e.prefix,
|
|
937
319
|
role: "presentation"
|
|
938
|
-
}, null, 10,
|
|
939
|
-
|
|
320
|
+
}, null, 10, oe)) : b("", !0),
|
|
321
|
+
e.suffix ? (r(), l("span", {
|
|
940
322
|
key: 2,
|
|
941
|
-
class:
|
|
942
|
-
innerHTML:
|
|
323
|
+
class: _(`suffix ${this.suffixClass} ${e.size ? `suffix-${e.size}` : ""}`),
|
|
324
|
+
innerHTML: e.suffix,
|
|
943
325
|
role: "presentation"
|
|
944
|
-
}, null, 10,
|
|
945
|
-
|
|
326
|
+
}, null, 10, re)) : b("", !0),
|
|
327
|
+
n.isInput() ? T((r(), l("input", A({
|
|
946
328
|
key: 3,
|
|
947
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
948
|
-
class: `form-control${
|
|
949
|
-
type:
|
|
950
|
-
name:
|
|
951
|
-
id:
|
|
952
|
-
pattern:
|
|
953
|
-
list:
|
|
954
|
-
},
|
|
955
|
-
onKeyup: a[1] || (a[1] = (...
|
|
956
|
-
}), null, 16,
|
|
957
|
-
[
|
|
958
|
-
]) :
|
|
959
|
-
|
|
329
|
+
"onUpdate:modelValue": a[0] || (a[0] = (i) => n.inputVal = i),
|
|
330
|
+
class: `form-control${e.size ? ` form-control-${e.size}` : ""}${e.inputclass ? ` ${e.inputclass}` : ""}`,
|
|
331
|
+
type: e.type,
|
|
332
|
+
name: e.name ? e.name : e.id,
|
|
333
|
+
id: e.id,
|
|
334
|
+
pattern: n.needPattern(),
|
|
335
|
+
list: n.hasOptions()
|
|
336
|
+
}, t.$attrs, {
|
|
337
|
+
onKeyup: a[1] || (a[1] = (...i) => n.inputKeyup && n.inputKeyup(...i))
|
|
338
|
+
}), null, 16, le)), [
|
|
339
|
+
[H, n.inputVal]
|
|
340
|
+
]) : b("", !0),
|
|
341
|
+
e.type == "textarea" ? T((r(), l("textarea", A({
|
|
960
342
|
key: 4,
|
|
961
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
962
|
-
class: `form-control${
|
|
963
|
-
type:
|
|
964
|
-
name:
|
|
965
|
-
id:
|
|
966
|
-
pattern:
|
|
967
|
-
},
|
|
968
|
-
[
|
|
969
|
-
]) :
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
"onUpdate:modelValue": a[3] || (a[3] = (
|
|
973
|
-
class: `form-range${
|
|
974
|
-
type:
|
|
975
|
-
name:
|
|
976
|
-
id:
|
|
977
|
-
pattern:
|
|
978
|
-
list:
|
|
979
|
-
},
|
|
980
|
-
[
|
|
343
|
+
"onUpdate:modelValue": a[2] || (a[2] = (i) => n.inputVal = i),
|
|
344
|
+
class: `form-control${e.size ? ` form-control-${e.size}` : ""}${e.inputclass ? ` ${e.inputclass}` : ""}`,
|
|
345
|
+
type: e.type,
|
|
346
|
+
name: e.name ? e.name : e.id,
|
|
347
|
+
id: e.id,
|
|
348
|
+
pattern: n.needPattern()
|
|
349
|
+
}, t.$attrs), null, 16, de)), [
|
|
350
|
+
[D, n.inputVal]
|
|
351
|
+
]) : b("", !0),
|
|
352
|
+
e.type == "range" ? (r(), l("div", ce, [
|
|
353
|
+
T(c("input", A({
|
|
354
|
+
"onUpdate:modelValue": a[3] || (a[3] = (i) => n.inputVal = i),
|
|
355
|
+
class: `form-range${e.inputclass ? ` ${e.inputclass}` : ""}`,
|
|
356
|
+
type: e.type,
|
|
357
|
+
name: e.name ? e.name : e.id,
|
|
358
|
+
id: e.id,
|
|
359
|
+
pattern: n.needPattern(),
|
|
360
|
+
list: n.hasOptions()
|
|
361
|
+
}, t.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, ue), [
|
|
362
|
+
[H, n.inputVal]
|
|
981
363
|
]),
|
|
982
|
-
|
|
983
|
-
])) :
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
"onUpdate:modelValue": a[4] || (a[4] = (
|
|
987
|
-
class: `form-control form-control-color${
|
|
988
|
-
type:
|
|
989
|
-
name:
|
|
990
|
-
id:
|
|
991
|
-
pattern:
|
|
992
|
-
list:
|
|
993
|
-
},
|
|
994
|
-
[
|
|
364
|
+
c("output", me, w(e.value), 1)
|
|
365
|
+
])) : b("", !0),
|
|
366
|
+
e.type == "color" ? (r(), l("div", pe, [
|
|
367
|
+
T(c("input", A({
|
|
368
|
+
"onUpdate:modelValue": a[4] || (a[4] = (i) => n.inputVal = i),
|
|
369
|
+
class: `form-control form-control-color${e.inputclass ? ` ${e.inputclass}` : ""}`,
|
|
370
|
+
type: e.type,
|
|
371
|
+
name: e.name ? e.name : e.id,
|
|
372
|
+
id: e.id,
|
|
373
|
+
pattern: n.needPattern(),
|
|
374
|
+
list: n.hasOptions()
|
|
375
|
+
}, t.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, he), [
|
|
376
|
+
[H, n.inputVal]
|
|
995
377
|
]),
|
|
996
|
-
|
|
997
|
-
])) :
|
|
998
|
-
|
|
378
|
+
c("output", fe, w(e.value ? t.vale : "#000000"), 1)
|
|
379
|
+
])) : b("", !0),
|
|
380
|
+
e.type == "select" ? T((r(), l("select", A({
|
|
999
381
|
key: 7,
|
|
1000
|
-
"onUpdate:modelValue": a[5] || (a[5] = (
|
|
1001
|
-
class: `form-select${
|
|
1002
|
-
type:
|
|
1003
|
-
name:
|
|
1004
|
-
id:
|
|
1005
|
-
pattern:
|
|
1006
|
-
},
|
|
1007
|
-
(
|
|
1008
|
-
key:
|
|
1009
|
-
value:
|
|
1010
|
-
},
|
|
1011
|
-
], 16,
|
|
1012
|
-
[
|
|
1013
|
-
]) :
|
|
1014
|
-
|
|
382
|
+
"onUpdate:modelValue": a[5] || (a[5] = (i) => n.inputVal = i),
|
|
383
|
+
class: `form-select${e.size ? ` form-select-${e.size}` : ""}${e.inputclass ? ` ${e.inputclass}` : ""}`,
|
|
384
|
+
type: e.type,
|
|
385
|
+
name: e.id,
|
|
386
|
+
id: e.id,
|
|
387
|
+
pattern: n.needPattern()
|
|
388
|
+
}, t.$attrs), [
|
|
389
|
+
(r(!0), l(x, null, L(e.options, (i, d) => (r(), l("option", {
|
|
390
|
+
key: d,
|
|
391
|
+
value: i.value
|
|
392
|
+
}, w(i.display ? i.display : i.value), 9, ge))), 128))
|
|
393
|
+
], 16, be)), [
|
|
394
|
+
[F, n.inputVal]
|
|
395
|
+
]) : b("", !0),
|
|
396
|
+
e.type == "checkbox" || e.type == "radio" ? (r(), l("input", A({
|
|
1015
397
|
key: 8,
|
|
1016
398
|
class: "form-check-input",
|
|
1017
|
-
type:
|
|
1018
|
-
name:
|
|
1019
|
-
id:
|
|
1020
|
-
},
|
|
1021
|
-
|
|
399
|
+
type: e.type,
|
|
400
|
+
name: e.name ? e.name : e.id,
|
|
401
|
+
id: e.id
|
|
402
|
+
}, t.$attrs), null, 16, ye)) : b("", !0),
|
|
403
|
+
e.type == "checkbox" || e.type == "radio" ? (r(), l("label", {
|
|
1022
404
|
key: 9,
|
|
1023
|
-
class:
|
|
1024
|
-
for:
|
|
1025
|
-
innerHTML:
|
|
1026
|
-
}, null, 10,
|
|
1027
|
-
|
|
405
|
+
class: _(`form-label form-check-label${e.labelclass ? ` ${e.labelclass}` : ""}`),
|
|
406
|
+
for: e.id,
|
|
407
|
+
innerHTML: e.label
|
|
408
|
+
}, null, 10, ve)) : b("", !0),
|
|
409
|
+
e.type == "checkbox-btn" || e.type == "radio-btn" ? (r(), l("input", A({
|
|
1028
410
|
key: 10,
|
|
1029
|
-
class: `btn-check${
|
|
1030
|
-
type:
|
|
411
|
+
class: `btn-check${e.inputclass ? ` ${e.inputclass}` : ""}`,
|
|
412
|
+
type: e.type.replace("-btn", ""),
|
|
1031
413
|
autocomplete: "off",
|
|
1032
|
-
name:
|
|
1033
|
-
id:
|
|
1034
|
-
},
|
|
1035
|
-
|
|
414
|
+
name: e.name ? e.name : e.id,
|
|
415
|
+
id: e.id
|
|
416
|
+
}, t.$attrs), null, 16, _e)) : b("", !0),
|
|
417
|
+
e.type == "checkbox-btn" || e.type == "radio-btn" ? (r(), l("label", {
|
|
1036
418
|
key: 11,
|
|
1037
|
-
class:
|
|
1038
|
-
for:
|
|
1039
|
-
innerHTML:
|
|
1040
|
-
onClick: a[6] || (a[6] = (...
|
|
1041
|
-
}, null, 10,
|
|
1042
|
-
|
|
1043
|
-
|
|
419
|
+
class: _(`btn${e.labelclass ? ` ${e.labelclass}` : ""}`),
|
|
420
|
+
for: e.id,
|
|
421
|
+
innerHTML: e.label,
|
|
422
|
+
onClick: a[6] || (a[6] = (...i) => n.clickEvent && n.clickEvent(...i))
|
|
423
|
+
}, null, 10, we)) : b("", !0),
|
|
424
|
+
f(t.$slots, "default"),
|
|
425
|
+
e.errormsg ? (r(), l("span", {
|
|
1044
426
|
key: 12,
|
|
1045
427
|
class: "invalid-feedback mb-0",
|
|
1046
|
-
innerHTML:
|
|
1047
|
-
}, null, 8,
|
|
1048
|
-
|
|
428
|
+
innerHTML: e.errormsg
|
|
429
|
+
}, null, 8, $e)) : b("", !0),
|
|
430
|
+
n.allowDatalist() ? (r(), l("datalist", {
|
|
1049
431
|
key: 13,
|
|
1050
|
-
id:
|
|
432
|
+
id: e.id + "-list"
|
|
1051
433
|
}, [
|
|
1052
|
-
(
|
|
1053
|
-
key:
|
|
1054
|
-
value:
|
|
1055
|
-
},
|
|
1056
|
-
], 8,
|
|
434
|
+
(r(!0), l(x, null, L(e.options, (i, d) => (r(), l("option", {
|
|
435
|
+
key: d,
|
|
436
|
+
value: i.value
|
|
437
|
+
}, w(i.value), 9, Ae))), 128))
|
|
438
|
+
], 8, ke)) : b("", !0)
|
|
1057
439
|
], 2);
|
|
1058
440
|
}
|
|
1059
|
-
const
|
|
1060
|
-
function
|
|
1061
|
-
const
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
}), a.addEventListener("click", (
|
|
1065
|
-
if (
|
|
1066
|
-
const
|
|
1067
|
-
for (let
|
|
1068
|
-
const
|
|
1069
|
-
|
|
441
|
+
const R = /* @__PURE__ */ p(ie, [["render", xe]]);
|
|
442
|
+
function Le(t, a) {
|
|
443
|
+
const e = a.querySelector(".files"), s = a.querySelector(".drop-area"), o = t.querySelector("input"), n = t.hasAttribute("data-maxsize") ? t.getAttribute("data-maxsize") : 0, i = o.cloneNode();
|
|
444
|
+
s.append(i), a.addEventListener("click", (d) => {
|
|
445
|
+
d && d.target instanceof HTMLElement && d.target.closest(".btn-primary") && (d.target.closest(".btn-primary"), (o.hasAttribute("multiple") ? i : o).click());
|
|
446
|
+
}), a.addEventListener("click", (d) => {
|
|
447
|
+
if (d && d.target instanceof HTMLElement && d.target.closest(".files button")) {
|
|
448
|
+
const u = new DataTransfer(), { files: h } = o, g = d.target.closest(".files button");
|
|
449
|
+
for (let y = 0; y < h.length; y++) {
|
|
450
|
+
const v = h[y];
|
|
451
|
+
v.name != g.getAttribute("data-file") && u.items.add(v);
|
|
1070
452
|
}
|
|
1071
|
-
|
|
1072
|
-
const
|
|
1073
|
-
|
|
453
|
+
o.files = u.files;
|
|
454
|
+
const m = new Event("change");
|
|
455
|
+
o.dispatchEvent(m);
|
|
1074
456
|
}
|
|
1075
|
-
}),
|
|
1076
|
-
if (
|
|
1077
|
-
const
|
|
1078
|
-
let
|
|
1079
|
-
const
|
|
1080
|
-
for (let
|
|
1081
|
-
const
|
|
1082
|
-
!
|
|
457
|
+
}), i.addEventListener("change", (d) => {
|
|
458
|
+
if (o.hasAttribute("multiple")) {
|
|
459
|
+
const h = [...o.files, ...i.files];
|
|
460
|
+
let g = [];
|
|
461
|
+
const m = new DataTransfer();
|
|
462
|
+
for (let y = 0; y < h.length; y++) {
|
|
463
|
+
const v = h[y], $ = v.size / 1e3;
|
|
464
|
+
!g.includes(v.name) && (n == 0 || $ < n) && m.items.add(v), g.push(v.name);
|
|
1083
465
|
}
|
|
1084
|
-
|
|
466
|
+
o.files = m.files;
|
|
1085
467
|
} else
|
|
1086
|
-
|
|
1087
|
-
const
|
|
1088
|
-
|
|
1089
|
-
}),
|
|
1090
|
-
|
|
1091
|
-
}),
|
|
1092
|
-
|
|
1093
|
-
}),
|
|
1094
|
-
|
|
1095
|
-
}),
|
|
1096
|
-
|
|
1097
|
-
for (const
|
|
1098
|
-
|
|
468
|
+
o.files = i.files;
|
|
469
|
+
const u = new Event("change");
|
|
470
|
+
o.dispatchEvent(u);
|
|
471
|
+
}), i.addEventListener("dragenter", (d) => {
|
|
472
|
+
i.classList.add("focus");
|
|
473
|
+
}), i.addEventListener("dragleave", (d) => {
|
|
474
|
+
i.classList.remove("focus");
|
|
475
|
+
}), i.addEventListener("drop", (d) => {
|
|
476
|
+
i.classList.remove("focus");
|
|
477
|
+
}), o.addEventListener("change", (d) => {
|
|
478
|
+
e.innerHTML = "";
|
|
479
|
+
for (const u of o.files)
|
|
480
|
+
e.innerHTML += `<span class="file">${u.name} <button data-file="${u.name}">Remove</button></span>`;
|
|
1099
481
|
});
|
|
1100
482
|
}
|
|
1101
483
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -1103,14 +485,14 @@ window.dataLayer.push({
|
|
|
1103
485
|
event: "customElementRegistered",
|
|
1104
486
|
element: "fileupload"
|
|
1105
487
|
});
|
|
1106
|
-
class
|
|
488
|
+
class Se extends HTMLElement {
|
|
1107
489
|
constructor() {
|
|
1108
490
|
super(), this.attachShadow({ mode: "open" });
|
|
1109
|
-
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets",
|
|
1110
|
-
|
|
491
|
+
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, s = `@import "${a}/css/components/fileupload.css";`, o = document.createElement("template");
|
|
492
|
+
o.innerHTML = `
|
|
1111
493
|
<style>
|
|
1112
|
-
@import "${
|
|
1113
|
-
${
|
|
494
|
+
@import "${e}";
|
|
495
|
+
${s}
|
|
1114
496
|
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
1115
497
|
</style>
|
|
1116
498
|
<div class="file-upload">
|
|
@@ -1122,15 +504,15 @@ class me extends HTMLElement {
|
|
|
1122
504
|
<slot></slot>
|
|
1123
505
|
<div class="files"></div>
|
|
1124
506
|
</div>
|
|
1125
|
-
`, this.shadowRoot.appendChild(
|
|
507
|
+
`, this.shadowRoot.appendChild(o.content.cloneNode(!0));
|
|
1126
508
|
}
|
|
1127
509
|
connectedCallback() {
|
|
1128
510
|
this.innerHTML += '<i class="fa-regular fa-arrow-up-from-bracket me-2" aria-hidden="true" slot="btn"></i>';
|
|
1129
|
-
const a = this.shadowRoot.querySelector(".file-upload"),
|
|
1130
|
-
|
|
511
|
+
const a = this.shadowRoot.querySelector(".file-upload"), e = this.querySelector("input"), s = this.shadowRoot.querySelector(".helper-text");
|
|
512
|
+
s.innerHTML = `${this.hasAttribute("data-maxsize") ? `Max file size is ${this.getAttribute("data-maxsize")}kb. ` : ""}${e.hasAttribute("accept") ? `Supported file types are ${e.getAttribute("accept")}` : ""}`, Le(this, a);
|
|
1131
513
|
}
|
|
1132
514
|
}
|
|
1133
|
-
const
|
|
515
|
+
const qe = {
|
|
1134
516
|
name: "FileUpload",
|
|
1135
517
|
props: {
|
|
1136
518
|
maxfilesize: {
|
|
@@ -1144,40 +526,40 @@ const he = {
|
|
|
1144
526
|
},
|
|
1145
527
|
mounted() {
|
|
1146
528
|
this.$nextTick(function() {
|
|
1147
|
-
window.customElements.get("iam-fileupload") || window.customElements.define("iam-fileupload",
|
|
529
|
+
window.customElements.get("iam-fileupload") || window.customElements.define("iam-fileupload", Se);
|
|
1148
530
|
});
|
|
1149
531
|
}
|
|
1150
532
|
};
|
|
1151
|
-
function
|
|
1152
|
-
return
|
|
1153
|
-
|
|
533
|
+
function Ee(t, a, e, s, o, n) {
|
|
534
|
+
return r(), l("iam-fileupload", null, [
|
|
535
|
+
f(t.$slots, "default")
|
|
1154
536
|
]);
|
|
1155
537
|
}
|
|
1156
|
-
const
|
|
1157
|
-
const
|
|
1158
|
-
return
|
|
1159
|
-
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
538
|
+
const Fa = /* @__PURE__ */ p(qe, [["render", Ee]]), S = (t, a) => {
|
|
539
|
+
const e = t[a];
|
|
540
|
+
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((s, o) => {
|
|
541
|
+
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, new Error("Unknown variable dynamic import: " + a)));
|
|
1160
542
|
});
|
|
1161
543
|
};
|
|
1162
|
-
const
|
|
544
|
+
const Te = {
|
|
1163
545
|
name: "Accordion",
|
|
1164
546
|
props: {},
|
|
1165
547
|
mounted() {
|
|
1166
548
|
this.$nextTick(function() {
|
|
1167
|
-
|
|
1168
|
-
window.customElements.get("iam-accordion") || window.customElements.define("iam-accordion",
|
|
1169
|
-
}).catch((
|
|
1170
|
-
console.log(
|
|
549
|
+
S(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/accordion/accordion.component.js": () => import("./accordion.component-bd9af0d7.mjs"), "../../../assets/js/components/accordion/accordion.component.min.js": () => import("./accordion.component.min-20571f58.mjs") }), "../../../assets/js/components/accordion/accordion.component.js").then((t) => {
|
|
550
|
+
window.customElements.get("iam-accordion") || window.customElements.define("iam-accordion", t.default);
|
|
551
|
+
}).catch((t) => {
|
|
552
|
+
console.log(t.message);
|
|
1171
553
|
});
|
|
1172
554
|
});
|
|
1173
555
|
}
|
|
1174
|
-
},
|
|
1175
|
-
function
|
|
1176
|
-
return
|
|
1177
|
-
|
|
556
|
+
}, He = { ref: "wrapper" };
|
|
557
|
+
function Me(t, a, e, s, o, n) {
|
|
558
|
+
return r(), l("iam-accordion", He, [
|
|
559
|
+
f(t.$slots, "default")
|
|
1178
560
|
], 512);
|
|
1179
561
|
}
|
|
1180
|
-
const
|
|
562
|
+
const Va = /* @__PURE__ */ p(Te, [["render", Me]]), je = {
|
|
1181
563
|
name: "AccordionItem",
|
|
1182
564
|
props: {
|
|
1183
565
|
title: {
|
|
@@ -1204,7 +586,7 @@ const qi = /* @__PURE__ */ y(fe, [["render", ge]]), ye = {
|
|
|
1204
586
|
},
|
|
1205
587
|
computed: {
|
|
1206
588
|
createID() {
|
|
1207
|
-
return (
|
|
589
|
+
return (t) => `${J(t)}`;
|
|
1208
590
|
}
|
|
1209
591
|
},
|
|
1210
592
|
data() {
|
|
@@ -1212,24 +594,24 @@ const qi = /* @__PURE__ */ y(fe, [["render", ge]]), ye = {
|
|
|
1212
594
|
show: !this.lazy
|
|
1213
595
|
};
|
|
1214
596
|
}
|
|
1215
|
-
},
|
|
1216
|
-
function
|
|
1217
|
-
return
|
|
1218
|
-
id:
|
|
597
|
+
}, Ce = ["id"], Ne = ["classList"];
|
|
598
|
+
function Re(t, a, e, s, o, n) {
|
|
599
|
+
return r(), l("details", {
|
|
600
|
+
id: n.createID(e.title)
|
|
1219
601
|
}, [
|
|
1220
|
-
|
|
1221
|
-
classList: `${
|
|
602
|
+
c("summary", {
|
|
603
|
+
classList: `${e.titlecolour ? `bg-${e.titlecolour}` : ""}`
|
|
1222
604
|
}, [
|
|
1223
|
-
|
|
1224
|
-
|
|
605
|
+
V(w(e.title), 1),
|
|
606
|
+
e.badge ? (r(), l("span", {
|
|
1225
607
|
key: 0,
|
|
1226
|
-
class:
|
|
1227
|
-
},
|
|
1228
|
-
], 8,
|
|
1229
|
-
|
|
1230
|
-
], 8,
|
|
608
|
+
class: _(`badge bg-${e.badgecolour}`)
|
|
609
|
+
}, w(e.badge), 3)) : b("", !0)
|
|
610
|
+
], 8, Ne),
|
|
611
|
+
f(t.$slots, "default")
|
|
612
|
+
], 8, Ce);
|
|
1231
613
|
}
|
|
1232
|
-
const
|
|
614
|
+
const Oa = /* @__PURE__ */ p(je, [["render", Re]]), Pe = {
|
|
1233
615
|
name: "Header",
|
|
1234
616
|
props: {
|
|
1235
617
|
title: {
|
|
@@ -1246,49 +628,49 @@ const Ei = /* @__PURE__ */ y(ye, [["render", _e]]), Ae = {
|
|
|
1246
628
|
required: !1
|
|
1247
629
|
}
|
|
1248
630
|
}
|
|
1249
|
-
},
|
|
1250
|
-
function
|
|
1251
|
-
return
|
|
1252
|
-
|
|
1253
|
-
class:
|
|
631
|
+
}, ze = { class: "container" }, Ie = { class: "row" }, De = { class: "col-sm-6" }, Fe = { class: "pt-5 pb-3 px-4" }, Ve = { class: "col-sm-6 col-md-5 ms-auto" }, Oe = ["src"];
|
|
632
|
+
function Be(t, a, e, s, o, n) {
|
|
633
|
+
return r(), l("div", ze, [
|
|
634
|
+
c("div", {
|
|
635
|
+
class: _("bg-" + e.background + " mb-4")
|
|
1254
636
|
}, [
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
637
|
+
c("div", Ie, [
|
|
638
|
+
c("div", De, [
|
|
639
|
+
c("div", Fe, [
|
|
640
|
+
c("h2", null, w(e.title), 1),
|
|
641
|
+
f(t.$slots, "default")
|
|
1260
642
|
])
|
|
1261
643
|
]),
|
|
1262
|
-
|
|
1263
|
-
|
|
644
|
+
c("div", Ve, [
|
|
645
|
+
e.image ? (r(), l("img", {
|
|
1264
646
|
key: 0,
|
|
1265
|
-
src:
|
|
647
|
+
src: e.image,
|
|
1266
648
|
alt: "",
|
|
1267
649
|
class: "h-100 w-100 object-cover"
|
|
1268
|
-
}, null, 8,
|
|
650
|
+
}, null, 8, Oe)) : b("", !0)
|
|
1269
651
|
])
|
|
1270
652
|
])
|
|
1271
653
|
], 2)
|
|
1272
654
|
]);
|
|
1273
655
|
}
|
|
1274
|
-
const
|
|
656
|
+
const Ba = /* @__PURE__ */ p(Pe, [["render", Be]]), Ue = {
|
|
1275
657
|
name: "Card",
|
|
1276
658
|
mounted() {
|
|
1277
659
|
this.$nextTick(function() {
|
|
1278
|
-
|
|
1279
|
-
window.customElements.get("iam-card") || window.customElements.define("iam-card",
|
|
1280
|
-
}).catch((
|
|
1281
|
-
console.log(
|
|
660
|
+
import("./card.component.min-53116ccf.mjs").then((t) => {
|
|
661
|
+
window.customElements.get("iam-card") || window.customElements.define("iam-card", t.default);
|
|
662
|
+
}).catch((t) => {
|
|
663
|
+
console.log(t.message);
|
|
1282
664
|
});
|
|
1283
665
|
});
|
|
1284
666
|
}
|
|
1285
667
|
};
|
|
1286
|
-
function
|
|
1287
|
-
return
|
|
1288
|
-
|
|
668
|
+
function We(t, a, e, s, o, n) {
|
|
669
|
+
return r(), l("iam-card", null, [
|
|
670
|
+
f(t.$slots, "default")
|
|
1289
671
|
]);
|
|
1290
672
|
}
|
|
1291
|
-
const
|
|
673
|
+
const Ua = /* @__PURE__ */ p(Ue, [["render", We]]), Ke = {
|
|
1292
674
|
name: "Header",
|
|
1293
675
|
props: {
|
|
1294
676
|
title: {
|
|
@@ -1302,20 +684,20 @@ const Hi = /* @__PURE__ */ y(Te, [["render", He]]), Me = {
|
|
|
1302
684
|
},
|
|
1303
685
|
mounted() {
|
|
1304
686
|
this.$nextTick(function() {
|
|
1305
|
-
|
|
1306
|
-
window.customElements.get("iam-carousel") || window.customElements.define("iam-carousel",
|
|
1307
|
-
}).catch((
|
|
1308
|
-
console.log(
|
|
687
|
+
S(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/carousel/carousel.component.js": () => import("./carousel.component-72a8511a.mjs") }), "../../../assets/js/components/carousel/carousel.component.js").then((t) => {
|
|
688
|
+
window.customElements.get("iam-carousel") || window.customElements.define("iam-carousel", t.default);
|
|
689
|
+
}).catch((t) => {
|
|
690
|
+
console.log(t.message);
|
|
1309
691
|
});
|
|
1310
692
|
});
|
|
1311
693
|
}
|
|
1312
694
|
};
|
|
1313
|
-
function
|
|
1314
|
-
return
|
|
1315
|
-
|
|
695
|
+
function Ge(t, a, e, s, o, n) {
|
|
696
|
+
return r(), l("iam-carousel", null, [
|
|
697
|
+
f(t.$slots, "default")
|
|
1316
698
|
]);
|
|
1317
699
|
}
|
|
1318
|
-
const
|
|
700
|
+
const Wa = /* @__PURE__ */ p(Ke, [["render", Ge]]), Qe = {
|
|
1319
701
|
name: "Header",
|
|
1320
702
|
props: {
|
|
1321
703
|
title: {
|
|
@@ -1329,54 +711,54 @@ const Mi = /* @__PURE__ */ y(Me, [["render", Ce]]), je = {
|
|
|
1329
711
|
},
|
|
1330
712
|
mounted() {
|
|
1331
713
|
this.$nextTick(function() {
|
|
1332
|
-
|
|
1333
|
-
window.customElements.get("iam-header") || window.customElements.define("iam-header",
|
|
1334
|
-
}).catch((
|
|
1335
|
-
console.log(
|
|
714
|
+
S(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/header/header.component.js": () => import("./header.component-cc8263fb.mjs"), "../../../assets/js/components/header/header.component.min.js": () => import("./header.component.min-926fdb3e.mjs") }), "../../../assets/js/components/header/header.component.js").then((t) => {
|
|
715
|
+
window.customElements.get("iam-header") || window.customElements.define("iam-header", t.default);
|
|
716
|
+
}).catch((t) => {
|
|
717
|
+
console.log(t.message);
|
|
1336
718
|
});
|
|
1337
719
|
});
|
|
1338
720
|
}
|
|
1339
|
-
},
|
|
1340
|
-
function
|
|
1341
|
-
return
|
|
1342
|
-
|
|
1343
|
-
|
|
721
|
+
}, Ye = ["image"], Je = ["innerHTML"];
|
|
722
|
+
function Xe(t, a, e, s, o, n) {
|
|
723
|
+
return r(), l("iam-header", { image: e.image }, [
|
|
724
|
+
f(t.$slots, "breadcrumb"),
|
|
725
|
+
e.title ? (r(), l("h1", {
|
|
1344
726
|
key: 0,
|
|
1345
|
-
innerHTML:
|
|
1346
|
-
}, null, 8,
|
|
1347
|
-
|
|
1348
|
-
], 8,
|
|
727
|
+
innerHTML: e.title
|
|
728
|
+
}, null, 8, Je)) : b("", !0),
|
|
729
|
+
f(t.$slots, "default")
|
|
730
|
+
], 8, Ye);
|
|
1349
731
|
}
|
|
1350
|
-
const
|
|
1351
|
-
function
|
|
732
|
+
const Ka = /* @__PURE__ */ p(Qe, [["render", Xe]]);
|
|
733
|
+
function Ze(t) {
|
|
1352
734
|
var a;
|
|
1353
|
-
const
|
|
1354
|
-
if (
|
|
735
|
+
const e = t.querySelector(".testimonial__images"), s = e.querySelectorAll("img").length;
|
|
736
|
+
if (s == 1)
|
|
1355
737
|
return !1;
|
|
1356
|
-
|
|
1357
|
-
const
|
|
1358
|
-
const
|
|
1359
|
-
|
|
738
|
+
t.classList.add("testimonial--multi");
|
|
739
|
+
const o = function(n) {
|
|
740
|
+
const i = t.querySelector(".btn-next"), d = t.querySelector(".btn-prev");
|
|
741
|
+
i.setAttribute("data-go", n + 1), d.setAttribute("data-go", n - 1), i.removeAttribute("disabled"), d.removeAttribute("disabled"), n == 1 ? d.setAttribute("disabled", !0) : n == s && i.setAttribute("disabled", !0);
|
|
1360
742
|
};
|
|
1361
|
-
|
|
743
|
+
e.addEventListener("scroll", function(n) {
|
|
1362
744
|
clearTimeout(a), a = setTimeout(function() {
|
|
1363
|
-
let
|
|
1364
|
-
|
|
745
|
+
let i = e.scrollWidth, d = e.scrollHeight, u = e.scrollLeft, h = e.scrollTop, g = Math.round(u / i * s) + 1;
|
|
746
|
+
u == 0 && h != 0 && (g = Math.round(h / d * s) + 1), t.setAttribute("data-show", g), o(g);
|
|
1365
747
|
}, 300);
|
|
1366
|
-
}, !1),
|
|
1367
|
-
for (var
|
|
1368
|
-
if (
|
|
1369
|
-
let
|
|
1370
|
-
|
|
1371
|
-
top:
|
|
1372
|
-
left:
|
|
748
|
+
}, !1), t.addEventListener("click", function(n) {
|
|
749
|
+
for (var i = n.target; i && i != this; i = i.parentNode)
|
|
750
|
+
if (i.matches("[data-go]")) {
|
|
751
|
+
let d = parseInt(i.getAttribute("data-go")), u = 0, h = 0, g = e.scrollWidth, m = e.scrollHeight;
|
|
752
|
+
g > m ? h = Math.floor(g * ((d - 1) / s)) : u = Math.floor(m * ((d - 1) / s)), e.scroll({
|
|
753
|
+
top: u,
|
|
754
|
+
left: h,
|
|
1373
755
|
behavior: "smooth"
|
|
1374
756
|
});
|
|
1375
757
|
break;
|
|
1376
758
|
}
|
|
1377
759
|
}, !1);
|
|
1378
760
|
}
|
|
1379
|
-
const
|
|
761
|
+
const et = {
|
|
1380
762
|
name: "Testimonial",
|
|
1381
763
|
props: {
|
|
1382
764
|
items: {
|
|
@@ -1390,66 +772,66 @@ const Ie = {
|
|
|
1390
772
|
}
|
|
1391
773
|
},
|
|
1392
774
|
mounted() {
|
|
1393
|
-
|
|
775
|
+
Ze(this.$refs.wrapper);
|
|
1394
776
|
}
|
|
1395
|
-
},
|
|
777
|
+
}, tt = {
|
|
1396
778
|
class: "container testimonial mb-5",
|
|
1397
779
|
"data-show": "1",
|
|
1398
780
|
ref: "wrapper"
|
|
1399
|
-
},
|
|
1400
|
-
/* @__PURE__ */
|
|
781
|
+
}, at = { class: "row" }, st = { class: "col-md-5 position-relative" }, it = { class: "testimonial__images" }, nt = ["src"], ot = /* @__PURE__ */ c("div", { class: "testimonial__controls" }, [
|
|
782
|
+
/* @__PURE__ */ c("button", {
|
|
1401
783
|
"data-go": "0",
|
|
1402
784
|
disabled: "",
|
|
1403
785
|
class: "btn-prev"
|
|
1404
786
|
}, "Previous"),
|
|
1405
|
-
/* @__PURE__ */
|
|
787
|
+
/* @__PURE__ */ c("button", {
|
|
1406
788
|
"data-go": "2",
|
|
1407
789
|
class: "btn-next"
|
|
1408
790
|
}, "Next")
|
|
1409
|
-
], -1),
|
|
1410
|
-
function
|
|
1411
|
-
return
|
|
1412
|
-
|
|
1413
|
-
class:
|
|
791
|
+
], -1), rt = { class: "col-md-7" }, lt = /* @__PURE__ */ c("h2", null, "What our customers think…", -1), dt = { class: "testimonial__content" }, ct = ["innerHTML"], ut = ["innerHTML"], mt = { class: "testimonial__after" }, pt = /* @__PURE__ */ c("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
|
|
792
|
+
function ht(t, a, e, s, o, n) {
|
|
793
|
+
return r(), l("div", tt, [
|
|
794
|
+
c("div", {
|
|
795
|
+
class: _("bg-" + e.background)
|
|
1414
796
|
}, [
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
(
|
|
1419
|
-
key:
|
|
1420
|
-
src:
|
|
797
|
+
c("div", at, [
|
|
798
|
+
c("div", st, [
|
|
799
|
+
c("div", it, [
|
|
800
|
+
(r(!0), l(x, null, L(e.items, (i, d) => (r(), l("img", {
|
|
801
|
+
key: d,
|
|
802
|
+
src: i.image ? i.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
|
|
1421
803
|
alt: "",
|
|
1422
|
-
class:
|
|
1423
|
-
}, null, 10,
|
|
804
|
+
class: _("h-100 w-100 object-cover" + (i.image ? "" : " opacity-0"))
|
|
805
|
+
}, null, 10, nt))), 128))
|
|
1424
806
|
]),
|
|
1425
|
-
|
|
807
|
+
ot
|
|
1426
808
|
]),
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
(
|
|
1431
|
-
key:
|
|
1432
|
-
class:
|
|
809
|
+
c("div", rt, [
|
|
810
|
+
lt,
|
|
811
|
+
c("div", dt, [
|
|
812
|
+
(r(!0), l(x, null, L(e.items, (i, d) => (r(), l("blockquote", {
|
|
813
|
+
key: d,
|
|
814
|
+
class: _(i.class)
|
|
1433
815
|
}, [
|
|
1434
|
-
|
|
1435
|
-
innerHTML:
|
|
1436
|
-
}, null, 8,
|
|
1437
|
-
|
|
1438
|
-
innerHTML:
|
|
1439
|
-
}, null, 8,
|
|
816
|
+
c("div", {
|
|
817
|
+
innerHTML: i.quote
|
|
818
|
+
}, null, 8, ct),
|
|
819
|
+
c("cite", {
|
|
820
|
+
innerHTML: i.cite
|
|
821
|
+
}, null, 8, ut)
|
|
1440
822
|
], 2))), 128))
|
|
1441
823
|
]),
|
|
1442
|
-
|
|
1443
|
-
|
|
824
|
+
c("div", mt, [
|
|
825
|
+
f(t.$slots, "default")
|
|
1444
826
|
])
|
|
1445
827
|
])
|
|
1446
828
|
]),
|
|
1447
|
-
|
|
829
|
+
pt
|
|
1448
830
|
], 2)
|
|
1449
831
|
], 512);
|
|
1450
832
|
}
|
|
1451
|
-
const
|
|
1452
|
-
const
|
|
833
|
+
const Ga = /* @__PURE__ */ p(et, [["render", ht]]);
|
|
834
|
+
const ft = {
|
|
1453
835
|
name: "Timeline",
|
|
1454
836
|
props: {
|
|
1455
837
|
image: {
|
|
@@ -1457,23 +839,23 @@ const ta = {
|
|
|
1457
839
|
required: !1
|
|
1458
840
|
}
|
|
1459
841
|
}
|
|
1460
|
-
},
|
|
1461
|
-
function
|
|
1462
|
-
return
|
|
1463
|
-
|
|
1464
|
-
|
|
842
|
+
}, bt = { class: "timeline" }, gt = { class: "timeline__content" }, yt = ["src"];
|
|
843
|
+
function vt(t, a, e, s, o, n) {
|
|
844
|
+
return r(), l("div", bt, [
|
|
845
|
+
c("div", gt, [
|
|
846
|
+
f(t.$slots, "default")
|
|
1465
847
|
]),
|
|
1466
|
-
|
|
848
|
+
e.image ? (r(), l("img", {
|
|
1467
849
|
key: 0,
|
|
1468
|
-
src:
|
|
850
|
+
src: e.image,
|
|
1469
851
|
alt: ""
|
|
1470
|
-
}, null, 8,
|
|
852
|
+
}, null, 8, yt)) : b("", !0)
|
|
1471
853
|
]);
|
|
1472
854
|
}
|
|
1473
|
-
const
|
|
1474
|
-
const
|
|
855
|
+
const Qa = /* @__PURE__ */ p(ft, [["render", vt]]);
|
|
856
|
+
const _t = {
|
|
1475
857
|
components: {
|
|
1476
|
-
Input:
|
|
858
|
+
Input: R
|
|
1477
859
|
},
|
|
1478
860
|
name: "PropertySearchbar",
|
|
1479
861
|
props: {
|
|
@@ -1598,8 +980,8 @@ const na = {
|
|
|
1598
980
|
};
|
|
1599
981
|
},
|
|
1600
982
|
methods: {
|
|
1601
|
-
locationKeyup: function(
|
|
1602
|
-
this.$emit("locationKeyup",
|
|
983
|
+
locationKeyup: function(t) {
|
|
984
|
+
this.$emit("locationKeyup", t);
|
|
1603
985
|
}
|
|
1604
986
|
},
|
|
1605
987
|
computed: {
|
|
@@ -1607,8 +989,8 @@ const na = {
|
|
|
1607
989
|
get() {
|
|
1608
990
|
return this.locationSave ? this.locationSave : this.location;
|
|
1609
991
|
},
|
|
1610
|
-
set(
|
|
1611
|
-
this.locationSave =
|
|
992
|
+
set(t) {
|
|
993
|
+
this.locationSave = t, this.$emit("input", t);
|
|
1612
994
|
}
|
|
1613
995
|
},
|
|
1614
996
|
locationsList() {
|
|
@@ -1617,130 +999,130 @@ const na = {
|
|
|
1617
999
|
];
|
|
1618
1000
|
}
|
|
1619
1001
|
}
|
|
1620
|
-
},
|
|
1002
|
+
}, wt = {
|
|
1621
1003
|
class: "container",
|
|
1622
1004
|
ref: "wrapper"
|
|
1623
|
-
},
|
|
1005
|
+
}, $t = { class: "property-searchbar" }, kt = ["action", "method"], At = { class: "col-12 col-md-3" }, xt = { class: "col-12 col-md" }, Lt = /* @__PURE__ */ c("span", { class: "form-label d-none d-md-block" }, "Price range", -1), St = {
|
|
1624
1006
|
class: "row",
|
|
1625
1007
|
"data-input-range": ""
|
|
1626
|
-
},
|
|
1008
|
+
}, qt = { class: "col-12 col-md" }, Et = /* @__PURE__ */ c("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), Tt = {
|
|
1627
1009
|
class: "row",
|
|
1628
1010
|
"data-input-range": ""
|
|
1629
|
-
},
|
|
1630
|
-
/* @__PURE__ */
|
|
1011
|
+
}, Ht = { class: "col-12 col-md-2" }, Mt = /* @__PURE__ */ c("div", { class: "col-12 col-md mw-md-fit-content d-flex property-searchbar__btn" }, [
|
|
1012
|
+
/* @__PURE__ */ c("button", {
|
|
1631
1013
|
class: "btn w-100 me-0",
|
|
1632
1014
|
type: "submit",
|
|
1633
1015
|
value: "submit"
|
|
1634
1016
|
}, "Search")
|
|
1635
1017
|
], -1);
|
|
1636
|
-
function
|
|
1637
|
-
const
|
|
1638
|
-
return
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1018
|
+
function jt(t, a, e, s, o, n) {
|
|
1019
|
+
const i = M("Input");
|
|
1020
|
+
return r(), l("div", wt, [
|
|
1021
|
+
f(t.$slots, "default"),
|
|
1022
|
+
c("div", $t, [
|
|
1023
|
+
c("form", {
|
|
1642
1024
|
class: "row",
|
|
1643
|
-
action:
|
|
1644
|
-
method:
|
|
1025
|
+
action: e.formaction,
|
|
1026
|
+
method: e.formmethod
|
|
1645
1027
|
}, [
|
|
1646
|
-
|
|
1647
|
-
|
|
1028
|
+
c("fieldset", At, [
|
|
1029
|
+
k(i, {
|
|
1648
1030
|
inputClass: "input--locations",
|
|
1649
|
-
modelValue:
|
|
1650
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
1031
|
+
modelValue: n.locationSet,
|
|
1032
|
+
"onUpdate:modelValue": a[0] || (a[0] = (d) => n.locationSet = d),
|
|
1651
1033
|
label: "Location",
|
|
1652
1034
|
id: "location",
|
|
1653
|
-
options:
|
|
1035
|
+
options: n.locationsList(),
|
|
1654
1036
|
required: "",
|
|
1655
1037
|
placeholder: "i.e. Newcastle or NE1",
|
|
1656
|
-
onKeyupEvent: a[1] || (a[1] = (
|
|
1038
|
+
onKeyupEvent: a[1] || (a[1] = (d) => n.locationKeyup(...arguments)),
|
|
1657
1039
|
ref: "search"
|
|
1658
1040
|
}, null, 8, ["modelValue", "options"]),
|
|
1659
|
-
|
|
1041
|
+
k(i, {
|
|
1660
1042
|
class: "select--miles",
|
|
1661
1043
|
label: "Miles",
|
|
1662
1044
|
id: "miles",
|
|
1663
1045
|
type: "select",
|
|
1664
|
-
options:
|
|
1046
|
+
options: e.distances
|
|
1665
1047
|
}, null, 8, ["options"])
|
|
1666
1048
|
]),
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1049
|
+
c("fieldset", xt, [
|
|
1050
|
+
Lt,
|
|
1051
|
+
c("div", St, [
|
|
1052
|
+
k(i, {
|
|
1671
1053
|
class: "col-6",
|
|
1672
1054
|
label: "Minimum price",
|
|
1673
1055
|
id: "price-min",
|
|
1674
1056
|
"data-min": "true",
|
|
1675
1057
|
type: "select",
|
|
1676
|
-
options:
|
|
1058
|
+
options: e.pricemin
|
|
1677
1059
|
}, null, 8, ["options"]),
|
|
1678
|
-
|
|
1060
|
+
k(i, {
|
|
1679
1061
|
class: "col-6",
|
|
1680
1062
|
label: "Maximum price",
|
|
1681
1063
|
id: "price-max",
|
|
1682
1064
|
"data-max": "true",
|
|
1683
1065
|
type: "select",
|
|
1684
|
-
options:
|
|
1066
|
+
options: e.pricemax
|
|
1685
1067
|
}, null, 8, ["options"])
|
|
1686
1068
|
])
|
|
1687
1069
|
]),
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1070
|
+
c("fieldset", qt, [
|
|
1071
|
+
Et,
|
|
1072
|
+
c("div", Tt, [
|
|
1073
|
+
k(i, {
|
|
1692
1074
|
class: "col-6",
|
|
1693
1075
|
label: "Minimum beds",
|
|
1694
1076
|
id: "beds-min",
|
|
1695
1077
|
"data-min": "true",
|
|
1696
1078
|
type: "select",
|
|
1697
|
-
options:
|
|
1079
|
+
options: e.bedsmin
|
|
1698
1080
|
}, null, 8, ["options"]),
|
|
1699
|
-
|
|
1081
|
+
k(i, {
|
|
1700
1082
|
class: "col-6",
|
|
1701
1083
|
label: "Maximum beds",
|
|
1702
1084
|
id: "beds-max",
|
|
1703
1085
|
"data-max": "true",
|
|
1704
1086
|
type: "select",
|
|
1705
|
-
options:
|
|
1087
|
+
options: e.bedsmax
|
|
1706
1088
|
}, null, 8, ["options"])
|
|
1707
1089
|
])
|
|
1708
1090
|
]),
|
|
1709
|
-
|
|
1710
|
-
|
|
1091
|
+
c("fieldset", Ht, [
|
|
1092
|
+
k(i, {
|
|
1711
1093
|
label: "Property type",
|
|
1712
1094
|
id: "property-type",
|
|
1713
1095
|
type: "select",
|
|
1714
|
-
options:
|
|
1096
|
+
options: e.propertytypes
|
|
1715
1097
|
}, null, 8, ["options"])
|
|
1716
1098
|
]),
|
|
1717
|
-
|
|
1718
|
-
], 8,
|
|
1099
|
+
Mt
|
|
1100
|
+
], 8, kt)
|
|
1719
1101
|
]),
|
|
1720
|
-
|
|
1102
|
+
f(t.$slots, "after")
|
|
1721
1103
|
], 512);
|
|
1722
1104
|
}
|
|
1723
|
-
const
|
|
1105
|
+
const Ya = /* @__PURE__ */ p(_t, [["render", jt]]), Ct = {
|
|
1724
1106
|
components: {},
|
|
1725
1107
|
name: "Nav",
|
|
1726
1108
|
mounted() {
|
|
1727
1109
|
this.$nextTick(function() {
|
|
1728
|
-
|
|
1729
|
-
window.customElements.get("iam-nav") || window.customElements.define("iam-nav",
|
|
1730
|
-
}).catch((
|
|
1731
|
-
console.log(
|
|
1110
|
+
S(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/nav/nav.component.js": () => import("./nav.component-ff8d1484.mjs"), "../../../assets/js/components/nav/nav.component.min.js": () => import("./nav.component.min-0ee8d20f.mjs") }), "../../../assets/js/components/nav/nav.component.js").then((t) => {
|
|
1111
|
+
window.customElements.get("iam-nav") || window.customElements.define("iam-nav", t.default);
|
|
1112
|
+
}).catch((t) => {
|
|
1113
|
+
console.log(t.message);
|
|
1732
1114
|
});
|
|
1733
1115
|
});
|
|
1734
1116
|
},
|
|
1735
1117
|
methods: {}
|
|
1736
|
-
},
|
|
1737
|
-
function
|
|
1738
|
-
return
|
|
1739
|
-
|
|
1118
|
+
}, Nt = { ref: "wrapper" };
|
|
1119
|
+
function Rt(t, a, e, s, o, n) {
|
|
1120
|
+
return r(), l("iam-nav", Nt, [
|
|
1121
|
+
f(t.$slots, "default")
|
|
1740
1122
|
], 512);
|
|
1741
1123
|
}
|
|
1742
|
-
const
|
|
1743
|
-
const
|
|
1124
|
+
const Ja = /* @__PURE__ */ p(Ct, [["render", Rt]]);
|
|
1125
|
+
const Pt = {
|
|
1744
1126
|
name: "Stepper",
|
|
1745
1127
|
props: {
|
|
1746
1128
|
label: {
|
|
@@ -1753,26 +1135,26 @@ const Aa = {
|
|
|
1753
1135
|
default: "Complete"
|
|
1754
1136
|
}
|
|
1755
1137
|
}
|
|
1756
|
-
},
|
|
1138
|
+
}, zt = { class: "container" }, It = ["aria-label"], Dt = {
|
|
1757
1139
|
key: 0,
|
|
1758
1140
|
class: "h6 stepper__start"
|
|
1759
|
-
},
|
|
1760
|
-
function
|
|
1761
|
-
return
|
|
1762
|
-
|
|
1141
|
+
}, Ft = { class: "list-unstyled" }, Vt = { class: "h6 stepper__end" };
|
|
1142
|
+
function Ot(t, a, e, s, o, n) {
|
|
1143
|
+
return r(), l("div", zt, [
|
|
1144
|
+
c("nav", {
|
|
1763
1145
|
class: "stepper",
|
|
1764
|
-
"aria-label":
|
|
1146
|
+
"aria-label": e.label ? e.label : "Progress"
|
|
1765
1147
|
}, [
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1148
|
+
e.label ? (r(), l("span", Dt, w(e.label), 1)) : b("", !0),
|
|
1149
|
+
c("ol", Ft, [
|
|
1150
|
+
f(t.$slots, "default")
|
|
1769
1151
|
]),
|
|
1770
|
-
|
|
1771
|
-
], 8,
|
|
1152
|
+
c("span", Vt, w(e.endlabel), 1)
|
|
1153
|
+
], 8, It)
|
|
1772
1154
|
]);
|
|
1773
1155
|
}
|
|
1774
|
-
const
|
|
1775
|
-
const
|
|
1156
|
+
const Xa = /* @__PURE__ */ p(Pt, [["render", Ot]]);
|
|
1157
|
+
const Bt = {
|
|
1776
1158
|
name: "Snapshot",
|
|
1777
1159
|
props: {
|
|
1778
1160
|
items: {
|
|
@@ -1780,33 +1162,33 @@ const Ea = {
|
|
|
1780
1162
|
required: !0
|
|
1781
1163
|
}
|
|
1782
1164
|
}
|
|
1783
|
-
},
|
|
1165
|
+
}, Ut = {
|
|
1784
1166
|
class: "container snapshot",
|
|
1785
1167
|
ref: "wrapper"
|
|
1786
|
-
},
|
|
1787
|
-
function
|
|
1788
|
-
return
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
(
|
|
1168
|
+
}, Wt = { class: "row" }, Kt = ["href"], Gt = { class: "lead snapshot__title" }, Qt = { class: "stat" };
|
|
1169
|
+
function Yt(t, a, e, s, o, n) {
|
|
1170
|
+
return r(), l("div", Ut, [
|
|
1171
|
+
f(t.$slots, "default"),
|
|
1172
|
+
c("div", Wt, [
|
|
1173
|
+
(r(!0), l(x, null, L(e.items, (i, d) => (r(), l("div", {
|
|
1792
1174
|
class: "col",
|
|
1793
|
-
key:
|
|
1175
|
+
key: d
|
|
1794
1176
|
}, [
|
|
1795
|
-
|
|
1177
|
+
i.link ? (r(), l("a", {
|
|
1796
1178
|
key: 0,
|
|
1797
|
-
href:
|
|
1798
|
-
}, "View " +
|
|
1799
|
-
|
|
1800
|
-
class:
|
|
1179
|
+
href: i.link
|
|
1180
|
+
}, "View " + w(i.title), 9, Kt)) : b("", !0),
|
|
1181
|
+
c("div", {
|
|
1182
|
+
class: _(`snapshot__item ${i.bg ? "bg-" + i.bg : ""}`)
|
|
1801
1183
|
}, [
|
|
1802
|
-
|
|
1803
|
-
|
|
1184
|
+
c("span", Gt, w(i.title), 1),
|
|
1185
|
+
c("span", Qt, w(i.number), 1)
|
|
1804
1186
|
], 2)
|
|
1805
1187
|
]))), 128))
|
|
1806
1188
|
])
|
|
1807
1189
|
], 512);
|
|
1808
1190
|
}
|
|
1809
|
-
const
|
|
1191
|
+
const Za = /* @__PURE__ */ p(Bt, [["render", Yt]]), Jt = {
|
|
1810
1192
|
name: "Stepper",
|
|
1811
1193
|
props: {
|
|
1812
1194
|
url: {
|
|
@@ -1822,43 +1204,43 @@ const Ii = /* @__PURE__ */ y(Ea, [["render", Da]]), Na = {
|
|
|
1822
1204
|
required: !1
|
|
1823
1205
|
}
|
|
1824
1206
|
}
|
|
1825
|
-
},
|
|
1207
|
+
}, Xt = ["href", "aria-current"], Zt = {
|
|
1826
1208
|
key: 0,
|
|
1827
1209
|
class: "visually-hidden"
|
|
1828
1210
|
};
|
|
1829
|
-
function
|
|
1830
|
-
return
|
|
1831
|
-
|
|
1832
|
-
href:
|
|
1833
|
-
class:
|
|
1834
|
-
"aria-current": typeof
|
|
1211
|
+
function ea(t, a, e, s, o, n) {
|
|
1212
|
+
return r(), l("li", null, [
|
|
1213
|
+
c("a", {
|
|
1214
|
+
href: e.url,
|
|
1215
|
+
class: _(`${e.status ? "bg-" + e.status : ""}${typeof e.current < "u" ? "current" : ""}`),
|
|
1216
|
+
"aria-current": typeof e.current < "u" ? "step" : !1
|
|
1835
1217
|
}, [
|
|
1836
|
-
|
|
1837
|
-
|
|
1218
|
+
c("span", null, [
|
|
1219
|
+
f(t.$slots, "default")
|
|
1838
1220
|
]),
|
|
1839
|
-
|
|
1840
|
-
], 10,
|
|
1221
|
+
e.status ? (r(), l("em", Zt, " - status: " + w(e.status), 1)) : b("", !0)
|
|
1222
|
+
], 10, Xt)
|
|
1841
1223
|
]);
|
|
1842
1224
|
}
|
|
1843
|
-
const
|
|
1844
|
-
const
|
|
1225
|
+
const es = /* @__PURE__ */ p(Jt, [["render", ea]]);
|
|
1226
|
+
const ta = {
|
|
1845
1227
|
name: "Tabs",
|
|
1846
1228
|
mounted() {
|
|
1847
1229
|
this.$nextTick(function() {
|
|
1848
|
-
|
|
1849
|
-
window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs",
|
|
1850
|
-
}).catch((
|
|
1851
|
-
console.log(
|
|
1230
|
+
S(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/tabs/tabs.component.js": () => import("./tabs.component-1dfbdb3b.mjs"), "../../../assets/js/components/tabs/tabs.component.min.js": () => import("./tabs.component.min-d050a424.mjs") }), "../../../assets/js/components/tabs/tabs.component.js").then((t) => {
|
|
1231
|
+
window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", t.default);
|
|
1232
|
+
}).catch((t) => {
|
|
1233
|
+
console.log(t.message);
|
|
1852
1234
|
});
|
|
1853
1235
|
});
|
|
1854
1236
|
}
|
|
1855
|
-
},
|
|
1856
|
-
function
|
|
1857
|
-
return
|
|
1858
|
-
|
|
1237
|
+
}, aa = { ref: "wrapper" };
|
|
1238
|
+
function sa(t, a, e, s, o, n) {
|
|
1239
|
+
return r(), l("iam-tabs", aa, [
|
|
1240
|
+
f(t.$slots, "default")
|
|
1859
1241
|
], 512);
|
|
1860
1242
|
}
|
|
1861
|
-
const
|
|
1243
|
+
const ts = /* @__PURE__ */ p(ta, [["render", sa]]), ia = {
|
|
1862
1244
|
name: "Tab",
|
|
1863
1245
|
props: {
|
|
1864
1246
|
title: {
|
|
@@ -1880,23 +1262,23 @@ const Oi = /* @__PURE__ */ y(za, [["render", Fa]]), Ba = {
|
|
|
1880
1262
|
isDisabled: !!this.disabled
|
|
1881
1263
|
};
|
|
1882
1264
|
}
|
|
1883
|
-
},
|
|
1884
|
-
function
|
|
1885
|
-
return
|
|
1886
|
-
|
|
1887
|
-
innerHTML:
|
|
1888
|
-
class:
|
|
1889
|
-
}, null, 10,
|
|
1890
|
-
|
|
1265
|
+
}, na = { class: "tab" }, oa = ["innerHTML"];
|
|
1266
|
+
function ra(t, a, e, s, o, n) {
|
|
1267
|
+
return r(), l("details", na, [
|
|
1268
|
+
c("summary", {
|
|
1269
|
+
innerHTML: e.title,
|
|
1270
|
+
class: _({ disabled: o.isDisabled })
|
|
1271
|
+
}, null, 10, oa),
|
|
1272
|
+
f(t.$slots, "default")
|
|
1891
1273
|
]);
|
|
1892
1274
|
}
|
|
1893
|
-
const
|
|
1894
|
-
let
|
|
1895
|
-
|
|
1896
|
-
const
|
|
1275
|
+
const as = /* @__PURE__ */ p(ia, [["render", ra]]);
|
|
1276
|
+
let P = N.props;
|
|
1277
|
+
P.fields.required = !1;
|
|
1278
|
+
const la = {
|
|
1897
1279
|
components: {
|
|
1898
|
-
Table:
|
|
1899
|
-
Input:
|
|
1280
|
+
Table: N,
|
|
1281
|
+
Input: R
|
|
1900
1282
|
},
|
|
1901
1283
|
data() {
|
|
1902
1284
|
return {
|
|
@@ -1905,17 +1287,17 @@ const Ka = {
|
|
|
1905
1287
|
};
|
|
1906
1288
|
},
|
|
1907
1289
|
methods: {
|
|
1908
|
-
submitForm: function(
|
|
1290
|
+
submitForm: function(t) {
|
|
1909
1291
|
console.log(this);
|
|
1910
|
-
const a = new FormData(
|
|
1911
|
-
let
|
|
1912
|
-
const
|
|
1913
|
-
let
|
|
1914
|
-
|
|
1915
|
-
date_added:
|
|
1292
|
+
const a = new FormData(t.target);
|
|
1293
|
+
let e = /* @__PURE__ */ new Date();
|
|
1294
|
+
const s = e.getFullYear();
|
|
1295
|
+
let o = e.getMonth() + 1, n = e.getDate();
|
|
1296
|
+
n < 10 && (n = "0" + n), o < 10 && (o = "0" + o), e = n + "/" + o + "/" + s, this.itemsData.unshift({
|
|
1297
|
+
date_added: e,
|
|
1916
1298
|
user: a.get("user"),
|
|
1917
1299
|
note: a.get("addNote")
|
|
1918
|
-
}), this.$emit("formSubmitted",
|
|
1300
|
+
}), this.$emit("formSubmitted", t);
|
|
1919
1301
|
}
|
|
1920
1302
|
},
|
|
1921
1303
|
name: "NoteFeed",
|
|
@@ -1924,7 +1306,7 @@ const Ka = {
|
|
|
1924
1306
|
type: String,
|
|
1925
1307
|
required: !0
|
|
1926
1308
|
},
|
|
1927
|
-
...
|
|
1309
|
+
...P,
|
|
1928
1310
|
title: {
|
|
1929
1311
|
type: String,
|
|
1930
1312
|
required: !1
|
|
@@ -1939,168 +1321,168 @@ const Ka = {
|
|
|
1939
1321
|
required: !1
|
|
1940
1322
|
}
|
|
1941
1323
|
}
|
|
1942
|
-
},
|
|
1943
|
-
function
|
|
1944
|
-
const
|
|
1945
|
-
return
|
|
1946
|
-
|
|
1324
|
+
}, da = { class: "container note-feed mb-2" }, ca = ["innerHTML"], ua = ["action", "method"], ma = ["value"], pa = /* @__PURE__ */ c("button", { class: "btn btn-tertiary" }, "Submit note", -1);
|
|
1325
|
+
function ha(t, a, e, s, o, n) {
|
|
1326
|
+
const i = M("Table"), d = M("Input");
|
|
1327
|
+
return r(), l("div", da, [
|
|
1328
|
+
e.title ? (r(), l("span", {
|
|
1947
1329
|
key: 0,
|
|
1948
1330
|
class: "h3",
|
|
1949
|
-
innerHTML:
|
|
1950
|
-
}, null, 8,
|
|
1951
|
-
|
|
1331
|
+
innerHTML: e.title
|
|
1332
|
+
}, null, 8, ca)) : b("", !0),
|
|
1333
|
+
k(i, A({
|
|
1952
1334
|
fields: [{ key: "date_added" }, { key: "user" }, { key: "note" }],
|
|
1953
|
-
items:
|
|
1954
|
-
},
|
|
1955
|
-
|
|
1956
|
-
action:
|
|
1957
|
-
method:
|
|
1958
|
-
onSubmit: a[0] || (a[0] =
|
|
1335
|
+
items: o.itemsData
|
|
1336
|
+
}, t.$props, { class: "mb-0" }), null, 16, ["items"]),
|
|
1337
|
+
c("form", {
|
|
1338
|
+
action: e.action,
|
|
1339
|
+
method: e.method,
|
|
1340
|
+
onSubmit: a[0] || (a[0] = O((u) => n.submitForm(...arguments), ["prevent"]))
|
|
1959
1341
|
}, [
|
|
1960
|
-
|
|
1342
|
+
c("input", {
|
|
1961
1343
|
type: "hidden",
|
|
1962
|
-
value:
|
|
1344
|
+
value: e.user,
|
|
1963
1345
|
name: "user"
|
|
1964
|
-
}, null, 8,
|
|
1965
|
-
|
|
1346
|
+
}, null, 8, ma),
|
|
1347
|
+
k(d, {
|
|
1966
1348
|
id: "addNote",
|
|
1967
1349
|
type: "textarea",
|
|
1968
1350
|
label: "Add note",
|
|
1969
1351
|
required: "",
|
|
1970
1352
|
class: "mw-100"
|
|
1971
1353
|
}),
|
|
1972
|
-
|
|
1973
|
-
], 40,
|
|
1354
|
+
pa
|
|
1355
|
+
], 40, ua)
|
|
1974
1356
|
]);
|
|
1975
1357
|
}
|
|
1976
|
-
const
|
|
1358
|
+
const ss = /* @__PURE__ */ p(la, [["render", ha]]);
|
|
1977
1359
|
/*!
|
|
1978
|
-
* iamKey v5.3.0-
|
|
1360
|
+
* iamKey v5.3.0-beta3
|
|
1979
1361
|
* Copyright 2022-2024 iamproperty
|
|
1980
1362
|
*/
|
|
1981
|
-
function
|
|
1982
|
-
function
|
|
1983
|
-
let
|
|
1984
|
-
|
|
1985
|
-
let
|
|
1986
|
-
|
|
1987
|
-
let
|
|
1988
|
-
if (
|
|
1989
|
-
let
|
|
1990
|
-
if (
|
|
1991
|
-
let
|
|
1992
|
-
if (
|
|
1993
|
-
let
|
|
1994
|
-
|
|
1363
|
+
function fa(t, a) {
|
|
1364
|
+
function e(s, o) {
|
|
1365
|
+
let n = !1, i = o.getAttribute("name");
|
|
1366
|
+
i.includes("[]") && (i = i.replace("[]", `[${o.value}]`));
|
|
1367
|
+
let d = s.querySelector(`[data-name="${i}"]`);
|
|
1368
|
+
d && o.getAttribute("type") == "checkbox" && (n = !o.checked);
|
|
1369
|
+
let u = o.getAttribute("data-filter-text");
|
|
1370
|
+
if (d || (d = document.createElement("button"), s.appendChild(d)), d.setAttribute("type", "button"), d.classList.add("filter"), d.setAttribute("data-name", i), d.innerHTML = u.replace("$value", o.value), (!o.value || n) && d.remove(), o.parentNode.closest("[data-filter-text]")) {
|
|
1371
|
+
let h = o.parentNode.closest("[data-filter-text]"), g = !0;
|
|
1372
|
+
if (i = "", h.querySelectorAll("input").forEach((m, y) => {
|
|
1373
|
+
let v = m.getAttribute("name");
|
|
1374
|
+
if (i += `${y != 0 ? "," : ""}${v}`, s.querySelector(`[data-name="${v}"]`) && s.querySelector(`[data-name="${v}"]`).remove(), m.value) {
|
|
1375
|
+
let $ = document.createElement("button");
|
|
1376
|
+
$.setAttribute("type", "button"), $.classList.add("filter"), $.setAttribute("data-name", v), $.innerHTML = u.replace("$value", m.value), s.appendChild($);
|
|
1995
1377
|
} else
|
|
1996
|
-
|
|
1997
|
-
}),
|
|
1998
|
-
let
|
|
1999
|
-
|
|
2000
|
-
let
|
|
2001
|
-
|
|
1378
|
+
g = !1;
|
|
1379
|
+
}), s.querySelector(`[data-name="${i}"]`) && s.querySelector(`[data-name="${i}"]`).remove(), g) {
|
|
1380
|
+
let m = h.getAttribute("data-filter-text");
|
|
1381
|
+
h.querySelectorAll("input").forEach((v, $) => {
|
|
1382
|
+
let q = v.getAttribute("name");
|
|
1383
|
+
s.querySelector(`[data-name="${q}"]`) && s.querySelector(`[data-name="${q}"]`).remove(), m = m.replace(`$${$ + 1}`, v.value);
|
|
2002
1384
|
});
|
|
2003
|
-
let
|
|
2004
|
-
|
|
1385
|
+
let y = document.createElement("button");
|
|
1386
|
+
y.setAttribute("type", "button"), y.classList.add("filter"), y.setAttribute("data-name", i), y.innerHTML = m, s.appendChild(y);
|
|
2005
1387
|
}
|
|
2006
1388
|
}
|
|
2007
1389
|
}
|
|
2008
|
-
Array.from(
|
|
2009
|
-
|
|
2010
|
-
}), Array.from(
|
|
2011
|
-
|
|
2012
|
-
|
|
1390
|
+
Array.from(t.querySelectorAll('input[type="checkbox"]:checked')).forEach((s, o) => {
|
|
1391
|
+
e(a, s);
|
|
1392
|
+
}), Array.from(t.querySelectorAll("input[data-filter-text]")).forEach((s, o) => {
|
|
1393
|
+
s.addEventListener("change", function(n) {
|
|
1394
|
+
e(a, s), n.stopPropagation();
|
|
2013
1395
|
});
|
|
2014
|
-
}),
|
|
2015
|
-
if (
|
|
2016
|
-
let
|
|
2017
|
-
|
|
1396
|
+
}), t.addEventListener("change", function(s) {
|
|
1397
|
+
if (s && s.target instanceof HTMLElement && s.target.closest("input[data-filter-text]")) {
|
|
1398
|
+
let o = s.target.closest("input[data-filter-text]");
|
|
1399
|
+
e(a, o);
|
|
2018
1400
|
}
|
|
2019
|
-
}), a.addEventListener("click", function(
|
|
2020
|
-
if (
|
|
2021
|
-
let
|
|
2022
|
-
for (var
|
|
2023
|
-
let
|
|
2024
|
-
|
|
2025
|
-
let
|
|
2026
|
-
for (var
|
|
2027
|
-
let
|
|
2028
|
-
if (
|
|
2029
|
-
|
|
1401
|
+
}), a.addEventListener("click", function(s) {
|
|
1402
|
+
if (s && s.target instanceof HTMLElement && s.target.closest(".filter")) {
|
|
1403
|
+
let i = s.target.closest(".filter"), d = i.getAttribute("data-name").split(",");
|
|
1404
|
+
for (var o = 0; o < d.length; o++) {
|
|
1405
|
+
let u = d[o], h = `[name="${u}"]`;
|
|
1406
|
+
u.match(/\[(.*)\]/) && (u.replace(/\[(.*)\]/, "[]"), h = `[value="${u.replace(/.*\[(.*)\]/, "$1")}"]`);
|
|
1407
|
+
let g = t.querySelectorAll(h);
|
|
1408
|
+
for (var n = 0; n < g.length; n++) {
|
|
1409
|
+
let m = g[n];
|
|
1410
|
+
if (m.getAttribute("type") != "radio" && m.getAttribute("type") != "checkbox")
|
|
1411
|
+
m.value = "";
|
|
2030
1412
|
else {
|
|
2031
|
-
|
|
2032
|
-
var
|
|
2033
|
-
|
|
1413
|
+
m.checked = !1;
|
|
1414
|
+
var s = new Event("force");
|
|
1415
|
+
t.hasAttribute("data-nosubmit") || m.closest("form").dispatchEvent(s);
|
|
2034
1416
|
}
|
|
2035
1417
|
}
|
|
2036
1418
|
}
|
|
2037
|
-
|
|
1419
|
+
i.remove();
|
|
2038
1420
|
}
|
|
2039
1421
|
}, !1);
|
|
2040
1422
|
}
|
|
2041
1423
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "Applied Filters" });
|
|
2042
|
-
class
|
|
1424
|
+
class ba extends HTMLElement {
|
|
2043
1425
|
constructor() {
|
|
2044
1426
|
super(), this.attachShadow({ mode: "open" });
|
|
2045
|
-
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets",
|
|
2046
|
-
let
|
|
2047
|
-
const
|
|
2048
|
-
|
|
1427
|
+
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`;
|
|
1428
|
+
let s = this.classList.toString();
|
|
1429
|
+
const o = document.createElement("template");
|
|
1430
|
+
o.innerHTML = `
|
|
2049
1431
|
<style>
|
|
2050
|
-
@import "${
|
|
1432
|
+
@import "${e}";
|
|
2051
1433
|
.applied-filters:not(.applied-filters--compact):not(:empty):before{content:"Applied filters";font-weight:bold;font-size:1.125rem;line-height:1.375rem;color:var(--colour-header);margin-bottom:1rem;display:block}.applied-filters:not(:empty){margin-bottom:1rem}::slotted(*:last-child){margin-bottom:0}.applied-filters .filter{border:1px solid var(--colour-border);padding:1rem 1.5rem 1rem 1.5rem;background:rgba(0,0,0,0);margin-right:.5rem !important;margin-bottom:.5rem !important;line-height:1.5rem;white-space:nowrap}.applied-filters .filter:after{content:"";display:inline-block;height:1.25rem;width:1.25rem;padding:0;margin-left:1.5rem;margin-bottom:-0.25rem;border:none;z-index:var(--index-focus);background:currentColor;mask-image:var(--icon-close);mask-size:100%;mask-repeat:no-repeat;mask-position:50% 50%;-webkit-mask-image:var(--icon-close);-webkit-mask-size:100%;-webkit-mask-repeat:no-repeat;-webkit-mask-position:50% 50%}.applied-filters--compact .filter{background-color:var(--colour-light);border:none;padding:0.625rem;line-height:1rem;border-radius:0.3125rem}.applied-filters--compact .filter:after{margin-left:0.625rem;height:1rem;width:1rem;margin-bottom:-0.1rem}/*# sourceMappingURL=assets/css/components/applied-filters.css.map */
|
|
2052
1434
|
|
|
2053
1435
|
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
2054
1436
|
</style>
|
|
2055
|
-
<div class="applied-filters ${
|
|
1437
|
+
<div class="applied-filters ${s}"></div>
|
|
2056
1438
|
<slot></slot>
|
|
2057
|
-
`, this.shadowRoot.appendChild(
|
|
1439
|
+
`, this.shadowRoot.appendChild(o.content.cloneNode(!0));
|
|
2058
1440
|
}
|
|
2059
1441
|
connectedCallback() {
|
|
2060
|
-
|
|
1442
|
+
fa(this, this.shadowRoot.querySelector(".applied-filters"));
|
|
2061
1443
|
}
|
|
2062
1444
|
}
|
|
2063
|
-
window.customElements.get("iam-applied-filters") || window.customElements.define("iam-applied-filters",
|
|
2064
|
-
const
|
|
1445
|
+
window.customElements.get("iam-applied-filters") || window.customElements.define("iam-applied-filters", ba);
|
|
1446
|
+
const ga = {
|
|
2065
1447
|
name: "Header"
|
|
2066
1448
|
};
|
|
2067
|
-
function
|
|
2068
|
-
return
|
|
2069
|
-
|
|
1449
|
+
function ya(t, a, e, s, o, n) {
|
|
1450
|
+
return r(), l("iam-applied-filters", null, [
|
|
1451
|
+
f(t.$slots, "default")
|
|
2070
1452
|
]);
|
|
2071
1453
|
}
|
|
2072
|
-
const
|
|
1454
|
+
const is = /* @__PURE__ */ p(ga, [["render", ya]]);
|
|
2073
1455
|
/*!
|
|
2074
|
-
* iamKey v5.3.0-
|
|
1456
|
+
* iamKey v5.3.0-beta3
|
|
2075
1457
|
* Copyright 2022-2024 iamproperty
|
|
2076
1458
|
*/
|
|
2077
|
-
function
|
|
2078
|
-
|
|
1459
|
+
function va(t, a) {
|
|
1460
|
+
_a(t, a);
|
|
2079
1461
|
}
|
|
2080
|
-
function
|
|
2081
|
-
var
|
|
2082
|
-
a.addEventListener("keyup", (
|
|
2083
|
-
clearTimeout(
|
|
2084
|
-
|
|
1462
|
+
function _a(t, a) {
|
|
1463
|
+
var e;
|
|
1464
|
+
a.addEventListener("keyup", (s) => {
|
|
1465
|
+
clearTimeout(e), e = setTimeout(function() {
|
|
1466
|
+
C(t, a.value);
|
|
2085
1467
|
}, 500);
|
|
2086
|
-
}), a.addEventListener("change", (
|
|
2087
|
-
clearTimeout(
|
|
1468
|
+
}), a.addEventListener("change", (s) => {
|
|
1469
|
+
clearTimeout(e), C(t, a.value);
|
|
2088
1470
|
});
|
|
2089
1471
|
}
|
|
2090
|
-
const
|
|
2091
|
-
Array.from(
|
|
2092
|
-
let
|
|
2093
|
-
|
|
1472
|
+
const C = function(t, a) {
|
|
1473
|
+
Array.from(t.querySelectorAll(":scope > li")).forEach((e, s) => {
|
|
1474
|
+
let o = e.textContent.toLowerCase();
|
|
1475
|
+
e.classList.add("d-none"), o.includes(a.toLowerCase()) && e.classList.remove("d-none");
|
|
2094
1476
|
}), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Filtered list", value: a });
|
|
2095
1477
|
};
|
|
2096
1478
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "filterlist" });
|
|
2097
|
-
class
|
|
1479
|
+
class wa extends HTMLElement {
|
|
2098
1480
|
constructor() {
|
|
2099
1481
|
super(), this.attachShadow({ mode: "open" });
|
|
2100
|
-
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets",
|
|
2101
|
-
|
|
1482
|
+
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, s = document.createElement("template");
|
|
1483
|
+
s.innerHTML = `
|
|
2102
1484
|
<style>
|
|
2103
|
-
@import "${
|
|
1485
|
+
@import "${e}";
|
|
2104
1486
|
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
2105
1487
|
|
|
2106
1488
|
:host {
|
|
@@ -2125,86 +1507,86 @@ class oi extends HTMLElement {
|
|
|
2125
1507
|
<div class="list__wrapper">
|
|
2126
1508
|
<slot></slot>
|
|
2127
1509
|
</div>
|
|
2128
|
-
`, this.shadowRoot.appendChild(
|
|
1510
|
+
`, this.shadowRoot.appendChild(s.content.cloneNode(!0));
|
|
2129
1511
|
}
|
|
2130
1512
|
connectedCallback() {
|
|
2131
1513
|
let a = this.classList.toString();
|
|
2132
|
-
this.shadowRoot.querySelector(".list__wrapper").setAttribute("class", `list__wrapper ${a}`), this.querySelector("i.fa-search") || (this.innerHTML += '<i class="fa fa-light fa-search" aria-hidden="true" slot="icon"></i>'),
|
|
1514
|
+
this.shadowRoot.querySelector(".list__wrapper").setAttribute("class", `list__wrapper ${a}`), this.querySelector("i.fa-search") || (this.innerHTML += '<i class="fa fa-light fa-search" aria-hidden="true" slot="icon"></i>'), va(this.querySelector("ul"), this.shadowRoot.querySelector("#search"));
|
|
2133
1515
|
}
|
|
2134
1516
|
}
|
|
2135
|
-
window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist",
|
|
2136
|
-
const
|
|
1517
|
+
window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist", wa);
|
|
1518
|
+
const $a = {
|
|
2137
1519
|
name: "Filter list"
|
|
2138
1520
|
};
|
|
2139
|
-
function
|
|
2140
|
-
return
|
|
2141
|
-
|
|
1521
|
+
function ka(t, a, e, s, o, n) {
|
|
1522
|
+
return r(), l("iam-filterlist", null, [
|
|
1523
|
+
f(t.$slots, "default")
|
|
2142
1524
|
]);
|
|
2143
1525
|
}
|
|
2144
|
-
const
|
|
2145
|
-
function
|
|
2146
|
-
if (
|
|
2147
|
-
let
|
|
2148
|
-
|
|
1526
|
+
const ns = /* @__PURE__ */ p($a, [["render", ka]]);
|
|
1527
|
+
function Aa(t) {
|
|
1528
|
+
if (t.hasAttribute("data-type") && t.getAttribute("data-type") == "toast") {
|
|
1529
|
+
let e = document.querySelector(".notification__holder");
|
|
1530
|
+
e || (e = document.createElement("div"), e.classList.add("notification__holder"), e.classList.add("container"), document.querySelector("body").appendChild(e)), t.closest(".notification__holder") || e.appendChild(t);
|
|
2149
1531
|
}
|
|
2150
|
-
if (
|
|
2151
|
-
event && event.target instanceof HTMLElement && event.target.closest("[data-dismiss-button]") && (
|
|
2152
|
-
}, !1),
|
|
2153
|
-
let
|
|
2154
|
-
var a = new
|
|
2155
|
-
|
|
2156
|
-
},
|
|
2157
|
-
|
|
1532
|
+
if (t.setAttribute("role", "alert"), t.addEventListener("click", function(e) {
|
|
1533
|
+
event && event.target instanceof HTMLElement && event.target.closest("[data-dismiss-button]") && (e.preventDefault(), j(t));
|
|
1534
|
+
}, !1), t.hasAttribute("data-timeout")) {
|
|
1535
|
+
let e = t.getAttribute("data-timeout");
|
|
1536
|
+
var a = new xa(function() {
|
|
1537
|
+
j(t);
|
|
1538
|
+
}, e);
|
|
1539
|
+
t.addEventListener("mouseenter", (s) => {
|
|
2158
1540
|
a.pause();
|
|
2159
|
-
}),
|
|
1541
|
+
}), t.addEventListener("mouseleave", (s) => {
|
|
2160
1542
|
a.resume();
|
|
2161
1543
|
});
|
|
2162
1544
|
}
|
|
2163
1545
|
}
|
|
2164
|
-
function
|
|
2165
|
-
var
|
|
1546
|
+
function xa(t, a) {
|
|
1547
|
+
var e, s, o = a;
|
|
2166
1548
|
this.pause = function() {
|
|
2167
|
-
window.clearTimeout(
|
|
1549
|
+
window.clearTimeout(e), o -= /* @__PURE__ */ new Date() - s;
|
|
2168
1550
|
}, this.resume = function() {
|
|
2169
|
-
|
|
1551
|
+
s = /* @__PURE__ */ new Date(), window.clearTimeout(e), e = window.setTimeout(t, o);
|
|
2170
1552
|
}, this.resume();
|
|
2171
1553
|
}
|
|
2172
|
-
const
|
|
2173
|
-
|
|
1554
|
+
const j = function(t) {
|
|
1555
|
+
t.classList.add("d-none");
|
|
2174
1556
|
};
|
|
2175
1557
|
window.dataLayer = window.dataLayer || [];
|
|
2176
1558
|
window.dataLayer.push({
|
|
2177
1559
|
event: "customElementRegistered",
|
|
2178
1560
|
element: "Notification"
|
|
2179
1561
|
});
|
|
2180
|
-
class
|
|
1562
|
+
class La extends HTMLElement {
|
|
2181
1563
|
constructor() {
|
|
2182
1564
|
super(), this.attachShadow({ mode: "open" });
|
|
2183
|
-
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets",
|
|
2184
|
-
Array.from(
|
|
2185
|
-
|
|
2186
|
-
}), (
|
|
2187
|
-
const
|
|
2188
|
-
|
|
1565
|
+
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, s = `@import "${a}/css/components/notification.css";`, o = `@import "${a}/css/components/notification.global.css";`, n = this.querySelectorAll("a,button");
|
|
1566
|
+
Array.from(n).forEach((d, u) => {
|
|
1567
|
+
d.setAttribute("slot", "btns"), d.classList.add("link");
|
|
1568
|
+
}), (n.length || this.hasAttribute("data-dismiss")) && this.classList.add("notification--dismissable");
|
|
1569
|
+
const i = document.createElement("template");
|
|
1570
|
+
i.innerHTML = `
|
|
2189
1571
|
<style>
|
|
2190
|
-
@import "${
|
|
2191
|
-
${
|
|
1572
|
+
@import "${e}";
|
|
1573
|
+
${s}
|
|
2192
1574
|
${this.hasAttribute("data-css") ? `${this.getAttribute("data-css")}` : ""}
|
|
2193
1575
|
</style>
|
|
2194
1576
|
|
|
2195
1577
|
<div class="notification">
|
|
2196
1578
|
<div class="notification__icon"><slot name="icon"></slot></div>
|
|
2197
|
-
<div class="notification__inner"><div class="notification__text"><slot></slot></div>${
|
|
1579
|
+
<div class="notification__inner"><div class="notification__text"><slot></slot></div>${n.length ? '<div class="notification__btns"><slot name="btns"></slot></div>' : ""}</div>
|
|
2198
1580
|
${this.hasAttribute("data-dismiss") ? '<div class="notification__dismiss"><button data-dismiss-button>Dismiss</button></div>' : ""}
|
|
2199
1581
|
</div>
|
|
2200
|
-
`, this.shadowRoot.appendChild(
|
|
1582
|
+
`, this.shadowRoot.appendChild(i.content.cloneNode(!0)), document.getElementById("notificationHolder") || document.head.insertAdjacentHTML("beforeend", `<style id="notificationHolder">${o}</style>`);
|
|
2201
1583
|
}
|
|
2202
1584
|
connectedCallback() {
|
|
2203
|
-
const a = this.shadowRoot.querySelector("[data-dismiss-button]"),
|
|
2204
|
-
this.hasAttribute("data-type") ? this.classList.add(`bg-${
|
|
2205
|
-
const
|
|
1585
|
+
const a = this.shadowRoot.querySelector("[data-dismiss-button]"), e = this.hasAttribute("data-status") ? this.getAttribute("data-status") : "white";
|
|
1586
|
+
this.hasAttribute("data-type") ? this.classList.add(`bg-${e}`) : this.classList.add(`colour-${e}`);
|
|
1587
|
+
const s = this;
|
|
2206
1588
|
if (!this.querySelector("i"))
|
|
2207
|
-
switch (
|
|
1589
|
+
switch (e) {
|
|
2208
1590
|
case "danger":
|
|
2209
1591
|
this.innerHTML += '<i class="fa-solid fa-circle-exclamation" aria-hidden="true" slot="icon"></i>';
|
|
2210
1592
|
break;
|
|
@@ -2217,88 +1599,196 @@ class ui extends HTMLElement {
|
|
|
2217
1599
|
default:
|
|
2218
1600
|
this.innerHTML += '<i class="fa-solid fa-circle-info" aria-hidden="true" slot="icon"></i>';
|
|
2219
1601
|
}
|
|
2220
|
-
|
|
2221
|
-
|
|
1602
|
+
Aa(s), a && a.addEventListener("click", function(o) {
|
|
1603
|
+
j(s);
|
|
2222
1604
|
}, !1);
|
|
2223
1605
|
}
|
|
2224
1606
|
}
|
|
2225
|
-
const
|
|
1607
|
+
const Sa = {
|
|
2226
1608
|
name: "Notification",
|
|
2227
1609
|
props: {},
|
|
2228
1610
|
created() {
|
|
2229
1611
|
this.$nextTick(function() {
|
|
2230
|
-
window.customElements.get("iam-notification") || window.customElements.define("iam-notification",
|
|
1612
|
+
window.customElements.get("iam-notification") || window.customElements.define("iam-notification", La);
|
|
2231
1613
|
});
|
|
2232
1614
|
}
|
|
2233
1615
|
};
|
|
2234
|
-
function
|
|
2235
|
-
return
|
|
2236
|
-
|
|
1616
|
+
function qa(t, a, e, s, o, n) {
|
|
1617
|
+
return r(), l("iam-notification", null, [
|
|
1618
|
+
f(t.$slots, "default")
|
|
2237
1619
|
]);
|
|
2238
1620
|
}
|
|
2239
|
-
const
|
|
1621
|
+
const os = /* @__PURE__ */ p(Sa, [["render", qa]]), Ea = {
|
|
2240
1622
|
name: "Actionbar",
|
|
2241
1623
|
props: {},
|
|
2242
1624
|
mounted() {
|
|
2243
1625
|
this.$nextTick(function() {
|
|
2244
|
-
|
|
2245
|
-
window.customElements.get("iam-actionbar") || window.customElements.define("iam-actionbar",
|
|
2246
|
-
}).catch((
|
|
2247
|
-
console.log(
|
|
1626
|
+
S(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/actionbar/actionbar.component.js": () => import("./actionbar.component-3f2c98c0.mjs"), "../../../assets/js/components/actionbar/actionbar.component.min.js": () => import("./actionbar.component.min-12c6aab8.mjs") }), "../../../assets/js/components/actionbar/actionbar.component.js").then((t) => {
|
|
1627
|
+
window.customElements.get("iam-actionbar") || window.customElements.define("iam-actionbar", t.default);
|
|
1628
|
+
}).catch((t) => {
|
|
1629
|
+
console.log(t.message);
|
|
2248
1630
|
});
|
|
2249
1631
|
});
|
|
2250
1632
|
}
|
|
2251
1633
|
};
|
|
2252
|
-
function
|
|
2253
|
-
return
|
|
2254
|
-
|
|
1634
|
+
function Ta(t, a, e, s, o, n) {
|
|
1635
|
+
return r(), l("iam-actionbar", null, [
|
|
1636
|
+
f(t.$slots, "default")
|
|
2255
1637
|
]);
|
|
2256
1638
|
}
|
|
2257
|
-
const
|
|
1639
|
+
const rs = /* @__PURE__ */ p(Ea, [["render", Ta]]);
|
|
1640
|
+
/*!
|
|
1641
|
+
* iamKey v5.3.0-beta3
|
|
1642
|
+
* Copyright 2022-2024 iamproperty
|
|
1643
|
+
*/
|
|
1644
|
+
class z extends HTMLElement {
|
|
1645
|
+
constructor() {
|
|
1646
|
+
super(), this.attachShadow({ mode: "open" });
|
|
1647
|
+
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, s = document.createElement("template");
|
|
1648
|
+
s.innerHTML = `
|
|
1649
|
+
<style>
|
|
1650
|
+
@import "${e}";
|
|
1651
|
+
:host{container-type:inline-size;display:block}.pagination{display:block}@container (width > 23.4375em){.pagination{display:flex;align-items:center;justify-content:space-between !important;padding-top:2rem}}.pagination>div{display:flex;align-items:center}.pagination div:is(.page-jump,.per-page){border:1px solid var(--colour-light);height:3.25rem;display:none;align-items:center;padding-inline:1rem}.pagination div:is(.page-jump,.per-page) .select--minimal{height:3.25rem;line-height:3.25rem;margin-left:-1rem;padding-left:1rem;font-weight:bold}.pagination div:is(.page-jump,.per-page) div:has(>select){margin-bottom:0}.page-jump{border-right:none !important}.total-pages{white-space:nowrap}:host([data-page-jump][data-minimal]) .page-jump{display:flex !important}@container (width > 23.4375em){:host([data-page-jump]) .page-jump{display:flex !important}}@container (width > 23.4375em){:host([data-per-page]:not([data-page-jump][data-item-count])) .per-page{display:flex !important}}@container (width > 48em){:host([data-per-page][data-page-jump][data-item-count]) .per-page{display:flex !important}}.pagination>.item-count{display:block;text-align:center;margin-bottom:1rem;margin-inline:auto}@container (width > 23.4375em){.pagination>.item-count{display:none}:host([data-item-count]) .pagination>.item-count{display:flex !important;margin:0}}*:where(.prev,.next){border:1px solid var(--colour-light);line-height:3.25rem;height:3.25rem;margin:0;display:none;background:none;padding-inline:1rem}@container (width > 23.4375em){*:where(.prev,.next){display:inline-block}}*:where(.prev,.next):after{margin-left:.5em;font-size:.8rem;content:"";font-family:"Font Awesome 6 Pro";color:var(--colour-info)}*:where(.prev,.next):is(:hover,:focus):not(:disabled){background-color:var(--colour-light)}*:where(.prev,.next):is(:active):not(:disabled){background-color:#e0e0e0}@media screen and (prefers-color-scheme: dark){*:where(.prev,.next):is(:hover,:focus):not(:disabled){background-color:var(--colour-canvas)}*:where(.prev,.next):is(:active):not(:disabled){background-color:var(--colour-canvas)}}*:where(.prev,.next):disabled:after,*:where(.prev,.next):disabled:before{color:inherit !important}:host([data-minimal]) .pagination{justify-content:flex-end}@container (width > 23.4375em){:host([data-minimal]) .pagination{justify-content:space-between}}:host([data-minimal]) *:where(.prev,.next){display:inline-block !important}.prev{border-right:none}.prev:after{display:none}.prev:before{margin-right:.5em;font-size:.8rem;content:"";font-family:"Font Awesome 6 Pro";color:var(--colour-info)}.mobile-controls{display:block}:host([data-minimal]) .pagination{padding-top:1.5rem;display:flex;align-items:center;justify-content:flex-end}:host([data-minimal]) *:is(.mobile-controls,.item-count){display:none}@container (width > 23.4375em){.mobile-controls{display:none !important}:host([data-item-count]) .item-count{display:flex !important}}.fa-spin{display:none !important;font-size:3rem;color:var(--colour-info)}:host([data-loading]) .mobile-controls{padding-top:2rem}:host([data-loading]) .item-count,:host([data-loading]) .mobile-controls>*:not(.fa-spin){display:none !important}:host([data-loading]) .fa-spin{display:block !important;margin:auto}/*# sourceMappingURL=assets/css/components/pagination.css.map */
|
|
1652
|
+
|
|
1653
|
+
|
|
1654
|
+
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
1655
|
+
</style>
|
|
1656
|
+
<link rel="stylesheet" href="https://kit.fontawesome.com/26fdbf0179.css" crossorigin="anonymous">
|
|
1657
|
+
<div class="pagination d-none">
|
|
1658
|
+
|
|
1659
|
+
<div class="minimal" part="minimal">
|
|
1660
|
+
<div class="page-jump">
|
|
1661
|
+
<div><select class="select--minimal"></select></div>
|
|
1662
|
+
<span class="total-pages"></span>
|
|
1663
|
+
</div>
|
|
1664
|
+
|
|
1665
|
+
<button class="prev" disabled>Prev</button>
|
|
1666
|
+
<button class="next" disabled>Next</button>
|
|
1667
|
+
</div>
|
|
1668
|
+
|
|
1669
|
+
<div class="item-count" part="item-count"></div>
|
|
1670
|
+
<div class="per-page" part="per-page">
|
|
1671
|
+
<div>
|
|
1672
|
+
<select class="select--minimal">
|
|
1673
|
+
<option value="15">15</option>
|
|
1674
|
+
<option value="25">25</option>
|
|
1675
|
+
<option value="40">40</option>
|
|
1676
|
+
<option value="50">50</option>
|
|
1677
|
+
</select>
|
|
1678
|
+
</div>
|
|
1679
|
+
<span> / page</span>
|
|
1680
|
+
</div>
|
|
1681
|
+
<div class="mobile-controls m-auto text-center">
|
|
1682
|
+
<i class="fa-solid fa-spinner fa-spin"></i>
|
|
1683
|
+
<button class="load-more btn btn-primary m-auto">Load more</a>
|
|
1684
|
+
</div>
|
|
1685
|
+
</div>
|
|
1686
|
+
`, this.shadowRoot.appendChild(s.content.cloneNode(!0));
|
|
1687
|
+
}
|
|
1688
|
+
connectedCallback() {
|
|
1689
|
+
const a = new URLSearchParams(window.location.search);
|
|
1690
|
+
this.hasAttribute("data-total") || this.setAttribute("data-total", 15), this.hasAttribute("data-page") || this.setAttribute("data-page", a.has("page") ? a.get("page") : 1), this.hasAttribute("data-show") || this.setAttribute("data-show", a.has("show") ? a.get("show") : 15), this.hasAttribute("data-increment") || this.setAttribute("data-increment", this.getAttribute("data-show"));
|
|
1691
|
+
const e = this.shadowRoot.querySelector(".page-jump select"), s = this.shadowRoot.querySelector(".prev"), o = this.shadowRoot.querySelector(".next"), n = this.shadowRoot.querySelector(".per-page select"), i = this.shadowRoot.querySelector(".load-more");
|
|
1692
|
+
this.setup(), e.addEventListener("change", (d) => {
|
|
1693
|
+
this.setAttribute("data-show", this.getAttribute("data-increment")), this.setAttribute("data-page", d.target.value);
|
|
1694
|
+
}), o.addEventListener("click", (d) => {
|
|
1695
|
+
e.value = parseInt(e.value) + 1, e.dispatchEvent(new Event("change"));
|
|
1696
|
+
}), s.addEventListener("click", (d) => {
|
|
1697
|
+
e.value = parseInt(e.value) - 1, e.dispatchEvent(new Event("change"));
|
|
1698
|
+
}), n.addEventListener("change", (d) => {
|
|
1699
|
+
this.setAttribute("data-increment", d.target.value);
|
|
1700
|
+
}), i.addEventListener("click", (d) => {
|
|
1701
|
+
let u = parseInt(this.getAttribute("data-show")) + parseInt(this.getAttribute("data-increment"));
|
|
1702
|
+
this.setAttribute("data-show", u), u > parseInt(this.getAttribute("data-total")) && i.remove();
|
|
1703
|
+
});
|
|
1704
|
+
}
|
|
1705
|
+
setup() {
|
|
1706
|
+
const a = this.shadowRoot.querySelector(".pagination"), e = this.shadowRoot.querySelector(".page-jump select"), s = this.shadowRoot.querySelector(".prev"), o = this.shadowRoot.querySelector(".next"), n = this.shadowRoot.querySelector(".item-count"), i = this.shadowRoot.querySelector(".per-page select"), d = this.shadowRoot.querySelector(".total-pages"), u = parseInt(this.getAttribute("data-page")), h = parseInt(this.getAttribute("data-total")), g = parseInt(this.getAttribute("data-show")), m = parseInt(this.getAttribute("data-increment")), y = Math.ceil(h / m);
|
|
1707
|
+
h > g && a.classList.remove("d-none");
|
|
1708
|
+
let v = "";
|
|
1709
|
+
for (let E = 1; E <= y; E++)
|
|
1710
|
+
v += `<option value="${E}" ${E == u ? "selected" : ""}>${E}</option>`;
|
|
1711
|
+
e.innerHTML = v, d.innerHTML = `of ${y}`, u == y ? o.setAttribute("disabled", "disabled") : o.removeAttribute("disabled"), u == 1 ? s.setAttribute("disabled", "disabled") : s.removeAttribute("disabled");
|
|
1712
|
+
let $ = u == 1 ? 1 : (u - 1) * g + 1, q = u == 1 ? g : u * g;
|
|
1713
|
+
n.innerHTML = `${$} - ${q > h ? h : q} of ${h} items`;
|
|
1714
|
+
const I = [15, 25, 40, 50];
|
|
1715
|
+
m && i.value != m && !I.includes(m) && (i.innerHTML = `<option value="${m}">${m}</option>
|
|
1716
|
+
<option value="${m * 2}">${m * 2}</option>
|
|
1717
|
+
<option value="${m * 3}">${m * 3}</option>
|
|
1718
|
+
<option value="${m * 4}">${m * 4}</option>`), i.value = m;
|
|
1719
|
+
}
|
|
1720
|
+
static get observedAttributes() {
|
|
1721
|
+
return ["data-total", "data-increment", "data-page", "data-show"];
|
|
1722
|
+
}
|
|
1723
|
+
attributeChangedCallback(a, e, s) {
|
|
1724
|
+
switch (a) {
|
|
1725
|
+
case "data-total": {
|
|
1726
|
+
e != s && (this.setAttribute("data-page", 1), this.setup());
|
|
1727
|
+
break;
|
|
1728
|
+
}
|
|
1729
|
+
case "data-show": {
|
|
1730
|
+
e != s && (this.setAttribute("data-page", 1), this.setup(), this.dispatchEvent(new CustomEvent("update-show", { detail: { show: s } })));
|
|
1731
|
+
break;
|
|
1732
|
+
}
|
|
1733
|
+
case "data-increment": {
|
|
1734
|
+
e != s && (this.setAttribute("data-show", s), this.setAttribute("data-page", 1), this.setup(), this.dispatchEvent(new CustomEvent("update-show", { detail: { show: s } })));
|
|
1735
|
+
break;
|
|
1736
|
+
}
|
|
1737
|
+
case "data-page": {
|
|
1738
|
+
e && e != s && (this.setup(), this.dispatchEvent(new CustomEvent("update-page", { detail: { page: s } })));
|
|
1739
|
+
break;
|
|
1740
|
+
}
|
|
1741
|
+
}
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
const Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1745
|
+
__proto__: null,
|
|
1746
|
+
default: z
|
|
1747
|
+
}, Symbol.toStringTag, { value: "Module" })), Ma = {
|
|
2258
1748
|
name: "Pagination",
|
|
2259
1749
|
props: {},
|
|
2260
1750
|
computed: {},
|
|
2261
1751
|
created() {
|
|
2262
1752
|
this.$nextTick(function() {
|
|
2263
|
-
window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination",
|
|
1753
|
+
window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination", z);
|
|
2264
1754
|
});
|
|
2265
1755
|
},
|
|
2266
1756
|
updated() {
|
|
2267
1757
|
}
|
|
2268
1758
|
};
|
|
2269
|
-
function
|
|
2270
|
-
return
|
|
1759
|
+
function ja(t, a, e, s, o, n) {
|
|
1760
|
+
return r(), l("iam-pagination");
|
|
2271
1761
|
}
|
|
2272
|
-
const
|
|
1762
|
+
const ls = /* @__PURE__ */ p(Ma, [["render", ja]]), Ca = {
|
|
2273
1763
|
name: "Address Lookup",
|
|
2274
1764
|
mounted() {
|
|
2275
1765
|
this.$nextTick(function() {
|
|
2276
|
-
|
|
2277
|
-
window.customElements.get("iam-address-lookup") || window.customElements.define("iam-address-lookup",
|
|
2278
|
-
}).catch((
|
|
2279
|
-
console.log(
|
|
1766
|
+
S(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/address-lookup/address-lookup.component.js": () => import("./address-lookup.component-6bae4154.mjs"), "../../../assets/js/components/address-lookup/address-lookup.component.min.js": () => import("./address-lookup.component.min-54ce7f2f.mjs") }), "../../../assets/js/components/address-lookup/address-lookup.component.js").then((t) => {
|
|
1767
|
+
window.customElements.get("iam-address-lookup") || window.customElements.define("iam-address-lookup", t.default);
|
|
1768
|
+
}).catch((t) => {
|
|
1769
|
+
console.log(t.message);
|
|
2280
1770
|
});
|
|
2281
1771
|
});
|
|
2282
1772
|
}
|
|
2283
1773
|
};
|
|
2284
|
-
function
|
|
2285
|
-
return
|
|
2286
|
-
|
|
1774
|
+
function Na(t, a, e, s, o, n) {
|
|
1775
|
+
return r(), l("iam-address-lookup", null, [
|
|
1776
|
+
f(t.$slots, "default")
|
|
2287
1777
|
]);
|
|
2288
1778
|
}
|
|
2289
|
-
const
|
|
1779
|
+
const ds = /* @__PURE__ */ p(Ca, [["render", Na]]);
|
|
2290
1780
|
/*!
|
|
2291
|
-
* iamKey v5.3.0-
|
|
1781
|
+
* iamKey v5.3.0-beta3
|
|
2292
1782
|
* Copyright 2022-2024 iamproperty
|
|
2293
1783
|
*/
|
|
2294
1784
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "collapsible side menu" });
|
|
2295
|
-
class
|
|
1785
|
+
class Ra extends HTMLElement {
|
|
2296
1786
|
constructor() {
|
|
2297
1787
|
super(), this.attachShadow({ mode: "open" });
|
|
2298
|
-
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets",
|
|
2299
|
-
|
|
1788
|
+
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, s = document.createElement("template");
|
|
1789
|
+
s.innerHTML = `
|
|
2300
1790
|
<style class="styles">
|
|
2301
|
-
@import "${
|
|
1791
|
+
@import "${e}";
|
|
2302
1792
|
:host{--colour-border: #e9e9e9;--side-link-hover: var(--colour-canvas-2);display:block;min-height:calc(100vh - var(--nav-height));padding-top:0 !important;margin-inline:auto;max-width:80rem;overflow:hidden;position:relative}@media screen and (prefers-color-scheme: light){:host{--side-link-hover: #eeeeee}}.container{position:static;min-height:100%;padding-top:0 !important;padding-bottom:0 !important;padding-left:0 !important}@media screen and (min-width: 62em){.container{padding-left:5.25rem !important;overflow:hidden}}.side-menu{position:absolute;top:0;left:0;height:100%;min-height:calc(100vh - var(--nav-height));width:1.875rem;height:100%;background-color:var(--colour-canvas);transition:width 1s}.side-menu:before{content:"";position:absolute;top:0;right:0;height:100%;border-right:2px solid var(--colour-border)}@media screen and (min-width: 36em){.side-menu{left:0;width:2.5rem}}@media screen and (min-width: 62em){.side-menu{left:calc(50% - 34.75rem);margin-left:-5.25rem}.side-menu:after{content:"";position:absolute;top:0;height:100%;border-right:2px solid var(--colour-border);left:0;opacity:1;transition:all 1s;width:2.5rem;background:var(--colour-canvas)}.side-menu:not(.open).hover{width:21.5rem}.side-menu:not(.open).hover .btn[class*=fa-]:before{content:"" !important}}.side-menu .btn{position:absolute;top:2rem;right:0;margin-bottom:0;margin-right:-1.25rem;background-color:var(--colour-canvas-2);border:2px solid var(--colour-border);z-index:99}.side-menu .btn[aria-expanded][class*=fa-]:before{content:"" !important}@media screen and (min-width: 62em){.side-menu .btn[aria-expanded]{opacity:0;transition:opacity .5s}.side-menu .btn[aria-expanded]:is(:hover,:focus,:active){opacity:1}}.side-menu:is(.open){width:calc(100% - var(--container-padding-x))}@media screen and (min-width: 36em){.side-menu:is(.open){width:23.875rem}}@media screen and (min-width: 62em){.side-menu:is(.open){width:21.5rem}}.side-menu .side-menu-content{position:absolute;top:0;right:0;padding:2rem 2.5rem 0 0;width:21.9375rem;opacity:0;transition:opacity 1s;min-height:100%;overflow:auto;max-height:100%}.side-menu .side-menu-content .h3{padding-left:1.5rem}@media screen and (min-width: 36em){.side-menu .side-menu-content{width:23.875rem}.side-menu .side-menu-content .h3{padding-left:2.5rem}}@media screen and (min-width: 62em){.side-menu .side-menu-content{width:19rem}}.side-menu:not(.hover):not(.open) .side-menu-content.closed{display:none}.side-menu.open .side-menu-content{opacity:1}@media screen and (min-width: 62em){.side-menu.hover .side-menu-content{opacity:1}}::slotted(*[slot=menu]){padding-left:1.5rem}@media screen and (min-width: 36em){::slotted(*[slot=menu]){padding-left:2.5rem !important}}::slotted(hr){border-bottom:2px solid var(--colour-border) !important;margin-right:-2.5rem !important}::slotted(a[slot=menu]){display:block;display:block !important;line-height:1.25rem !important;padding:1rem 2.5rem 1rem 1.5rem !important;margin:0 !important;flex-shrink:0;font-size:1rem !important;font-weight:normal !important;text-decoration:none;border-bottom:2px solid var(--colour-border) !important;margin-right:-2.5rem !important;border-right:2px solid var(--colour-border) !important}@media screen and (min-width: 36em){::slotted(a[slot=menu]){padding-left:2.5rem !important}}::slotted(a[slot=menu]):after{display:none}::slotted(a[slot=menu]:where(:hover,:focus,[aria-expanded])){background-color:var(--side-link-hover) !important}::slotted(a[slot=menu]:active){background-color:var(--side-link-hover) !important;font-weight:bold !important}::slotted(a[slot=menu][aria-expanded]){background-color:var(--side-link-hover) !important;font-weight:bold !important;margin-right:-2.5rem !important;position:relative;border-right:2px solid var(--colour-info) !important}::slotted(a[slot=menu][aria-expanded]):before{content:"";position:absolute;top:0;right:0;height:calc(100% + 4px);margin-top:-2px;width:2px;border-right:2px solid var(--colour-info);margin-right:-2px}@media(forced-colors: active){::slotted(a[slot=menu][aria-expanded]):before{border-right:10px solid var(--colour-info)}}.main-content{padding-top:1.5rem;padding-left:3.75rem}@media screen and (min-width: 36em){.main-content{padding-left:5rem}}@media screen and (min-width: 62em){.main-content{padding-top:2.5rem !important;padding-left:0}}.main-content>span.h3{padding-top:.75rem;border-bottom:2px solid var(--colour-border);margin-bottom:2.5rem !important}@media screen and (min-width: 62em){.main-content>span.h3{display:none}}::slotted(.main-content__title){border-bottom:2px solid var(--colour-border);margin-bottom:2.5rem !important;max-width:100% !important;display:block}@media screen and (min-width: 62em){.side-menu.open+.main-content{padding-left:18.75rem}::slotted(.main-content__title){display:none}}/*# sourceMappingURL=assets/css/components/collapsible-side.css.map */
|
|
2303
1793
|
|
|
2304
1794
|
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
@@ -2318,68 +1808,68 @@ class wi extends HTMLElement {
|
|
|
2318
1808
|
</div>
|
|
2319
1809
|
|
|
2320
1810
|
</div>
|
|
2321
|
-
`, this.shadowRoot.appendChild(
|
|
1811
|
+
`, this.shadowRoot.appendChild(s.content.cloneNode(!0));
|
|
2322
1812
|
}
|
|
2323
1813
|
connectedCallback() {
|
|
2324
|
-
const a = this.shadowRoot.querySelector(".side-menu"),
|
|
2325
|
-
this.hasAttribute("data-css") && this.shadowRoot.querySelector(".styles").insertAdjacentHTML("beforeend", `@import "${this.getAttribute("data-css")}";`), this.hasAttribute("data-title") || this.setAttribute("data-title", "configuration"),
|
|
2326
|
-
a.classList.contains("open") ? (a.classList.remove("open"),
|
|
2327
|
-
|
|
1814
|
+
const a = this.shadowRoot.querySelector(".side-menu"), e = this.shadowRoot.querySelector(".side-menu-content"), s = this.shadowRoot.querySelector(".main-content"), o = this.shadowRoot.querySelector(".side-menu > .btn");
|
|
1815
|
+
this.hasAttribute("data-css") && this.shadowRoot.querySelector(".styles").insertAdjacentHTML("beforeend", `@import "${this.getAttribute("data-css")}";`), this.hasAttribute("data-title") || this.setAttribute("data-title", "configuration"), e.insertAdjacentHTML("afterbegin", `<span class="h3">${this.getAttribute("data-title")}</span>`), s.insertAdjacentHTML("afterbegin", `<span class="h3">${this.getAttribute("data-title")}</span>`), this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)") && (this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)").classList.add("h4"), this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)").classList.add("main-content__title")), o.addEventListener("click", (n) => {
|
|
1816
|
+
a.classList.contains("open") ? (a.classList.remove("open"), o.removeAttribute("aria-expanded"), setTimeout(function() {
|
|
1817
|
+
e.classList.add("closed");
|
|
2328
1818
|
}, 1e3), a.classList.add("pe-none"), setTimeout(function() {
|
|
2329
1819
|
a.classList.remove("pe-none");
|
|
2330
|
-
}, 1e3)) : (
|
|
2331
|
-
a.classList.add("open"),
|
|
1820
|
+
}, 1e3)) : (e.classList.remove("closed"), setTimeout(function() {
|
|
1821
|
+
a.classList.add("open"), o.setAttribute("aria-expanded", !0);
|
|
2332
1822
|
}, 100));
|
|
2333
|
-
}), a.addEventListener("mouseenter", (
|
|
2334
|
-
window.innerWidth > 992 && (a.classList.contains("open") ||
|
|
2335
|
-
}), a.addEventListener("mousemove", (
|
|
2336
|
-
window.innerWidth > 992 && (a.classList.contains("open") ||
|
|
2337
|
-
}), a.addEventListener("mouseleave", (
|
|
1823
|
+
}), a.addEventListener("mouseenter", (n) => {
|
|
1824
|
+
window.innerWidth > 992 && (a.classList.contains("open") || e.classList.remove("closed"), a.classList.add("hover"));
|
|
1825
|
+
}), a.addEventListener("mousemove", (n) => {
|
|
1826
|
+
window.innerWidth > 992 && (a.classList.contains("open") || e.classList.remove("closed"));
|
|
1827
|
+
}), a.addEventListener("mouseleave", (n) => {
|
|
2338
1828
|
window.innerWidth > 992 && (a.classList.remove("hover"), a.classList.contains("open") || setTimeout(function() {
|
|
2339
|
-
|
|
1829
|
+
e.classList.add("closed");
|
|
2340
1830
|
}, 1e3));
|
|
2341
1831
|
});
|
|
2342
1832
|
}
|
|
2343
1833
|
}
|
|
2344
|
-
window.customElements.get("iam-collapsible-side") || window.customElements.define("iam-collapsible-side",
|
|
2345
|
-
const
|
|
1834
|
+
window.customElements.get("iam-collapsible-side") || window.customElements.define("iam-collapsible-side", Ra);
|
|
1835
|
+
const Pa = {
|
|
2346
1836
|
name: "CollapsibleSideMenu",
|
|
2347
1837
|
props: {},
|
|
2348
1838
|
mounted() {
|
|
2349
1839
|
}
|
|
2350
1840
|
};
|
|
2351
|
-
function
|
|
2352
|
-
return
|
|
2353
|
-
|
|
1841
|
+
function za(t, a, e, s, o, n) {
|
|
1842
|
+
return r(), l("iam-collapsible-side", null, [
|
|
1843
|
+
f(t.$slots, "default")
|
|
2354
1844
|
]);
|
|
2355
1845
|
}
|
|
2356
|
-
const
|
|
1846
|
+
const cs = /* @__PURE__ */ p(Pa, [["render", za]]);
|
|
2357
1847
|
export {
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
1848
|
+
Va as Accordion,
|
|
1849
|
+
Oa as AccordionItem,
|
|
1850
|
+
rs as Actionbar,
|
|
1851
|
+
ds as AddressLookup,
|
|
1852
|
+
is as AppliedFilters,
|
|
1853
|
+
Ba as Banner,
|
|
1854
|
+
Ua as Card,
|
|
1855
|
+
Wa as Carousel,
|
|
1856
|
+
cs as CollapsibleSideMenu,
|
|
1857
|
+
Fa as FileUpload,
|
|
1858
|
+
ns as Filterlist,
|
|
1859
|
+
Ka as Header,
|
|
1860
|
+
R as Input,
|
|
1861
|
+
Da as Logo,
|
|
1862
|
+
Ja as Nav,
|
|
1863
|
+
ss as NoteFeed,
|
|
1864
|
+
os as Notification,
|
|
1865
|
+
ls as Pagination,
|
|
1866
|
+
Ya as PropertySearchbar,
|
|
1867
|
+
Za as Snapshot,
|
|
1868
|
+
es as Step,
|
|
1869
|
+
Xa as Stepper,
|
|
1870
|
+
as as Tab,
|
|
1871
|
+
N as Table,
|
|
1872
|
+
ts as Tabs,
|
|
1873
|
+
Ga as Testimonial,
|
|
1874
|
+
Qa as Timeline
|
|
2385
1875
|
};
|