@iamproperty/components 3.5.0 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/assets/css/components/accordion.css.map +1 -1
  2. package/assets/css/components/admin-panel.css +1 -1
  3. package/assets/css/components/admin-panel.css.map +1 -1
  4. package/assets/css/components/applied-filters.css +1 -1
  5. package/assets/css/components/applied-filters.css.map +1 -1
  6. package/assets/css/components/card.css +1 -1
  7. package/assets/css/components/card.css.map +1 -1
  8. package/assets/css/components/charts.css +1 -1
  9. package/assets/css/components/charts.css.map +1 -1
  10. package/assets/css/components/dialog.css +1 -1
  11. package/assets/css/components/dialog.css.map +1 -1
  12. package/assets/css/components/forms.css +1 -1
  13. package/assets/css/components/forms.css.map +1 -1
  14. package/assets/css/components/header.css +1 -1
  15. package/assets/css/components/header.css.map +1 -1
  16. package/assets/css/components/lists.css.map +1 -1
  17. package/assets/css/components/nav.css +1 -1
  18. package/assets/css/components/nav.css.map +1 -1
  19. package/assets/css/components/pagination.css +1 -1
  20. package/assets/css/components/pagination.css.map +1 -1
  21. package/assets/css/components/property-searchbar.css +1 -1
  22. package/assets/css/components/property-searchbar.css.map +1 -1
  23. package/assets/css/components/table.css +1 -1
  24. package/assets/css/components/table.css.map +1 -1
  25. package/assets/css/components/tabs.css +1 -1
  26. package/assets/css/components/tabs.css.map +1 -1
  27. package/assets/css/components/tooltips.css +1 -1
  28. package/assets/css/components/tooltips.css.map +1 -1
  29. package/assets/css/core.min.css +1 -1
  30. package/assets/css/core.min.css.map +1 -1
  31. package/assets/css/style.min.css +1 -1
  32. package/assets/css/style.min.css.map +1 -1
  33. package/assets/js/components/accordion/accordion.component.min.js +1 -1
  34. package/assets/js/components/card/card.component.js +1 -1
  35. package/assets/js/components/card/card.component.min.js +5 -5
  36. package/assets/js/components/card/card.component.min.js.map +1 -1
  37. package/assets/js/components/filterlist/filterlist.component.js +13 -9
  38. package/assets/js/components/filterlist/filterlist.component.min.js +14 -5
  39. package/assets/js/components/filterlist/filterlist.component.min.js.map +1 -1
  40. package/assets/js/components/header/header.component.min.js +5 -5
  41. package/assets/js/components/table/table.component.js +12 -1
  42. package/assets/js/components/table/table.component.min.js +21 -11
  43. package/assets/js/components/table/table.component.min.js.map +1 -1
  44. package/assets/js/components/tabs/tabs.component.js +6 -2
  45. package/assets/js/components/tabs/tabs.component.min.js +7 -5
  46. package/assets/js/components/tabs/tabs.component.min.js.map +1 -1
  47. package/assets/js/dynamic.min.js +2 -2
  48. package/assets/js/dynamic.min.js.map +1 -1
  49. package/assets/js/modules/applied-filters.js +6 -2
  50. package/assets/js/modules/helpers.js +5 -0
  51. package/assets/js/modules/table.js +25 -13
  52. package/assets/js/modules/tabs.js +4 -2
  53. package/assets/js/scripts.bundle.js +56 -34
  54. package/assets/js/scripts.bundle.js.map +1 -1
  55. package/assets/js/scripts.bundle.min.js +2 -2
  56. package/assets/js/scripts.bundle.min.js.map +1 -1
  57. package/assets/js/tests/table.spec.js +1 -2
  58. package/assets/sass/_corefiles.scss +3 -0
  59. package/assets/sass/_functions/functions.scss +2 -3
  60. package/assets/sass/_functions/mixins.scss +2 -18
  61. package/assets/sass/_functions/utilities.scss +35 -3
  62. package/assets/sass/_functions/variables.scss +82 -69
  63. package/assets/sass/_tests/colours.spec.scss +8 -8
  64. package/assets/sass/_tests/func.spec.scss +1 -1
  65. package/assets/sass/components/admin-panel.scss +105 -37
  66. package/assets/sass/components/applied-filters.scss +4 -0
  67. package/assets/sass/components/card.scss +12 -8
  68. package/assets/sass/components/charts.scss +2 -2
  69. package/assets/sass/components/dialog.scss +22 -14
  70. package/assets/sass/components/forms.scss +2 -2
  71. package/assets/sass/components/pagination.scss +4 -0
  72. package/assets/sass/components/table.scss +145 -30
  73. package/assets/sass/components/tabs.scss +54 -98
  74. package/assets/sass/components/tooltips.scss +1 -1
  75. package/assets/sass/foundations/buttons.scss +61 -46
  76. package/assets/sass/foundations/reboot.scss +5 -4
  77. package/assets/sass/foundations/root.scss +42 -48
  78. package/assets/sass/foundations/type.scss +4 -0
  79. package/assets/sass/helpers/max-height.scss +3 -0
  80. package/assets/ts/components/card/card.component.ts +1 -1
  81. package/assets/ts/components/filterlist/filterlist.component.ts +13 -11
  82. package/assets/ts/components/table/table.component.ts +12 -1
  83. package/assets/ts/components/tabs/tabs.component.ts +7 -2
  84. package/assets/ts/modules/applied-filters.ts +9 -3
  85. package/assets/ts/modules/helpers.ts +9 -1
  86. package/assets/ts/modules/table.ts +34 -14
  87. package/assets/ts/modules/tabs.ts +7 -2
  88. package/assets/ts/tests/table.spec.ts +1 -4
  89. package/dist/components.es.js +157 -126
  90. package/dist/components.umd.js +37 -15
  91. package/dist/style.css +1 -1
  92. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { openBlock as c, createElementBlock as d, createElementVNode as o, toDisplayString as L, normalizeClass as v, createCommentVNode as _, Fragment as $, renderList as T, renderSlot as p, withDirectives as N, mergeProps as H, vModelDynamic as P, vModelText as se, vModelSelect as ie, resolveComponent as E, createVNode as S, createTextVNode as le, normalizeStyle as ne, withModifiers as re } from "vue";
1
+ import { openBlock as c, createElementBlock as d, createElementVNode as o, toDisplayString as L, normalizeClass as v, createCommentVNode as p, Fragment as $, renderList as T, renderSlot as _, withDirectives as N, mergeProps as H, vModelDynamic as P, vModelText as se, vModelSelect as ie, resolveComponent as E, createVNode as S, createTextVNode as le, normalizeStyle as ne, withModifiers as re } from "vue";
2
2
  const A = (t, a) => {
3
3
  const e = t.__vccOpts || t;
4
4
  for (const [s, r] of a)
@@ -66,10 +66,10 @@ function be(t, a, e, s, r, n) {
66
66
  e.desc ? (c(), d("span", {
67
67
  key: 0,
68
68
  innerHTML: e.desc
69
- }, null, 8, ye)) : _("", !0)
69
+ }, null, 8, ye)) : p("", !0)
70
70
  ], 2);
71
71
  }
