@iamproperty/components 5.1.0-beta → 5.1.0-beta10
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/accordion.global.css.map +1 -1
- package/assets/css/components/card.css +1 -1
- package/assets/css/components/card.css.map +1 -1
- package/assets/css/components/carousel.css +1 -1
- package/assets/css/components/carousel.css.map +1 -1
- package/assets/css/components/component.native.css +1 -1
- package/assets/css/components/component.native.css.map +1 -1
- package/assets/css/components/component.reset.css +1 -1
- package/assets/css/components/component.reset.css.map +1 -1
- package/assets/css/components/fileupload.css +1 -1
- package/assets/css/components/fileupload.css.map +1 -1
- package/assets/css/components/header.css +1 -1
- package/assets/css/components/header.css.map +1 -1
- package/assets/css/components/marketing.css +1 -0
- package/assets/css/components/marketing.css.map +1 -0
- package/assets/css/components/nav.css +1 -1
- package/assets/css/components/nav.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/components/pagination.css +1 -1
- package/assets/css/components/pagination.css.map +1 -1
- package/assets/css/components/slider.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/img/signin-bg.png +0 -0
- 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.js +2 -1
- package/assets/js/components/card/card.component.min.js +4 -3
- package/assets/js/components/card/card.component.min.js.map +1 -1
- package/assets/js/components/carousel/carousel.component.js +61 -0
- package/assets/js/components/collapsible-side/collapsible-side.component.min.js +1 -1
- package/assets/js/components/fileupload/fileupload.component.min.js +2 -2
- package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
- package/assets/js/components/header/header.component.js +6 -12
- package/assets/js/components/header/header.component.min.js +8 -14
- package/assets/js/components/header/header.component.min.js.map +1 -1
- package/assets/js/components/marketing/marketing.component.js +37 -0
- package/assets/js/components/nav/nav.component.js +4 -36
- package/assets/js/components/nav/nav.component.min.js +10 -13
- 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 +2 -2
- 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.js +1 -1
- package/assets/js/dynamic.min.js +3 -3
- package/assets/js/dynamic.min.js.map +1 -1
- package/assets/js/modules/carousel.js +15 -23
- package/assets/js/modules/dynamicEvents.js +28 -13
- package/assets/js/modules/helpers.js +3 -0
- package/assets/js/modules/table.js +8 -6
- package/assets/js/scripts.bundle.js +20 -25
- 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/_corefiles.scss +1 -0
- package/assets/sass/_elements.scss +1 -1
- package/assets/sass/_functions/mixins.scss +16 -0
- package/assets/sass/_functions/utilities.scss +0 -17
- package/assets/sass/_functions/variables.scss +1 -0
- package/assets/sass/components/card.scss +23 -3
- package/assets/sass/components/carousel.scss +86 -159
- package/assets/sass/components/component.native.scss +86 -3
- package/assets/sass/components/fileupload.scss +1 -1
- package/assets/sass/components/header.scss +53 -55
- package/assets/sass/components/marketing.scss +64 -0
- package/assets/sass/components/nav.global.scss +2 -1
- package/assets/sass/components/nav.scss +7 -1
- package/assets/sass/components/pagination.scss +4 -0
- package/assets/sass/elements/admin-panel.scss +9 -7
- package/assets/sass/elements/badge.scss +29 -0
- package/assets/sass/elements/dialog.scss +4 -4
- package/assets/sass/elements/forms.scss +4 -4
- package/assets/sass/elements/links.scss +2 -1
- package/assets/sass/foundations/reboot.scss +12 -13
- package/assets/sass/foundations/root.scss +11 -3
- package/assets/sass/helpers/max-height.scss +78 -4
- package/assets/sass/templates/auth.scss +112 -0
- package/assets/ts/components/address-lookup/address-lookup.component.ts +23 -4
- package/assets/ts/components/card/card.component.ts +2 -1
- package/assets/ts/components/carousel/README.md +39 -0
- package/assets/ts/components/carousel/carousel.component.ts +75 -0
- package/assets/ts/components/header/header.component.ts +6 -12
- package/assets/ts/components/marketing/marketing.component.ts +49 -0
- 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/dynamic.ts +1 -1
- package/assets/ts/modules/carousel.ts +21 -33
- package/assets/ts/modules/dynamicEvents.ts +44 -24
- package/assets/ts/modules/helpers.ts +7 -1
- package/assets/ts/modules/table.ts +11 -14
- package/dist/components.es.js +744 -949
- package/dist/components.umd.js +107 -101
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Carousel/Carousel.vue +18 -103
- package/src/components/Header/Header.vue +1 -3
- package/src/components/Marketing/Marketing.vue +39 -0
- package/src/components/Marketing/README.md +20 -0
- package/src/components/Nav/README.md +1 -12
- package/src/components/Search/Search.vue +25 -0
- package/src/components/Carousel/Carousel.spec.js +0 -45
package/dist/components.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
const
|
|
1
|
+
import { openBlock as m, createElementBlock as h, normalizeClass as L, createElementVNode as f, toDisplayString as $, createCommentVNode as _, Fragment as D, renderList as R, renderSlot as v, withDirectives as P, mergeProps as C, vModelDynamic as W, vModelText as ht, vModelSelect as pt, createTextVNode as bt, resolveComponent as K, createVNode as M, 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",
|
|
@@ -29,145 +29,145 @@ const v = (e, a) => {
|
|
|
29
29
|
return "brand brand--" + this.id;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
}, yt = ["xlink:href"],
|
|
33
|
-
function
|
|
34
|
-
return
|
|
35
|
-
class:
|
|
32
|
+
}, yt = ["xlink:href"], wt = ["innerHTML"];
|
|
33
|
+
function vt(e, a, t, i, s, o) {
|
|
34
|
+
return m(), h("div", {
|
|
35
|
+
class: L(o.className)
|
|
36
36
|
}, [
|
|
37
|
-
(
|
|
37
|
+
(m(), h("svg", null, [
|
|
38
38
|
f("title", null, "iam " + $(t.id), 1),
|
|
39
39
|
f("use", {
|
|
40
|
-
"xlink:href": t.path +
|
|
40
|
+
"xlink:href": t.path + o.src
|
|
41
41
|
}, null, 8, yt)
|
|
42
42
|
])),
|
|
43
|
-
t.desc ? (
|
|
43
|
+
t.desc ? (m(), h("span", {
|
|
44
44
|
key: 0,
|
|
45
45
|
innerHTML: t.desc
|
|
46
|
-
}, null, 8,
|
|
46
|
+
}, null, 8, wt)) : _("", !0)
|
|
47
47
|
], 2);
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const Li = /* @__PURE__ */ y(gt, [["render", vt]]);
|
|
50
50
|
/*!
|
|
51
|
-
* iamKey v5.1.0-
|
|
51
|
+
* iamKey v5.1.0-beta10
|
|
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
|
-
},
|
|
57
|
-
var kt = function(e, a, t,
|
|
58
|
-
function s(
|
|
59
|
-
return
|
|
60
|
-
|
|
56
|
+
}, xt = (e, a) => String(e).padStart(a, "0"), At = (e) => e.charAt(0).toUpperCase() + e.slice(1), j = (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
|
+
function s(o) {
|
|
59
|
+
return o instanceof t ? o : new t(function(n) {
|
|
60
|
+
n(o);
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
return new (t || (t = Promise))(function(
|
|
63
|
+
return new (t || (t = Promise))(function(o, n) {
|
|
64
64
|
function l(p) {
|
|
65
65
|
try {
|
|
66
|
-
r(
|
|
66
|
+
r(i.next(p));
|
|
67
67
|
} catch (c) {
|
|
68
|
-
|
|
68
|
+
n(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
|
+
n(c);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
function r(p) {
|
|
79
|
-
p.done ?
|
|
79
|
+
p.done ? o(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,
|
|
87
|
-
const s = Array.from(t.querySelectorAll("th, td")),
|
|
88
|
-
s.forEach((
|
|
86
|
+
Array.from(e.querySelectorAll("tbody tr")).forEach((t, i) => {
|
|
87
|
+
const s = Array.from(t.querySelectorAll("th, td")), o = ["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((n, 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
|
+
n.setAttribute("data-label", p), d.hasAttribute("data-td-class") && n.setAttribute("class", d.getAttribute("data-td-class")), d.hasAttribute("data-format") && (n.setAttribute("data-format", d.getAttribute("data-format")), n.innerHTML = Y(d.getAttribute("data-format"), n.textContent.trim())), o.includes(n.textContent.trim().toLowerCase()) && n.setAttribute("data-content", n.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,
|
|
101
|
-
let s = window.getComputedStyle(document.querySelector("html")),
|
|
102
|
-
if (
|
|
103
|
-
|
|
104
|
-
let
|
|
105
|
-
|
|
100
|
+
return Array.from(e.querySelectorAll("tbody tr")).forEach((t, i) => {
|
|
101
|
+
let s = window.getComputedStyle(document.querySelector("html")), o = t.querySelector(":scope > *:last-child > *:first-child");
|
|
102
|
+
if (o) {
|
|
103
|
+
o.classList.add("text-nowrap");
|
|
104
|
+
let n = o.offsetWidth / parseFloat(s.fontSize);
|
|
105
|
+
n += 1.7, a = a > n ? a : n;
|
|
106
106
|
}
|
|
107
107
|
}), a;
|
|
108
|
-
},
|
|
109
|
-
if (a.classList.contains("
|
|
108
|
+
}, $t = (e, a) => {
|
|
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,
|
|
112
|
-
t.insertAdjacentHTML("afterbegin", '<th class="th--fixed expand-button-heading"></th>');
|
|
113
|
-
}), Array.from(e.querySelectorAll("tbody tr")).forEach((t,
|
|
111
|
+
Array.from(e.querySelectorAll("thead tr")).forEach((t, i) => {
|
|
112
|
+
e.querySelectorAll("thead tr th.expand-button-heading").length || t.insertAdjacentHTML("afterbegin", '<th class="th--fixed expand-button-heading"></th>');
|
|
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
|
+
}, St = (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
|
|
128
|
+
const i = t.getAttribute("id"), s = t.getAttribute("data-search").split(",");
|
|
129
|
+
let o = t.parentNode, n = {};
|
|
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") ? n[r.querySelector(".td__content").textContent] = r.querySelector(".td__content").textContent : n[r.textContent] = r.textContent;
|
|
133
133
|
});
|
|
134
|
-
}), t.setAttribute("list", `${
|
|
135
|
-
}, qt = (e, a, t,
|
|
136
|
-
var
|
|
137
|
-
let
|
|
134
|
+
}), t.setAttribute("list", `${i}_list`), t.setAttribute("autocomplete", "off"), o.querySelector("datalist") || (o.innerHTML += `<datalist id="${i}_list"></datalist>`), o.querySelector("datalist").innerHTML = `${Object.keys(n).map((l) => `<option value="${l}"></option>`).join("")}`;
|
|
135
|
+
}, qt = (e, a, t, i, s) => {
|
|
136
|
+
var o;
|
|
137
|
+
let n = 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 (
|
|
140
|
+
if (r.type == "submit" && (a.classList.add("processing"), Array.from(a.querySelectorAll("[data-duplicate]")).forEach((c, u) => {
|
|
141
|
+
const g = c.getAttribute("data-duplicate"), b = document.getElementById(g), x = document.querySelector(`[for="${g}"] iam-card`);
|
|
142
|
+
if (b.checked != c.checked)
|
|
143
143
|
if (x) {
|
|
144
|
-
let
|
|
145
|
-
x.dispatchEvent(
|
|
144
|
+
let S = new Event("click");
|
|
145
|
+
x.dispatchEvent(S);
|
|
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
|
-
|
|
153
|
+
nt(e, a, t, i);
|
|
154
154
|
} else
|
|
155
|
-
a.hasAttribute("data-submit") ? a.submit() : (
|
|
155
|
+
a.hasAttribute("data-submit") ? a.submit() : (G(e, a, i), B(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), u = new URLSearchParams(c).toString();
|
|
158
|
+
const g = new XMLHttpRequest();
|
|
159
|
+
g.open("GET", `${window.location.href}?ajax=true&${u}`), g.send();
|
|
160
160
|
}
|
|
161
161
|
};
|
|
162
162
|
a.addEventListener("keyup", (r) => {
|
|
163
|
-
clearTimeout(
|
|
164
|
-
|
|
163
|
+
clearTimeout(o), r && r.target instanceof HTMLElement && r.target.closest("[data-search]") && (o = setTimeout(function() {
|
|
164
|
+
n(r);
|
|
165
165
|
}, 500));
|
|
166
166
|
}), a.addEventListener("change", (r) => {
|
|
167
|
-
clearTimeout(
|
|
167
|
+
clearTimeout(o), r && r.target instanceof HTMLElement && r.target.closest("[data-sort]") && (a.hasAttribute("data-submit") || Q(e, a, s), n(r)), r && r.target instanceof HTMLElement && r.target.closest("[data-search]") && n(r), r && r.target instanceof HTMLElement && r.target.closest("[data-filter][data-no-ajax]") ? (G(e, a, i), B(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")) && n(r), r && r.target instanceof HTMLElement && r.target.closest("[data-show]") && n(r), r && r.target instanceof HTMLElement && r.target.closest("[data-mimic]") && n(r);
|
|
168
168
|
}), a.addEventListener("click", (r) => {
|
|
169
|
-
if (clearTimeout(
|
|
170
|
-
a.classList.add("processing"), Array.from(a.querySelectorAll(".applied-filters")).forEach((c,
|
|
169
|
+
if (clearTimeout(o), 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, u) => {
|
|
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 x =
|
|
187
|
-
x.dispatchEvent(
|
|
184
|
+
let u = p[c], g = u.getAttribute("id"), b = document.querySelector(`[for="${g}"`);
|
|
185
|
+
if (b.querySelector("iam-card")) {
|
|
186
|
+
let x = b.querySelector("iam-card"), S = new Event("click");
|
|
187
|
+
x.dispatchEvent(S);
|
|
188
188
|
}
|
|
189
|
-
|
|
189
|
+
u.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), n(r);
|
|
198
198
|
}
|
|
199
199
|
}), a.addEventListener("submit", (r) => {
|
|
200
|
-
clearTimeout(
|
|
200
|
+
clearTimeout(o), a.hasAttribute("data-submit") || r.preventDefault(), n(r);
|
|
201
201
|
}), a.addEventListener("force", (r) => {
|
|
202
|
-
|
|
202
|
+
n(r);
|
|
203
203
|
}), a.addEventListener("paginate", (r) => {
|
|
204
|
-
|
|
204
|
+
n(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((u, g) => {
|
|
210
|
+
let b = u.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
|
|
215
|
+
let u = [], g = new FormData(r);
|
|
216
|
+
for (const [b, x] of g)
|
|
217
|
+
document.querySelector(`[data-mimic="${b}"]`) && !u.includes(b) ? (u.push(b), document.querySelector(`[data-mimic="${b}"]`).value = x) : document.querySelector(`[data-mimic="${b}"]`) && (document.querySelector(`[data-mimic="${b}"]`).value += "," + x);
|
|
218
|
+
for (const b of u) {
|
|
219
219
|
const x = new Event("force");
|
|
220
220
|
a.dispatchEvent(x);
|
|
221
221
|
}
|
|
222
|
-
for (const
|
|
223
|
-
if (!
|
|
224
|
-
document.querySelector(`[data-mimic="${
|
|
222
|
+
for (const b of d)
|
|
223
|
+
if (!g.has(b) && r.querySelector(`[name="${b}"]`)) {
|
|
224
|
+
document.querySelector(`[data-mimic="${b}"]`).value = "";
|
|
225
225
|
const x = new Event("force");
|
|
226
226
|
a.dispatchEvent(x);
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
|
-
r.addEventListener("force", (
|
|
229
|
+
r.addEventListener("force", (u) => {
|
|
230
230
|
c();
|
|
231
|
-
}), r.addEventListener("change", (
|
|
231
|
+
}), r.addEventListener("change", (u) => {
|
|
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]"), o = s.querySelector(`option:nth-child(${s.selectedIndex + 1})`), n = o.getAttribute("data-sort"), l = o.getAttribute("data-order"), d = o.getAttribute("data-format");
|
|
239
|
+
if (!n)
|
|
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 x = { index:
|
|
244
|
+
Array.from(i.querySelectorAll("tr")).forEach((u, g) => {
|
|
245
|
+
let b = u.querySelector('td[data-label="' + n + '"], th[data-label="' + n + '"]').textContent.trim();
|
|
246
|
+
u.querySelector('[data-label="' + n + '"] .td__content') && (b = u.querySelector('[data-label="' + n + '"] .td__content').textContent.trim()), r.length && r.includes(b) && (b = r.indexOf(b)), _t(b) && (b = xt(b, 10)), d && d == "date" && (b = new Date(b));
|
|
247
|
+
const x = { index: b, row: u };
|
|
248
248
|
p.push(x);
|
|
249
|
-
}), p.sort((
|
|
249
|
+
}), p.sort((u, g) => u.index > g.index ? 1 : -1), (l == "descending" || l == "desc") && (p = p.reverse());
|
|
250
250
|
let c = "";
|
|
251
|
-
p.forEach((
|
|
252
|
-
c +=
|
|
253
|
-
}),
|
|
254
|
-
},
|
|
251
|
+
p.forEach((u, g) => {
|
|
252
|
+
c += u.row.outerHTML;
|
|
253
|
+
}), i.innerHTML = c;
|
|
254
|
+
}, G = (e, a, t) => {
|
|
255
255
|
e.classList.remove("table--filtered");
|
|
256
|
-
let
|
|
256
|
+
let i = it(a), s = [], o = 0, n = 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 (
|
|
274
|
+
for (const [r, p] of Object.entries(i))
|
|
275
|
+
Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((c, u) => {
|
|
276
|
+
let g = !1;
|
|
277
|
+
p.forEach((b, x) => {
|
|
278
|
+
let S = c.querySelector(`[data-label="${r}"]`);
|
|
279
|
+
if (b && b == "$today")
|
|
280
|
+
b = Y("date", /* @__PURE__ */ new Date());
|
|
281
|
+
else if (b && b == "$yesterday") {
|
|
282
282
|
let A = /* @__PURE__ */ new Date();
|
|
283
|
-
A.setDate(A.getDate() - 1),
|
|
284
|
-
} else if (
|
|
285
|
-
let A = /* @__PURE__ */ new Date(),
|
|
286
|
-
if (A.setHours(0, 0, 0, 0),
|
|
287
|
-
|
|
283
|
+
A.setDate(A.getDate() - 1), b = Y("date", A);
|
|
284
|
+
} else if (b && (b == "$thisWeek" || b == "$lastWeek")) {
|
|
285
|
+
let A = /* @__PURE__ */ new Date(), k = new Date(A.setDate(A.getDate() - (A.getDay() - 1))), w = new Date(A.setDate(A.getDate() - A.getDay() + 7)), q = new Date(S.textContent.toLowerCase());
|
|
286
|
+
if (A.setHours(0, 0, 0, 0), k.setHours(0, 0, 0, 0), w.setHours(0, 0, 0, 0), q.setHours(0, 0, 0, 0), b == "$thisWeek")
|
|
287
|
+
g = q >= k && q <= w;
|
|
288
288
|
else {
|
|
289
|
-
let
|
|
290
|
-
|
|
289
|
+
let E = new Date(k.setDate(k.getDate() - 7)), z = new Date(w.setDate(w.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 A = /* @__PURE__ */ new Date(),
|
|
294
|
-
var
|
|
295
|
-
let
|
|
296
|
-
|
|
297
|
-
} else if (
|
|
298
|
-
let A = /* @__PURE__ */ new Date(),
|
|
299
|
-
var
|
|
300
|
-
let
|
|
301
|
-
|
|
292
|
+
} else if (b && b == "$thisMonth") {
|
|
293
|
+
let A = /* @__PURE__ */ new Date(), k = A.getFullYear(), w = A.getMonth();
|
|
294
|
+
var T = new Date(k, w, 1), F = new Date(k, w + 1, 0);
|
|
295
|
+
let q = new Date(S.textContent.toLowerCase());
|
|
296
|
+
T.setHours(0, 0, 0, 0), F.setHours(0, 0, 0, 0), q.setHours(0, 0, 0, 0), g = q >= T && q <= F;
|
|
297
|
+
} else if (b && b == "$lastMonth") {
|
|
298
|
+
let A = /* @__PURE__ */ new Date(), k = A.getFullYear(), w = A.getMonth();
|
|
299
|
+
var I = new Date(k, w - 1, 1), H = new Date(k, w, 0);
|
|
300
|
+
let q = new Date(S.textContent.toLowerCase());
|
|
301
|
+
I.setHours(0, 0, 0, 0), H.setHours(0, 0, 0, 0), q.setHours(0, 0, 0, 0), g = q >= I && q <= H;
|
|
302
302
|
}
|
|
303
|
-
|
|
304
|
-
}),
|
|
303
|
+
S && S.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((u, g) => {
|
|
309
|
+
let b = r.querySelector(`[data-label="${u.column}"]`);
|
|
310
|
+
b && u.value.length >= 3 && b.textContent.toLowerCase().includes(u.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
|
-
|
|
314
|
-
}), t && (t.setAttribute("data-total",
|
|
315
|
-
},
|
|
316
|
-
Array.from(a.querySelectorAll("[data-query]")).forEach((
|
|
317
|
-
let
|
|
318
|
-
if (
|
|
319
|
-
t.hasAttribute("data-total") ?
|
|
320
|
-
else if (!
|
|
321
|
-
let l =
|
|
313
|
+
o++, r.classList.add("filtered--matched"), Math.ceil(o / l) == parseInt(n) && r.classList.add("filtered--show");
|
|
314
|
+
}), t && (t.setAttribute("data-total", o), t.setAttribute("data-show", l), t.setAttribute("data-page", n));
|
|
315
|
+
}, B = (e, a, t) => {
|
|
316
|
+
Array.from(a.querySelectorAll("[data-query]")).forEach((i, s) => {
|
|
317
|
+
let o = i.getAttribute("data-query"), n = 0;
|
|
318
|
+
if (o == "total")
|
|
319
|
+
t.hasAttribute("data-total") ? n = t.getAttribute("data-total") : n = (e.classList.contains("table--filtered"), e.querySelectorAll("tbody tr").length);
|
|
320
|
+
else if (!o.includes(" == ") && o.includes(" & ")) {
|
|
321
|
+
let l = o.split(" & "), d = "";
|
|
322
322
|
l.forEach((r) => {
|
|
323
323
|
d += `:not([data-filtered-by="${r}"])`;
|
|
324
|
-
}),
|
|
325
|
-
} else if (!
|
|
326
|
-
|
|
327
|
-
else if (
|
|
328
|
-
let l =
|
|
329
|
-
|
|
324
|
+
}), n = Array.from(e.querySelectorAll(`tbody tr${d}`)).length;
|
|
325
|
+
} else if (!o.includes(" == "))
|
|
326
|
+
n = Array.from(e.querySelectorAll(`tbody tr:not([data-filtered-by="${o}"])`)).length;
|
|
327
|
+
else if (o.includes(" && ")) {
|
|
328
|
+
let l = o.split(" && ");
|
|
329
|
+
n = 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 u = c.split(" == ");
|
|
333
|
+
(!d.querySelector(`td[data-label="${u[0]}"]`) || d.querySelector(`td[data-label="${u[0]}"]`).textContent != `${u[1]}`) && (r = !1);
|
|
334
334
|
}
|
|
335
335
|
return r;
|
|
336
336
|
}).length;
|
|
337
337
|
} else {
|
|
338
|
-
let l =
|
|
339
|
-
|
|
338
|
+
let l = o.split(" == ");
|
|
339
|
+
n = 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", n) : i.innerHTML = n;
|
|
344
344
|
});
|
|
345
|
-
}, Et = function(e, a, t,
|
|
345
|
+
}, Et = function(e, a, t, i) {
|
|
346
346
|
t.addEventListener("update-page", (s) => {
|
|
347
|
-
let
|
|
348
|
-
if (
|
|
347
|
+
let o = a.querySelector("[data-pagination]"), n = s.detail.page;
|
|
348
|
+
if (o.value = n, a.dispatchEvent(new Event("paginate")), i.setAttribute("data-page", n), e.hasAttribute("data-show-history")) {
|
|
349
349
|
const l = new URL(location);
|
|
350
|
-
l.searchParams.set("page",
|
|
350
|
+
l.searchParams.set("page", n), history.pushState({ type: "pagination", form: a.getAttribute("id"), page: n }, "", 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
|
|
358
|
-
|
|
357
|
+
let o = a.querySelector("[data-show]"), n = s.detail.show;
|
|
358
|
+
o.value = n, i.setAttribute("data-show", n), a.dispatchEvent(new Event("submit"));
|
|
359
359
|
});
|
|
360
360
|
}, Tt = (e, a) => {
|
|
361
361
|
if (!e)
|
|
@@ -364,10 +364,10 @@ 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
|
-
|
|
370
|
-
a.push(
|
|
367
|
+
for (var a = [], t = e.getElementsByTagName("tr"), i = 0; i < t.length; i++) {
|
|
368
|
+
for (var s = t[i].querySelectorAll("td,th"), o = [], n = 0; n < s.length; n++)
|
|
369
|
+
o.push(`"${s[n].textContent}"`);
|
|
370
|
+
a.push(o.join(","));
|
|
371
371
|
}
|
|
372
372
|
a = a.join(`
|
|
373
373
|
`);
|
|
@@ -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),
|
|
379
|
+
}, at = function(e, a, t, i) {
|
|
380
|
+
if (tt(e), $t(e, i), B(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((n, l) => {
|
|
383
|
+
let d = n.offsetHeight;
|
|
384
|
+
n.style.setProperty("--row-height", `${d}px`);
|
|
385
385
|
});
|
|
386
386
|
};
|
|
387
|
-
const
|
|
388
|
-
|
|
387
|
+
const o = Lt(e);
|
|
388
|
+
i.style.setProperty("--cta-width", `${o}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
|
-
},
|
|
398
|
+
}, nt = 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), o = new URLSearchParams(s).toString(), n = e.querySelectorAll("thead tr th:not(.expand-button-heading)"), 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((u, g) => {
|
|
404
|
+
u.innerHTML = "", u.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((u, g) => {
|
|
408
|
+
typeof u == "object" && Object.values(u).length ? p += Object.values(u).length : p++;
|
|
409
|
+
}), p && Array.from(a.querySelectorAll("[data-filter-count]")).forEach((u, g) => {
|
|
410
|
+
u.innerHTML += `(${p})`, u.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
|
|
425
|
-
|
|
426
|
-
return
|
|
415
|
+
yield fetch(d + "?" + o, { signal: c, method: "get", credentials: "same-origin", headers: new Headers({ "Content-Type": "application/json", Accept: "application/json", "X-Requested-With": "XMLHttpRequest" }) }).then((u) => u.json()).then((u) => {
|
|
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", x = a.hasAttribute("data-schema-page") ? a.getAttribute("data-schema-page") : "meta.current_page", S = j(u, b, 15), T = j(u, x, 1), F = j(u, g), I = i.hasAttribute("data-empty-msg") ? i.getAttribute("data-empty-msg") : "No results found";
|
|
417
|
+
F ? (l.innerHTML = "", F.forEach((H, A) => {
|
|
418
|
+
var k = document.createElement("tr");
|
|
419
|
+
n.forEach((w, q) => {
|
|
420
|
+
let E = "";
|
|
421
|
+
var z = document.createElement("td");
|
|
422
|
+
if (z.setAttribute("data-label", w.innerText), w.getAttribute("data-output")) {
|
|
423
|
+
var U = w.getAttribute("data-output");
|
|
424
|
+
E = U.replace(new RegExp(/{(.*?)}/, "gm"), function(dt) {
|
|
425
|
+
return j(H, dt.replace("{", "").replace("}", ""));
|
|
427
426
|
});
|
|
428
427
|
}
|
|
429
|
-
if (
|
|
430
|
-
var
|
|
431
|
-
let ct =
|
|
432
|
-
|
|
433
|
-
let ut =
|
|
434
|
-
if (
|
|
435
|
-
const
|
|
436
|
-
|
|
428
|
+
if (w.hasAttribute("data-output-array")) {
|
|
429
|
+
var U = w.getAttribute("data-output");
|
|
430
|
+
let ct = j(H, U.replace("{", "").replace("}", ""));
|
|
431
|
+
E = "", ct.forEach((J, Ai) => {
|
|
432
|
+
let ut = w.getAttribute("data-output-array"), O = "";
|
|
433
|
+
if (w.hasAttribute("data-output-array-property") && w.hasAttribute("data-output-array-transform")) {
|
|
434
|
+
const V = j(J, w.getAttribute("data-output-array-property")), mt = JSON.parse(w.getAttribute("data-output-array-transform"))[V];
|
|
435
|
+
O = ut.replace(`{${w.getAttribute("data-output-array-property")}}`, mt);
|
|
437
436
|
}
|
|
438
|
-
|
|
439
|
-
return
|
|
440
|
-
}),
|
|
437
|
+
O = O.replace(new RegExp(/{(.*?)}/, "gm"), function(V) {
|
|
438
|
+
return j(J, V.replace("{", "").replace("}", ""));
|
|
439
|
+
}), E += O;
|
|
441
440
|
});
|
|
442
441
|
}
|
|
443
|
-
|
|
444
|
-
}),
|
|
445
|
-
}), et(e, a),
|
|
446
|
-
let
|
|
447
|
-
|
|
448
|
-
}), parseInt(
|
|
442
|
+
w.hasAttribute("data-transform") && (E = JSON.parse(w.getAttribute("data-transform"))[E], !E && w.hasAttribute("data-default") && (E = w.getAttribute("data-default"))), z.innerHTML = E, k.appendChild(z);
|
|
443
|
+
}), l.appendChild(k);
|
|
444
|
+
}), et(e, a), i.setAttribute("data-total", parseInt(S)), i.setAttribute("data-page", parseInt(T)), at(e, a, t, i), Array.from(a.querySelectorAll("[data-ajax-query]")).forEach((H, A) => {
|
|
445
|
+
let k = j(u, H.getAttribute("data-ajax-query"), "");
|
|
446
|
+
H.hasAttribute("data-total") ? H.setAttribute("data-total", k) : H.innerHTML = k;
|
|
447
|
+
}), parseInt(S) == 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: o })) : 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 (u) {
|
|
450
|
+
console.log(u);
|
|
452
451
|
}
|
|
453
452
|
});
|
|
454
453
|
}, Y = (e, a) => {
|
|
@@ -458,14 +457,14 @@ const tt = (e) => {
|
|
|
458
457
|
case "date":
|
|
459
458
|
return new Date(a).toLocaleDateString("en-gb", { year: "2-digit", month: "long", day: "numeric" });
|
|
460
459
|
case "capitalise":
|
|
461
|
-
return a =
|
|
460
|
+
return a = At(a);
|
|
462
461
|
}
|
|
463
462
|
};
|
|
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,85 +489,85 @@ 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() {
|
|
497
496
|
const a = new URLSearchParams(window.location.search);
|
|
498
497
|
this.hasAttribute("data-total") || this.setAttribute("data-total", this.querySelectorAll("table tbody tr").length), this.hasAttribute("data-page") || this.setAttribute("data-page", a.has("page") ? a.get("page") : 1), this.hasAttribute("data-show") || this.setAttribute("data-show", a.has("show") ? a.get("show") : 15), this.hasAttribute("data-increment") || this.setAttribute("data-increment", this.getAttribute("data-show"));
|
|
499
498
|
let t = this.classList.toString();
|
|
500
|
-
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" />`),
|
|
501
|
-
|
|
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" />`), St(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"))
|
|
500
|
+
nt(this.table, this.form, this.pagination, this);
|
|
502
501
|
else {
|
|
503
|
-
let
|
|
504
|
-
return Math.floor(Math.random() * Date.now() * (
|
|
502
|
+
let i = function(o = 1) {
|
|
503
|
+
return Math.floor(Math.random() * Date.now() * (o + 1));
|
|
505
504
|
};
|
|
506
505
|
if (this.querySelector("iam-actionbar[data-selectall]")) {
|
|
507
|
-
const
|
|
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 (
|
|
506
|
+
const o = this.querySelector("iam-actionbar[data-selectall]");
|
|
507
|
+
Array.from(this.table.querySelectorAll("thead tr")).forEach((n, l) => {
|
|
508
|
+
n.insertAdjacentHTML("afterbegin", '<th class="th--fixed"></th>');
|
|
509
|
+
}), Array.from(this.table.querySelectorAll("tbody tr")).forEach((n, l) => {
|
|
510
|
+
let d = `row${i(l)}`;
|
|
511
|
+
n.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", (n) => {
|
|
513
|
+
if (n && n.target instanceof HTMLElement && n.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
|
+
o.setAttribute("data-selected", l == d ? "all" : d);
|
|
517
516
|
}
|
|
518
|
-
}),
|
|
519
|
-
|
|
517
|
+
}), o.addEventListener("selected", (n) => {
|
|
518
|
+
n.detail.selected == "0" ? Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((l, d) => {
|
|
520
519
|
l.checked = !1;
|
|
521
|
-
}) :
|
|
520
|
+
}) : n.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((
|
|
528
|
-
if (
|
|
529
|
-
let l =
|
|
526
|
+
Array.from(this.table.querySelectorAll("tbody tr")).forEach((o, n) => {
|
|
527
|
+
if (o.querySelector(":scope > td > .dialog__wrapper")) {
|
|
528
|
+
let l = o.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((
|
|
533
|
-
|
|
534
|
-
})), at(this.table, this.form, this.pagination, this),
|
|
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((o, n) => {
|
|
532
|
+
o.classList.add("td--fixed");
|
|
533
|
+
})), at(this.table, this.form, this.pagination, this), G(this.table, this.form, this), B(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-beta10
|
|
562
561
|
* Copyright 2022-2023 iamproperty
|
|
563
562
|
*/
|
|
564
|
-
class
|
|
563
|
+
class ot 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
|
-
: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 */
|
|
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}.pagination div:is(.page-jump,.per-page) div:has(>select){margin-bottom:0}.page-jump{border-right:none !important}.total-pages{white-space:nowrap}:host([data-page-jump][data-minimal]) .page-jump{display:flex !important}@container (width > 23.4375em){:host([data-page-jump]) .page-jump{display:flex !important}}@container (width > 23.4375em){:host([data-per-page]:not([data-page-jump][data-item-count])) .per-page{display:flex !important}}@container (width > 48em){:host([data-per-page][data-page-jump][data-item-count]) .per-page{display:flex !important}}.pagination>.item-count{display:block;text-align:center;margin-bottom:1rem;margin-inline:auto}@container (width > 23.4375em){.pagination>.item-count{display:none}:host([data-item-count]) .pagination>.item-count{display:flex !important;margin:0}}*:where(.prev,.next){border:1px solid var(--colour-light);line-height:3.25rem;height:3.25rem;margin:0;display:none;background:none;padding-inline:1rem}@container (width > 23.4375em){*:where(.prev,.next){display:inline-block}}*:where(.prev,.next):after{margin-left:.5em;font-size:.8rem;content:"";font-family:"Font Awesome 6 Pro";color:var(--colour-info)}*:where(.prev,.next):is(:hover,:focus):not(:disabled){background-color:var(--colour-light)}*:where(.prev,.next):is(:active):not(:disabled){background-color:#e0e0e0}@media screen and (prefers-color-scheme: dark){*:where(.prev,.next):is(:hover,:focus):not(:disabled){background-color:var(--colour-canvas)}*:where(.prev,.next):is(:active):not(:disabled){background-color:var(--colour-canvas)}}*:where(.prev,.next):disabled:after,*:where(.prev,.next):disabled:before{color:inherit !important}:host([data-minimal]) .pagination{justify-content:flex-end}@container (width > 23.4375em){:host([data-minimal]) .pagination{justify-content:space-between}}:host([data-minimal]) *:where(.prev,.next){display:inline-block !important}.prev{border-right:none}.prev:after{display:none}.prev:before{margin-right:.5em;font-size:.8rem;content:"";font-family:"Font Awesome 6 Pro";color:var(--colour-info)}.mobile-controls{display:block}:host([data-minimal]) .pagination{padding-top:1.5rem;display:flex;align-items:center;justify-content:flex-end}:host([data-minimal]) *:is(.mobile-controls,.item-count){display:none}@container (width > 23.4375em){.mobile-controls{display:none !important}:host([data-item-count]) .item-count{display:flex !important}}.fa-spin{display:none !important;font-size:3rem;color:var(--colour-info)}:host([data-loading]) .mobile-controls{padding-top:2rem}:host([data-loading]) .item-count,:host([data-loading]) .mobile-controls>*:not(.fa-spin){display:none !important}:host([data-loading]) .fa-spin{display:block !important;margin:auto}/*# sourceMappingURL=assets/css/components/pagination.css.map */
|
|
572
571
|
|
|
573
572
|
|
|
574
573
|
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
@@ -603,67 +602,67 @@ 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"), o = this.shadowRoot.querySelector(".per-page select"), n = 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
|
+
}), o.addEventListener("change", (l) => {
|
|
619
618
|
this.setAttribute("data-increment", l.target.value);
|
|
620
|
-
}),
|
|
619
|
+
}), n.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")) && n.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"), o = this.shadowRoot.querySelector(".item-count"), n = 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")), u = 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
|
-
|
|
634
|
-
const
|
|
635
|
-
c &&
|
|
627
|
+
let g = "";
|
|
628
|
+
for (let T = 1; T <= u; T++)
|
|
629
|
+
g += `<option value="${T}" ${T == d ? "selected" : ""}>${T}</option>`;
|
|
630
|
+
t.innerHTML = g, l.innerHTML = `of ${u}`, d == u ? 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, x = d == 1 ? p : d * p;
|
|
632
|
+
o.innerHTML = `${b} - ${x > r ? r : x} of ${r} items`;
|
|
633
|
+
const S = [15, 25, 40, 50];
|
|
634
|
+
c && n.value != c && !S.includes(c) && (n.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>`), n.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
|
}
|
|
662
661
|
}
|
|
663
662
|
}
|
|
664
|
-
const jt = (e) => e.charAt(0).toUpperCase() + e.slice(1), Ct = (e) => e.replace(/_/g, " "),
|
|
665
|
-
return e = e.toLowerCase(), e =
|
|
666
|
-
},
|
|
663
|
+
const jt = (e) => e.charAt(0).toUpperCase() + e.slice(1), Ct = (e) => e.replace(/_/g, " "), Dt = (e) => e.replace(/ /g, "_"), Rt = function(e) {
|
|
664
|
+
return e = e.toLowerCase(), e = Dt(e), e = e.replace(/\W/g, ""), e;
|
|
665
|
+
}, Nt = {
|
|
667
666
|
name: "Table",
|
|
668
667
|
props: {
|
|
669
668
|
items: {
|
|
@@ -682,37 +681,37 @@ const jt = (e) => e.charAt(0).toUpperCase() + e.slice(1), Ct = (e) => e.replace(
|
|
|
682
681
|
},
|
|
683
682
|
created() {
|
|
684
683
|
this.$nextTick(function() {
|
|
685
|
-
window.customElements.get("iam-table") || window.customElements.define("iam-table", Mt), window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination",
|
|
684
|
+
window.customElements.get("iam-table") || window.customElements.define("iam-table", Mt), window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination", ot);
|
|
686
685
|
});
|
|
687
686
|
},
|
|
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,
|
|
692
|
-
return
|
|
693
|
-
t.fields ? (
|
|
690
|
+
function Ot(e, a, t, i, s, o) {
|
|
691
|
+
return m(), h("iam-table", null, [
|
|
692
|
+
t.fields ? (m(), h("table", zt, [
|
|
694
693
|
f("thead", null, [
|
|
695
694
|
f("tr", null, [
|
|
696
|
-
(
|
|
697
|
-
key:
|
|
698
|
-
}, $(
|
|
695
|
+
(m(!0), h(D, null, R(t.fields, (n) => (m(), h("th", {
|
|
696
|
+
key: n.key
|
|
697
|
+
}, $(o.cellHeading(n.key)), 1))), 128))
|
|
699
698
|
])
|
|
700
699
|
]),
|
|
701
|
-
t.items ? (
|
|
702
|
-
(
|
|
700
|
+
t.items ? (m(), h("tbody", Ft, [
|
|
701
|
+
(m(!0), h(D, null, R(t.items, (n, l) => (m(), h("tr", {
|
|
703
702
|
key: l,
|
|
704
|
-
"data-row-id":
|
|
703
|
+
"data-row-id": n.rowid
|
|
705
704
|
}, [
|
|
706
|
-
(
|
|
705
|
+
(m(!0), h(D, null, R(Object.fromEntries(Object.entries(n).filter(([d]) => d !== "rowid")), (d, r) => (m(), h("td", {
|
|
707
706
|
key: r,
|
|
708
707
|
innerHTML: d
|
|
709
708
|
}, null, 8, It))), 128))
|
|
710
709
|
], 8, Pt))), 128))
|
|
711
|
-
])) :
|
|
712
|
-
])) :
|
|
710
|
+
])) : _("", !0)
|
|
711
|
+
])) : v(e.$slots, "default", { key: 1 })
|
|
713
712
|
]);
|
|
714
713
|
}
|
|
715
|
-
const rt = /* @__PURE__ */
|
|
714
|
+
const rt = /* @__PURE__ */ y(Nt, [["render", Ot]]), Bt = {
|
|
716
715
|
name: "Input",
|
|
717
716
|
props: {
|
|
718
717
|
value: {
|
|
@@ -900,187 +899,187 @@ const rt = /* @__PURE__ */ v(Dt, [["render", Ot]]), Bt = {
|
|
|
900
899
|
this.$emit("bus");
|
|
901
900
|
}
|
|
902
901
|
}
|
|
903
|
-
}, Ut = ["for", "innerHTML", "title"], Vt = ["innerHTML"], Wt = ["innerHTML"],
|
|
902
|
+
}, Ut = ["for", "innerHTML", "title"], Vt = ["innerHTML"], Wt = ["innerHTML"], Kt = ["type", "name", "id", "pattern", "list"], Gt = ["type", "name", "id", "pattern"], Yt = {
|
|
904
903
|
key: 5,
|
|
905
904
|
class: "input-group"
|
|
906
905
|
}, Xt = ["type", "name", "id", "pattern", "list"], Jt = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, Qt = {
|
|
907
906
|
key: 6,
|
|
908
907
|
class: "input-group"
|
|
909
|
-
}, Zt = ["type", "name", "id", "pattern", "list"], te = { class: "input-group-text flex-fill" }, ee = ["type", "name", "id", "pattern"], ae = ["value"], ie = ["type", "name", "id"],
|
|
910
|
-
function ce(e, a, t,
|
|
911
|
-
return
|
|
912
|
-
class:
|
|
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"], ne = ["for", "innerHTML"], oe = ["type", "name", "id"], re = ["for", "innerHTML"], se = ["innerHTML"], le = ["id"], de = ["value"];
|
|
909
|
+
function ce(e, a, t, i, s, o) {
|
|
910
|
+
return m(), h("div", {
|
|
911
|
+
class: L(o.wrapperClass()),
|
|
913
912
|
ref: "wrapper"
|
|
914
913
|
}, [
|
|
915
|
-
|
|
914
|
+
o.needsLabel() ? (m(), h("label", {
|
|
916
915
|
key: 0,
|
|
917
|
-
class:
|
|
916
|
+
class: L(`form-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
|
|
918
917
|
for: t.id,
|
|
919
|
-
innerHTML:
|
|
918
|
+
innerHTML: o.displayLabel(),
|
|
920
919
|
title: t.title
|
|
921
|
-
}, null, 10, Ut)) :
|
|
922
|
-
t.prefix ? (
|
|
920
|
+
}, null, 10, Ut)) : _("", !0),
|
|
921
|
+
t.prefix ? (m(), h("span", {
|
|
923
922
|
key: 1,
|
|
924
|
-
class:
|
|
923
|
+
class: L(`prefix ${this.prefixClass} ${t.size ? `prefix-${t.size}` : ""}`),
|
|
925
924
|
innerHTML: t.prefix,
|
|
926
925
|
role: "presentation"
|
|
927
|
-
}, null, 10, Vt)) :
|
|
928
|
-
t.suffix ? (
|
|
926
|
+
}, null, 10, Vt)) : _("", !0),
|
|
927
|
+
t.suffix ? (m(), h("span", {
|
|
929
928
|
key: 2,
|
|
930
|
-
class:
|
|
929
|
+
class: L(`suffix ${this.suffixClass} ${t.size ? `suffix-${t.size}` : ""}`),
|
|
931
930
|
innerHTML: t.suffix,
|
|
932
931
|
role: "presentation"
|
|
933
|
-
}, null, 10, Wt)) :
|
|
934
|
-
|
|
932
|
+
}, null, 10, Wt)) : _("", !0),
|
|
933
|
+
o.isInput() ? P((m(), h("input", C({
|
|
935
934
|
key: 3,
|
|
936
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
935
|
+
"onUpdate:modelValue": a[0] || (a[0] = (n) => o.inputVal = n),
|
|
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,
|
|
940
939
|
id: t.id,
|
|
941
|
-
pattern:
|
|
942
|
-
list:
|
|
940
|
+
pattern: o.needPattern(),
|
|
941
|
+
list: o.hasOptions()
|
|
943
942
|
}, e.$attrs, {
|
|
944
|
-
onKeyup: a[1] || (a[1] = (...
|
|
945
|
-
}), null, 16,
|
|
946
|
-
[
|
|
947
|
-
]) :
|
|
948
|
-
t.type == "textarea" ?
|
|
943
|
+
onKeyup: a[1] || (a[1] = (...n) => o.inputKeyup && o.inputKeyup(...n))
|
|
944
|
+
}), null, 16, Kt)), [
|
|
945
|
+
[W, o.inputVal]
|
|
946
|
+
]) : _("", !0),
|
|
947
|
+
t.type == "textarea" ? P((m(), h("textarea", C({
|
|
949
948
|
key: 4,
|
|
950
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
949
|
+
"onUpdate:modelValue": a[2] || (a[2] = (n) => o.inputVal = n),
|
|
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,
|
|
954
953
|
id: t.id,
|
|
955
|
-
pattern:
|
|
956
|
-
}, e.$attrs), null, 16,
|
|
957
|
-
[ht,
|
|
958
|
-
]) :
|
|
959
|
-
t.type == "range" ? (
|
|
960
|
-
|
|
961
|
-
"onUpdate:modelValue": a[3] || (a[3] = (
|
|
954
|
+
pattern: o.needPattern()
|
|
955
|
+
}, e.$attrs), null, 16, Gt)), [
|
|
956
|
+
[ht, o.inputVal]
|
|
957
|
+
]) : _("", !0),
|
|
958
|
+
t.type == "range" ? (m(), h("div", Yt, [
|
|
959
|
+
P(f("input", C({
|
|
960
|
+
"onUpdate:modelValue": a[3] || (a[3] = (n) => o.inputVal = n),
|
|
962
961
|
class: `form-range${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
963
962
|
type: t.type,
|
|
964
963
|
name: t.name ? t.name : t.id,
|
|
965
964
|
id: t.id,
|
|
966
|
-
pattern:
|
|
967
|
-
list:
|
|
965
|
+
pattern: o.needPattern(),
|
|
966
|
+
list: o.hasOptions()
|
|
968
967
|
}, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Xt), [
|
|
969
|
-
[
|
|
968
|
+
[W, o.inputVal]
|
|
970
969
|
]),
|
|
971
970
|
f("output", Jt, $(t.value), 1)
|
|
972
|
-
])) :
|
|
973
|
-
t.type == "color" ? (
|
|
974
|
-
|
|
975
|
-
"onUpdate:modelValue": a[4] || (a[4] = (
|
|
971
|
+
])) : _("", !0),
|
|
972
|
+
t.type == "color" ? (m(), h("div", Qt, [
|
|
973
|
+
P(f("input", C({
|
|
974
|
+
"onUpdate:modelValue": a[4] || (a[4] = (n) => o.inputVal = n),
|
|
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,
|
|
979
978
|
id: t.id,
|
|
980
|
-
pattern:
|
|
981
|
-
list:
|
|
979
|
+
pattern: o.needPattern(),
|
|
980
|
+
list: o.hasOptions()
|
|
982
981
|
}, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Zt), [
|
|
983
|
-
[
|
|
982
|
+
[W, o.inputVal]
|
|
984
983
|
]),
|
|
985
984
|
f("output", te, $(t.value ? e.vale : "#000000"), 1)
|
|
986
|
-
])) :
|
|
987
|
-
t.type == "select" ?
|
|
985
|
+
])) : _("", !0),
|
|
986
|
+
t.type == "select" ? P((m(), h("select", C({
|
|
988
987
|
key: 7,
|
|
989
|
-
"onUpdate:modelValue": a[5] || (a[5] = (
|
|
988
|
+
"onUpdate:modelValue": a[5] || (a[5] = (n) => o.inputVal = n),
|
|
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
|
-
pattern:
|
|
993
|
+
pattern: o.needPattern()
|
|
995
994
|
}, e.$attrs), [
|
|
996
|
-
(
|
|
995
|
+
(m(!0), h(D, null, R(t.options, (n, l) => (m(), h("option", {
|
|
997
996
|
key: l,
|
|
998
|
-
value:
|
|
999
|
-
}, $(
|
|
997
|
+
value: n.value
|
|
998
|
+
}, $(n.display ? n.display : n.value), 9, ae))), 128))
|
|
1000
999
|
], 16, ee)), [
|
|
1001
|
-
[pt,
|
|
1002
|
-
]) :
|
|
1003
|
-
t.type == "checkbox" || t.type == "radio" ? (
|
|
1000
|
+
[pt, o.inputVal]
|
|
1001
|
+
]) : _("", !0),
|
|
1002
|
+
t.type == "checkbox" || t.type == "radio" ? (m(), h("input", C({
|
|
1004
1003
|
key: 8,
|
|
1005
1004
|
class: "form-check-input",
|
|
1006
1005
|
type: t.type,
|
|
1007
1006
|
name: t.name ? t.name : t.id,
|
|
1008
1007
|
id: t.id
|
|
1009
|
-
}, e.$attrs), null, 16, ie)) :
|
|
1010
|
-
t.type == "checkbox" || t.type == "radio" ? (
|
|
1008
|
+
}, e.$attrs), null, 16, ie)) : _("", !0),
|
|
1009
|
+
t.type == "checkbox" || t.type == "radio" ? (m(), h("label", {
|
|
1011
1010
|
key: 9,
|
|
1012
|
-
class:
|
|
1011
|
+
class: L(`form-label form-check-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
|
|
1013
1012
|
for: t.id,
|
|
1014
1013
|
innerHTML: t.label
|
|
1015
|
-
}, null, 10,
|
|
1016
|
-
t.type == "checkbox-btn" || t.type == "radio-btn" ? (
|
|
1014
|
+
}, null, 10, ne)) : _("", !0),
|
|
1015
|
+
t.type == "checkbox-btn" || t.type == "radio-btn" ? (m(), h("input", C({
|
|
1017
1016
|
key: 10,
|
|
1018
1017
|
class: `btn-check${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
1019
1018
|
type: t.type.replace("-btn", ""),
|
|
1020
1019
|
autocomplete: "off",
|
|
1021
1020
|
name: t.name ? t.name : t.id,
|
|
1022
1021
|
id: t.id
|
|
1023
|
-
}, e.$attrs), null, 16,
|
|
1024
|
-
t.type == "checkbox-btn" || t.type == "radio-btn" ? (
|
|
1022
|
+
}, e.$attrs), null, 16, oe)) : _("", !0),
|
|
1023
|
+
t.type == "checkbox-btn" || t.type == "radio-btn" ? (m(), h("label", {
|
|
1025
1024
|
key: 11,
|
|
1026
|
-
class:
|
|
1025
|
+
class: L(`btn${t.labelclass ? ` ${t.labelclass}` : ""}`),
|
|
1027
1026
|
for: t.id,
|
|
1028
1027
|
innerHTML: t.label,
|
|
1029
|
-
onClick: a[6] || (a[6] = (...
|
|
1030
|
-
}, null, 10, re)) :
|
|
1031
|
-
|
|
1032
|
-
t.errormsg ? (
|
|
1028
|
+
onClick: a[6] || (a[6] = (...n) => o.clickEvent && o.clickEvent(...n))
|
|
1029
|
+
}, null, 10, re)) : _("", !0),
|
|
1030
|
+
v(e.$slots, "default"),
|
|
1031
|
+
t.errormsg ? (m(), h("span", {
|
|
1033
1032
|
key: 12,
|
|
1034
1033
|
class: "invalid-feedback mb-0",
|
|
1035
1034
|
innerHTML: t.errormsg
|
|
1036
|
-
}, null, 8, se)) :
|
|
1037
|
-
|
|
1035
|
+
}, null, 8, se)) : _("", !0),
|
|
1036
|
+
o.allowDatalist() ? (m(), h("datalist", {
|
|
1038
1037
|
key: 13,
|
|
1039
1038
|
id: t.id + "-list"
|
|
1040
1039
|
}, [
|
|
1041
|
-
(
|
|
1040
|
+
(m(!0), h(D, null, R(t.options, (n, l) => (m(), h("option", {
|
|
1042
1041
|
key: l,
|
|
1043
|
-
value:
|
|
1044
|
-
}, $(
|
|
1045
|
-
], 8, le)) :
|
|
1042
|
+
value: n.value
|
|
1043
|
+
}, $(n.value), 9, de))), 128))
|
|
1044
|
+
], 8, le)) : _("", !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"), o = e.hasAttribute("data-maxsize") ? e.getAttribute("data-maxsize") : 0, n = s.cloneNode();
|
|
1050
|
+
i.append(n), a.addEventListener("click", (l) => {
|
|
1051
|
+
l && l.target instanceof HTMLElement && l.target.closest(".btn-primary") && (l.target.closest(".btn-primary"), (s.hasAttribute("multiple") ? n : 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 u = 0; u < r.length; u++) {
|
|
1056
|
+
const g = r[u];
|
|
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
|
+
}), n.addEventListener("change", (l) => {
|
|
1065
1064
|
if (s.hasAttribute("multiple")) {
|
|
1066
|
-
const r = [...s.files, ...
|
|
1065
|
+
const r = [...s.files, ...n.files];
|
|
1067
1066
|
let p = [];
|
|
1068
1067
|
const c = new DataTransfer();
|
|
1069
|
-
for (let
|
|
1070
|
-
const
|
|
1071
|
-
!p.includes(
|
|
1068
|
+
for (let u = 0; u < r.length; u++) {
|
|
1069
|
+
const g = r[u], b = g.size / 1e3;
|
|
1070
|
+
!p.includes(g.name) && (o == 0 || b < o) && 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 = n.files;
|
|
1076
1075
|
const d = new Event("change");
|
|
1077
1076
|
s.dispatchEvent(d);
|
|
1078
|
-
}),
|
|
1079
|
-
|
|
1080
|
-
}),
|
|
1081
|
-
|
|
1082
|
-
}),
|
|
1083
|
-
|
|
1077
|
+
}), n.addEventListener("dragenter", (l) => {
|
|
1078
|
+
n.classList.add("focus");
|
|
1079
|
+
}), n.addEventListener("dragleave", (l) => {
|
|
1080
|
+
n.classList.remove("focus");
|
|
1081
|
+
}), n.addEventListener("drop", (l) => {
|
|
1082
|
+
n.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,
|
|
1141
|
-
return
|
|
1142
|
-
|
|
1139
|
+
function pe(e, a, t, i, s, o) {
|
|
1140
|
+
return m(), h("iam-fileupload", null, [
|
|
1141
|
+
v(e.$slots, "default")
|
|
1143
1142
|
]);
|
|
1144
1143
|
}
|
|
1145
|
-
const
|
|
1144
|
+
const $i = /* @__PURE__ */ y(he, [["render", pe]]), N = (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
|
-
N(/* @__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-
|
|
1155
|
+
N(/* @__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-7e34686c.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,
|
|
1165
|
-
return
|
|
1166
|
-
|
|
1163
|
+
function ge(e, a, t, i, s, o) {
|
|
1164
|
+
return m(), h("iam-accordion", fe, [
|
|
1165
|
+
v(e.$slots, "default")
|
|
1167
1166
|
], 512);
|
|
1168
1167
|
}
|
|
1169
|
-
const
|
|
1168
|
+
const Si = /* @__PURE__ */ y(be, [["render", ge]]), ye = {
|
|
1170
1169
|
name: "AccordionItem",
|
|
1171
1170
|
props: {
|
|
1172
1171
|
title: {
|
|
@@ -1201,24 +1200,24 @@ const Fi = /* @__PURE__ */ v(be, [["render", ge]]), ye = {
|
|
|
1201
1200
|
show: !this.lazy
|
|
1202
1201
|
};
|
|
1203
1202
|
}
|
|
1204
|
-
},
|
|
1205
|
-
function _e(e, a, t,
|
|
1206
|
-
return
|
|
1207
|
-
id:
|
|
1203
|
+
}, we = ["id"], ve = ["classList"];
|
|
1204
|
+
function _e(e, a, t, i, s, o) {
|
|
1205
|
+
return m(), h("details", {
|
|
1206
|
+
id: o.createID(t.title)
|
|
1208
1207
|
}, [
|
|
1209
1208
|
f("summary", {
|
|
1210
1209
|
classList: `${t.titlecolour ? `bg-${t.titlecolour}` : ""}`
|
|
1211
1210
|
}, [
|
|
1212
1211
|
bt($(t.title), 1),
|
|
1213
|
-
t.badge ? (
|
|
1212
|
+
t.badge ? (m(), h("span", {
|
|
1214
1213
|
key: 0,
|
|
1215
|
-
class:
|
|
1216
|
-
}, $(t.badge), 3)) :
|
|
1217
|
-
], 8,
|
|
1218
|
-
|
|
1219
|
-
], 8,
|
|
1214
|
+
class: L(`badge bg-${t.badgecolour}`)
|
|
1215
|
+
}, $(t.badge), 3)) : _("", !0)
|
|
1216
|
+
], 8, ve),
|
|
1217
|
+
v(e.$slots, "default")
|
|
1218
|
+
], 8, we);
|
|
1220
1219
|
}
|
|
1221
|
-
const
|
|
1220
|
+
const qi = /* @__PURE__ */ y(ye, [["render", _e]]), xe = {
|
|
1222
1221
|
name: "Header",
|
|
1223
1222
|
props: {
|
|
1224
1223
|
title: {
|
|
@@ -1235,36 +1234,36 @@ const Pi = /* @__PURE__ */ v(ye, [["render", _e]]), Ae = {
|
|
|
1235
1234
|
required: !1
|
|
1236
1235
|
}
|
|
1237
1236
|
}
|
|
1238
|
-
},
|
|
1239
|
-
function Ee(e, a, t,
|
|
1240
|
-
return
|
|
1237
|
+
}, Ae = { class: "container" }, ke = { class: "row" }, Le = { class: "col-sm-6" }, $e = { class: "pt-5 pb-3 px-4" }, Se = { class: "col-sm-6 col-md-5 ms-auto" }, qe = ["src"];
|
|
1238
|
+
function Ee(e, a, t, i, s, o) {
|
|
1239
|
+
return m(), h("div", Ae, [
|
|
1241
1240
|
f("div", {
|
|
1242
|
-
class:
|
|
1241
|
+
class: L("bg-" + t.background + " mb-4")
|
|
1243
1242
|
}, [
|
|
1244
1243
|
f("div", ke, [
|
|
1245
1244
|
f("div", Le, [
|
|
1246
|
-
f("div",
|
|
1245
|
+
f("div", $e, [
|
|
1247
1246
|
f("h2", null, $(t.title), 1),
|
|
1248
|
-
|
|
1247
|
+
v(e.$slots, "default")
|
|
1249
1248
|
])
|
|
1250
1249
|
]),
|
|
1251
|
-
f("div",
|
|
1252
|
-
t.image ? (
|
|
1250
|
+
f("div", Se, [
|
|
1251
|
+
t.image ? (m(), h("img", {
|
|
1253
1252
|
key: 0,
|
|
1254
1253
|
src: t.image,
|
|
1255
1254
|
alt: "",
|
|
1256
1255
|
class: "h-100 w-100 object-cover"
|
|
1257
|
-
}, null, 8, qe)) :
|
|
1256
|
+
}, null, 8, qe)) : _("", !0)
|
|
1258
1257
|
])
|
|
1259
1258
|
])
|
|
1260
1259
|
], 2)
|
|
1261
1260
|
]);
|
|
1262
1261
|
}
|
|
1263
|
-
const
|
|
1262
|
+
const Ei = /* @__PURE__ */ y(xe, [["render", Ee]]), Te = {
|
|
1264
1263
|
name: "Card",
|
|
1265
1264
|
mounted() {
|
|
1266
1265
|
this.$nextTick(function() {
|
|
1267
|
-
N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/card/card.component.js": () => import("./card.component-
|
|
1266
|
+
N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/card/card.component.js": () => import("./card.component-3bb86b22.mjs"), "../../../assets/js/components/card/card.component.min.js": () => import("./card.component.min-9db932b7.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,240 +1271,39 @@ const Ii = /* @__PURE__ */ v(Ae, [["render", Ee]]), Te = {
|
|
|
1272
1271
|
});
|
|
1273
1272
|
}
|
|
1274
1273
|
};
|
|
1275
|
-
function He(e, a, t,
|
|
1276
|
-
return
|
|
1277
|
-
|
|
1274
|
+
function He(e, a, t, i, s, o) {
|
|
1275
|
+
return m(), h("iam-card", null, [
|
|
1276
|
+
v(e.$slots, "default")
|
|
1278
1277
|
]);
|
|
1279
1278
|
}
|
|
1280
|
-
const
|
|
1281
|
-
|
|
1282
|
-
var a;
|
|
1283
|
-
let t = e.querySelector(".carousel__inner"), o = e.querySelectorAll(".carousel__item").length;
|
|
1284
|
-
e.getAttribute("data-cols");
|
|
1285
|
-
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(i) {
|
|
1287
|
-
clearTimeout(a), a = setTimeout(function() {
|
|
1288
|
-
let l = t.clientWidth, d = t.scrollWidth, r = t.scrollLeft, p = Math.round(r / d * o) + 1, c = e.querySelector(".carousel__item:last-child").offsetLeft;
|
|
1289
|
-
Array.from(e.querySelectorAll(".carousel__controls a")).forEach((g, b) => {
|
|
1290
|
-
g.removeAttribute("aria-current");
|
|
1291
|
-
}), 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
|
-
}, 100);
|
|
1293
|
-
}, !1), e.addEventListener("click", function(i) {
|
|
1294
|
-
for (var l = i.target; l && l != this; l = l.parentNode)
|
|
1295
|
-
if (l.matches(".carousel__controls a")) {
|
|
1296
|
-
i.preventDefault(), Array.from(e.querySelectorAll(".carousel__controls a")).forEach((r, p) => {
|
|
1297
|
-
r.removeAttribute("aria-current");
|
|
1298
|
-
}), l.setAttribute("aria-current", !0);
|
|
1299
|
-
const d = document.querySelector(l.getAttribute("href"));
|
|
1300
|
-
t.scroll({
|
|
1301
|
-
top: 0,
|
|
1302
|
-
left: d.offsetLeft,
|
|
1303
|
-
behavior: "smooth"
|
|
1304
|
-
});
|
|
1305
|
-
break;
|
|
1306
|
-
}
|
|
1307
|
-
}, !1), e.addEventListener("click", function(i) {
|
|
1308
|
-
for (var l = i.target; l && l != this; l = l.parentNode)
|
|
1309
|
-
if (l.matches(".btn-next, .btn-prev")) {
|
|
1310
|
-
i.preventDefault();
|
|
1311
|
-
let d = l.classList.contains("btn-prev") ? t.scrollLeft - t.clientWidth : t.scrollLeft + t.clientWidth;
|
|
1312
|
-
t.scroll({
|
|
1313
|
-
top: 0,
|
|
1314
|
-
left: d,
|
|
1315
|
-
behavior: "smooth"
|
|
1316
|
-
});
|
|
1317
|
-
break;
|
|
1318
|
-
}
|
|
1319
|
-
}, !1), o == 1 && e.classList.add("hide-btns"), s >= o && e.classList.add("hide-sm-btns"), n >= o && e.classList.add("hide-md-btns");
|
|
1320
|
-
}
|
|
1321
|
-
const Ce = {
|
|
1322
|
-
components: {
|
|
1323
|
-
Card: Me
|
|
1324
|
-
},
|
|
1325
|
-
name: "Carousel",
|
|
1326
|
-
data() {
|
|
1327
|
-
return {
|
|
1328
|
-
id: null
|
|
1329
|
-
};
|
|
1330
|
-
},
|
|
1279
|
+
const Ti = /* @__PURE__ */ y(Te, [["render", He]]), Me = {
|
|
1280
|
+
name: "Header",
|
|
1331
1281
|
props: {
|
|
1332
|
-
|
|
1333
|
-
type: Array,
|
|
1334
|
-
required: !1
|
|
1335
|
-
},
|
|
1336
|
-
cols: {
|
|
1337
|
-
type: Number,
|
|
1338
|
-
required: !1,
|
|
1339
|
-
default: 1
|
|
1340
|
-
},
|
|
1341
|
-
smcols: {
|
|
1342
|
-
type: Number,
|
|
1343
|
-
required: !1,
|
|
1344
|
-
default: 1
|
|
1345
|
-
},
|
|
1346
|
-
mdcols: {
|
|
1347
|
-
type: Number,
|
|
1348
|
-
required: !1,
|
|
1349
|
-
default: 3
|
|
1350
|
-
},
|
|
1351
|
-
gap: {
|
|
1352
|
-
type: Number,
|
|
1353
|
-
required: !1,
|
|
1354
|
-
default: 4
|
|
1355
|
-
},
|
|
1356
|
-
cardtype: {
|
|
1357
|
-
type: String,
|
|
1358
|
-
required: !1
|
|
1359
|
-
},
|
|
1360
|
-
cardclass: {
|
|
1361
|
-
type: String,
|
|
1362
|
-
required: !1
|
|
1363
|
-
},
|
|
1364
|
-
btntype: {
|
|
1365
|
-
type: String,
|
|
1366
|
-
required: !1
|
|
1367
|
-
},
|
|
1368
|
-
titleclass: {
|
|
1369
|
-
type: String,
|
|
1370
|
-
required: !1
|
|
1371
|
-
},
|
|
1372
|
-
ctatext: {
|
|
1373
|
-
type: String,
|
|
1374
|
-
required: !1
|
|
1375
|
-
},
|
|
1376
|
-
hidectatext: {
|
|
1377
|
-
type: Boolean,
|
|
1378
|
-
required: !1,
|
|
1379
|
-
default: !1
|
|
1380
|
-
},
|
|
1381
|
-
colclass: {
|
|
1282
|
+
title: {
|
|
1382
1283
|
type: String,
|
|
1383
|
-
required: !
|
|
1284
|
+
required: !0
|
|
1384
1285
|
},
|
|
1385
|
-
|
|
1286
|
+
image: {
|
|
1386
1287
|
type: String,
|
|
1387
1288
|
required: !1
|
|
1388
1289
|
}
|
|
1389
1290
|
},
|
|
1390
|
-
computed: {
|
|
1391
|
-
content() {
|
|
1392
|
-
return (e) => `${e.image ? `<img src="${e.image}" alt="" />` : ""}${e.content ? e.content : ""}`;
|
|
1393
|
-
}
|
|
1394
|
-
},
|
|
1395
1291
|
mounted() {
|
|
1396
|
-
this
|
|
1397
|
-
|
|
1292
|
+
this.$nextTick(function() {
|
|
1293
|
+
N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/carousel/carousel.component.js": () => import("./carousel.component-72a8511a.mjs") }), "../../../assets/js/components/carousel/carousel.component.js").then((e) => {
|
|
1294
|
+
window.customElements.get("iam-carousel") || window.customElements.define("iam-carousel", e.default);
|
|
1295
|
+
}).catch((e) => {
|
|
1296
|
+
console.log(e.message);
|
|
1297
|
+
});
|
|
1398
1298
|
});
|
|
1399
1299
|
}
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
"
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
class: "btn btn-next",
|
|
1406
|
-
"data-go": "2"
|
|
1407
|
-
}, "Next", -1);
|
|
1408
|
-
function Be(e, a, t, o, s, n) {
|
|
1409
|
-
const i = I("Card");
|
|
1410
|
-
return u(), m("div", {
|
|
1411
|
-
class: "container carousel",
|
|
1412
|
-
id: "carousel" + s.id,
|
|
1413
|
-
ref: "wrapper",
|
|
1414
|
-
"data-cols": t.cols,
|
|
1415
|
-
"data-sm-cols": t.smcols,
|
|
1416
|
-
"data-md-cols": t.mdcols
|
|
1417
|
-
}, [
|
|
1418
|
-
_(e.$slots, "default"),
|
|
1419
|
-
f("div", Re, [
|
|
1420
|
-
f("div", De, [
|
|
1421
|
-
t.type == "card" ? (u(), m("div", {
|
|
1422
|
-
key: 0,
|
|
1423
|
-
class: k(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
|
|
1424
|
-
}, [
|
|
1425
|
-
(u(!0), m(H, null, M(t.items, (l, d) => (u(), m("div", {
|
|
1426
|
-
class: k(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
|
|
1427
|
-
key: d,
|
|
1428
|
-
id: "carousel" + s.id + "slide" + (d + 1)
|
|
1429
|
-
}, [
|
|
1430
|
-
j(i, C(l, {
|
|
1431
|
-
class: t.cardclass,
|
|
1432
|
-
type: t.cardtype,
|
|
1433
|
-
btnyype: t.btntype,
|
|
1434
|
-
titleclass: t.titleclass,
|
|
1435
|
-
ctatext: t.ctatext,
|
|
1436
|
-
hidectatext: t.hidectatext
|
|
1437
|
-
}), null, 16, ["class", "type", "btnyype", "titleclass", "ctatext", "hidectatext"])
|
|
1438
|
-
], 10, ze))), 128))
|
|
1439
|
-
], 2)) : w("", !0),
|
|
1440
|
-
t.type != "card" ? (u(), m("div", {
|
|
1441
|
-
key: 1,
|
|
1442
|
-
class: k(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
|
|
1443
|
-
}, [
|
|
1444
|
-
(u(!0), m(H, null, M(t.items, (l, d) => (u(), m("div", {
|
|
1445
|
-
class: k(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
|
|
1446
|
-
key: d,
|
|
1447
|
-
innerHTML: n.content(l),
|
|
1448
|
-
id: "carousel" + s.id + "slide" + (d + 1)
|
|
1449
|
-
}, null, 10, Fe))), 128))
|
|
1450
|
-
], 2)) : w("", !0)
|
|
1451
|
-
]),
|
|
1452
|
-
f("div", {
|
|
1453
|
-
class: k(`carousel__controls cols-${t.cols} cols-sm-${t.smcols} cols-md-${t.mdcols}`)
|
|
1454
|
-
}, [
|
|
1455
|
-
(u(!0), m(H, null, M(t.items, (l, d) => (u(), m("a", {
|
|
1456
|
-
key: d,
|
|
1457
|
-
href: "#carousel" + s.id + "slide" + (d + 1),
|
|
1458
|
-
class: k(`control-${d + 1}`)
|
|
1459
|
-
}, "Slide " + $(d + 1), 11, Pe))), 128))
|
|
1460
|
-
], 2),
|
|
1461
|
-
Ie,
|
|
1462
|
-
Oe
|
|
1463
|
-
])
|
|
1464
|
-
], 8, Ne);
|
|
1465
|
-
}
|
|
1466
|
-
const Oi = /* @__PURE__ */ v(Ce, [["render", Be]]);
|
|
1467
|
-
/*!
|
|
1468
|
-
* iamKey v5.1.0-beta
|
|
1469
|
-
* Copyright 2022-2023 iamproperty
|
|
1470
|
-
*/
|
|
1471
|
-
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "header" });
|
|
1472
|
-
class Ue extends HTMLElement {
|
|
1473
|
-
constructor() {
|
|
1474
|
-
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`, o = document.createElement("template");
|
|
1476
|
-
o.innerHTML = `
|
|
1477
|
-
<style>
|
|
1478
|
-
@import "${t}";
|
|
1479
|
-
: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 */
|
|
1480
|
-
|
|
1481
|
-
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
1482
|
-
</style>
|
|
1483
|
-
<div class="header-banner">
|
|
1484
|
-
<div class="container" part="container">
|
|
1485
|
-
<slot name="breadcrumb"></slot>
|
|
1486
|
-
<div class="header-banner__inner">
|
|
1487
|
-
<slot></slot>
|
|
1488
|
-
</div>
|
|
1489
|
-
</div>
|
|
1490
|
-
<picture>
|
|
1491
|
-
<!-- Actual image only loaded on desktops -->
|
|
1492
|
-
<source srcset="" media="(min-width: 62em)">
|
|
1493
|
-
<!-- Placeholder image -->
|
|
1494
|
-
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="" lazy="" />
|
|
1495
|
-
</picture>
|
|
1496
|
-
</div>
|
|
1497
|
-
`, this.shadowRoot.appendChild(o.content.cloneNode(!0));
|
|
1498
|
-
}
|
|
1499
|
-
connectedCallback() {
|
|
1500
|
-
this.classList.add("loaded");
|
|
1501
|
-
const a = this.shadowRoot.querySelector("picture"), t = this.shadowRoot.querySelector("picture source");
|
|
1502
|
-
this.hasAttribute("image") ? t.setAttribute("srcset", this.getAttribute("image")) : a.remove();
|
|
1503
|
-
}
|
|
1300
|
+
};
|
|
1301
|
+
function je(e, a, t, i, s, o) {
|
|
1302
|
+
return m(), h("iam-carousel", null, [
|
|
1303
|
+
v(e.$slots, "default")
|
|
1304
|
+
]);
|
|
1504
1305
|
}
|
|
1505
|
-
const
|
|
1506
|
-
__proto__: null,
|
|
1507
|
-
default: Ue
|
|
1508
|
-
}, Symbol.toStringTag, { value: "Module" })), We = {
|
|
1306
|
+
const Hi = /* @__PURE__ */ y(Me, [["render", je]]), Ce = {
|
|
1509
1307
|
name: "Header",
|
|
1510
1308
|
props: {
|
|
1511
1309
|
title: {
|
|
@@ -1519,48 +1317,45 @@ const Ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1519
1317
|
},
|
|
1520
1318
|
mounted() {
|
|
1521
1319
|
this.$nextTick(function() {
|
|
1522
|
-
N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/header/header.component.js": () => import("./header.component-
|
|
1320
|
+
N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/header/header.component.js": () => import("./header.component-cc8263fb.mjs"), "../../../assets/js/components/header/header.component.min.js": () => import("./header.component.min-71c8b950.mjs") }), "../../../assets/js/components/header/header.component.js").then((e) => {
|
|
1523
1321
|
window.customElements.get("iam-header") || window.customElements.define("iam-header", e.default);
|
|
1524
1322
|
}).catch((e) => {
|
|
1525
1323
|
console.log(e.message);
|
|
1526
1324
|
});
|
|
1527
1325
|
});
|
|
1528
1326
|
}
|
|
1529
|
-
},
|
|
1530
|
-
function
|
|
1531
|
-
return
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
}, [
|
|
1535
|
-
_(e.$slots, "breadcrumb"),
|
|
1536
|
-
t.title ? (u(), m("h1", {
|
|
1327
|
+
}, De = ["image"], Re = ["innerHTML"];
|
|
1328
|
+
function Ne(e, a, t, i, s, o) {
|
|
1329
|
+
return m(), h("iam-header", { image: t.image }, [
|
|
1330
|
+
v(e.$slots, "breadcrumb"),
|
|
1331
|
+
t.title ? (m(), h("h1", {
|
|
1537
1332
|
key: 0,
|
|
1538
1333
|
innerHTML: t.title
|
|
1539
|
-
}, null, 8,
|
|
1540
|
-
|
|
1541
|
-
], 8,
|
|
1334
|
+
}, null, 8, Re)) : _("", !0),
|
|
1335
|
+
v(e.$slots, "default")
|
|
1336
|
+
], 8, De);
|
|
1542
1337
|
}
|
|
1543
|
-
const
|
|
1544
|
-
function
|
|
1338
|
+
const Mi = /* @__PURE__ */ y(Ce, [["render", Ne]]);
|
|
1339
|
+
function ze(e) {
|
|
1545
1340
|
var a;
|
|
1546
|
-
const t = e.querySelector(".testimonial__images"),
|
|
1547
|
-
if (
|
|
1341
|
+
const t = e.querySelector(".testimonial__images"), i = t.querySelectorAll("img").length;
|
|
1342
|
+
if (i == 1)
|
|
1548
1343
|
return !1;
|
|
1549
1344
|
e.classList.add("testimonial--multi");
|
|
1550
|
-
const s = function(
|
|
1551
|
-
const
|
|
1552
|
-
|
|
1345
|
+
const s = function(o) {
|
|
1346
|
+
const n = e.querySelector(".btn-next"), l = e.querySelector(".btn-prev");
|
|
1347
|
+
n.setAttribute("data-go", o + 1), l.setAttribute("data-go", o - 1), n.removeAttribute("disabled"), l.removeAttribute("disabled"), o == 1 ? l.setAttribute("disabled", !0) : o == i && n.setAttribute("disabled", !0);
|
|
1553
1348
|
};
|
|
1554
|
-
t.addEventListener("scroll", function(
|
|
1349
|
+
t.addEventListener("scroll", function(o) {
|
|
1555
1350
|
clearTimeout(a), a = setTimeout(function() {
|
|
1556
|
-
let
|
|
1557
|
-
d == 0 && r != 0 && (p = Math.round(r / l *
|
|
1351
|
+
let n = t.scrollWidth, l = t.scrollHeight, d = t.scrollLeft, r = t.scrollTop, p = Math.round(d / n * i) + 1;
|
|
1352
|
+
d == 0 && r != 0 && (p = Math.round(r / l * i) + 1), e.setAttribute("data-show", p), s(p);
|
|
1558
1353
|
}, 300);
|
|
1559
|
-
}, !1), e.addEventListener("click", function(
|
|
1560
|
-
for (var
|
|
1561
|
-
if (
|
|
1562
|
-
let l = parseInt(
|
|
1563
|
-
p > c ? r = Math.floor(p * ((l - 1) /
|
|
1354
|
+
}, !1), e.addEventListener("click", function(o) {
|
|
1355
|
+
for (var n = o.target; n && n != this; n = n.parentNode)
|
|
1356
|
+
if (n.matches("[data-go]")) {
|
|
1357
|
+
let l = parseInt(n.getAttribute("data-go")), d = 0, r = 0, p = t.scrollWidth, c = t.scrollHeight;
|
|
1358
|
+
p > c ? r = Math.floor(p * ((l - 1) / i)) : d = Math.floor(c * ((l - 1) / i)), t.scroll({
|
|
1564
1359
|
top: d,
|
|
1565
1360
|
left: r,
|
|
1566
1361
|
behavior: "smooth"
|
|
@@ -1569,7 +1364,7 @@ function Xe(e) {
|
|
|
1569
1364
|
}
|
|
1570
1365
|
}, !1);
|
|
1571
1366
|
}
|
|
1572
|
-
const
|
|
1367
|
+
const Fe = {
|
|
1573
1368
|
name: "Testimonial",
|
|
1574
1369
|
props: {
|
|
1575
1370
|
items: {
|
|
@@ -1583,13 +1378,13 @@ const Je = {
|
|
|
1583
1378
|
}
|
|
1584
1379
|
},
|
|
1585
1380
|
mounted() {
|
|
1586
|
-
|
|
1381
|
+
ze(this.$refs.wrapper);
|
|
1587
1382
|
}
|
|
1588
|
-
},
|
|
1383
|
+
}, Pe = {
|
|
1589
1384
|
class: "container testimonial mb-5",
|
|
1590
1385
|
"data-show": "1",
|
|
1591
1386
|
ref: "wrapper"
|
|
1592
|
-
},
|
|
1387
|
+
}, Ie = { class: "row" }, Oe = { class: "col-md-5 position-relative" }, Be = { class: "testimonial__images" }, Ue = ["src"], Ve = /* @__PURE__ */ f("div", { class: "testimonial__controls" }, [
|
|
1593
1388
|
/* @__PURE__ */ f("button", {
|
|
1594
1389
|
"data-go": "0",
|
|
1595
1390
|
disabled: "",
|
|
@@ -1599,50 +1394,50 @@ const Je = {
|
|
|
1599
1394
|
"data-go": "2",
|
|
1600
1395
|
class: "btn-next"
|
|
1601
1396
|
}, "Next")
|
|
1602
|
-
], -1),
|
|
1603
|
-
function
|
|
1604
|
-
return
|
|
1397
|
+
], -1), We = { class: "col-md-7" }, Ke = /* @__PURE__ */ f("h2", null, "What our customers think…", -1), Ge = { class: "testimonial__content" }, Ye = ["innerHTML"], Xe = ["innerHTML"], Je = { class: "testimonial__after" }, Qe = /* @__PURE__ */ f("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
|
|
1398
|
+
function Ze(e, a, t, i, s, o) {
|
|
1399
|
+
return m(), h("div", Pe, [
|
|
1605
1400
|
f("div", {
|
|
1606
|
-
class:
|
|
1401
|
+
class: L("bg-" + t.background)
|
|
1607
1402
|
}, [
|
|
1608
|
-
f("div",
|
|
1609
|
-
f("div",
|
|
1610
|
-
f("div",
|
|
1611
|
-
(
|
|
1403
|
+
f("div", Ie, [
|
|
1404
|
+
f("div", Oe, [
|
|
1405
|
+
f("div", Be, [
|
|
1406
|
+
(m(!0), h(D, null, R(t.items, (n, l) => (m(), h("img", {
|
|
1612
1407
|
key: l,
|
|
1613
|
-
src:
|
|
1408
|
+
src: n.image ? n.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
|
|
1614
1409
|
alt: "",
|
|
1615
|
-
class:
|
|
1616
|
-
}, null, 10,
|
|
1410
|
+
class: L("h-100 w-100 object-cover" + (n.image ? "" : " opacity-0"))
|
|
1411
|
+
}, null, 10, Ue))), 128))
|
|
1617
1412
|
]),
|
|
1618
|
-
|
|
1413
|
+
Ve
|
|
1619
1414
|
]),
|
|
1620
|
-
f("div",
|
|
1621
|
-
|
|
1622
|
-
f("div",
|
|
1623
|
-
(
|
|
1415
|
+
f("div", We, [
|
|
1416
|
+
Ke,
|
|
1417
|
+
f("div", Ge, [
|
|
1418
|
+
(m(!0), h(D, null, R(t.items, (n, l) => (m(), h("blockquote", {
|
|
1624
1419
|
key: l,
|
|
1625
|
-
class:
|
|
1420
|
+
class: L(n.class)
|
|
1626
1421
|
}, [
|
|
1627
1422
|
f("div", {
|
|
1628
|
-
innerHTML:
|
|
1629
|
-
}, null, 8,
|
|
1423
|
+
innerHTML: n.quote
|
|
1424
|
+
}, null, 8, Ye),
|
|
1630
1425
|
f("cite", {
|
|
1631
|
-
innerHTML:
|
|
1632
|
-
}, null, 8,
|
|
1426
|
+
innerHTML: n.cite
|
|
1427
|
+
}, null, 8, Xe)
|
|
1633
1428
|
], 2))), 128))
|
|
1634
1429
|
]),
|
|
1635
|
-
f("div",
|
|
1636
|
-
|
|
1430
|
+
f("div", Je, [
|
|
1431
|
+
v(e.$slots, "default")
|
|
1637
1432
|
])
|
|
1638
1433
|
])
|
|
1639
1434
|
]),
|
|
1640
|
-
|
|
1435
|
+
Qe
|
|
1641
1436
|
], 2)
|
|
1642
1437
|
], 512);
|
|
1643
1438
|
}
|
|
1644
|
-
const
|
|
1645
|
-
const
|
|
1439
|
+
const ji = /* @__PURE__ */ y(Fe, [["render", Ze]]);
|
|
1440
|
+
const ta = {
|
|
1646
1441
|
name: "Timeline",
|
|
1647
1442
|
props: {
|
|
1648
1443
|
image: {
|
|
@@ -1650,21 +1445,21 @@ const ma = {
|
|
|
1650
1445
|
required: !1
|
|
1651
1446
|
}
|
|
1652
1447
|
}
|
|
1653
|
-
},
|
|
1654
|
-
function
|
|
1655
|
-
return
|
|
1656
|
-
f("div",
|
|
1657
|
-
|
|
1448
|
+
}, ea = { class: "timeline" }, aa = { class: "timeline__content" }, ia = ["src"];
|
|
1449
|
+
function na(e, a, t, i, s, o) {
|
|
1450
|
+
return m(), h("div", ea, [
|
|
1451
|
+
f("div", aa, [
|
|
1452
|
+
v(e.$slots, "default")
|
|
1658
1453
|
]),
|
|
1659
|
-
t.image ? (
|
|
1454
|
+
t.image ? (m(), h("img", {
|
|
1660
1455
|
key: 0,
|
|
1661
1456
|
src: t.image,
|
|
1662
1457
|
alt: ""
|
|
1663
|
-
}, null, 8,
|
|
1458
|
+
}, null, 8, ia)) : _("", !0)
|
|
1664
1459
|
]);
|
|
1665
1460
|
}
|
|
1666
|
-
const
|
|
1667
|
-
const
|
|
1461
|
+
const Ci = /* @__PURE__ */ y(ta, [["render", na]]);
|
|
1462
|
+
const oa = {
|
|
1668
1463
|
components: {
|
|
1669
1464
|
Input: st
|
|
1670
1465
|
},
|
|
@@ -1810,46 +1605,46 @@ const ga = {
|
|
|
1810
1605
|
];
|
|
1811
1606
|
}
|
|
1812
1607
|
}
|
|
1813
|
-
},
|
|
1608
|
+
}, ra = {
|
|
1814
1609
|
class: "container",
|
|
1815
1610
|
ref: "wrapper"
|
|
1816
|
-
},
|
|
1611
|
+
}, sa = { class: "property-searchbar" }, la = ["action", "method"], da = { class: "col-12 col-md-3" }, ca = { class: "col-12 col-md" }, ua = /* @__PURE__ */ f("span", { class: "form-label d-none d-md-block" }, "Price range", -1), ma = {
|
|
1817
1612
|
class: "row",
|
|
1818
1613
|
"data-input-range": ""
|
|
1819
|
-
},
|
|
1614
|
+
}, ha = { class: "col-12 col-md" }, pa = /* @__PURE__ */ f("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), ba = {
|
|
1820
1615
|
class: "row",
|
|
1821
1616
|
"data-input-range": ""
|
|
1822
|
-
},
|
|
1617
|
+
}, fa = { class: "col-12 col-md-2" }, ga = /* @__PURE__ */ f("div", { class: "col-12 col-md mw-md-fit-content d-flex property-searchbar__btn" }, [
|
|
1823
1618
|
/* @__PURE__ */ f("button", {
|
|
1824
1619
|
class: "btn w-100 me-0",
|
|
1825
1620
|
type: "submit",
|
|
1826
1621
|
value: "submit"
|
|
1827
1622
|
}, "Search")
|
|
1828
1623
|
], -1);
|
|
1829
|
-
function
|
|
1830
|
-
const
|
|
1831
|
-
return
|
|
1832
|
-
|
|
1833
|
-
f("div",
|
|
1624
|
+
function ya(e, a, t, i, s, o) {
|
|
1625
|
+
const n = K("Input");
|
|
1626
|
+
return m(), h("div", ra, [
|
|
1627
|
+
v(e.$slots, "default"),
|
|
1628
|
+
f("div", sa, [
|
|
1834
1629
|
f("form", {
|
|
1835
1630
|
class: "row",
|
|
1836
1631
|
action: t.formaction,
|
|
1837
1632
|
method: t.formmethod
|
|
1838
1633
|
}, [
|
|
1839
|
-
f("fieldset",
|
|
1840
|
-
|
|
1634
|
+
f("fieldset", da, [
|
|
1635
|
+
M(n, {
|
|
1841
1636
|
inputClass: "input--locations",
|
|
1842
|
-
modelValue:
|
|
1843
|
-
"onUpdate:modelValue": a[0] || (a[0] = (l) =>
|
|
1637
|
+
modelValue: o.locationSet,
|
|
1638
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => o.locationSet = l),
|
|
1844
1639
|
label: "Location",
|
|
1845
1640
|
id: "location",
|
|
1846
|
-
options:
|
|
1641
|
+
options: o.locationsList(),
|
|
1847
1642
|
required: "",
|
|
1848
1643
|
placeholder: "i.e. Newcastle or NE1",
|
|
1849
|
-
onKeyupEvent: a[1] || (a[1] = (l) =>
|
|
1644
|
+
onKeyupEvent: a[1] || (a[1] = (l) => o.locationKeyup(...arguments)),
|
|
1850
1645
|
ref: "search"
|
|
1851
1646
|
}, null, 8, ["modelValue", "options"]),
|
|
1852
|
-
|
|
1647
|
+
M(n, {
|
|
1853
1648
|
class: "select--miles",
|
|
1854
1649
|
label: "Miles",
|
|
1855
1650
|
id: "miles",
|
|
@@ -1857,10 +1652,10 @@ function Ta(e, a, t, o, s, n) {
|
|
|
1857
1652
|
options: t.distances
|
|
1858
1653
|
}, null, 8, ["options"])
|
|
1859
1654
|
]),
|
|
1860
|
-
f("fieldset",
|
|
1861
|
-
|
|
1862
|
-
f("div",
|
|
1863
|
-
|
|
1655
|
+
f("fieldset", ca, [
|
|
1656
|
+
ua,
|
|
1657
|
+
f("div", ma, [
|
|
1658
|
+
M(n, {
|
|
1864
1659
|
class: "col-6",
|
|
1865
1660
|
label: "Minimum price",
|
|
1866
1661
|
id: "price-min",
|
|
@@ -1868,7 +1663,7 @@ function Ta(e, a, t, o, s, n) {
|
|
|
1868
1663
|
type: "select",
|
|
1869
1664
|
options: t.pricemin
|
|
1870
1665
|
}, null, 8, ["options"]),
|
|
1871
|
-
|
|
1666
|
+
M(n, {
|
|
1872
1667
|
class: "col-6",
|
|
1873
1668
|
label: "Maximum price",
|
|
1874
1669
|
id: "price-max",
|
|
@@ -1878,10 +1673,10 @@ function Ta(e, a, t, o, s, n) {
|
|
|
1878
1673
|
}, null, 8, ["options"])
|
|
1879
1674
|
])
|
|
1880
1675
|
]),
|
|
1881
|
-
f("fieldset",
|
|
1882
|
-
|
|
1883
|
-
f("div",
|
|
1884
|
-
|
|
1676
|
+
f("fieldset", ha, [
|
|
1677
|
+
pa,
|
|
1678
|
+
f("div", ba, [
|
|
1679
|
+
M(n, {
|
|
1885
1680
|
class: "col-6",
|
|
1886
1681
|
label: "Minimum beds",
|
|
1887
1682
|
id: "beds-min",
|
|
@@ -1889,7 +1684,7 @@ function Ta(e, a, t, o, s, n) {
|
|
|
1889
1684
|
type: "select",
|
|
1890
1685
|
options: t.bedsmin
|
|
1891
1686
|
}, null, 8, ["options"]),
|
|
1892
|
-
|
|
1687
|
+
M(n, {
|
|
1893
1688
|
class: "col-6",
|
|
1894
1689
|
label: "Maximum beds",
|
|
1895
1690
|
id: "beds-max",
|
|
@@ -1899,26 +1694,26 @@ function Ta(e, a, t, o, s, n) {
|
|
|
1899
1694
|
}, null, 8, ["options"])
|
|
1900
1695
|
])
|
|
1901
1696
|
]),
|
|
1902
|
-
f("fieldset",
|
|
1903
|
-
|
|
1697
|
+
f("fieldset", fa, [
|
|
1698
|
+
M(n, {
|
|
1904
1699
|
label: "Property type",
|
|
1905
1700
|
id: "property-type",
|
|
1906
1701
|
type: "select",
|
|
1907
1702
|
options: t.propertytypes
|
|
1908
1703
|
}, null, 8, ["options"])
|
|
1909
1704
|
]),
|
|
1910
|
-
|
|
1911
|
-
], 8,
|
|
1705
|
+
ga
|
|
1706
|
+
], 8, la)
|
|
1912
1707
|
]),
|
|
1913
|
-
|
|
1708
|
+
v(e.$slots, "after")
|
|
1914
1709
|
], 512);
|
|
1915
1710
|
}
|
|
1916
|
-
const
|
|
1711
|
+
const Di = /* @__PURE__ */ y(oa, [["render", ya]]), wa = {
|
|
1917
1712
|
components: {},
|
|
1918
1713
|
name: "Nav",
|
|
1919
1714
|
mounted() {
|
|
1920
1715
|
this.$nextTick(function() {
|
|
1921
|
-
N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/nav/nav.component.js": () => import("./nav.component-
|
|
1716
|
+
N(/* @__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-1df4a8b8.mjs") }), "../../../assets/js/components/nav/nav.component.js").then((e) => {
|
|
1922
1717
|
window.customElements.get("iam-nav") || window.customElements.define("iam-nav", e.default);
|
|
1923
1718
|
}).catch((e) => {
|
|
1924
1719
|
console.log(e.message);
|
|
@@ -1926,14 +1721,14 @@ const Wi = /* @__PURE__ */ v(ga, [["render", Ta]]), Ha = {
|
|
|
1926
1721
|
});
|
|
1927
1722
|
},
|
|
1928
1723
|
methods: {}
|
|
1929
|
-
},
|
|
1930
|
-
function
|
|
1931
|
-
return
|
|
1932
|
-
|
|
1724
|
+
}, va = { ref: "wrapper" };
|
|
1725
|
+
function _a(e, a, t, i, s, o) {
|
|
1726
|
+
return m(), h("iam-nav", va, [
|
|
1727
|
+
v(e.$slots, "default")
|
|
1933
1728
|
], 512);
|
|
1934
1729
|
}
|
|
1935
|
-
const
|
|
1936
|
-
const
|
|
1730
|
+
const Ri = /* @__PURE__ */ y(wa, [["render", _a]]);
|
|
1731
|
+
const xa = {
|
|
1937
1732
|
name: "Stepper",
|
|
1938
1733
|
props: {
|
|
1939
1734
|
label: {
|
|
@@ -1946,26 +1741,26 @@ const Ca = {
|
|
|
1946
1741
|
default: "Complete"
|
|
1947
1742
|
}
|
|
1948
1743
|
}
|
|
1949
|
-
},
|
|
1744
|
+
}, Aa = { class: "container" }, ka = ["aria-label"], La = {
|
|
1950
1745
|
key: 0,
|
|
1951
1746
|
class: "h6 stepper__start"
|
|
1952
|
-
},
|
|
1953
|
-
function
|
|
1954
|
-
return
|
|
1747
|
+
}, $a = { class: "list-unstyled" }, Sa = { class: "h6 stepper__end" };
|
|
1748
|
+
function qa(e, a, t, i, s, o) {
|
|
1749
|
+
return m(), h("div", Aa, [
|
|
1955
1750
|
f("nav", {
|
|
1956
1751
|
class: "stepper",
|
|
1957
1752
|
"aria-label": t.label ? t.label : "Progress"
|
|
1958
1753
|
}, [
|
|
1959
|
-
t.label ? (
|
|
1960
|
-
f("ol",
|
|
1961
|
-
|
|
1754
|
+
t.label ? (m(), h("span", La, $(t.label), 1)) : _("", !0),
|
|
1755
|
+
f("ol", $a, [
|
|
1756
|
+
v(e.$slots, "default")
|
|
1962
1757
|
]),
|
|
1963
|
-
f("span",
|
|
1964
|
-
], 8,
|
|
1758
|
+
f("span", Sa, $(t.endlabel), 1)
|
|
1759
|
+
], 8, ka)
|
|
1965
1760
|
]);
|
|
1966
1761
|
}
|
|
1967
|
-
const
|
|
1968
|
-
const
|
|
1762
|
+
const Ni = /* @__PURE__ */ y(xa, [["render", qa]]);
|
|
1763
|
+
const Ea = {
|
|
1969
1764
|
name: "Snapshot",
|
|
1970
1765
|
props: {
|
|
1971
1766
|
items: {
|
|
@@ -1973,33 +1768,33 @@ const Ia = {
|
|
|
1973
1768
|
required: !0
|
|
1974
1769
|
}
|
|
1975
1770
|
}
|
|
1976
|
-
},
|
|
1771
|
+
}, Ta = {
|
|
1977
1772
|
class: "container snapshot",
|
|
1978
1773
|
ref: "wrapper"
|
|
1979
|
-
},
|
|
1980
|
-
function
|
|
1981
|
-
return
|
|
1982
|
-
|
|
1983
|
-
f("div",
|
|
1984
|
-
(
|
|
1774
|
+
}, Ha = { class: "row" }, Ma = ["href"], ja = { class: "lead snapshot__title" }, Ca = { class: "stat" };
|
|
1775
|
+
function Da(e, a, t, i, s, o) {
|
|
1776
|
+
return m(), h("div", Ta, [
|
|
1777
|
+
v(e.$slots, "default"),
|
|
1778
|
+
f("div", Ha, [
|
|
1779
|
+
(m(!0), h(D, null, R(t.items, (n, l) => (m(), h("div", {
|
|
1985
1780
|
class: "col",
|
|
1986
1781
|
key: l
|
|
1987
1782
|
}, [
|
|
1988
|
-
|
|
1783
|
+
n.link ? (m(), h("a", {
|
|
1989
1784
|
key: 0,
|
|
1990
|
-
href:
|
|
1991
|
-
}, "View " + $(
|
|
1785
|
+
href: n.link
|
|
1786
|
+
}, "View " + $(n.title), 9, Ma)) : _("", !0),
|
|
1992
1787
|
f("div", {
|
|
1993
|
-
class:
|
|
1788
|
+
class: L(`snapshot__item ${n.bg ? "bg-" + n.bg : ""}`)
|
|
1994
1789
|
}, [
|
|
1995
|
-
f("span",
|
|
1996
|
-
f("span",
|
|
1790
|
+
f("span", ja, $(n.title), 1),
|
|
1791
|
+
f("span", Ca, $(n.number), 1)
|
|
1997
1792
|
], 2)
|
|
1998
1793
|
]))), 128))
|
|
1999
1794
|
])
|
|
2000
1795
|
], 512);
|
|
2001
1796
|
}
|
|
2002
|
-
const
|
|
1797
|
+
const zi = /* @__PURE__ */ y(Ea, [["render", Da]]), Ra = {
|
|
2003
1798
|
name: "Stepper",
|
|
2004
1799
|
props: {
|
|
2005
1800
|
url: {
|
|
@@ -2015,43 +1810,43 @@ const Yi = /* @__PURE__ */ v(Ia, [["render", Ga]]), Ka = {
|
|
|
2015
1810
|
required: !1
|
|
2016
1811
|
}
|
|
2017
1812
|
}
|
|
2018
|
-
},
|
|
1813
|
+
}, Na = ["href", "aria-current"], za = {
|
|
2019
1814
|
key: 0,
|
|
2020
1815
|
class: "visually-hidden"
|
|
2021
1816
|
};
|
|
2022
|
-
function
|
|
2023
|
-
return
|
|
1817
|
+
function Fa(e, a, t, i, s, o) {
|
|
1818
|
+
return m(), h("li", null, [
|
|
2024
1819
|
f("a", {
|
|
2025
1820
|
href: t.url,
|
|
2026
|
-
class:
|
|
1821
|
+
class: L(`${t.status ? "bg-" + t.status : ""}${typeof t.current < "u" ? "current" : ""}`),
|
|
2027
1822
|
"aria-current": typeof t.current < "u" ? "step" : !1
|
|
2028
1823
|
}, [
|
|
2029
1824
|
f("span", null, [
|
|
2030
|
-
|
|
1825
|
+
v(e.$slots, "default")
|
|
2031
1826
|
]),
|
|
2032
|
-
t.status ? (
|
|
2033
|
-
], 10,
|
|
1827
|
+
t.status ? (m(), h("em", za, " - status: " + $(t.status), 1)) : _("", !0)
|
|
1828
|
+
], 10, Na)
|
|
2034
1829
|
]);
|
|
2035
1830
|
}
|
|
2036
|
-
const
|
|
2037
|
-
const
|
|
1831
|
+
const Fi = /* @__PURE__ */ y(Ra, [["render", Fa]]);
|
|
1832
|
+
const Pa = {
|
|
2038
1833
|
name: "Tabs",
|
|
2039
1834
|
mounted() {
|
|
2040
1835
|
this.$nextTick(function() {
|
|
2041
|
-
N(/* @__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-
|
|
1836
|
+
N(/* @__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-8dcdde59.mjs") }), "../../../assets/js/components/tabs/tabs.component.js").then((e) => {
|
|
2042
1837
|
window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", e.default);
|
|
2043
1838
|
}).catch((e) => {
|
|
2044
1839
|
console.log(e.message);
|
|
2045
1840
|
});
|
|
2046
1841
|
});
|
|
2047
1842
|
}
|
|
2048
|
-
},
|
|
2049
|
-
function
|
|
2050
|
-
return
|
|
2051
|
-
|
|
1843
|
+
}, Ia = { ref: "wrapper" };
|
|
1844
|
+
function Oa(e, a, t, i, s, o) {
|
|
1845
|
+
return m(), h("iam-tabs", Ia, [
|
|
1846
|
+
v(e.$slots, "default")
|
|
2052
1847
|
], 512);
|
|
2053
1848
|
}
|
|
2054
|
-
const
|
|
1849
|
+
const Pi = /* @__PURE__ */ y(Pa, [["render", Oa]]), Ba = {
|
|
2055
1850
|
name: "Tab",
|
|
2056
1851
|
props: {
|
|
2057
1852
|
title: {
|
|
@@ -2073,20 +1868,20 @@ const Ji = /* @__PURE__ */ v(Qa, [["render", ti]]), ei = {
|
|
|
2073
1868
|
isDisabled: !!this.disabled
|
|
2074
1869
|
};
|
|
2075
1870
|
}
|
|
2076
|
-
},
|
|
2077
|
-
function
|
|
2078
|
-
return
|
|
1871
|
+
}, Ua = { class: "tab" }, Va = ["innerHTML"];
|
|
1872
|
+
function Wa(e, a, t, i, s, o) {
|
|
1873
|
+
return m(), h("details", Ua, [
|
|
2079
1874
|
f("summary", {
|
|
2080
1875
|
innerHTML: t.title,
|
|
2081
|
-
class:
|
|
2082
|
-
}, null, 10,
|
|
2083
|
-
|
|
1876
|
+
class: L({ disabled: s.isDisabled })
|
|
1877
|
+
}, null, 10, Va),
|
|
1878
|
+
v(e.$slots, "default")
|
|
2084
1879
|
]);
|
|
2085
1880
|
}
|
|
2086
|
-
const
|
|
1881
|
+
const Ii = /* @__PURE__ */ y(Ba, [["render", Wa]]);
|
|
2087
1882
|
let lt = rt.props;
|
|
2088
1883
|
lt.fields.required = !1;
|
|
2089
|
-
const
|
|
1884
|
+
const Ka = {
|
|
2090
1885
|
components: {
|
|
2091
1886
|
Table: rt,
|
|
2092
1887
|
Input: st
|
|
@@ -2102,9 +1897,9 @@ const ni = {
|
|
|
2102
1897
|
console.log(this);
|
|
2103
1898
|
const a = new FormData(e.target);
|
|
2104
1899
|
let t = /* @__PURE__ */ new Date();
|
|
2105
|
-
const
|
|
2106
|
-
let s = t.getMonth() + 1,
|
|
2107
|
-
|
|
1900
|
+
const i = t.getFullYear();
|
|
1901
|
+
let s = t.getMonth() + 1, o = t.getDate();
|
|
1902
|
+
o < 10 && (o = "0" + o), s < 10 && (s = "0" + s), t = o + "/" + s + "/" + i, this.itemsData.unshift({
|
|
2108
1903
|
date_added: t,
|
|
2109
1904
|
user: a.get("user"),
|
|
2110
1905
|
note: a.get("addNote")
|
|
@@ -2132,111 +1927,111 @@ const ni = {
|
|
|
2132
1927
|
required: !1
|
|
2133
1928
|
}
|
|
2134
1929
|
}
|
|
2135
|
-
},
|
|
2136
|
-
function
|
|
2137
|
-
const
|
|
2138
|
-
return
|
|
2139
|
-
t.title ? (
|
|
1930
|
+
}, Ga = { class: "container note-feed mb-2" }, Ya = ["innerHTML"], Xa = ["action", "method"], Ja = ["value"], Qa = /* @__PURE__ */ f("button", { class: "btn btn-tertiary" }, "Submit note", -1);
|
|
1931
|
+
function Za(e, a, t, i, s, o) {
|
|
1932
|
+
const n = K("Table"), l = K("Input");
|
|
1933
|
+
return m(), h("div", Ga, [
|
|
1934
|
+
t.title ? (m(), h("span", {
|
|
2140
1935
|
key: 0,
|
|
2141
1936
|
class: "h3",
|
|
2142
1937
|
innerHTML: t.title
|
|
2143
|
-
}, null, 8,
|
|
2144
|
-
|
|
1938
|
+
}, null, 8, Ya)) : _("", !0),
|
|
1939
|
+
M(n, C({
|
|
2145
1940
|
fields: [{ key: "date_added" }, { key: "user" }, { key: "note" }],
|
|
2146
1941
|
items: s.itemsData
|
|
2147
1942
|
}, e.$props, { class: "mb-0" }), null, 16, ["items"]),
|
|
2148
1943
|
f("form", {
|
|
2149
1944
|
action: t.action,
|
|
2150
1945
|
method: t.method,
|
|
2151
|
-
onSubmit: a[0] || (a[0] = ft((d) =>
|
|
1946
|
+
onSubmit: a[0] || (a[0] = ft((d) => o.submitForm(...arguments), ["prevent"]))
|
|
2152
1947
|
}, [
|
|
2153
1948
|
f("input", {
|
|
2154
1949
|
type: "hidden",
|
|
2155
1950
|
value: t.user,
|
|
2156
1951
|
name: "user"
|
|
2157
|
-
}, null, 8,
|
|
2158
|
-
|
|
1952
|
+
}, null, 8, Ja),
|
|
1953
|
+
M(l, {
|
|
2159
1954
|
id: "addNote",
|
|
2160
1955
|
type: "textarea",
|
|
2161
1956
|
label: "Add note",
|
|
2162
1957
|
required: "",
|
|
2163
1958
|
class: "mw-100"
|
|
2164
1959
|
}),
|
|
2165
|
-
|
|
2166
|
-
], 40,
|
|
1960
|
+
Qa
|
|
1961
|
+
], 40, Xa)
|
|
2167
1962
|
]);
|
|
2168
1963
|
}
|
|
2169
|
-
const
|
|
1964
|
+
const Oi = /* @__PURE__ */ y(Ka, [["render", Za]]);
|
|
2170
1965
|
/*!
|
|
2171
|
-
* iamKey v5.1.0-
|
|
1966
|
+
* iamKey v5.1.0-beta10
|
|
2172
1967
|
* Copyright 2022-2023 iamproperty
|
|
2173
1968
|
*/
|
|
2174
|
-
function
|
|
2175
|
-
function t(
|
|
2176
|
-
let
|
|
2177
|
-
|
|
2178
|
-
let l =
|
|
2179
|
-
l && s.getAttribute("type") == "checkbox" && (
|
|
1969
|
+
function ti(e, a) {
|
|
1970
|
+
function t(i, s) {
|
|
1971
|
+
let o = !1, n = s.getAttribute("name");
|
|
1972
|
+
n.includes("[]") && (n = n.replace("[]", `[${s.value}]`));
|
|
1973
|
+
let l = i.querySelector(`[data-name="${n}"]`);
|
|
1974
|
+
l && s.getAttribute("type") == "checkbox" && (o = !s.checked);
|
|
2180
1975
|
let d = s.getAttribute("data-filter-text");
|
|
2181
|
-
if (l || (l = document.createElement("button"),
|
|
1976
|
+
if (l || (l = document.createElement("button"), i.appendChild(l)), l.setAttribute("type", "button"), l.classList.add("filter"), l.setAttribute("data-name", n), l.innerHTML = d.replace("$value", s.value), (!s.value || o) && l.remove(), s.parentNode.closest("[data-filter-text]")) {
|
|
2182
1977
|
let r = s.parentNode.closest("[data-filter-text]"), p = !0;
|
|
2183
|
-
if (
|
|
2184
|
-
let
|
|
2185
|
-
if (
|
|
2186
|
-
let
|
|
2187
|
-
|
|
1978
|
+
if (n = "", r.querySelectorAll("input").forEach((c, u) => {
|
|
1979
|
+
let g = c.getAttribute("name");
|
|
1980
|
+
if (n += `${u != 0 ? "," : ""}${g}`, i.querySelector(`[data-name="${g}"]`) && i.querySelector(`[data-name="${g}"]`).remove(), c.value) {
|
|
1981
|
+
let b = document.createElement("button");
|
|
1982
|
+
b.setAttribute("type", "button"), b.classList.add("filter"), b.setAttribute("data-name", g), b.innerHTML = d.replace("$value", c.value), i.appendChild(b);
|
|
2188
1983
|
} else
|
|
2189
1984
|
p = !1;
|
|
2190
|
-
}),
|
|
1985
|
+
}), i.querySelector(`[data-name="${n}"]`) && i.querySelector(`[data-name="${n}"]`).remove(), p) {
|
|
2191
1986
|
let c = r.getAttribute("data-filter-text");
|
|
2192
|
-
r.querySelectorAll("input").forEach((
|
|
2193
|
-
let x =
|
|
2194
|
-
|
|
1987
|
+
r.querySelectorAll("input").forEach((g, b) => {
|
|
1988
|
+
let x = g.getAttribute("name");
|
|
1989
|
+
i.querySelector(`[data-name="${x}"]`) && i.querySelector(`[data-name="${x}"]`).remove(), c = c.replace(`$${b + 1}`, g.value);
|
|
2195
1990
|
});
|
|
2196
|
-
let
|
|
2197
|
-
|
|
1991
|
+
let u = document.createElement("button");
|
|
1992
|
+
u.setAttribute("type", "button"), u.classList.add("filter"), u.setAttribute("data-name", n), u.innerHTML = c, i.appendChild(u);
|
|
2198
1993
|
}
|
|
2199
1994
|
}
|
|
2200
1995
|
}
|
|
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,
|
|
1996
|
+
Array.from(e.querySelectorAll('input[type="checkbox"]:checked')).forEach((i, s) => {
|
|
1997
|
+
t(a, i);
|
|
1998
|
+
}), Array.from(e.querySelectorAll("input[data-filter-text]")).forEach((i, s) => {
|
|
1999
|
+
i.addEventListener("change", function(o) {
|
|
2000
|
+
t(a, i), o.stopPropagation();
|
|
2206
2001
|
});
|
|
2207
|
-
}), e.addEventListener("change", function(
|
|
2208
|
-
if (
|
|
2209
|
-
let s =
|
|
2002
|
+
}), e.addEventListener("change", function(i) {
|
|
2003
|
+
if (i && i.target instanceof HTMLElement && i.target.closest("input[data-filter-text]")) {
|
|
2004
|
+
let s = i.target.closest("input[data-filter-text]");
|
|
2210
2005
|
t(a, s);
|
|
2211
2006
|
}
|
|
2212
|
-
}), a.addEventListener("click", function(
|
|
2213
|
-
if (
|
|
2214
|
-
let
|
|
2007
|
+
}), a.addEventListener("click", function(i) {
|
|
2008
|
+
if (i && i.target instanceof HTMLElement && i.target.closest(".filter")) {
|
|
2009
|
+
let n = i.target.closest(".filter"), l = n.getAttribute("data-name").split(",");
|
|
2215
2010
|
for (var s = 0; s < l.length; s++) {
|
|
2216
2011
|
let d = l[s], r = `[name="${d}"]`;
|
|
2217
2012
|
d.match(/\[(.*)\]/) && (d.replace(/\[(.*)\]/, "[]"), r = `[value="${d.replace(/.*\[(.*)\]/, "$1")}"]`);
|
|
2218
2013
|
let p = e.querySelectorAll(r);
|
|
2219
|
-
for (var
|
|
2220
|
-
let c = p[
|
|
2014
|
+
for (var o = 0; o < p.length; o++) {
|
|
2015
|
+
let c = p[o];
|
|
2221
2016
|
if (c.getAttribute("type") != "radio" && c.getAttribute("type") != "checkbox")
|
|
2222
2017
|
c.value = "";
|
|
2223
2018
|
else {
|
|
2224
2019
|
c.checked = !1;
|
|
2225
|
-
var
|
|
2226
|
-
e.hasAttribute("data-nosubmit") || c.closest("form").dispatchEvent(
|
|
2020
|
+
var i = new Event("force");
|
|
2021
|
+
e.hasAttribute("data-nosubmit") || c.closest("form").dispatchEvent(i);
|
|
2227
2022
|
}
|
|
2228
2023
|
}
|
|
2229
2024
|
}
|
|
2230
|
-
|
|
2025
|
+
n.remove();
|
|
2231
2026
|
}
|
|
2232
2027
|
}, !1);
|
|
2233
2028
|
}
|
|
2234
2029
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "Applied Filters" });
|
|
2235
|
-
class
|
|
2030
|
+
class ei extends HTMLElement {
|
|
2236
2031
|
constructor() {
|
|
2237
2032
|
super(), this.attachShadow({ mode: "open" });
|
|
2238
2033
|
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
|
|
2034
|
+
let i = this.classList.toString();
|
|
2240
2035
|
const s = document.createElement("template");
|
|
2241
2036
|
s.innerHTML = `
|
|
2242
2037
|
<style>
|
|
@@ -2245,53 +2040,53 @@ class hi extends HTMLElement {
|
|
|
2245
2040
|
|
|
2246
2041
|
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
2247
2042
|
</style>
|
|
2248
|
-
<div class="applied-filters ${
|
|
2043
|
+
<div class="applied-filters ${i}"></div>
|
|
2249
2044
|
<slot></slot>
|
|
2250
2045
|
`, this.shadowRoot.appendChild(s.content.cloneNode(!0));
|
|
2251
2046
|
}
|
|
2252
2047
|
connectedCallback() {
|
|
2253
|
-
|
|
2048
|
+
ti(this, this.shadowRoot.querySelector(".applied-filters"));
|
|
2254
2049
|
}
|
|
2255
2050
|
}
|
|
2256
|
-
window.customElements.get("iam-applied-filters") || window.customElements.define("iam-applied-filters",
|
|
2257
|
-
const
|
|
2051
|
+
window.customElements.get("iam-applied-filters") || window.customElements.define("iam-applied-filters", ei);
|
|
2052
|
+
const ai = {
|
|
2258
2053
|
name: "Header"
|
|
2259
2054
|
};
|
|
2260
|
-
function
|
|
2261
|
-
return
|
|
2262
|
-
|
|
2055
|
+
function ii(e, a, t, i, s, o) {
|
|
2056
|
+
return m(), h("iam-applied-filters", null, [
|
|
2057
|
+
v(e.$slots, "default")
|
|
2263
2058
|
]);
|
|
2264
2059
|
}
|
|
2265
|
-
const
|
|
2060
|
+
const Bi = /* @__PURE__ */ y(ai, [["render", ii]]);
|
|
2266
2061
|
/*!
|
|
2267
|
-
* iamKey v5.1.0-
|
|
2062
|
+
* iamKey v5.1.0-beta10
|
|
2268
2063
|
* Copyright 2022-2023 iamproperty
|
|
2269
2064
|
*/
|
|
2270
|
-
function
|
|
2271
|
-
|
|
2065
|
+
function ni(e, a) {
|
|
2066
|
+
oi(e, a);
|
|
2272
2067
|
}
|
|
2273
|
-
function
|
|
2068
|
+
function oi(e, a) {
|
|
2274
2069
|
var t;
|
|
2275
|
-
a.addEventListener("keyup", (
|
|
2070
|
+
a.addEventListener("keyup", (i) => {
|
|
2276
2071
|
clearTimeout(t), t = setTimeout(function() {
|
|
2277
2072
|
Z(e, a.value);
|
|
2278
2073
|
}, 500);
|
|
2279
|
-
}), a.addEventListener("change", (
|
|
2074
|
+
}), a.addEventListener("change", (i) => {
|
|
2280
2075
|
clearTimeout(t), Z(e, a.value);
|
|
2281
2076
|
});
|
|
2282
2077
|
}
|
|
2283
2078
|
const Z = function(e, a) {
|
|
2284
|
-
Array.from(e.querySelectorAll(":scope > li")).forEach((t,
|
|
2079
|
+
Array.from(e.querySelectorAll(":scope > li")).forEach((t, i) => {
|
|
2285
2080
|
let s = t.textContent.toLowerCase();
|
|
2286
2081
|
t.classList.add("d-none"), s.includes(a.toLowerCase()) && t.classList.remove("d-none");
|
|
2287
2082
|
}), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Filtered list", value: a });
|
|
2288
2083
|
};
|
|
2289
2084
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "filterlist" });
|
|
2290
|
-
class
|
|
2085
|
+
class ri extends HTMLElement {
|
|
2291
2086
|
constructor() {
|
|
2292
2087
|
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
|
-
|
|
2088
|
+
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");
|
|
2089
|
+
i.innerHTML = `
|
|
2295
2090
|
<style>
|
|
2296
2091
|
@import "${t}";
|
|
2297
2092
|
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
@@ -2318,24 +2113,24 @@ class yi extends HTMLElement {
|
|
|
2318
2113
|
<div class="list__wrapper">
|
|
2319
2114
|
<slot></slot>
|
|
2320
2115
|
</div>
|
|
2321
|
-
`, this.shadowRoot.appendChild(
|
|
2116
|
+
`, this.shadowRoot.appendChild(i.content.cloneNode(!0));
|
|
2322
2117
|
}
|
|
2323
2118
|
connectedCallback() {
|
|
2324
2119
|
let a = this.classList.toString();
|
|
2325
|
-
this.shadowRoot.querySelector(".list__wrapper").setAttribute("class", `list__wrapper ${a}`), this.querySelector("i.fa-search") || (this.innerHTML += '<i class="fa fa-light fa-search" aria-hidden="true" slot="icon"></i>'),
|
|
2120
|
+
this.shadowRoot.querySelector(".list__wrapper").setAttribute("class", `list__wrapper ${a}`), this.querySelector("i.fa-search") || (this.innerHTML += '<i class="fa fa-light fa-search" aria-hidden="true" slot="icon"></i>'), ni(this.querySelector("ul"), this.shadowRoot.querySelector("#search"));
|
|
2326
2121
|
}
|
|
2327
2122
|
}
|
|
2328
|
-
window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist",
|
|
2329
|
-
const
|
|
2123
|
+
window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist", ri);
|
|
2124
|
+
const si = {
|
|
2330
2125
|
name: "Filter list"
|
|
2331
2126
|
};
|
|
2332
|
-
function
|
|
2333
|
-
return
|
|
2334
|
-
|
|
2127
|
+
function li(e, a, t, i, s, o) {
|
|
2128
|
+
return m(), h("iam-filterlist", null, [
|
|
2129
|
+
v(e.$slots, "default")
|
|
2335
2130
|
]);
|
|
2336
2131
|
}
|
|
2337
|
-
const
|
|
2338
|
-
function
|
|
2132
|
+
const Ui = /* @__PURE__ */ y(si, [["render", li]]);
|
|
2133
|
+
function di(e) {
|
|
2339
2134
|
if (e.hasAttribute("data-type") && e.getAttribute("data-type") == "toast") {
|
|
2340
2135
|
let t = document.querySelector(".notification__holder");
|
|
2341
2136
|
t || (t = document.createElement("div"), t.classList.add("notification__holder"), t.classList.add("container"), document.querySelector("body").appendChild(t)), e.closest(".notification__holder") || t.appendChild(e);
|
|
@@ -2344,22 +2139,22 @@ function _i(e) {
|
|
|
2344
2139
|
event && event.target instanceof HTMLElement && event.target.closest("[data-dismiss-button]") && (t.preventDefault(), X(e));
|
|
2345
2140
|
}, !1), e.hasAttribute("data-timeout")) {
|
|
2346
2141
|
let t = e.getAttribute("data-timeout");
|
|
2347
|
-
var a = new
|
|
2142
|
+
var a = new ci(function() {
|
|
2348
2143
|
X(e);
|
|
2349
2144
|
}, t);
|
|
2350
|
-
e.addEventListener("mouseenter", (
|
|
2145
|
+
e.addEventListener("mouseenter", (i) => {
|
|
2351
2146
|
a.pause();
|
|
2352
|
-
}), e.addEventListener("mouseleave", (
|
|
2147
|
+
}), e.addEventListener("mouseleave", (i) => {
|
|
2353
2148
|
a.resume();
|
|
2354
2149
|
});
|
|
2355
2150
|
}
|
|
2356
2151
|
}
|
|
2357
|
-
function
|
|
2358
|
-
var t,
|
|
2152
|
+
function ci(e, a) {
|
|
2153
|
+
var t, i, s = a;
|
|
2359
2154
|
this.pause = function() {
|
|
2360
|
-
window.clearTimeout(t), s -= /* @__PURE__ */ new Date() -
|
|
2155
|
+
window.clearTimeout(t), s -= /* @__PURE__ */ new Date() - i;
|
|
2361
2156
|
}, this.resume = function() {
|
|
2362
|
-
|
|
2157
|
+
i = /* @__PURE__ */ new Date(), window.clearTimeout(t), t = window.setTimeout(e, s);
|
|
2363
2158
|
}, this.resume();
|
|
2364
2159
|
}
|
|
2365
2160
|
const X = function(e) {
|
|
@@ -2370,32 +2165,32 @@ window.dataLayer.push({
|
|
|
2370
2165
|
event: "customElementRegistered",
|
|
2371
2166
|
element: "Notification"
|
|
2372
2167
|
});
|
|
2373
|
-
class
|
|
2168
|
+
class ui extends HTMLElement {
|
|
2374
2169
|
constructor() {
|
|
2375
2170
|
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`,
|
|
2377
|
-
Array.from(
|
|
2171
|
+
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";`, o = this.querySelectorAll("a,button");
|
|
2172
|
+
Array.from(o).forEach((l, d) => {
|
|
2378
2173
|
l.setAttribute("slot", "btns"), l.classList.add("link");
|
|
2379
|
-
}), (
|
|
2380
|
-
const
|
|
2381
|
-
|
|
2174
|
+
}), (o.length || this.hasAttribute("data-dismiss")) && this.classList.add("notification--dismissable");
|
|
2175
|
+
const n = document.createElement("template");
|
|
2176
|
+
n.innerHTML = `
|
|
2382
2177
|
<style>
|
|
2383
2178
|
@import "${t}";
|
|
2384
|
-
${
|
|
2179
|
+
${i}
|
|
2385
2180
|
${this.hasAttribute("data-css") ? `${this.getAttribute("data-css")}` : ""}
|
|
2386
2181
|
</style>
|
|
2387
2182
|
|
|
2388
2183
|
<div class="notification">
|
|
2389
2184
|
<div class="notification__icon"><slot name="icon"></slot></div>
|
|
2390
|
-
<div class="notification__inner"><div class="notification__text"><slot></slot></div>${
|
|
2185
|
+
<div class="notification__inner"><div class="notification__text"><slot></slot></div>${o.length ? '<div class="notification__btns"><slot name="btns"></slot></div>' : ""}</div>
|
|
2391
2186
|
${this.hasAttribute("data-dismiss") ? '<div class="notification__dismiss"><button data-dismiss-button>Dismiss</button></div>' : ""}
|
|
2392
2187
|
</div>
|
|
2393
|
-
`, this.shadowRoot.appendChild(
|
|
2188
|
+
`, this.shadowRoot.appendChild(n.content.cloneNode(!0)), document.getElementById("notificationHolder") || document.head.insertAdjacentHTML("beforeend", `<style id="notificationHolder">${s}</style>`);
|
|
2394
2189
|
}
|
|
2395
2190
|
connectedCallback() {
|
|
2396
2191
|
const a = this.shadowRoot.querySelector("[data-dismiss-button]"), t = this.hasAttribute("data-status") ? this.getAttribute("data-status") : "white";
|
|
2397
2192
|
this.hasAttribute("data-type") ? this.classList.add(`bg-${t}`) : this.classList.add(`colour-${t}`);
|
|
2398
|
-
const
|
|
2193
|
+
const i = this;
|
|
2399
2194
|
if (!this.querySelector("i"))
|
|
2400
2195
|
switch (t) {
|
|
2401
2196
|
case "danger":
|
|
@@ -2410,31 +2205,31 @@ class xi extends HTMLElement {
|
|
|
2410
2205
|
default:
|
|
2411
2206
|
this.innerHTML += '<i class="fa-solid fa-circle-info" aria-hidden="true" slot="icon"></i>';
|
|
2412
2207
|
}
|
|
2413
|
-
|
|
2414
|
-
X(
|
|
2208
|
+
di(i), a && a.addEventListener("click", function(s) {
|
|
2209
|
+
X(i);
|
|
2415
2210
|
}, !1);
|
|
2416
2211
|
}
|
|
2417
2212
|
}
|
|
2418
|
-
const
|
|
2213
|
+
const mi = {
|
|
2419
2214
|
name: "Notification",
|
|
2420
2215
|
props: {},
|
|
2421
2216
|
created() {
|
|
2422
2217
|
this.$nextTick(function() {
|
|
2423
|
-
window.customElements.get("iam-notification") || window.customElements.define("iam-notification",
|
|
2218
|
+
window.customElements.get("iam-notification") || window.customElements.define("iam-notification", ui);
|
|
2424
2219
|
});
|
|
2425
2220
|
}
|
|
2426
2221
|
};
|
|
2427
|
-
function
|
|
2428
|
-
return
|
|
2429
|
-
|
|
2222
|
+
function hi(e, a, t, i, s, o) {
|
|
2223
|
+
return m(), h("iam-notification", null, [
|
|
2224
|
+
v(e.$slots, "default")
|
|
2430
2225
|
]);
|
|
2431
2226
|
}
|
|
2432
|
-
const
|
|
2227
|
+
const Vi = /* @__PURE__ */ y(mi, [["render", hi]]), pi = {
|
|
2433
2228
|
name: "Actionbar",
|
|
2434
2229
|
props: {},
|
|
2435
2230
|
mounted() {
|
|
2436
2231
|
this.$nextTick(function() {
|
|
2437
|
-
N(/* @__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-
|
|
2232
|
+
N(/* @__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-e086512b.mjs") }), "../../../assets/js/components/actionbar/actionbar.component.js").then((e) => {
|
|
2438
2233
|
window.customElements.get("iam-actionbar") || window.customElements.define("iam-actionbar", e.default);
|
|
2439
2234
|
}).catch((e) => {
|
|
2440
2235
|
console.log(e.message);
|
|
@@ -2442,31 +2237,31 @@ const ao = /* @__PURE__ */ v(ki, [["render", Li]]), Si = {
|
|
|
2442
2237
|
});
|
|
2443
2238
|
}
|
|
2444
2239
|
};
|
|
2445
|
-
function
|
|
2446
|
-
return
|
|
2447
|
-
|
|
2240
|
+
function bi(e, a, t, i, s, o) {
|
|
2241
|
+
return m(), h("iam-actionbar", null, [
|
|
2242
|
+
v(e.$slots, "default")
|
|
2448
2243
|
]);
|
|
2449
2244
|
}
|
|
2450
|
-
const
|
|
2245
|
+
const Wi = /* @__PURE__ */ y(pi, [["render", bi]]), fi = {
|
|
2451
2246
|
name: "Pagination",
|
|
2452
2247
|
props: {},
|
|
2453
2248
|
computed: {},
|
|
2454
2249
|
created() {
|
|
2455
2250
|
this.$nextTick(function() {
|
|
2456
|
-
window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination",
|
|
2251
|
+
window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination", ot);
|
|
2457
2252
|
});
|
|
2458
2253
|
},
|
|
2459
2254
|
updated() {
|
|
2460
2255
|
}
|
|
2461
2256
|
};
|
|
2462
|
-
function
|
|
2463
|
-
return
|
|
2257
|
+
function gi(e, a, t, i, s, o) {
|
|
2258
|
+
return m(), h("iam-pagination");
|
|
2464
2259
|
}
|
|
2465
|
-
const
|
|
2260
|
+
const Ki = /* @__PURE__ */ y(fi, [["render", gi]]), yi = {
|
|
2466
2261
|
name: "Address Lookup",
|
|
2467
2262
|
mounted() {
|
|
2468
2263
|
this.$nextTick(function() {
|
|
2469
|
-
N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/address-lookup/address-lookup.component.js": () => import("./address-lookup.component-
|
|
2264
|
+
N(/* @__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
2265
|
window.customElements.get("iam-address-lookup") || window.customElements.define("iam-address-lookup", e.default);
|
|
2471
2266
|
}).catch((e) => {
|
|
2472
2267
|
console.log(e.message);
|
|
@@ -2474,22 +2269,22 @@ const oo = /* @__PURE__ */ v(qi, [["render", Ei]]), Ti = {
|
|
|
2474
2269
|
});
|
|
2475
2270
|
}
|
|
2476
2271
|
};
|
|
2477
|
-
function
|
|
2478
|
-
return
|
|
2479
|
-
|
|
2272
|
+
function wi(e, a, t, i, s, o) {
|
|
2273
|
+
return m(), h("iam-address-lookup", null, [
|
|
2274
|
+
v(e.$slots, "default")
|
|
2480
2275
|
]);
|
|
2481
2276
|
}
|
|
2482
|
-
const
|
|
2277
|
+
const Gi = /* @__PURE__ */ y(yi, [["render", wi]]);
|
|
2483
2278
|
/*!
|
|
2484
|
-
* iamKey v5.1.0-
|
|
2279
|
+
* iamKey v5.1.0-beta10
|
|
2485
2280
|
* Copyright 2022-2023 iamproperty
|
|
2486
2281
|
*/
|
|
2487
2282
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "collapsible side menu" });
|
|
2488
|
-
class
|
|
2283
|
+
class vi extends HTMLElement {
|
|
2489
2284
|
constructor() {
|
|
2490
2285
|
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
|
-
|
|
2286
|
+
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");
|
|
2287
|
+
i.innerHTML = `
|
|
2493
2288
|
<style class="styles">
|
|
2494
2289
|
@import "${t}";
|
|
2495
2290
|
: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 +2306,11 @@ class Mi extends HTMLElement {
|
|
|
2511
2306
|
</div>
|
|
2512
2307
|
|
|
2513
2308
|
</div>
|
|
2514
|
-
`, this.shadowRoot.appendChild(
|
|
2309
|
+
`, this.shadowRoot.appendChild(i.content.cloneNode(!0));
|
|
2515
2310
|
}
|
|
2516
2311
|
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>`),
|
|
2312
|
+
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");
|
|
2313
|
+
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", (o) => {
|
|
2519
2314
|
a.classList.contains("open") ? (a.classList.remove("open"), s.removeAttribute("aria-expanded"), setTimeout(function() {
|
|
2520
2315
|
t.classList.add("closed");
|
|
2521
2316
|
}, 1e3), a.classList.add("pe-none"), setTimeout(function() {
|
|
@@ -2523,56 +2318,56 @@ class Mi extends HTMLElement {
|
|
|
2523
2318
|
}, 1e3)) : (t.classList.remove("closed"), setTimeout(function() {
|
|
2524
2319
|
a.classList.add("open"), s.setAttribute("aria-expanded", !0);
|
|
2525
2320
|
}, 100));
|
|
2526
|
-
}), a.addEventListener("mouseenter", (
|
|
2321
|
+
}), a.addEventListener("mouseenter", (o) => {
|
|
2527
2322
|
window.innerWidth > 992 && (a.classList.contains("open") || t.classList.remove("closed"), a.classList.add("hover"));
|
|
2528
|
-
}), a.addEventListener("mousemove", (
|
|
2323
|
+
}), a.addEventListener("mousemove", (o) => {
|
|
2529
2324
|
window.innerWidth > 992 && (a.classList.contains("open") || t.classList.remove("closed"));
|
|
2530
|
-
}), a.addEventListener("mouseleave", (
|
|
2325
|
+
}), a.addEventListener("mouseleave", (o) => {
|
|
2531
2326
|
window.innerWidth > 992 && (a.classList.remove("hover"), a.classList.contains("open") || setTimeout(function() {
|
|
2532
2327
|
t.classList.add("closed");
|
|
2533
2328
|
}, 1e3));
|
|
2534
2329
|
});
|
|
2535
2330
|
}
|
|
2536
2331
|
}
|
|
2537
|
-
window.customElements.get("iam-collapsible-side") || window.customElements.define("iam-collapsible-side",
|
|
2538
|
-
const
|
|
2332
|
+
window.customElements.get("iam-collapsible-side") || window.customElements.define("iam-collapsible-side", vi);
|
|
2333
|
+
const _i = {
|
|
2539
2334
|
name: "CollapsibleSideMenu",
|
|
2540
2335
|
props: {},
|
|
2541
2336
|
mounted() {
|
|
2542
2337
|
}
|
|
2543
2338
|
};
|
|
2544
|
-
function
|
|
2545
|
-
return
|
|
2546
|
-
|
|
2339
|
+
function xi(e, a, t, i, s, o) {
|
|
2340
|
+
return m(), h("iam-collapsible-side", null, [
|
|
2341
|
+
v(e.$slots, "default")
|
|
2547
2342
|
]);
|
|
2548
2343
|
}
|
|
2549
|
-
const
|
|
2344
|
+
const Yi = /* @__PURE__ */ y(_i, [["render", xi]]);
|
|
2550
2345
|
export {
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2346
|
+
Si as Accordion,
|
|
2347
|
+
qi as AccordionItem,
|
|
2348
|
+
Wi as Actionbar,
|
|
2349
|
+
Gi as AddressLookup,
|
|
2350
|
+
Bi as AppliedFilters,
|
|
2351
|
+
Ei as Banner,
|
|
2352
|
+
Ti as Card,
|
|
2353
|
+
Hi as Carousel,
|
|
2354
|
+
Yi as CollapsibleSideMenu,
|
|
2355
|
+
$i as FileUpload,
|
|
2356
|
+
Ui as Filterlist,
|
|
2357
|
+
Mi as Header,
|
|
2563
2358
|
st as Input,
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2359
|
+
Li as Logo,
|
|
2360
|
+
Ri as Nav,
|
|
2361
|
+
Oi as NoteFeed,
|
|
2362
|
+
Vi as Notification,
|
|
2363
|
+
Ki as Pagination,
|
|
2364
|
+
Di as PropertySearchbar,
|
|
2365
|
+
zi as Snapshot,
|
|
2366
|
+
Fi as Step,
|
|
2367
|
+
Ni as Stepper,
|
|
2368
|
+
Ii as Tab,
|
|
2574
2369
|
rt as Table,
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2370
|
+
Pi as Tabs,
|
|
2371
|
+
ji as Testimonial,
|
|
2372
|
+
Ci as Timeline
|
|
2578
2373
|
};
|