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