72
- const _e = /* @__PURE__ */ A(me, [["render", be]]), pe = function(t) {
72
+ const pe = /* @__PURE__ */ A(me, [["render", be]]), _e = function(t) {
73
73
  return typeof t != "string" ? !1 : !isNaN(t) && // use type coercion to parse the _entirety_ of the string (`parseFloat` alone does not do this)...
74
74
  !isNaN(parseFloat(t));
75
75
  }, ge = (t, a) => String(t).padStart(a, "0"), ve = (t) => t.charAt(0).toUpperCase() + t.slice(1), F = function(t, a) {
@@ -90,7 +90,7 @@ const _e = /* @__PURE__ */ A(me, [["render", be]]), pe = function(t) {
90
90
  <span class="d-block pb-2">You've viewed ${n} of ${r} results</span>
91
91
  <a href="?show=${parseInt(n) + parseInt(i)}" class="btn btn-primary w-100 m-0" data-show="${parseInt(n) + parseInt(i)}">Load more results</a>
92
92
  </div>`, !0;
93
- }, G = (t) => {
93
+ }, Q = (t) => {
94
94
  const a = Array.from(t.querySelectorAll("thead th"));
95
95
  Array.from(t.querySelectorAll("tbody tr")).forEach((s, r) => {
96
96
  const n = Array.from(s.querySelectorAll("th, td")), i = ["Low", "Medium", "High", "N/A", "Pending", "Verified", "Incomplete", "Completed", "Requires approval"];
@@ -100,7 +100,7 @@ const _e = /* @__PURE__ */ A(me, [["render", be]]), pe = function(t) {
100
100
  let m = document.createElement("div");
101
101
  m.innerHTML = u.innerHTML;
102
102
  let f = m.textContent || m.innerText || "";
103
- l.setAttribute("data-label", f), u.hasAttribute("class") && l.setAttribute("class", u.getAttribute("class")), u.hasAttribute("data-format") && (l.setAttribute("data-format", u.getAttribute("data-format")), l.innerHTML = D("date", l.textContent.trim())), i.includes(l.textContent.trim()) && l.setAttribute("data-content", l.textContent.trim());
103
+ l.setAttribute("data-label", f), u.hasAttribute("data-td-class") && l.setAttribute("class", u.getAttribute("data-td-class")), u.hasAttribute("data-format") && (l.setAttribute("data-format", u.getAttribute("data-format")), l.innerHTML = D("date", l.textContent.trim())), i.includes(l.textContent.trim()) && l.setAttribute("data-content", l.textContent.trim());
104
104
  }
105
105
  });
106
106
  });
@@ -120,7 +120,12 @@ const _e = /* @__PURE__ */ A(me, [["render", be]]), pe = function(t) {
120
120
  return !1;
121
121
  Array.from(t.querySelectorAll("tbody tr")).forEach((a, e) => {
122
122
  let s = a.querySelector(":scope > :is(td,th):first-child"), r = s.textContent;
123
- s.innerHTML = `<span class="td__content">${r}</span><button type="button" class="d-none">${r}</button>`;
123
+ if (r != "")
124
+ s.innerHTML = `<span class="td__content">${r}</span><button type="button" class="d-none">${r}</button>`;
125
+ else {
126
+ let n = a.querySelector(":scope > :is(td,th):nth-child(2)"), i = n.textContent;
127
+ n.innerHTML = `<span class="td__content">${i}</span><button type="button" class="d-none">${i}</button>`;
128
+ }
124
129
  });
125
130
  }, Se = (t) => {
126
131
  t.addEventListener("click", (a) => {
@@ -129,7 +134,7 @@ const _e = /* @__PURE__ */ A(me, [["render", be]]), pe = function(t) {
129
134
  s.getAttribute("data-view") == "full" ? s.setAttribute("data-view", "default") : s.setAttribute("data-view", "full"), e.blur();
130
135
  }
131
136
  });
132
- }, Q = (t, a) => {
137
+ }, Y = (t, a) => {
133
138
  let e = a.querySelector("[data-search]");
134
139
  if (!e)
135
140
  return !1;
@@ -143,31 +148,33 @@ const _e = /* @__PURE__ */ A(me, [["render", be]]), pe = function(t) {
143
148
  }, Le = (t, a, e, s, r) => {
144
149
  var n;
145
150
  let i = function() {
146
- a.hasAttribute("data-ajax") ? J(t, a, e, s) : a.hasAttribute("data-submit") ? a.submit() : (Y(t, a, s), F(s, e));
151
+ a.hasAttribute("data-ajax") ? J(t, a, e, s) : a.hasAttribute("data-submit") ? a.submit() : (Z(t, a, s), F(s, e), B(t, a));
147
152
  };
148
153
  a.addEventListener("keyup", (l) => {
149
154
  clearTimeout(n), l && l.target instanceof HTMLElement && l.target.closest("[data-search]") && (n = setTimeout(function() {
150
155
  i();
151
156
  }, 500));
152
157
  }), a.addEventListener("change", (l) => {
153
- clearTimeout(n), l && l.target instanceof HTMLElement && l.target.closest("[data-sort]") && (a.hasAttribute("data-submit") || U(t, a, r), i()), l && l.target instanceof HTMLElement && l.target.closest("[data-search]") && i(), l && l.target instanceof HTMLElement && l.target.closest("[data-filter]") && !l.target.closest("form dialog") && i(), l && l.target instanceof HTMLElement && l.target.closest("[data-show]") && i();
158
+ clearTimeout(n), l && l.target instanceof HTMLElement && l.target.closest("[data-sort]") && (a.hasAttribute("data-submit") || K(t, a, r), i()), l && l.target instanceof HTMLElement && l.target.closest("[data-search]") && i(), l && l.target instanceof HTMLElement && l.target.closest("[data-filter]") && l.target.closest("form .dialog__wrapper > dialog") && i(), l && l.target instanceof HTMLElement && l.target.closest("[data-filter]") && !l.target.closest("form dialog") && i(), l && l.target instanceof HTMLElement && l.target.closest("[data-show]") && i();
154
159
  }), a.addEventListener("click", (l) => {
155
- clearTimeout(n), l && l.target instanceof HTMLElement && l.target.closest('dialog button:not([type="button"])') && l.target.closest('dialog button:not([type="button"])').closest("dialog").close(), l && l.target instanceof HTMLElement && l.target.closest(".dialog__close") && (l.preventDefault(), l.stopPropagation()), l && l.target instanceof HTMLElement && l.target.closest("[data-clear]") && (a.reset(), a.hasAttribute("data-submit") || U(t, a, r), i());
160
+ clearTimeout(n), l && l.target instanceof HTMLElement && l.target.closest('dialog button:not([type="button"])') && l.target.closest('dialog button:not([type="button"])').closest("dialog").close(), l && l.target instanceof HTMLElement && l.target.closest(".dialog__close") && (l.preventDefault(), l.stopPropagation()), l && l.target instanceof HTMLElement && l.target.closest("[data-clear]") && (a.reset(), a.hasAttribute("data-submit") || K(t, a, r), i());
156
161
  }), a.addEventListener("submit", (l) => {
157
162
  clearTimeout(n), a.hasAttribute("data-submit") || l.preventDefault(), i();
163
+ }), a.addEventListener("force", (l) => {
164
+ i();
158
165
  });
159
- }, U = (t, a, e) => {
166
+ }, K = (t, a, e) => {
160
167
  if (a.getAttribute("data-ajax"))
161
168
  return !1;
162
169
  let s = t.querySelector("tbody"), r = a.querySelector("[data-sort]"), n = r.querySelector(`option:nth-child(${r.selectedIndex + 1})`), i = n.getAttribute("data-sort"), l = n.getAttribute("data-order"), h = n.getAttribute("data-format");
163
170
  if (!i)
164
- return s.innerHTML = e.innerHTML, G(t), !1;
171
+ return s.innerHTML = e.innerHTML, Q(t), !1;
165
172
  let u = [];
166
173
  ["asc", "desc", "descending"].includes(l) || (u = l.split(","));
167
174
  let m = [];
168
175
  Array.from(s.querySelectorAll("tr")).forEach((b, g) => {
169
176
  let y = b.querySelector('td[data-label="' + i + '"], th[data-label="' + i + '"]').textContent.trim();
170
- u.length && u.includes(y) && (y = u.indexOf(y)), pe(y) && (y = ge(y, 10)), h && h == "date" && (y = new Date(y));
177
+ u.length && u.includes(y) && (y = u.indexOf(y)), _e(y) && (y = ge(y, 10)), h && h == "date" && (y = new Date(y));
171
178
  const C = {
172
179
  index: y,
173
180
  row: b
@@ -178,10 +185,12 @@ const _e = /* @__PURE__ */ A(me, [["render", be]]), pe = function(t) {
178
185
  m.forEach((b, g) => {
179
186
  f += b.row.outerHTML;
180
187
  }), s.innerHTML = f;
181
- }, Y = (t, a, e) => {
188
+ }, Z = (t, a, e) => {
182
189
  t.classList.remove("table--filtered");
183
190
  let s = [], r = [], n = 0, i = a.querySelector("[data-pagination]") ? parseInt(a.querySelector("[data-pagination]").value) : 1, l = a.querySelector("[data-show]") ? parseInt(a.querySelector("[data-show]").value) : 15;
184
- if (Array.from(a.querySelectorAll("[data-filter]")).forEach((u, m) => {
191
+ if (Array.from(t.querySelectorAll("tbody tr")).forEach((u, m) => {
192
+ u.classList.remove("filtered"), u.classList.remove("filtered--matched"), u.classList.remove("filtered--show"), u.removeAttribute("data-filtered-by");
193
+ }), Array.from(a.querySelectorAll("[data-filter]")).forEach((u, m) => {
185
194
  if (!(u.type == "radio" && !u.checked) && !(u.type == "checkbox" && !u.checked))
186
195
  if (u.getAttribute("data-filter") == "multi")
187
196
  for (const [f, b] of Object.entries(JSON.parse(u.value)))
@@ -200,9 +209,7 @@ const _e = /* @__PURE__ */ A(me, [["render", be]]), pe = function(t) {
200
209
  u.innerHTML += `(${s.length})`;
201
210
  }), !Object.keys(r).length && !Object.keys(s).length)
202
211
  return !1;
203
- t.classList.add("table--filtered"), Array.from(t.querySelectorAll("tbody tr")).forEach((u, m) => {
204
- u.classList.remove("filtered"), u.classList.remove("filtered--matched"), u.classList.remove("filtered--show"), u.removeAttribute("data-filtered-by");
205
- });
212
+ t.classList.add("table--filtered");
206
213
  for (const [u, m] of Object.entries(s))
207
214
  Array.from(t.querySelectorAll("tbody tr:not(.filtered)")).forEach((f, b) => {
208
215
  let g = !1;
@@ -218,19 +225,19 @@ const _e = /* @__PURE__ */ A(me, [["render", be]]), pe = function(t) {
218
225
  if (w.setHours(0, 0, 0, 0), q.setHours(0, 0, 0, 0), x.setHours(0, 0, 0, 0), k.setHours(0, 0, 0, 0), y == "$thisWeek")
219
226
  g = k >= q && k <= x;
220
227
  else {
221
- let W = new Date(q.setDate(q.getDate() - 7)), j = new Date(x.setDate(x.getDate() - 7));
222
- W.setHours(0, 0, 0, 0), j.setHours(0, 0, 0, 0), g = k >= W && k <= j;
228
+ let j = new Date(q.setDate(q.getDate() - 7)), U = new Date(x.setDate(x.getDate() - 7));
229
+ j.setHours(0, 0, 0, 0), U.setHours(0, 0, 0, 0), g = k >= j && k <= U;
223
230
  }
224
231
  } else if (y && y == "$thisMonth") {
225
232
  let w = /* @__PURE__ */ new Date(), q = w.getFullYear(), x = w.getMonth();
226
- var B = new Date(q, x, 1), V = new Date(q, x + 1, 0);
233
+ var V = new Date(q, x, 1), z = new Date(q, x + 1, 0);
227
234
  let k = new Date(M.textContent.toLowerCase());
228
- B.setHours(0, 0, 0, 0), V.setHours(0, 0, 0, 0), k.setHours(0, 0, 0, 0), g = k >= B && k <= V;
235
+ V.setHours(0, 0, 0, 0), z.setHours(0, 0, 0, 0), k.setHours(0, 0, 0, 0), g = k >= V && k <= z;
229
236
  } else if (y && y == "$lastMonth") {
230
237
  let w = /* @__PURE__ */ new Date(), q = w.getFullYear(), x = w.getMonth();
231
- var z = new Date(q, x - 1, 1), O = new Date(q, x, 0);
238
+ var O = new Date(q, x - 1, 1), W = new Date(q, x, 0);
232
239
  let k = new Date(M.textContent.toLowerCase());
233
- z.setHours(0, 0, 0, 0), O.setHours(0, 0, 0, 0), k.setHours(0, 0, 0, 0), g = k >= z && k <= O;
240
+ O.setHours(0, 0, 0, 0), W.setHours(0, 0, 0, 0), k.setHours(0, 0, 0, 0), g = k >= O && k <= W;
234
241
  }
235
242
  M && M.textContent.toLowerCase().includes(y.toLowerCase()) && (g = !0);
236
243
  }), g || (f.classList.add("filtered"), f.setAttribute("data-filtered-by", u));
@@ -243,12 +250,12 @@ const _e = /* @__PURE__ */ A(me, [["render", be]]), pe = function(t) {
243
250
  }), f || u.classList.add("filtered");
244
251
  }), Array.from(t.querySelectorAll("tbody tr:not(.filtered")).forEach((u, m) => {
245
252
  n++, u.classList.add("filtered--matched"), Math.ceil(n / l) == parseInt(i) && u.classList.add("filtered--show");
246
- }), e && (e.setAttribute("data-page", i), e.setAttribute("data-pages", Math.ceil(n / l)), e.setAttribute("data-total", n), e.setAttribute("data-show", l)), Z(t, a);
247
- }, Z = (t, a) => {
253
+ }), e && (e.setAttribute("data-page", i), e.setAttribute("data-pages", Math.ceil(n / l)), e.setAttribute("data-total", n), e.setAttribute("data-show", l));
254
+ }, B = (t, a) => {
248
255
  Array.from(a.querySelectorAll("[data-query]")).forEach((s, r) => {
249
256
  let n = s.getAttribute("data-query"), i;
250
257
  if (n == "total")
251
- i = t.classList.contains("table--filtered") ? t.querySelectorAll("tbody tr:not(.filtered)").length : t.querySelectorAll("tbody tr").length;
258
+ i = (t.classList.contains("table--filtered"), t.querySelectorAll("tbody tr").length);
252
259
  else if (!n.includes(" == ") && n.includes(" & ")) {
253
260
  let l = n.split(" & "), h = "";
254
261
  l.forEach((u) => {
@@ -268,7 +275,7 @@ const _e = /* @__PURE__ */ A(me, [["render", be]]), pe = function(t) {
268
275
  }).length;
269
276
  } else {
270
277
  let l = n.split(" == ");
271
- i = Array.from(t.querySelectorAll(`tbody tr:not([class*="filtered"]) td[data-label="${l[0]}"], tbody tr[data-filtered-by="${l[0]}"] td[data-label="${l[0]}"]`)).filter(function(h) {
278
+ i = Array.from(t.querySelectorAll(`tbody tr.filtered--matched td[data-label="${l[0]}"], tbody tr[data-filtered-by="${l[0]}"] td[data-label="${l[0]}"]`)).filter(function(h) {
272
279
  return h.textContent === l[1];
273
280
  }).length;
274
281
  }
@@ -311,7 +318,7 @@ const _e = /* @__PURE__ */ A(me, [["render", be]]), pe = function(t) {
311
318
  var u = window.URL.createObjectURL(l);
312
319
  h.href = u, h.style.display = "none", document.body.appendChild(h), h.click(), document.body.removeChild(h);
313
320
  }, X = function(t, a, e, s) {
314
- if (we(t), G(t), Z(t, a), s && s.classList.contains("table--cta")) {
321
+ if (we(t), Q(t), B(t, a), s && s.classList.contains("table--cta")) {
315
322
  const r = Ae(t);
316
323
  s.style.setProperty("--cta-width", `${r}rem`);
317
324
  }
@@ -341,7 +348,7 @@ const _e = /* @__PURE__ */ A(me, [["render", be]]), pe = function(t) {
341
348
  }
342
349
  f.hasAttribute("data-format") && (g = D(f.getAttribute("data-format"), g)), y.innerHTML = g, m.appendChild(y);
343
350
  }), i.appendChild(m);
344
- }), Q(t, a), X(t, a, e, s), s.setAttribute("data-total", l.meta.total ? l.meta.total : 1), s.setAttribute("data-page", l.meta.current_page ? l.meta.current_page : 1), s.setAttribute("data-pages", Math.ceil(s.getAttribute("data-total") / s.getAttribute("data-show"))), F(s, e), l.data.length == 0 && (i.innerHTML = '<tr><td colspan="100%"><span class="h4 m-0">No results found</span></td></tr>')) : i.innerHTML = '<tr><td colspan="100%"><span class="h6 m-0">Error loading table</span></td></tr>';
351
+ }), Y(t, a), X(t, a, e, s), s.setAttribute("data-total", l.meta.total ? l.meta.total : 1), s.setAttribute("data-page", l.meta.current_page ? l.meta.current_page : 1), s.setAttribute("data-pages", Math.ceil(s.getAttribute("data-total") / s.getAttribute("data-show"))), F(s, e), l.data.length == 0 && (i.innerHTML = '<tr><td colspan="100%"><span class="h4 m-0">No results found</span></td></tr>')) : i.innerHTML = '<tr><td colspan="100%"><span class="h6 m-0">Error loading table</span></td></tr>';
345
352
  });
346
353
  }, D = (t, a) => {
347
354
  switch (t) {
@@ -364,6 +371,16 @@ class $e extends HTMLElement {
364
371
  n.innerHTML = `
365
372
  <style>
366
373
  @import "${a}/css/core.min.css";
374
+
375
+ :host(.mh-sm){
376
+ max-height: none!important;
377
+ }
378
+ :host(.mh-md){
379
+ max-height: none!important;
380
+ }
381
+ :host(.mh-lg){
382
+ max-height: none!important;
383
+ }
367
384
  </style>
368
385
  ${e ? '<div class="table--cta">' : ""}
369
386
  <div class="table__wrapper ${r}">
@@ -377,7 +394,7 @@ class $e extends HTMLElement {
377
394
  this.hasAttribute("data-total") || this.setAttribute("data-total", this.querySelectorAll("table tbody tr").length), this.hasAttribute("data-page") || this.setAttribute("data-page", i.has("page") ? i.get("page") : 1), this.hasAttribute("data-show") || this.setAttribute("data-show", 15), this.setAttribute("data-pages", Math.ceil(this.getAttribute("data-total") / this.getAttribute("data-show")));
378
395
  }
379
396
  connectedCallback() {
380
- this.table = this.querySelector("table"), this.savedTableBody = this.querySelector("tbody").cloneNode(!0), this.pagination = this.shadowRoot.querySelector(".table__pagination"), this.form = document.createElement("form"), this.hasAttribute("data-filterby") && (this.form = document.querySelector(`#${this.getAttribute("data-filterby")}`), Q(this.table, this.form), this.form.querySelector("[data-page]") || (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" />`)), Se(this.table), Le(this.table, this.form, this.pagination, this, this.savedTableBody), ke(this.table, this.form, this.pagination, this), qe(this.shadowRoot.querySelector("[data-export]"), this.table), this.form.getAttribute("data-ajax") ? J(this.table, this.form, this.pagination, this) : (X(this.table, this.form, this.pagination, this), Y(this.table, this.form, this), F(this, this.pagination)), this.shadowRoot.querySelector(".table__wrapper").addEventListener("scroll", (a) => {
397
+ this.table = this.querySelector("table"), this.savedTableBody = this.table.querySelector("tbody").cloneNode(!0), this.pagination = this.shadowRoot.querySelector(".table__pagination"), this.form = document.createElement("form"), this.hasAttribute("data-filterby") && (this.form = document.querySelector(`#${this.getAttribute("data-filterby")}`), Y(this.table, this.form), this.form.querySelector("[data-page]") || (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" />`)), Se(this.table), Le(this.table, this.form, this.pagination, this, this.savedTableBody), ke(this.table, this.form, this.pagination, this), qe(this.shadowRoot.querySelector("[data-export]"), this.table), this.form.getAttribute("data-ajax") ? J(this.table, this.form, this.pagination, this) : (X(this.table, this.form, this.pagination, this), Z(this.table, this.form, this), F(this, this.pagination), B(this.table, this.form)), this.shadowRoot.querySelector(".table__wrapper").addEventListener("scroll", (a) => {
381
398
  this.table.querySelector("dialog[open]") && this.table.querySelector("dialog[open]").close();
382
399
  });
383
400
  }
@@ -434,8 +451,8 @@ function Ie(t, a, e, s, r, n) {
434
451
  innerHTML: h
435
452
  }, null, 8, Pe))), 128))
