@iamproperty/components 4.1.0-beta-2 → 4.1.0
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.css.map +1 -1
- package/assets/css/components/actionbar-global.css +1 -1
- package/assets/css/components/actionbar-global.css.map +1 -1
- package/assets/css/components/address-lookup.css +1 -0
- package/assets/css/components/address-lookup.css.map +1 -0
- package/assets/css/components/admin-panel.css +1 -1
- package/assets/css/components/admin-panel.css.map +1 -1
- package/assets/css/components/dialog.css +1 -1
- package/assets/css/components/dialog.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/forms.css +1 -1
- package/assets/css/components/forms.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/lists.css +1 -1
- package/assets/css/components/lists.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/nav.css +1 -1
- package/assets/css/components/nav.css.map +1 -1
- package/assets/css/components/nav.old.css +1 -1
- package/assets/css/components/nav.old.css.map +1 -1
- package/assets/css/components/notification.css +1 -1
- package/assets/css/components/notification.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/property-searchbar.css +1 -1
- package/assets/css/components/property-searchbar.css.map +1 -1
- package/assets/css/components/table.css +1 -1
- package/assets/css/components/table.css.map +1 -1
- package/assets/css/components/table.extras.css +1 -0
- package/assets/css/components/table.extras.css.map +1 -0
- package/assets/css/components/table.global.css +1 -0
- package/assets/css/components/table.global.css.map +1 -0
- package/assets/css/components/tabs.css +1 -1
- package/assets/css/components/tabs.css.map +1 -1
- package/assets/css/core.min.css +1 -1
- package/assets/css/core.min.css.map +1 -1
- package/assets/css/style.min.css +1 -1
- package/assets/css/style.min.css.map +1 -1
- package/assets/js/components/accordion/accordion.component.min.js +1 -1
- package/assets/js/components/actionbar/actionbar.component.min.js +3 -3
- package/assets/js/components/actionbar/actionbar.component.min.js.map +1 -1
- package/assets/js/components/address-lookup/address-lookup.component.js +172 -0
- package/assets/js/components/address-lookup/address-lookup.component.min.js +36 -0
- package/assets/js/components/address-lookup/address-lookup.component.min.js.map +1 -0
- package/assets/js/components/applied-filters/applied-filters.component.min.js +2 -2
- package/assets/js/components/applied-filters/applied-filters.component.min.js.map +1 -1
- package/assets/js/components/card/card.component.min.js +1 -1
- package/assets/js/components/collapsible-side/collapsible-side.component.min.js +1 -1
- package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
- package/assets/js/components/header/header.component.min.js +2 -2
- package/assets/js/components/nav/nav.component.min.js +2 -2
- package/assets/js/components/notification/notification.component.min.js +4 -4
- package/assets/js/components/notification/notification.component.min.js.map +1 -1
- package/assets/js/components/pagination/pagination.component.js +152 -7
- package/assets/js/components/pagination/pagination.component.min.js +38 -12
- package/assets/js/components/pagination/pagination.component.min.js.map +1 -1
- package/assets/js/components/table/table.component.js +95 -69
- package/assets/js/components/table/table.component.min.js +9 -13
- package/assets/js/components/table/table.component.min.js.map +1 -1
- package/assets/js/components/tabs/tabs.component.js +3 -1
- package/assets/js/components/tabs/tabs.component.min.js +7 -5
- package/assets/js/components/tabs/tabs.component.min.js.map +1 -1
- package/assets/js/dynamic.min.js +5 -5
- package/assets/js/dynamic.min.js.map +1 -1
- package/assets/js/modules/applied-filters.js +3 -4
- package/assets/js/modules/dialogs.js +15 -3
- package/assets/js/modules/dynamicEvents.js +116 -0
- package/assets/js/modules/helpers.js +9 -0
- package/assets/js/modules/pagination.js +7 -10
- package/assets/js/modules/table.js +51 -52
- package/assets/js/modules/tabs.js +10 -1
- package/assets/js/scripts.bundle.js +53 -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/js/tests/table.spec.js +0 -57
- package/assets/sass/_components.scss +2 -0
- package/assets/sass/_corefiles.scss +6 -2
- package/assets/sass/_functions/variables.scss +5 -1
- package/assets/sass/components/actionbar-global.scss +11 -2
- package/assets/sass/components/address-lookup.scss +22 -0
- package/assets/sass/components/admin-panel.scss +4 -0
- package/assets/sass/components/dialog.scss +22 -13
- package/assets/sass/components/fileupload.scss +2 -0
- package/assets/sass/components/forms.scss +231 -71
- package/assets/sass/components/lists.scss +119 -1
- package/assets/sass/components/nav-global.scss +1 -0
- package/assets/sass/components/notification.scss +6 -1
- package/assets/sass/components/pagination.scss +192 -100
- package/assets/sass/components/table.extras.scss +650 -0
- package/assets/sass/components/table.global.scss +103 -0
- package/assets/sass/components/table.scss +41 -565
- package/assets/sass/components/tabs.scss +95 -32
- package/assets/sass/foundations/brand.scss +4 -0
- package/assets/sass/foundations/buttons.scss +14 -12
- package/assets/sass/foundations/links.scss +2 -1
- package/assets/sass/helpers/dynamic.scss +3 -0
- package/assets/sass/templates/form.scss +84 -0
- package/assets/svg/logo.svg +7 -0
- package/assets/ts/components/address-lookup/address-lookup.component.ts +215 -0
- package/assets/ts/components/pagination/README.md +11 -0
- package/assets/ts/components/pagination/pagination.component.ts +182 -8
- package/assets/ts/components/table/README.md +4 -2
- package/assets/ts/components/table/table.component.ts +134 -83
- package/assets/ts/components/tabs/README.md +6 -5
- package/assets/ts/components/tabs/tabs.component.ts +3 -1
- package/assets/ts/modules/applied-filters.ts +5 -8
- package/assets/ts/modules/dialogs.ts +19 -4
- package/assets/ts/modules/dynamicEvents.ts +145 -0
- package/assets/ts/modules/helpers.ts +16 -1
- package/assets/ts/modules/pagination.ts +7 -10
- package/assets/ts/modules/table.ts +70 -57
- package/assets/ts/modules/tabs.ts +21 -10
- package/assets/ts/tests/table.spec.ts +1 -61
- package/dist/components.es.js +1123 -1008
- package/dist/components.umd.js +165 -80
- package/dist/style.css +1 -1
- package/package.json +3 -2
- package/src/components/AddressLookup/AddressLookup.vue +27 -0
- package/src/components/Pagination/README.md +11 -0
- package/src/components/Table/README.md +4 -3
- package/src/components/Table/Table.vue +4 -0
- package/src/components/Tabs/README.md +10 -7
- package/src/components/Tabs/Tab.vue +7 -8
- package/src/components/Tabs/Tabs.vue +0 -1
- package/src/index.js +1 -0
- package/assets/js/tests/pagination.spec.js +0 -15
- package/assets/ts/tests/pagination.spec.ts +0 -21
package/dist/components.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { openBlock as h, createElementBlock as p, normalizeClass as
|
|
2
|
-
const
|
|
1
|
+
import { openBlock as h, createElementBlock as p, normalizeClass as S, createElementVNode as g, toDisplayString as $, createCommentVNode as _, Fragment as M, renderList as H, renderSlot as x, withDirectives as N, mergeProps as R, vModelDynamic as W, vModelText as pt, vModelSelect as bt, createTextVNode as ft, resolveComponent as F, createVNode as C, withModifiers as gt } from "vue";
|
|
2
|
+
const A = (e, a) => {
|
|
3
3
|
const t = e.__vccOpts || e;
|
|
4
|
-
for (const [i,
|
|
5
|
-
t[i] =
|
|
4
|
+
for (const [i, s] of a)
|
|
5
|
+
t[i] = s;
|
|
6
6
|
return t;
|
|
7
7
|
}, yt = {
|
|
8
8
|
name: "Logo",
|
|
@@ -30,352 +30,331 @@ const _ = (e, a) => {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}, vt = ["xlink:href"], wt = ["innerHTML"];
|
|
33
|
-
function At(e, a, t, i,
|
|
33
|
+
function At(e, a, t, i, s, r) {
|
|
34
34
|
return h(), p("div", {
|
|
35
|
-
class:
|
|
35
|
+
class: S(r.className)
|
|
36
36
|
}, [
|
|
37
37
|
(h(), p("svg", null, [
|
|
38
|
-
g("title", null, "iam " +
|
|
38
|
+
g("title", null, "iam " + $(t.id), 1),
|
|
39
39
|
g("use", {
|
|
40
|
-
"xlink:href": t.path +
|
|
40
|
+
"xlink:href": t.path + r.src
|
|
41
41
|
}, null, 8, vt)
|
|
42
42
|
])),
|
|
43
43
|
t.desc ? (h(), p("span", {
|
|
44
44
|
key: 0,
|
|
45
45
|
innerHTML: t.desc
|
|
46
|
-
}, null, 8, wt)) :
|
|
46
|
+
}, null, 8, wt)) : _("", !0)
|
|
47
47
|
], 2);
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const Xo = /* @__PURE__ */ A(yt, [["render", At]]);
|
|
50
50
|
/*!
|
|
51
|
-
* iamKey v4.1.0
|
|
51
|
+
* iamKey v4.1.0
|
|
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
|
-
if (!e.getAttribute("data-pages"))
|
|
58
|
-
return !1;
|
|
59
|
-
e.getAttribute("data-page") || e.setAttribute("data-page", 1);
|
|
60
|
-
let t = e.getAttribute("data-page"), i = e.getAttribute("data-pages"), o = e.getAttribute("data-total"), s = e.getAttribute("data-show"), r = e.getAttribute("data-increment");
|
|
61
|
-
if (i <= 1)
|
|
62
|
-
return a.innerHTML = "", !1;
|
|
63
|
-
let n = "";
|
|
64
|
-
for (let c = 1; c <= i; c++)
|
|
65
|
-
c == t ? n += `<li class="page-item active" aria-current="page"><span class="page-link">${c}</span></li>` : n += `<li class="page-item"><a href="?page=${c}" class="page-link" data-page="${c}">${c}</a></li>`;
|
|
66
|
-
return a.innerHTML = `<ul class="pagination mb-0 d-none d-sm-flex">
|
|
67
|
-
${t == 1 ? '<li class="page-item disabled"><span class="page-link">Previous</span></li>' : `<li class="page-item"><a href="?page=${parseInt(t) - 1}" class="page-link" data-page="${parseInt(t) - 1}">Previous</a></li>`}
|
|
68
|
-
${n}
|
|
69
|
-
${t == i ? '<li class="page-item disabled"><span class="page-link">Next</span></li>' : `<li class="page-item"><a href="?page=${parseInt(t) + 1}" class="page-link" data-page="${parseInt(t) + 1}">Next</a></li>`}
|
|
70
|
-
</ul>`, a.innerHTML += `<div class="d-sm-none text-center">
|
|
71
|
-
<span class="d-block pb-2">You've viewed ${s} of ${o} results</span>
|
|
72
|
-
<a href="?show=${parseInt(s) + parseInt(r)}" class="btn btn-primary w-100 m-0" data-show="${parseInt(s) + parseInt(r)}">Load more results</a>
|
|
73
|
-
</div>`, !0;
|
|
74
|
-
};
|
|
56
|
+
}, xt = (e, a) => String(e).padStart(a, "0"), Lt = (e) => e.charAt(0).toUpperCase() + e.slice(1);
|
|
75
57
|
var kt = function(e, a, t, i) {
|
|
76
|
-
function
|
|
77
|
-
return
|
|
78
|
-
r
|
|
58
|
+
function s(r) {
|
|
59
|
+
return r instanceof t ? r : new t(function(o) {
|
|
60
|
+
o(r);
|
|
79
61
|
});
|
|
80
62
|
}
|
|
81
|
-
return new (t || (t = Promise))(function(
|
|
63
|
+
return new (t || (t = Promise))(function(r, o) {
|
|
82
64
|
function n(m) {
|
|
83
65
|
try {
|
|
84
66
|
l(i.next(m));
|
|
85
|
-
} catch (
|
|
86
|
-
|
|
67
|
+
} catch (c) {
|
|
68
|
+
o(c);
|
|
87
69
|
}
|
|
88
70
|
}
|
|
89
|
-
function
|
|
71
|
+
function d(m) {
|
|
90
72
|
try {
|
|
91
73
|
l(i.throw(m));
|
|
92
|
-
} catch (
|
|
93
|
-
|
|
74
|
+
} catch (c) {
|
|
75
|
+
o(c);
|
|
94
76
|
}
|
|
95
77
|
}
|
|
96
78
|
function l(m) {
|
|
97
|
-
m.done ?
|
|
79
|
+
m.done ? r(m.value) : s(m.value).then(n, d);
|
|
98
80
|
}
|
|
99
81
|
l((i = i.apply(e, a || [])).next());
|
|
100
82
|
});
|
|
101
83
|
};
|
|
102
|
-
const
|
|
84
|
+
const et = (e) => {
|
|
103
85
|
const a = Array.from(e.querySelectorAll("thead th"));
|
|
104
86
|
Array.from(e.querySelectorAll("tbody tr")).forEach((t, i) => {
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
const
|
|
108
|
-
if (typeof
|
|
87
|
+
const s = Array.from(t.querySelectorAll("th, td")), r = ["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((o, n) => {
|
|
89
|
+
const d = a[n];
|
|
90
|
+
if (typeof d < "u") {
|
|
109
91
|
let l = document.createElement("div");
|
|
110
|
-
l.innerHTML =
|
|
92
|
+
l.innerHTML = d.innerHTML;
|
|
111
93
|
let m = l.textContent || l.innerText || "";
|
|
112
|
-
|
|
94
|
+
o.setAttribute("data-label", m), d.hasAttribute("data-td-class") && o.setAttribute("class", d.getAttribute("data-td-class")), d.hasAttribute("data-format") && (o.setAttribute("data-format", d.getAttribute("data-format")), o.innerHTML = G(d.getAttribute("data-format"), o.textContent.trim())), r.includes(o.textContent.trim().toLowerCase()) && o.setAttribute("data-content", o.textContent.trim().toLowerCase());
|
|
113
95
|
}
|
|
114
96
|
});
|
|
115
97
|
});
|
|
116
|
-
},
|
|
98
|
+
}, St = (e) => {
|
|
117
99
|
let a = 0;
|
|
118
100
|
return Array.from(e.querySelectorAll("tbody tr")).forEach((t, i) => {
|
|
119
|
-
let
|
|
120
|
-
if (
|
|
121
|
-
|
|
122
|
-
let
|
|
123
|
-
|
|
101
|
+
let s = window.getComputedStyle(document.querySelector("html")), r = t.querySelector(":scope > *:last-child > *:first-child");
|
|
102
|
+
if (r) {
|
|
103
|
+
r.classList.add("text-nowrap");
|
|
104
|
+
let o = r.offsetWidth / parseFloat(s.fontSize);
|
|
105
|
+
o += 1.7, a = a > o ? a : o;
|
|
124
106
|
}
|
|
125
107
|
}), a;
|
|
126
|
-
},
|
|
127
|
-
if (
|
|
108
|
+
}, qt = (e, a) => {
|
|
109
|
+
if (a.classList.contains(".table--fullwidth") && !a.hasAttribute("data-expandable") || e.querySelectorAll("thead tr th").length < 4 && !a.hasAttribute("data-expandable"))
|
|
128
110
|
return !1;
|
|
129
|
-
Array.from(e.querySelectorAll("
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
else {
|
|
134
|
-
let s = a.querySelector(":scope > :is(td,th):nth-child(2)"), r = s.textContent;
|
|
135
|
-
s.innerHTML = `<span class="td__content">${r}</span><button type="button" class="d-none">${r}</button>`;
|
|
136
|
-
}
|
|
111
|
+
Array.from(e.querySelectorAll("thead tr")).forEach((t, i) => {
|
|
112
|
+
t.insertAdjacentHTML("afterbegin", '<th class="th--fixed expand-button-heading"></th>');
|
|
113
|
+
}), Array.from(e.querySelectorAll("tbody tr")).forEach((t, i) => {
|
|
114
|
+
t.insertAdjacentHTML("afterbegin", '<td class="td--fixed td--expand"><button class="btn btn-compact btn-secondary" data-expand-button>Expand</button></td>');
|
|
137
115
|
});
|
|
138
|
-
},
|
|
116
|
+
}, $t = (e) => {
|
|
139
117
|
e.addEventListener("click", (a) => {
|
|
140
|
-
if (a && a.target instanceof HTMLElement && a.target.closest("
|
|
141
|
-
let t = a.target.closest("
|
|
118
|
+
if (a && a.target instanceof HTMLElement && a.target.closest("[data-expand-button]")) {
|
|
119
|
+
let t = a.target.closest("[data-expand-button]"), i = t.closest("tr");
|
|
142
120
|
i.getAttribute("data-view") == "full" ? i.setAttribute("data-view", "default") : i.setAttribute("data-view", "full"), t.blur();
|
|
143
121
|
}
|
|
144
122
|
});
|
|
145
|
-
},
|
|
123
|
+
}, at = (e, a) => {
|
|
146
124
|
let t = a.querySelector("[data-search]");
|
|
147
125
|
if (!t)
|
|
148
126
|
return !1;
|
|
149
|
-
const i = t.getAttribute("id"),
|
|
150
|
-
let
|
|
151
|
-
|
|
127
|
+
const i = t.getAttribute("id"), s = t.getAttribute("data-search").split(",");
|
|
128
|
+
let r = t.parentNode, o = {};
|
|
129
|
+
s.forEach((n, d) => {
|
|
152
130
|
Array.from(e.querySelectorAll('td[data-label="' + n.trim() + '"]')).forEach((l, m) => {
|
|
153
|
-
l.querySelector(".td__content") ?
|
|
131
|
+
l.querySelector(".td__content") ? o[l.querySelector(".td__content").textContent] = l.querySelector(".td__content").textContent : o[l.textContent] = l.textContent;
|
|
154
132
|
});
|
|
155
|
-
}), t.setAttribute("list", `${i}_list`), t.setAttribute("autocomplete", "off"),
|
|
156
|
-
}, Et = (e, a, t, i,
|
|
157
|
-
var
|
|
158
|
-
let
|
|
133
|
+
}), t.setAttribute("list", `${i}_list`), t.setAttribute("autocomplete", "off"), r.querySelector("datalist") || (r.innerHTML += `<datalist id="${i}_list"></datalist>`), r.querySelector("datalist").innerHTML = `${Object.keys(o).map((n) => `<option value="${n}"></option>`).join("")}`;
|
|
134
|
+
}, Et = (e, a, t, i, s) => {
|
|
135
|
+
var r;
|
|
136
|
+
let o = function(l, m = !1) {
|
|
159
137
|
if (a.classList.contains("processing"))
|
|
160
138
|
return !1;
|
|
161
|
-
if (l.type == "submit" && (a.classList.add("processing"), Array.from(a.querySelectorAll("[data-duplicate]")).forEach((
|
|
162
|
-
const
|
|
163
|
-
if (u.checked !=
|
|
139
|
+
if (l.type == "submit" && (a.classList.add("processing"), Array.from(a.querySelectorAll("[data-duplicate]")).forEach((c, b) => {
|
|
140
|
+
const f = c.getAttribute("data-duplicate"), u = document.getElementById(f), v = document.querySelector(`[for="${f}"] iam-card`);
|
|
141
|
+
if (u.checked != c.checked)
|
|
164
142
|
if (v) {
|
|
165
|
-
let
|
|
166
|
-
v.dispatchEvent(
|
|
143
|
+
let k = new Event("click");
|
|
144
|
+
v.dispatchEvent(k);
|
|
167
145
|
} else
|
|
168
|
-
u.checked =
|
|
146
|
+
u.checked = c.checked;
|
|
169
147
|
}), a.classList.remove("processing")), a.hasAttribute("data-ajax")) {
|
|
170
148
|
if (!m) {
|
|
171
|
-
let
|
|
172
|
-
|
|
149
|
+
let c = a.querySelector("[data-pagination]");
|
|
150
|
+
c.value = 1, i.setAttribute("data-page", 1);
|
|
173
151
|
}
|
|
174
|
-
|
|
152
|
+
rt(e, a, t, i);
|
|
175
153
|
} else
|
|
176
|
-
a.hasAttribute("data-submit") ? a.submit() : (
|
|
154
|
+
a.hasAttribute("data-submit") ? a.submit() : (Y(e, a, i), I(e, a));
|
|
177
155
|
if (a.hasAttribute("data-ajax-post")) {
|
|
178
|
-
let
|
|
179
|
-
const
|
|
180
|
-
|
|
156
|
+
let c = new FormData(a), b = new URLSearchParams(c).toString();
|
|
157
|
+
const f = new XMLHttpRequest();
|
|
158
|
+
f.open("GET", `${window.location.href}?ajax=true&${b}`), f.send();
|
|
181
159
|
}
|
|
182
160
|
};
|
|
183
161
|
a.addEventListener("keyup", (l) => {
|
|
184
|
-
clearTimeout(
|
|
185
|
-
|
|
162
|
+
clearTimeout(r), l && l.target instanceof HTMLElement && l.target.closest("[data-search]") && (r = setTimeout(function() {
|
|
163
|
+
o(l);
|
|
186
164
|
}, 500));
|
|
187
165
|
}), a.addEventListener("change", (l) => {
|
|
188
|
-
clearTimeout(
|
|
166
|
+
clearTimeout(r), l && l.target instanceof HTMLElement && l.target.closest("[data-sort]") && (a.hasAttribute("data-submit") || J(e, a, s), o(l)), l && l.target instanceof HTMLElement && l.target.closest("[data-search]") && o(l), l && l.target instanceof HTMLElement && l.target.closest("[data-filter][data-no-ajax]") ? (Y(e, a, i), I(e, a)) : (l && l.target instanceof HTMLElement && l.target.closest("[data-filter]") && l.target.closest("form .dialog__wrapper > dialog") || l && l.target instanceof HTMLElement && l.target.closest("[data-filter]") && !l.target.closest("form dialog")) && o(l), l && l.target instanceof HTMLElement && l.target.closest("[data-show]") && o(l), l && l.target instanceof HTMLElement && l.target.closest("[data-mimic]") && o(l);
|
|
189
167
|
}), a.addEventListener("click", (l) => {
|
|
190
|
-
if (clearTimeout(
|
|
191
|
-
a.classList.add("processing"), Array.from(a.querySelectorAll(".applied-filters")).forEach((
|
|
192
|
-
|
|
168
|
+
if (clearTimeout(r), l && l.target instanceof HTMLElement && l.target.closest('dialog button:not([type="button"])') && l.target.closest('dialog button:not([type="button"])').closest("dialog").close(), l && l.target instanceof HTMLElement && l.target.closest(".dialog__close") && (l.preventDefault(), l.stopPropagation()), l && l.target instanceof HTMLElement && l.target.closest("[data-clear]")) {
|
|
169
|
+
a.classList.add("processing"), Array.from(a.querySelectorAll(".applied-filters")).forEach((c, b) => {
|
|
170
|
+
c.innerHTML = "";
|
|
193
171
|
});
|
|
194
172
|
let m = a.elements;
|
|
195
|
-
for (let
|
|
196
|
-
switch (m[
|
|
173
|
+
for (let c = 0; c < m.length; c++)
|
|
174
|
+
switch (m[c].type.toLowerCase() ? m[c].type.toLowerCase() : "text") {
|
|
197
175
|
case "text":
|
|
198
176
|
case "password":
|
|
199
177
|
case "textarea":
|
|
200
|
-
m[
|
|
178
|
+
m[c].value = "";
|
|
201
179
|
break;
|
|
202
180
|
case "radio":
|
|
203
181
|
case "checkbox":
|
|
204
|
-
|
|
182
|
+
if (m[c].checked) {
|
|
183
|
+
let b = m[c], f = b.getAttribute("id"), u = document.querySelector(`[for="${f}"`);
|
|
184
|
+
if (u.querySelector("iam-card")) {
|
|
185
|
+
let v = u.querySelector("iam-card"), k = new Event("click");
|
|
186
|
+
v.dispatchEvent(k);
|
|
187
|
+
}
|
|
188
|
+
b.checked = !1;
|
|
189
|
+
}
|
|
205
190
|
break;
|
|
206
191
|
case "select-one":
|
|
207
192
|
case "select-multi":
|
|
208
|
-
m[
|
|
193
|
+
m[c].selectedIndex = -1;
|
|
209
194
|
break;
|
|
210
195
|
}
|
|
211
|
-
|
|
212
|
-
let b = new Event("click");
|
|
213
|
-
d.dispatchEvent(b);
|
|
214
|
-
}), a.classList.remove("processing"), a.hasAttribute("data-submit") || Q(e, a, o), r(l);
|
|
196
|
+
a.classList.remove("processing"), a.hasAttribute("data-submit") || J(e, a, s), o(l);
|
|
215
197
|
}
|
|
216
198
|
}), a.addEventListener("submit", (l) => {
|
|
217
|
-
clearTimeout(
|
|
199
|
+
clearTimeout(r), a.hasAttribute("data-submit") || l.preventDefault(), o(l);
|
|
218
200
|
}), a.addEventListener("force", (l) => {
|
|
219
|
-
|
|
201
|
+
o(l);
|
|
220
202
|
}), a.addEventListener("paginate", (l) => {
|
|
221
|
-
|
|
203
|
+
o(l, !0);
|
|
222
204
|
});
|
|
223
|
-
let n = [],
|
|
205
|
+
let n = [], d = [];
|
|
224
206
|
Array.from(a.querySelectorAll("[data-mimic]")).forEach((l, m) => {
|
|
225
|
-
let
|
|
226
|
-
Array.from(document.querySelectorAll(`[name="${
|
|
227
|
-
let u =
|
|
228
|
-
n.includes(u) || n.push(u),
|
|
207
|
+
let c = l.getAttribute("data-mimic");
|
|
208
|
+
Array.from(document.querySelectorAll(`[name="${c}"]`)).forEach((b, f) => {
|
|
209
|
+
let u = b.closest("form");
|
|
210
|
+
n.includes(u) || n.push(u), d.includes(c) || d.push(c);
|
|
229
211
|
});
|
|
230
212
|
}), n.forEach((l, m) => {
|
|
231
|
-
const
|
|
232
|
-
let
|
|
233
|
-
for (const [u, v] of
|
|
234
|
-
document.querySelector(`[data-mimic="${u}"]`) && !
|
|
235
|
-
for (const u of
|
|
213
|
+
const c = function() {
|
|
214
|
+
let b = [], f = new FormData(l);
|
|
215
|
+
for (const [u, v] of f)
|
|
216
|
+
document.querySelector(`[data-mimic="${u}"]`) && !b.includes(u) ? (b.push(u), document.querySelector(`[data-mimic="${u}"]`).value = v) : document.querySelector(`[data-mimic="${u}"]`) && (document.querySelector(`[data-mimic="${u}"]`).value += "," + v);
|
|
217
|
+
for (const u of b) {
|
|
236
218
|
const v = new Event("force");
|
|
237
219
|
a.dispatchEvent(v);
|
|
238
220
|
}
|
|
239
|
-
for (const u of
|
|
240
|
-
if (!
|
|
221
|
+
for (const u of d)
|
|
222
|
+
if (!f.has(u) && l.querySelector(`[name="${u}"]`)) {
|
|
241
223
|
document.querySelector(`[data-mimic="${u}"]`).value = "";
|
|
242
224
|
const v = new Event("force");
|
|
243
225
|
a.dispatchEvent(v);
|
|
244
226
|
}
|
|
245
227
|
};
|
|
246
|
-
l.addEventListener("force", (
|
|
247
|
-
|
|
248
|
-
}), l.addEventListener("change", (
|
|
249
|
-
|
|
228
|
+
l.addEventListener("force", (b) => {
|
|
229
|
+
c();
|
|
230
|
+
}), l.addEventListener("change", (b) => {
|
|
231
|
+
c();
|
|
250
232
|
});
|
|
251
233
|
});
|
|
252
|
-
},
|
|
234
|
+
}, J = (e, a, t) => {
|
|
253
235
|
if (a.getAttribute("data-ajax"))
|
|
254
236
|
return !1;
|
|
255
|
-
let i = e.querySelector("tbody"),
|
|
256
|
-
if (!
|
|
257
|
-
return i.innerHTML = t.innerHTML,
|
|
237
|
+
let i = e.querySelector("tbody"), s = a.querySelector("[data-sort]"), r = s.querySelector(`option:nth-child(${s.selectedIndex + 1})`), o = r.getAttribute("data-sort"), n = r.getAttribute("data-order"), d = r.getAttribute("data-format");
|
|
238
|
+
if (!o)
|
|
239
|
+
return i.innerHTML = t.innerHTML, et(e), !1;
|
|
258
240
|
let l = [];
|
|
259
241
|
["asc", "desc", "descending"].includes(n) || (l = n.split(","));
|
|
260
242
|
let m = [];
|
|
261
|
-
Array.from(i.querySelectorAll("tr")).forEach((
|
|
262
|
-
let u =
|
|
263
|
-
|
|
264
|
-
const v = { index: u, row:
|
|
243
|
+
Array.from(i.querySelectorAll("tr")).forEach((b, f) => {
|
|
244
|
+
let u = b.querySelector('td[data-label="' + o + '"], th[data-label="' + o + '"]').textContent.trim();
|
|
245
|
+
b.querySelector('[data-label="' + o + '"] .td__content') && (u = b.querySelector('[data-label="' + o + '"] .td__content').textContent.trim()), l.length && l.includes(u) && (u = l.indexOf(u)), _t(u) && (u = xt(u, 10)), d && d == "date" && (u = new Date(u));
|
|
246
|
+
const v = { index: u, row: b };
|
|
265
247
|
m.push(v);
|
|
266
|
-
}), m.sort((
|
|
267
|
-
let
|
|
268
|
-
m.forEach((
|
|
269
|
-
|
|
270
|
-
}), i.innerHTML =
|
|
271
|
-
},
|
|
248
|
+
}), m.sort((b, f) => b.index > f.index ? 1 : -1), (n == "descending" || n == "desc") && (m = m.reverse());
|
|
249
|
+
let c = "";
|
|
250
|
+
m.forEach((b, f) => {
|
|
251
|
+
c += b.row.outerHTML;
|
|
252
|
+
}), i.innerHTML = c;
|
|
253
|
+
}, Y = (e, a, t) => {
|
|
272
254
|
e.classList.remove("table--filtered");
|
|
273
|
-
let i = it(a),
|
|
255
|
+
let i = it(a), s = [], r = 0, o = a.querySelector("[data-pagination]") ? parseInt(a.querySelector("[data-pagination]").value) : 1, n = a.querySelector("[data-show]") ? parseInt(a.querySelector("[data-show]").value) : 15;
|
|
274
256
|
if (Array.from(e.querySelectorAll("tbody tr")).forEach((l, m) => {
|
|
275
257
|
l.classList.remove("filtered"), l.classList.remove("filtered--matched"), l.classList.remove("filtered--show"), l.removeAttribute("data-filtered-by");
|
|
276
258
|
}), a.querySelector("[data-search]")) {
|
|
277
259
|
let l = a.querySelector("[data-search]");
|
|
278
|
-
a.querySelector("[data-search]").getAttribute("data-search").split(",").forEach((m,
|
|
279
|
-
|
|
260
|
+
a.querySelector("[data-search]").getAttribute("data-search").split(",").forEach((m, c) => {
|
|
261
|
+
s.push({ column: `${m.trim()}`, value: `${l.value}` });
|
|
280
262
|
});
|
|
281
263
|
}
|
|
282
264
|
Array.from(a.querySelectorAll("[data-filter-count]")).forEach((l, m) => {
|
|
283
265
|
l.innerHTML = "", l.parentNode.classList.remove("hover");
|
|
284
266
|
});
|
|
285
|
-
let
|
|
267
|
+
let d = 0;
|
|
286
268
|
Object.values(i).forEach((l, m) => {
|
|
287
|
-
typeof l == "object" && Object.values(l).length ?
|
|
288
|
-
}),
|
|
289
|
-
l.innerHTML += `(${
|
|
269
|
+
typeof l == "object" && Object.values(l).length ? d += Object.values(l).length : d++;
|
|
270
|
+
}), d && Array.from(a.querySelectorAll("[data-filter-count]")).forEach((l, m) => {
|
|
271
|
+
l.innerHTML += `(${d})`, l.parentNode.classList.add("hover");
|
|
290
272
|
}), e.classList.add("table--filtered");
|
|
291
273
|
for (const [l, m] of Object.entries(i))
|
|
292
|
-
Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((
|
|
293
|
-
let
|
|
274
|
+
Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((c, b) => {
|
|
275
|
+
let f = !1;
|
|
294
276
|
m.forEach((u, v) => {
|
|
295
|
-
let
|
|
277
|
+
let k = c.querySelector(`[data-label="${l}"]`);
|
|
296
278
|
if (u && u == "$today")
|
|
297
|
-
u =
|
|
279
|
+
u = G("date", /* @__PURE__ */ new Date());
|
|
298
280
|
else if (u && u == "$yesterday") {
|
|
299
281
|
let L = /* @__PURE__ */ new Date();
|
|
300
|
-
L.setDate(L.getDate() - 1), u =
|
|
282
|
+
L.setDate(L.getDate() - 1), u = G("date", L);
|
|
301
283
|
} else if (u && (u == "$thisWeek" || u == "$lastWeek")) {
|
|
302
|
-
let L = /* @__PURE__ */ new Date(), E = new Date(L.setDate(L.getDate() - (L.getDay() - 1))),
|
|
303
|
-
if (L.setHours(0, 0, 0, 0), E.setHours(0, 0, 0, 0),
|
|
304
|
-
|
|
284
|
+
let L = /* @__PURE__ */ new Date(), E = new Date(L.setDate(L.getDate() - (L.getDay() - 1))), q = new Date(L.setDate(L.getDate() - L.getDay() + 7)), w = new Date(k.textContent.toLowerCase());
|
|
285
|
+
if (L.setHours(0, 0, 0, 0), E.setHours(0, 0, 0, 0), q.setHours(0, 0, 0, 0), w.setHours(0, 0, 0, 0), u == "$thisWeek")
|
|
286
|
+
f = w >= E && w <= q;
|
|
305
287
|
else {
|
|
306
|
-
let
|
|
307
|
-
|
|
288
|
+
let B = new Date(E.setDate(E.getDate() - 7)), T = new Date(q.setDate(q.getDate() - 7));
|
|
289
|
+
B.setHours(0, 0, 0, 0), T.setHours(0, 0, 0, 0), f = w >= B && w <= T;
|
|
308
290
|
}
|
|
309
291
|
} else if (u && u == "$thisMonth") {
|
|
310
|
-
let L = /* @__PURE__ */ new Date(), E = L.getFullYear(),
|
|
311
|
-
var y = new Date(E,
|
|
312
|
-
let w = new Date(
|
|
313
|
-
y.setHours(0, 0, 0, 0),
|
|
292
|
+
let L = /* @__PURE__ */ new Date(), E = L.getFullYear(), q = L.getMonth();
|
|
293
|
+
var y = new Date(E, q, 1), D = new Date(E, q + 1, 0);
|
|
294
|
+
let w = new Date(k.textContent.toLowerCase());
|
|
295
|
+
y.setHours(0, 0, 0, 0), D.setHours(0, 0, 0, 0), w.setHours(0, 0, 0, 0), f = w >= y && w <= D;
|
|
314
296
|
} else if (u && u == "$lastMonth") {
|
|
315
|
-
let L = /* @__PURE__ */ new Date(), E = L.getFullYear(),
|
|
316
|
-
var
|
|
317
|
-
let w = new Date(
|
|
318
|
-
|
|
297
|
+
let L = /* @__PURE__ */ new Date(), E = L.getFullYear(), q = L.getMonth();
|
|
298
|
+
var j = new Date(E, q - 1, 1), z = new Date(E, q, 0);
|
|
299
|
+
let w = new Date(k.textContent.toLowerCase());
|
|
300
|
+
j.setHours(0, 0, 0, 0), z.setHours(0, 0, 0, 0), w.setHours(0, 0, 0, 0), f = w >= j && w <= z;
|
|
319
301
|
}
|
|
320
|
-
|
|
321
|
-
}),
|
|
302
|
+
k && k.textContent.toLowerCase().includes(u.toLowerCase()) && (f = !0);
|
|
303
|
+
}), f || (c.classList.add("filtered"), c.setAttribute("data-filtered-by", l));
|
|
322
304
|
});
|
|
323
305
|
Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((l, m) => {
|
|
324
|
-
let
|
|
325
|
-
|
|
326
|
-
let u = l.querySelector(`[data-label="${
|
|
327
|
-
u &&
|
|
328
|
-
}),
|
|
306
|
+
let c = !(s.length > 0 && s[0].value.length >= 3);
|
|
307
|
+
s.forEach((b, f) => {
|
|
308
|
+
let u = l.querySelector(`[data-label="${b.column}"]`);
|
|
309
|
+
u && b.value.length >= 3 && u.textContent.toLowerCase().includes(b.value.toLowerCase()) && (c = !0);
|
|
310
|
+
}), c || l.classList.add("filtered");
|
|
329
311
|
}), Array.from(e.querySelectorAll("tbody tr:not(.filtered")).forEach((l, m) => {
|
|
330
|
-
|
|
331
|
-
}), t && (t.setAttribute("data-
|
|
332
|
-
},
|
|
333
|
-
Array.from(a.querySelectorAll("[data-query]")).forEach((i,
|
|
334
|
-
let
|
|
335
|
-
if (
|
|
336
|
-
t.hasAttribute("data-total") ?
|
|
337
|
-
else if (!
|
|
338
|
-
let n =
|
|
312
|
+
r++, l.classList.add("filtered--matched"), Math.ceil(r / n) == parseInt(o) && l.classList.add("filtered--show");
|
|
313
|
+
}), t && (t.setAttribute("data-total", r), t.setAttribute("data-show", n), t.setAttribute("data-page", o));
|
|
314
|
+
}, I = (e, a, t) => {
|
|
315
|
+
Array.from(a.querySelectorAll("[data-query]")).forEach((i, s) => {
|
|
316
|
+
let r = i.getAttribute("data-query"), o;
|
|
317
|
+
if (r == "total")
|
|
318
|
+
t.hasAttribute("data-total") ? o = t.getAttribute("data-total") : o = (e.classList.contains("table--filtered"), e.querySelectorAll("tbody tr").length);
|
|
319
|
+
else if (!r.includes(" == ") && r.includes(" & ")) {
|
|
320
|
+
let n = r.split(" & "), d = "";
|
|
339
321
|
n.forEach((l) => {
|
|
340
|
-
|
|
341
|
-
}),
|
|
342
|
-
} else if (!
|
|
343
|
-
|
|
344
|
-
else if (
|
|
345
|
-
let n =
|
|
346
|
-
|
|
322
|
+
d += `:not([data-filtered-by="${l}"])`;
|
|
323
|
+
}), o = Array.from(e.querySelectorAll(`tbody tr${d}`)).length;
|
|
324
|
+
} else if (!r.includes(" == "))
|
|
325
|
+
o = Array.from(e.querySelectorAll(`tbody tr:not([data-filtered-by="${r}"])`)).length;
|
|
326
|
+
else if (r.includes(" && ")) {
|
|
327
|
+
let n = r.split(" && ");
|
|
328
|
+
o = Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).filter(function(d) {
|
|
347
329
|
let l = !0;
|
|
348
|
-
for (const [m,
|
|
349
|
-
let
|
|
350
|
-
(!
|
|
330
|
+
for (const [m, c] of Object.entries(n)) {
|
|
331
|
+
let b = c.split(" == ");
|
|
332
|
+
(!d.querySelector(`td[data-label="${b[0]}"]`) || d.querySelector(`td[data-label="${b[0]}"]`).textContent != `${b[1]}`) && (l = !1);
|
|
351
333
|
}
|
|
352
334
|
return l;
|
|
353
335
|
}).length;
|
|
354
336
|
} else {
|
|
355
|
-
let n =
|
|
356
|
-
|
|
357
|
-
return
|
|
337
|
+
let n = r.split(" == ");
|
|
338
|
+
o = Array.from(e.querySelectorAll(`tbody tr.filtered--matched td[data-label="${n[0]}"], tbody tr[data-filtered-by="${n[0]}"] td[data-label="${n[0]}"]`)).filter(function(d) {
|
|
339
|
+
return d.textContent === n[1];
|
|
358
340
|
}).length;
|
|
359
341
|
}
|
|
360
|
-
i.hasAttribute("data-total") ? i.setAttribute("data-total",
|
|
342
|
+
i.hasAttribute("data-total") ? i.setAttribute("data-total", o) : i.innerHTML = o;
|
|
361
343
|
});
|
|
362
344
|
}, Tt = function(e, a, t, i) {
|
|
363
|
-
t.addEventListener("
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
let s = a.querySelector("[data-show]"), r = o.target.closest("[data-show]").getAttribute("data-show");
|
|
377
|
-
s.value = r, i.setAttribute("data-show", r), a.dispatchEvent(new Event("submit"));
|
|
378
|
-
}
|
|
345
|
+
t.addEventListener("update-page", (s) => {
|
|
346
|
+
let r = a.querySelector("[data-pagination]"), o = s.detail.page;
|
|
347
|
+
if (r.value = o, a.dispatchEvent(new Event("paginate")), i.setAttribute("data-page", o), e.hasAttribute("data-show-history")) {
|
|
348
|
+
const n = new URL(location);
|
|
349
|
+
n.searchParams.set("page", o), history.pushState({ type: "pagination", form: a.getAttribute("id"), page: o }, "", n);
|
|
350
|
+
}
|
|
351
|
+
if (!i.hasAttribute("data-no-scroll")) {
|
|
352
|
+
const n = e.getBoundingClientRect().top + window.pageYOffset + -250;
|
|
353
|
+
window.scrollTo({ top: n, behavior: "smooth" });
|
|
354
|
+
}
|
|
355
|
+
}), t.addEventListener("update-show", (s) => {
|
|
356
|
+
let r = a.querySelector("[data-show]"), o = s.detail.show;
|
|
357
|
+
r.value = o, i.setAttribute("data-show", o), a.dispatchEvent(new Event("submit"));
|
|
379
358
|
});
|
|
380
359
|
}, Mt = (e, a) => {
|
|
381
360
|
if (!e)
|
|
@@ -385,99 +364,100 @@ const at = (e) => {
|
|
|
385
364
|
});
|
|
386
365
|
}, Ht = function(e) {
|
|
387
366
|
for (var a = [], t = e.getElementsByTagName("tr"), i = 0; i < t.length; i++) {
|
|
388
|
-
for (var
|
|
389
|
-
|
|
390
|
-
a.push(
|
|
367
|
+
for (var s = t[i].querySelectorAll("td,th"), r = [], o = 0; o < s.length; o++)
|
|
368
|
+
r.push(`"${s[o].textContent}"`);
|
|
369
|
+
a.push(r.join(","));
|
|
391
370
|
}
|
|
392
371
|
a = a.join(`
|
|
393
372
|
`);
|
|
394
373
|
let n = new Blob([a], { type: "text/csv" });
|
|
395
|
-
var
|
|
396
|
-
|
|
374
|
+
var d = document.createElement("a");
|
|
375
|
+
d.download = "export.csv";
|
|
397
376
|
var l = window.URL.createObjectURL(n);
|
|
398
|
-
|
|
399
|
-
},
|
|
400
|
-
if (
|
|
401
|
-
let
|
|
402
|
-
Array.from(e.querySelectorAll("tr")).forEach((
|
|
403
|
-
let
|
|
404
|
-
|
|
377
|
+
d.href = l, d.style.display = "none", document.body.appendChild(d), d.click(), document.body.removeChild(d);
|
|
378
|
+
}, ot = function(e, a, t, i) {
|
|
379
|
+
if (et(e), qt(e, i), I(e, a, i), i && i.classList.contains("table--cta")) {
|
|
380
|
+
let s = function() {
|
|
381
|
+
Array.from(e.querySelectorAll("tr")).forEach((o, n) => {
|
|
382
|
+
let d = o.offsetHeight;
|
|
383
|
+
o.style.setProperty("--row-height", `${d}px`);
|
|
405
384
|
});
|
|
406
385
|
};
|
|
407
|
-
const
|
|
408
|
-
i.style.setProperty("--cta-width", `${
|
|
386
|
+
const r = St(e);
|
|
387
|
+
i.style.setProperty("--cta-width", `${r}rem`), new ResizeObserver(s).observe(e);
|
|
409
388
|
}
|
|
410
389
|
}, it = function(e) {
|
|
411
390
|
let a = new Object();
|
|
412
391
|
return Array.from(e.querySelectorAll("[data-filter]")).forEach((t, i) => {
|
|
413
392
|
if (!(t.type == "radio" && !t.checked) && !(t.type == "checkbox" && !t.checked) && t && t.value) {
|
|
414
|
-
let
|
|
415
|
-
a[
|
|
393
|
+
let s = t.getAttribute("data-filter");
|
|
394
|
+
a[s] || (a[s] = new Array()), a[s].push(t.value);
|
|
416
395
|
}
|
|
417
396
|
}), a;
|
|
418
|
-
},
|
|
397
|
+
}, rt = function(e, a, t, i) {
|
|
419
398
|
return kt(this, void 0, void 0, function* () {
|
|
420
|
-
const
|
|
421
|
-
let
|
|
399
|
+
const s = (f, u, v) => u.split(/[\.\[\]\'\"]/).filter((k) => k).reduce((k, y) => k ? k[y] : v, f);
|
|
400
|
+
let r = new FormData(a), o = new URLSearchParams(r).toString(), n = e.querySelectorAll("thead tr th"), d = e.querySelector("tbody"), l = a.getAttribute("data-ajax");
|
|
422
401
|
i.classList.add("table--loading");
|
|
423
402
|
let m = it(a);
|
|
424
|
-
Array.from(a.querySelectorAll("[data-filter-count]")).forEach((
|
|
425
|
-
|
|
403
|
+
Array.from(a.querySelectorAll("[data-filter-count]")).forEach((f, u) => {
|
|
404
|
+
f.innerHTML = "", f.parentNode.classList.remove("hover");
|
|
426
405
|
});
|
|
427
|
-
let
|
|
428
|
-
Object.values(m).forEach((
|
|
429
|
-
typeof
|
|
430
|
-
}),
|
|
431
|
-
|
|
406
|
+
let c = 0;
|
|
407
|
+
Object.values(m).forEach((f, u) => {
|
|
408
|
+
typeof f == "object" && Object.values(f).length ? c += Object.values(f).length : c++;
|
|
409
|
+
}), c && Array.from(a.querySelectorAll("[data-filter-count]")).forEach((f, u) => {
|
|
410
|
+
f.innerHTML += `(${c})`, f.parentNode.classList.add("hover");
|
|
432
411
|
}), window.controller || (window.controller = []), window.controller[l] && window.controller[l].abort(), window.controller[l] = new AbortController();
|
|
433
|
-
const { signal:
|
|
412
|
+
const { signal: b } = controller[l];
|
|
413
|
+
t.setAttribute("data-loading", "true"), a.classList.add("processing");
|
|
434
414
|
try {
|
|
435
|
-
yield fetch(l + "?" +
|
|
436
|
-
let u = a.hasAttribute("data-schema") ? a.getAttribute("data-schema") : "data", v = a.hasAttribute("data-schema-total") ? a.getAttribute("data-schema-total") : "meta.total",
|
|
437
|
-
|
|
438
|
-
var
|
|
439
|
-
n.forEach((w,
|
|
415
|
+
yield fetch(l + "?" + o, { signal: b, method: "get", credentials: "same-origin", headers: new Headers({ "Content-Type": "application/json", Accept: "application/json", "X-Requested-With": "XMLHttpRequest" }) }).then((f) => f.json()).then((f) => {
|
|
416
|
+
let u = a.hasAttribute("data-schema") ? a.getAttribute("data-schema") : "data", v = a.hasAttribute("data-schema-total") ? a.getAttribute("data-schema-total") : "meta.total", k = a.hasAttribute("data-schema-page") ? a.getAttribute("data-schema-page") : "meta.current_page", y = s(f, v, 15), D = s(f, k, 1), j = s(f, u), z = i.hasAttribute("data-empty-msg") ? i.getAttribute("data-empty-msg") : "No results found";
|
|
417
|
+
j ? (d.innerHTML = "", j.forEach((L, E) => {
|
|
418
|
+
var q = document.createElement("tr");
|
|
419
|
+
n.forEach((w, B) => {
|
|
440
420
|
let T = "";
|
|
441
|
-
var
|
|
442
|
-
if (
|
|
443
|
-
var
|
|
444
|
-
T =
|
|
445
|
-
return
|
|
421
|
+
var O = document.createElement("td");
|
|
422
|
+
if (O.setAttribute("data-label", w.innerText), w.getAttribute("data-output")) {
|
|
423
|
+
var V = w.getAttribute("data-output");
|
|
424
|
+
T = V.replace(new RegExp(/{(.*?)}/, "gm"), function(ct) {
|
|
425
|
+
return s(L, ct.replace("{", "").replace("}", ""));
|
|
446
426
|
});
|
|
447
427
|
}
|
|
448
428
|
if (w.hasAttribute("data-output-array")) {
|
|
449
|
-
var
|
|
450
|
-
let ut =
|
|
451
|
-
T = "", ut.forEach((
|
|
452
|
-
let mt = w.getAttribute("data-output-array"),
|
|
429
|
+
var V = w.getAttribute("data-output");
|
|
430
|
+
let ut = s(L, V.replace("{", "").replace("}", ""));
|
|
431
|
+
T = "", ut.forEach((X, Go) => {
|
|
432
|
+
let mt = w.getAttribute("data-output-array"), P = "";
|
|
453
433
|
if (w.hasAttribute("data-output-array-property") && w.hasAttribute("data-output-array-transform")) {
|
|
454
|
-
const U =
|
|
455
|
-
|
|
434
|
+
const U = s(X, w.getAttribute("data-output-array-property")), ht = JSON.parse(w.getAttribute("data-output-array-transform"))[U];
|
|
435
|
+
P = mt.replace(`{${w.getAttribute("data-output-array-property")}}`, ht);
|
|
456
436
|
}
|
|
457
|
-
|
|
458
|
-
return
|
|
459
|
-
}), T +=
|
|
437
|
+
P = P.replace(new RegExp(/{(.*?)}/, "gm"), function(U) {
|
|
438
|
+
return s(X, U.replace("{", "").replace("}", ""));
|
|
439
|
+
}), T += P;
|
|
460
440
|
});
|
|
461
441
|
}
|
|
462
|
-
w.hasAttribute("data-transform") && (T = JSON.parse(w.getAttribute("data-transform"))[T], !T && w.hasAttribute("data-default") && (T = w.getAttribute("data-default"))),
|
|
463
|
-
}),
|
|
464
|
-
}),
|
|
465
|
-
let
|
|
466
|
-
L.hasAttribute("data-total") ? L.setAttribute("data-total",
|
|
467
|
-
}), parseInt(y) == 0 && (
|
|
442
|
+
w.hasAttribute("data-transform") && (T = JSON.parse(w.getAttribute("data-transform"))[T], !T && w.hasAttribute("data-default") && (T = w.getAttribute("data-default"))), O.innerHTML = T, q.appendChild(O);
|
|
443
|
+
}), d.appendChild(q);
|
|
444
|
+
}), at(e, a), i.setAttribute("data-total", parseInt(y)), i.setAttribute("data-page", parseInt(D)), ot(e, a, t, i), Array.from(a.querySelectorAll("[data-ajax-query]")).forEach((L, E) => {
|
|
445
|
+
let q = s(f, L.getAttribute("data-ajax-query"), "");
|
|
446
|
+
L.hasAttribute("data-total") ? L.setAttribute("data-total", q) : L.innerHTML = q;
|
|
447
|
+
}), parseInt(y) == 0 && (d.innerHTML = `<tr><td colspan="100%"><span>${z}</span></td></tr>`), i.classList.remove("table--loading"), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Ajax table loaded", url: l, formData: o })) : d.innerHTML = '<tr><td colspan="100%"><span>Error loading table</span></td></tr>', t.removeAttribute("data-loading"), a.classList.remove("processing");
|
|
468
448
|
});
|
|
469
|
-
} catch (
|
|
470
|
-
console.log(
|
|
449
|
+
} catch (f) {
|
|
450
|
+
console.log(f);
|
|
471
451
|
}
|
|
472
452
|
});
|
|
473
|
-
},
|
|
453
|
+
}, G = (e, a) => {
|
|
474
454
|
switch (e) {
|
|
475
455
|
case "datetime":
|
|
476
456
|
return new Date(a).toLocaleDateString("en-gb", { weekday: "short", year: "2-digit", month: "long", day: "numeric" }) + " " + new Date(a).toLocaleTimeString("en-gb", { hour: "2-digit", minute: "2-digit" });
|
|
477
457
|
case "date":
|
|
478
458
|
return new Date(a).toLocaleDateString("en-gb", { year: "2-digit", month: "long", day: "numeric" });
|
|
479
459
|
case "capitalise":
|
|
480
|
-
return a =
|
|
460
|
+
return a = Lt(a);
|
|
481
461
|
}
|
|
482
462
|
};
|
|
483
463
|
class Ct extends HTMLElement {
|
|
@@ -487,6 +467,8 @@ class Ct extends HTMLElement {
|
|
|
487
467
|
i.innerHTML = `
|
|
488
468
|
<style>
|
|
489
469
|
@import "${t}";
|
|
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.5rem;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 */
|
|
471
|
+
|
|
490
472
|
|
|
491
473
|
:host(.mh-sm){
|
|
492
474
|
max-height: none!important;
|
|
@@ -506,44 +488,181 @@ class Ct extends HTMLElement {
|
|
|
506
488
|
<slot></slot>
|
|
507
489
|
</div>
|
|
508
490
|
</div>
|
|
509
|
-
<
|
|
510
|
-
`, this.shadowRoot.appendChild(i.content.cloneNode(!0));
|
|
491
|
+
<iam-pagination class="pagination--table" ${this.hasAttribute("data-page") ? `data-page="${this.getAttribute("data-page")}"` : ""} ></iam-pagination>
|
|
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)}}@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) tr[data-view=full] [data-expand-button]: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{padding-left:0 !important;margin:0 !important}iam-table input:is([type=radio],[type=checkbox])+label:before,iam-table input:is([type=radio],[type=checkbox])+label: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{padding-left:0 !important;margin:0 !important;min-height:2rem}iam-table input:is([type=radio],[type=checkbox])+label:before,iam-table input:is([type=radio],[type=checkbox])+label: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] tr[data-view=full] [data-expand-button]:before{content:""}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;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.extras.css.map */
|
|
493
|
+
</style>`);
|
|
511
494
|
}
|
|
512
495
|
connectedCallback() {
|
|
513
496
|
const a = new URLSearchParams(window.location.search);
|
|
514
|
-
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",
|
|
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"));
|
|
515
498
|
let t = this.classList.toString();
|
|
516
|
-
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(".
|
|
517
|
-
this.table
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
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"), at(this.table, this.form), this.form.querySelector("[data-pagination]") || (this.form.innerHTML += `<input name="page" type="hidden" value="${this.getAttribute("data-page")}" data-pagination="true" />`), this.form.querySelector("[data-show]") || (this.form.innerHTML += `<input name="show" type="hidden" value="${this.getAttribute("data-show")}" data-show="true" />`), $t(this.table), Et(this.table, this.form, this.pagination, this, this.savedTableBody), Tt(this.table, this.form, this.pagination, this), Mt(this.shadowRoot.querySelector("[data-export]"), this.table), this.form.getAttribute("data-ajax"))
|
|
500
|
+
rt(this.table, this.form, this.pagination, this);
|
|
501
|
+
else {
|
|
502
|
+
let i = function(r = 1) {
|
|
503
|
+
return Math.floor(Math.random() * Date.now() * (r + 1));
|
|
504
|
+
};
|
|
505
|
+
if (this.querySelector("iam-actionbar[data-selectall]")) {
|
|
506
|
+
const r = this.querySelector("iam-actionbar[data-selectall]");
|
|
507
|
+
Array.from(this.table.querySelectorAll("thead tr")).forEach((o, n) => {
|
|
508
|
+
o.insertAdjacentHTML("afterbegin", '<th class="th--fixed"></th>');
|
|
509
|
+
}), Array.from(this.table.querySelectorAll("tbody tr")).forEach((o, n) => {
|
|
510
|
+
let d = `row${i(n)}`;
|
|
511
|
+
o.insertAdjacentHTML("afterbegin", `<td class="td--fixed selectrow"><input type="checkbox" name="row" id="${d}"/><label for="${d}"><span class="visually-hidden">Select row</span></label></td>`);
|
|
512
|
+
}), this.table.addEventListener("change", (o) => {
|
|
513
|
+
if (o && o.target instanceof HTMLElement && o.target.closest(".selectrow input")) {
|
|
514
|
+
let n = this.table.querySelectorAll('.selectrow input[type="checkbox"]').length, d = this.table.querySelectorAll('.selectrow input[type="checkbox"]:checked').length;
|
|
515
|
+
r.setAttribute("data-selected", n == d ? "all" : d);
|
|
516
|
+
}
|
|
517
|
+
}), r.addEventListener("selected", (o) => {
|
|
518
|
+
o.detail.selected == "0" ? Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((n, d) => {
|
|
519
|
+
n.checked = !1;
|
|
520
|
+
}) : o.detail.selected == "all" && Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((n, d) => {
|
|
521
|
+
n.checked = !0;
|
|
522
|
+
});
|
|
534
523
|
});
|
|
535
|
-
}
|
|
524
|
+
}
|
|
525
|
+
let s = -1;
|
|
526
|
+
Array.from(this.table.querySelectorAll("tbody tr")).forEach((r, o) => {
|
|
527
|
+
if (r.querySelector(":scope > td > .dialog__wrapper")) {
|
|
528
|
+
let n = r.querySelector(":scope > td > .dialog__wrapper").parentNode;
|
|
529
|
+
n.classList.add("td--fixed"), s = Array.from(n.parentNode.children).indexOf(n);
|
|
530
|
+
}
|
|
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((r, o) => {
|
|
532
|
+
r.classList.add("td--fixed");
|
|
533
|
+
})), ot(this.table, this.form, this.pagination, this), Y(this.table, this.form, this), I(this.table, this.form);
|
|
536
534
|
}
|
|
535
|
+
this.shadowRoot.querySelector(".table__wrapper").addEventListener("scroll", (i) => {
|
|
536
|
+
this.table.querySelector("dialog[open]") && (this.table.querySelector("dialog[open]").close(), this.table.querySelector(".dialog__wrapper > button.active").classList.remove("active"));
|
|
537
|
+
});
|
|
537
538
|
}
|
|
538
539
|
static get observedAttributes() {
|
|
539
|
-
return ["data-total", "data-
|
|
540
|
+
return ["data-total", "data-page", "data-show"];
|
|
540
541
|
}
|
|
541
542
|
attributeChangedCallback(a, t, i) {
|
|
543
|
+
switch (this.pagination = this.shadowRoot.querySelector("iam-pagination"), a) {
|
|
544
|
+
case "data-total": {
|
|
545
|
+
t != i && this.pagination.setAttribute("data-total", i);
|
|
546
|
+
break;
|
|
547
|
+
}
|
|
548
|
+
case "data-show": {
|
|
549
|
+
t != i && this.pagination.setAttribute("data-show", i);
|
|
550
|
+
break;
|
|
551
|
+
}
|
|
552
|
+
case "data-page": {
|
|
553
|
+
t != i && this.pagination.setAttribute("data-page", i);
|
|
554
|
+
break;
|
|
555
|
+
}
|
|
556
|
+
}
|
|
542
557
|
}
|
|
543
558
|
}
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
559
|
+
/*!
|
|
560
|
+
* iamKey v4.1.0
|
|
561
|
+
* Copyright 2022-2023 iamproperty
|
|
562
|
+
*/
|
|
563
|
+
let nt = class extends HTMLElement {
|
|
564
|
+
constructor() {
|
|
565
|
+
super(), this.attachShadow({ mode: "open" });
|
|
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 = `
|
|
568
|
+
<style>
|
|
569
|
+
@import "${t}";
|
|
570
|
+
:host{container-type:inline-size;display:block}.pagination{display:block}@container (width > 23.4375em){.pagination{display:flex;align-items:center;justify-content:space-between !important;padding-top:2rem}}.pagination>div{display:flex;align-items:center}.pagination div:is(.page-jump,.per-page){border:1px solid var(--colour-light);height:3.25rem;display:none;align-items:center;padding-inline:1rem}.pagination div:is(.page-jump,.per-page) .select--minimal{height:3.25rem;line-height:3.25rem;margin-left:-1rem;padding-left:1rem;font-weight:bold}.page-jump{border-right:none !important}.total-pages{white-space:nowrap}:host([data-page-jump][data-minimal]) .page-jump{display:flex !important}@container (width > 23.4375em){:host([data-page-jump]) .page-jump{display:flex !important}}@container (width > 23.4375em){:host([data-per-page]:not([data-page-jump][data-item-count])) .per-page{display:flex !important}}@container (width > 48em){:host([data-per-page][data-page-jump][data-item-count]) .per-page{display:flex !important}}.pagination>.item-count{display:block;text-align:center;margin-bottom:1rem;margin-inline:auto}@container (width > 23.4375em){.pagination>.item-count{display:none}:host([data-item-count]) .pagination>.item-count{display:flex !important;margin:0}}*:where(.prev,.next){border:1px solid var(--colour-light);line-height:3.25rem;height:3.25rem;margin:0;display:none;background:none;padding-inline:1rem}@container (width > 23.4375em){*:where(.prev,.next){display:inline-block}}*:where(.prev,.next):after{margin-left:.5em;font-size:.8rem;content:"";font-family:"Font Awesome 6 Pro";color:var(--colour-info)}*:where(.prev,.next):is(:hover,:focus):not(:disabled){background-color:var(--colour-light)}*:where(.prev,.next):is(:active):not(:disabled){background-color:#e0e0e0}@media screen and (prefers-color-scheme: dark){*:where(.prev,.next):is(:hover,:focus):not(:disabled){background-color:var(--colour-canvas)}*:where(.prev,.next):is(:active):not(:disabled){background-color:var(--colour-canvas)}}*:where(.prev,.next):disabled:after,*:where(.prev,.next):disabled:before{color:inherit !important}:host([data-minimal]) .pagination{justify-content:flex-end}@container (width > 23.4375em){:host([data-minimal]) .pagination{justify-content:space-between}}:host([data-minimal]) *:where(.prev,.next){display:inline-block !important}.prev{border-right:none}.prev:after{display:none}.prev:before{margin-right:.5em;font-size:.8rem;content:"";font-family:"Font Awesome 6 Pro";color:var(--colour-info)}.mobile-controls{display:block}:host([data-minimal]) .pagination{padding-top:1.5rem;display:flex;align-items:center;justify-content:flex-end}:host([data-minimal]) *:is(.mobile-controls,.item-count){display:none}@container (width > 23.4375em){.mobile-controls{display:none !important}:host([data-item-count]) .item-count{display:flex !important}}.fa-spin{display:none !important;font-size:3rem;color:var(--colour-info)}:host([data-loading]) .mobile-controls{padding-top:2rem}:host([data-loading]) .item-count,:host([data-loading]) .mobile-controls>*:not(.fa-spin){display:none !important}:host([data-loading]) .fa-spin{display:block !important;margin:auto}/*# sourceMappingURL=assets/css/components/pagination.css.map */
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
574
|
+
</style>
|
|
575
|
+
<link rel="stylesheet" href="https://kit.fontawesome.com/26fdbf0179.css" crossorigin="anonymous">
|
|
576
|
+
<div class="pagination d-none">
|
|
577
|
+
|
|
578
|
+
<div class="minimal" part="minimal">
|
|
579
|
+
<div class="page-jump">
|
|
580
|
+
<div><select class="select--minimal"></select></div>
|
|
581
|
+
<span class="total-pages"></span>
|
|
582
|
+
</div>
|
|
583
|
+
|
|
584
|
+
<button class="prev" disabled>Prev</button>
|
|
585
|
+
<button class="next" disabled>Next</button>
|
|
586
|
+
</div>
|
|
587
|
+
|
|
588
|
+
<div class="item-count" part="item-count"></div>
|
|
589
|
+
<div class="per-page" part="per-page">
|
|
590
|
+
<div>
|
|
591
|
+
<select class="select--minimal">
|
|
592
|
+
<option value="15">15</option>
|
|
593
|
+
<option value="25">25</option>
|
|
594
|
+
<option value="40">40</option>
|
|
595
|
+
<option value="50">50</option>
|
|
596
|
+
</select>
|
|
597
|
+
</div>
|
|
598
|
+
<span> / page</span>
|
|
599
|
+
</div>
|
|
600
|
+
<div class="mobile-controls m-auto text-center">
|
|
601
|
+
<i class="fa-solid fa-spinner fa-spin"></i>
|
|
602
|
+
<button class="load-more btn btn-primary m-auto">Load more</a>
|
|
603
|
+
</div>
|
|
604
|
+
</div>
|
|
605
|
+
`, this.shadowRoot.appendChild(i.content.cloneNode(!0));
|
|
606
|
+
}
|
|
607
|
+
connectedCallback() {
|
|
608
|
+
const a = new URLSearchParams(window.location.search);
|
|
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"));
|
|
610
|
+
const t = this.shadowRoot.querySelector(".page-jump select"), i = this.shadowRoot.querySelector(".prev"), s = this.shadowRoot.querySelector(".next"), r = this.shadowRoot.querySelector(".per-page select"), o = this.shadowRoot.querySelector(".load-more");
|
|
611
|
+
this.setup(), t.addEventListener("change", (n) => {
|
|
612
|
+
this.setAttribute("data-show", this.getAttribute("data-increment")), this.setAttribute("data-page", n.target.value);
|
|
613
|
+
}), s.addEventListener("click", (n) => {
|
|
614
|
+
t.value = parseInt(t.value) + 1, t.dispatchEvent(new Event("change"));
|
|
615
|
+
}), i.addEventListener("click", (n) => {
|
|
616
|
+
t.value = parseInt(t.value) - 1, t.dispatchEvent(new Event("change"));
|
|
617
|
+
}), r.addEventListener("change", (n) => {
|
|
618
|
+
this.setAttribute("data-increment", n.target.value);
|
|
619
|
+
}), o.addEventListener("click", (n) => {
|
|
620
|
+
let d = parseInt(this.getAttribute("data-show")) + parseInt(this.getAttribute("data-increment"));
|
|
621
|
+
this.setAttribute("data-show", d), d > parseInt(this.getAttribute("data-total")) && o.remove();
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
setup() {
|
|
625
|
+
const a = this.shadowRoot.querySelector(".pagination"), t = this.shadowRoot.querySelector(".page-jump select"), i = this.shadowRoot.querySelector(".prev"), s = this.shadowRoot.querySelector(".next"), r = this.shadowRoot.querySelector(".item-count"), o = this.shadowRoot.querySelector(".per-page select"), n = this.shadowRoot.querySelector(".total-pages"), d = parseInt(this.getAttribute("data-page")), l = parseInt(this.getAttribute("data-total")), m = parseInt(this.getAttribute("data-show")), c = parseInt(this.getAttribute("data-increment")), b = Math.ceil(l / c);
|
|
626
|
+
l > m && a.classList.remove("d-none");
|
|
627
|
+
let f = "";
|
|
628
|
+
for (let y = 1; y <= b; y++)
|
|
629
|
+
f += `<option value="${y}" ${y == d ? "selected" : ""}>${y}</option>`;
|
|
630
|
+
t.innerHTML = f, n.innerHTML = `of ${b}`, d == b ? s.setAttribute("disabled", "disabled") : s.removeAttribute("disabled"), d == 1 ? i.setAttribute("disabled", "disabled") : i.removeAttribute("disabled");
|
|
631
|
+
let u = d == 1 ? 1 : (d - 1) * m + 1, v = d == 1 ? m : d * m;
|
|
632
|
+
r.innerHTML = `${u} - ${v > l ? l : v} of ${l} items`;
|
|
633
|
+
const k = [15, 25, 40, 50];
|
|
634
|
+
c && o.value != c && !k.includes(c) && (o.innerHTML = `<option value="${c}">${c}</option>
|
|
635
|
+
<option value="${c * 2}">${c * 2}</option>
|
|
636
|
+
<option value="${c * 3}">${c * 3}</option>
|
|
637
|
+
<option value="${c * 4}">${c * 4}</option>`), o.value = c;
|
|
638
|
+
}
|
|
639
|
+
static get observedAttributes() {
|
|
640
|
+
return ["data-total", "data-increment", "data-page", "data-show"];
|
|
641
|
+
}
|
|
642
|
+
attributeChangedCallback(a, t, i) {
|
|
643
|
+
switch (a) {
|
|
644
|
+
case "data-total": {
|
|
645
|
+
t != i && (this.setAttribute("data-page", 1), this.setup());
|
|
646
|
+
break;
|
|
647
|
+
}
|
|
648
|
+
case "data-show": {
|
|
649
|
+
t != i && (this.setAttribute("data-page", 1), this.setup(), this.dispatchEvent(new CustomEvent("update-show", { detail: { show: i } })));
|
|
650
|
+
break;
|
|
651
|
+
}
|
|
652
|
+
case "data-increment": {
|
|
653
|
+
t != i && (this.setAttribute("data-show", i), this.setAttribute("data-page", 1), this.setup(), this.dispatchEvent(new CustomEvent("update-show", { detail: { show: i } })));
|
|
654
|
+
break;
|
|
655
|
+
}
|
|
656
|
+
case "data-page": {
|
|
657
|
+
t != i && (this.setup(), this.dispatchEvent(new CustomEvent("update-page", { detail: { page: i } })));
|
|
658
|
+
break;
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
};
|
|
663
|
+
const Rt = (e) => e.charAt(0).toUpperCase() + e.slice(1), jt = (e) => e.replace(/_/g, " "), Nt = (e) => e.replace(/ /g, "_"), Dt = function(e) {
|
|
664
|
+
return e = e.toLowerCase(), e = Nt(e), e = e.replace(/\W/g, ""), e;
|
|
665
|
+
}, zt = {
|
|
547
666
|
name: "Table",
|
|
548
667
|
props: {
|
|
549
668
|
items: {
|
|
@@ -557,42 +676,42 @@ const Nt = (e) => e.charAt(0).toUpperCase() + e.slice(1), Rt = (e) => e.replace(
|
|
|
557
676
|
},
|
|
558
677
|
computed: {
|
|
559
678
|
cellHeading() {
|
|
560
|
-
return (e) => `${
|
|
679
|
+
return (e) => `${Rt(jt(e))}`;
|
|
561
680
|
}
|
|
562
681
|
},
|
|
563
682
|
created() {
|
|
564
683
|
this.$nextTick(function() {
|
|
565
|
-
window.customElements.get("iam-table") || window.customElements.define("iam-table", Ct);
|
|
684
|
+
window.customElements.get("iam-table") || window.customElements.define("iam-table", Ct), window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination", nt);
|
|
566
685
|
});
|
|
567
686
|
},
|
|
568
687
|
updated() {
|
|
569
688
|
}
|
|
570
|
-
},
|
|
571
|
-
function Ot(e, a, t, i,
|
|
689
|
+
}, Pt = { key: 0 }, Ft = { key: 0 }, It = ["data-row-id"], Bt = ["innerHTML"];
|
|
690
|
+
function Ot(e, a, t, i, s, r) {
|
|
572
691
|
return h(), p("iam-table", null, [
|
|
573
|
-
t.fields ? (h(), p("table",
|
|
692
|
+
t.fields ? (h(), p("table", Pt, [
|
|
574
693
|
g("thead", null, [
|
|
575
694
|
g("tr", null, [
|
|
576
|
-
(h(!0), p(M, null, H(t.fields, (
|
|
577
|
-
key:
|
|
578
|
-
},
|
|
695
|
+
(h(!0), p(M, null, H(t.fields, (o) => (h(), p("th", {
|
|
696
|
+
key: o.key
|
|
697
|
+
}, $(r.cellHeading(o.key)), 1))), 128))
|
|
579
698
|
])
|
|
580
699
|
]),
|
|
581
|
-
t.items ? (h(), p("tbody",
|
|
582
|
-
(h(!0), p(M, null, H(t.items, (
|
|
700
|
+
t.items ? (h(), p("tbody", Ft, [
|
|
701
|
+
(h(!0), p(M, null, H(t.items, (o, n) => (h(), p("tr", {
|
|
583
702
|
key: n,
|
|
584
|
-
"data-row-id":
|
|
703
|
+
"data-row-id": o.rowid
|
|
585
704
|
}, [
|
|
586
|
-
(h(!0), p(M, null, H(Object.fromEntries(Object.entries(
|
|
705
|
+
(h(!0), p(M, null, H(Object.fromEntries(Object.entries(o).filter(([d]) => d !== "rowid")), (d, l) => (h(), p("td", {
|
|
587
706
|
key: l,
|
|
588
|
-
innerHTML:
|
|
589
|
-
}, null, 8,
|
|
590
|
-
], 8,
|
|
591
|
-
])) :
|
|
592
|
-
])) :
|
|
707
|
+
innerHTML: d
|
|
708
|
+
}, null, 8, Bt))), 128))
|
|
709
|
+
], 8, It))), 128))
|
|
710
|
+
])) : _("", !0)
|
|
711
|
+
])) : x(e.$slots, "default", { key: 1 })
|
|
593
712
|
]);
|
|
594
713
|
}
|
|
595
|
-
const
|
|
714
|
+
const st = /* @__PURE__ */ A(zt, [["render", Ot]]), Vt = {
|
|
596
715
|
name: "Input",
|
|
597
716
|
props: {
|
|
598
717
|
value: {
|
|
@@ -780,191 +899,191 @@ const nt = /* @__PURE__ */ _(Pt, [["render", Ot]]), Vt = {
|
|
|
780
899
|
this.$emit("bus");
|
|
781
900
|
}
|
|
782
901
|
}
|
|
783
|
-
},
|
|
902
|
+
}, Ut = ["for", "innerHTML", "title"], Wt = ["innerHTML"], Yt = ["innerHTML"], Gt = ["type", "name", "id", "pattern", "list"], Kt = ["type", "name", "id", "pattern"], Xt = {
|
|
784
903
|
key: 5,
|
|
785
904
|
class: "input-group"
|
|
786
905
|
}, Jt = ["type", "name", "id", "pattern", "list"], Qt = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, Zt = {
|
|
787
906
|
key: 6,
|
|
788
907
|
class: "input-group"
|
|
789
|
-
}, te = ["type", "name", "id", "pattern", "list"], ee = { class: "input-group-text flex-fill" }, ae = ["type", "name", "id", "pattern"],
|
|
790
|
-
function ue(e, a, t, i,
|
|
908
|
+
}, te = ["type", "name", "id", "pattern", "list"], ee = { class: "input-group-text flex-fill" }, ae = ["type", "name", "id", "pattern"], oe = ["value"], ie = ["type", "name", "id"], re = ["for", "innerHTML"], ne = ["type", "name", "id"], se = ["for", "innerHTML"], le = ["innerHTML"], de = ["id"], ce = ["value"];
|
|
909
|
+
function ue(e, a, t, i, s, r) {
|
|
791
910
|
return h(), p("div", {
|
|
792
|
-
class:
|
|
911
|
+
class: S(r.wrapperClass()),
|
|
793
912
|
ref: "wrapper"
|
|
794
913
|
}, [
|
|
795
|
-
|
|
914
|
+
r.needsLabel() ? (h(), p("label", {
|
|
796
915
|
key: 0,
|
|
797
|
-
class:
|
|
916
|
+
class: S(`form-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
|
|
798
917
|
for: t.id,
|
|
799
|
-
innerHTML:
|
|
918
|
+
innerHTML: r.displayLabel(),
|
|
800
919
|
title: t.title
|
|
801
|
-
}, null, 10,
|
|
920
|
+
}, null, 10, Ut)) : _("", !0),
|
|
802
921
|
t.prefix ? (h(), p("span", {
|
|
803
922
|
key: 1,
|
|
804
|
-
class:
|
|
923
|
+
class: S(`prefix ${this.prefixClass} ${t.size ? `prefix-${t.size}` : ""}`),
|
|
805
924
|
innerHTML: t.prefix,
|
|
806
925
|
role: "presentation"
|
|
807
|
-
}, null, 10,
|
|
926
|
+
}, null, 10, Wt)) : _("", !0),
|
|
808
927
|
t.suffix ? (h(), p("span", {
|
|
809
928
|
key: 2,
|
|
810
|
-
class:
|
|
929
|
+
class: S(`suffix ${this.suffixClass} ${t.size ? `suffix-${t.size}` : ""}`),
|
|
811
930
|
innerHTML: t.suffix,
|
|
812
931
|
role: "presentation"
|
|
813
|
-
}, null, 10, Yt)) :
|
|
814
|
-
|
|
932
|
+
}, null, 10, Yt)) : _("", !0),
|
|
933
|
+
r.isInput() ? N((h(), p("input", R({
|
|
815
934
|
key: 3,
|
|
816
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
935
|
+
"onUpdate:modelValue": a[0] || (a[0] = (o) => r.inputVal = o),
|
|
817
936
|
class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
818
937
|
type: t.type,
|
|
819
938
|
name: t.name ? t.name : t.id,
|
|
820
939
|
id: t.id,
|
|
821
|
-
pattern:
|
|
822
|
-
list:
|
|
940
|
+
pattern: r.needPattern(),
|
|
941
|
+
list: r.hasOptions()
|
|
823
942
|
}, e.$attrs, {
|
|
824
|
-
onKeyup: a[1] || (a[1] = (...
|
|
943
|
+
onKeyup: a[1] || (a[1] = (...o) => r.inputKeyup && r.inputKeyup(...o))
|
|
825
944
|
}), null, 16, Gt)), [
|
|
826
|
-
[
|
|
827
|
-
]) :
|
|
828
|
-
t.type == "textarea" ?
|
|
945
|
+
[W, r.inputVal]
|
|
946
|
+
]) : _("", !0),
|
|
947
|
+
t.type == "textarea" ? N((h(), p("textarea", R({
|
|
829
948
|
key: 4,
|
|
830
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
949
|
+
"onUpdate:modelValue": a[2] || (a[2] = (o) => r.inputVal = o),
|
|
831
950
|
class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
832
951
|
type: t.type,
|
|
833
952
|
name: t.name ? t.name : t.id,
|
|
834
953
|
id: t.id,
|
|
835
|
-
pattern:
|
|
954
|
+
pattern: r.needPattern()
|
|
836
955
|
}, e.$attrs), null, 16, Kt)), [
|
|
837
|
-
[pt,
|
|
838
|
-
]) :
|
|
956
|
+
[pt, r.inputVal]
|
|
957
|
+
]) : _("", !0),
|
|
839
958
|
t.type == "range" ? (h(), p("div", Xt, [
|
|
840
|
-
|
|
841
|
-
"onUpdate:modelValue": a[3] || (a[3] = (
|
|
959
|
+
N(g("input", R({
|
|
960
|
+
"onUpdate:modelValue": a[3] || (a[3] = (o) => r.inputVal = o),
|
|
842
961
|
class: `form-range${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
843
962
|
type: t.type,
|
|
844
963
|
name: t.name ? t.name : t.id,
|
|
845
964
|
id: t.id,
|
|
846
|
-
pattern:
|
|
847
|
-
list:
|
|
965
|
+
pattern: r.needPattern(),
|
|
966
|
+
list: r.hasOptions()
|
|
848
967
|
}, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Jt), [
|
|
849
|
-
[
|
|
968
|
+
[W, r.inputVal]
|
|
850
969
|
]),
|
|
851
|
-
g("output", Qt,
|
|
852
|
-
])) :
|
|
970
|
+
g("output", Qt, $(t.value), 1)
|
|
971
|
+
])) : _("", !0),
|
|
853
972
|
t.type == "color" ? (h(), p("div", Zt, [
|
|
854
|
-
|
|
855
|
-
"onUpdate:modelValue": a[4] || (a[4] = (
|
|
973
|
+
N(g("input", R({
|
|
974
|
+
"onUpdate:modelValue": a[4] || (a[4] = (o) => r.inputVal = o),
|
|
856
975
|
class: `form-control form-control-color${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
857
976
|
type: t.type,
|
|
858
977
|
name: t.name ? t.name : t.id,
|
|
859
978
|
id: t.id,
|
|
860
|
-
pattern:
|
|
861
|
-
list:
|
|
979
|
+
pattern: r.needPattern(),
|
|
980
|
+
list: r.hasOptions()
|
|
862
981
|
}, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, te), [
|
|
863
|
-
[
|
|
982
|
+
[W, r.inputVal]
|
|
864
983
|
]),
|
|
865
|
-
g("output", ee,
|
|
866
|
-
])) :
|
|
867
|
-
t.type == "select" ?
|
|
984
|
+
g("output", ee, $(t.value ? e.vale : "#000000"), 1)
|
|
985
|
+
])) : _("", !0),
|
|
986
|
+
t.type == "select" ? N((h(), p("select", R({
|
|
868
987
|
key: 7,
|
|
869
|
-
"onUpdate:modelValue": a[5] || (a[5] = (
|
|
988
|
+
"onUpdate:modelValue": a[5] || (a[5] = (o) => r.inputVal = o),
|
|
870
989
|
class: `form-select${t.size ? ` form-select-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
871
990
|
type: t.type,
|
|
872
991
|
name: t.id,
|
|
873
992
|
id: t.id,
|
|
874
|
-
pattern:
|
|
993
|
+
pattern: r.needPattern()
|
|
875
994
|
}, e.$attrs), [
|
|
876
|
-
(h(!0), p(M, null, H(t.options, (
|
|
995
|
+
(h(!0), p(M, null, H(t.options, (o, n) => (h(), p("option", {
|
|
877
996
|
key: n,
|
|
878
|
-
value:
|
|
879
|
-
},
|
|
997
|
+
value: o.value
|
|
998
|
+
}, $(o.display ? o.display : o.value), 9, oe))), 128))
|
|
880
999
|
], 16, ae)), [
|
|
881
|
-
[bt,
|
|
882
|
-
]) :
|
|
883
|
-
t.type == "checkbox" || t.type == "radio" ? (h(), p("input",
|
|
1000
|
+
[bt, r.inputVal]
|
|
1001
|
+
]) : _("", !0),
|
|
1002
|
+
t.type == "checkbox" || t.type == "radio" ? (h(), p("input", R({
|
|
884
1003
|
key: 8,
|
|
885
1004
|
class: "form-check-input",
|
|
886
1005
|
type: t.type,
|
|
887
1006
|
name: t.name ? t.name : t.id,
|
|
888
1007
|
id: t.id
|
|
889
|
-
}, e.$attrs), null, 16,
|
|
1008
|
+
}, e.$attrs), null, 16, ie)) : _("", !0),
|
|
890
1009
|
t.type == "checkbox" || t.type == "radio" ? (h(), p("label", {
|
|
891
1010
|
key: 9,
|
|
892
|
-
class:
|
|
1011
|
+
class: S(`form-label form-check-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
|
|
893
1012
|
for: t.id,
|
|
894
1013
|
innerHTML: t.label
|
|
895
|
-
}, null, 10,
|
|
896
|
-
t.type == "checkbox-btn" || t.type == "radio-btn" ? (h(), p("input",
|
|
1014
|
+
}, null, 10, re)) : _("", !0),
|
|
1015
|
+
t.type == "checkbox-btn" || t.type == "radio-btn" ? (h(), p("input", R({
|
|
897
1016
|
key: 10,
|
|
898
1017
|
class: `btn-check${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
899
1018
|
type: t.type.replace("-btn", ""),
|
|
900
1019
|
autocomplete: "off",
|
|
901
1020
|
name: t.name ? t.name : t.id,
|
|
902
1021
|
id: t.id
|
|
903
|
-
}, e.$attrs), null, 16,
|
|
1022
|
+
}, e.$attrs), null, 16, ne)) : _("", !0),
|
|
904
1023
|
t.type == "checkbox-btn" || t.type == "radio-btn" ? (h(), p("label", {
|
|
905
1024
|
key: 11,
|
|
906
|
-
class:
|
|
1025
|
+
class: S(`btn${t.labelclass ? ` ${t.labelclass}` : ""}`),
|
|
907
1026
|
for: t.id,
|
|
908
1027
|
innerHTML: t.label,
|
|
909
|
-
onClick: a[6] || (a[6] = (...
|
|
910
|
-
}, null, 10,
|
|
911
|
-
|
|
1028
|
+
onClick: a[6] || (a[6] = (...o) => r.clickEvent && r.clickEvent(...o))
|
|
1029
|
+
}, null, 10, se)) : _("", !0),
|
|
1030
|
+
x(e.$slots, "default"),
|
|
912
1031
|
t.errormsg ? (h(), p("span", {
|
|
913
1032
|
key: 12,
|
|
914
1033
|
class: "invalid-feedback mb-0",
|
|
915
1034
|
innerHTML: t.errormsg
|
|
916
|
-
}, null, 8, le)) :
|
|
917
|
-
|
|
1035
|
+
}, null, 8, le)) : _("", !0),
|
|
1036
|
+
r.allowDatalist() ? (h(), p("datalist", {
|
|
918
1037
|
key: 13,
|
|
919
1038
|
id: t.id + "-list"
|
|
920
1039
|
}, [
|
|
921
|
-
(h(!0), p(M, null, H(t.options, (
|
|
1040
|
+
(h(!0), p(M, null, H(t.options, (o, n) => (h(), p("option", {
|
|
922
1041
|
key: n,
|
|
923
|
-
value:
|
|
924
|
-
},
|
|
925
|
-
], 8,
|
|
1042
|
+
value: o.value
|
|
1043
|
+
}, $(o.value), 9, ce))), 128))
|
|
1044
|
+
], 8, de)) : _("", !0)
|
|
926
1045
|
], 2);
|
|
927
1046
|
}
|
|
928
|
-
const lt = /* @__PURE__ */
|
|
1047
|
+
const lt = /* @__PURE__ */ A(Vt, [["render", ue]]);
|
|
929
1048
|
function me(e, a) {
|
|
930
|
-
const t = a.querySelector(".files"), i = a.querySelector(".drop-area"),
|
|
931
|
-
i.append(
|
|
932
|
-
n && n.target instanceof HTMLElement && n.target.closest(".btn-primary") && (n.target.closest(".btn-primary"), (
|
|
1049
|
+
const t = a.querySelector(".files"), i = a.querySelector(".drop-area"), s = e.querySelector("input"), r = e.hasAttribute("data-maxsize") ? e.getAttribute("data-maxsize") : 0, o = s.cloneNode();
|
|
1050
|
+
i.append(o), a.addEventListener("click", (n) => {
|
|
1051
|
+
n && n.target instanceof HTMLElement && n.target.closest(".btn-primary") && (n.target.closest(".btn-primary"), (s.hasAttribute("multiple") ? o : s).click());
|
|
933
1052
|
}), a.addEventListener("click", (n) => {
|
|
934
1053
|
if (n && n.target instanceof HTMLElement && n.target.closest(".files button")) {
|
|
935
|
-
const
|
|
936
|
-
for (let
|
|
937
|
-
const
|
|
938
|
-
|
|
1054
|
+
const d = new DataTransfer(), { files: l } = s, m = n.target.closest(".files button");
|
|
1055
|
+
for (let b = 0; b < l.length; b++) {
|
|
1056
|
+
const f = l[b];
|
|
1057
|
+
f.name != m.getAttribute("data-file") && d.items.add(f);
|
|
939
1058
|
}
|
|
940
|
-
|
|
941
|
-
const
|
|
942
|
-
|
|
1059
|
+
s.files = d.files;
|
|
1060
|
+
const c = new Event("change");
|
|
1061
|
+
s.dispatchEvent(c);
|
|
943
1062
|
}
|
|
944
|
-
}),
|
|
945
|
-
if (
|
|
946
|
-
const l = [...
|
|
1063
|
+
}), o.addEventListener("change", (n) => {
|
|
1064
|
+
if (s.hasAttribute("multiple")) {
|
|
1065
|
+
const l = [...s.files, ...o.files];
|
|
947
1066
|
let m = [];
|
|
948
|
-
const
|
|
949
|
-
for (let
|
|
950
|
-
const
|
|
951
|
-
!m.includes(
|
|
1067
|
+
const c = new DataTransfer();
|
|
1068
|
+
for (let b = 0; b < l.length; b++) {
|
|
1069
|
+
const f = l[b], u = f.size / 1e3;
|
|
1070
|
+
!m.includes(f.name) && (r == 0 || u < r) && c.items.add(f), m.push(f.name);
|
|
952
1071
|
}
|
|
953
|
-
|
|
1072
|
+
s.files = c.files;
|
|
954
1073
|
} else
|
|
955
|
-
|
|
956
|
-
const
|
|
957
|
-
|
|
958
|
-
}),
|
|
959
|
-
|
|
960
|
-
}),
|
|
961
|
-
|
|
962
|
-
}),
|
|
963
|
-
|
|
964
|
-
}),
|
|
1074
|
+
s.files = o.files;
|
|
1075
|
+
const d = new Event("change");
|
|
1076
|
+
s.dispatchEvent(d);
|
|
1077
|
+
}), o.addEventListener("dragenter", (n) => {
|
|
1078
|
+
o.classList.add("focus");
|
|
1079
|
+
}), o.addEventListener("dragleave", (n) => {
|
|
1080
|
+
o.classList.remove("focus");
|
|
1081
|
+
}), o.addEventListener("drop", (n) => {
|
|
1082
|
+
o.classList.remove("focus");
|
|
1083
|
+
}), s.addEventListener("change", (n) => {
|
|
965
1084
|
t.innerHTML = "";
|
|
966
|
-
for (const
|
|
967
|
-
t.innerHTML += `<span class="file">${
|
|
1085
|
+
for (const d of s.files)
|
|
1086
|
+
t.innerHTML += `<span class="file">${d.name} <button data-file="${d.name}">Remove</button></span>`;
|
|
968
1087
|
});
|
|
969
1088
|
}
|
|
970
1089
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -975,8 +1094,8 @@ window.dataLayer.push({
|
|
|
975
1094
|
class he extends HTMLElement {
|
|
976
1095
|
constructor() {
|
|
977
1096
|
super(), this.attachShadow({ mode: "open" });
|
|
978
|
-
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";`,
|
|
979
|
-
|
|
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");
|
|
1098
|
+
s.innerHTML = `
|
|
980
1099
|
<style>
|
|
981
1100
|
@import "${t}";
|
|
982
1101
|
${i}
|
|
@@ -991,7 +1110,7 @@ class he extends HTMLElement {
|
|
|
991
1110
|
<slot></slot>
|
|
992
1111
|
<div class="files"></div>
|
|
993
1112
|
</div>
|
|
994
|
-
`, this.shadowRoot.appendChild(
|
|
1113
|
+
`, this.shadowRoot.appendChild(s.content.cloneNode(!0));
|
|
995
1114
|
}
|
|
996
1115
|
connectedCallback() {
|
|
997
1116
|
this.innerHTML += '<i class="fa-regular fa-arrow-up-from-bracket me-2" aria-hidden="true" slot="btn"></i>';
|
|
@@ -1017,14 +1136,14 @@ const pe = {
|
|
|
1017
1136
|
});
|
|
1018
1137
|
}
|
|
1019
1138
|
};
|
|
1020
|
-
function be(e, a, t, i,
|
|
1139
|
+
function be(e, a, t, i, s, r) {
|
|
1021
1140
|
return h(), p("iam-fileupload", null, [
|
|
1022
|
-
|
|
1141
|
+
x(e.$slots, "default")
|
|
1023
1142
|
]);
|
|
1024
1143
|
}
|
|
1025
|
-
const
|
|
1144
|
+
const Qo = /* @__PURE__ */ A(pe, [["render", be]]);
|
|
1026
1145
|
/*!
|
|
1027
|
-
* iamKey v4.1.0
|
|
1146
|
+
* iamKey v4.1.0
|
|
1028
1147
|
* Copyright 2022-2023 iamproperty
|
|
1029
1148
|
*/
|
|
1030
1149
|
function fe(e) {
|
|
@@ -1035,10 +1154,10 @@ function fe(e) {
|
|
|
1035
1154
|
i.classList.add("accordion-header"), i.classList.add("accordion-button"), i.classList.add("h4");
|
|
1036
1155
|
}), !e.classList.contains("accordion--keep-open")) {
|
|
1037
1156
|
const i = e.querySelectorAll(":scope > details");
|
|
1038
|
-
i.forEach((
|
|
1039
|
-
|
|
1040
|
-
i.forEach((
|
|
1041
|
-
|
|
1157
|
+
i.forEach((s) => {
|
|
1158
|
+
s.addEventListener("click", () => {
|
|
1159
|
+
i.forEach((r) => {
|
|
1160
|
+
r !== s && r.removeAttribute("open");
|
|
1042
1161
|
});
|
|
1043
1162
|
});
|
|
1044
1163
|
});
|
|
@@ -1072,12 +1191,12 @@ const ye = {
|
|
|
1072
1191
|
mounted() {
|
|
1073
1192
|
}
|
|
1074
1193
|
}, ve = { ref: "wrapper" };
|
|
1075
|
-
function we(e, a, t, i,
|
|
1194
|
+
function we(e, a, t, i, s, r) {
|
|
1076
1195
|
return h(), p("iam-accordion", ve, [
|
|
1077
|
-
|
|
1196
|
+
x(e.$slots, "default")
|
|
1078
1197
|
], 512);
|
|
1079
1198
|
}
|
|
1080
|
-
const
|
|
1199
|
+
const ti = /* @__PURE__ */ A(ye, [["render", we]]), Ae = {
|
|
1081
1200
|
name: "AccordionItem",
|
|
1082
1201
|
props: {
|
|
1083
1202
|
title: {
|
|
@@ -1104,7 +1223,7 @@ const Jr = /* @__PURE__ */ _(ye, [["render", we]]), Ae = {
|
|
|
1104
1223
|
},
|
|
1105
1224
|
computed: {
|
|
1106
1225
|
createID() {
|
|
1107
|
-
return (e) => `${
|
|
1226
|
+
return (e) => `${Dt(e)}`;
|
|
1108
1227
|
}
|
|
1109
1228
|
},
|
|
1110
1229
|
data() {
|
|
@@ -1112,24 +1231,24 @@ const Jr = /* @__PURE__ */ _(ye, [["render", we]]), Ae = {
|
|
|
1112
1231
|
show: !this.lazy
|
|
1113
1232
|
};
|
|
1114
1233
|
}
|
|
1115
|
-
}, _e = ["id"],
|
|
1116
|
-
function
|
|
1234
|
+
}, _e = ["id"], xe = ["classList"];
|
|
1235
|
+
function Le(e, a, t, i, s, r) {
|
|
1117
1236
|
return h(), p("details", {
|
|
1118
|
-
id:
|
|
1237
|
+
id: r.createID(t.title)
|
|
1119
1238
|
}, [
|
|
1120
1239
|
g("summary", {
|
|
1121
1240
|
classList: `${t.titlecolour ? `bg-${t.titlecolour}` : ""}`
|
|
1122
1241
|
}, [
|
|
1123
|
-
ft(
|
|
1242
|
+
ft($(t.title), 1),
|
|
1124
1243
|
t.badge ? (h(), p("span", {
|
|
1125
1244
|
key: 0,
|
|
1126
|
-
class:
|
|
1127
|
-
},
|
|
1128
|
-
], 8,
|
|
1129
|
-
|
|
1245
|
+
class: S(`badge bg-${t.badgecolour}`)
|
|
1246
|
+
}, $(t.badge), 3)) : _("", !0)
|
|
1247
|
+
], 8, xe),
|
|
1248
|
+
x(e.$slots, "default")
|
|
1130
1249
|
], 8, _e);
|
|
1131
1250
|
}
|
|
1132
|
-
const
|
|
1251
|
+
const ei = /* @__PURE__ */ A(Ae, [["render", Le]]), ke = {
|
|
1133
1252
|
name: "Header",
|
|
1134
1253
|
props: {
|
|
1135
1254
|
title: {
|
|
@@ -1146,17 +1265,17 @@ const Qr = /* @__PURE__ */ _(Ae, [["render", Se]]), ke = {
|
|
|
1146
1265
|
required: !1
|
|
1147
1266
|
}
|
|
1148
1267
|
}
|
|
1149
|
-
},
|
|
1150
|
-
function He(e, a, t, i,
|
|
1151
|
-
return h(), p("div",
|
|
1268
|
+
}, Se = { class: "container" }, qe = { class: "row" }, $e = { class: "col-sm-6" }, Ee = { class: "pt-5 pb-3 px-4" }, Te = { class: "col-sm-6 col-md-5 ms-auto" }, Me = ["src"];
|
|
1269
|
+
function He(e, a, t, i, s, r) {
|
|
1270
|
+
return h(), p("div", Se, [
|
|
1152
1271
|
g("div", {
|
|
1153
|
-
class:
|
|
1272
|
+
class: S("bg-" + t.background + " mb-4")
|
|
1154
1273
|
}, [
|
|
1155
|
-
g("div",
|
|
1156
|
-
g("div",
|
|
1274
|
+
g("div", qe, [
|
|
1275
|
+
g("div", $e, [
|
|
1157
1276
|
g("div", Ee, [
|
|
1158
|
-
g("h2", null,
|
|
1159
|
-
|
|
1277
|
+
g("h2", null, $(t.title), 1),
|
|
1278
|
+
x(e.$slots, "default")
|
|
1160
1279
|
])
|
|
1161
1280
|
]),
|
|
1162
1281
|
g("div", Te, [
|
|
@@ -1165,17 +1284,17 @@ function He(e, a, t, i, o, s) {
|
|
|
1165
1284
|
src: t.image,
|
|
1166
1285
|
alt: "",
|
|
1167
1286
|
class: "h-100 w-100 object-cover"
|
|
1168
|
-
}, null, 8, Me)) :
|
|
1287
|
+
}, null, 8, Me)) : _("", !0)
|
|
1169
1288
|
])
|
|
1170
1289
|
])
|
|
1171
1290
|
], 2)
|
|
1172
1291
|
]);
|
|
1173
1292
|
}
|
|
1174
|
-
const
|
|
1293
|
+
const ai = /* @__PURE__ */ A(ke, [["render", He]]), Ce = {
|
|
1175
1294
|
name: "Card",
|
|
1176
1295
|
mounted() {
|
|
1177
1296
|
this.$nextTick(function() {
|
|
1178
|
-
import("./card.component.min-
|
|
1297
|
+
import("./card.component.min-888560e6.mjs").then((e) => {
|
|
1179
1298
|
window.customElements.get("iam-card") || window.customElements.define("iam-card", e.default);
|
|
1180
1299
|
}).catch((e) => {
|
|
1181
1300
|
console.log(e.message);
|
|
@@ -1183,55 +1302,55 @@ const Zr = /* @__PURE__ */ _(ke, [["render", He]]), Ce = {
|
|
|
1183
1302
|
});
|
|
1184
1303
|
}
|
|
1185
1304
|
};
|
|
1186
|
-
function
|
|
1305
|
+
function Re(e, a, t, i, s, r) {
|
|
1187
1306
|
return h(), p("iam-card", null, [
|
|
1188
|
-
|
|
1307
|
+
x(e.$slots, "default")
|
|
1189
1308
|
]);
|
|
1190
1309
|
}
|
|
1191
|
-
const
|
|
1192
|
-
function
|
|
1310
|
+
const je = /* @__PURE__ */ A(Ce, [["render", Re]]);
|
|
1311
|
+
function Ne(e) {
|
|
1193
1312
|
var a;
|
|
1194
1313
|
let t = e.querySelector(".carousel__inner"), i = e.querySelectorAll(".carousel__item").length;
|
|
1195
1314
|
e.getAttribute("data-cols");
|
|
1196
|
-
let
|
|
1197
|
-
e.querySelector(".carousel__controls a").classList.add("active"), t.addEventListener("scroll", function(
|
|
1315
|
+
let s = e.getAttribute("data-sm-cols"), r = e.getAttribute("data-md-cols");
|
|
1316
|
+
e.querySelector(".carousel__controls a").classList.add("active"), t.addEventListener("scroll", function(o) {
|
|
1198
1317
|
clearTimeout(a), a = setTimeout(function() {
|
|
1199
|
-
let n = t.clientWidth,
|
|
1200
|
-
Array.from(e.querySelectorAll(".carousel__controls a")).forEach((
|
|
1201
|
-
|
|
1202
|
-
}), e.querySelector(".control-" + m).classList.add("active"), m == 1 ? e.querySelector(".btn-prev").setAttribute("disabled", "disabled") : e.querySelector(".btn-prev").removeAttribute("disabled"), t.scrollLeft + n >
|
|
1318
|
+
let n = t.clientWidth, d = t.scrollWidth, l = t.scrollLeft, m = Math.round(l / d * i) + 1, c = e.querySelector(".carousel__item:last-child").offsetLeft;
|
|
1319
|
+
Array.from(e.querySelectorAll(".carousel__controls a")).forEach((b, f) => {
|
|
1320
|
+
b.classList.remove("active");
|
|
1321
|
+
}), e.querySelector(".control-" + m).classList.add("active"), m == 1 ? e.querySelector(".btn-prev").setAttribute("disabled", "disabled") : e.querySelector(".btn-prev").removeAttribute("disabled"), t.scrollLeft + n > c ? e.querySelector(".btn-next").setAttribute("disabled", "disabled") : e.querySelector(".btn-next").removeAttribute("disabled");
|
|
1203
1322
|
}, 100);
|
|
1204
|
-
}, !1), e.addEventListener("click", function(
|
|
1205
|
-
for (var n =
|
|
1323
|
+
}, !1), e.addEventListener("click", function(o) {
|
|
1324
|
+
for (var n = o.target; n && n != this; n = n.parentNode)
|
|
1206
1325
|
if (n.matches(".carousel__controls a")) {
|
|
1207
|
-
|
|
1326
|
+
o.preventDefault(), Array.from(e.querySelectorAll(".carousel__controls a")).forEach((l, m) => {
|
|
1208
1327
|
l.classList.remove("active");
|
|
1209
1328
|
}), n.classList.add("active");
|
|
1210
|
-
const
|
|
1329
|
+
const d = document.querySelector(n.getAttribute("href"));
|
|
1211
1330
|
t.scroll({
|
|
1212
1331
|
top: 0,
|
|
1213
|
-
left:
|
|
1332
|
+
left: d.offsetLeft,
|
|
1214
1333
|
behavior: "smooth"
|
|
1215
1334
|
});
|
|
1216
1335
|
break;
|
|
1217
1336
|
}
|
|
1218
|
-
}, !1), e.addEventListener("click", function(
|
|
1219
|
-
for (var n =
|
|
1337
|
+
}, !1), e.addEventListener("click", function(o) {
|
|
1338
|
+
for (var n = o.target; n && n != this; n = n.parentNode)
|
|
1220
1339
|
if (n.matches(".btn-next, .btn-prev")) {
|
|
1221
|
-
|
|
1222
|
-
let
|
|
1340
|
+
o.preventDefault();
|
|
1341
|
+
let d = n.classList.contains("btn-prev") ? t.scrollLeft - t.clientWidth : t.scrollLeft + t.clientWidth;
|
|
1223
1342
|
t.scroll({
|
|
1224
1343
|
top: 0,
|
|
1225
|
-
left:
|
|
1344
|
+
left: d,
|
|
1226
1345
|
behavior: "smooth"
|
|
1227
1346
|
});
|
|
1228
1347
|
break;
|
|
1229
1348
|
}
|
|
1230
|
-
}, !1), i == 1 && e.classList.add("hide-btns"),
|
|
1349
|
+
}, !1), i == 1 && e.classList.add("hide-btns"), s >= i && e.classList.add("hide-sm-btns"), r >= i && e.classList.add("hide-md-btns");
|
|
1231
1350
|
}
|
|
1232
|
-
const
|
|
1351
|
+
const De = {
|
|
1233
1352
|
components: {
|
|
1234
|
-
Card:
|
|
1353
|
+
Card: je
|
|
1235
1354
|
},
|
|
1236
1355
|
name: "Carousel",
|
|
1237
1356
|
data() {
|
|
@@ -1305,40 +1424,40 @@ const Ie = {
|
|
|
1305
1424
|
},
|
|
1306
1425
|
mounted() {
|
|
1307
1426
|
this.id = this._uid, this.$nextTick(function() {
|
|
1308
|
-
|
|
1427
|
+
Ne(this.$refs.wrapper);
|
|
1309
1428
|
});
|
|
1310
1429
|
}
|
|
1311
|
-
},
|
|
1430
|
+
}, ze = ["id", "data-cols", "data-sm-cols", "data-md-cols"], Pe = { class: "carousel__wrapper" }, Fe = { class: "carousel__inner" }, Ie = ["id"], Be = ["innerHTML", "id"], Oe = ["href"], Ve = /* @__PURE__ */ g("button", {
|
|
1312
1431
|
class: "btn btn-prev",
|
|
1313
1432
|
"data-go": "0",
|
|
1314
1433
|
disabled: ""
|
|
1315
|
-
}, "Prev", -1),
|
|
1434
|
+
}, "Prev", -1), Ue = /* @__PURE__ */ g("button", {
|
|
1316
1435
|
class: "btn btn-next",
|
|
1317
1436
|
"data-go": "2"
|
|
1318
1437
|
}, "Next", -1);
|
|
1319
|
-
function
|
|
1320
|
-
const
|
|
1438
|
+
function We(e, a, t, i, s, r) {
|
|
1439
|
+
const o = F("Card");
|
|
1321
1440
|
return h(), p("div", {
|
|
1322
1441
|
class: "container carousel",
|
|
1323
|
-
id: "carousel" +
|
|
1442
|
+
id: "carousel" + s.id,
|
|
1324
1443
|
ref: "wrapper",
|
|
1325
1444
|
"data-cols": t.cols,
|
|
1326
1445
|
"data-sm-cols": t.smcols,
|
|
1327
1446
|
"data-md-cols": t.mdcols
|
|
1328
1447
|
}, [
|
|
1329
|
-
|
|
1330
|
-
g("div",
|
|
1331
|
-
g("div",
|
|
1448
|
+
x(e.$slots, "default"),
|
|
1449
|
+
g("div", Pe, [
|
|
1450
|
+
g("div", Fe, [
|
|
1332
1451
|
t.type == "card" ? (h(), p("div", {
|
|
1333
1452
|
key: 0,
|
|
1334
|
-
class:
|
|
1453
|
+
class: S(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
|
|
1335
1454
|
}, [
|
|
1336
|
-
(h(!0), p(M, null, H(t.items, (n,
|
|
1337
|
-
class:
|
|
1338
|
-
key:
|
|
1339
|
-
id: "carousel" +
|
|
1455
|
+
(h(!0), p(M, null, H(t.items, (n, d) => (h(), p("div", {
|
|
1456
|
+
class: S(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
|
|
1457
|
+
key: d,
|
|
1458
|
+
id: "carousel" + s.id + "slide" + (d + 1)
|
|
1340
1459
|
}, [
|
|
1341
|
-
C(
|
|
1460
|
+
C(o, R(n, {
|
|
1342
1461
|
class: t.cardclass,
|
|
1343
1462
|
type: t.cardtype,
|
|
1344
1463
|
btnyype: t.btntype,
|
|
@@ -1346,37 +1465,37 @@ function Ue(e, a, t, i, o, s) {
|
|
|
1346
1465
|
ctatext: t.ctatext,
|
|
1347
1466
|
hidectatext: t.hidectatext
|
|
1348
1467
|
}), null, 16, ["class", "type", "btnyype", "titleclass", "ctatext", "hidectatext"])
|
|
1349
|
-
], 10,
|
|
1350
|
-
], 2)) :
|
|
1468
|
+
], 10, Ie))), 128))
|
|
1469
|
+
], 2)) : _("", !0),
|
|
1351
1470
|
t.type != "card" ? (h(), p("div", {
|
|
1352
1471
|
key: 1,
|
|
1353
|
-
class:
|
|
1472
|
+
class: S(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
|
|
1354
1473
|
}, [
|
|
1355
|
-
(h(!0), p(M, null, H(t.items, (n,
|
|
1356
|
-
class:
|
|
1357
|
-
key:
|
|
1358
|
-
innerHTML:
|
|
1359
|
-
id: "carousel" +
|
|
1360
|
-
}, null, 10,
|
|
1361
|
-
], 2)) :
|
|
1474
|
+
(h(!0), p(M, null, H(t.items, (n, d) => (h(), p("div", {
|
|
1475
|
+
class: S(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
|
|
1476
|
+
key: d,
|
|
1477
|
+
innerHTML: r.content(n),
|
|
1478
|
+
id: "carousel" + s.id + "slide" + (d + 1)
|
|
1479
|
+
}, null, 10, Be))), 128))
|
|
1480
|
+
], 2)) : _("", !0)
|
|
1362
1481
|
]),
|
|
1363
1482
|
g("div", {
|
|
1364
|
-
class:
|
|
1483
|
+
class: S(`carousel__controls cols-${t.cols} cols-sm-${t.smcols} cols-md-${t.mdcols}`)
|
|
1365
1484
|
}, [
|
|
1366
|
-
(h(!0), p(M, null, H(t.items, (n,
|
|
1367
|
-
key:
|
|
1368
|
-
href: "#carousel" +
|
|
1369
|
-
class:
|
|
1370
|
-
}, "Slide " +
|
|
1485
|
+
(h(!0), p(M, null, H(t.items, (n, d) => (h(), p("a", {
|
|
1486
|
+
key: d,
|
|
1487
|
+
href: "#carousel" + s.id + "slide" + (d + 1),
|
|
1488
|
+
class: S(`control-${d + 1}`)
|
|
1489
|
+
}, "Slide " + $(d + 1), 11, Oe))), 128))
|
|
1371
1490
|
], 2),
|
|
1372
1491
|
Ve,
|
|
1373
|
-
|
|
1492
|
+
Ue
|
|
1374
1493
|
])
|
|
1375
|
-
], 8,
|
|
1494
|
+
], 8, ze);
|
|
1376
1495
|
}
|
|
1377
|
-
const
|
|
1496
|
+
const oi = /* @__PURE__ */ A(De, [["render", We]]);
|
|
1378
1497
|
/*!
|
|
1379
|
-
* iamKey v4.1.0
|
|
1498
|
+
* iamKey v4.1.0
|
|
1380
1499
|
* Copyright 2022-2023 iamproperty
|
|
1381
1500
|
*/
|
|
1382
1501
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "header" });
|
|
@@ -1387,7 +1506,7 @@ class Ye extends HTMLElement {
|
|
|
1387
1506
|
i.innerHTML = `
|
|
1388
1507
|
<style>
|
|
1389
1508
|
@import "${t}";
|
|
1390
|
-
.header-banner{background:linear-gradient(180deg, var(--colour-secondary) 0, var(--colour-info) 100%);margin-bottom:2rem;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:
|
|
1509
|
+
.header-banner{background:linear-gradient(180deg, var(--colour-secondary) 0, var(--colour-info) 100%);margin-bottom:2rem;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 */
|
|
1391
1510
|
|
|
1392
1511
|
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
1393
1512
|
</style>
|
|
@@ -1431,41 +1550,41 @@ const Ge = {
|
|
|
1431
1550
|
});
|
|
1432
1551
|
}
|
|
1433
1552
|
}, Ke = ["image"], Xe = ["innerHTML"];
|
|
1434
|
-
function Je(e, a, t, i,
|
|
1553
|
+
function Je(e, a, t, i, s, r) {
|
|
1435
1554
|
return h(), p("iam-header", {
|
|
1436
1555
|
class: "bg-secondary",
|
|
1437
1556
|
image: t.image
|
|
1438
1557
|
}, [
|
|
1439
|
-
|
|
1558
|
+
x(e.$slots, "breadcrumb"),
|
|
1440
1559
|
t.title ? (h(), p("h1", {
|
|
1441
1560
|
key: 0,
|
|
1442
1561
|
innerHTML: t.title
|
|
1443
|
-
}, null, 8, Xe)) :
|
|
1444
|
-
|
|
1562
|
+
}, null, 8, Xe)) : _("", !0),
|
|
1563
|
+
x(e.$slots, "default")
|
|
1445
1564
|
], 8, Ke);
|
|
1446
1565
|
}
|
|
1447
|
-
const
|
|
1566
|
+
const ii = /* @__PURE__ */ A(Ge, [["render", Je]]);
|
|
1448
1567
|
function Qe(e) {
|
|
1449
1568
|
var a;
|
|
1450
1569
|
const t = e.querySelector(".testimonial__images"), i = t.querySelectorAll("img").length;
|
|
1451
1570
|
if (i == 1)
|
|
1452
1571
|
return !1;
|
|
1453
1572
|
e.classList.add("testimonial--multi");
|
|
1454
|
-
const
|
|
1455
|
-
const
|
|
1456
|
-
|
|
1573
|
+
const s = function(r) {
|
|
1574
|
+
const o = e.querySelector(".btn-next"), n = e.querySelector(".btn-prev");
|
|
1575
|
+
o.setAttribute("data-go", r + 1), n.setAttribute("data-go", r - 1), o.removeAttribute("disabled"), n.removeAttribute("disabled"), r == 1 ? n.setAttribute("disabled", !0) : r == i && o.setAttribute("disabled", !0);
|
|
1457
1576
|
};
|
|
1458
|
-
t.addEventListener("scroll", function(
|
|
1577
|
+
t.addEventListener("scroll", function(r) {
|
|
1459
1578
|
clearTimeout(a), a = setTimeout(function() {
|
|
1460
|
-
let
|
|
1461
|
-
|
|
1579
|
+
let o = t.scrollWidth, n = t.scrollHeight, d = t.scrollLeft, l = t.scrollTop, m = Math.round(d / o * i) + 1;
|
|
1580
|
+
d == 0 && l != 0 && (m = Math.round(l / n * i) + 1), e.setAttribute("data-show", m), s(m);
|
|
1462
1581
|
}, 300);
|
|
1463
|
-
}, !1), e.addEventListener("click", function(
|
|
1464
|
-
for (var
|
|
1465
|
-
if (
|
|
1466
|
-
let n = parseInt(
|
|
1467
|
-
m >
|
|
1468
|
-
top:
|
|
1582
|
+
}, !1), e.addEventListener("click", function(r) {
|
|
1583
|
+
for (var o = r.target; o && o != this; o = o.parentNode)
|
|
1584
|
+
if (o.matches("[data-go]")) {
|
|
1585
|
+
let n = parseInt(o.getAttribute("data-go")), d = 0, l = 0, m = t.scrollWidth, c = t.scrollHeight;
|
|
1586
|
+
m > c ? l = Math.floor(m * ((n - 1) / i)) : d = Math.floor(c * ((n - 1) / i)), t.scroll({
|
|
1587
|
+
top: d,
|
|
1469
1588
|
left: l,
|
|
1470
1589
|
behavior: "smooth"
|
|
1471
1590
|
});
|
|
@@ -1493,7 +1612,7 @@ const Ze = {
|
|
|
1493
1612
|
class: "container testimonial mb-5",
|
|
1494
1613
|
"data-show": "1",
|
|
1495
1614
|
ref: "wrapper"
|
|
1496
|
-
}, ea = { class: "row" }, aa = { class: "col-md-5 position-relative" },
|
|
1615
|
+
}, ea = { class: "row" }, aa = { class: "col-md-5 position-relative" }, oa = { class: "testimonial__images" }, ia = ["src"], ra = /* @__PURE__ */ g("div", { class: "testimonial__controls" }, [
|
|
1497
1616
|
/* @__PURE__ */ g("button", {
|
|
1498
1617
|
"data-go": "0",
|
|
1499
1618
|
disabled: "",
|
|
@@ -1503,41 +1622,41 @@ const Ze = {
|
|
|
1503
1622
|
"data-go": "2",
|
|
1504
1623
|
class: "btn-next"
|
|
1505
1624
|
}, "Next")
|
|
1506
|
-
], -1),
|
|
1507
|
-
function ha(e, a, t, i,
|
|
1625
|
+
], -1), na = { class: "col-md-7" }, sa = /* @__PURE__ */ g("h2", null, "What our customers think…", -1), la = { class: "testimonial__content" }, da = ["innerHTML"], ca = ["innerHTML"], ua = { class: "testimonial__after" }, ma = /* @__PURE__ */ g("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
|
|
1626
|
+
function ha(e, a, t, i, s, r) {
|
|
1508
1627
|
return h(), p("div", ta, [
|
|
1509
1628
|
g("div", {
|
|
1510
|
-
class:
|
|
1629
|
+
class: S("bg-" + t.background)
|
|
1511
1630
|
}, [
|
|
1512
1631
|
g("div", ea, [
|
|
1513
1632
|
g("div", aa, [
|
|
1514
|
-
g("div",
|
|
1515
|
-
(h(!0), p(M, null, H(t.items, (
|
|
1633
|
+
g("div", oa, [
|
|
1634
|
+
(h(!0), p(M, null, H(t.items, (o, n) => (h(), p("img", {
|
|
1516
1635
|
key: n,
|
|
1517
|
-
src:
|
|
1636
|
+
src: o.image ? o.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
|
|
1518
1637
|
alt: "",
|
|
1519
|
-
class:
|
|
1520
|
-
}, null, 10,
|
|
1638
|
+
class: S("h-100 w-100 object-cover" + (o.image ? "" : " opacity-0"))
|
|
1639
|
+
}, null, 10, ia))), 128))
|
|
1521
1640
|
]),
|
|
1522
|
-
|
|
1641
|
+
ra
|
|
1523
1642
|
]),
|
|
1524
|
-
g("div",
|
|
1525
|
-
|
|
1643
|
+
g("div", na, [
|
|
1644
|
+
sa,
|
|
1526
1645
|
g("div", la, [
|
|
1527
|
-
(h(!0), p(M, null, H(t.items, (
|
|
1646
|
+
(h(!0), p(M, null, H(t.items, (o, n) => (h(), p("blockquote", {
|
|
1528
1647
|
key: n,
|
|
1529
|
-
class:
|
|
1648
|
+
class: S(o.class)
|
|
1530
1649
|
}, [
|
|
1531
1650
|
g("div", {
|
|
1532
|
-
innerHTML:
|
|
1533
|
-
}, null, 8,
|
|
1651
|
+
innerHTML: o.quote
|
|
1652
|
+
}, null, 8, da),
|
|
1534
1653
|
g("cite", {
|
|
1535
|
-
innerHTML:
|
|
1536
|
-
}, null, 8,
|
|
1654
|
+
innerHTML: o.cite
|
|
1655
|
+
}, null, 8, ca)
|
|
1537
1656
|
], 2))), 128))
|
|
1538
1657
|
]),
|
|
1539
1658
|
g("div", ua, [
|
|
1540
|
-
|
|
1659
|
+
x(e.$slots, "default")
|
|
1541
1660
|
])
|
|
1542
1661
|
])
|
|
1543
1662
|
]),
|
|
@@ -1545,7 +1664,7 @@ function ha(e, a, t, i, o, s) {
|
|
|
1545
1664
|
], 2)
|
|
1546
1665
|
], 512);
|
|
1547
1666
|
}
|
|
1548
|
-
const
|
|
1667
|
+
const ri = /* @__PURE__ */ A(Ze, [["render", ha]]);
|
|
1549
1668
|
const pa = {
|
|
1550
1669
|
name: "Timeline",
|
|
1551
1670
|
props: {
|
|
@@ -1555,19 +1674,19 @@ const pa = {
|
|
|
1555
1674
|
}
|
|
1556
1675
|
}
|
|
1557
1676
|
}, ba = { class: "timeline" }, fa = { class: "timeline__content" }, ga = ["src"];
|
|
1558
|
-
function ya(e, a, t, i,
|
|
1677
|
+
function ya(e, a, t, i, s, r) {
|
|
1559
1678
|
return h(), p("div", ba, [
|
|
1560
1679
|
g("div", fa, [
|
|
1561
|
-
|
|
1680
|
+
x(e.$slots, "default")
|
|
1562
1681
|
]),
|
|
1563
1682
|
t.image ? (h(), p("img", {
|
|
1564
1683
|
key: 0,
|
|
1565
1684
|
src: t.image,
|
|
1566
1685
|
alt: ""
|
|
1567
|
-
}, null, 8, ga)) :
|
|
1686
|
+
}, null, 8, ga)) : _("", !0)
|
|
1568
1687
|
]);
|
|
1569
1688
|
}
|
|
1570
|
-
const
|
|
1689
|
+
const ni = /* @__PURE__ */ A(pa, [["render", ya]]);
|
|
1571
1690
|
const va = {
|
|
1572
1691
|
components: {
|
|
1573
1692
|
Input: lt
|
|
@@ -1717,10 +1836,10 @@ const va = {
|
|
|
1717
1836
|
}, wa = {
|
|
1718
1837
|
class: "container",
|
|
1719
1838
|
ref: "wrapper"
|
|
1720
|
-
}, Aa = { class: "property-searchbar" }, _a = ["action", "method"],
|
|
1839
|
+
}, Aa = { class: "property-searchbar" }, _a = ["action", "method"], xa = { class: "col-12 col-md-3" }, La = { class: "col-12 col-md" }, ka = /* @__PURE__ */ g("span", { class: "form-label d-none d-md-block" }, "Price range", -1), Sa = {
|
|
1721
1840
|
class: "row",
|
|
1722
1841
|
"data-input-range": ""
|
|
1723
|
-
},
|
|
1842
|
+
}, qa = { class: "col-12 col-md" }, $a = /* @__PURE__ */ g("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), Ea = {
|
|
1724
1843
|
class: "row",
|
|
1725
1844
|
"data-input-range": ""
|
|
1726
1845
|
}, Ta = { class: "col-12 col-md-2" }, Ma = /* @__PURE__ */ g("div", { class: "col-12 col-md mw-md-fit-content d-flex property-searchbar__btn" }, [
|
|
@@ -1730,30 +1849,30 @@ const va = {
|
|
|
1730
1849
|
value: "submit"
|
|
1731
1850
|
}, "Search")
|
|
1732
1851
|
], -1);
|
|
1733
|
-
function Ha(e, a, t, i,
|
|
1734
|
-
const
|
|
1852
|
+
function Ha(e, a, t, i, s, r) {
|
|
1853
|
+
const o = F("Input");
|
|
1735
1854
|
return h(), p("div", wa, [
|
|
1736
|
-
|
|
1855
|
+
x(e.$slots, "default"),
|
|
1737
1856
|
g("div", Aa, [
|
|
1738
1857
|
g("form", {
|
|
1739
1858
|
class: "row",
|
|
1740
1859
|
action: t.formaction,
|
|
1741
1860
|
method: t.formmethod
|
|
1742
1861
|
}, [
|
|
1743
|
-
g("fieldset",
|
|
1744
|
-
C(
|
|
1862
|
+
g("fieldset", xa, [
|
|
1863
|
+
C(o, {
|
|
1745
1864
|
inputClass: "input--locations",
|
|
1746
|
-
modelValue:
|
|
1747
|
-
"onUpdate:modelValue": a[0] || (a[0] = (n) =>
|
|
1865
|
+
modelValue: r.locationSet,
|
|
1866
|
+
"onUpdate:modelValue": a[0] || (a[0] = (n) => r.locationSet = n),
|
|
1748
1867
|
label: "Location",
|
|
1749
1868
|
id: "location",
|
|
1750
|
-
options:
|
|
1869
|
+
options: r.locationsList(),
|
|
1751
1870
|
required: "",
|
|
1752
1871
|
placeholder: "i.e. Newcastle or NE1",
|
|
1753
|
-
onKeyupEvent: a[1] || (a[1] = (n) =>
|
|
1872
|
+
onKeyupEvent: a[1] || (a[1] = (n) => r.locationKeyup(...arguments)),
|
|
1754
1873
|
ref: "search"
|
|
1755
1874
|
}, null, 8, ["modelValue", "options"]),
|
|
1756
|
-
C(
|
|
1875
|
+
C(o, {
|
|
1757
1876
|
class: "select--miles",
|
|
1758
1877
|
label: "Miles",
|
|
1759
1878
|
id: "miles",
|
|
@@ -1761,10 +1880,10 @@ function Ha(e, a, t, i, o, s) {
|
|
|
1761
1880
|
options: t.distances
|
|
1762
1881
|
}, null, 8, ["options"])
|
|
1763
1882
|
]),
|
|
1764
|
-
g("fieldset",
|
|
1883
|
+
g("fieldset", La, [
|
|
1765
1884
|
ka,
|
|
1766
|
-
g("div",
|
|
1767
|
-
C(
|
|
1885
|
+
g("div", Sa, [
|
|
1886
|
+
C(o, {
|
|
1768
1887
|
class: "col-6",
|
|
1769
1888
|
label: "Minimum price",
|
|
1770
1889
|
id: "price-min",
|
|
@@ -1772,7 +1891,7 @@ function Ha(e, a, t, i, o, s) {
|
|
|
1772
1891
|
type: "select",
|
|
1773
1892
|
options: t.pricemin
|
|
1774
1893
|
}, null, 8, ["options"]),
|
|
1775
|
-
C(
|
|
1894
|
+
C(o, {
|
|
1776
1895
|
class: "col-6",
|
|
1777
1896
|
label: "Maximum price",
|
|
1778
1897
|
id: "price-max",
|
|
@@ -1782,10 +1901,10 @@ function Ha(e, a, t, i, o, s) {
|
|
|
1782
1901
|
}, null, 8, ["options"])
|
|
1783
1902
|
])
|
|
1784
1903
|
]),
|
|
1785
|
-
g("fieldset",
|
|
1786
|
-
|
|
1904
|
+
g("fieldset", qa, [
|
|
1905
|
+
$a,
|
|
1787
1906
|
g("div", Ea, [
|
|
1788
|
-
C(
|
|
1907
|
+
C(o, {
|
|
1789
1908
|
class: "col-6",
|
|
1790
1909
|
label: "Minimum beds",
|
|
1791
1910
|
id: "beds-min",
|
|
@@ -1793,7 +1912,7 @@ function Ha(e, a, t, i, o, s) {
|
|
|
1793
1912
|
type: "select",
|
|
1794
1913
|
options: t.bedsmin
|
|
1795
1914
|
}, null, 8, ["options"]),
|
|
1796
|
-
C(
|
|
1915
|
+
C(o, {
|
|
1797
1916
|
class: "col-6",
|
|
1798
1917
|
label: "Maximum beds",
|
|
1799
1918
|
id: "beds-max",
|
|
@@ -1804,7 +1923,7 @@ function Ha(e, a, t, i, o, s) {
|
|
|
1804
1923
|
])
|
|
1805
1924
|
]),
|
|
1806
1925
|
g("fieldset", Ta, [
|
|
1807
|
-
C(
|
|
1926
|
+
C(o, {
|
|
1808
1927
|
label: "Property type",
|
|
1809
1928
|
id: "property-type",
|
|
1810
1929
|
type: "select",
|
|
@@ -1814,15 +1933,15 @@ function Ha(e, a, t, i, o, s) {
|
|
|
1814
1933
|
Ma
|
|
1815
1934
|
], 8, _a)
|
|
1816
1935
|
]),
|
|
1817
|
-
|
|
1936
|
+
x(e.$slots, "after")
|
|
1818
1937
|
], 512);
|
|
1819
1938
|
}
|
|
1820
|
-
const
|
|
1939
|
+
const si = /* @__PURE__ */ A(va, [["render", Ha]]), Ca = {
|
|
1821
1940
|
components: {},
|
|
1822
1941
|
name: "Nav",
|
|
1823
1942
|
mounted() {
|
|
1824
1943
|
this.$nextTick(function() {
|
|
1825
|
-
import("./nav.component.min-
|
|
1944
|
+
import("./nav.component.min-ac721375.mjs").then((e) => {
|
|
1826
1945
|
window.customElements.get("iam-nav") || window.customElements.define("iam-nav", e.default);
|
|
1827
1946
|
}).catch((e) => {
|
|
1828
1947
|
console.log(e.message);
|
|
@@ -1830,14 +1949,14 @@ const ss = /* @__PURE__ */ _(va, [["render", Ha]]), Ca = {
|
|
|
1830
1949
|
});
|
|
1831
1950
|
},
|
|
1832
1951
|
methods: {}
|
|
1833
|
-
},
|
|
1834
|
-
function
|
|
1835
|
-
return h(), p("iam-nav",
|
|
1836
|
-
|
|
1952
|
+
}, Ra = { ref: "wrapper" };
|
|
1953
|
+
function ja(e, a, t, i, s, r) {
|
|
1954
|
+
return h(), p("iam-nav", Ra, [
|
|
1955
|
+
x(e.$slots, "default")
|
|
1837
1956
|
], 512);
|
|
1838
1957
|
}
|
|
1839
|
-
const
|
|
1840
|
-
const
|
|
1958
|
+
const li = /* @__PURE__ */ A(Ca, [["render", ja]]);
|
|
1959
|
+
const Na = {
|
|
1841
1960
|
name: "Stepper",
|
|
1842
1961
|
props: {
|
|
1843
1962
|
label: {
|
|
@@ -1850,25 +1969,25 @@ const Da = {
|
|
|
1850
1969
|
default: "Complete"
|
|
1851
1970
|
}
|
|
1852
1971
|
}
|
|
1853
|
-
},
|
|
1972
|
+
}, Da = { class: "container" }, za = ["aria-label"], Pa = {
|
|
1854
1973
|
key: 0,
|
|
1855
1974
|
class: "h6 stepper__start"
|
|
1856
|
-
},
|
|
1857
|
-
function
|
|
1858
|
-
return h(), p("div",
|
|
1975
|
+
}, Fa = { class: "list-unstyled" }, Ia = { class: "h6 stepper__end" };
|
|
1976
|
+
function Ba(e, a, t, i, s, r) {
|
|
1977
|
+
return h(), p("div", Da, [
|
|
1859
1978
|
g("nav", {
|
|
1860
1979
|
class: "stepper",
|
|
1861
1980
|
"aria-label": t.label ? t.label : "Progress"
|
|
1862
1981
|
}, [
|
|
1863
|
-
t.label ? (h(), p("span",
|
|
1864
|
-
g("ol",
|
|
1865
|
-
|
|
1982
|
+
t.label ? (h(), p("span", Pa, $(t.label), 1)) : _("", !0),
|
|
1983
|
+
g("ol", Fa, [
|
|
1984
|
+
x(e.$slots, "default")
|
|
1866
1985
|
]),
|
|
1867
|
-
g("span",
|
|
1868
|
-
], 8,
|
|
1986
|
+
g("span", Ia, $(t.endlabel), 1)
|
|
1987
|
+
], 8, za)
|
|
1869
1988
|
]);
|
|
1870
1989
|
}
|
|
1871
|
-
const
|
|
1990
|
+
const di = /* @__PURE__ */ A(Na, [["render", Ba]]);
|
|
1872
1991
|
const Oa = {
|
|
1873
1992
|
name: "Snapshot",
|
|
1874
1993
|
props: {
|
|
@@ -1880,30 +1999,30 @@ const Oa = {
|
|
|
1880
1999
|
}, Va = {
|
|
1881
2000
|
class: "container snapshot",
|
|
1882
2001
|
ref: "wrapper"
|
|
1883
|
-
},
|
|
1884
|
-
function Ka(e, a, t, i,
|
|
2002
|
+
}, Ua = { class: "row" }, Wa = ["href"], Ya = { class: "lead snapshot__title" }, Ga = { class: "stat" };
|
|
2003
|
+
function Ka(e, a, t, i, s, r) {
|
|
1885
2004
|
return h(), p("div", Va, [
|
|
1886
|
-
|
|
1887
|
-
g("div",
|
|
1888
|
-
(h(!0), p(M, null, H(t.items, (
|
|
2005
|
+
x(e.$slots, "default"),
|
|
2006
|
+
g("div", Ua, [
|
|
2007
|
+
(h(!0), p(M, null, H(t.items, (o, n) => (h(), p("div", {
|
|
1889
2008
|
class: "col",
|
|
1890
2009
|
key: n
|
|
1891
2010
|
}, [
|
|
1892
|
-
|
|
2011
|
+
o.link ? (h(), p("a", {
|
|
1893
2012
|
key: 0,
|
|
1894
|
-
href:
|
|
1895
|
-
}, "View " +
|
|
2013
|
+
href: o.link
|
|
2014
|
+
}, "View " + $(o.title), 9, Wa)) : _("", !0),
|
|
1896
2015
|
g("div", {
|
|
1897
|
-
class:
|
|
2016
|
+
class: S(`snapshot__item ${o.bg ? "bg-" + o.bg : ""}`)
|
|
1898
2017
|
}, [
|
|
1899
|
-
g("span", Ya,
|
|
1900
|
-
g("span", Ga,
|
|
2018
|
+
g("span", Ya, $(o.title), 1),
|
|
2019
|
+
g("span", Ga, $(o.number), 1)
|
|
1901
2020
|
], 2)
|
|
1902
2021
|
]))), 128))
|
|
1903
2022
|
])
|
|
1904
2023
|
], 512);
|
|
1905
2024
|
}
|
|
1906
|
-
const
|
|
2025
|
+
const ci = /* @__PURE__ */ A(Oa, [["render", Ka]]), Xa = {
|
|
1907
2026
|
name: "Stepper",
|
|
1908
2027
|
props: {
|
|
1909
2028
|
url: {
|
|
@@ -1923,64 +2042,71 @@ const ns = /* @__PURE__ */ _(Oa, [["render", Ka]]), Xa = {
|
|
|
1923
2042
|
key: 0,
|
|
1924
2043
|
class: "visually-hidden"
|
|
1925
2044
|
};
|
|
1926
|
-
function Za(e, a, t, i,
|
|
2045
|
+
function Za(e, a, t, i, s, r) {
|
|
1927
2046
|
return h(), p("li", null, [
|
|
1928
2047
|
g("a", {
|
|
1929
2048
|
href: t.url,
|
|
1930
|
-
class:
|
|
2049
|
+
class: S(`${t.status ? "bg-" + t.status : ""}${typeof t.current < "u" ? "current" : ""}`),
|
|
1931
2050
|
"aria-current": typeof t.current < "u"
|
|
1932
2051
|
}, [
|
|
1933
2052
|
g("span", null, [
|
|
1934
|
-
|
|
2053
|
+
x(e.$slots, "default")
|
|
1935
2054
|
]),
|
|
1936
|
-
t.status ? (h(), p("em", Qa, " - status: " +
|
|
2055
|
+
t.status ? (h(), p("em", Qa, " - status: " + $(t.status), 1)) : _("", !0)
|
|
1937
2056
|
], 10, Ja)
|
|
1938
2057
|
]);
|
|
1939
2058
|
}
|
|
1940
|
-
const
|
|
2059
|
+
const ui = /* @__PURE__ */ A(Xa, [["render", Za]]);
|
|
1941
2060
|
/*!
|
|
1942
|
-
* iamKey v4.1.0
|
|
2061
|
+
* iamKey v4.1.0
|
|
1943
2062
|
* Copyright 2022-2023 iamproperty
|
|
1944
2063
|
*/
|
|
1945
|
-
const
|
|
2064
|
+
const to = function(e) {
|
|
1946
2065
|
const a = e.querySelectorAll(":scope > details");
|
|
1947
2066
|
e.querySelectorAll(":scope > details > summary");
|
|
1948
2067
|
let t = e.querySelector(":scope > .tabs__links");
|
|
1949
|
-
e.shadowRoot && e.shadowRoot.querySelector(".tabs__links") && (t = e.shadowRoot.querySelector(".tabs__links")), t
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
2068
|
+
if (e.shadowRoot && e.shadowRoot.querySelector(".tabs__links") && (t = e.shadowRoot.querySelector(".tabs__links")), !t) {
|
|
2069
|
+
t = document.createElement("div"), t.classList.add("tabs__links");
|
|
2070
|
+
let i = document.createElement("div");
|
|
2071
|
+
i.classList.add("tabs__links__wrapper"), i.prepend(t), e.prepend(i);
|
|
2072
|
+
}
|
|
2073
|
+
a.forEach((i, s) => {
|
|
2074
|
+
let r = i.querySelector(":scope > summary"), o = r.classList.contains("disabled");
|
|
2075
|
+
r.classList.add("visually-hidden");
|
|
2076
|
+
let n = document.createElement("button");
|
|
2077
|
+
i.hasAttribute("id") && (n = document.createElement("a"), n.setAttribute("href", `#${i.getAttribute("id")}`)), i.hasAttribute("open") && n.setAttribute("aria-pressed", !0), n.innerHTML = `${r.innerText}`, n.classList.add("link"), n.setAttribute("data-index", s), n.setAttribute("tabindex", "-1"), o && n.classList.add("disabled"), t.appendChild(n);
|
|
1954
2078
|
});
|
|
1955
|
-
},
|
|
2079
|
+
}, eo = function(e) {
|
|
1956
2080
|
let a = e.querySelectorAll(":scope > details"), t = e.querySelectorAll(":scope > details > summary"), i = e.querySelectorAll(":scope .tabs__links > .link");
|
|
1957
|
-
e.shadowRoot && (i = e.shadowRoot.querySelectorAll(".tabs__links > .link")), i.forEach((
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
2081
|
+
e.shadowRoot && (i = e.shadowRoot.querySelectorAll(".tabs__links > .link")), i.forEach((s) => {
|
|
2082
|
+
s.addEventListener("click", (r) => {
|
|
2083
|
+
if (r.preventDefault(), s.classList.contains("disabled"))
|
|
2084
|
+
return !1;
|
|
2085
|
+
i.forEach((o) => {
|
|
2086
|
+
let n = o == s;
|
|
2087
|
+
o.setAttribute("aria-pressed", n);
|
|
2088
|
+
}), a.forEach((o, n) => {
|
|
2089
|
+
let d = s.getAttribute("data-index") == n;
|
|
2090
|
+
d ? o.setAttribute("open", d) : o.removeAttribute("open");
|
|
2091
|
+
}), s.hasAttribute("href") && history.pushState(void 0, void 0, s.getAttribute("href")), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "openTab", tabTitle: s.textContent });
|
|
1966
2092
|
});
|
|
1967
|
-
}), t.forEach((
|
|
1968
|
-
|
|
2093
|
+
}), t.forEach((s, r) => {
|
|
2094
|
+
s.addEventListener("focus", (o) => {
|
|
1969
2095
|
i.forEach((n) => {
|
|
1970
2096
|
n.classList.remove("focus");
|
|
1971
|
-
}), i[
|
|
1972
|
-
}),
|
|
1973
|
-
|
|
2097
|
+
}), i[r].classList.add("focus");
|
|
2098
|
+
}), s.addEventListener("click", (o) => {
|
|
2099
|
+
o.preventDefault(), i[r].click();
|
|
1974
2100
|
});
|
|
1975
2101
|
});
|
|
1976
|
-
},
|
|
2102
|
+
}, ao = function(e) {
|
|
1977
2103
|
let a = e.querySelectorAll(":scope > details"), t = e.querySelectorAll(":scope > .tabs__links > button, .tabs__links > a");
|
|
1978
2104
|
e.shadowRoot && (t = e.shadowRoot.querySelectorAll(".tabs__links > button, .tabs__links > a")), location.hash && e.querySelector(`.tabs__links [href="${location.hash}"]`) ? (e.querySelector(`[href="${location.hash}"]`).setAttribute("open", !0), e.querySelector(`details[id="${location.hash.replace("#", "")}"]`).setAttribute("open", !0)) : e.querySelector("details[open]") || (a[0].setAttribute("open", !0), t[0].setAttribute("aria-pressed", !0));
|
|
1979
|
-
},
|
|
1980
|
-
|
|
2105
|
+
}, oo = function(e) {
|
|
2106
|
+
to(e), eo(e), ao(e);
|
|
1981
2107
|
};
|
|
1982
2108
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "tabs" });
|
|
1983
|
-
let
|
|
2109
|
+
let io = class extends HTMLElement {
|
|
1984
2110
|
constructor() {
|
|
1985
2111
|
super(), this.attachShadow({ mode: "open" });
|
|
1986
2112
|
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");
|
|
@@ -1995,26 +2121,28 @@ let sr = class extends HTMLElement {
|
|
|
1995
2121
|
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
1996
2122
|
</style>
|
|
1997
2123
|
<div class="tabs">
|
|
1998
|
-
<div class="
|
|
2124
|
+
<div class="tabs__links__wrapper">
|
|
2125
|
+
<div class="tabs__links"></div>
|
|
2126
|
+
</div>
|
|
1999
2127
|
<slot></slot>
|
|
2000
2128
|
</div>
|
|
2001
2129
|
`, this.shadowRoot.appendChild(i.content.cloneNode(!0));
|
|
2002
2130
|
}
|
|
2003
2131
|
connectedCallback() {
|
|
2004
2132
|
let a = this.classList.toString().replace("container", "");
|
|
2005
|
-
this.shadowRoot.querySelector(".tabs").setAttribute("class", `tabs ${a}`),
|
|
2133
|
+
this.shadowRoot.querySelector(".tabs").setAttribute("class", `tabs ${a}`), oo(this);
|
|
2006
2134
|
}
|
|
2007
2135
|
};
|
|
2008
|
-
window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs",
|
|
2009
|
-
const
|
|
2136
|
+
window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", io);
|
|
2137
|
+
const ro = {
|
|
2010
2138
|
name: "Tabs"
|
|
2011
|
-
},
|
|
2012
|
-
function
|
|
2013
|
-
return h(), p("iam-tabs",
|
|
2014
|
-
|
|
2139
|
+
}, no = { ref: "wrapper" };
|
|
2140
|
+
function so(e, a, t, i, s, r) {
|
|
2141
|
+
return h(), p("iam-tabs", no, [
|
|
2142
|
+
x(e.$slots, "default")
|
|
2015
2143
|
], 512);
|
|
2016
2144
|
}
|
|
2017
|
-
const
|
|
2145
|
+
const hi = /* @__PURE__ */ A(ro, [["render", so]]), lo = {
|
|
2018
2146
|
name: "Tab",
|
|
2019
2147
|
props: {
|
|
2020
2148
|
title: {
|
|
@@ -2024,31 +2152,34 @@ const ds = /* @__PURE__ */ _(ir, [["render", nr]]), lr = {
|
|
|
2024
2152
|
lazy: {
|
|
2025
2153
|
type: Boolean,
|
|
2026
2154
|
required: !1
|
|
2155
|
+
},
|
|
2156
|
+
disabled: {
|
|
2157
|
+
type: Boolean,
|
|
2158
|
+
required: !1
|
|
2027
2159
|
}
|
|
2028
2160
|
},
|
|
2029
2161
|
data() {
|
|
2030
2162
|
return {
|
|
2031
|
-
show: !this.lazy
|
|
2163
|
+
show: !this.lazy,
|
|
2164
|
+
isDisabled: !!this.disabled
|
|
2032
2165
|
};
|
|
2033
|
-
},
|
|
2034
|
-
watch: {
|
|
2035
|
-
show(e, a) {
|
|
2036
|
-
console.log(e);
|
|
2037
|
-
}
|
|
2038
2166
|
}
|
|
2039
|
-
},
|
|
2040
|
-
function
|
|
2041
|
-
return h(), p("details",
|
|
2042
|
-
g("summary", {
|
|
2043
|
-
|
|
2167
|
+
}, co = { class: "tab" }, uo = ["innerHTML"];
|
|
2168
|
+
function mo(e, a, t, i, s, r) {
|
|
2169
|
+
return h(), p("details", co, [
|
|
2170
|
+
g("summary", {
|
|
2171
|
+
innerHTML: t.title,
|
|
2172
|
+
class: S({ disabled: s.isDisabled })
|
|
2173
|
+
}, null, 10, uo),
|
|
2174
|
+
x(e.$slots, "default")
|
|
2044
2175
|
]);
|
|
2045
2176
|
}
|
|
2046
|
-
const
|
|
2047
|
-
let
|
|
2048
|
-
|
|
2049
|
-
const
|
|
2177
|
+
const pi = /* @__PURE__ */ A(lo, [["render", mo]]);
|
|
2178
|
+
let dt = st.props;
|
|
2179
|
+
dt.fields.required = !1;
|
|
2180
|
+
const ho = {
|
|
2050
2181
|
components: {
|
|
2051
|
-
Table:
|
|
2182
|
+
Table: st,
|
|
2052
2183
|
Input: lt
|
|
2053
2184
|
},
|
|
2054
2185
|
data() {
|
|
@@ -2063,8 +2194,8 @@ const mr = {
|
|
|
2063
2194
|
const a = new FormData(e.target);
|
|
2064
2195
|
let t = /* @__PURE__ */ new Date();
|
|
2065
2196
|
const i = t.getFullYear();
|
|
2066
|
-
let
|
|
2067
|
-
|
|
2197
|
+
let s = t.getMonth() + 1, r = t.getDate();
|
|
2198
|
+
r < 10 && (r = "0" + r), s < 10 && (s = "0" + s), t = r + "/" + s + "/" + i, this.itemsData.unshift({
|
|
2068
2199
|
date_added: t,
|
|
2069
2200
|
user: a.get("user"),
|
|
2070
2201
|
note: a.get("addNote")
|
|
@@ -2077,7 +2208,7 @@ const mr = {
|
|
|
2077
2208
|
type: String,
|
|
2078
2209
|
required: !0
|
|
2079
2210
|
},
|
|
2080
|
-
...
|
|
2211
|
+
...dt,
|
|
2081
2212
|
title: {
|
|
2082
2213
|
type: String,
|
|
2083
2214
|
required: !1
|
|
@@ -2092,29 +2223,29 @@ const mr = {
|
|
|
2092
2223
|
required: !1
|
|
2093
2224
|
}
|
|
2094
2225
|
}
|
|
2095
|
-
},
|
|
2096
|
-
function
|
|
2097
|
-
const
|
|
2098
|
-
return h(), p("div",
|
|
2226
|
+
}, po = { class: "container note-feed mb-2" }, bo = ["innerHTML"], fo = ["action", "method"], go = ["value"], yo = /* @__PURE__ */ g("button", { class: "btn btn-tertiary" }, "Submit note", -1);
|
|
2227
|
+
function vo(e, a, t, i, s, r) {
|
|
2228
|
+
const o = F("Table"), n = F("Input");
|
|
2229
|
+
return h(), p("div", po, [
|
|
2099
2230
|
t.title ? (h(), p("span", {
|
|
2100
2231
|
key: 0,
|
|
2101
2232
|
class: "h3",
|
|
2102
2233
|
innerHTML: t.title
|
|
2103
|
-
}, null, 8,
|
|
2104
|
-
C(
|
|
2234
|
+
}, null, 8, bo)) : _("", !0),
|
|
2235
|
+
C(o, R({
|
|
2105
2236
|
fields: [{ key: "date_added" }, { key: "user" }, { key: "note" }],
|
|
2106
|
-
items:
|
|
2237
|
+
items: s.itemsData
|
|
2107
2238
|
}, e.$props, { class: "mb-0" }), null, 16, ["items"]),
|
|
2108
2239
|
g("form", {
|
|
2109
2240
|
action: t.action,
|
|
2110
2241
|
method: t.method,
|
|
2111
|
-
onSubmit: a[0] || (a[0] = gt((
|
|
2242
|
+
onSubmit: a[0] || (a[0] = gt((d) => r.submitForm(...arguments), ["prevent"]))
|
|
2112
2243
|
}, [
|
|
2113
2244
|
g("input", {
|
|
2114
2245
|
type: "hidden",
|
|
2115
2246
|
value: t.user,
|
|
2116
2247
|
name: "user"
|
|
2117
|
-
}, null, 8,
|
|
2248
|
+
}, null, 8, go),
|
|
2118
2249
|
C(n, {
|
|
2119
2250
|
id: "addNote",
|
|
2120
2251
|
type: "textarea",
|
|
@@ -2122,79 +2253,78 @@ function yr(e, a, t, i, o, s) {
|
|
|
2122
2253
|
required: "",
|
|
2123
2254
|
class: "mw-100"
|
|
2124
2255
|
}),
|
|
2125
|
-
|
|
2126
|
-
], 40,
|
|
2256
|
+
yo
|
|
2257
|
+
], 40, fo)
|
|
2127
2258
|
]);
|
|
2128
2259
|
}
|
|
2129
|
-
const
|
|
2260
|
+
const bi = /* @__PURE__ */ A(ho, [["render", vo]]);
|
|
2130
2261
|
/*!
|
|
2131
|
-
* iamKey v4.1.0
|
|
2262
|
+
* iamKey v4.1.0
|
|
2132
2263
|
* Copyright 2022-2023 iamproperty
|
|
2133
2264
|
*/
|
|
2134
|
-
function
|
|
2135
|
-
function t(i,
|
|
2136
|
-
let
|
|
2137
|
-
|
|
2138
|
-
let n = i.querySelector(`[data-name="${
|
|
2139
|
-
n &&
|
|
2140
|
-
let
|
|
2141
|
-
if (n || (n = document.createElement("button"), i.appendChild(n)), n.setAttribute("type", "button"), n.classList.add("filter"), n.setAttribute("data-name",
|
|
2142
|
-
let l =
|
|
2143
|
-
if (
|
|
2144
|
-
let
|
|
2145
|
-
if (
|
|
2265
|
+
function wo(e, a) {
|
|
2266
|
+
function t(i, s) {
|
|
2267
|
+
let r = !1, o = s.getAttribute("name");
|
|
2268
|
+
o.includes("[]") && (o = o.replace("[]", `[${s.value}]`));
|
|
2269
|
+
let n = i.querySelector(`[data-name="${o}"]`);
|
|
2270
|
+
n && s.getAttribute("type") == "checkbox" && (r = !0);
|
|
2271
|
+
let d = s.getAttribute("data-filter-text");
|
|
2272
|
+
if (n || (n = document.createElement("button"), i.appendChild(n)), n.setAttribute("type", "button"), n.classList.add("filter"), n.setAttribute("data-name", o), n.innerHTML = d.replace("$value", s.value), (!s.value || r) && n.remove(), s.parentNode.closest("[data-filter-text]")) {
|
|
2273
|
+
let l = s.parentNode.closest("[data-filter-text]"), m = !0;
|
|
2274
|
+
if (o = "", l.querySelectorAll("input").forEach((c, b) => {
|
|
2275
|
+
let f = c.getAttribute("name");
|
|
2276
|
+
if (o += `${b != 0 ? "," : ""}${f}`, i.querySelector(`[data-name="${f}"]`) && i.querySelector(`[data-name="${f}"]`).remove(), c.value) {
|
|
2146
2277
|
let u = document.createElement("button");
|
|
2147
|
-
u.setAttribute("type", "button"), u.classList.add("filter"), u.setAttribute("data-name",
|
|
2278
|
+
u.setAttribute("type", "button"), u.classList.add("filter"), u.setAttribute("data-name", f), u.innerHTML = d.replace("$value", c.value), i.appendChild(u);
|
|
2148
2279
|
} else
|
|
2149
2280
|
m = !1;
|
|
2150
|
-
}), i.querySelector(`[data-name="${
|
|
2151
|
-
let
|
|
2152
|
-
l.querySelectorAll("input").forEach((
|
|
2153
|
-
let v =
|
|
2154
|
-
i.querySelector(`[data-name="${v}"]`) && i.querySelector(`[data-name="${v}"]`).remove(),
|
|
2281
|
+
}), i.querySelector(`[data-name="${o}"]`) && i.querySelector(`[data-name="${o}"]`).remove(), m) {
|
|
2282
|
+
let c = l.getAttribute("data-filter-text");
|
|
2283
|
+
l.querySelectorAll("input").forEach((f, u) => {
|
|
2284
|
+
let v = f.getAttribute("name");
|
|
2285
|
+
i.querySelector(`[data-name="${v}"]`) && i.querySelector(`[data-name="${v}"]`).remove(), c = c.replace(`$${u + 1}`, f.value);
|
|
2155
2286
|
});
|
|
2156
|
-
let
|
|
2157
|
-
|
|
2287
|
+
let b = document.createElement("button");
|
|
2288
|
+
b.setAttribute("type", "button"), b.classList.add("filter"), b.setAttribute("data-name", o), b.innerHTML = c, i.appendChild(b);
|
|
2158
2289
|
}
|
|
2159
2290
|
}
|
|
2160
2291
|
}
|
|
2161
|
-
Array.from(e.querySelectorAll('input[type="checkbox"]:checked')).forEach((i,
|
|
2292
|
+
Array.from(e.querySelectorAll('input[type="checkbox"]:checked')).forEach((i, s) => {
|
|
2162
2293
|
t(a, i);
|
|
2163
|
-
}), e.
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
}
|
|
2294
|
+
}), Array.from(e.querySelectorAll("input[data-filter-text]")).forEach((i, s) => {
|
|
2295
|
+
i.addEventListener("change", function(r) {
|
|
2296
|
+
t(a, i);
|
|
2297
|
+
});
|
|
2168
2298
|
}), a.addEventListener("click", function(i) {
|
|
2169
2299
|
if (i && i.target instanceof HTMLElement && i.target.closest(".filter")) {
|
|
2170
|
-
let
|
|
2171
|
-
for (var
|
|
2172
|
-
let
|
|
2173
|
-
|
|
2300
|
+
let o = i.target.closest(".filter"), n = o.getAttribute("data-name").split(",");
|
|
2301
|
+
for (var s = 0; s < n.length; s++) {
|
|
2302
|
+
let d = n[s], l = `[name="${d}"]`;
|
|
2303
|
+
d.match(/\[(.*)\]/) && (d.replace(/\[(.*)\]/, "[]"), l = `[value="${d.replace(/.*\[(.*)\]/, "$1")}"]`);
|
|
2174
2304
|
let m = e.querySelectorAll(l);
|
|
2175
|
-
for (var
|
|
2176
|
-
let
|
|
2177
|
-
if (
|
|
2178
|
-
|
|
2305
|
+
for (var r = 0; r < m.length; r++) {
|
|
2306
|
+
let c = m[r];
|
|
2307
|
+
if (c.getAttribute("type") != "radio" && c.getAttribute("type") != "checkbox")
|
|
2308
|
+
c.value = "";
|
|
2179
2309
|
else {
|
|
2180
|
-
|
|
2310
|
+
c.checked = !1;
|
|
2181
2311
|
var i = new Event("force");
|
|
2182
|
-
e.hasAttribute("data-nosubmit") ||
|
|
2312
|
+
e.hasAttribute("data-nosubmit") || c.closest("form").dispatchEvent(i);
|
|
2183
2313
|
}
|
|
2184
2314
|
}
|
|
2185
2315
|
}
|
|
2186
|
-
|
|
2316
|
+
o.remove();
|
|
2187
2317
|
}
|
|
2188
2318
|
}, !1);
|
|
2189
2319
|
}
|
|
2190
2320
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "Applied Filters" });
|
|
2191
|
-
let
|
|
2321
|
+
let Ao = class extends HTMLElement {
|
|
2192
2322
|
constructor() {
|
|
2193
2323
|
super(), this.attachShadow({ mode: "open" });
|
|
2194
2324
|
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`;
|
|
2195
2325
|
let i = this.classList.toString();
|
|
2196
|
-
const
|
|
2197
|
-
|
|
2326
|
+
const s = document.createElement("template");
|
|
2327
|
+
s.innerHTML = `
|
|
2198
2328
|
<style>
|
|
2199
2329
|
@import "${t}";
|
|
2200
2330
|
.applied-filters:not(.applied-filters--compact):not(:empty):before{content:"Applied filters";font-weight:bold;font-size:1.125rem;line-height:1.375rem;color:var(--colour-header);margin-bottom:1rem;display:block}.applied-filters:not(:empty){margin-bottom:1rem}::slotted(*:last-child){margin-bottom:0}.applied-filters .filter{border:1px solid var(--colour-border);padding:1rem 1.5rem 1rem 1.5rem;background:rgba(0,0,0,0);margin-right:.5rem !important;margin-bottom:.5rem !important;line-height:1.5rem;white-space:nowrap}.applied-filters .filter:after{content:"";display:inline-block;height:1.25rem;width:1.25rem;padding:0;margin-left:1.5rem;margin-bottom:-0.25rem;border:none;z-index:var(--index-focus);background:currentColor;mask-image:var(--icon-close);mask-size:100%;mask-repeat:no-repeat;mask-position:50% 50%;-webkit-mask-image:var(--icon-close);-webkit-mask-size:100%;-webkit-mask-repeat:no-repeat;-webkit-mask-position:50% 50%}.applied-filters--compact .filter{background-color:var(--colour-light);border:none;padding:0.625rem;line-height:1rem;border-radius:0.3125rem}.applied-filters--compact .filter:after{margin-left:0.625rem;height:1rem;width:1rem;margin-bottom:-0.1rem}/*# sourceMappingURL=assets/css/components/applied-filters.css.map */
|
|
@@ -2203,47 +2333,47 @@ let wr = class extends HTMLElement {
|
|
|
2203
2333
|
</style>
|
|
2204
2334
|
<div class="applied-filters ${i}"></div>
|
|
2205
2335
|
<slot></slot>
|
|
2206
|
-
`, this.shadowRoot.appendChild(
|
|
2336
|
+
`, this.shadowRoot.appendChild(s.content.cloneNode(!0));
|
|
2207
2337
|
}
|
|
2208
2338
|
connectedCallback() {
|
|
2209
|
-
|
|
2339
|
+
wo(this, this.shadowRoot.querySelector(".applied-filters"));
|
|
2210
2340
|
}
|
|
2211
2341
|
};
|
|
2212
|
-
window.customElements.get("iam-applied-filters") || window.customElements.define("iam-applied-filters",
|
|
2213
|
-
const
|
|
2342
|
+
window.customElements.get("iam-applied-filters") || window.customElements.define("iam-applied-filters", Ao);
|
|
2343
|
+
const _o = {
|
|
2214
2344
|
name: "Header"
|
|
2215
2345
|
};
|
|
2216
|
-
function
|
|
2346
|
+
function xo(e, a, t, i, s, r) {
|
|
2217
2347
|
return h(), p("iam-applied-filters", null, [
|
|
2218
|
-
|
|
2348
|
+
x(e.$slots, "default")
|
|
2219
2349
|
]);
|
|
2220
2350
|
}
|
|
2221
|
-
const
|
|
2351
|
+
const gi = /* @__PURE__ */ A(_o, [["render", xo]]);
|
|
2222
2352
|
/*!
|
|
2223
|
-
* iamKey v4.1.0
|
|
2353
|
+
* iamKey v4.1.0
|
|
2224
2354
|
* Copyright 2022-2023 iamproperty
|
|
2225
2355
|
*/
|
|
2226
|
-
function
|
|
2227
|
-
|
|
2356
|
+
function Lo(e, a) {
|
|
2357
|
+
ko(e, a);
|
|
2228
2358
|
}
|
|
2229
|
-
function
|
|
2359
|
+
function ko(e, a) {
|
|
2230
2360
|
var t;
|
|
2231
2361
|
a.addEventListener("keyup", (i) => {
|
|
2232
2362
|
clearTimeout(t), t = setTimeout(function() {
|
|
2233
|
-
|
|
2363
|
+
Q(e, a.value);
|
|
2234
2364
|
}, 500);
|
|
2235
2365
|
}), a.addEventListener("change", (i) => {
|
|
2236
|
-
clearTimeout(t),
|
|
2366
|
+
clearTimeout(t), Q(e, a.value);
|
|
2237
2367
|
});
|
|
2238
2368
|
}
|
|
2239
|
-
const
|
|
2369
|
+
const Q = function(e, a) {
|
|
2240
2370
|
Array.from(e.querySelectorAll(":scope > li")).forEach((t, i) => {
|
|
2241
|
-
let
|
|
2242
|
-
t.classList.add("d-none"),
|
|
2371
|
+
let s = t.textContent.toLowerCase();
|
|
2372
|
+
t.classList.add("d-none"), s.includes(a.toLowerCase()) && t.classList.remove("d-none");
|
|
2243
2373
|
}), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Filtered list", value: a });
|
|
2244
2374
|
};
|
|
2245
2375
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "filterlist" });
|
|
2246
|
-
|
|
2376
|
+
class So extends HTMLElement {
|
|
2247
2377
|
constructor() {
|
|
2248
2378
|
super(), this.attachShadow({ mode: "open" });
|
|
2249
2379
|
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");
|
|
@@ -2278,30 +2408,30 @@ let kr = class extends HTMLElement {
|
|
|
2278
2408
|
}
|
|
2279
2409
|
connectedCallback() {
|
|
2280
2410
|
let a = this.classList.toString();
|
|
2281
|
-
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>'),
|
|
2411
|
+
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>'), Lo(this.querySelector("ul"), this.shadowRoot.querySelector("#search"));
|
|
2282
2412
|
}
|
|
2283
|
-
}
|
|
2284
|
-
window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist",
|
|
2285
|
-
const
|
|
2413
|
+
}
|
|
2414
|
+
window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist", So);
|
|
2415
|
+
const qo = {
|
|
2286
2416
|
name: "Filter list"
|
|
2287
2417
|
};
|
|
2288
|
-
function $
|
|
2418
|
+
function $o(e, a, t, i, s, r) {
|
|
2289
2419
|
return h(), p("iam-filterlist", null, [
|
|
2290
|
-
|
|
2420
|
+
x(e.$slots, "default")
|
|
2291
2421
|
]);
|
|
2292
2422
|
}
|
|
2293
|
-
const
|
|
2294
|
-
function
|
|
2423
|
+
const yi = /* @__PURE__ */ A(qo, [["render", $o]]);
|
|
2424
|
+
function Eo(e) {
|
|
2295
2425
|
if (e.hasAttribute("data-type") && e.getAttribute("data-type") == "toast") {
|
|
2296
2426
|
let t = document.querySelector(".notification__holder");
|
|
2297
2427
|
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);
|
|
2298
2428
|
}
|
|
2299
2429
|
if (e.setAttribute("role", "alert"), e.addEventListener("click", function(t) {
|
|
2300
|
-
event && event.target instanceof HTMLElement && event.target.closest("[data-dismiss-button]") && (t.preventDefault(),
|
|
2430
|
+
event && event.target instanceof HTMLElement && event.target.closest("[data-dismiss-button]") && (t.preventDefault(), K(e));
|
|
2301
2431
|
}, !1), e.hasAttribute("data-timeout")) {
|
|
2302
2432
|
let t = e.getAttribute("data-timeout");
|
|
2303
|
-
var a = new
|
|
2304
|
-
|
|
2433
|
+
var a = new To(function() {
|
|
2434
|
+
K(e);
|
|
2305
2435
|
}, t);
|
|
2306
2436
|
e.addEventListener("mouseenter", (i) => {
|
|
2307
2437
|
a.pause();
|
|
@@ -2310,15 +2440,15 @@ function xr(e) {
|
|
|
2310
2440
|
});
|
|
2311
2441
|
}
|
|
2312
2442
|
}
|
|
2313
|
-
function
|
|
2314
|
-
var t, i,
|
|
2443
|
+
function To(e, a) {
|
|
2444
|
+
var t, i, s = a;
|
|
2315
2445
|
this.pause = function() {
|
|
2316
|
-
window.clearTimeout(t),
|
|
2446
|
+
window.clearTimeout(t), s -= /* @__PURE__ */ new Date() - i;
|
|
2317
2447
|
}, this.resume = function() {
|
|
2318
|
-
i = /* @__PURE__ */ new Date(), window.clearTimeout(t), t = window.setTimeout(e,
|
|
2448
|
+
i = /* @__PURE__ */ new Date(), window.clearTimeout(t), t = window.setTimeout(e, s);
|
|
2319
2449
|
}, this.resume();
|
|
2320
2450
|
}
|
|
2321
|
-
const
|
|
2451
|
+
const K = function(e) {
|
|
2322
2452
|
e.classList.add("d-none");
|
|
2323
2453
|
};
|
|
2324
2454
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -2326,15 +2456,15 @@ window.dataLayer.push({
|
|
|
2326
2456
|
event: "customElementRegistered",
|
|
2327
2457
|
element: "Notification"
|
|
2328
2458
|
});
|
|
2329
|
-
class
|
|
2459
|
+
class Mo extends HTMLElement {
|
|
2330
2460
|
constructor() {
|
|
2331
2461
|
super(), this.attachShadow({ mode: "open" });
|
|
2332
|
-
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";`,
|
|
2333
|
-
Array.from(
|
|
2334
|
-
|
|
2335
|
-
}), (
|
|
2336
|
-
const
|
|
2337
|
-
|
|
2462
|
+
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 = this.querySelectorAll("a,button");
|
|
2463
|
+
Array.from(s).forEach((o, n) => {
|
|
2464
|
+
o.setAttribute("slot", "btns"), o.classList.add("link");
|
|
2465
|
+
}), (s.length || this.hasAttribute("data-dismiss")) && this.classList.add("notification--dismissable");
|
|
2466
|
+
const r = document.createElement("template");
|
|
2467
|
+
r.innerHTML = `
|
|
2338
2468
|
<style>
|
|
2339
2469
|
@import "${t}";
|
|
2340
2470
|
${i}
|
|
@@ -2343,10 +2473,10 @@ class Tr extends HTMLElement {
|
|
|
2343
2473
|
|
|
2344
2474
|
<div class="notification">
|
|
2345
2475
|
<div class="notification__icon"><slot name="icon"></slot></div>
|
|
2346
|
-
<div class="notification__inner"><div class="notification__text"><slot></slot></div>${
|
|
2476
|
+
<div class="notification__inner"><div class="notification__text"><slot></slot></div>${s.length ? '<div class="notification__btns"><slot name="btns"></slot></div>' : ""}</div>
|
|
2347
2477
|
${this.hasAttribute("data-dismiss") ? '<div class="notification__dismiss"><button data-dismiss-button>Dismiss</button></div>' : ""}
|
|
2348
2478
|
</div>
|
|
2349
|
-
`, this.shadowRoot.appendChild(
|
|
2479
|
+
`, this.shadowRoot.appendChild(r.content.cloneNode(!0));
|
|
2350
2480
|
}
|
|
2351
2481
|
connectedCallback() {
|
|
2352
2482
|
const a = this.shadowRoot.querySelector("[data-dismiss-button]"), t = this.hasAttribute("data-status") ? this.getAttribute("data-status") : "white";
|
|
@@ -2366,196 +2496,201 @@ class Tr extends HTMLElement {
|
|
|
2366
2496
|
default:
|
|
2367
2497
|
this.innerHTML += '<i class="fa-solid fa-circle-info" aria-hidden="true" slot="icon"></i>';
|
|
2368
2498
|
}
|
|
2369
|
-
|
|
2370
|
-
|
|
2499
|
+
Eo(i), a && a.addEventListener("click", function(s) {
|
|
2500
|
+
K(i);
|
|
2371
2501
|
}, !1);
|
|
2372
2502
|
}
|
|
2373
2503
|
}
|
|
2374
|
-
const
|
|
2504
|
+
const Ho = {
|
|
2375
2505
|
name: "Notification",
|
|
2376
2506
|
props: {},
|
|
2377
2507
|
created() {
|
|
2378
2508
|
this.$nextTick(function() {
|
|
2379
|
-
window.customElements.get("iam-notification") || window.customElements.define("iam-notification",
|
|
2509
|
+
window.customElements.get("iam-notification") || window.customElements.define("iam-notification", Mo);
|
|
2380
2510
|
});
|
|
2381
2511
|
}
|
|
2382
2512
|
};
|
|
2383
|
-
function
|
|
2513
|
+
function Co(e, a, t, i, s, r) {
|
|
2384
2514
|
return h(), p("iam-notification", null, [
|
|
2385
|
-
|
|
2515
|
+
x(e.$slots, "default")
|
|
2386
2516
|
]);
|
|
2387
2517
|
}
|
|
2388
|
-
const
|
|
2518
|
+
const vi = /* @__PURE__ */ A(Ho, [["render", Co]]);
|
|
2389
2519
|
/*!
|
|
2390
|
-
* iamKey v4.1.0
|
|
2520
|
+
* iamKey v4.1.0
|
|
2391
2521
|
* Copyright 2022-2023 iamproperty
|
|
2392
2522
|
*/
|
|
2393
|
-
const
|
|
2523
|
+
const Ro = function(e) {
|
|
2394
2524
|
typeof window.player < "u" && typeof window.player.pauseVideo == "function" && window.player.pauseVideo();
|
|
2395
2525
|
var a = e.getAttribute("data-id"), t = e.getAttribute("id");
|
|
2396
2526
|
if (typeof t > "u" || t == null) {
|
|
2397
2527
|
var i = String.fromCharCode(65 + Math.floor(Math.random() * 26));
|
|
2398
2528
|
t = i + Date.now(), e.setAttribute("id", t);
|
|
2399
2529
|
}
|
|
2400
|
-
function
|
|
2401
|
-
window.player = new YT.Player(t, { height: "100%", width: "100%", videoId: a, playerVars: { modestbranding: 1, playsinline: 1, rel: 0, showinfo: 0 }, events: { onReady:
|
|
2530
|
+
function s() {
|
|
2531
|
+
window.player = new YT.Player(t, { height: "100%", width: "100%", videoId: a, playerVars: { modestbranding: 1, playsinline: 1, rel: 0, showinfo: 0 }, events: { onReady: r, onStateChange: n } });
|
|
2402
2532
|
}
|
|
2403
|
-
|
|
2404
|
-
function
|
|
2405
|
-
|
|
2533
|
+
s();
|
|
2534
|
+
function r(d) {
|
|
2535
|
+
d.target.playVideo();
|
|
2406
2536
|
}
|
|
2407
|
-
var
|
|
2408
|
-
function n(
|
|
2409
|
-
if (
|
|
2537
|
+
var o = !1;
|
|
2538
|
+
function n(d) {
|
|
2539
|
+
if (d.data == YT.PlayerState.PLAYING && !o) {
|
|
2410
2540
|
var l = document.getElementById(t);
|
|
2411
|
-
l.classList.add("player-ready"),
|
|
2541
|
+
l.classList.add("player-ready"), o = !0;
|
|
2412
2542
|
}
|
|
2413
2543
|
}
|
|
2414
|
-
},
|
|
2415
|
-
a.closest(".dialog__wrapper") || (a.removeAttribute("open"), a.showModal(), a.focus(),
|
|
2544
|
+
}, jo = (e) => (Array.from(e.querySelectorAll("dialog[open]")).forEach((a, t) => {
|
|
2545
|
+
a.closest(".dialog__wrapper") || (a.removeAttribute("open"), a.showModal(), a.focus(), Z(a));
|
|
2416
2546
|
}), e.addEventListener("click", (a) => {
|
|
2417
2547
|
if (a.target.tagName == "IAM-ACTIONBAR")
|
|
2418
2548
|
return !1;
|
|
2419
2549
|
if (a && a.target instanceof HTMLElement && a.target.closest("[data-modal]")) {
|
|
2420
|
-
const
|
|
2421
|
-
|
|
2422
|
-
let n =
|
|
2423
|
-
|
|
2424
|
-
const m =
|
|
2425
|
-
if (
|
|
2426
|
-
|
|
2427
|
-
let
|
|
2428
|
-
|
|
2550
|
+
const s = a.target.closest("[data-modal]"), r = s.hasAttribute("data-modal") ? s.getAttribute("data-modal") : s.getAttribute("data-filter"), o = document.querySelector(`dialog#${r}`);
|
|
2551
|
+
Z(o), o.showModal(), o.focus();
|
|
2552
|
+
let n = o.offsetWidth;
|
|
2553
|
+
o.setAttribute("style", `max-width: ${n}px;`), Array.from(o.querySelectorAll("[data-duplicate]")).forEach((d, l) => {
|
|
2554
|
+
const m = d.getAttribute("data-duplicate"), c = document.getElementById(m);
|
|
2555
|
+
if (d.checked != c.checked) {
|
|
2556
|
+
d.checked = c.checked;
|
|
2557
|
+
let b = new Event("change");
|
|
2558
|
+
d.dispatchEvent(b);
|
|
2429
2559
|
}
|
|
2430
|
-
}), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "openModal", id:
|
|
2560
|
+
}), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "openModal", id: r });
|
|
2431
2561
|
}
|
|
2432
2562
|
if (a && a.target instanceof HTMLElement && a.target.closest("button.dialog__close")) {
|
|
2433
|
-
const
|
|
2434
|
-
a.preventDefault(),
|
|
2435
|
-
|
|
2436
|
-
}), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "closeModal", id:
|
|
2563
|
+
const s = a.target.closest("dialog[open]");
|
|
2564
|
+
a.preventDefault(), s.close(), Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((r, o) => {
|
|
2565
|
+
r.classList.remove("active");
|
|
2566
|
+
}), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "closeModal", id: s.getAttribute("id") });
|
|
2437
2567
|
}
|
|
2438
2568
|
if (a && a.target instanceof HTMLElement && a.target.closest('button[formmethod="dialog"]')) {
|
|
2439
|
-
const
|
|
2440
|
-
Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((
|
|
2441
|
-
|
|
2442
|
-
}), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "closeModal", id:
|
|
2569
|
+
const s = a.target.closest("dialog[open]");
|
|
2570
|
+
Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((r, o) => {
|
|
2571
|
+
r.classList.remove("active");
|
|
2572
|
+
}), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "closeModal", id: s.getAttribute("id") });
|
|
2443
2573
|
}
|
|
2444
2574
|
if (a && a.target instanceof HTMLElement && a.target.closest("dialog[open]")) {
|
|
2445
|
-
let
|
|
2446
|
-
var t = window.getComputedStyle(
|
|
2447
|
-
if (t.display === "contents" && (
|
|
2448
|
-
const
|
|
2449
|
-
(a.clientX <
|
|
2575
|
+
let s = a.target.closest("dialog[open]");
|
|
2576
|
+
var t = window.getComputedStyle(s);
|
|
2577
|
+
if (t.display === "contents" && (s = s.parentNode.closest("dialog[open]")), !s.querySelector(":scope > .mh-lg > form:last-child > button:last-child, :scope > .mh-lg > button:last-child") || s.classList.contains("dialog--multi")) {
|
|
2578
|
+
const r = s.getBoundingClientRect();
|
|
2579
|
+
(a.clientX < r.left || a.clientX > r.right || a.clientY < r.top || a.clientY > r.bottom) && (a.target.closest('input[type="radio"]') || s.close(), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "closeModal", id: s.getAttribute("id") }));
|
|
2450
2580
|
}
|
|
2451
2581
|
}
|
|
2452
2582
|
if (a && a.target instanceof HTMLElement && a.target.closest(".dialog__wrapper > button")) {
|
|
2453
2583
|
a.stopPropagation();
|
|
2454
|
-
let
|
|
2455
|
-
if (document.querySelector("*:not([data-keep-open]) > dialog[open]") && document.querySelector("*:not([data-keep-open]) > dialog[open]") != n && document.querySelector("*:not([data-keep-open]) > dialog[open]").close(), Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((
|
|
2456
|
-
|
|
2584
|
+
let s = a.target.closest(".dialog__wrapper > button"), r = a.target.closest(".dialog__wrapper > button").parentNode, o = "openPopover", n = r.querySelector(":scope > dialog");
|
|
2585
|
+
if (document.querySelector("*:not([data-keep-open]) > dialog[open]") && document.querySelector("*:not([data-keep-open]) > dialog[open]") != n && document.querySelector("*:not([data-keep-open]) > dialog[open]").close(), Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((c, b) => {
|
|
2586
|
+
c.classList.remove("active");
|
|
2457
2587
|
}), n.hasAttribute("open"))
|
|
2458
|
-
n.close(),
|
|
2588
|
+
n.close(), o = "closePopover", n.removeAttribute("style"), s.classList.remove("active");
|
|
2459
2589
|
else {
|
|
2460
|
-
n.show(),
|
|
2461
|
-
var i =
|
|
2462
|
-
let
|
|
2463
|
-
if (
|
|
2464
|
-
let
|
|
2465
|
-
|
|
2590
|
+
n.show(), s.classList.add("active");
|
|
2591
|
+
var i = s.getBoundingClientRect();
|
|
2592
|
+
let c = i.top, b = i.left;
|
|
2593
|
+
if (s.closest("iam-table")) {
|
|
2594
|
+
let f = s.closest("iam-table").parentNode.getBoundingClientRect();
|
|
2595
|
+
c -= f.top, b -= f.left;
|
|
2466
2596
|
}
|
|
2467
|
-
n.classList.contains("dialog--fix") && n.setAttribute("style", `position:fixed;top: ${
|
|
2597
|
+
n.classList.contains("dialog--fix") && n.setAttribute("style", `position:fixed;top: ${c}px; left: ${b}px; margin: 3rem 0 0 0;`);
|
|
2468
2598
|
}
|
|
2469
|
-
let
|
|
2599
|
+
let d = n.getBoundingClientRect(), l = d.bottom - window.scrollY, m = window.innerHeight - window.scrollY;
|
|
2470
2600
|
if (l > m) {
|
|
2471
|
-
let
|
|
2472
|
-
n.setAttribute("style",
|
|
2601
|
+
let c = n.hasAttribute("style") ? n.getAttribute("style") + " " : "";
|
|
2602
|
+
n.setAttribute("style", c + "transform: translate(0, calc(-100% - 4rem))"), d = n.getBoundingClientRect(), d.top - window.scrollY < 100 && n.removeAttribute("style");
|
|
2473
2603
|
}
|
|
2474
|
-
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event:
|
|
2604
|
+
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: o, id: s.textContent });
|
|
2475
2605
|
}
|
|
2476
|
-
a && a.target instanceof HTMLElement && !a.target.closest("dialog[open]") && !a.target.closest(".dialog__wrapper > button") && (document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]") && document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]").close(), Array.from(document.querySelectorAll(".dialog__wrapper:not([data-keep-open]) > button")).forEach((
|
|
2477
|
-
|
|
2606
|
+
a && a.target instanceof HTMLElement && !a.target.closest("dialog[open]") && !a.target.closest(".dialog__wrapper > button") && (document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]") && document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]").close(), Array.from(document.querySelectorAll(".dialog__wrapper:not([data-keep-open]) > button")).forEach((s, r) => {
|
|
2607
|
+
s.classList.remove("active");
|
|
2478
2608
|
}));
|
|
2479
|
-
}), null),
|
|
2609
|
+
}), null), Z = (e) => {
|
|
2480
2610
|
e.querySelector(":scope > .mh-lg > form:last-child > button:last-child, :scope > .mh-lg > button:last-child") && !e.classList.contains("dialog--multi") && e.addEventListener("cancel", (t) => {
|
|
2481
2611
|
t.preventDefault();
|
|
2482
2612
|
});
|
|
2483
2613
|
let a = e.querySelector(".youtube-embed a");
|
|
2484
|
-
if (a &&
|
|
2614
|
+
if (a && Ro(a), e.classList.contains("dialog--multi") && !e.querySelector(":scope > .steps") && No(e), !e.querySelector(":scope > .mh-lg") && !e.classList.contains("dialog--multi")) {
|
|
2485
2615
|
e.innerHTML = `<div class="mh-lg">${e.innerHTML}</div>`;
|
|
2486
2616
|
let t = e.querySelector(".mh-lg"), i = e.querySelector(".mh-lg :is(.h1,.h2,.h3,.h4,.h5,.h6)");
|
|
2487
2617
|
if (i) {
|
|
2488
|
-
let
|
|
2489
|
-
t.before(i),
|
|
2618
|
+
let s = i.previousSibling;
|
|
2619
|
+
t.before(i), s && i.before(s);
|
|
2490
2620
|
}
|
|
2491
2621
|
}
|
|
2492
2622
|
e.querySelector(":scope > button:first-child") || e.insertAdjacentHTML("afterbegin", '<button class="dialog__close">Close</button>');
|
|
2493
|
-
},
|
|
2494
|
-
let a = "", t = Array.from(e.querySelectorAll("fieldset[data-title]"));
|
|
2495
|
-
t.forEach((
|
|
2496
|
-
a += `<button data-title="${
|
|
2497
|
-
const
|
|
2498
|
-
|
|
2623
|
+
}, No = (e) => {
|
|
2624
|
+
let a = "", t = Array.from(e.querySelectorAll("fieldset[data-title]")), i = e.querySelector("form");
|
|
2625
|
+
t.forEach((o, n) => {
|
|
2626
|
+
a += `<button data-title="${o.getAttribute("data-title")}" type="button" class="${n == 0 ? "active" : ""}" tabindex="-1">${o.getAttribute("data-title")}</button>`;
|
|
2627
|
+
const d = document.createElement("div");
|
|
2628
|
+
if (d.classList.add("btn--wrapper"), o.appendChild(d), n != 0 && (d.innerHTML += `<button data-title="${t[n - 1].getAttribute("data-title")}" class="btn btn-secondary mb-0" data-previous type="button">Previous</button>`), n != t.length - 1 && (d.innerHTML += `<button data-title="${t[n + 1].getAttribute("data-title")}" class="btn btn-primary mb-0" data-next type="button">Next</button>`), n == t.length - 1)
|
|
2629
|
+
if (i && i.querySelector(':scope > button[type="submit"]')) {
|
|
2630
|
+
let l = i.querySelector(':scope > button[type="submit"]');
|
|
2631
|
+
l.classList.add("mb-0"), d.insertAdjacentElement("beforeend", l);
|
|
2632
|
+
} else
|
|
2633
|
+
d.innerHTML += `<button data-title="${t[n].getAttribute("data-title")}" class="btn btn-primary mb-0" data-next type="submit">Submit</button>`;
|
|
2499
2634
|
}), e.insertAdjacentHTML("afterbegin", `<div class="steps bg-primary">${a}</div>`);
|
|
2500
|
-
let
|
|
2501
|
-
for (let
|
|
2502
|
-
let
|
|
2503
|
-
if (
|
|
2504
|
-
Array.from(e.querySelectorAll(`[data-title="${
|
|
2505
|
-
|
|
2635
|
+
let s = Array.from(e.querySelectorAll("fieldset.was-validated"));
|
|
2636
|
+
for (let o = 0; o < s.length; o++) {
|
|
2637
|
+
let n = s[o], d = n.getAttribute("data-title");
|
|
2638
|
+
if (n.querySelector(".is-invalid")) {
|
|
2639
|
+
Array.from(e.querySelectorAll(`[data-title="${d}"]`)).forEach((l, m) => {
|
|
2640
|
+
l.classList.add("active");
|
|
2506
2641
|
});
|
|
2507
2642
|
break;
|
|
2508
2643
|
} else
|
|
2509
|
-
Array.from(e.querySelectorAll(`[data-title="${
|
|
2510
|
-
|
|
2644
|
+
Array.from(e.querySelectorAll(`[data-title="${d}"]`)).forEach((l, m) => {
|
|
2645
|
+
l.classList.add("valid");
|
|
2511
2646
|
});
|
|
2512
2647
|
}
|
|
2513
2648
|
e.addEventListener("invalid", function() {
|
|
2514
|
-
return function(
|
|
2515
|
-
|
|
2649
|
+
return function(o) {
|
|
2650
|
+
o.preventDefault();
|
|
2516
2651
|
};
|
|
2517
2652
|
}(), !0);
|
|
2518
|
-
function o
|
|
2519
|
-
const
|
|
2520
|
-
let
|
|
2521
|
-
if (
|
|
2522
|
-
|
|
2523
|
-
}),
|
|
2524
|
-
|
|
2525
|
-
}) : Array.from(e.querySelectorAll(`[data-title="${
|
|
2526
|
-
|
|
2527
|
-
}),
|
|
2528
|
-
const
|
|
2529
|
-
Array.from(e.querySelectorAll("button")).forEach((
|
|
2530
|
-
|
|
2531
|
-
}), Array.from(e.querySelectorAll("fieldset")).forEach((
|
|
2532
|
-
|
|
2533
|
-
}), f.classList.add("active"),
|
|
2534
|
-
}
|
|
2535
|
-
let
|
|
2536
|
-
e.style.setProperty("--progress", `${
|
|
2537
|
-
}
|
|
2538
|
-
e.addEventListener("keydown", (
|
|
2539
|
-
if (
|
|
2540
|
-
const
|
|
2541
|
-
|
|
2542
|
-
}
|
|
2543
|
-
|
|
2544
|
-
}), e.addEventListener("click", (
|
|
2545
|
-
if (
|
|
2546
|
-
|
|
2547
|
-
else if (
|
|
2548
|
-
const
|
|
2549
|
-
|
|
2653
|
+
function r(o) {
|
|
2654
|
+
const n = e.querySelector("fieldset.active") ? e.querySelector("fieldset.active") : e.querySelector("fieldset[data-title]"), d = n.getAttribute("data-title");
|
|
2655
|
+
let l = !0;
|
|
2656
|
+
if (n.classList.add("was-validated"), Array.from(n.querySelectorAll("input")).forEach((b, f) => {
|
|
2657
|
+
b.checkValidity() || (l = !1);
|
|
2658
|
+
}), l ? Array.from(e.querySelectorAll(`[data-title="${d}"]`)).forEach((b, f) => {
|
|
2659
|
+
b.classList.add("valid");
|
|
2660
|
+
}) : Array.from(e.querySelectorAll(`[data-title="${d}"]`)).forEach((b, f) => {
|
|
2661
|
+
b.classList.remove("valid");
|
|
2662
|
+
}), l || !o.hasAttribute("data-next")) {
|
|
2663
|
+
const b = e.querySelector(`fieldset[data-title="${o.getAttribute("data-title")}"]`), f = e.querySelector(`.steps button[data-title="${o.getAttribute("data-title")}"]`);
|
|
2664
|
+
Array.from(e.querySelectorAll("button")).forEach((u, v) => {
|
|
2665
|
+
u.classList.remove("active");
|
|
2666
|
+
}), Array.from(e.querySelectorAll("fieldset")).forEach((u, v) => {
|
|
2667
|
+
u.classList.remove("active");
|
|
2668
|
+
}), f.classList.add("active"), b.classList.add("active");
|
|
2669
|
+
}
|
|
2670
|
+
let m = Array.from(e.querySelectorAll("fieldset")).length, c = Array.from(e.querySelectorAll("fieldset.valid")).length;
|
|
2671
|
+
e.style.setProperty("--progress", `${c / (m - 1) * 100}%`);
|
|
2672
|
+
}
|
|
2673
|
+
e.addEventListener("keydown", (o) => {
|
|
2674
|
+
if (o && o.target instanceof HTMLElement && o.target.closest("button")) {
|
|
2675
|
+
const n = o.target.closest("button");
|
|
2676
|
+
o.keyCode == 13 && n.getAttribute("type") != "submit" && (o.preventDefault(), r(n));
|
|
2677
|
+
}
|
|
2678
|
+
o && o.target instanceof HTMLElement && o.target.closest("input") && (o.target.closest("input").classList.remove("is-invalid"), o.keyCode == 13 && o.preventDefault());
|
|
2679
|
+
}), e.addEventListener("click", (o) => {
|
|
2680
|
+
if (o && o.target instanceof HTMLElement && o.target.closest('button[type="submit"]'))
|
|
2681
|
+
o.target.closest("form").classList.add("was-validated");
|
|
2682
|
+
else if (o && o.target instanceof HTMLElement && o.target.closest("button[data-title]")) {
|
|
2683
|
+
const n = o.target.closest("button[data-title]");
|
|
2684
|
+
r(n);
|
|
2550
2685
|
}
|
|
2551
2686
|
return null;
|
|
2552
2687
|
});
|
|
2553
2688
|
};
|
|
2554
2689
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "action bar" });
|
|
2555
|
-
function
|
|
2690
|
+
function tt(e, a) {
|
|
2556
2691
|
e && a == "all" ? (e.querySelector("input").indeterminate = !1, e.querySelector("input").checked = !0, e.querySelector("label").textContent = "Select all") : e && a == 0 ? (e.querySelector("input").indeterminate = !1, e.querySelector("input").checked = !1, e.querySelector("label").textContent = "Select all") : e && a ? (e.querySelector("input").indeterminate = !0, e.querySelector("input").checked = !1, e.querySelector("label").textContent = `${a} item${a > 1 ? "s" : ""} selected`) : e && (e.querySelector("input").checked = !1, e.querySelector("input").indeterminate = !1, e.querySelector("label").textContent = "Select all");
|
|
2557
2692
|
}
|
|
2558
|
-
class
|
|
2693
|
+
class Do extends HTMLElement {
|
|
2559
2694
|
constructor() {
|
|
2560
2695
|
super(), this.attachShadow({ mode: "open" });
|
|
2561
2696
|
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");
|
|
@@ -2614,96 +2749,96 @@ class Dr extends HTMLElement {
|
|
|
2614
2749
|
const t = this.shadowRoot.querySelector(".actionbar__wrapper");
|
|
2615
2750
|
if (this.hasAttribute("data-selectall")) {
|
|
2616
2751
|
t.insertAdjacentHTML("afterbegin", '<div class="selectall pb-0"><input type="checkbox" name="selectall" id="selectall"><label for="selectall" class="m-0">Select all</label></div>');
|
|
2617
|
-
let
|
|
2618
|
-
this.hasAttribute("data-selected") &&
|
|
2752
|
+
let r = this.shadowRoot.querySelector(".selectall");
|
|
2753
|
+
this.hasAttribute("data-selected") && tt(r, this.getAttribute("data-selected")), r.addEventListener("change", (n) => {
|
|
2619
2754
|
n && n.target instanceof HTMLElement && n.target.closest("input") && (n.target.closest("input").checked ? this.setAttribute("data-selected", "all") : this.setAttribute("data-selected", 0));
|
|
2620
2755
|
});
|
|
2621
|
-
let
|
|
2622
|
-
|
|
2756
|
+
let o = this.querySelector("button[data-cancel]");
|
|
2757
|
+
o && o.addEventListener("click", (n) => {
|
|
2623
2758
|
this.setAttribute("data-selected", 0);
|
|
2624
2759
|
});
|
|
2625
2760
|
}
|
|
2626
2761
|
if (this.hasAttribute("data-select-watch")) {
|
|
2627
|
-
const
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
}),
|
|
2631
|
-
if (
|
|
2632
|
-
let n =
|
|
2633
|
-
a.setAttribute("data-selected", n ==
|
|
2762
|
+
const r = document.getElementById(this.getAttribute("data-select-watch"));
|
|
2763
|
+
r.setAttribute("data-select-container", "true"), Array.from(r.querySelectorAll('input[type="checkbox"]')).forEach((o, n) => {
|
|
2764
|
+
o.parentElement.setAttribute("slot", "checkbox");
|
|
2765
|
+
}), r.addEventListener("change", (o) => {
|
|
2766
|
+
if (o && o.target instanceof HTMLElement && o.target.closest('[type="checkbox"]')) {
|
|
2767
|
+
let n = r.querySelectorAll('input[type="checkbox"]').length, d = r.querySelectorAll('input[type="checkbox"]:checked').length;
|
|
2768
|
+
a.setAttribute("data-selected", n == d ? "all" : d), o.target.closest('[type="checkbox"]'), d ? Array.from(r.querySelectorAll('input[type="checkbox"]')).forEach((l, m) => {
|
|
2634
2769
|
l.closest("iam-card") && l.closest("iam-card").setAttribute("data-selected", "true");
|
|
2635
|
-
}) : Array.from(
|
|
2770
|
+
}) : Array.from(r.querySelectorAll('input[type="checkbox"]')).forEach((l, m) => {
|
|
2636
2771
|
l.closest("iam-card") && l.closest("iam-card").removeAttribute("data-selected");
|
|
2637
2772
|
});
|
|
2638
2773
|
}
|
|
2639
2774
|
});
|
|
2640
2775
|
}
|
|
2641
2776
|
if (this.hasAttribute("data-switchviews")) {
|
|
2642
|
-
let
|
|
2643
|
-
this.getAttribute("data-switchviews").split(",").forEach((
|
|
2644
|
-
let
|
|
2645
|
-
|
|
2646
|
-
}), t.insertAdjacentHTML("afterbegin", `<div class="views m-0">${
|
|
2647
|
-
if (
|
|
2648
|
-
let n =
|
|
2777
|
+
let r = "";
|
|
2778
|
+
this.getAttribute("data-switchviews").split(",").forEach((o, n) => {
|
|
2779
|
+
let d = "fa-grid-2";
|
|
2780
|
+
o == "list" ? d = "fa-grip-lines" : o == "small" && (d = "fa-bars"), r += `<button class="btn btn-action btn-compact mb-0 fa-regular ${d}">${o}</button>`;
|
|
2781
|
+
}), t.insertAdjacentHTML("afterbegin", `<div class="views m-0">${r}</div>`), this.shadowRoot.querySelector(".views").addEventListener("click", (o) => {
|
|
2782
|
+
if (o && o.target instanceof HTMLElement && o.target.closest(".btn-action")) {
|
|
2783
|
+
let n = o.target.closest(".btn-action");
|
|
2649
2784
|
this.setAttribute("data-view", n.textContent);
|
|
2650
|
-
const
|
|
2651
|
-
this.dispatchEvent(
|
|
2785
|
+
const d = new CustomEvent("switch-view", { detail: { view: n.textContent } });
|
|
2786
|
+
this.dispatchEvent(d);
|
|
2652
2787
|
}
|
|
2653
2788
|
});
|
|
2654
2789
|
}
|
|
2655
2790
|
const i = this.shadowRoot.querySelector(".actionbar--search");
|
|
2656
|
-
this.hasAttribute("data-search") && this.getAttribute("data-search") == "show" && i.classList.add("show"), this.shadowRoot.addEventListener("click", (
|
|
2657
|
-
|
|
2658
|
-
}), i.addEventListener("keyup", (
|
|
2659
|
-
const
|
|
2660
|
-
this.dispatchEvent(
|
|
2661
|
-
}), i.addEventListener("change", (
|
|
2662
|
-
const
|
|
2663
|
-
this.dispatchEvent(
|
|
2664
|
-
}), i.addEventListener("click", (
|
|
2665
|
-
if (
|
|
2666
|
-
const
|
|
2667
|
-
this.dispatchEvent(
|
|
2791
|
+
this.hasAttribute("data-search") && this.getAttribute("data-search") == "show" && i.classList.add("show"), this.shadowRoot.addEventListener("click", (r) => {
|
|
2792
|
+
r && r.target instanceof HTMLElement && r.target.closest("button[data-search]") && i.classList.toggle("show");
|
|
2793
|
+
}), i.addEventListener("keyup", (r) => {
|
|
2794
|
+
const o = new CustomEvent("search-keyup", { detail: { search: i.querySelector("input").value } });
|
|
2795
|
+
this.dispatchEvent(o);
|
|
2796
|
+
}), i.addEventListener("change", (r) => {
|
|
2797
|
+
const o = new CustomEvent("search-change", { detail: { search: i.querySelector("input").value } });
|
|
2798
|
+
this.dispatchEvent(o);
|
|
2799
|
+
}), i.addEventListener("click", (r) => {
|
|
2800
|
+
if (r && r.target instanceof HTMLElement && r.target.closest("button.suffix")) {
|
|
2801
|
+
const o = new CustomEvent("search-submit", { detail: { search: i.querySelector("input").value } });
|
|
2802
|
+
this.dispatchEvent(o);
|
|
2668
2803
|
}
|
|
2669
|
-
}), Array.from(this.shadowRoot.querySelectorAll(".body")).forEach((
|
|
2670
|
-
|
|
2804
|
+
}), Array.from(this.shadowRoot.querySelectorAll(".body")).forEach((r, o) => {
|
|
2805
|
+
jo(r);
|
|
2671
2806
|
});
|
|
2672
|
-
function
|
|
2673
|
-
const
|
|
2674
|
-
let n = 750,
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
}) : Array.from(a.querySelectorAll(":scope > .btn.js-updated")).forEach((
|
|
2678
|
-
|
|
2679
|
-
}), Array.from(a.querySelectorAll("[slot]")).forEach((
|
|
2680
|
-
|
|
2681
|
-
}), Array.from(a.querySelectorAll(".show")).forEach((
|
|
2682
|
-
|
|
2683
|
-
}), Array.from(a.shadowRoot.querySelectorAll(".safe-area")).forEach((
|
|
2684
|
-
let
|
|
2685
|
-
|
|
2686
|
-
let u =
|
|
2807
|
+
function s() {
|
|
2808
|
+
const r = t.scrollWidth, o = document.documentElement.scrollWidth;
|
|
2809
|
+
let n = 750, d = 16, l = a.hasAttribute("data-switchviews") ? 144 : 210, m = 1;
|
|
2810
|
+
o >= 992 && o <= 1280 ? m = o / 1280 : o >= 576 && o <= 1280 ? m = o / 768 : o < 576 && (m = o / 375), r >= 992 && r <= 1280 ? n = n * m : r >= 576 && r <= 1280 ? n = 450 * m : r < 576 && (n = l * m), d = d * m, r < 576 ? Array.from(a.querySelectorAll(":scope > .btn:not(.js-updated)")).forEach((c, b) => {
|
|
2811
|
+
c.className = c.className.replace(" btn-compact", " _btn-compact"), c.classList.add("btn-compact"), c.classList.add("js-updated");
|
|
2812
|
+
}) : Array.from(a.querySelectorAll(":scope > .btn.js-updated")).forEach((c, b) => {
|
|
2813
|
+
c.classList.remove("btn-compact"), c.classList.remove("js-updated"), c.className = c.className.replace(" _btn-compact", " btn-compact");
|
|
2814
|
+
}), Array.from(a.querySelectorAll("[slot]")).forEach((c, b) => {
|
|
2815
|
+
c.getAttribute("slot") == "overflow" && c.removeAttribute("slot"), c.getAttribute("slot") == "selected-overflow" && c.setAttribute("slot", "selected");
|
|
2816
|
+
}), Array.from(a.querySelectorAll(".show")).forEach((c, b) => {
|
|
2817
|
+
c.classList.remove("show");
|
|
2818
|
+
}), Array.from(a.shadowRoot.querySelectorAll(".safe-area")).forEach((c, b) => {
|
|
2819
|
+
let f = "overflow";
|
|
2820
|
+
c.querySelector("slot").hasAttribute("name") && c.querySelector("slot").getAttribute("name") == "selected" && (f = "selected-overflow");
|
|
2821
|
+
let u = c.querySelector("slot").assignedElements(), v = 44 * m;
|
|
2687
2822
|
a.hasAttribute("data-search") && (v += 44 * m);
|
|
2688
2823
|
for (let y = 0; y < u.length; y++)
|
|
2689
|
-
!u[y].classList.contains("btn-action") && !u[y].classList.contains("dialog__wrapper") && (v += u[y].offsetWidth, v +=
|
|
2824
|
+
!u[y].classList.contains("btn-action") && !u[y].classList.contains("dialog__wrapper") && (v += u[y].offsetWidth, v += d);
|
|
2690
2825
|
for (let y = 0; y < u.length; y++)
|
|
2691
|
-
if (u[y].classList.contains("dialog__wrapper") && (u[y].classList.add("show"), v += u[y].offsetWidth, v +=
|
|
2826
|
+
if (u[y].classList.contains("dialog__wrapper") && (u[y].classList.add("show"), v += u[y].offsetWidth, v += d / 2, v - d / 2 > n)) {
|
|
2692
2827
|
u[y].classList.remove("show");
|
|
2693
2828
|
break;
|
|
2694
2829
|
}
|
|
2695
2830
|
for (let y = 0; y < u.length; y++)
|
|
2696
|
-
if (u[y].classList.contains("btn-action") && (u[y].classList.add("show"), v += u[y].offsetWidth, v +=
|
|
2831
|
+
if (u[y].classList.contains("btn-action") && (u[y].classList.add("show"), v += u[y].offsetWidth, v += d / 2, v - d / 2 > n)) {
|
|
2697
2832
|
u[y].classList.remove("show");
|
|
2698
2833
|
break;
|
|
2699
2834
|
}
|
|
2700
|
-
let
|
|
2701
|
-
|
|
2835
|
+
let k = c.querySelector(".dialog-overflow");
|
|
2836
|
+
k && k.classList.add("d-none");
|
|
2702
2837
|
for (let y = 0; y < u.length; y++)
|
|
2703
|
-
(u[y].classList.contains("btn-action") || u[y].classList.contains("dialog__wrapper")) && (u[y].classList.contains("show") || (u[y].setAttribute("slot",
|
|
2838
|
+
(u[y].classList.contains("btn-action") || u[y].classList.contains("dialog__wrapper")) && (u[y].classList.contains("show") || (u[y].setAttribute("slot", f), k && k.classList.remove("d-none")));
|
|
2704
2839
|
});
|
|
2705
2840
|
}
|
|
2706
|
-
|
|
2841
|
+
s(), new ResizeObserver(s).observe(t);
|
|
2707
2842
|
}
|
|
2708
2843
|
static get observedAttributes() {
|
|
2709
2844
|
return ["data-selected"];
|
|
@@ -2711,18 +2846,18 @@ class Dr extends HTMLElement {
|
|
|
2711
2846
|
attributeChangedCallback(a, t, i) {
|
|
2712
2847
|
switch (a) {
|
|
2713
2848
|
case "data-selected": {
|
|
2714
|
-
let
|
|
2715
|
-
|
|
2716
|
-
const
|
|
2717
|
-
if (this.dispatchEvent(
|
|
2718
|
-
const
|
|
2719
|
-
Array.from(
|
|
2849
|
+
let s = this.shadowRoot.querySelector(".selectall");
|
|
2850
|
+
s && tt(s, i);
|
|
2851
|
+
const r = new CustomEvent("selected", { detail: { selected: i } });
|
|
2852
|
+
if (this.dispatchEvent(r), i == "all" && this.hasAttribute("data-select-watch")) {
|
|
2853
|
+
const o = document.getElementById(this.getAttribute("data-select-watch"));
|
|
2854
|
+
Array.from(o.querySelectorAll('input[type="checkbox"]')).forEach((n, d) => {
|
|
2720
2855
|
n.checked = !0, n.closest("iam-card") && n.closest("iam-card").setAttribute("data-selected", "true");
|
|
2721
2856
|
});
|
|
2722
2857
|
}
|
|
2723
2858
|
if (i == "0" && this.hasAttribute("data-select-watch")) {
|
|
2724
|
-
const
|
|
2725
|
-
Array.from(
|
|
2859
|
+
const o = document.getElementById(this.getAttribute("data-select-watch"));
|
|
2860
|
+
Array.from(o.querySelectorAll('input[type="checkbox"]')).forEach((n, d) => {
|
|
2726
2861
|
n.checked = !1, n.closest("iam-card") && n.closest("iam-card").removeAttribute("data-selected", "true");
|
|
2727
2862
|
});
|
|
2728
2863
|
}
|
|
@@ -2731,83 +2866,62 @@ class Dr extends HTMLElement {
|
|
|
2731
2866
|
}
|
|
2732
2867
|
}
|
|
2733
2868
|
}
|
|
2734
|
-
window.customElements.get("iam-actionbar") || window.customElements.define("iam-actionbar",
|
|
2735
|
-
const
|
|
2869
|
+
window.customElements.get("iam-actionbar") || window.customElements.define("iam-actionbar", Do);
|
|
2870
|
+
const zo = {
|
|
2736
2871
|
name: "Actionbar",
|
|
2737
2872
|
props: {},
|
|
2738
2873
|
mounted() {
|
|
2739
2874
|
}
|
|
2740
2875
|
};
|
|
2741
|
-
function
|
|
2876
|
+
function Po(e, a, t, i, s, r) {
|
|
2742
2877
|
return h(), p("iam-actionbar", null, [
|
|
2743
|
-
|
|
2878
|
+
x(e.$slots, "default")
|
|
2744
2879
|
]);
|
|
2745
2880
|
}
|
|
2746
|
-
const
|
|
2747
|
-
/*!
|
|
2748
|
-
* iamKey v4.1.0-beta-2
|
|
2749
|
-
* Copyright 2022-2023 iamproperty
|
|
2750
|
-
*/
|
|
2751
|
-
const jr = function(e, a) {
|
|
2752
|
-
if (!e.getAttribute("data-pages"))
|
|
2753
|
-
return !1;
|
|
2754
|
-
e.getAttribute("data-page") || e.setAttribute("data-page", 1);
|
|
2755
|
-
let t = e.getAttribute("data-page"), i = e.getAttribute("data-pages"), o = e.getAttribute("data-total"), s = e.getAttribute("data-show"), r = e.getAttribute("data-increment");
|
|
2756
|
-
if (i <= 1)
|
|
2757
|
-
return a.innerHTML = "", !1;
|
|
2758
|
-
let n = "";
|
|
2759
|
-
for (let c = 1; c <= i; c++)
|
|
2760
|
-
c == t ? n += `<li class="page-item active" aria-current="page"><span class="page-link">${c}</span></li>` : n += `<li class="page-item"><a href="?page=${c}" class="page-link" data-page="${c}">${c}</a></li>`;
|
|
2761
|
-
return a.innerHTML = `<ul class="pagination mb-0 d-none d-sm-flex">
|
|
2762
|
-
${t == 1 ? '<li class="page-item disabled"><span class="page-link">Previous</span></li>' : `<li class="page-item"><a href="?page=${parseInt(t) - 1}" class="page-link" data-page="${parseInt(t) - 1}">Previous</a></li>`}
|
|
2763
|
-
${n}
|
|
2764
|
-
${t == i ? '<li class="page-item disabled"><span class="page-link">Next</span></li>' : `<li class="page-item"><a href="?page=${parseInt(t) + 1}" class="page-link" data-page="${parseInt(t) + 1}">Next</a></li>`}
|
|
2765
|
-
</ul>`, a.innerHTML += `<div class="d-sm-none text-center">
|
|
2766
|
-
<span class="d-block pb-2">You've viewed ${s} of ${o} results</span>
|
|
2767
|
-
<a href="?show=${parseInt(s) + parseInt(r)}" class="btn btn-primary w-100 m-0" data-show="${parseInt(s) + parseInt(r)}">Load more results</a>
|
|
2768
|
-
</div>`, !0;
|
|
2769
|
-
};
|
|
2770
|
-
class zr extends HTMLElement {
|
|
2771
|
-
constructor() {
|
|
2772
|
-
super(), this.attachShadow({ mode: "open" });
|
|
2773
|
-
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");
|
|
2774
|
-
i.innerHTML = `
|
|
2775
|
-
<style>
|
|
2776
|
-
@import "${t}";
|
|
2777
|
-
|
|
2778
|
-
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
2779
|
-
</style>
|
|
2780
|
-
<div class="pagination__wrapper d-none">
|
|
2781
|
-
</div>
|
|
2782
|
-
`, this.shadowRoot.appendChild(i.content.cloneNode(!0));
|
|
2783
|
-
}
|
|
2784
|
-
connectedCallback() {
|
|
2785
|
-
const a = new URLSearchParams(window.location.search);
|
|
2786
|
-
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", 15), this.setAttribute("data-pages", Math.ceil(this.getAttribute("data-total") / this.getAttribute("data-show"))), jr(this, this.shadowRoot.querySelector(".pagination__wrapper")), this.shadowRoot.querySelector(".pagination__wrapper").classList.remove("d-none");
|
|
2787
|
-
}
|
|
2788
|
-
}
|
|
2789
|
-
const Br = {
|
|
2881
|
+
const wi = /* @__PURE__ */ A(zo, [["render", Po]]), Fo = {
|
|
2790
2882
|
name: "Pagination",
|
|
2791
2883
|
props: {},
|
|
2792
2884
|
computed: {},
|
|
2793
2885
|
created() {
|
|
2794
2886
|
this.$nextTick(function() {
|
|
2795
|
-
window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination",
|
|
2887
|
+
window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination", nt);
|
|
2796
2888
|
});
|
|
2797
2889
|
},
|
|
2798
2890
|
updated() {
|
|
2799
2891
|
}
|
|
2800
2892
|
};
|
|
2801
|
-
function
|
|
2893
|
+
function Io(e, a, t, i, s, r) {
|
|
2802
2894
|
return h(), p("iam-pagination");
|
|
2803
2895
|
}
|
|
2804
|
-
const
|
|
2896
|
+
const Ai = /* @__PURE__ */ A(Fo, [["render", Io]]), Bo = (e, a) => {
|
|
2897
|
+
const t = e[a];
|
|
2898
|
+
return t ? typeof t == "function" ? t() : Promise.resolve(t) : new Promise((i, s) => {
|
|
2899
|
+
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(s.bind(null, new Error("Unknown variable dynamic import: " + a)));
|
|
2900
|
+
});
|
|
2901
|
+
}, Oo = {
|
|
2902
|
+
name: "Address Lookup",
|
|
2903
|
+
mounted() {
|
|
2904
|
+
console.log(process.env.NODE_ENV), this.$nextTick(function() {
|
|
2905
|
+
Bo(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/address-lookup/address-lookup.component.js": () => import("./address-lookup.component-b83197c9.mjs"), "../../../assets/js/components/address-lookup/address-lookup.component.min.js": () => import("./address-lookup.component.min-2db6850f.mjs") }), "../../../assets/js/components/address-lookup/address-lookup.component.js").then((e) => {
|
|
2906
|
+
window.customElements.get("iam-address-lookup") || window.customElements.define("iam-address-lookup", e.default);
|
|
2907
|
+
}).catch((e) => {
|
|
2908
|
+
console.log(e.message);
|
|
2909
|
+
});
|
|
2910
|
+
});
|
|
2911
|
+
}
|
|
2912
|
+
};
|
|
2913
|
+
function Vo(e, a, t, i, s, r) {
|
|
2914
|
+
return h(), p("iam-address-lookup", null, [
|
|
2915
|
+
x(e.$slots, "default")
|
|
2916
|
+
]);
|
|
2917
|
+
}
|
|
2918
|
+
const _i = /* @__PURE__ */ A(Oo, [["render", Vo]]);
|
|
2805
2919
|
/*!
|
|
2806
|
-
* iamKey v4.1.0
|
|
2920
|
+
* iamKey v4.1.0
|
|
2807
2921
|
* Copyright 2022-2023 iamproperty
|
|
2808
2922
|
*/
|
|
2809
2923
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "collapsible side menu" });
|
|
2810
|
-
class
|
|
2924
|
+
class Uo extends HTMLElement {
|
|
2811
2925
|
constructor() {
|
|
2812
2926
|
super(), this.attachShadow({ mode: "open" });
|
|
2813
2927
|
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");
|
|
@@ -2836,8 +2950,8 @@ class Or extends HTMLElement {
|
|
|
2836
2950
|
`, this.shadowRoot.appendChild(i.content.cloneNode(!0));
|
|
2837
2951
|
}
|
|
2838
2952
|
connectedCallback() {
|
|
2839
|
-
const a = this.shadowRoot.querySelector(".side-menu"), t = this.shadowRoot.querySelector(".side-menu-content"), i = this.shadowRoot.querySelector(".main-content"),
|
|
2840
|
-
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")),
|
|
2953
|
+
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");
|
|
2954
|
+
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", (r) => {
|
|
2841
2955
|
a.classList.contains("open") ? (a.classList.remove("open"), setTimeout(function() {
|
|
2842
2956
|
t.classList.add("closed");
|
|
2843
2957
|
}, 1e3), a.classList.add("pe-none"), setTimeout(function() {
|
|
@@ -2845,55 +2959,56 @@ class Or extends HTMLElement {
|
|
|
2845
2959
|
}, 1e3)) : (t.classList.remove("closed"), setTimeout(function() {
|
|
2846
2960
|
a.classList.add("open");
|
|
2847
2961
|
}, 100));
|
|
2848
|
-
}), a.addEventListener("mouseenter", (
|
|
2962
|
+
}), a.addEventListener("mouseenter", (r) => {
|
|
2849
2963
|
window.innerWidth > 992 && (a.classList.contains("open") || t.classList.remove("closed"), a.classList.add("hover"));
|
|
2850
|
-
}), a.addEventListener("mousemove", (
|
|
2964
|
+
}), a.addEventListener("mousemove", (r) => {
|
|
2851
2965
|
window.innerWidth > 992 && (a.classList.contains("open") || t.classList.remove("closed"));
|
|
2852
|
-
}), a.addEventListener("mouseleave", (
|
|
2966
|
+
}), a.addEventListener("mouseleave", (r) => {
|
|
2853
2967
|
window.innerWidth > 992 && (a.classList.remove("hover"), a.classList.contains("open") || setTimeout(function() {
|
|
2854
2968
|
t.classList.add("closed");
|
|
2855
2969
|
}, 1e3));
|
|
2856
2970
|
});
|
|
2857
2971
|
}
|
|
2858
2972
|
}
|
|
2859
|
-
window.customElements.get("iam-collapsible-side") || window.customElements.define("iam-collapsible-side",
|
|
2860
|
-
const
|
|
2973
|
+
window.customElements.get("iam-collapsible-side") || window.customElements.define("iam-collapsible-side", Uo);
|
|
2974
|
+
const Wo = {
|
|
2861
2975
|
name: "CollapsibleSideMenu",
|
|
2862
2976
|
props: {},
|
|
2863
2977
|
mounted() {
|
|
2864
2978
|
}
|
|
2865
2979
|
};
|
|
2866
|
-
function
|
|
2980
|
+
function Yo(e, a, t, i, s, r) {
|
|
2867
2981
|
return h(), p("iam-collapsible-side", null, [
|
|
2868
|
-
|
|
2982
|
+
x(e.$slots, "default")
|
|
2869
2983
|
]);
|
|
2870
2984
|
}
|
|
2871
|
-
const
|
|
2985
|
+
const xi = /* @__PURE__ */ A(Wo, [["render", Yo]]);
|
|
2872
2986
|
export {
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2987
|
+
ti as Accordion,
|
|
2988
|
+
ei as AccordionItem,
|
|
2989
|
+
wi as Actionbar,
|
|
2990
|
+
_i as AddressLookup,
|
|
2991
|
+
gi as AppliedFilters,
|
|
2992
|
+
ai as Banner,
|
|
2993
|
+
je as Card,
|
|
2994
|
+
oi as Carousel,
|
|
2995
|
+
xi as CollapsibleSideMenu,
|
|
2996
|
+
Qo as FileUpload,
|
|
2997
|
+
yi as Filterlist,
|
|
2998
|
+
ii as Header,
|
|
2884
2999
|
lt as Input,
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
3000
|
+
Xo as Logo,
|
|
3001
|
+
li as Nav,
|
|
3002
|
+
bi as NoteFeed,
|
|
3003
|
+
vi as Notification,
|
|
3004
|
+
Ai as Pagination,
|
|
3005
|
+
si as PropertySearchbar,
|
|
3006
|
+
ci as Snapshot,
|
|
3007
|
+
ui as Step,
|
|
3008
|
+
di as Stepper,
|
|
3009
|
+
pi as Tab,
|
|
3010
|
+
st as Table,
|
|
3011
|
+
hi as Tabs,
|
|
3012
|
+
ri as Testimonial,
|
|
3013
|
+
ni as Timeline
|
|
2899
3014
|
};
|