@iamproperty/components 5.1.0-beta2 → 5.1.0-beta4
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/css/components/component.reset.css +1 -1
- package/assets/css/components/component.reset.css.map +1 -1
- package/assets/css/components/nav.global.css +1 -1
- package/assets/css/components/nav.global.css.map +1 -1
- package/assets/css/core.min.css +1 -1
- package/assets/css/core.min.css.map +1 -1
- package/assets/css/style.min.css +1 -1
- package/assets/css/style.min.css.map +1 -1
- 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.js +17 -3
- package/assets/js/components/address-lookup/address-lookup.component.min.js +4 -4
- package/assets/js/components/address-lookup/address-lookup.component.min.js.map +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.js +4 -36
- package/assets/js/components/nav/nav.component.min.js +9 -12
- package/assets/js/components/nav/nav.component.min.js.map +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.js +148 -0
- package/assets/js/components/search/search.component.min.js +14 -0
- package/assets/js/components/search/search.component.min.js.map +1 -0
- package/assets/js/components/table/table.component.min.js +5 -5
- package/assets/js/components/table/table.component.min.js.map +1 -1
- package/assets/js/components/tabs/tabs.component.min.js +1 -1
- package/assets/js/dynamic.min.js +1 -1
- package/assets/js/dynamic.min.js.map +1 -1
- package/assets/js/modules/dynamicEvents.js +10 -2
- package/assets/js/modules/helpers.js +3 -0
- package/assets/js/modules/table.js +1 -2
- package/assets/js/scripts.bundle.js +15 -15
- package/assets/js/scripts.bundle.js.map +1 -1
- package/assets/js/scripts.bundle.min.js +2 -2
- package/assets/js/scripts.bundle.min.js.map +1 -1
- package/assets/sass/components/nav.global.scss +1 -1
- package/assets/sass/elements/forms.scss +1 -1
- package/assets/ts/components/address-lookup/address-lookup.component.ts +23 -4
- package/assets/ts/components/nav/README.md +2 -13
- package/assets/ts/components/nav/nav.component.ts +4 -47
- package/assets/ts/components/search/search.component.ts +177 -0
- package/assets/ts/modules/dynamicEvents.ts +13 -2
- package/assets/ts/modules/helpers.ts +7 -1
- package/assets/ts/modules/table.ts +1 -3
- package/dist/components.es.js +490 -491
- package/dist/components.umd.js +62 -68
- package/package.json +1 -1
- package/src/components/Nav/README.md +1 -12
- package/src/components/Search/Search.vue +25 -0
package/dist/components.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { openBlock as u, createElementBlock as m, normalizeClass as
|
|
2
|
-
const
|
|
1
|
+
import { openBlock as u, createElementBlock as m, normalizeClass as x, createElementVNode as f, toDisplayString as S, createCommentVNode as w, Fragment as T, renderList as H, renderSlot as _, withDirectives as P, mergeProps as N, vModelDynamic as G, vModelText as ht, vModelSelect as pt, createTextVNode as bt, resolveComponent as B, createVNode as C, withModifiers as ft } from "vue";
|
|
2
|
+
const y = (e, a) => {
|
|
3
3
|
const t = e.__vccOpts || e;
|
|
4
|
-
for (const [
|
|
5
|
-
t[
|
|
4
|
+
for (const [i, s] of a)
|
|
5
|
+
t[i] = s;
|
|
6
6
|
return t;
|
|
7
7
|
}, gt = {
|
|
8
8
|
name: "Logo",
|
|
@@ -30,12 +30,12 @@ const v = (e, a) => {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}, yt = ["xlink:href"], vt = ["innerHTML"];
|
|
33
|
-
function wt(e, a, t,
|
|
33
|
+
function wt(e, a, t, i, s, n) {
|
|
34
34
|
return u(), m("div", {
|
|
35
|
-
class:
|
|
35
|
+
class: x(n.className)
|
|
36
36
|
}, [
|
|
37
37
|
(u(), m("svg", null, [
|
|
38
|
-
f("title", null, "iam " +
|
|
38
|
+
f("title", null, "iam " + S(t.id), 1),
|
|
39
39
|
f("use", {
|
|
40
40
|
"xlink:href": t.path + n.src
|
|
41
41
|
}, null, 8, yt)
|
|
@@ -46,128 +46,128 @@ function wt(e, a, t, o, s, n) {
|
|
|
46
46
|
}, null, 8, vt)) : w("", !0)
|
|
47
47
|
], 2);
|
|
48
48
|
}
|
|
49
|
-
const Di = /* @__PURE__ */
|
|
49
|
+
const Di = /* @__PURE__ */ y(gt, [["render", wt]]);
|
|
50
50
|
/*!
|
|
51
|
-
* iamKey v5.1.0-
|
|
51
|
+
* iamKey v5.1.0-beta4
|
|
52
52
|
* Copyright 2022-2023 iamproperty
|
|
53
53
|
*/
|
|
54
54
|
const _t = function(e) {
|
|
55
55
|
return typeof e != "string" ? !1 : !isNaN(e) && !isNaN(parseFloat(e));
|
|
56
|
-
}, At = (e, a) => String(e).padStart(a, "0"), xt = (e) => e.charAt(0).toUpperCase() + e.slice(1);
|
|
57
|
-
var kt = function(e, a, t,
|
|
56
|
+
}, At = (e, a) => String(e).padStart(a, "0"), xt = (e) => e.charAt(0).toUpperCase() + e.slice(1), R = (e, a, t) => a.split(/[\.\[\]\'\"]/).filter((i) => i).reduce((i, s) => i ? i[s] : t, e);
|
|
57
|
+
var kt = function(e, a, t, i) {
|
|
58
58
|
function s(n) {
|
|
59
|
-
return n instanceof t ? n : new t(function(
|
|
60
|
-
|
|
59
|
+
return n instanceof t ? n : new t(function(o) {
|
|
60
|
+
o(n);
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
return new (t || (t = Promise))(function(n,
|
|
63
|
+
return new (t || (t = Promise))(function(n, o) {
|
|
64
64
|
function l(p) {
|
|
65
65
|
try {
|
|
66
|
-
r(
|
|
66
|
+
r(i.next(p));
|
|
67
67
|
} catch (c) {
|
|
68
|
-
|
|
68
|
+
o(c);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
function d(p) {
|
|
72
72
|
try {
|
|
73
|
-
r(
|
|
73
|
+
r(i.throw(p));
|
|
74
74
|
} catch (c) {
|
|
75
|
-
|
|
75
|
+
o(c);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
function r(p) {
|
|
79
79
|
p.done ? n(p.value) : s(p.value).then(l, d);
|
|
80
80
|
}
|
|
81
|
-
r((
|
|
81
|
+
r((i = i.apply(e, a || [])).next());
|
|
82
82
|
});
|
|
83
83
|
};
|
|
84
84
|
const tt = (e) => {
|
|
85
85
|
const a = Array.from(e.querySelectorAll("thead th"));
|
|
86
|
-
Array.from(e.querySelectorAll("tbody tr")).forEach((t,
|
|
86
|
+
Array.from(e.querySelectorAll("tbody tr")).forEach((t, i) => {
|
|
87
87
|
const s = Array.from(t.querySelectorAll("th, td")), n = ["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"];
|
|
88
|
-
s.forEach((
|
|
88
|
+
s.forEach((o, l) => {
|
|
89
89
|
const d = a[l];
|
|
90
90
|
if (typeof d < "u") {
|
|
91
91
|
let r = document.createElement("div");
|
|
92
92
|
r.innerHTML = d.innerHTML;
|
|
93
93
|
let p = r.textContent || r.innerText || "";
|
|
94
|
-
|
|
94
|
+
o.setAttribute("data-label", p), d.hasAttribute("data-td-class") && o.setAttribute("class", d.getAttribute("data-td-class")), d.hasAttribute("data-format") && (o.setAttribute("data-format", d.getAttribute("data-format")), o.innerHTML = Y(d.getAttribute("data-format"), o.textContent.trim())), n.includes(o.textContent.trim().toLowerCase()) && o.setAttribute("data-content", o.textContent.trim().toLowerCase());
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
}, Lt = (e) => {
|
|
99
99
|
let a = 0;
|
|
100
|
-
return Array.from(e.querySelectorAll("tbody tr")).forEach((t,
|
|
100
|
+
return Array.from(e.querySelectorAll("tbody tr")).forEach((t, i) => {
|
|
101
101
|
let s = window.getComputedStyle(document.querySelector("html")), n = t.querySelector(":scope > *:last-child > *:first-child");
|
|
102
102
|
if (n) {
|
|
103
103
|
n.classList.add("text-nowrap");
|
|
104
|
-
let
|
|
105
|
-
|
|
104
|
+
let o = n.offsetWidth / parseFloat(s.fontSize);
|
|
105
|
+
o += 1.7, a = a > o ? a : o;
|
|
106
106
|
}
|
|
107
107
|
}), a;
|
|
108
108
|
}, St = (e, a) => {
|
|
109
109
|
if (a.classList.contains(".table--fullwidth") && !a.hasAttribute("data-expandable") || e.querySelectorAll("thead tr th").length < 4 && !a.hasAttribute("data-expandable"))
|
|
110
110
|
return !1;
|
|
111
|
-
Array.from(e.querySelectorAll("thead tr")).forEach((t,
|
|
111
|
+
Array.from(e.querySelectorAll("thead tr")).forEach((t, i) => {
|
|
112
112
|
t.insertAdjacentHTML("afterbegin", '<th class="th--fixed expand-button-heading"></th>');
|
|
113
|
-
}), Array.from(e.querySelectorAll("tbody tr")).forEach((t,
|
|
113
|
+
}), Array.from(e.querySelectorAll("tbody tr")).forEach((t, i) => {
|
|
114
114
|
const s = t.getAttribute("data-view") === "full" ? "aria-expanded" : "";
|
|
115
115
|
t.insertAdjacentHTML("afterbegin", `<td class="td--fixed td--expand"><button class="btn btn-compact btn-secondary" data-expand-button ${s}>Expand</button></td>`);
|
|
116
116
|
});
|
|
117
117
|
}, $t = (e) => {
|
|
118
118
|
e.addEventListener("click", (a) => {
|
|
119
119
|
if (a && a.target instanceof HTMLElement && a.target.closest("[data-expand-button]")) {
|
|
120
|
-
let t = a.target.closest("[data-expand-button]"),
|
|
121
|
-
t.toggleAttribute("aria-expanded"),
|
|
120
|
+
let t = a.target.closest("[data-expand-button]"), i = t.closest("tr");
|
|
121
|
+
t.toggleAttribute("aria-expanded"), i.getAttribute("data-view") == "full" ? i.setAttribute("data-view", "default") : i.setAttribute("data-view", "full"), t.blur();
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
124
|
}, et = (e, a) => {
|
|
125
125
|
let t = a.querySelector("[data-search]");
|
|
126
126
|
if (!t)
|
|
127
127
|
return !1;
|
|
128
|
-
const
|
|
129
|
-
let n = t.parentNode,
|
|
128
|
+
const i = t.getAttribute("id"), s = t.getAttribute("data-search").split(",");
|
|
129
|
+
let n = t.parentNode, o = {};
|
|
130
130
|
s.forEach((l, d) => {
|
|
131
131
|
Array.from(e.querySelectorAll('td[data-label="' + l.trim() + '"]')).forEach((r, p) => {
|
|
132
|
-
r.querySelector(".td__content") ?
|
|
132
|
+
r.querySelector(".td__content") ? o[r.querySelector(".td__content").textContent] = r.querySelector(".td__content").textContent : o[r.textContent] = r.textContent;
|
|
133
133
|
});
|
|
134
|
-
}), t.setAttribute("list", `${
|
|
135
|
-
}, qt = (e, a, t,
|
|
134
|
+
}), t.setAttribute("list", `${i}_list`), t.setAttribute("autocomplete", "off"), n.querySelector("datalist") || (n.innerHTML += `<datalist id="${i}_list"></datalist>`), n.querySelector("datalist").innerHTML = `${Object.keys(o).map((l) => `<option value="${l}"></option>`).join("")}`;
|
|
135
|
+
}, qt = (e, a, t, i, s) => {
|
|
136
136
|
var n;
|
|
137
|
-
let
|
|
137
|
+
let o = function(r, p = !1) {
|
|
138
138
|
if (a.classList.contains("processing"))
|
|
139
139
|
return !1;
|
|
140
|
-
if (r.type == "submit" && (a.classList.add("processing"), Array.from(a.querySelectorAll("[data-duplicate]")).forEach((c,
|
|
141
|
-
const
|
|
142
|
-
if (
|
|
143
|
-
if (
|
|
144
|
-
let
|
|
145
|
-
|
|
140
|
+
if (r.type == "submit" && (a.classList.add("processing"), Array.from(a.querySelectorAll("[data-duplicate]")).forEach((c, h) => {
|
|
141
|
+
const g = c.getAttribute("data-duplicate"), b = document.getElementById(g), A = document.querySelector(`[for="${g}"] iam-card`);
|
|
142
|
+
if (b.checked != c.checked)
|
|
143
|
+
if (A) {
|
|
144
|
+
let $ = new Event("click");
|
|
145
|
+
A.dispatchEvent($);
|
|
146
146
|
} else
|
|
147
|
-
|
|
147
|
+
b.checked = c.checked;
|
|
148
148
|
}), a.classList.remove("processing")), a.hasAttribute("data-ajax")) {
|
|
149
149
|
if (!p) {
|
|
150
150
|
let c = a.querySelector("[data-pagination]");
|
|
151
|
-
c.value = 1,
|
|
151
|
+
c.value = 1, i.setAttribute("data-page", 1);
|
|
152
152
|
}
|
|
153
|
-
ot(e, a, t,
|
|
153
|
+
ot(e, a, t, i);
|
|
154
154
|
} else
|
|
155
|
-
a.hasAttribute("data-submit") ? a.submit() : (K(e, a,
|
|
155
|
+
a.hasAttribute("data-submit") ? a.submit() : (K(e, a, i), U(e, a));
|
|
156
156
|
if (a.hasAttribute("data-ajax-post")) {
|
|
157
|
-
let c = new FormData(a),
|
|
158
|
-
const
|
|
159
|
-
|
|
157
|
+
let c = new FormData(a), h = new URLSearchParams(c).toString();
|
|
158
|
+
const g = new XMLHttpRequest();
|
|
159
|
+
g.open("GET", `${window.location.href}?ajax=true&${h}`), g.send();
|
|
160
160
|
}
|
|
161
161
|
};
|
|
162
162
|
a.addEventListener("keyup", (r) => {
|
|
163
163
|
clearTimeout(n), r && r.target instanceof HTMLElement && r.target.closest("[data-search]") && (n = setTimeout(function() {
|
|
164
|
-
|
|
164
|
+
o(r);
|
|
165
165
|
}, 500));
|
|
166
166
|
}), a.addEventListener("change", (r) => {
|
|
167
|
-
clearTimeout(n), r && r.target instanceof HTMLElement && r.target.closest("[data-sort]") && (a.hasAttribute("data-submit") || Q(e, a, s),
|
|
167
|
+
clearTimeout(n), r && r.target instanceof HTMLElement && r.target.closest("[data-sort]") && (a.hasAttribute("data-submit") || Q(e, a, s), o(r)), r && r.target instanceof HTMLElement && r.target.closest("[data-search]") && o(r), r && r.target instanceof HTMLElement && r.target.closest("[data-filter][data-no-ajax]") ? (K(e, a, i), U(e, a)) : (r && r.target instanceof HTMLElement && r.target.closest("[data-filter]") && r.target.closest("form .dialog__wrapper > dialog") || r && r.target instanceof HTMLElement && r.target.closest("[data-filter]") && !r.target.closest("form dialog")) && o(r), r && r.target instanceof HTMLElement && r.target.closest("[data-show]") && o(r), r && r.target instanceof HTMLElement && r.target.closest("[data-mimic]") && o(r);
|
|
168
168
|
}), a.addEventListener("click", (r) => {
|
|
169
169
|
if (clearTimeout(n), r && r.target instanceof HTMLElement && r.target.closest('dialog button:not([type="button"])') && r.target.closest('dialog button:not([type="button"])').closest("dialog").close(), r && r.target instanceof HTMLElement && r.target.closest(".dialog__close") && (r.preventDefault(), r.stopPropagation()), r && r.target instanceof HTMLElement && r.target.closest("[data-clear]")) {
|
|
170
|
-
a.classList.add("processing"), Array.from(a.querySelectorAll(".applied-filters")).forEach((c,
|
|
170
|
+
a.classList.add("processing"), Array.from(a.querySelectorAll(".applied-filters")).forEach((c, h) => {
|
|
171
171
|
c.innerHTML = "";
|
|
172
172
|
});
|
|
173
173
|
let p = a.elements;
|
|
@@ -181,12 +181,12 @@ const tt = (e) => {
|
|
|
181
181
|
case "radio":
|
|
182
182
|
case "checkbox":
|
|
183
183
|
if (p[c].checked) {
|
|
184
|
-
let
|
|
185
|
-
if (
|
|
186
|
-
let
|
|
187
|
-
|
|
184
|
+
let h = p[c], g = h.getAttribute("id"), b = document.querySelector(`[for="${g}"`);
|
|
185
|
+
if (b.querySelector("iam-card")) {
|
|
186
|
+
let A = b.querySelector("iam-card"), $ = new Event("click");
|
|
187
|
+
A.dispatchEvent($);
|
|
188
188
|
}
|
|
189
|
-
|
|
189
|
+
h.checked = !1;
|
|
190
190
|
}
|
|
191
191
|
break;
|
|
192
192
|
case "select-one":
|
|
@@ -194,66 +194,66 @@ const tt = (e) => {
|
|
|
194
194
|
p[c].selectedIndex = -1;
|
|
195
195
|
break;
|
|
196
196
|
}
|
|
197
|
-
a.classList.remove("processing"), a.hasAttribute("data-submit") || Q(e, a, s),
|
|
197
|
+
a.classList.remove("processing"), a.hasAttribute("data-submit") || Q(e, a, s), o(r);
|
|
198
198
|
}
|
|
199
199
|
}), a.addEventListener("submit", (r) => {
|
|
200
|
-
clearTimeout(n), a.hasAttribute("data-submit") || r.preventDefault(),
|
|
200
|
+
clearTimeout(n), a.hasAttribute("data-submit") || r.preventDefault(), o(r);
|
|
201
201
|
}), a.addEventListener("force", (r) => {
|
|
202
|
-
|
|
202
|
+
o(r);
|
|
203
203
|
}), a.addEventListener("paginate", (r) => {
|
|
204
|
-
|
|
204
|
+
o(r, !0);
|
|
205
205
|
});
|
|
206
206
|
let l = [], d = [];
|
|
207
207
|
Array.from(a.querySelectorAll("[data-mimic]")).forEach((r, p) => {
|
|
208
208
|
let c = r.getAttribute("data-mimic");
|
|
209
|
-
Array.from(document.querySelectorAll(`[name="${c}"]`)).forEach((
|
|
210
|
-
let
|
|
211
|
-
l.includes(
|
|
209
|
+
Array.from(document.querySelectorAll(`[name="${c}"]`)).forEach((h, g) => {
|
|
210
|
+
let b = h.closest("form");
|
|
211
|
+
l.includes(b) || l.push(b), d.includes(c) || d.push(c);
|
|
212
212
|
});
|
|
213
213
|
}), l.forEach((r, p) => {
|
|
214
214
|
const c = function() {
|
|
215
|
-
let
|
|
216
|
-
for (const [
|
|
217
|
-
document.querySelector(`[data-mimic="${
|
|
218
|
-
for (const
|
|
219
|
-
const
|
|
220
|
-
a.dispatchEvent(
|
|
215
|
+
let h = [], g = new FormData(r);
|
|
216
|
+
for (const [b, A] of g)
|
|
217
|
+
document.querySelector(`[data-mimic="${b}"]`) && !h.includes(b) ? (h.push(b), document.querySelector(`[data-mimic="${b}"]`).value = A) : document.querySelector(`[data-mimic="${b}"]`) && (document.querySelector(`[data-mimic="${b}"]`).value += "," + A);
|
|
218
|
+
for (const b of h) {
|
|
219
|
+
const A = new Event("force");
|
|
220
|
+
a.dispatchEvent(A);
|
|
221
221
|
}
|
|
222
|
-
for (const
|
|
223
|
-
if (!
|
|
224
|
-
document.querySelector(`[data-mimic="${
|
|
225
|
-
const
|
|
226
|
-
a.dispatchEvent(
|
|
222
|
+
for (const b of d)
|
|
223
|
+
if (!g.has(b) && r.querySelector(`[name="${b}"]`)) {
|
|
224
|
+
document.querySelector(`[data-mimic="${b}"]`).value = "";
|
|
225
|
+
const A = new Event("force");
|
|
226
|
+
a.dispatchEvent(A);
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
|
-
r.addEventListener("force", (
|
|
229
|
+
r.addEventListener("force", (h) => {
|
|
230
230
|
c();
|
|
231
|
-
}), r.addEventListener("change", (
|
|
231
|
+
}), r.addEventListener("change", (h) => {
|
|
232
232
|
c();
|
|
233
233
|
});
|
|
234
234
|
});
|
|
235
235
|
}, Q = (e, a, t) => {
|
|
236
236
|
if (a.getAttribute("data-ajax"))
|
|
237
237
|
return !1;
|
|
238
|
-
let
|
|
239
|
-
if (!
|
|
240
|
-
return
|
|
238
|
+
let i = e.querySelector("tbody"), s = a.querySelector("[data-sort]"), n = s.querySelector(`option:nth-child(${s.selectedIndex + 1})`), o = n.getAttribute("data-sort"), l = n.getAttribute("data-order"), d = n.getAttribute("data-format");
|
|
239
|
+
if (!o)
|
|
240
|
+
return i.innerHTML = t.innerHTML, tt(e), !1;
|
|
241
241
|
let r = [];
|
|
242
242
|
["asc", "desc", "descending"].includes(l) || (r = l.split(","));
|
|
243
243
|
let p = [];
|
|
244
|
-
Array.from(
|
|
245
|
-
let
|
|
246
|
-
|
|
247
|
-
const
|
|
248
|
-
p.push(
|
|
249
|
-
}), p.sort((
|
|
244
|
+
Array.from(i.querySelectorAll("tr")).forEach((h, g) => {
|
|
245
|
+
let b = h.querySelector('td[data-label="' + o + '"], th[data-label="' + o + '"]').textContent.trim();
|
|
246
|
+
h.querySelector('[data-label="' + o + '"] .td__content') && (b = h.querySelector('[data-label="' + o + '"] .td__content').textContent.trim()), r.length && r.includes(b) && (b = r.indexOf(b)), _t(b) && (b = At(b, 10)), d && d == "date" && (b = new Date(b));
|
|
247
|
+
const A = { index: b, row: h };
|
|
248
|
+
p.push(A);
|
|
249
|
+
}), p.sort((h, g) => h.index > g.index ? 1 : -1), (l == "descending" || l == "desc") && (p = p.reverse());
|
|
250
250
|
let c = "";
|
|
251
|
-
p.forEach((
|
|
252
|
-
c +=
|
|
253
|
-
}),
|
|
251
|
+
p.forEach((h, g) => {
|
|
252
|
+
c += h.row.outerHTML;
|
|
253
|
+
}), i.innerHTML = c;
|
|
254
254
|
}, K = (e, a, t) => {
|
|
255
255
|
e.classList.remove("table--filtered");
|
|
256
|
-
let
|
|
256
|
+
let i = it(a), s = [], n = 0, o = a.querySelector("[data-pagination]") ? parseInt(a.querySelector("[data-pagination]").value) : 1, l = a.querySelector("[data-show]") ? parseInt(a.querySelector("[data-show]").value) : 15;
|
|
257
257
|
if (Array.from(e.querySelectorAll("tbody tr")).forEach((r, p) => {
|
|
258
258
|
r.classList.remove("filtered"), r.classList.remove("filtered--matched"), r.classList.remove("filtered--show"), r.removeAttribute("data-filtered-by");
|
|
259
259
|
}), a.querySelector("[data-search]")) {
|
|
@@ -266,96 +266,96 @@ const tt = (e) => {
|
|
|
266
266
|
r.innerHTML = "", r.parentNode.classList.remove("hover");
|
|
267
267
|
});
|
|
268
268
|
let d = 0;
|
|
269
|
-
Object.values(
|
|
269
|
+
Object.values(i).forEach((r, p) => {
|
|
270
270
|
typeof r == "object" && Object.values(r).length ? d += Object.values(r).length : d++;
|
|
271
271
|
}), d && Array.from(a.querySelectorAll("[data-filter-count]")).forEach((r, p) => {
|
|
272
272
|
r.innerHTML += `(${d})`, r.parentNode.classList.add("hover");
|
|
273
273
|
}), e.classList.add("table--filtered");
|
|
274
|
-
for (const [r, p] of Object.entries(
|
|
275
|
-
Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((c,
|
|
276
|
-
let
|
|
277
|
-
p.forEach((
|
|
278
|
-
let
|
|
279
|
-
if (
|
|
280
|
-
|
|
281
|
-
else if (
|
|
282
|
-
let
|
|
283
|
-
|
|
284
|
-
} else if (
|
|
285
|
-
let
|
|
286
|
-
if (
|
|
287
|
-
|
|
274
|
+
for (const [r, p] of Object.entries(i))
|
|
275
|
+
Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((c, h) => {
|
|
276
|
+
let g = !1;
|
|
277
|
+
p.forEach((b, A) => {
|
|
278
|
+
let $ = c.querySelector(`[data-label="${r}"]`);
|
|
279
|
+
if (b && b == "$today")
|
|
280
|
+
b = Y("date", /* @__PURE__ */ new Date());
|
|
281
|
+
else if (b && b == "$yesterday") {
|
|
282
|
+
let k = /* @__PURE__ */ new Date();
|
|
283
|
+
k.setDate(k.getDate() - 1), b = Y("date", k);
|
|
284
|
+
} else if (b && (b == "$thisWeek" || b == "$lastWeek")) {
|
|
285
|
+
let k = /* @__PURE__ */ new Date(), L = new Date(k.setDate(k.getDate() - (k.getDay() - 1))), v = new Date(k.setDate(k.getDate() - k.getDay() + 7)), q = new Date($.textContent.toLowerCase());
|
|
286
|
+
if (k.setHours(0, 0, 0, 0), L.setHours(0, 0, 0, 0), v.setHours(0, 0, 0, 0), q.setHours(0, 0, 0, 0), b == "$thisWeek")
|
|
287
|
+
g = q >= L && q <= v;
|
|
288
288
|
else {
|
|
289
|
-
let
|
|
290
|
-
|
|
289
|
+
let E = new Date(L.setDate(L.getDate() - 7)), z = new Date(v.setDate(v.getDate() - 7));
|
|
290
|
+
E.setHours(0, 0, 0, 0), z.setHours(0, 0, 0, 0), g = q >= E && q <= z;
|
|
291
291
|
}
|
|
292
|
-
} else if (
|
|
293
|
-
let
|
|
294
|
-
var
|
|
295
|
-
let
|
|
296
|
-
|
|
297
|
-
} else if (
|
|
298
|
-
let
|
|
299
|
-
var
|
|
300
|
-
let
|
|
301
|
-
|
|
292
|
+
} else if (b && b == "$thisMonth") {
|
|
293
|
+
let k = /* @__PURE__ */ new Date(), L = k.getFullYear(), v = k.getMonth();
|
|
294
|
+
var M = new Date(L, v, 1), F = new Date(L, v + 1, 0);
|
|
295
|
+
let q = new Date($.textContent.toLowerCase());
|
|
296
|
+
M.setHours(0, 0, 0, 0), F.setHours(0, 0, 0, 0), q.setHours(0, 0, 0, 0), g = q >= M && q <= F;
|
|
297
|
+
} else if (b && b == "$lastMonth") {
|
|
298
|
+
let k = /* @__PURE__ */ new Date(), L = k.getFullYear(), v = k.getMonth();
|
|
299
|
+
var I = new Date(L, v - 1, 1), j = new Date(L, v, 0);
|
|
300
|
+
let q = new Date($.textContent.toLowerCase());
|
|
301
|
+
I.setHours(0, 0, 0, 0), j.setHours(0, 0, 0, 0), q.setHours(0, 0, 0, 0), g = q >= I && q <= j;
|
|
302
302
|
}
|
|
303
|
-
|
|
304
|
-
}),
|
|
303
|
+
$ && $.textContent.toLowerCase().includes(b.toLowerCase()) && (g = !0);
|
|
304
|
+
}), g || (c.classList.add("filtered"), c.setAttribute("data-filtered-by", r));
|
|
305
305
|
});
|
|
306
306
|
Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((r, p) => {
|
|
307
307
|
let c = !(s.length > 0 && s[0].value.length >= 3);
|
|
308
|
-
s.forEach((
|
|
309
|
-
let
|
|
310
|
-
|
|
308
|
+
s.forEach((h, g) => {
|
|
309
|
+
let b = r.querySelector(`[data-label="${h.column}"]`);
|
|
310
|
+
b && h.value.length >= 3 && b.textContent.toLowerCase().includes(h.value.toLowerCase()) && (c = !0);
|
|
311
311
|
}), c || r.classList.add("filtered");
|
|
312
312
|
}), Array.from(e.querySelectorAll("tbody tr:not(.filtered")).forEach((r, p) => {
|
|
313
|
-
n++, r.classList.add("filtered--matched"), Math.ceil(n / l) == parseInt(
|
|
314
|
-
}), t && (t.setAttribute("data-total", n), t.setAttribute("data-show", l), t.setAttribute("data-page",
|
|
315
|
-
},
|
|
316
|
-
Array.from(a.querySelectorAll("[data-query]")).forEach((
|
|
317
|
-
let n =
|
|
313
|
+
n++, r.classList.add("filtered--matched"), Math.ceil(n / l) == parseInt(o) && r.classList.add("filtered--show");
|
|
314
|
+
}), t && (t.setAttribute("data-total", n), t.setAttribute("data-show", l), t.setAttribute("data-page", o));
|
|
315
|
+
}, U = (e, a, t) => {
|
|
316
|
+
Array.from(a.querySelectorAll("[data-query]")).forEach((i, s) => {
|
|
317
|
+
let n = i.getAttribute("data-query"), o;
|
|
318
318
|
if (n == "total")
|
|
319
|
-
t.hasAttribute("data-total") ?
|
|
319
|
+
t.hasAttribute("data-total") ? o = t.getAttribute("data-total") : o = (e.classList.contains("table--filtered"), e.querySelectorAll("tbody tr").length);
|
|
320
320
|
else if (!n.includes(" == ") && n.includes(" & ")) {
|
|
321
321
|
let l = n.split(" & "), d = "";
|
|
322
322
|
l.forEach((r) => {
|
|
323
323
|
d += `:not([data-filtered-by="${r}"])`;
|
|
324
|
-
}),
|
|
324
|
+
}), o = Array.from(e.querySelectorAll(`tbody tr${d}`)).length;
|
|
325
325
|
} else if (!n.includes(" == "))
|
|
326
|
-
|
|
326
|
+
o = Array.from(e.querySelectorAll(`tbody tr:not([data-filtered-by="${n}"])`)).length;
|
|
327
327
|
else if (n.includes(" && ")) {
|
|
328
328
|
let l = n.split(" && ");
|
|
329
|
-
|
|
329
|
+
o = Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).filter(function(d) {
|
|
330
330
|
let r = !0;
|
|
331
331
|
for (const [p, c] of Object.entries(l)) {
|
|
332
|
-
let
|
|
333
|
-
(!d.querySelector(`td[data-label="${
|
|
332
|
+
let h = c.split(" == ");
|
|
333
|
+
(!d.querySelector(`td[data-label="${h[0]}"]`) || d.querySelector(`td[data-label="${h[0]}"]`).textContent != `${h[1]}`) && (r = !1);
|
|
334
334
|
}
|
|
335
335
|
return r;
|
|
336
336
|
}).length;
|
|
337
337
|
} else {
|
|
338
338
|
let l = n.split(" == ");
|
|
339
|
-
|
|
339
|
+
o = Array.from(e.querySelectorAll(`tbody tr.filtered--matched td[data-label="${l[0]}"], tbody tr[data-filtered-by="${l[0]}"] td[data-label="${l[0]}"]`)).filter(function(d) {
|
|
340
340
|
return d.textContent === l[1];
|
|
341
341
|
}).length;
|
|
342
342
|
}
|
|
343
|
-
|
|
343
|
+
i.hasAttribute("data-total") ? i.setAttribute("data-total", o) : i.innerHTML = o;
|
|
344
344
|
});
|
|
345
|
-
}, Et = function(e, a, t,
|
|
345
|
+
}, Et = function(e, a, t, i) {
|
|
346
346
|
t.addEventListener("update-page", (s) => {
|
|
347
|
-
let n = a.querySelector("[data-pagination]"),
|
|
348
|
-
if (n.value =
|
|
347
|
+
let n = a.querySelector("[data-pagination]"), o = s.detail.page;
|
|
348
|
+
if (n.value = o, a.dispatchEvent(new Event("paginate")), i.setAttribute("data-page", o), e.hasAttribute("data-show-history")) {
|
|
349
349
|
const l = new URL(location);
|
|
350
|
-
l.searchParams.set("page",
|
|
350
|
+
l.searchParams.set("page", o), history.pushState({ type: "pagination", form: a.getAttribute("id"), page: o }, "", l);
|
|
351
351
|
}
|
|
352
|
-
if (!
|
|
352
|
+
if (!i.hasAttribute("data-no-scroll")) {
|
|
353
353
|
const l = e.getBoundingClientRect().top + window.pageYOffset + -250;
|
|
354
354
|
window.scrollTo({ top: l, behavior: "smooth" });
|
|
355
355
|
}
|
|
356
356
|
}), t.addEventListener("update-show", (s) => {
|
|
357
|
-
let n = a.querySelector("[data-show]"),
|
|
358
|
-
n.value =
|
|
357
|
+
let n = a.querySelector("[data-show]"), o = s.detail.show;
|
|
358
|
+
n.value = o, i.setAttribute("data-show", o), a.dispatchEvent(new Event("submit"));
|
|
359
359
|
});
|
|
360
360
|
}, Tt = (e, a) => {
|
|
361
361
|
if (!e)
|
|
@@ -364,9 +364,9 @@ const tt = (e) => {
|
|
|
364
364
|
Ht(a);
|
|
365
365
|
});
|
|
366
366
|
}, Ht = function(e) {
|
|
367
|
-
for (var a = [], t = e.getElementsByTagName("tr"),
|
|
368
|
-
for (var s = t[
|
|
369
|
-
n.push(`"${s[
|
|
367
|
+
for (var a = [], t = e.getElementsByTagName("tr"), i = 0; i < t.length; i++) {
|
|
368
|
+
for (var s = t[i].querySelectorAll("td,th"), n = [], o = 0; o < s.length; o++)
|
|
369
|
+
n.push(`"${s[o].textContent}"`);
|
|
370
370
|
a.push(n.join(","));
|
|
371
371
|
}
|
|
372
372
|
a = a.join(`
|
|
@@ -376,79 +376,78 @@ const tt = (e) => {
|
|
|
376
376
|
d.download = "export.csv";
|
|
377
377
|
var r = window.URL.createObjectURL(l);
|
|
378
378
|
d.href = r, d.style.display = "none", document.body.appendChild(d), d.click(), document.body.removeChild(d);
|
|
379
|
-
}, at = function(e, a, t,
|
|
380
|
-
if (tt(e), St(e,
|
|
379
|
+
}, at = function(e, a, t, i) {
|
|
380
|
+
if (tt(e), St(e, i), U(e, a, i), i && i.classList.contains("table--cta")) {
|
|
381
381
|
let s = function() {
|
|
382
|
-
Array.from(e.querySelectorAll("tr")).forEach((
|
|
383
|
-
let d =
|
|
384
|
-
|
|
382
|
+
Array.from(e.querySelectorAll("tr")).forEach((o, l) => {
|
|
383
|
+
let d = o.offsetHeight;
|
|
384
|
+
o.style.setProperty("--row-height", `${d}px`);
|
|
385
385
|
});
|
|
386
386
|
};
|
|
387
387
|
const n = Lt(e);
|
|
388
|
-
|
|
388
|
+
i.style.setProperty("--cta-width", `${n}rem`), new ResizeObserver(s).observe(e);
|
|
389
389
|
}
|
|
390
390
|
}, it = function(e) {
|
|
391
391
|
let a = new Object();
|
|
392
|
-
return Array.from(e.querySelectorAll("[data-filter]")).forEach((t,
|
|
392
|
+
return Array.from(e.querySelectorAll("[data-filter]")).forEach((t, i) => {
|
|
393
393
|
if (!(t.type == "radio" && !t.checked) && !(t.type == "checkbox" && !t.checked) && t && t.value) {
|
|
394
394
|
let s = t.getAttribute("data-filter");
|
|
395
395
|
a[s] || (a[s] = new Array()), a[s].push(t.value);
|
|
396
396
|
}
|
|
397
397
|
}), a;
|
|
398
|
-
}, ot = function(e, a, t,
|
|
398
|
+
}, ot = function(e, a, t, i) {
|
|
399
399
|
return kt(this, void 0, void 0, function* () {
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
b.innerHTML = "", b.parentNode.classList.remove("hover");
|
|
400
|
+
let s = new FormData(a), n = new URLSearchParams(s).toString(), o = e.querySelectorAll("thead tr th"), l = e.querySelector("tbody"), d = a.getAttribute("data-ajax");
|
|
401
|
+
i.classList.add("table--loading");
|
|
402
|
+
let r = it(a);
|
|
403
|
+
Array.from(a.querySelectorAll("[data-filter-count]")).forEach((h, g) => {
|
|
404
|
+
h.innerHTML = "", h.parentNode.classList.remove("hover");
|
|
406
405
|
});
|
|
407
|
-
let
|
|
408
|
-
Object.values(
|
|
409
|
-
typeof
|
|
410
|
-
}),
|
|
411
|
-
|
|
412
|
-
}), window.controller || (window.controller = []), window.controller[
|
|
413
|
-
const { signal:
|
|
406
|
+
let p = 0;
|
|
407
|
+
Object.values(r).forEach((h, g) => {
|
|
408
|
+
typeof h == "object" && Object.values(h).length ? p += Object.values(h).length : p++;
|
|
409
|
+
}), p && Array.from(a.querySelectorAll("[data-filter-count]")).forEach((h, g) => {
|
|
410
|
+
h.innerHTML += `(${p})`, h.parentNode.classList.add("hover");
|
|
411
|
+
}), window.controller || (window.controller = []), window.controller[d] && window.controller[d].abort(), window.controller[d] = new AbortController();
|
|
412
|
+
const { signal: c } = controller[d];
|
|
414
413
|
t.setAttribute("data-loading", "true"), a.classList.add("processing");
|
|
415
414
|
try {
|
|
416
|
-
yield fetch(
|
|
417
|
-
let
|
|
418
|
-
|
|
419
|
-
var
|
|
420
|
-
|
|
421
|
-
let
|
|
422
|
-
var
|
|
423
|
-
if (
|
|
424
|
-
var V =
|
|
425
|
-
|
|
426
|
-
return
|
|
415
|
+
yield fetch(d + "?" + n, { signal: c, method: "get", credentials: "same-origin", headers: new Headers({ "Content-Type": "application/json", Accept: "application/json", "X-Requested-With": "XMLHttpRequest" }) }).then((h) => h.json()).then((h) => {
|
|
416
|
+
let g = a.hasAttribute("data-schema") ? a.getAttribute("data-schema") : "data", b = 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", $ = R(h, b, 15), M = R(h, A, 1), F = R(h, g), I = i.hasAttribute("data-empty-msg") ? i.getAttribute("data-empty-msg") : "No results found";
|
|
417
|
+
F ? (l.innerHTML = "", F.forEach((j, k) => {
|
|
418
|
+
var L = document.createElement("tr");
|
|
419
|
+
o.forEach((v, q) => {
|
|
420
|
+
let E = "";
|
|
421
|
+
var z = document.createElement("td");
|
|
422
|
+
if (z.setAttribute("data-label", v.innerText), v.getAttribute("data-output")) {
|
|
423
|
+
var V = v.getAttribute("data-output");
|
|
424
|
+
E = V.replace(new RegExp(/{(.*?)}/, "gm"), function(dt) {
|
|
425
|
+
return R(j, dt.replace("{", "").replace("}", ""));
|
|
427
426
|
});
|
|
428
427
|
}
|
|
429
|
-
if (
|
|
430
|
-
var V =
|
|
431
|
-
let ct =
|
|
432
|
-
|
|
433
|
-
let ut =
|
|
434
|
-
if (
|
|
435
|
-
const W =
|
|
436
|
-
|
|
428
|
+
if (v.hasAttribute("data-output-array")) {
|
|
429
|
+
var V = v.getAttribute("data-output");
|
|
430
|
+
let ct = R(j, V.replace("{", "").replace("}", ""));
|
|
431
|
+
E = "", ct.forEach((J, Ni) => {
|
|
432
|
+
let ut = v.getAttribute("data-output-array"), O = "";
|
|
433
|
+
if (v.hasAttribute("data-output-array-property") && v.hasAttribute("data-output-array-transform")) {
|
|
434
|
+
const W = R(J, v.getAttribute("data-output-array-property")), mt = JSON.parse(v.getAttribute("data-output-array-transform"))[W];
|
|
435
|
+
O = ut.replace(`{${v.getAttribute("data-output-array-property")}}`, mt);
|
|
437
436
|
}
|
|
438
|
-
|
|
439
|
-
return
|
|
440
|
-
}),
|
|
437
|
+
O = O.replace(new RegExp(/{(.*?)}/, "gm"), function(W) {
|
|
438
|
+
return R(J, W.replace("{", "").replace("}", ""));
|
|
439
|
+
}), E += O;
|
|
441
440
|
});
|
|
442
441
|
}
|
|
443
|
-
|
|
444
|
-
}),
|
|
445
|
-
}), et(e, a),
|
|
446
|
-
let
|
|
447
|
-
|
|
448
|
-
}), parseInt(
|
|
442
|
+
v.hasAttribute("data-transform") && (E = JSON.parse(v.getAttribute("data-transform"))[E], !E && v.hasAttribute("data-default") && (E = v.getAttribute("data-default"))), z.innerHTML = E, L.appendChild(z);
|
|
443
|
+
}), l.appendChild(L);
|
|
444
|
+
}), et(e, a), i.setAttribute("data-total", parseInt($)), i.setAttribute("data-page", parseInt(M)), at(e, a, t, i), Array.from(a.querySelectorAll("[data-ajax-query]")).forEach((j, k) => {
|
|
445
|
+
let L = R(h, j.getAttribute("data-ajax-query"), "");
|
|
446
|
+
j.hasAttribute("data-total") ? j.setAttribute("data-total", L) : j.innerHTML = L;
|
|
447
|
+
}), parseInt($) == 0 && (l.innerHTML = `<tr><td colspan="100%"><span>${I}</span></td></tr>`), i.classList.remove("table--loading"), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Ajax table loaded", url: d, formData: n })) : l.innerHTML = '<tr><td colspan="100%"><span>Error loading table</span></td></tr>', t.removeAttribute("data-loading"), a.classList.remove("processing");
|
|
449
448
|
});
|
|
450
|
-
} catch (
|
|
451
|
-
console.log(
|
|
449
|
+
} catch (h) {
|
|
450
|
+
console.log(h);
|
|
452
451
|
}
|
|
453
452
|
});
|
|
454
453
|
}, Y = (e, a) => {
|
|
@@ -464,8 +463,8 @@ const tt = (e) => {
|
|
|
464
463
|
class Mt extends HTMLElement {
|
|
465
464
|
constructor() {
|
|
466
465
|
super(), this.attachShadow({ mode: "open" });
|
|
467
|
-
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`,
|
|
468
|
-
|
|
466
|
+
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");
|
|
467
|
+
i.innerHTML = `
|
|
469
468
|
<style>
|
|
470
469
|
@import "${t}";
|
|
471
470
|
:host{--wrapper-padding: 2rem;--bg-colour: #ffffff;display:block;background:#fff;padding:var(--wrapper-padding);box-shadow:0px 6px 12px rgba(0,0,0,.11);border-radius:0.625rem;margin-bottom:2rem;overflow:hidden}:host:before{display:none !important}@media screen and (prefers-color-scheme: dark){:host{background:var(--colour-canvas-2)}}@media(forced-colors: active){:host{--wrapper-padding: 0;background:var(--colour-canvas-2)}}::slotted(table){margin-bottom:0 !important}.table__wrapper{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}@container (width < 23.4375em){:host(:not(.table--fullwidth)){margin-left:-1.5rem;margin-right:-1.5rem;margin-bottom:0;background:var(--colour-canvas-2);border-radius:0;background:none;padding:0;box-shadow:none;overflow:visible}:host(:not(.table--fullwidth)) .table__wrapper:not(.table--fullwidth){overflow:hidden;max-height:none !important}:host(:not(.table--fullwidth)) ::slotted(table){overflow:visible !important;margin-inline:1.5rem;margin-bottom:1.5rem !important;width:calc(100% - 3rem) !important;display:block}:host(:not(.table--fullwidth)) .table--cta{border-bottom:0}:host(:not(.table--fullwidth)) .table--cta:after{content:none;display:none !important}}@container (width > 23.4375em){:host{--cta-width: 8rem}:host(.table--loading){--cta-width: 1.5rem!important}.table--cta{position:relative}.table--cta .table__wrapper{overflow-y:hidden;margin-bottom:0}}.table__wrapper:is(.mh-sm,.mh-md,.mh-lg){position:relative}.table__wrapper:is(.mh-sm,.mh-md,.mh-lg)::before{top:calc(100% - 1.2rem);bottom:2px;height:1.2rem;border-bottom:2px solid var(--colour-border);margin-bottom:-1.2rem}.table--cta>.table__wrapper:is(.mh-sm,.mh-md,.mh-lg){max-height:none;position:static}.table--cta>.table__wrapper:is(.mh-sm,.mh-md,.mh-lg)::before{display:none}@container (width < 23.4375em){.table__wrapper.has-actionbar{margin-top:calc(-100vh + 6.75rem) !important}}:host(.table--loading){pointer-events:none;position:relative}:host(.table--loading) ::slotted(table){min-height:20rem;opacity:.5}:host(.table--loading)::after{content:"Loading...";position:absolute;top:6.25rem;left:50%;transform:translate(-50%, 0);font-weight:bold;color:var(--colour-heading);font-size:1.5rem;text-shadow:0px 0px 10px var(--colour-canvas-2);padding-inline:2rem;text-shadow:0px 0px 10px var(--colour-canvas-2);background:radial-gradient(var(--colour-canvas-2), transparent)}@container (width < 23.4375em){.pagination--table{margin-inline:1.5rem;width:auto}:host(.table--fullwidth) .pagination--table{margin-inline:0}}/*# sourceMappingURL=assets/css/components/table.css.map */
|
|
@@ -490,7 +489,7 @@ class Mt extends HTMLElement {
|
|
|
490
489
|
</div>
|
|
491
490
|
</div>
|
|
492
491
|
<iam-pagination class="pagination--table" ${this.hasAttribute("data-page") ? `data-page="${this.getAttribute("data-page")}"` : ""} ></iam-pagination>
|
|
493
|
-
`, this.shadowRoot.appendChild(o.content.cloneNode(!0)), document.getElementById("tableExtras") || document.head.insertAdjacentHTML("beforeend", `<style id="tableExtras">*:has(>iam-table){container-type:inline-size}iam-table{--hover-background: var(--colour-light);--row-bg: var(--colour-canvas-2)}iam-table thead tr{background:var(--row-bg)}iam-table tbody tr{background:var(--row-bg)}iam-table tbody tr:is(:hover,:focus-within,.hover){--bg-colour-rgb: 238,238,238;--row-bg: var(--hover-background);background:var(--row-bg)}@media screen and (prefers-color-scheme: dark){iam-table tbody tr{--hover-background: var(--colour-canvas)}iam-table tbody tr:is(:hover,:focus-within,.hover){background:var(--row-bg)}}iam-table[data-expandable] [data-expand-button][aria-expanded]{background-color:rgba(0,0,0,0)}@container (width < 23.4375em){iam-table:not(.table--fullwidth) thead{display:none}iam-table:not(.table--fullwidth) tbody{display:block;overflow:visible}iam-table:not(.table--fullwidth) tbody tr td:first-child{padding-top:0}iam-table:not(.table--fullwidth) tr{display:block;position:relative;border:none;background:var(--row-bg);padding:var(--wrapper-padding);box-shadow:0px 6px 12px rgba(0,0,0,.11);border-radius:0.5rem}iam-table:not(.table--fullwidth) tr+tr{margin-top:2rem}iam-table:not(.table--fullwidth) tr:is(:hover,:focus,.hover){--row-bg: var(--colour-canvas-2)}iam-table:not(.table--fullwidth) :is(td,th){display:block;border-color:var(--colour-border);padding-right:0}iam-table:not(.table--fullwidth) :is(td,th):nth-child(1){border-top:none}iam-table:not(.table--fullwidth) :is(td,th)[data-label]:not([data-label=""]):before{content:attr(data-label);color:var(--colour-heading);padding:0 0 0.375rem 0;margin-bottom:0;display:block;font-weight:bold}iam-table:not(.table--fullwidth) td:first-child::after{top:1.75rem !important}iam-table:not(.table--fullwidth) td::after{top:2.5rem}iam-table:not(.table--fullwidth) .td--fixed{padding-right:50%}iam-table:not(.table--fullwidth) tbody tr td:not(:first-child){border-top:var(--border-width) solid currentColor;border-color:var(--colour-border) !important}iam-table:not(.table--fullwidth) tr:not([data-view=full]) td p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}iam-table:not(.table--fullwidth) td:has([data-expand-button]){height:0;padding:0;position:relative}iam-table:not(.table--fullwidth) td:has([data-expand-button])+td{border-top:none !important;padding-top:0 !important}iam-table:not(.table--fullwidth) [data-expand-button]{top:0;right:0;background:rgba(0,0,0,0) !important;border:none;position:absolute;overflow:hidden;--compact-size: 2rem}iam-table:not(.table--fullwidth) [data-expand-button]:before{font-family:"Font Awesome 6 Pro";content:"";font-weight:300 !important;font-size:1.75rem;line-height:var(--compact-size) !important}iam-table:not(.table--fullwidth) [data-expand-button][aria-expanded]:before{content:"";font-weight:900 !important}iam-table:not(.table--fullwidth) .dialog__wrapper{margin-top:-0.5rem;margin-left:-1rem;z-index:10}iam-table:not(.table--fullwidth) tbody tr:not([data-view=full]) td:not(.td--fixed)+td:not(.td--fixed)+td+td{display:none}iam-table.table--cta:not(.table--fullwidth) tr td:not(:first-child):last-child{display:block !important;position:static;width:100%;min-width:100%;margin-left:0;padding-left:0;text-align:left;min-height:0}iam-table.table--cta:not(.table--fullwidth) tr td:not(:first-child):last-child:after{display:none}}@container (width > 23.4375em){iam-table.table--cta:not(.table--loading):has(tr:first-child td:first-child:last-child){padding-right:calc(var(--wrapper-padding) + 1.5rem)}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>th:nth-last-child(2),iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>td:nth-last-child(2){padding-right:var(--cta-width)}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>*:not(:first-child):last-child{position:absolute;left:calc(100% - var(--cta-width));top:auto;background:rgba(0,0,0,0);width:var(--cta-width);min-height:calc(var(--row-height) - 2px);text-align:right;background:linear-gradient(90deg, transparent 0%, var(--row-bg) 1.25rem);cursor:default}@media screen and (prefers-color-scheme: dark){iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>*:not(:first-child):last-child{background:linear-gradient(90deg, transparent 0%, var(--row-bg) 1.25rem)}}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>*:not(:first-child):last-child a{white-space:nowrap;padding-right:.2rem}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tbody tr:hover>*:not(:first-child):last-child{background:linear-gradient(90deg, transparent 0%, var(--row-bg) 1.25rem)}}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta){position:relative}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) thead{position:sticky;top:0;left:0;z-index:1;background-color:var(--row-bg)}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) thead:before{content:"";position:absolute;bottom:0;left:0;width:100%;height:2px;background:var(--colour-primary)}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) tbody{position:relative}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) tbody tr:first-child td{border-top:0}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) tbody tr:last-child td{border-bottom:0}table :is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty)){position:relative;padding-left:1.5rem}table :is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty))::before{margin-left:-1.5rem !important}table :is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty)):after{font-family:"Font Awesome 6 Pro";position:absolute;top:1rem;left:0;font-size:1rem;line-height:1;height:1rem;width:1rem;display:inline-block}table [data-content=high]:after{content:"";font-weight:normal;color:var(--colour-danger)}table [data-content=medium]:after{content:"";font-weight:normal;color:var(--colour-warning)}table [data-content=low]:after{content:"";font-weight:normal;color:var(--colour-complete)}table [data-content=unknown]:after{content:"";font-weight:normal;color:var(--colour-muted)}table :is([data-content=overdue],[data-content=due],[data-content=incomplete]):after{content:"";color:var(--colour-danger)}table :is([data-content="not started"],[data-content="to do"],[data-content="on track"]):after{content:"";color:var(--colour-muted)}table :is([data-content="requires approval"],[data-content="approval required"],[data-content=upcoming]):after{content:"";color:var(--colour-warning)}table :is([data-content=warning]):after{content:"";color:var(--colour-warning)}table :is([data-content=verified],[data-content=completed],[data-content=complete]):after{content:"";font-weight:normal;color:var(--colour-complete)}table .alert-status:not([data-content="0"]):not([data-content=""]):not(:empty):after{content:"";color:var(--colour-primary)}iam-table .table--filtered tbody tr:not(.filtered--show){display:none !important}iam-table table:not(.table--filtered):not(.table--ajax) tbody tr:nth-child(15)~tr{display:none}iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick){padding-left:0 !important;margin:0 !important}iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick):before,iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick):after{top:.75rem !important;left:.25rem !important}iam-table:has([type=checkbox]:checked) tr:has([type=checkbox]) [type=checkbox]{width:100vw;height:100%;max-height:var(--row-height);max-width:100vw;cursor:pointer;pointer-events:all;top:auto;margin:0;margin-top:0rem}iam-table tr:has([type=checkbox]:checked){--row-bg: #E0E0E0}@media screen and (prefers-color-scheme: dark){iam-table tr:has([type=checkbox]:checked){--row-bg: #000000}}@container (width < 23.4375em){@media screen and (prefers-color-scheme: light){iam-table:has([slot=before]) iam-actionbar{background-color:#e6eaec}}iam-table:has([slot=before]) .actionbar__sticky+*{margin-top:0 !important}iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick){padding-left:0 !important;margin:0 !important;min-height:2rem}iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick):before,iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick):after{top:.25rem !important;left:0 !important}iam-table:has([type=checkbox]:checked) tr:has([type=checkbox]) [type=checkbox]{width:100%;height:100%;max-height:100%;max-width:100%;margin-top:-2rem}}iam-table.table--fullwidth:not([data-expandable]) th.expand-button-heading{display:none}iam-table.table--fullwidth:not([data-expandable]) td:has([data-expand-button]){display:none}@container (width > 23.4375em){iam-table:not([data-expandable]) th.expand-button-heading{display:none}iam-table:not([data-expandable]) td.td--expand{display:none}iam-table[data-expandable] [data-expand-button]{margin:0}iam-table[data-expandable] [data-expand-button]:before{font-family:"Font Awesome 6 Pro";content:"";font-weight:500}iam-table[data-expandable] [data-expand-button][aria-expanded]:before{content:""}iam-table[data-expandable] tr:not(:has(p)) [data-expand-button]{display:none}iam-table[data-expandable] tr:not([data-view=full]) td p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}}@container (width < 23.4375em){iam-table:not(.table--fullwidth) .td--fixed+td:not(.td--fixed){border-top:none}}@container (width > 23.4375em){iam-table{--width-adjust: 0px}iam-table:has([type=checkbox]){--width-adjust: -1rem}iam-table .th--fixed{min-width:calc(4.5rem + var(--width-adjust));position:absolute;padding:0}iam-table .th--fixed:after{top:auto;left:0;content:"";position:absolute;width:100%;height:calc(var(--row-height) - 2px);background:linear-gradient(90deg, var(--row-bg) calc(100% - 1.5rem), transparent 100%)}iam-table .td--fixed{position:absolute;position:absolute;left:auto;top:auto;z-index:3;padding:0.25rem 0 0 0;min-width:4.5rem;height:calc(var(--row-height) - 2px);text-align:left;background:linear-gradient(90deg, var(--row-bg) calc(100% - 1.5rem), transparent 100%)}iam-table .td--fixed:has([open]){z-index:4}iam-table tr:is(:hover,:focus) .td--fixed{background:linear-gradient(90deg, var(--row-bg) calc(100% - 1.5rem), transparent 100%)}iam-table tr:has([data-expand-button]){height:calc(4.625rem - 2px)}iam-table .th--fixed+th:not(.th--fixed),iam-table .td--fixed+td:not(.td--fixed){padding-left:calc(4.5rem + var(--width-adjust))}iam-table .th--fixed:not(.expand-button-heading)+.th--fixed+th:not(.th--fixed),iam-table .td--fixed:not(.td--expand)+.td--fixed+td:not(.td--fixed){padding-left:calc(7.75rem + var(--width-adjust))}iam-table[data-expandable] .th--fixed+.th--fixed+th:not(.th--fixed),iam-table[data-expandable] .td--fixed+.td--fixed+td:not(.td--fixed){padding-left:calc(7.75rem + var(--width-adjust))}iam-table .th--fixed+.th--fixed,iam-table .td--fixed+.td--fixed{padding-left:calc(3.25rem + var(--width-adjust));min-width:calc(7.75rem + var(--width-adjust))}iam-table .th--fixed:has(+.th--fixed),iam-table .td--fixed:has(+.td--fixed){min-width:calc(3.25rem + var(--width-adjust));z-index:5}iam-table .dialog__wrapper{z-index:10}iam-table .dialog__wrapper:has([open]){z-index:20}iam-table[data-expandable] input:is([type=radio],[type=checkbox])+label:before,iam-table[data-expandable] input:is([type=radio],[type=checkbox])+label:after{left:1.25rem !important}iam-table:not([data-expandable]) th.expand-button-heading+th{padding-left:0 !important}iam-table:not([data-expandable]) td.td--expand+td{padding-left:0 !important}iam-table:not([data-expandable]) th.expand-button-heading+.th--fixed{min-width:calc(4.5rem + var(--width-adjust)) !important}iam-table:not([data-expandable]) td.td--expand+.td--fixed{min-width:calc(4.5rem + var(--width-adjust)) !important}}/*# sourceMappingURL=assets/css/components/table.global.css.map */
|
|
492
|
+
`, this.shadowRoot.appendChild(i.content.cloneNode(!0)), document.getElementById("tableExtras") || document.head.insertAdjacentHTML("beforeend", `<style id="tableExtras">*:has(>iam-table){container-type:inline-size}iam-table{--hover-background: var(--colour-light);--row-bg: var(--colour-canvas-2)}iam-table thead tr{background:var(--row-bg)}iam-table tbody tr{background:var(--row-bg)}iam-table tbody tr:is(:hover,:focus-within,.hover){--bg-colour-rgb: 238,238,238;--row-bg: var(--hover-background);background:var(--row-bg)}@media screen and (prefers-color-scheme: dark){iam-table tbody tr{--hover-background: var(--colour-canvas)}iam-table tbody tr:is(:hover,:focus-within,.hover){background:var(--row-bg)}}iam-table[data-expandable] [data-expand-button][aria-expanded]{background-color:rgba(0,0,0,0)}@container (width < 23.4375em){iam-table:not(.table--fullwidth) thead{display:none}iam-table:not(.table--fullwidth) tbody{display:block;overflow:visible}iam-table:not(.table--fullwidth) tbody tr td:first-child{padding-top:0}iam-table:not(.table--fullwidth) tr{display:block;position:relative;border:none;background:var(--row-bg);padding:var(--wrapper-padding);box-shadow:0px 6px 12px rgba(0,0,0,.11);border-radius:0.5rem}iam-table:not(.table--fullwidth) tr+tr{margin-top:2rem}iam-table:not(.table--fullwidth) tr:is(:hover,:focus,.hover){--row-bg: var(--colour-canvas-2)}iam-table:not(.table--fullwidth) :is(td,th){display:block;border-color:var(--colour-border);padding-right:0}iam-table:not(.table--fullwidth) :is(td,th):nth-child(1){border-top:none}iam-table:not(.table--fullwidth) :is(td,th)[data-label]:not([data-label=""]):before{content:attr(data-label);color:var(--colour-heading);padding:0 0 0.375rem 0;margin-bottom:0;display:block;font-weight:bold}iam-table:not(.table--fullwidth) td:first-child::after{top:1.75rem !important}iam-table:not(.table--fullwidth) td::after{top:2.5rem}iam-table:not(.table--fullwidth) .td--fixed{padding-right:50%}iam-table:not(.table--fullwidth) tbody tr td:not(:first-child){border-top:var(--border-width) solid currentColor;border-color:var(--colour-border) !important}iam-table:not(.table--fullwidth) tr:not([data-view=full]) td p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}iam-table:not(.table--fullwidth) td:has([data-expand-button]){height:0;padding:0;position:relative}iam-table:not(.table--fullwidth) td:has([data-expand-button])+td{border-top:none !important;padding-top:0 !important}iam-table:not(.table--fullwidth) [data-expand-button]{top:0;right:0;background:rgba(0,0,0,0) !important;border:none;position:absolute;overflow:hidden;--compact-size: 2rem}iam-table:not(.table--fullwidth) [data-expand-button]:before{font-family:"Font Awesome 6 Pro";content:"";font-weight:300 !important;font-size:1.75rem;line-height:var(--compact-size) !important}iam-table:not(.table--fullwidth) [data-expand-button][aria-expanded]:before{content:"";font-weight:900 !important}iam-table:not(.table--fullwidth) .dialog__wrapper{margin-top:-0.5rem;margin-left:-1rem;z-index:10}iam-table:not(.table--fullwidth) tbody tr:not([data-view=full]) td:not(.td--fixed)+td:not(.td--fixed)+td+td{display:none}iam-table.table--cta:not(.table--fullwidth) tr td:not(:first-child):last-child{display:block !important;position:static;width:100%;min-width:100%;margin-left:0;padding-left:0;text-align:left;min-height:0}iam-table.table--cta:not(.table--fullwidth) tr td:not(:first-child):last-child:after{display:none}}@container (width > 23.4375em){iam-table.table--cta:not(.table--loading):has(tr:first-child td:first-child:last-child){padding-right:calc(var(--wrapper-padding) + 1.5rem)}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>th:nth-last-child(2),iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>td:nth-last-child(2){padding-right:var(--cta-width)}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>*:not(:first-child):last-child{position:absolute;left:calc(100% - var(--cta-width));top:auto;background:rgba(0,0,0,0);width:var(--cta-width);min-height:calc(var(--row-height) - 2px);text-align:right;background:linear-gradient(90deg, transparent 0%, var(--row-bg) 1.25rem);cursor:default}@media screen and (prefers-color-scheme: dark){iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>*:not(:first-child):last-child{background:linear-gradient(90deg, transparent 0%, var(--row-bg) 1.25rem)}}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>*:not(:first-child):last-child a{white-space:nowrap;padding-right:.2rem}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tbody tr:hover>*:not(:first-child):last-child{background:linear-gradient(90deg, transparent 0%, var(--row-bg) 1.25rem)}}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta){position:relative}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) thead{position:sticky;top:0;left:0;z-index:1;background-color:var(--row-bg)}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) thead:before{content:"";position:absolute;bottom:0;left:0;width:100%;height:2px;background:var(--colour-primary)}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) tbody{position:relative}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) tbody tr:first-child td{border-top:0}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) tbody tr:last-child td{border-bottom:0}table :is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty)){position:relative;padding-left:1.5rem}table :is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty))::before{margin-left:-1.5rem !important}table :is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty)):after{font-family:"Font Awesome 6 Pro";position:absolute;top:1rem;left:0;font-size:1rem;line-height:1;height:1rem;width:1rem;display:inline-block}table [data-content=high]:after{content:"";font-weight:normal;color:var(--colour-danger)}table [data-content=medium]:after{content:"";font-weight:normal;color:var(--colour-warning)}table [data-content=low]:after{content:"";font-weight:normal;color:var(--colour-complete)}table [data-content=unknown]:after{content:"";font-weight:normal;color:var(--colour-muted)}table :is([data-content=overdue],[data-content=due],[data-content=incomplete]):after{content:"";color:var(--colour-danger)}table :is([data-content="not started"],[data-content="to do"],[data-content="on track"]):after{content:"";color:var(--colour-muted)}table :is([data-content="requires approval"],[data-content="approval required"],[data-content=upcoming]):after{content:"";color:var(--colour-warning)}table :is([data-content=warning]):after{content:"";color:var(--colour-warning)}table :is([data-content=verified],[data-content=completed],[data-content=complete]):after{content:"";font-weight:normal;color:var(--colour-complete)}table .alert-status:not([data-content="0"]):not([data-content=""]):not(:empty):after{content:"";color:var(--colour-primary)}iam-table .table--filtered tbody tr:not(.filtered--show){display:none !important}iam-table table:not(.table--filtered):not(.table--ajax) tbody tr:nth-child(15)~tr{display:none}iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick){padding-left:0 !important;margin:0 !important}iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick):before,iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick):after{top:.75rem !important;left:.25rem !important}iam-table:has([type=checkbox]:checked) tr:has([type=checkbox]) [type=checkbox]{width:100vw;height:100%;max-height:var(--row-height);max-width:100vw;cursor:pointer;pointer-events:all;top:auto;margin:0;margin-top:0rem}iam-table tr:has([type=checkbox]:checked){--row-bg: #E0E0E0}@media screen and (prefers-color-scheme: dark){iam-table tr:has([type=checkbox]:checked){--row-bg: #000000}}@container (width < 23.4375em){@media screen and (prefers-color-scheme: light){iam-table:has([slot=before]) iam-actionbar{background-color:#e6eaec}}iam-table:has([slot=before]) .actionbar__sticky+*{margin-top:0 !important}iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick){padding-left:0 !important;margin:0 !important;min-height:2rem}iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick):before,iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick):after{top:.25rem !important;left:0 !important}iam-table:has([type=checkbox]:checked) tr:has([type=checkbox]) [type=checkbox]{width:100%;height:100%;max-height:100%;max-width:100%;margin-top:-2rem}}iam-table.table--fullwidth:not([data-expandable]) th.expand-button-heading{display:none}iam-table.table--fullwidth:not([data-expandable]) td:has([data-expand-button]){display:none}@container (width > 23.4375em){iam-table:not([data-expandable]) th.expand-button-heading{display:none}iam-table:not([data-expandable]) td.td--expand{display:none}iam-table[data-expandable] [data-expand-button]{margin:0}iam-table[data-expandable] [data-expand-button]:before{font-family:"Font Awesome 6 Pro";content:"";font-weight:500}iam-table[data-expandable] [data-expand-button][aria-expanded]:before{content:""}iam-table[data-expandable] tr:not(:has(p)) [data-expand-button]{display:none}iam-table[data-expandable] tr:not([data-view=full]) td p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}}@container (width < 23.4375em){iam-table:not(.table--fullwidth) .td--fixed+td:not(.td--fixed){border-top:none}}@container (width > 23.4375em){iam-table{--width-adjust: 0px}iam-table:has([type=checkbox]){--width-adjust: -1rem}iam-table .th--fixed{min-width:calc(4.5rem + var(--width-adjust));position:absolute;padding:0}iam-table .th--fixed:after{top:auto;left:0;content:"";position:absolute;width:100%;height:calc(var(--row-height) - 2px);background:linear-gradient(90deg, var(--row-bg) calc(100% - 1.5rem), transparent 100%)}iam-table .td--fixed{position:absolute;position:absolute;left:auto;top:auto;z-index:3;padding:0.25rem 0 0 0;min-width:4.5rem;height:calc(var(--row-height) - 2px);text-align:left;background:linear-gradient(90deg, var(--row-bg) calc(100% - 1.5rem), transparent 100%)}iam-table .td--fixed:has([open]){z-index:4}iam-table tr:is(:hover,:focus) .td--fixed{background:linear-gradient(90deg, var(--row-bg) calc(100% - 1.5rem), transparent 100%)}iam-table tr:has([data-expand-button]){height:calc(4.625rem - 2px)}iam-table .th--fixed+th:not(.th--fixed),iam-table .td--fixed+td:not(.td--fixed){padding-left:calc(4.5rem + var(--width-adjust))}iam-table .th--fixed:not(.expand-button-heading)+.th--fixed+th:not(.th--fixed),iam-table .td--fixed:not(.td--expand)+.td--fixed+td:not(.td--fixed){padding-left:calc(7.75rem + var(--width-adjust))}iam-table[data-expandable] .th--fixed+.th--fixed+th:not(.th--fixed),iam-table[data-expandable] .td--fixed+.td--fixed+td:not(.td--fixed){padding-left:calc(7.75rem + var(--width-adjust))}iam-table .th--fixed+.th--fixed,iam-table .td--fixed+.td--fixed{padding-left:calc(3.25rem + var(--width-adjust));min-width:calc(7.75rem + var(--width-adjust))}iam-table .th--fixed:has(+.th--fixed),iam-table .td--fixed:has(+.td--fixed){min-width:calc(3.25rem + var(--width-adjust));z-index:5}iam-table .dialog__wrapper{z-index:10}iam-table .dialog__wrapper:has([open]){z-index:20}iam-table[data-expandable] input:is([type=radio],[type=checkbox])+label:before,iam-table[data-expandable] input:is([type=radio],[type=checkbox])+label:after{left:1.25rem !important}iam-table:not([data-expandable]) th.expand-button-heading+th{padding-left:0 !important}iam-table:not([data-expandable]) td.td--expand+td{padding-left:0 !important}iam-table:not([data-expandable]) th.expand-button-heading+.th--fixed{min-width:calc(4.5rem + var(--width-adjust)) !important}iam-table:not([data-expandable]) td.td--expand+.td--fixed{min-width:calc(4.5rem + var(--width-adjust)) !important}}/*# sourceMappingURL=assets/css/components/table.global.css.map */
|
|
494
493
|
</style>`);
|
|
495
494
|
}
|
|
496
495
|
connectedCallback() {
|
|
@@ -500,72 +499,72 @@ class Mt extends HTMLElement {
|
|
|
500
499
|
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"), et(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" />`), $t(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"))
|
|
501
500
|
ot(this.table, this.form, this.pagination, this);
|
|
502
501
|
else {
|
|
503
|
-
let
|
|
502
|
+
let i = function(n = 1) {
|
|
504
503
|
return Math.floor(Math.random() * Date.now() * (n + 1));
|
|
505
504
|
};
|
|
506
505
|
if (this.querySelector("iam-actionbar[data-selectall]")) {
|
|
507
506
|
const n = this.querySelector("iam-actionbar[data-selectall]");
|
|
508
|
-
Array.from(this.table.querySelectorAll("thead tr")).forEach((
|
|
509
|
-
|
|
510
|
-
}), Array.from(this.table.querySelectorAll("tbody tr")).forEach((
|
|
511
|
-
let d = `row${
|
|
512
|
-
|
|
513
|
-
}), this.table.addEventListener("change", (
|
|
514
|
-
if (
|
|
507
|
+
Array.from(this.table.querySelectorAll("thead tr")).forEach((o, l) => {
|
|
508
|
+
o.insertAdjacentHTML("afterbegin", '<th class="th--fixed"></th>');
|
|
509
|
+
}), Array.from(this.table.querySelectorAll("tbody tr")).forEach((o, l) => {
|
|
510
|
+
let d = `row${i(l)}`;
|
|
511
|
+
o.insertAdjacentHTML("afterbegin", `<td class="td--fixed selectrow"><input type="checkbox" name="row" id="${d}"/><label for="${d}"><span class="visually-hidden">Select row</span></label></td>`);
|
|
512
|
+
}), this.table.addEventListener("change", (o) => {
|
|
513
|
+
if (o && o.target instanceof HTMLElement && o.target.closest(".selectrow input")) {
|
|
515
514
|
let l = this.table.querySelectorAll('.selectrow input[type="checkbox"]').length, d = this.table.querySelectorAll('.selectrow input[type="checkbox"]:checked').length;
|
|
516
515
|
n.setAttribute("data-selected", l == d ? "all" : d);
|
|
517
516
|
}
|
|
518
|
-
}), n.addEventListener("selected", (
|
|
519
|
-
|
|
517
|
+
}), n.addEventListener("selected", (o) => {
|
|
518
|
+
o.detail.selected == "0" ? Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((l, d) => {
|
|
520
519
|
l.checked = !1;
|
|
521
|
-
}) :
|
|
520
|
+
}) : o.detail.selected == "all" && Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((l, d) => {
|
|
522
521
|
l.checked = !0;
|
|
523
522
|
});
|
|
524
523
|
});
|
|
525
524
|
}
|
|
526
525
|
let s = -1;
|
|
527
|
-
Array.from(this.table.querySelectorAll("tbody tr")).forEach((n,
|
|
526
|
+
Array.from(this.table.querySelectorAll("tbody tr")).forEach((n, o) => {
|
|
528
527
|
if (n.querySelector(":scope > td > .dialog__wrapper")) {
|
|
529
528
|
let l = n.querySelector(":scope > td > .dialog__wrapper").parentNode;
|
|
530
529
|
l.classList.add("td--fixed"), s = Array.from(l.parentNode.children).indexOf(l);
|
|
531
530
|
}
|
|
532
|
-
}), s != -1 && (this.table.querySelector(`thead tr th:nth-child(${s + 1})`).classList.add("th--fixed"), Array.from(this.table.querySelectorAll(`tbody tr td:nth-child(${s + 1})`)).forEach((n,
|
|
531
|
+
}), s != -1 && (this.table.querySelector(`thead tr th:nth-child(${s + 1})`).classList.add("th--fixed"), Array.from(this.table.querySelectorAll(`tbody tr td:nth-child(${s + 1})`)).forEach((n, o) => {
|
|
533
532
|
n.classList.add("td--fixed");
|
|
534
|
-
})), at(this.table, this.form, this.pagination, this), K(this.table, this.form, this),
|
|
533
|
+
})), at(this.table, this.form, this.pagination, this), K(this.table, this.form, this), U(this.table, this.form);
|
|
535
534
|
}
|
|
536
|
-
this.shadowRoot.querySelector(".table__wrapper").addEventListener("scroll", (
|
|
535
|
+
this.shadowRoot.querySelector(".table__wrapper").addEventListener("scroll", (i) => {
|
|
537
536
|
this.table.querySelector("dialog[open]") && (this.table.querySelector("dialog[open]").close(), this.table.querySelector(".dialog__wrapper > button.active").classList.remove("active"));
|
|
538
537
|
});
|
|
539
538
|
}
|
|
540
539
|
static get observedAttributes() {
|
|
541
540
|
return ["data-total", "data-page", "data-show"];
|
|
542
541
|
}
|
|
543
|
-
attributeChangedCallback(a, t,
|
|
542
|
+
attributeChangedCallback(a, t, i) {
|
|
544
543
|
switch (this.pagination = this.shadowRoot.querySelector("iam-pagination"), a) {
|
|
545
544
|
case "data-total": {
|
|
546
|
-
t !=
|
|
545
|
+
t != i && this.pagination.setAttribute("data-total", i);
|
|
547
546
|
break;
|
|
548
547
|
}
|
|
549
548
|
case "data-show": {
|
|
550
|
-
t !=
|
|
549
|
+
t != i && this.pagination.setAttribute("data-show", i);
|
|
551
550
|
break;
|
|
552
551
|
}
|
|
553
552
|
case "data-page": {
|
|
554
|
-
t !=
|
|
553
|
+
t != i && this.pagination.setAttribute("data-page", i);
|
|
555
554
|
break;
|
|
556
555
|
}
|
|
557
556
|
}
|
|
558
557
|
}
|
|
559
558
|
}
|
|
560
559
|
/*!
|
|
561
|
-
* iamKey v5.1.0-
|
|
560
|
+
* iamKey v5.1.0-beta4
|
|
562
561
|
* Copyright 2022-2023 iamproperty
|
|
563
562
|
*/
|
|
564
563
|
class nt extends HTMLElement {
|
|
565
564
|
constructor() {
|
|
566
565
|
super(), this.attachShadow({ mode: "open" });
|
|
567
|
-
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`,
|
|
568
|
-
|
|
566
|
+
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");
|
|
567
|
+
i.innerHTML = `
|
|
569
568
|
<style>
|
|
570
569
|
@import "${t}";
|
|
571
570
|
: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}.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 */
|
|
@@ -603,59 +602,59 @@ class nt extends HTMLElement {
|
|
|
603
602
|
<button class="load-more btn btn-primary m-auto">Load more</a>
|
|
604
603
|
</div>
|
|
605
604
|
</div>
|
|
606
|
-
`, this.shadowRoot.appendChild(
|
|
605
|
+
`, this.shadowRoot.appendChild(i.content.cloneNode(!0));
|
|
607
606
|
}
|
|
608
607
|
connectedCallback() {
|
|
609
608
|
const a = new URLSearchParams(window.location.search);
|
|
610
609
|
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"));
|
|
611
|
-
const t = this.shadowRoot.querySelector(".page-jump select"),
|
|
610
|
+
const t = this.shadowRoot.querySelector(".page-jump select"), i = this.shadowRoot.querySelector(".prev"), s = this.shadowRoot.querySelector(".next"), n = this.shadowRoot.querySelector(".per-page select"), o = this.shadowRoot.querySelector(".load-more");
|
|
612
611
|
this.setup(), t.addEventListener("change", (l) => {
|
|
613
612
|
this.setAttribute("data-show", this.getAttribute("data-increment")), this.setAttribute("data-page", l.target.value);
|
|
614
613
|
}), s.addEventListener("click", (l) => {
|
|
615
614
|
t.value = parseInt(t.value) + 1, t.dispatchEvent(new Event("change"));
|
|
616
|
-
}),
|
|
615
|
+
}), i.addEventListener("click", (l) => {
|
|
617
616
|
t.value = parseInt(t.value) - 1, t.dispatchEvent(new Event("change"));
|
|
618
617
|
}), n.addEventListener("change", (l) => {
|
|
619
618
|
this.setAttribute("data-increment", l.target.value);
|
|
620
|
-
}),
|
|
619
|
+
}), o.addEventListener("click", (l) => {
|
|
621
620
|
let d = parseInt(this.getAttribute("data-show")) + parseInt(this.getAttribute("data-increment"));
|
|
622
|
-
this.setAttribute("data-show", d), d > parseInt(this.getAttribute("data-total")) &&
|
|
621
|
+
this.setAttribute("data-show", d), d > parseInt(this.getAttribute("data-total")) && o.remove();
|
|
623
622
|
});
|
|
624
623
|
}
|
|
625
624
|
setup() {
|
|
626
|
-
const a = this.shadowRoot.querySelector(".pagination"), t = this.shadowRoot.querySelector(".page-jump select"),
|
|
625
|
+
const a = this.shadowRoot.querySelector(".pagination"), t = this.shadowRoot.querySelector(".page-jump select"), i = this.shadowRoot.querySelector(".prev"), s = this.shadowRoot.querySelector(".next"), n = this.shadowRoot.querySelector(".item-count"), o = this.shadowRoot.querySelector(".per-page select"), l = this.shadowRoot.querySelector(".total-pages"), d = parseInt(this.getAttribute("data-page")), r = parseInt(this.getAttribute("data-total")), p = parseInt(this.getAttribute("data-show")), c = parseInt(this.getAttribute("data-increment")), h = Math.ceil(r / c);
|
|
627
626
|
r > p && a.classList.remove("d-none");
|
|
628
|
-
let
|
|
629
|
-
for (let
|
|
630
|
-
|
|
631
|
-
t.innerHTML =
|
|
632
|
-
let
|
|
633
|
-
n.innerHTML = `${
|
|
634
|
-
const
|
|
635
|
-
c &&
|
|
627
|
+
let g = "";
|
|
628
|
+
for (let M = 1; M <= h; M++)
|
|
629
|
+
g += `<option value="${M}" ${M == d ? "selected" : ""}>${M}</option>`;
|
|
630
|
+
t.innerHTML = g, l.innerHTML = `of ${h}`, d == h ? s.setAttribute("disabled", "disabled") : s.removeAttribute("disabled"), d == 1 ? i.setAttribute("disabled", "disabled") : i.removeAttribute("disabled");
|
|
631
|
+
let b = d == 1 ? 1 : (d - 1) * p + 1, A = d == 1 ? p : d * p;
|
|
632
|
+
n.innerHTML = `${b} - ${A > r ? r : A} of ${r} items`;
|
|
633
|
+
const $ = [15, 25, 40, 50];
|
|
634
|
+
c && o.value != c && !$.includes(c) && (o.innerHTML = `<option value="${c}">${c}</option>
|
|
636
635
|
<option value="${c * 2}">${c * 2}</option>
|
|
637
636
|
<option value="${c * 3}">${c * 3}</option>
|
|
638
|
-
<option value="${c * 4}">${c * 4}</option>`),
|
|
637
|
+
<option value="${c * 4}">${c * 4}</option>`), o.value = c;
|
|
639
638
|
}
|
|
640
639
|
static get observedAttributes() {
|
|
641
640
|
return ["data-total", "data-increment", "data-page", "data-show"];
|
|
642
641
|
}
|
|
643
|
-
attributeChangedCallback(a, t,
|
|
642
|
+
attributeChangedCallback(a, t, i) {
|
|
644
643
|
switch (a) {
|
|
645
644
|
case "data-total": {
|
|
646
|
-
t !=
|
|
645
|
+
t != i && (this.setAttribute("data-page", 1), this.setup());
|
|
647
646
|
break;
|
|
648
647
|
}
|
|
649
648
|
case "data-show": {
|
|
650
|
-
t !=
|
|
649
|
+
t != i && (this.setAttribute("data-page", 1), this.setup(), this.dispatchEvent(new CustomEvent("update-show", { detail: { show: i } })));
|
|
651
650
|
break;
|
|
652
651
|
}
|
|
653
652
|
case "data-increment": {
|
|
654
|
-
t !=
|
|
653
|
+
t != i && (this.setAttribute("data-show", i), this.setAttribute("data-page", 1), this.setup(), this.dispatchEvent(new CustomEvent("update-show", { detail: { show: i } })));
|
|
655
654
|
break;
|
|
656
655
|
}
|
|
657
656
|
case "data-page": {
|
|
658
|
-
t && t !=
|
|
657
|
+
t && t != i && (this.setup(), this.dispatchEvent(new CustomEvent("update-page", { detail: { page: i } })));
|
|
659
658
|
break;
|
|
660
659
|
}
|
|
661
660
|
}
|
|
@@ -688,22 +687,22 @@ const jt = (e) => e.charAt(0).toUpperCase() + e.slice(1), Ct = (e) => e.replace(
|
|
|
688
687
|
updated() {
|
|
689
688
|
}
|
|
690
689
|
}, zt = { key: 0 }, Ft = { key: 0 }, Pt = ["data-row-id"], It = ["innerHTML"];
|
|
691
|
-
function Ot(e, a, t,
|
|
690
|
+
function Ot(e, a, t, i, s, n) {
|
|
692
691
|
return u(), m("iam-table", null, [
|
|
693
692
|
t.fields ? (u(), m("table", zt, [
|
|
694
693
|
f("thead", null, [
|
|
695
694
|
f("tr", null, [
|
|
696
|
-
(u(!0), m(
|
|
697
|
-
key:
|
|
698
|
-
},
|
|
695
|
+
(u(!0), m(T, null, H(t.fields, (o) => (u(), m("th", {
|
|
696
|
+
key: o.key
|
|
697
|
+
}, S(n.cellHeading(o.key)), 1))), 128))
|
|
699
698
|
])
|
|
700
699
|
]),
|
|
701
700
|
t.items ? (u(), m("tbody", Ft, [
|
|
702
|
-
(u(!0), m(
|
|
701
|
+
(u(!0), m(T, null, H(t.items, (o, l) => (u(), m("tr", {
|
|
703
702
|
key: l,
|
|
704
|
-
"data-row-id":
|
|
703
|
+
"data-row-id": o.rowid
|
|
705
704
|
}, [
|
|
706
|
-
(u(!0), m(
|
|
705
|
+
(u(!0), m(T, null, H(Object.fromEntries(Object.entries(o).filter(([d]) => d !== "rowid")), (d, r) => (u(), m("td", {
|
|
707
706
|
key: r,
|
|
708
707
|
innerHTML: d
|
|
709
708
|
}, null, 8, It))), 128))
|
|
@@ -712,7 +711,7 @@ function Ot(e, a, t, o, s, n) {
|
|
|
712
711
|
])) : _(e.$slots, "default", { key: 1 })
|
|
713
712
|
]);
|
|
714
713
|
}
|
|
715
|
-
const rt = /* @__PURE__ */
|
|
714
|
+
const rt = /* @__PURE__ */ y(Dt, [["render", Ot]]), Bt = {
|
|
716
715
|
name: "Input",
|
|
717
716
|
props: {
|
|
718
717
|
value: {
|
|
@@ -907,33 +906,33 @@ const rt = /* @__PURE__ */ v(Dt, [["render", Ot]]), Bt = {
|
|
|
907
906
|
key: 6,
|
|
908
907
|
class: "input-group"
|
|
909
908
|
}, Zt = ["type", "name", "id", "pattern", "list"], te = { class: "input-group-text flex-fill" }, ee = ["type", "name", "id", "pattern"], ae = ["value"], ie = ["type", "name", "id"], oe = ["for", "innerHTML"], ne = ["type", "name", "id"], re = ["for", "innerHTML"], se = ["innerHTML"], le = ["id"], de = ["value"];
|
|
910
|
-
function ce(e, a, t,
|
|
909
|
+
function ce(e, a, t, i, s, n) {
|
|
911
910
|
return u(), m("div", {
|
|
912
|
-
class:
|
|
911
|
+
class: x(n.wrapperClass()),
|
|
913
912
|
ref: "wrapper"
|
|
914
913
|
}, [
|
|
915
914
|
n.needsLabel() ? (u(), m("label", {
|
|
916
915
|
key: 0,
|
|
917
|
-
class:
|
|
916
|
+
class: x(`form-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
|
|
918
917
|
for: t.id,
|
|
919
918
|
innerHTML: n.displayLabel(),
|
|
920
919
|
title: t.title
|
|
921
920
|
}, null, 10, Ut)) : w("", !0),
|
|
922
921
|
t.prefix ? (u(), m("span", {
|
|
923
922
|
key: 1,
|
|
924
|
-
class:
|
|
923
|
+
class: x(`prefix ${this.prefixClass} ${t.size ? `prefix-${t.size}` : ""}`),
|
|
925
924
|
innerHTML: t.prefix,
|
|
926
925
|
role: "presentation"
|
|
927
926
|
}, null, 10, Vt)) : w("", !0),
|
|
928
927
|
t.suffix ? (u(), m("span", {
|
|
929
928
|
key: 2,
|
|
930
|
-
class:
|
|
929
|
+
class: x(`suffix ${this.suffixClass} ${t.size ? `suffix-${t.size}` : ""}`),
|
|
931
930
|
innerHTML: t.suffix,
|
|
932
931
|
role: "presentation"
|
|
933
932
|
}, null, 10, Wt)) : w("", !0),
|
|
934
|
-
n.isInput() ?
|
|
933
|
+
n.isInput() ? P((u(), m("input", N({
|
|
935
934
|
key: 3,
|
|
936
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
935
|
+
"onUpdate:modelValue": a[0] || (a[0] = (o) => n.inputVal = o),
|
|
937
936
|
class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
938
937
|
type: t.type,
|
|
939
938
|
name: t.name ? t.name : t.id,
|
|
@@ -941,13 +940,13 @@ function ce(e, a, t, o, s, n) {
|
|
|
941
940
|
pattern: n.needPattern(),
|
|
942
941
|
list: n.hasOptions()
|
|
943
942
|
}, e.$attrs, {
|
|
944
|
-
onKeyup: a[1] || (a[1] = (...
|
|
943
|
+
onKeyup: a[1] || (a[1] = (...o) => n.inputKeyup && n.inputKeyup(...o))
|
|
945
944
|
}), null, 16, Gt)), [
|
|
946
945
|
[G, n.inputVal]
|
|
947
946
|
]) : w("", !0),
|
|
948
|
-
t.type == "textarea" ?
|
|
947
|
+
t.type == "textarea" ? P((u(), m("textarea", N({
|
|
949
948
|
key: 4,
|
|
950
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
949
|
+
"onUpdate:modelValue": a[2] || (a[2] = (o) => n.inputVal = o),
|
|
951
950
|
class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
952
951
|
type: t.type,
|
|
953
952
|
name: t.name ? t.name : t.id,
|
|
@@ -957,8 +956,8 @@ function ce(e, a, t, o, s, n) {
|
|
|
957
956
|
[ht, n.inputVal]
|
|
958
957
|
]) : w("", !0),
|
|
959
958
|
t.type == "range" ? (u(), m("div", Yt, [
|
|
960
|
-
|
|
961
|
-
"onUpdate:modelValue": a[3] || (a[3] = (
|
|
959
|
+
P(f("input", N({
|
|
960
|
+
"onUpdate:modelValue": a[3] || (a[3] = (o) => n.inputVal = o),
|
|
962
961
|
class: `form-range${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
963
962
|
type: t.type,
|
|
964
963
|
name: t.name ? t.name : t.id,
|
|
@@ -968,11 +967,11 @@ function ce(e, a, t, o, s, n) {
|
|
|
968
967
|
}, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Xt), [
|
|
969
968
|
[G, n.inputVal]
|
|
970
969
|
]),
|
|
971
|
-
f("output", Jt,
|
|
970
|
+
f("output", Jt, S(t.value), 1)
|
|
972
971
|
])) : w("", !0),
|
|
973
972
|
t.type == "color" ? (u(), m("div", Qt, [
|
|
974
|
-
|
|
975
|
-
"onUpdate:modelValue": a[4] || (a[4] = (
|
|
973
|
+
P(f("input", N({
|
|
974
|
+
"onUpdate:modelValue": a[4] || (a[4] = (o) => n.inputVal = o),
|
|
976
975
|
class: `form-control form-control-color${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
977
976
|
type: t.type,
|
|
978
977
|
name: t.name ? t.name : t.id,
|
|
@@ -982,25 +981,25 @@ function ce(e, a, t, o, s, n) {
|
|
|
982
981
|
}, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Zt), [
|
|
983
982
|
[G, n.inputVal]
|
|
984
983
|
]),
|
|
985
|
-
f("output", te,
|
|
984
|
+
f("output", te, S(t.value ? e.vale : "#000000"), 1)
|
|
986
985
|
])) : w("", !0),
|
|
987
|
-
t.type == "select" ?
|
|
986
|
+
t.type == "select" ? P((u(), m("select", N({
|
|
988
987
|
key: 7,
|
|
989
|
-
"onUpdate:modelValue": a[5] || (a[5] = (
|
|
988
|
+
"onUpdate:modelValue": a[5] || (a[5] = (o) => n.inputVal = o),
|
|
990
989
|
class: `form-select${t.size ? ` form-select-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
991
990
|
type: t.type,
|
|
992
991
|
name: t.id,
|
|
993
992
|
id: t.id,
|
|
994
993
|
pattern: n.needPattern()
|
|
995
994
|
}, e.$attrs), [
|
|
996
|
-
(u(!0), m(
|
|
995
|
+
(u(!0), m(T, null, H(t.options, (o, l) => (u(), m("option", {
|
|
997
996
|
key: l,
|
|
998
|
-
value:
|
|
999
|
-
},
|
|
997
|
+
value: o.value
|
|
998
|
+
}, S(o.display ? o.display : o.value), 9, ae))), 128))
|
|
1000
999
|
], 16, ee)), [
|
|
1001
1000
|
[pt, n.inputVal]
|
|
1002
1001
|
]) : w("", !0),
|
|
1003
|
-
t.type == "checkbox" || t.type == "radio" ? (u(), m("input",
|
|
1002
|
+
t.type == "checkbox" || t.type == "radio" ? (u(), m("input", N({
|
|
1004
1003
|
key: 8,
|
|
1005
1004
|
class: "form-check-input",
|
|
1006
1005
|
type: t.type,
|
|
@@ -1009,11 +1008,11 @@ function ce(e, a, t, o, s, n) {
|
|
|
1009
1008
|
}, e.$attrs), null, 16, ie)) : w("", !0),
|
|
1010
1009
|
t.type == "checkbox" || t.type == "radio" ? (u(), m("label", {
|
|
1011
1010
|
key: 9,
|
|
1012
|
-
class:
|
|
1011
|
+
class: x(`form-label form-check-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
|
|
1013
1012
|
for: t.id,
|
|
1014
1013
|
innerHTML: t.label
|
|
1015
1014
|
}, null, 10, oe)) : w("", !0),
|
|
1016
|
-
t.type == "checkbox-btn" || t.type == "radio-btn" ? (u(), m("input",
|
|
1015
|
+
t.type == "checkbox-btn" || t.type == "radio-btn" ? (u(), m("input", N({
|
|
1017
1016
|
key: 10,
|
|
1018
1017
|
class: `btn-check${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
1019
1018
|
type: t.type.replace("-btn", ""),
|
|
@@ -1023,10 +1022,10 @@ function ce(e, a, t, o, s, n) {
|
|
|
1023
1022
|
}, e.$attrs), null, 16, ne)) : w("", !0),
|
|
1024
1023
|
t.type == "checkbox-btn" || t.type == "radio-btn" ? (u(), m("label", {
|
|
1025
1024
|
key: 11,
|
|
1026
|
-
class:
|
|
1025
|
+
class: x(`btn${t.labelclass ? ` ${t.labelclass}` : ""}`),
|
|
1027
1026
|
for: t.id,
|
|
1028
1027
|
innerHTML: t.label,
|
|
1029
|
-
onClick: a[6] || (a[6] = (...
|
|
1028
|
+
onClick: a[6] || (a[6] = (...o) => n.clickEvent && n.clickEvent(...o))
|
|
1030
1029
|
}, null, 10, re)) : w("", !0),
|
|
1031
1030
|
_(e.$slots, "default"),
|
|
1032
1031
|
t.errormsg ? (u(), m("span", {
|
|
@@ -1038,49 +1037,49 @@ function ce(e, a, t, o, s, n) {
|
|
|
1038
1037
|
key: 13,
|
|
1039
1038
|
id: t.id + "-list"
|
|
1040
1039
|
}, [
|
|
1041
|
-
(u(!0), m(
|
|
1040
|
+
(u(!0), m(T, null, H(t.options, (o, l) => (u(), m("option", {
|
|
1042
1041
|
key: l,
|
|
1043
|
-
value:
|
|
1044
|
-
},
|
|
1042
|
+
value: o.value
|
|
1043
|
+
}, S(o.value), 9, de))), 128))
|
|
1045
1044
|
], 8, le)) : w("", !0)
|
|
1046
1045
|
], 2);
|
|
1047
1046
|
}
|
|
1048
|
-
const st = /* @__PURE__ */
|
|
1047
|
+
const st = /* @__PURE__ */ y(Bt, [["render", ce]]);
|
|
1049
1048
|
function ue(e, a) {
|
|
1050
|
-
const t = a.querySelector(".files"),
|
|
1051
|
-
|
|
1052
|
-
l && l.target instanceof HTMLElement && l.target.closest(".btn-primary") && (l.target.closest(".btn-primary"), (s.hasAttribute("multiple") ?
|
|
1049
|
+
const t = a.querySelector(".files"), i = a.querySelector(".drop-area"), s = e.querySelector("input"), n = e.hasAttribute("data-maxsize") ? e.getAttribute("data-maxsize") : 0, o = s.cloneNode();
|
|
1050
|
+
i.append(o), a.addEventListener("click", (l) => {
|
|
1051
|
+
l && l.target instanceof HTMLElement && l.target.closest(".btn-primary") && (l.target.closest(".btn-primary"), (s.hasAttribute("multiple") ? o : s).click());
|
|
1053
1052
|
}), a.addEventListener("click", (l) => {
|
|
1054
1053
|
if (l && l.target instanceof HTMLElement && l.target.closest(".files button")) {
|
|
1055
1054
|
const d = new DataTransfer(), { files: r } = s, p = l.target.closest(".files button");
|
|
1056
|
-
for (let
|
|
1057
|
-
const
|
|
1058
|
-
|
|
1055
|
+
for (let h = 0; h < r.length; h++) {
|
|
1056
|
+
const g = r[h];
|
|
1057
|
+
g.name != p.getAttribute("data-file") && d.items.add(g);
|
|
1059
1058
|
}
|
|
1060
1059
|
s.files = d.files;
|
|
1061
1060
|
const c = new Event("change");
|
|
1062
1061
|
s.dispatchEvent(c);
|
|
1063
1062
|
}
|
|
1064
|
-
}),
|
|
1063
|
+
}), o.addEventListener("change", (l) => {
|
|
1065
1064
|
if (s.hasAttribute("multiple")) {
|
|
1066
|
-
const r = [...s.files, ...
|
|
1065
|
+
const r = [...s.files, ...o.files];
|
|
1067
1066
|
let p = [];
|
|
1068
1067
|
const c = new DataTransfer();
|
|
1069
|
-
for (let
|
|
1070
|
-
const
|
|
1071
|
-
!p.includes(
|
|
1068
|
+
for (let h = 0; h < r.length; h++) {
|
|
1069
|
+
const g = r[h], b = g.size / 1e3;
|
|
1070
|
+
!p.includes(g.name) && (n == 0 || b < n) && c.items.add(g), p.push(g.name);
|
|
1072
1071
|
}
|
|
1073
1072
|
s.files = c.files;
|
|
1074
1073
|
} else
|
|
1075
|
-
s.files =
|
|
1074
|
+
s.files = o.files;
|
|
1076
1075
|
const d = new Event("change");
|
|
1077
1076
|
s.dispatchEvent(d);
|
|
1078
|
-
}),
|
|
1079
|
-
|
|
1080
|
-
}),
|
|
1081
|
-
|
|
1082
|
-
}),
|
|
1083
|
-
|
|
1077
|
+
}), o.addEventListener("dragenter", (l) => {
|
|
1078
|
+
o.classList.add("focus");
|
|
1079
|
+
}), o.addEventListener("dragleave", (l) => {
|
|
1080
|
+
o.classList.remove("focus");
|
|
1081
|
+
}), o.addEventListener("drop", (l) => {
|
|
1082
|
+
o.classList.remove("focus");
|
|
1084
1083
|
}), s.addEventListener("change", (l) => {
|
|
1085
1084
|
t.innerHTML = "";
|
|
1086
1085
|
for (const d of s.files)
|
|
@@ -1095,11 +1094,11 @@ window.dataLayer.push({
|
|
|
1095
1094
|
class me extends HTMLElement {
|
|
1096
1095
|
constructor() {
|
|
1097
1096
|
super(), this.attachShadow({ mode: "open" });
|
|
1098
|
-
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`,
|
|
1097
|
+
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/fileupload.css";`, s = document.createElement("template");
|
|
1099
1098
|
s.innerHTML = `
|
|
1100
1099
|
<style>
|
|
1101
1100
|
@import "${t}";
|
|
1102
|
-
${
|
|
1101
|
+
${i}
|
|
1103
1102
|
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
1104
1103
|
</style>
|
|
1105
1104
|
<div class="file-upload">
|
|
@@ -1115,8 +1114,8 @@ class me extends HTMLElement {
|
|
|
1115
1114
|
}
|
|
1116
1115
|
connectedCallback() {
|
|
1117
1116
|
this.innerHTML += '<i class="fa-regular fa-arrow-up-from-bracket me-2" aria-hidden="true" slot="btn"></i>';
|
|
1118
|
-
const a = this.shadowRoot.querySelector(".file-upload"), t = this.querySelector("input"),
|
|
1119
|
-
|
|
1117
|
+
const a = this.shadowRoot.querySelector(".file-upload"), t = this.querySelector("input"), i = this.shadowRoot.querySelector(".helper-text");
|
|
1118
|
+
i.innerHTML = `${this.hasAttribute("data-maxsize") ? `Max file size is ${this.getAttribute("data-maxsize")}kb. ` : ""}${t.hasAttribute("accept") ? `Supported file types are ${t.getAttribute("accept")}` : ""}`, ue(this, a);
|
|
1120
1119
|
}
|
|
1121
1120
|
}
|
|
1122
1121
|
const he = {
|
|
@@ -1137,14 +1136,14 @@ const he = {
|
|
|
1137
1136
|
});
|
|
1138
1137
|
}
|
|
1139
1138
|
};
|
|
1140
|
-
function pe(e, a, t,
|
|
1139
|
+
function pe(e, a, t, i, s, n) {
|
|
1141
1140
|
return u(), m("iam-fileupload", null, [
|
|
1142
1141
|
_(e.$slots, "default")
|
|
1143
1142
|
]);
|
|
1144
1143
|
}
|
|
1145
|
-
const zi = /* @__PURE__ */
|
|
1144
|
+
const zi = /* @__PURE__ */ y(he, [["render", pe]]), D = (e, a) => {
|
|
1146
1145
|
const t = e[a];
|
|
1147
|
-
return t ? typeof t == "function" ? t() : Promise.resolve(t) : new Promise((
|
|
1146
|
+
return t ? typeof t == "function" ? t() : Promise.resolve(t) : new Promise((i, s) => {
|
|
1148
1147
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(s.bind(null, new Error("Unknown variable dynamic import: " + a)));
|
|
1149
1148
|
});
|
|
1150
1149
|
};
|
|
@@ -1153,7 +1152,7 @@ const be = {
|
|
|
1153
1152
|
props: {},
|
|
1154
1153
|
mounted() {
|
|
1155
1154
|
this.$nextTick(function() {
|
|
1156
|
-
|
|
1155
|
+
D(/* @__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-8809a59e.mjs") }), "../../../assets/js/components/accordion/accordion.component.js").then((e) => {
|
|
1157
1156
|
window.customElements.get("iam-accordion") || window.customElements.define("iam-accordion", e.default);
|
|
1158
1157
|
}).catch((e) => {
|
|
1159
1158
|
console.log(e.message);
|
|
@@ -1161,12 +1160,12 @@ const be = {
|
|
|
1161
1160
|
});
|
|
1162
1161
|
}
|
|
1163
1162
|
}, fe = { ref: "wrapper" };
|
|
1164
|
-
function ge(e, a, t,
|
|
1163
|
+
function ge(e, a, t, i, s, n) {
|
|
1165
1164
|
return u(), m("iam-accordion", fe, [
|
|
1166
1165
|
_(e.$slots, "default")
|
|
1167
1166
|
], 512);
|
|
1168
1167
|
}
|
|
1169
|
-
const Fi = /* @__PURE__ */
|
|
1168
|
+
const Fi = /* @__PURE__ */ y(be, [["render", ge]]), ye = {
|
|
1170
1169
|
name: "AccordionItem",
|
|
1171
1170
|
props: {
|
|
1172
1171
|
title: {
|
|
@@ -1202,23 +1201,23 @@ const Fi = /* @__PURE__ */ v(be, [["render", ge]]), ye = {
|
|
|
1202
1201
|
};
|
|
1203
1202
|
}
|
|
1204
1203
|
}, ve = ["id"], we = ["classList"];
|
|
1205
|
-
function _e(e, a, t,
|
|
1204
|
+
function _e(e, a, t, i, s, n) {
|
|
1206
1205
|
return u(), m("details", {
|
|
1207
1206
|
id: n.createID(t.title)
|
|
1208
1207
|
}, [
|
|
1209
1208
|
f("summary", {
|
|
1210
1209
|
classList: `${t.titlecolour ? `bg-${t.titlecolour}` : ""}`
|
|
1211
1210
|
}, [
|
|
1212
|
-
bt(
|
|
1211
|
+
bt(S(t.title), 1),
|
|
1213
1212
|
t.badge ? (u(), m("span", {
|
|
1214
1213
|
key: 0,
|
|
1215
|
-
class:
|
|
1216
|
-
},
|
|
1214
|
+
class: x(`badge bg-${t.badgecolour}`)
|
|
1215
|
+
}, S(t.badge), 3)) : w("", !0)
|
|
1217
1216
|
], 8, we),
|
|
1218
1217
|
_(e.$slots, "default")
|
|
1219
1218
|
], 8, ve);
|
|
1220
1219
|
}
|
|
1221
|
-
const Pi = /* @__PURE__ */
|
|
1220
|
+
const Pi = /* @__PURE__ */ y(ye, [["render", _e]]), Ae = {
|
|
1222
1221
|
name: "Header",
|
|
1223
1222
|
props: {
|
|
1224
1223
|
title: {
|
|
@@ -1236,15 +1235,15 @@ const Pi = /* @__PURE__ */ v(ye, [["render", _e]]), Ae = {
|
|
|
1236
1235
|
}
|
|
1237
1236
|
}
|
|
1238
1237
|
}, xe = { class: "container" }, ke = { class: "row" }, Le = { class: "col-sm-6" }, Se = { class: "pt-5 pb-3 px-4" }, $e = { class: "col-sm-6 col-md-5 ms-auto" }, qe = ["src"];
|
|
1239
|
-
function Ee(e, a, t,
|
|
1238
|
+
function Ee(e, a, t, i, s, n) {
|
|
1240
1239
|
return u(), m("div", xe, [
|
|
1241
1240
|
f("div", {
|
|
1242
|
-
class:
|
|
1241
|
+
class: x("bg-" + t.background + " mb-4")
|
|
1243
1242
|
}, [
|
|
1244
1243
|
f("div", ke, [
|
|
1245
1244
|
f("div", Le, [
|
|
1246
1245
|
f("div", Se, [
|
|
1247
|
-
f("h2", null,
|
|
1246
|
+
f("h2", null, S(t.title), 1),
|
|
1248
1247
|
_(e.$slots, "default")
|
|
1249
1248
|
])
|
|
1250
1249
|
]),
|
|
@@ -1260,11 +1259,11 @@ function Ee(e, a, t, o, s, n) {
|
|
|
1260
1259
|
], 2)
|
|
1261
1260
|
]);
|
|
1262
1261
|
}
|
|
1263
|
-
const Ii = /* @__PURE__ */
|
|
1262
|
+
const Ii = /* @__PURE__ */ y(Ae, [["render", Ee]]), Te = {
|
|
1264
1263
|
name: "Card",
|
|
1265
1264
|
mounted() {
|
|
1266
1265
|
this.$nextTick(function() {
|
|
1267
|
-
|
|
1266
|
+
D(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/card/card.component.js": () => import("./card.component-4a8f3fbe.mjs"), "../../../assets/js/components/card/card.component.min.js": () => import("./card.component.min-17db52e1.mjs") }), "../../../assets/js/components/card/card.component.js").then((e) => {
|
|
1268
1267
|
window.customElements.get("iam-card") || window.customElements.define("iam-card", e.default);
|
|
1269
1268
|
}).catch((e) => {
|
|
1270
1269
|
console.log(e.message);
|
|
@@ -1272,28 +1271,28 @@ const Ii = /* @__PURE__ */ v(Ae, [["render", Ee]]), Te = {
|
|
|
1272
1271
|
});
|
|
1273
1272
|
}
|
|
1274
1273
|
};
|
|
1275
|
-
function He(e, a, t,
|
|
1274
|
+
function He(e, a, t, i, s, n) {
|
|
1276
1275
|
return u(), m("iam-card", null, [
|
|
1277
1276
|
_(e.$slots, "default")
|
|
1278
1277
|
]);
|
|
1279
1278
|
}
|
|
1280
|
-
const Me = /* @__PURE__ */
|
|
1279
|
+
const Me = /* @__PURE__ */ y(Te, [["render", He]]);
|
|
1281
1280
|
function je(e) {
|
|
1282
1281
|
var a;
|
|
1283
|
-
let t = e.querySelector(".carousel__inner"),
|
|
1282
|
+
let t = e.querySelector(".carousel__inner"), i = e.querySelectorAll(".carousel__item").length;
|
|
1284
1283
|
e.getAttribute("data-cols");
|
|
1285
1284
|
let s = e.getAttribute("data-sm-cols"), n = e.getAttribute("data-md-cols");
|
|
1286
|
-
e.querySelector(".carousel__controls a").setAttribute("aria-current", !0), t.addEventListener("scroll", function(
|
|
1285
|
+
e.querySelector(".carousel__controls a").setAttribute("aria-current", !0), t.addEventListener("scroll", function(o) {
|
|
1287
1286
|
clearTimeout(a), a = setTimeout(function() {
|
|
1288
|
-
let l = t.clientWidth, d = t.scrollWidth, r = t.scrollLeft, p = Math.round(r / d *
|
|
1289
|
-
Array.from(e.querySelectorAll(".carousel__controls a")).forEach((
|
|
1290
|
-
|
|
1287
|
+
let l = t.clientWidth, d = t.scrollWidth, r = t.scrollLeft, p = Math.round(r / d * i) + 1, c = e.querySelector(".carousel__item:last-child").offsetLeft;
|
|
1288
|
+
Array.from(e.querySelectorAll(".carousel__controls a")).forEach((h, g) => {
|
|
1289
|
+
h.removeAttribute("aria-current");
|
|
1291
1290
|
}), e.querySelector(".control-" + p).setAttribute("aria-current", !0), p == 1 ? e.querySelector(".btn-prev").setAttribute("disabled", "disabled") : e.querySelector(".btn-prev").removeAttribute("disabled"), t.scrollLeft + l > c ? e.querySelector(".btn-next").setAttribute("disabled", "disabled") : e.querySelector(".btn-next").removeAttribute("disabled");
|
|
1292
1291
|
}, 100);
|
|
1293
|
-
}, !1), e.addEventListener("click", function(
|
|
1294
|
-
for (var l =
|
|
1292
|
+
}, !1), e.addEventListener("click", function(o) {
|
|
1293
|
+
for (var l = o.target; l && l != this; l = l.parentNode)
|
|
1295
1294
|
if (l.matches(".carousel__controls a")) {
|
|
1296
|
-
|
|
1295
|
+
o.preventDefault(), Array.from(e.querySelectorAll(".carousel__controls a")).forEach((r, p) => {
|
|
1297
1296
|
r.removeAttribute("aria-current");
|
|
1298
1297
|
}), l.setAttribute("aria-current", !0);
|
|
1299
1298
|
const d = document.querySelector(l.getAttribute("href"));
|
|
@@ -1304,10 +1303,10 @@ function je(e) {
|
|
|
1304
1303
|
});
|
|
1305
1304
|
break;
|
|
1306
1305
|
}
|
|
1307
|
-
}, !1), e.addEventListener("click", function(
|
|
1308
|
-
for (var l =
|
|
1306
|
+
}, !1), e.addEventListener("click", function(o) {
|
|
1307
|
+
for (var l = o.target; l && l != this; l = l.parentNode)
|
|
1309
1308
|
if (l.matches(".btn-next, .btn-prev")) {
|
|
1310
|
-
|
|
1309
|
+
o.preventDefault();
|
|
1311
1310
|
let d = l.classList.contains("btn-prev") ? t.scrollLeft - t.clientWidth : t.scrollLeft + t.clientWidth;
|
|
1312
1311
|
t.scroll({
|
|
1313
1312
|
top: 0,
|
|
@@ -1316,7 +1315,7 @@ function je(e) {
|
|
|
1316
1315
|
});
|
|
1317
1316
|
break;
|
|
1318
1317
|
}
|
|
1319
|
-
}, !1),
|
|
1318
|
+
}, !1), i == 1 && e.classList.add("hide-btns"), s >= i && e.classList.add("hide-sm-btns"), n >= i && e.classList.add("hide-md-btns");
|
|
1320
1319
|
}
|
|
1321
1320
|
const Ce = {
|
|
1322
1321
|
components: {
|
|
@@ -1405,8 +1404,8 @@ const Ce = {
|
|
|
1405
1404
|
class: "btn btn-next",
|
|
1406
1405
|
"data-go": "2"
|
|
1407
1406
|
}, "Next", -1);
|
|
1408
|
-
function Be(e, a, t,
|
|
1409
|
-
const
|
|
1407
|
+
function Be(e, a, t, i, s, n) {
|
|
1408
|
+
const o = B("Card");
|
|
1410
1409
|
return u(), m("div", {
|
|
1411
1410
|
class: "container carousel",
|
|
1412
1411
|
id: "carousel" + s.id,
|
|
@@ -1420,14 +1419,14 @@ function Be(e, a, t, o, s, n) {
|
|
|
1420
1419
|
f("div", De, [
|
|
1421
1420
|
t.type == "card" ? (u(), m("div", {
|
|
1422
1421
|
key: 0,
|
|
1423
|
-
class:
|
|
1422
|
+
class: x(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
|
|
1424
1423
|
}, [
|
|
1425
|
-
(u(!0), m(
|
|
1426
|
-
class:
|
|
1424
|
+
(u(!0), m(T, null, H(t.items, (l, d) => (u(), m("div", {
|
|
1425
|
+
class: x(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
|
|
1427
1426
|
key: d,
|
|
1428
1427
|
id: "carousel" + s.id + "slide" + (d + 1)
|
|
1429
1428
|
}, [
|
|
1430
|
-
|
|
1429
|
+
C(o, N(l, {
|
|
1431
1430
|
class: t.cardclass,
|
|
1432
1431
|
type: t.cardtype,
|
|
1433
1432
|
btnyype: t.btntype,
|
|
@@ -1439,10 +1438,10 @@ function Be(e, a, t, o, s, n) {
|
|
|
1439
1438
|
], 2)) : w("", !0),
|
|
1440
1439
|
t.type != "card" ? (u(), m("div", {
|
|
1441
1440
|
key: 1,
|
|
1442
|
-
class:
|
|
1441
|
+
class: x(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
|
|
1443
1442
|
}, [
|
|
1444
|
-
(u(!0), m(
|
|
1445
|
-
class:
|
|
1443
|
+
(u(!0), m(T, null, H(t.items, (l, d) => (u(), m("div", {
|
|
1444
|
+
class: x(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
|
|
1446
1445
|
key: d,
|
|
1447
1446
|
innerHTML: n.content(l),
|
|
1448
1447
|
id: "carousel" + s.id + "slide" + (d + 1)
|
|
@@ -1450,30 +1449,30 @@ function Be(e, a, t, o, s, n) {
|
|
|
1450
1449
|
], 2)) : w("", !0)
|
|
1451
1450
|
]),
|
|
1452
1451
|
f("div", {
|
|
1453
|
-
class:
|
|
1452
|
+
class: x(`carousel__controls cols-${t.cols} cols-sm-${t.smcols} cols-md-${t.mdcols}`)
|
|
1454
1453
|
}, [
|
|
1455
|
-
(u(!0), m(
|
|
1454
|
+
(u(!0), m(T, null, H(t.items, (l, d) => (u(), m("a", {
|
|
1456
1455
|
key: d,
|
|
1457
1456
|
href: "#carousel" + s.id + "slide" + (d + 1),
|
|
1458
|
-
class:
|
|
1459
|
-
}, "Slide " +
|
|
1457
|
+
class: x(`control-${d + 1}`)
|
|
1458
|
+
}, "Slide " + S(d + 1), 11, Pe))), 128))
|
|
1460
1459
|
], 2),
|
|
1461
1460
|
Ie,
|
|
1462
1461
|
Oe
|
|
1463
1462
|
])
|
|
1464
1463
|
], 8, Ne);
|
|
1465
1464
|
}
|
|
1466
|
-
const Oi = /* @__PURE__ */
|
|
1465
|
+
const Oi = /* @__PURE__ */ y(Ce, [["render", Be]]);
|
|
1467
1466
|
/*!
|
|
1468
|
-
* iamKey v5.1.0-
|
|
1467
|
+
* iamKey v5.1.0-beta4
|
|
1469
1468
|
* Copyright 2022-2023 iamproperty
|
|
1470
1469
|
*/
|
|
1471
1470
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "header" });
|
|
1472
1471
|
class Ue extends HTMLElement {
|
|
1473
1472
|
constructor() {
|
|
1474
1473
|
super(), this.attachShadow({ mode: "open" });
|
|
1475
|
-
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`,
|
|
1476
|
-
|
|
1474
|
+
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");
|
|
1475
|
+
i.innerHTML = `
|
|
1477
1476
|
<style>
|
|
1478
1477
|
@import "${t}";
|
|
1479
1478
|
:host{padding-top:0 !important;margin-bottom:2rem}.header-banner{background:linear-gradient(180deg, var(--colour-secondary) 0, var(--colour-info) 100%);position:relative;overflow:hidden;max-width:100% !important}@media screen and (min-width: 62em){.header-banner{min-height:29.375rem}}.header-banner>.container{padding-bottom:0;position:relative}.header-banner .breadcrumb{margin-top:1.5rem;margin-bottom:-0.5rem}@media screen and (min-width: 62em){.header-banner .breadcrumb{position:absolute;top:0;left:3.75rem}}.header-banner__inner{--colour-muted: #9d9d9d;--colour-body: #595959;--colour-border: #D8D8D8;--colour-link: var(--colour-primary-theme);--colour-brand: var(--colour-primary-theme);--colour-underline: var(--colour-secondary);--colour-heading: var(--colour-primary);--colour-focus: var(--colour-primary-theme);--colour-hover: var(--colour-primary-theme);--colour-active: var(--colour-primary-theme);--colour-selected: var(--colour-info);--colour-inverted: #FCFCFC;--colour-btn: var(--colour-primary-theme);--colour-btn-bg: var(--colour-warning);--colour-btn-border: var(--colour-warning);--colour-btn-bg-hover: transparent;--colour-btn-hover: var(--colour-primary-theme);--colour-btn-secondary: var(--colour-primary-theme);--colour-btn-secondary-border: var(--colour-primary-theme);--colour-btn-secondary-bg: transparent;--colour-btn-secondary-bg-hover: var(--colour-primary-theme);--colour-btn-secondary-hover: var(--colour-inverted);--colour-canvas-2: white;--colour-btn-action-hover-bg: var(--colour-light);color:var(--colour-body);background:#fff;padding:2rem;margin:1.875rem 0;position:relative;z-index:var(--index-above)}.header-banner__inner .text-primary{color:var(--colour-primary) !important}@media screen and (min-width: 62em){.header-banner__inner{max-width:37.5rem;margin:7rem 0 5rem 0;padding:3.5rem 4rem}}.header-banner__inner>*:last-child{padding-bottom:0;margin-bottom:0}.header-banner picture img{display:none}@media screen and (min-width: 62em){.header-banner picture img{display:block;position:absolute;top:-0.5%;left:40%;height:101%;object-fit:cover;width:60%;pointer-events:none}}::slotted(.breadcrumb){margin-top:1.5rem !important;margin-bottom:-0.5rem !important}@media screen and (min-width: 62em){::slotted(.breadcrumb){position:absolute !important;top:0 !important;left:5.25rem !important}}::slotted(*:last-child){padding-bottom:0 !important;margin-bottom:0 !important}/*# sourceMappingURL=assets/css/components/header.css.map */
|
|
@@ -1494,7 +1493,7 @@ class Ue extends HTMLElement {
|
|
|
1494
1493
|
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="" lazy="" />
|
|
1495
1494
|
</picture>
|
|
1496
1495
|
</div>
|
|
1497
|
-
`, this.shadowRoot.appendChild(
|
|
1496
|
+
`, this.shadowRoot.appendChild(i.content.cloneNode(!0));
|
|
1498
1497
|
}
|
|
1499
1498
|
connectedCallback() {
|
|
1500
1499
|
this.classList.add("loaded");
|
|
@@ -1519,7 +1518,7 @@ const Ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1519
1518
|
},
|
|
1520
1519
|
mounted() {
|
|
1521
1520
|
this.$nextTick(function() {
|
|
1522
|
-
|
|
1521
|
+
D(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/header/header.component.js": () => import("./header.component-780164cb.mjs"), "../../../assets/js/components/header/header.component.min.js": () => Promise.resolve().then(() => Ve) }), "../../../assets/js/components/header/header.component.js").then((e) => {
|
|
1523
1522
|
window.customElements.get("iam-header") || window.customElements.define("iam-header", e.default);
|
|
1524
1523
|
}).catch((e) => {
|
|
1525
1524
|
console.log(e.message);
|
|
@@ -1527,7 +1526,7 @@ const Ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1527
1526
|
});
|
|
1528
1527
|
}
|
|
1529
1528
|
}, Ge = ["image"], Ke = ["innerHTML"];
|
|
1530
|
-
function Ye(e, a, t,
|
|
1529
|
+
function Ye(e, a, t, i, s, n) {
|
|
1531
1530
|
return u(), m("iam-header", {
|
|
1532
1531
|
class: "bg-secondary",
|
|
1533
1532
|
image: t.image
|
|
@@ -1540,27 +1539,27 @@ function Ye(e, a, t, o, s, n) {
|
|
|
1540
1539
|
_(e.$slots, "default")
|
|
1541
1540
|
], 8, Ge);
|
|
1542
1541
|
}
|
|
1543
|
-
const Bi = /* @__PURE__ */
|
|
1542
|
+
const Bi = /* @__PURE__ */ y(We, [["render", Ye]]);
|
|
1544
1543
|
function Xe(e) {
|
|
1545
1544
|
var a;
|
|
1546
|
-
const t = e.querySelector(".testimonial__images"),
|
|
1547
|
-
if (
|
|
1545
|
+
const t = e.querySelector(".testimonial__images"), i = t.querySelectorAll("img").length;
|
|
1546
|
+
if (i == 1)
|
|
1548
1547
|
return !1;
|
|
1549
1548
|
e.classList.add("testimonial--multi");
|
|
1550
1549
|
const s = function(n) {
|
|
1551
|
-
const
|
|
1552
|
-
|
|
1550
|
+
const o = e.querySelector(".btn-next"), l = e.querySelector(".btn-prev");
|
|
1551
|
+
o.setAttribute("data-go", n + 1), l.setAttribute("data-go", n - 1), o.removeAttribute("disabled"), l.removeAttribute("disabled"), n == 1 ? l.setAttribute("disabled", !0) : n == i && o.setAttribute("disabled", !0);
|
|
1553
1552
|
};
|
|
1554
1553
|
t.addEventListener("scroll", function(n) {
|
|
1555
1554
|
clearTimeout(a), a = setTimeout(function() {
|
|
1556
|
-
let
|
|
1557
|
-
d == 0 && r != 0 && (p = Math.round(r / l *
|
|
1555
|
+
let o = t.scrollWidth, l = t.scrollHeight, d = t.scrollLeft, r = t.scrollTop, p = Math.round(d / o * i) + 1;
|
|
1556
|
+
d == 0 && r != 0 && (p = Math.round(r / l * i) + 1), e.setAttribute("data-show", p), s(p);
|
|
1558
1557
|
}, 300);
|
|
1559
1558
|
}, !1), e.addEventListener("click", function(n) {
|
|
1560
|
-
for (var
|
|
1561
|
-
if (
|
|
1562
|
-
let l = parseInt(
|
|
1563
|
-
p > c ? r = Math.floor(p * ((l - 1) /
|
|
1559
|
+
for (var o = n.target; o && o != this; o = o.parentNode)
|
|
1560
|
+
if (o.matches("[data-go]")) {
|
|
1561
|
+
let l = parseInt(o.getAttribute("data-go")), d = 0, r = 0, p = t.scrollWidth, c = t.scrollHeight;
|
|
1562
|
+
p > c ? r = Math.floor(p * ((l - 1) / i)) : d = Math.floor(c * ((l - 1) / i)), t.scroll({
|
|
1564
1563
|
top: d,
|
|
1565
1564
|
left: r,
|
|
1566
1565
|
behavior: "smooth"
|
|
@@ -1600,19 +1599,19 @@ const Je = {
|
|
|
1600
1599
|
class: "btn-next"
|
|
1601
1600
|
}, "Next")
|
|
1602
1601
|
], -1), oa = { class: "col-md-7" }, na = /* @__PURE__ */ f("h2", null, "What our customers think…", -1), ra = { class: "testimonial__content" }, sa = ["innerHTML"], la = ["innerHTML"], da = { class: "testimonial__after" }, ca = /* @__PURE__ */ f("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
|
|
1603
|
-
function ua(e, a, t,
|
|
1602
|
+
function ua(e, a, t, i, s, n) {
|
|
1604
1603
|
return u(), m("div", Qe, [
|
|
1605
1604
|
f("div", {
|
|
1606
|
-
class:
|
|
1605
|
+
class: x("bg-" + t.background)
|
|
1607
1606
|
}, [
|
|
1608
1607
|
f("div", Ze, [
|
|
1609
1608
|
f("div", ta, [
|
|
1610
1609
|
f("div", ea, [
|
|
1611
|
-
(u(!0), m(
|
|
1610
|
+
(u(!0), m(T, null, H(t.items, (o, l) => (u(), m("img", {
|
|
1612
1611
|
key: l,
|
|
1613
|
-
src:
|
|
1612
|
+
src: o.image ? o.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
|
|
1614
1613
|
alt: "",
|
|
1615
|
-
class:
|
|
1614
|
+
class: x("h-100 w-100 object-cover" + (o.image ? "" : " opacity-0"))
|
|
1616
1615
|
}, null, 10, aa))), 128))
|
|
1617
1616
|
]),
|
|
1618
1617
|
ia
|
|
@@ -1620,15 +1619,15 @@ function ua(e, a, t, o, s, n) {
|
|
|
1620
1619
|
f("div", oa, [
|
|
1621
1620
|
na,
|
|
1622
1621
|
f("div", ra, [
|
|
1623
|
-
(u(!0), m(
|
|
1622
|
+
(u(!0), m(T, null, H(t.items, (o, l) => (u(), m("blockquote", {
|
|
1624
1623
|
key: l,
|
|
1625
|
-
class:
|
|
1624
|
+
class: x(o.class)
|
|
1626
1625
|
}, [
|
|
1627
1626
|
f("div", {
|
|
1628
|
-
innerHTML:
|
|
1627
|
+
innerHTML: o.quote
|
|
1629
1628
|
}, null, 8, sa),
|
|
1630
1629
|
f("cite", {
|
|
1631
|
-
innerHTML:
|
|
1630
|
+
innerHTML: o.cite
|
|
1632
1631
|
}, null, 8, la)
|
|
1633
1632
|
], 2))), 128))
|
|
1634
1633
|
]),
|
|
@@ -1641,7 +1640,7 @@ function ua(e, a, t, o, s, n) {
|
|
|
1641
1640
|
], 2)
|
|
1642
1641
|
], 512);
|
|
1643
1642
|
}
|
|
1644
|
-
const Ui = /* @__PURE__ */
|
|
1643
|
+
const Ui = /* @__PURE__ */ y(Je, [["render", ua]]);
|
|
1645
1644
|
const ma = {
|
|
1646
1645
|
name: "Timeline",
|
|
1647
1646
|
props: {
|
|
@@ -1651,7 +1650,7 @@ const ma = {
|
|
|
1651
1650
|
}
|
|
1652
1651
|
}
|
|
1653
1652
|
}, ha = { class: "timeline" }, pa = { class: "timeline__content" }, ba = ["src"];
|
|
1654
|
-
function fa(e, a, t,
|
|
1653
|
+
function fa(e, a, t, i, s, n) {
|
|
1655
1654
|
return u(), m("div", ha, [
|
|
1656
1655
|
f("div", pa, [
|
|
1657
1656
|
_(e.$slots, "default")
|
|
@@ -1663,7 +1662,7 @@ function fa(e, a, t, o, s, n) {
|
|
|
1663
1662
|
}, null, 8, ba)) : w("", !0)
|
|
1664
1663
|
]);
|
|
1665
1664
|
}
|
|
1666
|
-
const Vi = /* @__PURE__ */
|
|
1665
|
+
const Vi = /* @__PURE__ */ y(ma, [["render", fa]]);
|
|
1667
1666
|
const ga = {
|
|
1668
1667
|
components: {
|
|
1669
1668
|
Input: st
|
|
@@ -1826,8 +1825,8 @@ const ga = {
|
|
|
1826
1825
|
value: "submit"
|
|
1827
1826
|
}, "Search")
|
|
1828
1827
|
], -1);
|
|
1829
|
-
function Ta(e, a, t,
|
|
1830
|
-
const
|
|
1828
|
+
function Ta(e, a, t, i, s, n) {
|
|
1829
|
+
const o = B("Input");
|
|
1831
1830
|
return u(), m("div", ya, [
|
|
1832
1831
|
_(e.$slots, "default"),
|
|
1833
1832
|
f("div", va, [
|
|
@@ -1837,7 +1836,7 @@ function Ta(e, a, t, o, s, n) {
|
|
|
1837
1836
|
method: t.formmethod
|
|
1838
1837
|
}, [
|
|
1839
1838
|
f("fieldset", _a, [
|
|
1840
|
-
|
|
1839
|
+
C(o, {
|
|
1841
1840
|
inputClass: "input--locations",
|
|
1842
1841
|
modelValue: n.locationSet,
|
|
1843
1842
|
"onUpdate:modelValue": a[0] || (a[0] = (l) => n.locationSet = l),
|
|
@@ -1849,7 +1848,7 @@ function Ta(e, a, t, o, s, n) {
|
|
|
1849
1848
|
onKeyupEvent: a[1] || (a[1] = (l) => n.locationKeyup(...arguments)),
|
|
1850
1849
|
ref: "search"
|
|
1851
1850
|
}, null, 8, ["modelValue", "options"]),
|
|
1852
|
-
|
|
1851
|
+
C(o, {
|
|
1853
1852
|
class: "select--miles",
|
|
1854
1853
|
label: "Miles",
|
|
1855
1854
|
id: "miles",
|
|
@@ -1860,7 +1859,7 @@ function Ta(e, a, t, o, s, n) {
|
|
|
1860
1859
|
f("fieldset", Aa, [
|
|
1861
1860
|
xa,
|
|
1862
1861
|
f("div", ka, [
|
|
1863
|
-
|
|
1862
|
+
C(o, {
|
|
1864
1863
|
class: "col-6",
|
|
1865
1864
|
label: "Minimum price",
|
|
1866
1865
|
id: "price-min",
|
|
@@ -1868,7 +1867,7 @@ function Ta(e, a, t, o, s, n) {
|
|
|
1868
1867
|
type: "select",
|
|
1869
1868
|
options: t.pricemin
|
|
1870
1869
|
}, null, 8, ["options"]),
|
|
1871
|
-
|
|
1870
|
+
C(o, {
|
|
1872
1871
|
class: "col-6",
|
|
1873
1872
|
label: "Maximum price",
|
|
1874
1873
|
id: "price-max",
|
|
@@ -1881,7 +1880,7 @@ function Ta(e, a, t, o, s, n) {
|
|
|
1881
1880
|
f("fieldset", La, [
|
|
1882
1881
|
Sa,
|
|
1883
1882
|
f("div", $a, [
|
|
1884
|
-
|
|
1883
|
+
C(o, {
|
|
1885
1884
|
class: "col-6",
|
|
1886
1885
|
label: "Minimum beds",
|
|
1887
1886
|
id: "beds-min",
|
|
@@ -1889,7 +1888,7 @@ function Ta(e, a, t, o, s, n) {
|
|
|
1889
1888
|
type: "select",
|
|
1890
1889
|
options: t.bedsmin
|
|
1891
1890
|
}, null, 8, ["options"]),
|
|
1892
|
-
|
|
1891
|
+
C(o, {
|
|
1893
1892
|
class: "col-6",
|
|
1894
1893
|
label: "Maximum beds",
|
|
1895
1894
|
id: "beds-max",
|
|
@@ -1900,7 +1899,7 @@ function Ta(e, a, t, o, s, n) {
|
|
|
1900
1899
|
])
|
|
1901
1900
|
]),
|
|
1902
1901
|
f("fieldset", qa, [
|
|
1903
|
-
|
|
1902
|
+
C(o, {
|
|
1904
1903
|
label: "Property type",
|
|
1905
1904
|
id: "property-type",
|
|
1906
1905
|
type: "select",
|
|
@@ -1913,12 +1912,12 @@ function Ta(e, a, t, o, s, n) {
|
|
|
1913
1912
|
_(e.$slots, "after")
|
|
1914
1913
|
], 512);
|
|
1915
1914
|
}
|
|
1916
|
-
const Wi = /* @__PURE__ */
|
|
1915
|
+
const Wi = /* @__PURE__ */ y(ga, [["render", Ta]]), Ha = {
|
|
1917
1916
|
components: {},
|
|
1918
1917
|
name: "Nav",
|
|
1919
1918
|
mounted() {
|
|
1920
1919
|
this.$nextTick(function() {
|
|
1921
|
-
|
|
1920
|
+
D(/* @__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-aa89c16d.mjs") }), "../../../assets/js/components/nav/nav.component.js").then((e) => {
|
|
1922
1921
|
window.customElements.get("iam-nav") || window.customElements.define("iam-nav", e.default);
|
|
1923
1922
|
}).catch((e) => {
|
|
1924
1923
|
console.log(e.message);
|
|
@@ -1927,12 +1926,12 @@ const Wi = /* @__PURE__ */ v(ga, [["render", Ta]]), Ha = {
|
|
|
1927
1926
|
},
|
|
1928
1927
|
methods: {}
|
|
1929
1928
|
}, Ma = { ref: "wrapper" };
|
|
1930
|
-
function ja(e, a, t,
|
|
1929
|
+
function ja(e, a, t, i, s, n) {
|
|
1931
1930
|
return u(), m("iam-nav", Ma, [
|
|
1932
1931
|
_(e.$slots, "default")
|
|
1933
1932
|
], 512);
|
|
1934
1933
|
}
|
|
1935
|
-
const Gi = /* @__PURE__ */
|
|
1934
|
+
const Gi = /* @__PURE__ */ y(Ha, [["render", ja]]);
|
|
1936
1935
|
const Ca = {
|
|
1937
1936
|
name: "Stepper",
|
|
1938
1937
|
props: {
|
|
@@ -1950,21 +1949,21 @@ const Ca = {
|
|
|
1950
1949
|
key: 0,
|
|
1951
1950
|
class: "h6 stepper__start"
|
|
1952
1951
|
}, za = { class: "list-unstyled" }, Fa = { class: "h6 stepper__end" };
|
|
1953
|
-
function Pa(e, a, t,
|
|
1952
|
+
function Pa(e, a, t, i, s, n) {
|
|
1954
1953
|
return u(), m("div", Na, [
|
|
1955
1954
|
f("nav", {
|
|
1956
1955
|
class: "stepper",
|
|
1957
1956
|
"aria-label": t.label ? t.label : "Progress"
|
|
1958
1957
|
}, [
|
|
1959
|
-
t.label ? (u(), m("span", Da,
|
|
1958
|
+
t.label ? (u(), m("span", Da, S(t.label), 1)) : w("", !0),
|
|
1960
1959
|
f("ol", za, [
|
|
1961
1960
|
_(e.$slots, "default")
|
|
1962
1961
|
]),
|
|
1963
|
-
f("span", Fa,
|
|
1962
|
+
f("span", Fa, S(t.endlabel), 1)
|
|
1964
1963
|
], 8, Ra)
|
|
1965
1964
|
]);
|
|
1966
1965
|
}
|
|
1967
|
-
const Ki = /* @__PURE__ */
|
|
1966
|
+
const Ki = /* @__PURE__ */ y(Ca, [["render", Pa]]);
|
|
1968
1967
|
const Ia = {
|
|
1969
1968
|
name: "Snapshot",
|
|
1970
1969
|
props: {
|
|
@@ -1977,29 +1976,29 @@ const Ia = {
|
|
|
1977
1976
|
class: "container snapshot",
|
|
1978
1977
|
ref: "wrapper"
|
|
1979
1978
|
}, Ba = { class: "row" }, Ua = ["href"], Va = { class: "lead snapshot__title" }, Wa = { class: "stat" };
|
|
1980
|
-
function Ga(e, a, t,
|
|
1979
|
+
function Ga(e, a, t, i, s, n) {
|
|
1981
1980
|
return u(), m("div", Oa, [
|
|
1982
1981
|
_(e.$slots, "default"),
|
|
1983
1982
|
f("div", Ba, [
|
|
1984
|
-
(u(!0), m(
|
|
1983
|
+
(u(!0), m(T, null, H(t.items, (o, l) => (u(), m("div", {
|
|
1985
1984
|
class: "col",
|
|
1986
1985
|
key: l
|
|
1987
1986
|
}, [
|
|
1988
|
-
|
|
1987
|
+
o.link ? (u(), m("a", {
|
|
1989
1988
|
key: 0,
|
|
1990
|
-
href:
|
|
1991
|
-
}, "View " +
|
|
1989
|
+
href: o.link
|
|
1990
|
+
}, "View " + S(o.title), 9, Ua)) : w("", !0),
|
|
1992
1991
|
f("div", {
|
|
1993
|
-
class:
|
|
1992
|
+
class: x(`snapshot__item ${o.bg ? "bg-" + o.bg : ""}`)
|
|
1994
1993
|
}, [
|
|
1995
|
-
f("span", Va,
|
|
1996
|
-
f("span", Wa,
|
|
1994
|
+
f("span", Va, S(o.title), 1),
|
|
1995
|
+
f("span", Wa, S(o.number), 1)
|
|
1997
1996
|
], 2)
|
|
1998
1997
|
]))), 128))
|
|
1999
1998
|
])
|
|
2000
1999
|
], 512);
|
|
2001
2000
|
}
|
|
2002
|
-
const Yi = /* @__PURE__ */
|
|
2001
|
+
const Yi = /* @__PURE__ */ y(Ia, [["render", Ga]]), Ka = {
|
|
2003
2002
|
name: "Stepper",
|
|
2004
2003
|
props: {
|
|
2005
2004
|
url: {
|
|
@@ -2019,26 +2018,26 @@ const Yi = /* @__PURE__ */ v(Ia, [["render", Ga]]), Ka = {
|
|
|
2019
2018
|
key: 0,
|
|
2020
2019
|
class: "visually-hidden"
|
|
2021
2020
|
};
|
|
2022
|
-
function Ja(e, a, t,
|
|
2021
|
+
function Ja(e, a, t, i, s, n) {
|
|
2023
2022
|
return u(), m("li", null, [
|
|
2024
2023
|
f("a", {
|
|
2025
2024
|
href: t.url,
|
|
2026
|
-
class:
|
|
2025
|
+
class: x(`${t.status ? "bg-" + t.status : ""}${typeof t.current < "u" ? "current" : ""}`),
|
|
2027
2026
|
"aria-current": typeof t.current < "u" ? "step" : !1
|
|
2028
2027
|
}, [
|
|
2029
2028
|
f("span", null, [
|
|
2030
2029
|
_(e.$slots, "default")
|
|
2031
2030
|
]),
|
|
2032
|
-
t.status ? (u(), m("em", Xa, " - status: " +
|
|
2031
|
+
t.status ? (u(), m("em", Xa, " - status: " + S(t.status), 1)) : w("", !0)
|
|
2033
2032
|
], 10, Ya)
|
|
2034
2033
|
]);
|
|
2035
2034
|
}
|
|
2036
|
-
const Xi = /* @__PURE__ */
|
|
2035
|
+
const Xi = /* @__PURE__ */ y(Ka, [["render", Ja]]);
|
|
2037
2036
|
const Qa = {
|
|
2038
2037
|
name: "Tabs",
|
|
2039
2038
|
mounted() {
|
|
2040
2039
|
this.$nextTick(function() {
|
|
2041
|
-
|
|
2040
|
+
D(/* @__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-9bf2758c.mjs") }), "../../../assets/js/components/tabs/tabs.component.js").then((e) => {
|
|
2042
2041
|
window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", e.default);
|
|
2043
2042
|
}).catch((e) => {
|
|
2044
2043
|
console.log(e.message);
|
|
@@ -2046,12 +2045,12 @@ const Qa = {
|
|
|
2046
2045
|
});
|
|
2047
2046
|
}
|
|
2048
2047
|
}, Za = { ref: "wrapper" };
|
|
2049
|
-
function ti(e, a, t,
|
|
2048
|
+
function ti(e, a, t, i, s, n) {
|
|
2050
2049
|
return u(), m("iam-tabs", Za, [
|
|
2051
2050
|
_(e.$slots, "default")
|
|
2052
2051
|
], 512);
|
|
2053
2052
|
}
|
|
2054
|
-
const Ji = /* @__PURE__ */
|
|
2053
|
+
const Ji = /* @__PURE__ */ y(Qa, [["render", ti]]), ei = {
|
|
2055
2054
|
name: "Tab",
|
|
2056
2055
|
props: {
|
|
2057
2056
|
title: {
|
|
@@ -2074,16 +2073,16 @@ const Ji = /* @__PURE__ */ v(Qa, [["render", ti]]), ei = {
|
|
|
2074
2073
|
};
|
|
2075
2074
|
}
|
|
2076
2075
|
}, ai = { class: "tab" }, ii = ["innerHTML"];
|
|
2077
|
-
function oi(e, a, t,
|
|
2076
|
+
function oi(e, a, t, i, s, n) {
|
|
2078
2077
|
return u(), m("details", ai, [
|
|
2079
2078
|
f("summary", {
|
|
2080
2079
|
innerHTML: t.title,
|
|
2081
|
-
class:
|
|
2080
|
+
class: x({ disabled: s.isDisabled })
|
|
2082
2081
|
}, null, 10, ii),
|
|
2083
2082
|
_(e.$slots, "default")
|
|
2084
2083
|
]);
|
|
2085
2084
|
}
|
|
2086
|
-
const Qi = /* @__PURE__ */
|
|
2085
|
+
const Qi = /* @__PURE__ */ y(ei, [["render", oi]]);
|
|
2087
2086
|
let lt = rt.props;
|
|
2088
2087
|
lt.fields.required = !1;
|
|
2089
2088
|
const ni = {
|
|
@@ -2102,9 +2101,9 @@ const ni = {
|
|
|
2102
2101
|
console.log(this);
|
|
2103
2102
|
const a = new FormData(e.target);
|
|
2104
2103
|
let t = /* @__PURE__ */ new Date();
|
|
2105
|
-
const
|
|
2104
|
+
const i = t.getFullYear();
|
|
2106
2105
|
let s = t.getMonth() + 1, n = t.getDate();
|
|
2107
|
-
n < 10 && (n = "0" + n), s < 10 && (s = "0" + s), t = n + "/" + s + "/" +
|
|
2106
|
+
n < 10 && (n = "0" + n), s < 10 && (s = "0" + s), t = n + "/" + s + "/" + i, this.itemsData.unshift({
|
|
2108
2107
|
date_added: t,
|
|
2109
2108
|
user: a.get("user"),
|
|
2110
2109
|
note: a.get("addNote")
|
|
@@ -2133,15 +2132,15 @@ const ni = {
|
|
|
2133
2132
|
}
|
|
2134
2133
|
}
|
|
2135
2134
|
}, ri = { class: "container note-feed mb-2" }, si = ["innerHTML"], li = ["action", "method"], di = ["value"], ci = /* @__PURE__ */ f("button", { class: "btn btn-tertiary" }, "Submit note", -1);
|
|
2136
|
-
function ui(e, a, t,
|
|
2137
|
-
const
|
|
2135
|
+
function ui(e, a, t, i, s, n) {
|
|
2136
|
+
const o = B("Table"), l = B("Input");
|
|
2138
2137
|
return u(), m("div", ri, [
|
|
2139
2138
|
t.title ? (u(), m("span", {
|
|
2140
2139
|
key: 0,
|
|
2141
2140
|
class: "h3",
|
|
2142
2141
|
innerHTML: t.title
|
|
2143
2142
|
}, null, 8, si)) : w("", !0),
|
|
2144
|
-
|
|
2143
|
+
C(o, N({
|
|
2145
2144
|
fields: [{ key: "date_added" }, { key: "user" }, { key: "note" }],
|
|
2146
2145
|
items: s.itemsData
|
|
2147
2146
|
}, e.$props, { class: "mb-0" }), null, 16, ["items"]),
|
|
@@ -2155,7 +2154,7 @@ function ui(e, a, t, o, s, n) {
|
|
|
2155
2154
|
value: t.user,
|
|
2156
2155
|
name: "user"
|
|
2157
2156
|
}, null, 8, di),
|
|
2158
|
-
|
|
2157
|
+
C(l, {
|
|
2159
2158
|
id: "addNote",
|
|
2160
2159
|
type: "textarea",
|
|
2161
2160
|
label: "Add note",
|
|
@@ -2166,52 +2165,52 @@ function ui(e, a, t, o, s, n) {
|
|
|
2166
2165
|
], 40, li)
|
|
2167
2166
|
]);
|
|
2168
2167
|
}
|
|
2169
|
-
const Zi = /* @__PURE__ */
|
|
2168
|
+
const Zi = /* @__PURE__ */ y(ni, [["render", ui]]);
|
|
2170
2169
|
/*!
|
|
2171
|
-
* iamKey v5.1.0-
|
|
2170
|
+
* iamKey v5.1.0-beta4
|
|
2172
2171
|
* Copyright 2022-2023 iamproperty
|
|
2173
2172
|
*/
|
|
2174
2173
|
function mi(e, a) {
|
|
2175
|
-
function t(
|
|
2176
|
-
let n = !1,
|
|
2177
|
-
|
|
2178
|
-
let l =
|
|
2174
|
+
function t(i, s) {
|
|
2175
|
+
let n = !1, o = s.getAttribute("name");
|
|
2176
|
+
o.includes("[]") && (o = o.replace("[]", `[${s.value}]`));
|
|
2177
|
+
let l = i.querySelector(`[data-name="${o}"]`);
|
|
2179
2178
|
l && s.getAttribute("type") == "checkbox" && (n = !s.checked);
|
|
2180
2179
|
let d = s.getAttribute("data-filter-text");
|
|
2181
|
-
if (l || (l = document.createElement("button"),
|
|
2180
|
+
if (l || (l = document.createElement("button"), i.appendChild(l)), l.setAttribute("type", "button"), l.classList.add("filter"), l.setAttribute("data-name", o), l.innerHTML = d.replace("$value", s.value), (!s.value || n) && l.remove(), s.parentNode.closest("[data-filter-text]")) {
|
|
2182
2181
|
let r = s.parentNode.closest("[data-filter-text]"), p = !0;
|
|
2183
|
-
if (
|
|
2184
|
-
let
|
|
2185
|
-
if (
|
|
2186
|
-
let
|
|
2187
|
-
|
|
2182
|
+
if (o = "", r.querySelectorAll("input").forEach((c, h) => {
|
|
2183
|
+
let g = c.getAttribute("name");
|
|
2184
|
+
if (o += `${h != 0 ? "," : ""}${g}`, i.querySelector(`[data-name="${g}"]`) && i.querySelector(`[data-name="${g}"]`).remove(), c.value) {
|
|
2185
|
+
let b = document.createElement("button");
|
|
2186
|
+
b.setAttribute("type", "button"), b.classList.add("filter"), b.setAttribute("data-name", g), b.innerHTML = d.replace("$value", c.value), i.appendChild(b);
|
|
2188
2187
|
} else
|
|
2189
2188
|
p = !1;
|
|
2190
|
-
}),
|
|
2189
|
+
}), i.querySelector(`[data-name="${o}"]`) && i.querySelector(`[data-name="${o}"]`).remove(), p) {
|
|
2191
2190
|
let c = r.getAttribute("data-filter-text");
|
|
2192
|
-
r.querySelectorAll("input").forEach((
|
|
2193
|
-
let
|
|
2194
|
-
|
|
2191
|
+
r.querySelectorAll("input").forEach((g, b) => {
|
|
2192
|
+
let A = g.getAttribute("name");
|
|
2193
|
+
i.querySelector(`[data-name="${A}"]`) && i.querySelector(`[data-name="${A}"]`).remove(), c = c.replace(`$${b + 1}`, g.value);
|
|
2195
2194
|
});
|
|
2196
|
-
let
|
|
2197
|
-
|
|
2195
|
+
let h = document.createElement("button");
|
|
2196
|
+
h.setAttribute("type", "button"), h.classList.add("filter"), h.setAttribute("data-name", o), h.innerHTML = c, i.appendChild(h);
|
|
2198
2197
|
}
|
|
2199
2198
|
}
|
|
2200
2199
|
}
|
|
2201
|
-
Array.from(e.querySelectorAll('input[type="checkbox"]:checked')).forEach((
|
|
2202
|
-
t(a,
|
|
2203
|
-
}), Array.from(e.querySelectorAll("input[data-filter-text]")).forEach((
|
|
2204
|
-
|
|
2205
|
-
t(a,
|
|
2200
|
+
Array.from(e.querySelectorAll('input[type="checkbox"]:checked')).forEach((i, s) => {
|
|
2201
|
+
t(a, i);
|
|
2202
|
+
}), Array.from(e.querySelectorAll("input[data-filter-text]")).forEach((i, s) => {
|
|
2203
|
+
i.addEventListener("change", function(n) {
|
|
2204
|
+
t(a, i), n.stopPropagation();
|
|
2206
2205
|
});
|
|
2207
|
-
}), e.addEventListener("change", function(
|
|
2208
|
-
if (
|
|
2209
|
-
let s =
|
|
2206
|
+
}), e.addEventListener("change", function(i) {
|
|
2207
|
+
if (i && i.target instanceof HTMLElement && i.target.closest("input[data-filter-text]")) {
|
|
2208
|
+
let s = i.target.closest("input[data-filter-text]");
|
|
2210
2209
|
t(a, s);
|
|
2211
2210
|
}
|
|
2212
|
-
}), a.addEventListener("click", function(
|
|
2213
|
-
if (
|
|
2214
|
-
let
|
|
2211
|
+
}), a.addEventListener("click", function(i) {
|
|
2212
|
+
if (i && i.target instanceof HTMLElement && i.target.closest(".filter")) {
|
|
2213
|
+
let o = i.target.closest(".filter"), l = o.getAttribute("data-name").split(",");
|
|
2215
2214
|
for (var s = 0; s < l.length; s++) {
|
|
2216
2215
|
let d = l[s], r = `[name="${d}"]`;
|
|
2217
2216
|
d.match(/\[(.*)\]/) && (d.replace(/\[(.*)\]/, "[]"), r = `[value="${d.replace(/.*\[(.*)\]/, "$1")}"]`);
|
|
@@ -2222,12 +2221,12 @@ function mi(e, a) {
|
|
|
2222
2221
|
c.value = "";
|
|
2223
2222
|
else {
|
|
2224
2223
|
c.checked = !1;
|
|
2225
|
-
var
|
|
2226
|
-
e.hasAttribute("data-nosubmit") || c.closest("form").dispatchEvent(
|
|
2224
|
+
var i = new Event("force");
|
|
2225
|
+
e.hasAttribute("data-nosubmit") || c.closest("form").dispatchEvent(i);
|
|
2227
2226
|
}
|
|
2228
2227
|
}
|
|
2229
2228
|
}
|
|
2230
|
-
|
|
2229
|
+
o.remove();
|
|
2231
2230
|
}
|
|
2232
2231
|
}, !1);
|
|
2233
2232
|
}
|
|
@@ -2236,7 +2235,7 @@ class hi extends HTMLElement {
|
|
|
2236
2235
|
constructor() {
|
|
2237
2236
|
super(), this.attachShadow({ mode: "open" });
|
|
2238
2237
|
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`;
|
|
2239
|
-
let
|
|
2238
|
+
let i = this.classList.toString();
|
|
2240
2239
|
const s = document.createElement("template");
|
|
2241
2240
|
s.innerHTML = `
|
|
2242
2241
|
<style>
|
|
@@ -2245,7 +2244,7 @@ class hi extends HTMLElement {
|
|
|
2245
2244
|
|
|
2246
2245
|
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
2247
2246
|
</style>
|
|
2248
|
-
<div class="applied-filters ${
|
|
2247
|
+
<div class="applied-filters ${i}"></div>
|
|
2249
2248
|
<slot></slot>
|
|
2250
2249
|
`, this.shadowRoot.appendChild(s.content.cloneNode(!0));
|
|
2251
2250
|
}
|
|
@@ -2257,14 +2256,14 @@ window.customElements.get("iam-applied-filters") || window.customElements.define
|
|
|
2257
2256
|
const pi = {
|
|
2258
2257
|
name: "Header"
|
|
2259
2258
|
};
|
|
2260
|
-
function bi(e, a, t,
|
|
2259
|
+
function bi(e, a, t, i, s, n) {
|
|
2261
2260
|
return u(), m("iam-applied-filters", null, [
|
|
2262
2261
|
_(e.$slots, "default")
|
|
2263
2262
|
]);
|
|
2264
2263
|
}
|
|
2265
|
-
const to = /* @__PURE__ */
|
|
2264
|
+
const to = /* @__PURE__ */ y(pi, [["render", bi]]);
|
|
2266
2265
|
/*!
|
|
2267
|
-
* iamKey v5.1.0-
|
|
2266
|
+
* iamKey v5.1.0-beta4
|
|
2268
2267
|
* Copyright 2022-2023 iamproperty
|
|
2269
2268
|
*/
|
|
2270
2269
|
function fi(e, a) {
|
|
@@ -2272,16 +2271,16 @@ function fi(e, a) {
|
|
|
2272
2271
|
}
|
|
2273
2272
|
function gi(e, a) {
|
|
2274
2273
|
var t;
|
|
2275
|
-
a.addEventListener("keyup", (
|
|
2274
|
+
a.addEventListener("keyup", (i) => {
|
|
2276
2275
|
clearTimeout(t), t = setTimeout(function() {
|
|
2277
2276
|
Z(e, a.value);
|
|
2278
2277
|
}, 500);
|
|
2279
|
-
}), a.addEventListener("change", (
|
|
2278
|
+
}), a.addEventListener("change", (i) => {
|
|
2280
2279
|
clearTimeout(t), Z(e, a.value);
|
|
2281
2280
|
});
|
|
2282
2281
|
}
|
|
2283
2282
|
const Z = function(e, a) {
|
|
2284
|
-
Array.from(e.querySelectorAll(":scope > li")).forEach((t,
|
|
2283
|
+
Array.from(e.querySelectorAll(":scope > li")).forEach((t, i) => {
|
|
2285
2284
|
let s = t.textContent.toLowerCase();
|
|
2286
2285
|
t.classList.add("d-none"), s.includes(a.toLowerCase()) && t.classList.remove("d-none");
|
|
2287
2286
|
}), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Filtered list", value: a });
|
|
@@ -2290,8 +2289,8 @@ window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "custo
|
|
|
2290
2289
|
class yi extends HTMLElement {
|
|
2291
2290
|
constructor() {
|
|
2292
2291
|
super(), this.attachShadow({ mode: "open" });
|
|
2293
|
-
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`,
|
|
2294
|
-
|
|
2292
|
+
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");
|
|
2293
|
+
i.innerHTML = `
|
|
2295
2294
|
<style>
|
|
2296
2295
|
@import "${t}";
|
|
2297
2296
|
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
@@ -2318,7 +2317,7 @@ class yi extends HTMLElement {
|
|
|
2318
2317
|
<div class="list__wrapper">
|
|
2319
2318
|
<slot></slot>
|
|
2320
2319
|
</div>
|
|
2321
|
-
`, this.shadowRoot.appendChild(
|
|
2320
|
+
`, this.shadowRoot.appendChild(i.content.cloneNode(!0));
|
|
2322
2321
|
}
|
|
2323
2322
|
connectedCallback() {
|
|
2324
2323
|
let a = this.classList.toString();
|
|
@@ -2329,12 +2328,12 @@ window.customElements.get("iam-filterlist") || window.customElements.define("iam
|
|
|
2329
2328
|
const vi = {
|
|
2330
2329
|
name: "Filter list"
|
|
2331
2330
|
};
|
|
2332
|
-
function wi(e, a, t,
|
|
2331
|
+
function wi(e, a, t, i, s, n) {
|
|
2333
2332
|
return u(), m("iam-filterlist", null, [
|
|
2334
2333
|
_(e.$slots, "default")
|
|
2335
2334
|
]);
|
|
2336
2335
|
}
|
|
2337
|
-
const eo = /* @__PURE__ */
|
|
2336
|
+
const eo = /* @__PURE__ */ y(vi, [["render", wi]]);
|
|
2338
2337
|
function _i(e) {
|
|
2339
2338
|
if (e.hasAttribute("data-type") && e.getAttribute("data-type") == "toast") {
|
|
2340
2339
|
let t = document.querySelector(".notification__holder");
|
|
@@ -2347,19 +2346,19 @@ function _i(e) {
|
|
|
2347
2346
|
var a = new Ai(function() {
|
|
2348
2347
|
X(e);
|
|
2349
2348
|
}, t);
|
|
2350
|
-
e.addEventListener("mouseenter", (
|
|
2349
|
+
e.addEventListener("mouseenter", (i) => {
|
|
2351
2350
|
a.pause();
|
|
2352
|
-
}), e.addEventListener("mouseleave", (
|
|
2351
|
+
}), e.addEventListener("mouseleave", (i) => {
|
|
2353
2352
|
a.resume();
|
|
2354
2353
|
});
|
|
2355
2354
|
}
|
|
2356
2355
|
}
|
|
2357
2356
|
function Ai(e, a) {
|
|
2358
|
-
var t,
|
|
2357
|
+
var t, i, s = a;
|
|
2359
2358
|
this.pause = function() {
|
|
2360
|
-
window.clearTimeout(t), s -= /* @__PURE__ */ new Date() -
|
|
2359
|
+
window.clearTimeout(t), s -= /* @__PURE__ */ new Date() - i;
|
|
2361
2360
|
}, this.resume = function() {
|
|
2362
|
-
|
|
2361
|
+
i = /* @__PURE__ */ new Date(), window.clearTimeout(t), t = window.setTimeout(e, s);
|
|
2363
2362
|
}, this.resume();
|
|
2364
2363
|
}
|
|
2365
2364
|
const X = function(e) {
|
|
@@ -2373,15 +2372,15 @@ window.dataLayer.push({
|
|
|
2373
2372
|
class xi extends HTMLElement {
|
|
2374
2373
|
constructor() {
|
|
2375
2374
|
super(), this.attachShadow({ mode: "open" });
|
|
2376
|
-
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`,
|
|
2375
|
+
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/notification.css";`, s = `@import "${a}/css/components/notification.global.css";`, n = this.querySelectorAll("a,button");
|
|
2377
2376
|
Array.from(n).forEach((l, d) => {
|
|
2378
2377
|
l.setAttribute("slot", "btns"), l.classList.add("link");
|
|
2379
2378
|
}), (n.length || this.hasAttribute("data-dismiss")) && this.classList.add("notification--dismissable");
|
|
2380
|
-
const
|
|
2381
|
-
|
|
2379
|
+
const o = document.createElement("template");
|
|
2380
|
+
o.innerHTML = `
|
|
2382
2381
|
<style>
|
|
2383
2382
|
@import "${t}";
|
|
2384
|
-
${
|
|
2383
|
+
${i}
|
|
2385
2384
|
${this.hasAttribute("data-css") ? `${this.getAttribute("data-css")}` : ""}
|
|
2386
2385
|
</style>
|
|
2387
2386
|
|
|
@@ -2390,12 +2389,12 @@ class xi extends HTMLElement {
|
|
|
2390
2389
|
<div class="notification__inner"><div class="notification__text"><slot></slot></div>${n.length ? '<div class="notification__btns"><slot name="btns"></slot></div>' : ""}</div>
|
|
2391
2390
|
${this.hasAttribute("data-dismiss") ? '<div class="notification__dismiss"><button data-dismiss-button>Dismiss</button></div>' : ""}
|
|
2392
2391
|
</div>
|
|
2393
|
-
`, this.shadowRoot.appendChild(
|
|
2392
|
+
`, this.shadowRoot.appendChild(o.content.cloneNode(!0)), document.getElementById("notificationHolder") || document.head.insertAdjacentHTML("beforeend", `<style id="notificationHolder">${s}</style>`);
|
|
2394
2393
|
}
|
|
2395
2394
|
connectedCallback() {
|
|
2396
2395
|
const a = this.shadowRoot.querySelector("[data-dismiss-button]"), t = this.hasAttribute("data-status") ? this.getAttribute("data-status") : "white";
|
|
2397
2396
|
this.hasAttribute("data-type") ? this.classList.add(`bg-${t}`) : this.classList.add(`colour-${t}`);
|
|
2398
|
-
const
|
|
2397
|
+
const i = this;
|
|
2399
2398
|
if (!this.querySelector("i"))
|
|
2400
2399
|
switch (t) {
|
|
2401
2400
|
case "danger":
|
|
@@ -2410,8 +2409,8 @@ class xi extends HTMLElement {
|
|
|
2410
2409
|
default:
|
|
2411
2410
|
this.innerHTML += '<i class="fa-solid fa-circle-info" aria-hidden="true" slot="icon"></i>';
|
|
2412
2411
|
}
|
|
2413
|
-
_i(
|
|
2414
|
-
X(
|
|
2412
|
+
_i(i), a && a.addEventListener("click", function(s) {
|
|
2413
|
+
X(i);
|
|
2415
2414
|
}, !1);
|
|
2416
2415
|
}
|
|
2417
2416
|
}
|
|
@@ -2424,17 +2423,17 @@ const ki = {
|
|
|
2424
2423
|
});
|
|
2425
2424
|
}
|
|
2426
2425
|
};
|
|
2427
|
-
function Li(e, a, t,
|
|
2426
|
+
function Li(e, a, t, i, s, n) {
|
|
2428
2427
|
return u(), m("iam-notification", null, [
|
|
2429
2428
|
_(e.$slots, "default")
|
|
2430
2429
|
]);
|
|
2431
2430
|
}
|
|
2432
|
-
const ao = /* @__PURE__ */
|
|
2431
|
+
const ao = /* @__PURE__ */ y(ki, [["render", Li]]), Si = {
|
|
2433
2432
|
name: "Actionbar",
|
|
2434
2433
|
props: {},
|
|
2435
2434
|
mounted() {
|
|
2436
2435
|
this.$nextTick(function() {
|
|
2437
|
-
|
|
2436
|
+
D(/* @__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-7bb6c7e1.mjs") }), "../../../assets/js/components/actionbar/actionbar.component.js").then((e) => {
|
|
2438
2437
|
window.customElements.get("iam-actionbar") || window.customElements.define("iam-actionbar", e.default);
|
|
2439
2438
|
}).catch((e) => {
|
|
2440
2439
|
console.log(e.message);
|
|
@@ -2442,12 +2441,12 @@ const ao = /* @__PURE__ */ v(ki, [["render", Li]]), Si = {
|
|
|
2442
2441
|
});
|
|
2443
2442
|
}
|
|
2444
2443
|
};
|
|
2445
|
-
function $i(e, a, t,
|
|
2444
|
+
function $i(e, a, t, i, s, n) {
|
|
2446
2445
|
return u(), m("iam-actionbar", null, [
|
|
2447
2446
|
_(e.$slots, "default")
|
|
2448
2447
|
]);
|
|
2449
2448
|
}
|
|
2450
|
-
const io = /* @__PURE__ */
|
|
2449
|
+
const io = /* @__PURE__ */ y(Si, [["render", $i]]), qi = {
|
|
2451
2450
|
name: "Pagination",
|
|
2452
2451
|
props: {},
|
|
2453
2452
|
computed: {},
|
|
@@ -2459,14 +2458,14 @@ const io = /* @__PURE__ */ v(Si, [["render", $i]]), qi = {
|
|
|
2459
2458
|
updated() {
|
|
2460
2459
|
}
|
|
2461
2460
|
};
|
|
2462
|
-
function Ei(e, a, t,
|
|
2461
|
+
function Ei(e, a, t, i, s, n) {
|
|
2463
2462
|
return u(), m("iam-pagination");
|
|
2464
2463
|
}
|
|
2465
|
-
const oo = /* @__PURE__ */
|
|
2464
|
+
const oo = /* @__PURE__ */ y(qi, [["render", Ei]]), Ti = {
|
|
2466
2465
|
name: "Address Lookup",
|
|
2467
2466
|
mounted() {
|
|
2468
2467
|
this.$nextTick(function() {
|
|
2469
|
-
|
|
2468
|
+
D(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/address-lookup/address-lookup.component.js": () => import("./address-lookup.component-53821bfb.mjs"), "../../../assets/js/components/address-lookup/address-lookup.component.min.js": () => import("./address-lookup.component.min-4ceee9e9.mjs") }), "../../../assets/js/components/address-lookup/address-lookup.component.js").then((e) => {
|
|
2470
2469
|
window.customElements.get("iam-address-lookup") || window.customElements.define("iam-address-lookup", e.default);
|
|
2471
2470
|
}).catch((e) => {
|
|
2472
2471
|
console.log(e.message);
|
|
@@ -2474,22 +2473,22 @@ const oo = /* @__PURE__ */ v(qi, [["render", Ei]]), Ti = {
|
|
|
2474
2473
|
});
|
|
2475
2474
|
}
|
|
2476
2475
|
};
|
|
2477
|
-
function Hi(e, a, t,
|
|
2476
|
+
function Hi(e, a, t, i, s, n) {
|
|
2478
2477
|
return u(), m("iam-address-lookup", null, [
|
|
2479
2478
|
_(e.$slots, "default")
|
|
2480
2479
|
]);
|
|
2481
2480
|
}
|
|
2482
|
-
const no = /* @__PURE__ */
|
|
2481
|
+
const no = /* @__PURE__ */ y(Ti, [["render", Hi]]);
|
|
2483
2482
|
/*!
|
|
2484
|
-
* iamKey v5.1.0-
|
|
2483
|
+
* iamKey v5.1.0-beta4
|
|
2485
2484
|
* Copyright 2022-2023 iamproperty
|
|
2486
2485
|
*/
|
|
2487
2486
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "collapsible side menu" });
|
|
2488
2487
|
class Mi extends HTMLElement {
|
|
2489
2488
|
constructor() {
|
|
2490
2489
|
super(), this.attachShadow({ mode: "open" });
|
|
2491
|
-
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`,
|
|
2492
|
-
|
|
2490
|
+
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");
|
|
2491
|
+
i.innerHTML = `
|
|
2493
2492
|
<style class="styles">
|
|
2494
2493
|
@import "${t}";
|
|
2495
2494
|
: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 */
|
|
@@ -2511,11 +2510,11 @@ class Mi extends HTMLElement {
|
|
|
2511
2510
|
</div>
|
|
2512
2511
|
|
|
2513
2512
|
</div>
|
|
2514
|
-
`, this.shadowRoot.appendChild(
|
|
2513
|
+
`, this.shadowRoot.appendChild(i.content.cloneNode(!0));
|
|
2515
2514
|
}
|
|
2516
2515
|
connectedCallback() {
|
|
2517
|
-
const a = this.shadowRoot.querySelector(".side-menu"), t = this.shadowRoot.querySelector(".side-menu-content"),
|
|
2518
|
-
this.hasAttribute("data-css") && this.shadowRoot.querySelector(".styles").insertAdjacentHTML("beforeend", `@import "${this.getAttribute("data-css")}";`), this.hasAttribute("data-title") || this.setAttribute("data-title", "configuration"), t.insertAdjacentHTML("afterbegin", `<span class="h3">${this.getAttribute("data-title")}</span>`),
|
|
2516
|
+
const a = this.shadowRoot.querySelector(".side-menu"), t = this.shadowRoot.querySelector(".side-menu-content"), i = this.shadowRoot.querySelector(".main-content"), s = this.shadowRoot.querySelector(".side-menu > .btn");
|
|
2517
|
+
this.hasAttribute("data-css") && this.shadowRoot.querySelector(".styles").insertAdjacentHTML("beforeend", `@import "${this.getAttribute("data-css")}";`), this.hasAttribute("data-title") || this.setAttribute("data-title", "configuration"), t.insertAdjacentHTML("afterbegin", `<span class="h3">${this.getAttribute("data-title")}</span>`), i.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")), s.addEventListener("click", (n) => {
|
|
2519
2518
|
a.classList.contains("open") ? (a.classList.remove("open"), s.removeAttribute("aria-expanded"), setTimeout(function() {
|
|
2520
2519
|
t.classList.add("closed");
|
|
2521
2520
|
}, 1e3), a.classList.add("pe-none"), setTimeout(function() {
|
|
@@ -2541,12 +2540,12 @@ const ji = {
|
|
|
2541
2540
|
mounted() {
|
|
2542
2541
|
}
|
|
2543
2542
|
};
|
|
2544
|
-
function Ci(e, a, t,
|
|
2543
|
+
function Ci(e, a, t, i, s, n) {
|
|
2545
2544
|
return u(), m("iam-collapsible-side", null, [
|
|
2546
2545
|
_(e.$slots, "default")
|
|
2547
2546
|
]);
|
|
2548
2547
|
}
|
|
2549
|
-
const ro = /* @__PURE__ */
|
|
2548
|
+
const ro = /* @__PURE__ */ y(ji, [["render", Ci]]);
|
|
2550
2549
|
export {
|
|
2551
2550
|
Fi as Accordion,
|
|
2552
2551
|
Pi as AccordionItem,
|