436
453
  ], 8, Re))), 128))
437
- ])) : _("", !0)
438
- ])) : p(t.$slots, "default", { key: 1 })
454
+ ])) : p("", !0)
455
+ ])) : _(t.$slots, "default", { key: 1 })
439
456
  ]);
440
457
  }
441
458
  const ee = /* @__PURE__ */ A(Ee, [["render", Ie]]), Fe = {
@@ -640,19 +657,19 @@ function nt(t, a, e, s, r, n) {
640
657
  for: e.id,
641
658
  innerHTML: n.displayLabel(),
642
659
  title: e.title
643
- }, null, 10, Be)) : _("", !0),
660
+ }, null, 10, Be)) : p("", !0),
644
661
  e.prefix ? (c(), d("span", {
645
662
  key: 1,
646
663
  class: v(`prefix ${this.prefixClass} ${e.size ? `prefix-${e.size}` : ""}`),
647
664
  innerHTML: e.prefix,
648
665
  role: "presentation"
649
- }, null, 10, Ve)) : _("", !0),
666
+ }, null, 10, Ve)) : p("", !0),
650
667
  e.suffix ? (c(), d("span", {
651
668
  key: 2,
652
669
  class: v(`suffix ${this.suffixClass} ${e.size ? `suffix-${e.size}` : ""}`),
653
670
  innerHTML: e.suffix,
654
671
  role: "presentation"
655
- }, null, 10, ze)) : _("", !0),
672
+ }, null, 10, ze)) : p("", !0),
656
673
  n.isInput() ? N((c(), d("input", H({
657
674
  key: 3,
658
675
  "onUpdate:modelValue": a[0] || (a[0] = (i) => n.inputVal = i),
@@ -666,7 +683,7 @@ function nt(t, a, e, s, r, n) {
666
683
  onKeyup: a[1] || (a[1] = (...i) => n.inputKeyup && n.inputKeyup(...i))
667
684
  }), null, 16, Oe)), [
668
685
  [P, n.inputVal]
669
- ]) : _("", !0),
686
+ ]) : p("", !0),
670
687
  e.type == "textarea" ? N((c(), d("textarea", H({
671
688
  key: 4,
672
689
  "onUpdate:modelValue": a[2] || (a[2] = (i) => n.inputVal = i),
@@ -677,7 +694,7 @@ function nt(t, a, e, s, r, n) {
677
694
  pattern: n.needPattern()
678
695
  }, t.$attrs), null, 16, We)), [
679
696
  [se, n.inputVal]
680
- ]) : _("", !0),
697
+ ]) : p("", !0),
681
698
  e.type == "range" ? (c(), d("div", je, [
682
699
  N(o("input", H({
683
700
  "onUpdate:modelValue": a[3] || (a[3] = (i) => n.inputVal = i),
@@ -691,7 +708,7 @@ function nt(t, a, e, s, r, n) {
691
708
  [P, n.inputVal]
692
709
  ]),
693
710
  o("output", Ke, L(e.value), 1)
694
- ])) : _("", !0),
711
+ ])) : p("", !0),
695
712
  e.type == "color" ? (c(), d("div", Ge, [
696
713
  N(o("input", H({
697
714
  "onUpdate:modelValue": a[4] || (a[4] = (i) => n.inputVal = i),
@@ -705,7 +722,7 @@ function nt(t, a, e, s, r, n) {
705
722
  [P, n.inputVal]
706
723
  ]),
707
724
  o("output", Ye, L(e.value ? t.vale : "#000000"), 1)
708
- ])) : _("", !0),
725
+ ])) : p("", !0),
709
726
  e.type == "select" ? N((c(), d("select", H({
710
727
  key: 7,
711
728
  "onUpdate:modelValue": a[5] || (a[5] = (i) => n.inputVal = i),
@@ -721,7 +738,7 @@ function nt(t, a, e, s, r, n) {
721
738
  }, L(i.display ? i.display : i.value), 9, Xe))), 128))
722
739
  ], 16, Ze)), [
723
740
  [ie, n.inputVal]
724
- ]) : _("", !0),
741
+ ]) : p("", !0),
725
742
  n.allowDatalist() ? (c(), d("datalist", {
726
743
  key: 8,
727
744
  id: e.id + "-list"
@@ -730,20 +747,20 @@ function nt(t, a, e, s, r, n) {
730
747
  key: l,
731
748
  value: i.value
732
749
  }, L(i.value), 9, et))), 128))
733
- ], 8, Je)) : _("", !0),
750
+ ], 8, Je)) : p("", !0),
734
751
  e.type == "checkbox" || e.type == "radio" ? (c(), d("input", H({
735
752
  key: 9,
736
753
  class: "form-check-input",
737
754
  type: e.type,
738
755
  name: e.name ? e.name : e.id,
739
756
  id: e.id
740
- }, t.$attrs), null, 16, tt)) : _("", !0),
757
+ }, t.$attrs), null, 16, tt)) : p("", !0),
741
758
  e.type == "checkbox" || e.type == "radio" ? (c(), d("label", {
742
759
  key: 10,
743
760
  class: v(`form-label form-check-label${e.labelclass ? ` ${e.labelclass}` : ""}`),
744
761
  for: e.id,
745
762
  innerHTML: e.label
746
- }, null, 10, at)) : _("", !0),
763
+ }, null, 10, at)) : p("", !0),
747
764
  e.type == "checkbox-btn" || e.type == "radio-btn" ? (c(), d("input", H({
748
765
  key: 11,
749
766
  class: `btn-check${e.inputclass ? ` ${e.inputclass}` : ""}`,
@@ -751,20 +768,20 @@ function nt(t, a, e, s, r, n) {
751
768
  autocomplete: "off",
752
769
  name: e.name ? e.name : e.id,
753
770
  id: e.id
754
- }, t.$attrs), null, 16, st)) : _("", !0),
771
+ }, t.$attrs), null, 16, st)) : p("", !0),
755
772
  e.type == "checkbox-btn" || e.type == "radio-btn" ? (c(), d("label", {
756
773
  key: 12,
757
774
  class: v(`btn${e.labelclass ? ` ${e.labelclass}` : ""}`),
758
775
  for: e.id,
759
776
  innerHTML: e.label,
760
777
  onClick: a[6] || (a[6] = (...i) => n.clickEvent && n.clickEvent(...i))
761
- }, null, 10, it)) : _("", !0),
778
+ }, null, 10, it)) : p("", !0),
762
779
  e.errormsg ? (c(), d("p", {
763
780
  key: 13,
764
781
  class: "invalid-feedback mb-0",
765
782
  innerHTML: e.errormsg
766
- }, null, 8, lt)) : _("", !0),
767
- p(t.$slots, "default")
783
+ }, null, 8, lt)) : p("", !0),
784
+ _(t.$slots, "default")
768
785
  ], 2);
769
786
  }
770
787
  const R = /* @__PURE__ */ A(Fe, [["render", nt]]), rt = {
@@ -816,7 +833,7 @@ function mt(t, a, e, s, r, n) {
816
833
  }, null, 8, ["id", "name", "data-filesize"])
817
834
  ], 2),
818
835
  o("div", dt, [
819
- p(t.$slots, "default")
836
+ _(t.$slots, "default")
820
837
  ]),
821
838
  ut
822
839
  ]),
@@ -877,13 +894,13 @@ const bt = {
877
894
  props: {},
878
895
  mounted() {
879
896
  }
880
- }, _t = { ref: "wrapper" };
881
- function pt(t, a, e, s, r, n) {
882
- return c(), d("iam-accordion", _t, [
883
- p(t.$slots, "default")
897
+ }, pt = { ref: "wrapper" };
898
+ function _t(t, a, e, s, r, n) {
899
+ return c(), d("iam-accordion", pt, [
900
+ _(t.$slots, "default")
884
901
  ], 512);
885
902
  }
886
- const ci = /* @__PURE__ */ A(bt, [["render", pt]]), gt = {
903
+ const ci = /* @__PURE__ */ A(bt, [["render", _t]]), gt = {
887
904
  name: "AccordionItem",
888
905
  props: {
889
906
  title: {
@@ -930,9 +947,9 @@ function wt(t, a, e, s, r, n) {
930
947
  e.badge ? (c(), d("span", {
931
948
  key: 0,
932
949
  class: v(`badge bg-${e.badgecolour}`)
933
- }, L(e.badge), 3)) : _("", !0)
950
+ }, L(e.badge), 3)) : p("", !0)
934
951
  ], 8, At),
935
- p(t.$slots, "default")
952
+ _(t.$slots, "default")
936
953
  ], 8, vt);
937
954
  }
938
955
  const di = /* @__PURE__ */ A(gt, [["render", wt]]), St = {
@@ -962,7 +979,7 @@ function Ht(t, a, e, s, r, n) {
962
979
  o("div", qt, [
963
980
  o("div", xt, [
964
981
  o("h2", null, L(e.title), 1),
965
- p(t.$slots, "default")
982
+ _(t.$slots, "default")
966
983
  ])
967
984
  ]),
968
985
  o("div", $t, [
@@ -971,7 +988,7 @@ function Ht(t, a, e, s, r, n) {
971
988
  src: e.image,
972
989
  alt: "",
973
990
  class: "h-100 w-100 object-cover"
974
- }, null, 8, Tt)) : _("", !0)
991
+ }, null, 8, Tt)) : p("", !0)
975
992
  ])
976
993
  ])
977
994
  ], 2)
@@ -982,7 +999,7 @@ class Ct extends HTMLElement {
982
999
  constructor() {
983
1000
  super(), this.attachShadow({ mode: "open" });
984
1001
  const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = `@import "${a}/css/components/card.css";`;
985
- this.querySelector(".icon") && this.classList.add("card--has-icon");
1002
+ this.querySelector(".fa") && this.classList.add("card--has-icon");
986
1003
  let s = this.classList.toString();
987
1004
  const r = document.createElement("template");
988
1005
  r.innerHTML = `
@@ -1042,7 +1059,7 @@ const Mt = {
1042
1059
  };
1043
1060
  function Et(t, a, e, s, r, n) {
1044
1061
  return c(), d("iam-card", null, [
1045
- p(t.$slots, "default")
1062
+ _(t.$slots, "default")
1046
1063
  ]);
1047
1064
  }
1048
1065
  const Nt = /* @__PURE__ */ A(Mt, [["render", Et]]);
@@ -1183,7 +1200,7 @@ function jt(t, a, e, s, r, n) {
1183
1200
  "data-sm-cols": e.smcols,
1184
1201
  "data-md-cols": e.mdcols
1185
1202
  }, [
1186
- p(t.$slots, "default"),
1203
+ _(t.$slots, "default"),
1187
1204
  o("div", It, [
1188
1205
  o("div", Ft, [
1189
1206
  e.type == "card" ? (c(), d("div", {
@@ -1204,7 +1221,7 @@ function jt(t, a, e, s, r, n) {
1204
1221
  hidectatext: e.hidectatext
1205
1222
  }), null, 16, ["class", "type", "btnyype", "titleclass", "ctatext", "hidectatext"])
1206
1223
  ], 10, Bt))), 128))
1207
- ], 2)) : _("", !0),
1224
+ ], 2)) : p("", !0),
1208
1225
  e.type != "card" ? (c(), d("div", {
1209
1226
  key: 1,
1210
1227
  class: v(`row row-cols-${e.cols} row-cols-sm-${e.smcols} row-cols-md-${e.mdcols} ${e.gap ? `g-${e.gap}` : ""}`)
@@ -1215,7 +1232,7 @@ function jt(t, a, e, s, r, n) {
1215
1232
  innerHTML: n.content(l),
1216
1233
  id: "carousel" + r.id + "slide" + (h + 1)
1217
1234
  }, null, 10, Vt))), 128))
1218
- ], 2)) : _("", !0)
1235
+ ], 2)) : p("", !0)
1219
1236
  ]),
1220
1237
  o("div", {
1221
1238
  class: v(`carousel__controls cols-${e.cols} cols-sm-${e.smcols} cols-md-${e.mdcols}`)
@@ -1291,12 +1308,12 @@ function Yt(t, a, e, s, r, n) {
1291
1308
  class: "bg-secondary",
1292
1309
  image: e.image
1293
1310
  }, [
1294
- p(t.$slots, "breadcrumb"),
1311
+ _(t.$slots, "breadcrumb"),
1295
1312
  e.title ? (c(), d("h1", {
1296
1313
  key: 0,
1297
1314
  innerHTML: e.title
1298
- }, null, 8, Qt)) : _("", !0),
1299
- p(t.$slots, "default")
1315
+ }, null, 8, Qt)) : p("", !0),
1316
+ _(t.$slots, "default")
1300
1317
  ], 8, Gt);
1301
1318
  }
1302
1319
  const mi = /* @__PURE__ */ A(Kt, [["render", Yt]]);
@@ -1392,7 +1409,7 @@ function ha(t, a, e, s, r, n) {
1392
1409
  ], 2))), 128))
1393
1410
  ]),
1394
1411
  o("div", da, [
1395
- p(t.$slots, "default")
1412
+ _(t.$slots, "default")
1396
1413
  ])
1397
1414
  ])
1398
1415
  ]),
@@ -1550,7 +1567,7 @@ const ma = {
1550
1567
  }, fa = {
1551
1568
  class: "container",
1552
1569
  ref: "wrapper"
1553
- }, ya = { class: "property-searchbar" }, ba = ["action", "method"], _a = { class: "col-12 col-md-3" }, pa = { class: "col-12 col-md" }, ga = /* @__PURE__ */ o("span", { class: "form-label d-none d-md-block" }, "Price range", -1), va = {
1570
+ }, ya = { class: "property-searchbar" }, ba = ["action", "method"], pa = { class: "col-12 col-md-3" }, _a = { class: "col-12 col-md" }, ga = /* @__PURE__ */ o("span", { class: "form-label d-none d-md-block" }, "Price range", -1), va = {
1554
1571
  class: "row",
1555
1572
  "data-input-range": ""
1556
1573
  }, Aa = { class: "col-12 col-md" }, wa = /* @__PURE__ */ o("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), Sa = {
@@ -1566,14 +1583,14 @@ const ma = {
1566
1583
  function qa(t, a, e, s, r, n) {
1567
1584
  const i = E("Input");
1568
1585
  return c(), d("div", fa, [
1569
- p(t.$slots, "default"),
1586
+ _(t.$slots, "default"),
1570
1587
  o("div", ya, [
1571
1588
  o("form", {
1572
1589
  class: "row",
1573
1590
  action: e.formaction,
1574
1591
  method: e.formmethod
1575
1592
  }, [
1576
- o("fieldset", _a, [
1593
+ o("fieldset", pa, [
1577
1594
  S(i, {
1578
1595
  inputClass: "input--locations",
1579
1596
  modelValue: n.locationSet,
@@ -1594,7 +1611,7 @@ function qa(t, a, e, s, r, n) {
1594
1611
  options: e.distances
1595
1612
  }, null, 8, ["options"])
1596
1613
  ]),
1597
- o("fieldset", pa, [
1614
+ o("fieldset", _a, [
1598
1615
  ga,
1599
1616
  o("div", va, [
1600
1617
  S(i, {
@@ -1647,7 +1664,7 @@ function qa(t, a, e, s, r, n) {
1647
1664
  ka
1648
1665
  ], 8, ba)
1649
1666
  ]),
1650
- p(t.$slots, "after")
1667
+ _(t.$slots, "after")
1651
1668
  ], 512);
1652
1669
  }
1653
1670
  const yi = /* @__PURE__ */ A(ma, [["render", qa]]), xa = (t) => {
@@ -1665,7 +1682,7 @@ const yi = /* @__PURE__ */ A(ma, [["render", qa]]), xa = (t) => {
1665
1682
  const $a = {
1666
1683
  components: {
1667
1684
  Input: R,
1668
- Logo: _e,
1685
+ Logo: pe,
1669
1686
  Icon: he
1670
1687
  },
1671
1688
  name: "Nav",
@@ -1859,7 +1876,7 @@ function ys(t, a, e, s, r, n) {
1859
1876
  o("div", Ea, [
1860
1877
  o("div", Na, [
1861
1878
  n.hasLogoSlot ? (c(), d("div", Da, [
1862
- p(t.$slots, "logo")
1879
+ _(t.$slots, "logo")
1863
1880
  ])) : (c(), d("div", Ra, [
1864
1881
  o("a", Pa, [
1865
1882
  S(i, {
@@ -1878,7 +1895,7 @@ function ys(t, a, e, s, r, n) {
1878
1895
  o("div", Ba, [
1879
1896
  o("div", Va, [
1880
1897
  n.hasLogoSlot ? (c(), d("div", za, [
1881
- p(t.$slots, "logo")
1898
+ _(t.$slots, "logo")
1882
1899
  ])) : (c(), d("div", Oa, [
1883
1900
  o("a", Wa, [
1884
1901
  S(i, {
@@ -1889,39 +1906,39 @@ function ys(t, a, e, s, r, n) {
1889
1906
  }, null, 8, ["id", "path", "desc"])
1890
1907
  ])
1891
1908
  ])),
1892
- n.hasSearchSlot ? (c(), d("div", ja, Ka)) : _("", !0),
1909
+ n.hasSearchSlot ? (c(), d("div", ja, Ka)) : p("", !0),
1893
1910
  Ga,
1894
1911
  o("div", Qa, [
1895
- p(t.$slots, "default")
1912
+ _(t.$slots, "default")
1896
1913
  ]),
1897
- n.hasAccountSlot ? (c(), d("div", Ya, Xa)) : _("", !0),
1914
+ n.hasAccountSlot ? (c(), d("div", Ya, Xa)) : p("", !0),
1898
1915
  e.btnlink ? (c(), d("div", Ja, [
1899
1916
  o("a", {
1900
1917
  href: e.btnlink,
1901
1918
  class: "btn me-0",
1902
1919
  innerHTML: e.btntext
1903
1920
  }, null, 8, es)
1904
- ])) : _("", !0)
1921
+ ])) : p("", !0)
1905
1922
  ])
1906
1923
  ]),
1907
1924
  n.hasSecondarySlot ? (c(), d("div", ts, [
1908
1925
  o("div", as, [
1909
- p(t.$slots, "secondary")
1926
+ _(t.$slots, "secondary")
1910
1927
  ])
1911
- ])) : _("", !0),
1928
+ ])) : p("", !0),
1912
1929
  n.hasSearchSlot ? (c(), d("div", ss, [
1913
1930
  o("div", is, [
1914
1931
  o("div", ls, [
1915
- p(t.$slots, "search")
1932
+ _(t.$slots, "search")
1916
1933
  ])
1917
1934
  ])
1918
- ])) : _("", !0)
1935
+ ])) : p("", !0)
1919
1936
  ]),
1920
1937
  n.hasAccountSlot ? (c(), d("div", ns, [
1921
1938
  o("div", rs, [
1922
1939
  o("div", os, [
1923
1940
  n.hasLogoSlot ? (c(), d("div", cs, [
1924
- p(t.$slots, "logo")
1941
+ _(t.$slots, "logo")
1925
1942
  ])) : (c(), d("div", ds, [
1926
1943
  o("a", us, [
1927
1944
  S(i, {
@@ -1936,9 +1953,9 @@ function ys(t, a, e, s, r, n) {
1936
1953
  ])
1937
1954
  ]),
1938
1955
  o("div", ms, [
1939
- p(t.$slots, "account")
1956
+ _(t.$slots, "account")
1940
1957
  ])
1941
- ])) : _("", !0),
1958
+ ])) : p("", !0),
1942
1959
  fs
1943
1960
  ], 2);
1944
1961
  }
@@ -1956,25 +1973,25 @@ const bs = {
1956
1973
  default: "Complete"
1957
1974
  }
1958
1975
  }
1959
- }, _s = { class: "container" }, ps = ["aria-label"], gs = {
1976
+ }, ps = { class: "container" }, _s = ["aria-label"], gs = {
1960
1977
  key: 0,
1961
1978
  class: "h6 stepper__start"
1962
1979
  }, vs = { class: "list-unstyled" }, As = { class: "h6 stepper__end" };
1963
1980
  function ws(t, a, e, s, r, n) {
1964
- return c(), d("div", _s, [
1981
+ return c(), d("div", ps, [
1965
1982
  o("nav", {
1966
1983
  class: "stepper",
1967
1984
  "aria-label": e.label ? e.label : "Progress"
1968
1985
  }, [
1969
- e.label ? (c(), d("span", gs, L(e.label), 1)) : _("", !0),
1986
+ e.label ? (c(), d("span", gs, L(e.label), 1)) : p("", !0),
1970
1987
  o("ol", vs, [
1971
- p(t.$slots, "default")
1988
+ _(t.$slots, "default")
1972
1989
  ]),
1973
1990
  o("span", As, L(e.endlabel), 1)
1974
- ], 8, ps)
1991
+ ], 8, _s)
1975
1992
  ]);
1976
1993
  }
1977
- const _i = /* @__PURE__ */ A(bs, [["render", ws]]), Ss = {
1994
+ const pi = /* @__PURE__ */ A(bs, [["render", ws]]), Ss = {
1978
1995
  name: "Stepper",
1979
1996
  props: {
1980
1997
  url: {
@@ -2002,13 +2019,13 @@ function qs(t, a, e, s, r, n) {
2002
2019
  "aria-current": typeof e.current < "u"
2003
2020
  }, [
2004
2021
  o("span", null, [
2005
- p(t.$slots, "default")
2022
+ _(t.$slots, "default")
2006
2023
  ]),
2007
- e.status ? (c(), d("em", ks, " - status: " + L(e.status), 1)) : _("", !0)
2024
+ e.status ? (c(), d("em", ks, " - status: " + L(e.status), 1)) : p("", !0)
2008
2025
  ], 10, Ls)
2009
2026
  ]);
2010
2027
  }
2011
- const pi = /* @__PURE__ */ A(Ss, [["render", qs]]), xs = function(t) {
2028
+ const _i = /* @__PURE__ */ A(Ss, [["render", qs]]), xs = function(t) {
2012
2029
  const a = t.querySelectorAll(":scope > details");
2013
2030
  t.querySelectorAll(":scope > details > summary");
2014
2031
  let e = t.querySelector(":scope > .tabs__links");
@@ -2019,10 +2036,10 @@ const pi = /* @__PURE__ */ A(Ss, [["render", qs]]), xs = function(t) {
2019
2036
  s.hasAttribute("id") && (i = document.createElement("a"), i.setAttribute("href", `#${s.getAttribute("id")}`)), s.hasAttribute("open") && i.setAttribute("aria-pressed", !0), i.innerHTML = `${n.innerText}`, i.classList.add("link"), i.setAttribute("data-index", r), i.setAttribute("tabindex", "-1"), e.appendChild(i);
2020
2037
  });
2021
2038
  }, $s = function(t) {
2022
- let a = t.querySelectorAll(":scope > details"), e = t.querySelectorAll(":scope > details > summary"), s = t.querySelectorAll(":scope > .tabs__links > button, .tabs__links > a");
2023
- t.shadowRoot && (s = t.shadowRoot.querySelectorAll(".tabs__links > button, .tabs__links > a")), s.forEach((r) => {
2039
+ let a = t.querySelectorAll(":scope > details"), e = t.querySelectorAll(":scope > details > summary"), s = t.querySelectorAll(":scope .tabs__links > .link");
2040
+ t.shadowRoot && (s = t.shadowRoot.querySelectorAll(".tabs__links > .link")), console.log(s), s.forEach((r) => {
2024
2041
  r.addEventListener("click", (n) => {
2025
- n.preventDefault(), s.forEach((i) => {
2042
+ console.log("hi"), n.preventDefault(), s.forEach((i) => {
2026
2043
  let l = i == r;
2027
2044
  i.setAttribute("aria-pressed", l);
2028
2045
  }), a.forEach((i, l) => {
@@ -2056,11 +2073,14 @@ window.dataLayer.push({
2056
2073
  class Cs extends HTMLElement {
2057
2074
  constructor() {
2058
2075
  super(), this.attachShadow({ mode: "open" });
2059
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = `@import "${a}/css/components/tabs.css";`, s = document.createElement("template");
2060
- s.innerHTML = `
2076
+ const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.createElement("template");
2077
+ e.innerHTML = `
2061
2078
  <style>
2062
2079
  @import "${a}/css/core.min.css";
2063
- ${e}
2080
+
2081
+ :host(.admin-panel){
2082
+ display: contents!important;
2083
+ }
2064
2084
 
2065
2085
  ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
2066
2086
  </style>
@@ -2068,10 +2088,11 @@ class Cs extends HTMLElement {
2068
2088
  <div class="tabs__links"></div>
2069
2089
  <slot></slot>
2070
2090
  </div>
2071
- `, this.shadowRoot.appendChild(s.content.cloneNode(!0));
2091
+ `, this.shadowRoot.appendChild(e.content.cloneNode(!0));
2072
2092
  }
2073
2093
  connectedCallback() {
2074
- Hs(this);
2094
+ let a = this.classList.toString().replace("container", "");
2095
+ this.shadowRoot.querySelector(".tabs").setAttribute("class", `tabs ${a}`), Hs(this);
2075
2096
  }
2076
2097
  }
2077
2098
  window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", Cs);
@@ -2080,7 +2101,7 @@ const Ms = {
2080
2101
  }, Es = { ref: "wrapper" };
2081
2102
  function Ns(t, a, e, s, r, n) {
2082
2103
  return c(), d("iam-tabs", Es, [
2083
- p(t.$slots, "default")
2104
+ _(t.$slots, "default")
2084
2105
  ], 512);
2085
2106
  }
2086
2107
  const gi = /* @__PURE__ */ A(Ms, [["render", Ns]]), Ds = {
@@ -2109,7 +2130,7 @@ const gi = /* @__PURE__ */ A(Ms, [["render", Ns]]), Ds = {
2109
2130
  function Is(t, a, e, s, r, n) {
2110
2131
  return c(), d("details", Rs, [
2111
2132
  o("summary", { innerHTML: e.title }, null, 8, Ps),
2112
- p(t.$slots, "default")
2133
+ _(t.$slots, "default")
2113
2134
  ]);
2114
2135
  }
2115
2136
  const vi = /* @__PURE__ */ A(Ds, [["render", Is]]);
@@ -2177,8 +2198,8 @@ function Os(t, a, e, s, r, n) {
2177
2198
  class: v(`alert__inner bg-${e.colour}`),
2178
2199
  role: "alert"
2179
2200
  }, [
2180
- e.dismissible ? (c(), d("button", zs)) : _("", !0),
2181
- p(t.$slots, "default")
2201
+ e.dismissible ? (c(), d("button", zs)) : p("", !0),
2202
+ _(t.$slots, "default")
2182
2203
  ], 2)
2183
2204
  ], 14, Vs);
2184
2205
  }
@@ -2239,7 +2260,7 @@ function Ys(t, a, e, s, r, n) {
2239
2260
  key: 0,
2240
2261
  class: "h3",
2241
2262
  innerHTML: e.title
2242
- }, null, 8, Us)) : _("", !0),
2263
+ }, null, 8, Us)) : p("", !0),
2243
2264
  S(i, H({
2244
2265
  fields: [{ key: "date_added" }, { key: "user" }, { key: "note" }],
2245
2266
  items: r.itemsData
@@ -2312,7 +2333,13 @@ function Zs(t, a) {
2312
2333
  let m = t.querySelectorAll(u);
2313
2334
  for (var n = 0; n < m.length; n++) {
2314
2335
  let f = m[n];
2315
- f.getAttribute("type") != "radio" && f.getAttribute("type") != "checkbox" && (m[n].value = ""), m[n].checked = !1;
2336
+ if (f.getAttribute("type") != "radio" && f.getAttribute("type") != "checkbox")
2337
+ f.value = "";
2338
+ else {
2339
+ f.checked = !1;
2340
+ var s = new Event("force");
2341
+ f.closest("form").dispatchEvent(s);
2342
+ }
2316
2343
  }
2317
2344
  }
2318
2345
  i.remove();
@@ -2345,7 +2372,7 @@ const ei = {
2345
2372
  };
2346
2373
  function ti(t, a, e, s, r, n) {
2347
2374
  return c(), d("iam-applied-filters", null, [
2348
- p(t.$slots, "default")
2375
+ _(t.$slots, "default")
2349
2376
  ]);
2350
2377
  }
2351
2378
  const Si = /* @__PURE__ */ A(ei, [["render", ti]]);
@@ -2356,13 +2383,13 @@ function si(t, a) {
2356
2383
  var e;
2357
2384
  a.addEventListener("keyup", (s) => {
2358
2385
  clearTimeout(e), e = setTimeout(function() {
2359
- K(t, a.value);
2386
+ G(t, a.value);
2360
2387
  }, 500);
2361
2388
  }), a.addEventListener("change", (s) => {
2362
- clearTimeout(e), K(t, a.value);
2389
+ clearTimeout(e), G(t, a.value);
2363
2390
  });
2364
2391
  }
2365
- const K = function(t, a) {
2392
+ const G = function(t, a) {
2366
2393
  Array.from(t.querySelectorAll(":scope > li")).forEach((e, s) => {
2367
2394
  let r = e.textContent.toLowerCase();
2368
2395
  e.classList.add("d-none"), r.includes(a.toLowerCase()) && e.classList.remove("d-none");
@@ -2386,14 +2413,23 @@ class ii extends HTMLElement {
2386
2413
  ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
2387
2414
 
2388
2415
  :host {
2389
- margin-bottom: 3rem;
2416
+ margin-bottom: 1rem;
2390
2417
  display:block;
2391
2418
  }
2419
+ :host(.mh-sm){
2420
+ max-height: none!important;
2421
+ }
2422
+ :host(.mh-md){
2423
+ max-height: none!important;
2424
+ }
2425
+ :host(.mh-lg){
2426
+ max-height: none!important;
2427
+ }
2392
2428
  </style>
2393
2429
  <div class="form-control__wrapper">
2394
2430
  <label for="search" class="visually-hidden">Search</label>
2395
2431
  <span class="suffix" role="presentation"><slot name="icon"></slot></span>
2396
- <input name="search" id="search" type="text" class="form-control" autocomplete="off">
2432
+ <input name="search" id="search" type="text" class="form-control" autocomplete="off" placeholder="Search" />
2397
2433
  </div>
2398
2434
  <div class="list__wrapper">
2399
2435
  <slot></slot>
@@ -2401,13 +2437,8 @@ class ii extends HTMLElement {
2401
2437
  `, this.shadowRoot.appendChild(e.content.cloneNode(!0));
2402
2438
  }
2403
2439
  connectedCallback() {
2404
- const a = {
2405
- small: "12.5rem",
2406
- medium: "25rem",
2407
- large: "37.5rem"
2408
- };
2409
- let e = this.hasAttribute("data-max-height") && a[this.getAttribute("data-max-height")] ? "list__wrapper--" + this.getAttribute("data-max-height") : "";
2410
- this.shadowRoot.querySelector(".list__wrapper").classList.add(e), this.querySelector("i.fa-search") || (this.innerHTML += '<i class="fa fa-light fa-search" aria-hidden="true" slot="icon"></i>'), ai(this.querySelector("ul"), this.shadowRoot.querySelector("#search"));
2440
+ let a = this.classList.toString();
2441
+ 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>'), ai(this.querySelector("ul"), this.shadowRoot.querySelector("#search"));
2411
2442
  }
2412
2443
  }
2413
2444
  window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist", ii);
@@ -2416,7 +2447,7 @@ const li = {
2416
2447
  };
2417
2448
  function ni(t, a, e, s, r, n) {
2418
2449
  return c(), d("iam-filterlist", null, [
2419
- p(t.$slots, "default")
2450
+ _(t.$slots, "default")
2420
2451
  ]);
2421
2452
  }
2422
2453
  const Li = /* @__PURE__ */ A(li, [["render", ni]]);
@@ -2433,12 +2464,12 @@ export {
2433
2464
  mi as Header,
2434
2465
  he as Icon,
2435
2466
  R as Input,
2436
- _e as Logo,
2467
+ pe as Logo,
2437
2468
  bi as Nav,
2438
2469
  wi as NoteFeed,
2439
2470
  yi as PropertySearchbar,
2440
- pi as Step,
2441
- _i as Stepper,
2471
+ _i as Step,
2472
+ pi as Stepper,
2442
2473
  vi as Tab,
2443
2474
  ee as Table,
2444
2475
  gi as Tabs,